Weblog

Wednesday, May 07, 2008

  • meta judging

    I've got a random question. There are people that say they don't like it when people judge other people for being a conservative, liberal, too fat, too skinny, etc.

    However, aren't these people just meta judging, in that they're judging people that like to judge other people?

Friday, May 02, 2008

  • detroit sports!

    Things are looking up for Detroit sports!

    The Wings just swept the Avalanche by winning 8-2 on the road to advance to the Western Conference finals.

    The Pistons closed out the 76ers with a 100-77 rout to reach the Eastern Conference semi finals.

    The Tigers are only 1.5 games back from the White Sox in the AL Central after starting 0 for 6.

    Thankfully the Lions aren't playing.



Thursday, May 01, 2008

  • my first greasemonkey script - change_stupid_mailto_to_webmail !

    I've been looking for apartments on Craigslist lately and I got sick of clicking on the mailto links and having stupid outlook express open up. I hate Outlook, and I love gmail. So I decided to do something about it. Thus, my greasemonkey script change_stupid_mailto_to_webmail was born.

    change_stupid_mailto_to_webmail, codename "sexual healing", parses all mailto links on a page and changes them over to gmail links. So if you click on a mailto link it'll take you to the gmail compose page with all the fields filled out properly.

    To use change_stupid_mailto_to_webmail, you need to
    1. Firefox
    2. Greasemonkey extension for Firefox
    3. Go to the script page here and click "install this script" in the top right
    If you try it out, let me know what you think either here or on the script page. I tested it a bit, but not for every possible mailto link so there could be bugs. Also, I'm not quite sure what the best way for people to enter their own webmail links is, so suggestions are welcome. The code is below. If you see any bugs, or places I could improve it let me know.

    ************************ EDIT *********************
    I gotta fix one line of code that's really really slow (see first comment), and so I'd suggest not installing this until then.
    **************************************************

    <code>
    // ==UserScript==
    // @name           change_stupid_mailto_to_webmail, codename "sexual healing"
    // @namespace      vikas_reddy
    // @description    changes mailto links to point to a webmail of your choice (I'll generalize this eventually)
    // ==/UserScript==

    function getmailtoproperty(source, startIndicator, endIndicator)
    {
        var startPosition = source.indexOf(startIndicator);
        if(startPosition == -1) return "";
        startPosition += 1;
        var property = source.substring(startPosition + startIndicator.length,source.length);
        var terminationPosition = property.indexOf(endIndicator);
        if(terminationPosition == -1) terminationPosition = property.length;
        property = property.substring(0,terminationPosition);
        return property;   
    }

    var links = document.getElementsByTagName('a');
    var x;

    for(x in links)
    {
        var href = links[x].href;
        if(href != null && href.substring(0,7) == "mailto:")
        {
            var address = getmailtoproperty(href,"mailto","?");
            var subject = getmailtoproperty(href,"subject","&");
            var cc = getmailtoproperty(href,"cc","&");
            var bcc = getmailtoproperty(href,"bcc","&");
            var body = getmailtoproperty(href,"body","&");

            links[x].href = "https://mail.google.com/mail/?fs=1&view=cm&shva=1&to=" + address + "&su=" + subject + "&cc=" + cc + "&bcc=" + bcc + "&body=" + body;
        }
    }
    </code>
    Currently Listening
    Finding Forever
    By Common
    see related

Monday, April 28, 2008

  • random thing i miss ...

    is working on various projects with Dinkar and Andrew, two of the smartest and most fun guys I know from college at U of M, in Markley (aka, Dinkar's lair). Despite the fact that some of the projects were from worthless "technical communication" classes, I still had a good time.

    I still can't believe I somehow got both of them, and myself, to actually work on this idea for gas stations that I came up with. The idea was that while you were pumping your gas, you could check weather, and see what stuff was available for purchase inside the gas station store. You could pay for gas and your items and pull up to a window to get them and then drive off. Worst. Idea. Ever.

    We probably should have thought a little more about it, and I'm sure we could have come up with something better, but we had fun working on it and other projects. Together we actually made it sound and look pretty decent. Oh, and our team name was "GasTech". I forget who came up with that. We still use that name today for fun.

    GasTech must have done something right, because Dinkar is now getting his MBA from Harvard and Andrew is at law school at Notre Dame (it's too bad it had to be Notre Dame, but it's a great law school unfortunately).

Sunday, April 27, 2008

  • haircuts suck

    I've gotten maybe 2 good haircuts ever in my life. Both times were when my sister was with me to supervise and make sure things didn't go wrong.

    When I don't have her around, what happens is my hair gets long and looks decent (at least to me), and then I go in for a "trim" and end up getting it all cut off. I always think, "maybe this time it'll work out!" but it always fails.

    For example, here's me before my last haircut:



    My hair kept my head warm and kept the sun out of my eyes. Notice how my eyes are lively and full of mirth and wonder. My hair was like a friend. An inanimate, shiny, long friend that lived on my head. And what did I do to my hair? I got a haircut. I figured something might go wrong so I took a picture before.

    After:



    If you look into my eyes you can see that I felt like less of a man after. Also notice the ridiculous amount of fucking gel they put in my hair even though I told them I didn't use hair gel. My hair hated me and probably called me a douchebag, and rightfully so.

    I think from now on I'll never get a haircut if my sister isn't with me.

Chatboard (13)

  • i can't believe you met tobias, i'm so envious. did you zing your arrow into his buttocks?
    • Posted 3/23/2008 9:23 AM
    • by Michael
  • Thanks for accepting me as a friend - it finally found its way through the system LOL
  • Happy B-day, Vikas!
    • Posted 1/19/2008 1:50 PM
    • by sean
  • just so you guys know firefox v.3.0 is a problem with the editor. type a blog entry and then click edit html. blog post disappears! no fun! oh well! keep up the good work! ditch the minis.... trouble free posting should be a given! peace! sean
  • Hai, ninjas all the way, baby.
  • i vote for pirates
  • Vikings.
  • pants suck
    • Posted 10/11/2007 7:44 PM
    • by vitox
  • Arrgh. I like this question.
  • ninjaaaa
  • hello
    • Posted 9/21/2007 6:16 AM
    • by vitox
  • man i hate pants
    • Posted 6/29/2007 3:13 PM
    • by vikas
  • hi vikas! happy late bday!! you're so old now ;) [ive been telling people that i'm 23 for a few months now, i don't know why...i can't keep track of my own age] so i was trying to embed videos on my blog, and i failed horribly... i should know how, i'm ashamed of myself! help, please! also, are
    • Posted 1/23/2007 7:03 PM
    • by relsun
  • Visit vikas's Xanga Site
    • Name: Vikas
    • Birthday: 1/19/1984
    • Gender: Male
    • Member Since: 3/27/2002
    • True Lifetime
Company Blog: Fluxcapacity.net

My Pulse

Weblog Archives

Don't worry - your calendar is here… to see it in action just click "Save" above and refresh the page.