[GNHLUG] [DLSLUG-Announce] PyCUDA and GPU Programming - DLSLUG Monthly Meeting - 2008-12-04

2008-11-20 Thread Bill McGonigle
***
   Dartmouth-Lake Sunapee Linux User Group
http://dlslug.org/
   a chapter of GNHLUG - http://gnhlug.org
***

The next regular monthly meeting of the DLSLUG will be held:

  Thursday, December 4th, 7-9PM
at:  Dartmouth College, Carson L02

  All are welcome, free of charge.

Agenda

7:00  Sign-in, networking

7:15  Introductory remarks

7:20  PyCUDA and GPU Programming
 presented by Nicholas Sinnott-Armstrong

   Nick will give a talk about an exciting emerging technology that
   deals with the use of GPUs. PyCUDA (and CUDA in general) is an
   easy to use framework to take advantage of the massive
   processing power and memory bandwidth available on the GPUs of
   most enthusiast machines writing simple templated C code. A
   short introduction to Python will be followed by an in-depth
   look at how easy it is to write really fast code for scientific
   and HPC applications at a very low system cost. Everyone who
   attends is invited and encouraged (though not required) to bring
   a machine with SSH support -- GNU screen-cast will be set up to
   give everyone a hands-on view of the presentation.

   Nicholas Sinnott-Armstrong is a devout follower of the Open
   Source methodology. He has worked on numerous Open Source
   projects, including the Open Graphics Project, Lumiera, and
   Python, and spends his free time browsing the universe Ubuntu
   and Debian repos. His favorite language to program in is Scheme,
   but when that doesn't work out, he settles for a mix of Haskell,
   Python, Verilog, and C. He has a special interest in hardware
   solutions to software problems, including but not limited to
   FPGAs and GPUs.

8:50  Roundtable Exchange - where the attendees can make
 announcements or ask a linux/floss question of the group.

-

   Driving Directions

   Please see the website for links to driving directions.


  Refreshments

   We currently lack a refreshment sponsor.  If you or your
   company would like to provide or sponsor refreshments,
   please get in touch.

 RSVP

   RSVP by replying to this e-mail so we can give any
   refreshment sponsor a count.

  Mailing Lists

   There are two primary mailman lists set up for DLSLUG, an
   Announce list and a Discuss list. Please sign up for the
   Announce list (moderated, low-volume) to stay apprised of
   the group's activities and the Discuss list (unmoderated)
   for group discussion. Links to the mailing lists are on the
   webpage.

Tell Your Friends

   Please pass this announcement along to anyone else who may
   be interested.

-- 
Bill McGonigle, Owner   Work: 603.448.4440
BFC Computing, LLC  Home: 603.448.1668
[EMAIL PROTECTED]   Cell: 603.252.2606
http://www.bfccomputing.com/Page: 603.442.1833
Blog: http://blog.bfccomputing.com/
VCard: http://bfccomputing.com/vcard/bill.vcf
___
DLSLUG-Announce mailing list
[EMAIL PROTECTED]
http://dlslug.org/mailman/listinfo/dlslug-announce
___
gnhlug-announce mailing list
[EMAIL PROTECTED]
http://mail.gnhlug.org/mailman/listinfo/gnhlug-announce/
___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/


Re: (OT) Flaky USB Bus

2008-11-20 Thread Bill McGonigle
On 2008-11-20 8:15 AM, [EMAIL PROTECTED] wrote:
>
> May we assume that if a typical USB device plugged in to
> a Win XP (SP 2) machine and seems to work, would that "probably"
> indicate that the USB interface (cable/controller) is "squeekie clean"?

Nope.  I've had USB controllers fail under load and work fine under 
'normal' use.  Big RAID rebuilds would throw them into a fit, e.g. That 
was a Compaq/Emachines motherboard (same difference).

I suspect very large bitmap transfers to a printer could do something 
similar if the printer's buffer could keep up.

On the replacement mobo in that same machine (which empirically works 
perfectly) the linux logs occasionally complain about the bus resetting. 
  I suspect it's recovering well enough that I never see problems.  Or 
maybe this is just SNAFUSB.  How that releates to Windows I have no idea.

-Bill

___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/


Boston Linux and Unix InstallFest XXX1 Saturday November 22, 2008

2008-11-20 Thread Jerry Feldman

