apeiros changed the topic of #ruby to: http://ruby-community.com || Ruby 2.2.1; 2.1.5; 2.0.0-p643: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org, other public logging is prohibited
mistermocha has quit [Ping timeout: 252 seconds]
kevinml has joined #ruby
ismaelga has joined #ruby
steven43126 has joined #ruby
kevinml has left #ruby [#ruby]
mjuszczak has quit [Client Quit]
havenwood has quit []
<a5i> How can I only pick out the "@text" of this? https://www.irccloud.com/pastebin/evueQVBl
<ruboto> a5i, we in #ruby do not like irccloud.com, I reposted your paste to gist for you: https://gist.github.com/06218a9664077ab35d48
<ruboto> irccloud.com has no syntax highlighting, distracting formatting and loads slowly for most.
quintinadam has quit []
<a5i> Well then...
<a5i> thanks I guess
GnuYawk has joined #ruby
drocsid has joined #ruby
jerematic has quit [Remote host closed the connection]
weemsledeux has joined #ruby
dling` has quit [Ping timeout: 250 seconds]
j416 has quit [Ping timeout: 245 seconds]
bnobu has joined #ruby
weemsledeux has quit [Max SendQ exceeded]
steven43126 has quit [Ping timeout: 240 seconds]
_lynX is now known as growlove
GnuYawk has quit [Client Quit]
GnuYawk has joined #ruby
keen___ has joined #ruby
mansel has joined #ruby
keen__ has quit [Ping timeout: 252 seconds]
nfk has quit [Remote host closed the connection]
GnuYawk has quit [Client Quit]
GnuYawk has joined #ruby
weemsledeux has joined #ruby
<shevy> a5i you can ignore the bot-spam propaganda - however had, your paste is hard to read
<a5i> Yeah sorry
<shevy> a5i if the guy who wrote that class was not a total idiot then a method called .text should exist
mikenovikov has quit [Read error: Connection reset by peer]
<shevy> but it may likely be that he was an idiot; perhaps there was some API documentation that details how to obtain those values
<shevy> client.filter(:track => topics.join(",")) do |object|
<shevy> puts object.text if object.is_a?(Twitter::Tweet)
<shevy> I guess it is possible somewhere from there
GnuYawk has quit [Client Quit]
GnuYawk has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wldcordeiro has quit [Ping timeout: 256 seconds]
j416 has joined #ruby
<a5i> I'm not using the twitter gem of Ruby though
FLHerne has left #ruby ["Konversation terminated!"]
CloCkWeRX has quit [Ping timeout: 272 seconds]
<a5i> I'm using the Crystal lib
JaTochNietDan has quit [Ping timeout: 272 seconds]
Darkwater has quit [Ping timeout: 246 seconds]
argoneus has quit [Ping timeout: 255 seconds]
tier has joined #ruby
<baweaver> (shevy: Crystal being the fancy new compiled Ruby the HN people are playing with these days)
Darkwater has joined #ruby
Diabolik has quit [Ping timeout: 256 seconds]
<a5i> Yeah there is no .text, it was made by sferik and the lib was minimal, prolly a poc
Diabolik has joined #ruby
chrishough has joined #ruby
<baweaver> PRing is caring
GnuYawk has quit [Client Quit]
argoneus has joined #ruby
<a5i> If Only I knew how ( ._.)
<a5i> not to PR, to add methods
<baweaver> though considering you're on a language that's self-described as pretty beta, expect a lot of gotchas
xenokiller has quit [Ping timeout: 250 seconds]
GnuYawk has joined #ruby
JaTochNietDan has joined #ruby
<baweaver> def my_method; 'foo'; end
<a5i> I'm used to it from Rust
<baweaver> ?
<a5i> no add methods for twitter.cr
<baweaver> Is it not on GH?
<a5i> The method itself
<baweaver> adding a method is just adding code to a lib
<baweaver> even if it is Crystal
tkuchiki has joined #ruby
marr has quit [Ping timeout: 240 seconds]
soahccc has quit [Quit: Cya]
soahccc has joined #ruby
A205B064 has joined #ruby
tier has quit [Ping timeout: 246 seconds]
sinkensabe has joined #ruby
fabrice31 has joined #ruby
tvw has quit [Remote host closed the connection]
A205B064 has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
oo_ has joined #ruby
Zen-Zen has quit []
fabrice31 has quit [Ping timeout: 265 seconds]
<a5i> Oh god!
<a5i> That output was an array!
sinkensabe has quit [Ping timeout: 276 seconds]
<a5i> output[0].text worked, not output.text !
astrobun_ has quit [Remote host closed the connection]
quintinadam has joined #ruby
quintinadam has quit [Client Quit]
baweaver has quit [Remote host closed the connection]
ismaelga has quit [Remote host closed the connection]
ringarin has joined #ruby
CaptainCibai has joined #ruby
ghr has quit [Ping timeout: 248 seconds]
<shevy> well
<shevy> this is a channel for ruby
<shevy> how could people possibly assume you were asking a crystal language from your above question ;)
<shevy> *crystal language question
bruno- has quit [Ping timeout: 250 seconds]
tier has joined #ruby
juanpablo__ has joined #ruby
oo_ has quit [Remote host closed the connection]
nb_bez___ has joined #ruby
iteratorP has joined #ruby
lpaste has quit [Ping timeout: 250 seconds]
Kricir has joined #ruby
zly has quit [Ping timeout: 250 seconds]
juanpaucar has quit [Remote host closed the connection]
<a5i> Well 89% of crystal question can be Ruby ones
<a5i> :P
juanpaucar has joined #ruby
agrinb has quit [Read error: Connection reset by peer]
tobiasvl has quit [Ping timeout: 272 seconds]
matugm has joined #ruby
zly has joined #ruby
agrinb has joined #ruby
tvl has joined #ruby
tvl is now known as tobiasvl
lpaste has joined #ruby
jerematic has joined #ruby
juanpablo__ has quit [Ping timeout: 264 seconds]
jottr_ has joined #ruby
<maletor> What is the succinct explanation of when the double color (e.g. ::Model) syntax is necessary?
fryguy9 has joined #ruby
digitalextremist has quit [Quit: Leaving]
oo_ has joined #ruby
mistermocha has joined #ruby
cpt_yossarian has joined #ruby
Phrohdoh has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
<Phrohdoh> Hey guys I’m pretty new to ruby, and I don’t understand some syntax.
juanpaucar has quit [Ping timeout: 264 seconds]
steffes has joined #ruby
<Phrohdoh> This is from `ghi` which uses the GitHub Issues API: p = i['pull_request']['html_url'] and l += 2
orionstein has quit [Quit: ZNC - http://znc.in]
<Phrohdoh> Does this set p to the string that is the value of ‘html_url’ + (l += 2)?
orionstein has joined #ruby
amdbcg has joined #ruby
<maletor> no
<maletor> just try and see
<maletor> irb
bobbrez has joined #ruby
<maletor> 1 and 2 => 2
<Phrohdoh> that’s an l though
<Phrohdoh> er
<Phrohdoh> lowercase L, my font doesn’t make them easy to tell apart
fryguy9 has quit [Client Quit]
<maletor> who cares what it is? it's a variable. that's all we need to know
<Phrohdoh> It is a string.
<maletor> irb(main):008:0> '1' and '2'
<maletor> => "2"
isxek has joined #ruby
<Phrohdoh> oh, O.o
mistermocha has quit [Ping timeout: 245 seconds]
<Phrohdoh> “foo” and 2 => 2
<Phrohdoh> :s
oo_ has quit [Remote host closed the connection]
diegoviola has joined #ruby
<maletor> irb(main):012:0> v = 'var' and 'foo'
<maletor> => "foo"
<maletor> irb(main):013:0> v
<maletor> => "var"
lektrik has joined #ruby
<maletor> now try with && vs and, and see what happens
bobbrez has quit []
bobbrez_ has joined #ruby
<maletor> and is special. its lower precendence allows you to assign vars and use them in the next condition
<maletor> also, f**k those single letter variable names
<Phrohdoh> huh, interesting
oo_ has joined #ruby
<Phrohdoh> maletor: yeah these variable names are terrible, that’s why I can’t understand this snippet :/
CloCkWeRX has joined #ruby
yh has quit [Ping timeout: 250 seconds]
<maletor> 99% of the time just stay away from "and"
<a5i> ^
<maletor> some people on this channel will call you names for using it.
<sevenseacat> concur with not using `and`
<a5i> sometimes I don't like code that's _too_ readable :P
<maletor> readable > clever
<Phrohdoh> This is the actual code I’m trying to make readable, http://pastebin.com/wNDA6SWR
<ruboto> Phrohdoh, we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
baweaver has joined #ruby
<Phrohdoh> oh, ok
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Phrohdoh> So ‘l’ is possibly an integer
tkuchiki has quit [Read error: Connection reset by peer]
casshern2 has joined #ruby
<Phrohdoh> but, `a = i['assignee’]` is confusing me, does that mean “does the object ‘assignee’ exist?”
<maletor> that code looks like it's been run through an uglifier
tkuchiki has joined #ruby
<maletor> l in an int
bobbrez_ has quit [Client Quit]
<Phrohdoh> Okay, then the line I’m stuck on is p = i['pull_request']['html_url'] and l += 2
bobbrez has joined #ruby
<Phrohdoh> The first part makes me think it is a string
<Phrohdoh> but then the `and l += 2` comes in and i’m lost
ramfjord has quit [Ping timeout: 245 seconds]
<shevy> it's awful code
krisquigley has joined #ruby
<shevy> find the one who wrote it and eliminate him
ponga has joined #ruby
<Phrohdoh> I agree.
<maletor> just pretend they are two different lines
<shevy> people normally use "and" for simple side-effect free boolean query
<maletor> i can't imagine when the first part would return nil
<maletor> it's not rational to even program like that
<Phrohdoh> Okay, but then he is testing if string
<shevy> "if has_cheeze? and has_milk?
<shevy> lolcat.is_happy
<shevy> hmm ok
<shevy> that is a mouse
ponga has quit [Client Quit]
<Phrohdoh> (fg('aaaaaa') { '↑' } if p),
<shevy> what are you doing
<Phrohdoh> Reading part of the ghi source.
<Phrohdoh> Trying to understand why it outputs ↑ sometimes
<shevy> is it getting any prettier?
<Phrohdoh> There is no documentation on it or even how to customize it.
<Phrohdoh> not at all
<shevy> perhaps he was too ashamed of what he wrote so he added no documentation
x1337807x has joined #ruby
<maletor> hahaha
havenwood has joined #ruby
robustus has quit [Ping timeout: 264 seconds]
<maletor> no tests 99% of the time means "i have no idea wtf i am doing"
steffes has quit []
Sawbones has joined #ruby
<shevy> if labels = assigns[:labels]
x1337807x has quit [Client Quit]
robustus has joined #ruby
freerobby has quit [Quit: Leaving.]
growlove has quit [Remote host closed the connection]
<shevy> I hate this style of coding
<sevenseacat> why
krisquigley has quit [Ping timeout: 272 seconds]
reinaldob has joined #ruby
<shevy> it's not simple code
<shevy> <%= format_state i['state'], format_tag(i['state']), :bg %> \
<shevy> <% unless i['comments'] == 0 %>\
hobodave has joined #ruby
DavidDudson has joined #ruby
<sevenseacat> its not side effect free code, but it is simple code
<maletor> Phrohdoh: stop reading this code
<maletor> this is not how to learn ruby
<Phrohdoh> Well I use it and would like to know wtf the symbol means
ghr has joined #ruby
growlove has joined #ruby
growlove has quit [Max SendQ exceeded]
<Phrohdoh> No but I am reading the man now
j416 has quit [Ping timeout: 245 seconds]
DavidDudson has quit [Client Quit]
steven43126 has joined #ruby
Sawbones has quit [Ping timeout: 250 seconds]
<Phrohdoh> Nothing about the symbol, shame.
freerobby has joined #ruby
baweaver has quit [Remote host closed the connection]
<Phrohdoh> lol
_cgcardona_ has quit [Quit: _cgcardona_]
freerobby has quit [Client Quit]
MatthewsFace has joined #ruby
sevvie has quit [Ping timeout: 245 seconds]
ponga has joined #ruby
<casshern2> is this how ruby is supposed to behave? https://gist.github.com/Luomint/24da23ec5980bb318c98
StevenXL has joined #ruby
enebo has joined #ruby
steven43126 has quit [Ping timeout: 250 seconds]
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
Sawbones has joined #ruby
reinaldob has quit [Ping timeout: 264 seconds]
ponga has quit [Client Quit]
Phrohdoh has left #ruby [#ruby]
ghr has quit [Ping timeout: 276 seconds]
bnobu has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> maletor sevenseacat has a crush on him
michaeldeol has joined #ruby
mroach has quit [Quit: mroach]
<sevenseacat> on who?
wallerdev has quit [Quit: wallerdev]
<shevy> that cat coder
<FernandoBasso> qty
FernandoBasso has quit [Quit: leaving]
<shevy> stephen the cat
<sevenseacat> :3
wallerdev has joined #ruby
<maletor> casshern2: i cannot read that
<shevy> producer of elegant code
<maletor> let's behave. i'm sorry i started this.
reinaldob has joined #ruby
<shevy> casshern2 you defince the same method twice?
<shevy> *define
riotjones has joined #ruby
<casshern2> no it's just that
<casshern2> it didnt work until I swithted those places.. but if I used the syntactic sugar version price=(amount) it didn't matter
<casshern2> switchted*
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
apoplexy_da_boss has joined #ruby
martin_work has quit [Ping timeout: 252 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Sawbones has quit [Remote host closed the connection]
riotjones has quit [Ping timeout: 245 seconds]
hmsimha has joined #ruby
amclain has joined #ruby
mitchellhenke has joined #ruby
thumpba has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 256 seconds]
thumpba has joined #ruby
Sawbones has joined #ruby
gregf1 has quit [Quit: WeeChat 1.0.1]
iotouch has joined #ruby
sinkensabe has joined #ruby
reset has quit [Ping timeout: 256 seconds]
sevvie has joined #ruby
<nahtnam> Hey! I have this code: `bitcoin_price = JSON.parse(response.body)`. It returns something like this: {"amount"=>"247.63", "currency"=>"USD"} How can I access the amount? I tried bitcoin_price[:amount], bitcoin_price[0], and bitcoin_price.amount, none of which work
MatthewsFace has quit [Remote host closed the connection]
<sevenseacat> it wouldnt, because the key is a string
jack_rabbit has joined #ruby
<sevenseacat> not a symbol
<nahtnam> sevenseacat: It was a symbol, I added .to_s so i can output it
jack_rabbit is now known as Guest56551
<sevenseacat> no, its not
<nahtnam> sevenseacat: Oh, its a hash: TypeError: no implicit conversion of Hash into String
oo_ has quit [Ping timeout: 244 seconds]
<nahtnam> ^ I get that error when I try to print it
<sevenseacat> wat
<sevenseacat> !gist
<sevenseacat> dammit
<sevenseacat> mmm global variables
<nahtnam> *Ignore the last line
<sevenseacat> that doesnt say what $bitcoin is
<nahtnam> Yeah, I am trying to set $bitcoin to equal the amount
<sevenseacat> so access the value via its string key in the hash
sinkensabe has quit [Ping timeout: 264 seconds]
sohrab has quit [Quit: leaving]
<FrankD_> bitcoin_price['amount'] should do it :D
<nahtnam> Damn. I was trying [:amount[
<sevenseacat> i was trying to avoid spelling it out, but yes
<sevenseacat> we know.
<nahtnam> *[:amount]
<sevenseacat> like i said, its a string, not a symbol.
<FrankD_> if youre going to say that you need to explain to him why thats relevant and what it means
<FrankD_> as he obviously has no context
iotouch has left #ruby ["离开"]
<nahtnam> Ok. Whats the difference between the two?
<nahtnam> Wheere can I find it in the docs
Sawbones has quit [Remote host closed the connection]
<shevy> nahtnam firstly, you must use what is stored in the hash
DavidDudson has joined #ruby
<shevy> if you can not want to be bothered, there is HashWithIndifferentAccess or so
<shevy> you could also write a wrapper method to obtain the keys you desire
<shevy> def obtain(i); hash[i.to_sym]
<nahtnam> Sorry, I am confused.
<nahtnam> Thanks
oo_ has joined #ruby
zz_AlphaTech is now known as AlphaTech
bruno- has joined #ruby
hpoydar has quit [Remote host closed the connection]
astrobun_ has joined #ruby
psudoze has joined #ruby
Ellis has left #ruby [#ruby]
jerematic has quit [Remote host closed the connection]
steven43126 has joined #ruby
Takle has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
jottr_ has quit [Ping timeout: 265 seconds]
<Porfa> hey guys
<Porfa> is it possible for me to have sinatra quit after the first “GET” request ?
steven43126 has quit [Ping timeout: 264 seconds]
Takle has quit [Ping timeout: 246 seconds]
zeroasterix has joined #ruby
zzing has joined #ruby
<zeroasterix> hi all
sevvie has quit [Ping timeout: 272 seconds]
MyMind has quit [Read error: Connection reset by peer]
mroach has joined #ruby
msnyon has quit [Read error: Connection reset by peer]
MyMind has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gusrub has joined #ruby
<zeroasterix> anyone alive in here?
<matugm> porfa, I guess you could just call "exit!" and that would do it. http://stackoverflow.com/questions/19007487/can-i-stop-sinatra-from-within-a-sinatra-application
growlove has joined #ruby
<matugm> hi zeroasterix :)
enebo has quit [Quit: enebo]
wallerdev has quit [Quit: wallerdev]
markfletcher has joined #ruby
wallerdev has joined #ruby
kblake has quit []
wallerdev has quit [Client Quit]
<zeroasterix> Hi! I am looking to get started in Ruby, do you know if there are any online courses like udacity or coursera style that offer classes in ruby?
<gusrub> zeroasterix, code school, they are not free, but they are good, especially the ruby bits
<matugm> You could also try rubymonk.com
<zeroasterix> oh cool! thanks-
gusrub has quit [Client Quit]
pwnz0r has joined #ruby
gusrub has joined #ruby
digitalextremist has joined #ruby
<zeroasterix> wow, both sites look awesome! can't wait
gusrub has quit [Client Quit]
RegulationD has joined #ruby
tosbourn has joined #ruby
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mrmagneto has joined #ruby
<mrmagneto> hola
_1_deep has joined #ruby
astrobun_ has quit [Remote host closed the connection]
godzirra has joined #ruby
amystephen has quit [Quit: amystephen]
<godzirra> Hey guys. How come DateTime.parse("10/13/1994") says invalid date, but 10/12/1994 doesn't/
<godzirra> Oh crap. It's doing day, month, year isn't it.
<godzirra> duh.
<sevenseacat> because there is no 13th month
maletor has quit [Quit: Computer has gone to sleep.]
<godzirra> Is there a way to tell it it's actually doing month/day/year because american dates are dumb?
tosbourn has quit [Ping timeout: 245 seconds]
RegulationD has quit [Ping timeout: 256 seconds]
_1_deep has quit [Read error: Connection reset by peer]
cjim has joined #ruby
ghr has joined #ruby
havenwood has quit []
Guest25632 has joined #ruby
sevvie has joined #ruby
<godzirra> Nevermind, I figured it out. Pretty much as soon as I realized it was day/month/year...
nateberkopec has quit [Quit: Leaving...]
tier has quit [Remote host closed the connection]
kblake has joined #ruby
msnyon has joined #ruby
<Porfa> matugm: thank you!
<godzirra> sevenseacat: thanks
Sawbones has joined #ruby
<sevenseacat> np
Guest25632 has left #ruby [#ruby]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
astrobun_ has joined #ruby
godzirra has quit [Quit: leaving]
ghr has quit [Ping timeout: 264 seconds]
<Porfa> guys i need to do something… but i dont know how to do it!!!
maximski has joined #ruby
ebbflowgo has joined #ruby
<Porfa> im using ruby to fetch me data from a category from my online store, that category contains everything i need to generate a html newsletter/code using sinatra… the thing is… i have a .sh script that runs the sinatra app, and the next line is wget 127,0,0,1:4567 -O newsletter.html
msnyon has quit [Ping timeout: 264 seconds]
maletor has joined #ruby
cjim has quit [Quit: (null)]
reinaldob has quit [Remote host closed the connection]
sevvie has quit [Ping timeout: 252 seconds]
havenwood has joined #ruby
<Porfa> but since sinatra doesn’t quit… and even if it did quit, there’s nothing left for wget to fetch… is it possible to write the output of a sinatra request into an HTML file from whithin the ruby script?
Sawbones has quit [Remote host closed the connection]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
fabrice31 has joined #ruby
ponga has joined #ruby
DavidDudson has joined #ruby
juanpablo__ has joined #ruby
sankaber has joined #ruby
Filete has joined #ruby
dseitz has joined #ruby
sevvie has joined #ruby
Sawbones has joined #ruby
fabrice31 has quit [Ping timeout: 244 seconds]
tosbourn has joined #ruby
astrobun_ has quit [Ping timeout: 276 seconds]
moblib has joined #ruby
astrobun_ has joined #ruby
tosbourn has quit [Remote host closed the connection]
juanpablo__ has quit [Ping timeout: 256 seconds]
Beoran has quit [Ping timeout: 265 seconds]
Sawbones has quit [Remote host closed the connection]
rebel has joined #ruby
kblake has quit [Remote host closed the connection]
ringarin has quit [Ping timeout: 264 seconds]
<shevy> porfa should be doable, it's just an URL query right? you get fed back some html/string response from the server
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
apoplexy_da_boss is now known as apoplexy
ponga has quit [Remote host closed the connection]
pontiki has joined #ruby
sinkensabe has joined #ruby
flaccid has joined #ruby
<flaccid> hey guys when i run rubocop locally, i can’t replicate this - the syntax is fine. any ideas why it trips in travis? https://travis-ci.org/xhost-cookbooks/openvpn/jobs/57485341#L215
kblake has joined #ruby
davedev2_ has quit []
iamjarvo has joined #ruby
sevvie has quit [Ping timeout: 255 seconds]
maximski has quit []
sevvie has joined #ruby
reinaldob has joined #ruby
<mrmagneto> @flaccid: needs more blood flow
astrobun_ has quit [Ping timeout: 252 seconds]
<flaccid> mrmagneto: um
astrobun_ has joined #ruby
chrishough has joined #ruby
msnyon has joined #ruby
juanpaucar has joined #ruby
<sevenseacat> flaccid: we dont have any context to say.
sinkensabe has quit [Ping timeout: 256 seconds]
<flaccid> sevenseacat: the context is that it shouldn’t error because it doesn’t fail that cop locally :)
Beoran has joined #ruby
<sevenseacat> um
j416 has joined #ruby
Sawbones has joined #ruby
reinaldob has quit [Ping timeout: 246 seconds]
avahey has quit [Quit: Connection closed for inactivity]
sevvie has quit [Ping timeout: 248 seconds]
iamjarvo has quit [Ping timeout: 264 seconds]
DavidDudson has joined #ruby
hpoydar has joined #ruby
juanpaucar has quit [Ping timeout: 276 seconds]
<flaccid> all good, coderanger rescued me
flaccid has left #ruby [#ruby]
cjim has joined #ruby
<sevenseacat> did you give coderanger some context?
Sawbones has quit [Remote host closed the connection]
<pontiki> just need to polish up the crystal ball...
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
hpoydar has quit [Ping timeout: 240 seconds]
rbennacer has joined #ruby
pwnz0r has quit [Remote host closed the connection]
jordsmi has quit [Quit: Connection closed for inactivity]
Sawbones has joined #ruby
lordkryss has quit [Quit: Connection closed for inactivity]
mengu has joined #ruby
mengu has joined #ruby
gsd has joined #ruby
amdbcg has quit [Ping timeout: 252 seconds]
<shevy> I knew it!
<shevy> you are a witch!
Guest56551 has quit [Quit: Leaving]
kblake has quit [Remote host closed the connection]
CorpusCallosum has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest56551 has joined #ruby
<pontiki> /liveosa!/
krisquigley has joined #ruby
growlove has quit [Remote host closed the connection]
mengu has quit [Ping timeout: 244 seconds]
Guest56551 has left #ruby [#ruby]
tus has quit []
krisquigley has quit [Ping timeout: 244 seconds]
Guest73598 has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
Guest73598 has quit [Remote host closed the connection]
<sweeper> wingardium...
jack_rabbit_ has joined #ruby
jack_rabbit_ has quit [Remote host closed the connection]
DavidDudson has joined #ruby
amdbcg has joined #ruby
jack_rabbit_ has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
jack_rabbit_ has quit [Remote host closed the connection]
nb_bez___ has quit [Quit: Connection closed for inactivity]
hobodave has quit [Quit: Computer has gone to sleep.]
RegulationD has joined #ruby
casshern2 has quit [Ping timeout: 246 seconds]
astrobu__ has joined #ruby
astrobun_ has quit [Ping timeout: 245 seconds]
Sawbones has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 264 seconds]
Feyn has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
isxek_ has joined #ruby
hyperjuice has joined #ruby
isxek has quit [Ping timeout: 250 seconds]
moblib has quit [Ping timeout: 246 seconds]
aswen has quit [Ping timeout: 248 seconds]
astrobu__ has quit [Ping timeout: 244 seconds]
greenbagels has quit [Read error: Connection reset by peer]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Phrohdoh has joined #ruby
Sawbones has joined #ruby
<Phrohdoh> Hey guys, found some substring code that I’m unfamiliar with. creator.sub /^@/, what does the /^@/ part mean?
<mozzarella> Phrohdoh: it's a regex
<Phrohdoh> Ah should have known.
djbkd has quit [Remote host closed the connection]
pontiki has quit [Quit: sleepy time, and still no cheese]
hyperjuice has quit [Remote host closed the connection]
<Phrohdoh> Looks to remove @ if it is the first char.
ponga has joined #ruby
Porfa has quit [Quit: porfa]
braincra- has quit [Quit: bye bye]
beneggett has joined #ruby
isxek_ has quit [Ping timeout: 272 seconds]
coderhs has joined #ruby
<Phrohdoh> Yep, thanks!
Phrohdoh has left #ruby [#ruby]
fenzil has joined #ruby
rebel has quit []
Peter___ has joined #ruby
beneggett has quit [Client Quit]
PNDPO has joined #ruby
DrShoggoth has quit [Quit: Leaving]
amystephen has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
hyperjui_ has joined #ruby
rbennacer has quit [Remote host closed the connection]
juanpablo__ has joined #ruby
mleung has quit [Quit: mleung]
aghalarp has joined #ruby
coderhs has quit [Client Quit]
Megtastique has quit []
hyperjui_ has quit [Remote host closed the connection]
hyperjuice has joined #ruby
lemur has joined #ruby
<tmoor> Hey guys, real noob question here, hoping someone can help out. In the following section of code, whats the best way to expose (view) the attributes and variables for 'tenant '?
<tmoor> # Create the new tenant
<tmoor> tenant = conn.create_tenant({
<tmoor> :description => description,
<tmoor> :enabled => true,
<tmoor> :name => name
<tmoor> })[:body]["tenant"]
serivichi has quit [Ping timeout: 245 seconds]
tosbourn has joined #ruby
juanpablo__ has quit [Ping timeout: 252 seconds]
phutchins has quit [Ping timeout: 240 seconds]
braincrash has joined #ruby
hyperjuice has quit [Ping timeout: 244 seconds]
tosbourn has quit [Ping timeout: 246 seconds]
StevenXL has quit [Ping timeout: 245 seconds]
vt102 has quit [Ping timeout: 276 seconds]
sinkensabe has joined #ruby
zzing has joined #ruby
Channel6 has joined #ruby
towski_ has quit [Remote host closed the connection]
User458764 has joined #ruby
aghalarp has quit [Read error: Connection reset by peer]
aghalarp has joined #ruby
sinkensabe has quit [Ping timeout: 256 seconds]
amystephen has quit [Quit: amystephen]
pdoherty has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
cjim has quit [Read error: Connection reset by peer]
cjim has joined #ruby
sivsushruth has quit [Ping timeout: 248 seconds]
hpoydar has joined #ruby
casadei has quit [Remote host closed the connection]
hpoydar has quit [Ping timeout: 265 seconds]
pdoherty has quit [Quit: Leaving]
casadei has joined #ruby
sent-hil has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
<sent-hil> is there a way to get result of invoking a rake task in another task?
kblake has joined #ruby
Zen-Zen has joined #ruby
Sawbones has quit [Remote host closed the connection]
tkuchiki has joined #ruby
<sent-hil> ex: i've a `checkpg` task that checks if postgres is up and running as a task, in 2nd task i want to get success/failure output from the original task and decide to continue or stop execution
musashi1 has quit [Ping timeout: 265 seconds]
cscheib has quit [Ping timeout: 246 seconds]
cscheib has joined #ruby
<Radar> sent-hil: move the code from the 1st task into a class that you can call from the 1st task and the 2nd task?
icebourg has joined #ruby
Sawbones has joined #ruby
Soda has joined #ruby
mrmagneto has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
DavidDudson has joined #ruby
<ebbflowgo> is it possible to use 'activerecord-jdbcpostgresql-adapter' without rails?
<sent-hil> Radar: tx
<sevenseacat> probably.
serivichi has joined #ruby
Peter___ has quit [Remote host closed the connection]
PNDPO has quit [Remote host closed the connection]
<sevenseacat> would it be trivial? likely not.
ndrei has quit [Ping timeout: 252 seconds]
markholmes has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
ndrei has joined #ruby
hobodave has joined #ruby
dothebarbwa has joined #ruby
iamjarvo has joined #ruby
serivichi has quit [Ping timeout: 244 seconds]
<sent-hil> running activerecord without rails is fairly easy
weaksauce has joined #ruby
kblake has quit [Ping timeout: 276 seconds]
d34th4ck3r has joined #ruby
fabrice31 has joined #ruby
arescorpio has quit [Excess Flood]
Guest65 has joined #ruby
djbkd has joined #ruby
ghr has joined #ruby
turtil has quit [Quit: WeeChat 1.1.1]
cjim has quit [Quit: (null)]
markfletcher has left #ruby [#ruby]
mistermocha has joined #ruby
mleung has joined #ruby
fabrice31 has quit [Ping timeout: 252 seconds]
dothebarbwa has left #ruby [#ruby]
MatthewsFace has joined #ruby
djbkd has quit [Ping timeout: 250 seconds]
ghr has quit [Ping timeout: 245 seconds]
fedexo has joined #ruby
fedexo has quit [Client Quit]
Morkel has joined #ruby
fedexo has joined #ruby
User458764 has joined #ruby
larissa has quit [Ping timeout: 245 seconds]
MXfive has joined #ruby
Joufflu has quit [Read error: Connection reset by peer]
astrobun_ has joined #ruby
MXfive has quit [Client Quit]
browndawg has joined #ruby
last_staff has joined #ruby
pjaspers has quit [Ping timeout: 276 seconds]
larissa has joined #ruby
pjaspers has joined #ruby
cscheib has quit [Ping timeout: 252 seconds]
michaeldeol has joined #ruby
krz has joined #ruby
hyperjuice has joined #ruby
bafbomb__ has quit [Ping timeout: 264 seconds]
astrobun_ has quit [Remote host closed the connection]
bafbomb_ has joined #ruby
cscheib has joined #ruby
mistermocha has quit []
d34th4ck3r has quit [Quit: zzz]
code_ has quit [Ping timeout: 246 seconds]
phutchins has joined #ruby
pjaspers has quit [Ping timeout: 250 seconds]
juanpaucar has joined #ruby
mleung has quit [Quit: mleung]
code_ has joined #ruby
Kricir has quit [Remote host closed the connection]
cscheib has quit [Ping timeout: 250 seconds]
blazes816 has joined #ruby
Oiketes has joined #ruby
juanpaucar has quit [Ping timeout: 252 seconds]
tcrypt has quit [Ping timeout: 244 seconds]
fenzil has quit [Ping timeout: 250 seconds]
phutchins has quit [Ping timeout: 256 seconds]
last_staff has quit [Read error: Connection reset by peer]
pjaspers has joined #ruby
blazes816 has quit [Ping timeout: 245 seconds]
kp666 has joined #ruby
sinkensabe has joined #ruby
bluOxigen has joined #ruby
spider-mario has quit [Ping timeout: 246 seconds]
cscheib has joined #ruby
Oiketes has quit [Quit: Page closed]
diegoviola has quit [Quit: WeeChat 1.1.1]
spider-mario has joined #ruby
zacts has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
sinkensabe has quit [Ping timeout: 264 seconds]
Eiam_ has joined #ruby
w4pm has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Eiam_ has quit [Client Quit]
krisquigley has joined #ruby
Guest65 has quit [Remote host closed the connection]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dfinninger has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
jerematic has joined #ruby
Dreamer3 has quit [Read error: Connection reset by peer]
krisquigley has quit [Ping timeout: 245 seconds]
jerematic has quit [Ping timeout: 250 seconds]
RegulationD has joined #ruby
freerobby has joined #ruby
freerobby has quit [Client Quit]
Soda has quit [Remote host closed the connection]
Mark-6ma has joined #ruby
mengu has joined #ruby
freerobby has joined #ruby
w4pm has left #ruby [#ruby]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RegulationD has quit [Ping timeout: 264 seconds]
TheGugaru has quit [Remote host closed the connection]
mengu has quit [Ping timeout: 265 seconds]
Channel6 has quit [Quit: Leaving]
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
agrinb has quit [Remote host closed the connection]
agrinb has joined #ruby
diegoviola has joined #ruby
max96at|off is now known as max96at
agrinb has quit [Ping timeout: 245 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ghr has joined #ruby
juanpablo__ has joined #ruby
max96at is now known as max96at|off
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> I still have not started to learn C seriously this year :(
tosbourn has joined #ruby
<shevy> I should never ever again make new year promises
freerobby has quit [Quit: Leaving.]
bafbomb_ has quit [Read error: Connection reset by peer]
opes has quit [Ping timeout: 264 seconds]
zz_Haiiro has quit [Ping timeout: 272 seconds]
pjaspers has quit [Ping timeout: 245 seconds]
larissa has quit [Ping timeout: 245 seconds]
jalcine has quit [Ping timeout: 245 seconds]
bafbomb_ has joined #ruby
davidcelis_ has quit [Ping timeout: 248 seconds]
<sevenseacat> my one programming-related new years resolution this year was to angular, and now it looks like im going to go ember instead
juanpablo__ has quit [Ping timeout: 250 seconds]
<shevy> oh you are a java cat
ghr has quit [Ping timeout: 256 seconds]
jalcine has joined #ruby
davidcelis has joined #ruby
davidcelis has joined #ruby
pjaspers has joined #ruby
opes has joined #ruby
larissa has joined #ruby
lkba has joined #ruby
zz_Haiiro has joined #ruby
longfeet has quit [Ping timeout: 245 seconds]
tosbourn has quit [Ping timeout: 256 seconds]
amclain has quit [Quit: Leaving]
icebourg has quit []
BTRE has quit [Quit: Leaving]
<agent_white> moin
sevvie has joined #ruby
michaeldeol has joined #ruby
straind has joined #ruby
aghalarp has quit [Max SendQ exceeded]
oo_ has quit [Remote host closed the connection]
a5i has quit [Quit: Connection closed for inactivity]
aghalarp has joined #ruby
sevvie has quit [Ping timeout: 240 seconds]
michaeldeol has quit [Client Quit]
<jokester> nop, C almost never changes
hpoydar has joined #ruby
x1337807x has joined #ruby
astrobun_ has joined #ruby
x1337807x has quit [Max SendQ exceeded]
yfeldblum has quit [Remote host closed the connection]
ramfjord has joined #ruby
x1337807x has joined #ruby
sinkensabe has joined #ruby
fella5s has quit [Read error: Connection reset by peer]
amdbcg has quit [Ping timeout: 240 seconds]
fella5s has joined #ruby
ChoiKyuSang has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
ChoiKyuSang has joined #ruby
djbkd has joined #ruby
agrinb has joined #ruby
astrobu__ has joined #ruby
astrobun_ has quit [Ping timeout: 256 seconds]
hpoydar has quit [Ping timeout: 265 seconds]
tkuchiki has quit [Read error: Connection reset by peer]
User458764 has joined #ruby
tkuchiki has joined #ruby
sinkensabe has quit [Ping timeout: 264 seconds]
Pharaoh2 has joined #ruby
blueOxigen has joined #ruby
agrinb has quit [Ping timeout: 245 seconds]
markholm_ has joined #ruby
bluOxigen has quit [Ping timeout: 256 seconds]
zorak8 has quit [Ping timeout: 256 seconds]
sigurding has joined #ruby
ponga has quit [Quit: Leaving...]
d34th4ck3r has joined #ruby
markholmes has quit [Ping timeout: 250 seconds]
agrinb has joined #ruby
colorisco has joined #ruby
Pharaoh2_ has quit [Ping timeout: 256 seconds]
BTRE has joined #ruby
Ellis has joined #ruby
<Ellis> i’m looking for a video or something that will give me a look at how rails uses ruby to do what it does. i have already ahartl’s tutorial
_maes_ has joined #ruby
fenzil has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
<sevenseacat> how rails uses ruby? what kind of information are you after?
Dopagod has joined #ruby
<Radar> Ellis: In the beginning, God created the Heavens and the Earth.
<Radar> tbh that's what it soudns like you want
krz has quit [Ping timeout: 264 seconds]
Ellis has quit [Quit: Ellis]
mostlybadfly has quit [Quit: Connection closed for inactivity]
<shevy> Then God created Rails.
pain has joined #ruby
apoplexy has quit [Ping timeout: 245 seconds]
tagrudev has joined #ruby
<colorisco> what's shit
duncannz has quit [Ping timeout: 250 seconds]
Sawbones has quit [Remote host closed the connection]
<pain> somebody explain the two colons' function in a statement such as"foo: :bar"
Ellis has joined #ruby
duncannz has joined #ruby
<sevenseacat> pain: if its in a hash, its the same as writing {:foo => :bar}, if that helps
neanderslob has quit [Ping timeout: 248 seconds]
<Ellis> like info on the ruby behind controllers or the ruby behind models et
<Ellis> etv
<Ellis> etc
<sevenseacat> Ellis: the code is all right there
<Ellis> where
Jiyuhen has quit [Read error: Connection reset by peer]
<pain> thanks a lot, very clear!
<Ellis> is there a rails doc or something
krz has joined #ruby
<Ellis> thank you brotha, i will start there
davispuh has quit [Remote host closed the connection]
<Ellis> (terminator voice) ill be back
mroach has quit [Read error: Connection reset by peer]
Sawbones has joined #ruby
<sevenseacat> Ellis: don't assume everyone is a 'brotha'.
<Ellis> i dont, i thought i checked once that u were a male
<sevenseacat> or a 'sista'. or whatever other colloquiallism you want to come up with.
fabrice31 has joined #ruby
<Ellis> it’s been a while so sorry if i’m confusing u with someone else
<Ellis> brotha as a floating signifier
<Nilium> I'm pretty sure sevenseacat is a seacat.
<sevenseacat> just a 'thank you' would have sufficed.
<shevy> of course
<shevy> australia is surrounded by water
<Nilium> And deadly jellyfish
<shevy> yeah, it has biological defence systems
<Ellis> brotha communicates kin ness, to differentiate you from stranger society
tkuchiki_ has joined #ruby
<Nilium> I'm going to go pass out and finish my beer now that I've finished my taxes.
<shevy> sista sevenseacat
tkuchiki has quit [Read error: Connection reset by peer]
<Nilium> Ellis: I think you need to just stop trying to defend it and say that you won't refer to people as things they'd rather not be referred to as.
<shevy> ma brotha Ellisa is in da housa
<Nilium> Being kind is a lot better than being stubborn.
<shevy> ma true words from ma brotha Nilium
dfinninger has quit [Remote host closed the connection]
neanderslob has joined #ruby
_cake has joined #ruby
<Nilium> I'm not your brother.
<Ellis> i refer to ppl the way the want to be referred to, never said otherwise
<shevy> ma sista Nilium
dfinninger has joined #ruby
<_cake> hey
<shevy> Ellis ok call me Duke Shevy!
<Ellis> i will refer to u as duke shevy
<shevy> yay!
<Ellis> damn principles
<shevy> I like Ellis... if only he would not be lured to the dark side of ruby ...
<shevy> the rails
<Ellis> l0l
Sawbones has quit [Remote host closed the connection]
<pain> Is rais that bad?
fabrice31 has quit [Ping timeout: 246 seconds]
<pain> rails
fedexo has quit [Ping timeout: 245 seconds]
iwishiwerearobot has joined #ruby
<sevenseacat> pain: errr, no
snath has quit [Ping timeout: 255 seconds]
<shevy> rails is pain and pain is rails
<Nilium> No, not really.
snath has joined #ruby
<pain> my company is using rails now
maletor has joined #ruby
BradPitt has joined #ruby
Sawbones_ has joined #ruby
riotjones has joined #ruby
<sevenseacat> good for them.
thumpba has quit [Ping timeout: 246 seconds]
dfinninger has quit [Ping timeout: 272 seconds]
yvemath has quit [Remote host closed the connection]
BLuEGoD has quit [Remote host closed the connection]
<Nilium> My company's switching to Git after using Mercurial for like 5 months.
<Ellis> why wouldn’t they use git in the first place
<Nilium> Because a past employee migrated everything to Mercurial and didn't really ask for feedback on it
<Nilium> He'd also never used Git.
<Ellis> what a bitch
frem has quit [Quit: Connection closed for inactivity]
<sevenseacat> git ftw
<Nilium> I think he was trying to do the right thing and had the right idea by going with a DVCS, he just didn't consider that Mercurial is dying.
mengu has joined #ruby
sigurding has quit [Quit: sigurding]
BLuEGoD has joined #ruby
fenzil has quit [Ping timeout: 256 seconds]
iwishiwerearobot has quit [Quit: Be back later ...]
<coderkevin> probably because mercurialhub.com is too long to type?
hyperjuice has quit [Remote host closed the connection]
BradPitt has quit [Ping timeout: 245 seconds]
<Nilium> Probably just because GitHub was the beginning of the end for the forges and whatnot.
Macaveli has joined #ruby
ghr has joined #ruby
<Nilium> Aside from that, we ended up moving away from hg for technical reasons
MatthewsFace has quit [Remote host closed the connection]
<Nilium> hg has arguably better data structures but worse tools, worse support, worse just about everything else.
<coderkevin> what about speed?
<Nilium> Slower, too.
<Nilium> Side-effect of it being Python.
<Nilium> Whereas git is mostly C.
<coderkevin> I thought it was mostly bash, haha
<Nilium> No, though I believe there's some perl in there.
<coderkevin> python is a beast...long startup time.
codecop has joined #ruby
codecop_ has joined #ruby
turtil has joined #ruby
<Nilium> Long relative to something or other. Either way, the worse tools part was what got us.
BradPitt has joined #ruby
RegulationD has joined #ruby
<coderkevin> tools are a popularity problem, I would guess.
<Nilium> Sort of, but it's also that Mercurial is just less flexible
andrewdotnich has joined #ruby
<coderkevin> I wouldn't know, I've rarely used it.
<Nilium> You can add stuff to it, but you can't change the way the basics work, and the basics are really strict
<sevenseacat> i remember many years ago looking to move away from svn to a dcvs, i looked at bzr, hg, and git.... that sentence has a lot of acronyms in it
juanpaucar has joined #ruby
phutchins has joined #ruby
<sevenseacat> *dvcs even
<coderkevin> I went from cvs, to svn, to git... seems like the most logical progression.
<sevenseacat> i picked bzr lol, then ended up moving to git when i changed to a job that used it
tkuchiki has joined #ruby
<Nilium> I used a self-hosted CVS once, nuked my repo by accident, used SVN, didn't work out, then after like 5 years of doing zip backups of code I used git and it made sense, so I used that.
tkuchiki_ has quit [Read error: Connection reset by peer]
<coderkevin> git feels pretty natural to svn users. You get the comfortable checkout and commit options, even though they behave completely different.
ghr has quit [Ping timeout: 252 seconds]
<Nilium> Mercurial is a lot like a strict Subversion, so I suspect that's why a lot of svn converts pick it
<sevenseacat> and honestly, not having to have an svn server, huge win.
Takle has joined #ruby
<coderkevin> At one point in time, I actually made a bunch of python scripts around svn to make it sort of distributed.
<sevenseacat> it can be tricky getting svn people used to having a staging area, though
<Nilium> That was another factor for me back when I started with git, just 'cause I had no real way of hosting an svn server.
<coderkevin> Where I could keep my own distro and sync it up using scripts.
<Nilium> Yeah, but the stage/index is so useful
<Nilium> And mercurial's lack of it drives me insane
<sevenseacat> ooh that would annoy me
<sevenseacat> i have to get more familiar with the options around stashing in git
<Nilium> Out of all the things I can't really live without, it's probably the index, just because the ability to build a commit is extremely useful
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
<coderkevin> That's another reason why Michael Hartl's tutorial is so great. It has people making local branches and using them from the beginning with git.
RegulationD has quit [Ping timeout: 245 seconds]
iteratorP has quit [Remote host closed the connection]
* sevenseacat bites tongue
Ellis has left #ruby [#ruby]
<coderkevin> sevenseacat: I usually only use stashing when I mess something up, like start editing files on the wrong branch.
bal has joined #ruby
<Nilium> Never heard of him, but I don't use local branches all that often. I'm stash-heavy, not branch-heavy.
<sevenseacat> i use stashing a lot when switching between multiple branches of work
<sevenseacat> and i tend to either stash too many changes, or not all of them
<Nilium> I do use them, since sometimes I need to keep stuff separate, but usually I just work in master in a fork of a repo.
<sevenseacat> and things get muddled
<coderkevin> I used to be too, but branches are more versatile.
phutchins has quit [Ping timeout: 255 seconds]
<Nilium> It's been nice since we set up GitLab at work.
<sevenseacat> my current and previous jobs both just use github
<Nilium> Drastic workflow improvement for me and a few other people because now we don't have to ssh into a server to create a new repo
<coderkevin> We use gerrit where I work.
sinkensabe has joined #ruby
juanpaucar has quit [Ping timeout: 264 seconds]
codecop_ has quit [Quit: Išeinu]
<Nilium> I almost went with gerrit but decided it was very un-git-like to repeatedly amend and push the same commit
<Nilium> I say "I" because I'm the one who set up GitLab
<coderkevin> Yeah, it's kind of strange...but lots of people squash PRs on github anyway, so isn't that basically the same thing?
Takle has quit [Ping timeout: 264 seconds]
<Nilium> Sort of, though I've been discouraging it at work
<coderkevin> I would agree.
<Nilium> Better to have the commits
<sevenseacat> i dont get the reasoning behind suqashinfg commits
<sevenseacat> squashing even
<coderkevin> tidyness of the tree? that's about all I can come up with.
<Nilium> I think it's part of the "it must always build" mentality
<sevenseacat> when i bisect and blame, i want to know exactly when something happened and why
<flughafen> moin sevenseacat certainty shevy
<Nilium> Which I don't really subscribe to. There's releases and then there's intermediate points in history.
<sevenseacat> not just 'it happened as this chunk of work'
Dopagod has quit [Quit: WeeChat 1.0]
Dopagod has joined #ruby
<sevenseacat> flughafen: buon pomeriggio
<coderkevin> At least with gerrit you deal with individual commits...nothing to squash.
<Nilium> If something comes in wholly-formed, it's probably with the line "initial commit"
<andrewdotnich> I don't really use squash - I do use fixup though, for fixing the mistakes as I realise them then rebasing so they never happened
rbennacer has joined #ruby
<Nilium> Fixup's great.
* sevenseacat looks up fixup
<Nilium> I don't think anyone views fixup as having the same purpose as squash, so I've never really heard of it being used the same
<flughafen> sevenseacat: araraar
<andrewdotnich> clue's in the name, I guess
pantsu has joined #ruby
agrinb has quit [Remote host closed the connection]
<Nilium> fixup is basically squash in git-rebase --interactive, but it discards the commit message.
<coderkevin> Oh, so fixup is just like an amend?
pantsu is now known as Guest53782
<Nilium> The handy thing is git commit --fixup
MatthewsFace has joined #ruby
<Nilium> Since then you can just do a rebase and line things up
User458764 has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
lanemeyer has quit [Ping timeout: 256 seconds]
Macaveli has joined #ruby
rbennacer has quit [Ping timeout: 244 seconds]
sigurding has joined #ruby
Macaveli has quit [Max SendQ exceeded]
markholm_ is now known as markholmes
Macaveli has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
iteratorP has joined #ruby
ruboto has quit [Remote host closed the connection]
<coderkevin> Nice chat, hitting the sack now, catch you later.
Macaveli has quit [Client Quit]
sevvie has joined #ruby
User458764 has quit [Client Quit]
krisquigley has joined #ruby
MyMind has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
Macaveli has joined #ruby
Pisuke has joined #ruby
krisquigley has quit [Ping timeout: 252 seconds]
yfeldblu_ has joined #ruby
msnyon has quit [Ping timeout: 248 seconds]
yvemath has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
fabrice31 has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
Asher has quit [Quit: Leaving.]
<shevy> Nice sack, hitting the chat now, catch you now.
MatthewsFace has quit [Remote host closed the connection]
Guest40258 has joined #ruby
Guest40258 has quit [Client Quit]
zzing has quit [Quit: Textual IRC Client: www.textualapp.com]
CorpusCallosum has joined #ruby
aghalarp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
emocakes has joined #ruby
MatthewsFace has joined #ruby
Sawbones_ has quit [Remote host closed the connection]
pain has quit [Quit: Page closed]
yfeldblum has joined #ruby
djellemah_ has joined #ruby
MatthewsFace has quit [Ping timeout: 246 seconds]
yfeldblu_ has quit [Ping timeout: 246 seconds]
eshiffob has joined #ruby
hmsimha has quit [Ping timeout: 252 seconds]
djellemah has quit [Ping timeout: 246 seconds]
lxsameer has joined #ruby
lxsameer has joined #ruby
zeroasterix has left #ruby ["Leaving"]
cefkamcau has quit [Ping timeout: 240 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
sevvie has quit [Ping timeout: 245 seconds]
juanpablo__ has joined #ruby
krz has quit [Ping timeout: 265 seconds]
chinmay_dd has joined #ruby
SpicyMagpie has joined #ruby
juanpablo__ has quit [Ping timeout: 245 seconds]
bruno- has joined #ruby
Mark-6ma has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
khebbie has joined #ruby
ZeeNoodleyGamer has joined #ruby
ghr has joined #ruby
spider-mario has quit [Remote host closed the connection]
Takle has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
astrobu__ has quit [Remote host closed the connection]
bluOxigen has joined #ruby
Mark-6ma has joined #ruby
andrewdotnich has quit [Quit: Page closed]
sevvie has joined #ruby
blueOxigen has quit [Ping timeout: 264 seconds]
astrobun_ has joined #ruby
ghr has quit [Ping timeout: 252 seconds]
Hounddog has joined #ruby
Takle has quit [Ping timeout: 272 seconds]
djbkd has quit []
BTRE has quit [Quit: Leaving]
<flughafen> shevy: hurr durr you're a sheep?
musashi1 has joined #ruby
Takle has joined #ruby
sevvie has quit [Remote host closed the connection]
neanderslob__ has joined #ruby
iwishiwerearobot has joined #ruby
sevvie has joined #ruby
hpoydar has joined #ruby
jason^ has quit [Ping timeout: 255 seconds]
aganov has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djellemah_ is now known as djellemah
browndawg has quit [Ping timeout: 250 seconds]
CorpusCallosum has quit [Quit: Textual IRC Client: www.textualapp.com]
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hpoydar has quit [Ping timeout: 256 seconds]
krz has joined #ruby
CorpusCallosum has joined #ruby
Spami has joined #ruby
sevvie has quit [Remote host closed the connection]
sevvie has joined #ruby
Mark-6ma has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bayed has joined #ruby
jheg has joined #ruby
lemur has quit [Remote host closed the connection]
browndawg has joined #ruby
horsecowdog has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 255 seconds]
hs366 has joined #ruby
sevvie has quit [Remote host closed the connection]
jeromelanteri has quit [Ping timeout: 245 seconds]
terlar has joined #ruby
blackmesa has joined #ruby
sevvie has joined #ruby
MatthewsFace has joined #ruby
msgodf has joined #ruby
ahmetkapikiran has joined #ruby
avril14th has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
Aswebb_ has joined #ruby
MatthewsFace has quit [Ping timeout: 244 seconds]
jheg has quit [Quit: jheg]
<undeadaedra> shevy: beurre
bluOxigen has quit [Ping timeout: 264 seconds]
AlphaTech is now known as zz_AlphaTech
ki0 has joined #ruby
bluOxigen has joined #ruby
craigp has joined #ruby
<hs366> Morning!
Vivex_ has quit [Ping timeout: 244 seconds]
ZeeNoodleyGamer has quit [Quit: Leaving]
avril14th has joined #ruby
<hs366> >"Ruby is the best programming language".split(' ').sort
iteratorP has quit [Remote host closed the connection]
CloCkWeRX has left #ruby [#ruby]
<undeadaedra> it's >>, and use your own irb/pry if it's for personal tests
allenn has joined #ruby
<hs366> oh thx undeadaedra
<hs366> >>"Ruby is the best programming language".split(' ').sort
tosbourn has joined #ruby
<sevenseacat> lol
<hs366> i wanted to ask why it's not sorting in the alphabetic order
RegulationD has joined #ruby
<undeadaedra> why is "Ruby" not in the good order ?
<sevenseacat> what order is it sorting in?
<undeadaedra> >> %(Ruby is the best programming language).split(%( )).sort
<toretore> >> "R" <=> "r"
<toretore> is no work
<undeadaedra> eh, bot is quiet
juanpaucar has joined #ruby
<hs366> ok i'll try in irb
<hs366> ["Ruby", "best", "is", "language", "programming", "the"]
<sevenseacat> looks legit
<undeadaedra> looks normal to be
<hs366> ooh becuse i used R capital
<hs366> i c
anaeem1_ has joined #ruby
<hs366> thx !
<hs366> as toretore mentioned it before
<undeadaedra> there should be a way of sorting case-insensitive
hanmac has joined #ruby
<hs366> downcase
demiurgen has joined #ruby
craigp has quit [Remote host closed the connection]
tosbourn has quit [Ping timeout: 272 seconds]
<sevenseacat> there probably is, but i dont see much of a use case for it
RegulationD has quit [Ping timeout: 256 seconds]
sigurding has quit [Quit: sigurding]
craigp has joined #ruby
Echoes-- has quit [Read error: Connection reset by peer]
universa1 is now known as universaL
<undeadaedra> is that a pun
universaL is now known as universa1
Echoes-- has joined #ruby
krz has quit [Ping timeout: 256 seconds]
<hs366> pun ?
juanpaucar has quit [Ping timeout: 265 seconds]
marr has joined #ruby
ghr has joined #ruby
dumdedum has joined #ruby
tesuji has joined #ruby
terlar has quit [Quit: WeeChat 1.1.1]
DerisiveLogic has quit [Remote host closed the connection]
livathinos has joined #ruby
terlar has joined #ruby
craigp has quit [Ping timeout: 256 seconds]
blackmesa has quit [Ping timeout: 264 seconds]
craigp has joined #ruby
mengu has quit [Remote host closed the connection]
jenrzzz has joined #ruby
apoplexy has joined #ruby
sent-hil has quit [Quit: Connection closed for inactivity]
krisquigley has joined #ruby
dumdedum has quit [Ping timeout: 246 seconds]
sigurding has joined #ruby
ghr has quit [Ping timeout: 252 seconds]
Takle has joined #ruby
reinaldob has joined #ruby
ki0 has quit [Remote host closed the connection]
rocknrollmarc has joined #ruby
musashi1 has quit [Ping timeout: 265 seconds]
jason^ has joined #ruby
demiurgen has quit [Quit: Leaving.]
<avril14th> hello
<undeadaedra> 5 days
craigp has quit [Remote host closed the connection]
ghr has joined #ruby
steven43126 has joined #ruby
reinaldob has quit [Ping timeout: 265 seconds]
mikecmpbll has joined #ruby
ki0 has joined #ruby
<hs366> can i have a simple example of comparable mixin <=> ?
chthon has joined #ruby
einarj has joined #ruby
<undeadaedra> ?
<hs366> oh find one
<hs366> lol
rocknrollmarc has quit [Ping timeout: 250 seconds]
<hs366> funny name 'spaceship' operator :))
<diegoviola> if you can redefine methods and monkeypatch pretty much anything in ruby, you can end up extending and changing the whole language pretty much, no?
<diegoviola> not saying I would do that, I won't
<sevenseacat> apart from its keywords, probably.
Mark-6ma has joined #ruby
ponga has joined #ruby
dumdedum has joined #ruby
musashi1 has joined #ruby
havenwood has quit [Remote host closed the connection]
<jhass> and less things are keywords than one might think
camilasan has quit [Remote host closed the connection]
<kq_away_> Can you still change meaning of the whitespace (as displayed in the famous wat presentation)?
c0m0 has joined #ruby
khebbie has quit [Quit: Textual IRC Client: www.textualapp.com]
jimms has joined #ruby
User458764 has joined #ruby
camilasan has joined #ruby
echelon has quit [Quit: ZNC - http://znc.in]
crumb has joined #ruby
iamninja has joined #ruby
<jhass> you mean the bare words method missing hack?
<kq_away_> yeah
jeromelanteri has joined #ruby
<jhass> >> def method_missing(*args); args.join(" "); end; sure why not
<jhass> ah, right, bot gone
craigp has joined #ruby
sevvie has quit [Remote host closed the connection]
sevvie has joined #ruby
iamninja_ has quit [Ping timeout: 276 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<kq_away_> I can't think of a legit usage of this "feature" though
<kq_away_> it's a nifty trick for a presentation
ruboto has joined #ruby
<kq_away_> but looks like a horrible idea in real code
khebbie has joined #ruby
<canton7> that's exactly what it is
ahmetkapikiran has quit [Quit: ahmetkapikiran]
<canton7> method_missing is useful sometimes, but not in that context :P
joonty has joined #ruby
ponga has quit [Remote host closed the connection]
chinmay_dd has quit [Quit: Leaving]
Takle has quit [Remote host closed the connection]
browndawg has quit [Quit: Leaving.]
ponga has joined #ruby
browndawg has joined #ruby
<apeiros> >> def method_missing(*args); args.join(" "); end; sure why not
<ruboto> apeiros # => /tmp/execpad-2edfaa3859ab/source-2edfaa3859ab:2: syntax error, unexpected '\n', expecting '(' (https://eval.in/310482)
browndawg has quit [Client Quit]
<apeiros> >> def method_missing(*args); args.join(" "); end; sure why nnot
<ruboto> apeiros # => stack level too deep (SystemStackError) ...check link for more (https://eval.in/310483)
universa1 is now known as universaL
LJT has joined #ruby
tkuchiki_ has joined #ruby
iwishiwerearobot has quit [Ping timeout: 264 seconds]
tkuchiki has quit [Read error: Connection reset by peer]
iwishiwerearobot has joined #ruby
browndawg has joined #ruby
diegoviola has quit [Remote host closed the connection]
psudoze has quit [Ping timeout: 245 seconds]
<jhass> dunno, it was something like that
User458764 has joined #ruby
juanpablo__ has joined #ruby
reset has joined #ruby
reset has quit [Remote host closed the connection]
<hanmac> apeiros: like that?
<hanmac> >> def self.method_missing(*args); args.join(" "); end; sure why nnot
<hanmac> >> def self.method_missing(*args); args.join(" "); end; sure why nnot
<ruboto> hanmac # => "sure why nnot" (https://eval.in/310485)
ponga has quit [Ping timeout: 272 seconds]
<hanmac> >> def self.method_missing(m,*args); [m,args]; end; sure why nnot
<ruboto> hanmac # => [:sure, [[:why, [[:nnot, []]]]]] (https://eval.in/310486)
juanpablo__ has quit [Ping timeout: 255 seconds]
<kq_away_> there was no self in that presentation
Takle has joined #ruby
CustosL1m3n has quit [Ping timeout: 264 seconds]
jimms has quit [Remote host closed the connection]
ahmetkapikiran has joined #ruby
<kq_away_> this also seems to put everthing in a new line, interesting
<canton7> you're 'puts'-ing each word as it's encountered
<canton7> 'puts' adds a newline
<kq_away_> oh
<kq_away_> what's the point of that join(' ') then?
Asher has joined #ruby
govg has quit [Ping timeout: 252 seconds]
<canton7> in your example? none
<kq_away_> :)
rdark has joined #ruby
<kq_away_> and in hanmac's example?
<canton7> he doesn't have 'puts' inside method_missing
<kq_away_> well, yeah
<canton7> so his method_missing returns a string, rather than printing something
<kq_away_> but I'm asking about the join
<kq_away_> mhm
browndawg has quit [Ping timeout: 246 seconds]
jeromelanteri has quit [Read error: Connection reset by peer]
<kq_away_> oh
<kq_away_> it's a little clearer now
<kq_away_> thanks
lkba has quit [Ping timeout: 276 seconds]
markholmes has quit [Quit: So it goes.]
banister has joined #ruby
workmad3 has joined #ruby
joonty has quit [Quit: joonty]
leafybasil has quit [Remote host closed the connection]
phutchins has joined #ruby
Lloyd has joined #ruby
joonty has joined #ruby
joonty has quit [Client Quit]
browndawg has joined #ruby
Mark-6ma has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ponga has joined #ruby
phutchins has quit [Ping timeout: 245 seconds]
pico-pete has quit [Ping timeout: 252 seconds]
teddyp1cker has joined #ruby
hpoydar has joined #ruby
joonty has joined #ruby
pico-pete has joined #ruby
lolmaus has joined #ruby
krz has joined #ruby
djbkd has joined #ruby
Mark-6ma has joined #ruby
DEA7TH has joined #ruby
Aswebb_ has quit [Remote host closed the connection]
hpoydar has quit [Ping timeout: 246 seconds]
ramfjord has joined #ruby
ramfjord has quit [Client Quit]
sevensea_ has joined #ruby
ponga has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 252 seconds]
ponga has joined #ruby
withnale_ has joined #ruby
Morkel has quit [Quit: Morkel]
sevenseacat has quit [Ping timeout: 272 seconds]
dumdedum has quit [Ping timeout: 246 seconds]
sevensea_ is now known as sevenseacat
astrobun_ has quit [Remote host closed the connection]
quimrstorres has joined #ruby
leafybasil has joined #ruby
quimrstorres has quit [Remote host closed the connection]
yh has joined #ruby
CustosL1m3n has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
Mark-6ma has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
astrobun_ has joined #ruby
lkba has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
tvw has joined #ruby
nettoweb has joined #ruby
ponga has quit [Ping timeout: 264 seconds]
ArchRogem has joined #ruby
bigmac_ has joined #ruby
polysics has joined #ruby
horsecowdog has joined #ruby
quimrstorres has joined #ruby
bigmac__ has quit [Ping timeout: 245 seconds]
krz has quit [Ping timeout: 252 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
<colorisco> does diaspora project have some code on crystal?
lordkryss has joined #ruby
horsecowdog has quit [Ping timeout: 245 seconds]
krz has joined #ruby
DavidDudson has joined #ruby
chthon has quit [Quit: Ex-Chat]
dumdedum has joined #ruby
vtunka has joined #ruby
MatthewsFace has joined #ruby
sevvie has quit [Ping timeout: 264 seconds]
Zai00 has joined #ruby
MatthewsFace has quit [Ping timeout: 252 seconds]
muzik has joined #ruby
CustosL1m3n has quit [Ping timeout: 250 seconds]
tkuchiki_ has quit [Remote host closed the connection]
sevvie has joined #ruby
tkuchiki has joined #ruby
kyrylo has quit [Ping timeout: 250 seconds]
Abhijit has joined #ruby
khebbie has quit [Quit: Textual IRC Client: www.textualapp.com]
khebbie has joined #ruby
RegulationD has joined #ruby
juanpaucar has joined #ruby
bim has joined #ruby
khebbie has quit [Remote host closed the connection]
bim has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby
Abhijit has left #ruby ["Bye."]
juanpaucar has quit [Ping timeout: 248 seconds]
khebbie has joined #ruby
blackmesa has joined #ruby
nfk has joined #ruby
vivekananda has joined #ruby
bruno- has quit [Ping timeout: 248 seconds]
muzik has left #ruby ["Textual IRC Client: www.textualapp.com"]
CustosL1m3n has joined #ruby
sevvie has quit [Ping timeout: 244 seconds]
sevvie has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
craigp has quit [Remote host closed the connection]
SpicyMagpie has quit [Quit: Leaving]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
AnxiousOnion has quit [Read error: Connection reset by peer]
gawaine has joined #ruby
ponga has joined #ruby
DavidDudson has joined #ruby
lkba_ has joined #ruby
oo_ has quit [Remote host closed the connection]
browndawg has quit [Ping timeout: 244 seconds]
roolo has joined #ruby
neanderslob__ has quit [Read error: Connection reset by peer]
lkba has quit [Ping timeout: 276 seconds]
serivich has joined #ruby
bal has quit [Ping timeout: 252 seconds]
oo_ has joined #ruby
joonty has quit [Quit: joonty]
craigp has joined #ruby
joonty has joined #ruby
Lloyd has quit [Quit: Bye]
sevvie has quit [Ping timeout: 256 seconds]
Takle has quit [Remote host closed the connection]
Lloyd has joined #ruby
CustosL1m3n has quit [Ping timeout: 245 seconds]
Lloyd is now known as Lloyd
lethosor is now known as lethosor|away
sevvie has joined #ruby
oo_ has quit [Remote host closed the connection]
arup_r has joined #ruby
reinaldob has joined #ruby
Takle has joined #ruby
codecop has quit [Remote host closed the connection]
rocknrollmarc has joined #ruby
sevenseacat has quit [Quit: Me dun like you no more.]
rocknrollmarc has quit [Max SendQ exceeded]
sevvie has quit [Ping timeout: 244 seconds]
rocknrollmarc has joined #ruby
bal has joined #ruby
Zai00 has quit [Quit: Zai00]
oo_ has joined #ruby
Vivex has joined #ruby
Hounddog_ has joined #ruby
polysics has quit [Remote host closed the connection]
Hounddog has quit [Ping timeout: 272 seconds]
pagios has quit [Excess Flood]
mostlybadfly has joined #ruby
browndawg has joined #ruby
twistedpixels has quit [Ping timeout: 276 seconds]
livathinos has quit [Ping timeout: 250 seconds]
oo_ has quit [Remote host closed the connection]
leafybas_ has joined #ruby
Axy has joined #ruby
sigurding has quit [Quit: sigurding]
Mia has quit [Read error: Connection reset by peer]
juanpablo__ has joined #ruby
twistedpixels has joined #ruby
twistedpixels has quit [Changing host]
twistedpixels has joined #ruby
oo_ has joined #ruby
pagios has joined #ruby
leafybasil has quit [Ping timeout: 250 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vtunka has quit [Quit: Leaving]
juanpablo__ has quit [Ping timeout: 248 seconds]
sevvie has joined #ruby
CustosL1m3n has joined #ruby
Hijiri has quit [Ping timeout: 245 seconds]
mathie has quit [Quit: Quitting...]
mathie has joined #ruby
Hijiri has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
polysics has joined #ruby
tesuji has quit [Ping timeout: 245 seconds]
allenn has quit [Remote host closed the connection]
fabrice31 has quit [Remote host closed the connection]
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
allenn has joined #ruby
Advocation has joined #ruby
allenn has quit [Remote host closed the connection]
allenn has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
livathinos has joined #ruby
User458764 has joined #ruby
allenn has quit [Remote host closed the connection]
allenn has joined #ruby
rsavage has joined #ruby
claw has joined #ruby
BTRE has joined #ruby
hpoydar has joined #ruby
sameerynho has joined #ruby
allenn has quit [Remote host closed the connection]
captainaz has joined #ruby
fabrice31 has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
d34th4ck3r has left #ruby [#ruby]
fabrice31 has quit [Read error: No route to host]
lxsameer has quit [Ping timeout: 256 seconds]
fabrice31 has joined #ruby
basiclaser has joined #ruby
hpoydar has quit [Ping timeout: 250 seconds]
ndrei has quit [Ping timeout: 256 seconds]
<undeadaedra> omg
<captainaz> anyone use ruby-china.org? :-)
<undeadaedra> rspec html output is… ugly
ndrei has joined #ruby
<captainaz> agree
a5i has joined #ruby
gfawcettpq has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
<captainaz> bye and thanks
captainaz has left #ruby [#ruby]
Morkel has joined #ruby
aswen has joined #ruby
LJT has quit [Remote host closed the connection]
stef204 has joined #ruby
User458764 has joined #ruby
fgjfjs has joined #ruby
joonty has quit [Quit: joonty]
ahmetkapikiran has joined #ruby
horsecowdog has joined #ruby
sigurding has joined #ruby
bim has joined #ruby
allenn has joined #ruby
LJT has joined #ruby
<jokke> what would be the "ruby way" to find the item in an array with the most occurences?
jefus__ has joined #ruby
joonty has joined #ruby
rocknrollmarc has quit [Ping timeout: 265 seconds]
horsecowdog has quit [Ping timeout: 255 seconds]
<canton7> >> a = [1, 2, 2, 3, 3, 3]; p a.max_by{ |x| a.count(x) }
<ruboto> canton7 # => 3 ...check link for more (https://eval.in/310577)
<canton7> that's short, but not terribly efficient
<undeadaedra> that's way more efficient code wise than what I was going to do…
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
astrobun_ has quit [Remote host closed the connection]
<jokke> canton7: mh
<jokke> ok
<workmad3> undeadaedra: really? because it looks like O(n^2) to me, so not very efficient :)
<jokke> it's a pretty large array...
<mikecmpbll> >> [1, 2, 2, 3, 3, 3].group_by{|e| e}.values.max_by(&:size).first
<ruboto> mikecmpbll # => 3 (https://eval.in/310578)
<mikecmpbll> \o/
<canton7> >> [1, 2, 2, 3, 3, 3].each_with_object(Hash.new{ |x,k| x[k] = 0 }){ |x,s| s[x] += 1 }.max_by{ |k,v| v }[0]
<ruboto> canton7 # => 3 (https://eval.in/310579)
vtunka has joined #ruby
<undeadaedra> >> [ 3, 1, 3, 2, 3, 2 ].group_by { |e| e }.map { |k, v| [ k, v.count ] }.sort { |a, b| b[0] <=> a[0] }[0][0]
<ruboto> undeadaedra # => 3 (https://eval.in/310580)
<mikecmpbll> who wins? you decide.
<jokke> first
jefus_ has quit [Ping timeout: 276 seconds]
<jokke> at least it's elegant
<mikecmpbll> ok, you no longer have the power to decide
<canton7> but if it's a large array, I wouldn't recommend it
<mikecmpbll> :D
<jokke> you'd recommend group_by?
<canton7> I *think* my second one is the most efficient
<canton7> since it's not creating lots of sub-arrays
<hanmac> canton7: hm maybe better might be, because you dont need to all max_by for all elements
<workmad3> jokke: I'd go with the group_by, yes
<hanmac> >> a = [1, 2, 2, 3, 3, 3]; a.uniq.max_by{ |x| a.count(x) }
<ruboto> hanmac # => 3 (https://eval.in/310581)
<jokke> hm ok
<workmad3> canton7: oh yeah, that's a more efficient bucket-sort than the group_by :)
<jokke> hanmac: that's great!
<jokke> because i'll have only very few different items
<jokke> at least i expect that
<Mon_Ouie> You don't have to iterate over the hash table you're building separately though, you can just keep track of the current maximum in a variable and change it if the value you just increased is larger than the one associated to the maximum
<canton7> true
<jokke> true
<hanmac> workmad3: i dont know which version, but in my version you can replace group_by { |e| e } with group_by(&:itself)
<hanmac> >> a = [1, 2, 2, 3, 3, 3]; a.group_by(&:itself).max_by(&:last).first
<ruboto> hanmac # => 3 (https://eval.in/310582)
Juanchito has joined #ruby
<mikecmpbll> WHAT
<mikecmpbll> itself has just blown my mind.
<undeadaedra> so many ways
<workmad3> hanmac: canton's point is that you can short-circuit the creation of all the subararys in a group_by by using a hash of value => count instead
<undeadaedra> >> a = {}; [ 3, 1, 3, 2, 3, 2 ].each { |e| a[e] = (a[e] || 0) + 1 }; a.max_by { |k, v| v }[1]
<ruboto> undeadaedra # => 3 (https://eval.in/310584)
<mikecmpbll> crap benchmark is crap: https://gist.github.com/mikecmpbll/45103c300279e929f00d
<mikecmpbll> says mine's faster tho?
<undeadaedra> should also look memory wise
<canton7> >> h = Hash.new(0); max_val = nil; max_count = 0; [1, 2, 2, 3, 3, 3].each{ |x| count = h[x] + 1; h[x] = count; if count > max_count; max_count = count; max_val = x; end }; p max_val
<ruboto> canton7 # => 3 ...check link for more (https://eval.in/310585)
<canton7> long and efficient :P
<undeadaedra> because if the method requires copying the whole array, it's not very memory-efficient, especially for large arrays
zacts has joined #ruby
<canton7> mikecmpbll, I'm not surprised mine lost there. Make the array 100 elements or so
craigp has quit [Remote host closed the connection]
bim has quit [Remote host closed the connection]
<undeadaedra> jokke: congrats on you question which agitated the whole channel
<undeadaedra> your*
<jokke> :)
* canton7 thinks this is fun
<undeadaedra> it is
Sgeo_ has joined #ruby
davidhq has joined #ruby
gawaine has quit [Quit: Leaving]
Sgeo has quit [Ping timeout: 250 seconds]
<mikecmpbll> woops, should've probably lowered the benchmark iterations from 100,000 when i upped the array to 1000 long
<mikecmpbll> :p
ndrei has quit [Ping timeout: 256 seconds]
<canton7> heh
<undeadaedra> hello, huge load
<mikecmpbll> mine's still a bit quicker with 1000 elements
* canton7 is actually surprised
<mikecmpbll> 9.08s vs 11.59s for 10,000 iterations
craigp has joined #ruby
<undeadaedra> We should have a way to automatically do these benchmarks :)
<canton7> how about my final attempt?
<canton7> still hash-based, so may still be slower
<mikecmpbll> sec
<canton7> how many diffferent values does the input array have, too?
<mikecmpbll> 999
leafybas_ has quit [Remote host closed the connection]
<mikecmpbll> 1000*
<canton7> so 1000 unique elements?
<canton7> or are there some repeated elements?
<mikecmpbll> well, it was choosing them randomly
<mikecmpbll> one sec
tkuchiki has quit [Ping timeout: 264 seconds]
<mikecmpbll> 629 uniq
leafybasil has joined #ruby
<workmad3> canton7: https://gist.github.com/workmad3/e81cc4e371950bd8951e does show group_by as a bit faster...
<canton7> hmmm, curious
<workmad3> canton7: or at least overlapping with your long one ;)
jottr_ has joined #ruby
<workmad3> canton7: super-long one has had run-times from 0.42s to 0.49s on my machine, and group_by has had run-times from 0.42 to 0.46
<canton7> so finding the max in the hash is surprisingly expensive
tosbourn has joined #ruby
<canton7> and group_by is surprisingly cheap, despire the need to create sub-arrays
<canton7> *despite
<canton7> case closed: go with group_by!
Pupeno has joined #ruby
bim has joined #ruby
<workmad3> canton7: if I was wanting to be honest, I'd also benchmark memory use ;)
RegulationD has joined #ruby
<canton7> no-one cased about memory :P
<canton7> *cares
<workmad3> canton7: jokke might :P
<canton7> he's using ruby.... :P
<workmad3> :D
knikolov has quit [Quit: WeeChat 1.2-dev]
wald0 has joined #ruby
juanpaucar has joined #ruby
roolo_ has joined #ruby
<workmad3> canton7: memory use could also be important if it's large enough to require ruby to malloc more space from the system because it needs to increase its heap ;)
<canton7> that would show up as a speed cut, though?
tosbourn has quit [Ping timeout: 244 seconds]
apoplexy has quit [Ping timeout: 264 seconds]
einarj has quit [Read error: Connection reset by peer]
roolo has quit [Ping timeout: 245 seconds]
<workmad3> canton7: only if you managed to replicate it in a benchmark (which is unlikely)
einarj has joined #ruby
<canton7> true
RegulationD has quit [Ping timeout: 246 seconds]
<undeadaedra> allocate ALL the data!
LJT has quit [Ping timeout: 256 seconds]
juanpaucar has quit [Ping timeout: 248 seconds]
oo_ has quit [Remote host closed the connection]
User458764 has joined #ruby
mengu has joined #ruby
Zai00 has joined #ruby
LJT has joined #ruby
sevvie has quit [Ping timeout: 256 seconds]
ldnunes has joined #ruby
labria has joined #ruby
Oreolek has joined #ruby
ponga has quit [Remote host closed the connection]
<Oreolek> good morning! anyone can help me with parallel gem and mysql? http://stackoverflow.com/questions/29529566/parallel-mysql-i-o-in-ruby
Aswebb_ has joined #ruby
ponga has joined #ruby
bim has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
kobain has joined #ruby
Takle has quit [Remote host closed the connection]
kyrylo has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
Guest53782 has quit [Ping timeout: 252 seconds]
lektrik has quit [Ping timeout: 272 seconds]
hpoydar has joined #ruby
duncannz has quit [Ping timeout: 244 seconds]
vt102 has joined #ruby
blotchy has joined #ruby
cpt_yossarian has quit [Ping timeout: 252 seconds]
<jhass> Oreolek: do you want to use processes or threads`
<jhass> ?
jottr_ has quit [Ping timeout: 246 seconds]
musashi1 has quit [Ping timeout: 272 seconds]
<Oreolek> jhass, i haven't decided yet but that's for dedicated server so I think processes would be better
hpoydar has quit [Ping timeout: 272 seconds]
pika_pika has joined #ruby
<jhass> try to connect to the db inside the fork then
<jhass> separate connections will perform better anyway
govg has joined #ruby
LJT has quit [Quit: Sleeping...]
jottr_ has joined #ruby
bim has joined #ruby
pico-pete has quit []
hectortrope has joined #ruby
<Oreolek> doesn't work
<Oreolek> no _dump_data is defined for class Mysql
<Oreolek> if I try to place real_connect inside the loop - Parallel can't serialize it
<jhass> the result I guess
<jhass> return something it can serialize
<Oreolek> and with the basic Ruby threads I can't start <N> of them
<jhass> like nil or whatever
<jhass> you can't because?
ahmetkapikiran has joined #ruby
<Oreolek> i don't know how - answer to both questions :-)
<Oreolek> i mean, it's not like 3.times do thread.new
<jhass> >> [1, 2, 3].map { nil }
<ruboto> jhass # => [nil, nil, nil] (https://eval.in/310653)
<jhass> parallel has an each method too
<jhass> not sure why you call map if you don't care about the result
<Oreolek> doesn't it do the same loop?
<Oreolek> oh
CustosL1m3n has quit [Remote host closed the connection]
CustosLimen has joined #ruby
<jhass> and to start n threads you just start n threads in a basic loop
<Oreolek> okay... do you know something about "Lost connection to MySQL server during query"
LJT has joined #ruby
<Oreolek> ?
<jhass> not really
doodlehaus has joined #ruby
<jhass> but I didn't know anything about parallel either
<Oreolek> thanks anyway
<jhass> you might want to show your current code anyway is what I wanted to say with that
labria has left #ruby [#ruby]
turtil has quit [Ping timeout: 252 seconds]
joonty has quit [Quit: joonty]
bim has quit [Remote host closed the connection]
bim has joined #ruby
yh has quit [Ping timeout: 250 seconds]
davedev24_ has joined #ruby
quimrstorres has quit [Remote host closed the connection]
maximski has joined #ruby
LJT has quit [Client Quit]
Morkel has quit [Quit: Morkel]
pico-pete has joined #ruby
juanpablo__ has joined #ruby
maximski has quit [Max SendQ exceeded]
maximski has joined #ruby
RegulationD has joined #ruby
doodlehaus has quit [Remote host closed the connection]
bruno- has joined #ruby
<jhass> then not
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
khebbie has joined #ruby
tees is now known as int_bats
juanpablo__ has quit [Ping timeout: 276 seconds]
bruno- has quit [Ping timeout: 256 seconds]
ChoiKyuSang has quit [Ping timeout: 265 seconds]
banister has joined #ruby
maasha has joined #ruby
vtunka has quit [Quit: Leaving]
<dopie> Good morning all
ismaelga has joined #ruby
ismaelga has quit [Client Quit]
ChoiKyuSang has joined #ruby
<dopie> hey jhass
<maasha> I am doing something wrong here, how can it be saved? https://gist.github.com/maasha/b69be03a6ddbdd9d2e66
<maasha> .oO(There is no 'all' in the nick list)
ahmetkapikiran has quit [Ping timeout: 248 seconds]
<jhass> maasha: include adds a modules methods as instance methods, you call it as a class method
<jhass> you either want to make an instance of your class or use extend
phutchins has joined #ruby
<maasha> jhass: I would like to avoid an instance, so extend you say?
ahmetkapikiran has joined #ruby
bim has quit [Remote host closed the connection]
zacts has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
zenith_ has joined #ruby
<jhass> that's what I said, yes
<maasha> jhass: excellent. It works! Thanks.
Soda has joined #ruby
rodfersou has joined #ruby
<jhass> I don't follow why you make a class if you never intend to make an instance of it though
<jhass> oh, nvm, you don't
<jhass> too much sun over here ;P
quimrstorres has joined #ruby
brb3 has joined #ruby
knikolov has joined #ruby
<knikolov> n #lua
<knikolov> opps sorry
Takle has joined #ruby
zenith_ has quit [Ping timeout: 252 seconds]
revoohc has joined #ruby
adriancb_ has joined #ruby
Oreolek has quit [Quit: Ухожу я от вас]
sameerynho has quit [Quit: Leaving]
rsavage is now known as r3dK1ng
quimrsto_ has joined #ruby
quimrstorres has quit [Read error: Connection reset by peer]
ndrei has joined #ruby
knikolov has quit [Remote host closed the connection]
knikolov has joined #ruby
cassianoleal has quit [Ping timeout: 276 seconds]
joonty has joined #ruby
knikolov has quit [Remote host closed the connection]
knikolov has joined #ruby
quimrstorres has joined #ruby
adriancb has quit [Ping timeout: 245 seconds]
iotouch has joined #ruby
quimrsto_ has quit [Read error: Connection reset by peer]
iotouch has left #ruby [#ruby]
eshiffob has quit [Remote host closed the connection]
catphish has joined #ruby
Rapier- has joined #ruby
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<catphish> does anybody know how to shutdown (halfclose) an ssl socket?
<jhass> I have my doubts the bindings allow that
<jhass> could dupe the fd and do a regular close on the original I guess
<catphish> unfortunately ssl has its own shutdown procedure
<catphish> you can't just close the socket, you have to send an ssl close packet
<catphish> https://www.openssl.org/docs/ssl/SSL_shutdown.html - SSL_shutdown() tries to send the "close notify" shutdown alert to the peer
<jhass> yeah, SSLSocket#close should do that
tier has joined #ruby
<jhass> so my idea would be SSLSocket#to_io -> dupe -> SSLSocket#close
<catphish> ok - i'll try that, that's not documented :(
<jhass> don't know if it works, just an idea
<catphish> why am i duping it?
<jhass> well, SSLSocket#close will also close the underlying fd
<catphish> there's also sslsocket#sysclose
<catphish> which does *something* but its not clear what
weemsledeux has quit [Ping timeout: 252 seconds]
<jhass> sysclose should be a straigth close(2) call
<catphish> hmm
<jhass> ah, actually not
<jhass> Shuts down the SSL connection and prepares it for another connection.
<jhass> so maybe exactly what you want?
<jhass> if ossl_ssl_get_sync_close doesn't close the fd it looks like it
<catphish> context: i'm an TLS proxy, when i get EOF from the server i'm proxying to, i want to send an EOF to my client
RegulationD has quit [Remote host closed the connection]
<catphish> but there may still be data in the opposite direction
sevvie has joined #ruby
sgambino has joined #ruby
jerematic has joined #ruby
RegulationD has joined #ruby
horsecowdog has joined #ruby
j416 has quit [Read error: Connection timed out]
lanemeyer has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ahmetkapikiran has quit [Ping timeout: 245 seconds]
cassianoleal has joined #ruby
tier_ has joined #ruby
yalue has joined #ruby
jerius has joined #ruby
<mikecmpbll> is there something more idiomatic than while <condition>; do_nothing...; end
yh has joined #ruby
<mikecmpbll> i just wanna wait until a condition becomes true
JDiPierro has joined #ruby
<mikecmpbll> or false technically, based on that psuedo
<jhass> I'd ponder nil while condition; not saying that's necessarily more idiomatic
blackmesa has joined #ruby
<jhass> and of course using until instead of !condition
<mikecmpbll> i got lost.
decoponio has joined #ruby
astrobun_ has joined #ruby
<jhass> you can use while/until in a modifier form, like with if/unless
tier has quit [Ping timeout: 250 seconds]
horsecowdog has quit [Ping timeout: 276 seconds]
<mikecmpbll> gotcha
<jhass> got some real code? usually easier to think about it that way :)
<apeiros> jhass: I'm for `loop until condition`
j416 has joined #ruby
<apeiros> just to fuzz with people about how that special `loop` command works ;-)
<jhass> oh, loop has a block less form?
<jhass> lol
<jhass> but all those wasted enumeators!
_1_Dem has joined #ruby
mengu has quit [Remote host closed the connection]
<jhass> but that gives me ideas..
<mikecmpbll> i'm just toying with a timeout-to-background-worker idea, so just trying to get the timeout bit down at the mo': https://gist.github.com/mikecmpbll/2b419d6f5b6370109e16
<jhass> >> loop.take(10)
<ruboto> jhass # => [nil, nil, nil, nil, nil, nil, nil, nil, nil, nil] (https://eval.in/310704)
<mikecmpbll> i don't even know why i put the sleep in tbh
<mikecmpbll> something to do? :D
MatthewsFace has joined #ruby
mengu has joined #ruby
<jhass> meh, there's no safe way to stop a thread in a general way
<mikecmpbll> i don't wanna stop it
<ytti> mikecmpbll, using Time like that creates substle hard to debug bugs
<jhass> you need to know (and incorporate it into) the actual code it runs
<apeiros> mikecmpbll: just sleep(10) and wake your waiting thread up when work is done
<jhass> oh yeah, also get a monotonic clock with Process.clock_gettime
<undeadaedra> jhass: halt(1) does stop the threads
<apeiros> no need for busy loop
freerobby has joined #ruby
dblessing has joined #ruby
<jhass> undeadaedra: I'm not saying there's no way, I'm saying there's no safe way
<apeiros> and correct - no safe way to stop a thread. it's the kill -9 equivalent for threads.
<mikecmpbll> apeiros: that completely defaults the object
<mikecmpbll> i also don't want to stop the thread.
_1_Dem has quit [Quit: WhatsChat IRC Android APP]
SouL_|_ has joined #ruby
<apeiros> mikecmpbll: um, that's what your sleep while loop does
ahmetkapikiran has joined #ruby
<apeiros> I just proposed a more efficient solution
<apeiros> mikecmpbll: https://gist.github.com/mikecmpbll/2b419d6f5b6370109e16#file-act-rb-L5-L7 <-- this stops your current thread.
<mikecmpbll> apeiros: you can return early from a sleep?
<jhass> mh, Ruby's sleep has no spurious wakeups, right?
<mikecmpbll> ^
<apeiros> mikecmpbll: yes, you can wake a thread which is sleeping
<mikecmpbll> oh
<mikecmpbll> how?
<apeiros> Thread#awake
<apeiros> err, Thread#wakeup
<mikecmpbll> so from my thread `work`, i can wake up the main thread?
sankaber has joined #ruby
arup_r has quit [Remote host closed the connection]
<mikecmpbll> i'm completely confused by what you're proposing, would be interested in some example code
<apeiros> try it. `t = Thread.new do sleep 10000000; puts "awake!"; end`; if t.stop? then t.wakeup else puts "not yet sleeping, try again…" end
<mikecmpbll> that makes complete sense to me, but it's not really similar to what i'm doing
MatthewsFace has quit [Ping timeout: 250 seconds]
freerobby has quit [Client Quit]
tuelz has joined #ruby
lektrik has joined #ruby
<mikecmpbll> apeiros: perfect, ta
<apeiros> can even remove the Time.now line
deuterium has joined #ruby
<mikecmpbll> my limited exposure to threads has rarely had me dealing with the current thread much so that was the connection i hadn't made.
sdothum has joined #ruby
shazaum has joined #ruby
<apeiros> mikecmpbll: you're aware that you're replicating Timeout?
<apeiros> at least if you kill the thread after the timeout
<mikecmpbll> no ;D
<tuelz> I've been reading up on the actor pattern a bit lately, I almost want to play with concurrent threads. almost.
amystephen has joined #ruby
<mikecmpbll> apeiros: ah, i don't want to interrupt the thread
<mikecmpbll> thanks for raising similar things though it could definitely be useful.
<toretore> solutions to this sort of problem tend to be highly context dependent
<mikecmpbll> toretore: what? :)
<apeiros> toretore: why'd you choose that solution?
<toretore> instead of busy looping?
<apeiros> I mean, what's the advantage of using select instead of the thread scheduler?
<apeiros> toretore: ah, ok, and in comparison to https://gist.github.com/apeiros/1310c4b680e50d333c81?
<mikecmpbll> ah, interesting.
ahmetkapikiran has quit [Quit: ahmetkapikiran]
amdbcg has joined #ruby
<toretore> i just don't like messing with the thread scheduler, because i don't understand all the possible ways it can impact my code
<toretore> in my mind it just does what it wants, whenever it wants
<toretore> out of my control
hpoydar has joined #ruby
<djellemah> mikecmpbll: a bit late, but how about work.join(10) - that times out and returns nil if the thread isn't finished, or the thread object if it has finished.
<apeiros> toretore: ok. I'm pretty sure your select solution just hits the scheduler too ;-)
blackmesa has quit [Ping timeout: 252 seconds]
<toretore> should be the kernel no?
<mikecmpbll> djellemah: fo real? ;<
<apeiros> toretore: so IMO yours just adds 2 IOs to the solution. (that's why I asked).
<toretore> not ruby's scheduler
<apeiros> toretore: how do you think select allows ruby to schedule threads?
<jhass> I don't think ruby has scheduler
anaeem1_ has quit [Remote host closed the connection]
<toretore> haha yeah i think djellemah is right
<mikecmpbll> haha oh crap
<mikecmpbll> +1 djellemah
<jhass> it's just pthreads these days, no?
<apeiros> djellemah: oh wow, when did Thread#join gain a timeout?
<toretore> apeiros: don't ask difficult questions, my brain doesn't work right now :P
pandaant has joined #ruby
<djellemah> >>Thread.new{sleep 3}.join(2)
<ruboto> djellemah # => (https://eval.in/310723)
<toretore> jhass: i'm not sure, but traditionally ruby scheduled its own threads
<apeiros> toretore: no worries, the answer is: by using the thread scheduler ;-)
<tuelz> toretore: give me a few minutes and I'll ask an easy question ;)
crumb has left #ruby [#ruby]
Abhijit has joined #ruby
<djellemah> apeiros: dunno. I've been using it since 2.0 iirc
<apeiros> wtf., 1.8.7 docs doesn't list Thread#join…
<apeiros> I know that existed back then :<
Abhijit has left #ruby [#ruby]
tkuchiki has joined #ruby
<apeiros> broken docs :-/
<apeiros> mikecmpbll: oh, weird - thread was not core in 1.8, so why is it listed in core?
<mikecmpbll> oh
* mikecmpbll mind blown
<djellemah> Here's another bad documentation
<djellemah> >> Thread.new{sleep 1; :the_value}.value
<ruboto> djellemah # => (https://eval.in/310728)
<apeiros> but interesting, obviously it existed back then. how did I miss that? TIL :D
GnuYawk has quit [Ping timeout: 245 seconds]
<tuelz> oh I've got an easy question! What's the reason you need to know what a thread is finished? Is this a concurrency problem?
<djellemah> well, it should return :the_value, but maybe ruboto doesn't understand it.
psudoze has joined #ruby
<tuelz> s/what/when/
<mikecmpbll> tuelz: to me?
<tuelz> mikecmpbll: sure, or anyone that's needed to solve that problem
<apeiros> djellemah: no, follow the link: "Forbidden syscall clone"
browndawg has quit [Quit: Leaving.]
<toretore> djellemah: Thread.new is probably disabled on the bot
<djellemah> OK.
<tuelz> I'm here as a parasite for ruby knowledge. I recently stopped using rails and so now I have to learn to program. Stuffs not easy.
juanpaucar has joined #ruby
<toretore> tuelz: if you start one thread from the main thread, you need to make sure it runs to completion before you let the main thread complete
colorisco2 has joined #ruby
<tuelz> toretore: hmm, is that just so the new thread has somewhere to send the exit code or something?
<apeiros> tuelz: when the main thread ends, all other threads are killed
<toretore> ^
<tuelz> gotcha, thanks
colorisco has quit [Read error: Connection reset by peer]
orionstein has quit [Quit: ZNC - http://znc.in]
<djellemah> toretore: that as well. if the thread raises an exception, it only shows up once .join or .value is called.
<djellemah> from another thread.
<apeiros> djellemah: or if you set Thread.abort_on_exception = true
<apeiros> which IMO should be the default.
<djellemah> eeek!
orionstein has joined #ruby
Matadoer has quit [Ping timeout: 252 seconds]
bkxd has joined #ruby
stef204 has joined #ruby
wottam has joined #ruby
<djellemah> I prefer to make sure I always call .join or .value.
<apeiros> I rather have my program explode loudly than fail silently
<undeadaedra> ^
<apeiros> djellemah: sadly you don't always control all thread spawning
<jhass> so you could never write erlang :P
<apeiros> or rather, joining
<djellemah> apeiros: Try this in pry, cos ruboto won't: Thread.new{raise :eeek}.join
bkxd_ has joined #ruby
bkxd_ has quit [Client Quit]
<apeiros> I assume you meant raise "eeek", not :eeek? :)
<apeiros> (well, it serves the purpose - it'll raise :D)
<djellemah> Nice catch, I did.
bkxd_ has joined #ruby
bkxd_ has quit [Client Quit]
bkxd_ has joined #ruby
<apeiros> djellemah: yes, I understand. but that requires you to write perfect code.
norc has joined #ruby
juanpaucar has quit [Ping timeout: 256 seconds]
sigurding has quit [Quit: sigurding]
colorisco2 has quit [Ping timeout: 244 seconds]
<apeiros> it also requires your dependencies to use perfect code.
Matadoer has joined #ruby
<toretore> apeiros: also, your solution isn't thread safe ;) you don't know that sleep is going to run before current.wakeup
<djellemah> apeiros: Well, abort_on_exception is useful for debugging then :-p
<apeiros> toretore: true. needs a CV
<apeiros> toretore: you say "also"? did I miss the first part?
<toretore> apeiros: you can just set it globally to make all threads a_o_e though
<toretore> apeiros: as in "why i chose to use select, part II"
<apeiros> toretore: now I'm confused :D
<apeiros> 15:23 toretore: apeiros: you can just set it globally to make all threads a_o_e though
<apeiros> yes, I said that
lethosor|away has quit [Quit: Connection closed for inactivity]
<apeiros> 15:19 apeiros: djellemah: or if you set Thread.abort_on_exception = true
enebo has joined #ruby
bkxd_ has quit [Client Quit]
bkxd has quit [Ping timeout: 250 seconds]
<toretore> apeiros: re: other people's code spawning threads that raise
bkxd has joined #ruby
<apeiros> toretore: yes, that's my argument in favor of aoe
<toretore> if you want them to blow up, you can set it globally yourself
B1n4r10 has joined #ruby
<apeiros> though, one could use it against too
<apeiros> that other's code relies on .join raising
<apeiros> (which won't be the case anymore once you set aoe)
bal has quit [Quit: bal]
<apeiros> and I'm back at being unhappy about ruby's threading primitives :<
jconnolly has joined #ruby
bal has joined #ruby
<toretore> anyway, with concurrency you just have to work with each other, there's no other way
kp666 has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
hgl- has joined #ruby
<apeiros> there is. but not in ruby.
B1n4r10 has quit [Client Quit]
tkuchiki has joined #ruby
<toretore> if you enforce restrictions on the concurrency primitives available, yes
<mikecmpbll> fwiw the idea that i was scoping out is that potentially long running tasks in a rails request lifecycle can be moved to the background if they take longe than x seconds and a response sent back to browser
<mikecmpbll> if anyone knows that that exists already, point me at it and i'll stop :d
<norc> http://pastie.org/10082477 -- This performs horribly slow at up to 10s. Any ideas how to make this a lot faster?
<apeiros> norc: not with madeup code, no
<jhass> norc: no, not if you keep the actual code hidden
roolo_ has quit [Quit: Leaving...]
<apeiros> norc: also you may want to profile your code. maybe your expressions are bad.
<toretore> norc: i want to see your real code
Advocation has quit [Quit: Advocation]
<djellemah> apeiros: but a_o_e just kills the whole process if the (a) thread raises, right? So whether some of the other part of the code calls .join on that thread doesn't matter anymore?
<apeiros> or even something you didn't consider
tosbourn has joined #ruby
Pharaoh2_ has joined #ruby
Pharaoh2 has quit [Disconnected by services]
StevenXL has joined #ruby
<toretore> djellemah: fail early, and so on
<apeiros> djellemah: right, whole process dies. wrong, it makes a difference. could have wrapped the join in begin/rescue.
<workmad3> djellemah: I think apeiros's point is that a thread being used by a library may raise an exception that the library knows how to handle and could have recovered from, if you'd let the exception raise from join...
<apeiros> djellemah: and I didn't think of that until yet, which is why in my threaded code, I have abort_on_exception on, and make sure my threads properly deal with exceptions as to not kill my process :)
jottr_ has quit [Quit: WeeChat 1.1.1]
<apeiros> now that I thought of it, I'm no longer sure it's a good idea.
<apeiros> and yes, workmad3 understood it correctly.
hgl has quit [Ping timeout: 264 seconds]
hgl- is now known as hgl
GnuYawk has joined #ruby
hpoydar has quit [Remote host closed the connection]
<toretore> workmad3: but that would be part of the library's contract with the user: "i may raise exception x, which means ..."
tkuchiki has quit [Ping timeout: 256 seconds]
<toretore> i don't think "exceptional" exceptions from a library should be expected
<workmad3> toretore: not if it's an entirely hidden implementation detail ;)
<apeiros> toretore: that's not what I'm talking about
fmcgeough has joined #ruby
<toretore> that's what i'm saying; if it's actually an exception that shouldn't happen, it should crash the program
<workmad3> toretore: i.e. the library has created the thread, and the library is .join ing the thread, and is expecting to handle exceptions at that point, so the exception is not part of the library's contract
<toretore> sure
<apeiros> toretore: consider this 3rd party lib: `def foo; resolve = Thread.new { resolve_dns(url) }; …stuff…; begin; result; rescue ResolvError; nil; end`
iamjarvo has joined #ruby
<apeiros> toretore: this library will work correctly with Thread.abort_on_exception = false
<workmad3> toretore: but if a_o_e is on, then the exception aborts the program rather than being handled inside the library and your app continuing on
<apeiros> it will stop to work correctly once you set Thread.abort_on_exception = true
tosbourn has quit [Ping timeout: 250 seconds]
<toretore> yes yes, we all agree ;)
<workmad3> toretore: ah, you mean the library's contract should say "I'm raising exceptions inside threads, so don't f***ing turn on a_o_e globally!!!"?
<apeiros> and up until today I expected exception handling to happen *within* the thread. and then .abort_on_exception = true will not break.
fryguy9 has joined #ruby
<toretore> workmad3: well, i think that'd be bad form, but yes that was the scenario
<apeiros> but it will find silent crashes
<workmad3> toretore: sure, I assume that the library author will be a bit more diplomatic with their language ;)
<toretore> i have no issue with the language, just the code :P
ahmetkapikiran has joined #ruby
colorisco has joined #ruby
lavros has joined #ruby
bobbrez has quit [Quit: Textual IRC Client: www.textualapp.com]
Rapier- has quit [Quit: (null)]
iamjarvo has quit [Ping timeout: 250 seconds]
xenokiller has joined #ruby
sevenseacat has joined #ruby
JDiPierro has quit [Remote host closed the connection]
havenwood has joined #ruby
norc has quit [Quit: Page closed]
hpoydar has joined #ruby
FernandoBasso has joined #ruby
<ericwood> adding this to application.js: good idea or great idea?
<ericwood> window.binding = {get pry() { debugger; }};
nateberkopec has joined #ruby
<toretore> wth is that
<ericwood> less mental effort switching between frontend and backend work
wottam has quit [Read error: Connection reset by peer]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<ericwood> it would do the right thing when I accidentally type "binding.pry" instead of "debugger" in my JS
<ericwood> maybe #rubyonrails would find me funnier
<toretore> oh
vtunka has joined #ruby
yh has quit [Ping timeout: 250 seconds]
ixti has joined #ruby
<toretore> a getter with a side effect
Takle has quit [Remote host closed the connection]
<undeadaedra> welcome to JS
ndrei has quit [Read error: No route to host]
<ericwood> JS people never use getters for some reason
<aawe> ericwood: window.binding = {get pry() { window.alert("Close, but not cigar"); throw Error("binding.pry is not javascript"); }}
<aawe> s/ not / no /
xenokiller has quit [Ping timeout: 250 seconds]
<aawe> argh nm
<ericwood> aawe: I'm considering doing a PR that adds this to piss off my coworkers
<undeadaedra> function pry() { debugger; }
<undeadaedra> this does not works?
_ixti_ has quit [Ping timeout: 248 seconds]
evanjs has joined #ruby
<ericwood> undeadaedra: you have to use a getter since JS doesn't do implicit function calls like ruby
<ericwood> and it has to be binding.pry
<ericwood> since that's what I keep accidentally typing
<undeadaedra> :
<undeadaedra> :
roolo has joined #ruby
<undeadaedra> :|
User458764 has joined #ruby
juanpablo__ has joined #ruby
nettoweb has joined #ruby
<aawe> ericwood: the drawback of adding your suggested snippet is that it will break inside the getter rather than where binding.pry is referenced
sdothum has joined #ruby
<undeadaedra> I want my QWERTY keyboard back
cassianoleal has quit [Quit: (null)]
<aawe> using dvxlk?
<undeadaedra> Nono
<undeadaedra> /physical/
pen has joined #ruby
<ericwood> aawe: yteah but that never happens
<aawe> ericwood: what never happens?
<greedo> morn'n ericwood
<ericwood> stuff
<ericwood> oh what are you doing here
<ericwood> go back to #python
<undeadaedra> aawe: I have an external qwerty us keyboard, but the internal keyboard is an azerty one, where the return key is not at the same place
ndrei has joined #ruby
<greedo> learning how to write a ruby client lib
<aawe> python does not even have blocks
<ericwood> you have to type lambda a lot
juanpablo__ has quit [Ping timeout: 250 seconds]
<ericwood> ...just issued a PR for this change. my coworkers are going to hate me
cartothemax has joined #ruby
Rapier- has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
JDiPierro has joined #ruby
<ericwood> looks like there's a backlog of PRs tho
Aswebb_ has quit [Remote host closed the connection]
<jhass> those should be from today
<ericwood> oh wow yeah
adriancb_ has quit [Remote host closed the connection]
Takle has joined #ruby
astrobun_ has quit [Remote host closed the connection]
adriancb has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
jefus__ is now known as jefus
mgorbach has quit [Read error: Connection reset by peer]
adriancb has quit [Remote host closed the connection]
freerobby has joined #ruby
centrx has joined #ruby
sevvie has quit [Ping timeout: 244 seconds]
mgorbach has joined #ruby
xenokiller has joined #ruby
anaeem1 has joined #ruby
doodlehaus has joined #ruby
sigurding has joined #ruby
tagrudev has quit [Remote host closed the connection]
amdbcg has quit [Ping timeout: 252 seconds]
tier_ has quit [Ping timeout: 250 seconds]
tier has joined #ruby
anaeem1 has quit [Remote host closed the connection]
hs366 has quit [Quit: Leaving]
tier has quit [Read error: Connection reset by peer]
tier has joined #ruby
vt102 has quit [Remote host closed the connection]
Feyn has quit [Quit: Leaving]
vt102 has joined #ruby
<djellemah> on threads again: Thread.kill(thr) causes thr's ensure blocks to be called http://code.jjb.cc/ruby-thread-kill-and-ensure-blocks
joonty has quit [Quit: joonty]
joonty has joined #ruby
rdar has joined #ruby
ndrei has joined #ruby
<jhass> the argument is that it requires knowledge and corporation of code running inside the thread
<jhass> not that we lack mechanisms
slackbotgz has joined #ruby
<catphish> doesn't thread#kill just raise an exception?
User458764 has joined #ruby
vozcelik has joined #ruby
<catphish> i'm actually surprised we don't execute: puts "rescuing!"
polysics has quit []
<catphish> but running the ensure is cool as long as you're expecting it
rbennacer has joined #ruby
gregf1 has joined #ruby
freerobby has quit [Quit: Leaving.]
mitchellhenke has joined #ruby
sigurding has quit [Quit: sigurding]
pika_pika has quit [Ping timeout: 245 seconds]
vt102 has quit [Remote host closed the connection]
ta_ has joined #ruby
Kricir has joined #ruby
Spami has quit [Quit: Leaving]
xenokiller has quit [Ping timeout: 250 seconds]
tvw has quit [Remote host closed the connection]
sevvie has joined #ruby
ascarter has joined #ruby
Macaveli has quit [Ping timeout: 272 seconds]
bruno- has joined #ruby
sigurding has joined #ruby
vt102 has joined #ruby
jayeshsolanki has joined #ruby
yh has joined #ruby
juanpablo__ has joined #ruby
Aswebb_ has joined #ruby
aryaching has joined #ruby
sevenseacat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
jlast has joined #ruby
withnale_ has quit [Ping timeout: 244 seconds]
<apeiros> djellemah: the problem is that the exception happens uncontrolled anywhere in the execution of the thread. making it basically impossible to return to a clean state within ensure.
Channel6 has joined #ruby
withnale_ has joined #ruby
SouL_|_ has quit [Remote host closed the connection]
vt102 has quit [Remote host closed the connection]
sectionme has joined #ruby
sevvie has quit [Remote host closed the connection]
vt102 has joined #ruby
sevvie has joined #ruby
anaeem1 has joined #ruby
Spami has joined #ruby
wolf4ood has joined #ruby
Lloyd is now known as lloyd
tuelz has quit [Ping timeout: 240 seconds]
agarie has joined #ruby
sevenseacat has joined #ruby
anaeem1 has quit [Remote host closed the connection]
anaeem1 has joined #ruby
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
mengu has quit [Remote host closed the connection]
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
knikolov has quit [Quit: WeeChat 1.2-dev]
rbennacer has quit [Remote host closed the connection]
iamjarvo has joined #ruby
Aswebb_ has quit [Remote host closed the connection]
anaeem1 has quit [Ping timeout: 264 seconds]
snapfractalpop has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
lloyd is now known as Lloyd
n80 has joined #ruby
snapfractalpop has left #ruby ["WeeChat 1.2-dev"]
snath has quit [Ping timeout: 272 seconds]
rbennacer has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
msnyon has joined #ruby
ta_ has quit [Quit: Leaving...]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
oo_ has joined #ruby
evanjs is now known as evanfreeman
Aswebb_ has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hobodave has joined #ruby
devans has joined #ruby
jottr has joined #ruby
juanpaucar has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
tuelz has joined #ruby
juanpaucar has joined #ruby
khebbie has quit [Remote host closed the connection]
evanfreeman is now known as evanjs
johnchalekson has joined #ruby
linoj has joined #ruby
Splourian has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
ta has quit [Remote host closed the connection]
aryaching has joined #ruby
sevvie has quit [Remote host closed the connection]
mrmargolis has joined #ruby
horsecowdog has joined #ruby
bim has joined #ruby
FernandoBasso has quit [Quit: Leaving]
hobodave has quit [Quit: Computer has gone to sleep.]
kyrylo has quit [Ping timeout: 264 seconds]
evanjs is now known as evanfreeman
terlar has quit [Ping timeout: 255 seconds]
snath has joined #ruby
bim has quit [Remote host closed the connection]
ahmetkapikiran has joined #ruby
hmsimha has joined #ruby
bim has joined #ruby
knikolov has joined #ruby
joonty has quit [Read error: Connection reset by peer]
evanfreeman has quit [Quit: Leaving...]
Megtastique has joined #ruby
horsecowdog has quit [Ping timeout: 276 seconds]
evanjs has joined #ruby
sigurding has quit [Quit: sigurding]
sinkensabe has quit [Remote host closed the connection]
bal has quit [Quit: bal]
GnuYawk has quit [Quit: WeeChat 1.0]
d10n-work has joined #ruby
<djellemah> Oh, the Thread.kill thing was tangential. Mostly undocumented, and quite useful IMO. Not a response to the previous discussion ;-)
<undeadaedra> thread is kill?
ascarter has joined #ruby
<gregf_> one is scared, the other is confused, the third is a coward and the fourth blames the rest for any and every failure amongst other awful harmless crimes
<gregf_> er, sorry :/ wrong chat :/
hmsimha has quit [Ping timeout: 252 seconds]
krz has quit [Quit: WeeChat 1.0.1]
<undeadaedra> seems interesting
<djellemah> gregf_: Still, a noble sentiment...
jefus_ has joined #ruby
<gregf_> heh.. its a reality... unfortunately
iwishiwerearobot has quit [Quit: Be back later ...]
oddskill_away is now known as oddskill
knikolov has quit [Quit: WeeChat 1.2-dev]
craigp has quit []
<mikecmpbll> haha wut
hyperjuice has joined #ruby
jefus has quit [Ping timeout: 256 seconds]
sevenseacat has quit [Quit: Me dun like you no more.]
brainslug has quit [Quit: all glory to hypnotoad]
knikolov has joined #ruby
bim has quit [Remote host closed the connection]
brainslug has joined #ruby
b0t00 has joined #ruby
<jhass> I think I know who number four is
aswen has quit [Ping timeout: 248 seconds]
joonty has joined #ruby
brainslug has quit [Client Quit]
brainslug has joined #ruby
pagios has quit [Remote host closed the connection]
johnchalekson has quit [Quit: #UNJACKABLE #UNHACKABLE 10^10^78 https://twitter.com/hashtag/piruumak9nikkkiuupunchuu2tan2cuumayouuufruittownuuuuleduuoju2cuiceuuveltkodedboltuuuuhard?f=realtime&src=hash44... WOODMANTINMANLIONUNICORNCHOPPERZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ]
maasha has quit [Ping timeout: 246 seconds]
sevvie has joined #ruby
jefus_ is now known as jefus
cpt_yossarian has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tier has quit [Remote host closed the connection]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fabrice31 has quit [Remote host closed the connection]
b0t00 has quit [Ping timeout: 252 seconds]
dstarh has joined #ruby
joonty_ has joined #ruby
joonty has quit [Ping timeout: 252 seconds]
joonty_ is now known as joonty
sevenseacat has joined #ruby
Boondox has joined #ruby
riotjones has quit [Remote host closed the connection]
sigurding has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
devans has quit [Remote host closed the connection]
mleung has joined #ruby
livathinos has quit [Remote host closed the connection]
slackbotgz has quit [Remote host closed the connection]
cartothemax has quit [Remote host closed the connection]
_maes_ has joined #ruby
Splourian has left #ruby [#ruby]
GnuYawk has joined #ruby
cartothemax has joined #ruby
mkode has joined #ruby
MatthewsFace has joined #ruby
aganov has quit [Remote host closed the connection]
blackmesa has joined #ruby
mjuszczak has joined #ruby
einarj has quit [Remote host closed the connection]
pushpak has joined #ruby
_maes_ has quit [Ping timeout: 248 seconds]
nerium has joined #ruby
lethosor|away has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
kblake has joined #ruby
parduse has quit []
hyperjuice has quit [Remote host closed the connection]
michaeldeol has joined #ruby
maletor has joined #ruby
tier has joined #ruby
joonty has quit [Read error: Connection reset by peer]
jottr has quit [Ping timeout: 250 seconds]
hobodave has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
lethosor|away is now known as lethosor
lethosor has quit [Client Quit]
lethosor has joined #ruby
max96at|off is now known as max96at
beneggett has joined #ruby
basiclaser has quit [Quit: Connection closed for inactivity]
lethosor is now known as lethosor|away
<catphish> can ruby set its own open file limit (under linux)
Takle has quit [Remote host closed the connection]
wald0 has quit [Quit: Lost terminal]
<catphish> ah - Process.setrlimit
yh has quit [Ping timeout: 255 seconds]
sigurding has quit [Ping timeout: 265 seconds]
johnchalekson has joined #ruby
aryaching has quit [Ping timeout: 245 seconds]
Sawbones_ has joined #ruby
Takle has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
endash has quit [Quit: endash]
pagios has joined #ruby
endash has joined #ruby
rubytor has joined #ruby
joonty has joined #ruby
govg has quit [Remote host closed the connection]
sigurding has joined #ruby
jolg42 has joined #ruby
agarie has quit [Remote host closed the connection]
speaking1ode has quit [Quit: leaving]
agarie has joined #ruby
speakingcode has joined #ruby
joonty has quit [Read error: Connection reset by peer]
pdoherty has joined #ruby
chrishough has joined #ruby
mjuszczak has quit []
doodlehaus has quit [Ping timeout: 245 seconds]
maximski has quit []
zacts has joined #ruby
dorei has joined #ruby
tier has quit [Ping timeout: 245 seconds]
aryaching has joined #ruby
n80 has quit [Quit: n80]
Morkel has joined #ruby
hanmac has quit [Quit: Leaving.]
teddyp1cker has joined #ruby
withnale_ has quit [Ping timeout: 246 seconds]
bricker has joined #ruby
baroquebobcat has joined #ruby
yh has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
Diabolik has quit [Ping timeout: 250 seconds]
agarie has quit [Remote host closed the connection]
gsd has joined #ruby
sigurding has quit [Ping timeout: 245 seconds]
chinmay_dd has joined #ruby
ahmetkapikiran has joined #ruby
rhllor has joined #ruby
sectionme has quit [Quit: Lost terminal]
MatthewsFace has quit [Ping timeout: 252 seconds]
ahmetkapikiran has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
scottelundgren has joined #ruby
Advocation has joined #ruby
mjuszczak has joined #ruby
Pharaoh2_ has quit [Quit: Byebye]
chinmay_dd has quit [Quit: Leaving]
StyXman has joined #ruby
rubytor has quit [Ping timeout: 244 seconds]
Channel6 has quit [Quit: Leaving]
StyXman has left #ruby [#ruby]
teddyp1cker has quit [Remote host closed the connection]
devans has joined #ruby
zenith_ has joined #ruby
rbennacer has quit [Remote host closed the connection]
zenspider has quit [Ping timeout: 245 seconds]
chinmay_dd has joined #ruby
davedev24_ has quit [Ping timeout: 240 seconds]
DerisiveLogic has joined #ruby
joonty has joined #ruby
davedev24_ has joined #ruby
freerobby has quit [Ping timeout: 264 seconds]
roolo has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
rbennacer has joined #ruby
n80 has joined #ruby
<undeadaedra> Is there a sorted Hash in stdlib ?
<undeadaedra> not sorted, I mean
msnyon has quit [Ping timeout: 256 seconds]
<undeadaedra> which preserve order of insertion
msgodf has quit [Ping timeout: 250 seconds]
arup_r has joined #ruby
Zamyatin has joined #ruby
<jhass> Hash is ordered by insertion order since Ruby 1.9
sevenseacat has quit [Quit: Me dun like you no more.]
pushpak has quit [Quit: Linkinus - http://linkinus.com]
mhib has joined #ruby
<jhass> I consider relying on that a code smell though
<undeadaedra> It's exactly what I don't want
rdar has quit [Quit: Leaving]
<undeadaedra> I have an array of objects with names for index (so Hash)
<undeadaedra> But I want to keep order of insertion
<undeadaedra> So if I do .each, I don't get them ordered by name
wldcordeiro has joined #ruby
<undeadaedra> Kinda like pre-1.9 Hashes worked, iirc
<jhass> ?
<jhass> I don't follow
<jhass> some code might help
<undeadaedra> I'm writing it, so it's difficult
<jhass> >> h = {}; h[:x] = 1; h[:a] = 2; h
<ruboto> jhass # => {:x=>1, :a=>2} (https://eval.in/310961)
<havenwood> undeadaedra: "Hashes enumerate their values in the order that the corresponding keys were inserted."
sigurding has joined #ruby
<jhass> >> h = {}; h[:x] = 1; h[:a] = 2; h.keys
<ruboto> jhass # => [:x, :a] (https://eval.in/310962)
Filete has joined #ruby
timanema has joined #ruby
<undeadaedra> oh
zenith_ has quit [Ping timeout: 256 seconds]
ta has joined #ruby
<jhass> but as said, usually you want to keep it as a nested array or such
<undeadaedra> I should have mixed something then
jayeshsolanki has quit [Ping timeout: 264 seconds]
<jhass> to signal clearly that you depend on an ordered structure
Jackneill has joined #ruby
<undeadaedra> but my data is not really nested
<jhass> or not nested, not the point
Sawbones_ has quit [Remote host closed the connection]
tosbourn has joined #ruby
doodlehaus has joined #ruby
Sawbones_ has joined #ruby
Megtastique has quit []
<undeadaedra> Ok so I messed the Hash order insertion in my head, sorry
Rollabunna has quit [Remote host closed the connection]
<undeadaedra> But I don't follow about the nested array then
Rollabunna has joined #ruby
byprdct has joined #ruby
beatrichartz has joined #ruby
sigurding has quit [Ping timeout: 250 seconds]
byprdct has quit [Max SendQ exceeded]
<jhass> While Rubys map type implementation (Hash) guarantees insertion order, being ordered is not in the intention/nature of a map, it's in the intention/nature of a list (like Array)
dfinninger has joined #ruby
ponga has quit [Remote host closed the connection]
<undeadaedra> mh yes
Pupeno has quit [Ping timeout: 256 seconds]
<jhass> so when relying on the order of something, using a data structure who's not only in its implementation, but also in its nature/definition ordered leaders to clearer code IME
<jhass> *leads
tosbourn has quit [Ping timeout: 248 seconds]
<undeadaedra> yes, I agree
Pupeno has joined #ruby
joonty has quit [Quit: joonty]
Takle has joined #ruby
<undeadaedra> But if I have an array of elements, and a Hash with element's name as key, it would be more efficient to lookup using Hash#[] than Array#find, no?
GaryOak_ has joined #ruby
ta has quit [Remote host closed the connection]
<jhass> well sure
davispuh has joined #ruby
mjuszczak has quit [Ping timeout: 240 seconds]
<jhass> but from that question I don't follow why the order of the hash would matter
<jhass> as said, some code might clarify
<undeadaedra> Because here my data are both with non-numerical access (but I need random access by their key) and ordered by insertion
riotjones has joined #ruby
<jhass> can you remove the abstractions? what would be the data and what do you do with it?
pullphinger has joined #ruby
<undeadaedra> it's a routing system – so I have routes which I have names on them (to retrieve them and their path by name) and I record them by insertion order to process them in same order when matching
fgjfjs has quit [Ping timeout: 265 seconds]
Takle has quit [Remote host closed the connection]
<jhass> mh, and why do you need (constant) key access? do you optimize for routes that match literally and require no pattern matching?
JDiPierro has quit [Remote host closed the connection]
<undeadaedra> for url construction from a name
<undeadaedra> I just give a pre-determined name and it returns the real path
<jhass> ah, I see
rippa has joined #ruby
<jhass> mh, I guess I would consider making an exception there indeed, though I'd try to wrap it up in a thin class that also does the matching
<jhass> and not expose the hash anywhere
<undeadaedra> This is what I'm doing, this wrapper class
<undeadaedra> And I was wondering which data structure I would put into it
<shevy> are you guys still struggling with code
<shevy> it should be like poetry!
<undeadaedra> like wiping your ass with silk?
Lucky__ has joined #ruby
jeff_laplante has joined #ruby
<shevy> like thinking that you are doing creative work while you are in the toilet
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
<mg^> I just did creative work on the toilet.
<undeadaedra> jhass: thanks for the discussion anyway
<mg^> Inspiration starts with the prior meal!
<jhass> undeadaedra: yw, thanks for bearing with me I guess ;)
<undeadaedra> np
lemur has joined #ruby
<mg^> ahh the inappropriate things I say that keep me from having a normal social life.
icebourg has joined #ruby
MatthewsFace has joined #ruby
krisquigley has quit [Remote host closed the connection]
mjuszczak has joined #ruby
ahmetkapikiran has joined #ruby
<shevy> mg^ yeah, you are what you eat. I have been not feeling too well about certain food types in the past. While I have no allergy, I decided to avoid certain things. like potato chips, there is sometimes some strange covering on them, I have been feeling not too well afterwards, in one case was sick for 2 days
krisquigley has joined #ruby
Zamyatin has quit [Quit: Knocking out. Peace y'all...]
ebbflowgo has quit [Read error: Connection reset by peer]
<mg^> yikes
<mg^> Pre-prepped store potatoes get me
ebbflowgo has joined #ruby
<mg^> they put some kind of anti-oxidant on them that roughs up my gut
beneggett has quit [Remote host closed the connection]
eoeamy has joined #ruby
TheNumb is now known as OpenRC
djbkd has quit [Ping timeout: 240 seconds]
<shevy> oh?
nerium has quit [Quit: nerium]
<shevy> I always thought it was some chili-pepper covering that got me
opes has quit [Max SendQ exceeded]
<shevy> now you made me nervous
riotjones has quit [Ping timeout: 255 seconds]
opes has joined #ruby
maletor has joined #ruby
Porfa has joined #ruby
krisquigley has quit [Ping timeout: 245 seconds]
<mg^> I'm not sure about potato chips, as I don't eat them often, but things like these http://www.simplypotatoes.com/products/ have something that keeps them from browning from air exposure
<atmosx_bsd> aloha
cartothemax has quit [Remote host closed the connection]
cartothemax has joined #ruby
palms has quit [Ping timeout: 252 seconds]
JDiPierro has joined #ruby
maletor has quit [Client Quit]
Porfa has quit [Client Quit]
dumdedum has quit [Quit: foo]
Hounddog_ has quit [Ping timeout: 252 seconds]
maletor has joined #ruby
mjuszczak has quit []
deuterium has quit [Quit: zzZZZzzz..]
mjuszczak has joined #ruby
maletor has quit [Client Quit]
Sawbones_ has quit [Remote host closed the connection]
<shevy> aha
linoj has quit [Quit: linoj]
mkode has quit [Quit: For Sale: Intergalactic Proton Powered Electrical Tentacled Advertising Droids]
CustosLimen has quit [Ping timeout: 265 seconds]
<shevy> I guess that makes sense when you "design" food...
serivich has quit [Quit: Leaving]
<shevy> until it becomes no longer edible/digestable :)
zorak8 has joined #ruby
<shevy> atmosx_bsd hey... why are you on BSD and not LSD or linux
Zamyatin has joined #ruby
<undeadaedra> Because BSD is good
Aswebb_ has quit []
horsecowdog has joined #ruby
ki0 has quit [Ping timeout: 265 seconds]
hyperjuice has joined #ruby
<shevy> undeadaedra but what can it offer competitively compared to linux?
<undeadaedra> why does it have to be competitive
tuelz has quit [Ping timeout: 245 seconds]
<shevy> centrx do you know what scares me about you?
OpenRC is now known as TheNumb
<centrx> my sexy sneakers?
<shevy> centrx you so easily find the dark side of the internet
<undeadaedra> "Dark side"
<undeadaedra> You must be new here.
<shevy> nono it really is centrx mostly. tell me what scary link you found undeadaedra
Darryl___ has joined #ruby
<yh> does the internet even have a dark side anymore?
<yh> i remember the old days
<shevy> on youtube I sometimes end up in the dark side
<shevy> wondering "why did I click on this, why am I watching this"
mikecmpbll has quit [Ping timeout: 240 seconds]
<shevy> yh YES the old days of blink and marqee tag or however it is spelled
<shevy> and bright pink colours
<yh> the internet seems incredibly sanitized these days
<yh> i'm not sure if it's even due to censorship
<shevy> self-censorship and government-encouraged re-education
horsecowdog has quit [Ping timeout: 245 seconds]
<centrx> Things are not as they appear
<yh> maybe it's where search engines now generally only show credible sites
<shevy> yes that is the worst
crazydiamond has joined #ruby
<shevy> they ARCHIVE the trash that existed in the past
<undeadaedra> shevy: marquee
<jhass> yep, lots of them in there
lektricity has joined #ruby
<undeadaedra> I'd do the marquee effect, but I would get banned, so no.
<shevy> undeadaedra do not mention the devil of the old
rbennacer has quit [Remote host closed the connection]
<undeadaedra> shevy: with CSS3 animations, you can recreate marquee, like in the old times!
lektrik has quit [Ping timeout: 252 seconds]
sevvie has quit [Ping timeout: 255 seconds]
<wasamasa> yay
<shevy> I like css
mikecmpbll has joined #ruby
sevvie has joined #ruby
<jhass> undeadaedra: feel free, channel has +c ;)
<undeadaedra> jhass: I was talking about flooding.
agarie has joined #ruby
<jhass> ah well
<jhass> yeah
<undeadaedra> you know
<undeadaedra> i begin with a space
<undeadaedra> then two
ahmetkapikiran has quit [Quit: ahmetkapikiran]
<shevy> ban him
<undeadaedra> noooo
<jhass> the real fun is in sending \b's to the channel I guess
<shevy> I can do colours on IRC
<undeadaedra> Colors are kill?
<shevy> I remember in the old mIRC days, there were lots of colourful spambots
<shevy> though that was on galaxynet, not on freenode
<undeadaedra> They still exist nowadays, don't worry
<shevy> here on #ruby I only see that WhatsChat or what was the name, and the occasional spam-bot
<shevy> literally it has gotten boring
<shevy> there could be more spam
<undeadaedra> Train time
lemur has quit [Remote host closed the connection]
Zai00 has quit [Quit: Zai00]
<undeadaedra> See ya all
<shevy> nooooo
<shevy> don't leave
jolg42 has quit [Quit: [->EXIT]]
<undeadaedra> If I don't leave, I miss the train
<shevy> take the internet with you
<undeadaedra> Internet is really bad in the undergrounds
bim has joined #ruby
longfeet has joined #ruby
<shevy> in france?
c0m0 has quit [Ping timeout: 264 seconds]
lemur has joined #ruby
bim has quit [Remote host closed the connection]
leafybas_ has joined #ruby
leafybas_ has quit [Remote host closed the connection]
Takle has joined #ruby
spyderma_ has quit [Remote host closed the connection]
tuelz has joined #ruby
spyderman4g63 has joined #ruby
meschiv2 has joined #ruby
tier has joined #ruby
fryguy9 has quit [Quit: Leaving.]
jackmas has joined #ruby
fryguy9 has joined #ruby
nerium has joined #ruby
sevvie has quit [Ping timeout: 252 seconds]
Zamyatin has quit [Quit: Knocking out. Peace y'all...]
tcrypt has joined #ruby
leafybasil has quit [Ping timeout: 252 seconds]
agarie has quit []
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
michaeldeol has joined #ruby
lucianosousa has joined #ruby
bim has joined #ruby
jerius has quit [Quit: /part]
claw has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
<shevy> jhass does crystal have GUI bindings yet?
claw has joined #ruby
<jhass> shevy: nothing really usable, I did https://github.com/jhass/crystal-gobject/
Morkel has quit [Quit: Morkel]
<shevy> ah ok
adriancb has joined #ruby
<shevy> so the beginning of gnome bindings :
<shevy> :)
<shevy> oh there is even gtk in that directory, weird
<shevy> I always thought these be separate projects
OtterCoder has joined #ruby
<yh> shevy: do you ever work? :)
<shevy> LibGtk.init pointerof(ARGC_UNSAFE), pointerof(ARGV_UNSAFE)
maletor has joined #ruby
<shevy> yh semi
bim has quit [Remote host closed the connection]
beatrichartz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
claw has quit [Read error: Connection reset by peer]
Morkel has joined #ruby
<jhass> shevy: I'll extract the overrides if they ever happen to mature and keep only the generator in that repo
selu has quit [Remote host closed the connection]
zz_AlphaTech is now known as AlphaTech
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> crystal looks more complicated than ruby
claw has joined #ruby
<shevy> pointers!
<jhass> that's the low level stuff when writing bindings
fabrice31 has quit [Ping timeout: 250 seconds]
<shevy> hehe
<jhass> in Ruby that would have to be C or FFI code ;)
FernandoBasso has joined #ruby
rbennacer has joined #ruby
<shevy> yeah
<shevy> that would be scary
<shevy> I have part of the pickaxe open
adriancb has quit [Ping timeout: 264 seconds]
<shevy> VALUE arr; arr = rb_ary_new();
Morkel has quit [Client Quit]
sevvie has joined #ruby
dfinninger has quit []
<shevy> jhass well it looks very similar to ruby
cefkamcau has joined #ruby
browndawg has joined #ruby
rbennacer has quit [Remote host closed the connection]
<shevy> actually, I wonder why crystal isn't ruby
<jhass> because it has no runtime
chrishough has joined #ruby
<wasamasa> you junkies
<r3dK1ng> what the heck is crystal?
jeff_laplante has quit [Ping timeout: 250 seconds]
teddyp1cker has joined #ruby
<jhass> r3dK1ng: new programming language
vtunka has quit [Quit: Leaving]
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<r3dK1ng> How new?
User458764 has joined #ruby
<atmosx_bsd> r3dK1ng: one of the 4.000 new programming languages that came out the last couple of years.
<atmosx_bsd> r3dK1ng: google it
wallerdev has joined #ruby
dstarh has joined #ruby
n80 has quit [Quit: n80]
<jhass> r3dK1ng: fairly new
<jhass> it's a around for a couple of years, but small dev team
OtterCoder has quit [Read error: Connection reset by peer]
pika_pika has joined #ruby
<r3dK1ng> neat
beat has joined #ruby
moted has quit []
allenn has quit [Remote host closed the connection]
diegoviola has joined #ruby
yh__ has joined #ruby
beat has quit [Client Quit]
rbennacer has joined #ruby
rhllor has quit [Ping timeout: 245 seconds]
catphish has quit [Quit: Leaving]
yh has quit [Ping timeout: 250 seconds]
<atmosx_bsd> exit
<atmosx_bsd> ops
SolarSailor has joined #ruby
yh__ has quit [Ping timeout: 250 seconds]
<wasamasa> e_e
<GaryOak_> It's interesting how problem domains become easier over time
<GaryOak_> Like everyone makes programming languages and custom databases now
momomomomo has joined #ruby
<jhass> well, look at how many of the new programming languages either use LLVM or are transpilers ;)
Hijiri has quit [Quit: WeeChat 1.0.1]
<FDj> hello
<GaryOak_> That's true, people are making easier mature abstractions over the system level code
<GaryOak_> FDj: hey
<jhass> and LLVM is basically an effort of people being fed up with GCC
rhllor has joined #ruby
<jhass> which means we see a bunch of ideas realized now that had been around for some time
moted has joined #ruby
<GaryOak_> Yeah, like I'm interested in Rust, and they are adding stuff into the language that are from papers in like 1995
Peter___ has joined #ruby
PNDPO has joined #ruby
mamiya has joined #ruby
rbennacer has quit [Remote host closed the connection]
SolarSailor has quit [Quit: My Turing machine has gone to sleep. ZZZzzz…]
juanpaucar has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 248 seconds]
<havenwood> Or Go-lang where 1995 is a glimpse at the mysterious future.
latemus has joined #ruby
juanpaucar has joined #ruby
SolarSailor has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
n80 has joined #ruby
<GaryOak_> Hah, I was reading about Plan 9, and how the "good enough" of Unix was hard to overthrow
rrichardsr3 has joined #ruby
PNDPO has quit [Client Quit]
Peter___ has quit [Client Quit]
<latemus> Is there a string method to get the index of characters
<jhass> latemus: .index
<apeiros> surprise! :D
teddyp1cker has quit [Remote host closed the connection]
<latemus> jhass: Thanks
<jhass> latemus: but I actually hardly ever have a usecase for it
<jhass> so
<jhass> ?goal
<ruboto> I don't know anything about goal
juanpauc_ has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> huh, I didn't?
<havenwood> ruboto: Me neither!
<jhass> I was pretty sure I had ...
juanpaucar has quit [Read error: Connection reset by peer]
<latemus> jhass: I want to encrpyt a string, write my own implementations of basic crypto
<latemus> like rot13 etc
jerius has joined #ruby
<havenwood> latemus: rot26 seems at least twice as secure
<GaryOak_> haha
teddyp1cker has joined #ruby
<latemus> so i want to iterate over each character
<jhass> havenwood: how about rot39 then?
<latemus> havenwood: lol
juanpauc_ has quit [Remote host closed the connection]
<latemus> yeah, it's an exrcise guys
ghr has quit [Ping timeout: 248 seconds]
shadoi has joined #ruby
juanpaucar has joined #ruby
<jhass> Array#rotate might come in handy
<latemus> I'm not looking to hide my weed pictures using rot13
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
dumdedum has joined #ruby
<latemus> matugm: exactly. cool thanks
<matugm> :)
<jhass> !fact mk goal Describe your goal, not the solution you imagine.
<ruboto> jhass, I will remember that goal is Describe your goal, not the solution you imagine.
<latemus> jhass: point taken
<apeiros> IMO we should quote that second part
<havenwood> >> "test".bytes
<ruboto> havenwood # => [116, 101, 115, 116] (https://eval.in/311008)
<jhass> apeiros: go ahead
lkba_ has quit [Ping timeout: 248 seconds]
Mon_Ouie has quit [Ping timeout: 255 seconds]
<apeiros> jhass: not today. today is valaptor's turn
<jhass> you have too many projects :P
<latemus> apeiros what are you quoting
<apeiros> latemus: the response of the bot needs quotes
<latemus> apeiros: ah.
<apeiros> funny, valaptor is the first project where I write the full "how to use" first, and code after. I hope that helps me figure the best way to do its interface.
<apeiros> still feel like I'm missing something :-/
<jhass> what will it even do?
SolarSailor has quit [Quit: My Turing machine has gone to sleep. ZZZzzz…]
<apeiros> value validation & adaptation
juanpaucar has quit [Ping timeout: 252 seconds]
<apeiros> in a less annoying or coupled fashion than existing solutions
<jhass> ah, so basically a component of jacob?
<apeiros> i.e. you could implement AR's validations in a couple of lines with it (which is one reason of what I use them for)
<apeiros> yes. but one of the few components which are in a separate gem.
<jhass> figured
<apeiros> unlike rails, I don't only do validation in models.
<apeiros> IMO rails got that quite wrong. which leads to some convoluted situations.
wolf4ood has quit [Quit: (null)]
krisquigley has joined #ruby
ki0 has joined #ruby
<apeiros> i.e., it shouldn't be the model which adapts a date select's 3 separate values into a Date object. that's controller duty.
marr has quit [Read error: Connection reset by peer]
<apeiros> one consequence of how rails does it -> invalid date means the selected values can't be rendered anymore (because e.g. 2015-02-31 can't be turned into a Date)
bim has joined #ruby
DerisiveLogic has quit [Remote host closed the connection]
dstarh has joined #ruby
DerisiveLogic has joined #ruby
wald0 has joined #ruby
jerius has quit [Changing host]
jerius has joined #ruby
ki0 has quit [Ping timeout: 252 seconds]
DrShoggoth has joined #ruby
krisquigley has quit [Ping timeout: 250 seconds]
jerius has quit [Quit: /part]
momomomomo has quit [Quit: momomomomo]
rdark has quit [Read error: Connection reset by peer]
jerius has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
FernandoBasso1 has joined #ruby
joshs has joined #ruby
DerisiveLogic has quit [Remote host closed the connection]
longfeet has quit [Ping timeout: 240 seconds]
lolmaus has quit [Quit: Konversation terminated!]
kaleido has joined #ruby
FernandoBasso has quit [Ping timeout: 245 seconds]
chinmay_dd_ has joined #ruby
chinmay_dd_ has quit [Remote host closed the connection]
atmosx_bsd is now known as atmosx
<kaleido> >> [6, 11, 32].map { |n| n * n }
<ruboto> kaleido # => [36, 121, 1024] (https://eval.in/311012)
Azure has quit [Ping timeout: 245 seconds]
<djellemah> apeiros: sounds useful. Is it Out There?
_hollywood has joined #ruby
nahtnam has quit [Quit: Connection closed for inactivity]
<apeiros> djellemah: no. not sure whether I'll release it before jacob. jacob itself I intend to release around end of year.
akurilin2 has joined #ruby
djbkd has joined #ruby
jenrzzz has joined #ruby
teddyp1cker has joined #ruby
sevvie has quit [Ping timeout: 252 seconds]
DerisiveLogic has joined #ruby
browndawg has quit [Quit: Leaving.]
rhllor has quit [Quit: rhllor]
akurilin has quit [Ping timeout: 252 seconds]
<latemus> Are hashes indexed like arrays?
sinkensabe has joined #ruby
akurilin3 has joined #ruby
<jhass> no, then we would use arrays instead of hashes
<jhass> the method call/syntax looks the same though
tuelz has quit [Ping timeout: 240 seconds]
riotjones has joined #ruby
akurilin2 has quit [Ping timeout: 250 seconds]
sinkensabe has quit [Ping timeout: 250 seconds]
quimrstorres has quit [Remote host closed the connection]
fenzil has joined #ruby
<latemus> Alright!
jheg has joined #ruby
tuelz has joined #ruby
akurilin has joined #ruby
ndrei has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
livathinos has joined #ruby
zzing has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
akurilin3 has quit [Ping timeout: 264 seconds]
teddyp1cker has joined #ruby
towski_ has joined #ruby
sevvie has joined #ruby
n80 has quit [Quit: n80]
n80 has joined #ruby
tier has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
n80 has quit [Client Quit]
rrichard_ has joined #ruby
Takle has joined #ruby
Takle has quit [Read error: Connection reset by peer]
dseitz has joined #ruby
Takle has joined #ruby
mikenovikov has joined #ruby
tier has joined #ruby
Azure has joined #ruby
rrichard_ has quit [Client Quit]
rrichardsr3 has quit [Ping timeout: 240 seconds]
pandaant has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
akurilin2 has joined #ruby
gfawcettpq has quit [Ping timeout: 245 seconds]
duggiefresh has joined #ruby
RegulationD has quit [Remote host closed the connection]
akurilin has quit [Ping timeout: 245 seconds]
Takle has quit [Ping timeout: 248 seconds]
ghr has joined #ruby
kirun has joined #ruby
sevvie has quit [Ping timeout: 255 seconds]
riotjones has quit [Ping timeout: 252 seconds]
cartothemax has quit [Remote host closed the connection]
<pagios> hi all
poguez_ has quit [Quit: Connection closed for inactivity]
joshs has quit [Remote host closed the connection]
sankaber has quit [Ping timeout: 264 seconds]
Sawbones_ has joined #ruby
einarj has joined #ruby
dfinninger has joined #ruby
djbkd has joined #ruby
akurilin3 has joined #ruby
<wallerdev> hi
ghr has quit [Ping timeout: 264 seconds]
bayed has quit [Quit: Connection closed for inactivity]
akurilin2 has quit [Ping timeout: 256 seconds]
Sawbones_ has quit [Remote host closed the connection]
mamiya has quit [Remote host closed the connection]
einarj has quit [Read error: Connection reset by peer]
x1337807x has joined #ruby
einarj has joined #ruby
vudew has joined #ruby
Sawbones_ has joined #ruby
palms has joined #ruby
livathinos has quit []
sevvie has joined #ruby
mjuszczak has quit []
Sawbones_ has quit [Remote host closed the connection]
Limix has joined #ruby
nettoweb has quit [Ping timeout: 272 seconds]
baweaver has joined #ruby
Pharaoh2 has joined #ruby
Sawbones_ has joined #ruby
dseitz has quit [Read error: Connection reset by peer]
horsecowdog has joined #ruby
dseitz has joined #ruby
meschiv2 has quit [Ping timeout: 264 seconds]
rocknrollmarc has joined #ruby
ponga has joined #ruby
momomomomo has joined #ruby
danman has joined #ruby
mjuszczak has joined #ruby
devans has quit [Read error: Connection reset by peer]
bim has quit [Remote host closed the connection]
chinmay_dd has quit [Remote host closed the connection]
blueOxigen has joined #ruby
devans has joined #ruby
scottelundgren has left #ruby ["Textual IRC Client: www.textualapp.com"]
bluOxigen has quit [Ping timeout: 245 seconds]
gfawcettpq has joined #ruby
bim has joined #ruby
dseitz_ has joined #ruby
Takle has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
CpuID has joined #ruby
meschiv2 has joined #ruby
rocknrollmarc has joined #ruby
horsecowdog has quit [Ping timeout: 256 seconds]
dseitz has quit [Ping timeout: 256 seconds]
yfeldblum has joined #ruby
<shevy> all hi
<headius> the CLR's JIT only runs once, immediately before execution
<arup_r> o/
<arup_r> bye
ponga has quit [Ping timeout: 240 seconds]
<headius> oops, out of context
<arup_r> who?
cartothemax has joined #ruby
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 37.0.1/2015040300]]
ki0 has joined #ruby
horsecowdog has joined #ruby
nettoweb has joined #ruby
Sawbones_ has quit [Remote host closed the connection]
sevvie has quit [Ping timeout: 244 seconds]
rocknrollmarc has quit [Ping timeout: 246 seconds]
<pagios> !help
A124 has joined #ruby
Karpuragauram has joined #ruby
Pharaoh2 has quit [Disconnected by services]
Pharaoh2_ has joined #ruby
davidhq has quit [Read error: Connection reset by peer]
vivekananda has quit [Read error: Connection reset by peer]
davidhq_ has joined #ruby
GaryOak_ has quit [Remote host closed the connection]
<jhass> apeiros: me, we should let ruboto answer "no" to ^ :P
<jhass> *mh
chipotle has quit [Read error: Connection reset by peer]
spyderma_ has joined #ruby
chipotle has joined #ruby
baweaver has quit [Remote host closed the connection]
Sawbones_ has joined #ruby
cartothemax has quit [Read error: Connection reset by peer]
pietr0 has joined #ruby
ki0 has quit [Ping timeout: 248 seconds]
Takle_ has joined #ruby
cartothemax has joined #ruby
tesuji has joined #ruby
<apeiros> while funny, I'd prefer a helpful answer. akin to "Help us help you. Put your code on gist.github.com, along with the input, the expected output and the actual output. if your actual output is an exception, gist the full backtrace.
<apeiros> "
CorpusCallosum has quit [Remote host closed the connection]
Fraeon has quit [Ping timeout: 256 seconds]
spyderman4g63 has quit [Ping timeout: 265 seconds]
Fraeon has joined #ruby
joshs has joined #ruby
Takle has quit [Ping timeout: 252 seconds]
lavros has quit [Quit: leaving]
vozcelik has quit [Read error: Connection reset by peer]
phale has joined #ruby
<jhass> yeah, could probably do that fuzzy, like word count < 10 and searching for (some|any)body
spyderma_ has quit [Read error: Connection reset by peer]
ghostmoth has joined #ruby
dumdedum has quit [Quit: foo]
towski_ has quit [Remote host closed the connection]
sevvie has joined #ruby
<havenwood> (some|any)(one|body)
spyderman4g63 has joined #ruby
<phale> hello
<phale> my code only gets client input one time: http://wklej.org/id/1684181/
wald0 has quit [Ping timeout: 240 seconds]
<phale> when it should get it always
wallerdev has quit [Ping timeout: 240 seconds]
<jhass> what happens?
Karpuragauram has quit [Quit: Leaving]
vivekananda has joined #ruby
<phale> jhass: I use netcat to connect to the server, I issue a command one time and it wont receive anymore
xiq has joined #ruby
<jhass> well, you have no loop inside your thread
xiq is now known as xrlabs
<jhass> so you only read once from the client socket
<phale> while s = client.gets.chomp
rbennacer has joined #ruby
<jhass> oh, right
<jhass> doing too many things on the side :P
mtakkman has joined #ruby
agent_white has quit [Ping timeout: 240 seconds]
<xrlabs> hey, what do you guys think of this job offer? https://t.co/s0kG2Re73t
<phale> what am i doing wrong exactly
RegulationD has joined #ruby
<xrlabs> It's targeting India i suppose, but still... 600€ for 180 hours / month leaves you no time for other stuff
<xrlabs> especially since it's a germany company and they should have enough to pay a dev if they want one!
davispuh has quit [Ping timeout: 250 seconds]
<apeiros> xrlabs: lead dev for 600$/month? wtf?
fabrice31 has joined #ruby
<apeiros> that sounds like a bad joke to me.
agent_white has joined #ruby
akurilin3 has quit [Quit: WeeChat 0.4.2]
bim has quit [Remote host closed the connection]
bim has joined #ruby
<phale> apeiros: Maybe you could help
agent_white has quit [Read error: Connection reset by peer]
<apeiros> phale: I can always help with everything. but atm I prefer to help myself ;-)
akurilin has joined #ruby
gsd has quit [Remote host closed the connection]
<apeiros> (ok, not always and not with everything)
<phale> oh okay then.
<jhass> phale: add Thread.abort_on_exception = true to the top of your program
<apeiros> oh, are we at "why `Thread.abort_on_exception = true` would be a good default`?
eoeamy has quit [Remote host closed the connection]
rbennacer has quit [Ping timeout: 264 seconds]
<jhass> apeiros: basically :P
<phale> undefined method starts_with?
<jhass> tada!
<phale> i think we've found the problem
aryaching has quit []
<phale> nope
Zamerick has joined #ruby
<apeiros> jhass: you're from germany, no? IME germany is at about half the salary of CH, so lead dev would start at a minimum of around 4k€?
<phale> more exceptiosn
<phale> exceptions*
<jhass> apeiros: tbh I still didn't research salaries
<apeiros> kk
fabrice31 has quit [Ping timeout: 255 seconds]
<jhass> but 4k sounds like bare minimum
<jhass> for lead dev
<havenwood> they have zero hires and have spent zero dollars. seems like a bad joke.
<phale> thanks jhass
<phale> i'll use this for debugging in the future
byprdct has joined #ruby
<apeiros> phale: keep it on all time, not just debugging.
rbennacer has joined #ruby
<apeiros> otherwise you'll have a silently failing app.
<phale> alright
agent_white has joined #ruby
despai has joined #ruby
<apeiros> havenwood: "meet hodor, our new lead dev!"
agent_white has quit [Read error: Connection reset by peer]
<apeiros> the quality I'd expect to get
byprdct has quit [Max SendQ exceeded]
hpoydar has quit [Remote host closed the connection]
byprdct has joined #ruby
<havenwood> who of course only programs in hodor-lang: https://github.com/hummingbirdtech/hodor
<apeiros> of course
<havenwood> hhodor? Hodor!? Hodor!? oHooodorrhodor orHodor!? d();
<phale> how do I fix "gets" closed stream exception
<phale> do I recuse it?
dfinninger has quit [Remote host closed the connection]
mengu has joined #ruby
<phale> rescue*
byprdct has quit [Max SendQ exceeded]
AlphaTech has quit [Ping timeout: 244 seconds]
byprdct has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 250 seconds]
wallerdev has joined #ruby
agent_white has joined #ruby
jvdp11 has joined #ruby
Megtastique has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
Pharaoh2_ is now known as Pharaoh2
jconnoll1 has joined #ruby
phale has left #ruby ["Leaving"]
wallerdev has quit [Client Quit]
gfawcettpq has quit [Ping timeout: 256 seconds]
wallerdev has joined #ruby
tvw has joined #ruby
jconnolly has quit [Ping timeout: 256 seconds]
horsecowdog has quit [Remote host closed the connection]
towski_ has joined #ruby
marr has joined #ruby
fenzil has quit [Quit: Leaving]
babykosh has joined #ruby
_1_shain has joined #ruby
<_1_shain> o
<xrlabs> apeiros: maybe they will even call you a ninja or a rockstar for that 600€, who knows
ping-pong has quit [Ping timeout: 256 seconds]
<apeiros> xrlabs: value
<xrlabs> if an employee ever asked me if I was a code ninja or a code rockstar I would shit on his table and leave
<xrlabs> *employer
babykosh_ has joined #ruby
babykosh has quit [Read error: Connection reset by peer]
babykosh_ is now known as babykosh
<atmosx> rock-start
<atmosx> lol
<jhass> ?whatschat _1_shain
<ruboto> _1_shain, WhatsChat is a crappy app that abuses IRC for something it is not: a dating chat. Please remove this app.
_1_shain has quit [Excess Flood]
<jhass> apeiros: btw, seems like "ROOM1" is WhatsChat too
Sawbones_ has quit [Remote host closed the connection]
<apeiros> interesting, how did they get around the _1_ prefix?
<jhass> I don't know
<jhass> I didn't toy for long with it
ki0 has joined #ruby
<jhass> maybe you can skip entering a name and then it chooses that? *shrug*
aghalarp has joined #ruby
<apeiros> na, stuff like _1_loverboy looked like they chose it deliberately
<jhass> yes, if you choose one _1_ is prepended
<jhass> I didn't try not choosing one
<jhass> but given I remember seeing ROOM1's for a while here, I guess you can skip that
tier has quit [Remote host closed the connection]
<jhass> I only noticed they have WhatsChat as user
<apeiros> kk
pablq has joined #ruby
iasoon has joined #ruby
ghr has joined #ruby
joshs has quit [Remote host closed the connection]
gfawcettpq has joined #ruby
Takle has joined #ruby
jerematic has quit [Remote host closed the connection]
joshs has joined #ruby
juanpaucar has joined #ruby
rbennacer has quit [Remote host closed the connection]
Lloyd is now known as lloyd
turtil has joined #ruby
dseitz_ is now known as dseitz
tpimtts_away is now known as tpimtts
mdarby has joined #ruby
ghr has quit [Ping timeout: 256 seconds]
stef204 has quit [Ping timeout: 245 seconds]
momomomomo has quit [Quit: momomomomo]
Takle_ has quit [Ping timeout: 256 seconds]
rbennacer has joined #ruby
mdarby has quit [Remote host closed the connection]
havenwood has quit []
sevvie has quit [Remote host closed the connection]
sevvie has joined #ruby
mdarby has joined #ruby
zz_AlphaTech has joined #ruby
ping-pong has joined #ruby
hpoydar has joined #ruby
juanpaucar has quit [Ping timeout: 276 seconds]
mtakkman has quit [Read error: Connection reset by peer]
zz_AlphaTech is now known as AlphaTech
<drocsid> I'm using the Logger to log messages like $log=Logger.new(STDOUT) $log.info("file found at #{uri}")
GaryOak_ has joined #ruby
<drocsid> $log.error("error getting #{uri}, server returned #{response.code}")
<drocsid> etc.
krisquigley has joined #ruby
<drocsid> how do I get the messages to display on my terminal
govg has joined #ruby
<drocsid> ?
<jhass> they don't?
<drocsid> no
<jhass> how do you run your script?
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
mtakkman has joined #ruby
<drocsid> ruby ./deploy.rb
tier has joined #ruby
<jhass> http://paste.mrzyx.de/pnw9jjpvh prints two lines to my terminal if I save it to a file, and do ruby that_file
tjl0015 has joined #ruby
<jhass> so you, or something you uses messes with your stdout I guess
jerematic has joined #ruby
<drocsid> jhass: I will try your script.
DLSteve has joined #ruby
claw_ has joined #ruby
claw has quit [Ping timeout: 276 seconds]
tier has quit [Remote host closed the connection]
<drocsid> seems to work outside of my application.
krisquigley has quit [Ping timeout: 264 seconds]
tier has joined #ruby
<drocsid> must be doing something wrong
chinmay_dd has joined #ruby
n80 has joined #ruby
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
last_staff has joined #ruby
Sawbones_ has joined #ruby
gusrub has joined #ruby
lethosor|away has quit [Quit: Connection closed for inactivity]
<drocsid> Here's my script with a few details removed. Maybe it's because of scope? http://pastie.org/10083104
Hijiri has joined #ruby
rbennacer has quit [Remote host closed the connection]
kadoppe has quit [Ping timeout: 264 seconds]
<drocsid> Anyway thanks for the example.
ArchRogem has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> the use of globals is a bit alarming, but for unrelated reasons
<jhass> are you sure your script even hits the logger calls?
amdbcg has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kadoppe has joined #ruby
rbennacer has joined #ruby
rodfersou has quit [Read error: Connection reset by peer]
rodfersou has joined #ruby
rbennacer has quit [Remote host closed the connection]
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
Kricir has quit [Remote host closed the connection]
iamjarvo has joined #ruby
wallerdev has quit [Quit: wallerdev]
iamjarvo has quit [Max SendQ exceeded]
Sawbones_ has quit [Remote host closed the connection]
iamjarvo has joined #ruby
Ellis has joined #ruby
<Ellis> is a method a design pattern? i mean it is used to solve a problem
rbennacer has joined #ruby
<drocsid> jhass: maybe I'm making a poor assumption, but the response code seems to return a value in my case statment. Regarding the use of globals, should I make this a class and use "private fields" instead? Not sure if that's the proper ruby terminology?
speaking1ode has joined #ruby
speaking1ode has joined #ruby
<jhass> drocsid: verifying assumptions is always good, so add an else branch to your case statement for unmatched values
speaking1ode is now known as jalapeno
<jhass> regarding the globals, half of them are constants, half of them want to be arguments to your method or a class if you you wrap your method into one
<drocsid> jhass: thanks. I am also going to try the log.info elsewhere.
speakingcode has quit [Disconnected by services]
<jhass> Ellis: no
jalapeno is now known as speakingcode
baweaver has joined #ruby
<Ellis> jhass: but according to wikipedia “a design pattern is a general reusable solution to a commonly occurring problem within a given context in software design.” so what doesn’t this count?
apoplexy has joined #ruby
pontiki has joined #ruby
<drocsid> jhass: yeah I was thinking about constants... I don't really like passing lots of arguments to methods. Considering a class. I'm only a novice programmer. Thanks for the tips.;
<jhass> Ellis: a method structures implementation, a design pattern structures software design
tosbourn has joined #ruby
n80 has quit [Quit: n80]
<jhass> drocsid: yw
davispuh has joined #ruby
<Ellis> jhass: doesn’t a factory method structure implemenation?
momomomomo has joined #ruby
willharrison has joined #ruby
quimrstorres has joined #ruby
<baweaver> Ellis: There's little to no point in debating semantics.
<Ellis> i’m not debating i’m asking for clarification
<jhass> factory method defines a way how your child classes interact with the parent class, that's a design decision
<jhass> maybe it helps to clarify that design patterns are nothing static
<jhass> they're not like keywords in a programming language
<jhass> they're rather terms for recurring patterns to easy conversation about your code
<jhass> *ease
<GaryOak_> beginners seem to get confused by this a lot
stef204 has joined #ruby
<jhass> "Oh, I see, this is a singleton?", "Yeah"
<Ellis> jhass: you said methods “structure implemenation” what does that mean?
<Ellis> btw thanks for responding to my question
<jhass> instead of "Oh, I see, this is a classes that makes sure there's only one instance of it by making the constructor private?"
jconnoll1 has quit [Quit: Lost terminal]
gfawcettpq has quit [Ping timeout: 244 seconds]
tosbourn has quit [Ping timeout: 250 seconds]
<djellemah> I don't like my patterns reified.
Sawbones_ has joined #ruby
<Ellis> you just like them abstract
<jhass> Ellis: structure as in divide into understandable, reusable chunks of code
FernandoBasso1 has quit [Quit: Leaving]
<Ellis> jhass: gotcah
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
<Ellis> so MVC is a design pattern, what are some other common ones?
<Ellis> active record
<baweaver> PubSub, Singleton, Factory
<jhass> Wikipedia has a nice category for that
<GaryOak_> If you remember that an 'object' in code is similar to an 'object' in the real world you'll have an easier time
r3dK1ng has quit [Remote host closed the connection]
sevvie has quit [Ping timeout: 252 seconds]
n80 has joined #ruby
<Ellis> so designpatterns are used to create software and methods create parts of software?
<centrx> the apperception of an object is the same whether the object exists in code or whether it exists in some 'underlying reality' posited by quantum physicists
<jhass> I think that's a common misconception about design patterns
<baweaver> Depending on how new you are I'd almost hesitate on fixating on design patterns.
<jhass> stuffing as many patterns into your application design doesn't lead to a good application design
<baweaver> that ^
hyperjuice has quit [Remote host closed the connection]
<jhass> I rather let them emerge naturally and use them as terms for those emerging constructs and maybe sometimes to go the last step
<djellemah> Ellis: write lots of code. The patterns will start becoming obvious.
bim has quit [Remote host closed the connection]
amdbcg has quit [Ping timeout: 276 seconds]
<jhass> which also mean there's not "the right way" to do "pattern X"
<baweaver> As to what happens when you're a near religious member of the cult of pattern
<baweaver> Class AbstractSingletonProxyFactoryBean
<jhass> you're allowed to bend and adjust them to your usecase
johnchalekson has quit [Ping timeout: 250 seconds]
momomomomo_ has joined #ruby
<jhass> Observer is a good example of that, you'll find hundreds of variations of that
momomomomo has quit [Ping timeout: 245 seconds]
momomomomo_ is now known as momomomomo
<GaryOak_> I wrote a blog post about design patterns, but I'm not going to post it for fear of humiliation :P
<djellemah> baweaver: I will memorise that for the next time I run into someone with pattern vision.
<baweaver> That's one of the best jabs in public source
<baweaver> though I've seen way worse in private Java code I had to deal with.
<baweaver> part of the reason I flat out refuse to touch Java
linoj has joined #ruby
<GaryOak_> that's because of enterprise Java, and the std lib, not because of Java itself
dfinninger has joined #ruby
<baweaver> Java itself is still an annoying language.
phutchins has quit [Ping timeout: 245 seconds]
pontiki has quit [Remote host closed the connection]
ki0 has quit [Remote host closed the connection]
<baweaver> enterprise aside.
n80 has quit [Quit: n80]
zzing has joined #ruby
sgambino has quit [Remote host closed the connection]
nerium has quit [Quit: nerium]
<GaryOak_> We should be asking what makes enterprise code need to look like that, and it's probably a type system
<baweaver> Part of me dies inside every time I see something like: new Function<String, Boolean>() {
<baweaver> GaryOak_: Nope
<Ellis> what kind of job can i get besides a rails developer if i learn ruby??
<GaryOak_> sinatra developer
<baweaver> Haskell and Scala are most certainly statically typed and far better languages
<baweaver> SysAdmin
mjuszczak has quit []
<baweaver> Chef
<djellemah> Coffeescript developer.
<GaryOak_> Python Dev
<Ellis> can i create desktop software with ruby? or is that dumb
<pagios> samurai
<baweaver> Doable but annoying
Soda has quit [Remote host closed the connection]
<baweaver> the toolkit for it never really took off well, but it can be done.
<Ellis> baweaver: i see
freerobby has joined #ruby
<baweaver> GaryOak_: Bad news if type systems really do create a problem, Matz was talking about going static in 3.0
<GaryOak_> whoa
<baweaver> both have their advantages
kyrylo has joined #ruby
<GaryOak_> definitely
<Ellis> baweaver: what does going static mean
<baweaver> types aren't the problem
<baweaver> static typing
<baweaver> instead of dynamic.
<ducklobster> Is there a way to catch a kill (Kernel#exit) from within a thread and NOT terminate the entire ruby application?
<jhass> baweaver: well, rather type checks
<baweaver> yeah, granted.
<weaksauce> the minitest docs say that it comes with rake tasks for running the tests. but for non rails projects it complains that there is no rakefile found. adding an empty rakefile talks about how there is no test task or no default task. Are the docs wrong or am I doing something wrong?
danman has quit [Quit: danman]
<GaryOak_> baweaver: type checks are a useful thing for enterprise software, whatever that actually means
<jhass> ducklobster: don't call exit in a thread?
<djellemah> baweaver: where was matz talking about that?
<baweaver> Look into category theory
<weaksauce> second sentence here: http://docs.seattlerb.org/minitest/#label-Running+Your+Tests
<baweaver> I'll have to find it
<jhass> ducklobster: I mean, just let it run out, break from the block or whatever
<ducklobster> jhass: im subclassing something that calls the exit
<djellemah> static typing seems to end up as a language-within-a-language.
<baweaver> category theory and contracts
<ducklobster> so i don't have immediate access to modify it atm
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
<baweaver> Int => Int def add_1(a) a + 1 end
mjuszczak has joined #ruby
pagios is now known as pagios_
<baweaver> the contract states that you're getting an int in and returning an int
thumpba has joined #ruby
<shadoi> ducklobster: rescue SystemExit
<ducklobster> shadoi: just ran into that soln, thanks!
freerobby has quit [Ping timeout: 245 seconds]
thumpba_ has joined #ruby
mhib has quit [Ping timeout: 264 seconds]
bim has joined #ruby
dfinninger has quit [Remote host closed the connection]
<baweaver> djellemah: He also mentioned borrowing message concurrency from languages like Erlang
tjl0015 has quit [Ping timeout: 246 seconds]
dfinninger has joined #ruby
michaeldeol has joined #ruby
sevvie has joined #ruby
x1337807x has joined #ruby
yourwebdevguy has joined #ruby
thumpba has quit [Ping timeout: 240 seconds]
_hollywood has quit [Ping timeout: 272 seconds]
Porfa has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yourwebdevguy has quit [Client Quit]
mjuszczak has quit []
<pagios_> i need a simple database system to store tokens in it, anything easy/lightwieght to use with ruby?
robbyoconnor has quit [Ping timeout: 246 seconds]
<matugm> How about Redis?
oddskill is now known as oddskill_away
ta has joined #ruby
ghr has joined #ruby
mjuszczak has joined #ruby
bim has quit [Remote host closed the connection]
PaulCapestany has quit [Quit: .]
yh has joined #ruby
<pagios_> redis vs nosql?
tmoor has quit [Ping timeout: 245 seconds]
<baweaver> pagios_: it would be a good idea to look into Redis first and find out what it does.
<pagios_> ok
<kaleido> redis kinda is nosql
<kaleido> in so much that its a key-value store
<baweaver> It's a KV store in memory with atomic operations
psudoze has quit [Ping timeout: 272 seconds]
nomadic_ has quit [Ping timeout: 246 seconds]
<pagios_> baweaver: so if it is stored in RAM is it prone to abrupt system shutdown?
senayar has joined #ruby
senayar has joined #ruby
<kaleido> youd use sentinel for HA
<kaleido> redis doesnt excel when writing to disk
ghr has quit [Ping timeout: 256 seconds]
<baweaver> you'd normally persist it somehow.
<kaleido> so if youre thinking longer term storing, you might look at riak
mhib has joined #ruby
<baweaver> Think of Redis as far more of a temporary storage than anything
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shadoi> redis sentinel is awful and loses data during partitions, see aphyr.com
<pagios_> baweaver: i mainly want to store some pushnotification tokens
<pagios_> thats all
<pagios_> from time to time the tokens will be added there
<djellemah> The best description I heard of redis: out-of-process, atomic, persistent data structure engine.
<shadoi> pagios_: if speed is not an issue, then just use PStore.
timanema has quit [Quit: leaving]
<pagios_> shadoi: thats a file based thing right
<shadoi> If you need shared network access, redis can work, but I'd look elsewhere if you need clustering and reliable replication.
<shadoi> pagios_: yeah
<pagios_> i dont need network access
<pagios_> tokens are stored on the same server
<pagios_> received in sinatra and stored there
momomomomo_ has joined #ruby
<djellemah> pagios_: what's your worst-case scenario if tokens are lost?
<shadoi> yeah, for occasional local writes pstore makes the most sense
Sawbones_ has quit [Remote host closed the connection]
<pagios_> tokens are lost means no push notification to users
<pagios_> which is a problem
<kaleido> riak
<kaleido> youll thank me later
<shadoi> lol
ta has quit [Remote host closed the connection]
<shadoi> Learn you some erlang and distributed systems to store your tokens on a single machine man. Do it!
<pagios_> riak?
baweaver has quit [Remote host closed the connection]
Ellis has quit [Quit: Ellis]
<kaleido> if lost tokens is bad, something distributed would be a need, im assuming
momomomomo has quit [Ping timeout: 250 seconds]
momomomomo_ is now known as momomomomo
<kaleido> and riak has a great ruby client
PaulCapestany has joined #ruby
Pupeno has quit [Quit: Leaving...]
Sawbones_ has joined #ruby
jshultz has joined #ruby
GnuYawk has quit [Ping timeout: 250 seconds]
Sawbones_ has quit [Remote host closed the connection]
cyberarm has joined #ruby
Jackneill has quit [Ping timeout: 250 seconds]
CustosLimen has joined #ruby
frem has joined #ruby
Sawbones_ has joined #ruby
baweaver has joined #ruby
zzing has joined #ruby
djbkd has quit [Remote host closed the connection]
colorisco has quit [Ping timeout: 246 seconds]
dmmoody has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
zzing has quit [Client Quit]
max96at is now known as max96at|off
Hijiri has quit [Quit: WeeChat 1.0.1]
<undeadaedra> I’m back
djbkd has joined #ruby
hyperjuice has joined #ruby
fabrice31 has joined #ruby
wallerdev has joined #ruby
tpimtts is now known as tpimtts_away
roolo has joined #ruby
<shadoi> riak is awesome, but it's insane overkill for the situation he described.
havenwood has joined #ruby
blueOxigen has quit [Ping timeout: 265 seconds]
Rapier- has quit [Quit: (null)]
rocknrollmarc has joined #ruby
hakunin_ has quit []
rocknrollmarc has quit [Max SendQ exceeded]
rocknrollmarc has joined #ruby
Darryl___ has quit [Quit: Connection closed for inactivity]
yh has quit [Ping timeout: 264 seconds]
endash has quit [Quit: endash]
blackmesa has joined #ruby
fabrice31 has quit [Ping timeout: 272 seconds]
endash has joined #ruby
ta has joined #ruby
hobodave has quit [Ping timeout: 240 seconds]
GnuYawk has joined #ruby
baweaver has quit [Remote host closed the connection]
Advocation has quit [Quit: Advocation]
lnr has quit [Ping timeout: 244 seconds]
wldcordeiro has quit [Ping timeout: 245 seconds]
iamjarvo has joined #ruby
Takle_ has joined #ruby
Ellis has joined #ruby
mtakkman has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
mengu has quit [Remote host closed the connection]
chinmay_dd has quit [Remote host closed the connection]
maximski has joined #ruby
bim has joined #ruby
maximski has quit [Max SendQ exceeded]
Takle has quit [Ping timeout: 252 seconds]
tier_ has joined #ruby
horsecowdog has joined #ruby
PaulCapestany has quit [Quit: .]
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
psudoze has joined #ruby
maximski has joined #ruby
wallerdev has quit [Quit: wallerdev]
mengu has joined #ruby
maximski has quit [Max SendQ exceeded]
pdoherty has quit [Quit: Leaving]
PaulCapestany has joined #ruby
tier has quit [Ping timeout: 264 seconds]
MissionCritical has quit [Ping timeout: 264 seconds]
linoj has quit [Quit: linoj]
RegulationD has quit [Ping timeout: 240 seconds]
yh has joined #ruby
last_staff has quit [Ping timeout: 240 seconds]
wallerdev has joined #ruby
towski_ has quit [Ping timeout: 245 seconds]
horsecowdog has quit [Ping timeout: 246 seconds]
maximski has joined #ruby
duggiefresh has quit [Read error: Connection reset by peer]
ki0 has joined #ruby
duggiefresh has joined #ruby
maximski has quit [Client Quit]
shazaum has quit [Quit: Leaving]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
baweaver has joined #ruby
JDiPierro has quit [Remote host closed the connection]
tesuji has quit [Ping timeout: 250 seconds]
dmmoody has quit [Remote host closed the connection]
hpoydar has quit [Remote host closed the connection]
A205B064 has joined #ruby
cartothemax has quit [Remote host closed the connection]
ki0 has quit [Ping timeout: 264 seconds]
pablq has quit [Ping timeout: 246 seconds]
towski__ has joined #ruby
leafybasil has joined #ruby
bim has quit [Remote host closed the connection]
ta has joined #ruby
iamjarvo has joined #ruby
juanpaucar has joined #ruby
lanemeyer has quit [Ping timeout: 248 seconds]
tier_ has quit [Ping timeout: 250 seconds]
revoohc has quit [Quit: revoohc]
mlev has quit [Read error: Connection reset by peer]
lektrik has joined #ruby
x1337807x has joined #ruby
MissionCritical has joined #ruby
rodfersou has quit [Quit: leaving]
pika_pika has quit [Ping timeout: 245 seconds]
dfinninger has quit [Remote host closed the connection]
dfinninger has joined #ruby
djbkd has quit [Remote host closed the connection]
longfeet has joined #ruby
wldcordeiro has joined #ruby
quimrstorres has quit [Remote host closed the connection]
wldcordeiro has quit [Max SendQ exceeded]
musashi1 has joined #ruby
longfeet_ has joined #ruby
GnuYawk has quit [Ping timeout: 256 seconds]
wldcordeiro has joined #ruby
juanpaucar has quit [Ping timeout: 250 seconds]
nerium has joined #ruby
<willharrison> is there a way to implement a karatsuba multiplication algorithm without causing a stack error?
kirun has quit [Quit: Client exiting]
rbennacer has quit [Remote host closed the connection]
dfinninger has quit [Ping timeout: 244 seconds]
linoj has joined #ruby
krisquigley has joined #ruby
Sawbones_ has quit [Remote host closed the connection]
longfeet has quit [Ping timeout: 240 seconds]
Brando753 has quit [Ping timeout: 265 seconds]
reinaldob has quit [Remote host closed the connection]
senayar has quit []
jimms has joined #ruby
bruno- has quit [Ping timeout: 252 seconds]
<GaryOak_> get a bigger stack
ta has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
krisquigley has quit [Ping timeout: 252 seconds]
ta has joined #ruby
baweaver has quit [Remote host closed the connection]
poc has joined #ruby
momomomomo has quit [Quit: momomomomo]
gfawcettpq has joined #ruby
jimms has quit [Read error: Connection reset by peer]
nomadic has joined #ruby
<willharrison> GaryOak_ how do I do that
nerium has quit [Quit: nerium]
<GaryOak_> more memory
<willharrison> :(
Kricir has joined #ruby
ta has quit [Ping timeout: 264 seconds]
<havenwood> willharrison: You can enable tail call optimization at compile time. It's disabled by default in favor of trace instruction.
robbyoconnor has joined #ruby
<willharrison> havenwood ah, cool. thanks
<havenwood> willharrison: Or you can use tail call optimization with RubyVM::InstructionSequence but it's clunky.
<undeadaedra> we’re talking about ruby?
<GaryOak_> yes
<undeadaedra> ruby has tail call optimization now?
mhib has quit [Remote host closed the connection]
GnuYawk has joined #ruby
mrmargolis has quit []
bim has joined #ruby
Jamo__ has joined #ruby
<havenwood> willharrison: Set `OPT_TRACE_INSTRUCTION 0` and `OPT_TAILCALL_OPTIMIZATION 1`: OPT_TAILCALL_OPTIMIZATION
senayar has joined #ruby
senayar has joined #ruby
baweaver has joined #ruby
<GaryOak_> willharrison: you could multithread it
mlev has joined #ruby
<willharrison> havenwood thanks, I will try this
<havenwood> undeadaedra: I like to turn it on.
<GaryOak_> and not store as much in memory at a time
<willharrison> GaryOak_ I think it would still fail :/
ClosedGL has joined #ruby
<undeadaedra> havenwood: that’s the way you like it?
freerobby has joined #ruby
<GaryOak_> lololol
<havenwood> undeadaedra: tco ftw
brb3 has quit [Quit: <.<]
jerius has quit [Quit: /quit]
<havenwood> and while you're at it: https://github.com/ruby/ruby/blob/trunk/vm_opts.h#L50
eytanfb has joined #ruby
<Ellis> can someone help me pass this rspec test
<willharrison> havenwood what does support joke do?
Sawbones_ has joined #ruby
<havenwood> willharrison: enables GOTO and some easter eggs
<willharrison> ah lol
ki0 has joined #ruby
djbkd has joined #ruby
lektrik has quit [Quit: Leaving]
lektricity has quit [Read error: Connection reset by peer]
<GaryOak_> Ellis: do you have a study guide?
<Ellis> no
<Mon_Ouie> e.g. the_answer_to_life_the_universe_and_everything evaluates to what you'd expect :p
ki0 has quit [Read error: No route to host]
psudoze has quit [Ping timeout: 265 seconds]
ki0 has joined #ruby
<undeadaedra> havenwood: TIL
<havenwood> a bit of bacon, lettuce and tomato
<havenwood> chunky bacon really is part of the language :P
horsecowdog has joined #ruby
<havenwood> bitblt
<Ellis> garyoak_: i tried to add tweet = Tweet.new(“Nom nom nom”) to it followed by tweet.status == “Nom nom nom” but taht didn’t work
greenbagels has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamninja has quit [Read error: Connection reset by peer]
<GaryOak_> in rspec?
<Ellis> yeah
<undeadaedra> Because it’s ”Om nom nom”
RegulationD has quit [Remote host closed the connection]
momomomomo has joined #ruby
dmmoody has joined #ruby
<GaryOak_> expect(tweet.status).to eq("Nom nom nom")
iamninja has joined #ruby
<GaryOak_> If you're using expectations
<Ellis> thanks
<GaryOak_> yep
momomomomo has quit [Client Quit]
dmmoody has quit [Remote host closed the connection]
diegoviola has quit [Read error: Connection reset by peer]
evanjs has quit [Remote host closed the connection]
jerius has joined #ruby
beat has joined #ruby
jerius has quit [Client Quit]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Soda has joined #ruby
mdarby has quit [Quit: Textual IRC Client: www.textualapp.com]
havenwood has quit [Ping timeout: 250 seconds]
diegoviola has joined #ruby
horsecowdog has quit [Ping timeout: 248 seconds]
ldnunes has quit [Quit: Leaving]
mjuszczak has quit []
CaptainCibai has quit [Remote host closed the connection]
Pharaoh2_ has joined #ruby
Pharaoh2 has quit [Disconnected by services]
Channel6 has joined #ruby
Boondox has quit []
pullphinger has quit []
chintanparikh has joined #ruby
RegulationD has joined #ruby
<chintanparikh> How would I create a custom structure in memory in Ruby? I need to create a custom header that I'd send through UDP
lpaste has quit [Ping timeout: 250 seconds]
<jhass> Array#pack usually
ki0 has quit []
phrozen77 has quit [Ping timeout: 252 seconds]
bauruine has quit [Ping timeout: 252 seconds]
x1337807x has joined #ruby
<chintanparikh> Basically need to create a TCP packet header
reinaldob has joined #ruby
<chintanparikh> Is there a better way of doing it than Array.pack?
spyderman4g63 has quit [Read error: Connection reset by peer]
<chintanparikh> I'm thinking something like a C struct
spyderma_ has joined #ruby
<jhass> ?best
<ruboto> "Best" and "better" are subjective. Try to use a different term.
<chintanparikh> Easier
Trieste has quit [Ping timeout: 272 seconds]
<jhass> no
<jhass> you can always wrap it into a class
poc has quit [Quit: leaving]
teddyp1cker has quit [Remote host closed the connection]
<chintanparikh> Yeah I guess that's the best option
<chintanparikh> Thanks!
<jhass> have a method on it (or even override to_s)
<jhass> that packs the data
yfeldblum has quit [Remote host closed the connection]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> "When you look at Ruby you will find Matz and DHH."
<shevy> wow
<shevy> so now DHH has created Ruby
phrozen77 has joined #ruby
Trieste has joined #ruby
<chintanparikh> Is there an easy way to create an int but of size n bytes?
bauruine has joined #ruby
<centrx> you could make a class that restricts the size
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
doodlehaus has quit [Remote host closed the connection]
lpaste has joined #ruby
<GaryOak_> shevy: I read that too! I was like "what!"
icebourg has quit []
<shevy> note that when he mentioned python
reinaldob has quit [Ping timeout: 265 seconds]
<shevy> he mentions only one person
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
dfinninger has joined #ruby
<undeadaedra> chintanparikh: what’s wrong with Array#pack?
<chintanparikh> undeadaedra: Nothing, just wanted something that was like a C struct
riotjones has joined #ruby
<chintanparikh> centrx: How would I restrict the size?
rocknrollmarc has quit [Ping timeout: 244 seconds]
yfeldblum has joined #ruby
nateberkopec has quit [Quit: Leaving...]
<ninjs> Hi guys, is it possible to take to arrays i.e. ["1","2","3"] and ["a","b","c"] and create something like [a, 1], [b, 2], [c, 3]?
danman has joined #ruby
<undeadaedra> yes
bim has quit [Remote host closed the connection]
<centrx> ninjs, zip
momomomomo has joined #ruby
<undeadaedra> >> %w[1 2 3].zip(@w[a b c])
<ruboto> undeadaedra # => undefined local variable or method `c' for main:Object (NameError) ...check link for more (https://eval.in/311093)
<undeadaedra> >> %w[1 2 3].zip(%w[a b c])
<ruboto> undeadaedra # => [["1", "a"], ["2", "b"], ["3", "c"]] (https://eval.in/311094)
<undeadaedra> (sorry, typo)
robbyoconnor has quit [Read error: Connection reset by peer]
CaptainCibai has joined #ruby
xenokiller has joined #ruby
duncannz has joined #ruby
<ninjs> thanks! You guys rock
<shevy> that nick is so cool
<shevy> there is ninja and then there is ninjs
<drocsid> I'm doing something wrong with the net/http library. My request string is turning null. I'm trying to use the same http session for each of my download requests. I'm only a ruby novice, can somebody explaing to me what I'm doing wrong?
<ninjs> @ centrx, undeadaedra
riotjones has quit [Ping timeout: 265 seconds]
<ninjs> shevy: thanks, haha I actually started a node.js dev company called Ninjs (play off of ninja, javascript)
<centrx> drocsid, Where is your request string?
psudoze has joined #ruby
<jhass> drocsid: as an aside, use p, not pus, for debugging prints
<jhass> *not puts
decoponio has quit [Quit: Leaving...]
<drocsid> jhass: ok
* undeadaedra does puts x.inspect
<undeadaedra> because I always forget about p
<undeadaedra> here, it’s said
sabo has joined #ruby
<ClosedGL> jhass is there a reason for p over puts? (pitfall etc)?
<shevy> it's shorter!
<jhass> ClosedGL: yes, puts calls to_s, p calls .inspect
<jhass> >> 1.to_s
<ruboto> jhass # => "1" (https://eval.in/311095)
havenwood has joined #ruby
<jhass> >> 1.inspect
<ruboto> jhass # => "1" (https://eval.in/311096)
xenokiller has quit [Ping timeout: 250 seconds]
<jhass> or maybe more clear:
<ClosedGL> interesting- cheers :-D
<jhass> >> print "1".to_s, "1".inspect
<ruboto> jhass # => 1"1"nil (https://eval.in/311097)
<ClosedGL> I normally end up keyboard mashing with puts foo.inspect
akurilin has quit [Read error: Connection reset by peer]
<baweaver> puts returns nil
dmmoody has joined #ruby
<jhass> p also returns the passed object, opposed to puts which returns nil
<baweaver> p returns object
<undeadaedra> ah, I’m not alone!
<baweaver> ninja'd
<undeadaedra> low speed stat
<jhass> who did ninja who is the question though :P
bim has joined #ruby
<jhass> anyway, that makes p for just throwing it into some expression
GnuYawk has quit [Ping timeout: 250 seconds]
<baweaver> jhass: DKO methinks
workmad3 has joined #ruby
akurilin has joined #ruby
nfk has quit [Quit: yawn]
<jhass> drocsid: I would suggest you get pry (gem install pry pry-doc pry-byebug, http://pryrepl.org) for debugging and exploring
Sawbones_ has quit [Remote host closed the connection]
<jhass> drocsid: to use it as a repl type pry instead of irb, to use it as debugger add require "pry"; binding.pry anywhere into your script
<jhass> ls Something lists methods that are available
<jhass> ? some.thing should display docs for it
<jhass> $ some.thing should display its source
<baweaver> or if you don't have it, object.methods
<baweaver> but yeah, pry is great
<jhass> yeah, but not so easy to read compared to pry's ls
dseitz has quit [Quit: bbl]
<baweaver> It's not
<drocsid> hmm maybe I need to use request=Net::HTTP::Get.new uri
<baweaver> Conrad explains it fairly well.
<drocsid> think I'm going about this the wrong way.
<drocsid> trying to read the response code
wasamasa is now known as rock
<baweaver> I'd made a few tools for pry which might be of interest for later: https://github.com/baweaver/pry-macro and https://github.com/baweaver/pry-session
rock is now known as wasamasa
<drocsid> the stream in the case, doesn't seem to be the right way to handle this
hpoydar has joined #ruby
meschiv2 has quit [Ping timeout: 256 seconds]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
musashi1 has quit [Ping timeout: 252 seconds]
sabo has quit [Ping timeout: 246 seconds]
wasamasa is now known as wasa
wasa is now known as wasamasa
odin22 has joined #ruby
baweaver has quit [Remote host closed the connection]
willharrison has quit [Quit: Textual IRC Client: www.textualapp.com]
wallerdev has quit [Quit: wallerdev]
duggiefresh has quit []
dmmoody has quit [Remote host closed the connection]
baweaver has joined #ruby
hpoydar has quit [Ping timeout: 250 seconds]
jenrzzz_ has joined #ruby
wallerdev has joined #ruby
xenokiller has joined #ruby
phutchins has joined #ruby
psudoze has quit [Ping timeout: 255 seconds]
wallerdev has quit [Client Quit]
psudoze has joined #ruby
iamjarvo has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
bradleyprice has quit [Read error: Connection reset by peer]
GnuYawk has joined #ruby
linoj has quit [Quit: linoj]
rbennacer has joined #ruby
gregf1 has quit [Quit: WeeChat 1.0.1]
bradleyprice has joined #ruby
Limix has quit [Quit: Limix]
idoru has quit [Remote host closed the connection]
davidhq_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz_ has quit [Ping timeout: 256 seconds]
dfinninger has quit [Remote host closed the connection]
neanderslob has quit [Remote host closed the connection]
mjuszczak has joined #ruby
wallerdev has joined #ruby
yh has quit [Ping timeout: 256 seconds]
rbennacer has quit [Ping timeout: 252 seconds]
neanderslob has joined #ruby
baweaver has quit [Remote host closed the connection]
palms has quit [Ping timeout: 250 seconds]
cartothemax has joined #ruby
cartothemax has quit [Client Quit]
amdbcg has joined #ruby
senayar has quit []
dfinning_ has joined #ruby
ghr has joined #ruby
enebo has quit [Quit: enebo]
chintanparikh has quit [Ping timeout: 248 seconds]
Limix has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
odin22 has quit [Quit: Leaving]
Ellis has quit [Quit: Ellis]
Soda has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fryguy9 has quit [Quit: Leaving.]
freerobby has quit [Quit: Leaving.]
mjuszczak has quit []
amortimer has quit [Ping timeout: 246 seconds]
diegoviola has quit [Read error: Connection reset by peer]
eytanfb has quit [Ping timeout: 252 seconds]
dmmoody has joined #ruby
ghr has quit [Ping timeout: 264 seconds]
ClosedGL has quit [Quit: Leaving]
roqo has quit [Ping timeout: 245 seconds]
fabrice31 has joined #ruby
x1337807x has joined #ruby
einarj_ has joined #ruby
momomomomo_ has joined #ruby
Jiyuhen has joined #ruby
momomomomo has quit [Ping timeout: 255 seconds]
momomomomo_ is now known as momomomomo
fabrice31 has quit [Ping timeout: 256 seconds]
einarj_ has quit [Ping timeout: 245 seconds]
einarj has quit [Ping timeout: 272 seconds]
lethosor|away has joined #ruby
dfinning_ has quit [Remote host closed the connection]
tosbourn has joined #ruby
tus has joined #ruby
phutchins has quit [Ping timeout: 264 seconds]
momomomomo has quit [Quit: momomomomo]
baweaver has joined #ruby
hyperjuice has quit [Remote host closed the connection]
hyperjuice has joined #ruby
tosbourn has quit [Ping timeout: 264 seconds]
d10n-work has quit [Quit: Connection closed for inactivity]
vdamewood has joined #ruby
charliesome has joined #ruby
diegoviola has joined #ruby
hyperjuice has quit [Ping timeout: 252 seconds]
zenspider has joined #ruby
psudoze has quit [Ping timeout: 264 seconds]
x1337807x has quit [Quit: Textual IRC Client: www.textualapp.com]
yh has joined #ruby
bkxd has quit [Ping timeout: 264 seconds]
momomomomo has joined #ruby
jottr has joined #ruby
dmmoody has quit [Remote host closed the connection]
RegulationD has quit [Remote host closed the connection]
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
reinaldob has joined #ruby
casadei has quit [Remote host closed the connection]
gregf1 has joined #ruby
neanderslob has quit [Ping timeout: 256 seconds]
RegulationD has joined #ruby
neanderslob has joined #ruby
jenrzzz has joined #ruby
danman has quit [Quit: danman]
x1337807x has joined #ruby
juanpaucar has joined #ruby
lucianosousa has quit [Quit: lucianosousa]
dmmoody has joined #ruby
Limix has quit [Quit: Limix]
reinaldob has quit [Remote host closed the connection]
ringarin has joined #ruby
freerobby has joined #ruby
juanpaucar has quit [Ping timeout: 276 seconds]
tris has quit [Quit: Leaving]
xenokiller has quit [Ping timeout: 265 seconds]
RegulationD has quit [Remote host closed the connection]
DrShoggoth has quit [Quit: Leaving]
krisquigley has joined #ruby
momomomomo has quit [Ping timeout: 250 seconds]
nateberkopec has joined #ruby
baweaver has quit [Remote host closed the connection]
juanpablo___ has joined #ruby
speakingcode has quit [Ping timeout: 264 seconds]
snath has quit [Ping timeout: 248 seconds]
dmmoody has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
Channel6 has quit [Remote host closed the connection]
Deele has quit [Ping timeout: 256 seconds]
devans has quit [Remote host closed the connection]
krisquigley has quit [Ping timeout: 246 seconds]
juanpablo__ has quit [Ping timeout: 250 seconds]
hyperjuice has joined #ruby
mjuszczak has joined #ruby
RegulationD has joined #ruby
tmoor has joined #ruby
juanpablo___ has quit [Ping timeout: 252 seconds]
arescorpio has joined #ruby
wallerdev has joined #ruby
momomomomo has joined #ruby
RegulationD has quit [Remote host closed the connection]
tgunr has quit [Quit: Textual IRC Client: www.textualapp.com]
eytanfb has joined #ruby
mbwe has quit [Quit: WeeChat 0.4.2]
baweaver has joined #ruby
psudoze has joined #ruby
xenokiller has joined #ruby
thumpba has joined #ruby
yh has quit [Ping timeout: 264 seconds]
GnuYawk has quit [Ping timeout: 250 seconds]
Azure has quit [Quit: Blue Sky Fish]
jshultz has quit [Quit: Connection closed for inactivity]
jefus_ has joined #ruby
Hijiri has joined #ruby
thumpba_ has quit [Ping timeout: 245 seconds]
yh has joined #ruby
beat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cajone has quit [Ping timeout: 244 seconds]
blackmesa has quit [Ping timeout: 250 seconds]
mjuszczak has quit []
jefus has quit [Ping timeout: 248 seconds]
ponga has joined #ruby
Ellis has joined #ruby
amdbcg has quit [Ping timeout: 248 seconds]
arescorpio has quit [Ping timeout: 264 seconds]
aghalarp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
predator117 has joined #ruby
ghr has joined #ruby
connor_goodwolf has joined #ruby
Igorshp has joined #ruby
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
xenokiller has quit [Ping timeout: 264 seconds]
jgorak_ has joined #ruby
predator217 has quit [Ping timeout: 250 seconds]
lanemeyer has joined #ruby
mjuszczak has joined #ruby
djbkd has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 244 seconds]
jgorak has quit [Ping timeout: 252 seconds]
aghalarp has joined #ruby
djbkd has joined #ruby
doodlehaus has joined #ruby
GnuYawk has joined #ruby
Sirupsen has joined #ruby
RegulationD has joined #ruby
doodlehaus has quit [Remote host closed the connection]
psudoze has left #ruby [#ruby]
diegoviola has quit [Remote host closed the connection]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MatthewsFace has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: ciao.]
tmoor has quit [Quit: Leaving]
doodlehaus has joined #ruby
_1_craigy197878 has joined #ruby
_1_craigy197878 has left #ruby [#ruby]
tuelz has quit [Quit: WeeChat 1.0]
doodlehaus has quit [Remote host closed the connection]
xenokiller has joined #ruby
xiq has joined #ruby
diegoviola has joined #ruby
xrlabs has quit [Read error: Connection reset by peer]
hyperjuice has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
riotjones has joined #ruby
mjuszczak has quit []
hyperjuice has joined #ruby
michael_mbp has quit [Excess Flood]
<xiq> ruby ruby ruby ruby
spyderma_ has quit [Read error: Connection reset by peer]
michael_mbp has joined #ruby
spyderman4g63 has joined #ruby
Sirupsen has quit [Quit: Textual IRC Client: www.textualapp.com]
cyberarm has quit [Quit: Bye]
<xiq> the &block statement is just sexy
jheg has quit [Quit: jheg]
cyberarm has joined #ruby
Kricir has joined #ruby
thumpba_ has joined #ruby
hyperjuice has quit [Ping timeout: 252 seconds]
riotjones has quit [Ping timeout: 246 seconds]
_cake has quit [Quit: Leaving]
danman has joined #ruby
teddyp1cker has joined #ruby
spyderman4g63 has quit [Ping timeout: 244 seconds]
thumpba has quit [Ping timeout: 245 seconds]
xiq has quit [Ping timeout: 265 seconds]
<GaryOak_> it is pretty awesome
Takle_ has quit [Remote host closed the connection]
weemsledeux has joined #ruby
wookiehangover has quit [Ping timeout: 245 seconds]
michaeldeol has joined #ruby
ponga has quit [Remote host closed the connection]
paradisaeidae has joined #ruby
teddyp1cker has quit [Ping timeout: 240 seconds]
arescorpio has joined #ruby
psudoze has joined #ruby
wldcordeiro has quit [Ping timeout: 245 seconds]
Spami has quit [Quit: This computer has gone to sleep]
casadei has joined #ruby
RegulationD has quit [Remote host closed the connection]
wookiehangover has joined #ruby
zzing has joined #ruby
doodlehaus has joined #ruby
mjuszczak has joined #ruby
mengu has quit [Remote host closed the connection]
gusrub has quit [Ping timeout: 256 seconds]
ponga has joined #ruby
mjuszczak has quit [Client Quit]
babykosh has quit [Quit: babykosh]
mjuszczak has joined #ruby
evanjs has joined #ruby
casadei has quit [Ping timeout: 265 seconds]
Feyn has joined #ruby
Rollabunna has quit [Remote host closed the connection]
jgorak_ is now known as jgorak
Rollabunna has joined #ruby
Filete has joined #ruby
ringarin has quit [Ping timeout: 250 seconds]
Igorshp has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
Kricir has joined #ruby
<Ellis> why is js so popular?
GaryOak_ has quit [Remote host closed the connection]
StevenXL has quit [Ping timeout: 255 seconds]
freerobby has quit [Quit: Leaving.]
a5i has quit [Quit: Connection closed for inactivity]
momomomomo has quit [Ping timeout: 246 seconds]
sevenseacat has joined #ruby
juanpablo___ has joined #ruby
Kricir has quit [Ping timeout: 256 seconds]
eytanfb has quit [Ping timeout: 252 seconds]
evanjs has quit [Remote host closed the connection]
dmmoody has joined #ruby
_sjs has joined #ruby
CloCkWeRX has joined #ruby
doodlehaus has quit [Remote host closed the connection]
baweaver has joined #ruby