fflush changed the topic of #ruby to: Ruby 1.9.3-p194: http://ruby-lang.org || Paste > 3 lines of text on pastebin.com
PragCypher has quit [Ping timeout: 272 seconds]
haxrbyte has quit [Remote host closed the connection]
methodmat312 has quit [Quit: Leaving]
bradhe has quit [Remote host closed the connection]
havenn has joined #ruby
lggr has quit [Ping timeout: 264 seconds]
chrisja has quit [Quit: leaving]
Nisstyre has joined #ruby
Monie has quit [Ping timeout: 244 seconds]
freeayu has joined #ruby
dpk has quit [Quit: Asleep at the keyboard.]
LouisGB has quit [Ping timeout: 272 seconds]
lggr has joined #ruby
<Gate> Lokans:
<Gate> (0..26).to_enum.reduce({}) do |memo,i| memo[(i + 'a'.ord).chr] = i + 1 memo
<Gate> end
<Gate> gah, copy-paste fail
Papasean has joined #ruby
pingfloyd has quit [Ping timeout: 260 seconds]
PragCypher has joined #ruby
Virunga has quit [Remote host closed the connection]
SCommette has quit [Quit: SCommette]
dfr|work has joined #ruby
adam__ has joined #ruby
BdeUtra has quit [Quit: BdeUtra]
<dfr|work> Hey guys. Is there a special syntax for regex but that escapes usual regexy stuff? Like shorthand for Regexp.new Regexp.escape("string") ?
GoHuyGo has quit [Quit: Leaving]
BdeUtra has joined #ruby
adam_ has quit [Ping timeout: 252 seconds]
lggr has quit [Ping timeout: 244 seconds]
<fowl> /#{Regexp.escape 'string'}/ ?
madtalentz has joined #ruby
wpaulson has joined #ruby
lggr has joined #ruby
<fowl> Gate: , Lokans : ('a'..'z').to_a
wpaulson_ has joined #ruby
roadt has joined #ruby
Tom2 has quit [Read error: Operation timed out]
Papasean has quit [Quit: Papasean]
wpaulson has quit [Ping timeout: 264 seconds]
wpaulson_ is now known as wpaulson
<austinbv> fowl: you are amazing
<austinbv> select is amazing
mrdodo has quit [Remote host closed the connection]
<havenn> ('a'..'z').to_a.product (1..26).to_a
tommyvyo has joined #ruby
sebastorama has joined #ruby
LouisGB has joined #ruby
lggr has quit [Ping timeout: 268 seconds]
<dekz> Can anyone recommend some form of basic gem which will report system monitoring information (unix?)
<fowl> austinbv: :)
mrdodo has joined #ruby
<Gate> fowl: I figured he wanted a hash to map from "a" to 1
<Gate> which would definitely be easier with that.
lggr has joined #ruby
<fowl> Gate: i thought he wanted to define a bunch of locals at first, but i read this 'set a value to all letters in the alphabet' as wanting an array
<Lokans> thank you fowl
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
<Lokans> and gate
banisterfiend` has quit [Ping timeout: 268 seconds]
g_rotbart has joined #ruby
bradhe has joined #ruby
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
tommyvyo has quit [Quit: Computer has gone to sleep.]
havenn has quit [Remote host closed the connection]
lucianosousa has quit [Quit: lucianosousa]
lggr has quit [Ping timeout: 240 seconds]
bradhe has quit [Ping timeout: 244 seconds]
Lokans has quit []
Tom2 has joined #ruby
lggr has joined #ruby
thatRD has quit [Quit: thatRD]
havenn has joined #ruby
bradhe has joined #ruby
BdeUtra has quit [Ping timeout: 276 seconds]
LouisGB has quit [Ping timeout: 244 seconds]
mrdodo has quit [Remote host closed the connection]
sabgenton has quit [Quit: Page closed]
jarred has quit [Ping timeout: 245 seconds]
sebastorama has quit [Quit: Computer has gone to sleep.]
mrdodo has joined #ruby
seanstickle has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
mrdodo has quit [Remote host closed the connection]
BrokenCog has joined #ruby
BrokenCog has quit [Changing host]
BrokenCog has joined #ruby
kaushik_ has joined #ruby
mrdodo has joined #ruby
PragCypher has quit [Read error: Connection reset by peer]
PragCypher has joined #ruby
Takehiro has joined #ruby
elaptics is now known as elaptics`away
jarred has joined #ruby
wpaulson has joined #ruby
wpaulson has quit [Client Quit]
ZachBeta has quit [Quit: Computer has gone to sleep.]
havenn has quit [Remote host closed the connection]
wpaulson has joined #ruby
lggr has joined #ruby
Takehiro has quit [Ping timeout: 240 seconds]
havenn has joined #ruby
bradhe has quit [Remote host closed the connection]
chrxn__ has quit [Ping timeout: 264 seconds]
wpaulson has quit [Client Quit]
ZachBeta has joined #ruby
CarlB_the_great has quit [Remote host closed the connection]
w400z has joined #ruby
pingfloyd has joined #ruby
lucianosousa has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
jblack has joined #ruby
specialGuest has quit [Ping timeout: 264 seconds]
justinmcp has joined #ruby
hbpoison has joined #ruby
lggr has joined #ruby
mva3212 has quit [Remote host closed the connection]
ScottNYC has quit [Quit: ScottNYC]
lggr has quit [Ping timeout: 252 seconds]
lggr has joined #ruby
Hanmac1 has joined #ruby
gmci has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
banisterfiend` has joined #ruby
jarred has quit [Quit: jarred]
Hanmac has quit [Ping timeout: 264 seconds]
Yomero_ has joined #ruby
AndChat- has quit [Ping timeout: 240 seconds]
Yomero has quit [Ping timeout: 248 seconds]
lggr has quit [Ping timeout: 264 seconds]
Agis__ has joined #ruby
Tearan has quit [Quit: Sleepy Badger....]
mikepack has joined #ruby
nari has joined #ruby
Yomero_ has quit [Ping timeout: 240 seconds]
baphled_ has joined #ruby
lggr has joined #ruby
bluOxigen has quit [Ping timeout: 252 seconds]
<i8igmac> can i get some help with a expression... this was figured out the other night but i cant remember
<i8igmac> .php?id=100002775949272">bob someone\u003C\/a> is a mutual friend > i just need the id number
havenn has quit [Remote host closed the connection]
<i8igmac> string[id=(.)"]
<i8igmac> string[id=(.)",1]
<i8igmac> i cant remember
baphled has quit [Ping timeout: 264 seconds]
<fowl> string[/id=(\d+)/, 1] mebbe
ctp has joined #ruby
<ctp> howdy
binaryplease has quit [Quit: WeeChat 0.3.8]
maletor has quit [Quit: Computer has gone to sleep.]
<ctp> i have a simple question :) sort_by sorts this array of hashes in the manner i expect: [{a:0, b:10}, {a:1, b:20}, {a:0, b:35}].sort_by {|hsh| hsh[:a]} but how to get a subarray of this array with the minimum a's, so [{a:0, b:10}, {a:0, b:35}] ?
bradhe has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
bananagram has quit [Ping timeout: 272 seconds]
GraemeLion has quit [Quit: out]
bananagram has joined #ruby
wpaulson has joined #ruby
Yomero_ has joined #ruby
<i8igmac> fowl, im not getting it... i just need the first quote
<fowl> i8igmac: give me $15 and i'll write it for you.
<fowl> i8igmac: otherwise i can point you to rubular.com
brianwigginton has quit [Quit: Leaving...]
<i8igmac> im tesing with rubular
<i8igmac> the problem with that current expression, the id length may change
<i8igmac> oh this seems to work
<i8igmac> .php.id().*."
lggr has joined #ruby
<fowl> i8igmac: why dont you read my answer
bananagram has quit [Ping timeout: 272 seconds]
<ctp> so what i need is a subset of the sorted array with all elements which are equal to the minimum value. if there exist more than one such tuple
<i8igmac> i cant pay for something ,-(
<ctp> anyone has an idea?
<i8igmac> i tried
<fowl> i8igmac: you seem to be missing the big obvious "Regex quick reference" box
<i8igmac> your awnsoer
<fowl> i8igmac: no you didnt.
<fowl> i8igmac: lie to me again and i'll come to your house and cut your dog
wpaulson_ has joined #ruby
wpaulson_ has quit [Client Quit]
wpaulson has quit [Ping timeout: 245 seconds]
lggr has quit [Ping timeout: 268 seconds]
Chryson has joined #ruby
beachandbytes has joined #ruby
Takehiro has joined #ruby
theRoUS has quit [Read error: Operation timed out]
mohits has joined #ruby
mohits has joined #ruby
theRoUS_ has quit [Ping timeout: 260 seconds]
lggr has joined #ruby
Guedes0 has quit [Quit: Saindo]
fowl has left #ruby ["Leaving"]
Agis__ has quit [Quit: Agis__]
Takehiro has quit [Ping timeout: 268 seconds]
mikepack has quit [Remote host closed the connection]
ZachBeta has quit [Quit: Computer has gone to sleep.]
w400z has quit [Quit: Computer has gone to sleep.]
w400z has joined #ruby
gmci has joined #ruby
austinbv has quit [Ping timeout: 260 seconds]
lggr has quit [Ping timeout: 252 seconds]
Ruler_Of_Heaven_ has quit [Ping timeout: 252 seconds]
pipopopo has joined #ruby
theRoUS has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS_ has joined #ruby
lggr has joined #ruby
w400z has quit []
kaushik_ has quit [Ping timeout: 264 seconds]
locriani has quit [Quit: Leaving...]
locriani has joined #ruby
macmartine has joined #ruby
pipopopo has quit [Ping timeout: 240 seconds]
pipopopo has joined #ruby
minijupe has joined #ruby
billyoc has joined #ruby
locriani has quit [Changing host]
locriani has joined #ruby
locriani has quit [Client Quit]
locriani has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
cantonic has quit [Quit: cantonic]
kvirani has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
PragCypher has quit [Ping timeout: 272 seconds]
robbyoconnor has quit [Read error: Connection reset by peer]
cantonic has joined #ruby
robbyoconnor has joined #ruby
r0bby has joined #ruby
r0bby has quit [Read error: Connection reset by peer]
r0bby has joined #ruby
lggr has joined #ruby
Banistergalaxy has joined #ruby
robbyoconnor has quit [Read error: No route to host]
invisime has joined #ruby
banisterfiend` has quit [Ping timeout: 250 seconds]
r0bby is now known as robbyoconnor
beachandbytes has quit [Remote host closed the connection]
cakehero has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
PragCypher has joined #ruby
Knodi has joined #ruby
Knodi has quit [Client Quit]
macmartine has quit [Quit: Computer has gone to sleep.]
Knodi has joined #ruby
Knodi has quit [Remote host closed the connection]
Knodi has joined #ruby
Knodi has quit [Client Quit]
lggr has joined #ruby
bananagram has joined #ruby
AlbireoX has quit [Ping timeout: 246 seconds]
theRoUS has quit [Ping timeout: 272 seconds]
lggr has quit [Ping timeout: 255 seconds]
AlbireoX has joined #ruby
tarwich has quit [Quit: Leaving.]
lggr has joined #ruby
Markvilla has quit [Quit: Computer has gone to sleep.]
AlbireoX has quit [Remote host closed the connection]
bluesnow has joined #ruby
<bluesnow> Hi, I'm wondering for a MIT licensed library that I use server side, do I have to include the license on my website?
S1kx has quit [Ping timeout: 260 seconds]
AlbireoX has joined #ruby
<seanstickle> Nope.
<seanstickle> You probably use Linux on the server side too.
<seanstickle> I doubt you're posting the GPL.
mahmoudimus has joined #ruby
\13k|work has quit [Quit: gg]
<bluesnow> seanstickle: Okay, thanks.
bluesnow has left #ruby [#ruby]
tarwich has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
bananagram is now known as `
c0rn_ has joined #ruby
` is now known as bananagram
CarlB_the_great has joined #ruby
Takehiro has joined #ruby
beachandbytes has joined #ruby
snorkdude has joined #ruby
snorkdude has quit [Remote host closed the connection]
radic has quit [Read error: Operation timed out]
asv has joined #ruby
Takehiro has quit [Ping timeout: 268 seconds]
lggr has joined #ruby
ananthakumaran has joined #ruby
snorkdude has joined #ruby
cakehero has quit [Quit: Leaving...]
snorkdude has quit [Remote host closed the connection]
seanstickle has quit [Quit: seanstickle]
lggr has quit [Ping timeout: 260 seconds]
statarb3 has quit [Ping timeout: 252 seconds]
manizzle has quit [Ping timeout: 240 seconds]
Tref has quit [Quit: Tref]
pskosinski has quit [Quit: Great, little known futuristic FPS: http://ethernet.wasted.ch/]
radic has joined #ruby
lggr has joined #ruby
asv has quit [Ping timeout: 272 seconds]
hbpoison has quit [Ping timeout: 252 seconds]
CarlB_the_great has quit [Remote host closed the connection]
butblack has joined #ruby
i8igmac has quit [Quit: Leaving]
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
xpen has joined #ruby
PragCypher has quit [Read error: Connection reset by peer]
AlbireoX has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 240 seconds]
qos has joined #ruby
PragCypher has joined #ruby
bradhe_ has joined #ruby
dfr|work has quit [Remote host closed the connection]
billyoc` has joined #ruby
wuzzzzaah has quit [Quit: wuzzzzaah]
bradhe has quit [Ping timeout: 244 seconds]
billyoc has quit [Ping timeout: 246 seconds]
beneggett has joined #ruby
billyoc` has quit [Remote host closed the connection]
lggr has joined #ruby
xpen has quit [Remote host closed the connection]
nari has quit [Ping timeout: 252 seconds]
xpen has joined #ruby
wallerdev has quit [Quit: wallerdev]
invisime has quit [Ping timeout: 244 seconds]
lggr has quit [Ping timeout: 252 seconds]
luckyruby has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
Tombar has joined #ruby
Monie has joined #ruby
maletor has joined #ruby
lggr has joined #ruby
vitor-br has quit [Quit: Saindo]
Tombar has quit [Remote host closed the connection]
tork has joined #ruby
aristidesfl has quit []
<jblack> Good evening. openssl w/ Mechanize worked fine for me on 1.8.7, but I'm having a problem with it on 1.9.3p0.
<jblack> I have sample code at http://pastebin.com/hgTm8VEi . Would anyone have any suggestions?
lggr has quit [Ping timeout: 240 seconds]
<bnagy> I would try to get it working without VERIFY_NONE
<bnagy> cause that will make sure your certs are all working
<jblack> These secretary sites have a habit of letting their certs expire
Nisstyre has quit [Ping timeout: 272 seconds]
<jblack> When I renable cert verification (by removing VERIFY_NONE), I can indeed load https://google.com, but I'm still unable to load that particular page in the example in 1.9.3 (but can in 1.8.7)
Takehiro has joined #ruby
<bnagy> hm
<bnagy> I guess next step is to take mechanize out of the equation
<bnagy> I have no idea what I'm doing btw
tork has left #ruby [#ruby]
xpen_ has joined #ruby
ngoldman has joined #ruby
mrdodo has quit [Remote host closed the connection]
<jblack> :) Thanks for trying anyway. :)
Jackneill has joined #ruby
tarwich has quit [Quit: Leaving.]
Takehiro has quit [Ping timeout: 268 seconds]
lggr has joined #ruby
neurotech has joined #ruby
Jackneill is now known as Guest64548
xpen has quit [Ping timeout: 272 seconds]
eikko has quit [Ping timeout: 248 seconds]
<bnagy> basically if you can pull the site with atright openuri then we know it's some mechanize thing, and look in src tere
billyoc has joined #ruby
<bnagy> I'd imagine it's an SSL option they changed in 1.9 that your site hates
<bnagy> but those things are a PITA to try and work out with a sniffer, better to go source diving
tyfighter has joined #ruby
<jblack> it's ssl. I don't think I'll be sniffing. :P
<bnagy> the cipherspec stuff is all clear
jasonLaster has quit []
Guest26732 has quit [Ping timeout: 264 seconds]
Spooner has quit [Ping timeout: 244 seconds]
shiki has quit [Remote host closed the connection]
Nisstyre has joined #ruby
ngoldman has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 252 seconds]
verbad has joined #ruby
lggr has joined #ruby
<jblack> https://webcache.googleusercontent.com/search?q=cache:vEaFl-rUul0J:https://github.com/tenderlove/mechanize/issues/252+&cd=1&hl=en&ct=clnk&gl=us&client=firefox
<jblack> "Figured it out, i was missing a.agent.ssl_version = 'SSLv3'
verbad has quit [Client Quit]
wallerdev has joined #ruby
AlbireoX has joined #ruby
savage- has joined #ruby
CodeFriar has quit [Quit: Leaving...]
<bnagy> \o/
lggr has quit [Ping timeout: 246 seconds]
AlbireoX`Laptop has joined #ruby
AlbireoX has quit [Read error: Connection reset by peer]
rakl has joined #ruby
lggr has joined #ruby
bradhe has joined #ruby
sepp2k1 has quit [Remote host closed the connection]
bradhe_ has quit [Ping timeout: 255 seconds]
CoverSlide has quit [Ping timeout: 272 seconds]
billyoc has quit [Quit: leaving]
bradyl0ve has quit [Quit: Linkinus - http://linkinus.com]
lggr has quit [Ping timeout: 268 seconds]
swarley has joined #ruby
mrdodo has joined #ruby
adelcampo has quit [Quit: Leaving...]
yshh has joined #ruby
lggr has joined #ruby
krz has joined #ruby
gmci has quit [Quit: Computer has gone to sleep.]
shiki has joined #ruby
savage- has quit [Remote host closed the connection]
lchin has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
adelcampo has joined #ruby
Takehiro has joined #ruby
ltsstar has joined #ruby
Takehiro has quit [Remote host closed the connection]
lggr has joined #ruby
Takehiro has joined #ruby
Guest64548 has quit [Quit: Guest64548]
rakl has quit [Quit: sleeping]
notVert has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 268 seconds]
Chryson has quit [Quit: Leaving]
mohits has quit [Ping timeout: 272 seconds]
joofsh has quit [Remote host closed the connection]
ananthakumaran has quit [Quit: Leaving.]
rakl has joined #ruby
trumpetmic has joined #ruby
Sunhay has joined #ruby
<trumpetmic> Is there such a thing as a free and open-source video-uploading, and video sharing web app that you can run on your own site or maybe host on a cloud? Or of course, on Google Drive or YouTube?
yoklov has quit [Quit: bye!]
uris has quit [Quit: leaving]
chussenot has quit [Quit: chussenot]
austinbv has joined #ruby
lggr has joined #ruby
lucianosousa has quit [Quit: lucianosousa]
mohits has joined #ruby
butblack has quit [Quit: butblack]
thunderstrike has joined #ruby
thunderstrike has quit [Remote host closed the connection]
AlbireoX`Laptop has quit [Remote host closed the connection]
thunderstrike has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
bananagram has quit [Ping timeout: 252 seconds]
mohits has quit [Ping timeout: 244 seconds]
Brandon has joined #ruby
<Brandon> I want to run through search through images and find the ones containing a percentage of a color. Is there a library that can help me with this?
m1d0 has left #ruby [#ruby]
Brandon is now known as metrix
<swarley> metrix, yes
<swarley> look at rbmagick
<swarley> its the ruby bindings to image magick
Lokans has joined #ruby
<swarley> if you're doing vague colors (i.e. black, blue, white) you'll want to add a fuzz for when you're searching
<metrix> hmm
<metrix> ok
<Lokans> im trying to find out what numbers between 1-100 that is devisable by 3 and 5, but the problem is that that the numbers that i want to collect "dissappers"
<Lokans> numbers = *(1..100).to_a
<Lokans> able =[].to_a
<Lokans> able << numbers[n] if n % 3 == 0 || n % 5 == 0
<Lokans> numbers.each{|n|
<Lokans> }
<swarley> Lokans,
<swarley> do
<bnagy> not
<bnagy> paste
<bnagy> morethan
<bnagy> 3 lines
<swarley> numbers.select {|x| (x % 3) || (x % 5) }
ltsstar has quit [Quit: ltsstar]
<swarley> also
<Lokans> swarley: ill try, ill get back to u in a sec
lggr has joined #ruby
<swarley> you can do [*1..100]
<Lokans> bnaggy : ok, i will keep it in mind
<swarley> and that's the same as *(1..100).to_a
<Lokans> oh, thank you, will rewrite that bit
<ryanf> actually, the * in "numbers = *(1..100).to_a" isn't doing anything
<swarley> errr
<swarley> i gave you the wrong code sorry
gautamc has quit [Read error: Connection reset by peer]
<ryanf> also you don't need to do "[].to_a", because [] is already an array
<swarley> numbers.select {|x| ((x % 3) == 0 || (x % 5) }
<swarley> 0.
<swarley> ...
<swarley> numbers.select {|x| ((x % 3) == 0) || ((x % 5) == 0) }
<swarley> sorry, my dog stepped on my keyboard
<ryanf> also when you do "numbers.each { |n|", n is the number, not its index in the array. so you shouldn't be doing "numbers[n]" inside the loop, just "n"
<Lokans> np trying it now
gautamc has joined #ruby
<swarley> metrix, also sorry, i gave you the wrong gem name, its actually called rmagick, not rbmagick
<Lokans> swarley, where is the "numbers" gonna be stored, aka, what command is it to print it out, print/puts what?
<metrix> Swarley: thank you
sent-hil has joined #ruby
lggr has quit [Ping timeout: 264 seconds]
<swarley> Lokans, you'll want to use an assignment
<swarley> like result = numbers.select {|x| ...
<swarley> or
<swarley> you can do numbers.select! {|x| ...
<swarley> wait
<swarley> i may be wrong about that
<swarley> oh no i'm not
<swarley> numbers.select! puts the result in numbers
hbpoison has joined #ruby
ananthakumaran has joined #ruby
lolmaus has joined #ruby
mohits has joined #ruby
khakimov has joined #ruby
zhutingting has joined #ruby
lggr has joined #ruby
metrix has quit [Quit: ChatZilla 0.9.88.2 [Firefox 15.0.1/20120905151427]]
<bnagy> s=[*1..100]; [2,3,5,7].inject(s) {|s,prime| s.reject! {|i| i % prime==0} } # eratosthenes
ckrailo has quit [Quit: Computer has gone to sleep.]
<swarley> what does inject do actually? do we have an rdoc bot in here?
manizzle has joined #ruby
<bnagy> the injected value goes into the 'accumulator' (s, there) and the collection elems go one by one into the var (prime)
<swarley> ah
<bnagy> each time the accumulator gets the return value from the block
<bnagy> aka reduce, if you're familiar with map reduce
<swarley> to me it's easier to read mine. But yours is more compact and probably more efficient
<bnagy> mine does something completely different
<swarley> oh, i thought we had the same goal
dmiller has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
sent-hil has quit [Remote host closed the connection]
jastix has joined #ruby
zhutingting has quit [Quit: Page closed]
pu22l3r has quit [Remote host closed the connection]
pu22l3r has joined #ruby
lggr has joined #ruby
digitalcakestudi has quit [Ping timeout: 240 seconds]
jarred has joined #ruby
rakl has quit [Quit: sleeping]
diegoviola has joined #ruby
xpen has joined #ruby
justsee has joined #ruby
justsee has joined #ruby
lggr has quit [Ping timeout: 264 seconds]
xpen_ has quit [Ping timeout: 244 seconds]
<heftig> s=[*2..100]; s.each { |prime| s.reject! { |x| x % prime == 0 && x != prime } }
<heftig> this is more like eratosthenes, imo
swarley has quit [Ping timeout: 252 seconds]
lchin has quit [Remote host closed the connection]
bradhe_ has joined #ruby
<bnagy> ew reject! inside each
bradhe has quit [Ping timeout: 246 seconds]
minijupe has quit [Quit: minijupe]
lggr has joined #ruby
<bnagy> but yeah that's much better
gmci has joined #ruby
<bnagy> also I forgot to merge my seed primes
<bnagy> it's fairly deeply freaky that works, though
justinmcp has quit [Remote host closed the connection]
jaydg has joined #ruby
banisterfiend` has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
ph^ has quit [Remote host closed the connection]
lggr has joined #ruby
eldariof has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
neurotech has quit [Remote host closed the connection]
maletor has joined #ruby
austinbv has quit [Ping timeout: 252 seconds]
rutkla has joined #ruby
sgupta is now known as Shrink
xpen_ has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
xpen has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
fantazo has quit [Remote host closed the connection]
SCommette has joined #ruby
SCommette has quit [Client Quit]
ryanf has quit [Quit: leaving]
ryanf has joined #ruby
luckyruby has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 240 seconds]
banisterfiend` has quit [Ping timeout: 244 seconds]
kitofr has joined #ruby
lggr has joined #ruby
senny has joined #ruby
und3f has joined #ruby
diegoviola has quit [Ping timeout: 240 seconds]
conor_ireland has quit [Quit: conor_ireland]
c0rn_ has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 244 seconds]
maesbn has joined #ruby
love_color_text has joined #ruby
baphled_ has quit [Ping timeout: 255 seconds]
lggr has joined #ruby
love_color_text has quit [Remote host closed the connection]
cj3kim has quit [Quit: This computer has gone to sleep]
lggr has quit [Ping timeout: 240 seconds]
ARIZ has joined #ruby
diegoviola has joined #ruby
pingfloyd has quit [Read error: Connection reset by peer]
sagax has joined #ruby
pingfloyd has joined #ruby
s1n4 has joined #ruby
elsifaka has joined #ruby
kitofr_ has joined #ruby
kitofr has quit [Ping timeout: 264 seconds]
Morkel has joined #ruby
justinmcp has joined #ruby
djdb has joined #ruby
kitofr has joined #ruby
telling has joined #ruby
telling has quit [Changing host]
telling has joined #ruby
ARIZ has left #ruby [#ruby]
lggr has joined #ruby
kitofr_ has quit [Ping timeout: 244 seconds]
dhruvasagar has joined #ruby
aganov has joined #ruby
bigkevmcd has joined #ruby
c0rn_ has joined #ruby
justsee has quit [Quit: Leaving...]
eldariof has quit []
lggr has quit [Ping timeout: 240 seconds]
a_a_g has joined #ruby
a_a_g has quit [Read error: Connection reset by peer]
lchin has joined #ruby
hbpoison has quit [Ping timeout: 272 seconds]
bradhe_ has quit [Remote host closed the connection]
bradhe has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
a_a_g has joined #ruby
ph^ has joined #ruby
jprovazn_away is now known as jprovazn
lchin has quit [Ping timeout: 255 seconds]
gmci has quit [Quit: Computer has gone to sleep.]
banisterfiend` has joined #ruby
lggr has joined #ruby
idletom has quit [Ping timeout: 264 seconds]
urbann has joined #ruby
ar_ has joined #ruby
rutkla has quit [Read error: Connection reset by peer]
rutkla has joined #ruby
urbann has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 272 seconds]
rippa has joined #ruby
chendo has quit [Ping timeout: 240 seconds]
demian`_ has joined #ruby
chendo has joined #ruby
kitofr has quit [Ping timeout: 252 seconds]
savage- has joined #ruby
zigomir has joined #ruby
lggr has joined #ruby
k610 has joined #ruby
jenrzzz has joined #ruby
werdnativ has joined #ruby
chendo has quit [Ping timeout: 272 seconds]
beneggett has quit [Ping timeout: 240 seconds]
chendo has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
tagrudev has joined #ruby
bbttxu has joined #ruby
beneggett has joined #ruby
knightblader has quit [Quit: WeeChat 0.3.8]
cezar has joined #ruby
cezar has quit [Client Quit]
lggr has joined #ruby
arietis has joined #ruby
Hanmac1 is now known as Hanmac
nari has joined #ruby
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
jarred has quit [Quit: jarred]
Averna has joined #ruby
seoaqua has joined #ruby
fourcolors has joined #ruby
dr_bob has joined #ruby
<fourcolors> hi
<fourcolors> im creating a podcast feed with RSS
krz has quit [Quit: krz]
<fourcolors> and I ran into a problem when I created a class called "RssItem < RSS::Channel::Item"
imami|afk is now known as banseljaj
lggr has quit [Ping timeout: 240 seconds]
<fourcolors> for some reason, when it generates it's tags, it now generates them as "rssItem" vs "item"
<fourcolors> is there a way to override this
<banisterfiend`> fourcolors its*
<fourcolors> :/
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
hoelzro|away is now known as hoelzro
<fourcolors> so .. do you know how to do this?
<fourcolors> it's kind of frustrating
lggr has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
<bnagy> it probably uses self.class to decide the tag name
<fourcolors> well thats lame sauce
chimay has joined #ruby
chimay has quit [Changing host]
chimay has joined #ruby
eighty4 has joined #ruby
<bnagy> there doesn't appear to be any doc online, though, so it's not instantly obvious where that's done
c0rn_ has quit []
<zipkid> Does lame sause come in bottles or in jars?
<zipkid> Sauce even
<fourcolors> ya the RSS docs kind of stink
Eldariof18-ru has joined #ruby
<fourcolors> zipkid: jars
<bnagy> hm, like java, that's a bad sign
hemanth has joined #ruby
<zipkid> :-)
g_rotbart has quit [Remote host closed the connection]
tyfighter has quit [Quit: tyfighter]
lggr has quit [Ping timeout: 244 seconds]
<fourcolors> man this is annoy
chendo has quit []
<fourcolors> annoying
<fourcolors> one podcast item will show up in itunes but the other wont
<fourcolors> im sure it's something small.. always is
chendo has joined #ruby
lggr has joined #ruby
flype has joined #ruby
sspiff has joined #ruby
Yomero_ has quit [Ping timeout: 248 seconds]
lggr has quit [Ping timeout: 252 seconds]
LouisGB has joined #ruby
hbpoison has joined #ruby
mbk has joined #ruby
savage- has quit [Remote host closed the connection]
samg_ has joined #ruby
ngoldman has joined #ruby
<samg_> Hey Ruby people! I've been experimenting with concurrency with JRuby and puma, and I wrote a simple long-polling chat room. Would anyone be interested in helping me try it out?
Sou|cutter has quit [Read error: Connection reset by peer]
chendo has quit [Ping timeout: 252 seconds]
jenrzzz has quit [Ping timeout: 272 seconds]
trumpetmic has quit [Remote host closed the connection]
robbyoconnor has quit [Quit: Konversation terminated!]
statarb3 has joined #ruby
<dr_bob> What is a "long-polling chat room"?
chendo has joined #ruby
Iszak has joined #ruby
Iszak has quit [Changing host]
Iszak has joined #ruby
<hoelzro> dr_bob: a chat room implemented with a long-polling web client, I'd guess
<samg_> right
lggr has joined #ruby
<samg_> the idea is that threaded concurrency makes it cheap to wait for data
<Norrin> let's all use the unknown phrase in our definitions
<samg_> http://long-chat.herokuapp.com if you want to try it out
seoaqua has quit [Ping timeout: 240 seconds]
<ngoldman> lmgtfy
adambeynon has joined #ruby
ngoldman has quit [Remote host closed the connection]
chendo has quit [Client Quit]
haxrbyte has joined #ruby
moshee has quit [Ping timeout: 245 seconds]
moshee has joined #ruby
seoaqua has joined #ruby
robbyoconnor has joined #ruby
theRoUS_ has quit [Ping timeout: 260 seconds]
fourcolors has quit [Remote host closed the connection]
robbyoconnor has quit [Read error: Connection reset by peer]
yshh has quit [Remote host closed the connection]
yshh has joined #ruby
matthewrobbins has joined #ruby
robbyoconnor has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 264 seconds]
robbyoconnor has joined #ruby
seoaqua has quit [Quit: 离开]
yshh has quit [Remote host closed the connection]
lchin has joined #ruby
d3vic3 has joined #ruby
Catnaroek has joined #ruby
justinmcp has quit [Remote host closed the connection]
lggr has joined #ruby
hemanth has quit [Ping timeout: 272 seconds]
Catnaroek has quit [Client Quit]
jenrzzz has joined #ruby
theRoUS_ has joined #ruby
vectorshelve has joined #ruby
freeayu__ has joined #ruby
freeayu has quit [Read error: Connection reset by peer]
chendo has joined #ruby
pingfloyd has quit [Quit: pingfloyd]
mengu has joined #ruby
chrxn__ has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
sagax has quit [Quit: Ухожу я от вас]
nari has quit [Ping timeout: 268 seconds]
lggr has joined #ruby
robbyoconnor has quit [Ping timeout: 252 seconds]
robbyoconnor has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
r0bby has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
fir_ed has quit [Read error: Connection reset by peer]
xbayrockx has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
hemanth has joined #ruby
chussenot has joined #ruby
fir_ed has joined #ruby
lggr has joined #ruby
Xeago has joined #ruby
timonv has joined #ruby
elaptics`away is now known as elaptics
gilesw has joined #ruby
specialGuest has joined #ruby
dhruvasagar has quit [Quit: Lost terminal]
ephemerian has joined #ruby
dhruvasagar has joined #ruby
PragCypher has quit [Read error: Connection reset by peer]
tomask has joined #ruby
tomask has quit [Changing host]
tomask has joined #ruby
PragCypher has joined #ruby
xbayrockx has quit []
<hoelzro> is it common to do rescue without a begin in a method?
<hoelzro> ex: def foo ... rescue ... end?
pingfloyd has joined #ruby
<hoelzro> as opposed to doing def foo begin ... rescue ... end?
<hoelzro> I'm wondering if one is considered bad style
justinmcp has joined #ruby
dhruvasagar has quit [Client Quit]
lggr has quit [Ping timeout: 248 seconds]
<ryanf> I would consider it worse style to use begin ... end if it's wrapping the whole method anyway
<ryanf> unnecessary extra code is pretty much always bad style isn't it?
<hoelzro> maybe
<hoelzro> I would argue that it's more obvious what's going on
hbpoison has quit [Ping timeout: 248 seconds]
<hoelzro> but I'm willing to go with the style that's more accepted by the community
wataken44 has quit [Ping timeout: 260 seconds]
yasushi has joined #ruby
yasushi has quit [Remote host closed the connection]
<Xeago> I'd use begin..rescue if it is possible to return before getting into the begin block
Takehiro has quit [Remote host closed the connection]
<hoelzro> in my case, it is not
<hoelzro> a single statement is in the begin block
<Xeago> what's the statement
Averna has quit [Quit: Leaving.]
<hoelzro> the method is as follows:
<hoelzro> def step; @stepper.next rescue StopIteration @complete = true end
<hoelzro> with an extra end on the end
lggr has joined #ruby
<Xeago> are you implementing enumerable?
Papasean has joined #ruby
<Xeago> can you peek ahead, figure out if there is more?
<hoelzro> maybe
<hoelzro> however, that's a separate issue
<hoelzro> I'm curious for when I encounter this in the future
<Xeago> I'd rewrite the code
<hoelzro> I'm not implementing enumerable though
<hoelzro> I'm using an enumerator in my class
<Xeago> I follow this rule, a single line of code, should not introduce more then 2 lines of boilerplate
<hoelzro> and I'm wrapping it with pretty method names
maletor has joined #ruby
chrxn__ has quit [Ping timeout: 248 seconds]
pingfloyd has quit [Quit: pingfloyd]
lggr has quit [Ping timeout: 240 seconds]
Markvilla has joined #ruby
<bnagy> the syntax supports it, it's shorter, you should use it
Aaaarg has joined #ruby
<bnagy> it does occasionally surprise people, but so do toilet rolls that are on backwards
<Xeago> lol
lkba has quit [Quit: Bye]
<bnagy> you can't peek at the new enumerators, sadly, otherwise 1.8 style generators would be trivial
<bnagy> rescue stopiteration is the only way :(
<Xeago> :O, didn't know
yasushi has joined #ruby
baphled has joined #ruby
aganov has quit [Read error: Operation timed out]
justinmcp has quit [Remote host closed the connection]
aganov has joined #ruby
berserkr has joined #ruby
hemanth has quit [Ping timeout: 272 seconds]
yasushi has quit [Ping timeout: 245 seconds]
tagrudev has quit [Ping timeout: 268 seconds]
<Hanmac> bnagy ... 1.8 has enumerator too ...
mucker has joined #ruby
lggr has joined #ruby
<Xeago> Is this correct: "The priority within each cycle is as follows: improve the codebase, design and architecture; and second(ly): introduce new features or behavior."?
<bnagy> yeah but it used to have proper generaors, like a.next if a.next?
<Xeago> is it supposed to be second or secondly? The use of semicolons
<bnagy> Xeago: that's not how semicolons are used
ryanf has quit [Quit: leaving]
<bnagy> just remove the ; and : and it's more or less good to go
hemanth has joined #ruby
dhruvasagar has joined #ruby
<Xeago> oky, tyvm!
<bnagy> the second : not the first, first one is fine
Takehiro has joined #ruby
<bnagy> secondly btw
<Xeago> "The priority within each cycle is as follows: improve the codebase, design and architecture and secondly introduce new features or behavior."
<bnagy> yar
<Xeago> lovely
maletor has quit [Quit: Computer has gone to sleep.]
wallerdev has quit [Quit: wallerdev]
tomask has quit [Quit: Quit]
lggr has quit [Ping timeout: 240 seconds]
Jake232 has joined #ruby
justsee has quit [Quit: Leaving...]
mrdodo has quit [Remote host closed the connection]
tagrudev has joined #ruby
xorgnak has joined #ruby
lggr has joined #ruby
tvw has joined #ruby
r0bby_ has joined #ruby
r0bby_ has quit [Read error: Connection reset by peer]
Papasean has quit [Quit: Papasean]
bigkevmcd has quit [Remote host closed the connection]
r0bby has quit [Ping timeout: 260 seconds]
r0bby_ has joined #ruby
haxrbyte_ has joined #ruby
r0bby_ has quit [Read error: Connection reset by peer]
r0bby_ has joined #ruby
r0bby_ has quit [Read error: Connection reset by peer]
r0bby_ has joined #ruby
r0bby_ has quit [Client Quit]
haxrbyte has quit [Ping timeout: 272 seconds]
robbyoconnor has joined #ruby
mucker has quit [Ping timeout: 240 seconds]
fir_ed has quit [Quit: Leaving]
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
frogprince_mac has joined #ruby
bluOxigen has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
pskosinski has joined #ruby
matrixise has joined #ruby
lggr has joined #ruby
robbyoconnor has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
chussenot has quit [Remote host closed the connection]
chussenot has joined #ruby
flype has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
sagax has joined #ruby
keymone has joined #ruby
cascalheira has joined #ruby
Lokans has quit []
lggr has quit [Ping timeout: 244 seconds]
ltsstar has joined #ruby
pvh has quit [Quit: Connection closed for inactivity]
sandGorgon has joined #ruby
s1n4 has quit [Ping timeout: 240 seconds]
lggr has joined #ruby
s1n4 has joined #ruby
<sandGorgon> hi guys - I want to convert a 17 digit number into a bitstream, which I want to encrypt (using RC4) to an equal size bitstream and unpack back to a different 17 digit number. I'm unable to grok the unpack and pack syntax. anybody know how to do this ?
a_a_g1 has joined #ruby
a_a_g has quit [Read error: Connection reset by peer]
iocor has joined #ruby
lchin has quit [Remote host closed the connection]
ltsstar has quit [Ping timeout: 244 seconds]
<Hanmac> sandGorgon: you mean like this? [(10 ** 17)].pack("L") => "\x00\x00\x8A]"
<bnagy> uh
<bnagy> I think you might have lost some precision :)
lggr has quit [Ping timeout: 240 seconds]
<Hanmac> fu you are right
Dr4g has quit [Quit: Connection closed for inactivity]
cakehero has joined #ruby
<bnagy> if you want literally a bitstream you can [a_number.to_s(2)].pack('b*')
<bnagy> but it's not very efficient
frogprince_mac has quit [Ping timeout: 246 seconds]
ctevie has quit [Quit: Connection closed for inactivity]
<Hanmac> [(10 ** 17)].pack("Q").unpack("Q")=> [100000000000000000]
<bnagy> also rc4 is going to want padding
<bnagy> Hanmac: hm, not so great if you get above a 64 bit int though
c0rn_ has joined #ruby
lggr has joined #ruby
statarb3 has quit [Quit: Leaving]
<Hanmac> he sayd 17 digit number, so he should be lower than 64bit
arkiver has joined #ruby
<bnagy> very german specification design
pu22l3r_ has joined #ruby
<bnagy> but yeah 8 bytes.. rc4 is 64 bit blocksize, right?
<Hanmac> when 17 digit number > 64bit int, than the Math is broken and there is nothing i could do :P
_marvin_ has quit [Quit: Connection closed for inactivity]
<bnagy> yeah you should be able to get 19 digits or so I guess
jhowarth has quit [Quit: Connection closed for inactivity]
<bnagy> 18 to be safe, without bothering to actually work anything out
<banisterfiend`> bnagy hello ben
roflmaus has joined #ruby
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
frogprince_mac has joined #ruby
x0F_ is now known as x0F
lolmaus has quit [Ping timeout: 245 seconds]
pu22l3r has quit [Ping timeout: 268 seconds]
lggr has quit [Ping timeout: 240 seconds]
aquaranto has quit [Quit: Connection closed for inactivity]
cakehero has quit [Quit: Computer has gone to sleep.]
haxrbyte has joined #ruby
haxrbyte_ has quit [Ping timeout: 244 seconds]
qos has quit [Quit: Linkinus - http://linkinus.com]
garndt has quit [Quit: Connection closed for inactivity]
lggr has joined #ruby
mrdodo has joined #ruby
<sandGorgon> bnagy: I came up with "124890".split('').map(&:to_i).pack("c*").unpack("c*") - but the problem that happens is that if I pass it through RC4, and then unpack I get a result similar to [-83, -72, 54, -95, -45, 70], whereas I need the exact same length of output (single digit array). I think I need to packk and unpack in a correct format to get this to happen
<bnagy> sandGorgon: Hanmac's approach will work
<bnagy> for values up to 2**64 anyway
dekroning has joined #ruby
<bnagy> pack Q will be fixed length
roflmaus has quit [Ping timeout: 244 seconds]
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
<bnagy> you could also convert to binary, like I said, and pad left with '0'
lolmaus has joined #ruby
<bnagy> well you can do that with base10 as well if you want, but you will need to use to_i(10) otherwise it will think it's octal
ph^ has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 244 seconds]
Foxandxss has joined #ruby
BdeUtra has joined #ruby
jastix has quit [Ping timeout: 240 seconds]
deadghost has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
schaerli has joined #ruby
horrror has joined #ruby
<deadghost> what's a good book to get into ruby?
<Rydefalk> Programming Ruby
<deadghost> usually I'd just check stacko but my friend tells me ruby moves really fast so books get outdated
<Rydefalk> from the pragmatic programmers
freeayu__ has quit [Ping timeout: 255 seconds]
justinmcp has joined #ruby
<horrror> hey guys.. i got this weird " can't convert string into integer " that i can't work out
<horrror> It's basically on rails but it's pure ruby
freeayu has joined #ruby
<Hanmac> horrror what line is the error?
lggr has joined #ruby
niklasb has joined #ruby
<Hanmac> ithink this line  "   boy_age = Time.now.year - boy["birthday_date"][boy["birthday_date"].size, boy["birthday_date"]-4]" is shitty
<Hanmac> Integer - String does not make sense
<Hanmac> horror you could try it in this channel: #rubyonrails
Jake232 has quit [Quit: Computer has gone to sleep.]
<deadghost> anyhoo, I'm interested in ruby mostly for the scripting but figure I can probably pick up oop while I'm at it
kvirani has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
<Hanmac> deadghost do you have programming experimence? like C ++ or java?
<deadghost> halfway through k&r
F1skr has joined #ruby
<deadghost> and some php but that doesn't really count for much
hbpoison has joined #ruby
iocor has quit [Quit: Computer has gone to sleep.]
lggr has joined #ruby
ttt_ has joined #ruby
kreature has joined #ruby
<kreature> in firefox it's ok, but with chrome it hangs on the wait_until_present
<kreature> any idea why?
<kreature> I'm executing it against a selenium 2 grid
oposomme has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
sxsruo has joined #ruby
schaerli has quit [Remote host closed the connection]
schaerli has joined #ruby
<deadghost> it says it documents ruby 1.6
<deadghost> are the differences big enough for me to care?
<a_a_g1> horrror: try "boy_age = Time.now.year - boy["birthday_date"][-4:-1].to_i"
c0rn_ has quit []
a_a_g1 is now known as a_a_g
Targen has quit [Ping timeout: 260 seconds]
wuzzzzaah has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
lggr has joined #ruby
hbpoison has quit [Ping timeout: 245 seconds]
dekroning has quit [Ping timeout: 245 seconds]
lchin has joined #ruby
workmad3 has joined #ruby
gtuckerkellogg has joined #ruby
mroh has quit [Ping timeout: 252 seconds]
shiki has quit [Ping timeout: 246 seconds]
horrror has quit [Ping timeout: 272 seconds]
und3f has quit [Quit: Leaving.]
horrror has joined #ruby
<bnagy> wtf is [-4:-1]?
<Muz> A syntax error.
<Muz> ;)
lggr has quit [Ping timeout: 255 seconds]
lchin has quit [Ping timeout: 248 seconds]
workmad3 has quit [Ping timeout: 252 seconds]
schaerli has quit [Remote host closed the connection]
<samg_> messaged-passing concurrency > shared mutable state with locks
<bnagy> samg_: absolutely, that why all kernels do it that way
<bnagy> because it's universally better in every case
ttt_ has quit [Remote host closed the connection]
<samg_> I understood it in theory, but I just converted some code using mutexes to actor-style concurrency and performance is so much better
lggr has joined #ruby
<bnagy> oh sorry, I forgot the <sarcasm> tag, my bad
werdnativ has quit [Quit: werdnativ]
dekroning has joined #ruby
monkegji_ has joined #ruby
<deadghost> hmm well if a book on ruby 1.6 is too old, anyone have any more up to date suggestions?
asv has joined #ruby
monkegjinni has quit [Ping timeout: 244 seconds]
hbpoison has joined #ruby
<bnagy> if you mean dead tree, people speak well of The Ruby Programming Language and Eloquent Ruby
horrror has quit [Read error: Connection reset by peer]
Agis__ has joined #ruby
<bnagy> otherwise tryruby or whatever it is, ruby koans, or just read the docs
horrror has joined #ruby
lggr has quit [Ping timeout: 268 seconds]
timrom has joined #ruby
RJ3000_ has quit [Remote host closed the connection]
eins11 has joined #ruby
<eins11> hi guys
RJ3000_ has joined #ruby
<hoelzro> eins11: greetings!
tvw has quit [Remote host closed the connection]
kreature has quit [Quit: Leaving]
asv has quit [Quit: HydraIRC -> http://www.hydrairc.com <- Wibbly Wobbly IRC]
Takehiro has quit [Remote host closed the connection]
<horrror> i have a method that gets 2 arrays and retrieves a combined two-dimensional array. the problem is it does
lggr has joined #ruby
Zespre has quit [Ping timeout: 260 seconds]
<horrror> I use sample method to retrieve a specific element from an array. but it doesn't save its structure so i can't handle is it as an array
Beoran_ has quit [Ping timeout: 252 seconds]
<horrror> a = two_d.array.sample(1)
<horrror> a is not an array :o
monkegji_ has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
<Xeago> horrror: then waht is a
<Hanmac> a IS an array
<horrror> its not
<Hanmac> it IS
<Hanmac> horrror read the docs and the difference between sample and sample(1)
<Hanmac> [1,2].sample #=> 2
<Hanmac> [1,2].sample(1) #=> [2]
<Hanmac> [1,2].sample(2) #=> [2,1]
Takehiro has joined #ruby
cascalheira has quit [Remote host closed the connection]
<horrror> i used (1)
<hoelzro> >> puts 'hi'
<hoelzro> =(
<Xeago> how much memory does the bot need?
Zespre has joined #ruby
<Xeago> I got amazon credits spare, willing to run bot on it
<bnagy> eval bots suck, it was a horrible idea in the first place
<Hanmac> horrror so you see the difference when using sample with an parameter and without?
lggr has quit [Ping timeout: 246 seconds]
<hoelzro> bnagy: why do eval bots suck?
<Hanmac> bnagy no the bot is cool
Spooner has joined #ruby
<bnagy> hoelzro: because about 75% of the bot output on the channel was either a) spam or b) people trying to break the bot (see a)
charliesome has joined #ruby
<bnagy> or people trying 5 times to get the symtax they though was correct to work
ndrei has quit [Ping timeout: 240 seconds]
<hoelzro> bnagy: I suppose I see your point, but it's also nice to be able to demo things to people
<hoelzro> I feel like a) and b) will decrease over time
<bnagy> awww it's so cute when people have faith in people on irc
<Xeago> we could introduce frecency
<Xeago> and limit people with a low frecency
<bnagy> yeah or we could just paste from irb / pry
swingha has joined #ruby
pskosinski has quit [Quit: Great, little known futuristic FPS: http://ethernet.wasted.ch/]
lggr has joined #ruby
<horrror> how do i keep the array status when i run it through a method?
<horrror> def method(array, array2)
<horrror> just like that?
<hoelzro> you could have a bot blacklist, and blacklist people who abuse the bot.
<bnagy> yeah or we could just paste from irb / pry
<hoelzro> I don't know if that would be effective; just an idea
samg_ has quit [Quit: leaving]
frogprince_mac has quit [Quit: Leaving...]
<bnagy> horrror: arrays don't have 'statuses', maybe explain a little better
horrror has quit [Read error: Connection reset by peer]
<bnagy> you can definitely modify an array inside a method though
* Hanmac knows how to pastie in multiline mode: irb(main):001:0> [1,2].sample => 1 irb(main):002:0> [1,2].sample(1) => [2] irb(main):003:0> [1,2].sample(2) => [2, 1]
<bnagy> Hanmac: actually.. how _do_ you do that? :)
<Hanmac> bnagy does it show to you in multible lines?
Beoran_ has joined #ruby
dpk has joined #ruby
<Hanmac> or how does it looks to you?
<bnagy> no, was all on eone line
<Hanmac> :'(
jonathanwallace has quit [Remote host closed the connection]
haxrbyte_ has joined #ruby
<bnagy> what? That's a good thing
eikko has joined #ruby
<Hanmac> hm is the line broken with "\n" ? or a line without linebreaks?
<Xeago> a space
<Xeago> besides the space, no divider
lggr has quit [Ping timeout: 244 seconds]
<Hanmac> damit :(
<Xeago> I think it gets stripped in the application transit layer
haxrbyte has quit [Ping timeout: 252 seconds]
pskosinski has joined #ruby
kaushik_ has joined #ruby
Takehiro has quit [Remote host closed the connection]
arkiver has quit [Quit: Leaving]
bigkevmcd has joined #ruby
yasushi has joined #ruby
yasushi has quit [Read error: Connection reset by peer]
yasushi_ has joined #ruby
wedgeV has quit [Remote host closed the connection]
ZachBeta has joined #ruby
xpen_ has quit [Remote host closed the connection]
oposomme is now known as oposomme|away
Takehiro has joined #ruby
larissa has joined #ruby
hbpoison has quit [Ping timeout: 244 seconds]
ABK has joined #ruby
horrror has joined #ruby
lggr has joined #ruby
horrror has quit [Read error: Connection reset by peer]
horrror_ has joined #ruby
<horrror_> Hanmac: i tried both
<horrror_> did not work
<horrror_> outside the method i get array using sample(1). but when I try to get the array inside my method
<horrror_> it does not behave like an array
<Xeago> horrror_: what's the reason for assigning to male_in to male
<Hanmac> you mean it still makes a typeerror?
<Xeago> you just copy the reference
freeayu has quit [Read error: Connection reset by peer]
<Hanmac> horrror_ why do you want sample(1) ? have you tryed sample without the 1?
<Hanmac> horrror_ and you may still have a typeerror on this line:     boy_age = Time.now.year - boy["birthday_date"][boy["birthday_date"].size, boy["birthday_date"]-4]
workmad3 has joined #ruby
NiteRain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
horrror_ has quit [Ping timeout: 264 seconds]
josh^ has quit [Remote host closed the connection]
cascalheir has joined #ruby
theRoUS_ has quit [Ping timeout: 260 seconds]
lggr has quit [Ping timeout: 248 seconds]
<bnagy> plus that's a horrible way to calculate age
Takehiro has quit [Remote host closed the connection]
<zipkid> and what about the gender-agnostic?
lggr has joined #ruby
S1kx has joined #ruby
S1kx has joined #ruby
S1kx has quit [Changing host]
Takehiro has joined #ruby
<bnagy> something like (DateTime.now - DateTime.parse( birthday )).divmod(365.25).first
<bnagy> although it's not quite accurate
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Takehiro has quit [Remote host closed the connection]
<Xeago> bnagy: why not just subtract the date from now?
S1kx has quit [Read error: Connection reset by peer]
<Hanmac> Xeago than you get the count in days
<bnagy> you could use Date instead of DateTime, sure
nanderoo has joined #ruby
<Xeago> hmm, isn't there a timespan class in ruby?
jonathanwallace has joined #ruby
<bnagy> depends what format the birthday string is in as to what will parse
<bnagy> there's lots of crap in activesupport
oposomme|away has quit [Quit: Leaving...]
<Hanmac> Xeago, not build in, but you are right, some kind of TimeSpan should be in the DateTime "package"
S1kx has joined #ruby
joofsh has joined #ruby
mark_locklear has joined #ruby
<bnagy> actually DateTime - DateTime already returns a Rational for some reason
keymone has quit [Quit: keymone]
lggr has quit [Ping timeout: 240 seconds]
<bnagy> could just make it return a TimeSpan with #days #months #seconds etc
<bnagy> the fact that it's a rational and not a float is kind of awesome
verto|off is now known as verto
<Hanmac> make a ticket request :P
freeayu has joined #ruby
monkegjinni has quit [Ping timeout: 268 seconds]
ncamargo is now known as BIGX333
teriyaki has joined #ruby
RJ3000_ has quit [Remote host closed the connection]
lggr has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Zespre has quit [Remote host closed the connection]
PragCypher has quit [Remote host closed the connection]
RJ3000_ has joined #ruby
duard has joined #ruby
duard has quit [Changing host]
duard has joined #ruby
nwest has joined #ruby
monkegjinni has joined #ruby
locriani has quit [Remote host closed the connection]
gtuckerkellogg has quit [Ping timeout: 240 seconds]
AlbireoX has joined #ruby
theRoUS has joined #ruby
Takehiro has joined #ruby
ctevie has joined #ruby
ctevie has quit [Changing host]
ctevie has joined #ruby
jonatha__ has joined #ruby
Guest64548 has joined #ruby
S1kx has quit [Ping timeout: 246 seconds]
justinmcp has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 252 seconds]
jonathanwallace has quit [Ping timeout: 264 seconds]
gmci has joined #ruby
mucker has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
krawchyk has joined #ruby
wobr has joined #ruby
IrishGringo has joined #ruby
techsurvivor has quit [Ping timeout: 244 seconds]
lggr has joined #ruby
lucianosousa has joined #ruby
invisime has joined #ruby
invisime has left #ruby [#ruby]
invisime has joined #ruby
<invisime> for those that care, I'm going to try to get al2o3cr up and running this evening.
thunderstrike has quit [Ping timeout: 268 seconds]
<Hanmac> YEAH
<kalleth> i dont even know what it is
* kalleth googles
<kalleth> 'ruby interpreting irc bot'
<kalleth> ok
<kalleth> :)
vectorshelve has quit [Quit: Page closed]
RJ3000_ has quit [Remote host closed the connection]
<shevy> invisime are you the author
<invisime> shevy: no, it's by jrarav.
RJ3000_ has joined #ruby
<Xeago> shevy: no, but the author give him instructions on how to set it up
<invisime> but he can't host it anymore.
<Xeago> and secure it
<Xeago> invisime: you going to run it virtualized?
<invisime> I'm looking into making the installation a script that will work on any linux system. or, at least on most linux systems?
<kalleth> vagrant it
<invisime> Xeago: probably just chrooted.
<shevy> ah
<kalleth> i'd probably try and vagrant it
<kalleth> honestly
<kalleth> wouldnt want any irc bot anywhere near my actual machine
<shevy> hehe
lggr has quit [Ping timeout: 248 seconds]
thatRD has joined #ruby
thatRD has quit [Client Quit]
oposomme has joined #ruby
<invisime> well, everything in the chroot directory will be owned by root and set to mode 755. also, after installation, I'll remove the sudo binary from the chroot's bin directory so that from within it, you can't get root permissions.
mucker has quit [Ping timeout: 244 seconds]
thatRD has joined #ruby
<Xeago> vagrant would be nice tbh
lggr has joined #ruby
<invisime> then, outside the chroot, I'll monitor the entire thing and wipe/reinstall it daily or whenever the fs fills up.
<kalleth> i'm supposed to learn how vagrant works son
<kalleth> *soon
<kalleth> also
<kalleth> simple question
<Xeago> kalleth: it manages vm's ran locally
<Xeago> s/ran/running
<zipkid> Vagrant++++++++++
<invisime> mk. I'll look into vagrant this evening.
Trudko has joined #ruby
<kalleth> i have a loop thorugh some AR objects
<kalleth> and from within that .each loop i want to obtain an element from a 4 element hash
dhruvasagar has quit [Ping timeout: 260 seconds]
<kalleth> so i want to do h[0] h[1] h[2] h[3]
<kalleth> repeating
<Trudko> hi guys I know you are biased but could you recomend good article with Ruby criticism
<kalleth> so i need to figure out how to do a sequence of 0 1 2 3 0 1 2 3 0 1 2 3 0 1 2 3
<kalleth> from within a generic each
vitoravelino has quit [Remote host closed the connection]
<kalleth> anyone got any 1liners? :)
<hoelzro> kalleth: cycle?
<kalleth> cycle?
<zipkid> invisime: and if you set it up with a puppet recepie (or chef) you can just # vagrant destroy; vagrant up to start cleanly again.
gautamc has quit [Read error: Connection reset by peer]
<hoelzro> Array.cycle
<kalleth> oh you beauty
vitoravelino`afk has joined #ruby
Markvilla has quit [Quit: Computer has gone to sleep.]
<invisime> zipkid: sounds ideal. and yeah, I was planning on writing a bash or .rb script to do most of the deployment. it seems like the biggest thing I could contribute to al2o3cr at the moment. do you know what the puppet recipes are written in?
<zipkid> invisime: puppet DSL
<zipkid> invisime: puppet supports gems as package source.
wataken44 has joined #ruby
gautamc has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
tommyvyo has joined #ruby
<invisime> I'm wary of adding too many new technology pieces just this evening. I want to get it up and running in a safe way. if I have time to script it as well, that's a bonus.
<kalleth> Hanmac: holy shit, how did i not know this before
<kalleth> /cc hoelzro
billyoc has joined #ruby
ctp_ has joined #ruby
ctp- has joined #ruby
<Xeago> invisime: the getting started is very easy to read, it'll probably take longer downloading ubuntu than figuring out what to do :) http://vagrantup.com/v1/docs/getting-started/
<Hanmac> kalleth not call to_a or reverse or sort other methods that return an array on cycle or you would pay for that :P
ctp has quit [Read error: Operation timed out]
<Hanmac> Xeago you may not need an VM ... an chroot may be fine too ...
<Xeago> Hanmac: VM is easier to maintain
<Xeago> and limit
lggr has joined #ruby
beachandbytes has quit [Ping timeout: 260 seconds]
ctp_ has quit [Ping timeout: 245 seconds]
justinmcp has joined #ruby
oposomme is now known as oposomme|away
beachandbytes has joined #ruby
justinmcp has quit [Remote host closed the connection]
luckyruby has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
ph^ has joined #ruby
Dreamer3 has quit [Quit: Computer has gone to sleep.]
carloslopes has joined #ruby
Criztian has joined #ruby
<invisime> Xeago: it seems like chroot might be more portable though. if/when I can't host it, it'd be nice if the next guy could get it up and running by just running a git clone and a ./install.
lggr has quit [Ping timeout: 264 seconds]
austinbv has joined #ruby
<Xeago> git clone and a vagrant up
jimeh has joined #ruby
<Xeago> I don't have experience with chroot'ed environment, only with virtualized env's
ndrei has joined #ruby
spopescu has joined #ruby
<invisime> Xeago: maybe git clone, bundle install, vagrant up.
spopescu has left #ruby [#ruby]
Takehiro has quit [Read error: Connection reset by peer]
<Xeago> same idea, yes
mucker has joined #ruby
lggr has joined #ruby
<Xeago> how much memory should the bot have?
oposomme|away is now known as oposomme
Takehiro has joined #ruby
zodiak has joined #ruby
<invisime> Xeago: the bot isn't going to have much. but the processes it spawns are resource-limited in the source code. (which is available here: https://github.com/jrajav/al2o3cr/blob/master/bot.rb )
RJ3000_ has quit [Remote host closed the connection]
<invisime> Xeago: so it's currently not memory limited. but I believe a limit could be added on line 24.
<Xeago> okay
GoGoGarrett has joined #ruby
Markvilla has joined #ruby
jbw_ has quit [Ping timeout: 260 seconds]
oposomme has quit [Ping timeout: 264 seconds]
chimay has quit [Ping timeout: 264 seconds]
lggr has quit [Ping timeout: 255 seconds]
roadt has quit [Read error: Connection timed out]
roadt has joined #ruby
RJ3000_ has joined #ruby
thunderstrike has joined #ruby
jastix has joined #ruby
nga4 has joined #ruby
gtuckerkellogg has joined #ruby
lggr has joined #ruby
robustus has joined #ruby
jbw_ has joined #ruby
diegoviola has quit [Ping timeout: 246 seconds]
flype has joined #ruby
<shevy> hmmm
<shevy> +350 people on #python :(
philips_ has quit [Excess Flood]
<rking> shevy: Meaning what?
<Xeago> we're superior
nanderoo has quit [Ping timeout: 252 seconds]
philips_ has joined #ruby
<zipkid> or ruby needs more support :-)
bbttxu has quit [Quit: bbttxu]
<shevy> rking the snakes outnumber us :(
<shevy> even #perl is at 644 right now
<zipkid> shevy: outnumber? 15:07 -!- Irssi: #ruby: Total of 623 nicks
<shevy> yeah
<Xeago> but
<Xeago> they have the bot active :<
timrom has quit [Ping timeout: 268 seconds]
lggr has quit [Ping timeout: 268 seconds]
machty has quit [Quit: machty]
monkegjinni has quit [Remote host closed the connection]
thunderstrike has quit [Remote host closed the connection]
<Hanmac> shevy you said the ecact user number and 5 users goes away :P
shiki has joined #ruby
<shevy> yeah
<shevy> perl spies
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<Xeago> rofl, it's a conspiracy
* hoelzro looks around with shifty eyes
<Xeago> see! another one!
bbttxu has joined #ruby
topriddy_ has joined #ruby
<topriddy_> hello. where can i find a ruby on rails room please?
<invisime> Xeago: I'll work on it tonight. sheesh!
<Xeago> #rails
<Xeago> invisime: no worries, but a bot would help usercount :D
<bnagy> #rubyonrails also
<bnagy> no idea which one sucks less
troessner has joined #ruby
lggr has joined #ruby
ryannielson has joined #ruby
<topriddy_> i dont know if anyone has enough time to guide/point me to relevant instructions on setting both ruby/ruby on rails on my mac. i am java developer who wants to quickstart an hello-word app to wet interest
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<hoelzro> topriddy_: you probably have both Ruby and Rails on your Mac already
<hoelzro> however
Jake232 has joined #ruby
<Spooner> topriddy_ : You have ruby 1.8.7 (old version) already on your mac.
<hoelzro> they are probably quite outdated =(
<Spooner> Which is fine for just fiddling if you aren't commited.
<topriddy_> also, advise on ide/text editor. (intellisense a must). currently have TextWrangler. TextMate is not free
<topriddy_> Spooner: how do i upgrade?
<Xeago> topriddy_: tm2 is good, it fullfills my needs
<Xeago> else vim with plugins
<Spooner> You can use something like rvm to install another version of Ruby.
<Xeago> or rbenv
ABK has quit [Ping timeout: 248 seconds]
<topriddy_> Xeago: tm2 is free?
<Xeago> opensource on github
xpen has joined #ruby
<topriddy_> Xeago: yeah saw the article, didnt understand how it is both free and a sale app. would i have to build source then?
<Xeago> nope
<Xeago> go to downloads at github
<Xeago> tm1 is proprietary
ffranz has joined #ruby
yasushi_ has quit [Remote host closed the connection]
<topriddy_> ...article on ruby/rails on mac is outdated: http://pragmaticstudio.com/blog/2010/9/23/install-rails-ruby-mac. Ruby 1.9 mentioned there
<Spooner> Things can be open source and yet not be free. Like beer (although that isn't the case here).
<Spooner> topriddy_ : Isn't too old. Is suggesting you use 1.9.3 (current version you should be using).
s1n4 has quit [Quit: leaving]
<shevy> I want a closed source beer
<Spooner> There are plenty of closed source beers. Only homebrew will be opensource, but you have to compile it yourself.
<Spooner> Using the Yeast compiler, of course.
<topriddy_> Spooner: you on a mac box too? i dont have rvm on mine. [whispers due to work, have not had enough hrs on mac/*nix personal system]
<billyoc> A micros~1 brew.
asdfqwer has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
<Spooner> I'm not on a mac, but I use RVM when I'm on Linux. That article shows how to install 1.9.3 via RVM. Should just sort you out.
<topriddy_> okay. thanks men
minijupe has joined #ruby
<Spooner> Consider something like Sinatra too, rather than Rails. Much more lightweight if you don't need to build a cyclopean webapp ;)
monkegjinni has joined #ruby
lggr has joined #ruby
<topriddy_> Spooner: saw some news on SInatra. Do i get some glues with that too?
<topriddy_> orm, etc
<Kudos> Yeah, i skipped Rails and just used Sinatra for my first ruby app. Could not be arsed learning all the magic that goes into Rails.
lchin has joined #ruby
<Spooner> Yeah, you can still hook into databases in nice ways (see datamapper, activerecord, etc).
RJ3000_ has quit [Remote host closed the connection]
TomJ has joined #ruby
TomJ has quit [Changing host]
TomJ has joined #ruby
<Spooner> Kudos : Yeah, I imagine that is a lot easier, especially if you are just learning Ruby at the same time.
fantazo has joined #ruby
<Kudos> I did the same thing when learning python, skipped Django and went straight for Flask.
yshh has joined #ruby
timrom has joined #ruby
<Kudos> There are good reasons for using opinionated frameworks in teams, if it's just you then it's nice to make those decisions yourself
JustinCampbell has joined #ruby
jrist-afk is now known as jrist
<Kudos> It seems to me that you learn more about the ecosystem than just how that framework works.
RJ3000_ has joined #ruby
rutkla has quit [Ping timeout: 244 seconds]
lggr has quit [Ping timeout: 246 seconds]
sepp2k has joined #ruby
johnlcox has joined #ruby
topriddy_ has quit [Ping timeout: 245 seconds]
xpen_ has joined #ruby
lggr has joined #ruby
cakehero has joined #ruby
evilsushi has joined #ruby
evilsushi has joined #ruby
evilsushi has quit [Changing host]
xpen has quit [Ping timeout: 248 seconds]
timrom has quit [Ping timeout: 256 seconds]
timrom_ has joined #ruby
<Trudko> hi guys I know you are biased but could you recomend good article with Ruby criticism
johnjohnson has joined #ruby
<nga4> that seems open ended, what problem are you trying to solve?
<Spooner> It is very slow. The GC is terrible for real-time apps. Anything more, it really depends on the application it is being used for.
ph^ has quit [Remote host closed the connection]
<Xeago> Spooner?
<Spooner> Hmm?
<Xeago> what is very slow?
lggr has quit [Ping timeout: 252 seconds]
<Jake232> Xeago: Ruby is
<bnagy> yarv
<Trudko> Rydefalk: Yeah interesting
TommyBotten has quit [Ping timeout: 276 seconds]
mercwithamouth has quit [Ping timeout: 245 seconds]
Axsuul has quit [Ping timeout: 272 seconds]
vitoravelino`afk is now known as vitoravelino
<Spooner> Ruby. I was pointing out the very general flaws. Question is rather general, since Ruby is good at what Ruby is good at and bad at the things it is bad at.
ctp- has quit [Ping timeout: 244 seconds]
rippa has quit [Ping timeout: 244 seconds]
evilsushi has quit [Client Quit]
freeayu has quit [Remote host closed the connection]
vitoravelino has quit [Changing host]
vitoravelino has joined #ruby
<bnagy> I don't think 2003 issues are very relevant
evilsushi has joined #ruby
evilsushi has quit [Changing host]
evilsushi has joined #ruby
cantonic_ has joined #ruby
<Spooner> Yeah, though it is still slow, complex, surprising and inconsistent.
mercwithamouth has joined #ruby
austinbv has quit [Ping timeout: 252 seconds]
uris has joined #ruby
kaushik_ has quit [Ping timeout: 272 seconds]
cody-- has joined #ruby
<Spooner> And although we have native threads, we still have a thread lock. Pity he gave up on Ruby2 not just being an iteration.
<shevy> !
<Spooner> I suppose Rite became YARV though. I'll shut up now ;)
<banisterfiend`> Spooner ruby2 has a tonne of cool stuff
topriddy has joined #ruby
lggr has joined #ruby
<banisterfiend`> Spooner also, getting rid of the GIL would be a pain i think and probabl result in more buggy code
cantonic has quit [Ping timeout: 260 seconds]
cantonic_ is now known as cantonic
<Spooner> As far as I'm aware, the change to hash syntax in 1.9 is the only incompatibility we hae seen to make it better overall (which also produced the change in case syntax as a byproduct).
cascalheir is now known as cascalheira
xclite has joined #ruby
stopbit has joined #ruby
<Spooner> Oh, I suppose the 1.9 encoding stuff could be counted as that. Mostly breaking things to make them a bit better.
ananthakumaran has quit [Quit: Leaving.]
ctp has joined #ruby
machty has joined #ruby
answer_42 has joined #ruby
notwen has quit [Read error: Connection reset by peer]
<Spooner> I also haven't looked at 2.0 directly, so maybe there is a lot more in there than early previews showed.
notwen has joined #ruby
<Hanmac> shevy it would be cool when Enumerators has some information about finite?/infinite? and rewindable?
wedgeV has joined #ruby
ctp has quit [Client Quit]
sagax has quit [Quit: Ухожу я от вас]
<shevy> the encoding change only makes it better for those who need it
<Spooner> Same with hashes. Some people still love rocketships!
internet_user has joined #ruby
hasse has joined #ruby
lggr has quit [Ping timeout: 255 seconds]
JohnBat26 has joined #ruby
<shevy> syntax change such as removing ':' in case/when, introduction of -> and require_relative, and the new hash syntax are actually quite minor. you change it once, then things are nice. the Encoding change however will haunt people forever. they have no other joice, scripts that perfectly worked before no longer worked due to Encoding alone, unless one either conforms to UTF or something like "# Encoding: ASCII-
<shevy> 8BIT"
<Trudko> eventhough with some thing it is easy to dissagre
<shevy> *choice
<shevy> I think I was thinking about juice :(
BIGX333 has quit [Remote host closed the connection]
<shevy> someone get me some juice so I can choose when I have no other choice
a_a_g has quit [Quit: Leaving.]
ncamargo has joined #ruby
sandGorgon has quit [Ping timeout: 245 seconds]
<shevy> ahh the english language... perhaps I should read Shakespeare
<shevy> Trudko many of the items raised there are quite useless
sailias has joined #ruby
<shevy> ruby classes can be extended
piotr__ has joined #ruby
<shevy> and the version complaints are also silly... at least the most-up-to-date version of a language should be compared
<shevy> who uses PHP 1 for instance!!!
<shevy> though
<Xeago> I have vm's I can boot that would run php1
<shevy> I would remove @@class_vars
<shevy> Xeago you really have code that works with php1?
lggr has joined #ruby
theRoUS_ has joined #ruby
techsurvivor has joined #ruby
swingha has quit [Quit: WeeChat 0.3.8]
ncamargo is now known as BIGX333
xpen_ has quit [Ping timeout: 264 seconds]
<Spooner> Trudko : A lot of stuff there is not true for 1.9.2+ and or is very out of date. Lots is true though ;)
awarner has joined #ruby
<shevy> I still have a file called std.php - I used this to require other php things I needed
<shevy> almost 10 years ago
wuzzzzaah has quit [Ping timeout: 246 seconds]
<Hanmac> shevy what about as @@@ for class instance variables? XD
<Trudko> Spooner: heh , thx for input I was just talking with friend about how PHP is bad and I was courious if ruby had same amount of problems
<shevy> Hanmac no, one @ should be the maximum allowed
<Xeago> yup, besides the db it connected to I have everything for running php1
<Trudko> I have little exp with ruby so thats why I asked here
<shevy> Trudko, ruby is more consistent in itself than PHP is
<Trudko> I mean all languages has it flaws
<Hanmac> " Redundant operators: ||/or, &&/and, !/not. " this is not true because "||" is not the same as "or"
<Trudko> shevy: yeah but what language is not ? :D
<shevy> Trudko: PHP
<shevy> :)
cody-- has quit [Remote host closed the connection]
<Spooner> Best one is "Mutable strings in a dynamic language! This means e.g. when a string is passed to a setter it should copy the string so the object can be sure that it won't change unexpectedly." - er, no.
<shevy> a java guy must have written that
cody-- has joined #ruby
<Hanmac> " Regular expressions magically assign variables: $1, $2, ... " ... yeah i hate this $1-$9 variables too ...
cody-- has quit [Remote host closed the connection]
gfontenot has joined #ruby
<shevy> they are quite simple
wmoxam_ has joined #ruby
wuzzzzaah has joined #ruby
<Spooner> "Suffix-conditions after whole blocks of code, e.g. begin ... rescue ... end if expr You are guaranteed to miss the if expr if there are a lot of lines in the code block." - that is very bad style, but has to be allowed, since all code is an expression. Hardly fault of the language itself!
<shevy> "abc def" =~ / (\w+)/; $1 # => "def"
troessner has quit [Ping timeout: 244 seconds]
<shevy> Hanmac, can you make it shorter without using $1?
<Spooner> "`` syntax with string interpolation for running sub processes. This makes shell injection attacks easy." = that is even funny.
<shevy> hehe
<shevy> shell injection attacks
Xethron has joined #ruby
wobr has quit [Quit: Leaving.]
<shevy> I suppose I should never use system() again... because of my code being vulnerable to shell injection attacks
<Spooner> shevy : / (\w+)/.match("abc def")[1]
nacengineer has quit [Quit: Leaving.]
<Spooner> Barely longer.
<Spooner> That said, I should use $1-9 less ;(
<Mon_Ouie> "abc def"[/ (\w+)/, 1]
tomaw has quit [Ping timeout: 604 seconds]
beachandbytes has quit [Ping timeout: 260 seconds]
lggr has quit [Ping timeout: 264 seconds]
<shevy> oh cool
<Hanmac> shevy: /(?<name>\d+)|/ =~ "123|";name
<shevy> that one is even shorter
<shevy> no thanks
<Spooner> Though that all fits in with the complaint that there are too many ways to do one thing in Ruby ;(
<shevy> I am going to pick Mon_Ouie's as the winner... your code scares me Hanmac
<Mon_Ouie> ^ I hate dislike magical variables even more
jrist is now known as jrist-afk
<Mon_Ouie> Because you have to actually read the regexps to understand where they come from
topriddy_ has joined #ruby
pricees has joined #ruby
<shevy> Hanmac, why is your code always so ... strange :(
<Mon_Ouie> $1, etc. always come from there, making it more obvious
<Hanmac> shevy you could try my line in a case
<shevy> Spooner, yeah, for a long time I did not know about MatchData. I think in some ways, matz tried to make ruby seem familiar to people who used other languages
<shevy> especially perl
troessner has joined #ruby
lggr has joined #ruby
Rochefort has joined #ruby
<Spooner> Absolutely, but shame that stuff like the English library (require 'english') isn't more standard if you don't want to commit perlification.
<shevy> yeah
<Hanmac> shevy look at this: http://pastebin.com/04STusYq
<shevy> perl seems to follow the old hacker philosophy much more so than ruby... write once and be done with it... and then don't look at it again ever
thunderstrike has joined #ruby
<shevy> my case when structures are simple
<shevy> I dont want your strange things in them Hanmac :P
<shevy> when /(?<name>\d+)|/
Takehiro has quit [Remote host closed the connection]
<Hanmac> but with this you dont need any form of $shit
lolmaus has quit []
berserkr has quit [Quit: Leaving.]
heisenmink has joined #ruby
<Spooner> Interestingly, Objective-C sucks because it is based on Smalltalk, but Ruby doesn't suck for that reason ;)
tomaw_ has joined #ruby
<heisenmink> Objective C has a very weird syntax
<Xeago> atleast objc is fast..
<Spooner> It isn't how fast your code is, xeago, but what you do with it ;)
aristidesfl has joined #ruby
kvirani has quit [Remote host closed the connection]
notVert has joined #ruby
<shevy> if ruby were as fast as objc ...
lggr has quit [Ping timeout: 246 seconds]
yasushi has joined #ruby
<Mon_Ouie> Part of the aliases in require 'English' (capital E, btw) are available in core luckily
eikko has quit [Ping timeout: 245 seconds]
<banisterfiend`> Mon_Ouie do u wish there was require 'francais'
<Spooner> Mon_Ouie : This is a different library? pry(main)> require 'english' => true
<Mon_Ouie> And I think ObjC looks cool — except when people decide to use crazy long method names
<banisterfiend`> Mon_Ouie then u could go: le puts "ooh lala"
luckyruby has quit [Remote host closed the connection]
<Mon_Ouie> Spooner: Never forget you're running an an FS that's not case-sensitive ;)
<Spooner> Oh, I'm on Windows. Oops. English, english, smenglish.
<Hanmac> http://wiki.theory.org/YourLanguageSucks#PHP_sucks_because: " ++ and -- cannot be applied to booleans " oO why should someone call ++ on true or false? oO
yasushi_ has joined #ruby
<Spooner> Because you can in C.
yasushi has quit [Read error: Connection reset by peer]
<Mon_Ouie> banisterfiend`: Hm… no?
<wmoxam_> C doesn't have booleans
tomaw_ is now known as tomaw
kpshek has joined #ruby
<Spooner> But yeah, that is about the least reason why anyone should hate PHP!
<banisterfiend`> Mon_Ouie: wouldn't it be cool if you could go `le (1..10).euuf { |v| comci puts v } && voila!`
<banisterfiend`> hm i guess u can
<Spooner> wmoxam : C99, I think, has TRUE/FALSE defined as 1/0, and it is common practice to use those definitions in other versions too (manually or with stdbool library).
bbttxu has quit [Quit: bbttxu]
<Mon_Ouie> Two of those words… don't even look anything like to French.
sebastianb has quit [Read error: Connection reset by peer]
nari has joined #ruby
<wmoxam_> aka: there is no boolean type
<wmoxam_> Spooner: yeah, they're integers
Takehiro has joined #ruby
workmad3 has joined #ruby
bananagram has joined #ruby
<Spooner> So you can use ++ and -- with them.
ohcibi has joined #ruby
<Spooner> I was trying to work out why that PHP comment made some sense, even if it made no sense.
mbk has quit [Read error: Operation timed out]
indian has quit [Ping timeout: 252 seconds]
jonatha__ has quit [Remote host closed the connection]
ohcibi has quit [Quit: No Ping reply in 180 seconds.]
Paradox has quit [Ping timeout: 246 seconds]
jasonkuhrt has joined #ruby
chimay has joined #ruby
SirFunk_ has quit [Ping timeout: 246 seconds]
<Xeago> how do you call the phase after you get employed by a company and finding your way around things
Paradox has joined #ruby
yalue has joined #ruby
<JustinCampbell> breaking stuff
<JustinCampbell> training, learning
<Spooner> Flagellation?
<Muz> Hazing?
<Muz> Orientation? Induction?
JStoker has quit [Excess Flood]
lggr has joined #ruby
<canton7> orientation?
gtuckerkellogg has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
shiki has quit [Remote host closed the connection]
<Xeago> Spooner, wot!?
<JustinCampbell> or as an excited and naive programmer, probably fixing stuff
<Spooner> I have no idea. They were making little sense either.
SirFunk has joined #ruby
nacengineer has joined #ruby
<kalleth> i call it the adjustment period, Xeago
yasushi_ has quit [Remote host closed the connection]
chimay has quit [Client Quit]
sebastianb has joined #ruby
topriddy__ has joined #ruby
topriddy__ has quit [Read error: Connection reset by peer]
yasushi has joined #ruby
jgrevich has joined #ruby
topriddy_ has quit [Read error: Connection reset by peer]
pricees_ has joined #ruby
<wmoxam_> lol, http://wiki.theory.org/YourLanguageSucks is ridiculous
<wmoxam_> Objective-C sucks because "Supports 'goto'"
<wmoxam_> lol
chimay has joined #ruby
tagrudev has quit [Remote host closed the connection]
<wmoxam_> (C# too)
<banisterfiend`> doesn't C support goto?
<wmoxam_> banisterfiend`: yeah, but apparently that's not a reason that C sucks according to that page
<wmoxam_> (C++ too)
bwlang has joined #ruby
paulovittor23 has joined #ruby
JStoker has joined #ruby
<wmoxam_> Ruby sucks because String#downcase instead of String#lowercase
<wmoxam_> lol
mmitchell has joined #ruby
yasushi has quit [Ping timeout: 240 seconds]
JStoker has quit [Excess Flood]
<wmoxam_> "Redundant operators: ||/or, &&/and, !/not" <-- someone doesn't know Ruby very well
<Spooner> That is not entirely unreasonable (though I'd argue that it should be #to_lower_case).
minijupe has quit [Quit: minijupe]
<Hanmac> wmoxam_ ruby can support goto too but no one activate this "bug"
lggr has quit [Ping timeout: 256 seconds]
Xethron has quit [Quit: <?php echo $nick ." has quit ". $server; ?>]
<Spooner> Hanmac : Using throw/catch?
<wmoxam_> Hanmac: yeah, I'd kinda like it myself
<wmoxam_> I wish it were turned on by default
<Hanmac> http://codepad.org/mQ92uSLH << oO codepad is very outdated :'(
<asteve> which minor revision would you recommend for 1.9.3?
<asteve> or patch level, rather
lggr has joined #ruby
<Spooner> 1.9.3p194 is latest and stable.
<shevy> asteve ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.bz2
<troessner> i don't think that goto is bad. I'd rather go with linus torvalds: https://blogs.oracle.com/oswald/entry/is_goto_the_root_of
<asteve> p194 latest and stable, no known issues?
<shevy> pffft are you a man or a mouse
<shevy> you could use ruby 1.8.x :)
<shevy> ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p358.tar.bz2
TommyBotten has joined #ruby
<Spooner> Why on earth are you linking source tarballs?
<shevy> btw asteve earlier ruby versions have their own issues... I think either 1.9.2 or 1.9.1 was particularly annoying
<shevy> real men use the source
<Hanmac> shevy let him use 1.8.6 or lower :D
<shevy> chickens use debian
topriddy_ has joined #ruby
<asteve> shevy: I'm upgrading from 1.9.2 because of it's many, many, many issues :)
<Spooner> 1.9.1 was messy. 1.9.2 is really slow to load large applications requiring a lot of files, but otherwise fine.
<shevy> hehe
<asteve> we have massive memory bloat that I hope 1.9.3 will resolve
<Spooner> I think that is just Ruby ;)
<shevy> :(
Trudko has left #ruby [#ruby]
<Spooner> But as far as I know, 1.9.3 is "just better" than 1.9.2.
mva3212 has joined #ruby
busybox42 has joined #ruby
axl_ has joined #ruby
snuglepuss has joined #ruby
snorkdude has joined #ruby
<Spooner> Though, as we know, 1.8.5 was pretty much the best version and all this new stuff is just bloatware.
lggr has quit [Ping timeout: 255 seconds]
<shevy> 1.8.x was nice
CarlB_the_great has joined #ruby
<shevy> but ruby is really too big :)
<Spooner> Oh yeah, 1.8.x was a good one. I was looking forward to 1.8.y, but all I got was this crappy 1.9.x *grumbles*
<spanner> Is it possible to install RVM into a nonstandard directory?
<Xeago> yes
quest88 has quit [Quit: quest88]
lggr has joined #ruby
snorkdude has quit [Remote host closed the connection]
lusory has quit [Read error: Connection reset by peer]
justinmcp has joined #ruby
CarlB_the_great has quit [Remote host closed the connection]
SCommette has joined #ruby
Rochefort has quit [Remote host closed the connection]
kvirani has joined #ruby
davidcelis has quit [Quit: K-Lined.]
blazes816 has joined #ruby
JStoker has joined #ruby
doomMonkey has quit [Ping timeout: 264 seconds]
bbttxu has joined #ruby
nga4 has quit []
jgrevich_ has joined #ruby
doomMonkey has joined #ruby
wunz has quit [Ping timeout: 272 seconds]
lchin has quit [Remote host closed the connection]
jgrevich has quit [Ping timeout: 240 seconds]
jgrevich_ is now known as jgrevich
<spanner> so how would I change this install command curl -k \-L https://get.rvm.io | bash -s stable --ruby to install to my/fave/dir
snorkdude has joined #ruby
<Xeago> read the docs
<Xeago> also, I suggest rbenv
wunz has joined #ruby
<shevy> Spooner, hehe. well ... if they would maintain 1.8.x still, it would be a legit competitor to 1.9.x :)
lggr has quit [Ping timeout: 264 seconds]
<shevy> but they wanna kill it :(
<zipkid> spanner: use vagrant and install a normal Ruby version :-P
<shevy> dumping it like the ex-girlfriend
<shevy> people who don't use RVM use the magical --prefix command to specify which directory to use
Takehiro has quit [Remote host closed the connection]
ph^ has joined #ruby
<shevy> ok
<shevy> I am on #python now since more then one hour and ...
<shevy> it is boring there
adelcampo has quit [Quit: Leaving...]
doomMonkey has quit [Ping timeout: 264 seconds]
wmoxam_ has quit [Quit: leaving]
jonathanwallace has joined #ruby
rutkla has joined #ruby
spyroboy has joined #ruby
idletom has joined #ruby
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
dr_bob has quit []
luckyruby has joined #ruby
ltsstar has joined #ruby
<shevy> hmm
<shevy> is it bad to use a method called remove_html() that removes all html found in a string?
arkiver has joined #ruby
<Xeago> imo strip html
spyroboy has left #ruby [#ruby]
<Xeago> strip_html*
lggr has joined #ruby
ph^ has quit [Remote host closed the connection]
ph^ has joined #ruby
stopbit has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
berserkr has joined #ruby
ananthakumaran has joined #ruby
hbpoison has joined #ruby
stopbit has joined #ruby
S1kx has joined #ruby
S1kx has joined #ruby
jrist-afk is now known as jrist
arturaz has quit [Ping timeout: 264 seconds]
flype has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
lggr has quit [Ping timeout: 268 seconds]
aganov has quit [Quit: aganov]
crodas has quit [Quit: Disconnecting from stoned server.]
kstephens has quit [Ping timeout: 246 seconds]
Bish has quit [Ping timeout: 246 seconds]
johnduhart has quit [Quit: No Ping reply in 180 seconds.]
clop has quit [Ping timeout: 246 seconds]
eighty4 has quit [Ping timeout: 246 seconds]
piefke has quit [Ping timeout: 246 seconds]
etank has quit [Ping timeout: 246 seconds]
strcrzy has quit [Ping timeout: 246 seconds]
beandip has quit [Ping timeout: 246 seconds]
kalleth has quit [Ping timeout: 246 seconds]
xorspark has quit [Ping timeout: 246 seconds]
nopper has quit [Ping timeout: 246 seconds]
Gonzih has quit [Ping timeout: 246 seconds]
EuroTrash has quit [Ping timeout: 246 seconds]
tchebb1 has quit [Ping timeout: 246 seconds]
snorkdude has quit [Remote host closed the connection]
jprovazn is now known as jprovazn_away
<shevy> Xeago yeah strange
<shevy> I have some aliases for it already... but for some reason, remove_html was not one
rodasc has joined #ruby
<shevy> and somewhere in the back of my mind, I had this thought that I purposely did not want to use that name... hmmmm should have documented ...
maesbn has quit [Remote host closed the connection]
lggr has joined #ruby
<Xeago> lol
bigkevmcd has quit [Read error: Connection reset by peer]
thunderstrike has quit [Remote host closed the connection]
Yomero_ has joined #ruby
<shevy> I really need to start using sinatra seriously
dnyy has quit [Quit: Connection closed for inactivity]
maesbn has joined #ruby
<asteve> today is broken for me
duracris1s has joined #ruby
<asteve> rvm is broken, I can't cap deploy for an entirely different project and I have mysql lock errors
emanu has joined #ruby
topriddy_ has quit [Ping timeout: 240 seconds]
geggam has joined #ruby
bigkevmcd has joined #ruby
johnduhart2 has joined #ruby
duracris1s has left #ruby [#ruby]
kstephens_ has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
diegoviola has joined #ruby
<diegoviola> hi
monkegjinni has joined #ruby
<diegoviola> rails question: i'm calling a rake task from a controller, with system "rake ..." and in the rake task i have task :import => :environment do ... then i'm trying to call flash from there, but i get undefined local variable or method `flash' for main:Object, any ideas what is wrong? i thougth that :environment loaded the entire rails env, so why i can't call flash?
m_3 has quit [Quit: leaving]
Bish_ has joined #ruby
mva3212 has quit [Remote host closed the connection]
strcrzy_ has joined #ruby
m_3 has joined #ruby
cj3kim has joined #ruby
kalleth__ has joined #ruby
maesbn has quit [Ping timeout: 256 seconds]
cj3kim has quit [Client Quit]
lggr has quit [Ping timeout: 240 seconds]
<Hanmac> diegoviola rails question rails channel: #rubyonrails
nopper` has joined #ruby
mephux has quit [Remote host closed the connection]
Gonzih has joined #ruby
piefke has joined #ruby
EuroTrash has joined #ruby
qos has joined #ruby
eighty4_ has joined #ruby
heisenmink has quit [Remote host closed the connection]
mephux has joined #ruby
<diegoviola> i asked there, nobody seems to know
<shevy> asteve yeah. one day you will use the source directly, and a gobolinux-like install scheme :)
tchebb has joined #ruby
<shevy> Hanmac, do you use rake?
<lucianosousa> diegoviola: like flash[:notice] ?
<diegoviola> yes
<lucianosousa> we don't have this variable in this context
<lucianosousa> only inside controllers/view
mengu has quit [Quit: Konversation terminated!]
<lucianosousa> why do u wanna use this?
<Hanmac> shevy currently no, but never with rails
<lucianosousa> rake task means console script? try use puts os something like this
<diegoviola> ok ty
rmcafee has joined #ruby
luckyruby has quit [Remote host closed the connection]
ckrailo has joined #ruby
Rarruga has quit [Quit: Leaving]
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
sendoushi has joined #ruby
lucianosousa has quit [Quit: lucianosousa]
taypen has joined #ruby
bradhe has quit [Remote host closed the connection]
<asteve> shevy: "each program resides in its own directory, such as /Programs/Xorg-Lib/7.4 and /Programs/KDE-Libs/4.2.0. Like it? " no god no, why must they capitalize programs
mmitchell has quit [Remote host closed the connection]
<shevy> asteve yeah, that's why I said gobolinux-like, not gobolinux-as-is :)
<asteve> hah
lggr has joined #ruby
<shevy> unfortunatly the students from back then now work full time and can't commit to the project, a few years ago, so it kinda died
mmitchell has joined #ruby
<shevy> hisham works on lua-rocks in his spare time https://github.com/hishamhm
deadghost has quit [Ping timeout: 240 seconds]
metrix has joined #ruby
<shevy> lua guys :P
Rochefort has joined #ruby
clop has joined #ruby
<hoelzro> shevy: is hisham a Ruby guy?
<hoelzro> I only know him as the LuaRocks maintainer
lampe2 has joined #ruby
mmitchel_ has joined #ruby
<metrix> I want to do some cleanup when an application closes, but I want it done from a library so that it can be done in a generic over many applications. something like a hook into the exit() command.. is this possible?
<hoelzro> metrix: have you looked at atexit?
<metrix> I haven't
<metrix> I will google
<shevy> hoelzro sadly no, he settled for lua :(
etank has joined #ruby
<shevy> yeah
<hoelzro> also as the htop maintainer
<shevy> lua + C
<hoelzro> shevy: how do you know of him?
<shevy> hoelzro: he started gobolinux years ago
snorkdude has joined #ruby
<shevy> but he is rarely on IRC these days
mklappstuhl has joined #ruby
<hoelzro> ooooh
d3vic3 has quit [Ping timeout: 245 seconds]
<hoelzro> shevy: Lua and Ruby aren't that different ;)
<mklappstuhl> I've been here before with that question but havn't been able to solve it in the meantime:
<shevy> I hope so... especially with mruby one day
<shevy> mklappstuhl, cool nick ;)
<lectrick> hoelzro: i hope you are joking
<shevy> klappstuhl = folding chair
carloslopes has quit [Quit: Leaving.]
<hoelzro> lectrick: not really
<mklappstuhl> I need to remove a BOM (byte-order-mark) (UTF-16 LE) character from a file
mmitchell has quit [Ping timeout: 244 seconds]
<hoelzro> I mean, there are *some* stark differences
<mklappstuhl> shevy, you got to be german to know that ;)
<hoelzro> but to me, they're both clean scripting languages
<shevy> mklappstuhl hehe kinda
d3vic3 has joined #ruby
<shevy> hoelzro hmm lua is much simpler though or?
k610 has quit [Ping timeout: 272 seconds]
d3vic3 has quit [Client Quit]
<Spooner> Lua put me off since it is soooo lightweight, which means that there would probably be schisms between which OO library you extended it with ;)
<lectrick> hoelzro: i've played around with lua (wow addons) and it never felt like ruby to me, more like javascript
<mklappstuhl> mklappstuhl, the file is pretty big and I know that the character is in the first line (oh wonder) ... any Ideas how to strip it of? maybe just blindly remove the first byte of the file or something alike? :D
<hoelzro> lectrick: I hate to admit it, but Lua and JS do share some resemblance
<hoelzro> shevy: Lua is *very* simple
Chryson has joined #ruby
koshii has joined #ruby
lggr has quit [Ping timeout: 268 seconds]
<koshii> Good afternoon
<Spooner> lectrick : I used Lua in a brief DoW2 modding attempt, but I Rubified it a lot, in ways I couldn't have done with Javascript.
rodasc is now known as crodas
<lectrick> Spooner: Would love to see that sample code out of curiosity. The rubifying of javascript was prototype, back in the day... :)
<hoelzro> Lua isn't too hard to Rubify
<hoelzro> it's a very flexible language
<hoelzro> almost too flexible at time =)
<hoelzro> *times
d3vic3 has joined #ruby
<koshii> What do you mean "to Rubify"?
<Spooner> Yes, that is what worried me. There wouldn't be a common way to extend it to make it as broad-based as Ruby.
<hoelzro> to make it Ruby-like
nari has quit [Ping timeout: 240 seconds]
<koshii> To use Ruby-like syntax?
possid has joined #ruby
<hoelzro> objects, creating DSLs, block-friendly, I suppose
<possid> objects, creating DSLs, block-friendly, I suppose
<koshii> :D
<possid> :D
<Xeago> rofl
<possid> rofl
snorkdude has quit [Remote host closed the connection]
<koshii> Twins? :-)
<possid> Twins? :-)
<hoelzro> different people may have different definitions
<possid> different people may have different definitions
<hoelzro> horray for /ignore
<possid> horray for /ignore
<Spooner> E.g. adding Ruby-like inheritance system. Adding various standard Ruby stuff on Array object and such.
<possid> E.g. adding Ruby-like inheritance system. Adding various standard Ruby stuff on Array object and such.
<koshii> Sheesh.
<possid> Sheesh.
lggr has joined #ruby
<Xeago> could we get him out?
<possid> could we get him out?
<koshii> Spooner: How do you accomplish that?
<possid> Spooner: How do you accomplish that?
lampe2 has quit [Ping timeout: 264 seconds]
larissa has quit [Quit: Leaving]
<Spooner> koshii : I don't remember. Just looking for the old source code.
<possid> koshii : I don't remember. Just looking for the old source code.
notVert has quit [Read error: Connection reset by peer]
MasterIdler_ has joined #ruby
<mklappstuhl> anyone an idea regarding my problem?
<possid> anyone an idea regarding my problem?
fukuyamaken has joined #ruby
<possid> possid you will be banned
<shevy> possid you will be banned
<Spooner> It is just some idiot with a simple bot. Why would they care about being banned?
<possid> It is just some idiot with a simple bot. Why would they care about being banned?
matrixise has quit [Quit: leaving]
<Muz> Or about being threatened with being banned, by someone that can't ban them.
<possid> Or about being threatened with being banned, by someone that can't ban them.
<Hanmac> its yet another banister?
<possid> its yet another banister?
fantazo has quit [Remote host closed the connection]
<shevy> no it's a german bot
<possid> no it's a german bot
duracris1s has joined #ruby
* Hanmac thinks this is stupid
<shevy> aha... the bot does not respond to emotes
bradhe has joined #ruby
<possid> aha... the bot does not respond to emotes
* Norrin thinks we emote everything
* shevy : I agree!
* Hanmac feels now very emoted
<koshii> Aus! Aus!
<possid> Aus! Aus!
* Spooner throws koshii a lua/ruby bone: https://gist.github.com/1af8def6bebecda7e1ee
lggr has quit [Ping timeout: 252 seconds]
* koshii thanks Spooner
* shevy : mklappstuhl, no real idea about how to delete BOM from a file. but, why not load the file, then change it, then save anew?
bradhe has quit [Remote host closed the connection]
* koshii Spooner, this is pretty smart :)
* Spooner apologises to anyone who knows Lua for posting some terribly naive code :$
bradhe has joined #ruby
* Norrin there's no op to kban this bot?
duracris1s has quit [Client Quit]
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
* shevy : Norrin well apeiros isn't here... wonder what happened to him
<hoelzro> Spooner: I've seen *much* worse
<possid> Spooner: I've seen *much* worse
<fukuyamaken> possid
<possid> possid
doomMonkey has joined #ruby
* shevy : possid is a stupid parrot bot
<fukuyamaken> *hmm*
<possid> *hmm*
<possid> huh?
baphled has quit [Ping timeout: 272 seconds]
dekroning has quit [Ping timeout: 252 seconds]
minijupe has joined #ruby
<shevy> possid die
<possid> possid die
minijupe has quit [Client Quit]
* Spooner points out again that the fact that he had to do all that, means everyone will have completely different Luas, by the time they extend it to a more usable base.
<possid> why? :(
* shevy : possid because you are semi-botting
<possid> huh?
mohits has quit [Read error: Connection reset by peer]
* koshii was really interested in Lua for a couple of weeks, then discovered Ruby. :-)
wallerdev has joined #ruby
snorkdude has joined #ruby
* shevy : koshii cool ... are you still using lua? or did something push you away from it
* koshii also found this cool thing but never explored it: http://iolanguage.com/
whackatre has joined #ruby
lggr has joined #ruby
* shevy : koshii iolanguage kinda died years ago if you ask me :( Steve is not that active anymore
niko has joined #ruby
* koshii shevy: The only thing that pushed me away was not being able to Google every single error and get a good answer!
whackatre has left #ruby ["Cya."]
* koshii shevy: That's too bad. It has a lot of really interesting features.
maletor has joined #ruby
<mklappstuhl> shevy, It's about 30mb and it takes a while to load all that into memory just to strip of a single byte
<possid> shevy, It's about 30mb and it takes a while to load all that into memory just to strip of a single byte
* shevy : koshii https://github.com/stevedekorte/io <-- he is still semi-active... last commit 2 months ago... but the hype kinda died out slowly
* shevy : koshii yeah. it had much better introspection than ruby :)
snorkdude has quit [Remote host closed the connection]
lampe2 has joined #ruby
sspiff has quit [Ping timeout: 264 seconds]
* koshii shevy: Interesting to see that he is active doing Objective C stuff now
<Hanmac> >> pissid is not only a parrot bot :D try to send him a directly message :D
<possid> >> pissid is not only a parrot bot :D try to send him a directly message :D
* koshii Hanmac: Is this your doing? :-)
* Xeago Hanmac nothing happends
stim371 has joined #ruby
aantix has joined #ruby
possid has quit [K-Lined]
notVert has joined #ruby
<Hanmac> i said "huhu" to him and he repsond "?!" XD
gregorg_taf has quit [Changing host]
gregorg_taf has joined #ruby
gregorg_taf is now known as gregorg
* shevy : koshii yeah, he is good with mac + objc ... but I think for a language like Io, you really need to "grow" it to as many different platforms as possible. For some months I was unable to compile Io from source, whereas I could compile perl, lua, php, ruby and python from source just fine. and the bugs in the build system were so slow to be fixed... I lost interest eventually
iocor has joined #ruby
flagg0204 has joined #ruby
arkiver has quit [Ping timeout: 264 seconds]
<Hanmac> shevy the bot is gone, so you could speak normaly again :P
Eldariof18-ru has quit [Ping timeout: 272 seconds]
<shevy> yippie!
<shevy> I was feeling like Bane in the dark knight rises
<shevy> with that mask he was hard to understand
timonv has quit [Remote host closed the connection]
thatRD has quit [Remote host closed the connection]
canton7 has quit [Ping timeout: 246 seconds]
<Muz> It's even harder to understand what he's saying when some lunatic storms the cinema with an assault rifle and teargas. ¬_¬
lchin has joined #ruby
paulovittor23 has quit [Ping timeout: 252 seconds]
xaq has joined #ruby
lggr has quit [Ping timeout: 268 seconds]
ken_barber has joined #ruby
* koshii shevy yeah I also have some problems compiling it
<koshii> err... :)
yshh has quit [Remote host closed the connection]
monkegjinni has quit [Read error: Connection reset by peer]
monkegji_ has joined #ruby
machty_ has joined #ruby
<shevy> Muz yeah... sadly those trolls in reallife use rifles and kill people. they should kill themselves first
lampe2 has quit [Ping timeout: 264 seconds]
bbttxu has quit [Quit: bbttxu]
machty has quit [Read error: Connection reset by peer]
machty_ is now known as machty
thatRD_ has joined #ruby
jasonkuhrt has quit [Quit: Leaving...]
ffranz has quit [Read error: Connection reset by peer]
Spooner has quit [Ping timeout: 272 seconds]
Knodi has joined #ruby
lchin has quit [Ping timeout: 240 seconds]
lggr has joined #ruby
yann2 has joined #ruby
bradhe_ has joined #ruby
<yann2> Hello! small question: I have multiple versions of a gem installed (debian/ubuntu), and I want to force the use of one specific versions. How can I do that?
fukuyamaken has quit [Remote host closed the connection]
Sou|cutter has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
Knodi has quit [Client Quit]
<Xeago> how do you call introductional work, e.g. work done during a phase of introduction?
bradhe has joined #ruby
bradhe__ has joined #ruby
wallerdev has quit [Quit: wallerdev]
mklappstuhl has quit [Ping timeout: 264 seconds]
bradhe_ has quit [Ping timeout: 264 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
Jake232 has quit [Quit: Computer has gone to sleep.]
ffranz has joined #ruby
lump has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 244 seconds]
froy has joined #ruby
bradhe has quit [Ping timeout: 246 seconds]
rutkla has quit [Ping timeout: 252 seconds]
deadghost has joined #ruby
Jellyg00se has quit [Read error: Connection reset by peer]
<Hanmac> yann2: do inside your ruby script before require something like this: gem "rdoc","3.9.4"
rutkla has joined #ruby
ryanf has joined #ruby
<reactormonk> Xeago: try #english
obryan has joined #ruby
juarlex has joined #ruby
aantix has quit [Remote host closed the connection]
<shevy> Xeago hmm preliminary work?
aantix has joined #ruby
<Xeago> ty
thatRD_ has quit [Remote host closed the connection]
<Xeago> bb8h
h4mz1d has joined #ruby
thatRD has joined #ruby
roadt has quit [Ping timeout: 272 seconds]
ztirf has joined #ruby
mmitchel_ has quit [Remote host closed the connection]
hasse has quit [Ping timeout: 245 seconds]
hoelzro is now known as hoelzro|away
davidcelis has joined #ruby
mmitchell has joined #ruby
lggr has joined #ruby
jjbohn has joined #ruby
jrajav has joined #ruby
maletor has joined #ruby
a_a_g has joined #ruby
MasterIdler_ has quit [Quit: MasterIdler_]
minijupe has joined #ruby
moted has joined #ruby
grainne has joined #ruby
thatRD has quit [Quit: thatRD]
Virunga has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
Iszak has quit [Quit: User has gone to sleep.]
ephemerian has quit [Quit: Leaving.]
williamcotton has joined #ruby
h4mz1d has quit [Ping timeout: 264 seconds]
wallerdev has joined #ruby
matthewrobbins has quit [Ping timeout: 240 seconds]
Xeago has quit [Ping timeout: 244 seconds]
lggr has joined #ruby
robertbird has joined #ruby
senny has quit [Remote host closed the connection]
<atmosx> shevy: how's life
yann2 has quit [Ping timeout: 272 seconds]
<atmosx> first day at classes today, I was like from 8:00 a.m to 5:30 p.m. at the univ... I was about to sleep at the microbiology lab class.
g00se has joined #ruby
<atmosx> awful
hbpoison has quit [Ping timeout: 244 seconds]
g00se is now known as Jellyg00se
<diegoviola> i'm calling a rake task from a controller (rails app), this rake task does some data processing, but when it's done with that i need to inform the parent process that the rake task has finished, and then do something else in the controller, like redirecting to another place and showing a message "data processing is done", any idea how to do that? should i send a signal or something like that to the parent process?
kaushik_ has joined #ruby
<shevy> atmosx dunno... I am learning italian now...
philcrissman has joined #ruby
eins11_ has joined #ruby
eins11_ has quit [Read error: Connection reset by peer]
JohnBat26 has quit [Remote host closed the connection]
nanderoo has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
kenfdev has joined #ruby
carloslopes has joined #ruby
<Hanmac> atmosx dont sleep in the microbiology class or the bacterias gets you :P
sepp2k1 has joined #ruby
Rochefort has quit [Remote host closed the connection]
sepp2k has quit [Ping timeout: 264 seconds]
alvaro_o has joined #ruby
shevy has quit [Ping timeout: 246 seconds]
ncr100 has joined #ruby
zigomir has quit [Ping timeout: 240 seconds]
Tom2 has quit [Quit: Leaving]
foofoobar has joined #ruby
<foofoobar> Hi
<matti> Hi
<foofoobar> Recently I saw something like %{w abc def} how is that called ?
ztirf has quit [Quit: Nettalk6 - www.ntalk.de]
<foofoobar> So I can google it
xaq has quit [Remote host closed the connection]
<davidcelis> foofoobar: it's another string delimiter
<foofoobar> okay
yann2 has joined #ruby
GoHuyGo has joined #ruby
mwillhite has joined #ruby
<davidcelis> foofoobar: that one operates like double quotes, meaning it takes escaped characters and interpolation
<mwillhite> has anyone run into this?: activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `require': cannot load such file -- typhoeus (LoadError)
ph^ has quit [Remote host closed the connection]
<davidcelis> foofoobar: people use it when their string will contain double quotes so they don't have to continuously escape said double quotes
<mwillhite> I'm using rbenv
<mwillhite> ruby 1.9.3-p194
kevinnewesil has joined #ruby
<mwillhite> I was playing around with typhoeus
joofsh has quit [Quit: Leaving]
ph^ has joined #ruby
<foofoobar> davidcelis: does this "w" has a special meaning?
<mwillhite> but now when I boot up my app (which doesn't require typhus) I get this error and it doesn't start
<reactormonk> mwillhite: gem install ?
<mwillhite> did that
<mwillhite> I can hit it in irb
<mwillhite> require 'tyhpoeus' works just fine
<davidcelis> foofoobar: what w
<foofoobar> %w{} or something like this
<davidcelis> foofoobar: %{w abc def} is the same as "w abc def"
johnjohnson has quit []
<foofoobar> so the "w" has no meaning?
<davidcelis> foofoobar: stick it in the console and find out bro
<davidcelis> foofoobar: it has a meaning when after the %. %w{} is different than %{}
johnjohnson has joined #ruby
<foofoobar> ah, it's an array now
enricostn has joined #ruby
cbuxton has joined #ruby
lggr has joined #ruby
<enricostn> hi, what's wrong with that: line_items << LineItem.new project: item, quantity: quantity, price: item.price
chrisja has joined #ruby
<enricostn> I get syntax error, unexpected tLABEL, expecting keyword_end (SyntaxError) ..._items << LineItem.new project: item, quantity: quantity, pr...
<ohcibi> can someone explain to me why in this regex: http://rubular.com/r/695iR9xIS3 the [ is also matched in the string but the values below then are shown without [? i have the same in example in javascript where the [ is also included in the matches
<davidcelis> enricostn: you need to use parens
ianbrandt has joined #ruby
<davidcelis> enricostn: ruby is assuming you're typing `line_items << LineItem.new() project: item, quantity: ...
<davidcelis> enricostn: be explciit
<enricostn> davidcelis: ah ok, so the answer at my question is wrong... http://stackoverflow.com/questions/12449370/refactoring-from-controller-to-model
<davidcelis> enricostn: it's not wrong, per se, it just has a syntax error
<enricostn> davidcelis: yes it's what I mean, a Syntax Error. thank you!
johnjohnson has quit []
mengu has joined #ruby
shevy has joined #ruby
stim371 has quit [Quit: stim371]
nari has joined #ruby
ryannielson_ has joined #ruby
werdnativ has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
cbuxton has quit [Ping timeout: 240 seconds]
mva3212 has joined #ruby
voodoofish430 has joined #ruby
mklappstuhl has joined #ruby
ryannielson has quit [Ping timeout: 264 seconds]
ryannielson_ is now known as ryannielson
mrdodo has quit [Ping timeout: 260 seconds]
lggr has joined #ruby
kenfdev has quit [Ping timeout: 252 seconds]
workmad3 has quit [Ping timeout: 244 seconds]
jrajav has quit []
kvirani has quit [Remote host closed the connection]
locriani has joined #ruby
tyfighter has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
bradhe__ has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
manizzle has quit [Remote host closed the connection]
johnjohnson has joined #ruby
johnjohnson has quit [Client Quit]
manizzle has joined #ruby
heisenmink has joined #ruby
cbuxton has joined #ruby
levieraf has joined #ruby
sendoushi has quit [Remote host closed the connection]
hbpoison has joined #ruby
Chryson has quit [Quit: Leaving]
kevinnewesil has quit [Quit: This computer has gone to sleep]
haxrbyte has joined #ruby
tscolari has joined #ruby
br4ndon has joined #ruby
shadoi has quit [Quit: Leaving.]
rasbonics has joined #ruby
haxrbyte_ has quit [Ping timeout: 240 seconds]
specialGuest has quit [Ping timeout: 272 seconds]
rakm has joined #ruby
hadees has quit [Quit: hadees]
bradhe has quit [Remote host closed the connection]
ryannielson has quit [Quit: ryannielson]
bradhe has joined #ruby
lggr has joined #ruby
mneorr has joined #ruby
mrsolo has joined #ruby
haxrbyte has quit [Remote host closed the connection]
Spooner has joined #ruby
haxrbyte has joined #ruby
eins11 has joined #ruby
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
haxrbyte has quit [Ping timeout: 240 seconds]
bbttxu has joined #ruby
<shevy> sinatra here I coooooome
ABK has joined #ruby
stim371 has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
ryannielson has joined #ruby
billycraven has quit [Quit: Leaving...]
Morkel has quit [Quit: Morkel]
GoGoGarrett has quit [Remote host closed the connection]
kevinnewesil has joined #ruby
lggr has joined #ruby
<voodoofish430> anyone here familiar with watir?
Scient has left #ruby [#ruby]
<Muz> Yes. Rather than the amibguous question, why not ask the actual question?
ar_ has quit [Quit: Leaving]
beandip has joined #ruby
xorspark has joined #ruby
<voodoofish430> okay, then...
<voodoofish430> This is more of an issue with the example of watir with test/unit
<voodoofish430> When I try to run the example, I get the following error. "formal argument cannot be an instance variable" in relation to def setup @browser ||= Watir::Browser.new :firefox
F1skr has quit [Quit: WeeChat 0.3.8]
<voodoofish430> I posted this in the watir channel as well, but that seems to be rather silent atm....
nsmgo has joined #ruby
snorkdude has joined #ruby
khakimov has joined #ruby
beachandbytes has joined #ruby
<shevy> never used Watir myself
<Muz> voodoofish430: got a full gist or pastie test case?
lolmaus has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
rudyl313 has joined #ruby
hadees has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
snorkdude has quit [Remote host closed the connection]
psychouroboros has joined #ruby
psychouroboros has quit [Client Quit]
<voodoofish430> Muz: it's an exact copy from this page http://watir.com/frameworks/ it's the example_test.rb at the bottom of the page.
shadoi has joined #ruby
psychouroboros has joined #ruby
adamkittelson has joined #ruby
psychouroboros has quit [Client Quit]
lggr has joined #ruby
mklappstuhl has quit [Ping timeout: 264 seconds]
kevinnewesil has quit [Read error: Connection reset by peer]
deadalus has joined #ruby
deadalus has joined #ruby
deadalus has quit [Changing host]
kevinnewesil has joined #ruby
minijupe has quit [Quit: minijupe]
deadalus has quit [Client Quit]
snorkdude has joined #ruby
ukd1 has joined #ruby
deadghost has quit [Ping timeout: 252 seconds]
c0rn_ has joined #ruby
metrix has quit [Quit: ChatZilla 0.9.88.2 [Firefox 15.0.1/20120905151427]]
luckyruby has joined #ruby
luckyruby has quit [Remote host closed the connection]
binaryplease has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
luckyruby has joined #ruby
bradhe has quit [Remote host closed the connection]
binaryplease has quit [Client Quit]
indian has joined #ruby
indian has joined #ruby
bluenemo has quit [Remote host closed the connection]
TomJ has quit [Quit: TomJ]
bradhe has joined #ruby
mrdodo has joined #ruby
mrdodo has quit [Read error: Connection reset by peer]
eldariof has joined #ruby
mrdodo has joined #ruby
topriddy_ has joined #ruby
wuzzzzaah has quit [Ping timeout: 244 seconds]
fris has joined #ruby
ABK has quit [Read error: Connection reset by peer]
blazes816 has quit [Quit: blazes816]
apok has joined #ruby
snorkdude has quit [Remote host closed the connection]
ABK has joined #ruby
mercwithamouth has quit [Ping timeout: 256 seconds]
nga4 has joined #ruby
statarb3 has quit [Ping timeout: 272 seconds]
lggr has joined #ruby
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
gift has quit [Remote host closed the connection]
mmitchell has quit [Remote host closed the connection]
m3pow has quit [Ping timeout: 264 seconds]
m3pow has joined #ruby
robertbird has quit [Quit: robertbird]
baphled has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
williamcotton has quit [Quit: williamcotton]
sspiff has joined #ruby
mklappstuhl has joined #ruby
kenfdev has joined #ruby
williamcotton has joined #ruby
chussenot has quit [Quit: chussenot]
mmitchell has joined #ruby
ryanf has quit [Ping timeout: 268 seconds]
lggr has joined #ruby
nateberkopec has joined #ruby
pu22l3r_ has quit [Remote host closed the connection]
aristidesfl has quit [Ping timeout: 244 seconds]
pu22l3r has joined #ruby
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
statarb3 has joined #ruby
kvirani has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
mdaubs has joined #ruby
indian has quit [Ping timeout: 248 seconds]
Russell^^ has joined #ruby
mdaubs has quit [Remote host closed the connection]
BIGX333 has quit [Remote host closed the connection]
grainne has quit [Quit: =^..^=]
joelsbeard has joined #ruby
aristidesfl has joined #ruby
mahmoudimus has joined #ruby
topriddy_ has quit [Quit: topriddy_]
lggr has quit [Ping timeout: 252 seconds]
johnlcox has quit [Ping timeout: 256 seconds]
ryanf has joined #ruby
GoGoGarrett has joined #ruby
workmad3 has joined #ruby
bricker has joined #ruby
<bricker> Does Ruby group "and" / "or" by every 2 statements?
iocor has quit [Quit: Computer has gone to sleep.]
koshii has quit [Quit: leaving]
<bricker> I think yes but I just want to confirm
kevinnewesil has quit [Read error: Connection reset by peer]
johnlcox has joined #ruby
chrishunt has joined #ruby
emanu_ has joined #ruby
<workmad3> bricker: ?
<bricker> workmad3: yeah that was confusing...
<workmad3> just a bit ;)
enricostn has left #ruby [#ruby]
wuzzzzaah has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
emanu has quit [Ping timeout: 264 seconds]
emanu_ is now known as emanu
<bricker> I mean does it place in "assumed" parentheses? true and false or false or true or false or false and true == (true and false) or (false or true) or (false or false) and (true)
<workmad3> afaik, they're equal precedence
ABK has quit [Read error: Connection reset by peer]
nari has quit [Ping timeout: 244 seconds]
Markvilla has quit [Quit: Computer has gone to sleep.]
<workmad3> so it would be like (((true and false) or true) or false)...
ABK has joined #ruby
<workmad3> basically, equal precedence is evaluated left-right
cbuxton has quit [Quit: Leaving.]
<bricker> I see
ukd1 has quit [Quit: leaving]
<bricker> so best just to use parentheses just to be safe I gues
<bricker> s
<workmad3> yeah
<workmad3> also be careful of the v. low precedence of the english 'and' and 'or' keywords
schaerli has joined #ruby
<workmad3> it's generally better to use && and || if you're doing actual boolean expressions
kevinnewesil has joined #ruby
<diegoviola> i'm forking a process from another process, how do i know when the child process has finished doing its thing, and tell the parent process about the child exit status?
<bricker> workmad3: yeah I am aware of that difference after hours of banging my head on a desk a few years back
wuzzzzaah has quit [Ping timeout: 264 seconds]
lggr has joined #ruby
ananthakumaran has joined #ruby
jrist is now known as jrist-afk
jmeeuwen is now known as vanmeeuwen
vanmeeuwen is now known as jmeeuwen
jmeeuwen is now known as vanmeeuwen
neku has joined #ruby
vanmeeuwen is now known as jmeeuwen
kenfdev has quit [Ping timeout: 255 seconds]
a_a_g has quit [Quit: Leaving.]
kirun has joined #ruby
darkc0met has quit [Changing host]
darkc0met has joined #ruby
darkc0met has quit [Changing host]
darkc0met has joined #ruby
stkowski has joined #ruby
ABK has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 256 seconds]
ABK has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
pskosinski has quit [Remote host closed the connection]
pettsson has joined #ruby
ryanf has quit [Quit: broken pipes |||]
kevinnewesil has quit [Read error: Connection reset by peer]
joast has quit [Ping timeout: 244 seconds]
perlsyntax has joined #ruby
ryanf has joined #ruby
lggr has joined #ruby
lae has quit [Quit: GOODBYE FAGS]
cascalheira has quit [Quit: Linkinus - http://linkinus.com]
tommyvyo has quit [Quit: Computer has gone to sleep.]
macmartine has joined #ruby
binaryplease has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
chetan- has joined #ruby
jastix has quit [Quit: Leaving]
<chetan-> is anyone using a tool to manage vendored JS libs?
pskosinski has joined #ruby
sxsruo has quit [Remote host closed the connection]
budha has joined #ruby
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
lggr has quit [Ping timeout: 268 seconds]
a_a_g has joined #ruby
Chryson has joined #ruby
fris has quit []
tommyvyo has joined #ruby
plose has joined #ruby
deadghost has joined #ruby
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
<plose> heya
plose has quit [Remote host closed the connection]
mklappstuhl has quit [Ping timeout: 264 seconds]
lggr has joined #ruby
arkiver has joined #ruby
Synthead has joined #ruby
krawchyk has quit [Remote host closed the connection]
<perlsyntax> hey
billycravens has joined #ruby
kevinnewesil has joined #ruby
wmoxam_ has joined #ruby
a_a_g has left #ruby ["Leaving"]
a_a_g has joined #ruby
slicslak has joined #ruby
lolmaus has quit []
ABK has quit [Read error: Connection reset by peer]
<RubyPanther> diegoviola: the parent generally will wait() for the child
ABK has joined #ruby
austinbv has joined #ruby
kevinnewesil has quit [Read error: Connection reset by peer]
stopbit has quit [Read error: Connection reset by peer]
kevinnewesil has joined #ruby
stopbit has joined #ruby
<diegoviola> RubyPanther: so parent will receive a signal when the child dies
ryannielson has quit [Ping timeout: 256 seconds]
Iszak has joined #ruby
Iszak has quit [Changing host]
Iszak has joined #ruby
wuzzzzaah has joined #ruby
<Iszak> Is there a method that I can override when someone calls an undefined class?
<banisterfiend`> Iszak const_missing
skogis has joined #ruby
<Iszak> Thanks
<voodoofish430> heya Muz: any thoughts on that watir issue I mentioned before? Just wondering
ryanf has quit [Quit: broken pipes |||]
lkba has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
frogprince_mac has joined #ruby
ananthakumaran has joined #ruby
<RubyPanther> diegoviola: typically, see Process.wait()
<diegoviola> ty
aaronmacy has joined #ruby
Johanna_Meszoros has joined #ruby
wuzzzzaah has quit [Ping timeout: 268 seconds]
<diegoviola> i've noticed that a rake task creates an entire new process though, when calling with system()... i guess i need to use fork() to create a child one?
<RubyPanther> diegoviola: if you need to read data back from the child, see this example by Yehuda: http://stackoverflow.com/questions/1076257/returning-data-from-forked-processes
lggr has joined #ruby
<diegoviola> ty
ananthakumaran has quit [Client Quit]
<Iszak> Anything like this https://github.com/amoffat/sh in ruby?
tinus1 has joined #ruby
mmitchell has quit [Remote host closed the connection]
<diegoviola> RubyPanther: will wait() block the process?
<RubyPanther> diegoviola: normally I think it does, but you can set some flag WNOHANG if your platform supports it
<Johanna_Meszoros> Is someone able to help me solving this redmine error: http://pastebin.com/aYXbKndc I am not able to open the Settings anymore :-(
<diegoviola> RubyPanther: ty
tinus1 has quit [Client Quit]
<RubyPanther> Johanna_Meszoros: You have an undefined method. Usually means a typo, or a missing line in Gemfile
perlsyntax has left #ruby ["Leaving"]
Johanna_Meszoros is now known as avalarion
arkiver has quit [Ping timeout: 256 seconds]
xial1 has joined #ruby
a_a_g has quit [Quit: Leaving]
c0rn_ has quit [Quit: Computer has gone to sleep.]
xial1 has left #ruby [#ruby]
lggr has quit [Ping timeout: 252 seconds]
Jamone has joined #ruby
Jamone has joined #ruby
Jamone has quit [Changing host]
ABK has quit [Read error: Connection reset by peer]
<avalarion> RubyPanther, how do I check if the gemfiles packages are up to date?
Chryson has quit [Quit: Leaving]
ABK has joined #ruby
Eplemosen has joined #ruby
Monie has quit [Ping timeout: 240 seconds]
<RubyPanther> That I can't say, there are many strategies for managing versions... the most important thing is to choose one and know what your policy is, and keep it however updated it claims to be...
kevinnewesil has quit [Ping timeout: 244 seconds]
specialGuest has joined #ruby
<shevy> hey atmosx what do you think about http://i49.tinypic.com/4zzql0.png
kevinnewesil has joined #ruby
<RubyPanther> Some would say, unless some bug or feature has forced an upgrade, whatever version is already working is the perfect, golden, updated version
mohits has quit [Ping timeout: 268 seconds]
Xeago has joined #ruby
lggr has joined #ruby
<RubyPanther> Others delete Gemfile.lock every morning, or else run some bundle command that checks... which itself has dangers
<RubyPanther> And if it even functions depends on how exactly you wrote your Gemfile
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
swarley has joined #ruby
austinbv has quit [Ping timeout: 256 seconds]
mmitchell has joined #ruby
eas has quit [Remote host closed the connection]
<avalarion> SO I right now know, that I don't know anything?^^
dnyy has joined #ruby
<shevy> I opted to avoid gemfiles
Synthead has quit [Read error: Connection reset by peer]
specialGuest has quit [Ping timeout: 256 seconds]
nicoulaj has joined #ruby
Agustino has joined #ruby
chimay has quit [Quit: WeeChat 0.3.9-rc1]
bradhe has quit [Ping timeout: 252 seconds]
minijupe has joined #ruby
timonv has joined #ruby
hbpoison has quit [Ping timeout: 256 seconds]
michael_mbp has joined #ruby
<michael_mbp> hi all.
Synthead has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
tscolari has quit [Ping timeout: 245 seconds]
wobr has joined #ruby
aristidesfl has quit []
loves_color_text has joined #ruby
kevinnewesil has quit [Read error: Connection reset by peer]
lggr has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
Banistergalaxy has quit [Remote host closed the connection]
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
c0rn_ has joined #ruby
Russell^^ has quit [Quit: Russell^^]
callenb has joined #ruby
Eplemosen has quit [Quit: NOPE]
c0rn_ has quit [Client Quit]
callenb has quit [Client Quit]
kenfdev has joined #ruby
callenb has joined #ruby
callenb has quit [Client Quit]
lggr has quit [Ping timeout: 245 seconds]
cody-- has joined #ruby
erichmenge has joined #ruby
ABK has quit [Read error: Connection reset by peer]
kenfdev has quit [Ping timeout: 240 seconds]
ABK has joined #ruby
CodeVision has quit [Quit: WeeChat 0.3.8]
duracrisis has quit [Quit: Leaving]
jgarvey has joined #ruby
duracrisis has joined #ruby
pu22l3r_ has joined #ruby
ABK has quit [Read error: Connection reset by peer]
lggr has joined #ruby
phelps has joined #ruby
joelsbeard has left #ruby [#ruby]
mmitchell has quit [Remote host closed the connection]
wuzzzzaah has joined #ruby
workmad3 has joined #ruby
tyfighter has quit [Quit: tyfighter]
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Morkel has joined #ruby
pu22l3r has quit [Ping timeout: 252 seconds]
xorgnak has quit [Remote host closed the connection]
Foxandxss has joined #ruby
elaptics is now known as elaptics`away
snorkdude has joined #ruby
c0rn_ has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
kevinnewesil has joined #ruby
nimred has quit [Quit: leaving]
Agustino has left #ruby [#ruby]
wuzzzzaah has quit [Ping timeout: 256 seconds]
CodeVision has joined #ruby
ryanf has joined #ruby
bradhe has joined #ruby
lggr has joined #ruby
phelps is now known as phelps-realmac
phelps-realmac is now known as phelps
snorkdude has quit [Remote host closed the connection]
macmartine has joined #ruby
rasbonics has quit [Quit: rasbonics]
nanderoo has quit [Quit: Leaving.]
arietis has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 245 seconds]
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
obryan has quit [Quit: Konversation terminated!]
snearch has joined #ruby
ABK has joined #ruby
jrist-afk is now known as jrist
rakm has quit [Ping timeout: 252 seconds]
snorkdude has joined #ruby
c0rn_ has quit [Quit: Computer has gone to sleep.]
aristidesfl has joined #ruby
keppy has joined #ruby
thone_ has joined #ruby
neku has quit [Ping timeout: 252 seconds]
lggr has joined #ruby
rakm has joined #ruby
horofox has joined #ruby
GoHuyGo has quit [Quit: Leaving]
snorkdude has quit [Remote host closed the connection]
thone has quit [Ping timeout: 252 seconds]
<shevy> hi michael_mbp
jamesaxl has joined #ruby
<jamesaxl> hi
lggr has quit [Ping timeout: 260 seconds]
<jamesaxl> do you have any module for MSN ?
<avalarion> If I remove the line out of the .erb and restart the apache ( using passenger right now ) the error still exists and it says that in the line i edited nothing changed... What do I have to do?
deadghost has quit [Ping timeout: 240 seconds]
timrom_ has quit [Ping timeout: 245 seconds]
ryannielson has joined #ruby
JohnBat26 has joined #ruby
explody has quit [Ping timeout: 248 seconds]
uris has quit [Ping timeout: 240 seconds]
lggr has joined #ruby
<duracrisis> n
ztirf has joined #ruby
uris has joined #ruby
cody-- has quit [Remote host closed the connection]
<shevy> jamesaxl a ruby module for MSN? dont think so... but if it is web-based you should be able to write it... also look at mechanize (google for: ruby mechanize)
wobr has quit [Quit: Leaving.]
bradhe has quit [Remote host closed the connection]
c0rn_ has joined #ruby
bradhe has joined #ruby
cody-- has joined #ruby
triptec has joined #ruby
matthewrobbins has joined #ruby
<jamesaxl> shevy, thank you very much
c0rn_ has quit [Client Quit]
jgrevich_ has joined #ruby
neku has joined #ruby
johnlcox has quit [Quit: Computer has gone to sleep.]
tyfighter has joined #ruby
mneorr has quit [Remote host closed the connection]
jgrevich has quit [Ping timeout: 264 seconds]
jgrevich_ is now known as jgrevich
lggr has quit [Ping timeout: 268 seconds]
timonv has quit [Remote host closed the connection]
mneorr has joined #ruby
iocor has joined #ruby
Xeago has quit [Remote host closed the connection]
<avalarion> How am I able to solve this gem install block? http://pastebin.com/nPHnXcWq
Goles has joined #ruby
neku has quit [Ping timeout: 240 seconds]
ryannielson has quit [Quit: ryannielson]
Vainoharhainen has joined #ruby
c0rn_ has joined #ruby
johnlcox has joined #ruby
topriddy has quit [Quit: Leaving.]
cody-- has quit [Quit: node-irc says goodbye]
phelps has quit [Quit: Linkinus - http://linkinus.com]
cody-- has joined #ruby
cody-- has quit [Client Quit]
mikeg has joined #ruby
cody--1 has joined #ruby
cody-- has joined #ruby
machty has quit [Ping timeout: 252 seconds]
cody-- has quit [Remote host closed the connection]
cody--1 has quit [Remote host closed the connection]
asdfqwer has quit [Quit: Lost terminal]
<shevy> `libpq-fe.h' -> `/pkg/Postgresql/9.1.5/include/libpq-fe.h'
<shevy> avalarion, you lack the .h files for postgresql
Iszak has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
machty has joined #ruby
<avalarion> shevy, Reading helps of course... this should be done by my portage, I guess :-/
mbk has joined #ruby
cody--1 has joined #ruby
cody-- has joined #ruby
Drewch has quit [Ping timeout: 260 seconds]
sagax has joined #ruby
cody--1 has quit [Client Quit]
cody-- has quit [Client Quit]
lggr has joined #ruby
nirc has joined #ruby
ry4nn has joined #ruby
kaushik_ has quit [Ping timeout: 264 seconds]
tyfighter has quit [Quit: tyfighter]
eldariof has quit []
abionic has joined #ruby
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
nimred has joined #ruby
nimred has quit [Changing host]
nimred has joined #ruby
kenfdev has joined #ruby
tyfighter has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
nirc has quit [Remote host closed the connection]
macmartine has quit [Quit: Computer has gone to sleep.]
ABK has quit [Ping timeout: 252 seconds]
mark_locklear has quit [Quit: Leaving]
bigoldrock has joined #ruby
Drewch has joined #ruby
robozahn has joined #ruby
Guest64548 has quit [Ping timeout: 240 seconds]
kenfdev has quit [Ping timeout: 240 seconds]
abionic has quit [Read error: Connection reset by peer]
abionic has joined #ruby
c0rn_ has quit [Quit: Computer has gone to sleep.]
Speed has joined #ruby
Speed has quit [Changing host]
Speed has joined #ruby
heisenmink has quit [Remote host closed the connection]
deadghost has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
headius has joined #ruby
lggr has joined #ruby
matthewrobbins has quit [Quit: matthewrobbins]
answer_42 has quit [Quit: WeeChat 0.3.8]
answer_42 has joined #ruby
Axsuul has joined #ruby
Axsuul has quit [Excess Flood]
Axsuul has joined #ruby
Axsuul has quit [Excess Flood]
michael_mbp_ has joined #ruby
Axsuul has joined #ruby
Axsuul has quit [Excess Flood]
minijupe has quit [Quit: minijupe]
Axsuul has joined #ruby
Axsuul has quit [Excess Flood]
michael_mbp has quit [Ping timeout: 244 seconds]
abionic has quit [Read error: Connection reset by peer]
michael_mbp_ is now known as michael_mbp
jenrzzz has joined #ruby
Axsuul has joined #ruby
Axsuul has quit [Excess Flood]
emmanuelux has quit [Quit: emmanuelux]
Axsuul has joined #ruby
Axsuul has quit [Excess Flood]
Axsuul has joined #ruby
Axsuul has quit [Excess Flood]
abionic has joined #ruby
Axsuul has joined #ruby
Axsuul has quit [Excess Flood]
Axsuul has joined #ruby
emmanuelux has joined #ruby
Axsuul has quit [Excess Flood]
goraxe has joined #ruby
Axsuul has joined #ruby
Axsuul has quit [Excess Flood]
Axsuul has joined #ruby
Axsuul has quit [Excess Flood]
Axsuul has joined #ruby
Axsuul has quit [Excess Flood]
Chryson has joined #ruby
Axsuul has joined #ruby
lggr has quit [Ping timeout: 255 seconds]
duard has quit [Remote host closed the connection]
havenn has joined #ruby
joelsbeard has joined #ruby
schaerli has quit [Remote host closed the connection]
lggr has joined #ruby
<shevy> avalarion you use gentoo? rking here does too, he is a gentoo guru
<matti> ;d
<matti> He is not here.
<matti> He is busy compiling.
<matti> ;d
<shevy> LOL
yalue has quit [Quit: Leaving]
robustus has quit [Quit: ZNC - http://znc.in]
GoGoGarrett has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 244 seconds]
aaronmacy has quit [Ping timeout: 252 seconds]
blazes816 has joined #ruby
ltsstar has quit [Quit: ltsstar]
walbert has joined #ruby
Xeago has joined #ruby
<avalarion> :-P Even Gentoo knows threading
kevinnewesil has quit [Ping timeout: 255 seconds]
kevinnewesil has joined #ruby
Devel has joined #ruby
<Devel> Hola
beneggett has quit [Quit: Computer has gone to sleep.]
johnlcox has quit [Quit: Computer has gone to sleep.]
mbk has quit [Ping timeout: 256 seconds]
Devel has left #ruby [#ruby]
JohnBat26 has quit [Remote host closed the connection]
timonv has joined #ruby
<davidcelis> i've done some pretty sweet threading in my day
<davidcelis> cross stitched an owl back in 8th grade
timonv has quit [Remote host closed the connection]
c0rn_ has joined #ruby
mneorr has quit [Remote host closed the connection]
timonv has joined #ruby
mneorr has joined #ruby
mucker has quit [Read error: Connection reset by peer]
lggr has joined #ruby
kevinnewesil has quit [Read error: Connection reset by peer]
joast has joined #ruby
mucker has joined #ruby
kevinnewesil has joined #ruby
Vainoharhainen has quit [Quit: Leaving...]
timonv has quit [Remote host closed the connection]
boris317 has quit [Quit: Computer has gone to sleep.]
timonv has joined #ruby
specialGuest has joined #ruby
pricees has quit [Ping timeout: 268 seconds]
pricees_ has quit [Ping timeout: 244 seconds]
nwest has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
boris317 has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
hbpoison has joined #ruby
malkomalko has joined #ruby
snearch has quit [Quit: Verlassend]
timonv has quit [Ping timeout: 240 seconds]
snorkdude has joined #ruby
johnlcox has joined #ruby
gfontenot has quit []
kpshek has quit [Ping timeout: 240 seconds]
jjbohn is now known as jjbohn|afk
Neil_ has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
beneggett has joined #ruby
lggr has joined #ruby
Goles has quit [Read error: Connection reset by peer]
hbpoison has quit [Ping timeout: 246 seconds]
bradhe has quit [Remote host closed the connection]
apok_ has joined #ruby
chrismcg is now known as zz_chrismcg
pricees has joined #ruby
minijupe has joined #ruby
<Paradox> i like pigeons
mucker has quit [Ping timeout: 240 seconds]
answer_42 has quit [Quit: WeeChat 0.3.8]
cakehero has joined #ruby
sailias has quit [Ping timeout: 246 seconds]
<matti> Paradox: Penguins!
<Paradox> i like pigeons
bradhe has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
apok has quit [Ping timeout: 244 seconds]
apok_ is now known as apok
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby
hadees has quit [Quit: hadees]
internet_user has quit [Remote host closed the connection]
khakimov has quit [Quit: Computer has gone to sleep.]
pricees_ has joined #ruby
apok has quit [Read error: Connection reset by peer]
shiki has joined #ruby
apok has joined #ruby
lggr has joined #ruby
mmitchell has joined #ruby
<invisime> I'm heading home.
<invisime> I'll be online later while working on getting al2o3cr working. :-)
invisime has quit [Quit: Leaving.]
kenfdev has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
codepete has joined #ruby
kirun_ has joined #ruby
jgrevich_ has joined #ruby
havenn has quit [Remote host closed the connection]
ZachBeta has quit [Quit: Computer has gone to sleep.]
jgrevich has quit [Read error: Operation timed out]
jgrevich_ is now known as jgrevich
kirun_ has quit [Client Quit]
adamkittelson has quit [Remote host closed the connection]
headius has quit [Quit: headius]
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
kirun has quit [Ping timeout: 252 seconds]
lggr has quit [Ping timeout: 240 seconds]
cakehero has quit [Quit: Computer has gone to sleep.]
statarb3 has quit [Quit: Leaving]
kpshek has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
canton7 has joined #ruby
triptec has quit [Quit: triptec]
apok has quit [Read error: Connection reset by peer]
matthewrobbins has joined #ruby
apok has joined #ruby
kevinnewesil has quit [Read error: Connection reset by peer]
ncr100 has quit [Read error: Connection reset by peer]
kevinnewesil has joined #ruby
ken_barber1 has joined #ruby
lggr has joined #ruby
specialGuest has quit [Ping timeout: 252 seconds]
Jamone is now known as Monie
mklappstuhl has joined #ruby
bradhe has quit [Remote host closed the connection]
snorkdude has quit [Remote host closed the connection]
jonathanwallace has quit [Remote host closed the connection]
adelcampo has joined #ruby
ken_barber has quit [Ping timeout: 240 seconds]
nicoulaj has quit [Remote host closed the connection]
aristidesfl has quit []
aristidesfl has joined #ruby
ncr100 has joined #ruby
sbinetd has joined #ruby
phinfonet has joined #ruby
nsmgo has quit [Read error: Connection reset by peer]
sbinetd has quit [Remote host closed the connection]
jjbohn|afk is now known as jjbohn
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
mmitchell has quit [Remote host closed the connection]
troessner has quit [Quit: Leaving]
lggr has quit [Ping timeout: 252 seconds]
justinmcp has quit [Remote host closed the connection]
sbinetd has joined #ruby
eikko has joined #ruby
sbinetd has quit [Client Quit]
hadees has joined #ruby
sbinetd has joined #ruby
lggr has joined #ruby
matthewrobbins has quit [Quit: matthewrobbins]
kenfdev has quit [Ping timeout: 240 seconds]
mmitchell has joined #ruby
specialGuest has joined #ruby
sbinetd has quit [Remote host closed the connection]
snorkdude has joined #ruby
taypen has quit [Quit: Leaving]
phinfonet has quit [Quit: Linkinus - http://linkinus.com]
lggr has quit [Ping timeout: 246 seconds]
ph^ has quit [Remote host closed the connection]
phinfonet has joined #ruby
Criztian has quit [Remote host closed the connection]
ph^ has joined #ruby
minijupe has quit [Quit: minijupe]
mbk has joined #ruby
<Sargun> What's the cost of a require
Morkel has quit [Quit: Morkel]
<davidcelis> about $5.73
fubada- has joined #ruby
<shadoi> $6.39 adjusted for inflation since release date.
maletor has quit [Quit: Computer has gone to sleep.]
<fubada-> hi folks, can someone help me with a one liner? Imagine you have a dir full of imap emails, how do i print the email address it was sent to, if the body contains "would like to stay in touch"
<davidcelis> i remember the days when you could require for only 5¢
<davidcelis> :(
rutkla has quit [Read error: Connection reset by peer]
<shadoi> Sargun: seriously though, if you're really curious, run your code via strace and look at all the IO operations it does.
<fubada-> ruby -ne 'if $_ =~ /would like to stay in touch/; puts X?X?X?X?X? ; *.myimapfiles
c0rn_ has quit [Quit: Computer has gone to sleep.]
<fubada-> but im not sure how to get the "Sent:" from the inside if
carloslopes has quit [Quit: Leaving.]
w400z has joined #ruby
<Sargun> If something is require'd, will ruby reload it?
sailias has joined #ruby
<shadoi> no
nga4 has quit []
malkomalko has quit [Remote host closed the connection]
kvirani has quit [Remote host closed the connection]
<Sargun> okay, so there is actually no inherent cost in putting the require in the method, other than an expensive first load?
c0rn_ has joined #ruby
<shadoi> correct
ztirf has quit [Ping timeout: 252 seconds]
<shadoi> if you put it in the method you may introduce behavior changes at runtime, which you should be very careful of.
<shadoi> lazy loading a require that monkey patches something is a nightmare.
<shadoi> s/is/can be/
bradhe has joined #ruby
asteve has quit []
evilsushi has quit [Quit: Lost terminal]
graft has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
gfontenot has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
<graft> anyone help me out with a regexp? I have a thing which is either like "X(Y)" or just like "X", and I'd like to capture X and Y
<graft> all the nested parentheses are confusing me
<davidcelis> are X and Y only one character each?
<davidcelis> what kind of character can they be?
<davidcelis> kinda vague
<graft> .*
timonv has joined #ruby
fantazo has joined #ruby
<boris317> anything followed by anything wrapped in parens?
<graft> well, [^()]
<boris317> or just anything
billyoc has quit [Remote host closed the connection]
phinfonet has quit [Quit: Linkinus - http://linkinus.com]
ry4nn has quit [Remote host closed the connection]
<graft> basically i need to capture within an optional group, and i'm not sure how to do that
lggr has joined #ruby
Agis__ has quit [Quit: Agis__]
gfontenot has quit [Client Quit]
specialGuest has quit [Ping timeout: 252 seconds]
<boris317> what can X be?
<graft> oh wait never mind, i can just make the optional group non-capturing... (.*?)(?:\((.*)\))?
spopescu has joined #ruby
spopescu has left #ruby [#ruby]
ZachBeta has joined #ruby
mjbamford has joined #ruby
Xeago has quit [Remote host closed the connection]
mmitchell has quit [Remote host closed the connection]
mklappstuhl has quit [Ping timeout: 252 seconds]
<shadoi> graft: make sure to use \A and \z, and use more specific types like \w instead of .*, otherwise you're creating security holes
<boris317> graft: I think the first question mark should go after the first group?
wmoxam_ has quit [Quit: leaving]
<boris317> but it appears that regex just captures literallly anything
bwlang has left #ruby [#ruby]
macmartine has joined #ruby
<boris317> well it matches anything I should say
maletor has joined #ruby
baphled has quit [Ping timeout: 256 seconds]
mjbamford has quit [Quit: Bye!]
rmcafee has quit [Quit: rmcafee]
lggr has quit [Ping timeout: 240 seconds]
mneorr_ has joined #ruby
stkowski has quit [Quit: stkowski]
lggr has joined #ruby
ken_barber1 has quit [Remote host closed the connection]
gfontenot has joined #ruby
mneorr has quit [Ping timeout: 245 seconds]
c0rn_ has quit [Quit: Computer has gone to sleep.]
horofox has quit [Quit: horofox]
pettsson has quit [Read error: Connection reset by peer]
frogprince_mac has quit [Quit: Leaving...]
conor_ireland has joined #ruby
havenn has joined #ruby
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
sailias has quit [Quit: Leaving.]
lggr has quit [Ping timeout: 244 seconds]
levieraf has quit [Remote host closed the connection]
haxrbyte has joined #ruby
kpshek has quit []
c0rn_ has joined #ruby
headius has joined #ruby
sailias has joined #ruby
lggr has joined #ruby
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
invisime has joined #ruby
bbttxu has quit [Quit: bbttxu]
specialGuest has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 246 seconds]
theRoUS_ has quit [Ping timeout: 264 seconds]
mmitchell has joined #ruby
w400z has quit [Quit: Computer has gone to sleep.]
sailias has quit [Quit: Leaving.]
cpruitt has joined #ruby
timonv has quit [Ping timeout: 255 seconds]
sebastorama has joined #ruby
foofoobar has quit [Quit: Computer has gone to sleep]
lggr has joined #ruby
c0rn_ has quit [Quit: Computer has gone to sleep.]
mmitchell has quit [Ping timeout: 240 seconds]
swarley has quit [Read error: Operation timed out]
mneorr_ has quit [Remote host closed the connection]
c0rn_ has joined #ruby
podde has joined #ruby
mneorr has joined #ruby
ngoldman has joined #ruby
abionic has quit [Read error: Connection reset by peer]
abionic has joined #ruby
tjbiddle has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
johnlcox has quit [Read error: Operation timed out]
philcrissman has quit [Remote host closed the connection]
<fubada-> can someone help me figure out a one liner?
specialGuest has quit [Quit: WeeChat 0.3.8]
<fubada-> I need to print a line matching regex only if theres already a different line matching anothe regex in this file
<fubada-> and my brain is bleeding thinking of how to do this
* fubada- newb
<Spooner> fubada- : Isn't easy to guess what you actually want, fubada-
banisterfiend` has quit [Read error: Connection reset by peer]
nari has joined #ruby
<fubada-> i need to scan all files in dir for "would like to stay in touch" and print a line matching "Sent:"
<Spooner> And if it is too complicated, doing it in more than one line can help.
<fubada-> if the "would like to stay in touch" is found
lggr has joined #ruby
specialGuest has joined #ruby
specialGuest has joined #ruby
specialGuest has quit [Changing host]
<Spooner> puts "Bleh" if Dir["bleh/*.txt"].any? {|f| f.read =~ /blehbleh/ }
notVert has quit [Read error: Connection reset by peer]
davidcelis has quit [Quit: K-Lined.]
tommyvyo has quit [Quit: Computer has gone to sleep.]
ohcibi has quit [Ping timeout: 246 seconds]
pskosinski has quit [Ping timeout: 264 seconds]
kenfdev has joined #ruby
ohcibi has joined #ruby
<Spooner> Probably far from efficient though.
davidcelis has joined #ruby
pskosinski has joined #ruby
<fubada-> thank you
mjbamford has joined #ruby
<fubada-> ill work ith tat
robertbird has joined #ruby
khakimov has joined #ruby
<fubada-> that
snorkdude has quit [Remote host closed the connection]
emanu has quit [Quit: emanu]
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
pskosinski has left #ruby [#ruby]
kenfdev has quit [Ping timeout: 240 seconds]
lggr has quit [Ping timeout: 268 seconds]
<fubada-> it doesnt like f.read NomEthodError
kevinnewesil has quit [Read error: Connection reset by peer]
Dreamer3 has joined #ruby
kevinnewesil has joined #ruby
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
kevinnewesil has quit [Client Quit]
tommyvyo has joined #ruby
<fubada-> thanks anywa
fubada- has quit [Quit: Lost terminal]
lggr has joined #ruby
jjbohn has quit [Quit: Leaving...]
erichmenge has quit [Quit: Be back later]
stopbit has quit [Quit: Leaving]
erichmenge has joined #ruby
erichmenge has quit [Client Quit]
erichmenge has joined #ruby
linguini has joined #ruby
erichmenge has quit [Client Quit]
<linguini> puts ((2 <=> 2) || (3 <=> 2)) # why is this 0 and not 1?
erichmenge has joined #ruby
robertbird has quit [Quit: robertbird]
bier has quit [Ping timeout: 252 seconds]
lggr has quit [Ping timeout: 252 seconds]
erichmenge has quit [Client Quit]
lggr has joined #ruby
hoelzro|away is now known as hoelzro
<davidcelis> because 2 <=> 2 is -
hoelzro is now known as hoelzro|away
<davidcelis> 0*
<havenn> >> 0 || 1
<davidcelis> the second one doesn't get run. 0 is truthy.
<shevy> 2 <=> 2 returns 0
<linguini> Hmm.
<shevy> 3 <=> 2 returns 1
<havenn> linguini: 0 || 1 #=> 0
<linguini> So, 0 is truthy in ruby? Hmm.
<shevy> so you have puts (0 || 1)
<davidcelis> linguini: everything is truthy except for `nil` and `false`
<invisime> linguini: yeah, it's one of the gotchas.
beneggett has joined #ruby
<linguini> What I'm really after is
banisterfiend` has joined #ruby
<linguini> ary.sort { |a,b| a.x <=> b.x || a.y <=> b.y } # sort on x, then on y
<linguini> But if 0 is not false, then obviously that won't work. Hmm.
<davidcelis> ary.sort { |a,b| a.x <=> b.x }.sort { |a,b| a.y <=> b.y } # maybe?
<davidcelis> dunno, havent tried to do double sorting in ruby
<shevy> well you have to use a model where <=> works
<shevy> 0 <=> 1 # => -1, 0 <=> 0 # => 0, 0 <=> -1 # => 1
SCommette has quit [Quit: SCommette]
iocor has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<havenn> linguini: why use spaceship operator? a.x == b.x || a.y > b.y
SCommette has joined #ruby
<havenn> linguini: nevermind
<invisime> havenn: that only takes care of the case where x == x.
<linguini> Hmm. I should say, "sort on x, and if x'es are equal, then sort on y"
SCommette has quit [Client Quit]
<invisime> linguini: ary.sort { |a,b| a.x == b.x ? a.y <=> b.y : a.x <=> b.x }
<invisime> I think that's the best you'll be able to do. :-/
<linguini> invisime: Ah, thanks! That looks close enough. I think the previous idiom came from perl or some similar 0 == false language.
<invisime> linguini: no problem. :-)
Foxandxss has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
snorkdude has joined #ruby
Juul has joined #ruby
nari has quit [Ping timeout: 244 seconds]
hbpoison has joined #ruby
uris has quit [Quit: leaving]
bier has joined #ruby
w400z has joined #ruby
haxrbyte has quit [Remote host closed the connection]
kiyoura has joined #ruby
haxrbyte has joined #ruby
justinmcp has joined #ruby
piotr__ has quit [Ping timeout: 240 seconds]
lggr has joined #ruby
skogis has quit [Ping timeout: 246 seconds]
haxrbyte_ has joined #ruby
hbpoison has quit [Ping timeout: 246 seconds]
timonv has joined #ruby
codepete has quit [Read error: Connection reset by peer]
aantix_ has joined #ruby
haxrbyt__ has joined #ruby
busybox42 has quit [Quit: Leaving.]
pricees_ has quit [Quit: leaving]
ngoldman has quit [Remote host closed the connection]
aantix has quit [Ping timeout: 264 seconds]
aantix_ is now known as aantix
busybox42 has joined #ruby
haxrbyte has quit [Ping timeout: 252 seconds]
haxrbyte_ has quit [Ping timeout: 240 seconds]
lggr has quit [Ping timeout: 260 seconds]
conor_ireland has quit [Quit: conor_ireland]
jenrzzz has joined #ruby
haxrbyt__ has quit [Ping timeout: 252 seconds]
Mon_Ouie has quit [Ping timeout: 272 seconds]
berserkr has quit [Quit: Leaving.]
budha has quit []
lggr has joined #ruby
awarner has quit [Remote host closed the connection]
chrisja has quit [Quit: leaving]
luckyruby has quit [Remote host closed the connection]
pricees has quit [Ping timeout: 252 seconds]
roadt has joined #ruby
ngoldman has joined #ruby
derpops has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
mjbamford has quit [Remote host closed the connection]
Dreamer3 has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 252 seconds]
Chryson has quit [Ping timeout: 245 seconds]
Dreamer3 has joined #ruby
derpops has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mrdodo has quit [Remote host closed the connection]
billycravens has quit [Quit: Leaving...]
ephemerian has joined #ruby
evilsushi has joined #ruby
sebastorama has quit [Quit: Computer has gone to sleep.]
lggr has joined #ruby
Synthead has quit [Quit: p33 ba115]
chendo has quit [Ping timeout: 244 seconds]
stim371 has quit [Quit: stim371]
Juul has quit [Ping timeout: 240 seconds]
justsee has quit [Quit: Leaving...]
chendo has joined #ruby
gfontenot has quit []
lggr has quit [Ping timeout: 246 seconds]
mmitchell has joined #ruby
freeayu has joined #ruby
yekta has joined #ruby
banseljaj is now known as imami|afk
kenfdev has joined #ruby
mmitchell has quit [Ping timeout: 244 seconds]
bradhe_ has joined #ruby
sebastorama has joined #ruby
lggr has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
gfontenot has joined #ruby
JustinCampbell has quit [Remote host closed the connection]
kenfdev has quit [Ping timeout: 240 seconds]
binaryplease has quit [Ping timeout: 264 seconds]
binaryplease has joined #ruby
mrdodo has joined #ruby
jgarvey has quit [Quit: Leaving]
lggr has quit [Ping timeout: 248 seconds]
jasonkuhrt has joined #ruby
jasonkuhrt has quit [Client Quit]
LouisGB has quit [Ping timeout: 244 seconds]
shadoi has quit [Ping timeout: 260 seconds]
GraemeLion has joined #ruby
cbuxton has joined #ruby
lggr has joined #ruby
Khol_ has quit [Ping timeout: 264 seconds]
mercwithamouth has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
mikeg has quit [Ping timeout: 244 seconds]
havenn has quit [Remote host closed the connection]
khakimov has quit [Quit: Computer has gone to sleep.]
havenn has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
seanstickle has joined #ruby
`brendan has joined #ruby
Khol has joined #ruby
LouisGB has joined #ruby
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
chrishunt has quit [Ping timeout: 264 seconds]
havenn has quit [Ping timeout: 245 seconds]
lggr has joined #ruby
mva3212 has quit [Remote host closed the connection]
kenfdev has joined #ruby
Juul has joined #ruby
idletom has quit [Ping timeout: 245 seconds]