Boston Linux Installfest XXXI
When:  Saturday,  November 22, 2008 from 9:00 am to 5:00 pm
Where: MIT Building E-51, Room 061
2 Amherst St, Cambridge
Plenty of parking in front of the building.


What you need to bring: Your computer, monitor, power strips and your
Linux distributions. We do have copies of some distributions.
In general we have expertise with most distros, but if you need special
expertise, please email the BLU discussion list in advance.

COST: It's free! However, we DO have expenses, and contributions are
welcome. Please consider contributing $25 per machine.

Our volunteers will help you to install Linux on your own system.  While
Linux runs on most systems, some systems do have configurations and
hardware that may not be supported. Please consult the following web
pages for hardware compatibility. While we prefer you to bring your own
distros, our volunteers will normally have

  Linux.ORG: http://www.linux.org/hardware/index.html
  Hardware HOWTO: http://www.linuxdoc.org/HOWTO/Hardware-HOWTO.html
  Linux Frequently Asked Questions: http://www.linuxdoc.org/

Generally our volunteers have sets of the latest Fedora, SuSE and
Ubuntu distributions:
* Fedora - http://fedora.redhat.com (Fedora 9)
* Open SuSE - http://opensuse.org (OpenSuSE 11.0)
* Ubuntu - http://www.ubuntu.com  (Intrepid Ibex 8.10)
* Debian - http://www.debian.org/

In addition, you can run Linux on your Windows PC through a virtual
machine manager, such as Virtualbox. You can install this in your
Windows machine and run Linux as a gues, or install it in your Linux
machine and run Windows as a guest.
http://www.virtualbox.org.


