January book report: Quantumbooks Waltham

2007-01-14 Thread Ted Roche
I encourage everyone to buy locally when possible, and I'm pleased to  
report Quantumbooks is a local vendor worthy of your patronage.


Laura and I spent some time at Quantumbooks in Waltham yesterday and  
I wanted to let you know the store is alive and well. As Tim O'Reilly  
wrote a couple of years ago [1], you need to buy where you shop. I  
was concerned when Quantum took over for SoftPro, as the SoftPro  
staff had set a very high bar of knowledge, courtesy and quality  
service.  Yesterday, I was pleased to find very well stocked shelves  
(lots and lots more books than my last visit) and a couple of special  
deals. The sales people were knowledgeable and knew where to find  
several titles I asked about., and went out of their way to ensure I  
got the best deal and all the discounts I might get.


Keep an eye on their in-store promotions and website [2] for good  
deals. This week, they had a good-sized pile of O'Reilly hurts -  
dinged, bent and torn books - at 50% or better off the cover price. I  
had signed up for their mailing list, though I don't see a link on  
their web site. It's probably worth the effort to visit the store and  
get on the list. We got quite a bargain. With the discounts and  
promotions, we likely met or beat the good deal user group discount  
O'Reilly extends us directly, and we got to heft the books and browse  
the titles -- I decided to pass on one title because the book was  
just too massive for my level of interest. I also picked up several  
titles because I had heard of them and a bit of browsing proved they  
were just what I needed.


[1] http://tim.oreilly.com/articles/buy_where_shop.html
[2] http://www.quantumbooks.com/

Ted Roche
Ted Roche  Associates, LLC
http://www.tedroche.com


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


impromptu web server using netcat

2007-01-14 Thread aluminumsulfate

Hi, All...

Most of you are probably familiar with the ever useful TCP/IP utility
netcat (often /usr/bin/nc).  It's real handy for doing quick and
easy file transfers, or otherwise tossing bytes about on a network.
It runs on most variants of UNIX (including Linux) and there's even a
version for Win32.

Those of you who have ever tried to transfer a file between 'doze and
'nix know how hard it can be... create and mount a shared folder or
samba share, set up an httpd or ftpd, install putty, third-party file
transfer websites, AIM file transfer, etc.  - all HORRIBLY inelegant
AND time-consuming solutions.  The win32 port of netcat has been
*invaluable* in this kind of situation, allowing simple file transfer
between Windows and Linux machines, using one (relatively) simple
command and only one small additional executable (nc.exe).

You can find a copy of Win32 netcat at:

  ftp://ftp.dbnet.ece.ntua.gr/pub/users/george/nc.exe

or extract the nc.exe file from the tarball at:

 http://gd.tuwien.ac.at/gnu/gnu-win32/release/netcat/netcat-1.10-2.tar.bz2

Unfortunately, the popular Win32 version of netcat requires a DLL
named ast54.dll, which seems to be missing on some versions of XP
Professional.  Having recently been faced with such a problem, I tried
what may seem an insane solution: using netcat to pose as a web
server!

As it turns out, it's not only possible but also quite simple to
create a simple web server using netcat:

 $ (echo HTTP/1.0 200 OK; echo; echo 'Hello, world!') | nc -l -p 8080

A web browser pointed at port 8080 will then retrieve the content
Hello, world! and display it in the browser window like any other
web page.  This technique can be used to transfer any kind of file
(text, binary, tar archive, etc.) and has been confirmed to work with
Firefox.  Would anyone care to test against IE?

Yeah, it's kind of a loopey solution, but it's still relatively
simple.  Additionally, it requires NO extra software of the target
machine - not even netcat.  All that's required on the receiving
machine is a web browser.

Would anyone be up for implementing a netcat server for HTTP PUT?  :D
___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/


Re: impromptu web server using netcat

2007-01-14 Thread David J Berube
Slick. Suppose you wanted to download a file using this kind of server 
onto an IE machine, but the browser kept viewing the file instead of 
displaying it. You should be able to do this:



