Create an Account
username: password:
 
  MemeStreams Logo

Curiouser and Curiouser

search

Acidus
Picture of Acidus
My Blog
My Profile
My Audience
My Sources
Send Me a Message

sponsored links

Acidus's topics
Arts
Business
Games
Health and Wellness
Home and Garden
Miscellaneous
Current Events
Recreation
Local Information
Science
Society
Sports
Technology

support us

Get MemeStreams Stuff!


 
I am a hacker and you are afraid and that makes you more dangerous than I ever could be.

WikiScanner on the Colbert Report
Topic: Society 5:24 pm EDT, Aug 22, 2007

Sorry Samy, Virgil, my former partner in crime, is now my hero.

WikiScanner on the Colbert Report


Wax's California Music Video
Topic: Technology 1:02 pm EDT, Aug 21, 2007

Spike Jonze rocks. As does this song.

Wax's California Music Video


Memestreams and HTTP Authentication
Topic: Technology 3:52 pm EDT, Aug 20, 2007

Update: Jeff feels my pain.

Here is how HTTP authentication is supposed to work:



In HTTP authentication, the browser uses a dialog box to get the user's credentials. It looks something like this.



A (perceived) downside to HTTP authentication is that web designers cannot control this dialog. Some people find this ugly nad its messes with website design and layout. As a result, many websites use what is called FORMs authentication, where the website collects a user's credentials in an HTML form, and submits them to the user.

Unfortunately, Memestreams does an RFC-violating combination of the two. It responds to resources that require login with a 401, but without specifying the WWW-Authenticate header to tell the browser how to send the credentials back.

What should happen is this:

Client                          Server
            -------------->
        GET /recommend/ HTTP/1.1

Client                          Server
            <--------------
        HTTP/1.1 302 Redirect
        Location: /login/?returnURL=/recommend/

Client                          Server
            -------------->
        GET /login/?returnURL=/recommend/ HTTP/1.1

Client                          Server
            <--------------
        HTTP/1.1 200 Ok

[user files in username/password]

Client                          Server
            -------------->
        POST /login/?returnURL=/recommend/ HTTP/1.1
        [post data with username and password]

Client                          Server
            <--------------
        HTTP/1.1 302 Redirect
        Location: /recommend/
        Set-Cookie: [set valid session cookie]

Client                          Server
            -------------->
        GET /recommend/ HTTP/1.1

Client                          Server
            <--------------
        HTTP/1.1 200 Ok


TreyChair.com - Multifunction task chairs for your desk, floor, home, or office.
Topic: Technology 12:59 pm EDT, Aug 20, 2007

Saw this today on Ars. Not sure how great it would be as an office chair (at least if you attempt to use it with a desk). But as a gamer/laptop chair, looks fairly cool.

TreyChair.com - Multifunction task chairs for your desk, floor, home, or office.


YouTube - Pearl Jam - Wishlist - SVT
Topic: Miscellaneous 6:44 pm EDT, Aug 17, 2007

Eddie Vedder is not an attractive man. But I do love this song.

YouTube - Pearl Jam - Wishlist - SVT


#@x!?ing JavaScript
Topic: Technology 5:47 pm EDT, Aug 17, 2007
var c=2;

var x=2;


switch(x) {

    case 1:
        alert("In 1");
        break;
    case c:
        alert("In 2");
        break;

    default:
        alert("default");
}

//displays 2!

In JavaScript you can define case blocks with expressions. ... wow... I mean... just wow.


And the answer is...
Topic: Miscellaneous 7:43 pm EDT, Aug 16, 2007

Can I write a recursive depth JavaScript parser in 1.5 days? The answer is yes, but it doesn't support the complete language yet. So far I don't support:

-anonymous functions
-the "with" statement
-"for...in" blocks
-labels and labeled continues (bet you didn't know JavaScript had labels!)
-any of the bitwise operators ( & | ^ << >>)
-assignment with operations ( += /= -= etc)
-the ?: construct
-array or object literals
-declaring and initializing multiple variables with a single var statement.

To be fair, I've just been writing the JS parser. I am using a JS tokenizer I wrote a few months back (though I've been finding/fixing a number of bugs in it today).


Now that's innovation!
Topic: Technology 6:58 pm EDT, Aug 15, 2007

Jill out of town for work... Check
1.75L Grey Goose... Check
12 Pack Dr. Pepper... Check
Visual Studio 2005 Team Edition... Check
EMCAScript Standard 3rd Edition... Check
Rhino Book... Check
Purple Book... Check
Working from home tomorrow... Check
Nidhi's super secret static analysis code... Check

Can I write a recursive descent JavaScript parser before tomorrow afternoon? Let's find out.


JavaScript Operator Precedence Chart
Topic: Miscellaneous 3:47 pm EDT, Aug 15, 2007

Below is a Operator Precedence and Associativity Chart for the JavaScript Programming Language.

Extremely useful! I don't have to keep craning my neck and switching back and forth to p 57 of the Rhino book.

JavaScript Operator Precedence Chart


Quotes at work
Topic: Miscellaneous 12:27 pm EDT, Aug 15, 2007

Nidhi: My Dragon Book can so beat up your Louden Book
Me: That's it Nidhi, I'm sick of your talking smack! It's compiler design duel time!
Ray: [walking by] ... [looks at us] ... *sigh* ... [keeps walking]


(Last) Newer << 52 ++ 62 - 63 - 64 - 65 - 66 - 67 - 68 - 69 - 70 ++ 80 >> Older (First)
 
 
Powered By Industrial Memetics
RSS2.0