Virtual Memory – Windows

Mark Russinovich’s blog

Advertisements

Useful Javascript tools

Nice collection

Secrets of the JavaScript Ninja: http://www.amazon.com/Secrets-JavaScript-Ninja-John-Resig/dp/193398869X (Written by John Resig the jQuery author)

JavaScript the Good Parts: http://www.amazon.com/JavaScript-Good-Parts-Douglas-Crockford/dp/0596517742 (My fav JS book)

Building Scalable Web Sites : http://www.amazon.com/Building-Scalable-Web-Sites-Applications/dp/0596102356 (Flicker architecture)

Web Application Hackers Handbook : http://www.amazon.com/The-Web-Application-Hackers-Handbook/dp/0470170778 (Practical web security — Just started reading, but really good so far!)

CLR via C# : http://www.amazon.com/CLR-via-C-Jeffrey-Richter/dp/0735627045 (In depth C# fundamentals from the IL / Compiler Layer)

processingjs.org – making animations easier without flash

jsbin.com

jsdb – JSDB is JavaScript for databases, a scripting language for data-driven, network-centric programming on Windows, Mac, Linux, and SunOS. JSDB works with databases, XML, the web, and email. It is free and open-source. Use it as a JavaScript shell, to run CGI programs, or as a web server.

Mozilla reference on Javascript

Reversing a linked list

Copyright Donovan Rebbechi 2001. This tutorial may be distributed freely if this copyright notice is preserved. Changes require authors permission. The code is no-strings attached free software, it may be redistributed, modified, and used.

template
class List
{
public:
struct Node
{
Node(const T& data, Node* next=0):data(data),next(next) {}
Node* next;
T data;
};

List() : head(0) {}

Node* begin() { return head; }
Node* end() { return 0; }

void reverse()
{
Node* p = 0; Node* i = begin(); Node* n;
while (i)
{
n = i->next; //This saves the address of the next node
i->next = p;//// make the next pointer point to previous node
p = i; //// update previous node to point to “current”
i = n;// recall the address of the node after i
}
head = p;
}
private:
Node* head;
};

To reverse the list, we need to traverse the list, and modify the next pointer of each node, so it points to the previous node.

Circular lists: A circular list is a linked list that has the property that the last node in the list contains the address of the first node.

Kindle versus iPad

Technicalities aside, this article highlights the inherent difference between a “visionary” and a “market-leader”.

As they say, success is the first step of failure….resting on laurels is a sign of a loser. Not a winner.

Had Amazon shown even a little foresight, they wouldnt have waited for Apple to showcase its product.
C’mon – you had the first-mover advantage. Y didnt u capitalize on it?

Truly out-of-the-box – To be continued….

From my modest experience, I feel our ability to think out-of-the-box degrades and erodes over time because we get conditioned to what we see around. We start accepting the nature around us and beleive that it HAS to be this way. Over time, our accumulated beliefs and perceptions give way to choosing the “trusted” path, “staying in course”, “following the rules” and respecting “facts-n-figures”. The tendency to question authority takes a backseat.

Few memorable quotes spring to mind immediately –
1. Imagination is more powerful than Knowledge. – A. Einstein
2. All progress depends on the unreasonable man. – G.B.Shaw
3. What is proven now was once only imagined. – Dont know…but like it.

4. Incremental change leads to irrelevance – Google Cyrus Mistry

They have one idea in common. That it is not “wrong” to question what is generally considered “right” – because after all what we think is “right” is the outcome of a creative person’s genius to question his contemporary beliefs.

To prove this, I am now performing what Einstein called “thought experiments” with my four-year old son because he has no idea how the world works. In fact, he thinks he knows it all but the good part is – he’s not “conditioned” or “influenced” so his responses come straight from the heart. His answers sometimes make me feel “dumb” at best because I could have never thought about it that way.

Education and experience has taught me to understand the world the way its presented to me, not how it was meant to be.

Here’s some excerpts –
Me: How does the car wiper work?
Son: It works by itself when it starts raining and when we have our hands on the wheel.

Me: How would you create a machine that would give milk?
Son: I would make a cow.

Me: If you cant go the supermarket to get your snacks and were stuck at home, what would you do?
Son: I will make my own snacks

Me: What determines the speed of the car? (Remember he’s never seen me press the gas-pedal, but always seen me filling gas)
Son: If there’s more gas in the car, it goes fast. If there’s less, it goes slow.

Me: Why is it raining today?
Son: Because the forecast guy said so in the TV!