Re: landscape architecture software
Greg Rundlett (freephile) wrote: I wanted to do some modelling of my home landscaping. Anyone know of an application that does this (Linux-compatible of course)? There are many software packages available for Windows, but I can't seem to find any that are linux compatible. I thought to try my hand at using Blender, but I'd really like to use something that is specifically pre-tooled to deal with landscaping. For example the commercial Windows packages have thousands of photorealistic plants and things that you can add to your models. Not sure if this will do everything you want or not, but the SourceForge project of the month is called Sweet Home 3D. http://www.sweethome3d.eu/ -- Cole Tuininga Lead Developer co...@code-energy.com ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
Re: grep, maybe
After a night's sleep, I realized I might even be able to make Ben happy: #!/bin/sh cd /path/to/toplevel/dir find -type d | while read i do grep moe $i/* /dev/null echo $i done | while read d do mv $d /path/to/destination || echo mv for $d didn't work: $? done -Ken P.S. It deals gracefully with spaces (I checked -- hadn't been sure about how the second read would work). P.P.S. It does appear that find is terminated for the second loop. (Or so said the ps I threw into it to check.) P.^3S. For millions of hits, your memory might start to bog. In which case, if you expect that, it's definitely time to go with the temporary file thing. On Thu, October 29, 2009 1:31 pm, mark wrote: On Thu, Oct 29, 2009 at 11:38 AM, Maurice mauri...@cds-cumberland.orgwrote: Looking for some guidance; I have several files within several folders (5 files per folder, and thousands of folders) that I need to search a text file within each folder for a word match (like three_little_pigs.txt, and I need to find moe, if he's listed) and then when a match is found I need to move (not copy) that entire folder (and it's 3~5 files contained within) to another location... #!/bin/sh cd [top level directory] grep -l -r [search string in double quotes] /tmp/file_names_found 2/tmp/grep.errs cat /tmp/file_names_found|xargs -i basename {} /tmp/dir_names_to_move dir_list=`sort /tmp/dir_names_to_move|unique` for DIRECTORY in $(dir_list); do mvdir $DIRECTORY [new location here] STATUS=$? if [ $STATUS -ne 0 ]; then echo mvdir returned status $STATUS end done exit You'll have to come up with a way to create the value for new location here that is unique so you don't overlay all the directories into the same path and lose everything, so maybe test it with a copy first. You'll also want to check /tmp/grep.errs for any error messages. I hope this helps. mark -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/ -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
Re: Remember your pearls [was grep, maybe]
On Thu, Oct 29, 2009 at 11:01 PM, Greg Rundlett (freephile) g...@freephile.com wrote: Not an answer to the OP, but a follow-on. So, you've worked out a magnificent one-liner solution to a interesting and recurring task. How do you 'remember' your solution? Do you create a file with scripts and comments? Do you post it in a wiki? A blog? An IDE with snippets? Do you remember it in your head? I used to store my good one-liners in Konsole as 'bookmarks' because you could put anything into a bookmark. Until KDE4. They improved the bookmark system which now only knows telnet:// and ssh:// URLs. Konsole even re-writes your bookmarks as you save them by url-encoding them. The issue is apparently due to reliance on Kurl - a core class in KDE, and so not a problem with Konsole. http://bugs.kde.org/show_bug.cgi?id=185962 http://bugs.kde.org/show_bug.cgi?id=88867 Greg Rundlett Nice. I keep text files. I have some going back to 1996 when I used exmh email. I wonder how much data got lost because it was kept in a format that changed. Like Wordperfect, dbase, etc... ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
Re: Remember your pearls [was grep, maybe]
On Thu, Oct 29, 2009 at 11:01 PM, Greg Rundlett (freephile) g...@freephile.com wrote: So, you've worked out a magnificent one-liner solution to a interesting and recurring task. How do you 'remember' your solution? They get saved in a file under $HOME/bin under an appropriate name, with appropriate comments. Ideally, I turn them into a working command I can then use as needed. (Occasionally they get turned into shell aliases or functions, if the mood strikes me.) Or I forget about them and have to re-invent the wheel next time. :) -- Ben ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
Re: grep, maybe
On Fri, Oct 30, 2009 at 8:15 AM, Ken D'Ambrosio k...@jots.org wrote: ... might even be able to make Ben happy ... Oh, a challenge, eh? ;-) cd /path/to/toplevel/dir find -type d | while read i Could be just: find /path/to/toplevel/dir -type d | while read i grep moe $i/* /dev/null echo $i Definitely should be at least: grep moe $i/* /dev/null echo $i (Putting the star inside the quotes prevents the shell from globing it, thus leading to grep trying to open a file named * in the directory.) Could be: grep -q moe $i/* echo $i (The -q switch to grep causes it to just exit with true on the first match, making things faster if the match is earlier in the file. Also avoids the need to throw away the output.) P.S. It deals gracefully with spaces (I checked -- hadn't been sure about how the second read would work). Yah, read reads lines. Lines are split into tokens on spaces and put into parameters you give, but the last parameter gets the rest of the line. So with one parameter, you get the whole line. P.P.S. It does appear that find is terminated for the second loop. (Or so said the ps I threw into it to check.) Cool. Thanks for checking. And for letting us know. :) P.^3S. For millions of hits, your memory might start to bog. In which case, if you expect that, it's definitely time to go with the temporary file thing. Or increase your swap space. ;-) -- Ben ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
Rosen's signature (was: grep, maybe)
On Fri, Oct 30, 2009 at 12:52 AM, Joshua Judson Rosen roz...@geekspace.com wrote: Don't be afraid to ask (Lf.((Lx.xx) (Lr.f(rr. Okay, I'll ask: What does that stuff to the right mean? The other half of the whole habanero pepper. :) Clear as mud! ;-) More lucidly: a combinator. ;) Ditto! ;-) It's a pun. ... So maybe it's a deeper (or worse) joke than I originally intended I'll work on appreciating the finer aspects of the joke when I understand the basics. ;-) Some kind of LISP? Almost. Did you have any luck googling for it? :) Yah, I found your page, along with a while bunch of your signature in various archives. ;-) And clicking the Google link on your page yields only a handful of results, some of which are unavailable, none of which seem to explain things, and one of which is your page again. ;-) From single-letter name ... phonetically I eventually decided it must be Don't be afraid to ask Y, i.e., Don't be afraid to ask why. That leads me to finding the below in the Wikipedia article, which at least looks kinda like your sig: Y = λf·(λx·f (x x)) (λx·f (x x)) I'm left thinking of that old meta-joke: Explaining a joke is like dissecting a frog: You understand it better, but the frog dies in the process. ;-) Maybe you should put the whole sig in quotes, so people like me don't think you're telling us not to be afraid to ask what the stuff on the right means. ;-) -- Ben ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
Re: Remember your pearls [was grep, maybe]
On Fri, Oct 30, 2009 at 8:32 AM, Tom Buskey t...@buskey.name wrote: I wonder how much data got lost because it was kept in a format that changed. Like Wordperfect, dbase, etc... ... the original video of the first moonwalk ... HHOS. -- Ben ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
Re: Remember your pearls [was grep, maybe]
Ben Scott writes: On Thu, Oct 29, 2009 at 11:01 PM, Greg Rundlett (freephile) g...@freephile.com wrote: So, you've worked out a magnificent one-liner solution to a interesting and recurring task. How do you 'remember' your solution? They get saved in a file under $HOME/bin under an appropriate name, with appropriate comments. Ideally, I turn them into a working command I can then use as needed. (Occasionally they get turned into shell aliases or functions, if the mood strikes me.) aolMe too!/aol This scheme really works for me. For example, later this afternoon I'm going to use a snippet of code I wrote in 2003 to analyze a ~1GB logfile that I have been generating for over a week now. It pays to write clean and flexible code in the first place, and it pays to be semi-organized as well. Regards, --kevin -- GnuPG ID: B280F24EGod, I loved that Pontiac. alumni.unh.edu!kdc-- Tom Waits http://kdc-blog.blogspot.com/ ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
Re: Fairpoint files for Chapter 11
I guess I'm naive but it irritates me that the NH PUC web site says: The Telecommunications Division assists the Commission in regulating the $800M telecommunications industry in New Hampshire. Registered public utilities include incumbent local exchange carriers (FairPoint and seven independent telephone companies), approximately 30 active competitive local exchange carriers, and over 100 in-state toll providers. The Commission does not regulate cable television, wireless/cellular, out-of-state long distance or Internet service providers. This has been, to me, a very interesting thread. Does anyone know of a forum with a similar ongoing conversation about telecomm in NH? Maybe we should fork one. Or is the subject automatically 'on track'? Mark On Wed, Oct 28, 2009 at 6:12 PM, Bill McGonigle b...@bfccomputing.com wrote: On 10/27/2009 08:11 PM, Jon 'maddog' Hall wrote: I went to a presentation the other night where a person from Fairpoint said that they had just put in a new Terabit switch as one of three they had installed in New Hampshire. They are going after the broadband business, and will probably lump POTS on top of that. They indicated that Verizon had not done much in the way of real improvement to rural areas (as opposed to Nashua or other cities) for a long time. They only ever expected to make money in the video (over ADSL2) business. Nobody ever thought they had enough reserve capital, it was a debt-leveraged play, and a crashed economy certainly bollixed their business plan. The trouble with Chapter 11, though, is who's going to extend them credit from the vendor sphere? They're holding a license to defraud their creditors. 'Cash on the barrel' would seem to be the acceptable terms. Is anybody aware of any actual video roll-out that's been done? One would think they'd have gone after revenue immediately, but that seems not to be the case, at least in my area. Maybe if this does crash and burn the PUC will get out of the monopoly-granting business. A man can dream, can't he? -Bill -- Bill McGonigle, Owner BFC Computing, LLC http://bfccomputing.com/ Telephone: +1.603.448.4440 Email, IM, VOIP: b...@bfccomputing.com VCard: http://bfccomputing.com/vcard/bill.vcf Social networks: bill_mcgonigle/bill.mcgonigle ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/ -- “Doubt is not a pleasant condition, but certainty is absurd.” – Voltaire ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
Re: landscape architecture software
On Fri, Oct 30, 2009 at 6:21 AM, Cole Tuininga co...@code-energy.com wrote: Greg Rundlett (freephile) wrote: I wanted to do some modelling of my home landscaping. Anyone know of an application that does this (Linux-compatible of course)? There are many software packages available for Windows, but I can't seem to find any that are linux compatible. I thought to try my hand at using Blender, but I'd really like to use something that is specifically pre-tooled to deal with landscaping. For example the commercial Windows packages have thousands of photorealistic plants and things that you can add to your models. Not sure if this will do everything you want or not, but the SourceForge project of the month is called Sweet Home 3D. http://www.sweethome3d.eu/ Thanks, That's impressive. It doesn't do landscape just yet... or it seems to do exterior just enough to render the view from the house. But, knowing that there is an opensource interior design package means that it's more likely that we will see an opensource landscape design package. ~ Greg ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/