Google+

Coraline

If you haven’t watched 500 Days of Summer or Coraline, go watch them. They’ve both been out for a while now.

It was really windy today. That’s why this picture’s really blurry:

Image: Photo0513.png

More pictures:

Image: Photo0263.jpg

Image: Photo0312.png

So which one do you like best?

Mooosic updates: Lots of new songs on Mooosic. The new ones are indicated with the *NEW* thing on their titles. Does anyone even listen to Mooosic? ._.

Freeing up Disk Space (4Nubs)

4 Ways to Free-Up disk space. (Without destroying your computer.)

1. Shadow Copies
Shadow copies were introduced back in WinXP days. They were geared towards big companies that had lots of important information. If someone deleted or modified a file and you needed the original copy back, shadow copies could get it for you.

It’s not as idealistic as it sounds. Shadow copying just makes periodic copies of files that you enable it on. So, instead of having 1 40KB word document, you have 10, from the past 10 weeks. Obviously, this method can take up a lot of disk space.

Most of us don’t really care about our data. And when we do, we’re smart enough to back it up somewhere else. But Microsoft has enabled shadow-copies by default with Windows Vista and Windows 7.

So, to fix this problem, you can limit the amount of space that Windows uses for Shadow Copying (also known as VSS).

>Resizing Shadow Copy Space
(This procedure only works on Vista and Win7.)

1. Open the start menu and type in Command Prompt. Right click the Command Prompt icon and click Run as Administrator. If a User Account Control dialog pops up, allow the Command Prompt to run.

2. In the elevated command prompt, type in vssadmin list shadowstorage.

You should get some results that look like this:

Image: 1.png

3. To resize shadowstorages, type in vssadmin resize shadowstorage /for=c: /on=c: /maxsize=400mb

But before you do that, make sure that the drive letters match. I recommend resizing it to 400Megabytes, but this is really up to you.

After you press enter, VSSAdmin should tell you that everything went OK.

Image: 2.png

Check your diskspace now. Did it go down far enough? If not, keep reading.

2. System Restore

One of the most useless features about Windows is System Restore. Most of the time, it doesn’t work. When it does work, it doesn’t do what you want it to. And the worst part is, it can take up a ton of disk space on your computer.

Just in case, Windows doesn’t let you delete the most recent restore point on your computer. However, you’re free to delete the hundreds of points that came before that.


>Resizing Shadow Copy Space
(This procedure only works on Windows XP, Vista and Win7.)

1. Open the Start Menu and type in Disk Cleanup. (In Windows XP, go to All Programs > Accessories > System Tools > Disk Cleanup)

2. Select the disk that you want to clean. (This should be the C drive.)

Image: 4.png

3. Disk Cleanup will start scanning. Just wait. :) It shouldn’t take too long.

Image: 3.png

4. You’ll get this fancy window with lots of options to free up space on your disk. But that’s not important. The important part is that other tab at the top. So, click the tab that says More Options.

Image: 5.png

5. In the bottom half of this new tab, you can choose to delete old Restore Points and Shadow Copies.

So, click that button, and watch them be deleted.

(Deleting Shadow Copies from this panel only removes them temporarily. In a few weeks, they’ll be back to start clogging up your computer again. To get rid of Shadow Copies permanently, use the method that I explained in part 1.)

6. Did that free up enough disk space? You’re welcome to try the options on the first pane of Disk Cleanup, but those aren’t as effective.

3. Paging File
If you have less than 2GB of RAM on your computer, skip this part. It won’t free up that disk space. Paging files usually take up 1.5x the amount of RAM that you have on your computer.

A long time ago, harddrive Megabytes were dirt cheap compared to Physical Memory Megabytes. (I mean a really long time ago. I mean, they were still using megabytes ._.)

So, Microsoft thought up of an idea to save their customers money. Why not use harddrives as RAM? (Btw, this idea is a.k.a. Paging Files or Virtual Memory) Well, first of all, Harddrives are hundreds of times slower than RAM.

But this post isn’t titled "How to speed up your computer". No. The point is, using your harddrive as RAM can take up lots of harddrive space. If you feel like you have enough RAM on your computer, you can lower the amount of space that is used for paging files.

>Changing the size of the Paging File

