The next release will come when the spanish translation will be finish...
It will correct a couple of fixs and introduce some performance feature like cache.
That should permit a better time response (most SQL are avoid with this system).
I also introduce GMT things to be sure the date correspond to where the user connect.
Monday, April 28, 2008
Next release soon
Thursday, April 24, 2008
Access to devloppement woozor
I put an htaccess to restrict the access to the dev part of woozor... Just in case.
So to access it :
Login : woozor
Pass : woozor42
Adress : dev.woozor.com
MySQL and Cache
I found a really good article about cache and MySQL I wanted to share with you.
I will find it here : http://jpipes.com/index.php?/archives/99-MySQL-Connection-Management-in-PHP-How-Not-To-Do-Things.html
We had a little problem with our MySQL Database this morning, that's why i'm paying attention to it.
You will find at the end of the article a really good class for caching that I will probably adapt for the search and the RSS feeds.
Wednesday, April 23, 2008
How to block an IP on your server?
I was for a long time trying to block some ip on my server...
People are sad with me and want to connect to it even if they have no
rigth to do it.
They try several login like bar, computer... Bad people :op.
So I found that and it works well on my redhat :
http://www.cyberciti.biz/faq/how-do-i-block-an-ip-on-my-linux-server/
The main idea is :
to block for everything : # iptables -A INPUT -s 65.55.44.100 -j DROP
to block for a port : # iptables -A INPUT -s 65.55.44.100 -p tcp
--destination-port 25 -j DROP
To see what are the IP already blocked, you can use iptables -L
Cool, isn't it ?
Tuesday, April 22, 2008
So, it is really online...
Hey, it is... Version 2 of woozor is online. SiteMap done. Google
webmaster and Yahoo updated.
That was a good day!
Share some ping code
I want to share some code. So I share this function that will help you to ping search engine for you sitemap :
function pingSitemaps( $url_xml, $searchEngine )
{
switch($searchEngine) {
case "google":
$domain = "www.google.com";
$get = "/webmasters/sitemaps/ping?sitemap=";
break;
case "ask":
$domain = "submissions.ask.com";
$get = "/ping?sitemap=";
break;
case "yahoo":
$domain = "search.yahooapis.com";
$get = "/SiteExplorerService/V1/ping?sitemap=";
break;
case "live":
$domain = "webmaster.live.com";
$get = "/ping.aspx?siteMap=";
break;
case "more":
$domain = "api.moreover.com";
$get = "/ping?u=";
break;
}
$status = 0;
if( $fp=@fsockopen($domain, 80) )
{
$req = 'GET '.$get.'' .
urlencode( $url_xml ) . " HTTP/1.1\r\n" .
"Host: $domain\r\n" .
"User-Agent: Mozilla/5.0 (compatible; " .
PHP_OS . ") PHP/" . PHP_VERSION . "\r\n" .
"Connection: Close\r\n\r\n";
fwrite( $fp, $req );
while( !feof($fp) )
{
if( @preg_match('~^HTTP/\d\.\d (\d+)~i', fgets($fp, 128), $m) )
{
$status = intval( $m[1] );
break;
}
}
fclose( $fp );
}
return( $status );
}
You use it like that :
if( 200 === ($status=pingSitemaps($siteMap, "google")) )
echo "Ping to Google Sitemaps successful.
Status code: $status.";
else
echo "Cannot ping/connect to Google Sitemaps.
Status code: $status.";
Hope it will help, it supports Google, Ask, Yahoo, MoreOver and Live.
It is online...
I can't wait to put the new woozor online... So I did it today.
I just put online the french, english, american and belgium one.
When I will get the translation for the other woozor. I will sure put it
online and let you know here. :-)
A few more hour and the sitemap for google and other seach engine will
be online and that will be finish. Ouf!
Enjoy !
Server down for a few hour
The woozor server was down for a few hours... Sorry about that. I was
not able to find out how to restart it correctly.
But now it is ok. Good :)
Something to know where an IP is localized...
Since I have my new IPs, I would like to know if it was really where my
hoster says it is...
So I found that : http://visualroute.visualware.com/. It seems to work
fine...
Monday, April 21, 2008
Shrinksafe
Thanks to shrinksafe, Woozor lose belly fat :op... Reducing the number
of HTTPRequest and the size of transfer... Thanks shrinksafe !!!
One thing, shrinksafe doesn't do file concatenation :( so you will have
to concatenate your js file all alone...
But it is pretty easy to use :
1. Download the jar on the link bellow
http://www.dojotoolkit.org/docs/shrinksafe
2. Go to the folder when you download it
cd C:\Users\Documents\Website\
3. and Run with cmd on window
java -jar custom_rhino.jar -c input.js > output.js 2>&1
Easy, I told you
It is online...
Our new IP 87.98.249.94 is now connected to woozor.co.uk...
I will let you know if there is an evolution in my SEO thanks to that.
We have a new IP... It's done...
My hoster gave me a new IP this morning... So I configured it on the
server. I'm actually testing the configuration. I will update soon.
If it works fine, I will switch directly the woozor.co.uk in production
on that new IP... I like it :o).
Sunday, April 20, 2008
Trying improving SEO with localized IP
I will try soon to introduce an IP localized in Englang for the woozor.co.uk website. I'm actually waiting for the validation of my demand by my hoster. I think I will also do that for the german, spanish and belgium one... Hope Google will like it
Woozor will change... I promise...
I know there is several people who are using my weather website. I'm happy to say that in the .fr one, we had last week obtain more the 3500 visits on Friday. Probably cause of the holliday in France...
Anyway, the new woozor is in developpement. I'm introducing several new domain :
- woozor.cn
- woozor.at
- woozor.us
- woozor.de
- woozor.es
...
We are in translation for the chinese and the spanish one... For german, it's on the way... For those who have some time to spend, you can visit the website in dev in the URL dev.woozor.com
Hope you will like it... :p
Woozor blog, why not?
I was for a long time asking myself if I should open a blog for my weather website... Today is sunday, I'm tired of working on woozor... So let's open a blog... I will post here some of the stuff I'm working on and if people want to discuss with me about woozor, I think it will be a good way of communication...