Virus Alert! A Facebook message virus is spreading fast!
I received a private message in my Facebook inbox from a friend a while back, that looks like this:
are you ******* serious??? Why did you upload this?
On February 4, 2014 Adobe released a Critical Flash Player Security update. If you haven't updated your Flash Player after
February 4, 2014, please do so from here:
** Always check and confirm that your browser address bar is pointing to
adobe.com before you download the installer.
You've probably read the story about how a tourist solves the debt problem of a small town in Kenya just by placing a $100 note on a hotel's reception counter and taking it back a while letter. It may have baffled you, since even though no one earns anything, everyone's debt is paid for. Well, there is no trick, so let's just demystify the puzzling story once and for all.
The story goes like this:
One day a tourist comes to the only hotel in a debt ridden town in Kenya. He lays a 100 dollar note on the table & goes to inspect the rooms.
Hotel owner takes the note & rushes to pay his debt to the butcher. Butcher runs to pay the Pig Farmer. Pig Farmer runs to pay the Feed Supplier. Supplier runs to pay the Prostitute, who in these hard times gave her services on credit. Prostitute then runs to pay off her debt to the Hotel Owner for the rooms she rented for her clients.
Hotel Owner then lays the 100 dollar note back on the counter. The tourist comes down, takes his money & leaves as he did not like the rooms.
No one earned anything. But the town is now without debt & looks to the future with a lot of optimism.
And that is how the world is doing business today!
People, there is a new attack site or link (originated from Facebook) with the following pattern (emphasize on point 3 below, posing as Flash or other Plugin installer):
লেখাটা আরও আগেই লিখতে চেয়েছিলাম। কিন্তু হয়ে ওঠেনি। যারা এই লেখাটা এখন পড়ছেন তাদের সবাই মনে হয় এর বিষয়বস্তু সম্বন্ধে একমত হবেন। আর যারা একমত হবেন না, তারা মনে হয় এ লেখাটা কখনওই পড়বেন না। এ জন্যই "আমাদের সংযত আচরণ করা উচিত কি উচিত না" এ ব্যাপারে আমি খুব বেশি কিছু লিখবো না। খেলায় জিতলে জোর করে কারও গায়ে রং মাখা কিংবা শালীনতার সীমা ছাড়িয়ে গিয়ে কারও বিড়ম্বনার কারন হওয়া উচিত কিনা সে ব্যাপারে যেমন কিছু লিখব না, তেমনি হারলে সাকিব আল হাসান এর বাসায় কিংবা ওয়েস্ট ইন্ডিজ এর বাসে ঢিল মারা উচিত কিনা সে ব্যাপারেও কিছু লিখব না। Continue reading
If you ever try to format date in PHP and MySQL, using date (datetime or timestamp) value directly from MySQL to PHP date() function, then you'll get a Notice level error, something like this:
Notice: A non well formed numeric value encountered in ... .. .
Additionally, PHP date() will always return January, 01 1970 if MySQL date is directly used. It means, there is a difference between date in PHP and date in MySQL (i.e. they are not compatible). PHP date function accepts Unix Timestamp, which is different from MySQL date types (DATE, TIME, DATETIME, TIMESTAMP etc.)
So if you want to change your default MySQL date format (the way it looks) to a more suitable formatting using PHP date() function, then you'll have to convert MySQL date to Unix Timestamp. Continue reading
If you are running a typical Blog using WordPress, then the answer is no, you shouldn't allow search engines to index your category and tag pages (if you care about maintaining a higher SEO value).
PHP programmers regularly use the functions (or more appropriately language construct) include(), include_once(), require() and require_once(), to insert useful codes written in other files, in the flow of execution. Although these constructs are used quite interchangeably, there are actually significant differences among them, specially when you are building well designed applications. Although these differences are very well defined in PHP manual, I've noticed many programmers don't really consider them while coding. I hope this tutorial will help them towards a better coding practice. Continue reading
People! this is the 1st April, so
Don't get fooled, by the fools, celebrating the fool's day.