euglug.org

[작성자:] admin

  • [Eug-lug] newbie problem



    Bob MillerTue Dec 20 18:19:59 PST 2005

    Alan Crandall wrote:
    
    > On Saturday 17 December 2005 11:17 am, Mike Cherba wrote:
    > > Alan,
    > > 	Run "dmesg" after you plug it in and see what the system reports when
    > > the drive is inserted.  You might post the last ~10-20 lines of the
    > > output here and we'll be able to help a bit better.  This will tell you
    > > a lot about what it sees.  "lsusb" run as root will also tell you a fair
    > > amount about how functional the setup is.
    > > 			-Mike
    > >
    > saved all the output from both:
    > dmesg     output
    > 
    > [...]
    > 
    > lsusb     output
    > 
    > [...]
    
    That pretty much confirms what we knew.  The disk is /dev/sda.  To
    mount it, do this (from a shell, as the superuser).
    
    	# mkdir -p /media/usbdisk
    	# mount -t msdos /dev/sda /media/usbdisk
    
    (You only need the first command once.)
    
    I do not know how to get it to automatically open a browser window
    under Mandriva.  I haven't used Mandr* for many years.
    
    -- 
    Bob Miller                              K<bob>
                                            kbob at jogger-egg.com
    
  • [Eug-lug] HD info missing/wrong



    Allen BrownTue Dec 20 17:22:35 PST 2005

    Matthew Jarvis wrote:
    > Darren Hayes wrote:
    > 
    >> Matt,
    >>
    >> If checking hardware cable connections and jumper settings does not
    >> resolve...
    >>
    >> 1. Are you stating that the BIOS POST report on screen during boot up 
    >> does
    >> not list the drive.
    >>
    > 
    > Does not show drive. First thing I see boot related is "No disk in Drive 
    > A"...
    
    Check the drive has a power cable attached.  Obvious, I know, but...
    Verify the ribbon cable is not backwards.
    -- 
    Allen Brown  abrown at peak.org  http://www.peak.org/~abrown/
       I couldn't repair your brakes, so I made your horn louder.
    
  • [Eug-lug] GAIM Beta 2.0



    Jeff NewtonTue Dec 20 12:32:26 PST 2005

    Bill what have they added to this beta version?
    
    Jeff
    
    Bill Essig wrote:
    > Yes. It is nice.
    > 
    > On 12/19/05, *Jeff Newton* <newton at efn.org <mailto:newton at efn.org>> wrote:
    > 
    >     Hey Guys, has anyone tried out the new beta verion of GAIM 2.0??
    >     Supposedly its
    >     the beta 2.0 version, a friend of mine mentioned it to me via IM
    >     tonight on my
    >     current version of gaim.
    > 
    >     Thanks -
    > 
    >     Jeff
    
  • [Eug-lug] Postgres/SH script question



    Matthew JarvisTue Dec 20 08:23:47 PST 2005

    larry price wrote:
    > On 12/19/05, Matthew Jarvis <mattj at bikefriday.com> wrote:
    > 
    >>Anyhoo, last Thurs for the first time since I've been here (about 5 mo)
    >>that data transfer didn't complete.
    > 
    > 
    > Have you figured out why it didn't complete?
    > 
    
    No idea... I did notice that when I tried to manually ftp upload the 
    dump file to park it on that server (9.2mb) that ftp timed out... don't 
    know if I ever saw that before and it was only something like 30 
    minutes, maybe 45....
    
    > 
    >>For better or worse the update process uses a DELETE then COPY sequence
    >>to update the tables on the site. The DELETE takes place, table is
    >>updated, next DELETE, next table etc.... sometimes the process isn't
    >>being completed as though something is timing out, so I was looking to
    >>a) speed up the whole process and b) park at least a snapshot of the
    >>data up on the server so I can just import it in and get the site back
    >>to functionality
    > 
    > 
    > If the data is relatively similar from night to night you can speed up
    > the transfer quite a lot by using rsync which works very well on line
    > oriented data formats like sql text dumps.
    > 
    > If you want to make sure that the tables never go away, even if the
    > process is interrupted partway through, make sure that each
    > delete/copy operation is wrapped in a transaction, something like.
    > 
    > BEGIN WORK;
    > DELETE FROM bar;
    > COPY bar FROM '/home/foo/bar.dump' WITH DELIMITER AS "|" NULL AS "";
    > COMMIT WORK;
    > 
    > that way if it blows up on you during the COPY operation, it's as if
    > the DELETE never happened.
    > 
    
    Thanks for the idea Larry - that's a good one... I'm hampered by a) 
    ignorance and b) assumptions that my predescessor that set all this up 
    did things in the 'best' way possible... clearly by your suggestion (and 
    other things I've seen) that isn't the case....
    
    Here is a chunk of the script which is repeated over and over for about 
    15 tables:
    
    
    DELETE FROM bikes_componentgrp_bars;
    
    --
    -- PostgreSQL database dump
    --
    
    SET search_path = public, pg_catalog;
    
    --
    -- Data for TOC entry 1 (OID 5610955)
    -- Name: bikes_componentgrp_bars; Type: TABLE DATA; Schema: public; 
    Owner: postgr
    es
    --
    
    COPY bikes_componentgrp_bars (barstypeid, name, sort, descr) FROM stdin;
    1       drop bars       1       \N
    2       flat bars       5       \N
    3       STI touring bars        3       \N
    4       "H"-style bars  4       \N
    5       above-seat bars 6       \N
    6       under-seat bars 7       \N
    7       bullhorn bars   8       \N
    8       triathlon bars  2       \N
    9       choice  1000    \N
    10      \N      0       \N
    \.
    
    
    I can get away with wrapping before the DELETE to after the COPY text 
    with BEGIN WORK, COMMIT WORK - yes?
    
    I'd rather that *nothing* get updated than just some of it, otherwise I 
    risk getting parent/child records out of whack... if it fails, that at 
    least buys me time to deal with it at my leisure, like 3am...  <g>
    
    Does BEGIN/COMMIT return an error code so I can determine success of the 
    whole process? Might be nice to get an email upon failure....
    
    I like this plan....  <g>
    
    Matthew S. Jarvis
    IT Manager
    Bike Friday - "Performance that Packs."
    www.bikefriday.com
    541/687-0487 x140
    mattj at bikefriday.com
    
  • [Eug-lug] GAIM Beta 2.0



    Bill EssigMon Dec 19 23:33:11 PST 2005

    Yes. It is nice.
    
    On 12/19/05, Jeff Newton <newton at efn.org> wrote:
    >
    > Hey Guys, has anyone tried out the new beta verion of GAIM 2.0??
    > Supposedly its
    > the beta 2.0 version, a friend of mine mentioned it to me via IM tonight
    > on my
    > current version of gaim.
    >
    > Thanks -
    >
    > Jeff
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    >
    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL: http://www.euglug.org/pipermail/euglug/attachments/20051219/67f44864/attachment.htm
    
  • [Eug-lug] GAIM Beta 2.0



    Jeff NewtonMon Dec 19 21:03:26 PST 2005

    Hey Guys, has anyone tried out the new beta verion of GAIM 2.0?? Supposedly its 
    the beta 2.0 version, a friend of mine mentioned it to me via IM tonight on my 
    current version of gaim.
    
    Thanks -
    
    Jeff
    
  • [Eug-lug] Postgres/SH script question



    spugee at nortopia.netMon Dec 19 20:45:54 PST 2005

    > For better or worse the update process uses a DELETE then COPY 
    > sequence to update the tables on the site. The DELETE takes place, 
    > table is updated, next DELETE, next table etc.... sometimes the 
    > process isn't being completed as though something is timing out, so I 
    > was looking to a) speed up the whole process and b) park at least a 
    > snapshot of the data up on the server so I can just import it in and 
    > get the site back to functionality.
    >
    >
    Its also usually more prudent to do a RENAME then COPY then DELETE ( the 
    renamed files ) and RENAME back if the transfer failed. That way you 
    always have a set of data there.. even if its a bit outdated.. its 
    usually better than no data.
    
    > Matthew S. Jarvis
    > IT Manager
    > Bike Friday - "Performance that Packs."
    > www.bikefriday.com
    > 541/687-0487 x140
    > mattj at bikefriday.com
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    >
    >
    >
    >
    
    
  • [Eug-lug] Postgres/SH script question



    larry priceMon Dec 19 19:09:40 PST 2005

    On 12/19/05, Matthew Jarvis <mattj at bikefriday.com> wrote:
    > Anyhoo, last Thurs for the first time since I've been here (about 5 mo)
    > that data transfer didn't complete.
    
    Have you figured out why it didn't complete?
    
    > For better or worse the update process uses a DELETE then COPY sequence
    > to update the tables on the site. The DELETE takes place, table is
    > updated, next DELETE, next table etc.... sometimes the process isn't
    > being completed as though something is timing out, so I was looking to
    > a) speed up the whole process and b) park at least a snapshot of the
    > data up on the server so I can just import it in and get the site back
    > to functionality
    
    If the data is relatively similar from night to night you can speed up
    the transfer quite a lot by using rsync which works very well on line
    oriented data formats like sql text dumps.
    
    If you want to make sure that the tables never go away, even if the
    process is interrupted partway through, make sure that each
    delete/copy operation is wrapped in a transaction, something like.
    
    BEGIN WORK;
    DELETE FROM bar;
    COPY bar FROM '/home/foo/bar.dump' WITH DELIMITER AS "|" NULL AS "";
    COMMIT WORK;
    
    that way if it blows up on you during the COPY operation, it's as if
    the DELETE never happened.
    
    
    --
    http://Zoneverte.org -- information explained
    Do you know what your IT infrastructure does?
    
  • [Eug-lug] Postgres/SH script question



    Matthew JarvisMon Dec 19 16:45:13 PST 2005

    larry price wrote:
    > 
    > 
    > You're running the postgres client (psql) locally
    > using the database webbikedata as user bikefriday on host bikefriday.com
    > and you are feeding the file webtrans.sql to the client.
    > 
    > speed probably isn't an issue in most cases, copying the file in bulk
    > and then executing it's contents on the remote server is not faster
    > than copying it line by line and executing it as it arrives.
    > 
    > what you do need to be concerned about is security, by default
    > connections to the database are NOT ENCRYPTED.
    > 
    > take a look at pg_hba.conf and make sure that the connection type is
    > set to ssl, and that you are requiring authentication before access.
    
    
    thanks Larry.... so it looks like I had it right....
    
    the reason I'm even bothering with this is that something is breaking - 
    once last Thurs and again Sat morning or so....
    
    We have a cron job that dumps portions of our postgres stuff to a system 
    file then that file gets sent up to the website. It controls some of the 
    menus and the details of bike designs.
    
    Anyhoo, last Thurs for the first time since I've been here (about 5 mo) 
    that data transfer didn't complete.
    
    For better or worse the update process uses a DELETE then COPY sequence 
    to update the tables on the site. The DELETE takes place, table is 
    updated, next DELETE, next table etc.... sometimes the process isn't 
    being completed as though something is timing out, so I was looking to 
    a) speed up the whole process and b) park at least a snapshot of the 
    data up on the server so I can just import it in and get the site back 
    to functionality.
    
    
    Matthew S. Jarvis
    IT Manager
    Bike Friday - "Performance that Packs."
    www.bikefriday.com
    541/687-0487 x140
    mattj at bikefriday.com
    
  • [Eug-lug] HD info missing/wrong



    Matthew JarvisMon Dec 19 15:34:37 PST 2005

    Darren Hayes wrote:
    > Matt,
    > 
    > If checking hardware cable connections and jumper settings does not
    > resolve...
    > 
    > 1. Are you stating that the BIOS POST report on screen during boot up does
    > not list the drive.
    > 
    
    Does not show drive. First thing I see boot related is "No disk in Drive 
    A"...
    
    > or if it does, the you are observing an error during boot up? If so what is
    > the error?
    > 
    > 2. Not sure if this was implied already but did you try setting the hard
    > drive geometry to "Auto" in BIOS?
    
    "Auto" attempt gives blanks for sectors, cyl etc.
    
    > 
    > 3. Is this drive connected directly to system board or to a controller card?
    
    to the system as primary controller 1
    
    > 
    > 4. Does this drive contain BOTH a system AND boot partition?
    
    Honestly, I'm not sure. I've never known the drive to be partitioned in 
    any way.
    
    
    > 
    > 5. Did you install OS on this drive while another drive was also connected
    > (and which already contained both a system AND boot partition)?
    > 
    
    Nope, not to my knowledge
    
    > 6. Was this drive ever used in a multi-boot setup. If so which OS's were
    > involved?
    > 
    
    Nope, not to my knowledge
    
    > Regarding your other drive you might try Acronis True Image v.8 and build a
    > Media Rescue boot disk within TI. I've solve a lot of drive issues with that
    > utility.
    
    it was just a freebie 3 gig drive I was going to plug in for some more 
    hamster porn space, but I'll keep Acronis in mind if Toby can't 
    resurrect it... thanks...
    
    
    
    Matt