Thursday, January 14, 2010

Weeds Complete wallpaper Collection

I will try to make as complete as possible a collection of Weeds (showtime TV series) wallpaper images.
If you find some that I miss, please drop a note.

Weeds

Tuesday, January 12, 2010

Did you know that the '0' value was invented in India

Just the daily tip from me.

WURF(l) WURF(l) and PHP part 1

If you ever tried to install a mobile application or website, you probably felt like that. hundreds of browsers, standards, non standards and than some.

One application that tried to solve that is WURFL. What it does is keep a huge database of mobile phone browsers and their capabilities, and gives the developers a single place to get coding right.

You write once, and the API acts like a layer, and displays the corresponding code to the requesting browser/phone.

All seemed nice, until I started to install and implement it.

It first asks for a PEAR dependancy log. I installed that.

Now comes the messy part, neither instructions, not on the web nor on the downloaded package are informative enough, nor do they even correlate to the correct folder they are in.
Once tells you to update a file from one location, while residing on a different one.

It's hard to ask from people who invest of their time by writing open and free source, but if you will spend just 1,2, 5 and even 10 hours more, you will save an exponential number of hours by solving questions that the answers are already known.

I will continue with the installation process:
1. Install PEAR install log   - done

And that's about the last easy step that WURFLS had to give.

There MUST be a better way to help users, I am not asking for a 24hour support line, but 1 clear easy FAQ/Forum - that will do it.

Monday, January 11, 2010

Chinese Safa Kasha

We all know that Chinese is one of the difficult languages to learn, talk and master. It all starts with learning the ABC and numbers.

First lesson: Number 6 in Chinese

Sleep for a random time in PHP

If you want your PHP program to halt/sleep for a random period of time, use the folowing:

sleep ( rand ( int min, int max));

*sleep is in seconds

so:
sleep ( rand ( 2, 4));

will sleep for 2 to 4 seconds.




http://php.net/manual/en/function.sleep.php
http://php.net/manual/en/function.rand.php

How to execute wget from php

I was trying to exectue wget from php, tried and read several sites.

The way to do it is very simple:

<?php

exec ('wget URL_TO_GRAB');   // note you can add ANY command or option as well.

?>

Have fun

Sunday, January 10, 2010

There is no business like Grow business

Oh what a show, call me outdated, call me late comer, but Just today I watched the first episode of this most funny show ever.

Weeds - It's a hilarious story about a mom of 2 whom her husband just died, and on her effort to overcome everything, becomse a drug dealer - yea - super duper idea.

have fun !!!

http://www.sho.com/site/weeds/home.do

Where Thou you Jadoo


I used to play Planetside, a nice FPS game form Sony. Beside the bad lag I had, it was a pretty solid game, which I liked.

One of the better players on my realm: Europe, was Jadoo, here's an old screenie of a chat part of my success

Saturday, January 9, 2010

Free PC Information

If you need to get information on your PC, I found http://www.belarc.com/free_download.html to fit the job pretty good.

Edimax BR-6504 Router Default settings

IP: 192.168.2.1
USER: admin
Password: 1234

Just a piece of handy info

Skiff - 'D' next Real E-Reader

The skiff just launched, undoubtedly the next real Epaper out there.

It can fold, it can sing and it has WiFi

http://www.moneycontrol.com/news/technology/e-book-reader-skiff-launched_434713.html

Adsense and Dynamic content

If you want to put adsense on your php dynamic pages, it's possible
Let me explain how GET|POST matters. The process of getting the relevant ad to the page is as following:
1. The user inputs some query and hits Search.
2. The browser sends the request and gets the page with some contents
3. The AdSense javascript on this page calls spider telling him the URL of the page
4. The spider comes, grabs the page and analyzes it thus selecting the relevant ads
Now what will happen if the JS tells the spider the URL like http://www.mysite.com/myscript.cgi? The spider will see a page with default content because it didn't POST a request there. But the user will see quite different page because he did! So ads displayed will correspond with contents of default page, not with what the user has requested. And if the request was sent by user via GET then the JS will pass the spuider the URL like http://www.mysite.com/myscript.cgi?q...ss+destruction, so both user and spider will see the same content and the spider will be able to select the appropriate ads to display.

credit

Thursday, January 7, 2010

Going to ski in the Alps? Meet your R.I.P. Instructor

I don't want to be rude or anything, but I am not sure this is the first thing I want to see when I choose who will be my ski instructor off piste

