cassino glaces

Glaces_Yellow_tharsitis.grThis is one of my first photos taken in Brussels Belgium, outside the Atomium.

I didn`t really like the atomium, too much waiting time and nothing special to see. I would not recommend it to anyone, if they needed to wait as much i did to get in. Anyway the photo is from a VW car selling icereams outside the Atomium, and it seemed interesting while waiting in the queue.. I`ve done some photoshoping and some HDRing over there.

Udemy Online Certificates

udemy-logo-academyofyoublog[1]There is a huge discussion on whether the online training websites should provide a certificate of completion or not (here). I will not spend any time repeating all these that are mentioned in the above link. There is no point in doing it. From my side i totally agree that fast forwarding the udemy training videos does not prove anything. It does not prove that i am capable of taking great photos or web developing in dreamwaver or anything..but…

It felt real good when i finished my first udemy online training on the advanced photo taking techniques, and udemy sent me a certificate of completion.

After all, doesn`t google also provide a certificate of completion for watching  ten videos of how to set up analytics, and then a stupid questionnaire? Yes they do. So there is nothing big about it. It`s just a proof to your self, that you have made some progress with that.

Now if you start comparing udemy to other online courses that are affiliated with known universities (like coursera and stanford online), and for which you have to sit proper exams and communicate with the teacher and stuff.. Then I suppose the situation might be slightly different, but again, i doubt it if that is something i would but in my resume.. Of course i have not managed to finish any such course. Yet.

 

 

 

 

SVN dump and load

Since a lot of time i use the tortoise svn with visualsvn as my developing repository.

I have it installed locally on the vmware that i use. The repositories are also created locally. At some point i needed a smart way to backup /copy all my repositories from the vmware to the Synology NAS I have sitting at home.  I used to sync all the repos through dropbox but took much time and was not fool proof. I ended up installing the SVN sever on the synology NAS.  After opening the right ports on ly router everything seemed to work ok, but how do you transfer the repo from the local machine to the nas svn???

First i exported the repositories from the local developing machine:

svnadmin dump E:\Wamp\Repositories\tharsitis.gr > E:\Wamp\Repositories\tharsitis.gr.dump

After creating an empty repository in the synology SVN, i copied the previously generated dump file in the synology SVN folder.

synology svn
synology svn

 

 

 

 

 

 

Now the loading…

Login via SSH with root rights on to the SVN and run the following:

where:

svnadmin load  /volume1/SVN/tharsitis.gr < /volume1/SVN/tharsitis.gr.dump --ignore-uuid

where  –ignore-uuid : ignore any repos UUID found in the stream

WTF is Semalt.com?

No Semalt
No Semalt

As soon as i installed the google analytics code for tharsitis.gr , found out that i got too many  hits from Brazil.  Digging a bit more in the analytics report,  found that all the brazilian hits were coming from semal.com…

Semalt.com is an Ukrainian company that crawls the internet and generates reports on how your site compares to the rest of the internet, or the competition. Simply as that. Now why it needs to crawl my wordpress blog 16 times a day, i do not know. I only have like 5 posts yet :).

