Better HN
topnewbestaskshowjobs
Log inSign up

nirs

124 karma · joined Feb 21, 2007 (19y ago) · 58 submissions

Submissions

comment 4y ago · link · parent

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...

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

p and q are the same file now, but after you change current directory their are not. They should never be equal.

comment 6y ago · link · parent

Can you explain how GPL prohibits distribution via app stores?

comment 18y ago · link · parent

twisted is very clean and readable.

6.

Why don’t we have a word for it?(yosefk.com ↗)

1 points · by nirs · 18y ago · 2 comments

comment 18y ago · link · parent

נחמד.

comment 19y ago · link · parent

He got it wrong; Apple is Nikon of course. Apple needs a Cannon :-)

comment 19y ago · link · parent

It could be nice to have a way to change your password.

comment 19y ago · link · parent

This is a nice web page for starting up with cocoa: http://andymatuschak.org/articles/2007/09/09/getting-started...

comment 19y ago · link · parent

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.

comment 19y ago · link · parent

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/

comment 19y ago · link · parent

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.

comment 19y ago · link · parent

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/...

comment 19y ago · link · parent

Interesting, out of 28 voters, 9 voted up :-)

comment 19y ago · link · parent

Lets see how it goes :) http://reddit.com/info/2z6fy/comments

comment 19y ago · link · parent

Stupid but well done. Nice readable fonts, really easy to use.

comment 19y ago · link · parent

Nothing like silence.

comment 19y ago · link · parent

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.

comment 19y ago · link · parent

Zed Shaw thinks FogBugs is junk: http://www.zedshaw.com/rants/fortune_favors_big_turds.html

21.

Unicode art on reddit(reddit.com ↗)

2 points · by nirs · 19y ago · discuss

comment 19y ago · link · parent

Of course it is interesting - this is your major tool. Photographers are obsessed with cameras, programmers with editors...

comment 19y ago · link · parent

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.

comment 19y ago · link · parent

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.

comment 19y ago · link · parent

This is reflection. In a similar camera, "view camera" http://www.answers.com/topic/view-camera?cat=technology the image is upside-down.

comment 19y ago · link · parent

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.

comment 19y ago · link · parent

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.

comment 19y ago · link · parent

Crap article from crap site of crap magazine.

29.

Burns Statistics -- Spreadsheet Addiction(burns-stat.com ↗)

2 points · by nirs · 19y ago · discuss

comment 19y ago · link · parent

They already do this: you want QuickTime for Windows? you must install also iTunes, because both come in the same installer.
12