Often times what i’m doing does not require a bloated logger!. So here would be two cool functions to have in your class/script.
// input: array.
// output: The exact same array in your log.out.
function log_a($a)
{
$myFile = "/var/log/sgple20/log.out";
$fh = fopen($myFile, 'a');
fwrite($fh, "\n\n".print_r($a, TRUE).'');
fclose($fh);
}
// Input: A message.
// Output: The same message in your log.out.
function log_m($msg)
{
$myFile = "/var/log/sgple20/log.out";
$fh = fopen($myFile, 'a');
fwrite($fh, "\n".$msg."");
fclose($fh);
}
I was playing around with a wordpress plugin!, i saw this jem!
$file = $file['file'];
WTF!?!?!?!?!?
++++++++++++++
UPDATE
++++++++++++++
Upon further thought!!!, i think you guys are right!, this is not the language’s fault. The variable names should have been named more clearly. NOW STOP BADGERING ME ABOUT THIS.
Find out about here in this article, ๐ THis photo was animated using clipmann.com
Filed under: blog | Tags: animation, code, Funny, geek, geek code, gif, image, linux, lolgeek, lulz, perl, photo, php, programming, Random, unix
This clip was created using clipmann.com
This really wont make any sense unless you know about geek code!.
Filed under: blog | Tags: clipmann, clipmann.com, development, Funny, lolcat, lolcats, lols, lulz, php, programming, symfony, Web 2.0, Web Development
For the past few months, I have been working on an app which gives you more freedom in creating your Lulz. Well, itโs finally done. Meet ClipMann, the official ambassador of the clip people.
You will be able to:
- Upload your own images
- Stamp your uploads with a watermark customized to your website (name/colors/fonts)
- Submit your images to be included in the community (which could be approved or not)
- Chose from a HUGE array of funky fonts (South Park, Star Wars, Family Guy, Buffy the VS, and MANY more)
- Choose between SERIOUS community images selection, divided by categories (Cats, CatsNDogs, Politics, People, Tech, Random, Monsters, Robots)
- Create more than one lol at the same time
- Animate your concurrent lols as an animated gif
- Combine your concurrent lols as a comic strip
The following is an illustration of the type of lulz you can create. You have the normal comic strip look, with custom colors/fonts/backgrounds.
There is also the option of an animated gif that has been created by the same frames.
Please tell me what you think.
Filed under: blog | Tags: code, Funny, halarious, humor, php, programming, web, Web 2.0, Web Development
Filed under: Uncategorized | Tags: appartment, dev, Funny, humor, oxymoron, pi, programming, realestate, rent, stupid, variable
Constant Variable:
This is a term used in programming which refers to variables that are declared with one particular value. For instance,
PI = 3.14
NUM_OF_FLOORS = 19
BUT COMMON, how can something that vary in be constant!.
None refundable deposit:
I have been apartment hunting lately, and few landlords said that i can indeed bring in my pet (mimi poopoo, she’s a French feminist) for a none refundable deposit of 300 dollars.
HOW CAN A DEPOSIT be none refundable!. what the hall?!?!, and do not get me wrong, i’m reasonable, but USE THE PROPER TERMINOLOGY PEOPLE. If they would have called it “taking your money for no reason other than we can fee”, i would be okay with it.