Just another Filipino Programmer’s blog by Nick Fernandez III, on web development using PHP in LAMP framework and random information about everything I would tought interesting on and off the IT world.
Random Bytes:
Take chances, take a lot of them. Because honestly, no matter where you end up and with whom, it always ends up just the way it should be. Your mistakes make you who you are. You learn to grow with each choice you make. Everything is worth it. Say how you feel always. Be you and be ok with it.
So are you already eager to line up tomorrow for the big iPhone day? Well I have compiled a list of iPhone Function Related FAQ’s. These FAQ’s has been published on Pogue’s Post section of the New York Times. Anyway, here it is: the ultimate iPhone Frequently Asked Questions list, complete with answers.
Can it be used with anything but Cingular? – No. Is it an “unlocked� phone, so I can use it with a carrier other than Cingular? – No. Will there be a non-Cingular version? – Not within the first two years. Can I put my T-Mobile SIM card in it instead of Cingular? – No. But what if I keep asking? Then will it be available beyond Cingular? – No. Can it run Mac OS X programs? – No. Can I add new programs to it? – No. Apple wants to control the look and feel and behavior of every aspect of the phone. Does it run programs from Palm, Symbian, Windows? – No. Does it connect to iChat? – No. Does it have games? – No. Is it ambidextrous? – No. Does it have GPS? – No. Voice recognition? Voice dialing? Voice memos? – No, although this could change by June when the phone ships. Does it get onto the HSDPA (3G) high-speed Internet network that Cingular has rolled out in a few cities? – No. But Steve Jobs said a later version of the iPhone will — once there’s enough HSDPA coverage in this country to justify it. Does the Web browser support Flash or Java? – No. Will it play music over Bluetooth? – Unknown. Can you change the battery yourself? – No. You’ll have to send the phone in to Apple for battery replacement, just as with the iPods. Can it open Word and Excel documents? – No. (Steve Jobs says it can open PDF files, though.) Can you use it one-handed? – Yes, for some functions. But overall, it’s less convenient than on a phone with physical keys. Can I make a call while driving a car? – Not as easily as on a regular cellphone with programmed speed-dial keys. (Besides–MUST you?) Does the camera record video? – Not yet. Apple may add this feature by June. Does it connect to standard iPod accessories like car docks and speaker systems? – Yes! Does it work overseas? – Yes. It’s a quad-band GSM phone, meaning you can use it in almost any country (for an added fee, of course). Is there a Verizon version? – NO!!!! Will they make a non-cellphone version–a widescreen touch iPod? – Nobody knows. Apple doesn’t leak product info until it’s good and ready. That scrolling through lists thing is glitzy, but what if I have 3,000 names in my address book? – There’s also an alphabet “index tab� down the right side of the screen, so you can jump to another spot in the list. Is there a calendar? – Yes. Will it sync with Outlook? – No. What about airplane use? – It has a airplane mode (wireless off), just like any cellphone. Won’t the screen get smudgy? – It does, but you don’t see it except when the screen is off. The one I played with was pretty streaky, but wiping it on my sleeve cleaned it completely.
Web Developers, write thousands of codes each project. On each web development projects lies a series of little codes called Javascript. April 1995, when Brendan Eich started working on Javascript for Netscape Navigator browsers. The web scripting language was first released under the name of LiveScript as part of Netscape Navigator 2.0 in September 1995. It was renamed JavaScript on December 4, 1995.
In “Making Web Pages Come Alive” Brendan Eich said the following about how JavaScript came about:
I came to Netscape in April 1995, after seven years at Silicon Graphics and three years at MicroUnity Systems Engineering. Netscape was about a year old then and was looking for someone to work on a scripting language or some kind of language inside the browser that could be used to automate parts of a web page or make a web page more dynamic. Java had been around for five years at First Person and Sun, and had been retooled for the web in late 1994. Netscape was the first Java licensee, so the issue became: Can we do just Java, or do we need another language?
Eich attended the University of Illinois at Urbana-Champaign, where he received his master’s degree in 1986. He then helped found mozilla.org in early 1998, serving as chief architect. When AOL shut down the Netscape browser unit in July 2003, Eich helped spin out the Mozilla Foundation.
In August 2005, after serving as Lead Technologist and as a member of the Board of Directors of the Mozilla Foundation, Brendan became CTO of the newly founded Mozilla Corporation. Brendan Eich was named Web Innovator of the Year by c/net’s Builder.com in April 1998.
This exploit has been discovered which enables malicious users to upload valid PHP codes disguised is image files. Websites vulnerable to this attacks are website which accepts uploads of images, although this kind of exploit it is not exactly new, I am afraid some sites are still vulnerable due to bad security practices of their developers. Basically uploaded files are moved to a given directory. If the site then serves the uploaded images directly on their server, the malicious file can be executed via url.
The basic solution to avoid this problem is to either serve images only with actual extensions of image files (.gif, .png, .jpeg), or protect the upload directory to avoid direct requests to where the images are located.
Depending on your PHP setup, it may or may not be easy to protect your uploaded images directory. In Apache it can be done using a .htaccess file with lines like this:
<Files images>
deny from all
</Files>
Alternatively you can use other PHP functions to serve image files as images, and so, avoid triggering the execution of PHP scripts embedded in image files like these readfile.
Note the use of basename function to avoid injection of malicious paths. This way, only files from inside the images directory will be served, even if the original file named was forged to steal server sensitive files like /etc/passwd .
UFO - Greatest Story Ever Denied presents a provocative review of some of the most important UFO events since Roswell in 1946. Not only do we learn about such events as the Battle of LA and early military coverups, but interesting phenomena like RODs and invisible UFOs only detectable with infra red cameras. An amazing daylight video is shown demonstrating the detection of a UFO in infra red mode.
The story about UFO’s had amazed me through the years when I first learned about it. Movies such as Star Trek and Star Wars have given me clues how our current technology today would drastically change. The Gundam series from Japanese anime tells us a story how technology would control humans to a war for the benefit of a few people. Prison Break’s story tells us about an organization on US which is called “The Corporation”, which is exactly the same organization The Disclosure Project identifies. Steven Spielberg’s War of the Worlds explains us a coming future in which human kinds would be at War with something far more different from us. These stories seems to link and tells us a story that have been hidden from us as if it never existed.
Warning!
When you see cups on magic shows, don’t volunteer! Why? watch this!
Accidents really happen, magic must be performed with great responsibilities especially if the trick needs volunteer to finish the act. When I watched this clip, I was really shocked, I can’t believe a guy would do such a foolish act, not 100% it will work as it is thought to work and injured a unsuspecting volunteer. I am posting this video to warn others and especially magicians to think twice!
I am Filipino Web Developer, focusing on PHP in LAMP framework. As a kid, I spent a lot of my time exploring computers and computer games from Atari to PS, from INTEL 80286 - CoreDuo. I am happily married, with two kids. Currently working in Japan as an IT Engineer.