apeiros changed the topic of #ruby to: Ruby 2.1.0-p0; 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
<benzrf> zeknox: slice is the python name for that, i do not know if that is what this particular thing is called in ruby
<atmosx> shevy: wow
mlpinit_ has quit [Quit: Leaving...]
<atmosx> shevy: you're going to be ritch, what exactly are your intern going to be
<atmosx> ?
* atmosx studies pharmacy and shevy is going to make intern in a pharma company!
rljohnsn has quit [Quit: Leaving.]
<xybre> zeknox: -1 is the index of the last element in an array.
<shevy> atmosx dunno yet, he is the group leader of their bioinformatics research division. it's actually collaboration with the local university (i.e. a joint building, one part belongs to the university, the other is the private area of the company)
<zeknox> xybre: that makes the most sense to me now -1 is last, and .. is everything in between
sailias has joined #ruby
<shevy> atmosx so I'll have to leave a good impression and don't know how yet
jtdowney has quit []
<xybre> zeknox: Yep. Ruby has a native Range syntax, so you can do (1..4) to get a Range object anytime you like really.
<zeknox> xybre: love it
<zeknox> thanks guys, very helpful as always!
<ur-cong> >> "ur-cong".slice(2..-1)
<eval-in> ur-cong => "-cong" (https://eval.in/94948)
<baroquebobcat> zeknox: you can think of negative indices as arr[arr.length - n] where arr.length is elided
<ur-cong> >> "ur-cong".slice(2,-1) # i perfer this
<eval-in> ur-cong => nil (https://eval.in/94949)
brennanMKE has quit [Remote host closed the connection]
brennanMKE has joined #ruby
mengu has quit [Remote host closed the connection]
<Hanmac> shevy: yeah! new HDD was successful integrated into RAID ... now i have 1,9TB free in my RAID ,P
<atmosx> shevy: Okay, write a blog post with impressions about it.
<atmosx> shevy: my thesis, which I wills start writting next week is about sequencing current and new methods. So if you have any inputs let me know ;-)
<benzrf> ur-cong: *prefer
rljohnsn has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<freeone3000> Hanmac: What do you do with the other four drives?
bricker_ has joined #ruby
bricker_ is now known as bricker`work
shevy has quit [Ping timeout: 245 seconds]
pel_daniel has left #ruby [#ruby]
<Hanmac> freeone3000: building C++ libs from source?
shevy has joined #ruby
<shevy> atmosx gah, firefox froze my system just now...
nfk has quit [Quit: yawn]
<atmosx> shevy: get a mac!
<atmosx> shevy: you're on ubuntu right?
havenwood has quit [Remote host closed the connection]
<shevy> on slackware
tt1187 has joined #ruby
aspiers has quit [Ping timeout: 276 seconds]
havenwood has joined #ruby
freezey has joined #ruby
<benzrf> atmosx: ubuntu > os x
<benzrf> muh freedumbs
sickweezle has quit [Ping timeout: 245 seconds]
<benzrf> man what is it with ruby users and macs i have never seen such an epidemic of apple in python
brennanMKE has quit [Ping timeout: 272 seconds]
freeone3000 has quit [Quit: Konversation terminated!]
Brolen has quit [Remote host closed the connection]
<ur-cong> that's why i wrote this https://eval.in/94950
sickweezle has joined #ruby
reset has quit [Read error: Connection reset by peer]
nifty has joined #ruby
lemonade` has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
bubu has quit [Remote host closed the connection]
<atmosx> benzrf: beautiful things get stuck together
<benzrf> bahar:
<benzrf> *bah
<benzrf> haskell now thats beautiful
<atmosx> benzrf: it's chemistry, like when Na+ finds an -OH molecule lying around
<benzrf> ruby is pleasant iunno if its beautiful
havenwood has quit [Ping timeout: 240 seconds]
<atmosx> I thin it is
<benzrf> if you ask me ruby fits linux better;
<atmosx> with my deep and life-long experience in programming, I can say it is.
* atmosx knows half a language
<benzrf> many ways to do the same thing, a bit chaotic, some inconsistencies, but still very nice
magoo has joined #ruby
<atmosx> benzrf: fits everything except windows imho. I'm equally comfortable with linux and a mac. I just prefer OSX as a DE
<benzrf> fair nuff
Andrevan has joined #ruby
<benzrf> i dislike how much of the OS in mac is not just a thin wrapper around a cli thing
falood has joined #ruby
<benzrf> i.e. 'user accounts' seems to be a whole thick layer over actual unix users
<benzrf> vs in ubuntu or somethin where adduser will actually make a new option in the DM
meatherly has joined #ruby
jailbot has quit [Remote host closed the connection]
shime has quit [Ping timeout: 248 seconds]
aryaching has quit [Ping timeout: 264 seconds]
jailbot has joined #ruby
<shevy> benzrf the thing is you can ignore the ugly parts in ruby and just use the pretty parts
b00stfr3ak has quit [Read error: Operation timed out]
<shevy> there is indeed a lot of cruft
<shevy> FileUtils. vs Dir. vs File (and we had FileTest too in the past or?)
<benzrf> a linux thing again ;)
mojjojo_ has joined #ruby
dirtgrub has quit []
Briareos1 has joined #ruby
<shevy> it's the unix origin
siwica has quit [Ping timeout: 252 seconds]
Guest51955 has quit [Ping timeout: 272 seconds]
<shevy> because they were incompetent with GUIs, they had to work on the commandline
<benzrf> although iunno how unixy ruby is
<benzrf> what with its heaps of convenience methods
<shevy> well it really was inspired a lot by perl
<shevy> just see the $ variables it stole
<benzrf> yea
aryaching has joined #ruby
<shevy> I hope ruby 3.0 will be cleaned up radically
byprdct has joined #ruby
<shevy> matz never thought of a gem-like tool as part of default ruby :(
lfox has quit [Quit: ZZZzzz…]
mojjojo has quit [Ping timeout: 264 seconds]
mojjojo_ is now known as mojjojo
meatherly has quit [Ping timeout: 265 seconds]
<Hanmac> shevy tell us the truth ... you want rwx part of ruby3.0 ;P
siwica has joined #ruby
<benzrf> whats rwx
<benzrf> o-O
<Hanmac> benzrf: new binding for wxWidgets
<Hanmac> its self written and does not use SWIG shit
Fractional has joined #ruby
<Fractional> Is there a way to create a hash that holds it values inside a function and keeps the value after the call?
<Fractional> Like a constant within the function that is saved in memory, if you understand.
simoz14 has joined #ruby
Sc0rp10n has quit [Quit: Leaving]
<shevy> Hanmac nah, the sooner the better. but admittedly, I won't have much time in the next ~5 weeks :(
<shevy> Fractional I did not understand the question
<shevy> perhaps a Proc
Jdubs has joined #ruby
<shevy> @my_proc.call(my_key)
<shevy> @my_proc[my_key]
<Hanmac> shevy: tomorrow morning i will work on the binding again, i can now without risk because my Disks are synced now
<Fractional> Like, I've a hash inside a function called age. How can I make so it holds it value over multiple calls to the same function?
<Fractional> def something age = Hash.new end something
simoz15 has joined #ruby
parduse has quit [Remote host closed the connection]
<benzrf> Fractional: an ivar, of course!
<benzrf> that is what they are for!
<Hanmac> Fractional: def something @age ||= Hash.new end
<Fractional> Never heard of them :P
simoz13 has quit [Ping timeout: 245 seconds]
<benzrf> aka @vars
parduse has joined #ruby
<Fractional> Oh, alright :D
parduse has quit [Changing host]
parduse has joined #ruby
<Fractional> instance var?
standyro1 has quit [Ping timeout: 272 seconds]
kure has quit [Read error: Connection reset by peer]
kure has joined #ruby
<atmosx> Fractional: yes
simoz14 has quit [Ping timeout: 240 seconds]
blackmesa has quit [Read error: Operation timed out]
bradhe has joined #ruby
<atmosx> Hanmac's code creates a new @age var if the @age is not defined yet. (Hanmac is that so? I never used this convention, saw it once online iirc)
zcreative has quit [Quit: Computer has gone to sleep.]
aryaching has quit [Read error: Connection reset by peer]
habanany has joined #ruby
asmodlol has quit [Remote host closed the connection]
Mars` has quit [Remote host closed the connection]
<ur-cong> ||= assigns to the variable if the value of the variable is nil, so it's once assigned no matter how many times you call/run the code.
Mars` has joined #ruby
<benzrf> well also if it is false...
standyro1 has joined #ruby
blackmesa has joined #ruby
ctp has quit [Quit: Leaving...]
mikemar10 has quit []
<ur-cong> >> puts a ||= 'ur'; puts a ||= 'cong';
<eval-in> ur-cong => ur ... (https://eval.in/94951)
byprdct has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bradhe has quit [Ping timeout: 265 seconds]
alexfreidah has joined #ruby
parduse has quit [Ping timeout: 252 seconds]
<ur-cong> >> puts (a ||= 'ur') + ' ' + (a ||= 'cong');
<eval-in> ur-cong => ur ur ... (https://eval.in/94952)
sailias has quit [Ping timeout: 252 seconds]
<ur-cong> see
Wolland has quit []
<shevy> donkey cong!
angusiguess has quit [Ping timeout: 272 seconds]
<ur-cong> donkey kong has a K not a C
<ur-cong> im-cong
<benzrf> shevy does not let things like spelling stop him
asmodlol has joined #ruby
emptymag00 has quit [Ping timeout: 272 seconds]
asteros has joined #ruby
<shevy> hey
<shevy> you write china
<shevy> not kina
<shevy> so
<shevy> you are cong, he is cong, she is cong, donkey all are cong!
asteros has quit [Client Quit]
aryaching has joined #ruby
simoz15 has quit [Ping timeout: 240 seconds]
<shevy> it's monkey coding
<shevy> guess why it is called monkey patching!
<atmosx> I write Κίνα
Senjai`work is now known as Senjai
<atmosx> y?
<shevy> what is that
alexfreidah has quit [Ping timeout: 264 seconds]
<atmosx> china
mmcdaris has quit [Quit: mmcdaris]
mrsolo has left #ruby ["Leaving"]
<shevy> ah
tvw has quit []
<shevy> sino
parduse has joined #ruby
parduse has quit [Changing host]
parduse has joined #ruby
Vivekananda has quit [Remote host closed the connection]
sassamo has quit [Remote host closed the connection]
mmcdaris has joined #ruby
mmcdaris has quit [Client Quit]
freezey has quit [Remote host closed the connection]
nobitanobi has joined #ruby
sassamo has joined #ruby
x77686d has quit [Quit: x77686d]
mmcdaris has joined #ruby
freezey has joined #ruby
predator217 has joined #ruby
Vivekananda has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
sassamo has quit [Read error: No route to host]
kure has quit [Read error: Connection reset by peer]
freezey has quit [Read error: No route to host]
reset has joined #ruby
sassamo has joined #ruby
centrx has joined #ruby
kure has joined #ruby
aryaching has quit [Ping timeout: 245 seconds]
asteros has joined #ruby
vlad_starkov has joined #ruby
Megtastique has quit []
asteros has quit [Client Quit]
mmcdaris has quit [Client Quit]
centrx has quit [Client Quit]
centrx has joined #ruby
Hobogrammer has quit [Ping timeout: 248 seconds]
predator117 has quit [Ping timeout: 264 seconds]
vlad_starkov has quit [Write error: Connection reset by peer]
aryaching has joined #ruby
ohwhoa has quit [Quit: woah!]
nobitanobi has quit [Ping timeout: 248 seconds]
roolo has joined #ruby
nobitanobi has joined #ruby
havenwood has joined #ruby
cj3kim has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
timonv has joined #ruby
mmcdaris has joined #ruby
roolo has quit [Client Quit]
roolo has joined #ruby
||UnNameD|| has joined #ruby
byprdct has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
||UnNameD|| has quit [Client Quit]
mikepack has joined #ruby
aryaching has quit [Ping timeout: 260 seconds]
<Fractional> Time to learn about error throwing (for a thing on the website) :D
yfeldblum has joined #ruby
mmcdaris has quit [Client Quit]
|UnNameD| has quit [Ping timeout: 264 seconds]
jasonwebster has quit [Quit: Textual IRC Client: www.textualapp.com]
mavcunha has joined #ruby
timonv has quit [Ping timeout: 272 seconds]
cj3kim has quit [Ping timeout: 272 seconds]
yfeldblu_ has joined #ruby
<shevy> begin/rescue
yfeldblum has quit [Read error: Connection reset by peer]
Amart41 has joined #ruby
aryaching has joined #ruby
Brolen has joined #ruby
towski has joined #ruby
<Fractional> Why would they want me to throw an exception for that task?
Jdubs has quit [Remote host closed the connection]
kure has quit [Read error: Connection reset by peer]
<Fractional> " it must throw an error in order to remind Santa." What do they mean you think?
<shevy> hmmm
kure has joined #ruby
<shevy> Hanmac, help me out
emptymag00 has joined #ruby
<shevy> >> "/Users/x/SRC/GTKPLUS/gtk+-3.11.4.tar.xz".gsub(/gtk+-3.11.4.tar.xz/,'')
<eval-in> shevy => "/Users/x/SRC/GTKPLUS/gtk+-3.11.4.tar.xz" (https://eval.in/94954)
<shevy> how can I get rid of the last part? the regex seems to think that + is special character rather than part of the filename
<shevy> Fractional but you can throw specific errors via raise too
<MrZYX> shevy: File.dirname ?
nobitanobi has quit [Remote host closed the connection]
<shevy> huh
<shevy> hmmm
Amart41 has quit [Read error: Operation timed out]
<Fractional> shevy: I really do not get what they are asking me to do. I've completed everything except the error throwing =/
<shevy> weird :D
SteveBenner09 has joined #ruby
<shevy> MrZYX now I have to figure out why I wanted to .gsub
<MrZYX> :P
<shevy> Fractional only two ways I think - raise, and throw
heidi has quit [Quit: Leaving.]
x77686d has joined #ruby
<MrZYX> shevy: btw gsub takes a string too (and doesn't interpret it as a regex then)
<shevy> hmm
<shevy> >> "/Users/x/SRC/GTKPLUS/gtk+-3.11.4.tar.xz".gsub('gtk+-3.11.4.tar.xz','')
<eval-in> shevy => "/Users/x/SRC/GTKPLUS/" (https://eval.in/94955)
<shevy> huh
aryaching has quit [Ping timeout: 252 seconds]
SteveBenner09 has quit [Client Quit]
habanany1 has joined #ruby
<MrZYX> finally, you could also just #delete
banjara has quit [Quit: Leaving.]
<shevy> >> "/Users/x/SRC/GTKPLUS/gtk+-3.11.4.tar.xz".delete('gtk+-3.11.4.tar.xz')
<eval-in> shevy => "UsesSRCGTKPLUS" (https://eval.in/94956)
jasonsmr_ has quit [Ping timeout: 265 seconds]
<MrZYX> or maybe I'm wrong on this one :P
<benzrf> ri>
Jdubs has joined #ruby
<benzrf> maaan ri sux
Jdubs has quit [Remote host closed the connection]
mavcunha has quit [Read error: Connection reset by peer]
<MrZYX> benzrf: use pry-doc ;P
<shevy> wheee
<shevy> I found it
<shevy> >> "/Users/x/SRC/GTKPLUS/gtk+-3.11.4.tar.xz".gsub(/#{Regexp.escape('gtk+-3.11.4.tar.xz')}/,'')
<eval-in> shevy => "/Users/x/SRC/GTKPLUS/" (https://eval.in/94957)
<shevy> awful, so I will use File.dirname
<MrZYX> ;D
<shevy> and comment "wtf did I want to use File.basename here"
fgo has joined #ruby
<shevy> oh... why the fuck... not what the fuck
<shevy> hmm
jasonsmr has joined #ruby
<benzrf> is there a /good/ pathname manipulation gem
tkuchiki has joined #ruby
<shevy> use Pathname!
<shevy> it sucks!
robustus has quit [Read error: Connection reset by peer]
<benzrf> fuck that ima make a good one
<shevy> YOUR FIRST GEM
<shevy> I CAN NOT BELIEVE IT :)))
<benzrf> a wrapper around Pathname maybe
<shevy> \o/
<shevy> ... benzrf is doing a gem ...
<shevy> let's dance!
<shevy> \o~
aryaching has joined #ruby
<MrZYX> what's actually that bad about Pathname, I always forget
<shevy> \o..
<benzrf> how i make gem
<benzrf> MrZYX: it is terrible
<benzrf> nearly java-like, perhaps
<shevy> Pathname.new(x).ugly.wtf.what.is_this
x77686d has quit [Ping timeout: 272 seconds]
<MrZYX> okay, so nothing too real
<shevy> >> Pathname.new("http://www.google.com/google_is/toobig/stuff.mp3").basename
<eval-in> shevy => uninitialized constant Pathname (NameError) ... (https://eval.in/94958)
<shevy> >> require 'pathname'; Pathname.new("http://www.google.com/google_is/toobig/stuff.mp3").basename
<eval-in> shevy => #<Pathname:stuff.mp3> (https://eval.in/94959)
<shevy> it must be required!
<shevy> that's the first problem
<shevy> it gives back unusable shit!
<benzrf> basically it is inconvenient and verbose
<shevy> yes!
<Fractional> Woho, completed one of the tasks, yey :D
<shevy> but look at this:
<shevy> relative_path_from
<shevy> that's a method
niklasb has quit [Read error: Operation timed out]
<benzrf> ooh handy
<shevy> IS THAT NOT AWESOME?!
<MrZYX> thing is, people tell me to use File and Dir stuff instead. And over that IMO Pathname is an improvement
<shevy> the docu even has a discalimer
<shevy> *disclaimer
<shevy> "This method has existed since 1.8.1."
davy_ has quit [Remote host closed the connection]
<shevy> I think File and Dir are 1000x cooler than Pathname
mojjojo has quit [Quit: mojjojo]
<shevy> just look at your above solution MrZYX!
nifty has quit [Ping timeout: 245 seconds]
iMe has joined #ruby
<shevy> did you use Pathname or did you suggest File
<shevy> see?! :D
mikemar10 has joined #ruby
<shevy> your BRAIN can not deal with Pathname!
mavcunha has joined #ruby
<shevy> it's like no neuronal cells have been reserved to refer to it
robustus has joined #ruby
RoxasShadowRS has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
<MrZYX> File.dirname(File.expand_path(File.join('~/whatever', File.join('something', 'else'))) vs Pathname.new("~/whatever").join('something", "else").expand_path.dirname # yeah so bad m(
<benzrf> :(
kells has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<YOURBESTFRIEND> how can you make something like Array#pop return the object it is popping from instead of the thing it popped?
<benzrf> that looks almost like python's path manip tools D:
<YOURBESTFRIEND> (to chain more stuff together)
kure has quit [Read error: Connection reset by peer]
<benzrf> YOURBESTFRIEND: get andand and use me
<benzrf> YOURBESTFRIEND: or use tp
<benzrf> *tap
<benzrf> but me is better
mando has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
kure has joined #ruby
mando has joined #ruby
<shevy> MrZYX no File.join! no File.expand_path!
<benzrf> hmm this does not look too bad actually http://rubydoc.info/gems/path
<shevy> MrZYX '/' works!
<MrZYX> YOURBESTFRIEND: you can't, but there probably is something nice for what you actually want to do
<benzrf> in fact it looks much like what i meant to make
aryaching has quit [Read error: Connection reset by peer]
<YOURBESTFRIEND> well tap works great
duggiefresh has joined #ruby
<benzrf> YOURBESTFRIEND: me is betr
habanany1 has quit [Remote host closed the connection]
<benzrf> foo.me.bar always returns foo
<benzrf> but also invokes bar
<benzrf> on foo
bricker`work has quit [Quit: leaving]
<benzrf> it is magic~
habanany has quit [Quit: Bye]
<YOURBESTFRIEND> what's me
<benzrf> a method from andand
<YOURBESTFRIEND> what's andand
<benzrf> a gem
<benzrf> it also has andand
<benzrf> foo.andand.bar == if foo.nil? then nil else fo.bar
<benzrf> *foo
pardusf has joined #ruby
parduse is now known as Guest79510
pardusf is now known as parduse
parduse has quit [Changing host]
parduse has joined #ruby
<YOURBESTFRIEND> ( ̄ー ̄)
coca_rails has joined #ruby
kells has joined #ruby
<YOURBESTFRIEND> >> '/Users/x/SRC/GTKPLUS/gtk+-3.11.4.tar.xz'.split('/').tap { |x| x.pop }.join('/')
<eval-in> YOURBESTFRIEND => "/Users/x/SRC/GTKPLUS" (https://eval.in/94960)
banjara has joined #ruby
mando has quit [Ping timeout: 245 seconds]
zeade has quit [Quit: Leaving.]
<MrZYX> that's almost as worse as the Regexp.escape version ;P
kure has quit [Read error: Connection reset by peer]
<benzrf> ew
tcstar has quit [Ping timeout: 240 seconds]
Guest79510 has quit [Ping timeout: 252 seconds]
<benzrf> why not .me.pop.join
kure has joined #ruby
<MrZYX> if you'd at least did .tap(&:pop) ...
<YOURBESTFRIEND> shit
aryaching has joined #ruby
<benzrf> hah
<YOURBESTFRIEND> >> '/Users/x/SRC/GTKPLUS/gtk+-3.11.4.tar.xz'.split('/').tap(&:pop).join('/')
<eval-in> YOURBESTFRIEND => "/Users/x/SRC/GTKPLUS" (https://eval.in/94961)
<MrZYX> yeah, so slightly less worse
<MrZYX> slightly
duggiefresh has quit [Ping timeout: 252 seconds]
<shevy> ack
<shevy> tap poop poop
<benzrf> shevy you must get over your fear of constructs such as this
snatchfrigate has quit [Quit: Connection closed for inactivity]
baroquebobcat has joined #ruby
<MrZYX> benzrf: he has deeper problems than that, like fear of UTF-8
<benzrf> oh gosh
atmosx has quit [Quit: Lost in trance]
<shevy> benzrf I am too old, I go with my gut feeling, instincts and my visual taste for beauty
<benzrf> unicode is simple
<shevy> I don't fear UTF-8 but it's unusable
<benzrf> you must simply discard your ideas about bytes & strings
<shevy> "abc"[1,1] <--- simple
<MrZYX> it's only unusable because people like you don't adopt and we still have to deal with all the other crap at the same time
aryaching has quit [Ping timeout: 272 seconds]
mary5030 has quit [Remote host closed the connection]
<shevy> so why wasn't it chosen for 1.8.x
<benzrf> yes shevy it is your own fault
bradhe has joined #ruby
<benzrf> you lazy bum
<shevy> why did the world not crash before UTF
<shevy> why can I continue using my computer without UTF
<MrZYX> I'm asking myself that all the time
<shevy> hey if you got some killer arguments
<shevy> out with them!
marr has quit [Ping timeout: 272 seconds]
byprdct has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has joined #ruby
<shevy> cool
<MrZYX> can your ISO-bla-foo-crap do that?
Fractional has quit [Quit: Leaving]
<shevy> nope
<benzrf> B)
<shevy> I always wanted a language with inbuilt snowman powers
<MrZYX> see
<benzrf> mine has pentagonal snowflakes
<benzrf> heresy
<shevy> WE CAN GET RID OF .png AND .jpg AND .gif!
angusiguess has joined #ruby
<benzrf> ☃
<shevy> how does that work?
<shevy> the html source shows &#9731;
jailbot has quit []
<benzrf> [3] pry(main)> ☃ = "snowman!"
<benzrf> => "snowman!"
<benzrf> [5] pry(main)> puts "hello #{☃}"
<benzrf> hello snowman!
<benzrf> magic
<shevy> wat
<benzrf> snowman is a unicode char
<shevy> hmm
<MrZYX> yeah, turns out ruby accepts unicode characters as identifiers
parduse has quit [Ping timeout: 248 seconds]
mmcdaris has joined #ruby
<benzrf> also http://poop.la
<shevy> you could have a snowman method?
<benzrf> wait
<benzrf> o:
<MrZYX> like the special kind of spaces, like the closed ones or the non-breaking ones
aryaching has joined #ruby
<benzrf> my bad
<shevy> benzrf WHY DO YOU SEND ME TO A DEAD PAGE
<shevy> NO YOU HAVE NO MORE KARMA LEFT FOR TODAY
tt1187 has quit [Ping timeout: 252 seconds]
<benzrf> oops
<benzrf> poop character!
<shevy> you are in the dead intarnetz
<benzrf> dog.
bradhe has quit [Ping timeout: 252 seconds]
mavcunha has quit [Quit: Computer has gone to sleep.]
fgo has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
kure has quit [Read error: Connection reset by peer]
jetblack has quit [Quit: leaving]
RoryHughes has quit []
<shevy> hey guys
<shevy> what do you think about this:
kure has joined #ruby
<shevy> if foo
parduse has joined #ruby
<shevy> do_bla
<shevy> else
<shevy> do_ble
<shevy> end
<shevy> OR (and here comes the thing...
<shevy> if foo
<shevy> do_bla
parduse has quit [Changing host]
parduse has joined #ruby
<shevy> else
<shevy> do_ble; end # <--- there it is!
angusigu1ss has joined #ruby
<shevy> benzrf, comment
<MrZYX> I think it's a
griffindy has joined #ruby
<shevy> I can't read what is between 'a' and 'idea' :)
<shevy> could be everything right now hehe
<MrZYX> another killer argument for unicode!
<shevy> good, bad ... hmm
<shevy> :(
<benzrf> hmmm
<benzrf> bbias
Hiall has joined #ruby
gja has joined #ruby
AlSquirrel has quit [Quit: This computer has gone to sleep]
<shevy> benzrf, don't you like it because of the PYTHON way?
benzrf is now known as benzrf|afk
agjacome has quit [Quit: Lost terminal]
maletor has quit [Quit: Computer has gone to sleep.]
v10energy has quit [Ping timeout: 248 seconds]
blackmesa has quit [Quit: WeeChat 0.4.2]
Jdubs has joined #ruby
mmcdaris has quit [Quit: mmcdaris]
whomp has quit [Ping timeout: 248 seconds]
MrZYX is now known as MrZYX|off
RoryHughes has joined #ruby
aryaching has quit [Ping timeout: 272 seconds]
coca_rails has quit [Remote host closed the connection]
subbyyy has quit [Ping timeout: 272 seconds]
coca_rails has joined #ruby
gr33n7007h has joined #ruby
kure has quit [Read error: Connection reset by peer]
iamdoo2 has joined #ruby
meatherly has joined #ruby
v10energy has joined #ruby
kure has joined #ruby
shadoi has quit [Quit: Leaving.]
gr33n7007h has left #ruby [#ruby]
kobain has quit []
gr33n7007h has joined #ruby
yasushi has joined #ruby
meatherly has quit [Remote host closed the connection]
aryaching has joined #ruby
coca_rails has quit [Ping timeout: 240 seconds]
troyready has quit [Ping timeout: 260 seconds]
towski has quit [Ping timeout: 252 seconds]
NemesisD has joined #ruby
iamdoo2 has quit [Ping timeout: 264 seconds]
tylersmith has quit [Remote host closed the connection]
habanany has joined #ruby
angusigu1ss has quit [Ping timeout: 245 seconds]
yasushi has quit [Ping timeout: 245 seconds]
<NemesisD> hey guys. i was thinking that you could use Thread#value as a chea way to get parallel mapping, but i had a question
bricker`LA has joined #ruby
<NemesisD> [1,2,3].map {|n| Thread.new { foo(n) }.value }, will calling value immediately there prevent them from running in parallel
<centrx> NemesisD, The documentation does say "waits for thread to complete", but I do not know myself
<NemesisD> or would i have to do [1,2,3].map {|n| Thread.new { foo(n)}.map(&:value)
v10energy has quit [Ping timeout: 272 seconds]
gja has quit [Quit: This computer has gone to sleep]
aryaching has quit [Ping timeout: 252 seconds]
yarou has joined #ruby
yarou has quit [Changing host]
yarou has joined #ruby
vlad_starkov has joined #ruby
<NemesisD> i suppose i can test this with sleeps
Andrevan has quit [Quit: WeeChat 0.4.2-rc1]
kure has quit [Read error: Connection reset by peer]
kure has joined #ruby
Megtastique has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
<NemesisD> yep. putting value in the first block call sequentializes it
<benzrf|afk> well, yes
<benzrf|afk> how else could it possibly work o-O
benzrf|afk is now known as benzrf
<centrx> Don't mind him
snath has quit [Ping timeout: 260 seconds]
fgo has joined #ruby
nisstyre has joined #ruby
<benzrf> i would have the threads send the value back instead of the original one requesting it
<benzrf> that way the main thread needs take no special action, which would force sequentialization
Megtastique has quit [Client Quit]
banjara has quit [Quit: Leaving.]
standyro1 has quit [Ping timeout: 272 seconds]
habanany has quit [Quit: Leaving.]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
tauebel has quit [Ping timeout: 245 seconds]
i_s has quit [Remote host closed the connection]
cj3kim has joined #ruby
RoryHughes has quit []
troyready has joined #ruby
ephemerian has quit [Remote host closed the connection]
swingha has quit [Quit: WeeChat 0.4.2]
<NemesisD> benzrf: could you one-liner that. i don't see what you mean
mehlah has quit [Quit: Leaving...]
<benzrf> results = []
devinus has quit []
<benzrf> [1, 2, 3].map {|n| Thread.new {results.push foo(n)}}
<benzrf> or just each actually
<NemesisD> would that work in MRI if foo does IO? i thought arrays in MRI were not threadsafe
havenwood has quit [Ping timeout: 248 seconds]
parduse has quit [Read error: Connection reset by peer]
cj3kim has quit [Ping timeout: 272 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
aspires has quit []
parduse has joined #ruby
parduse has quit [Changing host]
parduse has joined #ruby
kells has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur-cong has quit [Ping timeout: 248 seconds]
nycjv321 has joined #ruby
<nycjv321> Hi I am making a program to simulate user load and thought that using the natural logarithm of the number users multiple by some factor to sleep would be an adequate way of doing this. E.g. for i to 10 years sleep log(i) and create i years next. Does that sound right?
kure has quit [Read error: Connection reset by peer]
kure has joined #ruby
coca_rails has joined #ruby
<nycjv321> 10 users*
meatherly has joined #ruby
brennanMKE has joined #ruby
angusigu1ss has joined #ruby
pyreal has quit [Quit: pyreal]
<centrx> 10 years sounds like a long time...
parduse has quit [Remote host closed the connection]
parduse has joined #ruby
parduse has quit [Changing host]
parduse has joined #ruby
<nycjv321> sorry users* replace years with users
<centrx> nycjv321, Sure, that would work
yfeldblu_ has quit [Remote host closed the connection]
decoponio has joined #ruby
<centrx> nycjv321, I would suggest it might not be necessary to simulate "natural" user activity. Usually you can get by with x simultaneous users, all active at the same time
kells has joined #ruby
snath has joined #ruby
fgo has quit [Remote host closed the connection]
rushed has joined #ruby
<nycjv321> centrx: why not just curious?
magoo has quit [Ping timeout: 272 seconds]
MacGruberMan has joined #ruby
gja has joined #ruby
vlad_starkov has joined #ruby
Hanmac1 has joined #ruby
jonah has quit [Remote host closed the connection]
<centrx> nycjv321, Might just run the test faster
<centrx> nycjv321, If you really have a high user load, then you would expect x simultaneous users to be doing anything that you are delaying with the sleep
kure has quit [Read error: Connection reset by peer]
mansi has quit [Remote host closed the connection]
kure has joined #ruby
<centrx> nycjv321, Sleeping may give you the false impression that you can handle more users than you can, because none of the users are "starting up" at the same time, it is always one user at a time starting up (perhaps)
mansi has joined #ruby
Hanmac has quit [Ping timeout: 245 seconds]
ckinni has joined #ruby
VTLob has quit [Quit: VTLob]
MacGruber has quit [Ping timeout: 252 seconds]
aryaching has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
brennanMKE has quit [Read error: Connection reset by peer]
brennanMKE has joined #ruby
<nycjv321> centrx: ah good point.
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
kewjo has quit [Quit: WeeChat 0.3.7]
niklasb has joined #ruby
troyready has quit [Ping timeout: 272 seconds]
sassamo has quit [Remote host closed the connection]
sassamo has joined #ruby
banjara has joined #ruby
amclain has joined #ruby
asmodlol has quit [Read error: Operation timed out]
ckinni_ has joined #ruby
ckinni_ has quit [Max SendQ exceeded]
ckinni_ has joined #ruby
sparrovv has quit [Remote host closed the connection]
ckinni has quit [Ping timeout: 245 seconds]
roolo has quit [Quit: Leaving...]
MrSamuel has quit [Quit: MrSamuel]
sassamo has quit [Ping timeout: 248 seconds]
byprdct has joined #ruby
bradhe has joined #ruby
kure has quit [Read error: Connection reset by peer]
byprdct has quit [Client Quit]
kure has joined #ruby
phipes has quit [Remote host closed the connection]
byprdct has joined #ruby
rljohnsn has quit [Quit: Leaving.]
_reset has joined #ruby
shedd has quit [Remote host closed the connection]
_mtr has joined #ruby
banjara has quit [Quit: Leaving.]
sepp2k has quit [Read error: Connection reset by peer]
sassamo has joined #ruby
mansi has quit [Quit: Leaving...]
bradhe has quit [Ping timeout: 245 seconds]
reset has quit [Ping timeout: 272 seconds]
_reset has quit [Ping timeout: 248 seconds]
kure has quit [Read error: Connection reset by peer]
kure has joined #ruby
siwica has quit [Read error: Operation timed out]
coca_rails has quit [Remote host closed the connection]
Hobogrammer has joined #ruby
mikemar10 has quit []
Fitzsimmons has left #ruby [#ruby]
griffindy has quit [Quit: Computer has gone to sleep.]
kure has quit [Read error: Connection reset by peer]
kure has joined #ruby
angusigu1ss has quit [Ping timeout: 265 seconds]
h3xdump has joined #ruby
<h3xdump> anyone here?
vlad_starkov has joined #ruby
jtdowney has joined #ruby
<benzrf> yea
max96at has quit [Quit: Textual IRC Client: www.textualapp.com]
<h3xdump> i need json expert
iamdoo2 has joined #ruby
alexfreidah has joined #ruby
<benzrf> im ok @ json
<benzrf> well
<benzrf> inasmuch as you can be good at it
<benzrf> its just a notation
<centrx> { "json": true }
<h3xdump> is there any way to access json subobject using subkey that contains taht object ?
<benzrf> hm?
towski has joined #ruby
<benzrf> can you explain better?
<benzrf> or give an example/
zeknox has left #ruby [#ruby]
undert has quit [Ping timeout: 246 seconds]
<h3xdump> ok
timonv has joined #ruby
<h3xdump> i have large json feed contains objects as follow
<h3xdump> {"id"=>7, "buy_fee"=>0.2, "sell_fee"=>0.2, "last_price"=>310100, "currency_id"=>9, "market_id"=>28, "url_slug"=>"xpm_btc", "rate_min"=>301000, "rate_max"=>343980, "currency_volume"=>3982269061, "market_volume"=>12339588, "updated_at"=>"2014-01-25T00:03:36.815Z"}
<h3xdump> there is like 20 of them
<benzrf> that is just a hash
<benzrf> once you load json it is no longer a json deal
<h3xdump> i need easy way to get this objects by this key -> "url_slug"=>"xpm_btc"
<benzrf> you are working with hashes & arrays
iamdoo2 has quit [Ping timeout: 252 seconds]
<benzrf> h3xdump: you could use detect
alexfreidah has quit [Ping timeout: 252 seconds]
<h3xdump> at the moment i do it by indexes but its a bit a pain
kure_ has joined #ruby
em0ral has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
undert has joined #ruby
falood has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 248 seconds]
simoz15 has joined #ruby
kure has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Remote host closed the connection]
george2 has quit [Remote host closed the connection]
lemonade` has left #ruby [#ruby]
havenwood has joined #ruby
pen has joined #ruby
Briareos1 has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
angusigu1ss has joined #ruby
meatherly has quit [Remote host closed the connection]
kure__ has joined #ruby
Spami has joined #ruby
cj3kim has joined #ruby
kure_ has quit [Ping timeout: 245 seconds]
aryaching has quit [Read error: Connection reset by peer]
mengu has quit [Remote host closed the connection]
aryaching has joined #ruby
phipes has joined #ruby
sickweezle has quit [Ping timeout: 264 seconds]
ryantm has joined #ruby
shedd has joined #ruby
shadoi has joined #ruby
cj3kim has quit [Ping timeout: 264 seconds]
_mtr has quit [Ping timeout: 245 seconds]
yacks has joined #ruby
ckinni_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ckinni has joined #ruby
_mtr has joined #ruby
clamstar has joined #ruby
angusigu1ss has quit [Ping timeout: 252 seconds]
clamstar has quit [Client Quit]
shadoi has quit [Ping timeout: 248 seconds]
kure__ has quit [Ping timeout: 252 seconds]
clamstar has joined #ruby
benzrf has left #ruby [#ruby]
sickweezle has joined #ruby
simoz15 has quit [Ping timeout: 272 seconds]
kitak has joined #ruby
Hanmac has joined #ruby
jasonsmr has quit [Ping timeout: 252 seconds]
clamstar has quit [Read error: Operation timed out]
Hanmac1 has quit [Ping timeout: 248 seconds]
brandon_black has quit [Read error: Connection reset by peer]
phipes has quit [Remote host closed the connection]
bradhe has joined #ruby
Cache_Money has joined #ruby
mikesplain has quit [Ping timeout: 248 seconds]
fgo has joined #ruby
kitak has quit [Remote host closed the connection]
eka has quit [Quit: Computer has gone to sleep.]
gregf has quit [Quit: WeeChat 0.4.2]
bradhe has quit [Ping timeout: 264 seconds]
burlyscudd has joined #ruby
ewnd9 has joined #ruby
<nycjv321> centrx: https://gist.github.com/nycjv321/3f2afb163fce12b152f3 how does this look for doing a logarithmic sleep?
mengu has joined #ruby
<centrx> nycjv321, Looks impressive
<nycjv321> centrx: really?
* nycjv321 blushes
aryaching has quit [Ping timeout: 260 seconds]
<centrx> It is a good design
angusigu1ss has joined #ruby
* nycjv321 is still blushing
aryaching has joined #ruby
gmci has joined #ruby
Hanmac1 has joined #ruby
gmci has quit [Max SendQ exceeded]
rushed has quit [Quit: rushed]
burlyscudd1 has joined #ruby
x77686d has joined #ruby
burlyscudd has quit [Quit: Leaving.]
Hanmac has quit [Ping timeout: 240 seconds]
davy_ has joined #ruby
phipes has joined #ruby
sputnik13 has quit [Quit: Textual IRC Client: www.textualapp.com]
<nycjv321> what does & mean in a method argument?
angusigu1ss has quit [Ping timeout: 245 seconds]
burlyscudd has joined #ruby
burlyscudd1 has quit [Client Quit]
burlyscudd has quit [Client Quit]
<Nowaker> nycjv321: a block. normally you just "yield". sometimes you need a reference to the block so you can pass it somewhere else, etc.
mengu has quit [Ping timeout: 248 seconds]
yedimind has joined #ruby
niklasb has quit [Ping timeout: 252 seconds]
burlyscudd has joined #ruby
iamdoo2 has joined #ruby
postmodern has quit [Quit: Leaving]
UForgotten is now known as UForgotten[A]
Shidash has joined #ruby
UForgotten[A] is now known as UForgotten
aryaching has quit []
UForgotten is now known as UForgotten[A]
_HolyCow1 has joined #ruby
UForgotten[A] is now known as UForgotten
IceyEC has quit [Ping timeout: 272 seconds]
end_guy has quit [Remote host closed the connection]
_HolyCow has quit [Read error: Connection reset by peer]
Gnubie__ has quit [Read error: Operation timed out]
iamdoo2 has quit [Ping timeout: 240 seconds]
jasonsmr has joined #ruby
pskosinski has quit [Quit: http://igg.me/p/597505/x/6111010 Resurrect Revenge Of The Cats: Ethernet As Open-Source Project]
Gnubie_ has joined #ruby
aryaching has joined #ruby
_mtr has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
<nycjv321> ok so I've made a module (or I guess a mixin) and now I've mixed it into Integer but I can't seem to mix it into Enumerable. via include MySillyModule why is that?
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
Fire-Dragon-DoL has left #ruby [#ruby]
echevemaster has quit [Quit: Leaving]
speakingcode has joined #ruby
havenwood has quit [Ping timeout: 240 seconds]
danshult_ has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
sassamo has quit [Remote host closed the connection]
magoo has joined #ruby
sassamo has joined #ruby
jasonsmr has quit [Quit: Leaving]
<gr33n7007h> nycjv321, because enumerable is a module not a class
<nycjv321> gr33n7007h: can you mix a module in a module?
<gr33n7007h> You can't include a module into a module no
dodosan_ has quit [Remote host closed the connection]
<gr33n7007h> That would be defeating the object
sassamo has quit [Ping timeout: 248 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
george2 has joined #ruby
browndawg has joined #ruby
wtfitsme has joined #ruby
<Lewix> nycjv321: However, you can mix a class in a module -)
sassamo has joined #ruby
gener1c has quit [Disconnected by services]
gener1c_ has joined #ruby
bradhe has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
Trynemjoel has joined #ruby
ixti has quit [Ping timeout: 252 seconds]
gja has quit [Quit: This computer has gone to sleep]
IceyEC has joined #ruby
braincrash has quit [Quit: bye bye]
bradhe has quit [Ping timeout: 265 seconds]
burlyscudd has quit [Quit: Leaving.]
braincrash has joined #ruby
wtfitsme has quit [Quit: wtfitsme]
havenwood has joined #ruby
tyl has joined #ruby
rezzack has quit [Read error: Operation timed out]
charliesome has joined #ruby
dodosan has joined #ruby
Jdubs has quit [Ping timeout: 272 seconds]
wtfitsme has joined #ruby
danshult_ has quit [Remote host closed the connection]
danshultz has joined #ruby
simoz15 has joined #ruby
digital-ghost has quit [Remote host closed the connection]
niklasb has joined #ruby
wtfitsme has quit [Quit: wtfitsme]
yfeldblum has joined #ruby
wtfitsme has joined #ruby
angusigu1ss has joined #ruby
jonahR has joined #ruby
timonv has joined #ruby
timonv has quit [Read error: Operation timed out]
ganesh has joined #ruby
phipes has quit [Remote host closed the connection]
ganesh is now known as Guest6648
angusigu1ss has quit [Ping timeout: 252 seconds]
phipes has joined #ruby
yedimind has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
yfeldblum has quit [Remote host closed the connection]
jonahR has left #ruby [#ruby]
yfeldblum has joined #ruby
hobodave has joined #ruby
alexfreidah has joined #ruby
iamdoo2 has joined #ruby
pen has quit [Remote host closed the connection]
dodosan has quit [Remote host closed the connection]
cgore has joined #ruby
nikkos has quit [Remote host closed the connection]
stkowski has quit [Ping timeout: 265 seconds]
baroquebobcat has joined #ruby
wtfitsme has quit [Quit: wtfitsme]
stkowski has joined #ruby
alexfreidah has quit [Ping timeout: 248 seconds]
nathancahill has quit [Quit: nathancahill]
w4pm has quit [Ping timeout: 264 seconds]
parduse has quit [Ping timeout: 265 seconds]
iamdoo2 has quit [Ping timeout: 260 seconds]
parduse has joined #ruby
tyl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
em0ral has quit [Read error: Connection reset by peer]
parduse has quit [Changing host]
parduse has joined #ruby
davy_ has quit [Remote host closed the connection]
aryaching has quit []
Hanmac has joined #ruby
tyl has joined #ruby
zz_anildigital is now known as anildigital
kells has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
I_Want_To_Learn_ has joined #ruby
<I_Want_To_Learn_> What does self mean>
<I_Want_To_Learn_> What does self mean?
Hanmac1 has quit [Ping timeout: 252 seconds]
Barrin6 has joined #ruby
Lewix has quit [Remote host closed the connection]
kure__ has joined #ruby
Lewix has joined #ruby
x0nic has quit [Read error: Operation timed out]
Lewix has quit [Remote host closed the connection]
clamstar has joined #ruby
<centrx> I_Want_To_Learn_, self is the self
Lewix has joined #ruby
wallerdev has joined #ruby
<centrx> I_Want_To_Learn_, Reference to the present class instance
<centrx> or sometimes class
<I_Want_To_Learn_> Example?
<centrx> I_Want_To_Learn_, second example in the intro at http://www.ruby-doc.org/core-2.1.0/Class.html
mary5030 has joined #ruby
rootshift has joined #ruby
nomadic has quit [Quit: -bye-]
cj3kim has joined #ruby
nomadic has joined #ruby
clamstar has quit [Ping timeout: 272 seconds]
x0nic has joined #ruby
dseitz has joined #ruby
kells has joined #ruby
zeade has joined #ruby
cj3kim has quit [Ping timeout: 245 seconds]
zeade has quit [Client Quit]
IceyEC has quit [Ping timeout: 264 seconds]
I_Want_To_Learn_ has quit [Ping timeout: 245 seconds]
IceyEC has joined #ruby
bradhe has joined #ruby
cgore has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
vlad_starkov has joined #ruby
pskosinski has joined #ruby
araujo has quit [Quit: Leaving]
bradhe has quit [Ping timeout: 240 seconds]
Azure has quit [Quit: Textual IRC Client: www.textualapp.com]
falood has joined #ruby
Barrin6 has left #ruby ["Leaving"]
goganchic has joined #ruby
_root has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
DrCode has quit [Remote host closed the connection]
ewnd9 has quit [Ping timeout: 252 seconds]
DrCode has joined #ruby
simoz15 has quit [Ping timeout: 240 seconds]
_root has quit [Quit: Leaving]
Wolland has joined #ruby
Jdubs has joined #ruby
musty has joined #ruby
Azure has joined #ruby
yfeldblum has joined #ruby
Asher has joined #ruby
Bridge| has joined #ruby
<hobodave> hey guys
<hobodave> I'm spawning N threads to "race" each other to complete a task. How do I exit all threads once one returns with a success?
<bnagy> there are a few patterns
<bnagy> you can kill all the lusers
kells has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bnagy> or you can have all the workers periodically check a shared resource of some kind
Lewix has quit [Remote host closed the connection]
<bnagy> but fundamentally it sounds like bad design, unless it's for fun
<hobodave> bnagy for the former, would I just do something like threads.each { |t| t.join; exit } ?
<hobodave> this is for fun
DrCode has quit [Remote host closed the connection]
pskosinski has quit [Quit: http://igg.me/p/597505/x/6111010 Resurrect Revenge Of The Cats: Ethernet As Open-Source Project]
vlad_starkov has quit [Remote host closed the connection]
<bnagy> well you could, say, have a queue that gets the win. Once you get the win you just kill every thread in your worker array
<bnagy> no need to join because trying to read the win from the Queue will block
anildigital is now known as zz_anildigital
pen has joined #ruby
DrCode has joined #ruby
mocfive has quit [Remote host closed the connection]
<hobodave> I don't think I understand the concept or utility of a queue here
<bnagy> like (1..100).map {|i| Thread.new { #race; win_q.push "I AM THREAD #{i} AND I AM WINAR"}}
<bnagy> assign that array to threads, then winner = win_q.pop; threads.each {|t| t.kill}
<hobodave> ahhh
goganchic has quit [Quit: Computer has gone to sleep.]
<hobodave> pop blocks until there is an item?
<hobodave> cool
<hobodave> never used a Queue in Ruby
<bnagy> yeah
Bridge| has quit []
DrCode has quit [Remote host closed the connection]
burlyscudd has joined #ruby
<bnagy> I'm more used to seeing that kind of stuff in divide-and-conquer though instead of all threads covering the same work
burlyscudd has quit [Client Quit]
kure__ has quit [Ping timeout: 272 seconds]
sski has joined #ruby
IceDragon has quit [Quit: Space~~~]
DrCode has joined #ruby
goganchic has joined #ruby
jhn has joined #ruby
zz_anildigital is now known as anildigital
gnephiak has joined #ruby
dodosan has joined #ruby
sLi- has quit [Ping timeout: 276 seconds]
ewnd9 has joined #ruby
mrsolo has joined #ruby
iamdoo2 has joined #ruby
sLi- has joined #ruby
Hiall has quit [Quit: hiall]
<reactormonk> I have a directed graph, what's a good algorithm to find all paths? starting in between or at the beginning.
<bnagy> this is a compsci question not a ruby question
iamdoo2 has quit [Ping timeout: 245 seconds]
<bnagy> just google for the obvious stuff
<bnagy> recursion is an easy way, but you might blow up your stack is the graph is big
pen has quit []
pen has joined #ruby
dodosan has quit []
Lewix has joined #ruby
zipper has joined #ruby
seoNinjaWarrior has quit [Quit: Computer has gone to sleep.]
<reactormonk> max. 4 levels deep
abroco has joined #ruby
<reactormonk> are there any ruby implemtations that I could go take off the shelf?
<abroco> Hello everyone.
Shidash has quit [Ping timeout: 252 seconds]
<abroco> I'm trying a hand at Ruby for the very first time. (I know I ought to read a book, and cover my bases, but I really just wanted to see if I could accomplish this task)
<abroco> And, I know how we all hate the idiot noob who wants to run before walking, but if someone could help me with what I'm doing wrong, I'd appreciate it.
eval-in has quit [Remote host closed the connection]
<centrx> reactormonk, If it is just a tree, you could use RubyTree
<abroco> The program is trying to take a combination of characters, (a through z, 0 through 9) and turn them into a permutative "handle", search Twitter if the handle is available, and report back, continually.
<abroco> I think I botched it somewhere along the lines though :)
<abroco> If someone would be so kind, it seems like I'm nearly there.
<centrx> abroco, Use Array#combination or Array#permutation :)
<abroco> What's wrong with the String#combination method?
eval-in has joined #ruby
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
<centrx> abroco, What do you mean?
<centrx> abroco, I was just giving a flip answer. I assume because you are learning you want to implement it yourself
cj3kim has joined #ruby
<abroco> centrx: Yeah, but as it is, it isn't working. I get an error reflecting the `rescue`.
<abroco> centrx: It's not so much the shabbiness of the implementation (yet), but getting it right at all.
bradhe has joined #ruby
<centrx> abroco, So you are getting an HTTPError? ("reflecting the rescue"?
zipper_ has joined #ruby
jprovazn has quit [Ping timeout: 252 seconds]
zipper has quit [Quit: leaving]
jprovazn has joined #ruby
mrsolo has left #ruby ["Leaving"]
ahmedelgabri has joined #ruby
<abroco> centrx: Negative.
<abroco> centrx: syntax error, unexpected keyword_rescue, expecting keyword_end
<abroco> rescue OpenURI::HTTPError => ex
eval-in has quit [Remote host closed the connection]
<abroco> Oh, if that's what you meant, then yes.
<centrx> abroco, It looks like you have an extra end at the bottom of the combinations method, and an extra end at the bottom of the main function
<centrx> Though with the indentation it is hard to tell
<abroco> centrx: I'm sorry :(
<abroco> One moment. I'll try to patch it up.
<bnagy> begin; while ; rescue <- bad
<bnagy> also while 0 != 1 wtf?
cj3kim has quit [Ping timeout: 265 seconds]
zipper_ has quit [Client Quit]
<bnagy> bro do u even loop do ?
brennanMKE has quit [Remote host closed the connection]
<nycjv321> dude I loop true
bradhe has quit [Ping timeout: 260 seconds]
<abroco> :\
<nycjv321> abroco: :P
nycjv321 has quit [Quit: leaving]
brennanMKE has joined #ruby
<centrx> abroco, As you can tell, there are a few stylisting changes to make it more Rubyfied, clear, and concise :)
<centrx> stylistic
<reactormonk> centrx, it's a graph.
<abroco> centrx: Yeah. I'll pick up a book once this is right. I'd imagine getting from zero to where I'm able to competently write programs of this level takes a couple of weeks.
<centrx> reactormonk, A tree is a graph :)
<abroco> centrx: Sorry, I can't seem to find what's wrong.
* abroco mumbles.
<bnagy> well the syntax error is from the stray 'while'
<centrx> abroco, It looks like open expects a block, that's one thing
<bnagy> abroco: remove the combination stuff, get it working with a single handle that you know to exist
<bnagy> then add the rest back
<bnagy> cause it's broken in like four places afaict
<bnagy> also that combinations method on String is pretty bad style
anildigital is now known as zz_anildigital
<abroco> Heh. I should probably learn Ruby before venturing out into the wild.
<bnagy> like a) monkey patching core classes at all and b) the actual content of it
<bnagy> just use the built-in one on Array
BrixSat has quit [Remote host closed the connection]
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblu_ has joined #ruby
BrixSat has joined #ruby
<bnagy> >> 'abcd'.split('').permutation.to_a.map(&:join)
chatrjr has joined #ruby
<bnagy> pff bot dead. Again.
NemesisD has quit [Ping timeout: 252 seconds]
meatherly has joined #ruby
<abroco> Yeah, I should learn Ruby first.
x77686d has quit [Quit: x77686d]
<abroco> bnagy: You can't imagine how stupid I feel knowing nothing trying to enact this. It's a travesty really.
tyl has quit [Ping timeout: 264 seconds]
<abroco> I'll work my way toward it, it seems simple enough.
brennanMKE has quit [Ping timeout: 272 seconds]
<centrx> abroco, But yeah to give you a taste of how awesome Ruby is, you can rewrite this whole thing (except the error handling) as: string.chars.permutation.map { |perm| open("https://twitter.com/#{comb}") }
rushed has joined #ruby
<abroco> bnagy: Oh, and with your permutation sequence it only caters for same-sized-character maps.
Es0teric has quit [Quit: Computer has gone to sleep.]
tyl has joined #ruby
pskosinski has joined #ruby
<abroco> bnagy: Given a "set" of characters, "abcde", I want "a", "ab", abc", "abcd", "abcde", "b", "ba", "bac", "bacd", "bacde", "c" ... "edcba"
<centrx> s/awesome/expressive
ryantm has quit [Read error: Operation timed out]
<abroco> centrx: I know it's cool!
<abroco> centrx: But I don't know what that does, or how to even apply it to my codeset.
baroquebobcat has quit [Quit: baroquebobcat]
baroquebobcat has joined #ruby
<centrx> bummer
niklasb has quit [Ping timeout: 260 seconds]
<abroco> Thanks a lot you two. Going off to find a drawing board.
<abroco> Would be interesting to see how you'd do it, but I suppose that's cheating.
sparrovv has joined #ruby
gja has joined #ruby
timonv has joined #ruby
cj3kim has joined #ruby
Brolen has quit [Remote host closed the connection]
baroquebobcat has quit [Client Quit]
<reactormonk> centrx, a tree is a subset.
abroco has quit [Quit: Lost terminal]
<centrx> Yes
mocfive has joined #ruby
<centrx> The only graph library I found for Ruby is five years old
rushed has quit [Quit: rushed]
timonv has quit [Ping timeout: 252 seconds]
<centrx> but it should be straightforward to implement a directed graph traversal
<reactormonk> RGL?
<centrx> Yes
sparrovv has quit [Ping timeout: 264 seconds]
jhn has quit [Ping timeout: 272 seconds]
<centrx> "graphr", also fairly old and unmaintained
Amart41 has joined #ruby
kewjo has joined #ruby
<centrx> reactormonk, The standard algorithm is just traversing each link from each node, and marking where you have been before
<reactormonk> centrx, I think I don't have to mark if I just go full recursive
<bnagy> correct
chatrjr has quit [Quit: Leaving]
<centrx> reactormonk, If there are cycles you have to block the cycles somehow
<reactormonk> centrx, I'm sure there are no cycles
<bnagy> I assumed it was a DAG
<bnagy> otherwise 'all paths' is.. not well defined
<centrx> Okay then it is probably just one short line of ruby code :)
<reactormonk> well, I have multiple edges per vertice :-/
<bnagy> yeah it's really only interesting for huge graphs
Amart41 has quit [Ping timeout: 252 seconds]
<bnagy> it should still be like paths << exits.map {|e| traverse(e)} or something
<centrx> there you go, Ruby wins again
amclain has quit [Quit: Leaving]
<bnagy> there's probably some flattening to do at some point
<bnagy> there usually is
gja has quit [Quit: This computer has gone to sleep]
shadoi has joined #ruby
kells has joined #ruby
phipes has quit [Remote host closed the connection]
ahmedelg_ has joined #ruby
brennanMKE has joined #ruby
alexfreidah has joined #ruby
shadoi has quit [Ping timeout: 245 seconds]
davy_ has joined #ruby
ahmedelgabri has quit [Ping timeout: 264 seconds]
davy_ has quit [Read error: Connection reset by peer]
iamdoo2 has joined #ruby
davy_ has joined #ruby
fire has joined #ruby
justsee has joined #ruby
alexfreidah has quit [Ping timeout: 248 seconds]
v10energy has joined #ruby
goganchic has quit []
mary5030 has quit [Remote host closed the connection]
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
Guest6648 has quit [Quit: Konversation terminated!]
centrx has quit [Quit: Leaving]
justsee has quit [Client Quit]
iamdoo2 has quit [Ping timeout: 248 seconds]
aniM has joined #ruby
tyl_ has joined #ruby
bradhe has joined #ruby
bricker`LA has quit [Ping timeout: 252 seconds]
brennanMKE has quit [Ping timeout: 265 seconds]
magoo has quit [Quit: WeeChat 0.4.2]
Parker0 has joined #ruby
bradhe has quit [Ping timeout: 260 seconds]
workmad3 has joined #ruby
kells has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mengu has joined #ruby
aniM has quit [Ping timeout: 251 seconds]
Lewix has quit [Remote host closed the connection]
Alina-malina has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
Alina-malina has joined #ruby
kidoz has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
mengu has quit [Ping timeout: 264 seconds]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
mary5030 has quit [Remote host closed the connection]
Hobogrammer has quit [Ping timeout: 272 seconds]
geggam has quit [Remote host closed the connection]
ndrei has joined #ruby
meatherly has quit [Remote host closed the connection]
Xeago has joined #ruby
w4pm has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
ericmathison has joined #ruby
mocfive has quit [Remote host closed the connection]
Xeago has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
yfeldblu_ has quit [Read error: Connection reset by peer]
mocfive has joined #ruby
S0da has joined #ruby
<reactormonk> nice way to index an array into a hash?
tdubya has joined #ruby
Ryan_420 has joined #ruby
Shidash has joined #ruby
w4pm has quit [Ping timeout: 264 seconds]
<Ryan_420> Hello everyone
Xeago has quit [Remote host closed the connection]
Ryan_420 has left #ruby [#ruby]
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
mocfive has quit [Read error: Operation timed out]
sambao21 has quit [Quit: Computer has gone to sleep.]
brennanMKE has joined #ruby
brennanMKE has quit [Read error: Connection reset by peer]
brennanM_ has joined #ruby
shedd has quit [Remote host closed the connection]
fire has left #ruby ["WeeChat 0.4.1"]
tyl has quit [Ping timeout: 245 seconds]
aniM has joined #ruby
brennanM_ has quit [Ping timeout: 252 seconds]
noop has joined #ruby
fire has joined #ruby
tyl has joined #ruby
progrock has left #ruby [#ruby]
Jdubs has quit [Remote host closed the connection]
fire has left #ruby [#ruby]
phipes has joined #ruby
ktosiek_ has quit [Ping timeout: 245 seconds]
gja has quit [Quit: This computer has gone to sleep]
CogitoErgoSum has quit [Ping timeout: 252 seconds]
<reactormonk> how do I create all combinations of true and false of array size X?
browndawg has quit [Quit: Leaving.]
yfeldblum has joined #ruby
iliketurtles has joined #ruby
thomasxie has joined #ruby
iliketurtles has quit [Excess Flood]
iliketurtles has joined #ruby
<reactormonk> product seems to the way to go
bradhe has joined #ruby
bricker`LA has joined #ruby
<reactormonk> but that only works for two elements... reduce it is.
<reactormonk> .product([true, false]).map {|x| x.flatten(1)}
cj3kim has quit [Remote host closed the connection]
<reactormonk> ^ apply that X times
<reactormonk> not sure if that's the good solution
yfeldblum has quit [Ping timeout: 245 seconds]
bradhe has quit [Ping timeout: 272 seconds]
mocfive has joined #ruby
aniM_ has joined #ruby
aniM has quit [Ping timeout: 260 seconds]
gja has joined #ruby
pardusf has joined #ruby
parduse is now known as Guest12846
pardusf is now known as parduse
parduse has quit [Changing host]
parduse has joined #ruby
Guest12846 has quit [Ping timeout: 245 seconds]
brennanMKE has joined #ruby
shedd has joined #ruby
parduse is now known as Guest4700
parduse has joined #ruby
parduse has quit [Changing host]
parduse has joined #ruby
gja has quit [Client Quit]
vlad_starkov has joined #ruby
Guest4700 has quit [Ping timeout: 248 seconds]
phipes has quit [Remote host closed the connection]
v10energy has quit [Read error: Operation timed out]
brennanMKE has quit [Ping timeout: 264 seconds]
shedd has quit [Ping timeout: 245 seconds]
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
gja has joined #ruby
timonv has joined #ruby
s2013_ has joined #ruby
timonv has quit [Read error: Operation timed out]
daxroc has joined #ruby
claymore has joined #ruby
claymore has quit [Changing host]
claymore has joined #ruby
kashyap_ has joined #ruby
s2013 has joined #ruby
Starwind has joined #ruby
<kashyap_> Heya, any hints on this failure - http://fpaste.org/71522/ ?
claymore has quit [Ping timeout: 245 seconds]
<kashyap_> However, I do have bundler yajl-ruby gems installed.
Morrolan has quit [Ping timeout: 252 seconds]
s2013_ has quit [Ping timeout: 260 seconds]
dachi_ has quit [Ping timeout: 252 seconds]
browndawg has joined #ruby
mary5030 has joined #ruby
<kashyap_> AndyWojo, some version info:
<kashyap_> $ gem --version; bundle --version
<kashyap_> 2.0.10
<kashyap_> Bundler version 1.5.2
<kashyap_> (Oops, didn't mean to prompt him. Meant to write 'And')
Morrolan has joined #ruby
<s2013> uh.. anyway to parse pdf/doc files using ruby?
gja has quit [Quit: This computer has gone to sleep]
stkowski has quit [Quit: stkowski]
dachi_ has joined #ruby
dodosan has joined #ruby
<tdubya> google is your friend, friend.
Brolen has joined #ruby
dodosan has quit [Client Quit]
mary5030 has quit [Ping timeout: 272 seconds]
popl has joined #ruby
popl has joined #ruby
RoryHughes has joined #ruby
phansch has joined #ruby
claymore has joined #ruby
lsmola_ has quit [Ping timeout: 252 seconds]
_root has joined #ruby
Brolen has quit [Ping timeout: 272 seconds]
Xeago has joined #ruby
gja has joined #ruby
_root has quit [Client Quit]
ndrei has quit [Ping timeout: 245 seconds]
carraroj has joined #ruby
<s2013> i saw the pdf one
<s2013> how about doc
iliketurtles has quit [Quit: zzzzz…..]
Xeago has quit [Ping timeout: 248 seconds]
ndrei has joined #ruby
iliketurtles has joined #ruby
iliketurtles has quit [Excess Flood]
s2013_ has joined #ruby
shedd has joined #ruby
Jdubs has joined #ruby
mocfive has quit [Remote host closed the connection]
mocfive has joined #ruby
s2013 has quit [Ping timeout: 264 seconds]
Liothen has quit [Quit: System of a down……]
jmccune has quit [Ping timeout: 272 seconds]
Liothen has joined #ruby
shedd has quit [Ping timeout: 252 seconds]
bradhe has joined #ruby
alexfreidah has joined #ruby
mocfive has quit [Ping timeout: 264 seconds]
Spami__ has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
daxroc1 has joined #ruby
<reactormonk> how do I include the constant namespace of a module in a block?
bradhe has quit [Ping timeout: 260 seconds]
daxroc has quit [Ping timeout: 264 seconds]
cj3kim has joined #ruby
yfeldblum has joined #ruby
<tdubya> s2013 no idea about the doc
godd2 has joined #ruby
alexfreidah has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Ping timeout: 252 seconds]
Profe34 has joined #ruby
Profe34 has quit [Client Quit]
<reactormonk> was it __FILE__ == __MAIN__ or something similar?
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
<apeiros> reactormonk: Module.nesting ?
<apeiros> the other thing is $0 == __FILE__, but that's about testing whether the current file is the script being run
<godd2> Funny I was just reading about that in teh Pickaxe Book "The constant __FILE__ and the variable $0 are often used together to run code only if it appears in the file run directly by the user."
gja has joined #ruby
Starwind has quit [Ping timeout: 272 seconds]
timonv has joined #ruby
ahmedelgabri has joined #ruby
ahmedelgabri has quit [Remote host closed the connection]
ahmedelgabri 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
dik_dak has quit [Quit: Leaving]
pskosinski_ has joined #ruby
brennanMKE has joined #ruby
ace_striker_ has joined #ruby
ace_striker has quit [Client Quit]
ace_striker_ has quit [Client Quit]
ahmedelg_ has quit [Ping timeout: 264 seconds]
kidoz has quit [Quit: Ухожу я от вас]
ace_striker has joined #ruby
ace_striker has quit [Client Quit]
eval-in has joined #ruby
pskosinski has quit [Ping timeout: 240 seconds]
shedd has joined #ruby
fgo has quit [Remote host closed the connection]
fgo has joined #ruby
brennanMKE has quit [Ping timeout: 264 seconds]
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
wallerdev has quit [Quit: wallerdev]
<reactormonk> apeiros, found it
<reactormonk> godd2, I added the line binding.pry if __FILE__ == $0
<reactormonk> ... to my test/setup.rb
<reactormonk> useful.
<kashyap_> Hien, just re-posting, in-case people joined later: Any hints on resolving this - http://fpaste.org/71522/
shedd has quit [Ping timeout: 260 seconds]
<kashyap_> (Argh, meant to say Hi, damn auto completion)
Jetchisel has joined #ruby
<reactormonk> uuuuuh
<reactormonk> somehow the code I'm running is too slow :-(
Starwind has joined #ruby
<reactormonk> well, I'm generating 1352 paths here.
<reactormonk> now if I want to do that with some more stuff.... I think I'll go find a faster language
<reactormonk> rewrite the stuff sucks :-(
sensen has joined #ruby
sensen has quit [Changing host]
sensen has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
shredding has joined #ruby
RoxasShadowRS has joined #ruby
tyl has quit [Ping timeout: 240 seconds]
tyl has joined #ruby
RoryHughes has quit []
vlad_starkov has quit [Remote host closed the connection]
fgo has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
RoryHughes has joined #ruby
shredding has quit [Quit: shredding]
yfeldblum has joined #ruby
gja has joined #ruby
gja has quit [Client Quit]
asmodlol has joined #ruby
ktun has joined #ruby
Shidash has quit [Ping timeout: 252 seconds]
cj3kim has quit [Remote host closed the connection]
e^0_ has joined #ruby
thomasxie has quit [Ping timeout: 252 seconds]
zoscoy has joined #ruby
zoscoy has quit [Client Quit]
e^0_ has left #ruby [#ruby]
bradhe has joined #ruby
thomasxie has joined #ruby
shedd has joined #ruby
bradhe has quit [Ping timeout: 272 seconds]
davy_ has quit [Remote host closed the connection]
coderhut has joined #ruby
shedd has quit [Ping timeout: 272 seconds]
coca_rails has joined #ruby
<shevy> yeah
<shevy> rewrites always suck
e^0 has joined #ruby
e^0 has quit [Changing host]
e^0 has joined #ruby
coca_rails has quit [Read error: Connection reset by peer]
coca_rails has joined #ruby
e^0 has quit [Client Quit]
falood has quit [Remote host closed the connection]
kashyap_ has left #ruby ["Leaving"]
falood has joined #ruby
iamdoo2 has joined #ruby
falood has quit [Remote host closed the connection]
falood has joined #ruby
falood has quit [Remote host closed the connection]
ss__ has joined #ruby
ooo has left #ruby [#ruby]
Aryasam has joined #ruby
mengu has joined #ruby
ace_striker2 has joined #ruby
mengu has quit [Read error: Connection reset by peer]
iamdoo2 has quit [Ping timeout: 252 seconds]
brucelee has joined #ruby
nhhagen has joined #ruby
s2013_ has quit [Ping timeout: 260 seconds]
mengu has joined #ruby
Alina-malina has quit [Quit: Leaving]
Parker0 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
akemrir has joined #ruby
tt1187 has joined #ruby
akemrir has quit [Client Quit]
tyl has quit [Ping timeout: 272 seconds]
akemrir has joined #ruby
tyl has joined #ruby
monkegjinni has joined #ruby
ericmathison has quit [Quit: leaving]
ace_striker_ has joined #ruby
phansch_ has joined #ruby
Cache_Money has quit [Ping timeout: 252 seconds]
Cache_Money_ has joined #ruby
fgo has joined #ruby
akemrir has quit [Client Quit]
phansch has quit [Ping timeout: 248 seconds]
<kewjo> /leave
kewjo has left #ruby ["WeeChat 0.4.1"]
coderhut has quit [Quit: Page closed]
yfeldblum has quit [Read error: Connection reset by peer]
shedd has joined #ruby
ss__ has quit [Ping timeout: 272 seconds]
cj3kim has joined #ruby
mojjojo has joined #ruby
sensen has quit [Ping timeout: 272 seconds]
mengu has quit [Remote host closed the connection]
Cache_Money_ has quit [Quit: Cache_Money_]
sensen has joined #ruby
phansch_ is now known as phansch
shedd has quit [Ping timeout: 252 seconds]
mojjojo has quit [Client Quit]
ewnd9 has quit [Remote host closed the connection]
browndawg has quit [Ping timeout: 264 seconds]
mojjojo has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ewnd9 has joined #ruby
browndawg has joined #ruby
ace_striker2 has quit [Ping timeout: 245 seconds]
ace_striker has quit [Ping timeout: 245 seconds]
Hiall has joined #ruby
Starwind has quit [Ping timeout: 245 seconds]
Brolen has joined #ruby
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
jamesaanderson has joined #ruby
LadyRainicorn has joined #ruby
LadyRainicorn has quit [Max SendQ exceeded]
jamesaanderson has quit [Remote host closed the connection]
sparrovv has joined #ruby
fgo has quit [Remote host closed the connection]
Spami__ has quit [Quit: This computer has gone to sleep]
Brolen has quit [Ping timeout: 252 seconds]
senayar has joined #ruby
bradhe has joined #ruby
sparrovv has quit [Remote host closed the connection]
fgo has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
IceyEC has quit [Read error: Operation timed out]
ctp has joined #ruby
IceyEC has joined #ruby
bradhe has quit [Ping timeout: 248 seconds]
tyl_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ctp_ has joined #ruby
carraroj has quit [Ping timeout: 264 seconds]
tyl_ has joined #ruby
tyl_ has quit [Client Quit]
Starwind has joined #ruby
charliesome has joined #ruby
shedd has joined #ruby
ctp has quit [Ping timeout: 260 seconds]
godd2 has quit []
relix has joined #ruby
alexherbo2 has joined #ruby
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
shedd has quit [Ping timeout: 252 seconds]
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
alexfreidah has joined #ruby
jamesaanderson has joined #ruby
jamesaanderson has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
kidoz has joined #ruby
jamesaanderson has joined #ruby
jamesaanderson has quit [Remote host closed the connection]
jamesaanderson has joined #ruby
decoponio has quit [Read error: Connection reset by peer]
decoponio has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
tyl has quit [Ping timeout: 272 seconds]
Alina-malina has joined #ruby
iamdoo2 has joined #ruby
alexfreidah has quit [Ping timeout: 240 seconds]
iamdoo2 has quit [Ping timeout: 252 seconds]
mojjojo has quit [Quit: mojjojo]
nouitfvf has joined #ruby
mengu has joined #ruby
Hanmac has joined #ruby
Hanmac1 has quit [Ping timeout: 245 seconds]
<shevy> who or what populates http://rubydoc.info ?
<shevy> there is an annoying bug, no idea who is responsible for that site
TripleDE1 has joined #ruby
TripleDE1 is now known as TDES_home
LadyRainicorn has joined #ruby
spider-mario has joined #ruby
Hanmac1 has joined #ruby
<popl> shevy: Loren Segal and Nick Plante.
<popl> shevy: It says as much when you click the "about" link.
<shevy> wat
<shevy> oh I see
<popl> There's a link to that repo
<shevy> that site layout confuses the hell outta me, thanks popl
<popl> With a list of contributors
<popl> Dude, the about link is right there.
Advocation has joined #ruby
<popl> I don't want to hear your excuses. ;P
sensen has quit [Quit: leaving]
<popl> I think you smoke a little too much something or another.
Hanmac has quit [Ping timeout: 245 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kidoz has quit [Quit: Ухожу я от вас]
blackmesa has joined #ruby
<shevy> popl I was not looking at the right upper side
RoryHughes has quit []
<shevy> like that link "Learn about Yard"
<shevy> I put it into the "useless area" of my brain
max96at has joined #ruby
<popl> pretty expansive area, eh?
<popl> :P
RoryHughes has joined #ruby
brennanMKE has joined #ruby
Hanmac has joined #ruby
<shevy> no, I focus only on what is relevant on a website in an instant
<shevy> the rest is useless :)
RoryHughes has quit [Client Quit]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<popl> ah
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> like on rubygems.org the lower area
<shevy> I never finished reading what is all available
Hanmac1 has quit [Ping timeout: 252 seconds]
<shevy> Mobile Status Uptime Code Discuss Stats About
nhhagen has quit [Ping timeout: 276 seconds]
charliesome has joined #ruby
brennanMKE has quit [Ping timeout: 252 seconds]
shedd has joined #ruby
eka has joined #ruby
Aryasam has quit [Ping timeout: 252 seconds]
mojjojo has joined #ruby
TheDick has joined #ruby
w4pm has joined #ruby
shedd has quit [Ping timeout: 252 seconds]
TheDick_ has joined #ruby
fgo has quit [Remote host closed the connection]
lxsameer has joined #ruby
<lxsameer> how can i load rake task from a gem in my current Rakefile ?
LadyRainicorn has quit [Quit: Bye]
falood has joined #ruby
dross has quit [Ping timeout: 272 seconds]
TheDick has quit [Ping timeout: 252 seconds]
TheDick_ is now known as TheDick
relix has joined #ruby
w4pm has quit [Ping timeout: 260 seconds]
mykeus has quit [Ping timeout: 252 seconds]
cj3kim has quit [Remote host closed the connection]
eka has quit [Quit: Computer has gone to sleep.]
Speed has joined #ruby
bradhe has joined #ruby
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vlad_starkov has quit [Remote host closed the connection]
Speed has quit [Client Quit]
Speed has joined #ruby
Aryasam has joined #ruby
mark| has quit [Quit: ZNC - http://znc.in]
bradhe has quit [Ping timeout: 248 seconds]
<pontiki> if you run rspec, cucumber or a million other gems with rake takss, you already are
noop has quit [Remote host closed the connection]
havenwood has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
<pontiki> all you need to do is require the rake task file
VTLob has joined #ruby
prc has quit [Ping timeout: 240 seconds]
mengu has quit [Remote host closed the connection]
<lxsameer> pontiki: there is lot's of rake files, i tried to use Dir.glob but it did not works. let me show some code
mercwithamouth has joined #ruby
browndawg has quit [Ping timeout: 265 seconds]
jackneill has joined #ruby
<lxsameer> pontiki: http://dpaste.com/1568698/
<lxsameer> pontiki: the Dir block never runs
Hiall has quit [Quit: hiall]
browndawg has joined #ruby
fgo has joined #ruby
yasushi has joined #ruby
drumusician has joined #ruby
parduse is now known as Guest16742
Guest16742 has quit [Killed (hubbard.freenode.net (Nickname regained by services))]
parduse has joined #ruby
parduse has quit [Changing host]
parduse has joined #ruby
LiquidInsect has quit [Ping timeout: 248 seconds]
LiquidInsect has joined #ruby
mojjojo has quit [Quit: mojjojo]
Alina-malina has quit [Quit: Leaving]
mojjojo has joined #ruby
yasushi has quit [Remote host closed the connection]
yfeldblum has joined #ruby
MrZYX|off is now known as MrZYX
mojjojo has quit [Client Quit]
iamdoo2 has joined #ruby
mojjojo has joined #ruby
sree has joined #ruby
yfeldblum has quit [Ping timeout: 248 seconds]
DouweM has joined #ruby
iamdoo2 has quit [Ping timeout: 252 seconds]
rippa has joined #ruby
Briareos1 has joined #ruby
havv has joined #ruby
Amart41 has joined #ruby
sparrovv has joined #ruby
sree has quit []
gja has joined #ruby
phansch has quit [Ping timeout: 272 seconds]
<pontiki> what is the content of spec.gem_dir?
ctp has joined #ruby
havv has quit [Client Quit]
popl has quit [Quit: Hoppe hoppe Reiter]
Amart41 has quit [Ping timeout: 252 seconds]
ctp_ has quit [Ping timeout: 245 seconds]
ctp has quit [Ping timeout: 245 seconds]
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
fgo has quit [Remote host closed the connection]
lxsameer has quit [Quit: Leaving]
mojjojo has quit [Quit: mojjojo]
brennanMKE has joined #ruby
mojjojo has joined #ruby
Advocation has quit [Quit: Advocation]
gja has quit [Quit: This computer has gone to sleep]
blackmesa has quit [Ping timeout: 252 seconds]
brennanMKE has quit [Ping timeout: 248 seconds]
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
sepp2k has joined #ruby
shedd has joined #ruby
Zubin has joined #ruby
gja has quit [Client Quit]
mojjojo has quit [Quit: mojjojo]
TheDick has quit [Quit: TheDick]
dangerousdave has joined #ruby
ahmedelg_ has joined #ruby
senayar has quit [Remote host closed the connection]
Zubin has left #ruby [#ruby]
shedd has quit [Ping timeout: 245 seconds]
RoryHughes has joined #ruby
phansch has joined #ruby
ahmedelgabri has quit [Ping timeout: 252 seconds]
coca_rails has quit [Remote host closed the connection]
bradhe has joined #ruby
rmdgm has joined #ruby
Lewix has joined #ruby
<rmdgm> xcdd rocky 4
alexherbo2 has joined #ruby
mojjojo has joined #ruby
rmdgm has quit []
fusi0n has joined #ruby
cj3kim has joined #ruby
aniM_ has quit [Ping timeout: 252 seconds]
roolo has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
mojjojo has quit [Client Quit]
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Brolen has joined #ruby
cj3kim has quit [Ping timeout: 245 seconds]
ctp has joined #ruby
mojjojo has joined #ruby
ctp has quit [Client Quit]
mojjojo has quit [Client Quit]
Brolen has quit [Ping timeout: 248 seconds]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
shime has joined #ruby
mojjojo has joined #ruby
alexherbo2 has quit [Quit: WeeChat 0.4.2]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
aniM has joined #ruby
kotk has joined #ruby
fusi0n has quit [Quit: .]
gja has quit [Quit: This computer has gone to sleep]
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
jamesaanderson has joined #ruby
Starwind has quit [Quit: Leaving]
shedd has joined #ruby
Speed has left #ruby ["WeeChat 0.4.2"]
Tuxist has joined #ruby
Aryasam has quit [Read error: Connection reset by peer]
Tuxist has quit [Read error: Connection reset by peer]
shredding has joined #ruby
mityaz has joined #ruby
tt1187 has quit []
alexfreidah has joined #ruby
shime has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
shedd has quit [Ping timeout: 272 seconds]
bobdobbs has joined #ruby
Aryasam has joined #ruby
browndawg has quit [Quit: Leaving.]
shime has joined #ruby
<shredding> I have a capistrano task that does remote work on a server that is secured via port knocking.
yfeldblum has joined #ruby
<shredding> Therefore I want to have a parallel thread or process or I-am-not-yet-sure that does a constant knock in a loop to keep the connection alive.
alexfreidah has quit [Ping timeout: 240 seconds]
VeinMelted has joined #ruby
<bobdobbs> I have vagrant installed via ubuntu's package manager, and ruby 1.9.3 installed via rbenv. When I try '/usr/bin/vagrant --version', I get this: http://hastebin.com/fuvetacuse.vbs
iamdoo2 has joined #ruby
<shredding> Is that a good idea to make that in a thread? If yes, how could i stop the forever-knock thead?
mercwithamouth has quit [Ping timeout: 240 seconds]
<shredding> bobdobbs: What does custom_require.rb say?
<bobdobbs> what is custom_require?
<MrZYX> shredding: out of your specific domain answer: don't stop a thread externally, check a flag in the thread whether it should quit and set that externally
<shredding> MrZYX: How would one do that?
<shredding> bobdobbs: I don't know but it's where the error occurs in your error message.
<shredding> MrZYX: More specific how can i set a (boolean?) flag in a thread externally?
<MrZYX> externally = from another thread
<bobdobbs> shredding: found it. having a look through it now
yfeldblum has quit [Ping timeout: 252 seconds]
<MrZYX> class MyThread < Thread; attr_accessor :quit; def run; until quit; stuff; end; end; t = MyThread.new; t.quit = true
<shredding> MrZYX: Awesome, thanks.
<MrZYX> (more pseudo code, but you get the idea)
iamdoo2 has quit [Ping timeout: 272 seconds]
<bobdobbs> shredding: error comes from line 36. looks like a path issue
jonahR has joined #ruby
sven___ has joined #ruby
<shredding> bobdobbs: Hm.
<shredding> It works on my mac
jonahR has quit [Client Quit]
Aryasam has quit [Read error: Connection reset by peer]
yasushi has joined #ruby
Aryasam has joined #ruby
<bobdobbs> shredding: Hm
<MrZYX> bobdobbs: .rbenv and your system ruby (what you installed vagrant for) have distinct $GEM_HOME's/$GEM_PATH. compare gem env in both environments
LadyRainicorn has joined #ruby
sven___ is now known as kf8a
aniM has quit [Ping timeout: 264 seconds]
kf8a has quit [Client Quit]
<bobdobbs> echo $GEM_PATH and echo $GEM_HOME from the command line return nothing
kirun has joined #ruby
<shredding> bobdobbs: Have you asked at #vagrant?
fgo has joined #ruby
<bobdobbs> oh, there's a vagrant channel? cool.
gja has joined #ruby
<MrZYX> bobdobbs: `gem env`, it's a command you can run
<bobdobbs> if I cant nail the problem in the next 20 minutes, I'm gonna go get some sleep. I'll hit up #vagrant tomorrow
fusi0n has joined #ruby
<shredding> bobdobbs: Setting up vagrant is the easy part though, puppet is the real pain.
<bobdobbs> oh gawd. don't tell me that
<bobdobbs> woudja believe it, this is all for working on a wordpress site
yasushi has quit [Ping timeout: 245 seconds]
<bobdobbs> client "I need you to do HTML to Wordpress conversion. For this, I want you to install vagrant, ruby 1.9.3, node, composer"
<bobdobbs> me: "sure!"
Aryasam has quit [Ping timeout: 265 seconds]
<LadyRainicorn> Why does Wordpress require those things?
<bobdobbs> It doesn't really. But this guys knows his stuff. I get the impression that his stack speeds up deployment.
<bobdobbs> either that, or he's just trying to be clever. And I'm going to get it all working just to prove that I'm clever.
fusi0n has quit [Client Quit]
brennanMKE has joined #ruby
<MrZYX> bobdobbs: to be clever in ruby means to not mix and mash a ruby version manager and installing gems via your package manager ;)
<bobdobbs> MrZYX: No choice. Vagrant isn't available as a gem.
vlad_starkov has quit [Remote host closed the connection]
<bobdobbs> older version?
Jdubs has quit [Remote host closed the connection]
<LadyRainicorn> Clever in ruby usually means knowing when something is unnecessary.
gja has quit [Quit: This computer has gone to sleep]
Vivekananda has quit [Ping timeout: 260 seconds]
<bobdobbs> yeah, I think that might be a version older then the one I have to install
<LadyRainicorn> Also you can checkout from git and just use gem.
<LadyRainicorn> (or Bundler pre-2.1)
<MrZYX> anyway, don't mixing stands. Use your system ruby then
<bobdobbs> there's things I can't do with the ruby in the ubuntu repos.
yasushi has joined #ruby
aniM has joined #ruby
<bobdobbs> I honestly can't remember what those things are though.
<bobdobbs> probably something to do with sas
<bobdobbs> sass
<bobdobbs> LadyRainicorn: I'm using rbenv
gja has joined #ruby
Jdubs has joined #ruby
<bobdobbs> I know, I know, I've got a mess on my hands
<LadyRainicorn> Ah. RVM is probably easier for what you seem to want.
brennanMKE has quit [Ping timeout: 240 seconds]
<LadyRainicorn> Though what you want seems weird and since you can't explain why, I get the feelinf you've jusr got a customer who is throwing around buzzwords
<MrZYX> bobdobbs: start vagrant with your system ruby, use sass with your rbenv ruby, no problem there
gja has quit [Client Quit]
mojjojo has quit [Quit: mojjojo]
alexherbo2 has joined #ruby
<bobdobbs> LadyRainicorn: maybe. but I get the sense that he knows what he's doing. I'll certainly find out if he doesn't though.
<LadyRainicorn> Why didn't you ask what it was for?
<bobdobbs> MrZYX: I've ripped out my system ruby to avoid conflicts.
<bobdobbs> oh, maybe that's the problem
shedd has joined #ruby
<bobdobbs> LadyRainicorn: good question. I can't remember.
bradhe has joined #ruby
<bobdobbs> maybe because he's the guy with the cash.
<bobdobbs> actually, I might just talk with about this.
Jetchisel has quit [Ping timeout: 256 seconds]
<LadyRainicorn> You probably should before spending s lot of time on it.
<LadyRainicorn> It seems like an awful lot of trouble for a WP site.
<bobdobbs> yeah
<LadyRainicorn> Especially since everything you're trying to do seems totally unrelated.
<bobdobbs> I might just say something like this: setting this up on my system is a lot of work and will create chaos across my working environments. If we have to use vagrant then maybe I can't work with you on this project
nouitfvf has quit []
<bobdobbs> LadyRainicorn: now that you mention it, something else comes to mind.
<LadyRainicorn> Or you can just admit that you have no clue why you would be using Vagrant.
<LadyRainicorn> Becayse no sane person would know that.
<bobdobbs> yeah.
<bobdobbs> reading that actually made me laugh out loud
gja has joined #ruby
<bobdobbs> I mean, now that I think about it... this is not a job for vagrant.
<bobdobbs> any half-assed host can handle wordpress
<LadyRainicorn> Yep. Or Ruby, or Node.
<bobdobbs> hahahaha
<bobdobbs> yeah
<LadyRainicorn> None of the techologies he wants are required in any way.
<bobdobbs> wytf do I need node for this?
aniM has quit [Ping timeout: 252 seconds]
shedd has quit [Ping timeout: 272 seconds]
<LadyRainicorn> You don't. at all.
<bobdobbs> maaaaaaaaaybe there's more to it...
bradhe has quit [Ping timeout: 272 seconds]
<bobdobbs> actually, I don't think there is
<bobdobbs> this might be one of those situations when some guy who is really clever just uses too much clever.
<LadyRainicorn> unclear expectations = sad coder
<bobdobbs> I'll be happy if I manage to get the stack up.
<LadyRainicorn> I think your definition of clever is flawed.
<LadyRainicorn> Protip: Just set up WP and tell him you did the rest.
<bobdobbs> well, I'm kind of thinking of myself. Sometimes I apply too much clever instead of just cutting the gordian know
Vivekananda has joined #ruby
Wolland has quit []
<LadyRainicorn> That's the opposite of clever.
<LadyRainicorn> Anticlever
<LadyRainicorn> CLEAVER
<bobdobbs> heh
Zubin has joined #ruby
* bobdobbs passes LadyRainicorn cleaver
Zubin has quit [Client Quit]
<bobdobbs> aw hell. I'm skyping with him tomo. I'll tell him where I've gotten. If he can't help me get it running, then... I dunno. I'll just tell him I can't risk messing with my system too much.
cj3kim has joined #ruby
aspiers has joined #ruby
<bobdobbs> I've got other project to work on, and I have to keep things relatively hygenic.
<bobdobbs> that means NOT mixing ruby versions
<shevy> long live ruby 1.8.7!
fgo has quit [Remote host closed the connection]
<bobdobbs> quote:
<bobdobbs> This is our highly-opinionated framework for developing and deploying new WordPress websites
fixl has quit [Remote host closed the connection]
<bobdobbs> It uses Puppet, Capistrano, Vagrant, and a number of other technologies for front-end scaffolding
poulson has joined #ruby
mojjojo has joined #ruby
RoryHughes has quit []
cj3kim has quit [Ping timeout: 272 seconds]
Jdubs has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 252 seconds]
wtfitsme has joined #ruby
foxyfennec has joined #ruby
foxyfennec has quit [Client Quit]
LadyRainicorn has quit [Read error: Connection reset by peer]
ndrei has joined #ruby
foxyfennec has joined #ruby
LadyRainicorn has joined #ruby
foxyfennec has quit [Remote host closed the connection]
falood has quit [Remote host closed the connection]
gja has quit [Quit: This computer has gone to sleep]
mykeus has joined #ruby
foxyfennec has joined #ruby
falood has joined #ruby
foxyfennec has quit [Client Quit]
Butcho has joined #ruby
LadyRainicorn has quit [Ping timeout: 272 seconds]
carraroj has joined #ruby
wtfitsme has quit [Quit: wtfitsme]
tvw has joined #ruby
<shevy> isn't WordPress php
SeySayux has quit [Ping timeout: 260 seconds]
shime has quit [Ping timeout: 240 seconds]
weeb1e has quit [Ping timeout: 245 seconds]
SeySayux has joined #ruby
connor_goodwolf has joined #ruby
shedd has joined #ruby
kindjal has joined #ruby
towski has quit [Read error: Connection reset by peer]
_root has joined #ruby
thomasxie has quit [Ping timeout: 260 seconds]
seoNinjaWarrior has joined #ruby
Amart41 has joined #ruby
shedd has quit [Ping timeout: 252 seconds]
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
ixti has joined #ruby
_root has quit [Client Quit]
gja has joined #ruby
falood has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Amart41 has quit [Ping timeout: 260 seconds]
iamdoo2 has joined #ruby
drumusician has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
Davey has joined #ruby
iamdoo2 has quit [Ping timeout: 272 seconds]
Bridge| has joined #ruby
mehlah has joined #ruby
<Bridge|> Morning All ;)
rootshift has joined #ruby
towski has joined #ruby
ixti has quit [Quit: WeeChat 0.4.2]
Bridge| has quit []
Bridge| has joined #ruby
zz_anildigital is now known as anildigital
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Davey has quit [Quit: Computer has gone to sleep.]
Lewix has quit [Remote host closed the connection]
bradhe has joined #ruby
joshu_ has quit [Ping timeout: 260 seconds]
zoscoy has joined #ruby
zoscoy has quit [Client Quit]
joshu has joined #ruby
shredding has quit [Quit: shredding]
shredding has joined #ruby
sree has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
TDES_home has quit [Ping timeout: 260 seconds]
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
RoryHughes has joined #ruby
vlad_starkov has joined #ruby
rtpg has joined #ruby
shedd has joined #ruby
browndawg has joined #ruby
sparrovv has quit [Remote host closed the connection]
Es0teric has joined #ruby
shedd has quit [Ping timeout: 272 seconds]
ktosiek has joined #ruby
Alina-malina has joined #ruby
ace_striker has quit [Quit: Page closed]
acer has joined #ruby
mojjojo has quit [Quit: mojjojo]
sree has quit []
acer has quit [Client Quit]
wormwood has quit [Ping timeout: 276 seconds]
jamesaan_ has joined #ruby
jamesaan_ has quit [Max SendQ exceeded]
jamesaan_ has joined #ruby
jamesaan_ has quit [Max SendQ exceeded]
S0da has quit [Read error: Connection reset by peer]
spider-mario has quit [Ping timeout: 265 seconds]
drumusician has joined #ruby
eka has joined #ruby
jamesaan_ has joined #ruby
eka has quit [Client Quit]
jamesaanderson has quit [Ping timeout: 272 seconds]
jamesaan_ has quit [Read error: Connection reset by peer]
bayaz has joined #ruby
towski has quit [Ping timeout: 252 seconds]
shredding has quit [Quit: shredding]
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
jamesaanderson has joined #ruby
<shevy> anyone knows if it is possible to show the content of a .rtf file or a .doc file in a ruby .cgi page? or perhaps with rails?
zoscoy has joined #ruby
zoscoy has quit [Client Quit]
bayaz has quit [Quit: Leaving]
brennanMKE has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
jerius has joined #ruby
jamesaanderson has quit [Ping timeout: 272 seconds]
brennanM_ has joined #ruby
spider-mario has joined #ruby
littlebit has joined #ruby
jamesaanderson has joined #ruby
nhhagen has joined #ruby
brennanMKE has quit [Ping timeout: 272 seconds]
tyl has joined #ruby
sparrovv has joined #ruby
towski has joined #ruby
TDES_home has joined #ruby
shedd has joined #ruby
habanany has joined #ruby
alexfreidah has joined #ruby
angusigu1ss has joined #ruby
shedd has quit [Ping timeout: 240 seconds]
habanany has quit [Read error: Connection reset by peer]
ckinni has joined #ruby
yfeldblum has joined #ruby
Advocation has joined #ruby
alexfreidah has quit [Ping timeout: 272 seconds]
danman has joined #ruby
ktun has quit [Remote host closed the connection]
iamdoo2 has joined #ruby
habanany has joined #ruby
dangerousdave has joined #ruby
habanany has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
arietis has joined #ruby
yfeldblum has quit [Ping timeout: 241 seconds]
heftig has joined #ruby
teddyp1cker has joined #ruby
iamdoo2 has quit [Ping timeout: 240 seconds]
zz_jrhorn424 has joined #ruby
wtfitsme has joined #ruby
sski has quit [Remote host closed the connection]
Davey has joined #ruby
sski has joined #ruby
Davey has quit [Client Quit]
cj3kim has quit [Ping timeout: 252 seconds]
kevinykchan has joined #ruby
wtfitsme_ has joined #ruby
ferr has joined #ruby
ferr_ has joined #ruby
Advocation has quit [Quit: Advocation]
bradhe has joined #ruby
wtfitsme has quit [Ping timeout: 264 seconds]
wtfitsme_ is now known as wtfitsme
sski has quit [Ping timeout: 265 seconds]
AlSquirrel has joined #ruby
nhhagen has quit []
ahmedelgabri has joined #ruby
bradhe has quit [Ping timeout: 272 seconds]
rippa has joined #ruby
ahmedelg_ has quit [Ping timeout: 252 seconds]
phansch_ has joined #ruby
sebnozzi has joined #ruby
phansch has quit [Ping timeout: 264 seconds]
teddyp1cker has quit [Remote host closed the connection]
ganesh has joined #ruby
cjsarette has quit [Ping timeout: 252 seconds]
Ziarkaen has joined #ruby
ganesh is now known as Guest37568
keen_ has joined #ruby
sumark_ has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
Alina-malina has joined #ruby
phracker has joined #ruby
rushed has joined #ruby
tyl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
towski has quit [Ping timeout: 252 seconds]
jerius has quit []
jerius has joined #ruby
jamesaanderson has quit [Ping timeout: 260 seconds]
tyl has joined #ruby
ferr has quit [Ping timeout: 272 seconds]
jamesaanderson has joined #ruby
sumark_ has quit [Quit: a(n)nus horribilis]
Davey has joined #ruby
tongcx has joined #ruby
kotk has quit [Read error: Connection reset by peer]
jerius has quit [Ping timeout: 264 seconds]
v10energy has joined #ruby
griffindy has joined #ruby
coderhs has joined #ruby
tongcx has quit [Client Quit]
kevinykchan has quit [Quit: Computer has gone to sleep.]
jamesaanderson has quit [Ping timeout: 272 seconds]
mavcunha has joined #ruby
kevinykchan has joined #ruby
tvw has quit []
Butcho has quit [Quit: Textual IRC Client: www.textualapp.com]
ndrei has quit [Read error: Operation timed out]
roolo has quit [Quit: Leaving...]
jamesaanderson has joined #ruby
kevinykchan has quit [Read error: Connection reset by peer]
kevinykchan has joined #ruby
Brolen has joined #ruby
ndrei has joined #ruby
towski has joined #ruby
banister has joined #ruby
tongcx has joined #ruby
<tongcx> hi guys, i'm learning ruby web development, had some experience with nodejs and django before. But I am still confused with some concepts. So what's the relationship between "thin", "rack" and "sinatra"?
nateberkopec has joined #ruby
aryaching has joined #ruby
Al__ has joined #ruby
tt1187 has joined #ruby
sparrovv has quit [Read error: Connection reset by peer]
RoryHughes has quit [Ping timeout: 252 seconds]
<waxjar> thin is a web server, rack is a platform to build http applications on and sinatra is a DSL that makes working with rack move convenient
<waxjar> *more
sparrovv has joined #ruby
<tongcx> waxjar: so when a request coming in, thin will process it, parse it and manage the processes, then pass it to rack?
ktun has joined #ruby
RoryHughes has joined #ruby
<waxjar> yes
rushed has quit [Quit: rushed]
jamesaanderson has quit [Ping timeout: 240 seconds]
<tongcx> waxjar: why pass it to rack instead of sinatra?
<apeiros> tongcx: did you use a database independence layer in e.g. django?
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
<apeiros> you know, some library which allows you to change the database your app uses without changing the code
jamesaanderson has joined #ruby
jamesaanderson has quit [Remote host closed the connection]
<tongcx> apeiros: no, mine don't
<apeiros> :-/
<apeiros> too bad. rack is the same concept.
<apeiros> it abstracts the webserver. it provides the same API no matter which webserver you use.
<waxjar> tongcx: it provides a common interface between a "rack app" (basically an object that responds to #call) and a web server
<tongcx> very nice!
kindjal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<havenwood> tongcx: (Rails Sinatra Camping Scorched NY) <--frameworks Rack servers --> (Unicorn Thin Puma Passenger Webrick Reel-Rack)
<tongcx> does middleware lay in rack? or rack app?
shedd has joined #ruby
<apeiros> between rack and the app
<apeiros> hence "middle"
monkegjinni has quit [Remote host closed the connection]
<apeiros> request -> webserver -> rack -> middleware -> app => response -> middleware -> rack -> webserver
monkegjinni has joined #ruby
<tongcx> apeiros: very clear! does "sinatra" lay in "app"?
coderhs has quit [Quit: Leaving]
<apeiros> sinatra is the app
<tongcx> app basically receives parsed request and then produce response?
jcarouth has left #ruby ["Linkinus - http://linkinus.com"]
<apeiros> correct
<apeiros> middleware can too
diegoviola has joined #ruby
<tongcx> I can have several apps, right? They use the same sinatra to route the traffic?
<apeiros> i.e., middleware can "refuse" to pass on to app and return immdiately
<apeiros> you can use a router middleware to route a request to one of many apps yes.
<apeiros> sorry, got to go. cya and have fun coding ruby ;-)
<tongcx> apeiros: thanks!!!
RoryHughes has quit []
Alina-malina has quit [Ping timeout: 264 seconds]
RoryHughes has joined #ruby
littlebit has quit [Quit: littlebit]
shedd has quit [Ping timeout: 272 seconds]
TheDick has joined #ruby
monkegjinni has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
blo has left #ruby ["Leaving"]
fuhgeddaboudit has joined #ruby
Brolen has quit [Remote host closed the connection]
estebistec has joined #ruby
iamdoo2 has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
yfeldblu_ has joined #ruby
browndawg has quit [Ping timeout: 272 seconds]
monkegjinni has joined #ruby
maoko has joined #ruby
cj3kim has joined #ruby
Al__ has quit [Quit: Al__]
bradhe has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
eka has joined #ruby
tongcx has left #ruby [#ruby]
tongcx has joined #ruby
Al__ has joined #ruby
yfeldblu_ has quit [Ping timeout: 245 seconds]
iamdoo2 has quit [Ping timeout: 252 seconds]
diegoviola has quit [Quit: WeeChat 0.4.2]
cj3kim has quit [Ping timeout: 260 seconds]
einarj has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
weeb1e has joined #ruby
einarj has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 252 seconds]
einarj has joined #ruby
kevinykchan has joined #ruby
gregf has joined #ruby
mengu has quit []
kevinykchan has quit [Client Quit]
kevinykchan has joined #ruby
monkegjinni has quit []
danman has quit [Quit: danman]
zoscoy has joined #ruby
zoscoy has quit [Client Quit]
gja has quit [Quit: This computer has gone to sleep]
kate_r has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
danman has joined #ruby
wtfitsme has quit [Ping timeout: 272 seconds]
sassamo_ has joined #ruby
Al__ has quit [Quit: Al__]
kells has joined #ruby
kells has quit [Client Quit]
sassamo has quit [Read error: Connection reset by peer]
zoscoy has joined #ruby
zoscoy has quit [Client Quit]
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
linojon has joined #ruby
top4o has joined #ruby
browndawg has joined #ruby
estebistec has quit [Remote host closed the connection]
wallerdev has joined #ruby
sparrovv has quit [Remote host closed the connection]
byprdct has joined #ruby
shedd has joined #ruby
towski has quit [Ping timeout: 245 seconds]
shedd_ has joined #ruby
ixti has joined #ruby
shedd has quit [Read error: Connection reset by peer]
ryantm has joined #ruby
nateberkopec has quit [Quit: Leaving...]
gregoriokusowski has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<tongcx> hi guys, sinatra is a dsl, but why people call it a framework? actually, what's a framework? is it the last layer in rack?
mary5030 has joined #ruby
sparrovv has joined #ruby
wormwood has joined #ruby
<havenwood> tongcx: framework/dsl isn't a distinction that matters particularly
<Morrolan> Sinatra provides an environment where you, the developer, fill in some spots. Hence a framework.
pushpak has joined #ruby
<havenwood> tongcx: You can write a pure Rack app, many folks do. Sinatra makes it more pleasant with a nice DSL. Rack is a monolithic beast of a framework.
<Morrolan> It using a DSL just makes it look more natural than if you had to write classes for each route.
<havenwood> Rails**
agjacome has joined #ruby
<havenwood> tongcx: For example, Github has a handful of Rails, Sinatra and Rack apps.
<tongcx> i c. Can I view sinatra as just one layer in rack?
<havenwood> Not in Rack, on top of Rack.
sree has joined #ruby
RoryHughes has quit []
<tongcx> so rack pass things to sinatra, right?
ktun has quit [Read error: Connection reset by peer]
<havenwood> tongcx: Look, here is almost-sinatra: https://github.com/rkh/almost-sinatra/blob/master/almost_sinatra.rb
<tongcx> But if i have several apps share one dsl, then seems to me this dsl is like the top layer in rack
<havenwood> tongcx: Those 6 lines of code do almost what Sinatra does, it is just some nice stuff on Rack.
mgorbach has quit [Read error: Connection reset by peer]
dsferreira has quit [Ping timeout: 272 seconds]
ktun has joined #ruby
<havenwood> tongcx: And here is almost-rack, it does almost what Rack does in 4 lines: https://github.com/rkh/almost-rack/blob/meister/almost-rackup
<shevy> why do you say 6 lines havenwood
mgorbach has joined #ruby
<shevy> IS IT NOT MORE LIKE ONE LINE!!!
<shevy> :D
banister has joined #ruby
<havenwood> shevy: one lines with 5 ";"s
<havenwood> shevy: :O
<havenwood> tongcx: There are niceties like middlewear in Rack, and niceties like conventions for where to put stuff in Sinatra, but at the basics very simple.
<shevy> h=$u._jisx0301("hash, please")
kevinykchan has quit [Quit: Computer has gone to sleep.]
Guest37568 has quit [Quit: Konversation terminated!]
<havenwood> tongcx: Sinatra or Scorched aim to give just a little on top of Rack to make it sweeter to use. Rails makes many, many choices and comes with the kitchen sink.
<tongcx> havenwood: cool, thanks
rootshift has joined #ruby
LulzonAway is now known as Lulzon
<havenwood> tongcx: with the ten lines from almost Rack and almost Sinatra you could use Webrick (the Rack web server that ships with Ruby) to serve up your app. (Don't of course ;O)
<waxjar> there is a talk that explains all the weirdness in almost-sinatra. its pretty nice
<havenwood> tongcx: Real Sinatra is only 1,000 lines of code.
<tongcx> havenwood: thanks, man, I am clear now
<havenwood> waxjar: i'd like to see that
<havenwood> tongcx: no prob
mary5030 has quit [Remote host closed the connection]
<waxjar> havenwood: http://rkh.im/almost-sinatra
<tongcx> ah, another question, if i use unicorn, then do I have multiple copies of rack running?
RoryHughes has joined #ruby
Megtastique has joined #ruby
anildigital is now known as zz_anildigital
<havenwood> tongcx: You typically configure Unicorn to run each app on its own socket or port.
<havenwood> tongcx: Then use Nginx or Apache to point routes at those sockets/ports as a reverse proxy.
<havenwood> Usually a port in dev, often a socket in production.
rcm7 has joined #ruby
<havenwood> tongcx: Maybe think of Rack as just a translation layer.
<havenwood> tongcx: Try playing around with a single file Sinatra app served up on default port with Unicorn.
mgorbach has quit [Read error: Connection reset by peer]
nari has quit [Ping timeout: 272 seconds]
<tongcx> havenwood: thanks!
mgorbach has joined #ruby
sree has quit [Remote host closed the connection]
<havenwood> waxjar: thx!
rcm7 has quit [Remote host closed the connection]
niklasb has joined #ruby
rcm7 has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
rubyracer has joined #ruby
TheDick has quit [Quit: TheDick]
tyl has quit [Ping timeout: 248 seconds]
tyl has joined #ruby
tyl has quit [Remote host closed the connection]
closures999 has joined #ruby
Alina-malina has joined #ruby
sassamo_ has quit [Remote host closed the connection]
nateberkopec has joined #ruby
alexfreidah has joined #ruby
sassamo has joined #ruby
bradhe has joined #ruby
nateberkopec has quit [Client Quit]
end_guy has joined #ruby
vlad_starkov has joined #ruby
sassamo has quit [Ping timeout: 252 seconds]
popl has quit [Ping timeout: 272 seconds]
sassamo has joined #ruby
shime has joined #ruby
alexfreidah has quit [Ping timeout: 272 seconds]
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
wallerdev has quit [Quit: wallerdev]
bradhe has quit [Ping timeout: 240 seconds]
iamdoo2 has joined #ruby
yfeldblum has joined #ruby
yasushi has quit [Remote host closed the connection]
yasushi has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
pskosinski_ is now known as pskosinski
iamdoo2 has quit [Ping timeout: 245 seconds]
Mon_Ouie has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
s2013 has joined #ruby
shime has quit [Ping timeout: 248 seconds]
yasushi has quit [Ping timeout: 272 seconds]
bkparso has quit [Quit: Connection closed for inactivity]
shime has joined #ruby
drumusician has quit [Read error: Operation timed out]
Brolen has joined #ruby
gregoriokusowski has quit [Quit: gregoriokusowski]
byprdct has quit [Ping timeout: 240 seconds]
sparrovv has quit [Remote host closed the connection]
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
teddyp1cker has joined #ruby
nateberkopec has joined #ruby
mavcunha has quit [Quit: Computer has gone to sleep.]
Brolen has quit [Remote host closed the connection]
claymore has quit [Read error: Operation timed out]
teddyp1cker has quit [Ping timeout: 264 seconds]
w4pm has joined #ruby
havenwood has quit []
sparrovv has joined #ruby
RoryHughes has quit []
w4pm has quit [Ping timeout: 245 seconds]
RoryHughes has joined #ruby
habanany has joined #ruby
Amart41 has joined #ruby
araujo has joined #ruby
araujo has joined #ruby
xcv has joined #ruby
nfk has quit [Quit: yawn]
meatherly has joined #ruby
RoryHughes has quit [Client Quit]
Amart41 has quit [Ping timeout: 240 seconds]
shadoi has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
RoryHughes has joined #ruby
linojon has quit [Quit: linojon]
sree has joined #ruby
meatherly has quit [Read error: Connection reset by peer]
meatherly has joined #ruby
claymore has joined #ruby
shadoi has quit [Ping timeout: 264 seconds]
IceDragon has joined #ruby
bean has joined #ruby
binw has quit [Read error: Connection reset by peer]
mocfive has joined #ruby
Hanmac1 has joined #ruby
arietis has joined #ruby
Alina-malina has quit [Quit: Leaving]
Hanmac has quit [Ping timeout: 252 seconds]
blackmesa has joined #ruby
alekst has joined #ruby
meatherl_ has joined #ruby
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Hanmac has joined #ruby
RoryHughes has quit []
binw has joined #ruby
wallerdev has joined #ruby
mary5030 has joined #ruby
zoscoy has joined #ruby
zleslie has joined #ruby
meatherly has quit [Ping timeout: 260 seconds]
Hanmac1 has quit [Ping timeout: 265 seconds]
Alina-malina has joined #ruby
nateberkopec has quit [Quit: Leaving...]
<zleslie> If I have class Foo::Bar, can I also have module Foo::Bar::Thing? Is this bad form at all?
Davey has joined #ruby
bradhe has joined #ruby
<banister> zleslie you can have it, whether it's bad form depends on what you're doing
xuan_ has joined #ruby
browndawg has quit [Quit: Leaving.]
charlies_ has joined #ruby
griffindy has quit [Ping timeout: 245 seconds]
mhenrixon has joined #ruby
e^0 has joined #ruby
e^0 has quit [Client Quit]
mary5030 has quit [Ping timeout: 272 seconds]
zcreative has joined #ruby
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
phracker has quit [Ping timeout: 260 seconds]
nateberkopec has joined #ruby
<pragmatism> I'm using 1.8.7. Why is this test assertion failing? Has my variable been lost in the block context? https://gist.github.com/dankozlowski/fae395790ce32ffd8f77
RoryHughes has joined #ruby
charliesome has quit [Ping timeout: 265 seconds]
bradhe has quit [Ping timeout: 264 seconds]
ahmedelg_ has joined #ruby
ahmedelgabri has quit [Read error: Connection reset by peer]
<pontiki> just stop, please
<pragmatism> ?
griffindy has joined #ruby
habanany has quit [Remote host closed the connection]
ewnd9 has quit [Ping timeout: 252 seconds]
burlyscudd has joined #ruby
<pragmatism> Typo in gist, updated
VeinMelted has quit [Remote host closed the connection]
<Hanmac> pragmatism: he means stop using 1.8.7
<pontiki> (still a girl)
<pragmatism> no choice
<banister> pragmatism it's because you're using {} instead of do/end
<pragmatism> Really?
<banister> pragmatism alternatively put () around the method invocation
<pragmatism> How does that change scope?
<pragmatism> word
<banister> pragmatism yes, the {} will bind go ex
<banister> to*
sree is now known as hack_programmer
<banister> pragmatism it's a precedence issue, not a scope issue
hack_programmer is now known as new_programmer
<banister> pragmatism do this: assert_raise(ex) { ExceptionHandling::ensure_safe("mooo") { raise ex } }
<pragmatism> wordah, got it
e^0 has joined #ruby
mhenrixon has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pragmatism> thanks banister
iamdoo2 has joined #ruby
yfeldblum has joined #ruby
jeffleeismyhero has quit [Remote host closed the connection]
gnephiak has quit [Quit: Konversation terminated!]
s2013 has quit [Read error: Connection reset by peer]
s2013 has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
vlad_sta_ has joined #ruby
<shevy> hey, 1.8.7 was the best ruby version ever
iamdoo2 has quit [Ping timeout: 252 seconds]
xcv_ has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
<shevy> Hanmac will rxw work on 1.8.x? :>
vlad_starkov has quit [Ping timeout: 252 seconds]
zoscoy has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
<Hanmac> shevy: when hell freeze over! Or USA is true democratic ... depend what happends first
Davey has quit [Remote host closed the connection]
s2013_ has joined #ruby
xcv has quit [Ping timeout: 272 seconds]
Davey has joined #ruby
benzrf has joined #ruby
<benzrf> mmm i need ideas
mary5030 has joined #ruby
twopoint718 has joined #ruby
<shevy> for a gem?
ss__ has joined #ruby
phracker has joined #ruby
DouweM has quit [Quit: Leaving...]
<benzrf> sure
s2013 has quit [Ping timeout: 272 seconds]
<shevy> hmm
<shevy> just write something that solves what you really needed to have
s2013_ has quit [Ping timeout: 264 seconds]
<benzrf> o:
rootshift has joined #ruby
s2013_ has joined #ruby
Brolen has joined #ruby
ss__ has quit [Ping timeout: 240 seconds]
Czupa has joined #ruby
<shevy> benzrf aim big man
<shevy> you just jump from language to language!
cj3kim has joined #ruby
burlyscudd has quit [Quit: Leaving.]
cj3kim has quit [Remote host closed the connection]
RoryHughes has quit []
rubyracer has quit [Quit: Konversation terminated!]
vlad_sta_ has quit [Remote host closed the connection]
RoryHughes has joined #ruby
rubyracer has joined #ruby
axl_ has joined #ruby
danijoo has joined #ruby
griffindy has quit [Quit: Computer has gone to sleep.]
ss__ has joined #ruby
xuan_ has quit [Quit: Saliendo]
gregoriokusowski has joined #ruby
f0ster has quit [Ping timeout: 272 seconds]
Parker0 has joined #ruby
Advocation has joined #ruby
MacGruberGuy has joined #ruby
ss__ is now known as s2013
s2013_ has quit [Ping timeout: 265 seconds]
Hanmac1 has joined #ruby
Sammael has quit [Ping timeout: 252 seconds]
<benzrf> everything obviously useful si already made though
<benzrf> *is
MacGruberMan has quit [Ping timeout: 265 seconds]
<benzrf> and im not creative enough to come up with something nobody else thought of
Hanmac has quit [Ping timeout: 248 seconds]
maoko has quit [Quit: Textual IRC Client: www.textualapp.com]
duggiefresh has joined #ruby
tt1187 has quit [Ping timeout: 252 seconds]
blackmesa has quit [Ping timeout: 260 seconds]
kaldrenon has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
phracker has quit [Ping timeout: 252 seconds]
Hanmac has joined #ruby
Lewix has joined #ruby
MindfulMonk has quit [Quit: Leaving]
Hanmac1 has quit [Ping timeout: 248 seconds]
kaldrenon has quit [Ping timeout: 240 seconds]
<jtoy> ?
fuhgeddaboudit has quit [Ping timeout: 248 seconds]
IceDragon has quit [Ping timeout: 252 seconds]
IceDragon has joined #ruby
axl_ has quit [Quit: axl_]
<shevy> benzrf a lot of the software out there stinks
<shevy> the other half was abandoned
shedd_ has quit [Remote host closed the connection]
<shevy> perl's cpan still has more than twice as many projects as has rubygems
alexherbo2 has joined #ruby
<shevy> especially if you remove all those fake gems
Xeago has joined #ruby
<shevy> benzrf you could learn C and then help me write RubyOS
<benzrf> mehlah:
<benzrf> *meh
<benzrf> loonix is good enough for me
fuhgeddaboudit has joined #ruby
angusigu1ss has quit [Ping timeout: 245 seconds]
danshultz has quit [Remote host closed the connection]
estebistec has joined #ruby
danshultz has joined #ruby
einarj has quit [Remote host closed the connection]
bradhe has joined #ruby
einarj has joined #ruby
Hanmac1 has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
danshultz has joined #ruby
chipotle has quit [Quit: cya]
mavcunha has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hanmac has quit [Ping timeout: 252 seconds]
jonahR has joined #ruby
Azure has quit [Read error: Connection reset by peer]
zoscoy has joined #ruby
zoscoy has quit [Client Quit]
teddyp1cker has joined #ruby
ohwhoa has joined #ruby
bradhe has quit [Ping timeout: 245 seconds]
Azure has joined #ruby
einarj has quit [Ping timeout: 252 seconds]
<shevy> that's the problem!
<shevy> - low ambitions
<shevy> - no meaningful goals
standyro1 has joined #ruby
<shevy> go learn from linus when he was young!
nblue has joined #ruby
afhammad has joined #ruby
<shevy> start with "This is benzrf, I will create foobar, nothing big, just a hobby"
NemesisD has joined #ruby
e^0 has quit [Changing host]
e^0 has joined #ruby
speakingcode has quit [Quit: Lost terminal]
ahmedelg_ has quit []
ahmedelgabri has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 252 seconds]
ahmedelgabri has quit [Client Quit]
jonahR has quit [Quit: jonahR]
yacks has quit [Quit: Leaving]
afhammad has quit []
brennanM_ has quit [Remote host closed the connection]
RoryHughes has quit []
zcreative has quit [Ping timeout: 252 seconds]
blackmesa has joined #ruby
Hanmac has joined #ruby
estebistec has quit [Remote host closed the connection]
zcreative has joined #ruby
Hanmac1 has quit [Ping timeout: 245 seconds]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
Sammael has joined #ruby
yfeldblum has joined #ruby
RoryHughes has joined #ruby
Brolen has quit [Remote host closed the connection]
TaxmanBD has joined #ruby
senayar has joined #ruby
jgoss has joined #ruby
Brolen has joined #ruby
camilasan has joined #ruby
echevemaster has joined #ruby
centrx has joined #ruby
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
kewubenduben has joined #ruby
DaniG2k has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
<DaniG2k> whats the advantage of using a struct as opposed to making a new class?
centrx has quit [Client Quit]
centrx has joined #ruby
closures999 has quit []
centrx has quit [Read error: Connection reset by peer]
cx has joined #ruby
<benzrf> DaniG2k: it writes the boilerplate for ya
centrx has joined #ruby
<DaniG2k> benzrf: ah the attr_accessor stuff
<DaniG2k> right right
<DaniG2k> good times
camilasan has quit [Ping timeout: 245 seconds]
ctp has joined #ruby
<benzrf> also init
<benzrf> DaniG2k: if you dont want the init from struct, then yes it is probably faster to just do an attr_accessor line
shedd has joined #ruby
<benzrf> otherwise it is p nice
<benzrf> DaniG2k: o wait i thought you were asking about extending structs
<benzrf> my bad
<DaniG2k> benzrf: initialize? isnt that the same as attr_accessor? attr_accessor creates a setter and getter, isn't that the same thing?
<DaniG2k> init = setter
<DaniG2k> no?
Ziarkaen has quit [Ping timeout: 260 seconds]
IceDragon has quit [Ping timeout: 245 seconds]
IceDragon has joined #ruby
RoryHughes has quit []
<benzrf> o
<benzrf> uh
<benzrf> no, initialize is the constructor
<shevy> DaniG2k attr_accessor makes a setter and getter for the given argument
Barrin6 has joined #ruby
RoryHughes has joined #ruby
araujo has quit [Remote host closed the connection]
shedd has quit [Remote host closed the connection]
araujo has joined #ruby
zoscoy has joined #ruby
araujo has quit [Read error: Connection reset by peer]
zoscoy has quit [Client Quit]
araujo has joined #ruby
araujo is now known as Guest54845
mocfive has quit [Remote host closed the connection]
Guest54845 has quit [Read error: Connection reset by peer]
mocfive has joined #ruby
Jdubs has joined #ruby
Alina-malina has quit [Quit: Leaving]
octoberry has joined #ruby
Alina-malina has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
Squarepy has joined #ruby
Shidash has joined #ruby
mocfive has quit [Ping timeout: 264 seconds]
p8952 has quit [Ping timeout: 265 seconds]
diegoviola has joined #ruby
goganchic has joined #ruby
ryantm has quit [Ping timeout: 272 seconds]
vlad_starkov has joined #ruby
zoscoy has joined #ruby
zoscoy has quit [Client Quit]
phansch_ has quit [Ping timeout: 252 seconds]
RoryHughes has quit []
spider-mario has joined #ruby
fuhgeddaboudit has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
mary5030 has quit [Remote host closed the connection]
s2013_ has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
ss__ has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
rtpg has quit [Remote host closed the connection]
meatherl_ has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
s2013 has quit [Ping timeout: 248 seconds]
new_programmer has quit []
tt1187 has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 265 seconds]
camilasan has joined #ruby
Hanmac has quit [Ping timeout: 260 seconds]
s2013_ has quit [Ping timeout: 252 seconds]
idiocrash has joined #ruby
marr has joined #ruby
bjhaid has joined #ruby
<idiocrash> HI GUISE
araujo_ has joined #ruby
<idiocrash> Say, I'm on Mavericks and trying to install https://github.com/ssoper/summarize
timonv has quit [Remote host closed the connection]
<idiocrash> 'gem install summarize'
<idiocrash> ...with sudo
<idiocrash> gives me this:
Hanmac has joined #ruby
araujo_ has quit [Remote host closed the connection]
<idiocrash> any ideas?
<benzrf> idiocrash: well, obviously you are missing a lib
<benzrf> so... install it?
<centrx> dictionary.c:28:10: fatal error: 'libxml/xmlmemory.h' file not found
<idiocrash> I have libxml
<idiocrash> ruby gem
araujo_ has joined #ruby
araujo_ has quit [Read error: Connection reset by peer]
Hanmac1 has quit [Ping timeout: 272 seconds]
<idiocrash> do I need libxml C installed?
s2013_ has joined #ruby
<centrx> idiocrash, Yes, and you need the header files for it as well
<centrx> idiocrash, The libxml gem just connects to libxml
RoryHughes has joined #ruby
top4o has quit [Quit: ChatZilla 0.9.90.1 [Firefox 26.0/20131205075310]]
<idiocrash> hrm...
<idiocrash> macports?
<benzrf> how about homebrew
phansch_ has joined #ruby
<idiocrash> would either work?
<idiocrash> I already have macports
poulson has quit [Remote host closed the connection]
Advocation has quit [Quit: Advocation]
closer has quit [Ping timeout: 256 seconds]
Brolen has quit [Remote host closed the connection]
bradhe has joined #ruby
pushpak has quit [Ping timeout: 245 seconds]
Brolen has joined #ruby
<idiocrash> ah, macports seems to work fine
zcreative has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
araujo has joined #ruby
ss__ has quit [Ping timeout: 245 seconds]
angusigu1ss has joined #ruby
<idiocrash> now I'll be dickin around with the readability and summarize gems!
havenwood has joined #ruby
ganesh has joined #ruby
closer has joined #ruby
<idiocrash> fixed, guise. Thank you!
tyl has joined #ruby
s2013_ has quit [Ping timeout: 252 seconds]
ganesh is now known as Guest14431
speakingcode has joined #ruby
ktosiek has quit [Read error: Connection reset by peer]
bradhe has quit [Ping timeout: 245 seconds]
rubyracer has quit [Ping timeout: 248 seconds]
<idiocrash> btw, I've always used MacPorts for my needs. But, I've been ignorant of homebrew. What's the diff?
enebo has joined #ruby
ktosiek has joined #ruby
rcm7 has quit [Remote host closed the connection]
e^0 has quit [Quit: WeeChat 0.4.1]
rcm7 has joined #ruby
DaniG2k has quit [Ping timeout: 252 seconds]
angusigu1ss has quit [Ping timeout: 248 seconds]
ktosiek has quit [Read error: No route to host]
TDES_home has quit [Read error: Operation timed out]
<benzrf> idk
<benzrf> i just see people using it
<benzrf> o-o
ktosiek has joined #ruby
yfeldblum has joined #ruby
s2013 has joined #ruby
shedd has joined #ruby
standyro1 has quit [Ping timeout: 260 seconds]
havenwood has quit [Remote host closed the connection]
goganchic has quit []
assurbanipal has joined #ruby
pskosinski has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
p8952 has joined #ruby
farkerhaiku has joined #ruby
senayar has quit [Remote host closed the connection]
decoponio has quit [Quit: Leaving...]
<farkerhaiku> howdy. I'm trying to do the Global Game Jam and I've got a twitter component using chatterbot, but it's not working for me out of the box. kernel_require.rb:55:in `require': cannot load such file -- chatterbot (LoadError). I'm afraid I'm not sure what I need to do to get it up and running and was wondering if someone could help
<farkerhaiku> I'm using ruby 1.9.3 via rvm (and .rvmrc)
shedd has quit [Ping timeout: 248 seconds]
cj3kim has joined #ruby
<Lewix> farkerhaiku: Did you gem install chatterbot
<farkerhaiku> that's probably it, one sec
cashnguns has joined #ruby
Bridge| has quit [Ping timeout: 240 seconds]
<farkerhaiku> Lewix, awesome, thanks so much
<Lewix> farkerhaiku: anytime
cj3kim has quit [Ping timeout: 272 seconds]
diegoviola has quit [Ping timeout: 240 seconds]
pen has quit [Remote host closed the connection]
tdubya has quit [Changing host]
tdubya has joined #ruby
popl has quit [Ping timeout: 272 seconds]
Hanmac1 has joined #ruby
RoryHugh_ has joined #ruby
RoryHughes has quit [Ping timeout: 252 seconds]
Hanmac has quit [Ping timeout: 251 seconds]
mocfive has joined #ruby
Lewix has quit [Remote host closed the connection]
meatherly has joined #ruby
rcm7 has quit [Ping timeout: 260 seconds]
tjsousa has joined #ruby
claymore has quit [Ping timeout: 252 seconds]
jailbot has joined #ruby
iamdoo2 has joined #ruby
Lewix has joined #ruby
cashnguns has quit [Quit: I'm just an old fashioned cowboy]
fuhgeddaboudit has joined #ruby
rcm7 has joined #ruby
atmosx has joined #ruby
claymore has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
teddyp1cker has quit [Remote host closed the connection]
meatherly has quit [Ping timeout: 252 seconds]
brennanMKE has joined #ruby
nisstyre has quit [Quit: Leaving]
iamdoo2 has quit [Ping timeout: 252 seconds]
thesheff17 has joined #ruby
RoryHughes has joined #ruby
mocfive has quit [Remote host closed the connection]
RoryHugh_ has quit [Ping timeout: 252 seconds]
mocfive has joined #ruby
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
mercwithamouth has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
blackmesa has joined #ruby
mocfive has quit [Ping timeout: 265 seconds]
kalleth has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
Megtastique has quit []
pskosinski has joined #ruby
kalleth has joined #ruby
shedd has joined #ruby
yfeldblum has joined #ruby
drumusician has joined #ruby
timonv has joined #ruby
kate_r has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
tyl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rcm7 has quit [Remote host closed the connection]
rcm7 has joined #ruby
xcv_ has quit [Remote host closed the connection]
shedd has quit [Ping timeout: 272 seconds]
xcv has joined #ruby
teddyp1cker has joined #ruby
zoscoy has joined #ruby
xcv has quit [Remote host closed the connection]
xcv has joined #ruby
banisterone has joined #ruby
sepp2k has joined #ruby
vlad_starkov has joined #ruby
ktosiek has quit [Read error: Connection reset by peer]
ktosiek has joined #ruby
rcm7 has quit [Ping timeout: 260 seconds]
fuhgeddaboudit has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
carraroj has quit [Quit: Konversation terminated!]
ry4nn has quit [Ping timeout: 272 seconds]
TheDick has joined #ruby
timonv has quit [Remote host closed the connection]
BrindleFly has joined #ruby
xcv has quit [Remote host closed the connection]
xcv has joined #ruby
bradhe has joined #ruby
Megtastique has joined #ruby
danman has quit [Quit: danman]
claymore has quit [Ping timeout: 260 seconds]
bradhe has quit [Ping timeout: 252 seconds]
end_guy has quit [Ping timeout: 240 seconds]
dik_dak has joined #ruby
marcgg has quit [Ping timeout: 245 seconds]
end_guy has joined #ruby
Megtastique has quit []
marcgg has joined #ruby
angusigu1ss has joined #ruby
claymore has joined #ruby
Squarepy has quit [Quit: Leaving]
altin has joined #ruby
<altin> can anyone tell me why I can't install mysql2
dwingo has joined #ruby
rmroulette has joined #ruby
<shevy> altin, depends on your system. lmysqlclient... no
<shevy> I guess you have no libmysqlclient.so file right
<MrZYX> and probably also miss the headers
havenwood has joined #ruby
<rmroulette> if I'm trying to handle integers when converting stuff to_sym, is it better to wrap it in a rescue block or just run to_s on everything before I convert it?
<MrZYX> so let's cite the message: "Could not create Makefile due to some reason, probably lack ofnecessary libraries and/or headers."
griffindy has joined #ruby
mmcclimon has joined #ruby
<shevy> benzrf, I think I found a solution with vim
<shevy> benzrf I will simply use only the bare minimum of vim
<centrx> rmroulette, What is wrong with to_sym ?
<MrZYX> rmroulette: why do you want to to_sym integers?
<rmroulette> centrx: it fails on integers
<rmroulette> MrZYX: does it matter?
<centrx> What exactly are you trying to do
<benzrf> ew
<MrZYX> rmroulette: kinda
angusigu1ss has quit [Ping timeout: 272 seconds]
<rmroulette> make a hash with unique elements from an array as keys and the times they repeat as values
<rmroulette> number of times*
<centrx> Integers can be keys
<MrZYX> anything can be a key
<shevy> your mom can be a key
<pontiki> ...
<MrZYX> exactly
<shevy> pontiki wat! :(
<rmroulette> I am aware, I just thought that it was best practice to use symbols everywhere possible
<pontiki> she can't, shevy
<apeiros> rmroulette: I'd ask myself why you happen to even have once integers once strings
<pontiki> only objects within the ruby system
heidi has joined #ruby
<apeiros> rmroulette: sounds like you are trying to solve the symptom, not the cause
<shevy> pontiki I watched the original Tron movie!!!
<MrZYX> rmroulette: no, it's best pratice to use symbols when you need identifiers
<MrZYX> identifiers for you, not so much for ruby that is
<shevy> jeff bridges was turned into a computer object with laser!
<pontiki> rmroulette: when you are explicity constructing a hash, it is a best practice. but when you're constructing a hash from data, it's not
maletor has joined #ruby
<Hanmac1> shevy the orginal Tron movie was fun ... i liked the "Bit" thing ;P
<rmroulette> alright, cool. thanks for fixing my problem by fixing me :)
Hanmac1 is now known as Hanmac
<MrZYX> rmroulette: I guess you understand now why it matters ;)
<apeiros> fixing a roulette would be cheating
<pontiki> better to acquire knowledge and skill than patching a single problem
<shevy> Hanmac yea
heidi has quit [Client Quit]
xcv_ has joined #ruby
benatkin has quit [Read error: Operation timed out]
<pontiki> this is the reasoning people use for video game violence making people physically violent
waxjar has quit [Read error: Operation timed out]
angusigu1ss has joined #ruby
end_guy has quit [Ping timeout: 240 seconds]
waxjar has joined #ruby
<apeiros> pontiki: you mean making up random shit?
Jetchisel has joined #ruby
end_guy has joined #ruby
<pontiki> no, but yes
<apeiros> well, not random. shit which fits ones beliefsystem
<apeiros> system of belief?
<pontiki> that was the "but yes" part :>
xcv has quit [Ping timeout: 252 seconds]
<apeiros> I love how I got better at aiming my military rifle by playing FPS shooters with my mouse
mercwithamouth has quit [Ping timeout: 265 seconds]
benatkin has joined #ruby
<apeiros> it also helped a lot with learning how to breathe in order to get a perfect hit
benzrf has left #ruby [#ruby]
Spami has quit [Quit: This computer has gone to sleep]
sivoais has quit [Read error: Operation timed out]
bitri has joined #ruby
bitri has quit [Client Quit]
sivoais has joined #ruby
<altin> shevy MrZYX I'm trying to install OpenProject
klaut has joined #ruby
standyro1 has joined #ruby
<altin> fixed the gems but when I run the script now I get other ruby errors: http://pastebin.com/WJniqJUg
angusigu1ss has quit [Ping timeout: 272 seconds]
tjsousa has quit [Quit: Computer has gone to sleep.]
<Morrolan> Syntax error? Suggest you install the recommended version of Ruby.
<MrZYX> I think his database.yml isn't valid YAML (since I smell rails in there)
tjsousa has joined #ruby
<shevy> hehe
<shevy> MrZYX you begin to sound like Hanmac
<MrZYX> shevy: you frighten me :(
* Hanmac did you play the first SoulReaver game?
<shevy> Hanmac do you like rails?
rcm7 has joined #ruby
<Morrolan> The error message does sound like something produced by a YAML parser, yea.
Spami has joined #ruby
rcm7 has quit [Remote host closed the connection]
<Hanmac> shevy imo Rails is like a nuclear weapon ... to big to be used ;P
mikesplain has joined #ruby
rcm7 has joined #ruby
<altin> I have ruby 1.9 installed in my server
<shevy> see MrZYX? :D
<altin> seems like OpenProject is requiring 1.8.7
<shevy> wow altin
<MrZYX> altin: you're not listening
<shevy> that must be an OLD project
Squarepy has joined #ruby
<rmroulette> to those who helped me with the symbol thing: :%s/\v:(\w+)/'/1'/gc
<MrZYX> altin: syntax error. in _your_ database.yml
<shevy> rmroulette ack! a regex?
<MrZYX> is that valid ruby?
<shevy> in 3.0 it is!
<shevy> ruby 3.0 will run perl 7
twopoint718 has quit [Ping timeout: 265 seconds]
<rmroulette> no its vim for 'replace symbols with strings in file'
tjsousa has quit [Ping timeout: 252 seconds]
<shevy> a vimster brother :)
xlogic has joined #ruby
<MrZYX> uhm, that's not what meant, necessarily
meatherly has joined #ruby
<altin> ok my password was right after the : with no space between XD MrZYX
<rmroulette> MrZYX: I know, but I'm talking about fixing my spec file
<rmroulette> MrZYX: so it was adequate for now until I write more tests for what I was talking about
<MrZYX> yeah, well, we can't magically see your screen and know that ;)
<rmroulette> yeah sorry, I don't use emacs so I can't do that
YOURBESTFRIEND is now known as YourTamedFriend
<shevy> I CAN MAGICALLY SEE YOUR SCREEN!
rcm7 has quit [Ping timeout: 260 seconds]
<shevy> AND I SEE WHAT YOU ARE DOING rmroulette!
<shevy> STOP THAT!!!
<MrZYX> shevy: I knew you're working for the NSA all the itme
mikesplain has quit [Ping timeout: 264 seconds]
<rmroulette> shevy: NO! UR NOT MY DAD!
<shevy> hey, the NSA is not nice people, I can't work for them
enebo has quit [Quit: enebo]
<rmroulette> def a fed fur sure shevy
<Hanmac> there exist not enough money so that i would work for the NSA ... ;P
<rmroulette> you say that, but...
x77686d has joined #ruby
jerius has joined #ruby
<rmroulette> if someone offered me like 7 fig a year to work for them you could probably buy a lot of vaccines and malaria nets with that :\
burlyscudd has joined #ruby
<Morrolan> Seven fig?
yarou has quit [Quit: Leaving]
<Morrolan> Urbandictionary offers plenty of definitions, none of which make sense. :P
meatherly has quit [Ping timeout: 272 seconds]
<rmroulette> a million +
<Morrolan> Ah.
<rmroulette> which to be clear, would never happen for multiple reasons, but theoretically
Amart41 has joined #ruby
jerius has quit [Client Quit]
<Hanmac> rmroulette: with enough money i would try to water the sahara and to "terraform" it into a green area ;P
maletor has quit [Quit: Computer has gone to sleep.]
<MrZYX> which probably would result into a negative effect on the environment in one way or another...
bobdobbs has quit [Read error: Connection reset by peer]
<rmroulette> Hanmac: the only way to put the mass surveilance genie back in the bottle in my opinion is to lower the bar on counter survielance tools while highering the bar on techinical literacy/ability
<apeiros> MrZYX: more likely than "in one way or another" is "in multiple ways"
pen has joined #ruby
<rmroulette> Hanmac: I guess that really had nothing to do with what your saying
havenwood has quit [Remote host closed the connection]
<MrZYX> production isn't the problem anyway
<atmosx> rmroulette: no, I disagree, you have to make it illegal.
Dreamer3 has quit [Ping timeout: 272 seconds]
<MrZYX> in the mid-term at least
<rmroulette> making it illegal doesn't work if your taking about the people who decide/enforce what is/in not legal
timonv has joined #ruby
<atmosx> rmroulette: that's who things work in a democracy, you have to make unwarranted surveillance illegal, which basically means that if something goes *wrong* Keith Alexander (or whoever is in charge) pays, either by being dismissed or more. If everyone pushes hard enough it will pass, the congressmen don't give a sh*t about anything more than votes.
Amart41 has quit [Ping timeout: 245 seconds]
<atmosx> rmroulette: fighting this on technical grounds can buy you time, but it's a dead-end.
klaut has quit [Remote host closed the connection]
<atmosx> rmroulette: the fact that we're having this discussion and congress is also starting to having this discussion, the NYTimes are posting one article after another saying straight out that suveillance without any warrants must end, is a huge step towards the right (privacy-aware) direction considering how these thing operate.
<atmosx> these things*
cjsarette has joined #ruby
<atmosx> rmroulette: http://socialmediacollective.org/2012/04/01/why-data-havens-dont-work/ this reading is very interesting on the subject.
<shevy> Hanmac the easiest way for terraforming is to make use of plants and trees against desertification
<atmosx> btw anyone saw that new amazon tv series called "beta" ...
<shevy> (on planet earth)
<shevy> not me, I rarely watch TV
<rmroulette> atmosx: I have the reverse opinion. I think that outlawing it is only buying you time, whereas fighting it with tech and making it as ineffective as possible is the way to go. Why trust them not to use it behind closed doors when you they aren't trustworthy to begin with?
<atmosx> shevy: I dont, I watch everything on the laptop
<atmosx> lol
<shevy> atmosx how do you have time watching TV when you have upcoming exams anyway ;)
<Hanmac> shevy thats what i meant ... plant many of them and water them until they are can supliy themself
<rmroulette> atmosx: I'll read that in a sec
<shevy> aaah I see
<shevy> Hanmac ah ok I thought you would just ship over a huge ice block and put it into the desert
shedd has joined #ruby
<atmosx> shevy: I don't study anymore, I gave up.. just wanna go home. I'll have the exam on Thursday but I don't care for hte result.
jtdowney has joined #ruby
<Hanmac> shevy thats another idea ... but without plats it would not work that way ;P
<Hanmac> plants
jasonwebster has joined #ruby
<shevy> atmosx hehehe
xlogic has quit [Remote host closed the connection]
<shevy> atmosx sounds as if you are fatigued!
rljohnsn has joined #ruby
<atmosx> rmroulette: because the key is to make them accountable.Once you get that, then proving that they are over-stepping your privacy is enough to toast them. Otherwise, you are just using technology.. But they are better with technology becuase they have access to the raw data (cables) and can get OpenSSL master keys and so forth.
mikesplain has joined #ruby
angusigu1ss has joined #ruby
teddyp1cker has quit []
<atmosx> rmroulette: how exactly are you going to fight with that. Even if you have the skills (and will) to accept a life on the (digital) run and using a very specific policy to avoid online tracking and cross-checking, most people won't be able to do that. Then you'll be a minority and then an even easier target (like TOR users)
<atmosx> shevy: yeah, I'm doing here
<rmroulette> atmosx: Its not about being on the run or breaking the law, its about building secure alternatives that are good enough to be a real option to people who don't care about this sort of thing
<atmosx> shevy: ree s/doing/diying
<rmroulette> basically shifting the majority to a higher standard of evasion
<atmosx> dying idem
<shevy> atmosx but it's the last exam!
brennanMKE has quit [Remote host closed the connection]
<shevy> afterwards there is no more exam!
<atmosx> rmroulette: you mean teach everyone how to use technologies like tor?
<atmosx> shevy: yeah but I can do it later
<shevy> ah I see
<rmroulette> atmosx: no, like make tor either built in or trivially easy to use
<atmosx> shevy: I've lost 10 days here, struggling all alone... blah wasn't worth it
<atmosx> shevy: it's a 2nd seemester exam
shedd has quit [Ping timeout: 272 seconds]
<atmosx> rmroulette: and what that will buy you, when you login to facebook?
S0da has joined #ruby
nucc has joined #ruby
YourTamedFriend is now known as bro
franja has joined #ruby
<Hanmac> atmosx: the best way against the global suveillance would be something i have seen in a cartoon ... (they called it "electric haircut") ... the best way against the hoarding of data would be a Virus/Trojaner that infect all secret agencies worldwide and publish all hidden data at the exact same time into the public ;P
ctp has quit [Quit: Linkinus - http://linkinus.com]
<atmosx> rmroulette: if the *enemy* is the NSA or any agency of the same statue, what exactly do you gain by using tor to tweet, facebook, write SO psts... and generally interact with others online?
* Hanmac is hearing currently: "Let it Go!" for some reason it fits ;P
<atmosx> Hanmac: hahaha the *public* can not handle such vast amounts of raw data. And why would you care anyway? :-)
camilasan has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby
<rmroulette> atmosx: not just tor I mean. Either make secure alternatives to social networks or pressure existing ones into securing themselves by design
<atmosx> rmroulette: they can't.
<rmroulette> atmosx: elaborate
<Hanmac> atmosx: maybe i would like to see that chaos ;P ... i still have un-made popcorn available for that case ;P
havenwood has joined #ruby
<atmosx> rmroulette: Say you're a US company and NSA subpoena you, then for National Security reasons needs access to all your raw data: You have 2 choices either you close the business (by stating that you have the NSA at yur door) or you stay silent and cooperate (having some additional gain from this... if any).
w4pm has joined #ruby
jonah has joined #ruby
<sweeper> I wonder if #ruby-lang gets this political. seems to happen al the time here
<rmroulette> then don't open your company in the US. I hate to say that as a US citizen, but its true.
vlad_starkov has quit [Read error: Connection reset by peer]
<atmosx> rmroulette: Now let's say that you are a company overseas and you need USA clients. You setup a server in the USA, the NSA wants access so either goes to Verisign and gets a copy of the master key and sees everything plain text or goes to the physical location and reads everything in raw format...
Zubin has joined #ruby
<sweeper> can't have much fun with us-based companies anywhays
Zubin has quit [Client Quit]
axl_ has joined #ruby
bradhe has joined #ruby
<sweeper> no gambling, pyramid scams, etc
<atmosx> They have COPIES of the MASTER SSL KEYS
baroquebobcat has joined #ruby
<atmosx> they are diverting DNS server-requests on THE FLY
mercwithamouth has joined #ruby
<sweeper> master ssl keys?
<atmosx> yes
<sweeper> you do know how ssl works, right?
<sweeper> cause it seems you don't
<rmroulette> wow, was not aware of those last two 0.0
Squarepy has quit [Quit: Leaving]
mikesplain has quit [Quit: mikesplain]
<sweeper> lol
tjsousa has joined #ruby
<sweeper> come on dude
<sweeper> there's no master key
<atmosx> really?
<sweeper> yea
<atmosx> You mean when it's self-signed?
<sweeper> no, all the time
<sweeper> singing just proves it's a VALID key
franja has quit [Quit: Leaving]
<sweeper> *signing
ohwhoa has quit [Quit: woah!]
<sweeper> but the private key never leaves your server, and is generated by YOU
prc has joined #ruby
<atmosx> Awesome, then if I redirect the connectiong using a valid... key what do I get?
<atmosx> No one needs YOUR private key
<sweeper> right so they can sign the key and MITM you
<sweeper> but they can't magically decrypt your ssl traffic
w4pm has quit [Ping timeout: 272 seconds]
<rmroulette> so what your saying is, even if the nsa had twitters ssl keys, they couldn't decrypt your twitter traffic?
<atmosx> sweeper: Why not, they can.
<rmroulette> just trying to see if I understand this correctly
bradhe has quit [Ping timeout: 264 seconds]
<sweeper> if they have twitter's SSL private keys, then yes, they could decrypt it
<atmosx> sweeper: and how does the browser know a priori what's twitter's SSL cert?
Hanmac has quit [Ping timeout: 245 seconds]
<sweeper> it doesn't, thus they can MITM
<burlyscudd> atmosx: CAs
farkerhaiku has quit [Quit: Page closed]
<burlyscudd> :-(
<atmosx> burlyscudd: there you go.
<sweeper> thus the problem wih SSL's chain of trust mechanism
kewubenduben has quit [Ping timeout: 240 seconds]
<atmosx> sweeper: yes, sure. Discussed many times on HN, that you can't ultimately trust CAs. Not because they are evil ,but because they can fail.
<burlyscudd> watch moxie's talk at BlackHat two years ago ^^
<burlyscudd> fascinating if you want to understand why SSL certs are truly fuct
Hanmac has joined #ruby
<burlyscudd> he proposes a system called Convergence
baroquebobcat has quit [Quit: baroquebobcat]
<burlyscudd> which uses reputation trust
<sweeper> eh
<atmosx> burlyscudd: I've seen a couple of speeches by MOXIE MARLINSPIKE, he is awesome.
<sweeper> the problem is an uneducated populous
Xeago has quit [Remote host closed the connection]
<burlyscudd> I think this was when he was security dude for Twitter
<burlyscudd> sweeper: no
<burlyscudd> the problem is fundamental flaws in the architecture of SSL
<sweeper> well YEA
<atmosx> sweeper: Agreed, but I'd rather a politically aware populace then a technoligically aware popullace :-)
<burlyscudd> we have had techniques for awhile, I agree (if that's what you're saying) that we should be using
Xeago has joined #ruby
<burlyscudd> and maybe that's what you mean by uneducated
<burlyscudd> pefect forward secrecy
<burlyscudd> *perfect
<burlyscudd> cert pinning
<burlyscudd> etc
<sweeper> but the COT mechanism is only necessary because people are dumb and can't be assed to do their own security
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
blackmes1 has joined #ruby
<burlyscudd> hell Faebook didn't force TLS until after Firesheep
<burlyscudd> sweeper: what does "do their own security" really mean?
tjsousa has quit [Ping timeout: 272 seconds]
<burlyscudd> AV?
<burlyscudd> vuln scanning?
<atmosx> sweeper: Your own security has little to do with everything really.
<burlyscudd> keeping on top of every CVE that comes out in the consumer stack?
jackneill has quit [Read error: Operation timed out]
havenwood has quit [Remote host closed the connection]
<sweeper> burlyscudd: no, basic stuff like "here are my trusted keys, these are the ones I trust because X"
<burlyscudd> using 1Password or KeepPass??
<burlyscudd> sweeper: most keys that the average person uses are generated automatically by the browser
<burlyscudd> do you mean like consumers or like people who hang out in Freenode when you say "people"? :-)
yfeldblum has quit [Read error: Connection reset by peer]
<atmosx> sweeper: If Facebook and Google is forced to give backdoor access to the NSA (which they do, I think it's clear by now)... Your own security awareness can do nothing about it.
<burlyscudd> b/c I agree that like hackers and shit should be on top of where their ssh keys go and whatnot
yfeldblum has joined #ruby
<burlyscudd> there's no backdoor
<burlyscudd> it's getting the keys
<burlyscudd> i promise you
<burlyscudd> they don't need a backdoor
<burlyscudd> they have the fucking traffic
<burlyscudd> in their mega datacenters
<sweeper> burlyscudd: everyone should, just like they keep track of their own house keys
<burlyscudd> they just get a FISA finding pre-warrant and get google
<sweeper> this isn't 1960 anymore
<burlyscudd> to hand over the cert for that time frame
meatherly has joined #ruby
<burlyscudd> sweeper: every service on the web, from the important (banks, investments, medical shit) to the most rinky-dink mom-n-pop ecomm store for buying fishing lures or whatever the fuck requires you to have a password
<burlyscudd> to make an account
danman has joined #ruby
<burlyscudd> it's human nature that you use the same few passwords
<Hanmac> the only way to defeat the NSA is to feed them more than they could swallow ;P
blackmesa has quit [Ping timeout: 264 seconds]
<burlyscudd> sure people should use password safes
<burlyscudd> randomly generated 25-char plus etc
gus has joined #ruby
<burlyscudd> and encrypt that key file and back it up multiply
<atmosx> I have everything if my 1Password keychain, find the key and you have my *life*
<burlyscudd> people are getting more educated about passwords
<burlyscudd> atmosx: yup
wiku5_ has quit [Quit: WeeChat 0.3.8]
<sweeper> yea. and they're a freaking decade behind
wiku5_ has joined #ruby
<atmosx> burlyscudd: it's a double edged knife
<sweeper> at LEAST
<burlyscudd> atmosx: hopefully you can tune how encrypted that file is like you can w/ KeepPass
<burlyscudd> sweeper: idk who "they" is — we're still in the early stages of humans hanging out on computer networks en masse
<Morrolan> Probably a good time to link to the xkcd about encryption vs wrenches. :D
wiku5_ has quit [Client Quit]
<burlyscudd> so there are lots of fuckups
<atmosx> burlyscudd: I trust the guys, small firm and all. Since P vs NP/Rieman Hypothesis is not solved ... we're safe I guess.
wiku5_ has joined #ruby
<sweeper> burlyscudd: dude it's been a quarter century since people started "hanging out en masse"
<burlyscudd> in real-world hacking, people aren't usually popped by bad encryption as often as stolen passwords or bad patching. but when encryption is bad, it is epically, epically bad news for whomever used it
blackmes1 has quit [Quit: WeeChat 0.4.2]
gasbakid has joined #ruby
<atmosx> I like the quote by a mathematician "RSA is secure. If Gauss was not able to tackle the issue almost 300 years. We're safe"
<burlyscudd> sweeper: yeah for whatver value of "people"
<burlyscudd> and actually been a lot longer than that if you just want to count any ole pair of neckbeards sending each other IP packets
<sweeper> no, I mean when it became common to have AOL/compuserve/whatever, and http was a thing
<atmosx> Morrolan: still waiting for th elink
<sweeper> I mean fuck
clamstar has joined #ruby
<sweeper> anyone could tell you that using the same physical key for everything is a dumb idea
Xeago has quit [Ping timeout: 252 seconds]
meatherly has quit [Ping timeout: 260 seconds]
blackmesa has joined #ruby
<burlyscudd> sweeper: lol dude regular people don't make their keys
<burlyscudd> locksmits do
<burlyscudd> experts
<sweeper> yea. but regular people know it would be bad to have the same key for everything
<burlyscudd> no one's like "hey I see you have a door here, so please fashion a key — make it a good one, because this hotel you're staying in tonight is in a shitty neighborhood"
sebnozzi has quit [Quit: Ex-Chat]
<burlyscudd> but you hvae that basic situation when someone's like "yo — give me some personal info that I'll store w/ my nifty, hack-filled PHP web app that fronts my ecommerce lingerie shop"
<sweeper> yea but who says "here's my house key, make my hotel room lock work with it"?
mmcclimon has quit [Quit: mmcclimon]
<sweeper> "take my house key and save it back there for 'later
Dreamer3 has joined #ruby
<burlyscudd> that's my entire point tho really — the lock and key model is architected from the beginning in a more useful way than "think of a password"
<burlyscudd> i agree people should use password safes
<burlyscudd> that's what I do
mercwithamouth has quit [Ping timeout: 272 seconds]
ping-pong has quit [Ping timeout: 272 seconds]
<sweeper> yea but nobody would be dumb enough to give some sketchy hotel their house key
jailbot has quit []
<sweeper> well
<sweeper> I say that
<sweeper> then...people :P
<rmroulette> watching that moxie ssl talk
<rmroulette> lol @ comodo
<burlyscudd> just watch out tho that if your box gets popped, the pw safe isn't too easy to crack into… :-)
<sweeper> the thermite should do the trick :3
<sweeper> two factor auth is the bomb tho
farkerhaiku has joined #ruby
<sweeper> too bad a central service that could provide two factor auth to web services would have the same problem: single point of failure
Martxel has quit [Quit: WeeChat 0.4.1]
<sweeper> might be a good way to get a lot of government funding tho :D
<farkerhaiku> i made an html5 rorschach image creator and can spit out the binary via a browser, but i just realized i can't capture that output in my ruby twitter bot. is there something i could use that would essentially spin up a browser to get the html5 rendered content? capybara/webkit? cucumber?
Martxel has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
Martxel has quit [Changing host]
Martxel has joined #ruby
<farkerhaiku> see http://rorschach-twitter.herokuapp.com/rorschach.html for the example output
cj3kim has joined #ruby
ctp has joined #ruby
danman has quit [Quit: danman]
kewjo has joined #ruby
cj3kim has quit [Ping timeout: 253 seconds]
end_guy has quit [Remote host closed the connection]
end_guy has joined #ruby
jtdowney has quit []
pskosinski has quit [Ping timeout: 240 seconds]
ping-pong has joined #ruby
banisterone has quit [Ping timeout: 272 seconds]
sparrovv has quit [Remote host closed the connection]
maletor has joined #ruby
pskosinski has joined #ruby
burlyscudd has quit [Quit: Leaving.]
phinfonet has joined #ruby
TheShaun has quit [Ping timeout: 272 seconds]
zoscoy has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
claymore has quit [Ping timeout: 272 seconds]
cbetta is now known as cbetta_afk
Hien has quit [Ping timeout: 264 seconds]
kenneth has joined #ruby
gregoriokusowski has quit [Quit: gregoriokusowski]
iamdoo2 has joined #ruby
iamdoo2 has quit [Read error: Connection reset by peer]
Czupa has quit [Quit: Wychodzi]
iamdoo2 has joined #ruby
sparrovv has joined #ruby
havenwood has joined #ruby
pen has quit [Remote host closed the connection]
TheShaun has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
tongcx has quit [Quit: Lost terminal]
havenwood has joined #ruby
pen has joined #ruby
iamdoo2 has quit [Ping timeout: 272 seconds]
Hien has joined #ruby
ktun has quit [Read error: Connection reset by peer]
lkba has joined #ruby
ktun has joined #ruby
wiku5_ has quit [Quit: WeeChat 0.3.8]
wiku5_ has joined #ruby
shedd has joined #ruby
shedd has quit [Read error: Connection reset by peer]
anddam has joined #ruby
shedd has joined #ruby
<anddam> hello
havenwood has quit [Ping timeout: 245 seconds]
aryaching has quit [Ping timeout: 260 seconds]
<shevy> Hanmac wtf
zcreative has joined #ruby
Fire-Dragon-DoL has joined #ruby
ktun has quit [Read error: Connection reset by peer]
ktun has joined #ruby
standyro1 has quit [Ping timeout: 272 seconds]
aspires has joined #ruby
kewjo has quit [Quit: WeeChat 0.4.1]
mercwithamouth has joined #ruby
TaxmanBD has quit [Quit: Leaving]
sparrovv has quit [Remote host closed the connection]
bradhe has joined #ruby
centrx has quit [Quit: Leaving]
s2013 has quit [Ping timeout: 272 seconds]
vlad_starkov has joined #ruby
<shevy> I will go blind Hanmac
<shevy> so this is what you rather wanna do instead of working on rxw :(
bradhe has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
<Hanmac> shevy i am currently watching TV and i was in cinema today, i will work again tomorrow
pskosinski has quit [Remote host closed the connection]
Brolen has quit [Remote host closed the connection]
octoberry has quit [Ping timeout: 272 seconds]
<shevy> hehe
<shevy> what did you watch in cinema?
brennanMKE has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
<Hanmac> shevy i watched "frozen" with my best friend, and then i got the OrginalSoundTrack of it ;P
<shevy> never heard that
<shevy> omg
<shevy> a cartoon!
<Hanmac> no its a animation (*big difference*)
TheDick has quit [Quit: TheDick]
phansch_ has quit [Read error: Operation timed out]
sassamo has quit [Remote host closed the connection]
blackmesa has joined #ruby
sassamo has joined #ruby
f0ster has joined #ruby
kenneth has quit [Quit: kenneth]
x77686d has quit [Ping timeout: 248 seconds]
<atmosx> Hanmac: how many hours per day you write code?
Brolen has joined #ruby
enebo has joined #ruby
x77686d has joined #ruby
meatherly has joined #ruby
sassamo has quit [Ping timeout: 248 seconds]
<shevy> atmosx I combine it with different activities whenever possible
alexfreidah has joined #ruby
<Hanmac> atmosx: currently i am jobless, (and last days my raid was rebuilding) but when i work on rwx, i do from raise from the bed till i fall back ;P (~8AM till ~2AM ;P )
<shevy> one area is where the computer is, the other area is where the books are
<atmosx> shevy: me too
<atmosx> Hanmac: what is rwx?
<shevy> for some reason I am much better learning from books, the things I read in a book I can remember for a much longer time
zleslie has left #ruby [#ruby]
<atmosx> shevy: you buy programming books?
SirFunk_ has joined #ruby
<Hanmac> atmosx: did you know wxRuby?
standyro1 has joined #ruby
<atmosx> Hanmac: hmmm it's bindings for GUI programming in ruby?
Salsa has joined #ruby
meatherly has quit [Ping timeout: 252 seconds]
alexfreidah has quit [Ping timeout: 272 seconds]
BraddPitt is now known as BradleyPitterson
<Hanmac> atmosx: yes, but wxRuby is dead ... and does not work with newer wxWidgets ... so i wrote my own, all myself ;P
<shevy> atmosx sometimes
<shevy> atmosx I bought some book about design patterns but I have not yet found the time to read it, I have like 30 books to read...
chipotle has joined #ruby
BradleyPitterson is now known as BradleyPitterman
BradleyPitterman is now known as BraddPitt
shime has quit [Ping timeout: 265 seconds]
<apeiros> bro: you using that nick to promote that campaign - is that a reverse joke? :)
cong has joined #ruby
<bro> lol my nick isn't related, no
tjsousa has joined #ruby
<atmosx> it's just me or does anyone else find that campaign idiotic?
<cong> how do i push a gem with http sources?
<apeiros> atmosx: just you
<bro> atmosx: I do
shime has joined #ruby
Salsa has quit [Write error: Connection reset by peer]
<bro> that's WHY I posted it here
<apeiros> bro: huh?
<atmosx> bro: I don't think anything could get more publicity than this project did, considering what she's actually offering.
<atmosx> apeiros: c'mon it's a little bit stupid
<apeiros> atmosx: what's stupid about writing a book?
<atmosx> apeiros: the target group.
<bro> apeiros: if she wasn't a female, she wouldn't even have reached $10,000
<apeiros> atmosx: so you're all "I'm not the target group, therefore I think it's stupid"?
<apeiros> bro: slippery slope
<bro> well I don't think her idea is stupid
<atmosx> apeiros: No, I'm not the target for "design patterns" book either.
<bro> I just think the pledged amount is stupid
phansch_ has joined #ruby
BrindleFly_ has joined #ruby
<apeiros> well, she asked for 10k - hardly her fault she gets more
BrindleFly has quit [Ping timeout: 252 seconds]
BrindleFly_ is now known as BrindleFly
<apeiros> that's like that idiotic argument somebody made to justify him insulting somebody using a female nick in here - "But he/she just uses a female nick to solicit more help!"
<bro> kickstarter should put some kind of limit
<apeiros> bro: why? because it hurts your feelings if somebody gets $$$?
<atmosx> apeiros: The concept of making a programming book in ruby for kids, is stupid. If a kid wants to learn programming there's nothing stopping him today, with all the raspberrys and computers and tools flying around. It's totally unenecesary. Also a kid will probably grow out of this book quickly. Not to mention that most kids that will have access to programming at an early stage will be probably have a geeky father, who can school them easily.
<bro> apeiros: for the wrong reasons? yes
<atmosx> apeiros: imho it's pointless
phansch_ has quit [Client Quit]
<apeiros> bro: so you're the person who determines "the only holy right and true reasons" I guess?
ryantm has joined #ruby
<Hanmac> atmosx: https://github.com/Hanmac/rwx << you can look at the source ... i did it all myself ;P
<apeiros> atmosx: dude, then *don't f'ing buy it*
<bro> apeiros: yes, call me Bro
<apeiros> atmosx: but don't go around and shit on what others love
<atmosx> apeiros: well, I probably won't. Who exactly loves it?
<apeiros> atmosx: the author *quite likely* loves what she does. don't you think?
<shevy> cong, gem push *.gem does not worK?
<apeiros> atmosx: and 170k$ tell a story of people thinking the same, don't you think too?
<atmosx> apeiros: so... I can't state my opinion because she does love it?
timonv has quit [Remote host closed the connection]
<atmosx> apeiros: exactly why I'm commenting on this, otherwise I wouldn't even bother (huh?).
<apeiros> atmosx: you can state your opinion. or you can be an ass about it. you chose the latter and it doesn't reflect well on you.
<cong> shevy, that's right
<shevy> cong hmm
<atmosx> apeiros: okay, I see what you mean. Sorry about it, didn't want to sound rude or anything.
<apeiros> atmosx: ok, thanks. glad to hear that.
<shevy> cong does it state how it fails?
<shevy> ah yes
<shevy> my mind is a bit confused, I am reading up on stupid laws right now...
<shevy> "Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources"
<cong> shevy, yeah => Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources
<shevy> I am unsure how to have it work without openssl, there is a channel #rubygems though
<apeiros> atmosx: just to be clear - I wouldn't by my kids such a book. for the simple reason that IMO a parent should rather take his time to teach the kid himself. that said - it might of course all go some other way and if my kid prefers to learn on his own, I'd still buy it.
<apeiros> *I wouldn't +buy+
<shevy> I usually bite the bullet when I compile ruby without working openssl, then I go into ext/openssl and rebuild from there
<atmosx> apeiros: me too.
<shevy> apeiros what if you are a bad teacher :D
<apeiros> but I'm one out of 7e9 people on this tiny earth :)
<cong> okay
jonah has quit [Ping timeout: 252 seconds]
<atmosx> apeiros: hehe me too.
<apeiros> shevy: then the poor lad has to suck it up or go to bed without dinner! d'uh :D
<popl> seven-e-nine?
<popl> ;)
<shevy> DICTATORSHIP!!!
<atmosx> apeiros: also, I will not force my kid to learn programming if he/she doesn't want to.
<atmosx> shevy: democracy is such a pain..
<apeiros> popl: have we reached 8e9 already?
<shevy> atmosx k he will always say no to everything you tell your kid to do. what then
<shevy> atmosx yeah
<shevy> atmosx but as long as you can buy the legislation, it won't matter!
<atmosx> shevy: I won't tell nothing then :-P Hope to hav ea better relationship if possible
<atmosx> lol
<apeiros> atmosx: yeah. I'll try to encourage them. but I'll support them in whatever they want to do (as long as it's within laws and acceptable danger levels)
<atmosx> Hanmac: awsome project, in cpp? :-)
spider-mario has quit [Remote host closed the connection]
<Hanmac> atmosx: yep, but i use C-macros for the EVIL! ;D
<shevy> dEVIL!
<popl> apeiros: we haven't even gotten to 80
<atmosx> Hanmac: cool
<shevy> it gots evil in its name
<apeiros> popl: ?
<popl> DUDE THE PUN IS RIGHT THERE
<popl> :P
<apeiros> too much wine or too late in the evening…
* apeiros doesn't get it
<popl> apeiros: 7e9 -> seven-e-nine -> seventy nine
x77686d has quit [Ping timeout: 260 seconds]
<shevy> "Devil descends from the Middle English devel, from Old English d?ofol, that in turn represents an early Germanic borrowing of Latin diabolus."
<shevy> Teufel!
<apeiros> popl: :-| ok
<shevy> oh it was a pun
<shevy> I just thought popl was drunk
x77686d has joined #ruby
pskosinski has joined #ruby
<popl> shevy: I am rarely drunk.
<popl> Which isn't to say I don't like beer.
Briareos1 has quit [Remote host closed the connection]
<popl> Just that I'm pretending to be poor so I can save money.
<popl> When I'm drunk I'll have more typos.
<popl> I am very tired though.
<atmosx> I don't like alcohool
RoryHughes has quit [Ping timeout: 248 seconds]
<atmosx> and it's strange, but I didn't like it the first time and never really tried to push myself into it.
<atmosx> I don't know, did you guys liked alcohool the first time you had it?
<shevy> popl get drunk
<shevy> atmosx hmm it depends
<popl> I'm high on life.
<shevy> stuff like vodka is killing my brain cells and my stomach so I refuse to drink it
<shevy> 1x 0.33 L beer every now and then (like every 3rd day) is ok sometimes depending on food used (bread + beer is ok, beer + sweet sugar is not ok)
<popl> Besides, you're intoxicating enough…
twopoint718 has joined #ruby
<shevy> other than that no alcohol
twopoint718 has quit [Changing host]
twopoint718 has joined #ruby
<atmosx> popl: what does "high on life" mean exactly?
* popl bats his eyelashes.
banisterone has joined #ruby
axl_ has quit [Quit: axl_]
<apeiros> shevy: I just bet on my regeneration ratio being higher than alcohols kill ratio
Astralum has quit [Ping timeout: 245 seconds]
TheDick has joined #ruby
<popl> It's an urban myth that alcohol destroys brain cells.
sethen has joined #ruby
<Morrolan> atmosx: Oh, sorry, I thought this one was common knowledge by now. :o
<atmosx> popl: you have degree in CS?
<Morrolan> atmosx: http://xkcd.com/538/ it is
sassamo has joined #ruby
asmodlol has quit [Ping timeout: 272 seconds]
<atmosx> Morrolan: oh this one, yes I knew it :-)
<Morrolan> See. :)
<atmosx> hahahaha
<Morrolan> (Would have been disappointed if you hadn't!)
<atmosx> My fav is the one with the sys-admin
po10 has quit [Remote host closed the connection]
RoryHughes has joined #ruby
pen has quit [Read error: Connection reset by peer]
andrewfree has left #ruby [#ruby]
po10 has joined #ruby
RoryHughes has quit [Max SendQ exceeded]
<Morrolan> ;D
pen has joined #ruby
<apeiros> popl: well, it damages the dendrites. so pedantic version: I just bet on my dendrites regeneration ratio being higher than alcohols dendrite damaging ratio
<shevy> apeiros yeah as long as you are young and healthy :)
<apeiros> is 53 still young?
<shevy> hehe
<shevy> well
havenwood has joined #ruby
<shevy> there are some people who are rather fragile at 53 and some who are still strong like a bear
danshultz has quit [Remote host closed the connection]
<shevy> alcohol always made me tired quickly
<apeiros> depends on the amount for me
<shevy> tequila really knocks me out quickly
RoryHughes has joined #ruby
<popl> apeiros: your liver would probably fail you first
<popl> That is, if you drank LIKE A MAN.
<popl> ;P
* Hanmac laughts because he neigher drinks alc nor he smokes ;P
<popl> Hanmac: That just means your sentence is longer than mine.
<apeiros> popl: how do man drink?
<apeiros> *men
sassamo has quit [Ping timeout: 252 seconds]
<apeiros> I dunno how men drink. I usually drink either directly from the bottle or use a glass…
camilasan has joined #ruby
<popl> I think it involves ice and prostitutes.
<popl> At least that's what it looks like in the commercials.
<apeiros> wife sadly doesn't approve of prostitutes :(
havenwood has quit [Ping timeout: 252 seconds]
jonah has joined #ruby
<popl> even if they're soley for drinking purposes?
<popl> what a prude
ckinni has joined #ruby
bradhe has joined #ruby
<apeiros> maybe for fear of behavioral changes in me when drinking :)
funburn has joined #ruby
<atmosx> Hanmac: do you have sex?
<Hanmac> atmosx: what do you guess?
enebo has quit [Quit: enebo]
* atmosx doesn't smoke or drink alc either (well I drink shots etc though)
<shevy> man
<atmosx> Hanmac: yeeeees
asmodlol has joined #ruby
<shevy> atmosx, LOOK AT THE PICTURE HE FINDS
<shevy> they make you a sex-less person in no time
<atmosx> shevy: he is pretty kinky
<shevy> Hanmac, did you show him that psycho cat that hit the eye of that girl?
<atmosx> shevy: but I think ... I had a bigger hentai collection. These Japanese dudes are by far the most twisted
<shevy> atmosx it's like an alarm clock... an alarm cat...
<shevy> yeah
<shevy> japanese confuse me a lot
<Hanmac> atmosx: https://i.chzbgr.com/maxW500/8010607104/h1CCE88A7/ << best alarmclock ever!
<shevy> I dunno what is up with them
<shevy> they are like on the extreme side
<Hanmac> shevy: and no its not japanese ;P this is a cartoon not a anime ;P
<atmosx> When I went to China it was awesome, every girl wanted to *marry me*
bradhe has quit [Ping timeout: 245 seconds]
<Hanmac> atmosx: https://i.chzbgr.com/maxW500/7995460608/hD9AF00E3/ << i think shevy wants that i show you this
<atmosx> And there are very beautiful chinese girls there.. Not like the ones you see in Europe
TheDick has quit [Quit: TheDick]
<atmosx> Hanmac: hahha
senayar has joined #ruby
kenneth has joined #ruby
cba has quit [Ping timeout: 246 seconds]
senayar has quit [Client Quit]
<shevy> atmosx how did you figure out they wanted to marry you? :D
<Hanmac> shevy: they drag him into a church or temple or something similar?
<atmosx> shevy: I didn't :-P They were asking our translator all the time.
travisjeffery has joined #ruby
<atmosx> shevy: they asked "If I had children"
<atmosx> which was a translation children = married
<shevy> wtf
<shevy> are you sure it was not a prank? :D
Notte has joined #ruby
travisjeffery has quit [Remote host closed the connection]
<atmosx> Hanmac: hahahaha no, but when we went this massage center, there were these tiny chinese girls... Really short you know? Their hands though were like princers or something
<shevy> "Look this outsider's nose is really huge, what an ugly guy." Translator: "Man, I tell you, these girls love you! They wanna marry you right away!"
<apeiros> atmosx: of course, you're a ticket to an imagined golden world
twopoint718 has quit [Quit: leaving]
travisjeffery has joined #ruby
jasonwebster has quit [Quit: Computer has gone to sleep.]
<shevy> switzerland!!!
<shevy> rivers of schokli!
<atmosx> apeiros: No, it's no tthat. The problem with them is that they have our standards of beauty. So any European with dark hair (I think) will do.
vlad_starkov has joined #ruby
<shevy> they hate blonde men???
* apeiros really wants to strangle shevy for spelling it "schokli"
<shevy> hehe
<atmosx> shevy: I think blonde men are kinda *strange* to them...
<apeiros> atmosx: yeah, that too. my insanely pale skin which I hate is beauty heaven over in much of asia
<shevy> hah! swedish invasion will shock the chinese then
<atmosx> At least given the fact that the Bulgarian blonde guy didn't get any attention but he was not ugly or anything
havenwood has joined #ruby
<atmosx> I assume that dark is closer to their color.
<atmosx> colors*
<Hanmac> atmosx: my family makes a holyday in china next month, i am stay at home for some reasons ... (maybe next time)
ohwhoa has joined #ruby
<atmosx> Hanmac: can't you go?
<atmosx> Hanmac: Chinese girls are *very* beautiful.
<atmosx> Hanmac: but I don't think you're going to get laid without getting some sort of engagement.
w4pm has joined #ruby
s2013 has joined #ruby
Lulzon is now known as LulzonAway
vlad_starkov has quit [Read error: Connection reset by peer]
<Hanmac> atmosx: first i didnt know if i have freetime, than there was the choice, with my mother and friend , or with my sister, and there was no third choice
<Hanmac> atmosx: currently i dont have a problem with that i dont get "laid" ... you dont know how "lazy" i can be right? ;P
<shevy> Hanmac go to china man
eka has quit [Quit: Computer has gone to sleep.]
<shevy> Hanmac actually, where in china?
<atmosx> there was this translator (1 of the two) who was really awesome and she asked me the third day if I liked China. I was in shock the 1st week or 5 days.. Because it was like being in Space, everything was *Chinese*, everything was totally weird, even the food. So I said "hell no!". That was it, she was *testing* me, so 5 days later when the other translator told that she liked me (and I liked her becuase she was hot) I asked her out and she refused
<atmosx> because "I will not stay in China".
<shevy> I loved Hong Kong but hated Shanghai
<Hanmac> shevy directly shanghai ...
<atmosx> shevy: I want to go to Singapore, Shangai is awesome (Pudong)
<shevy> Beijing was funny, we saw some army guys doing some kind of tai-chi combat moves (I think it was a tai-chi form, not san-shou form...)
<shevy> atmosx ohh I was never to Singapore
<shevy> what is Pudong?
<atmosx> shevy: the ritchest district of Shangai, probably thepart you saw
* Hanmac smells that we rubyists should make a travel someday in a group across china ;P
gus is now known as [d]arwin
<atmosx> Hanmac: I would love to go to Japan (more liberal, sex-wise) and Singapore (to get new gadgets)
havenwood has quit [Ping timeout: 260 seconds]
lfox has joined #ruby
<shevy> atmosx, ah I see. I was mostly near the harbour area... it felt like they copied hong kong but in an ugly way like "hey, we can build a town like the UK can do too!"
<Hanmac> atmosx: visiting japan is also on my list ... maybe i am make some kind of joptravel with my cousin
duggiefresh has quit []
<shevy> visiting matz!
w4pm has quit [Ping timeout: 248 seconds]
<shevy> european attack team - we attack with hugs
<Hanmac> hm that is not on my list, but it would still be cool
<shevy> he speaks english after all
<atmosx> Hanmac: yeah... Matz is the last I would think of, but okay
angusigu1ss has quit [Ping timeout: 252 seconds]
<atmosx> I'll go with shevy
<Hanmac> atmosx: i still dream about that japan and china join forces ... combining japanise tech with china production tech ... ;P
<shevy> \o/
<shevy> they hate each other
<Hanmac> hm maybe but its still a nice thought
LulzonAway is now known as Lulzon
fgo has joined #ruby
<atmosx> shevy: maybe the fact that Japanese soldiers attacked them like 3 times in 1 century slaughter everyone etc has something to do with it :-P
<atmosx> that said, I'm positive that you can get a lot more sex in JP than CN
camilasan has quit [Ping timeout: 265 seconds]
cba has joined #ruby
awarner_ has joined #ruby
<Hanmac> atmosx: it seems your auto-reply is "lost" ;P
<atmosx> Hanmac: oh
gasbakid has quit [Quit: Quitte]
<shevy> atmosx that's the excuse they use but in reality it is economic influence today
<shevy> japan is sad that china will crush them economically
popl has quit [Ping timeout: 264 seconds]
meatherly has joined #ruby
<atmosx> yes but I don't care really
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
aryaching has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
Lulzon is now known as LulzonAway
standyro1 has quit [Ping timeout: 252 seconds]
standyro1 has joined #ruby
meatherly has quit [Ping timeout: 272 seconds]
LulzonAway is now known as Lulzon
aspires has quit []
s2013 has quit [Read error: Connection reset by peer]
s2013 has joined #ruby
ktun has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 260 seconds]
Hanmac has joined #ruby
max96at has quit [Quit: Textual IRC Client: www.textualapp.com]
aspires has joined #ruby
RoryHughes has quit []
fgo has quit [Remote host closed the connection]
cong has quit [Read error: Connection reset by peer]
Beoran_ has quit [Ping timeout: 272 seconds]
charlies_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Brolen has quit [Remote host closed the connection]
[d]arwin is now known as sky_diver
Brolen has joined #ruby
Guest28853 is now known as lagweezle
tjsousa has quit [Quit: Computer has gone to sleep.]
tjsousa has joined #ruby
tylersmith has joined #ruby
Somelauw has joined #ruby
RoryHughes has joined #ruby
<Somelauw> Not sure, but ruby seems to have many synonyms like select/findall and map/collect. Is one prefered over the other or do you just pick one depending on your mood?
angusigu1ss has joined #ruby
<apeiros> people usually stick with personal preferences
speakingcode has quit [Ping timeout: 264 seconds]
<apeiros> mine are: map, select, reject, inject
<Somelauw> do you make a style guide when working in teams?
<apeiros> I'd suggest to do that, yes
Brolen has quit [Ping timeout: 264 seconds]
<apeiros> we didn't do at work because we happened to have the same preferences
<Somelauw> that also explicitely mentions preferred methods
banisterone has quit [Ping timeout: 248 seconds]
tjsousa has quit [Ping timeout: 245 seconds]
<MrZYX> I mostly use the shorter ones, but there are a few occasions where one of the aliases might make the intent clearer (don't ask me for examples though! :P)
RoryHughes has quit [Client Quit]
<Somelauw> apeiros: are there some very common preferences for the methods?
<Somelauw> ok, you mostly prefer the shortest one
<apeiros> I'm hesitant to declare my preferences to be the common preference. I don't have numbers.
speakingcode has joined #ruby
<lagweezle> inject is a fun word ... so long as it doesn't involve me and needles.
<Hanmac> apeiros & Somelauw select and find_all are not synonyms for all
<apeiros> you "inject" an operator into a list of elements
tylersmith has quit [Remote host closed the connection]
<apeiros> e.g. .inject(:+) turns [1,2,3] into [1 + 2 + 3] (that's how I visualize it and understand its name at least)
<Somelauw> (1..10).select {|i| Math.sqrt(i) % 1 != 0} .map {|i| i * i}
<Hanmac> Somelauw: Hash#select does return Hash, Enumerable#find_all returns Array, remind that
maletor has quit [Quit: Computer has gone to sleep.]
octoberry has joined #ruby
<apeiros> good that 1.8 is dead. otherwise you'd had to mention that difference.
<Somelauw> inject = reduce or fold
<apeiros> foldl I think
travisjeffery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<lagweezle> Anyone here familiar w/Capistrano, bundler, and rbenv combinations?
angusigu1ss has quit [Ping timeout: 252 seconds]
<lagweezle> Oh ... and willing to help cluebat me?
<apeiros> yeah, reduce got added later
bjhaid has quit [Ping timeout: 252 seconds]
maletor has joined #ruby
<apeiros> I'm willing to just bat you
<lagweezle> :3
rootshift has joined #ruby
marr has quit [Ping timeout: 260 seconds]
<shevy> Somelauw the shorter ones are better. .map beats .collect
<Somelauw> apeiros: please tell them to stop creating synonyms, i have an ocd to use one of those method names consistenly, synonyms make that harder
<shevy> Somelauw reject and select are very similar, my brain works better with reject (because I focus on like a filter, and send through it some data, and out comes only what I need, whereas with select, my brain needs to pick what I really want first, rather than be able to just discard what I won't need)
maletor has quit [Client Quit]
Azure has quit [Quit: My MBP went to sleep.]
<apeiros> Somelauw: I too wish they didn't have aliasitis
Beoran_ has joined #ruby
<shevy> apeiros already created his own language ONCE
<shevy> he may do so again!
iamdoo2 has joined #ruby
<apeiros> for semantic reasons, ok (like aliasing == to eql? etc.) - but just to satisfy some people who might know the method under a different name from a different language? hell no!
<apeiros> make a guide or something for them
<shevy> lagweezle inject confuses me, I always think of syringes first
<apeiros> shevy: I'm still working on it
<apeiros> shevy.inject(:syringe)
<shevy> halsbe 3.0
<apeiros> wow, you remember the name
<apeiros> impressive :)
<Somelauw> shevy: select is the same as filter in scheme/haskell/python/javascript/scala, so my brain works better with that one.
<shevy> yes but only because it was such a strange name
octoberry has quit [Ping timeout: 264 seconds]
<shevy> it has like a guttural german sound
<lagweezle> shevy: I've got issues with needles, when they involve thoughts of them related to my skin ... Weirdly enough, I gave injections and such to my ferrets w/o much of a problem. O.o
farkerhaiku has quit [Quit: Page closed]
<shevy> eeks
<Somelauw> and then they don't offer "filter" as a synonym which is the most common word in other languages
<shevy> poor ferrets
<shevy> lagweezle do you give yourself injections too?
havenwood has joined #ruby
sassamo has joined #ruby
<lagweezle> Aye. One of the poor guys had insulin issues post-surgery and I had to give him insulin shots every 8 hours after blood tests.
<lagweezle> shevy: no. don't think I could
bradhe has joined #ruby
axl_ has joined #ruby
* lagweezle shivers at the thought.
Brolen has joined #ruby
<shevy> hehe
iamdoo2 has quit [Ping timeout: 272 seconds]
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki> insulin shots are typicall subq
coffeina has joined #ruby
end_guy has quit [Remote host closed the connection]
IceyEC has quit [Quit: IceyEC]
havenwood has quit [Ping timeout: 260 seconds]
end_guy has joined #ruby
sassamo has quit [Ping timeout: 272 seconds]
yarou has joined #ruby
zcreative has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
yarou has quit [Changing host]
yarou has joined #ruby
<Somelauw> i somewhat like ruby blocks
bradhe has quit [Ping timeout: 264 seconds]
<shevy> Somelauw yeah? you used them in another language as well?
kewubenduben has joined #ruby
hfp is now known as hfp`away
alekst has quit [Quit: Computer has gone to sleep.]
jonah has left #ruby [#ruby]
aspires has quit []
s2013 has quit [Ping timeout: 245 seconds]
<Hanmac> lagweezle: i have a problem with doctors and needles ... once i was ill and they took me into hospital (they thought it was meningitis), they took a bag of my blood out of me and then they said: "they cant threat me there, i need to travel to the next one" and then they put the blood bag on my lap (holding your own blood is a very freaky feeling) ... after 30min we was in the second hospital, but they said my blood was older than 2h they need n