Any how, if you want to prevent semalt.com from crawling your web site, there are a couple of ways you can do that. One of them is through the .htaccess file. For wordpress i have changed my htaccess file to below (added the lines after # END WordPress, got it from here):

# Switch rewrite engine off in case this was installed under HostPay.
RewriteEngine Off
SetEnv DEFAULT_PHP_VERSION 53
DirectoryIndex index.cgi index.php index.html
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
SetEnvIfNoCase Via evil-spam-proxy spammer=yes
SetEnvIfNoCase Referer evil-spam-domain.com spammer=yes
SetEnvIfNoCase Referer evil-spam-keyword spammer=yes
SetEnvIfNoCase Via pinappleproxy spammer=yes
SetEnvIfNoCase Referer semalt.com spammer=yes
SetEnvIfNoCase Referer poker spammer=yes
Order allow,deny
Allow from all
Deny from env=spammer

Alternatively you could also visit their web site and ask them to remove your page.. (it did not work for me).

 

 

 

JPG/PNG Image Optimization

keep-calm-and-start-optimizing[1]In a previous post I refer to image optimization. I started working with image optimization when i got reports from the google webmaster tools that the images used in my web sites are not optimized.

Searching in the internet I ended up working with jpegtran and optipng for the optimization of the images I use in the web. I use the following two batches to automate somehow the whole process. I place the image inside the “Optimize” folder and then according to the file type run the appropriate batch script.

cd "E:\Dropbox\wamp\www\Optimise"
E:
FOR %%G IN (*.jpg) DO (
copy %%G log\%%G
"E:\Dropbox\wamp\www\Optimise\JPGPNGOPT\jpegtran\jpegtran.exe" -optimize %%G %%G
MOVE %%G OPTED\%%G
)
 FOR %%G IN (*.png) DO (
copy %%G log\%%G
"E:\Dropbox\wamp\www\Optimise\JPGPNGOPT\pngout.exe" "E:\Dropbox\wamp\www\Optimise\%%G" "E:\Dropbox\wamp\www\Optimise\%%G" /y
MOVE %%G OPTED\%%G
)

 

Ebay Partner Network

Ebay Partner NetworkThe Ebay partner network is another way to monetize your web site (from adsense). Initially you need to apply to their web site, and after around a week you will get an email welcoming /or not you to their network.

Ebay easy ways to generate links or banners to their products (links, banner generator, api, widget):

Link generator

The link generator allows you to create a trackable link to any of eBay Partner Network’s program pages and is great for all types of business models. Best of all, by using this tool to direct visitors to relevant pages you can significantly increase conversion rates

Creatives generator

Choose from a variety of colorful graphic and interactive ads to enhance your site and attract visitors to eBay Partner Network pages from your webpage.

Widgets

Including RSS Feeds, and Custom Banners; we offer innovative and customizable widgets to drive traffic and increase user conversions.

API

Leverage eBay’s advanced web services platform to develop innovative applications to tap into eBay’s marketplace. Our API provides tools and services that meet the diverse needs of over 200 million online shoppers. You can use virtually any programming language to interface with eBay Web Services!

Ebay Partner Network Hits Chart/

 

I ll post some updates as soon as i get the first payment.. if..

PHP Image Resizing…

I have been searching for some time an easy way to change the size of jpg and png images on the fly – on the server. currently my preferred solution is the PHP Image resize script found here ..

The solution is extremely easy to implement. I use it to convert almost 1000 images whos filenames have stored in the database (on the fly).

Have found the following issues though:

  1. All of my images are google optimized (using jpegtran and optipng). After the conversion the new file is 10 times larger in size even though the  dimensions are similar (197×50 and 6kb to 200×50 and 30kb size). So there goes my optimization…
  2. I have manually converted most of my files to width 200 to match my web site layout. When an already 200pixels image passes from the script that sets it to comvert again to 100px,  it sometimes produces a blank png file with, and some times the quality of the image is very bad (even though you set it to convert with the highest quality). I will need to investigate this why the script behaves differently to different png  files if i wanna keep it.
$file="./brands/".$row_Recordset1['NAME']."/logo.png";
$resizedFile="./brands/".$row_Recordset1['NAME']."/".strtolower(str_replace ( ' ', '-', $row_Recordset1['NAME']))."_reslogo.png";

list($width, $height) =getimagesize($file);

echo $width;

//echo $height;

if (file_exists($file)){

 

if (file_exists($resizedFile)){

//to nothing

}else {

smart_resize_image($file , null, 201 , null , true , $resizedFile , false , false ,100 );
}
}else{
$resizedFile="./brands/no-logo-yet.png";
}

Update: Found that issue #2 was caused by the fact that i was scaling the image up, rather than down.  Issue #1 still persists though.

Here is a very informative post about the jpg image optimization and resizing using php native functions

 

Hello world!

Hello Wolrd! I am here!
Hello Wolrd! I am here!

Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!

You can also leave it as it is and continue writing below it.

This is the 17th time i set up a wordpress site for tharsitis.gr. This time i am committed to it. I will try to have regular updates of my IT-life.