Please refer to the BLU website (http://www.blu.org) for further
information and directions. Parking is available in front of the
building on Amherst St. Enter the building, and take the elevator to
your left down 1 floor. Room 061 is opposite the elevator.

--
Jerry Feldman <[EMAIL PROTECTED]>
Boston Linux and Unix user group
http://www.blu.org
PGP key id: 537C5846
PGP Key fingerprint: 3D1B 8377 A3C0 A5F2 ECBB  CA3B 4607 4319 537C 5846








signature.asc
Description: OpenPGP digital signature
___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/


Re: (OT) Flaky USB Bus

2008-11-20 Thread Thomas Charron
On Thu, Nov 20, 2008 at 9:10 AM, Alex Hewitt <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
>> Good Morning,
>> "My Computer -> Hardware" sees device as "Unknown Device"...
>> What other options do I now have?
>> Is there a way to test generic USB functionality?

  Thars yer problem

  Are you sure you're using the right drivers?  If you have device
manager 'redetect' the drivers for that unknown device, what happens?

-- 
-- Thomas
___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/


Re: Re: (OT) Flaky USB Bus

2008-11-20 Thread paul . cour1





Peter Dobratz said: " run (my XP machine with) Linux without touching the contents of the hard drive."That's a great idea. I never thought of that ...But I know that I learned a lot, some time ago, by poking around on a machineusing a Live Ubuntu CD ...thanks for your Help-pcNov 20, 2008 11:05:11 AM, [EMAIL PROTECTED] wrote:> I have (my wife) a Win XP machine that is driving me beserk.> She decided that a new printer was in order and I would (obviously)> take care of the rest of that idea...>> How would you check the functionality of a USB Bus / Controller?At the risk of bringing this on-topic, you could try booting themachine with a Linux live CD.  I know the Ubuntu installer CD hasthis, and I think a bunch of other distributions do too (Knoppix wasone of the first to make this popular).  You can boot up the live CDand run Linux without touching the contents of the hard drive.Hopefully, you can print too.Peter
___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/


Re: (OT) Flaky USB Bus

2008-11-20 Thread Peter Dobratz
> I have (my wife) a Win XP machine that is driving me beserk.
> She decided that a new printer was in order and I would (obviously)
> take care of the rest of that idea...
>
> How would you check the functionality of a USB Bus / Controller?

At the risk of bringing this on-topic, you could try booting the
machine with a Linux live CD.  I know the Ubuntu installer CD has
this, and I think a bunch of other distributions do too (Knoppix was
one of the first to make this popular).  You can boot up the live CD
and run Linux without touching the contents of the hard drive.
Hopefully, you can print too.

Peter
___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/


Re: (OT) Flaky USB Bus

2008-11-20 Thread Alex Hewitt
[EMAIL PROTECTED] wrote:
> Good Morning,
>
> I have (my wife) a Win XP machine that is driving me beserk.
> She decided that a new printer was in order and I would (obviously)
> take care of the rest of that idea...
>
> How would you check the functionality of a USB Bus / Controller?
>
> May we assume that if a typical USB device plugged in to
> a Win XP (SP 2) machine and seems to work, would that "probably"
> indicate that the USB interface (cable/controller) is "squeekie clean"?
>
> I.E., would this assume that all of the generic USB functionality 
> (probably) works O. K. ?
>
> We have a new HP 6310 printer (Fax, Scanner, Printer, All In One) 
> which doesn't print,
> but an earlier generation HP 3745 printer works fine (both printers 
> via USB on same machine).
> I've done a "reinstall" using the HP CD, of software / drivers (of the 
> 6310), several
> times, without success.
>
> I downloaded and installed the 6310 Driver via the Web (as another 
> idea) without (printing) success.
>
> But if I hook up the old HP 3745 printer and create a sm file via 
> NotePad editor,
> the 3745 works (prints) fine.
>
> OBTW, I took the HP 6310 back to Circuit City and  got a new item,
> then followed procedure as above, (3 - 4 times) without success???
>
> Tried USB spigot on back of machine (different controller?) and get same
> results as USB spigot on front of machine (no print) ???
>
> I tried a different USB cable as well with no change.
>
> Can add HP 6300 printer manually, in Printers and Faxes.
> Can select Printer (Icon) as Default printer and shows as "Ready'  ...
>
> "My Computer -> Hardware" sees device as "Unknown Device"...
>
> What other options do I now have?
> Is there a way to test generic USB functionality?
>
> Should I consider Refreshing Win XP (SP 2), as the last resort?
>
> Is there other "Plug & Play" issues here, that I am not aware of?
> Any other options that you might suggest?
>
> Thanks for any Comments or suggestions (or flames)...
>
> paulc
> 
>
> ___
> gnhlug-discuss mailing list
> gnhlug-discuss@mail.gnhlug.org
> http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
>   
I have run into this kind of problem between an XP host and an HP 
multi-function printer before. No amount of registry editing, removing 
of old drivers, re-installing would work. Finally I found that 
re-installing XP corrected the problem. HP doesn't know how to fix this 
particular problem which usually manifests itself as a "error occurred 
during installation" message when you attempt to install the 
multi-function printer. If a re-install becomes necessary you should 
make sure you have the necessary kits (including Office and any other 
application needed) and then make sure you back up your wife's data. You 
can get almost all of her data by backing up the "Documents and 
Settings" folder (which will not only back up her stuff but all the 
accounts on the system). If she is using Quickbooks or another 
accounting program make sure you get her company file(s) in your backup. 
You can also backup individual items like Outlook Express/Outlook data 
files.  If she is using Outlook Express make sure you export her address 
book to a .wab file. You can reload her address book from that file 
after you re-install Windows. If you had another Windows system you 
could test the printer with that system but the problem you are 
describing sounds a lot like the problem I have run into at several 
client sites. HP has a more thorough printer de-installation program but 
I didn't get the results needed when I've used it.

-Alex

P.S. You should also export your wife's bookmarks and cookies before 
re-loading Windows. You can import those saved files when you've got 
Windows up and running again.

P.P.S. Feel free to google for a solution but unless HP has figured out 
how to fix this you may need to re-load Windows.
___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/


(OT) Flaky USB Bus

2008-11-20 Thread paul . cour1

























