Google+

Monthly Archives: December 2009

Paradox

[A man condemned to be hanged] was sentenced on Saturday. "The hanging will take place at noon," said the judge to the prisoner, "on one of the seven days of next week. But you will not know which day it is until you are so informed on the morning of the day of the hanging." The judge was known to be a man who always kept his word. The prisoner, accompanied by his lawyer, went back to his cell. As soon as the two men were alone, the lawyer broke into a grin. "Don’t you see?" he exclaimed. "The judge’s sentence cannot possibly be carried out." "I don’t see," said the prisoner. "Let me explain They obviously can’t hang you next Saturday. Saturday is the last day of the week. On Friday afternoon you would still be alive and you would know with… more →

PHP Photos v2

Version 2. -Directory based. No database needed. -Stack overflow protection -One level directories -Password protected directories Don’t forget to .htaccess the admin panel. Attachment: PHP Photos v2.rar -Roger

PHP Photos

Photo uploading/sharing script in PHP. No Database Needed. Runs on random numbers (for increments) and directory listings. I tried to make all the code easy to understand. Have fun :) Attachment: Photo v1 packed.rar (I used some external libraries like JQuery and this Photo-manipulation one in PHP. Credits to their authors.) You should put a .htaccess password on the admin directory asap. This took me 43 minutes to make.. :(

Why meat is bad for you

So, in English, we had to do a persuasive speech where you and a partner would take opposite sides on an issue and debate about it. I ended up arguing about something that most people don’t pay attention to: Meat. Yeah, everyone eats meat. Well, except for those select few that have realized the truth. Meat itself isn’t bad for you or the environment. But the processed and manufactured meats that we all eat today cause huge problems in the world. First off, it’s been proven that vegetarians are healthier and live longer than normal people. And if you think about it, it makes sense. Vegetarians aren’t all skinny and malnourished like you think they would be. Most vegetarians are actually healthier and more fit than the majority of the population. And yes. Even though you avoid meat and pills, you can still get all your… more →

Rain

So, it rained today, which is really cool since we don’t get a lot of rain here in LA. Everyone was using umbrellas and everything felt a lot more lively since the weather did something new for a change. There are some aquaphobes at school that have their umbrellas out even though they’re walking under the hanging. I mean, what’s the point of that? You’re not going to get rained on if you’re underneath the roofs. Maybe they just enjoy drying their umbrellas on other peoples’ heads. If you’re going to use your umbrella, stay out in the rain. Otherwise, put it away... Rain makes for some nice pictures: Yeahh.. and my desktop gadget that tells me the weather changed too: I wonder what the hail/snow one looks like... -Roger Me: Okay, just tell me your IP and MAC address. Stranger: But I use Windows... Haha.. yeah that wasn’t… more →

Chinese to Unicode

If your programs use XML, HTML, RSS, or anything based in XML, there’s a tool that will encode non-english characters into XML-safe UTF versions. http://pinyin.info/tools/converter/chars2uninumbers.html Yeahh, have fun. source

Seven Drivers

(Technical post. Normal people: Don’t even bother reading this.) The title is a bit ambiguous but I’m talking about the hardware drivers in Microsoft Windows 7. Yeahh. No more googling for drivers, I’m serious. I already told you about Win7 and my network card. If you don’t remember, Windows 7 detected my network card and installed the driver immediately. As opposed to XP where I had to look for drivers. So, the same thing happened with my printer today. But that’s not all. I have a HP Printer hooked up to a Windows 7 32bit computer. But my own computer is 7 x64. Yeah, crap. I thought about loading the 64-bit driver on the 32-bit machine so that my 64-bit computer would work with the shared printer. But Windows pointed me back to Google again.. sighs. So, I share the printer anyways and I go back… more →

Paper Cranes

Sad... SADAKO AND THE PAPER CRANE 2005 is the 60th anniversary of the bombing of the Japanese cities of Hiroshima and Nagasaki, using nuclear weapons. The United States military dropped an atomic bomb on Hiroshima at 8.15am on 6 August 1945. Another atomic bomb was dropped on the city of Nagasaki at 11.02am on 9 August 1945. In Hiroshima, 90,000 people were killed immediately. In Nagasaki, the nuclear blast instantly killed 40,000 people. By the end of 1945, over 145,000 people had died in Hiroshima, and another 75,000 people had died in Nagasaki. Tens of thousands more suffered serious injuries. Deaths among survivors of the bombings have continued over the years due primarily to the effects of radiation exposure. On the 60th anniversary of this act of terror, people around the world are saying “Never Again!” They are calling for nuclear disarmament by all… more →

JS4Nubs: Random Scripts

Here’s some random scripts that you can use on any webpage. Just type them in the Address Bar (Like you would do with a URL) and hit enter. (Extra random useless space) (more space) (Like this.) Change the font color to red: javascript:document.getElementsByTagName("body" )[0].style.color="red"; void(0); Make the text enormous: javascript:document.getElementsByTagName("body" )[0].style.fontSize="2em"; void(0); Infinite Spam: (Don’t try this.) javascript:while(true)alert("SPAM"); Spam until you enter the password: javascript:var password="123456"; var text=prompt("What’s the password?"); while (text!=password)text=prompt("What’s the password?");void(0); Edit the page that you’re looking at: javascript:document.body.contentEditable=’true’; document.designMode=’on’; void (0); Random Wheel: (This one isn’t mine) javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.getElementsByTagName("img"); DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position=’absolute’; DIS.left=(Math.sin(R *x1+i* x2+x3)*x4+x5)+"px"; DIS.top=(Math.cos(R *y1+i*y2+y3)*y4+ y5)+"px"}R++}setInterval(’A()’ ,5); void(0); Random Number: (Between 0 and 1) javascript:alert(Math.random()); Go to the the best website ever: javascript:window.location="http://www.rogerhub.com/"; Learn more about JavaScript

Random Thought

Google "ISO". You’ll be surprised at what it stands for.. I guess IOS just sounds weird. Right?

NET4Nubs: Hidden Network Shares

Each computer on a network has an IP Address. But you probably already knew that. You might know that most home and corporate networks share one external IP while separate computers have unique internal IP’s. You probably know how to find your own Internal IP. If you don’t, here’s how: Start Menu > All Programs > Accessories > Command Prompt (Run as Administrator) Type in: ipconfig And there it is! (.. that retarded red dot made the picture have that weird whiteness at the top) Well, you probably know that you can access the printers and shared folders on that computer by going to \\IPADDRESS So, \\10.10.10.104 would bring up a list of my resources. But did you know that you can access the computer’s harddrives using hidden shares? Well, maybe you knew that. If you didn’t, then here’s how you do it: \\IPADDRESS\C$ The dollar sign ($) at the end of the address means that this… more →

SpeedyFox

If you’re using Mozilla Firefox (which you should be), you might notice that it starts up a little slower than Chrome or Internet Explorer. If it’s getting unbearably slow, try SpeedyFox. After you’re done downloading, you’ll get something that looks like this: Close Firefox and click the "Speed Up my FireFox" button. (But come back to RogerHub later ) That’s it. Don’t feel a speed change? You need a new computer.. I’m just kidding. Yeah -Roger