HNHacker News
TopNewBestAskShowJobs

tobik

238 karma · joined September 23, 2010

submissionscomments
tobik··on Privacy Behaviors After Snowden
The link doesn't work. Use http://m.cacm.acm.org/magazines/2015/5/186025-privacy-behavi...
tobik··on OSMC is a free and open source media center
Because this wasn't clear to me immediately: This is a Linux distribution with Kodi preinstalled that grew out of the Raspbmc project.

Link to their GitHub repo: https://github.com/samnazarko/osmc

tobik··on Weird thing happening when touching a Nexus 5 and a MacBook
So that problem carried over to newer models?

This has been an issue with the PowerBook G4 models in the past as well. The iBook G4 models also had this problem but only on the lid button.

tobik··on Show HN: DHCP as a file system – an experiment with Go and FUSE
Yes, FUSE works on OS X, Android, the BSDs and Linux.
tobik··on GPU-Accelerated Video Playback with NetBSD on the Raspberry Pi
Have you read the article he links to? http://www.cambus.net/textmode

He's an artist and his medium is ASCII, ANSI or Teletext. I think that's fascinating.

tobik··on “DBus is seriously screwed up”
Is there a paper/article that discusses and categorizes the differences between IPC mechanism? Their pros and cons etc. What mechanisms are there? What is used on Windows? OS X/iOS? QNX? BeOS? Android? Solaris? etc.

The Wikipedia article on IPC https://en.wikipedia.org/wiki/Inter-process_communication is really incomplete.

tobik··on Debian elects new project leader, PPA support proposed
Here is the relevant HN thread with some discussion about it: https://news.ycombinator.com/item?id=7203364
tobik··on Compilers in OpenBSD (2013)
That is exactly what make supports out of the box. If ${CC} is missing from the Makefile, ${CC} is globally set to the system C compiler i.e. cc

Users can use a different compiler by specifying it on the command line via e.g.

  make CC=clang
Some people set

  CC=gcc
in their Makefile to force the usage of gcc. Never do this. Do this instead:

  CC?=gcc
That way users can still override the value of ${CC} on the command line if they want to.
tobik··on GNU make insanity: finding the value of the -j parameter
For FreeBSD users: FreeBSD's make provides the value of -j through ${.MAKE.JOBS}
tobik··on Debian developer prompted to revisit FreeBSD after 20 years
kern.maxfiles=782036 on FreeBSD 10.1 here and I have not changed the default at all. So it seems it is not set to 10000 by default anymore.

Edit: It seems to be set dynamically depending on available memory at boot. See http://fxr.watson.org/fxr/source/kern/subr_param.c#L266

tobik··on C99 tricks
Thank you. I did not know about this, I've been using the long version. nitems is defined in sys/param.h in OpenBSD and FreeBSD in case anyone is interested.
tobik··on Ask HN: Do you still use an RSS reader?
Yes, Thunderbird through its builtin RSS and newsgroup support (via Gmane).
tobik··on We're building the GNU system [pdf]
There is a video of a similar presentation here: http://www.gnu.org/software/guix/#talks
tobik··on You already use Lisp syntax
AUCTeX has support for displaying inline pictures of LaTeX math expressions in Emacs. I just checked and it even says so on the homepage ;) http://www.gnu.org/software/auctex/
tobik··on Clojure to die for
While true, the second example already gives you a compile-time error in normal Clojure (note the CompilerException). It never compiled and was never evaluated. This on the other hand compiles and is likely what the OP wanted to show:

  user> (let [e nil] (e :key))

  NullPointerException
tobik··on Nightcode: An IDE for Clojure and Java
don't forget the Eclipse plugin Counterclockwise: https://code.google.com/p/counterclockwise/
tobik··on Clojure.core: Batteries Almost Included
Thanks.

Thinking about it, I guess triple-quoted strings also facilitate doctests involving strings that would otherwise be really awkward to read/write.

tobik··on Clojure.core: Batteries Almost Included
why? in clojure strings can be multiline already. so there is no point in triple quotes.
tobik··on Google May Kill Chrome URL Bar
You might be interested to know that pressing "O" does the same thing as "y o <cmd v>" ;-)
tobik··on Ask HN: What's your favorite window manager for X11?
I am using dwm with the bottomstack, gridmode and pertag patches and my own modifications.

Currently I am using a notebook in front of an external display and I added a function to dwm with which I can essentially "push" all clients (windows) to the external display, which in turn sends all its clients to my notebook's display (or in other words it swaps all clients of one display with all clients of the other).

When I am coding I am always using bstack mode with vim on top and one or two terminals at the bottom. The external monitor is displaying documentation. If I have to look something up I just have to push vim + terminals away. If I am finished I pull them back. So my notebook display becomes my working display.

tobik··on Tiny IP stack, small enough to fit in a "tweet"
... which gcc is if you compile with -O2.
tobik··on Tiny IP stack, small enough to fit in a "tweet"
5 less:

  short s[70];*l=s;t;main(){read(0,s,140);s[4]>>8==1&s[10]==8?s[10]=0,s[11]+=8,t=l[4],l[4]=l[3],l[3]=t,write(1,s,140):0;main();}
8 less now, thanks to viraptor:

  short s[70];*l=s+6;main(t){read(0,s,140);s[4]>>8==1&s[10]==8?s[10]=0,s[11]+=8,t=*l,*l=l[1],l[1]=t,write(1,s,140):0;main();}
← PreviousPage 2 of 2