Search found 2502 matches

by Dougal
Sun 14 Aug 2011, 18:55
Forum: Programming
Topic: speeding up scripts
Replies: 54
Views: 27776

When forced to use grep, try to make it possible to use fgrep -it is a smaller binary and uses no regex's (only pattern matching so you may need to adjust the comparison algorithm). Hmm # cat /bin/fgrep #!/bin/sh exec grep -F ${1+"$@"} I've just trained myself to type "grep -F" ...
by Dougal
Sun 14 Aug 2011, 14:54
Forum: Programming
Topic: speeding up scripts
Replies: 54
Views: 27776

Much of the time I go the other way and depend more on bash, instead of less. Usually, slowness in scripts is due to poor design-making too many checks, unnecessary loops or from calling external programs. Using even medium-level bash functionality can replace many of the external calls. I generall...
by Dougal
Sun 14 Aug 2011, 14:21
Forum: Programming
Topic: speeding up scripts
Replies: 54
Views: 27776

After running 'checkbashisms' on a number of scripts, it says that echo -e "blah blah \n blah" is not supported .. and to use actual new lines inside the "" Yeah, the builtin echo in dash acts always as "echo -e"... I just hacked dash to ignore the "-e". Note...
by Dougal
Sun 14 Aug 2011, 14:18
Forum: Truly off-topic conversations
Topic: Riots in the UK
Replies: 180
Views: 8778

We need a new frontier, a new America to start up biz on. Sweden is one of the most underpopulated countries. Lots of room for unemployed to start their own biz in. Cameron could export the unemployed to Sweden. That would make life in England less crowded? :) Well, considering how they keep bringi...
by Dougal
Fri 12 Aug 2011, 20:33
Forum: Programming
Topic: sed escapes
Replies: 30
Views: 8078

Moose On The Loose wrote:In this case, perhaps grep could have been even faster because the problem at hand was removing some lines from a file.
sed is faster and probably safer, as you can use the "-i" switch...
by Dougal
Fri 12 Aug 2011, 20:20
Forum: Cutting edge
Topic: Gaffel
Replies: 0
Views: 1719

Gaffel

I haven't tried it yet, but this looks like it might be interesting.
by Dougal
Fri 12 Aug 2011, 20:15
Forum: REQUESTS
Topic: [SOLVED]How to set default keyboard setting in xorg.conf
Replies: 4
Views: 1937

Open /usr/sbin/xorgwizard and find the bit that looks like TEMPSECTION="$TEMPSECTION Option \"XkbRules\" \"xorg\" Option \"XkbModel\" \"pc102\" Option \"XkbLayout\" \"$XKEYMAP\" #xkeymap0" and replace the last line to Option \&quo...
by Dougal
Fri 12 Aug 2011, 20:02
Forum: Truly off-topic conversations
Topic: Is it a Europe spring ?
Replies: 31
Views: 1596

Moose On The Loose wrote: We may be seeing the end of the nation state. Multinational corporations now have more money and bigger armies than many nations.
[Insert Friday reference]
by Dougal
Fri 12 Aug 2011, 19:50
Forum: Users ( For the regulars )
Topic: ShareMeNot
Replies: 1
Views: 975

ShareMeNot

Firefox users might be interested in this extension.
by Dougal
Wed 10 Aug 2011, 13:17
Forum: Truly off-topic conversations
Topic: Is it a Europe spring ?
Replies: 31
Views: 1596

Shooting rioting kids in the head is not an option. Just as public hanging of bankers is not an option. First, you shouldn't call them "kids". Call them "criminals", 'cause that's what they're gonna be doing all their lives. Second, you're wrong. The whole problem is that some p...
by Dougal
Wed 10 Aug 2011, 12:50
Forum: Programming
Topic: sed escapes
Replies: 30
Views: 8078

