ljarvis changed the topic of #ruby-lang to: RIP Jim Weirich || Ruby 2.1.0; 2.0.0-p353; 1.9.3-p484: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com
eugmill has quit [Remote host closed the connection]
mistym has joined #ruby-lang
devgiant has quit [Ping timeout: 248 seconds]
arooni-mobile__ has joined #ruby-lang
solars has quit [Ping timeout: 272 seconds]
lcdhoffman has quit [Quit: lcdhoffman]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eugmill has joined #ruby-lang
lcdhoffman has joined #ruby-lang
shinnya has quit [Ping timeout: 260 seconds]
eugmill has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
bantic_ has joined #ruby-lang
bantic has quit [Ping timeout: 245 seconds]
bantic_ is now known as bantic
devgiant has joined #ruby-lang
rwk1 has joined #ruby-lang
vlad_starkov has joined #ruby-lang
shinnya has joined #ruby-lang
chouhoul_ has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
devgiant has quit [Read error: Connection reset by peer]
diegoviola has joined #ruby-lang
joelroa has joined #ruby-lang
fijimunkii has quit [Ping timeout: 248 seconds]
tkuchiki has quit [Remote host closed the connection]
earthquake has joined #ruby-lang
Sirupsen has joined #ruby-lang
Sirupsen has quit [Client Quit]
lcdhoffman has quit [Quit: lcdhoffman]
dmwuw has quit []
dmwuw has joined #ruby-lang
jonahR has quit [Quit: jonahR]
joelroa has quit [Ping timeout: 272 seconds]
lcdhoffman has joined #ruby-lang
jonahR has joined #ruby-lang
jonahR has quit [Client Quit]
rins has quit [Remote host closed the connection]
elia has quit [Quit: Computer has gone to sleep.]
kitak has quit [Remote host closed the connection]
postmodern has joined #ruby-lang
fijimunkii has joined #ruby-lang
kitak has joined #ruby-lang
tcopp has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
dingus_khan has joined #ruby-lang
kitak has quit [Remote host closed the connection]
kitak has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
prc has quit [Ping timeout: 265 seconds]
RobertBirnie has joined #ruby-lang
kitak has quit [Remote host closed the connection]
__butch__ has quit [Quit: Leaving.]
kitak has joined #ruby-lang
dingus_khan has quit [Ping timeout: 252 seconds]
cored has quit [Ping timeout: 272 seconds]
kitak has quit [Ping timeout: 245 seconds]
tkuchiki has joined #ruby-lang
elliotec has quit [Remote host closed the connection]
bzalasky_ has joined #ruby-lang
Onixs_ has joined #ruby-lang
eugmill has joined #ruby-lang
eugmill has quit [Remote host closed the connection]
Pupeno_ has joined #ruby-lang
jsilver_ has joined #ruby-lang
Pell has joined #ruby-lang
arooni-mobile__ has quit [Read error: Connection reset by peer]
mikekellyio has joined #ruby-lang
vadviktor has joined #ruby-lang
Atww has joined #ruby-lang
eval-in_ has joined #ruby-lang
csaunders_ has joined #ruby-lang
digs has joined #ruby-lang
kylo_ has joined #ruby-lang
digs is now known as Guest72097
drocsid_ has joined #ruby-lang
goatish_mound has joined #ruby-lang
Meths_ has joined #ruby-lang
dumfries_ has joined #ruby-lang
bzalasky_ has quit [Ping timeout: 260 seconds]
dorei has quit []
amerine_ has joined #ruby-lang
bantic has quit [Quit: bantic]
ihme-TTilus has joined #ruby-lang
neurodam1ge has joined #ruby-lang
RobertBi_ has joined #ruby-lang
jsaak has joined #ruby-lang
kro__ has joined #ruby-lang
jperry_ has joined #ruby-lang
skinny_much_ has joined #ruby-lang
tommylom1ykins has joined #ruby-lang
lianj_ has joined #ruby-lang
lianj_ has quit [Changing host]
lianj_ has joined #ruby-lang
Pell has quit [Ping timeout: 252 seconds]
jackyalc- has joined #ruby-lang
eugmill has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 260 seconds]
mihar has joined #ruby-lang
apeiros has joined #ruby-lang
jhass is now known as jhass|off
rwk1 has quit [*.net *.split]
RobertBirnie has quit [*.net *.split]
bzalasky has quit [*.net *.split]
Atw has quit [*.net *.split]
csaunders has quit [*.net *.split]
kro_ has quit [*.net *.split]
TTilus has quit [*.net *.split]
lianj has quit [*.net *.split]
mikekellyio_ has quit [*.net *.split]
jsullivandigs has quit [*.net *.split]
kylo has quit [*.net *.split]
marr has quit [*.net *.split]
jsaak_ has quit [*.net *.split]
vadviktor_ has quit [*.net *.split]
rsl has quit [*.net *.split]
jackyalcine has quit [*.net *.split]
Meths has quit [*.net *.split]
Pupeno has quit [*.net *.split]
Onixs has quit [*.net *.split]
amerine has quit [*.net *.split]
knu has quit [*.net *.split]
eval-in has quit [*.net *.split]
jsilver has quit [*.net *.split]
drocsid has quit [*.net *.split]
tommylommykins has quit [*.net *.split]
skinny_much has quit [*.net *.split]
priodev has quit [*.net *.split]
dumfries has quit [*.net *.split]
neurodamage has quit [*.net *.split]
mihar_ has quit [*.net *.split]
DefV has quit [*.net *.split]
dumfries_ is now known as dumfries
kylo_ is now known as kylo
csaunders_ is now known as csaunders
amerine_ is now known as amerine
mikekellyio is now known as mikekellyio_
ecnalyr has quit [Quit: Macbook has gone to sleep. . .]
DefV has joined #ruby-lang
rwk1 has joined #ruby-lang
knu has joined #ruby-lang
|jemc|_ has quit [Ping timeout: 271 seconds]
ecnalyr has joined #ruby-lang
Olipro has quit [Ping timeout: 246 seconds]
tylersmi_ has quit [Remote host closed the connection]
lianj_ is now known as lianj
DefV has quit [*.net *.split]
knu has quit [*.net *.split]
rwk1 has quit [*.net *.split]
kitak has joined #ruby-lang
DefV has joined #ruby-lang
rwk1 has joined #ruby-lang
knu has joined #ruby-lang
lcdhoffman has joined #ruby-lang
lcdhoffman has quit [Client Quit]
Olipro has joined #ruby-lang
ecnalyr has quit [Client Quit]
kalehv has joined #ruby-lang
frankson has joined #ruby-lang
Lewix has joined #ruby-lang
Willox has quit [Ping timeout: 272 seconds]
Lewix has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
eugmill has quit [Remote host closed the connection]
vlad_starkov has quit [Read error: Connection reset by peer]
eugmill has joined #ruby-lang
eugmill has quit [Remote host closed the connection]
joelroa has joined #ruby-lang
joelroa has quit [Max SendQ exceeded]
bzalasky has joined #ruby-lang
joelroa has joined #ruby-lang
joelroa has quit [Max SendQ exceeded]
joelroa has joined #ruby-lang
joelroa has quit [Max SendQ exceeded]
nathanstitt has joined #ruby-lang
johnmilton has quit [Read error: Connection reset by peer]
kalehv has quit [Remote host closed the connection]
|jemc| has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
joonty_ has joined #ruby-lang
danijoo has joined #ruby-lang
joonty has quit [Ping timeout: 260 seconds]
mistym has quit [Remote host closed the connection]
btiefert has quit [Read error: Connection reset by peer]
mehlah has quit [Quit: Leaving...]
mikecmpb_ has quit [Quit: i've nodded off.]
tonni has quit [Read error: Connection reset by peer]
matp has joined #ruby-lang
tonni has joined #ruby-lang
lsumner has quit [Remote host closed the connection]
mistym has joined #ruby-lang
fezziwig has joined #ruby-lang
CaptainJet has quit []
mistym has quit [Remote host closed the connection]
milhite has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lewix has joined #ruby-lang
earthquake has quit [Quit: earthquake]
Antiarc1 has joined #ruby-lang
Johz has quit [Quit: Leaving]
mistym has joined #ruby-lang
Cakey has joined #ruby-lang
fijimunkii has quit [Read error: Connection reset by peer]
nathanstitt has quit [Quit: I growing sleepy]
fijimunkii has joined #ruby-lang
pico-pete has joined #ruby-lang
amclain has joined #ruby-lang
RoxasShadowRS has quit [Read error: Connection reset by peer]
mistym has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
mistym has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
vlad_starkov has quit [Read error: Connection reset by peer]
bzalasky has joined #ruby-lang
Cakey_ has joined #ruby-lang
Cakey_ has quit [Client Quit]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
Cakey_ has joined #ruby-lang
Cakey_ has quit [Client Quit]
joelroa has joined #ruby-lang
bzalasky has quit [Ping timeout: 252 seconds]
Melpaws_ has quit [Remote host closed the connection]
Melpaws has joined #ruby-lang
bzalasky has joined #ruby-lang
arooni-mobile has joined #ruby-lang
robbyoconnor has joined #ruby-lang
noober3 has joined #ruby-lang
nathanstitt has joined #ruby-lang
mistym has quit [Remote host closed the connection]
joelroa has quit [Ping timeout: 260 seconds]
Melpaws_ has joined #ruby-lang
Melpaws has quit [Read error: Connection reset by peer]
noober3 has quit [Client Quit]
noober3 has joined #ruby-lang
BubonicPestilenc has joined #ruby-lang
TheMoonMaster has quit [Excess Flood]
Olipro has quit [Ping timeout: 246 seconds]
kitak has quit [Remote host closed the connection]
kitak has joined #ruby-lang
TheMoonMaster has joined #ruby-lang
TheMoonMaster has quit [Excess Flood]
earthquake has joined #ruby-lang
TheMoonMaster has joined #ruby-lang
nXqd has joined #ruby-lang
sandbags has joined #ruby-lang
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
nathanstitt has quit [Quit: I growing sleepy]
Barrin6 has joined #ruby-lang
TheMoonMaster has quit [Excess Flood]
nathanstitt has joined #ruby-lang
TheMoonMaster has joined #ruby-lang
jonahR has joined #ruby-lang
nathanstitt has quit [Read error: Connection reset by peer]
nathanstitt has joined #ruby-lang
RobertBi_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mistym has joined #ruby-lang
nathanstitt has quit [Read error: Connection reset by peer]
nathanstitt has joined #ruby-lang
milhite has joined #ruby-lang
eugmill has joined #ruby-lang
omegahm has quit [Ping timeout: 245 seconds]
TheMoonMaster has quit [Excess Flood]
nathanstitt has quit [Ping timeout: 265 seconds]
BubonicPestilenc has quit [Ping timeout: 265 seconds]
dingus_khan has joined #ruby-lang
fijimunkii has quit [Read error: Connection reset by peer]
TheMoonMaster has joined #ruby-lang
elliotec has joined #ruby-lang
<noober3> i am a total noob to ruby, was wondering is the unless keyword used frequently? it just seems weird
<ohsix> it's just some sugar to invert and move a test for something, you can do if(!thing) y=whatever, or y=whatever unless thing
<centrx> noober3, It is commonly used
<centrx> Improves readability
<noober3> ok just use to ! so unless just looks funny to me, but i guess i must change my ways
fezziwig has quit [Remote host closed the connection]
Melpaws_ has quit [Remote host closed the connection]
<ohsix> there are a surprising number of predicate situations where it looks better, chains of if and inverting stuff get kind of boring
<lianj> if you want to make readers mad use `if not foo`
Melpaws has joined #ruby-lang
seanlinsley has joined #ruby-lang
fijimunkii has joined #ruby-lang
D9 has joined #ruby-lang
omegahm has joined #ruby-lang
<noober3> what is the best tutorial on how to program in ruby? i am currently reading the wikibooks on ruby
eugmill has quit [Remote host closed the connection]
Melpaws has quit [Ping timeout: 260 seconds]
<centrx> noober3, I do not know what is the best tutorial for a "total noob", but the Pragmatic Programmer's Guide (the Pickaxe) is the standard best guide/reference http://pragprog.com/book/ruby4/programming-ruby
<centrx> noober3, That might be good if you are already familiar with programming in general
<noober3> ok thanks
<centrx> noober3, The 1st edition is available online at http://docs.ruby-doc.com/docs/ProgrammingRuby/
<noober3> even better, will def look at it
RobertBirnie has joined #ruby-lang
vlad_starkov has joined #ruby-lang
<centrx> noober3, "why's (poignant) Guide to Ruby" is also a classic, and available online
earthquake has quit [Quit: earthquake]
vlad_starkov has quit [Read error: Connection reset by peer]
<noober3> not using semicolons and brackets is throwing me off
milhite has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aminRX has quit [Quit: aminRX]
Willox has joined #ruby-lang
existensil has quit [Remote host closed the connection]
<centrx> noober3, You will learn to like it :)
Elico has joined #ruby-lang
nathanstitt has joined #ruby-lang
elliotec has quit [Read error: Connection reset by peer]
elliotec has joined #ruby-lang
<noober3> have you read o'reillys The Ruby Programming Language?
joelroa has joined #ruby-lang
nathanstitt has quit [Read error: Connection reset by peer]
nathanst_ has joined #ruby-lang
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eugmill has joined #ruby-lang
<centrx> noober3, I have not. The O'Reilly books are usually good.
joelroa has quit [Read error: Operation timed out]
mistym_ has joined #ruby-lang
mistym has quit [Ping timeout: 253 seconds]
<noober3> thanks for the help/advice
Sirupsen has joined #ruby-lang
knu has quit [Ping timeout: 252 seconds]
lysw123 has joined #ruby-lang
knu has joined #ruby-lang
MouseTheLuckyDog has joined #ruby-lang
Elico has quit [Quit: Elico]
<michael_mbp> hi...
<MouseTheLuckyDog> Jim Weirich has died?
<michael_mbp> What's the 'usual' procedure for maintaing a gem for multiple versions of ruby?
<michael_mbp> MouseTheLuckyDog: yeah :(
<michael_mbp> I did a Rake in:peace tweet...
<MouseTheLuckyDog> Saturday I will download a bunch of youtube videos of his that I didn't watch and watch them in memoriam.
<lianj> :(
eugmill has quit [Remote host closed the connection]
<michael_mbp> rather unclear on what the process is on maintaing a gem for multiple rubies, anyone?
<michael_mbp> along with semver that is.
<michael_mbp> do I throw 1.8.7 support into a different branch?
lysw123 has quit [Remote host closed the connection]
noober3 has quit [Quit: Make it idiot proof and someone will make a better idiot.]
<Sirupsen> michael_mbp: You could check the RUBY_VERSION inline, but it's sketchy.
<michael_mbp> Sirupsen: yeah, thing is I made a module for a payment gateway whilst supporting an older 1.8.7 app
<michael_mbp> but I want to release it supporting 1.8.7 and 2.0
<Sirupsen> michael_mbp: What's different between the two versionins?
<michael_mbp> so typical development you'd start at v0.1.0 and at somepoint transition to a newer ruby.
eugmill has joined #ruby-lang
<michael_mbp> Sirupsen: well, once I factor in specs n' stuff, I'm guessing those dependencies would vary depending on the version of ruby I'm testing against.
<centrx> michael_mbp, Personally, I would have one active version that supports both Ruby versions
<michael_mbp> centrx: so, check the ruby version inline?
<centrx> michael_mbp, There are not massive differences between the versions of Ruby. There is a large, almost all-encompassing intersection of features that works on both.
<michael_mbp> I haven't looked yet but I'm assuming the current stable release of RSpec wouldn't be the same version availabe for 1.8.7
<michael_mbp> centrx: that's true.
<michael_mbp> my current code would most likely run on both.
RobertBirnie has joined #ruby-lang
<Sirupsen> From what I'm aware of, there's not a way to specify gem versioning depending on a Ruby version in rubygems. You might be able to get away with something super sketchy with a extconf.rb in ext/ and emulating a C extension where you can execute code to install a gem. But really, you're going down a crazy path... Anything wrong with specifying the latest, stable release of e.g. Rspec that supports both for now?
sepp2k has quit [Read error: Connection reset by peer]
<michael_mbp> but I would most likley like to lock down the different development versions down, i.e. a version1 branch that's locked to 1.8.7
<centrx> michael_mbp, That is typically done with branches in the source control repository
nathanst_ has quit [Read error: Connection reset by peer]
<michael_mbp> how about master, develop, 1-8-7-stable
nathanstitt has joined #ruby-lang
<michael_mbp> thing is I like branches to reflect the semver progression
<michael_mbp> similar to the way rails core works.
sandbags has quit []
<centrx> michael_mbp, Why do you need to support 1.8.7 in the future versions of your software?
io_syl has quit [Ping timeout: 245 seconds]
<michael_mbp> centrx: I'll dwell on this a bit, but I do like your idea.
<michael_mbp> centrx: good point, unless the API changes.
<michael_mbp> right now I'm supporting some older 2.x apps in production (eek I know).
miqui has quit [Remote host closed the connection]
<michael_mbp> It almost feels like the 1.8.7 version should be its own isolated gem.
<michael_mbp> thoughts?
<michael_mbp> if I plan for its API to still evolve over time.
<centrx> You can keep your old version as a branch, you don't need to call it 1.8.7-stable, you can call it 1.5-stable or whatever your last version that supports 1.8.7 will be
Sirupsen has quit [Quit: Textual IRC Client: www.textualapp.com]
nathanstitt has quit [Ping timeout: 252 seconds]
<centrx> You can backport maintenance fixes to it
<centrx> This is often called "maintenance mode"
<michael_mbp> centrx when I backport fixes, that would still move the version forwards though?
<michael_mbp> minor/patch
<centrx> Right, but it would be 1.5.1, 1.5.2
<centrx> and then your new version could be called 1.6.0, 1.6.1, or 2.0.0, etc.
<michael_mbp> right so 1.6 will be beyond 1.8.7 support
<centrx> right
<michael_mbp> right thanks, that clears it up.
<michael_mbp> the confusion is I'm trying to start on both at the same time ;-)
<michael_mbp> as in 0.1.0 for both 1.8.7 and 2.0 hah.
<michael_mbp> I'll jump it to 1.0.0 once the public API is consistent for 1.8.7 and then start on 2.0
<michael_mbp> *2.0.0 ruby support.
dingus_khan has quit [Read error: Connection reset by peer]
dingus_khan has joined #ruby-lang
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
eugmill has quit [Remote host closed the connection]
dingus_khan has quit []
digitalknight has joined #ruby-lang
<digitalknight> hi all
Willox has joined #ruby-lang
<havenwood> hi
<digitalknight> when i do gem install atomic -- --with-cflags=-march=i686
<digitalknight> i get could not find a valid gem 'atomic' (>=0) in any repository
<digitalknight> my platform is RHEL
<digitalknight> how do I solve it?
joelroa has joined #ruby-lang
nathanstitt has joined #ruby-lang
<digitalknight> anybody,please?
<centrx> digitalknight, I mean, it's there at rubygems.org ...
<centrx> digitalknight, Can you run it with -V (verbose)
<havenwood> digitalknight: What do you get for?: gem sources
joelroa has quit [Read error: Operation timed out]
robbyoconnor has quit [Ping timeout: 264 seconds]
<digitalknight> havenwood: centrx sec
<digitalknight> let me put that
<digitalknight> havenwood: i get rubygems.org
elliotec has quit [Remote host closed the connection]
<digitalknight> centrx: I have rubygems.org
<digitalknight> is there any specific reason why this couldnt be working?
<havenwood> digitalknight: `https://rubygems.org/`?
<havenwood> digitalknight: try?: sudo gem update --system
<havenwood> digitalknight: Do you see atomic with?: gem list -r atomic
<digitalknight> havenwood: let me try
<digitalknight> havenwood: I get Could not find a valid gem rubygems-update locally or in a repository
<digitalknight> havenwood: with gem list -r atomic i get lots of entries
dc5ala_ has joined #ruby-lang
<digitalknight> top one is atomic (1.1.14)
<havenwood> digitalknight: Just to double check, try?: gem install atomic --source https://rubygems.org
<digitalknight> havenwood: same error
<digitalknight> it doesnt even try to properly search I think
fezziwig has joined #ruby-lang
<havenwood> digitalknight: I'm grasping...: gem install -r atomic
kalehv has joined #ruby-lang
<havenwood> digitalknight: Is the network working? Can you curl or wget from https://rubygems.org?: wget https://rubygems.org
<digitalknight> havenwood: No such file or directory - /set GEM_INSTALL_ROOT environemnt variable to $(pwd)/build/cache/atomic-1.1.14.gem
nathanstitt has quit [Quit: I growing sleepy]
<havenwood> digitalknight: Are you using system Ruby? Using `sudo` doesn't help?
<digitalknight> havenwood: adding sudo gives me /usr/bin/gem no such file or directory
<havenwood> digitalknight: okay
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
symm- has quit [Quit: Leaving...]
<digitalknight> havenwood
<digitalknight> it worked
<digitalknight> but now it gives
<digitalknight> COULD not create makefile due to some reaons,probably lack of necessary libraries and/or headers.Check the mkmf.log
<digitalknight> where is mkmf.log?
Xzyx987X_ has quit [Ping timeout: 260 seconds]
<digitalknight> havenwood
<digitalknight> havenwood: i see some messages like 'You have to install development tools first. from mkmf.rb 'try_link0'
arooni-mobile has quit [Ping timeout: 252 seconds]
<digitalknight> from mkmf.rb
<digitalknight> try_run
<havenwood> digitalknight: sudo yum install -y gcc automake
<digitalknight> havenwood: is there no other way?
<digitalknight> there seem to be some problems in my yum install
<havenwood> sudo yum install -y ruby-devel
<digitalknight> i have filed a support ticket in my company already
<havenwood> digitalknight: in order to install atomic you need to be able to build the c-extension
<havenwood> digitalknight: you could use JRuby
<digitalknight> havenwood: so I am missing atomic
<digitalknight> hence I am in these problems?
<digitalknight> havenwood: sorry,I meant automake
<havenwood> digitalknight: you can't install atomic because you are missing build tools because your yum is broken so you can't install them, as far as i can tell
<digitalknight> havenwood: so what do I need to install?
<digitalknight> i shall ask support to install them
<havenwood> digitalknight: Whatever you prefer.
<havenwood> digitalknight: If you want to build ruby yourself: sudo yum install -y gcc automake gdbm-devel libffi-devel libyaml-devel openssl-devel ncurses-devel readline-devel zlib-devel
<havenwood> digitalknight: or ruby-devel
<digitalknight> havenwood: but I do have ruby
<digitalknight> my ruby -v shows something sane
<havenwood> digitalknight: the ruby and ruby-devel packages are different. having ruby and being able to build gems with c-exts are different matters.
fezziwig has quit [Remote host closed the connection]
<digitalknight> havenwood: so I am missing ruby-devel?
jperry_ has quit [Quit: jperry_]
io_syl has joined #ruby-lang
<havenwood> digitalknight: are you?: yum list ruby-devel
drocsid_ has quit [Changing host]
drocsid_ has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
jonahR has quit [Quit: jonahR]
fezziwig has joined #ruby-lang
mistym_ has quit [Remote host closed the connection]
<digitalknight> havenwood: let me try
Willox has quit [Read error: Connection reset by peer]
<digitalknight> havenwood: cant
<digitalknight> yum is broken
<digitalknight> havenwood: can it have anything to do with my ruby version?
mistym has joined #ruby-lang
<digitalknight> will specifying 'ruby 2.1.0' in my Gemfile make it work?
mistym has quit [Remote host closed the connection]
<havenwood> digitalknight: you are trying to install a gem that require build tools in order to build a c-extension
<havenwood> digitalknight: the -devel package has dependencies on those build tools
<havenwood> digitalknight: they can be installed independently
<digitalknight> havenwood: right,so it doesnt have anything to with my ruby version specified in the Gemfile,is it?
<digitalknight> thats what I will tell my boss
fezziwig has quit [Remote host closed the connection]
<digitalknight> he was saying that its because i specified an older version in the gemfile
vlad_starkov has joined #ruby-lang
kitak_ has joined #ruby-lang
<havenwood> digitalknight: i don't know what we're talking about here, but if about atomic gem not building because you lack build tools then ^
<digitalknight> havenwood: i understand that
<digitalknight> was just telling what my boss said
<havenwood> ahh
<digitalknight> yes the atomic gem isnt building with the errors i told you
<digitalknight> so it says i need to install devel tools
fijimunkii has quit [Ping timeout: 260 seconds]
fezziwig has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
kitak has quit [Ping timeout: 245 seconds]
kalehv has quit [Remote host closed the connection]
<imperator> eventually rubygems will support meta information so you can include 3rd party devel stuff
<imperator> i think that's the plan
<digitalknight> well
<digitalknight> i hope it works soon
retro|cz has joined #ruby-lang
symm- has joined #ruby-lang
yfeldblum has joined #ruby-lang
kalehv has joined #ruby-lang
tcopp has quit [Ping timeout: 252 seconds]
<digitalknight> how can I see the ruby versions present on my system?
kalehv_ has joined #ruby-lang
kalehv has quit [Read error: Connection reset by peer]
<havenwood> digitalknight: which -a ruby
felipe has joined #ruby-lang
<havenwood> digitalknight: for at least those in your path
<digitalknight> havenwood: i am sure i have multiple versions
<digitalknight> but that command shows only one
<digitalknight> is there a way for me to see all through rvm?
<havenwood> digitalknight: only one is in your PATH
dik_dak has quit [Quit: Leaving]
<havenwood> digitalknight: are you using rvm?
<digitalknight> havenwood: yes
<havenwood> digitalknight: I guess you didn't answer when I asked if you used system Ruby. >.>
<havenwood> I presumed.
<havenwood> digitalknight: rvm list
<digitalknight> havenwood: oh thanks :)
<digitalknight> ok i see two
<digitalknight> now the final ques
<havenwood> digitalknight: The RVM channel is #rvm by the way, if you get stuck on RVM.
<digitalknight> oh awesome
<digitalknight> i should hangout there sometime
mechanicles has joined #ruby-lang
tonni has quit [Remote host closed the connection]
<digitalknight> havenwood: now to default use the latest one
<digitalknight> do I do ruby '2.1.0' in my Gemfile?
vlad_starkov has joined #ruby-lang
_ht has joined #ruby-lang
<havenwood> digitalknight: i don't usually set a ruby version in my gemfile unless using heroku or some such reason. i'd suggest getting the latest rvm, making sure your rvm default is set how you'd like it, and checking with #rvm on RVM specific stuff if someone in #ruby or #ruby-lang doesn't know
<digitalknight> havenwood: so rvm --use-default 2.1.0
<havenwood> digitalknight: also review the RVM documentation
<havenwood> digitalknight: that sounds right
<havenwood> digitalknight: rvm get latest
mechanicles has quit [Client Quit]
<digitalknight> havenwood: thanks a ton!
<havenwood> digitalknight: no prob
vlad_starkov has quit [Remote host closed the connection]
RobertBirnie has joined #ruby-lang
ruby-lang878 has joined #ruby-lang
<ruby-lang878> test
<havenwood> ruby-lang878: hi
<centrx> Did the test work?
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> B+
mistym has joined #ruby-lang
ruby-lang728 has quit [Ping timeout: 245 seconds]
ehutzelman has joined #ruby-lang
Guest72097 has quit [Remote host closed the connection]
rahul_j has joined #ruby-lang
mr-foobar has joined #ruby-lang
ikrima has quit [Ping timeout: 248 seconds]
nisstyre has quit [Quit: WeeChat 0.4.3]
vlad_starkov has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
nathanstitt has joined #ruby-lang
<ruby-lang878> Sorry ,I am new to IRC so that I could not able to continue
nathanstitt has quit [Ping timeout: 260 seconds]
marcdel has joined #ruby-lang
nisstyre has joined #ruby-lang
arBmind has joined #ruby-lang
ruby-lang878 has quit [Quit: Page closed]
ehutzelman has quit []
amclain has quit [Quit: Leaving]
ikrima has joined #ruby-lang
nisstyre has quit [Quit: WeeChat 0.4.3]
RobertBirnie has joined #ruby-lang
joelroa has joined #ruby-lang
skade has joined #ruby-lang
nisstyre has joined #ruby-lang
nisstyre has quit [Client Quit]
nisstyre has joined #ruby-lang
joelroa has quit [Read error: Operation timed out]
nisstyre has quit [Client Quit]
symm- has quit [Ping timeout: 272 seconds]
nisstyre has joined #ruby-lang
nathanstitt has joined #ruby-lang
marcdel has quit [Ping timeout: 252 seconds]
nathanstitt has quit [Read error: Connection reset by peer]
nathanstitt has joined #ruby-lang
rwk1 has quit [Remote host closed the connection]
<freedrull> why is rubygems.org black now
knu has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby-lang
nathanstitt has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
knu has joined #ruby-lang
rwk1 has joined #ruby-lang
fezziwig has quit [Remote host closed the connection]
bzalasky has quit [Remote host closed the connection]
nichtdiebohne has joined #ruby-lang
arBmind has quit [Ping timeout: 260 seconds]
ikrima has quit [Ping timeout: 252 seconds]
ikrima has joined #ruby-lang
cnivolle has joined #ruby-lang
rwk1 has quit [Remote host closed the connection]
rwk1 has joined #ruby-lang
kalehv_ has quit [Remote host closed the connection]
aminRX has joined #ruby-lang
rwk1 has quit [Ping timeout: 260 seconds]
rue has quit [Remote host closed the connection]
cnivolle has quit [Remote host closed the connection]
nathanstitt has joined #ruby-lang
ikrima has quit [Read error: Operation timed out]
havenwood has quit [Remote host closed the connection]
nathanst_ has joined #ruby-lang
nathanstitt has quit [Read error: Connection reset by peer]
Barrin6 has quit [Ping timeout: 260 seconds]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<digitalknight> folks
<digitalknight> i cant seem to be able to change the prmary key of a record in rails scaffold
kro__ is now known as kro_
joelroa has joined #ruby-lang
RobertBirnie has joined #ruby-lang
<ljarvis> digitalknight: #ror
<ljarvis> they'll be able to help out more
<digitalknight> ljarvis: thanks!
robbyoconnor has joined #ruby-lang
<centrx> ( #rubyonrails )
<ljarvis> that's the same channel
riffraff has joined #ruby-lang
<centrx> #ror doesn't forward for me
<centrx> He hasn't joined so I thought he might need some help
<ljarvis> weird
<ljarvis> does for me
<centrx> #rails was closed recently and doesn't forward either
<centrx> oh hmm
<centrx> maybe it's because I'm already in #rubyonrails
<ljarvis> well yeah :P
<centrx> yup, that's it
<centrx> Yeah, but it says * Cannot join #ror (Channel is invite only).
<ljarvis> yeah it's actually a different channel
<ljarvis> but forwards if you dont have access
<ljarvis> I only use it because i cba to type
digitalknight has quit [Ping timeout: 245 seconds]
joelroa has quit [Ping timeout: 272 seconds]
rwk1 has joined #ruby-lang
mr-foobar has quit [Remote host closed the connection]
rwk1 has quit [Ping timeout: 272 seconds]
mr-foobar has joined #ruby-lang
joelroa has joined #ruby-lang
havenwood has joined #ruby-lang
mr-foobar has quit [Ping timeout: 248 seconds]
nathanst_ has quit [Ping timeout: 265 seconds]
Meths_ is now known as Meths
mr-foobar has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
certaint1 is now known as certainty
symm- has joined #ruby-lang
mistym has quit [Remote host closed the connection]
dingus_khan has joined #ruby-lang
joelroa_ has joined #ruby-lang
joelroa_ has quit [Max SendQ exceeded]
joelroa_ has joined #ruby-lang
havenwood has quit [Ping timeout: 252 seconds]
anna has joined #ruby-lang
joelroa has quit [Ping timeout: 260 seconds]
anna is now known as Guest8067
<badeball> how's the support for tcl/tk support nowadays? I just built 2.0.0 with ruby-build and it segfaults as soon as I require 'tk'
Guest8067 has left #ruby-lang [#ruby-lang]
ledestin has quit [Ping timeout: 260 seconds]
joelroa_ has quit [Ping timeout: 252 seconds]
cnivolle has joined #ruby-lang
<ljarvis> im assuming bad then
dingus_khan has quit [Remote host closed the connection]
io_syl has quit []
|jemc| has quit [Ping timeout: 260 seconds]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
joelroa has joined #ruby-lang
marcdel has joined #ruby-lang
<badeball> ah, it doesn't seem like ruby supports tk 8.6: https://bugs.ruby-lang.org/issues/8000
gnufied has quit [Quit: ZNC - http://znc.in]
gnufied has joined #ruby-lang
kalehv has joined #ruby-lang
joelroa has quit [Ping timeout: 260 seconds]
jhass|off is now known as jhass
skade has quit [Quit: Computer has gone to sleep.]
kalehv has quit [Ping timeout: 252 seconds]
rue has joined #ruby-lang
D9 has quit [Quit: Leaving]
aminRX has quit [Ping timeout: 252 seconds]
joelroa has joined #ruby-lang
joelroa has quit [Max SendQ exceeded]
joelroa has joined #ruby-lang
Atww has quit [Ping timeout: 248 seconds]
dingus_khan has joined #ruby-lang
<yorickpeterse> morning
jxpx777 has quit [Ping timeout: 252 seconds]
rwk1 has joined #ruby-lang
ikrima has joined #ruby-lang
benlovell has joined #ruby-lang
cnivolle has quit [Read error: Connection reset by peer]
cnivolle has joined #ruby-lang
nathanstitt has joined #ruby-lang
symm- has quit [Ping timeout: 252 seconds]
rwk1 has quit [Ping timeout: 252 seconds]
mikecmpbll has joined #ruby-lang
dingus_khan has quit [Ping timeout: 252 seconds]
michd is now known as MichD
joelroa has quit [Read error: Operation timed out]
centrx has quit [Quit: Leaving]
nathanstitt has quit [Ping timeout: 252 seconds]
Penetrator has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
canton7 has joined #ruby-lang
mikecmpbll has quit [Quit: i've nodded off.]
MouseTheLuckyDog has quit [Read error: Operation timed out]
havenwood has joined #ruby-lang
cnivolle_ has joined #ruby-lang
rue has quit [Remote host closed the connection]
nathanstitt has joined #ruby-lang
nathanstitt has quit [Read error: Connection reset by peer]
nathanstitt has joined #ruby-lang
nathanstitt has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby-lang
nathanstitt has joined #ruby-lang
cnivolle has quit [Ping timeout: 260 seconds]
jsrn has joined #ruby-lang
havenwood has quit [Ping timeout: 272 seconds]
<ljarvis> moin
cnivolle_ has quit [Remote host closed the connection]
cnivolle has joined #ruby-lang
nathanstitt has quit [Ping timeout: 272 seconds]
MouseTheLuckyDog has joined #ruby-lang
canton7-mac has joined #ruby-lang
marcdel has quit []
joonty_ is now known as joonty
cnivolle_ has joined #ruby-lang
cnivolle has quit [Ping timeout: 246 seconds]
cnivolle_ has quit [Remote host closed the connection]
cnivolle has joined #ruby-lang
<unsymbol> moin
rue has joined #ruby-lang
Olipro has joined #ruby-lang
<yorickpeterse> right, time to whip interns back into shape
prc has joined #ruby-lang
workmad3 has joined #ruby-lang
<ljarvis> yorickpeterse: you should come to brighton ruby
<ljarvis> maloik_: you too
<yorickpeterse> when's that?
elliotec has joined #ruby-lang
<ljarvis> july 21
<yorickpeterse> hmmm
Cakey has quit [Ping timeout: 252 seconds]
<yorickpeterse> website?
<yorickpeterse> oh found it
cnivolle_ has joined #ruby-lang
elliotec has quit [Ping timeout: 265 seconds]
tkuchiki has quit [Remote host closed the connection]
cnivolle has quit [Ping timeout: 246 seconds]
<yorickpeterse> well, intern whipped themselves into shape
seanlinsley_ has joined #ruby-lang
seanlinsley has quit [Read error: Connection reset by peer]
seanlinsley_ is now known as seanlinsley
* yorickpeterse puts down the cane
* ljarvis picks up the pragmatic trout book
* yorickpeterse slaps ljarvis around with a copy of "The Pragmatic Trout"
<yorickpeterse> ha
<yorickpeterse> (it's pseudo random too)
<ljarvis> is that a shortcut?
skade has joined #ruby-lang
<ljarvis> oh god
<yorickpeterse> I also have a parse.y reference in a list
<yorickpeterse> yeah
<yorickpeterse> if I do /rslap NICK it does that
<ljarvis> you're a terrible terrible person
<yorickpeterse> it's a plugin
joelroa has joined #ruby-lang
<ljarvis> i see
<ljarvis> lucky i dont use weechat so i can resist the extreme urge to install it
<ljarvis> dat perl
<yorickpeterse> irssi has a similar plugin
<ljarvis> :/
<yorickpeterse> "the queen of England" ha
<ljarvis> NO
relix has joined #ruby-lang
joelroa has quit [Ping timeout: 260 seconds]
rwk1 has joined #ruby-lang
workmad3 has quit [Ping timeout: 252 seconds]
<yorickpeterse> Hmpf, seems I have much to write this weekend
elia has joined #ruby-lang
<yorickpeterse> 2 talks, 1 generic article (or as pg calls them, "essay") and 2 rants (I think)
<ljarvis> only 2 rants?
<whitequark> pg? academia called those "essays" for a good millenium
<whitequark> or maybe two
<ljarvis> schooled
<yorickpeterse> OH FUCK THIS, I hate websites that hijack <title> upon losing focus
<yorickpeterse> "PLEASE COME BACK" go away
rwk1 has quit [Ping timeout: 272 seconds]
<ljarvis> i have a plugin to disable that
<yorickpeterse> whitequark: yeah but pg is like "Here's a stupid article on why it's ok to say stupid shit, I call it an essay so it's totally cool"
rue has quit [Read error: Connection reset by peer]
<whitequark> yorickpeterse: http://en.wikipedia.org/wiki/Essay
vlad_starkov has quit [Remote host closed the connection]
<yorickpeterse> I'
<whitequark> this is pretty much the definition of essay, "stupid article expressing my stupid opinion"
<yorickpeterse> fucking enter
<yorickpeterse> * I'm very much aware of the definition
<yorickpeterse> it feels snobby to me though
vlad_starkov has joined #ruby-lang
ikrima has quit [Ping timeout: 265 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
<yorickpeterse> Unrelated, does anybody know of a BSON parser in Ruby?
<yorickpeterse> That is, something that can parse the entire BSON crap, not just the IDs
heavyhorse has joined #ruby-lang
<yorickpeterse> oh wait derp, maybe the bson Gem does have that
havenwood has joined #ruby-lang
heavyhorse has quit [Ping timeout: 260 seconds]
devgiant has joined #ruby-lang
nathanstitt has joined #ruby-lang
<yorickpeterse> ljarvis: yo, in slop if I have a boolean option with a default of true, there's no way to set it to false from the CLI is there?
<yorickpeterse> Alternative is to create a "--no-foo" option which does the inverse
phansch has joined #ruby-lang
arBmind has joined #ruby-lang
matti_ has quit [Quit: Reconnecting]
matti_ has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ljarvis> yorickpeterse: slop picks up --no-x stuff for you
<yorickpeterse> oh really?
<yorickpeterse> nice
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
<yorickpeterse> :D
ItSANgo has quit [Quit: Leaving...]
vlad_starkov has joined #ruby-lang
relix has joined #ruby-lang
Pupeno_ has quit [Remote host closed the connection]
AhmadMutiry has joined #ruby-lang
rwk1 has joined #ruby-lang
workmad3 has joined #ruby-lang
yfeldblum has quit [Ping timeout: 248 seconds]
<AhmadMutiry> def something var
<AhmadMutiry> var = nil
<AhmadMutiry> puts "var in side methods"
<AhmadMutiry> end
<AhmadMutiry> var = ""
<AhmadMutiry> puts something var
<yorickpeterse> I concur
<ljarvis> agreed
<AhmadMutiry> why should declare var out method to get puts in method
havenwood has quit []
nathanstitt has quit [Read error: Connection reset by peer]
nathanst_ has joined #ruby-lang
<yorickpeterse> what
<yorickpeterse> That sentence makes no sense
<yorickpeterse> But my guess is that you're misunderstanding scoping of local variables
<yorickpeterse> A local variable declared outside a method is not available to its inside, unless passed in as an argument
<yorickpeterse> the same goes the other way around
<yorickpeterse> Locals declared in a method are not available outside of it unless returned to something
<AhmadMutiry> sory my english very bad
heftig has joined #ruby-lang
pabloh has joined #ruby-lang
<AhmadMutiry> thanx ljarvis
ledestin has joined #ruby-lang
kitak_ has quit [Remote host closed the connection]
nathanst_ has quit [Ping timeout: 265 seconds]
<yorickpeterse> eh
<yorickpeterse> ok?
<yorickpeterse> ljarvis: stop stealing my thunder :<
ItSANgo has joined #ruby-lang
RoxasShadowRS has joined #ruby-lang
<ljarvis> wow
<ljarvis> i dont even know how i did that
<ljarvis> but im impressed with myself
<AhmadMutiry> sory ,, i want book or blog tuts for ruby explain withe really project
<AhmadMutiry> sorry ,, i want book or blog tuts for ruby explain with real project
rwk1 has quit [Remote host closed the connection]
<ljarvis> where did corundum go
Authenticator has quit [Ping timeout: 248 seconds]
mnngfltg has joined #ruby-lang
yfeldblum has joined #ruby-lang
Authenticator has joined #ruby-lang
elliotec has joined #ruby-lang
yfeldblum has quit [Ping timeout: 265 seconds]
<maloik_> boom
elliotec has quit [Ping timeout: 260 seconds]
cnivolle_ has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
cnivolle has joined #ruby-lang
elliotec has joined #ruby-lang
maoko has joined #ruby-lang
elliotec has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby-lang
devgiant_ has joined #ruby-lang
devgiant has quit [Ping timeout: 272 seconds]
ksevelyar has joined #ruby-lang
<ksevelyar> hello! <3
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
robmiller has joined #ruby-lang
nathanstitt has joined #ruby-lang
ikrima has joined #ruby-lang
workmad3 has quit [Ping timeout: 265 seconds]
nathanstitt has quit [Ping timeout: 248 seconds]
ksevelyar has left #ruby-lang [#ruby-lang]
benlovell has quit [Read error: Connection reset by peer]
rwk1 has joined #ruby-lang
ikrima has quit [Ping timeout: 252 seconds]
devgiant has joined #ruby-lang
tonni has joined #ruby-lang
devgiant__ has joined #ruby-lang
benlovell has joined #ruby-lang
joelroa has joined #ruby-lang
devgiant_ has quit [Ping timeout: 260 seconds]
koomerang has joined #ruby-lang
devgiant_ has joined #ruby-lang
rwk1 has quit [Ping timeout: 265 seconds]
devgiant has quit [Ping timeout: 252 seconds]
joelroa_ has joined #ruby-lang
devgiant__ has quit [Ping timeout: 248 seconds]
joelroa has quit [Ping timeout: 260 seconds]
leandrosnunes has joined #ruby-lang
frankson has quit [Ping timeout: 260 seconds]
koomerang has quit []
mnngfltg has quit [Ping timeout: 252 seconds]
mnngfltg has joined #ruby-lang
<gnufied> maloik_: bro, I may be interested in becoming an sponsor
joelroa_ has quit [Ping timeout: 252 seconds]
devgiant has joined #ruby-lang
<gnufied> as in not me personally, but my company
devgiant_ has quit [Ping timeout: 248 seconds]
<maloik_> gnufied: that would be amazing :-) did you find your way to the sponsor document ?
<maloik_> It contains most of the 'facts' and numbers, but I'd be happy to go into detail on what you're looking for in a conference
<yorickpeterse> does Arrrcamp feature a pirate ship?
<yorickpeterse> please let there be a pirate ship :<
<maloik_> there will be a boat party ? d oes that count ?
<yorickpeterse> will it involve plundering Ghent?
<maloik_> not on our watch, sorry ;)
<yorickpeterse> :<
<maloik_> we may organize boat trips too though
<yorickpeterse> need to see how I can get my hands on the biggest pirate hat in town
<yorickpeterse> as in, an actually really big one
<yorickpeterse> and I need a parrot that randomly yells "ACTIVE SUPPORT QUAAAAAAA ACTIVE SUPPORT" at people
<maloik_> lol
<gnufied> maloik_: yeah found it. looks good.
<maloik_> feel free to pm or email us if you have questions or you want to talk it over :)
AhmadMutiry has quit [Quit: AhmadMutiry]
elia has quit [Quit: Computer has gone to sleep.]
mr-foobar has quit [Remote host closed the connection]
mr-foobar has joined #ruby-lang
mehlah has joined #ruby-lang
nathanstitt has joined #ruby-lang
Cakey has joined #ruby-lang
mr-foobar has quit [Ping timeout: 272 seconds]
nathanstitt has quit [Ping timeout: 252 seconds]
_ht has quit [Remote host closed the connection]
<ljarvis> maloik_: so, you coming to brighton conf?
Lennier has joined #ruby-lang
elliotec has joined #ruby-lang
mr-foobar has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<yorickpeterse> random question, because my head is full of fuck: if I do `foo_bar | ruby some_script.rb`, will the output be written to STDIN of some_script.rb as a whole?
<yorickpeterse> Looking for a way to do this on a per line basis, one that doesn't involve Open3
<yorickpeterse> otherwise the rubbies won't scale
<apeiros> yorickpeterse: I think not. Afair pipes write as soon as foo_bar flushes
elliotec has quit [Ping timeout: 248 seconds]
<apeiros> yorickpeterse: but you can try that out easily… `ruby -e '10.times do puts "hi" sleep 1; end' | ruby -e 'while line=gets; puts line; end'` # or somesuch
relix has joined #ruby-lang
<apeiros> oh, actually ruby doesn't seem to flush per line anymore…
nathanstitt has joined #ruby-lang
<apeiros> ruby -e '10.times do puts "hi"; $stdout.flush; sleep 1; end' | ruby -e 'while line=gets; puts line; end'
nathanstitt has quit [Read error: Connection reset by peer]
nathanst_ has joined #ruby-lang
<yorickpeterse> hm
<yorickpeterse> can't exactly have 150 GB of text in a buffer, bummer
<maloik_> ljarvis: I'm away then sadly
<apeiros> as said, pipe writes as soon as the lhs flushes
<maloik_> cooking with our youth organization (is that a word?)
<ljarvis> maloik_: ow
<yorickpeterse> hm, maybe mongoexport flushes per line, lets see
<maloik_> basically like a scouts group
<ljarvis> that is a word
<maloik_> yay me
<yorickpeterse> bah, flushes at the end
<ljarvis> next word: bubble and sqeak
<yorickpeterse> those are 3 words
<ljarvis> i knew it would be you to point that out
<yorickpeterse> well shoot, I guess I now actually have to connect to Mongo
<yorickpeterse> bah
nathanst_ has quit [Ping timeout: 260 seconds]
Cakey has quit [Ping timeout: 252 seconds]
supergeek has joined #ruby-lang
rwk1 has joined #ruby-lang
maoko has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elia has joined #ruby-lang
sepp2k has joined #ruby-lang
io_syl has joined #ruby-lang
joelroa has joined #ruby-lang
yfeldblum has joined #ruby-lang
joonty has quit [Quit: WeeChat 0.4.2]
shinnya has joined #ruby-lang
yfeldblum has quit [Ping timeout: 265 seconds]
_ht has joined #ruby-lang
joelroa has quit [Ping timeout: 272 seconds]
yalue has joined #ruby-lang
goatish_mound has quit [Quit: Textual IRC Client: www.textualapp.com]
leandrosnunes has quit [Quit: WeeChat 0.4.3]
leandrosnunes has joined #ruby-lang
tonni has quit [Remote host closed the connection]
fijimunkii has joined #ruby-lang
smashwilson has joined #ruby-lang
supergeek has quit [Quit: Goodbye, cruel world.]
maoko has joined #ruby-lang
tkuchiki has joined #ruby-lang
elliotec has joined #ruby-lang
Pupeno has joined #ruby-lang
tonni has joined #ruby-lang
eugmill has joined #ruby-lang
elliotec has quit [Ping timeout: 260 seconds]
Pupeno has quit [Remote host closed the connection]
Pupeno has joined #ruby-lang
nathanstitt has joined #ruby-lang
nathanstitt has quit [Ping timeout: 252 seconds]
seanlinsley has quit [Quit: …]
Sirupsen has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Cakey has joined #ruby-lang
tcopp has joined #ruby-lang
rahul_j has quit [Ping timeout: 252 seconds]
mozen has joined #ruby-lang
yfeldblum has joined #ruby-lang
rahul_j has joined #ruby-lang
<_rgn> is there a way to convert def png?(obj); obj.content_type === "image/png"; end to a lambda or something so that i can use similar to arr.filter(&png?)
* imperator scrolls up, is surprised to see people still using tcl/tk
<apeiros> _rgn: the problem is that &:png? will do item.png?
<mikecmpbll> _rgn: of what type is obj?
<yorickpeterse> imperator: my CTO recently discovered it and was like "OMG WTFBBQ THAT'S IN STDLIB??!!"
<yorickpeterse> I tried to explain Tk is shit :<
<_rgn> S3Object or something like that
enebo has joined #ruby-lang
rahul_j has quit [Client Quit]
<imperator> yorickpeterse, he got so excited he started a bbq?
eugmill has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 260 seconds]
arooni-mobile has joined #ruby-lang
<ljarvis> i love bbq
<yorickpeterse> imperator: almost
<yorickpeterse> we should have a Ruby BBQ
<yorickpeterse> BBQ those Gems
ikrima has joined #ruby-lang
<yorickpeterse> fuck, that actually sounds like fun
<maloik_> that sounds like fun indeed
<maloik_> do it
<maloik_> DO EEEEEEET
<yorickpeterse> or the Ruby potluck
<ljarvis> brighton ruby are doing a bbq
<yorickpeterse> D:
<yorickpeterse> but there's no sun in the UK
<ljarvis> then we bbq in the rain
vpretzel has joined #ruby-lang
<toertore> _rgn: filter(&method(:png?))
<yorickpeterse> besides the newspaper
<ljarvis> har
eugmill has joined #ruby-lang
eugmill has quit [Remote host closed the connection]
<imperator> bbq in the uk...just seems wrong
<yorickpeterse> a weekend long potluck + talks & stuff, hmmm
* imperator thinks of the deep south for good bbq
<yorickpeterse> TO KICKSTARTER!
<imperator> yorickpeterse, there you go
<yorickpeterse> 80 000 EUR plz
<imperator> perhaps some bitcoins will help
<mikecmpbll> there's nothing like the smell of a thousand bbqs at the first glimpse of the sun.
<imperator> start mining today!
jsilver_ has quit [Read error: Connection reset by peer]
<yorickpeterse> I prefer Doggycoins
jsilver has joined #ruby-lang
<yorickpeterse> Right, time to get the rubber glove and wrap up upgrading our last 1.8 app to 1.9
<yorickpeterse> (and then straight to 2.1)
milhite has joined #ruby-lang
<imperator> i'm getting behind - i don't even know what the difference between 2 and 2.1 was, and now 2.2 is coming up
vlad_starkov has quit [Remote host closed the connection]
<_rgn> toertore: cool, that works. why doesn't my ruby have filter method?
<apeiros> imperator: shiny new GC! and required kwargs
<mikecmpbll> _rgn: no one's ruby does.
<imperator> kwargs?
<yorickpeterse> and refinements are no longer "experimental"!
<yorickpeterse> kwargs == keyword arguments
<imperator> oic
<yorickpeterse> The syntax is a bit goofy though
<yorickpeterse> >> def foo(number:); number; end; foo
<eval-in_> yorickpeterse => missing keyword: number (ArgumentError) ... (https://eval.in/104178)
<yorickpeterse> >> def foo(number:); number; end; foo(10)
<eval-in_> yorickpeterse => missing keyword: number (ArgumentError) ... (https://eval.in/104179)
<imperator> i've spent so long using hash args, i never reallly switched over
<yorickpeterse> errr
<yorickpeterse> >> def foo(number:); number; end; foo(number: 10)
<eval-in_> yorickpeterse => 10 (https://eval.in/104180)
<mikecmpbll> how would you mix required and not required
<yorickpeterse> just add a default value
<yorickpeterse> def foo(number: 10) .... # <- optional
<mikecmpbll> >> def foo(number:, number2: 2); number2; end; foo(number: 10)
<eval-in_> mikecmpbll => 2 (https://eval.in/104181)
<mikecmpbll> hmpf, fair do's :)
Melpaws has joined #ruby-lang
mr-foobar has quit [Ping timeout: 260 seconds]
miqui has joined #ruby-lang
ikrima has quit [Ping timeout: 260 seconds]
mr-foobar has joined #ruby-lang
eugmill has joined #ruby-lang
mozen has quit [Quit: Leaving]
vlad_starkov has joined #ruby-lang
toertore is now known as toretore
postmodern has quit [Remote host closed the connection]
marr has joined #ruby-lang
Pupeno has quit []
jgpawletko has joined #ruby-lang
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nathanstitt has joined #ruby-lang
heftig has quit [Ping timeout: 265 seconds]
nathanstitt has quit [Read error: Connection reset by peer]
nathanstitt has joined #ruby-lang
joelroa has joined #ruby-lang
a3li has quit [Ping timeout: 246 seconds]
ulisescab has joined #ruby-lang
joelroa has quit [Read error: Operation timed out]
nathanstitt has quit [Ping timeout: 252 seconds]
a3li has joined #ruby-lang
brettweavnet has joined #ruby-lang
nathanstitt has joined #ruby-lang
shinnya has quit [Ping timeout: 252 seconds]
arooni-mobile has quit [Ping timeout: 272 seconds]
devgiant_ has joined #ruby-lang
devgiant has quit [Ping timeout: 252 seconds]
rsl has joined #ruby-lang
milhite has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RoxasShadowRS has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby-lang
TvL2386 has joined #ruby-lang
joelroa has joined #ruby-lang
johnmilton has joined #ruby-lang
yfeldblum has quit [Ping timeout: 265 seconds]
DEac- has quit [Read error: Connection reset by peer]
danijoo has quit [Read error: Connection reset by peer]
DEac- has joined #ruby-lang
danijoo has joined #ruby-lang
fijimunkii has quit [Ping timeout: 260 seconds]
diegoviola has quit [Quit: WeeChat 0.4.3]
joelroa has quit [Ping timeout: 260 seconds]
imperator has quit [Quit: Valete!]
tylersmith has joined #ruby-lang
nertzy2 has joined #ruby-lang
ulisescab has quit [Ping timeout: 252 seconds]
dik_dak has joined #ruby-lang
havenwood has joined #ruby-lang
mikekellyio_ has quit [Quit: Connection closed for inactivity]
nertzy has quit [Ping timeout: 248 seconds]
pkondzior____ has quit [Quit: Connection closed for inactivity]
comboy_ is now known as comboy
RobertBirnie has joined #ruby-lang
retro|cz has quit [Read error: Operation timed out]
ratmav has joined #ruby-lang
elliotec has joined #ruby-lang
jsullivandigs has joined #ruby-lang
maoko has quit [Quit: Textual IRC Client: www.textualapp.com]
elliotec has quit [Ping timeout: 272 seconds]
savage-__ has quit [Quit: Connection closed for inactivity]
akahn has quit [Quit: Connection closed for inactivity]
jcs222 has quit [Quit: leaving]
Melpaws has quit [Remote host closed the connection]
JEG2_ has quit [Quit: Connection closed for inactivity]
Melpaws has joined #ruby-lang
cnivolle_ has joined #ruby-lang
tom025_ has quit [Quit: Connection closed for inactivity]
mogox has quit [Quit: Connection closed for inactivity]
asahi has joined #ruby-lang
sent-hil has quit [Quit: Connection closed for inactivity]
cnivolle has quit [Ping timeout: 252 seconds]
<asahi> I'm doing a reverse DNS lookup on a large number of IP addresses using Resolv, but some of the lookups hang for 30-60 seconds, slowing the whole process down. is there a way to do this concurrently, so that even if a lookup hangs, I can continue doing other lookups?
Melpaws has quit [Ping timeout: 272 seconds]
<yorickpeterse> You can use threads
<yorickpeterse> or fiburs
<asahi> I read about threads, but it seems like it won't work? what this article says is…And if some thread happens to make a call to the operating system that takes a long time to complete, all threads will hang until the interpreter gets control back.
<yorickpeterse> In MRI you have a GIL, so only one thread can truly run at once
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
randym_ has quit [Quit: Connection closed for inactivity]
<yorickpeterse> But MRI will properly deal with that when it comes to IO I believe
Melpaws has joined #ruby-lang
<yorickpeterse> If you want proper concurrency use Rubinius or Jruby
<apeiros> Fiburs are awesome
<asahi> i'll check out fiburs. thanks
* yorickpeterse slaps apeiros around a bit with a large trout
* yorickpeterse slaps apeiros's bottom and grins cheekily
<benlovell> moar fibur!
<yorickpeterse> for extra measure
* apeiros is shocked
* apeiros feels sexually assaulted
<apeiros> asahi: Fibur = Thread. it was a joke by tenderlove
<yorickpeterse> ( ͡° ͜ʖ ͡°)
<asahi> ah i see
<yorickpeterse> I swear to god one day somebody will use that
<yorickpeterse> And then give a conference talk on how amazing Fiburs are
<asahi> okay, i guess i'll try treads then
<yorickpeterse> but that MRI's GUL ruins things
<yorickpeterse> http://hastebin.com/raw/gobiticilo lol upgrades
<benlovell> asahi: try threads, it might suffice if you're waiting on IO
<asahi> benlovell: thanks. i'll give it a shot
<benlovell> yorickpeterse: your face ruins things
<yorickpeterse> benlovell: hey you watch it mister
<yorickpeterse> granted I didn't shave for a few days so that's not entirely untrue
<benlovell> heh
<benlovell> I saw euruko may be rescheduled
<yorickpeterse> yeah :/
<yorickpeterse> Don't think they're looking forward to conference folks getting shot at by the gobment
<benlovell> yeah that wouldn't be cool
rkmetzl has left #ruby-lang [#ruby-lang]
<benlovell> not sure my co's insurance covers that
TvL2386 has quit [Quit: Ex-Chat]
<yorickpeterse> Apparently even paramedics from the Red Cross are being shot at
<benlovell> damn
<benlovell> dat sniper.
danijoo has quit [Quit: Leaving...]
<yorickpeterse> At least, there was this video where they had to walk around with shields because basically bullets everywhere
<benlovell> i saw some pics it's fucking crazy
yfeldblum has joined #ruby-lang
<yorickpeterse> lets see if I can dig up said video
joelroa has joined #ruby-lang
joelroa has quit [Max SendQ exceeded]
joelroa has joined #ruby-lang
ngw has joined #ruby-lang
<yorickpeterse> http://www.youtube.com/watch?v=0DxkDiAcSF8 WATCH AT OWN RISK
<yorickpeterse> NSFW / NSFL
prc has quit [Ping timeout: 252 seconds]
Melpaws has quit [Remote host closed the connection]
<ngw> hi everyone
<yorickpeterse> but yeah, shit's fucked up
Melpaws has joined #ruby-lang
heavyhorse has joined #ruby-lang
yfeldblum has quit [Ping timeout: 265 seconds]
<ngw> can someone explain to me why it modifies the original string?
<ngw> with or without using dup
<ngw> if a = 'test' and WalterSobchak::Transformations.devowelize(a) a becomes 'tst'
<ngw> isn't gsub working on a copy of the string if I don't use gsub! ?
<yorickpeterse> a isn't modified here
<ngw> wtf...
cnivolle_ has quit [Remote host closed the connection]
shtirlic has quit [Ping timeout: 272 seconds]
<ngw> no idea what I did :p
cnivolle has joined #ruby-lang
<ngw> but has to be something really interesting to discover :D
<yorickpeterse> eh, then something else might hijack it somehow
<yorickpeterse> what ruby version?
<ngw> 2.1.0
<yorickpeterse> Hm, I tried in 1.9.3
Melpaws has quit [Ping timeout: 265 seconds]
shtirlic has joined #ruby-lang
joelroa has quit [Ping timeout: 265 seconds]
<ngw> well it would be a huge change
<ngw> and it should spread all over the project
<ngw> I have rvm, will test on 2.0.0 in a minute
<jhass> can't reproduce on 2.1.0 and pry either
<jhass> I think the code you're using isn't the one you're looking at / put into the gist
<ngw> as I said it doesn't make any sense...
skade has quit [Quit: Textual IRC Client: www.textualapp.com]
skade has joined #ruby-lang
<ngw> jhass, yorickpeterse, thanks for helping me out, the solution is that I should stop being an idiot :p
<apeiros> ngw: huh? result = result.tr(/[Aa]/, '4') does not raise for you?
eugmill has quit [Remote host closed the connection]
<yorickpeterse> oh?
<apeiros> tr doesn't accept regexen… not even in 2.1…
<ngw> basically I mv a source file but saved with vim with the old name, so one file was hijacking the other
<yorickpeterse> lol
<ngw> sorry, big project
* yorickpeterse finds the closest large object and gives ngw a slap with it
<ngw> :D
<ngw> deserve it
<yorickpeterse> WHY DOES IT STILL NOT USE THE FUNNIEST ONE
<yorickpeterse> god damn it
<apeiros> ngw: you can hugely simplify (and speedup) your numberize method
<apeiros> ngw: def self.numberize(string) string.tr('AaEeGgIiOo', '4433661100') end
relix has joined #ruby-lang
<yorickpeterse> Upgrading Rails while on beer
<yorickpeterse> Best Fridays
|jemc| has joined #ruby-lang
<yorickpeterse> weird ass error though where 'should raise_error' gets effed up when you run the entire suite, but works fine when running the individual test
<asahi> if let's say I a list of 2000 IP addresses. Is it okay to create a new thread to do a reverse DNS lookup on each IP address, or would that use up a lot of memory?
mr-foobar has quit [Remote host closed the connection]
ikrima has joined #ruby-lang
eugmill has joined #ruby-lang
<yorickpeterse> You're better off using a controlled number of threads
<yorickpeterse> e.g. a pool of 10
mr-foobar has joined #ruby-lang
<asahi> yorickpeterse: you wouldn't happen to have an example of that would you? :-)
<benlovell> asahi: use celluloid
<yorickpeterse> asahi: nope
imperator has joined #ruby-lang
richardardrichar has joined #ruby-lang
rwk1 has quit [Remote host closed the connection]
<imperator> very confused here
mr-foobar has quit [Ping timeout: 252 seconds]
<imperator> IO.read('test.jpg', 10) # => "\xFF\xD8\xFF\xE0\x00\x10JFIF"
<imperator> ok, but ow
<imperator> IO.read('test.jpg', 10) == "\xFF\xD8\xFF\xE0\x00\x10JFIF" # false (???)
<ljarvis> and with single quotes?
<imperator> still false
<yorickpeterse> make sure that the rhs value's encoding is the same
<ljarvis> dat bindata
eugmill has quit [Remote host closed the connection]
<imperator> it's ascii 8bit
eugmill has joined #ruby-lang
<|jemc|> >> "\xFF\xD8\xFF\xE0\x00\x10JFIF" == '\xFF\xD8\xFF\xE0\x00\x10JFIF'
<eval-in_> |jemc| => false (https://eval.in/104259)
<apeiros> try IO.read('test.jpg', 10) == "\xFF\xD8\xFF\xE0\x00\x10JFIF".b
mr-foobar has joined #ruby-lang
<apeiros> @ imperator
<apeiros> or actually: IO.read('test.jpg', 10, encoding: 'binary') == "\xFF\xD8\xFF\xE0\x00\x10JFIF".b
<imperator> apeiros, that works
<imperator> man that is lame
<imperator> fucking hell
<imperator> when was the .b method added?
<apeiros> I think in 2.0
<apeiros> it's short for force_encoding(Encoding::BINARY)
ikrima has quit [Ping timeout: 252 seconds]
retro|cz has joined #ruby-lang
<apeiros> actually for .dup.force_encoding(Encoding::BINARY)
<imperator> apeiros, thanks, that's working
robbyoconnor has quit [Ping timeout: 252 seconds]
elia has quit [Ping timeout: 265 seconds]
mr-foobar has quit []
mr-foobar has joined #ruby-lang
jackyalc- is now known as jackyalcine
jackyalcine has quit [Changing host]
jackyalcine has joined #ruby-lang
bawigga has joined #ruby-lang
<bawigga> scope :starts_with, -> (name) { where("name like ?", "#{name}%")}
<bawigga> i've never seen the -> syntax before
<bawigga> whats that operator called?
elia has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
tylersmith has quit [Remote host closed the connection]
<bawigga> ah, found it, it's an alias for lambda
vlad_starkov has quit [Remote host closed the connection]
marr has quit []
vlad_starkov has joined #ruby-lang
<havenwood> bawigga: stabby lambda
<bawigga> havenwood: goot to know, thanks!
retro|cz has quit [Ping timeout: 272 seconds]
phansch_ has joined #ruby-lang
<ddd> yeah but stabby lambdas, while both lambdas and procs are actually procs, don't respond to lambda? only lambda does
<ddd> there are a couple other differences, but the biggest is that the stabby doesn't respond to lambda checks
ngw has quit [Quit: Linkinus - http://linkinus.com]
Lennier has quit [Quit: Lennier]
phansch_ has quit [Read error: Operation timed out]
<havenwood> >> ->{}.lambda?
<eval-in_> havenwood => true (https://eval.in/104260)
phansch has quit [Ping timeout: 260 seconds]
<ddd> >> ->{}.class
<eval-in_> ddd => Proc (https://eval.in/104261)
nathanstitt has joined #ruby-lang
<ddd> >> p RUBY_VERSION
<eval-in_> ddd => "2.1.0" ... (https://eval.in/104262)
<havenwood> ddd: lambda {}.class #=> Proc
<ddd> weird
<havenwood> ddd: stabby lambdas are lambdas
<ddd> >> lambda {}.lambda?
<eval-in_> ddd => true (https://eval.in/104263)
<ddd> havenwood they're both Procs
<ddd> ok then the docs i read on the differences is wrong.
ratmav has quit [Quit: Leaving]
* imperator stabs stabby lambdas
nathanstitt has quit [Ping timeout: 260 seconds]
nathanstitt has joined #ruby-lang
pkrnj has joined #ruby-lang
yfeldblum has joined #ruby-lang
<imperator> hm, i need some help on a universal File.binary? method
<imperator> that mostly works, but it's returning true on jpg's
tedstriker has joined #ruby-lang
pkrnj has quit [Client Quit]
<imperator> maybe i'll just check to see if it's an image first
<canton7> git's heuristic is "does it contain a null byte?"
phansch_ has joined #ruby-lang
phansch_ is now known as phansch
milhite has joined #ruby-lang
milhite has quit [Max SendQ exceeded]
yfeldblum has quit [Ping timeout: 264 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
milhite has joined #ruby-lang
milhite has quit [Max SendQ exceeded]
milhite has joined #ruby-lang
milhite has quit [Max SendQ exceeded]
mistym has joined #ruby-lang
joelroa has joined #ruby-lang
Pell has joined #ruby-lang
milhite has joined #ruby-lang
milhite has quit [Max SendQ exceeded]
cored has quit [Ping timeout: 252 seconds]
milhite has joined #ruby-lang
milhite has quit [Max SendQ exceeded]
Pell has quit [Remote host closed the connection]
milhite has joined #ruby-lang
milhite has quit [Max SendQ exceeded]
eugmill has quit [Remote host closed the connection]
marcdel has joined #ruby-lang
milhite has joined #ruby-lang
milhite has quit [Max SendQ exceeded]
<imperator> i just realized it probably should return true for image files
<imperator> i r confused
milhite has joined #ruby-lang
milhite has quit [Max SendQ exceeded]
Melpaws has joined #ruby-lang
milhite has joined #ruby-lang
milhite has quit [Max SendQ exceeded]
RobertBirnie has joined #ruby-lang
milhite has joined #ruby-lang
tcopp has quit [Ping timeout: 272 seconds]
vlad_starkov has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
jackyalcine is now known as jalcine
mikecmpbll has joined #ruby-lang
jsrn has quit [Ping timeout: 252 seconds]
bzalasky has joined #ruby-lang
bawigga has quit []
mnngfltg has quit [Remote host closed the connection]
joelroa_ has joined #ruby-lang
cored has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
VTLob has joined #ruby-lang
joelroa has quit [Ping timeout: 264 seconds]
bawigga has joined #ruby-lang
marcdel has quit []
robbyoconnor has joined #ruby-lang
khaase has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
<khaase> anyone experience with testing GC (and thread) related things/finalizers?
<khaase> simply triggering GC.start a few times does not work very reliable
<havenwood> imperator: need to keep it 1.8 compatible?
symm- has joined #ruby-lang
vlad_starkov has joined #ruby-lang
mikecmpbll has quit [Quit: i've nodded off.]
<imperator> havenwood, at this point? nah
<havenwood> imperator: downsides to this i'm not seeing?: File.open(file, &:readline).encoding == Encoding::BINARY
mikecmpbll has joined #ruby-lang
<khaase> https://gist.github.com/rkh/e24edafd8747e7b91b7a - how do I test the whole GC/finalizer part best?
mehlah has quit [Quit: Leaving...]
devgiant_ has quit [Read error: Operation timed out]
devgiant has joined #ruby-lang
<imperator> havenwood, it's supposed to be more or less like the "file" command
<khaase> can't tell if I'm being trolled in #ruby
<imperator> so, /bin/ls should return true
<imperator> but your approach would return false for /bin/ls
robbyoconnor has quit [Ping timeout: 252 seconds]
<havenwood> imperator: ahh, i see
<khaase> yep, definitely being trolled
tcopp has joined #ruby-lang
devgiant_ has joined #ruby-lang
Pell has joined #ruby-lang
elliotec has joined #ruby-lang
devgiant has quit [Ping timeout: 265 seconds]
Pell has quit [Read error: Connection reset by peer]
Johz has joined #ruby-lang
canton7-mac has quit [Quit: Leaving]
Pell has joined #ruby-lang
benlovel1 has joined #ruby-lang
tcopp has quit [Ping timeout: 272 seconds]
Cakey has quit [Ping timeout: 260 seconds]
<ljarvis> khaase: if you're in #ruby, you're being trolled
<ljarvis> the answer is always yes
<khaase> haha, yes, I had like two years without IRC, I forgot all about that
<ljarvis> wow i remember when you first started coming here
<chris2> le khaase
<khaase> haha
<khaase> <3
<chris2> hey
<khaase> hi chris2
benlovell has quit [Ping timeout: 252 seconds]
devgiant_ is now known as devgiant
benlovel1 has quit [Ping timeout: 260 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
io_syl has quit [Remote host closed the connection]
io_syl has joined #ruby-lang
__butch__ has joined #ruby-lang
__butch__ has quit [Remote host closed the connection]
__butch__ has joined #ruby-lang
ulisescab has joined #ruby-lang
tylersmith has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
bjarki has joined #ruby-lang
elia has quit [Ping timeout: 265 seconds]
<bjarki> hi
<bjarki> Is it okay to ask for help here?
khaase has quit [Ping timeout: 260 seconds]
khaase_ has joined #ruby-lang
elliotec has quit [Ping timeout: 265 seconds]
elliotec has joined #ruby-lang
hhatch has joined #ruby-lang
<havenwood> bjarki: yes
<bjarki> nvm found it on StackOverflow. my rvm --default was pointing at a none existing version.
<bjarki> but thanks :)
<certainty> khaase: does using method(:finalize) work for you seperately? I tests both your version and a version that returns a proc. And only the one returning the proc seems to work.
<havenwood> bjarki: just for future reference there's an #rvm channel as well. ;)
<certainty> *tested
<khaase_> certainty: not work as in the tests don't run or are you using something else to test it?
<bjarki> I'm so new to ruby :p did not understand why ruby -v was taking for ever to run end then returning an error
<certainty> khaase_: i just created a minimal example that sets the finalizer and had it output something
nathanstitt has quit [Quit: I growing sleepy]
nathanstitt has joined #ruby-lang
<khaase_> certainty: what ruby version are you on?
<certainty> khaase_: 2.1
<certainty> mri
Thanatermesis has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
ratmav has joined #ruby-lang
Willox has joined #ruby-lang
Melpaws has quit [Remote host closed the connection]
jperry_ has joined #ruby-lang
Melpaws has joined #ruby-lang
<khaase_> hmmm
<khaase_> I'm running that code on 2.0
khaase_ is now known as khaase
khaase has quit [Changing host]
khaase has joined #ruby-lang
nichtdiebohne has quit [Quit: Linkinus - http://linkinus.com]
mehlah has joined #ruby-lang
<certainty> khaase: https://gist.github.com/certainty/9139535 this is what i testet. I may have gotten you totally wrong though
eugmill has joined #ruby-lang
mikecmpbll has joined #ruby-lang
nichtdiebohne has joined #ruby-lang
Melpaws has quit [Ping timeout: 260 seconds]
<khaase> certainty: the methods need to take the object id as argument
mehlah has quit [Client Quit]
cnivolle has quit [Read error: Operation timed out]
milhite has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nathanstitt has quit [Ping timeout: 252 seconds]
jperry_ has quit [Quit: jperry_]
<certainty> khaase: ah, silly me :) ok both are invoked now here as well. Errors in finalizers don't show up
<apeiros> fuck, I just don't get any work done today :(
<apeiros> I'm still not through with even testing one single tiny class
<apeiros> (╯°□°)╯︵ ┻━┻
<bjarki> can any one tell me what I'm doing wrong here http://pastie.org/8756180
* apeiros gets himself some pizza
<apeiros> bjarki: sudo
<ddd> extra cheese, extra peporoni and please some green olives and green peppers
<bjarki> thx
<bjarki> so I need sudo to run ruby scripts?
<apeiros> bjarki: no. don't use sudo to install gems.
<yxhuvud> apeiros: I spent the whole day discovering that while x < x.succ is true for integers, it is not true for strings.
<apeiros> sudo gem # different gem executable than just `gem`
<bjarki> okay was like that in the guide on github for this gem :)
<apeiros> yxhuvud: *clap*?
<bjarki> thx
<apeiros> bjarki: in the ancient days, long before the titans vanished, people installed ruby systemwide
<yxhuvud> clap?
<apeiros> bjarki: back then you'd need sudo
<bjarki> Okay thx
<apeiros> yxhuvud: yeah, like, *slow clap*? :)
<apeiros> yxhuvud: dunno. what should I do :D
<bjarki> I'm a Windows .net dev trying to break free ;)
<apeiros> String#succ is one of the weirder methods in ruby
<yxhuvud> I was mostly commenting that you was not the only one not getting much done
<apeiros> yxhuvud: aaaaah!
<apeiros> yxhuvud: well, maybe you should *clap* for me then
<ljarvis> balls
<ddd> apeiros succ gives the next char right?
<ljarvis> there's so many tiny bugs in mechanize
<apeiros> ddd: until it wraps, yes
<ddd> response if wraps?
<robmiller> ddd: the problem is: "A".succ # => "Z"
Thanatermesis has joined #ruby-lang
Thanatermesis has quit [Changing host]
Thanatermesis has joined #ruby-lang
<apeiros> ddd: and probably some 42 special behaviors
milhite has joined #ruby-lang
<robmiller> err
<ddd> ahh
milhite has quit [Max SendQ exceeded]
<robmiller> "Z" and "A" reversed, even
<apeiros> robmiller: still not :-)
<apeiros> >> "Z".succ
<eval-in_> apeiros => "AA" (https://eval.in/104312)
<robmiller> "Z".succ #=> AA
<robmiller> that's what i get for typing too fast
<yxhuvud> wraps? "9".succ => "10"
milhite has joined #ruby-lang
<robmiller> and obviously "Z" > "AA"
<apeiros> yeah, that's wrapping
<robmiller> it's carrying, i guess, technically
<ddd> ok, that clears it up
<yxhuvud> bascially my code ended up generating 1 2 3 4 5 6 7 8 9 10 10 10 10 10 10 etc
<apeiros> ok, might be that "wrap over" is the wrong term. not sure.
bjarki has quit [Quit: bjarki]
<apeiros> I NEED PIZZA, LEMME GO!
* apeiros off
<robmiller> it's pretty consistent everywhere to be fair
<robmiller> >> 0b1.succ.to_s(2)
<eval-in_> robmiller => "10" (https://eval.in/104313)
<robmiller> >> 0b11.succ.to_s(2)
<eval-in_> robmiller => "100" (https://eval.in/104314)
dingus_khan has joined #ruby-lang
dingus_khan has quit [Read error: Connection reset by peer]
robmiller has quit [Quit: Leaving.]
oracal has joined #ruby-lang
<ljarvis> >> ?\M-\C-X
<eval-in_> ljarvis => "\x98" (https://eval.in/104315)
<apeiros> hah! pizza is here.
<ljarvis> yay
<ljarvis> i am also hungry
* ljarvis looks at apeiros
<apeiros> damn, some day this week somebody proofread some docs for me and I forgot whom :-S
<apeiros> ljarvis: it's in the oven
<ljarvis> that's a start
<ljarvis> apeiros: wait, pizza is here made me think you got a delivery
Pell has quit [Ping timeout: 264 seconds]
<apeiros> no, I went to the store and bought a pizza
<apeiros> and an energy drink
<ljarvis> smart
<apeiros> which I shouldn't have
<apeiros> pizza deliveries around here take ages
<ljarvis> how long is ages?
<apeiros> and are silly expensive
<apeiros> 30-40min
mehlah has joined #ruby-lang
<ljarvis> heh yeah same here
<ljarvis> usually longer
<ljarvis> sometimes 1hr+
<apeiros> I'd probably refuse to pay at 1hr+
<ljarvis> the pizza place is also like a 5 minute walk from my house, and they've taken that long before (yes, i usually walk there but there was once)
richardardrichar has quit [Quit: Textual IRC Client: www.textualapp.com]
_rgn has quit [Changing host]
_rgn has joined #ruby-lang
centrx has joined #ruby-lang
someperson has joined #ruby-lang
sepp2k has quit [Read error: Connection reset by peer]
<someperson> if i have an array of arrays, and the first column is already ordered/grouped, is there a good way to loop through this array efficiently
<someperson> i could do a while loop, but that's annoying
tcopp has joined #ruby-lang
<someperson> would a .group_by here produce similar results or something?
<centrx> "loop through"? What are you actually doing
sepp2k has joined #ruby-lang
<apeiros> you usually loop through an array using .each. but the rest of what you say makes me think something is missing from your description…
<apeiros> probably has something to do with your unexplained mention of ordering and group_by…
tcopp has quit [Ping timeout: 252 seconds]
<someperson> i have a DM query that has a 'group by moderator_id" that returns an array of structs, i want to iterate through the list without doing a Moderator.get(moderator_id) every time, i.e. cache it unless it changes
<_rgn> poll: the best tool for executing a command when files are modified
<someperson> _rgn: guard
* apeiros hands ljarvis a slice
pabloh has quit [Quit: Saliendo]
VTLob has quit [Quit: VTLob]
benlovell has joined #ruby-lang
madb055 has quit [Quit: Konversation terminated!]
madb055 has joined #ruby-lang
<centrx> someperson, There may be some eager loading functionality in DataMapper you can use
solars has joined #ruby-lang
<centrx> someperson, In ActiveRecord it is called #includes
fijimunkii has joined #ruby-lang
heavyhorse has quit [Quit: Computer has gone to sleep]
heavyhorse has joined #ruby-lang
mehlah has quit [Quit: Linkinus - http://linkinus.com]
yfeldblum has joined #ruby-lang
benlovell has quit [Quit: leaving]
mehlah has joined #ruby-lang
bawigga has quit []
rins has joined #ruby-lang
kirin` has quit [Ping timeout: 260 seconds]
saarinen has joined #ruby-lang
kirin` has joined #ruby-lang
apeiros is now known as apieros
riffraff has quit [Quit: Leaving]
apieros is now known as aperios
aperios is now known as apeiros
bawigga has joined #ruby-lang
micalexander has joined #ruby-lang
cmckni3 has joined #ruby-lang
heavyhorse has quit [Quit: Computer has gone to sleep]
heavyhorse has joined #ruby-lang
ikrima has joined #ruby-lang
Pell has joined #ruby-lang
leandros1 has joined #ruby-lang
bjarki has joined #ruby-lang
elliotec has quit []
heavyhorse has quit [Ping timeout: 264 seconds]
matp has quit [Remote host closed the connection]
leandrosnunes has quit [Read error: Operation timed out]
bjarki is now known as bjarkih
Pell has quit [Ping timeout: 260 seconds]
leandros1 has quit [Client Quit]
amerine has quit [Ping timeout: 260 seconds]
amerine has joined #ruby-lang
VTLob has joined #ruby-lang
bjarkih has left #ruby-lang [#ruby-lang]
ikrima has quit [Ping timeout: 264 seconds]
oracal has quit [Remote host closed the connection]
bjarkih has joined #ruby-lang
tcopp has joined #ruby-lang
oracal has joined #ruby-lang
dc5ala_ has quit [Quit: Ex-Chat]
Cakey has joined #ruby-lang
micalexander has quit [Remote host closed the connection]
micalexander has joined #ruby-lang
ruby-lang945 has joined #ruby-lang
tcopp has quit [Ping timeout: 252 seconds]
cmckni3 has quit [Read error: Connection reset by peer]
madb055 has quit [Ping timeout: 252 seconds]
cmckni3 has joined #ruby-lang
cnivolle has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
brettweavnet has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cnivolle_ has joined #ruby-lang
cnivolle has quit [Read error: Connection reset by peer]
micalexander has quit [Remote host closed the connection]
micalexander has joined #ruby-lang
<naquad> i have a hash like {x: [1, 2, 3, 4, 5, 6]} how do i make [[:x, 1], [:x, 2], [:x, 3], [:x, 4], ...] from it?
<_rgn> I have a script that downloads files and does things to those files. what would be the preferred way to achieve some type of parallelism, like keep downloading files while doing stuff?
<centrx> naquad, hash[:x].map { |n| [:x, n] }
<naquad> centrx, i don't know which keys are there
<naquad> and i'm looking for oneliner :)
<centrx> that is one line
<naquad> centrx, that is one line for each key
<centrx> Apply the same logic to the hash
<naquad> what?
joelroa_ has quit [Ping timeout: 272 seconds]
<centrx> naquad, Hash has a #map method too.
<naquad> and returns an array
<naquad> yes, i know
cnivolle_ has quit [Remote host closed the connection]
<naquad> this is the best i've got so far: {x: [1,2,3], y: [4,5,6]}.to_a.map {|a| a[1].zip([a[0]].cycle)}.flatten(1) #=> [[1, :x], [2, :x], [3, :x], [4, :y], [5, :y], [6, :y]]
micalexander has quit [Ping timeout: 252 seconds]
<naquad> even like this: {x: [1,2,3], y: [4,5,6]}.to_a.map {|a| a[1].zip([a[0]].cycle).map(&:reverse)}.flatten(1) but this looks to be overcomplicated
micalexander has joined #ruby-lang
<drocsid_> LoadError: Cannot load specified object - /usr/local/lib/ruby/gems/2.0/gems/nokogiri-1.6.1/lib/nokogiri/nokogiri.so
<drocsid_> I don't know what this is about, I'm trying to load nokogiri in irb
<drocsid_> require 'nokogiri'
micalexander has quit [Remote host closed the connection]
<drocsid_> I thought it worked fine before
<centrx> naquad, hash.map { |k, v| v.map { |n| [k, n] } }
<centrx> .flatten
micalexander has joined #ruby-lang
bawigga has quit []
<drocsid_> why?
bawigga has joined #ruby-lang
drocsid_ is now known as drocsid
<naquad> centrx, awesome! thanks. looks like i've got lost in arrays, what you've shown is exactly what i need
micalexander has quit [Read error: Connection reset by peer]
micalexander has joined #ruby-lang
<centrx> drocsid, Did the gem install complete successfully?
iliketurtles has joined #ruby-lang
<_rgn> centrx: thanks. i guess ruby threads are the way to go
malev_ has joined #ruby-lang
<drocsid> centrx: yeah I installed it days ago and it worked fine... Maybe I net to gem install again?
rue has joined #ruby-lang
<centrx> drocsid, What else has been done on the system since then that might have broken it?
<drocsid> nothing that I can think of. I don't think I've added any gems since it was working before. Haven't done any package upgrades or anything.
<drocsid> I'm reinstalling
_ht has quit [Remote host closed the connection]
micalexander has quit [Remote host closed the connection]
khaase has quit [Quit: Leaving...]
micalexander has joined #ruby-lang
aef_ has quit [Remote host closed the connection]
Atw has joined #ruby-lang
<drocsid> unable to convert "\x8C" from ASCII-8BIT to UTF-8 for lib/nokogiri/nokogiri.so, skipping
Cakey has quit [Ping timeout: 252 seconds]
iliketurtles has quit [Quit: zzzzz…..]
francisfish has joined #ruby-lang
micalexander has quit [Ping timeout: 265 seconds]
bjarkih has quit [Quit: bjarkih]
malev_ has quit [Ping timeout: 260 seconds]
malev has joined #ruby-lang
alexju has joined #ruby-lang
alexju has quit [Remote host closed the connection]
alexju has joined #ruby-lang
heavyhorse has joined #ruby-lang
joelroa has joined #ruby-lang
malev has quit [Client Quit]
malev has joined #ruby-lang
malev has quit [Client Quit]
<centrx> drocsid, That might just be a documentation item
ruby-lang325 has joined #ruby-lang
<ruby-lang325> una opregunt amigos
nichtdiebohne has quit [Quit: Linkinus - http://linkinus.com]
heavyhorse has quit [Ping timeout: 265 seconds]
Johz has quit [Ping timeout: 265 seconds]
malev has joined #ruby-lang
iliketurtles has joined #ruby-lang
nichtdiebohne has joined #ruby-lang
ikrima has joined #ruby-lang
malev has quit [Client Quit]
malev has joined #ruby-lang
malev has quit [Client Quit]
joelroa has quit [Ping timeout: 252 seconds]
malev has joined #ruby-lang
malev has quit [Client Quit]
<ruby-lang325> porque Rais¡ls '?
<centrx> Quod?
Pell has joined #ruby-lang
yxhuvud has quit [Quit: Leaving]
yxhuvud has joined #ruby-lang
wmoxam_ is now known as wmoxam
wmoxam has quit [Changing host]
wmoxam has joined #ruby-lang
Pell has quit [Ping timeout: 252 seconds]
malev has joined #ruby-lang
hhatch has quit [Ping timeout: 264 seconds]
lavice_ has joined #ruby-lang
tcopp has joined #ruby-lang
<drocsid> WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.9.0
<drocsid> => true
dingus_khan has joined #ruby-lang
<yorickpeterse> ^C
mehlah has quit [Quit: Leaving...]
ruby-lang325 has quit [Ping timeout: 245 seconds]
tcopp has quit [Ping timeout: 252 seconds]
nathanstitt has joined #ruby-lang
marcofernandez has quit [Ping timeout: 245 seconds]
bawigga has quit []
malev has quit [Quit: Hasta la vista!]
bawigga has joined #ruby-lang
malev has joined #ruby-lang
solars has quit [Ping timeout: 252 seconds]
phansch has quit [Quit: WeeChat 0.4.2]
pkrnj has joined #ruby-lang
Pell has joined #ruby-lang
MichD is now known as michd
malev has quit [Client Quit]
malev has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
jcs222 has joined #ruby-lang
malev has quit [Client Quit]
malev has joined #ruby-lang
saarinen has quit [Quit: saarinen]
dingus_khan has quit [Remote host closed the connection]
malev has quit [Client Quit]
ledestin has quit [Quit: ledestin]
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
symm- has quit [Quit: Leaving...]
iliketurtles has quit [Quit: zzzzz…..]
elliotec has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
elliotec has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 265 seconds]
asahi has left #ruby-lang [#ruby-lang]
saarinen has joined #ruby-lang
fijimunkii has quit [Read error: Connection reset by peer]
elliotec has joined #ruby-lang
brettweavnet has joined #ruby-lang
mehlah has joined #ruby-lang
havenwood has quit []
ledestin has joined #ruby-lang
elliotec has quit [Remote host closed the connection]
clamstar has quit [Quit: ZNC - http://znc.in]
fijimunkii has joined #ruby-lang
robmiller has joined #ruby-lang
iliketurtles has joined #ruby-lang
elliotec has joined #ruby-lang
dingus_khan has joined #ruby-lang
heavyhorse has joined #ruby-lang
micalexander has joined #ruby-lang
saarinen has quit [Quit: saarinen]
nichtdiebohne has quit [Quit: Linkinus - http://linkinus.com]
yalue has quit [Quit: Leaving]
Skitsu`work has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
Skitsu`work has quit [Client Quit]
mistym has quit [Remote host closed the connection]
micalexander has quit [Ping timeout: 260 seconds]
mistym has joined #ruby-lang
heavyhorse has quit [Ping timeout: 265 seconds]
Coincidental has joined #ruby-lang
<jaimef> if I have an array of env vars and want to instantiate a local variable of the same name, how might one do that?
<drbrain> foo = ENV['foo']
<jaimef> destructuring bind
x0f_ has joined #ruby-lang
<drbrain> sorry, misread
<jaimef> [:foo, :bar, :baz].each {|v| v = ENV['v'] }
<jaimef> yeah.
<drbrain> shell, home = ENV.values_at "SHELL", "HOME"
prc has joined #ruby-lang
lavice_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
devgiant_ has joined #ruby-lang
<jaimef> that's nice, thanks
x0f has quit [Ping timeout: 272 seconds]
devgiant has quit [Ping timeout: 265 seconds]
MartynKeigher has joined #ruby-lang
eugmill has quit [Remote host closed the connection]
tcopp has joined #ruby-lang
<jaimef> "#{v}".to_variable = ENV[v];; like this
<apeiros> jaimef: the local variable system is not a hash
<jaimef> String->intern nice
<jaimef> apeiros: well I have an array of specific vars I need to instantiate
<drbrain> jaimef: ruby doesn't work that way
<apeiros> jaimef: then do it as drbrain showed you
<jaimef> ahh eval
<apeiros> won't help
richardardrichar has joined #ruby-lang
<apeiros> you can't create new local variables via eval
tcopp has quit [Ping timeout: 252 seconds]
<apeiros> because - you may guess it - the local variable system *is* *not* *a* *Hash*
<jaimef> Reference.new
<jaimef> apeiros: it's a dynamic list
<apeiros> jaimef: then *use a hash*
<drbrain> jaimef: what are you trying to do?
<apeiros> seriously
<apeiros> if it's dynamic, there's no point in using *local* variables
<drbrain> >> eval("a = 1"); p a
<eval-in_> drbrain => undefined local variable or method `a' for main:Object (NameError) ... (https://eval.in/104403)
<jaimef> variable capture
elliotec has quit [Remote host closed the connection]
brettweavnet has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<drbrain> what does that mean?
<centrx> jaimef, What is the point of it?
dingus_khan has joined #ruby-lang
<centrx> You can use instance_variable_set, but why not just use the ENV hash?
<toretore> he's trying to do something he's used to in another language
<centrx> I hope it's not PHP
Elico has joined #ruby-lang
<robmiller> smells awfully like PHP's extract
<centrx> Apparently in PHP, you can call functions as strings, like obj->'foo'() or 'obj'->foo()
<jaimef> yeah matz other lang
<jaimef> guess he did not copy that
elliotec has joined #ruby-lang
<centrx> I think you are confusing PHP with Perl.
matp has joined #ruby-lang
elliotec has quit [Remote host closed the connection]
elliotec has joined #ruby-lang
saarinen has joined #ruby-lang
saarinen has quit [Client Quit]
heavyhorse has joined #ruby-lang
brettweavnet has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
jonahR has joined #ruby-lang
VTLob has quit [Quit: VTLob]
brettweavnet has quit [Client Quit]
heavyhorse has quit [Ping timeout: 265 seconds]
vlad_starkov has joined #ruby-lang
postmodern has joined #ruby-lang
mistym has quit [Remote host closed the connection]
vlad_starkov has quit [Read error: Connection reset by peer]
heavyhorse has joined #ruby-lang
joelroa has joined #ruby-lang
kitak has joined #ruby-lang
jgpawletko has quit [Quit: jgpawletko]
ratmav has quit [Quit: Leaving]
heavyhorse has quit [Ping timeout: 264 seconds]
cnivolle has joined #ruby-lang
nathanstitt has joined #ruby-lang
<ljarvis> hrm
francisfish has quit [Remote host closed the connection]
arBmind has joined #ruby-lang
dbussink has quit [Read error: Operation timed out]
dbussink has joined #ruby-lang
gix- has quit [Ping timeout: 248 seconds]
tcopp has joined #ruby-lang
elliotec has quit [Remote host closed the connection]
francisfish has joined #ruby-lang
CaptainJet has joined #ruby-lang
gix has joined #ruby-lang
elliotec has joined #ruby-lang
elliotec has quit [Remote host closed the connection]
elliotec has joined #ruby-lang
<imperator> just installed an openbsd vm - holy barebones batman
tcopp has quit [Ping timeout: 272 seconds]
Pell has quit [Remote host closed the connection]
francisfish has quit [Ping timeout: 252 seconds]
milhite has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ljarvis> srsly
vpretzel has quit [Quit: Adios!]
Pell has joined #ruby-lang
aminRX has joined #ruby-lang
<jaimef> imperator: why?
<jaimef> imperator: theo says emulation is insecure :P
milhite has joined #ruby-lang
milhite has quit [Max SendQ exceeded]
Pell has quit [Remote host closed the connection]
milhite has joined #ruby-lang
patjoh has joined #ruby-lang
agrinb has joined #ruby-lang
dorei has joined #ruby-lang
<imperator> for cross-platform development
<imperator> mostly for sys-proctable
saarinen has joined #ruby-lang
<jaimef> ahhh, yeah, you might be stuck parsing ksyms in /dev/kmem
nathanstitt has quit [Quit: I growing sleepy]
<jaimef> intersting idea. should make a lua kernel module to do that on netbsd
<agrinb> hi everyone, my buddy told me that I can ask for help here. I'm a beginner, are there any "rules" for asking for help?
<imperator> agrinb, pretty much just ask away
<jaimef> just ask, don't paste more than a line, use pastie sites, showing code and explaing what you are trying to do helps most. don't ask to just ask.. the usual :P
<agrinb> great, thanks
nathanstitt has joined #ruby-lang
<jaimef> instance_variable_set is what I needed! instance variables support the lisp like construct
nathanstitt has quit [Read error: Connection reset by peer]
nathanstitt has joined #ruby-lang
nathanstitt has quit [Read error: Connection reset by peer]
mehlah has quit [Quit: Leaving...]
* centrx mentioned that an hour ago
<jaimef> centrx: just saw that. thamks
iliketurtles has quit [Quit: zzzzz…..]
<jaimef> the reason for not using the ENV hash is purely syntatic
nathanstitt has joined #ruby-lang
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
<agrinb> trying to print MMMMM using a while loop https://gist.github.com/anonymous/9145336
someperson has quit [Ping timeout: 272 seconds]
cnivolle has quit [Remote host closed the connection]
<imperator> heh, yeah, theo....interesting dude
<ljarvis> agrinb: str + "M" just creates a new string, you never do anything with it
mehlah has joined #ruby-lang
<ljarvis> agrinb: you want += which would create a new string with "M" on the end
<jaimef> imperator: yeah... we like him, he creates lots of developers who come to netbsd :P
<imperator> ENV isn't a real hash, is it?
<ljarvis> agrinb: OR, you want << which would append "M" to the existing string
<imperator> last time i looked it was some weird hash-like object
<ljarvis> agrinb: hint: you want the latter
kitak has quit [Remote host closed the connection]
heavyhorse has joined #ruby-lang
saarinen has quit [Quit: saarinen]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agrinb has quit [Read error: No route to host]
agrinb_ has joined #ruby-lang
nathanstitt has quit [Ping timeout: 265 seconds]
pr0ton has joined #ruby-lang
<ljarvis> imperator: yeah it's not a hash
ulisescab has quit [Ping timeout: 252 seconds]
eugmill has joined #ruby-lang
<ljarvis> g'night
ledestin has quit [Ping timeout: 252 seconds]
ledestin has joined #ruby-lang
vlad_starkov has joined #ruby-lang
eugmill has quit [Remote host closed the connection]
<jaimef> [ :foo, :bar, :baz].each {|v| instance_variable_set("@#{v.to_s}", ENV[v.to_s])} # PERFECT! thanks centrx
<centrx> awful
<jaimef> I know! it's soo pretty
mistym has joined #ruby-lang
<jaimef> vs 20k ENV['foo'] all over the code
vlad_starkov has quit [Read error: Connection reset by peer]
<drbrain> jaimef: you don't need that first v.to_s
<drbrain> #{} does that for you
pr0ton has quit [Quit: pr0ton]
<jaimef> yeah left over
<drbrain> you may as well %w[foo bar baz] and get rid of the second .to_s also
<drbrain> otherwise you're creating symbols for no purpose
<jaimef> well this is an example to demonstrate. not th eactual code
<jaimef> now to add more ()'s
richardardrichar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
richardardrichar has joined #ruby-lang
saarinen has joined #ruby-lang
<jaimef> once I am sane I will realize how bad an idea this was
<jaimef> thanks for the feedback.
* centrx weeps
Burgestrand has joined #ruby-lang
rins has quit [Remote host closed the connection]
richardardrichar has quit [Read error: Connection reset by peer]
eugmill has joined #ruby-lang
<drbrain> jaimef: we tried!
smashwilson has quit [Quit: Leaving]
* jaimef pats centrx on the back
ratmav has joined #ruby-lang
<jaimef> well it's this or I have to do away with using ENV vars and use a yaml
hinbody has joined #ruby-lang
Burgestrand has quit [Quit: Burgestrand]
Burgestrand has joined #ruby-lang
nisstyre has quit [Ping timeout: 245 seconds]
Burgestrand has quit [Client Quit]
Burgestrand has joined #ruby-lang
Burgestrand has quit [Client Quit]
Burgestrand has joined #ruby-lang
agrinb_ has quit [Remote host closed the connection]
heavyhorse has quit [Ping timeout: 265 seconds]
agrinb has joined #ruby-lang
jperry_ has joined #ruby-lang
dingus_khan has quit [Read error: Connection reset by peer]
cnivolle has joined #ruby-lang
dingus_khan has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
jperry_ has quit [Client Quit]
dik_dak has quit [Quit: Leaving]
elliotec has quit [Remote host closed the connection]
clamstar has joined #ruby-lang
dingus_khan has joined #ruby-lang
ratmav has quit [Quit: Leaving]
saarinen has quit [Quit: saarinen]
specialblend has joined #ruby-lang
ratmav has joined #ruby-lang
ratmav has quit [Read error: Connection reset by peer]
tcopp has joined #ruby-lang
jalcine is now known as jacky
agrinb has quit [Remote host closed the connection]
tcopp has quit [Ping timeout: 260 seconds]
bzalasky has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
cored has quit [Ping timeout: 265 seconds]
aminRX has quit [Quit: aminRX]
cored has joined #ruby-lang
RobertBirnie has quit [Ping timeout: 252 seconds]
johnmilton has quit [Read error: Connection reset by peer]
oracal has quit [Quit: Leaving]
nathanstitt has joined #ruby-lang
Melpaws has joined #ruby-lang
jhass is now known as jhass|off
nisstyre has joined #ruby-lang
milhite has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cored has quit [Ping timeout: 252 seconds]