apeiros changed the topic of #ruby to: Ruby 2.1.1; 2.0.0-p451; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
andy__ has joined #ruby
renderful has joined #ruby
esposito has quit [Client Quit]
mansi has joined #ruby
jonno11 has joined #ruby
jcs222 has quit [Quit: leaving]
griffindy has joined #ruby
ktosiek has quit [Ping timeout: 244 seconds]
pel_daniel has left #ruby [#ruby]
Fin1te has joined #ruby
andy__ has quit [Ping timeout: 240 seconds]
Beoran_ has joined #ruby
aspires has quit []
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
mikepack has quit [Remote host closed the connection]
andy__ has joined #ruby
jxf has quit [Ping timeout: 252 seconds]
hobodave has quit [Read error: Operation timed out]
mikepack_ has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
binaryhat has quit [Quit: Leaving]
aspires has joined #ruby
ScalaIrcClient has joined #ruby
mjs2600 has joined #ruby
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<whomp> is there a nice way of handling commandline args, like having '--message=hi' create some hash with :message pointing to "hi"?
ScalaIrcClient has quit [Remote host closed the connection]
msmith_ has joined #ruby
funburn has joined #ruby
yubrew has joined #ruby
SCommette has joined #ruby
predator217 has joined #ruby
renderful has quit [Ping timeout: 240 seconds]
renderful has joined #ruby
ScalaIrcClient has joined #ruby
SCommette has quit [Client Quit]
b00stfr3ak has quit [Ping timeout: 264 seconds]
freerobby has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
predator117 has quit [Ping timeout: 240 seconds]
<centrx> whomp, OptionParser is the basic standard, included in stdlib
visof has quit [Ping timeout: 265 seconds]
yubrew has quit [Ping timeout: 240 seconds]
msmith_ has quit []
kukyakya has joined #ruby
linguini has joined #ruby
srji has joined #ruby
<whomp> centrx, ty
senayar_ has joined #ruby
Nyyx has quit [Read error: Operation timed out]
srji_ has quit [Ping timeout: 252 seconds]
nari has joined #ruby
philcrissman has joined #ruby
lolmaus has quit [Read error: Operation timed out]
enricostn has quit [Ping timeout: 240 seconds]
mansi has quit [Remote host closed the connection]
snath has quit [Ping timeout: 240 seconds]
mansi has joined #ruby
jonno11 has quit [Read error: Connection reset by peer]
senayar has quit [Ping timeout: 244 seconds]
invinceable has joined #ruby
<invinceable> why does load('myrubyfile.rb') work but not require('myrubyfile.rb')
<invinceable> should i be using load instead?
cs02rm0 has joined #ruby
Nigel_ is now known as G
nanoyak has quit [Quit: Computer has gone to sleep.]
philcrissman has quit [Ping timeout: 244 seconds]
<caesura> if you want to use require, you can use "require(./myrubyfile.rb)"
mansi has quit [Ping timeout: 265 seconds]
Fin1te has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> but use require_relative instead. Or yet better fix your $LOAD_PATH
cs02rm0 has quit [Ping timeout: 240 seconds]
Trevoke has joined #ruby
TripTastic has joined #ruby
dingus_khan has joined #ruby
seggy is now known as segmond
GaryOak_ has quit [Quit: Leaving...]
<csmrfx> so who's on 2.0?
Kricir has quit [Remote host closed the connection]
<bricker> csmrfx: does 2.1.1 count?
TripTastic is now known as JBreit2
griffind_ has joined #ruby
JBreit has quit [Ping timeout: 244 seconds]
senayar_ has quit [Remote host closed the connection]
JBreit2 is now known as JBreit
Redz has joined #ruby
griffindy has quit [Ping timeout: 240 seconds]
<shinobi_one> csmrfx: i'm on 2.0.0-p247
kevind has quit [Quit: kevind]
razibog has quit [Quit: Leaving.]
duggiefresh has quit [Remote host closed the connection]
oso96_2000 is now known as oso|away
<csmrfx> well certainly, bricker
zz_karupanerura is now known as karupanerura
<csmrfx> did you have pains porting from 1.8 or 1.9?
ephemerian has quit [Remote host closed the connection]
Redz has left #ruby [#ruby]
sparrovv has quit [Remote host closed the connection]
Trevoke has quit [Read error: Operation timed out]
<bricker> csmrfx: no
mojjojo has quit [Quit: mojjojo]
<csmrfx> but had to update code?
<bricker> csmrfx: unlikely
dingus_khan has quit [Remote host closed the connection]
<csmrfx> so, it was 1.9
enricostn has joined #ruby
butblack has joined #ruby
<terrellt> 2.1.1 as well.
<bricker> Honestly a 1.8 -> 2.1.1 jump would probably be painless
snath has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
aspires has quit []
sailias has joined #ruby
aspires has joined #ruby
duggiefresh has joined #ruby
Fin1te has joined #ruby
geopet has quit []
Kricir has joined #ruby
relaxer has quit [Ping timeout: 244 seconds]
spider-mario has quit [Remote host closed the connection]
dingus_khan has joined #ruby
jcs222 has joined #ruby
<csmrfx> well I have some code that broke at 1.8 > 1.9
<csmrfx> yeah I know a lot about that
<csmrfx> but nothing about 2.9
<terrellt> 1.9 -> 2.0 really IS painless
<csmrfx> *2.0
<terrellt> Practically full compatibility
Geniack has joined #ruby
joelroa has quit [Ping timeout: 265 seconds]
Geniack has quit [Changing host]
Geniack has joined #ruby
banister_ has joined #ruby
<centrx> <bricker> Honestly a 1.8 -> 2.1.1 jump would probably be painless <--- Is this some kind of sick sadistic joke
thumpba has quit [Read error: Connection timed out]
<centrx> csmrfx, There were a lot of big incompatible syntactic changes in 1.8 -> 1.9, but not in 2.0 and 2.1
Salve has quit [Remote host closed the connection]
Geniack_ has quit [Ping timeout: 244 seconds]
Kricir has quit [Ping timeout: 264 seconds]
Salve has joined #ruby
banister has quit [Ping timeout: 265 seconds]
<bricker> centrx: name one thing that would cause problems
<bricker> like, serious problems
mojjojo has joined #ruby
robbyoconnor has quit [Ping timeout: 240 seconds]
<bnagy> sym: key hashes
<bricker> bnagy: 1.8 -> 2.x not affected
Wolland has joined #ruby
<centrx> hmm, that is an interesting theory
<bnagy> eh? 1.8 doesn't have them
<bricker> bnagy: ...
<centrx> incompatible changes
<Soulcutter> bricker: date parsing
<bricker> bnagy: 1.8 upgrading to 2.1.1
<bricker> Soulcutter: example?
<centrx> I think there would be a lot. You may not remember since 1.9 was so long ago now
<bnagy> bricker: yes? You upgrade your ruby from 1.8 to 2.1, and all your 1.8 code no worky
toastynerd has quit [Remote host closed the connection]
pwh has quit []
<bnagy> if you're still running 1.8 most 2.x code no worky
Fin1te has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
klaut_ has joined #ruby
<bricker> bnagy: dude
george2 has quit [Remote host closed the connection]
<bricker> >> RUBY_VERSION
<eval-in> bricker => "2.1.0" (https://eval.in/113892)
<bricker> >> { :bnagy => "Pay Attention" }
<eval-in> bricker => {:bnagy=>"Pay Attention"} (https://eval.in/113893)
<Soulcutter> bricker: Date.parse('01/02/2000') <-- in 1.8 this is January, in 1.9+ this is February
willb1 has quit [Ping timeout: 240 seconds]
<bnagy> bricker: go fuck yourself
<bricker> lol
<bricker> Soulcutter: ah
<terrellt> I believe I heard once they changed what the string representation of an array is, too.
lolmaus has joined #ruby
kitak has joined #ruby
<bnagy> they did
<terrellt> But I mean, these are little things.
<bnagy> 1.8 to_s did a join effectively
Salve has quit [Ping timeout: 240 seconds]
<Soulcutter> it depends on your app - could be big things
<bricker> very little things
jprovazn has quit [Quit: Leaving]
<terrellt> Well
<bnagy> lots of code used to use it
<terrellt> Have tests!
duggiefresh has quit [Remote host closed the connection]
klaut_ has quit [Read error: Operation timed out]
<Soulcutter> terrellt: the existence of tests doesn't necessarily make upgrades trivial
freerobby has quit [Quit: Leaving.]
duggiefresh has joined #ruby
toastynerd has joined #ruby
<bnagy> there was a whole isit1.9 website, at the time, which listed all the gems that broke
sdouglas has joined #ruby
<Soulcutter> Anyway, more than one thing has been named that could cause problems, ergo you lose bricker
<bnagy> which was a huge number
<Soulcutter> IN YO FACE
<bnagy> anyway, wrong is fine. Wrong and stubborn and abusive is just sad.
jjbohn has joined #ruby
tkuchiki has joined #ruby
duggiefresh has quit [Ping timeout: 240 seconds]
<bricker> Soulcutter: 2 things! :) And that's only if I count the Array one (which is being generous!)
redbeard0x0a has joined #ruby
andy__ has quit [Remote host closed the connection]
redbeard0x0a has left #ruby [#ruby]
jhass is now known as jhass|off
fgo has quit [Remote host closed the connection]
fedesilva has quit [Remote host closed the connection]
andy__ has joined #ruby
kennym1 has quit [Quit: Leaving.]
jjbohn has quit [Ping timeout: 265 seconds]
Tricky1 is now known as TrickY1
thumpba has joined #ruby
kennym has joined #ruby
michael_lee has joined #ruby
andy__ has quit [Read error: Connection reset by peer]
meatherly has joined #ruby
<Soulcutter> bricker: string encoding changed a lot
andy__ has joined #ruby
tedstriker has joined #ruby
angoragoats has joined #ruby
<Soulcutter> e.g. in 1.9 string .size takes encoding into account, so you may get different results vs 1.8
cashnguns has joined #ruby
toastynerd has quit [Remote host closed the connection]
<Soulcutter> in ruby 1.8 Hash#select returned an array, in 1.9+ it returns a hash
willb1 has joined #ruby
sailias has quit [Ping timeout: 240 seconds]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
rainmanjam has quit [Remote host closed the connection]
<Soulcutter> bricker: you can say any of these things are "little things" but when you add them up it can be surprising and unexpected what breaks
joelroa has joined #ruby
ScalaIrcClient has quit [Remote host closed the connection]
toastynerd has joined #ruby
ehc has quit [Quit: ehc]
ScalaIrcClient has joined #ruby
ScalaIrcClient has quit [Remote host closed the connection]
<RubyPanther> A lot of stuff still works on 1.8, but a lot doesn't. I still put lines like # define RSTRING_LEN(x) (RSTRING(x)->len) in C extensions
<RubyPanther> IME there was very little pain in the transition
datacrusher has quit [Quit: Saindo]
<RubyPanther> If you have a lot of pain, my question is, how clever was the problem code?
<csmrfx> hehe
<Soulcutter> I had mixed experiences - some projects I converted were pretty easy, but I had one project that took about a month
<csmrfx> my code is always way too clever
<csmrfx> not that I have time to start porting now
marcgg has quit [Ping timeout: 265 seconds]
<RubyPanther> The worst I had was a few dozen files, and 5 minutes with sed
morenoh159 has quit [Ping timeout: 240 seconds]
<Soulcutter> I inherited the project which was hard to upgrade, so it's not like I even had a say in the original cleverness ;)
ScalaIrcClient has joined #ruby
<Soulcutter> I think there was stuff that depended somehow on hash ordering and junk like that
ndrei has quit [Ping timeout: 240 seconds]
mehlah has quit [Quit: Leaving...]
mojjojo has quit [Quit: mojjojo]
ziikutv has joined #ruby
<ziikutv> Is there a gem or a pluging or w/e i can use to scrape data from urls
<Soulcutter> (obviously that was really junky code)
ScalaIrcClient has quit [Remote host closed the connection]
<ziikutv> anyone?
YamakasY_ has quit [Quit: The best revenge is massive success...]
duggiefresh has joined #ruby
<Soulcutter> I dunno. Nokogiri ?
robustus has quit [Ping timeout: 252 seconds]
Spami has joined #ruby
mois3x has quit [Ping timeout: 244 seconds]
ScalaIrcClient has joined #ruby
robustus has joined #ruby
fgo has joined #ruby
sdouglas has quit [Remote host closed the connection]
duggiefresh has quit [Ping timeout: 244 seconds]
sdouglas has joined #ruby
freerobby has joined #ruby
enricostn has quit [Remote host closed the connection]
<csmrfx> ziikutv: yes
Hobogrammer_ has joined #ruby
dingus_khan has quit []
agjacome has quit [Quit: Lost terminal]
Speed has quit [Ping timeout: 240 seconds]
Andrevan has quit [Ping timeout: 240 seconds]
infoget has quit [Quit: Leaving.]
toastynerd has quit [Remote host closed the connection]
* csmrfx waits for the "how" question
sdouglas_ has joined #ruby
sdouglas has quit [Ping timeout: 265 seconds]
starfox21 has joined #ruby
thomasxie has joined #ruby
duggiefresh has joined #ruby
ScalaIrcClient has quit [Remote host closed the connection]
Zunonia has joined #ruby
<RubyPanther> Usually, you have to journey through Dante's Hell before you can scrape data successfully
recurrence has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
niftyn8 has quit [Ping timeout: 265 seconds]
codeFiend has joined #ruby
thisirs has quit [Remote host closed the connection]
<csmrfx> RubyPanther: is that what you call google these days?
lewis_ has joined #ruby
<csmrfx> oh - you meant stackoverflow!
duggiefr_ has joined #ruby
armyriad has quit [Ping timeout: 240 seconds]
lewis_ is now known as Lewix
<RubyPanther> lol I can imagine that one, "hi this website im trying to scraep keeps returning broken HTML, whats do I do?
Lewix has quit [Changing host]
Lewix has joined #ruby
mansi has joined #ruby
fraterla_ has joined #ruby
smathieu_ has joined #ruby
<RubyPanther> first rule of scraping; if you were getting data from the right place, you wouldn't be scraping it
smathieu has quit [Ping timeout: 240 seconds]
bradhe has quit [Ping timeout: 240 seconds]
fraterla_ has quit [Client Quit]
aspires has quit []
cs02rm0 has joined #ruby
mikepack_ has quit [Remote host closed the connection]
shinobi_one has quit [Quit: shinobi_one]
duggiefr_ has quit [Ping timeout: 240 seconds]
mansi has quit [Ping timeout: 240 seconds]
fraterlaetus has quit [Ping timeout: 240 seconds]
itadder has joined #ruby
<csmrfx> Scraping is so clandestine
<csmrfx> "riding dirty" with ruby
cs02rm0 has quit [Ping timeout: 252 seconds]
Trevoke has joined #ruby
stringoO has quit [Quit: stringoO]
Aryasam has joined #ruby
joelroa has quit [Quit: Textual IRC Client: www.textualapp.com]
joelroa has joined #ruby
itadder has quit [Ping timeout: 265 seconds]
starfox21 has quit [Ping timeout: 244 seconds]
<ziikutv> csmrfx: sorry?
<ziikutv> I want to know release dates for certain product
<ziikutv> and there arent any APIs
<ziikutv> so i have to scrape
polydius has left #ruby ["EOF"]
jprovazn has joined #ruby
<ziikutv> but i have never used nokogiri and need some help :P
polydius has joined #ruby
crystal77 has joined #ruby
dik_dak has quit [Quit: Leaving]
superscott[8] has quit [Quit: superscott[8]]
timonv has joined #ruby
Trevoke has quit [Ping timeout: 244 seconds]
ScalaIrcClient has joined #ruby
jxf has joined #ruby
<csmrfx> ziikutv: how about a ruby scraping thread in SO
lmickh has quit [Remote host closed the connection]
pu22l3r has joined #ruby
Wolland has quit [Remote host closed the connection]
<csmrfx> Ive written couple of scrapers for clients, nokogiri has ok docs
maletor has quit [Quit: Computer has gone to sleep.]
<csmrfx> (so might just hop there)
<bnagy> ziikutv: also some of the browser automation tools that will do the scraping part have parsers that are good enough to do the data extraction
<bnagy> capybara, for example, might be a one stop shop if it's fairly simple
<bnagy> has xpath and css selectors etc
timonv has quit [Ping timeout: 240 seconds]
sdouglas_ has quit [Remote host closed the connection]
rmillerx has joined #ruby
momomomomo has quit [Quit: momomomomo]
whomp has quit [Ping timeout: 265 seconds]
smathieu_ has quit [Remote host closed the connection]
Nyyx has joined #ruby
pu22l3r has quit [Remote host closed the connection]
agjacome has joined #ruby
jbueza has quit [Quit: Textual IRC Client: www.textualapp.com]
pietr0 has quit [Quit: pietr0]
Nyyx has quit [Ping timeout: 252 seconds]
Kricir has joined #ruby
<ziikutv> bnagy: Where can i learn how xpath works?
tylershipe has joined #ruby
hobodave has joined #ruby
<ziikutv> nevermind
rbartos has quit [Remote host closed the connection]
_mtr has joined #ruby
thomasxie has left #ruby [#ruby]
pu22l3r has joined #ruby
rbartos has joined #ruby
butblack has quit [Quit: butblack]
afex has quit []
Aryasam has quit [Quit: Bye]
mjs2600 has quit [Remote host closed the connection]
tylershipe has quit [Ping timeout: 265 seconds]
Aryasam has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
Wolland has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
jjbohn has joined #ruby
renderful has quit [Ping timeout: 265 seconds]
andy__ has quit [Read error: Connection reset by peer]
lyanchih_ has joined #ruby
andy__ has joined #ruby
marcgg has joined #ruby
slowcon_ has joined #ruby
Wolland has quit [Ping timeout: 244 seconds]
speakingcode has joined #ruby
jjbohn has quit [Ping timeout: 240 seconds]
whomp has joined #ruby
yubrew has joined #ruby
ScalaIrcClient has quit [Remote host closed the connection]
nhhagen has quit [Remote host closed the connection]
ScalaIrcClient has joined #ruby
tedstriker has quit [Quit: Anti-Fraping status set.]
nhhagen has joined #ruby
relaxer has joined #ruby
braincra- has joined #ruby
bradhe has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
navyant24 has joined #ruby
renderful has joined #ruby
Zunonia has quit [Remote host closed the connection]
shadoi has joined #ruby
pu22l3r has quit [Remote host closed the connection]
Zunonia has joined #ruby
rbartos has quit [Read error: Operation timed out]
pu22l3r has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
ziikutv has left #ruby [#ruby]
Zunonia has quit [Remote host closed the connection]
Salve has joined #ruby
Zunonia has joined #ruby
nhhagen has quit [Ping timeout: 265 seconds]
braincrash has quit [Ping timeout: 265 seconds]
Nyyx has joined #ruby
Nirgali42 has quit [Ping timeout: 240 seconds]
shadoi1 has quit [Ping timeout: 244 seconds]
shadoi has quit [Client Quit]
shadoi has joined #ruby
julian` has quit [Ping timeout: 240 seconds]
Wolland has joined #ruby
Solnse has quit [Ping timeout: 240 seconds]
Trevoke has joined #ruby
lyanchih_ has quit [Quit: lyanchih_]
Salve has quit [Ping timeout: 244 seconds]
Wolland has quit [Read error: Connection reset by peer]
fgo has quit [Remote host closed the connection]
Wolland has joined #ruby
rmillerx has quit [Quit: rmillerx]
shadoi1 has joined #ruby
navyant24 has quit [Quit: navyant24]
i_s has joined #ruby
relaxer has quit [Quit: WeeChat 0.4.3]
shadoi has quit [Read error: Operation timed out]
markisonfire has quit [Quit: markisonfire]
kenneth has joined #ruby
Hanmac has joined #ruby
Trevoke has quit [Ping timeout: 240 seconds]
alexju has quit [Remote host closed the connection]
lyanchih has joined #ruby
dragun0v has joined #ruby
Wolland has quit [Ping timeout: 240 seconds]
Hanmac1 has quit [Ping timeout: 244 seconds]
agent_white has joined #ruby
<slowcon_> centrx: ok its official. got my server up and running on ubuntu!
<centrx> Excellent!
<centrx> Time to start mining Bitcoins!
<slowcon_> only for all of them to disappear :(
<slowcon_> centrx: I'm trying to install the ubuntu guy now
<slowcon_> gui*
not_a_guest has quit [Quit: Connection closed for inactivity]
<centrx> That crazy Ubuntu guy
<agent_white> Is anybady here?
ekinmur has joined #ruby
Mongey has quit [Quit: Mongey]
BadProphet has quit [Remote host closed the connection]
pwh has joined #ruby
morenoh149 has joined #ruby
meatherly has quit [Remote host closed the connection]
<bnagy> CAN ANY BADY FIIIND MEE.... SOME BADY TO LOOOVE
<boom__> i got a question
agent_white has quit [Quit: leaving]
agent_white has joined #ruby
amclain has joined #ruby
codeFiend has quit [Quit: codeFiend]
koell has joined #ruby
<csmrfx> nope, I dont see anybady here
_mtr has quit [Quit: Textual IRC Client: www.textualapp.com]
<boom__> how long should the pickaxe book take a beginner?
Vovko_ has quit [Remote host closed the connection]
meatherly has joined #ruby
SCommette has joined #ruby
agent_white has quit [Quit: leaving]
agent_white has joined #ruby
mgberlin has joined #ruby
jprovazn has quit [Ping timeout: 252 seconds]
kukyakya has quit [Ping timeout: 252 seconds]
Hanmac1 has joined #ruby
<centrx> boom__, There is no speed limit
<csmrfx> boom__: week to months
<boom__> i feel this book is taking longer than others I have done
mitt3ns has joined #ruby
<mitt3ns> ping
<csmrfx> well, to get through it in a month takes proper focus
agent_white has quit [Client Quit]
agent_white has joined #ruby
Hanmac has quit [Ping timeout: 264 seconds]
xerox357 has joined #ruby
toastynerd has joined #ruby
duggiefresh has quit [Ping timeout: 240 seconds]
agent_white has quit [Client Quit]
mitt3ns has quit [Client Quit]
sarmiena_ has quit [Quit: sarmiena_]
agent_white has joined #ruby
troyready has quit [Ping timeout: 252 seconds]
duggiefresh has joined #ruby
<snkcld> what does =~ do different than ==, for arrays?
Jamo has quit [Ping timeout: 264 seconds]
<bricker`LA> snkcld: they are two totally different methods
<agent_white> snkcld: One is comparison, one is regex.
Vovko has joined #ruby
aspires has joined #ruby
<bricker`LA> snkcld: for Array, =~ returns nil
<bricker`LA> and for almost every other object for that matter
<bricker`LA> except String and Regexp
Jamo has joined #ruby
troyready has joined #ruby
Hanmac has joined #ruby
petey has joined #ruby
<bricker`LA> snkcld: == checks if the two arrays are the same
Slavox is now known as Slavox|AFK
Hanmac1 has quit [Ping timeout: 240 seconds]
<boom__> centrx, i understand there is no due date. I am looking to set personal goals
xerox357 has quit [Remote host closed the connection]
<csmrfx> how many hours you think you can do every day
JBreit has quit [Read error: Connection reset by peer]
<snkcld> oh sorry, its an rspec thing
<csmrfx> boom__: ^
<snkcld> thanks though
xerox357 has joined #ruby
<Radar> how long is a piece of String?
zcreative has joined #ruby
<csmrfx> snkcld: are you familiar with ri
<bricker`LA> Radar: which piece?
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Radar> bricker`LA: a set of all possible Strings
<bricker`LA> 42?
mgberlin has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
toastynerd has joined #ruby
<boom__> Touche csmrfx
cjsarette has quit [Ping timeout: 245 seconds]
<boom__> and the grinding starts
meatherly has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
xerox357 has quit [Ping timeout: 265 seconds]
SCommette has quit [Quit: SCommette]
JBreit has joined #ruby
<csmrfx> boom__: good luck
<csmrfx> not to put you off, but I never finished that book
<csmrfx> I just made small apps that solved a real problem I had
<csmrfx> actually, I did do couple of the first chapters
<csmrfx> 2k5 baby
<dragun0v> when you have a local gem server, how do you ensure your machines are talking to that gemservers? What configurations are required for that to work?
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
nari has quit [Ping timeout: 265 seconds]
<pipework> dragun0v: rubygems have things called sources.
saarinen has quit [Quit: saarinen]
toastynerd has joined #ruby
gea has joined #ruby
<gea> I'm setting up a bit coin payment system on sinatra
aspires has quit []
<gea> does anyone have any experience with the api and a project of this sort?
sensen has joined #ruby
<dragun0v> Right now.. I do see that there is a .gemrc file with sources configured however I don't see it contacting that gemserver when I try to install a gem
cjsarette has joined #ruby
<dragun0v> pipework: i used --verbose and --debug to see if it contacting
mois3x has joined #ruby
duggiefresh has quit [Ping timeout: 252 seconds]
meatherly has joined #ruby
Jetchisel has joined #ruby
Voodoofish4301 has quit [Quit: Leaving.]
toastynerd has quit [Remote host closed the connection]
<dragun0v> pipework: also when I list gem sources, i do not see this configured source
invinceable has quit [Ping timeout: 252 seconds]
yubrew has joined #ruby
lyanchih has quit [Quit: lyanchih]
toastynerd has joined #ruby
lyanchih_ has joined #ruby
aspires has joined #ruby
agarie has quit [Quit: Leaving...]
gea has quit [Quit: gea]
kukyakya has joined #ruby
yubrew has quit [Read error: Operation timed out]
pu22l3r has quit [Ping timeout: 240 seconds]
Celm_ has joined #ruby
navyant24 has joined #ruby
toastynerd has quit [Remote host closed the connection]
toastynerd has joined #ruby
Celm has quit [Ping timeout: 244 seconds]
kevinykchan has joined #ruby
morenoh149 has quit [Ping timeout: 240 seconds]
caesura has quit [Quit: Leaving]
MrJoshua has quit [Remote host closed the connection]
nari has joined #ruby
Celm_ has quit [Remote host closed the connection]
binaryhat has joined #ruby
itadder has joined #ruby
kevinykchan has quit [Client Quit]
linguini has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
caesura has joined #ruby
sensen has quit [Quit: Lost terminal]
Celm has joined #ruby
rahult has quit [Quit: Back to the world of zombies]
Salve has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
nathansoz has quit [Ping timeout: 244 seconds]
mikepack has joined #ruby
nathansoz has joined #ruby
localredhead has joined #ruby
lw has quit [Quit: b]
havenwood has joined #ruby
Trevoke has joined #ruby
<localredhead> /join #rails
Celm has quit [Ping timeout: 240 seconds]
<csmrfx> naw
alvaro_o has quit [Quit: Ex-Chat]
Salve has quit [Ping timeout: 265 seconds]
jcs222 has quit [Read error: Operation timed out]
jcs222 has joined #ruby
Andrevan has joined #ruby
Trevoke has quit [Ping timeout: 265 seconds]
zcreative has quit [Quit: Computer has gone to sleep.]
eka has quit [Ping timeout: 264 seconds]
eka has joined #ruby
Kricir has quit [Remote host closed the connection]
ItSANg___ has quit [Quit: Leaving...]
griffind_ has quit [Quit: Computer has gone to sleep.]
mary5030 has quit [Remote host closed the connection]
existensil has quit [Ping timeout: 244 seconds]
binaryhat has quit [Quit: Leaving]
mgberlin has joined #ruby
jcs222 has quit [Remote host closed the connection]
mary5030 has joined #ruby
jcs222 has joined #ruby
axl_ has joined #ruby
achru has joined #ruby
yacks has joined #ruby
sski has quit [Remote host closed the connection]
sensen has joined #ruby
jonahR has joined #ruby
sski has joined #ruby
swapna has quit [Quit: Leaving]
ItSANgo has joined #ruby
cjsarette has quit [Ping timeout: 245 seconds]
jonahR has quit [Client Quit]
localredhead has quit [Ping timeout: 264 seconds]
cjsarette has joined #ruby
toastynerd has quit [Remote host closed the connection]
funburn has quit [Quit: funburn]
reset has joined #ruby
SCommette has joined #ruby
navyant24 has quit [Quit: navyant24]
Andrevan has quit [Ping timeout: 240 seconds]
jcs222 has quit [Remote host closed the connection]
jcs222 has joined #ruby
timonv has joined #ruby
funburn has joined #ruby
sski has quit [Ping timeout: 244 seconds]
mansi has joined #ruby
jdguzman has joined #ruby
vlad_starkov has joined #ruby
mary5030 has quit [Remote host closed the connection]
codeFiend has joined #ruby
funburn has quit [Ping timeout: 240 seconds]
jcs222 has quit [Ping timeout: 264 seconds]
vlad_starkov has quit [Ping timeout: 240 seconds]
mansi has quit [Ping timeout: 253 seconds]
timonv has quit [Ping timeout: 265 seconds]
jcs222 has joined #ruby
evenix has quit [Remote host closed the connection]
existensil has joined #ruby
marcgg_ has joined #ruby
marcgg has quit [Read error: Connection reset by peer]
marcdel has joined #ruby
eka has quit [Ping timeout: 265 seconds]
navyant24 has joined #ruby
Hanmac1 has joined #ruby
jcs222 has quit [Remote host closed the connection]
jcs222 has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
kukyakya has quit [Remote host closed the connection]
Kricir has joined #ruby
eka has joined #ruby
carif has quit [Ping timeout: 244 seconds]
kukyakya has joined #ruby
meatherly has quit [Remote host closed the connection]
meatherly has joined #ruby
bradhe has quit [Remote host closed the connection]
Kricir has quit [Ping timeout: 240 seconds]
dragun0v has quit [Remote host closed the connection]
zcreative has joined #ruby
jcs222 has quit [Remote host closed the connection]
MattStratton has quit [Ping timeout: 240 seconds]
jcs222 has joined #ruby
lolmaus has quit [Quit: No Ping reply in 180 seconds.]
lolmaus has joined #ruby
meatherly has quit [Ping timeout: 265 seconds]
reset has quit [Quit: Leaving...]
dseitz has joined #ruby
dseitz has quit [Client Quit]
jcs222 has quit [Ping timeout: 244 seconds]
grs has joined #ruby
dseitz has joined #ruby
Wolland has joined #ruby
jcs222 has joined #ruby
mansi has joined #ruby
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
petey has quit []
Hobogrammer_ has quit [Ping timeout: 265 seconds]
yubrew has joined #ruby
Wolland has quit [Ping timeout: 244 seconds]
jcs222 has quit [Ping timeout: 240 seconds]
kotakotakota has quit [Quit: Leaving]
kotakotakota has joined #ruby
jcs222 has joined #ruby
thomasxie has joined #ruby
thomasxie has left #ruby [#ruby]
armyriad has joined #ruby
yubrew has quit [Ping timeout: 264 seconds]
hermanmunster has quit [Remote host closed the connection]
TrickY1 has quit [Ping timeout: 252 seconds]
kevinykchan has joined #ruby
hermanmunster has joined #ruby
davedev24 has quit [Remote host closed the connection]
jcs222 has quit [Ping timeout: 240 seconds]
thomasxie has joined #ruby
jcs222 has joined #ruby
ekinmur has quit []
radic has quit [Ping timeout: 244 seconds]
psmolen has joined #ruby
<cashnguns> I was messing around with IRB and i got an error that kind of confused me. Anyone shed some light on this? TypeError: can't convert Time into time interval
hermanmunster has quit [Ping timeout: 240 seconds]
tomshafer has joined #ruby
polydius has quit [Quit: EOF]
radic has joined #ruby
morenoh149 has joined #ruby
<Nowaker> cashnguns: time is not time inerval. time is when, time interval is how long
jcs222 has quit [Ping timeout: 240 seconds]
hiyosi has quit [Ping timeout: 240 seconds]
<cashnguns> so when I was trying to throw my code into a method it was putting Time into a time interval?
IceDragon has quit [Quit: Space~~~]
<Nowaker> you are able to sleep for - how long - 5 seconds
hermanmunster has joined #ruby
axl_ has quit [Quit: axl_]
<Nowaker> but not to sleep for 6 Mar 2014
kukyakya has quit [Remote host closed the connection]
jonahR has joined #ruby
<havenwood> cashnguns: sleep(Time.now) # TypeError: can't convert Time into time interval
<cashnguns> nowaker that makes sense
duggiefresh has joined #ruby
robert___ is now known as robert_
<Nowaker> cashnguns: so you can sleep for five seconds: sleep 5
<centrx> >> raise banana
<eval-in> centrx => undefined local variable or method `banana' for main:Object (NameError) ... (https://eval.in/113940)
<cashnguns> i see the error i meant to put 1 not i
<cashnguns> coding on too little coffee...
<cashnguns> thanks guys!
yfeldblu_ has joined #ruby
jcs222 has joined #ruby
Hanmac has joined #ruby
<Nowaker> enjoy
randomnick_ has quit [Ping timeout: 240 seconds]
joelroa has quit [Ping timeout: 252 seconds]
braincra- has quit [Quit: bye bye]
Salve has joined #ruby
Hanmac1 has quit [Ping timeout: 244 seconds]
JasmeetQA has joined #ruby
redlines has quit [Ping timeout: 240 seconds]
redlines has joined #ruby
jdguzman has quit [Quit: Textual IRC Client: www.textualapp.com]
kukyakya has joined #ruby
braincrash has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
CaddyShack has quit [Quit: Leaving]
banek has quit [Ping timeout: 252 seconds]
jcs222 has quit [Ping timeout: 240 seconds]
robbyoconnor has joined #ruby
butblack has joined #ruby
Trevoke has joined #ruby
navyant24 has quit [Quit: navyant24]
jcs222 has joined #ruby
ScalaIrcClient has quit [Remote host closed the connection]
Salve has quit [Ping timeout: 240 seconds]
lyanchih_ has quit [Quit: lyanchih_]
axsuul has joined #ruby
Trevoke has quit [Ping timeout: 240 seconds]
rationalrevolt has joined #ruby
jcs222 has quit [Ping timeout: 240 seconds]
jcs222 has joined #ruby
fgo has joined #ruby
evenix has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
segmond has quit [Ping timeout: 265 seconds]
aspires has quit []
jcs222 has quit [Ping timeout: 240 seconds]
robert_ has quit [Read error: Connection reset by peer]
derek_c has joined #ruby
fridim__ has quit [Read error: Operation timed out]
aspires has joined #ruby
jonahR has quit [Quit: jonahR]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robbyoconnor has quit [Read error: Operation timed out]
vlad_starkov has joined #ruby
JBreit has quit [Read error: Connection reset by peer]
jlast has quit [Remote host closed the connection]
jcs222 has joined #ruby
polydius has joined #ruby
robbyoconnor has joined #ruby
sarmiena_ has joined #ruby
hiyosi has joined #ruby
freerobby has quit [Quit: Leaving.]
hornairs has quit [Read error: Operation timed out]
rationalrevolt has quit [Remote host closed the connection]
rationalrevolt has joined #ruby
recurrence has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
JBreit has joined #ruby
rational` has joined #ruby
davedev24 has joined #ruby
robert_ has joined #ruby
jcs222 has quit [Ping timeout: 252 seconds]
ageis_ is now known as ageis
lw has joined #ruby
jcs222 has joined #ruby
butblack has quit [Quit: butblack]
hiyosi has quit [Ping timeout: 265 seconds]
segmond has joined #ruby
rational` has quit [Remote host closed the connection]
rational` has joined #ruby
snuffeluffegus has quit [Ping timeout: 240 seconds]
Senjai has quit [Read error: Connection reset by peer]
rationalrevolt has quit [Ping timeout: 244 seconds]
joelroa has joined #ruby
sparrovv has joined #ruby
butblack has joined #ruby
jcs222 has quit [Ping timeout: 252 seconds]
jamto11 has joined #ruby
jcs222 has joined #ruby
Aquilo has joined #ruby
rational` has quit [Remote host closed the connection]
hornairs has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
sparrovv has quit [Ping timeout: 244 seconds]
freerobby has joined #ruby
bluOxigen has joined #ruby
joelroa has quit [Ping timeout: 240 seconds]
jcs222 has quit [Ping timeout: 240 seconds]
jcs222 has joined #ruby
aspires has quit []
Foo2 has joined #ruby
yubrew has joined #ruby
sdouglas has joined #ruby
thomasxie has quit [Remote host closed the connection]
segmond has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 240 seconds]
wiku5_ has quit [Quit: WeeChat 0.4.1]
wiku5_ has joined #ruby
jcs222 has quit [Ping timeout: 265 seconds]
cashnguns has quit [Quit: I'm just an old fashioned cowboy]
lxsameer has quit [Ping timeout: 240 seconds]
jcs222 has joined #ruby
mansi has quit [Remote host closed the connection]
alexju has joined #ruby
segmond has joined #ruby
lxsameer has joined #ruby
quatron has quit [Ping timeout: 244 seconds]
agent_white has quit [Quit: leaving]
mgberlin has quit [Remote host closed the connection]
wiku5_ has quit [Client Quit]
sdouglas has quit [Remote host closed the connection]
wiku5_ has joined #ruby
sailias has joined #ruby
jcs222 has quit [Remote host closed the connection]
jcs222 has joined #ruby
hermanmunster has quit [Remote host closed the connection]
ScalaIrcClient has joined #ruby
jeregrine has quit [Quit: Connection closed for inactivity]
agent_white has joined #ruby
<wiku5_> happy March 6th!
<centrx> Hip hip hooray!
lw has quit [Quit: s]
Aryasam has quit [Ping timeout: 265 seconds]
Aryasam has joined #ruby
<boom__> its 9:03PM
<boom__> still the 5th
koell has quit [Read error: No route to host]
<segmond> it's always 9:03pm somewhere
tomshafer has quit []
Deele has joined #ruby
sincereness has quit [Ping timeout: 245 seconds]
SCommette has quit [Quit: SCommette]
yasushi has joined #ruby
diegoviola has quit [Remote host closed the connection]
<havenwood> Remember remember the 5th of Marchtimber.
Celm has joined #ruby
jcs222 has quit [Ping timeout: 240 seconds]
jcs222 has joined #ruby
Salve has joined #ruby
sensen has quit [Ping timeout: 264 seconds]
lyanchih has joined #ruby
caesura has quit [Quit: Leaving]
butblack has left #ruby [#ruby]
r0bby has joined #ruby
Trevoke has joined #ruby
robbyoconnor has quit [Ping timeout: 264 seconds]
<centrx> Thu Sep 7492 00:11:01 EST 1993
i_s has quit [Remote host closed the connection]
i_s has joined #ruby
Salve has quit [Ping timeout: 240 seconds]
jcs222 has quit [Remote host closed the connection]
boom__ has quit [Remote host closed the connection]
jcs222 has joined #ruby
<agent_white> Wed Mar 5 22:11:58 MST 2014
<agent_white> centrx: What is the future like?
timonv has joined #ruby
<centrx> It is the endless past...
noober3 has joined #ruby
Trevoke has quit [Ping timeout: 244 seconds]
<agent_white> Damn. I hate Wednesdays.
jcs222 has quit [Ping timeout: 240 seconds]
sdouglas has joined #ruby
jcs222 has joined #ruby
vlad_starkov has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
Celm has quit [Remote host closed the connection]
itadder has quit [Remote host closed the connection]
Celm has joined #ruby
mikepack has quit [Remote host closed the connection]
Andrevan has joined #ruby
r0bby has quit [Quit: Konversation terminated!]
Celm has quit [Ping timeout: 244 seconds]
butblack has joined #ruby
i_s has quit [Ping timeout: 264 seconds]
duggiefresh has quit [Ping timeout: 240 seconds]
hornairs has quit [Quit: hornairs]
Aryasam has quit [Ping timeout: 265 seconds]
DrCode has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
The_NetZ has joined #ruby
not_a_guest has joined #ruby
<The_NetZ> hey; I can't seem to find a ruby 2.1.1 installer for windows, any suggestions? Its for a non-techie person, so compiling from source isn't an option :P
jcs222 has quit [Ping timeout: 240 seconds]
hiyosi has joined #ruby
freerobby has quit [Quit: Leaving.]
jcs222 has joined #ruby
<centrx> Whoa, people still use that?
<centrx> Why can't he use 2.0?
<The_NetZ> centrx: I don't see one for that either... maybe I missed it.
sensen has joined #ruby
nikkos has joined #ruby
butblack has quit [Quit: butblack]
JasmeetQA1 has joined #ruby
<nikkos> hello
hiyosi has quit [Ping timeout: 241 seconds]
<havenwood> The_NetZ: 2.0.0-p451 is indeed out. The two bugs that prevented 2.1.0 from being released with ruby-installer have been fixed in 2.1.1, so there should be a forthcoming release.
<nikkos> I have a problem with an exersice
<The_NetZ> ah
<nikkos> i write an employee's wages app and i created two methods: overtime_hours and normal_hours
<The_NetZ> does the rubyinstaller come with developement headers (eg, ruby.h) ?
<nikkos> the problem is that each method alone work but not together
codeFiend has quit [Quit: codeFiend]
yfeldblu_ has quit [Remote host closed the connection]
philcrissman has joined #ruby
codeFiend has joined #ruby
<centrx> nikkos, Those #countrate and #wages methods are not defined in your code?
<The_NetZ> ah, good.
<nikkos> I can't see the total overtime hours but if i remove the normal_hours from the dashboard, the overtime_hours method work
JasmeetQA has quit [Ping timeout: 240 seconds]
<nikkos> centrx: what do you mean ?
<nikkos> centrx: I am new in ruby
davedev24 has quit [Remote host closed the connection]
yubrew has joined #ruby
davedev24 has joined #ruby
<centrx> nikkos, Oh I guess those are from the "worker" library. Nevermind
Tingo1983 has joined #ruby
<centrx> nikkos, What doesn't work about this code?
<nikkos> puts @workers.reduce(0) { |sum, w| sum + w.overtime_hours}
kukyakya has quit [Remote host closed the connection]
kukyakya has joined #ruby
<nikkos> but if i remove the puts @workers.reduce(0) { |sum, w| sum + w.normal_hours}, I can see the w.overtime_hours
mikepack has joined #ruby
<nikkos> These methods can't work together
davy_ has joined #ruby
zcreative has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
joelroa has joined #ruby
yasushi has quit [Remote host closed the connection]
<The_NetZ> havenwood: many thanks, I suppose 2.0 is good enough for the moment, lol. I'm just operating on arch linux, and our testing repo has 2.1.1, so I was hoping to match my contributor to the ruby I'm using, but I don't think there is enough difference between the two to make or break him, lol.
mgberlin has joined #ruby
achru has quit [Remote host closed the connection]
achru has joined #ruby
Senjai`work has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
Senjai`work is now known as Senjai
Senjai has joined #ruby
Senjai has quit [Changing host]
davedev24 has quit [Ping timeout: 264 seconds]
<centrx> nikkos, Your methods are changing the state of the worker, stored in the @hours instance variable
<centrx> nikkos, So #normal_hours does not merely return "normal hours" so you can print, it changes @hours for the worker object, and that state is retained in the future path of the workers object
joelroa has quit [Ping timeout: 240 seconds]
davy_ has quit [Remote host closed the connection]
phansch has joined #ruby
<nikkos> centrx: So you suggest to create a new variable, for example @normal_hours ?
phansch has quit [Client Quit]
kitak has quit [Read error: Connection reset by peer]
kotakotakota has quit [Ping timeout: 244 seconds]
<centrx> nikkos, What is the #normal_hours method supposed to do?
<nikkos> centrx: thank you very much
dapz is now known as dapz_
kitak has joined #ruby
ebwise has quit [Ping timeout: 244 seconds]
<nikkos> i found the solution
noober3 has left #ruby [#ruby]
<centrx> Okay
<nikkos> i create a new variable @normal_hours and it works
makara has joined #ruby
butblack has joined #ruby
ehc has joined #ruby
tjr9898 has joined #ruby
jprovazn has joined #ruby
butblack has quit [Client Quit]
jamto11 has quit [Remote host closed the connection]
St_Marx has joined #ruby
havenwood has quit [Remote host closed the connection]
The_NetZ has left #ruby ["For a good time, try: 'curl -L http://bit.ly/10hA8iC | bash' ;)"]
havenwood has joined #ruby
rationalrevolt has joined #ruby
hermanmunster has joined #ruby
vlad_starkov has joined #ruby
<centrx> nikkos, You can also use local variables, without the @
ScalaIrcClient has quit [Ping timeout: 252 seconds]
thomasxie has joined #ruby
havenwood has quit [Ping timeout: 244 seconds]
centrx has quit [Quit: All this computer hacking is making me thirsty]
rationalrevolt has quit [Remote host closed the connection]
m4n1f3st0 has joined #ruby
chrisseaton has quit []
tvw has joined #ruby
vlad_starkov has quit [Ping timeout: 264 seconds]
dzhulk has quit [Quit: Leaving.]
wiku5_ has quit [Quit: WeeChat 0.4.1]
pierre1_ has joined #ruby
mikepack has quit [Remote host closed the connection]
<nikkos> centrx: yes you are right
Salve has joined #ruby
* Hanmac was right before it was cool ;P
krz has joined #ruby
heftig has quit [Quit: Quitting]
Trevoke has joined #ruby
yfeldblum has joined #ruby
Salve has quit [Ping timeout: 240 seconds]
crystal77 has quit [Quit: Computer has gone to sleep.]
kukyakya has quit [Remote host closed the connection]
Trevoke has quit [Ping timeout: 240 seconds]
supersym has quit [Quit: WeeChat 0.4.3]
aganov has joined #ruby
yacks has quit [Ping timeout: 264 seconds]
mikepack has joined #ruby
Hanmac1 has joined #ruby
Hanmac has quit [Ping timeout: 265 seconds]
sigurding has joined #ruby
kukyakya has joined #ruby
jefflyne has quit [Ping timeout: 264 seconds]
tjr9898 has quit [Remote host closed the connection]
yacks has joined #ruby
craigp has joined #ruby
havenwood has joined #ruby
jefflyne has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
havenwood has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
dzhulk has joined #ruby
ScalaIrcClient has joined #ruby
jefflyne has quit [Read error: Connection reset by peer]
kenneth has joined #ruby
hiyosi has joined #ruby
Atww has quit [Ping timeout: 264 seconds]
yubrew has joined #ruby
senayar has joined #ruby
jefflyne has joined #ruby
himsin has joined #ruby
senayar has quit [Remote host closed the connection]
hiyosi has quit [Ping timeout: 244 seconds]
andy__ has quit [Remote host closed the connection]
andy__ has joined #ruby
vlad_starkov has joined #ruby
anarang has joined #ruby
havenwood has quit [Ping timeout: 244 seconds]
yubrew has quit [Ping timeout: 240 seconds]
mgberlin has quit [Remote host closed the connection]
Vovko has quit [Remote host closed the connection]
njection has joined #ruby
mengu has joined #ruby
andy__ has quit [Ping timeout: 265 seconds]
senayar has joined #ruby
Steve445 has joined #ruby
joelroa has joined #ruby
craigp has quit []
jprovazn has quit [Ping timeout: 240 seconds]
klaut_ has joined #ruby
tagrudev has joined #ruby
navyant24 has joined #ruby
navyant24 has quit [Client Quit]
znake has quit [Quit: Linkinus - http://linkinus.com]
joelroa has quit [Ping timeout: 264 seconds]
Waheedi has joined #ruby
JasmeetQA has joined #ruby
<Waheedi> anything wrong here : I'm using URI.parse("http://asdasdas.com/#{value}")?
JasmeetQA1 has quit [Ping timeout: 240 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Steve445> getting a error?
<Waheedi> weird error
<Waheedi> URI::InvalidURIError: bad URI(is not URI?)
<Waheedi> as he is smart
<Steve445> have a code snippet to use?
mgetch has joined #ruby
ehc has quit [Quit: ehc]
<Waheedi> Net::HTTP.get(URI.parse('http://google.com/reload/bla/bob/reload_httpd/#{self.apikey}'))
mgetch has quit [Client Quit]
ScalaIrcClient has quit [Remote host closed the connection]
amritanshu_RnD has joined #ruby
amritanshu_RnD is now known as Guest46316
havenwood has joined #ruby
<Waheedi> just rib and paste URI.parse("http://asdasdas.com/#{value}") Steve445
<Steve445> what is your value?
<Waheedi> value = "foofigher"
<Waheedi> fighter*
<Steve445> does this work for you:
<Steve445> require 'uri'
<Steve445> value = "steve"
<Steve445> uri = URI.parse("http://asdasdas.com/#{value}")
<Steve445> puts uri
davy_ has joined #ruby
The_NetZ has joined #ruby
lyanchih has quit [Quit: lyanchih]
<Steve445> did that work?
<Waheedi> nop
<Steve445> what is your error?
<Waheedi> bad URI(is not URI?):
<Waheedi> oh man
phansch has joined #ruby
lyanchih has joined #ruby
<Waheedi> fixed
<Steve445> is there something special about your setup
<Steve445> what was it
slowcon_ has quit [Quit: slowcon_]
davy_ has quit [Read error: No route to host]
davy_ has joined #ruby
<The_NetZ> ok, suppose I have an array; I am attempting to use script.each { |s| \ file.open("filename described from the 1st element of the array") \ do stuff \ file.close }; is there some method I'm missing here? I'm currently using s.at(1).to_s to describe the filename
glu has joined #ruby
glu has quit [Client Quit]
apeiros has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
apeiros has joined #ruby
tvw has quit []
tvw has joined #ruby
slowcon_ has joined #ruby
toastynerd has joined #ruby
timonv has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
senayar has joined #ruby
omegahm has quit [Ping timeout: 245 seconds]
davy_ has quit [Ping timeout: 264 seconds]
dumdedum has joined #ruby
lodeston_ has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
srawlins has joined #ruby
hermanmunster has quit [Ping timeout: 252 seconds]
shaman42 has quit [Quit: Changing server]
joelroa has joined #ruby
mehlah has joined #ruby
timonv has quit [Ping timeout: 264 seconds]
xxi is now known as ixx
lodeston_ has quit [Quit: Textual IRC Client: www.textualapp.com]
lodeston_ has joined #ruby
kenneth has joined #ruby
Salve has joined #ruby
srawlins has quit [Changing host]
srawlins has joined #ruby
ScalaIrcClient has joined #ruby
ScalaIrcClient has quit [Remote host closed the connection]
joelroa has quit [Ping timeout: 240 seconds]
lodeston_ has quit [Client Quit]
lodeston_ has joined #ruby
Steve445 has left #ruby [#ruby]
ndrei has joined #ruby
ayaz has joined #ruby
Trevoke has joined #ruby
carraroj has joined #ruby
Mon_Ouie has quit [Ping timeout: 244 seconds]
Salve has quit [Ping timeout: 265 seconds]
monkegjinni has joined #ruby
fella5s has joined #ruby
srawlins has left #ruby [#ruby]
codeitagile has joined #ruby
mengu has quit [Remote host closed the connection]
Trevoke has quit [Ping timeout: 240 seconds]
lodeston_ is now known as zmattpetty
zmattpetty has left #ruby ["Textual IRC Client: www.textualapp.com"]
codeitagile has quit [Remote host closed the connection]
codeitagile has joined #ruby
senayar has quit [Remote host closed the connection]
mois3x has quit [Quit: mois3x]
toastynerd has quit [Remote host closed the connection]
codeFiend has quit [Quit: codeFiend]
bal has joined #ruby
monkegjinni has quit []
renderful has quit [Remote host closed the connection]
JasmeetQA has quit [Read error: Connection reset by peer]
jph98 has joined #ruby
senayar has joined #ruby
banek has joined #ruby
Shidash has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
yubrew has joined #ruby
monkegjinni has joined #ruby
timonv has joined #ruby
fgo has quit [Remote host closed the connection]
JasmeetQA has joined #ruby
apeiros has joined #ruby
hiyosi has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
Dreamer3 has quit [Ping timeout: 240 seconds]
amclain has quit [Quit: Leaving]
sigurding has quit [Read error: Connection reset by peer]
hiyosi has quit [Ping timeout: 240 seconds]
omegahm has joined #ruby
davy_ has joined #ruby
polydius has quit [Quit: EOF]
Macaveli has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
Dreamer3 has joined #ruby
davy_ has quit [Ping timeout: 252 seconds]
Vovko has joined #ruby
mikepack has quit [Remote host closed the connection]
northfurr has quit []
yacks has quit [Remote host closed the connection]
shvelo has joined #ruby
havenwood has quit [Remote host closed the connection]
NovapaX has joined #ruby
CaptainJet has quit []
andy___ has joined #ruby
<The_NetZ> question; is it possible to read in an array from a text file in ruby? example, foo contains a ruby array, can I read that in and then perform operations based on the contents of the array?
andy___ is now known as Guest9396
thomasxie has left #ruby [#ruby]
yarou has quit [Remote host closed the connection]
sigurding has joined #ruby
<apeiros> The_NetZ: ruby is touring complete, you can do pretty much everything.
<apeiros> *turing
<apeiros> see File.readlines
<The_NetZ> apeiros: hrm... I could use that, eh?
lsmola has joined #ruby
sailias has quit [Ping timeout: 244 seconds]
Shidash has quit [Ping timeout: 252 seconds]
thomasxie has joined #ruby
Umschwung has joined #ruby
sigurding has quit [Read error: Connection reset by peer]
Umschwung has quit [Max SendQ exceeded]
claymore has joined #ruby
agjacome has quit [Ping timeout: 240 seconds]
ephemerian has joined #ruby
codeitagile has quit [Quit: Leaving.]
Guest9396 has quit [Ping timeout: 265 seconds]
davy_ has joined #ruby
codeitagile has joined #ruby
jph98 has quit [Quit: jph98]
<The_NetZ> apeiros: I seem to have found what I need, thanks :P
davy_ has quit [Ping timeout: 252 seconds]
phantomtiger has joined #ruby
JasmeetQA has quit [Read error: Connection reset by peer]
timonv has quit [Remote host closed the connection]
ahawkins has joined #ruby
gaussblurinc has joined #ruby
ScalaIrcClient has joined #ruby
postmodern has quit [Quit: Leaving]
davy_ has joined #ruby
browndawg has joined #ruby
grzywacz has joined #ruby
yacks has joined #ruby
ScalaIrcClient has quit [Ping timeout: 264 seconds]
hfp has quit [Ping timeout: 245 seconds]
joelroa has joined #ruby
JasmeetQA has joined #ruby
davy_ has quit [Ping timeout: 244 seconds]
nari has quit [Ping timeout: 244 seconds]
JasmeetQA1 has joined #ruby
leonidlm has joined #ruby
browndawg has quit [Ping timeout: 240 seconds]
andikr has joined #ruby
Salve has joined #ruby
joelroa has quit [Ping timeout: 244 seconds]
browndawg has joined #ruby
JasmeetQA has quit [Ping timeout: 252 seconds]
predator217 has quit [Ping timeout: 264 seconds]
skaflem has joined #ruby
blackmesa has joined #ruby
tylersmi_ has quit [Remote host closed the connection]
thomasxie has quit [Remote host closed the connection]
Salve has quit [Ping timeout: 244 seconds]
tylersmith has joined #ruby
monkegjinni has quit [Remote host closed the connection]
nhhagen has joined #ruby
thomasxie has joined #ruby
davy_ has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
thomasxie has quit [Remote host closed the connection]
thomasxie has joined #ruby
ndrei has joined #ruby
carraroj has quit [Ping timeout: 240 seconds]
tylersmith has quit [Ping timeout: 265 seconds]
yubrew has joined #ruby
whomp has quit [Ping timeout: 265 seconds]
davy_ has quit [Ping timeout: 240 seconds]
hfp has joined #ruby
agent_white has quit [Quit: leaving]
phansch has quit [Quit: WeeChat 0.4.2]
agent_white has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
predator117 has joined #ruby
thomasxie has quit [Remote host closed the connection]
thomasxie has joined #ruby
kenneth has quit [Read error: Connection reset by peer]
derek_c has quit [Quit: Leaving]
kenneth has joined #ruby
jsilver has quit [Read error: Connection reset by peer]
jsilver_ has joined #ruby
pimpthink has quit [Ping timeout: 264 seconds]
sdouglas has quit [Remote host closed the connection]
ScalaIrcClient has joined #ruby
jxport has quit [Ping timeout: 244 seconds]
kwertie has quit [Ping timeout: 245 seconds]
LiohAu has joined #ruby
davy_ has joined #ruby
sparrovv has joined #ruby
morenoh149 has quit [Read error: Connection reset by peer]
jxport has joined #ruby
pimpthink has joined #ruby
kwertie has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
phantomtiger has quit [Quit: phantomtiger]
sparrovv has quit [Remote host closed the connection]
Faris has quit [Ping timeout: 240 seconds]
agent_white has quit [Quit: leaving]
guyz has quit [Ping timeout: 240 seconds]
davy_ has quit [Ping timeout: 265 seconds]
monkegjinni has joined #ruby
einarj has joined #ruby
YamakasY has joined #ruby
Guest46316 has quit [Ping timeout: 240 seconds]
francisfish has quit [Remote host closed the connection]
francisfish has joined #ruby
lurch_ has joined #ruby
digifiv5e has joined #ruby
digifiv5e is now known as Guest33982
Guest46316 has joined #ruby
Lewix has quit [Remote host closed the connection]
Xeago has joined #ruby
nikkos has quit [Quit: Computer has gone to sleep.]
francisfish has quit [Read error: Operation timed out]
camilasan has joined #ruby
skaflem has quit [Quit: Leaving]
pierre1_ has quit [Quit: Leaving]
sk87 has joined #ruby
mercwithamouth has quit [Ping timeout: 265 seconds]
davy_ has joined #ruby
thomas314 has quit [Quit: Connection closed for inactivity]
slowcon_ has quit [Quit: slowcon_]
<Waheedi> ANYONE HERE
<tobiasvl> wow yes
fumk has joined #ruby
bluepojo has joined #ruby
davy_ has quit [Ping timeout: 264 seconds]
Es0teric has quit [Quit: Nigga, im OUTIE 5000]
JasmeetQA1 has quit [Quit: Leaving.]
evenix has quit [Remote host closed the connection]
jxf has quit [Ping timeout: 241 seconds]
AlexRussia has joined #ruby
Waheedi has quit [Quit: Waheedi]
Advocation has joined #ruby
greenarrow has joined #ruby
nvrch has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
carraroj has joined #ruby
davy_ has joined #ruby
alexju has quit [Remote host closed the connection]
razibog has joined #ruby
relix has joined #ruby
Vovko has quit [Remote host closed the connection]
dzhulk1 has joined #ruby
nikkos has joined #ruby
elaptics`away is now known as elaptics
prc has quit [Quit: Leaving.]
prc1 has joined #ruby
Faris has joined #ruby
davy_ has quit [Ping timeout: 240 seconds]
dzhulk has quit [Ping timeout: 240 seconds]
thomasxie has left #ruby [#ruby]
cs02rm0 has joined #ruby
visof has joined #ruby
klaut_ has quit [Remote host closed the connection]
Guest33982 has quit [Ping timeout: 240 seconds]
echevemaster has quit [Quit: Leaving]
digifiv5e_ has joined #ruby
joelroa has joined #ruby
infoget has joined #ruby
poguez has quit [Quit: Connection closed for inactivity]
Salve has joined #ruby
arietis has joined #ruby
roolo has joined #ruby
andrewlio has joined #ruby
joelroa has quit [Ping timeout: 240 seconds]
AlSquire has joined #ruby
yubrew has joined #ruby
dzhulk1 has quit [Quit: Leaving.]
nikkos has quit [Quit: Computer has gone to sleep.]
prc1 has quit [Ping timeout: 244 seconds]
dzhulk has joined #ruby
dzhulk1 has joined #ruby
browndawg has quit [Read error: Connection timed out]
Salve has quit [Ping timeout: 240 seconds]
francisfish has joined #ruby
browndawg has joined #ruby
The_NetZ has left #ruby ["For a good time, try: 'curl -L http://bit.ly/10hA8iC | bash' ;)"]
timonv has joined #ruby
mikecmpbll has joined #ruby
kukyakya has quit [Remote host closed the connection]
DaniG2k has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
phansch has joined #ruby
dzhulk has quit [Ping timeout: 265 seconds]
ndrei has quit [Read error: Operation timed out]
fedesilva has joined #ruby
m1lt0n_ has joined #ruby
mojjojo has joined #ruby
Hanmac has joined #ruby
TMM has quit [Read error: Operation timed out]
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
dzhulk1 has left #ruby [#ruby]
dzhulk has joined #ruby
davy_ has joined #ruby
Hanmac1 has quit [Ping timeout: 240 seconds]
itadder has joined #ruby
cs02rm0 has quit [Ping timeout: 244 seconds]
JasmeetQA has joined #ruby
monkegjinni has quit [Remote host closed the connection]
guilleiguaran has quit [Quit: Connection closed for inactivity]
tedstriker has joined #ruby
davy_ has quit [Ping timeout: 240 seconds]
itadder has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
nomenkun has joined #ruby
hiyosi has joined #ruby
inversesquarelaw has quit [Ping timeout: 240 seconds]
timonv_ has joined #ruby
supersym has joined #ruby
ikaros has joined #ruby
hiyosi has quit [Ping timeout: 264 seconds]
shaunbaker has joined #ruby
TuxLyn has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
davy_ has joined #ruby
tobago has joined #ruby
<TuxLyn> Hey guys, I'm trying to generate json from two-dimensional array then write it all to file. Creating array worked. So is generating json on output but when I write it to file only last entry saved.
Elhu has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
e4xit has quit [Read error: Connection reset by peer]
lolmaus_ has joined #ruby
e4xit has joined #ruby
lolmaus has quit [Ping timeout: 265 seconds]
ndrei has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
davy_ has quit [Ping timeout: 240 seconds]
e4xit has quit [Read error: Connection reset by peer]
browndawg has quit [Read error: Connection timed out]
calleerlandsson has joined #ruby
klaut_ has joined #ruby
e4xit has joined #ruby
klaut_ has quit [Remote host closed the connection]
browndawg has joined #ruby
klaut_ has joined #ruby
dweeb_ has joined #ruby
MarcWeber has left #ruby [#ruby]
Hanmac1 has joined #ruby
Hanmac has quit [Ping timeout: 265 seconds]
<apeiros> TuxLyn: is that your question?
<TuxLyn> apeiros, yeah :)
julian` has joined #ruby
<TuxLyn> basicly what I've done is created array
<TuxLyn> like
<apeiros> TuxLyn: well, I kinda miss the part that is a question in that question
<apeiros> I also miss almost all relevant information, most importantly your code.
<TuxLyn> array = [ ['time', '...'], ['item', '...] ] now I've used JSON.generate on it.
<TuxLyn> to create json format
<TuxLyn> well I can't give code sorry not yet :)
sk87 has joined #ruby
<apeiros> please, paste a minimal, reproducable example of your code. preferably on gist.github.com
whomp has joined #ruby
<TuxLyn> ok let me try few more things first
<apeiros> TuxLyn: then write code which you can give, which exhibits your problem.
<TuxLyn> basickly
yasushi has joined #ruby
davy_ has joined #ruby
<apeiros> do you tell your car mechanic "sorry, can't show you my car, but please solve its problem!" too?
<TuxLyn> in php I would do > $json[] = json_encode($array); then I can access that anywhere.
vlad_starkov has quit [Remote host closed the connection]
<TuxLyn> how can I store whole array in > json = JSON.generate(array)
<TuxLyn> even when I use @ and $
<TuxLyn> I only get last entry
timonv_ has quit [Remote host closed the connection]
<apeiros> that's a profound misunderstanding
<apeiros> @ and $ only change the scope of the variable
<apeiros> they have absolutely no influence on what can or can't be assigned to them.
<TuxLyn> yes I need to access it outside rows.each
<apeiros> yeah, really, gist some code.
<TuxLyn> ok I'll play with it some more and if I hit a wall I'll reply thanks
aagdbl has joined #ruby
shredding has joined #ruby
smathieu has joined #ruby
yasushi has quit [Ping timeout: 240 seconds]
eka has joined #ruby
davy_ has quit [Ping timeout: 252 seconds]
Xeago_ has joined #ruby
mojjojo has quit [Quit: mojjojo]
mojjojo has joined #ruby
<TuxLyn> apeiros, you know any php ?
smathieu has quit [Ping timeout: 240 seconds]
Xeago has quit [Ping timeout: 240 seconds]
<apeiros> TuxLyn: I try to suppress any memories of it
<TuxLyn> apeiros, the reason I'm asking is the only way for me explain what I'm trying to do is by showing you in php :)
<apeiros> TuxLyn: it's not.
ndrei has quit [Ping timeout: 244 seconds]
<TuxLyn> ok np
<apeiros> all you have to do is: code, show example input, expected output, actual output.
rdark has joined #ruby
<apeiros> that "show" should have gone in front of "code"… rearranging sentences--
pfg has joined #ruby
pfg has quit [Max SendQ exceeded]
TMM has joined #ruby
<TuxLyn> I'll figure it out eventually ^_^ thanks for trying to help
TMM has quit [Remote host closed the connection]
TMM has joined #ruby
pfg has joined #ruby
<dweeb_> I want my method to be able to handle filepath, url or io object. is there a good way to do that? Should I simply check if the object responds_to? :read otherwise I use the open() method?
zeeraw has joined #ruby
<apeiros> dweeb_: personally I don't like that. I'd provide three different methods, potentially wrapping a common underlying method
<apeiros> dweeb_: but if you really want to, then yes, test for the behavior you need
yubrew has joined #ruby
Zespre has quit [Quit: leaving]
joelroa has joined #ruby
<dweeb_> apeiros: hmm, ok thanks
Vovko has joined #ruby
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dweeb_> apeiros: What names would you give to the methods?
Zunonia has quit [Quit: Computer has gone to sleep.]
<apeiros> given that I don't even know what your method does, how should I come up with one? :)
blackmesa has joined #ruby
<apeiros> probably: _from_path, _from_io, _from_readable, or somesuch
<dweeb_> apeiros: :) i was just curious
Salve has joined #ruby
Zespre has joined #ruby
ndrei has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
vlad_starkov has joined #ruby
yubrew has quit [Ping timeout: 244 seconds]
shvelo has quit [Ping timeout: 264 seconds]
lkba has quit [Ping timeout: 240 seconds]
joelroa has quit [Ping timeout: 265 seconds]
timonv has joined #ruby
pavelz has joined #ruby
<pavelz> hi, I have a small question, how is that .methods does not return a method but that method is available to be called on the object? there is no method missing. I am comparing Numeric and Rational classes.
Vovko has quit [Ping timeout: 265 seconds]
<apeiros> pavelz: did you check the whole ancestry?
Salve has quit [Ping timeout: 252 seconds]
<apeiros> pavelz: if it's in Numeric/Rational, you can also just tell us at which method you're looking
nowthatsamatt has quit [Quit: nowthatsamatt]
sk87 has joined #ruby
Advocation has quit [Quit: Advocation]
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
ScalaIrcClient has quit [Remote host closed the connection]
speed2 has joined #ruby
<pavelz> marshal_dump for example. I did: b = Numeric.new.methods.sort ... and a = 1.to_r.methods .. and a - b, returned some syms but they are not missing from Numeric. so I wonder why would Numeric.new.methods would not list those methods in .methods call
davy_ has joined #ruby
<apeiros> 1.to_r.method(:marshal_dump) # => #<Method: Rational#marshal_dump>
<apeiros> returns a method object for me…
<apeiros> ah, you say .methods doesn't list it
<pavelz> yeah
<apeiros> because it's private
<apeiros> .private_methods lists it
ikaros has quit [Quit: Ex-Chat]
<pavelz> oh. :facepalm:
speed2 is now known as Speed
marcdel has quit [Ping timeout: 240 seconds]
<bro> what's to_r?
<bro> >> 1.to_r
<eval-in> bro => (1/1) (https://eval.in/114213)
leonidlm has quit [Ping timeout: 240 seconds]
<apeiros> seems you figured it out :)
<bro> >> (0.25).to_r
<eval-in> bro => (1/4) (https://eval.in/114214)
cs02rm0 has joined #ruby
<pavelz> getting back in ruby now not from rails side. going up from the roots have to read Class Object and Mobulde more docs more carefully :)
<bro> >> 0.25.to_r
<eval-in> bro => (1/4) (https://eval.in/114216)
lolmaus_ has quit [Quit: No Ping reply in 180 seconds.]
<bro> what the fuck
<bro> is it new?
<pavelz> heh
lolmaus has joined #ruby
davy_ has quit [Ping timeout: 240 seconds]
browndawg has quit [Read error: Connection timed out]
<apeiros> bro: no, existed back in 1.8, over 10 years ago.
browndawg has joined #ruby
<bro> ´~_~`
<LiohAu> Can I do something like that in ruby ? : def set_security_code(security_code, confirmation_code = security_code)
<apeiros> LiohAu: did you just try it?
<apeiros> LiohAu: you know, fire up irb, define a method like that, call it and see?
<apeiros> (or better yet, pry instead of irb)
<LiohAu> no I did not
yasushi has joined #ruby
<apeiros> then I suggest you do
cs02rm0 has quit [Ping timeout: 240 seconds]
<LiohAu> well it works
<apeiros> *thumbs up*, good :)
charliesome has joined #ruby
mengu has quit [Remote host closed the connection]
<apeiros> LiohAu: generally, if you have "can I do X" type of questions - just go and try. and if it doesn't work, come back here and ask. don't forget to tell us what you tried.
joonty has quit [Ping timeout: 244 seconds]
nari has joined #ruby
recurrence has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mojjojo has quit [Quit: mojjojo]
peterellisjones has joined #ruby
charlies_ has quit [Ping timeout: 264 seconds]
joonty has joined #ruby
jcs222 has quit [Quit: leaving]
davy_ has joined #ruby
lyanchih has quit [Quit: lyanchih]
mattmcclure has quit [Quit: Connection closed for inactivity]
<TuxLyn> apeiros, I got it buddy :) All I needed is to use "push" ^_^
<TuxLyn> apeiros, the only thing I still need is to actually create associative array and not just regular array ^_^
davy_ has quit [Ping timeout: 244 seconds]
prc has joined #ruby
<shevy> these be called hashes TuxLyn
terence has joined #ruby
kennym has left #ruby [#ruby]
spider-mario has joined #ruby
Advocation has joined #ruby
lyanchih_ has joined #ruby
vlad_starkov has quit []
marcdel has joined #ruby
Mongey has joined #ruby
<terence> hi guys, what does class << self mean?
compleatang has joined #ruby
workmad3 has joined #ruby
popl has joined #ruby
popl has joined #ruby
kaliya has joined #ruby
browndawg has quit [Read error: Connection timed out]
davy_ has joined #ruby
<shevy> terence it extends the current instance; you can make a class method that way; class Foo; class << self; def test; puts 'hi'; end; end; Foo.test
browndawg has joined #ruby
pfg has joined #ruby
yasushi has quit [Remote host closed the connection]
<terence> shevy: if I type this: class Foo; def test; puts 'hi'; end; end; Foo.test , what's the difference?
ndrei has quit [Ping timeout: 240 seconds]
<shevy> terence that is a syntax error what you show here
<shevy> >> class Foo; def test; puts 'hi'; end; end; Foo.test
<eval-in> shevy => private method `test' called for Foo:Class (NoMethodError) ... (https://eval.in/114240)
<shevy> ok, not a syntax error
<shevy> a NoMethodError
jim0thy_ has joined #ruby
<terence> shevy: then if I want to make sense without class << self , what should I do?
davy_ has quit [Ping timeout: 240 seconds]
fgo_ has joined #ruby
<shevy> terence you can prefix the method with "self."
<shevy> >> class Foo; def self.test; puts 'hi'; end; end; Foo.test
<eval-in> shevy => hi ... (https://eval.in/114242)
<terence> I see, thank you shevy!
<shevy> \o/
francisfish has quit [Remote host closed the connection]
<shevy> class << self can be nice when you have many class methods or want to use aliases to class methods
mojjojo has joined #ruby
<shevy> though I'd wish there would be something like alias_class_method to complement alias_method
<tobiasvl> parslet is so awesome
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
achru_ has joined #ruby
brandon_1 has quit [Ping timeout: 252 seconds]
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
mojjojo has quit [Client Quit]
Advocation has quit [Quit: Advocation]
mojjojo has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
achru has quit [Ping timeout: 252 seconds]
davy_ has joined #ruby
brandon__ has joined #ruby
michael_mbp has quit [Excess Flood]
yubrew has joined #ruby
chrismcg_ has joined #ruby
chrismcg_ has left #ruby [#ruby]
sensen has quit [Ping timeout: 240 seconds]
shvelo has joined #ruby
zeeraw has joined #ruby
michael_mbp has joined #ruby
deadlock_ has quit [Read error: Connection reset by peer]
moneydouble has joined #ruby
davy_ has quit [Ping timeout: 264 seconds]
xlogic has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
Advocation has joined #ruby
richardc has joined #ruby
joelroa has joined #ruby
foredoomed has joined #ruby
mengu has joined #ruby
lyanchih_ has quit [Ping timeout: 264 seconds]
Salve has joined #ruby
itadder has joined #ruby
jaxxstorm has left #ruby [#ruby]
<shevy> is jquery the most popular among the javascript thingies?
ndrei has joined #ruby
browndawg has quit [Read error: Connection timed out]
joelroa has quit [Read error: Operation timed out]
davy_ has joined #ruby
nateberkopec has joined #ruby
achru_ has quit [Remote host closed the connection]
browndawg has joined #ruby
nolic has joined #ruby
achru has joined #ruby
richardc has quit [Remote host closed the connection]
itadder_ has joined #ruby
Salve has quit [Ping timeout: 265 seconds]
itadder has quit [Ping timeout: 244 seconds]
<TuxLyn> apeiros, figured it all out now ^_^ just needed to use array << { 'key' => 'value', 'key' => 'value' } then json = JSON.generate(array) and write it all to file.json ;-)
davy_ has quit [Ping timeout: 240 seconds]
<TuxLyn> apeiros, this json has [{ in beginning and }] throught but still parses fine
dawkirst has quit [Ping timeout: 264 seconds]
jxf has joined #ruby
richardc has joined #ruby
sleetdrop has joined #ruby
achru has quit [Remote host closed the connection]
Atw has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
cs02rm0 has joined #ruby
zeeraw has joined #ruby
davidcollom is now known as davidcollom_afk
blackmesa has joined #ruby
sk87 has joined #ruby
thomasxie has joined #ruby
compleatang has quit [Remote host closed the connection]
whomp has quit [Ping timeout: 264 seconds]
compleatang has joined #ruby
thomasxie has quit [Read error: Connection reset by peer]
cs02rm0 has quit [Ping timeout: 240 seconds]
chrismcg has joined #ruby
thomasxie has joined #ruby
moneydouble has quit [Quit: Leaving.]
supersym has quit [Quit: WeeChat 0.4.3]
francisfish has joined #ruby
davedev24 has joined #ruby
visof has quit [Quit: Reconnecting]
visof has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
davidcollom_afk is now known as davidcollom
kitak has quit [Remote host closed the connection]
mourest has joined #ruby
sleetdrop has quit [Quit: Computer has gone to sleep.]
Elhu has quit [Read error: Connection reset by peer]
karupanerura is now known as zz_karupanerura
roolo has quit [Quit: Leaving...]
pedda has joined #ruby
claymore has quit [Ping timeout: 265 seconds]
Elhu has joined #ruby
infoget has quit [Quit: Leaving.]
sk87 has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
lolmaus has quit [Ping timeout: 265 seconds]
visof has quit [Ping timeout: 264 seconds]
<hackeron> hey, question about eventmachine - is there anyway to print a warning if the reactor is being blocked by anything? - how would one know if a library is blocking the reactor?
zeeraw has joined #ruby
TuxLyn has quit [Quit: Leaving]
claymore has joined #ruby
razibog has quit [Quit: Leaving.]
zeeraw has quit [Client Quit]
zeeraw has joined #ruby
lolmaus has joined #ruby
itadder_ has quit [Read error: Connection reset by peer]
blackmesa has quit [Ping timeout: 244 seconds]
JohnBat26 has quit [Remote host closed the connection]
itadder has joined #ruby
tkuchiki has joined #ruby
banek has quit [Remote host closed the connection]
andrewlio has quit [Remote host closed the connection]
nvrch has quit [Quit: nvrch]
bro is now known as DickIsFree
JohnBat26 has joined #ruby
gaussblurinc has quit [Quit: Leaving.]
yubrew has joined #ruby
shredding has quit [Quit: shredding]
cs02rm0 has joined #ruby
roolo has joined #ruby
quatron has joined #ruby
claymore has quit [Ping timeout: 264 seconds]
Guedes has joined #ruby
sski has joined #ruby
Guedes has joined #ruby
Guedes has left #ruby [#ruby]
thomasxie has quit [Remote host closed the connection]
yeticry has joined #ruby
thomasxie has joined #ruby
yubrew has quit [Ping timeout: 265 seconds]
senayar has quit [Remote host closed the connection]
dapz_ has quit [Ping timeout: 240 seconds]
cs02rm0 has quit [Ping timeout: 240 seconds]
therod has joined #ruby
therod has quit [Client Quit]
moneydouble has joined #ruby
axsuul has quit [Ping timeout: 265 seconds]
infoget has joined #ruby
senayar has joined #ruby
leonidlm has joined #ruby
Mon_Ouie has joined #ruby
browndawg has quit [Read error: Connection timed out]
senayar has quit [Remote host closed the connection]
IceDragon has joined #ruby
grzywacz has quit [Ping timeout: 240 seconds]
JasmeetQA has quit [Read error: Connection reset by peer]
browndawg has joined #ruby
joelroa has joined #ruby
claymore has joined #ruby
m1lt0n_ has quit [Quit: leaving]
sepp2k has joined #ruby
griffindy has joined #ruby
moneydouble has quit [Quit: Leaving.]
Salve has joined #ruby
chipotle has quit [Quit: cya]
tjr9898 has joined #ruby
shvelo has quit [Ping timeout: 244 seconds]
joelroa has quit [Ping timeout: 265 seconds]
tjr9898 has quit [Remote host closed the connection]
tjr9898 has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Salve_ has joined #ruby
sk87 has joined #ruby
Salve has quit [Ping timeout: 264 seconds]
Megtastique has joined #ruby
ndrei has quit [Ping timeout: 265 seconds]
sarmiena_ has quit [Quit: sarmiena_]
<shevy> hmm
richardc has quit [Read error: Connection reset by peer]
davy_ has joined #ruby
richardc has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
chrismcg is now known as zz_chrismcg
francisfish has quit [Remote host closed the connection]
davy_ has quit [Ping timeout: 265 seconds]
pr0ggie has joined #ruby
banek has joined #ruby
kotakotakota has joined #ruby
browndawg has quit [Read error: Connection timed out]
richardc has quit [Read error: Connection reset by peer]
sski has quit [Remote host closed the connection]
richardc has joined #ruby
banister_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<weeb1e> Oh great, more encoding pains
<weeb1e> Anyone here happen to have dealt with correctly handling utf-8 encoding for other languages?
axsuul has joined #ruby
Deele has quit [Ping timeout: 265 seconds]
<weeb1e> I may not be able to understand Russian or Chinese, but I can see that the encoding for the text I'm handling is completely screwed
senayar_ has joined #ruby
_bart has quit [Remote host closed the connection]
linojon has joined #ruby
tkuchiki has quit [Remote host closed the connection]
lkba has joined #ruby
andrewlio has joined #ruby
<weeb1e> >> "\xD0\xA0\xD1\x83\xD1\x81\xD1\x81\xD0\xBA\xD0\xBE\xD0\xB5 \xD0\xBC\xD1\x8F\xD1\x81\xD0\xBE".encode('utf-8')
<eval-in> weeb1e => "Русское мясо" (https://eval.in/114292)
<weeb1e> What?!
hiyosi has joined #ruby
<weeb1e> It is correct in my IRC client, lol
gaussblurinc has joined #ruby
<weeb1e> Uhh, now I'm more confused
end_guy has quit [Ping timeout: 265 seconds]
davy_ has joined #ruby
<weeb1e> When I do that with my input string received over UDP I get: "\xD0" from ASCII-8BIT to UTF-8
dayepa has joined #ruby
mostlybadfly has joined #ruby
<weeb1e> (an exception)
axsuul has quit [Ping timeout: 244 seconds]
francisfish has joined #ruby
hiyosi has quit [Ping timeout: 240 seconds]
<terence> Hi guys, if I don't use self or class << self in the class/module to define a method, then what can I do with this method, just use this method inside the class/module?
tjr9898 has quit [Remote host closed the connection]
davy_ has quit [Ping timeout: 240 seconds]
Advocation has quit [Quit: Advocation]
tjr9898 has joined #ruby
<weeb1e> terence: Without pretending self, class << or ClassName. it is an instance method
<weeb1e> It can only be used from the instance level, once an instance has been initialized
ndrei has joined #ruby
jamto11 has joined #ruby
<tobiasvl> terence: class Foo; def method; end; end; foo = Foo.new; foo.method
tkuchiki has joined #ruby
<terence> Ahh I see, if I use self or class << self, then what kind is this method?
sailias has joined #ruby
sputnik13 has joined #ruby
senayar_ is now known as senayar
chrisseaton has joined #ruby
<weeb1e> terence: It is then a class level method
bal has quit [Quit: bal]
Squarepy has joined #ruby
sk87 has joined #ruby
nvrch has joined #ruby
peterellisjones has quit [Quit: Leaving.]
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
browndawg has joined #ruby
<terence> See! Thanks! Always got confused!
d00n has joined #ruby
davy_ has joined #ruby
gr33n7007h has quit [Read error: No route to host]
<terence> And what's the difference between singleton method and common method?
yubrew has joined #ruby
itadder has quit [Remote host closed the connection]
browndawg has quit [Ping timeout: 265 seconds]
<shevy> well
<shevy> a singleton exists only once
_bart has joined #ruby
davy_ has quit [Ping timeout: 264 seconds]
monkegjinni has joined #ruby
<shevy> you can define it on a specific object
peterellisjones has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
makara has quit [Ping timeout: 240 seconds]
<matti> shevy: ;]
<shevy> foo = Foo.new; def foo.hi; puts 'hi terence!'; end
<shevy> terence but it is rare that you will need singleton methods really
decoponio has joined #ruby
richardc has quit [Remote host closed the connection]
<shevy> terence class methods are often used because they look more elegant
<matti> A "common method" lives in a mud hut. Whereas Lord Singleton has the castle for himself ;]
richardc has joined #ruby
<shevy> File.parse('/etc/hosts') vs File.new.parse('/etc/hosts') - which one do you prefer terence
<shevy> hmm or perhaps
<shevy> File.new('/etc/hosts').parse
<matti> shevy: File.slurp
<shevy> matti go back to work!
<matti> :(
<matti> Oh dear, he caught me.
<shevy> it must be lunchtime over at your place
Mongey has quit [Quit: Mongey]
<shevy> actually, I have to go out soon and get something to eat myself...
mojjojo has quit [Quit: mojjojo]
francisfish has quit [Remote host closed the connection]
browndawg has joined #ruby
<matti> I am in .de
<matti> At a customer site.
cs02rm0 has joined #ruby
<matti> ;]
dzhulk has quit [Quit: Leaving.]
mojjojo has joined #ruby
nateberkopec has quit [Quit: Leaving...]
dblessing has joined #ruby
<shevy> damn
<shevy> weren't you in the UK before?
richardc has quit [Ping timeout: 264 seconds]
<shevy> you guys scuttle all over europe in like a second
<shevy> I'd do too if I'd have to eat in the UK :>
dblessing_ has joined #ruby
nateberkopec has joined #ruby
dzhulk has joined #ruby
dblessing_ has quit [Remote host closed the connection]
cs02rm0 has quit [Ping timeout: 240 seconds]
dblessing_ has joined #ruby
davy_ has joined #ruby
dblessing has quit [Read error: Connection reset by peer]
dblessing_ is now known as dblessing
dzhulk has quit [Client Quit]
yasushi has joined #ruby
agjacome has joined #ruby
fedesilva has quit [Read error: Connection reset by peer]
tjr9898 has quit [Remote host closed the connection]
armyriad has quit [Read error: Connection reset by peer]
<terence> shevy: of course the first one!
<shevy> \o/
armyriad has joined #ruby
zz_chrismcg is now known as chrismcg
jrhe has joined #ruby
fedesilva has joined #ruby
<shevy> hmm in the old convention is more important than configuration
<shevy> a convention could actually be like a default configuration
davy_ has quit [Ping timeout: 252 seconds]
Aryasam has joined #ruby
makara has joined #ruby
angoragoats has quit [Quit: angoragoats]
soc42 has joined #ruby
browndawg has quit [Ping timeout: 265 seconds]
lolmaus has quit [Remote host closed the connection]
achru has joined #ruby
lolmaus has joined #ruby
cina has joined #ruby
gr33n7007h has joined #ruby
joelroa has joined #ruby
yacks has quit [Read error: Operation timed out]
<cina> I'm trying to ask user for a string with `STDIN.gets` while iterating ARGF -- but it never waits/prompts for the user to enter anything
<cina> I think ARGF is responding to my `gets`
popl has quit [Ping timeout: 265 seconds]
itadder has joined #ruby
<cina> how can I iterate on ARGF.read and still read a string from user (`gets`)?
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
achru_ has joined #ruby
<apeiros> cina: yes, that's the point of ARGF
achru has quit [Ping timeout: 240 seconds]
<apeiros> it treats all values in ARGV as files and reads on them, after that it reads from stdin.
<apeiros> you have to use ARGV and read from the files yourself instead.
jamto11 has quit [Remote host closed the connection]
joelroa has quit [Ping timeout: 264 seconds]
davy_ has joined #ruby
<cina> I see
Advocation has joined #ruby
michael_lee has quit [Read error: Connection reset by peer]
sailias has quit [Ping timeout: 265 seconds]
richardc has joined #ruby
mojjojo has quit [Quit: mojjojo]
Aryasam has quit [Ping timeout: 264 seconds]
<cina> so once ARGF.read is called there's no way to get any input from user console?
mojjojo has joined #ruby
thomasxie has left #ruby [#ruby]
iamdoo2_ has quit [Remote host closed the connection]
<apeiros> I don't think so, yes
davy_ has quit [Ping timeout: 240 seconds]
mark_locklear has joined #ruby
<cina> apeiros: have to find a workaround :( anyways, thank you for helping out :-)
<apeiros> 14:15 apeiros: you have to use ARGV and read from the files yourself instead.
grzywacz has joined #ruby
<apeiros> that's the workaround
<cina> I want to pipe text to std
<cina> stdin
iamdoo2_ has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
browndawg has joined #ruby
nhmood has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
tjr9898 has joined #ruby
pothibo has joined #ruby
iamdoo2_ has quit [Remote host closed the connection]
ekinmur has joined #ruby
mojjojo has quit [Quit: mojjojo]
ekinmur has quit [Client Quit]
Aryasam has joined #ruby
davy_ has joined #ruby
mjs2600 has joined #ruby
iamdoo2 has joined #ruby
RaCx has joined #ruby
albedoa has joined #ruby
lw has joined #ruby
maasha has joined #ruby
Elhu has joined #ruby
duggiefresh has joined #ruby
davy_ has quit [Ping timeout: 240 seconds]
<apeiros> cina: and how do you suggest an application distinguishes between user-input and piped data?
WormDrink has quit [Ping timeout: 265 seconds]
<apeiros> to the app, it all looks the same
hiyosi has joined #ruby
<shevy> hmmm
<shevy> the only instance of TrueClass is true ?
<apeiros> yes
michael_lee has joined #ruby
freerobby has joined #ruby
senayar_ has joined #ruby
<shevy> oki
m8 has joined #ruby
<itadder> hi
hiyosi has quit [Ping timeout: 240 seconds]
<itadder> I screwed my vim
<itadder> trying to use a vim distro
<itadder> how do I reset it
<itadder> do I just need to remove . vimrc
<shevy> lol
<shevy> why do you use editors that challenge you so much itadder?
ffranz has joined #ruby
<itadder> oh I stoped using it
<shevy> \o/
<itadder> but I still would like to revert back to normal
<itadder> I just use sumblime text
rococo has joined #ruby
<itadder> and not fancy, the reason I like sublime text is beaitfy sublime
<shevy> vim should read only a few files, .vimrc in your $HOME, and perhaps /etc/vim* too
<itadder> I wish I know of that when I took c++ 101 in college long time ago
senayar has quit [Ping timeout: 240 seconds]
Wolland has joined #ruby
<itadder> the professor would always help in her office she knew I had adhd, but she was very strict on how the formating looked
<itadder> my code was always a mess, and I didn't know such program existed that would line up the code neatly...
<shevy> did she tell you to use vim
<shevy> well
<itadder> nope
<itadder> we used visual c++
<shevy> the first thing you need for your code is good eyes really
<itadder> a old old old old version
<itadder> shevy: ahh
jonno11 has joined #ruby
Tocacar has joined #ruby
<itadder> I read in the book learning ruby the hard way
<itadder> you need good eyes, atteion to detail
<shevy> that was written by someone who abandoned ruby
Hanmac has joined #ruby
<Tocacar> hello - how does one install net-ssh?
<shevy> yeah, good eyes are always important, even if you have thick glasses
Speed has quit [Ping timeout: 240 seconds]
<itadder> oh that book was
<Tocacar> gem install net-ssh fails
<shevy> there are some blind programmers, that is quite impressive how they can arrange code at all
<itadder> I heard a podcast or a comment in some blog long time ago
<shevy> Tocacar can you not download from rubygems.org directly?
<itadder> about dragon natural speaking
<itadder> a blind person said he uses that to program
<itadder> I was like wow
mjs2600 has quit []
davy_ has joined #ruby
<Tocacar> shevy: I'll go and see, thanks! (I don't know anything at all about Ruby)
Hanmac1 has quit [Ping timeout: 264 seconds]
<itadder> why did he abandoned ruby
yubrew has joined #ruby
<shevy> if you can not download from https, I uploaded to http://shevegen.square7.ch/net-ssh-2.8.0.gem
<itadder> is lynda.com worth it to pay for ruby course
<Tocacar> shevy: where would I find my gem file on Windows?
<itadder> I think I will start with my project maybe in the next two week
<shevy> itadder he likes drama. Not sure why he abandoned ruby, he moved to python, but I think he is more a C coder. C hackers in general are less dependent on scripting languages
<itadder> ahh
<shevy> Tocacar can you start IRB? in general, "gem env", or in irb: system "gem env" should give you info
kaldrenon has joined #ruby
Mongey has joined #ruby
<itadder> I want ruby to be the first lang I learn
<itadder> so I can learn others
<shevy> Tocacar all gems are downloaded to a cache/ and gem/ subdirectory, you just need to find that; it is usually somewhere in $SITE_DIR/ path prefix of ruby install
<itadder> damn I am late to work
<itadder> I stayed until 8 pm yesterday
<itadder> Guess what my boss never thought of saying oh do You want me to buy you pizza
<itadder> or some dinner
<itadder> thi sis the first job, I stayed late that they never asked or provided that
<Geniack> i think we working in the same office dude
<Tocacar> oh yes, thanks a million shevy
mojjojo has joined #ruby
<itadder> I done trade floor before that we did a great job
<itadder> and got food
<itadder> Geniack: yea my office is cheap
<itadder> and they love to rush
<nhmood> how would you go about writing a test (with rspec) that expects an output to stdout
<Geniack> naw that aint my office then :P
<itadder> the provider for the trade platform just finished the 64 bit widnows 7 version of thier software last week
<itadder> or two weeks ago I should say
<Geniack> no windows installations over her
<itadder> and we have until march 25 to finish windows xp upgrade to 7
<Geniack> e
<itadder> good
<itadder> Geniack: I went to constant contact last month and they all use ruby and macs
<maasha> Hey, what is needed to update a percentage number in the same spot output to a terminal window?
<itadder> they get a lot of work done
davy_ has quit [Ping timeout: 240 seconds]
gbt has joined #ruby
<maasha> curses seems like overkill?
<itadder> they mostly in the terminal, emacs, and or realacs or sublime
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Raboo has joined #ruby
Megtastique has quit []
Tocacar has left #ruby [#ruby]
<Geniack> itadder: did you know, if you're a google employee you have to come up with a good reason to NOT use macs
<Geniack> google is the biggest mac customer
<itadder> Geniack: yea I saw that podcast
<shevy> maasha tried to flush yet via ansi escape codes?
<itadder> Geniack: yea I heard that
<itadder> Geniack: I want to go to one of google mac monthly admin meetup
<itadder> it in my City
<itadder> but now sure why the meetup is at 4 pm
<itadder> Who does a meetup at 4 pm on a thursday
<cina> apeiros: I don't know. I think it is possible to create new dummy STDIN and STDOUT -- or maybe using a new thread
<Geniack> :D
yacks has joined #ruby
<Geniack> true
yubrew has quit [Ping timeout: 264 seconds]
<shevy> :D
<d00n> maasha: \r
* shevy is now a link-bot.
<itadder> hehehe
<itadder> ruby programers are such nice people
<itadder> also java script
<apeiros> cina: you can create as many IOs as you want. but it won't be the stdin.
<itadder> not sure why but the ruby community are nice people
<apeiros> cina: there's only one stdin. and to that stdin, piping looks the same as user-input.
mojjojo has quit [Client Quit]
<itadder> super smart also
guilleiguaran has joined #ruby
davidcollom is now known as davidcollom_afk
mojjojo has joined #ruby
stringoO has joined #ruby
iamdoo2 has quit []
<itadder> okay I must realy go
browndawg has quit [Read error: Connection timed out]
<itadder> Geniack: do you shutdown your maac before you move from one place to the other
iamdoo2 has joined #ruby
<itadder> or sleep mode
<apeiros> sleep
<d00n> print "50%\r" ; sleep 10 ; print "51%\r" ;
<apeiros> I almost never shut mine down
<shevy> yeah
<itadder> I was told if I walk for a long while my mac sleeps is is what killed my harddrive
<itadder> I don't have the ssd
<maasha> shevy: thanks
<shevy> the curse of *nix based OS
<shevy> rebooting is scary
<itadder> LOL
<cina> apeiros: ok, thanks
<shevy> I want to try out the latest gobolinux .iso but I have to reboot :\ (and backup everything before...)
<itadder> I had a linux server linux yellowdog on my old old mac running for 2 years with out reboot
<apeiros> itadder: that doesn't make sense to me. afaik there's no difference to the HD between sleeping and shutdown.
<itadder> until one day my mom was cleaning my room when I was a teen
<itadder> and she dissconnected it
deadlock_ has joined #ruby
<Geniack> itadder: i do not use ANY apple products :)
<shevy> it would be nice if rebooting would be different
<maasha> d00n: ah, neat.
<itadder> okay I need to put this to sleep
chrisseaton has quit [Ping timeout: 241 seconds]
<itadder> I told my cowoker I will be late this AM,
<chridal> any good channels for basic API design / REST talk?
nowthatsamatt has joined #ruby
<itadder> I am still stuck at learning blocks and methods :(
<d00n> maasha: \r will just carriage return, without the new line. cheap/easy way to keep printing on same line (Just don't use puts which will output the \n)
itadder has quit [Remote host closed the connection]
yasushi has quit [Remote host closed the connection]
<chridal> I'm wondering; do REST APIs respond to a POST? for instance if it was successfully created?
<maasha> d00n: yeah, its not real pretty since the cursor is displayed at the beginning of the line.
a-priori has joined #ruby
davidcollom_afk is now known as davidcollom
<chridal> and say, you did GET /user/:username, and it didn't find that user? Do you send them a HTTP status code then?
<apeiros> status code and a body explaining that it wasn't found
fedesilv_ has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
<apeiros> the explanation being in the requested format (json, xml, html, …)
<terence> when :: is used at the begin, what does it mean? For example, ::NMatrix::BLAS.xxx
ndrei has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<chridal> so, I'd go 404 Not Found, with JSON {'error': 'not found'}?
<shevy> terence top level scope; there must be some parent class or module called that way
<apeiros> and #rubyonrails, #sinatra might be good channels
<apeiros> not sure whether roar has its own
<shevy> terence otherwise, you could never find that parent NMatrix thing
mlpinit has joined #ruby
fedesilva has quit [Ping timeout: 240 seconds]
davy_ has joined #ruby
<apeiros> chridal: something along that, yes
<chridal> thanks a lot!
<d00n> maasha: yeah I never said pretty, but is also doesn't have the overhead of curses. you can just most the \r to beginnng of the next oner.
<d00n> err s/most/move/
<d00n> so that way cursor is at end of line…..
duggiefresh has quit [Remote host closed the connection]
cs02rm0 has joined #ruby
duggiefresh has joined #ruby
Speed has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
aagdbl has quit [Quit: This computer has gone to sleep]
fedesilv_ has quit [Ping timeout: 240 seconds]
dayepa has quit [Quit: dayepa]
tjr9898 has quit [Remote host closed the connection]
jsilver has joined #ruby
davy_ has quit [Ping timeout: 240 seconds]
jsilver_ has quit [Read error: Connection reset by peer]
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<maasha> d00n: so are there alternatives to \r and curses?
fgo_ has quit [Remote host closed the connection]
blackmesa has joined #ruby
<d00n> maasha: for doing screen manipulation stuff? not sure, I don't do much with ncurses, and Don't care too much about purty :) (sorry)
cs02rm0 has quit [Ping timeout: 264 seconds]
mojjojo has quit [Quit: mojjojo]
banister has joined #ruby
tylershipe has joined #ruby
duggiefresh has quit [Ping timeout: 264 seconds]
sk87 has joined #ruby
Revokee has joined #ruby
rmorello has joined #ruby
Revokee has left #ruby [#ruby]
danshultz has joined #ruby
monkegjinni has quit [Remote host closed the connection]
enebo has joined #ruby
makara has quit [Ping timeout: 265 seconds]
mojjojo has joined #ruby
soc42 has quit [Remote host closed the connection]
browndawg has joined #ruby
jeregrine has joined #ruby
<terence> shevy: if I use rb_define_class to define class "NMatrix", and use rb_define_module_under to define module "BLAS" under "NMatrix", and define a method "cblas_gemv" under BLAS using rb_define_method, then is it right to call "cblas_gemv" using NMatrix::BLAS.gemv ?
Buck has left #ruby ["Leaving"]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Megtastique has joined #ruby
Deele has joined #ruby
sailias has joined #ruby
<apeiros> terence: I think not
joelroa has joined #ruby
<apeiros> rb_define_method defines instance methods
<apeiros> should be something like rb_define_singleton_method
<apeiros> don't remember them by heart, though
mlpinit has quit [Remote host closed the connection]
eka has joined #ruby
carneiro has joined #ruby
camilasan has quit [Remote host closed the connection]
itadder has joined #ruby
camilasan has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
<terence> apeiros: I made typo, I meant is it right to call "cblas_gemv" using NMatrix::BLAS.cblas_gemv
freerobby has quit [Quit: Leaving.]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
joelroa has quit [Ping timeout: 265 seconds]
Aryasam has quit [Ping timeout: 244 seconds]
not_a_guest has quit [Quit: Connection closed for inactivity]
camilasan has quit [Read error: Connection reset by peer]
<apeiros> terence: yeah, understood it that way. still the same answer: no
camilasan has joined #ruby
<nhmood> what should the permissions on .rb files be in a ruby project / gem?
camilasan has quit [Read error: Connection reset by peer]
nateberkopec has quit [Quit: Leaving...]
<apeiros> nhmood: mine usually have 0644
zeeraw has joined #ruby
camilasan has joined #ruby
<terence> apeiros: ready to receive the same answer! :)
<apeiros> seriously?
camilasan has quit [Read error: Connection reset by peer]
<apeiros> 15:12 apeiros: rb_define_method defines instance methods
<apeiros> 15:12 apeiros: should be something like rb_define_singleton_method
<apeiros> 15:12 apeiros: don't remember them by heart, though
camilasan has joined #ruby
<apeiros> get a client with history…
kennym has joined #ruby
<nhmood> i guess i cant think of any reason to have +x on anything other than the bin/appname file
<apeiros> nhmood: I don't think there is one
camilasan has quit [Read error: Connection reset by peer]
slowcon has quit []
<terence> apeiros: so what you meant is if I use rb_define_method, I need to create a instance using .new
Hamburglr has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> nhmood: if it has +x, it doesn't belong into lib
platzhirsch has joined #ruby
<shevy> terence, on the C level, the API should be something like: rb_define_singleton_method(rb_cDir, "open", dir_s_open, -1);
<apeiros> terence: if it was a class, yes. but it's a module. so you'd have to include it into a class, instantiate that, and call it then on that instance.
<itadder> I am in the lincon tunnel
<itadder> on my way to work
<platzhirsch> How would you name a method used for registering a callback which is executed during a certain point in iteration?
dik_dak has joined #ruby
<itadder> so cool
<platzhirsch> register_callback, add_callback,...
<shevy> platzhirsch register_callback()
<itadder> on a 3g connection in the tunnel in a bus
<platzhirsch> alright
<apeiros> platzhirsch: << ;-)
<platzhirsch> << sweet haha
<shevy> I even have a method called _
<apeiros> platzhirsch: depends on what it does.
<shevy> all it does is append to the main @ivar
camilasan has joined #ruby
<apeiros> platzhirsch: e.g., define_filter, if the callback is used to filter the data
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
<apeiros> platzhirsch: but you didn't give us that information. "it's called during an iteration". tells us nothing.
paulfm has joined #ruby
<apeiros> ary.callback { |x| x+1 }.callback { |x| x < 1 }.callback { |x| puts x }
camilasan has quit [Read error: Connection reset by peer]
<platzhirsch> apeiros: list of words are parsed by the class and they can be iterated with .next_word, now I add a callback handler for a certain word, which is executed if the word is met
<terence> shevy: Hmm, right! Finally I'm trying to understand singleton method and I did!
camilasan has joined #ruby
kotakotakota has quit [Ping timeout: 240 seconds]
camilasan has quit [Read error: Connection reset by peer]
<apeiros> platzhirsch: on_<condition> do … end
<nhmood> apeiros: great, thanks for the help
<apeiros> e.g. on_word_match "certain word" do … end
camilasan has joined #ruby
davy_ has joined #ruby
zachallett has joined #ruby
<terence> apeiros: So if I switch back to rb_define_singleton_method, then I can call like I wrote the first time
<apeiros> terence: yes. minus the typo ;-)
camilasan has quit [Read error: Connection reset by peer]
francisfish has joined #ruby
<platzhirsch> apeiros: really? I just thought of adding a method which passes a proc to a hash and maps it to the word and in each .next_word this is checked
yacks has quit [Ping timeout: 264 seconds]
camilasan has joined #ruby
browndawg has quit [Read error: Connection timed out]
<terence> apeiros: like the second time :-P
<apeiros> platzhirsch: yeah. think of it, what information does "register_callback" convey?
camilasan has quit [Read error: Connection reset by peer]
<apeiros> see the map/select/each example above
<apeiros> it matters what the callback is used for
<apeiros> that you register a callback is useless information IMO
camilasan has joined #ruby
prc has quit [Quit: Leaving.]
browndawg has joined #ruby
<apeiros> so the name should state what the callback is used for instead.
prc has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
itadder has quit [Ping timeout: 265 seconds]
<platzhirsch> ah ok
camilasan has joined #ruby
<apeiros> platzhirsch: of course, with more concrete code, better answers can be given :-)
camilasan has quit [Read error: Connection reset by peer]
* apeiros off for commute
kevind has joined #ruby
apeiros has quit [Remote host closed the connection]
camilasan has joined #ruby
rudisimo has joined #ruby
Kricir has joined #ruby
apeiros has joined #ruby
Aryasam has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
alexju has joined #ruby
davy_ has quit [Ping timeout: 240 seconds]
camilasan has joined #ruby
Hamburglr has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
jonno11 has joined #ruby
camilasan has joined #ruby
andrewlio has quit [Remote host closed the connection]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
jamesto11 has joined #ruby
himsin has quit [Quit: himsin]
camilasan has quit [Read error: Connection reset by peer]
<jamesto11> what is **_ as the last argument of a methods parameters do?
<shevy> (offline mode: enter name=value pairs on standard input)
camilasan has joined #ruby
pu22l3r has joined #ruby
<shevy> jamesto11 that looks weird
<shevy> are you sure that it is **_ and that it works
<jamesto11> yes it is someone elses code
<jamesto11> and it works
arietis has quit [Quit: Computer has gone to sleep.]
AdmirableSnackba has quit [Quit: Connection closed for inactivity]
<terence> But Ruby says cblas_gemv undefined...
prc has quit [Ping timeout: 244 seconds]
<shevy> >> def foo(i = **_); puts i; end; foo 'hi','there'
<eval-in> shevy => /tmp/execpad-7a2b41c86890/source-7a2b41c86890:2: syntax error, unexpected **arg ... (https://eval.in/114519)
jamesto11 is now known as jamto11
<shevy> jamesto11 well the bot does not agree
fgo has joined #ruby
apeiros has quit [Ping timeout: 265 seconds]
andrewlio has joined #ruby
jamto11 has quit [Client Quit]
jamesto11 has joined #ruby
tylershipe has quit []
<cina> shoudn't piped STDIN stop feeding all my `gets' after it sees a EOF?
jamesto11 has left #ruby [#ruby]
<toretore> >> def foo(**_);end; foo
<eval-in> toretore => nil (https://eval.in/114527)
tylershipe has joined #ruby
MattStratton has joined #ruby
<toretore> might as well be just **
jamto11 has joined #ruby
<toretore> >> def foo(**);end; foo
<eval-in> toretore => nil (https://eval.in/114529)
ylluminate has joined #ruby
hiyosi has joined #ruby
iceden has joined #ruby
<shevy> is that actually an argument?
yasushi has joined #ruby
<toretore> kwargs
<platzhirsch> wow, I am thick. How can I allow blocks as well as procs for my method? Making .on_word(x, proc) possible as well as .on_word(x) { ... }
momomomomo has joined #ruby
<shevy> platzhirsch all methods in ruby accept a block without you having to do anything
fgo has quit [Read error: No route to host]
fgo_ has joined #ruby
slowcon has joined #ruby
<platzhirsch> shevy: but then I have to ignore the proc element when both are passed
<shevy> the syntax for converting a block should be ... def foo(i, &bla) I think... or something like that; it always trips me up
<platzhirsch> or throw an error I guess
<shevy> when both are passed?
<toretore> >> def foo(c=nil, &b); c||= b; c.call; end; foo{ puts 1 }; foo(->{ puts 2 })
<eval-in> toretore => 1 ... (https://eval.in/114539)
<platzhirsch> .on_word(word, proc) { puts 'should be illegal' }
<toretore> oh, no stdout
yubrew has joined #ruby
davy_ has joined #ruby
fgo_ has quit [Read error: No route to host]
fgo has joined #ruby
GeorgesLeYeti has joined #ruby
<GeorgesLeYeti> Hi
duggiefresh has joined #ruby
hiyosi has quit [Ping timeout: 252 seconds]
zz_jrhorn424 is now known as jrhorn424
yacks has joined #ruby
tvw has quit []
kernelpanik has joined #ruby
<kernelpanik> Hi guys! is the repo gem server reachable?
jobewan has joined #ruby
davy_ has quit [Ping timeout: 244 seconds]
yubrew has quit [Ping timeout: 240 seconds]
sdwrage has joined #ruby
<kernelpanik> ah ok I have read above
<GeorgesLeYeti> Is it possible to split and keep the split value
fgo has quit [Ping timeout: 252 seconds]
rococo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
shaunbaker has quit [Ping timeout: 240 seconds]
rococo has joined #ruby
browndawg has quit [Read error: Connection timed out]
marcgg has joined #ruby
<GeorgesLeYeti> EG: "Hello\nWorld" i want to split \n into ["Hello\n", "World"]. Btw the possition of \n can be at the begining and at the end. So if I have "\nHello" => ["\n", "Hello"]
tjr9898 has joined #ruby
shaunbaker has joined #ruby
browndawg has joined #ruby
JohnBat26 has quit [Read error: Operation timed out]
ehc has joined #ruby
Wolland has quit [Remote host closed the connection]
Mongey has quit [Quit: Mongey]
tylershi_ has joined #ruby
Trevoke has joined #ruby
Mon_Ouie has quit [Ping timeout: 240 seconds]
marcgg_ has quit [Ping timeout: 252 seconds]
hornairs has joined #ruby
casheew has joined #ruby
casheew_ has quit [Read error: Connection reset by peer]
thomasxie has joined #ruby
<terence> I have already defined the class and module and method in C, but Ruby still says method undefined.
phutchins has quit [Ping timeout: 240 seconds]
tylershipe has quit [Ping timeout: 240 seconds]
<shevy> terence have you tried the minimal examples first and use the Init_* methods?
mansi_ has joined #ruby
Mongey has joined #ruby
m4n1f3st0 has quit [Quit: m4n1f3st0]
mary5030 has joined #ruby
<shevy> GeorgesLeYeti, if you split you lose a little bit of information
<shevy> x = "Hello\nWorld".split "\n" # => ["Hello", "World"]
<terence> shevy: Yes, I have the Init_* method, and NMatrix::BLAS is ok
arietis has joined #ruby
m4n1f3st0 has joined #ruby
<shevy> GeorgesLeYeti "\nHello".split(/\b/) # => ["\n", "Hello"]
phutchins has joined #ruby
<GeorgesLeYeti> shevy: Ok ty.
phantomtiger has joined #ruby
m4n1f3st0 has quit [Remote host closed the connection]
nateberkopec has joined #ruby
lxsameer has quit [Quit: Leaving]
sentinal8473 has joined #ruby
mansi_ has quit [Ping timeout: 240 seconds]
mary5030 has quit [Ping timeout: 240 seconds]
Elhu_ has joined #ruby
m4n1f3st_ has joined #ruby
mjuszczak has quit [Read error: Connection reset by peer]
Elhu has quit [Read error: Connection reset by peer]
jprovazn has joined #ruby
Advocation has quit [Quit: Advocation]
mary5030 has joined #ruby
casheew_ has joined #ruby
doubleemms has joined #ruby
casheew has quit [Read error: Connection reset by peer]
mansi_ has joined #ruby
anarang has quit [Quit: Leaving]
d00n has quit [Ping timeout: 265 seconds]
shaunbaker has quit [Remote host closed the connection]
maroloccio has joined #ruby
m4n1f3st_ has quit [Client Quit]
cs02rm0 has joined #ruby
maroloccio has quit [Client Quit]
maroloccio has joined #ruby
m4n1f3st0 has joined #ruby
mjuszczak has joined #ruby
snath has quit [Ping timeout: 244 seconds]
Kneferilis has quit [Read error: Connection reset by peer]
Aryasam_ has joined #ruby
Thanatermesis has quit [Read error: Connection reset by peer]
Hanmac1 has joined #ruby
lmickh has joined #ruby
mlpinit has joined #ruby
apeiros has joined #ruby
browndawg has quit [Read error: Connection timed out]
uzo_ has joined #ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdouglas has joined #ruby
m4n1f3st0 has quit [Remote host closed the connection]
Aryasam has quit [Ping timeout: 244 seconds]
browndawg has joined #ruby
Hanmac has quit [Ping timeout: 265 seconds]
Lewix has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
cs02rm0 has quit [Ping timeout: 265 seconds]
freerobby has quit [Quit: Leaving.]
Aryasam_ has quit [Ping timeout: 240 seconds]
segmond has quit [Ping timeout: 264 seconds]
meatherly has joined #ruby
CorySimmons has joined #ruby
Thanatermesis has joined #ruby
Thanatermesis has quit [Changing host]
Thanatermesis has joined #ruby
Advocation has joined #ruby
freerobby has joined #ruby
geopet has joined #ruby
sentinal8473 has quit [Read error: Connection reset by peer]
jobewan has quit [Remote host closed the connection]
reduct has joined #ruby
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
shvelo has joined #ruby
freerobby has quit [Client Quit]
kernelpanik has quit [Quit: Leaving]
xerox357 has joined #ruby
sambao21 has joined #ruby
joelroa has joined #ruby
sentinal8473 has joined #ruby
griffindy has quit [Quit: Computer has gone to sleep.]
achru_ has quit [Ping timeout: 244 seconds]
momomomomo has quit [Ping timeout: 264 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
reduct has left #ruby [#ruby]
nateberkopec has joined #ruby
sk87 has joined #ruby
Kneferilis has joined #ruby
jobewan has joined #ruby
m4n1f3st0 has joined #ruby
agarie has joined #ruby
thomasxie has quit [Quit: Leaving.]
Kricir has quit [Remote host closed the connection]
george2 has joined #ruby
Macaveli has quit [Ping timeout: 265 seconds]
keen__ has quit [Ping timeout: 252 seconds]
joelroa has quit [Ping timeout: 265 seconds]
kaldreno_ has joined #ruby
kaldrenon has quit [Read error: No route to host]
yubrew has joined #ruby
mansi_ has quit [Quit: Leaving...]
lolmaus has quit [Quit: No Ping reply in 180 seconds.]
lolmaus has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
codabrink has joined #ruby
kaldreno_ has quit [Read error: Connection reset by peer]
aganov has quit [Remote host closed the connection]
kaldrenon has joined #ruby
sdouglas has quit [Remote host closed the connection]
davy_ has joined #ruby
jjbohn has joined #ruby
Cope__ is now known as Cope
codeFiend has joined #ruby
Guest46316 has quit [Quit: Leaving]
itadder has joined #ruby
niftyn8 has joined #ruby
Advocation has quit [Quit: Advocation]
foredoomed has quit [Remote host closed the connection]
browndawg has quit [Read error: Operation timed out]
Nirgali42 has joined #ruby
m1lt0n_ has joined #ruby
davy_ has quit [Ping timeout: 244 seconds]
browndawg has joined #ruby
shaunbaker has joined #ruby
codeFiend has quit [Ping timeout: 265 seconds]
duggiefresh has quit [Read error: Connection reset by peer]
mansi has joined #ruby
duggiefresh has joined #ruby
jrhorn424 has quit [Quit: ZNC - http://znc.in]
diegoviola has joined #ruby
jrhorn424 has joined #ruby
candelabra has joined #ruby
tagrudev has quit [Remote host closed the connection]
byprdct has joined #ruby
<candelabra> if I know I have to do something say, one million times, would it be faster to do 1000000.times or while i<1000000
crystal77 has joined #ruby
shaunbaker has quit [Ping timeout: 245 seconds]
mengu has quit []
andy___ has joined #ruby
terence has quit [Ping timeout: 245 seconds]
andy___ is now known as Guest59100
Guest59100 has quit [Read error: Connection reset by peer]
rippa has joined #ruby
<Trevoke> candelabra: it's definitely more idiomatic to use 1_000_000.times
Sawbones has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
freerobby has joined #ruby
keen__ has joined #ruby
razrunelord has joined #ruby
diegoviola has quit [Ping timeout: 240 seconds]
axsuul has joined #ruby
richardc has quit [Remote host closed the connection]
gbt has quit [Quit: Leaving...]
<razrunelord> Is there a difference in the time complexity between a hash and a set?
<Trevoke> razrunelord: A Set needs to ensure that each item is unique. A Hash is a key-value pair. The answer is yes. A better answer requires a better question.
<Trevoke> I don't know what operation you're talking about, and I don't know what your priorities or your concerns are, so it's hard to give you a good answer.
<razrunelord> Trevoke: Lets say I only need a lookup reference, which is better to use? Hash vs set
<browndawg> candelabra: run a benchmark upto 10E6. A simple fixnum increment is faster on my machine when I use a while loop.
<LiohAu> in this method call, is ruby transforming everything in the parantheses into an hash : fill_form(username_field => username, password_field => password) (the method is defined like this : "def fill_form(form_items) .. end")
yasushi has quit [Remote host closed the connection]
<Trevoke> razrunelord: this might just be because I don't understand you, but I don't think a set is even an option (unless an array is also an option for you). Lookup reference sounds a lot like key-value pair to me.
CorySimmons has quit [Quit: Zzz...]
fgo has joined #ruby
dawkirst has joined #ruby
<Trevoke> razrunelord: could you give me a small example of what you are trying to do?
<razrunelord> Trevoke: Consider a set of urls and I need to have a reference of all the visited urls, should I push all the visited urls in a set or use the visited urls as the key for a hash and set the value as true.
<razrunelord> Trevoke: I am thinking set, but just want to get a second opinion
axsuul has quit [Ping timeout: 240 seconds]
nath_schwarz has joined #ruby
grvgr has joined #ruby
<Trevoke> razrunelord: Do you have concerns regarding how long it takes to find out whether a particular URL has been used? How big is your data set? For such questions, the answer is either "it doesn't matter" or "run a benchmark", unfortunately.
andrewlio has quit [Quit: Leaving.]
sepp2k has quit [Read error: Connection reset by peer]
thomas314 has joined #ruby
<razrunelord> Trevoke: Ok, I will try running a benchmark but if the hash is going to be a boolean hash, a set seems more intuitive. Thanks for the help!
<apeiros> Trevoke: you're mistaken
Nirgali42 has quit [Ping timeout: 241 seconds]
Advocation has joined #ruby
fgo has quit [Remote host closed the connection]
<Trevoke> apeiros: What do you mean?
<apeiros> razrunelord, Trevoke: a Set is internally just a Hash with all values being true
<shevy> LiohAu ruby sort of cheats, the is only a single argument, a hash; but ruby allows you to omit the {} there
sdouglas has joined #ruby
<apeiros> razrunelord, Trevoke: a Set therefore has *exactly* the same time complexity as a Hash
<shevy> LiohAu in general, when you see a => character, you can be sure that it is a hash
St_Marx has quit [Quit: Ex-Chat]
<LiohAu> shevy: so if I add another argument to the fill_form method definition, it won't be an hash anymore right?
andrewlio has joined #ruby
failshell has joined #ruby
<Trevoke> apeiros: That's pretty amazing. I had no idea. I've only ever compared Array and Set before, never Set and Hash.
tvw has joined #ruby
<LiohAu> shevy: i mean it will be 2 hashes
<shevy> LiohAu can you give a specific example, it could be a syntax error what you try ;-)
<LiohAu> shevy: the example I wrote, was a syntax error ^^
<shevy> hehe
<razrunelord> thanks apeiros, why isn't it a part of ruby core then?
blackmesa has quit [Ping timeout: 265 seconds]
<apeiros> razrunelord: it's part of stdlib
Findegil has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> hmm let's see ...
<apeiros> core isn't supposed to contain everything. it should be reasonably small.
<razrunelord> apeiros: yeah, I don't understand that part. It seems like it should be a part of the core
richardc has joined #ruby
<shevy> >> require 'pp'; def foo(i); pp i; end; foo :abc => 'yo', :def => 'ok'
<eval-in> shevy => {:abc=>"yo", :def=>"ok"} ... (https://eval.in/114603)
<shevy> LiohAu that example ^^^ works. now how do you want to add another argument exactly?
<apeiros> razrunelord: why? because you don't want to type `require 'set'`?
<LiohAu> With this call : fill_form(username_field => username, password_field => password) and this method definition : "def fill_form(form_items) .. end", I have 1 Hash, if I change the method definition to "def fill_form(form_items, second_param) .. end" it will be 2 hashes right ?
axl_ has joined #ruby
<shevy> it will be two arguments
<shevy> nowhere does it have to be two hashes
<Trevoke> razrunelord, apeiros a quick benchmark reveals that has is faster than set for insertions.
<Trevoke> s/has/hash
<shevy> LiohAu the ruby parser is constrained to allow dropping of {} only as last argument, as far as I know
<LiohAu> You said the " => " symbol means it will create an hash no? :D
<shevy> LiohAu yes
<apeiros> Trevoke: "faster" != "different time complexity"
<shevy> LiohAu but not everywhere
<apeiros> Trevoke: and yes, of course, Set has additional method calls, so its constant overhead is larger.
<shevy> LiohAu most everywher else it will be a syntax error :)
<apeiros> Trevoke: however, open set.rb and see for yourself - it's just a Hash.
CorySimmons has joined #ruby
<shevy> LiohAu if you keep on using the {}, it won't be a syntax error
<Trevoke> apeiros: Your logic is not exactly accurate. "faster" does not imply "different time complexity" but it COULD indicate a different time complexity.
momomomomo has joined #ruby
<shevy> fill_form( { :yo => 'hi' }, { :ok => 'there' } )
<Trevoke> apeiros: So, thank you for correcting me, but I am not sure you are not jumping to an erroneous conclusion.
cina has quit [Remote host closed the connection]
<apeiros> Trevoke: wtf?
<LiohAu> >> def test(a, b) puts a; puts b; end; test("x"=> "y"); test("x" => "y", "z" => "w");
<eval-in> LiohAu => wrong number of arguments (1 for 2) (ArgumentError) ... (https://eval.in/114604)
<shevy> it should work if you use the {}
<LiohAu> >> def test(a) puts a; puts b; end; test("x"=> "y"); test("x" => "y", "z" => "w");
<eval-in> LiohAu => {"x"=>"y"} ... (https://eval.in/114605)
<LiohAu> lol :(
<shevy> where did b go ;-)
diegoviola has joined #ruby
<LiohAu> >> def test(a) puts a; end; test("x"=> "y"); test("x" => "y", "z" => "w");
<eval-in> LiohAu => {"x"=>"y"} ... (https://eval.in/114606)
<LiohAu> no more B
davy_ has joined #ruby
<shevy> k and no more two arguments to your method :D
nhhagen_ has joined #ruby
Kricir has joined #ruby
<LiohAu> ok, so I really had made a mistake when I wrote everywhere hashes without the { }
<shevy> apeiros do you still think that ruby should allow more than one block to a method?
browndawg has quit [Read error: Connection timed out]
* shevy uncovers teenager sins of apeiros
<LiohAu> It worked because ruby is smart, but it was a mistake, If I decided to add 2nd parameter to the fill_form method, I would have encountered weird bugs
<shevy> well
evenix has joined #ruby
<LiohAu> anyway, now I understood, thx :)
<shevy> you should not need two parameters there
lw has quit [Quit: s]
<apeiros> Trevoke: I did not make any conclusions. I made a statement. and that statement is correct. faster is NOT the same as different time complexity.
<shevy> you could just pass one hash as argument, and fetch the value from the hash from it LiohAu
gbt has joined #ruby
<shevy> hash = { :css_class = 'wid50' } # 50% width
evenix has quit [Remote host closed the connection]
<shevy> def foo(i)
yasushi has joined #ruby
renderful has joined #ruby
<shevy> if i.is_a? Hash # or omit this here... and .has_key? :css_class, -> change the css class in use
RaCx has quit [Quit: Computer has gone to sleep.]
twiceaday has quit [Ping timeout: 240 seconds]
<apeiros> Trevoke: but if you feel all emotional about this, fine. I'm out. I already said everything which is to say.
evenix has joined #ruby
<LiohAu> yes you're right
<Trevoke> apeiros: faster does not imply different time complexity. I admit your statement is basically accurate, but I find that it implies a strict negation.
twiceaday has joined #ruby
<apeiros> "basically"
<apeiros> Trevoke: whatever
<shevy> haha :D
SCommette has joined #ruby
nhhagen has quit [Ping timeout: 240 seconds]
<shevy> come on guys, don't stop now ... I have a lot of popcorn to eat...
cina has joined #ruby
<apeiros> shevy: I already said I'm out. sorry if I won't entertain you.
nhhagen_ has quit [Ping timeout: 240 seconds]
davy_ has quit [Ping timeout: 244 seconds]
<Trevoke> shevy: fundamentally, I agree with him. I think we're saying the same thing. There was just an abrupt change to a mostly mathematical form of communication, and I get nervous about potentially misleading statements. Something about SIWOTI, and all that, of course.
<workmad3> Trevoke: the problem is that speed is pretty much immaterial to time complexity... if method A is slower than method B, you need to analyse the time complexity to discover which one will grow at which rate, and it method A is faster than method B the same is also true
Speed has left #ruby ["WeeChat 0.4.3"]
Kricir has quit [Remote host closed the connection]
<Trevoke> workmad3: That is true. And I agree with that completely.
rayners has joined #ruby
Kricir has joined #ruby
<workmad3> Trevoke: so the statement 'A is faster than B' tells you nothing about potential time complexity and does nothing to reduce the amount of work you still need to do to discover time complexity
<workmad3> Trevoke: you may as well say A requires more bananas than B
codeitagile has quit [Remote host closed the connection]
<Trevoke> workmad3: agreed
yasushi has quit [Ping timeout: 240 seconds]
<workmad3> Trevoke: hell, even if A and B took exactly the same time in your single measurement, you'd still have no information on time complexity... great fun, eh? :D
<Trevoke> workmad3: Ah, but there you assume I made a single measurement
<Trevoke> :p
<shevy> god workmad is getting old!
Nirgali42 has joined #ruby
Celm has joined #ruby
<Trevoke> If we're going to throw snowballs at each other, let me get you a compass and a protractor so we can properly calculate vectors!
blackmesa has joined #ruby
timonv has quit [Remote host closed the connection]
quatron has quit [Quit: ChatZilla 0.9.90.1 [Firefox 27.0.1/20140212131424]]
<Trevoke> But can we assume gravity is 10m/s^2 ? This whole 9.2 thing is way too hard.
<workmad3> Trevoke: if you'd made multiple measurements and drawn conclusions from them, you'd have been more precise than 'A is faster than B' ;)
RaCx has joined #ruby
<Trevoke> workmad3: I was trying to be helpful without being mathematically precise. For better or for worse, I'm at a day job.
<workmad3> Trevoke: tbh, gravity == 10 is within acceptable error tolerances for a lot of applications ;)
<workmad3> Trevoke: as is pi == 3...
<Xeago_> all of you are wrong, when talking about … complexity
<Xeago_> you have to specify what complexity form you are measuring
<Xeago_> there are differences in them, you have worst-case, best-case and more
<Trevoke> Xeago_: We're always talking about Big-O :p
<Trevoke> Xeago_: but thanks for chiming in, this wasn't precise enough
<shevy> I have a Big-O!
<workmad3> Xeago_: true... I assumed average-case time-complexity in Big-O notation
<Trevoke> shevy: I only have younger siblings :/
<apeiros> Trevoke: lets also use π=3, those infinite digits after the separator is annoying too
<Xeago_> workmad3: that statement is contradictory
<apeiros> ah, damn
<shevy> hey aren't you out ...
<apeiros> workmad3 already said that
* apeiros shakes first at workmad3
jerius has joined #ruby
<apeiros> *fist
<Xeago_> Big-O notation is worst-case
<workmad3> apeiros: :D
yjmsf20 has quit [Quit: Textual IRC Client: www.textualapp.com]
zcreative has joined #ruby
nath_schwarz has quit [Quit: lost_conn]
<workmad3> Xeago_: hmm... my algorithms at uni did big-O notation for worst, best and average...
<apeiros> na, big-O is not worst case, that's what, theta or something?
<Trevoke> apeiros: You're right. Stupid Greeks. Why did they have to bother with weird numbers like that. Can we say e=2 as well? And i = 0?
jonno11 has joined #ruby
<workmad3> Xeago_: big-O just isolates the pre-dominant term in the analysis
smathieu has joined #ruby
calleerlandsson has quit [Ping timeout: 265 seconds]
<Xeago_> Big-O is worstcase, also known by the theta sign, yes
foysavas has joined #ruby
davy_ has joined #ruby
<apeiros> then qsort would be O(n^2) and hash access O(n) ;-)
<Xeago_> hmm
<Xeago_> seems I am wrong for recent academic usecases :'(
* Xeago_ poof!
* Trevoke examines curiously this puff of logic.
<foysavas> anyone know how easy it is to log to stdout (or similar) from inside a execjs runtime?
peterellisjones has quit [Quit: Leaving.]
xerox357_ has joined #ruby
monkegjinni has joined #ruby
griffindy has joined #ruby
Nirgali42 has quit [Quit: leaving]
thomas314 is now known as thomas3141592653
davy_ has quit [Read error: No route to host]
geggam has joined #ruby
toastynerd has joined #ruby
davy_ has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
stringoO has quit [Quit: stringoO]
<apeiros> hm, WP says 'upper bound', which I'd understand as 'worst case' too… odd
peterellisjones has joined #ruby
Kricir has quit [Remote host closed the connection]
tedstriker has quit [Ping timeout: 240 seconds]
smathieu has quit [Ping timeout: 264 seconds]
<Xeago_> <3
yacks has quit [Ping timeout: 265 seconds]
<workmad3> apeiros: big-O is the upper-bound/limiting factor of a formula
<Xeago_> my faith in education has been restored
nouitfvf has joined #ruby
<kapowaz> is there any way of specifying a gem group from your Gemfile to use when running `bundle exec` ?
Senjai has quit [Quit: WeeChat 0.3.7]
<workmad3> apeiros: but the worst-case of an algorithm and the average-case of an algorithm can be provided by different formulae
<apeiros> ah, true
claymore has quit [Read error: Operation timed out]
xerox357 has quit [Ping timeout: 265 seconds]
<apeiros> that's what happens when you use stuff and forget about its roots…
<workmad3> yup :)
<apeiros> too long since academia :D
redlines has quit [Ping timeout: 244 seconds]
zeeraw has joined #ruby
<workmad3> apeiros: it's also what happens when you mix up different levels... big-O is indeed the 'worst-case' for an individual formula :)
MattStratton has quit [Ping timeout: 240 seconds]
<workmad3> but when you're dealing with multiple formulae, you can get the big-O notation for each of them and compare
<Trevoke> Just a note, guys, kapowaz actually asked a question.. :)
davy_ has quit [Ping timeout: 240 seconds]
<kapowaz> thanks Trevoke
<Trevoke> And I don't know the answer.
<kapowaz> I didn't want to be an ass about it… but yeah ;)
Hanmac has joined #ruby
St_Marx has joined #ruby
<kapowaz> all evidence I've found suggests no, but that doesn't make sense to me… nobody would want to have all gems in a single group like that, but then maybe they assume you'll run tasks through rake and specify groups that way
bry4n_ has joined #ruby
toastynerd has quit [Remote host closed the connection]
<workmad3> kapowaz: don't think there is... #bundler would be able to tell you conclusively, but afaik what groups are loaded are controlled by the Bundler.setup call within an app
joonty_ has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
larsam has quit [Read error: Connection reset by peer]
<kapowaz> it would seem to me that it'd make sense to allow specifying a gem group to bundle exec too
Hanmac1 has quit [Ping timeout: 264 seconds]
<workmad3> kapowaz: not particularly... lets say you had an app that used a :cli group for a binary command
<workmad3> kapowaz: and then in your bundle exec call you said to use a :web group...
maasha has quit [Ping timeout: 245 seconds]
<kapowaz> go on
<workmad3> kapowaz: well, think about it... which group should be used in that situation?
renderful has quit [Remote host closed the connection]
<workmad3> kapowaz: cli? web? both?
<Trevoke> kapowaz: have you tried something like RACK_ENV="cli" bundle exec ? I mean, most of the code I see around loading the groups dynamically loads specific groups based on some other, external variable that doesn't really depend on Bundler.
monkegjinni has quit [Remote host closed the connection]
fgo has joined #ruby
yacks has joined #ruby
joonty has quit [Ping timeout: 244 seconds]
<Trevoke> workmad3: What I would _want_ in that situation is all the gems not in a group, in addition to the gems in the group specified on the command line.
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<kapowaz> workmad3: I don't follow, that seems like a purposefully ambiguous choice
<kapowaz> the scenario I see is like my own, i.e. I have a bunch of gems I use exclusively for CLI actions, unrelated to the app itself
<kapowaz> I don't want these gems to be included in the application that's bundled for deployment
<workmad3> kapowaz: it's ambiguous because you're wanting the groups to be used in two different ways... groups are intended for the application to control what it loads in certain circumstances, not for an end-user to control what gets loaded
<kapowaz> not sure why it makes any difference whether it's the app or the user making that choice?
<kapowaz> how would you approach the scenario I mention above?
joelroa has joined #ruby
<Trevoke> kapowaz: by the way, have you seen http://bundler.io/groups.html ?
<kapowaz> for the record, I wouldn't have multiple groups — I'd have gems that are intended to be included in the app for deployment in the default group (i.e. ungrouped) and then gems related to CLI tasks in their own group
<kapowaz> Trevoke: yeah, although it only seems to allow you to exclude, not specifically include
<workmad3> kapowaz: it makes a difference because the application is what knows about what's required in different circumstances... by allowing the user to control it, you allow for the application to be easily set up with dependencies that don't make sense
heftig has joined #ruby
<Trevoke> kapowaz: Bundler.require(:default, :development) seems to choose how you include.
renderful has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
<Trevoke> kapowaz: My guess is that Bundler.require(:cli) would just load the gems inside the :cli group
<kapowaz> trouble is that's no use, since the CLI tool isn't a ruby program
fgo has quit [Ping timeout: 240 seconds]
<kapowaz> well, it's foreman, being executed inside a bash script
<shevy> George Foreman!
jonno11 has quit [Quit: Textual IRC Client: www.textualapp.com]
<kapowaz> the bash script includes `bundle exec foreman --some options`
<Trevoke> kapowaz: And now we go back to execjs, apparently. So you're telling me that a rake task launches a bash script which launches foreman?
<kapowaz> there's no rake task :)
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
joelroa has quit [Read error: Operation timed out]
<Trevoke> Oh my bad. Well, why don't you give up and agree that you're working with JS and do something in JS-land?
ahawkins has quit [Remote host closed the connection]
<kapowaz> because I'm not?
lw has joined #ruby
duggiefresh has quit [Read error: Connection reset by peer]
snath has joined #ruby
sk87 has joined #ruby
<kapowaz> maybe I'm misunderstanding some part of the toolchain, but I don't see where you're getting that from
jwest has quit [Quit: WeeChat 0.4.1]
duggiefresh has joined #ruby
DrShoggoth has joined #ruby
<kapowaz> my understanding was foreman was written in ruby (not that this is important, it's a black box for my purposes)
vlad_starkov has joined #ruby
<workmad3> kapowaz: the flipside - why does it matter if the load-path for executing foreman contains all the gems in the Gemfile?
<Trevoke> kapowaz: You're starting from a bash script, which then shells out to ANOTHER bash script to launch a ruby script which launches another ruby script?
<Trevoke> well, not a bash script but another bash shell
joonty_ is now known as joonty
<Trevoke> Oh. That makes more sense.
<Trevoke> Still why isn't that a rake task?
jwest has joined #ruby
<kapowaz> workmad3: I don't care if the load path contains all the gems for the foreman task, because they're *all* required for the foreman task in this case. It's the flip side of this where I want to exclude them, i.e. when I deploy a simple rack-based app (I don't need any of these for that situation)
<kapowaz> Trevoke: because it took me 30 seconds to write it, and it works
S0da has quit [Remote host closed the connection]
<workmad3> kapowaz: ok... so in that situation when you deploy, you install with 'bundle install --without :bad-groups'
<kapowaz> this is a primarily static HTML demo, I'm adding rack so I can deploy it to heroku to show the client
<Trevoke> kapowaz: are you counting the time you're spending in this chatroom as part of the time it took you to write it?
DaniG2k has quit [Quit: leaving]
<workmad3> drop the : there, sorry
<kapowaz> Trevoke: that's not helpful
jwest has quit [Client Quit]
<Trevoke> kapowaz: what workmad3 said
claymore has joined #ruby
inversesquarelaw has joined #ruby
<Trevoke> kapowaz: it's not immediately helpful, and it was a bit curt. I'm sorry about that.
<Trevoke> kapowaz: but it is something you should consider.
<kapowaz> workmad3: I've never explicitly bundle installed when deploying with heroku, is that something that's easily done?
Advocation has quit [Quit: Advocation]
<kapowaz> Trevoke: adding Rake to this mix would make it 100x more complex
<workmad3> kapowaz: oh, on heroku there's an env var you can set to exclude bundler groups on installation, I believe
mehlah has quit [Quit: Leaving...]
<kapowaz> workmad3: perfect
<workmad3> kapowaz: the heroku guides should tell you what it is ;)
renderful has quit [Remote host closed the connection]
<kapowaz> I'll look into that, thanks
camilasan has quit [Remote host closed the connection]
andy___ has joined #ruby
<workmad3> kapowaz: important to note though - that's still making the groups part of the application, it's just excluding certain runnable options from a deployment ;)
foysavas has quit [Quit: Page closed]
andy___ is now known as Guest52757
camilasan has joined #ruby
<kapowaz> probably less than ideal, but meh
tylersmith has joined #ruby
<kapowaz> mostly I wanted to learn if it was possible to do what I wanted, and the answer appears to be ‘why would you even do that?’
camilasan has quit [Read error: Connection reset by peer]
reduct has joined #ruby
reduct has left #ruby [#ruby]
camilasan has joined #ruby
ValicekB has quit [Ping timeout: 240 seconds]
<Trevoke> kapowaz: I suspect there are other ways to think about the problem which help you get the result you want; maybe something to keep in mind for a rainy day :)
<workmad3> kapowaz: no, the answer was 'no, afaik you can't do that, because bundler groups are application information, not user information'
<kapowaz> fwiw Trevoke, I've used this bash script and variations thereof when building static HTML prototypes using rake-pipeline successfully for quite a while, turning it into a set of Rake tasks always struck me as overkill
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
zachallett has quit []
<kapowaz> basically it's a bash script because unless you manually remove the old temporary files, sometimes when you fire up foreman again you can get errors (particularly if the content resides inside a dropbox, and isn't entirely in sync)
<kapowaz> removing the old cruft ensures it runs idempotently
<workmad3> kapowaz: I can see exactly *why* you'd want to, it's just that bundler groups aren't the appropriate mechanism ;) if it's CLI tools that aren't part of the application, I'd keep them out of the Gemfile... if they're part of the application, I'd put them into a ':cli' or a ':build' group and exclude them on deployments that don't require it
Vovko has joined #ruby
zachallett has joined #ruby
<kapowaz> workmad3: foreman only invokes rake-pipeline, it doesn't depend on it
<kapowaz> so you need to be able to specify the dependencies *somehow*
postmodern has joined #ruby
<workmad3> kapowaz: foreman != your application
<kapowaz> well, then by your own logic that means they should be in a bundler group ;)
CorySimmons has quit [Quit: Zzz...]
<workmad3> kapowaz: from what you've since said, I'd probably agree... but my point is that whether to load them or not is an application concern, not a user concern ;)
CorySimmons has joined #ruby
CorySimmons has quit [Max SendQ exceeded]
timonv_ has joined #ruby
kevinykchan has joined #ruby
<kapowaz> I think the issue here stems from the fact I'm trying to use a Gemfile for two distinct purposes, one of which is a(n admittedly very simple) ruby application, the other is a command-line ruby toolchain
CorySimmons has joined #ruby
gaussblurinc has quit [Quit: Leaving.]
mehlah has joined #ruby
<kapowaz> how does bundler behave if you have another Gemfile residing in a subdir somewhere?
<workmad3> kapowaz: that's not normally an issue... the toolchain sounds like the application requirements to build itself
<kapowaz> kind of
Notte has joined #ruby
<kapowaz> they're dependencies for the development environment, not production
<workmad3> kapowaz: so yeah, I'd put it into a :build group and exclude that group when deploying somewhere that doesn't need to build things
<kapowaz> that's it, really
rbartos has joined #ruby
andrewlio has quit [Remote host closed the connection]
Vovko has quit [Ping timeout: 240 seconds]
dweeb_ has quit [Quit: Computer has gone to sleep.]
jprovazn has quit [Ping timeout: 264 seconds]
<kapowaz> the flag for excluding groups appears to rely on an experimental heroku feature which has recently been changed: https://devcenter.heroku.com/articles/bundler#specifying-gems-and-groups
<kapowaz> I think in this case I'll just do it with all the gems, it's not a real production deployment so much as a client demo
<kapowaz> annoying but hey.
dEPy has joined #ruby
gaussblurinc has joined #ruby
ValicekB has joined #ruby
andrewlio has joined #ruby
shaunbaker has joined #ruby
ZoanthusR has joined #ruby
nhhagen has joined #ruby
jwest has joined #ruby
Notte has quit [Remote host closed the connection]
senayar_ has quit [Remote host closed the connection]
mjuszczak has left #ruby [#ruby]
phansch has quit [Quit: WeeChat 0.4.2]
senayar has joined #ruby
fgo has joined #ruby
gaussblurinc has quit [Client Quit]
binaryhat has joined #ruby
camilasan has quit []
_maes_ has joined #ruby
willb1 has quit [Ping timeout: 240 seconds]
redlines has joined #ruby
richardc has quit [Ping timeout: 240 seconds]
mikepack has joined #ruby
Symbiosisz has joined #ruby
sentinal8473 has quit [Read error: Connection reset by peer]
carneiro has quit []
nouitfvf_ has joined #ruby
soc42 has joined #ruby
heftig has quit [Ping timeout: 240 seconds]
fgo has quit [Ping timeout: 252 seconds]
kpshek has joined #ruby
richardc has joined #ruby
nouitfvf has quit [Ping timeout: 244 seconds]
lolmaus has quit [Read error: Connection reset by peer]
lolmaus has joined #ruby
Czupa has joined #ruby
binaryhat has quit [Quit: Leaving]
<itadder> hi
dzhulk has joined #ruby
g0bl1n has joined #ruby
g0bl1n has quit [Changing host]
g0bl1n has joined #ruby
mark_locklear has quit [Ping timeout: 252 seconds]
pu22l3r_ has joined #ruby
ziro` has joined #ruby
pu22l3r has quit [Read error: Connection reset by peer]
<snkcld> hi
<ziro`> is there a rake channel?
malkomalko has joined #ruby
monkegjinni has joined #ruby
Squarepy has quit [Quit: Leaving]
endash has quit [Read error: No route to host]
cHarNe2 has joined #ruby
josemota has joined #ruby
willb1 has joined #ruby
arubincloud has joined #ruby
timonv_ has quit [Read error: Connection reset by peer]
<josemota> hello everyone, I have a question: how can I use database_cleaner with Minitest::Unit using transactions in sqlite3?
<josemota> I am not being able to accomplish this. I've tried to refine Minitest::Unit with setup and teardown methods and use DatabaseCleaner.start/clean
<cHarNe2> hi guys, i use NET::HTTP to register for a couple of asyncron subscription, can i have an open NET::HTTP that responds to the requests or shout i do that with sinatra or something similar?
<josemota> no success.
endash has joined #ruby
Kricir has joined #ruby
NovapaX has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdouglas has quit [Remote host closed the connection]
timonv_ has joined #ruby
Senjai`work has joined #ruby
Senjai`work has quit [Changing host]
Senjai`work has joined #ruby
Trevoke has quit [Ping timeout: 240 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
wiku5_ has joined #ruby
<itadder> oh
Hanmac1 has joined #ruby
crome has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
mark_locklear has joined #ruby
Trevoke has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
foredoomed has joined #ruby
albedoa has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lw has quit [Quit: s]
timonv_ has quit [Remote host closed the connection]
evenix_ has joined #ruby
zcreative has quit [Remote host closed the connection]
m4n1f3st0 has quit [Ping timeout: 240 seconds]
zcreative has joined #ruby
zeeraw has joined #ruby
evenix_ has quit [Remote host closed the connection]
Xeago_ has quit [Remote host closed the connection]
evenix_ has joined #ruby
Kricir has quit [Ping timeout: 265 seconds]
evenix has quit [Read error: Connection reset by peer]
arietis has joined #ruby
zeeraw has quit [Client Quit]
bradhe has joined #ruby
IceDragon_ has joined #ruby
foredoomed has quit [Ping timeout: 252 seconds]
nari has quit [Ping timeout: 240 seconds]
IceDragon has quit [Ping timeout: 265 seconds]
Solnse has joined #ruby
m4n1f3st0 has joined #ruby
IceDragon_ is now known as IceDragon
Trevoke has quit [Ping timeout: 264 seconds]
kpshek has quit []
blackmesa has joined #ruby
larsam has joined #ruby
toastynerd has joined #ruby
enebo has quit [Quit: enebo]
koell has joined #ruby
<rdark> How can I get PTY to interact with stdout, whilst redirecting stdout to /dev/null
CorySimmons has quit [Quit: Zzz...]
sparrovv has joined #ruby
sparrovv has quit [Remote host closed the connection]
skaflem has joined #ruby
senayar_ has joined #ruby
zeeraw has joined #ruby
SCommette has quit [Quit: SCommette]
<rdark> my google-foo is failing me :(
DrShoggoth has quit [Remote host closed the connection]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
sailias has quit [Ping timeout: 240 seconds]
grvgr has quit [Quit: grvgr]
zeeraw has quit [Client Quit]
dzhulk has quit [Quit: Leaving.]
gilcosson has joined #ruby
roolo has quit [Quit: Leaving...]
mordocai has joined #ruby
senayar has quit [Ping timeout: 244 seconds]
nomenkun has quit [Ping timeout: 240 seconds]
joelroa has joined #ruby
fraterlaetus has joined #ruby
aspires has joined #ruby
Guest52757 is now known as momigi
toastynerd has quit [Remote host closed the connection]
sepp2k has joined #ruby
havenwood has joined #ruby
jhass|off is now known as jhass
kaliya has quit [Quit: Lost terminal]
Voodoofish430 has joined #ruby
Hanmac has joined #ruby
<shevy> hmm
duggiefresh has quit [Remote host closed the connection]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zachallett has quit [Remote host closed the connection]
zcreative has quit [Quit: Computer has gone to sleep.]
duggiefresh has joined #ruby
michael_lee has quit [Ping timeout: 252 seconds]
albedoa has joined #ruby
soc42 has quit [Remote host closed the connection]
Hanmac1 has quit [Ping timeout: 240 seconds]
nvrch has quit [Quit: nvrch]
poguez has joined #ruby
pietr0 has joined #ruby
[gmi] has joined #ruby
klaut_ has quit [Remote host closed the connection]
joelroa has quit [Ping timeout: 240 seconds]
compleatang has quit [Remote host closed the connection]
Advocation has joined #ruby
lw has joined #ruby
<itadder> how can I test out ruby code ideas on my ipad
<itadder> just with ssh
petey has joined #ruby
<itadder> or do they have a IOS IRB
<itadder> that any good
jprovazn has joined #ruby
<shevy> hmm
<shevy> when to use alias ... and alias_method really
<shevy> I seem to use alias like 98% of the time
duggiefresh has quit [Ping timeout: 240 seconds]
<rdark> Actually I found that the bit it was spewing that I didn't want was on STDERR, so I could just append that to the command passed to PTY.spawn.
josemota has quit [Quit: WeeChat 0.4.3]
pr0ggie has quit [Quit: Bye folks]
<csmrfx> itadder: did you google?
<rdark> itadder: http://www.rubymotion.com/ ?
roolo has joined #ruby
<csmrfx> shevy: theres a SO thread on that
<rdark> like the first hit for 'ruby ios'
arietis has quit [Quit: Computer has gone to sleep.]
<csmrfx> .g ruby ios
platzhirsch has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Remote host closed the connection]
gbt has quit [Quit: Leaving...]
maletor has joined #ruby
Xeago has joined #ruby
<shevy> csmrfx yeah but I wanna people here tell me :(
<csmrfx> hehe thats like the 3rd most common q
lurch_ has quit [Quit: lurch_]
bradhe has quit [Remote host closed the connection]
Vovko has joined #ruby
shime has joined #ruby
Kricir has joined #ruby
arietis has joined #ruby
<shime> someone whispered to me: "Object.any_instance.stub is a smell.", but didn't provide any references :( can you folks help?
<lilltiger> In a module, how do I alias a function that uses "self" like -- module a def self.B end end -- and then: --- module a alias self.B_org self.B def self.B end end --- the self isent allowed in the alias, so how to do it?
RaCx has joined #ruby
chrismcg has left #ruby ["Leaving..."]
<shime> lilltiger: gist or it didn't happen
<csmrfx> shevy: maybe this is clearer http://wikimatze.de/method-alias-in-ruby.html
<rdark> lilltiger: self.name?
cina has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
bradhe has quit [Remote host closed the connection]
<lilltiger> rdark: aliases dont allow "self." in them, while the module I want to overload has self.function
<Rylee> With OptionParser how would I get the last two arguments of something like... __FILE__ -t 12 --target aji irc.rylee.me 6125
<Rylee> >?
bradhe has joined #ruby
DreamingRainne has joined #ruby
<lilltiger> ahh maybe alias_method is what i need
cina has joined #ruby
phrozen77 has quit [Changing host]
phrozen77 has joined #ruby
sdouglas has joined #ruby
Kricir has quit [Ping timeout: 240 seconds]
TMM has quit [Quit: Ex-Chat]
axsuul has joined #ruby
iamdoo2 has quit [Read error: Connection reset by peer]
malkomalko has quit []
nathanso_ has joined #ruby
timonv_ has joined #ruby
<shevy> hmmm
Wolland has joined #ruby
<shevy> lilltiger that seems not sound as explanation - class << self; alias bla ble; end should always work too
<shevy> I simply do not understand when I really and absolutely need alias_method
baroquebobcat has joined #ruby
m4n1f3st0 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
grs has quit [Ping timeout: 240 seconds]
maletor_ has joined #ruby
nathansoz has quit [Ping timeout: 241 seconds]
sailias has joined #ruby
<csmrfx> Rylee: whats wrong with ARGV
zeeraw has joined #ruby
<lilltiger> shevy: maybe I dont need it, maybe it's the class << self i'm lacking
bradhe has quit [Ping timeout: 252 seconds]
atno__ has joined #ruby
<Rylee> csmrfx, I was just wondering if there's a way using OptionParser which seems tailored to, yknow, parsing options
<lilltiger> shevy: i'm new to ruby so I dont know how it works
fgo has joined #ruby
<shevy> lilltiger class << self should work for class methods, including aliases; the context of self is different inside of a class << self extension
axsuul has quit [Ping timeout: 265 seconds]
maletor has quit [Ping timeout: 264 seconds]
atno has quit [Ping timeout: 264 seconds]
lw has quit [Quit: s]
<shevy> it still feels clunky to do so, compared to just being able to do alias foo bar :\
<csmrfx> shevy why dont you read the latter link
hiyosi has joined #ruby
<csmrfx> shevy: what does it say after the first example?
<shevy> csmrfx yeah I read it and my question is - where do I need it? the link you gave simply speaks of keeping old references. In when i write ruby, I can not remember having needed that
f0ster has joined #ruby
zachallett has joined #ruby
<csmrfx> need "it"?
<shevy> yeah
<shevy> alias_method
<csmrfx> whats it
<shevy> the lesser used of the two
codezomb has joined #ruby
mansi has quit [Remote host closed the connection]
bradhe has joined #ruby
<csmrfx> well, what does it say about alias_method under the first example?
<shevy> "Alias_method use the value of self during runtime which may be a subclass where the call is lexically located."
<csmrfx> and whats in the next paragraph titled "Conclusion"
mansi has joined #ruby
ylluminate has quit [Quit: Bye!]
<shevy> "Alias_method can be used in Rails to define action with duplicated content and remove duplicated code."
toastynerd has joined #ruby
monkegjinni has quit [Remote host closed the connection]
<csmrfx> and: It is possible with alias_method to reopen a class, override a method call and you can still use the original call. In order to maintain backward compatibility alias_method are used in plugins, extensions, deprecating variables.
<shevy> cool
<shevy> none of that I need
Umschwung has joined #ruby
Umschwung has quit [Max SendQ exceeded]
Mongey has quit [Quit: Mongey]
<shevy> deprecating variables?
<shevy> like for what :P
fgo has quit [Ping timeout: 240 seconds]
michael_lee has joined #ruby
hiyosi has quit [Ping timeout: 240 seconds]
<lilltiger> shevy: thanks, it was the class bit
<shevy> lilltiger \o/
toastynerd has quit [Remote host closed the connection]
andikr has quit [Remote host closed the connection]
smathieu has joined #ruby
toastynerd has joined #ruby
mansi_ has joined #ruby
ktosiek has joined #ruby
<csmrfx> shevy note where alias or alias_method lives?
banister has joined #ruby
Waheedi has joined #ruby
lw has joined #ruby
<shevy> csmrfx where do they live?
hobodave has joined #ruby
mansi has quit [Ping timeout: 265 seconds]
<csmrfx> $ ri alias_method
toastynerd has quit [Remote host closed the connection]
<csmrfx> ri - your best friend in the ruby world
<csmrfx> or at least your friend
yarou has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
francisfish has quit [Remote host closed the connection]
duggiefresh has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
RaCx has quit [Quit: Computer has gone to sleep.]
lolmaus has joined #ruby
mark_locklear has quit [Ping timeout: 264 seconds]
<DreamingRainne> Hi. I'd like to make a basic console-type GUI for sending commands to a (local) network script that does its listening in an IO.select loop. Any advice on the best approach to take so it can receive the commands from that? (Open TCPSockets over localhost, for example?) (This'll be written with Ruby/GTK, for the record.)
elaptics is now known as elaptics`away
CorySimmons has joined #ruby
Umschwung has joined #ruby
duggiefr_ has joined #ruby
pothibo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
mikecmpbll has quit [Ping timeout: 265 seconds]
dumdedum has quit [Quit: foo]
<csmrfx> console !== GUI
cloud|nix has joined #ruby
grs has joined #ruby
<csmrfx> you mean something like midnight commander
<csmrfx> +?
pel_daniel has joined #ruby
<DreamingRainne> Well, "console" in a general sense, not in a bash/xterm sense. Something I can type commands into and it'll receive them even when it's busy waiting on IO.select.
<csmrfx> I believe unix like would be to have a server and then commands to stuff its socket with
zcreative has joined #ruby
<csmrfx> also, I would just jruby
<csmrfx> it sound very interesting, I wish I had more help for you
duggiefresh has quit [Ping timeout: 264 seconds]
smathieu has quit [Remote host closed the connection]
hornairs has quit [Write error: Broken pipe]
<DreamingRainne> Yeah, I saw UNIXServer/UNIXSocket when looking in the documents. It looks like something that might work, I could pass the socket alongside the TCPSockets in IO.select.
Wolland has quit [Remote host closed the connection]
<DreamingRainne> That's one approach to take, but I was just wondering about other possible approaches for this sort of thing, or whether maybe that's a good one after all.
mansi_ has quit [Read error: Connection reset by peer]
<csmrfx> Did you see this snippet? https://gist.github.com/pfleidi/835268
duggiefr_ has quit [Ping timeout: 264 seconds]
mansi has joined #ruby
<DreamingRainne> I remember doing this with DCC chat once, and could control it from XChat, although I'd like to make my own separate program to control it from.
Johnny has joined #ruby
<Johnny> hi
Wolland has joined #ruby
Johnny is now known as Guest83913
<Guest83913> hello fellow rubyers
jlebrech has quit [Quit: Konversation terminated!]
einarj has quit [Remote host closed the connection]
marcdel has quit []
sailias has quit [Ping timeout: 264 seconds]
sailias1 has joined #ruby
sailias1 is now known as sailias
<Guest83913> can anyone help me with this? Heroku logs http://pastebin.com/ktAGSGdt
<csmrfx> some good pointers on event loops / IO here too https://practicingruby.com/articles/event-loops-demystified
sk87 has joined #ruby
wookiehangover has quit [Ping timeout: 244 seconds]
<csmrfx> Guest83913: I think your ruby is not where the app/slug/whatever thinks
* DreamingRainne nods, and reads that.
<Guest83913> how do I do that? I am new to Ruby
saarinen has joined #ruby
kaldreno_ has joined #ruby
<csmrfx> Guest83913: you could start with "which ruby" in console
<Guest83913> Im new to everything...
sk87 has quit [Client Quit]
Czupa has quit [Read error: Connection reset by peer]
mando_ has joined #ruby
mando_ is now known as mando
<Guest83913> which ruby says /home/1234/.rvm/rubies/ruby-2.0.0-p451/bin/ruby
<csmrfx> Guest83913: you see the "No such file or directory" -error in the log
rbartos has quit [Remote host closed the connection]
<toretore> DreamingRainne: if you're using select it would just be another selectable
mahlon has quit [Remote host closed the connection]
shaunbaker has quit [Remote host closed the connection]
<csmrfx> try that with "which"
kaldrenon has quit [Ping timeout: 264 seconds]
<toretore> tcp, unix, whatever
rbartos has joined #ruby
<Guest83913> csmrfx: yes I noticed but I do not know what the error meant
<csmrfx> well google the error then!
zeeraw has joined #ruby
lw has quit [Quit: s]
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
<Guest83913> csmrfx: of course i googled... its google that brought me here too :(
<toretore> i've been meaning to write something like a "process control interface" for a while
<csmrfx> Guest83913: if you do not know what it means you need to google it more
<DreamingRainne> toretore: Indeed, and that's what I'm after, something I can feed to IO.select. The menu has many things it can eat; I'm just considering which to order.
<itadder> wow this person in this video just comments a whole bunch of line of code
Hobogrammer_ has joined #ruby
peterellisjones has quit [Quit: Leaving.]
<csmrfx> toretore: re-write linux? why
<itadder> is comments something frawned upon in ruby code
<itadder> only use it to document
<Guest83913> csmrfx: ok taken your advice... ill google but can i get in touch with anyone if I am really stuck
greenarrow has quit [Quit: 500]
rbartos has quit [Remote host closed the connection]
michael_lee has quit [Ping timeout: 264 seconds]
rbartos has joined #ruby
<csmrfx> Guest83913: heroku already provides answer to your q
<DreamingRainne> TCP, Unix, etc. Be nice if one could make a sort of fake IO object that select could eat from. <shrug>
mahlon has joined #ruby
<toretore> DreamingRainne: there's signals, but that's kind of limited
sdouglas has quit [Remote host closed the connection]
cloud|nix has quit [Quit: Ex-Chat]
<toretore> you can make "fake" io objects with pipes and to_io afaik
EmpowerNe has joined #ruby
axsuul has joined #ruby
<DreamingRainne> toretore: Yeah, I'd rather not do that, yank it out of the loop, if possible to avoid. So far, UNIXSocket is looking good.
sdouglas has joined #ruby
mahlon has quit [Client Quit]
m4n1f3st0 has joined #ruby
<toretore> DreamingRainne: you shoud be queueing your signals anyway
<Guest83913> csmrfx: yep I tried all that... heroku says hash bang has to be there it was already there
duggiefresh has joined #ruby
<csmrfx> ok think about it more...
<toretore> otherwise you could corrupt the state of your program
<DreamingRainne> toretore: Ah, I was wondering about that (pipes). Might be good if the UI is in the same process. So IO.select can get input from those?
<csmrfx> Guest83913: read what does it say after the hash bang?
aspires has quit []
<toretore> yup, pipes work with select
Hanmac1 has joined #ruby
ziyadb_ has quit [Quit: Connection closed for inactivity]
RaCx has joined #ruby
<toretore> afaik IO.select will use to_io to get the actual fd
cocotton has joined #ruby
rbartos has quit [Remote host closed the connection]
rbartos has joined #ruby
<toretore> DreamingRainne: named pipes is also an alternative.. but i would probably go with a unix or tcp socket
<cocotton> Hey guys, I'm trying to find a gem that will allow me to do such a thing as "curl -X..." in a script. Yet I can't seem to find one. Anyone knows if such a thing existsÉ
<toretore> you mean like net/http?
<Guest83913> csmrfx: it should be just ruby ...am i right?
<EmpowerNe> Hello everyone, I want to talk with you about a way to have a blog and make money from it from your home without selling products or thing like this . That`s why I invite you to watch the video to learn more. winblog.fr/?id=empirecroteau
EmpowerNe has quit [Killed (idoru (Spam is off topic on freenode.))]
Hanmac has quit [Ping timeout: 240 seconds]
GeorgesLeYeti has quit [Quit: Quitte]
aspires has joined #ruby
pu22l3r_ has quit [Remote host closed the connection]
<shevy> hmm Object.send :include, Foo seems to work inside of a method; is there another way, inside of a method?
<toretore> what?
pu22l3r has joined #ruby
g0bl1n has quit [Quit: Ex-Chat]
<itadder> what is arr.map! do
john_____ has joined #ruby
<csmrfx> Guest83913: $ which ruby shows you where your ruby is
sdouglas has quit [Ping timeout: 265 seconds]
<havenwood> itadder: a pirate's map?
<certainty> itadder: the same as .map but it mutates the receiver
pushpak has joined #ruby
<toretore> http://rdoc.info/stdlib/core/Array#map%21-instance_method
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<itadder> thanks
<csmrfx> Guest83913: the error says that the command was not found, so whichever ruby you have, it's not where the script/app/slug thinks it is
<itadder> oh take each out of array and so something
Elhu_ has quit [Quit: Computer has gone to sleep.]
<DreamingRainne> I guess I'm leaning toward UNIXSocket at this point. It takes a filename; does that file have to exist, and if so, does it have to be a specific type of file (like a named FIFO)? Or is it just an identifier?
<shevy> toretore hmm to include a module into Object at runtime
<itadder> each element of a data structure and preform some procedure
<itadder> AHH
<csmrfx> Guest83913: now you need to either change the script to point to a real ruby executable, or install a missing ruby
<itadder> thanks
cloud|nix has joined #ruby
cloud|nix has quit [Client Quit]
<toretore> shevy: what's your goal here?
<havenwood> itadder: #map! is like #map but as is the convention for bang! methods it modifies the reciever
<certainty> itadder: you can think of it as mapping a function accross an array
<shevy> toretore I need another way; the current one works fine but it looks not elegant
<Guest83913> csmrfx: hmm cool ill figure this out i guess... thanks for your help... :)
<csmrfx> Guest83913: try with the exact ruby version in the error (after the which)
<itadder> certainty: oh neat
<toretore> shevy: for what purpose?
<Guest83913> csmrfx: yep
<csmrfx> Guest83913: perhaps you have the right ruby executable, but the path is incorrect
Kricir has joined #ruby
yfeldblum has joined #ruby
<shevy> toretore making a module available at the base level at runtime depending on methods called; so that a method like foo() can work in a .rb file when someone calls this or that method
stringoO has joined #ruby
<csmrfx> I believe it is time for my daily jog now!
rbartos has quit [Ping timeout: 265 seconds]
<csmrfx> bbl
alexju has quit [Ping timeout: 241 seconds]
<shevy> csmrfx in the snow?!?! :(
<csmrfx> alas, snow has melted as it is the warmest feb in century
<shevy> hmm good point, also warmest here
workmad3 has quit [Read error: Operation timed out]
Alina-malina has quit [Read error: Connection reset by peer]
<Rylee> Is there a way to non-essentially require a gem? Use case is that I want to check if Paint is installed, and if it is, use it to colorize log lines, but if not, then just carry on with uncolored log lines.
<certainty> itadder: also generally you might want to avoid .map! unless you know that it's safe to use (one example would be a fresh array that is not used outside of the scope that you use the .map! in)
<itadder> oh
arietis has quit [Quit: Computer has gone to sleep.]
<certainty> Rylee: one way is to require it and rescue a potential LoadError
m1lt0n_ has quit [Quit: leaving]
joelroa has joined #ruby
mojjojo has quit [Quit: mojjojo]
Zesty has joined #ruby
<Rylee> hm
<Rylee> okay
Alina-malina has joined #ruby
xaq has joined #ruby
sarmiena_ has joined #ruby
<shevy> not very elegant :)
ndrei has quit [Ping timeout: 264 seconds]
<shevy> I think you can obtain a list of all gems installed via Gem:: somehow
xaq_ has joined #ruby
<gr33n7007h> Hey "itadder".reverse == shimano wheel hub :)
<itadder> what
m4n1f3st0 has quit [Ping timeout: 241 seconds]
<DreamingRainne> No less elegant than when it raises an exception when it doesn't exist, I think.
Shidash has joined #ruby
cina has quit [Ping timeout: 244 seconds]
danman has joined #ruby
nanoyak has joined #ruby
mahlon has joined #ruby
joelroa has quit [Ping timeout: 240 seconds]
havenwood has quit []
<shevy> well when you require it, it may load up stuff into the environment or?
<DreamingRainne> One thing I remember learning is that it's better to just do something as though it'll work and handle it if it doesn't, rather than testing first. Like, open the file and rescue Errno::ENOENT rather than doing File.exist? first (maybe it gets deleted between exist? and File.new).
cina has joined #ruby
geggam_ has joined #ruby
<shevy> I always check if a file exist before trying to read it
<certainty> i don't
andrewlio has quit [Ping timeout: 264 seconds]
<shevy> you use 4 extra lines for begin/rescue?
<certainty> you always have to take care of the errors
xaq has quit [Ping timeout: 240 seconds]
<certainty> having a File.exists? line doesn't change that
geggam has quit [Ping timeout: 252 seconds]
<shevy> k so you have to use begin/rescue checks everywhere
GaryOak_ has joined #ruby
<DreamingRainne> If you just try to open it: if it does exist, you have it in one fell swoop. If you test File.exist? first, it may well have been deleted between the exist? and the open: it's not atomic.
aspires has quit []
<shevy> DreamingRainne sure, in that case my code will continue to run but will simply assume that the file does not exist
xerox357_ has quit [Remote host closed the connection]
<DreamingRainne> And if it did, the exception will fly over your head even though you were willing to deal with it.
xerox357 has joined #ruby
<DreamingRainne> Unless you begin/rescue anyway, in which case you might as well just do that in the first place.
<shevy> certainty do you have a large ruby project online somewhere, like on github?
mallu has joined #ruby
Es0teric has joined #ruby
roolo has quit [Quit: Leaving...]
<certainty> shevy: no. My biggest projects are internal to my company. Most of my code is on github but i don't think there is much ruby
<shevy> or rubygems :P
<shevy> :(
<certainty> s/github/bitbucket/
<shevy> well I dont want your haskell code... :P
<certainty> i thought so :)
<mallu> hi, i'm new to ruby and still learning. how can I tell ruby not to ext it even if a command failed with exit 1?
m4n1f3st0 has joined #ruby
<cocotton> toretore Yes that seem to be it, yet I'm not certain how to pass a custom request method
<shevy> mallu you mean to ignore exit() call?
<cocotton> toretore: ^
enebo has joined #ruby
<shevy> mallu you might be able to rescue SystemExit, not sure though
<mallu> yes
<DreamingRainne> Besides, you don't necessarily need to handle it at the level it's opened from. Maybe I want to spawn an object that reads its data from a file. The object's File.new is unadorned: it lets exceptions pass to the caller, which can, in turn, choose how to deal with it.
xerox357_ has joined #ruby
xerox357 has quit [Read error: Connection reset by peer]
<certainty> mallu: yes you can rescue that
<Sawbones> I did it!
<shevy> Sawbones did what
<certainty> it!
<Sawbones> I've convinced my boss to switch over to Rails
<certainty> oh oh
<shevy> from?
<mallu> can you please tell how to do it?
<Sawbones> I've been planning the change over for awhile now
<Sawbones> CakePHP 1.3
<shevy> mallu hmm off the top of my head perhaps try.... begin; def foo; exit; end; rescue SystemExit; puts 'DO NOT LEAVE!'; end
<certainty> mallu: http://apidock.com/ruby/Kernel/exit ... that's true for newer rubys as well
lazyguru_ is now known as lazyguru
<shevy> nope my code does not work
lazyguru has left #ruby [#ruby]
<DreamingRainne> So after the File.new, the object is free to simply pretend it worked: if it didn't, it wouldn't even reach the "after" part. Exceptions can be quite elegant.
tyfighter has joined #ruby
xcv has joined #ruby
robmozart_ has quit []
<certainty> sure they allow you to seperate concerns and provide non local exits
pedda has quit [Quit: Textual IRC Client: www.textualapp.com]
robmozart_ has joined #ruby
<shevy> aha now it works
<shevy> mallu try this :D loop {; begin; exit; puts "never get here"; rescue SystemExit; puts "rescued a SystemExit exception"; end; }
iamdoo2 has joined #ruby
<DreamingRainne> As can rescuing them. Part of the reason for raising an exception is to allow a caller to rescue it if it can handle the problem in question.
shime has quit [Ping timeout: 252 seconds]
<shevy> and he has no other choice but to handle it
<mallu> ok will try that
lazyguru has joined #ruby
<mallu> thanks
robmozart_ is now known as robmozart
centrx has joined #ruby
<certainty> As an aside, beside conditions Common Lisp has also an abstraction called restarts. This way you can give the client different strategies to handle exceptional cases
<certainty> not the same as ruby's retry
yarou has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
xcv has quit [Remote host closed the connection]
mehlah has quit [Quit: Leaving...]
xcv has joined #ruby
francisfish has joined #ruby
<shevy> how does erlang handle this?
<shevy> if it would not have such an awful language :(
<shevy> erm, *syntax
<yxhuvud> certainty: there is also 'redo'
Guest83913 has quit [Quit: Page closed]
_bart has quit [Remote host closed the connection]
crystal77 has quit [Quit: Computer has gone to sleep.]
* DreamingRainne can never remember which is which between "redo" and "retry". :<
<itadder> okay
vlad_starkov has joined #ruby
grvgr has joined #ruby
sjkaliski has joined #ruby
gigetoo has quit [Remote host closed the connection]
xcv has quit [Read error: Connection reset by peer]
SCommette has joined #ruby
heftig has joined #ruby
Hanmac1 has quit [Ping timeout: 265 seconds]
<certainty> yxhuvud: yupp, also not the same
<cocotton> I'm trying to use the net::http class to perform an action similar to `curl -XDELETE myhost/deletethis`, yet I'm not too sure what method/object to use in the class. Anyone got a little hint of what I should be looking at??
larsam has quit [Quit: larsam]
gigetoo has joined #ruby
andrewlio has joined #ruby
<certainty> shevy: what do you mean? Accessing files?
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<banister> apeiros yo
lurch_ has joined #ruby
<banister> certainty check out mulligan
Hanmac has joined #ruby
sepp2k1 has joined #ruby
recurrence has joined #ruby
<banister> certainty i think that's a gem to bring restarts to ruby
SCommette has quit [Client Quit]
sepp2k has quit [Ping timeout: 265 seconds]
<banister> is there a nice ruby (or rails) method to turn "hello little man" into "Hello Little Man"
fgo has joined #ruby
xerox357_ has quit [Remote host closed the connection]
rdark has quit [Quit: leaving]
centrx has quit [Quit: All this computer hacking is making me thirsty]
tjr9898 has quit [Read error: Connection reset by peer]
tjr9898_ has joined #ruby
xerox357 has joined #ruby
<banister> ah it's titlecase
hiyosi has joined #ruby
codeFiend has joined #ruby
<gr33n7007h> banister, "hello little man".split.map {|n| n.capitalize }.join(" ")
aspires has joined #ruby
<gr33n7007h> any good
<banister> gr33n7007h thx, i went with the rails method instead ;)
<gr33n7007h> banister, thought you might :)
<banister> ;)
SCommette has joined #ruby
rmorello has joined #ruby
<shevy> certainty hmm no, error handling in general, like rescuing faulty or failing code
<certainty> banister: doesn't seem to have any code yet?
<DreamingRainne> Or "map(&:capitalize)" in there. Fun little trick. Hehe.
fgo has quit [Ping timeout: 244 seconds]
tvw has quit []
dEPy has quit [Quit: Lingo - http://www.lingoirc.com]
jamto11 has quit []
<certainty> shevy: i don't know the details, apart from failing early and loud. I have heard though that it get's clumbsy soon due to weired scoping issues, but that's rumors
xerox357 has quit [Read error: Connection reset by peer]
xerox357_ has joined #ruby
<certainty> banister: thanks. I've looked at: https://github.com/ryana/mulligan/
<gr33n7007h> DreamingRainne, little Symbol to Proc action :)
mikepack has quit [Remote host closed the connection]
john_____ has quit [Quit: Page closed]
<DreamingRainne> "hello little lady".gsub(/\S+/, &:capitalize)
<DreamingRainne> We have ways.
<banister> certainty another closely related gem https://github.com/conradirwin/pry-rescue
<gr33n7007h> We sure do
hiyosi has quit [Ping timeout: 264 seconds]
<cocotton> Anyone how to specify a request method different from get or post, with the net:http class?
DrShoggoth has joined #ruby
shinobi_one has joined #ruby
senayar_ has quit [Remote host closed the connection]
<banister> certainty pry-rescue excites me.
sotoj has joined #ruby
<banister> certainty i've used it a lot, it's awesome
<certainty> banister: of course it does ;)
compleatang has joined #ruby
Sawbones has quit []
pietr0 has quit [Quit: pietr0]
mojjojo has joined #ruby
<certainty> banister: it's a nice thing to have. Together with restarts one could build functionality similar to CL's debugger, which presents you a list of available restarts when a condition was signaled
CaptainJet has joined #ruby
pietr0 has joined #ruby
rezzack has quit [Quit: Leaving.]
_bart has joined #ruby
njection has quit []
njection has joined #ruby
cocotton has quit [Quit: Page closed]
carraroj has quit [Quit: Konversation terminated!]
pu22l3r_ has joined #ruby
vlad_sta_ has joined #ruby
richardc has quit [Remote host closed the connection]
andrewlio has quit [Quit: Leaving.]
vlad_starkov has quit [Read error: No route to host]
crystal77 has joined #ruby
smathieu has joined #ruby
jzig has joined #ruby
geggam_ is now known as geggam
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
sdouglas has joined #ruby
rootshift has joined #ruby
smathieu_ has joined #ruby
pu22l3r has quit [Ping timeout: 265 seconds]
vim_shim has joined #ruby
carraroj has joined #ruby
Elhu has joined #ruby
mojjojo has quit [Quit: mojjojo]
sailias has quit [Quit: Leaving.]
smathieu has quit [Ping timeout: 264 seconds]
felixflores has joined #ruby
sailias has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
kung has joined #ruby
momigi has quit [Read error: Connection reset by peer]
pfg has joined #ruby
momigi has joined #ruby
yekta has joined #ruby
yfeldblu_ has joined #ruby
<certainty> banister: also related: https://github.com/avdi/hammertime
<banister> certainty i never found that gem interesting, it doesn't even put you in the context of the error
claymore has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Ping timeout: 265 seconds]
momigi_ has joined #ruby
momigi_ has quit [Read error: Connection reset by peer]
<certainty> banister: i've glanced over it. It seemed to be nice
nisstyre has joined #ruby
momigi_ has joined #ruby
chinkung has quit [Ping timeout: 264 seconds]
<banister> certainty i like the idea, but i think it has limited use when you dont even get access to the error context
<certainty> that's true
<banister> certainty a simple use of binding.of_caller(1) would fix it though ;) https://github.com/banister/binding_of_caller
rbartos has joined #ruby
pietr0 has quit [Quit: pietr0]
<certainty> i read that it allowed you to open an irb session which could presumably be replaced with a pry session
compleatang has quit [Remote host closed the connection]
<banister> certainty ya
doubleemms has quit [Quit: doubleemms]
CorySimmons has quit [Quit: Bye!]
decoponio has quit [Quit: Leaving...]
yfeldblu_ has quit [Remote host closed the connection]
lurch_ has quit [Quit: lurch_]
RaCx has quit [Quit: Computer has gone to sleep.]
yfeldblum has joined #ruby
Waheedi has quit [Ping timeout: 240 seconds]
RaCx has joined #ruby
momigi has quit [Ping timeout: 264 seconds]
pietr0 has joined #ruby
mojjojo has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
sarmiena_ has quit [Quit: sarmiena_]
alexju has joined #ruby
rbartos has quit [Remote host closed the connection]
doubleemms has joined #ruby
skkeeper has joined #ruby
shadoi1 has quit [Quit: Leaving.]
rbartos has joined #ruby
pothibo has joined #ruby
Waheedi has joined #ruby
smathieu_ has quit [Remote host closed the connection]
<certainty> banister: mulligan uses continuations. My memory bad, but haven't there been issues with continuations leaking memory in the past? Is that still the case?
<certainty> +is
Alina-malina has quit [Ping timeout: 240 seconds]
f0ster has quit [Remote host closed the connection]
Luyt__ has joined #ruby
dzhulk has joined #ruby
inam has joined #ruby
rbartos has quit [Ping timeout: 240 seconds]
oso|away is now known as oso96_2000
claymore has joined #ruby
kirun has joined #ruby
SCommette has quit [Quit: SCommette]
sputnik13 has quit [Quit: Textual IRC Client: www.textualapp.com]
vlad_sta_ has quit [Remote host closed the connection]
whomp has joined #ruby
maletor_ has quit [Read error: Connection reset by peer]
mojjojo has quit [Quit: mojjojo]
Shidash has quit [Ping timeout: 252 seconds]
RaCx has quit [Quit: Computer has gone to sleep.]
rbartos has joined #ruby
razrunelord has quit [Remote host closed the connection]
joelroa has joined #ruby
mourest has quit [Remote host closed the connection]
awc737 has joined #ruby
<awc737> does anyone see the Array into String error in muy code?
jrhe has quit [Quit: Connection closed for inactivity]
<shevy> awc737 normally ruby shows the file line
Alina-malina has joined #ruby
razrunelord has joined #ruby
<awc737> shevy: chef broke at this line: 42: bash "hosts" do
larsam has joined #ruby
<shevy> that can not be
<awc737> but I don't see that line being a problem...
RaCx has joined #ruby
CorySimmons has joined #ruby
<shevy> you use some software here that does not give you the precise error
tyfighter has quit [Ping timeout: 265 seconds]
mansi has quit [Remote host closed the connection]
<awc737> oh wait now, I read it wrong
<awc737> 33>> sites = data_bag("sites")
carraroj has quit [Quit: Konversation terminated!]
mansi has joined #ruby
mercwithamouth has joined #ruby
joelroa has quit [Ping timeout: 240 seconds]
<shevy> no
<shevy> that simply is not the line with an error like that
<awc737> ah nvm sorry
<awc737> I forgot to specify my data_bags_path
<awc737> so it couldn't even find the file
whomp has quit [Quit: leaving]
skkeeper has quit [Quit: ZNC - http://znc.in]
sdouglas has quit [Ping timeout: 265 seconds]
kate_r has quit [Ping timeout: 240 seconds]
razrunelord has quit [Ping timeout: 240 seconds]
sarmiena_ has joined #ruby
mikecmpbll has joined #ruby
<shevy> well
<shevy> a solved problem is a good problem, so \o/
mansi_ has joined #ruby
<awc737> lol thanks for your help shevy
<awc737> I didn't read the complete error message
dzhulk has quit [Quit: Leaving.]
<csmrfx> data bags? weiird
<shevy> I am amazed you could infer the error actually :D
mansi has quit [Ping timeout: 265 seconds]
<awc737> csmrfx: learning the ever so complex Chef
jackneill has joined #ruby
<awc737> shevy: it was actually the most descriptive message ever lol, it helps to read: http://laravel.io/bin/xY4B
sdwrage has quit [Quit: This computer has gone to sleep]
cs02rm0 has joined #ruby
charliesome has joined #ruby
mrjensen has joined #ruby
kpshek has joined #ruby
<shevy> I still can't see much hahaha, perhaps you are just more used to this display, but to my eyes, everything feels alien there... the pastie, the code, chef ...
maletor has joined #ruby
wiku5_ has quit [Ping timeout: 240 seconds]
<shevy> the error is at default.rb 33 ?
sandelius has joined #ruby
SCommette has joined #ruby
alvaro_o has joined #ruby
<Rylee> Is there a way to do this?
<Rylee> case $options.thread_max_behavior
<Rylee> when :cycle or :cycle_quit
<awc737> haha
<shevy> yeah Rylee
<shevy> you chain via , there
<Rylee> oh, so
<shevy> when :cycle, :cycle_quit
<Rylee> alright, thanks!
sandelius has left #ruby [#ruby]
reset has joined #ruby
<awc737> what pastie do ruby mongers use shevy
<shevy> I think most use gist, I like pastie.org (well the old one... the new one is not as good )
SHyx0rmZ has joined #ruby
tylershi_ has quit [Read error: Connection reset by peer]
<Jamo> gist! (or one I have made myself)
tylershipe has joined #ruby
carraroj has joined #ruby
jefflyne has quit [Ping timeout: 240 seconds]
Kruppe has quit [Quit: ZNC - http://znc.in]
<awc737> i like super simple if i'm just showing a block of text
skkeeper has joined #ruby
nhhagen has quit [Remote host closed the connection]
Zesty has quit [Quit: Linkinus - http://linkinus.com]
CorySimmons has quit [Quit: Bye!]
ndrei has joined #ruby
CorySimmons has joined #ruby
CorySimmons has quit [Max SendQ exceeded]
sdwrage has joined #ruby
Kruppe has joined #ruby
CorySimmons has joined #ruby
sdouglas has joined #ruby
<shevy> pastie.org has a 'raw' option to just display the raw entry, gist has it as well
jefflyne has joined #ruby
<shevy> I liked the colours on pastie.org
<shevy> but they changed a few things a year or two ago, now it is no longer better than gist for me :(
sdwrage has quit [Client Quit]
mrjensen has quit []
claymore has quit [Ping timeout: 264 seconds]
<shevy> everything gets worse
<certainty> worse is better
<popl> shevy: such is life
elaptics`away is now known as elaptics
<awc737> hard to beat the simpleness http://laravel.io/bin
yekta has quit [Quit: yekta]
momigi_ has quit [Remote host closed the connection]
MattStratton has joined #ruby
tylershipe has quit [Read error: Connection reset by peer]
tylershipe has joined #ruby
agjacome has quit [Quit: Lost terminal]
fgo has joined #ruby
crystal77 has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
jjbohn is now known as jjbohn|afk
fgo has quit [Read error: No route to host]
codeFiend has quit [Quit: codeFiend]
fgo has joined #ruby
glebm has quit [Ping timeout: 240 seconds]
glebm_ has joined #ruby
agent_white has joined #ruby
momigi_ has joined #ruby
jjbohn|afk is now known as jjbohn
tylershipe has quit [Read error: Connection reset by peer]
popl has quit [Ping timeout: 240 seconds]
tylershipe has joined #ruby
cs02rm0 has quit [Quit: leaving]
tyfighter has joined #ruby
CorySimmons has quit [Quit: Bye!]
tylershipe has quit [Read error: Connection reset by peer]
CorySimmons has joined #ruby
tylershipe has joined #ruby
bradhe has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 264 seconds]
grvgr has quit [Quit: grvgr]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nisstyre has quit [Quit: WeeChat 0.4.3]
agjacome has joined #ruby
bradhe has joined #ruby
stevenmagelowitz has joined #ruby
CorySimmons has quit [Client Quit]
claymore has joined #ruby
stevenmagelowitz has quit [Remote host closed the connection]
CorySimmons has joined #ruby
yacks has quit [Quit: Leaving]
stevenmagelowitz has joined #ruby
yfeldblum has quit [Remote host closed the connection]
gfunc has joined #ruby
wiku5_ has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
AlexRussia has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
stevenmagelowitz is now known as stevegschool
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
AlexRussia has joined #ruby
Elhu has joined #ruby
rezzack has joined #ruby
leonidlm has quit [Ping timeout: 264 seconds]
zcreative has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
elaptics is now known as elaptics`away
yubrew has quit []
m4n1f3st0 has quit [Ping timeout: 252 seconds]
charliesome has joined #ruby
evenix_ has quit [Read error: Connection reset by peer]
Kneferilis has quit [Read error: Connection reset by peer]
claymore has quit [Ping timeout: 265 seconds]
Alina-malina has quit [Read error: Connection reset by peer]
evenix has joined #ruby
Alina-malina has joined #ruby
yubrew has joined #ruby
m4n1f3st0 has joined #ruby
vim_shim has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
motto has joined #ruby
clamstar has joined #ruby
CorySimmons has quit [Quit: Zzz...]
Alina-malina has quit [Read error: Connection reset by peer]
aspires has quit []
ndrei has quit [Ping timeout: 264 seconds]
lw has joined #ruby
nhhagen has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
shinobi_one has quit [Quit: shinobi_one]
bluepojo has quit [Ping timeout: 265 seconds]
mallu has quit [Quit: Page closed]
Symbiosisz has quit [Quit: Leaving]
aeio has joined #ruby
Symbiosisz has joined #ruby
einarj has joined #ruby
jayne_ has joined #ruby
Atww has joined #ruby
sdouglas has quit [Remote host closed the connection]
k03ll has joined #ruby
sdouglas has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
mlpinit has quit [Remote host closed the connection]
m4n1f3st_ has joined #ruby
momomomomo has quit [Quit: momomomomo]
Paradox has quit [Ping timeout: 265 seconds]
xerox357_ has quit [Remote host closed the connection]
m4n1f3st0 has quit [Ping timeout: 265 seconds]
m8 has quit [Ping timeout: 265 seconds]
mjc_ has quit [Ping timeout: 265 seconds]
jayne has quit [Read error: Connection reset by peer]
Atw has quit [Remote host closed the connection]
koell has quit [Quit: So say we all!]
lfox has quit [Ping timeout: 265 seconds]
jrhorn424 has quit [Ping timeout: 265 seconds]
frem has joined #ruby
existensil has quit [Ping timeout: 265 seconds]
mordocai has quit [Remote host closed the connection]
lfox has joined #ruby
mordocai has joined #ruby
jrhorn424 has joined #ruby
Geniack has quit [Ping timeout: 265 seconds]
mlpinit has joined #ruby
aef has quit [Ping timeout: 265 seconds]
jabular_ has quit [Ping timeout: 265 seconds]
emdub has quit [Ping timeout: 265 seconds]
frem has quit [Changing host]
frem has joined #ruby
Paradox has joined #ruby
jabular has joined #ruby
emdub has joined #ruby
artgoeshere has quit [Ping timeout: 265 seconds]
mjc_ has joined #ruby
Geniack has joined #ruby
stevegschool is now known as stytown
artgoeshere has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
inam has quit []
aef has joined #ruby
MattStratton has quit [Write error: Connection reset by peer]
mlpinit_ has joined #ruby
dkamioka has joined #ruby
motto has quit [Quit: Sto andando via]
nhhagen has quit [Ping timeout: 240 seconds]
sdouglas has quit [Ping timeout: 244 seconds]
IceyEC has joined #ruby
einarj has quit [Remote host closed the connection]
MattStratton has joined #ruby
rmorello has quit [Remote host closed the connection]
senayar has joined #ruby
xerox357 has joined #ruby
xerox357 has quit [Remote host closed the connection]
mlpinit has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
grvgr has joined #ruby
itadder has quit [Remote host closed the connection]
rmorello has joined #ruby
grvgr has quit [Client Quit]
wiku5_ has quit [Ping timeout: 264 seconds]
grzywacz has quit [Ping timeout: 240 seconds]
diegoviola has quit [Quit: WeeChat 0.4.3]
markisonfire has joined #ruby
chrisseaton has joined #ruby
xerox357 has joined #ruby
axsuul has quit [Ping timeout: 265 seconds]
shinobi_one has joined #ruby
picca has joined #ruby
vim_shim has joined #ruby
phantomtiger has quit [Quit: phantomtiger]
shime has joined #ruby
Alina-malina has joined #ruby
CorySimmons has joined #ruby
CorySimmons has quit [Client Quit]
dzhulk has joined #ruby
CorySimmons has joined #ruby
oso96_2000 is now known as oso|away
mordocai has quit [Remote host closed the connection]
sdouglas has joined #ruby
Advocation has quit [Quit: Advocation]
mordocai` has joined #ruby
frem has quit [Ping timeout: 265 seconds]
MindfulMonk has quit [Ping timeout: 265 seconds]
seich has quit [Ping timeout: 265 seconds]
mordocai` has left #ruby [#ruby]
joelroa has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
yo61 has quit [Ping timeout: 265 seconds]
shime has quit [Ping timeout: 244 seconds]
Waheedi has quit [Quit: Waheedi]
artgoeshere has quit [Ping timeout: 265 seconds]
jeregrine has quit [Ping timeout: 265 seconds]
mbff- has quit [Ping timeout: 265 seconds]
maZtah has joined #ruby
frem has joined #ruby
Waheedi has joined #ruby
mbff has joined #ruby
kpshek has quit []
nhhagen has joined #ruby
artgoeshere has joined #ruby
mbff is now known as Guest65897
yo61 has joined #ruby
maZtah is now known as maZtah
MindfulMonk has joined #ruby
Klumben has quit [Ping timeout: 265 seconds]
xlogic has quit [Remote host closed the connection]
zenojis has quit [Quit: No Ping reply in 180 seconds.]
seich- has joined #ruby
maZtah has quit [Changing host]
maZtah has joined #ruby
Jetchisel has joined #ruby
zenojis has joined #ruby
Klumben has joined #ruby
aspires has joined #ruby
joelroa has quit [Ping timeout: 240 seconds]
jeregrine has joined #ruby
mikepack has joined #ruby
mahagon has joined #ruby
rootshift has joined #ruby
digifiv5e_ has quit [Changing host]
digifiv5e_ has joined #ruby
digifiv5e_ is now known as digifiv5e
Elhu has quit [Quit: Computer has gone to sleep.]
skaflem has quit [Quit: Leaving]
RaCx has joined #ruby
picca has left #ruby [#ruby]
wiku5_ has joined #ruby
bradhe has quit [Remote host closed the connection]
shvelo has quit [Ping timeout: 240 seconds]
xaq_ has quit [Remote host closed the connection]
shredding has joined #ruby
rbartos has quit [Remote host closed the connection]
rbartos has joined #ruby
mahagon has quit [Ping timeout: 252 seconds]
sambao21 has joined #ruby
mansi_ has quit [Remote host closed the connection]
mansi has joined #ruby
rbartos has quit [Ping timeout: 240 seconds]
charles81_ is now known as charles81
wiku5_ has quit [Quit: WeeChat 0.4.1]
sdouglas has quit [Remote host closed the connection]
wiku5_ has joined #ruby
axl_ has quit [Quit: axl_]
Kricir has quit []
mansi has quit [Ping timeout: 264 seconds]
YamakasY has quit [Ping timeout: 240 seconds]
mrjensen has joined #ruby
<mostlybadfly> Has anyone here started Ruby later on like at 30 and made a career with it?
<awc737> 30 is young
<terrellt> One should not make a career of a language.
<yxhuvud> people change languages all the time. a more relevant question is if anyone here started to program after 30.
fgo has joined #ruby
klaut_ has joined #ruby
<mostlybadfly> Yeah true
vlad_starkov has joined #ruby
<mostlybadfly> Well this is my first experience with programming and I'm 31
nanoyak has joined #ruby
Elhu has joined #ruby
<mostlybadfly> Not happy with my job. I'm just having fun with it and enjoy learning it so that's most important right now I guess
caveat- has quit [Ping timeout: 245 seconds]
cina has quit [Remote host closed the connection]
hiyosi has joined #ruby
mansi has joined #ruby
phantomtiger has joined #ruby
mikepack_ has joined #ruby
<banister> mostlybadfly some companies specialize in people who are making a career change into programming, and can more or less guarantee a junor-level/internship position if you successfully complete their course
fgo has quit [Ping timeout: 264 seconds]
<banister> mostlybadfly check out generalassemb.ly
<banister> for example, ther'es a few others too
mark_locklear has joined #ruby
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
timonv_ has quit [Remote host closed the connection]
hiyosi has quit [Ping timeout: 244 seconds]
mikepack has quit [Ping timeout: 240 seconds]
<mostlybadfly> Thanks banister
mansi has quit [Ping timeout: 240 seconds]
sigurding has joined #ruby
<mostlybadfly> I'll need to explore these options. Just sick of not doing anything creative or challenging
sotoj has quit [Ping timeout: 265 seconds]
<sigurding> guys, short question. I have a small method in a unit test, which should not be tested. How do I achieve that? (it is a helper method, for other test methods)
bluOxigen has quit [Ping timeout: 240 seconds]
echevemaster has joined #ruby
m__s has joined #ruby
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
Jetchisel has quit [Ping timeout: 252 seconds]
mansi has joined #ruby
mansi has quit [Remote host closed the connection]
meatherly has quit [Remote host closed the connection]
mansi has joined #ruby
meatherly has joined #ruby
tvw has joined #ruby
meatherl_ has joined #ruby
caveat- has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
cescalante has joined #ruby
thumpba_ has joined #ruby
rbartos has joined #ruby
meather__ has joined #ruby
mansi has quit [Ping timeout: 252 seconds]
meatherly has quit [Ping timeout: 244 seconds]
meatherl_ has quit [Ping timeout: 240 seconds]
caveat- has quit [Ping timeout: 240 seconds]
<redlines> which library is most popularly used for inspecting video files in Ruby?
randomnick_ has joined #ruby
<redlines> rvideo doesn't work for me and rmovie is 8 years deprecated
mansi has joined #ruby
caveat- has joined #ruby
<fveillette> quick question: if i have a hashe that 5 key/value and an other hashe that have the same 5 key/value but with an extra 1 so 6 total. how i can evaluate if the 5 key value are the same in both hashes and not removing the 6th key of the second hashe
sambao21 has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit [Remote host closed the connection]
rbartos has quit [Ping timeout: 254 seconds]
dblessing has quit [Read error: Connection reset by peer]
<DreamingRainne> fveillette: In that case, maybe something like: otherhash.merge(firsthash) == otherhash
thumpba_ has quit [Remote host closed the connection]
platzhirsch has joined #ruby
dblessing has joined #ruby
<fveillette> DreamingRainne: will try that
<fveillette> thanks :)
<DreamingRainne> Or more explicitly in a loop like: firsthash.all?{|(key,value) otherhash[key] == value}
<DreamingRainne> Er, |(key,value)|
Faris has quit [Ping timeout: 240 seconds]
sotoj has joined #ruby
caveat- has quit [Remote host closed the connection]
<jhass> no need for the parens, |key, value| works just fine
snuffeluffegus has joined #ruby
<apeiros> fveillette: it's hash, not hashe ;-)
havenwood has joined #ruby
<fveillette> :)
chrisseaton has quit []
caveat- has joined #ruby
Wolland has quit []
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
mary5030 has quit [Remote host closed the connection]
xerox357 has quit [Remote host closed the connection]
razrunelord has joined #ruby
<fveillette> merge method works!
<fveillette> thanks guy
mary5030 has joined #ruby
xerox357 has joined #ruby
bradhe has joined #ruby
cina has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
<fveillette> last stupid question is it true ruby on rails will not be support anymore and because of that ruby will die...
tvw has quit []
<popl> fveillette: How high are you right now?
<fveillette> lol
<DreamingRainne> I've never used Rails, and Ruby's alive and well as far as I'm concerned.
sputnik13 has joined #ruby
<fveillette> my co-worker told me that :)
<fveillette> that the language will die because of this
<popl> How high is your coworker?
<fveillette> i code in ruby because i'm using chef...
<fveillette> so nothing rails related lol
<apeiros> your coworker is full of shit and either trolling you mightily or an utter nutter :)
<havenwood> fveillette: Ruby is used in space, on supercomputers, etc - it is fine. Rails isn't going anywhere.
meather__ has quit [Remote host closed the connection]
<fveillette> lol ok :)
<fveillette> will share your answer with them lol
jjbohn has quit [Quit: Leaving...]
jonnyro has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
sputnik13 has quit [Client Quit]
jcs222 has joined #ruby
xerox357_ has joined #ruby
xerox357 has quit [Read error: Connection reset by peer]
grzywacz has joined #ruby
grzywacz has joined #ruby
grzywacz has quit [Changing host]
ndrei has joined #ruby
sputnik13 has joined #ruby
kpshek has joined #ruby
elaptics`away is now known as elaptics
momigi_ has quit [Remote host closed the connection]
<shevy> fveillette rails overshadowed ruby but ruby existed before rails
xerox357_ has quit [Client Quit]
momigi has joined #ruby
niftyn8 has quit [Ping timeout: 252 seconds]
xerox357 has joined #ruby
armyriad has quit [Read error: Operation timed out]
<shevy> fveillette so when rails will die, there will still be people who used ruby with or without rails
<havenwood> Rails was unfortunately named, at least the "Ruby on" part. Makes no sense. :P
<shevy> probably marketing tactic to use that name
<GaryOak_> and lots of people are now using gems just to push out command line apps
<shevy> hmm
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
<shevy> indeed, I do that a lot
axsuul has joined #ruby
meatherly has joined #ruby
axsuul has quit [Max SendQ exceeded]
larissa has joined #ruby
joelroa has joined #ruby
axsuul has joined #ruby
mrjensen has quit []
axsuul has quit [Max SendQ exceeded]
<slash_nick> which gems do you guys use for that?
axsuul has joined #ruby
shredding has quit [Quit: shredding]
pitzips has joined #ruby
axsuul has quit [Max SendQ exceeded]
<m__s> can someone help me with nokogiri? im trying to get pressure from page
<slash_nick> there's some stdlib stuff... thor..
shinobi_one has quit [Quit: shinobi_one]
axsuul has joined #ruby
<m__s> but it gives me all 'pressure' values, how to get pressure from 'first day' for example for only '2014-03-06'
axsuul has quit [Max SendQ exceeded]
tobago has quit [Remote host closed the connection]
momigi has quit [Ping timeout: 240 seconds]
gr33n7007h has quit [Ping timeout: 240 seconds]
agjacome has quit [Quit: leaving]
<DreamingRainne> One of the relatively big things I use it for is Ruby/GTK programs for my own use. Or scripts and bots for IRC. Even if Rails derails Ruby, all the Ruby stuff that already exists will still do so.
stytown has quit [Quit: stytown]
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
vlad_starkov has joined #ruby
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
incade_ has quit [Quit: leaving]
<Hanmac> m__s: you mean like this? pressure = url.css("div[class='weather'] span[class='pressure']").first.text #=> "Ciśnienie: 1026.5hPa"
mando has quit [Read error: Connection reset by peer]
ms_2911_ has joined #ruby
razrunelord has quit [Remote host closed the connection]
claymore has joined #ruby
benzrf has joined #ruby
joelroa has quit [Ping timeout: 264 seconds]
<benzrf> hey
sethen has quit [Ping timeout: 240 seconds]
crystal77 has quit [Quit: Computer has gone to sleep.]
<benzrf> is there a built-in two-way hash data structure?
lw has quit [Ping timeout: 268 seconds]
<tobiasvl> no
momigi has joined #ruby
<jhass> There's Hash#invert though
<DreamingRainne> benzrf: No, but you could always just add them in pairs. Or make your own class that does so.
<Hanmac> m__s: or do you want: pressure = url.css("div[class='weather'] span[class='pressure'] span[class='size']").first.text #=> "1026.5hPa"
cina has quit [Ping timeout: 240 seconds]
<benzrf> DreamingRainne: :[
<DreamingRainne> class MirrorHash;def []=(key,value);@data[key]=value;@data[value]=key;end stuff like that. Should be pretty easy.
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
trhodes_ has joined #ruby
axsuul has joined #ruby
<DreamingRainne> Maybe subclass Hash so it can be used like one, I dunno.
<benzrf> :|
m__s has quit [Ping timeout: 252 seconds]
<ms_2911_> Hanmac, first element is ok, but I want to get values for example Kasprowy Wierch and Łomnica. I can't use something like element[20] and element[30] because sometimes you have weather for 5 days, and sometimes for only 4 or 3, thats why I would like to get all pressure values for current day
<benzrf> shit like deletion thoraxe
<benzrf> *tho
<benzrf> :\
momigi has quit [Remote host closed the connection]
agarie has quit [Remote host closed the connection]
<DreamingRainne> def delete(key); @data.delete(@data.delete(key)); end
cina has joined #ruby
* DreamingRainne shrugs.
lw has joined #ruby
momigi has joined #ruby
axsuul has quit [Max SendQ exceeded]
stytown has joined #ruby
<ms_2911_> Hanmac, before I realized that weather sometimes is for 5 days and sometimes only for 4 days, i was using value like pressure[20] and pressure[30], but it's only working when I have weather for 5 days
<DreamingRainne> Not sure exactly what kind of structure you're after. In any case, it should be easy enough to write up a class like that. Maybe a bit tedious, but easy.
DaniG2k has joined #ruby
thisirs has joined #ruby
rbartos has joined #ruby
<Hanmac> ms_2911_: "Zakopane" are regions / places right?
<ms_2911_> yes
ms_2911_ is now known as m__s
dkamioka_ has joined #ruby
<m__s> and I want to get only two regions
andrewlio has joined #ruby
<m__s> Kasprowy Werch and Łomnica
Jetchisel has joined #ruby
<m__s> so at least how to get first values f rom those two regions -.-V
dkamioka has quit [Ping timeout: 241 seconds]
crystal77 has joined #ruby
momigi has quit [Read error: Connection reset by peer]
momigi has joined #ruby
petey has quit [Ping timeout: 265 seconds]
prc has joined #ruby
thumpba_ has joined #ruby
Krajsnick has joined #ruby
jph98 has joined #ruby
banek has quit [Remote host closed the connection]
Elhu has quit [Quit: Computer has gone to sleep.]
Elhu has joined #ruby
[gmi] has quit [Read error: Connection reset by peer]
Xeago has quit [Remote host closed the connection]
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
fgo has joined #ruby
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
axsuul has joined #ruby
agjacome has joined #ruby
axsuul has quit [Max SendQ exceeded]
ndrei has quit [Read error: Operation timed out]
sigurding has quit [Quit: sigurding]
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
Xuisce has joined #ruby
thumpba_ has quit [Ping timeout: 240 seconds]
evenix_ has joined #ruby
hiyosi has joined #ruby
armyriad has joined #ruby
tylershipe has quit [Remote host closed the connection]
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
tylershipe has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
Faris has joined #ruby
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
yekta has joined #ruby
Brando753 has quit [Ping timeout: 264 seconds]
<Hanmac> m__s: i used this: url.css("table[class='meteotable']").each_with_object({}) {|m,h| h[m.css(".meteostation").text] = m.css(".meteocell:first").css("td > span").each_with_object({}) {|e,h| h[e["class"]]=e.text } }
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
<Hanmac> m__s: it returns something like this: {"Zakopane"=>{"temperature"=>"2ºC/0ºC", "desc"=>"pochmurno", "wind"=>"Wiatr: 4km/h NNE", "pressure"=>"Ciśnienie: 1026.5hPa", "precipitation"=>"Opady: 0.1mm/12h", "sun"=>"Czas nasłoneczn.: 0h"}, ... }
ndrei has joined #ruby
jackneill has quit [Remote host closed the connection]
evenix has quit [Ping timeout: 244 seconds]
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
<m__s> :-O
<m__s> cheers, ill try that out in a min
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
mneorr has joined #ruby
<Hanmac> its not perfect for the sun values but for the first try it might be nice enough
<m__s> yeah, might be
<m__s> thank you anyway!
evenix_ has quit [Ping timeout: 265 seconds]
axsuul has joined #ruby
tylershipe has quit [Ping timeout: 244 seconds]
axsuul has quit [Max SendQ exceeded]
hiyosi has quit [Ping timeout: 240 seconds]
smathieu has joined #ruby
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
coderhs has joined #ruby
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
coderhs has quit [Read error: Connection reset by peer]
Brando753 has joined #ruby
axsuul has joined #ruby
shvelo has joined #ruby
jonnyro has quit [Quit: leaving]
yarou has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
pu22l3r_ has quit [Remote host closed the connection]
jayne_ is now known as jayne
pu22l3r has joined #ruby
paulfm has quit []
mark_locklear has quit [Ping timeout: 240 seconds]
ndrei has quit [Ping timeout: 264 seconds]
ndrei has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
awc737 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Krajsnick has quit [Remote host closed the connection]
einarj has joined #ruby
Elhu has joined #ruby
[gmi] has joined #ruby
pu22l3r has quit [Ping timeout: 265 seconds]
rylinaux has joined #ruby
DaniG2k has quit [Ping timeout: 244 seconds]
YamakasY has joined #ruby
kirun has quit [Quit: Client exiting]
[gmi] has quit [Read error: Connection reset by peer]
smathieu has quit [Remote host closed the connection]
popl has quit [Quit: Touch the frog.]
smathieu has joined #ruby
chrisseaton has joined #ruby
mordocai has joined #ruby
boomstack has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
DaniG2k has joined #ruby
centrx has joined #ruby
Axsuul_ has joined #ruby
smathieu_ has joined #ruby
Axsuul_ has quit [Max SendQ exceeded]
IceyEC has quit [Quit: IceyEC]
claymore has quit [Quit: Leaving]
zachallett has quit [Remote host closed the connection]
shvelo has quit [Remote host closed the connection]
momigi has quit [Read error: Connection reset by peer]
vim_shim has quit [Remote host closed the connection]
stringoO has quit [Quit: stringoO]
gilcosson has quit []
rootshift has joined #ruby
[gmi] has joined #ruby
momigi has joined #ruby
jjbohn has joined #ruby
smathieu has quit [Ping timeout: 240 seconds]
existensil has joined #ruby
jim0thy_ has quit [Read error: Connection reset by peer]
danshultz has quit [Remote host closed the connection]
axsuul has quit [Ping timeout: 240 seconds]
m4n1f3st_ has quit []
smathieu_ has quit [Remote host closed the connection]
smathieu has joined #ruby
shredding has joined #ruby
jjbohn has quit [Client Quit]
blackmesa has quit [Ping timeout: 252 seconds]
kayloos has joined #ruby
jjbohn has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
RaCx has joined #ruby
smathieu has quit [Ping timeout: 252 seconds]
shredding has quit [Quit: shredding]
nanoyak has joined #ruby
duggiefresh has quit [Remote host closed the connection]
klaut_ has quit [Remote host closed the connection]
lukec has joined #ruby
rudisimo has quit []
letskij has joined #ruby
meatherly has quit [Remote host closed the connection]
axsuul has joined #ruby
YamakasY has quit [Remote host closed the connection]
meatherly has joined #ruby
havenwood has quit [Remote host closed the connection]
YamakasY has joined #ruby
yekta has quit [Quit: yekta]
Elhu has quit [Quit: Computer has gone to sleep.]
monkegjinni has joined #ruby
sparrovv has joined #ruby
zerun0 has quit [Ping timeout: 240 seconds]
Hanmac1 has joined #ruby
kpshek has quit []
duggiefresh has joined #ruby
Megtastique has quit []
tcstar has joined #ruby
blandflakes has quit [Quit: Page closed]
Megtastique has joined #ruby
failshel_ has joined #ruby
doubleemms has quit [Quit: doubleemms]
zerun0 has joined #ruby
letskij has quit [Ping timeout: 252 seconds]
dzhulk has quit [Quit: Leaving.]
Hanmac has quit [Ping timeout: 264 seconds]
meatherly has quit [Ping timeout: 243 seconds]
alexju has quit [Remote host closed the connection]
p8952 has quit [Ping timeout: 240 seconds]
nisstyre has joined #ruby
tvw has joined #ruby
hermanmunster has joined #ruby
tcstar has quit [Client Quit]
YamakasY_ has joined #ruby
shinobi_one has joined #ruby
failshell has quit [Ping timeout: 244 seconds]
YamakasY has quit [Ping timeout: 252 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
joelroa has joined #ruby
bilbo_swaggins has joined #ruby
failshel_ has quit [Ping timeout: 240 seconds]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Hanmac has joined #ruby
armyriad has quit [Ping timeout: 240 seconds]
grs has quit [Ping timeout: 240 seconds]
<bilbo_swaggins> what recommendation would you guys have for a decent, self-taught programmer to get mentoring once he encounters legitimately hard problems involving differential equations or genetic algorithms or other esoteric knowledge?
Elhu has joined #ruby
<bilbo_swaggins> books have done me fine, but I'm looking for advice on tutoring resources for adults no longer in college
axsuul has quit [Ping timeout: 244 seconds]
Hanmac1 has quit [Ping timeout: 265 seconds]
<DreamingRainne> bilbo_swaggins: My guess would be right here :P at least for the programming side, and channels about the fields in question. Putting the two together is up to you.
sailias has quit [Ping timeout: 265 seconds]
<centrx> bilbo_swaggins, One idea is go to the office hours at your local university and don't give them any reason to believe you are not a student :)
<centrx> bilbo_swaggins, Also, since we are on IRC, visit #math
joelroa has quit [Ping timeout: 244 seconds]
armyriad has joined #ruby
jcs222 has quit [Quit: leaving]
fgo has joined #ruby
sjkaliski has quit [Quit: Leaving...]
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
Mon_Ouie has joined #ruby
axsuul has joined #ruby
niftyn8 has joined #ruby
petey has joined #ruby
<shevy> is bilbo from the hobbits
axsuul has quit [Max SendQ exceeded]
oso|away is now known as oso96_2000
grs has joined #ruby
griffindy has quit [Quit: Computer has gone to sleep.]
<shevy> bilbo_swaggins I hate math, the only thing that really helped me was to solve problems with paper and pencil
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
snuffeluffegus has quit [Quit: Leaving]
sputnik13 has joined #ruby
kevind_ has joined #ruby
chrisseaton has quit []
stytown has quit [Quit: stytown]
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
kevind has quit [Ping timeout: 264 seconds]
kevind_ is now known as kevind
armyriad has quit [Ping timeout: 244 seconds]
relix has joined #ruby
asteros has joined #ruby
rootshift has joined #ruby
armyriad has joined #ruby
axsuul has joined #ruby
asteros has quit [Client Quit]
axsuul has quit [Max SendQ exceeded]
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kaldreno_ has quit [Remote host closed the connection]
23LAAKQI0 has joined #ruby
23LAAKQI0 has quit [Max SendQ exceeded]
phantomtiger has quit [Quit: phantomtiger]
axsuul has joined #ruby
p8952 has joined #ruby
axsuul has quit [Max SendQ exceeded]
kaldrenon has joined #ruby
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
<centrx> Darn, another doofus who asks a question and then disappears.
ktosiek has quit [Ping timeout: 264 seconds]
jxf has quit [Ping timeout: 265 seconds]
pushpak has quit [Quit: Linkinus - http://linkinus.com]
<boomstack> who?
nisstyre has quit [Quit: WeeChat 0.4.3]
<centrx> bilbo_swaggins,
<centrx> He's still in the channel, but he is missing in action.
nisstyre has joined #ruby
DaniG2k has quit [Ping timeout: 265 seconds]
kaldrenon has quit [Ping timeout: 240 seconds]
stytown has joined #ruby
cina has quit [Quit: leaving]
nateberkopec has joined #ruby
m__s has quit [Ping timeout: 265 seconds]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
axsuul has joined #ruby
<bilbo_swaggins> Im still here
<bilbo_swaggins> was talking to my coworker
xerox357_ has joined #ruby
sputnik13 has joined #ruby
<bilbo_swaggins> thanks for the advice so far
felixflores has quit [Remote host closed the connection]
<bilbo_swaggins> I actually only took one formal programming class
DaniG2k has joined #ruby
<bilbo_swaggins> I went in to a professor's office during his hours for help with a sudoku solver
yfeldblu_ has joined #ruby
<bilbo_swaggins> he told me I should challenge into his data structures class
felixflores has joined #ruby
<bilbo_swaggins> that trick worked once for me, but of course you gotta be persistent and find the right professor
hobodave has quit [Ping timeout: 240 seconds]
<bilbo_swaggins> centrx
elaptics is now known as elaptics`away
fgo has quit [Remote host closed the connection]
xerox357 has quit [Ping timeout: 240 seconds]
xerox357_ has quit [Remote host closed the connection]
<centrx> bilbo_swaggins, There might also be a math club in your area
xerox357 has joined #ruby
hiyosi has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
zono has joined #ruby
fgo has joined #ruby
gfunc has quit [Remote host closed the connection]
mansi has quit [Remote host closed the connection]
<bilbo_swaggins> anything helps. I have great ambitions but want to avoid going back to college if possible
axsuul has quit [Max SendQ exceeded]
gfunc has joined #ruby
roolo has joined #ruby
<bilbo_swaggins> I do like just talking to professors in their office hours if they're willing
gfunc has quit [Remote host closed the connection]
rootshift has joined #ruby
mansi has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
axsuul has joined #ruby
<boomstack> I can recommend you a book
<bilbo_swaggins> how'd you get into Ruby?
<bilbo_swaggins> sure
andrewlio has quit [Quit: Leaving.]
<bilbo_swaggins> books are my favorite way to learn
xerox357 has quit [Read error: Connection reset by peer]
<bilbo_swaggins> I just can't ask a book questions :)
xerox357 has joined #ruby
<boomstack> Mathematics for algorithm and systems analysis
<bilbo_swaggins> thank you
<boomstack> it was a book recommended by a friend to get into programming, he told me it was "all the math you need"
<boomstack> to get started*
<boomstack> i got into it by knowing a ruby dev
jph98 has quit [Quit: jph98]
<bilbo_swaggins> oh I read
Elhu has quit [Quit: Computer has gone to sleep.]
axsuul has quit [Max SendQ exceeded]
felixflores has quit [Ping timeout: 264 seconds]
<bilbo_swaggins> Discrete Mathematics For New Technology
<bilbo_swaggins> it's really well written
achru has joined #ruby
timonv has joined #ruby
momigi_ has joined #ruby
xerox357 has quit [Remote host closed the connection]
rbartos has quit [Remote host closed the connection]
<bilbo_swaggins> I just don't want to be restricted to Rails, ya know?
xerox357 has joined #ruby
sotoj has quit [Ping timeout: 265 seconds]
<bilbo_swaggins> I've been commissioned on the side of my day job for a Rails project, but it's terribly boring
yubrew has quit [Remote host closed the connection]
hiyosi has quit [Ping timeout: 244 seconds]
<boomstack> strange
rbartos has joined #ruby
mneorr has quit []
noobgains has joined #ruby
supermarin has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
ZoanthusR has quit [Quit: Linkinus - http://linkinus.com]
<csmrfx> haha
<csmrfx> well, in the end, web services are boring
momigi has quit [Ping timeout: 264 seconds]
axsuul has joined #ruby
Umschwung has quit []
achru has quit [Remote host closed the connection]
deadlock_ has quit [Ping timeout: 252 seconds]
timonv has quit [Ping timeout: 244 seconds]
axsuul has quit [Max SendQ exceeded]
xerox357 has quit [Ping timeout: 240 seconds]
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
nanoyak has joined #ruby
agarie has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
tjr9898_ has quit [Remote host closed the connection]
moneydouble has joined #ruby
senayar has quit [Remote host closed the connection]
<bilbo_swaggins> well specifically, one thing I'm looking for advice on is creating a custom minecraft server
armyriad has quit [Ping timeout: 265 seconds]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
armyriad has joined #ruby
<bilbo_swaggins> I want to strip down to barebones and just periodically deliver a snapshot of *just* the blocks in the world
aspires has quit []
<bilbo_swaggins> I want to open up an API to friends so they can write bots to play the game
evenix has joined #ruby
aspires has joined #ruby
felixflores has joined #ruby
<bilbo_swaggins> and then periodically resynch the map into the game, to view what's going on
<bilbo_swaggins> but it's important to do away with the bloat of everything else in the game
<bilbo_swaggins> and it doesn't need to be real-time
axsuul has joined #ruby
<bilbo_swaggins> I found a python project for generating dungeons in existing maps that I hope to reverse engineer for ideas
axsuul has quit [Max SendQ exceeded]
agjacome has quit [Ping timeout: 244 seconds]
<bilbo_swaggins> and I have books on game playing AI and procedural generation
jxf has joined #ruby
<bilbo_swaggins> this is a massive project which I admit will probably bring me to my knees
rootshift has joined #ruby
jerius has quit []
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bilbo_swaggins> basically I'm only keeping the format Minecraft uses for storing maps and using the game client to view it
axsuul has joined #ruby
<bilbo_swaggins> unless someone knows of a voxel engine with easy Ruby bindings
<bilbo_swaggins> I like easy
axsuul has quit [Max SendQ exceeded]
<centrx> haha voxels
petey has quit [Remote host closed the connection]
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
petey has joined #ruby
sputnik13 has joined #ruby
sputnik13 has quit [Client Quit]
YamakasY has joined #ruby
<soahccc> bilbo_swaggins: The only thing I can give you is the name "Purugin", don't know if this can help you
RaCx_ has joined #ruby
mikepack_ has quit [Remote host closed the connection]
RaCx has quit [Ping timeout: 240 seconds]
RaCx_ is now known as RaCx
<arubincloud> soahccc: I too, can use Google.
<arubincloud> And found the same answer.
<bilbo_swaggins> i've done googling and found nothing really satisfactory yet
slowcon has quit []
<bilbo_swaggins> perhaps python has something
nanoyak has quit [Read error: Connection reset by peer]
<soahccc> arubincloud: I viewed the talk at some conference therefore remembered it :)
<benzrf> bilbo_swaggins: purugin is cool
<arubincloud> bilbo_swaggins: Did you look at Purugin as soahccc suggests?
<benzrf> bukkit bindings for ruby
nanoyak has joined #ruby
<benzrf> *jruby
<bilbo_swaggins> I *assumed* it was terrible
<bilbo_swaggins> please forgive
<benzrf> i wrote a plugin w/ it once it was p OK
<benzrf> the docs suck thoraxe
<benzrf> *tho
<benzrf> jruby is p cool btw
<benzrf> it does automatic name conversion!
<bilbo_swaggins> what do you mean?
<bilbo_swaggins> I'll try that out
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
DaniG2k has quit [Ping timeout: 240 seconds]
<benzrf> bilbo_swaggins: in jruby if you have a java object
* soahccc wonders why the boostrap example pages have awesome callout classes and they are not builtin :(
YamakasY_ has quit [Ping timeout: 244 seconds]
yfeldblum has joined #ruby
<benzrf> bilbo_swaggins: it autogens extra names for all the methods & fields
petey has quit [Ping timeout: 240 seconds]
<bilbo_swaggins> that's nice of it
Speed has joined #ruby
DaniG2k has joined #ruby
<benzrf> it turns camelcase into snakecase
<benzrf> switches is_foo to foo?
<benzrf> setFoo -> foo=
stytown has quit [Quit: stytown]
<bilbo_swaggins> that's really well thought out
<benzrf> ik :D
<benzrf> getFoo -> foo
<benzrf> it leaves in the original methods also though
<benzrf> so it doesnt break stuff
<benzrf> jruby ftw
itadder has joined #ruby
<benzrf> have u used bukkit before?
<bilbo_swaggins> no
<benzrf> do u know what it is?
Asher has quit [Quit: Leaving.]
<bilbo_swaggins> my friend used to write server code for them, but quit before they got snatched up
felixflores has quit [Remote host closed the connection]
<bilbo_swaggins> he got hired at microsoft though, so good on him
yfeldblu_ has quit [Ping timeout: 240 seconds]
<bilbo_swaggins> I mean yes I've used it as a user
<benzrf> o:
felixflores has joined #ruby
<bilbo_swaggins> not a programmer
<benzrf> cool
axsuul has joined #ruby
<benzrf> the api is p good for java
axsuul has quit [Max SendQ exceeded]
<benzrf> certainly much more pleasant Thanatermesis
<benzrf> *than
* benzrf shudders
<benzrf> client modding
bry4n_ has quit [Ping timeout: 264 seconds]
monkegjinni has quit [Remote host closed the connection]
AlexRussia has quit [Ping timeout: 240 seconds]
<bilbo_swaggins> hmm
YamakasY has quit [Remote host closed the connection]
* Thanatermesis yawns
<bilbo_swaggins> that might be the best way to go, given my specific desires
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
willb1 has quit [Read error: Operation timed out]
alexherbo2 has joined #ruby
felixflores has quit [Read error: Operation timed out]
Megtastique has quit []
<chridal> I have a Sinatra+ActiveRecord setup, and the validations on my one model is running fine, but not on my other one
<chridal> The way I have it now, the model A is triggering model B to create a new record
CorySimmons has quit [Quit: Zzz...]
<chridal> validations on model A run fine, but not on B
snath has quit [Ping timeout: 264 seconds]
dblessing has quit [Quit: dblessing]
DrShoggoth has quit [Quit: Leaving]
yasushi has joined #ruby
jjbohn has quit [Quit: Leaving...]
rococo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
geggam has quit [Remote host closed the connection]
wookiehangover has joined #ruby
aspires has quit []
DaniG2k has quit [Quit: Lost terminal]
mary5030 has quit [Remote host closed the connection]
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
inversesquarelaw has quit [Read error: Connection reset by peer]
_maes_ has quit [Read error: Connection reset by peer]
linguini has joined #ruby
CorySimmons has joined #ruby
inversesquarelaw has joined #ruby
yasushi has quit [Ping timeout: 252 seconds]
sailias has joined #ruby
axsuul has joined #ruby
niftyn8 has quit [Ping timeout: 265 seconds]
RaCx has quit [Quit: Computer has gone to sleep.]
lilltiger has quit [Read error: Operation timed out]
linojon has quit [Quit: linojon]
axsuul has quit [Max SendQ exceeded]
lilltiger has joined #ruby
lkba has quit [Ping timeout: 265 seconds]
rahult has joined #ruby
joelroa has joined #ruby
cescalante is now known as ce_afk
jhass is now known as jhass|off
yubrew has joined #ruby
snuffeluffegus has joined #ruby
evenix has quit [Remote host closed the connection]
dkamioka_ has quit [Remote host closed the connection]
axsuul has joined #ruby
evenix has joined #ruby
axsuul has quit [Max SendQ exceeded]
jobewan has quit [Quit: Leaving]
ndrei has quit [Ping timeout: 240 seconds]
willb1 has joined #ruby
senayar has joined #ruby
duggiefresh has quit [Remote host closed the connection]
joelroa has quit [Ping timeout: 264 seconds]
ndrei has joined #ruby
yubrew has quit [Ping timeout: 244 seconds]
einarj has quit [Remote host closed the connection]
evenix has quit [Ping timeout: 240 seconds]
Notte has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
hermanmunster has quit [Remote host closed the connection]
axsuul has joined #ruby
mlpinit_ has quit [Quit: Leaving...]
hermanmunster has joined #ruby
axsuul has quit [Max SendQ exceeded]
jrhorn424 is now known as zz_jrhorn424
jjbohn has joined #ruby
mansi has joined #ruby
rayners has quit [Remote host closed the connection]
Aryasam has joined #ruby
willb1 has quit [Ping timeout: 265 seconds]
WormDrink has joined #ruby
mikepack has joined #ruby
senayar has quit [Ping timeout: 252 seconds]
bilbo_swaggins has quit [Quit: Leaving]
hermanmu_ has joined #ruby
Symbiosisz2 has joined #ruby
platzhirsch has quit [Ping timeout: 240 seconds]
hermanmu_ has quit [Read error: Connection reset by peer]
hermanmu_ has joined #ruby
hermanmunster has quit [Ping timeout: 265 seconds]
ciziar has joined #ruby
jjbohn has quit [Client Quit]
mansi has quit [Ping timeout: 240 seconds]
hiyosi has joined #ruby
Notte has quit []
Jdubs has joined #ruby
SCommette has quit [Quit: SCommette]
mikepack has quit [Ping timeout: 244 seconds]
tvw has quit []
noobgains has quit [Quit: Leaving]
zorak_ has joined #ruby
Faris has quit [Ping timeout: 240 seconds]
prc has quit [Ping timeout: 240 seconds]
<zorak_> Hi, im learning ruby and dont get well this part of the documentation
<zorak_> when we use "-number" to locate a character in a string
Aryasam has quit [Read error: Connection reset by peer]
<centrx> zorak_, Look up "Regular Expressions" online and http://www.ruby-doc.org/core-2.1.1/Regexp.html
Aryasam has joined #ruby
nateberkopec has quit [Quit: Leaving...]
whowantstolivef1 has quit [Ping timeout: 240 seconds]
zono has quit [Quit: zono]
<zorak_> like string[0] just return the first character
<centrx> Yes
<zorak_> but when use "-n" i dont get it
willb1 has joined #ruby
Gaddel has joined #ruby
niftyn8 has joined #ruby
<zorak_> -n start counting for the last one and move one to the left?
<centrx> zorak_, It counts from the end of the string
<Gaddel> is there a more elegant way of writing "n = n.to_i; n = 3 if n == 0" ?
<centrx> Yes
Symbiosisz2 has quit [Remote host closed the connection]
<zorak_> so, -1 is always the last chacter of the string
frem has quit [Quit: Connection closed for inactivity]
<centrx> Gaddel, n = 3 if n.to_i.zero?
kayloos has quit [Remote host closed the connection]
<Gaddel> centrx: i need to convert it to .to_i in either case, though
<centrx> Gaddel, Okay, just do n = n.to_i that is the way to do it given the code you have shown
<centrx> Gaddel, n.zero? is the preferred way to check for zero
<Gaddel> ok. i'll swap n == 0 with .zero? then
<zorak_> and what happen in this case string[-4..-2]
lkba has joined #ruby
Hanmac1 has joined #ruby
Asher has joined #ruby
<centrx> zorak_, It slices a range out of the array. ".." specifies a Range object. (See also Array#slice)
aryaching has joined #ruby
<zorak_> but what do, go to the last 4 and the to the las 2
Aryasam_ has joined #ruby
ritek has quit [Quit: Connection closed for inactivity]
Aryasam_ has quit [Client Quit]
Xaitec has joined #ruby
<centrx> zorak_, It is analogous to [2..4] except from the end
Hanmac has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
xerox357 has joined #ruby
<Gaddel> centrx: as an alternative, i could make it one line with "n = 3 if (n = n.to_i).zero?". is that getting too terse for my own good?
Aryasam has quit [Ping timeout: 240 seconds]
xerox357 has quit [Remote host closed the connection]
kenneth has joined #ruby
evenix has joined #ruby
xerox357 has joined #ruby
mojjojo has joined #ruby
<centrx> Gaddel, Easier to read code is better for you and everyone else
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
<slash_nick> oo, this is fun... !(n = n.to_i).zero? or n = 3
crystal77 has quit [Quit: Computer has gone to sleep.]
willb1 has quit [Ping timeout: 265 seconds]
tyfighter has quit [Quit: tyfighter]
Xaitec has left #ruby [#ruby]
Atww has quit [Ping timeout: 240 seconds]
<Gaddel> both 27 chars
sailias has quit [Ping timeout: 240 seconds]
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<slash_nick> (n = n.to_i).zero? && n = 3
<slash_nick> 26...
<Gaddel> wonder if you could throw a &&= in there
<slash_nick> I thought of n+=3 just for fun
<Gaddel> slash_nick: i was considering that, but if n is 2 i want it to stay 2
<slash_nick> (n = n.to_i).zero? && n += 3
<slash_nick> it would... 2.zero? :)
<Gaddel> ahh
<Gaddel> yeah but pointless in that case i suppose
xerox357 has quit [Ping timeout: 244 seconds]
smathieu has joined #ruby
Xuisce has quit [Remote host closed the connection]
aspires has joined #ruby
Liothen has quit [Quit: The Dogmatic Law of Shadowsong]
mehlah has joined #ruby
foredoomed has joined #ruby
<fraterlaetus> is there an elegant way to zip two arrays into a hash?
<Gaddel> fraterlaetus: i know how to elegantly in python...
<benzrf> fraterlaetus: Hash.[]
<fraterlaetus> So, I have an array if columns:
<benzrf> w/ zip
<fraterlaetus> => ["sda 8:0 0 8G 0 disk ", "├─sda1 8:1 0 243M 0 part /boot", "├─sda2 8:2 0 1K 0 part ", "└─sda5 8:5 0 7.8G 0 part ", " └─sda5_crypt (dm-0) 252:0 0 7.8G 0 crypt ", " ├─Ubuntu--vg-root (dm-1) 252:1 0 5.7G 0 lvm /", " └─Ubuntu--vg-swap_1 (dm-2)
<fraterlaetus> 252:2 0 2G 0 lvm ", " └─cryptswap1 (dm-3) 252:3 0 2G 0 crypt [SWAP]", "sdb 8:16 0 8G 0 disk ", "sdc 8:32 0 8G 0 disk ", "sr0 11:0 1 1024M 0 rom "]
<RubyPanther> Gaddel: IMO it is usually bad to try to squeeze out the assignments. They'll still happen, so you're not actually reducing anything.
<fraterlaetus> and an array of rows:
<Jdubs> wow lol
<benzrf> fraterlaetus: Hash.p[
<benzrf> * []
<fraterlaetus> => ["NAME", "MAJ:MIN", "RM", "SIZE", "RO", "TYPE", "MOUNTPOINT"]
<Gaddel> RubyPanther: if i do the one liner i think i get to cut out one "n"
<zorak_> any way to make the irb DONT show the comments?
<Jdubs> fraterlaetus WALL OF TEXT ****DECIMATES*** You for 202394209384092834 damage
* fraterlaetus apologizes profusely
rbartos has quit [Remote host closed the connection]
alexherbo2 has joined #ruby
<Jdubs> lol
<fraterlaetus> nopasta
Salve_ has quit [Remote host closed the connection]
<fraterlaetus> gotit
Salve has joined #ruby
<fraterlaetus> so.. commands?
<fraterlaetus> table = `lsblk | grep -v NAME`.split("\n").map {|row| row.split }
<fraterlaetus> rows = `lsblk | grep NAME`.split(" ")
freerobby has quit [Quit: Leaving.]
rbartos has joined #ruby
<fraterlaetus> I want each of the columns to map to rows
<fraterlaetus> ideas?
<fraterlaetus> I tried zip
<RubyPanther> Gaddel: the same number of references get juggled either way, with the same number of operations. That's assuming you consider the parens to be free
philcrissman has quit [Remote host closed the connection]
foredoomed has quit [Ping timeout: 240 seconds]
lmickh has quit [Remote host closed the connection]
<RubyPanther> Jdubs: If that is decimation, then he still has 1821547884456835506 HP. I recommend a more powerful weapon.
vlad_starkov has joined #ruby
* fraterlaetus shows off his leaky artery.
yfeldblum has quit [Remote host closed the connection]
<fraterlaetus> lesson learned.
<Gaddel> fraterlaetus: you should be able to do `Hash.[] array1.zip(array2)`
<Gaddel> see if that gives the structure you want
yasushi has joined #ruby
geopet has quit []