Good Morning,I have (my wife) a Win XP machine that is driving me beserk.She decided that a new printer was in order and I would (obviously)take care of the rest of that idea...How would you check the functionality of a USB Bus / Controller?May we assume that if a typical USB device plugged in toa Win XP (SP 2) machine and seems to work, would that "probably"indicate that the USB interface (cable/controller) is "squeekie clean"?I.E., would this assume that all of the generic USB functionality (probably) works O. K. ?We have a new HP 6310 printer (Fax, Scanner, Printer, All In One) which doesn't print,but an earlier generation HP 3745 printer works fine (both printers via USB on same machine).I've done a "reinstall" using the HP CD, of software / drivers (of the 6310), severaltimes, without success.I downloaded and installed the 6310 Driver via the Web (as another idea) without (printing) success.But if I hook up the old HP 3745 printer and create a sm file via NotePad editor,the 3745 works (prints) fine.OBTW, I took the HP 6310 back to Circuit City and  got a new item,then followed procedure as above, (3 - 4 times) without success???Tried USB spigot on back of machine (different controller?) and get sameresults as USB spigot on front of machine (no print) ???I tried a different USB cable as well with no change.Can add HP 6300 printer manually, in Printers and Faxes.Can select Printer (Icon) as Default printer and shows as "Ready'  ..."My Computer -> Hardware" sees device as "Unknown Device"...What other options do I now have?Is there a way to test generic USB functionality?Should I consider Refreshing Win XP (SP 2), as the last resort?Is there other "Plug & Play" issues here, that I am not aware of?Any other options that you might suggest?Thanks for any Comments or suggestions (or flames)...paulc
___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/


Re: "Relaying" video streams

2008-11-20 Thread Thomas Charron
On Wed, Nov 19, 2008 at 8:36 PM, Bruce Dawson <[EMAIL PROTECTED]> wrote:
>> http://camstreams.com/
> Interesting service, and looks like something I want - except it
> requires the "broadcaster" (me) to run the camstreams encoder on a
> Windows box.
> I don't mind encoding for such a service, but I don't want to run
> Windows. It must run on either Linux or Unix.

  While I haven't ever actually used their service, they simply want
the data to be in a Microsoft format.  VLC could stream it as well.
But while being an 'end to end' video solution, it IS reliant on that
data being all microsoft format.

-- 
-- Thomas
___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/


Re: Assistance with archival script

2008-11-20 Thread Matt Snell
Thanks everyone, much appreciated.

On Wed, Nov 19, 2008 at 2:52 PM, Neil Joseph Schelly <[EMAIL PROTECTED]>wrote:

> On Wednesday 19 November 2008 14:21, Matt Snell wrote:
> > find . -mindepth 1 -maxdepth 1 -type d -exec echo /usr/bin/7z a -t7z
> -mx=0
> {}.7z {} \;
>
> > What I want to do is prevent find from outputting "." as a directory as
>
> I added a mindepth argument to your find above.  That will keep it from
> outputting . in the list and restrict only to the directories within the
> current directory.
> -N
>



-- 
MDS
___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/


Re: "Relaying" video streams

2008-11-20 Thread Frank DiPrete


