HNHacker News
TopNewBestAskShowJobs

krishna2

924 karma · joined February 26, 2007

Hi! I code stuff.

[ my public key: https://keybase.io/krishna2; my proof: https://keybase.io/krishna2/sigs/19698f1AZwcIC5PjLYv8xTLVXqdX1GPgZateUGhrQJY ]

hnchat.com:jYHr1sB8bqTVrBWZOXpd

meet.hn/city/us-Union-City

Socials:

- linkedin.com/in/krishna2

Interests:

AI/ML, Books, Entrepreneurship, Research, Running, Startups, Writing

---

submissionscomments
krishna2··on Ask YC: A way to measure page render time?
One more thing to do would be to add a start_time via js on the top of the page. Then, another at the tail end of the page - then use a javascript function to calculate the difference. This will give you the time for the server (or your web app). [You can also do some code to your controller or view - however you have it to generalize for all pages].

Now, this time is not the same as the time that firefox takes to display the page. For this, you will have to use the start time on head and then use a js function that will be called on body onload. This can now take the difference and show you the browser rendering time alone.

I have often seen that some pages get generated in the server in under half a second, but takes more than a few seconds for firefox to render. [For example, table with lots of rows, with lots of divs and esp. if there is any dynamic modification of nodes].

Another technique I use is to also display the times for both server/browser, only when I am logged in - and also use color codes to show the severity of the situation. [Like Green for under half a second, red for over a second..etc].

krishna2··on You weren't meant to have a boss
I have been on African Safari as well and that point instantly resonated with me. The 100s of 1000s of miles were theirs to freely roam around and do what they wanted - and the humans who came to see them are the ones in the cages (except that the cages moved around - in the form of a jeep with a guide).

I also used to wonder what is going on in the Lion's mind - some 10 jeeps surrounding it while it is resting in the shade and some oohs-and-aahs (and even though it is 1 pm, some idiot always has the flash-on by mistake).

krishna2··on Ask YC: What is the best Python book for a beginner?
If you already know any other (good) programming language, then "Essential Python Reference" by David Beazley is the way to go. For starters, if you are wondering, this is how I would do it in X, I wonder how to do this in Python - this book would get you the answer the fastest. There is also a detailed introduction (about 70 pages or so, IIRC) that will get you started as well.
← PreviousPage 6 of 6