Re: 12.2: fork() causing getline() to repeat stdin endlessly

2023-10-24 Thread Jon Leonard
fers first wasn't viable. I'd read the documentation carefully, or maybe design to avoid having to read that documnetation. What's probably going on is that under different circumstances the cache of the input is used differently. Maybe the MacOS libc is less prone to read-ahead. Without digging through the code or nominally-opaque FILE* structures, it's hard to say. But I'm pretty sure it's "intermittently the FILE was in a state that didn't cause problems", not "exit() intermittently flushes". Jon Leonard

Re: 12.2: fork() causing getline() to repeat stdin endlessly

2023-10-23 Thread Jon Leonard
ting copied to both processes in the fork() call. If you want to mix fork() and stdio, be sure to flush buffers before the call to fork. Depending on the task, it may be easier to use the underlying read() and write() calls. Jon Leonard

Re: chromium: "Your browser is managed"

2022-08-30 Thread Jon Leonard
or serve you ads or some such. There's various web pages describing how to remove it; you'll probably need to remove the directory that chromium is storing data in. (Back up bookmarks and such first.) You'll also want to try to figure out how it got installed, and what else might be compromised. Jon Leonard

Re: MIDI-to-USB on Debian?

2018-02-13 Thread Jon Leonard
h no issues for me. I don't remember what it cost new, and it looks a little different from the "Anniversary edition" that's for sale now. But such things do exist. Jon Leonard

Re: Installing Linux on a Mac Mini without OSX

2014-12-04 Thread Jon Leonard
ting to work reliably. It should be possible to boot the Debian installer in rescue mode, get a shell, and do the install from there. Jon Leonard > I'm also looking into PureDarwin as a possible solution. > > > -- > To UNSUBSCRIBE, email to debian-user-requ...@list

Re: atomically concurrent writes question

2010-06-22 Thread Jon Leonard
ine does fit in the same call to write(), though. I'm not sure what's meant by "long lines": If they're too big to process all at the same time, the guarantees for a single call to write() no longer apply. But the shell is almost certainly doing the right thing. (In C

Re: sharing an ipp printer with a mac client

2009-09-10 Thread Jon Leonard
t following those instructions, typing cupsctl BrowseProtocols='"cups dnssd"' into a Terminal window. That told the Mac to also look for printers using the protocol that our cups install was using. Might be related. Jon Leonard -- To UNSUBSCRIBE, email to debian

Re: problems with eps from grace

2007-11-16 Thread Jon Leonard
g like this: %!PS-Adobe-3.0 ESPF-3.0 %%BoundingBox: 0 0 72 72 Based on the observed behavior it sounds like it's something else, which is presumably due to a bug in grace. The actual rules for what the headers can look like are complicated, so it's probably best to just paste them verbatim. Jon Leonard -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Re: Regarding tar and split

2007-10-13 Thread Jon Leonard
mething like that for most of my files. Jon Leonard -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Re: Search for string in files

2007-08-26 Thread Jon Leonard
iles. The find above takes advantage of grep's default of listing filenames in matches if there's more than one on the command lines. I'm more likely to use a variant like: find . -type f | xargs grep -li pattern That'll search all ordinary files, case insensitive, and only give the names of the matching files. The man pages for find and grep can be very helpful for fine-tuning this kind of search. Jon Leonard -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Re: SpamAssassin weightings - am I missing something?

2003-03-12 Thread Jon Leonard
t feel that score reflects the true spaminess on your > mail, that's the perfect reason to change it in your prefs. Indeed. Though you have to be careful about false positives: One mailing list that I'm on is falsely labeled as spam by the (stable) spamassasin, and is unlike the rest

Re: Linksys PCMCIA network card - what module to use?

2002-10-15 Thread Jon Leonard
cmcia_cs package get used, and for many cards that's preferred.) Jon Leonard -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Re: "MUD" Game Engines

2002-10-07 Thread Jon Leonard
of Debian. I'd recommend doing a web search for the specific kind of MUD you're looking for (Tiny, MOO, Diku, LP ...?), and then download & build it. If you're looking for more general resources, try starting from http://www.kanga.nu/, which has a wealth of MUD-related stuf

Re: Editing and storing encrypted files

2000-09-06 Thread Jon Leonard
u have more extreme secrecy needs, you might want to look into duress filesystems or steganographic file storage. Those are only really useful if you might need to plausibly deny that you had the encrypted files at all. I'm also not aware of any available implementations. Jon Leonard

Re: when must I reboot?

1999-09-17 Thread Jon Leonard
sometimes it weakens it, and sometimes stuff can break. Don't hot-swap stuff unless the documentation says it'll work, or you're willing to fix it. I think the actual mechanism for damage a mix of overcurrent leading to electromigration and overheating. You'd have to check with an autority on chip reliability to be sure. Jon Leonard

Re: Sleeping in a shell

1999-09-13 Thread Jon Leonard
nd to do this? > > I really don't feel like writing a my_sleep.c ... The usleep shell command does what you want (though as has been pointed out, you may be better off translating to perl. Jon Leonard

Re: insert a blank page in a ps file

1999-09-09 Thread Jon Leonard
Say I have a ps file with pages: 1 2 3 4 5 6 7 8 9 > I want to format it to a new ps file with the following pages: > 1 blank 2 blank 3 blank 4 blank 5 blank 6 blank 7 blank > > Thanks in advance. > > Shao. Hope this helps, Jon Leonard

Re: syslogd mail

1999-09-06 Thread Jon Leonard
I've put it under http://frost.slimy.com/~jleonard/syslog/ until I figure out the right way to contribute it back to the community. If you really want syslogd to send email directly, I'd be happy to explain how to modify it to do so, but wouldn't code that myself unless paid to do so. Jon Leonard