1. Right click my computer and press "Properties".

Windows XP Users:
2. Go to the advanced tab.

Windows Vista and Windows 7 Users:
2. There’s a pane on the left side of the window. Click where it says "Advanced System Settings".

3. Under the Performance section, click "Settings".

4. Go to the Advanced tab and under "Virtual Memory", click Change.

Image: 5.png

5. Here, you can set the amount of disk space that is used for Virtual Memory. Use the "Custom Size" option and enter the desired number in MegaBytes. I’m using 400MB on my C:\ Drive for Virtual Memory.

Image: 5.png

6. Don’t forget to restart your computer at the end!

7. If those three methods didn’t do enough to free up disk space, try this one last one:

4. Hibernation
Yeah. Hibernation. Like bears right?

No, not really. Hibernation saves everything on your RAM to your harddrive so that your computer starts up like BAM the next time you turn it on. It’s a good concept, but it also takes up a lot of disk space.

To disable hibernation, do the following steps:

>Disabling Hibernation
(This only works with Windows XP)

1. Go to Control Panels > Power Options.

2. In the Hibernation tab, uncheck the "Enable Hibernation" checkbox.

Disabling hibernation in Windows 7 and Vista is more complicated and I don’t recommend it if you don’t know what you’re doing. (Btw, click the link at the beginning of this paragraph to learn how to disable hibernation in Vista/7.)

If none of these methods have satisfied your needs, go buy a new Harddrive. Preferably, a bigger one. Alright?

-Roger

CSS Mini-Reference

CSS is the part of web-designing that makes your stuff look pretty.

You can apply CSS in a lot of ways.

First, you can put the CSS directly in a HTML tag by using the style attribute.

<div style="color:red;">This text is red!</div>

This code produces:

This text is red!

Don’t forget to put a semicolon (;) after each CSS statement.

You can also apply CSS using internal style sheets.

A typical HTML document looks like this:
<!DTD blah blah>
<HTML>
<HEAD>
(The CSS goes right here.)
</HEAD>
<BODY>
</BODY>
</HTML>

In the HEAD section of your HTML document, add these tags to indicate an internal style sheet.

<style type="text/css">
</style>

All of your internal style-sheet stuff goes between these two style tags.

You can apply styles by the tag-name (div, span, img, a). You can also apply them by the ID or the CLASS of the tag.

So, if you wanted to make all your links red, type this inside your <style> tags.

a{
color:red;
}

Tags can have ID’s and CLASSes. You can give a tag an ID or a CLASS by putting in attributes.

<div id="mydiv" class="redtext">RogerHub</div>

This div has a id of "mydiv" and a class name of "redtext". Remember that multiple elements can share the same class name but ID’s must be unique.

To style this div, you can use special identifiers that indicate ID’s and Classes.

#mydiv{
font-size:24px;
}
.redtext{
color:red;
}

This code makes the text "RogerHub" red and have a font-size of 24px.

Remember, periods go before class names and pound-signs go before ID names. (Remember, ID Number and Class Period)

Now that you know how to apply CSS tags, here are a few tags that are very handy:

Key: [tagname] - [possible values]
[explanation]


display - block/inline/none
There are more possible values than these three, but these three are all you need to know. Block makes an element as wide as it can possibly be. In other words, it will take up the whole width of the page. Inline makes an element as small as it can possibly be. Two inline elements can sit on the same line, but two block elements can’t. None just meant that the element is hidden. So you can’t see it.

color - red, green, blue, #FFFFFF, #000
This changes the text color. You can use normal color names or you can use 6-digit HEX Color codes. You can also use 3-digit HEX Color codes but 6-digit ones give you more choices for colors.

font-size - 12px 10px 2.5em 40%
This is self-explanatory.

font-family - Times New Roman, Courier New, Verdana, Arial
This is self-explanatory too.

text-decoration - underline none
Underlines the text if this is set to underline.

text-align - left, center, right, justified
This changes the alignment of the text that is inside the HTML tag.

height - 400px 200px 100%
Self-explanatory

width - 200px 900px 50%
Self-explanatory

background - url(images/bg.jpg) #FFFFFF top center no-repeat repeat-x repeat-y repeat
This is hard to explain, look for more info at
W3School’s tutorial.

