Re: [SLUG] great code to learn from - request

2005-09-21 Thread Rajnish
Benno wrote: So I think in the tradiation of anti-partterns, it is best to ask, which code sucks and why, and then try to avoid doing that. I recall reading something similar in a M$ publication a long time ago. One has to go through many iterations bad code/design before one recognises

Re: [SLUG] great code to learn from

2005-09-21 Thread Taryn East
* Erik de Castro Lopo [EMAIL PROTECTED] spake thus: Just about any language can be made to look good by applying to a small problem that suites the language. Large projects tackling large difficult problem domains test the language and the developer much more that toy problems. good point.

Re: [SLUG] great code to learn from - request

2005-09-21 Thread Erik de Castro Lopo
Benno wrote: On Wed Sep 21, 2005 at 13:09:52 +1000, Taryn East wrote: what nobody else is going to bite? :( I think this is because great code is code is due to the absence of suckiness rather than the presence of brilliance. At least IMHO.[1] So I think in the tradiation of

Re: [SLUG] great code to learn from - request

2005-09-21 Thread Rick Welykochy
Rajnish wrote: Benno wrote: So I think in the tradiation of anti-partterns, it is best to ask, which code sucks and why, and then try to avoid doing that. I recall reading something similar in a M$ publication a long time ago. One has to go through many iterations bad code/design before

Re: [SLUG] great code to learn from - request

2005-09-21 Thread Taryn East
* QuantumG [EMAIL PROTECTED] spake thus: I heard someone bitching the other day that gtk+/python apps are slow. Not been my experience, but if you're sufficiently bored, why don't you download some and see for yourself? I guess my point was that there are so many out there to choose from,

Re: [SLUG] great code to learn from - request

2005-09-21 Thread Ian Wienand
On Wed, Sep 21, 2005 at 03:55:06PM +1000, Benno wrote: On Wed Sep 21, 2005 at 13:09:52 +1000, Taryn East wrote: what nobody else is going to bite? :( I think this is because great code is code is due to the absence of suckiness rather than the presence of brilliance. At least IMHO.[1]

Re: [SLUG] great code to learn from - request

2005-09-21 Thread Taryn East
* Benno [EMAIL PROTECTED] spake thus: I think this is because great code is code is due to the absence of suckiness rather than the presence of brilliance. At least IMHO.[1] make sense - but surely there's some code around that has had the greatest amount of suckiness removed... or at least

[SLUG] debsig is on!

2005-09-21 Thread Robert Collins
Due to a scheduling hiccup no debsig has been announce, and Mind Control is happening in DebSigs normal slot... So come along, and you *WILL* have fun. Guaranteed, send no money now, and we'll throw in ... Rob -- GPG key available at: http://www.robertcollins.net/keys.txt. signature.asc

Re: [SLUG] great code to learn from - request

2005-09-21 Thread Rick Welykochy
Taryn East wrote: I've been making do with thedailywtf.com but it doesn't always have the same ring to it. :) I read the dailyWTF for sheer entertainment value :) I wonder why 90%+ of the examples are from Windows developers? The site is a great source of antipatterns. cheers rickw --

[SLUG] Accidental mouse gestures in Firefox driving me insane.

2005-09-21 Thread Mike MacCana
Hi all, Firefox keeps randomly going back. It seems to be some kind of mouse gesture triggered by my trackpad. I'd like to disable gestures in FF completely. I can't find the option in the GUI or about:config. I've tried with an extension, All In One Gestures, but it doesn't seem to be

Re: [SLUG] Accidental mouse gestures in Firefox driving me insane.

2005-09-21 Thread Ian Wienand
On Wed, Sep 21, 2005 at 04:42:49PM +1000, Mike MacCana wrote: Firefox keeps randomly going back. It seems to be some kind of mouse gesture triggered by my trackpad. I'd like to disable gestures in FF completely. Do you have horizontal scrolling on your trackpad? The same thing happened to me

Re: [SLUG] Re: wifi router

2005-09-21 Thread Shaun Butler
I recently acquired a couple of WRT54G routers to create a wireless network at home. I've flashed one of them with the dd-wrt firmware. The great thing about using the open source firmwares out there like dd-wrt and OpenWRT is that you can turn your router into anything you want - router, access

Re: [SLUG] great code to learn from - request

