apeiros changed the topic of #ruby to: Ruby 2.1.4; 2.0.0-p594; 1.9.3-p550: 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
greenride has quit [Quit: Leaving.]
<b3itz> gr33n7007h, youre the man. im going to finish my copy first, then kinda compare them
<gr33n7007h> ok
majjoha has joined #ruby
<b3itz> i actually got all that working
<gr33n7007h> cool
<b3itz> i replaced the formulas with mine but it all works.. now i need to output to a txt file >.< lol
<gr33n7007h> b3itz, the new gist check it out all working and writes to outfile with a create_writefile method
<gr33n7007h> but don't forget your other objectives and try to understand the program
ghostmoth has quit [Quit: ghostmoth]
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<b3itz> youre the man gr33n7007h. im going to still do mine, then kinda put the two together
<b3itz> thank you so much for your help
<gr33n7007h> b3itz, np
jimbach has joined #ruby
<gr33n7007h> I just couldn't watch do round in circles anymore lol
majjoha has quit [Ping timeout: 245 seconds]
<b3itz> im literally going crosseyed
<b3itz> i got so frustrated lol
wjimenez5271 has joined #ruby
<gr33n7007h> lol
mib_mib has joined #ruby
<gr33n7007h> don't for get in_file.close
josephndenton has quit [Ping timeout: 256 seconds]
<gr33n7007h> *forget
wjimenez5271 has quit [Ping timeout: 245 seconds]
tuelz has quit [Ping timeout: 264 seconds]
jwang__ has quit [Read error: Connection reset by peer]
mihok has quit [Ping timeout: 250 seconds]
vyorkin has quit [Quit: WeeChat 1.0.1]
duncannz has joined #ruby
arescorpio has joined #ruby
VanillaGoat__ has joined #ruby
jenrzzz has joined #ruby
jottr_ has quit [Ping timeout: 250 seconds]
apeiros has quit [Remote host closed the connection]
silkfox has joined #ruby
josephndenton has joined #ruby
apeiros has joined #ruby
jdj_dk has joined #ruby
byprdct_ has joined #ruby
yfeldblu_ has joined #ruby
VanillaGoat_ has quit [Ping timeout: 255 seconds]
<jhass> :(
<jhass> if you can forget that you use the wrong call
jwang__ has joined #ruby
<b3itz> ARGV[1].puts "hello"
<b3itz> ARGV[1].close why cant i get that to work
<jhass> always use File.read, File.write, File.readlines, File.foreach or File.open with a block
<jhass> because ARGV[1] is a string
<jhass> not an IO
<jhass> (it may be nil actually)
byprdct has quit [Ping timeout: 272 seconds]
<b3itz> is there a way to use .puts with it?
<jhass> what would it do?
yfeldblum has quit [Ping timeout: 244 seconds]
<b3itz> i need to write a header in the output.txt file
<b3itz> AVERAGE MEDIAN.. etc
<lampd1> b3itz: do you do all your cs homework in #ruby? :P
<b3itz> lol its just this one class
<jhass> but ARGV[1] is nil or a String
jenrzzz has quit [Ping timeout: 265 seconds]
<b3itz> i also have a forensics and security class
fuhgeddaboudit has quit [Ping timeout: 272 seconds]
<b3itz> so can i store it and then use it jhass ?
<jhass> that you can do with everything
jenrzzz has joined #ruby
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
tuelz has joined #ruby
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
tuelz has quit [Client Quit]
sar_s has quit [Ping timeout: 244 seconds]
klaut_ has quit [Remote host closed the connection]
Kricir has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
jimbach has quit [Remote host closed the connection]
TPBallbag has quit [Remote host closed the connection]
sailias has joined #ruby
crazydiamond has quit [Ping timeout: 240 seconds]
Salve has joined #ruby
Salve has quit [Client Quit]
Salve has joined #ruby
mr_rogerz_ has joined #ruby
mistermocha has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
disKounted has joined #ruby
jenrzzz_ has joined #ruby
GreenJello has joined #ruby
charliesome has joined #ruby
oo_ has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
<GreenJello> I'm not sure what to search for, but I want to do This.something otherwise That.something
<GreenJello> the values are strings
<jhass> that question isn't clear at all
<waxjar> what do you mean by "otherwise" there?
<GreenJello> This.something if it's defined, and otherwise That.something
<jhass> "it"?
<jhass> remove your bogus abstractions
<GreenJello> if the something property exists
sevenseacat has joined #ruby
subopt1 has joined #ruby
<jhass> you want or?
<waxjar> if This.respond_to? :something; This.something; else; That.something; end
<jhass> >> nil || "this"
<eval-in__> jhass => "this" (https://eval.in/219333)
subopt1 has left #ruby [#ruby]
<GreenJello> I want to set override.ssh.private_key_path to Secret.private_key_path or a different string if Secret.private_key_path doesn't exist
<gr33n7007h> b3itz, little update with header info for output file
<gr33n7007h> b3itz, little update with header info for output file: https://gist.github.com/anonymous/e9721bc626b0b8bfe75a
<GreenJello> oh that was simple
adriancb has quit [Remote host closed the connection]
jdj_dk has quit [Ping timeout: 265 seconds]
<jhass> GreenJello: ssh.private_key_path = Secret.private_key_path || something_else
<b3itz> BUT my s_deviation won't round
adriancb has joined #ruby
tkuchiki has joined #ruby
<GreenJello> thank you jhass :-)
linduxed has quit [Ping timeout: 250 seconds]
<b3itz> why wont that round gr33n7007h
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
jimbach has joined #ruby
iamjarvo has joined #ruby
linduxed has joined #ruby
<gr33n7007h> here my output with adding .round(4) to end standard deviation method: https://gist.github.com/anonymous/a1dc05b9575c13662588
patric100e99 has joined #ruby
tkuchiki has quit [Ping timeout: 244 seconds]
marr has quit [Ping timeout: 260 seconds]
<b3itz> gr33n7007h, s_deviation = Math.sqrt(s_deviation).round(4)
<b3itz> and im getting 60.53333333333333
KA-EL-MAN has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
jgrevich has joined #ruby
<gr33n7007h> it rounds to four decimal places i've just tried it
<b3itz> ohhhhhhhhhhh
<b3itz> >.<
<b3itz> i needed to round average, not s_
Wolland has joined #ruby
<gr33n7007h> b3itz, why you not using create_writefile method?
patric100e99 has quit [Ping timeout: 245 seconds]
jenrzzz_ has quit [Ping timeout: 244 seconds]
gsd has joined #ruby
lampd1 has quit [Ping timeout: 272 seconds]
adriancb has quit [Ping timeout: 265 seconds]
adriancb has joined #ruby
badhatter has joined #ruby
badhatter has joined #ruby
<b3itz> whoa... i never even saw that for some ridiculous reason
jgrevich has quit [Client Quit]
mib_mib has quit [Ping timeout: 255 seconds]
<gr33n7007h> b3itz, instead of doing row = 0; row + row = 1 using each_line.with_index |line, idx| ... i know i did it mine :)
jgrevich has joined #ruby
Ulrike_Rayne has quit [Read error: Connection reset by peer]
<b3itz> why would that be a bonus? lol it seems like a step backward
Ulrike_Rayne has joined #ruby
<gr33n7007h> from your assinment: iv. Note: Do not round to 4 decimal places, that will occur when writing to the output file haha
majjoha has joined #ruby
nateberkopec has quit [Quit: Leaving...]
<gr33n7007h> step forward
jenrzzz has joined #ruby
larissa has quit [Quit: Leaving]
troyready has joined #ruby
majjoha has quit [Ping timeout: 256 seconds]
phutchins has quit [Ping timeout: 255 seconds]
Nogbit has joined #ruby
Nogbit has quit [Client Quit]
<b3itz> gr33n7007h, http://pastebin.com/RsK6SBgC
xyh has quit [Remote host closed the connection]
danijoo has quit [Read error: Connection reset by peer]
Nogbit has joined #ruby
<b3itz> my FIRST output is down an extra line AND the first two numbers are cut off
danijoo has joined #ruby
snovity has quit [Ping timeout: 264 seconds]
pushpak has quit [Quit: Linkinus - http://linkinus.com]
jottr_ has joined #ruby
Kricir has joined #ruby
<gr33n7007h> b3itz, run this program: https://gist.github.com/anonymous/5be8817b4e9a7deb5ce5
Wolland_ has joined #ruby
jdj_dk has joined #ruby
Wolland_ has quit [Remote host closed the connection]
Wolland has quit [Ping timeout: 256 seconds]
Wolland has joined #ruby
<pontiki> #ruby: the homework channel
<b3itz> gr33n7007h, like a boss
<b3itz> i still cant tell what was cutting that off
lampd1 has joined #ruby
<sevenseacat> lol pontiki
<cashnguns> do uni's really teach ruby?
<pontiki> is it a uni class?
jottr_ has quit [Ping timeout: 250 seconds]
<pontiki> could be a ruby school for all i know
Wolland has quit [Ping timeout: 255 seconds]
vince_ has quit [Remote host closed the connection]
IrishGringo has quit [Ping timeout: 265 seconds]
<cashnguns> ahh
<cashnguns> ya dev bootcamp
Insti has quit [Ping timeout: 255 seconds]
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<cashnguns> I attended an info session for one once, didn't seem like my scene too much feelings
tkuchiki has joined #ruby
arquebus has quit [Quit: Konversation terminated!]
<b3itz> thanks for all your help tonight gr33n7007h ... you helped me a bunch
tkuchiki has quit [Remote host closed the connection]
zacts has joined #ruby
tokik has joined #ruby
<gr33n7007h> b3itz, no worries
tkuchiki has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
b3itz has quit [Quit: Leaving]
robustus|Off has quit [Ping timeout: 255 seconds]
robustus|Off has joined #ruby
robustus|Off is now known as robustus
chrishough has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
josephndenton has quit [Ping timeout: 245 seconds]
thsig has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 265 seconds]
Insti has joined #ruby
atomical has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
Hijiri has quit [Ping timeout: 260 seconds]
thsig has joined #ruby
troyready has quit [Ping timeout: 265 seconds]
jimbach has quit [Remote host closed the connection]
thsig has quit [Remote host closed the connection]
<gregf> should I worry about filtering cookies from VCR cassettes? If so how can I actually filter that since the data changes all time?
<pontiki> i thought the point of VCR cassettes is exactly that the data is captured once and just replayed
jenrzzz has quit [Ping timeout: 244 seconds]
Jameser` has quit [Read error: Connection reset by peer]
<sevenseacat> indeed
<gregf> pontiki: it is, but you can filter out sensitive data like access tokens, I wasn't sure if cookies should be considered sensitve data
<pontiki> it was this phrase: "since the data changes all time?" that i found questionable
<gregf> pontiki: I still don't want to have to manually edit each cassette to get rid of the cookie, so i'm curious how I could filter that out
<gregf> pontiki: its easy with the access token I just tell it to replace the var with some fake data, but with a cookie I don't know what its going to be before hand
<sevenseacat> seems to be skipping the point of VCR
<gregf> sevenseacat: what should I use instead then if I don't want the cookie data saved
<gregf> i mostly just care about replaying the response
Nogbit has quit [Ping timeout: 265 seconds]
Hijiri has joined #ruby
silkfox has quit [Ping timeout: 265 seconds]
takle has quit [Remote host closed the connection]
pdtpatrick has quit [Quit: pdtpatrick]
txdv_ has joined #ruby
txdv has quit [Ping timeout: 272 seconds]
Dude007 has quit [Remote host closed the connection]
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
davasaurous has quit [Remote host closed the connection]
greenride has joined #ruby
BTRE has quit [Ping timeout: 245 seconds]
proteusvacuum has joined #ruby
zacts has quit [Quit: leaving]
havenwood has joined #ruby
boombadaroomba has joined #ruby
_ixti_ has quit [Ping timeout: 240 seconds]
jonr22 has joined #ruby
martin_work has joined #ruby
majjoha has joined #ruby
jimbach has joined #ruby
hamakn has joined #ruby
boombadaroomba has quit [Ping timeout: 264 seconds]
dkb20k has joined #ruby
jdj_dk has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
jenrzzz has joined #ruby
majjoha has quit [Ping timeout: 240 seconds]
BTRE has joined #ruby
tier has joined #ruby
newmanships has joined #ruby
<greenride> A rack server takes a Ruby object as input. This Ruby object must operate in some environment. I would like to understand that environment. What is involved in understanding this?
<greenride> For example, can variables be inside this environment?
<jhass> did you read racks docs?
jdj_dk has quit [Ping timeout: 264 seconds]
<greenride> jhass: Yes. That page. I read. The first sentence states:
<greenride> A Rack application is a Ruby object (not a class) that responds to call. It takes exactly one argument, the environment and returns an Array of exactly three values: The status, the headers, and the body.
<greenride> I understand the ruby object, call method, env argument, and return value.
<greenride> What I don't understand is exactly what is passed to Webbrick?
<greenride> Just the Ruby object (called the Rack application)?
<jhass> webrick itself doesn't understand rack
moritzs has quit [Remote host closed the connection]
<jhass> the rack gem therefore includes some glue code, called a handler: http://www.rubydoc.info/gems/rack/Rack/Handler/WEBrick
jimbach has quit [Remote host closed the connection]
Ulrike_Rayne is now known as Zombuli
ghormoon has quit [Ping timeout: 255 seconds]
<greenride> jhass: I understand that @app is the Rack application.
<greenride> Is that the only thing passed to a Rack server?
rshetty has joined #ruby
spyderman4g63 has joined #ruby
<jhass> I presume so
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
jottr_ has joined #ruby
spyderman4g63 has joined #ruby
<greenride> The WEBrick class has a self.run, which sets environment, using ENV['RACK_ENV'].
Zombuli is now known as Ulrike_Rayne
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
sn0wb1rd has quit [Ping timeout: 245 seconds]
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
SidWu__ has joined #ruby
spyderman4g63 has joined #ruby
newmanships has quit [Quit: Textual IRC Client: www.textualapp.com]
<greenride> This is what I'm trying to understand. Does app(passed to initialize) and ENV completely determine the Rack Applications behavior?
SidWu__ has quit [Max SendQ exceeded]
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
SidWu__ has joined #ruby
SidWu__ has quit [Max SendQ exceeded]
DrCode has joined #ruby
<greenride> In other words, all the loaded gems, engines, and Rails (Sinatra or other) related config info is encapsulated in app and ENV?
apeiros has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
sn0wb1rd has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
jottr_ has quit [Ping timeout: 264 seconds]
bri has quit [Ping timeout: 260 seconds]
spyderman4g63 has quit [Remote host closed the connection]
rshetty has quit [Ping timeout: 255 seconds]
jonr22 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
josephndenton has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
jonr22 has joined #ruby
spyderman4g63 has joined #ruby
Wolland has joined #ruby
<jhass> essentially yes
spyderman4g63 has quit [Remote host closed the connection]
rshetty has joined #ruby
spyderman4g63 has joined #ruby
<jhass> one more element is that Rack usually passes a Rack::Builder
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
<jhass> which is a Rack application that wraps another rack application into a chain of middlewares
<jhass> if you have a rails application at hand, run rake middlewares to get its current middleware stack
josephndenton has quit [Ping timeout: 244 seconds]
adriancb has quit [Remote host closed the connection]
<greenride> jhass: Based on what you're telling me, it should be easy to create a Rack application that mounts one Rails app at /v1 and another Rails app at /v2. Right?
havenwood has quit [Remote host closed the connection]
adriancb has joined #ruby
<jhass> right
<jhass> Rails router allows to do that in two lines
bri has joined #ruby
<jhass> I think I saw a gem somewhere that does it standalone
DrCode has quit [Ping timeout: 250 seconds]
<greenride> Really?
Nogbit has joined #ruby
<jhass> https://github.com/josh/rack-mount a bit more advanced even
Nogbit has quit [Client Quit]
govg has quit [Remote host closed the connection]
<greenride> jhass: This is what I was trying. https://dpaste.de/jRgT
martin_work has quit [Quit: martin_work]
<greenride> Without much success
krz has joined #ruby
<jhass> really? I need to ask you what the problem is?
Kricir has quit [Remote host closed the connection]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
govg has joined #ruby
jdj_dk has joined #ruby
<greenride> jhass: This question is a bit removed from the initial problem. But, here is the initial. I have v1 of codebase and v2 of codebase. I also have a migration script from v1 to v2. However, I want the site to redirect users to v1 or v2 based on a database flag as opposed to routing at the system level. So, I want everything in one process.
DrCode has joined #ruby
<greenride> Does that make sense?
<jhass> I guess this is more a #RubyOnRails question of running two rails apps in the same process
<jhass> turning at least one of them into a Rails engine would probably make it easier
ARCADIVS has joined #ruby
<greenride> I tried that, but Devise pollutes the global namespace making it hard for both the engine and the app to use the devise gem.
optiz0r has quit [Ping timeout: 265 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
iwishiwerearobot has joined #ruby
IrishGringo has joined #ruby
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
x1337807x has joined #ruby
<jhass> I'd probably merge it into one Rails app with namespacing (app/{controllers,models,views}/{v1,v2}) and the common parts like authentication in the top level namespace
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
optiz0r has joined #ruby
<jhass> this really is a #RubyOnRails topic though
<greenride> I agree
<greenride> At the Rack level, I was wondering why Rails wasn't behaving as an isolated Rails application.
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
<greenride> So, I was wondering what else was fed to the Rack server other than the app object.
takle has joined #ruby
iwishiwerearobot has quit [Ping timeout: 260 seconds]
<greenride> jhass: Thanks for your input.
<jhass> I really don't think your issue is at the Rack level, it's global state like Bundler, Devise and the Rails constant
pdtpatrick has joined #ruby
<greenride> That's what I want to know about.
<greenride> Does Bundler, Devise, and Rails Framework set global state?
<jhass> Bundler sets $LOAD_PATH
<Nilium> Might want to ask in the rails room re: Rails specifically.
<jhass> Devise you said something about global state
mark06 has joined #ruby
<jhass> Rails.env is global state for example
<greenride> That was for the Rails Engine approach.
takle has quit [Ping timeout: 250 seconds]
<greenride> I thought Rack apps were isolated.
<jhass> anyway, really, ask in #RubyOnRails please
<greenride> Sorry
<greenride> Thanks
Xeago_ has quit [Remote host closed the connection]
krz has joined #ruby
<Nilium> Generally speaking, though, anything with state probably has global state.
<Nilium> Meaning it's going to have to set it at some point in order to read it later (even if it's just caching stuff)
eka has joined #ruby
<jhass> Which if properly namespaced is not an issue
<jhass> we should've been talking about conflicting global state here
<Nilium> Sounds unlikely
<greenride> And, the rack standard doesn't enforce namespacing of a Rack apps environment, right?
<Nilium> Conflicting global state, that is. Kind of sounds unlikely.
<jhass> greenride: tell me how you namespace $LOAD_PATH
<greenride> I didn't…
<greenride> I think that's my problem.
rshetty has quit [Remote host closed the connection]
rshetty has joined #ruby
davasaurous has joined #ruby
arup_r has joined #ruby
Scotteh has quit [Read error: Connection reset by peer]
<Nilium> I do not appreciate my head feeling like it's going to explode
<Nilium> It needs to stop this at once and submit to my will
<Nilium> Preferably by not hurting
patric100e99 has joined #ruby
rshetty has quit [Remote host closed the connection]
rshetty has joined #ruby
Kricir has joined #ruby
davasaurous has quit [Ping timeout: 264 seconds]
aspiers has quit [Read error: No route to host]
patric100e99 has quit [Ping timeout: 260 seconds]
tyll_ has joined #ruby
rshetty has quit [Ping timeout: 244 seconds]
zorak8 has joined #ruby
tier has quit [Remote host closed the connection]
martin_work has joined #ruby
majjoha has joined #ruby
tyll has quit [Ping timeout: 250 seconds]
cleopatra has quit [Remote host closed the connection]
acalewin has quit [Ping timeout: 272 seconds]
Paradox has quit [Ping timeout: 265 seconds]
pdtpatrick has quit [Quit: pdtpatrick]
cleopatra has joined #ruby
freerobby has quit [Quit: Leaving.]
majjoha has quit [Ping timeout: 265 seconds]
wjimenez5271 has joined #ruby
martin_work has quit [Quit: martin_work]
Dramors has joined #ruby
cantonic has quit [Quit: cantonic]
Dramors has left #ruby ["Leaving"]
cantonic has joined #ruby
cantonic has quit [Client Quit]
zorak8 has quit [Read error: Connection reset by peer]
Lewix has joined #ruby
rshetty has joined #ruby
wjimenez_ has joined #ruby
Lewix has quit [Read error: Connection reset by peer]
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
wjimenez5271 has quit [Ping timeout: 255 seconds]
pdtpatrick has joined #ruby
jY has left #ruby ["Linkinus - http://linkinus.com"]
mark06 has left #ruby ["http://pidgin.renatosilva.me - Pidgin++"]
iamjarvo has joined #ruby
wex13r has quit [Read error: Connection reset by peer]
sdwrage has joined #ruby
Kricir has quit [Remote host closed the connection]
wex13r has joined #ruby
wex13r has quit [Client Quit]
rkalfane has joined #ruby
x1337807_ has joined #ruby
x1337807_ has quit [Client Quit]
x1337807x has quit [Ping timeout: 264 seconds]
freerobby has joined #ruby
mikepack has quit [Remote host closed the connection]
mib_mib has joined #ruby
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
acalewin has joined #ruby
Paradox has joined #ruby
jonr22 has quit [Remote host closed the connection]
mahtennek has joined #ruby
greenride has quit [Quit: Leaving.]
mahtennek has quit [Client Quit]
x1337807x has joined #ruby
Cache_Money has joined #ruby
xanderwebs has joined #ruby
x1337807x has quit [Read error: Connection reset by peer]
daxroc_ has quit [Ping timeout: 260 seconds]
dorei has quit []
x1337807x has joined #ruby
Dreamer3 has quit [Ping timeout: 245 seconds]
jdj_dk has quit [Ping timeout: 256 seconds]
cleopatra has quit [Read error: Connection reset by peer]
daxroc_ has joined #ruby
freerobby has quit [Quit: Leaving.]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rshetty has quit [Remote host closed the connection]
gregf has quit [Quit: WeeChat 1.0.1]
x1337807x has quit [Ping timeout: 256 seconds]
disKounted has quit []
x1337807x has joined #ruby
takle has joined #ruby
gregf has joined #ruby
spacemud has quit [Ping timeout: 244 seconds]
jack_rabbit has joined #ruby
spacemud has joined #ruby
takle has quit [Ping timeout: 264 seconds]
sailias has quit [Quit: Leaving.]
mib_mib has quit [Ping timeout: 264 seconds]
leathershibe has joined #ruby
melik has quit [Quit: (null)]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
radic has quit [Disconnected by services]
radic_ has joined #ruby
nkumari has joined #ruby
Tarential has joined #ruby
oo_ has quit [Remote host closed the connection]
cashnguns has quit [Remote host closed the connection]
GreenJello has left #ruby ["(null)"]
adriancb has quit [Ping timeout: 265 seconds]
oo_ has joined #ruby
adriancb has joined #ruby
davasaurous has joined #ruby
davasaur_ has joined #ruby
davasaurous has quit [Remote host closed the connection]
<sevenseacat> Nilium: drugs r good, 'kay.
mistermocha has joined #ruby
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
davasaur_ has quit [Remote host closed the connection]
davasaurous has joined #ruby
majjoha has joined #ruby
jdj_dk has joined #ruby
x1337807x has quit [Ping timeout: 240 seconds]
hatzopoulos has joined #ruby
jottr_ has joined #ruby
braincrash has joined #ruby
majjoha has quit [Ping timeout: 256 seconds]
rshetty has joined #ruby
leathershibe has quit [Quit: leaving]
lkba has quit [Ping timeout: 255 seconds]
rshetty has quit [Read error: Connection reset by peer]
jottr_ has quit [Ping timeout: 258 seconds]
rshetty has joined #ruby
exgf has joined #ruby
leathershibe has joined #ruby
St_Marx has joined #ruby
KC9YDN has quit [Ping timeout: 240 seconds]
lkba has joined #ruby
nkumari has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
arup_r has quit [Quit: Leaving.]
nkumari has joined #ruby
x1337807x has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
KC9YDN has joined #ruby
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
mtakkman has joined #ruby
x1337807_ has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
danjordan has quit [Ping timeout: 255 seconds]
spyderman4g63 has quit [Remote host closed the connection]
arup_r has joined #ruby
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
proteusvacuum has quit [Ping timeout: 264 seconds]
x1337807x has quit [Ping timeout: 245 seconds]
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
arescorpio has quit [Excess Flood]
spyderman4g63 has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
spyderman4g63 has joined #ruby
Snarkz has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
arup_r has quit [Client Quit]
spyderman4g63 has quit [Remote host closed the connection]
mikepack has joined #ruby
dTSCode has joined #ruby
alol__ is now known as alol
adriancb has quit [Remote host closed the connection]
livingstn has quit []
krz has quit [Ping timeout: 244 seconds]
Kricir has joined #ruby
n008f4g_ has quit [Ping timeout: 256 seconds]
fandi_ has quit [Remote host closed the connection]
mikepack has quit [Ping timeout: 245 seconds]
cleopatra has joined #ruby
djbkd_ has quit [Quit: Leaving...]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Kricir has quit [Ping timeout: 250 seconds]
davasaurous has quit [Remote host closed the connection]
x1337807_ has quit [Ping timeout: 258 seconds]
hightower4 has quit [Ping timeout: 272 seconds]
o0oo0o has joined #ruby
oo_ has quit [Remote host closed the connection]
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
x1337807x has joined #ruby
oo_ has joined #ruby
kyb3r_ has joined #ruby
davasaurous has joined #ruby
oo_ has quit [Remote host closed the connection]
bluOxigen has joined #ruby
michaeldeol has joined #ruby
x1337807x has quit [Ping timeout: 255 seconds]
abuzze has joined #ruby
banister has joined #ruby
abuzze_ has joined #ruby
abuzze has quit [Remote host closed the connection]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
parabolize has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
abuzze has joined #ruby
dseitz has joined #ruby
spastorino has quit [Quit: Connection closed for inactivity]
abuzze_ has quit [Ping timeout: 255 seconds]
mas0n1c has joined #ruby
x1337807x has joined #ruby
greenride has joined #ruby
BTRE has quit [Remote host closed the connection]
BTRE has joined #ruby
greenride has quit [Client Quit]
x1337807x has quit [Read error: Connection reset by peer]
x1337807x has joined #ruby
melik has joined #ruby
majjoha has joined #ruby
<shevy> guys
<shevy> I love you all
danguita has joined #ruby
x1337807x has quit [Ping timeout: 255 seconds]
zacts has joined #ruby
josephndenton has joined #ruby
skolman has joined #ruby
hightower4 has joined #ruby
ndrei has joined #ruby
sargas has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iamjarvo has joined #ruby
anarang has joined #ruby
iamjarvo has quit [Ping timeout: 250 seconds]
sumark has quit [Remote host closed the connection]
sumark has joined #ruby
jdj_dk has quit [Ping timeout: 250 seconds]
JokesOnYou77 has joined #ruby
adriancb has joined #ruby
<mas0n1c> your not getting half our hard drive
yfeldblu_ has quit [Remote host closed the connection]
nahtnam has joined #ruby
<nahtnam> Hey! If I want to include a ruby gem in a .rb file, all I have to do is `require 'gem_name'` right?
adriancb has quit [Ping timeout: 265 seconds]
mistermocha has quit [Remote host closed the connection]
<JokesOnYou77> Nahtnam: yes
<JokesOnYou77> You also need to have that gem installed/in you gem file if thats what you're doing, but yeah, that should do it
melik has quit [Read error: Connection reset by peer]
melik has joined #ruby
jenrzzz has joined #ruby
<nahtnam> JokesOnYou77: Ok. I created a new gem, and pushed it to rubygems.org. I then installed the gem. I created a test.rb file to see if it works and for some reason, I get a weird error: https://gist.github.com/nahtnam/9cb2488add4e466a5115
Snarkz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
takle has joined #ruby
nkumari has quit [Remote host closed the connection]
cerberblue has joined #ruby
<sevenseacat> the file you defined in your gem is called 'straight'
<sevenseacat> not 'straight-ruby'
wjimenez_ has quit [Remote host closed the connection]
<nahtnam> sevenseacat: So in order for it to work I have to rename it?
<sevenseacat> or you can just require the right file
<nahtnam> sevenseacat: I cant call it straight because that conflicts with another gem
<nahtnam> Anyways, ill rename it
<nahtnam> thanks
<sevenseacat> you have two options - rename the file or include the right file
<sevenseacat> neither is particularly difficult
<nahtnam> Kk
davasaurous has quit [Remote host closed the connection]
Cache_Money has quit [Quit: Cache_Money]
takle has quit [Ping timeout: 245 seconds]
<nahtnam> sevenseacat: So just rename https://github.com/nahtnam/straight-ruby/blob/master/lib/straight.rb and the tests to straight-ruby.rb?
<sevenseacat> thats not the option i would pick
<nahtnam> s
<nahtnam> sevenseacat: ?
<sevenseacat> you have a file named 'straight'. include that file into your app.
<nahtnam> sevenseacat: I get this error: https://gist.github.com/nahtnam/89f3f97c71a20d2c4e3f
oo_ has joined #ruby
<sevenseacat> because you still cant initialize a module - we talked about this last week
<sevenseacat> learn the difference between a class and a module.
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Abhijit has joined #ruby
JokesOnYou77 has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
x1337807x has joined #ruby
JokesOnYou77 has joined #ruby
<nahtnam> sevenseacat: Im confused. Straight is a class...
takle has joined #ruby
<nahtnam> Ill just rename it...
<sevenseacat> well somewhere you're defining Straight as a module.
kireevco has quit [Quit: Leaving.]
<sevenseacat> it doesnt have to be in that gem.
IrishGringo has quit [Ping timeout: 264 seconds]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
<nahtnam> sevenseacat: Got it. I was accidentally using this: https://github.com/snitko/straight
unmides has joined #ruby
poweratom_ has joined #ruby
yfeldblum has joined #ruby
KostyaChoporov has joined #ruby
kireevco has joined #ruby
<sevenseacat> :)
takle has quit [Ping timeout: 258 seconds]
kireevco has left #ruby [#ruby]
jdj_dk has joined #ruby
KostyaChoporov has quit [Remote host closed the connection]
arya_ching has joined #ruby
arya_ching has quit [Client Quit]
michaeldeol has joined #ruby
clauswit_ has quit [Max SendQ exceeded]
<nahtnam> Whats the difference between ~> and >= ?
<zenspider> >= is obvious
<nahtnam> Yeah
leathershibe has quit [Ping timeout: 256 seconds]
<nahtnam> But ~> isnt
<zenspider> ~> x.y.z is >= x.y.z && < x.(y+1)
<zenspider> for whatever level of precision you specify
<epitron> nahtnam: you might want to pick another name... the other "straight" gem is for doing the same thing that yours is
<zenspider> so ~> 1.3 means >= 1.3 && < 2.0
<nahtnam> epitron: No its not. I already talked to the dev about it.
<zenspider> where 1.3.0 means >= 1.3.0 && < 1.4
<nahtnam> zenspider: So its greater than what is specified but less than the number above it?
<nahtnam> or equal to
<zenspider> straight... gem?
byprdct_ has quit []
<epitron> nahtnam: aren't they both interfaces to the straight-server?
<zenspider> less than the number above it by once place marker
<nahtnam> Kk
<nahtnam> Thanks zenspider
<zenspider> if I said ~> 1.2.3.4 then it would be 1.2.3.4...1.2.4
yfeldblum has quit [Remote host closed the connection]
clauswitt has joined #ruby
KostyaChoporov has joined #ruby
S0da has quit [Remote host closed the connection]
<nahtnam> epitron: So straight-server was built using straight. I built an api wrapper for straight-server so its easily implementable in rails apps
jottr_ has joined #ruby
yfeldblum has joined #ruby
<epitron> ah. maybe you should call it straight-api then
<epitron> or straight-rest-client
<epitron> straight-ruby is pretty confusing
<nahtnam> epitron: Damn, shoulda thought of that earlier...
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<epitron> never too late :)
<nahtnam> epitron: I named it that because of this: https://github.com/coinbase/coinbase-ruby
<nahtnam> Yeah, ill work on a full rename now. :P
<epitron> calling it "-ruby" is usually for cases where the developers have bindings to many langauges
clauswitt has quit [Max SendQ exceeded]
<zenspider> yeah. there's plenty of examples that are <pkg>-<lang>
<nahtnam> epitron: Yeah, I see what you mean.
sargas has quit [Quit: Leaving]
clauswitt has joined #ruby
<epitron> straight-api-ruby might make sense, if you want write more rest clients later :)
<epitron> i think straight-rest-client or straight-client is the least confusing name
<nahtnam> epitron: API sounds neat tho :P
melik has quit [Quit: (null)]
<epitron> yeah... it's just that straight is a ruby library already... which has its own api :)
<nahtnam> epitron: Thanks for input!
jottr_ has quit [Ping timeout: 245 seconds]
CalvinnHobbes has joined #ruby
maletor has joined #ruby
braincrash has quit [Ping timeout: 240 seconds]
Morkel has joined #ruby
<epitron> you're welcome
boombadaroomba has joined #ruby
<nahtnam> Whats the process of deleting a rubygem?
corehook has joined #ruby
psy_ has quit [Remote host closed the connection]
<nahtnam> Yank!
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vieq has quit [Ping timeout: 256 seconds]
boombadaroomba has quit [Ping timeout: 255 seconds]
davedev24_ has quit []
dTSCode has quit [Read error: Connection reset by peer]
spyderman4g63 has joined #ruby
x1337807x has joined #ruby
mas0n1c has quit [Remote host closed the connection]
<CalvinnHobbes> \quit
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
CalvinnHobbes has quit [Quit: leaving]
Kricir has joined #ruby
henesy has quit [Ping timeout: 244 seconds]
spyderman4g63 has quit [Ping timeout: 244 seconds]
iwishiwerearobot has joined #ruby
nuhbye_ has joined #ruby
rshetty_ has joined #ruby
vieq has joined #ruby
nuhbye_ has left #ruby ["Leaving..."]
sinequanon has joined #ruby
krz has joined #ruby
rshetty has quit [Ping timeout: 260 seconds]
iwishiwerearobot has quit [Ping timeout: 260 seconds]
josephndenton has quit [Ping timeout: 250 seconds]
nahtnam has quit [Quit: Page closed]
keen___________0 has joined #ruby
dkb20k has quit [Ping timeout: 240 seconds]
keen____________ has quit [Ping timeout: 245 seconds]
dTSCode has joined #ruby
mikepack has joined #ruby
ptrrr has joined #ruby
poweratom__ has joined #ruby
Photism has quit [Quit: Leaving]
nuhbye has joined #ruby
nuhbye has left #ruby [#ruby]
maletor has quit [Quit: Computer has gone to sleep.]
mikepack has quit [Ping timeout: 260 seconds]
henesy has joined #ruby
dkb20k has joined #ruby
poweratom_ has quit [Ping timeout: 272 seconds]
ChoiKyuSang has quit [Quit: Going offline, see ya! ( www.adiirc.com]
hatzopoulos has quit [Quit: Leaving]
ChoiKyuSang has joined #ruby
sinequanon has quit [Remote host closed the connection]
fandi has joined #ruby
Spami has joined #ruby
nkumari has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
sarkis has quit [Ping timeout: 240 seconds]
nkumari has quit [Ping timeout: 245 seconds]
neoxquick has quit [Read error: Connection reset by peer]
AliRezaTaleghani has joined #ruby
<AliRezaTaleghani> can I load a file it has been changes since last time I had loaded it?
terlar has joined #ruby
renderful has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
jgrevich_ has joined #ruby
jgrevich has quit [Ping timeout: 244 seconds]
jgrevich_ is now known as jgrevich
tagrudev has joined #ruby
leathershibe has joined #ruby
renderful has quit [Ping timeout: 245 seconds]
Ulrike_Rayne is now known as Sylveon
Sylveon is now known as Ulrikr_Rayne
<shevy> AliRezaTaleghani with load() yeah
Ulrikr_Rayne is now known as Ulrike_Rayne
<shevy> unmides is spam-botting
KostyaChoporov has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bMalum has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dkb20k_ has joined #ruby
dopie has joined #ruby
dopie has quit [Client Quit]
jdj_dk has quit [Ping timeout: 264 seconds]
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<AliRezaTaleghani> shevy: I know about load, and implemented a loop which will store current external files md5sum in a hash, and reload the file on next loop if it's md5 has been changed! but I'm looking for a better way to not to handle this by my own :-/ if there is any...
dkb20k has quit [Ping timeout: 250 seconds]
psy_ has joined #ruby
patric100e99 has joined #ruby
eren has joined #ruby
xanderwebs has quit [Quit: Connection closed for inactivity]
<eren> I have a background in Python and Scheme (Racket) and I'm looking at some Ruby code. I've learned that ruby blocks are like anonymous functions (lambda) and they can be passed to other methods
<eren> what's the different use cases of blocks?
sarkis has joined #ruby
apeiros has quit [Remote host closed the connection]
<eren> the interesting one I came across was: somevariable = if foo do .... end elsif .....
apeiros has joined #ruby
<eren> since blocks always return a value, it's possible to use it to pass value to variable
dkb20k_ has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
<epitron> AliRezaTaleghani: maybe rails' reloader is reusable?
poweratom___ has joined #ruby
dkb20k has joined #ruby
oo_ has joined #ruby
patric100e99 has quit [Ping timeout: 265 seconds]
x1337807x has joined #ruby
wjimenez5271 has joined #ruby
thomas has joined #ruby
<thomas> hi
<eren> hi thomas
sarkis has quit [Ping timeout: 264 seconds]
<thomas> hello :)
poweratom__ has quit [Ping timeout: 265 seconds]
apeiros has quit [Ping timeout: 250 seconds]
<eren> thomas: is it intelligent enough to check the cloak of staffers? :)
jenrzzz has joined #ruby
<thomas> perhaps
<eren> he just spammed me the moment I joined this channel
<eren> oh no, the moment I wrote my first message
hanmac1 has joined #ruby
ptrrr has quit [Quit: ptrrr]
corehook has quit [Remote host closed the connection]
unmides has quit [K-Lined]
tobago has joined #ruby
<eren> thomas: thanks
corehook has joined #ruby
kamilc__ has joined #ruby
bal has joined #ruby
corehook has quit [Remote host closed the connection]
corehook has joined #ruby
Snowstormer has quit [Ping timeout: 265 seconds]
corehook has quit [Remote host closed the connection]
timonv^ has joined #ruby
poweratom____ has joined #ruby
<shevy> AliRezaTaleghani I think your only way is to use load() really
<shevy> or eval()
<shevy> hahaha
CustosLimen has joined #ruby
dkb20k_ has joined #ruby
<shevy> eren blocks are like an additional argument to all methods in ruby
poweratom___ has quit [Ping timeout: 260 seconds]
zacts has quit [Ping timeout: 245 seconds]
proteusvacuum has joined #ruby
timonv_ has quit [Ping timeout: 255 seconds]
<shevy> and they are optional
<shevy> lambda is different
zacts has joined #ruby
poweratom_____ has joined #ruby
<shevy> x = lambda {|arg| p arg } <-- here you MUST provide the argument or else it will error by default
wjimenez5271 has quit [Remote host closed the connection]
<shevy> x[] # ArgumentError: wrong number of arguments (0 for 1)
dkb20k has quit [Ping timeout: 250 seconds]
josephndenton has joined #ruby
<shevy> >> [1,2,3].each {}
<eval-in__> shevy => [1, 2, 3] (https://eval.in/219387)
charliesome has quit [Quit: zzz]
<shevy> nope
<shevy> I am wrong
poweratom____ has quit [Ping timeout: 245 seconds]
<shevy> >> x = lambda { p 'hi' }; x[]
<eval-in__> shevy => "hi" ... (https://eval.in/219388)
<shevy> :)
<shevy> I thought that was the difference between proc and lambda
oleo has quit [Quit: Verlassend]
proteusvacuum has quit [Ping timeout: 260 seconds]
<godd2> difference between proc and lambda is how they treat return
<godd2> that is, whether when called, if there is an explicit return, if they will return as if in the scope from which they were called.
josephndenton has quit [Ping timeout: 265 seconds]
KostyaChoporov has joined #ruby
<shevy> godd2 is the man
<shevy> hmm
<shevy> is Proc.new the same as proc ?
Kricir has quit [Remote host closed the connection]
<zenspider> I really hate all these distinctions
<godd2> shevy yes
<zenspider> we really should only have one behavior across all of them
<shevy> yeah
DrewDr1248 has joined #ruby
<godd2> well with the difference, lambda are true "closures"
otherj has joined #ruby
fridYay has joined #ruby
<shevy> and we also have -> syntax \o/
<shevy> I mean the ->()
<shevy> and lambda works as well I guess?
fridYay is now known as shortCircuit__
codecop has joined #ruby
<godd2> yes. stabby lambda was added in 1.9 I believe
KostyaChoporov has quit [Quit: Textual IRC Client: www.textualapp.com]
KostyaChoporov has joined #ruby
<shevy> I have noticed one thing in my ruby code - I tend to want to make it as flexible as possible
<godd2> before that it was always just lambda {|args|}
<shevy> stabby
* godd2 stabs shevy with ->
rpag has quit [Ping timeout: 258 seconds]
<shevy> mudering tokens
<shevy> erm
<shevy> *murdering tokens
rippa has joined #ruby
<shevy> it's strange that I thought the difference between lambda and proc was in regards to their arguments
<shevy> I could swear someone else once explained it that way :\
<shevy> and filled me with incorrect information!
<zenspider> there's some of that too
tokik has quit [Ping timeout: 264 seconds]
skolman has quit [Remote host closed the connection]
tokik has joined #ruby
<zenspider> proc { |a| }.call vs lambda { |a| errors }.call
<godd2> If you want to sound fancy shevy, that's called "arity checking"
jgrevich has quit [Quit: jgrevich]
gauke has joined #ruby
JokesOnYou77 has quit [Quit: Ex-Chat]
<leathershibe> so whats the next big thing after ruby? where have all the biggest ruby/rails contributors moved to now? nodejs?
<sevenseacat> leathershibe: to rails.
<zenspider> that's a loaded question full of biases, isn't it?
<leathershibe> no?
<shevy> leathershibe dunno, I could not tell you who contributes to rails; in regards to ruby, I think most core/stdlib contributors are japanese and they use fancy characters to communicate with one another
jottr_ has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> matz seems to be busy with mruby
<leathershibe> interesting
<godd2> leathershibe you could check out opal. that might take off
<shevy> I don't really think there are many "big backers" of ruby altogether really
<zenspider> big backers?
andrewlio has joined #ruby
<godd2> but if you're in the stock market of programming language popularity, then perhaps node.js, maybe some clojure, or some of those other mvw things for javascript like angular and ember and whatever
<shevy> leathershibe you could follow the bug and feature tracker for a while - http://bugs.ruby-lang.org/projects/ruby-trunk
<shevy> yeah, like SUN or oracle!
timonv^ has quit [Ping timeout: 260 seconds]
andikr has joined #ruby
<leathershibe> I guess my question was more aimed at the eco system of ruby/rails in general. I see quite a few gems going stale, although new ones pop up too. But big names like rbates and such have been leaving too, at least I think
<zenspider> so like salesforce/heroku? rackspace? at&t?
<leathershibe> and rails popularity seems to be on a downards trend so figured I'd just ask here
<leathershibe> not trying to troll/start a flamewar :P
<sevenseacat> seems based on what?
<zenspider> popularity...
<sevenseacat> thats a really vague term
terlar has quit [Quit: WeeChat 1.0.1]
karunamon has quit [Ping timeout: 264 seconds]
<shevy> leathershibe see the thing is - there is rails and then there is outside rails
<godd2> leathershibe if you are C-savvy you could help make Ruby thread-safe
<shevy> leathershibe and gems become inactive all the time, people quite or work less with ruby so the old ones remain, but new folks come as well
<leathershibe> godd2: I don't think threading is the best way to do concurrency though
<leathershibe> that's true
jottr_ has quit [Ping timeout: 245 seconds]
aganov has joined #ruby
<shevy> *quit, not quite... somehow I need to wake up properly...
karunamon has joined #ruby
timonv_ has joined #ruby
ghormoon has joined #ruby
<shevy> time for a fish duel!
* shevy slaps leathershibe with a large trout
<godd2> leathershibe you could code a fish_duel_bot so that shevy doesn't have to type out what kind of fish he is attacking with every time
<leathershibe> haha
<shevy> leathershibe you have been using another language ?
timonv_ has quit [Remote host closed the connection]
fabrice31 has joined #ruby
<leathershibe> I've toyed with Go for concurrency, I really wanna do more backend stuff with it cause it's fast and concurrency is easy. But all our stuff is in Ruby and it'd be too much work :p
<shevy> yay!
<leathershibe> I've noticed a lot of the web crowd has moved to nodejs/client side js frameworks
<shevy> ruby has entered the COBOL era ^^^
<shevy> well
<sevenseacat> lol
<shevy> javascript is everywhere
<leathershibe> haha, I interviewed someone with cobol on their resume the other day actually...
<shevy> HOW OLD WAS HE
<sevenseacat> I'm guessing 'a lot of the web crowd' translates to 'the people i follow on twitter'
<leathershibe> around 30, which was quite shocking
<shevy> poor guy
<godd2> Grace "Matz" Hopper will be a name known by many
elcheckito has quit [Quit: WeeChat 1.0.1]
<leathershibe> haha :p
<shevy> who is grace chopper
<godd2> She invented COBOL
<shevy> ah now I remember the name
<shevy> some military person right?
<godd2> Navy, yes
jusmyth has joined #ruby
<sevenseacat> rear admiral grace hopper iirc
<godd2> She has her own wikipedia page if you want to know more
jusmyth has left #ruby [#ruby]
<shevy> I think I saw the name there once, when I look at COBOL syntax
<shevy> and mixed it up with forth
bogeyd6 has quit [Read error: Connection reset by peer]
<leathershibe> sevenseacat: more like google trends, job posts by startups/HN who's hiring...I don't use twitter much. also quality/activity of the eco systems of the langs/frameworks
<shevy> there was a diehard fan of forth on #gobolinux years ago - I have never seen anyone super enthusiastic over COBOL though
<sevenseacat> yeah there's your problem... job posts by startups and HN
<sevenseacat> they switch the new cool thing every five seconds
<sevenseacat> while the rest of us keep using what works
<shevy> that is a COBOL using cat
<godd2> shevy theres a shop in my town which maintains a POS system software for pawn shops that's written in COBOL
bMalum has quit [Quit: bMalum]
timonv^ has joined #ruby
charliesome has joined #ruby
<leathershibe> sevenseacat: for me they are the jobs with the highest pay/not fucking boring ratio so I tend to follow suit :P
<leathershibe> but you're not wrong :D
<shortCircuit__> I fed up my ubuntu yesterday, I said sudo apt-get install ubuntu-dektop-mir, created a folder called libgdm.conf.d and a file saying type=unity. and sudo lightdm restart. and boom, I can't get to the tty nor the GUI
sarkis has joined #ruby
nonks has joined #ruby
bogeyd6 has joined #ruby
<shevy> haha
<shevy> welcome to UNITY!
<shortCircuit__> I uninstalled the mir from recovery , but it was the same. All my downloads are gone!!!
<shevy> YES
spyderman4g63 has joined #ruby
<leathershibe> XFree86 is still the best
<shortCircuit__> I blame that Thomas Vob for this. I saw his interview on Unity next. Its really "out of the box". :'(
<shevy> well
<shevy> my co-worker from india actually used unity to great effect
<shortCircuit__> how
<shevy> I guess if you are more of a casual user, it might be that unity isn't that awful
<shevy> I dunno, he was just clicking on things like an idiot
<shortCircuit__> :D
<shevy> rather than use tabs, he simply clicked on gnome-terminal button to spawn new terminals
<shevy> even the lead lab guy, who is an old man, did not know that gnome-terminal had tabs
elcheckito has joined #ruby
<leathershibe> I bet they'll remove tabs in the next version of gnome terminal though
<shevy> he had a funky button though where he could quickly switch between windows and linux
<sevenseacat> they won't.
<leathershibe> it's a joke.
<shevy> IT COULD BECOME REAL
pdtpatrick has quit [Quit: pdtpatrick]
<sevenseacat> of course, i wouldnt put it past them
<shortCircuit__> Might be X-Windows user, the way windows has re-defined the UI, They should probably write a book, "How to Click"
<shortCircuit__> I am thinking OpenSUSE or Elementary OS, what would be a good choice!! A little GUI, without Unity
sarkis has quit [Ping timeout: 245 seconds]
bMalum has joined #ruby
bMalum has quit [Client Quit]
rpag has joined #ruby
bascht has quit [Ping timeout: 255 seconds]
<riceandbeans> I just use openbox with tint2
spyderman4g63 has quit [Ping timeout: 244 seconds]
<riceandbeans> no desktop environments for me
<riceandbeans> that shit is useless
<riceandbeans> gets in the way
<riceandbeans> all that wasted CPU and RAM
rshetty_ has quit [Remote host closed the connection]
<zenspider> hahaha
<shortCircuit__> But the Pear OS 8 looks so cool
<riceandbeans> DragonFlyBSD+openbox+tint2, all I need
terlar has joined #ruby
<riceandbeans> Pear is just a stupid skin on top of Ubuntu
<riceandbeans> with a bunch of broken french
<shortCircuit__> :P
Joufflu_ has quit [Quit: Leaving]
JohnBat26 has joined #ruby
<riceandbeans> I will give you I laughed pretty good the first time I saw it
<riceandbeans> make something that looks damn near identical to Apple and call it Pear
<riceandbeans> it lost the novelty after about 5 minutes
rshetty has joined #ruby
qba73 has joined #ruby
<shortCircuit__> Can I install openbox+tint2 on a amd machine. I have a legendary machine. It cam e with windows pre-installed. I wanted to use Fedora 20 before Ubuntu, but I guess it had driver issues at boot up. Whereas it ran smooth on Intel i3
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<godd2> "legendary machine" "Windows preinstalled" hmm
<shortCircuit__> Legendary in the sense its an amd.
<shortCircuit__> amd a8
<riceandbeans> hmm, no more pear, the lead developer gave it up completely
<shortCircuit__> Its comming as Celemene OS 10.8. I read.
<godd2> and nothing of value was lost that day
corehook has joined #ruby
<rpag> shevy, def λ(&b); lambda(&b); end :D
<godd2> jk I have no opinion of Pear OS
<godd2> rpag You can just alias it
<shortCircuit__> riceandbeans :http://openbox.org/wiki/Openbox:Screenshots this is what you were saying?
<rpag> godd2, what's the diff?
<zenspider> ooooor we could talk about ruby instead of boring OS zealotry
<godd2> rpag you're takes an extra spot on stack, for one
bascht has joined #ruby
rshetty has quit [Ping timeout: 245 seconds]
<leathershibe> I find that few people really care about distros and stuff nowadays compared to 10 years ago
<rpag> godd2, it sounds too expensive to define methods in ruby! :D
amundj has joined #ruby
<shortCircuit__> umm, tell me whats things to downloads and any tutorial to integrate those stuff
<zenspider> godd2: a single call just to create the proc... doesn't make it any deeper
nfk has joined #ruby
clauswitt has joined #ruby
<riceandbeans> I don't use a Linux anymore
<shortCircuit__> MAC?
<riceandbeans> BSD
<shortCircuit__> oh
<riceandbeans> DragonFlyBSD
timonv_ has joined #ruby
<leathershibe> whats' good about it? I remember them forking to fix smp and not much since
<riceandbeans> really clean simplified code, really strong community, really good performance, supports almost every single port that FreeBSD has, best (imo) filesystem, would be a few highlight points
<otherj> why do people always capitalize mac? komisch
<godd2> zenspider seems like it would, but if I'm wrong, then okay
<leathershibe> hmm ok that's cool
sar_s has joined #ruby
<zenspider> godd2: it'll call, return a lambda, and move on
corehook has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<riceandbeans> that's an old version, but yeah
<godd2> zenspider but wont the block that's passed wait until whatever is finished is finished?
corehook has joined #ruby
jdj_dk has joined #ruby
corehook has quit [Remote host closed the connection]
klaut has joined #ruby
<zenspider> godd2: the &b means the block passed is captured and then passed to lambda as-is. it isn't executed
<zenspider> no yield, no call
<shortCircuit__> Do you have any video links that shows the correct way to do it from scratch?
<godd2> ah ok good to know, thank you
timonv^ has quit [Ping timeout: 260 seconds]
clauswitt has quit [Client Quit]
<zenspider> godd2: n/p
<zenspider> aliasing would work the same tho
<hanmac1> shevy: http://xkcd.com/1445/
livathinos has joined #ruby
bayed has joined #ruby
<godd2> second order optimization problems
TomyWork has joined #ruby
<riceandbeans> shortCircuit__: you want me to show you how to set up DragonFlyBSD with openbox?
Xeago has joined #ruby
<shevy> rpag I can not even read that def
<rpag> shevy, it appears as '?' ?
<rpag> or a blackbox?
Xeago_ has joined #ruby
<shevy> no
<shevy> λ
<shortCircuit__> yes, I mean if its possible, I was looking at a video, It looks very pro-ish.. I am not very experienced, but I like screwing up with thinhs.
<godd2> shevy it was the greek unicode character for lambda
<shevy> it appears as a I with an accent and a >> next to it
rshetty has joined #ruby
<shevy> aha
RitterJack has joined #ruby
<shevy> looks totally not that way here
<shevy> :>
rshetty has quit [Read error: Connection reset by peer]
<rpag> its something i picked up from emacs, even if i write 'lambda' in plain text that character is swapped in its place
<zenspider> hah.
<riceandbeans> shortCircuit__: the install is pretty straightforward
rshetty has joined #ruby
<zenspider> rpag: you can turn that off you know
<godd2> not to imply that Greek unicode is different from normal unicode
<rpag> zenspider, i like it :))
<shevy> greek unicode?
<zenspider> keeps me from lining up my lisp sometimes
<shortCircuit__> but then the setup for the internet and repositories video and graphics drivers
sar_s has quit [Ping timeout: 260 seconds]
jdj_dk_ has joined #ruby
jdj_dk has quit [Ping timeout: 264 seconds]
<riceandbeans> shortCircuit__: after install, log in as root, pkg update && pkg install openbox tint2
<riceandbeans> shortCircuit__: pkg upgrade
<zenspider> can't you two get a room?
Xeago has quit [Ping timeout: 250 seconds]
<riceandbeans> actually I forgot/
<riceandbeans> you'll want xauth and xinit as well as the xserver
tesuji has joined #ruby
majjoha has quit [Ping timeout: 250 seconds]
<rpag> riceandbeans, #dragonflybsd or priv msg
<riceandbeans> then log in as your user, ee ~/xinitrc, type in openbox-session, save it, exit, startx. you're done
<shortCircuit__> :ok
rshetty has quit [Ping timeout: 265 seconds]
leathershibe has quit [Ping timeout: 265 seconds]
<rpag> that's the most ruby thing i seen you say all day
<shortCircuit__> :P
<shortCircuit__> #dragonflybsd is a room with 4 users including me. where's the community!! :)
squar1sm has joined #ruby
<rpag> well it's a lesser known fork :)
Guest21406 is now known as madhatter
Hobogrammer has quit [Ping timeout: 256 seconds]
rshetty has joined #ruby
rdark has joined #ruby
madhatter is now known as Guest77369
<shortCircuit__> I guess, I am trying to do something terrible today when I get home. But who cares, I have nothing to loose
<shortCircuit__> except sleep
anarang has quit [Ping timeout: 250 seconds]
corehook has joined #ruby
apeiros has joined #ruby
qba73 has quit []
leathershibe has joined #ruby
otherj has quit [Quit: .]
KostyaChoporov has quit [Ping timeout: 256 seconds]
noop has joined #ruby
<zenspider> and proper grammar
<sevenseacat> lol
Wolland has quit []
<zenspider> yawn havoc and let loose the dogs of sleep
<shortCircuit__> grammar is my :weakest => link.
<shortCircuit__> sevenseacat , I have seen you somewhere.
<sevenseacat> <_<
Bakambu has joined #ruby
<Bakambu> Hi, What is a good server side language these days for maintaining a database and sending secure messages to it?
clauswitt has joined #ruby
danjordan has joined #ruby
timonv_ has quit [Ping timeout: 255 seconds]
sk87 has joined #ruby
clauswitt has quit [Max SendQ exceeded]
<rpag> Bakambu, I think the encrypted part depends on the database
anarang has joined #ruby
<rpag> what database are you using?
clauswitt has joined #ruby
<shortCircuit__> riceandbeans, pkg install xauth && pkg install xinit && pkg install xserver && pkg install xorg ?
goganchic has joined #ruby
DarkCthulhu has quit [Ping timeout: 264 seconds]
KostyaChoporov has joined #ruby
michael_mbp has quit [Excess Flood]
clauswitt has quit [Max SendQ exceeded]
<riceandbeans> shortCircuit__: you can do it all in one fel swoop
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Kabaka has quit [Ping timeout: 245 seconds]
kamilc__ has quit [Quit: Leaving...]
<riceandbeans> shortCircuit__: actually, s/xserver/xorg
AFKGeek has joined #ruby
clauswitt has joined #ruby
<riceandbeans> it's been a while since I had to install
<riceandbeans> plus I have two kids jumping on me
<shortCircuit__> :D
squar1sm has quit [Ping timeout: 250 seconds]
Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #ruby
sk87 has joined #ruby
Sthebig has quit [Ping timeout: 240 seconds]
clauswitt has quit [Max SendQ exceeded]
michael_mbp has joined #ruby
timonv_ has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
agjacome has joined #ruby
clauswitt has joined #ruby
Sthebig has joined #ruby
clauswitt has quit [Max SendQ exceeded]
luriv has joined #ruby
patric100e99 has joined #ruby
clauswitt has joined #ruby
timonv^ has joined #ruby
lolmaus has joined #ruby
majjoha has joined #ruby
chthon has joined #ruby
timonv_ has quit [Ping timeout: 244 seconds]
Sthebig has quit [Ping timeout: 244 seconds]
patric100e99 has quit [Ping timeout: 245 seconds]
<shortCircuit__> doing sudo dd if dfly-x86*.img of=/dev/sdb should make the usb drive (sdb) bootable !!
<sevenseacat> what can possibly go wrong
timonv^ has quit [Remote host closed the connection]
josephndenton has joined #ruby
jack_rabbit has quit [Ping timeout: 260 seconds]
ghr has joined #ruby
rbrs has joined #ruby
<pontiki> hi
<rpag> hello
takle has joined #ruby
elaptics`away is now known as elaptics
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
Sthebig has joined #ruby
sevenseacat has quit [Quit: Leaving.]
Spami has quit [Quit: This computer has gone to sleep]
josephndenton has quit [Ping timeout: 245 seconds]
alex88 has joined #ruby
takle has quit [Ping timeout: 255 seconds]
timonv_ has joined #ruby
hamakn has quit [Ping timeout: 258 seconds]
sar_s has joined #ruby
Sthebig has quit [Ping timeout: 240 seconds]
clauswit_ has joined #ruby
clauswitt has quit [Ping timeout: 250 seconds]
AFKGeek has quit [Quit: Fades into the shadows]
snovity has joined #ruby
dumdedum has joined #ruby
sar_s has quit [Ping timeout: 256 seconds]
iwishiwerearobot has joined #ruby
RitterJack has quit [Ping timeout: 255 seconds]
<shortCircuit__> sevenseacat, with me? a LOT.
takle has joined #ruby
roolo has joined #ruby
danguita has quit [Ping timeout: 250 seconds]
otherj has joined #ruby
yfeldblum has quit [Remote host closed the connection]
TPBallbag has joined #ruby
dangerousdave has joined #ruby
<rpag> ;(
takle has quit [Remote host closed the connection]
chishiki has quit [Quit: WeeChat 1.0.1]
chishiki has joined #ruby
<shortCircuit__> it is sad. I am so frustrated with my life. Its like why always me!!
<rpag> coding can help
mikepack has joined #ruby
takle has joined #ruby
corehook has quit [Remote host closed the connection]
crazydiamond has joined #ruby
otherj has quit [Quit: .]
timonv_ has quit [Ping timeout: 255 seconds]
thsig has joined #ruby
corehook has joined #ruby
Sthebig has joined #ruby
<shortCircuit__> :P
ikaros has joined #ruby
anaeem1 has joined #ruby
<rpag> i'm serious :)
jottr_ has joined #ruby
mikepack has quit [Ping timeout: 265 seconds]
RitterJack has joined #ruby
govg has quit [Quit: leaving]
anaeem1 has quit [Remote host closed the connection]
<shortCircuit__> I am doing rails and nodejs now. I find these OS related codes too difficult , but at the same time, I have a dream of building an OS that can scale according to the users tastes.
hamakn has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
coderhs has joined #ruby
danguita has joined #ruby
coderhs has quit [Read error: Connection reset by peer]
Sthebig has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
timonv_ has joined #ruby
jottr_ has quit [Ping timeout: 258 seconds]
elcheckito has quit [Ping timeout: 265 seconds]
bigkevmcd has joined #ruby
jenrzzz has joined #ruby
aspiers has joined #ruby
rodfersou has joined #ruby
reinaldob has joined #ruby
zybi1 has quit [Remote host closed the connection]
nonks has quit [Ping timeout: 250 seconds]
Sthebig has joined #ruby
AFKGeek has joined #ruby
shevy has quit [Ping timeout: 245 seconds]
zarubin has quit [Remote host closed the connection]
<rpag> the world has enough OS's if you ask me :P
<rpag> i use fedora, and just because i don't have to spend a lifetime configuring it
Joufflu has joined #ruby
marr has joined #ruby
<zenspider> rpag: are they still going?
Sthebig has quit [Ping timeout: 240 seconds]
<rpag> fedora? yup, scheduled to release fedora 21 soon
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
<zenspider> I meant those two going on and on and on and on about OSes
<rpag> oh
<rpag> hehe
<rpag> not as much :)
<dTSCode> i use manjaro
<dTSCode> love it
<rpag> i'm happy to use whatever, as long as i can play with open source languages like ruby
Dude007 has joined #ruby
<zenspider> OSes have to be the ultimate form of mentarbation
<rpag> that rules out windows, and not much else
Dude007 has quit [Remote host closed the connection]
<rpag> zenspider, yes i agree, when i was 15 or 16 i enjoyed experimenting and configuring, but not anymore, not enough time/motivation to bother
hamakn has quit [Read error: Connection reset by peer]
mengu has joined #ruby
hamakn has joined #ruby
sarkis has joined #ruby
spyderman4g63 has joined #ruby
<rpag> experimenting with new and sometimes unheard of languages is still fun though
nrsk has joined #ruby
<rpag> i'm playing with crystal, nimrod, & rust atm
<zenspider> haven't heard of the first two
<rpag> i like nimrod the most
<zenspider> I'm finishing up my homework in racket
nonks has joined #ruby
lkba has quit [Ping timeout: 255 seconds]
rodfersou has quit [Quit: leaving]
rodfersou has joined #ruby
<rpag> racket looks cool, if you're curious: http://www.crystal-lang.org (ruby-like) & http://www.nimrod-lang.org
<zenspider> looks kinda like a mix of ML and python
sarkis has quit [Ping timeout: 245 seconds]
elcheckito has joined #ruby
spyderman4g63 has quit [Ping timeout: 244 seconds]
mengu has quit [Remote host closed the connection]
rbrs has quit [Ping timeout: 244 seconds]
Pumukel has joined #ruby
yfeldblu_ has joined #ruby
mityaz has joined #ruby
<zenspider> crystal looks interesting
corehook has quit [Remote host closed the connection]
leafybasil has quit [Remote host closed the connection]
<apeiros> I remember tasser being quite happy with nimrod too
lkba has joined #ruby
elcheckito has quit [Ping timeout: 250 seconds]
corehook has joined #ruby
yfeldblu_ has quit [Ping timeout: 255 seconds]
skolman_ has joined #ruby
anarang has quit [Ping timeout: 258 seconds]
mtakkman has quit [Remote host closed the connection]
boombadaroomba has joined #ruby
duncannz has quit [Ping timeout: 256 seconds]
workmad3 has joined #ruby
corehook has quit [Ping timeout: 258 seconds]
last_staff has joined #ruby
<leathershibe> anyone played with Julia?
<leathershibe> I wanna try Rust out, keep wondering if it will become popular
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
goganchic has quit []
skolman_ has quit [Ping timeout: 272 seconds]
mikecmpbll has joined #ruby
boombadaroomba has quit [Ping timeout: 272 seconds]
jaxxstorm has quit [Quit: ZNC - http://znc.in]
majjoha has quit [Ping timeout: 258 seconds]
<rpag> it's quite popular already i think
<rpag> at least, it has mozilla behind them
<Bakambu> rpag: I use SQL?
elcheckito has joined #ruby
Bakambu has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<rpag> Bakambu, Postgres supports SSL connections at least, i'd guess MySQL does too, so as long as you find a ruby client that can communicate over SSL, ruby should be fine as a choice :)
jaxxstorm has joined #ruby
jdj_dk_ has quit [Remote host closed the connection]
TPBallbag has quit [Changing host]
TPBallbag has joined #ruby
rbrs has joined #ruby
Joufflu has quit [Read error: Connection reset by peer]
ephemerian has joined #ruby
<shortCircuit__> nom nom
tyll_ is now known as tyll
timonv^ has joined #ruby
corehook has joined #ruby
mikepack has joined #ruby
ephemerian has quit [Client Quit]
St_Marx has quit [Ping timeout: 250 seconds]
timonv_ has quit [Ping timeout: 265 seconds]
Xeago_ has quit [Remote host closed the connection]
tokik has quit [Ping timeout: 244 seconds]
mikepack has quit [Ping timeout: 245 seconds]
banister has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
terlar has quit [Ping timeout: 244 seconds]
tkuchiki has quit [Remote host closed the connection]
majjoha has joined #ruby
squar1sm has joined #ruby
jottr_ has joined #ruby
tkuchiki has joined #ruby
wigirc has joined #ruby
Dude007 has joined #ruby
squar1sm has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Ping timeout: 255 seconds]
klaut has quit [Remote host closed the connection]
terlar has joined #ruby
Dreamer3 has joined #ruby
mtakkman has joined #ruby
siwica1 has joined #ruby
siwica has quit [Ping timeout: 255 seconds]
yfeldblum has joined #ruby
takle has quit [Read error: Connection reset by peer]
Takle_ has joined #ruby
Xeago has joined #ruby
Takle_ has quit [Remote host closed the connection]
timonv^ has quit [Ping timeout: 264 seconds]
ldnunes has joined #ruby
timonv_ has joined #ruby
kirun has joined #ruby
mengu has joined #ruby
weemsledeux has joined #ruby
rshetty_ has joined #ruby
majjoha has quit [Ping timeout: 244 seconds]
yfeldblum has quit [Ping timeout: 258 seconds]
Xeago_ has joined #ruby
kedare has joined #ruby
weemsledeux has quit [Client Quit]
bMalum has joined #ruby
josephndenton has joined #ruby
rshetty has quit [Ping timeout: 272 seconds]
timonv_ has quit [Read error: Connection reset by peer]
Xeago_ has quit [Remote host closed the connection]
bMalum has quit [Client Quit]
Xeago has quit [Ping timeout: 258 seconds]
DarkCthulhu has joined #ruby
DarkCthulhu is now known as Guest98966
weemsledeux has joined #ruby
weemsledeux has joined #ruby
sk87 has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
josephndenton has quit [Ping timeout: 255 seconds]
TPBallbag has quit [Remote host closed the connection]
TPBallbag has joined #ruby
timonv_ has joined #ruby
takle has joined #ruby
TPBallbag is now known as Guest93060
Guest98966 has quit [Ping timeout: 240 seconds]
jds has joined #ruby
timonv_ has quit [Client Quit]
Fire-Dragon-DoL has joined #ruby
fsapo has joined #ruby
jleishman has joined #ruby
timonv_ has joined #ruby
Timgauthier has joined #ruby
red_horned_rihno has joined #ruby
majjoha has joined #ruby
takle has quit [Read error: Connection reset by peer]
Takle_ has joined #ruby
Snowstormer has joined #ruby
Snowstormer is now known as Guest14428
codearms has joined #ruby
Guest93060 is now known as TPBallbag
TPBallbag has quit [Changing host]
TPBallbag has joined #ruby
clauswit_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nonks has quit [Ping timeout: 250 seconds]
fabrice31 has quit [Remote host closed the connection]
Guest14428 has quit [Changing host]
Guest14428 has joined #ruby
sevenseacat has joined #ruby
ndrei has quit [Ping timeout: 258 seconds]
Guest14428 is now known as Snowstormer
oo_ has quit [Remote host closed the connection]
codearms has left #ruby [#ruby]
red_horned_rihno has quit [Ping timeout: 265 seconds]
red_horned_rihno has joined #ruby
Timgauthier has quit [Quit: Textual IRC Client: www.textualapp.com]
rbrs has quit [Quit: Leaving]
Timgauthier has joined #ruby
n008f4g_ has joined #ruby
TPBallbag has left #ruby [#ruby]
Kabaka has joined #ruby
ndrei has joined #ruby
terlar has quit [Quit: WeeChat 1.0.1]
terlar has joined #ruby
fsapo has quit [Remote host closed the connection]
TPBallbag has joined #ruby
clauswitt has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
ndrei has joined #ruby
red_horned_rihno has quit [Quit: Leaving]
clauswitt has quit [Client Quit]
red_horned_rihno has joined #ruby
mikepack has joined #ruby
fandi has quit [Remote host closed the connection]
fabrice31 has joined #ruby
<godd2> oh wow, pry gives tab completion. who knew
o0oo0o has quit [Remote host closed the connection]
o0oo0o has joined #ruby
Morkel_ has joined #ruby
Morkel has quit [Ping timeout: 256 seconds]
Morkel_ is now known as Morkel
mikepack has quit [Ping timeout: 255 seconds]
red_horned_rihno has quit [Read error: Connection reset by peer]
nrsk has joined #ruby
red_horned_rihno has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rshetty_ has quit [Ping timeout: 244 seconds]
red_horned_rihno has quit [Read error: Connection reset by peer]
sarkis has joined #ruby
twistedpixels is now known as zz_twistedpixels
ndrei has quit [Ping timeout: 258 seconds]
dangerousdave has joined #ruby
spyderman4g63 has joined #ruby
<workmad3> godd2: many, many people? :P
<shortCircuit__> yeeeaa!! I have downloaded 5 OS'es till now.
ndrei has joined #ruby
<godd2> workmad3 okay well now it's many, many people + 1
<workmad3> godd2: :D
luksaur has joined #ruby
AndChat| has joined #ruby
sarkis has quit [Ping timeout: 264 seconds]
jleishman has quit [Quit: Be back later ...]
spyderman4g63 has quit [Ping timeout: 264 seconds]
robustus is now known as robustus|Off
lkba has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby
rpag has quit [Ping timeout: 245 seconds]
banister has joined #ruby
clauswitt has joined #ruby
Takle_ has quit [Remote host closed the connection]
jusmyth has joined #ruby
jusmyth has left #ruby [#ruby]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robustus|Off is now known as robustus
yfeldblum has quit [Ping timeout: 264 seconds]
rshetty has joined #ruby
<leathershibe> we should make a bot that posts useful stuff like this to twitter, like pry having tab completetion, I'm sure there are others who do not know
<leathershibe> The world must know!
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drawingthesun has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
pancake_m has joined #ruby
sk87 has joined #ruby
shevy has joined #ruby
justinmcp has joined #ruby
nkumari has joined #ruby
TinkerTyper has quit [Ping timeout: 272 seconds]
leathershibe has quit [Quit: leaving]
IrishGringo has joined #ruby
workmad3 is now known as wm3|busy
nkumari has quit [Ping timeout: 244 seconds]
<shevy> oh man
<shevy> rebooting
<shevy> the scariest task alive on a linux system I fiddled with
jleishman has joined #ruby
olivier_bK has joined #ruby
bMalum has joined #ruby
TinkerTyper has joined #ruby
txdv_ has quit [Ping timeout: 272 seconds]
wigirc has quit [Remote host closed the connection]
nagaraj has joined #ruby
janmuffino has joined #ruby
larissa has joined #ruby
txdv has joined #ruby
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<nagaraj> hi
nonks has joined #ruby
hiall has joined #ruby
chthon has quit [Ping timeout: 244 seconds]
phutchins has joined #ruby
Dude007 has quit [Read error: Connection reset by peer]
Dude007 has joined #ruby
AFKGeek has quit [Quit: Fades into the shadows]
<hanmac1> shevy happens once before that after i did reboot, i grub didnt find my partitions again ... (currently it does have problems with Raid + LVM) ... or somehow my network is buggy, that it does work, but after i reboot it doesnt work anymore ...
<hanmac1> so reboot can be dangerous ;P
<hanmac1> (or somehow the graphic driver does fuck up again)
jottr_ has quit [Ping timeout: 255 seconds]
VanillaGoat_ has joined #ruby
rotcetor_ has joined #ruby
<rotcetor_> is facter a puppet only thing?
bMalum has quit [Quit: bMalum]
<rotcetor_> i have a snipet of code that a coworker wrote.. im trying to get it to run stand alone without having to bring puppet into the picture. "facter.add(:function) do..."
anarang has joined #ruby
corehook has quit [Remote host closed the connection]
zacts has quit [Ping timeout: 245 seconds]
kotk has quit [Quit: Leaving...]
nonks has quit [Ping timeout: 250 seconds]
VanillaGoat__ has quit [Ping timeout: 244 seconds]
ndrei has quit [Ping timeout: 258 seconds]
kamilc__ has joined #ruby
zacts has joined #ruby
ndrei has joined #ruby
<shortCircuit__> Is an else statement compulsory in if elsif
<shevy> hanmac1 haha good - so I am not the only one with network connections. my newly compiled linux kernel refuses to show up any eth* entries
diegoviola has joined #ruby
<shevy> shortCircuit__ lol
<shevy> that is a hilarious question but to answer it
<godd2> shortCircuit__ no
takle has joined #ruby
<shortCircuit__> well. :P
<shevy> you can use if; you can use if/elsif; and you can use if/else; and you can use if/elsif/else
<hanmac1> shevy hm did you restart your router? that did solve my problem for me (until the next restart of the pc)
<shevy> so you have at least 4 variants, but btw if you have many elsif, you may wish to use case when
<shevy> hanmac1 my router is the only thing that reliably works!
<godd2> nah, dont listen to shevy shortCircuit__, just use nested ternary
<shevy> yeah ternary is also an option
<shevy> I hate the ? there
<shevy> has_pizza? ? pizza_hut? : pizza_hub?
<shortCircuit__> no I have only 1. nested ternary? Well I can do since it one level for now.
<godd2> >> 3.odd? ? (2.even? ? "3 is odd and two is even!" : "3 is odd, but 2 isn't even??") : "3 wasnt odd..."
<eval-in__> godd2 => "3 is odd and two is even!" (https://eval.in/219453)
<shevy> yeah look at that shortCircuit__ ^^^^
robustus is now known as robustus|Off
<shevy> how ugly
<shortCircuit__> thats was too bad.
<shevy> lol
<shevy> godd2 can I call you godwin
<shevy> I like that more than godd2
spastorino has joined #ruby
<godd2> only if you call someone hitler
<hanmac1> shevy:
<hanmac1> >> 2.nil?? ?3:?4
<eval-in__> hanmac1 => "4" (https://eval.in/219454)
<shortCircuit__> Then since I get lost reading my own code, I could write an expression like that and then in the middle of the expression, "wait, what was i reading"
<shevy> godd2 hehehe
<shevy> please hanmac1
<shevy> and why are there two hanmacs
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<godd2> I still think there should be an anternary operator !? that swaps which expression is executed
squar1sm has joined #ruby
<shevy> shortCircuit__ that is why I like short code
<shevy> if is ok
<hanmac1> shortCircuit__: like that? http://xkcd.com/1421/
<shevy> unless is a bit harder... it is basically like if ! but longer
<shevy> an anternary operator?
Xeago has joined #ruby
<shevy> the operator for ants?
<hanmac1> shevy: i am currently online from work, the otherone is online from home
<shevy> man, if ants could program... they would outperform the chinese slave workers
<shevy> WHY ARE YOU IRCING AT WORK!!!
Guest7 has joined #ruby
<godd2> like this: (2.odd?) !? "two is even, duh" : "2 is odd??"
<shortCircuit__> hanmac1, yes, like that.
<hanmac1> shevy i am a programmer, i need irc channels for getting help at my other problems
<jhass> >> (3.odd? and ((2.even? and '3 is odd and 2 is even') or '3 is odd but 2 is not even')) or ((2.even? and '3 is not odd but 2 is even') or '3 is not odd and 2 is not even')
<eval-in__> jhass => "3 is odd and 2 is even" (https://eval.in/219455)
kobain has joined #ruby
<jhass> if, ternary. You're amateurs
bMalum has joined #ruby
squar1sm has quit [Ping timeout: 255 seconds]
j_mcnally has joined #ruby
<shevy> hanmac1 what other problems? :>
jottr_ has joined #ruby
<shevy> yeah shortCircuit__ look at this ^^^
<shevy> it gets worse and worse
<shevy> usually hanmac1's variant is the worst
<shevy> but now jhass topped it
Xeago has quit [Remote host closed the connection]
<shortCircuit__> :D
<hanmac1> shevy i learned haxe recently ... for the first time i did needed help because of some stuff that are not so good documented
<shevy> because hanmac1's variant is at least SHORT (lol)
krz has joined #ruby
<shevy> omg haxe...
<shevy> henderlhaxe ...
<shevy> hanmac1 what for? are you going into flash?
<godd2> can you alias a keyword?
<hanmac1> the only haxe i like is on the eating table
<jhass> godd2: no
<shevy> godd2 hmm... you can ... uhm... alias... ... methods!
Xeago has joined #ruby
<jhass> what's the keyword?
<shevy> class!
it0a has quit [Quit: WeeChat 1.0.1]
<hanmac1> shevy: sometimes for turing into php, sometimes for turning into js
<shevy> class Class(class='')
<shevy> please do not make turing so ugly hanmac1
<jhass> that looks like python
<shevy> well python loves the __
<shevy> class Klass(__self__, bla()):
<shevy> is this even valid?
<godd2> aww I want to alias and to but
nagaraj has left #ruby [#ruby]
<shevy> lol
nagaraj has joined #ruby
<godd2> "I have a cat" but "I have a dog"
<shevy> you don't even know what you have
livathin_ has joined #ruby
<jhass> we can get close: class Object; def but(v); self and v; end; end; "I have a cat".but "I have a dog"
Xeago_ has joined #ruby
<shevy> well the . is kinda hmmm
<shevy> would be funny to be able to specify other tokens than .
bogeyd6 has quit [Read error: Connection reset by peer]
<shevy> so that '" b' <-- would work (the ' just delimit the border)
<godd2> or the word dot
<jhass> I don't think that would still be parsable
jottr_ has quit [Ping timeout: 258 seconds]
<godd2> 3dotodd?
<jhass> ruby is already hard to parse
<shevy> is ' ' sensitive in ruby? or rather, can it be parsed?
<godd2> non-breaking space funtime?
<shevy> hanmac1 you need to write an even harder to parse language
<jhass> shevy: how about English
pancake_m has quit [Ping timeout: 245 seconds]
<shevy> nah
<shevy> too verbose
yfeldblum has joined #ruby
jottr_ has joined #ruby
sarkis has joined #ruby
<shevy> look at shakespear
<shevy> or however you write that dude
<shevy> "William Shakespeare" k ... trailing e
chthon has joined #ruby
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
livathinos has quit [Ping timeout: 264 seconds]
corehook has joined #ruby
<apeiros> shevy: there already is a language with the explicit purpose of being hard to parse: malbolge
<shortCircuit__> python reminds me 3 is 3 but 129 is not 129
<shevy> is that the successor to halsbe?
<shevy> ohhh
<jhass> apeiros: I thought the purpose was hard to write?
<shevy> "Malbolge is a public domain esoteric programming language invented by Ben Olmstead in 1998"
Xeago has quit [Ping timeout: 265 seconds]
<shevy> esoteric!
dangerousdave has joined #ruby
<apeiros> jhass: I think the purpose is to be hard in all possible aspects :D
<shevy> I'd rather have an erotic programming language than an esoteric one
<godd2> just fork brainfuck and make brainseduce
<apeiros> ok, maybe parsing it isn't hard
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> "Weaknesses in the design have been found that make it possible (though still very difficult) to write useful Malbolge programs."
<shevy> sounds like a 1st april language
<godd2> didn't they recently finally write hello world in malbolge?
<shevy> lol
nagaraj has quit [Quit: nagaraj]
<shevy> too verbose!!!
pancake_m has joined #ruby
Takle_ has joined #ruby
<shevy> no please
takle has quit [Read error: Connection reset by peer]
<shevy> we need not more, but better languages
yfeldblum has quit [Ping timeout: 258 seconds]
sarkis has quit [Ping timeout: 256 seconds]
<godd2> shevy your failure to define 'better' will be your downfall
renderful has joined #ruby
josephndenton has joined #ruby
Timgauthier is now known as timgauthier_away
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cantonic has joined #ruby
<shevy> well
<shevy> efficiency in some way
<shevy> maintainability too
renderful has quit [Ping timeout: 264 seconds]
<shevy> possibly speed as some secondary value
josephndenton has quit [Ping timeout: 265 seconds]
<godd2> well you can always maintain code that you know well, so I'd say just know asm really well, and you're good :P
arup_r has joined #ruby
Timgauthier has joined #ruby
<shevy> I dunno
<shevy> I felt that way with my php code
<shevy> but I never felt that way with my perl code :(
rshetty has quit [Ping timeout: 250 seconds]
<shevy> and when I look at my php code nowadays, I could maintain it, but it is ugly compared to my ruby code
TPBallbag has quit [Remote host closed the connection]
<shevy> my old ruby code is also rather ugly :(
<shevy> newly written ruby code is better, but sometimes when one adds a little feature here and there, over the years, it kinda decomposes partially
spyderman4g63 has joined #ruby
maasha has joined #ruby
Takle_ has quit [Remote host closed the connection]
RTG` has quit [Ping timeout: 245 seconds]
livathin_ has quit [Remote host closed the connection]
corehook has quit [Remote host closed the connection]
livathinos has joined #ruby
patric100e99 has joined #ruby
mengu has quit [Remote host closed the connection]
<shevy> especially large projects kinda become behemotic
<shevy> I like to quote manveru on that part too: https://github.com/Ramaze/innate
<shevy> "Innate started out as I grew increasingly annoyed by the many hacks and add-ons that diluted the original simplicity of Ramaze as we discovered ways to do things better"
<shevy> sadly it looks as if ramaze died
patric100e99 has quit [Ping timeout: 264 seconds]
takle has joined #ruby
TPBallbag has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TPBallbag is now known as Guest92197
henesy has quit [Ping timeout: 265 seconds]
shortCircuit__ is now known as ItachiHatake
Squarepy has joined #ruby
Squarepy has quit [Max SendQ exceeded]
ItachiHatake is now known as ItachiUchiha
ItachiUchiha is now known as Itachi_Uchiha
dangerousdave has joined #ruby
Guest92197 has quit [Remote host closed the connection]
St_Marx has joined #ruby
St_Marx has quit [Remote host closed the connection]
Abhijit has quit [Quit: Leaving]
bMalum has quit [Quit: bMalum]
paulfm has joined #ruby
bMalum has joined #ruby
atomical has joined #ruby
govg has joined #ruby
<gregf__> :/ instance_eval does what a class_eval should be doing
jenrzzz has quit [Ping timeout: 255 seconds]
moritzs has joined #ruby
St_Marx has joined #ruby
mib_mib has joined #ruby
dkphenom has joined #ruby
corehook has joined #ruby
moritzs has quit [Remote host closed the connection]
mengu has joined #ruby
oo_ has joined #ruby
<jhass> why you think so?
aclearman037 has joined #ruby
IrishGringo has quit [Ping timeout: 245 seconds]
corehook has quit [Ping timeout: 258 seconds]
abuzze has quit [Ping timeout: 244 seconds]
jottr_ has quit [Ping timeout: 256 seconds]
takle has quit [Remote host closed the connection]
tokik has joined #ruby
majjoha has quit [Read error: Connection reset by peer]
mathias1 has joined #ruby
mikepack has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<godd2> gregf__ note that instance_eval, when called on a object, will have a block which executes in the context of that object as an instance of something. So if you call instance_eval on a class, it will execute in the context of the class itself, not the objects instantiated from it.
yfeldblum has joined #ruby
<godd2> So that leaves class_eval. class_eval, when called on a class, will have a block execute in the context of its children. the converse would be silly, that is, calling class_eval on an object which changes the class that instantiated it.
<godd2> replace "context of its children" with "context of any object instantiated from it"
TPBallba_ has joined #ruby
mikepack has quit [Ping timeout: 244 seconds]
TPBallba_ is now known as TPBallbag_
Deele has quit [Ping timeout: 260 seconds]
TPBallbag_ has quit [Changing host]
TPBallbag_ has joined #ruby
yfeldblum has quit [Ping timeout: 258 seconds]
robustus|Off is now known as robustus
TPBallbag_ is now known as TPBallbag
tesuji has quit [Ping timeout: 265 seconds]
bMalum has quit [Quit: bMalum]
dangerousdave has joined #ruby
Gadgetoid has quit [Ping timeout: 245 seconds]
sepp2k has joined #ruby
sk87 has joined #ruby
razieliyo has joined #ruby
Deele has joined #ruby
rshetty has joined #ruby
anarang has quit [Quit: Leaving]
iamjarvo has joined #ruby
KostyaChoporov has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
xfz has joined #ruby
iamjarvo has quit [Client Quit]
Gadgetoid has joined #ruby
arup_r has quit [Remote host closed the connection]
dc_ has quit [Remote host closed the connection]
nateberkopec has joined #ruby
mengu has quit [Remote host closed the connection]
IrishGringo has joined #ruby
corehook has joined #ruby
xjiujiu has joined #ruby
droidburgundy has joined #ruby
pandaant has quit [Quit: Lost terminal]
pandaant has joined #ruby
tier has joined #ruby
diegoviola has quit [Quit: WeeChat 1.0.1]
livingstn has joined #ruby
tier_ has joined #ruby
rshetty has quit [Remote host closed the connection]
mleone has joined #ruby
rshetty has joined #ruby
adriancb has joined #ruby
momomomomo has joined #ruby
weemsledeux has joined #ruby
weemsledeux has quit [Changing host]
weemsledeux has joined #ruby
tier has quit [Ping timeout: 265 seconds]
devdazed has joined #ruby
bluenemo has joined #ruby
jdj_dk has joined #ruby
dc_ has joined #ruby
_maes_ has joined #ruby
nrsk has quit [Ping timeout: 256 seconds]
mathias1 has quit [Ping timeout: 265 seconds]
Timgauthier is now known as timgauthier_away
Guest7 has quit [Quit: Textual IRC Client: www.textualapp.com]
Itachi_Uchiha has quit [Remote host closed the connection]
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
godd2 has quit [Ping timeout: 245 seconds]
nonks has joined #ruby
jdj_dk has quit [Client Quit]
St_Marx has quit [Remote host closed the connection]
St_Marx has joined #ruby
allcentury has joined #ruby
takle has joined #ruby
boombadaroomba has joined #ruby
rshetty has quit [Ping timeout: 250 seconds]
ta has quit [Ping timeout: 272 seconds]
User458764 has joined #ruby
thsig has quit [Remote host closed the connection]
panini has joined #ruby
davedev24_ has joined #ruby
takle has quit [Remote host closed the connection]
pdtpatrick has joined #ruby
sanguisdex has joined #ruby
nonks has quit [Ping timeout: 250 seconds]
hyperdrive is now known as hdrv
hdrv has quit [Changing host]
hdrv has joined #ruby
charliesome has quit [Quit: zzz]
boombadaroomba has quit [Ping timeout: 244 seconds]
ta has joined #ruby
TandyUK has joined #ruby
wald0 has joined #ruby
tesaf has joined #ruby
allcentury has quit [Ping timeout: 255 seconds]
<TandyUK> im trying to build an rpm on centos 5.11 using fpm.. trying to install fpm using "sudo gem install fpm" i get the error "ffi requies Ruby version >= 1.8.7"
<TandyUK> how can i use fpm on centos 5.11?
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<TandyUK> 5.11 has ruby 1.8.5
havenwood has joined #ruby
allcentury has joined #ruby
it0a has joined #ruby
jusmyth1 has joined #ruby
AlexRussia has quit [Ping timeout: 250 seconds]
krz has quit [Ping timeout: 250 seconds]
henesy has joined #ruby
takle has joined #ruby
nrsk has joined #ruby
rshetty has joined #ruby
krz has joined #ruby
<apeiros> TandyUK: search for the release dates of the gem. find one which is ~10y old. install that version explicitly.
<gregf__> godd2: thanks
<gregf__> he does'nt seem to be there tho :/
_ixti_ has joined #ruby
<hanmac1> centos still exist? didnt it has still problems with 2k bug? ;P
oo_ has quit [Remote host closed the connection]
<apeiros> given that it only goes back to 2011, it may well not have *any* version compatible with 1.8.5
<mostlybadfly> What is it?
rshetty has quit [Remote host closed the connection]
Takle_ has joined #ruby
oo_ has joined #ruby
takle has quit [Read error: Connection reset by peer]
<gregf__> jhass: Fixnum.instance_eval { def square val; return val*val; end; }; Fixnum.class_eval { def isSquare; return Math.sqrt(self).to_s =~ /\.0$/ ? true : false;end }; puts Fixnum::square(3).isSquare, 5.isSquare(); <==this was what i tried . what godd2 said, clarifies my doubt
DrShoggoth has joined #ruby
<hanmac1> mostlybadfly: hm what you you mean?
jottr_ has joined #ruby
AliRezaTaleghani has quit [Quit: Leaving.]
mr_rogerz_ has quit [Ping timeout: 244 seconds]
<mostlybadfly> CentOS
oleo has joined #ruby
silkfox has joined #ruby
yfeldblum has joined #ruby
jottr_ has quit [Ping timeout: 244 seconds]
sarkis has joined #ruby
mr_rogerz_ has joined #ruby
kish has joined #ruby
henesy has quit [Ping timeout: 272 seconds]
klaut has joined #ruby
<kish> i got apt-get showing me 191 and 20
sambao21 has joined #ruby
<kish> which is it?
<hanmac1> mostlybadfly: OS for stone-circles ;P
yfeldblum has quit [Ping timeout: 250 seconds]
<mostlybadfly> Lol hanmac1
<hanmac1> kish: if you can use always newest ruby
sarkis has quit [Ping timeout: 272 seconds]
<apeiros> kish: "it"?
mikepack has joined #ruby
jerius has joined #ruby
<kish> well, i have some ubuntu version
<kish> trying to get rid of the gnome and xserver
<kish> bt that is another issue
josephndenton has joined #ruby
<kish> oh, i have ruby
<kish> 15:35 ruby 1.9.3p484 (2013-11-22 revision 43786) [i686-linux]'
<kish> good, eh? ;)
<apeiros> old
<apeiros> (patch-level isn't old, but the ruby is)
<kish> i need to run something with ruby
<kish> i need to figure out the number of days
<kish> from say, last week and add up 21 days
KostyaChoporov has joined #ruby
<kish> how do i execute something with ruby on one line?
mikepack has quit [Ping timeout: 256 seconds]
mib_mib has quit [Ping timeout: 245 seconds]
<hanmac1> >> "require 'date'; p "%d days old" % (Date.today - Date.parse(RUBY_RELEASE_DATE))
<eval-in__> hanmac1 => /tmp/execpad-aa62a538a2e2/source-aa62a538a2e2:2: syntax error, unexpected tIDENTIFIER, expecting keyword_do or '{' or '(' ... (https://eval.in/219497)
<hanmac1> >> require 'date'; p "%d days old" % (Date.today - Date.parse(RUBY_RELEASE_DATE))
<eval-in__> hanmac1 => "52 days old" ... (https://eval.in/219498)
<hanmac1> 18>> require 'date'; p "%d days old" % (Date.today - Date.parse(RUBY_RELEASE_DATE))
<eval-in__> hanmac1 => "1006 days old" ... (https://eval.in/219499)
<hanmac1> 10>> require 'date'; p "%d days old" % (Date.today - Date.parse(RUBY_RELEASE_DATE))
<eval-in__> hanmac1 => (https://eval.in/219500)
<kish> o.O
<kish> interesting
mr_rogerz_ has quit [Ping timeout: 244 seconds]
<kish> maybe i need haskell for this
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
<kish> thanks hanmac1
AlexRussia has joined #ruby
xanderwebs has joined #ruby
oo_ has quit [Ping timeout: 240 seconds]
josephndenton has quit [Ping timeout: 272 seconds]
j2p2 has joined #ruby
<hanmac1> 10>> Time.mktime(*RUBY_RELEASE_DATE.split("-"))
<eval-in__> hanmac1 => /tmp/execpad-3a9a24acccf5/source-3a9a24acccf5:4: TypeError: can't modify frozen string (https://eval.in/219501)
<kish> i could use a virtual interpreter for ruby
<kish> an interactive one
momomomomo has quit [Ping timeout: 265 seconds]
momomomomo has joined #ruby
tokik has quit [Ping timeout: 255 seconds]
mathias1 has joined #ruby
sailias has joined #ruby
<mostlybadfly> Yeeeaaah I wanna dance with somebody
<panini> why ?
tokik has joined #ruby
<ddv> you can dance with shevy
<hanmac1> apeiros: what was the name of this cronos gem again that is so since with time?
j2p2 has quit [Ping timeout: 264 seconds]
<ddv> just watch your behind
<txdv> shevies boogie is soo smooth
cantonic has quit [Quit: cantonic]
<txdv> he will melt your heart like chocolate in an oven
AFKGeek has joined #ruby
Photism has joined #ruby
j2p2 has joined #ruby
<ddv> <3
panini has quit [Quit: Leaving]
<apeiros> hanmac1: what?
cantonic has joined #ruby
pancake_m has quit [Ping timeout: 250 seconds]
<txdv> It's so delicious!
<apeiros> do you mean Chronic and Relapse?
<hanmac1> ah i think i mean the Chronic one
banister has joined #ruby
Techguy305 has joined #ruby
Bira has joined #ruby
henesy has joined #ruby
tyll has quit [Ping timeout: 255 seconds]
jophish__ has joined #ruby
<jophish__> Yo yo yo
<jophish__> I'm having trouble installing eventmachine with openssl on windows
<hanmac1> kish: use the chronic gem, then you can do: Chronic.parse('21 days from last week')
<jophish__> I'm running: gem install eventmachine-1.0.3.gem -- --with-ssl-dir=c:/openssl-win32
<jophish__> however it doesn't seem to be picking it up
<kish> hanmac1, how the hell does hat work
oo_ has joined #ruby
<kish> i'll look it up
tyll has joined #ruby
<ddv> jophish__: get rid of Windows
<jophish__> ddv if only
<hanmac1> ddv: yes! get rid of windows, only use doors ;P
Pumukel has quit [Ping timeout: 244 seconds]
<ddv> hanmac1: lol
xjiujiu has quit [Read error: Connection reset by peer]
decoponio has joined #ruby
<jophish__> if I add --with-pkg-config=openssl to the command then it tries to use ssl but can't find ssl.h
<jophish__> is there a way to indicate the include path for openssl?
akkad has quit [Ping timeout: 245 seconds]
wex13r has joined #ruby
mr_rogerz_ has joined #ruby
clauswitt has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
jimbach has joined #ruby
ta has quit [Ping timeout: 264 seconds]
BlackGear has joined #ruby
diegoviola has joined #ruby
ta has joined #ruby
oo_ has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
last_staff has quit [Quit: last_staff]
mikepack has joined #ruby
livathin_ has joined #ruby
Takle_ has quit [Remote host closed the connection]
jusmyth1 has quit [Quit: Leaving.]
mleung has joined #ruby
momomomomo has quit [Ping timeout: 272 seconds]
msgodf has joined #ruby
bMalum has joined #ruby
livathinos has quit [Ping timeout: 258 seconds]
msgodf has quit [Remote host closed the connection]
momomomomo has joined #ruby
msgodf has joined #ruby
mary5030 has joined #ruby
DLander has joined #ruby
momomomomo_ has joined #ruby
Aova has quit [Ping timeout: 265 seconds]
DLander has quit []
henesy has quit [Ping timeout: 264 seconds]
ikaros has quit [Quit: Ex-Chat]
ARCADIVS has quit [Quit: ARCADIVS]
Hanmac has quit [Ping timeout: 272 seconds]
momomomomo has quit [Ping timeout: 264 seconds]
momomomomo_ is now known as momomomomo
enebo has joined #ruby
pancake_m has joined #ruby
IrishGringo has quit [Ping timeout: 250 seconds]
rodfersou has quit [Read error: Connection reset by peer]
enebo has quit [Client Quit]
rodfersou has joined #ruby
cantonic has quit [Quit: cantonic]
triple_b has joined #ruby
mr_rogerz_ has quit [Ping timeout: 245 seconds]
enebo has joined #ruby
Pumukel has joined #ruby
cantonic has joined #ruby
lampd1 has quit []
yfeldblum has joined #ruby
iamjarvo has joined #ruby
IrishGringo has joined #ruby
takle has joined #ruby
yfeldblum has quit [Ping timeout: 256 seconds]
corehook has quit [Remote host closed the connection]
tagrudev has quit [Remote host closed the connection]
livathin_ has quit [Remote host closed the connection]
mr_rogerz_ has joined #ruby
livathinos has joined #ruby
corehook has joined #ruby
arup_r has joined #ruby
henesy has joined #ruby
bMalum has quit [Quit: bMalum]
s00pcan has joined #ruby
mleung has quit [Quit: mleung]
AndChat| has quit [Ping timeout: 255 seconds]
lampd1 has joined #ruby
duggiefresh has joined #ruby
Hanmac has joined #ruby
eka has joined #ruby
pancake_m has quit [Ping timeout: 250 seconds]
drawingthesun has quit [Ping timeout: 260 seconds]
corehook has quit [Ping timeout: 258 seconds]
panini has joined #ruby
KA-EL-MAN has joined #ruby
<KA-EL-MAN> good day
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
josephndenton has joined #ruby
Ankhers has joined #ruby
pancake_m has joined #ruby
jottr_ has joined #ruby
dan1d has joined #ruby
noop has quit [Ping timeout: 265 seconds]
<KA-EL-MAN> is there someone who can confirm that JRuby runs on a Raspberry PI ?
tvw has joined #ruby
jottr has joined #ruby
govg has quit [Quit: leaving]
josephndenton has quit [Ping timeout: 264 seconds]
gsd has joined #ruby
arrubin has joined #ruby
jottr_ has quit [Ping timeout: 250 seconds]
i0n has joined #ruby
lmickh has joined #ruby
hanmac1 has quit [Quit: Leaving.]
sevenseacat has quit [Quit: Leaving.]
<dfedde> ka-el-man: people have got it working but you can run into problems especially with IcedTea builds
<wasamasa> I'm afraid that thing will run out of RAM rather quickly and thus be insufficient
<kish> does this command get the source code for the gem? "gem install chronic"
n008f4g_ has quit [Ping timeout: 240 seconds]
<havenwood> kish: ya
<KA-EL-MAN> so it is better to use ruby
<havenwood> kish: gem which chronic
<KA-EL-MAN> and accepting the trade off with performance
momomomomo_ has joined #ruby
rbrs has joined #ruby
<havenwood> ka-el-man: last time i tried, which was months ago, i ran into issues
nonks has joined #ruby
hamakn has quit [Remote host closed the connection]
<ddv> ka-el-man: shouldn't be a problem
<sweeper> lol jruby
<ddv> jruby is awesome
<havenwood> sweeper: JRuby is fantastic!
<ddv> especially when you want to use threading
hamakn has joined #ruby
momomomomo has quit [Ping timeout: 244 seconds]
momomomomo_ is now known as momomomomo
<KA-EL-MAN> ddv:so you are saying, you are having no problems with JRuby on the PI?
<ddv> ka-el-man: no
elaptics is now known as elaptics`away
<headius> JRuby works great on pi
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<KA-EL-MAN> ddv:which model and OS do you use?
<headius> but the IcedTea JVMs seem to have encoding problems
<havenwood> headius: nice
_maes_ has joined #ruby
<headius> I haven't isolated it
<ddv> ka-el-man: B, arch
treehug88 has joined #ruby
<KA-EL-MAN> hmz, ok then, i will have to run some benches then , when i get one
<KA-EL-MAN> can't wait, so much ideas when being able to program with ruby , on it :)
<headius> perf difference on pi should be similar to perf difference on a larger system
tokik has quit [Ping timeout: 250 seconds]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ddv> we run agricultural apps on them to collect measurement/statistical data
ChoiKyuSang has quit [Quit: Going offline, see ya! ( www.adiirc.com]
elaptics`away is now known as elaptics
AFKGeek has quit [Quit: Fades into the shadows]
ChoiKyuSang has joined #ruby
<headius> nice
<KA-EL-MAN> ddv: does Arch consume less RAM than Raspbian?
dh64 has quit [Quit: Konversation terminated!]
hamakn has quit [Ping timeout: 244 seconds]
<ddv> ka-el-man: no idea
<ddv> ka-el-man: I do know rasphbian installs a lot of crap you don't need
<ddv> I believe it installs X and whatnot
<ddv> but it doesn't run by default
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<ddv> not sure though
kedare has quit [Remote host closed the connection]
lampd1 has quit []
takle has quit [Read error: Connection reset by peer]
takle has joined #ruby
<KA-EL-MAN> lol NOOBS (New Out Of the Box Software) great name
<KA-EL-MAN> (was checking the RPI setup )
IrishGringo has quit [Ping timeout: 264 seconds]
iwishiwerearobot has quit [Quit: Leaving...]
nkumari has joined #ruby
fabrice31 has quit [Remote host closed the connection]
rshetty has joined #ruby
jenrzzz has joined #ruby
claw___ has quit [Remote host closed the connection]
iamjarvo has joined #ruby
<KA-EL-MAN> ddv: can you also switch between OS's just by sticking in another SD-card?
squar1sm has joined #ruby
<KA-EL-MAN> or is that too much of a hazzle
nkumari has quit [Ping timeout: 265 seconds]
<KA-EL-MAN> then i can just get 2 SD's and raspbian on 1 and Arch on the other
zarubin has joined #ruby
zarubin1 has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
zarubin has quit [Client Quit]
terlar has quit [Ping timeout: 245 seconds]
KostyaChoporov has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rkalfane has joined #ruby
squar1sm has quit [Ping timeout: 260 seconds]
Rx_o has joined #ruby
hamakn has joined #ruby
zacts has quit [Quit: leaving]
dan1d has quit [Quit: Leaving]
stunder has joined #ruby
ghostmoth has joined #ruby
coderhs has joined #ruby
RubNoob has joined #ruby
coderhs has quit [Remote host closed the connection]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
aspires has joined #ruby
mikepack has quit [Remote host closed the connection]
stunder has quit [Read error: Connection reset by peer]
RubNoob has quit [Client Quit]
ndrei has quit [Ping timeout: 240 seconds]
apeiros has quit [Ping timeout: 250 seconds]
krz has quit [Quit: WeeChat 1.0.1]
Hijiri has quit [Quit: WeeChat 1.0.1]
benzrf|offline is now known as benzrf
allcentury has quit [Ping timeout: 245 seconds]
mikepack has joined #ruby
Techguy305 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
shock_one has joined #ruby
mityaz has quit [Quit: See ya!]
<shock_one> Can I create a block with a number or arguments determined at runtime?
Rx_o has quit [Quit: (null)]
larissa has quit [Quit: Leaving]
dkb20k_ has quit [Remote host closed the connection]
<ericwood> you can say *args
<ericwood> well...not sure if you can do that in a block
<shock_one> I have a line of code like this: define_method("with_#{name}", &implementation). implementation is a block which takes different number of parameters depending for different names. Now I want to define a method that executes implementation, and does something else, particularly returns self. How would I wrap this block?
<shock_one> *parameters for different names.
takle has quit [Remote host closed the connection]
arclitgold has joined #ruby
maletor has joined #ruby
takle has joined #ruby
shortCircuit__ has joined #ruby
<jhass> most simple version: define_method("with_#{name") do |*args| implementation.call(*args); self; end
<shortCircuit__> riceandbeans: you there?
mtakkman has quit [Read error: Connection reset by peer]
<jhass> note that implementation has no access to self this way
<shortCircuit__> I messed up my pendrive.
henesy has quit [Ping timeout: 264 seconds]
<ericwood> TIL: you can use *args in block arguments
<ericwood> seems kinda risky tho
chrishough has joined #ruby
<jhass> ericwood: you can even accept a block
jophish__ has quit [Read error: Connection reset by peer]
Takle_ has joined #ruby
<jhass> >> upcase = proc {|&block| block.call.upcase }; upcase.call { 'foo' }
<eval-in__> jhass => "FOO" (https://eval.in/219552)
jottr has quit [Ping timeout: 264 seconds]
<ericwood> so you can take in a block as a block arg
<ericwood> idk if I like that
takle has quit [Remote host closed the connection]
<jhass> you can accept everything you can accept in a method definition
<jhass> including blocks, keyword args and array decomposition
shock_one has quit [Read error: Connection reset by peer]
<ericwood> very cool!
shock_one has joined #ruby
reinaldob has quit [Remote host closed the connection]
joast has joined #ruby
jottr has joined #ruby
shock_one_ has joined #ruby
<shock_one_> ping
<shock_one_> Not sure if you saw this message, because I got disconnected. jhass, self is correct because I'm executing it in instance_eval. However, a block with splat reports its arity as -1, which makes define_method unhappy.
DrShoggoth has quit [Quit: Leaving]
<ericwood> hmmm arity of -1 means it owes you an argument :D
<shock_one_> It was my first thought too, jhass, but using a splat won't create a method with correct number of arguments.
<jhass> ericwood: no, lookup #arity docs
<ericwood> I'm making dumb jokes, ignore me
<jhass> >> upcase = proc {|arg| arg.upcase }; define_method(:printer) do |*args| puts upcase.call(*args); end; printer 'foo'
<eval-in__> jhass => FOO ... (https://eval.in/219553)
<jhass> works?
timonv_ has quit [Remote host closed the connection]
iamjarvo has joined #ruby
shock_one has quit [Ping timeout: 265 seconds]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
stunder has joined #ruby
IrishGringo has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
jfran has joined #ruby
aganov has quit [Remote host closed the connection]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
vyorkin has joined #ruby
timonv_ has joined #ruby
centrx has joined #ruby
<shock_one_> jhass, it does, thank you.
<shock_one_> However, it executes in a wrong context, but it's a different issue.
sk87 has joined #ruby
wald0 has quit [Quit: Lost terminal]
Jake232 has joined #ruby
gauke has quit [Quit: gauke]
timonv_ has quit [Remote host closed the connection]
fogelmania has joined #ruby
thsig has joined #ruby
DrewDr1248 has quit [Ping timeout: 250 seconds]
livathinos has quit []
TomyWork has quit [Ping timeout: 250 seconds]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
anaeem1 has joined #ruby
rshetty has quit [Ping timeout: 244 seconds]
lolmaus has quit [Remote host closed the connection]
sarkis has joined #ruby
lkba has joined #ruby
henesy has joined #ruby
lolmaus has joined #ruby
mtakkman has joined #ruby
gaussblurinc1 has joined #ruby
<gaussblurinc1> hi
<gaussblurinc1> I want to make RESTful api for my tool (0
robbanp has joined #ruby
maestrojed has joined #ruby
<gaussblurinc1> it doesn't have any database, so, I only need API to take arguments
<gaussblurinc1> is there any good libraries for it?
allcentury has joined #ruby
<robbanp> Hi, how do I create a text (json) file in ruby (rails) I get permission denied when trying to write the file
graydot has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<benzrf> robbanp: that doesnt sound like a ruby issue to me tbh
govg has joined #ruby
<robbanp> Might be Rails related
cantonic has quit [Read error: Connection reset by peer]
cantonic has joined #ruby
skolman_ has joined #ruby
iamjarvo has joined #ruby
IrishGringo has quit [Ping timeout: 264 seconds]
tier_ has quit [Remote host closed the connection]
spider-mario has joined #ruby
graydot_ has joined #ruby
vectra has joined #ruby
graydot has quit [Ping timeout: 258 seconds]
graydot_ is now known as graydot
rshetty has joined #ruby
Trynemjoel has quit [Ping timeout: 265 seconds]
robbanp has left #ruby [#ruby]
willywos has joined #ruby
SCHAAP137 has joined #ruby
gsd has joined #ruby
<centrx> Filesystem
CustosLimen has quit [Ping timeout: 256 seconds]
willywos has left #ruby [#ruby]
iwishiwerearobot has joined #ruby
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kaspergrubbe has joined #ruby
tyll_ has joined #ruby
dumdedum has quit [Ping timeout: 255 seconds]
Trynemjoel has joined #ruby
tyll has quit [Ping timeout: 272 seconds]
jenrzzz has quit [Ping timeout: 255 seconds]
SCHAAP137 has quit [Quit: Leaving]
atmosx has joined #ruby
SCHAAP137 has joined #ruby
czaks has quit [Ping timeout: 250 seconds]
tier has joined #ruby
neoxquick has joined #ruby
Takle_ has quit [Remote host closed the connection]
josephndenton has joined #ruby
alex88 has quit []
mistermocha has joined #ruby
<atmosx> Hello
arclitgold has quit [Quit: leaving]
Xeago_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
timonv_ has joined #ruby
j_mcnally has joined #ruby
josephndenton has quit [Ping timeout: 260 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
jottr has joined #ruby
havenwood has quit [Remote host closed the connection]
mistermocha has quit [Remote host closed the connection]
nonks has quit [Ping timeout: 250 seconds]
bricker`work has joined #ruby
mistermocha has joined #ruby
anaeem1 has quit [Ping timeout: 244 seconds]
kamilc__ has quit [Quit: Leaving...]
lkba has quit [Ping timeout: 245 seconds]
fogelmania has quit [Quit: Page closed]
yfeldblum has quit [Ping timeout: 265 seconds]
sambao21 has joined #ruby
<atmosx> Is there any easy way to achieve this? https://gist.github.com/atmosx/2a62d3cfc6afdbfb77bf
dumdedum has joined #ruby
pdtpatrick_ has joined #ruby
shazaum has joined #ruby
pdtpatrick has quit [Ping timeout: 250 seconds]
pdtpatrick_ is now known as pdtpatrick
BlackGear has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lkba has joined #ruby
triple_b has joined #ruby
anaeem1_ has joined #ruby
supernullset has joined #ruby
corehook has joined #ruby
allcentury has quit [Ping timeout: 245 seconds]
nonks has joined #ruby
henesy has quit [Ping timeout: 256 seconds]
gauke has joined #ruby
sailias has quit [Quit: Leaving.]
sailias1 has joined #ruby
dkb20k has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
iwishiwerearobot has quit [Quit: >:(]
czaks has joined #ruby
nlko has joined #ruby
gaussblurinc1 has quit [Quit: Leaving.]
Pumukel has quit [Ping timeout: 244 seconds]
weeb1e has quit [Quit: No Ping reply in 180 seconds.]
<nlko> hi guys, can someone take a look at this, I can;t figure out why its not working. http://pastebin.com/1yxDHdiK
<nlko> trying to create a new object from csv data
<nlko> h1 and h2 works, then inside the for loop I get the error in the paste
_maes_ has joined #ruby
chthon has quit [Ping timeout: 264 seconds]
dkb20k has quit [Ping timeout: 250 seconds]
ptrrr has joined #ruby
<supernullset> is csvdata[i] present in the each block? Is it non-nil?
<jhass> nlko: no, we can't. This is not your actualy code
<shevy> wtf
<shevy> ddv and txdv
henesy has joined #ruby
<shevy> you were speaking while I was not in front of my computer
<nlko> yes it is
mistermocha has quit [Ping timeout: 265 seconds]
ramfjord has joined #ruby
xwq17 has quit [Ping timeout: 256 seconds]
gauke has quit [Quit: gauke]
ghr has quit [Ping timeout: 272 seconds]
wjimenez5271 has joined #ruby
<supernullset> @nlko without seeing HistoricalMatch I cant really say then
<jhass> nlko: no it's not. The error is on line 40. There's no line 40
cndiv has joined #ruby
jobewan has joined #ruby
weeb1e has joined #ruby
graydot has quit [Read error: Connection reset by peer]
sebmasta has joined #ruby
<sebmasta> hi
nlko has quit [Quit: leaving]
Vile` has quit [Ping timeout: 245 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
timonv_ has quit [Remote host closed the connection]
Vile` has joined #ruby
mikecmpbll has quit [Ping timeout: 265 seconds]
vyorkin has quit [Ping timeout: 250 seconds]
havenwood has joined #ruby
graydot has joined #ruby
ndrei has joined #ruby
msgodf has quit [Remote host closed the connection]
Timgauthier has joined #ruby
reisl has joined #ruby
geggam has joined #ruby
kireevco has joined #ruby
Akuma has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
henesy has quit [Ping timeout: 244 seconds]
<havenwood> >> (["gct", "gcc"] + ["atg"] + ["tta", "ttg", "ctt", "ctc", "cta", "ctg"]).combination(3).map(&:join)
<eval-in__> havenwood => ["gctgccatg", "gctgcctta", "gctgccttg", "gctgccctt", "gctgccctc", "gctgcccta", "gctgccctg", "gctatgtta", "gctatgttg", "gctatgctt", "gctatgctc", "gctatgcta", "gctatgctg", "gctttattg", "gctttactt", "gctt ... (https://eval.in/219575)
mistermocha has joined #ruby
graydot has quit [Read error: Connection reset by peer]
<havenwood> atmosx: ^ is that the desired output (i haven't read all of what you wrote yet)
takle has joined #ruby
<atmosx> havenwood: yes, why don't you answer on SO so I'll vote up your answer :-)
fabrice31 has joined #ruby
<shevy> havenwood was born before SO existed
Hobogrammer has joined #ruby
<shevy> he is an IRC person, through and through
<shevy> the ghost in the matrix
<atmosx> shevy: well yes, but still :-P
<shevy> .combination is cool
<atmosx> I should take some ruby courses and solve some problems like these in order to be able to take advantage of these fine grianed methods hehe
<atmosx> yeap
<shevy> yeah
<shevy> how comes that havenwood knows these methods
ixti has joined #ruby
Guest57834 has quit [Ping timeout: 245 seconds]
graydot has joined #ruby
fabrice31 has quit [Ping timeout: 256 seconds]
pasv has joined #ruby
_ixti_ has quit [Ping timeout: 265 seconds]
<atmosx> shevy: he is a consultant IIRC
pasv is now known as Guest86461
<shevy> aha
<shevy> consultants should know those kind of things, I agree
<atmosx> I'd hire him.
ghr has joined #ruby
sebmasta has left #ruby [#ruby]
momomomomo has quit [Ping timeout: 264 seconds]
momomomomo has joined #ruby
kamilc__ has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
skolman_ has quit [Remote host closed the connection]
rshetty has quit [Remote host closed the connection]
sambao21 has joined #ruby
wm3|busy has quit [Ping timeout: 250 seconds]
caveat- has quit []
rshetty has joined #ruby
ghr has quit [Ping timeout: 244 seconds]
wallerdev has joined #ruby
caveat- has joined #ruby
reisl is now known as larissa
Spami has joined #ruby
allcentury has joined #ruby
havenwood has quit [Remote host closed the connection]
noop has joined #ruby
Techguy305 has joined #ruby
corehook has quit [Remote host closed the connection]
shortCircuit__ has quit [Quit: ChatZilla 0.9.91 [Firefox 28.0/20140410211200]]
mistermocha has quit [Remote host closed the connection]
<atmosx> shevy: havewood's example has [*a, *b, *c]. *a is class Array?
mistermocha has joined #ruby
havenwood has joined #ruby
ptrrr has quit [Quit: ptrrr]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
weemsledeux has quit [Excess Flood]
msgodf has joined #ruby
yfeldblum has joined #ruby
rshetty has quit [Ping timeout: 255 seconds]
wjimenez5271 has quit [Remote host closed the connection]
banister has quit [Ping timeout: 250 seconds]
<shevy> dunno
<shevy> >> *[1,2,3]
<eval-in__> shevy => /tmp/execpad-768c7bc52468/source-768c7bc52468:2: syntax error, unexpected '\n', expecting :: or '[' or '.' (https://eval.in/219578)
weemsledeux has joined #ruby
<shevy> >> a = [1,2,3]; [*a]
<eval-in__> shevy => [1, 2, 3] (https://eval.in/219579)
<shevy> guess it will be an Array
<havenwood> >> class Example; def to_a; ["sekret"] end end; [*Example.new, 42]
<eval-in__> havenwood => ["sekret", 42] (https://eval.in/219580)
<shevy> esz
<shevy> I mean
<shevy> wat
<shevy> it calls the to_a method?
<centrx> not wat, splat
boombadaroomba has joined #ruby
<shevy> wat splat mat man
hiall has quit [Ping timeout: 244 seconds]
<shevy> hat man!
robustus is now known as robustus|Off
mistermocha has quit [Ping timeout: 265 seconds]
aspires has quit []
graydot has quit [Quit: graydot]
spyderman4g63 has quit [Read error: Connection reset by peer]
<jhass> to_ary I think?
skolman_ has joined #ruby
weemsledeux has quit [Max SendQ exceeded]
<havenwood> >> class Example; def to_ary; ["sekret", "super sekret"] end end; a, b = Example.new; "#{a} and #{b}"
<eval-in__> havenwood => "sekret and super sekret" (https://eval.in/219581)
spyderman4g63 has joined #ruby
<havenwood> jhass: that's for ^
yfeldblum has quit [Ping timeout: 240 seconds]
<jhass> >> class Foo; def to_ary; [:to_ary]; end; def to_a; [:to_a]; end; end; [*Foo.new]
<eval-in__> jhass => [:to_a] (https://eval.in/219582)
skolman_ has quit [Remote host closed the connection]
<jhass> mmh, kay
weemsledeux has joined #ruby
djbkd has joined #ruby
aspires has joined #ruby
shock_one_ has quit [Quit: Be back later ...]
maletor_ has joined #ruby
data551 has joined #ruby
postmodern has joined #ruby
<atmosx> havenwood: hm, can you take a look here also? I'm doing something wrong. https://gist.github.com/atmosx/ade0987281a94ee3616d tried n-1 or n+1 still not getting expected results (e.g. all combinations).
shock_one_ has joined #ruby
shock_one_ has quit [Client Quit]
boombadaroomba has quit [Ping timeout: 256 seconds]
<havenwood> atmosx: a.each_char.map { |char| table.revtrans char }
<havenwood> atmosx: same as what you have, just use map
<havenwood> atmosx: so what's `list` then?
<havenwood> ah, so not flattened?
Spami has quit [Quit: This computer has gone to sleep]
<havenwood> flat_map
<havenwood> atmosx: a.each_char.flat_map { |char| table.revtrans char }
tvw has quit []
AR45i has joined #ruby
tvw has joined #ruby
<havenwood> atmosx: I'm not sure i get the goal.
TPBallbag has quit [Remote host closed the connection]
<havenwood> atmosx: can you show what `list` is and what the desired result is?
<atmosx> yes sure
<atmosx> give me 1 min
dkphenom has joined #ruby
postmodern has quit [Ping timeout: 265 seconds]
momomomomo has quit [Ping timeout: 250 seconds]
boombadaroomba has joined #ruby
<havenwood> oh, i didn't look closely enough >.>
<havenwood> it was `a` i didn't see too, i need more coffee
tobago has quit [Remote host closed the connection]
<havenwood> i guessed way wrong
EasyCo has quit [Quit: Connection closed for inactivity]
andikr has quit [Remote host closed the connection]
anaeem1_ has quit [Remote host closed the connection]
thagomizer has joined #ruby
aclearman037 has quit [Ping timeout: 244 seconds]
soulisson has joined #ruby
<atmosx> shevy: you alive?
<soulisson> Hi, quick question why instance variables start with an @ in Ruby?
<havenwood> atmosx: i think: a.each_char.flat_map { |char| table.revtrans char }.combination(3).map &:join
<atmosx> soulisson: why not?
<jhass> soulisson: to distinguish them from local variables
<atmosx> soulisson: the official answer is "Because someone said so"
<soulisson> atmosx, to me it's not very readable
<atmosx> havenwood: the number 3 is what is causing the confusion, because the list is 'dynamic', so it will not have just 3 elements, it might have 400 or 1500
<atmosx> soulisson: then you can use perl
<atmosx> soulisson: and come back after a couple of months
<soulisson> atmosx, haha using perl ....
<atmosx> soulisson: then what's the problem?
<havenwood> atmosx: 3 isn't about the number of triplets, its the number of triplets to put together
<eam> or don't come back because perl is more readable :^)
Alina-malina has quit [Ping timeout: 255 seconds]
<atmosx> soulisson: anyway I'm teasing you. But your question doesn't make sense.
<atmosx> havenwood: ooh..
<soulisson> atmosx, i never said it was a problem, it's odd for me
<atmosx> soulisson: cool
<havenwood> atmosx: try ^
<atmosx> havenwood: okay
kireevco has quit [Read error: Connection reset by peer]
kireevco1 has joined #ruby
ramfjord has quit [Ping timeout: 255 seconds]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nickenchuggets has joined #ruby
<atmosx> havenwood: nope :-( ... In this example the total length of a string is 9 becuase 3x3 but if I have 10 then should 10x3 = 30 chars.
<havenwood> atmosx: ahh, gotcha
<shevy> atmosx semi; I am a bit sleepy
<atmosx> shevy: k, nevermind then. I was going to ask something related to biology, but fuck it.
<shevy> you can!
<shevy> what is it!!!
dc_ has quit [Ping timeout: 244 seconds]
<shevy> atmosx today I heard a lecture about ectopic eyes in drosophila
<shevy> now I knew about it before but I did not know the genetic control system that governed it
DogsAndCats has joined #ruby
DogsAndCats has quit [Max SendQ exceeded]
DogsAndCats has joined #ruby
BlackGear has joined #ruby
<havenwood> atmosx: there's A, M, and L, so 3 no?
arup_r has quit [Quit: Leaving.]
soulisson has quit [Ping timeout: 240 seconds]
<havenwood> atmosx: but if there were more, it'd be more?
<shevy> soulisson some token had to be chosen; there are not that many possibilities and $ was designated for global vars
<atmosx> havenwood: that's an example, in this case is 3x3 = 9 (and works). But what if instead of 'AML' I have a string with 400 chars?
KostyaChoporov has joined #ruby
<havenwood> atmosx: commented on your gist
maletor_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<atmosx> havenwood: let me check it
maletor_ has joined #ruby
BlackGear has quit [Max SendQ exceeded]
wjimenez5271 has joined #ruby
skolman has joined #ruby
<atmosx> havenwood: you're the man.
graydot has joined #ruby
n008f4g_ has joined #ruby
BlackGear has joined #ruby
<havenwood> atmosx: you're welcome, i'd like to learn more about this bio stuff :)
mtakkman has quit [Read error: Connection reset by peer]
justinmburrous has joined #ruby
justinmburrous has quit [Remote host closed the connection]
<atmosx> havenwood: :-) sure, you're a natural talent... I was going to ask shevy now that I have list incredibly long list of strings.
DogsAndCats has quit [Client Quit]
DogsAndCats has joined #ruby
<atmosx> I wonder if there's any way to tell which of these strings is more *probable* to be the source of our sample protein.
<atmosx> now let's benchmark a DNA-Poly4 from E. Coli see how much time it takes to create a list.
djbkd has quit [Remote host closed the connection]
DogsAndCats has quit [Client Quit]
DogsAndCats has joined #ruby
maletor_ has quit [Max SendQ exceeded]
ptrrr has joined #ruby
TPBallbag has joined #ruby
claymore has joined #ruby
Joufflu has joined #ruby
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TPBallbag is now known as Guest79376
DogsAndCats has quit [Remote host closed the connection]
klaut_ has joined #ruby
djbkd has joined #ruby
timonv_ has joined #ruby
DogsAndCats has joined #ruby
apeiros has joined #ruby
Guest79376 has quit [Remote host closed the connection]
DogsAndCats has quit [Remote host closed the connection]
klaut has quit [Ping timeout: 240 seconds]
DogsAndCats has joined #ruby
DogsAndCats has quit [Remote host closed the connection]
BlackGear has quit [Remote host closed the connection]
DogsAndCats has joined #ruby
msgodf has quit [Ping timeout: 258 seconds]
graydot has quit [Quit: graydot]
rkalfane has joined #ruby
troyready has joined #ruby
nkumari has joined #ruby
Alina-malina has joined #ruby
rkalfane has quit [Client Quit]
lolmaus has joined #ruby
CustosLimen has joined #ruby
graydot has joined #ruby
panini has quit [Remote host closed the connection]
<Timgauthier> mmmm
pietr0 has joined #ruby
sdegutis has joined #ruby
<atmosx> lol my laptop is abotu to explode
lolmaus_ has joined #ruby
<Timgauthier> cook bacon!
cndiv has quit [Ping timeout: 244 seconds]
mattmcclure has joined #ruby
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
timonv_ has quit [Ping timeout: 264 seconds]
lolmaus has quit [Ping timeout: 240 seconds]
kyb3r_ has joined #ruby
DogsAndCats has quit [Quit: Leaving]
fandi has joined #ruby
DogsAndCats has joined #ruby
rkalfane has joined #ruby
momomomomo has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
hamakn has quit [Ping timeout: 265 seconds]
anaeem1_ has joined #ruby
sambao21 has joined #ruby
sambao21 has quit [Client Quit]
michael_mbp has quit [Excess Flood]
<shevy> you are way out of my league already atmosx
nkumari has quit [Remote host closed the connection]
<atmosx> shevy: hm, I don't feel like I'm out of anybody's league. I stopped the computation my computer got almost frozen.
<BLuEGoD> hi
fwaokda has joined #ruby
<atmosx> I need a cuda or something
sinequanon has joined #ruby
<shevy> lol atmosx
<shevy> a soda!
<shevy> you need a soda
clauswitt has joined #ruby
<atmosx> putting the laptop into the fridge might work
<atmosx> not to mention that if I need to parse the output into an HTML page... it will take 2 life-times
<atmosx> and I don't see any reason doing this.
marr has quit [Ping timeout: 250 seconds]
<fwaokda> how can i create an array from another array of all the duplicates (case insensitive) strings? I was using the following but it doesn't capture instances of the same word but different case... duplicates = file_columns.select{ |e| file_columns.count(e) > 1 }
crantron has quit []
<atmosx> I'll mail my prof. tell him the world is about to end..
michael_mbp has joined #ruby
anaeem1_ has quit [Client Quit]
nkumari has joined #ruby
josephndenton has joined #ruby
Jackneill has joined #ruby
<BLuEGoD> can I group a hash by multiple keys? I can do hash.group_by(hash[:year]) and it does 2014 => {}, but I want something like group_by(hash[:year], hash[:month]) so it outputs 2014 => {'March' => {}}
anaeem1_ has joined #ruby
<BLuEGoD> sorry syntax should be group_by { |hash| hash[:year] }
ghr has joined #ruby
hmsimha has joined #ruby
bMalum has joined #ruby
<shevy> atmosx do you know the ncbi taxonomy database?
<centrx> BLuEGoD, actually that's given an array
<atmosx> shevy: nope
<shevy> that thing took almost an hour to pour it into a local postgresql database all from flatfiles, on a cluster
<shevy> then I wanted to see how fast it would go at my computer alone
<shevy> next day it was still running
<atmosx> shevy: and?
<atmosx> lol
<atmosx> awesome
<atmosx> you can't really do any reasearch without a super-computer
<atmosx> I mean not on bio-informatics
<shevy> yeah
<atmosx> the data is just too much
<shevy> too much data
yfeldblum has joined #ruby
<shevy> it's no fun
jfran has quit [Quit: Going offline, see ya! (www.adiirc.com)]
josephndenton has quit [Ping timeout: 255 seconds]
chrishough has joined #ruby
mistermocha has joined #ruby
cndiv has joined #ruby
ghr has quit [Ping timeout: 250 seconds]
bluOxigen has quit [Ping timeout: 250 seconds]
mistermocha has quit [Remote host closed the connection]
AR45i has quit [Quit: WeeChat 1.0.1]
desp has joined #ruby
Salve has quit [Remote host closed the connection]
mistermocha has joined #ruby
rshetty has joined #ruby
patric100e99 has joined #ruby
dumdedum has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Ping timeout: 264 seconds]
henesy has joined #ruby
dorei has joined #ruby
Salve has joined #ruby
baweaver has joined #ruby
Salve has quit [Remote host closed the connection]
<baweaver> Is Eventmachine dead?
Salve has joined #ruby
graft has quit [Ping timeout: 244 seconds]
michael3 has joined #ruby
mikecmpbll has joined #ruby
mistermocha has quit [Ping timeout: 264 seconds]
rshetty has quit [Ping timeout: 255 seconds]
desp has quit [Quit: This computer has gone to sleep]
karolinka has joined #ruby
michael4 has joined #ruby
timonv_ has joined #ruby
patric100e99 has quit [Ping timeout: 255 seconds]
<shevy> beaver!
<shevy> let's bash down the trees!
<shevy> shake your tail, shake it shake it shake it
<dorei> >> class X; end; X.define_singleton_method(:"a->b") { 'ΧΧΧ' };X.public_send(:"a->b")
<dorei> no eval?
<dorei> >> 1
<eval-in__> dorei => 1 (https://eval.in/219594)
takle has quit [Remote host closed the connection]
<dorei> hmm
<baweaver> nice to see you too
<baweaver> yeah, EM looks either dead or untenable for production. That's disappointing. Anyone know of a better Ruby event lib?
<baweaver> Looking into Celluloid:IO
fartface has joined #ruby
skolman has quit [Remote host closed the connection]
<dorei> maybe celluloid:io is what you're looking for
kyb3r_ has quit [Read error: Connection reset by peer]
<fartface> Forgive me if this is a stupid question (newbie!), but is there an easy way to include the Rails date helpers (like Date.today.beginning_of_month) in a non-rails script?
<baweaver> basically trying to get events on a rails server
<baweaver> mixin activesupport
<dorei> fartface: yeap, just require what you want
<dorei> like require 'active_support/core_ext/string/multibyte'
yetanotherdave has joined #ruby
<fartface> Thanks! I figured it was straight forward, but still just barely getting my feet wet, so I wasn't sure
chipotle has joined #ruby
sambao21 has joined #ruby
karolinka has left #ruby [#ruby]
Hijiri has joined #ruby
ndrei has quit [Ping timeout: 265 seconds]
<baweaver> I'd avoid doing too much of that though unless you really need it
<baweaver> bloats programs and adds a huge dependency to it if you get carried away.
klaut_ has quit [Ping timeout: 250 seconds]
klaut has joined #ruby
rbrs has quit [Remote host closed the connection]
ramfjord has joined #ruby
ndrei has joined #ruby
Bira has quit [Remote host closed the connection]
momomomomo has quit [Ping timeout: 255 seconds]
Bira has joined #ruby
aclearman037 has joined #ruby
S0da has joined #ruby
Bira has quit [Ping timeout: 240 seconds]
postmodern has joined #ruby
fartface has quit [Quit: Leaving]
rpag has joined #ruby
fartface has joined #ruby
takle has joined #ruby
jerius has quit []
zacts has joined #ruby
i_s has joined #ruby
jerius has joined #ruby
nonks has quit [Ping timeout: 250 seconds]
dan1d has joined #ruby
TPBallbag has joined #ruby
ZaRDaK has joined #ruby
TPBallbag is now known as Guest59128
fabrice31 has joined #ruby
skolman has joined #ruby
* atmosx pokes dorei
skolman has quit [Remote host closed the connection]
cleopatra has quit [Ping timeout: 260 seconds]
nkumari has quit [Remote host closed the connection]
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
squar1sm has joined #ruby
Guest59128 has quit [Ping timeout: 244 seconds]
klaut_ has joined #ruby
i0n has quit [Quit: snooze]
ndrei has quit [Ping timeout: 265 seconds]
klaut has quit [Ping timeout: 240 seconds]
henesy has quit [Ping timeout: 264 seconds]
klaut_ has quit [Read error: Connection reset by peer]
klaut has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
dc_ has joined #ruby
fabrice31 has quit [Ping timeout: 272 seconds]
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdwrage_ has joined #ruby
michael3 has quit [Quit: WeeChat 1.0.1]
kireevco1 has quit [Ping timeout: 244 seconds]
sdwrage has quit [Ping timeout: 272 seconds]
squar1sm has quit [Ping timeout: 245 seconds]
sepp2k has quit [Quit: Konversation terminated!]
i0n has joined #ruby
<maasha> This is a 5 char bytestring with all bits set? "\xFF\xFF\xFF\xFF\xFF"
<tobiasvl> yes
pdtpatrick has quit [Quit: pdtpatrick]
<havenwood> >> "\xFF\xFF\xFF\xFF\xFF".bytes
<eval-in__> havenwood => [255, 255, 255, 255, 255] (https://eval.in/219595)
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pengin has joined #ruby
nkumari has joined #ruby
shazaum has quit [Quit: Leaving]
<maasha> havenwood: ah .bytes()
<maasha> is there some nifty way to get 0's and 1's ?
baweaver has quit [Remote host closed the connection]
<havenwood> >> "\xFF\xFF\xFF\xFF\xFF".bytes.map { |byte| byte.to_s(2) }
<eval-in__> havenwood => ["11111111", "11111111", "11111111", "11111111", "11111111"] (https://eval.in/219598)
<maasha> gotit
AR45 has joined #ruby
<pengin> in this code, what does the $? mean? http://pastebin.com/Pp2SegSn
<pengin> stdout?
i0n has quit [Client Quit]
<gr33n7007h> >> "\xFF\xFF\xFF\xFF\xFF".unpack('B*')
<eval-in__> gr33n7007h => ["1111111111111111111111111111111111111111"] (https://eval.in/219600)
<mozzarella> the return value
<mozzarella> of the program
<mozzarella> (I think)
<havenwood> >> require 'English'; $? == $CHILD_STATUS
<eval-in__> havenwood => true (https://eval.in/219601)
porfa has quit [Ping timeout: 264 seconds]
<maasha> yeah, unpack
aspires has quit []
yfeldblum has joined #ruby
michael_mbp has quit [Excess Flood]
Dreamer3 has quit [Quit: Leaving...]
Xeago has joined #ruby
AR45 has quit [Changing host]
AR45 has joined #ruby
AR45 has quit [Changing host]
AR45 has joined #ruby
clauswitt has quit [Quit: Textual IRC Client: www.textualapp.com]
Dreamer3 has joined #ruby
<pengin> thanks
klaut_ has joined #ruby
dkphenom has joined #ruby
kaspergrubbe has quit [Ping timeout: 240 seconds]
michael_mbp has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
ghr has joined #ruby
Sou|cutter has joined #ruby
ducklobster has joined #ruby
rodfersou has quit [Quit: leaving]
kaspergrubbe has joined #ruby
larissa has quit [Quit: Leaving]
klaut has quit [Ping timeout: 265 seconds]
desp has joined #ruby
mleone has quit [Quit: Textual IRC Client: www.textualapp.com]
sambao21 has quit [Quit: Computer has gone to sleep.]
dkphenom has quit [Client Quit]
ghr has quit [Ping timeout: 244 seconds]
anaeem1_ has quit [Remote host closed the connection]
icebourg has joined #ruby
<benzrf> >> require 'english'
<eval-in__> benzrf => cannot load such file -- english (LoadError) ... (https://eval.in/219609)
<benzrf> wat
anaeem1_ has joined #ruby
<tobiasvl> >> require 'English'
<eval-in__> tobiasvl => true (https://eval.in/219610)
dan1d has quit [Remote host closed the connection]
chipotle has quit [Ping timeout: 256 seconds]
Xeago_ has joined #ruby
<havenwood> benzrf: in honor of Perl
<havenwood> >.>
cajone has quit [Remote host closed the connection]
hiall has joined #ruby
sambao21 has joined #ruby
chipotle has joined #ruby
marr has joined #ruby
sandelius has joined #ruby
Xeago has quit [Ping timeout: 264 seconds]
badhatter has quit [Read error: Connection reset by peer]
ducklobster has quit [Remote host closed the connection]
<BLuEGoD> can I group a hash by multiple keys? I can do hash.group_by(|hash| hash[:year]) and it does 2014 => {}, but I want something like group_by(|hash| hash[:year], hash[:month]) so it outputs 2014 => {'March' => {}} (sort of a nested hash)
Techguy305 has quit [Ping timeout: 255 seconds]
pandaant has quit [Remote host closed the connection]
rkalfane has joined #ruby
skolman_ has joined #ruby
Jake232 has joined #ruby
Davey has quit [Ping timeout: 244 seconds]
baweaver has joined #ruby
clauswitt has joined #ruby
wallerdev has quit [Quit: wallerdev]
czaks has quit [Ping timeout: 250 seconds]
thsig_ has joined #ruby
Davey has joined #ruby
ducklobster has joined #ruby
<shevy> long live perl!
<shevy> and along those lines
zacts has quit [Ping timeout: 244 seconds]
<shevy> long live the dinosaurs!
<shevy> I welcome our old fossil overlords
<shevy> right eam
thsig has quit [Ping timeout: 264 seconds]
skolman_ has quit [Ping timeout: 272 seconds]
ldnunes has quit [Quit: Leaving]
desp has quit [Quit: This computer has gone to sleep]
reset has joined #ruby
graft has joined #ruby
bMalum has quit [Quit: bMalum]
chrisja has joined #ruby
cajone has joined #ruby
siwica1 has quit [Quit: siwica1]
michael_mbp has quit [Excess Flood]
tanema has joined #ruby
jli49 has joined #ruby
jli49 has left #ruby [#ruby]
clauswitt has quit [Max SendQ exceeded]
michael_mbp has joined #ruby
tanema has quit [Client Quit]
samuel02 has joined #ruby
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cleopatra has joined #ruby
cleopatra has left #ruby [#ruby]
sirene has joined #ruby
data551 has quit [Quit: (null)]
jenrzzz has joined #ruby
Bira has joined #ruby
Ulrike_Rayne has quit [Excess Flood]
cajone has quit [Remote host closed the connection]
aspires has joined #ruby
lolmaus_ has quit [Quit: Konversation terminated!]
Ulrike_Rayne has joined #ruby
tier has quit [Read error: Connection reset by peer]
jerius has quit []
baweaver has quit [Remote host closed the connection]
i0n has joined #ruby
cajone has joined #ruby
jimbach has quit [Remote host closed the connection]
icebourg_ has joined #ruby
icebourg has quit [Ping timeout: 255 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jokke> hi
bMalum has joined #ruby
czaks has joined #ruby
Bira has quit [Ping timeout: 265 seconds]
st1gma has quit [Read error: Connection reset by peer]
<havenwood> jokke: hey
sambao21 has quit [Quit: Computer has gone to sleep.]
clauswitt has joined #ruby
az7ar_away has quit [Remote host closed the connection]
tier has joined #ruby
<shevy> hey jokers
chrishough has joined #ruby
iamjarvo has joined #ruby
clauswitt has quit [Max SendQ exceeded]
mikeg has joined #ruby
kireevco has joined #ruby
czaks has quit [Ping timeout: 250 seconds]
<jokke> i want to feed diff two strings from ruby and get the output
kaspergrubbe_ has joined #ruby
<jokke> how can i do this?
<tobiasvl> two strings from ruby?
<jokke> yes
<jokke> well actually those strings come from a system call also
<apeiros> ruby yourscript | diff
<tobiasvl> output from programs?
<jokke> apeiros: no i need it in a method
n008f4g_ has quit [Ping timeout: 255 seconds]
<apeiros> actually I doubt piping would work :)
<apeiros> after all, diff needs to be able to distinguish two sources
<tobiasvl> diff <(ruby 1.rb) <(ruby 2.rb)
<tobiasvl> ??
<tobiasvl> or inside ruby?
<tobiasvl> I have no idea what you're trying to do
m8 has joined #ruby
baweaver has joined #ruby
<jokke> more specifically i need to do this: `diff <$(mediainfo #{file_a}) <$(mediainfo #{file_b})
kaspergrubbe has quit [Ping timeout: 255 seconds]
st1gma has joined #ruby
<jokke> `
st1gma has quit [Client Quit]
<tobiasvl> and that doesn't work?
<jokke> nope
<jokke> sh: $(mediainfo /home/jokke/music/Feed\ Me/Feed\ Me\'s\ Big\ Adventure/04\ Feed\ Me\ -\ Muscle\ Rollers\ \(feat.\ Kill\ the\ Noise\).mp3): No such file or directory
<jokke> (i'm using Shellwords.escape)
hhutch has joined #ruby
<atmosx> jokke: try quotes ""
<tobiasvl> use bash, not sh
<tobiasvl> or maybe quotes
<atmosx> so eomthing
<atmosx> lol
<atmosx> do something
<jokke> tobiasvl: but the filenames could contain quotes too
<tobiasvl> use bash anyway
czaks has joined #ruby
<shevy> down with quotes! down with () in names! down with ' ' in names!
<jokke> atmosx: how can i change the shell being used?
<tobiasvl> it handles that stuff in a way you're probably more used to
<shevy> and never listen to muscle rollers
<jokke> shevy: right you are but with music it's a different story i think
<shevy> hehehe
Dude007 has quit [Remote host closed the connection]
<jokke> muscle rollers is awesome! :)
<shevy> atmosx see? how comes tobiasvl knows that link
<shevy> people here know things I do not know
<tobiasvl> first hit on google...
<shevy> AHA
<tobiasvl> jokke: basically just do `bash -c "diff <$(mediainfo #{file_a}) <$(mediainfo #{file_b})"` I guess
<tobiasvl> since you've already done Shellwords.escape
Timgauthier is now known as timgauthier_away
<tobiasvl> worth a try anyway!
<jokke> oh cool
<jokke> i'll try
<atmosx> shevy: google?
<atmosx> jokke: you do that
<havenwood> jokke: or use a gem to diff; https://github.com/samg/diffy#readme
<jokke> havenwood: naah
diegoviola has quit [Remote host closed the connection]
timgauthier_away is now known as Timgauthier
<jokke> havenwood: this is just a little script
nkumari has quit [Remote host closed the connection]
josephndenton has joined #ruby
n_blownapart has joined #ruby
mikesplain has joined #ruby
yfeldblum has joined #ruby
nkumari has joined #ruby
max96at is now known as max96at|off
anotherZero has joined #ruby
auxbuss has joined #ruby
et09 has joined #ruby
<et09> i have this string: "focuses on improving people’s health"
<et09> see the UTF-8 apostrophe? how can i encode that to HTML automatically, without also catching any < or > in the string
<et09> along with as many other UTF-8 characters as possible
RTG` has joined #ruby
<apeiros> et09: just emit proper meta tag and content-type header
josephndenton has quit [Ping timeout: 255 seconds]
<et09> i have the meta tag already
<et09> but by the time this gets through my processing pipeline, somehow it ends up as ' on improving people�s health'
<apeiros> fix your pipeline then?
<et09> im not even clear what's doing that
nuck has quit [Excess Flood]
jerius has joined #ruby
skolman has joined #ruby
supernullset has quit [Remote host closed the connection]
<apeiros> I think there's an html entities gem. IMO going the wrong way, but that's on you to decide.
nuck has joined #ruby
<et09> yeah i tried it, but that encodes &gt; etc.
supernullset has joined #ruby
tercenya has quit []
rshetty has joined #ruby
<apeiros> et09: and how did you use it?
webgen has joined #ruby
Jackneill has quit [Ping timeout: 250 seconds]
jerius has quit [Client Quit]
<et09> just .new.encode
TandyUK has left #ruby [#ruby]
pengin has quit [Remote host closed the connection]
pengin has joined #ruby
cajone has quit [Remote host closed the connection]
jerius has joined #ruby
rshetty has quit [Ping timeout: 255 seconds]
cajone has joined #ruby
cajone has left #ruby [#ruby]
czaks has quit [Ping timeout: 250 seconds]
decoponio has quit [Quit: Leaving...]
ghr has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> tobiasvl: looking at that blog post i don't think the author realizes he's doing `sh -c "bash -c command"` with `system 'bash -c command'` when he could call bash directly with `system 'bash', '-c', 'command'`
pengin has quit [Ping timeout: 245 seconds]
<havenwood> system *Shellwords.split('bash -c ls')
yfeldblu_ has joined #ruby
et09 has quit [Read error: No route to host]
czaks has joined #ruby
<havenwood> not that it particularly matters i suppose?
timonv_ has quit [Read error: Connection reset by peer]
n008f4g_ has joined #ruby
jleishman_ has joined #ruby
oleo__ has joined #ruby
xyh has joined #ruby
timonv_ has joined #ruby
<xyh> how to build this :: https://github.com/manveru/ver
jleishman_ has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
jerius has quit [Ping timeout: 264 seconds]
jerius has joined #ruby
jerius has quit [Client Quit]
ghr has quit [Ping timeout: 258 seconds]
jleishman has quit [Ping timeout: 244 seconds]
jaequery has joined #ruby
<jaequery> hi guys
oleo is now known as Guest55827
<jaequery> is there a way to run an asynchronous loop?
<jaequery> without using message queing system?
<sweeper> xyh: first install arch linux
<sweeper> then pacman -S tk ruby gem install ver
nkumari has quit [Remote host closed the connection]
timonv_ has quit [Remote host closed the connection]
patrick99e99 has joined #ruby
<havenwood> xyh: but installing gems is just as simple as: gem install gem-name
Guest55827 has quit [Ping timeout: 250 seconds]
czaks has quit [Ping timeout: 250 seconds]
<xyh> sweeper: I am on arch, but ``error: target not found: ver''
aspires has quit []
czaks has joined #ruby
oleo__ has quit [Read error: Connection reset by peer]
jerius has joined #ruby
<anotherZero> i don't think 'ver' is supposed to be literal...
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
jerius has quit [Client Quit]
<sweeper> pacman -S tk ruby; gem install ver
<anotherZero> ^ ah that makes much more sense sweeper
<xyh> but gem :: Unable to download data from https://rubygems.org/ - Errno::ETIMEDOUT: Connection timed out - connect(2) for "s3.amazonaws.com" port 443 (https://api.rubygems.org/latest_specs.4.8.gz)
sambao21 has quit [Ping timeout: 245 seconds]
baweaver has quit [Remote host closed the connection]
<maasha> Man, I am experiencing some conflict due to stale compiled code using RubyInline. How to clear away that?
<maasha> Where is that zenspider, when you need him :o) ?
elaptics is now known as elaptics`away
cajone has joined #ruby
noop has quit [Ping timeout: 245 seconds]
<apeiros> spidering zenly in some gardens
jerius has joined #ruby
akkad has joined #ruby
bMalum has quit [Quit: bMalum]
mathias1 has quit [Ping timeout: 244 seconds]
<havenwood> jaequery: whatcha doing in the loop?
<maasha> Its a nasty issue since the error reporting is totally fubar.
<jaequery> making several api calls and saving to db
jerius has quit [Read error: Connection reset by peer]
jerius_ has joined #ruby
czaks has quit [Ping timeout: 250 seconds]
patrick99e99 has quit [Ping timeout: 272 seconds]
<jaequery> so instead of api being called one after another sequentially, i want them all ran at same time
<jaequery> havenwood: any ideas?
atmosx has quit [Ping timeout: 245 seconds]
jottr has quit [Ping timeout: 244 seconds]
skolman has quit [Remote host closed the connection]
vyorkin has joined #ruby
jerius_ has quit [Client Quit]
czaks has joined #ruby
nkumari has joined #ruby
DLSteve has joined #ruby
jerius has joined #ruby
andrewlio has quit [Quit: Leaving.]
<havenwood> jaequery: Typically you'd use a tool for background jobs like sidekiq, resque or beanstalkd.
<xyh> ok, but "gem install ver" :: https://www.refheap.com/93084
jottr has joined #ruby
<havenwood> jaequery: You could always do your own thing with a simple thread pool or use Celluloid.
<havenwood> jaequery: There're many options. Any objection to say sidekiq?
speaking1ode is now known as speakingcode
tercenya has joined #ruby
<xyh> @ sweeper :)
pengin has joined #ruby
bMalum has joined #ruby
<shevy> do you guys have a LANG variable set?
baweaver has joined #ruby
Morkel has quit [Quit: Morkel]
<zenspider> maasha: what's up?
czaks has quit [Ping timeout: 250 seconds]
<havenwood> shevy: en_US.UTF-8
hhutch has quit [Ping timeout: 264 seconds]
atmosx has joined #ruby
exgf has quit [Remote host closed the connection]
<havenwood> xyh: ruby-devel
exgf has joined #ruby
timonv_ has joined #ruby
banister has joined #ruby
mr_rogerz_ has quit [Ping timeout: 264 seconds]
banister has quit [Max SendQ exceeded]
pancake_m has quit [Ping timeout: 240 seconds]
banister has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cajone has quit [Remote host closed the connection]
adriancb has quit []
skolman_ has joined #ruby
oo_ has joined #ruby
cajone has joined #ruby
adriancb has joined #ruby
Dude007 has joined #ruby
cajone has quit [Remote host closed the connection]
<xyh> havenwood: was ?
<havenwood> xyh: i think the arch ruby package alone doesn't have everything needed to build gems
<shevy> wat!
<shevy> jhass!
<shevy> tell him it ain't so!
<havenwood> xyh: i'm not a regular arch user, unsure. but ruby-devel and base-devel seem familiar.
<havenwood> xyh: packages to install
banister has quit [Client Quit]
<jhass> arch ships unmodified upstream ruby
<xyh> havenwood: oh!
dkphenom has joined #ruby
<havenwood> arch folk would advise better
<jhass> base-devel is like build-essential on debian, mostly
oleo__ has joined #ruby
skolman_ has quit [Remote host closed the connection]
S0da has quit [Remote host closed the connection]
<sweeper> xyh: tbh, don't use pacman
timonv_ has quit [Ping timeout: 256 seconds]
<havenwood> xyh: the arch folk have arrived :)
<sweeper> xyh: if you're serious about using ruby, use rvm
<xyh> havenwood: pacman:: error: target not found: ruby-devel
<xyh> sweeper: ok
porfa has joined #ruby
<jhass> I think that project just doesn't work when used with recent software
<havenwood> xyh: does the gem build with just base-devel?
<jhass> open an issue with your last paste
<zenspider> rvm isn't serious. rvm is a hassle. use rbenv + ruby-install if you're gonna roll your own.
<jhass> it's a compiler issue, no missing dependency
<havenwood> jhass: ah
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<havenwood> i vote chruby + ruby-install
<jhass> since he's on arch, pacman + chruby :P
<havenwood> or do like jhass and chruby + arch packages - yeah
<zenspider> I haven't used chruby, but I suspect it's on the same mission as rbenv
<xyh> jhass: I see. it is an old program.
banister has joined #ruby
mistermocha has joined #ruby
alem0lars has quit [Excess Flood]
dkphenom has quit [Ping timeout: 245 seconds]
<jhass> xyh: try compiling from git
<jhass> the version on rubygems is 3 years (sigh) older
kamilc__ has quit [Quit: Linkinus - http://linkinus.com]
<yxhuvud> zenspider: it is more minimalistic.
oo_ has quit [Ping timeout: 264 seconds]
<zenspider> than rbenv? that's sorta impressive
<havenwood> zenspider: yup, very simliar scope to rbenv just env vars instead of shims, and yeah, lighter weight: https://github.com/postmodern/chruby#readme
jaequery has joined #ruby
KostyaChoporov has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fabrice31 has joined #ruby
alem0lars has joined #ruby
<havenwood> zenspider: currently weighs in at 99 lines: https://github.com/postmodern/chruby/blob/master/share/chruby/chruby.sh
<jhass> xyh: git clone and then gem build ver.gemspec
droidburgundy has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
KA-EL-MAN has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
mistermocha has quit [Remote host closed the connection]
<jhass> should give you a .gem file you can gem install ./ver.gem then
<zenspider> ah. well... shims + sstephenson > env + postmodern (for me)
alem0lars has quit [Max SendQ exceeded]
<havenwood> zenspider: opposite for me :)
<maasha> zenspider: ah, some function names in inline act up. E.g I have a and_C which takes three arguments, but ruby complaints 3:1. If I rename to bitwise_and_C all is good?
mistermocha has joined #ruby
alem0lars has joined #ruby
<havenwood> zenspider: then by ruby-install i think you meant ruby-build
<havenwood> zenspider: but ruby-install > ruby-build :P
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Remote host closed the connection]
<zenspider> oh! Yes, you are right. I meant ruby-build
sailias has quit [Quit: Leaving.]
sailias has joined #ruby
Ial has joined #ruby
<zenspider> maasha: I don't understand what you're saying. 3:1 ?
droidburgundy has joined #ruby
<maasha> zenspider: Message: <"wrong number of arguments (1 for 3)">
KA-EL-MAN has joined #ruby
<xyh> jhass: it is an issue already :: https://github.com/manveru/ffi-tk/issues/5
wallerdev has joined #ruby
<zenspider> maasha: I can't possibly go from "3:1" to an arity issue. I'm not psychic
sambao21 has joined #ruby
<zenspider> maasha: can you file an issue with details to reproduce?
oleo__ is now known as oleo
fabrice31 has quit [Ping timeout: 256 seconds]
<xyh> I just like the idea about "emacs + ruby" instead of "emacs + elisp"
philwantsfish has joined #ruby
aspires has joined #ruby
mistermocha has quit [Ping timeout: 245 seconds]
rdark has quit [Quit: leaving]
<zenspider> xyh: iirc rubykitch did something so you could write ruby for emacs extensions
wallerdev has quit [Client Quit]
<maasha> zenspider: I have seen this a couple of times - and I have to come up with new function names to go on. Seems like something is compiled and cached somewhere and never updated even if the code is.
<zenspider> stuff is definitely compiled and cached
<zenspider> but it uses digests to ensure it gets rebuilt if anything changes
<maasha> zenspider: but I am not sure I can reproduce this :o( - seems to happen only when I am undo'ing and redo'ing stuff
wallerdev has joined #ruby
codecop has quit [Remote host closed the connection]
<Ial> Hello?
<atmosx> Hello! Is it me you're looking for?
dacamp has joined #ruby
* atmosx go Lionel go!
sambao21 has quit [Client Quit]
Xeago_ has quit [Remote host closed the connection]
<Ial> Lol, yes. I was just seeing if everything is working? First time IRC user and teaching myself ruby
<Ial> Figured I'd hop on the ruby irc see what's going on
<zenspider> not much wrt ruby. this is pretty much the #emacs of ruby channels :)
timonv_ has joined #ruby
<yxhuvud> I imagine extension writing will be easier soon when emacs starts to support linking dynamically (and also support threading)
<dacamp> Anyone have a suggestion on using RDoc to gather all flags with ":feature:"? I'm trying to create a single page with links to all new 'features'.
<zenspider> yxhuvud: extension writing isn't hard in elisp. quite easy actually.
cajone has joined #ruby
<dacamp> Sorry for the abundance of "quotes". :)
jaequery_ has joined #ruby
<Ial> Ohh, lol. Like I said, first time IRC user so I'm just trying to figure out what I'm doing really XD
<atmosx> Ial: you might wanna change the nickname
graydot has quit [Quit: graydot]
<Ial> I dunno how you did that but okay
<atmosx> XD
jaequery has quit [Ping timeout: 265 seconds]
TPBallbag has joined #ruby
<zenspider> dacamp: I don't think rdoc does what you're looking for.
emmesswhy has joined #ruby
<zenspider> is supports a very limited number of :flags: and isn't meant to be used like, say, javadoc
TPBallbag is now known as Guest22102
<yxhuvud> zenspider: you are most probably correct (as you have more experience than I in that), but it can't hurt that the options are increasing.
cajone has quit [Remote host closed the connection]
<Ial> Better?
loly0 has joined #ruby
<Ial> Nope
czaks has joined #ruby
<zenspider> yxhuvud: it can't? have you looked at extension writing in vim lately? it's a mess
Ial has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
Ial has joined #ruby
postmodern has quit [Ping timeout: 264 seconds]
<atmosx> vim extensions are kind hard true
<yxhuvud> zenspider: heh.
<Ial> Did it refresh?
<Ial> Nope
<dacamp> zenspider: sunofagun... any suggestions or should I just script it out into its own rake task?
<zenspider> I think where the dynamic loading stuff will come in handy is with direct integration with 3rd party libs instead of writing socket protocols to bridge
<atmosx> refresh?
<atmosx> Quassel IRC client blah
<Ial> Trying to change my name like you said
<Ial> How did you know?
<zenspider> like right now, enh-ruby-mode starts a ruby process to get parse tree info
<zenspider> it's a serious pita
sambao21 has joined #ruby
<atmosx> Ial: I was a security for the NSA. I just ask...
<yxhuvud> still, I know some old elisp projects that could benefit hugely by namespaces and threads in some cases.
<atmosx> Ial: security analyst
<Ial> Ahh I got you
sambao21 has quit [Client Quit]
<Ial> Also I dunno how you're doing that so I'll just keep typing in chat lol
<atmosx> Ial: j/k... I just used a command, /ctcp Ial version
<atmosx> returns the version of the client if you didn't obscure it intentionally
<zenspider> dacamp: drbrain on #ruby-lang maintains rdoc. he'd be better to ask
<Ial> Ohhh
<dacamp> thanks!
<Ial> Cool
<Ial> Did you obscure yours then?
<Ial> Also still dunno how to change the name
postmodern has joined #ruby
<zenspider> yxhuvud: sure. but namespaces and threads are orthogonal to dynamic loading
<zenspider> (afaik)
<atmosx> Ial: nah, I dn't obscure anything these days. Freenode is mostly okay. No need to hide identities and what-not
<atmosx> Ial: /nick new_nickname
Ial is now known as learningthings
<yxhuvud> yeah. just noticing that there are lots of stuff in the pipeline
cajone has joined #ruby
<learningthings> Oh heyy
m8 has quit [Quit: Sto andando via]
exceion has quit [Quit: leaving]
Guest22102 has quit [Ping timeout: 258 seconds]
<learningthings> Now how are you pming me exactly? So I don't bug everyone here in chat lol
auxbuss has quit [Quit: I'm gone.]
sambao21 has joined #ruby
<zenspider> learningthings: you pm with /msg <name> <text>
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thiagofm has joined #ruby
josephndenton has joined #ruby
<yxhuvud> of course, people are usually not bugged by traffic in the channel as long as it is on topic, but surprise pm's can annoy some people
cndiv has quit [Ping timeout: 244 seconds]
<atmosx> true
<n_blownapart> lal go to your chat app's 'server' menu or 'server properties'. you can add second nicknames or better yet: just change your main nick.
<atmosx> pm's can annoy people
quazimodo has quit [Ping timeout: 265 seconds]
unclouded has quit [Ping timeout: 265 seconds]
<atmosx> n_blownapart: he already did
ltd has quit [Ping timeout: 240 seconds]
<n_blownapart> uh oh..
thiagofm has quit [Client Quit]
<learningthings> How do you know that I did?
<learningthings> Unless the command changed my main nick
maasha has quit [Quit: Page closed]
unclouded has joined #ruby
quazimodo has joined #ruby
timonv_ has quit [Ping timeout: 264 seconds]
<zenspider> it did
ltd has joined #ruby
graydot has joined #ruby
graydot has quit [Client Quit]
cibs has quit [Ping timeout: 272 seconds]
cibs has joined #ruby
<atmosx> learningthings: I'm a magician!
graydot has joined #ruby
<n_blownapart> what's the chat app that runs on linux cli? I want to try that.
<sweeper> there are lots?
Takle_ has joined #ruby
<atmosx> n_blownapart: one too many... I use weechat + tor occasionally (on my FreeBSD vps)
<atmosx> n_blownapart: nginx, irssi, etc.
<atmosx> err lol BitchX irssi
josephndenton has quit [Ping timeout: 240 seconds]
<n_blownapart> irssi yeah I want to try that.
<sweeper> nginx probably has a module for that tbh
toretore has quit [Quit: This computer has gone to sleep]
loly0 has left #ruby [#ruby]
tier has quit [Remote host closed the connection]
<n_blownapart> limechat is cool on osX but I find them all wonky. you change stuff and it doesn't stick.
<shevy> I like peechat
<shevy> that warm fuzzy feeling
mary5030 has quit [Remote host closed the connection]
samuel02 has quit [Remote host closed the connection]
<n_blownapart> limechat has a really nice ui but it's not for linux.
* atmosx uses Textual on OSX
<atmosx> Leenoux
<atmosx> n_blownapart: why do you wanna use leenoux anyway?
takle has quit [Ping timeout: 264 seconds]
<atmosx> shevy you're always using non-conventional programs, I don't know why.
anaeem1_ has quit [Remote host closed the connection]
<n_blownapart> atmosx: I don't know because I suck at ruby so I gave it a shot.
<n_blownapart> to be employable
x1337807x has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hiall has quit [Quit: hiall]
<atmosx> cool
<n_blownapart> I don't understand oop at all. cry me a river. ... I found a tutor for ruby in my area.
emmesswhy has quit [Quit: Leaving]
baweaver has quit [Remote host closed the connection]
n008f4g_ has quit [Ping timeout: 264 seconds]
blackmesa has joined #ruby
jlast has joined #ruby
cajone has quit [Remote host closed the connection]
boombadaroomba has quit [Remote host closed the connection]
bMalum has quit [Quit: bMalum]
kireevco has quit [Ping timeout: 256 seconds]
vyorkin has quit [Quit: WeeChat 1.0.1]
<xyh> reading more about ruby, now I view ruby as an acceptable lisp too :)
bMalum has joined #ruby
mary5030 has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
<zenspider> I find ppl who say that don't code enough lisp...
claymore has quit [Quit: Leaving]
havenwood has quit []
ghr has joined #ruby
<xyh> zenspider: why
iamjarvo has joined #ruby
<xyh> in your view it is not acceptable lisp ?
baweaver has joined #ruby
n_blownapart has quit []
yfeldblum has joined #ruby
_djbkd has joined #ruby
<xyh> the code block just catchs a good pattern of the use of lambda, and designed a good syntax on it.
_djbkd has quit [Read error: Connection reset by peer]
_djbkd has joined #ruby
rodfersou has joined #ruby
ghr has quit [Ping timeout: 244 seconds]
<zenspider> if all you want out of a lisp is _just_ lambdas? sure
Techguy305 has joined #ruby
<xyh> the semantic part of lisp is just lambda
djbkd has quit [Ping timeout: 256 seconds]
pasties has quit [Quit: ZNC - http://znc.in]
mathias1 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
paulfm has quit []
pasties has joined #ruby
<zenspider> just lambda?
skolman_ has joined #ruby
baweaver has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
jaequery_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_djbkd has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 264 seconds]
Ankhers has quit [Ping timeout: 250 seconds]
aclearman037 has quit [Quit: I'm out!]
djbkd has joined #ruby
tvw has quit [Read error: Connection reset by peer]
duncannz has joined #ruby
mathias1 has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
<xyh> zenspider: one can even use lambda to encode natural number ... the GC of lisp is for to implement list-processing, the list-processing of lisp is for to implement lambda. [maybe this is ture, only in the very first versions of lisp implementations]
<xyh> "funny encoded natural number"
<zenspider> one CAN just do the whole thing in their head. not terribly useful that way, is it?
dc_ has quit [Remote host closed the connection]
nkumari has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 272 seconds]
codeitagile has joined #ruby
<xyh> I have implemented lambda in this way in a forth-like language I designed. so the whole things are in my head, and in github too.
kireevco has joined #ruby
nfk has quit [Quit: yawn]
<zenspider> very exciting.
<xyh> :P
codeitagile has quit [Client Quit]
codeitagile has joined #ruby
Bira has joined #ruby
havenwood has joined #ruby
codeitagile has quit [Read error: Connection reset by peer]
desp has joined #ruby
learningthings has quit [Remote host closed the connection]
rh1n0 is now known as rh1n0_away
Bira has quit [Ping timeout: 265 seconds]
omosoj has joined #ruby
MatthewsFace has joined #ruby
desp has quit [Client Quit]
wjimenez_ has joined #ruby
it0a has quit [Ping timeout: 244 seconds]
AlSquirrel has quit [Quit: This computer has gone to sleep]
bMalum has quit [Quit: bMalum]
vlad_starkov has quit [Quit: ZNC - http://znc.in]
bMalum has joined #ruby
mikesplain has quit [Ping timeout: 250 seconds]
wjimenez5271 has quit [Ping timeout: 255 seconds]
sailias has quit [Quit: Leaving.]
skolman_ has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
josephndenton has joined #ruby
allcentury has quit [Ping timeout: 255 seconds]
graydot has quit [Quit: graydot]
bluenemo has quit [Quit: Verlassend]
ptrrr has quit [Quit: ptrrr]
f0ster has joined #ruby
djbkd has quit [Remote host closed the connection]
vlad_starkov has quit [Client Quit]
s00pcan has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tesaf has quit [Quit: Lost terminal]
cajone has joined #ruby
cajone has left #ruby [#ruby]
nkumari has joined #ruby
razieliyo has quit [Quit: Saliendo]
sdegutis has left #ruby ["Leaving..."]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
supergeek has joined #ruby
St_Marx has quit [Ping timeout: 250 seconds]
graydot has joined #ruby
supergeek has quit [Max SendQ exceeded]
livingstn has quit []
supergeek has joined #ruby
silkfox has quit [Ping timeout: 258 seconds]
supergeek has quit [Max SendQ exceeded]
jerius has quit [Ping timeout: 250 seconds]
j_mcnally has joined #ruby
godd2 has joined #ruby
aspires has quit []
xyh has quit [Remote host closed the connection]
St_Marx has joined #ruby
thomas has quit [Quit: Reconnecting.]
seanp2k has joined #ruby
thomas has joined #ruby
chipotle_ has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
spider-mario has quit [Remote host closed the connection]
<seanp2k> I have no problem using the longer version, which is playlists.map { |playlist| playlist.slice(:permalink, :uri) } … but I was wondering why playlists.each(&:slice(:uri, :permalink)) doesn’t do the same thing.
<WhereIsMySpoon_> i mean for a start theyre in the opposite order
<jhass> seanp2k: :slice is a symbol. You can't call a symbol
Hijiri has quit [Read error: Connection reset by peer]
rylev has joined #ruby
charliesome has joined #ruby
<seanp2k> jhass: I’m possibly missing the point, but would there be any way to pass args to slice in a situation like that?
<jhass> & calls to_proc on the passed argument. Symbol#to_proc returns a proc that calls the method of the symbols name on the first argument
mikeg has quit [Remote host closed the connection]
Hijiri has joined #ruby
renderful has joined #ruby
<jhass> foo(&:bar) == foo(&(:bar.to_proc)) == foo do |arg| arg.send(:bar); end;
<seanp2k> so, and this would be silly, but I could define a new method that calls slice with the args I want, then use &:that ?
<jhass> yes, but don't do it
<seanp2k> cool, makes sense; thanks for explaining :)
s00pcan has joined #ruby
samuel02 has joined #ruby
<apeiros> there are gems which try to enable what you want. I'd not use them, though
jaequery has joined #ruby
renderful has quit [Ping timeout: 255 seconds]
allcentury has joined #ruby
sambao21 has joined #ruby
s00pcan has quit [Remote host closed the connection]
<seanp2k> yeah, I just got curious when I saw it in-use at https://github.com/soundcloud/soundcloud-ruby#add-a-track-to-a-playlist--set … I wouldn’t personally use the &: trick in documentation like that
skolman has joined #ruby
<apeiros> seanp2k: it's not a trick
jobewan has quit [Quit: Leaving]
s00pcan has joined #ruby
<apeiros> it's not the duty of library docs to teach you basic ruby syntax.
ghr has joined #ruby
larissa has joined #ruby
postmodern has quit [Ping timeout: 260 seconds]
iamjarvo has joined #ruby
atmosx has quit [Ping timeout: 256 seconds]
<havenwood> seanp2k: it's idiomatic Ruby, not something esoteric like the flip flop operator
allcentury has quit [Ping timeout: 250 seconds]
djbkd has joined #ruby
samuel02 has quit [Ping timeout: 255 seconds]
charliesome has quit [Quit: zzz]
ghr has quit [Ping timeout: 255 seconds]
weemsledeux has quit [Remote host closed the connection]
jleishman has joined #ruby
<havenwood> >> 1.upto(10).select { |n| true if n % 5 == 0 .. n % 3 == 0 }
<eval-in__> havenwood => [5, 6, 10] (https://eval.in/219705)
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
seanp2k has quit [Quit: seanp2k]
jleishman has quit [Client Quit]
djbkd has quit [Ping timeout: 244 seconds]
s00pcan has quit [Remote host closed the connection]
patric100e99 has joined #ruby
mathias1 has joined #ruby
slawrence00 has joined #ruby
o0oo0o has quit [Remote host closed the connection]
patric100e99 has quit [Ping timeout: 244 seconds]
aspires has joined #ruby
mathias1 has quit [Ping timeout: 265 seconds]
s00pcan has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
boombadaroomba has joined #ruby
nkumari has quit [Remote host closed the connection]
cajone has joined #ruby
dc_ has joined #ruby
narcan has joined #ruby
nkumari has joined #ruby
<baweaver> havenwood: flipflops are fun though! https://gist.github.com/baweaver/d02ffd9c24219ae89600
pengin has quit [Remote host closed the connection]
kirun has quit [Remote host closed the connection]
pengin has joined #ruby
fabrice31 has joined #ruby
<havenwood> baweaver: clearly how html is *meant* to be parsed
connix has joined #ruby
<baweaver> '<h1>Not</h1><strong>fun!</strong>'.flat_map(&:split).select { |word| true if word =~ %r{<strong>} .. word =~ %r{</strong>} }
RitterJack has quit [Remote host closed the connection]
<baweaver> >> '<h1>Not</h1><strong>fun!</strong>'.flat_map(&:split).select { |word| true if word =~ %r{<strong>} .. word =~ %r{</strong>} }
<eval-in__> baweaver => undefined method `flat_map' for "<h1>Not</h1><strong>fun!</strong>":String (NoMethodError) ... (https://eval.in/219711)
<baweaver> anyways, yes, esoteric
Bira has joined #ruby
<baweaver> >> '<h1>Not</h1><strong>fun!</strong>'.map(&:split).select { |word| true if word =~ %r{<strong>} .. word =~ %r{</strong>} }
<eval-in__> baweaver => undefined method `map' for "<h1>Not</h1><strong>fun!</strong>":String (NoMethodError) ... (https://eval.in/219712)
<baweaver> >> '<h1>Not</h1><strong>fun!</strong>'.chars.select { |word| true if word =~ %r{<strong>} .. word =~ %r{</strong>} }
<eval-in__> baweaver => [] (https://eval.in/219713)
<baweaver> fine then.
dc_ has quit [Ping timeout: 245 seconds]
<baweaver> but yeah, that was 10 minutes of screwing with it because I could type of thing
devdazed has quit [Quit: Computer has gone to sleep.]
squar1sm has joined #ruby
pengin has quit [Ping timeout: 240 seconds]
fabrice31 has quit [Ping timeout: 265 seconds]
jlast has quit [Remote host closed the connection]
jaequery has joined #ruby
Bira has quit [Ping timeout: 244 seconds]
jlast has joined #ruby
skolman has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nkumari has quit [Remote host closed the connection]
squar1sm has quit [Ping timeout: 244 seconds]
banister has joined #ruby
blackmesa has quit [Ping timeout: 256 seconds]
pengin has joined #ruby
jlast has quit [Ping timeout: 244 seconds]
mib_mib has joined #ruby
nkumari has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dTSCode has quit [Read error: Connection reset by peer]
dTSCode has joined #ruby
dTSCode has quit [Remote host closed the connection]
TPBallbag has joined #ruby
dTSCode has joined #ruby
nkumari has quit [Remote host closed the connection]
TPBallbag is now known as Guest23258
Guest23258 has quit [Changing host]
Guest23258 has joined #ruby
Guest23258 is now known as TPBallbag
timonv_ has joined #ruby
nkumari has joined #ruby
benzrf is now known as benzrf|offline
benzrf|offline is now known as benzrf
djbkd has joined #ruby
russt has joined #ruby
baweaver has quit [Remote host closed the connection]
jimbach has joined #ruby
jaequery has joined #ruby
treehug88 has quit []
crazydiamond has quit [Ping timeout: 260 seconds]
cajone has quit [Remote host closed the connection]
timonv_ has quit [Ping timeout: 258 seconds]
phutchins has quit [Ping timeout: 256 seconds]
<dorei> >> class X; end; X.define_singleton_method(:"a->b") {puts 'ΧΧΧ' };X.public_send(:"a->b")
jaequery has quit [Client Quit]
jimbach has quit [Ping timeout: 265 seconds]
<dorei> >> class X; end; X.define_singleton_method(:"a->b") {puts 'zzz' };X.public_send(:"a->b")
<eval-in__> dorei => zzz ... (https://eval.in/219736)
cajone has joined #ruby
<dorei> i'm really curious why ruby let's you define methods with names that are not acceptable as def argument
KC9YDN-2 has joined #ruby
<dorei> and the only way to call them would be via public_send / send
nkumari has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 245 seconds]
cajone has quit [Remote host closed the connection]
parabolize has joined #ruby
<havenwood> >> define_method("\t") { "\t" }; public_send "\t"
<eval-in__> havenwood => "\t" (https://eval.in/219741)
jimbach has joined #ruby
d4nku has quit [Ping timeout: 255 seconds]
<eam> >> define_singleton_method('') {puts 'zzz' }; send ''
<eval-in__> eam => zzz ... (https://eval.in/219742)
<eam> that's neat
KC9YDN has quit [Ping timeout: 260 seconds]
moritzs has joined #ruby
<havenwood> >> class Object; def ~@; "#{self}-ish" end end; ~self
<eval-in__> havenwood => "main-ish" (https://eval.in/219743)
icebourg_ has quit []
wjimenez_ has quit []
cajone has joined #ruby
wjimenez5271 has joined #ruby
webgen1 has joined #ruby
nkumari has joined #ruby
apeiros has quit [Remote host closed the connection]
seanp2k has joined #ruby
apeiros has joined #ruby
nkumari has quit [Remote host closed the connection]
Sirele has joined #ruby
baweaver has joined #ruby
davispuh has joined #ruby
<WhereIsMySpoon_> havenwood: that is slightly terrifying.
* WhereIsMySpoon_ hides in a box away from the weirdness.
<havenwood> ~->{}[] #=> "-ish"
<havenwood> ~String #=> "String-ish"
<WhereIsMySpoon_> I...what?
Sirele is now known as cleopatrax
<WhereIsMySpoon_> >> ~->{}[] #
<eval-in__> WhereIsMySpoon_ => undefined method `~' for nil:NilClass (NoMethodError) ... (https://eval.in/219745)
webgen has quit [Ping timeout: 255 seconds]
<havenwood> >> class Object; def ~@; "#{self}-ish" end end; ~->{}[]
<eval-in__> havenwood => "-ish" (https://eval.in/219746)
Sirele has joined #ruby
webgen1 has quit [Read error: Connection reset by peer]
teejar has quit [Quit: ZNC - http://znc.in]
Sirele has quit [Client Quit]
<godd2> WhereIsMySpoon_ when he runs ->{}[] he's calling a lambda which returns nil. nil is an object, and he overrode the unary ~ method for objects, so calling ~nil returns "-ish"
<dorei> havenwood: what's that @ in the def?
<havenwood> how you can write a little testing library: class Proc; def -@; !self.call end; def +@; !!self.call end end
skolman has joined #ruby
Hijiri has quit [Quit: WeeChat 1.0.1]
<godd2> dorei @ is for the unary operators.
cleopatra1 has joined #ruby
moritzs has quit [Remote host closed the connection]
<havenwood> `+->{ true } #=> true` or `!->{ true } #=> false`
<dorei> oh, i see
nkumari has joined #ruby
cleopatra1 has quit [Client Quit]
<benzrf> >> -false
<eval-in__> benzrf => undefined method `-@' for false:FalseClass (NoMethodError) ... (https://eval.in/219747)
<godd2> havenwood I expect 'microtest' to be up on github by the end of the day
<benzrf> >> +false
<eval-in__> benzrf => undefined method `+@' for false:FalseClass (NoMethodError) ... (https://eval.in/219748)
<havenwood> godd2: too late, already a thing: https://github.com/peterc/testrocket#readme
sambao21 has quit [Quit: Computer has gone to sleep.]
chipotle_ has quit [Ping timeout: 250 seconds]
selenex has joined #ruby
<godd2> better than expected. You're promoted!
skolman has quit [Ping timeout: 245 seconds]
nkumari has quit [Remote host closed the connection]
Deele has quit [Quit: User excited]
DLSteve has quit [Quit: Leaving]
nkumari has joined #ruby
selenex has quit [Client Quit]
webgen has joined #ruby
sleopatra has joined #ruby
Spami has joined #ruby
webgen1 has joined #ruby
ghr has joined #ruby
Xeago has joined #ruby
sleopatra has left #ruby [#ruby]
webgen1 has quit [Read error: Connection reset by peer]
spastorino has quit [Quit: Connection closed for inactivity]
supernullset has quit [Ping timeout: 250 seconds]
cleopatra77 has joined #ruby
<WhereIsMySpoon_> you guys are clearly too dangerous to be allowed to live
seanp2k has quit [Quit: seanp2k]
rodfersou has quit [Quit: leaving]
teejar has joined #ruby
cleopatra77 has quit [Client Quit]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AR45 is now known as zzz_AR45