http://www.rtmsnowboarding.com/who_we_are/tom_donnelly.php

Shutdown and reboot of all Domain copmuters

It's an easy tool, and free

http://technet.microsoft.com/en-us/sysinternals/bb897541.aspx

Wednesday, January 6, 2010

VIM Search and replace

VIM is an awsome tool for editing, I keep learning new things every day.

Today I learned how to easily search and replace strings:

:[range] s/search/replace/

so easy. there are other options as well, you can work in Visual mode to select lines, you can ask to search and replace in the entire file, etc.

super easy.

Bug 2010 !!!

We all waited for the Y2K bug, that didn't arrive, but voot voot, it hit Germany only 10 years later.

A delayed Y2K bug has bitten hard at some 30 million holders of German debit and credit cards, making it impossible for them to use automatic teller machines and point-of-sale terminals since New Year's Day.

Multiple news agencies said the outage stemmed from card chips that couldn't recognize the year 2010. The DSGV, an association representing German banks, said engineers were working diligently to fix the problem, but a full resolution might not come until Monday.

The outage affected 20 million EC, or electronic cash, cards, which act as debit cards, and 3.5 million credit cards, according to the DSGV. A separate bank association known as BDB said about 2.5 million of its cards suffered from the same problem and another 4 million cards issued by Germany's cooperative banks were at least partially touched.

The reports are the latest to involve the inability of computers to properly handle the 2010 date. Just after midnight on New Year's Day, Symantec's Endpoint Protection Manager stopped accepting updates after it was hit by its own 2010 date bug. Soon after the first of the year, SpamAssassin began blocking huge amounts of legitimate email because they included the 2010 in their headers, a date so far off the spam filter assumed they had to be junk.

Monday, January 4, 2010

check for group member in user cake $loggedInUser->isGroupMember

If you are trying to implement usercake (AWSOME), and you need to check if a user is in a group, here is the code:

if (!$loggedInUser->isGroupMember($admin_group_id) ){
echo "Admin only access";
die();
}

have fun

Track visitors to your website with mysql and php

A very simple table and script, enjoy

CREATE TABLE `track` (
`id` int(6) NOT NULL auto_increment,
`tm` varchar(15) NOT NULL default '',
`ref` varchar(250) NOT NULL default '',
`agent` varchar(250) NOT NULL default '',
`ip` varchar(20) NOT NULL default '',
`ip_value` int(11) NOT NULL default '0',
`domain` varchar(20) NOT NULL default '',
`tracking_page_name` varchar(10) NOT NULL default '',
UNIQUE KEY `id` (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ;


script

$tm=time();
$ref=@$HTTP_REFERER;
$agent=@$HTTP_USER_AGENT;
$ip=@$REMOTE_ADDR;
$strSQL = "INSERT INTO track(tm, ref, agent, ip, tracking_page_name) VALUES ('$tm','$ref','$agent','$ip','$tracking_page_name')";
$test=mysql_query($strSQL);



taken from: http://www.plus2net.com/php_tutorial/visitor-logging.php

Best bookmark sync addon for ALL browsers !!! xmarks !!

I use xmarks as syncing between all my computers and all the browsers I use
http://www.xmarks.com/

very very good and accurate

May 2010 be a 10 !!!

Just a couple of more 2010 greetings.

Sunday, January 3, 2010

Send SMTP in PHP Via PEAR package also in Amazon AWS

If you are going to send SMTP with PHP, and sendmail isn't just good enough, you might want to try and use PEAR package. super one.

Just don't forget to setup correctly the header for the send function
$header['From'] = $websiteName . " <" . $emailAddress . ">";
$header['MIME-Version'] = '1.0';
$header['Content-type']= 'text/html; charset=iso-8859-1';
$header['Subject']= $subject ;


Have fun

Not funny: A father murdered his 8 month daughter

This has happened yesterday. A father murdered his 8 month old daughter by slamming her on to the floor. I feel like shouting !!! The atrocity, the sheer brutal force one can use against a harmless 8 month - she is your own flesh and blood !!

There are no words to describe this, and only one thing comes to my mind: DEATH PENALTY !!!

I really wish that there would bring up the chair for such criminals.

Some couples whom are childless are waiting for a child for years, and others can easily take a life.

To add more to the horror, the child was crying for 20 minutes (so the neighbors claim) - if that's the case, why didn't they intervene? where is their humanity? Reading such news makes me sad and sick.

Don't have words for this.

These 2010 greetings just keep coming.


Last but not least