An element has three things that surround it: margins, borders, and padding. The padding is closest to the element, followed by the border and then the margin. Padding take the background of the element but margins are usually transparent. Borders can be styled with different colors and effects. For more information on styling go to W3Schools Guide to Border-Styling.

To help you understand the element-box model, here’s a picture:

Image: box_model.gif

Borders can be set by the border CSS declaration. Margins are set by margin and paddings are set with padding.

There are also pseudo-identifiers that can be used to make cool effects. To make a really simple hover link, put this in your internal style sheet. (The <style> tags.)

a:link{
text-decoration:none;
color:#8c8c19;
}
a:hover{
text-decoration:underline;
color:#6fcce2;
}

So, here’s a sample page that you can learn off of:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
#red{
color:red;
}
.underline{
text-decoration:underline;
}
a:link{
text-decoration:none;
color:#8c8c19;
}
a:hover{
text-decoration:underline;
color:#6fcce2;
}
</style>
</head>

<body>
<div style="color:red;">This text is red!</div>
<div style="color:#FF0000;">This text is red!</div>
<div style="text-decoration:underline;">This text is underlined!</div>


<div id="red">This text is red!</div>
<div class="underline">This text is underlined!</div>

<a href="http://www.rogerhub.com/">The best website ever!</a>
</body>
</html>

Example Page

Have fun :)

-Roger

If you haven’t watched 500 Days of Summer, go watch it. IMDB link.

Image: Photo0505.jpg

Lol.. weird..

random

New Twitter!

Epically awesome:

New picture:

Image: Photo0496.jpg

(Off the cliff next to DB’s Kaiser Clinic.)
What do you think?

netsh interface ip set address name="Local Area Connection" static 192.168.0.100 255.255.255.0 192.168.0.1 1

(Sets IP Config. Good for brute-force network hacks.)
more info

-Roger

I have a habit of juxtaposing unrelated things, as you can see.

Sucks

There’s no perfect product.

On Newegg, RMA and DOA stories make you feel as if everything sucks.

There are lot of complaints about web hosting services and I had to look through hundreds to come to the right one.

So, if you’re wondering how much something sucks, ask the Internet. And when I say Internet, I mean Google.

In Google’s all-powerful searchbar, type in

"[Product] sucks"
(Make sure you include the quotes. This makes google search for both of the words together instead of separately.)

After you get your results, look for the number of result pages that you get. This is the suckage rating.

Image: Capture.PNG

So, to see how much Real Player sucks, do a Google search on "Real Player Sucks"

If a product has a space, or if it has multiple names, add the totals from all the searches combined.

For example,
IE Sucks returns 45200 results (at the time of writing) and Internet Explorer Sucks returns 13900 results. So, Internet Explorer’s suckage rating is 59100.

A search for "Windows Sucks" returns 66300 hits.

(Btw, I’m not saying that any of these products suck.)

Anything with a suckage ratio of above 100000 sucks. Bad.

40000+ means that it sucks moderately. Avoid this product if possible.

10000+ means that it sucks mildly. Either that, or the product isn’t very well known.

Anyways, you can be the judge of what sucks and what doesn’t.

-Roger

Which version do you like better? The one with glare or the one without?

Image: lighted.png

(Glare version)

Image: unlighted.png

(Non-Glare version)

I vote for the glare version.

Copy this to your website to play RogerHub Mooosic!

<iframe src="http://www.rogerhub.com/popup.php" height="180" width="190" style="border:1px solid #999999; height:180px; width:190px;"></iframe>

Captcha

Completely Automated Public Turing test to tell Computers and Humans Apart

Captcha is fairly common on the Internet. It’s used to prevent spam.

It looks like this:

Image: contribute_captcha.png

Yeah. You’ve probably seen it before. Well today, RogerHub got it’s first spam comment (Yay!)

So, I deleted it, and I put this fairly useless spam-prevention thing on all the comment forms.

So, have fun typing those 6 digit numbers.

Another thing:
I’ve added a pop-up Mooosic player that you can open by clicking "pop-up player" on the mooosic sidebar gadget. (props to waverly)

-Roger

Show-off picture

Image: Photo0460.jpg

It doesn’t look that great when you zoom in. So don’t zoom in.

