Windows XP

The day it left, Windows XP became the most hyped-about operating system on the planet.

Everywhere I went, XP. Every tech site, XP. Every Google+ community, XP. This twelve year old operating system may be going, but it’s not going quietly.

Indeed, there is stuff saying XP isn’t going at all. The governments in UK and Netherlands have purchased extended support from Microsoft – meaning they’ll get critical updates so long as they continue to pay for them.

Then there’s the fact that most "tech support" people, at least the ones I see, just install pirated versions of Windows XP onto their client PCs. With Service Pack 2. And automatic updates turned off. On PCs that can run 32-bit Windows 7 easily.

And since I’m tech support for all the people I know… let’s just say I’ll be cleaning up a lot of computers in the coming few months. *sigh*

Yet another website update

Yes, I know, nobody (except for a few people I happen to know) looks here; why would anybody look in this teeny corner, leaving behind the vast realms of the Internet? No idea. But I still want to make my corner look better. Know why? Cause it’s mine. Yes, mine. true; belongsTo(me); I don’t think I need further clarification.

So if it’s mine, why the * { float:left; } can’t I make it look good? (Note: * { float:left; } has been used in place of the noun “hell”. Do not, under any circumstances, use this code in real life.)

So, I added a new font for headings (Yanone Kaffeesatz), cleared up some issues, and eradicated border-radius. I’m not sure if I should have done the last one, but it looks good. Also, I have made the site better for mobile browsers, and fixed a problem with lists.

As always, it’s new.

(Yet) another reason to get rid of Windows XP

So you got your aging Windows XP PC up and running once again. It’s got the latest XYZ Antivirus, a firewall, uses Firefox, and is locked down to a standard user. Sure, in April 2014 it’s going to become outdated, but who cares about that? It works, right? And even is MS doesn’t update it, it’s secure, right?

Wrong.

I was able to get into a Windows XP computer, password protected, without knowing the password. I got access to the administrator account, and was easily able to remove the firewall and antivirus, and add a couple of viruses.

How so? It was simple. At the lock screen, press CTRL + ALT + DEL twice. Now login with username Administrator, password none. Then, open a Command Prompt and enter the command net user NSDCars5 hi, where NSDCars5 is the username of the account you wish to access and hi is the new password. You will see a message “The command completed successfully.”

Here, you should note that this “Administrator” guy has full access over everything a user can access on the system without using special tools like Unlocker or starting to dabble with permissions. So you can easily remove the antivirus and firewall, and installing a fake antivirus was easy as hell after that.

The PC was upgraded to Windows 7 after that (by me, LOL), but I’ll get a video of this in action soon enough, so stay tuned.

Sorry, webDev() people – another article not related.

Website update

Another website update, this time a relatively minor one. The first thing you’ll notice is the lack of the “Works” page link on the header. I didn’t like it, nor did I update it, so I didn’t see a reason to keep it.

The next big change: on popular request (two people asked), I’ve added a Subscribe button at the bottom. I haven’t tested it yet, but there is a 94.234802384028% chance that it’ll work. Just don’t depend on it to save your life.

There’s also a couple of minor changes, mainly to improve font legibility on lower-DPI computers running Chrome, and I’ve added IE8 compatibility. Meh, not important. The point is, it’s new.

genRandWord: Generate a random word

So it’s not like we’re running short of words in the English language, but I thought it’d be fun. Some time later, I was using Node.JS to generate a random word. The first real word from this thing was “token”. This thing is basically an array of consonants and consonant combos (like ‘st’ or ‘kr’), vowels and vowel combos (like ‘ae’ or ‘ou’). Whenever you click the button, a random selection is made, a random length is chosen, and a random word is formed.

Above your head? No worries, just go and try it out here: http://nsood.in/rand-word/ The JS source is linked into the footer.

Why I think truly smart computers are impossible

Unless you’ve been living under a rock, you probably know Iron Man – Tony Stark and his voice-controlled assistant, Jarvis. I’m sure many of you (including me) dream of an assistant who does what you want, can understand the various accents around the world, and doesn’t repeat a fixed set of dialogues but actually talks – uses its brain and stuff.

Sorry to burst your bubble, but it’s not going to happen any time soon.

You might be thinking how a certain amount of code can do anything, or how I’m a pessimist who needs a dose of reality, whatever. But the fact is, I’m not a pessimist, and none of our current (or soon-to-be) computers will not be able to be smart, no matter how good the computer is. Why?

Binary.

Binary is a simple 0 and 1 system – on or off, all or nothing, true or false, experiment successful or lab explosion. Take your pick. This has its advantages – CDs work on this principle, so do all modern computers. In fact, this webpage, the stuff being displayed on your computer, is at its core, a bunch of 0′s and 1′s.

However, all of us know that life is much more than yes or no. Computers don’t know what all this ‘colour’ thing is – for them, it’s all black and white. And that’s the problem; computers have the wrong base, and if the base itself is wrong, it’s certain that the parts above it will be too.

Of course, all this can be fixed by making a huge program with if-elses for every single possible situation ever, but that doesn’t seem too much possible, unless you’re God (if you are, do you exist?).

So yeah, meaning to get that out for a lot of time, and of course the only source here is me, so if you find anything wrong, feel free to correct me in the comments section.

PS: Sorry if you were hoping for something related to web development.