Bruce Dawson wrote:
> Frank DiPrete wrote:
>> Bruce Dawson wrote:
>>   
>>> We've got several web cams that people like to visit
>>> (www.milessmithfarm.net). However, they're chewing up bandwidth when
>>> more than one person at a time views them.
>>>
>>> Is anyone aware of a Linux based video re-broadcaster (either software
>>> or a service)?
>>>
>>> We'd like to upload the video streams to a single server that multiple
>>> people can connect to and view them. This way, we're only sending one
>>> video stream up to the server, and the server can rebroadcast it to all
>>> the connected clients.
>>>
>>> --Bruce
>>> 
>> It sounds like the sources are live streams (web cams) and not files 
>> that can be uploaded to another server for download / viewing.
>>
>> A multi unicast scenario.
>>   
> ...
> 
> The above is correct.
> 
>> But we haven't solved the original problem yet.
>> Item 1) starts a stream from the webcam so you still pound your uplink 
>> for each request, but a little program logic may work here.
>>   
> 
> I think we sorta solved it. I only want one stream going out, and then
> the "repeater" (PHP) will repeat it to multiple clients.
>> I've done this sort of thing with php.
>> These code examples are for an flv source for a youtube re-creatiom 
>> problem I worked on recently, but you would just change the mime / file 
>> type.
>>
>> Your server could:
>>
>> 1) anchor the stream with php curl
>>
>> function proxy_stream($flv_url) {
>>
>>   $curl_handle=curl_init();
>>   curl_setopt($curl_handle, CURLOPT_URL, $flv_url );
>>   curl_setopt($curl_handle,CURLOPT_CONNECTTIMEOUT,3);
>>   curl_exec($curl_handle);
>>   curl_close($curl_handle);
>>
>> }
>>
>> 2) take that output to a pipe and shove it down the browser's throat
>> The important bit is the fpassthru function so as not to mangle the 
>> stream but just send it out again raw.
>>
>> function transmit_stream($flv_file) {
>>
>>   $pos = 0;
>>
>>   header("Content-Type: video/x-flv");
>>   header('Content-Length: ' . filesize($flv_file));
>>   $fh = fopen($flv_file,"rb");
>>   fseek($fh, $pos);
>>   fpassthru($fh);
>>   fclose($fh);
>>
>> }
>>
>> The trick now it to connect the ouput pipe from curl into the retransmit 
>>function instead of operating on files. If a pipe from a webcam in 
>> proxy_stream() is already open, then don't call the curl function. In 
>> theory it would work (haven't tried it yet)
>>
>> Including a player frame on the server page is another added fun bit.
>> I used flowplayer and ffmpeg.
>>
>>   
> OK. Thanks. I'll play with those. I'll probably "pipe" the output from
> "proxy_stream" to shared memory so there will be only one connection.
> Then have transmit_stream copy from the shared memory to the client.
> This will avoid the problem of Apache/PHP creating a new proxy_stream
> for each connection.
> 
> However, I'm concerned about corrupting data streams to the client if a
> PHP process was unable to send out a shared memory segment.
> 
> --Bruce
> 
> 

Please let us/me know how you make out with this approach.
Very cool if it works.

___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/


Re: "Relaying" video streams

2008-11-20 Thread Frank DiPrete


[EMAIL PROTECTED] wrote:
>> Date: Wed, 19 Nov 2008 08:22:15 -0500
>> From: Frank DiPrete <[EMAIL PROTECTED]>
>> Cc: GNHLUG mailing list 
> 
>> function proxy_stream($flv_url) {
>>
>>   $curl_handle=curl_init();
>>   curl_setopt($curl_handle, CURLOPT_URL, $flv_url );
>>   curl_setopt($curl_handle,CURLOPT_CONNECTTIMEOUT,3);
>>   curl_exec($curl_handle);
>>   curl_close($curl_handle);
>>
>> }
>>
>> 2) take that output to a pipe and shove it down the browser's throat
>> The important bit is the fpassthru function so as not to mangle the 
>> stream but just send it out again raw.
>>
>> function transmit_stream($flv_file) {
>>
>>   $pos = 0;
>>
>>   header("Content-Type: video/x-flv");
>>   header('Content-Length: ' . filesize($flv_file));
> 
> Wait, how do you plan to get the content length for the stream?

you don't - it's a live stream without end. Apache will send the output 
chunked.

> 
>>   $fh = fopen($flv_file,"rb");
>>   fseek($fh, $pos);
>>   fpassthru($fh);
> 
> 
> For those on the list who don't know PHP, "rb" means binary read-only;
> fpassthru reads $fh to EOF and stuffs it into the output buffer.
> 
>>   fclose($fh);
>>
>> }
>>
>> The trick now it to connect the ouput pipe from curl into the retransmit 
>>function instead of operating on files. If a pipe from a webcam in 
>> proxy_stream() is already open, then don't call the curl function. In 
>> theory it would work (haven't tried it yet)
> 
> This *might* work, if the stream was in a raw format and the
> passthrough was done in blocks the size of a single video frame.  The
> clients might not like jumping into a video stream mid-frame (which
> could happen if you just start sending them stream data whenever they
> connect).  The client would miss out on all the header information, as
> well as loose frame sync.  Some codecs might be able to recover from
> such an extraordinary lack of metadata.  It seems risky to depend on
> that level of resilience in the codec.
> 
> One thing that might work is a SIP proxy (maybe Asterisk?) on a host
> with high bandwidth available.  A single transmission to the proxy,
> which could then conference everyone else in.  That could require
> viewers to have videoconferencing software, which might be asking too
> much.
> 
> Perhaps some kind of RPC to the server could be used to spawn a farm
> of "mencoder" filters with "-aoc copy -ovc copy" and an appropriately
> calculated "-sb" value.
> 
> Oh, I got it! (See?  You can solve any problem if you talk to yourself
> enough!)
> 
> Have the video source (whatever machine is pulling the mpeg) count the
> bytes and frames.  Then, every 5 seconds or so, transmit a sync report
> to the proxy.  The proxy can then calculate and pass that "-sb" to
> mencoder.  Giving the user the ability to join the feed with a 5
> second resolution would probably be just fine.
> ___
> gnhlug-discuss mailing list
> gnhlug-discuss@mail.gnhlug.org
> http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
> 
> 
___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/