Better HN
topnewbestaskshowjobs
Log inSign up

sri

143 karma · joined Feb 21, 2007 (19y ago) · 60 submissions

Submissions

comment 14y ago · link · parent

Surely vitess (http://code.google.com/p/vitess/) would be one. Written by and for YouTube. (I haven't looked at that code too closely though.)

comment 16y ago · link · parent

Would love to see a screen at the back also -- dual screens, if you will. That way I can have one app running on the "front" screen and another on the "back" screen.

comment 16y ago · link · parent

signed up. "Click on the best photo" showed me my profile photo (the same photo) 5 times.

comment 16y ago · link · parent

Please Don't Mistake My Apathy For A Lack of Understanding:

http://www.thisismobility.com/blog/2009/04/11/please-dont-mi...

comment 16y ago · link · parent

I have a Greasemonkey script in FF (http://defcraft.blogspot.com/2009/02/greasemonkey-search-hel...) that'll google for the current selection in a background tab when ALT-G is pressed. And it uses GM_openInTab API call.

Its equivalent in Chrome seems to be chrome.tabs.create. But when I tried that, I get this error: "chrome.tabs is not supported in content scripts". It seems that these "content scripts" aren't as powerful as extensions (http://code.google.com/chrome/extensions/content_scripts.htm...). Am I missing something here?

comment 17y ago · link · parent

Did this over the weekend. Hope it doesn't break things too badly!

7.

HN comments bookmarklet: sort comments, marks new comments on reload...(defcraft.blogspot.com ↗)

16 points · by sri · 17y ago · 4 comments

comment 17y ago · link · parent

I use a Greasemonkey script: select & hit Alt-A, searches Amazon in background tab. Alt-G, google. Alt-Y, youtube. etc.

comment 17y ago · link · parent

how do we know it is by the python software foundation?

comment 17y ago · link · parent

ruby uses < (less than) for inheritance; also regular expressions start & end with / (slash). you have %W, %w for arrays and %q, %Q for string. things like "class << self ..." looks weird to those new to ruby. also stuff like "a ||= ...". and of course pre-pending '@' for instance variables and '@@' for class variables.

also when i use regexps in ruby i then say "/re(g)ex/ =~ 'string' && $1". in python that would be multiple statements: "m = re.match('re(g)ex', 'string'); m.group(1)"

in python existing syntax (or more familiar syntax) is used to accomplish all the above.

comment 17y ago · link · parent

Try something totally different. It could be a totally different technology: say Ruby on Rails or maybe Flex/Flash & Actionscript. How about becoming a designer? Something you have never considered before or never thought of as worthwhile. Something that brings back the "lightness" feeling you seem to be missing.

comment 17y ago · link · parent

maybe because we now live in the google era -- easier/faster to just google it

13.

Blekko's ambient cluster health visualization(skrenta.com ↗)

30 points · by sri · 17y ago · 5 comments

14.

The Hacking Business Model(askmonty.org ↗)

4 points · by sri · 17y ago · discuss

comment 17y ago · link · parent

13th slide: http://cs343-spr0607.stanford.edu/materials/jeff_dean/

IIRC, this was a Stanford class, where they had invited a bunch of people to talk about software. The main site seems to be offline (http://cs343-spr0607.stanford.edu)

comment 18y ago · link · parent

there is lots of content (mit open courseware, lectures from many universities in iTunes, free books being released online) available for self-learners.

is there a "virtual university/classroom" website that helps different people to study together?

something simple & free -- like craigslist.

comment 18y ago · link · parent

see rx.el in (i think) the emacs-lisp directory

18.

John Ousterhout on Startup company culture(home.pacbell.net ↗)

2 points · by sri · 18y ago · discuss

comment 18y ago · link · parent

looks like pg in europe taking the picture of a old hotel from the outside

comment 18y ago · link · parent

The Art of Learning: A Journey in the Pursuit of Excellence by Josh Waitzkin (the movie Searching for Bobby Fisher was about him): talks about the higher stages of mastery. Amazon: http://www.amazon.com/Art-Learning-Journey-Pursuit-Excellenc...

21.

Wanted: A Name For High-Tech Grief (Don Knuth)(www-cs-faculty.stanford.edu ↗)

10 points · by sri · 19y ago · 7 comments

22.

Is Greed Good? by John Stossel [6 part YouTube video]

5 points · by sri · 19y ago · 11 comments

comment 19y ago · link · parent

very inspiring, pmarca! with your blog -- you have given a lot to the startup geeks! and with this, you have given something amazing to your local community. Thank you. and looking forward to your "fondest hope"!!!

24.

That CMU professor's Last Lecture on Google Video(video.google.com ↗)

2 points · by sri · 19y ago · discuss

comment 19y ago · link · parent

oops, accidentally clicked the down bar (making your comment 0 points) while scanning thru the newcomments section. sorry, can't seem to undo it :-( apologies!!

comment 19y ago · link · parent

trying to confuse the competition? :-) (where XXXXXXX is the site name and YYYYYYY is the session id (?)).

looks great though!!

https://auctomatic.com/app/XXXXXXX_run.py?=YYYYYYYY

https://auctomatic.com/app/XXXXXXX?_main.asp=YYYYYYYY

https://auctomatic.com/app/XXXXXXX?_autoexec.bat=YYYYYY

https://auctomatic.com/app/XXXXXXX?_run.arc=YYYYYYYYYY

https://auctomatic.com/app/XXXXXXX?_dispatch.fortran=YYYYYYY

27.

Jon Bentley's Beautiful Code Google Talk(video.google.com ↗)

10 points · by sri · 19y ago · discuss

comment 19y ago · link · parent

I made this http://defcraft.org/hacks/pycmds/pii.py to help define "commands" in the interactive interpreter. Commands like "ls" and "h os".

"ls" is a simple command -- invokes the Unix command "ls -l". A more complicated one: "h os" -- run help on the os module (just like "help(os)"). This is kinda tricky because "h os" is actually a syntax error in Python. When interactive, I catch syntax errors and see if they are user defined commands, in which case I execute the desired command. This works for Python 2.5, but shouldn't be too hard to port to Python 3.0.

I briefly looked at IPython, but that seemed to complicated for my needs.

(Also, http://defcraft.org/hacks/pycmds/strftime_helper.py uses the above file to help the user with strftime spec usage. I can never remember all the special characters.)

comment 19y ago · link · parent

Here are the languages that have big communities: Perl, Python, Ruby, PHP, Javascript, C#/VB.NET and Java.

Subscribe to lots of blogs from each community. (Many of them have planet aggregators like "Planet Python" and "Planet Ruby".) Also visit local user groups, wherever your are.

Read/visit them for a while -- say a month or two. Whichever community makes you go, "wow, that's cool" -- join that community and learn the language. You can also interact with those communities via Google Groups.

Lots of people will say -- "that's easy" or "this is elegant" or "that language sucks". Feel free to ignore them.

12