Major Design Overhaul

Hey everybody. As you might have noticed, I have changed the design of my website quite a bit. Actually, I have migrated from the normal WordPress “Twenty Thirteen” theme to one I made myself. Of course, since it was made during a single day, bugs which I still haven’t noticed might be visible to you. if you see something like this, please report this to me at once. Any bugs are okay; it’s new, okay?

CodePen: Where I do the real work

So hey. You might have noticed that I don’t put anything much on my blog. So where is all my work? What have I done? Here comes the code, and the Pen.

CodePen is a work of Chris Coyier, which allows you to make web-related stuff (you know, HTML, CSS, JS, jQ, stuff) and share it with everybody. So here’s where I keep most of my work – at CodePen.

And for those who are interested, my CodePen is here.

Grade Calculator: Enter your marks, get your grade

So, firstly, Happy Diwali, everybody! As a Diwali present for every DPS Vasant Kunj student (aren’t I awesome?), I’ve made a grade calculator. No need to wait for your report card to get your grade in a particular subject! Just feed in your marks, and you’ve got your percentage, along with the grade (A1-E2), in seconds! You’ll find the calculator here:

http://www.nsood.in/grade-calculator/index.html

It’s made in (very basic) CSS, HTML, and, most importantly, a mixture of jQuery and JavaScript. So, head over to the above URL, and get your grade! Once again, happy Diwali! :D

Single page website using jQuery

I’ve been working on this for quite some time, and I’m pleased with extra cheese on top to show you what I’ve hacked on. It’s basically a web page with content of multiple pages inside. It uses super simple HTML, CSS and jQuery. It may not be the best thing I’ve ever made in the history of mankind, but it’s pretty cool.

Making it:

  1. Firstly, make an HTML page. My code:
    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="utf-8" />
    <title>Awesome stuff</title>
    <link rel="stylesheet" type="text/css" href="style.css" />
    </head>
    <body>
    <header>
    <h1>Sample Single-Page Website</h1>
    <nav><a href="#" class="home-link">home</a><a href="#" class="cont-link">contact</a></nav>
    </header>
    <article>
    <h1>Home</h1>
    <p>I'm Naman Sood, a human being currently living on the Earth. I soon plan to shift to Mars, as soon as NASA finds some water there (I don't want to lessen the Earth's already low water resources by taking a water bottle there). I'm cool that way.</p>
    <p>I like to code and draw. Making web pages seems to be the only thing that fits into both these categories. Also, I seem to do it pretty nicely. This also has the pleasant side effect of the molecules of my body <em>not</em> exploding at the speed of light, so yeah, I like it.</p>
    <p>I'll tell you something really funny. This page is one of my concepts, namely making a single-page website without a scroll bar taller than Mount Everest. Hope you enjoy it.</p>
    </article>
    <footer>
    &copy; 2013 Naman Sood. All rights reserved.
    </footer>
    <script src="jquery.js"></script>
    <script src="script.js"></script>
    </body>
    </html>
  2. Now, as you can see, the contents of the first page are enclosed in an <article> tag. I could’ve used <section> instead, but I wasn’t too sure of it. Let’s add a class to the article so we can differentiate between different articles.
    <article class="home">
    ...
    </article>
  3. Now let’s add the Contact page. The finished HTML looks somewhat like this:
    <article class="contact">
    <h1>Contact</h1>
    <form method="post" action="index.html">
    <p>Seems you want to contact me. Well, do as you please. This form doesn't work anyway.</p>
    <input type="text" name="name" placeholder="Name" /><br />
    <input type="email" name="email" placeholder="E-mail" /><br />
    <textarea name="message" placeholder="Message"></textarea><br />
    <input type="submit" value="Submit" />
    </form>
    </article>
  4. We’ll need to hide the contact part when it’s not in use, so let’s give it display:none;
    <article class="contact" style="display:none;">
    ...
    </article>
  5. Now for the part you’ve been waiting for… the jQuery!
    $(".home-link").click(function(){
    $(".contact").fadeOut(500,function(){
    $(".home").fadeIn(500);
    });
    });

    For the code-illiterate, this means, when anything with class “home-link” is clicked (read: the home link in our header), the contact part is hidden and the home page is shown. This is already done by default, and exists only so the user can get back from the contact page. Let’s do this for the contact link as well.
    $(".cont-link").click(function(){
    $(".home").fadeOut(500,function(){
    $(".contact").fadeIn(500);
    });
    });
    See above explanation.
  6. Now, we can’t have a page that looks crap. So let’s not make it look crap, by adding CSS.body { margin:0; }
    * { font-family:'Roboto', 'Droid Sans', 'Tahoma', 'Verdana', 'Ubuntu', 'Helvetica', Arial, sans-serif; }
    article { width:70%; margin:auto; }
    footer { width:100%; text-align:center; margin-top:3em; }
    header { text-align:center; }
    header a { color:inherit; text-decoration:none; display:inline-block; padding:0 1% 0 1%; }
    header a:hover { text-decoration:underline; }
    input[type="text"], input[type="email"], input[type="password"], textarea { width:70%; }
    textarea { height:5em; }
    @media (orientation:portrait) {
    article { width:90%; }
    header a { padding:0 5% 0 5%; }
    }

    And done!

See this page for the final result, along with some cool comments in the stylesheet :D