apeiros changed the topic of #ruby to: Ruby 2.1.0; 2.0.0-p353; 1.9.3-p484: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
<aloitius_> RubyPanther: Yeah. I did "rbenv rehash" (a lot, 'cause, why not) but it's something dumb like that, I'm sure.
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<RubyPanther> svn is not even bad. There is strong value in using the standardized revision control, so most people should use git.
<benzrf> b-but centralized!
<aloitius_> OK, I just did the life-of-a-radar thing from scratch and installed ruby 2.1.0
<Radar> aloitius_: rbenv or rvm
<RubyPanther> People slag on svn for silly things like the claiming the branching system is "hard" those people probably never used it because it actually it braindead simple and even space efficient
xibalba has joined #ruby
<aloitius_> Radar: rvm, so that I could follow the directions exactly.
<Radar> Goodo.
<xibalba> any thoughts on this?
<xibalba> 2.0.0-p353 :036 > %w[a b c d e f g h i j k l m n o p q r s t u w x y z].permutation.map &:join
<xibalba> Killed
<aloitius_> I have not installed Rails however.
<benzrf> xibalba: seems like a bad idea
<xibalba> well yea
mneorr has joined #ruby
<xibalba> but i didn't think it'd crash
x77686d has quit [Quit: x77686d]
mengu has joined #ruby
<xibalba> I want a string MAVEY + [A-Z] permutations printed out
<aloitius_> Bundle install dumps out same error. x-(
<benzrf> mavey?
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
<xibalba> MAVEY just the string, has no relevant meaning
<havenwood> xibalba: [*'a'..'z'].permutation.map &:join
<xibalba> ah thats it
<xibalba> i was trying to figure that out
<xibalba> how can i keep irb from dying though
<xibalba> 2.0.0-p353 :002 > [*'a'..'z'].permutation.map &:join
<xibalba> Killed
v0n has quit [Ping timeout: 272 seconds]
<xibalba> ok seems to run longer if i put it in a file then call it, but still dies
_bob has quit [Quit: Bye]
<xibalba> sh:/tmp$ ruby foo.rb
<xibalba> Killed
starfox21 has quit [Quit: starfox21]
Caius has quit [Ping timeout: 260 seconds]
whatasunnyday has quit [Quit: whatasunnyday]
b00stfr3ak has quit [Ping timeout: 260 seconds]
Wolland has joined #ruby
<aloitius_> Ideas anyone?
diego_k has quit [Ping timeout: 252 seconds]
mengu has quit [Ping timeout: 260 seconds]
<havenwood> xibalba: How many GB of memory do you have?
Sawbones has joined #ruby
bthesorceror has joined #ruby
VTLob has quit [Quit: VTLob]
<xibalba> hmm like 1 gig but i can bump it up
freezey has quit [Remote host closed the connection]
TheNumb has quit [Ping timeout: 252 seconds]
matrixise has quit [Ping timeout: 252 seconds]
Caius has joined #ruby
Shidash has quit [Read error: Connection reset by peer]
kenneth has joined #ruby
Shidash has joined #ruby
stryek has quit [Ping timeout: 250 seconds]
Sawbones has quit [Read error: Connection reset by peer]
diegok has joined #ruby
bgy has quit [Ping timeout: 252 seconds]
<Radar> aloitius_: nope
pr00t has quit [Ping timeout: 252 seconds]
Wolland_ has joined #ruby
<xibalba> ha even running it through AWK is causing load on my system
Megtastique has joined #ruby
Wolland has quit [Read error: Connection reset by peer]
Sawbones has joined #ruby
<Radar> aloitius_: You've screwed up something on your machine and from this distance even if I squint REAL hard I can't see what it could be.
<aloitius_> Radar: Heh. Yeah. I get that. That's why I wiped it. Sadly, this was no remedy.
mikemac has quit [Read error: Connection reset by peer]
<Radar> aloitius_: Upi
mikemac has joined #ruby
<Radar> Oops.
<Radar> aloitius_: You're special then.
matrixise has joined #ruby
<aloitius_> Radar: Well, "special" anyway.
predator217 has joined #ruby
parduse has quit [Ping timeout: 260 seconds]
<Radar> aloitius_: show us the error now.
<Radar> aloitius_: should be pointing at RVM but I just want to make sure
sparrovv has quit [Remote host closed the connection]
TheNumb has joined #ruby
Kricir has quit [Remote host closed the connection]
parduse has joined #ruby
parduse has quit [Changing host]
parduse has joined #ruby
vpretzel has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
Guest60299 has quit [Ping timeout: 265 seconds]
predator117 has quit [Ping timeout: 260 seconds]
<havenwood> xibalba: Looks like ~10GB.
bklane has quit [Remote host closed the connection]
Megtastique has quit [Client Quit]
<xibalba> you were able to process it?
<aloitius_> Radar: I made a change to the Gemfile, to take out all the gems but one, 'nokogiri'.
<havenwood> xibalba: Trying now.
<aloitius_> If I take them ALL out, it works! =P
zeropx has quit [Quit: has left the room … Or did he?]
Wolland_ has quit [Ping timeout: 245 seconds]
<Radar> different error now, but with the mini_portile gem
bklane has joined #ruby
<Radar> I have no idea what your machine is doing to cause these errors
Sawbones has quit [Read error: Operation timed out]
vpretzel has joined #ruby
vpretzel has quit [Remote host closed the connection]
failshell has joined #ruby
<aloitius_> Radar: Right, because I removed the Gems. That was a second run. I don't know either.
<RubyPanther> xibalba: arr=[]; [*'a'..'z'].permutation{|p|arr << "FOO#{p.join}"} ; arr # may or may not be less bad
<itadder> how do I make a alias to my ruby project directory / folder in the CLI
<havenwood> aloitius_: I see you're hitting `http://rubygems.org` not `https://`
<itadder> alias cd ~\ruby\project1 rubyproject
<aloitius_> When it happened, shortaly after, my X wouldn't start on boot. I had to manually do it. (Another reason to wipe it.)
bgy has joined #ruby
<aloitius_> havenwood: I've done both. I thought maybe that was the problem, so I added the s.
<aloitius_> havenwood: Since it didn't change anything, and I recall https being a problem in the past, I switched it back.
Sawbones has joined #ruby
kevind has quit [Quit: kevind]
black0ut has joined #ruby
<havenwood> aloitius_: https is correct, http isn't
msmith_ has quit [Remote host closed the connection]
<havenwood> aloitius_: gem update --system
Collin has joined #ruby
<xibalba> havenwood, RubyPanther thanks
<xibalba> ended up using crunch + a bash loop
Sawbones has quit [Client Quit]
<havenwood> xibalba: ;)
nomadic has quit [Ping timeout: 240 seconds]
axl_ has joined #ruby
Sawbones has joined #ruby
pr00t has joined #ruby
<xibalba> crunch 2 2 "abcdefghijklmnopqrstuvwxyz" > /tmp/crunch.txt ; for fn in `cat /tmp/crunch.txt`; do echo "MAVEY$fn"; done > ~/public_html/mavey.txt
<aloitius_> havenwood: "latest version currently installed. aborting"
msmith_ has joined #ruby
jonah_k has quit [Remote host closed the connection]
msmith_ has quit [Remote host closed the connection]
eFeXeN is now known as eFeXeN_zzz
msmith_ has joined #ruby
bklane has quit [Ping timeout: 265 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> aloitius_: just to double check?: gem -v
failshell has quit [Ping timeout: 250 seconds]
slowcon has joined #ruby
kenneth has joined #ruby
<aloitius_> havenwood: 2.2.2
<havenwood> aloitius_: sanity check passed, heh
nomadic has joined #ruby
<aloitius_> havenwood: Yours maybe. They're going to drag me off here pretty soon, and you know what? I'm not gonna fight it. It's my time...
x77686d has joined #ruby
brennanMKE has quit [Remote host closed the connection]
clov3r has quit [Remote host closed the connection]
<havenwood> aloitius_: when you nuked RVM with `rvm implode` did you also `rm -rf ~/.rvm` (sorry if already asked).
sepp2k1 has quit [Read error: Connection reset by peer]
mojjojo has quit [Quit: mojjojo]
clov3r has joined #ruby
mojo619 has quit [Quit: mojo619]
brennanMKE has joined #ruby
<havenwood> aloitius_: rm -rf /home/aloitius/.rvm/gems/ruby-2.1.0/cache/*
yasushi has quit [Remote host closed the connection]
<aloitius_> havenwood: I just did the "rm -rf ~/.rvm" not the "rvm implode".
hobodave has quit [Quit: Computer has gone to sleep.]
<aloitius_> havenwood: And I've killed the cache--well, that's always been my go to, since it makes sense that it would be the problem.
<havenwood> aloitius_: right
workmad3 has quit [Ping timeout: 260 seconds]
whatasunnyday has joined #ruby
<havenwood> aloitius_: I'd suggest trying #rvm. Or see if you can get a clean install with ruby-install/chruby since those haven't been borked yet.
blackmesa has joined #ruby
<xibalba> havenwood, so....help me do this in Ruby?
<xibalba> my friend is disappointed i used my unix skills
<xibalba> as i'm currently learning ruby
<aloitius_> havenwood: OK.
<itadder> how do I do that havenwood
<itadder> I do not want to cd to 5 folders in my dropbox
<itadder> is it alias that I need to use
<xibalba> RubyPanther, triied your way still crashed my box
brennanMKE has quit [Ping timeout: 245 seconds]
clov3r has quit [Ping timeout: 260 seconds]
Sawbones has quit []
black0ut has quit []
troyswanson has joined #ruby
black0ut has joined #ruby
black0ut has left #ruby [#ruby]
<havenwood> xibalba: so you want unique permutations of 'a' to 'z'? or something else
<RubyPanther> well, or course
<RubyPanther> even if it is better, it is still an insane dataset
starfox21 has joined #ruby
<RubyPanther> try permutations(10) or something :P
<xibalba> yea, my output from crunch/bash worked and i put it here, http://lethalnetworks.com/~reza/mavey.txt
dingus_khan has joined #ruby
sdelmore has quit [Quit: Leaving.]
<xibalba> though i wanted to try doing it in ruby
Wolland has joined #ruby
Lewix has quit [Remote host closed the connection]
<havenwood> xibalba: you want just two letter combos?
<xibalba> i guess i could do a for loop and inner for loop
<troyswanson> hey yall. trying to understand rake. is it similar to grunt but for ruby? im a total noob about this stuff. any help would be lovely
<xibalba> but that feels too old school Cish, and not Ruby-ish
silicong has joined #ruby
<havenwood> xibalba: [*'a'..'z'].combination(2).map &:join
<RubyPanther> troyswanson: I dunno what grunt is, but rake is like make, for ruby. Just a thing to automate tasks from the cli
cpruitt has quit [Quit: cpruitt]
<troyswanson> i dont know what make is either ;'(
<xibalba> havenwood, sweet i'm going to go lookup that combination function
<troyswanson> a thing to automate tasks though
Sawbones has joined #ruby
<troyswanson> so like, install bower, install dependencies, minify bootstrap files, move minified files to /public?
beakr has quit [Quit: beakr]
<havenwood> itadder: i think you're looking for `ln -sf`
<itadder> thanks
<havenwood> itadder: though i dunno actually.. are you trying to create a symbolic link? or do you want to alias something? i'm confused
whatasunnyday has quit [Quit: whatasunnyday]
Wolland has quit [Ping timeout: 260 seconds]
benlieb has joined #ruby
<havenwood> itadder: i think you mean `ln` but if not disregard :P
sski has quit [Remote host closed the connection]
<xibalba> havenwood, can i pass that to a block to run puts on it?
<itadder> all I need to do is ln to some part in my home direcotry
whatasunnyday has joined #ruby
<xibalba> something like (i know its wrong) 2.0.0-p353 :008 > [*'a'..'z'].combination(2).map &:join { |combo| puts "MAVEY" + combo }
sski has joined #ruby
Jdubs has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<itadder> I want to type rubyproject in the cli
<itadder> and it brings to my rubyproject folder
<havenwood> xibalba: [*'A'..'Z'].combination(2).map { |pair| "MAVEY#{pair.join}" }
zz_karupanerura is now known as karupanerura
<aloitius_> OK, so...now it's working.
Megtastique has joined #ruby
<havenwood> xibalba: Or: [*'A'..'Z'].combination(2).map { |x, y| "MAVEY#{x}#{y}" }
<itadder> but a shortcut would also work
<itadder> bah thanks havenwood a shortcut would be best I got it
<xibalba> ok i've got to go refresh on maps
<itadder> brb
Zunonia_ has joined #ruby
<havenwood> aloitius_: \o/
charliesome has joined #ruby
<aloitius_> havenwood: Yeah, except I don't know why. x-( The only thing I know I did differently was the "rvm implode" which shouldn't matter given I started from scratch. Unless it was the https thing somehow.
beakr has joined #ruby
aryaching has quit []
sski has quit [Ping timeout: 260 seconds]
<havenwood> xibalba: Or a bit less readable way just for fun: [*?A..?Z].combination(2).with_object('MAVEY').map { |(x, y), prefix| "#{prefix}#{x}#{y}" }
Guest95692 has quit [Changing host]
Guest95692 has joined #ruby
Guest95692 is now known as seekwill
Aryasam has joined #ruby
<havenwood> aloitius_: RVM is over 20,000 lines of code. If you want it to go away, it must implode or commit sebuku!
parzo has joined #ruby
MyStartx has quit [Ping timeout: 245 seconds]
<troyswanson> im working on a new rails app that i plan on deploying to heroku, but i want to use bower to manage front-end dependencies (including bootstrap), and less to minify/move bootstrap files. bower and less use npm, though, so will this work?
<havenwood> aloitius_: I prefer chruby's 100 lines for simplicity of use but RVM supports some crazy legacy systems and has niceties like precompiled binaries for some systems.
<aloitius_> havenwood: Good to know.
sparrovv has joined #ruby
<aloitius_> havenwood: Oh, I seem to never be running anything that has precompiled binaries =P
<havenwood> troyswanson: Might try #rubyonrails, I'm not sure.
<havenwood> aloitius_: A neat idea though, and mpapis has made headway an official binary release from ruby-core with more supported systems in the future
Kricir has joined #ruby
Asher1 is now known as Asher
<havenwood> aloitius_: Image a day when the official Ruby install is a drag-and-drop statically linked precompiled binary. :O
Bira has joined #ruby
<havenwood> aloitius_: It is coming!
failshell has joined #ruby
<troyswanson> havenwood: thanks
Aryasam has quit [Client Quit]
blackmesa has quit [Ping timeout: 240 seconds]
srji_ has joined #ruby
<aloitius_> Havenwood: Well, that'd be cool. Heh. Then, there'll end up being people distributing ONLY binaries, though, I bet.
<itadder> oh
<havenwood> aloitius_: It will probably be the default distribution method, but you can always build from source if you'd like.
dx7 has joined #ruby
DarthGandalf has quit [Ping timeout: 245 seconds]
<itadder> wow
<itadder> why would they do that
mikecmpbll has quit [Quit: i've nodded off.]
<itadder> would they also put in the mac app store for easy download
cpruitt has joined #ruby
Aryasam has joined #ruby
<havenwood> itadder: You can drag and drop Tokaido.app for a statically linked precompiled binary already, but it is prerelease: https://github.com/tokaido/tokaidoapp/releases
itadder has quit []
gengis has joined #ruby
jgoss has quit [Ping timeout: 245 seconds]
<aloitius_> Havenwood: Ooh!
srji has quit [Ping timeout: 252 seconds]
acoyfellow has joined #ruby
<slowcon> question about pry, when i do an LS on an object, say it returns STRING, X, Y. does that mean that all the methods available to string,x & y can be used?
Bira has quit [Ping timeout: 260 seconds]
failshell has quit [Ping timeout: 260 seconds]
Es0teric has quit [Ping timeout: 260 seconds]
mneorr_ has joined #ruby
benlieb has quit [Quit: benlieb]
bigmac has joined #ruby
nfk has quit [Quit: yawn]
mneorr has quit [Read error: Operation timed out]
Es0teric has joined #ruby
gengis has quit [Ping timeout: 245 seconds]
bigmac is now known as i8igmac
Kricir has quit [Ping timeout: 260 seconds]
DarthGandalf has joined #ruby
<pontiki> yes
bean has joined #ruby
<havenwood> slowcon: I don't know what you mean by x & y, but yeah those are the methods from the various classes and modules in the inheritance chain
cpruitt has quit [Quit: cpruitt]
sethen has quit [Ping timeout: 252 seconds]
bean has quit [Client Quit]
x77686d has quit [Quit: x77686d]
Sc0rp10n has quit [Quit: Leaving]
pitzips has joined #ruby
stkowski has quit [Quit: stkowski]
bklane has joined #ruby
timonv has joined #ruby
lmickh has quit [Remote host closed the connection]
angusiguess has quit [Ping timeout: 245 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
asmodlol has quit [Remote host closed the connection]
mneorr_ has quit [Remote host closed the connection]
philcrissman has quit [Remote host closed the connection]
mneorr has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
black0ut has joined #ruby
brian___ has joined #ruby
whatasunnyday has quit [Quit: whatasunnyday]
benlieb has joined #ruby
<brian___> question: would phusion passenger be considered middleware?
mneorr_ has joined #ruby
nari has joined #ruby
nerium has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
<slowcon> havenwood: yeah thats what i meant, the chain
<nerium> I*ve a problem with navigation in IRB.
<nerium> I can't move my cursor to the last char, is that normal?
pmlarocque has joined #ruby
robustus has quit [Ping timeout: 252 seconds]
<havenwood> nerium: Pry is a really nice irb alternative that is quite popular: gem install pry
mneorr_ has quit [Remote host closed the connection]
<nerium> havenwood: The same goes with pry
<havenwood> nerium: Sounds like a problem with readline or something? Maybe ask in #pry. Hrm.
jamesaxl has joined #ruby
mneorr has joined #ruby
<jamesaxl> hello
sski has joined #ruby
mikepack has joined #ruby
x77686d has joined #ruby
<havenwood> jamesaxl: hey
<nerium> havenwood: Yeah, i think readline might be the problem
tkuchiki has joined #ruby
pmlarocque has quit [Client Quit]
<jamesaxl> i think that datamapper is stop, do you have an other Object Relational Mapper
vlad_starkov has joined #ruby
_Andres has quit [Read error: Connection reset by peer]
<slowcon> havenwood: I'm really close with this script. http://pastebin.com/cGTrFM7U not sure why I'm getting the error when << is part of the Nokogiri::Node
robustus has joined #ruby
<havenwood> jamesaxl: ROM is the future of DataMapper, but not quite ready as far as database adapters: https://github.com/rom-rb/rom#readme
Kricir has joined #ruby
Jetchisel has joined #ruby
x77686d has quit [Client Quit]
snath has joined #ruby
<havenwood> jamesaxl: #rom-rb is the irc chan
<jamesaxl> havenwood: thank you very much
whatasunnyday has joined #ruby
sparrovv has quit [Remote host closed the connection]
<havenwood> jamesaxl: no prob
tylersmith has quit [Remote host closed the connection]
mneorr has quit [Ping timeout: 245 seconds]
zachallett has joined #ruby
thesheff17 has joined #ruby
sski has quit [Client Quit]
sski has joined #ruby
sski has quit [Client Quit]
<havenwood> slowcon: Your map isn't modifying the receiver here: genre_links.map { }
<havenwood> slowcon: basically you're returning the mapped value, but not saving it to `genre_links`
vlad_starkov has quit [Ping timeout: 272 seconds]
Megtastique has quit []
<havenwood> slowcon: so either use `#map!` instead of `#map` or `genre_links = genre_links.map`
bricker has quit [Quit: leaving]
<havenwood> slowcon: does that make sense?
<slowcon> havenwood: yes i see its outside now
<slowcon> havenwood: i did genlinks = genre_links.map
<slowcon> then genlinks << (link_cut)
beakr has quit [Quit: beakr]
pr00t has quit [Ping timeout: 272 seconds]
Spami has quit [Quit: This computer has gone to sleep]
beakr has joined #ruby
<slowcon> havenwood: oh wait, no read it wrong
<havenwood> slowcon: no need for parens around `link_cut`
babykosh has joined #ruby
beakr has quit [Client Quit]
<havenwood> slowcon: also, if you want an Integer: link_cut.first.to_i
hobodave has joined #ruby
prc has quit [Ping timeout: 260 seconds]
Sawbones has quit [Read error: Connection reset by peer]
newleaf has joined #ruby
mojjojo has joined #ruby
<slowcon> havenwood: looking up the difference between map and map!
<havenwood> slowcon: this is confusing, you're adding to genre_links inside the genre_links map, need to fix that
<havenwood> slowcon: are you just trying to map `genre_links` to be an Array if Integers?
<havenwood> slowcon: if so, just do `map!` and get rid of lines 55 and 56
werdnativ has quit [Ping timeout: 260 seconds]
<slowcon> havenwood: the end goal is to pass results to an array so that they can be inserted into a database
nerium has quit [Ping timeout: 260 seconds]
AlSquirrel has quit [Quit: This computer has gone to sleep]
Wolland has joined #ruby
<havenwood> slowcon: well, i forgot to put the bang on map! up there ^ but you maybe get the idea? >.>
thumpba has quit [Remote host closed the connection]
dkamioka has quit [Remote host closed the connection]
black0ut has quit []
ageis has quit [Ping timeout: 260 seconds]
recurrence has joined #ruby
jrhorn424 is now known as zz_jrhorn424
<slowcon> yeah but still not getting the result
<slowcon> havenwood: rb:52:in `block in <top (required)>': undefined method `map!' for #<Nokogiri::XML::NodeSet:0x007f92a982e518>
mehlah has quit [Quit: Leaving...]
<havenwood> slowcon: ah, no #map! with nokogiri
zeade has quit [Quit: Leaving.]
<havenwood> slowcon: then do `genre_links = genre_links.map` before
Astralum has quit [Ping timeout: 265 seconds]
DarthGandalf has quit [Ping timeout: 260 seconds]
Guest47443 has joined #ruby
<slowcon> havenwood: there we goooo
Kricir has quit [Remote host closed the connection]
<havenwood> slowcon: #map takes whatever was returned on each iteration and builds a new Array
troyready has quit [Ping timeout: 245 seconds]
nerium has joined #ruby
tyfighter has quit [Quit: tyfighter]
<slowcon> havenwood: which is the same as collect?
<havenwood> slowcon: they are aliases
<havenwood> slowcon: just people mostly use #map
whowantstolivef1 has quit [Ping timeout: 245 seconds]
<slowcon> havenwood: got it
beakr has joined #ruby
newleaf has left #ruby [#ruby]
<slowcon> havenwood: now want to insert array1 into column1 and array2 into column2. i remember what you said before about insert will always create a new row, so going to lookup how to join the arrays then insert
<slowcon> havenwood: think i remember something about zip
whomp has quit [Ping timeout: 245 seconds]
DarthGandalf has joined #ruby
<havenwood> >> [*'a'..'c'].zip [*1..3]
<eval-in> havenwood => [["a", 1], ["b", 2], ["c", 3]] (https://eval.in/101065)
<havenwood> slowcon: Are you trying to create an Array of Array pairs? Or an Array of Hashes?
<havenwood> >> [1, 2].zip(['a', 'b']).to_h
<eval-in> havenwood => {1=>"a", 2=>"b"} (https://eval.in/101066)
<slowcon> havenwood: i think array pairs. i have a genre array and an genre link array that need to be matched
angusiguess has joined #ruby
clov3r has joined #ruby
Aryasam has quit [Ping timeout: 272 seconds]
zachallett has quit [Remote host closed the connection]
<havenwood> slowcon: if you showed an example of the contents of the two arrays and an example of the result it would be easy, but just guessing now
<slowcon> havenwood: example in 1m
xue has joined #ruby
pmlarocque has joined #ruby
rootshift_ has joined #ruby
clov3r has quit [Read error: Connection reset by peer]
<slowcon> havenwood: http://snag.gy/QvSGZ.jpg
mneorr has joined #ruby
<slowcon> havenwood: id is auto increment, genre should be the genres table and genre_id will be the genre_links
dingus_khan has quit [Remote host closed the connection]
meatherly has joined #ruby
starfox21 has quit [Quit: starfox21]
rootshift_ is now known as rootshift
raphaelivan has quit [Quit: Leaving.]
msmith_ has quit [Ping timeout: 272 seconds]
pietr0 has quit [Quit: pietr0]
jlast has quit [Remote host closed the connection]
randomnick_ has quit [Quit: Leaving]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
pitzips has quit [Remote host closed the connection]
<havenwood> slowcon: late for dinner but remind me if someone else hasn't helped when i get back!
jamo has quit [Disconnected by services]
jamo__ is now known as Jamo
<slowcon> can do havenwood! thanks
<havenwood> slowcon: But yeah, an Array of Arrays should do. Zip them then iterate with #each to put them in the DB.
<havenwood> slowcon: Happy hacking! Be back later.
havenwood has quit []
failshell has joined #ruby
Aryasam has joined #ruby
i_s_ has quit [Remote host closed the connection]
eka has joined #ruby
dkamioka has joined #ruby
Laseryoda has joined #ruby
pr00t has joined #ruby
raphaelivan has joined #ruby
i_s has joined #ruby
<Laseryoda> Might not be the right # for this but.. http://imgur.com/JPWyOKh WHY!?!?
<dachi> hi people
<dachi> how can I test def self.finalize(*)
mojjojo has quit [Quit: mojjojo]
mikepack has quit [Remote host closed the connection]
S0da has joined #ruby
whomp has joined #ruby
<centrx> Laseryoda, Looks like a redacted national security document.
nari has quit [Ping timeout: 260 seconds]
failshell has quit [Ping timeout: 260 seconds]
Jdubs has joined #ruby
<centrx> dachi, Huh?
<Laseryoda> centrx: Haha I know, gotta be anonymous!!
<Laseryoda> centrx: But srsly, do you have any clue?
troyswanson has left #ruby [#ruby]
<centrx> I have seriously no clue what it is
<Laseryoda> oh..
<Laseryoda> might not be the right channel to ask the question
carif has quit [Read error: Operation timed out]
i_s has quit [Ping timeout: 245 seconds]
lpvn has joined #ruby
pmlarocque has quit [Quit: pmlarocque]
<dachi> centrx why?
Laseryoda has quit [Quit: Leaving...]
<dachi> i have a singleton to test and I have trouble with it
dingus_khan has joined #ruby
<dachi> my friend wrote that
Laseryoda has joined #ruby
lgierth has joined #ruby
<lgierth> i'm struggling to find working ruby examples of ipv6 multicast
raphaelivan has quit [Quit: Leaving.]
whomp has quit [Ping timeout: 245 seconds]
<dachi> MyModule::MyClass.instance.<<<<<<<finalize
<centrx> dachi, Test it by calling it..?
<dachi> I want to call that
<dachi> not instance
<lgierth> one problem i'm running into is that i can't seem to bind a socket to a multicast address, i.e. socket.bind(Addrinfo.udp('ff02::1', 5984)), it raises an 'invalid argument' error
<dachi> then variables are missing
babykosh has quit [Quit: babykosh]
<lgierth> joining the multicast group and binding on an interface address doesn't raise, but doesn't receive anything either
sujumaku has joined #ruby
starfox21 has joined #ruby
dapz has joined #ruby
<lgierth> on the sender side, i set IPV6_MULTICAST_IF and then send to [ff02::1]:5984
raphaelivan has joined #ruby
<dachi> can you tell me how to .new a singleton like MyModule::MyClass ?
Megtastique has joined #ruby
<dachi> NoMethodError: private method `new' called for \
<dachi> in Singleton
Kricir has joined #ruby
jrunning__ is now known as jrunning
nanoyak has quit [Quit: Computer has gone to sleep.]
angusiguess has quit [Ping timeout: 265 seconds]
<Laseryoda> for anyone wondering i fixed it by changing the local by "$ rbenv local 2.1.0"
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
Laseryoda has left #ruby ["Leaving..."]
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
Shidash has quit [Remote host closed the connection]
Shidash has joined #ruby
jcarouth has quit [Quit: Coyote finally caught me]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
rainmanjam has joined #ruby
mneorr has quit [Read error: Operation timed out]
gja has joined #ruby
trhodes has quit [Ping timeout: 245 seconds]
ahuman_ has quit [Read error: Operation timed out]
ahuman has joined #ruby
Jetchisel has joined #ruby
rainmanjam has quit [Remote host closed the connection]
Aryasam has quit [Ping timeout: 245 seconds]
rainmanjam has joined #ruby
recurrence has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
trhodes has joined #ruby
fella6s has joined #ruby
Kricir has quit [Ping timeout: 272 seconds]
axl__ has joined #ruby
fedexo_ has joined #ruby
matled- has joined #ruby
razrunelord has quit [Ping timeout: 260 seconds]
tonni_ has joined #ruby
Soliah has joined #ruby
virtualize has joined #ruby
pu22l3r_ has joined #ruby
Cooler__ has joined #ruby
agent_wh1te has joined #ruby
whomp has joined #ruby
rainmanjam has quit [Ping timeout: 245 seconds]
kiba` has joined #ruby
ledestin_ has joined #ruby
koshian_ has joined #ruby
sujumaku has left #ruby ["Leaving"]
papito has joined #ruby
rm__ has joined #ruby
starfox21_ has joined #ruby
ioNull_ has joined #ruby
xrq` has joined #ruby
SloggerKhan1 has joined #ruby
pranny1 has joined #ruby
george2|chakra has joined #ruby
jaredrhine_ has joined #ruby
matrixis1 has joined #ruby
bthesorc_ has joined #ruby
klaas_ has joined #ruby
bigmac_ has joined #ruby
billy_ran_away_ has joined #ruby
parzo_ has joined #ruby
miah_ has joined #ruby
scarolan has joined #ruby
jizanthapus-work has quit [Read error: Connection reset by peer]
Davey_ has joined #ruby
jfoy has quit [Quit: jfoy]
nomadic has quit [Ping timeout: 260 seconds]
De`off has quit [Ping timeout: 260 seconds]
Adawerk__ has joined #ruby
george2|nayaka has joined #ruby
queequeg2 has joined #ruby
beakr has quit [Quit: beakr]
Killerkeksdose has joined #ruby
bklane_ has joined #ruby
s2013 has joined #ruby
yellow5_ has joined #ruby
jizanthapus-work has joined #ruby
dubios_ has joined #ruby
kenneth has quit [Ping timeout: 260 seconds]
bwarkee has quit [Ping timeout: 260 seconds]
yellow5 has quit [Ping timeout: 260 seconds]
marcoecc has quit [Read error: Connection reset by peer]
Atw has joined #ruby
pranny has quit [Ping timeout: 260 seconds]
Hobogrammer has quit [Ping timeout: 260 seconds]
yellow5_ is now known as yellow5
oz` has joined #ruby
saarinen has quit [Quit: saarinen]
lpvn has quit [Ping timeout: 260 seconds]
OdNairy has quit [Ping timeout: 260 seconds]
TorpedoSkyline has quit [Ping timeout: 260 seconds]
deadlock__ has joined #ruby
Xeago_ has joined #ruby
virtualize has quit [Client Quit]
nemesit|znc has joined #ruby
gtc has joined #ruby
ahuman_ has joined #ruby
Monk_cod_ has joined #ruby
xxpor__ has joined #ruby
TheMoonMaster_ has joined #ruby
d-snp_ has joined #ruby
danshult_ has joined #ruby
tekmaster has joined #ruby
mocfive_ has joined #ruby
Jb___ has joined #ruby
drowl_ has joined #ruby
tonni has quit [Read error: Connection reset by peer]
Caius has quit [Ping timeout: 260 seconds]
dapz has quit [Ping timeout: 260 seconds]
hl has quit [Ping timeout: 260 seconds]
jlebrech has quit [Read error: Connection reset by peer]
soulcake has quit [Ping timeout: 260 seconds]
dubios has quit [Ping timeout: 260 seconds]
acoyfellow has quit [Ping timeout: 260 seconds]
matrixise has quit [Ping timeout: 260 seconds]
axl_ has quit [Ping timeout: 260 seconds]
JZTech101 has quit [Ping timeout: 260 seconds]
Cooler_ has quit [Ping timeout: 260 seconds]
Veejay has quit [Ping timeout: 260 seconds]
billy_ran_away has quit [Ping timeout: 260 seconds]
Drakevr has quit [Ping timeout: 260 seconds]
thesheff17 has quit [Ping timeout: 260 seconds]
i8igmac has quit [Ping timeout: 260 seconds]
jack_rabbit has quit [Ping timeout: 260 seconds]
Tomasso has quit [Ping timeout: 260 seconds]
binaryhat has quit [Ping timeout: 260 seconds]
fedexo has quit [Ping timeout: 260 seconds]
AlexRussia has quit [Ping timeout: 260 seconds]
pavilionXP has quit [Ping timeout: 260 seconds]
supersym has quit [Ping timeout: 260 seconds]
nemesit|- has quit [Ping timeout: 260 seconds]
p8952 has quit [Ping timeout: 260 seconds]
joonty has quit [Ping timeout: 260 seconds]
fella5s has quit [Ping timeout: 260 seconds]
Kabaka has quit [Ping timeout: 260 seconds]
pr1x has quit [Ping timeout: 260 seconds]
awkisopen has quit [Ping timeout: 260 seconds]
ValicekB has quit [Ping timeout: 260 seconds]
go|dfish has quit [Ping timeout: 260 seconds]
netf has quit [Ping timeout: 260 seconds]
ledestin has quit [Ping timeout: 260 seconds]
__class__ has quit [Ping timeout: 260 seconds]
maroloccio has quit [Ping timeout: 260 seconds]
miah has quit [Ping timeout: 260 seconds]
BraddPitt has quit [Ping timeout: 260 seconds]
JStoker has quit [Ping timeout: 260 seconds]
tekacs has quit [Ping timeout: 260 seconds]
jaredrhine has quit [Ping timeout: 260 seconds]
nerium has quit [Ping timeout: 260 seconds]
Killerkeksdose_ has quit [Ping timeout: 260 seconds]
scarolan_ has quit [Ping timeout: 260 seconds]
mattp__ has quit [Ping timeout: 260 seconds]
pr1x has joined #ruby
Caius has joined #ruby
nwkr has joined #ruby
tekmaster is now known as tekacs
bthesorc_ has quit [Client Quit]
ephemerian has quit [Quit: Leaving.]
supersymmetry has joined #ruby
marcgg has joined #ruby
dubios_ is now known as dubios
axl__ is now known as axl_
LiquidIn1ect has joined #ruby
i_s has joined #ruby
RoxasShadowRS has quit [Quit: Leaving]
ledestin_ is now known as ledestin
Caius has quit [Changing host]
Caius has joined #ruby
nomadic has joined #ruby
Blue_Ice_ has joined #ruby
dubios has quit [Changing host]
dubios has joined #ruby
slowcon_ has joined #ruby
joonty has joined #ruby
netf has joined #ruby
Wolland_ has joined #ruby
kenneth has joined #ruby
TorpedoSkyline_ has joined #ruby
fgo_ has joined #ruby
JStoker has joined #ruby
jack_rabbit has joined #ruby
fumduq- has joined #ruby
xrq`` has joined #ruby
BraddPitt has joined #ruby
weeems has joined #ruby
hl has joined #ruby
Beoran__ has joined #ruby
jaredrhine has joined #ruby
awkisopen has joined #ruby
soulcake has joined #ruby
JZTech101 has joined #ruby
gmi_ has joined #ruby
michael_imac has joined #ruby
virtualize has joined #ruby
bwarkee has joined #ruby
mojo619 has joined #ruby
OdNairy has joined #ruby
go|dfish has joined #ruby
maroloccio2 has joined #ruby
multi_io_ has joined #ruby
weeems has quit [Max SendQ exceeded]
Azure__ has joined #ruby
lpvn has joined #ruby
cjk101010_ has joined #ruby
pwh_ has joined #ruby
Davey_ is now known as Eomar
maetthew_ has joined #ruby
nobitanobi has quit [Quit: Leaving]
weeems has joined #ruby
epsylon has joined #ruby
thesheff17 has joined #ruby
juo_ has joined #ruby
wchun has quit [Ping timeout: 260 seconds]
fumduq has quit [Ping timeout: 260 seconds]
Es0teric_ has joined #ruby
Beoran_ has quit [Ping timeout: 260 seconds]
lethjakman has quit [Ping timeout: 260 seconds]
zarul has quit [Ping timeout: 260 seconds]
petems has quit [Ping timeout: 260 seconds]
gja has quit [Quit: This computer has gone to sleep]
terlar has quit [Ping timeout: 260 seconds]
fumduq- is now known as fumduq
hackeron_ has joined #ruby
epsylon` has quit [Ping timeout: 260 seconds]
kloeri_ has joined #ruby
lagweezle has quit [Quit: leaving]
existensil has quit [Ping timeout: 260 seconds]
xxpor_ has quit [Ping timeout: 260 seconds]
TripTastic has joined #ruby
ahuman has quit [*.net *.split]
raphaelivan has quit [*.net *.split]
starfox21 has quit [*.net *.split]
pr00t has quit [*.net *.split]
Wolland has quit [*.net *.split]
brian___ has quit [*.net *.split]
bklane has quit [*.net *.split]
parzo has quit [*.net *.split]
bthesorceror has quit [*.net *.split]
Jb__ has quit [*.net *.split]
tvw has quit [*.net *.split]
Zackio has quit [*.net *.split]
gr33n7007h has quit [*.net *.split]
rm_ has quit [*.net *.split]
CaptainKnots has quit [*.net *.split]
Fire-Dragon-DoL has quit [*.net *.split]
lkba has quit [*.net *.split]
mavcunha has quit [*.net *.split]
Jonah11_ has quit [*.net *.split]
agent_white has quit [*.net *.split]
jbueza has quit [*.net *.split]
banister has quit [*.net *.split]
mclee has quit [*.net *.split]
mocfive has quit [*.net *.split]
jle` has quit [*.net *.split]
aspires has quit [*.net *.split]
Noldorin has quit [*.net *.split]
danshultz has quit [*.net *.split]
hackeron has quit [*.net *.split]
IceDragon has quit [*.net *.split]
ioNull has quit [*.net *.split]
TheMoonMaster has quit [*.net *.split]
pu22l3r has quit [*.net *.split]
elektronaut has quit [*.net *.split]
kyle__ has quit [*.net *.split]
Chris- has quit [*.net *.split]
matled has quit [*.net *.split]
kiba has quit [*.net *.split]
Davey has quit [*.net *.split]
Nowaker has quit [*.net *.split]
ruisantos has quit [*.net *.split]
mosez has quit [*.net *.split]
nuck has quit [*.net *.split]
tiguser has quit [*.net *.split]
radic has quit [*.net *.split]
Senjai has quit [*.net *.split]
malthe has quit [*.net *.split]
g0rd0 has quit [*.net *.split]
Thana[work] has quit [*.net *.split]
klaas has quit [*.net *.split]
michael_mbp has quit [*.net *.split]
pinage404 has quit [*.net *.split]
oetjenj has quit [*.net *.split]
maetthew has quit [*.net *.split]
Fraeon has quit [*.net *.split]
vt102 has quit [*.net *.split]
SloggerKhan has quit [*.net *.split]
george2 has quit [*.net *.split]
snkcld has quit [*.net *.split]
jwang has quit [*.net *.split]
bahar has quit [*.net *.split]
koshian has quit [*.net *.split]
crazysim has quit [*.net *.split]
RubyPanther has quit [*.net *.split]
Jamo_ has quit [*.net *.split]
edwardly has quit [*.net *.split]
Liothen has quit [*.net *.split]
Akuma has quit [*.net *.split]
bluntman has quit [*.net *.split]
xrq has quit [*.net *.split]
iMe has quit [*.net *.split]
Blue_Ice has quit [*.net *.split]
queequeg1 has quit [*.net *.split]
juo has quit [*.net *.split]
paul_k has quit [*.net *.split]
d-snp has quit [*.net *.split]
gtc|ghost has quit [*.net *.split]
DrOwl has quit [*.net *.split]
alvaro_o_ has quit [Ping timeout: 260 seconds]
starfox21_ is now known as starfox21
maetthew_ is now known as maetthew
drowl_ is now known as DrOwl
firefly2013 has joined #ruby
Fraeon has joined #ruby
_reset has joined #ruby
beakr has joined #ruby
Sp4rKy_ has joined #ruby
yxhuvud has quit [Ping timeout: 260 seconds]
wca has quit [Ping timeout: 260 seconds]
deepy has quit [Excess Flood]
oetjenj_ has joined #ruby
ukd1_ has joined #ruby
pixelgremlins has joined #ruby
Columcille has quit [Ping timeout: 260 seconds]
_HolyCow has quit [Ping timeout: 260 seconds]
bahar has joined #ruby
mgorbach has quit [Ping timeout: 260 seconds]
existensil has joined #ruby
weeems has quit [Max SendQ exceeded]
radic has joined #ruby
matled has joined #ruby
CaptainKnots has joined #ruby
crazysim has joined #ruby
bcz has quit []
mosez has joined #ruby
george2|nayaka is now known as george2
Deele has joined #ruby
CaptainKnots has quit [Changing host]
CaptainKnots has joined #ruby
mhenrixon|afk has quit [Ping timeout: 260 seconds]
jso_ has joined #ruby
Jamo_ has joined #ruby
Megtasti_ has joined #ruby
ruisanto1 has joined #ruby
weeems has joined #ruby
hackeron_ has quit [Ping timeout: 260 seconds]
deepy has joined #ruby
bigmac_ is now known as i8igmac
kiba`` has joined #ruby
platzhirsch has left #ruby [#ruby]
funburn_ has joined #ruby
Jonah11_ has joined #ruby
papito has quit [Ping timeout: 250 seconds]
robbyoconnor has quit [Max SendQ exceeded]
weeems has quit [Max SendQ exceeded]
PLejeck has joined #ruby
zxq9 has quit [Remote host closed the connection]
abra_ has joined #ruby
jaredrhine_ has quit [*.net *.split]
george2|chakra has quit [*.net *.split]
xrq` has quit [*.net *.split]
ioNull_ has quit [*.net *.split]
kiba` has quit [*.net *.split]
agent_wh1te has quit [*.net *.split]
matled- has quit [*.net *.split]
Megtastique has quit [*.net *.split]
meatherly has quit [*.net *.split]
Es0teric has quit [*.net *.split]
Zunonia_ has quit [*.net *.split]
slowcon has quit [*.net *.split]
TheNumb has quit [*.net *.split]
Collin has quit [*.net *.split]
funburn has quit [*.net *.split]
habanany has quit [*.net *.split]
jonno11 has quit [*.net *.split]
fgo has quit [*.net *.split]
Azure has quit [*.net *.split]
dr0ff has quit [*.net *.split]
chipotle has quit [*.net *.split]
araujo has quit [*.net *.split]
dik_dak has quit [*.net *.split]
pierre1_ has quit [*.net *.split]
TMM has quit [*.net *.split]
cjk101010 has quit [*.net *.split]
weems has quit [*.net *.split]
pwh has quit [*.net *.split]
ukd1 has quit [*.net *.split]
reset has quit [*.net *.split]
oz has quit [*.net *.split]
firefly20131 has quit [*.net *.split]
bleak has quit [*.net *.split]
Sp4rKy has quit [*.net *.split]
[gmi] has quit [*.net *.split]
Monk_code has quit [*.net *.split]
baroquebobcat has quit [*.net *.split]
BrianJ has quit [*.net *.split]
marienz has quit [*.net *.split]
jso has quit [*.net *.split]
moshee has quit [*.net *.split]
mven_ has quit [*.net *.split]
pixelgremlins_ba has quit [*.net *.split]
alvaro_o has quit [*.net *.split]
Patteh has quit [*.net *.split]
marcgg_ has quit [*.net *.split]
abra has quit [*.net *.split]
kate_r has quit [*.net *.split]
waxjar has quit [*.net *.split]
LiquidInsect has quit [*.net *.split]
froy has quit [*.net *.split]
Rylee has quit [*.net *.split]
linduxed has quit [*.net *.split]
Scient has quit [*.net *.split]
Xeago has quit [*.net *.split]
multi_io has quit [*.net *.split]
rylinaux has quit [*.net *.split]
KK4MGV has quit [*.net *.split]
droff has joined #ruby
crazysim has quit [Excess Flood]
oz` is now known as oz
ValicekB_ has joined #ruby
jso_ is now known as jso
pinpin404 has joined #ruby
kloeri has quit [Ping timeout: 608 seconds]
matled has quit [Remote host closed the connection]
Columcille has joined #ruby
JBreit has quit [Ping timeout: 260 seconds]
erichmenge has quit [Ping timeout: 260 seconds]
r0bby_ has joined #ruby
ValicekB_ is now known as ValicekB
r0bby_ has joined #ruby
r0bby_ has quit [Changing host]
weems has joined #ruby
lagweezle has joined #ruby
msmith_ has joined #ruby
waxjar has joined #ruby
Kabaka has joined #ruby
erichmenge has joined #ruby
devdazed has quit [Write error: Connection reset by peer]
bettyclamp has quit [Remote host closed the connection]
yxhuvud has joined #ruby
marienz has joined #ruby
mgorbach has joined #ruby
diegoviola has quit [Ping timeout: 260 seconds]
Anarch has quit [Ping timeout: 260 seconds]
Patteh has joined #ruby
Valesk has joined #ruby
TripTastic has quit [Ping timeout: 265 seconds]
matrixis1 has quit [Ping timeout: 265 seconds]
mavcunha has joined #ruby
TheNumb has joined #ruby
weems has quit [Max SendQ exceeded]
i_s has quit [Ping timeout: 250 seconds]
TheNumb has quit [Changing host]
TheNumb has joined #ruby
nycjv321 has quit [Ping timeout: 260 seconds]
dkamioka has quit [Remote host closed the connection]
oetjenj_ is now known as oetjenj
Valesk has quit [Max SendQ exceeded]
pr00t has joined #ruby
matrixise has joined #ruby
aspires has joined #ruby
g0rd0 has joined #ruby
jle` has joined #ruby
LuvLinuxOS has joined #ruby
pu22l3r_ has quit [Read error: Operation timed out]
raphaelivan has joined #ruby
felixjet_ has quit [Ping timeout: 260 seconds]
pwh_ has quit [Ping timeout: 265 seconds]
Es0teric_ has quit [Max SendQ exceeded]
casheew_ has quit [Read error: Connection reset by peer]
PLejeck has quit [Ping timeout: 265 seconds]
SloggerKhan1 has quit [Ping timeout: 265 seconds]
edwardly has joined #ruby
existensil_ has joined #ruby
raphaelivan has quit [Client Quit]
kloeri_ has quit [Ping timeout: 608 seconds]
diegoviola has joined #ruby
malthe has joined #ruby
MJBrune has quit [Ping timeout: 265 seconds]
Thanatermesis has joined #ruby
zarul has joined #ruby
Kabaka has quit [Ping timeout: 265 seconds]
lagweezle has quit [Ping timeout: 265 seconds]
erichmenge has quit [Ping timeout: 265 seconds]
LuvLinuxOS has quit [Max SendQ exceeded]
bleak has joined #ruby
Jamo_ has quit [Ping timeout: 265 seconds]
jso has quit [Ping timeout: 265 seconds]
kloeri has joined #ruby
weems has joined #ruby
Adawerk__ has quit [Read error: Network is unreachable]
jwang has joined #ruby
agent_white has joined #ruby
crus has quit [Read error: Connection reset by peer]
De`off has joined #ruby
p8952 has joined #ruby
Jonah11_ has quit [Read error: Connection reset by peer]
BraddBitt has joined #ruby
LiquidIn1ect has quit [Ping timeout: 265 seconds]
yourmysin has quit [Ping timeout: 265 seconds]
TMM has joined #ruby
bwarkee_ has joined #ruby
jaredrhine has quit [Ping timeout: 265 seconds]
petey has joined #ruby
habanany has joined #ruby
LiquidInsect has joined #ruby
fella7s has joined #ruby
danshultz has joined #ruby
reset has joined #ruby
weems has quit [Max SendQ exceeded]
PLejeck has joined #ruby
maetthew has quit [Ping timeout: 265 seconds]
s2013 has quit [Ping timeout: 265 seconds]
_maes_ has quit [Ping timeout: 265 seconds]
aspires has quit [Ping timeout: 260 seconds]
Asher1 has joined #ruby
danshult_ has quit [Ping timeout: 265 seconds]
crazysim has joined #ruby
Jonah11_ has joined #ruby
alvaro_o has joined #ruby
edwardly has quit [Ping timeout: 265 seconds]
kiba`` has quit [Ping timeout: 265 seconds]
_reset has quit [Ping timeout: 265 seconds]
wallerdev has quit [Ping timeout: 265 seconds]
GinoMan has quit [Ping timeout: 265 seconds]
crazysim has quit [Max SendQ exceeded]
weems has joined #ruby
crazysim has joined #ruby
RubyPanther has joined #ruby
agent_white has quit [Client Quit]
bahar_ has joined #ruby
matrixise has quit [Ping timeout: 259 seconds]
r0bby_ has quit [Ping timeout: 259 seconds]
ixx has quit [Ping timeout: 259 seconds]
jaredrhine_ has joined #ruby
aspires has joined #ruby
joonty_ has joined #ruby
devdazed has joined #ruby
lpvn has quit [Quit: Saindo]
pr1x_ has joined #ruby
jamesaxl has quit [Remote host closed the connection]
matrixise has joined #ruby
funburn_ has quit [*.net *.split]
deepy has quit [*.net *.split]
Megtasti_ has quit [*.net *.split]
Deele has quit [*.net *.split]
radic has quit [*.net *.split]
existensil has quit [*.net *.split]
pixelgremlins has quit [*.net *.split]
bahar has quit [*.net *.split]
Sp4rKy_ has quit [*.net *.split]
thesheff17 has quit [*.net *.split]
cjk101010_ has quit [*.net *.split]
go|dfish has quit [*.net *.split]
virtualize has quit [*.net *.split]
gmi_ has quit [*.net *.split]
JZTech101 has quit [*.net *.split]
bwarkee has quit [*.net *.split]
awkisopen has quit [*.net *.split]
Beoran__ has quit [*.net *.split]
soulcake has quit [*.net *.split]
slowcon_ has quit [*.net *.split]
joonty has quit [*.net *.split]
netf has quit [*.net *.split]
hl has quit [*.net *.split]
TorpedoSkyline_ has quit [*.net *.split]
michael_imac has quit [*.net *.split]
nwkr has quit [*.net *.split]
Caius has quit [*.net *.split]
pr1x has quit [*.net *.split]
BraddPitt has quit [*.net *.split]
eFeXeN_zzz has quit [*.net *.split]
Asher has quit [*.net *.split]
RealMarc has quit [*.net *.split]
crazysim has quit [Excess Flood]
weems has quit [Max SendQ exceeded]
crazysim has joined #ruby
pwh has joined #ruby
go|dfish has joined #ruby
Megtastique has joined #ruby
kiba`` has joined #ruby
aspires has quit [Client Quit]
Kricir has joined #ruby
GinoMan has joined #ruby
ruisanto1 has quit [Ping timeout: 260 seconds]
jwang has quit [Ping timeout: 260 seconds]
bleak has quit [Ping timeout: 260 seconds]
jle` has quit [Ping timeout: 260 seconds]
fella6s has quit [Ping timeout: 260 seconds]
Columcille has quit [Ping timeout: 260 seconds]
Rylee has joined #ruby
patronus has joined #ruby
ponbiki has quit [Ping timeout: 260 seconds]
deepa has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
maroloccio2 has quit [Quit: WeeChat 0.4.2]
matled has joined #ruby
PLejeck has quit [Ping timeout: 260 seconds]
deepa is now known as Guest99696
petems has joined #ruby
werdnativ has joined #ruby
danijoo has joined #ruby
kyle___ has joined #ruby
lagweezle has joined #ruby
felixjet has joined #ruby
crus has joined #ruby
maetthew has joined #ruby
Senjai has joined #ruby
Zackio has joined #ruby
Anarch has joined #ruby
JZTech101 has joined #ruby
nari has joined #ruby
Nowaker has joined #ruby
Aryasam has joined #ruby
erichmenge has joined #ruby
netf has joined #ruby
Caius has joined #ruby
ixx has joined #ruby
awkisopen has joined #ruby
slowcon_ has joined #ruby
soulcake has joined #ruby
77CABFTRD has joined #ruby
amclain has joined #ruby
casheew has joined #ruby
rootshift has quit [Ping timeout: 260 seconds]
arturaz has quit [Ping timeout: 260 seconds]
LiquidInsect has quit [Ping timeout: 260 seconds]
Atrumx has joined #ruby
linduxed has joined #ruby
moshee has joined #ruby
mgorbach has quit [Ping timeout: 260 seconds]
towski_ has quit [Ping timeout: 260 seconds]
hackeron has joined #ruby
PLejeck has joined #ruby
patronus_ has quit [Ping timeout: 260 seconds]
TorpedoSkyline has joined #ruby
soulcake has quit [Changing host]
soulcake has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
_HolyCow has joined #ruby
Drakevr has joined #ruby
Es0teric has joined #ruby
Caius has quit [Changing host]
Caius has joined #ruby
hl has joined #ruby
pierre1_ has joined #ruby
paul_k has joined #ruby
forced_request has joined #ruby
ixx is now known as Guest92240
cjk101010 has joined #ruby
IceDragon has joined #ruby
tiguser has joined #ruby
ItSANgo_ has joined #ruby
elektronaut has joined #ruby
Beoran has joined #ruby
ioNull has joined #ruby
weems has joined #ruby
arturaz has joined #ruby
radic has joined #ruby
Tarential has quit [Ping timeout: 260 seconds]
MJBrune has joined #ruby
MJBrune has joined #ruby
MJBrune has quit [Changing host]
slowcon_ is now known as slowcon
SloggerKhan has joined #ruby
g0rd0 has quit [Ping timeout: 260 seconds]
Scient has joined #ruby
snkcld has joined #ruby
asdasdasdasdasd_ has joined #ruby
batman___ has joined #ruby
g0rd0 has joined #ruby
fgo has joined #ruby
Columcille has joined #ruby
Zunonia has joined #ruby
Atmaweapn has joined #ruby
xxpor_ has joined #ruby
mhenrixon has joined #ruby
ItSANg___ has quit [Ping timeout: 260 seconds]
nycjv321 has joined #ruby
nycjv321 has quit [Changing host]
nycjv321 has joined #ruby
tkuchiki_ has joined #ruby
scarolan_ has joined #ruby
Oog has joined #ruby
Kabaka has joined #ruby
Olipro has quit [Max SendQ exceeded]
<Oog> in terms of security is there any reason to prefer SecureRandom.hex(32) over [*'0'..'9', *'a'..'z', *'A'..'Z'].sample(64).join
Atmaweapn has quit [Client Quit]
casheew_ has joined #ruby
LiquidInsect has joined #ruby
casheew has quit [Read error: Connection reset by peer]
Sp4rKy has joined #ruby
xrq``` has joined #ruby
Jdubs_ has joined #ruby
amclain_ has joined #ruby
<Oog> i want to generate secure a-zA-Z0-9 strings so hex is limiting me
ctp_ has joined #ruby
ponbiki has joined #ruby
erichmenge has quit [Ping timeout: 260 seconds]
bahar_ is now known as bahar
wca has joined #ruby
george2|chakra has joined #ruby
bettyclamp has joined #ruby
crazymykl has joined #ruby
george2|chakra has quit [Remote host closed the connection]
pr00t has quit [Ping timeout: 260 seconds]
speckle2 has joined #ruby
LuvLinuxOS has joined #ruby
clov3r has joined #ruby
i_s has joined #ruby
pranny has joined #ruby
benatkin_ has joined #ruby
emdub_ has joined #ruby
stryek has joined #ruby
stonecol1devin has joined #ruby
jonathanwallace_ has joined #ruby
amundj_ has joined #ruby
abra has joined #ruby
gigetoo_ has joined #ruby
towski_ has joined #ruby
whomp_ has joined #ruby
pwh_ has joined #ruby
rblackwe_ has joined #ruby
predator117 has joined #ruby
maletor_ has joined #ruby
maloik_ has joined #ruby
dubios_ has joined #ruby
yourmysin has joined #ruby
koalalla1a has joined #ruby
oz` has joined #ruby
DrForr__ has joined #ruby
replay_ has joined #ruby
lotherk_ has joined #ruby
Afal_ has joined #ruby
klip has joined #ruby
erichmenge has joined #ruby
kenneth__ has joined #ruby
<centrx> Analyzing now...
ayaz_ has joined #ruby
mgorbach_ has joined #ruby
kebabski has joined #ruby
FDj_ has joined #ruby
edwardly has joined #ruby
Killerkeksdose_ has joined #ruby
certaint1 has joined #ruby
krz has joined #ruby
seekwill_ has joined #ruby
bleak has joined #ruby
yeticry_ has joined #ruby
__class__ has joined #ruby
<centrx> Oog, For one, sample artifically ensures no repeats
pontiki_ has joined #ruby
ponbiki has quit [Ping timeout: 260 seconds]
fedexo_ has quit [Remote host closed the connection]
seekwill_ is now known as Guest81080
<Oog> oh...
<Oog> yeah i dont need that
<Oog> alternative?
jcarouth has joined #ruby
agjacome_ has joined #ruby
<centrx> Oog, For another, SecureRandom uses different logic than #sample. I believe SecureRandom must be designed to be "secure"
<centrx> cryptographically secure
ponbiki_ has joined #ruby
trhodes_ has joined #ruby
sawtooth has joined #ruby
Olipro has joined #ruby
Asher1 is now known as Asher
<Oog> right - thats what im wondering... so how can i generate what i want in a secure random way
mgorbach has joined #ruby
amclain has quit [Ping timeout: 260 seconds]
mgorbach has quit [Max SendQ exceeded]
forced_request has quit [Ping timeout: 260 seconds]
alvaro_o__ has joined #ruby
mgorbach_ is now known as mgorbach
<centrx> Figuring now
<Oog> i guess in a loop use securerandom.random_number to pick indices into the array
xxi has joined #ruby
Kricir has quit [Ping timeout: 265 seconds]
mosheee has joined #ruby
Caius has quit [Ping timeout: 260 seconds]
moshee has quit [Ping timeout: 260 seconds]
netf has quit [Ping timeout: 260 seconds]
paul_k has quit [Ping timeout: 260 seconds]
Guest92240 has quit [Ping timeout: 260 seconds]
parzo has joined #ruby
nw_ has joined #ruby
slowcon_ has joined #ruby
awkisopen has quit [Ping timeout: 260 seconds]
slowcon has quit [Ping timeout: 260 seconds]
slowcon_ is now known as slowcon
d-snp has joined #ruby
[BNC]yetet has joined #ruby
hl has quit [Ping timeout: 260 seconds]
soulcake has quit [Ping timeout: 260 seconds]
i_s has quit [Ping timeout: 272 seconds]
<centrx> Oog, You want something like SecureRandom.random_bytes.unpack("B*")
clov3r has quit [Read error: Connection reset by peer]
deepy has joined #ruby
nemesit|- has joined #ruby
deepy is now known as Guest27307
pranny has quit [Quit: Leaving.]
PLejeck has quit [Ping timeout: 260 seconds]
77CABFTRD has quit [Ping timeout: 260 seconds]
bahar has quit [Ping timeout: 260 seconds]
bahar has joined #ruby
benzrf_ has joined #ruby
Guest99696 has quit [*.net *.split]
pwh has quit [*.net *.split]
alvaro_o has quit [*.net *.split]
kloeri has quit [*.net *.split]
mavcunha has quit [*.net *.split]
abra_ has quit [*.net *.split]
marienz has quit [*.net *.split]
OdNairy has quit [*.net *.split]
jack_rabbit has quit [*.net *.split]
fgo_ has quit [*.net *.split]
xrq`` has quit [*.net *.split]
kenneth has quit [*.net *.split]
Blue_Ice_ has quit [*.net *.split]
Wolland_ has quit [*.net *.split]
ValicekB has quit [*.net *.split]
fumduq has quit [*.net *.split]
marcgg has quit [*.net *.split]
mocfive_ has quit [*.net *.split]
d-snp_ has quit [*.net *.split]
supersymmetry has quit [*.net *.split]
xxpor__ has quit [*.net *.split]
Xeago_ has quit [*.net *.split]
nemesit|znc has quit [*.net *.split]
jizanthapus-work has quit [*.net *.split]
oz has quit [*.net *.split]
Killerkeksdose has quit [*.net *.split]
yellow5 has quit [*.net *.split]
dubios has quit [*.net *.split]
george2 has quit [*.net *.split]
scarolan has quit [*.net *.split]
i8igmac has quit [*.net *.split]
Eomar has quit [*.net *.split]
parzo_ has quit [*.net *.split]
pranny1 has quit [*.net *.split]
ledestin has quit [*.net *.split]
koshian_ has quit [*.net *.split]
rm__ has quit [*.net *.split]
whomp has quit [*.net *.split]
Cooler__ has quit [*.net *.split]
axl_ has quit [*.net *.split]
trhodes has quit [*.net *.split]
Atw has quit [*.net *.split]
Jdubs has quit [*.net *.split]
S0da has quit [*.net *.split]
xue has quit [*.net *.split]
Guest47443 has quit [*.net *.split]
snath has quit [*.net *.split]
tkuchiki has quit [*.net *.split]
silicong has quit [*.net *.split]
lgierth has quit [*.net *.split]
parduse has quit [*.net *.split]
Guest66066 has quit [*.net *.split]
mikemac has quit [*.net *.split]
predator217 has quit [*.net *.split]
ctp has quit [*.net *.split]
benzrf has quit [*.net *.split]
koalallama has quit [*.net *.split]
Aristata has quit [*.net *.split]
chrisseaton has quit [*.net *.split]
gregf has quit [*.net *.split]
kewubenduben has quit [*.net *.split]
gigetoo has quit [*.net *.split]
snuffeluffegus has quit [*.net *.split]
maletor has quit [*.net *.split]
Vivekananda has quit [*.net *.split]
lotherk has quit [*.net *.split]
adamholt has quit [*.net *.split]
seekwill has quit [*.net *.split]
sawtooth1 has quit [*.net *.split]
klipeto has quit [*.net *.split]
awarner_ has quit [*.net *.split]
Bumptiou_ has quit [*.net *.split]
agjacome has quit [*.net *.split]
pico-pete has quit [*.net *.split]
DouweM has quit [*.net *.split]
ixti has quit [*.net *.split]
hostess has quit [*.net *.split]
benatkin has quit [*.net *.split]
zerun0_ has quit [*.net *.split]
yeticry has quit [*.net *.split]
aboudreault has quit [*.net *.split]
jrist has quit [*.net *.split]
sarlalian has quit [*.net *.split]
Alina-malina has quit [*.net *.split]
endash has quit [*.net *.split]
pontiki has quit [*.net *.split]
amundj has quit [*.net *.split]
zaargy has quit [*.net *.split]
xargoon has quit [*.net *.split]
maloik has quit [*.net *.split]
stonecolddevin has quit [*.net *.split]
Angelous has quit [*.net *.split]
replay has quit [*.net *.split]
DrForr_ has quit [*.net *.split]
Afal has quit [*.net *.split]
rblackwe has quit [*.net *.split]
certainty has quit [*.net *.split]
Hamburglr has quit [*.net *.split]
yetet has quit [*.net *.split]
speckle has quit [*.net *.split]
FDj has quit [*.net *.split]
nw has quit [*.net *.split]
jonathanwallace has quit [*.net *.split]
tchebb has quit [*.net *.split]
ayaz has quit [*.net *.split]
emdub has quit [*.net *.split]
Riking has quit [*.net *.split]
dazeddev has quit [*.net *.split]
three18ti has quit [*.net *.split]
oz` is now known as oz
jizanthapus-work has joined #ruby
jonathanwallace_ is now known as jonathanwallace
crazysim has quit [Excess Flood]
xargoon has joined #ruby
dubios_ is now known as dubios
kloeri_ has joined #ruby
gigetoo_ is now known as gigetoo
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
dubios has quit [Changing host]
dubios has joined #ruby
crazysim has joined #ruby
netf has joined #ruby
hostess_ has joined #ruby
pico-pete has joined #ruby
AlexRussia has joined #ruby
parduse has joined #ruby
parduse has quit [Changing host]
parduse has joined #ruby
77CABFUYZ has joined #ruby
reach has joined #ruby
reach has left #ruby [#ruby]
Blue_Ice has joined #ruby
Blue_Ice has joined #ruby
Blue_Ice has quit [Changing host]
Jamo_ has joined #ruby
FDj_ has quit [Remote host closed the connection]
failshell has joined #ruby
FDj has joined #ruby
Riking has joined #ruby
fumduq has joined #ruby
jwang has joined #ruby
JBreit has joined #ruby
failshell has quit [Remote host closed the connection]
three18ti has joined #ruby
benzrf_ has left #ruby [#ruby]
RealMarc has joined #ruby
failshell has joined #ruby
ruisantos has joined #ruby
dazeddev has joined #ruby
SloggerKhan has quit [Ping timeout: 265 seconds]
slowcon has quit [Client Quit]
<Oog> centrx: how about ALPHA_NUM_CHARS = [*'0'..'9', *'a'..'z', *'A'..'Z'] (0...length).map { ALPHA_NUM_CHARS[SecureRandom.random_number(ALPHA_NUM_CHARS.length)] }.join
KK4MGV has joined #ruby
adamholt_ has joined #ruby
iMe has joined #ruby
josh has joined #ruby
PLejeck has joined #ruby
pr00t has joined #ruby
Xeago has joined #ruby
closures999 has joined #ruby
yellow5 has joined #ruby
CaptainJet has joined #ruby
marcgg has joined #ruby
<josh> puts "Awwwww yeeaaaahhhh"
Tarential has joined #ruby
<centrx> Oog, That seems fine, might not be the fastest
zaargy has joined #ruby
De`off has quit [Ping timeout: 265 seconds]
fumduq has quit [Ping timeout: 260 seconds]
jack_rabbit has joined #ruby
snuffeluffegus has joined #ruby
netf has quit [Ping timeout: 260 seconds]
linduxed has quit [Ping timeout: 260 seconds]
77CABFUYZ has quit [Remote host closed the connection]
netf has joined #ruby
Caius has joined #ruby
v0n has joined #ruby
jrist has joined #ruby
Veejay has joined #ruby
whatasunnyday_ has joined #ruby
OdNairy has joined #ruby
Caius has quit [Changing host]
Caius has joined #ruby
josh has quit [Read error: Connection reset by peer]
soulcake has joined #ruby
awkisopen has joined #ruby
paul_k has joined #ruby
linduxed has joined #ruby
crazysim_ has joined #ruby
hl has joined #ruby
tchebb has joined #ruby
reset has quit [Quit: Leaving...]
whatasunnyday has quit [Quit: whatasunnyday]
failshell has quit [Ping timeout: 260 seconds]
crazysim has quit [Excess Flood]
whatasunnyday_ is now known as whatasunnyday
Guest67602 has joined #ruby
fumduq has joined #ruby
ValicekB has joined #ruby
Cooler_ has joined #ruby
snath has joined #ruby
reset has joined #ruby
Alina-malina has joined #ruby
agjacome has joined #ruby
crazysim_ is now known as crazysim
SloggerKhan has joined #ruby
endash has joined #ruby
i8igmac has joined #ruby
koshian_ has joined #ruby
beakr has quit [Quit: beakr]
michael_mbp has joined #ruby
marienz has joined #ruby
S0da has joined #ruby
cout_ has joined #ruby
dkamioka has joined #ruby
whatasunnyday has quit [Quit: whatasunnyday]
Vivekananda has joined #ruby
Olipro has quit [Max SendQ exceeded]
reset has quit [Ping timeout: 245 seconds]
whatasunnyday has joined #ruby
aboudreault has joined #ruby
zerun0_ has joined #ruby
SloggerKhan has quit [Ping timeout: 248 seconds]
Patteh has quit [Ping timeout: 265 seconds]
Zunonia has quit [Quit: Computer has gone to sleep.]
agjacome_ has quit [Ping timeout: 260 seconds]
<centrx> Oog, You can also do:
Patteh has joined #ruby
pr00t has quit [Ping timeout: 260 seconds]
dx7 has quit [Ping timeout: 260 seconds]
cout has quit [Ping timeout: 260 seconds]
ctp_ has quit [Ping timeout: 260 seconds]
ping-pong has quit [Ping timeout: 260 seconds]
beneggett has quit [Ping timeout: 265 seconds]
AlexRussia has quit [Ping timeout: 272 seconds]
danshult_ has joined #ruby
yxhuvud has quit [Ping timeout: 260 seconds]
ultraflash3 has quit [Remote host closed the connection]
Davey has joined #ruby
rm_ has joined #ruby
bahar has quit [Ping timeout: 272 seconds]
adamholt_ has quit [Ping timeout: 260 seconds]
SloggerKhan has joined #ruby
mneorr has joined #ruby
Olipro has joined #ruby
awarner has joined #ruby
<centrx> Oog, SecureRandom.base64.delete("+").delete("/").delete("=")
danshultz has quit [Ping timeout: 260 seconds]
pr00t has joined #ruby
Wolland has joined #ruby
[gmi] has joined #ruby
pinpin404 has quit [Ping timeout: 260 seconds]
<Oog> base64 is a-zA-Z0-9?
Andrevan has joined #ruby
<Oog> i see it is other than the +/=
vlad_starkov has joined #ruby
adamholt has joined #ruby
asdasdasdasdasd_ has left #ruby ["Ex-Chat"]
yxhuvud has joined #ruby
<Oog> cool thanks
oso96_2000 is now known as oso|away
oetjenj has quit [Ping timeout: 260 seconds]
Angelous has joined #ruby
Noldorin has joined #ruby
jaredrhine_ has quit [Read error: Connection reset by peer]
dingus_khan has quit [Remote host closed the connection]
jaredrhine has joined #ruby
hamakn_ has joined #ruby
Guest67602 has quit [Ping timeout: 260 seconds]
sensen has joined #ruby
hamakn has quit [Ping timeout: 260 seconds]
ageis_ has joined #ruby
closures999 has quit [Read error: Connection reset by peer]
oetjenj has joined #ruby
<centrx> Oog, It also runs about 20x faster
closures999 has joined #ruby
Solnse has quit [Quit: Leaving.]
ping-pong has joined #ruby
chipotle has joined #ruby
<Oog> yeah this will work as long as i dont care about the exact length
vlad_starkov has quit [Ping timeout: 260 seconds]
msmith_ has quit [Remote host closed the connection]
<Oog> i could just make a longer string and take the first X chars to be safe
<centrx> Oog, You can add more characters by passing a number to #base64, then truncate the string
[gmi] has quit [Quit: Leaving]
<Oog> will do thanks
parzo has quit [Remote host closed the connection]
parzo has joined #ruby
<Oog> return SecureRandom.base64(length * 2).gsub(/=|\/|\+/, '')[0...length]
bahar has joined #ruby
Solnse has joined #ruby
benzrf_ has joined #ruby
<benzrf_> hello
yeboot has joined #ruby
<benzrf_> i am here to share the glory of Super Mega Comix
closures999 has quit [Read error: Connection reset by peer]
<yeboot> what's a good gui lib for ruby? I was looking at wxRuby but their site seems to have been defaced and they last updated in 09
<yeboot> or 2011
<yeboot> either way it's pretty not-up-to-date
agent_white has joined #ruby
<benzrf_> yeboot: shoes?
closures999 has joined #ruby
Valesk has joined #ruby
beneggett has joined #ruby
havenwood has joined #ruby
parzo has quit [Ping timeout: 260 seconds]
pinage404 has joined #ruby
brennanMKE has joined #ruby
lagweezle has quit [Quit: leaving]
<yeboot> ty benzrf_
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
benlieb has quit [Quit: benlieb]
Aryasam has quit [Ping timeout: 245 seconds]
closures999 has quit [Read error: Connection reset by peer]
eka has joined #ruby
closures999 has joined #ruby
maletor_ has quit [Quit: Computer has gone to sleep.]
mneorr has quit [Remote host closed the connection]
Solnse has quit [Ping timeout: 252 seconds]
mneorr has joined #ruby
zeade has joined #ruby
agjacome has quit [Quit: leaving]
dingus_khan has joined #ruby
joshu has quit [Ping timeout: 264 seconds]
agjacome has joined #ruby
jclrb has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
ctp has joined #ruby
beakr has joined #ruby
starfox21 has quit [Quit: starfox21]
mneorr has quit [Ping timeout: 245 seconds]
mocfive has joined #ruby
jclrb has left #ruby [#ruby]
xue has joined #ruby
bluntman has joined #ruby
virtualize has joined #ruby
pu22l3r has joined #ruby
Fire-Dragon-DoL has joined #ruby
mven has joined #ruby
froy has joined #ruby
meatherly has joined #ruby
jso has joined #ruby
amclain_ has quit [Read error: Connection reset by peer]
Aryasam has joined #ruby
mven has quit [Max SendQ exceeded]
ctp_ has joined #ruby
ctp has quit [Read error: Connection reset by peer]
go|dfish has quit [Changing host]
go|dfish has joined #ruby
mven has joined #ruby
[BNC]yetet has joined #ruby
[BNC]yetet has quit [Changing host]
Hobogrammer has joined #ruby
Atw has joined #ruby
joshu has joined #ruby
joshu has quit [Max SendQ exceeded]
joshu has joined #ruby
closer has quit [Ping timeout: 252 seconds]
Megtastique has quit []
ctp_ has quit [Ping timeout: 245 seconds]
Aryasam has quit [Ping timeout: 272 seconds]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
carif has joined #ruby
aspires has joined #ruby
yfeldblum has joined #ruby
closer has joined #ruby
snuffeluffegus has quit [Quit: Leaving]
mando has joined #ruby
Noldorin has quit []
Aryasam has joined #ruby
marcgg has quit [Read error: Connection reset by peer]
Zunonia has joined #ruby
marcgg has joined #ruby
mclee_ has joined #ruby
mikepack has joined #ruby
yacks has joined #ruby
ahuman_ is now known as ahuman
gnephiak has joined #ruby
mikepack has quit [Remote host closed the connection]
whomp_ has quit [Ping timeout: 272 seconds]
george2 has joined #ruby
Zunonia has quit [Ping timeout: 260 seconds]
Aryasam has quit [Ping timeout: 272 seconds]
pierre1_ has quit [Quit: Leaving]
Kricir has joined #ruby
sethen has joined #ruby
MACscr has left #ruby [#ruby]
whatasunnyday has quit [Quit: whatasunnyday]
radic has quit [Ping timeout: 245 seconds]
x77686d has joined #ruby
Kricir has quit [Ping timeout: 245 seconds]
aspires has quit [Read error: Connection reset by peer]
drocsid has joined #ruby
aspires has joined #ruby
radic has joined #ruby
Aryasam has joined #ruby
oso|away is now known as oso96_2000
Lewix has joined #ruby
paradisaeidae has joined #ruby
lagweezle has joined #ruby
ukd1_ has quit [Remote host closed the connection]
Aryasam has quit [Ping timeout: 260 seconds]
kpshek has joined #ruby
amclain has joined #ruby
zxq9 has joined #ruby
whatasunnyday has joined #ruby
mando has quit [Remote host closed the connection]
Jdubs_ has quit [Remote host closed the connection]
pietr0 has joined #ruby
meatherly has quit [Remote host closed the connection]
meatherly has joined #ruby
Guest81080 has quit [Changing host]
Guest81080 has joined #ruby
kenneth__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest81080 is now known as seekwill
jgoss has joined #ruby
Jdubs has joined #ruby
someword has joined #ruby
Aryasam has joined #ruby
Atw has quit []
Aryasam has quit [Read error: Connection reset by peer]
meatherly has quit [Remote host closed the connection]
fuhgeddaboudit has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
braincrash has quit [Quit: bye bye]
meatherly has joined #ruby
benzrf_ has quit [Quit: zzz]
danijoo has joined #ruby
Jdubs has quit [Remote host closed the connection]
starfox21 has joined #ruby
wallerdev has joined #ruby
Atw has joined #ruby
axsuul has joined #ruby
braincrash has joined #ruby
Aryasam has joined #ruby
x77686d has quit [Quit: x77686d]
meatherly has quit [Ping timeout: 245 seconds]
alvaro_o__ has quit [Quit: Ex-Chat]
someword has quit [Quit: Leaving.]
Zunonia has joined #ruby
speakingcode has joined #ruby
paradisaeidae has quit [Quit: ChatZilla 0.9.90.1 [Firefox 27.0/20140127194636]]
stonevil has quit [Quit: Computer has gone to sleep.]
trhodes_ has quit [Ping timeout: 245 seconds]
lagweezle has quit [Quit: leaving]
aspires has quit []
Olipro has quit [Remote host closed the connection]
Atw has quit []
terlar has joined #ruby
dseitz has joined #ruby
mattp__ has joined #ruby
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
rezzack has quit [Ping timeout: 260 seconds]
Atw has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
trhodes has joined #ruby
closures999 has quit []
paul_k has quit [Quit: Leaving]
paul_k has joined #ruby
Olipro has joined #ruby
whatasunnyday has quit [Quit: whatasunnyday]
closer has quit [Ping timeout: 256 seconds]
Wolland has quit [Remote host closed the connection]
yarou has joined #ruby
weems is now known as kittenwitten
pixelgremlins has joined #ruby
closer has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
mneorr has joined #ruby
thomasxie has joined #ruby
habanany has quit [Quit: Leaving.]
marcdel has joined #ruby
sawtooth has quit [Ping timeout: 245 seconds]
Cork has quit [Ping timeout: 252 seconds]
mercwithamouth has joined #ruby
kenneth has joined #ruby
sawtooth has joined #ruby
x77686d has joined #ruby
[krisbulman] has quit [Remote host closed the connection]
ctp has joined #ruby
mneorr has quit [Ping timeout: 245 seconds]
ctp has quit [Read error: Connection reset by peer]
Cork has joined #ruby
LuvLinuxOS has quit [Quit: Leaving]
jle` has joined #ruby
timonv has joined #ruby
[krisbulman] has joined #ruby
[krisbulman] is now known as krisbulman
maroloccio has joined #ruby
Hobogrammer_ has joined #ruby
dik_dak has joined #ruby
mjuszczak has quit [Ping timeout: 265 seconds]
timonv has quit [Ping timeout: 245 seconds]
mjuszczak has joined #ruby
sdwrage has joined #ruby
aetaric has quit [Ping timeout: 265 seconds]
postmodern has quit [Quit: Leaving]
kpshek has quit []
Hobogrammer has quit [Ping timeout: 272 seconds]
Jdubs has joined #ruby
ioNull has quit [Quit: Computer has gone to sleep.]
Azure__ has quit [Quit: Textual IRC Client: www.textualapp.com]
lagweezle has joined #ruby
lagweezle has left #ruby [#ruby]
lagweezle has joined #ruby
thomasxie has left #ruby [#ruby]
joelroa has joined #ruby
Azure has joined #ruby
sarlalian has joined #ruby
Aryasam has quit [Ping timeout: 260 seconds]
Kricir has joined #ruby
carif has quit [Ping timeout: 265 seconds]
ageis_ is now known as ageis
Lightstalker has quit [Quit: leaving]
meatherly has joined #ruby
mjuszczak has quit [Ping timeout: 260 seconds]
fedexo has joined #ruby
mjuszczak has joined #ruby
Es0teric has quit [Remote host closed the connection]
sensen has quit [Ping timeout: 272 seconds]
tylersmith has joined #ruby
maetthew has quit [Ping timeout: 245 seconds]
Valesk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
manacit has quit [Excess Flood]
sensen has joined #ruby
Kricir has quit [Ping timeout: 260 seconds]
pixelgremlins_ba has joined #ruby
beneggett has joined #ruby
aetaric has joined #ruby
fedexo has quit [Ping timeout: 245 seconds]
supersymmetry has joined #ruby
ixti has joined #ruby
mjuszczak has quit [Ping timeout: 248 seconds]
mjuszcza1 has joined #ruby
maetthew has joined #ruby
dingus_khan has quit [Remote host closed the connection]
manacit has joined #ruby
manacit has quit [Changing host]
manacit has joined #ruby
Es0teric has joined #ruby
x77686d has quit [Quit: x77686d]
pixelgremlins has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Remote host closed the connection]
x77686d has joined #ruby
gregf has joined #ruby
sski has joined #ruby
someword has joined #ruby
Jdubs has quit [Remote host closed the connection]
dik_dak has quit [Quit: Leaving]
Deele has joined #ruby
nycjv321 has quit [Quit: leaving]
Spleeze has quit [Read error: Operation timed out]
vlad_starkov has joined #ruby
fgo has quit [Remote host closed the connection]
someword has quit [Quit: Leaving.]
whatasunnyday has joined #ruby
mando has joined #ruby
sparrovv has joined #ruby
Hobogrammer has joined #ruby
pierre1_ has joined #ruby
rainmanjam has joined #ruby
Hobogrammer_ has quit [Ping timeout: 260 seconds]
krz has quit [Ping timeout: 248 seconds]
Spleeze has joined #ruby
Hobogrammer has quit [Ping timeout: 248 seconds]
sparrovv has quit [Ping timeout: 248 seconds]
brennanMKE has quit [Remote host closed the connection]
brennanMKE has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
PLejeck has quit [Max SendQ exceeded]
PLejeck has joined #ruby
g0g0 has joined #ruby
PLejeck has quit [Changing host]
PLejeck has joined #ruby
PLejeck is now known as nuck
brennanMKE has quit [Ping timeout: 260 seconds]
burgess has joined #ruby
burgess has quit [Client Quit]
mneorr has joined #ruby
pu22l3r_ has joined #ruby
x77686d has quit [Quit: x77686d]
mneorr has quit [Ping timeout: 245 seconds]
jzig has joined #ruby
pu22l3r has quit [Ping timeout: 272 seconds]
evilbug has joined #ruby
mneorr has joined #ruby
nuck has quit [Ping timeout: 260 seconds]
paradisaeidae has joined #ruby
seoNinjaWarrior has quit [Quit: Computer has gone to sleep.]
seoNinjaWarrior has joined #ruby
sergicles has joined #ruby
mocfive has quit [Remote host closed the connection]
mocfive has joined #ruby
ioNull has joined #ruby
joelroa has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
mneorr has quit [Ping timeout: 245 seconds]
Guest60211 is now known as mbff
Andrevan has quit [Quit: WeeChat 0.4.2-rc1]
mengu has joined #ruby
<paradisaeidae> So are threads sub-processes in Ruby 2.1?
yfeldblum has joined #ruby
mocfive has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Ping timeout: 245 seconds]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mengu has quit [Ping timeout: 260 seconds]
sensen has quit [Ping timeout: 245 seconds]
ledestin has joined #ruby
stryek has quit [Ping timeout: 272 seconds]
gja has joined #ruby
amclain has quit [Quit: Leaving]
agjacome has quit [Ping timeout: 272 seconds]
Aryasam has joined #ruby
Kricir has joined #ruby
<dseitz> they are threads
amclain has joined #ruby
v0n has quit [Ping timeout: 245 seconds]
<pipework> paradisaeidae: They're threads.
sergicles has quit [Quit: sergicles]
brennanMKE has joined #ruby
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
Kricir has quit [Ping timeout: 248 seconds]
Aryasam has quit [Ping timeout: 248 seconds]
Oog has quit []
brennanMKE has quit [Ping timeout: 245 seconds]
beneggett has quit [Quit: Textual IRC Client: www.textualapp.com]
PLejeck has joined #ruby
centrx has quit [Quit: Leaving]
<agent_white> eeeee! I get write nagios plugins in ruby! this is exciting!
<agent_white> I can*
havenwood has quit [Ping timeout: 260 seconds]
gja has quit [Quit: This computer has gone to sleep]
cdime has joined #ruby
<pipework> agent_white: NagOS.
fuhgeddaboudit has quit [Ping timeout: 245 seconds]
<agent_white> pipework: Dude I feel you there after working on this beast for the past couple days.
<agent_white> I bet it runs a few countries and drug cartels.
<pipework> "Break Jimmies kneecaps in, it's been 3 days!"
Valesk has joined #ruby
Valesk has quit [Max SendQ exceeded]
<dseitz> Brian, where's my money man
<pipework> ^
PLejeck has quit [Ping timeout: 260 seconds]
aspiers has quit [Ping timeout: 245 seconds]
gja has joined #ruby
<RubyPanther> nagios is a PITA, please write better-than-average plugins agent_white
sensen has joined #ruby
BraddBitt has quit [Read error: Connection reset by peer]
jzig has quit [Remote host closed the connection]
BraddPitt has joined #ruby
jzig has joined #ruby
mocfive has joined #ruby
omegahm^ is now known as omegahm
Liothen has joined #ruby
kiri has joined #ruby
jle` has quit [Ping timeout: 245 seconds]
jzig has quit [Ping timeout: 260 seconds]
<RubyPanther> yeboot: Gtk
Celm has joined #ruby
zarul has quit [Ping timeout: 265 seconds]
zarul has joined #ruby
zarul has quit [Changing host]
zarul has joined #ruby
<agent_white> RubyPanther: So far the plan has been to ditch all the provided plugins, and write my own ruby scripts. I do not enjoy dealing with this argument syntax.
<RubyPanther> lolol
<RubyPanther> that's an awesome plan
ultraflash3 has joined #ruby
<RubyPanther> I spent a whole hour this week trying to fiddle the ping plugin settings to not give false flapping reports whenever there is lag
meatherly has quit [Remote host closed the connection]
meatherly has joined #ruby
meatherly has quit [Read error: Connection reset by peer]
<RubyPanther> There is lag during break time because people stream HD video
JasmeetQA has joined #ruby
<agent_white> Hahah oh good god... IT dudes having heart attacks with all the alerts sent out.
brennanMKE has joined #ruby
havenwood has joined #ruby
kate_r has joined #ruby
kate_r has quit [Max SendQ exceeded]
ultraflash3 has quit [Ping timeout: 272 seconds]
<pipework> agent_white: You should alert them every time a visitor uses the site so they can jump up in joy that all their work is not going to waste.
timonv has joined #ruby
<agent_white> RubyPanther: Yeah it went from "ooo I want to learn to setup nagios with my nifty new puppet install!" to "...wat is snmp... plz gahd digitalocean give us LVM toys."
Monk_cod_ has quit []
brennanMKE has quit [Ping timeout: 260 seconds]
<agent_white> pipework: Haha I think I need that alert for myself, as this is just for my personal servers really. D:
whatasunnyday has quit [Quit: whatasunnyday]
ged_ has quit [Ping timeout: 252 seconds]
Aryasam has joined #ruby
Celm has quit [Remote host closed the connection]
<agent_white> For all... three of them. D:
Xeago has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
timonv_ has joined #ruby
timonv has quit [Ping timeout: 248 seconds]
Xeago has quit [Remote host closed the connection]
yasushi has joined #ruby
PLejeck has joined #ruby
mneorr has joined #ruby
maroloccio has quit [Quit: WeeChat 0.4.2]
<agent_white> Mmm. On that note, I may need to go sit in a corner and think about my life.
Aryasam has quit [Ping timeout: 248 seconds]
beakr has quit [Quit: beakr]
CaptainJet has quit []
Macaveli has joined #ruby
heftig has quit [Quit: Quitting]
mneorr has quit [Ping timeout: 260 seconds]
PLejeck has quit [Ping timeout: 260 seconds]
michael_lee has joined #ruby
havenwood has quit [Ping timeout: 245 seconds]
whomp has joined #ruby
<pipework> agent_white: Learn chef.
<pipework> Then pair with me on writing chef scripts and eventually a chef recipe generator for gems and applications in ruby!
petey has quit [Remote host closed the connection]
mahlon has quit [Ping timeout: 240 seconds]
petey has joined #ruby
dx7 has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
whomp has quit [Client Quit]
omegahm is now known as omegahm^
tagrudev has joined #ruby
GinoMan has quit [Remote host closed the connection]
tonni_ has quit [Remote host closed the connection]
makara has joined #ruby
tonni has joined #ruby
Macaveli has quit [Ping timeout: 272 seconds]
IceDragon has quit [Quit: Space~~~]
makara has quit [Max SendQ exceeded]
makara has joined #ruby
petey has quit [Ping timeout: 245 seconds]
mikepack has joined #ruby
dx7 has quit [Ping timeout: 248 seconds]
Bira has joined #ruby
kiri has quit [Remote host closed the connection]
krz has joined #ruby
seoNinjaWarrior has quit [Quit: Computer has gone to sleep.]
aspires has joined #ruby
seoNinjaWarrior has joined #ruby
tonni has quit [Ping timeout: 245 seconds]
Macaveli has joined #ruby
<agent_white> pipework: I'm all down haha! I just need to go through a denial phase of learning puppet first. ;)
OdNairy has joined #ruby
gomix has quit [Ping timeout: 245 seconds]
hukl has joined #ruby
<pipework> agent_white: My condolences!
hukl has quit [Client Quit]
dingus_khan has joined #ruby
Bira has quit [Ping timeout: 248 seconds]
mocfive has quit [Remote host closed the connection]
Kricir has joined #ruby
lkba has joined #ruby
mocfive has joined #ruby
mahlon has joined #ruby
supersymmetry has quit [Quit: WeeChat 0.4.2]
mando has quit [Remote host closed the connection]
dingus_khan has quit [Ping timeout: 245 seconds]
maletor has joined #ruby
ged_ has joined #ruby
Kricir has quit [Ping timeout: 260 seconds]
mocfive has quit [Ping timeout: 245 seconds]
gja has quit [Quit: This computer has gone to sleep]
amclain has quit [Quit: Leaving]
oso96_2000 is now known as oso|away
Ch4rAss has joined #ruby
tonni has joined #ruby
jaxxstorm has joined #ruby
yasushi has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
browndawg has joined #ruby
bricker`LA has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
gopat has joined #ruby
gja has joined #ruby
BrianJ has joined #ruby
charliesome has quit [Ping timeout: 252 seconds]
jzig has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
starfox21 has quit [Quit: starfox21]
evilbug has quit [Quit: Leaving]
<agent_white> pipework: All good! Most of my work seems that way; I learn it and just hope I can use it one day!
<agent_white> Adam (Workaholics) - "I just talk. I just talk to hear myself think. Nobody actually listens to me!"
Ch4rAss` has joined #ruby
yourmysin has quit [Read error: Connection reset by peer]
jzig has quit [Ping timeout: 245 seconds]
dingus_khan has joined #ruby
forced_request has joined #ruby
Al___ has joined #ruby
Ch4rAss has quit [Ping timeout: 245 seconds]
dingus_khan has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
agent_white has quit [Quit: leaving]
agent_white has joined #ruby
mikepack has joined #ruby
Zunonia has quit [Quit: Computer has gone to sleep.]
ktosiek has joined #ruby
iamdoo2 has quit []
gopat has quit [Remote host closed the connection]
ayaz has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
Aryasam has joined #ruby
noop has joined #ruby
omegahm^ is now known as omegahm
werdnativ has quit [Quit: werdnativ]
mikepack has quit [Ping timeout: 248 seconds]
jonah_k has joined #ruby
_tpavel has joined #ruby
bal has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
Hobogrammer has joined #ruby
gja has joined #ruby
brennanMKE has joined #ruby
Monk_code has joined #ruby
mojo619 has quit [Quit: mojo619]
forced_request has quit [Read error: Connection reset by peer]
quatron has joined #ruby
rainmanjam has quit [Remote host closed the connection]
forced_request has joined #ruby
OdNairy has quit [Ping timeout: 272 seconds]
CpuID has joined #ruby
rainmanjam has joined #ruby
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby
yacks has quit [Quit: Leaving]
gja has quit [Quit: This computer has gone to sleep]
brennanMKE has quit [Ping timeout: 260 seconds]
Hobogrammer has quit [Ping timeout: 260 seconds]
gja has joined #ruby
iamdoo2 has joined #ruby
ayaz_ has quit [Quit: leaving]
rainmanjam has quit [Remote host closed the connection]
kiba`` is now known as kiba
rainmanjam has joined #ruby
stefhen has joined #ruby
havenwood has joined #ruby
tylersmith has quit [Ping timeout: 260 seconds]
OdNairy has joined #ruby
sneakysneaky has joined #ruby
mneorr has joined #ruby
wallerdev has quit [Quit: wallerdev]
<sneakysneaky> I think I'm stuck on the imperative way to do things. Is there a more "Ruby-way" to do this? http://pastie.org/8728852#1 (newbie code)
vlad_starkov has joined #ruby
george2 has quit [Ping timeout: 272 seconds]
rainmanjam has quit [Ping timeout: 245 seconds]
<sneakysneaky> # Print a 5x5 triangle (half a square) using only two output statements
havenwood has quit [Ping timeout: 260 seconds]
mneorr has quit [Ping timeout: 245 seconds]
Zunonia has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
bklane_ has quit [Remote host closed the connection]
dseitz has joined #ruby
tangentstorm has joined #ruby
<agent_white> 6.times { |n|
<agent_white> n.time { print "#" }
<agent_white> puts
<agent_white> }
<agent_white> Correction -- n.times**
<agent_white> Though, issue is that prints a blank line for the 0 index. So fix that :)
<tangentstorm> do you guys have a ruby eval bot?
<agent_white> >> puts "YES WE DO"
<eval-in> agent_white => YES WE DO ... (https://eval.in/101120)
aspires has quit []
pierre1_ has quit [Ping timeout: 245 seconds]
<tangentstorm> :)
<agent_white> Anyone else getting PM's from this g0g0 fucker?
<tangentstorm> yes
<sneakysneaky> Yuuup
* agent_white sighs
<sneakysneaky> Why cant they spam to cute kittens and puppies websites instead
<agent_white> Maybe they did? I didn't bother to click it!
<sneakysneaky> Thank you agent_white, that's exactly what I meant, seems I have a hard time thinking the ruby way
<tangentstorm> can eval-in come live with us is #learnprogamming? :)
ephemerian has joined #ruby
<tangentstorm> er /in/ #learnprogramming :)
<agent_white> Why not build his brother for a learning project?!
<tangentstorm> oh whoah. it's not just ruby, looking at the site.
slowcon has joined #ruby
<tangentstorm> we have a bunch of bots already :)
<agent_white> Ahhh. Well unless there is one, an eval one specifically for Ruby would be badass!
droff has left #ruby [#ruby]
<tangentstorm> well i guess we have j, haskell, c++, and perl6... plus a custom one we made in python, but it doesn't evaluate code
abra has quit [Ping timeout: 272 seconds]
<sneakysneaky> I'm going to save my bad code, and agent_white's code to my github, that's one way to have my mistakes starving me right in the face
Atw has quit []
abra has joined #ruby
ukd1 has joined #ruby
dmarr has quit [Remote host closed the connection]
Al___ has quit [Quit: Al___]
Kricir has joined #ruby
jprovazn has joined #ruby
<agent_white> sneakysneaky: Oh not a mistake! I'm learning Ruby as well, so there _could_ be another way much better than mine!
<agent_white> Ruby is silly-putty; there's many ways to make one thing! And all are welcomed as long as you share! :)
Es0teric has quit [Ping timeout: 260 seconds]
<sneakysneaky> Probably, agent_white, but your code looks more the ruby-way than mine. That's exactly what I have trouble with and exactly the help I needed :)
ukd1 has quit [Client Quit]
<agent_white> sneakysneaky: Like... changing that 5.times to (1..5).each instead so it doesn't count the 0 !
Es0teric has joined #ruby
<agent_white> Then you needa try (1...5) to see what happens with an extra dot! :D
<sneakysneaky> haha, I was actually using ... earlier and couldn't figure out what was wrong. So there's a difference between .. and ...
<agent_white> Then we will train that half triangle to go and smash g0g0's face so I stop getting these PM's.
yeticry_ has quit [Read error: Connection reset by peer]
<agent_white> >> (1..2).include? 2
<eval-in> agent_white => true (https://eval.in/101121)
<sneakysneaky> I'm sure the sharp corners would hurt.
<agent_white> >> (1...2).include? 2
<eval-in> agent_white => false (https://eval.in/101122)
Kricir has quit [Ping timeout: 245 seconds]
dseitz has quit [Ping timeout: 260 seconds]
yeticry has joined #ruby
<agent_white> sneakysneaky: I think so too. If not we can change 'em to astericks to get the job done, no matter how dirty.
sk87 has joined #ruby
dmarr has joined #ruby
fgo has joined #ruby
dseitz has joined #ruby
<tangentstorm> >> 1.upto 5 do |n| puts 'x'*n end
<eval-in> tangentstorm => x ... (https://eval.in/101123)
<agent_white> tangentstorm: Hawt :D
ndrei has joined #ruby
<tangentstorm> :)
JasmeetQA has quit [Quit: Leaving.]
dseitz has quit [Client Quit]
fayimora has quit [Ping timeout: 245 seconds]
Avahey has quit [Read error: Connection reset by peer]
blooberr____ has quit [Ping timeout: 252 seconds]
SteveBenner09 has joined #ruby
claymore has joined #ruby
Avahey has joined #ruby
CpuID has quit [Ping timeout: 260 seconds]
antonishen has quit [Ping timeout: 246 seconds]
flowerhack has quit [Ping timeout: 252 seconds]
pusewicz_ has quit [Read error: Connection reset by peer]
frem_ has quit [Ping timeout: 272 seconds]
pkondzior____ has quit [Ping timeout: 272 seconds]
rainmanjam has joined #ruby
pusewicz_ has joined #ruby
mostlybadfly has quit [Ping timeout: 252 seconds]
jrunning has quit [Ping timeout: 245 seconds]
flowerhack has joined #ruby
fayimora has joined #ruby
antonishen has joined #ruby
mostlybadfly has joined #ruby
frem_ has joined #ruby
blooberr____ has joined #ruby
jrunning__ has joined #ruby
pkondzior____ has joined #ruby
dingus_khan has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<slowcon> anyone know how to pass a joined array to a database with sequel? EX: array = ["Jim,1", "Steve, 2"]. Jim = B1, 1 = C1. Steve = B2, 2 = C2. Column A is auto increment.
rainmanjam has quit [Ping timeout: 272 seconds]
JBreit has quit [Read error: Connection reset by peer]
JBreit has joined #ruby
dingus_khan has quit [Ping timeout: 272 seconds]
tfitts has joined #ruby
parduse has quit [Ping timeout: 245 seconds]
_Andres has joined #ruby
withnale has quit [Read error: Operation timed out]
rm_ has quit [Remote host closed the connection]
rm__ has joined #ruby
parduse has joined #ruby
mengu has quit [Remote host closed the connection]
parduse has quit [Changing host]
parduse has joined #ruby
nari has quit [Ping timeout: 245 seconds]
felixjet_ has joined #ruby
Hien has quit [Ping timeout: 264 seconds]
kenneth has quit [Ping timeout: 245 seconds]
Columcille has quit [Ping timeout: 245 seconds]
Aquilo has quit []
Aquilo has joined #ruby
MJBrune has quit [Ping timeout: 245 seconds]
tfittsy has quit [Ping timeout: 245 seconds]
relix has joined #ruby
BraddBitt has joined #ruby
certaint1 is now known as certainty
xxpor_ has quit [Ping timeout: 245 seconds]
decoponio has joined #ruby
MJBrune has joined #ruby
MJBrune has quit [Changing host]
MJBrune has joined #ruby
kenneth has joined #ruby
shtirlic_ has quit [Ping timeout: 264 seconds]
pixelgremlins_ba has quit [Ping timeout: 245 seconds]
SloggerKhan has quit [Ping timeout: 245 seconds]
rblackwe_ has quit [Ping timeout: 245 seconds]
starfox21 has joined #ruby
BrianJ has quit [Quit: Computer has gone to sleep.]
yacks has joined #ruby
krainboltgreene has quit [Ping timeout: 245 seconds]
Emmanuel_Chanel has quit [Ping timeout: 245 seconds]
Kilo`byte has quit [Ping timeout: 245 seconds]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
xxpor_ has joined #ruby
pixelgremlins_ba has joined #ruby
mahlon has quit [Ping timeout: 245 seconds]
jizanthapus-work has quit [Ping timeout: 245 seconds]
sneakysneaky has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
omegahm has quit [Ping timeout: 264 seconds]
mvangala has quit [Ping timeout: 264 seconds]
cdime has quit [Ping timeout: 245 seconds]
axsuul has quit [Ping timeout: 245 seconds]
Alina-malina has quit [Ping timeout: 245 seconds]
tkuchiki_ has quit [Ping timeout: 245 seconds]
felixjet has quit [Ping timeout: 245 seconds]
Nilium has quit [Ping timeout: 245 seconds]
Hiall has quit [Quit: hiall]
Columcille has joined #ruby
jizanthapus-work has joined #ruby
SloggerKhan has joined #ruby
xrq``` has quit [Ping timeout: 245 seconds]
rblackwe has joined #ruby
zzak has quit [Ping timeout: 264 seconds]
abstractj has quit [Ping timeout: 264 seconds]
cid404 has quit [Ping timeout: 264 seconds]
Tachoh has quit [Ping timeout: 264 seconds]
Alina-malina has joined #ruby
axsuul has joined #ruby
rm__ has quit [Ping timeout: 248 seconds]
bettyclamp has quit [Ping timeout: 245 seconds]
nari has joined #ruby
mahlon has joined #ruby
sweeper has quit [Ping timeout: 264 seconds]
Xeago has joined #ruby
krainboltgreene has joined #ruby
Nilium has joined #ruby
kiba` has joined #ruby
tkuchiki has joined #ruby
BraddPitt has quit [Ping timeout: 245 seconds]
__class__ has quit [Ping timeout: 245 seconds]
jericon has quit [Ping timeout: 245 seconds]
cid404 has joined #ruby
xrq``` has joined #ruby
sweeper has joined #ruby
basso_ has joined #ruby
bettyclamp has joined #ruby
abstractj has joined #ruby
kiba has quit [Ping timeout: 245 seconds]
vadviktor has quit [Ping timeout: 264 seconds]
Rudde has quit [Ping timeout: 264 seconds]
stefhen is now known as res0nat0r
Tachoh has joined #ruby
echevemaster has quit [Quit: Leaving]
res0nat0r has quit [Quit: Textual IRC Client: www.textualapp.com]
shtirlic has joined #ruby
jericon has joined #ruby
basso has quit [Ping timeout: 264 seconds]
__class__ has joined #ruby
emdub_ has quit [Ping timeout: 245 seconds]
res0nat0r has joined #ruby
Hien has joined #ruby
Kilo`byte has joined #ruby
kevinfagan has quit [Ping timeout: 264 seconds]
kaichanvong has quit [Ping timeout: 264 seconds]
vadviktor has joined #ruby
mosheee has quit [Ping timeout: 245 seconds]
zzak has joined #ruby
OdNairy has quit [Ping timeout: 272 seconds]
ultraflash3 has joined #ruby
emdub has joined #ruby
kaichanvong has joined #ruby
tonni has quit [Remote host closed the connection]
yokel has quit [Ping timeout: 264 seconds]
Emmanuel_Chanel has joined #ruby
tonni has joined #ruby
forced_request has quit [Read error: Connection reset by peer]
moshee has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
gja has quit [Quit: This computer has gone to sleep]
marienz has quit [Ping timeout: 600 seconds]
andikr has joined #ruby
einarj has joined #ruby
Nanuq has quit [Remote host closed the connection]
malthe has quit [Read error: Operation timed out]
Nanuq has joined #ruby
tonni has quit [Read error: Connection reset by peer]
kevinfagan has joined #ruby
Rylee has quit [Ping timeout: 245 seconds]
nari has quit [Ping timeout: 264 seconds]
shtirlic has quit [Ping timeout: 245 seconds]
brennanMKE has joined #ruby
shtirlic has joined #ruby
ultraflash3 has quit [Ping timeout: 245 seconds]
Rudde has joined #ruby
yarou has quit [Remote host closed the connection]
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
aganov has joined #ruby
OdNairy has joined #ruby
brennanMKE has quit [Read error: Connection reset by peer]
Columcille has quit [Ping timeout: 245 seconds]
jcarouth has quit [Ping timeout: 245 seconds]
bubbajones has quit [Ping timeout: 245 seconds]
wildroman2 has joined #ruby
brennanMKE has joined #ruby
crazedpsyc has quit [Ping timeout: 264 seconds]
jack_rabbit has quit [Ping timeout: 245 seconds]
Columcille has joined #ruby
bubbajones has joined #ruby
snath has quit [Ping timeout: 248 seconds]
Hamled has quit [Ping timeout: 264 seconds]
yokel has joined #ruby
Nanuq has quit [Ping timeout: 245 seconds]
Hamled has joined #ruby
dx7 has joined #ruby
fflush has quit [Ping timeout: 245 seconds]
ndrei has quit [Ping timeout: 260 seconds]
nari has joined #ruby
Nanuq has joined #ruby
pietr0 has quit [Ping timeout: 245 seconds]
snkcld has quit [Ping timeout: 245 seconds]
Rylee has joined #ruby
fflush has joined #ruby
<yeboot> RubyPanther is gtk really cross platform though
charliesome has joined #ruby
crazedpsyc has joined #ruby
pietr0 has joined #ruby
ioNull has quit [Ping timeout: 260 seconds]
CpuID has joined #ruby
jack_rabbit has joined #ruby
snkcld has joined #ruby
jcarouth has joined #ruby
ndrei has joined #ruby
OdNairy has quit [Ping timeout: 260 seconds]
lotherk_ is now known as lotherk
brennanMKE has quit [Ping timeout: 248 seconds]
bklane has joined #ruby
DenzelM has quit [Ping timeout: 245 seconds]
noarthur has joined #ruby
dx7 has quit [Ping timeout: 248 seconds]
paradisaeidae has quit [Remote host closed the connection]
Lennier has joined #ruby
havenwood has joined #ruby
OdNairy has joined #ruby
fella6s has joined #ruby
caveat- has quit [Ping timeout: 252 seconds]
mneorr has joined #ruby
slowcon has quit [Quit: slowcon]
jonah_k has quit [Remote host closed the connection]
caveat- has joined #ruby
newton has quit [Ping timeout: 245 seconds]
withnale has joined #ruby
blaxter_ has joined #ruby
fella7s has quit [Ping timeout: 265 seconds]
omegahm has joined #ruby
havenwood has quit [Ping timeout: 260 seconds]
poulson has joined #ruby
CpuID has quit [Ping timeout: 248 seconds]
tylersmith has joined #ruby
mneorr has quit [Ping timeout: 245 seconds]
petey has joined #ruby
obs_ has joined #ruby
slowcon has joined #ruby
Aryasam has quit [Ping timeout: 248 seconds]
malthe has joined #ruby
srji_ has quit [Quit: leaving]
srji has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
tylersmith has quit [Ping timeout: 260 seconds]
petey has quit [Ping timeout: 260 seconds]
joelroa has joined #ruby
CpuID has joined #ruby
CpuID has joined #ruby
CpuID has quit [Changing host]
vlad_starkov has joined #ruby
tonni has joined #ruby
kittenwitten is now known as weems
bgy has quit [Changing host]
bgy has joined #ruby
msuszczy has joined #ruby
RTG` has quit [Ping timeout: 240 seconds]
arctaruz has joined #ruby
Kricir has joined #ruby
tharindu has joined #ruby
RTG` has joined #ruby
yuuki has joined #ruby
yuuki has quit [Client Quit]
ahawkins has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
msuszczy has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Remote host closed the connection]
Kricir has quit [Ping timeout: 260 seconds]
<pipework> yeboot: No, it's just completely cross-platform
<pipework> g0g0: Don't query me.
jlebrech has joined #ruby
greenarrow has joined #ruby
<agent_white> pipework: How long have you been online? He's finally stopped pinging me.
<pipework> agent_white: I'm continuously online.
<agent_white> Makes me wonder how he's going down the list ;D
CpuID has quit [Quit: This computer has gone to sleep]
TMM has quit [Quit: Ex-Chat]
mikecmpbll has joined #ruby
rainmanjam has joined #ruby
heftig has joined #ruby
Aryasam has joined #ruby
mvangala has joined #ruby
LekeFly has joined #ruby
troessner has joined #ruby
leonidlm has joined #ruby
rainmanjam has quit [Ping timeout: 248 seconds]
alexherbo2 has joined #ruby
OdNairy has quit [Ping timeout: 245 seconds]
Aryasam has quit [Ping timeout: 248 seconds]
lemonsparrow has joined #ruby
dagobah has joined #ruby
abstractj has quit [Changing host]
abstractj has joined #ruby
speakingcode has quit [Ping timeout: 260 seconds]
ultraflash3 has joined #ruby
gja has joined #ruby
<Nilium> Well goody, this was easier to parse than I thought: "!foo[class=Window] > (bar|biz|bux)![class=Button] baz > *"
mehlah has joined #ruby
<SteveBenner09> dat selector
<Nilium> It's not CSS, thankfully.
<Nilium> Just wanted to make an easy way to search through stuff in a hierarchy
roolo has joined #ruby
razibog has joined #ruby
Aryasam has joined #ruby
axsuul has quit [Ping timeout: 245 seconds]
<yeboot> pipework: that doesn't make sense
Al___ has joined #ruby
OdNairy has joined #ruby
<pipework> yeboot: When you ask people to repeat themselves, it doesn't make sense.
nvrch has joined #ruby
<yeboot> you said gtk isn't cross platform, but is just completely cross platform
<yeboot> that didn't make sense
agent_white has quit [Quit: gnight]
marr has joined #ruby
marienz has joined #ruby
ahawkins has left #ruby [#ruby]
BraddBitt has quit [Ping timeout: 272 seconds]
<SteveBenner09> not CSS? You're making your own DSL?
workmad3 has joined #ruby
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
sski has quit [Remote host closed the connection]
sski has joined #ruby
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
Aryasam has quit [Ping timeout: 248 seconds]
jojon is now known as ioion
yfeldblum has joined #ruby
brennanMKE has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
kaliya has joined #ruby
dubios has quit [Excess Flood]
sski has quit [Ping timeout: 272 seconds]
dubios has joined #ruby
dubios has quit [Excess Flood]
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dubios has joined #ruby
dubios has quit [Changing host]
dubios has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
canton7-mac has joined #ruby
brennanMKE has quit [Ping timeout: 248 seconds]
RoxasShadowRS has joined #ruby
nari has quit [Ping timeout: 245 seconds]
thumpba has joined #ruby
pietr0 has quit [Quit: pietr0]
LekeFly has joined #ruby
_tpavel has quit [Quit: Leaving]
havenwood has joined #ruby
yacks has quit [Ping timeout: 260 seconds]
joelroa has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
mneorr has joined #ruby
joonty_ is now known as joonty
blackmesa has joined #ruby
rdark has joined #ruby
marcdel has quit []
dangerousdave has joined #ruby
ikaros has joined #ruby
keen__ has joined #ruby
asmodlol has joined #ruby
elaptics`away is now known as elaptics
havenwood has quit [Ping timeout: 245 seconds]
keen_ has quit [Ping timeout: 240 seconds]
troessner has quit [Ping timeout: 245 seconds]
Jonah11_ has quit [Ping timeout: 265 seconds]
TMM has joined #ruby
Aryasam has joined #ruby
mbuf has joined #ruby
thumpba has quit [Ping timeout: 260 seconds]
mneorr has quit [Ping timeout: 245 seconds]
<mbuf> how do I convert an decimal value of 151 into \x97 in Ruby?
BraddPitt has joined #ruby
<ocx> can i have a cronjob in ruby run every second?
<tobiasvl> >> 151.to_s(16)
<eval-in> tobiasvl => "97" (https://eval.in/101139)
<tobiasvl> mbuf: like so?
<certainty> ocx: the minimum reslution of cron is a minute
bklane has quit [Quit: Leaving...]
<tangentstorm> it wouldn't really make sense to do that in cron, but you could just have a loop that slept for 1 second
<certainty> ocx: so if you want sub-minute tasks you will have to roll your own
<ocx> i need to run a script every second certainty
<mbuf> tobiasvl, I need the "\x" in front
<ocx> like a while loop with some sleep 0.1 ?
<certainty> yeah
stonevil has joined #ruby
<tobiasvl> mbuf: well then just add it? '\x' + 151.to_s(16)
<certainty> ocx: out of curiosity, why run every second?
<ocx> still fighting with this ugly old filesystem not supporting compression
<ocx> brb
<mbuf> tobiasvl, no, it then takes it as 4 bytes!
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
SteveBenner09 has quit []
DavidSilvaSmith has joined #ruby
DavidSilvaSmith has left #ruby [#ruby]
kiba` is now known as kiba
<tobiasvl> mbuf: yes, why is that a problem? this is just a way to display an integer as hex instead of decimal. ruby doesn't have its own "hex" type.
<tobiasvl> mbuf: maybe if you excplain what you want to achieve? "converting" a decimal value to hex doesn't really make sense. integers are by default displayed in decimal. you want to store it somehow?
arctaruz has left #ruby ["Leaving"]
ohwhoa has joined #ruby
<bal> Hello, can someone recommend me a good book to learn ruby ? I'm not new to programming, I have some background in php, bash
ktun has joined #ruby
<mbuf> tobiasvl, I want to convert a decimal value into Hex having a single byte
fgo has quit [Remote host closed the connection]
<Nilium> I really wish "expecting keyword_end" was a little more useful than "search the entire file"
ktun_ has joined #ruby
ghr has joined #ruby
Macaveli has quit [Read error: Connection reset by peer]
shabgard has joined #ruby
Kricir has joined #ruby
yacks has joined #ruby
<tobiasvl> mbuf: i realize that, but why? what do you need this for?
aryaching has joined #ruby
<tobiasvl> any ops here? g0g0 keeps querying me with spam
xue has quit [Quit: Leaving]
troessner has joined #ruby
<pipework> tobiasvl: Ignore him?
<Nilium> It's a spambot, just ignore it
alexherbo2 has joined #ruby
<tobiasvl> sure, just thought it was worth trying to let someone know
ktun has quit [Ping timeout: 272 seconds]
<yeboot> same
<yeboot> about the spam
DrForr__ is now known as DrForr
JustMozzy has joined #ruby
robbyoconnor has joined #ruby
Kricir has quit [Ping timeout: 260 seconds]
cups has joined #ruby
alexherb1 has joined #ruby
intuxicated has quit [Ping timeout: 265 seconds]
klaut has joined #ruby
cups has left #ruby [#ruby]
robbyoconnor has quit [Read error: Connection reset by peer]
alexherbo2 has quit [Ping timeout: 272 seconds]
robbyoconnor has joined #ruby
mquin has joined #ruby
<mquin> hello folks
g0g0 has quit [K-Lined]
<certainty> mbuf: you do realize that hex, dec, oct is just a representation of the same value. The amount of bytes it takes to be stored doesn't change. I assume you do interface with some binary protocol? In that case you might want to have a look at #pack
shaunbaker has joined #ruby
shaunbak_ has joined #ruby
<mbuf> certainty, I am able to do [151.to_s(16)].pack('H2') now, but, how can I insert it into a string?
rainmanjam has joined #ruby
<mbuf> certainty, I am getting incompatibility between UTF-8 and ASCII-8BIT
AlexRussia has joined #ruby
<certainty> mbuf: insert it into a string?
<certainty> what do you mean by that?
<mbuf> certainty, assign the returned value into a position in a Hex string, str = "\x12\x34\x56\x78"
mquin has left #ruby [#ruby]
<certainty> building up shellcode there?
JasmeetQA has joined #ruby
benlieb has joined #ruby
<yeboot> he left before you could answer
shaunbaker has quit [Ping timeout: 245 seconds]
<mbuf> certainty, sort of; I get \x97, and want to replace \x12 with it
shaunbak_ has quit [Client Quit]
alexherb1 has quit [Ping timeout: 272 seconds]
rainmanjam has quit [Ping timeout: 245 seconds]
Macaveli has joined #ruby
Lennier has quit [Quit: Lennier]
ledestin has quit [Remote host closed the connection]
Zunonia has quit [Quit: Computer has gone to sleep.]
Aryasam has quit [Ping timeout: 248 seconds]
lkba has quit [Ping timeout: 260 seconds]
<jlebrech> If you have a line in a controller which you know you're gonna be told to refactor into 3 lines in the model and still have to write a line to call that method. do you refactor early or wait till you're told?
<ocx> i am getting lot of errors when executing this small command in ruby, what am i missing ? http://pastebin.com/qiwCQYQ0
shaunbaker has joined #ruby
tjsousa has joined #ruby
<ocx> nvm
gja has quit [Quit: This computer has gone to sleep]
Kilo`byte has quit [Ping timeout: 260 seconds]
<certainty> mbuf: are you dealing with unicode strings? do you need to be unicode aware?
<mbuf> certainty, I think I might need to unpack. change it and pack it back
phansch has joined #ruby
aspiers has joined #ruby
ndrei has quit [Ping timeout: 245 seconds]
dx7 has joined #ruby
senayar has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
pixelgremlins has joined #ruby
juco has joined #ruby
<certainty> mbuf: yes you can unpack("U*") ... then replace the value and pack back
ndrei has joined #ruby
<certainty> the reason i was asking is because you can also work on the byte level without caring about unicode
sk87 has joined #ruby
Kilo`byte has joined #ruby
kloeri_ is now known as kloeri
wildroman2 has quit [Remote host closed the connection]
pixelgremlins_ba has quit [Ping timeout: 260 seconds]
dx7 has quit [Ping timeout: 248 seconds]
phansch_ has joined #ruby
juo_ is now known as juo
razibog has quit [Ping timeout: 248 seconds]
phansch has quit [Ping timeout: 252 seconds]
bluenemo has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
nomenkun has joined #ruby
shaunbaker has quit [Remote host closed the connection]
nomenkun has quit [Remote host closed the connection]
nomenkun has joined #ruby
mengu has quit [Remote host closed the connection]
gja has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
brennanMKE has joined #ruby
wildroman2 has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MindfulMonk has joined #ruby
thomasxie has joined #ruby
ktun_ has quit [Remote host closed the connection]
ayaz has joined #ruby
brennanMKE has quit [Ping timeout: 245 seconds]
Shidash has quit [Ping timeout: 260 seconds]
benlieb has quit [Quit: benlieb]
havenwood has joined #ruby
newton has joined #ruby
tjsousa has quit [Read error: Connection reset by peer]
sumark has quit [Read error: Operation timed out]
mneorr has joined #ruby
tjsousa has joined #ruby
sumark has joined #ruby
havenwood has quit [Ping timeout: 260 seconds]
ctp has joined #ruby
petey has joined #ruby
bigkevmcd has quit [Quit: Ex-Chat]
GinoMan has joined #ruby
bigkevmcd has joined #ruby
mneorr has quit [Ping timeout: 260 seconds]
ctp has quit [Client Quit]
julian_ has joined #ruby
<julian_> What are the last four numbers in the date time format?
Tamae has joined #ruby
<julian_> 1500-06-12 00:00:00 -0001
<Nilium> Can you give an example?
<julian_> what does -0001 signify? What does it meanwhen it's +0000?
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
<Nilium> Offset.
Slavox is now known as Slavox|AFK
<julian_> Nilium : So for different time zones?
petey has quit [Ping timeout: 260 seconds]
dmyers has joined #ruby
tvw has joined #ruby
Slavox|AFK is now known as Slavox
<Nilium> Pretty much.
<Nilium> Pesky things.
<jlebrech> is there a way for me to compare two hashes {a:1, b:2} and {b:2} and it return the keys that have the same value?
<julian_> haha yeah
<julian_> what's it measured in?
<julian_> miliseconds?
<oetjenj> hours
zoscoy has joined #ruby
zoscoy has quit [Client Quit]
<julian_> thanks
<julian_> !
<oetjenj> +0000 is UTC
mojjojo has joined #ruby
<jlebrech> i can use select
<tobiasvl> jlebrech: something like this? https://gist.github.com/georgkreimer/706551
<Nilium> jlebrech: Well, you can, but there's no standard specific method for it.
<julian_> oetjenji : When why do I have this offset: '1500-6-12 +0000'.to_time #=> 1500-12-21 23:59:59 -0001
<julian_> Where is that coming from?
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<julian_> oh I think I got it, you give .to_time a parameter
karupanerura is now known as zz_karupanerura
<Nilium> jlebrech: Out of curiosity, do you want keys that have the same value or key-value pairs where the key and value are the same?
speckle2 is now known as speckle
h0lyalg0rithm has joined #ruby
<Takumo> in rvm is it safe to rm -rf ~/.rvm/src/ruby* ?
<Nilium> i.e., do you only care about the value and just want to know the keys, or do you know the keys and just want to know which of them have the same value?
[gmi] has joined #ruby
Kricir has joined #ruby
phansch_ has quit [Ping timeout: 252 seconds]
Al___ has quit [Quit: Al___]
<oetjenj> julian_: to_time probably uses your local timezone when converting a string to a time object
<oetjenj> julian_: but 1500-6-12 +0000 isn't a valid time string anyways, it should be something like '1500-06-12 00:00:00 +0000'
<Nilium> jlebrech: https://gist.github.com/nilium/9ddffb5f611b2d25c931 ⇐ Basically, pick one, or none.
shaunbaker has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
Kricir has quit [Ping timeout: 252 seconds]
sk87 has joined #ruby
<oetjenj> jlebrech: from what i understand this https://gist.github.com/joetjen/8973164 is what you want, isn't it?
Al___ has joined #ruby
wildroman2 has quit [Remote host closed the connection]
<Nilium> I think he just wants to watch us dance like his little code puppets
<oetjenj> hehe ;) lucky me i never was much of a dancer
* Nilium imagines jlebrech holding up his hands like a puppeteer, waving them about while shouting "dance!" in the shrillest voice possible
rainmanjam has joined #ruby
poulson has quit [Ping timeout: 260 seconds]
<Nilium> Anyway, his problem's pretty easy to solve one way or the other using set operations
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Collin has joined #ruby
rainmanjam has quit [Remote host closed the connection]
rainmanjam has joined #ruby
nari has joined #ruby
mengu has quit [Ping timeout: 245 seconds]
<jlebrech> yes thanks
mikecmpbll has quit [Quit: ciao.]
poulson has joined #ruby
mikecmpbll has joined #ruby
kate_r has joined #ruby
slowcon has quit [Quit: slowcon]
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
<oetjenj> thanks for making us dance? i'm irritated...
wildroman2 has joined #ruby
rainmanjam has quit [Ping timeout: 264 seconds]
phansch has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
sensen has quit [Ping timeout: 260 seconds]
stonevil has quit [Quit: Computer has gone to sleep.]
h0lyalg0rithm has quit [Quit: Textual IRC Client: www.textualapp.com]
marcgg_ has joined #ruby
carif has joined #ruby
vlad_starkov has joined #ruby
Speed has joined #ruby
raphaelivan has joined #ruby
top4o has quit [Quit: ChatZilla 0.9.90.1 [Firefox 27.0/20140127194636]]
gbt has joined #ruby
makara has quit [Ping timeout: 272 seconds]
marcgg has quit [Ping timeout: 260 seconds]
Collin has quit []
ocx has quit [Ping timeout: 245 seconds]
shredding has joined #ruby
wildroman2 has quit [Remote host closed the connection]
omegahm is now known as omegahm^
vlad_starkov has quit [Ping timeout: 245 seconds]
gja has quit [Quit: This computer has gone to sleep]
vlad_starkov has joined #ruby
yfeldblum has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
aryaching has quit [Ping timeout: 272 seconds]
erichmenge has quit [Ping timeout: 248 seconds]
LekeFly has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
mbuf has quit [Quit: Leaving]
sparrovv has joined #ruby
axsuul has joined #ruby
troessner has quit [Ping timeout: 248 seconds]
pedda has joined #ruby
sdwrage has quit [Ping timeout: 248 seconds]
axsuul has quit [Max SendQ exceeded]
havenwood has joined #ruby
erichmenge has joined #ruby
DouweM has joined #ruby
dkamioka has quit [Remote host closed the connection]
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
jlebrech has quit [Remote host closed the connection]
phansch has quit [Ping timeout: 252 seconds]
depesz has left #ruby ["WeeChat 0.4.2"]
jlebrech has joined #ruby
wildroman2 has joined #ruby
mneorr has joined #ruby
vadviktor has quit [Read error: Connection reset by peer]
sdwrage has joined #ruby
vadviktor has joined #ruby
axsuul has joined #ruby
res0nat0r has quit [Read error: Connection reset by peer]
popl has quit [Ping timeout: 260 seconds]
havenwood has quit [Ping timeout: 272 seconds]
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
Lewix has quit [Remote host closed the connection]
mneorr has quit [Ping timeout: 245 seconds]
cantonic has joined #ruby
aryaching has joined #ruby
phansch has joined #ruby
stonevil has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
troessner has joined #ruby
OdNairy has quit [Ping timeout: 260 seconds]
shaunbaker has quit [Remote host closed the connection]
DaniG2k has joined #ruby
OdNairy has joined #ruby
yacks has quit [Ping timeout: 260 seconds]
rootshift_ has joined #ruby
Kricir has joined #ruby
OdNairy has quit [Ping timeout: 260 seconds]
starfox21 has quit [Quit: starfox21]
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
krisbulman has quit [Ping timeout: 265 seconds]
aryaching has quit [Ping timeout: 252 seconds]
LiohAu has joined #ruby
LBRapid has quit [Ping timeout: 246 seconds]
browndawg has quit [Quit: Leaving.]
<LiohAu> is there a difference between ["key"=>"value"], ["key":"value"], [:key => "value"] ?
DarkFoxDK has quit [Ping timeout: 264 seconds]
<tobiasvl> LiohAu: do you mean {} instead of []?
<LiohAu> yes sry
Kricir has quit [Ping timeout: 260 seconds]
mhenrixon is now known as mhenrixon|afk
<tobiasvl> >> {"key":"value"}
<eval-in> tobiasvl => /tmp/execpad-8667ef66b15a/source-8667ef66b15a:2: syntax error, unexpected ':', expecting => ... (https://eval.in/101153)
<tobiasvl> >> {key:"value"}
<eval-in> tobiasvl => {:key=>"value"} (https://eval.in/101154)
nuba has quit [Ping timeout: 264 seconds]
<tobiasvl> LiohAu: the first syntax means "key" is a string key. the second syntax is a shorthand for the last syntax, where the key is a symbol, but it doesn't make sense to have it in quotes
<LiohAu> >> query("collectionView", [{scrollToItemAtIndexPath:[{"indexPathForItem":10},{"inSection":1}],as:"NSIndexPath"},{atScrollPosition:"0"},{animated:"1"}])
<eval-in> LiohAu => /tmp/execpad-9257872a1c29/source-9257872a1c29:2: syntax error, unexpected ':', expecting => ... (https://eval.in/101155)
justinmcp has quit [Ping timeout: 265 seconds]
<tobiasvl> ok okay, so it might make sense after all
<tobiasvl> anyway, a string key is not the same as a symbol key
shredding has quit [Read error: Connection reset by peer]
<tobiasvl> {key: "value"} is sugar for {:key => "value"}
Nightmare has quit [Ping timeout: 265 seconds]
[krisbulman] has joined #ruby
<tobiasvl> not {"key" => "value"}
<DouweM> LiohAu: that code doesn't look right to me
DarkFoxDK has joined #ruby
[krisbulman] is now known as krisbulman
crus has quit [Ping timeout: 252 seconds]
<tobiasvl> yeah, the code gives a syntax error too
LBRapid has joined #ruby
<tobiasvl> LiohAu: if you want a string as a key, you can't use the {"key":"value"} syntax, you need the => arrow
sparrovv has quit [Remote host closed the connection]
<DouweM> LiohAu: I don't know what the query method does, but I recognize those UIKit libraries
wchun has joined #ruby
Nightmare has joined #ruby
<LiohAu> well it seems that the appropriate syntax is like that : query("collectionView", [{scrollToItemAtIndexPath:[{indexPathForItem:0},{inSection:0}],as:"NSIndexPath"},{atScrollPosition:0},{animated:1}])
<tobiasvl> that seems better
shredding has joined #ruby
<tobiasvl> with symbols as keys
<DouweM> LiohAu: what's that query method? That looks like valid ruby, but it still doesn't look like anything I've ever seen with UIKit or RubyMotion
atmosx has joined #ruby
<LiohAu> DouweM: yes, i'm using calabash-cucumber (a gem library) that is used to run cucumber automated tests on iOS / Android applications
<LiohAu> the query method talks to an HTTP server embedded in the app, that will map the query to the appropriate apple frameworks methods
rainmanjam has joined #ruby
aryaching has joined #ruby
nuba has joined #ruby
omegahm^ is now known as omegahm
<DouweM> interesting
Patchou has joined #ruby
yacks has joined #ruby
Tamae has quit [Ping timeout: 245 seconds]
dblessing has joined #ruby
rainmanjam has quit [Ping timeout: 248 seconds]
tkuchiki has quit [Remote host closed the connection]
jzig has joined #ruby
rootshift_ has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
tkuchiki has joined #ruby
lkba has joined #ruby
srji has quit [Quit: leaving]
srji has joined #ruby
sambao21 has joined #ruby
WillAmes has joined #ruby
GinoMan has quit [Remote host closed the connection]
jzig has quit [Ping timeout: 248 seconds]
aryaching has quit [Ping timeout: 272 seconds]
tymat has joined #ruby
tkuchiki has quit [Ping timeout: 252 seconds]
tymat has quit [Client Quit]
carif has quit [Ping timeout: 265 seconds]
toddabrahm has joined #ruby
heftig has quit [Quit: Quitting]
ndrei has quit [Ping timeout: 260 seconds]
sambao21 has quit [Ping timeout: 260 seconds]
shredding has quit [Quit: shredding]
ndrei has joined #ruby
rootshift_ has joined #ruby
stonevil has quit [Quit: Computer has gone to sleep.]
heftig has joined #ruby
OdNairy has joined #ruby
Speed has quit [Ping timeout: 260 seconds]
stonevil has joined #ruby
i_s has joined #ruby
i_s has quit [Read error: Connection reset by peer]
tharindu has quit [Quit: Leaving...]
aryaching has joined #ruby
dorei has joined #ruby
yfeldblum has joined #ruby
greenarrow has quit [Quit: 500]
blackmesa has quit [Ping timeout: 240 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
brennanMKE has joined #ruby
danshult_ has quit [Remote host closed the connection]
danshultz has joined #ruby
litone_ has joined #ruby
atmosx has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Speed has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
dubsteph has joined #ruby
brennanMKE has quit [Ping timeout: 252 seconds]
justinmcp has joined #ruby
xjiujiu has joined #ruby
sergicles has joined #ruby
banister has joined #ruby
aryaching has quit [Ping timeout: 272 seconds]
danshultz has quit [Ping timeout: 252 seconds]
havenwood has joined #ruby
banister has quit [Client Quit]
greenarrow has joined #ruby
dangerousdave has quit []
mneorr has joined #ruby
ndrei has quit [Ping timeout: 245 seconds]
havenwood has quit [Ping timeout: 245 seconds]
sdwrage has quit [Read error: Connection reset by peer]
petey has joined #ruby
ndrei has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
jprovazn has quit [Quit: Leaving]
sdwrage has joined #ruby
nhhagen has joined #ruby
pierre1_ has joined #ruby
mneorr has quit [Ping timeout: 264 seconds]
workmad3 is now known as wm3|lunch
itadder has joined #ruby
<itadder> hi
<itadder> what are short abberviated variables used for?
<tobiasvl> itadder: what do you mean?
phansch has quit [Ping timeout: 252 seconds]
<itadder> “x = "There are #{10} types of people.”
<tobiasvl> you can use them for anything, the name of the variable doesn't matter
petey has quit [Ping timeout: 260 seconds]
<tobiasvl> but short variable names like that are often used for throwaway values
angusiguess has joined #ruby
<tobiasvl> that are only going to be used once (like in a loop of some sort)
krz has quit [Quit: WeeChat 0.4.2]
rd7 has joined #ruby
stonevil has quit [Quit: Computer has gone to sleep.]
phansch has joined #ruby
<itadder> for local not global
<itadder> this book sucks
<itadder> I paid 3.00 dollars
<tobiasvl> hmmmm?
<itadder> learning ruby the hard way
<itadder> it just confusing
<itadder> I have yet to find something I like
<itadder> oh shit I am late
<tobiasvl> never read that book, but yes, throwaway variables like that are "local" variables that exist in a limited scope
<tobiasvl> they often don't need descriptive names
<tobiasvl> but that's up to you
<tobiasvl> it's just a convention that some people might follow (i usually use pretty descriptive variable names all over, and i might abbreviate some but i never use just "x")
aryaching has joined #ruby
banister has joined #ruby
<itadder> “x = "There are #{10} types of people.”
<itadder> why #{10}
BRMatt_ has joined #ruby
<itadder> a string can't have digits
<tobiasvl> yes it can
<tobiasvl> that's a stupid example of string interpolation
ballPointPenguin has quit [Read error: Connection reset by peer]
BRMatt has quit [Ping timeout: 265 seconds]
rhys has quit [Quit: No Ping reply in 180 seconds.]
mordocai has quit [Remote host closed the connection]
flowerhack has quit [Ping timeout: 265 seconds]
viki has quit [Ping timeout: 265 seconds]
ConstantineXVI has quit [Ping timeout: 265 seconds]
BRMatt_ is now known as BRMatt
ballPointPenguin has joined #ruby
rhys has joined #ruby
<tobiasvl> you can put any ruby code inside that #{}
mordocai has joined #ruby
stonevil has joined #ruby
kapowaz has quit [Ping timeout: 265 seconds]
mattmcclure has quit [Ping timeout: 265 seconds]
wildharvest__ has quit [Ping timeout: 265 seconds]
tommyvyo has quit [Ping timeout: 265 seconds]
artgoeshere has quit [Ping timeout: 265 seconds]
Bira has joined #ruby
<tobiasvl> >> "There are #{9.succ} types of people."
<eval-in> tobiasvl => "There are 10 types of people." (https://eval.in/101162)
<itadder> so it can be something like 2+2
<tobiasvl> yes
davorb has quit [Ping timeout: 265 seconds]
DrewRWx has quit [Ping timeout: 265 seconds]
epochwolf has quit [Ping timeout: 265 seconds]
Xuisce has quit [Quit: Adios]
<itadder> ahh
<tobiasvl> >> number_of_people = 10; "There are #{number_of_people} types of people."
<eval-in> tobiasvl => "There are 10 types of people." (https://eval.in/101163)
<itadder> your example rocks
popl has quit [Quit: Touch the frog.]
<itadder> hav eyou written a book
<tobiasvl> haha. no.
ConstantineXVI has joined #ruby
Xuisce has joined #ruby
aryaching_ has joined #ruby
viki has joined #ruby
davorb has joined #ruby
wildharvest__ has joined #ruby
mattmcclure has joined #ruby
flowerhack has joined #ruby
kapowaz has joined #ruby
browndawg has joined #ruby
phansch has quit [Ping timeout: 252 seconds]
DrewRWx has joined #ruby
epochwolf has joined #ruby
marcgg has joined #ruby
tommyvyo has joined #ruby
phansch has joined #ruby
Kricir has joined #ruby
artgoeshere has joined #ruby
<itadder> I have yet to find something to teach me ruby in a way I can follow
yacks has quit [Ping timeout: 245 seconds]
<itadder> I will get rails agile web development this friday maybe
rd7 has quit [Quit: WeeChat 0.4.1]
mark_locklear has joined #ruby
aryaching has quit [Ping timeout: 264 seconds]
<jmaister> >> "There are #{0b10} types of people"
<eval-in> jmaister => "There are 2 types of people" (https://eval.in/101165)
<jmaister> ftfy
<itadder> hahaha
marcgg_ has quit [Ping timeout: 260 seconds]
tjsousa has quit [Quit: Computer has gone to sleep.]
dx7 has joined #ruby
Kricir has quit [Ping timeout: 264 seconds]
phansch has quit [Ping timeout: 252 seconds]
batman___ has quit [Ping timeout: 272 seconds]
<certainty> isn't "learn ruby the hard way" written by zed shaw? I had expected it to be a didactic master piece or something, given the ramblings he used to make about bad books on programming
AlSquirrel has joined #ruby
<certainty> i never read it so i can't judge
blackmesa has joined #ruby
<itadder> he good
<itadder> I thnk I need to give it a second try
<itadder> but the basic parts
<itadder> I think I need to be open minded about this and yes zed shaw is great
<itadder> for 3.00 dollars that darn cheap
<banister> certainty it's just a port of "learn python the hard way"
<itadder> ibooks on the mac makes it hard to copy code
<itadder> example
<itadder> yea
<itadder> it was ported by someone else
<itadder> I forget the name
zoscoy has joined #ruby
zoscoy has quit [Client Quit]
jprovazn has joined #ruby
<itadder> let me open minded about it
danshultz has joined #ruby
<itadder> let me be
rainmanjam has joined #ruby
<itadder> bbl
JustMozzy has quit [Remote host closed the connection]
<certainty> banister: i see. I never read that either. Is it good? I mean didactically?
<banister> certainty it's meant to be
<banister> so it probably is ;)
<certainty> alright then
blackmesa has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby
ayaz has quit [Remote host closed the connection]
<certainty> "the little schemer" is a good in that regard. I've yet to find an equivalent for other languges
<certainty> and the sequel "the seasoned schemer"
ahawkins has joined #ruby
rainmanjam has quit [Ping timeout: 252 seconds]
<dorei> i wish i was not allergic to parentheses
spider-mario has joined #ruby
<certainty> dorei: as with every allergy you can overcome it by exposing your self to a little dosis but continuously
jzig has joined #ruby
<certainty> a little parens, a little jelly sandwhich
<dorei> lol
Paradox has quit [Ping timeout: 265 seconds]
agjacome has joined #ruby
aaronmcadam has joined #ruby
VTLob has joined #ruby
tangentstorm has left #ruby ["WeeChat 0.3.2"]
stryek has joined #ruby
bkparso has joined #ruby
JasmeetQA has quit [Ping timeout: 245 seconds]
JasmeetQA has joined #ruby
jzig has quit [Ping timeout: 248 seconds]
shredding has joined #ruby
itadder has quit [Remote host closed the connection]
Jb___ has quit [Read error: Operation timed out]
Jb has joined #ruby
lemonsparrow has quit [Ping timeout: 245 seconds]
tedstriker has joined #ruby
Xeago has quit [Ping timeout: 260 seconds]
Xeago has joined #ruby
maximski has joined #ruby
Guest27307 has quit [Changing host]
Guest27307 has joined #ruby
Guest27307 is now known as deepy
krz has joined #ruby
tjsousa has joined #ruby
yfeldblum has joined #ruby
brennanMKE has joined #ruby
asmodlol has quit [Read error: Connection reset by peer]
destructure has quit [Ping timeout: 252 seconds]
nhhagen has quit [Remote host closed the connection]
rootshift_ has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
yfeldblum has quit [Ping timeout: 265 seconds]
dx7 has quit [Remote host closed the connection]
brennanMKE has quit [Ping timeout: 252 seconds]
kitak has joined #ruby
dx7 has joined #ruby
havenwood has joined #ruby
krz has quit [Ping timeout: 264 seconds]
mneorr has joined #ruby
dx7 has quit [Ping timeout: 260 seconds]
krz has joined #ruby
phansch has joined #ruby
havenwood has quit [Ping timeout: 260 seconds]
dmarr has quit [Ping timeout: 265 seconds]
dmarr has joined #ruby
nhhagen has joined #ruby
tjsousa has quit [Ping timeout: 252 seconds]
mneorr has quit [Ping timeout: 245 seconds]
yacks has joined #ruby
stonevil has quit [Quit: Computer has gone to sleep.]
rmorello has joined #ruby
mlpinit has joined #ruby
DaniG2k has quit [Quit: leaving]
bogeyd6 has joined #ruby
TMM has quit [Ping timeout: 272 seconds]
ffranz has joined #ruby
cjsarette has quit [Ping timeout: 245 seconds]
ndrei has quit [Ping timeout: 260 seconds]
blaxter_ has quit [Quit: foo]
blaxter_ has joined #ruby
dx7 has joined #ruby
Blue_Ice has quit [Ping timeout: 245 seconds]
TMM has joined #ruby
ndrei has joined #ruby
cjsarette has joined #ruby
Blue_Ice has joined #ruby
rippa has joined #ruby
jaxxstorm has quit [Ping timeout: 245 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaxxstorm has joined #ruby
s2013 has joined #ruby
sambao21 has joined #ruby
Wolland has joined #ruby
JasmeetQA has quit [Quit: Leaving.]
banister has joined #ruby
Noldorin has joined #ruby
angusiguess has quit [Ping timeout: 252 seconds]
wallerdev has joined #ruby
vpretzel has joined #ruby
cppking_ has joined #ruby
<cppking_> hello guys
sambao21 has quit [Ping timeout: 252 seconds]
mojjojo has quit [Quit: mojjojo]
jsilver has quit [Read error: Connection reset by peer]
jsilver has joined #ruby
maZtah has joined #ruby
shaunbaker has joined #ruby
aryaching_ has quit []
<cppking_> i need a very good handbook of ruby ,what do you recommand
tedstriker has quit [Ping timeout: 252 seconds]
jkamenik has joined #ruby
rainmanjam has joined #ruby
v0n has joined #ruby
Speed has quit [Ping timeout: 260 seconds]
IceD^ has joined #ruby
<IceD^> hey all. I need to resolve gem dependecies w/o having gem locally (rubygems API or whatever). any ideas?
PLejeck has joined #ruby
tjsousa has joined #ruby
shaunbaker has quit [Remote host closed the connection]
<IceD^> for installed gem it's simple: Gem::Specification.find_by_name(name, version).runtime_dependencies
rainmanjam has quit [Ping timeout: 260 seconds]
sailias has joined #ruby
thumpba has joined #ruby
alex88 has joined #ruby
s2013 has quit [Remote host closed the connection]
<alex88> having to compare an user attribute this way "if current_user.last_visit < Time.now - 5.minutes" is there a shorter way than checking if last_visit is nil and then checking if it's smaller?
f3ttX] has joined #ruby
<IceD^> alex88: current_user.proper_last_visit
mojjojo has joined #ruby
burlyscudd has joined #ruby
tjsousa has quit [Ping timeout: 252 seconds]
jzig has joined #ruby
<alex88> IceD^: ?
Xeago has quit [Remote host closed the connection]
kitak has quit [Remote host closed the connection]
havenwood has joined #ruby
nszceta has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
securitycrush has joined #ruby
_mtr has joined #ruby
_mtr has quit [Max SendQ exceeded]
anshin has joined #ruby
_mtr has joined #ruby
anshin has quit [Client Quit]
<IceD^> alex88: define helper method and forget about it
Bira has quit [Remote host closed the connection]
<alex88> IceD^: kk gotcha ;) thanks!
anshin has joined #ruby
stonevil has joined #ruby
jzig has quit [Ping timeout: 252 seconds]
garndt has quit [Ping timeout: 245 seconds]
thumpba has quit [Ping timeout: 245 seconds]
stonevil has quit [Client Quit]
Monk_code has quit []
mlpinit has quit [Remote host closed the connection]
andrewdublin has joined #ruby
mlpinit has joined #ruby
iMe is now known as iMe_away
anshin has quit [Client Quit]
ndrei has quit [Ping timeout: 248 seconds]
anshin has joined #ruby
wm3|lunch is now known as workmad3
LeMike has joined #ruby
breakingthings has joined #ruby
jerius has joined #ruby
gr33n7007h has joined #ruby
<LeMike> Hello. I am writing a class and want to test it. How can I do a require when ruby doesn't already know that it's there?
michael_lee has quit [Quit: Ex-Chat]
garndt has joined #ruby
mlpinit_ has joined #ruby
zachallett has joined #ruby
msmith_ has joined #ruby
jlast has joined #ruby
johnmilton has joined #ruby
tjsousa has joined #ruby
<LeMike> oh. `require_relative` got it ^^
<dorei> LeMike: require searches $: to find what you want to require
mlpinit has quit [Read error: Connection reset by peer]
davedev24 has joined #ruby
vlad_starkov has joined #ruby
cppking_ has quit [Quit: Page closed]
<LeMike> i am totaly new to ruby. trying it out by writing a helper for git
agjacome has quit [Ping timeout: 248 seconds]
tharindu has joined #ruby
<dorei> nop, require doesnt exactly searches $: to find what you want to require :S i think i need to read more
tharindu_ has joined #ruby
ndrei has joined #ruby
<workmad3> dorei: it does search $:... what did you do that makes you think it's doing something else?
_mtr has quit [Quit: Textual IRC Client: www.textualapp.com]
angusigu1ss has joined #ruby
<dorei> workmad3: well, it appends to $: if it cant be found there but is found into the installed gems
<LeMike> Well I do `require_relative '../lib/git-recap.rb'` to test it dorei - as long as it's no gem.
<workmad3> dorei: oh right yeah... rubygems overrides 'require' to activate gems if the file isn't found
<workmad3> dorei: I'd forgotten about that :)
s2013 has joined #ruby
soulcake has quit [Read error: Connection reset by peer]
soulcake has joined #ruby
yalue has joined #ruby
tonni has quit [Remote host closed the connection]
tharindu has quit [Ping timeout: 272 seconds]
yasushi has joined #ruby
gr33n7007h has quit [Read error: Connection reset by peer]
tonni has joined #ruby
chrisramon has joined #ruby
angusigu1ss has quit [Ping timeout: 264 seconds]
mikee has quit [Ping timeout: 246 seconds]
mikee has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
Bira has joined #ruby
momomomomo has joined #ruby
lfox has joined #ruby
f3ttX] has quit [Ping timeout: 252 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<LeMike> after using php for years, ruby looks like a descriptive language xD
tonni has quit [Ping timeout: 248 seconds]
<IceD^> damn, rubygems (and bundler) == loads of crap
Noldorin has quit []
joshu_ has joined #ruby
Noldorin has joined #ruby
raphaelivan has quit [Quit: Leaving.]
shaunbaker has joined #ruby
sailias has quit [Quit: Leaving.]
browndawg has quit [Ping timeout: 248 seconds]
<alex88> LeMike: you're not alone :D
mneorr has joined #ruby
joshu has quit [Ping timeout: 264 seconds]
briankim has joined #ruby
TryX has joined #ruby
sailias has joined #ruby
Zai00 has joined #ruby
mojjojo has quit [Quit: mojjojo]
s2013 has quit [Ping timeout: 245 seconds]
joshu has joined #ruby
chrisramon has quit [Quit: chrisramon]
joshu has quit [Max SendQ exceeded]
noop has quit [Ping timeout: 272 seconds]
joshu has joined #ruby
vlad_starkov has joined #ruby
ahawkins has quit [Ping timeout: 251 seconds]
mneorr has quit [Ping timeout: 245 seconds]
litone_ has quit [Read error: Operation timed out]
pu22l3r_ has quit [Remote host closed the connection]
sdwrage has quit [Quit: This computer has gone to sleep]
cout_ is now known as cout
litone_ has joined #ruby
tharindu_ has quit [Quit: Leaving...]
soulcake has quit [Quit: ZNC - http://znc.in]
pu22l3r has joined #ruby
Megtastique has joined #ruby
joshu_ has quit [Ping timeout: 264 seconds]
sambao21 has joined #ruby
soulcake has joined #ruby
TryX has quit [Remote host closed the connection]
yarou has joined #ruby
vlad_starkov has quit [Ping timeout: 260 seconds]
dkamioka has joined #ruby
mansi has joined #ruby
greenarrow has quit [Quit: 500]
shabgrd has joined #ruby
shabgrd has quit [Changing host]
shabgrd has joined #ruby
Es0teric has joined #ruby
xjiujiu has quit [Ping timeout: 252 seconds]
failshell has joined #ruby
joshu_ has joined #ruby
joshu_ has quit [Max SendQ exceeded]
kaldrenon has joined #ruby
failshell has quit [Remote host closed the connection]
shabgard has quit [Ping timeout: 245 seconds]
joshu_ has joined #ruby
failshell has joined #ruby
browndawg has joined #ruby
momomomomo has quit [Quit: momomomomo]
someperson has joined #ruby
Kricir has joined #ruby
<LeMike> damn it. when i do a `system(*command)` then on shell i need to abort every single call before getting out of the ruby script. is there a way to have the usual ctrl+c again?
joshu has quit [Ping timeout: 264 seconds]
tedstriker has joined #ruby
fiestaa has joined #ruby
rudisimo has joined #ruby
dkamioka has quit [Ping timeout: 252 seconds]
dik_dak has joined #ruby
allaire has joined #ruby
wallerdev has quit [Quit: wallerdev]
hobodave has quit [Quit: Computer has gone to sleep.]
Kricir has quit [Remote host closed the connection]
v0n has quit [Ping timeout: 252 seconds]
allaire has left #ruby [#ruby]
Kricir has joined #ruby
Speed has joined #ruby
brennanMKE has joined #ruby
davedev24 has quit []
Mon_Ouie has quit [Ping timeout: 264 seconds]
kaldrenon has quit [Remote host closed the connection]
Czupa has joined #ruby
ddv has joined #ruby
tharindu has joined #ruby
rainmanjam has joined #ruby
thomasxie has quit [Quit: Leaving.]
tjr9898 has joined #ruby
brennanMKE has quit [Remote host closed the connection]
brennanMKE has joined #ruby
nateberkopec has joined #ruby
<LeMike> isn't optparse in the stdlib??
s2013 has joined #ruby
petey has joined #ruby
enebo has joined #ruby
MindfulMonk has quit [Quit: Leaving]
rainmanjam has quit [Ping timeout: 264 seconds]
stonevil has joined #ruby
Davey has joined #ruby
araujo has joined #ruby
vlad_starkov has joined #ruby
dmyers has quit [Ping timeout: 272 seconds]
aaronmcadam has quit [Quit: Leaving...]
freezey has joined #ruby
Macaveli has quit [Ping timeout: 272 seconds]
shabgrd has quit [Quit: Aji maji la taraji]
PLejeck has quit [Ping timeout: 245 seconds]
Xiti has quit [Quit: Leaving]
<Schmidt> LeMike: have you tried 'require optparse' in irb?
PLejeck has joined #ruby
ktun has joined #ruby
greenarrow has joined #ruby
acoyfellow has joined #ruby
bean has joined #ruby
<LeMike> yee. it's like this https://gist.github.com/sourcerer-mike/8976874 ... and yes i need a better IDE ^^
f3ttX] has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
tonni has joined #ruby
<LeMike> omgwtfbbq... it's a typo Schmidt -.- sorry
gengis has joined #ruby
blackmesa has joined #ruby
kaldrenon has joined #ruby
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xeago has joined #ruby
shredding has quit [Quit: shredding]
<havenwood> LeMike: Might want to replace optparse with a nicer gem like slop, trollup or cocaine.
s2013 has quit [Ping timeout: 248 seconds]
papito has joined #ruby
freezey has quit [Remote host closed the connection]
<Senjai> workmad3: really?
vim_shim has joined #ruby
<Senjai> I didn't know that
<Tachoh> i've heard ruby is a hard language to maintain
angusigu1ss has joined #ruby
<Schmidt> LeMike: shit happens :)
<Tachoh> is there any truth in that?
<workmad3> Senjai: sorry... context?
burlyscudd has quit [Quit: Leaving.]
<havenwood> Tachoh: For the maintainers of the Ruby language or for maintaining a Ruby app or library?
burlyscudd has joined #ruby
<Senjai> LeMike: You should never use require_relative for starters ;)
Noldorin has quit []
petey has quit [Remote host closed the connection]
<Senjai> workmad3: Rubygems override on require
<Tachoh> maintaining a ruby app
Xeago has quit [Ping timeout: 246 seconds]
<LeMike> i know Senjai . it's just for local devlopment till it becomes a gem
<havenwood> Tachoh: Specifically Rails or Sinatra, or in general?
<Schmidt> hard in comparison to what ?
Noldorin has joined #ruby
petey has joined #ruby
freezey has joined #ruby
<Tachoh> havenwood: in general. rails wasn't mentioned.
<Tachoh> specifically moving ruby code to another version of ruby was
yfeldblum has joined #ruby
v0n has joined #ruby
<havenwood> Tachoh: A lot of nice tooling in Ruby to assist with app dependencies, etc. I think a decent argument to be had that getting an app setup in Ruby is currently a pain (that is being worked on on several fronts).
<havenwood> Tachoh: Ahh, moving from the ancient Ruby 1.8 to 1.9+ was historically a pain, yes.
Hiall has joined #ruby
<havenwood> Tachoh: But Ruby 1.8 is past End-Of-Life and moving from 1.9 to 2.0, or 2.0 to 2.1 is relatively painless.
<Tachoh> so it's getting better
<havenwood> Tachoh: way better
<certainty> which doesn't mean that ruby 1.8 wont be there for a long time
tagrudev has quit [Remote host closed the connection]
mojjojo has joined #ruby
<havenwood> certainty: Dead to me, I tell you!! LONG LIVE RUBY 2.1!!
<certainty> it is dead. but nevertheless we will have living dead walking all over the system
<certainty> systems
<havenwood> certainty: Soo nice that Ruby doesn't have a Python 3 problem. The 2.0 adoption was rapid. :D
angusigu1ss has quit [Ping timeout: 252 seconds]
<havenwood> certainty: Always gunna be stragglers.
mengu has quit [Remote host closed the connection]
<certainty> havenwood: i don't know about the problems python has. I'm glad though that gentoo provides slot so that i can upgrade when i feel like it
<Tachoh> havenwood: i've been programming C for years and years. looking to learn a new language and i have been lured in by ruby's handling of OO. trying to research the pros and cons of spending months/years of my life with ruby. so far things look good though.
<havenwood> Tachoh: <3 Ruby
petey has quit [Ping timeout: 264 seconds]
<DouweM> <3 Ruby
jzig has joined #ruby
tonni has quit [Read error: Connection reset by peer]
lpvn has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
b00stfr3ak has joined #ruby
<certainty> Tachoh: it's a rewarding language. I like it. I would not stop with ruby though
<Tachoh> i heard a possible downside to ruby is that it will consume your soul and turn you into a husk that only thinks about ruby all day every day.
sree has joined #ruby
<certainty> Tachoh: not true
Hanmac has joined #ruby
Ch4rAss` has quit [Ping timeout: 272 seconds]
<havenwood> Tachoh: Other way around. Your soul will consume Ruby until it develops strong predilections for things lispy and functional.
gr33n7007h has joined #ruby
mojjojo has quit [Quit: mojjojo]
yarou has quit [Remote host closed the connection]
tedstriker has quit [Read error: Connection reset by peer]
<Tachoh> is ruby good at handling every day scripting tasks the way something like perl or python might be? i know, based on my experience, ruby is generally harder to setup.
yarou has joined #ruby
LekeFly has joined #ruby
black0ut has joined #ruby
<certainty> Tachoh: it definitely is. We use ruby as our primary language for sysop stuff
<havenwood> Tachoh: It is one of the top choices for devops (see puppet and chef in particular). Nowadays it is pretty common to see a stable Ruby available by default (more and more the case).
<Tachoh> very cool
<havenwood> Tachoh: And there are good tools to install Ruby if you're on an old system or one of the distros that doesn't have a package for latest stable.
<DouweM> yup, it's great for sysop scripts
Sawbones has joined #ruby
Speed has quit [Ping timeout: 260 seconds]
francisfish has joined #ruby
<havenwood> Tachoh: When packaged Ruby doesn't cut it, I prefer ruby-install/chruby but there is also rvm or ruby-build/rbenv.
phansch has quit [Ping timeout: 252 seconds]
mojjojo has joined #ruby
pwh_ has quit [Ping timeout: 272 seconds]
heftig has quit [Quit: Quitting]
<Tachoh> my distro of choice (arch linux) has packages for 2.1, so that's not so much an issue for me.
mneorr has joined #ruby
sree has quit [Remote host closed the connection]
<havenwood> Tachoh: Arch always stays on top of latest Ruby! :)
s2013 has joined #ruby
wallerdev has joined #ruby
TigerWolf has quit [Ping timeout: 265 seconds]
fiestaa has quit [K-Lined]
<certainty> rolling release baby
pwh has joined #ruby
angusigu1ss has joined #ruby
brennanMKE has quit [Ping timeout: 264 seconds]
<havenwood> Tachoh: If you decide you want to switch between Rubies, ruby-install will use your package manager to install deps, and chruby is included in the AUR.
lfox has quit [Remote host closed the connection]
lfox has joined #ruby
waxjar has quit [Ping timeout: 265 seconds]
freezey has quit [Remote host closed the connection]
<havenwood> Tachoh: But yeah arch system Ruby is probably all you need!
<Tachoh> also does ruby have any wars going on? :) i know in the C world we're always doing battle with java devs.
<Tachoh> prob ruby vs python i think
<Sawbones> Usually python vs ruby
<DouweM> mostly with python, yeah
<Sawbones> but lately I've seen a lot of Node.js vs Ruby
shaunbaker has quit [Remote host closed the connection]
<DouweM> nodejs likes to call us names too
<Tachoh> lol
shaunbaker has joined #ruby
sree has joined #ruby
peterhu has quit [Ping timeout: 265 seconds]
<Sawbones> Node.js is really nice, but it's ugly and a lot of the web frameworks out there for it just don't feel ready
mneorr has quit [Ping timeout: 245 seconds]
<certainty> Tachoh: ruby is about peace
peterhu has joined #ruby
<DouweM> I don't really mind JS, but I *like* Ruby
tonni has joined #ruby
<dorei> node.js is just a silly attempt to remove the role of the web administrator
freezey has joined #ruby
<havenwood> Node guys haven't seemed to yet realize that everyone else has evented io and that they didn't create their VM they scavenged a web browser's. I think Node.js is an elaborate troll.
<havenwood> Just a hunch.
<havenwood> :P
LadyRainicorn has joined #ruby
angusigu1ss has quit [Ping timeout: 252 seconds]
<Sawbones> havenwood: It it's defense the V8 engine is pretty fast
kaldrenon has quit [Remote host closed the connection]
<Sawbones> In*
<havenwood> Sawbones: Oh, they scavenged a damn fine VM.
<Sawbones> Javascript just needs more features in the language
<havenwood> Sawbones: But it still is a browser VM, developed outside the Node team, for a web browser...
<certainty> o.O
<certainty> moar features?
<Sawbones> and look less ugly, A LOT less ugly
jobewan has joined #ruby
<certainty> less, saner, more powerful, yes
tjr9898 has quit [Remote host closed the connection]
<havenwood> Sawbones: Just needs to be put down. Kill it with fire!
waxjar has joined #ruby
deception has joined #ruby
tjr9898 has joined #ruby
<Sawbones> Hey buddy I like javascript! Sort of, but it would be pretty cool to have a ruby client side language instead
<DouweM> Sawbones: check out Opal
slowcon has joined #ruby
<DouweM> Sawbones: it's a source-to-source Ruby to JS compiler
francisfish has quit [Remote host closed the connection]
poulson has quit [Ping timeout: 248 seconds]
mojjojo has quit [Quit: mojjojo]
<dorei> what amuses me most in js is the existence of == and ===
davedev24 has joined #ruby
<havenwood> Sawbones: Opal is really neat. Also mruby can emscripten to JS. But really we won't be freed entirely from the tyranny of JS until browsers have something like nacl standardized.
<LadyRainicorn> JavaScript is ugly beyond comprehension.
marcdel has joined #ruby
<bhaak> == vs === already justifies any any_lang2js compilers
<havenwood> Sawbones: Google guys already committed nacl patch to Ruby.
fedexo has joined #ruby
rayners has joined #ruby
<lpvn> havenwood, in my opinion it doesn't matter that Node.js isn't inventing something completely new
sree has quit [Remote host closed the connection]
<LadyRainicorn> Optional arguments are probably the worst thing.
<dorei> they didn't fix == for "backward compatibility" reasons, instead they introduced ===
<dorei> xD
<havenwood> lpvn: They don't have control over their own future. I think a huge problem. Sure it is fine for hobbyist hack nights, or whatever. But do you really want to have an app you wrote now be running in JS in ten years?
<havenwood> lpvn: What do you do when there are thousands of cores and you're on a single process. I dunno, seems insane to me.
gregf has quit [Quit: WeeChat 0.4.2]
b00stfr3ak has quit [Ping timeout: 252 seconds]
gregf has joined #ruby
<LadyRainicorn> It was insane to have a high level language everyone had to agree on.
<havenwood> lpvn: But good point that it doesn't matter they are standing on the shoulders of giants. We all are.
poulson has joined #ruby
Xiti has joined #ruby
<LadyRainicorn> Just the idea of the language sucks already.
rm_ has joined #ruby
<lpvn> havenwood, my view is that javascript has its fair share of problem in its fundamentals but once you learn to avoid them it's a nice language
<havenwood> LadyRainicorn: Just a historical practicality I suppose.
<havenwood> lpvn: Stockholm syndrome!
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
<havenwood> lpvn: :P
<certainty> Tachoh: as you see we have no problem with other languages. xp
<Sawbones> lpvn: I think that's his problem, is that the language has these glaring flaws
<Tachoh> certainty: lol
<havenwood> Tachoh: Yup, totally zen. :O
<DouweM> Tachoh: we rarely bitch about Python though
<lpvn> havenwood, lol not really :P
<DouweM> Tachoh: mainly PHP and JS
<workmad3> DouweM: bleh, python :(
<LadyRainicorn> No, it would have been easieer to implement an assembly tbh.
<DouweM> workmad3: :)
wildroman2 has quit [Remote host closed the connection]
<Tachoh> python hss really dumb OO
<Tachoh> has*
francisfish has joined #ruby
<Tachoh> imo
<workmad3> Tachoh: yup, it does
<Sawbones> I don't mind python
<LadyRainicorn> It was actually harder than the correct solution.
<certainty> Tachoh: being dumb is an attribute of OO itself ... *hide*
vlad_starkov has joined #ruby
<LadyRainicorn> I think Stockholm syndrome is a pretty accurate description of anyone who has can even tolerate JS.
<certainty> LadyRainicorn: lol
<Tachoh> python reminds me of javascript in that you can do a lot of things as long as you stick to conventions
<workmad3> certainty: they also explicitly disallow TCO in the python spec
<workmad3> certainty: allowing TCO means that your interpreter is not python
<certainty> workmad3: wat? seriously?
<workmad3> certainty: seriously
<DouweM> TCO?
<certainty> insane
<lpvn> Sawbones, yeah it does but you can use a workable subset of javascript and develop good applications with it
<workmad3> DouweM: Tail Call Optimisation
<certainty> DouweM: tail call optimizaton
<certainty> workmad3: too fast
<DouweM> TL;DR?
<workmad3> DouweM: basically, something you need if you want to do anything serious with recursive function calls
<certainty> and i even spelled it wrong
black0ut has quit []
<certainty> DouweM: tail calls are replaced by jumps essentially
<DouweM> certainty: ah, that makes sense
<certainty> they don't eat up your stack
<havenwood> Tachoh: Just not as inconsistent and bad. A simpler grammar than Ruby but you lose out on the OO, stronger functional paradigm, and Lispyness.
<DouweM> why would they disallow that?
<workmad3> DouweM: because python is dumb :P
Aryasam has joined #ruby
gengis has quit [Remote host closed the connection]
<Tachoh> havenwood: i love all those things
<workmad3> (seriously, I never quite understood why)
<LadyRainicorn> It would cause subtle incompatibilities
<DouweM> well, there must be some reason for it if it's explicitly disallowed :P
geggam has joined #ruby
black0ut has joined #ruby
gengis has joined #ruby
<havenwood> Tachoh: I think it is the lack of those things that results in Python oft being taught over Ruby in higher ed. Which I personally think is a shame.
bean has quit [Remote host closed the connection]
nhhagen_ has joined #ruby
f3ttX] has quit [Ping timeout: 252 seconds]
<havenwood> Tachoh: Something to be said for simple, but it doesn't lead you on such a rich path.
<lpvn> havenwood, I find this kind of argument funny anyway because it was something used(still used sometimes) against rubysts years ago
nhhagen has quit [Read error: Operation timed out]
<lpvn> havenwood, java guy asks you: But do you really want to have an app you wrote now be running in ruby in ten years?
<lpvn> havenwood, lol
deadlock__ has quit [Read error: Operation timed out]
<certainty> workmad3: automatic detection of tail calls can be tricky. Maybe guido opted out because of that? no that doesn't explain why they forbid it
<workmad3> certainty: yeah, I can understand not implementing it
<workmad3> certainty: it's the explicitly disallowing it that I don't get :)
<certainty> yeah me neither
sree has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
<LadyRainicorn> A big difference is control.
<workmad3> 'oh, you created a python that is completely compatible, except it does TCO? NO, THAT IS NOT PYTHON!'
<havenwood> lpvn: I cringe at Node in ways I don't for other up-and-comers. I'd be comfy with Clojure, Elixir, or even Potion or Perl6. Just God help me, not Node.js.
Brolen has joined #ruby
<workmad3> LadyRainicorn: stop trying to incorporate reason into our hate-filled rants :P
<havenwood> lpvn: But touche regarding the "can't imagine in ten years," good point.
tylersmith has joined #ruby
<certainty> scheme *requires* TCO.
* certainty evangelizes
shaunbaker has quit [Remote host closed the connection]
v0n has quit [Quit: WeeChat 0.4.2]
<workmad3> certainty: you can turn it on in ruby :)
<LadyRainicorn> something something xkcd
<havenwood> lpvn: Also Ruby had control over its path. Still does. Same can be said for Java before it.
Sthebig has quit [Ping timeout: 240 seconds]
marcdel has quit []
kaldrenon has joined #ruby
sambao21 has quit [Ping timeout: 264 seconds]
<havenwood> lpvn: Maybe the Node guys will manage a way. I can only hope not. :P
<certainty> workmad3: i've seen that. over in ruby-lang someone gisted it
gengis_ has joined #ruby
gengis has quit [Ping timeout: 252 seconds]
nhhagen_ has quit [Ping timeout: 248 seconds]
oso|away is now known as oso96_2000
<havenwood> lpvn: Though I like the culture. Tiny tools. Tons of them. Lots of device hacks.
<LadyRainicorn> (basically stack traces and limited utility, as suspected)
pavilionXP has joined #ruby
<lpvn> havenwood, yeah I like the culture too
<certainty> LadyRainicorn: basically CPS isn't it?
clamstar has joined #ruby
<certainty> i've just glanced over it
<lpvn> havenwood, and the fact you can develop for backend and frontend in the same language :DD
<LadyRainicorn> Yeah
<DouweM> certainty: CPS? :)
<certainty> DouweM: continuation passing style
<certainty> DouweM: the continuation of the program is passed as a parameter to a function that it can explicitly invoke it
<DouweM> huh, interesting
mojjojo has joined #ruby
tjr9898 has quit [Ping timeout: 245 seconds]
dblessing has quit [Quit: dblessing]
<certainty> i didn't know python has language support for the current continutation. Is that what 'continue' does?
petey has joined #ruby
duggiefresh has joined #ruby
chrisseaton has joined #ruby
duggiefresh has quit [Remote host closed the connection]
<LadyRainicorn> No.
tonni has quit [Remote host closed the connection]
meatherly has joined #ruby
papito has quit [Ping timeout: 248 seconds]
<LadyRainicorn> It's a blog post explaining the reasons behind the TCO ban and a proposal to allow explicit TCO.
rm_ has quit [Read error: Connection reset by peer]
tonni has joined #ruby
shaunbaker has joined #ruby
<LadyRainicorn> Python doesn't work like that at present.
tonni has quit [Read error: Connection reset by peer]
<LadyRainicorn> (continue is next)
rm_ has joined #ruby
burlyscudd has quit [Quit: Leaving.]
<certainty> ok thanks
<certainty> python has higher order functions?
Vovko has joined #ruby
bal has quit [Quit: bal]
shredding has joined #ruby
zellio is now known as Zach_Code_Review
Zach_Code_Review is now known as zellio
pedda has quit [Quit: Textual IRC Client: www.textualapp.com]
someword has joined #ruby
<LadyRainicorn> Yes.
<certainty> then you could always optimize through trampolining
<certainty> OTOH not worth the effort for a language that provides other iteration constructs
<certainty> that is not true for Scheme. That's because it requires TCO
LeMike has quit [Quit: quietsch]
stonevil has quit [Quit: Computer has gone to sleep.]
Jonah11_ has joined #ruby
IceD^ has quit [Remote host closed the connection]
slowcon has quit [Quit: slowcon]
jonah_k_ has joined #ruby
dubsteph has quit [Ping timeout: 248 seconds]
arctaruz has joined #ruby
snath has joined #ruby
<LadyRainicorn> You can emulate TCO in a short loop if you really need it, but when do you really need it?
<certainty> not in python :)
gh has joined #ruby
arctaruz has left #ruby [#ruby]
<LadyRainicorn> Personally I would have added it, but not a big deal really.
stonevil has joined #ruby
einarj has quit [Remote host closed the connection]
Es0teric has quit [Quit: Computer has gone to sleep.]
<certainty> at least i would've allowed it
cloud|nix has joined #ruby
zB0hs has joined #ruby
Sthebig has joined #ruby
wildroman2 has joined #ruby
<certainty> otoh guido is way smarter than me, so there is that
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
leonidlm has quit [Ping timeout: 272 seconds]
mikepack has joined #ruby
<lupine> 'You cannot specify the same gem twice with different version requirements.'
<lupine> boooo
<certainty> makes sense
dubsteph has joined #ruby
CaptainJet has joined #ruby
g0rd0 has quit [Remote host closed the connection]
Aryasam has quit [Ping timeout: 252 seconds]
sree has quit [Remote host closed the connection]
sambao21 has joined #ruby
sdwrage has joined #ruby
kebabski has quit [Ping timeout: 272 seconds]
kevind has joined #ruby
tjr9898 has joined #ruby
rootshift_ has joined #ruby
crashx has joined #ruby
stonevil has quit [Quit: Computer has gone to sleep.]
niggler has quit [Quit: niggler]
acoyfellow has quit [Remote host closed the connection]
gbt has quit [Quit: Leaving...]
OhMyGoshJosh has joined #ruby
andikr has quit [Read error: Connection reset by peer]
OhMyGoshJosh has quit [Max SendQ exceeded]
vlad_starkov has joined #ruby
OhMyGoshJosh has joined #ruby
OhMyGoshJosh has quit [Max SendQ exceeded]
CaptainJet has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
CaptainJet has joined #ruby
OhMyGoshJosh has joined #ruby
OhMyGoshJosh has quit [Max SendQ exceeded]
hanikazmi has joined #ruby
danshultz has quit [Remote host closed the connection]
meatherly has quit [Remote host closed the connection]
TripTastic has joined #ruby
<jsilver> is there any way I can require say my rails environment into http://joshnuss.github.io/mruby-web-irb/ and use it as a web IRB somehow?
sree has joined #ruby
ace_striker has joined #ruby
ace_striker has quit [Changing host]
ace_striker has joined #ruby
ace_striker has quit [Changing host]
ace_striker has joined #ruby
tkuchiki has quit [Remote host closed the connection]
kaldrenon has quit [Remote host closed the connection]
Sawbones has quit []
yfeldblum has quit [Ping timeout: 265 seconds]
hobodave has joined #ruby
wildroman2 has quit [Remote host closed the connection]
JBreit has quit [Ping timeout: 272 seconds]
brennanMKE has joined #ruby
iMe_away is now known as iMe
LadyRainicorn has quit [Ping timeout: 264 seconds]
ktun has quit [Remote host closed the connection]
LadyRainicorn has joined #ruby
aryaching has joined #ruby
fedesilva has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
jonah_k_ has quit [Remote host closed the connection]
SloggerKhan is now known as UofAdev
mneorr has joined #ruby
fedesilva has quit [Remote host closed the connection]
<havenwood> jsilver: Nope, you can't run Rails in mruby at this point at all. Maybe take a look at rack-webconsole: https://github.com/codegram/rack-webconsole#readme
<jsilver> thx
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
angusigu1ss has joined #ruby
v0n has joined #ruby
<shevy> havenwood but I wanna use mruby!
<havenwood> shevy: Then don't use Rails!
<shevy> hehe
jobewan has quit [Ping timeout: 272 seconds]
LadyRainicorn has quit [Ping timeout: 252 seconds]
dorei has quit [Remote host closed the connection]
<jsilver> shevy: what do you wanna us mruby for
<jsilver> lol
dorei has joined #ruby
rootshift_ has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
<jsilver> is rack webconsole broken? build error
noop has joined #ruby
<jsilver> yo so
<shevy> jsilver I hope it is super super fast
<jsilver> how would I secure this if we installed it? don't enable outside of development?
<shevy> and I somehow hope it can be used as replacement for lua
<jsilver> shevy: ah
<jsilver> shevy: same
mneorr has quit [Ping timeout: 252 seconds]
<shevy> but it moves at a speed that makes a snail look like a sprinter
<jsilver> dev or compute?
<shevy> dev
<certainty> sprinter snail
<shevy> it's as if you put matz back into 1995
<jsilver> matz has no time?
aryaching has quit [Read error: Connection reset by peer]
<shevy> but now he is +20 years older :(
<jsilver> lolz
<shevy> he has less time than in 1995 too yeah
<jsilver> I have seen some snails sprint a mean 100m
<jsilver> jk
dkamioka has joined #ruby
<jsilver> I thought matz was only working on mruby and nothing else
<shevy> yeah
<shevy> well
angusigu1ss has quit [Ping timeout: 245 seconds]
<shevy> not 100%
<shevy> he has to make key decisions for mruby sometimes
<shevy> so that is some time drain
<jsilver> ah
<shevy> in the beginning he was even on IRC!
<jsilver> too many trolls now?
<jsilver> beginning of ruby or mruby?
<shevy> dunno, he said IRC drains time
<shevy> no no years before mruby
<jsilver> it does
<jsilver> oh
<certainty> beginning of the IRC
<jsilver> I only stay because I enjoy helping
<jsilver> oh
<shevy> I dont remember if he was on #ruby or #ruby-lang
chipotle has quit [Quit: cya]
sdelmore has joined #ruby
<shevy> I stay mostly because I can learn something sometimes
ebwise has joined #ruby
<certainty> i stay because i like to troll
wildroman2 has joined #ruby
<shevy> the team at work does not know ruby
wildroman2 has quit [Remote host closed the connection]
aryaching has joined #ruby
<shevy> I feel special (they are heavy perl users)
<shevy> I looked at some of their scripts and had a revelation
<havenwood> shevy: any of them use perl6 or all perl5?
wildroman2 has joined #ruby
<shevy> they indeed use perl solely as means to shift/change/rearrange text files around
<shevy> nope, all perl5
<shevy> I see things like... let me try to remember ...
Sthebig has quit [Ping timeout: 265 seconds]
<shevy> print "blabalbla $0 blablabla bla bla blabla\n" or die "more blablabla\n";
<shevy> something like that
diegoviola has joined #ruby
Brolen has quit [Remote host closed the connection]
<shevy> then sometimes a few <> thingies
<certainty> looks like ruby
<shevy> and a sneaky little foreach as the main part
* certainty hides
burlyscudd has joined #ruby
<shevy> that was it then
jack_rabbit has quit [Ping timeout: 248 seconds]
<shevy> yeah
<shevy> I tested
Brolen has joined #ruby
<shevy> prints "$0" is not enough but prints "#$0" will work in ruby
S0da has quit [Remote host closed the connection]
cloud|nix has quit [Quit: Ex-Chat]
<shevy> and rather than that while <> thingy, one can do File.foreach('bla.txt').each or something like that
<shevy> but there is some kind of conceptual difference
<shevy> it's like really a collection of standalone scripts
<jsilver> actually I lied, I stay to ask questions
JasmeetQA has joined #ruby
<shevy> I haven't yet seen custom perl modules there
jonah_k has joined #ruby
<shevy> do the perl users not make more gems/modules?
clamstar has quit [Max SendQ exceeded]
<jsilver> is #$0 a shortcut for #{$0} or something
ddv has left #ruby [#ruby]
<certainty> shevy: they're done. Every module has been written and pushed to cpan
<certainty> :p
clamstar has joined #ruby
IceDragon has joined #ruby
<jsilver> shevy: thats what most perl users do
burlyscudd1 has joined #ruby
JBreit has joined #ruby
burlyscudd has quit [Read error: Connection reset by peer]
<jsilver> certainty: ruby is based partly on perl
phansch has joined #ruby
<certainty> jsilver: i know i know. Nothing's perfect
<jsilver> i find CPAN just like RubyGems
<jsilver> actually though I like RubyGems more
<jsilver> because it installs faster
stonevil has joined #ruby
Beoran has quit [Ping timeout: 272 seconds]
sparrovv has joined #ruby
sparrovv has quit [Remote host closed the connection]
Fire-Dragon-DoL has joined #ruby
TripTastic has quit [Ping timeout: 272 seconds]
papito has joined #ruby
Brolen has quit [Ping timeout: 245 seconds]
OhMyGoshJosh has joined #ruby
OhMyGoshJosh has quit [Max SendQ exceeded]
nowthatsamatt has joined #ruby
<hoelzro> jsilver: have you tried running cpanm with -n?
<jsilver> whats that do
<jsilver> no
<hoelzro> it doesn't run tests
<jsilver> ah
<havenwood> jsilver: Bundler's upcoming version adds forking and threading for faster yet, and RubyGems has threading on the horizon.
<hoelzro> which rubygems (iirc) also does not
<jsilver> havenwood: SICK
<shevy> no I mean
<jsilver> hoelzro: ill try it on the next cpan module I need
<shevy> I have not seen them arrange their scripts into projects/modules for their local use
dkamioka has quit [Remote host closed the connection]
<shevy> and they have dozens of such scripts
<havenwood> jsilver: `bundle -j8` or `gem ... -j8`
<hoelzro> shevy: Perl users?
dagobah_ has joined #ruby
jericon has quit [Ping timeout: 248 seconds]
dagobah has quit [Read error: Connection reset by peer]
<hoelzro> how CPU intensive is bundler/rubygems' work that they require threads?
<havenwood> jsilver: `bundle -j` for unlimited
<jsilver> havenwood: good I am sick of waiting for bundler
<jsilver> 8-D
pu22l3r_ has joined #ruby
<jsilver> 8-)
<havenwood> hoelzro: quite light with threading
<shevy> yeah hoelzro
pu22l3r has quit [Read error: Connection reset by peer]
<hoelzro> shevy: Perl users bundle up scripts into modules fairly often
<hoelzro> see App::*
<jsilver> is perl not OOP?
roolo has quit [Ping timeout: 245 seconds]
andrewdublin has quit [Ping timeout: 252 seconds]
<certainty> jsilver: opt-in
<hoelzro> it's not pervasive in the language
rh1n0 has joined #ruby
<hoelzro> but you can write OO Perl if you so choose
<jsilver> hm
<jsilver> ah
<jsilver> so is a module a class or object or what
<jsilver> lol
<jsilver> or none of those
<hoelzro> I should clarify: in Perl *5*, it's not pervasive
<certainty> OOP is actually another acronym for OO Perl
<havenwood> hoelzro: bundler uses forking for mri or threading for GILless implementations
pierre1_ has quit [Read error: Operation timed out]
gigetoo has quit [Ping timeout: 245 seconds]
<havenwood> hoelzro: you can choose how many cores -j2 or -j16 or free-for-all with -j
sree has quit []
* terrellt wants -free-for-all
<hoelzro> jsilver: that's a good question; packages and classes have a close relationship in Perl
caveat- has quit [Ping timeout: 272 seconds]
<hoelzro> havenwood: but what are they *doing* that makes threads help?
Celm has joined #ruby
yasushi has quit [Remote host closed the connection]
<certainty> remembers that objects had to be blessed somehow
<hoelzro> I would expect most of their work to be I/O bound
<certainty> my perl days are long over
<havenwood> hoelzro: Downloading in parallel, then installing in parallel.
<jsilver> my long days have perl all over them
dagobah_ has quit [Client Quit]
<hoelzro> certainty: yes, in order to use something as an object, you need to bless a reference into a package
<havenwood> hoelzro: unzipping
TryX has joined #ruby
<certainty> hoelzro: ah yeah, that was it
nhhagen has joined #ruby
fedesilva has joined #ruby
mityaz has joined #ruby
LadyRainicorn has joined #ruby
<hoelzro> havenwood: downloading + installing makes sense
slowcon has joined #ruby
<hoelzro> but installing 2 packages with 2 threads shouldn't help *that* much
<havenwood> hoelzro: Right now charliesome's RubyGems patch is a thread pool, no forking. So IO focused. Bundler's is more aggressive.
<hoelzro> but I haven't verified this with an experiment, so I have no numbers to back it up =)
gja has joined #ruby
blaxter_ has quit [Quit: foo]
securitycrush has quit [Ping timeout: 240 seconds]
<jsilver> I love "training", still getting paid but it's not "work"
kaldrenon has joined #ruby
TryX has quit [Remote host closed the connection]
kaldrenon has quit [Remote host closed the connection]
<terrellt> jsilver: Totally work.
<jsilver> psh
gja has quit [Client Quit]
<jsilver> there was pizza and beer
<jsilver> and cute girls
<jsilver> ;D
gigetoo has joined #ruby
<jsilver> and yet
<jsilver> I got paid
sambao21 has quit [Quit: Computer has gone to sleep.]
St_Marx has joined #ruby
kaldrenon has joined #ruby
roolo has joined #ruby
res0nat0r has joined #ruby
pietr0 has joined #ruby
razrunelord has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
caveat- has joined #ruby
aspires has joined #ruby
<slowcon> hows it goin guys
<shevy> I hate you
<slowcon> whos getting snowed on?
<shevy> ur mom
<slowcon> thats true, almost a foot where she lives
burlyscudd1 has quit [Quit: Leaving.]
<shevy> ruby hackers should live in tropical places
browndawg has left #ruby [#ruby]
nari has quit [Ping timeout: 245 seconds]
dubsteph has quit [Ping timeout: 264 seconds]
<workmad3> shevy: sounds like torture :(
Megtastique has quit []
<shevy> man, the beach
sambao21 has joined #ruby
<shevy> the ocean
<shevy> the sun
diegoviola has quit [Ping timeout: 252 seconds]
IceDragon_ has joined #ruby
<certainty> tropic thunders
diegovio1 has joined #ruby
IceDragon has quit [Ping timeout: 260 seconds]
Hobogrammer has joined #ruby
Megtastique has joined #ruby
cmedeiros has joined #ruby
Hobogrammer_ has joined #ruby
vlad_starkov has joined #ruby
<lagweezle> jsilver: How do the cute girls fit in? O.o
<jsilver> lagweezle: not sure. they are generally at work too.
<lagweezle> ... but ... I don't LIKE hot/humid ...
<lagweezle> jsilver: Score!
<jsilver> :D
nvrch has quit [Quit: nvrch]
<jsilver> the ones at work are sorta older tho, so this was nice there were young ones
<jsilver> 8-)
f3ttX] has joined #ruby
LekeFly has joined #ruby
f3ttX] has quit [Client Quit]
IceDragon_ is now known as IceDragon
rootshift_ has joined #ruby
bluenemo has quit [Remote host closed the connection]
SilentHobo has joined #ruby
<jsilver> including a cute little business analyst
<jsilver> 8-)
<shevy> you and your boys
black0ut has quit [Ping timeout: 252 seconds]
shaunbaker has quit [Remote host closed the connection]
lfox has quit []
Hobogrammer has quit [Disconnected by services]
SilentHobo is now known as Hobogrammer
black0ut has joined #ruby
raphaelivan has joined #ruby
soulcake has quit [Ping timeout: 260 seconds]
Hobogrammer_ has quit [Ping timeout: 252 seconds]
thumpba has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
aganov has quit [Remote host closed the connection]
<slowcon> havenwood: hows it goin today man
shredding has quit [Quit: shredding]
antiquus has joined #ruby
Fraeon has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
werdnativ has joined #ruby
vlad_starkov has joined #ruby
soulcake has joined #ruby
Astralum has joined #ruby
petey has quit [Remote host closed the connection]
petey has joined #ruby
sree has joined #ruby
mikepack has joined #ruby
julian_ has quit [Ping timeout: 248 seconds]
rubyracer has joined #ruby
<razrunelord> Hola
<razrunelord> has anyone here interviewed at Apple for ruby position?
petey_ has joined #ruby
petey has quit [Read error: Connection reset by peer]
<jsilver> guys.. I love Textastic
yalue has quit [Quit: Page closed]
gigetoo has quit [Remote host closed the connection]
TripTastic has joined #ruby
crashx has left #ruby [#ruby]
maletor has joined #ruby
lfox has joined #ruby
<havenwood> slowcon: coffee...!
burlyscudd has joined #ruby
<slowcon> havenwood: just had mine! i actually switched from coffee to straight espresso o_O
<havenwood> razrunelord: Not me.
shaunbaker has joined #ruby
gigetoo has joined #ruby
soulcake_ has joined #ruby
<slowcon> havenwood: its like crack ahhahaha
rootshift_ has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
ext0 has joined #ruby
soulcake has quit [Ping timeout: 260 seconds]
rh1n0 has quit [Ping timeout: 252 seconds]
Rainicorn has joined #ruby
<jsilver> slowcon: you made me get coffee!
<jsilver> :D
JBreit has quit [Ping timeout: 260 seconds]
Sthebig has joined #ruby
jfoy has joined #ruby
troyready has joined #ruby
burlyscudd1 has joined #ruby
gh has quit [Quit: Leaving]
heftig has joined #ruby
LadyRainicorn has quit [Ping timeout: 245 seconds]
someperson has quit [Ping timeout: 245 seconds]
<slowcon> jsilver: fuck yes coffee
<jsilver> :D
<slowcon> jsilver: cheers
<slowcon> hahahaha
<jsilver> lol
* jsilver taps mug against screen
burlyscudd has quit [Ping timeout: 252 seconds]
Rainicorn is now known as LadyRainicorn
rootshift_ has joined #ruby
* lagweezle is apparently the odd one out in the channel.
x77686d has joined #ruby
<jsilver> lagweezle: no excuses get coffee now
nhhagen has quit []
someperson has joined #ruby
<jsilver> NOW DAMN IT
<lagweezle> jsilver: I detest coffee.
someslash is now known as Ogreslash
<jsilver> drink it anyway
<lagweezle> Noooooooooo.
<slowcon> lagweezle: i go through my phases
<jsilver> gulp it down, pretend you like it
<jsilver> error: not allowed to be programmer and hate coffee
<lagweezle> I detest coffee in all it's forms, except potentially coffee cake. Maybe.
<slowcon> lagweezle: when i was buying a large iced coffee every day from Dunkin Donuts for almost $4
<lagweezle> Instead, I drink good tea.
<slowcon> lagweezle: i said fuck it and just quit hahaha
<jsilver> i drink tea and coffee you traitor
<jsilver> :D
<jsilver> unamerican.
francisfish has quit [Remote host closed the connection]
rayners has quit [Read error: Connection reset by peer]
<xibalba> what is unamerican about tea?
<lagweezle> I think, as well, which also seems to be unamerican. :/
francisfish has joined #ruby
ktun has joined #ruby
<certainty> remember boston tea party?
* certainty likes tea as well
<certainty> i'm not american though
yfeldblum has joined #ruby
gja has joined #ruby
<LadyRainicorn> Yay tea!
gja has quit [Changing host]
gja has joined #ruby
enebo has quit [Quit: enebo]
<havenwood> Remember, remember...
<lagweezle> certainty: I do, yes. The idiots in the /new/ 'Tea Party' are a good reminder ... and also got it horribly wrong.
<LadyRainicorn> Unamerican tea party!
mikecmpbll has quit [Quit: ciao.]
<LadyRainicorn> There is a new tea party?
<jsilver> pour your hot tea on the tea party.. and join me in some REAL AMERICAN COFFEE DRINKING *GULP GULP GULP*
* LadyRainicorn wants in.
alex88 has quit [Quit: Leaving...]
<jsilver> it's a coffee + tea party
<lagweezle> Or did you mean something different, LadyRainicorn?
bogeyd6 has quit [Ping timeout: 252 seconds]
nomenkun has quit [Ping timeout: 245 seconds]
<havenwood> >> require 'mathn'; 9999.upto(Float::INFINITY).lazy.select(&:prime?).take(3).to_a
<eval-in> havenwood => [10007, 10009, 10037] (https://eval.in/101374)
<LadyRainicorn> Oh, I meant like a social event based around tea.
george2 has joined #ruby
<lagweezle> LadyRainicorn: That would likely be much more enjoyable.
francisfish has quit [Ping timeout: 252 seconds]
bogeyd6 has joined #ruby
wildroman2 has quit [Ping timeout: 245 seconds]
x1337807x has joined #ruby
fedexo_ has joined #ruby
krisbulman is now known as krisbulman|afk
yfeldblum has quit [Ping timeout: 265 seconds]
razibog has joined #ruby
troessner has quit [Quit: Leaving]
yfeldblum has joined #ruby
platzhirsch has joined #ruby
<platzhirsch> Russian vodka!
platzhirsch has left #ruby [#ruby]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<LadyRainicorn> vodka yay
<havenwood> #lazy yay!
momomomomo has joined #ruby
<slowcon> havenwood: so i was playing with my script last night. got everything good with the arrays being combined using zip. have a nice new array of array pairs. now trying to figure out how to pass it to the database to span across rows. EX: http://snag.gy/1pc34.jpg
dubsteph has joined #ruby
<havenwood> slowcon: Are you building those two Arrays from the same Nokogiri object?
roolo has quit [Quit: Leaving...]
gja has quit [Ping timeout: 272 seconds]
<havenwood> slowcon: Or do they come from different places?
<LadyRainicorn> It is odd that Infinity is on Float.
jlebrech has quit [Quit: Konversation terminated!]
burlyscudd1 has quit [Quit: Leaving.]
zB0hs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<LadyRainicorn> I don't think I would guess that if I didn't already know.
zachallett has quit [Remote host closed the connection]
<havenwood> slowcon: I ask because if they're build from the same place, you probably want to combine them into a single #map block instead of zipping.
Ziarkaen has joined #ruby
<havenwood> built*
mneorr has joined #ruby
<slowcon> havenwood: http://pastebin.com/xrDBRnaD cleaned up the code alot. ignore the commented bottom part, things i was trying last night with the sequel extension.
sree has quit []
klaut has quit [Remote host closed the connection]
<lagweezle> Bad slowcon! No biscuit!
maximski has quit []
<lagweezle> ;)
angusigu1ss has joined #ruby
<havenwood> slowcon: One thing to do is fix your indention. Use two spaces to indent and no whitespace after a line.
dubsteph has quit [Ping timeout: 260 seconds]
* LadyRainicorn clings stubbornly to tabs, alone in the void.
<havenwood> slowcon: it makes it hard to tell where blocks, etc start and end without proper indentation
<jsilver> man Yeezy acts like he's god or something, he can't even code a line of Ruby
<certainty> >> (1/0.0).class
<eval-in> certainty => Float (https://eval.in/101377)
<certainty> just checkin
<certainty> i keep forgetting this
banister has joined #ruby
vt102 has joined #ruby
<jsilver> i love trolling @kanyewest and @Justinbieber on twitter
ohwhoa has quit [Quit: woah!]
<LadyRainicorn> wow such indentation, so crazy
<jsilver> just the feel of knowing you irritated someone at some business you hate... is so amazing
<LadyRainicorn> I am sure they are so incensed.
<LadyRainicorn> And _totally_ manage their own accounts.
<jsilver> im talking about their managers and fans
<jsilver> you have to troll hard
mneorr has quit [Ping timeout: 245 seconds]
<jsilver> to get a lot of trolling done
<LadyRainicorn> Why do you hate them?
canton7-mac has quit [Quit: Leaving]
<jsilver> kanye: hubris
<jsilver> bieber: crimes against art
<jsilver> king.com: being assholes to indie developers
<jsilver> etc.
<LadyRainicorn> Bieber's stuff isn't too bad.
<jsilver> troll assholes far and wide
fedexo_ has quit [Remote host closed the connection]
<jsilver> LadyRainicorn: in my opinion it is
platzhirsch has joined #ruby
<LadyRainicorn> Why?
elaptics is now known as elaptics`away
<platzhirsch> :o
<jsilver> he's a little wannabe Justin Timberlake, someone who actually has talent
<havenwood> slowcon: check this out for what i mean: https://gist.github.com/havenwood/1cd12efcfc050aa741cc
<slowcon> havenwood: cleaning up the code now, will pastebin after
<lagweezle> jsilver: I must now go rewatch http://youtu.be/fN-xq7t6pKw
angusigu1ss has quit [Ping timeout: 272 seconds]
<Ogreslash> Just heard a story about him getting slapped in a starbucks (Bieber)..
<jsilver> he smiled in his Jail booking photo, this angered me as someone who literally has been fucked over by the law for no good reason
pel_daniel has joined #ruby
<havenwood> slowcon: so #map to the tuples on the first pass, instead of zipping.
<jsilver> I got a DUI for weed. which is retarded as we've just legalized it after I did my time
<jsilver> so fuck Bieber
<LadyRainicorn> How is that in any way related to him?
<jsilver> also, the state treated me as a drunk and I have no alcohol problem
<jsilver> he smiled in his booking photo
<jsilver> it's all a joke to him
<lagweezle> slowcon: gist gist gist
Ogreslash is now known as slash_nick
<LadyRainicorn> That is clearly JB's fault.
<jsilver> he's made a mockery of everything from art to the system
<havenwood> slowcon: +1 gist.github.com
<LadyRainicorn> Yeah...
<jsilver> you are 1 bieber defender in a sea of haters
<havenwood> slowcon: Then other people can fork your gist to show you fixes, etc.
yfeldblum has quit [Read error: Connection reset by peer]
<LadyRainicorn> I am fairly sure that is not true, or he would not be known.
<havenwood> slowcon: You can also paste images into gists, but show code as text.
<jsilver> LadyRainicorn: he's known because big hollywood picked him up (for no reason) and smeared him in our faces for years
<jsilver> not because of talent
<slowcon> havenwood: lagweezle: i signed up but havent posted anything, kinda scared of it hahaha
<jsilver> EVERYONE hates him
<jsilver> including me
<slash_nick> ah so Bieber didn't get slapped, but people loved the rumor: http://thecelebritycafe.com/feature/2014/02/did-blake-griffin-slap-justin-bieber-starbucks
<jsilver> he has NO good music
<jsilver> slash_nick: they loved it because they hate bieber
<jsilver> like me
<havenwood> slowcon: Gists aren't anything fancy. You can gist publicly or secretly or even anonymously.
<LadyRainicorn> So you are saying he was selected uniformly at random from the population as a whole?
<slash_nick> i don't hate him, but i hate everything i've heard about him
<lagweezle> slowcon: You can create private gists.
<jsilver> LadyRainicorn: for some reason other than talent
<havenwood> slowcon: But just use it, nothing to warn about.
<jsilver> probably looks
<LadyRainicorn> Given that there is no reason whatsoever for his success.
lethjakman has joined #ruby
<jsilver> I hate his music and his attitude
julian has joined #ruby
<jsilver> If you're going to not be technical, and not code, and do art, please don't make Justin Bieber's art
julian is now known as Guest29232
venkat has joined #ruby
<razrunelord> Has anyone solved these questions http://thereq.com/q/best-ruby-software-interview-questions/all
<jsilver> same to Miley Cyrus
quatron has quit [Quit: ChatZilla 0.9.90.1 [Firefox 27.0/20140127194636]]
<havenwood> I think you guys are mistaking this for the E Entertainment "Ruby" weightloss show channel...
<LadyRainicorn> I actually like some of her stuff.
Sthebig has quit [Ping timeout: 265 seconds]
<jsilver> and all other undeserving annoying young "stars" who have no taste, talent and should not be doing anything in "art"
<jsilver> meh
<LadyRainicorn> Bieber is kind of meh.
<jsilver> Miley atleast has a shot to turn it around
rubyracer has quit [Ping timeout: 252 seconds]
<jsilver> Bieber is FUBAR
burlyscudd has joined #ruby
<LadyRainicorn> They are probably talented at something.
bklane has joined #ruby
<jsilver> yes, annoying me
<terrellt> razrunelord: Those look fun!
<jsilver> they are good at "art crimes"
<LadyRainicorn> Well, I suppose that is at least plausible since it could contribute to his success.
<LadyRainicorn> (a la Streisand effect)
<jsilver> it probably does. continue the irritation and the pain can't be ignored
shaunbak_ has joined #ruby
<jsilver> YEAH FUCK BARBARA STREISAND *watches barbara streisand get more famous*
fedexo_ has joined #ruby
<jsilver> I know, I need to stop even complaing about Bieb & Co because I just refresh him in people's minds
Patchou has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
mojjojo has quit [Quit: mojjojo]
greenarrow has quit [Quit: 500]
enebo has joined #ruby
Al___ has quit [Quit: Al___]
shaunbak_ has quit [Remote host closed the connection]
<razrunelord> Explain the difference between ==, eql and equal?
<jsilver> razrunelord: they contain different characters
shaunbaker has quit [Ping timeout: 252 seconds]
<jsilver> in different sequences
ndrei has joined #ruby
fedexo_ has quit [Client Quit]
<lagweezle> Why/how did we get onto Bieber, et. al.? I forget...
<jsilver> I tweeted this to troll Kanye
<jsilver> man Yeezy acts like he's god or something, he can't even code a line of Ruby
<jsilver> then talked about how I loving trolling stuff I hate
<havenwood> razrunelord: explains ^
asteros has joined #ruby
<jsilver> the version of trolling that means "being a jerk to people you hate" not "filling freenode up with spam"
joelroa has joined #ruby
<jsilver> looks like I just typed 60% of the last 20 lines though, looks like it could go either way
<razrunelord> Thanks jsilver and havenwood
<jsilver> razrunelord: no prob
krisbulman|afk is now known as [krisbulman|afk]
mojjojo has joined #ruby
<LadyRainicorn> You sound like you should reevaluate your priorities if that appears to be a good use of energy to you
<jsilver> probably
<jsilver> I do that some but King.com pissed me off at first
<RubyPanther> You don't need that crap media, you can listen to Ruby music
<jsilver> I wrote this http://pastebin.com/kFpDenh1
<jsilver> true RubyPanther
<RubyPanther> ~ these are the simple parts of Ruby yeah yeah yeah ~
<LadyRainicorn> Ruby music?
Spami has joined #ruby
<jsilver> spam http://pastebin.com/kFpDenh1 to king.com
<jsilver> thanks
<jsilver> do it now
<jsilver> for great lulz
<jsilver> come on, don't you want to help me beat up on a bully?
ndrei has quit [Ping timeout: 245 seconds]
<jsilver> I wouldn't even write that to Bieber
<slowcon> havenwood: so the script that you edited, all i have to do to create the array pair is [genre_titles, genre_links]?
<jsilver> there are some relative hatred levels
<LadyRainicorn> I would say the person who goes around asking others to join him in beating people up is the bully.
<RubyPanther> LadyRainicorn: there is also a music section at: http://viewsourcecode.org/why/
tharindu is now known as tharindu|away
mojjojo has quit [Client Quit]
<jsilver> LadyRainicorn: read the link to CandySwipe.com
<jsilver> they are the bullies
<LadyRainicorn> (albeit unsuccesful, in this case)
<jsilver> I'm an internet freedom fighter
meatherly has joined #ruby
<jsilver> LadyRainicorn: I don't need you. I already sent mine
[krisbulman|afk] is now known as krisbulman
<havenwood> slowcon: Look more into #map. It builds a new Array from the return value of each iterations, which hear is that Array on the last line.
<jsilver> I was just offering if you wanted to help la resistance
<jsilver> against corporate tyranny
marcdel has joined #ruby
<jsilver> sent it to both contact and support, lol!
<LadyRainicorn> That sounds awfully similar to 'wannabe terrorist'
<havenwood> s/hear/here
<RubyPanther> fight the power, egg PHP's house
<jsilver> so their employees can know what they are up to
<jsilver> as many as possible
<jsilver> that was the real intention
<jsilver> to spur change within King
<jsilver> thought this could be done better if there was a shitstorm
<jsilver> I'm not Lowtax
<havenwood> RubyPanther: Like throwing eggs at the homeless... MINASWAN! :P
<jsilver> so I can't rally 10,000 people easily
<jsilver> but it really is bullshit
<jsilver> they stole his game
<jsilver> that he made for his dead mother
<jsilver> and then tried to invalidate his copyright
tharindu|away is now known as tharindu
<jsilver> they're evil, I wrote that because I was pissed, not a bully
<jsilver> THEY are the bully
<RubyPanther> havenwood: actually not like that at all, it was a Bieber joke
i_s has joined #ruby
kaliya has quit [Quit: Lost terminal]
<jsilver> I got this from @lrz, creator of RubyMotion
<havenwood> RubyPanther: Who?
<jsilver> who got it from Wil Wheaton
<jsilver> I know you want to troll me, but just read the damn link
<havenwood> RubyPanther: j/k :P
jprovazn has quit [Quit: Odcházím]
<RubyPanther> havenwood: some rich Canadian kid under felony investigation for egging his rich Californian neighbor's house
<havenwood> right right
<jsilver> RubyPanther: a retarded reason for a felony investigation, and jail. I've egged houses when I was younger and it was nothing
<jsilver> just like Wil Wheaton can say he wants to punch King.com in their stupid faces and I can't
<RubyPanther> Right. When you were a kid, it was nothing.
<LadyRainicorn> Eggs are yummy?
<jsilver> because he's a famous actor and obvious just kidding
<jsilver> and I'm some fuck that could be dangerous
bogeyd6 has quit [Ping timeout: 252 seconds]
<havenwood> Eggs are for Python and Chicken Scheme. Please keep talk to Gems.
<slowcon> havenwood: i see how the maps are working, but how is this approach going to help me insert the array into multiple columns at the same time without creating the new lines?
<jsilver> RubyPanther: egging houses at bieber's age is pure fucking idiocy tho
<slowcon> havenwood: this doesnt create a pair, it just lists the arrays one after the other, no?
meatherly has quit [Ping timeout: 252 seconds]
<RubyPanther> If you're an "adult" and your neighbor calls the cops on you so you buy cases of eggs and have all your friends damage your neighbors fancy terracotta, then it turns into a different thing
<jsilver> RubyPanther: and come on, can't you just do your drugs inside your house and not get caught? I fucking do? pathetic
<jsilver> he's an idiot and it's just another reason to hate him
<havenwood> slowcon: It will build the Array of Array pairs you then will iterate over and put into your DB.
Ziarkaen has quit [Ping timeout: 272 seconds]
bogeyd6 has joined #ruby
<jsilver> acts like such a gangster, has no idea what it really is
<RubyPanther> jsilver: no I live in a no-smoking apartment, I have to take a walk for that lol
<jsilver> RubyPanther: yeah I smoke in my basement.. its illegal to smoke weed outside in colorado so I don't
<jsilver> but yea I know what you're talkin about
<jsilver> stupid charges for weed smells that they treat like cig smells even tho they DONT STAIN THE WALLS
<jsilver> just like the idiocy of treating e-cigs like cigs
* platzhirsch puts a plastic bag over jsilver and ties it
mehlah has quit [Quit: Leaving...]
* jsilver pokes a hole in the top and continues breathing
<platzhirsch> -_-
<jsilver> :D
* havenwood admires platzhirsch's goldfish.
<RubyPanther> "e-cigs" contain nicotine and probably _will_ stain the walls
<platzhirsch> wat
<jsilver> RubyPanther: right but I've noticed they don't make any lingering smell at all in reality
Guest29232 has quit [Ping timeout: 264 seconds]
<jsilver> the vapor dissipates way too fast, the nicotine content is far too small, you can taste it but not smell
<LadyRainicorn> They are fucking yummy.
<LadyRainicorn> ♥
<jsilver> ecigs? lol
w1zeman1p has joined #ruby
<jsilver> yeah theyre nice
<RubyPanther> jsilver: they certainly leave a carcinogenic film over everything
Zai00 has left #ruby [#ruby]
<jsilver> RubyPanther: wrong, nicotine itself is not a carcinogen
<RubyPanther> Derp Alert!
<jsilver> nitrosamines and aromatic hydrocarbons, yes, but they are found in tobacco smoke and not vapor
<RubyPanther> You might want to look that one up
<jsilver> I have
<RubyPanther> No you haven't
<jsilver> radioactive materials not found in ecigs either
cmedeiros has quit [Ping timeout: 260 seconds]
<jsilver> yes, yes I have
julian has joined #ruby
<RubyPanther> if you had, you wouldn't sound like a tobacco exec in front of congress
<jsilver> e-cigs aren't dangerous, they're safer
poulson has quit [Remote host closed the connection]
<RubyPanther> That's a known lie
<jsilver> they took over the e-cig industry, it was a cottage industry before
julian is now known as Guest36124
<LadyRainicorn> It is soet of true.
<jsilver> link then?
<RubyPanther> Any nicotine produce is deadly
kryl has joined #ruby
<jsilver> not true
<kryl> hi
<LadyRainicorn> They are dangerous, but not as dangerous.
<slowcon> havenwood: http://snag.gy/6GOxk.jpg (sorry no gist, saw theres a couple steps to upload a pic)
ixti has quit [Ping timeout: 248 seconds]
<kryl> sudo gem install compass -V < and then I do compass -v and I have an error : command not found !
<RubyPanther> If it was the smoke, I guess chess would be safe right? Oh wait, they can cancer too
<kryl> where is my mistake pls ?
<kryl> do I need to install gem with superuser ?
<LadyRainicorn> There havr been conflictinf studirs on whether nicotine alone is carcinogenic, but it's definitely quire bad for you.
<RubyPanther> kryl: maybe yes, maybe no
<kryl> RubyPanther, thank you lol
agjacome has joined #ruby
<RubyPanther> LadyRainicorn: That is tobacco industry lies from like, 1965 or something
<jsilver> Historically, nicotine has not been regarded as a carcinogen and the IARC has not evaluated nicotine in its standalone form or assigned it to an official carcinogen group. While no epidemiological evidence supports that nicotine alone acts as a carcinogen in the formation of human cancer, research over the last decade has identified nicotine's carcinogenic potential in animal models and cell culture.[64][65] Nicotine has been noted to di
<jsilver> rectly cause cancer through a number of different mechanisms such as the activation of MAP Kinases.[66] Indirectly, nicotine increases cholinergic signalling (and adrenergic signalling in the case of colon cancer[67]), thereby impeding apoptosis (programmed cell death), promoting tumor growth, and activating growth factors and cellular mitogenic factors such as 5-LOX, and EGF. Nicotine also promotes cancer growth by stimulating angiogene
<jsilver> sis and neovascularization.[68][69] In one study, nicotine administered to mice with tumors caused increases in tumor size (twofold increase), metastasis (nine-fold increase), and tumor recurrence (threefold increase).[70] N-Nitrosonornicotine (NNN), classified by the IARC as a Group 1 carcinogen, is produced endogenously from nitrite in saliva and nicotine.
<slowcon> havenwood: those dont look like the array pairs i was getting from the zip method
<jsilver> maybe yes maybe no
<jsilver> NNN is the real carcinogen and it's absent from vapor
<slowcon> havenwood: i see how both arrays are in an array
<RubyPanther> wow, people still believe that recycled crap? Is it really that hard to understand? They've proven that even a tiny bit of nicotine spikes your lung cancer risk. Even just being around people smoking once a week will spike your risk.
<LadyRainicorn> Do you have citations for conclusive raw nicotine evidence?
<jsilver> RubyPanther: key word smoking... the nicotine activates the aromatic hydrocarbons and nitrosamines by irritating the mucosa.. if they are there, nothing carcinogenic happens.
<RubyPanther> "historically" yeah, there were official lies in the past. That already ended decades ago.
* xibalba needs to quit smoking
<jsilver> if they aren't there
<jsilver> nothing carcinogenic happens
<LadyRainicorn> (second-hand smoke is totally different, and almost all nicotine consumption isn't pure)
Sthebig has joined #ruby
burlyscudd has quit [Quit: Leaving.]
<havenwood> slowcon: titles_and_links = doc.css("#c_cat10").map do |grab| ...
danshultz has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
<jsilver> this is why tobacco smoke is carcinogenic and weed smoke isn't... THC doesn't irritate mucosa.. infact it seems to help mucosa reject carcinogens
<RubyPanther> No, any tobacco product is deadly. Have you really never been told people who chew get mouth cancers?
<jsilver> RubyPanther: they get mouth cancer, again, because of NNN and not nicotine itself
<jsilver> RubyPanther: NNN is produced by fire curing
<jsilver> RubyPanther: Swedish Snus doesn't cause mouth cancer, only American snus
<jsilver> RubyPanther: it is because Swedish Snus is steam pasteurized
<LadyRainicorn> Tobacco contains substances besides nicotine.
<havenwood> slowcon: then end the block to populate `titles_and_links` before you try to use it
<jsilver> NNN is produced when bacteria ferment nicotine inside Tobacco during fire-curing, which typically only happens in American made tobaacco
MyStartx has joined #ruby
<jsilver> it's the process, and not the plant itself
<RubyPanther> Wow, smoker denial hour jeeze you people are dumb. It is killing you, you should stop.
<jsilver> infact, tobacco alone does not contain carcinogens
<jsilver> I didn't deny smoking or chewing were deadly
mojjojo has joined #ruby
<jsilver> only that e-cigs were
<RubyPanther> "<jsilver> infact, tobacco alone does not contain carcinogens" LIAR LIAR LIAR LIAR LIAR
<jsilver> the plant, before processing, doesn;'t
<LadyRainicorn> I am unsure where I have claimed smoking or even tobacco is safe.
<jsilver> nicotine is TOXIC but not carcinogenic
<jsilver> I claimed ecigs were safe
<havenwood> gah, take it to #r.trees
<RubyPanther> You claim to have looked this stuff up, but I can see after that DOOZY that you're pasting from a tobacco industry website
<jsilver> I pasted from wikipedia bro
<LadyRainicorn> Wikipedia?
<jsilver> I think RubyPanther is trollin' us
<jsilver> :D
<xibalba> wiki-definitive-source-pedia
<jsilver> wiki-not-a-tobacco-company-pedia
<LadyRainicorn> You seem to be overly emotional.
<havenwood> kryl: The gem bin dir needs to be in your PATH.
<jsilver> maybe his dad died from cigs
<jsilver> or somethin
<havenwood> kryl: Using rvm/chruby/rbenv or compiled yourself or system Ruby?
<RubyPanther> Somebody is trolling, but yeah... it is probably not the person saying nicotine is a carcinogen. It is probably the addict in denial/.
pel_daniel has quit [Ping timeout: 252 seconds]
<jsilver> well if not trolling then wrong
<jsilver> but I'm not in denial
<jsilver> I know cigs/chew is unsafe
<jsilver> but ecigs are not
<jsilver> and neither is swedish snus
<jsilver> but american snus is unsage
<jsilver> unsafe
<jsilver> any fire cured tobacco contains nitrosamines, which are powerful carcinogens
<jsilver> nicotine itself helps the mucosa uptake these poisons
<jsilver> so it's a vicious cycle
<jsilver> however nicotine itself in low doses can't and won't hurt you, and thus ecigs are safe
nism has joined #ruby
<mjc_> nobody has studied ecigs to know whether they are safe or not
<mjc_> the answer to that is "we don't know," not "a thing is safe by inference"
<LadyRainicorn> RubyPanther: Can you provide conclusive citations for your claim that nicotine, specifically, is a carcinogen, specifically (rather than associated with general health risks)?
<jsilver> in addition to NNN, there's radioactive metals which can wreak damage in the lungs with alpha particles, and aromatic hydrocarbons such as benzene which are known carciongens
<jsilver> there's no proof of nicotine itself being carcinogenic.. infact it imitates acetylcholine, and stimulates the CNS...
kryl has quit [Ping timeout: 252 seconds]
klaas_ is now known as klaas
<jsilver> everything ELSE in cigs is the poison, nicotine is what addicts you
jackneill has joined #ruby
<jsilver> though nicotine technically is a poison
jackneill has quit [Changing host]
jackneill has joined #ruby
<someperson> jsilver: heard the oil-based ecig was bad
<someperson> obv nicotine is fine
<RubyPanther> LadyRainicorn: when ignoring the Surgeon General's warnings, you should actually do the research and find the link yourself. Otherwise, just go on what doctors say.
<someperson> it's the other crap in there
petey_ has quit [Remote host closed the connection]
<jsilver> infact its one of the most powerful poisons known to man... but not in low doses
<jsilver> someperson: yes
<jsilver> someperson: what oil based ecig?
mocfive has joined #ruby
<jsilver> i think only bt toxin is stronger than nicotine
<jsilver> but that doesnt mean carcinogenic
pel_daniel has joined #ruby
Sc0rp10n has joined #ruby
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<RubyPanther> Anybody who follows science news already knows this stuff. Animal and culture studies show nicotine to be carcinogenic. There are not extensive human studies, because few people ingest nicotine in isolation until recently, so it will take TIME for those studies to finish. That doesn't mean it is safe until the human studies confirm the animal studies.
<LadyRainicorn> RubyPanther: My claim is not that cigarettes, or even electronic cigarettes, are in any way safe. It is rather a very specific claim to a lack of conclusive evidence regarding a specific effect of one component substance in cigarettes. When someone claims a lack of evidence, it is customary to provide at least some sory of citation.
<RubyPanther> it is considered unethical to just round up a bunch of humans and give it to them to measure their death rate
nszceta has quit [Ping timeout: 272 seconds]
<LadyRainicorn> Note also that I did not claim that nicotine was not carcinogenic.
<RubyPanther> LadyRainicorn: Mr Tobacco Executive, there is no shortage of conclusive evidence. You would actually need to go the other way and prove that even though it causes cancer in mice, somehow it doesn't in humans.
rmorello has joined #ruby
<LadyRainicorn> Therefore a lack of conclusive evidence should br interpreted in my favor, as my claim regarded only current published dsta rathet than the real world.
kryl has joined #ruby
cmedeiros has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<LadyRainicorn> My claim was specifically to conclusivr evidence.
<kryl> I really have pb to install compass under arch ! I can't install it with simple user and I can't retrieve the command "compass" in the system (binary) when I check with updatedb / slocate
<kryl> /usr/lib/ruby/gems/2.1.0/cache/compass-0.12.2.gem
x1337807x has joined #ruby
Advocation has joined #ruby
<jsilver> RubyPanther: nobody here is defending Big Tobacco or works for Big Tobacco. nobody
<RubyPanther> jsilver: Yes you are, you're actually claiming nicotine isn't carcinogenic. This isn't 1965.
pel_daniel has quit [Ping timeout: 252 seconds]
<jsilver> the stuff from Wiki I linked actually said it MAY or MAY NOT be... but personally I don't believe it until a carcinogenic potential is proven/explained in a way that makes sense
<LadyRainicorn> In fact I did not claim that.
<jsilver> making it's way to the acetylcholine receptor in the brain and stimulating that is not a convincing carcinogenic potential
<RubyPanther> You pasted from wiki, you have no excuse not to have seen that it tells you nicotine is carcinogenic.
pranny has joined #ruby
<kryl> gem update --system
<kryl> gem install compass
<kryl> doesn't work :-(
<certainty> i'd rather stay on the safe side and assume it does harm until proven otherwise
Speed has joined #ruby
<jsilver> sure it may ACTIVATE carcinogens, but if it doesn't do anything carcinogenic in the absense of other carcinogens such as in e-cigs, it's not causing cancer and it's carcinogenic
<LadyRainicorn> jsilver pasted from Wikipedia, not me.
<jsilver> it's not* carcinogenic
<jsilver> I meant
<AntelopeSalad> why not just quit smoking ecigs and not worry about it anymore?
<RubyPanther> jsilver: lies, it is all well know. You're repeating know lies. Even in the wiki it has citations like http://www.wjgnet.com/1007-9327/full/v12/i46/7428.htm
carraroj has joined #ruby
<havenwood> kryl: Where are you trying to install to?: gem env gemdir
<RubyPanther> there is a whole list of citations
<RubyPanther> Just because it is even worse in combination with other things... doesn't make it safer or less carcinogenic
<kryl> sudo gem install compass -V (everything seems to be ok but I can't find compass -v !)
<kryl> like this
sepp2k has joined #ruby
Ziarkaen has joined #ruby
yfeldblum has joined #ruby
<jsilver> Carcinogenicity studies carried out in mice, rats, and hamsters demonstrate that, under normal conditions, nicotine is not carcinogenic
pel_daniel has joined #ruby
<RubyPanther> That is a bald-faced lie though
<kryl> /usr/lib/ruby/gems/2.1.0
sambao21 has quit [Quit: Computer has gone to sleep.]
<kryl> havenwood, /usr/lib/ruby/gems/2.1.0
iliketurtles has joined #ruby
claymore has quit [Ping timeout: 245 seconds]
iliketurtles has quit [Excess Flood]
<RubyPanther> animal studies show just the opposite.
pel_daniel has quit [Max SendQ exceeded]
iliketurtles has joined #ruby
<jsilver> humans != animals
<jsilver> However this risk has not been documented in people.
<jsilver> why not?
iliketurtles has quit [Excess Flood]
<havenwood> kryl: take a look at: gem env
<lagweezle> jsilver: Erm, yes they are. Humans are animals.
<jsilver> Short term nicotine use for tobacco cessation is undoubtedly much safer than persistent tobacco use.
iliketurtles has joined #ruby
ohwhoa has joined #ruby
iliketurtles has quit [Excess Flood]
<kryl> havenwood, I'll try to use the system packages...
<jsilver> lagweezle: humans != rats, hamsters
<lagweezle> jsilver: Much better. :)
<certainty> why would you want to consume nicotine? i'm a former nicotine addict. Now i see now reason to ever ingest it in any way. It doesn't matter if it kills you (which i'm pretty sure it does), you just don't need it
claymore has joined #ruby
<lagweezle> certainty: Congrats! =D
iliketurtles has joined #ruby
<LadyRainicorn> The linked study is interrsting, and persuasive, however it is not conclusive.
zachallett has joined #ruby
<jsilver> certainty: helps ya sh*t and eliminates stress
<lagweezle> I mean that with all seriousness. I've heard that ending the addiction is REALLY difficult.
<havenwood> kryl: You need your SHELL PATH: to include /usr/lib/ruby/gems/2.1.0/bin or wherever your gem binaries are
asteros has quit [Quit: asteros]
<havenwood> kryl: oh, i see
<certainty> jsilver: there are healthier alternatives
<certainty> gotta go
mocfive has quit [Remote host closed the connection]
<certainty> have fun people
<kryl> I can't find the binaries with slocate / find commands on the system that's amazing :)
<jsilver> certainty: right, weed
<jsilver> cya
ndrei has joined #ruby
<LadyRainicorn> I would bet that nicotine is in fact carcinogenic but I still wouldn't put it as a forgonr conclusion.
<kryl> havenwood, I can't find the binaries with slocate / find commands on the system that's amazing :)
<AntelopeSalad> lagweezle: it's really easy to quit if you want to imo
<ohwhoa> is there any chart where can i find main differences between ruby, jruby, topaz, mruby, maglev, macruby and etc ?
<jsilver> "Many mistakenly think nicotine causes cancer, rather than the smoke" - Medical news today
<AntelopeSalad> problem is most people don't want to quit
<jsilver> are they from tobacco too?
<razrunelord> What is a static class in ruby?
mocfive has joined #ruby
<kryl> havenwood,
<jsilver> I would bet that nicotine helps cause cancers but isn't nearly as powerful of a carcinogen as NNN
<kryl> % ls /usr/lib/ruby/gems/2.1.0/ :(
<kryl> build_info/ cache/ doc/ extensions/ gems/ specifications/
<RubyPanther> This is why tobacco bans have to be expanded. Smokers are so delusional there is no other way.
someperson has quit [Ping timeout: 260 seconds]
<havenwood> kryl: gem env gemdir
<havenwood> kryl: echo $GEM_HOME
Bira has quit [Remote host closed the connection]
<kryl> havenwood, /usr/lib/ruby/gems/2.1.0
<havenwood> kryl: gem env gempath
<LadyRainicorn> Regarding specifically electronic cigarettes, it appears to differ significantly among brands, more so than traditional cigarettes.
<kryl> $GEM_HOME is empty
mnemon2 is now known as mnemon
<LadyRainicorn> (Ranging from mildly carcinogenic to equivalent to cigarettes)
sepp2k1 has joined #ruby
<kryl> havenwood, for example : gem list --install -> compass (0.12.2)
asteros has joined #ruby
<LadyRainicorn> (Though research still isn't mature enough to be what I would call conclusive.)
<kryl> /root/.gem/ruby/2.1.0:/usr/lib/ruby/gems/2.1.0:/root/.gem/ruby/2.0.0 < for the path logged as root user
<kryl> and then when there is no compass binary there !
<Spami> So, I have a .present? failing on string with an invalid byte sequence
kevind has quit [Quit: kevind]
<havenwood> kryl: I'd expect /usr/lib/ruby/gems/2.1.0/bin
<Spami> is this an odd behavior or something I should expect
freezey has quit [Remote host closed the connection]
kevind has joined #ruby
<kryl> havenwood, I need to fix this env path for the normal user
ixti has joined #ruby
freezey has joined #ruby
sepp2k has quit [Ping timeout: 260 seconds]
<havenwood> kryl: I use chruby to set GEM_HOME, GEM_PATH, and other env vars.
<kryl> havenwood, I have to leave but you put me in the right way ;)
digitalfiz has joined #ruby
papito has quit [Ping timeout: 264 seconds]
tharindu has quit [Quit: Leaving...]
<kryl> I'm new to ruby of course
<havenwood> kryl: Maybe reference chruby's manpage even if you don't want to use the tool. Later.
someperson has joined #ruby
mocfive has quit [Ping timeout: 245 seconds]
<LadyRainicorn> RubyPanther: Your attacks are tangential and lack sufficient justification.
<RubyPanther> "derp!"
ndrei has quit [Read error: Operation timed out]
<kryl> havenwood, thank you
kryl has quit [Quit: Leaving]
<RubyPanther> I'll give you a hint though, just about NOBODY is still going to be willing to "debate" the health risks anymore. It was already well established in my parents generation. And the new versions aren't proven safer. Remember when "light" cigarettes were gonna be safer? No? Not safer?
<mjc_> Spami: your string shouldn't have invalid byte sequences in it, the problem is somewhere before your .present? call
ruby429 has joined #ruby
Ziarkaen has quit [Ping timeout: 260 seconds]
FailDrain has joined #ruby
<mjc_> probably
<Spami> mjc_, well it's a url params
<FailDrain> Does anyone know why glu is not compiled properly in the gem install glu call?
rdark has quit [Quit: leaving]
centrx has joined #ruby
<mjc_> Spami: what ruby + rails version?
<FailDrain> I'm using ruby installer
<RubyPanther> Swedish Snus: "For smokers, the incidence rate of pancreatic cancer was 13 cases per 100,000. That rate dropped to 8.8 cases per 100,000 for snus users. Among those who did not use tobacco, the rate was 3.9 cases per 100,000."
mneorr has joined #ruby
Fraeon has joined #ruby
Hiall has quit [Ping timeout: 264 seconds]
angusigu1ss has joined #ruby
<FailDrain> hello???
<FailDrain> fucking idiots
lfox has quit [Quit: ZZZzzz…]
<havenwood> Spami: update to Ruby 2.1 for String#scrub to replace invalid byte sequences: http://www.ruby-doc.org/core-2.1.0/String.html#method-i-scrub
<LadyRainicorn> inorite?
<havenwood> Spami: but like mjc_ said!
<FailDrain> LadyRainicorn: it goes across the board too not just here :/
JacobHayes has joined #ruby
<RubyPanther> FailDrain: remove stick and try again
Ziarkaen has joined #ruby
<LadyRainicorn> We're such filthy cunts for not rrsponding to your obscure question within 3 minutes.
<havenwood> fflush: ping
<FailDrain> LadyRainicorn: hence why your an idiot ;)
Sthebig has quit [Ping timeout: 240 seconds]
<RubyPanther> I may be an idiot, but I can also install gems. Where does that leave you?
<LadyRainicorn> Yes, that is a foregonr conclusion I suspect.
<lagweezle> FailDrain: *you're
ged_ is now known as ged
<centrx> Some of my best friends are idiots.
<LadyRainicorn> FailDrain is quite likely the most intelligient perso to have ever lived.
<FailDrain> wow oh wow .... my gosh.
<slowcon> havenwood: been struggling trying to get the arrays to insert, turns out SQLITE doesnt support inserting multiple records
<RubyPanther> If you're begging for help from idiots, just remember, they're probably smarter than you so ask nicely.
* LadyRainicorn has an idiot friend.
<havenwood> slowcon: aha
<slowcon> havenwood: that sound right?
<centrx> slowcon, What database does?
mneorr has quit [Ping timeout: 264 seconds]
TMM has quit [Quit: Ex-Chat]
SHyx0rmZ has joined #ruby
<havenwood> slowcon: Seems you need to think more about how you'd do it or lookup some examples.
<slowcon> centrx: SQLite3
<FailDrain> RubyPanther: I can make a video game in SDL 1.2 and C++ but I moved from it because the language is horrible I come to install opengl in ruby with gem install opengl and try to run the orangebook examples and I get errrors why would you supply something that gives errors upon usage
angusigu1ss has quit [Ping timeout: 252 seconds]
miah_ is now known as miah
<RubyPanther> FailDrain: bad idea, opengl in Ruby is likely to have most of the code in C/C++ ;)
decoponio has quit [Quit: Leaving...]
S0da has joined #ruby
mocfive has joined #ruby
<FailDrain> RubyPanther: OpenGL functions are fine it's the language omg..
<RubyPanther> There is not any way around learning a lower level language for doing 3d work, unless you're just trying to do slow hello-world type stuff
yarou has quit [Remote host closed the connection]
<FailDrain> lagweezle: I shouldn't have to write a smart question to get an answer . if people learnt and stored there information correctly in there brains and looked deeper they may see that there is much more ease for everyone
<centrx> slowcon, Thanks
willob has joined #ruby
willob has quit [Client Quit]
<RubyPanther> You can also use SDL with C, nobody ever has to subject themselves to C++
Brolen has joined #ruby
wildroman2 has joined #ruby
<FailDrain> RubyPanther: C is quite foul infact most programming languages are foul , ruby is the only one I could withstand for 2minutes without getting annoyed
<Tachoh> FailDrain: the language is horrible or you dont know the language well enough?
<FailDrain> Tachoh: I wouldn't mind learning if it was done right , I just see flaw after flaw ,
<RubyPanther> FailDrain: then stick to safe things like shell utilities and websites. You should probably focus on using Rails to generate HTML5.
<centrx> FailDrain, It is probably you
<LadyRainicorn> Both likely.
stryek has quit [Read error: Operation timed out]
<Tachoh> FailDrain: it doesn't hide a lot. it's def. an advanced language.
<FailDrain> centrx: abit of both to be fair
Hanmac1 has joined #ruby
noop has quit [Ping timeout: 252 seconds]
rootshift_ has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
<LadyRainicorn> C++ is horrible. C could have been done better.
enebo has quit [Quit: enebo]
pel_daniel has joined #ruby
sambao21 has joined #ruby
<FailDrain> RubyPanther: writing websites is far more funner and enjoyable and less annoying then c++ I can ashore you
ace_striker has quit [Ping timeout: 245 seconds]
<Tachoh> FailDrain: why not look at somthing like C# and unity?
<Tachoh> something*
<razrunelord> Is there a way to do this more elegantly without using the math module to get PI, (22/7.to_f * 100).round/100.to_f. I want to get 3.14
<FailDrain> Tachoh: I refuse to use other peoples engines
<LadyRainicorn> JS is definitely wordr thsn C++ though.
<Tachoh> yikes
Hanmac has quit [Ping timeout: 252 seconds]
<RubyPanther> The only problem with C is the lack of a included stdlib. You have to choose a good stdlib replacement, like apr or glib or CRuby, then it is solid.
<LadyRainicorn> razrunelord: 3.14
batman has joined #ruby
<lagweezle> Huh. So, Glu is apparently deprecated, but you want to use it ...
antiquus has quit [Quit: Leaving]
<centrx> razibog, What is the point of that?
<Davey> I'm having issues compiling when installing the pgsql gem on OSX Mavericks (latest), this is the errors I'm seeing. https://gist.github.com/dshafik/e77c049d011ef9bcb9d9 — I'm not entirely sure what to google for appropriate troubleshooting
batman is now known as Guest62416
<LadyRainicorn> 22/6 is a pretty terrible approximation btw.
<FailDrain> meh I'll just try java instead and see how far I get before I rip my teeth out
pfg has joined #ruby
firewater has joined #ruby
<Tachoh> FailDrain: i fyou are going ot use java, you should use scala or c# instead
<Tachoh> if*
<RubyPanther> razrunelord: you can also use my pi_pie gem :) it provides a up 1 million digits of pi
<Tachoh> i can tell you this with 8 years of confidence.
<LadyRainicorn> I think FailDrain is probably a drain of fail.
<RubyPanther> a failed drain
<LadyRainicorn> Wht do you limit to 1 million? ;p
<LadyRainicorn> Worse, a drain of fail.
ebetancourt has joined #ruby
<FailDrain> LadyRainicorn: I'm a prototyper currently with doorways to greatness
joelroa has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<firewater> I have a quesetion about hashes. When I do this: @object[:symbol], instead of returning the value, it returns the key,value (:symbol=>value). Why is this, I thought it shouldn't be doing this?
<LadyRainicorn> I see only an abyss of failure.
TuxLyn has joined #ruby
Monk_code has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Brolen has quit [Ping timeout: 252 seconds]
<FailDrain> LadyRainicorn: hmm I could say that about bjourne stroustrep
<LadyRainicorn> Like a black hole without Hawking radiation.
<RubyPanther> LadyRainicorn: because the world record PI calculation results a couple years ago were released in 1 meg zipfiles and I bundled the first package :)
<firewater> Anyone?
Sthebig has joined #ruby
<centrx> firewater, Slow down
<RubyPanther> LadyRainicorn: there is also a constant for the Feynman Point, which is as much as most people should need
ylluminate has joined #ruby
<firewater> centrx: I was just asking was all. Not rushing anyone.
<centrx> firewater, It should not do that. I doubt that it does.
<LadyRainicorn> firewater: That is ode.
<LadyRainicorn> odd
<LadyRainicorn> It is likely an issue with your code.
papito has joined #ruby
<centrx> firewater, Perhaps value is :symbol => value
closer has quit [Ping timeout: 252 seconds]
mark_locklear has quit [Ping timeout: 272 seconds]
<firewater> centrx, its shouildn't be, but I can post my code I guess. I'm learning ruby right now and working on puzzles. THe result of the test comes out as that though.
<centrx> !paste
Es0teric has joined #ruby
<centrx> helpa doesn't do anything, does it
<havenwood> razrunelord: (22/7r.to_f).round(2) #=> 3.14
<LadyRainicorn> wow Hanmac1
<LadyRainicorn> That is so awful.
FailDrain has quit [Quit: Always try to be modest, and be proud about it!]
petey has joined #ruby
closer has joined #ruby
Hanmac1 is now known as Hanmac
<centrx> >> object = { symbol: "value" }; object[:symbol]
<eval-in> centrx => "value" (https://eval.in/101405)
<razrunelord> havenwood: thanks
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nomenkun has joined #ruby
blackmesa has quit [Remote host closed the connection]
<centrx> firewater, Okay, Hash.new(obj) does not create a hash out of obj
blackmesa has joined #ruby
<centrx> firewater, obj is the default value for the hash
St_Marx has quit [Quit: Ex-Chat]
<centrx> firewater, You may be looking for Hash[obj], but hard to say without know what hash_input is
<firewater> sigh :/.
Ziarkaen has quit [Ping timeout: 245 seconds]
yarou has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<firewater> The input is this: :f=>100
<jsilver> THIS JUST IN: Cigarettes completely safe
<centrx> firewater, Okay, then it is already a hash, you don't need to convert it to a hash
<havenwood> razrunelord: Or this will work on more Rubies: 22.fdiv(7).round(2)
LiohAu has quit [Ping timeout: 245 seconds]
<firewater> Right, so I have to make a has object though first right? THen input that stuff into the hash?
Salve has joined #ruby
<havenwood> razrunelord: (The rational literal wasn't added until 2.1.)
<centrx> firewater, a "has object" ?
Guest62416 has quit [Ping timeout: 260 seconds]
<LadyRainicorn> Has
<firewater> centrx: *hash
<LadyRainicorn> .new
OdNairy has joined #ruby
JacobHayes has quit [Remote host closed the connection]
<havenwood> razrunelord: Or: (22 / 7.0).round(2)
<razrunelord> havenwood: Thanks for the different solutiosn!
<havenwood> razrunelord: no prob!
<centrx> firewater, hash_input is a hash, so you don't need to do anything to it to make it a hash
<centrx> firewater, @temperature_reading = hash_input
noop has joined #ruby
jonahR has joined #ruby
makara has joined #ruby
<LadyRainicorn> hash = hash.to_h if hash.is_?(Hash)
meatherly has joined #ruby
<firewater> Ok, maybe I'm confused then. So, this ":f=>50" makes a hash. I don't have to do Hash.new?
<LadyRainicorn> a
<centrx> firewater, You may or may not want to duplicate it, so that @temperature_reading does not refer to the previous object
<centrx> firewater, ":f=>50" makes a string because of the quotation marks
<havenwood> firewater: The most basic idiomatic way to create a new Hash is to use a hash literal: {}
<centrx> firewater, The string just happens to look like the output of hash.inspect
<havenwood> firewater: { key: 'value' }
Bira has joined #ruby
<firewater> Ok, I fixed it then.
kenavr has joined #ruby
<firewater> I'll post the code and you can tell me what you all think, it seemed to fix it though.
stryek has joined #ruby
TuxLyn has left #ruby ["Leaving"]
<centrx> firewater, You don't need to declare the data type of a variable in Ruby
stonevil has quit [Quit: Computer has gone to sleep.]
danijoo has quit [Read error: Connection reset by peer]
<lagweezle> So ... how often are people aggresively bad about asking for help in here? O.o
<centrx> firewater, In fact, @temperature_reading can be changed to be anything at any time
<firewater> centrx: I guess you are right.
<Spami> I'm not sure why an url like this: http://domain/search/submit.php?config["sipssys"]=http://www.google.com/humans.txt? is returning an error in ruby: "bad URI(is not URI?)"
danijoo has joined #ruby
<firewater> centrx: That one confuses me, but I guess I will have to just understand it as that.
meatherly has quit [Read error: Connection reset by peer]
<centrx> Spami, I don't know, but it looks pretty bad
<firewater> centrx: It seems strange to me though.
sambao21 has joined #ruby
zachallett has quit [Remote host closed the connection]
meatherly has joined #ruby
<centrx> firewater, Do you know other programming languages?
ndrei has joined #ruby
<havenwood> firewater: In most recent stable Ruby you can use a double splat to build a Hash: def initialize(**hash_input); @temp = hash_input ...
<LadyRainicorn> Spami: That is not a valid URI.
<firewater> centrx: I was learning java in college.
<firewater> centrx: I work a full time job though, starting learning ruby a while ago.
<centrx> firewater, Okay, it is called "dynamic typing". Java uses "static typing"
<LadyRainicorn> (The trailing '?' must be escaped.)
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<Spami> ah damn
tjsousa has quit [Quit: Computer has gone to sleep.]
asmodlol has joined #ruby
<Spami> we are getting spammed with weird thing lately.
<firewater> centrx: Basically, if I use {} or :f=>50, that turns the thing into a has then, the object?
Bira has quit [Ping timeout: 260 seconds]
JacobHayes has joined #ruby
<LadyRainicorn> Likely pentesting.
<firewater> aka, @t={} or @t= :f=>50 equals a has now @t is a hash now?
<havenwood> firewater: checkout this example: https://gist.github.com/havenwood/756cc8746a370749b664
JacobHayes has quit [Remote host closed the connection]
<LadyRainicorn> :f=>50 is only a Hash inside a method call.
<centrx> firewater, {} specifies a Hash. :f => 50 is the syntax for a hash, it cannot be used separately.
<havenwood> firewater: you can just set your instance variable directly to the hash you created
<LadyRainicorn> (Okay, also [] and a few other places)
<AntelopeSalad> does anyone have a good guide for testing thor driven command line apps that doesn't depend on failspec and cucumber?
Hanmac1 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
<firewater> Ok, I'm still semi confused. But I think I know what is going on. I may need to review hashes again.
ktun has quit []
<firewater> Basically though, @t = :f=>50, now @t is a hash correct?
meatherly has quit [Ping timeout: 260 seconds]
<centrx> havenwood, Use parentheses!
_Andres has joined #ruby
Xiti has quit [Read error: Connection reset by peer]
<LadyRainicorn> no.
<firewater> LadyRainicorn: Is that no to me?
<LadyRainicorn> @t = {f: 50}
<LadyRainicorn> Yes.
Xiti has joined #ruby
Brolen has joined #ruby
<havenwood> firewater: Normally you must use the hash literal `{}`. When you don't have to it is syntactic sugar sometimes referred to as a "naked hash".
<firewater> Ok, let me post the test and the code. Because that is what I am seeing going on.
Hanmac has quit [Ping timeout: 252 seconds]
ktun has joined #ruby
zachallett has joined #ruby
kenavr has left #ruby [#ruby]
<LadyRainicorn> so sexy
burlyscudd has joined #ruby
ktun has quit [Client Quit]
Sthebig has quit [Ping timeout: 265 seconds]
mneorr has joined #ruby
<havenwood> firewater: you might want to also checkout Ruby keyword arguments
<centrx> firewater, Temperature.new(:f => 50) is implicitly converted to Temperature.new({:f => 50})
noarthur has quit [Ping timeout: 246 seconds]
<firewater> centrx: So, basically, its done by ruby on its own?
<firewater> centrx: In the background I guess?
<centrx> firewater, Yes, and @t = :f => 50 is not implicitly converted
Xiti has quit [Client Quit]
mando has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
<firewater> centrx: Ok, I think I know what is going on then.
<firewater> Basically, my code works, but its done because ruby knows I'm making a hash object.
<havenwood> firewater: to implicitly convert either do `**hash_input` or `f: keyword_style`
Xiti has joined #ruby
mojjojo has quit [Quit: mojjojo]
wildroman2 has joined #ruby
<firewater> Ok, I think I know what going on.
<firewater> I will just keep trying to play with it and code and try to not bug you guys more with this.
<havenwood> firewater: your Temperature code works with **, assuming you're using a modern enough Ruby to supports it
<firewater> havenwood: I'm using ruby 1.9.3.
<havenwood> firewater: Then no keyword arguments and no **.
pwh has quit []
Monk_code has quit [Remote host closed the connection]
<firewater> Ok, a lot of this might be going over my head. Sorry new to this.
<firewater> But have to start somewhere.
<havenwood> firewater: Update to 2.0+ at once!
<centrx> havenwood is speaking advanced expert instead of noob simple
gja has joined #ruby
b00stfr3ak has quit [Read error: Connection reset by peer]
<firewater> havenwood: I may in a bit, I am learning with this for now.
<havenwood> firewater: Update to the latest stable Ruby so you don't have to learn the janky workarounds to what are now sugary solutions.
noop has quit [Ping timeout: 260 seconds]
<havenwood> firewater: Or learning 1.9's way you will learn stuff about hashes too I'm sure. :)
<centrx> firewater, Don't listen to him! Stick with what you are doing!
<havenwood> firewater: But then update!
<havenwood> centrx: Listen to ruby-core!
<firewater> I plan on sticking with 1.9.3, when it makes a big difference or get good enough, I may update later.
cmedeiros has quit [Ping timeout: 260 seconds]
<havenwood> centrx: "We highly recommend that you upgrade to Ruby 2.1 or 2.0.0 as soon as possible."
<firewater> I get good enough at ruby that is.
<mjc_> you would be better off learning 2.1
<mjc_> start with what is modern
<centrx> ruby-core says "Consolidate all deprecation messages to one or more helper methods"
alvaro_o has joined #ruby
<centrx> I would say learning hashes makes more sense pre-keyword-arg-syntax
<firewater> Ok, anyhow back to coding. Thanks for everyones help :).
<havenwood> 2.1 is the best place to start!
tvw has quit [Ping timeout: 245 seconds]
<mjc_> you wouldn't recommend teaching old english or old science or history as current news, there's no reason to suggest an old version of a language as a starting point either
kenneth has joined #ruby
<centrx> Thou spleeny hasty-witted popinjay!
bklane has quit [Quit: Leaving...]
<mjc_> you can learn the pre-keyword-arg stuff without needing to go back to 1.9.3
<shevy> LadyRainicorn you are back here!
Hanmac has joined #ruby
<centrx> mjc_, It is more like teaching advanced vocabulary before learning basic vocabulary
<mjc_> centrx: you can do that on 2.1 just fine
<centrx> mjc_, And schools still teach the Bohr model as an introduction
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
<mjc_> no reason to advocate going back to an older version to learn it
<centrx> mjc_, and "old history"? What is that? History is as old as it is
<centrx> mjc_, He is not going back, he is already there
<mjc_> I didn't say old history
<mjc_> they do it in modern textbooks, you don't suggest an old textbook
<centrx> mjc_, You are advocating he stop what he is doing and try to install Ruby again
<LadyRainicorn> Yes hihi shevy!
<centrx> mjc_, That is going back
<centrx> mjc_, Modern history textbooks are shit
rayners has joined #ruby
<LadyRainicorn> mjc: well they do.tend to teach the Bohr model first...
<havenwood> centrx: i don't think the few rough edges that were shaved off are worth learning, nicer to just start with 2.0+, though if your point is to get going asap with coding and not focus right away on tooling i think it has some merit
<mjc_> centrx: when you upgrade an app you are upgrading, not going back
Hanmac1 has quit [Ping timeout: 260 seconds]
<centrx> mjc_, He is stopping his learning to re-do something he already did
senayar has quit [Remote host closed the connection]
<havenwood> centrx: but nothing about 1.9 is worth looking at compared to 2.0+
<mjc_> to re-do something he should have started with and didn't do
ruby429 has quit [Ping timeout: 245 seconds]
ikaros has quit [Quit: Ex-Chat]
Xiti` has joined #ruby
wildroman2 has quit [Remote host closed the connection]
<centrx> mjc_, If a new textbook is published in the middle of the semester, would you advocate the class buy the new text book and start reading it from the beginning?
<mjc_> false analogy
<AntelopeSalad> is it normal to gitignore the Gemfile.lock file in a gem repo?
gja has quit [Read error: Connection reset by peer]
wildroman2 has joined #ruby
<LadyRainicorn> No.
<AntelopeSalad> in an application it seems normal to have it for sure, but what if your repo is just a gem?
saarinen has joined #ruby
<mjc_> centrx: you can switch to 2.0 and 2.1 and be able to learn both mechanisms when appropriate, everything you can't get in 2.x that is in 1.9 are just bugs
<mjc_> that is not starting over
tjsousa has joined #ruby
nanoyak has joined #ruby
<LadyRainicorn> It would only be there if it was being used as an application.
pel_daniel has left #ruby [#ruby]
<havenwood> AntelopeSalad: Yeah, it is normal.
<havenwood> LadyRainicorn: Which do you mean?
<slash_nick> You don't need a Gemfile.lock in a gem
<havenwood> ^
<AntelopeSalad> k, so gitignore it then for gem repos?
<slash_nick> It means jackshit except for to your dev environment for working on that gem
<AntelopeSalad> the same can be said for the .gem file too
Xiti has quit [Ping timeout: 252 seconds]
<havenwood> AntelopeSalad: .gitignore your Gemfile.lock in a gem but don't in an app
Xiti` has quit [Client Quit]
<AntelopeSalad> yeah
<slash_nick> ^
Xiti has joined #ruby
alexherbo2 has joined #ruby
<centrx> "Class, everyone stop what you are doing. An operating system update was released. Let's everyone download and install the update."
<slash_nick> which centrx
<AntelopeSalad> havenwood: what do you guys use to test your CLIs?
sambao21 has quit [Quit: Computer has gone to sleep.]
<havenwood> AntelopeSalad: You mean like Minitest, Bacon, Rspec?
wildroman2 has quit [Ping timeout: 272 seconds]
<AntelopeSalad> havenwood: yeah i would prefer to use minitest if possible
<mjc_> centrx: again, false analogy, there is no point in explaining this to you if you are just going to pull irrelevant crap out of your hat
stonevil has joined #ruby
<LadyRainicorn> centrx: Basically unless you want to get rooted.
starfox21 has joined #ruby
<AntelopeSalad> the only guides i've seen use Aruba and very custom rspec bs
<centrx> mjc_, It is very relevant.
pel_daniel has joined #ruby
<centrx> mjc_, There is nothing wrong with 1.9
<AntelopeSalad> i tried looking at the rails source to see how they test their cli but i almost feinted from the indirection
<mjc_> starting with 1.9 means you are starting from an inaccurate representation of what ruby actually is
zB0hs has joined #ruby
zB0hs has quit [Max SendQ exceeded]
mojjojo has joined #ruby
<mjc_> it means all the code you write has to use 1.9 mechanisms and cannot use any 2.x features
yacks has quit [Ping timeout: 252 seconds]
<mjc_> starting with 2.1 means everything is available to you
gnephiak has quit [Quit: Konversation terminated!]
<havenwood> AntelopeSalad: Have you looked at Minitest's #assert_output yet?
tjr9898 has quit [Remote host closed the connection]
<centrx> mjc_, Maybe he should just wait until 2.2 is released before he starts learning?
<mjc_> if you have started learning to do a thing that is not used anymore, you are learning a bad habit and should stop
<AntelopeSalad> havenwood: nope but i'm not really sure how to even begin testing the cli itself
<centrx> Sounds like Shiny New Toy Syndrome
zeade has quit [Quit: Leaving.]
reset has joined #ruby
<AntelopeSalad> i think the key will be to remove all of my code from the thor commands and making them separate classes
<LadyRainicorn> Yay shiny!
<mjc_> centrx: you keep throwing out strawmen and false analogies, I'm done trying to talk you into learning to reason
<centrx> mjc_, Ruby 1.9 is used a lot
<havenwood> AntelopeSalad: Or you can redirect stdout, there is a really good RubyTapas episode on that, but it is one behind the $9 pay wall
<centrx> mjc_, 1.8 is still used
<mjc_> centrx: it is not the current state of ruby
cmedeiros has joined #ruby
<centrx> mjc_, You simply do not see how they are relevant.
<mjc_> I do
<centrx> Negatory
<AntelopeSalad> havenwood: oh, i don't subscribe to that site unfortunately
<mjc_> if you learn what is available, if you need 1.9 or 1.8 you can learn them later
* LadyRainicorn recommends centrx learn FORTRAN.
santiago has joined #ruby
<havenwood> AntelopeSalad: subscribe for one month to get all back episode then unsubscribe
<centrx> mjc_, Same is true for Ruby 2.0 and Ruby 2.1
<mjc_> I'm done as you have been continually dishonest
<centrx> You must be very wise.
danijoo has quit [Read error: Connection reset by peer]
<AntelopeSalad> basically i'm after some type of setup where i can be like "run my_cli with some options/arguments and make sure these outputs happen"
blackmesa has quit [Remote host closed the connection]
<mjc_> you mischaracterize what I say repeatedly and claim it is what I am saying, that is dishonest
<centrx> LadyRainicorn, C and Assembler are good to learn
<centrx> mjc_, Perhaps I am merely too stupid to understand your brilliant statements?
danijoo has joined #ruby
blackmesa has joined #ruby
ultraflash3 has quit [Remote host closed the connection]
<LadyRainicorn> Those are far too new.
Sthebig has joined #ruby
<LadyRainicorn> FORTRAN is a much safer choice.
<slash_nick> I use 1.8.5 on some servers at work. I don't particularly need any of the newness, and the older version of ruby doesn't make our environment any less stable.
UofAdev has quit [Ping timeout: 272 seconds]
<havenwood> slash_nick: Security vulnerabilities?
<AntelopeSalad> havenwood: also what would you do if your cli has side effects?
<AntelopeSalad> like if it's a generator of some sort and creates files on your FS
obs_ has quit [Quit: Konversation terminated!]
Monk_code has joined #ruby
<AntelopeSalad> do you just run them and delete the files after?
<centrx> LadyRainicorn, I do not know much about it, but I think learning Basic, C, or ABC/Python covers most of Fortran
SloggerKhan has joined #ruby
<AntelopeSalad> or is there some way to mock out the FS but still somehow ensure the tests pass?
<slash_nick> havenwood: I don't think i'm particularly vulnerable parsing files on the local file system
<centrx> s/or/and
<LadyRainicorn> Why would you learn those?
<LadyRainicorn> Fortran is still in use.
<centrx> LadyRainicorn, I already did. C is used more than Fortran
<LadyRainicorn> C hasn't had enough time to mature yet.
_reset has joined #ruby
ndrei has joined #ruby
santiago is now known as loc22
<LadyRainicorn> It may be the popular thing right now, but that's no indication of lasting stability.
tjr9898 has joined #ruby
<centrx> LadyRainicorn, I have had ENOUGH of your disohnest mischaracterizations and false analogies! This is outrageous!
reset has quit [Ping timeout: 245 seconds]
angusigu1ss has joined #ruby
sambao21 has joined #ruby
<lethjakman> don't feed the trolls.
<LadyRainicorn> l i e s
jfelchner has quit [Read error: Connection reset by peer]
* LadyRainicorn is attempting to start fusion and create the troll star.
<centrx> I am convinced. I should learn Fortran.
JacobHayes has joined #ruby
ylluminate has quit [Quit: Bye!]
Lewix has joined #ruby
aspires has quit []
burlyscudd has quit [Quit: Leaving.]
andrewdublin has joined #ruby
<RubyPanther> COBOL is used more than C
* LadyRainicorn is glad she could be helpful in encouragin proper thought.
thesheff17 has joined #ruby
<centrx> Hmm. Apparently they changed the name of FORTRAN to "Fortran". This doesn't seem stable at all...
angusigu1ss has quit [Ping timeout: 252 seconds]
<centrx> and they added generics to C2011 ...
jonah_k has quit [Remote host closed the connection]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
<RubyPanther> Fortran is important in science because it doesn't react with the harsh cleaners used to protect ivory towers.
jonahR has quit [Quit: jonahR]
starfox21 has quit [Ping timeout: 252 seconds]
<Hanmac> i warn you guys ... you dont want me to write C code ;P
<RubyPanther> If you think bit rot is bad, you've never seen a tower with NIH erosion
kirun has joined #ruby
JacobHayes has quit [Read error: Connection reset by peer]
<RubyPanther> rb_funcall(rb_mKernel,rb_intern("puts"), 1, rb_str_new2("Do it Hanmac!"));
JacobHayes has joined #ruby
asteros has quit [Quit: asteros]
asteros has joined #ruby
<centrx> At least we can all agree, PHP is an abomination and a scourge on the face of the earth.
<RubyPanther> PHP is great. The scourging prepared clients for the switch to Ruby.
<RubyPanther> prepares
<LadyRainicorn> PHP might be pretty useful in a few decades.
Advocation has quit [Quit: Advocation]
<LadyRainicorn> Just needs more stability
einarj has joined #ruby
w1zeman1p has quit [Remote host closed the connection]
aspires has joined #ruby
mojjojo has quit [Quit: mojjojo]
drago777 has joined #ruby
freezey has quit [Remote host closed the connection]
camilasan has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ndrei has quit [Ping timeout: 260 seconds]
Rainicorn has joined #ruby
SHyx0rmZ has joined #ruby
JacobHayes has quit [Remote host closed the connection]
stonevil has quit [Quit: Computer has gone to sleep.]
senayar has joined #ruby
mojjojo has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
andrewdublin has quit [Ping timeout: 245 seconds]
tvw has joined #ruby
LadyRainicorn has quit [Ping timeout: 248 seconds]
mneorr has quit []
Sawbones has joined #ruby
Yoona- has joined #ruby
Yoona- has quit [Client Quit]
rezzack has joined #ruby
maletor has joined #ruby
<lpvn> The tools we use have a profound (and devious!) influence on our thinking habits, and, therefore, on our thinking abilities.
mojjojo has quit [Client Quit]
<lpvn> C --"the infantile disorder"--, by now nearly 50 years old, is hopelessly inadequate for whatever computer application you have in mind today: it is now too clumsy, too risky, and too expensive to use.
aspires has quit []
<lpvn> C++ --"the fatal disease"-- belongs more to the problem set than to the solution set.
axsuul has quit [Ping timeout: 248 seconds]
<lpvn> It is practically impossible to teach good programming to students that have had a prior exposure to Java: as potential programmers they are mentally mutilated beyond hope of regeneration.
dingus_khan has joined #ruby
<lpvn> The use of C# cripples the mind; its teaching should, therefore, be regarded as a criminal offence.
<lpvn> centrx, don't you agree? lol
gja has joined #ruby
senayar has quit [Ping timeout: 252 seconds]
<centrx> I have successfully avoided Java
<centrx> It causes brain damage.
pranny has quit [Quit: Leaving.]
<shevy> lpvn yeah, that is why I stopped using vim as my main editor
Celm has quit [Remote host closed the connection]
<shevy> it interferred with my brain too much
<shevy> ruby is very close to a natural way of problem-solving
crus has joined #ruby
Celm has joined #ruby
<lethjakman> shevy: really? I feel like if you use vim for a couple months it becomes really natural.
koalalla1a is now known as koalallama
<shevy> I used it for about two years heavily
dubsteph has joined #ruby
Speed has quit [Ping timeout: 260 seconds]
andrewdublin has joined #ruby
meatherly has joined #ruby
<lpvn> shevy, for me ruby is a no nonsense dynamic typed class-based OO language
Es0teric has quit [Remote host closed the connection]
<shevy> lpvn hmm how do you define OO language ;)
Celm has quit [Remote host closed the connection]
nisstyre has joined #ruby
meatherl_ has joined #ruby
<shevy> razrunelord I dont even think I understand the question
meatherly has quit [Read error: Connection reset by peer]
<shevy> he wants to call a method only once?
<lpvn> shevy, a language that adheres more or less to the OO paradigm? lol
tjr9898 has quit [Remote host closed the connection]
gja has quit [Read error: Connection reset by peer]
<shevy> razrunelord simplest solution is to just use a flag. set it to nil on startup of the class, true otherwise
deepy has quit [Ping timeout: 245 seconds]
<shevy> lpvn no I mean, what exactly is the OO paradigm specifically. for instance ruby is rather lenient about private vs public
<shevy> my favourite explanations are those close to how Alan Kay sees OOP
<shevy> I dont remember whether he spoke about private vs. public ever
burlyscudd has joined #ruby
<havenwood> razrunelord: bonus points, if you're caching the value `nil`
stkowski has joined #ruby
OdNairy has joined #ruby
trickyhero_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
freezey has joined #ruby
mark_locklear has joined #ruby
Shidash has joined #ruby
meatherl_ has quit [Ping timeout: 252 seconds]
andrewdublin has quit [Ping timeout: 252 seconds]
TripTastic is now known as JBreit
<havenwood> shevy: i think that answer is right, anything in the lineage of Smalltalk
fedesilva has quit [Remote host closed the connection]
<havenwood> shevy: just a family tree
einarj has quit [Remote host closed the connection]
res0nat0r has quit [Quit: Textual IRC Client: www.textualapp.com]
someword has left #ruby [#ruby]
CaptainKnots has quit [Quit: bazinga!]
<bricker`LA> Is this honestly the "best" (safest, clearest) way to add query params to a URL? https://gist.github.com/bricker/8982965
<bricker`LA> It seems so... verbose.
loc22 has quit [Quit: Konversation terminated!]
blackmesa has quit [Remote host closed the connection]
CaptainKnots has joined #ruby
blackmesa has joined #ruby
SloggerKhan is now known as Sloggerkhan
trickyhero_ has quit [Read error: Connection reset by peer]
jhass|off is now known as jhass
<centrx> bricker`LA, Oh just skip using URI
<centrx> bricker`LA, If you have Rails, you can use to_param to make the query string out of a hash
<centrx> Rails/ActiveSupport
<bricker`LA> centrx: ahhhhh
maximski has joined #ruby
<centrx> Build the string with your bare hands!
<centrx> (and to_param)
<bricker`LA> centrx: well
<bricker`LA> My main problem is that I don't really want to be checking for '?' in the string to determine how to append the query params to the URL
asteros has quit [Quit: asteros]
jerius has quit [Ping timeout: 248 seconds]
<centrx> bricker`LA, Use chomp?
ndrei has joined #ruby
Rainicorn has quit [Ping timeout: 272 seconds]
<bricker`LA> in what way?
<centrx> >> "www.garbagebook.com/".chomp("?")
tjr9898 has joined #ruby
benlieb has joined #ruby
<bricker`LA> centrx: that wouldn't work if there were actual query params though
<centrx> oh I see
<centrx> bricker`LA, Why is it so unpredictable what is going to be in url/params ?
werdnativ has quit [Quit: werdnativ]
danijoo has quit [Read error: Connection reset by peer]
jrist is now known as jrist-afk
danijoo has joined #ruby
jrist-afk is now known as jrist
rootshift_ has joined #ruby
Beoran has joined #ruby
DaniG2k has joined #ruby
<havenwood> razrunelord: if defined? @result1; @result1; else ...
raphaelivan has quit [Quit: Leaving.]
Spami has joined #ruby
<bricker`LA> centrx: Because it's a user-submitted URL. I'll just use the URI.decode_www_form bit, it works, I was just hoping there was something a little easier
jclrb has joined #ruby
<terrellt> razrunelord: https://github.com/matthewrudy/memoist/blob/master/lib/memoist.rb If you want the complicated solution.
slash_nick is now known as slash_nic
<razrunelord> Thanks shevy, havenwood, terrellt
gr33n7007h has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
<razrunelord> havenwood: according to the code, nil won't be cached since we are checking that in the initial conditional right?
Monk_code has quit [Remote host closed the connection]
enebo has joined #ruby
nism has quit [Quit: Leaving]
<havenwood> razrunelord: I mean if the result of the very expensive calculation is `nil` the expensive calculation will run again because it won't get caught and returned.
<havenwood> razrunelord: @result1.nil? will be true, yet it is indeed the cached value
<havenwood> razrunelord: so running expensive again isn't right, but is what would happen
<lethjakman> .nil? is expensive?
<havenwood> lethjakman: no, the logic in the question is a `return unless @cache.nil?; expensive here` in a method
<lethjakman> ohhh ok
<lethjakman> yeah I just saw part of it then.
<havenwood> lethjakman: return @cache unless @cache.nil i mean
<havenwood> nil?
<lethjakman> that makes sense .
diegovio1 is now known as diegoviola
aspires has joined #ruby
Celm has joined #ruby
Speed has joined #ruby
Zai00 has joined #ruby
momomomomo has quit [Quit: momomomomo]
asteros has joined #ruby
momomomomo has joined #ruby
rootshift_ has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
Xiti` has joined #ruby
<havenwood> razrunelord: If you can use gems, Adamantium is one option for achieving the task: https://gist.github.com/havenwood/b1c392bd6c9e66ec4ef6
Xiti` has quit [Read error: Connection reset by peer]
Celm has quit [Remote host closed the connection]
mando has quit [Ping timeout: 252 seconds]
caveat- has quit [Ping timeout: 252 seconds]
wildroman2 has joined #ruby
<havenwood> razrunelord: updated Gist with working code >.>
Celm has joined #ruby
pcourt has joined #ruby
yarou has quit [Remote host closed the connection]
klaut has joined #ruby
yarou has joined #ruby
pranny has joined #ruby
Xiti has quit [Ping timeout: 252 seconds]
<havenwood> razrunelord: and again updated to make it simpler, but you'll get the point - like the question asks for you can just pick any method and have it get memoized! ;)
caveat- has joined #ruby
jamto11 has joined #ruby
jonah_k has joined #ruby
TMM has joined #ruby
yarou has quit [Remote host closed the connection]
wildroman2 has quit [Ping timeout: 252 seconds]
Megtastique has quit []
<terrellt> havenwood: I think the point of the question is write a class method that defines other methods as memoized versions of their previous selves.
<havenwood> terrellt: That makes sense. But sometimes using a library to do the job is a good answer, even for an interview question.
davedev24 has left #ruby [#ruby]
klaut has quit [Ping timeout: 248 seconds]
zxq9 has quit [Quit: Konversation terminated!]
makara has quit [Ping timeout: 272 seconds]
<havenwood> terrellt: For sure better to also know how to actually do it yourself!
<razrunelord> havenwood: Thanks man!
<razrunelord> havenwood: is adamantium a part if the rails code base or a gem?
<terrellt> To an extent I'd use a gem too - good to have a track record of bugs and edge cases fixed already.
<havenwood> razrunelord: It is a gem.
<terrellt> razrunelord: I hope this isn't you preparing for that senior rails position.
<havenwood> razrunelord: gem install adamantium
asteros has quit [Quit: asteros]
<havenwood> razrunelord: It was created for axiom which powers ROM which is the exciting upcoming replacement for DataMapper.
<razrunelord> terrellt: no, I am just doing those questions for fun..and hope it helps in the process.
<terrellt> Cool
<razrunelord> terrellt: What if it was? :)
tjsousa has quit [Quit: Computer has gone to sleep.]
gengis_ has quit [Quit: Leaving...]
postmodern has joined #ruby
danijoo_ has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
sailias has quit [Quit: Leaving.]
gengis has joined #ruby
gengis is now known as tselatra
prc has joined #ruby
<terrellt> razrunelord: Then I hope you're a quick study.
slash_nic is now known as slash_nick
asteros has joined #ruby
Es0teric has joined #ruby
Megtastique has joined #ruby
digitalfiz has quit []
mityaz has quit [Quit: See ya!]
MyStartx has quit [Ping timeout: 245 seconds]
stonevil has joined #ruby
krisbulman is now known as [krisbulman]
mikepack_ has joined #ruby
<hanikazmi> Would someone mind helping me out with what's wrong with this? I just started ruby, and have been going through project euler
jerius has joined #ruby
<hanikazmi> As far as I can tell, the code is correct but it ends up maxing out my 16GB oif RAM
<terrellt> What's the goal?
mikepack has quit [Read error: Connection reset by peer]
senayar has joined #ruby
<hanikazmi> To find the longest Collatz sequence below a million
benlieb has quit [Quit: benlieb]
mansi has quit [Remote host closed the connection]
felixjet_ has quit [Read error: Connection reset by peer]
yfeldblum has quit [Remote host closed the connection]
felixjet_ has joined #ruby
yfeldblum has joined #ruby
ConstantineXVI has quit [Ping timeout: 265 seconds]
jonah_k has quit [Remote host closed the connection]
felixjet_ has quit [Read error: Connection reset by peer]
tjsousa has joined #ruby
sailias has joined #ruby
felixjet_ has joined #ruby
agent_white has joined #ruby
figgleberry has joined #ruby
jclrb is now known as jclrb|away
felixjet_ has quit [Read error: Connection reset by peer]
senayar has quit [Ping timeout: 246 seconds]
jerius has quit [Remote host closed the connection]
felixjet_ has joined #ruby
interactionjaxsn has joined #ruby
jerius has joined #ruby
jack_rabbit has joined #ruby
ConstantineXVI has joined #ruby
araujo has quit [Read error: Connection reset by peer]
felixjet_ has quit [Read error: Connection reset by peer]
baroquebobcat has joined #ruby
felixjet_ has joined #ruby
mansi has joined #ruby
vpretzel has quit [Quit: Adios!]
Advocation has joined #ruby
rm_ has quit []
<jhass> just don't store all sequences? instead store the so far longest one, longest = current if current.size > longest.size
soulcake_ has quit [Quit: ZNC - http://znc.in]
jclrb|away has quit [Read error: Operation timed out]
<jhass> and actually the question which starting number, so you could even reduce it to longest_start & longest_size
<jhass> also avoid using globals
S0da has quit [Remote host closed the connection]
meatherly has joined #ruby
tjr9898 has quit [Remote host closed the connection]
<terrellt> hanikazmi: Right, the trick is don't store so much info.
tselatra has quit [Read error: Connection reset by peer]
<terrellt> hanikazmi: That being said, that was a lot of fun!
wildroman2 has joined #ruby
tjsousa has quit [Quit: Computer has gone to sleep.]
<terrellt> Taking a while to calculate 1 million though.
Lewix has quit [Remote host closed the connection]
soulcake has joined #ruby
<terrellt> Looks like 837,799 at 525 sequences?
Azure has quit [Ping timeout: 245 seconds]
<hanikazmi> I was storing all of them to try and stop it calculation the entire sequence every time
pcourt has quit [Remote host closed the connection]
tselatra has joined #ruby
<hanikazmi> I figured storing a million digits wouldn't take more than 10mb or so
<terrellt> How are you supposed to know the sequence ends?
jlast has quit [Remote host closed the connection]
<terrellt> I'm guessing you can't assume it's 1.
dingus_khan has quit [Remote host closed the connection]
yarou has joined #ruby
meatherly has quit [Ping timeout: 248 seconds]
<viki> when you put binding pry in a line of a .rb file, and the pry sessions opens, all the variables you've assigned so far in the program up to that point should be available in the pry session, right? if that's not the case and there was some skipped stuff in the pry install, could that be the problem?
vlad_starkov has quit [Remote host closed the connection]
DaniG2k has quit [Ping timeout: 260 seconds]
senayar has joined #ruby
<hanikazmi> @terrellt The question says to end it at 1, as after 1 it just cycles between the same 3 numbers
sailias has quit [Quit: Leaving.]
workmad3 has quit [Ping timeout: 272 seconds]
<havenwood> terrellt: https://xkcd.com/710/
einarj has joined #ruby
dubsteph has quit [Ping timeout: 248 seconds]
firewater has quit [Quit: Page closed]
<havenwood> hanikazmi: `even?` is nice in place of `% 2 == 0`
vlad_starkov has joined #ruby
<havenwood> hanikazmi: here's my stab at it: https://gist.github.com/havenwood/8984010
<slowcon> havenwood: centrx: jhass: so i finally got the records to insert into the database! havenwood: i used the zip method to make the array pair, and then used the IMPORT method in sequel instead of INSERT.
<havenwood> slowcon: nice, grats!
chipotle has joined #ruby
momomomomo has quit [Ping timeout: 252 seconds]
<slowcon> havenwood: thanks man. can you take a look at my comment on the code(regarding duplicates) http://pastebin.com/WyB7ejAe
jobewan has joined #ruby
<terrellt> havenwood: You can do better, which is what he was trying to do now that I see the other answers.
phansch has quit [Quit: Leaving]
<terrellt> My numbers are off right now though, and I dunno why
maximski has quit [Ping timeout: 248 seconds]
<havenwood> terrellt: for sure you can do better, just having fun
burlyscudd has quit [Quit: Leaving.]
<havenwood> terrellt: question is whether you want performance, aesthetics, readability, conciseness, or some combo of the above? :P
DaniG2k has joined #ruby
<terrellt> Performance!
philcrissman has joined #ruby
camilasan has quit [Ping timeout: 260 seconds]
<havenwood> terrellt: ahh, in that case my path is for sure not a good one! ;O
<havenwood> i vote code golf!
<havenwood> okay, hrmm performance..
<hanikazmi> havenwood Thanks, but yeah I'm looking for performance
<terrellt> I'm getting 556 with this, which is wrong.
<terrellt> With what I'm working on*
carraroj has quit [Quit: Konversation terminated!]
<hanikazmi> I've solved it before in other langauges, I'm just trying to improve my solutions while learning ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
<terrellt> hanikazmi: I think your problem is you're storing it in array indices.
<hanikazmi> Didn't know about the even? method, thats useful
petey has quit [Remote host closed the connection]
<AntelopeSalad> havenwood: how do you actually use assert_output btw?
<AntelopeSalad> it always throw an error saying wrong arguments, i've never seen a ruby method like this before
tselatra has quit [Read error: Connection reset by peer]
petey has joined #ruby
sailias has joined #ruby
tselatra has joined #ruby
<AntelopeSalad> every "cheat sheet" i've looked at is incorrect (throws an error using their signature) and the official minitest page has no documentation on it at all
dingus_khan has joined #ruby
<hanikazmi> @terrellt What would you say is the largest size ruby arrays can handle without such a performance hit?
<bricker`LA> omg, how did people deploy before turbo-sprockets-rails / rails4
<terrellt> hanikazmi: You're just using the wrong data structure. Use a hash.
<bricker`LA> going on 20m just for precompile... this is silly
acoyfellow has joined #ruby
kpshek has joined #ruby
petey has quit [Ping timeout: 272 seconds]
tonni has joined #ruby
JacobHayes has joined #ruby
bluenemo has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
JacobHayes has quit [Remote host closed the connection]
werdnativ has joined #ruby
<bricker`LA> that was meant for #rubyonrails
<bricker`LA> I'm ashamed
lmickh has joined #ruby
spider-mario has quit [Remote host closed the connection]
<AntelopeSalad> i can't believe how hard it is to test a cli in ruby, it's the most unreasonable thing i've ever seen
Celm has quit [Remote host closed the connection]
DaniG2k has quit [Quit: leaving]
<yeboot> AntelopeSalad howso
<AntelopeSalad> yeboot: i have this custom method calls out to a thor "run" command to run a command
<AntelopeSalad> all i want to is check that it did the correct thing by looking at the output
<AntelopeSalad> i've spent about 90 minutes or so just trying to do this task
<eka> hi there... anyone knows that if in sinatra I can render variables in a sass file?
jhass is now known as jhass|off
<AntelopeSalad> assert_output doesn't do what you would think it would do, it only lets you "puts" stuff, you can't call your own methods that happen to write to stdout
ehaliewicz has joined #ruby
mib_mib has joined #ruby
<mib_mib> ENV['VERSION'] = '20140204032824' Rake::Task['db:migrate:redo'].invoke Rake::Task['db:migrate'].reenable ENV['VERSION'] = '20140212011025' Rake::Task['db:migrate:redo'].invoke
<mib_mib> I'm running this sequence of rake tasks - but the second one never runs - what gives?
<AntelopeSalad> there's also not a single guide on the entire internet that shows you how to write tests for a thor command line app
<agent_white> 'I'm sorry Dave...'
<terrellt> hanikazmi: There's one with a cache. https://gist.github.com/terrellt/b56e04fb404882098812
<AntelopeSalad> UNLESS you use some crappy cucumber extension
<terrellt> Global variables are terrible though, shoulda made a proper object to handle it.
jfoy has quit [Quit: jfoy]
ohwhoa has quit [Quit: woah!]
<havenwood> AntelopeSalad: It is capturing $stdout, not #puts in particular.
cmedeiros has quit [Ping timeout: 252 seconds]
<havenwood> AntelopeSalad: Do you want to capture STDOUT?
Advocation has quit [Quit: Advocation]
jamto11 has quit []
danijoo_ has quit [Read error: Connection reset by peer]
<terrellt> Runs in ~ 4.3s
<AntelopeSalad> havenwood: but when i do { run "which ps" } it tells me invalid arguments
mando has joined #ruby
danijoo has joined #ruby
<AntelopeSalad> havenwood: this is what i'm trying to do assert_output('...') { run('which ps') }
<havenwood> AntelopeSalad: what is #run there?
<AntelopeSalad> i figured it would compare ... to the result of run, but instead it says haha too bad wrong # of arguments
<AntelopeSalad> #run is the thor command that runs any command you tell it
lethjakman has quit [Ping timeout: 260 seconds]
<viki> hi, would anybody mind verifying that i correctly understand what "binding pry" is supposed to do? i thought when it gets to that line and opens a pry session, i could do something like foo.inspect on the variables in my program, but that's not working.
<havenwood> AntelopeSalad: I don't know what is happening in Thor land, unfortunately.
<Tachoh> node.js is a disgrace to computing
<AntelopeSalad> and upon running that command it spits out a thor style msg to stdout
<AntelopeSalad> like: run 'which ps'
<hanikazmi> @terrellt runs in 3s for me when I changed it to a hash
deception has quit [Quit: Goodbye]
<hanikazmi> thanks
Celm has joined #ruby
<terrellt> hanikazmi: Yup. Do you understand why it ate up memory?
<AntelopeSalad> it's basically impossible to test
wildroman2 has quit [Remote host closed the connection]
Czupa has quit [Ping timeout: 252 seconds]
venkat has quit [Remote host closed the connection]
<hanikazmi> No, still can't see it
<hanikazmi> Was it passing the entire $results on each recursion?
<havenwood> AntelopeSalad: Aha, you are dealing with the stdout in the subshell.
papito has quit [Ping timeout: 245 seconds]
<terrellt> hanikazmi: Ruby arrays are real arrays - when you set arr[857000] it initializes 856999 empty spots.
joelbrewer has joined #ruby
venkat has joined #ruby
platzhirsch has left #ruby [#ruby]
papito has joined #ruby
<havenwood> AntelopeSalad: Yeah, you have to dig deep for that. The RubyTapas episode covers it.
<havenwood> AntelopeSalad: IO.pipe
<havenwood> AntelopeSalad: Capturing output from subshells is tad tricky but totally doable.
<havenwood> a tad*
<AntelopeSalad> i'm just going to give up and not test my cli honestly, it's way too much effort
<AntelopeSalad> i shouldn't have to pay $10 just to test a cli
freezey has quit [Remote host closed the connection]
<terrellt> Lol
<hanikazmi> @terrellt I get that, but even at 1000000 indices and 1kb per indice, which is large, it shouldn't use more than 1GB
bluenemo has quit [Read error: Connection reset by peer]
iMe is now known as iMe_away
jtdowney has joined #ruby
bricker`LA has quit [Ping timeout: 260 seconds]
petey has joined #ruby
vlad_starkov has joined #ruby
<havenwood> AntelopeSalad: Just where I happen to know of a solution to your problem. Please find an answer any way you like.
<terrellt> Oh
Patteh has quit [Quit: leaving]
<terrellt> hanikazmi: Lol, you never gave up
<AntelopeSalad> havenwood: yeah, thanks for that but i'm not going to sign up and fork over $ for it
freezey has joined #ruby
<AntelopeSalad> i'll ask on SO later tonight and hope the internet pulls through haha
<terrellt> Wait...maybe you did. Hm
venkat has quit [Ping timeout: 252 seconds]
<hanikazmi> I'm trying to understand this so I know for next time. Are ruby arrays significatnly larger per indice than other languages?
Patteh has joined #ruby
Hanmac1 has joined #ruby
<mib_mib> hi all - can someone help me - i have a rake task, and inside that i'm trying to run other rake tasks more than once, but its not running the second rake task - i tried Rake::Task['db:migrate:redo'].reenable but that doesnt seem to work
<terrellt> hanikazmi: No. Something else must be happening.
Zai00 has quit [Quit: Zai00]
zachallett has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 248 seconds]
Aquilo has quit []
<slowcon> havenwood: ok so there is no way to check for duplicate values before inserting the way i have it written now as genre_db.import([:genre, :forum_id], genres.zip(genre_links))
jfoy has joined #ruby
cmedeiros has joined #ruby
<terrellt> hanikazmi: The only thing I can think of is recursion that many levels deep must be keeping an excessive amount of the stack in memory.
sparrovv has joined #ruby
havenwood has quit [Remote host closed the connection]
nomenkun has quit [Remote host closed the connection]
<iliketurtles> can anyone explain why,when using rbenv, my /vendor/bundler directory contains a bundler/gems directory with a few gems in it, and also a gems/ directory with seemingly ALL the gems for the project im working on?
Xeago has joined #ruby
<hanikazmi> @terrellt It recurses just as much with the has, but that one works just fine
nomenkun has joined #ruby
vlad_sta_ has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
sailias has quit [Quit: Leaving.]
schone has joined #ruby
<schone> hello
tjr9898 has joined #ruby
Xeago has quit [Remote host closed the connection]
sailias has joined #ruby
<schone> I'm using aws elastic beanstalk which comes with passenger+nginxc combo.... (its Passenger 4.0.20). I'd like to have available to me 'async.callback' so I could server responses asynchronously.... does anyone know how to achieve that with passenger?
<schone> I used to use Rainbows and that was extremely easy... now i'm a bit lost
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
timonv_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
nomenkun has quit [Ping timeout: 272 seconds]
tjr9898 has quit [Ping timeout: 248 seconds]
sailias has quit [Ping timeout: 246 seconds]
digitalfiz has joined #ruby
Azure has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
jfoy has quit [Quit: jfoy]
Astralum has quit [Ping timeout: 264 seconds]
* centrx is only a passenger passenger
dx7 has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 260 seconds]
dx7 has joined #ruby
jerius has quit [Remote host closed the connection]
venkat has joined #ruby
jerius has joined #ruby
Celm has quit [Remote host closed the connection]
jkamenik has quit [Quit: Leaving.]
jackneill has quit [Ping timeout: 245 seconds]
Xeago has joined #ruby
jonah_k has joined #ruby
dx7 has quit [Ping timeout: 252 seconds]
nisstyre has quit [Quit: brb]
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
digitalfiz has left #ruby [#ruby]
jfoy has joined #ruby
undert has quit [Ping timeout: 265 seconds]
axsuul has joined #ruby
failshel_ has joined #ruby
undert has joined #ruby
lfox has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
mojjojo has joined #ruby
stonevil has quit [Quit: Computer has gone to sleep.]
Celm has joined #ruby
nszceta has joined #ruby
Atw has joined #ruby
def_alec has joined #ruby
meatherly has joined #ruby
failshell has quit [Ping timeout: 252 seconds]
senayar has quit [Remote host closed the connection]
schone has quit [Quit: schone]
interactionjaxsn has quit [Remote host closed the connection]
failshel_ has quit [Ping timeout: 272 seconds]
gbt has joined #ruby
Tecan has joined #ruby
brennanM_ has joined #ruby
sergicles has quit [Quit: sergicles]
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
<Tecan> anyone here work for ccoin ?
petey has quit [Remote host closed the connection]
subbyyy has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
petey has joined #ruby
brennanMKE has quit [Ping timeout: 248 seconds]
quatron has joined #ruby
nfk has quit [Quit: yawn]
meatherly has quit [Ping timeout: 248 seconds]
nisstyre has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
rudisimo has quit []
stonevil has joined #ruby
<mib_mib> hi can someone help me debug this rake task? Is it a rake bug? The second rake task inside here doesnt run for some reason... http://pastie.org/8731226
lkba has joined #ruby
platzhirsch has joined #ruby
petey has quit [Ping timeout: 246 seconds]
<centrx> mib_mib, Might be related to changing the VERSION
<centrx> mib_mib, Perhaps rake notices the version does not match
<centrx> Perhaps the version does not have a file attached to it
<centrx> associated
Ziarkaen has joined #ruby
ebetancourt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ndrei has joined #ruby
ndrei has quit [Client Quit]
brennanM_ has quit [Read error: Connection reset by peer]
brennanMKE has joined #ruby
ndrei has joined #ruby
petey has joined #ruby
tjsousa has joined #ruby
lethjakman has joined #ruby
JasmeetQA has quit [Ping timeout: 248 seconds]
araujo has joined #ruby
oskarpearson has joined #ruby
rootshift_ has joined #ruby
<mib_mib> centrx: interesting thoughts - the files ar eboth there - if i comment out the other invoke, it still runs - something with the task params are messed though i think - reenable doesnt seem to work
tjsousa has quit [Ping timeout: 252 seconds]
fuhgeddaboudit has joined #ruby
quatron has quit [Quit: ChatZilla 0.9.90.1 [Firefox 27.0/20140127194636]]
<mib_mib> Rake::Task has some weird code, i.e. ` invoke if needed?` where needed method simply returns 'true' http://rake.rubyforge.org/classes/Rake/Task.html#M000121
mando has quit [Remote host closed the connection]
MrSamuel has joined #ruby
MrBy has joined #ruby
claymore has quit [Quit: Leaving]
schone has joined #ruby
krz has quit [Quit: WeeChat 0.4.2]
sdwrage has joined #ruby
<mib_mib> centrx: nope - no luck
ndrei has quit [Ping timeout: 260 seconds]
tkuchiki has joined #ruby
pu22l3r has joined #ruby
burlyscudd has joined #ruby
S0da has joined #ruby
brennanMKE has quit [Ping timeout: 265 seconds]
<Sou|cutter> mib_mib: maybe needed? is overridden in subclasses?
TMM has quit [Ping timeout: 260 seconds]
ffranz has quit [Quit: Leaving]
TMM has joined #ruby
<Sou|cutter> doesn't look like it. Maybe vestigial from some previous version
schone has left #ruby [#ruby]
TMM has quit [Remote host closed the connection]
kpshek has quit []
pu22l3r_ has quit [Ping timeout: 248 seconds]
MyStartx has joined #ruby
pierre1_ has joined #ruby
pavilionXP has quit [Ping timeout: 245 seconds]
Wolland has quit [Remote host closed the connection]
deepy has joined #ruby
deepy is now known as Guest84043
Brolen has quit [Remote host closed the connection]
kpshek has joined #ruby
Brolen has joined #ruby
dr0ff has joined #ruby
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mib_mib> Sou|cutter: mm maybe
kirun has quit [Quit: Client exiting]
spinx^ has joined #ruby
mansi has quit [Remote host closed the connection]
mocfive has quit [Remote host closed the connection]
mansi has joined #ruby
yarou has quit [Remote host closed the connection]
senayar has joined #ruby
CpuID has joined #ruby
CpuID has quit [Changing host]
CpuID has joined #ruby
evilbug has joined #ruby
Brolen has quit [Read error: Operation timed out]
<mib_mib> centrx: so it seems if after reenable i do ENV.delete 'VERSION' that i can re-run THE SAME migration again - but it doesn't seem like i can set ENV['VERSION'] to a new version
CpuID has quit [Remote host closed the connection]
ndrei has joined #ruby
mocfive has joined #ruby
senayar has quit [Read error: No route to host]
senayar has joined #ruby
starfox21 has joined #ruby
pavilionXP has joined #ruby
<Veejay> Hello, I was wondering... are Range#cover?, Range.include? and Range#member? the one and only same method?
<Sou|cutter> mib_mib: sometimes in widely-used libraries weird stuff like that sticks around because other people depend on it. Trying to maintain backwards-compatibility can be a real pain
<Sou|cutter> Veejay: nope
recurrence has joined #ruby
<Sou|cutter> cover? checks if a value is >= start and <= end
mansi has quit [Ping timeout: 260 seconds]
<Veejay> Nope, depends on exclude_true
<Veejay> According to the docs
<def_alec> monokrome: also, I think the full order would be: def(a,b,c="default",d="something",*args,**kwargs) if you wanted the full mix
<def_alec> sorry all, wrong language channel :p
<Sou|cutter> Veejay: well, trust the docs :)
jerius has quit [Ping timeout: 245 seconds]
rootshift_ has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
mocfive has quit [Ping timeout: 260 seconds]
<Veejay> I wanted to check twice because three different names for the same method seems a bit overzealous to me
<Sou|cutter> I'm not sure the diff between member? and include?
meatherly has joined #ruby
<Sou|cutter> actually I think those are the same
<Veejay> Yeah they are
<Sou|cutter> but cover? is definitely diff
meatherly has quit [Remote host closed the connection]
<Veejay> They even use include? in the example for member? in the docs
<Veejay> Sou|cutter: Might be, but the description isn't revealing
vim_shim has quit [Quit: Leaving]
<Sou|cutter> cover? is usually what you want
nisstyre has quit [Ping timeout: 252 seconds]
tselatra has quit [Remote host closed the connection]
schone has joined #ruby
<slowcon> centrx: could you take a look at the revised scope of my project? want to see how it looks http://pastebin.com/CwsrVnTC
<schone> did anyone ever use elastic beanstalk and yield it to use thin instead of passenger? or unicorn? or rainbows or anything but the damned passenger?
stonevil has quit [Quit: Computer has gone to sleep.]
<centrx> slowcon, Why does the genres table have genre_id and the subgenres table have subgenre_id?
<Veejay> Sou|cutter: The C source is definitely different, didn't even know you could see it in the docs, so I'll read that, thanks
meatherly has joined #ruby
wildroman2 has joined #ruby
<slowcon> centrx: these are both unique
tselatra has joined #ruby
mlpinit_ has quit [Remote host closed the connection]
<centrx> slowcon, I don't understand
pu22l3r has quit [Remote host closed the connection]
mlpinit has joined #ruby
Sawbones has quit [Remote host closed the connection]
<centrx> slowcon, genres.id is genre_id...
<slowcon> centrx: if you go here, you can see it perfectly http://www.clublandlv.com/forum.php
<mib_mib> centrx: i cant seem to find where in the docs the VERSION variable is used - is this hidden in a railtie for rake db:migrate:redo or in the migrator itself
pu22l3r has joined #ruby
<slowcon> centrx: scroll down to where it says "Dirty House Music"
someperson has quit [Ping timeout: 272 seconds]
jfoy has quit [Quit: jfoy]
<slowcon> centrx: click that link, note the URL. which brings you to a list of subforums, under that genre
Ziarkaen has quit [Remote host closed the connection]
Ziarkaen has joined #ruby
<platzhirsch> What would you use to unit test a web crawler for one domain? WebMock?
<centrx> slowcon, Yes?
<centrx> mib_mib, I understand it to be stored in the schema_migrations table
<slowcon> centrx: im not sure where you are confused. genre_id and subgenre_id are two different ids
wildroman2 has quit [Ping timeout: 246 seconds]
<mib_mib> centrx: i mean where is ENV['VERSION'] read in by the rake task i'm using - does rake even use this or is it used much later down
meatherly has quit [Ping timeout: 260 seconds]
<centrx> slowcon, Why is the a column "genre_id" in the genres table? What does it reference?
caveat- has quit [Ping timeout: 264 seconds]
<slowcon> centrx: it is the parent
<slowcon> centrx: to the subgenres
<centrx> slowcon, That is what the "id" column is for...
jfoy has joined #ruby
<slowcon> centrx: ID is auto increment that I was told to always use in all tables, for my own records
zeade has joined #ruby
srji has quit [Ping timeout: 252 seconds]
<centrx> slowcon, Yes
<slowcon> centrx: wrong logic?
pwh has joined #ruby
<centrx> slowcon, The auto-incremented primary key is the id of the record, so subgenres.genre_id should reference genres.id
veduardo has joined #ruby
<centrx> slowcon, genres (id, name)
caveat- has joined #ruby
tjr9898 has joined #ruby
<centrx> slowcon, subgenres (id, genre_id, name)
<centrx> That seems to be the organization you are looking for
<centrx> You do not need to create separate column to identify the row, they are already identified by id
geggam has quit [Remote host closed the connection]
Lewix has joined #ruby
nateberkopec has quit [Quit: Leaving...]
vlad_starkov has joined #ruby
cmedeiros has quit [Ping timeout: 246 seconds]
srji has joined #ruby
nisstyre has joined #ruby
<slowcon> centrx: i think we are on two seperate pages. im looking for a way to access the "genre_id" of the genres table, pass it to a Variable, and then run the script for that variable.
<slowcon> but to do it for each genre_id
sambao21 has quit [Quit: Computer has gone to sleep.]
kevind has quit [Quit: kevind]
echevemaster has joined #ruby
<centrx> slowcon, It is very irregular database design and I do not see the use of it
<centrx> slowcon, Dirty House Music has genre_id = 46, what is Genre 46 ?
rootshift_ has joined #ruby
hobodave has quit [Ping timeout: 245 seconds]
<slowcon> centrx: Genre 46 is Dirty House Music
<centrx> Genre 1 is Dirty House Music
<centrx> genres.id = 46 -> Dirty House Music
<centrx> err
<centrx> genres.id = 1 -> Dirty House Music
lkba has quit [Ping timeout: 252 seconds]
<centrx> So why are there two?
<slowcon> 46 is the unique selector
itadder has joined #ruby
<slowcon> =46
<centrx> Okay! Now it makes sense
vlad_starkov has quit [Ping timeout: 252 seconds]
<itadder> what is @name = name variable do
<itadder> what does @ do
someperson has joined #ruby
cantonic has quit [Ping timeout: 260 seconds]
<slowcon> centrx: sorry about not explaining that fully
einarj has quit [Remote host closed the connection]
freezey has quit [Remote host closed the connection]
cantonic has joined #ruby
<centrx> slowcon, I would call it clubland_id to avoid confusion. In databases, "genre_id" means it is the foreign key referencing "genres"
sambao21 has joined #ruby
jfoy has quit [Quit: jfoy]
<slowcon> centrx: so then Dirty House Music has many subgenres, which i wrote a script to scrape the unique selectors of the subgenres
<slowcon> but the script has to go to this page first http://www.clublandlv.com/forumdisplay.php?f=46
<slowcon> so after it scrapes the subgenres from (46), i want it to go to the next unique selector
kpshek has quit []
tselatra has quit [Read error: Connection reset by peer]
<slowcon> in my database, that being "House Music" - 45
<slowcon> followed by "Dubstep Music" - 153 etc etc
<centrx> Okay, sounds good
yarou has joined #ruby
<centrx> itadder, The @ means it is an instance variable
<itadder> what so special about a instance variable
gr33n7007h has joined #ruby
dingus_khan has quit [Remote host closed the connection]
<itadder> thanks
tselatra has joined #ruby
<centrx> slowcon, I am not sure of the Sequel syntax, but you want to select from that table using ORDER BY id
kevind has joined #ruby
<centrx> itadder, an instance variable is attached to the class instance and is accessible by any method in that class instance
ext0 has quit [Remote host closed the connection]
dx7 has joined #ruby
petey has quit [Remote host closed the connection]
<itadder> so it local
<centrx> itadder, It is local to the instance, yes
<centrx> slowcon, I am curious, what does the [] do in require 'nokogiri'[] ?
sdelmore has quit [Quit: Leaving.]
<centrx> slowcon, I will read the rest of your pastie
ndrei has quit [Ping timeout: 260 seconds]
<centrx> now
<itadder> for those who want to know what music devleoper slisten to http://www.kinvey.com/blog/81/music-developers-listen-to-when-coding-their-mobile-apps
<itadder> listen
joelbrewer has quit [Ping timeout: 272 seconds]
MrBy has quit [Quit: This computer has gone to sleep]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MrBy has joined #ruby
cmedeiros has joined #ruby
<itadder> I got to learn more of this today
<itadder> brb
<itadder> going check up on my car if it in snow
mikepack_ has quit [Remote host closed the connection]
ndrei has joined #ruby
mikepack has joined #ruby
MrBy has quit [Client Quit]
<slowcon> centrx: i just took out the requires so the paste wasnt cluttered
<centrx> oh ok :)
<centrx> slowcon, So from the question asked in the pastie, you probably want something like:
JBreit has quit [Read error: Connection reset by peer]
<itadder> br
<itadder> b
rootshift_ has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
venkat has quit [Read error: Connection reset by peer]
cmedeiros has quit [Max SendQ exceeded]
<centrx> Genre.order(:id).each { |genre| scrape_genre(genre) }
venkat has joined #ruby
bogeyd6 has quit [Read error: Connection reset by peer]
<centrx> Assuming you really need it to scrape in that order
alex88 has joined #ruby
<slowcon> centrx: it can scrape in any order. i just didnt know the logic to match the genres and the genre_ids.
<slowcon> centrx: basically is just scraps X # of Genres, and the same amount of Ids, then they get put into an array pair.
sski has joined #ruby
<slowcon> centrx: so technically in my script, if one of the links in the middle didnt exist, the IDs would not be correct
failshell has joined #ruby
Guest84043 has quit [Changing host]
Guest84043 has joined #ruby
Guest84043 is now known as deepa
kobain has joined #ruby
kpshek has joined #ruby
ebwise has quit [Quit: Leaving]
kpshek has quit [Client Quit]
jclrb has joined #ruby
Axsuul_ has joined #ruby
schone has quit [Read error: No route to host]
<centrx> slowcon, How about building a single "genres" array that contains the genre_links inside it while it is scraping?
Celm has quit [Remote host closed the connection]
Axsuul_ has quit [Read error: Connection reset by peer]
<centrx> slowcon, And then raise an error or skip the genre if it encounters an unmatched name<->id ?
failshell has quit [Ping timeout: 248 seconds]
<slowcon> centrx: that sounds pretty cool
<slowcon> centrx: heading home now, will be back on in 30m or so. will you still be here?
<centrx> Probably, yes
Celm has joined #ruby
<slowcon> awesome
<slowcon> talk to you soon
havenwood has joined #ruby
agjacome has quit [Ping timeout: 252 seconds]
slowcon has quit []
axsuul has quit [Ping timeout: 252 seconds]
stonevil has joined #ruby
v0n has quit [Ping timeout: 264 seconds]
JBreit has joined #ruby
axsuul has joined #ruby
enebo has quit [Quit: enebo]
caveat- has quit [Ping timeout: 245 seconds]
jack_rabbit has quit [Quit: SIGSEGV (core dumped)]
jack_rabbit has joined #ruby
pranny has quit [Quit: Leaving.]
recurrence has quit [Ping timeout: 252 seconds]
caveat- has joined #ruby
Lewix has quit [Quit: Leaving...]
Tecan has quit [Quit: Live Long And Phosphor!]
ddd has quit [Quit: leaving]
lkba has joined #ruby
ddd has joined #ruby
jack_rabbit has quit [Ping timeout: 252 seconds]
ner0x has joined #ruby
rootshift_ has joined #ruby
freezey has joined #ruby
Bira has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
MindfulMonk has joined #ruby
pranny has joined #ruby
Kricir has quit [Remote host closed the connection]
someperson has quit [Ping timeout: 260 seconds]
stonevil has quit [Ping timeout: 272 seconds]
shinobi_one has joined #ruby
alex88 has quit [Quit: Leaving...]
Xeago has quit [Remote host closed the connection]
<shinobi_one> What's a good way to get all base dirs that contain a file called 'whatever.txt' at starting dir '/example' ?
<itadder> regexp
wgosling has joined #ruby
wgosling has quit [Client Quit]
freezey has quit [Ping timeout: 246 seconds]
<dorei> have your sysadm put updatedb @ crontab, and use locate and grep
aryaching has quit [Ping timeout: 248 seconds]
<shinobi_one> I can use Dir.glob, but I was looking for a more interesting way I guess..
<lethjakman> hmmm weird question: 'http://www.google.com' =~ /^http|^https/ resolves to if true and nil if false
<lethjakman> shouldn't it evaluate to true if it's true?
nateberkopec has joined #ruby
timonv has joined #ruby
Kricir has joined #ruby
zachallett has joined #ruby
marr has quit [Ping timeout: 272 seconds]
<platzhirsch> What's the difference between URI and URI?
<yeboot> ...
<yeboot> one is followed by a space and the other a question mark?
<platzhirsch> I mean… if you require 'open-uri'
<platzhirsch> 'OpenURI is an easy-to-use wrapper for net/http, net/https and net/ftp.' hmm
cmedeiros has joined #ruby
black0ut has quit []
nisstyre has quit [Quit: WeeChat 0.4.3]
timonv has quit [Ping timeout: 260 seconds]
aryaching has joined #ruby
Jetchisel has joined #ruby
<centrx> platzhirsch, I don't think OpenURI reflects the difference between URL and URI
yasushi has joined #ruby
sdwrage has quit [Read error: Connection reset by peer]
<platzhirsch> centrx: URL?
<centrx> "What's the difference between URI and URI?" ... nothing?
<centrx> "What's the difference between URL and URI?" ... something
<platzhirsch> I know
yasushi has quit [Remote host closed the connection]
<jclrb> One has a L one has a I?
<platzhirsch> it's really about a class provided by default from Ruby stdlib and the one provided after require 'open-uri'
sdwrage has joined #ruby
asteros_ has joined #ruby
ultraflash3 has joined #ruby
Jdubs has joined #ruby
havenwood has quit [Remote host closed the connection]
venkat has quit [Read error: Connection reset by peer]
iMe_away is now known as iMe
fuhgeddaboudit has quit [Ping timeout: 245 seconds]
rootshift_ has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
venkat has joined #ruby
jle` has joined #ruby
Megtastique has quit []
asteros has quit [Ping timeout: 245 seconds]
asteros_ is now known as asteros
<centrx> platzhirsch, If you look at the source, the URI in OpenURI is simply a module that contains URI::HTTP and URI::FTP
axsuul has quit [Read error: Connection reset by peer]
koell has joined #ruby
axsuul has joined #ruby
bricker`LA has joined #ruby
<platzhirsch> centrx: thanks
sdwrage_ has joined #ruby
<koell> just tried to install activerecord via "sudo gem install activerecord" but i get an error: failed to build gem native extension. how to solve that?
oskarpearson has quit [Quit: Computer has gone to sleep]
jtdowney has quit []
sdwrage has quit [Ping timeout: 260 seconds]
<centrx> Need more information
<centrx> Usual cause of failed to build gem is lack of development/header files
<koell> im on lubuntu 13.10 and need to install activerecord as well as sqlite3 gem to get spotify-export (from github) to work.
vlad_starkov has joined #ruby