HNHacker News
TopNewBestAskShowJobs

nirs

124 karma · joined February 21, 2007

submissionscomments
nirs··on In defense of linked lists
Typically you keep a list entry in the struct: https://man7.org/linux/man-pages/man3/stailq.3.html#EXAMPLES

The same list entry can be moved between several lists using the same type.

If the struct need to be in multiple lists in the same time you can keep multiple list entries in the same struct: https://github.com/freebsd/freebsd-src/blob/69413598d2660054...

nirs··on New Ways to Be Told That Your Python Code Is Bad
Theses are good examples for not using ternary expressions. The code looks wrong even if it is correct, and it is hard to follow.

There is a very simple rule avoiding most of these issues - if the ternary expression does not fit in one line, use if/else.

nirs··on An efficient way to make hash maps with insertion ordering
p and q are the same file now, but after you change current directory their are not. They should never be equal.
nirs··on On Privacy versus Freedom
Can you explain how GPL prohibits distribution via app stores?
nirs··on Ask HN: Good python code for code reading
twisted is very clean and readable.
nirs··on Smjörið er brætt og hveitið smátt og smátt hrært út í það, þangað til það er gengið upp í smjörið.
נחמד.
nirs··on Daring Fireball: Apple Needs a Nikon
He got it wrong; Apple is Nikon of course. Apple needs a Cannon :-)
nirs··on Please tell us what features you'd like in news.ycombinator
It could be nice to have a way to change your password.
nirs··on Ask YC Hackers: Best text for learning to develop apps for Mac OS X
This is a nice web page for starting up with cocoa: http://andymatuschak.org/articles/2007/09/09/getting-started...
nirs··on Ask YC Hackers: Best text for learning to develop apps for Mac OS X
Opera and Google Earth are good examples of such apps - they suck. Both have non native and ugly user interface. So if you your app does more or less what other apps do, but looks like this, people will prefer the native cocoa apps.
nirs··on Ask YC Hackers: Best text for learning to develop apps for Mac OS X
AppleScript is nice tool for special jobs, but you do not like to write complete apps with it. It is too annoying to write, slow and hard to debug. Use it to script other apps.

If you are looking for easier development environment, try pyobjc: http://pyobjc.sourceforge.net/

nirs··on Ask YC Hackers: Best text for learning to develop apps for Mac OS X
If you want to create Mac OS X apps, forget about multi platform stuff - your customers do not care if your app runs on other platforms, and they will ignore your app if it does look and behave like a great Mac app.
nirs··on Ask YC Hackers: Best text for learning to develop apps for Mac OS X
This is a great book to start with. After you finish it, this one is also good: http://www.amazon.com/Advanced-Mac-Programming-Core-Unix/dp/...
nirs··on 1 word in beta invite email subject reduces conversion by 14%
Interesting, out of 28 voters, 9 voted up :-)
nirs··on 1 word in beta invite email subject reduces conversion by 14%
Lets see how it goes :) http://reddit.com/info/2z6fy/comments
nirs··on What does YC think of "JihadOnYou.com" ?
Stupid but well done. Nice readable fonts, really easy to use.
nirs··on Hacker Music?
Nothing like silence.
nirs··on Apple Loves Inconsistency
This is true also for their desktop apps user interface. This trend started with Mac OS 9, when QuickTime started to use that stupid brushed metal theme. Currently there few themes in Apple apps; Aqua (Mail), brushed metal (Safari), iApps (iTunes) and pro (Final Cut).

This make it tricky for 3rd party apps - you have to ask yourself which group your app belongs to. If you want to create iApp or Pro interface, you have to simulate the design because there are no ready made interface elements using those styles.

nirs··on FogBugz is Developer-Driven (Thank Goodness)
Zed Shaw thinks FogBugs is junk: http://www.zedshaw.com/rants/fortune_favors_big_turds.html
nirs··on Thoughts on editors (Emacs in particular)
Of course it is interesting - this is your major tool. Photographers are obsessed with cameras, programmers with editors...
nirs··on iPhone Free Software Unlock App - iUnlock - iPhone is finally Free (source code included)
The source is NOT free - although I'm not not sure about their copyright - who is the dev team?

  iUnlock v42.PROPER -- Copyright 2007 The dev team

  Credits: Daeken, Darkmen, guest184, gray, iZsh, pytey, roxfan, Sam, uns, Zappaz, Zf
 
  All code, information or data [from now on "data"] available
  from the "iPhone dev team" [1] or any other project linked from
  this or other pages is owned by the creator who created the data.
  The copyright, license right, distribution right and any other
  rights lies with the creator.
  
  It is prohibitied to use the data without the written agreement
  of the creator. This included using ideas in other projects
  (commercial or not commercial).
  
  Where data was created by more than 1 creator a written agreement
  from each of the creators has to be obtained.

  Punishment: Monkeys coming out of your ass Bruce Almighty style.
nirs··on Desktop vs Web for email
Apple Mail, when I'm away, either my isp webmail or Gmail. I don't like web mail - the user experience is poor and inconsistent.
nirs··on Joshua Schachter: Elevator camera obscura
This is reflection. In a similar camera, "view camera" http://www.answers.com/topic/view-camera?cat=technology the image is upside-down.
nirs··on CopFind - collaborative project to log speed traps
The phone network can locate your phone - so your phone can also know its location even without GPS. If your phone knows your location, and is connected to the web, it can work.
nirs··on CopFind - collaborative project to log speed traps
Even better: your phone will check for cops on your way, using GPS. When you locate a cop, you can report him in real time, and someone driving 200m behind you, using the same site, will get an alert.
nirs··on It's Official: Apple is the New Microsoft
Crap article from crap site of crap magazine.
nirs··on Steve Jobs - To All iPhone Customers
They already do this: you want QuickTime for Windows? you must install also iTunes, because both come in the same installer.
nirs··on Steve Jobs - To All iPhone Customers
Thats life - you want to be the first one to use a technology, you pay more and get less. The next version will be always chipper and better.

Apple is known to try a higher price on first releases. Thats why I never buy the first release of a product.

nirs··on My startup. Comments?
Same here. I don't have any idea what is your site, and if I would visit it by accident I would not even see the page, because the page loaded too slow.
nirs··on Code to unlock iPhone cracked
The iPhone crack was cracked?!
Page 1 of 2Next →