Re: [SLUG] C-Pointers and Perl ?

2005-09-30 Thread Angus Lees
At Fri, 30 Sep 2005 07:58:22 +1000, Telford Tendys wrote:
> How about writing a network protocol stack. You get a packet and all
> you know about it is that here is a block of memory. You then have
> to figure out what sort of packet it is, how long it is and what
> structure to give it. C handles this very nicely with pointers to
> structures that can be cast into whatever you need.

Since you dared me, here's some (untested) perl5 code that will parse
a TCP header, including network byte order conversions and bitfields:

 my ($source, $dest, $seq, $ack_seq,
 $off, undef, undef, $urg, $ack, $psh, $rst, $syn, $fin,
 $window, $check, $urg_ptr) = unpack 'n2 N2 C B8 n3', $tcpdata;

 $off &= 0x0F;


(this is fun ;)

-- 
 - Gus
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] Keeping passwords safe

2005-09-30 Thread Erik de Castro Lopo
Hi all,

Does anybody have any recomendations for a program that can be used
to store passwords, bank account details etc in an encrypted file?

Thank,
Erik
-- 
+---+
  Erik de Castro Lopo
+---+
"I've nothing against OO, I do have something against C++. Its a dogs
dinner. Anyone who's (tried) to read Stroustrups book on C++ like I had
the misfortune of doing knows that the man is very intelligent but has
about as much clarity of thought as Timothy Leary on a bad day."
-- NJR in comp.os.linux.development.apps
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Converting video tapes.

2005-09-30 Thread John Gibbons
Full name from driver disk: Belkin Hi-Speed USB 2.0 DVD Creator. The 
software included for picture downloads, etc, is Ulead Video Studio 6.


John.

Voytek wrote:



 


I have acquired a bit of hardware that can link a video tape recorder to
the computer to convert tapes into CDs and DVDs. The accompanying software
is exclusively Windows. Bugger!
   



what is it called ?


 



--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Your top-ten linux desktop apps

2005-09-30 Thread Sam Couter
O Plameras <[EMAIL PROTECTED]> wrote:
> And, also, in that case I should also include "sizeof(unsigned)" which 
> in C programming
> is usually the same as sizeof(int). But we learned again that we must 
> satisfy ourselves
> first hand.

if (sizeof(unsigned) != sizeof(int)) printf("Buggy compiler!\n");

"unsigned" really means "unsigned int" which is always exactly the same
size as int (obviously).
-- 
Sam "Eddie" Couter  |  mailto:[EMAIL PROTECTED]
Debian Developer|  mailto:[EMAIL PROTECTED]
|  jabber:[EMAIL PROTECTED]
OpenPGP fingerprint:  A46B 9BB5 3148 7BEA 1F05  5BD5 8530 03AE DE89 C75C


signature.asc
Description: Digital signature
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Re: [SLUG] Debian

2005-09-30 Thread Jeff Waugh


> "Gdm Xserver not found: /usr/x11r6/bin/x :0 -audito -auth/var/lib/gdm/ 
> :0 .xauth -nolisten tcp vt7"
> Please install the xserver or edit /etc/gdm/gdm.conf to point to the 
> right place"
> 
> Where have I gone wrong.

Install x-window-system-core.

- Jeff

-- 
linux.conf.au 2006: Dunedin, New Zealand   http://linux.conf.au/
 
  "Then it hit me: What I really want is for all edit panes in all
applications to be gnuclient processes hooked to a centralized emacs
 gnuserver process!" - Gary Murphy
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] Debian

2005-09-30 Thread Paul Maloney

Hi all,
Well I am still having fun trying to get debian up and running. I have 
it to the text level and have installed Xfree86 and gdm but I have not 
been able to install the xserver. When I run gdm this is the message I 
receive


"Gdm Xserver not found: /usr/x11r6/bin/x :0 -audito -auth/var/lib/gdm/ 
:0 .xauth -nolisten tcp vt7"
Please install the xserver or edit /etc/gdm/gdm.conf to point to the 
right place"


Where have I gone wrong.
Thanks in advance
Paul

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html