Re: [SLUG] Latex question: fi -- theta
* Michael Lake ([EMAIL PROTECTED]) wrote: On Sat Mar 12, Nick Croft wrote: Ok then it's the fact that you don't have that glyph on your work setup. Mmm. Odd though. I'm back to thinking I need to install potato first, then upgrade to the latest, putting a couple of programs on hold. The fix so far is to substitute for `fi' f\hspace{0mm}i . Excellent solution. You can shorten that to f{}i That _is_ neat. N -- 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] How do I mount an audio Cd ?
On Sun Mar 13, 2005 at 16:01:49 +1100, Rod Butcher wrote: While I appreciate there is some technical issue involved here, as a PC user I expect a tool (like e.g. ls, nautilus or whatever) that professes to give me a list of files on a storage medium, to do this for all storage media - and to me an audio cd is just that, with one or more files or tracks or whatever on it. In this case I presume it would be trivial to incorporate whatever voodoo cdparanoia uses and make ls display the fact that there is an audio file called xyz on the cd I just loaded. Any mount command would presumably be doing something quite different than what is done for e.g. vfat, but to the user it's all the same. What I'm getting at is, it's what it means to the user that matters, not what's going on behind the scenes. MS grasped this brilliantly. I don't disagree. I was talking from a philosphical point of view -- which is what was asked for by Trent in the email to which I was replying. Now I really don't know much about the details of the track format of audio cds, however I *do* know that cdparanoia goes through a lot of black magic to copy an audio track error free. Thankfully it looks like 2.6.12 might have user-level filesystems, which should make it much easier to implement something such as you describe. Cheers, Benno cheers Rod On Sun, 2005-03-13 at 12:25 +1100, Benno wrote: On Sun Mar 13, 2005 at 01:32:58 +1000, QuantumG wrote: Jeff Waugh wrote: Windows is lying a little bit, to give you a nicer interface. Audio CDs are not like data CDs, and cannot be mounted. From a purely philosophical point of view, what would be a good reason for not have a kernel module that mounts audio CDs by interpreting the red book format? Well if you have the philosophy of 'only do it in the kernel if you *have* to', then there is no reason to put it in the kernel, as has already been proven it is able to be done quite well at user level. Seems kind of silly to have code at the application level doing this low level interpretation. From my p.o.v it seems silly to have thi kind of code in the kernel when clearly it can be done just as well at user-level. Benno -- --- Brought to you by a penguin, a gnu and a camel -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html -- 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] Re: How do I mount an audio Cd ?
On Sun Mar 13, 2005 at 16:09:23 +1100, Matthew Palmer wrote: On Sun, Mar 13, 2005 at 04:01:49PM +1100, Rod Butcher wrote: What I'm getting at is, it's what it means to the user that matters, not what's going on behind the scenes. MS grasped this brilliantly. You're not listening to what the people are telling you. There *is* magic in the relevant GUI applications to do what you want to do -- get a list of tracks on a CD as wav files. This is precisely what Windows gives you, as well. You appear to be annoyed because people are telling you that your suggested method isn't optimal. Yet you're saying it's [...] not what's going on behind the scenes that matters. I don't think Rod was annoyed, I think we were just having a discussion. And hell, I agree with him on some points, the user shouldn't have to care about whats going on behind the scenes. And as far as not being able to ls /cdrom and get a list of tracks, I'd suggest you try dir d: sometime and see how far you get. Mmm, I can do an ls /Volumes/Punk\ Bites\ 2 (which happens to be the name of the CD I'm currently listening to) on my other unix (MacOSX) and get a list of tracks. It even has a the correct names the names of the tracks. Neat! I can use the same tools I use to manipulate my other files, cool! This *is* good usability. And Rod is right, right now doing this, I don't care what it going on behind the scenes. Of course as a systems designer and probably a sysadmin I'd care if this functionality is implemented inside the kernel. Benno -- 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] I wish to lowercase a character in a sed script
Michael Lake wrote: Hi all I have a titles.html file from someone that has several hundred authors listed in a table. e.g. trtd class=col1a href=111_12.htmlAgrawal, B.M. and Kumar, Virendra/a/td At present the above link goes to the top of that file (the contents of that journal issue) but I want the link to directly go to the authors article in that directory. There are already name anchors in the file but they are lower case such as: a name=agrawal/a The script below will take extract the authors name from after the link so that a href=111_12.htmlAgrawal, B.M becomes a href=111_12.html#AgrawalAgrawal, B.M but the name anchors in the many journal files are all lower case like this: a name=agrawal/a thus my links don't work. #!/bin/bash # trtd class=col1a href=111_12.htmlAgrawal, B.M. and Kumar, Virendra/a/td # trtd class=col1a href=111_12.html#AgrawalAgrawal, B.M. and Kumar, Virendra/a/td cat titles.html | sed 's/col1a href=\(.*\)\.html\([A-Z][a-z]*\),/col1a href=\1.html#\2\2,/' test.html How can I lower case the anchors i.e. #Agrawal to #agrawal? I know that tr can do that but the above is in a sed script adn I can't use tr there. sed does not have a lower function. Maybe I have to do in two passes somehow? Ouch. Do you have to use sed? If you have perl installed, you could replace sed '...' with perl -ne '...' and you could probably solve the problem with something like: cat titles.html | perl -ne 'm/\.html([^,]{1,}),/; $name=lc($1); $_ =~ s/\.html/\.html#$name/; print $_;' That may be clumsy by perl standards, but I think it works at least if you have one instance per line in the html file. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] Lexmark 1150 printer driver
Hello sluggers, Does any one know where to lay their hands on a printer driver for the above? tks Nick. -- 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] I wish to lowercase a character in a sed script
Hi From: Daniel Bush [EMAIL PROTECTED] Date: Sun, 13 Mar 2005 22:35:48 +1100 #!/bin/bash # trtd class=col1a href=111_12.htmlAgrawal, B.M. and Kumar, Virendra/a/td # trtd class=col1a href=111_12.html#AgrawalAgrawal, B.M. and Kumar, Virendra/a/td cat titles.html | sed 's/col1a href=\(.*\)\.html\([A-Z][a-z]*\),/col1a href=\1.html#\2\2,/' test.html How can I lower case the anchors i.e. #Agrawal to #agrawal? I know that tr can do that but the above is in a sed script adn I can't use tr there. sed does not have a lower function. Maybe I have to do in two passes somehow? Ouch. Do you have to use sed? If you have perl installed, you could replace (snip) sed is not useful for this purpose, but the following script may work with GNU sed #!/bin/bash # trtd class=col1a href=111_12.htmlAgrawal, B.M. and Kumar, Virendra/a/td # trtd class=col1a href=111_12.html#agrawalAgrawal, B.M. and Kumar, Virendra/a/td cat titles.html | sed -n ' /col1a href=/ { # copy whole line to hold space h # pick up the letter s/.*col1a href=[^]*.html\(.\).*/\1/ y/[A-Z]/[a-z]/ # add it to the end of hold space H # retrieve hold space x # construct line s/\(.*col1a href=[^]*.html\)\(.\)\([^,]*\)\(,.*\)\(.\)$/\1#\5\3\2\3\4/ P b } p' test.html sed does not have a lower function. GNU sed have y command. If you want to use XPG4/POSIX correct sed, please use s/A/a/; s/B/b/; ...; s/Z/z/; as substitute for y/[A-z]/[a-z]/ -- SEKINE Tatsuo: [EMAIL PROTECTED]System Design Research Inst. Co.,Ltd. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] Thunderbird as default e-mail for Firefox - not succesful yet
Hi all, Using Fed Core 3 (KDE 3.3.0-5 and Konquie 3.3.0-8) with Firefox 1.0.1 and Thunderbird 0.9. I cannot get Thunderbird to open as the default for Firefox when clicking on an e-mail like in Ffox. I can easily set it to use Evolution as the default. I can easily get Thunderbird to generate an e-mail when using Konqeror as the browser, I just can't get Firefox to use Thunderbird! I've posted to the Fedora group, but the only people who have replied so are are Gnome users and... well, I'm not. Any help most appreciated. Regards, Patrick -- 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] Lexmark 1150 printer driver
On Sun, 13 Mar 2005 10:56 pm, Nicholas Tomlin wrote: Hello sluggers, Does any one know where to lay their hands on a printer driver for the above? tks Nick. Hi Nick, I've found the Lexmark marketing department seem to get excited about new models and give them a different model number, but for all intents and purposes the printer is pretty much the same as it's base model number. For instance a Lexmark 1100 is (probably) pretty much the same as the 1150. Having said that, yours might be an exception to the rule as I'm not familiar with your *specific* model. My comments are based on a long history working with the Optra lasers. OK, disclaimer out of the way, see if you get any mileage from this: http://www.linuxprinting.org/show_printer.cgi?recnum=Lexmark-1100 Cheers, James -- Even though they raised the rate for first class mail in the United States we really shouldn't complain -- it's still only two cents a day. pgpRMzJBOY52G.pgp Description: PGP 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] Lexmark 1150 printer driver
James, Thank you for this. It isn't my printer, just trying to help a friend who's just made the transition from microshite to fedora. I'd done a google but didn't turn up this one, must have been on page 10, the last one you'd look at. I appreciate your time and effort. Regards, Nick Tomlin -- 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] Lexmark 1150 printer driver
On Mon, 14 Mar 2005 09:09 am, Nicholas Tomlin wrote: James, Thank you for this. It isn't my printer, just trying to help a friend who's just made the transition from microshite to fedora. I'd done a google but didn't turn up this one, must have been on page 10, the last one you'd look at. I appreciate your time and effort. Regards, Nick Tomlin Heheh - always happens like that doesn't it ;) I'd bookmark that Linux Printing website if I were you. I've used it to recommend printers to other people who needed something new that would work in Linux. It's also good to see which manufacturers are supporting F/OSS - if they support the community, I'll support them with my $$$. I even borrowed an internet enabled lappy at Harvey Norman[1] to double check my Lexmark E232 before buying it :P Hope your friend has a lot of success in Linux - if not, there's a heap of F/OSS available for Win32. Firefox+Thunderbird+OpenOffice = kick arse :) Have fun, James [1] Apparently the lappy was supposed to password protected, but my linux boot floppy soon made light work of their administrator password - heheh -- Celestial navigation is based on the premise that the Earth is the centre of the universe. The premise is wrong, but the navigation works. An incorrect model can be a useful tool. -- Kelvin Throop III pgpNZAAlj47VB.pgp Description: PGP 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] I wish to lowercase a character in a sed script
#!/bin/bash # trtd class=col1a href=111_12.htmlAgrawal, B.M. and Kumar, Virendra/a/td # trtd class=col1a href=111_12.html#AgrawalAgrawal, B.M. and Kumar, Virendra/a/td cat titles.html | sed 's/col1a href=\(.*\)\.html\([A-Z][a-z]*\),/col1a href=\1.html#\2\2,/' test.html How can I lower case the anchors i.e. #Agrawal to #agrawal? I know that tr can do that but the above is in a sed script adn I can't use tr there. sed does not have a lower function. Maybe I have to do in two passes somehow? Can you not simplay add \l (force next element to lowercase) in your replacement? Eg (untested) ... cat titles.html | sed 's/col1a href=\(.*\)\.html\([A-Z][a-z]*\),/col1a href=\1.html#\l\2\2,/' test.html - 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] Thunderbird as default e-mail for Firefox - not succesfulyet
Elliott-Brennan wrote: I cannot get Thunderbird to open as the default for Firefox when clicking on an e-mail like in Ffox. I can easily set it to use Evolution as the default. I can easily get Thunderbird to generate an e-mail when using Konqeror as the browser, I just can't get Firefox to use Thunderbird! Yeah I consider this a bug in Firefox. Its something that just should work easily. There are a few ways to enable this. Lookup in Google enable mailto firefox. Have a look at the first few google links such as: http://opensource.weblogsinc.com/entry/7672458579278871/ Mike -- Michael Lake Chemistry, Materials Forensic Science, UTS Ph: 9514 1725 Fx: 9514 1460 [pls ignore idiot lawyer's msg below] -- UTS CRICOS Provider Code: 00099F DISCLAIMER: This email message and any accompanying attachments may contain confidential information. If you are not the intended recipient, do not read, use, disseminate, distribute or copy this message or attachments. If you have received this message in error, please notify the sender immediately and delete this message. Any views expressed in this message are those of the individual sender, except where the sender expressly, and with authority, states them to be the views the University of Technology Sydney. Before opening any attachments, please check them for viruses and defects. -- 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] Thunderbird as default e-mail for Firefox - not succesfulyet
Michael Lake wrote: Elliott-Brennan wrote: I cannot get Thunderbird to open as the default for Firefox when clicking on an e-mail like in Ffox. I can easily set it to use Evolution as the default. I can easily get Thunderbird to generate an e-mail when using Konqeror as the browser, I just can't get Firefox to use Thunderbird! Yeah I consider this a bug in Firefox. Its something that just should work easily. There are a few ways to enable this. Lookup in Google enable mailto firefox. Have a look at the first few google links such as: http://opensource.weblogsinc.com/entry/7672458579278871/ Mike It's always worked fine for me - Straight out of the box. I use Ubuntu though. Ubuntu installs Evolution as the default mail app, but I prefer Thunderbird so installed it and set it as my default the usual way and it just worked. Works fine both ways - clicking on link in email gives me the fox, clicking on email link in the fox gives me the bird :) Fil -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] rdiff?
Does anyone know of a gui for rdiff or something similar. Any suggestions are appreciated Lyle Chapman Prepress Supervisor Torch Publishing Company 47 Allingham Street, Condell Park, NSW, Australia Ph: 61 02 9795 Fax: 61 02 9795 0096 email: [EMAIL PROTECTED] -- 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] rdiff?
Take a look at http://www.linuxsoft.cz/en/sw_detail.php?id_item=9130 it may be what you want. I havent tried it myself Luke Lyle Chapman wrote: Does anyone know of a gui for rdiff or something similar. Any suggestions are appreciated Lyle Chapman Prepress Supervisor Torch Publishing Company 47 Allingham Street, Condell Park, NSW, Australia Ph: 61 02 9795 Fax: 61 02 9795 0096 email: [EMAIL PROTECTED] -- 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] rdiff?
Lyle Chapman wrote: Does anyone know of a gui for rdiff or something similar. Any suggestions are appreciated I use TkDiff which is a Tck/Tk interface diff. Its pretty good as it shows the files sid-by-side and the non-matching areas highlighted graphically. http://sourceforge.net/projects/tkdiff/ In debian its just called tkdiff Mike -- Michael Lake Chemistry, Materials Forensic Science, UTS Ph: 9514 1725 Fx: 9514 1460 [pls ignore idiot lawyer's msg below] -- UTS CRICOS Provider Code: 00099F DISCLAIMER: This email message and any accompanying attachments may contain confidential information. If you are not the intended recipient, do not read, use, disseminate, distribute or copy this message or attachments. If you have received this message in error, please notify the sender immediately and delete this message. Any views expressed in this message are those of the individual sender, except where the sender expressly, and with authority, states them to be the views the University of Technology Sydney. Before opening any attachments, please check them for viruses and defects. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] Crystal/Cirrus cs89x0 ethernet adapter
Hi, I have just been installing Debian on an IBM 300GL PC with an embedded Crystal/Cirrus cs89x0 ethernet adapter (which is a supported adapter). It all works well, _except_ that the install process doesn't recognise the adapter (and I haven't been able to do it manually with insmod - I get 'Device or resource busy' and I've checked that the io and irq resources are free). From what I've been able to discover searching around, the problem is likely to be that the adapter comes pre-configured with 'Plug and Play' enabled and that prevents the driver talking to the adapter. But, to change the setting you apparently need a DOS setup utility that I haven't been able to find. Both Cirrus and IBM provide links to the driver (broken in IBM's case) but not the utility and neither have responded to email requests. I know this problem has come up previously on this list and one of the participants had found the utility, so I was wondering if someone could point me in the right direction (or even supply a copy of the DOS utility)? Failing that I will try slotting in another adapter. Any other suggestions would be appreciated as well. Cheers, Stuart -- 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] Thunderbird as default e-mail for Firefox - not succesful yet
I cannot get Thunderbird to open as the default for Firefox when clicking on an e-mail like in Ffox. Sorry that I don't have the solution but it might cheer you to know that I'm running firefox 1.0 and thuderbird 1.0 on a non-gnome login (enlightenment) and it works fine for me. All I did was install both products (I think firefox was installed first) and did nothing special to be able to both; click on a mailto: link in firefox and have a compose window open in thunderbird, or click on a http: link in thunderbird and have it open in the firefox browser. My only gripe is that prior to this, in mozilla 1.6... you could right click on a link in the e-mail browser and open the page in a new tab, where as thunderbird doesn't appear to support this, it opens it in the active tab replacing the page of interest you might have open (I guess it's trying to be browser neutral). Dunno if this helps but a least you know that it can work. P. -- 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] rdiff?
On Mon, 14 Mar 2005 12:37, Michael Lake wrote: Lyle Chapman wrote: Does anyone know of a gui for rdiff or something similar. Any suggestions are appreciated I use TkDiff which is a Tck/Tk interface diff. Its pretty good as it shows the files sid-by-side and the non-matching areas highlighted graphically. http://sourceforge.net/projects/tkdiff/ In debian its just called tkdiff KDiff3 is a program that compares two or three text input files or directories, shows the differences line by line and character by character, provides an automatic merge facility and an integrated editor for comfortable solving of merge conflicts, and has an intuitive graphical user interface. http://freshmeat.net/projects/kdiff3/ Also have a look through the results of this search on Freshmeat http://freshmeat.net/search/?q=diffsection=projectsGo.x=0Go.y=0 -- Regards, Graham Smith - -- 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] Thunderbird as default e-mail for Firefox - not succesful yet
Peter Rundle wrote: My only gripe is that prior to this, in mozilla 1.6... you could right click on a link in the e-mail browser and open the page in a new tab, where as thunderbird doesn't appear to support this, it opens it in the active tab replacing the page of interest you might have open (I guess it's trying to be browser neutral). In FireFox, under Options - Advanced - Tabbed Browsing there is the option Open links from other applications in: and you can select a new tab in the most recent window. Trent -- 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] Thunderbird as default e-mail for Firefox - not succesful yet
Is this what you are looking for? http://mozex.mozdev.org/ David x22707 mailto: [EMAIL PROTECTED] -- 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] Thunderbird as default e-mail for Firefox - not succesful yet
In FireFox, under Options - Advanced - Tabbed Browsing there is the option Open links from other applications in: and you can select a new tab in the most recent window. Thanks :-) That's great. (of course I could now gripe about how under the old mozilla I could decide at the time whether to open in a new tab or the current tab, but that would just mark me as someone who wasn't happy unless there was something to winge about ;-) Cheers P. -- 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] rdiff?
On Mon, Mar 14, 2005 at 11:44:26AM +1100, Lyle Chapman wrote: Does anyone know of a gui for rdiff or something similar. Any suggestions are appreciated You might try unison as well. http://www.cis.upenn.edu/~bcpierce/unison/ Matt -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] Side-by-side diff [Was: rdiff?]
quote who=Michael Lake Lyle Chapman wrote: Does anyone know of a gui for rdiff or something similar. Any suggestions are appreciated I use TkDiff which is a Tck/Tk interface diff. Its pretty good as it shows the files sid-by-side and the non-matching areas highlighted graphically. http://sourceforge.net/projects/tkdiff/ So the side-by-side diff tools are wildly different to rdiff. But while we're on the topic, here's meld, which is a *very* sexy take on the genre: http://meld.sourceforge.net/ - Jeff -- GUADEC 2005: May 29th-31st http://2005.guadec.org/ I can't imagine anyone telling Emma Bunton to shut up. It would be rather like slapping Bambi. -- 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] Crystal/Cirrus cs89x0 ethernet adapter
On Mon, Mar 14, 2005 at 01:01:01PM +1100, Stuart Hall wrote: I have just been installing Debian on an IBM 300GL PC with an embedded Crystal/Cirrus cs89x0 ethernet adapter (which is a supported adapter). It I installed linux on one these things when they first came out and amazed the mainframe guys at work with a live demo of the linux kernels awesome dynamic modules. Now this probably won't help you, but I remember some magic that I had to use with insmod/modprobe; I specified the iobase as one _more_ than the actual; i.e. insmod cs89x0.o iobase=0x301 (not 300) Like I say it may well not work as the world of linux and ethernet has moved on a LOT since 1998, but there's a morsel to try anyway. -- Matt -- 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] I wish to lowercase a character in a sed script
From: Roger Barnes [EMAIL PROTECTED] Date: Mon, 14 Mar 2005 08:35:23 +1100 Can you not simplay add \l (force next element to lowercase) in your replacement? Eg (untested) ... cat titles.html | sed 's/col1a href=\(.*\)\.html\([A-Z][a-z]*\),/col1a href=\1.html#\l\2\2,/' test.html It may work with GNU sed version 4.x(or later). -- 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] Side-by-side diff [Was: rdiff?]
On Mon, 14 Mar 2005 14:14:02 +1100 Jeff Waugh [EMAIL PROTECTED] wrote: So the side-by-side diff tools are wildly different to rdiff. But while we're on the topic, here's meld, which is a *very* sexy take on the genre: http://meld.sourceforge.net/ Yep, but even after all this time, its still not as good as mgdiff, especially the Debian version which has half a dozen of my patches. apt-get install mgdiff The really nice thing about mgdiff is that by middle clicking you can choose both the left change and the right change which will write a CVS style bungled merge to the merged output file. Erik -- +---+ Erik de Castro Lopo [EMAIL PROTECTED] (Yes it's valid) +---+ Java sucks. C sucks slightly less so, but only because it makes no pretense at all about being a high level language. -- 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] I wish to lowercase a character in a sed script
Thank you all Here is a summary of how it all went. 1. Roger Barnes: Can you not simplay add \l (force next element to lowercase) in your replacement? Yes - its works fine. My version of sed is the GNU one 4.1.2. The /l works perfectly. Its not mentioned in the man pages for sed but it is mentioned in the info pages which I abhor :-) 3. Daniel Bush Suggested a perl script: cat titles.html | perl -ne 'm/\.html([^,]{1,}),/; $name=lc($1); $_ =~ s/\.html/\.html#$name/; print $_;' Yep that worked too. I tend to use perl for web stuff and don't do enough one liners like the above. It's neat. 3. Tatsuo Sekine Suggested to grab the letter, then transliterate (what a wonderful word) it using y/[A-Z]/[a-z]/, then append it to the end of this thing called hold space with a H and then swap the contents of the hold apace and the pattern space using the x (exchange operator). Well I have certainly learn something there :-) Oh it worked fine too. Caveats: In the html authors file there were some hyphenated names like Aldrich-Wright and some names with blanks like De Deckker. Each of the above methods, coupled with my the regex I use results in a few things to fix manually, but its only about 6 to do. In the titles file there was one author per table row and cat titles | grep 'tr' | wc -l showed there were 541 rows. You have saved me hours of work and I have some sed and perl snippets to save away in my HTML help file I :-) Thanks all. -- Michael Lake Chemistry, Materials Forensic Science, UTS Ph: 9514 1725 Fx: 9514 1460 [pls ignore idiot lawyer's msg below] -- UTS CRICOS Provider Code: 00099F DISCLAIMER: This email message and any accompanying attachments may contain confidential information. If you are not the intended recipient, do not read, use, disseminate, distribute or copy this message or attachments. If you have received this message in error, please notify the sender immediately and delete this message. Any views expressed in this message are those of the individual sender, except where the sender expressly, and with authority, states them to be the views the University of Technology Sydney. Before opening any attachments, please check them for viruses and defects. -- 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] rdiff?
Hiya all, must stir here :-) Jeff wrote: So the side-by-side diff tools are wildly different to rdiff. But while we're on the topic, here's meld, which is a *very* sexy take on the genre: http://meld.sourceforge.net/ Erik de Castro Lopo wrote: http://meld.sourceforge.net/ Yep, but even after all this time, its still not as good as mgdiff, especially the Debian version which has half a dozen of my patches. apt-get install mgdiff Well I should have a look at these, always willing to see or try new things $ sudo apt-get install mgdiff The following extra packages will be installed: lesstif1 The following NEW packages will be installed: lesstif1 mgdiff Need to get 689kB of archives. Do you want to continue? [Y/n] y Great done. $ sudo apt-get install meld The following NEW packages will be installed: desktop-file-utils gconf2 gnome-keyring gnome-mime-data libbonobo2-0 libbonobo2-common libbonoboui2-0 libbonoboui2-common libcroco3 libcupsys2-gnutls10 libeel2-2 libeel2-data libfam0c102 libgail-common libgail17 libgconf2-4 libgnome-desktop-2 libgnome-keyring0 libgnome2-0 libgnome2-common libgnomecanvas2-0 libgnomecanvas2-common libgnomecups1.0-1 libgnomeprint2.2-0 libgnomeprint2.2-data libgnomeprintui2.2-0 libgnomeprintui2.2-common libgnomeui-0 libgnomeui-common libgnomevfs2-0 libgnomevfs2-common libgsf-1 libgtkhtml2-0 libkrb53 libnautilus2-2 liborbit2 libpanel-applet2-0 librsvg2-2 librsvg2-common libsmbclient libstartup-notification0 meld python-glade2 python-gnome2 python-gtk2 python2.3-glade2 python2.3-gnome2 python2.3-gtk2 python2.3-numeric python2.3-pyorbit shared-mime-info 0 upgraded, 51 newly installed, 0 to remove and 46 not upgraded. Need to get 12.8MB of archives. After unpacking 52.8MB of additional disk space will be used. Do you want to continue? [Y/n] n Abort. Just for a bloody diff utility! Nah, no thanks Jeff :-) Mike -- Mike Lake Caver, Linux enthusiast and interested in anything technical. -- UTS CRICOS Provider Code: 00099F DISCLAIMER: This email message and any accompanying attachments may contain confidential information. If you are not the intended recipient, do not read, use, disseminate, distribute or copy this message or attachments. If you have received this message in error, please notify the sender immediately and delete this message. Any views expressed in this message are those of the individual sender, except where the sender expressly, and with authority, states them to be the views the University of Technology Sydney. Before opening any attachments, please check them for viruses and defects. -- 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] rdiff?
Michael Lake wrote: $ sudo apt-get install meld The following NEW packages will be installed: . After unpacking 52.8MB of additional disk space will be used. Do you want to continue? [Y/n] n Abort. Just for a bloody diff utility! Nah, no thanks Jeff :-) Okies I see it does do CVS stuff and the kitchen sink as well as diff :-) -- Michael Lake Chemistry, Materials Forensic Science, UTS Ph: 9514 1725 Fx: 9514 1460 [pls ignore idiot lawyer's msg below] -- UTS CRICOS Provider Code: 00099F DISCLAIMER: This email message and any accompanying attachments may contain confidential information. If you are not the intended recipient, do not read, use, disseminate, distribute or copy this message or attachments. If you have received this message in error, please notify the sender immediately and delete this message. Any views expressed in this message are those of the individual sender, except where the sender expressly, and with authority, states them to be the views the University of Technology Sydney. Before opening any attachments, please check them for viruses and defects. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] List 'geovrml' closed to public posts
This is a closed list. That is, if you are not on the list, you cannot post to it. If you would like to be on the list, please mail geovrml-request at ai dot sri dot com, with the word subscribe in the subject or body. (You'll have to de-spam-proof that addy, of course.) Your post has been forwarded to the moderators. If it was appropriate to the list they will probably post it for you, and encourage you to join the list. --jason --- Original mail message --- From [EMAIL PROTECTED] Sun Mar 13 23:25:52 2005 Return-Path: [EMAIL PROTECTED] Received: from mailgate-external1.sri.com (mailgate-external1.SRI.COM [128.18.85.101]) by Seacliff.AI.SRI.COM (8.9.3/8.9.3) with SMTP id XAA21556 for [EMAIL PROTECTED]; Sun, 13 Mar 2005 23:25:46 -0800 (PST) Received: from localhost (HELO mailgate-external1.SRI.COM) (127.0.0.1) by mailgate-external1.sri.com with SMTP; 14 Mar 2005 07:25:16 - Received: from Aliso.AI.SRI.COM ([130.107.64.152]) by mailgate-external1.SRI.COM (SMSSMTP 4.0.5.66) with SMTP id M2005031323251528317 for [EMAIL PROTECTED]; Sun, 13 Mar 2005 23:25:15 -0800 Received: from Cayenne.AI.SRI.COM ([128.18.61.80]) by Aliso.AI.SRI.COM (SAVSMTP 3.1.2.35) with SMTP id M2005031323251529470 for [EMAIL PROTECTED]; Sun, 13 Mar 2005 23:25:15 -0800 Received: from slug.org.au ([193.255.3.221]) by Cayenne.AI.SRI.COM (8.12.3/8.12.11) with ESMTP id j2E7P8bZ029216 for [EMAIL PROTECTED]; Sun, 13 Mar 2005 23:25:09 -0800 Message-Id: [EMAIL PROTECTED] From: slug@slug.org.au To: [EMAIL PROTECTED] Subject: Mail Transaction Failed Date: Mon, 14 Mar 2005 09:23:59 +0200 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary==_NextPart_000_0013_25A85732.77A22A5A X-Priority: 3 X-MSMail-Priority: Normal X-Spam-Status: No, score=3.7 threshold=8.0 X-Spam-Level: This is a multi-part message in MIME format. --=_NextPart_000_0013_25A85732.77A22A5A Content-Type: text/plain; charset=Windows-1252 Content-Transfer-Encoding: 7bit The message contains Unicode characters and has been sent as a binary attachment. --=_NextPart_000_0013_25A85732.77A22A5A Content-Type: text/plain; name=DELETED0.TXT Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=DELETED0.TXT RmlsZSBhdHRhY2htZW50OiBmaWxlLnppcApBIGZpbGUgYXR0YWNoZWQgdG8gdGhpcyBlbWFp bCB3YXMgcmVtb3ZlZA0KYmVjYXVzZSBpdCB3YXMgaW5mZWN0ZWQgd2l0aCBhIHZpcnVzLg0K DQpSZXN1bHQ6IFZpcnVzIERldGVjdGVkDQpWaXJ1cyBOYW1lOiBXMzIuTG92Z2F0ZS5SQG1t DQpGaWxlIEF0dGFjaG1lbnQ6IGZpbGUuemlwDQpBdHRhY2htZW50IFN0YXR1czogZGVsZXRl ZA0K --=_NextPart_000_0013_25A85732.77A22A5A-- --- Listar v1.0.0 - job execution complete. -- 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] rdiff?
On Mon, 14 Mar 2005 18:23:48 +1100 Michael Lake [EMAIL PROTECTED] wrote: Michael Lake wrote: $ sudo apt-get install meld The following NEW packages will be installed: . After unpacking 52.8MB of additional disk space will be used. Do you want to continue? [Y/n] n Abort. Just for a bloody diff utility! Nah, no thanks Jeff :-) Okies I see it does do CVS stuff and the kitchen sink as well as diff :-) So does mgdiff. It ships with cvsmgdiff and rmgdiff wrapper scripts which does CVS diffs and recursive directory diffs. Finally, if you want a feature enhancement you can always ask me :-). Erik -- +---+ Erik de Castro Lopo [EMAIL PROTECTED] (Yes it's valid) +---+ This is like creating laws against blasphemy and then complaining that unbelievers can't come up with any logical argument against the existence of God -- www.infoanarchy.org on the Digital Millenium Copyright Act -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html