Jeff Waugh wrote:
ALL good answers include fishing instructions. Thank you!
1) Dinghy
2) Shotgun
etc.
:-)
you sound like Sarah Palin... do you wrastle mooses?
(sorry... time for me to exit ()
___
coders mailing list
coders@slug.org.au
http://
Erik de Castro Lopo wrote:
david wrote:
g the caps must be a special secret handshake I thought I
had tried all the combinations :-)
I should have mentioned that I figured this out by doing:
dpkg -L python-mysqldb
which had amongst other things:
/usr/share/python
Erik de Castro Lopo wrote:
david wrote:
$ sudo apt-get install python-mysqldb python-mysqldb-dbg
[EMAIL PROTECTED]:~/howto$ python
Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "credi
mation.
>>> import mysql
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named mysql
>>> import mysqldb
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named mysqldb
what am i doing wrong?
where
Hi,
I'm kicking myself for writing this, because I've been known to criticise
other people's motives for wanting to do something and I hate that kind of
reaction, but I can't help myself it seems.
I'd suggest two things: draft some screen shots (simple is fine) of what you
expect the result to
213: error: syntax
error before "typedef"*
Below is the file /usr/lib/gcc-lib/i486-linux/3.3.5/include/stddef.h
with an arrow pointing to line 213 in large print and in blue
As a novice I am somewhat cautious of going in as root and fiddling with
this file.
Many thanks in anticipa
On Mon, 2006-06-19 at 17:11 +1000, Daniel Bush wrote:
> On 18/06/06, david <[EMAIL PROTECTED]> wrote:
> > irb(main):042:0> y
> > => [88.0, 99.0, 1.0, 3.0]
> > irb(main):039:0> y.length.times do puts "blah" end
> > blah
> > blah
> >
irb(main):042:0> y
=> [88.0, 99.0, 1.0, 3.0]
irb(main):039:0> y.length.times do puts "blah" end
blah
blah
blah
blah
=> 4
irb(main):040:0> y.length-1.times do puts "blah" end
blah
=> 3
I expected the last command to print "blah" 3 times.
___
coders mai
Could I very politely ask you to modify the subject?
Very interesting, but somewhat off-topic ;-) I think this particular
first knight has been thoroughly de-flowered.
On Sat, 2006-06-17 at 01:04 +1000, Jamie Wilkinson wrote:
> This one time, at band camp, Benno wrote:
> >On Fri Jun 16, 2006 at 1
On Wed, 2006-06-14 at 00:03 +1000, Graham Smith wrote:
Matt asked us to comment on each others code... so I'll be the first mug
to do so ;-)
> #!/usr/bin/ruby
>
> amount=ARGV[0].to_f
>
> x = amount % 5.0
> y = amount - x
>
> puts x > 2.0 ? y+5 : y
This is very elegant, but I imagined myse
On Fri, 2006-06-16 at 18:06 +1000, O Plameras wrote:
> David wrote:
>
> >[EMAIL PROTECTED]:~/ruby $ irb
> >irb(main):012:0> puts $stdin.readlines.sort_by {rand}
> >1
> >2
> >3<-- c^d here
> >3
> >2
> >1
> >=> nil
>
On Fri, 2006-06-16 at 09:58 +1000, O Plameras wrote:
> Graham Smith wrote:
>
> >#!/usr/bin/ruby
> >a=STDIN.readlines.sort_by {rand}
> >puts a
> So, this is how I'd code it.
>
> #!/usr/bin/env ruby
> puts $stdin.readlines.sort_by {rand} unless $stdin.eof
>
> In human terms, it says 'put the lin
On Tue, 2006-06-13 at 22:36 +1000, Matthew Palmer wrote:
As requested:
> - Generate a set of 20 random numbers between 1 and 100, and then print only
> the odd ones -- with the special caveat that your solution *must* use
> Array#<< and Array#select. Don't know what they do? See the f
, and probably NOT a hard core hacker
since this is mostly for beginners.
It's all happening next Tuesday night.
David
[NRS] == NewbieRubySIG
___
coders mailing list
coders@slug.org.au
http://lists.slug.org.au/listinfo/coders
14 matches
Mail list logo