Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nuxi
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
121.
▲
by
nuxi
16y ago
There's still the complete 240.0.0.0/4 range left (class E), but unfortunately it's probably too late to make use of them now.
122.
▲
by
nuxi
16y ago
Regarding a) - that was emacs vs. vi, not vim. vim was first released in 1991.
123.
▲
by
nuxi
16y ago
Maybe not exactly Perl-like, but you may find the bstring library useful: http://bstring.sourceforge.net/ . The documentation also lists alternative string handling libraries like c2lib, wxString etc.
124.
▲
by
nuxi
16y ago
Ouch: “I saw `cout’ being shifted “Hello world” times to the left and stopped right there.” — Steve Gonedes (via http://q4td.blogspot.com/search/label/programming )
125.
▲
by
nuxi
16y ago
It does cast it down (to unsigned char). The requirement for int however was is not for "%lc", it was already in C89. I suspect it has to do with default integral promotions for (variadic) function parameters - which I incorrectly disregard
126.
▲
by
nuxi
16y ago
> Notice that printf("%c", c) has pretty damned clear behavior, and it requires someone to say the equally-clear printf("%d", (int)c) to get a number when they want a number; It does have a clear behaviour, but it's possibly different f
127.
▲
by
nuxi
16y ago
His book "C - The complete reference" was so bad the term "bullschildt" was coined. http://www.catb.org/jargon/html/B/bullschildt.html
128.
▲
by
nuxi
16y ago
It's got a simplified web UI, see http://www.fossil-scm.org/fossil/finfo?name=src/checkout.c for an example. The diff has a diff(1)-like output, but you can configure a graphical diff of your choice and use it with the 'fossil gdiff' comm
129.
▲
by
nuxi
16y ago
It does get easier, it's called fossil. =) Just for the record, I've used RCS, CVS, clearcase, SVN, git and mercurial, but for doing solo work fossil beats all of them in simplicity and ease of use (single executable, no setup needed).
130.
▲
by
nuxi
16y ago
Too much hassle for simple projects IMHO. Fossil for version control (and bug tracking, wiki etc.) combined with dropbox does the trick for me.
131.
▲
by
nuxi
16y ago
reverse polish hungarian notation: char * nameZspl; ifless if: ptr && (* ptr = 10); WTF-8: an almost-UTF-8 type of encoding, which possibly cannot be decoded anymore gangbang of four: an act of cluelessly quoting GoF, Fowler et al.
132.
▲
by
nuxi
16y ago
There's quite more to this than just simply replacing gethostbyname() with getaddrinfo(). That may be true most of the time for TCP/UDP client-side, but even there you'll run into OS-specific quirks the moment you try to support more than o
133.
▲
by
nuxi
16y ago
Why should we care about Linux when we have BSD, and vice versa? Competition and versatility of course, they encourage invention - Sun developed NIS, NIS+, NFS, VFS, ZFS and a bunch of other things in the UNIX world.
134.
▲
by
nuxi
16y ago
In addition I'd recommend the C++ FQA lite ( http://yosefk.com/c++fqa/ ) which dissects the FAQ and provides additional, a lot of times quite useful, information.
135.
▲
by
nuxi
16y ago
From Early history of UNIX: "When asked what that funny name meant, Ken said it was obvious. It stood for the editor command that it simulated, g/re/p (global regular expression print)." http://massis.lcs.mit.edu/archives/history/early.his
136.
▲
by
nuxi
16y ago
There's a huge difference between "thus works on other platforms" and "it can work on other platforms".
137.
▲
by
nuxi
16y ago
With that I can mostly agree (but the comment implied otherwise). But - and this is sometimes a huge but - open source software (OSS) is more and more dependant on other OSS, making it sometimes next to impossible to port it to other platfo
138.
▲
by
nuxi
16y ago
It works on other platforms because it's open source? Isn't that a bit of an overstatement? For the fun of it, I just downloaded this and tried to compile on my Linux box: ~/tmp/tmp# uname -a Linux susie 2.6.27.39-0.2-default #1 SMP
139.
▲
by
nuxi
16y ago
And saying "It's called Emacs" is a valid argument then? By your reasoning every new scalable/clustered database or filesystem or server etc. is pathetic because, you know, "VAX had this 30 years ago". "What?" indeed.
140.
▲
by
nuxi
16y ago
Right, now all that's left to choose is which fork I'll be using for "visiting" files.
141.
▲
by
nuxi
16y ago
Ah okay, I understand what you meant now. One thing however - if it is a macro, couldn't it just be: #define getc fgetc_or_similar At least C89/90 only mentions that if it is a macro, it may evaluate arguments more than once (but the
142.
▲
by
nuxi
16y ago
> but you can access the function version if you want, e.g. in glibc, getc() will call the macro, while (getc)() will call the function. Are you sure about this?
143.
▲
by
nuxi
16y ago
No, it doesn't physically need a base license. Buy the DVD, install the OS and that's that. To clarify what I implied: if he really likes OS X so much, he can at least pay a small amount of money to keep using it with a somewhat clearer con
144.
▲
by
nuxi
16y ago
Yes, but it works as a standalone installation, you don't need to have 10.5 installed.
145.
▲
by
nuxi
16y ago
...or you could buy OS X 10.6 for $29 if you really need it.
146.
▲
by
nuxi
16y ago
No, this is the same as: *fp = *fp >> 4; fp++; http://c-faq.com/ptrs/unopprec2.html for details. EDIT: formatting
147.
▲
by
nuxi
16y ago
Thanks for the tip. Some of my favorites: Lvmen, Caspian, Kinski, Mogwai
148.
▲
by
nuxi
16y ago
A proper s[n]printf()-like functionality would be more than nice. No ostringstream crap, no boost's format() hacks, just plain sprintf().
149.
▲
by
nuxi
16y ago
> - environment variables changing the behavior of the program But have you seen them abused as "additional" parameters to a function? putenv() by the caller, getenv() by the callee, rejoice!
150.
▲
by
nuxi
16y ago
Not that I'm defending autoconf (I dislike it a lot), but POSIX is also ignorant sometimes, so it shouldn't be treated dogmatically - e.g., google for the socklen_t confusion. Other than that, the real world isn't black and white either. Al
More ›