[SLUG] You can find more information by searching on these sessions in the JavaOne conference sessions page.
Other Enhancements Under Consideration Some of the other things under consideration by the Expert Group include the following: Access to the unfetched state of detached entities. Solaris has a different kernel and a different implementation of the system libraries, but it implements most of the same interfaces as Linux. The Fine Print Most of these features are still very much in development, and they are thus apt to change scope or be removed from the release if the team's goals for them are not reachable. For example, most developers work within a single domain and machine, and they would choose the developer profile to improve performance and expend the least administrative effort. Another limitation is that Java Persistence Query Language queries are always polymorphic. Installer Improvements The installation process for a new JRE should be simpler and more user-friendly. This is not to shrug off a difficult problem but to indicate that the Java platform is facing some basic physical constraints at the OS and hardware level that the team must work within. Could they be better? The platform cannot magically preload the pages just prior to launching. A standard message format ensures that all components understand one another. The reason that warm start is so much faster is that once some data has been read off the disk, the OS places it in the disk cache. us, Yahoo UI Widgets, Spry, DHTML Goodies, and Google. Java Persistence has had a great start, with strong acceptance by the Java community. Swing applications both simple and complex should benefit from much better runtime performance on Windows as a result. In the GlassFish server, WSIT is used to provide advanced web services features such as bootstrapping, optimizing communication, reliable messaging, atomic transactions, security, and trust. This feature should finally be enabled by default, exposing Swing to extremely fast hardware acceleration through the graphics processor. Solaris has a different kernel and a different implementation of the system libraries, but it implements most of the same interfaces as Linux. The main goal of Project GlassFish has been to produce an application server that implements the Java EE standard. Graphics performance on Microsoft Windows. It's pushing Rails further than it's ever gone before, he explained. Within the cluster, the replication framework makes sure that the responding member is provided the state information that it needs to provide service. Dynamic attributes and property changes are allowed without requiring a server restart.-- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] Final Reminder: Open Source Software Adoption:Anatomy of Success and Failure
Final reminder for the IEEE Computer Societies seminar on Wednesday 19th December, tomorrow at the Australian Technology Park. Professor Brian Fitzgerald on Open Source Software Adoption: Anatomy of Success and Failure RSVP: Friday December 14th 2007 to [EMAIL PROTECTED] or (02) 6267 6276 Mark Phillips PS: In in order to bypass the moderation of the various lists the blurb is not attached this time. If you want the full blurb mail me! -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] USB to serial
Is there anything that I need to look for in these USB to serial converters? Any special software needed? Thanks, Alan -- Alan L Tyreehttp://www2.austlii.edu.au/~alan Tel: 04 2748 6206 Fax: +61 2 4782 7092 FWD: 615662 -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] USB to serial
On Dec 18, 2007 12:59 PM, Alan L Tyree [EMAIL PROTECTED] wrote: Is there anything that I need to look for in these USB to serial converters? Any special software needed? Be careful which one you buy. Some of the cheaper ones simply don't work. I have one from Lindy, and it's never let me down. Cost a bit more, but well worth it. WindoZe did need drivers for it, from memory, but they were a once only install - don't recall if Linux did, but I don't think so. DaZZa -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] USB to serial
$quoted_author = DaZZa ; On Dec 18, 2007 12:59 PM, Alan L Tyree [EMAIL PROTECTED] wrote: Is there anything that I need to look for in these USB to serial converters? Any special software needed? Be careful which one you buy. Some of the cheaper ones simply don't work. I have one from Lindy, and it's never let me down. Cost a bit more, but well worth it. I can recommend the Belkin one. Detected automatically in Ubuntu. YMMV cheers marty -- xterm The problem with America is stupidity. I'm not saying there should be a capital punishment for stupidity, but why don't we just take the safety labels off of everything and let the problem solve itself? http://www.bash.org/?4753 -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] USB to serial
I would recommend the Keyspan USA-19HS. On Tue, 2007-12-18 at 13:33 +1100, Martin Barry wrote: $quoted_author = DaZZa ; On Dec 18, 2007 12:59 PM, Alan L Tyree [EMAIL PROTECTED] wrote: Is there anything that I need to look for in these USB to serial converters? Any special software needed? Be careful which one you buy. Some of the cheaper ones simply don't work. I have one from Lindy, and it's never let me down. Cost a bit more, but well worth it. I can recommend the Belkin one. Detected automatically in Ubuntu. YMMV cheers marty -- xterm The problem with America is stupidity. I'm not saying there should be a capital punishment for stupidity, but why don't we just take the safety labels off of everything and let the problem solve itself? http://www.bash.org/?4753 -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] USB to serial
i bought one from dick smiths (whilst in new zealand), just happened to be on special so i thought it might come in handy. it really has! the linux kernel has a stable driver that picks it up automagically in debian. windows XP doesnt know what it is until you install a driver then it works fine. if you look in the linux-usb (or is it usb-linux) website, there is considerable discussion on usb to serial. they will come up as /dev/ttyUSB(X) devices. from what i have read and from my own experiences with it, use software flow control (or none) not hardware. hardware flow control tends to end badly. but yeah, for anyone who is poking with switches and routers a lot a usb serial device is really handy. especially given its (mine at least) very long cable - making up for the lack of length with many supplied serial leads. you can also extend it with one of those usb cables you get with every usb stick. Dean On Tue, 18 Dec 2007 12:59:00 +1100, Alan L Tyree [EMAIL PROTECTED] wrote: Is there anything that I need to look for in these USB to serial converters? Any special software needed? Thanks, Alan -- Alan L Tyreehttp://www2.austlii.edu.au/~alan Tel: 04 2748 6206 Fax: +61 2 4782 7092 FWD: 615662 -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html -- http://fragfest.com.au -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] Tuesday afternoon shell command optimisation party!
Hi all, Here's a starting point. What's a more optimal way to perform this task? :-) sed 's#[^,]*##g' input.txt | tr -d '\n' | wc -m Tuesday afternoon shell optimisation party! Thanks, - Jeff -- linux.conf.au 2008: Melbourne, Australiahttp://lca2008.linux.org.au/ It will test your head. And your mind. And your brain, too. - Jack Black, School of Rock -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Tuesday afternoon shell command optimisation party!
$quoted_author = Jeff Waugh ; Here's a starting point. What's a more optimal way to perform this task? :-) the first question was what is the task trying to achieve? :) sed 's#[^,]*##g' input.txt | tr -d '\n' | wc -m you appear to be counting the number of fields in a csv file but unless there is a trailing comma each line worth of data will be 'off by 1' cheers marty -- My Everest is not in Nepal, She's sleeping in the bedroom second right down the hall. Ed Hillary couldn't crack this nut, He'd be hiding in the lounge room with the rest of us. My Everest - Lazy Susan -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Tuesday afternoon shell command optimisation party!
quote who=Martin Barry $quoted_author = Jeff Waugh ; Here's a starting point. What's a more optimal way to perform this task? :-) the first question was what is the task trying to achieve? :) That's part of the challenge. sed 's#[^,]*##g' input.txt | tr -d '\n' | wc -m you appear to be counting the number of fields in a csv file but unless there is a trailing comma each line worth of data will be 'off by 1' Ah, an interesting thought, but no, it's more of a blunt instrument than that. ;-) - Jeff -- linux.conf.au 2008: Melbourne, Australiahttp://lca2008.linux.org.au/ In addition to these ample facilities, there exists a powerful configuration tool called gcc. - Elliot Hughes, author of lwm -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Tuesday afternoon shell command optimisation party!
perl -e 'while(){$a+=s/[,]//g};print $a\n' input.txt Do I win?? On Dec 18, 2007 4:09 PM, Jeff Waugh [EMAIL PROTECTED] wrote: Hi all, Here's a starting point. What's a more optimal way to perform this task? :-) sed 's#[^,]*##g' input.txt | tr -d '\n' | wc -m Tuesday afternoon shell optimisation party! Thanks, - Jeff -- linux.conf.au 2008: Melbourne, Australiahttp://lca2008.linux.org.au/ It will test your head. And your mind. And your brain, too. - Jack Black, School of Rock -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html -- Regards, Martin Martin Visser -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Tuesday afternoon shell command optimisation party!
[EMAIL PROTECTED] wrote on 18/12/2007 04:09:15 PM: Hi all, Here's a starting point. What's a more optimal way to perform this task? :-) sed 's#[^,]*##g' input.txt | tr -d '\n' | wc -m Not the most graceful, but the following seems to work: grep -o ',' input.txt |wc -l Cheers, Scott -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Tuesday afternoon shell command optimisation party!
On 18/12/07 16:32:03, Jeff Waugh wrote: That's part of the challenge. sed 's#[^,]*##g' input.txt | tr -d '\n' | wc -m Something like the following might be close: awk 'BEGIN{FS=,}{$0~,$:i=i+NF?i=i+NF-1}END{print(i)}' input.txt Robert Thorsby Old timers will tell you what a pain unstable was during the new testament transition. -- Jon Corbet on Debian's KJV packages -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Tuesday afternoon shell command optimisation party!
On Dec 18, 2007 4:35 PM, Martin Visser [EMAIL PROTECTED] wrote: perl -e 'while(){$a+=s/[,]//g};print $a\n' input.txt Do I win?? No. Ironically, your solution is 3 characters longer. :-) Lindsay -- http://slug.org.au/ (the Sydney Linux Users Group) http://holmwood.id.au/~lindsay/ (me) -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Tuesday afternoon shell command optimisation party!
quote who=Martin Visser perl -e 'while(){$a+=s/[,]//g};print $a\n' input.txt Do I win?? Oddly, perl very rarely wins these. ;-) - Jeff -- linux.conf.au 2008: Melbourne, Australiahttp://lca2008.linux.org.au/ Odd is good by the way. I knew normal in high school and normal hates me. - Mary Gardiner -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Tuesday afternoon shell command optimisation party!
On 18/12/2007, at 4:42 PM, Scott Ragen wrote: [EMAIL PROTECTED] wrote on 18/12/2007 04:09:15 PM: Hi all, Here's a starting point. What's a more optimal way to perform this task? :-) sed 's#[^,]*##g' input.txt | tr -d '\n' | wc -m Not the most graceful, but the following seems to work: grep -o ',' input.txt |wc -l Assuming we're using GNU grep we can leave the pipe off: grep -c -o ',' input.txt The '-c' will count the number of matching lines thus negating the need for |wc -l. Similar to the whole 'cat file | grep' argument. -- James smime.p7s Description: S/MIME cryptographic signature -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Tuesday afternoon shell command optimisation party!
quote who=Scott Ragen grep -o ',' input.txt |wc -l Oh nice, grep -o! Clever! :-) - Jeff -- GNOME.conf.au 2008: Melbourne, Australia http://live.gnome.org/Melbourne2008 People keep asking me why we aren't married, and he says, 'Every time I am about to ask you, you do something annoying'. - Kate Beckinsale -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Tuesday afternoon shell command optimisation party!
quote who=Robert Thorsby sed 's#[^,]*##g' input.txt | tr -d '\n' | wc -m Something like the following might be close: awk 'BEGIN{FS=,}{$0~,$:i=i+NF?i=i+NF-1}END{print(i)}' input.txt Close in what sense, the syntax error, the length, or the output? ;-) - Jeff -- GNOME.conf.au 2008: Melbourne, Australia http://live.gnome.org/Melbourne2008 I used the word 'infrastructure' when describing her cooking style... and she didn't speak to me for a week. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Tuesday afternoon shell command optimisation party!
On 18/12/07 16:45:18, Robert Thorsby wrote: Something like the following might be close: awk 'BEGIN{FS=,}{$0~,$:i=i+NF?i=i+NF-1}END{print(i)}' input.txt Oops, I transposed the : and the ? in the conditional. Just shows what you can do when fingers outpace brain. Robert Thorsby Research is what I'm doing when I don't know what I'm doing. -- von Braun -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Tuesday afternoon shell command optimisation party!
quote who=James Gray Not the most graceful, but the following seems to work: grep -o ',' input.txt |wc -l Assuming we're using GNU grep we can leave the pipe off: grep -c -o ',' input.txt Hmm, unfortunately the -c misinterprets the count due to a weird interaction between -c and -o. I wonder if this should be regarded as a bug in GNU grep? $ grep -o ',' input.txt | wc -l 19 $ grep -c -o ',' input.txt 10 - Jeff -- GNOME.conf.au 2008: Melbourne, Australia http://live.gnome.org/Melbourne2008 I get my kicks above the .sigline, sunshine. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Tuesday afternoon shell command optimisation party!
On Dec 18, 2007 4:53 PM, Jeff Waugh [EMAIL PROTECTED] wrote: quote who=James Gray Not the most graceful, but the following seems to work: grep -o ',' input.txt |wc -l Assuming we're using GNU grep we can leave the pipe off: grep -c -o ',' input.txt Hmm, unfortunately the -c misinterprets the count due to a weird interaction between -c and -o. I wonder if this should be regarded as a bug in GNU grep? Not a bug at all! grep -c only counts the number of matching lines, not the number of occurances of a pattern in a line. Lindsay -- http://slug.org.au/ (the Sydney Linux Users Group) http://holmwood.id.au/~lindsay/ (me) -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Tuesday afternoon shell command optimisation party!
On 18/12/07 16:50:17, Jeff Waugh wrote: Something like the following might be close: awk 'BEGIN{FS=,}{$0~,$:i=i+NF?i=i+NF-1}END{print(i)}' input.txt Close in what sense, the syntax error, the length, or the output? ;-) - Jeff Syntax error granted -- just keeping you on your toes :-) But, at least, it only uses one process (what ain't perl). Robert Testing? What's that? If it compiles, it is good, if it boots up it is perfect. -- Linus Torvalds -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Tuesday afternoon shell command optimisation party!
quote who=Lindsay Holmwood Not a bug at all! grep -c only counts the number of matching lines, not the number of occurances of a pattern in a line. But when you stick -o in there... Hrrrmmm... I even switched their position on the command line to see if that changed the output. Total cargo cult and voodoo, but anyway. ;-) - Jeff -- GNOME.conf.au 2008: Melbourne, Australia http://live.gnome.org/Melbourne2008 Everything I knew about TCP/IP I had downloaded the same day I started hacking the net code. - Alan Cox -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
RE: [SLUG] Tuesday afternoon shell command optimisation party!
Here's a starting point. What's a more optimal way to perform this task? :-) sed 's#[^,]*##g' input.txt | tr -d '\n' | wc -m For starters, remount the partition containing input.txt with the noatime option and disable trackerd. :) Then, change the '*' to a '\+' in your regex. This saved about 30% CPU time on a 2Mb sample. - Rog -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Tuesday afternoon shell command optimisation party!
On Tue, 2007-12-18 at 16:09 +1100, Jeff Waugh wrote: Here's a starting point. What's a more optimal way to perform this task? :-) sed 's#[^,]*##g' input.txt | tr -d '\n' | wc -m Tuesday afternoon shell optimisation party! How do you want it optimised? grep -o is the most readable. But the fastest I've found so far is cat input.txt | tr -d '\n' | tr ',' '\n' | wc -l -- Pete -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Tuesday afternoon shell command optimisation party!
On Dec 18, 2007 4:35 PM, Martin Visser [EMAIL PROTECTED] wrote: perl -e 'while(){$a+=s/[,]//g};print $a\n' input.txt Ruby version: ruby -e p IO.read('input.txt').count(',') Lindsay -- http://slug.org.au/ (the Sydney Linux Users Group) http://holmwood.id.au/~lindsay/ (me) -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Tuesday afternoon shell command optimisation party!
[EMAIL PROTECTED] wrote on 18/12/2007 05:21:35 PM: On Tue, 2007-12-18 at 16:09 +1100, Jeff Waugh wrote: Here's a starting point. What's a more optimal way to perform thistask? :-) sed 's#[^,]*##g' input.txt | tr -d '\n' | wc -m Tuesday afternoon shell optimisation party! How do you want it optimised? grep -o is the most readable. But the fastest I've found so far is cat input.txt | tr -d '\n' | tr ',' '\n' | wc -l This seems to work too: cat input.txt |tr -dC ',' |wc -c Cheers, Scott -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Tuesday afternoon shell command optimisation party!
On Tue, 2007-12-18 at 17:05 +1100, Lindsay Holmwood wrote: On Dec 18, 2007 4:35 PM, Martin Visser [EMAIL PROTECTED] wrote: perl -e 'while(){$a+=s/[,]//g};print $a\n' input.txt Ruby version: I've got a sixpack of beer for a working PostScript variant. :-) -- Pete -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Tuesday afternoon shell command optimisation party!
quote who=Peter Hardy How do you want it optimised? It doesn't matter either way -- almost all claims in these threads are educational in some form or another! :-) - Jeff -- GNOME.conf.au 2008: Melbourne, Australia http://live.gnome.org/Melbourne2008 Blessed are the cracked, for they let in the light. - Spike Milligan -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Tuesday afternoon shell command optimisation party!
On 18/12/07 17:33:25, Scott Ragen wrote: This seems to work too: cat input.txt |tr -dC ',' |wc -c Use redirection to eliminate cat tr -dC ',' input.txt | wc -c Robert Thorsby Let me know if you don't receive this message. -- email signature tagline -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Tuesday afternoon shell command optimisation party!
tr -dc ',' input.txt | wc -c will count the number of commas in the input file. Peter C -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html