apeiros changed the topic of #ruby to: Ruby 2.1.3; 2.0.0-p576; 1.9.3-p545: 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
VanillaGoat_ has quit [Ping timeout: 246 seconds]
monkeypatch has joined #ruby
aspires has quit []
startupality has quit [Quit: startupality]
ramfjord has joined #ruby
aspires has joined #ruby
jimbach has quit [Remote host closed the connection]
jimbach has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
ki0 has joined #ruby
kenneth has joined #ruby
blackmesa has joined #ruby
jimbach has quit [Ping timeout: 244 seconds]
msmith_ has joined #ruby
wethu has quit [Quit: This computer has gone to sleep]
ki0 has quit [Ping timeout: 258 seconds]
neonixcoder has joined #ruby
moritzschaefer has joined #ruby
jimbach has joined #ruby
jamto11 has joined #ruby
msx is now known as ig0rr
wethu has joined #ruby
ig0rr is now known as msx
blackmesa has quit [Ping timeout: 240 seconds]
neonixcoder has quit [Client Quit]
justinmburrous has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
sepp2k has quit [Ping timeout: 272 seconds]
sepp2k1 has joined #ruby
charliesome has joined #ruby
jdj_dk has joined #ruby
aspires has quit []
lw has joined #ruby
ghostmoth has joined #ruby
Haiiro has quit [Read error: Connection reset by peer]
Haiiro has joined #ruby
ferr has quit [Remote host closed the connection]
endash has joined #ruby
msmith_ has quit [Remote host closed the connection]
nfk has quit [Quit: yawn]
ferr has joined #ruby
jamto11 has quit [Ping timeout: 255 seconds]
YamakasY has quit [Ping timeout: 260 seconds]
GriffinHeart has joined #ruby
jamto11 has joined #ruby
Inv1s1ble has quit [Remote host closed the connection]
coderdad has joined #ruby
jdj_dk has quit [Ping timeout: 255 seconds]
aspires has joined #ruby
michaelchum_ has quit [Quit: Connection closed for inactivity]
Spami has joined #ruby
GriffinHeart has quit [Ping timeout: 272 seconds]
devdazed has quit [Quit: Computer has gone to sleep.]
gtrak has joined #ruby
jobewan has quit [Quit: Leaving]
devdazed has joined #ruby
coderdad has quit [Ping timeout: 244 seconds]
sevvie has quit [Ping timeout: 244 seconds]
devdazed has quit [Client Quit]
BadQuanta has quit [Ping timeout: 260 seconds]
robustus has quit [Ping timeout: 255 seconds]
marr has quit []
robustus|Off has joined #ruby
robustus|Off is now known as robustus
msmith_ has joined #ruby
msmith_ has quit [Remote host closed the connection]
sevenseacat has joined #ruby
RichardLitt has quit [Ping timeout: 258 seconds]
rshetty has joined #ruby
cubicme has quit [Read error: Connection reset by peer]
jamto11 has quit [Ping timeout: 255 seconds]
davasaurous has quit [Remote host closed the connection]
codeurge has joined #ruby
lemur has joined #ruby
davasaurous has joined #ruby
cubicme has joined #ruby
insaneinside has quit [Ping timeout: 245 seconds]
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thoolihan has joined #ruby
krisquigley has joined #ruby
YamakasY has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
<tewlz> I
danijoo has joined #ruby
neonixcoder has joined #ruby
davasaurous has quit [Ping timeout: 240 seconds]
davedev24_ has quit [Read error: Connection reset by peer]
<tewlz> I'm writing a ruby script and trying to handle logging. Should I just make a module for MyLogger and pass around the logger instance?
davedev24_ has joined #ruby
krisquig_ has joined #ruby
<tewlz> right now it's just a rake task and two classes, so not sure what idiomatic ruby would do
<tewlz> s/rake task/Rakefile/
krisquigley has quit [Read error: Connection reset by peer]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jamto11 has joined #ruby
dope has joined #ruby
agjacome has quit [Quit: leaving]
krisquigley has joined #ruby
krisquig_ has quit [Read error: Connection reset by peer]
monkeypatch has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<gizmore> i have a database and what to create a string stream/line iterator ... like
ghostmoth has quit [Quit: ghostmoth]
<gizmore> EnumCreate { Records.find_each(user: foo) do |record| "record.date record.text" }
<gizmore> so there is not much mem overhead... i hope it´s clear what i mean
krisquig_ has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
<tewlz> gizmore: so what's the problem? Sounds like you know what you want to do.
codemonkey010101 has joined #ruby
<gizmore> tewlz: i am not sure how the technique is called and where to get an example
lukekhamilton has joined #ruby
Avahey has joined #ruby
<tewlz> gizmore: well I presume you would call the records using activerecord and you could create a StringIO to stream in the text and then do w.e. you want with it. I'm not sure if that's the best solution, but it should work
krisquig_ has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
krisquigley has joined #ruby
<gizmore> tewlz: i am not sure how to achieve that :(
chrishough has joined #ruby
<Fire-Dragon-DoL> mhh guys are there any way to perform CSV.foreach on a string file? I have a big csv file in memory but would like to avoid parsing it all at once
<Fire-Dragon-DoL> however, foreach accepts only a path =\
rikai has quit [Quit: No Ping reply in 180 seconds.]
codemonkey010101 has quit [Client Quit]
<gizmore> same stuff... Fire-Dragon-DoL i got some rails example for this
<tewlz> gizmore: which part are you not sure about?
monkeypatch has joined #ruby
<gizmore> tewlz: i return a new iterator using the AR.find_each stuff?
<Fire-Dragon-DoL> gizmore: send me them! :p
<tewlz> Fire-Dragon-DoL: check out CSV class, it can take in a string and you can tell it what the delimiters are then do things with it like turn it into an array that looks like a csv file
lemur has quit [Remote host closed the connection]
northfurr has joined #ruby
<tewlz> Fire-Dragon-DoL: ugh I was scrolled up somehow didn't read all of what you asked
lemur has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
krisquig_ has joined #ruby
govg has joined #ruby
<tewlz> I would think CSV has something for parsing row by row, in fact I'm pretty sure I've seen a tutorial on it before.
rikai has joined #ruby
<Fire-Dragon-DoL> tewlz: yes I know that, the problem is that I would like to parse the csv line by line, much like CSV.foreach is doing, instead of creating a HUGE array all at once, with all data parsed
<gizmore> oh... mine is for generating csv... i suppose csv.open do |row| or something exists
<Fire-Dragon-DoL> tewlz: CSV.foreach does it for sure, but it's for file only <.<
<Fire-Dragon-DoL> I don't have a file
<Fire-Dragon-DoL> :S
<Fire-Dragon-DoL> and no I can't write on a file <.<
<Fire-Dragon-DoL> (screw a lot of things)
<gizmore> Fire-Dragon-DoL: probably open file do |line|
<tewlz> Fire-Dragon-DoL: ahh so you're creating a CSV with an IO and want to parse row by row?
<Fire-Dragon-DoL> exactly
<gizmore> sry... i mean StringIO.open(string) or something
<Fire-Dragon-DoL> if you do by line without csv parsing, you may end up parsing some \n IN column
krisquigley has joined #ruby
<Fire-Dragon-DoL> http://rxr.whitequark.org/mri/source/lib/csv.rb <-- I think I found
kenneth has joined #ruby
<Fire-Dragon-DoL> looks like CSV.foreach is implemented as open <something>
<tewlz> does IO have some sort of read until "\n"?
<Fire-Dragon-DoL> no wait, it accepts a file only ARGH
krisquig_ has quit [Read error: Connection reset by peer]
<Fire-Dragon-DoL> tewlz: yes there is .readlines if I'm not wrong
fabrice31 has joined #ruby
<tewlz> Fire-Dragon-DoL: so could you readline, make it CSV, do work, throw away CSV, repeat?
<tewlz> I imagine you'll have to snag the headers outta there before doing that
slyv has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
lemur has quit [Ping timeout: 272 seconds]
krisquig_ has joined #ruby
lemur has joined #ruby
<Fire-Dragon-DoL> mhhh yes tewlz but I think you misunderstood: I have a csv file (a big string, not a CSV instance), I want to convert it to a CSV but line by line instead of all at once, so I can parse every row as an array and do stuff with it (sorry, not sure if you understood that point, I don't think you are stupid, don't hate me)
<tewlz> Fire-Dragon-DoL: sounds like you can do exactly what I just said, just don't close the CSV instance and keep writing into it
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
krisquigley has joined #ruby
krisquig_ has quit [Read error: Connection reset by peer]
<tewlz> I'm very inexperienced with all of this, so basically I'm just bouncing ideas around hoping you'll answer your own question. I know that's how I usually find answers :p
<Fire-Dragon-DoL> tewlz: oh maybe I understood what you mean
<Fire-Dragon-DoL> sorry guys
<Fire-Dragon-DoL> I'm stupid
<Fire-Dragon-DoL> parse( str, options = Hash.new ) { |row| ... }
<Fire-Dragon-DoL> <.<
<Fire-Dragon-DoL> I didn't notice the BLOCk
<Fire-Dragon-DoL> sigh
MeMoCooL has quit []
fabrice31 has quit [Ping timeout: 272 seconds]
krisquigley has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
hellangel7 has joined #ruby
<tewlz> :p
dannybit has joined #ruby
<tewlz> that's what I'm here for. To rubber duck with peple so that emotionall they think I answered their question and over time people start thinking I know what I'm talkign about
Azure has joined #ruby
dannybit has left #ruby [#ruby]
krisquig_ has joined #ruby
dannybit has joined #ruby
Wolland has joined #ruby
justinmburrous has quit [Remote host closed the connection]
lemur has quit [Remote host closed the connection]
<dannybit> Whats a good gem for ADB(Andorid debug bridge)
krisquigley has quit [Read error: Connection reset by peer]
lemur has joined #ruby
krisquig_ has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
j_mcnally has joined #ruby
dannybit has left #ruby [#ruby]
levisbakalinsky has joined #ruby
jdj_dk has quit [Ping timeout: 272 seconds]
aspires has quit []
patrick99e99 has joined #ruby
davasaurous has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
dannybit22 has joined #ruby
krisquigley has joined #ruby
lemur has quit [Ping timeout: 250 seconds]
chipotle has quit [Quit: cya]
ramfjord has quit [Ping timeout: 260 seconds]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
hellangel7 has quit [Remote host closed the connection]
dannybit22 has quit [Remote host closed the connection]
krisquig_ has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
daniel110 has joined #ruby
davasaurous has quit [Ping timeout: 260 seconds]
justinmburrous has joined #ruby
erylei has joined #ruby
patrick99e99 has quit [Ping timeout: 255 seconds]
krisquigley has joined #ruby
robustus|Off has joined #ruby
hellangel7 has joined #ruby
krisquig_ has quit [Read error: Connection reset by peer]
davasaurous has joined #ruby
hellangel7 has quit [Read error: Connection reset by peer]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robustus has quit [Ping timeout: 250 seconds]
robustus|Off is now known as robustus
kenneth has joined #ruby
GriffinHeart has joined #ruby
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
sepp2k1 has quit [Read error: Connection reset by peer]
kristofferR has joined #ruby
krisquig_ has joined #ruby
charliesome has quit [Quit: zzz]
x77686d has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
moritzschaefer has quit [Remote host closed the connection]
klmlfl has joined #ruby
krisquigley has joined #ruby
krisquig_ has quit [Read error: Connection reset by peer]
klmlfl_ has joined #ruby
oo_ has joined #ruby
GriffinHeart has quit [Ping timeout: 260 seconds]
rshetty has quit [Remote host closed the connection]
krisquig_ has joined #ruby
timonv_ has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
autonomousdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rshetty has joined #ruby
klmlfl has quit [Remote host closed the connection]
omosoj has quit [Quit: leaving]
wsmoak has quit [Quit: wsmoak]
oo_ has quit [Remote host closed the connection]
Lewix has joined #ruby
username has quit [Remote host closed the connection]
krisquig_ has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
wald0 has quit [Quit: Lost terminal]
coderdad has joined #ruby
rshetty_ has joined #ruby
rshetty has quit [Read error: No route to host]
krisquigley has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
jimmyhoughjr has joined #ruby
timonv_ has quit [Ping timeout: 260 seconds]
krisquigley has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
dorei has quit [Ping timeout: 240 seconds]
AtumT has quit [Remote host closed the connection]
coderdad has quit [Ping timeout: 260 seconds]
psy_ has quit [Ping timeout: 255 seconds]
JeffBonds has joined #ruby
abuzze has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
emocakes has quit []
klmlfl_ has quit [Remote host closed the connection]
abuzze_ has quit [Ping timeout: 246 seconds]
krisquigley has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
jimbach has quit [Remote host closed the connection]
jdj_dk has joined #ruby
msmith_ has joined #ruby
jimbach has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
jimbach_ has joined #ruby
klmlfl has joined #ruby
levisbakalinsky has quit [Remote host closed the connection]
krisquig_ has joined #ruby
freerobby has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
jamto11 has quit [Remote host closed the connection]
msmith_ has quit [Ping timeout: 240 seconds]
jimbach has quit [Ping timeout: 260 seconds]
otakbeku has joined #ruby
krisquigley has joined #ruby
jimbach has joined #ruby
krisquig_ has quit [Read error: Connection reset by peer]
tyll_ has joined #ruby
jimbach_ has quit [Ping timeout: 272 seconds]
jamto11 has joined #ruby
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
krisquig_ has joined #ruby
Haiiro has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
krisquigley has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
jimbach has quit [Ping timeout: 272 seconds]
tyll has quit [Ping timeout: 272 seconds]
krisquig_ has quit [Read error: Connection reset by peer]
D9 has quit [Quit: Leaving]
rshetty_ has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
rshetty has joined #ruby
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
gtrak has quit [Ping timeout: 260 seconds]
krisquigley has quit [Read error: Connection reset by peer]
krisquig_ has joined #ruby
justinmburrous has quit [Remote host closed the connection]
krisquigley has joined #ruby
krisquig_ has quit [Read error: Connection reset by peer]
jamto11 has quit [Remote host closed the connection]
rshetty has quit [Ping timeout: 272 seconds]
krisquigley has quit [Read error: Connection reset by peer]
krisquig_ has joined #ruby
freerobby has joined #ruby
starkhalo has quit [Quit: WeeChat 1.1-dev]
starkhalo has joined #ruby
krisquig_ has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
havenwood has quit [Remote host closed the connection]
jdj_dk has quit [Ping timeout: 272 seconds]
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
xcesariox has joined #ruby
emocakes has joined #ruby
Lutece has joined #ruby
Phrogz has joined #ruby
jamto11 has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
Phrogz has joined #ruby
Phrogz has quit [Changing host]
krisquigley has joined #ruby
klmlfl_ has joined #ruby
Phrogz has quit [Client Quit]
slester is now known as slester|away
Phrogz has joined #ruby
klmlfl_ has quit [Remote host closed the connection]
neonixcoder has quit [Quit: Leaving.]
krisquig_ has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
Blizzy has joined #ruby
xcesariox has quit [Read error: Connection reset by peer]
krisquig_ has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
klmlfl has quit [Remote host closed the connection]
tbrock has quit [Quit: Computer has gone to sleep.]
krisquig_ has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
emocakes has quit []
BadQuanta has joined #ruby
boombadaroomba has joined #ruby
krisquigley has joined #ruby
arup_r has joined #ruby
krisquig_ has quit [Read error: Connection reset by peer]
krisquigley has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
GriffinHeart has joined #ruby
neonixcoder has joined #ruby
JeffBonds has quit [Quit: JeffBonds]
bogeyd6 has quit [Ping timeout: 260 seconds]
boombadaroomba has quit [Ping timeout: 272 seconds]
krisquig_ has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
slyv has quit [Ping timeout: 272 seconds]
krisquig_ has quit [Read error: Connection reset by peer]
ferr has quit [Remote host closed the connection]
krisquigley has joined #ruby
x77686d has quit [Quit: x77686d]
justinmburrous has joined #ruby
GriffinHeart has quit [Ping timeout: 260 seconds]
iamjarvo has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
krisquigley has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
psy_ has joined #ruby
benzrf is now known as benzrf|offline
Takle has joined #ruby
cubicme has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
krisquig_ has joined #ruby
klmlfl has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
cubicme has joined #ruby
erylei has quit []
jdj_dk has joined #ruby
krisquig_ has quit [Read error: Connection reset by peer]
weemsledeux has joined #ruby
weemsledeux has quit [Changing host]
weemsledeux has joined #ruby
krisquigley has joined #ruby
psy_ has quit [Ping timeout: 246 seconds]
coderhs has joined #ruby
rshetty has joined #ruby
Takle has quit [Ping timeout: 260 seconds]
arup_r has quit [Quit: Leaving.]
jimmyhoughjr has joined #ruby
krisquig_ has joined #ruby
erylei has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
lw has quit [Quit: s]
hsps_ has joined #ruby
hsps_ has quit [Remote host closed the connection]
coderhs has quit [Read error: Connection reset by peer]
krisquig_ has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
suzylee has joined #ruby
coderdad has joined #ruby
suzylee has left #ruby ["Leaving"]
GinoMan has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
erylei has quit [Remote host closed the connection]
krisquigley has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rshetty_ has joined #ruby
daniel110 has quit [Quit: daniel110]
rshetty has quit [Read error: Connection reset by peer]
klmlfl has quit [Remote host closed the connection]
zcreative has joined #ruby
krisquig_ has joined #ruby
klmlfl has joined #ruby
coderdad has quit [Ping timeout: 240 seconds]
krisquigley has quit [Read error: Connection reset by peer]
psy_ has joined #ruby
klmlfl has quit [Remote host closed the connection]
krisquig_ has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
arup_r has joined #ruby
rshetty_ has quit [Remote host closed the connection]
krisquig_ has joined #ruby
monkeypa_ has joined #ruby
rshetty has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
jimbach has joined #ruby
monkeypatch has quit [Ping timeout: 260 seconds]
msmith_ has joined #ruby
krisquig_ has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
radic has quit [Disconnected by services]
radic_ has joined #ruby
jamto11 has quit [Remote host closed the connection]
rshetty has quit [Ping timeout: 255 seconds]
jdj_dk has quit [Ping timeout: 258 seconds]
krisquig_ has joined #ruby
jimbach has quit [Ping timeout: 260 seconds]
krisquigley has quit [Read error: Connection reset by peer]
slester|away has quit [Ping timeout: 272 seconds]
jamto11 has joined #ruby
msmith_ has quit [Ping timeout: 255 seconds]
davasaurous has quit [Remote host closed the connection]
cubicme has quit [Read error: Connection reset by peer]
davasaurous has joined #ruby
krisquig_ has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
cubicme has joined #ruby
daniel110 has joined #ruby
davasaurous has quit [Remote host closed the connection]
krisquig_ has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
bluehavana has joined #ruby
fabrice31 has joined #ruby
krisquig_ has quit [Read error: Connection reset by peer]
braincrash has quit [Quit: bye bye]
krisquigley has joined #ruby
havenwood has joined #ruby
Phrogz has quit []
krisquig_ has joined #ruby
oo_ has joined #ruby
benzrf|offline is now known as benzrf
Phrogz2 has joined #ruby
emocakes has joined #ruby
thumpba has quit [Ping timeout: 260 seconds]
krisquigley has quit [Read error: Connection reset by peer]
Phrogz2 is now known as Phrogz
Phrogz has joined #ruby
Phrogz has quit [Changing host]
fabrice31 has quit [Ping timeout: 246 seconds]
zcreative has quit [Quit: (null)]
krisquig_ has quit [Read error: Connection reset by peer]
braincrash has joined #ruby
krisquigley has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
justinmburrous has quit [Remote host closed the connection]
cubicme has quit [Read error: Connection reset by peer]
JeffBonds has joined #ruby
slester|away has joined #ruby
russt has joined #ruby
moshee has quit [Ping timeout: 250 seconds]
justinmburrous has joined #ruby
krisquig_ has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
dope has quit [Quit: Connection closed for inactivity]
cubicme has joined #ruby
krz has joined #ruby
krisquigley has joined #ruby
krisquig_ has quit [Read error: Connection reset by peer]
daniel110 has left #ruby [#ruby]
daniel110 has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
Phrogz has quit [Remote host closed the connection]
krisquigley has joined #ruby
davasaurous has joined #ruby
krisquig_ has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
hmsimha has joined #ruby
moshee has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
krisquig_ has quit [Read error: Connection reset by peer]
cubicme has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
GriffinHeart has joined #ruby
chrisja has quit [Quit: leaving]
cubicme has joined #ruby
jdj_dk has joined #ruby
krisquig_ has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
krisquig_ has quit [Read error: Connection reset by peer]
russt has quit [Quit: russt]
GriffinHeart has quit [Ping timeout: 272 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Hobogrammer_ has quit [Ping timeout: 245 seconds]
krisquig_ has joined #ruby
patrick99e99 has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
Lutece has quit [Quit: .]
emmesswhy has joined #ruby
Hobogrammer has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agent_white has joined #ruby
krisquigley has joined #ruby
kenneth has joined #ruby
krisquig_ has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
<agent_white> Evenin' folks
Rollabunna has quit [Remote host closed the connection]
dh64 has quit [Quit: Konversation terminated!]
<havenwood> good eve'
patrick99e99 has quit [Ping timeout: 244 seconds]
mpistone has quit []
Soda has joined #ruby
krisquigley has quit [Ping timeout: 240 seconds]
<havenwood> FizzBuzz with Transducers: https://gist.github.com/havenwood/c5c5b48bd96b77bea53d
<havenwood> because... yeah, erm...
echevemaster has quit [Quit: Leaving]
justinmburrous has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
<towski> what do you call the the url without the http:// part
oo_ has joined #ruby
<towski> maybe Protocol Relative URL
<towski> wonder how I get that part out of a URI
oo_ has quit [Read error: Connection reset by peer]
JeffBonds has quit [Quit: JeffBonds]
justinmburrous has joined #ruby
jdj_dk has quit [Ping timeout: 244 seconds]
JoshGlzBrk has joined #ruby
<havenwood> >> require 'uri'; uri = URI('http://blog.cognitect.com/blog/2014/8/6/transducers-are-coming'); "#{uri.host}#{uri.request_uri}"
<eval-in_> havenwood => "blog.cognitect.com/blog/2014/8/6/transducers-are-coming" (https://eval.in/205201)
coderdad has joined #ruby
<towski> awesome thanks havenwood
oo_ has joined #ruby
<towski> seems nicer than doing a sub "http(s)"
aquatty has quit [Ping timeout: 260 seconds]
<havenwood> towski: though that doesn't preserve queries, etc
centrx has joined #ruby
jimbach has joined #ruby
Phrogz has joined #ruby
Fezzler has joined #ruby
coderdad has quit [Ping timeout: 272 seconds]
freerobby has quit [Quit: Leaving.]
JeffBonds has joined #ruby
JBreit has joined #ruby
<havenwood> >> require 'uri'; uri = URI('https://www.google.com/search?q=uri';); uri.to_s.sub("#{uri.scheme}://", '')
jimbach has quit [Ping timeout: 245 seconds]
<havenwood> >> require 'uri'; uri = URI('https://www.google.com/search?q=uri';); "#{uri.host}#{uri.request_uri}"
<havenwood> towski: nevermind
JBreit has left #ruby [#ruby]
neonixcoder has quit [Quit: Leaving.]
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby
toretore has quit [Quit: This computer has gone to sleep]
msmith_ has joined #ruby
centrx has quit [Quit: The plan is programmed into every one of my one thousand robots]
oo_ has quit [Remote host closed the connection]
decoponio has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
jimmyhoughjr has joined #ruby
Phrogz has quit [Ping timeout: 258 seconds]
Lewix has quit [Ping timeout: 255 seconds]
emocakes has quit [Ping timeout: 260 seconds]
chipotle has joined #ruby
arup_r has quit [Quit: Leaving.]
msmith_ has quit [Ping timeout: 255 seconds]
daniel110 has quit [Quit: daniel110]
emocakes has joined #ruby
Fezzler has quit [Quit: Leaving]
<havenwood> oops, i composed in the wrong order, fixed
rshetty has joined #ruby
maletor has joined #ruby
penzrgb has quit [Ping timeout: 246 seconds]
jdj_dk has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
thumpba has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
daniel110 has joined #ruby
GriffinHeart has joined #ruby
daniel110 has left #ruby [#ruby]
anaeem1 has joined #ruby
neonixcoder has joined #ruby
GriffinHeart has quit [Ping timeout: 260 seconds]
benzrf is now known as benzrf|offline
nonks has quit [Ping timeout: 246 seconds]
<havenwood> trying to find someone else who cares about transducers in any channel.. :P
anaeem1 has quit [Remote host closed the connection]
<havenwood> fun to play with anyways
anaeem1_ has joined #ruby
hmsimha has quit [Ping timeout: 258 seconds]
justinmburrous has quit [Remote host closed the connection]
otakbeku has quit [Quit: leaving]
maletor has quit [Quit: Computer has gone to sleep.]
goshdarnyou has quit [Quit: Connection closed for inactivity]
Channel6 has quit [Quit: Leaving]
jdj_dk has quit [Ping timeout: 272 seconds]
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JeffBonds has quit [Quit: JeffBonds]
dkphenom has joined #ruby
kyb3r_ has joined #ruby
davasaurous has quit []
wethu has quit [Quit: This computer has gone to sleep]
GinoMan has quit [Ping timeout: 272 seconds]
mikeg has joined #ruby
goshdarnyou has joined #ruby
sumark has quit [Remote host closed the connection]
jimmyy has quit [Ping timeout: 255 seconds]
jxf has quit [Quit: Leaving]
levisbakalinsky has joined #ruby
cubicme has quit [Quit: cubicme]
cubicme has joined #ruby
ght has quit [Quit: leaving]
bluOxigen has joined #ruby
jimbach has joined #ruby
gizmore has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
xenomorph is now known as {xenomorph}
rippa has joined #ruby
justinmburrous has joined #ruby
wildroman2 has joined #ruby
hamakn has quit [Remote host closed the connection]
c107 has quit [Remote host closed the connection]
hamakn has joined #ruby
coderdad has joined #ruby
schaerli has joined #ruby
rshetty has quit [Remote host closed the connection]
jimbach has quit [Ping timeout: 240 seconds]
txdv_ has quit [Ping timeout: 272 seconds]
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
deject3d_laptop has joined #ruby
spastorino has quit [Quit: Connection closed for inactivity]
kyb3r_ has quit [Read error: Connection reset by peer]
emocakes has quit [Ping timeout: 260 seconds]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yeticry has quit [Ping timeout: 258 seconds]
yeticry has joined #ruby
rshetty has joined #ruby
kyb3r_ has joined #ruby
coderdad has quit [Ping timeout: 244 seconds]
c107 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
jxf has joined #ruby
JoshGlzBrk has joined #ruby
deject3d_laptop has quit [Quit: Computer has gone to sleep.]
fabrice31 has joined #ruby
Channel6 has joined #ruby
jdj_dk has joined #ruby
codeurge has quit [Ping timeout: 246 seconds]
Phrogz has joined #ruby
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
penzrgb has joined #ruby
penzrgb has quit [Max SendQ exceeded]
msmith_ has joined #ruby
jimmyy has joined #ruby
penzrgb has joined #ruby
fabrice31 has quit [Ping timeout: 255 seconds]
yfeldblu_ has joined #ruby
Phrogz has quit [Ping timeout: 258 seconds]
yfeldblu_ has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
yfeldblu_ has joined #ruby
IceDragon has quit [Quit: Space~~~]
yfeldblum has quit [Ping timeout: 244 seconds]
rshetty has quit [Remote host closed the connection]
emdub has quit [Quit: Lost terminal]
emdub has joined #ruby
msmith_ has quit [Ping timeout: 272 seconds]
sinkensabe has joined #ruby
tlarevo has joined #ruby
tlarevo_ has joined #ruby
tlarevo has quit [Read error: Connection reset by peer]
schaerli has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
Blizzy has quit [Ping timeout: 255 seconds]
nonks has joined #ruby
starkhalo has quit [Ping timeout: 258 seconds]
justinmb_ has joined #ruby
jdj_dk has quit [Ping timeout: 240 seconds]
rshetty has joined #ruby
aBound has joined #ruby
GriffinHeart has quit [Ping timeout: 250 seconds]
arup_r has joined #ruby
justinmburrous has quit [Ping timeout: 260 seconds]
aBound has left #ruby ["Leaving"]
levisbakalinsky has quit [Read error: Connection reset by peer]
levisbakalinsky has joined #ruby
sumark has joined #ruby
krisquigley has joined #ruby
Photism has quit [Quit: Leaving]
anarang has joined #ruby
Channel6 has quit [Quit: Leaving]
krisquigley has quit [Ping timeout: 255 seconds]
monkeypa_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
monkeypatch has joined #ruby
Wolland has quit [Ping timeout: 255 seconds]
coderhs has joined #ruby
levisbakalinsky has quit [Read error: Connection reset by peer]
coderhs has quit [Client Quit]
cdownard has joined #ruby
threesixes has joined #ruby
patrick99e99 has joined #ruby
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
skolman_ has quit [Remote host closed the connection]
skolman has joined #ruby
patrick99e99 has quit [Ping timeout: 260 seconds]
Spami has joined #ruby
jimmyy has quit [Ping timeout: 260 seconds]
havenwood has quit [Ping timeout: 264 seconds]
jimbach has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
speaking1ode has joined #ruby
skolman has quit [Ping timeout: 260 seconds]
speakingcode has quit [Ping timeout: 260 seconds]
anaeem1__ has joined #ruby
jdj_dk has joined #ruby
jimbach has quit [Ping timeout: 260 seconds]
Soda has quit [Remote host closed the connection]
neoxquick has quit [Read error: Connection reset by peer]
cubicme has quit [Ping timeout: 272 seconds]
anaeem1_ has quit [Ping timeout: 245 seconds]
suy has quit [Remote host closed the connection]
cubicme has joined #ruby
emmesswhy has joined #ruby
coderdad has joined #ruby
emmesswhy has quit [Client Quit]
Musashi007 has joined #ruby
suy has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
Musashi007 has quit [Client Quit]
hamakn has joined #ruby
vimer has joined #ruby
JeffBonds has joined #ruby
<Hanmac> ping shevy
sinkensabe has quit []
suy has quit [Remote host closed the connection]
coderdad has quit [Ping timeout: 250 seconds]
emmesswhy has joined #ruby
kenneth has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
abuzze has quit [Remote host closed the connection]
slester|away has quit [Ping timeout: 272 seconds]
emmesswhy has quit [Client Quit]
neonixcoder has quit [Quit: Leaving.]
agent_white has quit [Read error: Connection reset by peer]
Phrogz has joined #ruby
monkeypatch has quit [Quit: Textual IRC Client: www.textualapp.com]
msmith_ has joined #ruby
agent_white has joined #ruby
jdj_dk has quit [Ping timeout: 260 seconds]
abuzze has joined #ruby
abuzze has quit [Remote host closed the connection]
Phrogz has quit [Ping timeout: 260 seconds]
hmsimha has joined #ruby
thumpba has quit [Read error: Connection reset by peer]
msmith_ has quit [Ping timeout: 240 seconds]
suy has joined #ruby
thumpba has joined #ruby
jamto11 has quit [Remote host closed the connection]
goodenough has joined #ruby
jamto11 has joined #ruby
GriffinHeart has joined #ruby
rshetty has quit [Remote host closed the connection]
arup_r has quit [Remote host closed the connection]
bal has joined #ruby
GriffinHeart has quit [Ping timeout: 244 seconds]
jamto11 has quit [Remote host closed the connection]
tyll_ has quit [Ping timeout: 240 seconds]
anaeem1__ has quit [Remote host closed the connection]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
oleo has quit [Quit: Verlassend]
anaeem1_ has joined #ruby
tyll has joined #ruby
ht__th has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lolmaus has quit [Quit: Konversation terminated!]
j03_ has joined #ruby
rkazak has joined #ruby
ARCADIVS has quit [Quit: WeeChat 0.4.3]
timonv_ has joined #ruby
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
schaerli has joined #ruby
jimmyy has joined #ruby
julieeharshaw has quit [Ping timeout: 272 seconds]
JeffBonds has quit [Quit: JeffBonds]
julieeharshaw has joined #ruby
jdj_dk has joined #ruby
anaeem1_ has quit [Quit: Leaving...]
anaeem1 has joined #ruby
boombadaroomba has joined #ruby
neonixcoder has joined #ruby
mike32 has joined #ruby
northfurr has quit [Quit: northfurr]
j_mcnally has quit [Quit: さよなら]
aganov has joined #ruby
alem0lars has joined #ruby
User458764 has joined #ruby
boombadaroomba has quit [Ping timeout: 246 seconds]
jimbach has joined #ruby
fabrice31 has joined #ruby
havenwood has joined #ruby
ddv has joined #ruby
justinmb_ has quit [Read error: Connection reset by peer]
justinmburrous has joined #ruby
neonixcoder has quit [Quit: Leaving.]
codecop has joined #ruby
HelperW__ has joined #ruby
jimbach has quit [Ping timeout: 272 seconds]
bigkevmcd has joined #ruby
pandaant has joined #ruby
Avahey has quit [Quit: Connection closed for inactivity]
TTilus has quit [Ping timeout: 250 seconds]
suy has quit [Remote host closed the connection]
apeiros has joined #ruby
suy has joined #ruby
klaut has joined #ruby
rbrs has joined #ruby
suy has quit [Remote host closed the connection]
threesixes has quit [Ping timeout: 258 seconds]
jdj_dk has quit [Ping timeout: 272 seconds]
ramfjord has joined #ruby
j03_ has left #ruby [#ruby]
Xeago has joined #ruby
kamilc__ has joined #ruby
rbrs has quit [Remote host closed the connection]
goshdarnyou has quit [Quit: Connection closed for inactivity]
coderdad has joined #ruby
nonks has quit [Ping timeout: 272 seconds]
foooobear has joined #ruby
wildroman2 has joined #ruby
timonv_ has quit [Remote host closed the connection]
neonixcoder has joined #ruby
Macaveli has joined #ruby
suy has joined #ruby
Wolland has joined #ruby
coderdad has quit [Ping timeout: 240 seconds]
rkazak has left #ruby [#ruby]
ringaring has joined #ruby
ringarin has joined #ruby
suy has quit [Remote host closed the connection]
tylersmith has quit [Remote host closed the connection]
klaut has quit [Remote host closed the connection]
tylersmith has joined #ruby
wildroman2 has quit [Read error: No route to host]
ringaroses2 has joined #ruby
amundj has joined #ruby
wildroman2 has joined #ruby
ringarin has quit [Read error: Connection reset by peer]
ringaring has quit [Read error: Connection reset by peer]
ringarin has joined #ruby
Phrogz has joined #ruby
Ulrike_Rayne has joined #ruby
nonks has joined #ruby
abuzze has joined #ruby
wethu has joined #ruby
bal has quit [Ping timeout: 255 seconds]
msmith_ has joined #ruby
GriffinHeart has joined #ruby
agent_white has quit [Quit: brb]
tylersmith has quit [Ping timeout: 260 seconds]
bal has joined #ruby
mikeg has quit [Ping timeout: 255 seconds]
Phrogz has quit [Ping timeout: 258 seconds]
emmesswhy has joined #ruby
suy has joined #ruby
msmith_ has quit [Ping timeout: 260 seconds]
chipotle has quit [Quit: cya]
GriffinHeart has quit [Ping timeout: 260 seconds]
wethu has quit [Quit: This computer has gone to sleep]
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
Guest41741 has quit [Ping timeout: 260 seconds]
noop has joined #ruby
krisquigley has joined #ruby
ringarin has quit [Read error: Connection reset by peer]
ringaroses2 has quit [Read error: Connection reset by peer]
ringarin has joined #ruby
charliesome has quit [Quit: zzz]
jdj_dk has joined #ruby
Sp4rKy_ has joined #ruby
TTilus has joined #ruby
alem0lars has quit [Quit: AFK..]
alem0lars has joined #ruby
akemrir has joined #ruby
sk87 has joined #ruby
krisquigley has quit [Ping timeout: 244 seconds]
ringarin has quit [Read error: Connection reset by peer]
ringaring has joined #ruby
agent_white has joined #ruby
Sp4rKy_ has quit [Ping timeout: 255 seconds]
Imofftopic has joined #ruby
poguez has quit [Quit: Connection closed for inactivity]
jimmyy has quit [Ping timeout: 244 seconds]
charliesome has joined #ruby
Sp4rKy_ has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
ringaring has quit [Read error: Connection reset by peer]
ringaring has joined #ruby
neonixcoder has quit [Quit: Leaving.]
TTilus has quit [Ping timeout: 260 seconds]
cubicme has quit [Ping timeout: 260 seconds]
TTilus has joined #ruby
jimbach has joined #ruby
justinmburrous has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
Imofftopic has quit [Quit: Leaving]
Xeago has joined #ruby
terlar has joined #ruby
<shevy> hey
ringaring has quit [Read error: Connection reset by peer]
ringaroses2 has joined #ruby
<agent_white> \o
jimbach has quit [Ping timeout: 260 seconds]
top4o has quit [Quit: ChatZilla 0.9.91 [Firefox 32.0.3/20140923175406]]
penzrgb has quit [Quit: This computer has gone to sleep]
charliesome has quit [Ping timeout: 272 seconds]
patrick99e99 has joined #ruby
wethu has joined #ruby
<Hanmac> ping shevy
cu__ has joined #ruby
jdj_dk has quit [Ping timeout: 272 seconds]
<Hanmac> shevy did you try https://rubygems.org/gems/rwx ?
charliesome has joined #ruby
patrick99e99 has quit [Ping timeout: 246 seconds]
himsin has joined #ruby
cu__ has quit [Quit: Lingo - http://www.lingoirc.com]
<shevy> not yet
jimmyy has joined #ruby
<shevy> gem install rwx
<shevy> ERROR: Could not find a valid gem 'rwx' (>= 0) in any repository
jimmyy has quit [Max SendQ exceeded]
jimmyy has joined #ruby
druznek has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
nonks has quit [Ping timeout: 240 seconds]
awestroke has joined #ruby
echooo has joined #ruby
ki0 has joined #ruby
ki0 has quit [Remote host closed the connection]
ki0 has joined #ruby
rdark has joined #ruby
alem0lars has quit [Quit: AFK..]
cdownard has quit [Remote host closed the connection]
sk87 has joined #ruby
timonv_ has joined #ruby
echooo2 has quit [Ping timeout: 240 seconds]
<Hanmac> shevy look at the link you need pre
coderdad has joined #ruby
jacobat has joined #ruby
blackmesa has joined #ruby
JohnBat26 has joined #ruby
alex88 has joined #ruby
livathinos has joined #ruby
Takle has joined #ruby
alem0lars has joined #ruby
druznek has quit [Ping timeout: 250 seconds]
wethu has quit [Quit: This computer has gone to sleep]
chthon has joined #ruby
coderdad has quit [Ping timeout: 246 seconds]
jxf has quit [Ping timeout: 245 seconds]
GriffinHeart has joined #ruby
pandaant has quit [Remote host closed the connection]
moritzschaefer has joined #ruby
ki0 has quit [Remote host closed the connection]
bMalum has joined #ruby
pandaant has joined #ruby
arup_r has joined #ruby
larissa has quit [Quit: Leaving]
drago777 has quit [Ping timeout: 258 seconds]
pandaant has quit [Remote host closed the connection]
fumk has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
ki0 has joined #ruby
jdj_dk has joined #ruby
<shevy> gem install rwx --pre
<shevy> checking for wx-config... no
<shevy> wx-config executable not found!
Phrogz has joined #ruby
GriffinHeart has quit [Ping timeout: 272 seconds]
<shevy> will this one work?
Takle has quit [Ping timeout: 260 seconds]
<Hanmac> shevy yes you need wxConfig specially a 3.0+ version
msmith_ has joined #ruby
elaptics`away is now known as elaptics
olivier_bK has joined #ruby
<Hanmac> and yes, if i would bundle wxWidgets with rwx like nokogiri does do it with libxml it would be a total overkill
<shevy> nokogiri is run by a bunch of monkeys
<Hanmac> nokogiri itself is not so bad imoi
charliesome has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
Phrogz has quit [Ping timeout: 244 seconds]
timonv_ has quit [Read error: Connection reset by peer]
ringaroses2 has quit [Read error: Connection reset by peer]
sandelius has joined #ruby
msmith_ has quit [Ping timeout: 245 seconds]
roolo has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
francisfish has joined #ruby
druznek has joined #ruby
<Hanmac> shevy: and? do you manage to install wx and rwx?
drago777 has joined #ruby
<shevy> compiling wxWidgets-3.0.2 right now
<shevy> quite large it is
bMalum has quit [Quit: bMalum]
<shevy> wxWidgets-3.0.2.tar.xz 16M
<Hanmac> for building rwx it also says "Building native extensions. This could take a while..." ... and it does mean it
fumk has joined #ruby
AFKGeek has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
<shevy> damn, wxwidgets wants gstreamer 0.10
mengu has joined #ruby
mengu has joined #ruby
<Hanmac> hm yeah it isnt updated to gst1.0 yet ... hm maybe if i find the time i might do it
<shevy> gstreamer is mandatory?
psy_ has quit [Quit: Leaving]
<shevy> Makefile:507: recipe for target 'libgstparse_la-grammar.tab.lo' failed
<shevy> make[3]: *** [libgstparse_la-grammar.tab.lo] Error 1
<shevy> make[3]: Leaving directory '/Depot/Temp/gstreamer-0.10.36/BUILD/gst/parse'
<shevy> ok that failed
tkuchiki has quit [Remote host closed the connection]
ghr has joined #ruby
<shevy> gstreamer 1.4.3 works fine though
charliesome has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nonks has joined #ruby
Takle has joined #ruby
mike32 has quit [Remote host closed the connection]
mike32 has joined #ruby
schaerli has quit [Remote host closed the connection]
jdj_dk has quit [Ping timeout: 260 seconds]
Xeago has quit [Remote host closed the connection]
ephemerian has joined #ruby
AlSquire has joined #ruby
olivier_bK1 has joined #ruby
W0rmDr1nk has quit [Ping timeout: 260 seconds]
alem0lars has quit [Quit: AFK..]
olivier_bK has quit [Quit: Quitte]
olivier_bK1 has quit [Client Quit]
ringarin has joined #ruby
jimbach has joined #ruby
olivier_bK has joined #ruby
ctp has joined #ruby
ta has joined #ruby
jacobat has quit [Ping timeout: 272 seconds]
brahmadpk has joined #ruby
arup_r has quit [Remote host closed the connection]
jimbach has quit [Ping timeout: 260 seconds]
c107 has quit [Remote host closed the connection]
ayaz has joined #ruby
terlar has quit [Quit: WeeChat 1.0.1]
arup_r has joined #ruby
thumpba_ has joined #ruby
bMalum has joined #ruby
thumpba has quit [Ping timeout: 244 seconds]
einarj has joined #ruby
AlSquire has quit [Ping timeout: 250 seconds]
alem0lars has joined #ruby
<olivier_bK> hy all
jhass|off is now known as jhass
jacobat has joined #ruby
ujjain has joined #ruby
<ujjain> tSYMBEG, expecting tAMPER (SyntaxError) < what does this mean?
bMalum has quit [Client Quit]
<tobiasvl> weird error message, but I'm assuming SYMBEG means "symbol beginning", ie. colon? and AMPER is ampersand, so &
ferr has joined #ruby
<tobiasvl> did you write :&foo instead of &:foo ?
<tobiasvl> ujjain: ^
mityaz has joined #ruby
bMalum has joined #ruby
<ujjain> I don't know, the customer wrote this in chef and appearently blames our API, not even sure what his error means.
<epitron> you should get more backtrace/context from him
<shevy> well it must be an error in his code I guess
<Hanmac> ujjain: hm make a pastie of your thing and we might fight the error
ringarin has quit [Read error: Connection reset by peer]
<shevy> fight or find
bMalum has quit [Client Quit]
<epitron> find then fight
Takle has quit [Remote host closed the connection]
ringarin has joined #ruby
drago777 has quit [Ping timeout: 258 seconds]
krisquigley has joined #ruby
Morkel has joined #ruby
<Hanmac> hm depending how big it is you might need to fight it ... hm and if its to big you need to flee ;P
<Hanmac> shevy still building?
<shevy> Hanmac no it fails at gstreamer 0.8
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> as I can not compile gstreamer 0.8 either I am stuck
<crome> his machine is begging for more amperage
<shevy> /usr/bin/ld: cannot find -lgstreamer-0.10
<shevy> /usr/bin/ld: cannot find -lgstinterfaces-0.10
<ujjain> thanks :)
<shevy> ./grammar.y:39:5: note: declared here
<shevy> Makefile:507: recipe for target 'libgstparse_la-grammar.tab.lo' failed
sandelius has joined #ruby
<shevy> ujjain no man
<shevy> /var/lib/gems/1.8/gems/mixlib-shellout-1.6.0/lib/mixlib/shellout/unix.rb:294: syntax error, unexpected tSYMBEG, expecting tAMPER (SyntaxError)
fumk has quit [Quit: changing servers]
<Hanmac> shevy hm no gst0.10 should work
<shevy> that .rb file
Aaaal has joined #ruby
<shevy> Hanmac it does not compile, it fails in grammar.y
<shevy> ujjain open that .rb file in your editor and paste it on a pastie
lolmaus has joined #ruby
<Hanmac> shevy hm ok but whats your os that you need to compile gst yourself? cant you use a package?
<shevy> I compile everything from source
<shevy> gstreamer-1.4.3 compiles fine
<shevy> I can not use a package
<ujjain> pastie has no option to delete your pastes easily, no register option, I'm a bit affraid to post private information, ip's, etc.
jdj_dk has joined #ruby
<Hanmac> shevy gst1.4.3 might be to high version ... you need a 0.10.* one for wx ...
<shevy> cant you use gist github ujjain?
<crome> that mixlib gem has interesting things
<shevy> Hanmac yeah and I can not compile it. wxwidget also has no option to disable gstreamer
<crome> raise 'forty-two' # Should never get here
<crome> love coding like this
<shevy> lol crome
<Hanmac> ujjain: the problem is the 1.8 ruby ... you need a newer one
mkaesz has joined #ruby
<shevy> ohhhh coool old debian ruby :)
thumpba_ has quit [Read error: Connection reset by peer]
<ujjain> so it's a code issue or could possibly be our API giving issues for them?
<crome> I would totally make a ShouldNeverGetHereError class
thumpba has joined #ruby
<tobiasvl> ujjain: if your API clearly states that it's only compatible with ancient ruby then it's his code that's at fault
<crome> alright, now work
<Hanmac> shevy you on a debian or ubuntu?
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
W0rmDr1nk has joined #ruby
<Hanmac> shevy hm for wxwidgets you might need to configure it again ... normally it does detect that do not have gst and them does not add it to wx ...
<Hanmac> ujjain: that mixlib is not compatible with your old ruby, and shouldnt even been possible to installed on your system
<ujjain> ah ok, thanks Hanmac.
marr has joined #ruby
banister has joined #ruby
skand has joined #ruby
<Hanmac> banister: look what i did https://rubygems.org/gems/rwx
terlar has joined #ruby
timonv_ has joined #ruby
charliesome has quit [Quit: zzz]
terlar has quit [Client Quit]
alem0lars has quit [Quit: AFK..]
alem0lars has joined #ruby
coderdad has joined #ruby
Deejay_ has joined #ruby
techsethi has joined #ruby
charliesome has joined #ruby
Takle has joined #ruby
<shevy> Hanmac nope I am not on a debian system
<Hanmac> hm okay because debian has something like apt-get "build-deb" and it does install all packages needed to build it
<Hanmac> hm ping me shevy when you manage to build wxwidgets
coderdad has quit [Ping timeout: 246 seconds]
alem0lars has quit [Client Quit]
chthon has quit [Quit: Ex-Chat]
Xeago has joined #ruby
lkba has quit [Ping timeout: 272 seconds]
alem0lars has joined #ruby
rshetty has joined #ruby
Macaveli has joined #ruby
<shevy> well let's see
Phrogz has joined #ruby
<shevy> I removed all of gstreamer
<shevy> ./src/unix/mediactrl.cpp:20:61: fatal error: gst/gst.h: No such file or directory
jdj_dk has quit [Ping timeout: 250 seconds]
<shevy> nope
<shevy> wxwidgets failed
msmith_ has joined #ruby
skand has quit [Remote host closed the connection]
<shevy> there is no chance to install it without gst
schaerli has joined #ruby
bayed has joined #ruby
<Hanmac> hm if you could use a package system you might not have such a problem ... and like i said if you manage to build gst0.10 it should work
andrewlio has joined #ruby
Phrogz has quit [Ping timeout: 258 seconds]
<Hanmac> shevy you could look if your package system does have "libgstreamer0.10-dev"
startupality has joined #ruby
<shevy> well
drago777 has joined #ruby
fumk has joined #ruby
fumk has quit [Remote host closed the connection]
<shevy> the problem is that a whole widget system depends on a video/audio thingy like gstreamer
wildroman2 has quit [Remote host closed the connection]
ringaring has joined #ruby
msmith_ has quit [Ping timeout: 255 seconds]
BadQuanta has quit [Ping timeout: 260 seconds]
blackmesa has quit [Ping timeout: 272 seconds]
<shevy> in ruby-gnome there is a separate gstreamer/ directory with those bindings
<Hanmac> shevy you could try wxWidgets trunk
ringarin has quit [Read error: Connection reset by peer]
<shevy> k
agent_white has quit [Quit: gnight]
Advocation has joined #ruby
<Hanmac> shevy wxWidgets has a VideoPlayer widget too ... so there is a reason for it ... but yes the dependecy should be optional
jamto11 has joined #ruby
DaniG2k has joined #ruby
fumk has joined #ruby
chthon has joined #ruby
alem0lars has quit [Quit: AFK..]
jamto11 has quit [Ping timeout: 246 seconds]
<zmyrgel> hi, I'm trying to debug my ruby script which doesn't seem to run properly
cina has joined #ruby
<zmyrgel> I've added logging to script and I'm running it from task scheduler, it shows that the script starts but doesn't seem to finish properly
sevenseacat has quit [Remote host closed the connection]
<zmyrgel> the log output shows "Making sure necessary ..." lines but shows "All done" line only once
<zmyrgel> so it seems it runs through the script once and later runs terminate too early or am I missing something
<shevy> $omh_dir = Pathname.new("M:/")
cina has quit [Client Quit]
cina has joined #ruby
jimbach has joined #ruby
alem0lars has joined #ruby
<zmyrgel> shevy: ?
ad_boot has joined #ruby
goodenough has quit [Remote host closed the connection]
<shevy> that codebase man
rshetty has quit [Remote host closed the connection]
workmad3 has joined #ruby
rshetty has joined #ruby
cina has quit [Client Quit]
arup_r has quit [Remote host closed the connection]
cina has joined #ruby
yfeldblum has joined #ruby
jimbach has quit [Ping timeout: 260 seconds]
ta has quit [Read error: Connection reset by peer]
bal has quit [Ping timeout: 255 seconds]
ta has joined #ruby
<zmyrgel> any ideas why the first run seems to work with the script but not the latter ones?
Hobogrammer has quit [Ping timeout: 260 seconds]
rshetty has quit [Ping timeout: 246 seconds]
yfeldblu_ has quit [Ping timeout: 260 seconds]
startupality has quit [Quit: startupality]
<shevy> how shall people debug this when you don't give error messages
AlSquire has joined #ruby
wildroman2 has joined #ruby
<Hanmac> zmyrgel: hm maybe the status file does not exist? did you checked that?
rafadc has joined #ruby
<zmyrgel> Hanmac: if the status file is missing, the code should skip to end and print the "All done" to log
cina has quit [Quit: leaving]
<zmyrgel> now I only see one All done in the log file but multiple lines with "Making sure necessary..." and nothing else
alem0lars has quit [Quit: AFK..]
<zmyrgel> shevy: there are no error messages to show
pibby has quit [Ping timeout: 255 seconds]
<zmyrgel> the script is run from task scheduler every 30min to check if the remote server has pushed the zip file and the done.txt to the incoming dir
jdj_dk has joined #ruby
startupality has joined #ruby
bMalum has joined #ruby
mijicd has joined #ruby
bal has joined #ruby
Advocation has quit [Quit: Advocation]
patrick99e99 has joined #ruby
Takle has quit [Remote host closed the connection]
ringaroses2 has joined #ruby
ringaring has quit [Read error: Connection reset by peer]
GeorgesLeYeti has joined #ruby
<shevy> yeah
<shevy> your code is not simple to debug
patrick99e99 has quit [Ping timeout: 240 seconds]
rbrs has joined #ruby
<zmyrgel> it should monitor incoming dir for ASCII*.zip files and done.txt file, if both are found, it should extract the selected files from ASCII zip and move them to ote / omh dirs and remove the done.txt
rshetty has joined #ruby
<zmyrgel> and also move the processed ASCII zip files to backup dir
Takle has joined #ruby
<zmyrgel> the script seemed to work just fine when testing from command line but the scheduled runs seem to have some issue
arup_r has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
garethrees has joined #ruby
txdv has joined #ruby
mengu has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 240 seconds]
rafadc has quit []
jdj_dk has quit [Ping timeout: 255 seconds]
emmesswhy has joined #ruby
blackmesa has joined #ruby
bMalum has quit [Quit: bMalum]
txdv has quit [Ping timeout: 245 seconds]
tokik has joined #ruby
mike32 has quit [Ping timeout: 272 seconds]
alem0lars has joined #ruby
skand has joined #ruby
narcan has joined #ruby
Hightower_ has quit [Quit: Given the choice between you, I'll take the sea-sick crocodile.]
coderdad has joined #ruby
Hightower_ has joined #ruby
havenwood has joined #ruby
krisquigley has quit []
ramfjord has quit [Ping timeout: 260 seconds]
Hightower_ has quit [Client Quit]
emmesswhy has quit [Quit: This computer has gone to sleep]
Hightower_ has joined #ruby
GriffinHeart has joined #ruby
<zmyrgel> as I get "Making sure " lines in the log file, the script is running at correct times
andrewh has joined #ruby
coderdad has quit [Ping timeout: 255 seconds]
joonty has joined #ruby
<zmyrgel> what is curious is, that I don't get matching "all done" or "Error running script" lines to log
<zmyrgel> shouldn't the 'rescue Exception' cover all exceptions?
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
havenwood has quit [Ping timeout: 264 seconds]
krisquigley has joined #ruby
alem0lars has quit [Quit: AFK..]
gr33n7007h has joined #ruby
GriffinHeart has quit [Ping timeout: 245 seconds]
<shevy> yes
<shevy> the logical conclusion is that your code would not raise an exception
<Hanmac> zmyrgel: hm replace it with "rescue => e "
Phrogz has joined #ruby
epsylon has joined #ruby
<Hanmac> "rescue Exception" is to critical because it also catchs syntax error in your script
<zmyrgel> shevy: but shouldn't it log "All done" if no exception was raised?
<shevy> zmyrgel what happens when you remove the begin rescue statement
<shevy> zmyrgel that depends on whether the object logger works or not
txdv has joined #ruby
<zmyrgel> I get the "Making sure necessary directories exist" lines in the log file every 30min
<zmyrgel> so it would seem logger work
msmith_ has joined #ruby
<shevy> see
<zmyrgel> s/work/works/
<shevy> you have one check called: if $status_file.exist?
dfcbeb has joined #ruby
<shevy> that code is such a spaghetti mess
emmesswhy has joined #ruby
<shevy> no clear separation of concerns, no module, classes or methods, global variables used everywhere when there is no need, and Pathname
alem0lars has joined #ruby
{xenomorph} is now known as xenomorph
<zmyrgel> shevy: all which are pretty pointless to job this simple and small
<shevy> what should happen if "if $status_file.exist?" is false by the way?
<shevy> it is not pointless because you have an error you can not debug
<zmyrgel> shevy: it should log "all done"?
<shevy> zmyrgel how do you know that should happen?
<tobiasvl> why are all the variables except logger global
<tobiasvl> :P
<shevy> because he is new to programming
Phrogz has quit [Ping timeout: 272 seconds]
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zmyrgel> shevy: new to ruby and under schedule
hellangel7 has joined #ruby
hellangel7 has quit [Max SendQ exceeded]
msmith_ has quit [Ping timeout: 245 seconds]
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
alem0lars has quit [Client Quit]
ringaroses2 has quit [Read error: Connection reset by peer]
jamto11 has joined #ruby
<zmyrgel> shevy: the "all done" logging call is outside the if block so it should execute in any case?
<shevy> yes
sk87 has joined #ruby
<zmyrgel> so why my log shows it only once
<shevy> obviously not if an error happens in the prior if clause
<shevy> because you are doing something wrong
<zmyrgel> and I'm asking here for help
<shevy> and as I wrote before, how should anyone else debug this
<shevy> you don't give any specific error
<shevy> >> begin; puts 'hi' if 5/0; rescue Exception => error; puts error; end
<eval-in_> shevy => divided by 0 ... (https://eval.in/205244)
jimbach has joined #ruby
<shevy> >> begin; puts 'hi' if 5/0; rescue Exception => error; puts error.class; end
<eval-in_> shevy => ZeroDivisionError ... (https://eval.in/205245)
<shevy> now see, that is how errors should be shown
GinoMan has joined #ruby
zarubin has joined #ruby
yfeldblum has quit [Remote host closed the connection]
jamto11 has quit [Ping timeout: 246 seconds]
jdj_dk has joined #ruby
<shevy> This is how I would restructure this code:
<shevy> - all global variables get thrown away
<shevy> - elimination of Pathname
yfeldblum has joined #ruby
<gr33n7007h> shevy, why not just rescue => error
andrewh has quit [Quit: leaving]
jottr_ has joined #ruby
<shevy> - write a class or a module that provides logging, in a toggleable way - one way for Logger, one for normal default console output
pemes has joined #ruby
pemes has left #ruby [#ruby]
<shevy> gr33n7007h <Hanmac> zmyrgel: hm replace it with "rescue => e "
<shevy> gr33n7007h Hanmac suggested that code, not me
andrewh has joined #ruby
sprihodko has joined #ruby
pemes has joined #ruby
AFKGeek has quit [Quit: Leaving]
qba73 has joined #ruby
jimbach has quit [Ping timeout: 272 seconds]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
penzrgb has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
penzrgb has quit [Client Quit]
mrgrieves has joined #ruby
fabrice31 has quit [Remote host closed the connection]
sandelius has joined #ruby
fabrice31 has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Deejay_ has quit [Quit: Computer has gone to sleep.]
bal has quit [Ping timeout: 255 seconds]
jacobat has quit [Ping timeout: 246 seconds]
pemes has quit [Remote host closed the connection]
bal has joined #ruby
fabrice31 has quit [Ping timeout: 260 seconds]
<mrgrieves> hi, wonder if someone can guide me. I'm writing a method, part of the method is to iterate over an array and create new hashes which names will come from the array item but not sure how to handle the hash creation ...
tvw has joined #ruby
<_lazarevsky> mrgrieves: try hash = {}
<_lazarevsky> :)
zarubin has quit [Remote host closed the connection]
mengu has quit [Ping timeout: 272 seconds]
<_lazarevsky> mrgrieves: or even Hash.new
<apeiros> mrgrieves: a hash does not have a name - so what do you mean by names?
<mrgrieves> links.each do |link|\n link = Hash.new\n end
<_lazarevsky> mrgrieves: d'ye wanna create new entries in the hash for each of the element in the array?
<_lazarevsky> mrgrieves: or do you need to create a separate hash for each of the elements
<apeiros> mrgrieves: you mean the name of the local variable? don't abuse the local variable name system as a hash.
<_lazarevsky> give us the pseudo code
<mrgrieves> _lazarevsky: exactly a separate hash for each element
<shevy> mrgrieves sounds as if you want to use .map
<mrgrieves> apeiros: yes I think my problem is handling variables
<apeiros> mrgrieves: care to show the full method? because dynamically creating lvars is just plain wrong.
adac has joined #ruby
arup_r_ has joined #ruby
<apeiros> (but I can't show you a better way without knowing what you try to achieve)
* apeiros wants a repaste bot :-(
arya_ has joined #ruby
lukekhamilton has quit [Quit: lukekhamilton]
<adac> I'm trying to 'convert' a datetime so I can save it in a DB: https://gist.github.com/anonymous/a5c554764f792780f73a however as you can see In the gist, this does not convert the time, but only the date. How to also convert the ime in this example?
boombadaroomba has joined #ruby
sprihodko_ has joined #ruby
bal has quit [Ping timeout: 255 seconds]
<apeiros> mrgrieves: ok, that doesn't show me how you want to use those local variables afterwards
* apeiros brb
jdj_dk has quit [Ping timeout: 260 seconds]
fabrice31 has joined #ruby
<apeiros> adac: DateTime.strptime, not Date
arup_r has quit [Ping timeout: 260 seconds]
<mrgrieves> apeiros: but even in the interpreter I don't seem to have access to the variables
uxp has quit [Read error: Connection reset by peer]
<adac> apeiros, ahh thanks!
uxp has joined #ruby
bal has joined #ruby
<mrgrieves> but the idea is to return another array similar to this
sprihodko has quit [Ping timeout: 240 seconds]
eka has joined #ruby
<GeorgesLeYeti> Hi
<mrgrieves> all the items of this second array are coming from processing the first one
<mrgrieves> I'm pretty sure there's an easier way to accomplish this :(
boombadaroomba has quit [Ping timeout: 255 seconds]
agjacome has joined #ruby
<apeiros> mrgrieves: yes, you don't. because that's not how it works
* apeiros back
<apeiros> mrgrieves: the only way to set a local variable is to *literally* write the variable name out in an assignment.
roolo has quit [Remote host closed the connection]
<apeiros> only exception: if you use a binding object to later evaluate (think template systems), then you can use Binding#local_variable_set
jacobat has joined #ruby
<shevy> mrgrieves usually a super simple workaround is to use an Array to store your "variables"
roolo has joined #ruby
<mrgrieves> apeiros: got the literall part ...
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<shevy> mrgrieves ruby itself does not really care about the names of variables, they are just pointers to ObjectSpace respectively their object_id effectively
smilansky has joined #ruby
sprihodko_ has quit [Quit: Lingo - http://www.lingoirc.com]
<apeiros> correct. variable names are for humans. machines have more efficient ways to deal with data. so every time you force it to go via names, you let it do extra work.
Advocation has joined #ruby
nfk has joined #ruby
smilansky is now known as somethingelse
roolo has quit [Ping timeout: 240 seconds]
somethingelse is now known as smilansky
yfeldblum has joined #ruby
<mrgrieves> thanks guys, so how do you suggest I start building the hashes so I can then add then to this second array?
<shevy> huh I am digging in ancient ruby code that I once wrote
<apeiros> mrgrieves: as said - show the full method
<shevy> COST["#{x}"] <-- that is effectively the same as COST[x.to_s] or?
<apeiros> mrgrieves: riddling what you might want to do with it won't help much.
rshetty has quit [Remote host closed the connection]
<mrgrieves> apeiros: I haven't strted writing and was just playing on the interpreter looking for ideas
<apeiros> mrgrieves: then write it the way you'd write it if you could dynamically assign lvars
<shevy> mrgrieves really, I was at that point in the past too, use an Array or a Hash to keep track of these :) or, write a class and @ivars
<shevy> mrgrieves btw I just wanna check if my assumption is correct - do you know what .map does when applied to an Array?
brendenb has quit [Ping timeout: 260 seconds]
<Hanmac> apeiros: look at this: https://rubygems.org/gems/rwx
brendenb has joined #ruby
<mrgrieves> shevy: thanks for the map suggestion ... will give it a try
yfeldblum has quit [Ping timeout: 260 seconds]
<mrgrieves> apeiros: thanks for the help, will come back here once I wrtie something
Takle has quit [Remote host closed the connection]
drawingthesun has quit [Ping timeout: 245 seconds]
<apeiros> Hanmac: nice
<shevy> >> ['abc ',' efg'].map {|entry| entry.strip }
<eval-in_> shevy => ["abc", "efg"] (https://eval.in/205260)
<shevy> >> ['abc ',' efg'].map(&:strip)
<eval-in_> shevy => ["abc", "efg"] (https://eval.in/205261)
drawingthesun has joined #ruby
threesixes has joined #ruby
<shevy> hmm
<shevy> if I have a constant like this for a linux command
<shevy> COMMAND = 'df -T -a'
<shevy> and I wish to capture the output of that into a string
<shevy> I have to use: result = `#{COMMAND}`
<shevy> right?
govg has quit [Ping timeout: 240 seconds]
<apeiros> shevy: yes, that will return the stdout of that command
Spami has joined #ruby
smilansky has quit [Remote host closed the connection]
<apeiros> shevy: remember, it won't capture the stderr of it. stderr will go directly to stderr of your ruby app
coderdad has joined #ruby
skand has quit [Read error: Connection reset by peer]
brendenb has quit [Ping timeout: 260 seconds]
ringarin has joined #ruby
ferr has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has joined #ruby
timgauthier has joined #ruby
penzrgb has joined #ruby
mofai has quit []
jdj_dk has joined #ruby
coderdad has quit [Ping timeout: 258 seconds]
einarj_ has joined #ruby
einarj has quit [Read error: Connection reset by peer]
Takle has joined #ruby
zarubin has joined #ruby
JeffBonds has joined #ruby
Xeago has quit [Remote host closed the connection]
tokik has quit [Ping timeout: 240 seconds]
Phrogz has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
jimmyy has quit [Read error: Connection reset by peer]
msmith_ has joined #ruby
jimmyy has joined #ruby
moritzschaefer has quit [Remote host closed the connection]
bmurt has joined #ruby
<emmesswhy> how the hell does splat work?
alfacard has joined #ruby
Phrogz has quit [Ping timeout: 255 seconds]
<alfacard> hello
apeiros has quit [Ping timeout: 244 seconds]
jamto11 has joined #ruby
tlarevo_ has quit [Read error: Connection reset by peer]
msmith_ has quit [Ping timeout: 260 seconds]
alfacard has quit [Client Quit]
wald0 has joined #ruby
GeorgesLeYeti has quit [Remote host closed the connection]
max96at|off is now known as max96at
roolo has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
rshetty has joined #ruby
narcan has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
luckyruby has quit [Remote host closed the connection]
apeiros has joined #ruby
arup_r_ has quit []
<shevy> emmesswhy it is like saying "put this into an array"
arup_r has joined #ruby
<shevy> >> def foo(*i); p i; end; foo 'hey','there'
<eval-in_> shevy => ["hey", "there"] ... (https://eval.in/205284)
Xeago has joined #ruby
Takumo is now known as _Catalin
_Catalin is now known as Takumo
<shevy> >> name, *rest = ['John Doe','lives',' in L.A.']
<eval-in_> shevy => ["John Doe", "lives", " in L.A."] (https://eval.in/205285)
<shevy> emmesswhy there you say that the variable called rest will contain all but the first element
<shevy> whereas name will be the first element of that Array
<shevy> say/see
jdj_dk has quit [Ping timeout: 244 seconds]
bmurt has quit []
phutchins has joined #ruby
nonks has quit [Ping timeout: 240 seconds]
tlarevo has joined #ruby
culturelabs_ is now known as culturelabs
<Hanmac> apeiros: one of the funniest things: WX::Color.new(255,0,0) == "red" #=> true
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
BombStrike has quit [Ping timeout: 245 seconds]
babak1 has joined #ruby
brendenb has joined #ruby
northfurr has joined #ruby
bmurt has joined #ruby
bmurt has quit [Client Quit]
bmurt has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
beef-wellington has joined #ruby
BombStrike has joined #ruby
sepp2k has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
kirun has joined #ruby
spastorino has joined #ruby
Alina-malina has quit [Ping timeout: 245 seconds]
Alina-malina has joined #ruby
dumdedum has joined #ruby
Maxdamantus has joined #ruby
emmesswhy has joined #ruby
<Maxdamantus> Is left recursion the intensional behaviour of Enumerable.reduce? Is there a standard right-recursive (and left-recursive, if the answer to the first question is no) operation?
penzrgb has quit [Quit: This computer has gone to sleep]
cina has joined #ruby
GinoMan has quit [Ping timeout: 255 seconds]
babak1 has quit [Quit: Leaving]
<banister> Maxdamantus it's a foldl ya
<banister> Maxdamantus no foldr
<Maxdamantus> Yeah, I've noticed that's how it behaves.
<banister> Maxdamantus i thought foldr was only really useful in a lazy language like haskell?
<Maxdamantus> dunno if that's considered standard or something in some sense—is it usual to rely on it being left?
<Maxdamantus> banister: I don't think laziness has much to do with it.
arya_ has quit [Ping timeout: 260 seconds]
<banister> Maxdamantus well in haskell i think it does, cos if foldr wasn't lazy in haskell you couldn't use it with infinite lists
<Maxdamantus> the distinction is important when you're working with things that aren't monoidal.
cina has quit [Client Quit]
<Hanmac> Maxdamantus: in ruby if you have "true || some_func" it does return true and simply ignore "some_func" ... it even does not raise an error if some_func does not exist
ldnunes has joined #ruby
<Maxdamantus> and actually, I think right folds tend to be the more useful one, when there is a distinction.
yfeldblum has joined #ruby
brahmadpk has quit [Ping timeout: 250 seconds]
<Maxdamantus> banister: that happens because of the way (&&) is defined.
fmcgeough has joined #ruby
<Cork> i have a method that takes a &block, i would like to wrap this method so i can add support for an additional argument
<Cork> how can i best wrap the lambda before passing it forward
<Cork> i've thought of something like ->(object) { block.call(object, extra) }
<Cork> but is there a better way?
krz has quit [Quit: WeeChat 1.0.1]
<banister> Cork does the block actually support another arg?
beef-wellington has quit [Ping timeout: 272 seconds]
<banister> Cork oh yeah that'll work
<Cork> banister: i'm giving the block :)(
<Cork> i just want to abstract away a poke into the object
<Cork> and pass that as an extra parameter
wsmoak has joined #ruby
wsmoak has joined #ruby
rshetty has quit [Remote host closed the connection]
larsam has quit [Quit: Exit]
yfeldblum has quit [Ping timeout: 250 seconds]
jdj_dk has joined #ruby
timgauthier is now known as timgauthier_isaw
timgauthier_isaw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Cork> banister: is there a better solution to do that?
<banister> Cork yeah, I don't know exactly what you're trying to do, but maybe Proc#curry
ki0 has quit [Remote host closed the connection]
<banister> though the order of args seems a bit wrong
<banister> but if the ordering was round the other way you could do: block.curry.(extra)
<Cork> banister: the order doesn't matter at all
<Cork> i control that
<banister> Cork then look into Proc#curry
<Cork> thx
<banister> Cork it's basically just partial application, which is what you want i think
wald0 has quit [Quit: Lost terminal]
ki0 has joined #ruby
nonks has joined #ruby
abuzze_ has joined #ruby
DaniG2k has quit [Ping timeout: 260 seconds]
penzrgb has joined #ruby
abuzze has quit [Ping timeout: 250 seconds]
wethu has joined #ruby
bmurt has quit []
rshetty has joined #ruby
axilla has joined #ruby
nouranology has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
bmurt has joined #ruby
timgauthier has joined #ruby
wethu has quit [Client Quit]
isxek has joined #ruby
mike32 has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<zmyrgel> ok, my next attempt at zip monitor script almost done, https://gist.github.com/zmyrgel/244b84bfedc251d3db02
<zmyrgel> seems that it doesn't iterate the directory entries in monitor method for some reason
Macaveli has quit [Read error: Connection reset by peer]
northfurr has quit [Quit: northfurr]
coderdad has joined #ruby
bmurt has quit [Ping timeout: 246 seconds]
Macaveli has joined #ruby
Macaveli has quit [Client Quit]
klmlfl has joined #ruby
Macaveli has joined #ruby
marlonandrade has joined #ruby
<isxek> hello, is there really no built-in way to check which platform the ruby script is running in? the stackoverflow suggested answers point to either a Config module, an RbConfig module, and a 3rd-party module called 'os'
coderdad has quit [Ping timeout: 244 seconds]
nonks has quit [Ping timeout: 240 seconds]
VanillaGoat_ has joined #ruby
jdj_dk has quit [Ping timeout: 240 seconds]
manzo has joined #ruby
zarubin has quit [Quit: Leaving.]
VanillaGoat__ has quit [Ping timeout: 246 seconds]
rshetty has quit [Remote host closed the connection]
Phrogz has joined #ruby
fsapo has joined #ruby
Imofftopic has joined #ruby
<sol_> when i install taglib-ruby on ruby 2 on windows i get taglib_base.so (LoadError) with require 'taglib'
msmith_ has joined #ruby
Advocation has quit [Quit: Advocation]
<sol_> anyone was able to install or compile it successfully?
jottr_ has quit [Quit: WeeChat 1.0]
apeiros has joined #ruby
jottr has joined #ruby
ringarin has quit [Read error: Connection reset by peer]
ringaring has joined #ruby
Takle has quit [Remote host closed the connection]
rshetty has joined #ruby
<zmyrgel> hmm, isn't following a proper way to iterate files in dir:
<zmyrgel> Dir.entries(@monitored) do |file| ... end
Phrogz has quit [Ping timeout: 272 seconds]
startupality has quit [Quit: startupality]
apeiros has quit [Remote host closed the connection]
<zmyrgel> the log output line before that lists @monitored as it should but .entries doesn't seem to return anything
jamto11 has joined #ruby
it0a has quit [Ping timeout: 272 seconds]
sk87 has joined #ruby
DaniG2k has joined #ruby
msmith_ has quit [Ping timeout: 272 seconds]
brahmadpk has joined #ruby
JeffBonds has quit [Quit: JeffBonds]
arup_r has quit [Remote host closed the connection]
axilla has left #ruby [#ruby]
jamto11 has quit [Ping timeout: 272 seconds]
rshetty has quit [Remote host closed the connection]
jacobat has quit [Ping timeout: 258 seconds]
iiinzg has quit [Ping timeout: 244 seconds]
claymore has joined #ruby
mijicd has quit [Ping timeout: 250 seconds]
rshetty has joined #ruby
compuser has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AtumT has joined #ruby
mijicd has joined #ruby
krisquigley has quit [Remote host closed the connection]
gr33n7007h has quit [Ping timeout: 244 seconds]
aclearman037 has joined #ruby
yfeldblum has joined #ruby
krisquigley has joined #ruby
startupality has joined #ruby
isxek has quit [Quit: Page closed]
<shevy> zmyrgel here is what I would do: write methods that do simple actions
<shevy> then combine these methods
DaniG2k has quit [Ping timeout: 240 seconds]
<shevy> rather than Dir.entries, I would use Dir[@monitored], but from a method. I would store intermediary results in proper @instance_variables of a class, and let the class solve the tasks at hand
<shevy> you also have to handle the case when that result returns no entries
<shevy> >> Dir['/not_existing/*']
<eval-in_> shevy => (https://eval.in/205310)
<shevy> >> Dir['/tmp/*']
<eval-in_> shevy => ["/tmp/execpad-99a3d708a576", "/tmp/execpad-21ca98b1ae31", "/tmp/phpoIuaZa", "/tmp/x.rb", "/tmp/\n\n\n", "/tmp/execpad-e4ac636347f6"] (https://eval.in/205311)
<shevy> in one case nothing useful is returned, in the other case an Array is returned
jrhe_ has joined #ruby
banister has joined #ruby
<shevy> lol
<shevy> what's "/tmp/\n\n\n"
<shevy> 3 newlines
ringaroses2 has joined #ruby
<shevy> ok good you started to use a class
ad_boot has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 250 seconds]
spyderman4g63 has joined #ruby
francisfish has quit [Read error: Connection reset by peer]
doev has joined #ruby
penzrgb has quit [Quit: This computer has gone to sleep]
<shevy> Line 16 confuses me: unless Dir.exist? monitored_path
mityaz has quit [Read error: Connection reset by peer]
fella5s has quit [Read error: Connection reset by peer]
<shevy> where from does the variable monitored_path come?
mityaz has joined #ruby
<shevy> you have it defined after a begin clause, outside the class
francisfish has joined #ruby
krisquigley has quit [Ping timeout: 255 seconds]
<shevy> but that makes it a local variable - in the method initialize it should be unknown
yfeldblum has quit [Ping timeout: 260 seconds]
emocakes has joined #ruby
<shevy> by the way, rather than @@status_file, I would use a constant (if it does not change anyway), as in: STATUS_FILE =
<shevy> zmyrgel another hint - you can provide default arguments to a method
<shevy> from:
<shevy> def initialize(path)
<shevy> to:
suy has quit [Remote host closed the connection]
suy has joined #ruby
<shevy> def initialize(path = 'D:/inetpub/k001/TUOTANTO')
QKO has quit [Ping timeout: 245 seconds]
<shevy> then you can omit the code below at line 64
<shevy> and just use:
<shevy> FileMonitor.new(monitored_path).monitor
fella5s has joined #ruby
ringaring has quit [Ping timeout: 245 seconds]
spacemud has quit [Ping timeout: 240 seconds]
<shevy> oops
<shevy> and just use:
<shevy> FileMonitor.new.monitor
<shevy> and if you move the method monitor() inside def initialize, you no longer have to call it manually there
<shevy> so you could just do:
QKO has joined #ruby
<shevy> FileMonitor.new
PaulePanter has quit [Ping timeout: 245 seconds]
IotaSpencer has quit [Ping timeout: 245 seconds]
ZYPP has quit [Ping timeout: 245 seconds]
<shevy> it is much better now with a class though
parus has quit [Ping timeout: 240 seconds]
ahri has joined #ruby
PaulePanter has joined #ruby
ccooke has quit [Ping timeout: 245 seconds]
inukshuk has quit [Ping timeout: 245 seconds]
DefV has quit [Ping timeout: 245 seconds]
hamakn has quit [Remote host closed the connection]
<zmyrgel> shevy: it depends if it runs properly
regedarek has quit [Ping timeout: 245 seconds]
<shevy> this here confuses me a bit:
<shevy> "#{@@backup_dir/file}"
parus has joined #ruby
<shevy> should it not usually be this instead?
hamakn has joined #ruby
<shevy> oh no wait
<zmyrgel> shevy: already replaced with File.join
reinaldob has joined #ruby
ccooke has joined #ruby
gregf_ has quit [Ping timeout: 245 seconds]
DefV has joined #ruby
<shevy> ah you learn fast, so ruby can't be your first language
jdj_dk has joined #ruby
inukshuk has joined #ruby
<zmyrgel> like few other parts to get full path
regedarek has joined #ruby
cajone has quit [Ping timeout: 240 seconds]
otherj has joined #ruby
<shevy> I usually query whether a dir exists like so
<ahri> i'm making a rakefile that should prefer to depend on existing executables on the system, but that will download and build those executables, and obviously on re-run be happy to use those built executables -- how can i do this? it seems like i want conditional task execution but that feels wrong for rake
gregf_ has joined #ruby
inukshuk has quit [Client Quit]
Iota-Spencer has joined #ruby
<shevy> this_dir = '/tmp/bla/'; if Dir.exist? this_dir; puts 'it exists!'; else; puts 'it does not exist!'; end
rshetty_ has joined #ruby
oo_ has joined #ruby
ZYPP has joined #ruby
<zmyrgel> I'm still getting used to ruby idioms
iaj has quit [Ping timeout: 245 seconds]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
ringaring has joined #ruby
Imofftopic has quit [Quit: Leaving]
inukshuk has joined #ruby
ringaroses2 has quit [Read error: Connection reset by peer]
<ddv> zmyrgel: like?
<zmyrgel> ddv: what do you mean?
workmad3 is now known as wm3|away
<ddv> zmyrgel: I'm still getting used to ruby idioms
spacemud has joined #ruby
iaj has joined #ruby
<zmyrgel> blocks instead of for loops for starters
<zmyrgel> what classes to use etc.
<jhass> ahri: My first intuition would be to do a local bin/ with tasks to build your deps there, bin/whatever. The building tasks then would first check if a system wide version is available, if it is they would just symlink it there, if it isn't they would build it and symlink the built version
_5kg has quit [Ping timeout: 272 seconds]
rshetty_ has quit [Remote host closed the connection]
rshetty has quit [Ping timeout: 258 seconds]
<ddv> zmyrgel: you never worked with closures before?
krisquigley has joined #ruby
rshetty has joined #ruby
<zmyrgel> ddv: yeah, but switching languages isn't straighforward even if it supports same features
blackmesa has joined #ruby
alem0lars has joined #ruby
<shevy> zmyrgel well it feels natural when you start to think in OOP terms
<shevy> zmyrgel take for loops
<shevy> if you have an array, it is easier to use .each on it directly
agjacome has quit [Quit: leaving]
<shevy> it is like a container, a backpack in old MUD terminology "backpack, iterate over .each item you got there" @backpack.each {|item| item.name }
AlexRussia has quit [Ping timeout: 246 seconds]
agjacome has joined #ruby
abuzze_ has quit [Remote host closed the connection]
<shevy> and blocks are like extra (optional) arguments to every method you get for free
ringaroses2 has joined #ruby
ringaring has quit [Read error: Connection reset by peer]
<shevy> in ruby you have to select which features you want and which ones you don't want to
<shevy> you can still use several for loops, some C coders do that especially when they initially matrices/multidimensional arrays
<shevy> *initialize
AlexRussia has joined #ruby
<shevy> classes are easy to use and help separate concerns; they can often help in readability too, though of course you get a similar thing with methods alone
<shevy> def backup vs. class Backup
<shevy> or Backup.backup
<shevy> or a module!
abuzze has joined #ruby
<shevy> include Backup; backup() # () just for demo purpose, people tend to omit the () in ruby especially when there are no arguments to them
afhammad has joined #ruby
Maxdamantus has quit [Ping timeout: 260 seconds]
<zmyrgel> seems just that methods and classes would be overkill for small specific scripts
afhammad has quit [Client Quit]
<shevy> dunno
<shevy> I group things together as much as possible
<shevy> like, create a .rb file
<canton7> if I'm writing a 20-line shell script, chances are it won't have any methods or classes
<shevy> put one class into it that solves a given task
<shevy> then write a method in another .rb file that only calls that .rb file
<shevy> and then invoke that method via an alias
<shevy> for instance:
<shevy> fix_pidgin: rinvoke fix_pidgin
<shevy> where rinvoke simply invokes the method there in a .rb file
<crome> it needs more than a 20 line script to fix pidgin
<shevy> lol
<ddv> just always use classes
<shevy> yeah \o/
<shevy> ddv how about modules
cajone has joined #ruby
<ddv> when I have to group related classes
mleone has joined #ruby
arup_r has joined #ruby
<ddv> anyway the hardest thing is sometimes naming/structuring stuff
<ddv> never satistified
<ddv> my perfectionism gets in the way somtimes and I have tendency to overengineer stuff
<crome> maybe that's why some people use one letter labels for everything
<crome> no more time wasted on coming up with proper names
rshetty has quit [Remote host closed the connection]
<canton7> there are 2 hard computer science problems: cache invalidation, naming things, and off-by-one errors
<ddv> you just said 3 things
<crome> hehe
<canton7> whoosh
mleone has quit [Ping timeout: 240 seconds]
<crome> ddv: update your humour parser
<ahri> jhass: symlinking is a great idea, thanks for that!
emmesswhy has joined #ruby
pandaant has joined #ruby
timonv_ has quit [Remote host closed the connection]
jdj_dk has quit [Ping timeout: 258 seconds]
<banister> ddv I'm late to the party but -- lol
<txdv> lets get the party started
klmlfl has quit [Remote host closed the connection]
<ddv> :)
bal has quit [Read error: Connection reset by peer]
jao1337 has joined #ruby
livingstn has joined #ruby
bal has joined #ruby
blackmesa has quit [Ping timeout: 246 seconds]
mengu__ has joined #ruby
wethu has joined #ruby
hellangel7 has joined #ruby
mengu has quit [Read error: Connection reset by peer]
emocakes has quit [Ping timeout: 258 seconds]
autonomousdev has joined #ruby
DaniG2k has joined #ruby
anaeem1 has quit [Remote host closed the connection]
msmith_ has joined #ruby
qmfnp has joined #ruby
iamjarvo has joined #ruby
qmfnp has quit [Client Quit]
arya_ has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
njs126 has quit [Ping timeout: 244 seconds]
emmesswhy has quit [Quit: This computer has gone to sleep]
emocakes has joined #ruby
mikecmpbll has joined #ruby
JeffBonds has joined #ruby
jacobat has joined #ruby
abuzze has quit [Remote host closed the connection]
msmith_ has quit [Ping timeout: 246 seconds]
ad_boot has joined #ruby
renderfu_ has quit [Remote host closed the connection]
renderfu_ has joined #ruby
pandaant has quit [Quit: Lost terminal]
pandaant has joined #ruby
Phrogz has joined #ruby
Advocation has joined #ruby
JohnBat26 has joined #ruby
Hanmac has quit [Ping timeout: 272 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cpruitt has joined #ruby
benzrf|offline is now known as benzrf
wethu has quit [Quit: This computer has gone to sleep]
Phrogz has quit [Ping timeout: 245 seconds]
jamto11 has joined #ruby
arya_ has quit [Ping timeout: 246 seconds]
rbrs has quit [Remote host closed the connection]
iiinzg has joined #ruby
nonks has joined #ruby
jimbach has joined #ruby
techsethi has quit [Quit: techsethi]
ringaring has joined #ruby
wethu has joined #ruby
ringaroses2 has quit [Read error: Connection reset by peer]
jamto11 has quit [Remote host closed the connection]
jamto11 has joined #ruby
mkaesz has quit [Remote host closed the connection]
AlSquirrel has joined #ruby
oo_ has quit [Remote host closed the connection]
mkaesz has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
taptapdan has quit [Quit: taptapdan]
jdj_dk has joined #ruby
jimmyy has quit [Ping timeout: 255 seconds]
GriffinHeart has joined #ruby
Takle has joined #ruby
_5kg has joined #ruby
nonks has quit [Ping timeout: 245 seconds]
bmurt has joined #ruby
gtrak has joined #ruby
iinzg has joined #ruby
xenomorph is now known as {xenomorph}
iiinzg has quit [Ping timeout: 240 seconds]
AlSquire has quit [Ping timeout: 250 seconds]
GriffinHeart has quit [Remote host closed the connection]
timonv_ has joined #ruby
arya_ has joined #ruby
timgauthier is now known as timgauthier_isaw
timgauthier_isaw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mkaesz has quit [Ping timeout: 240 seconds]
startupality has quit [Quit: startupality]
allcentury has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
j2p2 has joined #ruby
startupality has joined #ruby
it0a has joined #ruby
AlSquire has joined #ruby
rshetty has joined #ruby
coderhs has joined #ruby
AlSquirrel has quit [Ping timeout: 244 seconds]
AFKGeek has joined #ruby
coderhs has quit [Remote host closed the connection]
keen_____ has quit [Excess Flood]
Hanmac has joined #ruby
brahmadpk has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
abuzze has joined #ruby
keen_____ has joined #ruby
tlarevo_ has joined #ruby
techsethi has joined #ruby
rshetty has quit [Remote host closed the connection]
Deejay_ has joined #ruby
<ddv> txdv: we have two things in common
coderdad has joined #ruby
wm3|away has quit [Ping timeout: 240 seconds]
tlarevo has quit [Ping timeout: 244 seconds]
govg has joined #ruby
moritzschaefer has joined #ruby
AlSquire has quit [Ping timeout: 258 seconds]
blackmesa has joined #ruby
abuzze_ has joined #ruby
Spami has joined #ruby
abuzze has quit [Read error: Connection reset by peer]
slyslick has joined #ruby
yfeldblum has joined #ruby
jamto11 has quit [Remote host closed the connection]
arya_ has quit [Ping timeout: 244 seconds]
wethu has quit [Quit: This computer has gone to sleep]
jamto11 has joined #ruby
otherj has quit []
coderdad has quit [Ping timeout: 260 seconds]
startupality has quit [Quit: startupality]
jamto11 has quit [Remote host closed the connection]
ringaroses2 has joined #ruby
ringaring has quit [Read error: Connection reset by peer]
lkba has joined #ruby
wethu has joined #ruby
crunk_bear has joined #ruby
ringaring has joined #ruby
snath has quit [Ping timeout: 240 seconds]
crunk_bear has quit [Client Quit]
ringaroses2 has quit [Read error: Connection reset by peer]
crunk_bear has joined #ruby
moritzschaefer has quit [Ping timeout: 245 seconds]
qmfnp has joined #ruby
oleo has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
AlSquire has joined #ruby
jerius has joined #ruby
sevenseacat has joined #ruby
gauke has joined #ruby
jdj_dk has quit [Ping timeout: 260 seconds]
xiq_ has joined #ruby
benzrf is now known as benzrf|offline
crunk_bear is now known as flute_booth
brahmadpk has joined #ruby
arup_r has quit [Remote host closed the connection]
alem0lars has quit [Quit: AFK..]
patrick99e99 has joined #ruby
xrlabs has quit [Ping timeout: 272 seconds]
pu22l3r has joined #ruby
Deejay_ has quit [Quit: Computer has gone to sleep.]
krisquigley has quit [Remote host closed the connection]
krisquigley has joined #ruby
coderdad has joined #ruby
flute_booth is now known as crunk_bear
pu22l3r has quit [Remote host closed the connection]
Azure has quit [Quit: My MBP went to sleep.]
C0deMaver1ck has quit [Quit: ZNC - http://znc.in]
pu22l3r has joined #ruby
Iota-Spencer is now known as IotaSpencer
crunk_bear is now known as flute_booth
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
geekbri has joined #ruby
danguita has quit [Remote host closed the connection]
GPH|work has joined #ruby
startupality has joined #ruby
danguita has joined #ruby
mike32 has quit [Quit: Leaving]
coderdad has quit [Read error: Connection reset by peer]
coderdad_ has joined #ruby
<mrgrieves> any ideas on what am I doing wrong here ? http://pastebin.com/v2c6v0yc
patrick99e99 has quit [Ping timeout: 272 seconds]
AlSquirrel has joined #ruby
GPH|work has quit [Read error: Connection reset by peer]
tlarevo_ has quit [Remote host closed the connection]
renderfu_ has quit [Remote host closed the connection]
AlSquire has quit [Ping timeout: 240 seconds]
moritzschaefer has joined #ruby
paulfm has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
sk87 has joined #ruby
drawingthesun has quit [Read error: Connection reset by peer]
moritzschaefer has quit [Ping timeout: 245 seconds]
drawingthesun has joined #ruby
ursooperduper has joined #ruby
brahmadpk has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
zlude has joined #ruby
<j2p2> remove surrounding quotes
<j2p2> mrgrieves ^
iamjarvo has joined #ruby
<mrgrieves> j2p2: Thank You!
<zlude> I'm beginning in ruby/rails/sinatra, and i add csrf protection to my application, and now my view appears <input type="hidden" name="_csrf" value="txaL6JCSHtRBeMoLXaeXw1IZXpkrDVZHbNAhnUAKd9Q=" /> and the souce code, what it's really do? how csrf is protected? someone can explain to me?
dblessing has joined #ruby
msmith_ has joined #ruby
klmlfl has joined #ruby
jdj_dk has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
mr_blue has joined #ruby
<mr_blue> hi all
dolf has joined #ruby
dolf is now known as Freeaqingme|
vimer has quit [Quit: leaving]
klaut has joined #ruby
<mr_blue> I have an array = [1,2,3,4,5,6,7] what i want is to convert into a new array with values grouped at 3 like in : [[1,2,3], [4,5,6], [7]] any ideas ?
Advocation has quit [Quit: Advocation]
hellangel7 has quit [Remote host closed the connection]
<Freeaqingme|> Hi folks, I've got the following string '/f/oo/bar/foobar'. I'm not sure hwat the best way to get the following output: [ '/f', '/f/oo', '/f/oo/bar', '/f/oo/bar/foobar' ] . I'm thinking Ruby must have some built-in stuff I could use, but I cannot find any of it (other than the obvious string.split. Any clues?
Spami has quit [Quit: This computer has gone to sleep]
beef-wellington has joined #ruby
devdazed has joined #ruby
bal has quit [Ping timeout: 255 seconds]
lukevinc has joined #ruby
banister has joined #ruby
jacobat_ has joined #ruby
gilr00y has joined #ruby
mrsolo has joined #ruby
<tobiasvl> Freeaqingme|: you could look at Pathname#ascend, looks pretty much like what you want: http://www.ruby-doc.org/stdlib-1.9.3/libdoc/pathname/rdoc/Pathname.html#method-i-ascend
ad_boot has quit [Remote host closed the connection]
<Freeaqingme|> ha! I knew it had to have something like that. tnx
bal has joined #ruby
<Hanmac> mr_blue:
<Hanmac> >> [1,2,3,4,5,6,7].each_slice(3).to_a
<eval-in_> Hanmac => [[1, 2, 3], [4, 5, 6], [7]] (https://eval.in/205362)
<mr_blue> Hanmac: magnific merci
<canton7> tobiasvl, nice find!
<tobiasvl> Freeaqingme|: this looks more like what you want: http://www.ruby-doc.org/stdlib-1.9.3/libdoc/pathname/rdoc/Pathname.html#method-i-descend
<tobiasvl> canton7: 8)
jacobat has quit [Ping timeout: 244 seconds]
livathin_ has joined #ruby
<Freeaqingme|> tobiasvl, true. I figured if there was an ascend, there had to be a descend as well. Lets see if I can turn that output into an array of strings...
GriffinHeart has joined #ruby
C0deMaver1ck_ has joined #ruby
jacobat_ has quit [Ping timeout: 245 seconds]
anarang has quit [Quit: Leaving]
<tobiasvl> a = []; Pathname.new('/f/oo/bar/foobar').descend {|p| a << p.to_s }
<tobiasvl> or something
<mrgrieves> j2p2: the only problem I'm having is that in a similar scenario I need to do string interpolation ...
C0deMaver1ck_ is now known as C0deMaver1ck
<mrgrieves> that's why I added the surronding quotes initially ...
<Freeaqingme|> tobiasvl, ntx
<Freeaqingme|> *tnx
<DaniG2k> tobiasvl: nice solution
livathinos has quit [Ping timeout: 240 seconds]
<tobiasvl> \o/
klaut has quit [Remote host closed the connection]
<tobiasvl> mrgrieves: you can interpolate inside %x( )
brahmadpk has joined #ruby
livathin_ has quit [Ping timeout: 272 seconds]
akemrir has quit [Quit: WeeChat 1.0.1]
bal has quit [Ping timeout: 255 seconds]
Spami has joined #ruby
emocakes has quit [Ping timeout: 255 seconds]
hellangel7 has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alem0lars has joined #ruby
GriffinHeart has quit [Ping timeout: 255 seconds]
Kricir has joined #ruby
iamjarvo has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
bal has joined #ruby
jdj_dk has quit [Ping timeout: 255 seconds]
emocakes has joined #ruby
livathinos has joined #ruby
livathinos has quit [Read error: Connection reset by peer]
livathinos has joined #ruby
tylersmith has joined #ruby
jottr_ has joined #ruby
_2easy has joined #ruby
dyu has joined #ruby
stunder has joined #ruby
lukevinc has quit [Quit: ChatZilla 0.9.91 [Firefox 24.8.0/20000101000000]]
yfeldblum has joined #ruby
entrenador has joined #ruby
freerobby has joined #ruby
himsin has quit [Quit: himsin]
entrenador has quit [Client Quit]
slester|away has joined #ruby
IceDragon has joined #ruby
mary5030 has joined #ruby
entrenador has joined #ruby
wsmoak_ has joined #ruby
wsmoak_ has quit [Changing host]
wsmoak_ has joined #ruby
jottr has quit [Ping timeout: 260 seconds]
tbrock has joined #ruby
techsethi has quit [Quit: techsethi]
wsmoak has quit [Ping timeout: 245 seconds]
wsmoak_ is now known as wsmoak
Darryl has quit [Quit: Connection closed for inactivity]
yfeldblum has quit [Ping timeout: 255 seconds]
moritzschaefer has joined #ruby
slester|away is now known as slester
jobewan has joined #ruby
slester has quit [Quit: Quitte]
slester has joined #ruby
Spami has quit [Quit: Leaving]
ta has quit [Remote host closed the connection]
mengu__ has quit []
weemsledeux has joined #ruby
weemsledeux has quit [Changing host]
weemsledeux has joined #ruby
lmickh has joined #ruby
tbrock has quit [Quit: Computer has gone to sleep.]
jerematic is now known as jerematic|work
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
monkeypatch has joined #ruby
starkhalo has joined #ruby
toretore has joined #ruby
schaerli has quit [Remote host closed the connection]
boombadaroomba has joined #ruby
gsd has joined #ruby
jnollett_ has joined #ruby
tylersmith has quit [Ping timeout: 240 seconds]
Spami has joined #ruby
axl_ has joined #ruby
terlar has joined #ruby
Xiti has quit [Quit: Leaving]
moritzschaefer has quit [Ping timeout: 245 seconds]
dkphenom has quit [Quit: Textual IRC Client: www.textualapp.com]
jnollette has quit [Ping timeout: 240 seconds]
nonks has joined #ruby
Xiti has joined #ruby
jxf has joined #ruby
boombadaroomba has quit [Ping timeout: 258 seconds]
jdj_dk has joined #ruby
nonks has quit [Ping timeout: 260 seconds]
ELLIOTTCABLE is now known as RV
RV is now known as ex
ex is now known as ec
treehug88 has joined #ruby
<xiq_> how can I use the "have(n).items matcher" with RSpec 3.1? I can't find a replacement
entrenador has quit [Ping timeout: 246 seconds]
<xiq_> Oh nvm... expect(@lib.books.count).to eq 5
<xiq_> Oh nvm... expect(@lib.books.count).to eq 5
bal has quit [Quit: bal]
it0a has quit [Quit: WeeChat 1.0.1]
banister has joined #ruby
ec is now known as ELLIOTTCABLE
taptapdan has joined #ruby
bal has joined #ruby
bMalum has joined #ruby
Advocation has joined #ruby
lukevinc has joined #ruby
Panicky has joined #ruby
abuzze has joined #ruby
blackmesa has joined #ruby
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
abuzze_ has quit [Ping timeout: 246 seconds]
mijicd has quit [Quit: leaving]
jottr_ has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: zzz]
ta has joined #ruby
gilr00y has quit []
ejnahc has quit [Ping timeout: 244 seconds]
hendricius has quit [Remote host closed the connection]
speaking1ode is now known as speakingcode
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hendricius has joined #ruby
ejnahc has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
slawrence00 has joined #ruby
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
arup_r has joined #ruby
jdj_dk has quit [Ping timeout: 246 seconds]
<mrgrieves> tobiasvl: thanks, had to define a variable with the right command syntax (dealing with the quotation there) and then did the simple %x( #{cmd} ) interpolation
bal has quit [Quit: bal]
it0a has joined #ruby
abuzze has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
hendricius has quit [Ping timeout: 260 seconds]
<garethrees> xiq_ I think `expect(@lib.books).to have(5).items` should work
beef-wellington has quit [Ping timeout: 260 seconds]
abuzze has joined #ruby
ejnahc has quit [Remote host closed the connection]
kobain has joined #ruby
wethu has quit [Quit: This computer has gone to sleep]
<garethrees> oh, you're right, looks like its gone
fsapo has quit [Remote host closed the connection]
allcentury has quit [Ping timeout: 246 seconds]
rkalfane has joined #ruby
lkba has quit [Ping timeout: 245 seconds]
GriffinHeart has quit [Ping timeout: 240 seconds]
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ta has quit [Remote host closed the connection]
apeiros has joined #ruby
momomomomo has joined #ruby
<xiq_> now I just have to figure out how to make capy 2.4 work with RSpec 3.1
<xiq_> i'm getting errors all over the place, already switched to :features, required Capybara::DSL etc. etc.
beef-wellington has joined #ruby
ryanleesipes has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
skolman_ has joined #ruby
mark06 has joined #ruby
fabrice31 has quit [Remote host closed the connection]
zwischenzug has quit [Remote host closed the connection]
havenwood has joined #ruby
fabrice31 has joined #ruby
zwischenzug has joined #ruby
manzo has quit [Ping timeout: 258 seconds]
skolman_ has quit [Remote host closed the connection]
skolman_ has joined #ruby
ejnahc has joined #ruby
<olivier_bK> when i try to print my hash i get one line of all parameters
<olivier_bK> how i can split it after ,
yfeldblum has joined #ruby
<olivier_bK> ?
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fabrice31 has quit [Ping timeout: 244 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tylersmith has joined #ruby
{xenomorph} is now known as xenomorph
skolman_ has quit [Read error: Connection reset by peer]
skolman_ has joined #ruby
<waxjar> olivier_bK: use 'pp' from the stdlib (require 'pp' somewhere, then pp your_hash)
Panicky has quit [Remote host closed the connection]
<olivier_bK> waxjar, i cant
gauke has quit [Quit: gauke]
weemsledeux has joined #ruby
weemsledeux has quit [Changing host]
weemsledeux has joined #ruby
<mark06> this pp thing printed in same line as well
<mark06> olivier_bK: http://ideone.com/Ih93n5
yfeldblum has quit [Ping timeout: 272 seconds]
jao1337 has quit [Remote host closed the connection]
zwischenzug2 has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Freeaqingme| has quit [Remote host closed the connection]
snath has joined #ruby
hendricius has joined #ruby
larsam has joined #ruby
Takle has quit [Remote host closed the connection]
TripTastic has joined #ruby
Panicky has joined #ruby
Panicky has quit [Remote host closed the connection]
skolman_ has quit [Remote host closed the connection]
GinoMan has joined #ruby
slawrence00 has quit [Quit: Textual IRC Client: www.textualapp.com]
skolman has joined #ruby
jimms has joined #ruby
AFKGeek has quit [Quit: Leaving]
IceDragon has quit [Ping timeout: 240 seconds]
zwischenzug has quit [Ping timeout: 260 seconds]
jdj_dk has joined #ruby
EMoreth has joined #ruby
livathin_ has joined #ruby
alem0lars_ has joined #ruby
poguez has joined #ruby
alem0lars has quit [Ping timeout: 260 seconds]
alem0lars_ is now known as alem0lars
kamilc__ has quit [Quit: Leaving...]
Todd has joined #ruby
IceDragon has joined #ruby
GinoMan has quit [Remote host closed the connection]
iamjarvo has joined #ruby
skolman has quit [Ping timeout: 272 seconds]
Takle has joined #ruby
xenomorph is now known as {xenomorph}
goodenough has joined #ruby
hellangel7 has quit [Read error: Connection reset by peer]
livathinos has quit [Ping timeout: 255 seconds]
bluOxigen has quit [Ping timeout: 272 seconds]
anaeem1 has joined #ruby
hendricius has quit [Ping timeout: 240 seconds]
livathin_ has quit [Ping timeout: 258 seconds]
HelperW__ has quit [Quit: Lingo - http://www.lingoirc.com]
rkalfane has joined #ruby
DaniG2k_ has joined #ruby
slyslick has quit [Ping timeout: 260 seconds]
artmann has quit [Read error: Connection reset by peer]
artmann has joined #ruby
adac has quit [Ping timeout: 250 seconds]
_2easy has quit [Quit: leaving]
_2easy has joined #ruby
_2easy has quit [Changing host]
_2easy has joined #ruby
lukevinc has quit [Quit: ChatZilla 0.9.91 [Firefox 24.8.0/20000101000000]]
wm3|away has joined #ruby
wm3|away is now known as workmad3
olivier_bK has quit [Ping timeout: 250 seconds]
DaniG2k has quit [Ping timeout: 258 seconds]
banister has joined #ruby
aganov has quit [Remote host closed the connection]
patrick99e99 has joined #ruby
nb_bez___ has joined #ruby
nouranology has quit [Quit: ChatZilla 0.9.91 [Firefox 32.0.3/20140924083558]]
<_2easy> :q
Channel6 has joined #ruby
_2easy has quit [Client Quit]
DaniG2k_ has quit [Ping timeout: 245 seconds]
_2easy has joined #ruby
_2easy has joined #ruby
_2easy has quit [Changing host]
_2easy has quit [Client Quit]
dte has joined #ruby
_2easy has joined #ruby
_2easy has quit [Changing host]
_2easy has joined #ruby
dte is now known as mxrguspxrt
_2easy has quit [Client Quit]
beef-wellington has quit [Ping timeout: 255 seconds]
_2easy has joined #ruby
_2easy has quit [Changing host]
_2easy has joined #ruby
patrick99e99 has quit [Ping timeout: 255 seconds]
GriffinHeart has joined #ruby
_2easy has quit [Client Quit]
tylersmith has quit [Remote host closed the connection]
Macaveli has quit [Ping timeout: 260 seconds]
tylersmith has joined #ruby
brahmadpk has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
gsd has joined #ruby
rbrs has joined #ruby
BadQuanta has joined #ruby
slawrence00 has joined #ruby
beef-wellington has joined #ruby
livathinos has joined #ruby
_2easy has joined #ruby
livathinos has quit [Remote host closed the connection]
tylersmith has quit [Ping timeout: 240 seconds]
_2easy has quit [Client Quit]
aspires has joined #ruby
hmsimha has quit [Ping timeout: 240 seconds]
afhammad has joined #ruby
slester has quit [Ping timeout: 260 seconds]
jottr_ has joined #ruby
Xeago has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
Kricir has joined #ruby
Fudus has joined #ruby
lw has joined #ruby
lw has quit [Max SendQ exceeded]
pu22l3r_ has joined #ruby
Kricir_ has joined #ruby
DaniG2k has joined #ruby
abuzze has quit [Remote host closed the connection]
Kricir has quit [Read error: Connection reset by peer]
lw has joined #ruby
compuser has quit [Ping timeout: 260 seconds]
lw has quit [Max SendQ exceeded]
tlarevo has joined #ruby
lw has joined #ruby
lw has quit [Max SendQ exceeded]
lw has joined #ruby
lw has quit [Max SendQ exceeded]
schaerli has joined #ruby
timgauthier has joined #ruby
multi_io has joined #ruby
lw has joined #ruby
lw has quit [Max SendQ exceeded]
Xeago has joined #ruby
jottr_ has quit [Ping timeout: 272 seconds]
pu22l3r has quit [Ping timeout: 255 seconds]
lw has joined #ruby
Fudus has left #ruby [#ruby]
govg has quit [Ping timeout: 272 seconds]
havenwood has quit [Remote host closed the connection]
troyready has joined #ruby
Alayde has joined #ruby
sevenseacat has quit [Remote host closed the connection]
stunder has quit [Ping timeout: 260 seconds]
Xeago has quit [Remote host closed the connection]
multi_io_ has quit [Ping timeout: 245 seconds]
tlarevo has quit [Ping timeout: 260 seconds]
St_Marx has quit [Remote host closed the connection]
centrx has joined #ruby
Channel6 has quit [Quit: Leaving]
St_Marx has joined #ruby
ghostmoth has joined #ruby
joonty has quit [Quit: Leaving]
Deele has quit [Ping timeout: 260 seconds]
<Alayde> This may be a dumb question, but is there any particular reason someone would want to install the json gem via 'yum install rubygem-json' rather than a 'gem install json'?
jdj_dk has quit [Ping timeout: 240 seconds]
slawrence00 has quit [Quit: Textual IRC Client: www.textualapp.com]
slawrence00 has joined #ruby
goodenough has quit [Remote host closed the connection]
brahmadpk has joined #ruby
jimms has quit []
tlarevo has joined #ruby
govg has joined #ruby
hendricius has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
ta has joined #ruby
Dude007 has joined #ruby
Alina-malina has joined #ruby
claymore has quit [Ping timeout: 260 seconds]
<centrx> Alayde, Looks like it might be intended for use with JRuby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Dude007 has left #ruby [#ruby]
<Alayde> centrx: Hm..good to know. Though it seems the team that needs this is just using Ruby 1.8, I don't think they're using jruby.
freezey has joined #ruby
fasdfa has joined #ruby
<Alayde> I think it's more coming down to the fact that the jenkins slaves we're using were poorly architected, and therefor don't make use of RVM or gemsets
<Alayde> s/therefor/therefore
<headius> Alayde: folks who are married to using rpm package management for everything prefer to use the rpms
<centrx> Alayde, Yes, it is needed in Ruby 1.8
_2easy has joined #ruby
<headius> that's about it though
<Alayde> headius: Probably hit the nail on the head better than I did
hendricius has quit [Ping timeout: 255 seconds]
<centrx> Ruby 1.8 is ancient
EMoreth has quit [Quit: (null)]
<Alayde> Unfortunately so
<Alayde> Alas we're not quite 'bleeding edge'
skolman has joined #ruby
{xenomorph} is now known as xenomorph
neoxquick has joined #ruby
claymore has joined #ruby
Hightower666 has quit [Ping timeout: 258 seconds]
thagomizer has joined #ruby
roolo has quit [Remote host closed the connection]
_2easy has quit [Client Quit]
enebo has joined #ruby
noop has quit [Ping timeout: 245 seconds]
jimmyhoughjr has joined #ruby
Darryl has joined #ruby
roolo has joined #ruby
stunder has joined #ruby
_2easy has joined #ruby
_2easy has quit [Changing host]
_2easy has joined #ruby
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fasdfa has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
brahmadpk has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
dyu has quit [Quit: Leaving.]
iamjarvo has joined #ruby
iamjarvo has quit [Client Quit]
timonv_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
roolo has quit [Ping timeout: 272 seconds]
kenneth has joined #ruby
GeorgesLeYeti has joined #ruby
<GeorgesLeYeti> Hi
Azure has joined #ruby
<GeorgesLeYeti> How could i would like to convert hash like {"a"=> "Hello", "b"=>"World"} to "a: "Hello"\nb: "World"}
timgauthier is now known as timgauthier_isaw
<GeorgesLeYeti> without } at the end sry
timgauthier_isaw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claymore has quit [Ping timeout: 246 seconds]
havenwood has joined #ruby
timonv_ has quit [Ping timeout: 250 seconds]
govg has quit [Quit: leaving]
stunder has quit [Ping timeout: 260 seconds]
maletor has joined #ruby
maletor has quit [Changing host]
maletor has joined #ruby
hendricius has joined #ruby
_2easy has quit [Quit: leaving]
_2easy has joined #ruby
foooobear has quit [Remote host closed the connection]
<eam> GeorgesLeYeti: what have you tried so far?
patrick99e99 has joined #ruby
banister has joined #ruby
einarj_ has quit [Remote host closed the connection]
claymore has joined #ruby
kobain has quit [Read error: Connection timed out]
nonks has joined #ruby
GeorgesLeYeti has quit [Ping timeout: 244 seconds]
doev has quit [Ping timeout: 260 seconds]
last_staff has joined #ruby
lw has quit [Quit: b]
startupality has quit [Quit: startupality]
slester has joined #ruby
Ulrike_Rayne has quit [Read error: Connection reset by peer]
kobain has joined #ruby
brahmadpk has joined #ruby
kobain has quit [Max SendQ exceeded]
St_Marx has quit [Remote host closed the connection]
Ulrike_Rayne has joined #ruby
xenomorph is now known as {xenomorph}
kobain has joined #ruby
Lewix has joined #ruby
St_Marx has joined #ruby
Dude007_ has joined #ruby
jdj_dk has joined #ruby
kobain has quit [Max SendQ exceeded]
nonks has quit [Ping timeout: 240 seconds]
paulfm has quit []
momomomomo has quit [Quit: momomomomo]
GeorgesLeYeti has joined #ruby
hamakn has quit [Remote host closed the connection]
emmesswhy has joined #ruby
kobain has joined #ruby
JohnBat26 has joined #ruby
Macaveli has joined #ruby
cout is now known as CoutMarburg
jimbach has quit [Remote host closed the connection]
Alayde has left #ruby ["WeeChat 1.0"]
emmesswhy has quit [Client Quit]
jimbach has joined #ruby
CoutMarburg is now known as CoutLassa
triple_b has joined #ruby
mikecmpbll has quit [Ping timeout: 244 seconds]
<gregf_> >> a = {"a"=> "Hello", "b"=>"World", "f" => "Foo"}; ind=-1; p a.map{ |k, v| ( (ind +=1) > 0 ? "\n" : "") + "#{k}: #{v}" }
<eval-in_> gregf_ => ["a: Hello", "\nb: World", "\nf: Foo"] ... (https://eval.in/205438)
brahmadpk has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<apeiros> join might be easier than this conditional
anaeem1 has quit [Remote host closed the connection]
ephemerian has left #ruby [#ruby]
jimbach has quit [Ping timeout: 246 seconds]
beef-wellington has quit [Ping timeout: 245 seconds]
brandon_2 has quit [Ping timeout: 240 seconds]
DaniG2k has quit [Ping timeout: 258 seconds]
<eam> >> {"a"=> "Hello", "b"=>"World"}.each_pair.map {|e| %[#{e.first}: "#{e.last}"\n] }.join
<eval-in_> eam => "a: \"Hello\"\nb: \"World\"\n" (https://eval.in/205439)
<eam> note, the value is being quoted
Gabri has joined #ruby
DaniG2k has joined #ruby
emocakes__ has joined #ruby
Deejay_ has joined #ruby
hamakn has joined #ruby
jimms has joined #ruby
DaniG2k has quit [Client Quit]
startupality has joined #ruby
ad_boot has joined #ruby
<eam> otherwise I'd go with
<eam> >> {"a"=> "Hello", "b"=>"World"}.each_pair.map {|e| e.join ?: }.join ?\n
<eval-in_> eam => "a:Hello\nb:World" (https://eval.in/205440)
threesixes has quit [Ping timeout: 258 seconds]
emocakes has quit [Ping timeout: 260 seconds]
ringaring has quit [Read error: Connection reset by peer]
ringaring has joined #ruby
garethrees has quit [Ping timeout: 258 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> if all you want to do is print, you can just map without join and `puts` the resulting array directly
emmesswhy has joined #ruby
hamakn has quit [Ping timeout: 255 seconds]
alex88 has quit [Quit: Leaving...]
stunder has joined #ruby
stunder has quit [Client Quit]
ChoiKyuSang has quit [Quit: Going offline, see ya! (www.adiirc.com)]
fsapo has joined #ruby
stunder has joined #ruby
boombadaroomba has joined #ruby
<toretore> ?: ...
beef-wellington has joined #ruby
carraroj has joined #ruby
boombadaroomba has quit [Remote host closed the connection]
kamilc__ has joined #ruby
dfcbeb has quit [Read error: Connection reset by peer]
afhammad has quit []
banister has joined #ruby
tier has joined #ruby
hamakn has joined #ruby
Avahey has joined #ruby
Deele has joined #ruby
allcentury has joined #ruby
<gregf_> >> "#{RUBY_VERSION}"
<eval-in_> gregf_ => "2.1.3" (https://eval.in/205441)
<centrx> >> RUBY_VERSION + 1
<eval-in_> centrx => no implicit conversion of Fixnum into String (TypeError) ... (https://eval.in/205443)
<gregf_> >> RUBY_VERSION
<eval-in_> gregf_ => "2.1.3" (https://eval.in/205445)
boombadaroomba has joined #ruby
_2easy has quit [Quit: Lost terminal]
wjimenez5271 has joined #ruby
andrewjanssen has joined #ruby
andrewjanssen has quit [Client Quit]
peterhu_ is now known as peterhu
_2easy has joined #ruby
spider-mario has joined #ruby
bMalum has quit [Quit: bMalum]
krisquigley has quit [Remote host closed the connection]
krisquigley has joined #ruby
mistermocha has joined #ruby
<eam> toretore: ?: is super awesome
Haiiro has joined #ruby
chthon has quit [Ping timeout: 258 seconds]
jimms has quit []
<centrx> oh that is nice
GeorgesLeYeti has quit [Quit: Leaving]
<centrx> OptionParser is like a boilerplate ceremony of doom
ptrrr has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
Dude007_ has quit [Ping timeout: 240 seconds]
krisquigley has quit [Ping timeout: 240 seconds]
anaeem1_ has joined #ruby
fabrice31 has joined #ruby
tier_ has joined #ruby
Eiam has joined #ruby
michaeldeol has joined #ruby
michaeldeol has quit [Max SendQ exceeded]
<soahccc> centrx: After I noticed that there is some argument magic behind #on I decided to not look into the code and just use it :D
GriffinHeart has quit [Remote host closed the connection]
michaeldeol has joined #ruby
<mark06> centrx: hahaha, indeed I can't stand needing any more than one line to get options parsed, it sucks
rbrs has quit [Remote host closed the connection]
<mark06> I like this definiton "boilerplate ceremony of doom" :)
<soahccc> mark06: so the magic is the comment which get's parsed?
ChoiKyuSang has joined #ruby
<mark06> soahccc: yes
<mark06> write help with double hashes, require, done
yfeldblum has joined #ruby
tier has quit [Ping timeout: 260 seconds]
tier_ has quit [Remote host closed the connection]
jfran has joined #ruby
tier has joined #ruby
pibby has joined #ruby
qhartman has quit [Quit: Ex-Chat]
<toretore> eam: i don't like it
fabrice31 has quit [Ping timeout: 255 seconds]
St_Marx has quit [Quit: Ex-Chat]
<toretore> pretends to be a character, but is a string
mrsolo has joined #ruby
<gregf_> eam: is there any documentation for ?:
<toretore> same with Integer#chr
<eam> characters are strings?
<soahccc> mark06: certainly will use it the next time I do a bash script but I personally have nothing against optparse...
<eam> toretore: what do you think the difference between a character and a one-character string is?
<toretore> i mean a separate character type
Takle has quit [Remote host closed the connection]
<eam> I figured the objection would be the confusion with the ?: ternary operator
<toretore> not really
Spami has quit [Quit: This computer has gone to sleep]
<toretore> it just doesn't give you anything that ':' doesn't
<eam> toretore: does ruby have a separate character type? Why would it need one?
<toretore> it doesn't
<toretore> whether it needs one or not is up for debate
dorei has joined #ruby
<toretore> i don't think so
yfeldblum has quit [Ping timeout: 250 seconds]
carraroj has quit [Ping timeout: 250 seconds]
pu22l3r_ has quit [Remote host closed the connection]
wallerdev has joined #ruby
AtumT has left #ruby [#ruby]
<centrx> >> nil? ? ?t : :f
<eval-in_> centrx => :f (https://eval.in/205453)
<toretore> i can imagine supporting ?c introduces some complexity to the interpreter
brandonshowers has joined #ruby
pu22l3r_ has joined #ruby
<eam> >> :?a
<eval-in_> eam => /tmp/execpad-0b97928972b1/source-0b97928972b1:2: syntax error, unexpected tCHAR, expecting tSTRING_CONTENT or tSTRING_DBEG or tSTRING_DVAR or tSTRING_END (https://eval.in/205454)
ki0 has quit [Ping timeout: 260 seconds]
<eam> >> :'a'
<eval-in_> eam => :a (https://eval.in/205455)
<eam> >> :%{a}
<eval-in_> eam => /tmp/execpad-99177ddd6f91/source-99177ddd6f91:2: syntax error, unexpected '{', expecting keyword_end ... (https://eval.in/205456)
brandonshowers has quit [Client Quit]
<eam> weird
datreh has joined #ruby
<toretore> if i was designing a language and someone asked me to add it i'd tell them to fuck off
<eam> : and single/double quotes are magic. other string quote operators don't work
weemsledeux has joined #ruby
<Hanmac> eam ?c is equal to 'c'[0] in 1.8 - 2.1
weemsledeux has quit [Changing host]
weemsledeux has joined #ruby
treehug88 has quit []
<toretore> 'c' is equal to 'c'[0]
weemsledeux has quit [Max SendQ exceeded]
tvw has quit []
<Hanmac> toretore:
<Hanmac> 18>> 'c' == 'c'[0]
<eval-in_> Hanmac => false (https://eval.in/205458)
<toretore> 18>> 'c'[0]
<eval-in_> toretore => 99 (https://eval.in/205459)
<crome> it should be true
wallerdev has quit [Client Quit]
<toretore> (in 1.9)
SCHAAP137 has joined #ruby
maestrojed has joined #ruby
<eam> all the string stuff changed from 18 -> 19
<toretore> 19>> 'c'[0]
<eval-in_> toretore => "c" (https://eval.in/205460)
wallerdev has joined #ruby
<eam> 18 is still byte oriented iirc
<Hanmac> eam yes, thats why
<Hanmac> 18>> ?c
<eval-in_> Hanmac => 99 (https://eval.in/205461)
<toretore> >>65.chr
<eval-in_> toretore => "A" (https://eval.in/205462)
mleone has joined #ruby
<toretore> fuck that shit
<eam> I love it, we should go back
<soahccc> >> o = "?" ; o[??]??&:??
<eval-in_> soahccc => "&" (https://eval.in/205463)
wjimenez5271 has quit [Read error: Connection reset by peer]
<soahccc> valid ruby :D
wjimenez5271 has joined #ruby
<crome> >> '?'[??]??&:&&
<eval-in_> crome => /tmp/execpad-70a749da3223/source-70a749da3223:2: syntax error, unexpected && (https://eval.in/205466)
<crome> hm
hamakn has quit [Remote host closed the connection]
<crome> ah
GriffinHeart has joined #ruby
<crome> >> '?'[??]??&:??
<eval-in_> crome => "&" (https://eval.in/205467)
<eam> >> % %%%%%%% %%%% % %%%%% %%%% # this comment matters
<eval-in_> eam => "%" (https://eval.in/205468)
<eam> >> % %%%%%%% %%%% % %%%%% %%%%
<eval-in_> eam => /tmp/execpad-34ef2b8f2012/source-34ef2b8f2012:3: syntax error, unexpected tCONSTANT, expecting keyword_end (https://eval.in/205469)
<soahccc> o.O
GriffinHeart has quit [Remote host closed the connection]
<crome> lulz
<toretore> "Humidity: 88%" fuck
jdj_dk has quit [Ping timeout: 255 seconds]
<centrx> >> nil?? ?? :?:
<eval-in_> centrx => ":" (https://eval.in/205470)
tylersmith has joined #ruby
klaut has joined #ruby
skolman has quit [Remote host closed the connection]
<soahccc> >> ??[??]??&:??
<eval-in_> soahccc => "&" (https://eval.in/205471)
hamakn has joined #ruby
<soahccc> weird
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skolman_ has joined #ruby
GriffinHeart has joined #ruby
hellangel7 has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
ringaring has quit [Read error: Connection reset by peer]
mr_blue has quit [Ping timeout: 240 seconds]
zwischenzug2 has quit [Quit: Leaving]
weemsledeux has joined #ruby
hamakn has quit [Ping timeout: 240 seconds]
qwyeth has joined #ruby
skolman_ has quit [Ping timeout: 260 seconds]
jrafanie has joined #ruby
startupality has quit [Quit: startupality]
GriffinHeart has joined #ruby
{xenomorph} is now known as xenomorph
jrafanie has left #ruby [#ruby]
Synthead has quit [Remote host closed the connection]
paulfm has joined #ruby
mikecmpbll has joined #ruby
jottr_ has joined #ruby
klmlfl has quit [Remote host closed the connection]
klmlfl has joined #ruby
ad_boot has quit [Remote host closed the connection]
revoohc has quit [Quit: revoohc]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gsd has joined #ruby
Macaveli has quit [Ping timeout: 245 seconds]
sarandosklikizos has joined #ruby
sarandosklikizos is now known as sklik
qba73 has quit [Ping timeout: 245 seconds]
sklik has quit [Client Quit]
sklik has joined #ruby
fschuindt has joined #ruby
User458764 has quit [Ping timeout: 258 seconds]
klmlfl has quit [Ping timeout: 250 seconds]
GriffinHeart has quit [Remote host closed the connection]
<fschuindt> Guys, what's the better way to analyze a big string and count the occurences number of determined tags inside it? Like how many times the word 'love' appears in determined text.
<wasamasa> is there something more general out there than case?
<wasamasa> asides from writing if-cascades
<wasamasa> something like cond from lisp
Aaaal has quit [Quit: Aaaal]
alem0lars has quit [Quit: AFK..]
mxrguspxrt has quit [Remote host closed the connection]
tylersmith has quit []
mercwithamouth has quit [Ping timeout: 244 seconds]
danijoo has quit [Read error: Connection reset by peer]
last_staff has quit [Read error: Connection reset by peer]
last_staff has joined #ruby
mxrguspxrt has joined #ruby
danijoo has joined #ruby
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
julieeharshaw has quit [Quit: ZZZZZzzzz]
julieeharshaw has joined #ruby
<apeiros> fschuindt: Hash.new(0) + scan + Regexp.union
Gabri has quit []
jottr_ has quit [Ping timeout: 255 seconds]
Lewix has quit [Remote host closed the connection]
bMalum has joined #ruby
ghr has joined #ruby
gregf_ has quit [Ping timeout: 244 seconds]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jimbach has joined #ruby
Haiiro has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gsd has joined #ruby
<mark06> fschuindt: or maybe s.split[tag].length - 1
<mark06> * s.split(tag).length - 1
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<mark06> >> "I love you, I love you".split("love").length -1
<eval-in_> mark06 => wrong number of arguments (1 for 0) (ArgumentError) ... (https://eval.in/205478)
bayed has quit [Quit: Connection closed for inactivity]
<mark06> >> ("I love you, I love you".split("love").length) -1
<eval-in_> mark06 => 2 (https://eval.in/205479)
nb_bez___ has quit [Quit: Connection closed for inactivity]
brandon_ has joined #ruby
gccostabr has joined #ruby
ghr has quit [Ping timeout: 272 seconds]
ivmx has joined #ruby
abuzze has joined #ruby
monkeypatch has quit [Quit: Textual IRC Client: www.textualapp.com]
andrewjanssen has joined #ruby
ad_boot has joined #ruby
last_staff has quit [Quit: I'll be back l8r]
<Hanmac> >> "I love you, I love you".split("love").length - 1
<eval-in_> Hanmac => 2 (https://eval.in/205480)
monkeypatch has joined #ruby
andrewjanssen has quit [Client Quit]
abuzze has quit [Ping timeout: 260 seconds]
<banister> >> "I love you, I love you".split("love")
<banister> >> "I love you, I love you".split("love")
<eval-in_> banister => ["I ", " you, I ", " you"] (https://eval.in/205482)
<mark06> ah, -1
klaut_ has joined #ruby
slester has quit [Quit: Quitte]
claw_ has quit [Write error: Connection reset by peer]
claw_ has joined #ruby
<fschuindt> the problem is that either this: "I love you and you love me." (must return 2) and also this: "Iloveyouandyouloveme." (must also return 2) :(
klaut has quit [Ping timeout: 255 seconds]
lolmaus has quit [Quit: Konversation terminated!]
klmlfl has joined #ruby
claw_ has quit [Read error: No route to host]
claw_ has joined #ruby
marlonandrade has quit [Ping timeout: 240 seconds]
Scotteh has joined #ruby
<fschuindt> That seems to work...
<fschuindt> >> ("I love you and you love me.").scan(/love/).count
<eval-in_> fschuindt => 2 (https://eval.in/205483)
<fschuindt> >>("Iloveyouandyouloveme.").scan(/love/).count
<eval-in_> fschuindt => 2 (https://eval.in/205484)
Lewix has joined #ruby
claw_ has quit [Read error: No route to host]
<mark06> the other one works too
claw_ has joined #ruby
<apeiros> the scan variant was supposed for multiple words in one go
<akkad> if I have an array of items I want to add to a string say cmd = "gpg --no-default-keyring " and I've got a users array of recipients. users.inject("gpg --no-default-keyring") {|x| << " --recipient #{x}" } ? So if users has "foo@bar.com" it would => gpg --no-default-keyring --recipient foo@bar.com ...
<centrx> >> "Ilovemynewglove".scan(/love/).count
<eval-in_> centrx => 2 (https://eval.in/205485)
<mark06> >> "Iloveyouandyoucouldlovemeaswellthatwouldbeourlovestory".split("love").length - 1
<eval-in_> mark06 => 3 (https://eval.in/205486)
geggam has joined #ruby
<fschuindt> mark06: cool
claw_ has quit [Read error: No route to host]
claw__ has joined #ruby
stormbytes has joined #ruby
claw__ has quit [Read error: No route to host]
claw___ has joined #ruby
<mark06> akkad: can you rephrase
klmlfl has quit [Ping timeout: 255 seconds]
tlarevo has quit [Remote host closed the connection]
skand has joined #ruby
<akkad> how to append to a string joined array elements?
marlonandrade has joined #ruby
<centrx> >> a = [1,2,3]; "My favorite string is #{a.join}"
<eval-in_> centrx => "My favorite string is 123" (https://eval.in/205487)
timonv_ has joined #ruby
<akkad> with each element prefixed by a cmd
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zlude has quit [Ping timeout: 260 seconds]
Morkel_ has joined #ruby
<akkad> some command --prefix #{element a} --prefix #{element b} ...
Morkel has quit [Ping timeout: 244 seconds]
Morkel_ is now known as Morkel
claw___ has quit [Ping timeout: 260 seconds]
<centrx> >> array = [1,2,3]; array.map { |e| "--prefix #{e}" }
<eval-in_> centrx => ["--prefix 1", "--prefix 2", "--prefix 3"] (https://eval.in/205488)
<akkad> map join works
klaut_ has quit [Read error: Connection reset by peer]
timonv_ has quit [Remote host closed the connection]
centrx has quit [Quit: The plan is programmed into every one of my one thousand robots]
<akkad> was trying to see if inject worked with strings
klaut has joined #ruby
<mark06> >> s="this is how you"; s << " append to a string"
<eval-in_> mark06 => "this is how you append to a string" (https://eval.in/205489)
emmesswhy has quit [Quit: This computer has gone to sleep]
<akkad> clearly
zlude has joined #ruby
krisquigley has joined #ruby
magic_ has quit [Ping timeout: 260 seconds]
MeMoCooL has joined #ruby
* mark06 doesn't get the problem
<havenwood> >> array = [1,2,3]; array.each_with_object('--prefix').map { |n, flag| "#{flag} #{n}" }
<eval-in_> havenwood => ["--prefix 1", "--prefix 2", "--prefix 3"] (https://eval.in/205490)
<havenwood> akkad: ^ not as nice as something simpler, but maybe take a look at #with_object and #each_with_object
<akkad> havenwood:thanks
<akkad> mark06: was seeing if inject("some string"){|x| } could be done
nanoyak has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
ChoiKyuSang has quit [Quit: Going offline, see ya! (www.adiirc.com)]
krisquigley has quit [Ping timeout: 258 seconds]
ChoiKyuSang has joined #ruby
Machetez has quit [Quit: don't panic]
andrewjanssen has joined #ruby
GriffinHeart has joined #ruby
deepy has quit [Ping timeout: 260 seconds]
ndrei has quit [Ping timeout: 245 seconds]
drawingthesun has quit [Ping timeout: 250 seconds]
drawingthesun has joined #ruby
Guest22067 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
deepy has joined #ruby
deepy is now known as Guest16052
machete has joined #ruby
Deejay_ has quit [Quit: Computer has gone to sleep.]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest22067 has joined #ruby
GriffinHeart has quit [Ping timeout: 246 seconds]
govg has joined #ruby
Synthead has joined #ruby
Takle has joined #ruby
techsethi has joined #ruby
mark06 has left #ruby ["http://pidgin.renatosilva.me - Pidgin++"]
andrewjanssen has quit [Quit: Leaving...]
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
OffTheRails has joined #ruby
rkalfane has joined #ruby
mistermocha has quit [Remote host closed the connection]
stormbytes has left #ruby ["Textual IRC Client: www.textualapp.com"]
monkeypatch has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Takle has quit [Ping timeout: 246 seconds]
agjacome has quit [Quit: leaving]
alem0lars has joined #ruby
wildroman2 has quit [Remote host closed the connection]
monkeypatch has joined #ruby
freezey has quit [Remote host closed the connection]
xymbol has joined #ruby
lkba has joined #ruby
Guest22067 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
last_staff has joined #ruby
Guest22067 has joined #ruby
chrishough has joined #ruby
ctp has joined #ruby
Guest16052 has quit [Changing host]
Guest16052 has joined #ruby
ramfjord has joined #ruby
govg has quit [Quit: leaving]
Guest16052 is now known as deepy
yetanotherdave has joined #ruby
geekbri has quit []
andrewjanssen has joined #ruby
Deele has quit [Ping timeout: 260 seconds]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nanoyak has quit [Read error: Connection reset by peer]
OffTheRails has quit [Ping timeout: 260 seconds]
altamic has joined #ruby
Notte has joined #ruby
nanoyak has joined #ruby
noop has joined #ruby
nanoyak has quit [Write error: Connection reset by peer]
nanoyak has joined #ruby
enebo has quit [Quit: enebo]
Kricir_ has quit [Remote host closed the connection]
icarus has joined #ruby
Kricir has joined #ruby
momomomomo has joined #ruby
elaptics is now known as elaptics`away
jerius_ has joined #ruby
monkeypatch has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Deele has joined #ruby
ivmx has left #ruby [#ruby]
freezey has joined #ruby
Advocation has quit [Quit: Advocation]
havenwood has quit [Remote host closed the connection]
jerius has quit [Ping timeout: 240 seconds]
nanoyak has quit [Read error: Connection reset by peer]
alem0lars has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby
dumdedum has quit [Quit: foo]
W0rmDr1nk has quit [Ping timeout: 240 seconds]
Guest22067 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
nanoyak has joined #ruby
alem0lars has joined #ruby
Kricir has quit [Ping timeout: 272 seconds]
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest22067 has joined #ruby
emmesswhy has joined #ruby
AlSquirrel has quit [Quit: This computer has gone to sleep]
wildroman2 has joined #ruby
Guest22067 has quit [Client Quit]
Guest22067 has joined #ruby
havenwood has joined #ruby
alem0lars has quit [Ping timeout: 260 seconds]
alem0lars has joined #ruby
jdj_dk has joined #ruby
x77686d has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
fabrice31 has joined #ruby
emmesswhy has quit [Ping timeout: 258 seconds]
emmesswhy has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
timgauthier has joined #ruby
alem0lars has quit [Ping timeout: 260 seconds]
_lazarevsky has quit [Ping timeout: 246 seconds]
skolman_ has joined #ruby
druznek has quit [Ping timeout: 255 seconds]
fabrice31 has quit [Ping timeout: 260 seconds]
postmodern has joined #ruby
OffTheRails has joined #ruby
schaerli has quit [Remote host closed the connection]
klmlfl has joined #ruby
<akkad> is system() sync?
kamilc__ has quit [Quit: Linkinus - http://linkinus.com]
pandaant has quit [Remote host closed the connection]
monkeypatch has joined #ruby
<akkad> nvm, the cmd is
benzrf|offline is now known as benzrf
govg has joined #ruby
andrewjanssen has joined #ruby
OffTheRails has quit [Ping timeout: 246 seconds]
Avahey has quit [Quit: Connection closed for inactivity]
klmlfl has quit [Ping timeout: 240 seconds]
chrishou_ has joined #ruby
techsethi has quit [Quit: techsethi]
aspires has quit []
chrishough has quit [Ping timeout: 255 seconds]
timonv_ has joined #ruby
skolman_ has quit [Remote host closed the connection]
ringarin has joined #ruby
codezomb has joined #ruby
skolman has joined #ruby
lagweezle has quit [Quit: leaving]
jgt has joined #ruby
jerius_ has quit [Ping timeout: 244 seconds]
<jgt> hello :)
lagweezle has joined #ruby
<banister> epitron http://pastebin.com/aJZANZk2
<banister> jgt sup
lagweezle has quit [Changing host]
lagweezle has joined #ruby
maletor has joined #ruby
klmlfl has joined #ruby
<jgt> in RSpec, is it possible to disregard the text in an anchor and just match against the href and/or class?
sol_ has left #ruby [#ruby]
<jgt> like, have_link /*/, "/some-path"
<banister> jgt idk
<jgt> I have a link that looks like <a href="/some-path"><i class="fa fa-plus"></i></a>
lmickh has quit [Remote host closed the connection]
skolman has quit [Ping timeout: 255 seconds]
jerius has joined #ruby
<epitron> banister: THIS GUY IS INSPIRING
<epitron> I WANT TO TAKE PART IN THE INTERNET OF HUMANS WITH 10X THE LIFE
Synthead has quit [Remote host closed the connection]
<benzrf> creppy
bthesorceror has joined #ruby
Macaveli has joined #ruby
sevvie has joined #ruby
JoshGlzBrk has joined #ruby
jottr_ has joined #ruby
choke has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
ringaring has joined #ruby
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Kricir has joined #ruby
OffTheRails has joined #ruby
anaeem___ has joined #ruby
anaeem1_ has quit [Ping timeout: 246 seconds]
rkalfane has joined #ruby
Trieste has joined #ruby
<Trieste> Hi, how do I install executable gems? When I do "gem install bundler" as my normal user, it says I don't have permissions to write under /usr/lib/ruby/gems, etc, and when I run it as superuser, it installs the binary in /root/
aspires has joined #ruby
ringarin has quit [Ping timeout: 258 seconds]
emmesswhy has quit [Quit: Leaving]
jottr_ has quit [Ping timeout: 258 seconds]
roger_rabbit has quit [Quit: WeeChat 0.3.8]
Hightower666 has joined #ruby
<epitron> banister: is that troll actually you? :)
<Hanmac> Trieste: seems your system is fucked up, how did you install ruby?
<Trieste> Hanmac: "pacman -S ruby"
Haiiro has joined #ruby
wallerdev has joined #ruby
<epitron> Trieste: when you install the ruby package, it actually tells you how to fix that
<epitron> try reinstalling it -- it should display some instructions when it's finished
musl has quit [Ping timeout: 240 seconds]
<havenwood> epitron: i like the humanhumanhuman subdomain
dbslone has joined #ruby
<havenwood> banister: 6
<Trieste> epitron: I'm afraid it doesn't
<epitron> havenwood: it is the new language of emoji!!!
<epitron> humanhumanhuman == :D:D:D
<havenwood> ^ (uhhg, my left shift key is dying :()
iamjarvo has joined #ruby
Kricir has quit [Remote host closed the connection]
alex-i_ is now known as bankair
jimms has joined #ruby
klaut has quit [Remote host closed the connection]
Kricir has joined #ruby
monkeypatch has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> epitron: i guess you've seen? http://emojilisp.com/
gauke has joined #ruby
<epitron> neeeeeeeeeeeeeeeeeeeeeeeeeeeeeeewwwwwwwwwwwwwwwwwwwwwwwwwwwwwwppppppppppppppppppppppppppppppppppppppppppppp
Hightower666 has quit [Ping timeout: 255 seconds]
<epitron> is it lisp with emojis? :D
klaut has joined #ruby
<havenwood> yup
andrewjanssen has quit [Quit: Leaving...]
NoNMaDDeN has joined #ruby
<epitron>
Kricir_ has joined #ruby
Panicky has joined #ruby
<Trieste> huh, it was some bull ~/.gemrc settings, I have no idea how those got there
<havenwood>
Kricir has quit [Read error: Connection reset by peer]
<epitron> i feel the future of mobile programming for the masses
<waxjar> oh god
<epitron> it is a universal language
<epitron> no race or nationality will be left out of the emojilisp revolution
adac has joined #ruby
ringaring has quit [Quit: Leaving]
<epitron> a revolution of humans to humans not computers to computermen
mkaesz has joined #ruby
klaut has quit [Ping timeout: 255 seconds]
_2easy has quit [Remote host closed the connection]
renderful has quit [Remote host closed the connection]
<havenwood>
Kruppe has quit [Ping timeout: 258 seconds]
<epitron> omg ruby has 911 users in it
ClarusCogitatio has quit [Ping timeout: 260 seconds]
<epitron> ah phew
<epitron> someone left
<epitron> crisis averted
momomomomo has quit [Ping timeout: 272 seconds]
Chinaski has joined #ruby
<banister> epitron hey
<epitron> yes hello
<banister> epitron do u know if a block is even passed to rails controller actions
Kricir_ has quit [Remote host closed the connection]
<epitron> probably not knowing CONTROLLERS
Kricir has joined #ruby
max96at is now known as max96at|off
_2easy has joined #ruby
<epitron> banister: which block are you talking about ?
fmcgeough has quit [Quit: fmcgeough]
hellangel7 has quit [Remote host closed the connection]
Aaaal has joined #ruby
<banister> epitron yield is being called
<epitron> hmmm
<epitron> i dunno, i don't think i've seen that
<arup_r> >> string = ' dog, biz, foo' ; p string.split(/\s+,\s+/)
<eval-in_> arup_r => [" dog, biz, foo"] ... (https://eval.in/205499)
<epitron> what's it for? putting things in templates incrementally?
<arup_r> But I want ["dog", "biz", "foo"]
top4o has joined #ruby
<arup_r> Can you help me to fix the Regex
<arup_r> I am weak in Regex
jimms has quit [Read error: Connection reset by peer]
<epitron> arup_r: try rubular.com :)
jerius has quit []
wsmoak_ has joined #ruby
<arup_r> Not able..
<havenwood> >> ' dog, biz, foo'.strip.split(', ')
<eval-in_> havenwood => ["dog", "biz", "foo"] (https://eval.in/205500)
<arup_r> :-(
<havenwood> or don't use regexp
ghostmoth has quit [Quit: ghostmoth]
Kricir has quit [Ping timeout: 255 seconds]
wsmoak has quit [Ping timeout: 255 seconds]
wsmoak_ is now known as wsmoak
jerius has joined #ruby
<arup_r> >> ' dog, biz, foo'.strip.split(', ')
<eval-in_> arup_r => ["dog", " biz", "foo"] (https://eval.in/205501)
<arup_r> havenwood: Regex is needed
<epitron> arup_r: ' dog, biz, foo'.scan(/\b(\w+)(?:,|$)/).flatten
<epitron> >> ' dog, biz, foo'.scan(/\b(\w+)(?:,|$)/).flatten
<eval-in_> epitron => ["dog", "biz", "foo"] (https://eval.in/205502)
<havenwood> >> ' dog, biz, foo'.strip.split(', ').map(&:strip)
<eval-in_> havenwood => ["dog", "biz", "foo"] (https://eval.in/205503)
ClarusCogitatio has joined #ruby
<epitron> havenwood's solution is more sensible
<epitron> :)
<bankair> Hey, mates: A small question for you: assuming that I want to use several redis sets for several instances of a worker (on heroku). Does anyone know a way/gem/magic formula to manage this kind of setup ?
<havenwood> can get rid of first strip if you're gunna map'n'strip
<havenwood> >> ' dog, biz, foo'.split(', ').map(&:strip)
<eval-in_> havenwood => ["dog", "biz", "foo"] (https://eval.in/205504)
<bankair> (many thanks, in advance)
<epitron> havenwood: if you're stripping, just split on ","
<havenwood> epitron: good point
<havenwood> >> ' dog, biz, foo'.split(',').map(&:strip)
<eval-in_> havenwood => ["dog", "biz", "foo"] (https://eval.in/205505)
<epitron> NOW THAT'S A ROBUST PARSER
abuzze has joined #ruby
momomomomo has joined #ruby
tbrock has joined #ruby
ctp has joined #ruby
choke has joined #ruby
omosoj has joined #ruby
Aaaal has quit [Quit: Aaaal]
banister is now known as banisterfiend
mkaesz has quit [Quit: Leaving...]
enebo has joined #ruby
weeb1e has quit [Quit: No Ping reply in 180 seconds.]
deject3d_laptop has joined #ruby
mekhami has joined #ruby
<mekhami> is this a valid way to comment just the end of a line in ruby? https://gist.github.com/mekhami/8dec0021cdec277358a5 i wanted to comment out the last value because it's not working yet but have it in there for now...
skand has left #ruby [#ruby]
tbrock has quit [Client Quit]
<epitron> hmm. not sure why this doesn't work properly:
<epitron> >> "a,b,c, that's all\, folks!,just kidding\, this is all".split(/(?<!\\),/).map(&:strip)
<eval-in_> epitron => ["a", "b", "c", "that's all", "folks!", "just kidding", "this is all"] (https://eval.in/205506)
<epitron> oh, i know
<epitron> >> "a,b,c, that's all\\, folks!,just kidding\\, this is all".split(/(?<!\\),/).map(&:strip)
<eval-in_> epitron => ["a", "b", "c", "that's all\\, folks!", "just kidding\\, this is all"] (https://eval.in/205507)
mxrguspxrt has quit [Remote host closed the connection]
<epitron> should've used a singlequoted string
abuzze has quit [Ping timeout: 244 seconds]
<monsieurp> epitron: (?:,|$) <- just as a reminder: (?:) is a non-capturing group right?
weeb1e has joined #ruby
<epitron> monsieurp: yeah
<monsieurp> I'm double checking in perldoc perlre
<epitron> http://www.regular-expressions.info/ is a good source of info
mxrguspxrt has joined #ruby
<epitron> on regular expressions
<epitron> on the world wide web
<monsieurp> perlre is even better ;)
<epitron> ok!
<eam> ruby's regex engine diverges from perlre in a few places
<epitron> it's okay perlre is better!
agjacome has joined #ruby
deject3d_ has joined #ruby
deject3d_ has quit [Remote host closed the connection]
deject3d_laptop has quit [Ping timeout: 240 seconds]
TripTastic has left #ruby ["Leaving"]
<monsieurp> eam: I'm sure it does but I'm not discussing the differences :) just what (?:) is about
<eam> oh, that's a non-capturing group
<havenwood> mekhami: just separate it into multiple lines - makes it easier to follow what's going on that the disallowed inline comment
<havenwood> s/that/than/
<havenwood> mekhami: commented on your gist
<mekhami> thanks :)
<monsieurp> epitron: well.. perl regex engine has been copied over to other languages :) so I prefer looking at perl doc first when it comes to regexes
wallerdev has quit [Quit: wallerdev]
<epitron> banisterfiend: oh, is yield for the filters?
kaspertidemann has joined #ruby
<monsieurp> and THEN look for the language's spec for subtleties re eam :)
<omosoj> besides web dev, what kind of work do ruby devs do?
segmond has quit [Ping timeout: 245 seconds]
jimbach has quit [Remote host closed the connection]
<havenwood> omosoj: telephony, aerospace, defense, supercomputing
jimbach has joined #ruby
<epitron> superdupercomputing
<omosoj> wow, so pretty much everything?
Blizzy has joined #ruby
<epitron> everything except superduperDUPERcomputing
<omosoj> lol. who in an organization chooses whether to use ruby or java or whatever?
jimbach has quit [Remote host closed the connection]
<epitron> the devil
Deejay_ has joined #ruby
<omosoj> rofl
<havenwood> omosoj: pretty popular for pentesting and dev ops
jimbach has joined #ruby
tier_ has joined #ruby
<epitron> pen.writes_good?.should == true
<omosoj> pentesting seems interesting.
<havenwood> ball point pens, felt tip pens
nonks has joined #ruby
<havenwood> red ink, blue ink
max96at|off is now known as max96at
<epitron> even sparkly ink!
<havenwood> 0.5mm 0.6mm
<epitron> ruby is truly a multipurpose tool
<omosoj> if pen.gel? == true; pen.writes_good? == true; end
<omosoj> oops the second should be a single =
<havenwood> not when :emtpy?
plukevdh has joined #ruby
tier has quit [Ping timeout: 240 seconds]
<epitron> purchase.affordable_refills.from(Retailers.local_to :you) if pen.empty?
<banisterfiend> epitron got it http://cl.ly/image/1c2i2s2g2p1V
<epitron> banisterfiend: hah.. weird..
plukevdh has quit [Quit: Textual IRC Client: www.textualapp.com]
<banisterfiend> epitron ya it's just API they provide for making `super` calls more powerful
jimbach has quit [Ping timeout: 260 seconds]
zlude has quit [Ping timeout: 272 seconds]
lolmaus has joined #ruby
krisquigley has joined #ruby
jimbach has joined #ruby
<eam> monsieurp: ah but there is no spec
skolman_ has joined #ruby
rbrs has joined #ruby
<monsieurp> eam: for ruby's regex engine?
<eam> yeah
<eam> afaik there's just a very loose description of pcre and then who knows what happens where it diverges
<epitron> the code is the spec motherfucker
<monsieurp> I'm not familiar enough with ruby's tools but is there something such as "rubydoc rubyre"
<monsieurp> there's rdoc right? that I know
skolman_ has quit [Remote host closed the connection]
<monsieurp> epitron: we like you too
aspires has quit []
<epitron> i'm just messing with you
skolman_ has joined #ruby
<monsieurp> :)
tbrock has joined #ruby
<monsieurp> eam: there
jimbach has quit [Ping timeout: 240 seconds]
jdj_dk has quit [Remote host closed the connection]
krisquigley has quit [Ping timeout: 258 seconds]
GriffinHeart has joined #ruby
<epitron> monsieurp: ruby 2.x is using a modded version of that, with some extra perl features: https://github.com/k-takata/Onigmo
aspires has joined #ruby
<eam> I'm sad that oniguruma exists
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<audy> Is there ia magic variable for current byte?
<epitron> eam: why?
klaut has joined #ruby
claymore has quit [Read error: Connection reset by peer]
<epitron> audy: string.bytes.with_index? :)
<eam> because it's not actually defined as pcre, so it differes sometimes and there's no clear path towards convergence
<monsieurp> epitron: I've read the wikipedia article too
<eam> it's just another syntax
<epitron> monsieurp: oic
tier_ has quit [Remote host closed the connection]
<eam> with weird gotchas like line anchors or multiline behaviors
<epitron> i didn't realize wikipedia was so bleeding edge :)
MeMoCooL has quit []
tier has joined #ruby
weeb1e has quit [Quit: No Ping reply in 180 seconds.]
weeb1e has joined #ruby
arescorpio has joined #ruby
ghostmoth has joined #ruby
yetanotherdave has quit [Ping timeout: 272 seconds]
marlonandrade has quit [Ping timeout: 245 seconds]
tbrock has quit [Quit: Computer has gone to sleep.]
marlonandrade has joined #ruby
momomomomo has quit [Quit: momomomomo]
yfeldblu_ has joined #ruby
beneggett has joined #ruby
zlude has joined #ruby
geekbri has joined #ruby
rj46 has joined #ruby
weeb1e has quit [Quit: No Ping reply in 180 seconds.]
weeb1e has joined #ruby
dbslone has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
noop has quit [Ping timeout: 255 seconds]
ad_boot has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 272 seconds]
weeb1e has quit [Client Quit]
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
naftilos76 has joined #ruby
<rj46> hi what could cause that `bash: ./scripts/install: /usr/bin/env: bad interpreter: No permission` ?
<rj46> I try to install rvm
agent_white has joined #ruby
<rj46> i'd like to avoid root permissions
<eam> rj46: is scripts/install executable?
<rj46> eam: its all from `\curl -sSL https://get.rvm.io | bash -s stable`
altamic has quit [Quit: altamic]
<epitron> rj46: do you not have permission to /usr/bin/env?
crazydiamond has joined #ruby
<rj46> epitron: actually I have
<agent_white> Afternoon!
<epitron> rj46: what does the first line of scripts/install say?
<epitron> hello special agent white
<havenwood> #!/usr/bin/env bash
<havenwood> agent_white: helloooo
<epitron> no permission to bash? o_O
<agent_white> havenwood: \o
<eam> hopefully bash isn't installed
<havenwood> rj46: are you bashless?
<naftilos76> hi, i am trying to use net-ssh on my remote server where i can see that the net-ssh gem is installed but when i do require 'net/ssh' i get an error that the file cannot be found. I installed the gem in my laptop and it worked fine. Can anybody make a guess?
<rj46> havenwood: there is permission
<rj46> and i have bash
<rj46> which bash => /bin/bash
<epitron> rj46: what happens when you type "env bash"
<epitron> ...question mark!
<epitron> question-------------------------^
<rj46> epitron: i can't see what happens
<havenwood> rj46: or?: /usr/bin/env bash --version
<rj46> but i guess its next instance of bash
<havenwood> rj46: env bash --version
<epitron> why can you not see
druznek has joined #ruby
<rj46> havenwood: GNU bash, version 4.2.37(1)-release (x86_64-pc-linux-gnu)
<epitron> ok, no problem there
<sterns> Hello, I'm having difficulty with arrays and hashes. I would like to pass an array of hashes from my model to controller. My array is myarray and the hash is myhash, when I do myarray << myhash it seems to overwrite the array or something. Is there a better solution?
chipotle has joined #ruby
<epitron> o_O
<rj46> guys its really weird, at the beginning i thought it was some little permission issue
<epitron> >> myhash = {me: "hash"}; myarray = []; myarray << myhash
<eval-in_> epitron => [{:me=>"hash"}] (https://eval.in/205515)
<rj46> but at this moment i dont know whats wrong
<havenwood> rj46: try asking in #rvm as well
<epitron> sterns: how are you passing the array?
onkelhotte has joined #ruby
<rj46> havenwood: its good idea !
<rj46> i will
freezey has quit [Remote host closed the connection]
tricon_ has joined #ruby
geekbri has quit []
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sterns> epitron: 'return myarray'
<havenwood> rj46: try?: "\curl -sSL https://get.rvm.io | bash ; rvm-restart"
onkelhotte has quit [Client Quit]
weemsledeux has joined #ruby
weemsledeux has quit [Changing host]
weemsledeux has joined #ruby
bMalum_ has joined #ruby
renderful has joined #ruby
<epitron> sterns: so controller calls model.method, which returns myarray... and that doesn't work?
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<rj46> havenwood: the same error, and at the end no command, there is not rvm yet
<rj46> i cant install it
x_root has joined #ruby
<havenwood> rj46: #rvm is a good bet
momomomomo has joined #ruby
x_root has left #ruby ["Leaving"]
OffTheRails has quit [Ping timeout: 246 seconds]
bMalum has quit [Ping timeout: 255 seconds]
bMalum_ is now known as bMalum
<rj46> havenwood: ok, let see what they gonna say
ndrei has joined #ruby
<havenwood> rj46: an aside, but update bash
tricon_ has quit [Client Quit]
rkalfane has joined #ruby
tylersmith has joined #ruby
levisbakalinsky has joined #ruby
Takle has joined #ruby
<epitron> is that a shellshock compatible bash version he's running?
awestroke has quit [Remote host closed the connection]
timgauthier has quit [Quit: Textual IRC Client: www.textualapp.com]
OffTheRails has joined #ruby
<sterns> epitron: the array is getting passed. my array is a list of jobs. I would like each job to be a hash like {:jobtitle => "blah", :description=>"blah"} after doing myarray << myhash, myarray[x][:jobtitle] is the same for all values of x
druznek has quit [Ping timeout: 245 seconds]
ht__th has quit [Read error: Connection reset by peer]
<epitron> ah
<epitron> it sounds like you're reusing your hash
<epitron> you have to make a new hash for every job
<havenwood> epitron: aye shockable
<sterns> myhash.clear won't work (that's what I'm doing)
<audy> epitron magic variable
<epitron> havenwood: and his IP address is unmasked ^_^
<audy> epitron I want to see which byte CSV is on from CSV.fromeach
<audy> *foreach
User458764 has joined #ruby
thagomizer has quit [Quit: Leaving.]
<audy> so I can add a progress bar :D
<epitron> sterns: that's not copying a hash, no :)
<epitron> myhash = {}
<epitron> that's how you should make a new hash
qmfnp has quit [Quit: Textual IRC Client: www.textualapp.com]
Macaveli has quit [Ping timeout: 255 seconds]
blackmesa has quit [Ping timeout: 272 seconds]
<havenwood> epitron: if it weren't for the good ole CFAA i'd just update it for him
alvaro_o has joined #ruby
<epitron> havenwood: hahah
timgauthier has joined #ruby
<sterns> I just changed to hash.new and it's working properly now! Thank you
wildroman2 has quit [Ping timeout: 260 seconds]
thagomizer has joined #ruby
<epitron> lol
<epitron> sterns: a more elegant solution is this --
<epitron> myhash << {jobtitle: "whatever", jobdesc: "stuff", etc. }
<epitron> that'll make a new hash, and it'll be more readable
<epitron> oops
<epitron> myarray <<, not myhash <<
<epitron> i'm saying that you probably don't need the "myhash" variable at all
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
<epitron> (also, Hash.new is not good ruby style... that looks like javascript or java or something)
altamic has joined #ruby
altamic has quit [Changing host]
altamic has joined #ruby
altamic has quit [Client Quit]
<epitron> (you should only need to use Hash.new when you wanna use the special Hash feature where you can set the default value of missing keys)
gauke has quit [Quit: gauke]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
adac has quit [Quit: Leaving]
<epitron> it's kinda like the way people generally don't do String.new, they just type in a string: "whee"
<epitron> just type in the hash! :D
max96at is now known as max96at|off
beneggett has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
fabrice31 has joined #ruby
fschuindt has quit [Quit: WeeChat 0.4.3]
nfk has quit [Quit: yawn]
yfeldblum has joined #ruby
klmlfl has quit [Read error: Connection reset by peer]
hackeron has quit [Ping timeout: 250 seconds]
chipotle has quit [Quit: cya]
klmlfl has joined #ruby
BadQuanta has quit [Ping timeout: 272 seconds]
aspires has quit []
nfk has joined #ruby
hackeron has joined #ruby
fabrice31 has quit [Ping timeout: 246 seconds]
zlude has quit [Ping timeout: 255 seconds]
rdark has quit [Quit: leaving]
wallerdev has joined #ruby
decoponio has quit [Quit: Leaving...]
startupality has joined #ruby
zlude has joined #ruby
carraroj has joined #ruby
klaut has quit [Remote host closed the connection]
jdj_dk has joined #ruby
last_staff has quit [Quit: going 127.0.0.1 to Zzzzz]
spider-mario has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
carraroj has quit [Client Quit]
chrishou_ has quit [Read error: Connection reset by peer]
renderful has quit [Remote host closed the connection]
tskogberg has joined #ruby
ryanleesipes has left #ruby ["Leaving"]
<shevy> wel '' is faster than String.new('')
ryanleesipes has joined #ruby
monkeypatch has joined #ruby
wjimenez_ has joined #ruby
Soda has joined #ruby
emocakes__ has quit []
renderful has joined #ruby
devdazed has quit [Quit: Bye]
patrick99e99 has quit [Ping timeout: 258 seconds]
arescorpio has quit [Excess Flood]
ryanleesipes has left #ruby [#ruby]
wjimenez5271 has quit [Ping timeout: 244 seconds]
emmesswhy has joined #ruby
lmickh has joined #ruby
timonv_ has quit [Remote host closed the connection]
agjacome has quit [Quit: leaving]
jko_ has joined #ruby
timonv_ has joined #ruby
geggam has quit [Ping timeout: 260 seconds]
druznek has joined #ruby
nanoyak has joined #ruby
paulfm has quit []
devdazed has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
geggam has joined #ruby
einarj has joined #ruby
<crome> you mean String.new
<crome> ?
yetanotherdave has joined #ruby
timonv_ has quit [Ping timeout: 260 seconds]
klaut has joined #ruby
qwyeth has quit [Quit: Leaving]
andrewlio has quit [Remote host closed the connection]
freezey has joined #ruby
bmurt has quit []
arup_r has quit [Quit: Leaving.]
chrishough has joined #ruby
ndrei has quit [Ping timeout: 255 seconds]
fsapo has quit [Remote host closed the connection]
rubie has joined #ruby
<rubie> hi all: is there a way to create an array of an unknown size?
<eam> String.new is like 50% slower, yow
yetanotherdave has quit [Ping timeout: 260 seconds]
axl_ has left #ruby [#ruby]
msmith_ has quit [Remote host closed the connection]
<eam> rubie: sure
maestrojed has quit [Quit: Textual IRC Client: www.textualapp.com]
mekhami has quit [Quit: Leaving]
freezey has quit [Ping timeout: 260 seconds]
<naftilos76> Hi, i am trying to use gem net-ssh on my remote server but even though the gem is installed i get a "LoadError: no such file to load -- net/ssh" error when i do "require 'net/ssh' ". However it works fine on my laptop. Can anybody help?
<eam> >> Array.new(Random.rand(2**8))
<eval-in_> eam => [nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, ... (https://eval.in/205521)
<rubie> i just need the array to keep going up by 1 and start a new iteration
jdj_dk has quit [Read error: Connection reset by peer]
aspires has joined #ruby
chipotle has joined #ruby
<jhass> rubie: describe your actual problem. Arrays don't have a fixed size
nanoyak has quit [Quit: Computer has gone to sleep.]
<eam> rubie: you can just access indexes as you wish, ruby will extend the array automatically
omosoj has quit [Ping timeout: 244 seconds]
JeffBonds has quit [Quit: JeffBonds]
nanoyak has joined #ruby
<jhass> naftilos76: make a gist with `gem env` on your server please
ghostmoth has joined #ruby
jgt has quit [Ping timeout: 272 seconds]
tier has quit [Remote host closed the connection]
<naftilos76> it say that env is undefined
<naftilos76> says
<naftilos76> i am on ssh con
<jhass> which ruby and rubygems version?
ndrei has joined #ruby
manzo has joined #ruby
NoNMaDDeN has quit [Remote host closed the connection]
narcan has joined #ruby
monkeypatch has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ghostmoth has quit [Client Quit]
jgt has joined #ruby
flute_booth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<naftilos76> i never had to confirm that, can you pls tell me how i can get the ruby ver ?
<jhass> ruby -v
<jhass> gem -v
zlude has quit [Quit: Leaving]
<rubie> here is the problem, and the solution i'm trying to implement https://gist.github.com/gabrie30/7776d8085ef76095fce8
Stalkr_ has joined #ruby
<eam> >> primes = []; primes.push 2; primes.push 3; primes.push 5
<eval-in_> eam => [2, 3, 5] (https://eval.in/205525)
yetanotherdave has joined #ruby
<eam> rubie: arrays grow by themselves
Ulrike_Rayne has quit [Quit: ZNC - http://znc.in]
<jhass> rubie: as said ruby arrays don't have a fixed length, they'll grow as needed, you can just append to them with #push or #<<
<jhass> rubie: but I wouldn't create arrays in the first place
GPH|work has joined #ruby
olivier_bK has joined #ruby
ldnunes has quit [Quit: Leaving]
narcan has quit [Ping timeout: 240 seconds]
ndrei has quit [Ping timeout: 240 seconds]
<naftilos76> jhass: sorry man, i was in irb. Here is the gem env info: http://pastebin.com/fHGgwsuK
maestrojed has joined #ruby
<jhass> rubie: there's no need to remember anything, numbers are cheap enough to generate
<eam> jhass: uhm, that is definitely not true
<naftilos76> jhass: i think it is a problem related with paths but i do not know how to load net-ssh
codecop has quit [Remote host closed the connection]
<eam> testing previous primes vs testing all previous numbers is really important
<rubie> i guess i could do something like a << a[-1]+1
monkeypatch has joined #ruby
St_Marx has joined #ruby
ghostmoth has joined #ruby
klaut_ has joined #ruby
<jhass> naftilos76: consider updating your ruby, 1.8 is out of any kind of support. Did you install net-ssh as root or as naftilos?
x77686d has quit [Quit: x77686d]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
<naftilos76> i can only install as naftilos
klaut has quit [Read error: Connection reset by peer]
<naftilos76> and i did
chrishough has joined #ruby
<naftilos76> at the moment i have to stay with 1.8.7
<jhass> naftilos76: okay, let's verify where ever you run the require, you have the same environment, there do p $LOAD_PATH and p RUBY_DESCRIPTION and show me the output
monkeypatch has quit [Client Quit]
Panicky has quit [Remote host closed the connection]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> naftilos76: just be aware that the next security issue discovered in it likely won't get patched. But I guess you don't care anyway since that patchlevel has known security issues
<naftilos76> jhass: sorry man, i am really following you. Write exactly what in the terminal?
pu22l3r has joined #ruby
<naftilos76> $LOAD_PATH seems to be empty
<naftilos76> i did echo $LOAD_PATH and no output was produced
abuzze has joined #ruby
<shevy> man
jko_ has quit [Ping timeout: 246 seconds]
<jhass> naftilos76: mmh, right, 1.8.7 times... did you require 'rubygems' ?
<shevy> echo sounds like a shell command
klaut_ has quit [Read error: No route to host]
monkeypatch has joined #ruby
<shevy> but $LOAD_PATH is a ruby variable
<naftilos76> let me do it from the start
<jhass> naftilos76: and I was talking about the place where you run require 'net/ssh' and it fails
klaut has joined #ruby
<naftilos76> i do that in irb
x77686d has joined #ruby
startupality has quit [Quit: startupality]
monkeypatch has quit [Client Quit]
<naftilos76> ok i did => p $LOAD_PATH in irb and i got: ["/usr/lib/ruby/site_ruby/1.8", "/usr/lib/ruby/site_ruby/1.8/x86_64-linux", "/usr/lib/ruby/site_ruby", "/usr/lib/ruby/vendor_ruby/1.8", "/usr/lib/ruby/vendor_ruby/1.8/x86_64-linux", "/usr/lib/ruby/vendor_ruby", "/usr/lib/ruby/1.8", "/usr/lib/ruby/1.8/x86_64-linux", "."]
pu22l3r_ has quit [Ping timeout: 260 seconds]
ptrrr has quit [Quit: ptrrr]
aspires has quit []
skolman__ has joined #ruby
<naftilos76> also p RUBY_DESCRIPTION gave me => "ruby 1.8.7 (2011-02-18 patchlevel 334) [x86_64-linux]"
monkeypatch has joined #ruby
monkeypatch has quit [Max SendQ exceeded]
<jhass> as said, make sure to require 'rubygems' first
<naftilos76> jhass: ok
<ericwood> that hasn't been necessary since 1.8 iirc
<jhass> your local computer probably has a sane ruby version where it happens automatically
beef-wellington has quit [Ping timeout: 244 seconds]
monkeypatch has joined #ruby
Panicky has joined #ruby
abuzze has quit [Ping timeout: 255 seconds]
anaeem___ has quit [Remote host closed the connection]
<jhass> ericwood: in 1.8 it's necessary, 1.9 made it implicit
thagomizer has quit [Quit: Leaving.]
hmsimha has joined #ruby
<naftilos76> after doing require'rubygems' i got p $LOAD_PATH => ["/usr/lib/ruby/site_ruby/1.8", "/usr/lib/ruby/site_ruby/1.8/x86_64-linux", "/usr/lib/ruby/site_ruby", "/usr/lib/ruby/vendor_ruby/1.8", "/usr/lib/ruby/vendor_ruby/1.8/x86_64-linux", "/usr/lib/ruby/vendor_ruby", "/usr/lib/ruby/1.8", "/usr/lib/ruby/1.8/x86_64-linux", "."]
<jhass> naftilos76: does require 'net/ssh' work now though?
aspires has joined #ruby
anaeem1_ has joined #ruby
timonv_ has joined #ruby
skolman_ has quit [Ping timeout: 255 seconds]
startupality has joined #ruby
<naftilos76> jus did it : LoadError: no such file to load -- net/ssh
blackmesa has joined #ruby
<jhass> awesome, I call historic stuff I have no idea about
thagomizer has joined #ruby
_2easy has quit [Remote host closed the connection]
<jhass> I guess it fails to pick up the gem_home from your gemrc for some reason
soxet has joined #ruby
djbkd has joined #ruby
<naftilos76> but it does for gem 'rubygems' right?
ndrei has joined #ruby
Guest14066 has joined #ruby
<naftilos76> or whatever require 'rubygems' means
Deejay_ has quit [Quit: Computer has gone to sleep.]
anaeem1_ has quit [Ping timeout: 240 seconds]
<jhass> `gem 'rubygems'`? never saw that before, where did you pick that up?
<jhass> require 'rubygems' means `require 'rubygems'`
govg has quit [Ping timeout: 240 seconds]
Aaaal has joined #ruby
<naftilos76> sorry i meant the => require 'rubygems'
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JeffBonds has joined #ruby
<naftilos76> not any gem called 'rubygems'
Ulrike_Rayne has joined #ruby
brahmadpk has joined #ruby
<jhass> rubygems is rubys package manager, require 'rubygems' loads it
wjimenez_ has quit [Read error: Connection reset by peer]
<naftilos76> thanks man, i am still learning :-)
<jhass> I guess you're inside some kind of silly webhost?
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wjimenez5271 has joined #ruby
<naftilos76> well it is A2Hosting
<jhass> go complain to them that it doesn't work
<naftilos76> yea i will do that
<jhass> you're not doing anything wrong
<naftilos76> probably the best thing to do
monkeypatch has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> gem install net-ssh; ruby -r'net/ssh'; should just work in any proper setup these days
Notte has quit [Remote host closed the connection]
<naftilos76> thought it was me but it's got to be them...
it0a has quit [Ping timeout: 245 seconds]
wildroman2 has joined #ruby
IceDragon has quit [Ping timeout: 246 seconds]
lukekhamilton has joined #ruby
IceDragon has joined #ruby
momomomomo has quit [Quit: momomomomo]
User458764 has quit [Ping timeout: 260 seconds]
<naftilos76> yea i had that in mind
monkeypatch has joined #ruby
<naftilos76> but they can't just uninstall 1.8.7 because there are probably many counting on that
<eam> many distros are still running 1.8.7, the ruby community expectations are out of sync with the realities of distro management
<jhass> but running at least the last patchlevel should be possible
<eam> your webhost is probably running centos
jgt has quit [Ping timeout: 255 seconds]
mleone has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> eam: actually not so true if you look at the last releases
<naftilos76> yeap centos it is
<eam> jhass: centos7 just came out, yes
<eam> but 99% of everything is still on 6
wildroman2 has quit [Ping timeout: 255 seconds]
rikai has quit [Ping timeout: 240 seconds]
<jhass> doesn't mean we should support 8 years old software that has seen two and a half major releases since then
krisquigley has joined #ruby
timonv_ has quit [Ping timeout: 272 seconds]
_cake has quit [Ping timeout: 240 seconds]
<eam> a value judgement involves many factors. It's easier to make factual observations like "expectations are wildly out of sync"
hmsimha has quit [Read error: Connection reset by peer]
soxet has quit [Quit: Leaving]
<jhass> I'm not a good benchmark anyways, I run arch on servers :P
lukekhamilton has quit [Quit: lukekhamilton]
<eam> at least it's not gentoo
jdj_dk has joined #ruby
freezey has joined #ruby
<arrubin> jhass: DigitalOcean just removed Arch as an option. =(
krisquigley has quit [Ping timeout: 244 seconds]
OffTheRails has quit [Ping timeout: 240 seconds]
rubie has quit [Ping timeout: 246 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
narcan has joined #ruby
livingstn has quit []
druznek has quit [Ping timeout: 245 seconds]
nanoyak has joined #ruby
monkeypatch has quit [Ping timeout: 245 seconds]
x77686d has quit [Quit: x77686d]
aspires has quit []
gtrak has quit [Ping timeout: 260 seconds]
startupality has quit [Quit: startupality]
kaspertidemann has quit []
Aaaal has quit [Quit: Aaaal]
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
startupality has joined #ruby
nb_bez___ has joined #ruby
aspires has joined #ruby
ggherdov has quit [Ping timeout: 260 seconds]
Alina-malina has quit [Quit: https://twitter.com/AleenaMaleena]
rfv has quit [Ping timeout: 260 seconds]
ELLIOTTCABLE has quit [Read error: Connection reset by peer]
kevinfagan has quit [Ping timeout: 260 seconds]
mostlybadfly has quit [Ping timeout: 260 seconds]
ec has joined #ruby
eval-in_ has quit [Remote host closed the connection]
momomomomo has joined #ruby
eval-in_ has joined #ruby
marr has quit [Ping timeout: 260 seconds]
vcoinminer______ has quit [Ping timeout: 260 seconds]
casual has quit [Ping timeout: 260 seconds]
akitada__ has quit [Ping timeout: 260 seconds]
jrunning has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Ping timeout: 260 seconds]
rfv has joined #ruby
oleo is now known as Guest70443
oleo__ has joined #ruby
monkeypatch has joined #ruby
seanmarcia has quit [Ping timeout: 260 seconds]
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
Kabaka has quit [Ping timeout: 260 seconds]
casual has joined #ruby
vcoinminer______ has joined #ruby
seanmarcia has joined #ruby
mostlybadfly has joined #ruby
spyderman4g63 has quit [Ping timeout: 260 seconds]
vlad_starkov has joined #ruby
iamjarvo has joined #ruby
akitada__ has joined #ruby
mary5030 has joined #ruby
jrunning has joined #ruby
renderful has quit [Remote host closed the connection]
kevinfagan has joined #ruby
x77686d has joined #ruby
Kabaka has joined #ruby
Guest70443 has quit [Ping timeout: 272 seconds]
sbar_ has quit [Ping timeout: 258 seconds]
skolman__ has quit [Remote host closed the connection]
goodenough has joined #ruby
ggherdov has joined #ruby
skolman_ has joined #ruby
jottr_ has joined #ruby
agent_white has quit [Quit: bbl]
mikecmpbll has quit [Quit: i've nodded off.]
emocakes has joined #ruby
mary5030 has quit [Ping timeout: 272 seconds]
Eiam has quit [Ping timeout: 250 seconds]
weemsledeux has joined #ruby
weemsledeux has quit [Changing host]
weemsledeux has joined #ruby
Morkel has quit [Quit: Morkel]
renderful has joined #ruby
northfurr has joined #ruby
rikai has joined #ruby
elaptics`away is now known as elaptics
mikecmpbll has joined #ruby
RaCx has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
peteyg has joined #ruby
peteyg has left #ruby [#ruby]
Alina-malina has joined #ruby
lolmaus has quit [Remote host closed the connection]
monkeypatch has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
garbanotas has joined #ruby
lolmaus has joined #ruby
jdj_dk has quit [Ping timeout: 260 seconds]
NoNMaDDeN has joined #ruby
skolman__ has joined #ruby
skolman_ has quit [Read error: Connection reset by peer]
zorak8 has joined #ruby
msmith_ has joined #ruby
skolman_ has joined #ruby
skolman__ has quit [Read error: Connection reset by peer]
skolm____ has joined #ruby
Soda has quit [Remote host closed the connection]
neonixcoder has joined #ruby
naftilos76 has quit [Remote host closed the connection]
patrick99e99 has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
lolmaus has joined #ruby
monkeypatch has joined #ruby
zorak8 has quit [Ping timeout: 245 seconds]
skolman_ has quit [Ping timeout: 244 seconds]
cina has joined #ruby
wethu has joined #ruby
GPH|work has quit [Ping timeout: 260 seconds]
jobewan has quit [Quit: Leaving]
skolm____ has quit [Remote host closed the connection]
klmlfl has quit [Remote host closed the connection]
klmlfl has joined #ruby
fabrice31 has joined #ruby
skolman_ has joined #ruby
xymbol_ has joined #ruby
xymbol has quit [Ping timeout: 240 seconds]
monkeypatch has quit [Client Quit]
c107 has joined #ruby
jleishman has joined #ruby
monkeypatch has joined #ruby
coderdad_ has quit [Remote host closed the connection]
skolman_ has quit [Ping timeout: 244 seconds]
monkeypatch has quit [Client Quit]
cina has quit [Quit: leaving]
fabrice31 has quit [Ping timeout: 260 seconds]
centrx has joined #ruby
pork_clips has joined #ruby
ursooperduper has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pork_clips is now known as _cake
mxrguspxrt has quit [Remote host closed the connection]
skolman has joined #ruby
mxrguspxrt has joined #ruby
monkeypatch has joined #ruby
TeresaP has joined #ruby
zorak8 has joined #ruby
freerobby has quit [Quit: Leaving.]
<TeresaP> Hey all, I'm trying to do system("export DYLD_LIBRARY_PATH=\"$DYLD_LIBRARY_PATH:#{/Users/TeresaP/libsfolder}\"") via my Ruby code and I don't think that variable is getting set. Am I setting it wrong?
<TeresaP> The real code is this: system("export DYLD_LIBRARY_PATH=\"$DYLD_LIBRARY_PATH:#{LIBIMOBILEDEVICE_FOLDER_PATH}\"")
<TeresaP> I realize the first line has a syntax issue with the path, but the real line is hard to read
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<eam> TeresaP: that line will do nothing
<TeresaP> :-|
emmesswhy has quit [Quit: This computer has gone to sleep]
<eam> it will create a sub-shell, set the env var in that subshell, then the subshell will exit
<centrx> So what you're saying is, it does something
<TeresaP> OH right!
<eam> you would have to do something like: system "export XXXX; exec mycmd"
<TeresaP> yes thank you, I knew I was missing something obvious
jonr22 has joined #ruby
<TeresaP> :)
<eam> centrx: zero work
klaut has quit [Remote host closed the connection]
freerobby has joined #ruby
<centrx> if you insist
<eam> TeresaP: I'd recommend doing something like this btw:
klaut has joined #ruby
<eam> oldenv = ENV; ENV['DYLD_LIBRARY_PATH'] = whatever; system "command", "with", "tokenized", "args"; ENV=oldenv
sevvie has quit [Quit: leaving]
<eam> avoid the shell entirely if you can
xymbol_ has quit [Quit: Be back later ...]
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
jimmyy has joined #ruby
jleishman has quit []
ndrei has quit [Ping timeout: 272 seconds]
enebo has quit [Ping timeout: 272 seconds]
<TeresaP> thanks eam
klaut has quit [Ping timeout: 260 seconds]
ramfjord has quit [Ping timeout: 244 seconds]
ndrei has joined #ruby
jdj_dk has joined #ruby
Asher has joined #ruby
JeffBonds has quit [Quit: JeffBonds]
olivier_bK has quit [Ping timeout: 260 seconds]
jimbach has joined #ruby
emmesswhy has joined #ruby
rbrs has quit [Quit: Leaving]
andrewjanssen has joined #ruby
andrewjanssen has left #ruby [#ruby]
monkeypatch has quit [Ping timeout: 260 seconds]
freezey has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 255 seconds]
neonixcoder has quit [Quit: Leaving.]
Scotteh has quit [Ping timeout: 240 seconds]
Jarboe has joined #ruby
kirun has quit [Quit: Client exiting]
<msx> a Ruby beginner here: rbenv or RVM?
<ericwood> rbenv
Nahra has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
timgauthier has quit [Quit: Textual IRC Client: www.textualapp.com]
<msx> ericwood: o/ ty :)
<postmodern> msx, RVM, won't have to hassle with rbenv rehash
<msx> oops
<postmodern> msx, but if your just starting, just use system ruby
<msx> postmodern: o/ just read about that on Octopress wiki
<postmodern> msx, only use RVM/rbenv/chruby when you need _multiple_ rubies
agjacome has joined #ruby
<ericwood> ^^^^^^^
<msx> ahh oka
<msx> ericwood: postmodern, awesome, thank you guys.
<ericwood> as long as the system one is the latest
wjimenez_ has joined #ruby
momomomomo has quit [Quit: momomomomo]
<ericwood> postmodern: surprised no vote for chruby ;)
<postmodern> even then you can upgrade system ruby
wjimenez_ has quit [Read error: Connection reset by peer]
sklik has quit [Remote host closed the connection]
wjimenez_ has joined #ruby
charliesome has joined #ruby
geggam_ has joined #ruby
geggam has quit [Ping timeout: 260 seconds]
neonixcoder has joined #ruby
<msx> It seems CEST takes most part of .eu
monkeypatch has joined #ruby
<msx> oops! wrong #, sorry :)
sinequanon has joined #ruby
oso96_2000 is now known as oso|away
neonixcoder has quit [Client Quit]
wjimenez5271 has quit [Ping timeout: 260 seconds]
jerius has quit []
freerobby has quit [Quit: Leaving.]
emmesswhy has quit [Quit: This computer has gone to sleep]
neonixcoder has joined #ruby
wethu has quit [Quit: This computer has gone to sleep]
ramfjord has joined #ruby
emmesswhy has joined #ruby
Maxdamantus has joined #ruby
einarj has quit [Remote host closed the connection]
geggam has joined #ruby
neonixcoder has quit [Client Quit]
northfurr has quit [Quit: northfurr]
geggam_ has quit [Ping timeout: 258 seconds]
neonixcoder has joined #ruby
renderful has quit [Remote host closed the connection]
<msx> Why Bundle install gems globally /usr/... instead just to my user directory?
lmickh has quit [Remote host closed the connection]
NoNMaDDeN has quit [Quit: Leaving...]
neonixcoder has quit [Client Quit]
bthesorceror has quit [Ping timeout: 260 seconds]
neonixcoder has joined #ruby
<postmodern> msx, because /usr/... is the default gem dir
<msx> postmodern: ty!
<postmodern> msx, you can control where it installs, via the --path option
<postmodern> ex: --path vendor/gems/
KnownSyntax has quit [Quit: Connection closed for inactivity]
<msx> It seems getting started with Ruby will take a bit more time that I anticipated!
geggam has quit [Ping timeout: 255 seconds]
<msx> "The `heroku` gem has been deprecated and replaced with the Heroku Toolbelt." arggh, let's check that
neonixcoder has quit [Client Quit]
<postmodern> msx, there's a lot of tooling
<postmodern> msx, my advice is to take the simplest path possible
jdj_dk has quit [Ping timeout: 244 seconds]
<postmodern> msx, like avoiding capistrano/chef/puppet when you can
<postmodern> msx, yeah heroku toolbelt is kind of broken
<msx> postmodern: absolutely agree with you but I indeed need to learn some Chef too :P
monkeypatch has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<postmodern> msx, im a fan of mina, for simple deploys
monkeypatch has joined #ruby
mary5030 has joined #ruby
<msx> don't know it, googling...
geggam has joined #ruby
Trieste has quit [Ping timeout: 260 seconds]
neonixcoder has joined #ruby
Trieste has joined #ruby
abuzze has joined #ruby
<msx> postmodern: interesting, bookmarked. I have to learn Chef bc I'm aiming to a devops job :P
<msx> but I learn Ruby because I like it, in fact learning Ruby has been in my TODO list for more time that I excpected
jimbach has quit [Remote host closed the connection]
jimbach has joined #ruby
djbkd has quit [Remote host closed the connection]
blackjid has joined #ruby
djbkd has joined #ruby
wethu has joined #ruby
rj46 has quit [Quit: Konversation terminated!]
Nahra has joined #ruby
klmlfl has quit [Remote host closed the connection]
abuzze has quit [Ping timeout: 250 seconds]
michaeldeol has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
nanoyak has joined #ruby
msmith_ has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 255 seconds]
michaeldeol has quit [Client Quit]
Stalkr_ has quit [Quit: Leaving...]
jimbach has quit [Ping timeout: 260 seconds]
michaeldeol has joined #ruby
cpruitt has quit [Quit: cpruitt]
snath has quit [Ping timeout: 245 seconds]
monkeypatch has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
northfurr has joined #ruby
nfk has quit [Quit: yawn]
weemsledeux has joined #ruby
weemsledeux has quit [Changing host]
weemsledeux has joined #ruby
Synthead has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hmsimha has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
JoshGlzBrk has joined #ruby
michaeldeol has joined #ruby
wethu has quit [Quit: This computer has gone to sleep]
nanoyak has quit [Quit: Computer has gone to sleep.]
ramfjord has joined #ruby
JoshGlzBrk has quit [Read error: Connection reset by peer]
neonixcoder has quit [Quit: Leaving.]
JoshGlzBrk has joined #ruby
threesixes has joined #ruby
artmann has quit [Read error: Connection reset by peer]
neonixcoder has left #ruby [#ruby]
nettoweb_ has joined #ruby
neonixcoder has joined #ruby
artmann has joined #ruby
startupality has quit [Quit: startupality]
blackmes1 has joined #ruby
iiinzg has joined #ruby
fella6s has joined #ruby
top4o has quit [Ping timeout: 245 seconds]
AmBienCeD_ has joined #ruby
elaptics is now known as elaptics`away
krisquigley has joined #ruby
geggam has quit [Ping timeout: 260 seconds]
jdj_dk has joined #ruby
hmsimha has quit [Ping timeout: 272 seconds]
blackmesa has quit [Ping timeout: 272 seconds]
iinzg has quit [Ping timeout: 260 seconds]
Spami has joined #ruby
phutchins has quit [Ping timeout: 255 seconds]
fella5s has quit [Ping timeout: 272 seconds]
AmBienCeD has quit [Ping timeout: 272 seconds]
mrsolo has quit [Quit: Leaving]
jimbach has joined #ruby
monkeypatch has joined #ruby
krisquigley has quit [Ping timeout: 255 seconds]
melik has joined #ruby
boombadaroomba has quit [Remote host closed the connection]
icarus has quit [Remote host closed the connection]
Synthead has quit [Remote host closed the connection]
bogeyd6 has joined #ruby
freezey has joined #ruby
Asher has quit [Quit: Leaving.]
JeffBonds has joined #ruby
ghr has joined #ruby
monkeypatch has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freezey has quit [Ping timeout: 272 seconds]
MatthewsFace has quit [Quit: Leaving]
MatthewsFace has joined #ruby
Lewix has quit [Remote host closed the connection]
Vile` has quit [Ping timeout: 246 seconds]
omosoj has joined #ruby
nettoweb_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Vile` has joined #ruby
penzrgb has joined #ruby
penzrgb has quit [Max SendQ exceeded]
MatthewsFace has quit [Client Quit]
tylersmith has quit [Remote host closed the connection]
penzrgb has joined #ruby
penzrgb has quit [Max SendQ exceeded]
ghr has quit [Ping timeout: 255 seconds]
penzrgb has joined #ruby
penzrgb has quit [Max SendQ exceeded]
penzrgb has joined #ruby
ramfjord has quit [Ping timeout: 244 seconds]
luckyruby has joined #ruby
jadedphone has joined #ruby
c107 has quit [Ping timeout: 244 seconds]
geggam has joined #ruby
shosti has joined #ruby
phone_ has quit [Ping timeout: 250 seconds]
MrPepper has joined #ruby
<MrPepper> RoR is a invite only now?
dorei has quit []
<shevy> it is only for the elites
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<rpag> i think you just got to be registered&identified
<MrPepper> hmp, I am not worthy
c107 has joined #ruby
bthesorceror has joined #ruby
<MrPepper> I am worthy again.
mary5030 has quit [Remote host closed the connection]
ghostmoth has quit [Quit: ghostmoth]
VanillaGoat__ has joined #ruby
geggam has quit [Ping timeout: 240 seconds]
musl has joined #ruby
ajk1 has joined #ruby
jonr22 has quit [Remote host closed the connection]
datreh has quit [Ping timeout: 260 seconds]