apeiros_ changed the topic of #ruby to: Ruby 2.2.0; 2.1.5; 2.0.0-p598; 1.9.3-p551: 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
<terrellt> Yes.
peregrine81 has quit []
<bradland> running multiple apps with a single user is a security concern in most cases anyway
jeregrin_ has joined #ruby
ghostlines has joined #ruby
Gues_____ has quit [Client Quit]
klmlfl has joined #ruby
<terrellt> Fair. I'm totally violating that. Mostly because keeping the web of users->applications becomes troublesome without a nicely configured puppet environment.
Rollabunna has joined #ruby
jeregrin_ is now known as jeregrine_
<terrellt> So I'll yield, if you're starting from scratch and can build it up right I see your point. =)
nanoyak has quit [Remote host closed the connection]
gsd has joined #ruby
ghostlines has quit [Client Quit]
nanoyak has joined #ruby
shime_ has joined #ruby
revw has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
nanoyak has joined #ruby
<bradland> at the end of the day, i'm a pragmatist. if rbenv works for you on servers, i say go for it :)
IrishGringo has quit [Ping timeout: 245 seconds]
Eiam has joined #ruby
JDiPierro has quit [Remote host closed the connection]
sivoais_ has quit [Quit: leaving]
Megtastique has quit []
revw has quit [Read error: Connection reset by peer]
mroth is now known as mroth_
Megtastique has joined #ruby
sivoais has joined #ruby
Megtastique has quit [Client Quit]
greggawatt has joined #ruby
nanoyak has quit [Remote host closed the connection]
echevemaster has joined #ruby
rbennacer has joined #ruby
<greggawatt> hey, what the best way to get an array of datetimes that goes from a range of Datetime.current.midnight to Datetime.current.midnight+1.week
nanoyak has joined #ruby
meschi has quit [Remote host closed the connection]
klmlfl has quit [Remote host closed the connection]
nanoyak has quit [Read error: Connection reset by peer]
<bradland> what interval? days, hours, minutes, seconds?
nanoyak has joined #ruby
jenrzzz has joined #ruby
<bradland> greggawatt: i'll give you a hint at how i'd do it.
<bradland> times can be represented as intergers using the timestamp format
<greggawatt> hours
<bradland> so, if you Datetime.current.midnight can be represented as an integer, and so can that date +1 week, how would you go about building that interval with integers?
<greggawatt> iterate by the integer of one hour?
<bradland> yep
rbennacer has quit [Remote host closed the connection]
<bradland> since the integer is seconds, one hour is 60 * 60
<bradland> is this in rails?
thumpba_ has quit [Ping timeout: 265 seconds]
<greggawatt> yeah
<bradland> yeah, those methods .midnight look like extensions
<bradland> i'm used to working directly with Time
startupality has joined #ruby
<greggawatt> ah, i just tried it and it worked lol
<bradland> you should probably hang out for someone else's input, because i don't use rials much
<bradland> *rails
<bradland> there might be a shortcut
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<greggawatt> thanks anyway!
<bradland> you bet
amclain has joined #ruby
jeremati_ has joined #ruby
havenwood has joined #ruby
red_horned_rihno has quit [Ping timeout: 264 seconds]
TheNet has quit [Remote host closed the connection]
jerematic has quit [Ping timeout: 240 seconds]
red_horned_rihno has joined #ruby
TheNet has joined #ruby
arescorpio has joined #ruby
<greggawatt> one more question bradland
<bradland> sure
<greggawatt> is there a way to make a range iterate over something other than one?
zacts has joined #ruby
<havenwood> >> 0.step(by: 3, to: 9).to_a
<eval-in_> havenwood => [0, 3, 6, 9] (https://eval.in/242856)
<bradland> i think it's step
<havenwood> >> (0..9).step(3).to_a
<eval-in_> havenwood => [0, 3, 6, 9] (https://eval.in/242857)
<bradland> beat me to it
AlexRussia has joined #ruby
<havenwood> >> 0.upto(9).each_slice(3).map(&:first).to_a
<eval-in_> havenwood => [0, 3, 6, 9] (https://eval.in/242858)
<bradland> did not know about the by, to syntax
t0rc has joined #ruby
<bradland> i don't see that in the docs either
<havenwood> oops, don't need a #to_a on the last one
<bradland> ah, Numeric#step
<greggawatt> ah
skj3gg has joined #ruby
conniemj_ has quit [Quit: (null)]
<greggawatt> man ya'll know some things
thsig has joined #ruby
reinaldob has joined #ruby
<havenwood> >> 0.1r.step(by: 0.1r, to: 1r).to_a
<eval-in_> havenwood => [(1/10), (1/5), (3/10), (2/5), (1/2), (3/5), (7/10), (4/5), (9/10), (1/1)] (https://eval.in/242859)
<bradland> things, we know them
<bradland> i want that on a shirt
<bradland> Things; I know them.
<bradland> semi-colon included
<bradland> because; semi-colon
baweaver has joined #ruby
zwer_v has joined #ruby
leafybasil has joined #ruby
thsig has quit [Ping timeout: 276 seconds]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
revw has joined #ruby
ishikawa has quit [Ping timeout: 250 seconds]
_pudding_ has joined #ruby
zwer has quit [Ping timeout: 250 seconds]
ishikawa has joined #ruby
<_pudding_> i'm trying to grab a data-attribute from a form after posting it to a route handler in sinatra. is there standard ruby for grabbing an attribute that's not a param from an html element?
baweaver has quit [Ping timeout: 255 seconds]
AdamMeghji is now known as AdamMeghji_
leafybasil has quit [Ping timeout: 264 seconds]
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
ta_ has joined #ruby
revw has quit [Ping timeout: 244 seconds]
baweaver has joined #ruby
danman has joined #ruby
mikepack has joined #ruby
iMe has joined #ruby
qhartman has joined #ruby
jenrzzz has joined #ruby
baweaver has quit [Remote host closed the connection]
zwer_v is now known as zwer
oo_ has joined #ruby
reinaldob has quit [Ping timeout: 256 seconds]
ta_ has quit [Ping timeout: 264 seconds]
kenneth has joined #ruby
dorei has joined #ruby
sinkensabe has joined #ruby
_pudding_ has quit [Ping timeout: 246 seconds]
staticshock_ has joined #ruby
scripore has joined #ruby
tyfighter has joined #ruby
sevenseacat has joined #ruby
Guest18670 has quit [Ping timeout: 245 seconds]
virtualize has joined #ruby
tyfighter has quit [Client Quit]
nanoyak has quit [Quit: Computer has gone to sleep.]
PhilK is now known as PhilK_
zenspider_ is now known as zenspider
jnylen1 has joined #ruby
jnylen1 is now known as jnylen
sinkensabe has quit [Ping timeout: 256 seconds]
jnylen has quit [Changing host]
jnylen has joined #ruby
danman has quit [Read error: Connection reset by peer]
C1V0 has joined #ruby
yfeldblum has quit [Remote host closed the connection]
TheNet has quit [Remote host closed the connection]
pietr0_ has quit [Quit: pietr0_]
lw has quit [Quit: s]
TheNet has joined #ruby
dcarmich has joined #ruby
deryl has joined #ruby
mrmargolis has joined #ruby
Spami has joined #ruby
t0rc has quit [Quit: WeeChat 1.0.1]
Hijiri has joined #ruby
ddd has quit [Ping timeout: 245 seconds]
deryl is now known as ddd
kies has joined #ruby
Channel6 has joined #ruby
djbkd has quit [Quit: My people need me...]
baweaver has joined #ruby
tier has joined #ruby
x1337807x has joined #ruby
skinny_much has joined #ruby
Guest90951 has quit [Quit: derpity derp]
sinequanon has joined #ruby
yokel has quit [Ping timeout: 256 seconds]
it0a has joined #ruby
yokel has joined #ruby
PanzerModern has quit [Remote host closed the connection]
jherbst has joined #ruby
tier has quit [Ping timeout: 265 seconds]
pdoherty has joined #ruby
greggawatt has quit [Quit: Leaving.]
bronson has joined #ruby
Eminence_ has quit [Remote host closed the connection]
ss_ has joined #ruby
tier has joined #ruby
Guest18670 has joined #ruby
tkuchiki has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
crazed has joined #ruby
pdoherty has quit [Ping timeout: 264 seconds]
ishikawa has quit [Remote host closed the connection]
ishikawa has joined #ruby
bronson has quit [Ping timeout: 264 seconds]
shime_ has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
larissa has quit [Ping timeout: 244 seconds]
scripore has quit [Quit: Leaving]
iMe has quit [Ping timeout: 245 seconds]
TheNet has quit [Remote host closed the connection]
timanema has joined #ruby
TheNet has joined #ruby
ivanskie has joined #ruby
iMe has joined #ruby
CrazyM4n has quit [Remote host closed the connection]
robustus has quit [Ping timeout: 264 seconds]
x1337807x has joined #ruby
Tricon has joined #ruby
aoeu has joined #ruby
<aoeu> Hello, I'm back.
robustus|Off has joined #ruby
robustus|Off is now known as robustus
echevemaster has quit [Ping timeout: 264 seconds]
dorei has quit []
Guest18670 has quit [Quit: Konversation terminated!]
Guest18670 has joined #ruby
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
larissa has joined #ruby
beneggett has joined #ruby
jeregrine_ has quit []
Hobogrammer has joined #ruby
zacstewart has quit [Ping timeout: 272 seconds]
dc has joined #ruby
Guest18670 has quit [Ping timeout: 265 seconds]
lampd1 has joined #ruby
oo_ has quit [Remote host closed the connection]
commmmodo has joined #ruby
crdpink2 has quit [Quit: q term]
mroach has joined #ruby
x1337807x has quit [Read error: Connection reset by peer]
fgo_ has quit [Ping timeout: 252 seconds]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
Salve has joined #ruby
mikepack has quit [Remote host closed the connection]
havenwood has quit []
echevemaster has joined #ruby
<bradland> wb aoeu
IrishGringo has joined #ruby
ss_ has quit [Ping timeout: 265 seconds]
n008f4g_ has quit [Ping timeout: 244 seconds]
hephaestus_rg has joined #ruby
jerikl has joined #ruby
visof has quit [Ping timeout: 244 seconds]
Tricon has quit [Ping timeout: 264 seconds]
Sawbones has joined #ruby
Juanchito_ has quit [Quit: Connection closed for inactivity]
sinkensabe has joined #ruby
mbff has joined #ruby
<mbff> Anyone know of a way to html text like it would be viewed in a browser?
maletor has joined #ruby
<mbff> like remove all the <tags></tags> and such?
<aoeu> mbff: What?
<aoeu> mbff: Question makes no sense.
<mbff> Like get only text back from a html page that you would see if you viewed the page
<aoeu> bradland: Did you install Visual Studio? I forgot to give you my referal link.
<sevenseacat> rails has strip_tags
<sevenseacat> dunno about plain ruby
<mbff> example: <p>Test <span></span> </p> ==> TEST
<aoeu> mbff: You want to lose all formatting?
<mbff> yah
<mbff> just text
mjuszczak has quit []
nateberkopec has joined #ruby
<aoeu> mbff: regex replace on <>
<aoeu> mbff: but the answer was posted above
yokel has quit [Ping timeout: 245 seconds]
sinkensabe has quit [Ping timeout: 252 seconds]
tier has quit [Remote host closed the connection]
yokel has joined #ruby
echevemaster has quit [Ping timeout: 256 seconds]
TheNet has quit [Remote host closed the connection]
sinequanon has quit [Read error: Connection reset by peer]
TheNet has joined #ruby
dkphenom has joined #ruby
ChristianDC has joined #ruby
<ChristianDC> Does anyone know why sprintf '%05d', rand(0..99999) would sometimes print only 4 numbers
yfeldblum has joined #ruby
<ChristianDC> oh wait i think this has to do with activerecord not saving the first0
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Sawbones has quit []
<sevenseacat> integer fields wont save leading 0s, correct
bricker has quit [Quit: leaving]
startupality has quit [Quit: startupality]
<ChristianDC> it's a varchar field though
bronson has joined #ruby
spicerack2 has joined #ruby
<bradland> shouldn't care about leading zeros then
<ChristianDC> yeah weird
Tricon has joined #ruby
<sevenseacat> if you're looking at the database, thats got nothing to do with that simple sprintf statement
zacstewart has joined #ruby
xenophene has joined #ruby
<bradland> hold the phone. how does activerecord factor in to it?
<bradland> >> sprintf('%05d', 00001)
<eval-in_> bradland => "00001" (https://eval.in/242923)
<bradland> the sprintf call with that formatter will always print 5 chars
<ChristianDC> i see what the problem is
it0a has quit [Ping timeout: 255 seconds]
<bradland> but i don't see how activerecord matters, unless there's something you haven't told us :)
yfeldblum has quit [Ping timeout: 245 seconds]
<ChristianDC> in my test i'm testing for > 9999
<ChristianDC> so i think it's converting the string to a num
<ChristianDC> and removing the first 0
<sevenseacat> so theres nothing wrong with the code you gave us
<sevenseacat> tricky :P
<ChristianDC> yeah definitely a bit tricky
<bradland> i still don't see how leading zeros matter
<ChristianDC> guess I could generate stuff between 1000 and 9999
bashusr has joined #ruby
<bradland> because when comparing integers, 099 is still < 100
<bradland> >> "099" < 100
<eval-in_> bradland => comparison of String with 100 failed (ArgumentError) ... (https://eval.in/242925)
metadave has joined #ruby
<bradland> doesn't look the string comparison "just works" in that case
<bradland> >> "99" < 100
<eval-in_> bradland => comparison of String with 100 failed (ArgumentError) ... (https://eval.in/242926)
<bradland> newp
<bradland> you have to explicitly call .to_i
bashusr has quit [Read error: Connection reset by peer]
Joufflu has joined #ruby
<ChristianDC> well i'm accessing an activerecord attribute which is varchar
<ChristianDC> in rspec i'm testing that it's > 9999
<ChristianDC> expect(code).to be > 9999
<dkphenom> how can I output a nicely formatted text file to console with ruby and retain or even enhance the formatting?
<ChristianDC> it seems that's what 01234 turns into 1234
<ChristianDC> my check is just wrong i guess
<ChristianDC> should be testing string length i guess
<bradland> yeah, if you're storing it as a string, then it's not an integer
bashusr has joined #ruby
<ChristianDC> yeah i changed this around a few times so now everything is a string
<ChristianDC> just a bad test
<bradland> are these invoice numbers?
<bradland> or something?
fgo_ has joined #ruby
<bradland> even supports box drawing characters, for great justice
commmmodo has quit [Quit: commmmodo]
Guest__ has joined #ruby
<ChristianDC> oh i am calling to_i
<ChristianDC> total fail here lol
<dkphenom> bradland, is there something native that I could use?
<bradland> hahaha :)
<bradland> dkphenom: Kernel#sprintf
<bradland> it'll grow your neckbeard
bashusr has quit [Read error: Connection reset by peer]
Tricon has quit [Ping timeout: 264 seconds]
<bradland> by native, i assume you mean in core or stdlib
<dkphenom> and just do it based on line number? or regex?
<dkphenom> yeah
mleung has quit [Quit: mleung]
funburn has joined #ruby
<dkphenom> lets say i want to output my resume to the terminal
DadoCe has joined #ruby
zorak8 has quit [Read error: Connection reset by peer]
<dkphenom> fromatted nicely, what what I hook on?
<bradland> so, yeah. it depends on what you mean by "formatted nicely".
bashusr has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
zorak8 has joined #ruby
<bradland> if you're in a terminal, you have some additional things at your disposal, like ascii color codes and such.
iMe has quit [Ping timeout: 264 seconds]
<bradland> but, can you count on the user being at a color capable terminal?
<bradland> you have to define your requirements more specifically
<dkphenom> yeah color capable terminal
<dkphenom> i was thinking more along the lines of tabs, bolded, italicized, bullets
<dkphenom> maybe underline a couple of things
iMe has joined #ruby
<bradland> all of those are going to be environment dependent
jasonwc_ has joined #ruby
revw has joined #ruby
sbx has joined #ruby
<bradland> as far as what's in the stdlib, i dunno
<bradland> not sure you're going to find much, but you're only talking about a handful of methods
DadoCe has quit [Ping timeout: 252 seconds]
jasonwc_ has quit [Client Quit]
bashusr has joined #ruby
josephndenton has joined #ruby
<bradland> dkphenom: try this in irb: puts "this is \033[1mbold\033[0m"
<bradland> >> puts "this is \033[1mbold\033[0m"
<eval-in_> bradland => this is [1mbold[0m ... (https://eval.in/242928)
<bradland> obvs that wasn't going to work :\
<bradland> the sequence \033[4m is for underline
zacstewart has quit [Ping timeout: 276 seconds]
ta_ has joined #ruby
einarj has joined #ruby
<dkphenom> thanks
hamakn has joined #ruby
echevemaster has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
bashusr has joined #ruby
king313 has quit [Quit: .]
einarj has quit [Ping timeout: 252 seconds]
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DadoCe has joined #ruby
revw has quit [Read error: Connection reset by peer]
blizzy has joined #ruby
Salve has quit [Remote host closed the connection]
nanoyak has joined #ruby
bronson has quit [Remote host closed the connection]
bashusr has quit [Read error: Connection reset by peer]
bashusr has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
mbff has quit [Remote host closed the connection]
VBlizzard has joined #ruby
funburn has quit [Ping timeout: 272 seconds]
bashusr has joined #ruby
jefus__ has joined #ruby
yokel has quit [Ping timeout: 245 seconds]
ta_ has quit [Ping timeout: 245 seconds]
yokel has joined #ruby
blizzy has quit [Disconnected by services]
VBlizzard is now known as blizzy
baweaver has quit [Remote host closed the connection]
DadoCe has quit [Remote host closed the connection]
bashusr has quit [Read error: Connection reset by peer]
bashusr has joined #ruby
cocotton has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
cocotton has quit [Remote host closed the connection]
bashusr has joined #ruby
bashusr has quit [Changing host]
bashusr has joined #ruby
Sawbones has joined #ruby
zacstewart has joined #ruby
Aova has quit [Remote host closed the connection]
chihhsin has quit [Quit: leaving]
chihhsin has joined #ruby
CrazyM4n has joined #ruby
red_horned_rihno has quit [Quit: Leaving]
bashusr has quit [Read error: Connection reset by peer]
kenneth has joined #ruby
nuck has joined #ruby
bashusr has joined #ruby
adriancb has joined #ruby
wallerdev has quit [Quit: wallerdev]
7JTAB3J1G is now known as thomas
sinkensabe has joined #ruby
Joufflu_ has joined #ruby
iMe has quit [Ping timeout: 256 seconds]
Joufflu has quit [Ping timeout: 245 seconds]
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sinkensabe has quit [Ping timeout: 264 seconds]
claptor has joined #ruby
iMe has joined #ruby
Lingo_ has joined #ruby
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Joufflu_ has quit [Quit: Peace]
em0ral has joined #ruby
Hijiri has quit [Ping timeout: 276 seconds]
yfeldblum has joined #ruby
Spami has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Hijiri has joined #ruby
ivanskie has joined #ruby
Sawbones has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 245 seconds]
amclain_ has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
dkphenom has joined #ruby
bashusr has joined #ruby
josephndenton has quit [Ping timeout: 245 seconds]
cicloid has quit [Ping timeout: 244 seconds]
Guest81859 has quit [Ping timeout: 245 seconds]
jeregrin_ has joined #ruby
blizzy has quit [Ping timeout: 264 seconds]
amclain has quit [Ping timeout: 245 seconds]
Lingo_ has quit [Quit: (null)]
Hijiri has quit [Ping timeout: 245 seconds]
Ikri has quit [Quit: No Ping reply in 180 seconds.]
okic has joined #ruby
nrcpts has joined #ruby
synfin has joined #ruby
epochwolf has quit [Excess Flood]
timanema has quit [Ping timeout: 245 seconds]
Sawbones has joined #ruby
G has quit [Ping timeout: 244 seconds]
Ikri has joined #ruby
epochwolf has joined #ruby
snzmn has joined #ruby
davedev24_ has joined #ruby
hostess has quit [Quit: No Ping reply in 180 seconds.]
kapil__ has joined #ruby
revw has joined #ruby
amystephen has joined #ruby
Megtastique has joined #ruby
amystephen has quit [Client Quit]
bashusr has quit [Read error: Connection reset by peer]
cicloid has joined #ruby
taiansu has joined #ruby
bashusr has joined #ruby
Megtastique has quit [Read error: No route to host]
Hijiri has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
bashusr has joined #ruby
Megtastique has joined #ruby
zorak8 has quit [Read error: Connection reset by peer]
hostess has joined #ruby
Sawbones has quit [Ping timeout: 276 seconds]
pdoherty has joined #ruby
vozcelik has joined #ruby
Nigel_ has joined #ruby
_maes_ has joined #ruby
neersighted has joined #ruby
rbennacer has joined #ruby
krz has joined #ruby
davedev24_ has quit [Ping timeout: 244 seconds]
gz_rain_ has joined #ruby
pdoherty has quit [Ping timeout: 255 seconds]
Guest__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davedev24_ has joined #ruby
<aoeu> Guys, question.
djbkd has joined #ruby
<aoeu> What's the next GUI design pattern that's coming after MVC and MVVM?
<sevenseacat> probably MVWTF
Sawbones has joined #ruby
<aoeu> sevenseacat: Seriously.
<sevenseacat> seriously? ok let me get my crystal ball
<sevenseacat> to tell you what is going to be invented next
pu22l3r has joined #ruby
rbennacer has quit [Ping timeout: 245 seconds]
taiansu has quit []
amclain__ has joined #ruby
larissa has quit [Quit: Leaving]
kuda has joined #ruby
gz_rain_ is now known as wei_au
larissa has joined #ruby
nateberkopec has quit [Quit: Leaving...]
Lingo_ has joined #ruby
amclain_ has quit [Ping timeout: 245 seconds]
oo_ has quit [Remote host closed the connection]
bashusr has quit [Read error: Connection reset by peer]
timanema has joined #ruby
nateberkopec has joined #ruby
taiansu has joined #ruby
taiansu has quit [Remote host closed the connection]
nateberkopec has quit [Client Quit]
ta_ has joined #ruby
bashusr has joined #ruby
amclain__ is now known as amclain
Spami has quit [Quit: This computer has gone to sleep]
bashusr has quit [Read error: Connection reset by peer]
zorak8 has joined #ruby
lkba_ has joined #ruby
bashusr has joined #ruby
timanema has quit [Ping timeout: 246 seconds]
tectonic has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
bashusr has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
ss_ has joined #ruby
bashusr has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
Sawbones has quit [Remote host closed the connection]
Sawbones has joined #ruby
iMe has quit [Ping timeout: 265 seconds]
<ChristianDC> maybe hexagonal?
greenbagels has joined #ruby
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ChristianDC> not necessarily GUI
spicerack2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lamasnik has quit [Ping timeout: 256 seconds]
iMe has joined #ruby
oo_ has joined #ruby
<ChristianDC> AngularJS is commonly referenced as being MVWhatever
bashusr has quit [Read error: Connection reset by peer]
nuck has quit [Quit: Computer has gone to sleep.]
bashusr has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
speaking1ode has joined #ruby
Musashi007 has joined #ruby
bashusr has joined #ruby
adriancb has quit [Remote host closed the connection]
Nigel_ is now known as G
spicerack2 has joined #ruby
djbkd has quit [Remote host closed the connection]
adriancb has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
edmz_ has joined #ruby
bashusr has joined #ruby
Musashi007 has quit [Quit: Musashi007]
bashusr has quit [Read error: Connection reset by peer]
bashusr has joined #ruby
ellisTAA has joined #ruby
yokel has quit [Ping timeout: 240 seconds]
<ellisTAA> i want to be the best at ruby. does anyone know who the top ruby programmer is??
sinkensabe has joined #ruby
<sevenseacat> lol
yokel has joined #ruby
<ellisTAA> lol. im serious thoguh
jenrzzz has quit [Ping timeout: 245 seconds]
edmz_ has left #ruby [#ruby]
Joufflu has joined #ruby
<sevenseacat> i'd concentrate on just learning it before worrying about being 'the best'.
<ellisTAA> ok that’s you.
metadave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jobewan has joined #ruby
ponga has joined #ruby
sinkensabe has quit [Ping timeout: 255 seconds]
ta_ has joined #ruby
dc has quit [Remote host closed the connection]
<sevenseacat> ok, if you want to be silly. probably matz, he invented the language.
yeticry has joined #ruby
<sevenseacat> or any of the ruby core team.
greenbagels_ has joined #ruby
greenbagels has quit [Ping timeout: 246 seconds]
<ellisTAA> cool, thanks. i think i’ll send him an email
adriancb has quit [Remote host closed the connection]
<sevenseacat> 'hey matz, imma be a better programmer than you soon. love, ellisTAA'
<ellisTAA> haha
<staticshock_> classic ellisTAA
lw has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_5kg has joined #ruby
<ellisTAA> ill let you know if we gets back to me
ivanskie has joined #ruby
greenbagels_ has quit [Read error: Connection reset by peer]
bashusr has joined #ruby
ajaiswal has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
slawrence00 has joined #ruby
bashusr has joined #ruby
bashusr has quit [Changing host]
bashusr has joined #ruby
dc has joined #ruby
Hijiri has quit [Ping timeout: 276 seconds]
_5kg has quit [Ping timeout: 276 seconds]
ta_ has quit [Ping timeout: 276 seconds]
towski_ has quit [Remote host closed the connection]
i8igmac has joined #ruby
djbkd has joined #ruby
greenbagels has joined #ruby
red_horned_rihno has joined #ruby
red_horned_rihno has quit [Read error: Connection reset by peer]
Sawbones has quit [Remote host closed the connection]
lamasnik has joined #ruby
bronson has joined #ruby
greenbagels_ has joined #ruby
Sawbones has joined #ruby
lw has quit [Quit: s]
braincrash has quit [Quit: bye bye]
Sawbones has quit [Remote host closed the connection]
bashusr has quit [Read error: Connection reset by peer]
iMe has quit [Ping timeout: 246 seconds]
mostlybadfly_ is now known as mostlybadfly
kuda has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bashusr has joined #ruby
<shevy> code code code
centrx has joined #ruby
greenbagels has quit [Ping timeout: 245 seconds]
djbkd has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
bronson has quit [Ping timeout: 245 seconds]
Megtastique has quit []
greenbagels_ has quit [Ping timeout: 256 seconds]
_5kg has joined #ruby
iMe has joined #ruby
ta_ has joined #ruby
yfeldblum has joined #ruby
Cache_Money has joined #ruby
djbkd has joined #ruby
braincrash has joined #ruby
ta_ has quit [Ping timeout: 252 seconds]
oo_ has quit [Remote host closed the connection]
Musashi007 has joined #ruby
duncannz has quit [Ping timeout: 245 seconds]
mroach has quit [Quit: mroach]
bashusr has quit [Read error: Connection reset by peer]
icebourg has joined #ruby
djbkd has quit [Ping timeout: 244 seconds]
nuck has joined #ruby
tus has quit []
bashusr has joined #ruby
zacstewart has quit [Ping timeout: 245 seconds]
kyb3r_ has joined #ruby
bluOxigen has joined #ruby
zorak8 has quit [Ping timeout: 272 seconds]
fandi_ has joined #ruby
IrishGringo has quit [Ping timeout: 272 seconds]
ivanskie has quit [Ping timeout: 245 seconds]
chrishough has joined #ruby
aoeu has quit [Ping timeout: 246 seconds]
Axy has quit [Read error: Connection reset by peer]
mroach has joined #ruby
<ericwood> that's what I'm doing
<ericwood> finishing up a UI homework assignemnt for this interview
<shevy> I hereby rename you as codewood
<ericwood> no im ericwood you take that back
Lingo_ has quit [Quit: (null)]
ivanskie has joined #ruby
<shevy> ok
<shevy> you are now known as ericwood the pianist again
taiansu has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
<ericwood> I don't even play piano
<ericwood> I'm a guitarist
<ericwood> I just like synthesizers
<ericwood> mine is an analog monophonic, one, thank god, because I have no idea how to handle more than one note at once
bashusr has joined #ruby
lemur has joined #ruby
greenbagels has joined #ruby
ivanskie has quit [Ping timeout: 265 seconds]
mroach has quit [Quit: mroach]
surs has joined #ruby
Sawbones has joined #ruby
j4d has quit [Quit: Leaving]
bashusr has quit [Read error: Connection reset by peer]
anaeem1_ has joined #ruby
_5kg has quit [Ping timeout: 264 seconds]
bashusr has joined #ruby
Sawbones has quit [Remote host closed the connection]
troubadour has joined #ruby
Sawbones has joined #ruby
cantonic has quit [Ping timeout: 246 seconds]
<shevy> hehe
cantonic has joined #ruby
sinkensabe has joined #ruby
yokel has quit [Ping timeout: 256 seconds]
bashusr has quit [Read error: Connection reset by peer]
yokel has joined #ruby
JBreit has joined #ruby
lw has joined #ruby
bashusr has joined #ruby
_5kg has joined #ruby
oo_ has joined #ruby
em0ral has quit [Remote host closed the connection]
sinkensabe has quit [Ping timeout: 240 seconds]
Hijiri has joined #ruby
Ulrike_Rayne has quit [Quit: asche zu asche und staub zu staub.]
ARCADIVS has joined #ruby
jeremati_ has quit [Remote host closed the connection]
pu22l3r has quit [Remote host closed the connection]
Ulrike_Rayne has joined #ruby
lw has quit [Quit: s]
ellisTAA has left #ruby [#ruby]
AlexRussia has quit [Ping timeout: 245 seconds]
tectonic has quit []
iamninja has joined #ruby
Morkel has joined #ruby
vdamewood has joined #ruby
astrobunny has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
icebourg has quit []
bashusr has joined #ruby
robbyoconnor has joined #ruby
kuda has joined #ruby
Spami has joined #ruby
TheNet has quit [Quit: Leaving...]
jeregrin_ has quit []
pdoherty has joined #ruby
AlexRussia has joined #ruby
zacstewart has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
bashusr has joined #ruby
ta_ has joined #ruby
bashusr has quit [Changing host]
bashusr has joined #ruby
pdoherty has quit [Ping timeout: 264 seconds]
zacstewart has quit [Ping timeout: 265 seconds]
lodgenbd has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
bashusr has quit [Read error: Connection reset by peer]
bashusr has joined #ruby
bashusr has joined #ruby
Guest18670 has joined #ruby
pu22l3r has joined #ruby
omosoj has quit [Quit: leaving]
_5kg has quit [Ping timeout: 245 seconds]
tectonic has joined #ruby
Crazy_Atheist has joined #ruby
beneggett has joined #ruby
bronson has joined #ruby
dseitz has joined #ruby
arescorpio has quit [Excess Flood]
bronson has quit [Ping timeout: 252 seconds]
djbkd has joined #ruby
connor_goodwolf has quit [Quit: Reconnecting]
mrmargolis has quit [Remote host closed the connection]
connor_goodwolf has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
tectonic has quit []
bashusr has joined #ruby
_5kg has joined #ruby
djbkd has quit [Ping timeout: 264 seconds]
bashusr has quit [Read error: Connection reset by peer]
bashusr has joined #ruby
cpt_yossarian has quit [Remote host closed the connection]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cpt_yossarian has joined #ruby
echevemaster has quit [Quit: Leaving]
mjuszczak has joined #ruby
beneggett has quit [Quit: Textual IRC Client: www.textualapp.com]
bashusr has quit [Read error: Connection reset by peer]
bashusr has joined #ruby
djbkd has joined #ruby
sinkensabe has joined #ruby
CrazyM4n has quit [Quit: sleep]
djbkd has quit [Ping timeout: 276 seconds]
sinkensabe has quit [Ping timeout: 245 seconds]
bashusr has quit [Read error: Connection reset by peer]
bashusr has joined #ruby
_5kg has quit [Ping timeout: 276 seconds]
arup_r has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
CpuID has joined #ruby
CpuID has joined #ruby
bashusr has joined #ruby
bronson has joined #ruby
larissa has quit [Quit: Leaving]
djbkd has joined #ruby
jerematic has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
hephaestus_rg has quit [Ping timeout: 245 seconds]
jobewan has quit [Ping timeout: 245 seconds]
charliesome has quit [Quit: zzz]
djbkd has quit [Ping timeout: 245 seconds]
Sawbones has quit [Remote host closed the connection]
troubadour has quit [Quit: troubadour]
staticshock_ has quit [Quit: WeeChat 1.0.1]
jerematic has quit [Ping timeout: 240 seconds]
bashusr has quit [Read error: Connection reset by peer]
bashusr has joined #ruby
Guest18670 has quit [Quit: Konversation terminated!]
Guest18670 has joined #ruby
ejnahc has joined #ruby
ponga has quit [Remote host closed the connection]
bashusr has quit [Read error: Connection reset by peer]
gg123 has joined #ruby
ponga has joined #ruby
bashusr has joined #ruby
MuffinPimp has joined #ruby
gg123 has left #ruby [#ruby]
Channel6 has quit [Quit: Leaving]
pu22l3r has quit [Remote host closed the connection]
bashusr has quit [Read error: Connection reset by peer]
bashusr has joined #ruby
gg123 has joined #ruby
bashusr has quit [Changing host]
bashusr has joined #ruby
gg123 has left #ruby [#ruby]
Soilent has joined #ruby
ponga has quit [Ping timeout: 244 seconds]
Adran has quit [Read error: Connection reset by peer]
^wald0 has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
oleo has quit [Quit: Verlassend]
longfeet has quit [Ping timeout: 255 seconds]
arup_r has joined #ruby
<Soilent> hi, I am working on a gem that uses small XML database file. I want to improve performance by parsing the XML file and dumping it (Marshal.dump) during gem installation. Any advise how can I do this?
Adran has joined #ruby
vozcelik has quit [Quit: Textual IRC Client: www.textualapp.com]
ponga has joined #ruby
vozcelik has joined #ruby
Sawbones has joined #ruby
djbkd has joined #ruby
pu22l3r has joined #ruby
yokel has quit [Ping timeout: 272 seconds]
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
<centrx> Soilent, Use Nokogiri for XML parsing
yokel has joined #ruby
<centrx> Soilent, Then you could dump it to the database or a file
<centrx> Soilent, but really it sounds like a bad idea, why not just use a real database?
<lampd1> must be time for bed
<lampd1> just read XML as XLS
hamakn has quit [Remote host closed the connection]
Guest34951 has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
hamakn has joined #ruby
<Guest34951> hello
hamakn has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 245 seconds]
<Guest34951> hi
hamakn has joined #ruby
<Soilent> centrx, the xml file is rather small and I don't want additional dependencies. I am not sure how can I generate dump file during gem installation
benlieb has joined #ruby
benlieb has quit [Client Quit]
bashusr has quit [Read error: Connection reset by peer]
<Guest34951> wht sort of files
<Guest34951> hello bashur
<Guest34951> hello ruby
hamakn has quit [Remote host closed the connection]
ivanskie has joined #ruby
bashusr has joined #ruby
<Guest34951> ruby
<Guest34951> u r online
<Guest34951> ?
taiansu has quit [Remote host closed the connection]
<centrx> Yes
<Guest34951> yes
<Guest34951> how r u
<sevenseacat> o.O
<centrx> How are you?
yfeldblum has quit [Remote host closed the connection]
Xeago has joined #ruby
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
ponga has quit [Remote host closed the connection]
<Guest34951> hello
<Guest34951> where u from
<centrx> We are asleep
<pontiki> we are awake
ponga has joined #ruby
<pontiki> the mice are stirring
Alina-malina has joined #ruby
<Guest34951> who is pontiki
bashusr has quit [Read error: Connection reset by peer]
<pontiki> == 'mouse' in Greek: ποντίκι
x1337807x has joined #ruby
apeiros has quit [Remote host closed the connection]
bashusr has joined #ruby
apeiros has joined #ruby
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Soilent has quit [Quit: leaving]
codezomb has joined #ruby
MuffinPimp has quit [Remote host closed the connection]
<Guest34951> what r u doing
<Guest34951> any one on server
<Guest34951> wants to chat me
<shevy> yes, sevenseacat wants to chat with you
<Guest34951> sure
<Guest34951> what u doing
<Guest34951> interesting
<Guest34951> :)
ponga has quit [Ping timeout: 246 seconds]
MuffinPimp has joined #ruby
<shevy> perhaps pontiki wants to talk with you about it Guest34951
<Guest34951> yes ...but seems like pontiki offline
<pontiki> right here
<centrx> Guest34951, shevy is online. He is the best chatter around
rbrs has joined #ruby
<shevy> I am offline
<centrx> shevy, asl?
<shevy> try centrx
<shevy> he is always online
bashusr has quit [Read error: Connection reset by peer]
<centrx> Guest34951, php?
<Guest34951> php what?
<centrx> php in ur but
revw has quit [Ping timeout: 276 seconds]
tobago has joined #ruby
<Guest34951> not get ur point
<centrx> Guest34951, u lik robots?
bashusr has joined #ruby
<Guest34951> yep
<centrx> Guest34951, u lik them good?
<centrx> *gud
IrishGringo has joined #ruby
<Guest34951> i think they are ok ....
<centrx> sweet
<centrx> mondo
greenbagels has quit [Quit: Leaving]
jusmyth has joined #ruby
nrcpts has quit [Quit: (null)]
<shevy> hahaha
<shevy> so you are really chatting with him now centrx
greenbagels has joined #ruby
<Guest34951> yes
<Guest34951> chatting
<Guest34951> with shevy
<Guest34951> too
<shevy> I am offline
Guest34951 has quit [Read error: Connection reset by peer]
Guest34951 has joined #ruby
yokel has quit [Ping timeout: 264 seconds]
spicerack2 has quit [Quit: Textual IRC Client: www.textualapp.com]
yokel has joined #ruby
jobewan has joined #ruby
davedev24_ has quit [Ping timeout: 264 seconds]
bashusr has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
tagrudev has joined #ruby
sigurding has joined #ruby
Guest34951 has quit [Read error: Connection reset by peer]
bousquet has joined #ruby
Crazy_Atheist has quit [Quit: WeeChat 1.0.1]
Guest34951 has joined #ruby
Tricon has joined #ruby
taiansu has joined #ruby
bashusr has joined #ruby
ta_ has joined #ruby
last_staff has joined #ruby
<Guest34951> kkk
bronak has quit [Quit: Be back later ...]
pu22l3r has quit [Remote host closed the connection]
bronak has joined #ruby
jobewan has quit [Read error: Connection reset by peer]
mjuszczak has quit []
djbkd has joined #ruby
jobewan has joined #ruby
sinkensabe has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
ta_ has quit [Ping timeout: 276 seconds]
ss_ has quit [Ping timeout: 256 seconds]
greenbagels has quit [Quit: Leaving]
centrx has quit [Quit: Science is organized knowledge, wisdom is organized life.]
bashusr has quit [Read error: Connection reset by peer]
<Xeago> wat
ss_ has joined #ruby
bronak has quit [Ping timeout: 276 seconds]
sinkensabe has quit [Ping timeout: 265 seconds]
adriancb has joined #ruby
djbkd has quit [Ping timeout: 244 seconds]
aganov has joined #ruby
bousquet has quit []
Guest18670 has quit [Ping timeout: 272 seconds]
bashusr has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
kuda has quit [Quit: byebye]
ss_ has quit [Ping timeout: 264 seconds]
arup_r has quit [Ping timeout: 264 seconds]
adriancb has quit [Ping timeout: 252 seconds]
apeiros has quit [Remote host closed the connection]
arup_r has joined #ruby
Negron-z has joined #ruby
<Negron-z> hello someone is here ?
Negron-z has quit [Killed (idoru (Spam is off topic on freenode.))]
<arup_r> I am here.. But don't trust my skills..
JohnBat26 has joined #ruby
astrobunny has quit [Remote host closed the connection]
chrisbolton has joined #ruby
keen__________33 has quit [Read error: Connection reset by peer]
<arup_r> shevy: offline ?
keen__________33 has joined #ruby
josephcs has joined #ruby
thatslifeson has joined #ruby
jerematic has joined #ruby
Guest34951 has quit []
greenbagels has joined #ruby
Guest34951 has joined #ruby
<shortdudey123> bradland: thanks for your help with the YAML stuff :) I got my gem published - https://rubygems.org/gems/yamllint
Guest34951 has quit [Client Quit]
wallerdev has joined #ruby
bashusr has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
jerematic has quit [Ping timeout: 264 seconds]
bal has joined #ruby
djbkd has joined #ruby
bal has quit [Client Quit]
_5kg has joined #ruby
pdoherty has joined #ruby
bashusr has joined #ruby
zacstewart has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
sinkensabe has joined #ruby
pdoherty has quit [Ping timeout: 264 seconds]
chrisbolton has quit [Quit: chrisbolton]
jenrzzz has joined #ruby
nii236 has joined #ruby
ivanskie has quit [Quit: Textual IRC Client: www.textualapp.com]
rocknrollmarc has joined #ruby
amclain has quit [Quit: Leaving]
djbkd has quit [Ping timeout: 265 seconds]
iamninja has quit [Quit: ZZZzzz…]
zacstewart has quit [Ping timeout: 265 seconds]
astrobunny has joined #ruby
djbkd has joined #ruby
ponga has joined #ruby
bashusr has joined #ruby
hmsimha has joined #ruby
^wald0 has quit [Quit: ^wald0]
sandelius has joined #ruby
nfk has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
AlexRussia has quit [Ping timeout: 244 seconds]
_5kg has quit [Ping timeout: 265 seconds]
bashusr has quit [Read error: Connection reset by peer]
Hobogrammer has quit [Ping timeout: 246 seconds]
djbkd has quit [Ping timeout: 245 seconds]
ponga has quit [Ping timeout: 245 seconds]
<shevy> arup_r yeah I was offline when Guest34951 was here, now I am online again
bashusr has joined #ruby
SparkMasterTape has joined #ruby
zwer has quit [Ping timeout: 250 seconds]
jobewan has quit [Quit: Leaving]
ohaibbq has joined #ruby
djbkd has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
<sevenseacat> i think im missing something obvious in ruby - getting a list of all matches of a regex in a string
<sevenseacat> string.match(/regex/) only gives the first MatchData instance
<pontiki> try .scan
<sevenseacat> that gives an array of matches, but not MatchData instances
<pontiki> hmm
<Nilium> I thought there was String#grep but it's apparently a method on Enumerable.
<Nilium> Which String doesn't implement.
terlar has joined #ruby
<sevenseacat> the regex has a couple of capture blocks in it (i think thats the right word) so i wantthem individually
<sevenseacat> oh, capture groups, not blocks
djbkd has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
bashusr has joined #ruby
<zipkid> Morn
dexteryy_ has joined #ruby
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
dexteryy_ has quit [Client Quit]
lukeholder has joined #ruby
<sevenseacat> my brain wants to just write preg_match_all D: bad habits
rocknrollmarc has quit [Remote host closed the connection]
lxsameer has joined #ruby
psy_ has joined #ruby
redblackwhite has joined #ruby
<mozzarella> scan
<mozzarella> php ruins your life
ta_ has joined #ruby
djbkd has quit [Ping timeout: 252 seconds]
<sevenseacat> true, but it would do what i want here, and scan doesnt :P
bashusr has quit [Read error: Connection reset by peer]
<arup_r> shevy: hehehe :)
nrcpts has joined #ruby
RandyT has quit [Ping timeout: 252 seconds]
RandyT has joined #ruby
kp666 has joined #ruby
swartwulf has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
jack_rabbit has quit [Ping timeout: 256 seconds]
havenwood has joined #ruby
bashusr has joined #ruby
<mozzarella> sevenseacat: why do you want MatchData instances?
<mozzarella> do you need named capture groups?
bashusr has quit [Read error: Connection reset by peer]
jusmyth has quit [Quit: Leaving.]
jusmyth has joined #ruby
xenophene has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
rdark has joined #ruby
iMe has quit [Ping timeout: 272 seconds]
pwnz0r has joined #ruby
Sawbones has quit [Remote host closed the connection]
Hobogrammer has joined #ruby
bronak has joined #ruby
iMe has joined #ruby
<mozzarella> I don't see how scan is different than preg_match_all
jusmyth has quit [Client Quit]
redblackwhite has left #ruby ["AndroIRC"]
nii236 has quit [Ping timeout: 264 seconds]
bashusr has joined #ruby
<dopie> hey im in sublime text
<dopie> and i do a ctrl-b
<dopie> and get this
<dopie> [path: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/mindblown/.rvm/bin]/bin/bash: ruby: command not found
<mozzarella> install ruby
<mozzarella> ¯\_(ツ)_/¯
El3k0n has joined #ruby
<dopie> it is installed
<mozzarella> what does "which ruby" say?
<Nilium> If it's installed, then set your PATH to the one in that command and type 'ruby'
jack_rabbit has joined #ruby
<dopie> /home/mindblown/.rvm/rubies/ruby-2.2.0/bin/ruby
<Nilium> That's not in your PATH.
<dopie> Nilium, how do i set my path?
<Nilium> Depends on the OS. Google for it.
<dopie> ubuntu
bashusr has quit [Read error: Connection reset by peer]
Sawbones has joined #ruby
bronak has quit [Ping timeout: 265 seconds]
<certainty> dopie: PATH="${PATH}:/your/extra/path" is one way (you may need to export it)
g-nom3 has left #ruby [#ruby]
El3k0n has quit [Remote host closed the connection]
andikr has joined #ruby
djbkd has joined #ruby
<mozzarella> you know if ruby wasn't in his path 'which' wouldn't find it
El3k0n has joined #ruby
<mozzarella> if he sets it in his shell rc script and doesn't launch sublime from an interactive terminal, then it won't work
kstuart has joined #ruby
bashusr has joined #ruby
hyperdrive has quit [Changing host]
hyperdrive has joined #ruby
hyperdrive is now known as hdrv
Macaveli has joined #ruby
apeiros has joined #ruby
<riceandbeans> rspec is so hard....
<mozzarella> I suggest you do it from your env config file or use a symlink instead
<riceandbeans> I don't understand the syntax at all
<riceandbeans> it seems like most of it is just made up
cHarNe2 has joined #ruby
<certainty> riceandbeans: what's hard about it?
<certainty> it's standard ruby syntax btw
<riceandbeans> no it's not
Skelz0r has quit [Ping timeout: 272 seconds]
CpuID has quit [Ping timeout: 245 seconds]
<riceandbeans> ruby syntax is def, end, puts, defined words and methods....
sea_local has joined #ruby
<riceandbeans> rspec is whatever you type or something
elfuego has quit [Quit: elfuego]
<riceandbeans> where the hell did they define Money?
<havenwood> rspec be
<sevenseacat> mozzarella: (15:34:52) sevenseacat: the regex has a couple of capture blocks in it (i think thats the right word) so i wantthem individually
<mozzarella> sevenseacat: scan also does that, though
<sevenseacat> no it doesnt
<mozzarella> yes it does
<riceandbeans> can anyone give me any help with rspec, I'm so lost
bashusr has quit [Read error: Connection reset by peer]
djbkd has quit [Ping timeout: 246 seconds]
<sevenseacat> riceandbeans: whats the problem
<havenwood> riceandbeans: Are you familiar with other Ruby testing options? Is RSpec your first?
<riceandbeans> rspec is my first
rigel has quit [Read error: Connection reset by peer]
Sawbones has quit [Remote host closed the connection]
<riceandbeans> first unit testing
* certainty finds rspec API pretty straight forward
Sawbones has joined #ruby
CpuID has joined #ruby
CpuID has quit [Changing host]
CpuID has joined #ruby
<sevenseacat> so do i, but waiting to hear the problem riceandbeans is having
_5kg has joined #ruby
Sawbones has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
<havenwood> riceandbeans: Maybe try Minitest if you don't grok RSpec, dunno. I like a lot about Minitest.
El3k0n has quit [Remote host closed the connection]
Sawbones has joined #ruby
ponga has joined #ruby
<riceandbeans> I don't have any ruby code down yet, but I have stuff I want it to do, and I have no idea how to write a unit test for it
<sevenseacat> mozzarella: right, now i dont have the full match there
El3k0n has joined #ruby
<havenwood> riceandbeans: For a super tiny testing library with no bells or whistles checkout Oktobertest: https://github.com/patriciomacadden/oktobertest#readme
<porfa> hello!
dickoff has left #ruby ["WeeChat 0.4.1"]
sigurding has quit [Quit: sigurding]
bashusr has joined #ruby
<havenwood> riceandbeans: There're some fantastic plugins for Minitest though. I think RSpec is probably worth learning but you don't have to start with it.
<shevy> sevenseacat you have a cat avatar!
<havenwood> porfa: hi
<sevenseacat> shevy: i sure do
<riceandbeans> for anyone who wants to give me a hand with a simple attempt at starting
<mozzarella> sevenseacat: refresh the page
<porfa> so i’ve succefuly made a script that scraps me data from a website, and puts it in a nive tableview using sinatra and all.. but now i want to add another website to that script.. i alredy have all the selectors i need… and stuff…!! but when i put thoose selectors inside the <td> in the the same column i want.. it breaks :(
<sevenseacat> riceandbeans: have you tried getting an rspec tutorial?
DanielRb has joined #ruby
<porfa> damn, the problem is.. i can’t even articulate my problem right now, so this is going to be hard haha
_5kg has quit [Ping timeout: 276 seconds]
El3k0n has quit [Remote host closed the connection]
DanielRb has left #ruby ["Leaving"]
Skelz0r has joined #ruby
Sawbones has quit [Ping timeout: 252 seconds]
<pontiki> sevenseacat: embarassing, but it works, i think? https://gist.github.com/tamouse/c88cf6e4b58bb7f55893
<pontiki> almost...
bashusr has quit [Read error: Connection reset by peer]
<mozzarella> just use my 'scan' solution
<mozzarella> works perfectly
<sevenseacat> mozzarella: your definition of perfectly is a lot different than mine
bronson has quit [Remote host closed the connection]
<sevenseacat> but its all good
<mozzarella> sevenseacat: what's the problem now?
<sevenseacat> mozzarella: your solution doesnt give the full match data
<apeiros> ancient
<apeiros> maybe related
<arup_r> pontiki: curious to know why the variable name has preceding underscore? https://gist.github.com/tamouse/c88cf6e4b58bb7f55893#file-match_all-rb-L2
<mozzarella> sevenseacat: I said refresh the page
Adran has quit [Ping timeout: 245 seconds]
<apeiros> (didn't bother to fully read the backlog, sorry)
timonv has joined #ruby
<pontiki> no reason
<mozzarella> the gist has been modified
<sevenseacat> ah hah, so i have to make another capture group
neersighted has quit [Ping timeout: 245 seconds]
<arup_r> pontiki: Ohkay..
<apeiros> ( https://gist.github.com/apeiros/9323149 was @ sevenseacat / pontiki / mozzarella)
noop has joined #ruby
swartwulf has quit [Ping timeout: 244 seconds]
<porfa> is it possible for me to have data from diferent websites inside the same column / table view ? im maing a script that gets me product names and prices from two diferent sites.. and i want the price to be in the price column, even though one price is from a website, and the the other price is from another website..
<apeiros> porfa: huh? you can design your tables in whatever way you see fit
neersighted has joined #ruby
<porfa> im really sorry if i sound obvious, but i am a really really REALLY newbie to the world of programing and such
<certainty> really * 3
ohaibbq has quit [Quit: Leaving...]
<porfa> yeah, that’s how newbie i am! :p
<certainty> :)
<porfa> <td> <%= ofrbp.at_css('.nomeOferta').text %> </td> how can i put a selector from another website in here?
<apeiros> porfa: uh, separate your logic from your view
<apeiros> prepare the data, normalize it, then pass it to your view.
<porfa> i dont even know what that means :(
wallerdev has quit [Quit: wallerdev]
bashusr has joined #ruby
<apeiros> you know what a view is?
<porfa> yes
<porfa> can i show you my view ?
<apeiros> ok. that's the place where logic should NOT be.
<pontiki> is this a rails application?
<apeiros> you can, but I'm at work and may soon have to go afk.
Spami has quit [Quit: This computer has gone to sleep]
jenrzzz has joined #ruby
<porfa> im using ruby and sinatra..
<porfa> i dont know what rails is :/
<pontiki> no worries
<pontiki> just trying to get a feel for what you're working with
djbkd has joined #ruby
Adran has joined #ruby
<pontiki> in general, you can do stuff like: <td> <%= value1 %> <br> <%= value2 %> </td>
<porfa> hmmm
swartwulf has joined #ruby
<arup_r> ponga: Hi
yfeldblu_ has joined #ruby
Skelz0r has quit [Ping timeout: 252 seconds]
i8igmac has quit [Ping timeout: 276 seconds]
<porfa> pontiki: even if value 2 is from a diferent website?
<pontiki> how could that matter?
<pontiki> you have @ofrbp as one set, and @ofrdescontos as another?
<porfa> i want the view to diferenciate from wich site is it from.
<porfa> i don’t know what that means :(
<pontiki> do you know what your ruby code says?
<porfa> yes
<pontiki> i just read it, i don't know what it means
jenrzzz has quit [Ping timeout: 265 seconds]
eytanfb has joined #ruby
<pontiki> those are *your* variables, not mine
<porfa> can i show you the “live” view? so i can try and explain what i need?
<pontiki> no
<porfa> ok.
djbkd has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Ping timeout: 245 seconds]
sigurding has joined #ruby
yfeldblu_ has quit [Ping timeout: 245 seconds]
ta_ has joined #ruby
Hobogrammer has quit [Ping timeout: 246 seconds]
<shevy> haha
timonv has quit [Ping timeout: 240 seconds]
IrishGringo has quit [Ping timeout: 245 seconds]
bashusr has quit [Read error: Connection reset by peer]
<shevy> porfa people want problems to be as simple as possible; like "how do I turn a string into an array"
arup_r has quit [Remote host closed the connection]
aswen has joined #ruby
_5kg has joined #ruby
noop has quit [Ping timeout: 245 seconds]
livathinos has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
constantlurking has joined #ruby
buschhardt has joined #ruby
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
bashusr has joined #ruby
taiansu has quit [Remote host closed the connection]
* apeiros turns shevy into a simple problem
El3k0n has joined #ruby
dseitz_ has joined #ruby
<shevy> :(
<apeiros> I'd win a nobel price if I'd manage to actually do that
<shevy> why can't I be the solution instead!
psy_ has quit [Quit: Leaving]
<pontiki> which category?
<pontiki> physics?
<apeiros> fiction
<pontiki> i suppose if we're talking solutions, it would be chemistry
<apeiros> I don't think shevy can be reduced to that :)
<pontiki> if you're not part of the solution, you're part of the particulate!
<shevy> leave my particles alone!!!
<pontiki> </chriscrocker>
dseitz has quit [Ping timeout: 245 seconds]
lampd1 has quit []
<constantlurking> guys i need some help. i wrote a method which finds all of the factors of a given number and pushes them to an array called new_array. i wrote another method which checks to see if a number is prime. i want to pass each number from new_array into my prime checking method . can't seem to figure out how to do it, I'm going crazy over here --> https://gist.github.com/anonymous/3a065ce6ebef2c232d44
<buschhardt> Hallo, I create a gdbm-Database with db=GDBM.open('test.db',GDBM::WRITER||GDBM::NOLOCK) in a terminal, in a second terminal I try to read the Database with db=GDBM.open('test.db',GDBM::READER) - but everytime I got: Errno::EAGAIN: Resource temporarily unavailable - test.db The Database has mode 777 and I run ruby 2.1.5p273 on debian
El3k0n has quit [Remote host closed the connection]
<apeiros> constantlurking: oh dear. indent your code. I'm not reading that.
iMe has quit [Ping timeout: 252 seconds]
<gizmore> constantlurking: new_array.each do |n|; primetest(n); end
djbkd has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
iMe has joined #ruby
wpp has joined #ruby
<shevy> constantlurking store on gisthub with .rb end, then you get colourized results for free
<shevy> e. g. rather than gistfile1.txt, store as gistfile1.rb
<constantlurking> gizmore: thats the first thing i tried on eval.in/ruby and it timed out
<porfa> should i be persuing sinatra or go to ruby on rails?...
<gizmore> constantlurking: probably because your code is inefficient :P
<shevy> porfa ruby on rails is huge; #rubyonrails
<constantlurking> gizmore: yea i don't doubt that, i guess i'm going to have to download ruby and run it on my own machine... that sucks =/
<gizmore> how can things suck that you want to do?
<pontiki> porfa: rails will not make your need any easier; it will make it much more complicated
bashusr has quit [Read error: Connection reset by peer]
<constantlurking> i thought i could get away with using a web interpreter, I'm coming from javascript and just learning ruby so i haven't done this before
<porfa> so as a begginer, i should stick to plain ruby...
djbkd has quit [Ping timeout: 244 seconds]
<buschhardt> porfa: take sinatra - :-) and you can also use activerecord
n008f4g_ has joined #ruby
<porfa> atm i just want to grab data from two diferent websites, and put it on a table… lol.
<porfa> and i beleive ruby + sinatra i just fine..
<shevy> do you have the data already
<buschhardt> porfa: htmlclient is a good gem for
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
<shevy> because when you have it, putting it into a table is trivial
<porfa> yes, i alredy have my css selectors and stuff
<porfa> i just dont know how to put it on a table (i can put ONE site (its data) on a table, but i can’t put data from two sites)
<buschhardt> porfa: i switch also to the ERUBIS template - its very fast
CustosL1men has joined #ruby
einarj has joined #ruby
ndrei has joined #ruby
kl__ has joined #ruby
bashusr has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
bashusr has joined #ruby
jerematic has joined #ruby
bronak has joined #ruby
lxsameer has quit [Quit: Leaving]
CpuID has quit [Quit: This computer has gone to sleep]
tesuji_ has joined #ruby
<pontiki> i don't think porfa's issue is getting the data. it seems to be the issue is being able to display data from two lists of information on the same table
arup_r has joined #ruby
<pontiki> it's not really an issue of which templating system to use, one could have the same issue in writing plain ascii text
<porfa> yepp
_5kg has quit [Read error: Connection reset by peer]
_5kg has joined #ruby
jerematic has quit [Ping timeout: 252 seconds]
<pontiki> what seems essential is to be able to match the items between the listings
msgodf has joined #ruby
<pontiki> which means scraping the information from one site into a data structure, then scraping the data from the other site, finding the match for the item in the data structure, and inserting the second price.
<porfa> yeah.. i want price_site_1 and price_site_2 to go into the same column, diferent rows though
<pontiki> you need to stop thinking about how it's going to look
<buschhardt> porfa: do you have a refrence between that datas or they are independently (dont know if that word exist)
<pontiki> you first need to get the data into a useable state
<porfa> i dont care how it looks…!
nclbr has joined #ruby
<pontiki> then stop talking about how it looks
<porfa> when did i talked about how it looks? :o
<pontiki> < porfa> yeah.. i want price_site_1 and price_site_2 to go into the same column, diferent rows though
bashusr has quit [Read error: Connection reset by peer]
<porfa> if i made that impression, im sorry.. never was my intention
nclbr has left #ruby [#ruby]
<buschhardt> porfa: so what are the reference of this two data-rows to the column? e.g. articel number, ean ?
lemur has quit [Remote host closed the connection]
<porfa> just the price
shime has joined #ruby
<pontiki> so you don't care if the two prices are for different items?
<riceandbeans> to the person who was helping me in stypi, thank you
guardian has joined #ruby
antgel has joined #ruby
n008f4g_ has quit [Ping timeout: 265 seconds]
<buschhardt> porfa: that make no sense for me - simple do an array with row1 and row2 and run through it
<porfa> i have site A, that has: Price, product name and image. and i have site B, that has price, product name and image also.
djbkd has joined #ruby
<porfa> i want to make a list with 4 columns. Sitename | prodname | price | image
<porfa> that’s just it
bashusr has joined #ruby
codecop has joined #ruby
Xeago has quit [Remote host closed the connection]
<porfa> the products can be repeated from both sites. i dont want to merge the prices inside the same row.
bashusr has quit [Read error: Connection reset by peer]
bronak has quit [Ping timeout: 245 seconds]
<buschhardt> porfa: put that infos in a array with a hash [{:price=>12.34,:img=>'usa.jpg'},{:price=>12.34,:img=>'germany.jpg'}] and rund through it
Guest45195 has quit [Quit: leaving]
dseitz_ is now known as dseitz
govg has joined #ruby
dumdedum has joined #ruby
dcarmich has joined #ruby
sigurding has quit [Quit: sigurding]
<buschhardt> porfa: yourarray.each{|row| htmlstr+="<tr><td>#{row[:price]} Dollar</td><td><img src='#{row[:img]}'</td></tr>"}
Xeago has joined #ruby
<pontiki> {"<prodname>" => {:site1 => {:price => 10.00, :image => 'blah.jpg'}, :site2 => {:price => 10.59, :image => 'boohoo.png'}}}
djbkd has quit [Ping timeout: 252 seconds]
kamilc__ has joined #ruby
<pontiki> then you have the product name as the key
<pontiki> making lookup simple
rakm has joined #ruby
<pontiki> instead having to search through the array to find matches
hgl has joined #ruby
<buschhardt> pontiki: but he dont need a reference, he said
<pontiki> how will you match products from site 1 and site 2?
<porfa> they are all diferent products, none of the sites have anything in commun!
<buschhardt> pontiki: no match - simple view
<pontiki> ah ha
bashusr has joined #ruby
<porfa> i just want to make a listing of producst from theese two sites.
<pontiki> just a simple interleave then
vozcelik has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bashusr has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
timonv has joined #ruby
djbkd has joined #ruby
timonv has quit [Client Quit]
Sawbones has joined #ruby
pdoherty has joined #ruby
<pontiki> do the two lists contain the same number of items?
LouisRoR has joined #ruby
<porfa> yes
Heskie has joined #ruby
sevenseacat has quit [Remote host closed the connection]
<buschhardt> porfa: for that i would take erubis -> http://www.kuwata-lab.com/erubis/users-guide.02.html#tutorial - see example3
kaspertidemann has joined #ruby
govg has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
<buschhardt> porfa: example11 on that page its more like your needs
sigurding has joined #ruby
zacstewart has joined #ruby
<Macaveli> I'm now sorting like this: source_types.sort_by(&:KEY) Is it possible to sort the other way?
Sawbones has quit [Ping timeout: 246 seconds]
bashusr has joined #ruby
timonv has quit [Client Quit]
pdoherty has quit [Ping timeout: 255 seconds]
timonv has joined #ruby
<Macaveli> source_types.sort_by(&:KEY).reverse! -> does the trick
Heskie has quit []
Heskie has joined #ruby
dotix has joined #ruby
dotix has joined #ruby
timonv has quit [Client Quit]
Skelz0r has joined #ruby
oo_ has quit [Remote host closed the connection]
zacstewart has quit [Ping timeout: 265 seconds]
olivier_bK has joined #ruby
thejoecarroll has quit [Quit: ZNC - http://znc.in]
havenwood has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 272 seconds]
bashusr has quit [Read error: Connection reset by peer]
thejoecarroll has joined #ruby
taiansu has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv has joined #ruby
djbkd has joined #ruby
timonv has quit [Client Quit]
oo_ has joined #ruby
<porfa> well i justd rm -rf /
<porfa> yolo
tokik has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
<certainty> porfa: well it doesn't do too much does it? / is a mount point
<certainty> (depends on the rm command of course)
<certainty> also recent rm needs --no-preserve-root
<porfa> no no, i did it on porpuse
<certainty> ah ok
<porfa> im gonna start everything all over again, installing ubuntu and shit
<porfa> and all this crap
<porfa> as a zen exercise
<certainty> hah
<porfa> all the work form the past two weeks, puff.
<porfa> from*
<certainty> it sure is in the spirit of zen i think. life is torture and all that
<certainty> ubuntu is good at giving you agonizing pain
<porfa> hahhaha
<constantlurking> still can't figure this out, if anyone can help i'd appreciate. trying to complete problem #3 on projecteuler.net--> i wrote a method which finds all of the factors of a given number and pushes them to an array called new_array. i wrote another method which checks to see if a number is prime. i want to pass each number from new_array into my prime checking method . can't seem to figure out how to do it --> https://gist.github.
bashusr has joined #ruby
ta_ has joined #ruby
pwnz0r has quit [Remote host closed the connection]
<buschhardt> certainty: lol
timonv has quit [Read error: Connection reset by peer]
djbkd has quit [Ping timeout: 256 seconds]
oo__ has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
Zai00 has joined #ruby
djbkd has joined #ruby
<buschhardt> porfa: maybe install debian or freebsd :-)
qba73 has joined #ruby
oo_ has quit [Ping timeout: 240 seconds]
<pontiki> that'll make all the problems go away, and everything will be easy
<constantlurking> well i guess that's a no lol
nuck has quit [Quit: Textual IRC Client: www.textualapp.com]
<pontiki> programming enlightenment in an instant
<constantlurking> i indented this time =/
<pontiki> constantlurking: you're gist url was cut off
blackmesa has quit [Ping timeout: 255 seconds]
<constantlurking> does that link work
<constantlurking> it works when i click it
<certainty> constantlurking: what do you do after you know that a number is prime or not? What do you do with that information?
tkuchiki_ has joined #ruby
tkuchiki_ has quit [Read error: Connection reset by peer]
<pontiki> your indenting is backwards on your ends
tkuchiki has quit [Read error: Connection reset by peer]
<certainty> that reads funny
AFKGeek has joined #ruby
tkuchiki has joined #ruby
<constantlurking> certainty: its just supposed to puts them to the console
chthon has joined #ruby
<constantlurking> yea i wasn't sure about that part of the indenting lol..the ends always get me
bashusr has joined #ruby
<constantlurking> ive tested the methods individually and they work, but when i try to combine them it gets weird
<certainty> constantlurking: alright. well at the and you already do the iteration. All you have to do now is a little conditional, no?
jheg has joined #ruby
eytanfb has left #ruby [#ruby]
djbkd has quit [Ping timeout: 245 seconds]
<buschhardt> constantlurking: may the function runs long time?
<pontiki> you only calculate the remainder for one value of n in prime_checker
oo__ has quit [Ping timeout: 276 seconds]
ta_ has quit [Ping timeout: 276 seconds]
iMe has quit [Ping timeout: 255 seconds]
<certainty> oh i didn't even look at the implementation
oo_ has joined #ruby
<pontiki> if it won't finish in the first iteration, it will never finish
<buschhardt> constantlurking: do you reach the finished=true in the while loop?
<constantlurking> yea it works https://eval.in/243107
<pontiki> ¯\_(ツ)_/¯
<certainty> lol
iMe has joined #ruby
<buschhardt> constantlurking: put a puts in your while-loop and u see where u are hanging :-)
joonty has joined #ruby
* pontiki gives up
djbkd has joined #ruby
<constantlurking> buschhardt: what do you mean? put a puts where
bayed has joined #ruby
<buschhardt> constantlurking: primechecker(1) comes never back - puts "im in a loop"
<buschhardt> constantlurking: Problem is 1
pu22l3r has joined #ruby
<pontiki> i started projecteuler in an attempt to try to learn python
<pontiki> lost interest after problem 2
<shevy> haha
<buschhardt> constantlurking: if 1==2 , if 1==0, else - you see 1 is never come out of the loop
rodfersou has joined #ruby
<constantlurking> oooooooh i see
workmad3 has joined #ruby
<constantlurking> so what would the correct code look like
bashusr has quit [Read error: Connection reset by peer]
pu22l3r has quit [Ping timeout: 246 seconds]
<buschhardt> constantlurking: 1 is a primenumber -> leave primechecker if x==1
<workmad3> buschhardt: 1 isn't a prime number
<certainty> by definition
<buschhardt> workmad3: primenumber are dividing through 1 and by itself
<buschhardt> workmad3: 1/1 = 1 :=)
<certainty> actually every number greater than 1
<certainty> that's the definition
dc has quit [Remote host closed the connection]
<workmad3> buschhardt: allowing 1 to be prime destroys a huge number of prime number proofs ;)
<workmad3> buschhardt: so it's excluded
djbkd has quit [Ping timeout: 246 seconds]
<buschhardt> workmad3: ok im wrong
gizmore has joined #ruby
djbkd has joined #ruby
<buschhardt> workmad3: prim means set together - thats my fault
<certainty> yeah that's one valid way to remember it
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<buschhardt> sorry its friday - and I want go home from waork :-)
<tagrudev> any idea how can I retrieve the current release id in capistrano 3
<certainty> no need to be sorry. workmad3 is a know-it-al
<certainty> erm know-it-all
<workmad3> buschhardt: it's ok :) the one I always remember (although I have trouble expressing it succintly at times) is the unique prime factorization theorem :)
timonv has joined #ruby
<certainty> :p
ta_ has joined #ruby
<workmad3> buschhardt: if you allow 1 to be prime, that theorem is completely demolished, because you can always add more factors of 1 into any factorization
<buschhardt> :P
<constantlurking> fixed --> https://eval.in/243133
<buschhardt> workmad3: sorry wrong universe - on the other there is a different mathematic :-)
<constantlurking> all i had to do was start n at 1 in the first method so that it didn't output 1 in the array
bashusr has joined #ruby
<constantlurking> buschhardt: thanks :)
<constantlurking> how did you find the bug?
<constantlurking> i would've been staring at that code all day lol
<buschhardt> constantlurking: test the array by hand
C1V0 has quit []
<workmad3> constantlurking: 1 is a factor though...
bashusr has quit [Read error: Connection reset by peer]
<constantlurking> workmad3: i know, but the challenge is to find the largest prime factor of a given number, and i'm assuming it won't be 1 lol https://projecteuler.net/problem=3
<workmad3> constantlurking: fair enough :) you can massively improve your prime check btw ;)
ta_ has quit [Ping timeout: 265 seconds]
decoponio has joined #ruby
<certainty> yeah use Prime.prime?
djbkd has quit [Ping timeout: 264 seconds]
<constantlurking> workmad3: yea I'm sure theres a more efficient way, i started learning ruby last week so I'm still in the crude phase
<buschhardt> constantlurking: I know it sounds stupid, but what if you take a primenumber-table - its faster :-)
<workmad3> even without doing that... you could make a big improvement just by checking if n >= x/2
<certainty> yeah
<workmad3> buschhardt: a prime number seive :)
aspiers has joined #ruby
djbkd has joined #ruby
last_staff has quit [Quit: last_staff]
iMe has quit [Ping timeout: 272 seconds]
bashusr has joined #ruby
<buschhardt> workmad3: nice wikipedia page thx
bashusr has quit [Read error: Connection reset by peer]
<certainty> also if you can live with some uncertainty you can use fermat or the miller-rabin-test
bronak has joined #ruby
qba73 has quit []
bashusr has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
lolmaus has joined #ruby
shime has quit [Ping timeout: 264 seconds]
bashusr has joined #ruby
spider-mario has joined #ruby
<workmad3> constantlurking: we're not really talking about more complicated ruby here btw... we're talking about spotting 'fun' aspects of numbers and incorporating them into a proceduce to determine if a number is prime
shellox_ has joined #ruby
<shellox_> hi
iMe has joined #ruby
trampi has joined #ruby
govg has joined #ruby
SixiS has joined #ruby
<buschhardt> workmad3: do know this page 13000 years old prime-number http://en.wikipedia.org/wiki/Ishango_bone
<workmad3> constantlurking: you could also remove pretty much your entire prime number check btw and rewrite it in terms of code you've already written ;)
<shellox_> I've addded the write_headers option, but in my CSV output are just rows, but no headers. Can you give me a hint how to fix it? https://gist.githubusercontent.com/anonymous/d05ab4c7fc3d42e86dba/raw/46ffff71c788ae65cdb9f8bdd14ecccbd6236a84/gistfile1.txt
<workmad3> constantlurking: by making one observation about the factors of prime numbers
blackmesa has joined #ruby
<buschhardt> shellox_: write_header -> to write header
<buschhardt> shellox_: headers=> true
bashusr has quit [Read error: Connection reset by peer]
parduse has joined #ruby
djbkd has quit [Ping timeout: 276 seconds]
last_staff has joined #ruby
iamninja has joined #ruby
<shellox_> buschhardt: doesn't work. no such method
<shellox_> can you make a fork of my gist to show what you mean?
<shellox_> i cahnged write_headers to write_header: true
<shellox_> yes, i'm reading that, but can't get it working
<buschhardt> shellox_: see DEFAULT_OPTIONS
ponga has quit [Remote host closed the connection]
<buschhardt> shellox_: do you have a csv header correct quoted?
ponga has joined #ruby
<buschhardt> shellox_: default "col1","col2",....
<shellox_> buschhardt: should be correct. i've just downloaded the sample from shopify
<shellox_> i dind't create it by myself
<buschhardt> shellox_: :headers=>true its a symbol
<shellox_> buschhardt: ok, but still doesn't work :p
<buschhardt> shellox_: what do you want to make - copy data from one csv to another?
troubadour has joined #ruby
<shellox_> i will modify the original csv later. for now i just want to read and write it
Guest41220 is now known as gregf_
<shellox_> i just want to write the same thing i read again for now
<shellox_> including headers
ponga has quit [Ping timeout: 245 seconds]
bashusr has joined #ruby
<buschhardt> shellox_: cp csv1.csv csv2.csv
<shellox_> ...
<shellox_> i try to figure out the ruby syntax for this two things, how would bash help there
<workmad3> constantlurking: btw, you may want to consider looking up a better way to discover factors...
bashusr has quit [Read error: Connection reset by peer]
<shellox_> i will modify the content later i've read, but i try to figure out how to write first
withnale_ has joined #ruby
kaspertidemann has quit []
djbkd has joined #ruby
kaspertidemann has joined #ruby
<workmad3> constantlurking: you can do a simple calculation of '600851475143.fdiv(number_of_ops_per_second).fdiv(3600).fdiv(24)' to get an idea of how long your current algorithm will run for, seeing as it tests each number
<buschhardt> shellox_: CSV.foreach("path/to/file.csv") do |row| # use row here...
marr has joined #ruby
kaspertidemann has quit [Client Quit]
<workmad3> constantlurking: which will tell you that, with a rough estimate of even 1 million operations a second, just finding the factors will take you about a week... ;)
<buschhardt> shellox_: for reading every row
zacstewart has joined #ruby
oo_ has quit [Quit: Leaving...]
<buschhardt> shellox_: the header its only a row - but if you :header=>true - in this moment CSV cut them out of the row-list
bashusr has joined #ruby
taiansu has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 245 seconds]
blackmesa has quit [Ping timeout: 245 seconds]
ponga has joined #ruby
zacstewart has quit [Ping timeout: 265 seconds]
dseitz has quit [Quit: nap time!]
djbkd has joined #ruby
Spami has joined #ruby
<shellox_> buschhardt: so if i remove headers from it writes the headers CSV.read(mycsv, :headers => true)
linduxed has joined #ruby
<shellox_> how can i read the file with headers and write with headers as well?
<constantlurking> workmad3: so what's a more efficient method of doing this
oo_ has joined #ruby
dangerousdave has joined #ruby
<constantlurking> workmad3: this was the final code, which indeed was too inefficient https://eval.in/243165
thsig has joined #ruby
<buschhardt> shellox_: CSV.read(mycsv) header is false by default
<workmad3> constantlurking: ok, so start making some insights into the problem
<shellox_> buschhardt: yes, so that's why i want to have headers when reading the file, but i also want to write them
<shellox_> how do i do that?
<shellox_> in the end i do sth. like that. read existing file, add some rows, write again
<shellox_> but to a new file, not the same i read
mloveless has quit [Remote host closed the connection]
<workmad3> buschhardt: mmm, mersenne primes :)
<arup_r> Any idea where Ruby wrote the implementation of "super" keyword in MRI ?
bashusr has quit [Read error: Connection reset by peer]
mloveless has joined #ruby
leafybasil has joined #ruby
<buschhardt> CSV.foreach('cs1.csv'){|row| p row}
<buschhardt> shellox_:
<buschhardt> shellox_: CSV.foreach('cs1.csv'){|row| p row} - read rows
bronak has quit [Ping timeout: 276 seconds]
last_staff has quit [Ping timeout: 252 seconds]
<buschhardt> shellox_: maybe like this CSV.open("cs2.csv","wb")do |csv| CSV.foreach('cs1.csv'){|row| csv<<row}}
<buschhardt> shellox_: its untested - ah replace do with {
mloveless has quit [Ping timeout: 264 seconds]
bashusr has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
<workmad3> buschhardt: or the last } with an 'end' :)
bashusr has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
<buschhardt> workmad3: yes of course (im a {}-lover)
Morkel has quit [Quit: Morkel]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shellox_ has quit [Quit: Lost terminal]
niram has joined #ruby
<niram> i am trying to install ruby-current
ta_ has joined #ruby
<niram> using latest rvm
<niram> and it fails
timonv has quit [Quit: WeeChat 1.1]
<niram> The requested url does not exist(22): 'http://production.cf.rubygems.org/rubygems/rubygems-2.2.3.tgz'
yfeldblum has joined #ruby
timonv has joined #ruby
<niram> any idea what can i do to fix this?
djbkd has quit [Ping timeout: 256 seconds]
alex88 has joined #ruby
alex88 has quit [Changing host]
alex88 has joined #ruby
Sgeo has joined #ruby
bashusr has joined #ruby
Sar_D has joined #ruby
grn has joined #ruby
<Sar_D> hi, how can I convert a ascii string to wide char (16 bits) ? thank you
grn has quit [Client Quit]
<niram> there's no solution there
<buschhardt> niram: workaround see below
posixpascal has joined #ruby
startupality has joined #ruby
ta_ has quit [Ping timeout: 252 seconds]
djbkd has joined #ruby
<workmad3> I wonder why rvm tries to get a non-existant release of rubygems...
jerematic has joined #ruby
<certainty> because it can
<niram> because the ruby devs are not paid and they can't be bothered to fix their shit so it doesn't break automated provisioning script for everyone...
thsig has quit [Remote host closed the connection]
<niram> that's why :)
ldnunes has joined #ruby
<arup_r> I have a string "'value 1'" how can I delete those characters `'` ?
thsig has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
<workmad3> niram: that's not ruby
<workmad3> niram: that's rubygems
<workmad3> niram: and 2.2.3 never existed, from what I can see...
<workmad3> niram: add onto that that rvm is also nothing to do with ruby or rubygems...
<workmad3> niram: so tell me... how does your rant have any basis in reality? :P
<buschhardt> niram: rvm? phu sorry i dosnt see that
<niram> workmad3: it's just my personal hate for ruby and everything associated with it :)
<arup_r> can you short this line? array.compact.delete("") :)
jerematic has quit [Ping timeout: 244 seconds]
<niram> it's hell for sysadmins trying to put things in production and automate stuff
<certainty> actually we're using it successfully to do just that
sevenseacat has joined #ruby
posixpascal is now known as ser0ton1n
<workmad3> certainty: heh :) I was gonna say that too ;)
<certainty> i see that it is annoying when things don't work though :)
bluOxigen has quit [Read error: Connection reset by peer]
<workmad3> yeah... but you can rage about just about anything on that front at various times
<certainty> i remember the change when rvm finally (and rightfully so) decided to verify the downloaded sources
<certainty> that broke something, but we managed to fix that quickly
bashusr has joined #ruby
charliesome has joined #ruby
<workmad3> I could rage about postgis being a PITA at the moment if I wanted :)
<pontiki> if you're having a problem with rvm, maybe visit the #rvm channel, too
<buschhardt> arup_r: array.delete_if(|i| i.nil? or i=="") maybe
<certainty> jupp. I personally could rage for a long time about bash and C
<arup_r> buschhardt: not so clever, :p
<certainty> that's really a PITA when it comes to automation
mroach has joined #ruby
<buschhardt> arup_r: its a loop smaller :)
<workmad3> buschhardt: tr("()","{}")
<niram> certainty: i hate bash too :)
<buschhardt> workmad3: tr? its a ruby command
bashusr has quit [Read error: Connection reset by peer]
<workmad3> buschhardt: yeah... I'm saying change ( for { and ) for } ;)
<workmad3> buschhardt: in the code you provided ;)
ta_ has joined #ruby
<buschhardt> workmad3: lol - im an idiot
<workmad3> buschhardt: nah... it's friday, sloppy syntax all around ;)
<buschhardt> workmad3: take not my pills today
thsig_ has joined #ruby
<buschhardt> workmad3: lol
<niram> certainty: i am using puppet too, if that's what you meant
<buschhardt> workmad3: I like more Forth :-)
iMe has quit [Ping timeout: 265 seconds]
<certainty> niram: yeah puppet is one technology we're using here
constantlurking has quit [Ping timeout: 246 seconds]
<Sar_D> I have the ascii string a="3530". How can I print the unicode version?
<niram> i could rant about it all day long, but there simply isn't anything better for the job..
iMe has joined #ruby
thsig has quit [Ping timeout: 246 seconds]
bashusr has joined #ruby
<certainty> niram: i don't know. It depends but i like the aproaches that nix takes also guix
Sawbones has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
Joufflu has quit [Ping timeout: 245 seconds]
djbkd has quit [Ping timeout: 244 seconds]
ta_ has quit [Ping timeout: 276 seconds]
Xeago has quit [Remote host closed the connection]
<certainty> also i think for some tasks a less declarative and more imperative system like chefs fits the bill better
<certainty> chef
yfeldblum has quit [Remote host closed the connection]
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<niram> i think declarative is the way to go for config management
ARCADIVS has quit [Quit: ARCADIVS]
<niram> but there are some really annoying things about puppet
visof has joined #ruby
nrcpts has quit [Quit: (null)]
<certainty> like resources already being declared? i mean how is that declarative. If i say i want a directory being present, i don't care if another resource wanted the same. I'm fine with that. just execute that action idempotently and leave me alone
<certainty> but maybe i did not drink enough koolaid
djbkd has joined #ruby
neektza has joined #ruby
<niram> certainty: the fucked up thing is that if you want to test if a resource is declared already the order of the actual code suddently matters
Sawbones has quit [Ping timeout: 276 seconds]
bashusr has joined #ruby
tobago has quit [Read error: Connection timed out]
<certainty> or you have to test in each and every resource. then order doesn't matter. surely one resource will be first
<certainty> sometimes i resort to defined checks
<certainty> but it's ugly
tobago has joined #ruby
<certainty> also i'm not a puppet guru at all. I sometimes have to deal with it
thsig_ has quit [Remote host closed the connection]
<workmad3> certainty: sounds like a reasonable assumption... at least until you're doing distributed configuration on galactic scales ;)
<buschhardt> I try to access simultan on a gdbm database - but I got error: terminal 1 -> db = GDBM.open('test.db',GDBM::WRITER) terminal2 -> db = GDBM.open('test.db',GDBM::READER) - but the access is denied (mode 777 for the file)
<shevy> you are a puppet certainty
<buschhardt> in the documentation is that a function http://www.ruby-doc.org/stdlib-2.2.0/libdoc/gdbm/rdoc/GDBM.html
visof has quit [Ping timeout: 256 seconds]
<buschhardt> someone can try this at your computer?
<buschhardt> I got everytime errno::eagain: resource temporarily unavailable
<certainty> workmad3: which one?
djbkd has quit [Ping timeout: 272 seconds]
<certainty> shevy: yeah, i wish i could cut the strings
<niram> btw, the workaround for the missing rubygems worked, thanks!
<workmad3> certainty: that there's only one 'first' resource
<certainty> workmad3: ah yeah. indeed
<certainty> buschhardt: works here
<buschhardt> certainty: witch version do you have
thsig has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
<certainty> this was 2.0.0-p353
<buschhardt> certainty: which - sorry its not my mothertounge
djbkd has joined #ruby
reinaldob has joined #ruby
<certainty> buschhardt: just to be sure. you just did what the example shows?
<certainty> buschhardt: sorry i didn't see your first line
<shevy> are there speed comparisons between 2.1 and 2.2 ?
<certainty> i get the same error
<buschhardt> certainty: i only start 2 terminals (in screen) and try to open the database (its empty)
<certainty> doesn't gdbm lock the file?
msgodf has quit [Remote host closed the connection]
bashusr has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<certainty> shevy: yeah sure i'll give you one. 2.1 is somewhat fast. 2.2 is fast too. Probably faster but sometimes slower
<buschhardt> certainty: I dont know ? there is an option GDBM:NOLOCK but the same result
<certainty> iirc it does lock.
tkuchiki has joined #ruby
<certainty> also you may want WRCREAT
<shevy> certainty lol
<buschhardt> certainty: in the documentation: A database can be accessed either by any number of readers or by exactly one writer at the same time.
SixiS has quit [Read error: No route to host]
pdoherty has joined #ruby
mroach has quit [Ping timeout: 272 seconds]
majeure_ is now known as majeure
SixiS has joined #ruby
<buschhardt> certainty: but database exist on the filesystem
Spami has quit [Ping timeout: 272 seconds]
kyb3r_ has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
<certainty> buschhardt: i see. i'd expect the documentation to be correct. which doesn't seem to be the case, at least not from within irb
tkuchiki has quit [Ping timeout: 256 seconds]
rurban has joined #ruby
<buschhardt> certainty: the options its a little bit confusing me GDBM::WRITER||GDBM::NOLOCK ... GDBM::READER||GDBM::NOLOCK ??
<certainty> i'd expect GDBM::WRITER|GDBM::NOLOCK etc.
pdoherty has quit [Ping timeout: 244 seconds]
rurban has left #ruby [#ruby]
bronson has joined #ruby
niram has left #ruby [#ruby]
<buschhardt> certainty: same error result - with all combinations
<buschhardt> certainty: also try this as root - same error
zorak8 has joined #ruby
<certainty> buschhardt: it seems to work outside irb
sigurding has quit [Quit: sigurding]
ta_ has joined #ruby
taiansu has joined #ruby
<certainty> i just did GDBM.new('something') in one file and slept for some time. Then opened a 2 readers from another file GDBM.new('something',GDBM::READER)
<certainty> no errors
Heskie has quit [Read error: Connection reset by peer]
dotix has quit [Ping timeout: 265 seconds]
bashusr has quit [Read error: Connection reset by peer]
zorak8 has quit [Read error: Connection reset by peer]
Heskie has joined #ruby
astrobunny has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 276 seconds]
astrobunny has joined #ruby
astrobunny has quit [Remote host closed the connection]
schickung has joined #ruby
ta_ has quit [Ping timeout: 246 seconds]
msgodf has joined #ruby
timonv has quit [Ping timeout: 255 seconds]
thsig has quit [Remote host closed the connection]
mroach has joined #ruby
thsig has joined #ruby
bronak has joined #ruby
taiansu has quit [Ping timeout: 244 seconds]
bashusr has joined #ruby
djbkd has quit [Ping timeout: 276 seconds]
mloveless has joined #ruby
<buschhardt> certainty: i have no luck - i do writer and reader in separate files and run - but same error
<certainty> buschhardt: hmm let me check something
linduxed has quit [Ping timeout: 252 seconds]
<certainty> buschhardt: woops sorry. I had an absolute path in one file and a relative one in the other (resulting in different files being accessed)
krz has quit [Read error: Connection reset by peer]
krz has joined #ruby
yjmsf20 has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
mloveless has quit [Ping timeout: 264 seconds]
bashusr has joined #ruby
bashusr has quit [Changing host]
bashusr has joined #ruby
giuseppesolinas_ has quit [Quit: This computer has gone to sleep]
grn has joined #ruby
n1lo has joined #ruby
bal has joined #ruby
oo_ has quit [Remote host closed the connection]
kp666 has quit [Quit: Leaving]
jack_rabbit has quit [Ping timeout: 245 seconds]
djbkd has quit [Ping timeout: 252 seconds]
keen__________34 has joined #ruby
zorak8 has joined #ruby
blackmesa has quit [Ping timeout: 255 seconds]
keen__________33 has quit [Ping timeout: 265 seconds]
mroach_ has joined #ruby
iMe has quit [Ping timeout: 244 seconds]
oo_ has joined #ruby
startupality has quit [Quit: startupality]
djbkd has joined #ruby
fandi_ has quit [Quit: Leaving]
fandi has joined #ruby
mroach has quit [Ping timeout: 272 seconds]
mroach_ is now known as mroach
iMe has joined #ruby
spider-mario has quit [Remote host closed the connection]
kamilc__ has quit [Quit: Leaving...]
iamninja has quit [Remote host closed the connection]
<arup_r> Any idea why the last output is "c" not "b"? https://gist.github.com/anonymous/f187d8f51ffb0e0261f1#file-super-rb-L30
iamninja has joined #ruby
<arup_r> why the 2 versions work differentlty?
bashusr has quit [Read error: Connection reset by peer]
djbkd has quit [Ping timeout: 245 seconds]
j2p2 has joined #ruby
Jackneill has joined #ruby
_Andres has joined #ruby
troubadour has quit [Quit: troubadour]
djbkd has joined #ruby
bashusr has joined #ruby
Treyt22 has joined #ruby
<workmad3> arup_r: because 'super' calls the superclass method with the original arguments
bronak has quit [Ping timeout: 245 seconds]
<workmad3> arup_r: what you wanted to do was 'super(&block)'
<workmad3> (after re-assigning it)
ta_ has joined #ruby
<arup_r> Shouldn't the last one give "b" ?
bashusr has quit [Read error: Connection reset by peer]
<certainty> heh super block
<certainty> pun intended?
<grn> workmad3: that's not true. This https://gist.github.com/grn/6b2095d959c88e1d439d#file-super-rb-L14 prints B#m
<workmad3> grn: yes it is... it's very specify to 'super' absolutely on its own
<workmad3> grn: oh wait..
<workmad3> hmm...
Xeago has joined #ruby
<workmad3> grn: you're right...
shime has joined #ruby
<arup_r> workmad3: Humm
<arup_r> That's my point
<workmad3> ok... it's probably to do with the behaviour around this: https://gist.github.com/workmad3/dc71785dbdf83b25834e
<workmad3> namely that re-assigning 'block' doesn't change the implicit block parameter
bashusr has joined #ruby
BTRE has joined #ruby
blackmesa has joined #ruby
<grn> We probably should treat blocks as a special case. IDK whether we can get a better understanding of what's going on w/o studying MRI.
<arup_r> grn: +1
ta_ has quit [Ping timeout: 264 seconds]
<arup_r> that's why I wanted to know
<arup_r> why block variable is being treated as special one
<grn> arup_r: nice find, btw!
<workmad3> because it is somewhat special :)
<arup_r> :)
yfeldblum has joined #ruby
<workmad3> in the MRI implementation, when you do 'foo(&some_proc)' then it'll strip off the 'procness' to pass it in as the block param... but it'll keep the association with the original proc object, so that if the method does 'def foo(&block)' then it can re-build a proc object around the block argument with the same object_id and other details...
sigurding has joined #ruby
<workmad3> so if you look at the proc outside the method and inside the method, it looks like the same proc, and semantically, it looks like blocks are passed around as procs
sandelius has joined #ruby
<workmad3> so the question is - what should happen to the implicit block when you re-assign the variable it got rebuilt into? (I don't know that one... it seems fairly complicated)
<workmad3> after all, what happens if you re-assign it to something that would error when you called to_proc on it?
<workmad3> should it error straight away? only when you call super? should it ignore it?... lots of edge-cases :/
ta_ has joined #ruby
zwer has joined #ruby
LekeFly has joined #ruby
icbm has joined #ruby
Xeago has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
shazaum has joined #ruby
startupality has joined #ruby
ajaiswal has quit [Quit: Leaving]
djbkd has quit [Ping timeout: 264 seconds]
timonv has joined #ruby
Tricon has quit [Ping timeout: 240 seconds]
fgo_ has quit [Quit: WeeChat 1.0]
bashusr has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
bonhoeffer has joined #ruby
<bonhoeffer> is there a way to see the path that require uses in a given instance?
zacstewart has joined #ruby
<certainty> pp $LOAD_PATH
bronson has joined #ruby
<bonhoeffer> thanks!
<certainty> there is also a short magic global which i tend to forget
yfeldblum has quit [Remote host closed the connection]
<arup_r> $:
<arup_r> certainty: ^^
<certainty> ah yeah that was it
<certainty> thanks arup_r
<arup_r> certainty: suddenly came to my mind
Darryl___ has joined #ruby
bashusr has joined #ruby
arup_r_ has joined #ruby
oo_ has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
bashusr has quit [Read error: Connection reset by peer]
atomi has quit [Remote host closed the connection]
dotix has joined #ruby
dotix has joined #ruby
DaniG2k has joined #ruby
krz has quit [Ping timeout: 264 seconds]
zacstewart has quit [Ping timeout: 265 seconds]
shazaum has joined #ruby
shazaum has quit [Changing host]
arup_r has quit [Ping timeout: 245 seconds]
djbkd has quit [Ping timeout: 252 seconds]
buschhardt has quit [Quit: leaving]
krz has joined #ruby
<gregf_> arup_r_: why would you want to change parameters in the call to the parent class method?
zorak8 has quit [Ping timeout: 256 seconds]
joonty has quit [Quit: joonty]
<arup_r_> gregf_: Didn't get you..
Mon_Ouie has quit [Ping timeout: 245 seconds]
shime has quit [Ping timeout: 244 seconds]
josephcs has quit [Quit: (null)]
oo_ has quit [Remote host closed the connection]
josephcs has joined #ruby
<gregf_> arup_r_: as in do you have a valid use_case for changing the method arguments before calling the parent class method(using super)?
oo_ has joined #ruby
<gregf_> this works: class Foo; def foo; yield; end;end; class Bar < Foo; def foo; super {"b"}; end;end;p Bar.new.foo()
<arup_r_> gregf_: Ok.. I found actually something weired with block variable, which is not the case when it is a keyword argument, normal argument etc..
bashusr has joined #ruby
<gregf_> and so does this: class Foo; def foo(&bl); bl.call(); end;end;class Bar < Foo; def foo(&bl); super; end;end;p Bar.new.foo { "b" }
joonty has joined #ruby
<arup_r_> That all came when I was trying to help someone else - http://stackoverflow.com/questions/27981314/calling-super-without-arguments/27981577#27981577
<arup_r_> gregf_: ^^
<gregf_> arup_r_: i'm just trying to figure out when i would want to change the method args before calling the parent class method? cuz i've never had to :/
oo_ has quit [Remote host closed the connection]
djbkd has joined #ruby
Heskie has quit []
oo_ has joined #ruby
bluOxigen has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
<gregf_> arup_r_: ok. i try and stay away from complicating things :/. programming is hard as it is. theres many ways you can break OO if you;d want to ;)
<arup_r_> true true
Sar_D has quit [Quit: leaving]
<arup_r_> gregf_: I want to follow you in GutHub :)
booly-yam has joined #ruby
timonv has quit [Ping timeout: 255 seconds]
Heskie has joined #ruby
WillAmes has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
ndrei has quit [Ping timeout: 252 seconds]
thsig_ has joined #ruby
Heskie has quit [Read error: Connection reset by peer]
bashusr has joined #ruby
thsig has quit [Read error: Connection reset by peer]
Heskie has joined #ruby
yokel has quit [Ping timeout: 276 seconds]
<grn> gregf_: one use case is dealing with someone's else code (so called legacy code ;-)). It's good to know such wired special cases.
MasterRoot24 has joined #ruby
bonhoeffer has joined #ruby
Sawbones has joined #ruby
yokel has joined #ruby
josephcs has quit [Ping timeout: 255 seconds]
MasterRoot24 has quit [Client Quit]
djbkd has quit [Ping timeout: 244 seconds]
dangerousdave has joined #ruby
blizzy has joined #ruby
Sawbones has quit [Ping timeout: 264 seconds]
djbkd has joined #ruby
nateberkopec has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
larissa has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
Morkel has joined #ruby
bronak has joined #ruby
troubadour has joined #ruby
anaeem1_ has joined #ruby
troubadour has quit [Client Quit]
<jokke> hello
bashusr has joined #ruby
<certainty> _o/
gheegh has joined #ruby
* certainty is a semaphore today
<jokke> if i build a specific ruby from source, does it already contain all security patches?
timonv has joined #ruby
<workmad3> jokke: it contains any security fixes that were applied up to the version you built
<jokke> yes ok
davout has joined #ruby
<davout> hi
<certainty> ho
anaeem1_ has quit [Ping timeout: 264 seconds]
bronak has quit [Ping timeout: 244 seconds]
<davout> does anyone know of an easy way to format numbers? (commas, thousands separator mainly)
<davout> no actionpack
<jokke> i'm asking because i'm thinking of running an unoffical repo for ruby binaries of different versions for my distro.
<davout> guess i can just pull that particular method from AP heh
kamilc__ has joined #ruby
<jokke> the latest update broke so many of my ruby projects and webservices including gitlab on my server...
<jokke> and i'm trying to avoid that in the fututre
<jokke> *future
<workmad3> jokke: well, then it'll be up to you to decide your policy on applying security patches, including any porting efforts required, same as something like the debian or ubuntu package maintainers would do
zzz_Ridley has joined #ruby
shime has joined #ruby
<jokke> yeah
zzz_Ridley is now known as Ridley5
amil has joined #ruby
Ridley5 has quit [Changing host]
Ridley5 has joined #ruby
<workmad3> jokke: and even then, you're not likely to avoid breakages in the future ;)
<jokke> mmh
<jokke> it's a nuisance
<jokke> still havent got gitlab up and running
<workmad3> jokke: sometimes a security patch changes behaviour that you were relying on unintentionally
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<workmad3> jokke: sometimes you can't backport a patch
<jokke> yeah
<workmad3> jokke: and this is why you should have a staging environment where you test out that sort of change first ;)
<jokke> but running rvm on a server isn't great either
djbkd has quit [Ping timeout: 255 seconds]
n1lo has quit [Ping timeout: 252 seconds]
<workmad3> jokke: I integrated ruby-install into my chef cookbooks, so I could use that to compile specific rubies and expose all the environment data through a resource wrapper
last_staff has joined #ruby
djbkd has joined #ruby
<workmad3> jokke: then I could just use that information to set up the environment for processes, etc :)
zorak8 has joined #ruby
aclearman037 has joined #ruby
<jokke> sound's good
kamilc__ has quit [Ping timeout: 246 seconds]
joonty has quit [Quit: joonty]
ser0ton1n has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
meschi has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
posixpascal has joined #ruby
claptor has quit [Quit: this channel is bakas]
<jokke> and for some reason (maybe ruby update again) rubocop doesn't work with syntastic in vim anymore. I loved it.. :(
djbkd has quit [Ping timeout: 252 seconds]
g-nom3 has joined #ruby
g-nom3 has quit [Max SendQ exceeded]
g-nom3 has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
djbkd has joined #ruby
bashusr has joined #ruby
parduse has quit [Read error: Connection reset by peer]
taiansu has joined #ruby
djbkd has quit [Ping timeout: 264 seconds]
pdoherty has joined #ruby
metadave has joined #ruby
n1lo has joined #ruby
jherbst has joined #ruby
taiansu has quit [Ping timeout: 276 seconds]
DadoCe has joined #ruby
dangerousdave has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
brb3 has joined #ruby
djbkd has joined #ruby
yokel has quit [Ping timeout: 245 seconds]
pdoherty has quit [Ping timeout: 245 seconds]
jherbst has quit [Client Quit]
yokel has joined #ruby
hgl has quit [Ping timeout: 252 seconds]
jerematic has joined #ruby
oo_ has quit [Remote host closed the connection]
zacstewart has joined #ruby
sinkensabe has quit [Remote host closed the connection]
posixpascal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Heskie has quit [Read error: Connection reset by peer]
arup_r_ has quit [Remote host closed the connection]
Heskie has joined #ruby
bashusr has joined #ruby
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
blizzy has quit [Ping timeout: 255 seconds]
blackmesa has quit [Ping timeout: 245 seconds]
mroach_ has joined #ruby
pushpak has joined #ruby
Guest59810 is now known as kaspergrubbe
sinkensabe has joined #ruby
jottr has joined #ruby
jherbst has joined #ruby
jottr has quit [Client Quit]
mroach has quit [Ping timeout: 272 seconds]
mroach_ is now known as mroach
zacstewart has quit [Ping timeout: 265 seconds]
hgl has joined #ruby
n1lo_ has joined #ruby
n1lo has quit [Ping timeout: 264 seconds]
ltd has joined #ruby
<shevy> hmm what is better
<shevy> string.delete '-'
<shevy> or
<shevy> string.delete '-' if string.include? '-'
<certainty> shevy: performance-wise?
timonv has quit [Ping timeout: 252 seconds]
<shevy> no
<shevy> in general
IrishGringo has joined #ruby
<shevy> what do people use
<certainty> i can't answer that then
<certainty> i'd use string.delete
<certainty> without the conditional
<shevy> with no checks?
<shevy> hmm
mwlang has joined #ruby
<workmad3> shevy: I'd do it without checks... I'd also expect it to be better, performance-wise
mroach has quit [Quit: mroach]
jherbst has quit [Quit: Textual IRC Client: www.textualapp.com]
djbkd has quit [Ping timeout: 245 seconds]
jherbst has joined #ruby
<mwlang> I need to write a Ruby script to run on Windows that will connect to FTP server, download some zipped files and unzip them. Are Ruby’s zlib and such available under Windows w/o a lot of pain to install?
_1_Adrian73 has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<workmad3> mwlang: I think so... pretty sure ruby's zlib library is fundamental to being able to install gems, so if the installation is able to do that, it can use zlib ;)
<workmad3> mwlang: dunno about it's ftp library though...
<workmad3> *its
_1_Adrian73 has quit [Read error: Connection reset by peer]
<mwlang> ah well. I guess I’m about to find out! I just realized I have a Windows VM lying around I can actually test with, so I’ll give it a whirl.
startupality has quit [Quit: startupality]
<workmad3> :)
leslie has quit [Quit: Have you ever tried to eat a clock? It's very time consuming.]
tkuchiki has joined #ruby
<mwlang> hmmm…the rails installer looks a little better maintained than the rubyinstaller, which is still recommending 1.9.3 over 2.x versions
janmuffino has joined #ruby
anaeem1_ has joined #ruby
posixpascal has joined #ruby
n1lo_ has quit [Quit: Leaving]
timanema has joined #ruby
spyderman4g63 has joined #ruby
tvw has joined #ruby
leslie has joined #ruby
grn has quit []
startupality has joined #ruby
hmsimha has quit [Ping timeout: 252 seconds]
joonty has joined #ruby
sinkensabe has quit [Remote host closed the connection]
Gue______ has joined #ruby
<mwlang> ah, nevermind, railsinstaller is including the same stuff from rubyinstaller, just packaging a bunch of useful stuff together.
sinkensabe has joined #ruby
rebcabin has joined #ruby
zorak8 has quit [Ping timeout: 256 seconds]
ta_ has quit [Ping timeout: 276 seconds]
n008f4g_ has joined #ruby
veduardo_ has joined #ruby
fandi has quit [Ping timeout: 244 seconds]
tvw has quit []
sbx has quit [Ping timeout: 245 seconds]
ta_ has joined #ruby
TheKruex has joined #ruby
elfuego has joined #ruby
startupality has quit [Quit: startupality]
oleo has joined #ruby
djbkd has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
bronak has joined #ruby
Akuma has joined #ruby
posixpanda has joined #ruby
chinmay_dd has joined #ruby
posixpascal has quit [Read error: Connection reset by peer]
dblessing has joined #ruby
fandi has joined #ruby
evanjs has joined #ruby
tier has joined #ruby
bashusr has joined #ruby
dangerousdave has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
DaniG2k has quit [Ping timeout: 246 seconds]
blackoperat has joined #ruby
posixpanda has quit [Read error: Connection reset by peer]
posixpascal has joined #ruby
thsig_ has quit [Remote host closed the connection]
bashusr has quit [Read error: Connection reset by peer]
bashusr has joined #ruby
davidhq has joined #ruby
JDiPierro has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
last_staff has quit [Quit: last_staff]
pandaant has joined #ruby
joonty has quit [Quit: joonty]
fandi has quit [Max SendQ exceeded]
fandi has joined #ruby
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Moter8> Hi, would anybody mind looking at asciinema_onebox.rb at https://github.com/Moter8/onebox/tree/asciinema-onebox/lib/onebox/engine ?
DadoCe has quit [Remote host closed the connection]
<Moter8> Basically copied stuff from the others ones into this one
livathinos has quit []
joonty has joined #ruby
ta_ has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
jonathan_alban has joined #ruby
Mon_Ouie has joined #ruby
djbkd has quit [Ping timeout: 245 seconds]
veduardo_ has quit [Ping timeout: 246 seconds]
em0ral has joined #ruby
suy is now known as disperso
LouisRoR has quit [Ping timeout: 276 seconds]
shay- has joined #ruby
pu22l3r has joined #ruby
<jhass> Moter8: no need for the return keyword ;)
pu22l3r has quit [Remote host closed the connection]
bronson has joined #ruby
banister has joined #ruby
<jhass> and no idea why you do the assignment on ine 18
<jhass> *line
aclearman037 has joined #ruby
<shay-> hi, I have a XML doc, i select a node using XPath , but how can I changethe value of an attribute? (e.g. class)
<jhass> shay-: using nokogiri or...?
<shay-> I am using rexml/document
djbkd has joined #ruby
LouisRoR has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
beef-wellington has joined #ruby
shredding has joined #ruby
<shay-> thx
lw has joined #ruby
elfuego has quit [Remote host closed the connection]
bashusr has joined #ruby
bronak has quit [Ping timeout: 246 seconds]
brocktimus has joined #ruby
DaniG2k has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
dangerousdave has quit [Remote host closed the connection]
fandi has quit [Max SendQ exceeded]
fandi has joined #ruby
dangerousdave has joined #ruby
jefus__ is now known as jefus
djbkd has quit [Ping timeout: 264 seconds]
IrishGringo has quit [Ping timeout: 245 seconds]
bashusr has quit [Read error: Connection reset by peer]
metadave has quit [Ping timeout: 272 seconds]
sigurding has quit [Quit: sigurding]
doodlehaus has joined #ruby
djbkd has joined #ruby
TheKruex has quit []
taiansu has joined #ruby
mrmargolis has joined #ruby
Gue______ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bashusr has joined #ruby
ta_ has quit [Read error: No route to host]
jefus_ has joined #ruby
MarkPaulFletcher has joined #ruby
thsig has joined #ruby
oo_ has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
ejnahc has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
ejnahc has joined #ruby
jerius has joined #ruby
dotix has quit [Ping timeout: 265 seconds]
jefus has quit [Ping timeout: 244 seconds]
Channel6 has joined #ruby
it0a has joined #ruby
charliesome has quit [Quit: zzz]
dotix has joined #ruby
ta_ has joined #ruby
allcentury has joined #ruby
josephndenton has joined #ruby
ascarter has joined #ruby
bashusr has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
djbkd has quit [Ping timeout: 245 seconds]
sigurding has joined #ruby
Sawbones has joined #ruby
jefus_ is now known as jefus
metadave has joined #ruby
bashusr has joined #ruby
adriancb has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JDiPierro has quit [Remote host closed the connection]
Sawbones has quit [Ping timeout: 264 seconds]
djbkd has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
sinkensabe has joined #ruby
krz has joined #ruby
sandelius has joined #ruby
_maes_ has joined #ruby
wpp has quit [Quit: ZZZzzz…]
<shevy> module Foo; def self.bar; end; end
<shevy> Foo.bar is called a class method?
booly-yam has quit [Ping timeout: 264 seconds]
AFKGeek has quit [Quit: Fades into the shadows]
jmcharnes has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
Techguy305 has joined #ruby
ss_ has joined #ruby
Techguy305 has quit [Read error: Connection reset by peer]
yokel has quit [Ping timeout: 256 seconds]
G________ has joined #ruby
<evanjs> So if you were going to recommend a place for an experienced programmer to start learning ruby where would you tell him to go? please keep the flaming to a minimum :)
<matti> evanjs: You don't need materials for beginners, right - concept of integer and string is the same.
djbkd has quit [Ping timeout: 264 seconds]
<matti> evanjs: Eloquent Ruby is nice for people from different backgrounds.
<shevy> evanjs what do you mean with experienced? you mean in regards to other scripting languages?
<matti> evanjs: Well Grounded Rubyist is nice too.
dman777_alter has joined #ruby
cassianoleal has joined #ruby
djbkd has joined #ruby
JDiPierro has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
yokel has joined #ruby
pdoherty has joined #ruby
<evanjs> @shevy: experienced in I know c/c++ javascript/nodejs/clientside as well, c#, java, and 13 other dead languages not worth listing
<shevy> ok javascript counts for scripting languages
Grumelo has joined #ruby
<shevy> in that case you already know javascript's OOP model too; ruby is a very prototypic OOP language
<shevy> evanjs there are some additional concepts; such as blocks in Ruby; like array.each {|entry| puts entry }
<evanjs> yeah I just feel like I want to do some practical application style learning
<evanjs> like when I learned vim, I literally went through dozens of practise examples then applied them as I worked with it
<shevy> evanjs work through this tutorial, it is too easy for you https://pine.fm/LearnToProgram/chap_01.html but afterwards you know how to use blocks and procs
<matti> What's wrong with getting a book? :(
<matti> Kids theses days.
<evanjs> All good stuff guys appreciate it
<shevy> for a reference book, the pickaxe is good
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> but ultimately the only way to learn ruby is to write stuff yourself
<evanjs> lol matti I will probably buy the eloquent ruby, if it is as good as the elloquent javascript it will be worth it
dangerousdave has joined #ruby
<matti> evanjs: Trust me, you don't need the beginners bullshit.
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> hehe
athan has quit [Read error: Connection reset by peer]
<shevy> I tried to learn rails from a book
<matti> evanjs: It's a waste of time if you know any other language.
<shevy> it was so boring that I gave up :(
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<matti> shevy: You have a proven record of not getting along with books ;p
rippa has joined #ruby
<matti> shevy: I remember how you uni study was going ;p
<matti> ;D
bashusr has joined #ruby
shay- has left #ruby [#ruby]
<dman777_alter> Is CSV generate( options = Hash.new ) { |csv| ... } meant to be treated as a iterator with do? What if I need a CSV object but not in a iterator/generator/enumerator?
blackmesa has joined #ruby
havenwood has joined #ruby
IrishGringo has joined #ruby
sevenseacat has quit [Remote host closed the connection]
cocotton has joined #ruby
<workmad3> dman777_alter: no, in that situation 'csv' is an object used to create CSV, not read it
<workmad3> dman777_alter: e.g. 'csv << [some, row, of, data]' adds a record to the CSV output
bashusr has quit [Read error: Connection reset by peer]
DadoCe has joined #ruby
failshell has joined #ruby
livingstn has joined #ruby
bluOxigen has quit [Ping timeout: 245 seconds]
cocotton has quit [Remote host closed the connection]
drkush has joined #ruby
yokel has quit [Ping timeout: 240 seconds]
cocotton has joined #ruby
bluOxigen has joined #ruby
yokel has joined #ruby
ss_ has quit [Ping timeout: 255 seconds]
cantonic has quit [Quit: cantonic]
cantonic has joined #ruby
G________ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DadoCe has quit [Ping timeout: 256 seconds]
jerematic has quit [Ping timeout: 252 seconds]
rebcabin has quit [Quit: Leaving.]
bashusr has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
DaniG2k has quit [Quit: leaving]
<bradland> dman777_alter: CSV isn't really a "type" in Ruby. The CSV class provides utility for reading and writing from CSV files, but internally, CSV doesn't really exist as a datastructure.
devdazed has joined #ruby
AlexRussia has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
ta_ has quit [Ping timeout: 276 seconds]
lw has quit [Quit: s]
<eam> bradland: I mean, sure it is. That's what a class is
jerematic has joined #ruby
bronak has joined #ruby
djbkd has quit [Ping timeout: 276 seconds]
dangerousdave has joined #ruby
pushpak has quit [Quit: Leaving...]
zacstewart has joined #ruby
djbkd has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
<dman777_alter> Hmm...what if I want a object to pipe in csv << [some, row, of, data] but not in a loop fashion? I just need the csv object created once
Xiti is now known as Xiti`
bashusr has joined #ruby
pushpak has joined #ruby
Xiti` is now known as Xiti
enebo has joined #ruby
<bradland> dman777_alter: do you need the data written immediately, or can you buffer it internally, then flush it?
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<bradland> buffering would be more performant
<bradland> "pipe" has a very specific meaning in programming as well, what you'er describing is "appending" csv data
duggiefresh has joined #ruby
jonathan_alban has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bradland> dman777_alter: you can also use the non-block form of CSV.open if you just want a handle to the CSV file: http://www.ruby-doc.org/stdlib-2.2.0/libdoc/csv/rdoc/CSV.html#method-c-open
ss_ has joined #ruby
shellfu_afk has joined #ruby
shellfu_afk is now known as shellfu
<bradland> csv = CSV.open("path/to/file.csv")
<dman777_alter> bradland: hmm...well, I have a database query Device.where(:_id.in => device_ids).each do |doc|; csv << [some, row, of, data]; end.... for this I rather just have one loop...the database each...rather than a outer CSV.generate do |csv|....since the CSV isn't needing to really iterate in createing the csv object
<bradland> you can then csv << [foo, bar] to that file
<bradland> but you'll need to be sure to csv.close when you're done
<bradland> that's why the block form is preferred
<shevy> matti books are ok if they are good
tagrudev has quit [Remote host closed the connection]
<bradland> use CSV.open, but use the block form instead of generate
<eam> shevy: sounds elitist
<dman777_alter> bradland: when you say block do you mean filesystem block or CPU block while I/O?
<bradland> ruby block
<bradland> so, consider two pieces of code
<dman777_alter> oh...code block?
<dman777_alter> ok
bashusr has quit [Read error: Connection reset by peer]
<bradland> csv = CSV.open('path/to/file.csv')
<tobiasvl> the thing you call a "loop"
<tobiasvl> is a block
<bradland> the form above does not use a block
<bradland> this form does
fandi has quit [Ping timeout: 272 seconds]
<bradland> CSV.open('/path/to/file.csv') { |csv| csv << [foo, bar] }
<dman777_alter> oh, ok....cool. thanks.
<bradland> the difference is that with the first form, you should call csv.close at some point
<eam> a proc, a block, a lock, a sock
aganov has quit [Quit: Leaving]
<workmad3> eam: a dock
anaeem1_ has joined #ruby
djbkd has quit [Ping timeout: 240 seconds]
<bradland> the second form does that for you because csv is only present within the block
<eam> workmad3: we're in for a shock
djbkd has joined #ruby
<workmad3> eam: crap... my mind is now only popping up suggestions from mildly to hugely offensive :)
<dman777_alter> Is CSV.generate do the only way to create a csv object without opening a file with .open()?
lw has joined #ruby
Ulrike_Rayne has quit [Ping timeout: 252 seconds]
<workmad3> dman777_alter: how many other ways do you want? :/
slawrence00 has joined #ruby
<bradland> dman777_alter: CSV.generate is not what you want
<bradland> if you want a CSV file that you can append to, you want CSV.open
<eam> workmad3: tick tock, Time.new won't block
<workmad3> eam: block had already been used :P
sandelius has joined #ruby
<eam> I've been subject to a mock
<workmad3> eam: cook with a wok?
* eam sells all his stock
tubuliferous has joined #ruby
bashusr has joined #ruby
* workmad3 wears a smock
shock_one has joined #ruby
<eam> rock ruby like it's awk
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bradland> have a look at those two examples
<bradland> in the first, i think you've mistaken that the do; end block is an interator
<workmad3> *iterator ^^
jerematic has quit [Ping timeout: 264 seconds]
Zai00 has quit [Quit: Zai00]
<bradland> because that's a common pattern in ruby (for iterators to accept blocks)
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bradland> wtf?
<bradland> interator
<bradland> what are my fingers up to!?
mikepack has joined #ruby
<bradland> they're conspiring against me!
dangerousdave has joined #ruby
<bradland> anyway, the block form is preferred because it is idiomatic ruby
<shevy> eam life is too short to waste with awful books
<bradland> the second form is not wrong, but other rubyists will assume that you breath through your mouth if you use that form without good reason
<shock_one> I want to write and update a multiline string to STDOUT. Meaning that after I printed the second line, I should be able to change the first. I know it's possible because the output of "git pull" works this way. Now, for one line strings I can just \r and print from the beginning. For whole-screen output there is curses and stuff. But how would I print just a couple of lines without occupying all the screen?
<eam> shevy: you'll never know until you read it
<shevy> for programming, I actually think it is nice to integrate the knowledge of books into some kind of wiki or knowledge base
bashusr has quit [Read error: Connection reset by peer]
tkuchiki has quit [Remote host closed the connection]
bronak has quit [Ping timeout: 245 seconds]
<dman777_alter> bradland: you are correct...I am mistaking the first one that the 'do; end block' is an iterator. So it isn't a iterator?
bluOxigen has quit [Ping timeout: 252 seconds]
<eam> shock_one: unless you're willing to go the curses route and learn about terminal interaction you're limited to one line
tkuchiki has joined #ruby
<bradland> shock_one: not sure if this actually works, but i think you can send "\x08" to a term and it will delete characters
n008f4g_ has quit [Ping timeout: 265 seconds]
<eam> shock_one: if you want to assume the terminal is ANSI you can use ansi sequences
bluOxigen has joined #ruby
fryguy9 has joined #ruby
digifiv5e_ has joined #ruby
<bradland> dman777_alter: right, it is not an iterator
digifiv5e is now known as daynaskully
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<bradland> the part between do and end is a block
<shock_one> eam: are the popular terminal emulators ANSI?
<bradland> it is passed to CSV.open as an argument
<bradland> it's not obvious because it's outside the paren
<shock_one> Like gnome-terminal, iTerm, kterm.
<bradland> but that's kind of a ruby idiosyncrasy
jerematic has joined #ruby
<eam> shock_one: yes. color uses ansi sequences for example
<dman777_alter> bradland: oh...ok. thanks
<eam> if the terminal does color it does ansi
<bradland> so, CSV.open rceives a file path and a block
tjohnson has joined #ruby
<eam> shock_one: but the best interface into that is ncurses ...
<bradland> within the block the variable csv (which is an argument to the block, btw) is just a sub-class of an IO object
arup_r has joined #ruby
<shock_one> That's very cool. I knew I'll get help here. Thank you, guys.
<shock_one> eam: is it possible to have a non-full-screen output with curses?
<bradland> dman777_alter: the method << is defined such that it takes the array, joins it together with CSV "rules", and writes that string using IO
bronak has joined #ruby
icebourg has joined #ruby
rbennacer has joined #ruby
icebourg has quit [Max SendQ exceeded]
rbennacer has quit [Remote host closed the connection]
LekeFly has quit [Ping timeout: 244 seconds]
Olipro has quit [Ping timeout: 252 seconds]
Ulrike_Rayne has joined #ruby
rbennacer has joined #ruby
icebourg has joined #ruby
fandi has joined #ruby
<bradland> shock_one: it doesn't look like "\x08" will traverse newlines, however :\
<eam> shock_one: unsure
bashusr has joined #ruby
tkuchiki has quit [Ping timeout: 252 seconds]
<eam> shock_one: I take it back, for something simple like going up one line just the ansi code ought to do
tesuji_ has quit [Ping timeout: 276 seconds]
larissa has quit [Quit: Leaving]
cphrmky has joined #ruby
<shock_one> Well, it should be more like a list of steps with the current step in progress highlighted in green, and maybe a progressbar for other steps.
<eam> bradland: just \r ought to do it
Macaveli has quit [Ping timeout: 256 seconds]
bashusr has quit [Read error: Connection reset by peer]
<eam> cmd.exe on windows used to have a bug that'd crash the kernel if you printed out more \b's than were characters on the line
<eam> kinda crazy that this character/text processing happens in the heart of the kernel
ta_ has joined #ruby
Sawbones has joined #ruby
lw has quit [Quit: s]
fandi has quit [Max SendQ exceeded]
fandi has joined #ruby
booly-yam has joined #ruby
<shock_one> So, I guess neither \x08 nor curses will help me.
studiotate has joined #ruby
<eam> shock_one: did the ansi code work?
bal has quit [Ping timeout: 245 seconds]
<shock_one> It doesn't delete \n.
bal has joined #ruby
zwer has quit [Remote host closed the connection]
d10n-work has joined #ruby
zwer has joined #ruby
djbkd has quit [Ping timeout: 245 seconds]
aswen has quit [Ping timeout: 245 seconds]
<eam> ruby -e'puts "hello\nworld"; print "\033[1A"'
fandi has quit [Max SendQ exceeded]
<eam> shock_one: that ought to move your cursor up one line
Sawbones has quit [Ping timeout: 255 seconds]
ta_ has quit [Ping timeout: 255 seconds]
bashusr has joined #ruby
fandi has joined #ruby
<eam> you should see hello, but not world (your prompt returning will overwrite it
<shock_one> It works, thank you. However, I'd hope for a kind of higher order interface.
qhartman has quit [Quit: Ex-Chat]
anaeem1_ has quit [Remote host closed the connection]
<eam> there might be some gems that wrap ansi sequences, haven't messed with this stuff in ages though
anaeem1 has joined #ruby
djbkd has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
studiotate has quit [Client Quit]
anaeem1 has quit [Remote host closed the connection]
fandi has quit [Max SendQ exceeded]
bluehavana has joined #ruby
fandi has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
anaeem1 has joined #ruby
dblessing has quit [Ping timeout: 246 seconds]
freerobby has joined #ruby
fandi has quit [Read error: Connection reset by peer]
lxsameer has joined #ruby
lxsameer has joined #ruby
cassianoleal has quit [Quit: (null)]
Channel6 has quit [Quit: Leaving]
codecop has quit [Remote host closed the connection]
meschi has quit [Remote host closed the connection]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bashusr has joined #ruby
oo_ has quit [Remote host closed the connection]
bashusr has quit [Read error: Connection reset by peer]
treehug88 has joined #ruby
dangerousdave has joined #ruby
Olipro has joined #ruby
tus has joined #ruby
athan has joined #ruby
lampd1 has joined #ruby
shevy has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
jobewan has joined #ruby
dmolina has joined #ruby
lmickh has joined #ruby
metadave has quit [Ping timeout: 276 seconds]
Trynemjoel has joined #ruby
bal has quit [Quit: bal]
bashusr has joined #ruby
bronson has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
Olipro has quit [Ping timeout: 252 seconds]
ss_ has quit [Ping timeout: 252 seconds]
chipotle has joined #ruby
booly-yam has quit [Ping timeout: 245 seconds]
jonathan_alban has joined #ruby
joonty has quit [Quit: joonty]
giuseppesolinas has joined #ruby
giuseppesolinas_ has joined #ruby
sigurding has quit [Quit: sigurding]
El3k0n has joined #ruby
DadoCe has joined #ruby
tubuliferous has quit [Quit: Textual IRC Client: www.textualapp.com]
bronson has quit [Ping timeout: 245 seconds]
blackoperat has quit [Ping timeout: 264 seconds]
posixpascal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
apeiros has quit [Remote host closed the connection]
djbkd has quit [Read error: Connection timed out]
anaeem1 has quit [Remote host closed the connection]
kapil__ has quit [Quit: Connection closed for inactivity]
<dman777_alter> I am studying the generator() code on http://ruby-doc.org/stdlib-1.9.3/libdoc/csv/rdoc/CSV.html ... with the args.unshift() and 'yield csv'... this looks like a generator to me, am I correct?
bashusr has joined #ruby
anaeem1 has joined #ruby
<shevy> I dont know what is a generator
<shevy> dman777_alter yield access the {} given to a method
Ankhers has joined #ruby
posixpascal has joined #ruby
djbkd has joined #ruby
jonathan_alban has quit [Client Quit]
El3k0n has quit [Remote host closed the connection]
bashusr has quit [Read error: Connection reset by peer]
joonty has joined #ruby
jonathan_alban has joined #ruby
<dman777_alter> https://wiki.python.org/moin/Generators <-- generators as in this
<shevy> eeks
<shevy> snakes!
<bradland> dman777_alter: it is not safe to assume that a ruby method named generator will behave like a Python concept of the same name
function90 has joined #ruby
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
anaeem1 has quit [Ping timeout: 245 seconds]
psy_ has joined #ruby
<dman777_alter> bradland: indeed...what made me ask was because of the args.unshift() and 'yield csv'
DadoCe has quit [Ping timeout: 276 seconds]
spyderman4g63 has quit [Read error: Connection reset by peer]
spyderman4g63 has joined #ruby
<bradland> dman777_alter: sounds like you'd benefit from reading up a bit on Ruby's use of blocks, and how yeild works
booly-yam has joined #ruby
<shevy> dman777_alter that is a block given to the method foo: foo() { 'yo man' }
<shevy> it has a string in this case
<shevy> people in ruby don't use () when it is empty so it translates to
<shevy> foo { 'yo man' }
djbkd has quit [Ping timeout: 256 seconds]
<bradland> it's hard to relate to how nonsensical all this sounds for someone not yet familiar with blocks
snath has quit [Ping timeout: 276 seconds]
<shevy> blocks are simple! it's what is between the {} there!!!
<bradland> i'm a perpetual beginner, so i'm uniquly capable in this case lol
blackmesa has joined #ruby
<shevy> I found the & much harder to understand
<shevy> and how to pass them between different methods
<bradland> so 'splain what happens when yield is called within {}
bashusr has joined #ruby
<shevy> yield accesses the block's content
<shevy> in the above case it will return the string
<waxjar> it's important to mention that blocks are closures
dotix has quit [Quit: Leaving]
<bradland> more buzzwords!
<bradland> not trying to give you guys a hard time.
<waxjar> i thought that was the general term :(
<bradland> just pointing out that for someone coming from a non-programing background, calling things closures doesn't explain a whole lot.
<bradland> it does for programmers
<waxjar> it gives you something to google for :)
<shevy> closures sound so much more sophisticated
<shevy> let's keep it at blocks
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> lego blocks
<bradland> i loved _why's writing because he was really great about building upon the vocabulary as he went
<bradland> speaking of which. dman777_alter, you may like this link even better: http://mislav.uniqpath.com/poignant-guide/book/chapter-3.html
<shevy> I found _why confusing
<bradland> shevy: where you already a programmer when you read his work?
<bradland> something strange happens to your brain when you program
<shevy> I am not really a programmer
<shevy> but I came to ruby from php
blackoperat has joined #ruby
<bradland> you become entrenched in the abstract
jobewan has quit [Ping timeout: 272 seconds]
<waxjar> the cartoons started to annoy me a little bit halfway trough _why's guide :p
<shevy> _why felt as if he was riding on some psychedelic substances
<shevy> haha
tobago has quit [Remote host closed the connection]
<shevy> the cats were cute
<bradland> when people try to communicate using concrete examples rather than simply explaining the concept, we get annoyed
banister has joined #ruby
<shevy> but I never understood how people could learn ruby from that
<bradland> because the abstraction is what we're after, and we're versed in the language of abstraction
<shevy> I love code
<shevy> talk to me in ruby code
<shevy> it's poetry!
<bradland> once you grok it, it's hard to go back
<bradland> it's like when someone says "there is no word for this in your language"
<bradland> programmers say that (in effect) all the time
djbkd has joined #ruby
taiansu has quit [Remote host closed the connection]
<bradland> only it's relative to vocabulary, not language
<shevy> ok
<waxjar> it's unfortunate that most languages have different words for essentially the same concept
<shevy> bradland is on the drugs too
<bradland> i am the noob whisperer
<shevy> waxjar yeah! like the monad of ruby
<DefV_> bradland: people talking in abstractions while they don't know what they're talking about is even worse
mikepack has quit [Remote host closed the connection]
taiansu has joined #ruby
<DefV_> "My company has a problem, but I've converted all the domain-specific mumbo-jumbo into IT-speak for you"
<bradland> DefV_: troof. dunning kruger and all that.
drakhu has quit [Ping timeout: 245 seconds]
j416 has quit [Ping timeout: 245 seconds]
<DefV_> "Please tell me your actual problem instead of your 'actor' and 'action' concept"
<DefV> I work best with real life examples
drakhu has joined #ruby
j416 has joined #ruby
<arup_r> can we shorten this code ? array.delete_if { |elem| elem.nil? || elem.empty? }
<waxjar> array.compact.reject(&:empty?)
jonathan_alban has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<DefV> waxjar: that is less performant for larger arrays
<arup_r> +1
<DefV> arup_r: if you're on rails use Object#blank?
bashusr has quit [Read error: Connection reset by peer]
<arup_r> No.. I am in ruby..
<mwlang> if one instance of Time is local time zone while another instance of Time is another timezone, does inequality operators work correctly, or do I need to ensure both times are in UTC before doing “this_time >= that_time”
<mwlang> i.e. this_time.utc >= that_time.utc
bashusr has joined #ruby
sinkensabe has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 245 seconds]
Akuma has quit [Ping timeout: 252 seconds]
JDiPierro has quit [Remote host closed the connection]
<arup_r> Anyway see this answer.. someone made it brilliantly... DefV: http://stackoverflow.com/a/27984289/2767755
Salve has joined #ruby
JDiPierro has joined #ruby
baroquebobcat has joined #ruby
lw has joined #ruby
lw has quit [Read error: Connection reset by peer]
lw has joined #ruby
jobewan has joined #ruby
Kruppe has quit [Quit: ZNC - http://znc.in]
olivier_bK has quit [Ping timeout: 252 seconds]
lw has quit [Client Quit]
djbkd has joined #ruby
tedstriker has joined #ruby
yokel has quit [Ping timeout: 265 seconds]
<shevy> [ 1722.032599] configure[23417]: segfault at 373e2567 ip b75f5af8 sp bf84ed00 error 4 in libc-2.15.so[b757b000+17e000]
<workmad3> mwlang: as long as the time zone is set on both, inequality operators should work and translate between timezones
<shevy> ah the joy of linux
blackmesa has quit [Ping timeout: 276 seconds]
<workmad3> mwlang: it should be fairly easy to test that in a console though ;)
booly-yam has quit [Ping timeout: 244 seconds]
Kruppe has joined #ruby
Zai00 has joined #ruby
ziyadb has joined #ruby
ta_ has joined #ruby
yokel has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
<wmoxam> What is considered to be a good first Ruby book for someone who has some programming experience?
<wmoxam> (In this case a js dev)
mjuszczak has joined #ruby
byprdct has joined #ruby
alex88_ has joined #ruby
mobiGeek has joined #ruby
bashusr has joined #ruby
<wmoxam> Beginning Ruby maybe?
<mobiGeek> morning folks!
<arup_r> wmoxam: ^^
<wmoxam> arup_r: thanks
qhartman has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
bashusr has quit [Read error: Connection reset by peer]
anaeem1 has joined #ruby
<wmoxam> I have a copy of POODR here, but I don't think it's really going to teach much language stuff
crazydiamond has joined #ruby
schickung has quit [Quit: schickung]
bashusr has joined #ruby
anaeem1 has quit [Read error: Connection reset by peer]
chrishough has joined #ruby
alex88 has quit [Ping timeout: 256 seconds]
apeiros has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
Doc_X has left #ruby ["0.4.3"]
anaeem1_ has joined #ruby
Dopagod has joined #ruby
jenrzzz has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
iceden has joined #ruby
<havenwood> wmoxam: but get Second Edition! http://www.manning.com/black3/
gsd has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
bashusr has joined #ruby
vozcelik has joined #ruby
<mwlang> wmoxam: Pragmatic Bookshelf’s “Programming Ruby 1.9 & 2.0”
anaeem1 has joined #ruby
<havenwood> wmoxam: The Ruby Programming Language is a good book.
larissa has joined #ruby
<havenwood> With sparrows on the cover.
<wmoxam> cool
<wmoxam> ty
dfinninger has joined #ruby
yokel has quit [Ping timeout: 245 seconds]
<mobiGeek> I have a resque process started by init.d with: su $USER -c "rake RAILS_ENV=production BACKGROUND=yes QUEUES=a PIDFILE=/tmp/pid resque:work &>>$LOG_FILE" But after starting, $LOG_FILE is empty and I see that /proc/{PID}/fd/1 is set to /dev/null. How can I get STDOUT and STDERR for rake to go to LOG_FILE? Or is something within rake/resque closing them?
shock_one has quit [Remote host closed the connection]
giuseppesolinas_ has quit [Quit: This computer has gone to sleep]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
mroth_ is now known as mroth
GaryOak_ has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 272 seconds]
bashusr has joined #ruby
anaeem1 has quit [Ping timeout: 255 seconds]
giuseppesolinas_ has joined #ruby
giuseppesolinas has joined #ruby
Guest18670 has joined #ruby
dumdedum has quit [Quit: foo]
^wald0 has joined #ruby
Tricon has joined #ruby
gsd has quit [Ping timeout: 265 seconds]
krz has quit [Ping timeout: 245 seconds]
diegoviola has joined #ruby
einarj has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
ponga has quit [Quit: Leaving...]
CustosL1men has quit [Ping timeout: 272 seconds]
ta_ has joined #ruby
dblessing has joined #ruby
brb3 has quit [Quit: ZZZzzz…]
geekbri has joined #ruby
ascarter has joined #ruby
bonhoeffer has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
taiansu has quit [Remote host closed the connection]
bashusr has joined #ruby
bashusr has quit [Changing host]
bashusr has joined #ruby
psy_ has quit [Remote host closed the connection]
pglombardo has joined #ruby
krz has joined #ruby
mloveless has joined #ruby
anaeem1_ has quit [Ping timeout: 264 seconds]
dblessing has quit [Read error: Connection reset by peer]
shredding has quit [Quit: shredding]
rbrs has quit [Quit: rbrs]
booly-yam has joined #ruby
brb3 has joined #ruby
Hobogrammer has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
ta_ has quit [Ping timeout: 272 seconds]
mjuszczak has quit []
Alina-malina has quit [Ping timeout: 272 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
Alina-malina has joined #ruby
anaeem1 has joined #ruby
gsd has joined #ruby
psy_ has joined #ruby
taiansu has joined #ruby
posixpascal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Fire-Dragon-DoL has joined #ruby
Fire-Dragon-DoL has quit [Max SendQ exceeded]
iamninja has quit [Quit: ZZZzzz…]
seal has joined #ruby
diegoviola has quit [Remote host closed the connection]
cocotton has quit [Remote host closed the connection]
yokel has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
bashusr has joined #ruby
cocotton has joined #ruby
Heskie has quit []
jeregrin_ has joined #ruby
spyderman4g63 has joined #ruby
Guest18670 has quit [Ping timeout: 245 seconds]
bonhoeffer has quit [Quit: bonhoeffer]
JDiPierro has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 276 seconds]
neoxoen has joined #ruby
^wald0 has quit [Quit: ^wald0]
spyderman4g63 has quit [Ping timeout: 244 seconds]
bashusr has quit [Read error: Connection reset by peer]
cocotton has quit [Ping timeout: 252 seconds]
Fire-Dragon-DoL has joined #ruby
sambao21 has joined #ruby
sinkensabe has joined #ruby
Hijiri has quit [Ping timeout: 276 seconds]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DadoCe has joined #ruby
jonathan_alban has joined #ruby
Guest18670 has joined #ruby
withnale_ has quit [Ping timeout: 264 seconds]
Guest18670 has quit [Client Quit]
bashusr has joined #ruby
Guest18670 has joined #ruby
Guest18670 is now known as jordanm
jordanm has quit [Changing host]
jordanm has joined #ruby
LevelUpr has joined #ruby
mjulian has joined #ruby
yokel has quit [Ping timeout: 265 seconds]
psy_ has quit [Remote host closed the connection]
snath has joined #ruby
aef has joined #ruby
michaeldeol has joined #ruby
ascarter has quit [Remote host closed the connection]
yokel has joined #ruby
DadoCe has quit [Ping timeout: 246 seconds]
timonv has joined #ruby
wallerdev has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
reinaldob has quit [Remote host closed the connection]
ascarter has joined #ruby
happyface has joined #ruby
yjmsf20 has quit [Ping timeout: 245 seconds]
jeregrin_ has quit []
seal has quit [Quit: Ex-Chat]
LevelUpr has quit [Remote host closed the connection]
ss_ has joined #ruby
diegoviola has joined #ruby
psy_ has joined #ruby
brb3 has quit [Quit: ZZZzzz…]
blackmesa has joined #ruby
jonathan_alban has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
B1n4r10 has joined #ruby
jeregrin_ has joined #ruby
bricker has joined #ruby
n008f4g_ has joined #ruby
bashusr has joined #ruby
<eam> mobiGeek: reopening stdin/out/err to /dev/null is standard behavior for a process which daemonizes
booly-yam has quit [Ping timeout: 252 seconds]
<eam> mobiGeek: you can simply re-open them again to the files you wish
<apeiros> mb, rbkit seems to leak
<apeiros> or something else leaked and I didn't know
<eam> mobiGeek: STDOUT.reopen()
<mobiGeek> eam: I'm the Ops guy for this app, not the coder.
<eam> mobiGeek: ok but you'll have to add some code
mwlang has quit [Quit: mwlang]
blizzy has joined #ruby
<eam> if you want to live dangerously: sudo gdb -p $resque_pid
<mobiGeek> eam: what's the standard practice for having resque (or is it rake?) output its unhandled exceptions when run as a daemon ?
msgodf has quit [Ping timeout: 246 seconds]
rbennacer has quit [Remote host closed the connection]
pietr0 has joined #ruby
rbennacer has joined #ruby
joonty has quit [Quit: joonty]
<eam> and then p rb_eval_string("STDOUT.reopen(File.open '/tmp/foo.log', 'a')")
<eam> mobiGeek: no clue
jonathan_alban has joined #ruby
<mobiGeek> eam: interesting idea.
duggiefresh has quit [Remote host closed the connection]
lw has joined #ruby
St1gma has joined #ruby
pdoherty has quit [Remote host closed the connection]
lesnik_ has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
booly-yam has joined #ruby
kotk has joined #ruby
maletor has joined #ruby
Sawbones has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
dukedave_ has joined #ruby
lesnik_ has quit [Client Quit]
ss_ is now known as s2013
dblessing has joined #ruby
dukedave_ is now known as dukedave
dukedave has quit [Client Quit]
dukedave has joined #ruby
ta_ has joined #ruby
djbkd has quit [Remote host closed the connection]
bashusr has joined #ruby
Sawbones has quit [Ping timeout: 245 seconds]
shime has quit [Ping timeout: 265 seconds]
deric_skibotn has joined #ruby
jcdesimp has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
whoisjake has joined #ruby
davidhq has joined #ruby
chthon has quit [Ping timeout: 264 seconds]
bonhoeffer has joined #ruby
mikepack has joined #ruby
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pwh has joined #ruby
IrishGringo has quit [Read error: Connection reset by peer]
_maes_ has joined #ruby
mjuszczak has joined #ruby
pwh_ has joined #ruby
dangerousdave has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
ta_ has quit [Ping timeout: 276 seconds]
kenneth has joined #ruby
andikr has quit [Remote host closed the connection]
mjuszczak has quit [Client Quit]
IrishGringo has joined #ruby
sambao21 has joined #ruby
LekeFly has joined #ruby
pwh has quit [Ping timeout: 246 seconds]
ghr has quit [Ping timeout: 264 seconds]
pwh_ has quit [Client Quit]
davedev2_ has joined #ruby
davedev24_ has quit [Ping timeout: 265 seconds]
timonv has quit [Ping timeout: 252 seconds]
meschi has joined #ruby
bashusr has joined #ruby
sinkensabe has quit [Remote host closed the connection]
ndrei has joined #ruby
tedstriker has quit [Quit: Anti-Fraping status set.]
jmcharnes has quit [Quit: Textual IRC Client: www.textualapp.com]
un5t0ppab13 has joined #ruby
un5t0ppab13 has quit [Remote host closed the connection]
pdoherty has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lemur has joined #ruby
metadave has joined #ruby
wallerdev has quit [Quit: wallerdev]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby
Heskie has joined #ruby
dfinninger has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 245 seconds]
bronson has joined #ruby
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mjuszczak has joined #ruby
IrishGringo has quit [Read error: Connection reset by peer]
IrishGringo has joined #ruby
duggiefresh has joined #ruby
thsig has quit [Remote host closed the connection]
shime has joined #ruby
thsig has joined #ruby
rbennacer has quit [Remote host closed the connection]
nanoyak has joined #ruby
LevelUpr has joined #ruby
PanzerModern has joined #ruby
bronson has quit [Ping timeout: 245 seconds]
sinkensabe has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
nanoyak has quit [Client Quit]
djbkd has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
jenrzzz has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
cpt_yossarian has quit [Quit: And then he took off.]
avril14th has quit [Remote host closed the connection]
nanoyak has joined #ruby
sinkensabe has quit [Remote host closed the connection]
mjuszczak has quit []
mrmargolis has quit [Remote host closed the connection]
IrishGringo has quit [Read error: Connection reset by peer]
St1gma has quit [Remote host closed the connection]
drkush has quit [Ping timeout: 245 seconds]
tus has quit [Ping timeout: 252 seconds]
IrishGringo has joined #ruby
St1gma has joined #ruby
Hijiri has joined #ruby
linduxed has joined #ruby
jheg has quit [Quit: jheg]
<linduxed> just out of curiosity, what delimiters do people here prefer for the %-literals?
<linduxed> so %w[] or %w()
<apeiros> linduxed: {} for string-like, and [] for array-like
<linduxed> hmmm, ok
<bricker> agree
mwlang has joined #ruby
<apeiros> so %w[], %i[] and %q{}, %{}
<eam> is there a way to prevent Timeout from raising in my main thread?
drkush has joined #ruby
bashusr has joined #ruby
<eam> let's say I want to make a critical section
<linduxed> that's kind of how i'm doing it
<linduxed> kthx
sivoais has quit [Ping timeout: 265 seconds]
^wald0 has joined #ruby
lw has quit [Quit: s]
jaygen has joined #ruby
<mwlang> what’s a good browser-related channel to throw questions at?
lw has joined #ruby
<eam> what mechanism does Timeout use?
jonathan_alban has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thumpba has joined #ruby
<mwlang> I’ve got Chrome and Firefox showing Ask Jeeves everywhere, but no plugins were recently installed nor is anything listed in the configurations for this.
<eam> like, I see it does a #raise against the thread it started from
<eam> but how does #raise get invoked in the parent thread?
djbkd has quit [Ping timeout: 244 seconds]
bashusr has quit [Read error: Connection reset by peer]
pushpak has quit [Quit: Linkinus - http://linkinus.com]
<arrubin> mwlang: Did you upgrade Java?
lemur has quit [Remote host closed the connection]
ponga has joined #ruby
<arrubin> Or some other software that loves to bundle browser extensions?
<mwlang> arrubin: yeah, I was just thinking about that maybe being the source.
<mwlang> arrubin: I know Java updated on my Windows VM, but I definitely don’t remember Java updating on my Mac.
baweaver has joined #ruby
lw has quit [Ping timeout: 264 seconds]
jmcharnes has joined #ruby
kaspertidemann has joined #ruby
wallerdev has joined #ruby
Hijiri has quit [Ping timeout: 272 seconds]
baweaver has quit [Remote host closed the connection]
djbkd has joined #ruby
baweaver has joined #ruby
arup_r has quit [Quit: Leaving.]
Xeago has joined #ruby
zacstewart has quit [Ping timeout: 245 seconds]
justkidding has joined #ruby
bashusr has joined #ruby
neoxoen has quit [Ping timeout: 265 seconds]
booly-yam has quit [Ping timeout: 255 seconds]
lw has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
djbkd has quit [Ping timeout: 240 seconds]
Xeago has quit [Ping timeout: 245 seconds]
cocotton has joined #ruby
cocotton has joined #ruby
booly-yam has joined #ruby
mwlang has quit [Quit: mwlang]
zacstewart has joined #ruby
IrishGringo has quit [Read error: Connection reset by peer]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bashusr has joined #ruby
neoxquick has joined #ruby
alex88_ has quit []
ta_ has joined #ruby
davedev24_ has joined #ruby
davedev2_ has quit [Ping timeout: 255 seconds]
Salve_ has joined #ruby
ascarter has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
Salve has quit [Ping timeout: 244 seconds]
djbkd has joined #ruby
colinstgeorge has joined #ruby
LevelUpr has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
dmolina has quit [Quit: Leaving.]
brb3 has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
ponga has quit [Quit: Leaving...]
pandaant has quit [Remote host closed the connection]
Zai00 has quit [Quit: Zai00]
yokel has quit [Ping timeout: 244 seconds]
jeregrin_ has quit []
ta_ has quit [Ping timeout: 276 seconds]
sigurding has joined #ruby
jerius has quit []
yokel has joined #ruby
bashusr has joined #ruby
djbkd has quit [Ping timeout: 245 seconds]
ursooperduper has joined #ruby
workmad3 has quit [Ping timeout: 276 seconds]
jeregrin_ has joined #ruby
gregf has joined #ruby
terlar has quit [Ping timeout: 264 seconds]
doodlehaus has quit [Remote host closed the connection]
maletor has quit [Ping timeout: 245 seconds]
ta_ has joined #ruby
Salve_ has quit []
leafybasil has quit [Remote host closed the connection]
IrishGringo has joined #ruby
klmlfl has joined #ruby
sigurding has quit [Ping timeout: 245 seconds]
djbkd has joined #ruby
<dman777_alter> does ruby have built in help for thier methods like python does? like help(method_name)
<eam> can I not access rb_thread_t from a C extension? It looks like I can't
<apeiros> dman777_alter: help
<apeiros> dman777_alter: but that's irb (interactive ruby). in plain ruby, that wouldn't make sense.
<apeiros> I'd recommend getting pry, though, together with pry-doc. then you can do e.g. `? Array`, `? ['some', 'array'].join`
jamgood96 has joined #ruby
ta_ has quit [Ping timeout: 264 seconds]
blackoperat has quit [Ping timeout: 245 seconds]
<dman777_alter> apeiros: yes...I am in rails shell. How would I find the help of method map that I have from a query called devices_ids_from_elastic.map? I can't tell if .map() is from elastic search plugin or mongoId.
centrx has joined #ruby
<apeiros> dman777_alter: devices_ids_from_elastic.method(:map).owner
jeregrin_ has quit []
<apeiros> though I think irb's help nowadays works like pry's ?
JDiPierro has joined #ruby
<dman777_alter> apeiros: hmm..it gives me Enumerable
<apeiros> i.e. you can try: `help devices_ids_from_elastic.map`
<apeiros> dman777_alter: so it's Enumerable#map
DrShoggoth has joined #ruby
mwlang has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
<mwlang> I’m trying to get Ruby working on a Windows server.
<mwlang> I used the rubyinstaller to install Ruby and also installed the appropriate DevKit
<dman777_alter> apeiros: cool..thanks!
<mwlang> but when I go to install bundler, I get this: gem install bundler => ERROR: Could not find a valid gem 'bundler' (>= 0), here is why: Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/latest_specs.4.8.gz)
hmsimha has joined #ruby
<Fire-Dragon-DoL> are there any helper class that delegate any missing method to a specified object? I don't want to specify every method name if possible
<mwlang> I can download the latest_specs.4.8.gz file with browser, so its not an internet connection, and I have allowed Ruby through on the local firewall.
<havenwood> mwlang: This might be relevant: https://gist.github.com/luislavena/f064211759ee0f806c88
nanoyak has quit [Quit: Computer has gone to sleep.]
TheNet has joined #ruby
wereHamster has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wereHamster has quit [Changing host]
wereHamster has joined #ruby
bashusr has joined #ruby
evanjs has quit [Remote host closed the connection]
nanoyak has joined #ruby
<frogsy2> mwlang, havenwood's link is the right solution, I've had this same issue every time I set up on Windows
<frogsy2> just save the certificate to the right location
taiansu has quit [Remote host closed the connection]
<mwlang> havenwood: and frogsy2 I can confirm that this resolved my issue. I was on 2.2.2 rubygems. Now on 2.2.3 and it fixes the SSL issue.
<mwlang> bundler is now installed. Thanks!
rdark has quit [Quit: leaving]
bashusr has quit [Read error: Connection reset by peer]
jerius has joined #ruby
blackoperat has joined #ruby
dubyah has joined #ruby
gizless has joined #ruby
Megtastique has joined #ruby
gizmore has quit [Ping timeout: 246 seconds]
dfinninger has joined #ruby
TheNet has quit [Remote host closed the connection]
TheNet has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
bashusr has joined #ruby
wereHamster has quit [Ping timeout: 245 seconds]
athan has quit [Ping timeout: 264 seconds]
Trynemjoel has quit [Ping timeout: 272 seconds]
jmcharnes has quit [Quit: Textual IRC Client: www.textualapp.com]
Trynemjoel has joined #ruby
chrishough has joined #ruby
michaeldeol has joined #ruby
pauly_oc has joined #ruby
cpruitt has joined #ruby
startupality has joined #ruby
dfinninger has quit [Ping timeout: 244 seconds]
blackmesa has joined #ruby
yokel has quit [Ping timeout: 244 seconds]
thsig_ has joined #ruby
spyderman4g63 has joined #ruby
Wizard-Z1 has joined #ruby
marens has quit [Changing host]
marens has joined #ruby
jheg has joined #ruby
spyderma_ has joined #ruby
booly-yam has quit [Ping timeout: 246 seconds]
warreng has joined #ruby
dubyah has left #ruby [#ruby]
dubyah has joined #ruby
thsig has quit [Ping timeout: 276 seconds]
leafybasil has joined #ruby
maletor has joined #ruby
_maes_ has quit [Ping timeout: 264 seconds]
jheg has quit [Client Quit]
bashusr has quit [Read error: Connection reset by peer]
maletor has quit [Changing host]
maletor has joined #ruby
thumpba has quit []
thumpba has joined #ruby
spyderman4g63 has quit [Ping timeout: 240 seconds]
justkidding has quit [Ping timeout: 246 seconds]
El3k0n has joined #ruby
lw has quit [Quit: s]
jheg has joined #ruby
jheg has quit [Client Quit]
icbm has quit [Quit: Leaving]
aduy has joined #ruby
klmlfl has quit [Remote host closed the connection]
yokel has joined #ruby
klmlfl has joined #ruby
El3k0n_ has joined #ruby
bashusr has joined #ruby
aduy is now known as audy
revoohc has joined #ruby
amil has quit [Quit: Linkinus - http://linkinus.com]
jheg has joined #ruby
geekbri has quit []
Wizard-Z1 has quit [Read error: Connection reset by peer]
jheg has quit [Client Quit]
bashusr has quit [Read error: Connection reset by peer]
fryguy9 has quit [Quit: Leaving.]
failshel_ has joined #ruby
rbennacer has joined #ruby
yjmsf20 has joined #ruby
yjmsf20 has quit [Client Quit]
rbennacer has quit [Remote host closed the connection]
jenrzzz has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
x1337807x has joined #ruby
psyprus has quit [Changing host]
psyprus has joined #ruby
sargas has joined #ruby
mikepack has quit [Remote host closed the connection]
<mwlang> I normally use back-ticks `` to shell out to some commandline program from Ruby. Is it possible to shell out AND display output being generated by that command while it is running rather than all at once when the command completes?
jheg has joined #ruby
Trynemjoel has joined #ruby
<apeiros> mwlang: no. use system, spawn, popen or similar for that
failshell has quit [Ping timeout: 240 seconds]
failshel_ has quit [Read error: Connection reset by peer]
LouisRoR has quit [Ping timeout: 264 seconds]
uptownhr has joined #ruby
<uptownhr> anybody use padrino or sinatra here?
jheg has quit [Client Quit]
^wald0 has quit [Quit: ^wald0]
failshell has joined #ruby
<uptownhr> whats the difference between app.register and app.helper?
IrishGringo has quit [Quit: ChatZilla 0.9.91.1 [Firefox 34.0.5/20141126041045]]
bashusr has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
gsd has joined #ruby
booly-yam has joined #ruby
mayday_jay has joined #ruby
Sawbones has joined #ruby
yokel has quit [Ping timeout: 264 seconds]
rbennacer has joined #ruby
siloxid has joined #ruby
PhilK_ is now known as PhilK
bashusr has joined #ruby
mayday_jay is now known as lektrik
<mwlang> apeiros: thanks. popen seems to be doing the trick.
drkush has quit [Ping timeout: 276 seconds]
HardlyNeutral has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Moter8 has joined #ruby
drkush has joined #ruby
yokel has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
blackoperat has quit [Ping timeout: 245 seconds]
chrishough has quit [Read error: Connection reset by peer]
sundjango has joined #ruby
Sawbones has quit [Ping timeout: 252 seconds]
^wald0 has joined #ruby
chrishough has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
giuseppesolinas_ has quit [Quit: This computer has gone to sleep]
yalue has quit [Quit: return 0;]
shime has quit [Ping timeout: 245 seconds]
x1337807x has quit [Quit: Textual IRC Client: www.textualapp.com]
jenrzzz has joined #ruby
fandi has joined #ruby
rpag has joined #ruby
x1337807x has joined #ruby
mrmargolis has joined #ruby
wereHamster has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
Hijiri has joined #ruby
dfinninger has joined #ruby
bronson has joined #ruby
sigurding has joined #ruby
kirun has joined #ruby
kl__ has quit [Ping timeout: 240 seconds]
whoisjake has quit []
HardlyNeutral has left #ruby ["Textual IRC Client: www.textualapp.com"]
bronson has quit [Remote host closed the connection]
bronson has joined #ruby
El3k0n has quit [Quit: Sto andando via]
dubyah has quit [Remote host closed the connection]
bashusr has joined #ruby
giuseppesolinas_ has joined #ruby
giuseppesolinas has joined #ruby
cocotton has quit [Read error: Connection reset by peer]
cocotton has joined #ruby
ascarter has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
blackoperat has joined #ruby
baroquebobcat has joined #ruby
thsig_ has quit [Remote host closed the connection]
JBreit has left #ruby ["Leaving"]
thumpba has quit []
blizzy has quit [Read error: Connection reset by peer]
thumpba has joined #ruby
thumpba has quit [Remote host closed the connection]
thumpba has joined #ruby
yokel has quit [Ping timeout: 245 seconds]
baroquebobcat has quit [Client Quit]
baroquebobcat has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
uptownhr has quit [Quit: uptownhr]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Heskie has quit [Read error: Connection reset by peer]
Heskie has joined #ruby
sigurding has quit [Ping timeout: 246 seconds]
<mwlang> apeiros: Is there a way to tweak the buffer with popen or popen3 so less info is written to stdout before ruby finally gets it?
ddd has quit [Quit: updating from 14.04 to 14.10. Back later when completed]
leafybasil has quit [Remote host closed the connection]
tus has joined #ruby
bashusr has joined #ruby
taiansu has joined #ruby
<eam> why does ruby maintain a pipe between threads and sometimes write a "!" between it?
dcarmich has joined #ruby
codecop has joined #ruby
dubyah has joined #ruby
<rpag> eam, huh?
last_staff has joined #ruby
ndrei has quit [Ping timeout: 256 seconds]
lodgenbd has quit [Quit: Leaving]
sigurding has joined #ruby
<mwlang> apeiros: nevermind. StackOverflow led me to the pty library and that’s doing exactly what I needed.
<eam> rpag: in rb_thread_wakeup_timer_thread_fd()
<eam> I'm trying to prevent preemption in my thread
<dman777_alter> csv_string = elastic_mongo_lookup params[:search_term]; if csv_string? ... How would I test if csv_string is a object or null?
<waxjar> eam: interrupts maybe?
<rpag> eam, ah, i have no clue
El3k0n_ has quit [Remote host closed the connection]
klmlfl_ has joined #ruby
troyready has joined #ruby
kyb3r_ has joined #ruby
PaulCapestany has joined #ruby
cephalostrum has quit [Remote host closed the connection]
bashusr has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
cephalostrum has joined #ruby
taiansu has quit [Ping timeout: 256 seconds]
<eam> does anyone know how Thread#raise works?
<eam> I need to prevent someone from raising my thread during a critical section
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
klmlfl has quit [Ping timeout: 265 seconds]
shazaum has quit [Quit: Leaving]
<rpag> monkey patch it? (on the thread you return)
<waxjar> eam: if i understand Thread.handle_interrupt correctly, you can wrap critical sections with it to prevent that
nanoyak has quit [Quit: Computer has gone to sleep.]
uxp has quit [Ping timeout: 252 seconds]
Joufflu has joined #ruby
<eam> aah excellent
bashusr has joined #ruby
yokel has joined #ruby
pglombardo has quit []
TheNet has quit [Remote host closed the connection]
sargas has quit [Quit: Leaving]
TheNet has joined #ruby
adamski2600 has joined #ruby
linduxed has quit [Ping timeout: 244 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
LouisRoR has joined #ruby
baroquebobcat has joined #ruby
lw has joined #ruby
lw has quit [Max SendQ exceeded]
yokel has quit [Ping timeout: 272 seconds]
lw has joined #ruby
yokel has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
LekeFly has joined #ruby
failshell has quit []
oleo is now known as Guest39586
oleo__ has joined #ruby
rbennacer has quit [Read error: Connection reset by peer]
tesaf_ has joined #ruby
tesaf_ has quit [Client Quit]
rbennacer has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
rbennacer has quit [Read error: Connection reset by peer]
adamski2600 has quit []
adamski2600 has joined #ruby
lw has quit [Read error: Connection reset by peer]
lw has joined #ruby
Guest39586 has quit [Ping timeout: 256 seconds]
kl has joined #ruby
last_staff has quit [Ping timeout: 245 seconds]
rodfersou has quit [Remote host closed the connection]
bashusr has joined #ruby
sambao21 has quit [Ping timeout: 255 seconds]
nrsk has joined #ruby
LouisRoR has quit []
Grumelo has quit []
m8 has joined #ruby
sambao21 has joined #ruby
Morkel has quit [Quit: Morkel]
TheNet has quit [Remote host closed the connection]
athan has joined #ruby
metadave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lampd1 has quit [Remote host closed the connection]
asmodchan has joined #ruby
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cocotton has quit [Quit: Leaving...]
bashusr has quit [Read error: Connection reset by peer]
LouisRoR has joined #ruby
whoisjake has joined #ruby
yokel has quit [Ping timeout: 240 seconds]
havenwood has quit []
meschi has quit [Remote host closed the connection]
TheNet has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
rbennace_ has joined #ruby
jenrzzz has joined #ruby
clocKwize has quit [Ping timeout: 245 seconds]
asmodlol has quit [Ping timeout: 252 seconds]
rbennac__ has joined #ruby
Jackneill has quit [Ping timeout: 245 seconds]
dotix has joined #ruby
dotix has joined #ruby
bonhoeffer has joined #ruby
x1337807x has joined #ruby
clocKwize has joined #ruby
bashusr has joined #ruby
bronson has quit [Remote host closed the connection]
yokel has joined #ruby
ldnunes has quit [Quit: Leaving]
rbennace_ has quit [Ping timeout: 256 seconds]
metadave has joined #ruby
davedev2_ has joined #ruby
davedev24_ has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 244 seconds]
lolmaus has quit [Quit: Konversation terminated!]
jheg has joined #ruby
DadoCe has joined #ruby
sklik has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
evanjs has joined #ruby
dubyah has quit [Remote host closed the connection]
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ascarter has joined #ruby
jenrzzz has joined #ruby
^wald0 has quit [Ping timeout: 245 seconds]
rbennac__ has quit [Ping timeout: 256 seconds]
ascarter has quit [Client Quit]
kl has quit [Ping timeout: 244 seconds]
fryguy9 has joined #ruby
DadoCe has quit [Ping timeout: 246 seconds]
iamninja has joined #ruby
juanpablo______ has joined #ruby
ascarter has joined #ruby
<juanpablo______> Does `Timecop.travel(Time.zone.now)` do anything at all
<juanpablo______> Not freeze, but travel
<bradland> dman777_alter: it's hard to answer your question without knowing what the method `elastic_mongo_lookup` returns
<bradland> does it return a string or nil?
bashusr has joined #ruby
<bradland> or does it return a string or an empty string
dubyah has joined #ruby
leafybasil has joined #ruby
dopie has quit [Remote host closed the connection]
sundjango has quit [Remote host closed the connection]
bashusr has quit [Read error: Connection reset by peer]
SixiS has quit [Quit: SixiS]
_waltertv has joined #ruby
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
wallerdev has quit [Quit: wallerdev]
sambao21 has quit [Quit: Computer has gone to sleep.]
ndrei has joined #ruby
sambao21 has joined #ruby
claymore has joined #ruby
<davout> juanpablo______: travelling to Time.now shouldn't do much by definition
<apeiros> juanpablo______, davout: well, except if you traveled to another time before, I guess?
<dman777_alter> bradland: sorry...it was returning a empty string. I used rails .blank to test.
<bradland> dman777_alter: that's the ticket :)
<bradland> dman777_alter: you should definitely have a look over this though. https://gist.github.com/jfarmer/2647362
dstarh has joined #ruby
yokel has quit [Ping timeout: 276 seconds]
<davout> apeiros: i guess so, but in such a case i'd travel inside a block and let timecop go back to the current time upon leaving the block
<bradland> explains how values are evaluated in conditionals
bashusr has joined #ruby
<apeiros> davout: sure. didn't say it was wise :)
meschi has joined #ruby
Musashi007 has joined #ruby
whoisjake has quit []
<apeiros> also it usually makes little sense in tests to use "now" as a time.
deric_skibotn has quit [Ping timeout: 276 seconds]
yokel has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
gsd has quit [Ping timeout: 245 seconds]
<davout> sure, except if you need it to freeze, Time.now being the easiest available one
<nickjj> does anyone know if there's a command to run which will list out every available library in ruby's stdlib?
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
icbm has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
sambao21 has joined #ruby
<jhass> how about just going to http://ruby-doc.org/stdlib-2.2.0/ ?
<nickjj> jhass, yeah that's where i went, but i wanted to get that list programatically if possible
<jhass> what's your goal?
michaeldeol has joined #ruby
Megtastique has quit []
<nickjj> to create the absolute minimal docker base layer which is capable of running anything provided by ruby's stdlib without needing extra deps
bashusr has joined #ruby
<nickjj> but to do this properly will need tests written to make sure the libs are loadable
alex88 has joined #ruby
<bradland> the stdlib is installed along-side ruby
skmp___ is now known as skmp
<nickjj> bradland, don't you need certain build deps to compile ruby tho
gsd has joined #ruby
alex88 has quit [Client Quit]
<bradland> that's not the same as the stdlib
<nickjj> for example the gdbm lib in the stdlib
cpruitt has quit [Quit: cpruitt]
<bradland> ruby is broken in to two parts: core and stdlib
<jhass> tk and openssl are the only ones, no?
<nickjj> you won't be able to use this without libgdbm-dev
<nickjj> (just guessing here
<nickjj> jhass, i really don't know. i was going to brute force it
roger_rabbit has quit [Changing host]
roger_rabbit has joined #ruby
<nickjj> that's the list i have atm which was the result of gooling around and looking at a few ruby build tools
<bradland> nickjj: system deps will not be the same as what's in ruby's stdlib, so listing the stdlib won't get you what you need, i don't think
<jhass> >> Dir["#{RbConfig::CONFIG['rubylibdir']}/**/*.rb"]
<eval-in_> jhass => ["/execpad/interpreters/ruby-2.2.0/lib/ruby/2.2.0/cmath.rb", "/execpad/interpreters/ruby-2.2.0/lib/ruby/2.2.0/csv.rb", "/execpad/interpreters/ruby-2.2.0/lib/ruby/2.2.0/matrix.rb", "/execpad/interpreter ... (https://eval.in/243367)
<bradland> oh, i think i know what you're trying to do, you want to iterate over those and require them
<bradland> look for failures
<jhass> nickjj: I'd be interested if you find anything beyond tk and openssl
<bradland> the chruby install page has a great list of system deps for various operating systems
mikepack has joined #ruby
<bradland> fiddle, for example, wraps libffi
<bradland> wouldn't that be a dep? jhass
<jhass> mmh, right libffi
sambao21 has quit [Quit: Computer has gone to sleep.]
<nickjj> bradland, yeah, i planned to loop+require em
<nickjj> and i did use chruby as a guide for the initial list
Azure has quit [Ping timeout: 245 seconds]
<nickjj> but some of those libs are probably able to be removed from the system once you compile ruby? i don't know which ones
<bradland> if you use those deps from chruby, i'd be amazed if you found anything else
<nickjj> so i planned to write the require test and removing them 1 by 1
kalz has joined #ruby
<nickjj> *start removing
Trynemjoel2 has joined #ruby
<bradland> the build stuff, i bet you could
sambao21 has joined #ruby
<bradland> when you deploy a ruby app using docker, are the gem's pre-built?
<bradland> or vendored with the app some how?
sambao21 has quit [Client Quit]
shime has joined #ruby
<bradland> gems with native extensions would seem to be an issue to me
<nickjj> it's all baked into an image
bashusr has quit [Read error: Connection reset by peer]
<nickjj> but your app would use a ruby base image (docker works based on layers)
<bradland> say, for example, your app requires the mysql2 gem.
<nickjj> so it's beneficial to have the smallest possible footprint on your base ruby image
<bradland> typical ruby deployment would be for bundler to compile the gems as part of deployment.
<nickjj> right, then you would install libmysql-dev or whatever it is in your app's container
<bradland> the compile is, just like anything else, architecture and system dependent
<bradland> i see
<bradland> but at another layer
<nickjj> your app's container would "use" the base ruby one
<bradland> not the base
lw has quit [Quit: s]
arup_r has joined #ruby
lw has joined #ruby
zarubin has joined #ruby
<nickjj> i don't think chruby will install libmysqlclient-dev by default for you right
<nickjj> if you wanted to support that later you would apt/whatever install it and then gem install mysql
<bradland> right
sambao21 has joined #ruby
_waltertv has quit [Quit: Leaving...]
<bradland> chruby is pretty tight. it only installs what's needed.
<nickjj> yeah in this case ruby was compiled before you made a decision to install mysql
Trynemjoel has quit [Ping timeout: 272 seconds]
<nickjj> so it's fine in the end -- the docker layers will work the same way, it would be up to your app's container to install the mysqlclient package
jerius has quit []
em0ral has quit []
bashusr has joined #ruby
bashusr has quit [Changing host]
bashusr has joined #ruby
lw has quit [Ping timeout: 256 seconds]
zarubin has quit [Ping timeout: 272 seconds]
marr has quit [Ping timeout: 255 seconds]
arup_r has quit [Quit: Leaving.]
thsig has joined #ruby
arup_r has joined #ruby
qhartman has quit [Quit: Ex-Chat]
rbennacer has joined #ruby
sambao21 has quit [Quit: Quitter]
sigurding has quit [Quit: sigurding]
mikedugan has joined #ruby
meschi has quit [Ping timeout: 276 seconds]
yokel has quit [Ping timeout: 240 seconds]
mikedugan has left #ruby ["Textual IRC Client: www.textualapp.com"]
taiansu has joined #ruby
gattie has joined #ruby
<waxjar> what are the best practices for handling signals in a library?
<waxjar> rescueing SignalException and re-raising it?
ash_m has joined #ruby
iamninja has quit [Quit: ZZZzzz…]
wallerdev has joined #ruby
oleo__ is now known as oleo
<ash_m> is a lambda literal such as "succ = ->(x){ x+1 }" in ruby the same as a named function expression in JS? "var succ = function(x){ x+1; }" ?
rpag has quit [Quit: Leaving]
TheNet has quit [Remote host closed the connection]
cpruitt has joined #ruby
<waxjar> ash_m: pretty much, only ruby's lambda will complain if you don't give it a correct amount of arguments
<ash_m> waxjar: THANKS!
<waxjar> a proc (proc { |x| x + 1}) doesn't
<ash_m> waxjar: I wasn't expecting to get such a slim answer
<ash_m> waxjar: that was very helpful :)
<ash_m> waxjar: I'm going to take a stab at this without really knowing ruby....
taiansu has quit [Ping timeout: 272 seconds]
metadave_ has joined #ruby
nanoyak has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
<ash_m> waxjar: f = ->(x,y){"F#{x+y+y+x}w"} ... (I may not be using the appropiate words here but) I assume that the double quotes is quoting a string and #{} is a substitution? like PHP "hello $world" ?
pragmatism has joined #ruby
davedev2_ has quit [Ping timeout: 264 seconds]
davedev24_ has joined #ruby
<waxjar> correct
ndrei has quit [Ping timeout: 276 seconds]
<waxjar> string interpolation is the right term
metadave has quit [Ping timeout: 264 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ash_m> mkay, so this MoneyDestop billboard says "FOLLOw" (since the function call at the top says, "f(O,L)"
<ash_m> waxjar: STRING INTERPOLATION! thank you
mikepack_ has joined #ruby
uptownhr has joined #ruby
<waxjar> L would be a constant there, not a character literal. so depends on what the constant references :)
<ash_m> waxjar: hmm?
<ash_m> waxjar: is that defined by the position in the lambda syntax?
<waxjar> actually, that wouldn't run at all, lambda's can't be called like that
rbennacer has quit [Remote host closed the connection]
mwlang has quit [Quit: mwlang]
deric_skibotn has joined #ruby
^wald0 has joined #ruby
<ash_m> waxjar: I see... perhaps the person who conceived the billboard was not proficient
<waxjar> are these excercises ash_m?
<ash_m> waxjar: billboard: http://tinyurl.com/kamc5o9
bashusr has joined #ruby
<ash_m> waxjar: no... it was just a billboard I was interested in
mikepack has quit [Ping timeout: 240 seconds]
<ash_m> waxjar: in general, to pass a string into a function in ruby, you need to quote it right? like, you couldn't just do f(hello, world) right?
maletor has joined #ruby
<waxjar> hmm, strange. ruby's lambda's can only be called using f.call(arguments), l.(arguments) or l[arguments]
<ash_m> waxjar: it would have to be f("hello", "world")
<waxjar> yeah
bronson has joined #ruby
shellfu is now known as shellfu_brb
<ash_m> waxjar: that's definitely lambda syntax on the bottom right?
<waxjar> yeah
JoshGlzBrk has joined #ruby
<ash_m> waxjar: well, that's a little disappointing
<ash_m> waxjar: unless f() can mean something else
<ash_m> waxjar: in any event, do you see what they were going for?
<waxjar> regular methods can be called like that
<ash_m> waxjar: with the tree below the call?
anaeem1 has quit [Remote host closed the connection]
dcarmich has quit [Remote host closed the connection]
anaeem1 has joined #ruby
<waxjar> no idea
bricker has quit [Ping timeout: 255 seconds]
ascarter has joined #ruby
<ash_m> waxjar: arg... this terminology is killing me... I feel like there's a more specific name to this diagram rather than "tree"
shellfu_brb is now known as shellfu
bronson has quit [Ping timeout: 245 seconds]
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
lampd1 has joined #ruby
<ash_m> "bubble flow chart" maybe
djbkd has joined #ruby
towski_ has joined #ruby
<ash_m> waxjar: anyway, does the "bubble flow chart" look like something that could define a class? (I dunno what it's called in Ruby)
marens has quit [Remote host closed the connection]
blizzy has joined #ruby
gsd has quit [Ping timeout: 245 seconds]
kaspertidemann has quit []
metadave_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
anaeem1 has quit [Ping timeout: 272 seconds]
metadave has joined #ruby
porfa has quit [Ping timeout: 252 seconds]
CpuID has joined #ruby
CpuID has joined #ruby
marens has joined #ruby
<waxjar> nah, not really. i'm guessing it's some sort of fancy data structure describing a twitter handle or somehting?
gsd has joined #ruby
djbkd has quit [Ping timeout: 272 seconds]
Azure has joined #ruby
PanzerModern has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 245 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
pauly_oc has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ash_m> waxjar: probably
<ash_m> waxjar: maybe if it's a generic flow chart and each bubble describes an option, like how options on this flow chart are "y" and "n" http://en.wikipedia.org/wiki/Tree_sort#mediaviewer/File:Binary_tree_sort(2).png
<ash_m> waxjar: which would make the first point "the beginning of a process"
seal has joined #ruby
zarubin has joined #ruby
fandi has quit [Ping timeout: 276 seconds]
marens has quit [Quit: No Ping reply in 180 seconds.]
ixti has joined #ruby
^wald0_ has joined #ruby
El3k0n has joined #ruby
^wald0 has quit [Ping timeout: 264 seconds]
^wald0_ is now known as ^wald0
nfk has quit [Ping timeout: 240 seconds]
<waxjar> aah, i think i get it
<ash_m> waxjar: yeah?
<ash_m> waxjar: also... is a "proc" a function?
bashusr has quit [Read error: Connection reset by peer]
El3k0n has quit [Remote host closed the connection]
<waxjar> they're very similar to lambda's only they don't care about the amount of arguments (like javascript's function)
arup_r has quit [Quit: Leaving.]
athan has quit [Ping timeout: 265 seconds]
<waxjar> and return works different in lambda and proc, but it's really not important
<waxjar> focus on the tree :)
<ash_m> waxjar: well, I am reading up on "the uniary &" ... maybe I'm going down the wrong road
jack_rabbit has joined #ruby
greenbagels has quit [Read error: Connection reset by peer]
nfk has joined #ruby
ixti has quit [Ping timeout: 245 seconds]
jeremati_ has joined #ruby
pauly_oc has joined #ruby
marens has joined #ruby
rbennacer has joined #ruby
rbennacer has quit [Remote host closed the connection]
kyb3r_ has quit [Read error: Connection reset by peer]
whoisjake has joined #ruby
rbennacer has joined #ruby
kyb3r_ has joined #ruby
<ash_m> "if object is not a Proc, it (the unary ampersand) first calls #to_proc on the object and then converts it into a block."
deepy has joined #ruby
<ash_m> waxjar: is this the yellow brick road?
bashusr has joined #ruby
dubyah has quit [Remote host closed the connection]
<waxjar> nope, it really isn't a ruby-centric thing :)
jerematic has quit [Ping timeout: 255 seconds]
<ash_m> waxjar: hmm... are & and @ relative to twitter?
<waxjar> i won't spoil your fun :p
fandi has joined #ruby
<ash_m> waxjar: I appreciate that; do I sound like someone who can solve this with my limited knowledge of ruby?
davedev2_ has joined #ruby
<ash_m> waxjar: was I at least right about "FOLLOw" ?
davedev2_ has quit [Read error: Connection reset by peer]
<waxjar> yeah that part's right
davedev2_ has joined #ruby
davedev24_ has quit [Ping timeout: 265 seconds]
<ash_m> waxjar: perhaps D-&-M is supposed to be &MD (money desktop)?
jordanm has quit [Ping timeout: 245 seconds]
<ash_m> or @M&D = @MoneyDesktop
jcdesimp has quit [Remote host closed the connection]
anaeem1 has joined #ruby
bashusr has quit [Ping timeout: 276 seconds]
chrishough has joined #ruby
Ankhers has quit [Ping timeout: 250 seconds]
stunder has joined #ruby
DadoCe has joined #ruby
claymore has quit [Quit: Leaving]
bashusr has joined #ruby
sivoais has joined #ruby
<ash_m> waxjar: I don't get the right branch at all...
<waxjar> walk them all
<ash_m> waxjar: into "O" or "L" ?
<ash_m> waxjar: (or x or y respectively)
djbkd has joined #ruby
Hijiri has quit [Ping timeout: 272 seconds]
aclearman037 has quit [Quit: I'm out!]
zorak8 has joined #ruby
seal has quit [Quit: Ex-Chat]
DadoCe has quit [Ping timeout: 272 seconds]
ixti has joined #ruby
benatkin has joined #ruby
jordanm has joined #ruby
jordanm has quit [Changing host]
jordanm has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lxsameer has quit [Quit: Leaving]
djbkd has quit [Ping timeout: 265 seconds]
rpag has joined #ruby
blackoperat has quit [Ping timeout: 264 seconds]
Trynemjoel2 has quit [Ping timeout: 256 seconds]
patric100e99 has joined #ruby
nisstyre has joined #ruby
nisstyre has quit [Changing host]
<ash_m> waxjar: is it something like FR33Rw?
davedev2_ has quit [Ping timeout: 245 seconds]
<patric100e99> hey guys, is there a way to get ahold of a method as a variable? like def foo(bar); end; ... x = foo; x('bar')
<ash_m> waxjar: (or is that part of the equation?
<shevy> patric100e99 there is method()
<waxjar> patric100e99: you can use #method(:name) to get a Method object
Trynemjoel has joined #ruby
<patric100e99> ah yeah i see, and then i can do .call on it
<patric100e99> ok cool thanks
allcentury has quit [Ping timeout: 252 seconds]
davedev24_ has joined #ruby
<apeiros> patric100e99: note that often using the name is good enough
<waxjar> >> x "left to right".method(:upcase); x.call
<eval-in_> waxjar => undefined method `x' for main:Object (NoMethodError) ... (https://eval.in/243397)
<apeiros> patric100e99: see Object#public_send
greenbagels has joined #ruby
<waxjar> imagine an = there
deepy has quit [Changing host]
deepy has joined #ruby
<apeiros> >> name = :upcase; "foo bar".public_send(name)
<eval-in_> apeiros => "FOO BAR" (https://eval.in/243399)
<apeiros> (Symbol is much more lightweight than Method)
decoponio has quit [Read error: Connection reset by peer]
kenneth has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<patric100e99> hmm.. yeah this isn't really working out.. What I am trying to do is use subject in RSpec so that I can do: subject { described_class.foo }.. and then in my tests I can do expect(subject('bar value')).to eq 'something'
decoponio has joined #ruby
<patric100e99> if I use method, I am going to have to do subject.call('bar value')
bonhoeffer has quit [Quit: bonhoeffer]
<patric100e99> which kind of defeats the whole purpose of what I was going for
<patric100e99> i may as well just call the actual method name then
JDiPierro has quit [Remote host closed the connection]
<shevy> hehehe
brb3 has quit [Quit: <.<]
ta_ has joined #ruby
<patric100e99> hehehe!
bonhoeffer has joined #ruby
werelivinginthef has joined #ruby
<jheg> o/
mikepack_ has quit [Remote host closed the connection]
<jheg> How can I display the number of days, hours and minutes from Time.now - a datetime stored in a database?
postmodern has joined #ruby
<jheg> So basically I thoght something like Time.now - todo.deadline would work but nope
<shevy> huh
<shevy> if you have a date
<shevy> you can display it
<jheg> todo.deadline stores a date and time
<shevy> >> Time.now.strftime(' %B %Y')
<eval-in_> shevy => " January 2015" (https://eval.in/243401)
evanjs has quit [Remote host closed the connection]
<jheg> sorry i mean I wanted to say something like ‘this is due in 1 day, 2 hours and 23 minutes’
cuppscakes has joined #ruby
<shevy> >> (Time.now + 23 * 60 + 2 * 60 * 60 + 24 * 60 * 60).strftime(' %B %Y %d.%m.%Y')
<eval-in_> shevy => " January 2015 18.01.2015" (https://eval.in/243402)
<shevy> I didn't check if my calculation is right
<terrellt> https://github.com/peleteiro/ruby-duration Something like that
<terrellt> Or just write it locally and do the math.
ixti has quit [Ping timeout: 264 seconds]
CpuID has quit [Quit: This computer has gone to sleep]
<terrellt> If you subtract two times from each other I believe you get the seconds between them.
cuppscakes has quit [Max SendQ exceeded]
<otertore> Time#- will give you an integer
Zai00 has joined #ruby
cuppscakes has joined #ruby
<jheg> cheers guys
Dopagod has quit [Ping timeout: 245 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ta_ has quit [Ping timeout: 265 seconds]
cuppscakes has quit [Max SendQ exceeded]
cuppscakes has joined #ruby
cuppscakes has quit [Max SendQ exceeded]
freerobby has quit [Quit: Leaving.]
cuppscakes has joined #ruby
yfeldblum has joined #ruby
Musashi007 has quit [Quit: Musashi007]
cuppscakes has quit [Max SendQ exceeded]
mikepack has joined #ruby
Trynemjoel has quit [Ping timeout: 272 seconds]
Musashi007 has joined #ruby
Musashi007 has quit [Client Quit]
<ash_m> waxjar: I give up, none of these values as variables for O and L make any sensible word or combination of words to me (granted, it would appear as though this should still be f.call(O,L)
cuppscakes has joined #ruby
longfeet has joined #ruby
Trynemjoel has joined #ruby
zchee has joined #ruby
cuppscakes has quit [Max SendQ exceeded]
<waxjar> ash_m: the tree in combination with "Follow" forms a sentence
cuppscakes has joined #ruby
TheNet has joined #ruby
<otertore> >> n=123456; "Due in #{n=n.divmod(86400);n[0]} days, #{n=n[1].divmod(3600);n[0]} hours, #{n=n[1].divmod(60);n[0]} minutes and #{n[1]} seconds"
<eval-in_> otertore => "Due in 1 days, 10 hours, 17 minutes and 36 seconds" (https://eval.in/243403)
<ash_m> waxjar: "follow &D &M @M DT3 DTR3" ?
<waxjar> almost
cuppscakes has quit [Max SendQ exceeded]
<ash_m> waxjar: perhaps I do not know twitter well enough to understand this sentence (provided I got it right)
timonv_ has joined #ruby
cuppscakes has joined #ruby
cuppscakes has quit [Max SendQ exceeded]
cuppscakes has joined #ruby
<ash_m> "follow @MD DT3 DTR3" < some anagram of this?
spyderma_ has quit []
cuppscakes has quit [Max SendQ exceeded]
lessless has joined #ruby
revoohc has quit [Quit: revoohc]
<ash_m> follow @MD TR33D?
cuppscakes has joined #ruby
<lessless> hello folks! what books new are books are there to read except Clean Ruby?
<shevy> wtf
djbkd has joined #ruby
thumpba has quit [Remote host closed the connection]
<terrellt> ^
<ash_m> waxjar: ^ (in case shevy was perplexed)
cuppscakes has quit [Max SendQ exceeded]
<waxjar> almost ash_m, you'll get it
skj3gg has joined #ruby
cuppscakes has joined #ruby
<ash_m> waxjar: will I?! o.O;
whoisjake has quit []
<lessless> what new books are there to read?
CrazyM4n has joined #ruby
scripore has joined #ruby
mac__ has joined #ruby
cuppscakes has quit [Max SendQ exceeded]
<ash_m> waxjar: is "follow @MD ..." correct?
Xeago has joined #ruby
cuppscakes has joined #ruby
bronson has joined #ruby
cuppscakes has quit [Max SendQ exceeded]
cuppscakes has joined #ruby
cuppscakes has quit [Max SendQ exceeded]
blackmesa has joined #ruby
cuppscakes has joined #ruby
cuppscakes has quit [Max SendQ exceeded]
nanoyak has quit [Quit: Computer has gone to sleep.]
uptownhr has quit [Quit: uptownhr]
marens has quit [Remote host closed the connection]
cuppscakes has joined #ruby
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davidhq has quit [Quit: Textual IRC Client: www.textualapp.com]
cuppscakes has quit [Max SendQ exceeded]
gregf_ has quit [Ping timeout: 240 seconds]
it0a has quit [Quit: WeeChat 1.1]
cuppscakes has joined #ruby
ixti has joined #ruby
bronson has quit [Ping timeout: 276 seconds]
cuppscakes has quit [Max SendQ exceeded]
nanoyak has joined #ruby
cuppscakes has joined #ruby
josephndenton has quit [Ping timeout: 246 seconds]
mobiGeek has quit [Quit: Nettalk6 - www.ntalk.de]
marens has joined #ruby
cuppscakes has quit [Max SendQ exceeded]
duggiefresh has quit []
cuppscakes has joined #ruby
kaspertidemann has joined #ruby
cuppscakes has quit [Max SendQ exceeded]
Dopagod has joined #ruby
DrCode has quit [Ping timeout: 250 seconds]
sivoais has quit [Ping timeout: 240 seconds]
cuppscakes has joined #ruby
Dopagod has quit [Max SendQ exceeded]
cuppscakes has quit [Max SendQ exceeded]
Dopagod has joined #ruby
ixti has quit [Ping timeout: 256 seconds]
Akuma has joined #ruby
Dopagod has quit [Max SendQ exceeded]
cuppscakes has joined #ruby
Dopagod has joined #ruby
cuppscakes has quit [Max SendQ exceeded]
lw has joined #ruby
Dopagod has quit [Max SendQ exceeded]
cuppscakes has joined #ruby
Dopagod has joined #ruby
B1n4r10 has joined #ruby
<ash_m> waxjar: I'm going to chalk this up to ignorance with internet lingo
debill has joined #ruby
cuppscakes has quit [Max SendQ exceeded]
daynaskully has quit [Quit: quit]
cuppscakes has joined #ruby
lw has quit [Read error: Connection reset by peer]
bluOxigen has quit [Ping timeout: 256 seconds]
<ash_m> waxjar: like, does D&M "deep and meaningful" mean anything to this?
mloveless has quit [Ping timeout: 245 seconds]
lw has joined #ruby
cuppscakes has quit [Max SendQ exceeded]
<waxjar> do you want me to pm you the answer ash_m?
lw has quit [Read error: Connection reset by peer]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
adriancb has quit [Remote host closed the connection]
cuppscakes has joined #ruby
lw has joined #ruby
<ash_m> waxjar: erm... I'm kinda over it, so yes
DrCode has joined #ruby
diegoviola has quit [Read error: Connection reset by peer]
<ash_m> waxjar: (I'm surprised you find this worthy enough of a puzzle to want to conceal the answer from others)
uptownhr has joined #ruby
dman777_alter has quit [Quit: Lost terminal]
<waxjar> heh
Treyt22 has quit [Ping timeout: 264 seconds]
mloveless has joined #ruby
Sawbones_ has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
zchee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
metadave has quit [Quit: Textual IRC Client: www.textualapp.com]
metadave has joined #ruby
zchee has joined #ruby
m8 has quit [Quit: Sto andando via]
zchee has quit [Client Quit]
elfuego has joined #ruby
tier has quit [Remote host closed the connection]
josephndenton has joined #ruby
ta_ has quit [Ping timeout: 246 seconds]
JoshGlzBrk has quit [Quit: Textual IRC Client: www.textualapp.com]
uptownhr has quit [Quit: uptownhr]
DadoCe has joined #ruby
beef-wellington has quit [Read error: Connection reset by peer]
neoxquick has quit [Read error: Connection reset by peer]
harushimo has joined #ruby
<harushimo> I have a quick question
DadoCe has quit [Client Quit]
tier has joined #ruby
<harushimo> I know rvm has a separate room
beef-wellington has joined #ruby
Xeago_ has joined #ruby
<harushimo> my question requires me to activate my ruby 2.2 in ubuntu. I used rvm to download it
<harushimo> I want envoke the package
conniemj has joined #ruby
sivoais has joined #ruby
taiansu has joined #ruby
jheg has quit [Quit: jheg]
lw has quit [Read error: Connection reset by peer]
lw has joined #ruby
<jhass> harushimo: Please do not crosspost without at least telling so. Experience shows that people don't bother to inform the other channels of provided solutions, therefore it is considered rude.
gizless is now known as gizmore
Xeago has quit [Ping timeout: 265 seconds]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
beef-wellington has quit [Ping timeout: 272 seconds]
DadoCe has joined #ruby
taiansu has quit [Ping timeout: 240 seconds]
kstuart has quit [Remote host closed the connection]
baweaver has quit [Read error: Connection reset by peer]
Hijiri has joined #ruby
timonv_ has quit [Remote host closed the connection]
kstuart has joined #ruby
baweaver has joined #ruby
conniemj has quit [Read error: Connection reset by peer]
conniemj_ has joined #ruby
livingstn has quit []
MarkPaulFletcher has quit []
mrmargolis has quit [Remote host closed the connection]
timonv_ has joined #ruby
werelivinginthef has quit [Remote host closed the connection]
baweaver has quit [Ping timeout: 245 seconds]
<B1n4r10> harushimo please talks about Ruby not of RVM
juanpablo______ has quit [Quit: (null)]
<harushimo> I was in rvm
JoshGlzBrk has joined #ruby
<harushimo> i got it working
iamninja has joined #ruby
<harushimo> sorry, ubuntu has habit not keeping updated ruby packages. I was installing it from source
s2013 has quit [Ping timeout: 272 seconds]
x1337807x has joined #ruby
conniemj_ has quit [Read error: Connection reset by peer]
conniemj_ has joined #ruby
conniemj_ has quit [Client Quit]
<B1n4r10> harushimo the best practice if you use Ruby in Ubuntu servers for production enviroment. Is that you compile it on your own without using handler versions
dfinninger has quit [Remote host closed the connection]
<B1n4r10> harushimo or managers
<harushimo> what do you mean by handler versions?
sinkensabe has joined #ruby
<B1n4r10> harushimo Rbenv, RVM, etc...
<harushimo> why not?
conniemj_ has joined #ruby
<harushimo> if you are talking about complete source, I never done it
DrShoggoth has quit [Quit: Leaving]
cuppscakes has quit [Quit: Disconnected]
<B1n4r10> harushimo if you will not use different applications with different versions of ruby is recommended not to have a manager versions
<B1n4r10> harushimo compile ruby on a server is very easy
<harushimo> B1n4r10: interesting never heard of it
uptownhr has joined #ruby
mikepack has quit [Remote host closed the connection]
<harushimo> i'm trying that now on my vm
<harushimo> thank you
patronus has joined #ruby
LikeGecko has joined #ruby
Ankhers has joined #ruby
LikeGecko is now known as cats
pdoherty has quit [Remote host closed the connection]
cats is now known as Snowstormer
<harushimo> is there a difference between the manager version code and ruby source code? I thought they would be same
<B1n4r10> harushimo this one of point because you dont install versions manager in production http://mike.bailey.net.au/2011/07/rvm-in-production/ your welcome
Snowstormer is now known as cats
Sawbones_ has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
<B1n4r10> harushimo It's the same as long as you install a stable version. Anyway you are giving the atmosphere of ruby an extra layer of abstractions and roads
icebourg has quit []
conniemj_ has quit [Quit: (null)]
commmmodo has joined #ruby
freerobby has joined #ruby
<harushimo> B1n4r10: interesting. thanks for the education
supergiel has joined #ruby
bronson has joined #ruby
<harushimo> B1n4r10: I was install the stable version
lw has quit [Quit: s]
freerobby has quit [Client Quit]
pietr0 has quit [Quit: pietr0]
thsig has quit [Ping timeout: 272 seconds]
zchee has joined #ruby
<B1n4r10> harushimo your welcome. thanks for reading
eytanfb has joined #ruby
tier has quit [Remote host closed the connection]
dotix has quit [Quit: Leaving]
sklik has quit [Remote host closed the connection]
<harushimo> B1n4r10: the education is important. Unless the practices are commuciated how you know. I have to thank you
conniemj has joined #ruby
<harushimo> B1n4r10: I mean how would you know
<supergiel> Hi everyone, I'm a prgramming student who is knowlegable in several languages, NOT Ruby. I plan to teach ruby programming to a friend in a couple of hours does anyone have some recources for getting strted
<harushimo> look up learn ruby the hard way
<harushimo> great book
josephndenton has quit [Ping timeout: 245 seconds]
<supergiel> Check, great
bronson has quit [Ping timeout: 246 seconds]
<rpag> supergiel, you don't know ruby but you're going to teach someone ruby?
<GaryOak_> just learn python and then change it a little bit
<supergiel> This person has no knowledge of programming
lw has joined #ruby
<harushimo> supergiel: that book will be a good start
treehug88 has quit []
<supergiel> What about ruby setup and installation for linux and windows
zarubin has quit [Remote host closed the connection]
tier has joined #ruby
<supergiel> Is it similar to python in that you install an interpreter, and test your code in that for windows
giuseppesolinas has quit [Quit: This computer has gone to sleep]
giuseppesolinas_ has quit [Quit: This computer has gone to sleep]
<GaryOak_> supergiel: yes
<harushimo> supergiel: python and ruby are very similar. I picked up both of those languages
<supergiel> Awesome
conniemj has quit [Client Quit]
longfeet has quit [Read error: Connection reset by peer]
<supergiel> I'm good with pythong so I'm pretty confident about it
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
<supergiel> Thanks everyone
<supergiel> You == Life Saver
^wald0 has quit [Quit: ^wald0]
klmlfl_ has quit [Ping timeout: 264 seconds]
hmsimha has quit [Ping timeout: 252 seconds]
workmad3 has joined #ruby
tier has quit [Ping timeout: 245 seconds]
LouisRoR has quit [Ping timeout: 245 seconds]
conniemj has joined #ruby
seal has joined #ruby
conniemj has quit [Read error: Connection reset by peer]
conniemj has joined #ruby
carvantes has joined #ruby
freerobby has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
digifiv5e has joined #ruby
digifiv5e is now known as Guest78582
enebo has quit [Quit: enebo]
bonhoeffer has quit [Quit: bonhoeffer]
seal has quit [Client Quit]
Trynemjoel has joined #ruby
seitensei has joined #ruby
seitensei has joined #ruby
jobewan has quit [Quit: Leaving]
shellfu is now known as shellfu_afk
supergiel has quit [Ping timeout: 276 seconds]
eytanfb has quit [Ping timeout: 252 seconds]
eytanfb has joined #ruby
codecop has quit [Remote host closed the connection]
cpruitt has quit [Quit: cpruitt]
anaeem1 has quit [Remote host closed the connection]
gattie has quit [Quit: Leaving...]
anaeem1 has joined #ruby
chrishou_ has joined #ruby
jamgood96 has quit [Quit: Leaving...]
conniemj_ has joined #ruby
conniemj has quit [Read error: Connection reset by peer]
zchee has quit [Quit: Textual IRC Client: www.textualapp.com]
jamgood96 has joined #ruby
conniemj_ has quit [Read error: Connection reset by peer]
seal has joined #ruby
JDiPierro has joined #ruby
Sawbones has joined #ruby
Ankhers has quit [Ping timeout: 250 seconds]
zchee has joined #ruby
josephndenton has joined #ruby
anaeem1 has quit [Ping timeout: 276 seconds]
conniemj_ has joined #ruby
bitflipping has joined #ruby
TheKruex has joined #ruby
charliesome has joined #ruby
kirun has quit [Quit: Client exiting]
Synthead has joined #ruby
<jamgood96> Trying to use the `rails-perftest` gem and getting an error `cannot load such file -- test_helper`
josephndenton has quit [Ping timeout: 245 seconds]
<B1n4r10> jamgood96 Please talks about Ruby not gems or Rails
jamgood96 has left #ruby ["Leaving..."]
Heskie has quit []
Xeago has joined #ruby
giuseppesolinas has joined #ruby
shellfu_afk is now known as shellfu
giuseppesolinas_ has joined #ruby
lampd1 has quit [Remote host closed the connection]
Ankhers has joined #ruby
mrevd has joined #ruby
mrevd has left #ruby [#ruby]
hasB4K has quit [Read error: Connection reset by peer]
Hijiri has quit [Quit: WeeChat 1.0.1]
chipotle has quit [Quit: cheerio]
LouisRoR has joined #ruby
ascarter has joined #ruby
Xeago_ has quit [Ping timeout: 276 seconds]
Deele has quit [Ping timeout: 244 seconds]
hasB4K has joined #ruby
hasB4K has joined #ruby
Xeago has quit [Remote host closed the connection]
pauly_oc has quit [Ping timeout: 264 seconds]
conniemj_ has quit [Quit: (null)]
thumpba has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thumpba has quit [Remote host closed the connection]
thumpba has joined #ruby
ursooperduper has quit [Quit: Textual IRC Client: www.textualapp.com]