euglug.org

[작성자:] admin

  • [Eug-lug] stupid bash question



    Bob MillerTue Mar 15 08:39:57 PST 2005

    Hal Pomeranz wrote:
    
    > Does anybody have a solution for creating an alias or function that
    > does the equivalent of "cd !$:h"?  I feel like I must be missing
    > something obvious...
    
    function cdlast { cd `dirname $_`; }
    
    -- 
    Bob Miller                              K<bob>
    kbobsoft software consulting
    http://kbobsoft.com                     kbob at jogger-egg.com
    
  • [Eug-lug] retinal projection glasses – mmmm



    Allen BrownMon Mar 14 16:04:48 PST 2005

    Won't work at all on contacts.  Too close to the eye.
    
    In fact, it won't work nearly as well as the images show
    even on glasses.  Try sticking a sticker to your glasses
    and see what gets blocked.  You will notice that it is a
    big fuzzy spot.  Not very useful for blocking signs from
    your vision.
    
    And can you imagine the lawsuit the first time something
    dangerous is blocked (uh, I mean fuzzed) from view?
    -- 
    Allen Brown
       work: Agilent Technologies      non-work: http://www.peak.org/~abrown/
             allen_brown at agilent.com	            abrown at peak.org
       Live for something rather than die for nothing.
        --- General George Patton
    
    
    Ben Barrett wrote:
    > Wow, Larry, this is fabulous -- thanks for the link!  The ULTIMATE 
    > modern tool for decided denial  ;)   I'd like the next model to have 
    > 1920x1200 resolution on contact lenses.  The wireless data and power 
    > links could come right through the body... just hope we don't all 
    > snow-crash.
    > 
    > cheerio,
    > 
    >    Ben
    > 
    > 
    > larry price wrote the following on 3/11/2005 11:31 PM:
    > 
    >> http://www.see-free.com/index.html
    >>
    >> These + bluetooth + pocket server + $keyboardequivalent = ultimate 
    >> wearable
    >>
    >> the visual spam blocker app is a Steve Mann idea from a few years back.
    >>
    >>  
    >>
    > 
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    > 
    
  • [Eug-lug] KVMs and DVI



    Allen BrownMon Mar 14 15:50:49 PST 2005

    Bob Miller wrote:
    > Bob Miller wrote:
    > 
    > 
    >>[various large, high resolution, expensive LCD monitors]
    > 
    > 
    > This just in.  Dell is introducing a 24", 1920x1200, 12ms widescreen
    > display on March 1st at $1200.
    > 
    > http://arstechnica.com/news.ars/post/20050215-4615.html
    
    Mine should arrive any day now.
    
    I gave my Dad my 19" CRT and took his 17".  Ever try to run
    1600x1200 on a 17" CRT?  It's *painful*.
    -- 
    Allen Brown
       work: Agilent Technologies      non-work: http://www.peak.org/~abrown/
             allen_brown at agilent.com	            abrown at peak.org
       Lead me, follow me, or get out of my way. --- General George Patton
    
  • [Eug-lug] stupid bash question



    Allen BrownMon Mar 14 15:43:42 PST 2005

    Or if you prefer, you can create a function.
    
    function cpcd
    {
       cp $1 $2
       cd ${2%/*}
    }
    
    And now just type
       cpcd foo /var/tmp/newfoo
    -- 
    Allen Brown
       work: Agilent Technologies      non-work: http://www.peak.org/~abrown/
             allen_brown at agilent.com	            abrown at peak.org
       If everybody is thinking alike, then somebody isn't thinking.
        --- General George Patton
    
    
    Allen Brown wrote:
    > If you have EDITOR set to vi or emacs you can simply use the
    > editing commands of that respective editor to back up a line
    > and edit it into what you want.
    > 
    > If you are used to a different editor, bash can be programmed
    > to use those keystrokes.  That is more than I would want to
    > go into.  But it is documented on the man page as I recall.
    > 
    > But unless it is an obscure editor, probably someone has already
    > done it.  Google for "bash", "keybindings", and your editor's name.
    > 
    > 
    > Another approach if you anticipate you will be doing that is
    > something like this:
    >   d=/var/tmp
    >   cp foo $d/newfoo
    >   cd $d
    
  • [Eug-lug] stupid bash question



    Allen BrownMon Mar 14 15:16:00 PST 2005

    If you have EDITOR set to vi or emacs you can simply use the
    editing commands of that respective editor to back up a line
    and edit it into what you want.
    
    If you are used to a different editor, bash can be programmed
    to use those keystrokes.  That is more than I would want to
    go into.  But it is documented on the man page as I recall.
    
    But unless it is an obscure editor, probably someone has already
    done it.  Google for "bash", "keybindings", and your editor's name.
    
    
    Another approach if you anticipate you will be doing that is
    something like this:
       d=/var/tmp
       cp foo $d/newfoo
       cd $d
    -- 
    Allen Brown
       work: Agilent Technologies      non-work: http://www.peak.org/~abrown/
             allen_brown at agilent.com	            abrown at peak.org
       It is only by doing things others have not that one can advance.
        --- General George Patton
    
    
    Hal Pomeranz wrote:
    > So with normal bash history substitution I can copy a file to a new
    > name in a new directory and then cd to the same directory:
    > 
    > 	cp foo /var/tmp/newfoo
    > 	cd !$:h			# cwd is now /var/tmp
    > 
    > However, I find "cd !$:h" relatively cumbersome to type and thought
    > I would try to make this into an alias or a shell function.  But for
    > the life of me I can't seem to figure out the syntax to resolve
    > "!$:h" in this context.  I've tried various quoting, backticks, 
    > backwhacks, and evals with no success.  Does anybody have a solution
    > for creating an alias or function that does the equivalent of "cd !$:h"?
    > I feel like I must be missing something obvious...
    > 	
    
  • [Eug-lug] stupid bash question



    Hal PomeranzMon Mar 14 14:49:50 PST 2005

    So with normal bash history substitution I can copy a file to a new
    name in a new directory and then cd to the same directory:
    
    	cp foo /var/tmp/newfoo
    	cd !$:h			# cwd is now /var/tmp
    
    However, I find "cd !$:h" relatively cumbersome to type and thought
    I would try to make this into an alias or a shell function.  But for
    the life of me I can't seem to figure out the syntax to resolve
    "!$:h" in this context.  I've tried various quoting, backticks, 
    backwhacks, and evals with no success.  Does anybody have a solution
    for creating an alias or function that does the equivalent of "cd !$:h"?
    I feel like I must be missing something obvious...
    	
    -- 
    Hal Pomeranz, Founder/CEO      Deer Run Associates      hal at deer-run.com
        Network Connectivity and Security, Systems Management, Training
    
  • [Eug-lug] Re: [linux] PC Garage Sale



    Ron JandrasiMon Mar 14 08:48:39 PST 2005

    I'm interested. I have a couple of machines that need new homes... I'm 
    willing to volunteer a location at my place at 7th and Van Buren in 
    downtown Corvallis. Lots of drive by visibility and I have a pretty big 
    porch etc.
    
    Ron
    On Friday, March 11, 2005, at 03:21  PM, D. Cooper Stevenson wrote:
    
    > All,
    >
    > I was just handed a 400 MHz. Machine for free. Now, the truth is that 
    > I have more machines than I know what to do with. I said that I would 
    > probably give the machine away to FreeGeek or other such charity.
    >
    > Then the thought occured to me that there are likely others in the 
    > same boat: one too many boxes but no real avenue to get rid of it and 
    > at the same time make a little change.
    >
    > So I just thought of the idea of having a kind of PC garage sale. I 
    > recall an article on the net that talks about doing this. An example 
    > of organization is using different colors of stickers to identify each 
    > sale.
    >
    > The house could take, say, 10 per cent of the cut for a working 
    > computer. For that the house can clean the computer and even perhaps 
    > install Linux on it. This helps create value for the computer.
    >
    > Let's do this!
    >
    >
    > -Coop
    >
    <image.tiff>
    >
    > <signature.asc>_______________________________________________
    > linux mailing list
    > http://lug.oregonstate.edu/
    > http://lists.oregonstate.edu/mailman/listinfo/linux
    
    
    
    Ron Jandrasi
    
    please support open source software!
    
    
  • [Eug-lug] wp expert?



    walter frySun Mar 13 17:16:46 PST 2005

    Is there a Wordperfect doctor in the house?  Now that I can print my    
    files.wpd   without problems I would like to sort a mailing list ...But the 
    man pages are not explicit enough to tell me how to assign a key so I can 
    sort the second column alphabetically.  How 2 assign the key is the 
    problem/Question...
    
    _________________________________________________________________
    Don’t just search. Find. Check out the new MSN Search! 
    http://search.msn.click-url.com/go/onm00200636ave/direct/01/
    
    
  • [Eug-lug] coWiki is up!



    Jeff_WSun Mar 13 14:46:41 PST 2005

    Tim Howe <thowe at my180.net> wrote:
    
    > I seem to recall that the old EugLug wiki was useful at one time.
    > I think we did some of the country fair planning on it.  Having
    > dealt with a LOT of colaborative applications lately, I like the
    > Wiki idea even more.  It just has a feel that others don't...
    
    The Cascade Canoe Club made use of the old wiki for several of
    their multi-day trips and events. It was fair easy to use but could
    have been more so; the simplier the better IMNSHO. Since EFN/OPN
    is no more it might be a nice gesture to open up the new wiki to
    the various non-profits, clubs, etc. as a free colaborative web
    thingie.  I think requiring a login is a good idea too; helps people
    to trust that what they create will remain unaltered by those that
    have no business messing with it.
    
    Jeff
    
  • [Eug-lug] PC Garage Sale



    Ben BarrettSun Mar 13 13:59:11 PST 2005

    For those of us in Eugene, there is the local chapter of GWoB, Geek 
    Without Borders, which donates PC's (and takes donations of almost any 
    useful hardware).  I work with one of the top dawgs, and found that they 
    fix up and ship out any useful/ready systems, and try to sell the other 
    stuff on ebay to cover their shipping costs.  They might even be 
    interested in joining in on a "swap", since they have some cool stuff 
    that is not directly useful but would be fun for LUG-types to dink 
    around with. 
    
    ciao!
    
        Ben
    
    
    Jason Van Cleve wrote the following on 3/11/2005 4:00 PM:
    
    >I don't know, personally, if a garage sale is a good way to sell
    >computer equipment, given the uncertainty of old hardware and of buying
    >from strangers.
    >
    >Another idea is to set up a EUGLUG hardware exchange, and instead of
    >selling complete boxen, we could just trade components around amongst
    >ourselves.  Freegeek seems like a better way to offload a whole PC,
    >since a working box from Freegeek is less of an unknown than one found
    >in a garage.
    >
    >I have a bunch of miscellaneous hardware I would throw in, and I've also
    >an old (133MHz?) PC that I'd like to make into a file/print server for
    >my home.  It needs a new hard drive, a NIC and probably a PCI video
    >card.  I'll buy the drive new, but I think it would be nice to get the
    >other stuff through a local exchange.
    >
    >Me wee 2 bits.
    >
    >--Jason
    >  
    >