2005-09-21 Thread Erik de Castro Lopo
Taryn East wrote: what nobody else is going to bite? :( I felt for sure there'd at least be one person self-promoting: my code is briliant, you should come see it in my project foo ;) I've spent many long hours on libsndfile: http://www.mega-nerd.com/libsndfile/ It had its first

Re: [SLUG] great code to learn from - request

2005-09-21 Thread james
I'm asking for anybody's opinion of code that they think is worthwhile to look at. It doesn't have to be universally accepted as being perfect (though that would be really good if you know of any) just what you have found to be really great. cheers, Taryn [who is trying to prod a sleeping

RE: [SLUG] Presentation Mind Control - 21st September 2005

2005-09-21 Thread Michael Kraus
Oscar, Have you grown too technical and too old to have a sense of humour anymore? Lighten up - the talk is obviously on conference presentation. Rafael Kraus Software Developer Wild Internet Telecom [EMAIL PROTECTED] 02 8306 0088 Technical Support 02 8306 0077 Sales | 02 8306 0099 Fax 02 8306

RE: [SLUG] Presentation Mind Control - 21st September 2005

2005-09-21 Thread Michael Kraus
3) Unfortunately, Jacinta earnt her bile. And here I was thinking that enough bile would be produced in Jacinta's own liver. Rafael Kraus Software Developer Wild Internet Telecom [EMAIL PROTECTED] 02 8306 0088 Technical Support 02 8306 0077 Sales | 02 8306 0099 Fax 02 8306 0055 Administration

[SLUG] Gentoo

2005-09-21 Thread Gerald
Hi to all Once more. I have been travelling around Aus for abount 15 Months and am noew settled down again. Its a BIG country 15 months and we saw only a small part of it. Down to business!!! Do any Sluggers run Gentoo? Has anyone tried to install the Gentoo live cd? How many answers to affirn

[SLUG] minimal live CD

2005-09-21 Thread David
I just used a live CD for the first time (Ubuntu), and as good as it is, all I really want is a shell for diagnostics. It took ages to install. Can anyone suggest a live distro that either doesn't have X at all, or has an option to bypass it. Naturally it would be nice if it was reasonably

Re: [SLUG] Presentation Mind Control - 21st September 2005

2005-09-21 Thread O Plameras
Michael Kraus wrote: Oscar, Have you grown too technical and too old to have a sense of humour anymore? You've nothing to say constructive, so don't say it here. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs:

Re: [SLUG] Gentoo

2005-09-21 Thread Sridhar Dhanapalan
On Wed, 21 Sep 2005 18:54, Gerald [EMAIL PROTECTED] wrote: Do any Sluggers run Gentoo? I do. Has anyone tried to install the Gentoo live cd? Not since 2002, when I installed my main system. That's a testament to how well a Gentoo system can run and be kept up-to-date, despite being

Re: [SLUG] Presentation Mind Control - 21st September 2005

2005-09-21 Thread Matthew Hannigan
On Wed, Sep 21, 2005 at 05:59:10PM +1000, Michael Kraus wrote: Lighten up - the talk is obviously on conference presentation. Of course, that's just what YOU would LIKE us TO believe! -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs:

Re: [SLUG] great code to learn from - request

