Hacker News new | past | comments | ask | show | jobs | submit | oh5nxo's comments login

Is there a nice alternative for seq or jot ? Something neater than for-loop in awk ?


In bash, you can create sequences with {A..B}. E.g.

echo {1..10}

or to count backwards

echo {10..0} boom!


~/etc would have been so nice.


Aka ~/.config.


maybe ~/etc would have sounded more "cool"


Via Xlib, with USB keyboard, 10 Hz starts to become uncomfortable, 10% in system time.

Had to test ! :)


Just as random someone who likes reading your posts, maybe there's a third way: An appendix in handbook that links to blogs like yours.

I see that there already is "an aggregation feed of dozens of blogs" linking to planet.freebsd.org which does not respond :)


Good idea.

There is also FreeBSD Community Resources wiki page - https://wiki.freebsd.org/Community/Resources - which contains links to such blogs and resources.


Also, it's better shielded than twisted pair.

It's funny, keeping everything else constant, the center conductor can move quite a bit away from the exact axial center of the shield before the impedance changes very much.

PS. Neill, not Neil


Regarding 1) could you offset ptr backwards and y forward, so that last iny makes zero?


You could fork a "forker" process, early in the program and use pipes to make it do what you can't later in time. socketpairs if you need to send descriptors as well.

closefrom(2) is nice bsdism, btw. After setting up stdin, out and err, just closefrom(3). For the same money, it could have been designed to close a range instead, odd this was not selected.


It also partially depends on how the client program has configured her windows, and how the X server handles related stuff.


If you liked that, you might also like http://homepage.divms.uiowa.edu/~jones/bcd/decimal.html


I've found a solution to keep most "cabley things" in order. I keep them straight, high up the wall, in a 2m wide hanger made from 1x1 wood.

Hanger is high enough for mouse & cord, wall wart & cord and so on. There are conical holes, every inch, deep ones on the left and successively shallower on the right. Far left holds RG-8 with connector nicely, or most power cords, and far right fits 3.5 audio plugs, mini-usb, etc. Holes are 1 inch apart and opened with a slit from the front. The slit gradually gets narrower from 12mm on the left to 3mm on the right.

It's hard to misplace things, as each cable only fits into certain area, and shirts or headphones or ... are not easy to insert into the hanger at all.

I think it's tidy. Some might not.


If it's not too much effort, would you mind sharing a photo of the setup? I'm having a bit of trouble visualising it, but it sounds interesting.


In case OP doesn't respond, I imagined a bit of wood with "keyhole" shaped slits in it. Probably something like this: https://images-na.ssl-images-amazon.com/images/I/71K4bZIM-pL... or maybe this https://dclwoodworking.files.wordpress.com/2015/09/img_1312....


Thanks, that does look tidier.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: