apeiros changed the topic of #ruby to: Ruby 2.1.0-p0; 2.0.0-p353; 1.9.3-p484: http://ruby-lang.org|| Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
aspires has joined #ruby
venkat has joined #ruby
sassamo_ has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 260 seconds]
duggiefresh has quit [Remote host closed the connection]
venkat has quit [Read error: Connection reset by peer]
venkat has joined #ruby
<lethjakman> is there a way to easily split text into 160 characters and iterate over each piece of that text?
apeiros has quit [Read error: Connection reset by peer]
nifty has quit [Ping timeout: 260 seconds]
dodosan has quit [Ping timeout: 272 seconds]
carif has joined #ruby
_maes_ has quit [Ping timeout: 265 seconds]
venkat_ has joined #ruby
venkat has quit [Read error: Connection reset by peer]
<bnagy> yes
geggam has quit [Remote host closed the connection]
<bnagy> you should check out the Enumerable module, every rubyist should know it
<crocket> Does anyone use buildr?
coder_neo has quit [Quit: Leaving]
senj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<krainboltgreene> Hanmac: That is both the best thing and the worst thing ever.
venkat has joined #ruby
jhn has joined #ruby
<krainboltgreene> I like being able to do that, I hate how much syntax and surprise it adds.
venkat_ has quit [Read error: Connection reset by peer]
<Hanmac> lethjakman: .scan(/.{0,160}/) should return what you want
lethjakman has quit [Ping timeout: 246 seconds]
RKornmeyer_ is now known as RKornmeyer
<bnagy> or str.chars.each_slice(160)
<bnagy> which is way more readable and doesn't rely on what regexp thinks '.' is
venkat has quit [Read error: Connection reset by peer]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lethjakman has joined #ruby
venkat has joined #ruby
<bnagy> is it a codepoint? Is it an ascii char? WHO KNOWS?
Lewix has joined #ruby
Megtastique has quit []
drumusician has quit [Read error: Connection reset by peer]
Hanmac1 has joined #ruby
<lethjakman> hey, I sent a message but I'm not sure if it actually sent...my internet is being finicky
drumusician has joined #ruby
<lethjakman> I'm trying to split a string into 160 char bits, is there a good easy way to do that?
venkat has quit [Read error: Connection reset by peer]
venkat has joined #ruby
<bnagy> we had the whole discussion
skulker has quit [Remote host closed the connection]
<bnagy> you missed it :)
banjara has joined #ruby
<lethjakman> oh
<lethjakman> crap
<lethjakman> ummmm. what was the solution?
<bnagy> 07:56 < Hanmac> lethjakman: .scan(/.{0,160}/) should return what you want
skulker has joined #ruby
<bnagy> 07:57 < bnagy> or str.chars.each_slice(160)
<lethjakman> hrm wouldn't a regex be slow for this?
<bnagy> fwiw I think the regex approach sux
<Hanmac1> or str.each_char.each_slice(160)
<bnagy> but if I had to guess I would think the regex will be faster
Hanmac has quit [Ping timeout: 248 seconds]
<Hanmac1> but beware! the each_slice yields Array, scan return Strings
<lethjakman> bnagy: why's that?
Hanmac1 is now known as Hanmac
<lethjakman> hrm....
venkat_ has joined #ruby
venkat has quit [Read error: Connection reset by peer]
<bnagy> it's a good regex engine now afaik
<bnagy> also true
|RicharD| has quit [Read error: Connection reset by peer]
venkat_ has quit [Read error: Connection reset by peer]
Davey has quit [Quit: Computer has gone to sleep.]
venkat has joined #ruby
m00nlight has quit [Quit: Konversation terminated!]
|RicharD| has joined #ruby
<lethjakman> when I do "blah".chars.each_slice(160) do |s| puts s; end; it returns each character individually
venkat has quit [Read error: Connection reset by peer]
<lethjakman> am I using that wrong?
skulker has quit [Ping timeout: 272 seconds]
<bnagy> yes that's what Hanmac just said
venkat has joined #ruby
<bnagy> you have to join them again if you want them as a string
dkamioka has quit [Remote host closed the connection]
phipes has joined #ruby
<lethjakman> ohhh so each array is 160 chars
dkamioka has joined #ruby
<bnagy> except (probably) the last one
Hanmac has quit [Ping timeout: 260 seconds]
venkat has quit [Read error: Connection reset by peer]
benzrf has joined #ruby
venkat has joined #ruby
dkamioka has quit [Remote host closed the connection]
venkat has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
venkat has joined #ruby
dkamioka has joined #ruby
kitak has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
Hanmac has joined #ruby
<lethjakman> sorry, this may be a stupid question. but I have this:
<lethjakman> "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa".split(/.{0,160}/)
moted has quit [Read error: No route to host]
<lethjakman> and it returns an empty array
<benzrf> lethjakman: greedy
<benzrf> it will try to match as much as possible
<bnagy> you meant scan
<benzrf> so it sees the whole string as a separator
<lethjakman> oh
venkat has quit [Read error: Connection reset by peer]
<lethjakman> ugh
<lethjakman> you're right
<lethjakman> thank you
moted has joined #ruby
<benzrf> lewellyn: hey did you see that i stopped working on legend
venkat has joined #ruby
<lethjakman> thank youthank you too benzrf :)
<benzrf> np
<lethjakman> what's legend?
<lethjakman> so...it returns another empty string at the end. is there a way to stop that?
<benzrf> it was a thingy for zelda-type custom dungeons and stuff but then i found out about something called 'zelda classic' which is basically similar to what i was aiming for
<benzrf> lethjakman: what exactly do you mean?
<benzrf> lethjakman: oh
skulker has joined #ruby
deens has joined #ruby
<lethjakman> benzrf: try running my exact string
<benzrf> lethjakman: make it 1
<benzrf> not 0
<lethjakman> ahhh got it
shime has quit [Ping timeout: 272 seconds]
<lethjakman> benzrf: that's cool, did you know that's what zelda dungeons were originally supposde to be?
<benzrf> hm>
<lethjakman> did you know gaming did a cool bit on it
venkat has quit [Read error: Connection reset by peer]
venkat has joined #ruby
<benzrf> pls link me o-o
grzywacz has quit [Ping timeout: 252 seconds]
<lewellyn> benzrf: i did not. i have not taken the time to follow up on it.
freezey has quit [Read error: Operation timed out]
<lethjakman> benzrf: ok one sec
<benzrf> lethjakman: ;p
yoshie902a has joined #ruby
<benzrf> * @lewellyn
rootshift has joined #ruby
<lewellyn> benzrf: i'm trying to finish up this enterprise app before i look at things which actually have a fun result :P
deens has quit [Read error: No route to host]
venkat_ has joined #ruby
deens has joined #ruby
<benzrf> hah
venkat has quit [Read error: Connection reset by peer]
unixpro1_ has quit [Ping timeout: 272 seconds]
deens has quit [Remote host closed the connection]
dkamioka has quit [Remote host closed the connection]
<lethjakman> oh link...
<lethjakman> lol
venkat_ has quit [Read error: Connection reset by peer]
venkat has joined #ruby
yoshie902a has left #ruby [#ruby]
katekat has joined #ruby
venkat has quit [Read error: Connection reset by peer]
venkat has joined #ruby
tyl has joined #ruby
hiall_ has joined #ruby
mojjojo has quit [Quit: mojjojo]
punkzio has quit [Quit: Leaving]
venkat_ has joined #ruby
venkat has quit [Read error: Connection reset by peer]
mklappstuhl has joined #ruby
mojjojo has joined #ruby
bradhe has joined #ruby
habanany has quit [Ping timeout: 265 seconds]
venkat has joined #ruby
venkat_ has quit [Read error: Connection reset by peer]
Searo has joined #ruby
zxd has quit [Ping timeout: 248 seconds]
speakingcode has quit [Ping timeout: 248 seconds]
RubNoob has joined #ruby
RubNoob has quit [Client Quit]
mojjojo has quit [Client Quit]
Davey has joined #ruby
venkat has quit [Read error: Connection reset by peer]
venkat has joined #ruby
mklappstuhl has quit [Ping timeout: 260 seconds]
larissa has quit [Quit: Leaving]
venkat has quit [Read error: Connection reset by peer]
MatthewsFace has joined #ruby
venkat has joined #ruby
bradhe has quit [Ping timeout: 265 seconds]
heidi has joined #ruby
VTLob has quit [Quit: VTLob]
mojjojo has joined #ruby
mary5030 has joined #ruby
venkat_ has joined #ruby
venkat has quit [Read error: Connection reset by peer]
nhhagen has quit [Remote host closed the connection]
Lorn_ is now known as Lorn
Lorn has quit [Changing host]
Lorn has joined #ruby
predator117 has joined #ruby
mspah_ has joined #ruby
venkat_ has quit [Read error: Connection reset by peer]
sambao21 has quit [Ping timeout: 252 seconds]
venkat has joined #ruby
venkat has quit [Read error: Connection reset by peer]
v0n has quit [Read error: Operation timed out]
ewnd9 has joined #ruby
mojjojo has quit [Client Quit]
bigkevmcd has joined #ruby
venkat has joined #ruby
Guest6721 has quit [Remote host closed the connection]
styped has joined #ruby
predator217 has quit [Ping timeout: 260 seconds]
tjbiddle has quit [Quit: tjbiddle]
agent_white has quit [Read error: Connection reset by peer]
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
mojjojo has joined #ruby
agent_white has joined #ruby
benzrf is now known as benzrf|totallyaf
venkat_ has joined #ruby
<benzrf|totallyaf> crap
benzrf|totallyaf is now known as benzrf|totalyafk
heidi has quit [Quit: Leaving.]
agent_white has quit [Read error: Connection reset by peer]
MatthewsFace has quit [Quit: This computer has gone to sleep]
mspah_ has quit [Client Quit]
<benzrf|totalyafk> bbloom:
<benzrf|totalyafk> *bbl
MatthewsFace has joined #ruby
mspah_ has joined #ruby
<centrx> benzrf|totalyafk, gj
venkat has quit [Read error: Connection reset by peer]
<centrx> Lewix, How is it going
<Lewix> hey centrx
venkat_ has quit [Read error: Connection reset by peer]
venkat has joined #ruby
<Radar> How do I find the path of an asset that sass-rails is going to load with an @import "variables" call?
<Radar> I have a variables CSS file within my engine, which should be overriden by the one in the application. That does not appear to be the case.
atmosx has quit [Quit: Lost in trance]
venkat_ has joined #ruby
venkat has quit [Read error: Connection reset by peer]
v0n has joined #ruby
mojjojo has quit [Client Quit]
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
bbttxu has joined #ruby
justinbleeber has quit [Quit: Textual IRC Client: www.textualapp.com]
banjara has quit [Quit: Leaving.]
agent_white has joined #ruby
|RicharD| has quit [Quit: Sto andando via]
yaymukund has quit [Ping timeout: 272 seconds]
venkat_ has quit [Read error: Connection reset by peer]
venkat has joined #ruby
blandflakes has quit [Ping timeout: 272 seconds]
banjara has joined #ruby
drumusician has quit [Ping timeout: 272 seconds]
mojjojo has joined #ruby
venkat has quit [Read error: Connection reset by peer]
venkat has joined #ruby
vlad_sta_ has quit [Ping timeout: 260 seconds]
<shevy> rails folks are on #RubyonRails, people here on #ruby not always know rails (I don't for instance)
xcv_ has joined #ruby
vlad_starkov has joined #ruby
mklappstuhl has joined #ruby
venkat_ has joined #ruby
venkat has quit [Read error: Connection reset by peer]
fgo has joined #ruby
burlyscudd has quit [Quit: Leaving.]
burlyscudd has joined #ruby
burlyscudd has quit [Remote host closed the connection]
venkat_ has quit [Read error: Connection reset by peer]
venkat has joined #ruby
xcv has quit [Ping timeout: 260 seconds]
dukz has joined #ruby
fire has joined #ruby
mojjojo has quit [Quit: mojjojo]
venkat has quit [Read error: Connection reset by peer]
mojjojo has joined #ruby
venkat has joined #ruby
skulker has quit [Remote host closed the connection]
romdi` has joined #ruby
fgo has quit [Remote host closed the connection]
nwertman has joined #ruby
mklappstuhl has quit [Ping timeout: 252 seconds]
venkat has quit [Read error: Connection reset by peer]
iamsean has quit [Quit: iamsean]
venkat has joined #ruby
St_Marx has quit [Ping timeout: 264 seconds]
romdi has quit [Ping timeout: 246 seconds]
fijimunkii has quit [Read error: Connection reset by peer]
dodosan has joined #ruby
venkat_ has joined #ruby
marr has quit [Ping timeout: 252 seconds]
banjara has quit [Quit: Leaving.]
vlad_starkov has quit [Remote host closed the connection]
venkat_ has quit [Read error: Connection reset by peer]
venkat has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
deception has quit [Quit: Goodbye]
venkat has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
ephemerian has quit [Quit: Leaving.]
Searo has left #ruby [#ruby]
venkat has quit [Read error: Connection reset by peer]
venkat has joined #ruby
m00nlight has joined #ruby
Lewix has quit [Read error: Connection reset by peer]
Lewix has joined #ruby
dodosan has quit [Ping timeout: 272 seconds]
robustus has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Remote host closed the connection]
venkat has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
gabriham_lincoln has joined #ruby
venkat has joined #ruby
fijimunkii has joined #ruby
<shevy> benzrf|totalyafk I am bored
gabriham_lincoln has quit [Remote host closed the connection]
fijimunkii has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
Davey has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
robustus has joined #ruby
venkat has quit [Read error: Connection reset by peer]
lkba has joined #ruby
venkat_ has joined #ruby
vlad_starkov has quit [Client Quit]
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby
venkat_ has quit [Read error: Connection reset by peer]
ewnd9 has quit [Read error: Operation timed out]
dukz has quit [Remote host closed the connection]
venkat has joined #ruby
vlad_starkov has joined #ruby
venkat has quit [Read error: Connection reset by peer]
venkat_ has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
skulker has joined #ruby
RoxasShadowRS has quit [Read error: Connection reset by peer]
mspah_ has quit [Quit: This computer has gone to sleep]
MatthewsFace has quit [Quit: This computer has gone to sleep]
venkat_ has quit [Read error: Connection reset by peer]
venkat has joined #ruby
tylersmith has quit [Ping timeout: 272 seconds]
jclarke has quit [Quit: Linkinus - http://linkinus.com]
venkat has quit [Read error: Connection reset by peer]
<shevy> Hanmac I fell asleep
venkat has joined #ruby
venkat has quit [Read error: Connection reset by peer]
venkat has joined #ruby
St_Marx has joined #ruby
venkat has quit [Read error: Connection reset by peer]
lfox has joined #ruby
aantix has quit [Quit: aantix]
venkat has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
mlpinit has joined #ruby
venkat has quit [Read error: Connection reset by peer]
venkat has joined #ruby
monkegjinni has quit [Remote host closed the connection]
Vitor has quit [Disconnected by services]
mklappstuhl has joined #ruby
xcv_ has quit [Remote host closed the connection]
venkat has quit [Read error: Connection reset by peer]
Vitor_ has joined #ruby
venkat has joined #ruby
burlyscudd has joined #ruby
Davey has joined #ruby
tyl has quit [Ping timeout: 272 seconds]
venkat has quit [Read error: Connection reset by peer]
venkat has joined #ruby
mklappstuhl has quit [Ping timeout: 272 seconds]
venkat has quit [Read error: Connection reset by peer]
venkat_ has joined #ruby
bradhe has joined #ruby
venkat_ has quit [Read error: Connection reset by peer]
venkat has joined #ruby
fire has quit [Ping timeout: 265 seconds]
phinfone_ has quit [Quit: exitiing]
St_Marx has quit [Ping timeout: 264 seconds]
speakingcode has joined #ruby
coca_rails has joined #ruby
Davey has quit [Quit: ZNC - http://znc.in]
nhhagen has joined #ruby
pietr0 has quit [Quit: pietr0]
bradhe has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Read error: Connection reset by peer]
pietr0 has joined #ruby
yfeldblum has joined #ruby
tyl has joined #ruby
tyl has quit [Remote host closed the connection]
recurrence has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
scarolan has quit [Ping timeout: 252 seconds]
tyl has joined #ruby
mocfive_ has quit [Remote host closed the connection]
kristiandelay has joined #ruby
nhhagen has quit [Ping timeout: 252 seconds]
yaymukund has joined #ruby
sleepee has joined #ruby
w4pm has joined #ruby
Red_Onyx has quit [Quit: Leaving]
dodosan has joined #ruby
olivier_bK has quit [Ping timeout: 252 seconds]
sparrovv has quit [Remote host closed the connection]
kristiandelay has quit [Ping timeout: 272 seconds]
Davey has joined #ruby
mojjojo has quit [Quit: mojjojo]
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
vlad_starkov has joined #ruby
_Andres has quit [Ping timeout: 246 seconds]
w4pm has quit [Ping timeout: 260 seconds]
jhn has quit [Ping timeout: 272 seconds]
wald0 has joined #ruby
nifty has joined #ruby
Davey is now known as D[a]vey
D[a]vey is now known as Davey
_Andres has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
_HolyCow1 has joined #ruby
Nerfherder has joined #ruby
Davey has quit [Quit: ZNC - http://znc.in]
fgo has joined #ruby
tyl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
duggiefresh has joined #ruby
gabriham_lincoln has joined #ruby
mklappstuhl has joined #ruby
katekat has quit [Quit: Lost terminal]
asteros has quit [Quit: asteros]
queuetip has joined #ruby
_HolyCow has quit [Ping timeout: 248 seconds]
<queuetip> what's the ruby equivelent to a php: echo $var; exit;
Davey has joined #ruby
<centrx> puts var
<centrx> ?
msx has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
<queuetip> centrx: and that will also stop the script execution at that point?
<centrx> exit
<queuetip> cool, thanks
MrJoshua has joined #ruby
IceColdMax has quit [Quit: For a hard earned thirst...]
mklappstuhl has quit [Ping timeout: 272 seconds]
Davey is now known as D[a]vey
gabriham_lincoln has quit [Remote host closed the connection]
burlyscudd has quit [Quit: Leaving.]
echevemaster_afk is now known as echevemaster
tyl has joined #ruby
monkegjinni has joined #ruby
coca_rails has quit [Remote host closed the connection]
MatthewsFace has joined #ruby
mspah_ has joined #ruby
<zastern> Anybody here familiar with the CRI gem?
<zastern> I'm not certain what this means: {Cri::CommandDSL#flag} (implies forbidden argument)
<zastern> You can use flags, so what do they mean by 'forbidden'?
nifty has quit [Ping timeout: 260 seconds]
gabriham_lincoln has joined #ruby
D[a]vey is now known as Davey
<zastern> Oh, I think it's for "options that don't take arguments". Okay then.
enebo has joined #ruby
soba has joined #ruby
monkegjinni has quit [Remote host closed the connection]
mspah_ has quit [Quit: This computer has gone to sleep]
MatthewsFace has quit [Quit: This computer has gone to sleep]
Davey has quit [Remote host closed the connection]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
asteros has joined #ruby
aspires has quit []
cafhacker has quit [Quit: Textual IRC Client: www.textualapp.com]
SilentHobo has quit [Ping timeout: 252 seconds]
danshultz has joined #ruby
jamest3 has joined #ruby
MatthewsFace has joined #ruby
mspah_ has joined #ruby
<jamest3> Would appreciate it if someone could look at my project euler ruby solution for problem #10 and explain to me how come im getting the wrong output(sieve of eratosthenes). https://gist.github.com/jamesjtong/8533129
nobitanobi has quit [Quit: Leaving]
jailbot has joined #ruby
fgo has quit [Remote host closed the connection]
kells has joined #ruby
kells is now known as Guest36442
Senjai has quit [Changing host]
Senjai has joined #ruby
zastern has quit [Quit: WeeChat 0.4.2]
Guest36442 has quit [Client Quit]
zastern has joined #ruby
kells_ has joined #ruby
burlyscudd has joined #ruby
gabriha__ has joined #ruby
kells_ is now known as kells
mklappstuhl has joined #ruby
<bnagy> why don't you refactor?
<bnagy> make seive an isolated method, then seive like 1..20 and visually inspect it?
<bnagy> also you only need to seive with up to sqrt lim
<bnagy> lots of people just hardcode a table of primes to use for that, cause dividing through with composites of stuff you already did is a waste of cycles
fgo has joined #ruby
<YOURBESTFRIEND> you know ruby has a library for prime numbers, right? https://gist.github.com/sam113101/74e8b85c087c208a3c6c
gabriham_lincoln has quit [Ping timeout: 272 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mklappstuhl has quit [Ping timeout: 246 seconds]
<bnagy> YOURBESTFRIEND: project euler is a set of exercises. Using the sieve is the entire point.
<zastern> YOURBESTFRIEND: you win best IRC nick (of the hour)
Neomex has joined #ruby
bradhe has joined #ruby
aryaching_ has joined #ruby
speakingcode has quit [Ping timeout: 264 seconds]
Neomex has quit [Client Quit]
thesheff17 has joined #ruby
aryaching_ has quit [Read error: Connection reset by peer]
<Lewix> YOURBESTFRIEND: I was gonna say capital nicknames should be forbidden
<Lewix> that's ostentatious
aryaching has quit [Ping timeout: 272 seconds]
gja has joined #ruby
aryaching has joined #ruby
enebo has quit [Quit: enebo]
vlad_starkov has joined #ruby
charliesome has joined #ruby
bradhe has quit [Ping timeout: 260 seconds]
yaymukund has quit [Ping timeout: 272 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
rootshift has joined #ruby
phipes has quit [Remote host closed the connection]
bojolo5 has joined #ruby
nycjv321 has joined #ruby
<bnagy> jamest3: also, it's not a great idea to modify a collection you're each'ing over
aryaching_ has joined #ruby
<bojolo5> 236
xybre has quit [Ping timeout: 264 seconds]
<jamest3> hmmm thanks and yeah i could just do Prime.each(1999999).inject(&:+) . i will definitely refactor first thanks bnagy
<nycjv321> Question. I am trying to simulate user load by generating HTTP requests. I've seen tools that "advertise" to generate many users. If I am able to design my application correctly, isn't the numbers of "users", and connections I generate tied down to my hardware?
coca_rails has joined #ruby
<bnagy> jamest3: Prime.each is not fulfilling the exercise
benzrf|totalyafk has quit [Ping timeout: 264 seconds]
<bnagy> unless you use it to fill your seed primes, then it's fine
benzrf has joined #ruby
<benzrf> hello
<benzrf> i think i was pinged while i was afk
aryaching has quit [Ping timeout: 260 seconds]
<benzrf> anybody know what that was
coca_rails has quit [Remote host closed the connection]
aryaching has joined #ruby
xybre has joined #ruby
<centrx> benzrf, I can't speak for everyone, but I said "good job" after you said "crap"
phipes has joined #ruby
rootshift has quit [Ping timeout: 264 seconds]
<YOURBESTFRIEND> 2014-01-20 19:42:57 centrx benzrf|totalyafk, gj
<YOURBESTFRIEND> 2014-01-20 20:04:17 shevy benzrf|totalyafk I am bored
<centrx> Looks like you have a new best friend
nhhagen has joined #ruby
aryaching_ has quit [Ping timeout: 252 seconds]
<YOURBESTFRIEND> always there to help
<benzrf> oh
<centrx> Sorry to disappoint....
<benzrf> why do you do this to me ;-;]
aryaching_ has joined #ruby
chipotle has quit [Quit: cya]
chipotle has joined #ruby
<bojolo5> somebody can help me here
<benzrf> Lewix i am looking
<bojolo5> 192.168.1.9
<bojolo5> i need help here
aryaching has quit [Ping timeout: 265 seconds]
jamest3 has quit [Remote host closed the connection]
<benzrf> bojolo5: what port
<benzrf> and what protocol
<bojolo5> please 8080
<bojolo5> u can hack me
<bojolo5> jajaja
<YOURBESTFRIEND> Lewix: no
nhhagen has quit [Ping timeout: 260 seconds]
<benzrf> Lewix: there are some valid points
<xybre> Lewix: other than flamebait, that might have been "true" as far as people could tell when it was posted in 2008, but the top answer isn't really accurate and is sort of an oversimplification, but it makes some good points.
<benzrf> Lewix: i dunno how much i entirely agree
Spami_ has quit [Quit: This computer has gone to sleep]
prc has quit [Ping timeout: 272 seconds]
<benzrf> Lewix: i guess id say...
jfoy has quit [Quit: jfoy]
<benzrf> Lewix: python is more about being simple, straightforward, obvious, and consistent
nfk has quit [Quit: yawn]
<benzrf> Lewix: sometimes at the expense of elegance or convenience
<YOURBESTFRIEND> it's not consistent
<xybre> If you want to talk philosophy, it barely touches the actual philosophy of its creators.
<benzrf> xybre: o rly
<xybre> You can't really talk about comparing Python and Ruby without talking about Perl.
<benzrf> true
queuetip has quit [Quit: leaving]
<benzrf> what is inconsistent about python tho?
skulker has quit [Remote host closed the connection]
<shevy> python 3
<benzrf> <_>
<Lewix> benzrf: i thought that was also part of ruby philosophy
<shevy> I can't stand sudden changes like print foo vs print(foo)
<centrx> Python is more C-like
yacks has joined #ruby
<shevy> and given that python is used in some build scripts, namely part of some libraries in modular xorg, this has been insanely annoying
<benzrf> Lewix: not exactly
<benzrf> Lewix: i tend to find that ruby favors convenience over purity sometimes
<shevy> ruby favours lazy people
<benzrf> it believes in there being more than one way to do things
<benzrf> and in being clever
mklappstuhl has joined #ruby
<shevy> you can do: def foo(i) vs. def foo i, and people often chose the latter because they can eliminate at least keystroke there (the last ')')
<Lewix> benzrf: remind me what's ruby philosophy
<xybre> benzrf: Matz wrote Ruby with the intention to make beautiful code, a sort of executable poetry. This influences the entire design and culture of Ruby. It inherets a lot of the "many way to express a concept" from perl.
<shevy> *one keystroke
<benzrf> right
<shevy> benzrf what would be cool would be a mix between ruby and python
<benzrf> ruthon
mlpinit has quit [Remote host closed the connection]
<shevy> that name is awful
<benzrf> yup
<Lewix> DRY
_reset has joined #ruby
<shevy> people would be ashamed to admit that they would use a language called "ruthon"
<benzrf> ha
<Lewix> ruthon aha
<benzrf> Lewix: one thing ive noticed about python vs ruby
mklappstuhl has quit [Read error: Connection reset by peer]
<shevy> Ruby code can be very elegant. It can also be very awful, you just have to look at some of the code written ~10 years ago
mklappstuhl has joined #ruby
<xybre> shevy: considering that "python" is named after the monty not the snake.. I'm impressed people aren't embarassed by that bad joke.
<shevy> yeah
<Lewix> shevy: or the code I wrote yesterday
<shevy> this I wondered too
<bnagy> as opposed to the elegance that is modern Rails
<shevy> xybre, I think back in 1995 it was kinda true
<benzrf> Lewix: given a feature that could be useful or nice to have, but could also lead to confusion or unexpected behavior
<shevy> compared to perl, python was more fun to write and maintain
<xybre> shevy: thats true, because of the perl-like expressiveness of Ruby you can do truly awful things in it.
<benzrf> Lewix: i tend to find that python will reject it, while ruby will embrace it
<shevy> yeah, matz is very experimentation happy
<shevy> so we get useless things like stabby lambda
<Lewix> I got to say, I kind like the python philosophy. it's more focus
Kricir has joined #ruby
enebo has joined #ruby
<shevy> Lewix that's why we need a language uniting the best of both worlds!
Hanmac1 has joined #ruby
<benzrf> Lewix: same-ish
<benzrf> Lewix: btw, minor example of the above
<Xuisce> shevy: hi
<benzrf> Lewix: in ruby, you can have default values for arguments
<Xuisce> Ruby ftw
<shevy> hey Xuisce - did you write more ruby in between already?
<xybre> They're opposing philosophies. You'd need a new philosophy, a more Tao and less Zen philosophy. Take the middle path.
<benzrf> Lewix: so you can say 'def foo(a, b, c=3, d=4)'
<Lewix> shevy: ruby leaves a lot of room for ugliness while attempting to be elegant. https://gist.github.com/6ewis/8522961
<Xuisce> shevy: I'm starting tommorow
<centrx> benzrf, Python can do that...
<benzrf> Lewix: you can do the same thing in python
<shevy> and benzrf have you finally found a new project? you keep on talking about zelda but it's like a month ago since you stopped on it, it is time for you to find a new project and release a GEM
<benzrf> Lewix: in python, you cannot have a required argument after one with a default
<benzrf> Lewix: so you can't do this:
<shevy> xybre you sound like a philosopher :)
<benzrf> def foo(a, b, c=3, d)
<benzrf> ^that will error in python
<shevy> yes, you also miss a :
<benzrf> because if you say 'foo(1, 2, 3)', there is more than one way you could fill the args
<xybre> shevy: Maybe a little :)
<benzrf> and that is a new detail
IceDragon has quit [Read error: No route to host]
<benzrf> python rejects this
<benzrf> in ruby, though
<benzrf> that code is fine
<benzrf> and if you only give 3 args, what happens?
<YOURBESTFRIEND> def list_of_unique_nbr_of_meter_readings_and_number_of_customers_with_that_many_readings resource = nil
<YOURBESTFRIEND> oh my
_reset has quit [Ping timeout: 248 seconds]
<shevy> python is the general that leads you to win in a battle but only the one true way how it is fight
reset has quit [Ping timeout: 272 seconds]
Hanmac has quit [Ping timeout: 265 seconds]
emptymag00 has quit [Read error: Connection reset by peer]
<shevy> ruby is more like a philosophizer talking endlessly about the world, spawning ideas - and never finishing a job, because there is always a better way to do it
<shevy> *fought
<shevy> YOURBESTFRIEND I hate you :(
<shevy> you are one of those who omit () in defs
<Lewix> shevy: well said
<centrx> YOURBESTFRIEND, Yes, the method name itself is 85 characters
mklappstuhl has quit [Ping timeout: 260 seconds]
<shevy> hehe
<xybre> I omit parens in everything.
<shevy> :(
<shevy> hmm
<shevy> xybre why?
<benzrf> xybre: do you do (foo bar) over foo(bar)
<xybre> Any time it can be avoided, it should be. If you have to use parens, its probably because your code is too complex.
<shevy> lol
<centrx> Python is missing blocks, and object-oriented methods on major functionality like str() and len()
<Ponyo> ...
<shevy> def foo i
<shevy> how is that complex
atraylen has quit [Read error: Connection reset by peer]
judd7_ has quit [Ping timeout: 264 seconds]
<Lewix> shevy: do you lean towards python
<shevy> Lewix hmm not really, only parts of it are nice
Targen has quit [Read error: Operation timed out]
<shevy> I can not forgive explicit self
<xybre> shevy: exactly, you don't need them.
<shevy> but there are more people using python out there
<Ponyo> The only part of python I find nice is the part that works that i don't have to touch.
<shevy> haha
<shevy> <3 Ponyo
<Ponyo> <3
<benzrf> Lewix: i did python for something like 9 months probably
<benzrf> Lewix: before trying out ruby
kells has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<benzrf> Lewix: i still think python is cleaner and less annoyingly complicated and weird
fgo has quit [Remote host closed the connection]
<benzrf> Lewix: but in terms of getting down to business and writing code that actually does something
krz has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
<benzrf> Lewix: i find ruby significantly more pleasant
<benzrf> :)
<xybre> I keep hearing people say python is used more thna ruby, but I know more out of work pythonistas than rubyists.
<Ponyo> So far I have found Ruby to be the most pleasant language i've ever coded in
centipedefarmer has joined #ruby
<Lewix> xybre:because it was ruby sexy time. The honeymoon will be over soon
<centrx> Plus, it doesn't suck like Python
<Ponyo> ha
<benzrf> centrx: python hardly sucks
Hanmac1 has quit [Ping timeout: 272 seconds]
<benzrf> it is merely less neat than ruby
<centrx> Right now I am trying to debug a C++ network application, so it could be worse
Davey_ has joined #ruby
<Ponyo> rm is the best debugger in the world
<shevy> xybre you mean paid work?
<benzrf> rm?
asteros has quit [Quit: asteros]
<benzrf> oh lol
<shevy> Because when I look at bindings, I see the opposite - like the gnome/gtk-bindings in python are more polished and complete than the ruby ones
<Lewix> rubyists have too many philosophers
kells has joined #ruby
<Lewix> get to work people
<xybre> shevy: yes?
<shevy> also ruby-qt vs python-qt
<shevy> yeah Lewix!
kells is now known as Guest37217
<bnagy> xybre: if unemployment were a fixed percentage among programmers and your sample was unbiased then what you said would still support the opposite of your premise
wallerdev has joined #ruby
skulker has joined #ruby
Davey_ has quit [Client Quit]
<xybre> bnagy: Ah, sorry, I meant companies, not people. Here in the US we get that confused all the time.
<bnagy> out of work companies?
<benzrf> hah
<benzrf> i have to go so see you
<benzrf> but it was pleasant bikeshedding
benzrf has left #ruby [#ruby]
Davey_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<shevy> it's not bikeshedding at all!
<xybre> bnagy: Used by more companies, come on keep up :D
Spami has joined #ruby
<shevy> How productive, fast, good people are is hugely influenced by the language used
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
chipotle has quit [Quit: cya]
<bnagy> xybre: the more widely python is used by companies the more unemployed pythonistas one would expect to see
bojolo5 has left #ruby [#ruby]
wald0 has quit [Quit: Lost terminal]
<shevy> they suck anyway
Hanmac has joined #ruby
aryaching_ has quit [Ping timeout: 248 seconds]
Thanatermesis has joined #ruby
<nycjv321> This is a stupid scope question if I have method a call method b a -> will variables in a be visible in method b? e.g. a.my_variable -> b.{p my_variable} ?
aryaching has joined #ruby
* xybre shrugs
beneggett has quit [Quit: Textual IRC Client: www.textualapp.com]
* nycjv321 just figures out on his own.
fijimunkii has joined #ruby
<centrx> nycjv321, I think your pseudo-code is a little too pseudo
gja has quit [Quit: This computer has gone to sleep]
fenicks has quit [Remote host closed the connection]
tulak has quit [Quit: Leaving.]
<nycjv321> I just tried it and a.my_variable does not exist in b.
emptymag00 has joined #ruby
maletor has joined #ruby
enebo has quit [Quit: enebo]
MatthewsFace has quit [Quit: This computer has gone to sleep]
mspah_ has quit [Quit: This computer has gone to sleep]
* nycjv321 realizes why Perl isn't good to learn as a first language :)
Nerfherder has left #ruby ["So, what happens when I click this bu"]
<nycjv321> I think in Perl my_variable would've existed in b.
fenicks has joined #ruby
<xybre> nycjv321: write real example code and put it in a gist
<nycjv321> xybre: I've already found my answer. I don't think there is a reason for a gist.
phipes has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
thealch3m1st has quit [Ping timeout: 252 seconds]
yaymukund has joined #ruby
baba has joined #ruby
gja has joined #ruby
phipes has joined #ruby
thealch3m1st has joined #ruby
<xybre> Mkay
trickyhero has quit [Read error: Connection reset by peer]
baba is now known as fire_
zz_jrhorn424 is now known as jrhorn424
<shevy> nycjv321 I found that ruby sometimes makes it too easy to have really complicated things going on
seanholm has joined #ruby
<shevy> it's why I shy away of 98% metaprogramming
Davey_ has quit [Quit: Computer has gone to sleep.]
mklappstuhl has joined #ruby
saarinen has quit [Ping timeout: 272 seconds]
vlad_starkov has joined #ruby
trickyhero has joined #ruby
trickyhero has quit [Client Quit]
trickyhero has joined #ruby
Hobogrammer has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
r0nin_ has quit []
r0nin has joined #ruby
seanholm has quit [Quit: Leaving]
dodosan has quit [Remote host closed the connection]
bradhe has joined #ruby
trickyhero_ has joined #ruby
mklappstuhl has quit [Ping timeout: 272 seconds]
trickyhero_ has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
trickyhero has quit [Remote host closed the connection]
nifty has joined #ruby
<nycjv321> shevy: well its much more structured than Perl
trickyhero has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
nwertman has quit [Ping timeout: 260 seconds]
<shevy> yeah
mklappstuhl has joined #ruby
<shevy> Perl had to compete only against awk and sed
gja has joined #ruby
<shevy> so it was prettier than these two
maletor has quit [Read error: Connection reset by peer]
<nycjv321> way* prettier :)
bradhe has quit [Ping timeout: 265 seconds]
<shevy> nycjv321 for how long did you do perl?
<nycjv321> About 5-8 months.
<nycjv321> Just in school
<nycjv321> I was also doing PHP
coca_rails has joined #ruby
<nycjv321> around the same time.
<nycjv321> Now I do Java and Ruby :)
<nycjv321> but might be doing some PHP soon to help out with a site for group I particpate in.
yaymukund has quit [Ping timeout: 252 seconds]
<nycjv321> hoping they will let me use Rails though :)
<nycjv321> or maybe Sinatra*
<Ponyo> <3 Sinatra
mklappstuhl has quit [Ping timeout: 272 seconds]
<nycjv321> Ponyo: -> Great Movie!
<Ponyo> ty
<shevy> hmm
<shevy> php did something nice
nari has joined #ruby
<shevy> It was simple to build something related to the www
<Ponyo> I like php for alot of things
<Ponyo> it's just php bores me these days
<shevy> in sinatra or rails, how can you use it like php? you must understand either model/view/controllers, and/or routes
<shevy> yeah, I moved away from php to ruby
yaymukund has joined #ruby
<shevy> but ruby as a language just doesn't have the same focus on the www as php does :(
<Ponyo> that might not be such a bad thing
<xybre> shevy: just like ruby in fcgi mode in apache and use erubis for everything, voila, its just like php
<Ponyo> You can use erb with Sinatra as well
<shevy> xybre well except for the default error messages. I always get "Internal Server Error" without the specific error display
<Ponyo> have you tried Sinatra with erb?
maletor has joined #ruby
kitak_ has joined #ruby
fijimunkii has quit [Ping timeout: 260 seconds]
<nycjv321> Dude you can do anything with Sinatra.
<shevy> Ponyo yeah
<Ponyo> it's not even that so much, it's error reporting is pretty nice
habanany has joined #ruby
<xybre> shevy: with fcgi?
<shevy> xybre I think so?
kitak has quit [Ping timeout: 245 seconds]
<xybre> shevy: check this out: https://github.com/charliesome/better_errors
<shevy> hmm
fgo has joined #ruby
Spami has joined #ruby
dodosan has joined #ruby
browndawg has joined #ruby
nathancahill_ has joined #ruby
<nycjv321> if thread == Thread.current valid code?
kristiandelay has joined #ruby
<nycjv321> if thread is derived from a Thread.list.each loop?
Targen has joined #ruby
nathancahill has quit [Ping timeout: 272 seconds]
nathancahill_ is now known as nathancahill
zeade has joined #ruby
xybre has quit [Quit: WeeChat 0.3.8]
fijimunkii has joined #ruby
clevermatt has joined #ruby
Hanmac has quit [Ping timeout: 272 seconds]
coca_rails has quit [Remote host closed the connection]
<shevy> Encoding hates me #<ArgumentError: invalid byte sequence in UTF-8>
yaymukund has quit [Ping timeout: 265 seconds]
kristiandelay has quit [Ping timeout: 248 seconds]
aryaching_ has joined #ruby
havenwood has joined #ruby
nifty has quit [Ping timeout: 252 seconds]
danshultz has quit [Remote host closed the connection]
aryaching has quit [Ping timeout: 264 seconds]
sleepee has quit [Quit: Leaving]
burlyscudd has quit [Quit: Leaving.]
Davey_ has joined #ruby
mklappstuhl has joined #ruby
Hanmac has joined #ruby
nwertman has joined #ruby
aryaching has joined #ruby
fgo has quit [Remote host closed the connection]
aryaching_ has quit [Ping timeout: 272 seconds]
Guest37217 has quit [Quit: Textual IRC Client: www.textualapp.com]
skulker has quit [Remote host closed the connection]
chrisseaton has quit []
jrhorn424 has quit [Quit: ZNC - http://znc.in]
mklappstuhl has quit [Ping timeout: 252 seconds]
yaymukund has joined #ruby
Asitha has joined #ruby
aryaching has quit [Ping timeout: 248 seconds]
<Asitha> Hey guys - I've got a form that has multiple checkboxes that are grouped in an array as days[], so when it is saved in the db, it is stored as a string
<Asitha> So when I call the value in ruby, it returns as ["Monday", "Tuesday", "Thursday"]
<Asitha> How would I split that?
<krz> given https://gist.github.com/5c5ea6727a05c91f29fc whats the best way to convert to the one below (in link)
vlad_starkov has joined #ruby
<krz> i can go through a loop. but was wondering if there was a more efficient way
<krz> *through 2 loops*
maletor has quit [Ping timeout: 246 seconds]
aryaching has joined #ruby
xybre has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
nwertman has quit [Ping timeout: 260 seconds]
dukz has joined #ruby
clevermatt has quit [Remote host closed the connection]
vlad_starkov has quit [Read error: Connection reset by peer]
<centrx> Asitha, It looks like it is already split?
<centrx> krz, to_yaml
nari has quit [Ping timeout: 246 seconds]
<Asitha> But I can't seem to access each individual days
<Asitha> I can't use .each or anything
<nycjv321> Asitha: go look up String class.
* nycjv321 bets his soul that there is already a split function.
<centrx> Asitha, Is this in Rails?
<Asitha> yes
<nycjv321> my soul is safe :)
robbyoconnor has quit [Ping timeout: 264 seconds]
duggiefresh has quit [Remote host closed the connection]
<krz> gah centrx thanks
amclain has joined #ruby
<centrx> Asitha, It is being saved as serialized column then?
Soda has quit [Read error: Connection reset by peer]
duggiefresh has joined #ruby
<Asitha> When I look it up in the db, it's stored as such
<Asitha> days: "[\"Monday\", \"Tuesday\", \"Thursday\"]"
nhhagen has joined #ruby
CaptainJet has joined #ruby
fenicks has quit [Remote host closed the connection]
Jeticus has joined #ruby
fire_ has quit [Ping timeout: 246 seconds]
zz_jrhorn424 has joined #ruby
zz_jrhorn424 is now known as jrhorn424
duggiefresh has quit [Ping timeout: 272 seconds]
<Asitha> Interesting - let me try. Thanks centrx
CaptainJet has quit [Ping timeout: 265 seconds]
kitak__ has joined #ruby
nhhagen has quit [Ping timeout: 260 seconds]
kitak_ has quit [Ping timeout: 245 seconds]
braincrash has quit [Quit: bye bye]
<krz> centrx: the output works. except i get staging: !map:Chef::Node::ImmutableMash
burlyscudd has joined #ruby
<krz> on the first part. the rest looks fine
bradhe has joined #ruby
eka has joined #ruby
notjohn has joined #ruby
braincrash has joined #ruby
<centrx> krz, Okay, that is from your Chef configuration
<centrx> krz, There might be a better way to output using Chef, that is what it is for after all
<centrx> krz, But the naive way I would do it is run #to_hash on that ImmutableMash object
<Asitha> centrx - thanks. That did the trick :)
mklappstuhl has joined #ruby
<krz> ah so to_hash.to_yaml ?
bradhe has quit [Ping timeout: 272 seconds]
arietis has joined #ruby
eka has quit [Ping timeout: 252 seconds]
romdi` has quit [Ping timeout: 252 seconds]
swills has joined #ruby
<swills> where do i chat with people about getting a bug in ruby fixed? https://bugs.ruby-lang.org/issues/8783
mudmaster has quit [Read error: Connection reset by peer]
byprdct has joined #ruby
mudmaster has joined #ruby
<progrock> Hey, not exactly a ruby question (tho I need to know it to be able to program... ifits possible)... Anyone know how to balance an equation that uses Modulus? ie. I need to isolate c and r in the equation m = c % 3 + 3(r % 3)
dukz has quit [Remote host closed the connection]
mklappstuhl has quit [Ping timeout: 265 seconds]
<progrock> Pretty sad that I have an engineering degree, yet never experienced doing something liek that (maybe because its not exactly possible?)
savage- has joined #ruby
mary5030 has joined #ruby
thealch3m1st has quit [Quit: Textual IRC Client: www.textualapp.com]
carif has quit [Ping timeout: 260 seconds]
dukz has joined #ruby
figglebe_ has joined #ruby
figgleberry has quit [Read error: Connection reset by peer]
nari has joined #ruby
<havenwood> swills: Here, #ruby-lang, or #ruby-core
mary5030 has quit [Ping timeout: 252 seconds]
<havenwood> swills: #ruby-core is best bet but may take a while for a response, least populatd
jailbot has quit [Remote host closed the connection]
<swills> havenwood: thanks
burlyscudd has quit [Quit: Leaving.]
freezey has joined #ruby
<bnagy> progrock: can you express it as a series of congruences and then use chinese remainder thm?
hamakn has quit [Read error: Connection reset by peer]
_HolyCow1 has quit [Read error: Connection reset by peer]
figglebe_ has quit [Ping timeout: 260 seconds]
<bnagy> hm, probably not. Might be something related though
hamakn has joined #ruby
dukz_ has joined #ruby
<bnagy> hm wait aren't there kind of an infinite number of solutions? m is at most 8, no?
kbouwser has joined #ruby
duggiefresh has joined #ruby
dukz has quit [Ping timeout: 265 seconds]
jrhorn424 is now known as zz_jrhorn424
fijimunkii has quit [Ping timeout: 246 seconds]
jailbot has joined #ruby
dukz has joined #ruby
duggiefresh has quit [Ping timeout: 260 seconds]
jailbot has quit [Remote host closed the connection]
centipedefarmer has quit [Remote host closed the connection]
coca_rails has joined #ruby
dukz_ has quit [Ping timeout: 272 seconds]
kewubenduben has quit [Ping timeout: 260 seconds]
mklappstuhl has joined #ruby
habanany has quit [Read error: Connection reset by peer]
Es0teric has joined #ruby
_HolyCow has joined #ruby
falood has joined #ruby
dukz has quit [Remote host closed the connection]
fgo has joined #ruby
Asitha has quit []
carif has joined #ruby
dukz has joined #ruby
sski has joined #ruby
mklappstuhl has quit [Ping timeout: 260 seconds]
<havenwood> bnagy: seems so to me
gja has quit [Ping timeout: 260 seconds]
<havenwood> 0 through 8
alvaro_o has quit [Quit: Ex-Chat]
dukz_ has joined #ruby
wpaulson has joined #ruby
cephalostrum is now known as zz_cephalostrum
gja has joined #ruby
zz_cephalostrum is now known as cephalostrum
<havenwood> seems in pretty even proportion
<havenwood> >> [*1..999].combination(2).map { |c, r| c % 3 + 3 * (r % 3) }.each_with_object(Hash.new 0) { |n, result| result[n] += 1 }.sort
<eval-in> havenwood => [[0, 55278], [1, 55611], [2, 55611], [3, 55278], [4, 55278], [5, 55278], [6, 55278], [7, 55611], [8, 55278]] (https://eval.in/92600)
Spami has joined #ruby
dukz has quit [Ping timeout: 265 seconds]
dukz_ has quit [Remote host closed the connection]
dodosan has quit [Remote host closed the connection]
yasushi has joined #ruby
sepp2k has joined #ruby
pietr0 has quit [Read error: Connection reset by peer]
nwertman has joined #ruby
vlad_starkov has joined #ruby
<bnagy> hahah
aantix has joined #ruby
danshultz has joined #ruby
zz_jrhorn424 is now known as jrhorn424
habanany has joined #ruby
trickyhero has quit [Read error: Operation timed out]
Jeticus has quit []
swills has left #ruby [#ruby]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
vlad_starkov has quit [Read error: Connection reset by peer]
nwertman has quit [Ping timeout: 272 seconds]
radic has quit [Ping timeout: 248 seconds]
danshultz has quit [Ping timeout: 252 seconds]
radic has joined #ruby
styped has quit [Remote host closed the connection]
styped has joined #ruby
nhhagen has joined #ruby
JohnBat26 has joined #ruby
mlpinit has joined #ruby
yfeldblum has quit [Remote host closed the connection]
bradhe has joined #ruby
yfeldblum has joined #ruby
godd2 has joined #ruby
bluOxigen has joined #ruby
kitak__ has quit [Remote host closed the connection]
fgo has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
gja has quit [Quit: This computer has gone to sleep]
CaptainK1ots has quit [Ping timeout: 245 seconds]
nhhagen has quit [Ping timeout: 260 seconds]
aryaching has quit [Ping timeout: 260 seconds]
mlpinit has quit [Ping timeout: 252 seconds]
mklappstuhl has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
cephalostrum is now known as zz_cephalostrum
yfeldblum has quit [Ping timeout: 264 seconds]
fijimunkii has joined #ruby
kitak has joined #ruby
venkat has quit []
ahmedelgabri has joined #ruby
mklappstuhl has quit [Ping timeout: 252 seconds]
gozali has joined #ruby
zz_cephalostrum has quit [Quit: ZNC - http://znc.in]
fijimunkii has quit [Read error: Connection reset by peer]
ndrei has joined #ruby
cephalostrum has joined #ruby
cephalostrum has quit [Client Quit]
zz_cephalostrum has joined #ruby
gja has joined #ruby
zz_cephalostrum has quit [Client Quit]
cephalostrum has joined #ruby
cephalostrum has quit [Excess Flood]
cephalostrum has joined #ruby
cephalostrum has quit [Excess Flood]
cephalostrum has joined #ruby
Deele has joined #ruby
sambao21 has joined #ruby
cephalostrum has quit [Client Quit]
cephalostrum has joined #ruby
dodosan has joined #ruby
mocfive has joined #ruby
vlad_starkov has joined #ruby
sambao21 has quit [Ping timeout: 252 seconds]
Jetchisel has joined #ruby
icantbecool has joined #ruby
swills has joined #ruby
mikepack has joined #ruby
<swills> anyone mind taking a look at something, this script http://paste.mouf.net/pastes/66kmu5g4vj8859b1bgioja37 runs and reports: ./find_updated_gems.rb:22: stack level too deep (SystemStackError)
<agent_white> Welp, today I learned {...} has precendence over do...end
<agent_white> thethingsyouknow.jpg
fijimunkii has joined #ruby
<centrx> swills, Probably something with "Gem::SpecFetcher"
<havenwood> agent_white: i'd like to see the code where that came up!
freerobby has quit [Quit: Leaving.]
<swills> centrx: ah, ok
<swills> i guess i should get the newer gem in place...
Es0teric has joined #ruby
<shevy> agent_white I read that in the pickaxe
<agent_white> shevy: I LIVED IT... ;P
<agent_white> havenwood/shevy: https://gist.github.com/jakenotjacob/8534855
<swills> centrx: thx
yasushi has quit [Remote host closed the connection]
swills has left #ruby [#ruby]
stkowski has joined #ruby
<havenwood> shevy: i need to read the pickaxe, i've only browsed through at the book store - though am just starting reading a pre-copy of Well-Grounded Rubyist second edition beta i just bought
synergy_ has quit [Remote host closed the connection]
<havenwood> it gets right into it!
<agent_white> Yeah I'm thinking I needa do the same... I've just skimmed it, but nevr read it in full. After POODR ;)
mklappstuhl has joined #ruby
<havenwood> I liked The Ruby Programming Language. I need to re-read the last chapters and see if I understand more of it now. >.>
<havenwood> shevy: read Learn to Program for the first time today, got tired of recommending it without having read it
<havenwood> well, skim/read
krz has quit [Ping timeout: 260 seconds]
Asher has joined #ruby
Asher has quit [Client Quit]
kbouwser has quit [Quit: Computer has gone to sleep.]
<shevy> havenwood aha
<shevy> I read it when I started with ruby
<shevy> right after _why's guide
<shevy> _why's guide confused me
mklappstuhl has quit [Ping timeout: 252 seconds]
kristiandelay has joined #ruby
w4pm has joined #ruby
aryaching has joined #ruby
yaymukund has quit [Ping timeout: 260 seconds]
Asher has joined #ruby
sparrovv has joined #ruby
<agent_white> I loved it!... so far. Taking it easy on the Metaprogramming chapter though.
<havenwood> LTP, WGR or _PGTR? ;P
achru has joined #ruby
<havenwood> TRPL
kristiandelay has quit [Ping timeout: 264 seconds]
<havenwood> I guess the shorthand names are easier. Sparrow, Pickaxe, all the short names are from the cover.
<havenwood> I guess Well-Grounded Rubyist should be "renaissance lady in red" or something :P
w4pm has quit [Ping timeout: 260 seconds]
<havenwood> red dress*
<shevy> or "red bitch"
sparrovv has quit [Ping timeout: 252 seconds]
<shevy> the japanese have some awesome names
<havenwood> that wouldn't be a good name
<havenwood> we need more not less diversity :P
<havenwood> shevy: like what?
<shevy> in molecular biology, in chromosome condensation, there is a protein called "Shugoshin" - it's a protective ghost/spirit -> http://www.sciencedirect.com/science/article/pii/S0955067405001523 "Shugoshin: guardian spirit at the centromere". it's easy to remember what function it does, because it is a protector!
gja has quit [Quit: This computer has gone to sleep]
<shevy> compare this with names given by research groups in the USA - "RING" http://en.wikipedia.org/wiki/RING_finger_domain. Know what RING stands for? "Really Interesting New Gene" ... wtf who can remember what function this stupipd name has...
<shevy> sorry
<havenwood> good point, we have tons of arcane usage words too that wouldn't be confused - better than acronyms!
<shevy> was not the USA actually, but the UK "Department of Biochemistry, Oxford University"
<havenwood> or initialisms
<shevy> hehe
<shevy> cool
<shevy> all those words morphing from one language to the other
<havenwood> Do you like saxon or norman words better (for Ruby naming of course)?
<shevy>
<shevy> Shirt Blouse
<havenwood> it explains why we have so many dual words
<havenwood> in English
<shevy> we german speaking folks kinda have the word Blouse too but we pronounce it differently... "Bluuuuse"
<shevy> havenwood, hmm... I hate the saxon accent, it's awful
ewnd9 has joined #ruby
<havenwood> I like 'Eld' instead of 'Age'.
gja has joined #ruby
<havenwood> What is your eld?
<shevy> the french origin words can be kinda cool, look at this one:
<shevy> Escargot (Old Norman Escargot)
<shevy> "Escargooooot" man, that's awe inspiring isn't it :D
<shevy> hmm Eld sounds weird
brennanMKE has quit [Remote host closed the connection]
<shevy> Eld / Eltern (== Parents) ... Eld / Alt (== old)
lfox has quit [Quit: ZZZzzz…]
<havenwood> not on this list, but if i recall the anglo-saxon for prince is "kingling"
<shevy> havenwood come to think about it, eld kinda makes more sense than "age"... no idea where age came from
brennanMKE has joined #ruby
<shevy> Eltern... "those dudes who are older than you are" hehe.... hmm... older ... elder ...
<shevy> hehe
<shevy> kingling?
<shevy> that sounds kinda cute
yaymukund has joined #ruby
<shevy> Somersault
<shevy> weird name
Es0teric has quit [Quit: Computer has gone to sleep.]
<shevy> dutch is very similar to german, and languages like danish or swedish are a little bit similar to north german dialect too
gja has quit [Ping timeout: 265 seconds]
<havenwood> if you could get a comprehensive list of anglo-saxon/french origin word equivalents, would be fun to write a little script to substitute the same text to all one or all the other
<havenwood> or set a percentage
<havenwood> or evaluate percentage useage
bradhe has joined #ruby
krz has joined #ruby
brennanMKE has quit [Ping timeout: 260 seconds]
Jdubs has joined #ruby
nomadic_ has quit [Remote host closed the connection]
<Jdubs> Hello! o.
<Jdubs> o/
<Jdubs> I'm having trouble with an includes for my JSON api
<Jdubs> It's not returning the ID of the included item
<Jdubs> How can I make it also give the ID?
<Jdubs> nevermind!
<Jdubs> got it
Jdubs has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
nycjv321 has quit [Quit: leaving]
nhhagen has joined #ruby
Hanmac1 has joined #ruby
BrixSat has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 272 seconds]
agent_white has quit [Ping timeout: 260 seconds]
BrixSat has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
mklappstuhl has quit [Ping timeout: 252 seconds]
PickledBarrelAss has joined #ruby
nhhagen has quit [Ping timeout: 252 seconds]
Barrin6 has joined #ruby
PickledBarrelAss has left #ruby ["WeeChat 0.4.2"]
agent_white has joined #ruby
butblack has joined #ruby
jrhorn424 is now known as zz_jrhorn424
yfeldblum has quit [Ping timeout: 272 seconds]
phansch has joined #ruby
eka has joined #ruby
icantbecool has left #ruby [#ruby]
kate_r has joined #ruby
nomadic has joined #ruby
Jdubs has joined #ruby
justsee has joined #ruby
eka has quit [Ping timeout: 252 seconds]
mikepack has quit [Remote host closed the connection]
Fire-Dragon-DoL has quit [Quit: Leaving.]
Hanmac has joined #ruby
fgo has joined #ruby
Macaveli has joined #ruby
justsee has quit [Client Quit]
Hanmac1 has quit [Ping timeout: 246 seconds]
fijimunkii has quit [Ping timeout: 248 seconds]
sergicles has joined #ruby
_tpavel has joined #ruby
iliketurtles has joined #ruby
crocket has left #ruby ["Leaving"]
brennanMKE has joined #ruby
gja has joined #ruby
butblack has left #ruby [#ruby]
nomadic has quit [Read error: Connection timed out]
nomadic has joined #ruby
warpx has joined #ruby
warpx has left #ruby [#ruby]
fgo has quit [Remote host closed the connection]
brennanMKE has quit [Read error: Connection reset by peer]
brennanM_ has joined #ruby
Kricir has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
Spami has joined #ruby
brennanM_ has quit [Ping timeout: 264 seconds]
mocfive has quit [Remote host closed the connection]
zxd has joined #ruby
mklappstuhl has quit [Ping timeout: 248 seconds]
lioninawhat has joined #ruby
Al__ has joined #ruby
coca_rails has quit [Remote host closed the connection]
v10energy has quit [Ping timeout: 246 seconds]
vlad_starkov has quit [Remote host closed the connection]
noop has joined #ruby
vlad_starkov has joined #ruby
heftig has quit [Quit: Quitting]
tonni has quit [Remote host closed the connection]
nwertman has joined #ruby
tharindu has joined #ruby
yasushi has joined #ruby
yfeldblu_ has joined #ruby
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
Al__ has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
Al__ has joined #ruby
yfeldbl__ has joined #ruby
notjohn has quit [Quit: notjohn]
browndawg has quit [Quit: Leaving.]
tagrudev has joined #ruby
ewnd9 has quit [Ping timeout: 272 seconds]
bjhaid has joined #ruby
nwertman has quit [Ping timeout: 252 seconds]
yasushi has quit [Ping timeout: 252 seconds]
ixti has quit [Quit: WeeChat 0.4.2]
lioninawhat has quit []
Wolland has joined #ruby
yfeldblu_ has quit [Ping timeout: 265 seconds]
stkowski has quit [Quit: stkowski]
coca_rails has joined #ruby
sensen has joined #ruby
dawe has joined #ruby
dodosan has quit [Read error: Connection reset by peer]
Al__ has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
Al__ has joined #ruby
estebistec has joined #ruby
<shevy> long live Ruby!
<shevy> Jdubs cheer with us
styped has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Jdubs> Whats going on?!?!
<Jdubs> RUBY 4 LIFE
<Jdubs> anyone else mining dogecoin?
notjohn has joined #ruby
freezey has quit [Remote host closed the connection]
tdk2fe has joined #ruby
mklappstuhl has joined #ruby
gabriha__ has quit [Remote host closed the connection]
gabriham_lincoln has joined #ruby
<agent_white> So
bradhe has quit [Ping timeout: 260 seconds]
<agent_white> Is there a way to check if a file has metadata? I'm trying to use TagLib to read mp3 file tags, and found that it couldn't locate anything for one.
<agent_white> So I'm trying to see if I can locate it myself :)
fgo has joined #ruby
<shevy> hmm
<shevy> I am sure there is a super duper way in ruby
mocfive has joined #ruby
<shevy> can't you somehow fetch the bytes that constitute that metadata
carif has quit [Ping timeout: 260 seconds]
<agent_white> shevy: No super-duper way needed, I'm just pissed that it won't work for all my files and want it to :P
<agent_white> shevy: http://rubyquiz.com/quiz136.html is the closest thing I've found that is related... but I may need to learn about parsing binary data?
renklaf has joined #ruby
<agent_white> shevy: Apparently the offset (?) is 128 bytes for a ID3 tag, but I tried it on this file and got a whole lotta 0's.
mklappstuhl has quit [Read error: Operation timed out]
brennanMKE has joined #ruby
<agent_white> Though... this is a nice detour from banging away at Rails.
nhhagen has joined #ruby
fgo has quit [Ping timeout: 264 seconds]
sensen has quit [Read error: Connection reset by peer]
sensen has joined #ruby
gokul has joined #ruby
mengu has joined #ruby
brennanMKE has quit [Ping timeout: 252 seconds]
yacks has quit [Quit: Leaving]
zxd has quit [Ping timeout: 272 seconds]
subbyyy has joined #ruby
SHyx0rmZ has joined #ruby
amclain has quit [Quit: Leaving]
nhhagen has quit [Ping timeout: 252 seconds]
mocfive has quit [Remote host closed the connection]
pietr0 has joined #ruby
dukz has joined #ruby
madb055 has quit [Ping timeout: 260 seconds]
mocfive has joined #ruby
estebistec has quit [Remote host closed the connection]
zipper has joined #ruby
estebistec has joined #ruby
ixti has joined #ruby
Al__ has quit [Quit: Al__]
wwwwwwwwwwww has joined #ruby
mocfive has quit [Ping timeout: 248 seconds]
wwwwwwwwwwww has left #ruby [#ruby]
byprdct has quit [Ping timeout: 252 seconds]
aantix has quit [Quit: aantix]
estebistec has quit [Ping timeout: 252 seconds]
ndrei has quit [Ping timeout: 272 seconds]
kobain has quit []
brennanMKE has joined #ruby
nhhagen has joined #ruby
lethjakman has quit [Ping timeout: 272 seconds]
vlad_sta_ has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
weeems has quit [Ping timeout: 246 seconds]
nhhagen has quit [Remote host closed the connection]
iliketurtles has quit [Quit: zzzzz…..]
vlad_starkov has quit [Ping timeout: 252 seconds]
brennanMKE has quit [Ping timeout: 272 seconds]
centrx has quit [Quit: Leaving]
mklappstuhl has joined #ruby
aryaching has quit [Ping timeout: 272 seconds]
Davey_ is now known as Davey
Jdubs has quit [Remote host closed the connection]
mklappstuhl has quit [Ping timeout: 272 seconds]
tdk2fe has quit [Remote host closed the connection]
nkts_ has joined #ruby
dukz has quit [Remote host closed the connection]
jacob_ has joined #ruby
godd2 has quit [Ping timeout: 248 seconds]
gja has quit [Quit: This computer has gone to sleep]
notjohn has quit [Quit: notjohn]
dukz has joined #ruby
jacob_ has quit [Client Quit]
godd2 has joined #ruby
Barrin6 has quit [Quit: Leaving]
havenwood has quit []
sputnik1_ is now known as sputnik13
v0n has quit [Quit: WeeChat 0.4.2]
dukz_ has joined #ruby
dagobah has joined #ruby
jacob_ has joined #ruby
<jacob_> ?
jacob_ has left #ruby ["Leaving"]
lethjakman has joined #ruby
brennanMKE has joined #ruby
dukz has quit [Ping timeout: 260 seconds]
nathancahill has quit [Quit: nathancahill]
Matriks has joined #ruby
brennanMKE has quit [Ping timeout: 264 seconds]
monkegjinni has joined #ruby
bradhe has joined #ruby
amundj has joined #ruby
aganov has joined #ruby
dukz has joined #ruby
Zesty has joined #ruby
vlad_starkov has joined #ruby
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
lesliewen1 has joined #ruby
vpretzel has quit [Ping timeout: 248 seconds]
Hanmac1 has joined #ruby
mklappstuhl has joined #ruby
bradhe has quit [Ping timeout: 246 seconds]
dukz has quit [Remote host closed the connection]
relix has joined #ruby
Hanmac has quit [Ping timeout: 260 seconds]
vpretzel has joined #ruby
<lesliewen1> Have anyone read Adam's "https://medium.com/tech-talk/39f991dd0565" about Fiddle ?
dukz_ has quit [Ping timeout: 260 seconds]
camilasan has joined #ruby
m00nlight has quit [Quit: Konversation terminated!]
vlad_starkov has quit [Read error: Connection reset by peer]
jhaals has joined #ruby
dukz has joined #ruby
mklappstuhl has quit [Ping timeout: 252 seconds]
jprovazn has joined #ruby
styped has joined #ruby
styped has quit [Max SendQ exceeded]
descala has quit [Ping timeout: 246 seconds]
Zesty has quit [Quit: Linkinus - http://linkinus.com]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
descala has joined #ruby
pu22l3r_ has joined #ruby
h_kon has joined #ruby
fgo has joined #ruby
weems has joined #ruby
dukz_ has joined #ruby
duggiefresh has joined #ruby
Shekhar_ has joined #ruby
chipotle has joined #ruby
charliesome has joined #ruby
dukz has quit [Ping timeout: 252 seconds]
fgo has quit [Ping timeout: 264 seconds]
camilasan has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
camilasan has joined #ruby
Hanmac has joined #ruby
blaxter has joined #ruby
Shekhar_ has quit [Remote host closed the connection]
Hanmac1 has quit [Ping timeout: 248 seconds]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gabriham_lincoln has quit [Remote host closed the connection]
camilasan has quit [Read error: Operation timed out]
tulak has joined #ruby
freezey has joined #ruby
duggiefresh has quit [Ping timeout: 272 seconds]
lethjakman has quit [Ping timeout: 264 seconds]
habanany has quit [Read error: Operation timed out]
tulak has quit [Client Quit]
apeiros has joined #ruby
tulak has joined #ruby
atraylen has joined #ruby
moted has quit [Ping timeout: 248 seconds]
Hobogrammer has quit [Ping timeout: 272 seconds]
jhaals has joined #ruby
Shekhar_ has joined #ruby
ckinni_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phansch has quit [Ping timeout: 260 seconds]
freezey has quit [Ping timeout: 272 seconds]
eka has joined #ruby
andikr has joined #ruby
wildroman2 has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
weems has quit [Ping timeout: 260 seconds]
himsin has joined #ruby
zigomir has joined #ruby
zigomir has quit [Remote host closed the connection]
zigomir has joined #ruby
TMM has joined #ruby
pu22l3r_ has quit [Remote host closed the connection]
mrsolo has joined #ruby
mrsolo has left #ruby [#ruby]
mrgt has joined #ruby
mrgt has quit [Client Quit]
wallerdev has quit [Quit: wallerdev]
wildroman2 has quit [Ping timeout: 248 seconds]
eka has quit [Ping timeout: 264 seconds]
mklappstuhl has joined #ruby
pdtpatrick has joined #ruby
ckinni has joined #ruby
zxd has joined #ruby
nimor has joined #ruby
ckinni has quit [Client Quit]
diegoviola has joined #ruby
ckinni has joined #ruby
mklappstuhl has quit [Ping timeout: 265 seconds]
pdtpatrick has quit [Client Quit]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
decoponio has joined #ruby
vlad_starkov has joined #ruby
yaymukund has quit [Ping timeout: 260 seconds]
francisfish has joined #ruby
weems has joined #ruby
Asher has quit [Quit: Leaving.]
einarj has joined #ruby
thesheff17 has quit [Remote host closed the connection]
einarj has quit [Remote host closed the connection]
vlad_starkov has quit [Read error: Connection reset by peer]
Asher has joined #ruby
einarj has joined #ruby
francisfish has quit [Remote host closed the connection]
ahawkins has joined #ruby
razibog has joined #ruby
cbetta is now known as cbetta_afk
brennanMKE has joined #ruby
khfeng has joined #ruby
brennanMKE has quit [Ping timeout: 260 seconds]
coca_rails has quit [Remote host closed the connection]
noname001__ has joined #ruby
gabriham_lincoln has joined #ruby
yfeldbl__ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
gabriha__ has joined #ruby
nomenkun has joined #ruby
wildroman2 has joined #ruby
bradhe has joined #ruby
vlad_starkov has joined #ruby
ohwhoa has joined #ruby
nimor has quit [Quit: Textual IRC Client: www.textualapp.com]
gabriham_lincoln has quit [Ping timeout: 272 seconds]
alex88 has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
nwertman has joined #ruby
Shekhar_ has left #ruby [#ruby]
gabriha__ has quit [Ping timeout: 272 seconds]
bradhe has quit [Ping timeout: 260 seconds]
mklappstuhl has joined #ruby
scarolan has joined #ruby
tonni has joined #ruby
fixl has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
dfranciosi has joined #ruby
nwertman has quit [Ping timeout: 265 seconds]
mklappstuhl has quit [Ping timeout: 260 seconds]
DouweM has quit [Ping timeout: 260 seconds]
olivier_bK has joined #ruby
rootshift has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Wolland_ has joined #ruby
zz_jrhorn424 has quit [Quit: ZNC - http://znc.in]
ahmedelgabri has quit [Remote host closed the connection]
Wolland has quit [Ping timeout: 272 seconds]
tesuji has joined #ruby
drumusician has joined #ruby
gja has joined #ruby
tulak has quit [Quit: Leaving.]
bluOxigen has quit [Ping timeout: 265 seconds]
avengedsixfold has joined #ruby
seoaqua has joined #ruby
kbouwser has joined #ruby
kbouwser has quit [Client Quit]
avengedsixfold has left #ruby [#ruby]
fgo has joined #ruby
roolo has joined #ruby
heftig has joined #ruby
troessner has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
avengedsixfold has joined #ruby
avengedsixfold has left #ruby [#ruby]
kbouwser has joined #ruby
seoaqua has quit [Ping timeout: 248 seconds]
fgo has quit [Ping timeout: 260 seconds]
jhaals has joined #ruby
kbouwser has quit [Client Quit]
Xeago_ has joined #ruby
kbouwser has joined #ruby
multi_io has quit [Ping timeout: 272 seconds]
Xeago_ has quit [Read error: Connection reset by peer]
multi_io has joined #ruby
Xeago_ has joined #ruby
Xeago has quit [Ping timeout: 264 seconds]
Xeago has joined #ruby
jhaals has quit [Ping timeout: 260 seconds]
zegerjan has joined #ruby
yfeldblum has joined #ruby
nvrch has joined #ruby
jhaals has joined #ruby
dukz_ has quit [Remote host closed the connection]
seoaqua has joined #ruby
seoaqua has quit [Client Quit]
Xeago_ has quit [Ping timeout: 252 seconds]
Al__ has joined #ruby
syamajala has joined #ruby
seoaqua has joined #ruby
<seoaqua> can any one see me? i'm using proxy
<apeiros> no, can't see you. please try differently.
yfeldblum has quit [Ping timeout: 264 seconds]
<seoaqua> apeiros, too bad
camilasan has joined #ruby
<seoaqua> apeiros,i mean the situation, and u >_<
vlad_starkov has joined #ruby
ghr has joined #ruby
kbouwser has quit [Quit: Computer has gone to sleep.]
LekeFly has joined #ruby
vlad_starkov has quit [Ping timeout: 260 seconds]
dblessing has joined #ruby
Lewix has quit [Remote host closed the connection]
nari has quit [Quit: Ex-Chat]
colonolGron has joined #ruby
ephemerian has joined #ruby
colonolGron has left #ruby [#ruby]
zoscoy has joined #ruby
fgo has joined #ruby
zoscoy has quit [Client Quit]
dweeb_ has joined #ruby
leonidlm has joined #ruby
brennanMKE has joined #ruby
fgo has quit [Ping timeout: 272 seconds]
St_Marx has joined #ruby
dukz has joined #ruby
bradhe has joined #ruby
brennanMKE has quit [Ping timeout: 272 seconds]
aganov has quit [Quit: aganov]
aganov has joined #ruby
ahmedelgabri has joined #ruby
bradhe has quit [Ping timeout: 260 seconds]
mklappstuhl has joined #ruby
krz has quit [Ping timeout: 272 seconds]
gabriham_lincoln has joined #ruby
lesliewen1 has quit [Quit: Leaving.]
atmosx has joined #ruby
lesliewen has joined #ruby
krz has joined #ruby
kristiandelay has joined #ruby
dukz has quit [Remote host closed the connection]
leonidlm has quit [Ping timeout: 248 seconds]
dukz has joined #ruby
mikecmpbll has joined #ruby
w4pm has joined #ruby
hiall_ has quit [Quit: hiall_]
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
mklappstuhl has quit [Ping timeout: 246 seconds]
chipotle has quit [Quit: cya]
gabriham_lincoln has quit [Ping timeout: 272 seconds]
kristiandelay has quit [Ping timeout: 260 seconds]
dukz has quit [Ping timeout: 260 seconds]
phansch has joined #ruby
w4pm has quit [Ping timeout: 248 seconds]
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
garybrett has joined #ruby
lesliewen has quit [Ping timeout: 246 seconds]
sepp2k has quit [Read error: Connection reset by peer]
shaunbaker has joined #ruby
vlad_starkov has joined #ruby
lesliewen has joined #ruby
phipes has quit [Remote host closed the connection]
hiall_ has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
alexherbo2 has joined #ruby
fgo has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nhhagen has joined #ruby
noname001__ has quit [Ping timeout: 252 seconds]
caveat- has quit [Ping timeout: 252 seconds]
tsakos has quit [Ping timeout: 252 seconds]
fgo has quit [Read error: Connection reset by peer]
fgo has joined #ruby
aaronmcadam has joined #ruby
guinslym has joined #ruby
aaronmcadam has quit [Remote host closed the connection]
timonv has joined #ruby
aaronmcadam has joined #ruby
klaut has joined #ruby
charliesome has joined #ruby
lesliewen has quit [Quit: Leaving.]
VinceThePrince has joined #ruby
VinceThePrince has quit [Client Quit]
lesliewen has joined #ruby
fgo has quit [Ping timeout: 252 seconds]
marr has joined #ruby
Macaveli has quit [Ping timeout: 272 seconds]
hiall__ has joined #ruby
hiall_ has quit [Ping timeout: 246 seconds]
lesliewen1 has joined #ruby
lesliewen has quit [Ping timeout: 272 seconds]
DaniG2k has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.2]
LiohAu has quit [Ping timeout: 272 seconds]
noname001__ has joined #ruby
yfeldblum has joined #ruby
RoxasShadowRS has joined #ruby
eka has joined #ruby
TejasDinkar has joined #ruby
francisfish has joined #ruby
xcv has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
seoaqua has quit [Remote host closed the connection]
gja has quit [Ping timeout: 272 seconds]
Ponyo has quit [Read error: No route to host]
hiall__ has quit [Quit: hiall__]
falood has quit [Remote host closed the connection]
eka has quit [Ping timeout: 272 seconds]
bluOxigen has joined #ruby
lkba has quit [Ping timeout: 265 seconds]
syamajala has quit [Quit: leaving]
zeeraw has joined #ruby
dukz has joined #ruby
kitak_ has joined #ruby
xcv has quit [Remote host closed the connection]
seoaqua has joined #ruby
nhhagen has quit [Ping timeout: 272 seconds]
kitak has quit [Ping timeout: 245 seconds]
zegerjan has quit [Quit: WeeChat 0.4.2]
bradhe has joined #ruby
jellow has quit [Quit: ZNC - http://znc.in]
brennanMKE has joined #ruby
jellow_ has joined #ruby
jellow_ is now known as jellow
jellow has quit [Changing host]
jellow has joined #ruby
dawe has quit [Quit: leaving]
agjacome has joined #ruby
bradhe has quit [Ping timeout: 246 seconds]
mklappstuhl has joined #ruby
chipotle has joined #ruby
habanany has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
davidk has joined #ruby
dukz has quit [Remote host closed the connection]
davidk is now known as Guest3132
canton7-mac has joined #ruby
brennanMKE has quit [Ping timeout: 272 seconds]
agjacome has quit [Read error: Connection timed out]
soba has quit [Ping timeout: 265 seconds]
agjacome has joined #ruby
fgo has joined #ruby
wildroman2 has quit [Remote host closed the connection]
gabriham_lincoln has joined #ruby
zoscoy has joined #ruby
Speed has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
hiall_ has joined #ruby
wildroman2 has joined #ruby
gabriham_lincoln has quit [Ping timeout: 252 seconds]
nwertman has joined #ruby
bigkevmcd has quit [Quit: Ex-Chat]
Matriks has quit [Remote host closed the connection]
rdark has joined #ruby
ahmedelgabri has quit []
subbyyy has quit [Ping timeout: 252 seconds]
tobago has joined #ruby
mklappstuhl has joined #ruby
ahmedelgabri has joined #ruby
Squarepy has joined #ruby
nwertman has quit [Ping timeout: 260 seconds]
mklappstuhl has quit [Ping timeout: 252 seconds]
jlebrech has joined #ruby
marr has quit [Ping timeout: 260 seconds]
mklappstuhl has joined #ruby
ArchBeOS-work has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
ArchBeOS-work has joined #ruby
cbetta_afk is now known as cbetta
xcv has joined #ruby
diegoviola has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
skaflem has joined #ruby
m00nlight has joined #ruby
cbetta is now known as cbetta_afk
seoaqua has quit [Remote host closed the connection]
abk has joined #ruby
fgo has quit [Remote host closed the connection]
ewnd9 has joined #ruby
RoryHughes has joined #ruby
Xeago has quit [Remote host closed the connection]
mklappstuhl has quit [Remote host closed the connection]
cbetta_afk is now known as cbetta
seoaqua has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
cbetta is now known as cbetta_afk
kate_r has quit [Ping timeout: 272 seconds]
razibog has quit [Quit: Leaving.]
MatthewsFace has joined #ruby
mspah_ has joined #ruby
Hanmac has quit [Ping timeout: 265 seconds]
Hanmac has joined #ruby
kitak_ has quit [Remote host closed the connection]
grzywacz has joined #ruby
shime has joined #ruby
cbetta_afk is now known as cbetta
wald0 has joined #ruby
chrisseaton has joined #ruby
workmad3 has joined #ruby
zxd has quit [Ping timeout: 272 seconds]
<pontiki> hallo all
angusiguess has joined #ruby
cbetta is now known as cbetta_afk
poulson has joined #ruby
cbetta_afk is now known as cbetta
RoryHughes has quit []
phansch has quit [Ping timeout: 272 seconds]
wildroman2 has quit [Remote host closed the connection]
dagobah has quit [Quit: Leaving...]
gozali has quit [Remote host closed the connection]
bradhe has joined #ruby
cbetta is now known as cbetta_afk
mklappstuhl has joined #ruby
mojjojo has joined #ruby
xcv has quit [Remote host closed the connection]
danijoo has joined #ruby
<shevy> hey pontiki
<shevy> there is also ponbiki
<shevy> are you doing clonal proliferation here pontiki
<shevy> soon we will have ponwiki ponsiki and ponmiki
bradhe has quit [Ping timeout: 246 seconds]
heftig has quit [Ping timeout: 260 seconds]
fgo has joined #ruby
<pontiki> no, i'm the one and only
DaZ has quit [Read error: Operation timed out]
wadawadawsda has joined #ruby
DaZ has joined #ruby
timonv has quit [Remote host closed the connection]
phansch has joined #ruby
brennanMKE has joined #ruby
timonv has joined #ruby
coder_neo has joined #ruby
zipper is now known as urbanslug
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
heftig has joined #ruby
marr has joined #ruby
wald0 has quit [Quit: Lost terminal]
Beoran_ has quit [Read error: Operation timed out]
brennanMKE has quit [Ping timeout: 252 seconds]
phansch has quit [Ping timeout: 272 seconds]
lkba has joined #ruby
camilasan has quit [Remote host closed the connection]
Matriks has joined #ruby
camilasan has joined #ruby
_Andres has joined #ruby
gokul has quit [Quit: Leaving]
ahmedelgabri has quit [Remote host closed the connection]
gabriham_lincoln has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<jokke> i always forget how to do this.. i need to access the block given to a function by variable _without_ having &block in my arguments
mikecmpbll has joined #ruby
<jokke> as in def foo; if block_given?; gimme_block; end; end
<apeiros> jokke: that's a weird requirement and IMO rather stupid :-p
<apeiros> Proc.new will give you the block
<tobiasvl> yield if block_given?
<tobiasvl> ?
<jokke> apeiros: thanks!
<apeiros> and yield will invoke the block
<jokke> no i need to store it
<apeiros> jokke: then f'ing define &block
ahmedelgabri has joined #ruby
<apeiros> why'd you not use &block?
<jokke> apeiros: afaik i can't give it a default value
<apeiros> so?
<jokke> which i will do when no block is given
<apeiros> doesn't change with Proc.new
camilasan has quit [Ping timeout: 246 seconds]
<apeiros> @block = block || proc { …default code… }
<apeiros> jokke: pro-tip: next time, ask with stating your problem, not with stating your intended solution.
<jokke> but wouldn't foo() fail without a block?
<apeiros> no
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
<jokke> aah
<jokke> so &block is treated differently
<apeiros> &block does not make a block required
<jokke> aah
<jokke> ok
<jokke> i didn't know that
<apeiros> hence the pro-tip
<jokke> yah :D
<jokke> thanks
wildroman2 has joined #ruby
<apeiros> yw :)
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gabriham_lincoln has quit [Ping timeout: 272 seconds]
<apeiros> Proc.new is nice for some very very edgy edge cases to optimize performance. but it's sooo edgy that I don't even remember one.
<jokke> ok
<jokke> i'll keep that in mind
<jokke> before i reinvent the wheel.. is there a binary tree implementation in ruby?
<apeiros> ruby-toolbox.com would probably know
<apeiros> and afaik yes, there are
<jokke> ah no i meant in core
zxd has joined #ruby
<jokke> because it's pretty easy to code but i wouldn't bother if it's in core
<jokke> but thats kinda weird because i would imagine it's quite common.
<jokke> (weird that it's not in core)
fgo has quit [Remote host closed the connection]
<apeiros> in core there's nothing like that, neither in stdlib.
<jokke> stdlib yeah
<jokke> ok
urbanslug has quit [Ping timeout: 272 seconds]
<jokke> well
Silox| has joined #ruby
wadawadawsda has quit [Quit: Bye]
samuel02 has joined #ruby
Beoran_ has joined #ruby
<shevy> stdlib has like nothing jokke
stef_204 has joined #ruby
<jokke> ok
<Silox|> Hello there! I'm trying to use session.has_key? "string", but it requires me to use parenthesis around the argument. Is this because I use it in a shorthand if, or is there another reason?
<shevy> look at the cgi part in stdlib, no simple error handling
<apeiros> Silox|: #rubyonrails
<Hanmac> jokke: i use the http://rubygems.org/gems/rbtree
<apeiros> Silox|: no, methods don't force parens.
<apeiros> the rest of your code does. because you obviously have more than just the piece you wrote.
<shevy> Silox| are you sure this is the case? I only know that if you test more than one condition at the same time and only with certain checks, like && ! foo.has? 'bla'
Vitor has joined #ruby
<shevy> hmm
<shevy> rather if foo and ! foo.has? 'bla'
<shevy> OR perhaps it was
Vitor_ has quit [Ping timeout: 260 seconds]
<shevy> if foo.has? 'ble' and ! foo.has? 'bla'
<shevy> :D
<shevy> whatever .has? is ...
wald0 has joined #ruby
vlad_starkov has joined #ruby
zxd is now known as Zap-W
Zap-W is now known as zxd
<shevy> Silox| say something!
<Silox|> It's indeed a bit bigger than the code I pasted; I use a rails helper function which takes 3 arguments: a form, a tag and an optional default value
<shevy> \o/
<shevy> ruby can be very agile
<shevy> if foo
<shevy> run_bar
<Silox|> I though the problem was more ruby than rails, so I asked it here, but if it's because of Rails, I'll continue in rails
<shevy> end.unless ble.include? 'yippie'
<shevy> sorry
<shevy> end unless ble.include? 'yippie'
<Silox|> Oh, I broke your code :<
<shevy> dunno why I tried end.unless here
<shevy> I think such constructs are not good for the brain
vlad_starkov has quit [Read error: Connection reset by peer]
urbanslug has joined #ruby
Xeago has joined #ruby
heftig_ has joined #ruby
camilasan has joined #ruby
ahmedelg_ has joined #ruby
habanany has quit [Read error: Operation timed out]
heftig has quit [Ping timeout: 264 seconds]
Al__ has quit [Quit: Al__]
heftig_ is now known as heftig
mklappst_ has joined #ruby
pushpak has joined #ruby
sassamo has joined #ruby
ahmedelgabri has quit [Ping timeout: 272 seconds]
Al__ has joined #ruby
ahmedelg_ has quit [Ping timeout: 260 seconds]
eka has joined #ruby
mklappstuhl has quit [Ping timeout: 252 seconds]
sassamo has quit [Ping timeout: 248 seconds]
tharindu has quit [Quit: Leaving...]
po10 has quit [Quit: /]
Mon_Ouie has joined #ruby
falood has joined #ruby
rdark has quit [Ping timeout: 264 seconds]
fire has joined #ruby
yfeldblum has joined #ruby
mspah_ has quit [Quit: This computer has gone to sleep]
MatthewsFace has quit [Quit: This computer has gone to sleep]
rdark has joined #ruby
zeeraw has joined #ruby
bradhe has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
vpretzel has quit [Remote host closed the connection]
fixl has quit [Remote host closed the connection]
dagobah has joined #ruby
francisfish has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 272 seconds]
tyl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
seoaqua has quit [Ping timeout: 240 seconds]
fgo has joined #ruby
browndawg has joined #ruby
falood has quit [Remote host closed the connection]
Virtualize has joined #ruby
rudisimo has joined #ruby
<pontiki> Silox|: the need for using parens depends entirely on the larger context, operator precedence, and parsing.
<Silox|> pontiki: Okido, thanks :)
falood has joined #ruby
<pontiki> nw
DaniG2k has quit [Quit: leaving]
falood has quit [Remote host closed the connection]
ndrei has joined #ruby
falood has joined #ruby
<pontiki> oh, and it is a ruby question. :)
falood has quit [Remote host closed the connection]
brennanMKE has joined #ruby
Vitor has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 248 seconds]
<workmad3> Hanmac: y no 13th doctor in there? :(
<Hanmac> workmad3: in this image not yet
diegoviola has quit [Read error: No route to host]
diegoviola has joined #ruby
<workmad3> heh
<pontiki> lovely stuff :)
Xeago has quit [Remote host closed the connection]
brennanMKE has quit [Ping timeout: 252 seconds]
Xeago has joined #ruby
dangerousdave has joined #ruby
assurbanipal has joined #ruby
colonolGron has joined #ruby
Speed has left #ruby ["WeeChat 0.4.2"]
TejasDinkar has quit [Quit: This computer has gone to sleep]
colonolGron has quit [Read error: Connection reset by peer]
colonolGron has joined #ruby
leonidlm has joined #ruby
ahmedelgabri has joined #ruby
shaunbaker has quit [Remote host closed the connection]
gabriham_lincoln has joined #ruby
okinomo has joined #ruby
assurbanipal has quit [Ping timeout: 252 seconds]
EngierkO has joined #ruby
EngierkO has quit [Max SendQ exceeded]
EngierkO has joined #ruby
leonidlm has quit [Ping timeout: 260 seconds]
sailias has joined #ruby
Wolland_ has quit [Remote host closed the connection]
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
gabriham_lincoln has quit [Ping timeout: 252 seconds]
MatthewsFace has joined #ruby
nwertman has joined #ruby
mspah_ has joined #ruby
tvw has joined #ruby
fgo has joined #ruby
|RicharD| has joined #ruby
LekeFly has joined #ruby
<|RicharD|> hi to all
<|RicharD|> anyone here use twitter gem ?
maoko has joined #ruby
sailias has quit [Ping timeout: 260 seconds]
mehlah has joined #ruby
diegoviola has quit [Read error: No route to host]
tyl has joined #ruby
diegoviola has joined #ruby
nwertman has quit [Ping timeout: 246 seconds]
dweeb_ has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby
aryaching has joined #ruby
maoko has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jokke> i get an Broken pipe error when piping the output of my script to head on the command line.
<jokke> do i have to rescue it, is it normal?
vlad_starkov has quit [Read error: Connection reset by peer]
ndrei has quit [Ping timeout: 260 seconds]
ewnd9 has quit [Ping timeout: 260 seconds]
bal has joined #ruby
guinslym has quit [Ping timeout: 248 seconds]
deens has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
rdark has quit [Ping timeout: 260 seconds]
mojjojo has quit [Quit: mojjojo]
rdark has joined #ruby
freidahpatch has quit [Ping timeout: 260 seconds]
vlad_starkov has joined #ruby
IceyEC has joined #ruby
dweeb_ has joined #ruby
falood has joined #ruby
mojjojo has joined #ruby
xcv has joined #ruby
ahmedelgabri has quit [Remote host closed the connection]
yalue has joined #ruby
spyderman4g63 has joined #ruby
aspiers has quit [Ping timeout: 276 seconds]
krz has quit [Quit: WeeChat 0.4.2]
dik_dak has joined #ruby
fgo has quit [Remote host closed the connection]
sailias has joined #ruby
vlad_starkov has quit [Ping timeout: 272 seconds]
sensen has quit [Quit: leaving]
<hoelzro> you could set up a SIGPIPE handler
bradhe has joined #ruby
avril14th has joined #ruby
Matriks has quit [Remote host closed the connection]
<shevy> jokke your pipe is like an old man!
okinomo has quit [Quit: Lost terminal]
<shevy> the most annoying broken pipe errors I had when yacc/bison parser was broken. compiling failed at random later steps...
clevermatt has joined #ruby
jovon has joined #ruby
fede__ has joined #ruby
yfeldblum has joined #ruby
vlad_starkov has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
drumusician has quit [Ping timeout: 272 seconds]
po10 has joined #ruby
RaCx has joined #ruby
poulson has quit [Remote host closed the connection]
mojjojo has quit [Quit: mojjojo]
yfeldblum has quit [Ping timeout: 264 seconds]
Virtualize has quit [Read error: Connection reset by peer]
Virtualize has joined #ruby
aryaching has quit [Ping timeout: 252 seconds]
mlpinit has joined #ruby
florentferry has joined #ruby
florentferry has left #ruby [#ruby]
mark_locklear has joined #ruby
Targen has quit [Read error: Connection reset by peer]
dkamioka has joined #ruby
mlpinit has quit [Remote host closed the connection]
kaldrenon has joined #ruby
mlpinit has joined #ruby
g0bl1n has joined #ruby
dkamioka_ has joined #ruby
Targen has joined #ruby
florentferry has joined #ruby
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
jkamenik has joined #ruby
dkamioka has quit [Ping timeout: 265 seconds]
Xeago has quit [Read error: Connection reset by peer]
dkamioka has joined #ruby
Xeago has joined #ruby
grzywacz has quit [Quit: :wq]
kaldrenon has quit [Remote host closed the connection]
vadviktor_ has quit [Read error: Operation timed out]
sailias has quit [Ping timeout: 272 seconds]
amundj has quit [Read error: Connection reset by peer]
amundj has joined #ruby
kaldrenon has joined #ruby
bambuka has joined #ruby
dkamioka_ has quit [Ping timeout: 272 seconds]
brennanMKE has joined #ruby
vadviktor has joined #ruby
<pontiki> i believe SIGPIPE only occurs for the reciever
tkuchiki has quit [Remote host closed the connection]
<pontiki> so putting it in the producer wouldn't do any good
florentferry has quit [Remote host closed the connection]
tkuchiki has joined #ruby
SeySayux has quit [Ping timeout: 245 seconds]
shime has quit [Ping timeout: 265 seconds]
dkamioka_ has joined #ruby
dkamioka has quit [Ping timeout: 265 seconds]
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Targen has quit [Read error: Connection reset by peer]
Hanmac1 has joined #ruby
yasushi has joined #ruby
florentferry has joined #ruby
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vlad_starkov has quit [Remote host closed the connection]
Elhu has joined #ruby
Targen has joined #ruby
vlad_starkov has joined #ruby
brennanMKE has quit [Ping timeout: 272 seconds]
SeySayux has joined #ruby
<hoelzro> I thought that the receiver receives an EOF, and the producer a SIGPIPE?
Hanmac has quit [Ping timeout: 272 seconds]
Zubin has joined #ruby
<pontiki> hmmm
tkuchiki has quit [Ping timeout: 248 seconds]
<pontiki> yeah, SIGPIPE is what the producer gets
St_Marx has quit [Ping timeout: 264 seconds]
ewnd9 has joined #ruby
mlpinit_ has joined #ruby
Targen has quit [Read error: Connection reset by peer]
avril14th has quit [Read error: Connection reset by peer]
<pontiki> but i've not seen that from head before, either...
hamakn has quit [Remote host closed the connection]
<hoelzro> you'll see if you pipe an svn command to head =)
<hoelzro> *see it
<hoelzro> at least, last I used svn
<pontiki> interesting
<hoelzro> which was about 5 years ago
rudisimo has quit [Read error: Connection reset by peer]
LekeFly has joined #ruby
Lewix has joined #ruby
Targen has joined #ruby
rudisimo has joined #ruby
mlpinit has quit [Ping timeout: 272 seconds]
<pontiki> but a bog standard ruby script doesn't do that
<hoelzro> good point
Lewix has quit [Remote host closed the connection]
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
alexherbo2 has joined #ruby
gja has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
gja has joined #ruby
gja has quit [Changing host]
gabriham_lincoln has joined #ruby
yacks has joined #ruby
kristiandelay has joined #ruby
mikecmpbll has joined #ruby
<hoelzro> I'm guessing Ruby ignores SIGPIPE by deafult
phansch has joined #ruby
angusiguess has quit [Ping timeout: 260 seconds]
<hoelzro> that's interesting
<pontiki> innit?
mojjojo has joined #ruby
poulson has joined #ruby
urbanslug has quit [Quit: leaving]
ahmedelgabri has joined #ruby
Zubin has quit [Ping timeout: 252 seconds]
gabriham_lincoln has quit [Ping timeout: 272 seconds]
Lewix has joined #ruby
kristiandelay has quit [Ping timeout: 264 seconds]
agent_white has quit [Read error: Connection reset by peer]
abk has quit [Ping timeout: 252 seconds]
zeeraw has joined #ruby
qubit_ is now known as qubit
Targen has quit [Read error: Connection reset by peer]
clevermatt has quit []
ahmedelgabri has quit [Ping timeout: 272 seconds]
clamstar has joined #ruby
v0n has joined #ruby
rmorello has joined #ruby
agent_white has joined #ruby
mojjojo has quit [Quit: mojjojo]
drumusician has joined #ruby
Targen has joined #ruby
duggiefresh has joined #ruby
francisfish has joined #ruby
workmad3 is now known as wm3|lunch
florentferry has quit [Remote host closed the connection]
ahmedelgabri has joined #ruby
florentferry has joined #ruby
florentferry has left #ruby [#ruby]
GeorgesLeYeti has joined #ruby
<GeorgesLeYeti> Hi
<GeorgesLeYeti> I want to know how to write " inside " "
keyword has joined #ruby
<tobiasvl> \"
ohcibi has quit []
<tobiasvl> "\"hello\""
<shevy> GeorgesLeYeti or '"'
<apeiros> or use a different delimiter
<apeiros> >>'"'
<eval-in> apeiros => "\"" (https://eval.in/92886)
<GeorgesLeYeti> tobiasvl: Ty
<apeiros> >> %{"hello"}
<eval-in> apeiros => "\"hello\"" (https://eval.in/92887)
<GeorgesLeYeti> no i want to user " "
<TheLarkInn> Who wants to play "Help TheLarkInn refactor his code so it doesn't look like a two year old wrote it?"
danshultz has joined #ruby
<GeorgesLeYeti> because I user #{} to set some variable (i know i can make + value.to_s)
<apeiros> a two year old writing code would be pretty amazing
florentferry has joined #ruby
<apeiros> GeorgesLeYeti: that works in %{} too
<hoelzro> GeorgesLeYeti: you can use %Q{...}
<hoelzro> that interpolates too
<apeiros> >> name = "TheDude"; %{hello #{name}}
<eval-in> apeiros => "hello TheDude" (https://eval.in/92889)
<apeiros> %{} is the same as %Q{} btw.
shaunbaker has joined #ruby
<waxjar> or just escape like so: "hello \"george\""
<hoelzro> oh, that's new to me!
<hoelzro> apeiros += 1
<shevy> TheLarkInn ask short questions :)
apeiros is now known as apeirot
<apeirot> noooooo! hoelzro, whyyyy?!?!
* apeirot -= 1
apeirot is now known as apeiros
<hoelzro> heh
<waxjar> lol
<GeorgesLeYeti> apeiros: i didn't know this syntax ty
<hoelzro> apeiros: is that new?
<hoelzro> (since 1.9, I mean)
ohcibi has joined #ruby
<apeiros> hoelzro: no, existed in 1.8 too
<hoelzro> interesting
Wardje has joined #ruby
bradhe has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
shime has joined #ruby
dkamioka_ has quit [Remote host closed the connection]
ahmedelgabri has quit [Remote host closed the connection]
St_Marx has joined #ruby
jerius has joined #ruby
<TheLarkInn> Alright aperios: you're the next contestant on help TheLarkInn refactor his sloppy but working code.
ahmedelgabri has joined #ruby
<apeiros> TheLarkInn: misspelling my nick doesn't help in getting me aboard :-p
RaCx has joined #ruby
<TheLarkInn> DOH!
matenano has joined #ruby
<matenano> ciao
<TheLarkInn> apeiros
<TheLarkInn> there we go
himsin has quit [Quit: himsin]
<matenano> !list
Virtualize has quit [Read error: Connection reset by peer]
matenano has left #ruby [#ruby]
<waxjar> that's one big sql query :p
Virtualize|away has joined #ruby
vpretzel has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
<TheLarkInn> lol yes it is, but long story short, I am wanting to allow 0-6 parameters
nwertman has joined #ruby
<keyword> guys anyone knows this error? I'm trying sphinx and when I add <<< I get error
Targen has quit [Read error: Connection reset by peer]
<keyword> Model.search("'<<<'") ThinkingSphinx::SyntaxError: index advisor_core,advisor_delta: syntax error, unexpected TOK_BEFORE near '<<''
<apeiros> TheLarkInn: most important tip: DONT MIX TABS AND WHITESPACE!
<apeiros> also: don't use tabs for alignment. horrible idea.
mspah_ has quit [Quit: This computer has gone to sleep]
MatthewsFace has quit [Quit: This computer has gone to sleep]
shaunbak_ has joined #ruby
duggiefresh has quit [Read error: Connection reset by peer]
<waxjar> TheLarkInn: you're probably vulnerable to sql injection now, the way you build up your query
ffranz has joined #ruby
duggiefresh has joined #ruby
<TheLarkInn> probably but this is an in house api, so I'm too worried abotu that
<TheLarkInn> I just want to know if there is an easier way or better way to do what I am doing,
<apeiros> and in ruby, you shouldn't use tabs for indent either. use 2 spaces. but that's "only" convention, whereas the other two are horrible crimes.
<TheLarkInn> lol I know that, the person who is in charge of me likes to read it in tab vs 2space, thus why I write it that way,
ahmedelgabri has quit [Ping timeout: 260 seconds]
<shevy> kill the tabbers
RaCx has quit [Ping timeout: 260 seconds]
<apeiros> appointments.rb, lines 4-41 - move that into a view, IMO
<TheLarkInn> anything other than whitespace suggestions rofl
<apeiros> as waxjar already said, things like " DATE(appointment.start) >= DATE('#{start_date}')" - HUGE nono!
<apeiros> use bind variables
<TheLarkInn> could you provide an example?
<waxjar> TheLarkInn: i have no idea what it's actually doing, but try to use clearer names for everything. "params", "select_query", etc are about as vague as single letter variable names :p
Targen has joined #ruby
shaunbaker has quit [Ping timeout: 264 seconds]
<wm3|lunch> it's a huge NONO because start_date and end_date are taken directly from user input
samsonasu has quit [Quit: samsonasu]
yfeldblum has joined #ruby
aryaching has joined #ruby
notjohn has joined #ruby
<wm3|lunch> TheLarkInn: basically, *never* put user input directly into an SQL query
jrist has joined #ruby
rdark has quit [Ping timeout: 252 seconds]
<wm3|lunch> TheLarkInn: it doesn't matter that it's just an in-house API... doing so means that someone could, innocently and accidentally, malform a URL and drop your entire database
jrist has quit [Read error: Connection reset by peer]
<apeiros> TheLarkInn: rails? where("column >= ?", date)
<TheLarkInn> Alright, well then that will something I will def change, so you are suggesting some sort of validation for those dates
<TheLarkInn> tahts not too bad
<apeiros> no, validation doesn't cut it
<TheLarkInn> And rails is to heavy for a simple API, thus why I'm using sinatra
<apeiros> use bind variables. that's the only really secure way.
<wm3|lunch> TheLarkInn: you could still use an ORM for interacting with the database
<apeiros> TheLarkInn: sinatra has no own db layer, so what are you using?
<TheLarkInn> I'm not familiar with that, would you please show me an example or point me toward a link
<wm3|lunch> TheLarkInn: it's what you're building anyway
<TheLarkInn> Apeiros: Sequel
rdark has joined #ruby
tulak has joined #ruby
<apeiros> TheLarkInn: that has similar mechanisms. consult the docs.
sambao21 has joined #ruby
<TheLarkInn> sounds good,
<wm3|lunch> TheLarkInn: at the moment, you're not using Sequel... you're just firing a query off directly
pu22l3r_ has joined #ruby
<apeiros> wm3|lunch: sequel has an ORM-less part
<apeiros> personally I only use that part of sequel too
<wm3|lunch> apeiros: to create a db connection?
<wm3|lunch> fair enough
<apeiros> wm3|lunch: no
jrist has joined #ruby
<TheLarkInn> I know that, but the db layer is the sequel gem, like I said, I simply don't care about the security factor at this point, and I'm more concerned with the means in which I facilitate a request having 0 params to 6 params all at the same time
<apeiros> wm3|lunch: you can do more with it. he uses it rather bluntly.
Targen has quit [Read error: Connection reset by peer]
<apeiros> stuff like this example: DB[:managers].where(:salary => 5000..10000).order(:name, :department)
florentferry has quit [Ping timeout: 264 seconds]
<apeiros> not an ORM, not naked SQL either
FF_ has joined #ruby
<wm3|lunch> apeiros: ah, so no ORM binding, but an SQL abstraction
<TheLarkInn> yeah just ugly to read, and just as wordy
yfeldblum has quit [Ping timeout: 272 seconds]
<apeiros> wm3|lunch: correct
araujo has joined #ruby
<_Andres> Is Ruby Object Mapper (DataMapper2) a solid alternative to ActiveRecord these days?
fgo has joined #ruby
devyn has quit [Ping timeout: 245 seconds]
burlyscudd has joined #ruby
<waxjar> i believe ROM is still very much a work in progress.
jrist has quit [Max SendQ exceeded]
<_Andres> v0.1.2, I see
<wm3|lunch> _Andres: they haven't even gotten a 'status' up on their site yet
claymore has joined #ruby
Wulf has joined #ruby
<Wulf> Hi
<_Andres> What a shame..
jrist has joined #ruby
deens has quit [Remote host closed the connection]
<Wulf> I've got a .rhtml file with a line like this: <% if !custom_value.value.blank? %>
<Wulf> What does the ? mean? Feel free to point me at the documentation
clamstar has quit [Quit: Computer has gone to sleep.]
<hoelzro> Wulf: blank? is a method
<hoelzro> method names in Ruby may include a trailing ? or !
<apeiros> or =
<waxjar> it's just part of the method name Wulf
<Wulf> hoelzro: ah, so that's not an operator
<hoelzro> ah, thank you apeiros
colonolGron has quit [Quit: Lost terminal]
<hoelzro> Wulf: correct
<Wulf> good to know :-)
fede_ has joined #ruby
<hoelzro> methods ending in ?, by convention, are predicates
<wm3|lunch> Wulf: also, update rails ;) that should be '.html.erb' nowadays
<apeiros> the foo= methods have the added speciality of allowing whitespace between the = and the rest of the name
<hoelzro> methods ending in = are setters
<Wulf> wm3|lunch: old redmine version, just need a minimal change
<apeiros> foo.bar = baz # this still calls the `bar=` method
<hoelzro> methods ending in !, by convention, so something "dangerous"
<waxjar> Speakers#up_to_eleven!
phansch has quit [Ping timeout: 260 seconds]
fgo has quit [Ping timeout: 252 seconds]
clamstar has joined #ruby
apathor has joined #ruby
fede__ has quit [Ping timeout: 260 seconds]
<apeiros> irc.close!('#ruby')
<apeiros> dangerous because a lynch mob might form
<Wulf> another one: there appear to be == and === operators. Same difference as in PHP?
<apeiros> no
<apeiros> === is NOT a stricter == as in PHP
<hoelzro> a very good question, though
<apeiros> == is comparative equality, that is, if <=> results in 0, then == should be true
dukz has joined #ruby
<apeiros> === is used in case/when statements and some methods (like e.g. Enumerable#grep)
<apeiros> then there's eql?, which could be considered "strict comparison", it is used e.g. for hash key equality, uniqueness tests
<apeiros> and last but not least, equal?, which tests identity
apathor has left #ruby [#ruby]
<Wulf> if I want to compare two strings for inequality, is != the right operator?
<waxjar> Wulf: this is a very handy link that explains the differences http://stackoverflow.com/questions/7156955/whats-the-difference-between-equal-eql-and
<apeiros> examples: 1 == 1.0, but not 1.eql?(1.0)
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
wald0 has quit [Quit: Lost terminal]
<apeiros> Wulf: yes, == and != can be used for that. note that == takes the encoding into consideration
<apeiros> >> a = "hello".encode('utf-8'); b = "hello".encode('windows-1252'); a == b
<eval-in> apeiros => true (https://eval.in/92906)
<apeiros> huh?
<apeiros> >> RUBY_VERSION
<eval-in> apeiros => "2.1.0" (https://eval.in/92907)
<apeiros> oh, they changed that… good to know
<apeiros> 20>> a = "hello".encode('utf-8'); b = "hello".encode('windows-1252'); a == b
<eval-in> apeiros => true (https://eval.in/92909)
<apeiros> 19>> a = "hello".encode('utf-8'); b = "hello".encode('windows-1252'); a == b
<eval-in> apeiros => true (https://eval.in/92910)
<apeiros> wtf?
nwertman has quit [Ping timeout: 252 seconds]
<Hanmac1> Wulf look at this:
<Hanmac1> >> [0.0 == -0.0, 0.0.eql?(-0.0),0.0.equal?(-0.0)]
<eval-in> Hanmac1 => [true, true, false] (https://eval.in/92912)
Hanmac1 is now known as Hanmac
brennanMKE has joined #ruby
<apeiros> ok. seems like my statement wrt encodings was wrong…
<Wulf> Hanmac: okay, that looks like I'd have to learn quite a lot if I wanted to learn ruby :)
<apeiros> aha, it seems to depend on the content
<apeiros> >> a = "hällo".encode('utf-8'); b = "hällo".encode('windows-1252'); a == b
<eval-in> apeiros => false (https://eval.in/92916)
<apeiros> so == probably doesn't care about the encoding and just performs a binary equality check
zipper has joined #ruby
Zubin has joined #ruby
tonni has quit [Remote host closed the connection]
<Zubin> Hi I am a newbie in ruby and rails. I have managed to learn ruby a little but I am not able to learn rails 4.0 . I searched the web but could not find an appropiate rails 4.0 book. Can someone here help me please?
puppeh has joined #ruby
Czupa has joined #ruby
<mikecmpbll> Zubin: you might be interested in #rubyonrails
<Wulf> thanks guys for the help
<puppeh> i'm using unicorn with oobgc on 1.9.3 (falcon patch). I'm considering in using 2.1, will there be any performance gains?
<puppeh> I mean GC-wise
<Zubin> mikecmpbll, thanks
sailias has joined #ruby
angusiguess has joined #ruby
vlad_sta_ has joined #ruby
Zubin has quit [Read error: Connection reset by peer]
araujo has quit [Read error: Connection reset by peer]
arctarus has joined #ruby
MindfulMonk has joined #ruby
fantazo has joined #ruby
cephalostrum is now known as zz_cephalostrum
Zubin has joined #ruby
brennanMKE has quit [Ping timeout: 272 seconds]
ahmedelgabri has joined #ruby
Zubin has quit [Client Quit]
r0nin has quit []
aspiers has joined #ruby
dkamioka has joined #ruby
vlad_starkov has quit [Ping timeout: 246 seconds]
marr has quit []
tkuchiki has joined #ruby
Silox| has quit [Quit: leaving]
Hobogrammer has joined #ruby
angusigu1ss has joined #ruby
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
coca_rails has joined #ruby
notjohn has quit [Ping timeout: 252 seconds]
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
gabriham_lincoln has joined #ruby
dkamioka has quit [Ping timeout: 252 seconds]
supergeek has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lfox has joined #ruby
xcv has quit [Remote host closed the connection]
ahmedelg_ has joined #ruby
supergeek has quit [Max SendQ exceeded]
scarolan has quit [Ping timeout: 252 seconds]
angusigu1ss has quit [Ping timeout: 260 seconds]
MatthewsFace has joined #ruby
ahmedelgabri has quit [Ping timeout: 260 seconds]
mspah_ has joined #ruby
scarolan has joined #ruby
zoscoy has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
freerobby has joined #ruby
gabriham_lincoln has quit [Ping timeout: 252 seconds]
zipper has quit [Quit: Lost terminal]
falood has quit [Remote host closed the connection]
hamakn has joined #ruby
scarolan has quit [Ping timeout: 260 seconds]
MatthewsFace has quit [Quit: This computer has gone to sleep]
mspah_ has quit [Quit: This computer has gone to sleep]
tonni has joined #ruby
apathor has joined #ruby
dkamioka has joined #ruby
snath has quit [Ping timeout: 252 seconds]
samsonasu has joined #ruby
hamakn has quit [Ping timeout: 272 seconds]
Zubin has joined #ruby
apathor has left #ruby [#ruby]
vlad_sta_ has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
mary5030 has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
nwertman has joined #ruby
leo-the-manic has quit [Remote host closed the connection]
gja has joined #ruby
xXxRosexXxEE has joined #ruby
bradhe has joined #ruby
<xXxRosexXxEE> Does anyone know how to offset the tile position in gosu?
arietis has quit [Quit: Computer has gone to sleep.]
<alexherbo2> does ruby support structured regexp ?
noop has quit [Ping timeout: 265 seconds]
thesheff17 has joined #ruby
momomomomo has joined #ruby
bitri has joined #ruby
iamsean has joined #ruby
brotspinne has joined #ruby
nwertman has quit [Ping timeout: 272 seconds]
brotspinne has left #ruby [#ruby]
Kricir has joined #ruby
kpshek has joined #ruby
<ccooke> alexherbo2: Define "Structured regexp"?
brotspinne has joined #ruby
bradhe has quit [Ping timeout: 265 seconds]
brotspinne has left #ruby [#ruby]
rdark has quit [Ping timeout: 248 seconds]
acrussell has joined #ruby
momomomomo has quit [Client Quit]
rdark has joined #ruby
momomomomo has joined #ruby
arietis has joined #ruby
jedimind has joined #ruby
<alexherbo2> "List:\n- Roger phone: 02 33 44 03 83\n- Marcel phone: 03 39 38 98 83"
jobewan has joined #ruby
<alexherbo2> replace phone number in List with ** ** ** ** **
<alexherbo2> 1) select lines begins ^-
johnmilton has joined #ruby
<alexherbo2> 2) select phone
<alexherbo2> and replace with **
kevind has joined #ruby
<ccooke> well, you know Ruby is a programming language, not an editor?
<mikecmpbll> lol.
<alexherbo2> ..
cjsarette has quit [Ping timeout: 260 seconds]
<ccooke> Ruby supports all of the same operators as the editors you linked to, along with more regex functionality. It doesn't use the same instructions, though
zipper has joined #ruby
<momomomomo> alexherbo2: a good way to get the feel of Regex in ruby is http://rubular.com
<alexherbo2> text.gsub([/^-/, /(\d{2}\s){5}/], '** ** ** ** **')
jlast has joined #ruby
nwertman has joined #ruby
timonv has quit [Remote host closed the connection]
gja has quit [Quit: This computer has gone to sleep]
Zubin_ has joined #ruby
Zubin has quit [Read error: Connection reset by peer]
sassamo has joined #ruby
timonv has joined #ruby
Zubin_ has quit [Read error: Connection reset by peer]
<mikecmpbll> gsub doesn't take an array as the first param.
yasushi has quit [Remote host closed the connection]
Zubin has joined #ruby
ada2358 has joined #ruby
gja has joined #ruby
<alexherbo2> i know
zz_cephalostrum is now known as cephalostrum
Zubin has quit [Client Quit]
<Hanmac> alexherbo2: use Regexp.union
<alexherbo2> it’s just an example how we could use structured regexp in a programming langage.
Zubin has joined #ruby
gabriham_lincoln has joined #ruby
aryaching_ has joined #ruby
hamakn has joined #ruby
tonni has quit [Read error: Connection reset by peer]
yjmsf20 has quit [Quit: leaving]
wedgeV has joined #ruby
krz has joined #ruby
aryaching has quit [Ping timeout: 272 seconds]
dukz has quit [Remote host closed the connection]
Hobogrammer has quit [Ping timeout: 252 seconds]
tylersmith has joined #ruby
sski has quit [Remote host closed the connection]
sski has joined #ruby
yfeldblum has joined #ruby
h_kon has quit [Remote host closed the connection]
Virtualize|away has quit [Quit: Leaving...]
Lewix has quit [Read error: Connection reset by peer]
wildroman2 has quit [Remote host closed the connection]
Lewix has joined #ruby
nwertman has quit [Ping timeout: 252 seconds]
brennanMKE has joined #ruby
cephalostrum is now known as zz_cephalostrum
aryaching_ has quit [Ping timeout: 265 seconds]
Megtastique has joined #ruby
krz has quit [Ping timeout: 246 seconds]
sski has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Ping timeout: 252 seconds]
Wulf has left #ruby [#ruby]
tyl_ has joined #ruby
tyl has quit [Read error: Connection reset by peer]
Es0teric has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
jhaals has quit [Quit: Textual IRC Client: www.textualapp.com]
Es0teric has quit [Max SendQ exceeded]
deens has joined #ruby
Virtualize has joined #ruby
gja has joined #ruby
wm3|lunch is now known as workmad3
tonni has joined #ruby
oznik_ has joined #ruby
allaire has joined #ruby
IceDragon has joined #ruby
Alina-malina has quit [Ping timeout: 248 seconds]
Alina-malina has joined #ruby
ehc has joined #ruby
sparrovv has joined #ruby
TigerWolf has quit [Ping timeout: 252 seconds]
dukz has joined #ruby
deens has quit [Ping timeout: 252 seconds]
<alexherbo2> Hanmac: Regexp.union ?
shime has quit [Ping timeout: 252 seconds]
ace_striker has joined #ruby
ace_striker has quit [Changing host]
ace_striker has joined #ruby
ace_striker has quit [Changing host]
ace_striker has joined #ruby
<oznik_> my sysadmin uses puppet to implement configurations and since he has'nt a config for ruby versions newer than 1.9.3p194 why don't i use that. i see that Old Stable is a more recent build (p484). is it a bad idea to use versions older than old stable for production ?
figgleberry has joined #ruby
<alexherbo2> doesn’t make sense to make structured Regexp built-in Ruby ?
renklaf has quit [Remote host closed the connection]
fantazo has quit [Ping timeout: 252 seconds]
interactionjaxsn has joined #ruby
colonolGron has joined #ruby
<shevy> oznik_ always use the newest p-version
ahawkins has quit [Read error: Connection reset by peer]
<shevy> oznik_ the differences from one p to another p shouldn't be large though
ahawkins has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
tagrudev has quit [Remote host closed the connection]
rippa has joined #ruby
<oznik_> shevy: would this be the moment to push the sysadmin though?
relix has joined #ruby
geggam has joined #ruby
tannerburson has quit [Quit: tannerburson]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
figgleberry has quit [Ping timeout: 272 seconds]
tannerburson has joined #ruby
notjohn has joined #ruby
mansi has joined #ruby
<shevy> oznik_ dunno, you seem to be scared of change
<oznik_> hm... perhaps
tonni has quit [Read error: Connection reset by peer]
chrisseaton has joined #ruby
zz_cephalostrum is now known as cephalostrum
stock584 has joined #ruby
m8 has joined #ruby
pskosinski has joined #ruby
apeiros has quit [Ping timeout: 260 seconds]
m8 has quit [Read error: Connection reset by peer]
m8 has joined #ruby
angusigu1ss has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
mojjojo has joined #ruby
ace_striker has quit [Ping timeout: 272 seconds]
wildroman2 has joined #ruby
momomomomo has quit [Quit: momomomomo]
amundj has quit [Ping timeout: 264 seconds]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
kristiandelay has joined #ruby
yasushi has joined #ruby
mengu has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
coder_neo has quit [Ping timeout: 272 seconds]
w4pm has joined #ruby
_tpavel has quit [Ping timeout: 259 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
angusigu1ss has quit [Ping timeout: 272 seconds]
synergy_ has joined #ruby
arctarus has quit [Ping timeout: 260 seconds]
Underbyte has quit [Ping timeout: 276 seconds]
kristiandelay has quit [Read error: Operation timed out]
<shevy> we need to move at lightning speed!
<atmosx> shevy: to do what?
<workmad3> shevy: move faster!
<shevy> atmosx to use the latest ruby
<shevy> I am still on 1.9.3 myself :-)
arctarus has joined #ruby
<atmosx> I have a serious questoin
Baluse has quit [Ping timeout: 260 seconds]
<shevy> oh no
<workmad3> shevy: heh :) I'm on 2.1 already :P
<atmosx> I feel that I can do everything with sinatra, why should I learn rails?
<atmosx> I mean, at this point... why should I bother? (except frmo that fact tha I already bought the book :-P )
<shevy> workmad3 yeah.. I'll soon transition to 2.1 too. not this week though, but probably still in january 2014 (at least, feb 2014)
danshultz has quit [Remote host closed the connection]
<atmosx> workmad3 has the answer, I feel it.
<shevy> atmosx because it is LARGER
<shevy> it's like a behemoth!
tonni has joined #ruby
<atmosx> larger?
<shevy> a bulldozer
<atmosx> mog
Baluse has joined #ruby
<atmosx> my apps are lightweight though
<shevy> hehe
danshultz has joined #ruby
<atmosx> I get the feeling that I'll be like 10 times faster using rails
<atmosx> if I ever become decent at least
pskosinski has quit [Quit: http://igg.me/p/597505/x/6111010 Resurrect Revenge Of The Cats: Ethernet As Open-Source Project]
<shevy> the technical university in vienna, the student pages, actually uses RoR
<workmad3> atmosx: that's pretty much the main reason - yes the framework is larger, but it also does massively more for you
<atmosx> shevy: cool
<shevy> there are a few really awesome things it provides - one is autogeneration of .pdf results
w4pm has quit [Ping timeout: 264 seconds]
<shevy> all apps should have that
max96at has joined #ruby
<atmosx> workmad3: okay
<atmosx> workmad3: so if I want to build a consumer application, is better to use rails becuase...?
<shevy> also a calendar and entries that you can re-shuffle for lectures in an orderly way
<atmosx> workmad3: it will make develpment easier?
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
* atmosx updating his freebsd servers
<workmad3> atmosx: depends massively on the app you're building
<workmad3> atmosx: but potentially, yes
alexherbo2 has joined #ruby
<shevy> you are a freebsd user? why?
Zubin has quit [Read error: Connection reset by peer]
cephalostrum is now known as zz_cephalostrum
marr has joined #ruby
_maes_ has joined #ruby
<atmosx> workmad3: I will have user accounts, will display info... monitoring data mostly. And will also have an API so that users can access their info via REST
<workmad3> atmosx: end of the day, the only reason to use any framework is because it'll make things easier for you... if it ends up making things harder then chances are your app isn't a good fit
<atmosx> workmad3: good
brotspinne has joined #ruby
<workmad3> atmosx: that's obviously with the proviso that you give enough time to learning the framework to have a bit of knowledge about it
<shevy> atmosx will you make screenshots once you are finished building those web thingies for your thesis/med-company that you do?
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<atmosx> I started learning RoR, then switched Sinatra, then stick to it, but now I'm pretty familiar with many concepts, like MVC, so I'll give RoR another shot, while start digging into JS
<workmad3> atmosx: you could also look at the rails-api project
phansch has joined #ruby
kevind_ has joined #ruby
<atmosx> shevy: the web-company no, the thesis will be open source, so totally the current app, I'm polishing ... is about 75% ready.
<atmosx> workmad3: what is the rails-api project?
bradhe has joined #ruby
tonni has quit [Read error: Connection reset by peer]
<workmad3> atmosx: basically, rails but only with the stuff loaded that's useful for API development
danshultz has quit [Ping timeout: 265 seconds]
arctarus has quit [Read error: Operation timed out]
net_mask has joined #ruby
Wolland has joined #ruby
<brotspinne> has someone an idea about the error and question is this code? http://ideone.com/jZQmD it's about classes constants
<brotspinne> in*
arctarus has joined #ruby
arturaz has quit [Ping timeout: 246 seconds]
vlad_sta_ has joined #ruby
jprovazn has quit [Quit: Leaving]
<workmad3> atmosx: if you were using rails-api on a project that needed front end stuff, you're probably building a rich JS client for it (angular, knockout, ember, something like that)
<workmad3> atmosx: so that's kinda the spot it's aimed at
kevind has quit [Ping timeout: 252 seconds]
kevind_ is now known as kevind
<atmosx> workmad3: okay
colonolGron has quit [Quit: leaving]
gja has quit [Quit: This computer has gone to sleep]
<brotspinne> the first case works just fine when defining the class method with def self.foo instead of self << class
phansch has quit [Ping timeout: 265 seconds]
mikepack has joined #ruby
huttan- has joined #ruby
bradhe has quit [Ping timeout: 260 seconds]
<brotspinne> I think the issue is about the eigenclass
aspires has joined #ruby
mikepack has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 252 seconds]
<atmosx> shevy: FreeBSD just works and I like the documentation.
<atmosx> I also like the PF firewall
havenwood has joined #ruby
<atmosx> but generally speaking I can configure anything I put hands on and it's not windows..
tannerburson has quit [Quit: tannerburson]
<shevy> ok but linux is not windows either!
g0bl1n has quit [Read error: Operation timed out]
<shevy> atmosx aaaaand there is a new alpha release of gobolinux!!! :D
<shevy> (but it is a one man project right now... should wait for a while to see if it survives)
<atmosx> gobowhat?
tannerburson has joined #ruby
zeeraw has joined #ruby
<workmad3> brotspinne: it's to do with constants being looked up with the lexical scope
enebo has joined #ruby
dangerousdave has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
<atmosx> yeah I'm on it
vlad_starkov has joined #ruby
<shevy> atmosx it's hey days were like 8 years ago though when hisham was still a student, nowadays he is working more on lua-rocks (with lua)
<brotspinne> workmad3: hm okay but what about "self::FOOBAR" vs "FOOBAR"?
tonni has joined #ruby
<shevy> mruby must takeover lua!
timonv has quit [Read error: Connection reset by peer]
tesuji has quit [Ping timeout: 264 seconds]
<shevy> atmosx is there really a big difference between freebsd and linux?
timonv has joined #ruby
<workmad3> brotspinne: 'self::FOOBAR' is accessing the FOOBAR constant from 'self', which in a class method is the class (and therefore the constant exists)
<atmosx> shevy: I don't really know anymore. I haven't used linux lately. I'm reading too many things for the new init system (systemd) and the debian debate which will probably set the state for everyone else
<workmad3> brotspinne: 'FOOBAR' is accessing the FOOBAR element from the lexical scope... but FOOBAR isn't in the lexical scope at that point
tonni has quit [Read error: Connection reset by peer]
<atmosx> shevy: My linux distribution of choice was gentoo, but I think that if I have to use linux in the future I'll go with debian
<brotspinne> workmad3: but why does it work when doing def self.foo; FOOBAR; end?
vlad_starkov has quit [Read error: Connection reset by peer]
sambao21 has quit [Quit: Computer has gone to sleep.]
krz has joined #ruby
apeiros has joined #ruby
<brotspinne> workmad3: http://ideone.com/vifbLy
<workmad3> brotspinne: there's a reason, again to do with scoping, but I can't remember it properly atm
nateberkopec has joined #ruby
<shevy> I see
vlad_starkov has joined #ruby
mikepack has joined #ruby
<workmad3> brotspinne: you also missed the case 'class A; FOOBAR = "hi"; class B < A; class << self; def test; FOOBAR; end; end; end; end'
terrellt has joined #ruby
bamdad has joined #ruby
<brotspinne> workmad3: this is case 1. and case 1 vs case 4 is the mystery for me. one is working and the other is not
<workmad3> brotspinne: which is different from 'class A; FOOBAR = "hi"; end; class A::B < A; class << self; def test; FOOBAR; end; end; end'
<Takumo> Hi all, I've got a question about memoization, I've tried both the memoize and memoizer gems, but for some reason neither of them want to work
<brotspinne> okay
<workmad3> brotspinne: the case I just gave isn't case 1 ;)
<waxjar> Takumo: what is your question?
<Takumo> I've got my class which has include Memoizer, and then next to the methods I want memoized I've done memoize(:method_name)
<Takumo> but I keep getting this error
<Takumo> well the error undefined method memoize
ahawkins has quit [Remote host closed the connection]
<brotspinne> workmad3: I see but I guess your case should work always
angusigu1ss has joined #ruby
<workmad3> brotspinne: yes, because 'FOOBAR' is in the lexical scope defined by 'Module.nesting' at that point... but in the second case, with class A::B, FOOBAR isn't in the Module.nesting scope, and the method doesn't work
vlad_starkov has quit [Read error: Connection reset by peer]
tonni has joined #ruby
<workmad3> brotspinne: constants and lexical lookup in ruby get a bit weird
shaunbak_ has quit []
<waxjar> Takumo: are you including that module before you call memoize?
bean__ has joined #ruby
<brotspinne> workmad3: still doesn't make sense to me
stock584 has quit [Quit: This computer has gone to sleep]
<Takumo> waxjar: I've got class Foo include Memoizer include MyModule end
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
<Takumo> and MyModule has memoize(:method) after the definition of :method
<waxjar> you need to include Memoizer in MyModule, then
Quintus_q has joined #ruby
dblessing has quit [Quit: dblessing]
samsonasu has quit [Quit: samsonasu]
phansch has joined #ruby
zz_cephalostrum is now known as cephalostrum
<Takumo> ok.
nwertman has joined #ruby
bamdad has quit [Quit: bamdad]
tonni has quit [Read error: Connection reset by peer]
<brotspinne> thanks
subbyyy has joined #ruby
xXxRosexXxEE has quit [Quit: ChatZilla 0.9.90.1 [Firefox 26.0/20131205173331]]
khismetix has joined #ruby
yasushi has quit [Remote host closed the connection]
angusigu1ss has quit [Ping timeout: 265 seconds]
arietis has joined #ruby
krz has quit [Ping timeout: 272 seconds]
huttan- has quit [Quit: leaving]
CaptainJet has joined #ruby
<workmad3> brotspinne: this is the bit of real relevance to you ;) 'If the constant cannot be found by looking at any of the modules in Module.nesting, Ruby takes the currently open module or class, and looks at its ancestors.'
<puppeh> is it called the top-level namespace or the global namespace?
shaunbaker has joined #ruby
<workmad3> brotspinne: so in the singleton class case, Module.nesting doesn't contain the scope for the constant (because it's scoped to A) and the currently open class is the singleton class for B, which doesn't have B (and by extension doesn't have A) in its ancestors
nwertman has quit [Ping timeout: 252 seconds]
<brotspinne> I see
danshultz has joined #ruby
<workmad3> brotspinne: but 'self::CONSTANT' is accessing CONSTANT directly on 'self'... and self is the class 'B'
andikr has quit [Remote host closed the connection]
Quintus_q has quit [Quit: WeeChat 0.4.2]
ferr has joined #ruby
<workmad3> brotspinne: and then 'def self.foobar' doesn't change the currently open class
<brotspinne> gotcha
maletor has joined #ruby
<workmad3> brotspinne: it's not exactly the most intuitive lookup mechanism in the world, especially at some edge cases (like this one) but it is at least well defined and something you can reason through, once you have the rules to hand :)
<brotspinne> thanks :)
lkba has quit [Ping timeout: 272 seconds]
spyderman4g63 has quit []
<Hanmac> its only a little bit difficult when you try to define constants into a singleton class ;P
acrussell has left #ruby [#ruby]
burlyscudd has quit [Quit: Leaving.]
rayners has joined #ruby
tobago has quit [Remote host closed the connection]
deens has joined #ruby
RaCx has joined #ruby
momomomomo has joined #ruby
vlad_starkov has joined #ruby
lethjakman has joined #ruby
nwertman has joined #ruby
<Hanmac> >> o = Object.new; class << o; class Foo; Bar = 5;end;end; o.singleton_class::Foo::Bar
<eval-in> Hanmac => 5 (https://eval.in/92991)
krz has joined #ruby
<Hanmac> workmad3: what doyou think about that or is that a no-go? ;P
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
puppeh has quit [Remote host closed the connection]
<workmad3> Hanmac: eval-in already said it works ;)
guinslym has joined #ruby
coca_rails has quit [Remote host closed the connection]
hamakn has quit [Remote host closed the connection]
JZTech101 has quit [Ping timeout: 252 seconds]
<Hanmac> there is a difference between "it works" and "you should not do that" ;P
coca_rails has joined #ruby
Advocation has joined #ruby
<workmad3> Hanmac: heh :)
JZTech101 has joined #ruby
deens has quit [Ping timeout: 260 seconds]
cephalostrum is now known as zz_cephalostrum
ghr has quit [Quit: Computer has gone to sleep.]
<workmad3> Hanmac: mostly, I'd say avoid doing crazy shit with constant scopes
gja has quit [Quit: This computer has gone to sleep]
gabriham_lincoln has quit [Remote host closed the connection]
<workmad3> Hanmac: and if you do, be prepared to justify it... and then spend the next 5 years explaining it to anyone that looks at the code :)
ghr has joined #ruby
<Hanmac> shevy: rwx has more than 200 commits ... and " representing 14,691 lines of code " ... and still growing ,P
gja has joined #ruby
samsonasu has joined #ruby
samsonasu has quit [Client Quit]
maletor has quit [Quit: Computer has gone to sleep.]
gabriha__ has joined #ruby
zz_cephalostrum is now known as cephalostrum
cjsarette has joined #ruby
arctarus has quit [Ping timeout: 252 seconds]
zigomir has quit [Remote host closed the connection]
arctarus has joined #ruby
coca_rails has quit [Ping timeout: 240 seconds]
_tpavel has joined #ruby
kpshek has quit []
Squarepy has quit [Quit: Leaving]
_Andres has quit [Read error: Connection reset by peer]
timonv has quit [Read error: Connection reset by peer]
gigetoo has quit [Remote host closed the connection]
<lupine> oh god
peregrine81 is now known as jeregrine
timonv has joined #ruby
gigetoo has joined #ruby
<lupine> I do hope people are keeping an eye on https://twitter.com/kennwhite
deens has joined #ruby
pskosinski has joined #ruby
hiasinho has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
coca_rails has joined #ruby
brotspinne has left #ruby ["Leaving..."]
gabriha__ has quit [Read error: Connection reset by peer]
b00stfr3ak has joined #ruby
<atmosx> lol
samsonasu has joined #ruby
hiasinho has left #ruby [#ruby]
aganov has quit [Quit: Leaving]
kpshek has joined #ruby
hiasinho has joined #ruby
deens has quit [Ping timeout: 248 seconds]
vlad_starkov has quit [Remote host closed the connection]
<Hanmac> workmad3: did the weeping angels reminds you too at the Boo Ghosts from Super Mario games? ;P
troyready has joined #ruby
gabriham_lincoln has joined #ruby
sambao21 has joined #ruby
tylersmith has quit [Remote host closed the connection]
ahmedelgabri has joined #ruby
chrisseaton has quit []
krz has quit [Quit: WeeChat 0.4.2]
angusigu1ss has joined #ruby
tylersmith has joined #ruby
Xeago_ has joined #ruby
drumsrgr8forn8 has joined #ruby
hiasinho has quit [Client Quit]
ahmedelg_ has quit [Ping timeout: 260 seconds]
v0n has quit [Read error: Operation timed out]
mojjojo has quit [Quit: mojjojo]
sparrovv has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 264 seconds]
griffindy has joined #ruby
tylersmith has quit [Ping timeout: 252 seconds]
angusigu1ss has quit [Ping timeout: 260 seconds]
matchaw has quit [Remote host closed the connection]
Xeago_ has quit [Remote host closed the connection]
maletor has joined #ruby
vlad_starkov has joined #ruby
_maes_ has joined #ruby
bradhe has joined #ruby
nathancahill has joined #ruby
matchaw has joined #ruby
TMM has quit [Quit: Ex-Chat]
devyn has joined #ruby
deens has joined #ruby
figgleberry has joined #ruby
Hanmac1 has joined #ruby
mojjojo has joined #ruby
nomenkun has quit [Read error: Operation timed out]
zipper has quit [Ping timeout: 252 seconds]
Lewix has quit [Remote host closed the connection]
mlpinit_ has quit [Remote host closed the connection]
pskosinski has quit [Remote host closed the connection]
carraroj has joined #ruby
dukz has quit [Remote host closed the connection]
mlpinit has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
dukz has joined #ruby
hiall_ is now known as Hiall
bradhe has quit [Ping timeout: 272 seconds]
IceyEC has quit [Quit: IceyEC]
bitri has quit [Quit: Textual IRC Client: www.textualapp.com]
cephalostrum is now known as zz_cephalostrum
Voodoofish4301 has joined #ruby
dkamioka has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
scarolan has joined #ruby
maletor has quit [Read error: Connection reset by peer]
MatthewsFace has joined #ruby
mspah_ has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
mary5030 has quit [Remote host closed the connection]
burlyscudd has joined #ruby
nhhagen has joined #ruby
dukz has quit [Ping timeout: 265 seconds]
RaCx has joined #ruby
g0bl1n has joined #ruby
Hanmac has joined #ruby
zeade has quit [Quit: Leaving.]
brennanMKE has quit [Remote host closed the connection]
nhhagen has quit [Remote host closed the connection]
nhhagen has joined #ruby
Hanmac1 has quit [Ping timeout: 260 seconds]
MatthewsFace has quit [Client Quit]
mspah_ has quit [Client Quit]
klaut_ has joined #ruby
klaut has quit [Ping timeout: 260 seconds]
mary5030 has joined #ruby
Hanmac1 has joined #ruby
coder_neo has joined #ruby
guinslym has quit [Ping timeout: 272 seconds]
maletor has joined #ruby
v0n has joined #ruby
Hanmac has quit [Ping timeout: 265 seconds]
sassamo has quit [Remote host closed the connection]
sassamo has joined #ruby
kpshek has quit []
dodosan has joined #ruby
achru has quit [Remote host closed the connection]
dweeb_ has quit [Quit: Computer has gone to sleep.]
Briareos1 has joined #ruby
camilasan has quit [Remote host closed the connection]
achru has joined #ruby
sassamo_ has joined #ruby
SilentHobo has joined #ruby
camilasan has joined #ruby
mehlah has quit [Quit: Leaving...]
bluOxigen has quit [Remote host closed the connection]
coder_neo has quit [Ping timeout: 252 seconds]
bluOxigen has joined #ruby
GeorgesLeYeti has quit [Quit: Quitte]
bluOxigen has quit [Read error: Connection reset by peer]
sassamo has quit [Ping timeout: 248 seconds]
bluOxigen has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
jlebrech has quit [Quit: Konversation terminated!]
coder_neo has joined #ruby
mehlah has joined #ruby
casheew has joined #ruby
yaymukund has joined #ruby
BraddBitt has joined #ruby
dkamioka has joined #ruby
freezey has joined #ruby
dweeb_ has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
achru has quit [Ping timeout: 252 seconds]
MindfulMonk has quit [Ping timeout: 252 seconds]
synergy__ has joined #ruby
Davey_ has joined #ruby
jacobat_ has joined #ruby
sassamo has joined #ruby
shanlar- has joined #ruby
bean__ has quit [Remote host closed the connection]
Al___ has joined #ruby
vlad_sta_ has joined #ruby
ehc_ has joined #ruby
pixelgremlins_ba has joined #ruby
bean__ has joined #ruby
iamsean_ has joined #ruby
ctp has joined #ruby
<shevy> hmmm
noname001__ has quit [Ping timeout: 264 seconds]
<shevy> Hanmac1 people have way too much time available
dachi_ has left #ruby [#ruby]
jfoy has joined #ruby
dachi_ has joined #ruby
lfox has quit [Quit: ZZZzzz…]
dodosan has quit [Ping timeout: 260 seconds]
camilasan has quit [Ping timeout: 260 seconds]
Deele has quit [Ping timeout: 260 seconds]
soulcake has quit [Ping timeout: 260 seconds]
joshu has quit [Ping timeout: 260 seconds]
Caius has quit [Ping timeout: 260 seconds]
ehc has quit [Ping timeout: 260 seconds]
iamsean has quit [Ping timeout: 260 seconds]
BraddPitt has quit [Ping timeout: 260 seconds]
moshee has quit [Ping timeout: 260 seconds]
bmn has quit [Ping timeout: 260 seconds]
DanKnox has quit [Ping timeout: 260 seconds]
cbetta_afk has quit [Ping timeout: 260 seconds]
shanlar has quit [Read error: Connection reset by peer]
max96at has quit [Ping timeout: 260 seconds]
tekacs has quit [Ping timeout: 260 seconds]
grayWolf has joined #ruby
mklappst_ has quit [Read error: Connection reset by peer]
jacobat has quit [Read error: Connection reset by peer]
casheew_ has quit [Read error: Connection reset by peer]
iamsean_ is now known as iamsean
zeeraw has quit [Ping timeout: 260 seconds]
pixelgremlins has quit [Ping timeout: 260 seconds]
beardedninja has quit [Ping timeout: 260 seconds]
yosafbridge has quit [Ping timeout: 260 seconds]
qubit has quit [Ping timeout: 260 seconds]
joonty has quit [Ping timeout: 260 seconds]
yokel has quit [Ping timeout: 260 seconds]
leh has quit [Ping timeout: 260 seconds]
willb2 has quit [Ping timeout: 260 seconds]
ehc_ is now known as ehc
dagobah has quit [Quit: Leaving...]
ehc has quit [Write error: Broken pipe]
leh has joined #ruby
sassamo_ has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Ping timeout: 260 seconds]
synergy_ has quit [Ping timeout: 260 seconds]
jerius has quit [Ping timeout: 260 seconds]
rmorello has quit [Ping timeout: 260 seconds]
Al__ has quit [Ping timeout: 260 seconds]
stef_204 has quit [Ping timeout: 260 seconds]
ephemerian has quit [Ping timeout: 260 seconds]
Davey has quit [Ping timeout: 260 seconds]
Kneferilis has quit [Ping timeout: 260 seconds]
Slavox has quit [Ping timeout: 260 seconds]
Jamo has quit [Ping timeout: 260 seconds]
Sami345 has quit [Ping timeout: 260 seconds]
Tarential has quit [Ping timeout: 260 seconds]
jeekl has quit [Ping timeout: 260 seconds]
awkisopen has quit [Ping timeout: 260 seconds]
bpgoldsb|too has quit [Quit: ZNC - http://znc.sourceforge.net]
Sami345 has joined #ruby
Jamo has joined #ruby
joonty has joined #ruby
willb2 has joined #ruby
bpgoldsb has joined #ruby
stef_204 has joined #ruby
soulcake has joined #ruby
Caius has joined #ruby
DanKnox has joined #ruby
jeekl has joined #ruby
moshee has joined #ruby
grayWolf is now known as Speed
Slavox has joined #ruby
Hanmac has joined #ruby
stef_204 has quit [Changing host]
stef_204 has joined #ruby
tekacs has joined #ruby
Caius has quit [Changing host]
Caius has joined #ruby
jeekl has quit [Changing host]
jeekl has joined #ruby
soulcake has quit [Changing host]
soulcake has joined #ruby
<apeiros> roflphp… mysql_escape_string is deprecated, please use mysql_real_escape_string…
yosafbridge has joined #ruby
qubit has joined #ruby
yokel has joined #ruby
Tarential has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
cbetta has joined #ruby
awkisopen has joined #ruby
qubit has quit [Changing host]
qubit has joined #ruby
Speed has quit [Changing host]
Speed has joined #ruby
kloeri has quit [Read error: Connection reset by peer]
mklappstuhl has joined #ruby
DrCode has joined #ruby
bmn has joined #ruby
jerius has joined #ruby
kloeri has joined #ruby
joshu has joined #ruby
Mattx has joined #ruby
kbouwser has joined #ruby
<Mattx> Hello
guinslym has joined #ruby
jfoy has quit [Client Quit]
<Mattx> I've a script running 24x7, scrappying some webs
Fractional has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
<Mattx> I've noticed that after a few hours it slows down
vlad_sta_ has quit [Remote host closed the connection]
sassamo has quit [Remote host closed the connection]
<atmosx> Mattx: it's the exhaustion
<Mattx> but it doesn't crash return any error or anything
<atmosx> Mattx: you have to check it out
speakingcode-wor has quit [Quit: Lost terminal]
<Mattx> ok, and the question is, what could be the problem apart from memory consumption?
<Fractional> Good morning! :D
vlad_starkov has joined #ruby
<atmosx> Mattx: engine?
sassamo has joined #ruby
Hanmac1 has quit [Ping timeout: 252 seconds]
bluOxigen has joined #ruby
<Mattx> engine?
yfeldblum has joined #ruby
<atmosx> Mattx: engine
<Mattx> what do you mean by "engine?"
figgleberry has quit []
dEPy has joined #ruby
Deele has joined #ruby
beardedninja has joined #ruby
<Mattx> well, I didn't get your question
lethjakman has quit [Ping timeout: 248 seconds]
kpshek has joined #ruby
<Hanmac> atmosx: maybe its using to_sym somewhere in the script? ;P
sepp2k has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
RaCx has joined #ruby
nowthatsamatt has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
Hobogrammer has quit [Remote host closed the connection]
allaire has quit []
bluOxigen has joined #ruby
ferr has quit [Quit: Lost terminal]
sassamo has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Ping timeout: 252 seconds]
allaire has joined #ruby
rootshift has joined #ruby
maletor has joined #ruby
<apeiros> php's mysqli interface is a joke, right? o0
Hanmac1 has joined #ruby
<apeiros> holy fuck, I know why I quit with that horrible pile of shit…
phansch has quit [Quit: Leaving]
<mjc_> apeiros: I think PDO is the recommended method for that these days
allaire has quit [Client Quit]
Virtualize has quit [Quit: Leaving...]
maletor has quit [Client Quit]
<apeiros> mjc_: sounds like visualbasic… that had like 5 incomplete DB interfaces too…
Hanmac has quit [Ping timeout: 248 seconds]
IcyDragon has joined #ruby
<mjc_> apeiros: yeah
IceDragon has quit [Ping timeout: 260 seconds]
IcyDragon is now known as IceDragon
rmorello has joined #ruby
Hobogrammer has joined #ruby
tharindu has joined #ruby
heftig has quit [Quit: Quitting]
brennanMKE has joined #ruby
nism has joined #ruby
skaflem has quit [Quit: Leaving]
<atmosx> everyone is bashing at php
<atmosx> poor phph
maletor has joined #ruby
<atmosx> Mattx: I bet your problem has more to do with websites banning your IP than anything ese
<atmosx> else
v0n has quit [Quit: WeeChat 0.4.2]
<atmosx> Mattx: except if you're doing something stupid like opening a new database connection on every object you create etc
v0n has joined #ruby
[FBI] has joined #ruby
<[FBI]> | Starting logging this channel #ruby - See logs at http://irclogger.arpnetworks.com - Lines beginning with "[off]" will not be logged - You can stop logging by typing [FBI]: off
iliketurtles has joined #ruby
timonv has joined #ruby
iliketurtles has quit [Excess Flood]
<atmosx> [FBI]: off
<[FBI]> | Stopping logging this channel #ruby - See logs at http://irclogger.arpnetworks.com - You can re-enable log by inviting me back, e.g: /INVITE [FBI] - or telling me in a private message: LOG #CHANNEL [KEY]
[FBI] has left #ruby [#ruby]
<atmosx> wtf?
<atmosx> [FBI]: restart
yacks has quit [Quit: Leaving]
tyl_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
canton7-mac has quit [Quit: Leaving]
Hanmac1 has quit [Ping timeout: 272 seconds]
vlad_starkov has quit [Remote host closed the connection]
chrisseaton has joined #ruby
pel_daniel has joined #ruby
thesheff17 has quit [Remote host closed the connection]
Es0teric has joined #ruby
nathancahill has quit [Ping timeout: 272 seconds]
subbyyy has quit [Quit: none 0.3.9.2]
vlad_starkov has joined #ruby
Es0teric has quit [Max SendQ exceeded]
dweeb_ has quit [Quit: Textual IRC Client: www.textualapp.com]
thesheff17 has joined #ruby
ktosiek has joined #ruby
kpshek has quit []
gabriha__ has joined #ruby
Lewix has joined #ruby
Hanmac has joined #ruby
tulak1 has joined #ruby
kewubenduben has joined #ruby
nathancahill has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
Es0teric has joined #ruby
guinslym has quit [Quit: Leaving]
<apeiros> atmosx: your bot?
<atmosx> apeiros: no
<apeiros> hm, k
maletor has joined #ruby
jasonwebster has joined #ruby
tulak has quit [Ping timeout: 246 seconds]
mechanicles has joined #ruby
shaunbaker has quit [Remote host closed the connection]
gabriham_lincoln has quit [Ping timeout: 245 seconds]
Xiti has joined #ruby
dkamioka has quit [Remote host closed the connection]
nathancahill_ has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
mojjojo has quit [Quit: mojjojo]
Megtastique has quit []
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jasonwebster has quit [Client Quit]
p8952 has joined #ruby
Megtastique has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Txandy has joined #ruby
hamakn has joined #ruby
bluOxigen has quit [Remote host closed the connection]
nathancahill has quit [Ping timeout: 272 seconds]
bluOxigen has joined #ruby
<shevy> haha
<shevy> FBI was here!
chrisseaton has quit []
dkamioka_ has joined #ruby
noop has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
MrZYX|off is now known as MrZYX
jailbot has joined #ruby
meatherly has joined #ruby
nathancahill_ has quit [Ping timeout: 272 seconds]
angusigu1ss has joined #ruby
carraroj has quit [Read error: Operation timed out]
tkuchiki has quit [Remote host closed the connection]
rubyracer has joined #ruby
bradhe has joined #ruby
<momomomomo> shevy: I don't think the FBI hosts on a VPS
hamakn has quit [Ping timeout: 272 seconds]
bluOxigen has quit [Remote host closed the connection]
bluOxigen has joined #ruby
bluOxigen has quit [Changing host]
bluOxigen has joined #ruby
timonv has quit [Remote host closed the connection]
bluOxigen has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
g0bl1n has quit [Ping timeout: 272 seconds]
sparrovv has joined #ruby
kristiandelay has joined #ruby
Virtualize has joined #ruby
garybrett has quit [Quit: Leaving...]
sparrovv has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 252 seconds]
IceyEC has joined #ruby
mlpinit_ has joined #ruby
bluOxigen has quit [Remote host closed the connection]
zxd has quit [Ping timeout: 246 seconds]
estebanrules has joined #ruby
angusigu1ss has quit [Ping timeout: 272 seconds]
sassamo has joined #ruby
momomomomo has quit [Quit: momomomomo]
bluOxigen has joined #ruby
<estebanrules> I'm a fairly new ruby programmer, coming over from python. I cam to a realization about python earlier this morning.
arctarus has quit [Remote host closed the connection]
<estebanrules> *came
dEPy has quit [Quit: Computer has gone to sleep.]
aantix has joined #ruby
kristiandelay has quit [Ping timeout: 252 seconds]
bluOxigen has quit [Read error: Connection reset by peer]
wildroman2 has quit [Ping timeout: 246 seconds]
bluOxigen has joined #ruby
mlpinit has quit [Ping timeout: 252 seconds]
bluOxigen has quit [Read error: Connection reset by peer]
shadoi has joined #ruby
bluOxigen has joined #ruby
jetole has joined #ruby
RUBICN64 has joined #ruby
nathancahill has joined #ruby
spider-mario has joined #ruby
RUBICN64 has left #ruby [#ruby]
duggiefresh has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 252 seconds]
carraroj has joined #ruby
<jetole> Hey guys. I don't know any ruby. I installed a bunch of packages the other day for some app via bundle. I'm not using the app anymore. Does anyone know how I can uninstall all gems on the system that were installed via bundle. I don't want to uninstall anything that the package manager may have installed (apt-get in my case)
<jetole> i.e. I don't want to uninstall any gems that may be system installed dependencies for official packages and would have been installed via apt-get
sassamo has quit [Ping timeout: 260 seconds]
kpshek has joined #ruby
niftylettuce_ has quit [Ping timeout: 264 seconds]
chihhsin_cloud has quit [Ping timeout: 264 seconds]
<MrZYX> do you still have the Gemfile(.lock) ?
bluOxigen has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
<jetole> MrJoshua, I don't think so. It was part of the following app but I don't see bundle on the github pages: https://github.com/bltavares/baseline
camilasan has joined #ruby
Xeago has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
dEPy has joined #ruby
bluOxigen has joined #ruby
tylersmith has joined #ruby
<jetole> oops MrZYX
<jetole> said the wrong nick
Vitor has joined #ruby
<MrZYX> This doesn't look like it's using bundler, so i doubt you installed anything with bundle for that
ohwhoa has quit [Quit: woah!]
Zespre_ has joined #ruby
<jetole> MrZYX, yeah I used bundle for something and don't recall what and it was part of during that app install that it happened
lethjakman has joined #ruby
bitri has joined #ruby
mary5030 has joined #ruby
niftylettuce_ has joined #ruby
<jetole> one gem I just manually removed was vagrant gem
<jetole> but there were more
<MrZYX> gem list gives you all that are installed
mojjojo has joined #ruby
<Xuisce> ah got out of all the other ruby channels
<MrZYX> consult your apt to determine which are installed through it
<Wardje> Is there a way to generate a Gemfile with versions going by the versions currently installed for a project? I inherited a project that doesn't specify version numbers whatsoever in its Gemfile and I want to gradually bump up the version numbers manually and not run into possible issues due to version mismatch after running an update
<Xuisce> Best bet is to stick here for ruby
<Xuisce> :)
<MrZYX> run gem remove for everything else
<Wardje> Or is this a manual job using bundle show and writing things down?
Txandy has quit [Quit: Linkinus - http://linkinus.com]
<jetole> MrZYX, well right off the bat I have timestamps for a bunch of them via ls -l /usr/local/bin
<MrZYX> Wardje: manual job, you can also bump the locked version of a single gem with bundle update gemname
<jetole> MrZYX, can that help me isolate it
<jetole> ?
Txandy has joined #ruby
bjhaid has quit [Ping timeout: 272 seconds]
nhhagen has quit [Remote host closed the connection]
<Wardje> MrZYX: ok, thanks, good thing the list isn't terribly long ^̮^
jailbot has quit [Read error: Connection reset by peer]
Xeago has quit [Ping timeout: 272 seconds]
jailbot has joined #ruby
<MrZYX> jetole: if you don't have the specification (=list) of what was installed anymore, there's no safe way to determine what you want to keep than to make a list (=look up in apt) what you want to keep
Spami has joined #ruby
<jetole> MrZYX, well thanks
kacperix has joined #ruby
stkowski has joined #ruby
aaronmcada has joined #ruby
ronal1102 has joined #ruby
dEPy has quit [Quit: Lingo - http://www.lingoirc.com]
aaronmcada has quit [Client Quit]
blooberr__ has quit [Ping timeout: 245 seconds]
snatchfrigate has quit [Ping timeout: 245 seconds]
joker___ has quit [Ping timeout: 245 seconds]
mjc_ has quit [Ping timeout: 245 seconds]
Tranquility has quit [Ping timeout: 245 seconds]
einarj has quit [Remote host closed the connection]
roolo has quit [Remote host closed the connection]
zzak has quit [Read error: Connection reset by peer]
yshahin has quit [Ping timeout: 272 seconds]
mostlybadfly has quit [Ping timeout: 272 seconds]
zzak has joined #ruby
bjhaid has joined #ruby
RaCx has quit [Ping timeout: 246 seconds]
snatchfrigate has joined #ruby
blooberr__ has joined #ruby
Tranquility has joined #ruby
joker__ has joined #ruby
sassamo has joined #ruby
francisfish has quit [Remote host closed the connection]
yshahin has joined #ruby
mostlybadfly has joined #ruby
aaronmcadam has quit [Ping timeout: 272 seconds]
browndawg has quit [Quit: Leaving.]
venkat has joined #ruby
mjc_ has joined #ruby
Hanmac1 has joined #ruby
punkzio has joined #ruby
Hanmac has quit [Ping timeout: 272 seconds]
ahmedelgabri has quit []
rmorello has quit [Quit: Textual IRC Client: www.textualapp.com]
troessner has quit [Quit: Leaving]
anildigital has joined #ruby
Wolland has quit []
chrisseaton has joined #ruby
Wolland has joined #ruby
<anildigital> Friends.. I will be giving talk on Ruby to my work colleagues
snatchfrigate has quit [Ping timeout: 272 seconds]
<anildigital> they are all programmers.. but never done Ruby
<anildigital> what type of talk should I give?
<anildigital> What should slides contain?
<anildigital> thanks
<Morrolan> Code.
<Morrolan> If you have the time, a high-level walkthrough of a real-world application.
<MrZYX> what's you business? what's the common denominator among your colleagues? can you compare ruby ('s features) to that?
<anildigital> consulting .. and services..
rmorello has joined #ruby
<anildigital> basically new projects.. team here use java, scala, groovy
SHyx0rmZ has joined #ruby
snatchfrigate has joined #ruby
tonni has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
heidi has joined #ruby
<anildigital> so it would be what is ruby, who started it.. ruby as object oriented language. strings, arrays, hashes.. classes, modules .. mixins.. exceptions.. enumerables
<anildigital> what's missing there?
yaymukund has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
<kacperix> Hi. I stuck with gem dependencies. I have own gem, rails engine & rails application. All 3 are in development. rails application includes rails engine which includes gem. But I have problem with install rails enginge inside rails application because of gem is not found
<MrZYX> data transformation, .map, .inject, .each_with_object etc
khismetix has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
zoscoy has joined #ruby
<MrZYX> anildigital: also duck typing
<kacperix> Errors happens Could not find gem 'szoprb (>= 0) ruby', which is required by gem 'api_v3 (>= 0) ruby', in any of the sources.
vlad_sta_ has joined #ruby
<anildigital> MrZYX: :D
vlad_sta_ has quit [Remote host closed the connection]
bluOxigen has quit [Remote host closed the connection]
FF_ has quit [Quit: FF_]
bluOxigen has joined #ruby
vlad_sta_ has joined #ruby
deens has quit [Remote host closed the connection]
<anildigital> Anything that must be in the demo?
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<MrZYX> hm, open class model maybe?
<anildigital> MrZYX: okay..
olivier_bK has quit [Ping timeout: 260 seconds]
dachi_ has left #ruby [#ruby]
dachi_ has joined #ruby
heidi has quit [Ping timeout: 248 seconds]
bluOxigen has quit [Read error: Connection reset by peer]
bitri is now known as justinbleeper
bluOxigen has joined #ruby
vlad_starkov has quit [Ping timeout: 265 seconds]
<MrZYX> oh and blocks of course
JZTech101 is now known as {me}
rayners has quit [Ping timeout: 264 seconds]
<anildigital> MrZYX: yepp..
chipotle has quit [Remote host closed the connection]
{me} is now known as me
me is now known as JZTech101
chipotle has joined #ruby
chipotle has quit [Max SendQ exceeded]
mocfive has joined #ruby
Kricir has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
bluOxigen has quit [Remote host closed the connection]
chipotle has joined #ruby
chipotle has quit [Max SendQ exceeded]
bluOxigen has joined #ruby
spyderman4g63 has joined #ruby
chipotle has joined #ruby
sparrovv has joined #ruby
duggiefresh has joined #ruby
rdark has quit [Quit: leaving]
heidi has joined #ruby
nateberkopec has quit [Quit: Leaving...]
klaut_ has quit [Remote host closed the connection]
Fire-Dragon-DoL has joined #ruby
<estebanrules> sorry as I was saying before
fire has quit [Quit: WeeChat 0.4.1]
stephanos-belli has joined #ruby
m00nlight has quit [Ping timeout: 272 seconds]
ktosiek_ has joined #ruby
mityaz has joined #ruby
aaronmcadam has joined #ruby
mikepack has joined #ruby
<estebanrules> I feel like learning python before ruby really restricted my imagination. There are so many ways to do things in ruby, and python is more "stuffy and strict".
keyword has quit [Quit: Leaving.]
jlast_ has joined #ruby
m00nlight has joined #ruby
<estebanrules> so now I have to adopt a new attitude towards coding, and I think that's been the hardest part for me.
Lewix has quit [Remote host closed the connection]
Notte has joined #ruby
banjara has joined #ruby
Lewix has joined #ruby
nateberkopec has joined #ruby
lmickh has quit [Remote host closed the connection]
v0n has quit [Ping timeout: 272 seconds]
lmickh has joined #ruby
yasushi has joined #ruby
kacperix has quit [Quit: Textual IRC Client: www.textualapp.com]
baroquebobcat has joined #ruby
MattStratton has joined #ruby
<shevy> when I have: module Foo; def self.bar;end;end <--- is there a simple way to add an alias to this? for instance, .foo() ?
ktosiek has quit [Ping timeout: 260 seconds]
<Hanmac1> "Ruby - Float::INFINITY + 1 ways to do something"
Hanmac1 is now known as Hanmac
<shevy> simple
<shevy> simple!!!
mikepack has quit [Ping timeout: 252 seconds]
<shevy> ok, I will use the ugly way now
<shevy> module Foo; def self.bar; puts 'hi there!'; end; def self.foo; Foo.bar; end; end
jlast has quit [Ping timeout: 272 seconds]
<estebanrules> hehe yes Hanmac
<Hanmac> shevy: you dont need "Foo." inside the foo method
<estebanrules> what I really need to study more is blocks/procs
bluOxigen has quit [Remote host closed the connection]
<estebanrules> I'm having issues wrapping my head around them
mojjojo has quit [Quit: mojjojo]
Matriks has joined #ruby
bradhe has joined #ruby
nateberkopec has quit [Client Quit]
bluOxigen has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
<shevy> Hanmac really? hmm
<Hanmac> shevy imo the best way would be: class << self; alias; end
<shevy> waaah
deens has joined #ruby
nateberkopec has joined #ruby
<shevy> uuuuugly
carraroj has quit [Ping timeout: 260 seconds]
<shevy> estebanrules yeah. when do you wanna use a proc?
<Hanmac> estebanrules: did you have other programing language experimance before? like C(++) ? think about procs as anonymous functions or function pointers
VTLob has joined #ruby
<estebanrules> I used to code a lot in C, and most recently python
<shevy> ack
<shevy> a pythonista!
<estebanrules> shevy - to be truthful, I don't know ;) I think that's part of the problem
<shevy> close the doors, ready the shotguns!
<shevy> estebanrules yeah
<estebanrules> shevy - read what I wrote above
<estebanrules> concerning python
vlad_starkov has joined #ruby
<shevy> I face the same situation even after all those years
<estebanrules> Hanmac: thank you
<shevy> estebanrules once bitten by the snake, you can't leave it anymore, even though pythons aren't venomous as far as I remember... ;)
stock584 has joined #ruby
<shevy> sss Szssh sshshs!
shadoi has quit [Quit: Leaving.]
ewnd9 has quit [Ping timeout: 264 seconds]
<shevy> estebanrules what I don't understand about procs is that they seem just like normal objects
shadoi has joined #ruby
<estebanrules> I think python did permanent damage to me. My biggest challenge in learning Ruby is changing the way I view coding and what's possible.
Rickmasta has quit [Quit: Leaving]
bradhe has quit [Ping timeout: 260 seconds]
tharindu has quit [Quit: Leaving...]
<estebanrules> thanks Hanmac, I'll look this over
<Hanmac> shevy https://i.chzbgr.com/maxW500/7995460608/hD9AF00E3/ << the only snake i would allow to bite me ;P ;D
Bira has joined #ruby
Lewix has quit [Read error: Connection reset by peer]
pixelgremlins_ba has quit [Read error: Connection reset by peer]
<estebanrules> shevy - I also don't fully understand the relationship between blocks and procs
w4pm has joined #ruby
<estebanrules> but I'm learning
Lewix has joined #ruby
RaCx has joined #ruby
<shevy> blocks seem much easier to understand and more useful
<Morrolan> If it was Facebook, it'd be "It's complicated". :D
<havenwood> estebanrules: I'd suggest just ignoring procs and lambdas until you have a mastery of the much-more-used blocks
<havenwood> shevy: +1
<shevy> yeah that is another thing
<shevy> the difference between procs and lambdas
Al___ has quit [Quit: Al___]
<havenwood> arity and locality of return!
<shevy> :)
<estebanrules> havenwood - I think that's probably good advice ;)
<Hanmac> estebanrules: blocks are a syntax and no objects (itself) procs are objects and could be made from blocks
<havenwood> also, stabby stab stab ->{}
<havenwood> stabby lambdas ftw
angusigu1ss has joined #ruby
<shevy> Hanmac but just about everything in ruby is an object!
<shevy> estebanrules you can even capture methods
<estebanrules> ok, so for example, can you give me an example of when using a block would be advantageous?
<shevy> estebanrules: lookie -> def foo; puts 'foo'; end; method(:foo).call
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
jmeeuwen has quit [Quit: Disconnecting from stoned server.]
<shevy> blocks given you more flexibility
<shevy> *give
<Hanmac> shevy yes and no ... there are exceptions ... nearly everything is an object ... and what is not an object returns an object(like if ... else is not an object but returns one) or can be turned into an object (blocks are no objects but can be turned into procs which are objects)
<estebanrules> shevy - so what's the difference between just calling the method
<shevy> estebanrules often you won't really absolutely need them, you can just write methods without tapping into blocks
jmeeuwen has joined #ruby
mocfive has quit [Remote host closed the connection]
alvaro_o has joined #ruby
<shevy> estebanrules that you can put a lot of additional information into a block! it's like an extra argument
<shevy> to all methods!
matchaw has quit [Read error: Connection reset by peer]
<shevy> and the best thing is you don't have to use them if you don't want to
<estebanrules> yeah, blocks just seem to be a very interesting way of doing things
mocfive has joined #ruby
<shevy> also, they can automatically run some code like in File.new() {}
alexfreidah has joined #ruby
<shevy> like perform .close there automatically
<shevy> in python you'd have to do .close specifically I think
<shevy> no idea actually ;)
<shevy> lemme google how you create files in python...
failshell has joined #ruby
vlad_sta_ has joined #ruby
<Hanmac> estebanrules: for sample get all files into current dir and sort the file names after file size ... Dir["*"].sort(&File.method(:size)) ... there is where the #method can be useful
<shevy> oh yes... "The easiest way to simply create a file without truncating it in case it exists is this:"
<shevy> open(x, 'a').close()
chrisseaton has quit [Read error: Connection reset by peer]
<shevy> I was right!
<estebanrules> Hanmac - I see
<shevy> hmm although it is mentioned that .close() is optional
mocfive_ has joined #ruby
bluOxigen has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 252 seconds]
bluOxigen has joined #ruby
mocfive has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
bricker has joined #ruby
<Hanmac> shevy "The easiest way to simply create a file without truncating it in case it exists is this:" what about that? ;P FileUtils.touch x
angusigu1ss has quit [Ping timeout: 272 seconds]
vpretzel has quit [Ping timeout: 272 seconds]
vlad_starkov has quit [Ping timeout: 248 seconds]
mklappstuhl has joined #ruby
lockweel has joined #ruby
jprovazn has joined #ruby
dkamioka_ has quit [Remote host closed the connection]
<shevy> Hanmac without touch!
<shevy> and without modifying mtime
<shevy> :)
Rickmasta has joined #ruby
<Hanmac> hm creating a file without touching it ... hm ...
<miah> hai
* Hanmac uses Telekinesis ... it is very effective!
nhhagen has joined #ruby
<LastWhisper> hey guys
<LastWhisper> i'm trying to learn more about ruby hashes
<LastWhisper> besides the rubydoc page
<LastWhisper> does anyone have a good resource/tutorial about it?
mikepack has joined #ruby
alex88 has quit [Quit: Leaving...]
sassamo has quit [Read error: Connection reset by peer]
<miah> LastWhisper: here maybe? http://www.brpreiss.com/books/opus8/
sassamo has joined #ruby
<miah> that section specifically
<LastWhisper> great! ty miah
vpretzel has joined #ruby
zellio_ has joined #ruby
<estebanrules> LastWhisper - here is a short one - http://rubylearning.com/satishtalim/ruby_hashes.html
zellio_ is now known as zellio
monkegjinni has quit [Remote host closed the connection]
<Hanmac> LastWhisper: jst think about Ruby Hashs like Arrays where you can use EVERYTHING as keys (instead of only Integer with Array)
sparrovv has quit [Remote host closed the connection]
<anildigital> anyone using emacs.. and getting this error
monkegjinni has joined #ruby
alexfreidah has quit [Ping timeout: 260 seconds]
nhhagen has quit [Ping timeout: 252 seconds]
<anildigital> call-interactively: Symbol's value as variable is void: last-command-char [6 times]
<anildigital> for completing brackets
<Dwarf> rails chan is dead, so you guys are up: https://gist.github.com/anonymous/59fa54d38b20be988272 I get the error "param not found: comment"
mikepack has quit [Ping timeout: 264 seconds]
<havenwood> Dwarf: #rubyonrails
<Hanmac> Dwarf: try #rubyonrails
<Hanmac> ;P
Hiall has quit [Ping timeout: 246 seconds]
<Dwarf> Well slap my ass and call me nancy.
Soda has joined #ruby
<shevy> hi nanny
Notte has quit [Remote host closed the connection]
mklappstuhl has quit []
stephanos-belli has quit [Quit: Page closed]
nhhagen has joined #ruby
mehlah has quit [Quit: Leaving...]
alexfreidah has joined #ruby
<Hanmac> "nancy"? it could be worse ;P
keyword has joined #ruby
noop has quit [Ping timeout: 260 seconds]
monkegjinni has quit [Ping timeout: 264 seconds]
<LastWhisper> Hanmac: that's an interesting perspective. I think the only thing that is proving difficult to wrap my head around is the syntax itself, and how to call things. :)
<Fractional> Hanmac, Shevy: Are your auras still flowing with Ruby energy? :D
a-priori has joined #ruby
<shevy> Fractional I am still using ruby
keyword has left #ruby [#ruby]
* Hanmac is currently on the dark side ... deep in the C-ext programming ... ;P
<shevy> but I am waiting for a better language
oznik_ has left #ruby [#ruby]
jlast_ has quit [Remote host closed the connection]
cpruitt has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
alexherbo2 has quit [Ping timeout: 265 seconds]
iamsean has quit [Quit: iamsean]
matchaw has joined #ruby
nomenkun has joined #ruby
lockweel has quit [Remote host closed the connection]
iamsean has joined #ruby
reset has joined #ruby
<Hanmac> Fractional: dam ... i didnt do yet what i wanted to do for you ... do you have your newest stuff in a git repository? i wanted to add some TileSet class feature (where you can use one image or multiple for managing the Image of the Tiles )
nhhagen has quit [Ping timeout: 252 seconds]
justinbleeper has quit [Quit: Textual IRC Client: www.textualapp.com]
<Fractional> Hanmac: Having a hard time understanding a effecient way to handle collision detection. It really made me become less motivated to finnish the work =/
<Hanmac> event collision for event calling? yeah that can be very complicated ... (i only wanted to add the Tileset stuff for you, the other could be to complicated)
ephemerian has joined #ruby
jlast has joined #ruby
zz_cephalostrum is now known as cephalostrum
dfranciosi has quit [Remote host closed the connection]
phipes has joined #ruby
mocfive has joined #ruby
centrx has joined #ruby
aspires has quit [Remote host closed the connection]
weszlem has joined #ruby
aspires has joined #ruby
sassamo has quit [Read error: Operation timed out]
mocfive_ has quit [Ping timeout: 260 seconds]
mikepack has joined #ruby
decoponio has quit [Quit: Leaving...]
blaxter has quit [Ping timeout: 272 seconds]
phantasm66 has joined #ruby
phantasm66 has quit [Excess Flood]
sassamo has joined #ruby
phantasm66 has joined #ruby
phantasm66 has joined #ruby
phantasm66 has quit [Changing host]
phantasm66 has quit [Excess Flood]
lkba has joined #ruby
phantasm66 has joined #ruby
Virtualize has quit [Quit: Leaving...]
v10energy has joined #ruby
<v10energy> does anybody know of a gem that allows you to update google docs spreadsheet?
kebabski has joined #ruby
nwertman has quit [Ping timeout: 260 seconds]
claymore has quit [Ping timeout: 252 seconds]
v0n has joined #ruby
yasushi has quit [Remote host closed the connection]
zeade has joined #ruby
zeade has left #ruby [#ruby]
alexherbo2 has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
mikepack has quit [Ping timeout: 252 seconds]
claymore has joined #ruby
wiku6 has joined #ruby
<wiku6> can anyone explain to me why ruby-lang you can't type/chat in it?
fijimunkii has joined #ruby
<centrx> wiku6, Isn't this type/chat?
<pragmatism> wiku6: I think it's a private channel: you're allowed to monitor.
<pragmatism> Dunno though.
<pragmatism> I used to idle in there actually, maybe you need to ident?
<centrx> wiku6, It may have a freenode mode set where you have to be registered with nickserv to send messages
<pragmatism> ^^ that
<wiku6> ohhhhhhhhhhhhhhhhhhhhhhhh, that makes sense
rezzack has joined #ruby
freezey has quit [Remote host closed the connection]
<wiku6> i've been logged into ruby-lang all day though and BARELY anyone talks
<wiku6> some dude just said 'quack quack' and that's the most i've seen all day
<centrx> This is the more popular channel, along with #rubyonrails
<centrx> That was me!
<centrx> Even though #ruby-lang is the channel the Ruby website refers you to
RoryHughes has joined #ruby
deception has joined #ruby
<shevy> wiku6 they changed the #ruby-lang channel to "register to speak" I think either in 2012 or in 2013
<shevy> since then there was a decline. I left because of that
<wiku6> i'm pretty new to IRC, but freenode = programming languages, rizon = random shit, quakenet = games, right?
mechanicles has quit [Remote host closed the connection]
<pragmatism> wiku6: basically :P
geekbri has joined #ruby
<pragmatism> can someone mention me?
<centrx> DALnet used to be the place to be
<Morrolan> pragmatism: Ding.
<pragmatism> Morrolan: thanks.
<pragmatism> Guess irssi still needs some configging
wildroman2 has joined #ruby
nathancahill_ has joined #ruby
<pragmatism> Morrolan: one more try?
<wiku6> What is a rubyist opinion on Go? Reddit has been raving about it recently.
coca_rails has quit [Remote host closed the connection]
<shevy> wiku6 just one new language sponsored by a big corporation, similar to all the already existing C-family ones
<pragmatism> Go is awesome for concurrency
<Morrolan> pragmatism: Itsa me!
<pragmatism> You could use EM or Celluloid to do about the same thing in ruby
nathancahill has quit [Ping timeout: 272 seconds]
nathancahill_ is now known as nathancahill
coca_rails has joined #ruby
St_Marx has quit [Ping timeout: 264 seconds]
<havenwood> wiku6: Go is a nice modern replacement for where you might otherwise use C.
<pragmatism> also what shevy said
<havenwood> wiku6: Fugly.
postmodern has joined #ruby
Virtualize has joined #ruby
<wiku6> god damnit, i just realized that my tmux fucked up again, stupid utf-8
wiku6 has quit [Quit: WeeChat 0.3.8]
Virtualize has quit [Client Quit]
<shevy> there he goes again
<estebanrules> I've been learning Go, its cool. And some of the web frameworks that have been coming out are interesting
<pragmatism> estebanrules: What implementations attracted you to it?
<pragmatism> aka what are you building?
<shevy> it's a bad omen - he mentions Go, and there he Go-es again
wiku6 has joined #ruby
dangerousdave has joined #ruby
<pragmatism> groan lol
<shevy> Hanmac now I am doing hanmac-style jokes ... :(
<shevy> pragmatism don't worry, Hanmac will soon do even worse jokes
St_Marx has joined #ruby
<Hanmac> shevy : "might the pun with you" ;P
bean__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<estebanrules> pragmatism - I used to code a lot in C. I like the "C-esque" nature of it. I'm primarily interested in the web applications, but also programs for servers
<pragmatism> estebanrules: Cool. I use Ruby (obs, lol) for most web stuff, and C for most everything else
<shevy> look Hanmac everyone is doing C in here
weszlem has quit []
coca_rails has quit [Ping timeout: 240 seconds]
<Hanmac> estebanrules & pragmatism i use evil C macros to connect C++ functions with ruby in my binding (they create the get and set methods for me)
freezey has joined #ruby
bradhe has joined #ruby
phipes has quit [Remote host closed the connection]
<estebanrules> pragmatism: I'm learning ruby right now, once I have a good handle on ruby then I'll jump in to rails
craigp has joined #ruby
bean__ has joined #ruby
<pragmatism> estebanrules: It's a small jump :) Ruby makes everything so deliciously easy
<wiku6> estebanrules: isn't your name from that second life video of the small midget going to strip clubs and saying he owns it now?
<estebanrules> I think anyone who is a serious coder should try and learn some C. It's so helpful.
tannerburson has quit [Quit: tannerburson]
<pragmatism> Bash, C, Ruby
<pragmatism> Trifecta of productivity
<estebanrules> wiku6: not to my knowledge. My last name is Esteban, and I rule ;)
<pragmatism> :O
<pragmatism> :OOOOO
<estebanrules> yes
<pragmatism> NOW WE KNOW WHO YOU ARE
<estebanrules> indeed.
jetole has quit [Ping timeout: 246 seconds]
<pragmatism> Now every time you ask a question, we're gonna send you a beer bill
alekst has joined #ruby
<estebanrules> pragmatism - would you recommend learning Sinatra before Rails?
<pragmatism> Nah
ffranz has quit [Ping timeout: 260 seconds]
<havenwood> estebanrules: I would.
<pragmatism> IMHO there's really not that much to learb in Sinatra
therod has joined #ruby
MatthewsFace has joined #ruby
<estebanrules> I've been told Sinatra is good to learn routing
mspah_ has joined #ruby
digital-ghost has joined #ruby
<estebanrules> havenwood - why specifically? I'm interested in Sinatra.
<pragmatism> Maybe, but you'll learn the same thing in Rails.
<pragmatism> Sinatra is good when you don't need rails
<havenwood> estebanrules: Because it is simpler. Simple is good.
<Hanmac> pragmatism: look at my evilC macros: https://github.com/Hanmac/rwx/blob/master/ext/main.hpp#L343-L400
ahmedelgabri has joined #ruby
tannerburson has joined #ruby
<shevy> is sinatra good when I need a beer
RoryHughes has quit []
<pragmatism> Otherwise, Rails does everything sinatra does
<havenwood> shevy: Yes.
<pragmatism> shevy: Anything Ruby is good when you need a beer
bradhe has quit [Ping timeout: 252 seconds]
<pragmatism> aka all the time
<havenwood> pragmatism: Allow an app to consist of a single file?
<shevy> hehe
Advocation has quit [Quit: Advocation]
<wiku6> shevy: depends if you're getting more than 10,000 beers at the same time
<pragmatism> :P
<pragmatism> Finnnneeeee
<estebanrules> havenwood - Simple is indeed good.
<pragmatism> I'm only giving you that point because I like you
<pragmatism> and because it has merit
<pragmatism> lol
<havenwood> :P
enebo has quit [Quit: enebo]
Jdubs has joined #ruby
freezey_ has joined #ruby
freezey has quit [Ping timeout: 272 seconds]
p8952 has quit [Quit: Leaving]
Virtualize has joined #ruby
jailbot has quit [Remote host closed the connection]
MatthewsFace has quit [Ping timeout: 264 seconds]
mansi has quit [Remote host closed the connection]
jailbot has joined #ruby
mansi has joined #ruby
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phantasm66 has quit [Quit: *poof*]
mspah_ has quit [Quit: This computer has gone to sleep]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
MattStratton has joined #ruby
colonolGron has joined #ruby
colonolGron has left #ruby [#ruby]
wtfitsme has joined #ruby
RaCx has quit [Ping timeout: 246 seconds]
<shevy> simple is good because most of us are pretty dumb
_Andres has joined #ruby
nwertman has joined #ruby
freezey has joined #ruby
Riking has quit [Ping timeout: 253 seconds]
venkat has quit []
therod has quit [Quit: Lost terminal]
mansi has quit [Ping timeout: 246 seconds]
tvw has quit []
<pragmatism> Hanmac: not bad :P
jailbot has quit [Ping timeout: 272 seconds]
RoryHughes has joined #ruby
<Hanmac> in another binding there is also error handing/converting included ... (like catch c++ exception and wrap them into ruby exception and raise it) ... but for that binding its okay
<atmosx> JavaScript syntax seems so stupid to me know
<atmosx> err s/know/now
ahmedelgabri has quit [Ping timeout: 246 seconds]
<atmosx> weird, but it's considerably easy all in all
angusigu1ss has joined #ruby
RoryHughes has quit [Client Quit]
mehlah has joined #ruby
mark_locklear has quit [Ping timeout: 252 seconds]
<atmosx> 5.19 km in 48.38 minutes, runkeeper says
<RubyPanther> Rails is covered in ancient cruft. You can make a powerful medicine from it, but if you don't need strong medicine with strong side effects... I recommend coding leisurely with Camping! http://viewsourcecode.org/why/redhanded/bits/campingAMicroframework.html
freezey_ has quit [Ping timeout: 264 seconds]
kristiandelay has joined #ruby
<atmosx> RubyPanther: why not Scortch?
mansi has joined #ruby
<atmosx> or sinatra?
<atmosx> or you-name-it heh
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<RubyPanther> atmosx: "Some people do not understand Camping and lash out with spears reaching 4 to 6 feet in length. Others fear and quake under carcass attire."
mark_locklear has joined #ruby
<atmosx> I see
coder_neo has quit [Quit: This computer has gone to sleep]
<atmosx> I understand now
wiku6 has quit [Quit: WeeChat 0.3.8]
wiku5_ has joined #ruby
blueOxigen has joined #ruby
<estebanrules> camping looks cool.
nwertman has quit [Ping timeout: 260 seconds]
v0n has quit [Ping timeout: 260 seconds]
wiku5_ has quit [Client Quit]
wiku5_ has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
Riking has joined #ruby
poulson has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
angusigu1ss has quit [Ping timeout: 272 seconds]
burlyscudd has quit [Quit: Leaving.]
deens has quit [Remote host closed the connection]
kristiandelay has quit [Ping timeout: 248 seconds]
<RubyPanther> I have no idea if camping still works on a modern Ruby. But I refer to its documentation often. As likely to be useful as the documents for whatever I'm really using, and more likely to entertain me.
bluOxigen has quit [Ping timeout: 252 seconds]
<estebanrules> yeah I noticed it could be a bit outdated ;)
Hanmac has quit [Ping timeout: 260 seconds]
blueOxigen has quit [Read error: Connection reset by peer]
<estebanrules> and yes of course entertaining
Hanmac has joined #ruby
bluOxigen has joined #ruby
skulker has joined #ruby
burlyscudd has joined #ruby
w4pm has quit [Ping timeout: 272 seconds]
Hanmac1 has quit [Ping timeout: 252 seconds]
nwertman has joined #ruby
<RubyPanther> THere we go, while I did link a very old page, at github I see it is actively maintained
jrunning__ has joined #ruby
maletor has quit [Ping timeout: 265 seconds]
Xuerian_ is now known as Xuerian
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
bluOxigen has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
notjohn has quit [Quit: notjohn]
heftig has joined #ruby
punkzioc has joined #ruby
nhhagen has joined #ruby
maletor has joined #ruby
pixelgremlins has joined #ruby
anildigital is now known as zz_anildigital
allaire has joined #ruby
nathancahill has quit [Ping timeout: 260 seconds]
sassamo has quit [Remote host closed the connection]
<shevy> is camping still less than 4000 lines of code
jlast has quit [Remote host closed the connection]
sassamo has joined #ruby
relix has joined #ruby
sassamo has quit [Read error: Connection reset by peer]
<v10energy> anybody heard of adobe muse? basically there's already a website with bunch of html and css files generated by adobe muse. I need to add a simple contact form which will send out an email. using rails is uncessesary for this simple task. I already have a server with nginx and unicorn installed, any suggestions on how to implement the contact page with ruby?
sassamo has joined #ruby
monkegjinni has joined #ruby
<centrx> "Design websites without code." great... :)
nhhagen has quit [Ping timeout: 252 seconds]
<ericwood> ugh okay so I have strings with percent encoding for unicode shit
<ericwood> for example: %uFEFF
<ericwood> I want to decode them
<ericwood> but I'm terrible at this and do not know how to do this the right way
<centrx> v10energy, simple_form is popular, https://github.com/plataformatec/simple_form
sparrovv has joined #ruby
Virtualize has quit [Read error: Connection reset by peer]
Virtualize|away has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
<Hanmac> shevy: rwx has only "14,691 lines of code" yet ;P
ffranz has joined #ruby
bluOxigen has joined #ruby
nathancahill has joined #ruby
<centrx> erichmenge, URI unescape might make sense, http://ruby-doc.org/stdlib-2.1.0/libdoc/uri/rdoc/URI/Escape.html
<v10energy> centrx: but i am still forced to use rails.. meaning i have to convert all the html and css to rails.. which will be a pain
<centrx> ericwood,
brennanMKE has quit [Ping timeout: 272 seconds]
<centrx> v10energy, Oh if you are using Rails just use Rails :)
ktosiek_ has quit [Ping timeout: 272 seconds]
<ericwood> >> URI.unescape("%uFEFF")
<eval-in> ericwood => uninitialized constant URI (NameError) ... (https://eval.in/93054)
<ericwood> >> require 'uri'; URI.unescape("%uFEFF")
<eval-in> ericwood => "%uFEFF" (https://eval.in/93055)
<ericwood> :(
maletor has quit [Quit: Computer has gone to sleep.]
Briareos1 has quit [Ping timeout: 264 seconds]
shaunbaker has joined #ruby
<centrx> v10energy, Oh you mean simple_form requires rails...
ffranz has quit [Remote host closed the connection]
<v10energy> centrx: yap
chrisseaton has joined #ruby
<apeiros> ericwood: what format uses that encoding?
camilasan has quit []
workmad3 is now known as xpslnbe4
ffranz has joined #ruby
<ericwood> apeiros: I don't have a ton of info, since this is kinda convoluted
iMe has quit [Read error: Operation timed out]
<ericwood> but the problem is stuff being stored in a cookie then retrieved by rails
vpretzel has quit [Ping timeout: 246 seconds]
<ericwood> and the strings I'm getting back have that stupid encoding shit
<v10energy> centrx: i want to avoid converting bunch of html and css files into rails... it's hard because there's no layout page, meaning i have to create a layout page then trim the header and footer from every single page.
<ericwood> well, so far I've only seen that one escape code
<centrx> v10energy, It looks like simple_form only requires actionpack and activemodel from Rails...may not really need to use Rails with it
xpslnbe4 is now known as workmad3
<gf3> >> require 'cgi'; CGI::unescape("%uFEFF")
<eval-in> gf3 => "%uFEFF" (https://eval.in/93059)
<gf3> balls
<apeiros> ericwood: is it always padded to 4 hex chars?
<ericwood> balls indeed
<apeiros> gf3: %u is not URL encoding
<apeiros> %HH would be
<ericwood> so, an example string: "foo\nbar"
shime has joined #ruby
<ericwood> the result is "%uFEFFfoo\n$%uFEFFbar%uFEFF"
<v10energy> centrx: how would i load simple_form gem into an html page? i am super lost here :)
<apeiros> ericwood: why does it put a BOM *in the middle of a string*?!?
rootshift has joined #ruby
jailbot has joined #ruby
<ericwood> GOOD QUESTION
<ericwood> :(
<apeiros> sounds quite broken. also, please answer my question re always 4 hexes…
<centrx> v10energy, Since you are on a different platform already, maybe not use Ruby at all?
dangerousdave has quit []
shaunbaker has quit [Remote host closed the connection]
<apeiros> if it's always 4 hexes, a naive way would be: gsub(/%u(\p{Hex}{4})/) { $0.to_i(16).chr(Encoding::UTF_8) }
<v10energy> centrx: there's no server side code. it's plain html and js
<centrx> v10energy, What is the backend like? Front-end for a form is basic HTML and JavaScript
shaunbaker has joined #ruby
<ericwood> apeiros: interesting solution, I'll take a look at it
shadoi has quit [Quit: Leaving.]
maletor has joined #ruby
<ericwood> brb
iMe has joined #ruby
<centrx> v10energy, If this is really all that needs to be done on this site, use PHP :)
Notte has joined #ruby
pixelgremlins has quit [Read error: Connection reset by peer]
<v10energy> centrx: roger
rootshift has quit [Client Quit]
* apeiros hits centrx with a large brick
nathancahill has quit [Quit: nathancahill]
<centrx> Recommending PHP hurts me more than it hurts you
<Hanmac> apeiros: i tryed "%uFEFF".gsub(/%u(\h+)/){|i| [$1.to_i(16)].pack("U")} ;P (but yours seems better with the {4}
<v10energy> centrx: would be nice if i could use ruby though.
<apeiros> oh, \h is new?
samuel02 has quit []
<apeiros> quite sure that didn't exist a few years back
<Hanmac> as far as i know it exited in 1.9
<centrx> v10energy, Check this out: http://www.sinatrarb.com/faq.html#email
RaCx has joined #ruby
<apeiros> odd… I thought I had checked char classes in 1.9. maybe it just wasn't documented.
<apeiros> good to know
Jdubs has quit []
tjaco has joined #ruby
<Hanmac> >> "XFY"[/\h/]
<eval-in> Hanmac => "F" (https://eval.in/93074)
<havenwood> v10energy: Or Jekyll with simple_form.
<apeiros> \h is certainly easier on the eye than \p{Hex}
<Hanmac> 18>> "XFY"[/\h/]
<eval-in> Hanmac => nil (https://eval.in/93075)
<havenwood> v10energy: http://jekyllrb.com/
spalenza has joined #ruby
<Hanmac> 19>> "XFY"[/\h/]
<eval-in> Hanmac => "F" (https://eval.in/93076)
pixelgremlins has joined #ruby
nathancahill has joined #ruby
<Hanmac> apeiros: its a 1.9 feature
Andrevan has joined #ruby
drumusician has quit [Ping timeout: 264 seconds]
<Hanmac> 18>> "XFY".match(/\h/)
<eval-in> Hanmac => nil (https://eval.in/93077)
<v10energy> centrx: so then i will put the existing website under /public/ or something, and then use sinatra just for 1 contact form page... i wonder if that's possible
shime_ has joined #ruby
shime has quit [Read error: Connection reset by peer]
nhhagen has joined #ruby
Hobogrammer has quit [Ping timeout: 272 seconds]
<centrx> v10energy, Jekyll is another option havenwood recommended that I have heard people use
jkwaldri has joined #ruby
v0n has joined #ruby
spalenza has quit [Client Quit]
Hobogrammer has joined #ruby
ahmedelgabri has joined #ruby
blackmesa has joined #ruby
w4pm has joined #ruby
jkwaldri has quit [Quit: leaving]
ktosiek has joined #ruby
vlad_starkov has joined #ruby
<havenwood> v10energy: Sure, you can set it up in Apache/Nginx conf however you want.
mlpinit_ has quit [Remote host closed the connection]
RoryHughes has joined #ruby
wildroman2 has quit [Read error: Connection reset by peer]
<v10energy> centrx: but it looks like jekyll is entirely for different purpose
<centrx> ok
wildroman2 has joined #ruby
scarolan has quit [Ping timeout: 245 seconds]
deens has joined #ruby
shime_ has quit [Read error: Operation timed out]
<havenwood> v10energy: it is for generating a static site, you can then use simple form in your generated site
sickweezle has quit [Ping timeout: 252 seconds]
ahmedelgabri has quit [Client Quit]
<havenwood> v10energy: Maybe I'm confused what you're trying to do.
<v10energy> havenwood: I already have like 20 pages generated from adobe muse and i just need to integrate 1 contact form page, and i want to use ruby
havenwood has quit [Read error: Connection reset by peer]
mocfive has quit [Ping timeout: 264 seconds]
<v10energy> dammit lol
havenwood has joined #ruby
<workmad3> v10energy: did you consider using a contact form service instead? a very quick google search turns up http://kontactr.com/help/faq
<workmad3> v10energy: which would allow you to have an entirely static site on your end, contact form backend is handled by that service
venkat has joined #ruby
<havenwood> nice idea
scarolan has joined #ruby
<v10energy> workmad3: I'd still need to write some data to google docs after the e-mail is sent out using contact form
iamsean has quit [Quit: iamsean]
dawe has joined #ruby
<v10energy> havenwood: here's the message i sent you before you got disconnected. I already have like 20 pages generated from adobe muse and i just need to integrate 1 contact form page, and i want to use ruby
bradhe has joined #ruby
jlast has joined #ruby
jlast has quit [Remote host closed the connection]
mlpinit has joined #ruby
jlast has joined #ruby
<workmad3> v10energy: that would have been useful up-front info ;)
coca_rails has joined #ruby
<workmad3> v10energy: if you're gonna add in (to us) extra requirements when a suggestion comes up, it gets kinda annoying
<v10energy> workmad3: sorry :)
<centrx> He said it before
vlad_starkov has quit [Ping timeout: 252 seconds]
deens has quit [Ping timeout: 272 seconds]
deens has joined #ruby
<v10energy> i might just use rails, dump the whole website into public/ folder, and then generate a controller with 1 view. lol
jailbot has quit [Remote host closed the connection]
<workmad3> centrx: I didn't see anything about writing out to google docs
<centrx> oh, I thought those were two separate projects
<v10energy> it will be easy to deploy since i already have nginx and unicorn setup
rudisimo has quit []
<workmad3> v10energy: I'd probably just use sinatra or possibly even a raw rack app at that point tbh
Bira has quit [Remote host closed the connection]
scarolan has quit [Ping timeout: 260 seconds]
mojjojo has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
carraroj has joined #ruby
carraroj has quit [Write error: Broken pipe]
<v10energy> workmad3: yea or sinatra. just gotta figure out how to deploy it
deens has quit [Client Quit]
maasha has joined #ruby
coca_rails has quit [Ping timeout: 240 seconds]
<workmad3> v10energy: just use unicorn
St_Marx has quit [Ping timeout: 264 seconds]
<workmad3> v10energy: unicorn is a rack app server, sinatra is a rack framework... ;)
<maasha> Any insights in performance of IO.pipe vs named pipes?
Czupa has quit [Quit: Wychodzi]
<maasha> I tried to create a benchmark, but the bloody code hangs: https://gist.github.com/maasha/a59dc3ce6d48cf66e52a
<workmad3> v10energy: make sure that nginx is pointed at the equivalent of a public/ directory to serve static HTML and CSS, point unicorn at the config.ru file for your sinatra or rack appp
<workmad3> *app
scarolan has joined #ruby
<v10energy> workmad3: allright, thanks :)
<centrx> maasha, Can't you open the named pipe in read-write mode instead of making two descriptors for one named pipe file?
tannerburson has quit [Quit: tannerburson]
mehlah has quit [Quit: Leaving...]
LekeFly has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
<maasha> centrx: I think I already tried, but it still hangs.
tannerburson has joined #ruby
enebo has joined #ruby
TheLarkInn has quit [Quit: Leaving.]
alex88 has joined #ruby
<shevy> man
<shevy> I just looked here
nhhagen has quit []
<shevy> and I read "named pig"
St_Marx has joined #ruby
<workmad3> maasha: err, isn't .gets a blocking call?
<workmad3> maasha: as in, it'll block until input is ready
shadoi has joined #ruby
<maasha> workmad3: possibly
rootshift has joined #ruby
RaCx has joined #ruby
<workmad3> maasha: it's the named pipe that seems to hang
<maasha> workmad3: I figured that much :o/
sickweezle has joined #ruby
<maasha> and it is the read step
andrewhl has joined #ruby
MatthewsFace has joined #ruby
mspah_ has joined #ruby
mspah_ has quit [Max SendQ exceeded]
Virtualize|away has quit [Read error: Connection reset by peer]
Virtualize has joined #ruby
araujo has joined #ruby
araujo has joined #ruby
<maasha> ok, using write_nonblock and read_nonblock unhangs the situation.
burlyscudd has quit [Quit: Leaving.]
failshell has quit []
mspah_ has joined #ruby
<Hanmac> maasha: and? what is faster?
venkat has quit [Remote host closed the connection]
clamstar has quit [Quit: Computer has gone to sleep.]
<maasha> IO.pipe 2.290000 1.940000 4.230000 ( 4.422431) named pipe 2.720000 3.940000 6.660000 ( 7.083624)
venkat has joined #ruby
<Fractional> What was that compact if statement in ruby now again called? :P
<maasha> IO.pipe is slightly faster (on my Mac if that has anything to say)
<workmad3> maasha: File.open("my_pipe", File::WRONLY | File::NONBLOCK) also does
<centrx> Fractional, Does it really have a special name?
<Hanmac> Fractional: you mean "con ? then : else" ?
Spami has quit [Quit: This computer has gone to sleep]
<workmad3> Fractional: the ternary operator?
<maasha> workmad3: interesting
kirun has joined #ruby
senj has joined #ruby
<Fractional> workmad3: Yes, the ternary operator! :)
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
<bricker> workmad3: where are those constants documented?
<workmad3> bricker: pass?
<workmad3> bricker: I found a random SO article, then checked them with File.constants
<workmad3> bricker: a.k.a. the normal way to figure things out with ruby :)
<bricker> maybe they're not meant to be documented
<bricker> heh
<Fractional> Wow, http://www.rubyinside.com/21-ruby-tricks-902.html, awesome web page!
tvw has joined #ruby
julweber has joined #ruby
venkat has quit [Ping timeout: 272 seconds]
burlyscudd has joined #ruby
<bricker> Hanmac: NO I WON THAT RACE
<Hanmac> xD
<workmad3> hehe
nfk has quit [Quit: yawn]
devdazed has joined #ruby
nathancahill has quit [Quit: nathancahill]
ckinni has joined #ruby
yaymukund has joined #ruby
<maasha> workmad3: so, can you make that benchmark work with File.open("my_pipe", File::WRONLY | File::NONBLOCK), because I fail ...
Virtualize has quit [Read error: Connection reset by peer]
sambao21 has quit [Quit: Computer has gone to sleep.]
Virtualize|away has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
mspah_ has quit [Quit: This computer has gone to sleep]
tjaco has quit [Remote host closed the connection]
achru has joined #ruby
fijimunkii has quit [Ping timeout: 260 seconds]
<workmad3> maasha: and File::RDONLY | File::NONBLOCK on the read pipe
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<maasha> workmad3: yes, but x.report("named pipe") { n.times { nwt.puts "foo"; nrd.gets } } hangs
<workmad3> maasha: ah, I'd added a nwt.flush in there
vpretzel has joined #ruby
w4pm has quit [Ping timeout: 252 seconds]
nathancahill has joined #ruby
<maasha> workmad3: ok, it works here now. Speed seems to be equivalent.
aspires has quit []
<workmad3> maasha: yup, that's what I noticed
<workmad3> maasha: which isn't that surprising seeing as they're probably doing the same thing :)
sparrovv has quit [Remote host closed the connection]
zoscoy has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
Bira has joined #ruby
<maasha> workmad3: on my mac IO.pipe tends to win. On a Linux box it is visa versa
Virtualize|away has quit [Read error: Connection reset by peer]
Virtualize has joined #ruby
larissa has joined #ruby
achru has quit [Remote host closed the connection]
rootshift has joined #ruby
achru has joined #ruby
venkat has joined #ruby
mansi has quit [Remote host closed the connection]
vt102 has quit [Remote host closed the connection]
<Hanmac> IO.pipe is still nicer for coding ;P
mansi has joined #ruby
vt102 has joined #ruby
Bira has quit [Ping timeout: 265 seconds]
achru has quit [Read error: Operation timed out]
jovon has quit [Quit: Leaving]
jerius has quit [Read error: Operation timed out]
Butcho has joined #ruby
sambao21 has joined #ruby
shime has joined #ruby
mansi_ has joined #ruby
scarolan has quit [Ping timeout: 260 seconds]
mansi has quit [Ping timeout: 260 seconds]
<maasha> Hanmac: alas, IO.pipe have a strict parent/child dependency when forking, which named pipes don't have: http://www.cs.fredonia.edu/~zubairi/s2k2/csit431/pipes.html
<Fractional> Implementing quicksort in Ruby for the first time is challenging.
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby
<maasha> Hanmac: thus IO.pipe and the parallel gem goes fubar.
alex88 has quit [Quit: Leaving...]
estebanrules has quit [Quit: Textual IRC Client: www.textualapp.com]
Kricir_ has joined #ruby
kalabiyau has joined #ruby
araujo has quit [Remote host closed the connection]
<Hanmac> maasha: "goes fubar." ... is that good or bad?¿
<maasha> Hanmac: bad ...
* Hanmac goes into 10th doctor mode 'i am sorry, so sorry' ... ;P
MatthewsFace has joined #ruby
Asher has quit [Quit: Leaving.]
prc has joined #ruby
Asher has joined #ruby
Kricir has quit [Ping timeout: 272 seconds]
mspah_ has joined #ruby
Spami has joined #ruby
Kricir has joined #ruby
jerius has joined #ruby
coca_rails has joined #ruby
kalabiyau has left #ruby [#ruby]
Kricir has quit [Remote host closed the connection]
Speed has left #ruby ["WeeChat 0.4.2"]
Squarepy has joined #ruby
Kricir has joined #ruby
Butcho has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> I have come to realize that code is evil
Butcho has joined #ruby
monkegjinni has quit [Remote host closed the connection]
<pragmatism> shevy: My apologies
<Hanmac> shevy: you mean other than my code ? ;P
monkegjinni has joined #ruby
Kricir_ has quit [Ping timeout: 252 seconds]
diegoviola has quit [Quit: WeeChat 0.4.2]
geekbri has quit []
Butcho has quit [Client Quit]
scarolan has joined #ruby
<centrx> shevy, It is because there is only 0 and 1, no third
alexlindenlevy has joined #ruby
nobitanobi has joined #ruby
<alexlindenlevy> Hey guys I am trying to use %x(command) and I want to use some variables in the command string, is that possible?
burlyscudd has quit [Quit: Leaving.]
carif has joined #ruby
bradhe has joined #ruby
<nobitanobi> Given myarr = ['test', 'test3','test4'] - How could I get this 'test', 'test3', 'test4' - Basically I want to pass the elements of that Array as parameters of a method.
freezey has quit [Remote host closed the connection]
yalue has quit [Quit: Leaving]
freezey has joined #ruby
<centrx> alexlindenlevy, %x(run #{my_var})
<havenwood> nobitanobi: *myarr
<godd2> You never go full fubar
<alexlindenlevy> centrx: ok, that is what I am doing
<nobitanobi> havenwood, thanks :)
vlad_starkov has joined #ruby
monkegjinni has quit [Ping timeout: 252 seconds]
soulcake has quit [Ping timeout: 260 seconds]
devinus has joined #ruby
<devinus> anybody know of a test framework to test command line output from input?
habanany has joined #ruby
v10energy has quit [Quit: Page closed]
<devinus> i'd like to use ruby to write the tests or have the tool itself be written in ruby
vlad_starkov has quit [Read error: Connection reset by peer]
mojjojo has quit [Quit: mojjojo]
nfk has joined #ruby
maasha has quit [Quit: Page closed]
bradhe has quit [Ping timeout: 248 seconds]
robbyoconnor has quit [Read error: Operation timed out]
<godd2> devinus you should be abel to use any of the test frameworks to do that. Just capture ARGV to check programatically
<godd2> You also might want to check out the Thor gem if you're doing command liney stuff
mojjojo has joined #ruby
Lewix has quit [Remote host closed the connection]
monkegjinni has joined #ruby
nanoyak has joined #ruby
robbyoconnor has joined #ruby
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
Elhu has joined #ruby
tonni has quit [Quit: Leaving...]
danijoo has quit [Ping timeout: 272 seconds]
ciwolsey has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
mspah_ has quit [Quit: This computer has gone to sleep]
Lewix has joined #ruby
MattStratton has quit [Read error: Connection reset by peer]
MattStratton has joined #ruby
Txandy is now known as Txandy|away
JZTech101 is now known as jacob3
EngierkO has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jacob3 is now known as JZTech101
baroquebobcat has quit [Quit: baroquebobcat]
aspires has joined #ruby
<pragmatism> Jeez JZTech101 make up your damn mind
mary5030 has joined #ruby
freerobby has quit [Quit: Leaving.]
nomenkun has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
wildroman2 has quit [Remote host closed the connection]
mary5030 has joined #ruby
griffindy has quit [Quit: Computer has gone to sleep.]
Txandy|away is now known as Txandy
nanoyak has quit [Quit: Computer has gone to sleep.]
baroquebobcat has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
wildroman2 has joined #ruby
Matriks has quit [Remote host closed the connection]
<JZTech101> pragmatism: no.
kpshek has quit []
baroquebobcat has quit [Client Quit]
rezzack has quit [Quit: Leaving.]
lkba has quit [Ping timeout: 272 seconds]
<Pixels> how would i test to see if a regex completely matched a string, for example string.completematch(/(test|blah)/) would match string = "testblahtest" but not "this is a test"
coca_rails has quit [Remote host closed the connection]
bricker has quit [Ping timeout: 246 seconds]
Andrevan has quit [Quit: WeeChat 0.4.2-rc1]
<bnagy> use anchors
bricker has joined #ruby
jprovazn has quit [Quit: Odcházím]
<Hanmac> Pixels: /\A(test|blah)+\Z/
sparrovv has joined #ruby
VTLob has quit [Quit: VTLob]
<Pixels> thanks
danijoo has joined #ruby
dkotlica has joined #ruby
dkotlica has left #ruby ["Leaving"]
<Hanmac> Pixels: or if you have an array:
<Hanmac> >> keys=["test","blah"]; "testblahtest".match(/\A#{Regexp.union(keys)}+\Z/)
<eval-in> Hanmac => #<MatchData "testblahtest"> (https://eval.in/93086)
Virtualize has quit [Quit: Leaving...]
aaronmcadam has quit [Quit: Leaving...]
adi3009 has joined #ruby
<adi3009> Hi there
camilasan has joined #ruby
<adi3009> what is the best resource to learn ruby in BDD way
<adi3009> i know other languages like Scala, Java
kpshek has joined #ruby
<bnagy> buzzwordfriendlyruby.com
<Hanmac> adi3009: what means the BDD way?
<godd2> adi3009 check out The RSPec Book
mocfive has joined #ruby
rezzack has joined #ruby
<adi3009> i mean I want to use Cucumber straight away
<godd2> despite the name, the rspec book will teach you how to use cucumber as well
mansi_ has quit [Read error: Connection reset by peer]
slick- is now known as slick-[horndog]
mansi has joined #ruby
alexherbo2 has joined #ruby
<adi3009> which book is better The RSpec book or http://pragprog.com/book/hwcuc/the-cucumber-book
<godd2> but if you're just getting into ruby, be sure to check out Programming Ruby: http://ruby-doc.com/docs/ProgrammingRuby/html/intro.html
phipes has joined #ruby
wchun has quit [Quit: Leaving]
<godd2> I haven't read the cucumber book, so I can't say, but I like the rspec book.
Kabaka has quit [Ping timeout: 272 seconds]
Rylee has quit [Ping timeout: 272 seconds]
mocfive has quit [Ping timeout: 265 seconds]
dblessing has joined #ruby
<adi3009> i find introductions quite boring, because i m already familiar with most concepts from other languages
ryantm has joined #ruby
Virtualize has joined #ruby
fede_ has quit [Ping timeout: 252 seconds]
<godd2> Well it was only a suggestion. Feel free to skip around the text or not read it at all :)
IceyEC has quit [Quit: IceyEC]
<godd2> I do suggest even reading the intros because you'll pick up ruby-specific things
<godd2> especially in the pragprog books
<adi3009> but the above introduction looks pretty brief so i may give it a go
<adi3009> thanks godd2
stock584 has quit [Quit: Leaving]
<atmosx> adi3009: if you are familiar with other programming languages, pick a book that is not for beginners. The pickaxe is a good choice imho for advanced users.
mark_locklear has quit [Ping timeout: 264 seconds]
<atmosx> s/users/programmers
Elhu has quit [Quit: Computer has gone to sleep.]
wildroman2 has quit [Remote host closed the connection]
<godd2> when atmosx refers to "The Pickaxe Book" he's talking about the link I sent you "Programming Ruby"
wildroman2 has joined #ruby
<bnagy> tbh if you're familiar with other languages you mainly just need to understand blocks and mixins, then you can just use ruby-doc.org for the rest
<bnagy> assuming 'other languages' includes proper OO somewhere
lkba has joined #ruby
mocfive_ has joined #ruby
<adi3009> Scala does :)
Al___ has joined #ruby
wildroman3 has joined #ruby
mansi has quit [Read error: Connection reset by peer]
<adi3009> I am learning Ruby for Cucumber and BDD stuff
<atmosx> why do you want to learn ruby if you know scala?
wildroman2 has quit [Read error: Connection reset by peer]
<godd2> Scala and Ruby are similar in several ways, so it should be an easier transition than from straight Java
dblessing has quit [Client Quit]
<atmosx> you can't do BBD with Scala?
clamstar has joined #ruby
<adi3009> not as in Cucumber
mansi has joined #ruby
mansi has quit [Remote host closed the connection]
w4pm has joined #ruby
Elhu has joined #ruby
<bnagy> cucumber is barely ruby, until you get to the point of actually writing passing code, at which point it's not cucumber any more, so you're not really making much sense to me
mansi has joined #ruby
<bnagy> but hey, whatever
_tpavel has quit [Ping timeout: 252 seconds]
hetre85 has joined #ruby
alexherbo2 has quit [Read error: Connection reset by peer]
alexherb1 has joined #ruby
clamstar has quit [Client Quit]
LastWhisper has quit [Ping timeout: 272 seconds]
drumusician has joined #ruby
pusewicz has joined #ruby
<adi3009> I know you can use any language with cucumber, also scala
<adi3009> but we already have steps in ruby
jailbot has joined #ruby
venkat_ has joined #ruby
<adi3009> its kind of business requirement that we can not use Scala for step definitions
Virtualize has quit [Quit: Leaving...]
webgen has joined #ruby
Mapley has quit [Ping timeout: 246 seconds]
<havenwood> adi3009: Who actually writes and uses your Cukes? You have non-programmer stakeholders who are able to deal with that vegitable?
<havenwood> just curious
mansi has quit [Ping timeout: 260 seconds]
CoverSlide has quit [Ping timeout: 252 seconds]
venkat has quit [Read error: Connection reset by peer]
nism has quit [Quit: Leaving]
<havenwood> I've never personally seen a case where I though using cucumber was sane. But I've never been on a big team.
Rylee has joined #ruby
terrellt has quit [Ping timeout: 265 seconds]
<godd2> Yea it's kind of odd that your development team forbade Scala step definitions.
wtfitsme has quit [Quit: wtfitsme]
freerobby has joined #ruby
<adi3009> it is not easy to find Scala developers, and most developers in test know ruby than Scala
burlyscudd has joined #ruby
<havenwood> ah
terrellt has joined #ruby
<adi3009> and we also want it to be consistent across multliple projects
burlyscudd has quit [Client Quit]
<havenwood> a testing department
<agent_white> What's the preferred method of reading a IO stream backwards from a certain point?
<adi3009> yes something like that
<bnagy> you can't?
burlyscudd has joined #ruby
Advocation has joined #ruby
<bnagy> agent_white: read it into something, then work with it
Kabaka has joined #ruby
<agent_white> bnagy: Basically, I want to read the first x_amount of bytes from a stream. If that makes it any different?
<bnagy> that is read(n) no?
<agent_white> bnagy: I was overcomplicating it. thanks :P
andrewhl has quit [Quit: andrewhl]
<bnagy> like, you can seek to a pos but you can only read forwards
allaire has quit []
olivier_bK has joined #ruby
nanoyak has joined #ruby
jkamenik has quit [Quit: Leaving.]
bluOxigen has quit [Ping timeout: 272 seconds]
<agent_white> bnagy: I see, a stream only flows one way heh?
bradhe has joined #ruby
Vitor has quit [Remote host closed the connection]
Elhu has quit [Quit: Computer has gone to sleep.]
tannerburson has quit [Quit: tannerburson]
kpshek has quit []
angusiguess has quit [Ping timeout: 245 seconds]
mansi has joined #ruby
aaronmcadam has joined #ruby
Mapley has joined #ruby
Mapley has quit [Changing host]
Mapley has joined #ruby
bradhe has quit [Ping timeout: 248 seconds]
wildroman3 has quit [Remote host closed the connection]
aaronmcadam has quit [Client Quit]
vlad_starkov has joined #ruby
phat4life has joined #ruby
nwertman has quit [Ping timeout: 248 seconds]
<godd2> dunno how resouce intensive it is, but that will chew byte by byte backwards through a file
duggiefresh has quit [Remote host closed the connection]
<Hanmac> godd2: use File.open with block form
vlad_starkov has quit [Read error: Connection reset by peer]
tannerburson has joined #ruby
larissa has quit [Quit: Leaving]
i_s has joined #ruby
depesz has joined #ruby
<depesz> hi. I need to run system command, via IO::popen, but I'm on old ruby (1.8.7), and it takes only string as command, not list of command/arguments. so i'd like to "escape" all potentially bad characters in arguments.
<depesz> is there any function, like "quotemeta" in perl, that would escape all problematic characters?
<bnagy> does 1.8 have Shellwords?
tannerburson has quit [Client Quit]
<MrZYX> yup http://rubydoc.info/stdlib/shellwords/1.8.7/frames but you should upgrade nevertheless
deception has quit [Quit: Goodbye]
<bnagy> also, 1.8 is insane, and running user input is insane
nwertman has joined #ruby
<depesz> thanks.
<MrZYX> seriously, upgrade
zeeraw has joined #ruby
Kricir has quit [Read error: Connection reset by peer]
BraddBitt has quit [Quit: Leaving]
tonni has joined #ruby
<apeiros> depesz: don't use system
Kricir has joined #ruby
<apeiros> there are other ways to run system commands which support argument lists
<depesz> apeiros: i'm using IO::popen. how else can I run command and get its output? (aside from `) ?
danshultz has quit [Remote host closed the connection]
<depesz> apeiros: cool. how?
* apeiros tries to remember for 1.8
<depesz> just please don't tell me that I need to install gems
Al___ has quit [Read error: Connection reset by peer]
<bnagy> %x was still there?
<apeiros> no, part of core
<depesz> i was looking for safe alternatives, but didn't find them
<apeiros> yes, %x was there, but wants a string too
Al___ has joined #ruby
<apeiros> not sure, didn't popen accept an array back then too?
<bnagy> oh I misunderstand then, I was thinking %x[ls -laf]
dawe has quit [Quit: leaving]
<depesz> apeiros: no.
<Fractional> Why is my return value not right? (Can't seem to spot it) https://gist.github.com/Freddan962/454fe4b641f6f583cdad
<Hanmac> godd2: i am currently looking for a way with IO#seek to read a file backwards;P
scarolan has quit [Ping timeout: 272 seconds]
<bnagy> Hanmac: one byte at a time? ;)
nfk has quit [Quit: yawn]
<apeiros> damn, I know I've used safe alternatives in 1.8 already
gstamp has quit [Quit: Textual IRC Client: www.textualapp.com]
<Hanmac> bnagy: currently i try to read 4-char chunks
<depesz> apeiros: if you'd find it, I'd appreciate ping.
<depesz> in the mean time, I'll use what I can :/
<jeregrine> anyone know of/where I can go to look for Rabl help?
<jeregrine> specifically around caching
jedimind has quit [Quit: going home bitches]
dik_dak has quit [Ping timeout: 248 seconds]
sassamo has quit [Remote host closed the connection]
sassamo has joined #ruby
sparrovv has quit [Remote host closed the connection]
<Fractional> Hanmac: Could you help me? :D
<apeiros> depesz: open3 can
<apeiros> depesz: it's part of stdlib
<depesz> apeiros: checking
<apeiros> open3 uses exec, it doesn't document how it can do it itself, but exec's doc do (open3 just passes the args on to exec)
sparrovv has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
<apeiros> I thought I had done it with plain core too, but don't remember how :-S
<jxport> What's the best means of persisting data structures/objects for later instantiation?
<bnagy> Fractional: stop asking for help with your homework
<apeiros> jxport: waaaay too vague
<jxport> apeiros: hehe
<bnagy> Fractional: if in doubt, add more comments and refactor
<Fractional> bnagy: It is not homework :P
<depesz> apeiros: would be perfect if I could do the 2>&1 in there too
<jxport> apeiros: I'm starting vague before committing to an implementation ;)
spider-mario has quit [Remote host closed the connection]
<bnagy> the answer always falls out eventually
burlyscudd1 has joined #ruby
sparrovv has quit [Read error: Connection reset by peer]
<bnagy> debugging this kind of thing yourself is the only way to actually learn to program
<apeiros> jxport: ok, then my answer is: by pencil and paper.
benzrf has joined #ruby
<apeiros> hth
sparrovv has joined #ruby
<benzrf> i dont think ive ever heard hth non-sarcastically
<benzrf> was that non-sarcastic?
<benzrf> if so, first
<havenwood> jxport: serialize it
<bnagy> find points where you are sure you know what the values should be and print debugging info
<jxport> havenwood: OK - my question is; how *best* to serialize my objects
<havenwood> jxport: MsgPack
<apeiros> benzrf: funny, I almost always use hth non-sarcastically. but this time, of course it was :)
<godd2> jxport delegate/proxy?
<Fractional> bnagy: Debugging with cards, notes and following the code. I really can't seem to stop it but I'll keep going! :D
<jxport> godd2 lol wat
<godd2> useful for lazy evaluation
wtfitsme has joined #ruby
<apeiros> jxport: define "best", yadda yadda
<havenwood> jxport: MsgPack, Marshal, JSON, YAML, your choice.
<bnagy> Fractional: how do you debug with 'cards' ? Use p whatever statements
<jxport> havenwood: *that's* what I'm looking for!
* apeiros off to watch some junk, n8 guys & girls
aspires has quit [Remote host closed the connection]
sassamo has quit [Ping timeout: 248 seconds]
<depesz> n*, and thanks apeiros
<havenwood> jxport: Ruby has PStore and YAML::Store as well if you want to persist to disk.
<Hanmac> yeah i found a "error" in stringIO ;P
<havenwood> jxport: How much data do you have. Using a database?
burlyscudd has quit [Ping timeout: 252 seconds]
aspires has joined #ruby
skulker has quit [Remote host closed the connection]
<havenwood> jxport: (PStore is for Marshal and YAML::STORE is for... guess)
<jxport> havenwood: I'm basically going to be looking to persist game state. Think: checkers
<apeiros> did they consider calling YAML::Store YStore? would have been a far more funny name…
<havenwood> hehe
<bnagy> msgpack has implementations for most langs and is network friendly and fast
<havenwood> that woulda been good
TigerWolf has joined #ruby
<bnagy> Marshal is slightly faster afaik
<havenwood> yay msgpack!
<bnagy> or was, last I benched
skulker has joined #ruby
<havenwood> and smaller
<apeiros> in 1.8 it was ~3x faster than yaml
<Hanmac> apeiros: IO#seek support symbol, StringIO#seek does not :/
<Fractional> bNagy: I place the cards in branches just like the algorithm would do. It is easy visually.
<bnagy> Marshal can serialize more stuff but it's bulky and a bad choice for interop
<bnagy> Fractional: oh. Don't do that. Debug your code, not how you think your code works
<Fractional> bnagy: I read the code then I do the steps :P
<bnagy> if you could read your code accurately it would be working
<MrZYX> Fractional: do the right thing with the cards, check if you code does the same thing (by outputting what it does, not by looking at it), not the other way around
MattStratton has quit [Ping timeout: 246 seconds]
<godd2> testing is easy. You just run yoru program, and if something doesnt work, you fix it, duhh
coca_rails has joined #ruby
sassamo has joined #ruby
<Hanmac> godd2 & bnagy & shevy: look at that what i have done! ;P
<Hanmac> require "stringio"; f=StringIO.new("1234\n5678\n2345\n6789"); f.seek(0,IO::SEEK_END); while f.pos > 0;f.seek(-4,IO::SEEK_CUR);p f.read(4);f.seek(f.pos > 4 ? -5 : -4,IO::SEEK_CUR);end
<Hanmac> >> require "stringio"; f=StringIO.new("1234\n5678\n2345\n6789"); f.seek(0,IO::SEEK_END); while f.pos > 0;f.seek(-4,IO::SEEK_CUR);p f.read(4);f.seek(f.pos > 4 ? -5 : -4,IO::SEEK_CUR);end
<eval-in> Hanmac => "6789" ... (https://eval.in/93087)
justsee has joined #ruby
justsee has joined #ruby
burlyscudd1 has quit [Quit: Leaving.]
justsee has quit [Client Quit]
<bnagy> but it's not in reverse order! :)
<benzrf> Hanmac: jesus christ what is wrong with you
justsee has joined #ruby
justsee has quit [Client Quit]
<Fractional> bnagy: Thanks for the tip! It seems like it doesn't take the last number in account (according to the p)
<godd2> Is there a Ruby Obfuscation contest we can enter with that?
<bnagy> after a few years here you stop asking that, benzrf, and just Accept the Hanmac
skulker has quit [Ping timeout: 252 seconds]
<Hanmac> benzrf: everyone can read a file forward, i read a file backwards in chunks ;P
<bnagy> Fractional: so an indexing off-by-one probably
Kricir has quit [Read error: Connection reset by peer]
<benzrf> bnagy: by then ill probly be lisping and sneering at you silly rubyists
<Fractional> bnagy: Yup... but where is the question :P
Kricir has joined #ruby
<bnagy> Fractional: ruby slice / range / indexing ops are not very forgiving because they rarely except
<MrZYX> Fractional: btw, both of your loops are actually .times ones
vpretzel has quit [Remote host closed the connection]
mojjojo has quit [Quit: mojjojo]
sassamo has quit [Remote host closed the connection]
brennanMKE has joined #ruby
<benzrf> bnagy: except?
<bnagy> raise exceptions
vpretzel has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
coca_rails has quit [Ping timeout: 240 seconds]
<Fractional> MrZYX: Huh?
sassamo has joined #ruby
<benzrf> ahuman:
<benzrf> *ah
<MrZYX> Fractional: you never use value, so it's array.size.times do |i|, you never use k, so it's (startpos-endpos-1).abs.times do
Txandy has quit [Quit: Leaving...]
gstamp has joined #ruby
<godd2> Hanmac change "1234\n5678\n2345\n6789" to "1234\n56878\n2345\n6789" :/
jlast has quit [Remote host closed the connection]
<Fractional> MrZYX: Thanks, now I finally have a good replacer for that one :D
Advocation has quit [Quit: Advocation]
<Hanmac> godd2: yeah ok for that does not work ;P
<godd2> looks like your code will ahve to be a bit more line-aware
<bnagy> seek knows not of lines, what is this madness??
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<godd2> I dunno, it's Hanmac's project :P
<Hanmac> it was a sample from agent_white
yaymukund has quit [Quit: leaving]
<Fractional> Aww, where is it that my index is out of range? xD
sassamo has quit [Ping timeout: 265 seconds]
BraddPitt has joined #ruby
<bnagy> you can p your indicies as well
<bnagy> or you can check your values to see if you're swapping elems with themselves
angusiguess has joined #ruby
unixpro1970 has joined #ruby
<Fractional> bnagy: Right on spot!
madb055 has joined #ruby
jobewan has quit [Quit: Leaving]
Bira has joined #ruby
<Fractional> For some reason 4-4 swaps itself :P
claymore has quit [Quit: Leaving]
Azure has quit [Quit: My MBP went to sleep.]
<shevy> Fractional are you still learning ruby
mojjojo has joined #ruby
mlpinit has quit [Remote host closed the connection]
burlyscudd has joined #ruby
mlpinit has joined #ruby
<bnagy> no, he's actually working for ruby-core, he's just polishing the built-in quicksort
<agent_white> Hanmac: Thank you :P Now figuring out to to remove null bytes from a stream and take in only the characters, or plaintext rather.
<Fractional> shevy: Of course, I will not be leaving any time soon :P
<agent_white> Hanmac: "a\u0000\u0000a".unpack("Z*") only gives me one a :(
alvaro_o has quit [Quit: Ex-Chat]
<Fractional> shevy: However having issues with Quicksort :<
wildroman2 has joined #ruby
<benzrf> what is unpack
<bnagy> >> "a\u0000\u0000a".tr "\x00",''
<eval-in> bnagy => "aa" (https://eval.in/93088)
<bnagy> unpack is what bad people use when they are too lazy to write parsers
mlpinit_ has joined #ruby
Bira has quit [Ping timeout: 248 seconds]
<agent_white> bnagy: You are a fucking magician!
<shevy> benzrf you can pack data
<shevy> binary
<bnagy> well I don't know about my fucking, but I've done some binary parsing
<benzrf> ew wut
<agent_white> bnagy: Do you suggest I dig deeper? That's basically what I'm trying to learn, how to write a parser.
<shevy> cool
<shevy> you folks have way too much time!
<bnagy> agent_white: use bindata
<shevy> I thought you are on your way to rails agent_white
<MrZYX> >> "a\u0000\u0000a".delete "\x0"
<eval-in> MrZYX => "aa" (https://eval.in/93089)
<agent_white> Binary parser rather. I just want to organize my music library. >:D
<shevy> :P
<bnagy> best data carving lib
RaCx_ has joined #ruby
<Hanmac> benzrf & bnagy & shevy: i had another freaky idea, what about a each_slice method that can control the size of each block? ;P
<Hanmac> >> module Enumerable; def each_slice2(val); return to_enum(__method__,val) unless block_given?; en = each; loop {yield val.next.times.map{en.next} };end;end; ["7", "6", "5", "4", "3", "2", "1"].each_slice2([1,2].cycle).to_a
<eval-in> Hanmac => [["7"], ["6", "5"], ["4"], ["3", "2"], ["1"]] (https://eval.in/93090)
RaCx has quit [Ping timeout: 272 seconds]
RaCx_ is now known as RaCx
<agent_white> shevy: I am... but I'm taking a breather from it and diving into something interesting :)
rubyracer has quit [Quit: Konversation terminated!]
jerius has quit [Read error: Operation timed out]
kebabski has quit [Read error: Connection reset by peer]
<bnagy> agent_white: if it's itunes btw you could also parse their xml
<agent_white> bnagy: Well I want to do it myself, not use a gem!
alvaro_o has joined #ruby
<bnagy> saves looking at track metadata
kewubenduben has quit [Read error: Connection reset by peer]
zz_anildigital is now known as anildigital
<bnagy> bindata just gives you a lib that you can use to write your parsers
<bnagy> that is yak shaving work and you should let someone else do it
<benzrf> Hanmac: isnt there something like that or something
<agent_white> bnagy: Well it's basically... I was using taglib "basic parser" and it couldn't find a song name without me using a different subclass, so now... binary parsing!
sailias has quit [Ping timeout: 272 seconds]
<bnagy> plus a subtle parser bug can ruin your whole day once you build a big tool on top of it
<bnagy> trust me, I've been there :(
mlpinit_ has quit [Client Quit]
<benzrf> Hanmac: why not just use monads
<benzrf> B)
alekst has quit [Quit: Computer has gone to sleep.]
<benzrf> [i will assume that they are relevant because really when are they not]
johnmilton has quit [Remote host closed the connection]
<Hanmac> benzrf: each_slice only allows chunk of equal size
mlpinit has quit [Ping timeout: 272 seconds]
<benzrf> wow so lame
<benzrf> no this is what i would like:
<benzrf> hmm nbm
<benzrf> *nvm
<benzrf> let me think this through .-.
alekst has joined #ruby
<benzrf> i want iteration where i can see in front of and behind me, and also i can specify that later ones should be skipped or repeated or somethin
<benzrf> i should make this :-D
Mattx has quit [Ping timeout: 252 seconds]
S3mI has joined #ruby
<agent_white> bnagy: Ahhh yeah... maybe I should. Waaay in over my head trying this, but it's fun I suppose!
<bnagy> benzrf: most of that you can get with next and retry?
mityaz has quit [Quit: See ya!]
kaldrenon has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
<txdv> we need wards
<benzrf> bnagy: hmm, retry?
Hiall has joined #ruby
<bnagy> for looking ahead/behind though mostly have to use blah.with_index
<agent_white> bnagy: How about this, any suggestions on a parsing project for a beginner? So I'm not diving into the abyss like I am currently?
<benzrf> txdv: what r wards
<benzrf> bnagy: with_index?
<txdv> objects that provide vision
<benzrf> agent_white: write a parsing framework thing B)
banister has joined #ruby
<benzrf> agent_white: it is not so hard
<agent_white> benzrf: Then stick with reading ID3 tags?! :D
nowthatsamatt has quit [Quit: nowthatsamatt]
<benzrf> agent_white: i made one based on Parsec in like a few hours
<godd2> bnagy thanks for pointing out the bindata gem. I'll use it for my RIFF parsing gem
<benzrf> although the performance was abysmal
<benzrf> as was error reporting
<bnagy> >> [1,2,3].each.with_index.to_a
<benzrf> ^_^
<eval-in> bnagy => [[1, 0], [2, 1], [3, 2]] (https://eval.in/93091)
<benzrf> bnagy: ah
<bnagy> you can tack it onto most enumerable stuff
<agent_white> benzrf: Well... I've been programming for ~6 months, so it may take longer ;)
Kricir has quit [Ping timeout: 252 seconds]
<txdv> >> puts 1
bradhe has joined #ruby
<eval-in> txdv => 1 ... (https://eval.in/93092)
sambao21 has quit [Quit: Computer has gone to sleep.]
<bnagy> benzrf: binary parsing is actually kinda hard
shadoi1 has joined #ruby
adi3009 has quit [Quit: Textual IRC Client: www.textualapp.com]
<bnagy> hence no good ones in python
MindfulMonk has joined #ruby
shadoi has quit [Read error: Connection reset by peer]
<bnagy> look at some of the bindata tricks that use dynamism
<agent_white> Ooo sounds fancy.
<bnagy> lots of formats need dynamic parsers, sadly, where based on value x the next structure is type Y
v10energy has joined #ruby
<elektronaut> agent_white: you could check out this book: http://computationbook.com
<bnagy> other than those, sure, you can just wrap unpack
<elektronaut> it's not as scary as it looks
scarolan has joined #ruby
anildigital is now known as zz_anildigital
dorei has joined #ruby
griffindy has joined #ruby
raar has quit [Read error: Operation timed out]
allaire has joined #ruby
<agent_white> elektronaut: Badass, that looks pretty awesome! Thank ya!
v0n has quit [Ping timeout: 272 seconds]
ffranz has quit [Quit: Leaving]
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
bradhe has quit [Ping timeout: 248 seconds]
<Fractional> Stack level too deep error? But when I print out a value the error dissapears? What?
agjacome has quit [Ping timeout: 246 seconds]
<MrZYX> how do you print, p, puts, print?
<benzrf> MrZYX: hm?
<benzrf> oh
<wiku5_> i use stdout
havenwood has joined #ruby
<Fractional> puts
<benzrf> agent_white: parsing is not too hard if you think about it in terms of recursion and parser combinators
<benzrf> agent_white: do you know regex?
<MrZYX> Fractional: are you sure you're not assigning its return value to something?
yasushi has joined #ruby
Squarepy has quit [Quit: Leaving]
interactionjaxsn has quit [Remote host closed the connection]
<MrZYX> Fractional: because puts always returns nil, p for example always returns its argument
ctp has quit [Quit: Leaving...]
craigp has quit [Remote host closed the connection]
Davey_ is now known as Davey
julweber has quit [Remote host closed the connection]
sambao21 has joined #ruby
<benzrf> oh dang i just figured out that you can stick a p into any expression and it will still workmad3
<benzrf> *work
<agent_white> benzrf: I've -barely- touched it. :/
<benzrf> agent_white: thats OK
<benzrf> agent_white: think about this.
DaZ has quit [Read error: Connection reset by peer]
<benzrf> agent_white: do you know json syntax?
<Fractional> I pass an array with numbers to my function. I get a error '-' can't convert Fixnum into array. Just what? O.o
<agent_white> Yup!
S3mI has quit [Quit: leaving]
<benzrf> agent_white: okapi14
<benzrf> *ok
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<benzrf> agent_white: here is how you might define a function to parse json when using a good framework
<benzrf> well
<bnagy> Fractional: you're probably trying to do [something] - some_number
<benzrf> some pseudocode-ish stuff
shaunbaker has quit [Remote host closed the connection]
S3mI has joined #ruby
Mattx has joined #ruby
Mattx has quit [Changing host]
Mattx has joined #ruby
<benzrf> json_object = '{' then 0 or more property pairs sep by ',' then '}'
<benzrf> property_pair = json_string then ':' then json_value
<benzrf> etc
<benzrf> that kind of thing
<benzrf> define parsing recursively
<godd2> parparsingsing
<benzrf> godd2: hue
baroquebobcat has joined #ruby
<Hanmac> apeiros: i tryed to use #chunk with my idea from dynamic slice but it didnt work as i wanted ;/
nanoyak has quit [Quit: Computer has gone to sleep.]
<benzrf> ima make a nifty iteration thingy
Neomex1 has joined #ruby
<agent_white> benzrf: Roger that! Perfect. Thank you for the explanation :)
devinus has quit []
<benzrf> agent_white: np =]
freerobby has quit [Quit: Leaving.]
<benzrf> agent_white: parser combinators is a term for treating parsers as objects that you can combine into new parsers
wtfitsme has quit [Quit: wtfitsme]
Notte has quit []
sassamo has joined #ruby
Guest3132 has quit [Remote host closed the connection]
<benzrf> agent_white: so maybe you define a method 'and_then', so you can do 'p1.and_then(p2).and_then(p3)'
<Fractional> https://gist.github.com/Freddan962/917f900326b5b8fdac03 - Stack level too deep? Why would that be so D:
freerobby has joined #ruby
<benzrf> agent_white: or a method called 'many', to make a repeated parser
vlad_starkov has joined #ruby
shadoi1 has quit [Quit: Leaving.]
habanany has quit [Ping timeout: 265 seconds]
<centrx> Fractional, That is the kind of error message you get if you have endless recursion. quicksort calling quicksort and never stopping
raar has joined #ruby
habanany1 has joined #ruby
<centrx> Fractional, Also, Ruby has a native method for Array#partition
raar is now known as Guest24136
<centrx> Fractional, Or you may be looking for Array#each_slice
<agent_white> benzrf: Ahhh I see... sounds pretty 'meta'? (Just dove into _why's chapter on metaprogramming)
<benzrf> not exactly
<benzrf> but sort of
<benzrf> agent_white: haskell has a pretty great library for parsing called Parsec, which is basically what I just described
m8 has quit [Quit: Sto andando via]
<centrx> Fractional, Rather, it is Enumerable#partition, Enumerable#each_slice, etc.
<Hanmac> centrx: Array#partition is not what you think
<benzrf> agent_white: it handles creating values from parsing by having a sort of callback thing
<benzrf> agent_white: in ruby it might look like this
monkegjinni has quit [Remote host closed the connection]
<benzrf> def json_object
<centrx> Yeah you probably want slice or each_slice
<benzrf> char('{').then
|RicharD| has quit [Quit: Sto andando via]
<benzrf> no wait
<benzrf> hmmm
vlad_starkov has quit [Read error: Connection reset by peer]
<benzrf> well, this is not actually possible working ruby code, but:
monkegjinni has joined #ruby
<benzrf> def json_object
<shevy> I wanna slice all of you!
<Fractional> centrx: Ok, thanks! :)
<benzrf> char('{')
drumusician has quit [Ping timeout: 248 seconds]
<benzrf> pairs = property_pair.sep_by(',')
<benzrf> char('}')
<benzrf> pairs
<benzrf> end
<shevy> Hanmac do you think you will release a rxw gem this year?
wildroman2 has quit [Remote host closed the connection]
<benzrf> agent_white: so you would intertwine the code that creates an object with the parser description
craigp has joined #ruby
Al___ has quit [Read error: Connection reset by peer]
camilasan has quit [Ping timeout: 264 seconds]
<Hanmac> shevy depends ... currently i am jobless, thats why i can manage > 15 commits per day, if i find a job it would be more complicated ... the problem is: find some one that "!can!" commit to rwx ;D
Al___ has joined #ruby
brennanMKE has quit [Remote host closed the connection]
<shevy> hmm
<agent_white> benzrf: Ahhh alrighty!
allaire has quit []
<benzrf> :)
<shevy> ok so you must release a gem before you'll land a new job :D
brennanMKE has joined #ruby
Megtastique has quit []
<godd2> Does doing the tutorial Hola gem count?
<agent_white> benzrf: Perfect... I actually might just get to work on a json parser to start with! Thank you very much, I appreciate it! :)
<benzrf> agent_white: np!
<benzrf> agent_white: i would not try to design it to work exactly as above, just fyi
ryantm has quit [Ping timeout: 252 seconds]
coca_rails has joined #ruby
<benzrf> agent_white: it would be difficult to get that to work in ruby
<bnagy> because ruby isn't haskell
<benzrf> yup
<benzrf> agent_white: i would represent parsers as objects with a 'parse' method, which takes a string or an IO or something and gives back a parsed representation
<benzrf> agent_white: then you can combine them into new parsers n shit
colonolGron has joined #ruby
<bnagy> also text parsing is quite different from binary parsing
monkegjinni has quit [Ping timeout: 248 seconds]
<Fractional> I have NEVER been happier! :O
<Fractional> Finally my quicksort is working, woho! :D
<shevy> your happiness sickens me
<godd2> level 2 is to make your json_parser error-aware, at least on some level
DaZ has joined #ruby
<benzrf> mine used exceptions for failurlure
<benzrf> it was so fuckin slow
nanoyak has joined #ruby
<Fractional> It was that times loop that caused the issue ^
<Fractional> ^^
sassamo has quit [Remote host closed the connection]
freezey has quit [Ping timeout: 272 seconds]
sassamo has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
habanany has joined #ruby
<agent_white> Awesome... I'm excited! :D
recurrence has joined #ruby
<recurrence> I'm using capistrano and it's complaining that a ruby gem is not checked out. But it is... is there a good way to debug that?
ktosiek has quit [Read error: Connection reset by peer]
brennanMKE has quit [Ping timeout: 260 seconds]
coca_rails has quit [Ping timeout: 240 seconds]
mikepack has joined #ruby
<elektronaut> are you running capistrano with bundle exec?
<benzrf> agent_white: you should be
habanany1 has quit [Ping timeout: 272 seconds]
<benzrf> shits fun =D
<recurrence> elektronaut: with cap deploy actually
<benzrf> agent_white: gl dont get frustrated o-o
<benzrf> agent_white: remember that parsers must be able to indicate that they failed so that you can implement trying several possible parsers
<Fractional> Any good resource on how to document code properly?
coca_rails has joined #ruby
Vivekananda has joined #ruby
<benzrf> Fractional: im trying to think of a lame meta joka
<benzrf> *joke
sassamo has quit [Ping timeout: 252 seconds]
Hanmac1 has joined #ruby
aspires has quit []
burlyscudd has quit [Quit: Leaving.]
blackmesa has quit [Quit: WeeChat 0.4.2]
tulak1 has quit [Ping timeout: 246 seconds]
tulak has joined #ruby
MrZYX is now known as MrZYX|off
Hanmac has quit [Ping timeout: 264 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
sassamo has joined #ruby
venkat_ has quit [Remote host closed the connection]
venkat has joined #ruby
<havenwood> Fractional: When there is something interesting to say that the code doesn't already, add documentation.
<havenwood> Fractional: Often there isn't. :P
kevind has quit [Quit: kevind]
<Fractional> haven: I am getting graded based of how well I documentate code.
<havenwood> oooh
tvw has quit []
<Fractional> on*
<lethjakman> hrm...odd thing. I'm running Time.method(:now).source_location and it's returning nil. however there does seem to be a Time.now method. why is that?
danshultz has joined #ruby
<Fractional> haven: Got 4 algorithms to comment before I go to bed :)
iamsean has joined #ruby
colonolGron has quit [Quit: leaving]
<havenwood> Fractional: Follow tomdoc: http://tomdoc.org/
bean__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kitak has joined #ruby
scarolan has quit [Ping timeout: 272 seconds]
<Hanmac1> lethjakman: #source_location and #parameters does not work for native (C/C++) methods
<lethjakman> anyways the real issue is I have a Time.now and I need to compareit to a previous time to make sure 24 hours hasn't passed. is that possible?
Hanmac1 is now known as Hanmac
<Fractional> Havenwood: Thank you so very much, that is EXACTLY what I was looking for! :D
<lethjakman> Hanmac: oh. I didn't realize Time was written in c++
smathieu has joined #ruby
<lethjakman> or c
<Hanmac> it was C
<lethjakman> whichever
<Hanmac> most of the ruby core functions are written in C
epichero has joined #ruby
Al___ has quit [Quit: Al___]
<lethjakman> huh, interesting.
<lethjakman> that makes perfect sense
sepp2k has quit [Read error: Connection reset by peer]
venkat has quit [Ping timeout: 252 seconds]
<lethjakman> is there a way to compare Time's though?
soulcake has joined #ruby
samsonasu has quit [Quit: samsonasu]
zxd has joined #ruby
blandflakes has joined #ruby
<havenwood> >> Time.now - Time.now
<eval-in> havenwood => -1.1107e-05 (https://eval.in/93096)
<bnagy> 07:26 < Fractional> haven: I am getting graded based of how well I documentate code.
<bnagy> Fractional: thought you said you weren't getting help with your homework?
<Hanmac> lethjakman: Time includes Comparable, so you can use <,<=,>,>= and the other functions
danshultz has quit [Ping timeout: 272 seconds]
phat4life has quit [Quit: Leaving.]
<benzrf> Fractional: ur BUSTED m8
atmosx has quit [Quit: Lost in trance]
<pragmatism> Fractional: ouch
phat4life has joined #ruby
<pragmatism> tbh though
<pragmatism> I totally learned nearly everything I know by asking questions on IRC
<pragmatism> So
burlyscudd has joined #ruby
<lethjakman> oh. is there a way to add 24 hours?
<pragmatism> I can't really fault him/her that much
<pragmatism> + 1.day
<pragmatism> or
<benzrf> pragmatism: same here B)
<havenwood> lethjakman: Time.now + 60 * 60 * 24
<pragmatism> Time.now + 60*60*24
<pragmatism> rrrr
<pragmatism> grrr
* Hanmac does not trust the #days methods ;P
<lethjakman> no way
<pragmatism> Hanmac: Also pretty sure it's only in Rails
<lethjakman> awesome
<lethjakman> Hanmac: why's that?
Baluse has quit [Ping timeout: 272 seconds]
MatthewsFace has joined #ruby
<pragmatism> Because he's crazy
<pragmatism> s/he's crazy
<lethjakman> yeah it's in activesupport
<pragmatism> <3
<lethjakman> Hanmac: it basically does what you suggested.
<Hanmac> pragmatism: because the how long is a day depends on the month and the time zone ... thats why you cant generalize that
Baluse has joined #ruby
venkat has joined #ruby
mspah_ has joined #ruby
<pragmatism> Hanmac: Excuse me? A day is always 24h long.
Jetchisel has joined #ruby
<pragmatism> Number of days in a month may vary, and the time_in_zone may vary
<pragmatism> but not the length of a day
<bnagy> popcorn.gif
allaire has joined #ruby
<pragmatism> I _am_ actually eating popcorn right now
<pragmatism> lul
recurrence has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mojjojo has quit [Quit: mojjojo]
mehlah has joined #ruby
Hanmac1 has joined #ruby
phat4life has quit [Client Quit]
nobitanobi has quit [Ping timeout: 265 seconds]
mojjojo has joined #ruby
<Fractional> benzrf: It is not homework but it is work that will be updated to my "school" repository, so I am sorry, it is not homework :D
phat4life has joined #ruby
craigp has quit [Remote host closed the connection]
bambuka has quit [Remote host closed the connection]
mansi has quit [Remote host closed the connection]
<bnagy> "it's not homework, it's just work on which I will be graded"
_Andres has quit [Ping timeout: 248 seconds]
wedgeV has quit [Quit: wedgeV]
mansi has joined #ruby
<Fractional> bnagy: It is work where I might be graded, it is work that my teacher will see but I am not sure whether or not I will get a grade on it.
phat4life has quit [Client Quit]
epichero has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
Hanmac has quit [Ping timeout: 252 seconds]
terrellt has quit [Ping timeout: 265 seconds]
enebo has quit [Quit: enebo]
coca_rails has quit [Remote host closed the connection]
coca_rails has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
mspah_ has quit [Quit: This computer has gone to sleep]
tyl has joined #ruby
<depesz> hi. "puts" adds "\n" at the end of line. Can it be somehow configured? I'd like to output "\r\n" even though I'm on Unix.
<bnagy> anyway cheat all you want, just don't bother lying. Saying you're 'just writing quicksort because it looked interesting LOL' isn't going to fool anyone ever
tyl has quit [Client Quit]
<Fractional> bnagy: I am not cheating and I am not lying.
<bnagy> depesz: gotta do it manually afaik, using print
brennanMKE has joined #ruby
aryaching has joined #ruby
<depesz> bnagy: ok.
_Andres has joined #ruby
Fractional has quit [Quit: Leaving]
<bnagy> depesz: hm, there might be a global actually.. but tbh I would still suggest doing it manually
<bnagy> otherwise it's going to weird someone the hell out one day
<centrx> You could use IO.new, but that seems like overkill
mojjojo has quit [Quit: mojjojo]
baroquebobcat has joined #ruby
S3mI has left #ruby [#ruby]
kirun has quit [Quit: Client exiting]
baroquebobcat has quit [Client Quit]
habanany has quit [Ping timeout: 252 seconds]
mansi has quit [Ping timeout: 272 seconds]
Fractional has joined #ruby
mojjojo has joined #ruby
<benzrf> txdv: what are wards
<pragmatism> Fractional: Tell us how you really feel ;)
<Fractional> pragmatism: While doing it boring but after managing to do it awesome :D
venkat has quit [Remote host closed the connection]
bradhe has joined #ruby
venkat has joined #ruby
<benzrf> Fractional: ;)
habanany has joined #ruby
<Fractional> benzrf: Is that what you wanted to hear? Haha
cpruitt has quit [Quit: cpruitt]