Out of Bandwidth =(

Posted by Jetlogs @ 11:42 am
Category: Random

It seems that this website has become a victim of its own success. For the past 3-4 months, this site has been down in the last days of the month due to exceeding the alotted bandwidth.

To remedy this, in-site downloads and images will be temporarily disabled as I try to preserve the remaining drops of bandwith. Important images and downloads will be outsourced to rapidshare for now.

Expect the site to be down by Feb 25-29 until the site’s monthly bandwidth refreshes :(


GLaDOS Speakers

Posted by Jetlogs @ 9:50 am
Category: Video Games

GLaDOS SpeakersIt seems that a company by the name of Proclaim Audio Works have developed a GLaDOS inspired speakers called DMT-100 as seen on this picture.

However, this is not for the faint of heart though, as a pair would cost about $25,995! Maybe its not such a good thing directing your anger for GLaDOS to this speaker…

Be afraid though if the speaker would speak by itself at night.

*NEUROTOXINS NOT INCLUDED


Okami Wii: Official Boxart Revealed

Posted by Jetlogs @ 11:20 pm
Category: Video Games

Okami Wii Box ArtAfter the confirmation of Okami Wii, there hasn’t been much news about the game aside from some screenshots which we have all seen from the PS2 version. However, the next milestone has been reached and Capcom has released the official boxart for Okami Wii.

Talkin’ bout fan service, this box art is just awesome. I really hope this game will do well on the Wii so we can have an Okami 2 (Please let Clover Platinum Games develop it).

While waiting for this game to be released, you can always make some Okami Papercraft.

Source is from Wii Live


Still Alive: Mario Paint Rendition

Posted by Jetlogs @ 10:59 am
Category: Video Games

We’ve seen a lot of rendition of Portal’s ending theme Still Alive. We’ve seen it get remixed, have custom cutscenes, and whatnot. But this version might be the one to top them all.

It seems somebody has made a rendition of the theme using the old-school Mario Paint. As for how it sounds, just check out the video below. Its pleasantly surprising. Read more »


PHP: Problems with Long Integers & Scientific Notation

Posted by Jetlogs @ 11:44 am
Category: PHP, Web Development

For those of you working on PHP scripts using very large integers, a heed of warning. It seems that the current version of PHP (5.2.5) apparently has problems working with outputting very large integers and floats that have a lot of lagging 0’s

For example, here is the bug that I have encountered in a server using CentOS:

$big_integer = 1202400000;
echo $big_integer; //outputs 1.2024E+09

$sample_float = (float)100000; //float
echo $sample_float; //outputs 1E+05

As you can see, PHP will automatically convert these types of integers into scientific notation. At first, I though it was simply a case of integer overflow with 32 bit systems, or a misconfiguration in float precision. However, I’ve noticed that this bug will only apply to large integers or floats with a lot of zeros at the end. Apparently, when PHP encounters a number that exceeds the upper limit of 2,147,483,647 for an integer, it automatically converts the number’s type from integer into a double.

Through searching PHP’s bug archives, its seems that I am not alone. Apparently this bug has been documented in the recent versions and is most notable with systems running under CentOS.

So how do we fix this error? Fortunately, we can format these numbers in scientific notation back to their standard integer form using the number_format() function. Here is how to do it:

$big_integer = 1202400000;
$formatted_int = number_format($big_integer, 0, '.', '');
echo $formatted_int; //outputs 1202400000 as expected

$sample_float = (float)100000 //float;
$formatted_float = number_format($sample_float, 2, '.', '');
echo $formatted_float; //outputs 100000.00 as expected

Hope this helps anybody who is experiencing the same problems.


Next Page »
  • Archives

  • Donations

  • Social Bookmarks

  • Jetlogs.org
    Some Rights Reserved 2007
    Creative Commons License