I updated the Boggert About Page with Screenshots. Go check it out :)

Hijack a Computer! (4Nubs)

.. with the owner’s permission of course. Yes, it’s possible. And without fancy firewall configs too!

TeamViewer!

You don’t even have to install it! Click the Start Full Version - It’s Free! button and when you’re prompted, choose "Run" instead of "Install".

Image: Untitled.png

(Choosing "Run")

Both you and your partner need TeamViewer in order for you to hijack their computer.

You’ll both get a screen that looks like this:

Image: Capture.PNG

The to-be-hijacked computer should tell the hijacker the ID and Password that shows up on their screen.

The hijacker enters in the username and password, and bam. You’ve just hijacked their computer!

Image: Capture2.PNG

You can use their computer just as if you were sitting right beside them.

If you’re wondering, the wallpaper I’m using is from InterfaceLIFT.com.

Image: Photo0452.jpg

Same place as last time..

This morning, the mailman drove his mailtruck onto our street as he usually did. But once he came, the pouring rain suddenly stopped. And yes, it was pouring like crazy.

He stepped out, put our mail in, and drove on to the next house. And he kept going until he met all the houses’ mailboxes

Image: Photo0456.jpg

And when he left.. the rain came back. Lol

-Roger

Google and Bing

Yeah, I know Bing is old news. Bing is more visually appealing. And for general searching, both search sites are sufficient. But I still prefer Google for many reasons:

First, Google has been around for much longer. If you can’t get to google.com, it means that your internet is dead, not theirs.

And, Google hasn’t changed their homepage in years. There’s no ads (usually), and no fancy flash content (like in Yahoo and Bing).

Image: goog.png

Yeah. Very nice. If you have double or triple monitors and your desktop is spanned, it looks great.

Second, Google’s search algorithm is noticeably better. So, if I’m trying to get to Art of Problem Solving’s AMC 12 Archive, I would type in "AMC 12 Problems".

AoPS is dominant in archiving a lot of math competition stuff, so it makes sense that they would be first in the results.

Google Search

Image: Capture.PNG

There it is. First in line. So I get to what I need immediately.

Now, lets look at Bing.

Bing Search

Image: Capture2.PNG

So, great. I get a lot of stuff about the AMC competition. But I don’t get what I want. None of the first few results have actual AMC problems from past tests.

Maybe Bing treats the first word(s) in a query with more importance. So, "problems AMC 12" should get me where I want to go. Right?

Image: Capture3.PNG

Wrong. Again, Bing doesn’t give me what I want. So, off to Google. Yeah

Go Google :)

And Yahoo-users, Yahoo’s search engine doesn’t get me there either.

Image: Capture4.PNG

-Roger

70-680

So, I will be taking the 70-680 in January. Just because I have nothing better to do.

"[SCCM 2007] works with Windows Server 2008 Network Policy Server (NPS) to restrict computers from accessing the network if they do not meet specified requirements, such as having security updates installed."
-Microsoft 70-680 Training Kit

So, if you can’t access the network, how do you get your security updates? ._.

-Roger

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 absolute certainty that the hanging would be on Saturday. You would know this before you were told so on Saturday morning. That would violate the judge’s decree."

"True," said the prisoner.

"Saturday, then is positively ruled out," continued the lawyer. "This leaves Friday as the last day they can hang you. But they can’t hang you on Friday because by Thursday only two days would remain: Friday and Saturday. Since Saturday is not a possible day, the hanging would have to be on Friday. Your knowledge of that fact would violate the judge’s decree again. So Friday is out. This leaves Thursday as the last possible day. But Thursday is out because if you’re alive Wednesday afternoon, you’ll know that Thursday is to be the day."

"I get it," said the prisoner, who was beginning to feel much better. "In exactly the same way I can rule out Wednesday, Tuesday and Monday. That leaves only tomorrow. But they can’t hang me tomorrow because I know it today!"

... He is convinced, by what appears to be unimpeachable logic, that he cannot be hanged without contradicting the conditions specified in his sentence. Then on Thursday morning, to his great surprise, the hangman arrives. Clearly he did not expect him. What is more surprising, the judge’s decree is now seen to be perfectly correctly. The sentence can be carried out exactly as stated.

source

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.. :(