euglug.org

[작성자:] admin

  • [Eug-lug] SQL/postgres help on a “cross join” ?



    Matthew JarvisFri Apr 28 13:21:46 PDT 2006

    My lack of SQL theory is showing....  <g>
    
    This SQL statement:
    
    select timeentry.emp_id, employee.last_name, employee.first_name, 
    timeentry.dept_id, department.name, sum( timeentry.hours) as tot_hrs 
    from timeentry, employee,department  where date( apply_date) > 
    '2006-04-01' and timeentry.emp_id = employee.emp_id and 
    timeentry.dept_id = department.dept_id group by timeentry.emp_id, 
    timeentry.dept_id, department.name, employee.last_name, 
    employee.first_name order by employee.last_name, department.name;
    
    Gives me:
    
      emp_id |  last_name  | first_name | dept_id |      name       | tot_hrs
    --------+-------------+------------+---------+-----------------+---------
          74 | Casler      | Chris      |       1 | Production Line |     154
          74 | Casler      | Chris      |       5 | Tooling         |    0.75
          99 | Cheek       | Mike       |      28 | 5S              |     0.5
          99 | Cheek       | Mike       |      21 | 75%Mfg/25%CSvc  |    7.75
          99 | Cheek       | Mike       |       3 | Customer Servic |    0.75
          99 | Cheek       | Mike       |      27 | Improvements    |    0.75
          99 | Cheek       | Mike       |       1 | Production Line |  134.75
          99 | Cheek       | Mike       |      26 | X-Training      |    18.5
          88 | Coon        | Monty      |       3 | Customer Servic |       2
          88 | Coon        | Monty      |      27 | Improvements    |     0.5
          88 | Coon        | Monty      |       1 | Production Line |  156.75
    
    
    Where I want to end up is more or less like:
    
    last_name | Production Line | Tooling | (all the other depts)| Total  |
    ----------+-----------------+---------+----------------------+--------+
    Casler    |     154         |  0.75   |                      | 154.75 |
    Cheek     |   etc.
    
    
    
    In other words, make each Dept name a column in the result, with the 
    hours as the column data....
    
    I've seen this done before but can't remember how it works...
    
    Oh, and I'd prefer to do it all in postgres w/o having to resort to 
    programming it....
    
    Oh, and I'm in a hurry....  <g>
    
    Any thoughts?
    
    
    -- 
    Matthew S. Jarvis
    IT Manager
    Bike Friday - "Performance that Packs."
    www.bikefriday.com
    541/687-0487 x140
    mattj at bikefriday.com
    
    
    
  • [Eug-lug] LVM in RAID 1



    Brian GallagherFri Apr 28 13:07:29 PDT 2006

    I skipped the Ubuntu how-to and went back to FC4: still loading 
    packages, but better to solve a NIC problem then a RAID problem!  
    Swapped NICs too.  I'll let you know.
    
    Thanks a billion + a beer.
    
    Brian
    
    Ralph Zeller wrote:
    > I think it's an Intel e100?  Whatever Dell put in it originally.
    > Running `dmesg` reports:
    > e100: Intel(R) PRO/100 Network Driver, 3.4.14-k2-NAPI
    > e100: Copyright(c) 1999-2005 Intel Corporation
    >
    > I've had mixed results with Netgear 310TX's: I've had problems using
    > more than one nic in a box, and conflicts with other devices.  Most of
    > the time they work fine, but I've never had any problems with Intel nics.
    >
    > On 04/28/06 10am, Brian Gallagher wrote:
    >   
    >> You would have to say that!  What NIC are you using?
    >>
    >> Don't get me wrong.  FC4 gets the windows file share, but sometimes it 
    >> takes for ever, if at all.
    >>
    >> I think I\ll swap out a Netgear FA310TX for a 3COM 3C905C-TX and 
    >> reconsider FC4, if this 
    >> http://howtoforge.com/perfect_setup_ubuntu_5.10_p2 fails to help.
    >>
    >> Brian
    >>
    >> Ralph Zeller wrote:
    >>     
    >>> On 04/27/06 11am, Brian Gallagher wrote:
    >>>  
    >>>       
    >>>> If there is any reason why these two HDD schemes should not wed under 
    >>>> Ubuntu...would someone let me know.
    >>>>
    >>>> I gave up on FC4 or FC5, for the time being, due to Samba issues.  I am 
    >>>> rebuilding the array now.
    >>>>
    >>>> Brian
    >>>>    
    >>>>         
    >>> It worked fine with me using FC4, everything loaded perfectly without a
    >>> fuss.  Samba worked perfectly too.
    >>>       
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    >
    >   
    
    
  • [Eug-lug] OT: perf board



    Bob MillerFri Apr 28 13:01:57 PDT 2006

    Mike Cherba wrote:
    
    > If I recall correctly, even the radioshack by my house carries this.
    
    Oooh, you have a Radio Shack by your house!  That's geeky!
    
    -- 
    Bob Miller                              K<bob>
                                            kbob at jogger-egg.com
    
  • [Eug-lug] LVM in RAID 1



    Ralph ZellerFri Apr 28 12:26:11 PDT 2006

    I think it's an Intel e100?  Whatever Dell put in it originally.
    Running `dmesg` reports:
    e100: Intel(R) PRO/100 Network Driver, 3.4.14-k2-NAPI
    e100: Copyright(c) 1999-2005 Intel Corporation
    
    I've had mixed results with Netgear 310TX's: I've had problems using
    more than one nic in a box, and conflicts with other devices.  Most of
    the time they work fine, but I've never had any problems with Intel nics.
    
    On 04/28/06 10am, Brian Gallagher wrote:
    > You would have to say that!  What NIC are you using?
    > 
    > Don't get me wrong.  FC4 gets the windows file share, but sometimes it 
    > takes for ever, if at all.
    > 
    > I think I\ll swap out a Netgear FA310TX for a 3COM 3C905C-TX and 
    > reconsider FC4, if this 
    > http://howtoforge.com/perfect_setup_ubuntu_5.10_p2 fails to help.
    > 
    > Brian
    > 
    > Ralph Zeller wrote:
    > >On 04/27/06 11am, Brian Gallagher wrote:
    > >  
    > >>If there is any reason why these two HDD schemes should not wed under 
    > >>Ubuntu...would someone let me know.
    > >>
    > >>I gave up on FC4 or FC5, for the time being, due to Samba issues.  I am 
    > >>rebuilding the array now.
    > >>
    > >>Brian
    > >>    
    > >
    > >It worked fine with me using FC4, everything loaded perfectly without a
    > >fuss.  Samba worked perfectly too.
    
  • [Eug-lug] OT: perf board



    Allen BrownFri Apr 28 11:42:14 PDT 2006

    As big as possible.  I can always cut it.  Say, something
    at least 8 inch by 10 inch, minimum.
    -- 
    Allen Brown  abrown at peak.org  http://www.peak.org/~abrown/
       If you believe everything you read, don't read. --- Chinese proverb
    
    Ben Barrett wrote:
    > Yes Norvac has some, last I checked, depending on the size you need.
    > 
    >   Ben
    > 
    > 
    > On 4/28/06, Allen Brown <abrown at peak.org> wrote:
    > 
    >>
    >> Anybody know where I can get blank perf board for electronic
    >> prototyping?  A mouser search only showed boards for PCs or
    >> boards with weird patterns.
    >>
    >> Does Norvac have this?  Does Frys?
    
  • [Eug-lug] OT: perf board



    Mike CherbaFri Apr 28 11:40:56 PDT 2006

    Allen,
    	If I recall correctly, even the radioshack by my house carries this.
    I'm not sure how big, but I recall seeing at least a 4x6" board there
    last time I was in.
    		-Mike
    
    On Fri, 2006-04-28 at 11:42 -0700, Allen Brown wrote:
    > As big as possible.  I can always cut it.  Say, something
    > at least 8 inch by 10 inch, minimum.
    -- 
    Mike Cherba
    Cavium Networks
    883 Brookside Dr
    Eugene, OR 97405
    phone: (541) 684-3820
    Cell:  (541) 914-2188
    mike.cherba at caviumnetworks.com
    www.caviumnetworks.com
    
  • [Eug-lug] Morning Troll



    Michael MillerFri Apr 28 11:35:04 PDT 2006

    That really just goes to show why Europeans hate Americans.
    
    Mike Miller
    
    On 4/27/06, Martin Kelly <aomighty at gmail.com> wrote:
    > omg... the rest of the site is completely insane too. Another quote,
    > this time from the comments:
    > "I agree with you.
    > America was, is and always will be the Number 1 on this planet.
    > No other nation can even compare to us without being completely ashamed.
    > Only Americans can reach the highest goal of complete morality and
    > decency before God."
    >
    > ...
    >
    > Martin
    >
    > Ben Barrett wrote:
    > > How did tux get ahold of your beret, Larry?!  ;)
    > > Beret-wearing terrorists.... meh.
    > > A very interesting expression of "divide and conquer"?  LMAO.
    > >
    > > ...from TFA:
    > > "And guess what software Osama Bin Laden uses on his laptop?
    > > If you guessed it was Linux you would be 100% right. Osama uses Linux
    > > because he knows designed to counterfit DVDs, curcumventing the Digital
    > > Millenium Copyright Act, and defraud companies like Disney.
    > > Next time somebody asks you how Al Queda agents pay for their rifles and
    > > rocket launchers, you can tell them that foreign hackers make software
    > > called Linux which helps them steal from Americans."
    > >
    > > Wow, what a clever bastard.  Too bad he's not clever enough to
    > > circumvent the DMCA on American operating systems or computers.  What a
    > > dimwitted author.  I can only hope that someone got paid a LOT of money
    > > to publish this crap.  Heh, I'm still reading through the comments
    > > (great stuff!), I guess I'll leave the rest to them.  I didn't realize
    > > people hiding under rocks still used the internet...
    > >
    > >     Ben
    > >
    > >
    > > On 4/27/06, *larry price* <laprice at gmail.com <mailto:laprice at gmail.com>>
    > > wrote:
    > >
    > >     http://shelleytherepublican.com/2006/04/linux-european-threat-to-our-computers.html
    > >
    > >     nice little linux related belly laugh
    > >
    > >
    > > ------------------------------------------------------------------------
    > >
    > > _______________________________________________
    > > EUGLUG mailing list
    > > euglug at euglug.org
    > > http://www.euglug.org/mailman/listinfo/euglug
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    >
    
  • [Eug-lug] OT: perf board



    Ben BarrettFri Apr 28 11:25:27 PDT 2006

    Yes Norvac has some, last I checked, depending on the size you need.
    
       Ben
    
    
    On 4/28/06, Allen Brown <abrown at peak.org> wrote:
    >
    > Anybody know where I can get blank perf board for electronic
    > prototyping?  A mouser search only showed boards for PCs or
    > boards with weird patterns.
    >
    > Does Norvac have this?  Does Frys?
    >
    >
    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL: http://www.euglug.org/pipermail/euglug/attachments/20060428/6e5747cb/attachment.htm
    
  • [Eug-lug] OT: perf board



    Allen BrownFri Apr 28 11:18:53 PDT 2006

    Anybody know where I can get blank perf board for electronic
    prototyping?  A mouser search only showed boards for PCs or
    boards with weird patterns.
    
    Does Norvac have this?  Does Frys?
    -- 
    Allen Brown  abrown at peak.org  http://www.peak.org/~abrown/
       The problem with troubleshooting is that trouble shoots back. --- Unknown
    
  • [Eug-lug] LVM in RAID 1



    Brian GallagherFri Apr 28 10:44:28 PDT 2006

    You would have to say that!  What NIC are you using?
    
    Don't get me wrong.  FC4 gets the windows file share, but sometimes it 
    takes for ever, if at all.
    
    I think I\ll swap out a Netgear FA310TX for a 3COM 3C905C-TX and 
    reconsider FC4, if this 
    http://howtoforge.com/perfect_setup_ubuntu_5.10_p2 fails to help.
    
    Brian
    
    Ralph Zeller wrote:
    > On 04/27/06 11am, Brian Gallagher wrote:
    >   
    >> If there is any reason why these two HDD schemes should not wed under 
    >> Ubuntu...would someone let me know.
    >>
    >> I gave up on FC4 or FC5, for the time being, due to Samba issues.  I am 
    >> rebuilding the array now.
    >>
    >> Brian
    >>     
    >
    > It worked fine with me using FC4, everything loaded perfectly without a
    > fuss.  Samba worked perfectly too.
    >
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    >
    >