Archive

Archive for December, 2010

PHP: strpos that takes array as an argument

December 20th, 2010 No comments

Just found one useful function and would kike to share it. If you often use strpos, you might find this useful.

// strpos that takes an array of values to match against a string
// note the stupid argument order (to match strpos)
function strpos_arr($haystack, $needle) {
if(!is_array($needle)) $needle = array($needle);
foreach($needle as $what) {
if(($pos = strpos($haystack, $what))!==false) return $pos;
}
return false;
}
?>

This function will be useful if you need to find whether ANY element of array is presented in the source string. Else you have to either modify it, or create another one.

Categories: PHP Solutions Tags:

Getting Things Done Tools: All in One Place

December 13th, 2010 No comments

Since I am a real fan of efficiency, I would like to share a good link. All the most known getting things done (GTD) tools are in one place. Here you can find them. I have never seen a more complete list with detailed descriptions. Most of them are not so well known, but are really interesting.

If you know any more resources, related to Getting things done methodology, please, share them in comments.

Categories: Time Management Tags:

Dvd-r/Rw Media Requires Setting Mode Page To Use DAO Writing

December 8th, 2010 No comments

Recently I have performed the cleanup on my laptop. This means I have deleted the software I don’t use or I am not sure what it’s for. After that my Ultraiso started failing when I tried to burn a DVD. Error message was “ Writing”. I have tried to change some settings without any success.

Since some programs were deleted, I tried to find which one was necessary for UltraISO. Strange thing, but it was Intel Matrix Storage Manager. I have never used it and not sure what’s it for, but it was necessary for UltraISO for burning a DVD. So, if you have such an error, you should check whether you have all drivers installed. Especially this is related to storage controllers, raid controller drivers and so on. This could be essential for you if you need to burn a DVD with UltraISO

List of Browser Safe Fonts

December 2nd, 2010 No comments

Just sharing the link I found: common fonts for all browsers. We have recently had issues with a site, designed in Calibri. It’s a pity, but that font doesn’t work for Windows XP, that’s why we had to revert it to standard fonts. Hope it saves you some time.

Categories: Uncategorized Tags: