jhass changed the topic of #ruby to: Please register to talk, /msg NickServ HELP || Rules & more: http://ruby-community.com || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
roolo has quit [Ping timeout: 240 seconds]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lucyinthesky has joined #ruby
craysiii has quit [Remote host closed the connection]
_djbkd has quit [Remote host closed the connection]
Asher has joined #ruby
<Porfa> i'll try to explain this the best way i can… i was learning mechanize fill some forms, but i guess some of them are in .js and mecha can't handle that.. so someone was nice enough to redirect me to watir because it can run in console pretty lightly (i just have access to a linux terminal no X windows system) so i went on to install watir gems and the headless gem, the same way i installed every other gem in my life
tester__ has quit [Remote host closed the connection]
<Porfa> and when i got to require the headless gem, it spits out errors, so I'm really clueless on what you are saying about showing the code.. there is no code at all at this point i guess, just trying to install a gem then process to learn how to use it
<Aeyrix> Obfuscate:
<Aeyrix> Ox
<Aeyrix> fuck
<Aeyrix> where's Ox
baweaver has quit [Remote host closed the connection]
<zenspider> as I've already shown you... I can install and require headless just fine. I need you to show me how it doesn't. exactly.
Cache_Money has quit [Quit: Cache_Money]
n_blownapart has quit []
<Porfa> explain me how i can do that, and i most certainly will!!
<BraddPitt> Porfa paste the error/stack trace you're getting
<BraddPitt> we need to see the error in order to help
Asher has quit [Client Quit]
jgt has quit [Ping timeout: 246 seconds]
bricker has quit [Ping timeout: 246 seconds]
_djbkd has joined #ruby
<zenspider> we ALSO need the actual reproduction
<Porfa> i give up
<BraddPitt> ?example
<ruboto> Please provide us with an example of valid input for your problem, the output that you're getting, and the output that you were expecting.
<Porfa> the output I'm expecting is 'True'
lucyinthesky has quit [Quit: Leaving]
stardiviner has joined #ruby
helpa has quit [Remote host closed the connection]
<Porfa> but all i get is an error about not being able to load the gem, like i posted earlier on the gist
bricker has joined #ruby
<zenspider> Porfa: well then it is easy. because you misspelled it.
<zenspider> THIS is why I want to see the ACTUAL reproduction... and not some typo as you type it into IRC
<Porfa> show me a place where i can post a screenshot and i will print screen this so you can see actually what i a seeing
<BraddPitt> imgur.com
iamninja has joined #ruby
tomdalling has quit [Ping timeout: 244 seconds]
Asher has joined #ruby
helpa has joined #ruby
sankaber has joined #ruby
bricker has quit [Client Quit]
christiandsg has joined #ruby
cjbottaro has joined #ruby
n_blownapart has joined #ruby
stardiviner has quit [Client Quit]
j_mcnally has joined #ruby
j_mcnally has quit [Max SendQ exceeded]
<Porfa> BraddPitt: zenspider
<nofxx> there's a way to run mechanize with phantomjs iirc Porfa , if not check poltergeist
j_mcnally has joined #ruby
<nofxx> phantom will be way faster and better at running JS
Cache_Money has joined #ruby
<Radar> Porfa: gem install headless then try that command again
n_blownapart has quit [Client Quit]
iamninja has quit [Ping timeout: 244 seconds]
<zenspider> `sudo which gem`; `which irb`
<Porfa> ERROR: While executing gem ... (Gem::FilePermissionError)
<Porfa> You don't have write permissions for the /usr/local/lib/ruby/gems/2.2.0 directory.
<Porfa> I'm not using rvm...
northfurr has quit [Quit: northfurr]
IrishGringo has quit [Ping timeout: 244 seconds]
<zenspider> Porfa: ^^
<Porfa> just one ruby, one ruby to rule them all
grenierm has joined #ruby
<zenspider> you really like resisting getting help, don't you?
FernandoBasso has quit [Quit: May the force be with you.]
<zenspider> I give up. I have better stuff to hack on than you
<Porfa> me? ahha I'm like the "asshole" who's always asking for help around here
denisemccoy has joined #ruby
rubie has quit [Remote host closed the connection]
<jesterfraud> asking for help != accepting help :P
<Porfa> whats the deal with this gem, jizz mate
<Porfa> do you want root access to this machine?
<BraddPitt> wouldn't hurt
<BraddPitt> :^)
northfurr has joined #ruby
<Porfa> hahaha
<Porfa> nice hat, nice color
christiandsg has quit [Ping timeout: 265 seconds]
stardiviner has joined #ruby
j_mcnall_ has joined #ruby
<Porfa> this is lame and stupid i never had such problems installing a gem
<Radar> Porfa: [10:12:28] <zen>`sudo which gem`; `which irb`
<Radar> What's the output of those two commands?
<Porfa> usr/local/bin/gem
<Porfa> usr/local/bin/irb
<Radar> sudo gem install headless
mleung has quit [Quit: mleung]
<Radar> That'll fix the temporary problem
<Radar> You should probably install a Ruby using chruby + ruby-install so that you don't have to sudo install everything
j_mcnally has quit [Ping timeout: 264 seconds]
<Porfa> unfortunately i already done that 5 times
<Porfa> (the sudo gem install headless )
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dgutierrez1287 has joined #ruby
grenierm has quit [Quit: grenierm]
Ropeney has joined #ruby
<Porfa> I'm using ruby for just two months now, and i've installed all sorts of gems and they all worked, the headless one is being a pain in the ass
<Porfa> Successfully installed headless-2.2.0
<Porfa> Parsing documentation for headless-2.2.0
<Porfa> Done installing documentation for headless after 0 seconds
<Porfa> 1 gem installed
<Radar> Fun.
<Radar> So install a Ruby using chruby + ruby-install and then see how you go after that.
<nofxx> or just create a ~/.gemrc file with:
<nofxx> gem: --user-install
<Porfa> echo "gem: --user-install" > ~/.gemrc
baweaver has joined #ruby
<Porfa> something like that nofxx ?
<nofxx> and add ~/.gem/ruby/2.2.0/bin to your $PATH ... as god intended
<nofxx> Porfa, yeah, need to reinstall the gems there now.
northfurr has quit [Quit: northfurr]
rehat has joined #ruby
northfurr has joined #ruby
<Porfa> oops just f** my path, everything's gone
<Porfa> I'm going to sleep
<shevy> wife says so?
denisemccoy has quit [Remote host closed the connection]
<Porfa> head says so
<Porfa> and rm -rf * says so
<Porfa> i just fkec my path
<Porfa> i can't even get nano to edit my bashrc
<Porfa> i have no idea how i can delete a line i added to bashrc now
<Porfa> and i don't have another users on this box so...
<jhass> /usr/bin/nano ~/.bashrc ?
<jhass> fullpath is not a thing on your system?
agocorona has quit [Ping timeout: 246 seconds]
lucyinthesky has joined #ruby
s2013 has joined #ruby
<Porfa> jhass: how do i run nano now that i am on /usr/bin/ ?
pauly_oc has quit [Ping timeout: 272 seconds]
<jhass> what?
<Porfa> yeah, you heard me
<Porfa> how do i run it, because when i type nano it errors out
<jhass> who sad you should go to (whatever that means in your world) /usr/bin ?
replay has quit []
<jhass> /usr/bin/nano ~/.bashrc
<jhass> it's a command
<jhass> copy paste the entire line
<Porfa> awww thank you! :)
JoshGlzBrk has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
<Porfa> dammit, i get the same error when requiring headless
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
mordocai has quit [Remote host closed the connection]
northfurr has quit [Quit: northfurr]
<Porfa> (and yeah, it's installed)
hashrocket has quit [Quit: Connection closed for inactivity]
dgutierrez1287 has quit [Remote host closed the connection]
dgutierrez1287 has joined #ruby
minimuffins has quit [Ping timeout: 255 seconds]
<Porfa> lol...
saddad has joined #ruby
<Porfa> every gem i require that are on that folder i get a "true" as output, but when i require headless, it errors out
<Porfa> why me
Juanchito has quit [Quit: Connection closed for inactivity]
Cache_Money has quit [Quit: Cache_Money]
<Porfa> is it because of my wife shevy ?
linuxboy_ has quit [Remote host closed the connection]
safety_cut has quit [Remote host closed the connection]
northfurr has joined #ruby
linuxboytoo has joined #ruby
dopamean1 has quit [Ping timeout: 240 seconds]
nertzy has quit [Quit: This computer has gone to sleep]
Xaitec has joined #ruby
_djbkd has quit [Remote host closed the connection]
oo_ has joined #ruby
siemprefresco has joined #ruby
pyon has quit [Quit: fix config]
Asher has quit [Quit: Leaving.]
pyon has joined #ruby
linuxboytoo has quit [Read error: No route to host]
ttttttrev has joined #ruby
<shevy> she called you away from IRC the other day
mordocai has joined #ruby
<Porfa> to eat dinner…!
maletor has joined #ruby
<Porfa> i just want to rm -rf everything
dgutierrez1287 has quit [Remote host closed the connection]
graydot has joined #ruby
<Porfa> it's like a drug you know
<Porfa> when things stop making sense
<Porfa> i just wanna rm -rf *
<jhass> better get safe, dd if=/dev/zero of=/dev/sda
<Porfa> haha
<Porfa> or maybe i could just uninstall ruby and start learning python
<Porfa> but the name python is so lame
<Porfa> i could never learn something with that name
<Porfa> maybe if we were in the 80's i could
_djbkd has joined #ruby
<Aeyrix> dd if=/dev/urandom of=/dev/sda
<Aeyrix> Developer do put a random cd key onto your hard drive.
<Porfa> srslry, why couldn't mechanize just handle JS
yfeldblum has quit [Remote host closed the connection]
<Porfa> now i need to learn a new gem, watir and i can't even do it because I'm stuck over ssh to a remote box where i do my work.
<Porfa> so headless would be perfect.. BUT no.
<Porfa> stupid gem doesnt load
<Porfa> d
yfeldblum has joined #ruby
<Porfa> fuck this I'm going back to being a plumber
lucyinthesky has quit [Quit: Leaving]
sevenseacat has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yqt has quit [Ping timeout: 240 seconds]
tomdalling has joined #ruby
bsdbofh has quit [Quit: bsdbofh]
<shevy> lol
<shevy> all because of javascript?
<baweaver> it does have that effect
devoldmx has joined #ruby
jaycee has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maletor has quit [Quit: Computer has gone to sleep.]
<jhass> not too dumb, people will always produce enough shit
<shevy> beavers do know their things about that dam plumbing
<pipework> shevy: If I had a choice between following in the footsteps of the kind of people who like javascript (me) and sharing a profession with a certain Italian guy by the name of Luigi, I'd go for the latter.
<pipework> If my name ain't pipework
<pipework> (it is)
<shevy> now you are whaling on javascript again
<shevy> I like things like jquery but I still can't stand javascript
<Porfa> i love javascript, i couldn't live without that snowfall.js on geocities 1999
<shevy> that was oldschool javascript
<shevy> nowadays we have serious asm.js
<Porfa> hahaha
<shevy> things have become more complicated :(
tkuchiki has joined #ruby
<pipework> shevy: Every time I whale I whale.
bsdbofh has joined #ruby
cmckee has joined #ruby
<pipework> Porfa: That was literally the first thing I ever did for a client back in the day with JS.
<Porfa> haahahahah
<shevy> damn... almost 20 years ago
<Porfa> see? told ya
<pipework> Back then it wasn't snowfall.js it was copypaste this bullshit into your bullshit and ftp that bullshit on up.
gusrub has quit [Quit: Leaving]
<shevy> haha I found a jquery variant ... https://github.com/loktar00/JQuery-Snowfall let's see if I can get it to work with my ruby .cgi scripts
<pipework> single page applications meant something else in that era.
<nofxx> yeah, now we got snowfall with 3d accelerated support.
devoldmx has quit [Ping timeout: 240 seconds]
<nofxx> 4k pipelines, one for each flock
leafybas_ has joined #ruby
leafybasil has quit [Read error: Connection reset by peer]
<pipework> It even replicates the snowfall with different realtime locations.
linuxboytoo has joined #ruby
<shevy> ok
mordocai has quit [Remote host closed the connection]
<shevy> I just realized that those snowflakes are a usability disaster
<shevy> I can't concentrate on anything else there
<nofxx> snowfall is nothing shevy, remeber those mouse followers?
<pipework> shevy: That's a feature if your company website has nothing worth concentrating on and you don't want anyone to know it.
<pipework> Shit, it's like I've gone back in time, only this time I'm a lot more jaded and cynical :(
<pipework> shevy: That trick is called "Hiding in plain site"
<shevy> nofxx mice?
denisemccoy has joined #ruby
jenrzzz has joined #ruby
<shevy> pipework yeah... somehow a lot of enthusiasm of the youth passes away in time :(
<Porfa> the glitter following the mouse pointer
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> I was so excited back when someone else used <font size=36> in a forum
RegulationD has joined #ruby
<nofxx> shevy, the thing next to yr keyboard? how do you call
SuMo_D has quit [Remote host closed the connection]
<shevy> oh god I already hate this mouse
dgutierrez1287 has joined #ruby
<shevy> nofxx AK-47
mordocai has joined #ruby
<zenspider> hrm... I'm trying to write a memsize function for a TypedData thingy... but the library I'm wrapping has actually made this _entirely_ opaque. The struct decl is in a C file and the header only typedefs a forward decl.
SuMo_D has joined #ruby
<nofxx> I said: webgl and yeah, of course, now days... parallax http://amino-studio.com/envato-preview/snow-3d-christmas-jquery-plugin/
s2013 has joined #ruby
<zenspider> as such, sizeof(struct _TTF_Font) is entirely unhappy.
<nofxx> shevy, =D
ecnalyr has joined #ruby
<zenspider> but at this point, I'm having a hard time knowing what to write for memsize
<zenspider> can't return "more than zero"
woodruffw has quit [Ping timeout: 250 seconds]
hazelux has quit []
<Porfa> i pay a beer to whoever help me getting the headless thing running tomorrow, i'll send munnies by paypal, swear on my balls
<Porfa> now i have to sleep, the laptop almost fell from my lap right now
<pipework> remove head, miaow is headless.
<Porfa> laters and have fun doing javascript snow
<pipework> simple yet effective
Porfa has quit [Quit: back to plumbing!!]
s2013 has quit [Client Quit]
rbowlby has quit [Remote host closed the connection]
<nofxx> pipework, rm -rf being solving issues since 71', but that being solving issues since b.C.
RegulationD has quit [Ping timeout: 250 seconds]
SuMo_D has quit [Ping timeout: 246 seconds]
tkuchiki has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
denisemccoy has quit [Remote host closed the connection]
ecnalyr has quit [Ping timeout: 272 seconds]
woodruffw has joined #ruby
deol has joined #ruby
dr3w has quit [Ping timeout: 255 seconds]
Xaitec has quit [Quit: Leaving]
michaeldeol has quit [Ping timeout: 240 seconds]
northfurr has quit [Quit: northfurr]
nkts has quit [Ping timeout: 244 seconds]
braidn has quit [Quit: ZNC - http://znc.in]
mozzarella has joined #ruby
bootstrappm has quit [Ping timeout: 244 seconds]
deol has quit [Ping timeout: 256 seconds]
debajit has joined #ruby
Guest8758 has quit [Ping timeout: 260 seconds]
<debajit> Simple question: When I'm defining a constant inside a class, I want to call a method (which returns the constant's value). How can I call this method when assigning the constant? See the code here https://gist.github.com/debajit/0aed54eea159714558dc
zenguy_pc has quit [Read error: Connection reset by peer]
Asara has joined #ruby
Asara has left #ruby [#ruby]
bruno- has joined #ruby
zenguy_pc has joined #ruby
bruno- has quit [Ping timeout: 265 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
saddad has quit [Ping timeout: 272 seconds]
sdwrage has joined #ruby
bootstrappm has joined #ruby
clarkenciel has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
bootstrappm has left #ruby [#ruby]
dgutierrez1287 has quit [Remote host closed the connection]
northfurr has joined #ruby
arescorpio has joined #ruby
unreal has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Cache_Money has joined #ruby
unreal_ has quit [Ping timeout: 244 seconds]
QKO has quit [Remote host closed the connection]
ghr has joined #ruby
Cache_Money has quit [Client Quit]
ebbflowgo has joined #ruby
Eiam has joined #ruby
<shevy> replace self.class.file_path with Updater.file_path
<shevy> and move "def self.file_path" on top of the file
QKO has joined #ruby
SimpleBIT has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mordocai has quit [Remote host closed the connection]
<shevy> you'll get the value when you use: puts Updater.file_path at the end
<shevy> don't think you can get the return value from within def initialize as you do there right now
ghr has quit [Ping timeout: 260 seconds]
freerobby has joined #ruby
TheNet has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
yeticry has quit [Ping timeout: 246 seconds]
Ox0dea has joined #ruby
dr3w has joined #ruby
yeticry has joined #ruby
<Ox0dea> Worth considering, anyhow.
tkuchiki has joined #ruby
petricore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roolo has joined #ruby
mordocai has joined #ruby
SimpleBIT has quit []
ebbflowgo has left #ruby [#ruby]
michael_mbp has joined #ruby
mordocai has quit [Remote host closed the connection]
roolo has quit [Ping timeout: 252 seconds]
Asher has joined #ruby
Asher has quit [Ping timeout: 256 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
mordocai has joined #ruby
sdwrage has joined #ruby
g3funk has joined #ruby
devoldmx has joined #ruby
bronson has quit [Remote host closed the connection]
Asher has joined #ruby
sdwrage has quit [Client Quit]
tmtwd has quit [Ping timeout: 265 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
rbowlby has joined #ruby
ruby546 has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
bigredboots has joined #ruby
Asher has quit [Client Quit]
towski__ has quit [Remote host closed the connection]
northfurr has quit [Quit: northfurr]
cmckee has quit [Quit: cmckee]
rubie has joined #ruby
CpuID has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
cmckee has joined #ruby
Asher has joined #ruby
jenrzzz has joined #ruby
SuMo_D has joined #ruby
SuMo_D has quit [Remote host closed the connection]
SuMo_D has joined #ruby
allcentury has quit [Ping timeout: 255 seconds]
Mendenhall has quit [Ping timeout: 256 seconds]
jcoe has joined #ruby
allcentury has joined #ruby
rubie has quit [Ping timeout: 265 seconds]
amystephen has quit [Quit: amystephen]
amystephen has joined #ruby
jesterfraud has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hinbody has quit [Quit: leaving]
ruby546 has quit [Ping timeout: 246 seconds]
j_mcnall_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
iamninja has joined #ruby
centrx has joined #ruby
allcentury has quit [Ping timeout: 244 seconds]
amystephen has quit [Client Quit]
northfurr has joined #ruby
christiandsg has joined #ruby
saddad has joined #ruby
iamninja has quit [Ping timeout: 244 seconds]
j_mcnally has joined #ruby
diegoviola has joined #ruby
denisemccoy has joined #ruby
auzty has joined #ruby
petricore has joined #ruby
cmckee has quit [Quit: cmckee]
dopamean_ has joined #ruby
Asher has quit [Quit: Leaving.]
yatish27 has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]
s2013 has joined #ruby
northfurr has quit [Quit: northfurr]
Feyn has joined #ruby
shinnya has quit [Ping timeout: 256 seconds]
bruno- has joined #ruby
bruno- is now known as Guest95478
TheNet has joined #ruby
Asher has joined #ruby
Asher is now known as Guest28672
Guest28672 has quit [Read error: Connection reset by peer]
cmckee has joined #ruby
d2dchat has joined #ruby
Guest95478 has quit [Ping timeout: 260 seconds]
rubie has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pauly_oc has joined #ruby
dorei has quit []
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
j_mcnally has joined #ruby
agent_white has joined #ruby
pyon has quit [Read error: Connection reset by peer]
pyon has joined #ruby
yeticry has quit [Ping timeout: 246 seconds]
johnflux has quit [Ping timeout: 256 seconds]
baweaver has joined #ruby
Asher- has joined #ruby
linuxboytoo has quit [Remote host closed the connection]
banjara has quit [Quit: Leaving.]
joneshf-laptop has quit [Ping timeout: 256 seconds]
eiGHttt has joined #ruby
yeticry has joined #ruby
Asher- has quit [Client Quit]
ghr has joined #ruby
northfurr has joined #ruby
choke has joined #ruby
denisemccoy has quit []
_blizzy_ has joined #ruby
banjara has joined #ruby
ghr has quit [Ping timeout: 260 seconds]
jyulliano has joined #ruby
molawson has joined #ruby
abara has joined #ruby
abara has left #ruby [#ruby]
sdwrage has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
rushed has joined #ruby
_blizzy_ has joined #ruby
joneshf-laptop has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
graydot has quit [Quit: graydot]
mamercad has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
bigredboots has quit [Remote host closed the connection]
jenrzzz has joined #ruby
sdfgsdfg has joined #ruby
Xoro has quit [Quit: Leaving]
diegoviola has quit [Quit: WeeChat 1.3]
dr3w has quit [Ping timeout: 244 seconds]
bigredboots has joined #ruby
ecnalyr has joined #ruby
jonee has quit [Ping timeout: 246 seconds]
cmckee has quit [Quit: cmckee]
dr3w has joined #ruby
johnflux has joined #ruby
johnflux has joined #ruby
jesterfraud has joined #ruby
devoldmx has joined #ruby
ecnalyr has quit [Ping timeout: 245 seconds]
bronson has joined #ruby
EllisTAA has joined #ruby
Asher has joined #ruby
Torrieri has joined #ruby
baweaver has left #ruby [#ruby]
baweaver has joined #ruby
rubie has quit [Remote host closed the connection]
EllisTAA has quit [Client Quit]
<baweaver> shevy: y u no in offtopic?
devoldmx has quit [Ping timeout: 244 seconds]
bronson has quit [Ping timeout: 250 seconds]
<shevy> baweaver they start to play unicode hangman upon my arrival :(
irctc144 has joined #ruby
jesterfraud has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
millerti has joined #ruby
irctc144 has left #ruby [#ruby]
RegulationD has joined #ruby
jesterfraud has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
<mozzarella> damn
<mozzarella> that's rough
irctc602 has joined #ruby
jhack has quit [Ping timeout: 264 seconds]
<irctc602> hello im having trouble with cocoapods but i feel like its a ruby installation problem, this is what i get when i try to do any 'pod' command: -bash: /usr/local/bin/pod: /usr/local/opt/ruby/bin/ruby: bad interpreter: No such file or directory
braincrash has quit [Quit: bye bye]
jesterfraud has quit [Client Quit]
<shevy> lol
<baweaver> irctc602: did you do anything to your default ruby?
arup_r has joined #ruby
<baweaver> ls -la /usr/local/opt | grep ruby
<irctc602> got this back: lrwxr-xr-x 1 FarhanSyed admin 29 Jun 3 01:16 ruby-build -> ../Cellar/ruby-build/20150519
RegulationD has quit [Ping timeout: 244 seconds]
arup_r has quit [Remote host closed the connection]
<baweaver> hm, so not in there
<baweaver> ruby -v ?
Eiam has joined #ruby
<irctc602> ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin14]
bweston92 has quit [Read error: Connection reset by peer]
bweston92 has joined #ruby
<irctc602> ive tried uninstalling cocoapods multiple times and reinstalling it and this same issue is occurring.
Seich has quit [Ping timeout: 246 seconds]
iateadonut has joined #ruby
Seich has joined #ruby
clarkenciel has quit [Remote host closed the connection]
jonee has joined #ruby
<baweaver> try brew install ruby
christiandsg has joined #ruby
braincrash has joined #ruby
dr3w has quit [Ping timeout: 256 seconds]
linuxboytoo has joined #ruby
<irctc602> thanks it works
arup_r has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arup_r has quit [Remote host closed the connection]
BTRE has quit [Ping timeout: 244 seconds]
dr3w has joined #ruby
armyriad has quit [Read error: Connection reset by peer]
_djbkd has quit [Quit: My people need me...]
christiandsg has quit [Ping timeout: 265 seconds]
armyriad has joined #ruby
msnyon has quit [Ping timeout: 245 seconds]
irctc602 has quit [Ping timeout: 246 seconds]
Rinzlit1 has joined #ruby
Xiti has quit [Quit: Xiti]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
BTRE has joined #ruby
roolo has joined #ruby
j_mcnally has quit [Ping timeout: 256 seconds]
Authenticator has joined #ruby
j_mcnally has joined #ruby
mordocai has quit [Remote host closed the connection]
ghr has joined #ruby
roolo has quit [Ping timeout: 240 seconds]
Axy has joined #ruby
Mia has quit [Ping timeout: 255 seconds]
Limix has joined #ruby
RobertBirnie has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
stardiviner has quit [Ping timeout: 256 seconds]
dgutierrez1287 has joined #ruby
northfurr has quit [Quit: northfurr]
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
oo_ has quit [Remote host closed the connection]
msnyon has joined #ruby
dgutierrez1287 has quit [Ping timeout: 244 seconds]
bestbrents__ has joined #ruby
dr3w has quit [Ping timeout: 240 seconds]
nickmink has joined #ruby
wookiehangover has quit [Ping timeout: 246 seconds]
El3ktra has quit [Ping timeout: 244 seconds]
jesterfraud has joined #ruby
emma_ has quit [Ping timeout: 246 seconds]
hahuang61 has joined #ruby
above has quit [Read error: Connection reset by peer]
hahuang65 has quit [Ping timeout: 246 seconds]
bestbrents_ has quit [Ping timeout: 246 seconds]
crdpink has joined #ruby
segmond has quit [Ping timeout: 246 seconds]
crdpink2 has quit [Ping timeout: 246 seconds]
jordanm has quit [Ping timeout: 246 seconds]
ttttttrev has quit [Ping timeout: 246 seconds]
msnyon has quit [Ping timeout: 246 seconds]
ramfjord has joined #ruby
linuxboytoo has quit [Remote host closed the connection]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
northfurr has joined #ruby
linuxboytoo has joined #ruby
wookiehangover has joined #ruby
catoblepa has joined #ruby
d2dchat has quit [Remote host closed the connection]
Rinzlit1 has quit [Ping timeout: 250 seconds]
pawnbox has joined #ruby
amystephen has joined #ruby
psy_ has quit [Read error: No route to host]
linuxboytoo has quit [Ping timeout: 240 seconds]
tlolczyk has joined #ruby
psy_ has joined #ruby
rubie has joined #ruby
TheNet has quit [Remote host closed the connection]
segmond has joined #ruby
amystephen has quit [Ping timeout: 250 seconds]
<tlolczyk> I've got a URI uri, and a link relative to that URI as a string call it s. How can I convert s to a URI. I find sites which tell you how to merge a base url as string with a relative string to get an absolute path. But not a URI to a string to gveet a URI.
El3ktra has joined #ruby
El3ktra has quit [Changing host]
El3ktra has joined #ruby
n_blownapart has joined #ruby
jcoe has quit [Quit: Quitting...]
_djbkd has joined #ruby
hyy1 has joined #ruby
sdfgsdfg has quit [Ping timeout: 246 seconds]
cjbottaro has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamninja has joined #ruby
zelan has joined #ruby
rubie has quit [Remote host closed the connection]
johnflux has quit [Ping timeout: 255 seconds]
iamninja has quit [Ping timeout: 244 seconds]
zelan has quit [Client Quit]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
northfurr has quit [Quit: northfurr]
TheNet has joined #ruby
bruno- has joined #ruby
jonee has quit [Ping timeout: 256 seconds]
centrx has quit [Quit: "You cannot fix a machine by just power-cycling it with no understanding of what is going wrong."]
<zenspider> rawr
pawnbox has quit [Remote host closed the connection]
minmax has joined #ruby
bruno- has quit [Ping timeout: 250 seconds]
minmax has quit [Client Quit]
freerobby has quit [Quit: Leaving.]
molawson has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nux443 has joined #ruby
wprice is now known as wprice_zzz
TheNet has quit [Remote host closed the connection]
jaredrhine_ has quit [Quit: No Ping reply in 180 seconds.]
<nofxx> tlolczyk, URI.parse ? provide an example please
ERIK_ has joined #ruby
astrobun_ has joined #ruby
jesterfraud has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roxtrongo has joined #ruby
jesterfraud has joined #ruby
<zenspider> >> require "uri"; u = URI.parse "http://example.com/"; u + "/blah"
<ruboto> zenspider # => #<URI::HTTP http://example.com/blah> (https://eval.in/423016)
<zenspider> sometimes you should just try it
<darix> >> require "uri"; u = URI.parse "http://example.com/foo"; u + "/blah"
<ruboto> darix # => #<URI::HTTP http://example.com/blah> (https://eval.in/423017)
casadei has quit [Remote host closed the connection]
<zenspider> :P
code1o6 has quit [Ping timeout: 246 seconds]
darkf has joined #ruby
leat has quit [Remote host closed the connection]
leat has joined #ruby
roxtrongo has quit []
ghr has joined #ruby
catoblepa has quit [Ping timeout: 272 seconds]
roxtrongo has joined #ruby
ohaibbq has joined #ruby
choke has joined #ruby
pivA has quit [Ping timeout: 260 seconds]
jaredrhine has joined #ruby
ghr has quit [Ping timeout: 250 seconds]
bigredboots has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 272 seconds]
Eiam has joined #ruby
rushed has quit [Quit: rushed]
bsdbofh has quit [Quit: bsdbofh]
TheNet has joined #ruby
Limix has quit [Quit: Limix]
christiandsg has joined #ruby
decoponio has joined #ruby
RobertBirnie has joined #ruby
rbowlby has quit [Remote host closed the connection]
hydrozen has quit [Quit: Textual IRC Client: www.textualapp.com]
catoblepa has joined #ruby
ERIK_ has quit [Ping timeout: 244 seconds]
yatish27 has quit [Remote host closed the connection]
jeadre has quit [Remote host closed the connection]
christiandsg has quit [Ping timeout: 265 seconds]
radgeRayden has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
leat has quit [Remote host closed the connection]
atzorvas has joined #ruby
jeadre has joined #ruby
<baweaver> Hey shevy
leat has joined #ruby
devoldmx has joined #ruby
TheNet has quit [Remote host closed the connection]
opensource_ninja has quit [Remote host closed the connection]
<baweaver> I just watched a program about beavers
<baweaver> It was the best dam program I've ever seen
<sevenseacat> beaverception
s2013 has joined #ruby
pawnbox has joined #ruby
rushed has joined #ruby
Limix has joined #ruby
Seich has quit [Ping timeout: 244 seconds]
helpa has quit [Remote host closed the connection]
agent_wh1te has joined #ruby
helpa has joined #ruby
devoldmx has quit [Ping timeout: 272 seconds]
riotjones has joined #ruby
Seich has joined #ruby
agent_white has quit [Ping timeout: 246 seconds]
nux443 has quit [Ping timeout: 264 seconds]
lessless has joined #ruby
riotjones has quit [Ping timeout: 240 seconds]
<shevy> baweaver lol
lessless has quit [Client Quit]
<baweaver> sevenseacat: I prefer fruit puns myself, though they're no fun alone
<baweaver> after all, it takes two to mango
<sevenseacat> lol
<baweaver> we have fruit day on thursdays in the office
<baweaver> I believe I've enumerated every fruit based pun in the book, much to the annoyance of my coworkers.
solocshaw has quit [Ping timeout: 244 seconds]
bsdbofh has joined #ruby
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
<baweaver> warming up for tomorrow :P
<sevenseacat> :D
<baweaver> aren't I just a peach?
<sevenseacat> hehe
oo_ has joined #ruby
agent_wh1te has quit [Quit: leaving]
agent_white has joined #ruby
ghr has joined #ruby
skade has joined #ruby
TheNet has joined #ruby
andybernard has quit [Ping timeout: 265 seconds]
Mendenhall has joined #ruby
arescorpio has quit [Quit: Leaving.]
darkf_ has joined #ruby
ghr has quit [Ping timeout: 246 seconds]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
darkf has quit [Ping timeout: 244 seconds]
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
nux443 has joined #ruby
dhjondoh has joined #ruby
rbowlby has joined #ruby
tubuliferous_ has joined #ruby
davedev2_ has quit [Ping timeout: 264 seconds]
michael_mbp has quit [Excess Flood]
banjara has quit [Quit: Leaving.]
roolo has joined #ruby
KensoDev has joined #ruby
_djbkd has quit [Quit: My people need me...]
davedev24 has joined #ruby
n_blownapart has quit [Quit: Leaving]
solocshaw has joined #ruby
michael_mbp has joined #ruby
yardenbar has joined #ruby
roolo has quit [Ping timeout: 246 seconds]
leat has quit [Remote host closed the connection]
saddad has quit [Ping timeout: 244 seconds]
leat has joined #ruby
bsdbofh has quit [Quit: bsdbofh]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sdfgsdfg has joined #ruby
SCHAAP137 has joined #ruby
Torrieri has quit [Quit: Be back later ...]
jaycee has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TvL2386 has joined #ruby
jenrzzz has joined #ruby
jaycee has quit [Client Quit]
riotjones has joined #ruby
keen___________5 has joined #ruby
n_blownapart has joined #ruby
keen___________4 has quit [Ping timeout: 265 seconds]
<zenspider> lines and rectangles and beziers, oh my
<zenspider> just need fonts, which are proving a bit segfaulty
rushed has quit [Quit: rushed]
pawnbox has quit [Remote host closed the connection]
dhjondoh has quit [Quit: dhjondoh]
rushed has joined #ruby
symm- has joined #ruby
<baweaver> zenspider: Tincup Whisky makes a decent Old Fashioned with some good Orange Bitters
yatish27 has joined #ruby
wookiehangover has quit [Ping timeout: 244 seconds]
pawnbox has joined #ruby
nux443 has quit [Ping timeout: 260 seconds]
yatish27 has quit [Ping timeout: 240 seconds]
<zenspider> that was truly random...
<sevenseacat> but tasty by the sounds of it.
<zenspider> good to know? I guess? not that I can drink those
eightfold has joined #ruby
RobertBirnie has joined #ruby
<baweaver> thoughtline: zenspider mentioned drinking scotch, scotch is whisky, I'm drinking whisky now, it's tasty, I think to share musing.
pawnbox_ has joined #ruby
pawnbox has quit [Ping timeout: 250 seconds]
SuMo_D has quit [Quit: Off into this... Real world place...]
<zenspider> not sure when I mentioned drinking scotch (not that I doubt that I did)... it's the old fashioned part I can't have
<zenspider> and if I didn't eat all of my calories in one meal, I'd probably be having bourbon right now :)
<baweaver> you were also more than slightly tipsy.
maletor has joined #ruby
pietr0 has quit [Quit: pietr0]
<zenspider> don't doubt that either. on my diet I'm an extreme lightweight
wookiehangover has joined #ruby
ramfjord has quit [Ping timeout: 250 seconds]
eGGsha has joined #ruby
tmtwd has joined #ruby
Limix has quit [Quit: Limix]
lkba has joined #ruby
<sevenseacat> oh yes
TheNet has quit [Quit: Leaving...]
SCHAAP137 has quit [Remote host closed the connection]
solocshaw has quit [Ping timeout: 244 seconds]
mamercad has quit [Ping timeout: 260 seconds]
arup_r has joined #ruby
eiGHttt has quit [Remote host closed the connection]
howdoi has joined #ruby
eiGHttt has joined #ruby
eiGHttt has quit [Remote host closed the connection]
ocx has joined #ruby
HANJIN has joined #ruby
banjara has joined #ruby
DenSchub has left #ruby ["Leaving."]
catoblepa has quit [Ping timeout: 255 seconds]
ta has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
z1haze has joined #ruby
cynosures has joined #ruby
<cynosures> what's the difference between `name: to_value` and `:name => to_vlaue` ?
<zenspider> your spelling for one
<zenspider> syntax, normally
<z1haze> I am trying to use mysql 2 to connect to my mysql server and copy mysql database from xenforo into postgres databae for discourse but i keep getting access denied for user .. this is all inside a docker containeir
<z1haze> Ive installed the mysql cli and remotely connected to the server with the same credentials so its not the credentials or ip restrcitions..
<z1haze> there's something wrong with the lib or similar.
jesterfraud has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zenspider> don't blame your tools
<z1haze> I dont know what else to blame, we've been troubleshooting this for hours
<z1haze> we can connect with the cli just fine.. cant connect with ruby mysql2, what else should i blame
<ocx> paste.ubuntu.com/12203807 i am not able to install this gem, using rvm 2.2.3 ruby
<z1haze> this migration script possibly
<zenspider> thousands of ppl using that lib every day... just sayin'
<z1haze> i get it
<z1haze> care to help then
<zenspider> ocx: try urling again
ranchodev has joined #ruby
darkf_ is now known as darkf
<zenspider> z1haze: well... nobody in here is psychic (yet). can't help you without seeing some data
<z1haze> what is it youd need?
radgeRayden has quit [Ping timeout: 246 seconds]
<z1haze> the error messages give zero information as to what fails
<z1haze> Acesss denied for user blah blah @ blah blah (using password: YES) (Mysql2::Error)
<z1haze> such abig help
<sevenseacat> thats an error directly from MySQL - nothing to do with the library
iamninja has joined #ruby
<z1haze> so how can i login with the regular mysql cli
<z1haze> but not this
<z1haze> i suppose it could be this script
ghr has joined #ruby
<sevenseacat> wrong password? wrong settings? we dont know
<sevenseacat> we havent seen how youre trying to connect
<z1haze> its not he wrong credentials
<zenspider> backtrace would be a start. reproducing code would help
<z1haze> thats been checked over and over
<zenspider> you're connecting via cli locally or remotely? etc. again, we aren't psychic
<z1haze> remotely
bzb has joined #ruby
<z1haze> over tcp
<z1haze> the mysql server is on the parent machine anyways
bzb has quit [Remote host closed the connection]
<z1haze> but i couldnt connect locally because the stpuid thing miss matches the mysql.sock files .. cause the container is debian and the server is rhel
<z1haze> but connecting out tcp solves that part
<z1haze> here's a piece of it
<z1haze> this file is larger so i dont want to give u a bunch of bs
<Ox0dea> ?gist z1haze
<ruboto> z1haze, https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
solars has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
iamninja has quit [Ping timeout: 264 seconds]
<zenspider> ocx: did you look at the mkmf.log file?
<zenspider> anything using hpricot is _ancient_ and suspect
amclain has quit [Quit: Leaving]
iamninja has joined #ruby
Feyn has quit [Ping timeout: 250 seconds]
Eiam has joined #ruby
hfp has quit [Ping timeout: 246 seconds]
hfp_work has quit [Ping timeout: 250 seconds]
<z1haze> see?
<zenspider> I see a looot of code
<z1haze> i told you
<z1haze> i had already pasted the relavant part
<zenspider> still don't see an error, a backtrace, or anything else mentioned
<z1haze> .. i already told you the error
<zenspider> ...
<z1haze> here's the whole trace http://hastebin.com/ovaxunacef.vhdl
hfp has joined #ruby
weemsledeux has joined #ruby
hfp_work has joined #ruby
christiandsg has joined #ruby
petricore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roolo has joined #ruby
<zenspider> so you're dying in initialize, so all that query code is irrelevant
dionysus69 has joined #ruby
JaRe_Ax has joined #ruby
<z1haze> i know..
<zenspider> and yet...
<zenspider> you're not providing port, any reason?
<z1haze> tried it both ways
<z1haze> and i guess because it isnt required
<sevenseacat> because the lib should just know what port you mean. duh.
<z1haze> but i put the port in previously just to see
<z1haze> well..
<sevenseacat> was it the right port? :)
<z1haze> by default.. yes it should if it was smart
<sevenseacat> lol
khebbie has joined #ruby
<z1haze> mysql default is 3306
<z1haze> but yes, it was the right port
leat has quit [Remote host closed the connection]
JaReAx has quit [Ping timeout: 240 seconds]
christiandsg has quit [Ping timeout: 265 seconds]
leat has joined #ruby
<z1haze> its apparently attempting to connect
<z1haze> so or so it seems
<z1haze> too bad this doesnt give meaningful errors :\
<sevenseacat> err
<sevenseacat> I think you've been looking at this too long, when 'access denied' is not a meaningful error
<sevenseacat> one of your credentials is wrong. I don't know which.
<z1haze> right.. access denied because it was unable to connect, the credentials were wrong, etc
<z1haze> no it ISNT
<sevenseacat> no, not because it was unable to connect
tmtwd has quit [Ping timeout: 260 seconds]
<z1haze> the credentials are not wrong.
<z1haze> please stop trying to throw the blame on that
<sevenseacat> there's literally nothing else to put the blame on
<sevenseacat> its a single line of code that returns an access denied error
<z1haze> i can login with the cli from here remotely with the exact same copy and paste credentials.
<sevenseacat> show us?
<z1haze> show you want? my credentials?
<z1haze> wtf?
<sevenseacat> no, show us you connecting with them
<z1haze> sure
<zenspider> the client defaults to port 0 if you don't specify
<z1haze> but somehow it magically connected on 3306.. i dunno how
<zenspider> unless someone down the channel interprets that as "not set" and changes it to the port you mention above, I would start there
<z1haze> either way i have the port set
arooni-mobile has quit [Ping timeout: 244 seconds]
<zenspider> prove it. get the db logs on the server side and see what it says
<z1haze> ok
<Ox0dea> z1haze: $ ltrace ruby foo.rb 2>&1 | grep rb_connect
Macaveli has joined #ruby
<z1haze> what is this?
<TvL2386> hi guys, I'm trying to remember a gem that manages processes on a linux server... Can't find it anymore
<Ox0dea> That'll show you exactly which parameters are ending up in the actual library call.
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> z1haze: Perhaps you're being pranked with a zero-width space or some such.
<zenspider> that error message is coming from the server, not the client.
<z1haze> im showing you im connecting in the same container
<z1haze> perfectly fine
<z1haze> right after the erro from the script
<z1haze> its not the damn credentials.
baweaver has quit [Remote host closed the connection]
<zenspider> for someone who needs help, you're awfully snippy and unappreciative. rude even.
<sevenseacat> except in one place you're connecting via IP, and in another via a hostname
<z1haze> Ox0dea, what is this command you sent?
HANJIN has quit [Quit: HANJIN]
<z1haze> dude ive been at this for like 10 hours
<z1haze> im sorry
oo_ has quit [Remote host closed the connection]
<zenspider> here I am pouring over C code for a database I don't even use
<TvL2386> nonamepvp.com has address 192.99.23.109
<z1haze> i said im sorry
<TvL2386> 167.114.145.107 != 192.99.23.109
<z1haze> im just ... very irritable
<zenspider> TvL2386: there's a billion of them. god, maybe?
<z1haze> yes it is
<z1haze> its the same box
<z1haze> they are just failovers
<sevenseacat> so?
<TvL2386> zenspider, exactly
<TvL2386> zenguy_pc, tyvm!
<sevenseacat> configure your things both the same way
<sevenseacat> given permissions in mysql are very dependent on host
<z1haze> i have it granted on wild card for this.
<z1haze> just to be sure
<z1haze> i just showed you that i logged in fine
<sevenseacat> configure your things both the same way.
<sevenseacat> yes, with a hostname, not an IP
<zenspider> z1haze: please go look at the server logs to see what it says about connection attempts
<z1haze> where woudl those be? on centos?
<z1haze> ill find , hang on
<zenspider> and do what Ox0dea said
<Aeyrix> /var/log/mysql/mysql.log
<Aeyrix> or, for your app, it'll be in the logs folder you set up
<zenspider> (which, to answer your question, will show the actual call to the connection)
<TvL2386> z1haze, you didn't prove it works. The hostname resolves to a different IP then the ip shown in the connection error...
<z1haze> lol
<z1haze> ok TvL2386 i will in a second after i pull these logs
<z1haze> which ip did you want me to use?
<sevenseacat> the one you're trying to connect with
<TvL2386> I assume both work, so try both in your ruby and both with `mysql`
norayr has joined #ruby
<TvL2386> *assuming both _should_ work
norayr is now known as noch
banjara has quit [Quit: Leaving.]
<noch> hey people. i have upgraded mariadb, and now i need to recompile ruby module. how do i do that?
sdwrage has joined #ruby
<noch> ruby mysql module.
stan has joined #ruby
<zenspider> noch: no clue what you're talking about. that's rather vague
<zenspider> maybe ask in #mariadb ?
<z1haze> also there's no crap in the log
<Aeyrix> noch: wtf why
<z1haze> nothing relating to the failed connection
<zenspider> z1haze: that could be a log level thing
<z1haze> no there is stuff in there..
<z1haze> just not for that
dgutierrez1287 has joined #ruby
<zenspider> still could be a log level thing
<z1haze> maybe so, but i dont know how to set
<zenspider> doesn't matter. try the cmdline w/ the 2 ips
<z1haze> i will do it now
<noch> ok i have upgraded my mariadb from versian 5.5 to version 10. I have a ruby software running from user, which does not start because it says 'dependencies.rb:274:in `require': Incorrect MySQL client library version! This gem was compiled for 5.5.37-MariaDB but the client library is 6.1.6. (RuntimeError)'
oo_ has joined #ruby
tkuchiki has quit [Remote host closed the connection]
doublemalt_ has quit [Quit: Leaving]
<zenspider> noch: sounds like you need to reinstall the mysql client gem you're using?
<noch> yep! how?
<noch> (:
<noch> it's not a system installation. it's not installed via package manager.
<Aeyrix> !bingo
<Aeyrix> wait
<Aeyrix> wrong channel
<sevenseacat> :D
<Aeyrix> :^(
<noch> i don't know how to list existing ruby modules and how to install/reinstall one.
<z1haze> worked with both
dgutierrez1287 has quit [Ping timeout: 246 seconds]
<noch> shell i run gem install mysql? or gem install mysql2 ? how do i know which module i already have?
<TvL2386> noch: gem list ^mysql
leat has quit [Remote host closed the connection]
<z1haze> i gotta get to bed though i can barely stay up
<noch> ok it says mysql2.
<noch> shell i do gem install mysql2 ?
leat has joined #ruby
<TvL2386> noch, yes
<noch> fetching, building. thank you.
<TvL2386> yw
<Ox0dea> TvL2386: Could you say a little more about the gem you're looking for?
<tlolczyk> I have a bunch of strings which end in numbers. I would like to replace the numbers with fixed width versions.
<TvL2386> Ox0dea, "god" was what I meant, but I'm not sure it is what I seek
<Ox0dea> Ha! That would've been my guess.
<noch> again Incorrect MySQL client library version! This gem was compiled for 5.5.37-MariaDB but the client library is 6.1.6. (RuntimeError)
n_blownapart has quit [Quit: Leaving]
workmad3 has joined #ruby
<noch> may it be i have to enter some specific directory and only then run it?
<tlolczyk> The hard part is doing it in place.
<Ox0dea> tlolczyk: sub!(/\d+/) { |n| '%05d' % n }
<Ox0dea> /\d+\z/, of course.
yfeldblum has quit [Ping timeout: 246 seconds]
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
skade has quit [Quit: Computer has gone to sleep.]
towski_ has joined #ruby
<TvL2386> Ox0dea, I'm looking for some thing that can manage process start-up and tear-down order... Also, one of the processes can be master/slave affecting the other programs...
tkuchiki has joined #ruby
<Ox0dea> TvL2386: And you're sure this was a gem?
<Ox0dea> I suppose there are probably thin wrappers around Raft and/or Kubernetes out there.
<TvL2386> Ox0dea, no no... I was just looking for `god`, to check if it would fit my needs
<Ox0dea> Oh, right.
stardiviner has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
<Ox0dea> TvL2386: Are you using systemd?
<TvL2386> Ox0dea, yeah I do
<TvL2386> Ox0dea, Centos 7
* tlolczyk shudders
<TvL2386> Ox0dea, and yes, I got it to work there, but:
<TvL2386> Ox0dea, process K goes from Master to Slave and it interacts then with the other 2 processes to enable/disable something there on failover
<noch> shell i run bin/bundle in my software directory?
<TvL2386> Ox0dea, if the 2 other processes restart for whatever reason, they have lost their state that process K triggered there....
<TvL2386> Ox0dea, I know it's pretty abstract and I'm trying to find a robust solution to this case and I thought that `god` might help me out here
<Ox0dea> TvL2386: So... Paxos for processes instead of processors?
<TvL2386> Ox0dea, Paxos??
manila90 has joined #ruby
devoldmx has joined #ruby
eGGsha is now known as eGGshke
eGGshke is now known as eGGsha
<Ox0dea> Yes, that one.
eGGsha is now known as eGGshke
aganov has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> In essence, you need several disparate processes to "agree" on the state of things.
charliesome has joined #ruby
<TvL2386> Ox0dea, that is exactly the situation I'm facing... Paxos for processes indeed :)
catoblepa has joined #ruby
<Ox0dea> TvL2386: I'm not sure if such a thing exists, per se, but I've little doubt that systemd provides all the necessary scaffolding.
bayed has joined #ruby
poli has quit [Ping timeout: 260 seconds]
acke has joined #ruby
nofxx has quit [Ping timeout: 252 seconds]
Mendenhall has quit [Quit: WeeChat 1.0.1]
<TvL2386> Ox0dea, yeah systemd can facilitate startup & teardown. I'm just not sure on the consensus part
devoldmx has quit [Ping timeout: 250 seconds]
ta has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
Mendenhall has joined #ruby
tagrudev has joined #ruby
symm- has quit [Ping timeout: 246 seconds]
catoblepa has quit [Ping timeout: 245 seconds]
<Ox0dea> TvL2386: And alas, the controversy surrounding its rise causes a search for "systemd consensus" to bear little fruit. :/
AlphaAtom has joined #ruby
ecnalyr has joined #ruby
krz has joined #ruby
ocx has quit [Quit: Page closed]
sdwrage has quit [Quit: This computer has gone to sleep]
<TvL2386> Ox0dea, :)
youch has quit [Quit: Konversation terminated!]
eGGshke is now known as eGGsha
<TvL2386> Ox0dea, thanks anyway! Interesting read on the Paxos wiki :)
<Ox0dea> TvL2386: Sure thing. Paxos is indeed quite interesting.
<Ox0dea> Is it not the case that you could simply write a few PIDs somewhere?
manila90 has quit [Quit: Leaving]
<Ox0dea> Use a text file as a priority queue. :P
Crimlo has joined #ruby
walla has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
oo_ has quit [Remote host closed the connection]
Gnomethrower has joined #ruby
Gnomethrower has quit [Changing host]
Gnomethrower has joined #ruby
Gnomethrower has quit [Max SendQ exceeded]
michael_mbp has quit [Excess Flood]
ecnalyr has quit [Ping timeout: 250 seconds]
Gnomethrower has joined #ruby
Gnomethrower has quit [Changing host]
Gnomethrower has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DEA7TH has joined #ruby
C1V0 has joined #ruby
Crimlo has quit []
doritostains has quit [Quit: WeeChat 1.0.1]
michael_mbp has joined #ruby
hfp_work has quit [Ping timeout: 244 seconds]
pentanol has joined #ruby
rethi has joined #ruby
hfp has quit [Ping timeout: 255 seconds]
_ht has joined #ruby
<pentanol> hi all, I'm using ubuntu 15.04 and need install rmagick, but can't:
<pentanol> /usr/include/ImageMagick-6/wand/MagickWand.h
<pentanol> C_INCLUDE_PATH=/usr/include/ImageMagick-6/ bundle install --without development test mysql sqlite
davedev24 has quit [Remote host closed the connection]
<pentanol> Can't install RMagick 0.0.0. Can't find MagickWand.h
neanderslob has quit [Remote host closed the connection]
hfp_work has joined #ruby
TomyWork has quit [Remote host closed the connection]
hfp has joined #ruby
ferhaty has joined #ruby
<Ropeney> pentanol: apt-get install imagemagick libmagickwand-dev
<pentanol> Ropeney that installed
<pentanol> i A libmagickwand-6-headers
<pentanol> I found header there /usr/include/ImageMagick-6/wand/MagickWand.h
<pentanol> hor I can point bundler for another includes?
AlphaAtom has joined #ruby
<pentanol> how*
neanderslob has joined #ruby
dented42 has joined #ruby
<Ropeney> pentanol: did you `gem install rmagick` ?
<pentanol> I do gem install rmagick -v '2.13.3'
<pentanol> I need this version
<pentanol> and is say checking for wand/MagickWand.h... no
jas02 has joined #ruby
<pentanol> why this doesn't work? C_INCLUDE_PATH=/usr/include/ImageMagick-6/ gem install rmagick -v '2.13.3'
nickmink has quit [Ping timeout: 246 seconds]
Iskarlar has joined #ruby
johnflux has joined #ruby
krz has quit [Quit: WeeChat 1.2]
<zenspider> OH! Can we play the harry potter game? s/wand/wang/g
skade has joined #ruby
tonios57 has joined #ruby
noch has left #ruby [#ruby]
<Ox0dea> > Then, with a sigh, he raised his wang and prodded the silvery substance with its tip.
yatish27 has joined #ruby
<Ox0dea> >> s = 'pensieve'; s.replace s.chars.shuffle.join until s.include? 'penis'; s
<ruboto> Ox0dea # => "vepenise" (https://eval.in/423111)
<zenspider> should count how many iterations it takes
<Ox0dea> 4.
<Ox0dea> It's random.
<zenspider> always 4?
<Ox0dea> !xkcd 221
<zenspider> if only all random things finished in 4
joonty has joined #ruby
yatish27 has quit [Ping timeout: 245 seconds]
roolo has quit [Remote host closed the connection]
pentanol has quit [Quit: leaving]
jyulliano has quit [Remote host closed the connection]
towski_ has quit [Remote host closed the connection]
oo_ has joined #ruby
stnly has joined #ruby
neanderslob has quit [Ping timeout: 265 seconds]
neanderslob_ has joined #ruby
bluOxigen has joined #ruby
postmodern has quit [Quit: Leaving]
xhosae has joined #ruby
Hounddog has joined #ruby
Pumukel has joined #ruby
symm- has joined #ruby
duncannz has joined #ruby
petricore has joined #ruby
leat has quit [Remote host closed the connection]
petricore has quit [Client Quit]
leat has joined #ruby
mamercad has joined #ruby
marr has joined #ruby
anisha has joined #ruby
Eiam has joined #ruby
JaRe_Ax has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fedexo has joined #ruby
ReK2 has joined #ruby
UtkarshRay has joined #ruby
chussenot has joined #ruby
leat has quit [Remote host closed the connection]
Mendenhall has quit [Ping timeout: 250 seconds]
leat has joined #ruby
renderfu_ has quit [Remote host closed the connection]
AlexAltea has joined #ruby
djbkd_ has joined #ruby
r0x0rZ has joined #ruby
mikecmpbll has joined #ruby
ferhaty has quit []
krisquigley has joined #ruby
Guest32 has joined #ruby
blackmesa has joined #ruby
mutuma has joined #ruby
mutuma has left #ruby [#ruby]
Guest32 has left #ruby [#ruby]
Guest32 has joined #ruby
jgt has joined #ruby
charliesome has joined #ruby
leat has quit [Remote host closed the connection]
esposito has joined #ruby
charliesome has quit [Client Quit]
leat has joined #ruby
fedexo has quit [Ping timeout: 244 seconds]
charliesome has joined #ruby
rdark has joined #ruby
esposito has quit [Client Quit]
ohaibbq has quit [Quit: Leaving...]
Pumukel has quit [Ping timeout: 245 seconds]
<awk> hi, i'm a really ruby noob.. i've tried all possible syntax to send mail to multple recipients .. I keep getting illegal address from the SMTP server, i'm using sendmail="address@blah.com; address2@blah.com"
agent_white has quit [Read error: Connection reset by peer]
michael_mbp has quit [Excess Flood]
<adaedra> ?context awk
<ruboto> awk, Please add more context to your question, what are you doing, why are you doing it, which libraries are involved. Post some code to gist if it clarifies your question.
sdfgsdfg has quit [Remote host closed the connection]
joonty has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
lkba has quit [Ping timeout: 245 seconds]
leat has quit [Remote host closed the connection]
michael_mbp has joined #ruby
roolo has joined #ruby
leat has joined #ruby
codecop has joined #ruby
joonty has joined #ruby
Zort0n has joined #ruby
Pumukel has joined #ruby
christiandsg has joined #ruby
roolo has quit [Ping timeout: 260 seconds]
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
tubuliferous_ has quit [Ping timeout: 244 seconds]
blackmesa has quit [Ping timeout: 250 seconds]
<atmosx> adaedra: what does awk stand for?
<atmosx> ah
<atmosx> it's the nickname
<adaedra> good morning atmosx
<atmosx> awk: what gem do you use, is that rails mailer or something else?
Azure has quit [Remote host closed the connection]
<atmosx> morning adaedra :-)
Musashi007 has quit [Quit: Musashi007]
ghr has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]
oo_ has quit [Remote host closed the connection]
acke has quit [Remote host closed the connection]
<awk> All i'm trying to do is send to two recipients, nothing else.. each way I try the SMTP tells me its illegal, as it's "grouping them" together..
oo_ has joined #ruby
techsethi has joined #ruby
senayar has joined #ruby
djbkd_ has quit []
eGGsha is now known as eGGshke
workmad3 has joined #ruby
leafybas_ has quit [Remote host closed the connection]
arup_r has quit []
arup_r has joined #ruby
pawnbox_ has quit [Remote host closed the connection]
platzhirsch has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
rbowlby has quit [Remote host closed the connection]
sdfgsdfg has joined #ruby
dumdedum has joined #ruby
subshad has joined #ruby
Zai00 has joined #ruby
<yorickpeterse> morning
subshad has left #ruby [#ruby]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<atmosx> awk: try passing an array
<awk> to the variable supportMail ?
<awk> or the To:
<atmosx> anywhere, the way this method is... give me 2 minutes.
Zai00 has quit [Client Quit]
charliesome has joined #ruby
platzhirsch has quit [Ping timeout: 260 seconds]
sonOfRa has quit [Remote host closed the connection]
eGGshke is now known as eGGsha
Zai00 has joined #ruby
<awk> atmosx: I have tried to parse and array I get this warning: Illegal address syntax from localhost[127.0.0.1] in RCPT command: <address1, address2> from the mail log
sonOfRa has joined #ruby
astrobun_ has quit [Remote host closed the connection]
<atmosx> awk: so if you use ["mail@address1", "mail@address2"] you get an error?
Rinzlit1 has joined #ruby
<awk> yup
pawnbox has joined #ruby
<atmosx> awk: works for 1 address? If yes... just amke a list and run the method for any item on the list/array/hash
<awk> let me use a list then, thanks
[k- has joined #ruby
Zai00 has quit [Quit: Zai00]
Zai00 has joined #ruby
atzorvas has quit [Quit: leaving]
pawnbox has quit [Ping timeout: 272 seconds]
sonOfRa has quit [Remote host closed the connection]
devoldmx has joined #ruby
sonOfRa has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
pawnbox has joined #ruby
mamercad has quit [Ping timeout: 250 seconds]
leat has quit [Remote host closed the connection]
leat has joined #ruby
C1V0 has quit []
Zai00 has quit [Client Quit]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Zai00 has joined #ruby
rdark has quit [Quit: leaving]
charliesome has joined #ruby
rdark has joined #ruby
joonty has quit [Ping timeout: 260 seconds]
platzhirsch has joined #ruby
devoldmx has quit [Ping timeout: 250 seconds]
Zai00 has quit [Client Quit]
khebbie has quit [Ping timeout: 244 seconds]
oo_ has quit [Remote host closed the connection]
<zenspider> any stronger C devs? I've got a slightly obscure case and I'm getting foggy
arup_r has quit [Remote host closed the connection]
<jhass> isn't there ##c or so?
<zenspider> error: invalid application of 'sizeof' to an incomplete type 'TTF_Font' (aka 'struct _TTF_Font'): return p ? sizeof(*((TTF_Font*)p)) : 0;
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
KensoDev has quit []
<zenspider> its _kinda_ sorta related to ruby :P
Zai00 has joined #ruby
startupality has joined #ruby
oo_ has joined #ruby
leat has quit [Ping timeout: 272 seconds]
dgutierrez1287 has joined #ruby
jimms has joined #ruby
astrobun_ has joined #ruby
GnuYawk has quit [Ping timeout: 256 seconds]
cornerma1 has joined #ruby
khebbie has joined #ruby
dgutierrez1287 has quit [Ping timeout: 252 seconds]
dhjondoh has joined #ruby
Voker57 has joined #ruby
GnuYawk has joined #ruby
c0ncealed has quit [Ping timeout: 260 seconds]
cornerman has quit [Ping timeout: 250 seconds]
cornerma1 is now known as cornerman
rushed has quit [Quit: rushed]
Zort0n has quit [Remote host closed the connection]
Zort0n has joined #ruby
<Ox0dea> zenspider: Seems you're just not including the header properly?
Zort0n has quit [Client Quit]
leafybasil has joined #ruby
Zort0n has joined #ruby
clyfe has joined #ruby
clyfe has left #ruby [#ruby]
millerti has quit [Read error: Connection reset by peer]
<Ox0dea> Or at all, I suppose. <SDL_ttf.h> is the one you want.
<Diabolik> with this tool https://github.com/askl56/calc
Zai00 has quit [Quit: Zai00]
<Diabolik> how would i have different outputs for whether its run from an executable or from the normal interface
rushed has joined #ruby
<zenspider> Ox0dea: if I wasn't including it, I couldn't use the font code at all...
<Ox0dea> Diabolik: Check whether $0 == __FILE__, perhaps?
<Ox0dea> zenspider: Yes, that's true. :/
Zai00 has joined #ruby
<Diabolik> Ox0dea can you link me to the documentation for that?
<Ox0dea> ?quickref Diabolik
Eiam has joined #ruby
r4sp has joined #ruby
<r4sp> Vim users: Best vim plugin for ruby syntax errors highlighting? thanks!
<Ox0dea> r4sp: Consider just not writing invalid Ruby.
Zai00 has quit [Client Quit]
<jhass> oh, Ox0dea is in troll mode
<r4sp> yes it looks like... :(
Zai00 has joined #ruby
<zenspider> or using emacs... since it ships with the equivalent. :P
<r4sp> yorickpeterse: thanks :)
<zenspider> tho, really, you should use my enh-ruby-mode instead :P
hfp_work has quit [Ping timeout: 244 seconds]
<yorickpeterse> emacs also has a similar extension, flycheck or something like that
<r4sp> sorry... I'm used to vim and i shouldnt change we're working with a lot of servers and none has emacs...
<yorickpeterse> emacs also comes with free carpal tunnel
<yorickpeterse> ᕕ(ᐛ)ᕗ
hfp has quit [Ping timeout: 260 seconds]
leat has joined #ruby
<Diabolik> Ox0dea so that goes in the exec file?
<zenspider> r4sp: why do your servers need emacs on them?
ndrei has joined #ruby
senayar has quit [Remote host closed the connection]
livathinos has joined #ruby
arup_r has joined #ruby
senayar has joined #ruby
<r4sp> zenspider: they dont
<zenspider> turns out there's a total cunt in ##c so that's a waste of time...
<zenspider> r4sp: exactly. so no reason not to switch to emacs!
<r4sp> thats right :)
<r4sp> but i like vim
<sevenseacat> zenspider: watch your language please :)
<Ox0dea> zenspider: There doesn't seem to be a way to reliably obtain the size of an opaque type. :/
<zenspider> certainly seems that way. :(
<zenspider> not that it _really_ matters, but it'd be nice
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hfp_work has joined #ruby
hfp has joined #ruby
bruno- has joined #ruby
einarj has joined #ruby
Pumukel has quit [Ping timeout: 256 seconds]
ndrei has quit [Remote host closed the connection]
<bankair> r4sp: vim likes you as well
ndrei has joined #ruby
ekleog has quit [Remote host closed the connection]
agent_white has quit [Quit: night]
ekleog has joined #ruby
alex88 has joined #ruby
bruno- has quit [Ping timeout: 246 seconds]
<shevy> lies!
<atmosx> r4sp: emacs is on the dark side.
bnizzle has joined #ruby
<Ox0dea> zenspider: There are several tools for mucking with object files to glean size information, but my headers have been stripped. :/
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> s/headers/libraries/
eGGsha is now known as eGGshke
<zenspider> I had some used for objc ... I don't know of any for plain C
startupality has quit [Quit: startupality]
araujo has quit [Ping timeout: 250 seconds]
<Ox0dea> "Pahole" apparently means "fern", but the pun is still lost on me.
Phoop has quit []
<zenspider> my god. ##c is a total shit show. I thought #perl was arrogantly distasteful. I was wrong.
bb010g has quit [Quit: Connection closed for inactivity]
<zenspider> for as much shit as we get for having and upholding rules in order to be inclusive... it makes a world of difference
ndrei has quit [Ping timeout: 256 seconds]
<zenspider> #emacs is kinda unhelpful, but mostly because it's a cyclone of chaos in there w/ a bunch of people just chatting. periodically you get help
<zenspider> but ##c is simply abusive
<zenspider> I think I need a shower
ndrei has joined #ruby
astrobun_ has quit [Remote host closed the connection]
<Ox0dea> You must've met Zhivago.
<zenspider> that's the one
<zenspider> and associated clique
yfeldblum has joined #ruby
mamercad has joined #ruby
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
devoldmx has joined #ruby
eGGshke is now known as eGGsha
renderful has joined #ruby
ghr has quit [Read error: Connection reset by peer]
symm- has quit [Quit: Leaving...]
garethrees has joined #ruby
sevenseacat has quit [Quit: .]
leat has quit [Remote host closed the connection]
araujo has joined #ruby
leat has joined #ruby
GriffinHeart has joined #ruby
khebbie has quit [Remote host closed the connection]
chipotle has quit [Quit: cheerio]
devoldmx has quit [Ping timeout: 264 seconds]
renderful has quit [Ping timeout: 260 seconds]
ndrei has quit [Ping timeout: 244 seconds]
roolo has joined #ruby
pandaant has joined #ruby
ferhaty has joined #ruby
bruno- has joined #ruby
jeadre has quit [Remote host closed the connection]
leat has quit [Remote host closed the connection]
leat has joined #ruby
stamina has joined #ruby
roolo has quit [Ping timeout: 252 seconds]
jeadre has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
decoponio has quit [Read error: Connection reset by peer]
c0m0 has joined #ruby
decoponio has joined #ruby
rmrrn has quit [Ping timeout: 240 seconds]
borkdude has quit [Ping timeout: 240 seconds]
benlovell has joined #ruby
varesa has quit [Ping timeout: 260 seconds]
ChoiKyuSang has joined #ruby
Tempesta has quit [Read error: Connection reset by peer]
ChoiKyuSang is now known as Tempesta
borkdude has joined #ruby
varesa has joined #ruby
rmrrn has joined #ruby
Macaveli has joined #ruby
Feyn has joined #ruby
leat has quit [Remote host closed the connection]
Rickmasta has joined #ruby
leat has joined #ruby
pyon has quit [Quit: Stupid Emacs.]
chipotle has joined #ruby
Motoservo has quit [Remote host closed the connection]
khebbie has joined #ruby
pyon has joined #ruby
workmad3 has joined #ruby
Helheim has quit [Ping timeout: 246 seconds]
mandarinkin has joined #ruby
Rickmasta has quit [Ping timeout: 260 seconds]
christiandsg has joined #ruby
mhib has joined #ruby
glen has joined #ruby
jimms has quit []
<glen> hi, does ruby have shell's equivalent of stripping leading spaces: <<-EOF. i.e this script does not strip: http://sprunge.us/JYgY
<zenspider> glen: you mean does the heredoc itself strip? no.
<zenspider> but you can call strip on it or do whatever manipulation you'd like
<zenspider> eg: s = <<-EOF.strip
leat has quit [Remote host closed the connection]
GnuYawk has quit [Ping timeout: 255 seconds]
skade has quit [Quit: Computer has gone to sleep.]
leat has joined #ruby
<jhass> I think the term to google was "ruby unindenting heredoc" for some nice snippets
<jhass> avdi or so had a blog on it?
acke has joined #ruby
<jhass> (read the comments)
christiandsg has quit [Ping timeout: 265 seconds]
Zai00 has quit [Quit: Zai00]
acke has quit [Ping timeout: 250 seconds]
glenn_ has joined #ruby
techsethi has quit [Ping timeout: 250 seconds]
platzhirsch has left #ruby [#ruby]
<Ox0dea> jhass: It was a Tapas, not a blog post: http://www.rubytapas.com/episodes/249-Unindent
<jhass> ah right, glen watch this ^
abuzze has quit []
leat has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
Motoservo has joined #ruby
UtkarshRay has quit [Ping timeout: 246 seconds]
leat has joined #ruby
<zenspider> missed a good opportunity for min_by
<zenspider> indent_str = scan(/^[\t ]*(?=\S)/).min_by(&:length)
<zenspider> makes the code a LOT more clear and only a couple perentage points slower
eGGsha is now known as eGGshke
rodfersou has joined #ruby
eGGshke is now known as eGGsha
<Ox0dea> Isn't `[\t ]` just `\s` in this case?
eGGsha is now known as eGGshke
<zenspider> but... vertical tabs!
<Ox0dea> And carriage returns!
<Ox0dea> Form feeds too!
<zenspider> now a one liner: gsub(/^#{scan(/^[\t ]*(?=\S)/).min_by(&:length)}/, "")
<jhass> it should be just / */, stop indenting your stuff with tabs
duncannz has quit [Ping timeout: 246 seconds]
<zenspider> I agree that it probably shouldn't match tabs, since it doesn't treat them correctly
<apeiros> I think I used ^(?:\t+| +|)
<apeiros> i.e.: DONT MIX TABS & SPACES!!!!!1!
DoubleMalt has joined #ruby
<apeiros> totally. but: ruby source. ugh. :<
<zenspider> ruby c source? the worst
<apeiros> I mean, IF you use tabs, you do it because people can set it to any width they enjoy
<apeiros> but like that? *grah*
<zenspider> any project crazy enough that they have to ship with their own emacs cc-mode style... not good
<zenspider> I gave up trying to change that one
<zenspider> pick your battles
<apeiros> yeah
<apeiros> I have enough insanity sources in my life already :D
leat has quit [Remote host closed the connection]
eGGshke is now known as eGGsha
leat has joined #ruby
acke has joined #ruby
northfurr has joined #ruby
Zai00 has joined #ruby
r4sp has left #ruby [#ruby]
GriffinHeart has quit [Remote host closed the connection]
chussenot has quit [Quit: chussenot]
revoohc has joined #ruby
janno has quit [Quit: Lost terminal]
Zai00 has quit [Ping timeout: 245 seconds]
benlovell has quit [Ping timeout: 244 seconds]
GnuYawk has joined #ruby
Eiam has joined #ruby
jgt has quit [Ping timeout: 272 seconds]
molawson has joined #ruby
leat has quit [Remote host closed the connection]
chinmay_dd has joined #ruby
molawson has quit [Ping timeout: 256 seconds]
manila90 has joined #ruby
dhjondoh has quit [Ping timeout: 244 seconds]
Feyn has quit [Ping timeout: 272 seconds]
yatish27 has joined #ruby
chipotle has quit [Quit: cheerio]
GriffinHeart has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
krz has joined #ruby
Ropeney has joined #ruby
leat has joined #ruby
lkba has joined #ruby
yatish27 has quit [Ping timeout: 246 seconds]
anandubajith has quit [Quit: Connection closed for inactivity]
vali has joined #ruby
<glen> zenspider: eof.strip would strip only leading trailing, not on each line afaik
chipotle has joined #ruby
<jhass> glen: good, now also read all the other answers
leat has quit [Remote host closed the connection]
<glen> jes :)
<zenspider> glen: have you paid attention to anything that was said in the last 50 minutes?
<jhass> obviously not
<glen> just returned from (lunch)
<glen> i can still comment in order what was said...
leat has joined #ruby
* zenspider sighs
<jhass> yeah, after reading
<glen> but really i wanted to know if there's in-core syntax for that
<zenspider> read more. type less.
johnflux has quit [Quit: Konversation terminated!]
banister has joined #ruby
<glen> seems not. everybody suggests some subst solution
bronson has joined #ruby
<zenspider> seems not... also made obvious by the very first response you got.
<glen> i wonder why, because <<-FOO looks like one that should, in shell script <<EOF means no indent strip, <<'EOF' same but no variable interpolation, so <<-EOF strips, and <<EOF not
<glen> acutally don't know if <<EOF and <<"EOF" have difference in shell. afaik not
<jhass> I'm glad ruby isn't shellscript though
<glen> but - is not special in ruby right?
<glen> i,e <<EOF and <<-EOF behave the same?
Feyn has joined #ruby
<glen> ah, <<EOF is syntax error
<zenspider> ?quickref glen
thbar has joined #ruby
Guest32 has quit [Read error: Connection reset by peer]
<glen> looks like whoever implemented ruby syntax misread shell script syntax :D
sdothum has joined #ruby
<glen> or did that in purpose, to make ruby different :P
<glen> ok, -EOF allows closing EOF being indented. so there's difference in ruby with <<EOF and <<-EOF
northfurr has quit [Quit: northfurr]
bronson has quit [Ping timeout: 244 seconds]
<glen> so. i'll go with this: puts <<-EOF.gsub(/^\s+/, '')
dhjondoh has joined #ruby
auzty has quit [Quit: Leaving]
vali has left #ruby [#ruby]
vali has joined #ruby
<vali> hi
blackmesa has joined #ruby
dhjondoh has quit [Ping timeout: 246 seconds]
skade has joined #ruby
<vali> I have a problem regarding an output (cassandra) that I'm using in logstash. The problem is related to a timestamp that I'm trying to insert into cassandra. More exactly stuff like 2015-08-27T13:03:50.400Z fails to be parsed as a timestamp and gets set to "1970-01-01 00:00:00"
<vali> if I look at the code, the timestamp is parsed with Cassandra::Types::Timestamp.new(Time::parse("1970-01-01 00:00:00"))
<vali> and ideas on what I could do to make it work as expected ?
chipotle has quit [Quit: cheerio]
<vali> if I do a manual insert into cassandra, it works as expected
tkuchiki has quit [Remote host closed the connection]
stardiviner has quit [Ping timeout: 240 seconds]
riotjones has quit [Read error: No route to host]
riotjones has joined #ruby
<zenspider> iso8604 should parse great. more importantly, don't use Time.parse if you know the format as it is terribly terribly slow
<vali> zenspider: what could I use ?
<jhass> >> require "time"; Time.iso8601("2015-08-27T13:03:50.400Z")
<ruboto> jhass # => 2015-08-27 13:03:50 UTC (https://eval.in/423318)
<zenspider> oops. I got the number wrong :P
dhjondoh has joined #ruby
msnyon has joined #ruby
<jhass> no worries, that's normal
<zenspider> in general, use Time.strptime
<zenspider> but this is a standard format, so it has a method
ferhaty has quit []
* zenspider goes to bed
leat has quit [Remote host closed the connection]
syath has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<vali> jhass: I'm not sure on how should I modify this line -> Cassandra::Types::Timestamp.new(Time::parse("1970-01-01 00:00:00"))
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
<vali> zenspider: thank for the info, still looking on how to update that line of code to match ok
GnuYawk has quit [Ping timeout: 244 seconds]
surs has joined #ruby
<jhass> vali: guess a few things and I say stop if you hit the right one
surs has quit [Changing host]
surs has joined #ruby
<vali> jhass: fair enough :)
dgutierrez1287 has joined #ruby
ndrei has joined #ruby
leat has joined #ruby
<vali> One guess would be : Cassandra::Types::Timestamp.new(Time.iso8601(msg[key]))
<jhass> lgtm
codecodecode123 has joined #ruby
ldnunes has joined #ruby
krz has quit [Read error: Connection reset by peer]
allcentury has joined #ruby
<vali> perfect,I'll try to build the gem...
banister has joined #ruby
jgt has joined #ruby
c0ncealed has joined #ruby
glen has left #ruby [#ruby]
<jhass> see, didn't even need anyone to make the change
dgutierrez1287 has quit [Ping timeout: 246 seconds]
<vali> well...I still needed you to point to correct function :)
<jhass> sure, not what I meant
elepedus has joined #ruby
<vali> but yea...the monkey work of changing to code was done by me :)
chipotle has joined #ruby
rushed has quit [Quit: rushed]
<codecodecode123> Hi, can I get some help? This script (https://gist.github.com/nolcay/8fbe24e602c913616061) is a script which is supposed to find regex in strings, but it gives me an enumerator.
<jhass> my point is trying your first best guess is what we programmers do all the time because it usually saves time for everybody involved to just quickly try out something ;)
glenn_ has quit [Quit: Konversation terminated!]
leat has quit [Remote host closed the connection]
dimasg has joined #ruby
jeadre has quit [Remote host closed the connection]
solocshaw has joined #ruby
jhass changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
pyon has quit [Remote host closed the connection]
dgutierrez1287 has joined #ruby
jeadre has joined #ruby
leat has joined #ruby
<vali> jhass: hmmm, ok I have compiled the gem and the code is running but everything gets set to the default value ...I'll make a gist...maybe you can point out what am I doing wrong..
pyon has joined #ruby
<apeiros> codecodecode123: in `foo bar do …` the do/end block belongs to foo, not bar
<apeiros> so `puts str.gsub() do` the block belongs to puts, not gsub.
<codecodecode123> ohhh
<jhass> ?gist_usage vali
<ruboto> vali, To properly use gist, please enable syntax highlighting, either by choosing the language manually or by entering a proper filename. If you post multiple things, separate them into multiple files. If you have a Github account, please update your gist with new information instead of posting a new one.
<vali> ok
<codecodecode123> let me try that
<codecodecode123> thanks apeiros, it worked
<codecodecode123> can you help me with a few othe bugs too?
<codecodecode123> *other
<jhass> vali: now so I don't have to second guess 300loc of maybe subtle mistakes calling klocs of library code I'm unfamiliar with abstracting systems I'm unfamiliar with, please describe the behavior you expect, you see, how you produce it and your best guess as to where the bug is
krz has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> you know, you can edit gists ;)
<vali> jhass: yea, I failed , and recreated it...
<vali> I'll explain the issue and expected behavior in a min
<jhass> " rescue Exception => e" though I can say already that is a really bad idea
<codecodecode123> apeiros: can you help me with other bugs too?
leat has quit [Remote host closed the connection]
<vali> The issue is that the timestamp that I'm sending is not working for some reason and logstash/ruby defaults to the default value that I've set.
<jhass> too vague
stardiviner has joined #ruby
leat has joined #ruby
<jhass> we need to determine your assumptions about your code and how to verify them
<vali> The exact error thrown from ruby is the following -> Cannot convert `timestamps` value (`2015-08-27 13:40:09 UTC`) to `timestamp` type, set to `2015-01-01 01:01:01 UTC`", :exception=>#<TypeError: can't convert Time into String>
<jhass> now that's more interesting isn't it? we already have a Time
codecodecode123 has quit [Quit: Page closed]
<jhass> so some String -> Time transformation already happened
<jhass> where's the backtrace pointing at?
<vali> seems like it
<vali> jhass: I have updated the gist
roolo has joined #ruby
benlovell has joined #ruby
<vali> 206:in `convert2cassandra_format!'"
<vali> I think thats the line
<vali> or line=>"267", :method=>"convert2cassandra_format!"}
<vali> not sure..
<jhass> looks like Cassandra::Types::Timestamp.new expects a string, not a Time?
<jhass> "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-cassandra-0.1.1/lib/logstash/outputs/cassandra.rb:214:in `convert2cassandra_format!'"
GnuYawk has joined #ruby
<jhass> where's Cassandra::Types::Timestamp documented?
roolo has quit [Ping timeout: 240 seconds]
devoldmx has joined #ruby
<jhass> looks like that's supposed to turn a String into a Time in the first place?
<jhass> that is do the right conversion for us?
yatish27 has joined #ruby
benlovell has quit [Ping timeout: 272 seconds]
<vali> hmmm, so it should be transformed to string but nevertheless it's complaining that it cannot be converted?
eGGsha is now known as eGGshke
eGGshke is now known as eGGsha
codecop has quit [Remote host closed the connection]
krz has quit [Read error: Connection reset by peer]
eGGsha is now known as eGGshke
blackmesa has quit [Ping timeout: 250 seconds]
<jhass> vali: mmh, actually since the backtrace points to a commented line inside your gist, I have some doubts the code you've shown is identical to the code producing that error
<vali> jhass: it's the same
<jhass> it can't be, backtraces don't mention commented lines
<vali> hmm, let me uninstall the gem
<vali> and reinstall
leat has quit [Remote host closed the connection]
dimasg has quit [Ping timeout: 260 seconds]
<jhass> vali: you shouldn't need to, with plain ruby just add -I/path/to/your/gems/lib to the invocation or with bundler use the path: option
devoldmx has quit [Ping timeout: 246 seconds]
leat has joined #ruby
Porfa has joined #ruby
yatish27 has quit [Ping timeout: 252 seconds]
<Porfa> so how's that snow.js ?
<jhass> sounds offtopic?
senayar has quit []
eGGshke is now known as eGGsha
<Porfa> hahaha it's that just yesterday i was cursing java and that it was so awesome to make lil snow fall in your browser and all of the sudden everyone was going down memory lane, that's just it jhass
freerobby has joined #ruby
garethrees has quit [Ping timeout: 244 seconds]
<Porfa> i need some advice.. i have ruby 2.2.3 and no rvm.. i want to try RVM because I'm having some problems installing a particular gem, so.. do i keep my system ruby, or can i remove it completely and just use RVM ?
<jhass> keep the system ruby
<vali> jhass: recompiled, reinstall, the code is the one that I added/modified. I have updated the gist
<jhass> just make sure to make a user install of RVM
yfeldblum has quit [Ping timeout: 246 seconds]
<Porfa> ok
<atmosx> Porfa: out of curiosity what system is that?
<Porfa> ubuntu.. please don't throw rocks at me
<jhass> vali: uh, since when do backtraces go through when's?
<jhass> 213 can't really be either with that code
<Porfa> atmosx: but i have a virtual host i can get any distro i want, actually that would be f*** nice to have a virtual machine just for my ruby and sinatra's
roolo has joined #ruby
<Porfa> any recommendations? i just need terminal, don't want any graphic server
<vali> jhass: made an update again with more log. Probably there is also stuff from logstash in there.
<jhass> vali: anyway, did you try passing the plain string yet, not doing any conversion yourself?
shadeslayer has quit [Ping timeout: 250 seconds]
<vali> jhass: no, haven't tried anything other than using that iso8601 on that value
<arup_r> I want to do PUT not POST .. where to change in this Curl ? https://ariejan.net/2010/06/07/uploading-files-with-curl/
<jhass> arup_r: did you read the manpage yet?
sorah_ is now known as sorah
shadeslayer has joined #ruby
<arup_r> jhass: No I just Googled.. and none worked till now.. So thinking to manage this current one..
<arup_r> let me do man
roolo has quit [Ping timeout: 246 seconds]
stardiviner has quit [Ping timeout: 255 seconds]
cynosures has quit [Remote host closed the connection]
rideh has quit [Changing host]
rideh has joined #ruby
bigredboots has joined #ruby
sdwrage has joined #ruby
<vali> jhass: after removing the iso, and just inserting it plain, the timestamp gets inserted as it should 2015-08-27 15:43:41+0200
<vali> it's dirty and no parsing/verification is being done but it will suffice until I know more on how to fix it the right way
<jhass> vali: see, just reading the error message is great, isn't it!
solocshaw has quit [Ping timeout: 246 seconds]
<jhass> vali: and please really really reconsider rescuing Exception
<jhass> vali: at least lower it to the default (specifying none, RuntimeError)
<jhass> vali: but yet better list the exceptions you expect specifically
<jhass> you only hide errors that way
senayar has joined #ruby
<vali> jhass: I will open an issue with the guy that did the output and see if he can help me also with this.
shadeslayer has quit [Ping timeout: 260 seconds]
<vali> I will also suggest him the stuff that you mentioned
sankaber has joined #ruby
<vali> thank you for the help!
shadeslayer has joined #ruby
<vali> greatly appreciate it.
yatish27 has joined #ruby
<arup_r> jhass: figured out
<arup_r> thanks -X PUT
<jhass> reading docs is great isn't it
<jhass> doesn't need to bother people with offtopic questions
zerolith has joined #ruby
blackmesa has joined #ruby
zerolith has left #ruby [#ruby]
krz has joined #ruby
araujo_ has joined #ruby
leat has quit [Remote host closed the connection]
araujo has quit [Ping timeout: 260 seconds]
scroff has joined #ruby
leat has joined #ruby
rfmind_ has joined #ruby
rbennacer has joined #ruby
<Porfa> (should i see the teamthreehouse ruby tutorial videos? because the bald guy that appears in the beginning scared the hell out of me with that kanye west smile)
dimasg has joined #ruby
Zai00 has joined #ruby
fmcgeough has joined #ruby
christiandsg has joined #ruby
ecnalyr has joined #ruby
<Porfa> 8sorry about that, i though that was free… damn)
dimasg has quit [Ping timeout: 256 seconds]
mamercad has quit [Ping timeout: 256 seconds]
Eiam has joined #ruby
leat has quit [Remote host closed the connection]
ecnalyr has quit [Ping timeout: 240 seconds]
leat has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]
Vile` has quit [Ping timeout: 255 seconds]
mutuma has joined #ruby
codenapper has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
<Porfa> anyone?
Gribo has joined #ruby
<Porfa> i've been doing some simple ruby scripts, but i want to get on and learn this for real, i want to dedicate my whole time to this because I'm really enjoying the possibilities and what i just read now about rails. I'm wondering if Beginning Ruby by Peter Cooper is a good book to start from zero
krz has quit [Quit: WeeChat 1.2]
<[k-> read many books
<Porfa> yeah, but i need to start with one, i have no previous programing skills at all
<Porfa> i can't read several books at the same time
dhjondoh has joined #ruby
<[k-> who says you cant
jgt has quit [Ping timeout: 240 seconds]
<[k-> they usually start the same and all that
<Porfa> I, because i know myself better than you :)
<Porfa> haha
dhjondoh has quit [Client Quit]
<Porfa> but i i can't buy several books at the same time..
System42 has joined #ruby
leat has quit [Remote host closed the connection]
<[k-> ?books
<ruboto> You can find a list of recommended books at http://ruby-community.com/pages/links
<[k-> yay
<jhass> Porfa: Chris Pine's Learn to program is generally recommended as entry level
leat has joined #ruby
System42 has left #ruby [#ruby]
codenapper has quit []
chinmay_dd has quit [Quit: See ya!]
jiada has joined #ruby
victortyau has joined #ruby
jiada has quit [Remote host closed the connection]
<maloik> Did we have anyone here on the rubygems team? Or someone who's aware of the rubygems-mirror project?
<maloik> I have a quick question
_blizzy_ has quit [Ping timeout: 255 seconds]
<maloik> We're doing a rubycamp and it turns out we won't have an internet connection, so I was thinking of getting a VM with a rubygems mirror... but I have no idea what kind of size I'll need to expect that to be
pawnbox has quit [Remote host closed the connection]
esparta90 has joined #ruby
AlphaAtom has quit [Read error: Connection reset by peer]
<maloik> The rubycamp is tomorrow already, so we'd have to get on it fast :-)
freerobby has quit [Read error: No route to host]
codenapper has joined #ruby
esparta90 has quit [Quit: Konversation terminated!]
freerobby has joined #ruby
<maloik> A rough idea on the feasibility would be fine, I have no clue about if I should be even looking into this or not with only a day to go
zerolith has joined #ruby
pawnbox has joined #ruby
dstarh has joined #ruby
bigredboots has quit [Remote host closed the connection]
leat has quit [Remote host closed the connection]
pyon has quit [Quit: Whoa, Emacs sucks.]
d10n-work has joined #ruby
eGGsha is now known as eGGshke
eGGshke is now known as eGGsha
chipotle has quit [Quit: cheerio]
benlovell has joined #ruby
eGGsha is now known as eGGshke
dhjondoh has joined #ruby
poli has joined #ruby
terlar has quit [Ping timeout: 246 seconds]
devoldmx has joined #ruby
eGGshke is now known as eGGsha
ddubs has joined #ruby
<ddubs> hey peoples
jgt has joined #ruby
<ddubs> having an issue where im trying to spawn and execute a command
rideh is now known as rideh^
rideh^ is now known as rideh
rbennacer has quit [Remote host closed the connection]
pyon has joined #ruby
meph has joined #ruby
<ddubs> and the command i'm executing also tries to do some subprocess stuff (example: Process.spawn(`echo $(facter some_fact_here)`)
devoldmx has quit [Ping timeout: 250 seconds]
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
<[k-> use Process.spawn("echo...") instead if `
<ddubs> o whoops i actually am passing just a string - the string im passing actually goes through a little ERB before being passed to spawn
dopamean_ has quit [Ping timeout: 245 seconds]
dhjondoh has quit [Quit: dhjondoh]
armin has quit [Quit: [m]]
amystephen has joined #ruby
codenapper has quit [Quit: Textual IRC Client: www.textualapp.com]
codenapper has joined #ruby
kristofferR has joined #ruby
JDiPierro has joined #ruby
freerobby has quit [Quit: Leaving.]
enebo has joined #ruby
dhjondoh has joined #ruby
sevenseacat has joined #ruby
scroff has quit [Quit: WeeChat 0.4.2]
bmn has quit [Ping timeout: 260 seconds]
whippythellama has joined #ruby
scroff has joined #ruby
dblessing has joined #ruby
tvw has joined #ruby
malconis has joined #ruby
perrier_ has quit [Remote host closed the connection]
umgrosscol has joined #ruby
malconis has quit [Remote host closed the connection]
malconis has joined #ruby
nettoweb has joined #ruby
benlovell has quit [Ping timeout: 250 seconds]
diegoaguilar has joined #ruby
rideh is now known as rideh^
devdazed has joined #ruby
mhib has quit [Read error: Connection reset by peer]
anisha has quit [Quit: Leaving]
sdfgsdfg has quit [Remote host closed the connection]
zerolith has quit [Quit: WeeChat 0.4.2]
dhjondoh has quit [Quit: dhjondoh]
Cust0sLim3n has quit [Ping timeout: 256 seconds]
dimasg has joined #ruby
ta has quit [Remote host closed the connection]
bmn has joined #ruby
NeverDie has joined #ruby
leat has joined #ruby
dumdedum has quit [Quit: foo]
ngw has joined #ruby
pawnbox has quit [Remote host closed the connection]
<ngw> hi *
ghr has joined #ruby
manila90 has quit [Remote host closed the connection]
casadei has joined #ruby
hmnhf has joined #ruby
<ngw> what's the preferred gem for consuming an http stream?
dimasg has quit [Ping timeout: 255 seconds]
TvL2386 has quit [Quit: Ex-Chat]
benlovell has joined #ruby
leat has quit [Remote host closed the connection]
riotjones has quit [Remote host closed the connection]
Cust0sLim3n has joined #ruby
JDiPierro has quit [Remote host closed the connection]
riotjones has joined #ruby
nofxx has joined #ruby
nofxx has joined #ruby
riotjones has quit [Remote host closed the connection]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
leat has joined #ruby
dionysus69 has quit [Ping timeout: 246 seconds]
hinbody has joined #ruby
hashrocket has joined #ruby
JEG2 has joined #ruby
Vile` has joined #ruby
kristoff_ has joined #ruby
<hmnhf> Hi everyone, is there a better solution for unescaping special characters?
ngw has quit [Quit: Linkinus - http://linkinus.com]
ta has joined #ruby
havenwood has joined #ruby
JDiPierro has joined #ruby
<jhass> hmnhf: where's that data coming from for you?
<jhass> who manages to fuck up and write "\\n" instead of "\n" to it?
saddad has joined #ruby
<hmnhf> jhass: It's one of the rails request params.
Rinzlit1 has quit [Ping timeout: 255 seconds]
<jhass> so?
<jhass> let's ask differently, how did you verify you need to unescape anything?
kristofferR has quit [Ping timeout: 252 seconds]
kinduff has joined #ruby
dopamean_ has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
khebbie has quit [Remote host closed the connection]
Timba-as has joined #ruby
r_baron has joined #ruby
jeffreylevesque has joined #ruby
nofxx has quit [Ping timeout: 244 seconds]
<jeffreylevesque> i have 1.8, is that old?
<wasamasa> yes
<jeffreylevesque> how do i update?
<wasamasa> we're on 2.2.3 now
<adaedra> that's dinosaur-level old
<adaedra> what system are you on, jeffreylevesque ?
<wasamasa> depends how you've installed it :P
<jeffreylevesque> centos6.6
nofxx has joined #ruby
<wasamasa> oh shit
<jeffreylevesque> yah, old
<adaedra> you won't get any recent ruby on centos 6 now, the best you can have with vendor provided is 1.9.3
<hmnhf> jhass: When rails escapes the newlines this method fails
<adaedra> you will have to use something like ruby-install+chruby or rbenv
dgutierrez1287 has quit [Remote host closed the connection]
<jeffreylevesque> i just need to convert less to sass
<jeffreylevesque> less2sass is a gem package
blue_deref has joined #ruby
lkba has quit [Read error: Connection reset by peer]
lkba_ has joined #ruby
<wasamasa> excellent quality there
<jhass> hmnhf: that doesn't check for "escaped newlines", it simply checks if there are any
sdwrage has quit [Quit: This computer has gone to sleep]
<adaedra> jeffreylevesque: well, it may work on 1.8 anyway
pawnbox has joined #ruby
<jhass> hmnhf: maybe you need to .strip your input? you
<jhass> 're still quite vague about your problem
araujo__ has joined #ruby
<wasamasa> adaedra: just look at that code
<adaedra> wasamasa: I did
<adaedra> I'm still doing it
linuxboytoo has joined #ruby
<wasamasa> this is gold
araujo_ has quit [Ping timeout: 265 seconds]
voltalio has joined #ruby
<adaedra> If it doesn't work in 1.8 and don't want to install a ruby manually, you can always convert this gem to sed commands, jeffreylevesque
sdwrage has joined #ruby
<wasamasa> or just turn it into a ruby script
araujo__ has quit [Max SendQ exceeded]
patrick_star has joined #ruby
paulcsmith has joined #ruby
greenbigfrog has left #ruby [#ruby]
khebbie has joined #ruby
<jeffreylevesque> how can update to 1.9x?
kristoff_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
leat1 has joined #ruby
bigbadbear has joined #ruby
leat has quit [Ping timeout: 240 seconds]
<jhass> 1.9 is EOL too, that's pretty pointless if you're going through the effort of updating again
<jhass> *already I mean
Limix has joined #ruby
ckinniburgh has joined #ruby
Vile` has quit [Ping timeout: 252 seconds]
roolo has joined #ruby
freerobby has joined #ruby
stevednd has quit [Remote host closed the connection]
rbennacer has joined #ruby
<jhass> then it fails because of the \, not because of the combination of \n
ta has quit [Remote host closed the connection]
<jhass> ah and actually I read the regex backwards, \n is explicitly allowed even
ferhaty has joined #ruby
<jhass> so, question remains, who sends you that param? it contains a literal \ followed by a literal n, it probably meant to include a properly encoded \n
<kinduff> is there a convention to do type checking, within a function for example?
freerobby1 has joined #ruby
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has quit [Remote host closed the connection]
<jhass> kinduff: avoid it as long as you can, assume you got the right thing and call the corresponding method
freerobby has quit [Read error: Connection reset by peer]
<jhass> if you can convert the type you get raise TypeError, if you can't handle the type you get raise ArgumentError
jgpawletko has joined #ruby
roolo has quit [Ping timeout: 244 seconds]
<kinduff> makes sense, I just read about an apporach using rescue block with type verification based on function arguments, so I wondered if there was a convention for it
<jhass> link?
<kinduff> been doing ruby for 3 years now, never had to do type checking tho
<jhass> that looks horrible
davedev24 has joined #ruby
giuseppesolinas has joined #ruby
ferhaty has quit [Client Quit]
<kinduff> indeed haha
pawnbox has joined #ruby
<hmnhf> jhass: Currently I'm generating a sample notification with https://github.com/braintree/braintree_ruby/blob/master/lib/braintree/webhook_testing_gateway.rb#L9
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
_blizzy_ has joined #ruby
<hmnhf> and then posting it to rails via postman
leat1 has quit [Remote host closed the connection]
thbar has quit [Ping timeout: 246 seconds]
leat1 has joined #ruby
dumdedum has joined #ruby
<jhass> hmnhf: I bet if I'd get that code and stuff the result of that method into parse it'll work, so that doesn't show where you improperly pass stuff along
Eiam has joined #ruby
dionysus69 has joined #ruby
pauly_oc has quit [Ping timeout: 264 seconds]
willharrison has joined #ruby
pawnbox has quit [Remote host closed the connection]
mutuma has quit [Quit: mutuma]
_blizzy_ has quit [Read error: Connection reset by peer]
<[k-> look at Contracts!
s2013 has joined #ruby
<jhass> [k-: feels like the trolls are back...
roger_rabbit has joined #ruby
mburns has quit [Quit: ZNC - http://znc.in]
<adaedra> back to the USSR?
kinduff has quit []
<[k-> isnt this about type checking now
mburns has joined #ruby
giuseppesolinas has left #ruby ["Leaving"]
<hmnhf> jhass: So if I'm posting parameters the wrong way, I think there won't be a problem when braintree sends the real notifications, thanks for the help :)
kinduff has joined #ruby
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
riotjones has joined #ruby
_blizzy_ has joined #ruby
<IceDragon> wassssssssup, brothers and sisters :D
pawnbox has joined #ruby
<jhass> hmnhf: for all I can tell so far it might as well be them fucking it up, but IME in 98% of the process where a literal \ followed by a literal n appears and causes troubles, somebody did something wrong
<IceDragon> I hope I don't get shot for saying that...
<jhass> skin is admittedly a bit thin after yesterday, so maybe don't stress it ;)
<IceDragon> :) whats the latest and greatest jhass
kinduff has quit [Client Quit]
<jhass> crystal is now in the archlinux community repository <3
<IceDragon> I haven't spoken, or looked at the channel for weeks, the summer has been stressing me to no ends
<[k-> 2.2.3!
UtkarshRay has joined #ruby
Gnomethrower has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<IceDragon> jhass: You mean I can try it now without manually compiling it!?
khebbie has quit [Remote host closed the connection]
<IceDragon> YES
leat1 has quit [Remote host closed the connection]
<IceDragon> [k-: Yeah, I noticed, what's the highlight for 2.2.3?
leat1 has joined #ruby
iamninja has quit [Ping timeout: 246 seconds]
<[k-> bug fixes
Pupeno has joined #ruby
<havenwood> IceDragon: The 3 is the big change.
<IceDragon> Booooo
<[k-> only a minor release
christiandsg has joined #ruby
<havenwood> IceDragon: gem update --system
* IceDragon throws tomatoes
elepedus has quit [Quit: elepedus]
bmn has quit [Quit: obai]
<[k-> tomato throwing day was in fact yesterday
<[k-> too bad you missed it
jeadre has quit [Remote host closed the connection]
<IceDragon> darn, I missed it then
pawnbox has quit [Remote host closed the connection]
<[k-> google had a doodle for the special occasion
<IceDragon> ping me next time there is a tomato throwing day, I'll arm my tomtato launcher :P
riotjones has quit [Ping timeout: 250 seconds]
<adaedra>
pawnbox has joined #ruby
<IceDragon> havenwood: You know, I've never ran `gem update --system`
<IceDragon> like never
tagrudev has quit [Read error: Connection reset by peer]
<sevenseacat> you probably should.
<[k-> ^
noobQ has quit [Quit: bash]
tagrudev has joined #ruby
<IceDragon> archlinux just re-installs ruby with the latest stuff normally
<IceDragon> ┐( ̄ヮ ̄)┌
<[k-> there were some critical updates
jeadre has joined #ruby
<IceDragon> [k-: Well, now that I know, I'll do it on a regular basis alongside system updates
voltalio has joined #ruby
<shevy> IceDragon!
<shevy> you are alive
<IceDragon> :D
<IceDragon> SHEVY MA MAN
lele is now known as Guest24
<jhass> IceDragon: actually not, I tried to get anatolik to patch in a newer rubygems, but no dice
* IceDragon brohugs
<shevy> not killed by a party of dragonfighters
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<IceDragon> barely survived, they ambushed me on a rainy day!
<[k-> shevy didn't even respond to my poke :(
<IceDragon> ;-; you know how rain is on an icedragon don't ya
<IceDragon> [k-: You gotta reach bro status :P
<[k-> ?shevy
<ruboto> shevy is the hound of baskerville
<adaedra> Water on Ice is x1 though
<IceDragon> adaedra: you did not... D:
pawnbox has quit [Ping timeout: 244 seconds]
<adaedra> What did I not?
qweb_ has left #ruby [#ruby]
<IceDragon> &pokemon
<adaedra> I totally did #noshame
<IceDragon> #unbelievable
christiandsg has quit [Ping timeout: 265 seconds]
<adaedra> It's super effective.
pawnbox has joined #ruby
<IceDragon> speaking of pokemon, I need to pick up my alpha sapphire at some point in the future..
bmn has joined #ruby
kinduff has joined #ruby
<hmnhf> jhass: It's not just one sudden "\n", braintree's gem actually is generating these newlines, but when rails gets the request, it somewhere escapes the parameter's newlines
<hmnhf> jhass: Thanks anyways :) I'll figure it out.
roger_rabbit has quit [Quit: WeeChat 0.3.8]
<jhass> hmnhf: I still claim that the way the request is sent in introduces those as literals
<jhass> hmnhf: how do you test, curl on the shell?
tkuchiki has joined #ruby
<hmnhf> I'm using postman, but let me test it with curl and see what happens.
krz has joined #ruby
<IceDragon> hmnhf: it was probably escaped before, try a gsub('\n', "\n")?
<jhass> IceDragon: no
<jhass> that's just working around the bug
<IceDragon> ! *bows* your right
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kinduff has quit [Client Quit]
<IceDragon> *you're
<jhass> >> require "cgi";
<ruboto> jhass # => true (https://eval.in/423587)
<jhass> CGI.escape("ICAgICAgICA8bm90aWZpY2F0aW9uPgogICAgICAgICAgPHRpbWVzdGFtcCB0\neXBlPSJkYXRldGltZSI+MjAxNS0wOC0yN1QxMjoyMTo1NVo8L3RpbWVzdGFt\ncD4KICAgICAgICAgIDxraW5kPnN1YnNjcmlwdGlvbl93ZW50X3Bhc3RfZHVl\nPC9raW5kPgogICAgICAgICAgPHN1YmplY3Q+CiAgICAgICAgICAgICAgICAg\nICAgPHN1YnNjcmlwdGlvbj4KICAgICAgICAgIDxpZD4zMzMzPC9pZD4KICAg\nICAgICAgIDx0cmFuc2FjdGlvbnMgdHlwZT0iYXJyYXkiPgogICAgICAgICAg\nPC90cmFuc2FjdGlvbnM+CiAgICAgIC
<jhass> AgICA8YWRkX29ucyB0eXBlPSJhcnJh\neSI+CiAgICAgICAgICA8L2FkZF9vbnM+CiAgICAgICAgICA8ZGlzY291bnRz\nIHR5cGU9ImFycmF5Ij4KICAgICAgICAgIDwvZGlzY291bnRzPgogICAgICAg\nIDwvc3Vic2NyaXB0aW9uPgoKICAgICAgICAgIDwvc3ViamVjdD4KICAgICAg\nICA8L25vdGlmaWNhdGlvbj4K\n")
<jhass> sigh
<IceDragon> IRB m8
Iskarlar has joined #ruby
<jhass> yeah, wanted to demo
linuxboy_ has joined #ruby
arup_r has quit []
<jhass> hmnhf: copy the result of CGI.escape(sample_notification[:bt_signature]) / CGI.escape(sample_notification[:bt_payload]) into postman
voltalio has quit [Quit: Textual IRC Client: www.textualapp.com]
kinduff has joined #ruby
roger_rabbit has joined #ruby
voltalio has joined #ruby
<hmnhf> jhass: I tried with curl and still it's the same
<hmnhf> jhass: I'll try that.
linuxboytoo has quit [Ping timeout: 260 seconds]
j_mcnally has joined #ruby
AlphaAtom has joined #ruby
silkfox has joined #ruby
linuxboy_ has quit [Ping timeout: 250 seconds]
ckinniburgh_ has joined #ruby
psy_ has quit [Ping timeout: 265 seconds]
bigbadbear has quit [Ping timeout: 260 seconds]
dotplus has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
yqt has joined #ruby
leat1 has quit [Remote host closed the connection]
saddad has quit [Ping timeout: 256 seconds]
Vile` has joined #ruby
bigredboots has joined #ruby
leat1 has joined #ruby
Feyn has quit [Quit: Leaving]
revoohc has quit [Quit: revoohc]
revoohc has joined #ruby
ckinniburgh has quit [Ping timeout: 260 seconds]
<hmnhf> jhass: Escaping with CGI didn't work neither.
Torrieri has joined #ruby
Torrieri has joined #ruby
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
benlovell has quit [Ping timeout: 244 seconds]
<hmnhf> jhass: I'll try testing it with a real braintree notification, thanks again :)
<jhass> hmnhf: it even includes the "s ?!
giuseppesolinas has joined #ruby
<hmnhf> jhass: Which "s? where? didn't find anything :D
<jhass> "\"I
fumk has joined #ruby
davedev2_ has joined #ruby
<jhass> is postman taking your input literal, not interpreting escape sequences but rencoding it?
<jhass> do puts sample_notification[:bt_payload] and copy paste that output
rbennacer has quit [Read error: Connection reset by peer]
sphex_ has joined #ruby
rbennacer has joined #ruby
davedev__ has joined #ruby
rippa has joined #ruby
livathinos has quit []
davedev24 has quit [Ping timeout: 246 seconds]
ndrei has quit [Ping timeout: 264 seconds]
molawson has joined #ruby
<hmnhf> jhass: Yes, postman was messing it up, tried the CGI#escape's output with curl and it works.
<hmnhf> jhass: Thanks :D
chouhoulis has joined #ruby
davedev2_ has quit [Ping timeout: 246 seconds]
sphex has quit [Ping timeout: 265 seconds]
molawson has quit [Client Quit]
molawson has joined #ruby
chouhoul_ has quit [Ping timeout: 244 seconds]
startupality has joined #ruby
livathinos has joined #ruby
acke has quit [Remote host closed the connection]
livathinos has quit [Client Quit]
cjbottaro has joined #ruby
bigredbo_ has joined #ruby
davedev24 has joined #ruby
Vile` has quit [Ping timeout: 260 seconds]
dr3w has joined #ruby
bigredboots has quit [Ping timeout: 244 seconds]
gamename has joined #ruby
cschneid_ has joined #ruby
bulibuta has joined #ruby
elepedus has joined #ruby
<bulibuta> hi, if I add a method to an opened class how can I make sure it gets passed down to its subclasses?
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davedev__ has quit [Ping timeout: 244 seconds]
fgo has joined #ruby
janno has joined #ruby
s2013 has joined #ruby
<bulibuta> say I have class Song defined and included with a require 'Song' and I add a record method to it in my script. Now Song has ClassicalSong subclass that was defined *before* I added the record method, will ClassicalSong get it after adding it to Song class?
<Ox0dea> ?try bulibuta
<ruboto> bulibuta, Why don't you try it and see for yourself?
cjbottaro has quit [Quit: Textual IRC Client: www.textualapp.com]
<bulibuta> I tried it and it does not work
allcentury has quit [Ping timeout: 244 seconds]
<bulibuta> now I'm thinking maybe I'm doing something wrong
<bulibuta> I even tried sending it as an InstanceMethod via include
nitenq has joined #ruby
devoldmx has joined #ruby
Vile` has joined #ruby
<jhass> ?code
<ruboto> We can't help you without your code, please post it to https://gist.github.com
pawnbox has quit [Remote host closed the connection]
RobertBirnie has joined #ruby
<Ox0dea> >> class A; end; class B < A; end; class A; def foo; end end; B.instance_methods.include? :foo # bulibuta
<ruboto> Ox0dea # => true (https://eval.in/423596)
<bulibuta> neat!
<Ox0dea> Obvious
<Ox0dea> :P
<Ox0dea> InstanceMethod is not a Ruby thing, for what that's worth.
<[k-> Ox0dea!
<bulibuta> it was obvious to me as well, but I guess I'm making a stupid mistake in my code
<Ox0dea> Method and UnboundMethod are classes, but not InstanceMethod.
<Ox0dea> bulibuta: Do you actually have an instance of InstanceMethod somehow?
linuxboytoo has joined #ruby
aganov has quit [Remote host closed the connection]
<bulibuta> when I saw that something like your example isn't working I looked it up online and stumbled on this: http://stackoverflow.com/questions/10692961/inheriting-class-methods-from-mixins
ngscheurich has joined #ruby
<bulibuta> so I tried that
<Ox0dea> [k-: 43388
<bulibuta> that's what I mean by InstanceMethods
molawson has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RobertBi_ has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
failshell has joined #ruby
centrx has joined #ruby
RobertBirnie has quit [Ping timeout: 260 seconds]
<Ox0dea> bulibuta: Ah, fair enough. You do indeed have to do things a bit more "manually" if you intend to inherit mixed-in methods.
jas02 has quit [Quit: jas02]
<Ox0dea> There are ways to determine which classes have subclassed you, on which you can #include the relevant mixin.
<bulibuta> yeah... I'll see, now I'm happy that the example you gave works
<Ox0dea> But monitoring #included is usually cleanest.
<bulibuta> and I'm certain my code is wrong
yardenbar has quit [Quit: Leaving]
bigredbo_ has quit []
<bulibuta> yup... thanks for your help!
<Ox0dea> Sure thing. :)
whippythellama has quit [Quit: WeeChat 1.3]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
polysics has joined #ruby
platzhirsch has joined #ruby
banjara has joined #ruby
RobertBi_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
unver has joined #ruby
snockerton has joined #ruby
rubie has joined #ruby
pawnbox has joined #ruby
tagrudev has quit [Remote host closed the connection]
sanguisdex has quit [Ping timeout: 252 seconds]
riotjones has joined #ruby
banjara has quit [Client Quit]
t0rc has joined #ruby
nitenq has quit [Read error: Connection reset by peer]
skade has joined #ruby
<jeffreylevesque> when i do `gem update --system` i get that I don't have write permission for the /usr/local/lib/ruby/gems/2.1.0 directory
elepedus has quit [Quit: elepedus]
ecnalyr has joined #ruby
<jhass> jeffreylevesque: how did you install ruby?
<jeffreylevesque> the user of the directory is root root
<jeffreylevesque> i am user `vagrant`
<jhass> oh well
<jeffreylevesque> but you're not supposed to run as root?
<jhass> you need to run the command with root permissions, yes
attamusc has joined #ruby
<jeffreylevesque> when i run as root
<jeffreylevesque> it says 'gems' not found
<jhass> "gem", not "gems"
<jeffreylevesque> sudo: gem command not found
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> then your sudo setup doesn't have /usr/local/bin in it's path I guess
dfockler has joined #ruby
t0rc has quit [Client Quit]
<jeffreylevesque> how can i do that?
riotjones has quit [Ping timeout: 245 seconds]
pauly_oc has joined #ruby
<jhass> idk, I don't touch CentOS with a stick, especially 6
<[k-> Ox0dea: hello is 43110
molawson has joined #ruby
sanguisdex has joined #ruby
xet7 has joined #ruby
Cache_Money has joined #ruby
polpak has joined #ruby
sevenseacat has quit [Quit: .]
unver has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
Limix has quit [Quit: Limix]
chouhoulis has quit [Remote host closed the connection]
benlovell has joined #ruby
chouhoulis has joined #ruby
UtkarshRay has quit [Ping timeout: 246 seconds]
<Ox0dea> >> 43388.to_s 16 # [k-
<ruboto> Ox0dea # => "a97c" (https://eval.in/423609)
anandubajith has joined #ruby
minimuffins has joined #ruby
psy_ has joined #ruby
khebbie has joined #ruby
roxtrongo has quit [Read error: Connection reset by peer]
<[k-> :/
<Ox0dea> [k-: Do you actually use T9, then?
<[k-> no
roxtrongo has joined #ruby
dionysus69 has quit [Quit: dionysus69]
Travis-42 has joined #ruby
stan has quit [Ping timeout: 246 seconds]
rehat_ has joined #ruby
nitenq has joined #ruby
<Travis-42> I’m trying to understand the changes ruby 2.2 made to hash keys that are string. prior to 2.2, env[“PATH_INFO”.freeze] would be faster and reduce memory allocations compared to env[“PATH_INFO”] multiple times across a project. Am I understanding correctly that in 2.2, ruby does this automatically now?
tkuchiki has quit [Remote host closed the connection]
khebbie has quit [Remote host closed the connection]
<jhass> yes, but I thought that's done for some time before
<Travis-42> I was basing it off of, http://www.sitepoint.com/unraveling-string-key-performance-ruby-2-2/ — but it could be wrong
tkuchiki has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Travis-42> I find in ruby 2.2.3, benchmaring ENV["PATH_INFO”] is still 1.3x slower than ENV["PATH_INFO".freeze] — is that still expected?
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
blue_deref has quit [Quit: bbn]
<Ox0dea> 21>> {'foo'=>1}.keys[0].frozen?
<ruboto> Ox0dea # => true (https://eval.in/423614)
whippythellama has joined #ruby
<Ox0dea> 20>> {'foo'=>1}.keys[0].frozen?
<ruboto> Ox0dea # => true (https://eval.in/423615)
<jhass> >> "foo"f.frozen
<ruboto> jhass # => /tmp/execpad-2c2acb6948a0/source-2c2acb6948a0:2: syntax error, unexpected tIDENTIFIER, expecting key ...check link for more (https://eval.in/423616)
<jhass> >> "foo"f.frozen?
<ruboto> jhass # => /tmp/execpad-89a091a7e29a/source-89a091a7e29a:2: syntax error, unexpected tIDENTIFIER, expecting key ...check link for more (https://eval.in/423617)
<Ox0dea> jhass: ?
<jhass> didn't we have a shortcut now?
<Ox0dea> No?
<Travis-42> it was only discussed I think, jhass
xhosae has quit [Remote host closed the connection]
atomical has joined #ruby
unver has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has joined #ruby
<Ox0dea> Travis-42: How are you benchmarking? That disparity makes little sense.
<Travis-42> benchmark/ips
rcvalle has joined #ruby
<Ox0dea> Travis-42: You're benchmarking the cost of string creation there.
platzhirsch1 has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
araujo has joined #ruby
araujo has quit [Max SendQ exceeded]
leat1 has quit [Remote host closed the connection]
platzhirsch1 has left #ruby [#ruby]
platzhirsch has quit [Ping timeout: 250 seconds]
<Travis-42> so then it’s not really the case that hash[“key”] is optimized the same as hash[“key”.frozen] in ruby 2.2?
<Travis-42> even if when creating hashes, the keys are set to frozen
<Ox0dea> Yes, I demonstrated that that has been the case since 2.0.
araujo has joined #ruby
<jhass> Travis-42: freezing the keys speeds up hash access
araujo has quit [Read error: Connection reset by peer]
<Travis-42> right, but if I’m trying to reduce object allocations, I need to access the hash using frozen string?
<jhass> as Ox0dea said you benchmark "foo" vs "foo".freeze, not h[foo].frozen? == true vs h[foo].frozen? == false
<Ox0dea> >> 'foo'.freeze.__id__ == 'foo'.freeze.__id__ # Travis-42
<ruboto> Ox0dea # => true (https://eval.in/423619)
blackmes1 has joined #ruby
leat1 has joined #ruby
<Mon_Ouie> It's also relevant to just look at what bytecode is generated for each version
Eiam has joined #ruby
khebbie has joined #ruby
Travis-42 has quit [Quit: Travis-42]
pawnbox has quit [Remote host closed the connection]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
attamusc has quit [Read error: Connection reset by peer]
khebbie has quit [Remote host closed the connection]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 244 seconds]
nitenq has quit [Read error: Connection reset by peer]
atomical has joined #ruby
psy_ has quit [Ping timeout: 246 seconds]
blackmes1 has quit [Ping timeout: 252 seconds]
tkuchiki has quit [Remote host closed the connection]
roolo has joined #ruby
mlue has quit []
nitenq has joined #ruby
roxtrong_ has joined #ruby
greenbigfrog has joined #ruby
gambl0re has quit [Remote host closed the connection]
Silox| has joined #ruby
ndrei has joined #ruby
gambl0re has joined #ruby
<greenbigfrog> hi. does soemone know a site where the formatting of json API's is explained good?
ramfjord has joined #ruby
<jhass> how about http://jsonapi.org/
platzhirsch1 has joined #ruby
platzhirsch1 has left #ruby [#ruby]
evrial has joined #ruby
rubie has quit [Remote host closed the connection]
<greenbigfrog> jhass: ty
roolo has quit [Ping timeout: 250 seconds]
_blizzy_ has quit [Ping timeout: 255 seconds]
blackmes1 has joined #ruby
yatish27_ has joined #ruby
RobertBirnie has joined #ruby
roxtrongo has quit [Ping timeout: 256 seconds]
<greenbigfrog> ok... so that's actually not what I was looking for... I wasn't clear enough..
<greenbigfrog> I am looking for a site where it's explained how I can only output a part of an API that I called...
codenapper has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> that's not any more clear
<shevy> json is simple
<[k-> and shevy still hasnt responded to my poke!
yatish27 has quit [Ping timeout: 246 seconds]
<shevy> it's not nice to poke!
<greenbigfrog> ok... you don't really understand what I want I gues so here comes an example:
<greenbigfrog> If I call that API I have a very long string... if I now put that I get the whole thing... but I only want to get f.e. the game
CorySimmons has joined #ruby
[Butch] has joined #ruby
radgeRayden has joined #ruby
<adaedra> ?poke shevy
<ruboto> shevy, I don't know anything about poke
<adaedra> :<
Hounddog has quit [Remote host closed the connection]
<adaedra> greenbigfrog: well, you have to deserialize it
ghr has quit [Read error: No route to host]
<shevy> greenbigfrog can you extract the substring you want?
ghr has joined #ruby
<shevy> looks very hashy
patteh_ is now known as patteh
<shevy> "stream":{"_id":16028672432,"game":"
<shevy> in ruby that would be ['stream']['game'] if that were a hash
leat1 has quit [Remote host closed the connection]
<greenbigfrog> I'm not that experienced with ruby so...
<greenbigfrog> shevy: ok
<greenbigfrog> shevy: let me test that
leat1 has joined #ruby
<shevy> right but you know how to access a hash key in ruby
jeadre has quit [Read error: Connection reset by peer]
<shevy> >> hash = { 'cat' => 'Tom', 'mouse' => 'Jerry' }; hash['mouse']
<ruboto> shevy # => "Jerry" (https://eval.in/423626)
<greenbigfrog> yeah... got that point
<shevy> good, so now you only need to get it into a ruby hash
<shevy> I think JSON.parse() should do
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_blizzy_ has joined #ruby
jeadre has joined #ruby
<greenbigfrog> shevy: I know how to parse it... just didn't know how to go in "the second level"
pawnbox has joined #ruby
bulibuta has quit [Quit: Leaving.]
<adaedra> :T
<shevy> you can put a hash into a hash into a hash like those matroshka dolls
<greenbigfrog> it's working now... thanks for everyones help!!!
<shevy> the adventures of the big green frog can continue \o/
trampi has joined #ruby
<shevy> we have an IceDragon here too if you look for some dragon slaying...
linuxboytoo has quit [Remote host closed the connection]
<IceDragon> D8<
gizmore has joined #ruby
renderful has joined #ruby
Lucky__ has joined #ruby
dgutierrez1287 has joined #ruby
codenapper has joined #ruby
yatish27_ has quit []
paulcsmith has quit [Quit: Lingo: www.lingoirc.com]
c0m0 has quit [Ping timeout: 264 seconds]
linuxboy_ has joined #ruby
nitenq has quit [Read error: Connection reset by peer]
auxbuss has joined #ruby
<Ox0dea> >> a = {}; a[a] = a; a.rehash; a[a][a][a][a][a] == a # shevy
<ruboto> Ox0dea # => true (https://eval.in/423627)
<Ox0dea> You can even put a Hash into itself, but the physical logistics are unsound.
hmnhf_ has joined #ruby
towski_ has joined #ruby
renderful has quit [Ping timeout: 245 seconds]
<dfockler> O_o
hanmac has quit [Ping timeout: 244 seconds]
<shevy> it's a community service
<shevy> aka what not to do
dgutierrez1287 has quit [Ping timeout: 245 seconds]
<shevy> it's good that [k- has given up on one-liners
benlovell has quit [Ping timeout: 246 seconds]
pietr0 has joined #ruby
imperator has joined #ruby
hmnhf has quit [Ping timeout: 265 seconds]
araujo has joined #ruby
araujo has joined #ruby
<[k-> did i?
jeadre has quit [Remote host closed the connection]
<BraddPitt> my irssi encloses all nicks with <nickname>
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<BraddPitt> so k-'s name looks like a stabby lambda
<Ox0dea> He will appreciate this knowledge, no doubt.
alex88 has quit []
<BraddPitt> thought you should know
<[k-> i'll fix it for you BraddPitt
andybernard has joined #ruby
<[k-> __END__
psy_ has joined #ruby
einarj has quit [Remote host closed the connection]
<shevy> so BraddPitt only has to .call on [k-
jeadre has joined #ruby
<BraddPitt> hehe thanks
<shevy> huh
ofdtrinity has left #ruby ["Leaving"]
hmnhf_ has quit [Ping timeout: 240 seconds]
<shevy> [k- did you know that there exists IO::NULL ?
<[k-> no
<Ox0dea> shevy: What is it on Windows?
howdoi has quit [Quit: Connection closed for inactivity]
<Ox0dea> Also, why not IO::ZERO and IO::FULL?
<shevy> dunno, my windows machine is downstairs
<shevy> windows is only ever good for gaming!
hololeap has joined #ruby
enterprisedc has quit [Quit: enterprisedc]
codecop has joined #ruby
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
<adaedra> There's `nul` under windows
dr3w has quit [Quit: WeeChat 1.2]
EllisTAA has joined #ruby
<EllisTAA> ?offtopic
<ruboto> this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<[k-> ?wrong_call EllisTAA
<ruboto> EllisTAA, I don't know anything about wrong_call
<shevy> nul? is that missing a l?
rbennacer has quit [Remote host closed the connection]
<shevy> wait
<imperator> no
<shevy> hehehe
<imperator> it's a device
<adaedra> also, you can't name a file `nul` under Windows. It's reserved (because of the device.)
<EllisTAA> [k-: sorry i wasn’t directing that towards you, i just forgot the name of the channel
<imperator> shevy, it's also in ptools: File.null => /dev/null
* imperator was first!
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<imperator> but unlike MRI, I support amiga and openvms, which is crucial ;)
<imperator> (for anyone wondering it's "NIL:" on amiga and "NL:" on openvms)
<Ox0dea> MRI does support Amiga.
<imperator> does it? sweet
EllisTAA has quit [Client Quit]
EllisTAA has joined #ruby
Eiam has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
christiandsg has joined #ruby
hanmac has joined #ruby
j_mcnally has joined #ruby
krisquigley has quit [Remote host closed the connection]
petricore has joined #ruby
benlovell has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]
pdoherty has joined #ruby
senayar has quit []
hanmac has quit [Ping timeout: 246 seconds]
momomomomo has joined #ruby
Leef_ has joined #ruby
Leef_ has quit [Client Quit]
leat1 has quit [Remote host closed the connection]
stamina has quit [Quit: WeeChat 1.3]
bricker has joined #ruby
Rutix has joined #ruby
Rutix has joined #ruby
leat1 has joined #ruby
rubie has joined #ruby
Travis-42 has joined #ruby
last_staff has joined #ruby
saddad has joined #ruby
moted has joined #ruby
wldcordeiro has quit [Remote host closed the connection]
graydot has joined #ruby
arup_r has joined #ruby
Zort0n has quit [Quit: Textual IRC Client: www.textualapp.com]
fgo has quit [Quit: WeeChat 1.1.1]
ghr has quit [Ping timeout: 245 seconds]
nettoweb has joined #ruby
RobertBirnie has quit [Ping timeout: 256 seconds]
m3ow1504_x_io has joined #ruby
mikecmpbll has quit [Ping timeout: 260 seconds]
auxbuss has quit [Quit: I'm gone.]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
allcentury has joined #ruby
rbennacer has joined #ruby
atomical has joined #ruby
RobertBirnie has joined #ruby
failshell has quit []
RobertBirnie has quit [Read error: Connection reset by peer]
linuxboytoo has joined #ruby
linuxboy_ has quit [Read error: Connection reset by peer]
momomomomo has quit [Quit: momomomomo]
kristofferR has joined #ruby
hmnhf_ has joined #ruby
RobertBirnie has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
kristofferR has quit [Client Quit]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shinnya has joined #ruby
RandyT_ has quit [Read error: Connection reset by peer]
poli has quit [Ping timeout: 240 seconds]
RobertBirnie has quit [Read error: Connection reset by peer]
RandyT has joined #ruby
poli has joined #ruby
Zai00 has quit [Quit: Zai00]
Logan_ has joined #ruby
leat1 has quit [Remote host closed the connection]
Logan_ is now known as Guest75145
leat1 has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Guest75145> Hello Ruby! Small question. Im trying to enter information on the same line that it is going to print. But when I press enter it jumps to the next line... here's a gist: https://gist.github.com/lbickmore/26d40ee8557320387232#file-gistfile1-txt
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
platzhirsch has joined #ruby
<Guest75145> So essentially it should look like: Type Here: 1 + 1 = 2
<[k-> Guest75145, that's what entering does
<[k-> a new line
<Guest75145> but it jumps lines
nitenq has joined #ruby
<Guest75145> *misread
<Guest75145> yes can i backspace upon entering?
atomical has joined #ruby
<[k-> no
<jhass> Guest75145: the easiest workaround is to use ANSI escape codes (google it) to jump a line up and to its end
<Guest75145> ^^ tyvm
<[k-> or get a library to do it for you
nofxx has quit [Remote host closed the connection]
iamninja has joined #ruby
codenapper has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Travis-42 has left #ruby [#ruby]
nofxx has joined #ruby
CorySimmons has quit [Quit: Bye!]
<Ox0dea> jhass: There are codes for saving and restoring the cursor.
<jhass> Ox0dea: don't think that applies here though
<jhass> at least you'll still have to jump to the end of line
<Ox0dea> Hm? I think he wants the user to be able to enter an expression at the end of the line, and then replace that expression with the answer when they press Enter.
<jhass> so not much gained by jump back vs jump a line up
<jhass> I think they just want to append the answer
ylg has joined #ruby
<[k-> Ox0dea he wants to insert a = answer
<Ox0dea> Oh, right.
<Guest75145> 0x0dea: accurate
<[k-> yes append, thanks jhass
<jhass> Enter: [1 + 1] = 2 # user input in []
<Porfa> just got the "learn to program" e-book printed and .. erm, put on a hardcover and the circle thingies to hold on the pages, yeah..!
<Guest75145> I have found some escape codes but I'm doing it wrong? hah
<Porfa> thanks for the book name jhass !
dopamean_ has quit [Ping timeout: 246 seconds]
<Porfa> his english is easy and good to read!
bsdbofh has joined #ruby
choke has joined #ruby
<nofxx> Porfa, you're the guy from Portugal, no?
kinduff has quit []
<Porfa> Yeah
<nofxx> there's the chris pine and why's book translated to pt Porfa
A124 has joined #ruby
<Porfa> I'm reading the chris pine one in english and i love it, i rather do it in engish, when i said it was easy english, it just the way he writes, and the examples / metaphors :)
sdwrage_ has joined #ruby
sdwrage has quit [Ping timeout: 244 seconds]
Pumukel has joined #ruby
dotplus has left #ruby [#ruby]
<shevy> ok
<shevy> but it's really for the simple stuff
devoldmx has joined #ruby
saddad has quit [Ping timeout: 252 seconds]
tjohnson has joined #ruby
bb010g has joined #ruby
sdwrage_ has quit [Ping timeout: 244 seconds]
<Guest75145> Still lost guys :( cannot figure out how to append the end of my line after giving input 0.o.. I looked into carriage returning and that looks promising but I'm not sure how to go about that to keep it on the same line.
sdwrage has joined #ruby
<[k-> You have to go back up a line
tenderlove has quit [Quit: Leaving...]
devoldmx has quit [Ping timeout: 260 seconds]
robh71 has joined #ruby
benlovell has quit [Ping timeout: 240 seconds]
mleung has joined #ruby
craysiii has joined #ruby
jpfuentes2 has joined #ruby
rubie has quit [Remote host closed the connection]
Limix has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wldcordeiro has joined #ruby
hololeap has quit [Ping timeout: 260 seconds]
chouhoulis has quit [Remote host closed the connection]
RobertBirnie has joined #ruby
<jhass> Guest75145: mmh, I can find move to end of line either, could swear it existed. Looks like you have rewrite the line, puts "\e[1F#{prompt}#{user_input}#{result}"
Timba-as has quit [Ping timeout: 264 seconds]
banjara has joined #ruby
but3k4 has joined #ruby
jgt has quit [Ping timeout: 272 seconds]
<Porfa> yeah, but i never programmed before and i've been doing these "blind" ruby scripts, so i think it's a really nice book for me to start
bronson has joined #ruby
dopamean_ has joined #ruby
solars has quit [Ping timeout: 240 seconds]
SCHAAP137 has joined #ruby
zendrix has joined #ruby
Velocity has joined #ruby
ylg has quit []
Velocity is now known as vestinst
<havenwood> Guest75145: require 'io/console'; print input until (input = STDIN.getch) == "\r"; print " = 42"
rubie has joined #ruby
<shevy> foo.rb:1:in `<main>': undefined local variable or method `input' for main:Object (NameError)
ddubs has quit [Ping timeout: 246 seconds]
t0rc has joined #ruby
michael_mbp has quit [Excess Flood]
acke has joined #ruby
<Guest75145> This is working but it ends up with a trailing enter due to my entering input. Im thinking it may add multiple blank lines doing it like this
<Guest75145> puts "\e[F\r#{introduction}#{input_var} = #{output_var}"
<havenwood> shevy: An ancient Ruby doth butter no parsnips.
<havenwood> shevy: 2.1+!!
leafybasil has quit [Remote host closed the connection]
Kallis has joined #ruby
Inoperable has joined #ruby
Inoperable has left #ruby [#ruby]
leafybasil has joined #ruby
siemprefresco has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Inoperable has joined #ruby
<Inoperable> Hello Everybody
<havenwood> Inoperable: hi
<Inoperable> got a newb (i know i know...) question
<eam> why would someone grease up a parsnip anyway
michael_mbp has joined #ruby
RobertBirnie has quit [Ping timeout: 250 seconds]
rubie has quit [Ping timeout: 265 seconds]
<Inoperable> 1: how to filter a hash from several duplicates?
<Inoperable> 2: how to do the sme as above, but leave only 2 instead of 1
<Inoperable> :>
juanpaucar has joined #ruby
<havenwood> Inoperable: What's duplicate about it? Give an example Hash before and after.
<Inoperable> im cracking my head against Hash class methods
<havenwood> Inoperable: Example with data!
<Inoperable> values
<Inoperable> not keys
<jhass> ?example
<ruboto> Please provide us with an example of valid input for your problem, the output that you're getting, and the output that you were expecting.
<havenwood> I have parnsips I want buttered parsnips.
<jhass> havenwood: y u type so much
<havenwood> jhass: finger workout
<Inoperable> h = {a:1,b:2,c:3,c:3,d:4,e:5,f:6,g:2,h:1,i:5}
<jhass> I see a broken space key
leafybasil has quit [Ping timeout: 250 seconds]
<Inoperable> h = {a:1,b:2,z:3,c:3,d:4,e:5,f:6,g:2,h:1,i:5}
<jhass> yeah, came through the first time
RobertBirnie has joined #ruby
<polpak> jhass: it was different the first time
<havenwood> Inoperable: warning: duplicated key at line 1 ignored: :c
Jackneill has joined #ruby
<Inoperable> havenwood i know just typed that thing to give you a example
<jhass> polpak: ugh, c vs z, who would notice?
<Inoperable> a = Hash({a:1,b:23,c:23423,d:23,e:23,f:23,g:23,h:243,j:23,k:23,l:12,m:354,n:43,o:53,p:23,q:35,r:23})
<Inoperable> here a proper one
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> Why do you pass a hash literal to Kernel#Hash ?
araujo has quit [Ping timeout: 255 seconds]
<polpak> jhass: funzies
<Inoperable> i dont know all the methods
dionysus69 has joined #ruby
<Inoperable> but the IDE does ;]
<Inoperable> if it knows the type
<jhass> Hash({whatever}) == {whatever}
<Inoperable> that's why in this case
<Inoperable> i know
<havenwood> Inoperable: And you want what output
<havenwood> ?
<jhass> Hash() is a method call
<Inoperable> puts a.flatten.uniq.reject {|k| a.keys.include?(k)}
<shevy> havenwood lol what is that dancing ascii thing there?
<havenwood> shevy: Install curses gem and try it! :P
<Inoperable> that one works
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
<havenwood> shevy: That is my motion painting.
araujo has quit [Max SendQ exceeded]
<Inoperable> on that particular hash
<Inoperable> but on another one
<Inoperable> it doesnt
<Inoperable> wrrr
<shevy> hehe
<apeiros> a.keys.include? # can't start to tell you how wrong this is
<havenwood> Inoperable: You still haven't shown the return value you're looking for.
rubie has joined #ruby
minimuffins has quit [Ping timeout: 255 seconds]
<Inoperable> apeiros: start ot tell me
<Inoperable> like i said, newb
<apeiros> you create an Array from a structure to perform a linear (O(n)) search in it when the original structure *already has O(1) lookup*
kidoz has joined #ruby
<apeiros> in other words: you turn something fast with a lot of effort into something slow
<polpak> Inoperable: keys will include every k because k comes from keys
<Inoperable> i basically try to make a .uniq on a hash but in reverse
<apeiros> a.include?(k) # there. fast again. and less effort as a topping.
<Inoperable> i want to grab the duplicates out of a hash
<Inoperable> duplicates meaning keys having the same values
<havenwood> Inoperable: You'll find you'll get much quicker answers if you're able to show the result you want rather than describe it.
kinduff has joined #ruby
<polpak> Inoperable: why not construct a new hash where the key is the value and the value is the list of keys which had it
molawson has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
platzhirsch has quit [Ping timeout: 256 seconds]
<Inoperable> polpak: good point
<Inoperable> noted
molawson has joined #ruby
<shevy> is hash.include? an alias to hash.has_key? ?
fantazo has joined #ruby
<havenwood> Inoperable: Like, I have `{:aim => true}` and I want `{true => :aim}`.
graydot has quit [Quit: graydot]
kedibasi has joined #ruby
blueOxigen has joined #ruby
anandubajith has quit [Quit: Connection closed for inactivity]
bluOxigen has quit [Ping timeout: 244 seconds]
platzhirsch has joined #ruby
unver has quit [Ping timeout: 250 seconds]
<havenwood> Inoperable: Is this the return value you want or something else?: {:a=>1, :b=>23, :c=>23423, :h=>243, :l=>12, :m=>354, :n=>43, :o=>53, :q=>35}
<polpak> >>> a = {a:1, b:1, c:2}; b = Hash.new { |h, k| h[k] = [] }; a.each { |k,v| b[v] << k }; # Inoperable
<ruboto> polpak # => /tmp/execpad-1a304f8a0189/source-1a304f8a0189:2: syntax error, unexpected '>' ...check link for more (https://eval.in/423722)
<polpak> oh
<polpak> >> a = {a:1, b:1, c:2}; b = Hash.new { |h, k| h[k] = [] }; a.each { |k,v| b[v] << k }; # Inoperable
<ruboto> polpak # => {:a=>1, :b=>1, :c=>2} (https://eval.in/423723)
<polpak> dang it
khebbie has joined #ruby
<Ox0dea> shevy: Yes; #key?, #has_key?, #include?, and #member? are all the same on Hash.
<polpak> >> a = {a:1, b:1, c:2}; b = Hash.new { |h, k| h[k] = [] }; a.each { |k,v| b[v] << k }; b;# Inoperable
<ruboto> polpak # => {1=>[:a, :b], 2=>[:c]} (https://eval.in/423724)
<shevy> Ox0dea hmmm
minimuffins has joined #ruby
<shevy> I had a moment of confusion because apeiros used .include? and I have been using .has_key? mostly
but3k4 has quit [Ping timeout: 260 seconds]
<Porfa> anyone using watir gem? :) how do get a list of all the elements like i do in mechanize?
<shevy> now that has shocked my world... perhaps I should transition into .include? as well
krisquigley has joined #ruby
juanpaucar has quit [Remote host closed the connection]
roolo has joined #ruby
graydot has joined #ruby
ramfjord has quit [Ping timeout: 250 seconds]
darkf has quit [Quit: Leaving]
platzhirsch has quit [Ping timeout: 250 seconds]
<Inoperable> polpak: yeah, that's it :)
rdark has quit [Quit: leaving]
<Ox0dea> shevy: Style guide recommends #key?.
amclain has joined #ruby
jgt has joined #ruby
<Inoperable> i need to wrap my head around it first, but many thanks mate!
araujo has joined #ruby
araujo has joined #ruby
<arcanez> Ox0dea: 'style guide'?
<shevy> Ox0dea I think there also was an old discussion between has_key? and key? where matz favoured key? ... if in doubt I'll go with the apeiros style guide :>
araujo_ has joined #ruby
jeadre has quit [Remote host closed the connection]
krisquigley has quit [Ping timeout: 246 seconds]
ghr has joined #ruby
roolo has quit [Ping timeout: 244 seconds]
<miah> need to add a ruboto feature to lookup / link RSG stuff =)
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> yeah
voltalio has joined #ruby
<shevy> that was the matz statement about has_key? versus key?
ckinniburgh_ has quit [Ping timeout: 244 seconds]
jeadre has joined #ruby
<Inoperable> any ruby ninja links a newb should read?
<shevy> miah is a google archaeologist
nitenq has quit [Quit: nitenq]
tsvenson has quit [Ping timeout: 246 seconds]
<Ox0dea> ?quickref Inoperable
araujo_ has quit [Client Quit]
<shevy> Inoperable no, just write more and more ruby code yourself, you'll become better the more you write
<Ox0dea> For your own definition of "better", mind.
garethrees has joined #ruby
<shevy> he'll become better
linuxboytoo has quit [Remote host closed the connection]
m3ow1504_x_io has quit [Read error: Connection reset by peer]
<shevy> I have utmost confidence in Inoperable
<Inoperable> hehe
platzhirsch has joined #ruby
<shevy> the nick is a bit scary though
ckinniburgh_ has joined #ruby
linuxboytoo has joined #ruby
<Inoperable> my own lack of faith is disturbing
<Ox0dea> Ganbatte kudasai!
araujo has quit [Ping timeout: 260 seconds]
roxtrong_ has quit [Remote host closed the connection]
<shevy> Inoperable well practice gets over that
<arcanez> I find that .has_key? expresses the thought better than .key? but both are ok
m3ow1504_x_io has joined #ruby
<shevy> arcanez yeah same here btw
<BraddPitt> i would agree with arcanez
<miah> i've never killed anybody while using ruby, so I doubt ninja skills are applicable.
dumdedum has quit [Quit: foo]
<yorickpeterse> maybe you're so ninja you never noticed
<Inoperable> i need to md5 hash gazillion of files and put the md5 hexstrings in mongodb
<Inoperable> md5 with few files aint not a problem
symm- has joined #ruby
<shevy> Inoperable now that sounds simple enough
<Inoperable> gazillion of files takes ages
<yorickpeterse> Inoperable: parallelize it
<yorickpeterse> also brb, lasagna
<arcanez> I guess ? was meant to replace has_
<craysiii> mmm lasagna
<arcanez> not sure how many other methods are has_*?
<Inoperable> id rather would go with cuda/gpu
krisquigley has joined #ruby
<Inoperable> but can't find examples
unver has joined #ruby
<shevy> hmm one method I have here is .has_openssl_support? but I don't know if it was defined by me or someone else
ghr has quit [Ping timeout: 265 seconds]
<Inoperable> gpu seems to be freaking fast at crypto crunching
skade has quit [Quit: Computer has gone to sleep.]
jackjackdripper has joined #ruby
platzhirsch has quit [Ping timeout: 260 seconds]
linuxboytoo has quit [Ping timeout: 264 seconds]
<Inoperable> that's for brutforcing passwords from md5's
<Inoperable> not calculating them
<craysiii> oops
choke has joined #ruby
_djbkd has joined #ruby
ducklobster has quit [Read error: Connection reset by peer]
<Inoperable> calculating MD5 hashes:
<Inoperable> Radeon 79708213.6 M c/s
<Inoperable> 6-core AMD CPU52.9 M c/s
Limix has quit [Quit: Limix]
<Inoperable> a bit of a difference
<arcanez> shevy: and that reads better than .has_openssl_support or .openssl_support?
<arcanez> but has_ is just extra typing really
<Inoperable> never mind though
krisquigley has quit [Ping timeout: 240 seconds]
<shevy> yeah but it reads better
<havenwood> Inoperable: How long does it take for you to calculate one by hand?
<shevy> :Ü
<Inoperable> havenwood hehehe, never had a trial run
vestinst has quit [Quit: ChatZilla 0.9.92 [Firefox 41.0a2/20150810004008]]
<havenwood> Ox0dea: That's what I was thinking of. :D
workmad3 has quit [Read error: Connection reset by peer]
whippythellama has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
roolo has joined #ruby
<havenwood> Inoperable: Figure it out then you can put your personal MD5 hashing speed on your resume.
khebbie has quit [Remote host closed the connection]
graydot has quit [Quit: graydot]
Silox| has quit [Quit: Connection closed for inactivity]
iamninja has quit [Read error: Connection reset by peer]
<Inoperable> Ox0dea: you just gave me a product idea for crowdfunded elder people based md5 generator
<Inoperable> Ox0dea imagine you take bingo and sudoku away and give them that
<Inoperable> tada :)
iamninja has joined #ruby
<Inoperable> bitcoin mining on global scale
araujo has joined #ruby
araujo has joined #ruby
<Ox0dea> Sounds like a unicorn to me
yqt has quit [Ping timeout: 272 seconds]
araujo has quit [Max SendQ exceeded]
<miah> amazon mechanical turk + md5 generation
<havenwood> miah: mm, as an API
<Ox0dea> MD5aaS.
<havenwood> good service
<Inoperable> hehe
<miah> already exists
<miah> =)
m3ow1504_x_io has quit [Ping timeout: 245 seconds]
<Ox0dea> No bulk option?!
<havenwood> but do we trust the machines? manual human confirmation as a service!
<havenwood> each turk can be given just one step
<Ox0dea> The color bar is a nice touch.
<havenwood> repeat to validate
<Ox0dea> The checks balance themselves!
<Inoperable> havenwood exactly!
hanmac has joined #ruby
<Inoperable> and imagine the fun factor at all of those retirement home's patients
graydot has joined #ruby
rakm has joined #ruby
<Ox0dea> It seems nobody's written MD5 in brainfuck.
<craysiii> ....
ckinniburgh_ has quit [Quit: Leaving]
<Ox0dea> I mean, it just seems like the kind of thing that would exist.
ckinniburgh has joined #ruby
dfockler has quit [Remote host closed the connection]
banjara has quit [Read error: Connection reset by peer]
molawson has quit [Quit: Textual IRC Client: www.textualapp.com]
banjara has joined #ruby
t0rc has quit [Quit: WeeChat 1.3]
RobertBirnie has quit [Read error: Connection reset by peer]
postmodern has joined #ruby
freerobby1 has quit [Quit: Leaving.]
baweaver has joined #ruby
kinduff has quit []
mikecmpbll has joined #ruby
baweaver has quit [Remote host closed the connection]
pglombardo has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
nitenq has joined #ruby
garethrees has quit []
zendrix has quit []
jackjackdripper has quit [Read error: Connection reset by peer]
<Inoperable> what's the daily limit for new questions here?
jackjackdripper has joined #ruby
<Inoperable> newb questions i mean
whippythellama has joined #ruby
<unver> unlimited
gambl0re has quit [Ping timeout: 244 seconds]
<wmoxam> Inoperable: you just used up your limit
<wmoxam> !next
<Inoperable> that's what my wife said when filled for divorce
<wmoxam> ;)
<unver> are there chans that limit questions?
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lkba_ has quit [Ping timeout: 272 seconds]
<Ox0dea> unver: ##c crushes your soul if you're too stupid.
rakm has joined #ruby
I has joined #ruby
dfockler has joined #ruby
I is now known as Guest89608
Guest89608 has quit [Client Quit]
ndrei has joined #ruby
dopie has joined #ruby
arooni-mobile has joined #ruby
RobertBirnie has joined #ruby
rakm has quit [Client Quit]
rakm has joined #ruby
nofxx has quit [Remote host closed the connection]
<unver> i'd be bitter if i had to write c all day too
debajit has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Cust0sLim3n has quit [Ping timeout: 255 seconds]
webopsx has joined #ruby
hmnhf_ has quit [Read error: Connection reset by peer]
webopsx has quit [Max SendQ exceeded]
hmnhf_ has joined #ruby
chouhoulis has joined #ruby
RobertBirnie has quit [Ping timeout: 240 seconds]
nofxx has joined #ruby
podman has joined #ruby
tsvenson has joined #ruby
rbowlby has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
<Inoperable> unver but its soooooo fast!
jackjackdripper has joined #ruby
Meow-J has quit [Quit: Connection closed for inactivity]
ramfjord has joined #ruby
<Ox0dea> The difference is occasionally staggering.
pawnbox has quit [Remote host closed the connection]
araujo has joined #ruby
sphex_ has quit [Ping timeout: 272 seconds]
baweaver has joined #ruby
<Guest75145> "Well, yeah, and the Java community is stubborn, the .NET community is closed-minded, the Perl community is quirky and the C++ community is a bunch of middle-aged, pipe-smoking elves." http://www.zohararad.com/2012/11/16/10-reasons-not-to-use-ruby
nitenq has quit [Quit: nitenq]
<Guest75145> Pipe smoking elves hah
robh71 has joined #ruby
imperator has left #ruby ["Leaving"]
tonios57 has quit [Quit: Textual IRC Client: www.textualapp.com]
_djbkd has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
psy_ has quit [Ping timeout: 246 seconds]
juanpaucar has joined #ruby
_djbkd has joined #ruby
chouhoulis has joined #ruby
hmnhf_ has quit [Quit: Konversation terminated!]
rbennacer has quit [Remote host closed the connection]
_djbkd has quit [Read error: Connection reset by peer]
hmnhf_ has joined #ruby
benlovell has joined #ruby
<arcanez> should one use a named_scope instead of making a method on the model?
_djbkd has joined #ruby
Meow-J has joined #ruby
<arcanez> doh, that's more of a rails question, sorry
khebbie has joined #ruby
ta has joined #ruby
ylg has joined #ruby
cgfbee has quit [Ping timeout: 260 seconds]
Axy has quit [Read error: Connection reset by peer]
DiscoM_ has joined #ruby
helpa has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 255 seconds]
slani has quit [Ping timeout: 260 seconds]
helpa has joined #ruby
slani has joined #ruby
t0rc has joined #ruby
christiandsg has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
Pumukel has quit [Ping timeout: 252 seconds]
klaas has quit [Quit: ZNC - http://znc.sourceforge.net]
Porfa has quit [Ping timeout: 245 seconds]
DiscoM has quit [Ping timeout: 246 seconds]
cgfbee has joined #ruby
rbennacer has joined #ruby
RobertBirnie has joined #ruby
sphex has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skade has joined #ruby
choke has joined #ruby
centrx has quit [Quit: "You cannot fix a machine by just power-cycling it with no understanding of what is going wrong."]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
RobertBirnie has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
paulcsmith has joined #ruby
DoubleMalt has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]
nofxxx has joined #ruby
Travis-42 has joined #ruby
leafybasil has joined #ruby
dopie has joined #ruby
nofxx has quit [Disconnected by services]
nofxxx is now known as nofxx
DEA7TH has quit [Quit: DEA7TH]
RobertBirnie has joined #ruby
cored has joined #ruby
cored has joined #ruby
hmnhf_ has quit [Quit: Konversation terminated!]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
workmad3 has quit [Ping timeout: 264 seconds]
RobertBirnie has quit [Ping timeout: 265 seconds]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JoshGlzBrk has joined #ruby
benlovell has quit [Ping timeout: 250 seconds]
kirun has joined #ruby
RobertBirnie has joined #ruby
ta has quit [Remote host closed the connection]
cored has quit [Quit: leaving]
Mendenhall has joined #ruby
giuseppesolinas has joined #ruby
ta has joined #ruby
Kallis has quit [Read error: Connection reset by peer]
pizzas has left #ruby [#ruby]
benlovell has joined #ruby
DEA7TH has joined #ruby
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
kedibasi has quit []
Cust0sLim3n has joined #ruby
hinbody_ has joined #ruby
cored has joined #ruby
ylg has quit []
nickjj_ has joined #ruby
banjara has quit [Ping timeout: 246 seconds]
sindork has quit [Ping timeout: 246 seconds]
banjara has joined #ruby
Vile` has quit [Ping timeout: 246 seconds]
hinbody has quit [Ping timeout: 246 seconds]
iateadonut has quit [Quit: Leaving.]
nickjj has quit [Ping timeout: 246 seconds]
mjuszczak has joined #ruby
catoblepa has joined #ruby
chipotle has joined #ruby
jeadre has quit [Remote host closed the connection]
sindork has joined #ruby
failshell has joined #ruby
Vile` has joined #ruby
PDI has joined #ruby
jeadre has joined #ruby
denisemccoy has joined #ruby
bigredboots has joined #ruby
yqt has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rakm has joined #ruby
<mjuszczak> Is there a shorthand I can use so I don't have to do: if blah.nil? OR hoarf.nil? OR ribbit.nil? OR...
<Ox0dea> mjuszczak: unless [foo, bar, baz].all?
baweaver has quit [Remote host closed the connection]
<mjuszczak> Ahhh! Thanks!
zendrix has joined #ruby
<Ox0dea> Sure thing.
zendrix has left #ruby [#ruby]
<apeiros> *if you don't mind it making no difference between nil & false
<nofxx> ^ also in that case: blah || hoarf || ribbit reads better imo
bigredbo_ has joined #ruby
icarus has joined #ruby
dionysus69 has quit [Ping timeout: 252 seconds]
leat1 has quit [Ping timeout: 240 seconds]
<Papierkorb> is instance_eval basically a public alias for binding.eval?
<Papierkorb> Or is there a difference?
<mjuszczak> nofxx: ahh, gotcha. OK, thanks!
<Mon_Ouie> Papierkorb: They're not at all the same thing
<Mon_Ouie> Binding#eval can only accept a String to start with, while instance_eval works with a block too
hinbody_ is now known as hinbody
bigredboots has quit [Ping timeout: 240 seconds]
lampd1 has quit [Remote host closed the connection]
gambl0re has joined #ruby
lampd1 has joined #ruby
mjuszczak has quit []
toretore has joined #ruby
tuxero has joined #ruby
cored has quit [Quit: leaving]
dionysus69 has joined #ruby
timonv has joined #ruby
catoblepa has quit [Ping timeout: 256 seconds]
platzhirsch has joined #ruby
RobertBirnie has quit [Quit: Textual IRC Client: www.textualapp.com]
<Travis-42> I'm trying to better understand ruby memory allocation: When "5.times { foo = 6 }" is run, ruby will use up 5 object slots (a new one on each iteration), unless GC runs during the iteration, right (in which case it'll reuse the "freed" slots)? E.g. for something like rails’ find_each do be more efficient than all.each, it relies on GC running at some point? Or am I not understanding?
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
startupality has quit [Quit: startupality]
<Mon_Ouie> In MRI, Fixnums don't need to be allocated or GC'd because the memory used by the reference holds the value of the fixnum as well
dgutierrez1287 has joined #ruby
devoldmx has joined #ruby
JoshL has joined #ruby
t0rc has quit [Quit: WeeChat 1.3]
revoohc has quit [Quit: revoohc]
j_mcnally has joined #ruby
ruby-lang813 has joined #ruby
<Travis-42> well, I’m trying to better understand why find_each in rails (which creates 1000 item arrays) is much better for memory than all.each — so suppose something like 100_000_000.times { foo = “a string” }. memory stays stable (even though GC.stat shows 100,000,000 freed objects), but if I disable GC just before, memory balloons
sinaef has joined #ruby
<ruby-lang813> Hm
<Travis-42> is the reason because GC is running before the heap size increases, freeing and reusing old slots?
ruby-lang813 has quit [Client Quit]
benlovell has quit [Ping timeout: 244 seconds]
psy_ has joined #ruby
dgutierrez1287 has quit [Ping timeout: 252 seconds]
<apeiros> Travis-42: a) #rubyonrails and b) I think you're talking about old rails versions where .all was what .to_a is today, i.e. reads all into memory upfront.
devoldmx has quit [Ping timeout: 256 seconds]
<Travis-42> apeiros: I’m really not trying to ask about rails, I’m trying to understand ruby memory allocation
<Travis-42> it was just an example
<apeiros> Travis-42: then you should use an example you fully understand
ddarkpassenger has joined #ruby
<apeiros> also "better" does not exist. "in context X better" exists.
<Travis-42> User.all.each still works in rails 4.2.3, but I’m sorry if my example was a little outdated, I’m just trying to understand why allocating 1000 item arrays 100 times doesn’t balloon memory the same way that a single 100,000 item array would
<apeiros> and wrt ruby gc, one aspect of the context is the specific ruby version, since GC has changed quite a bit from 1.9 to 2.0 to 2.1 to 2.2
<Travis-42> Ruby 2.2 Is really where I’m looking at
catoblepa has joined #ruby
<apeiros> Travis-42: that's what I mean by "fully understand". yes, it still works. but no, it doesn't work the same anymore.
<apeiros> rails 3.x .all returns an array. rails 4.x .all returns a relation.
<Travis-42> 100_000_000.times { foo = “a string” } doesn’t balloon memory (unless GC.disable is called), even though it allocates 100,000,000 objects
<apeiros> *massively* different beast.
timonv has quit [Ping timeout: 250 seconds]
leat1 has joined #ruby
<apeiros> that'd most likely be because `foo` goes out of scope on every iteration and can be GC'd
giuseppesolinas has quit [Quit: This computer has gone to sleep]
benlovell has joined #ruby
hectortrope has joined #ruby
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
jenrzzz has joined #ruby
<apeiros> and ruby 2.2 has a generational gc too, and foo almost certainly remains in the young generation which gets GC'd more aggressively.
pdoherty has quit [Quit: Leaving]
<Travis-42> right, so the reason the creating 1000 item arrays 100 times doesn’t balloon memory is because GC is running during the process — the slots in the ruby heap can’t be reused until GC in some form runs
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Travis-42> that makes a lot of sense, thank you apeiros. I wasn’t sure that I understood the basic idea
<apeiros> hu?
<apeiros> 100_000_000.times { foo = “a string” } does *not* create *any* array at all
<Travis-42> I understand, I was just comparing
skade has quit [Quit: Computer has gone to sleep.]
nickjj_ is now known as nickjj
<apeiros> ok
dionysus69 has quit [Ping timeout: 244 seconds]
<Travis-42> thank you for your help
<BraddPitt> w4
<jhass> x5
<apeiros> y6
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
choke has joined #ruby
dorei has joined #ruby
molawson has joined #ruby
Guest24 has quit [Ping timeout: 240 seconds]
<Inoperable> Guest75145 I like to 5th point especially
<Inoperable> 5. The Ruby community is condescending and snobbish
cool has joined #ruby
stef204 has joined #ruby
<jhass> >> "w4".to_i(36).step(by: 37, to: "w4".to_i(36) + 37*10).map {|n| n.to_s(36) }
<ruboto> jhass # => ["w4", "x5", "y6", "z7", "108", "119", "12a", "13b", "14c", "15d", "16e"] (https://eval.in/423806)
EllisTAA has quit [Quit: EllisTAA]
<jhass> you broke the sequence :(
<Inoperable> me?
<jhass> I see nobody else talking
jhack has joined #ruby
<apeiros> how can we say that in a snobbish and condescending way?
cantaberry has joined #ruby
<jhass> mmh
<jhass> ?guys Inoperable
<ruboto> Inoperable, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
<apeiros> oh yes, how dare you to condescend me!
Billias has quit [Ping timeout: 246 seconds]
elepedus has joined #ruby
stef204 has quit [Client Quit]
* allcentury wonders what he just walked into...
lele has joined #ruby
baweaver has joined #ruby
<jhass> bored people
* jhass hopes we didn't scare Inoperable
dented42 has joined #ruby
<tubbo> lol
<tubbo> i hope we did
<tubbo> more rails jobs for meeeeeeeeeeeeeeee
<Inoperable> heheh
voltalio has joined #ruby
sinaef has quit [Ping timeout: 260 seconds]
giuseppesolinas has joined #ruby
<dstarh> we have this assertion on a test that fails about 1 in 100 times, anyone have any thoughts? https://gist.github.com/dstarh/24e95d99cc70716cc929
northfurr has joined #ruby
moredhel has quit [Remote host closed the connection]
ddarkpassenger has quit [Quit: Textual IRC Client: www.textualapp.com]
rideh^ is now known as rideh
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> entries_ids.sort_by{|key, value| value} gives {:id=>232971}, {:id=>232969}, {:id=>232970}? o0
<Mon_Ouie> Yes it does
<Mon_Ouie> value is nil
<apeiros> well, add in the missing []
<apeiros> oh dear
<apeiros> yeah, random sort order :D
<jhass> wat, it doesn't autosplat there?
<apeiros> autosplat a hash?
<apeiros> nope
moredhel has joined #ruby
<jhass> oh
<jhass> lol, tricked me too
<apeiros> dstarh: you want sort_by { |hash| hash[:id] } probably
jenrzzz has quit [Ping timeout: 244 seconds]
<apeiros> also update the "actual" part in the assertion
_blizzy_ has quit [Read error: Connection timed out]
but3k4 has joined #ruby
<apeiros> well spotted, Mon_Ouie :D
Limix has joined #ruby
_blizzy_ has joined #ruby
nitenq has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
weemsledeux has joined #ruby
JoshGlzBrk has joined #ruby
gizless has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
<dstarh> apeiros Mon_Ouie thanks
cmckee has joined #ruby
Asher has quit [Quit: Leaving.]
fantazo has quit [Quit: Verlassend]
RandyT has quit [Quit: ZNC - http://znc.in]
gizmore has quit [Ping timeout: 256 seconds]
linuxboytoo has joined #ruby
solocshaw has joined #ruby
ferhaty has joined #ruby
jhack has quit [Ping timeout: 250 seconds]
einarj has joined #ruby
k3asd` has joined #ruby
JoshL has quit [Read error: Connection reset by peer]
JoshL has joined #ruby
krisquigley has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest50 has joined #ruby
krisquigley has quit [Ping timeout: 264 seconds]
khebbie has quit [Remote host closed the connection]
Asher has joined #ruby
andybernard has quit [Ping timeout: 250 seconds]
denisemccoy has quit [Remote host closed the connection]
_djbkd has quit [Remote host closed the connection]
flughafen_ has joined #ruby
Cache_Money has left #ruby [#ruby]
denisemccoy has joined #ruby
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
msnyon has quit [Read error: Connection reset by peer]
mjuszczak has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
Mendenhall has quit [Ping timeout: 245 seconds]
meph has quit [Remote host closed the connection]
<Inoperable> another newb drama
rbennacer has quit [Remote host closed the connection]
<Inoperable> can someone enlighten me
workmad3 has joined #ruby
jhack has joined #ruby
<flughafen_> I have a question, I was unable to find it, but I i have a capybara/phantom js test suite, and I want to "live stream" the results to a browser...
<BraddPitt> flughafen_ you could open a websocket and publish results as tests finish
kinduff has joined #ruby
Guest11413 has joined #ruby
cmckee has quit [Quit: cmckee]
ndrei has joined #ruby
<flughafen_> slash_nick: sorry, but in this case, i only want the test results, not the screen shot. although that is neat
<Mon_Ouie> Inoperable: Do you realize that 1..5 is not an Array?
polysics has quit [Remote host closed the connection]
ferhaty has quit []
<Inoperable> it's a range
<Inoperable> but is_a?Array says it's an array
<Inoperable> at least it says true
<Mon_Ouie> [1..5] and 1..5 are not the same thing
<Mon_Ouie> 1..5 is a Range, [1..5] is an Array that contains one element which happens to be a Range
<slash_nick> flughafen_: sorry, i completely misunderstood..
<Inoperable> Mon_Ouie .. syntax fail...
ozzloy has joined #ruby
ozzloy has joined #ruby
<flughafen_> it's ok
jenrzzz has joined #ruby
opensource_ninja has joined #ruby
Billias has joined #ruby
<Mon_Ouie> And flatten is to flatten nested arrays. Since you don't have any nested arrays in your code (only arrays of integers or ranges), it doesn't do anything in your examples.
yardenbar has joined #ruby
Travis-42 has quit [Quit: Travis-42]
einarj has quit [Ping timeout: 240 seconds]
rbennacer has joined #ruby
einarj has joined #ruby
<Inoperable> yeah, i can see that now
<Inoperable> just dumb syntax assumption
dopamean_ has quit [Ping timeout: 240 seconds]
Guest11413 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<Inoperable> dunno why i didnt thought about it
dopamean_ has joined #ruby
Ketzel has joined #ruby
jgt has quit [Ping timeout: 240 seconds]
<Inoperable> it's that snobbish language!
Mia has joined #ruby
Mia has joined #ruby
<Inoperable> :>
jamesaxl has joined #ruby
JoshL has quit [Read error: No route to host]
<shevy> it's simple
JoshL_ has joined #ruby
prefixed has joined #ruby
<shevy> you just put instructions into tiny things
<prefixed> YO
<Ketzel> ?guys
<ruboto> Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
<shevy> our old friend is back
<PDI> if i have a case, and inside of the case i have a when, i have to use 'end' to end the when, and another 'end', to end the case, right?
<shevy> Ketzel you should find a job man
<shevy> PDI that would be one "end" too many
<Ketzel> i have a job
northfurr has quit [Quit: northfurr]
<Ketzel> and that job
<Ketzel> is to serve justice
<PDI> no end for the case then shevy
<PDI> ?
<shevy> Ketzel come on, do something productive with your life
<Mon_Ouie> No 'end' for the 'when'
<PDI> got it
<PDI> thanks
<PDI> !
<Mon_Ouie> case object; when pattern; do stuff; when other_pattern; do other stuff; end
<shevy> PDI only for the case but not for the when, remember you can have lots of when but only one case associated with these many when's
Cust0sLim3n has quit [Ping timeout: 245 seconds]
ta has quit [Remote host closed the connection]
<Inoperable> Ketzel how much calories that justice of your's have?
<PDI> I was looking at someone else's code, and his indentation is off. he has an if else at the end of each when, but the when was indented to the when
<PDI> so i though the end was for the when, but it is for the if / else
<Ketzel> Inoperable: Like, all of them
<prefixed> let's say I want to iterate over some instance vars, but I want to ignore a specific field. how do I do this?
<shevy> PDI yeah, people often indent strangely with case/when
syath has quit [Quit: WeeChat 1.2]
jeadre has quit [Remote host closed the connection]
MasterPiece has joined #ruby
<Mon_Ouie> !mute Ketzel
nitenq has quit [Quit: nitenq]
<shevy> the less "end" you can get away with, the better. once you have 8 ends in a row something is usually ... not so good
<shevy> I had that once too :)
kadoppe has quit [Ping timeout: 264 seconds]
<flughafen_> should i use poltergeist websocket? i think it's already got websocket things going on.
<flughafen_> sup shevy
<PDI> ruby is pretty sweet.
<baweaver> Mon_Ouie: ban kiwiirc for a bit.
<shevy> flughafen_ nothing flying in berlin?
<Mon_Ouie> Yeah, probably
<flughafen_> shevy: only my dreams, and they're going far far away
<shevy> Ketzel will be back :)
<baweaver> otherwise
jeadre has joined #ruby
<baweaver> yeah
<shevy> lol flughafen_
yfeldblum has joined #ruby
<shevy> flughafen_ that's actually beautiful... berlin ruby hackers have dreams
<prefixed> let's say I want to iterate over some instance vars, but I want to ignore a specific field. how do I do this?
EllisTAA has joined #ruby
kadoppe has joined #ruby
Ketzel was banned on #ruby by Mon_Ouie [*!*@*kiwiirc.com*]
Motoservo has quit [Read error: Connection reset by peer]
<flughafen_> shevy: i'm programming, neat huh!
jeffreylevesque has quit [Ping timeout: 245 seconds]
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Inoperable> flughafen_ an airport?
choke has joined #ruby
<shevy> yeah, german
<adaedra> program me an airport.
<shevy> we do! in cobol
<flughafen_> Inoperable: yes, indeed
ecnalyr has quit [Read error: Connection reset by peer]
mjuszczak has quit []
Jean_Luc has joined #ruby
<Jean_Luc> No being is so important it can usurp the rights of another.
<Jean_Luc> this would include the right to the proper use of the english language
<Jean_Luc> ?guys
<ruboto> Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
pyon has quit [Remote host closed the connection]
<craysiii> staatsangehoerigkeit
ecnalyr has joined #ruby
jeadre has quit [Remote host closed the connection]
<baweaver> Mon_Ouie:
<shevy> he is back!
<Jean_Luc> yay!
<Jean_Luc> welcome me!
polysics has joined #ruby
<shevy> and challenging Mon_Ouie to a duel to the death
pyon has joined #ruby
<Mon_Ouie> !mute Jean_Luc
<Inoperable> stadtsunterhaltungseinheiten
<baweaver> Just ping one of the ops if they come back, ignore anything they say.
Jean_Luc has quit [Client Quit]
jeadre has joined #ruby
<adaedra> I hope they will get tired quickly today.
Ketzel was banned on #ruby by jhass [jhass]
<craysiii> ?girls
<ruboto> I don't know anything about girls
Ketzel has left #ruby [requested by jhass (Your behavior is not conductive to the desired environment.)]
<baweaver> ohai jhass
Motoservo has joined #ruby
<shevy> craysiii are you starting it now :D
Porfa has joined #ruby
<craysiii> i was just seeing if there was one :P
<flughafen_> hey baweaver the hackathon master in ze haus!
blackmes1 has quit [Ping timeout: 272 seconds]
<baweaver> Hm?
<craysiii> i wonder how everyone would feel if people just started addressing people as girls instead of guys.
Guest50 has joined #ruby
elepedus has quit [Quit: elepedus]
workmad3 has quit [Ping timeout: 250 seconds]
<shevy> craysiii nope you are right... ruboto favours ?guys but not ?girls
<shevy> damn macho bot
blackmes1 has joined #ruby
<Porfa> any watir experts around here? :D
<craysiii> ruboto needs to check it's privilege or something
<jhass> ?ot
<ruboto> this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
_djbkd has joined #ruby
Cust0sLim3n has joined #ruby
_djbkd has quit [Read error: Connection reset by peer]
last_staff has quit [Quit: last_staff]
<Porfa> any watir ruby-gem experts here? :D
<prefixed> hello?
<BraddPitt> I would like to know why the ?guys trigger still exists
<baweaver> ?ot
<ruboto> this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<BraddPitt> still have the same problem as yesterday, Porfa?
_djbkd has joined #ruby
<prefixed> how can I iterate over an object's fields to perform some operation, but ignore one specific one?
<apeiros> ?ot BraddPitt
<ruboto> BraddPitt, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
einarj_ has joined #ruby
einarj has quit [Ping timeout: 240 seconds]
<shevy> what are "fields" in this context?
<Porfa> BraddPitt: neon! i submitted to RVM, everythin's working perfectly now! :)
<craysiii> prefixed cant you use next in your loop?
workmad3 has joined #ruby
<prefixed> craysiii how do I identify the field?
<prefixed> what's the notation
<toretore> prefixed: !code
jhass changed the topic of #ruby to: Please register to talk, see /msg NickServ help || Rules & more: http://ruby-community.com || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
<Porfa> now i just need to learn how to navigate my forms and pages like i learned with mechanize, but somehow i find more info online with mechanize, besides, when i enter a link/click something and i go to another page, mechanize automatically spits everything it can do on that page, watir doesn't.. just wondering how i inspect elements using watir
<toretore> prefixed: ?code
decoponio has quit [Quit: Leaving...]
mjuszczak has joined #ruby
<toretore> damit
<baweaver> other way around toretore
<prefixed> toretore this isn't a question that requries code
<toretore> yes it is
<prefixed> it's literally a syntax question
<toretore> no it is not
<shevy> ok but what is a "field" then
<craysiii> are you iterating over a hash? then you would just place a conditional on the key or value, depending on your requirements
<shevy> in general, you can apply .select or .reject
krisquigley has joined #ruby
<shevy> so whatever the "fields" are, select only those you want to, and not the other ones (or reject those you don't want to - same difference really)
blackmes1 has quit [Client Quit]
<craysiii> hadn't thought of that shevy :P
<prefixed> unless instance_var == [some instance var] ...
<shevy> craysiii I still have no idea what he means with field
<prefixed> shevy in other languages, instance vars are called fields
<shevy> do you have them spread out as individual instance variables?
christiandsg has joined #ruby
<shevy> well, you could use a CONSTANT in ruby too
<prefixed> what do you call the variables that are attached to an object?
<toretore> that doesn't exist
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<toretore> this isn't java
<shevy> >> class Foo; BAR = []; BAR << 'hello'; BAR << ' world!'; end; Foo::BAR
<ruboto> shevy # => ["hello", " world!"] (https://eval.in/423838)
<shevy> a beautiful field :D
<Inoperable> prefixed object fields :)
<Mon_Ouie> prefixed: See Object#instance_variables
mjuszczak has quit [Client Quit]
<Mon_Ouie> and instance_variable_{get,set}
<prefixed> I don't want to get the value stored
<prefixed> I just want to identify a specific instance_variable and ignore it
<shevy> you can obtain all of them via .instance_variables anyway though
<Mon_Ouie> "ignore it"?
fmcgeough has quit [Quit: fmcgeough]
<prefixed> yes i want to ignore one when iterating over them
<prefixed> not perform some operation
<prefixed> ignore = pretend it doesn't exist
<shevy> >> class Foo; def initialize; @foo = 5; end; end; Foo.new.instance_variables
<ruboto> shevy # => [:@foo] (https://eval.in/423843)
<prefixed> i feel liek i am speaking a different language here
<Mon_Ouie> Well, just the same as when you iterate over any array
<shevy> once you have them as Array, you can apply .select or .reject
hoggy_ has joined #ruby
krisquigley has quit [Ping timeout: 264 seconds]
<toretore> prefixed: you are. you're not making any sense because you speak in terms and concepts that are not applicable to ruby. explain the purpose, the goal instead
<prefixed> i have an object with some fields. i want to ignore one when iterating over the fields
<prefixed> this is not a hard concept
<toretore> ruby objects don't have fields
<Mon_Ouie> Show us how you're iterating over "fields".
<prefixed> jesus christ
prefixed has left #ruby [#ruby]
<roolo> Hey guys
<BraddPitt> this channel has gone so far down hill
litn has joined #ruby
<shevy> not yet someone has to do ?guys :>
<workmad3> BraddPitt: we hit rock bottom... and kept on digging! ;)
<roolo> Is there way in Jekyll to define dependencies?
<roolo> Example: I change one post and I want also tags page to be regenerated
<havenwood> BraddPitt: Happy to discuss in #ruby-offtopic or #ruby-community.
<litn> hi guys, is there a better or more barebones framework than ruby on rails?
<shevy> lol
<baweaver> litn: Sinatra
DCameronMauch has joined #ruby
<BraddPitt> well havenwood I would like to but it seems people just avoid discussion there
<shevy> litn sinatra and padrino perhaps
christiandsg has quit [Ping timeout: 265 seconds]
<BraddPitt> litn try python and flask
<havenwood> litn: Roda
<baweaver> Padrino is Sinatra with some extra features
<shevy> and cute little beavers as icons \o/
<havenwood> litn: Roda is lovely! By the maintainer of Sequel.
<litn> alright, I'll check out Roda and Sinatra
<baweaver> does it really?
<litn> thanks guys
<havenwood> litn: Sinatra has been around a lot longer. Roda is a project made by a Sinatra/Rails user and it's totally my cup of tea.
banister has left #ruby [#ruby]
<havenwood> litn: Another one you might look at is Lotus.
<litn> roda's website is pretty bad
<havenwood> litn: With Roda you start with just a routing tree and add plugins for additional features as you need them.
failshell has quit []
<litn> this does not look very web 2.0 how can I trust a web framework with a website this bad?
<toretore> lol
kinduff has quit []
<litn> look at that tree background
<litn> this is ridiculous
<litn> please don't link me this kind of garbage
<baweaver> web2.0 has been a dead concept for a while now
<havenwood> litn: :(
kinduff has joined #ruby
<baweaver> then again I would also not judge a framework by their lack of a designer.
<litn> this is a deeper issue than not having a designer
<litn> please look at this
<havenwood> litn: Lotus then you aesthete: http://lotusrb.org
ndrei has quit [Ping timeout: 264 seconds]
sstangl has joined #ruby
<sstangl> hey guys
<toretore> lol
<litn> hmm
ndrei has joined #ruby
<litn> havenwood: this is better
<litn> well, what framework do you guys use?
<BraddPitt> hi sstangl welcome to our community
<shevy> cgi!
<baweaver> just saying, being design-challenged does not equate to a bad framework.
krz has quit [Quit: WeeChat 1.2]
<havenwood> ^
ferhaty has joined #ruby
<sstangl> hi BraddPitt, do you know what memory model the ruby VM requires? asking for WebAssembly reasons.
<havenwood> It's aesthetically lovely.
<shevy> though, cgi with some modifications like cgi-exception and such
<havenwood> Minimalist. I enjoy the code.
<baweaver> See: OpenBSD
<havenwood> :D
<litn> shevy: really?
<baweaver> shevy lies
<baweaver> frequently
oatzhakok has joined #ruby
<shevy> litn yep but mostly because I switched from php to ruby in like 2003 or so
roolo_ has joined #ruby
<litn> do you guys really use cgi
<shevy> I really do!
<litn> that's bad
<sstangl> cgi is fine
<litn> it's fine for small projects that are sub 100 users
<sstangl> it scales up to a few ten thousand users no problem
<litn> maybe
<BraddPitt> lmao don't you use cgi too litn
<havenwood> litn: Very black and white? Bad and good?
<litn> no
<sstangl> no cgi is good these days
<BraddPitt> I remember us talking about it a while ago
<litn> cgi is good for small projects
<havenwood> litn: cgi isn't commonly used with Ruby but you see it
<shevy> well, when you have a class in ruby, then you just serve it or the string, so you could do so via a .cgi file or rack or anything else really
<BraddPitt> or FCGI
<baweaver> I like CGI too. Easier to hack.
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<litn> havenwood: maybe when you let idiots like shevy try writing web apps with ruby
<litn> baweaver: fcgi usually
<litn> but I will use cgi if lazy for something only I or a doezn people will be using
<havenwood> litn: don't insult folk here
<litn> sorry guys
<havenwood> litn: please be nice
k3asd` has quit [Ping timeout: 260 seconds]
<havenwood> !mute litn
<shevy> and I don't have any high traffic, in fact, I only ever had two people ever contact me about anything I wrote in like the last 6 years; one complained about lack of documentation (he was right), the other reported a bug
<BraddPitt> ahahaha
<BraddPitt> ?folk
<ruboto> I don't know anything about folk
jordanm has joined #ruby
<shevy> ah unmute him, he wrote sorry :D
<havenwood> !unmute litn
<BraddPitt> hi litn
<havenwood> Oh, apparently a troll.
<litn> hi BraddPitt
<havenwood> !mute litn
<shevy> hehehe
<BraddPitt> welp
<BraddPitt> good to see we believe in second chances here
<sstangl> just a rollercoaster of emotions here lately
<havenwood> BraddPitt: When folk announce via PM they're trolling...
<havenwood> BraddPitt: That tends to give it away.
[Butch] has quit [Quit: Linkinus - http://linkinus.com]
<shevy> sstangl they are having too much fun with ruboto
<miah> the amount of trolling in #ruby is too damned high.
rakm has joined #ruby
ferhaty has quit [Read error: Connection reset by peer]
<BraddPitt> sorry havenwood I forgot to read your PMs
Rinzlit1 has joined #ruby
<havenwood> BraddPitt: Yeah, you're not allowed.
<BraddPitt> oh
<shevy> well, the channel is growing... #1106
robh71 has joined #ruby
<drbrain> 1107!
<havenwood> shevy: :D
<oatzhakok> (≖⁀≖ )
pandaant has quit [Remote host closed the connection]
robh71 has quit [Read error: Connection reset by peer]
<oatzhakok> imo strong first post itc
roolo is now known as lipoqil
sstangl has left #ruby [#ruby]
<BraddPitt> sup oatzhakok
<oatzhakok> sup BraddPitt
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<BraddPitt> oatzhakok are you a gril
<flughafen_> o
<flughafen_> i need to go to bed, ttyl
DCameronMauch has quit [Quit: Leaving...]
weemsledeux has quit [Ping timeout: 240 seconds]
<flughafen_> have fun
<oatzhakok> BraddPitt: :3
flughafen_ has quit [Quit: WeeChat 1.0]
* baweaver sighs at lack of maturity, goes back to work
rubie has quit [Remote host closed the connection]
<shevy> some IRC nicks are dead give-aways
zendrix has joined #ruby
<oatzhakok> shevy: excuse me
<oatzhakok> my nick is my 4chan tripcode
<oatzhakok> so
<shevy> come on...
lipoqil has quit [Quit: Leaving...]
<craysiii> 16^0.5chan is lame.
<BraddPitt> nice meme craysiii
<oatzhakok> :g 16^0.5
roolo has joined #ruby
<BraddPitt> not how this botto works oatzhakok
<oatzhakok> which one does google
roolo has quit [Client Quit]
<craysiii> >> 16^0.5
<ruboto> craysiii # => Float can't be coerced into Float (TypeError) ...check link for more (https://eval.in/423856)
<BraddPitt> your browser
baweaver has quit [Remote host closed the connection]
<craysiii> oh
<shevy> lol
<craysiii> oh
<craysiii> brain hurt
<oatzhakok> kek
lipoqil has joined #ruby
ta has joined #ruby
<oatzhakok> ?guys
<ruboto> Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
hoggy_ has quit [Quit: hoggy_]
<oatzhakok> folks is a bullshit term
<oatzhakok> just say "people"
yardenbar has quit [Quit: Leaving]
<oatzhakok> man
<havenwood> oatzhakok: Don't spam the bot.
<oatzhakok> i hate politicians who say "folks"
<BraddPitt> ahahahahaha
<oatzhakok> havenwood: hey man
<BraddPitt> yeah havenwood tell him to stop spaming
<oatzhakok> i did it the one time
<oatzhakok> >:(
<craysiii> people is bullshit term
<craysiii> should just use biological lifeform
<oatzhakok> no
<oatzhakok> that's stupid
<havenwood> ?ot
<ruboto> this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<craysiii> youre being exclusionary
<woodruffw> i'm non-biological
<shevy> it's the nick, he was destined to getting knocked out :)
<oatzhakok> why wouldn't i exclude non humans
arup_r has quit [Quit: Leaving]
<oatzhakok> non humans can go pound sand
<oatzhakok> we won the planet
<oatzhakok> so we get to do what we want with it
<adaedra> >> 16**0.5 # craysiii
<ruboto> adaedra # => 4.0 (https://eval.in/423857)
roolo_ has quit [Quit: Palaver]
<craysiii> thanks, wrong language :P
<adaedra> ^ is binary xor
<shevy> I am ashamed to admit but right now I am also confused craysiii
<craysiii> hmm
<shevy> 16 to the power of 1/2 is 4? hmm I need to redo maths
<Mon_Ouie> x^(1/2) is sqrt(x)
<woodruffw> ^
<adaedra> ^
<BraddPitt> w5
<oatzhakok> w
<oatzhakok> w 4
<oatzhakok> BraddPitt: :(
lipoqil_ has joined #ruby
<workmad3> shevy: for the reason behind that, think in terms of (x^0.5 * x^0.5) = (x^(0.5 + 0.5) ) = x^1 = x
<BraddPitt> :^)
<BraddPitt> ?ot workmad3 shevy adaedra craysiii Mon_Ouie woodruffw
<ruboto> workmad3, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<adaedra> wat
<woodruffw> BraddPitt: excuse you
<shevy> workmad3 hmm let me digest that ...
<oatzhakok> ?ot oatzhakok
<ruboto> oatzhakok, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<oatzhakok> um
<oatzhakok> why so verbose
<BraddPitt> I do not need to be excused but thank you woodruffw
einarj has joined #ruby
<oatzhakok> it's like you want people to abuse the bots
<havenwood> !ban oatzhakok !T 1h you were warned not to spam the bot
oatzhakok was banned on #ruby by ChanServ [oatzhakok!*@*]
oatzhakok was kicked from #ruby by ChanServ [Banned: you were warned not to spam the bot]
einarj_ has quit [Ping timeout: 260 seconds]
bsdbofh has quit [Quit: bsdbofh]
Jackneill has quit [Remote host closed the connection]
<workmad3> shevy: if you really want a fun one = `0^0 = 1` ;)
lipoqil_ has quit [Remote host closed the connection]
<adaedra> that's math
<shevy> my old weakness
litn has left #ruby [#ruby]
einarj_ has joined #ruby
minimuffins has quit [Ping timeout: 255 seconds]
<workmad3> adaedra: I'm wondering if anyone is going to raise the point that my statement is only true in certain contexts where x^y has been made continuous at the origin...
<workmad3> adaedra: but no one did quickly enough
<adaedra> nerd
<Mon_Ouie> >> 0**0
<ruboto> Mon_Ouie # => 1 (https://eval.in/423858)
<Mon_Ouie> Your statement is the universal truth.
einarj has quit [Ping timeout: 246 seconds]
<adaedra> 0**0 looks like a smiley.
devdazed_ has joined #ruby
minimuffins has joined #ruby
baweaver has joined #ruby
<workmad3> Mon_Ouie: 'universal truth' == 'special-cased in ruby's exponent operator'? :)
nkts has joined #ruby
<craysiii> i thought 0^0 was 1?
<craysiii> in real life
<Mon_Ouie> 0^0 is often left undefined because 0^x for any x is 0 while x^0 for any x is 1
<adaedra> I remember that n^0 = 1 whatever n is or something like that, but I may be wrong
hectortrope has quit [Quit: WeeChat 0.4.2]
<workmad3> adaedra: yeah... and the rationale for that involves division by 0 for 0^0
rodfersou has quit [Quit: leaving]
rodfersou has joined #ruby
devdazed has quit [Ping timeout: 245 seconds]
rubie has joined #ruby
<workmad3> adaedra: and as Mon_Ouie points out, if you do 0^n and let n tend to 0, it's 0 all the way, and jumps (is discontinuous) at 0^0
<adaedra> I wasn't listening in math lessons anyway.
<workmad3> adaedra: it's also fun to throw out 'the sum of all natural numbers is -1/12' and watch the ensuing arguments :)
<adaedra> ok
<Mon_Ouie> 1 = sqrt(1) = sqrt((-1)(-1)) = sqrt(-1)sqrt(-1) = i^2 = -1
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cantaberry has quit [Ping timeout: 265 seconds]
<craysiii> i dont know whats real anymore
zenguy_pc has quit [Read error: Connection reset by peer]
<workmad3> Mon_Ouie: hehe
codecop has quit [Quit: Išeinu]
<adaedra> The flaw is at 1 = sqrt(1)
zenguy_pc has joined #ruby
cantaberry has joined #ruby
elepedus has joined #ruby
devoldmx has joined #ruby
JDiPierro has quit [Remote host closed the connection]
Azure has joined #ruby
zenguy_pc has quit [Read error: Connection reset by peer]
unver has quit [Remote host closed the connection]
banjara1 has joined #ruby
Mendenhall has joined #ruby
<workmad3> adaedra: the flaw is that the step `sqrt(x * x) = sqrt(x) * sqrt(x)` isn't properly defined for x < 0
unver has joined #ruby
unver has quit [Client Quit]
zenguy_pc has joined #ruby
banjara has quit [Ping timeout: 244 seconds]
dopie has quit [Quit: This computer has gone to sleep]
<Mon_Ouie> ^ Especially confusing because usually you're taught about sqrt(a*b) = sqrt(a)*sqrt(b) before knowing about complex numbers, and people tend to assume properties like this generalize to negative numbers if they have square roots as well
sargas has joined #ruby
<workmad3> ^ also means that when most people are taught it, they either aren't shown or skip right over 'sqrt(a*b) = sqrt(a)sqrt(b) for a,b > 0`
devoldmx has quit [Ping timeout: 240 seconds]
rodfersou has quit [Quit: leaving]
benlovell has quit [Ping timeout: 246 seconds]
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
gizless has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
zenguy_pc has quit [Read error: Connection reset by peer]
<heftig> workmad3: where does it break?
Musashi007 has joined #ruby
platzhirsch has quit [Ping timeout: 260 seconds]
zenguy_pc has joined #ruby
unreal_ has joined #ruby
<workmad3> Mon_Ouie: thanks btw, I feel I have learned something about maths recently now... a year or two ago, I'd have completely stumbled over that one
<heftig> ah, that thing there
joe2 has quit [Ping timeout: 245 seconds]
arooni-mobile has quit [Ping timeout: 244 seconds]
JoshL_ has quit []
unreal has quit [Ping timeout: 256 seconds]
cornerma1 has joined #ruby
r_baron has quit [Quit: Page closed]
jeadre has quit [Remote host closed the connection]
EllisTAA has quit [Quit: EllisTAA]
atomical_ has joined #ruby
EllisTAA has joined #ruby
ldnunes has quit [Quit: Leaving]
cornerman has quit [Ping timeout: 250 seconds]
cornerma1 is now known as cornerman
jeadre has joined #ruby
neanderslob_ has quit [Ping timeout: 260 seconds]
neanderslob has joined #ruby
EllisTAA has quit [Client Quit]
atomical has quit [Ping timeout: 255 seconds]
atomical_ has quit [Client Quit]
einarj has joined #ruby
molawson has left #ruby ["Textual IRC Client: www.textualapp.com"]
einarj_ has quit [Ping timeout: 246 seconds]
r0x0rZ has quit [Remote host closed the connection]
FernandoBasso has joined #ruby
umgrosscol has quit [Remote host closed the connection]
EllisTAA has joined #ruby
Pumukel has joined #ruby
meatherly has joined #ruby
j_mcnally has joined #ruby
d2dchat has joined #ruby
j_mcnally has quit [Client Quit]
Rinzlit1 has quit [Ping timeout: 246 seconds]
kirun has quit [Quit: Client exiting]
iamninja has quit [Read error: Connection reset by peer]
christiandsg has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
EllisTAA has quit [Client Quit]
iamninja has joined #ruby
dgutierrez1287 has joined #ruby
Olipro| has quit [Ping timeout: 256 seconds]
elepedus has quit [Quit: elepedus]
hololeap has joined #ruby
ngscheurich has quit [Ping timeout: 250 seconds]
christiandsg has quit [Ping timeout: 265 seconds]
dgutierrez1287 has quit [Ping timeout: 244 seconds]
voxxit has joined #ruby
Mia has quit [Read error: Connection reset by peer]
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ddarkpassenger has joined #ruby
jgpawletko has quit [Quit: jgpawletko]
rbennacer has quit [Remote host closed the connection]
catoblepa has quit [Ping timeout: 246 seconds]
danman has joined #ruby
Mia has joined #ruby
ecnalyr has quit [Remote host closed the connection]
vyorkin has joined #ruby
C1V0 has joined #ruby
meatherly has quit []
Olipro- has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Olipro- is now known as Guest74353
acke has quit [Remote host closed the connection]
hinbody has quit [Quit: leaving]
Guest50 has joined #ruby
meatherly has joined #ruby
rbennacer has joined #ruby
skade has joined #ruby
baweaver has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
khebbie has joined #ruby
Azure|dc has joined #ruby
meatherly has quit []
Azure has quit [Ping timeout: 244 seconds]
meatherly has joined #ruby
meatherly has quit [Client Quit]
Musashi007 has quit [Quit: Musashi007]
catoblepa has joined #ruby
khebbie has quit [Ping timeout: 246 seconds]
hyy has quit [Quit: WeeChat 1.3]
<dfockler> BraddPitt: you can do the same thing in Rust :)
hyy has joined #ruby
baweaver has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
framling has quit [Remote host closed the connection]
ddarkpassenger has quit [Quit: Textual IRC Client: www.textualapp.com]
Lucky__ has joined #ruby
gambl0re has quit [Ping timeout: 260 seconds]
denisemccoy has quit [Remote host closed the connection]
einarj_ has joined #ruby
einarj has quit [Ping timeout: 265 seconds]
zendrix has quit [Remote host closed the connection]
vyorkin has quit [Ping timeout: 260 seconds]
zdman135 has joined #ruby
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
FernandoBasso has quit [Quit: May the force be with you.]
Guest75145 has quit [Ping timeout: 246 seconds]
FernandoBasso has joined #ruby
maletor has joined #ruby
victortyau has quit [Quit: Leaving]
Kallis has joined #ruby
jenrzzz_ has joined #ruby
vyorkin has joined #ruby
MasterPiece has quit [Ping timeout: 260 seconds]
Mendenhall has quit [Ping timeout: 245 seconds]
hololeap has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
podman has quit [Quit: Connection closed for inactivity]
jenrzzz has quit [Ping timeout: 252 seconds]
acke has joined #ruby
leat1 has quit [Ping timeout: 244 seconds]
denisemccoy has joined #ruby
Limix has quit [Quit: Limix]
davedev2_ has joined #ruby
davedev24 has quit [Ping timeout: 244 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
sdwrage has joined #ruby
sdwrage has quit [Remote host closed the connection]
sargas has quit [Quit: Leaving]
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
leat1 has joined #ruby
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
skade has quit [Quit: Textual IRC Client: www.textualapp.com]
stevednd has joined #ruby
sdwrage has joined #ruby
ledestin has joined #ruby
jamesaxl|2 has joined #ruby
nkts has quit [Quit: Leaving]
DoubleMalt has quit [Remote host closed the connection]
I has joined #ruby
I is now known as Guest74293
poli has quit [Ping timeout: 252 seconds]
symm- has quit [Quit: Leaving...]
jamesaxl has quit [Ping timeout: 246 seconds]
zendrix has joined #ruby
voltalio has joined #ruby
r0x0rZ has joined #ruby
chichou has joined #ruby
leat1 has quit [Remote host closed the connection]
mandarinkin has quit [Quit: Leaving]
leat1 has joined #ruby
symm- has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
polysics has quit [Remote host closed the connection]
kinduff has quit []
r0x0rZ has quit [Ping timeout: 245 seconds]
lkba has joined #ruby
ta has quit [Remote host closed the connection]
Pupeno has quit [Remote host closed the connection]
Salve_ has joined #ruby
jgt has joined #ruby
sdwrage has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
devdazed_ has quit [Quit: Computer has gone to sleep.]
Salve_ has quit [Client Quit]
Salve_ has joined #ruby
Mia has quit [Write error: Connection reset by peer]
Salve_ has quit [Client Quit]
Voker57 has quit [Remote host closed the connection]
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta has joined #ruby
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
Inoperable has quit [Quit: End of line, man.]
voltalio has joined #ruby
ta has quit [Ping timeout: 240 seconds]
ecnalyr has joined #ruby
kies has joined #ruby
s2013 has joined #ruby
enebo has quit [Quit: enebo]
Limix has joined #ruby
jesterfraud has joined #ruby
hyy has quit [Ping timeout: 256 seconds]
Musashi007 has joined #ruby
Limix has quit [Client Quit]
einarj_ has quit [Ping timeout: 244 seconds]
einarj has joined #ruby
jhack32 has joined #ruby
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
[k- has quit [Ping timeout: 265 seconds]
pglombar_ has joined #ruby
Musashi007 has quit [Client Quit]
catoblepa has quit [Ping timeout: 246 seconds]
jhack has quit [Ping timeout: 240 seconds]
Kallis has quit [Read error: Connection reset by peer]
Cust0sLim3n has quit [Max SendQ exceeded]
jesterfraud has quit [Ping timeout: 240 seconds]
rbowlby has quit [Remote host closed the connection]
denisemccoy has quit [Remote host closed the connection]
christiandsg has joined #ruby
pglombardo has quit [Ping timeout: 250 seconds]
cantaberry has quit [Ping timeout: 260 seconds]
Cust0sLim3n has joined #ruby
northfurr has joined #ruby
pglombar_ has quit [Ping timeout: 260 seconds]
ecnalyr has quit [Remote host closed the connection]
polpak has quit [Quit: leaving]
acke has quit [Remote host closed the connection]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
snockerton has quit [Quit: Leaving.]
zdman135 has quit [Remote host closed the connection]
Mendenhall has joined #ruby
s2013 has joined #ruby
acke has joined #ruby
whippythellama has quit [Quit: WeeChat 1.3]
ruby_forthe_win has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]
Inoperable has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
cschneid_ has quit [Ping timeout: 252 seconds]
ruby_forthe_win has left #ruby [#ruby]
PaulVern has joined #ruby
<PaulVern> Hi, I am relatively new to Ruby. I have written the following script: http://paste.ofcode.org/vvVY46Ep87kGrS48tCAywT
startupality has joined #ruby
<PaulVern> Can someone tell me why the output is 'nill' ?
<PaulVern> I was expecting 'blah'
jgt has quit [Ping timeout: 265 seconds]
<Mon_Ouie> >> {key: "value"}
<ruboto> Mon_Ouie # => {:key=>"value"} (https://eval.in/423887)
<PaulVern> I thought I was accessing the hosted_zone_id key
<Mon_Ouie> PaulVern: ^ notice how this is written as :key => "value"? The key is not a String, but a Symbol
<PaulVern> Mon_Ouie: Ah
dopamean_ has quit [Ping timeout: 272 seconds]
jesterfraud has joined #ruby
Inoperable has quit [Quit: Leaving]
busterarm has joined #ruby
einarj has quit [Remote host closed the connection]
yashinbasement has joined #ruby
acke has quit [Remote host closed the connection]
<yashinbasement> what does srand(1) does in ruby
zendrix has quit [Remote host closed the connection]
Kallis has joined #ruby
giuseppesolinas has joined #ruby
zendrix has joined #ruby
PaulVern has quit [Quit: Leaving]
zendrix has quit [Remote host closed the connection]
<Mon_Ouie> It sets the seed of the Random number generator. After a call to srand(1), subsequent calls to rand will consistently produce the same results.
rubie has quit [Remote host closed the connection]
devoldmx has joined #ruby
JEG2 has quit [Quit: Connection closed for inactivity]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
araujo has quit [Ping timeout: 246 seconds]
Yzguy has joined #ruby
Yzguy has quit [Max SendQ exceeded]
<baweaver> yashinbasement: ^
Yzguy has joined #ruby
araujo has joined #ruby
<yashinbasement> yes now I can see
<baweaver> It happens on occasion.
bigredbo_ has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 255 seconds]
araujo has quit [Max SendQ exceeded]
<yashinbasement> yeah maybe it's because of autojoin
WillAmes has quit [Remote host closed the connection]
<yashinbasement> but I always get open on ror
Inoperable has joined #ruby
* baweaver shrugs
<yashinbasement> so my question what does srand 1 do
<baweaver> who knows, strange things happen.
WillAmes has joined #ruby
<baweaver> Mon_Ouie: It sets the seed of the Random number generator. After a call to srand(1), subsequent calls to rand will consistently produce the same results.
<baweaver> (reposting)
araujo has joined #ruby
<yashinbasement> ohhh
<yashinbasement> right
Mendenhall has quit [Ping timeout: 245 seconds]
araujo has quit [Max SendQ exceeded]
<yashinbasement> yeah there was a question that you need to guess what is next ruby random number
araujo has joined #ruby
rbennacer has joined #ruby
gamename has quit [Remote host closed the connection]
gamename has joined #ruby
giuseppesolinas has quit [Quit: Leaving]
sankaber has joined #ruby
yashinbasement has quit [Quit: Leaving]
<baweaver> I'd just be cheeky: def random; 1 end # chosen by a fair random dice roll
AlphaAtom has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
iamninja has quit [Ping timeout: 265 seconds]
<Mon_Ouie> (FYI, he left before you sent that message)
<baweaver> aw
<baweaver> just saw that too
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
charliesome has joined #ruby
paulcsmith has joined #ruby
jenrzzz_ has quit [Ping timeout: 255 seconds]
gamename has quit [Ping timeout: 250 seconds]
juanpaucar has quit []
juanpaucar has joined #ruby
Motoservo has quit [Quit: Motoservo]
icarus has quit [Ping timeout: 252 seconds]
ngscheurich has joined #ruby
dfockler has quit [Remote host closed the connection]
blue_deref has joined #ruby
lipoqil has quit [Remote host closed the connection]
DEA7TH has quit [Quit: DEA7TH]
rehat_ has quit [Remote host closed the connection]
lipoqil has joined #ruby
zendrix has joined #ruby
charliesome has quit [Ping timeout: 244 seconds]
voxxit has quit [Quit: Textual IRC Client: www.textualapp.com]
phillip has joined #ruby
lipoqil has quit [Remote host closed the connection]
tubuliferous_ has joined #ruby
Mia has quit [Read error: Connection reset by peer]
sdwrage_ has joined #ruby
Darkwater has quit [Ping timeout: 265 seconds]
charliesome has joined #ruby
sdwrage has quit [Ping timeout: 244 seconds]
paulcsmith has quit [Ping timeout: 240 seconds]
Mia has joined #ruby
voltalio has joined #ruby
ta has joined #ruby
rbowlby has joined #ruby
rcvalle has quit [Quit: rcvalle]
mjuszczak has joined #ruby
chipotle has quit [Quit: cheerio]
dfockler has joined #ruby
voltalio has quit [Client Quit]
dgutierrez1287 has joined #ruby
tlolczyk has quit [Ping timeout: 244 seconds]
voltalio has joined #ruby
workmad3 has joined #ruby
chichou has quit []
Motoservo has joined #ruby
mary5030 has joined #ruby
ta has quit [Ping timeout: 246 seconds]
C1V0 has quit []
rbennacer has quit [Remote host closed the connection]
jenrzzz has joined #ruby
rbennacer has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
wldcordeiro has quit [Ping timeout: 256 seconds]
TheNet has joined #ruby
TheNet has quit [Client Quit]
Torrieri has quit [Quit: Be back later ...]
jesterfraud has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Torrieri has joined #ruby
Pumukel has quit [Quit: ChatZilla 0.9.92 [Firefox 40.0/20150807085045]]
cool has quit [Quit: Connection closed for inactivity]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Gribo has quit [Read error: Connection reset by peer]
charliesome_ has joined #ruby
tlolczyk has joined #ruby
charliesome_ has quit [Client Quit]
Guest74293 has quit [Quit: This computer has gone to sleep]
charliesome has quit [Ping timeout: 244 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gambl0re has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
rbennacer has quit [Remote host closed the connection]
Inoperable has quit [Quit: Leaving]
tvw has quit []
dimasg has joined #ruby
Torrieri has quit [Ping timeout: 246 seconds]
kristofferR has joined #ruby
tokik has quit [Quit: leaving]
<radens> Hey, where can I speak to the ruby developers?
Limix has joined #ruby
<radens> I found something odd in ripper that I think is a bug.
* baweaver looks at channel name
<baweaver> Most of the time there's a ruby bug tracker if it's in source
<baweaver> just a sec.
tokik has joined #ruby
<radens> baweaver: #python is not where you go if you want to ask guido about the python parser.
<baweaver> yes, but #elixir-lang is where you can ask Jose about elixir :)
<baweaver> depends on the channel / group honestly.
dimasg has quit [Ping timeout: 244 seconds]
<baweaver> there it is
<baweaver> as far as I know, Ox0dea and tenderlove tend to be more frequent on the core issues
kristofferR has quit [Client Quit]
<Mon_Ouie> Wasn't there a #ruby-core channel? Not sure how active iti s
<baweaver> yeah, I'd have to check myself.
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]