2005-09-21 Thread Matthew Hannigan
On Wed, Sep 21, 2005 at 01:09:52PM +1000, Taryn East wrote: what nobody else is going to bite? :( Depends whether you wanted programming in the small or large. Jon Bentley's Programming Pearls books are excellent. Not sure whether they count as FOSS though. Matt -- SLUG - Sydney Linux User's

[SLUG] Your browser does not support script

2005-09-21 Thread Adam Bogacki
Huh ? I've happily used internet banking with Commonwealth, St. George, and ANZ using Epiphany, Galeon, Firefox Mozilla but now find Moz is the only one working and all the others are giving me variations on the message that 'Your browser does not support Javascript'. Yet under all the

Re: [SLUG] minimal live CD

2005-09-21 Thread Ken Caldwell
On Wed, 2005-09-21 at 19:38 +1000, David wrote: I just used a live CD for the first time (Ubuntu), and as good as it is, all I really want is a shell for diagnostics. It took ages to install. Can anyone suggest a live distro that either doesn't have X at all, or has an option to bypass it.

Re: [SLUG] Your browser does not support script

2005-09-21 Thread Richard
pop up blocking St George for example wont even work with IE6 sp2 unless you tell the pop up blocker to ignore the St George website (same for Firefox). So add your banks URL to the pop up blocker allowed list. On Wed, 2005-09-21 at 23:28 +1200, Adam Bogacki wrote: Huh ? I've happily

Re: [SLUG] minimal live CD

2005-09-21 Thread David Kempe
David wrote: I've looked at the Knoppix website, but that looks similar in concept to Ubuntu. There are a million Knoppix variants, but if you want a Knoppix shell you can simply boot knoppix with knoppix 2 at the boot prompt. it boots runlevel 2 I think - all knoppix root shell, with all

Re: [SLUG] Your browser does not support script

2005-09-21 Thread unauthorized
Yet under all the Preferences I've ticked all the correct boxes explicitly allowing Javascript. My Gnome network proxy is set to allow direct internet connection (unlike T*bird F*fox I never managed to get it working) and I'm at a loss ... What's the gnome network proxy? Chris- -- SLUG -

[SLUG] minimal live CD

2005-09-21 Thread James
On Wednesday 21 September 2005 19:47, [EMAIL PROTECTED] wrote: I just used a live CD for the first time (Ubuntu), and as good as it is, all I really want is a shell for diagnostics. It took ages to install. Can anyone suggest a live distro that either doesn't have X at all, or has an option

Re: [SLUG] minimal live CD

2005-09-21 Thread Peter Hardy
On Wed, 2005-09-21 at 21:30 +1000, Ken Caldwell wrote: On Wed, 2005-09-21 at 19:38 +1000, David wrote: I just used a live CD for the first time (Ubuntu), and as good as it is, all I really want is a shell for diagnostics. It took ages to install. Can anyone suggest a live distro that

[SLUG] Heres on for the late nighters

2005-09-21 Thread James Purser
I am trying to get Skype to run through artsd and jack so I can pipe it to an icecast client. Below is what I got from the guy who wrote the icecast client: This bit works fine: jackd -d alsa -r 44100 # Or however you normally start it. # The next line will not work if arts is suspended. It

Re: [SLUG] Presentation Mind Control - 21st September 2005

2005-09-21 Thread Conrad Parker
On Mon, Sep 19, 2005 at 10:03:23AM +1000, Jacinta Richardson wrote: G'day everyone, You are invited to join us in a talk by Paul Fenwick about Presentation Mind Control - how to make other people think your talk is much better than it really is. Come and learn some great tips on how to

[SLUG] usb audio device for kernel 2.4

2005-09-21 Thread Gottfried Szing
hi slugs, today my asus wifi router has arrived and i am going to play around with it this weekend. so i will try to install openwrt. because it has 2x usb ports, having a standalone mp3-player with an external harddisk seems to be possible. i have checked the support for external storage

Re: [SLUG] usb audio device for kernel 2.4

2005-09-21 Thread Rev Simon Rumble
On 21/9/2005, Gottfried Szing [EMAIL PROTECTED] wrote: i have checked the support for external storage of linux and this works fine, but i havent seen a list of supported usb-audio-devices. on the web are hosts of pages that describe sometimes that usb-audio is no problem, sometimes that it is

Re: [SLUG] usb audio device for kernel 2.4

2005-09-21 Thread Peter Hardy
On Wed, 2005-09-21 at 17:41 +0200, Gottfried Szing wrote: i have checked the support for external storage of linux and this works fine, but i havent seen a list of supported usb-audio-devices. on the web are hosts of pages that describe sometimes that usb-audio is no problem, sometimes that

[SLUG] gzip from perl script

2005-09-21 Thread Voytek
I'm using a Perl script for MySQL backup, I'd like to compress the database dumps, the business end of the script runs like: --- while (my @arr = $sth-fetchrow) { print $arr[1]\n; system(rm $backuppath/$arr[1]-$oldyear$oldmonth$oldday.sql); system(mysqldump --opt $arr[1] -u $DB_User

Re: [SLUG] gzip from perl script

2005-09-21 Thread Gonzalo Servat
On 9/22/05, Voytek [EMAIL PROTECTED] wrote: [snip] do I simply add like: system(gzip $backuppath/$arr[1]-$year$month$day.sql); (and change the 'rm' line extension?) ? http://search.cpan.org Look for the GZIP module, nicer way of doing it. Also, you probably want to use unlink instead of

Re: [SLUG] Gentoo

2005-09-21 Thread Julio Cesar Ody
I'm a FreeBSD user/sysadmin/tweak-for-fun-guy. I used slackware until recently when I started to use Gentoo as my GNU/Linux system. Gentoo has a package management system that resembles the BSD ports system. If you take your time reading the Gentoo Handbook, you'll have enough knowledge to make

Re: [SLUG] great code to learn from - request

2005-09-21 Thread Taryn East
* Ian Wienand [EMAIL PROTECTED] spake thus: So the best code is code you look at and say is that it - I could have done that, even though you probably couldn't have. good point! If you're interested in systems, I'd suggest starting with an intermediate step of some good books first, the

Re: [SLUG] great code to learn from - request

2005-09-21 Thread Taryn East
* Matthew Hannigan [EMAIL PROTECTED] spake thus: On Wed, Sep 21, 2005 at 01:09:52PM +1000, Taryn East wrote: what nobody else is going to bite? :( Depends whether you wanted programming in the small or large. anything and everything will help. Jon Bentley's Programming Pearls books are

Re: [SLUG] Gentoo

2005-09-21 Thread Dean Hamstead
just for everyones info if you want BSD style linux (and lets face it... who doesnt) there is crux! www.crux.nu Dean Julio Cesar Ody wrote: I'm a FreeBSD user/sysadmin/tweak-for-fun-guy. I used slackware until recently when I started to use Gentoo as my GNU/Linux system. Gentoo has a

Re: [SLUG] great code to learn from - request

2005-09-21 Thread O Plameras
Hi Taryn, It seems to me you are looking for a project to exercise and to learn new tricks in programming. Project that challenges you enough but not too much, for starters. An environment that provides feedbacks - positive, neutral, or negative or peer reviews of your work. Then, if I

Re: [SLUG] gzip from perl script

2005-09-21 Thread Jacinta Richardson
G'day Voytek, In a spirit of defensive programming, I have an important question for you. What happens if the mysqldump fails? Perhaps the database goes offline part way through, perhaps the disk fills up... since you've just deleted your old backup, what are you going to do? I suggest the

Re: [SLUG] usb audio device for kernel 2.4

2005-09-21 Thread Mark Johnathan Greenaway
On Wed, Sep 21, 2005 at 05:41:38PM +0200, Gottfried Szing wrote: so, has someone a usb-audio device in use? requirements: - linux 2.4 support (because openwrt uses this version) - headphone mini jack. i want to connect it to my amplifier I use an Edirol UA-20 audio/MIDI interface, and it just

Re: [SLUG] gzip from perl script

2005-09-21 Thread Voytek
quote who=Jacinta Richardson thanks, Jacinta ahem, you assume I'm somewhat perl-literate, beyond knowing how to paste'n'save... I'm not... the script was kindly given to me in the past by a slugger paste'n'save gave me an error on the last '}' in your additions, after chopping it, I'm

Re: [SLUG] gzip from perl script

2005-09-21 Thread Jacinta Richardson
Voytek wrote: quote who=Jacinta Richardson thanks, Jacinta ahem, you assume I'm somewhat perl-literate, beyond knowing how to paste'n'save... I'm not... My apologies. Although I do find that it's usually better to to assume that people who are asking about an existing Perl program are

Re: [SLUG] gzip from perl script

2005-09-21 Thread Julio Cesar Ody
On 9/21/05, Voytek [EMAIL PROTECTED] wrote: ... do I simply add like: system(gzip $backuppath/$arr[1]-$year$month$day.sql); (and change the 'rm' line extension?) Go for it. There's no reason to install the module when you can safely do it via system(). In fact, don't be afraid of using it at

Re: [SLUG] gzip from perl script

2005-09-21 Thread Voytek
quote who=Jacinta Richardson Voytek wrote: My apologies. Although I do find that it's usually better to to assume that people who are asking about an existing Perl program are more often Perl literate than they are Perl newbies. :) no need to apologize, I'm flattered On further thought

Re: [SLUG] gzip from perl script

2005-09-21 Thread Erik de Castro Lopo
Jacinta Richardson wrote: Voytek wrote: quote who=Jacinta Richardson unless( unlink($backuppath/$database-$oldyear$oldmonth$oldday.sql.gz); Ah. Remove the trailing ; and replace with a ) { Oh, cool, a Perl person. One thing thats been bugging me for a while about Perl is the lack

Re: [SLUG] usb audio device for kernel 2.4

2005-09-21 Thread Denis Crowdy
On Thu, Sep 22, 2005 at 11:38:57AM +1000, Mark Johnathan Greenaway wrote: On Wed, Sep 21, 2005 at 05:41:38PM +0200, Gottfried Szing wrote: so, has someone a usb-audio device in use? requirements: - linux 2.4 support (because openwrt uses this version) - headphone mini jack. i want to

[SLUG] Script help

2005-09-21 Thread Simon
Hi all, Can anyone tell me why I get no output from this script? I am not good at writing my own so modify others. I have tested that it is reading the allusers.txt by adding an echo $name #!/bin/bash while read name; do grep $name smbpasswd; done allusers.txt My basic problem is I have an

Re: [SLUG] Script help

2005-09-21 Thread Vino Fernando Crescini
#!/bin/bash while read name; do grep $name smbpasswd; done allusers.txt are the names in allusers.txt listed one per line? -- Vino Fernando Crescini Intelligent Systems Laboratory School of Computing IT phone: +61 2 4736 0140