LAMP

News
Now Hear This...
Latest company and industry news.

Twitter Error 417 âÃÃ

Recently I had to deal with Twitter avatar upload for a Twitter application. Everything went very well, but when I have prepared everything for the upload query, the only server response I got was Error 417.

Since I used cURL, I tried to deal with different headers, but with no luck at all. I found the solution at MSDN website. The correct string is:

curl_setopt($ch, CURLOPT_HTTPHEADER, array(‘Expect:’));

Some Godaddy Coupons for April 2011

For those who use Godaddy.com, I’d like to share some coupon codes. Here they are:

SAVE 15%* off your purchase of $50 or more. Just use source code gdbb1728

Take 10% off your order. Simply enter gdbba22

SAVE 20%* off your purchase of $65 or more. Just use source code gd9bb
Hope it saves you some money.

Google Adsense Check Reissue: The Only Method That Works

Recently I decided to switch to Electronic Funds Transfer for Google Adsense, since it’s more quick and convenient for me. I have already received some checks and I decided to credit them back to receive funds via Western Union Quick Cash. I’ve followed Google advices, and went to the following link. I have tried filling this form about 10 times, trying different values for Payment Amount (Checks are in USD, but my reporting currency is EUR).

PHP: strtolower for Russian and Cyrillic

If you need to work with Russian text in PHP, you may notice that functions that are related to CaSe are not working as expected. I mean strtolower, strtouper, ucwords, and so on. In order to get what you need I suggest to use mb_convert functions. Here is the example:

<?php
$string = "Строка";
$string = mb_convert_case($string, MB_CASE_LOWER, "UTF-8");
echo $string;

//output is: строка
?>

You can check reference table for functions, I think you will find more useful functions for you.

How to Fix Broken Outlook 2010 PST File

Recently I have upgraded my Office to Office 2010. This version looks very interesting and I really like its look, that is especially related to mail. I liked it so much that I have decided to switch my default mail client (The Bat!). Especially I liked the instant search panel, that showed all linked messages.