(echo HTTP/1.0 200 OK; echo 'Content-Disposition: attachment; 
filename=some_filename.pdf'; echo; cat some_filename.pdf) | nc -l -p 8080


That should force the save as or open dialog.

Take it easy,

David Berube
Berube Consulting
[EMAIL PROTECTED]
(603)-485-9622
http://www.berubeconsulting.com/

[EMAIL PROTECTED] wrote:

Hi, All...

Most of you are probably familiar with the ever useful TCP/IP utility
netcat (often /usr/bin/nc).  It's real handy for doing quick and
easy file transfers, or otherwise tossing bytes about on a network.
It runs on most variants of UNIX (including Linux) and there's even a
version for Win32.

Those of you who have ever tried to transfer a file between 'doze and
'nix know how hard it can be... create and mount a shared folder or
samba share, set up an httpd or ftpd, install putty, third-party file
transfer websites, AIM file transfer, etc.  - all HORRIBLY inelegant
AND time-consuming solutions.  The win32 port of netcat has been
*invaluable* in this kind of situation, allowing simple file transfer
between Windows and Linux machines, using one (relatively) simple
command and only one small additional executable (nc.exe).

You can find a copy of Win32 netcat at:

  ftp://ftp.dbnet.ece.ntua.gr/pub/users/george/nc.exe

or extract the nc.exe file from the tarball at:

 http://gd.tuwien.ac.at/gnu/gnu-win32/release/netcat/netcat-1.10-2.tar.bz2

Unfortunately, the popular Win32 version of netcat requires a DLL
named ast54.dll, which seems to be missing on some versions of XP
Professional.  Having recently been faced with such a problem, I tried
what may seem an insane solution: using netcat to pose as a web
server!

As it turns out, it's not only possible but also quite simple to
create a simple web server using netcat:

 $ (echo HTTP/1.0 200 OK; echo; echo 'Hello, world!') | nc -l -p 8080

A web browser pointed at port 8080 will then retrieve the content
Hello, world! and display it in the browser window like any other
web page.  This technique can be used to transfer any kind of file
(text, binary, tar archive, etc.) and has been confirmed to work with
Firefox.  Would anyone care to test against IE?

Yeah, it's kind of a loopey solution, but it's still relatively
simple.  Additionally, it requires NO extra software of the target
machine - not even netcat.  All that's required on the receiving
machine is a web browser.

Would anyone be up for implementing a netcat server for HTTP PUT?  :D
___
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/


Re: impromptu web server using netcat

2007-01-14 Thread David J Berube
Note that the second sentence should have read displaying the file 
instead of saving it.


Take it easy,

David Berube
Berube Consulting
[EMAIL PROTECTED]
(603)-485-9622
http://www.berubeconsulting.com/

David J Berube wrote:
Slick. Suppose you wanted to download a file using this kind of server 
onto an IE machine, but the browser kept viewing the file instead of 
displaying it. You should be able to do this:



(echo HTTP/1.0 200 OK; echo 'Content-Disposition: attachment; 
filename=some_filename.pdf'; echo; cat some_filename.pdf) | nc -l -p 8080


That should force the save as or open dialog.

Take it easy,

David Berube
Berube Consulting
[EMAIL PROTECTED]
(603)-485-9622
http://www.berubeconsulting.com/

[EMAIL PROTECTED] wrote:

Hi, All...

Most of you are probably familiar with the ever useful TCP/IP utility
netcat (often /usr/bin/nc).  It's real handy for doing quick and
easy file transfers, or otherwise tossing bytes about on a network.
It runs on most variants of UNIX (including Linux) and there's even a
version for Win32.

Those of you who have ever tried to transfer a file between 'doze and
'nix know how hard it can be... create and mount a shared folder or
samba share, set up an httpd or ftpd, install putty, third-party file
transfer websites, AIM file transfer, etc.  - all HORRIBLY inelegant
AND time-consuming solutions.  The win32 port of netcat has been
*invaluable* in this kind of situation, allowing simple file transfer
between Windows and Linux machines, using one (relatively) simple
command and only one small additional executable (nc.exe).

You can find a copy of Win32 netcat at:

  ftp://ftp.dbnet.ece.ntua.gr/pub/users/george/nc.exe

or extract the nc.exe file from the tarball at:

 http://gd.tuwien.ac.at/gnu/gnu-win32/release/netcat/netcat-1.10-2.tar.bz2 



Unfortunately, the popular Win32 version of netcat requires a DLL
named ast54.dll, which seems to be missing on some versions of XP
Professional.  Having recently been faced with such a problem, I tried
what may seem an insane solution: using netcat to pose as a web
server!

As it turns out, it's not only possible but also quite simple to
create a simple web server using netcat:

 $ (echo HTTP/1.0 200 OK; echo; echo 'Hello, world!') | nc -l -p 8080

A web browser pointed at port 8080 will then retrieve the content
Hello, world! and display it in the browser window like any other
web page.  This technique can be used to transfer any kind of file
(text, binary, tar archive, etc.) and has been confirmed to work with
Firefox.  Would anyone care to test against IE?

Yeah, it's kind of a loopey solution, but it's still relatively
simple.  Additionally, it requires NO extra software of the target
machine - not even netcat.  All that's required on the receiving
machine is a web browser.

Would anyone be up for implementing a netcat server for HTTP PUT?  :D
___
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/



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


Re: impromptu web server using netcat

2007-01-14 Thread Kent Johnson

[EMAIL PROTECTED] wrote:

Hi, All...

Most of you are probably familiar with the ever useful TCP/IP utility
netcat (often /usr/bin/nc).  It's real handy for doing quick and
easy file transfers, or otherwise tossing bytes about on a network.
It runs on most variants of UNIX (including Linux) and there's even a
version for Win32.


If you have Python installed on the source machine, the single line
python -c import SimpleHTTPServer; SimpleHTTPServer.test()

will start a real web server on port 8000, serving static content from 
the directory tree rooted at the current working dir. The server 
includes support for directory listings and will set the correct 
content-type for many types of files.


Kent

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


Re: impromptu web server using netcat

2007-01-14 Thread David J Berube

Hi,

Here's a one-line web server command in ruby:

 ruby -e require 'webrick'; 
s=WEBrick::HTTPServer.new(:DocumentRoot=Dir::pwd,:Port=); 
trap('INT'){s.shutdown}; s.start


Complements of here:

http://brianellin.com/blog/2006/03/30/one-line-webserver-in-ruby/

Note that the netcat is considerably lighter weight than either the 
Python or Ruby intepreters. Also note that there is a nice degree of 
elegance in that the NetCat solution serves one file and only one file.


Take it easy,

David Berube
Berube Consulting
[EMAIL PROTECTED]
(603)-485-9622
http://www.berubeconsulting.com/

Kent Johnson wrote:

[EMAIL PROTECTED] wrote:

Hi, All...

Most of you are probably familiar with the ever useful TCP/IP utility
netcat (often /usr/bin/nc).  It's real handy for doing quick and
easy file transfers, or otherwise tossing bytes about on a network.
It runs on most variants of UNIX (including Linux) and there's even a
version for Win32.


If you have Python installed on the source machine, the single line
python -c import SimpleHTTPServer; SimpleHTTPServer.test()

will start a real web server on port 8000, serving static content from 
the directory tree rooted at the current working dir. The server 
includes support for directory listings and will set the correct 
content-type for many types of files.


Kent

___
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/


Re: Fw: linux newbie

2007-01-14 Thread Ben Scott

On 1/12/07, mike miller [EMAIL PROTECTED] wrote:

Thanks for everyones help.  I've confirmed that the hardware is the
Realtek RTL8111/8168B, identified the correct driver, downloaded the tar
file and expanded it. When I tried to install it (make clean modules) I
got an error (no such file or directory) after the line:
Make -C /lib/modules/2.618-1.2798.fc6/build 
I went to that directory and found a file named build but it was
identified as a broken link.


 First, let's try a shot-in-the-dark: You might try building the
driver source as the root user, if you didn't do that already.
Normally, the preference is to not run software builds as root, but
I've encountered driver kits which expect to be built as root in the
past.

 If that doesn't work:

 Linux supports the concept of files which are links, or files
which point to other files.  (Verbosely, symbolic link, or
symlink.)  Any program which reads or writes a link actually ends up
using the target file.  (This is kind of like a shortcut in Windows,
but more seamless.)  It sounds like one of the files used during the
drive build is a link which points to something which isn't there.

 Get to a shell prompt (also called command prompt, terminal,
xterm, etc.) and issuing the following commands:

cd /lib/modules/2.618-1.2798.fc6
file build

 The file command should tell us what the build is trying to
point to, which might help us deduce what is wrong.

 For example:

$ file foo
foo: broken symbolic link to `/no/such/file'
$

 In the above, I created a bogus link named foo, which pointed to
/no/such/file.  As you can see, the file command identified it as
broken, and indicated where it was pointing.

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


Re: impromptu web server using netcat

2007-01-14 Thread Christopher Schmidt
On Sun, Jan 14, 2007 at 04:31:54PM -0500, David J Berube wrote:
 Note that the netcat is considerably lighter weight than either the 
 Python or Ruby intepreters. Also note that there is a nice degree of 
 elegance in that the NetCat solution serves one file and only one file.

On some Windows machines, and many Linux distributions, Python is
installed by default these days -- it's often used for setup and
configuration of the system, which means that you might have python in a
situation where you don't already have netcat (I don't tend to install
it on debian machines until I run into a need for it.)

So, although netcat may be more lightweight, Python may still be lower
setup cost wise.

I've never found a machine with Ruby installed and not Python yet though
:)

Regards,
-- 
Christopher Schmidt
Web Developer
___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/