Yes, that's a problem. The really annoying part is that the "/d" feature doesn't work with any other delimiter (unlike the "s/" feature).
by Dougal
Tue 09 Aug 2011, 19:33
Forum: Truly off-topic conversations
Topic: Is it a Europe spring ?
Replies: 31
Views: 1596

You must be taking the piss... People who use a guy's death as an excuse to break into a shop and steal cell-phones? People loading cars with loot? As the song goes: Well, I seen the fires burnin' And the local people turnin' On the merchants and the shops Who used to sell their brooms and mops And ...
by Dougal
Mon 08 Aug 2011, 19:39
Forum: Truly off-topic conversations
Topic: How can the Good Guys fight the Extremist Guys?
Replies: 32
Views: 1579

Re: How can the Good Guys fight the Extremist Guys?

... It is, however, difficult for government to tackle conspiracies. The paper calls for government institutions to be more open, investment to enable young people to think critically and recognise propaganda, and for civil society to play a proactive role. I suspect teaching young people to think ...
by Dougal
Mon 08 Aug 2011, 13:44
Forum: Truly off-topic conversations
Topic: Now playing
Replies: 21
Views: 1676

Maybe you like some Venom http://www.youtube.com/watch?v=fHmzFVDjVnM The most criminally overlooked NWOBM band is Hell , who were so far ahead of their time is that no one obviously knew what t make of them... they sound like what Venom could have sounded like if they actually could, hmm, play thei...
by Dougal
Mon 08 Aug 2011, 13:16
Forum: Bugs ( Submit bugs )
Topic: Keyboard layot in Lucid
Replies: 24
Views: 8075

Diamond wrote:There is no use. In Puppy Lighthouse 5.03 there is no keyboard layot,and in Lucid,fresh install there was message "your xorg conf file does not contain any XkbModels option"

Tried to edit Xorg,but there is no "Keyboard0" part.
Then just add it... copy what I posted above.
by Dougal
Sat 06 Aug 2011, 13:46
Forum: Truly off-topic conversations
Topic: Now playing
Replies: 21
Views: 1676

Re: steep yourself in the classics

You claim it's unpolitical [sic] but how in crap should I be able to tell that? No, I'm saying that, with some, it is political, but so what? NSBM stands for National Socialist Black Metal: that's a neo-Nazi sub-genre, which tends to be one-man "projects" made by weak white boys who don't...
by Dougal
Fri 05 Aug 2011, 15:19
Forum: Suggestions
Topic: ARM... Again... Any chance for Puppy on the 25 USD PC?
Replies: 70
Views: 40764

Sorry for weighing in on this, and being such a non-expert... Bit even I (the total noob!) got very close to completing the build of a working ARM-supported toolchain, using ttylinux.. You don't really need to compile a toolchain: - for the main filesystem, you have the distros like Ubuntu and Fedo...
by Dougal
Fri 05 Aug 2011, 15:03
Forum: Beginners Help ( Start Here)
Topic: [Keyboard] Programmer Dvorak Problem
Replies: 13
Views: 4187

Maybe my last resort is to wait for another Puppy release, and to hope that Programmer's Dvorak keyboard layout is included. I don't think he has plans to have it merged. Here's a .pet that would -- hopefully -- do it for you. After installing it, there is a chance it might appear in xkbconfigmanag...
by Dougal
Fri 05 Aug 2011, 14:40
Forum: Truly off-topic conversations
Topic: What should we do with all the "unanswered posts"?
Replies: 14
Views: 846

Answer them.
by Dougal
Fri 05 Aug 2011, 14:06
Forum: Beginners Help ( Start Here)
Topic: How to stop JWM restart from maximizing all windows?
Replies: 5
Views: 1371

Yes, I find it odd that later JWM versions are worse in some ways than the older version. Example: Newer JWM versions won't allow root-tail (and the like) to work, if JWM has wallpaper set in its <Desktops> config.. Also I have always thought it so odd, that the 'stable' is so old... I found that P...