apeiros changed the topic of #ruby to: Ruby 2.1.0-p0; 2.0.0-p353; 1.9.3-p484: http://ruby-lang.org|| Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
meatherly has joined #ruby
apeiros has quit [Remote host closed the connection]
b00stfr31k has quit [Ping timeout: 252 seconds]
apeiros has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
byprdct has joined #ruby
b00stfr3ak has joined #ruby
vpretzel has joined #ruby
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
mikemar10 has quit []
senj has quit [Quit: Textual IRC Client: www.textualapp.com]
bean has joined #ruby
rootshift has joined #ruby
DrShoggoth has quit [Quit: Leaving]
brennanMKE has joined #ruby
SiliconG has joined #ruby
SiliconG has quit [Max SendQ exceeded]
asteros has joined #ruby
asteros has quit [Client Quit]
SiliconG has joined #ruby
Megtastique has quit []
iamsean has quit [Quit: iamsean]
petey has quit [Ping timeout: 264 seconds]
yasushi has quit [Remote host closed the connection]
simoz111 has joined #ruby
b00stfr3ak has quit [Read error: Connection reset by peer]
jailbot has joined #ruby
george2 has quit [Remote host closed the connection]
simoz112 has joined #ruby
george2 has joined #ruby
bricker has joined #ruby
aryaching has joined #ruby
simoz111 has quit [Ping timeout: 265 seconds]
jrhorn424 is now known as zz_jrhorn424
rdevilla has quit [Ping timeout: 252 seconds]
motto has quit [Quit: Sto andando via]
aryaching_ has quit []
fgo has joined #ruby
Hanmac has joined #ruby
bricker has quit [Client Quit]
senayar has joined #ruby
mikepack has quit [Remote host closed the connection]
hiall has joined #ruby
griffindy has quit [Quit: Computer has gone to sleep.]
Hanmac1 has quit [Ping timeout: 272 seconds]
griffindy has joined #ruby
<REdOG> i get an undefined reference to `krb5_enctype_to_string' error trying to do gem install rkerberos
Wolland has quit [Remote host closed the connection]
<bnagy> missing C headers?
senayar has quit [Ping timeout: 252 seconds]
deens has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
Fire-Dragon-DoL has joined #ruby
hamakn has quit [Remote host closed the connection]
pr00t has quit [Ping timeout: 272 seconds]
pr00t has joined #ruby
wildroman2 has joined #ruby
SiliconG has quit [Ping timeout: 272 seconds]
Noldorin has joined #ruby
SiliconG has joined #ruby
SiliconG has quit [Max SendQ exceeded]
marr has quit [Ping timeout: 245 seconds]
SiliconG has joined #ruby
Brolen has joined #ruby
tyl has joined #ruby
deens has quit [Ping timeout: 252 seconds]
cashnguns has joined #ruby
predator217 has joined #ruby
drdoom has joined #ruby
wildroman2 has quit [Ping timeout: 272 seconds]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
drdoom has quit [Read error: Connection reset by peer]
[krisbulman] is now known as krisbulman
drdoom has joined #ruby
bricker has joined #ruby
Al___ has quit [Quit: Al___]
drdoom has quit [Read error: Connection reset by peer]
sailias has quit [Ping timeout: 245 seconds]
predator117 has quit [Ping timeout: 272 seconds]
hiall has quit [Quit: hiall]
snuffeluffegus has joined #ruby
Virtualize|away has quit [Quit: Leaving...]
baroquebobcat has quit [Quit: baroquebobcat]
enebo has quit [Quit: enebo]
iajrz has quit [Remote host closed the connection]
kitak has quit [Remote host closed the connection]
griffindy has quit [Quit: Computer has gone to sleep.]
sarlalian has quit [Quit: WeeChat 0.4.0]
JBreit has quit [Ping timeout: 260 seconds]
standyro2 has quit [Ping timeout: 252 seconds]
CaptainJet has quit []
MrZYX is now known as MrZYX|off
tauebel has joined #ruby
Megtastique has joined #ruby
fgo has quit [Remote host closed the connection]
zz_karupanerura is now known as karupanerura
kobain has quit [Read error: Connection reset by peer]
sdwrage has quit [Quit: This computer has gone to sleep]
rdevilla has joined #ruby
kobain has joined #ruby
JBreit has joined #ruby
blsuffolk has quit [Remote host closed the connection]
standyro2 has joined #ruby
krisbulman is now known as krisbulman|afk
ndrei has quit [Ping timeout: 264 seconds]
tylersmith has quit [Remote host closed the connection]
tauebel has quit [Ping timeout: 272 seconds]
rdevilla has quit [Read error: Operation timed out]
pietr0 has quit [Quit: pietr0]
srji_ has joined #ruby
sarlalian has joined #ruby
RaCx has quit [Ping timeout: 245 seconds]
coca_rails has quit [Remote host closed the connection]
RaCx has joined #ruby
Virtualize|away has joined #ruby
srji has quit [Ping timeout: 252 seconds]
coca_rails has joined #ruby
mikepack has joined #ruby
shevy has quit [Ping timeout: 245 seconds]
griffindy has joined #ruby
coca_rai_ has joined #ruby
saarinen has quit [Quit: saarinen]
SilentHobo has joined #ruby
_maes_ has quit [Ping timeout: 253 seconds]
Xiti has quit [Ping timeout: 252 seconds]
coca_rails has quit [Ping timeout: 240 seconds]
Wolland has joined #ruby
byprdct has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dkamioka has joined #ruby
Brolen has quit [Remote host closed the connection]
Hobogrammer_ has quit [Ping timeout: 245 seconds]
Brolen has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
kitak has joined #ruby
jailbot is now known as jailb0t
jailb0t is now known as jailbot
Wolland has quit [Ping timeout: 272 seconds]
hamakn has joined #ruby
robustus has quit [Ping timeout: 245 seconds]
rljohnsn has quit [Quit: Leaving.]
mojjojo has quit [Quit: mojjojo]
hamakn has quit [Remote host closed the connection]
Brolen has quit [Ping timeout: 248 seconds]
yfeldblum has quit [Remote host closed the connection]
cephalopod has joined #ruby
robustus has joined #ruby
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
meatherly has quit [Remote host closed the connection]
yfeldblum has joined #ruby
meatherly has joined #ruby
meatherly has quit [Remote host closed the connection]
shevy has joined #ruby
meatherly has joined #ruby
mojjojo has joined #ruby
pietr0 has joined #ruby
<pontiki> g'day
<pontiki> Missing C Headers is the name of my shanty band
SilentHobo is now known as Hobogrammer
sparrovv has quit [Remote host closed the connection]
meatherly has quit [Read error: Connection reset by peer]
meatherly has joined #ruby
moosya has joined #ruby
tkuchiki has joined #ruby
mojjojo has quit [Client Quit]
soba has joined #ruby
chipotle_ has joined #ruby
Xeago has quit [Remote host closed the connection]
Megtastique has quit []
VTLob has quit [Quit: VTLob]
jonno11 has joined #ruby
chipotle has quit [Ping timeout: 245 seconds]
larissa has quit [Quit: Leaving]
Brolen has joined #ruby
Brolen has quit [Client Quit]
Vivekananda has joined #ruby
Hobogrammer_ has joined #ruby
phipes has joined #ruby
SiliconG has quit [Ping timeout: 272 seconds]
mando has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
dx7 has joined #ruby
mzdravkov has left #ruby [#ruby]
nanothief has quit [Ping timeout: 252 seconds]
Xiti has joined #ruby
tharindu has joined #ruby
Hobogrammer has quit [Ping timeout: 264 seconds]
fgo has joined #ruby
jailbot has quit [Remote host closed the connection]
hamakn has joined #ruby
iamdoo2 has joined #ruby
meatherly has quit [Remote host closed the connection]
dx7 has quit [Ping timeout: 245 seconds]
Red_Onyx has joined #ruby
<dorei> is there a more beautiful way to write: a && (b = a)
<dorei> ?
<pontiki> cursive?
jtdowney has joined #ruby
Kricir has joined #ruby
<dorei> cursive?
<pontiki> there is b &&= a, but i never remember how that plays out excactly
<pontiki> it's sort of the analog to ||= only if the precedant is true
<dorei> i think it expands to b && (b=a)
<pontiki> truthy, i mean
<pontiki> i think you are right
iamdoo2 has quit [Ping timeout: 272 seconds]
<dorei> b=a if a
<dorei> looks nice too
Vitor has quit [Disconnected by services]
deens has joined #ruby
<pontiki> *nod* i think that last is more understandable to me
chipotle_ has quit [Ping timeout: 245 seconds]
phipes has quit [Remote host closed the connection]
Vitor_ has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
bricker has quit [Ping timeout: 264 seconds]
davy_ has quit [Remote host closed the connection]
deens has quit [Read error: Operation timed out]
jailbot has joined #ruby
pietr0_ has joined #ruby
Kricir_ has joined #ruby
fgo has quit [Remote host closed the connection]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
bleak has quit [Ping timeout: 252 seconds]
clamstar has joined #ruby
blaz3rz has quit [Remote host closed the connection]
pietr0 has quit [Ping timeout: 252 seconds]
pietr0_ is now known as pietr0
bleak has joined #ruby
jailbot has quit [Read error: Connection reset by peer]
Kricir has quit [Ping timeout: 248 seconds]
Kricir__ has joined #ruby
jailbot has joined #ruby
brennanMKE has quit [Remote host closed the connection]
sdwrage has joined #ruby
jrobertfox has joined #ruby
pr00t has quit [Ping timeout: 240 seconds]
slowcon has joined #ruby
nanothief has joined #ruby
Kricir_ has quit [Ping timeout: 272 seconds]
Asher has joined #ruby
Kricir__ has quit [Ping timeout: 252 seconds]
Kricir has joined #ruby
<slowcon> hows it goin guys
jonno11 has quit [Read error: Connection reset by peer]
zeade has quit [Quit: Leaving.]
<Xuisce> good
<slowcon> first time in this channel
robert_ has quit [Quit: Connection reset by traffic clause.]
vlad_starkov has joined #ruby
mrsolo has joined #ruby
sski has quit [Remote host closed the connection]
snuffeluffegus has quit [Quit: Leaving]
sski has joined #ruby
simoz112 has quit [Ping timeout: 248 seconds]
bricker`LA has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
deens has joined #ruby
sski has quit [Ping timeout: 240 seconds]
pr00t has joined #ruby
i_s has quit [Remote host closed the connection]
snath has quit [Ping timeout: 245 seconds]
knigitz has left #ruby [#ruby]
knigitz has joined #ruby
i_s has joined #ruby
i_s has quit [Remote host closed the connection]
<pontiki> i keep dozing off
kevind has quit [Quit: kevind]
mrsolo has left #ruby ["Leaving"]
aspires has quit []
senayar has joined #ruby
Virtualize|away has quit [Quit: Leaving...]
snath has joined #ruby
Wolland has joined #ruby
RoxasShadowRS has quit [Read error: Connection reset by peer]
Hobogrammer_ has quit [Ping timeout: 245 seconds]
aspires has joined #ruby
senayar has quit [Ping timeout: 252 seconds]
<pontiki> derp
mando has quit [Remote host closed the connection]
tyl has quit [Ping timeout: 252 seconds]
mando has joined #ruby
ewnd9_ has joined #ruby
moosya has quit [Remote host closed the connection]
lukec has quit [Quit: lukec]
MattStratton has joined #ruby
<slowcon> derrrppp
SCommette has joined #ruby
mando has quit [Ping timeout: 245 seconds]
bcz has joined #ruby
tauebel has joined #ruby
Naoe-Kanno has quit [Quit: ネウロイを負かさなきゃならないね]
bcz1 has quit [Ping timeout: 260 seconds]
phinfone_ has joined #ruby
reset has quit [Read error: Connection reset by peer]
xcv has quit [Remote host closed the connection]
rezzack has quit [Ping timeout: 245 seconds]
phinfonet has quit [Ping timeout: 245 seconds]
sepp2k has quit [Read error: Connection reset by peer]
Kricir has quit [Ping timeout: 260 seconds]
fgo has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
sdwrage has quit [Quit: This computer has gone to sleep]
Kricir has joined #ruby
jonno11 has joined #ruby
nanothief has quit [Read error: Connection reset by peer]
rismoney has quit [Read error: Operation timed out]
nanothief has joined #ruby
tauebel has quit [Quit: Leaving.]
tauebel has joined #ruby
fedesilva has joined #ruby
iamsean has joined #ruby
Shidash has quit [Ping timeout: 265 seconds]
aspires has quit []
lfox has joined #ruby
deens has quit [Remote host closed the connection]
iamdoo2 has joined #ruby
Voodoofish430 has quit [Quit: Leaving.]
cafhacker has joined #ruby
octoberry has joined #ruby
cafhacker has quit [Client Quit]
meatherly has joined #ruby
tharindu has quit [Quit: Leaving...]
mehlah has quit [Quit: Leaving...]
subbyyy_ has quit [Ping timeout: 260 seconds]
lifestream has joined #ruby
iamdoo2 has quit [Ping timeout: 272 seconds]
centrx has joined #ruby
Virtualize|away has joined #ruby
Kricir_ has joined #ruby
hamakn has quit [Remote host closed the connection]
Kricir has quit [Ping timeout: 252 seconds]
gregoriokusowski has quit [Quit: gregoriokusowski]
<snkcld> if i have x threads which are writing to a file, is it possible for a thread to be interrupted in the middle of a write, thus causing data to be mixed up?
Wolland has quit [Ping timeout: 252 seconds]
freerobby has quit [Quit: Leaving.]
danshultz has joined #ruby
figgleberry has joined #ruby
<pontiki> sure is
<bnagy> just assume yes
freerobby has joined #ruby
blaz3rz has joined #ruby
<bnagy> even if, irl the answer with ruby is probably no
Virtualize|away has quit [Ping timeout: 240 seconds]
<bnagy> well MRI anyways
NaStYdoG has quit [Ping timeout: 252 seconds]
<bnagy> it's a terrible pattern, so just avoid it
<snkcld> rats.
deric_skibotn_ has quit [Ping timeout: 264 seconds]
<snkcld> im trying to export from a database to a csv, and itd be faster if i had more threads
NaStYdoG has joined #ruby
phinfone_ has quit [Quit: exitiing]
NaStYdoG is now known as Guest6065
<pontiki> what sort of database?
<pontiki> it might be faster to just have the database do it
<snkcld> postgresql
<snkcld> the data is pretty complicated, the way its normalized...
<centrx> Use a query
<bnagy> you're going to lose all your time in processing, not in writing
<snkcld> will postgresql use threading? im trying to leverage the fact htat i have 8 cores
<centrx> The database will export a CSV extremely fast
<snkcld> heh, ok that should be good then
<snkcld> extremely fast on one thread is better than slow on 8
figgleberry has quit []
blaz3rz has quit [Ping timeout: 260 seconds]
<bnagy> writing to a single file handle is not really a good showcase for parallelism
<centrx> snkcld, And single threads use multiple cores
<centrx> I don't know what postgresql threading model is
<centrx> But yeah that too, you can't write to the disk faster by having more threads
aryaching has quit [Ping timeout: 272 seconds]
aryaching_ has joined #ruby
lukec has joined #ruby
<snkcld> bnagy: yea good point
gja has joined #ruby
<snkcld> centrx: yea thats true too heh.
<snkcld> was just assuming that via buffering/etc it may help. meh. the postgres export sounds like a good idea anyway
brunops has quit [Ping timeout: 265 seconds]
alvaro_o has quit [Quit: Ex-Chat]
tuttinator has quit [Quit: Linkinus - http://linkinus.com]
vlad_starkov has joined #ruby
<centrx> snkcld, It will probably be 10x faster than doing it outside the database
Kricir_ has quit [Remote host closed the connection]
MacGruberGuy has quit [Quit: Leaving]
jailbot has quit [Remote host closed the connection]
<snkcld> centrx: youre absolutely right. id venture to say almost 1000x faster heh
byprdct has joined #ruby
<snkcld> though i need to join on other relevant data
<bnagy> how often will you do this export?
aryaching has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
<snkcld> meh, just this once. its a good 500k entries though. as i figure out how i want to relate my data in my other database, i may adjust some things and run it again
dkamioka has quit [Remote host closed the connection]
aryaching_ has quit [Ping timeout: 260 seconds]
dkamioka has joined #ruby
fgo has quit []
<bnagy> once?
<bnagy> just write it the clearest way possible then
<bnagy> job done
<bnagy> you've been on here asking about it for days, you'd be done by now :)
<bleak> hehe
havenwood has joined #ruby
<pontiki> HAAAY BNAGY, IS THAT YOUR YAK THAT NEEDS SHAVING?
<snkcld> haha
<snkcld> well i expect that i will be adjusting it alot, as i play with the data
dkamioka_ has joined #ruby
vpretzel has quit [Quit: Adios!]
mocfive has quit [Remote host closed the connection]
<bnagy> srsly though, it's something you should bear in mind for "ooh shiny" dev projects - will this run often enough to repay the time and effort I'm spending
<bnagy> I go down that rabbithole all the time :(
sdwrage has joined #ruby
<snkcld> oh no, i agree. its alot of morbid curiosity too really
<slowcon> hahaha i just thought of the first thing that i will use daily
aryaching_ has joined #ruby
dkamioka has quit [Ping timeout: 264 seconds]
Hanmac1 has joined #ruby
<snkcld> whats that
<slowcon> I'm trying to start a script that goes to a forum, clicks a post title, clicks the download link in the post, then clicks the zippy share link
sensen has joined #ruby
aryaching has quit [Ping timeout: 260 seconds]
Hanmac has quit [Ping timeout: 264 seconds]
bricker`LA has quit [Ping timeout: 260 seconds]
<bnagy> seems legit
robbyoconnor has joined #ruby
brunops has joined #ruby
Wolland has joined #ruby
Kricir has joined #ruby
mikepack has quit [Remote host closed the connection]
Kricir_ has joined #ruby
WillAmes has joined #ruby
Shidash has joined #ruby
brunops has quit [Client Quit]
tvw has quit [Ping timeout: 272 seconds]
Wolland has quit [Ping timeout: 272 seconds]
Red_Onyx has quit [Quit: Leaving]
Kricir has quit [Ping timeout: 252 seconds]
sailias has joined #ruby
Kricir has joined #ruby
dx7 has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
dkamioka_ has quit [Remote host closed the connection]
top4o has joined #ruby
eka has joined #ruby
radic has quit [Ping timeout: 272 seconds]
Kricir_ has quit [Ping timeout: 252 seconds]
TaxmanBD has quit [Quit: Leaving]
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
griffindy has quit [Quit: Computer has gone to sleep.]
dx7 has quit [Ping timeout: 248 seconds]
radic has joined #ruby
bleak has quit [Ping timeout: 245 seconds]
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eka has quit [Client Quit]
clamstar has quit [Quit: Computer has gone to sleep.]
agent_white has joined #ruby
standyro2 has quit [Ping timeout: 252 seconds]
krisbulman|afk is now known as [krisbulman|afk]
[krisbulman|afk] is now known as krisbulman
browndawg has joined #ruby
bradleyprice has joined #ruby
Chioque has joined #ruby
Chioque has quit [Client Quit]
hamakn has joined #ruby
iamdoo2 has joined #ruby
<shevy> slowcon mechanize
Hobogrammer has joined #ruby
<slowcon> checking it out
Hobogrammer has quit [Client Quit]
Hobogrammer has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
iamdoo2 has quit [Ping timeout: 252 seconds]
senayar has joined #ruby
carif has quit [Ping timeout: 264 seconds]
robbyoconnor has quit [Quit: Konversation terminated!]
petey has joined #ruby
vallieres_ has quit [Remote host closed the connection]
Spami has joined #ruby
mikepack has joined #ruby
tylersmith has joined #ruby
deens has joined #ruby
davy_ has joined #ruby
senayar has quit [Ping timeout: 272 seconds]
oso96_2000 has quit [Quit: Leaving]
jrobertfox has quit [Remote host closed the connection]
Wolland has joined #ruby
zeade has joined #ruby
mikepack has quit [Ping timeout: 272 seconds]
blaz3rz has joined #ruby
nari has joined #ruby
deens has quit [Ping timeout: 265 seconds]
freezey has joined #ruby
x77686d has joined #ruby
fedesilva has quit [Remote host closed the connection]
freezey has quit [Read error: Connection reset by peer]
freezey has joined #ruby
slick-zendog is now known as slick-horndog
maletor has joined #ruby
Vivekananda has quit [Quit: Ex-Chat]
aryaching has joined #ruby
freerobby has quit [Quit: Leaving.]
kitak has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
Megtastique has joined #ruby
kitak has joined #ruby
Megtastique has quit [Client Quit]
aryaching_ has quit [Ping timeout: 260 seconds]
dkamioka has joined #ruby
yacks has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
zz_anildigital is now known as anildigital
sailias has quit [Ping timeout: 264 seconds]
Mattx has quit [Ping timeout: 260 seconds]
dorei has quit []
speakingcode has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
bradding has joined #ruby
jtdowney has quit []
<bradding> 2.1.0 :015 > puts favorite_color2
<bradding> blue
<bradding> => nil
mmcdaris has joined #ruby
bean has joined #ruby
<bradding> why does it print out nil each time I issue puts
<havenwood> bradding: The #puts method always returns `nil`.
<bradding> havenwood, what does nil stand for? why does it print it each time?
meatherly has quit [Remote host closed the connection]
<bradding> I did find this http://lukaszwrobel.pl/blog/ruby-is-nil
<havenwood> bradding: It isn't printing it, it is showing you the return value. When the value is irrelevant `nil` can be used as a placeholder, it's got to return something.
meatherly has joined #ruby
<bradding> even though it is returning the variable I asked for
<havenwood> bradding: It is printing the variable as a string with a newline then returning `nil`.
p4tuxx has joined #ruby
aryaching_ has joined #ruby
kobain_ has joined #ruby
chipotle has joined #ruby
ewnd9_ has quit [Read error: Operation timed out]
aryaching has quit [Ping timeout: 265 seconds]
yfeldblum has quit [Remote host closed the connection]
kobain has quit [Ping timeout: 260 seconds]
yasushi has joined #ruby
p4tux has quit [Ping timeout: 272 seconds]
<havenwood> bradding: If you run the code outside a REPL you'll see that `nil` isn't being printed.
meatherly has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby
w4pm has quit [Ping timeout: 252 seconds]
iamdoo2 has joined #ruby
<bradding> havenwood, I have noticed that a few times. thanks havenwood
vlad_starkov has quit [Read error: Connection reset by peer]
mmcdaris has quit [Quit: mmcdaris]
Mattx has joined #ruby
Mattx has quit [Changing host]
Mattx has joined #ruby
mocfive has joined #ruby
meatherly has joined #ruby
Spami has joined #ruby
agjacome has quit [Quit: leaving]
Spami has quit [Client Quit]
coca_rai_ has quit [Remote host closed the connection]
coca_rails has joined #ruby
gener1c has quit [Disconnected by services]
gener1c_ has joined #ruby
mary5030 has quit [Remote host closed the connection]
yasushi has quit [Remote host closed the connection]
lifestream has left #ruby ["(Goodbye)"]
gja has quit [Quit: This computer has gone to sleep]
braincrash has quit [Quit: bye bye]
coca_rails has quit [Ping timeout: 240 seconds]
rm_ has quit [Remote host closed the connection]
Wolland has quit [Ping timeout: 245 seconds]
braincrash has joined #ruby
rm__ has joined #ruby
Hanmac has joined #ruby
gja has joined #ruby
Noldorin has quit []
Hanmac1 has quit [Ping timeout: 264 seconds]
mikepack has joined #ruby
saarinen has joined #ruby
thomasxie has joined #ruby
Wolland has joined #ruby
tauebel has quit [Quit: Leaving.]
danijoo_ has joined #ruby
danijoo has quit [Read error: Operation timed out]
rylinaux_ has joined #ruby
rylinaux- has joined #ruby
dodosan has joined #ruby
dodosan has quit [Client Quit]
postmodern has quit [Quit: Leaving]
<bradding> havenwood, what kind of applications have you made?
rylinaux has quit [Quit: Quit - ZNC]
rylinaux_ has quit [Client Quit]
rylinaux- has quit [Remote host closed the connection]
rylinaux has joined #ruby
rylinaux is now known as Guest28478
ronal1102 has quit [Quit: Connection closed for inactivity]
<centrx> The best kind
saarinen has quit [Quit: saarinen]
robert_ has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
ewnd9_ has joined #ruby
robert_ has quit [Max SendQ exceeded]
kitak has quit [Remote host closed the connection]
Guest28478 has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
<havenwood> bradding: mesh network cat collars, refrigerators with emotions, haptic feedback suspenders, that kinda thing
troyready has quit [Ping timeout: 248 seconds]
cashnguns has quit [Quit: I'm just an old fashioned cowboy]
nfk has quit [Quit: yawn]
m104 has joined #ruby
anildigital is now known as zz_anildigital
SiliconG has joined #ruby
estebistec has joined #ruby
Megtastique has joined #ruby
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
seoNinjaWarrior has quit [Ping timeout: 252 seconds]
deens has joined #ruby
meatherly has quit [Remote host closed the connection]
meatherly has joined #ruby
senayar has joined #ruby
Virtualize|away has joined #ruby
<agent_white> I made tic-tac-toe once
coca_rails has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
maletor has quit [Quit: Computer has gone to sleep.]
meatherly has quit [Ping timeout: 265 seconds]
senayar has quit [Ping timeout: 252 seconds]
x77686d has quit [Quit: x77686d]
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
Megtastique has quit []
estebistec has quit [Remote host closed the connection]
Virtualize|away has quit [Ping timeout: 245 seconds]
sski has joined #ruby
angusigu1ss has quit [Ping timeout: 240 seconds]
Guest55511 has quit [Ping timeout: 240 seconds]
ewnd9_ has quit [Ping timeout: 264 seconds]
coca_rails has quit [Ping timeout: 241 seconds]
sdwrage has joined #ruby
<bradding> Am I doing something wrong, why am I getting hex?
<bradding> [bab@ruby snipets]$ cat personal_chef.rb
<bradding> def make_toast(color)
<bradding> puts "Making your toast #{color}"
<bradding> class PersonalChef
<bradding> end
<bradding> end
<bradding> [bab@ruby snipets]$ irb
<bradding> 2.1.0 :001 > load 'personal_chef.rb'
<bradding> => true
<bradding> 2.1.0 :002 > frank = PersonalChef.new
<bradding> => #<PersonalChef:0x00000000efc4f0>
<agent_white> bradding: Can make a new chef without initializing him!
<agent_white> can't*
<agent_white> bradding: For example... try frank = PersonalChef instead of PersonalChef.new
<bradding> ok, I am just trying to follow this example. http://tutorials.jumpstartlab.com/projects/ruby_in_100_minutes.html "Method Parameters" section
pietr0 has quit [Quit: pietr0]
pietr0 has joined #ruby
lukec has quit [Quit: lukec]
<pontiki> doesn't jumpstart lab offer support and help?
<bradding> I am not a paying member
<bradding> I am trying to learn as much before I quite and take a full time course
<bradding> any suggestions?
zz_anildigital is now known as anildigital
<pontiki> yeah
anildigital is now known as zz_anildigital
<pontiki> pick up the book and start reading
Xiti` has joined #ruby
slick-horndog has quit [Quit: leaving]
<pontiki> what you are seeing, that last thing: => #<PersonalChef:0x00000000efc4f0> that is the object reference for the object you just created
gja has quit [Ping timeout: 252 seconds]
<pontiki> it is something irb shows since it is the value of the thing in the expression
kitak has joined #ruby
<pontiki> when you're running irb, the ' => blah blah' stuff that gets printed is not your program's output; it's irb's output
<bradding> I have the pine book I am working on
Xiti has quit [Ping timeout: 260 seconds]
<pontiki> good
ryantm has joined #ruby
robbyoconnor has joined #ruby
byprdct has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sski has quit [Remote host closed the connection]
Xiti` has quit [Ping timeout: 272 seconds]
sski has joined #ruby
fedesilva has joined #ruby
sski has quit [Remote host closed the connection]
deens has quit [Remote host closed the connection]
sski has joined #ruby
yasushi has joined #ruby
octoberry has quit [Ping timeout: 245 seconds]
fedesilva has quit [Ping timeout: 245 seconds]
bnjamin has joined #ruby
Es0teric has joined #ruby
dx7 has joined #ruby
<agent_white> TigerWolf: Colorado!
<agent_white> mt
mocfive has quit [Remote host closed the connection]
Deele has joined #ruby
mikepack_ has joined #ruby
mocfive has joined #ruby
vlad_starkov has joined #ruby
dx7 has quit [Ping timeout: 265 seconds]
kitak has quit [Remote host closed the connection]
mocfive_ has joined #ruby
mocfive has quit [Remote host closed the connection]
bradleyp_ has joined #ruby
mikepack_ has quit [Ping timeout: 245 seconds]
angusigu1ss has joined #ruby
kitak has joined #ruby
bradleyprice has quit [Ping timeout: 240 seconds]
deens has joined #ruby
lfox has quit [Quit: ZZZzzz…]
angusigu1ss has quit [Ping timeout: 265 seconds]
coca_rails has joined #ruby
hetre85_ has joined #ruby
hetre85 has quit [Ping timeout: 245 seconds]
hetre85_ is now known as hetre85
sparrovv has joined #ruby
coca_rails has quit [Ping timeout: 240 seconds]
mikepack_ has joined #ruby
petey has quit [Remote host closed the connection]
byprdct has joined #ruby
petey has joined #ruby
sparrovv has quit [Ping timeout: 272 seconds]
deric_skibotn has joined #ruby
bradleyp_ has quit [Remote host closed the connection]
bradleyprice has joined #ruby
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
mikepack_ has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
Kricir has quit [Remote host closed the connection]
pietr0 has quit [Quit: pietr0]
senayar has joined #ruby
petey has quit [Ping timeout: 245 seconds]
stkowski has joined #ruby
pietr0 has joined #ruby
maletor has joined #ruby
iamsean has quit [Quit: iamsean]
wildroman2 has joined #ruby
byprdct has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bradding has quit [Quit: Leaving]
danshultz has joined #ruby
m104 has quit [Quit: bye]
yasushi has quit [Remote host closed the connection]
danshultz has quit [Ping timeout: 245 seconds]
lukec has joined #ruby
wildroman2 has quit [Remote host closed the connection]
Xiti has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
phipes has joined #ruby
ndrei has joined #ruby
sethen has quit [Remote host closed the connection]
IceDragon has quit [Quit: Space~~~]
Megtastique has joined #ruby
standyro2 has joined #ruby
krz has joined #ruby
ckinni has quit [Read error: Connection reset by peer]
ckinni has joined #ruby
dseitz has joined #ruby
tyl has joined #ruby
lukec has quit [Quit: lukec]
mocfive_ has quit [Remote host closed the connection]
JasmeetQA has joined #ruby
mocfive has joined #ruby
slowcon has quit [Quit: slowcon]
bnjamin has quit [Remote host closed the connection]
mocfive has quit [Ping timeout: 264 seconds]
kitak has quit [Remote host closed the connection]
freezey has quit [Remote host closed the connection]
slowcon has joined #ruby
kate_r has joined #ruby
bnjamin has joined #ruby
ckinni_ has joined #ruby
ckinni has quit [Read error: Connection reset by peer]
kitak has joined #ruby
v10energy has quit [Ping timeout: 264 seconds]
angusigu1ss has joined #ruby
deens has quit []
browndawg has quit [Quit: Leaving.]
coca_rails has joined #ruby
Wolland has quit []
Wolland has joined #ruby
sdwrage has joined #ruby
bricker`LA has joined #ruby
sdwrage has quit [Remote host closed the connection]
angusigu1ss has quit [Ping timeout: 272 seconds]
sdwrage has joined #ruby
bricker`LA has quit [Client Quit]
bricker`LA has joined #ruby
phansch has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
yarou has quit [Remote host closed the connection]
AntelopeSalad has quit [Ping timeout: 264 seconds]
coca_rails has quit [Ping timeout: 240 seconds]
evenix has joined #ruby
ckinni has joined #ruby
mocfive has joined #ruby
ckinni_ has quit [Ping timeout: 264 seconds]
m00nlight has joined #ruby
speakingcode has quit [Read error: Operation timed out]
SCommette has quit [Quit: SCommette]
Senjai has quit [Changing host]
Senjai has joined #ruby
zeade1 has joined #ruby
zeade1 has quit [Client Quit]
kc8qvp has left #ruby [#ruby]
zeade has quit [Ping timeout: 245 seconds]
ckinni_ has joined #ruby
w4pm has joined #ruby
ckinni has quit [Ping timeout: 252 seconds]
Megtastique has quit []
standyro2 has quit [Ping timeout: 245 seconds]
mocfive has quit [Remote host closed the connection]
sski has quit [Ping timeout: 260 seconds]
Slavox has quit [Ping timeout: 260 seconds]
sski_ has joined #ruby
Slavox has joined #ruby
Solnse has quit [Quit: Leaving.]
mocfive has joined #ruby
ckinni has joined #ruby
w4pm has quit [Ping timeout: 245 seconds]
ckinni_ has quit [Ping timeout: 253 seconds]
gigetoo has quit [Remote host closed the connection]
Wolland has quit [Ping timeout: 272 seconds]
blaz3rz has quit [Remote host closed the connection]
gigetoo has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
meatherly has joined #ruby
zipper has joined #ruby
slowcon has quit [Quit: slowcon]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
browndawg has joined #ruby
dawkirst has joined #ruby
end_guy has quit [Ping timeout: 240 seconds]
meatherly has quit [Ping timeout: 252 seconds]
ckinni has quit [Ping timeout: 252 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
tonni has quit [Remote host closed the connection]
blaz3rz has joined #ruby
gja has joined #ruby
gja has joined #ruby
decoponio has joined #ruby
sski_ has quit [Remote host closed the connection]
sski has joined #ruby
ckinni has joined #ruby
dawkirst has quit [Ping timeout: 272 seconds]
bnjamin has quit [Remote host closed the connection]
moppersmurf has left #ruby [#ruby]
tagrudev has joined #ruby
cid404 has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Remote host closed the connection]
heftig has quit [Quit: Quitting]
krisbulman has quit [Ping timeout: 252 seconds]
sski has quit [Ping timeout: 252 seconds]
ckinni has quit [Ping timeout: 252 seconds]
dx7 has joined #ruby
yosafbridge has quit [Ping timeout: 252 seconds]
x77686d has joined #ruby
x77686d has quit [Client Quit]
yacks has quit [Quit: Leaving]
krisbulman has joined #ruby
yosafbridge has joined #ruby
dx7 has quit [Ping timeout: 265 seconds]
apeiros has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
ckinni has joined #ruby
hamakn has quit [Remote host closed the connection]
gja has joined #ruby
hamakn has joined #ruby
dawkirst has joined #ruby
nanothief has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
raar has joined #ruby
raar is now known as Guest6676
tonni has joined #ruby
mikepack has quit [Remote host closed the connection]
hamakn has quit [Ping timeout: 260 seconds]
OdNairy has joined #ruby
Macaveli has joined #ruby
meatherly has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
krisbulman is now known as [krisbulman]
geggam has quit [Remote host closed the connection]
noop has joined #ruby
ryantm has quit [Ping timeout: 260 seconds]
meatherly has quit [Ping timeout: 260 seconds]
apeiros has quit [Ping timeout: 272 seconds]
swatts has joined #ruby
mengu has joined #ruby
jpstokes has quit [Remote host closed the connection]
angusigu1ss has joined #ruby
wallerdev has quit [Quit: wallerdev]
rdark has joined #ruby
m00nlight has quit [Ping timeout: 252 seconds]
srji_ has quit [Quit: leaving]
gja has quit [Quit: This computer has gone to sleep]
phipes has quit [Remote host closed the connection]
srji has joined #ruby
predator217 has quit [Ping timeout: 248 seconds]
predator117 has joined #ruby
whowantstolivef2 is now known as whowantstolivefo
Macaveli has quit [Ping timeout: 252 seconds]
centrx has quit [Quit: Leaving]
coca_rails has joined #ruby
phipes has joined #ruby
Macaveli has joined #ruby
deric_skibotn has quit [Ping timeout: 240 seconds]
angusigu1ss has quit [Ping timeout: 252 seconds]
davidcelis has quit [Read error: Operation timed out]
tylersmith has quit [Remote host closed the connection]
krainboltgreene has quit [Read error: Operation timed out]
Radar has quit [Ping timeout: 272 seconds]
yacks has joined #ruby
bwarkee has quit [Ping timeout: 240 seconds]
micah` has quit [Ping timeout: 248 seconds]
helpa has quit [Ping timeout: 245 seconds]
jso has quit [Ping timeout: 245 seconds]
zz_anildigital has quit [Ping timeout: 252 seconds]
jericon_ has quit [Ping timeout: 272 seconds]
TorpedoSkyline has quit [Ping timeout: 276 seconds]
nick_h_ has quit [Ping timeout: 276 seconds]
makara has joined #ruby
freezey has joined #ruby
erichmenge has quit [Ping timeout: 272 seconds]
zastern has quit [Ping timeout: 260 seconds]
coca_rails has quit [Ping timeout: 240 seconds]
petey has joined #ruby
vlad_starkov has joined #ruby
<lxsameer> how can i iterate on my gems in my Gemfile using bundler ?
freezey has quit [Ping timeout: 245 seconds]
lemonsparrow has joined #ruby
dawkirst has quit [Ping timeout: 245 seconds]
shredding has joined #ruby
petey has quit [Ping timeout: 272 seconds]
erichmenge has joined #ruby
jaxxstorm has quit [Quit: ZNC - http://znc.in]
tonini_ is now known as tonini
davidcelis has joined #ruby
davidcelis has quit [Excess Flood]
phansch has quit [Quit: Leaving]
bwarkee has joined #ruby
jaxxstorm has joined #ruby
davidcelis has joined #ruby
davidcelis has joined #ruby
davidcelis has quit [Changing host]
davidcelis has quit [Excess Flood]
davidcelis has joined #ruby
davidcelis has quit [Excess Flood]
ndrei has quit [Ping timeout: 264 seconds]
davidcelis has joined #ruby
davidcelis has quit [Excess Flood]
micah` has joined #ruby
shredding has quit [Client Quit]
Guest41153 has joined #ruby
Guest41153 has quit [Excess Flood]
yuuki1224 has joined #ruby
davidcel- has joined #ruby
cj3kim has joined #ruby
anildigital has joined #ruby
ndrei has joined #ruby
nick_h has joined #ruby
krainboltgreene has joined #ruby
dawkirst has joined #ruby
Spami has joined #ruby
drumusician has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
dagobah has joined #ruby
ndrei has joined #ruby
dkamioka has quit [Remote host closed the connection]
mocfive has quit [Remote host closed the connection]
mocfive has joined #ruby
Jetchisel has joined #ruby
jdguzman has quit [Ping timeout: 260 seconds]
sivoais has quit [Ping timeout: 240 seconds]
james_d_h has joined #ruby
dawkirst has quit [Ping timeout: 240 seconds]
Davey has joined #ruby
waxjar has quit [Ping timeout: 245 seconds]
LadyRainicorn has joined #ruby
byprdct has joined #ruby
mocfive has quit [Ping timeout: 252 seconds]
Radar has joined #ruby
TorpedoSkyline has joined #ruby
Radar is now known as Guest30637
Davey has quit [Read error: Connection reset by peer]
Al__ has joined #ruby
mengu has quit [Remote host closed the connection]
jericon has joined #ruby
phipes has quit [Remote host closed the connection]
james_d_h has quit [Ping timeout: 272 seconds]
niklasb has quit [Ping timeout: 272 seconds]
amritanshu_RnD has joined #ruby
user258467 has joined #ruby
robbyoconnor has quit [Ping timeout: 260 seconds]
predator117 has quit [Ping timeout: 240 seconds]
razibog has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
zastern has joined #ruby
parduse has quit [Remote host closed the connection]
solidus-river has quit [Quit: Leaving.]
parduse has joined #ruby
parduse has quit [Changing host]
parduse has joined #ruby
byprdct has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sivoais has joined #ruby
james_d_h has joined #ruby
thomasxie has quit [Ping timeout: 248 seconds]
drumusician has quit [Read error: Operation timed out]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
predator117 has joined #ruby
gja has joined #ruby
jprovazn has joined #ruby
kobain_ has quit []
iamdoo2 has quit []
meatherly has joined #ruby
byprdct has joined #ruby
waxjar has joined #ruby
S0da has quit [Remote host closed the connection]
wildroman2 has joined #ruby
kitak has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
therod has joined #ruby
meatherly has quit [Ping timeout: 252 seconds]
wildroman2 has quit [Ping timeout: 252 seconds]
angusigu1ss has joined #ruby
Al__ has quit [Quit: Al__]
aganov has joined #ruby
ktosiek_ has joined #ruby
ktosiek has quit [Ping timeout: 252 seconds]
robbyoconnor has joined #ruby
coca_rails has joined #ruby
angusigu1ss has quit [Ping timeout: 240 seconds]
andikr has joined #ruby
thomasxie has joined #ruby
vlad_starkov has joined #ruby
wildroman2 has joined #ruby
thesheff17 has quit [Read error: Operation timed out]
nathancahill has quit [Quit: nathancahill]
blackmesa has joined #ruby
ahawkins has joined #ruby
coca_rails has quit [Ping timeout: 240 seconds]
kitak has joined #ruby
byprdct has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kitak has quit [Remote host closed the connection]
tonni has quit [Remote host closed the connection]
wildroman2 has quit [Ping timeout: 260 seconds]
lifestream has joined #ruby
zigomir has joined #ruby
rm__ has quit [Remote host closed the connection]
ktosiek has joined #ruby
zigomir has quit [Read error: Connection reset by peer]
rm__ has joined #ruby
link151 has joined #ruby
zigomir has joined #ruby
ktosiek_ has quit [Ping timeout: 264 seconds]
jprovazn has quit [Ping timeout: 252 seconds]
Fire-Dragon-DoL has left #ruby [#ruby]
tvw has joined #ruby
blaz3rz has quit [Remote host closed the connection]
kitak has joined #ruby
tylersmith has joined #ruby
davidcel- is now known as davidcelis
davidcelis has quit [Changing host]
davidcelis has joined #ruby
bleak has joined #ruby
noop has quit [Ping timeout: 260 seconds]
link151 has quit [Ping timeout: 252 seconds]
james_d_h has quit [Ping timeout: 245 seconds]
rm__ has quit [Ping timeout: 265 seconds]
browndawg1 has joined #ruby
noname001__ has joined #ruby
noop has joined #ruby
JasmeetQA has quit [Quit: Leaving.]
browndawg has quit [Ping timeout: 272 seconds]
blaz3rz has joined #ruby
blaz3rz has quit [Remote host closed the connection]
tylersmith has quit [Ping timeout: 245 seconds]
ozgun has joined #ruby
davy_ has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thesheff17 has joined #ruby
ozgun has left #ruby [#ruby]
tesuji has joined #ruby
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lemonsparrow has quit [Ping timeout: 245 seconds]
gja has quit [Quit: This computer has gone to sleep]
bean has joined #ruby
browndawg1 has quit [Ping timeout: 260 seconds]
einarj has joined #ruby
einarj has quit [Remote host closed the connection]
einarj has joined #ruby
einarj has quit [Remote host closed the connection]
dx7 has joined #ruby
einarj has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
JasmeetQA has joined #ruby
browndawg has joined #ruby
hiall__ has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
aryaching has joined #ruby
pithagora has joined #ruby
gja has joined #ruby
drumusician has joined #ruby
claymore has joined #ruby
dx7 has quit [Ping timeout: 248 seconds]
ndrei has joined #ruby
eka has joined #ruby
dangerousdave has joined #ruby
aryaching_ has quit [Ping timeout: 272 seconds]
mercwithamouth has quit [Ping timeout: 264 seconds]
SiliconG has quit [Ping timeout: 245 seconds]
troessner has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
fluve has joined #ruby
olivier_bk has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
tyl has quit [Quit: Computer has gone to sleep.]
jprovazn has joined #ruby
cj3kim has quit [Remote host closed the connection]
arctarus has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
hamakn has joined #ruby
therod has quit [Ping timeout: 260 seconds]
wildroman2 has joined #ruby
<shevy> #bundler
deever has quit [Quit: leaving]
arctaruz has joined #ruby
msuszczy has quit [Quit: Lost terminal]
ohwhoa has joined #ruby
daxroc has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
claymore has quit [Ping timeout: 245 seconds]
romdi has joined #ruby
swatts has quit [Remote host closed the connection]
claymore has joined #ruby
mikepack has joined #ruby
chihhsin has quit [Quit: leaving]
james_d_h has joined #ruby
rdark has quit [Quit: leaving]
cj3kim has joined #ruby
romdi` has joined #ruby
tonni has joined #ruby
daxroc has quit [Ping timeout: 248 seconds]
daxroc has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
chihhsin has joined #ruby
mengu has quit [Remote host closed the connection]
mikepack has quit [Ping timeout: 252 seconds]
Hanmac1 has joined #ruby
link151 has joined #ruby
romdi has quit [Ping timeout: 252 seconds]
james_d_h has quit [Ping timeout: 252 seconds]
Hanmac has quit [Ping timeout: 245 seconds]
greenarrow has joined #ruby
Xeago has joined #ruby
dawkirst has joined #ruby
lemonsparrow has joined #ruby
x77686d has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
x77686d has quit [Client Quit]
arctarus has quit [Ping timeout: 252 seconds]
asmodlol has joined #ruby
arctarus has joined #ruby
zipper is now known as zipper{-_-}
davy_ has joined #ruby
dawkirst_ has joined #ruby
standyro2 has joined #ruby
aryaching has quit [Ping timeout: 272 seconds]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
link151 has quit [Quit: Leaving.]
aspiers has quit [Ping timeout: 245 seconds]
davy_ has quit [Read error: Connection reset by peer]
Hanmac has joined #ruby
davy_ has joined #ruby
dawkirst has quit [Ping timeout: 264 seconds]
Al__ has joined #ruby
Hanmac1 has quit [Ping timeout: 248 seconds]
mikecmpbll has joined #ruby
roolo has joined #ruby
arctarus has quit [Ping timeout: 252 seconds]
arctaruz has quit [Ping timeout: 272 seconds]
Rylee has quit [Ping timeout: 272 seconds]
dawkirst_ has quit [Ping timeout: 240 seconds]
davy_ has quit [Ping timeout: 272 seconds]
angusigu1ss has joined #ruby
SiliconG has joined #ruby
error404_ is now known as error404
ghr has joined #ruby
ghr has quit [Max SendQ exceeded]
Spami has quit [Quit: This computer has gone to sleep]
ghr has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
coca_rails has joined #ruby
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SiliconG has quit [Ping timeout: 240 seconds]
popl has joined #ruby
Hanmac1 has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
angusigu1ss has quit [Ping timeout: 252 seconds]
msuszczy has joined #ruby
marr has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
coca_rails has quit [Ping timeout: 240 seconds]
obs has joined #ruby
nvrch has joined #ruby
petey has joined #ruby
arctarus has joined #ruby
arctaruz has joined #ruby
timonv has joined #ruby
jlebrech has joined #ruby
Shidash has quit [Ping timeout: 240 seconds]
gja has joined #ruby
ephemerian has joined #ruby
rm__ has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
rm__ has quit [Read error: Connection reset by peer]
rm__ has joined #ruby
petey has quit [Ping timeout: 240 seconds]
bnjamin has joined #ruby
evenix has quit [Remote host closed the connection]
evenix has joined #ruby
heftig has joined #ruby
Shidash has joined #ruby
aryaching has joined #ruby
link151 has joined #ruby
dawkirst_ has joined #ruby
TMM has joined #ruby
evenix has quit [Ping timeout: 240 seconds]
rm__ has quit [Ping timeout: 252 seconds]
lxsameer has quit [Ping timeout: 265 seconds]
Lewix has joined #ruby
aganov has quit [Quit: Leaving]
aganov has joined #ruby
link151 has quit [Ping timeout: 264 seconds]
aganov has quit [Client Quit]
zoscoy has joined #ruby
aganov has joined #ruby
bleak has quit [Ping timeout: 272 seconds]
khismetix has joined #ruby
senayar has quit [Remote host closed the connection]
khismetix has quit [Client Quit]
cj3kim has quit [Remote host closed the connection]
senayar has joined #ruby
lifestream has left #ruby ["(Goodbye)"]
Hanmac has joined #ruby
shime has joined #ruby
fluve has quit [Remote host closed the connection]
Hanmac1 has quit [Ping timeout: 265 seconds]
SiliconG has joined #ruby
zoscoy has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
cj3kim has joined #ruby
Hobogrammer has quit [Ping timeout: 264 seconds]
bleak has joined #ruby
karupanerura is now known as zz_karupanerura
linduxed has joined #ruby
browndawg has quit [Ping timeout: 265 seconds]
alex88 has joined #ruby
dangerousdave has joined #ruby
[gmi] has joined #ruby
browndawg has joined #ruby
SiliconG has quit [Ping timeout: 240 seconds]
Advocation has joined #ruby
dangerousdave has quit [Client Quit]
heftig has quit [Remote host closed the connection]
aryaching has quit [Ping timeout: 252 seconds]
mojjojo has joined #ruby
withnale has quit [Ping timeout: 240 seconds]
jim0thy_ has joined #ruby
heftig has joined #ruby
lxsameer has joined #ruby
cj3kim has quit [Remote host closed the connection]
workmad3 has joined #ruby
heftig has quit [Remote host closed the connection]
jim0thy_ has quit [Client Quit]
heftig has joined #ruby
bleak has quit [Quit: bleak]
krz has quit [Ping timeout: 252 seconds]
zegerjan has joined #ruby
timonv has quit [Remote host closed the connection]
heftig has quit [Remote host closed the connection]
bnjamin has quit [Remote host closed the connection]
heftig has joined #ruby
klaut has joined #ruby
bnjamin_ has joined #ruby
bleak has joined #ruby
shime has quit [Ping timeout: 260 seconds]
rdark has joined #ruby
meatherly has joined #ruby
shime has joined #ruby
withnale has joined #ruby
meatherly has quit [Read error: Connection reset by peer]
meatherly has joined #ruby
banister has joined #ruby
tesuji has quit [Ping timeout: 264 seconds]
multi_io has quit [Remote host closed the connection]
multi_io has joined #ruby
zipper{-_-} has quit [Quit: leaving]
withnale has quit [Read error: Operation timed out]
meatherly has quit [Ping timeout: 264 seconds]
apeiros has joined #ruby
zoscoy has joined #ruby
angusigu1ss has joined #ruby
aqabiz has joined #ruby
tyl has joined #ruby
aqabiz has quit [Client Quit]
abdulqabiz has joined #ruby
abdulqabiz has quit [Max SendQ exceeded]
aqabiz has joined #ruby
aqabiz has quit [Client Quit]
Hanmac1 has joined #ruby
shvelo has joined #ruby
Hanmac has quit [Ping timeout: 245 seconds]
SiliconG has joined #ruby
coca_rails has joined #ruby
therod has joined #ruby
angusigu1ss has quit [Ping timeout: 272 seconds]
sergicles has joined #ruby
TejasDinkar has joined #ruby
wildroman2 has quit [Remote host closed the connection]
timonv has joined #ruby
blackmesa has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gja has quit [Ping timeout: 265 seconds]
coca_rails has quit [Ping timeout: 240 seconds]
shime has quit [Ping timeout: 240 seconds]
therod has quit [Ping timeout: 252 seconds]
TheNofx68 has joined #ruby
TheNofx68 has left #ruby [#ruby]
razibog has quit [Quit: Leaving.]
standyro2 has quit [Ping timeout: 248 seconds]
arctaruz has quit [Quit: Leaving]
gregoriokusowski has joined #ruby
SiliconG has quit [Ping timeout: 252 seconds]
diegoviola has joined #ruby
dx7 has joined #ruby
rm__ has joined #ruby
TheNofx68 has joined #ruby
TheNofx68 has left #ruby [#ruby]
dx7 has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
michael_lee has joined #ruby
xcv has joined #ruby
krz has joined #ruby
mengu has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
derebos has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
rm__ has quit [Ping timeout: 245 seconds]
withnale has joined #ruby
aspiers has joined #ruby
banister has joined #ruby
krz has quit [Ping timeout: 252 seconds]
lkba has quit [Ping timeout: 245 seconds]
fluve has joined #ruby
yfeldblum has joined #ruby
banister has quit [Client Quit]
lemonsparrow has quit [Quit: Page closed]
JasmeetQA has quit [Quit: Leaving.]
sski has joined #ruby
zeeraw has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
msuszczy has quit [Remote host closed the connection]
wildroman2 has joined #ruby
krz has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
derebos has quit [Remote host closed the connection]
drumusician has quit [Ping timeout: 252 seconds]
msuszczy has joined #ruby
TejasDinkar has quit [Quit: This computer has gone to sleep]
timonv has joined #ruby
tacos1de has quit [Ping timeout: 240 seconds]
bnjamin has joined #ruby
bnjamin_ has quit [Read error: Connection reset by peer]
<jokke> hey
<jokke> what's the most ruby-like way to reduce an array of boolean values to either false or true by performing and for each of them
<jokke> i thought of inject
<jokke> but that won't stop if one is false
aryaching has joined #ruby
agent_white has quit [Quit: gnight all]
<jokke> [true, false, true, true].inject(true) { |last, this| last && this }
<jokke> is false but it goes through the last two elements of the array, even though it's not necessary
phansch has joined #ruby
felixjet_ has quit [Read error: Connection reset by peer]
tacos1de has joined #ruby
felixjet_ has joined #ruby
SiliconG has joined #ruby
wildroman2 has quit [Remote host closed the connection]
relix has joined #ruby
eka has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
<DouweM> jokke: [true, false, true, true].all? should do the trick
<jokke> wow cool
<jokke> didn't know that one
wildroman2 has joined #ruby
<DouweM> I'm assuming it loops over the elements and breaks when one is false, but you'll have to verify that
lxsameer has quit [Ping timeout: 248 seconds]
<DouweM> jokke: it can also take a block: http://ruby-doc.org/core-2.0.0/Enumerable.html#method-i-all-3F
james_d_h has joined #ruby
jaredrhine_ has quit [Remote host closed the connection]
jaredrhine has joined #ruby
yuuki1224 has quit [Remote host closed the connection]
patrickv has joined #ruby
<patrickv> hey there
yuuki1224 has joined #ruby
<patrickv> I'm trying to reproduce the behavior of perl's POE::Wheel::Run with ruby ( http://search.cpan.org/~rcaputo/POE-1.358/lib/POE/Wheel/Run.pm )
<patrickv> maybe with eventmachine
<patrickv> basically run a process and have some callback/events that stream chunks of the output of the process
<patrickv> I found deferable child process ( http://eventmachine.rubyforge.org/EventMachine/DeferrableChildProcess.html ) but it does a full buffering
amrit_ has joined #ruby
SiliconG has quit [Ping timeout: 260 seconds]
amrit_ has quit [Client Quit]
amritanshu_RnD has quit [Quit: Leaving]
amritanshu_RnD has joined #ruby
littlebit has joined #ruby
<patrickv> maybe I should replace filestreamer by a forked popen or something
james_d_h has quit [Ping timeout: 245 seconds]
shvelo has quit [Ping timeout: 272 seconds]
fluve has quit []
yuuki1224 has quit [Ping timeout: 252 seconds]
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
LiohAu has quit [Ping timeout: 245 seconds]
timonv has quit [Remote host closed the connection]
Bumptious has quit [Remote host closed the connection]
nari has quit [Ping timeout: 245 seconds]
<littlebit> hi people, I'm trying to install activerecord-mysql-adapter via 'gem install', but I get as a result this: http://pastebin.com/bhHKyqAc and looking at /var/lib/gems/1.9.1/gems/mysql-2.9.1/ext/mysql_api/gem_make.out doesn't really tell me much. Maybe someone could help? I use ubuntu as an OS
w4pm has joined #ruby
davy_ has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<patrickv> littlebit, type apt-get install libmysqlclient-dev
michael_lee has quit [Ping timeout: 260 seconds]
mikecmpbll has joined #ruby
mengu has quit [Read error: Connection reset by peer]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
meatherly has joined #ruby
<patrickv> also, before your gem install, don't forget 'sudo'
<littlebit> patrickv: ofcourse ;)
<patrickv> does it work better after installing libmysqlclient-dev ?
Speed has joined #ruby
lxsameer has joined #ruby
charliesome has joined #ruby
aryaching has quit [Ping timeout: 252 seconds]
w4pm has quit [Ping timeout: 245 seconds]
<littlebit> i'm now at "sudo gem install" and it worked :) thanks
ndrei has quit [Ping timeout: 260 seconds]
<patrickv> there you go then
mojjojo has quit [Quit: mojjojo]
davy_ has quit [Ping timeout: 245 seconds]
michael_lee has joined #ruby
sensen has quit [Quit: leaving]
timonv has joined #ruby
meatherly has quit [Ping timeout: 252 seconds]
shime has joined #ruby
therod has joined #ruby
x77686d has joined #ruby
x77686d has quit [Client Quit]
<littlebit> patrickv: the reason y I need to install that gem is because I'm initially trying to install redmine (ruby based server solution) and I still get this part: http://pastebin.com/dV47hP4j
jonno11 has joined #ruby
kitak has quit [Remote host closed the connection]
wildroman2 has quit [Remote host closed the connection]
<patrickv> ahah
<patrickv> which version of ubuntu?
aryaching has joined #ruby
yuuki1224 has joined #ruby
coca_rails has joined #ruby
ndrei has joined #ruby
<littlebit> patrickv: uname -r gave me: 3.11.0-15
atraylen has quit [Quit: Nettalk6 - www.ntalk.de]
<patrickv> how about cat /etc/lsb-release ?
<workmad3> littlebit: you don't really need to install the gem 'activerecord-mysql-adapter'
<workmad3> littlebit: you need the gem 'mysql'
<Hanmac1> littlebit: "(12:03:01) patrickv: does it work better after installing libmysqlclient-dev ?" <<< did you do that?
<patrickv> workmad: I agree. I didn't know the context
<littlebit> Hanmac1: i did
<littlebit> Hanmac1: then the gem install part worked
<patrickv> normally if redmine is installed through apt, then the deps should follow and no gem would need to manually install
<littlebit> workmad3: ISTRIB_ID=Ubuntu
<littlebit> DISTRIB_RELEASE=13.10
<littlebit> DISTRIB_CODENAME=saucy
<littlebit> DISTRIB_DESCRIPTION="Ubuntu 13.10"
Hanmac1 is now known as Hanmac
<patrickv> ok saucy
xcv has quit [Remote host closed the connection]
<patrickv> I'm guessing you are all up to date, right? apt-get update, apt-get dist-upgrade etc?
<workmad3> I also wouldn't install redmine through apt-get :)
xcv has joined #ruby
<patrickv> workmad: I wouldn't either
<patrickv> well actually I wouldn't install redmine at all but that's yet another topic
<patrickv> but as a general thing, I don't think that installing a web app via APT is a good idea
coca_rails has quit [Ping timeout: 240 seconds]
<patrickv> it beats not being able to install it though
petey has joined #ruby
<patrickv> littlebit, how is your apt-get update / dist-upgrade going?
<workmad3> littlebit: btw, the redmine instructions say to do 'apt-get install redmine redmine-mysql' for the packaged version...
<littlebit> patrickv: doing it now
<workmad3> littlebit: dunno if you did both packages or not though...
ndrei has quit [Ping timeout: 252 seconds]
xcv_ has joined #ruby
<patrickv> yup that makes sense. a good update before that will help though
tesuji has joined #ruby
<patrickv> linux 3.1 in a saucy is clearly not up to date
<workmad3> patrickv: yeah, I also wouldn't install redmine... we just use github issue trackers and physical walls :)
<workmad3> but if I did, I'd use postgres
<patrickv> mmmh, wouldn't recommend postgres
<patrickv> not that postgres is bad at all
<littlebit> patrickv: ok it is apparently downloading mysql-* deb-packages
<workmad3> I'd recommend it over mysql :)
<patrickv> but unless you have specific needs that only postgres covers, you're going to have a harder time getting support for it in general
<workmad3> I wouldn't say that was true anymore
<patrickv> hell yeah it's true
Davedo has quit [Ping timeout: 248 seconds]
mburns has quit [Ping timeout: 252 seconds]
<patrickv> I just look around me. they all know mysql, none know postgres
<littlebit> workmad3: the thing that I don't like about postgresql is that u don't clearly have a line between usershell and command shell of postgresql
<workmad3> I'm entirely the opposite :)
khismetix has joined #ruby
<workmad3> I know very few people that use mysql
<patrickv> but do you know a lot people who know mysql?
<workmad3> I know quite a lot of people that know and use postgres
xcv has quit [Ping timeout: 252 seconds]
<patrickv> what location/context are you in?
petey has quit [Ping timeout: 245 seconds]
<workmad3> UK, rails
SiliconG has joined #ruby
<patrickv> interesting
zipper has joined #ruby
jtdowney has joined #ruby
<workmad3> and that's both in person and online
zipper is now known as Guest42906
<patrickv> then again, nothing against postgres, more of what I've seen in many countries and context
<workmad3> as I said,
Guest42906 has quit [Client Quit]
<workmad3> I definitely agree that it used to be true, but I'm not convinced it's true anymore, that postgres is less used, harder to get support, etc
zipper_ has joined #ruby
zipper_ is now known as zipper{-_-}
<tobiasvl> we use postgres too, no mysql
_Andres has joined #ruby
<patrickv> oh well. things can evolve
<tobiasvl> haven't used mysql since i was a kid and learned php
<patrickv> I'm old ha ha
xcv_ has quit [Remote host closed the connection]
<workmad3> postgres has been getting a lot more notice in the last few years :)
<jlebrech> postgres is webscale haha
xcv has joined #ruby
khismetix has left #ruby [#ruby]
<patrickv> I'm from when we could actually use Ingress as a thing
<workmad3> and there was quite a large change when oracle took over sun (and by extension mysql) and people got worried... the mysql market fragmenting at that point with mariadb didn't help IMO :)
rm__ has joined #ruby
<patrickv> the management of mysql has always been dysfunctional
<workmad3> still, experiences differ, and it definitely depends on your team and what they use
<littlebit> ok during "apt-get dist-upgrade" I landed with the installation and configuration of the dep packages, and got this error "ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)"
<littlebit> what to do?
Davedo has joined #ruby
vlad_starkov has joined #ruby
<workmad3> I guess I'd say 'in the absence of notable experience or previous installs, I'd recommend postgres over mysql'
vlad_starkov has quit [Remote host closed the connection]
<patrickv> you restart mysql. service mysql start.
<workmad3> littlebit: sounds like your mysql server is either not installed or not started (could be because of a misconfiguration)
<workmad3> littlebit: or your socket path is incorrect :)
<Nowaker> the good thing of mysql, and the *only* good thing of mysql, is phpmyadmin. i have never used any better sql management software. ;)
<patrickv> hey workmad, do you know of a pattern in ruby that allows to feed the output of a subprocess, in chunks, to a ruby eventmachine?
<patrickv> I'm looking for the same behaviour as perl POE::Wheel::Run or maybe nodejs ChildProcess
mburns has joined #ruby
<rdark> I hear good things about pgadmin, if you're into GUIs
<patrickv> I could do it manually with fork/exec, and select on filehandles obviously, but there is probably a pattern that does it already, right?
<workmad3> patrickv: I guess you'd use popen to open non-blocking streams to the subprocess in something like an EM::Deferred, then in the deferred code (which iirc runs in a separate thread) you can read the subprocess output in into a buffer and then trigger an EM event when the chunk is filled
rm__ has quit [Ping timeout: 272 seconds]
<patrickv> yeah I could do that
<patrickv> but that means double copy
<patrickv> and I want to handle A LOT of data
<workmad3> patrickv: there might be an EM plugin for talking to a subprocess
SiliconG has quit [Ping timeout: 245 seconds]
<workmad3> patrickv: where's the double copy?
<Nowaker> rdark: I use it every day just because there aren't any better alternatives. but it's really weak compared to phpmyadmin.
<patrickv> "read the subprocess output into a buffer"
<workmad3> patrickv: that only leaves one copy in memory
withnale has quit [Read error: Operation timed out]
<patrickv> that I have to read again in my main process to do other stuff
<patrickv> mmh
<patrickv> if I could feed a filehandle instead of a filename to this thing
<rdark> Nowaker: The only thing I know about phpmyadmin is that it makes a mess in my logs when public webservers get scanned for vulnerable instances :)
<patrickv> it would probs work
eka has quit [Quit: Computer has gone to sleep.]
<Nowaker> rdark: phpmyadmin needs to be inside the vpn
<Nowaker> we all know php software is a crap internally... ;-)
<workmad3> Nowaker: you could always try PhpPGAdmin ;)
<patrickv> yes. and just like mysql it's super easy to use so it's popuplar
<patrickv> go figure ha ha ha :)
<Nowaker> workmad3: I use it too. it's crap. :D
<patrickv> ok time to eat
<Nowaker> it's extremely unusable...
<patrickv> see you guys
<rdark> Nowaker: (I meant scanned as in scanned for non-existent instances - I wouldn't ever actually put something like that publicly accesible, obviously..)
<workmad3> Nowaker: so just like PhpMyAdmin ;)
<Nowaker> rdark: oh, I see. sorry :)
yfeldblum has joined #ruby
<Nowaker> workmad3: nope. phpmyadmin is really cool, and I can do everything I need there without clicking too much - compared to pgadmin3 or phppgadmin
<Nowaker> s/I can/I could/
lkba has joined #ruby
<Nowaker> as I don't run production storage on mysql
<Nowaker> :P
VTLob has joined #ruby
arctarus has left #ruby ["Leaving"]
RoxasShadowRS has joined #ruby
<littlebit> workmad3: ok mysql-server was among the upgrades and is now working and the sock-file is present. And still get this: http://pastebin.com/dV47hP4j
kkrusty has joined #ruby
<kkrusty> Hi. is it possible to debug a ruby script with gdb which is using some shared library internally?
Bumptious has joined #ruby
drumusician has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
Lewix has quit [Remote host closed the connection]
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Hanmac> kkrusty: hm it should be, i tested it with my bindings too
cid404 has joined #ruby
<kkrusty> Hanmac: actually I've just realized I can do that too. I guess it should be gdb --args ruby script.rb instead of gdb --args script.rb
phinfonet has joined #ruby
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
<littlebit> patrickv: u there?
xcv_ has joined #ruby
<littlebit> anyone
poulson has joined #ruby
soba has quit [Ping timeout: 245 seconds]
withnale has joined #ruby
dEPy has joined #ruby
xcv has quit [Ping timeout: 245 seconds]
greenarrow has quit [Quit: 500]
yuuki1224 has quit [Remote host closed the connection]
zegerjan has quit [Ping timeout: 260 seconds]
ewnd9_ has joined #ruby
james_d_h has joined #ruby
mordocai has quit [Remote host closed the connection]
guardianx has joined #ruby
SiliconG has joined #ruby
james_d_h has quit [Ping timeout: 260 seconds]
larissa has joined #ruby
evenix_ has joined #ruby
gregoriokusowski has quit [Quit: gregoriokusowski]
meatherly has joined #ruby
fedesilva has joined #ruby
jtdowney has quit []
SiliconG has quit [Ping timeout: 260 seconds]
evenix_ has quit [Ping timeout: 240 seconds]
Rainicorn has joined #ruby
meatherly has quit [Ping timeout: 245 seconds]
VinceThePrince has joined #ruby
LadyRainicorn has quit [Ping timeout: 252 seconds]
ctp_ has joined #ruby
angusigu1ss has joined #ruby
tom____ has joined #ruby
Macaveli has quit [Ping timeout: 265 seconds]
tom____ is now known as t0m0_
<littlebit> please can someone help?
VinceThePrince has quit [Read error: Connection reset by peer]
Macaveli has joined #ruby
dx7 has joined #ruby
t0m0_ has quit [Client Quit]
tom____ has joined #ruby
tom____ has quit [Client Quit]
t0m0_ has joined #ruby
coca_rails has joined #ruby
littlebit has quit [Quit: littlebit]
<Hanmac> littlebit: are both "activerecord-mysql-adapter" and "mysql" gems installed?
ctp has quit [Ping timeout: 252 seconds]
t0m0_ has quit [Client Quit]
t0m0_ has joined #ruby
dx7 has quit [Ping timeout: 272 seconds]
senayar has quit [Remote host closed the connection]
stryek has quit [Ping timeout: 248 seconds]
heftig has quit [Quit: Quitting]
<t0m0_> has anyone had experience with tinymce?
coca_rails has quit [Ping timeout: 240 seconds]
<DouweM> t0m0_: I'm sure lots of people have. What's the issue?
<t0m0_> no issue
<t0m0_> just wanting some help using it to edit a post
<t0m0_> and update the "post" model
<t0m0_> i'm a noob so not sure how to approach it.
<DouweM> You can just write your model, views and controllers as you always would, and then use TinyMCE to transform the <textarea> into a WYSIWYG editor
<DouweM> that's all client-side, doesn't touch Ruby (or Rails, which I'm assuming you're using)
<DouweM> Also, if this is indeed a Rails thing, you may have better luck in #RubyOnRails
shime has quit [Ping timeout: 245 seconds]
jtdowney has joined #ruby
AntelopeSalad has joined #ruby
poulson has quit [Ping timeout: 245 seconds]
marcgg has quit [Ping timeout: 272 seconds]
VTLob has quit [Quit: VTLob]
greenarrow has joined #ruby
jackneill has joined #ruby
timonv has quit [Remote host closed the connection]
dkamioka has joined #ruby
Macaveli has quit [Ping timeout: 265 seconds]
<t0m0_> yeah it's a Rails thing, I'm not executing tinymce on load, instead it's caled onClick as I'm using Jquery Dialog. I'll give #RubyOnRails a go if this is the wrong forum.
littlebit has joined #ruby
Mon_Ouie has joined #ruby
timonv has joined #ruby
<littlebit> patrickv: u there?
yasushi has joined #ruby
poulson has joined #ruby
rm__ has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Read error: Connection reset by peer]
obs has quit [Quit: Konversation terminated!]
Rainicorn is now known as LadyRainicorn
wildroman2 has joined #ruby
timonv has quit [Ping timeout: 260 seconds]
<littlebit> i need some help with intalling redmine, in the installation process I get a rake error: http://pastebin.com/rTGNLiez
<littlebit> can someone help
davy_ has joined #ruby
Macaveli has joined #ruby
rm__ has quit [Ping timeout: 252 seconds]
SiliconG has joined #ruby
jrobertfox has joined #ruby
aryaching has quit [Ping timeout: 252 seconds]
boboc has joined #ruby
davy_ has quit [Ping timeout: 248 seconds]
yacks has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
timonv has joined #ruby
yfeldblum has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
therod has quit [Ping timeout: 245 seconds]
chrisseaton has joined #ruby
spacebug has joined #ruby
spacebug has left #ruby [#ruby]
greenarrow has quit [Quit: 500]
vlad_sta_ has joined #ruby
therod has joined #ruby
yasushi has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 260 seconds]
therod has quit [Client Quit]
mojjojo has joined #ruby
SiliconG has quit [Ping timeout: 260 seconds]
shime has joined #ruby
ndrei has joined #ruby
wildroman2 has quit [Remote host closed the connection]
popl has quit [Read error: Operation timed out]
dEPy has quit [Quit: Computer has gone to sleep.]
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
Butcho has joined #ruby
e^0 has joined #ruby
VTLob has joined #ruby
ohwhoa has quit [Read error: Connection reset by peer]
ohwhoa_ has joined #ruby
ewnd9_ has quit [Ping timeout: 264 seconds]
dx7 has joined #ruby
jtdowney has quit []
|RicharD| has joined #ruby
<|RicharD|> hi to all
<|RicharD|> how i can search the character \ into a string ?
<|RicharD|> i'm doing brand.name =~ /y/
<|RicharD|> with y letter, but for \ how I can do ?
yuuki1224 has joined #ruby
aryaching has joined #ruby
obs has joined #ruby
<LadyRainicorn> \\
<|RicharD|> ty
<Hanmac> littlebit: are both "activerecord-mysql-adapter" and "mysql" gems installed?
Virtualize|away has joined #ruby
heftig has joined #ruby
james_d_h has joined #ruby
bleak has quit [Read error: Connection reset by peer]
griffindy has joined #ruby
Hanmac1 has joined #ruby
mojjojo has quit [Quit: mojjojo]
dEPy has joined #ruby
james_d_h has quit [Ping timeout: 272 seconds]
<bhaak> I have 2 ways of summing a value over an array of objects: http://rubyfiddle.com/riddles/753d3
mojjojo has joined #ruby
Hanmac has quit [Ping timeout: 248 seconds]
<bhaak> the second one looks more elegant (or at least easier to understand) to me
<bhaak> I wonder if there's an elegant way with just using inject
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<LadyRainicorn> o.map(&:some_number).sum
mojjojo has quit [Client Quit]
senayar has joined #ruby
<Hanmac1> LadyRainicorn: sum is rails witchcraft
Hanmac1 is now known as Hanmac
<bhaak> hehe
<LadyRainicorn> ah, reduce(:+) then
<DouweM> two iterations vs one iteration
<LadyRainicorn> .lazy ;p
meatherly has joined #ruby
shime has quit [Ping timeout: 245 seconds]
DaniG2k has joined #ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<LadyRainicorn> ITS SMALLER MKAY.
xcv_ has quit [Remote host closed the connection]
<DouweM> weren't we trying to make this more elegant? :p
bleak has joined #ruby
<LadyRainicorn> lies it is golf
heftig has quit [Remote host closed the connection]
<bhaak> in my particular case, it's unlikely that the array will ever grow to more than 100 elements, so I don't care about one or two iterations :)
<bhaak> thx, LadyRainicorn
<DouweM> bhaak: I think the inject example is plenty readable *shrug*
<Hanmac> bhaak: array.lazy.map(&:some_number).inject(0,:+) might be the the best of the ways (PS: remember the default value of inject or it can bite in your ass)
nari has joined #ruby
IceyEC has joined #ruby
mojjojo has joined #ruby
<bhaak> DouweM: the first one? yes it is readable, but the "sum" variable feels not necessary.
SiliconG has joined #ruby
<DouweM> bhaak: sure
<Hanmac> bhaak & DouweM: look also at: {|sum,o| sum += o.some_number } is unnessary, {|sum,o| sum + o.some_number } is enough (the difference, += compared to = might be a little bit slower)
Sou|cutter has quit [Ping timeout: 252 seconds]
Sou|cutter has joined #ruby
meatherly has quit [Ping timeout: 240 seconds]
kkrusty has quit [Quit: leaving]
<LadyRainicorn> Do you need the default value here?
browndawg has left #ruby [#ruby]
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
vjt has quit [Ping timeout: 276 seconds]
jkamenik has joined #ruby
<DouweM> LadyRainicorn: I guess not, because it'll just take the first value otherwise which is fine in this case
[krisbulman] is now known as krisbulman
coca_rails has joined #ruby
chipotle_ has joined #ruby
fedesilva has quit [Remote host closed the connection]
dblessing has joined #ruby
aryaching has quit [Ping timeout: 265 seconds]
SiliconG has quit [Ping timeout: 245 seconds]
aryaching has joined #ruby
diegoviola has quit [Ping timeout: 252 seconds]
daGrevis has joined #ruby
chipotle has quit [Ping timeout: 245 seconds]
petey has joined #ruby
<daGrevis> hi! how can you pass the method X into a method call w/o calling the method X?
coca_rails has quit [Ping timeout: 240 seconds]
<DouweM> daGrevis: pass its name as a symbol
vjt has joined #ruby
<daGrevis> DouweM, what's the syntax for that? it's something like quoting in Lisp?
<daGrevis> s/it's/is it/
<DouweM> if the method is called 'upcase', use :upcase
<DouweM> :foo that's Ruby symbol syntax
<daGrevis> DouweM, ye, thanks. sounds cool :)
<daGrevis> I had this in my mind for a long time. finally asked
daGrevis has quit [Quit: Leaving]
vlad_sta_ has quit [Remote host closed the connection]
daGrevis has joined #ruby
krz has quit [Quit: WeeChat 0.4.2]
x77686d has joined #ruby
sdwrage has joined #ruby
x77686d has quit [Client Quit]
vlad_starkov has joined #ruby
xcv has joined #ruby
heftig has joined #ruby
petey has quit [Ping timeout: 264 seconds]
sdwrage has quit [Client Quit]
heftig has quit [Remote host closed the connection]
yacks has joined #ruby
chrisseaton has quit [Read error: Connection reset by peer]
krisbulman is now known as [krisbulman]
Al__ has left #ruby [#ruby]
rm_ has joined #ruby
[krisbulman] is now known as krisbulman
phansch has quit [Quit: Leaving]
<littlebit> Hanmac: zes
<littlebit> Hanmac: yes i did
<Hanmac> littlebit: error still happens?
kpshek has joined #ruby
freerobby has joined #ruby
<Hanmac> littlebit: do you use bundler and/or rvm?
yacks has quit [Max SendQ exceeded]
<littlebit> Hanmac: the error still happens, don't know anything about a bundler or rvm
<Hanmac> littlebit: you can try in #rubyonrails if they can fix your problem
yacks has joined #ruby
<apeiros> daGrevis: another way is to use block arguments
<apeiros> daGrevis: and a third way is to use Method instances. See Object#method
mojjojo has quit [Quit: mojjojo]
rm_ has quit [Ping timeout: 252 seconds]
<apeiros> I'd say order of "common-ness" is block > symbol > method
tjaco has joined #ruby
SeySayux has quit [Ping timeout: 272 seconds]
mojjojo has joined #ruby
rmorello has joined #ruby
<littlebit> Hanmac: ok
<DouweM> daGrevis: it really depends on what you're trying to do
jrobertfox has quit [Remote host closed the connection]
greenarrow has joined #ruby
LadyRainicorn has quit [Quit: Bye]
drumusician has quit [Ping timeout: 252 seconds]
Butcho has quit [Quit: Textual IRC Client: www.textualapp.com]
SeySayux has joined #ruby
<Hanmac> daGrevis: an nice place how to use method instances
<Hanmac> >> Dir["*"].sort_by(&File.method(:size))
<eval-in> Hanmac => ["input-0ead1b152273", "output-0ead1b152273", "source-0ead1b152273"] (https://eval.in/95981)
mojjojo has quit [Client Quit]
<daGrevis> thanks. it's enough :)
Advocation has quit [Quit: Advocation]
<apeiros> STAAAHP! Errno::ETOOMUCHINFO
ewnd9_ has joined #ruby
<apeiros> ;-)
mojjojo has joined #ruby
yfeldblum has joined #ruby
mark_locklear has joined #ruby
mojjojo has quit [Client Quit]
<greenarrow> is it possible to 'unrequire' a 'required' extension
<Hanmac> greenarrow: nope
mojjojo has joined #ruby
<greenarrow> trying to write a rake task to unload a gem
<greenarrow> is it even possible
<Hanmac> its like fixing an egg after it hits the ground ;P
<DouweM> greenarrow: what problem are you trying to solve?
<greenarrow> speeding up the launch of my rubymotion app by unloading a gem which causes a slowdown
yasushi has joined #ruby
<DouweM> and why do you have to require the gem at all if you apparently don't need it?
* Hanmac points and laugh at rubymotion
heftig has joined #ruby
<waxjar> you can try loading it until you need it, it'll still cause the slowdown though.
yfeldblum has quit [Ping timeout: 264 seconds]
<greenarrow> I do in some cases, I just want a rake task to remove that gem requirement for when i dont need it
marcgg has joined #ruby
SiliconG has joined #ruby
yuuki1224 has quit [Remote host closed the connection]
mojjojo has quit [Client Quit]
dEPy has quit [Quit: Computer has gone to sleep.]
Shidash has quit [Ping timeout: 245 seconds]
yuuki1224 has joined #ruby
<waxjar> why don't you simply not load it, unless you need it? using an environment variable for example
<greenarrow> I guess, was just wondering if it was possible through a rake task
rh1n0 has joined #ruby
rh1n0 has quit [Max SendQ exceeded]
vpretzel has joined #ruby
Advocation has joined #ruby
heftig has quit [Quit: Quitting]
DaniG2k has quit [Quit: leaving]
jrobertfox has joined #ruby
eka has joined #ruby
heftig has joined #ruby
yuuki1224 has quit [Ping timeout: 245 seconds]
rh1n0 has joined #ruby
rh1n0 has quit [Max SendQ exceeded]
ndrei has quit [Ping timeout: 272 seconds]
banister has joined #ruby
<shevy> Hanmac that syntax is weird Dir["*"].sort_by(&File.method(:size))
<shevy> how does it know which argument to take?
<Hanmac> with magic?
<shevy> there is no magic
t0m0_ has quit [Quit: Lost terminal]
<shevy> File.size would not work
jtdowney has joined #ruby
SiliconG has quit [Ping timeout: 264 seconds]
<DouweM> what's weird about it? the File.size method takes one argument: the file name, which is actually what sort_by will pass its block
rh1n0 has joined #ruby
<DouweM> the block in this case being a proc for the File.size method
jtdowney has quit [Client Quit]
jtdowney has joined #ruby
adayzdone has joined #ruby
tkuchiki has quit [Remote host closed the connection]
stryek has joined #ruby
krawchyk has joined #ruby
danshultz has joined #ruby
<Hanmac> shevy: Dir["*"].sort_by(&File.method(:mtime)) works too
<adayzdone> Hi All... I need someone to help either A) translate a ruby script into pseudo code B) adapt the script to take 3 parameters and return the results ... Anyone interested?
dfranciosi has quit []
tvw has quit []
<adayzdone> wil pay $50/hr
<shevy> :\
james_d_h has joined #ruby
Megtastique has joined #ruby
wildroman2 has quit [Remote host closed the connection]
dawkirst_ has quit [Ping timeout: 272 seconds]
AxonetBE has joined #ruby
dfranciosi has joined #ruby
<AxonetBE> how can I make from a string user.shop.estimates, where the last part is depending on a string I have so it can be estimates, orders or invoices
<DouweM> adayzdone: show us the script, if it's interesting and not too much, chances are we'll do it for fun and for free
<Hanmac> shevy: i think the question is why i need the Method #method right?
tonni has quit [Remote host closed the connection]
Guest6676 has quit [Read error: Operation timed out]
<shevy> yes
<Hanmac> "File.size would not work" << thats the reason why
daGrevis has left #ruby ["Leaving"]
blaz3rz has joined #ruby
james_d_h has quit [Ping timeout: 260 seconds]
<shevy> Hanmac why does the method() variant work but not directly calling the method by its name?
<adayzdone> DouweM There is a tab delimitted text file that has phrases in one language coupled with translations in another. I have blocks of text I need to parse with the translation text
<Hanmac> shevy sort_by wants a block thats why i need &
<shevy> hmm
<DouweM> shevy: File.size would call the size method without an argument. what we want is a refernce to the method itself so that we can call it with random arguments like a block
bnjamin has quit [Remote host closed the connection]
diegoviola has joined #ruby
<shevy> ok but in a block you normally do something like |foo| and then File.size(foo). I dont understand how that can be avoided in the context above
<DouweM> adayzdone: meh, not interested. clean up the Ruby code and add some comments, and it should be just as readable as pseudocode, if not more
<adayzdone> Unfortunately, I don't know ruby
<DouweM> &File.method(:size) is basically the same thing as the block { |*args| File.size(*args) }
<shevy> adayzdone it is better to paste the content of such ruby files on somewhere like pastie.org
chipotle_ has quit [Ping timeout: 260 seconds]
<Hanmac> adayzdone: i dont know about quakeAction but "iconv will be deprecated in the future, use String#encode instead."
lfox has joined #ruby
blaz3rz has quit [Ping timeout: 240 seconds]
tobago has joined #ruby
sdwrage has joined #ruby
ndrei has joined #ruby
<adayzdone> Hanmac If someone could walk me through the parsing logic, that would be enough. I either have to recreate parsing logic in another language, or make a new ruby script with same logic. New script would take 3 parameters: list of text blocks to translate, list of source language snippets, list of dest language snippets. New script would then return list of translated blocks
linojon has joined #ruby
Rylee has joined #ruby
mlpinit has joined #ruby
chrisseaton has joined #ruby
breakingthings has joined #ruby
Rylee has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
tjaco has quit [Read error: Connection reset by peer]
shime has joined #ruby
ffranz has quit [Quit: Leaving]
ndrei has quit [Ping timeout: 245 seconds]
yuuki1224 has joined #ruby
ffranz has joined #ruby
yuuki1224 has quit [Remote host closed the connection]
tkuchiki has joined #ruby
yuuki1224 has joined #ruby
drumusician has joined #ruby
<shevy> adayzdone did you put the script onto pastie.org yet
bean has joined #ruby
enebo has joined #ruby
dawkirst has joined #ruby
griffindy has quit [Quit: Computer has gone to sleep.]
wallerdev has joined #ruby
w4pm has joined #ruby
mojjojo has joined #ruby
<adayzdone> shevy Can I delete posts from there as well?
coca_rails has joined #ruby
<shevy> ah well
<adayzdone> I don't want to make it permanent
<shevy> ...
bricker`LA has quit [Ping timeout: 240 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
dEPy has joined #ruby
SiliconG has joined #ruby
fedesilva has joined #ruby
ndrei has joined #ruby
yuuki1224 has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby
yasushi has quit [Remote host closed the connection]
dawkirst has quit [Ping timeout: 245 seconds]
S0da has joined #ruby
coca_rails has quit [Ping timeout: 240 seconds]
w4pm has quit [Ping timeout: 260 seconds]
tonni has joined #ruby
krz has joined #ruby
v0n has joined #ruby
figgleberry has joined #ruby
banister has quit [Quit: Textual IRC Client: www.textualapp.com]
Hobogrammer has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
chipotle has joined #ruby
wildroman2 has joined #ruby
shime has quit [Ping timeout: 248 seconds]
SiliconG has quit [Ping timeout: 272 seconds]
chrisseaton has quit [Read error: Connection reset by peer]
rm_ has joined #ruby
zoidberg- has left #ruby [#ruby]
Squarepy has joined #ruby
tvw has joined #ruby
dkamioka has quit [Remote host closed the connection]
dkamioka has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
wallerdev has quit [Quit: wallerdev]
platzhirsch has joined #ruby
<platzhirsch> Python Version Management is a truckload full of horse crap
* platzhirsch hugs RVM
<hoelzro> platzhirsch: you mean virtualenv?
<platzhirsch> hoelzro: yep
<Squarepy> it is ok
<hoelzro> I've not used it much, but I'm curious: what don't you like about it?
krz has quit [Read error: Operation timed out]
<platzhirsch> hoelzro: in order to upgrade the Python version I need to create a new virtualenv
m8 has joined #ruby
rm_ has quit [Ping timeout: 272 seconds]
e^0 has quit [Quit: WeeChat 0.4.1]
<platzhirsch> pip freeze my old packages and pip install -r them manually in the new one
bricker has joined #ruby
dawkirst has joined #ruby
tannerburson has quit [Remote host closed the connection]
krz has joined #ruby
tannerburson has joined #ruby
tannerburson has left #ruby [#ruby]
rljohnsn has joined #ruby
banister has joined #ruby
AlSquirrel has quit [Quit: Quitte]
sethen has joined #ruby
sambao21 has joined #ruby
<Squarepy> well would be a nice feature, but does that make it horse crap :)
byprdct has joined #ruby
yfeldblum has joined #ruby
<platzhirsch> fine, it's just disfigured
yasushi has joined #ruby
sailias has joined #ruby
Vivekananda has joined #ruby
nfk has joined #ruby
nfk has joined #ruby
top4o has quit [Quit: ChatZilla 0.9.90.1 [Firefox 26.0/20131205075310]]
yfeldblum has quit [Ping timeout: 252 seconds]
pietr0 has quit [Quit: pietr0]
phansch has joined #ruby
allaire has joined #ruby
tonni has quit [Read error: Connection reset by peer]
dawkirst has quit [Ping timeout: 248 seconds]
<shevy> hehe
dawkirst has joined #ruby
<shevy> it fits
<shevy> an inferior solution for an inferior language
<Squarepy> ha
AlSquire has joined #ruby
shvelo has joined #ruby
petey has joined #ruby
byprdct has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> though that then gives us the question
<shevy> why platzhirsch is using python in the first place
sethen has quit [Quit: Leaving...]
<platzhirsch> shevy: We used it at work, because we work with CKAN (metadata/data storage mainly used for open data)
<platzhirsch> s/used/use
e^0 has joined #ruby
sebouboubou has joined #ruby
<platzhirsch> Which is written in Python, hence the plugins are written in Python, too. I probably could use any language and just use the API somehow, but this is rubbish, too. It's more the attitude I don't care what you do, I just implement it in Perl, becuase that's what I have done in the last 10 years and it always worked for me
SiliconG has joined #ruby
Lewix has joined #ruby
Guest6065 is now known as NaStYdoG
jpstokes has joined #ruby
lxsameer has quit [Quit: Leaving]
alexfreidah has joined #ruby
bnjamin has joined #ruby
tonni has joined #ruby
whitepaper has joined #ruby
pixelgremlins_ba is now known as pixelgremlins
james_d_h has joined #ruby
ewnd9_ has quit [Ping timeout: 272 seconds]
wildroman2 has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
meatherly has joined #ruby
shvelo has quit [Ping timeout: 240 seconds]
jlast has joined #ruby
SiliconG has quit [Ping timeout: 240 seconds]
james_d_h has quit [Ping timeout: 252 seconds]
SiliconG has joined #ruby
doodlehaus has joined #ruby
iceden has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Parker0 has joined #ruby
AlHafoudh has joined #ruby
<AlHafoudh> hi
thesheff17 has quit [Ping timeout: 248 seconds]
Sleepee has joined #ruby
RoryHughes has joined #ruby
shvelo has joined #ruby
Megtastique has quit []
jprovazn has quit [Quit: Leaving]
Neomex has joined #ruby
lmickh has joined #ruby
LiohAu has joined #ruby
tonni has quit [Read error: Connection reset by peer]
dEPy has quit [Quit: Lingo - http://www.lingoirc.com]
mojjojo has quit [Quit: mojjojo]
<LiohAu> is this #{@var} a valid syntax ?
<apeiros> on its own, no
<apeiros> in a string, yes
jerius has joined #ruby
mojjojo has joined #ruby
<apeiros> (well, on it's own it's a comment…)
<apeiros> also in some other literals (regex, %W, ``)
dkamioka has quit [Remote host closed the connection]
<LiohAu> "some string with a : #{@var}" ?
<apeiros> yes
dkamioka has joined #ruby
zigomir_ has joined #ruby
alexfreidah has quit [Ping timeout: 253 seconds]
<apeiros> #{expression} is replaced with the result of expression.tos
dkamioka has quit [Remote host closed the connection]
<apeiros> gah
zigomir has quit [Read error: Connection reset by peer]
<apeiros> #{expression} is replaced with the result of expression.to_s
<LiohAu> >> @var = "test"; "some string with a #{@var}"
<eval-in> LiohAu => "some string with a test" (https://eval.in/96032)
<apeiros> >> "1+1 = #{1+1}"
<eval-in> apeiros => "1+1 = 2" (https://eval.in/96033)
wallerdev has joined #ruby
<LiohAu> YAY! first time I use the bot :)
ahawkins has quit [Quit: leaving]
brtdv has joined #ruby
zoscoy has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
wallerdev has quit [Client Quit]
bricker`LA has joined #ruby
Kricir has joined #ruby
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<adayzdone> shevy Here is a paste : http://pastebin.com/vvxEa9C9
Megtastique has joined #ruby
bmaland has quit [Ping timeout: 272 seconds]
guardianx has quit [Remote host closed the connection]
SCommette has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dawkirst has quit [Ping timeout: 245 seconds]
griffindy has joined #ruby
brennanMKE has joined #ruby
coca_rails has joined #ruby
dawkirst has joined #ruby
sergicles has quit [Quit: sergicles]
jobewan has joined #ruby
krz has quit [Quit: WeeChat 0.4.2]
bricker`LA has quit [Ping timeout: 245 seconds]
tylersmith has joined #ruby
x77686d has joined #ruby
kevinykchan has joined #ruby
kevinykc_ has quit [Ping timeout: 245 seconds]
robbyoconnor has quit [Ping timeout: 252 seconds]
coca_rails has quit [Ping timeout: 240 seconds]
brunops has joined #ruby
dawkirst_ has joined #ruby
asmodlol has quit [Remote host closed the connection]
mansi has joined #ruby
rippa has joined #ruby
jrobertfox has quit [Quit: Take it easy.]
zipper{-_-} has quit [Quit: leaving]
kobain has joined #ruby
mansi has quit [Client Quit]
chipotle has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
tobago has quit [Remote host closed the connection]
Hobogrammer has quit [Ping timeout: 265 seconds]
larissa has quit [Quit: Leaving]
interactionjaxsn has joined #ruby
dawkirst has quit [Ping timeout: 245 seconds]
clamstar has joined #ruby
mansi has joined #ruby
pmullin has joined #ruby
mary5030 has joined #ruby
vlad_sta_ has joined #ruby
vt102 has quit [Remote host closed the connection]
razibog has joined #ruby
mary5030 has quit [Remote host closed the connection]
vlad_starkov has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
mengu has quit []
rm_ has joined #ruby
duggiefresh has joined #ruby
glen has joined #ruby
Megtastique has quit []
RoryHughes has quit []
b00stfr3ak has joined #ruby
<glen> hi. i have array of elements, which value (mountpoint) i want to take as new array "key", thus elimitating duplicates by using last "match". how do i do it best?
<bricker> glen: do can use Array#uniq with a block, see here: http://www.ruby-doc.org/core-2.1.0/Array.html#method-i-uniq
jedimind has joined #ruby
<glen> my initial stupid code is like this: http://sprunge.us/iGDQ
duggiefresh has quit [Read error: Connection reset by peer]
vlad_sta_ has quit [Ping timeout: 265 seconds]
duggiefresh has joined #ruby
mojjojo has quit [Quit: mojjojo]
brian___ has joined #ruby
tagrudev has quit [Remote host closed the connection]
kevind has joined #ruby
rm_ has quit [Ping timeout: 252 seconds]
Hanmac1 has joined #ruby
Sleepee has quit [Quit: Leaving]
maletor has joined #ruby
vlad_starkov has joined #ruby
<bricker> glen: For that, you could try something like: `node['filesystem'].map { |_, fs| fs['mount'] }.compact.uniq`
<bricker> glen: honestly your solution is fine too
axl_ has joined #ruby
<glen> i thought block that returns final array is more readable
FifthWall has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
FifthWall has left #ruby ["Textual IRC Client: www.textualapp.com"]
asteve has joined #ruby
<glen> .compact is to elimiate empty fs['mount'] ?
alekst has joined #ruby
<bricker> glen: nil, yes
Virtualize|away has quit [Read error: Connection reset by peer]
virt|work has joined #ruby
bleak has quit [Ping timeout: 252 seconds]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mojjojo has joined #ruby
Wolland has joined #ruby
lukec has joined #ruby
bleak has joined #ruby
virt|work has quit [Client Quit]
<glen> ok. seems i need to exclude fs[fs_type]='tmpfs' too
bean has joined #ruby
ckinni has joined #ruby
<glen> .reject{|f| fs['fs_type']!='tmpfs'} ?
lukec has quit [Client Quit]
bricker has quit [Ping timeout: 252 seconds]
brian___ has quit [Quit: brian___]
<glen> hmm, .reject tries to modify original array which is not allowed
kaldrenon has joined #ruby
lukec has joined #ruby
yasushi has quit [Remote host closed the connection]
romdi` has quit [Ping timeout: 260 seconds]
zipper has joined #ruby
Sleepee has joined #ruby
waxjar is now known as shadesaaaa
blaz3rz has joined #ruby
bluOxigen has joined #ruby
Sleepee has quit [Client Quit]
thomasxie has quit [Quit: Leaving.]
bleak has quit [Ping timeout: 248 seconds]
brunops has quit [Ping timeout: 248 seconds]
bricker has joined #ruby
Sleepee has joined #ruby
rh1n0 has quit [Ping timeout: 252 seconds]
<glen> well. this works too, but looks like hack. imho that fs type exclude should be another .block_call_something
<glen> fs = node['filesystem'].map { |_, fs| fs['fs_type'] != 'tmpfs' ? fs['mount'] : nil }.compact.uniq
v0n has quit [Ping timeout: 264 seconds]
JohnBat26 has joined #ruby
Hanmac has joined #ruby
<shadesaaaa> glen: node['filesystem'].reject { |_,fs| fs['fs_type'] == 'tmpfs' }.map { |_,fs| fs['mount'] }.uniq ?
zipper has quit [Remote host closed the connection]
shadesaaaa is now known as waxjar
ryantm has joined #ruby
maletor has quit [Read error: Connection reset by peer]
zipper has joined #ruby
Mattx has quit [Ping timeout: 252 seconds]
<glen> yeap. but .compact too to exclude nil
rm_ has joined #ruby
_maes_ has joined #ruby
maletor has joined #ruby
patrickv has left #ruby [#ruby]
Virtualize|away has joined #ruby
Hanmac1 has quit [Ping timeout: 240 seconds]
byprdct has joined #ruby
arctaruz has joined #ruby
<waxjar> you don't need compact and the wierd terneary in #map if you first filter your data :)
ndrei has quit [Ping timeout: 252 seconds]
<waxjar> *terniary (?)
rudisimo has joined #ruby
geggam has joined #ruby
tesuji has quit [Ping timeout: 248 seconds]
ewnd9_ has joined #ruby
bleak has joined #ruby
v0n has joined #ruby
wallerdev has joined #ruby
makara has quit [Ping timeout: 272 seconds]
<glen> ok. i stick with this, as the others modified input (or accessed it incorrectly):
<glen> fs = node['filesystem'].map { |_, fs| fs['fs_type'] != 'tmpfs' ? fs['mount'] : nil }.compact.uniq
octoberry has joined #ruby
ace_striker has joined #ruby
Macaveli has quit [Ping timeout: 245 seconds]
ace_striker has quit [Changing host]
ace_striker has joined #ruby
ace_striker has joined #ruby
ace_striker has quit [Changing host]
adayzdone has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
Macaveli has joined #ruby
Uranio has joined #ruby
pzula has joined #ruby
gazoombo_ is now known as gazoombo
Mattx has joined #ruby
IceDragon has joined #ruby
Kricir_ has joined #ruby
<Uranio> a friend tell me not muchm time ago: "ruby will no be a lagn that exist in the next 5 or 6 year, better learn smalltalk". With make me wonder: What is the future of ruby?
pietr0 has joined #ruby
<bricker> Uranio: Ruby will be around for much longer than 5 or 6 years from now
dkamioka has joined #ruby
<bricker> Uranio: the future is that they will continue to work on it and improve it
<Uranio> bricker: I answer him, that ruby is thinked to adapt to the times
<Uranio> would be that correct?
troessner has quit [Quit: Leaving]
<bricker> and people will continue to decide whether or not Ruby is the best tool for their task.
aryaching_ has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
dawkirst__ has joined #ruby
<bricker> Uranio: Ruby is under constant development, so yes, it will keep up with new problems as they arise
<Uranio> and then, hi respond: -ruby is only for web, when the web dry out or pass to the old fashion times, ruby will be old fashion to. But I think taht ruby will be ready for adapt to that "new thing who replace web". Would be that a correct think?
wildroman2 has joined #ruby
dawkirst_ has quit [Ping timeout: 264 seconds]
<bricker> Ruby is just a computer language
snath has quit [Ping timeout: 272 seconds]
<bricker> Ruby on Rails is a web framework, which may or may not be under active development in 5-6 years
Kricir has quit [Ping timeout: 260 seconds]
<Uranio> good point
<bricker> but Ruby is just a computer language like Java or Python
aryaching has quit [Ping timeout: 252 seconds]
msuszczy has quit [Quit: leaving]
razibog has quit [Ping timeout: 260 seconds]
whitepaper has quit [Quit: WeeChat 0.4.2]
freezey has joined #ruby
marcoecc has joined #ruby
OdNairy has joined #ruby
pzula has quit [Ping timeout: 252 seconds]
iceden has joined #ruby
Davey has joined #ruby
Solnse has joined #ruby
ctp has joined #ruby
digital-ghost has joined #ruby
bnjamin has quit [Remote host closed the connection]
<Xeago> could anyone tell me where this has syntax errors?
<Xeago> this exact code used to run fine
Megtastique has joined #ruby
octoberry has quit [Ping timeout: 245 seconds]
senj has joined #ruby
cj3kim has joined #ruby
devinus has joined #ruby
yalue has quit [Quit: Leaving]
<apeiros> Xeago: can you paste the error too please?
dawkirst_ has joined #ruby
razibog has joined #ruby
ctp_ has quit [Ping timeout: 264 seconds]
<Xeago> done, refresh
ctp_ has joined #ruby
chipotle has quit [Quit: cya]
<Xeago> ah I know
JasmeetQA has joined #ruby
<Xeago> ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]
nathancahill has joined #ruby
<Xeago> ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin12.5.0] fixes it :3
vlad_starkov has quit [Remote host closed the connection]
<Xeago> I am fookin stupid
RaCx_ has joined #ruby
pzula has joined #ruby
sdwrage has joined #ruby
robbyoconnor has joined #ruby
RaCx has quit [Ping timeout: 252 seconds]
RaCx_ is now known as RaCx
robbyoconnor has quit [Client Quit]
coca_rails has joined #ruby
hrh has joined #ruby
dawkirst__ has quit [Ping timeout: 252 seconds]
<hrh> is anybody using Koala gem and knows how to get all friends' page likes?
Kricir_ has quit [Remote host closed the connection]
<apeiros> Xeago: looking
<Xeago> apeiros: I figured it out
<apeiros> Xeago: oh, you used the wrong ruby?
<Xeago> yea :|
tkuchiki has quit [Remote host closed the connection]
<apeiros> :)
yacks has quit [Quit: Leaving]
<apeiros> shit happens
ctp has quit [Ping timeout: 272 seconds]
pierre1_ has quit [Ping timeout: 264 seconds]
<littlebit> hi people, I want to use bundle for my dependency management, and there is a part where it tells me that it is missing tilt v1.4.1. So I did "gem install tilt" , and it installed tilt 2.0, then I ran "bundle install" again and I get the following:
<littlebit> Bundler::GemNotFound: Could not find tilt-1.4.1.gem for installation
<littlebit> An error occurred while installing tilt (1.4.1), and Bundler cannot continue.
<littlebit> Make sure that `gem install tilt -v '1.4.1'` succeeds before bundling.
<littlebit> can someone help
momomomomo has joined #ruby
Solnse has quit [Remote host closed the connection]
coca_rails has quit [Ping timeout: 240 seconds]
lele has quit [Ping timeout: 252 seconds]
<littlebit> wiat
chrisseaton has joined #ruby
Alina-malina has quit [Quit: Leaving]
adayzdone has joined #ruby
mando has joined #ruby
noop has quit [Ping timeout: 240 seconds]
noop has joined #ruby
<Uranio> littlebit: gem sources
<Uranio> exec ^
aganov has quit [Quit: Leaving]
mark_locklear has quit [Read error: Operation timed out]
<shevy> wheee look Hanmac a bundler problem again, can you help with your beloved software O_O
lele has joined #ruby
<littlebit> Uranio: current sources: rubygems.org
<Uranio> shall see something like this:
<Uranio> root@alfa:~# gem sources
<Uranio> *** CURRENT SOURCES ***
mark_locklear has joined #ruby
mikecmpbll has joined #ruby
<Uranio> shevy: bundler is breaked like some months ago
Alina-malina has joined #ruby
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
CNB_ has joined #ruby
<Uranio> our community repo is using and old version, beacuse the newest are very brokends
<CNB_> Hey, I've got some crazy gem install problem, and I can't figure it out
ndrei has joined #ruby
<CNB_> gem install chef is really really slow
ww26 has left #ruby [#ruby]
<CNB_> What could be causing the slowdown?
<littlebit> is there a way of making the command "gem" use more than 1 core?
Yahkob has joined #ruby
<CNB_> The network's fine. I can hit individual websites immediately
byprdct has quit [Ping timeout: 252 seconds]
<CNB_> Running with -V shows it hanging after "GET http://production.s3.rubygems.org/specs.4.8.gz" "304 Not Modified"
SiliconG has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> littlebit if it is pure ruby, possibly not
ahawkins has joined #ruby
<CNB_> I note the -V option is really badly written
<CNB_> It doesn't actually tell you what it's doing.
Macaveli has quit [Ping timeout: 272 seconds]
<CNB_> Is it running something? Downloading something?
SiliconG has joined #ruby
kevind_ has joined #ruby
<CNB_> How can I tell?
AxonetBE has quit [Quit: AxonetBE]
Es0teric has joined #ruby
heftig has quit [Quit: Quitting]
<CNB_> Is there a better way to install chef? This is taking far too long.
philtr_ is now known as philtr
<Uranio> littlebit: /join #rubygems
e^0 has quit [Quit: WeeChat 0.4.1]
<littlebit> Uranio: k
<Uranio> I will go to, for claim the bundler problem
Lewix has quit [Remote host closed the connection]
kevind has quit [Ping timeout: 264 seconds]
kevind_ is now known as kevind
ahawkins has quit [Quit: Lost terminal]
viki has joined #ruby
ahawkins has joined #ruby
aryaching_ has quit [Ping timeout: 240 seconds]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
evenix has joined #ruby
_maes_ has joined #ruby
cj3kim has quit [Remote host closed the connection]
asmodlol has joined #ruby
nateberkopec has joined #ruby
noname001__ has quit [Read error: Operation timed out]
littlebit has quit [Excess Flood]
littlebit has joined #ruby
ahawkins has quit [Client Quit]
ahawkins has joined #ruby
yfeldblum has joined #ruby
dawkirst__ has joined #ruby
Yahkob has quit [Remote host closed the connection]
marcgg_ has joined #ruby
evenix has quit [Read error: Connection reset by peer]
ryantm has quit [Ping timeout: 260 seconds]
evenix has joined #ruby
rljohnsn has quit [Quit: Leaving.]
x77686d has quit [Quit: x77686d]
dawkirst_ has quit [Ping timeout: 260 seconds]
AlHafoudh has quit [Ping timeout: 252 seconds]
g0bl1n has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
amritanshu_RnD has quit [Remote host closed the connection]
therod has joined #ruby
mercwithamouth has joined #ruby
therod has quit [Client Quit]
mikepack has joined #ruby
hrh has quit [Quit: hrh]
blackmesa has joined #ruby
canton7-mac has joined #ruby
wtfitsme has joined #ruby
canton7-mac has quit [Remote host closed the connection]
littlebit has quit [Excess Flood]
blackmesa has quit [Remote host closed the connection]
canton7-mac has joined #ruby
littlebit has joined #ruby
canton7-mac has quit [Remote host closed the connection]
marcgg has quit [Ping timeout: 272 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
canton7-mac has joined #ruby
freezey has quit [Remote host closed the connection]
evenix has quit [Read error: Connection reset by peer]
evenix_ has joined #ruby
razibog has quit [Ping timeout: 272 seconds]
momomomomo has quit [Quit: momomomomo]
platzhirsch has left #ruby [#ruby]
mocfive has joined #ruby
zigomir_ has quit [Remote host closed the connection]
Yahkob has joined #ruby
pithagora has quit [Quit: Leaving]
zigomir has joined #ruby
phansch has quit [Ping timeout: 264 seconds]
havenwood has quit [Remote host closed the connection]
momomomomo has joined #ruby
havenwood has joined #ruby
boboc has quit []
Kricir has joined #ruby
chrisseaton has quit [Read error: Connection reset by peer]
freezey has joined #ruby
yinkum has joined #ruby
vt102 has joined #ruby
asmodlol has quit [Remote host closed the connection]
Lewix has joined #ruby
coca_rails has joined #ruby
asmodlol has joined #ruby
evenix_ is now known as Evenix
zigomir has quit [Ping timeout: 272 seconds]
Neomex has quit [Ping timeout: 252 seconds]
zipper has quit [Quit: leaving]
teddyp1cker has joined #ruby
michael_lee has quit [Quit: Ex-Chat]
Yahkob has quit [Remote host closed the connection]
glen has left #ruby [#ruby]
chrisseaton has joined #ruby
Neomex has joined #ruby
Yahkob has joined #ruby
blackmesa has joined #ruby
havenwood has quit [Ping timeout: 252 seconds]
phinfonet has quit [Ping timeout: 260 seconds]
sguselnikov has joined #ruby
momomomomo_ has joined #ruby
Hobogrammer_ has joined #ruby
Adawerk has joined #ruby
senj has quit [Quit: Sleep Now]
vt102 has quit [Max SendQ exceeded]
phinfonet has joined #ruby
senj has joined #ruby
nathancahill has quit [Quit: nathancahill]
Hobogrammer_ is now known as Hobogrammer
RoryHughes has joined #ruby
<dagobah> Nicer way to do: .first.try(:[], 'bytes') || 0
Emmanuel_Chanel has quit [Ping timeout: 240 seconds]
araujo has joined #ruby
x77686d has joined #ruby
<shevy> that is not very nice
vt102 has joined #ruby
<dagobah> can one do a fetch?
<shevy> do you have example input/data?
Voodoofish430 has joined #ruby
whowantstolivef3 has joined #ruby
vt102 has quit [Max SendQ exceeded]
araujo has quit [Max SendQ exceeded]
Emmanuel_Chanel has joined #ruby
momomomomo_ has quit [Client Quit]
<Mon_Ouie> Well Hash#fetch is only defined for Hash, not for nil (which I assume is possible seeing how you wrote that)
TMM has quit [Quit: Ex-Chat]
havenwood has joined #ruby
<dagobah> Indeed :(
<dagobah> I could try then fetch?
<Mon_Ouie> (Also worth noting: try is not part of Ruby)
araujo has joined #ruby
nathancahill has joined #ruby
vt102 has joined #ruby
adayzdone has quit [Quit: Textual IRC Client: www.textualapp.com]
phansch has joined #ruby
<shevy> aha!
TheNumb has quit [Read error: Connection reset by peer]
<shevy> so he uses illegal constructs!
whowantstolivefo has quit [Ping timeout: 245 seconds]
TheNumb has joined #ruby
tylersmith has quit [Remote host closed the connection]
mocfive has quit [Remote host closed the connection]
ohwhoa_ has quit [Quit: woah!]
mocfive has joined #ruby
Squarepy has quit [Ping timeout: 248 seconds]
Squarepy has joined #ruby
timonv has quit [Remote host closed the connection]
sski has quit [Remote host closed the connection]
kpshek has quit []
sski has joined #ruby
momomomomo has quit [Quit: momomomomo]
troyready has joined #ruby
mikepack_ has joined #ruby
deception has joined #ruby
adayzdone has joined #ruby
enebo has quit [Quit: enebo]
duggiefresh has quit [Remote host closed the connection]
mocfive has quit [Ping timeout: 272 seconds]
phinfonet has quit [Ping timeout: 245 seconds]
pel_daniel has joined #ruby
duggiefr_ has joined #ruby
carraroj has joined #ruby
sski has quit [Ping timeout: 245 seconds]
Kricir has quit [Remote host closed the connection]
ewnd9_ has quit [Read error: Operation timed out]
momomomomo has joined #ruby
dawkirst__ has quit [Ping timeout: 265 seconds]
tesuji has joined #ruby
momomomomo has quit [Client Quit]
Kricir has joined #ruby
meatherl_ has joined #ruby
daxroc has quit [Quit: Leaving.]
roolo has quit [Quit: Linkinus - http://linkinus.com]
tesuji has quit [Read error: Connection reset by peer]
Kricir has quit [Remote host closed the connection]
phinfonet has joined #ruby
momomomomo has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Kricir has joined #ruby
<Hanmac> apeiros: did you ever played one of the pokemon games when you was younger?
<apeiros> nope
<apeiros> I'm an old fart
Wolland has quit [Remote host closed the connection]
duggiefr_ has quit [Ping timeout: 245 seconds]
<apeiros> pokemon was for the teenies when I wasn't one anymore
e^0 has joined #ruby
meatherly has quit [Ping timeout: 252 seconds]
Solnse has joined #ruby
<Hanmac> hmm then you might not get THIS joke: https://i.chzbgr.com/maxW500/8025328128/hAB016C27/
sambao21 has quit [Quit: Computer has gone to sleep.]
sambao21 has joined #ruby
[gmi] has quit [Quit: Leaving]
dagobah has quit [Quit: Leaving...]
sguselnikov has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
[gmi] has joined #ruby
hobodave has joined #ruby
olivier_bk has quit [Read error: Operation timed out]
freezey has quit [Remote host closed the connection]
ghr has quit [Quit: Computer has gone to sleep.]
v0n has quit [Ping timeout: 252 seconds]
shadoi has joined #ruby
sbos99 has joined #ruby
jlebrech has quit [Quit: Konversation terminated!]
petey has quit [Remote host closed the connection]
petey has joined #ruby
ndrei has quit [Ping timeout: 248 seconds]
ahawkins has quit [Remote host closed the connection]
freezey has joined #ruby
thesheff17 has joined #ruby
brtdv has quit [Ping timeout: 240 seconds]
chrisseaton has quit []
wildroman2 has quit [Remote host closed the connection]
ndrei has joined #ruby
<apeiros> Hanmac: indeed
vpretzel has quit [Remote host closed the connection]
canton7-mac has quit [Quit: Leaving]
EminenceHC has joined #ruby
dwingo has joined #ruby
vpretzel has joined #ruby
<Hanmac> apeiros: in the games some key items can be used (like item detector or similar) while the bike can only used outside of houses ;P
lukec has quit [Quit: lukec]
nvrch has quit [Quit: nvrch]
petey has quit [Ping timeout: 248 seconds]
<Uranio> Hanmac: and what about the silver wind, you never use it
rljohnsn has joined #ruby
<Hanmac> Uranio: like i said, only some items can be used
momomomomo has quit [Quit: momomomomo]
<shevy> huh, Hanmac, this is valid shell: (autoconf --version)
mikecmpbll has quit [Quit: ciao.]
Yahkob has quit [Remote host closed the connection]
<Hanmac> shevy: yes
iamsean has joined #ruby
allaire has quit []
iamsean has quit [Client Quit]
<shevy> autoconf --version too
<shevy> but not ((autoconf --version))
phansch has quit [Ping timeout: 252 seconds]
momomomomo has joined #ruby
i_s has joined #ruby
momomomomo has quit [Client Quit]
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
petey has joined #ruby
momomomomo has joined #ruby
momomomomo has quit [Client Quit]
drumusician has quit [Ping timeout: 260 seconds]
deric_skibotn has joined #ruby
OdNairy has joined #ruby
cephalopodus has joined #ruby
cj3kim has joined #ruby
momomomomo has joined #ruby
v0n has joined #ruby
cephalopod has quit [Ping timeout: 248 seconds]
havenwood has quit [Remote host closed the connection]
greenarrow has quit [Quit: 500]
existensil has quit [Quit: leaving]
momomomomo has quit [Client Quit]
havenwood has joined #ruby
yfeldblum has joined #ruby
tvw has quit []
RaCx has quit [Quit: Computer has gone to sleep.]
drumusician has joined #ruby
maletor has joined #ruby
RaCx has joined #ruby
RaCx has quit [Client Quit]
zellio has quit [Ping timeout: 252 seconds]
romdi has joined #ruby
tauebel has joined #ruby
RaCx has joined #ruby
havenwood has quit [Ping timeout: 272 seconds]
rubyracer has joined #ruby
kpshek has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
ohwhoa has joined #ruby
einarj has quit [Remote host closed the connection]
timonv has joined #ruby
cj3kim has quit [Ping timeout: 272 seconds]
txdv has quit [Read error: Connection reset by peer]
andikr has quit [Read error: Connection reset by peer]
ephemerian has quit [Quit: Leaving.]
txdv has joined #ruby
havenwood has joined #ruby
arctaruz has quit [Remote host closed the connection]
saarinen has joined #ruby
lukec has joined #ruby
digital-ghost has left #ruby [#ruby]
saarinen has quit [Client Quit]
standyro2 has joined #ruby
_Andres has quit [Read error: Connection reset by peer]
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
saarinen has joined #ruby
failshell has joined #ruby
e^0 has quit [Quit: WeeChat 0.4.1]
duggiefresh has joined #ruby
brunops has joined #ruby
RoryHughes has quit []
marr has quit [Ping timeout: 260 seconds]
Trynemjoel has quit [Ping timeout: 245 seconds]
Solnse has quit [Quit: Leaving.]
blaz3rz has quit [Remote host closed the connection]
breakingthings has quit []
danman has joined #ruby
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
nathancahill has quit [Quit: nathancahill]
RoryHughes has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
zoscoy has joined #ruby
breakingthings has joined #ruby
Celm has joined #ruby
duggiefresh has quit [Read error: Connection reset by peer]
duggiefresh has joined #ruby
pmullin has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JasmeetQA has quit [Read error: Connection reset by peer]
axl_ has quit [Quit: axl_]
link151 has joined #ruby
Trynemjoel has joined #ruby
drumusician has quit [Ping timeout: 260 seconds]
brunops has quit [Ping timeout: 264 seconds]
nathancahill has joined #ruby
Virtualize|away has quit [Read error: Connection reset by peer]
virt|work has joined #ruby
sski has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
browndawg has joined #ruby
x77686d has quit [Quit: x77686d]
p4tuxx is now known as p4tux
hl has quit [Ping timeout: 260 seconds]
pmullin has joined #ruby
aalmenar has quit [Ping timeout: 264 seconds]
dawkirst has joined #ruby
ereslibre has quit [Ping timeout: 264 seconds]
rljohnsn has quit [Quit: Leaving.]
obs has quit [Read error: Operation timed out]
vlad_starkov has joined #ruby
sski has quit [Ping timeout: 252 seconds]
Neomex has quit [Ping timeout: 252 seconds]
x77686d has joined #ruby
obs has joined #ruby
Kricir has quit [Remote host closed the connection]
pietr0_ has joined #ruby
pietr0 has quit [Ping timeout: 252 seconds]
pietr0_ is now known as pietr0
predator117 has quit [Ping timeout: 240 seconds]
zellio has joined #ruby
tylersmith has joined #ruby
predator117 has joined #ruby
pietr0 has quit [Client Quit]
aspires has joined #ruby
pietr0 has joined #ruby
Czupa has joined #ruby
hl has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
aalmenar has joined #ruby
aalmenar has joined #ruby
ereslibre has joined #ruby
ereslibre has quit [Changing host]
ereslibre has joined #ruby
RoryHughes has quit []
octoberry has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
mocfive has joined #ruby
silentpost has joined #ruby
Wolland has joined #ruby
freezey has quit [Remote host closed the connection]
iAdam1n has joined #ruby
synergy_ has quit [Remote host closed the connection]
sickweezle has quit [Ping timeout: 265 seconds]
hetre85 has quit [Ping timeout: 245 seconds]
sambao21 has joined #ruby
mark_locklear has quit [Ping timeout: 260 seconds]
rdark has quit [Quit: leaving]
mordocai has joined #ruby
x77686d has quit [Quit: x77686d]
tacos1de has quit [Ping timeout: 240 seconds]
enebo has joined #ruby
Davey has quit [Read error: Connection reset by peer]
Txandy has joined #ruby
rmorello has joined #ruby
<mordocai> Alright, so gem installs are slow. I fully realize this is because of the RI and rdoc documentation generation (rails in particular takes forever) and I realize I can skip these with flags. My question is: Why is generating RI and Rdoc so slow? I mean, it should be a pretty simple "parse each .rb file, grab strings, reformat, put in proper location". I just can't see why it is so ungodly slow.
<mordocai> Anyone have insight into it?
silentpost has left #ruby [#ruby]
phansch has joined #ruby
Advocation has quit [Quit: Advocation]
cescalanl is now known as ce_afk
bluOxigen has quit []
tacos1de has joined #ruby
Solnse has joined #ruby
wyan has joined #ruby
phinfone_ has joined #ruby
phinfonet has quit [Read error: Connection reset by peer]
<apeiros> mordocai: thousands of files?
<Hanmac> mordocai: gem install is also slow then only downloading the files
sickweezle has joined #ruby
DrShoggoth has joined #ruby
<mordocai> apeiros: Still. There are many other things that have to parse thousands of files and are much much faster. File IO just isn't that slow.
yalue has joined #ruby
brunops has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rickruby has joined #ruby
<mordocai> This may be annoying enough that I will actually spend the time to run a profiler on RDoc and try to fix its performance and submit a patch.
<iAdam1n> How do I import more modules on OS X?
<waxjar> hmm, is there no way to get the namespace of a class from within that class?
obs has quit [Quit: Konversation terminated!]
bluepojo has joined #ruby
littlebit has quit [Quit: littlebit]
iAdam1n has left #ruby ["Textual IRC Client: www.textualapp.com"]
timonv has quit [Remote host closed the connection]
<apeiros> mordocai: write a faster ruby parser & rdoc generator?
browndawg has quit [Quit: Leaving.]
klaut has quit [Remote host closed the connection]
raar has joined #ruby
<mordocai> apeiros:" This may be annoying enough that I will actually spend the time to
raar is now known as Guest12576
<mordocai> patch."
<mordocai> run a profiler on RDoc and try to fix its performance and submit a
subbyyy_ has joined #ruby
<mordocai> Bleh, that formatted weird
ce_afk is now known as cescalante
<havenwood> waxjar: self, or you mean from the instance of a class?
CNB_ has quit [Quit: Page closed]
browndawg has joined #ruby
tonni has joined #ruby
<apeiros> mordocai: great :)
<apeiros> mordocai: might try yard instead. I never compared performance of rdoc and yard, though.
<apeiros> might be that yard isn't actually any faster.
araujo has quit [Remote host closed the connection]
<mordocai> Well, gem already uses rdoc so it'd probably be more expedient to try to fix rdoc.
roolo has joined #ruby
fedesilva has quit [Read error: Connection reset by peer]
browndawg has left #ruby [#ruby]
<Morrolan> Just need to improve YARD enough that Rubygems will switch to it. ;D
MrZYX|off is now known as MrZYX
fedesilva has joined #ruby
<apeiros> waxjar: Module.nesting
<waxjar> havenwood: the instance
<apeiros> waxjar: beware, it works like __FILE__, i.e. it returns the nesting exactly at the point of calling
adayzdone has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> waxjar: self.class
Celm has quit []
<waxjar> apeiros: yeah that worked well enough, but i'm also dealing with inheritance :(
cyrus_mc has joined #ruby
<apeiros> waxjar: maybe you tell us what problem you try to solve instead of asking about your solution?
phipes has joined #ruby
<cyrus_mc> ruby newbie here. What is the difference in doing puts variable vs puts "#{variable}"
<cyrus_mc> both from what I can tell print out the value of the variable
blaz3rz has joined #ruby
ayaz has quit [Quit: leaving]
<apeiros> cyrus_mc: the latter is more work for ruby and pointless
hobodave has joined #ruby
<xybre> I've created a distinct_method_defined? method, now, I can't find anything built-in with the same functionality, but I might've missed something: https://gist.github.com/acook/8694054
<apeiros> cyrus_mc: you use the latter when you want a string with contents of a variable/expression mixed
lethjakm1 has joined #ruby
<apeiros> >> entity = "dude"; "hello #{entity}!"
<eval-in> apeiros => "hello dude!" (https://eval.in/96114)
philcrissman has joined #ruby
<apeiros> xybre: not the same, but you might be interested in the argument you can provide to #instance_methods and #methods
lethjakman has quit [Ping timeout: 245 seconds]
<apeiros> >> class X; def foo; end; end; X.instance_methods(false)
<eval-in> apeiros => [:foo] (https://eval.in/96117)
subbyyy_ has quit [Ping timeout: 252 seconds]
_maes_ has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
<xybre> apeiros: Yeah, I demonstrate the differences with that lower in the gist
axl_ has joined #ruby
<apeiros> xybre: I use something similar to your methods in my pryrc, though
ghr has joined #ruby
g0bl1n has quit [Ping timeout: 248 seconds]
ghr has quit [Max SendQ exceeded]
virt|work has quit [Read error: Connection reset by peer]
Virtualize|away has joined #ruby
<apeiros> OMG, I used require_relative
<waxjar> apeiros: I'm not sure myself. typing out the problem feels like writing a novel. I'll do some more thinking :p
<xybre> apeiros: I'm probably not going to use a real core extension in production, but its a good idea to drop it in my pryrc though.
jorge_ has joined #ruby
subbyyy_ has joined #ruby
ace_striker has quit [Ping timeout: 245 seconds]
jprovazn has joined #ruby
x77686d has joined #ruby
mocfive has quit [Remote host closed the connection]
<xybre> I pretty much only use require_relative when I don't trust the codebase I'm in and don't want to append to the LOAD_PATH.
dkamioka has quit [Ping timeout: 264 seconds]
mocfive has joined #ruby
rylinaux has joined #ruby
<apeiros> xybre: $LOAD_PATH should only ever be manipulated by the app
<apeiros> frameworks may be excused to do it too
sdwrage has quit [Quit: Leaving]
lethjakm1 is now known as lethjakman
renklaf has joined #ruby
ndrei has quit [Read error: Operation timed out]
<apeiros> I used require_relative in my config.ru: require_relative 'bootstrap'
<xybre> apeiros: I agree. That means there's not a whole lot of other options than require_relative in some cases, unfortunately. Typically it means something is about to get gemified though.
<apeiros> and bootstrap is the code which sets up all load paths.
<apeiros> the idea is that I can use bootstrap from wherever.
Kricir has quit [Ping timeout: 252 seconds]
<apeiros> IMO require_relative is in most cases abused.
jorge_ has quit [Client Quit]
<xybre> I haven't seen too many people use it actually.
<apeiros> I see it all the time
bnjamin has joined #ruby
Virtualize|away has quit [Read error: Connection reset by peer]
virt|work has joined #ruby
<apeiros> along with horrible require File.expand_path abominations
<apeiros> or now also require './…'
<apeiros> waxjar: self.class::Prefix
mocfive has quit [Ping timeout: 272 seconds]
<apeiros> hm, not sure that works for this…
<apeiros> I think I understand your problem
subbyyy has joined #ruby
pushpak has joined #ruby
<apeiros> I only see either registering or string manipulation :-/ none of which is satisfying IMO
Squarepy has quit [Quit: Leaving]
subbyyy has quit [Remote host closed the connection]
yfeldblum has joined #ruby
dkamioka has joined #ruby
subbyyy has joined #ruby
subbyyy_ has quit [Ping timeout: 272 seconds]
meatherl_ has quit [Remote host closed the connection]
brunops has quit [Ping timeout: 240 seconds]
phipes has quit [Remote host closed the connection]
<waxjar> hmm, oh well, thx :)
hukl has joined #ruby
<apeiros> I succumb to dark practices… first require_relative, now globals…
<apeiros> wtf?
mlpinit has quit [Ping timeout: 265 seconds]
heftig has joined #ruby
saarinen has quit [Ping timeout: 272 seconds]
Beoran_ has quit [Read error: Connection reset by peer]
meatherl_ has joined #ruby
mlpinit has joined #ruby
<havenwood> $LOAD_PATH << __dir__
saarinen has joined #ruby
rljohnsn has joined #ruby
<apeiros> havenwood: no, bootstrap.rb is not in a lib dir
mocfive has joined #ruby
<apeiros> it's the responsible party for setting up $LOAD_PATH
<apeiros> I don't want that in config.ru
w4pm has joined #ruby
<havenwood> apeiros: ah, i was just generally saying, i need more coffee to follow convo :O
<apeiros> :)
<havenwood> any thoughts on prepending versus appending __dir__ to load path, i see prepending usually but can see an argument for appending
benlieb has joined #ruby
<apeiros> havenwood: http://pastie.org/8679550 - bootstrap.rb is mostly this. I could probably replicate its functionality with a Gemfile. but I'm not yet willing to enforce a Gemfile.
petey has quit [Remote host closed the connection]
vpretzel_ has joined #ruby
<havenwood> ahh, interesting
<apeiros> I used to prepend, since if there's indeed a collision, it's probably deliberate and I want mine to take precedence
heftig has quit [Quit: Quitting]
<apeiros> nowadays I stopped caring and just append
heftig has joined #ruby
Wolland has quit []
<havenwood> i tend to append as well, my thinking being it is easier to notice when you're clobbering your own code, but yeah not caring makes sense :P
<apeiros> bootstrap.rb also does some requires and records the startup time (that's what I used the global for)
tauebel1 has joined #ruby
<xybre> apeiros: I think require './...' is worse, because suddenly you can't trust your app to handle your paths at all anymore, so fragile. :/
<apeiros> the global is later transferred into Application#startup_time
BalkM has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
RoryHughes has joined #ruby
<apeiros> xybre: indeed. it's a sort of coupling.
phipes has joined #ruby
petey has joined #ruby
<apeiros> xybre: I'm actually appalled that require allows './
RoryHughes has quit [Client Quit]
<apeiros> if you really want to require relatively, then by all means use require_relative (and I'll still hold that in 99.999% you're doing it wrong :D)
vpretzel has quit [Ping timeout: 252 seconds]
<xybre> apeiros: the ./ used to be implicit, so we've at least taken a baby step..
<apeiros> (where "you" != "xybre")
soulcake has quit [Ping timeout: 260 seconds]
standyro2 has quit [Ping timeout: 265 seconds]
<apeiros> xybre: it wasn't implicit. it was in $LOAD_PATH. you could remove it.
tauebel has quit [Ping timeout: 245 seconds]
banister has joined #ruby
<apeiros> removing '.' from $LOAD_PATH was two steps forward. allowing require './…' was one backwards :(
virt|work has quit [Quit: Leaving...]
<xybre> expect(you).to not_contain(xybre) #=> intermittant failures
ndrei has joined #ruby
<xybre> apeiros: Oh, I missed the implementation detail that it was jsut in load path. So they actually had to add support for ./ to require explicitly?
soulcake has joined #ruby
<apeiros> I think so
petey has quit [Remote host closed the connection]
<apeiros> at least I don't think require supported it in 1.8
zeade has joined #ruby
octoberry has quit [Ping timeout: 252 seconds]
<apeiros> as far as I understood it, require back then simply joined the paths
* xybre ponders installing 1.8.7 to test it... naaah
petey has joined #ruby
<apeiros> so require './foo' with $LOAD_PATH = ['/bar'] would just have been require '/bar/./foo'
<apeiros> which is equivalent to just require '/bar/foo'
<apeiros> it did support absolute paths, though
<xybre> require in 1.8.7 was slooooow, they did something to speed it up in 1.9.3 iirc.
Speed has left #ruby ["WeeChat 0.4.2"]
lamba has joined #ruby
lfox has quit [Quit: ZZZzzz…]
<RubyPanther> ./... is always a bear
SiliconG has quit [Ping timeout: 272 seconds]
<RubyPanther> Thankfully I've never seen that rootkit first hand
mlpinit has quit [Read error: Connection reset by peer]
BalkM is now known as bMalum
agent_white has joined #ruby
Kricir has joined #ruby
mlpinit has joined #ruby
alex88 has quit [Quit: Leaving...]
dkamioka_ has joined #ruby
petey has quit [Ping timeout: 252 seconds]
davy_ has joined #ruby
reset has joined #ruby
dkamioka has quit [Ping timeout: 264 seconds]
g0bl1n has joined #ruby
sepp2k has joined #ruby
voglster has joined #ruby
dkamioka has joined #ruby
LiohAu has quit [Ping timeout: 245 seconds]
dkamioka_ has quit [Read error: Connection reset by peer]
noop has quit [Ping timeout: 272 seconds]
jedimind has quit [Quit: bbiab]
freezey has joined #ruby
<xybre> awesome_print dynamically monkeypatches tons of core methods. :(
Xeago has quit [Remote host closed the connection]
<xybre> Bleh.
kpshek has quit []
snath has joined #ruby
allaire has joined #ruby
cbetta_afk is now known as cbetta
senayar has quit [Remote host closed the connection]
dawkirst has quit [Ping timeout: 264 seconds]
wildroman2 has quit [Ping timeout: 260 seconds]
romdi has quit [Ping timeout: 264 seconds]
mlpinit has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Remote host closed the connection]
<apeiros> xybre: ugh
mlpinit has joined #ruby
lfox has joined #ruby
danijoo_ has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
<apeiros> funny, shouldn't the latter be in class Module instead of class Class?
<agent_white> LeoDee: Use create instead of new?
<agent_white> mt
danijoo has joined #ruby
eliasp_ is now known as eliasp
<apeiros> 0.3s time to startup framework and compile whole app, take that, rails!
<apeiros> (ok, ok, it's a tiny app and the framework is far from completed :D)
<xybre> apeiros: Yes, exactly. I was realizing my distinct_method_defined? should be on Module too, and when I went to pry show-method instance_methods I was greeted with a defined_method in awesome_print.
phipes has quit [Remote host closed the connection]
<apeiros> still, I do intend to stay well below 10s with the app I'm building. which is far from the 1-2min rails takes…
guest3034032 has joined #ruby
<apeiros> xybre: reminds me…
brunops has joined #ruby
<apeiros> banister: ping? can you make `x = ` assignment patterns ignore commands? I regularly trip on e.g. `c = ` (pry-byebug)
mikepack has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Virtualize|away has joined #ruby
<lamba> sorry for this noob question but im pulling my hair out. im trying to use httparty in my first ruby script, the examples show 'include HTTParty' (no quotes) but that gives an 'uninitilized constant' error. i've tried quotes, no quotes, upper,lower, and mixed case, all i can get to work is 'require httparty'. i've sudo gem installed, normal gem installed, and yum package installed the frikking thing, what am i doing wrong here ? ;-/ managed to fail hard at my
aspires has quit []
mercwithamouth has quit [Ping timeout: 272 seconds]
<xybre> Wow, seeing my gist run without active_support require'd is really eye opening. 138 methods down to 70, 74 down to 53, etc.
dkamioka has quit [Remote host closed the connection]
poulson has quit [Remote host closed the connection]
standyro2 has joined #ruby
meatherl_ has quit [Remote host closed the connection]
Virtualize|away has quit [Client Quit]
meatherly has joined #ruby
<apeiros> lamba: require 'httparty'; include HTTParty
<apeiros> lamba: require takes a string argument, which is the path to load
RoryHughes has joined #ruby
<xybre> lamba: You'll need a `require 'httparty'` at the top after installing them gem (`gem install httparty`). Then you can `include HTTParty` (no quotes) if you need its namespace, otherwise you can address it with HTTParty::... (where ... is stuff in its namespace).
danman has quit [Remote host closed the connection]
shvelo has quit [Ping timeout: 248 seconds]
<apeiros> lamba: include takes a module which it then includes. the module must be loaded prior to that (which is require's job)
danman has joined #ruby
bnjamin has quit []
Davey has joined #ruby
* xybre needs to either type less or type faster
cbetta is now known as cbetta_afk
<apeiros> both
<xybre> D:
<apeiros> or: type more concise and faster
<apeiros> ;-)
* xybre is not good at concise
zoscoy has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
banister has joined #ruby
<lamba> oooh, ok. thanks.
<apeiros> matter of training :)
<xybre> Just be glad I don't speak German, I'd create run-on *words* that'd go on for pages.
rootshift has joined #ruby
Kricir has joined #ruby
<apeiros> lamba: since you're new to ruby, note that both `require` and `include` are regular methods
<xybre> lamba: ie not keywords
<lamba> yeah, it works now. somehow i managed to try everything except both at the same time.
<agent_white> So metaprogramming is crazy. EOT is also known as a 'heredoc', yeah?
<lamba> i think i need to plunder safari for a good ruby book.
momomomomo has joined #ruby
phipes has joined #ruby
<apeiros> xybre: you mean like Rhabarberbarbarabarbarbarenbartbarbierbierbarbärbel?
<xybre> agent_white: no, EOT is jsut a terminator
dawkirst has joined #ruby
meatherly has quit [Ping timeout: 245 seconds]
<apeiros> agent_white: heredocs are one form of string literals, yes
kpshek has joined #ruby
RoryHughes has quit [Client Quit]
w1zeman1p has joined #ruby
<agent_white> xybre: So... why use: foobar.instance_eval <<EOT; def foo; "foobsUpInUrr"; end; EOT; ?
<apeiros> if I need strings in metaprogramming I prefer %{} literals, though.
kirun has joined #ruby
<agent_white> xybre: I may just have not hit the portion on instance_eval yet...
<apeiros> looks more code-like
<xybre> agent_white: the << part starts the hredoc, in your example you're passing a string into eval.
<apeiros> agent_white: <<EOT; def foo; "foobsUpInUrr"; end; EOT # <-- that's a string literal, and yes, that one is called 'here-doc'
<agent_white> NUTTY
<apeiros> the <<EOT is the "opening quote" and the second EOT is the terminator
postmodern has joined #ruby
<apeiros> ("closing quote")
aspires has joined #ruby
w4pm has quit [Ping timeout: 252 seconds]
<xybre> Pretty sure that syntax comes from perl, but iirc its used in a few other languages too.
<apeiros> unlike other strings, methods are chained at the opening quote
<agent_white> xybre/apeiros: Awesome! Thank you! This shit is starting to get crazy and I'm only at singleton methods.
rljohnsn has quit [Quit: Leaving.]
vlad_starkov has quit [Remote host closed the connection]
<xybre> there's like a dozen ways to create strings in Ruby. :D
<apeiros> agent_white: `foobar.instance_eval "def foo; "foobsUpInUrr"; end"` would do the same
<xybre> Thanks perl!
<Hanmac> apeiros: wrong you forgot to escape " inside " ;P
<agent_white> apeiros: Wut. Yeah I needa get some eval learnin'.
benlieb has quit [Quit: benlieb]
carraroj has quit [Quit: Konversation terminated!]
<apeiros> Hanmac: true
<apeiros> agent_white: `foobar.instance_eval 'def foo; "foobsUpInUrr"; end'` would do the same # <-- sorry, fixed
phinfone_ has quit [Ping timeout: 272 seconds]
benlieb has joined #ruby
mikepack has joined #ruby
SCommette has quit [Quit: SCommette]
benlieb has quit [Client Quit]
krnflake has quit [Ping timeout: 252 seconds]
<Hanmac> shevy: lets use binding.instance_variable_get from now on ;P
guest3034032 has left #ruby [#ruby]
failshel_ has joined #ruby
meatherly has joined #ruby
phipes has quit [Remote host closed the connection]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sparrovv has joined #ruby
failshell has quit [Read error: Operation timed out]
mikepack has quit [Ping timeout: 240 seconds]
<banister> Hanmac why did u ping me the other day bb
<Hanmac> banister: did you see the newest movie Frozen? http://simg.gelbooru.com//images/1928/52437c08ab5678b07394cb6e55ea44c0.png
freezey has quit [Remote host closed the connection]
failshel_ has quit [Ping timeout: 272 seconds]
<apeiros> ok, so def foo(*,**); super; end # is a bad idea and one should still use just def foo(*); super; end
<xybre> all you never wanted to know about strings: https://gist.github.com/acook/8695438
<xybre> (more examples/corrects welcome)
mlpinit has quit [Read error: Connection reset by peer]
krnflake has joined #ruby
<banister> Hanmac no
havenwood has quit [Remote host closed the connection]
petey has joined #ruby
ebeip90 has quit [Quit: leaving]
rickruby has quit [Remote host closed the connection]
mlpinit has joined #ruby
<Hanmac> banister: you should, and click onto that link , think you might find it funny
<banister> Hanmac but i'm alone and i feel there's nothing godly in me!
mehlah has joined #ruby
freezey has joined #ruby
phipes has joined #ruby
machuga is now known as machuga|away
shredding has joined #ruby
Virtualize|away has joined #ruby
kobain_ has joined #ruby
cbetta_afk is now known as cbetta
mojjojo has quit [Quit: mojjojo]
phipes has quit [Read error: Connection reset by peer]
Hobogrammer has quit [Ping timeout: 252 seconds]
phipes has joined #ruby
mehlah has quit [Quit: Linkinus - http://linkinus.com]
mojjojo has joined #ruby
kobain has quit [Ping timeout: 265 seconds]
mikepack has joined #ruby
SiliconG has joined #ruby
Solnse has quit [Read error: Connection reset by peer]
decoponio has quit [Quit: Leaving...]
rezzack has joined #ruby
apeiros has quit [Remote host closed the connection]
phinfonet has joined #ruby
SiliconG_ has joined #ruby
aspires has quit []
centrx has joined #ruby
phipes has quit [Remote host closed the connection]
mikepack has quit [Ping timeout: 240 seconds]
oso96_2000 has joined #ruby
mojjojo has quit [Client Quit]
alekst has quit [Read error: Connection reset by peer]
w4pm has joined #ruby
SCommette has joined #ruby
cbetta is now known as cbetta_afk
SiliconG has quit [Ping timeout: 272 seconds]
assurbanipal has joined #ruby
mojjojo has joined #ruby
w1zeman1p has quit [Remote host closed the connection]
ckinni has joined #ruby
pu22l3r has quit [Ping timeout: 252 seconds]
phinfonet has quit [Ping timeout: 265 seconds]
bradleyprice has quit [Remote host closed the connection]
Notte has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
coca_rails has quit [Remote host closed the connection]
coca_rails has joined #ruby
meatherl_ has joined #ruby
pu22l3r has joined #ruby
phinfonet has joined #ruby
<Eiam> haha
EminenceHC has quit [Remote host closed the connection]
meatherly has quit [Ping timeout: 252 seconds]
<Eiam> old hags lol oh ice king
RubyPanther has quit [Ping timeout: 272 seconds]
CaptainJet has joined #ruby
Al__ has joined #ruby
cjsarette has quit [Ping timeout: 265 seconds]
coca_rails has quit [Ping timeout: 240 seconds]
aspires has joined #ruby
drumusician has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
shvelo has joined #ruby
davy_ has quit [Remote host closed the connection]
tauebel1 has quit [Quit: Leaving.]
mordocai has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
brunops has quit [Ping timeout: 272 seconds]
danshultz has joined #ruby
Notte has quit [Remote host closed the connection]
Beoran has joined #ruby
maletor has quit [Ping timeout: 240 seconds]
Sawbones has joined #ruby
IcyDragon has joined #ruby
maletor has joined #ruby
<Sawbones> Woo my Ruby Manual shipped to my house :D
<Sawbones> I got a question for you guys, do you have an alternative for absolute_path in ruby?
IceDragon has quit [Ping timeout: 252 seconds]
<centrx> Sawbones, What is absolute_path?
coca_rails has joined #ruby
<Sawbones> File.absolute_path
<MrZYX> What's wrong with it?
<centrx> What kind of alternative do you mean... What's wrong with File::absolute_path
<Sawbones> I guess it's not supported in 1.8
<gf3> lol 1.8
<Sawbones> Need an alternative for 1.8
<MrZYX> I guess that doesn't matter
senayar has joined #ruby
<Mon_Ouie> 1.8 is itself not supported either
<MrZYX> it's called ruby 1.9.3-2.1.0
<gf3> 1.8 is dead
pushpak has quit [Quit: Linkinus - http://linkinus.com]
<gf3> EOL'd last summer
IcyDragon has quit [Ping timeout: 260 seconds]
<Sawbones> Yeah haha, on my local copy I have 2.1, but I have a bunch of servers that need a quick fix before I can go to each and update their version
devinus has quit []
mansi has quit [Remote host closed the connection]
devinus has joined #ruby
<centrx> Sawbones, There might be something in http://ruby-doc.org/stdlib-1.8.7/libdoc/pathname/rdoc/Pathname.html
IcyDragon has joined #ruby
mansi has joined #ruby
<Sawbones> thanks centrx
rljohnsn has joined #ruby
mansi has quit [Read error: Connection reset by peer]
<Hanmac> Sawbones: you need wikipedia was printed book: http://www.labnol.org/internet/wikipedia-printed-book/9136/ ... THATs a "manual" ;P
mansi has joined #ruby
<centrx> Sawbones, It sounds like you are both totally new to Ruby, but are also administering Ruby applications?
<Sawbones> Took over a project
phansch has quit [Read error: Connection reset by peer]
phansch_ has joined #ruby
<Sawbones> Our application is in PHP, but the old dev wrote ruby scripts to help manage the application
flowerhack_ is now known as flowerhack
mikepack has joined #ruby
<Sawbones> He's got a rake file that has the absolute_path method, but we have some older servers runnign 1.8, believe me I want to update them, but I have something that needs to get fixed by 5 today
<centrx> PHP is an abomination
<Sawbones> Tell me about it.
senayar has quit [Ping timeout: 252 seconds]
danshult_ has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
<Sawbones> I wish I could start a company and freelance, but getting started seems to be the hardest part
phansch_ has quit [Client Quit]
RoryHughes has joined #ruby
phansch has joined #ruby
<xybre> Sawbones: Is "expand_path" good enough?
wildroman2 has joined #ruby
brunops has joined #ruby
Czupa has quit [Ping timeout: 248 seconds]
wildroman2 has quit [Read error: Connection reset by peer]
wildroman3 has joined #ruby
krisbulman is now known as [krisbulman]
<Sawbones> let me give it a try
zoscoy has joined #ruby
predator117 has quit [Ping timeout: 265 seconds]
Xeago has joined #ruby
tacos1de has quit [Ping timeout: 240 seconds]
senayar has joined #ruby
shvelo has quit [Read error: No route to host]
sbos99 has quit [Ping timeout: 245 seconds]
<Sawbones> xybre: yeah it works!
yfeldblum has quit [Remote host closed the connection]
<Sawbones> Woo now I can finish this up
tauebel has joined #ruby
<xybre> woot
sethen has joined #ruby
i_s has quit [Remote host closed the connection]
pzula has quit [Quit: leaving]
shvelo has joined #ruby
jgoss has quit [Ping timeout: 252 seconds]
brunops has quit [Client Quit]
tacos1de has joined #ruby
ffranz has quit [Quit: Leaving]
Xeago has quit [Ping timeout: 240 seconds]
Hobogrammer has joined #ruby
jgrevich has joined #ruby
mando_ has joined #ruby
Al__ has quit [Quit: Al__]
predator117 has joined #ruby
Shidash has joined #ruby
kate_r has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Kruppe has quit [Quit: ZNC - http://znc.in]
Kruppe has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
mercwithamouth has joined #ruby
mando has quit [Ping timeout: 252 seconds]
IcyDragon has quit [Ping timeout: 248 seconds]
IcyDragon has joined #ruby
mando_ has quit [Ping timeout: 248 seconds]
Hobogrammer_ has joined #ruby
Xeago has joined #ruby
coca_rails has quit [Remote host closed the connection]
nari has quit [Ping timeout: 245 seconds]
clamstar has quit [Quit: Computer has gone to sleep.]
coca_rails has joined #ruby
mojjojo has quit [Quit: mojjojo]
Txandy is now known as Txandy|away
xcv has quit [Remote host closed the connection]
Hobogrammer has quit [Ping timeout: 252 seconds]
xcv has joined #ruby
mojjojo has joined #ruby
momomomomo has quit [Quit: momomomomo]
DouweM_ has joined #ruby
coca_rails has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
Kruppe has quit [Quit: ZNC - http://znc.in]
cbetta_afk is now known as cbetta
DouweM has quit [Ping timeout: 264 seconds]
renklaf has quit [Remote host closed the connection]
jgoss has joined #ruby
jgoss has quit [Changing host]
jgoss has joined #ruby
Kruppe has joined #ruby
deception has quit [Quit: Goodbye]
SilentHobo has joined #ruby
momomomomo has joined #ruby
jackneill has quit [Ping timeout: 252 seconds]
Jetchisel has joined #ruby
cbetta is now known as cbetta_afk
Hobogrammer_ has quit [Ping timeout: 272 seconds]
momomomomo has quit [Client Quit]
Virtualize|away has quit [Quit: Leaving...]
sailias has quit [Quit: Leaving.]
failshell has joined #ruby
mocfive has quit [Remote host closed the connection]
Notte has joined #ruby
momomomomo has joined #ruby
mocfive has joined #ruby
mikesplain has joined #ruby
Hanmac1 has joined #ruby
Virtualize|away has joined #ruby
vlad_starkov has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
kaichanvong has joined #ruby
cjsarette has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
Xeago has joined #ruby
tauebel has quit [Quit: Leaving.]
Sleepee has quit [Quit: Leaving]
IcyDragon is now known as IceDragon
failshell has quit [Ping timeout: 252 seconds]
pmullin has quit [Quit: Textual IRC Client: www.textualapp.com]
clamstar has joined #ruby
Advocation has joined #ruby
Xeago_ has joined #ruby
mocfive has quit [Ping timeout: 240 seconds]
bluOxigen has joined #ruby
jlast_ has joined #ruby
jlast_ has quit [Remote host closed the connection]
tauebel has joined #ruby
apeiros has joined #ruby
tauebel has quit [Client Quit]
tauebel has joined #ruby
i_s has joined #ruby
Xeago has quit [Ping timeout: 265 seconds]
jlast has quit [Ping timeout: 240 seconds]
octoberry has joined #ruby
geggam has quit [Remote host closed the connection]
mojjojo has quit [Quit: mojjojo]
anildigital has quit [Changing host]
anildigital has joined #ruby
jlast has joined #ruby
mojjojo has joined #ruby
teddyp1cker has quit []
jrunning__ has joined #ruby
freezey has quit [Remote host closed the connection]
Xuisce has left #ruby [#ruby]
havenwood has joined #ruby
coca_rails has joined #ruby
g0bl1n has quit [Ping timeout: 260 seconds]
xardas has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
axl_ has quit [Quit: axl_]
Virtualize|away has quit [Quit: Leaving...]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
Davey has joined #ruby
kpshek has quit []
vpretzel_ is now known as vpretzel
ctp_ has quit [Quit: Linkinus - http://linkinus.com]
Notte has quit [Remote host closed the connection]
krawchyk has quit []
Advocation has quit [Quit: Advocation]
Virtualize|away has joined #ruby
chrisja has joined #ruby
SCommette has quit [Quit: SCommette]
jenskarlsen has quit [Ping timeout: 272 seconds]
SCommette has joined #ruby
ryantm has joined #ruby
freezey has joined #ruby
mando has joined #ruby
Solnse has joined #ruby
Mon_Ouie has quit [Ping timeout: 269 seconds]
Uranio has quit [Quit: WeeChat 0.3.2]
Virtualize|away has quit [Quit: Leaving...]
davy_ has joined #ruby
Megtastique has quit []
blaz3rz has quit [Remote host closed the connection]
Megtastique has joined #ruby
ndrei has quit [Quit: Lost terminal]
ctp has joined #ruby
hobodave_ has joined #ruby
blaz3rz has joined #ruby
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
kevinml has joined #ruby
hobodave has quit [Ping timeout: 245 seconds]
octoberry has quit [Ping timeout: 245 seconds]
Txandy|away is now known as Txandy
jkamenik has quit [Quit: Leaving.]
ndrei has joined #ruby
mando has quit [Ping timeout: 272 seconds]
jprovazn has quit [Quit: Odcházím]
marr has joined #ruby
axl_ has joined #ruby
Wolland has joined #ruby
RaCx has joined #ruby
pierre1_ has joined #ruby
w4pm has quit [Ping timeout: 264 seconds]
dawkirst has quit [Ping timeout: 248 seconds]
coca_rails has quit [Remote host closed the connection]
mando has joined #ruby
coca_rails has joined #ruby
daxroc has joined #ruby
phansch has quit [Quit: Leaving]
mlpinit has quit [Ping timeout: 245 seconds]
Viridisignis has joined #ruby
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tyl has quit [Quit: Computer has gone to sleep.]
rljohnsn has quit [Quit: Leaving.]
jgoss has quit [Quit: Leaving]
jgoss has joined #ruby
jgoss has quit [Changing host]
jgoss has joined #ruby
daxroc has quit [Client Quit]
daxroc has joined #ruby
obs has joined #ruby
mocfive has joined #ruby
coca_rails has quit [Ping timeout: 240 seconds]
mlpinit has joined #ruby
mlpinit has quit [Read error: No route to host]
mlpinit has joined #ruby
charliesome has joined #ruby
sski has joined #ruby
dwingo has quit [Ping timeout: 252 seconds]
nanoyak has joined #ruby
rylev has joined #ruby
rylev has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
rylev has joined #ruby
diegoviola has quit [Ping timeout: 252 seconds]
felixjet has quit [Quit: Leaving]
anildigital is now known as zz_anildigital
maletor has joined #ruby
senj has quit [Quit: Sleep Now]
yfeldblum has quit [Remote host closed the connection]
WormDrink has joined #ruby
<WormDrink> hi
rylev has quit [Remote host closed the connection]
standyro2 has quit [Ping timeout: 264 seconds]
rylev has joined #ruby
<WormDrink> whats best way with ruby to work with shell processes ?
<WormDrink> POpen4 or shell-executor ? or is there better options ?
machuga|away is now known as machuga
<apeiros> Kernel#spawn is the universal way
<apeiros> and most portable afaik
Txandy is now known as Txandy|away
v10energy has joined #ruby
dawkirst has joined #ruby
<WormDrink> apeiros, can I easily deal with stdin/out/err and get exit status ?
banister has joined #ruby
<apeiros> yes. check the docs.
Xeago_ has quit [Remote host closed the connection]
diegoviola has joined #ruby
<WormDrink> thanks
rylev has quit [Remote host closed the connection]
wildroman3 has quit [Remote host closed the connection]
senj has joined #ruby
Txandy|away is now known as Txandy
lkba has quit [Ping timeout: 260 seconds]
Al__ has joined #ruby
mercwithamouth has quit [Ping timeout: 272 seconds]
jtdowney has quit []
Sawbones has quit []
petey has quit [Remote host closed the connection]
pierre1_ has quit [Quit: Leaving]
petey has joined #ruby
Guest30637 is now known as Radar
vlad_starkov has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
helpa has joined #ruby
IceyEC has quit [Quit: IceyEC]
davy_ has quit [Remote host closed the connection]
geggam has joined #ruby
vongrippen has quit [Ping timeout: 265 seconds]
petey has quit [Ping timeout: 252 seconds]
momomomomo has joined #ruby
sski has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
sski has joined #ruby
standyro2 has joined #ruby
axl_ has quit [Quit: axl_]
cbetta_afk is now known as cbetta
ctp has quit [Quit: Linkinus - http://linkinus.com]
aspires has quit []
danshult_ has quit [Read error: Connection reset by peer]
kaldrenon has quit [Remote host closed the connection]
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
danshultz has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
jlast_ has joined #ruby
jlast has quit [Read error: Connection reset by peer]
Virtualize|away has joined #ruby
vongrippen has joined #ruby
griffindy has quit [Quit: Computer has gone to sleep.]
sski has quit [Ping timeout: 265 seconds]
clamstar has quit [Quit: Computer has gone to sleep.]
Davey has quit [Quit: Computer has gone to sleep.]
shredding has quit [Quit: shredding]
mando has quit [Ping timeout: 272 seconds]
clamstar has joined #ruby
aspires has joined #ruby
bluOxigen has quit [Ping timeout: 264 seconds]
lkba has joined #ruby
tauebel has quit [Ping timeout: 272 seconds]
b00stfr3ak has quit [Ping timeout: 260 seconds]
Al__ has quit [Read error: Connection reset by peer]
danshultz has quit [Remote host closed the connection]
oso96_2000 has left #ruby ["Leaving"]
danshultz has joined #ruby
Davey has joined #ruby
cbetta is now known as cbetta_afk
rm_ has quit [Remote host closed the connection]
Txandy is now known as Txandy|away
rm_ has joined #ruby
aspires has quit []
cbetta_afk is now known as cbetta
<shevy> Kernel#zombie is still my favourite
tauebel has joined #ruby
<apeiros> does it return shevy?
<shevy> it returns HUNGER!!!
aspires has joined #ruby
danshultz has quit [Ping timeout: 245 seconds]
Evenix has quit [Ping timeout: 272 seconds]
Xeago has joined #ruby
mercwithamouth has joined #ruby
cbetta is now known as cbetta_afk
stryek has quit [Quit: Leaving]
clamstar has quit [Quit: Computer has gone to sleep.]
alvaro_o has joined #ruby
clamstar has joined #ruby
kevinml has quit [Quit: WeeChat 0.4.2]
Jdubs has joined #ruby
kirun has quit [Quit: Client exiting]
Jdubs has quit [Remote host closed the connection]
rljohnsn has joined #ruby
tauebel has quit [Ping timeout: 252 seconds]
diegovio1 has joined #ruby
Thanatermesis has joined #ruby
RoryHughes has quit []
jenskarlsen has joined #ruby
jenskarlsen has left #ruby [#ruby]
Soliah has joined #ruby
bricker`LA has joined #ruby
diegoviola has quit [Ping timeout: 265 seconds]
duggiefresh has quit [Remote host closed the connection]
benzrf has joined #ruby
<benzrf> hey
<benzrf> is there something likemike
<benzrf> *like
axl_ has joined #ruby
<benzrf> [1, 2, 3, 4, 5, 6].get 0, 2, 7 # => 1, 3, nil
Thanatermesis has quit [Client Quit]
<apeiros> values_at
tauebel has joined #ruby
<apeiros> >> [1, 2, 3, 4, 5, 6].values_at 0, 2, 7
<eval-in> apeiros => [1, 3, nil] (https://eval.in/96249)
<benzrf> thanks
chrisseaton has joined #ruby
<Hanmac1> there is a core function for everything ;P
<benzrf> hooray!
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
apeiros changed the topic of #ruby to: Ruby 2.1.0; 2.0.0-p353; 1.9.3-p484: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
<shevy> hehe likemike
<shevy> benzrf, are you flirting!
fedesilv_ has joined #ruby
nateberkopec has joined #ruby
yfeldblu_ has joined #ruby
reset has quit [Ping timeout: 264 seconds]
<Hanmac1> apeiros: what did you change in the topic?
Hanmac1 is now known as Hanmac
<apeiros> Hanmac: removed the -p0 from Ruby 2.1.0
<apeiros> and added a forgotten space
<Hanmac> oh ok
Txandy|away is now known as Txandy
pietr0_ has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
cephalopodus has quit [Quit: Nice Scotty, now beam my clothes up too!]
pietr0 has quit [Ping timeout: 240 seconds]
pietr0_ is now known as pietr0
cephalopodus has joined #ruby
cephalopodus has quit [Read error: Connection reset by peer]
<havenwood> 1.8 is dead, long live 2.1!
fedesilva has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 272 seconds]
coca_rails has joined #ruby
pietr0 has quit [Client Quit]
devinus has quit []
pietr0 has joined #ruby
danman has quit [Quit: danman]
clamstar has quit [Quit: Computer has gone to sleep.]
tauebel1 has joined #ruby
tauebel has quit [Read error: Connection reset by peer]
jonno11 has joined #ruby
fedesilv_ has quit [Remote host closed the connection]
jgrevich has quit [Quit: jgrevich]
cbetta_afk is now known as cbetta
w4pm has joined #ruby
mlpinit has quit [Ping timeout: 252 seconds]
zoscoy has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
daxroc has quit [Ping timeout: 252 seconds]
mlpinit has joined #ruby
daxroc has joined #ruby
RaCx has quit [Read error: Connection reset by peer]
RaCx has joined #ruby
breakingthings has quit []
momomomomo has quit [Quit: momomomomo]
_Andres has joined #ruby
daxroc has quit [Client Quit]
sambao21 has joined #ruby
RoryHughes has joined #ruby
mojjojo has quit [Quit: mojjojo]
cbetta is now known as cbetta_afk
i_s has quit [Remote host closed the connection]
doodlehaus has quit [Remote host closed the connection]
sparrovv has quit [Remote host closed the connection]
bMalum has quit [Remote host closed the connection]
petey has joined #ruby
BalkM has joined #ruby
Txandy is now known as Txandy|away
mikesplain has quit [Ping timeout: 260 seconds]
<benzrf> is there a non-mutating version of []= on arrays
mojjojo has joined #ruby
<benzrf> i.e. like !! in haskell
coca_rails has quit [Read error: Connection reset by peer]
oso96_2000 has joined #ruby
BalkM has quit [Remote host closed the connection]
<DouweM_> isn't !! equivalent to #[] ? I'm not sure what you're asking
Hobogrammer_ has joined #ruby
g0bl1n has joined #ruby
rljohnsn has quit [Quit: Leaving.]
mocfive has quit [Remote host closed the connection]
Hobogrammer has joined #ruby
Jdubs has joined #ruby
SilentHobo has quit [Ping timeout: 265 seconds]
SilentHobo has joined #ruby
jlast_ has quit [Remote host closed the connection]
jobewan has quit [Quit: Leaving]
_Andres has quit [Ping timeout: 272 seconds]
Virtualize|away has quit [Quit: Leaving...]
davy_ has joined #ruby
<chrisseaton> benzrf: no, there isn't as far as I know
<chrisseaton> benzrf: you'd have to slice each side and concatenate with the two slices and the new element
Hobogrammer_ has quit [Ping timeout: 248 seconds]
jerius has quit [Ping timeout: 272 seconds]
duggiefresh has joined #ruby
Lewix has quit [Remote host closed the connection]
pietr0_ has joined #ruby
Hobogrammer_ has joined #ruby
_Andres has joined #ruby
razibog has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
duggiefresh has quit [Read error: Connection reset by peer]
duggiefresh has joined #ruby
enebo has quit [Quit: enebo]
<DouweM_> chrisseaton: what am I missing?
Hobogrammer has quit [Ping timeout: 265 seconds]
pietr0 has quit [Ping timeout: 272 seconds]
pietr0_ is now known as pietr0
DrShoggoth has quit [Quit: Leaving]
<chrisseaton> DouweM_: benzrf wants a function that takes an array, an index, a new value, and returns the array with the new value at that index, but leaves the original array intact
<benzrf> chrisseaton: lame
cbetta_afk is now known as cbetta
mary5030 has quit [Remote host closed the connection]
<chrisseaton> benzrf: sorry for helping
<benzrf> chrisseaton: not you ;p
<MrZYX> .dup[]= ?
<benzrf> your response
<DouweM_> chrisseaton: aah okay, that makes more sense. I didn't understand the question
osoasfsdfjkh has joined #ruby
osoasfsdfjkh has left #ruby [#ruby]
SilentHobo has quit [Ping timeout: 265 seconds]
RoryHughes has quit []
hobodave_ has quit [Quit: Computer has gone to sleep.]
<bnagy> remember that if the array contains ref types, which is almost always, dup etc etc will still get you a copy with the original refs
xardas has quit [Quit: ChatZilla 0.9.90.1 [Firefox 26.0/20131205075310]]
Viridisignis has quit [Quit: Computer has gone to sleep.]
cescalante is now known as ce_afk
Hobogrammer_ has quit [Ping timeout: 260 seconds]
<bnagy> which is to say that it is quite hard to ensure that you leave a passed array untouched if you're going to mess with the 'copy'
qubit has quit [Ping timeout: 248 seconds]
duggiefresh has quit [Ping timeout: 245 seconds]
aspires has quit []
<bnagy> also, don't write ruby like haskell
mlpinit has quit [Remote host closed the connection]
razibog has quit [Quit: Leaving.]
dx7 has quit [Remote host closed the connection]
dx7 has joined #ruby
Noldorin has joined #ruby
gizmore has quit [Ping timeout: 252 seconds]
wildroman2 has joined #ruby
rylev has joined #ruby
hobodave has joined #ruby
fedesilva has joined #ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<benzrf> bnagy: im aware <_<
Viridisignis has joined #ruby
Viridisignis has quit [Client Quit]
<benzrf> bnagy: ive been coding for like 9 years remember ;p
diegovio1 has quit [Quit: WeeChat 0.4.2]
gizmore has joined #ruby
<bnagy> either brag about your skills ^ ask basic questions
m8 has quit [Quit: Sto andando via]
cbetta is now known as cbetta_afk
Lewix has joined #ruby
glen has joined #ruby
dx7 has quit [Ping timeout: 260 seconds]
yinkum has quit [Quit: yinkum]
<glen> what's best way to do this without regexp? the regexp is flawed as + needs escaping: version = stdout[/^#{package_name}-(.+)/, 1]
x77686d has quit [Quit: x77686d]
SCommette has quit [Quit: SCommette]
claymore has quit [Quit: Leaving]
rylev has quit [Ping timeout: 252 seconds]
wildroman2 has quit [Ping timeout: 252 seconds]
fartface has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
icantbecool has joined #ruby
wedgeV has joined #ruby
<apeiros> I love "best" questions.
<benzrf> what basic q did i ask?!
<apeiros> glen: what qualifies as "best"?
<apeiros> what's the metric?
<glen> apeiros: approved by #ruby :), i'e i don't get beaten later of writing something silly
<fartface> Super new question here: When doing string formatting for floating point numbers, what does the first digit after the % do? Like, if I have a value 3.11111 and I say "%3.1f", it outputs "3.1", but if I omit the 3, and just put "%.1f" I get the same result. So, what's the "3" for?
<bnagy> benzrf: i.e. like !! in haskell
<apeiros> glen: excellent metric! :D
<glen> but really, with less operators
<glen> i came up with this: version = stdout[package_name.length + 1, stdout.length]
<apeiros> glen: honestly, that's probably the funniest response to that I've ever read
<glen> but it's not exactly the same as regexp thing returns nil but no idea what this one gives when out of bounds
<apeiros> glen: stdout[package_name.length + 1, stdout.length] can be written as stdout[(package_name.length + 1)..-1]
<bnagy> glen: can you provide an example input and output?
cj3kim has joined #ruby
<bnagy> like it looks like you can just sub package_name / ''
yasushi has joined #ruby
mansi has quit [Remote host closed the connection]
<bnagy> and what output would you like?
<glen> expected result would work if you quote + in initial regexp
mansi has joined #ruby
<apeiros> glen: IMO substring slicing by offset is a good solution
fedesilva has quit [Remote host closed the connection]
<fartface> Nevermind, I figured it out.
fartface has left #ruby [#ruby]
apeiros has quit []
apeiros has joined #ruby
<glen> i'll go with the -1 thing, as i don't have to calcualate length of two strings then :)
<apeiros> gack… accidentally quit :(
<apeiros> that's what you get for disabling the annoying "are you sure you want to quit?!?!??!?"
<glen> probably in ruby core .length is pre-calculated so it may be even "faster"
sparrovv has joined #ruby
<apeiros> .length is a property
<apeiros> it's stored, no need to calculate
i_s has joined #ruby
<glen> so, is -1 needed to calculatE?
dawkirst has quit [Read error: Operation timed out]
<apeiros> yes. but that overhead is academical.
<glen> but damn, regexp variant was better that it actually compared what the first part was
<glen> substr variant can cut random junk if input is corrupted (not valid)
rudisimo has quit []
x77686d has joined #ruby
<apeiros> I doubt that str[offset..-1] and str[offset, str.length] differ more than a single digit in percents
<glen> so need to stdout[package] != nil too?
<apeiros> well, the regex can be fixed
cj3kim has quit [Ping timeout: 245 seconds]
danijoo has quit [Read error: Operation timed out]
<apeiros> str[/\A#{Regexp.escape(package_name)}-(.*)\z/, 1]
Megtastique has quit []
<glen> version = stdout[package_name] != nil && stdout[(package_name.length + 1)..-1]
<glen> this could do too ^
axl_ has quit [Quit: axl_]
<apeiros> drop the != nil
<apeiros> that's superfluous
<glen> ah, and it returned false not nul
<bnagy> >> package_name = 'libstdc++-devel'; stdout = 'libstdc++-devel-4.8.2-4.i686'; stdout.sub "#{package_name}-", ''
<eval-in> bnagy => "4.8.2-4.i686" (https://eval.in/96251)
mansi has quit [Ping timeout: 272 seconds]
<apeiros> interesting
<bnagy> is that the output you want?
<glen> yes, that output is correct
binaryhat has joined #ruby
Wolland has quit [Remote host closed the connection]
pietr0 has quit [Quit: pietr0]
<glen> i'll go with nagy stuff :)
<apeiros> yeah, looks pleasant
<bnagy> the index slice will be a lot faster
danijoo has joined #ruby
<bnagy> but the sub is kinda readable and has a bit more of the protection you wanted
<apeiros> bnagy: not really
freezey has quit [Ping timeout: 252 seconds]
<apeiros> (protection)
pietr0 has joined #ruby
<bnagy> doesn't have the ^ anchor either
roolo has quit [Quit: Leaving...]
<glen> bnagy version returns original string in case of mismatch
<apeiros> if package_name is broken it will not substitute anything, so you get a wrong string back, not nil
<bnagy> apeiros: well it won't sub out stuff that doesn't match
<apeiros> yes, which doesn't help much in detecting
<apeiros> k, you could verify by doing `version != input`
<glen> there\s no weird %R available to do Regexp.escape?
<apeiros> no
Deele has quit [Ping timeout: 260 seconds]
<benzrf> theres %r
<benzrf> oh
bleak has quit [Ping timeout: 260 seconds]
philcrissman has quit [Remote host closed the connection]
<apeiros> hm… I just found a new application for contexts…
roolo has joined #ruby
obs_ has joined #ruby
<apeiros> if a language has contexts + more than one syntax for interpolations, then you can use that to provide "escaped interpolation" + "unescaped interpolation"
<apeiros> makes sense in a lot of places
<glen> afaik %r is for inline strings, it doesn't do "variables"
<apeiros> in regexen, escaped would be Regexp.escape
<apeiros> in html template engines it'd be CGI.escapeHTML
<apeiros> in URL generators it'd be CGI.escape
<apeiros> etc.
<bnagy> yeah go has content aware templating in the default package
<benzrf> contexts?
danshultz has joined #ruby
<apeiros> %r{} is just an alternative way to write //
obs has quit [Read error: Connection reset by peer]
<bnagy> *context
i_s has quit [Ping timeout: 248 seconds]
<bnagy> which is kind of cool, according to my friends that care about web stuff
<benzrf> apeiros: you could abuse ``
<apeiros> benzrf: similar to `self`, it provides contextual information to the code being executed
<benzrf> ok
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
hiall__ has quit [Quit: hiall__]
MrZYX is now known as MrZYX|off
<apeiros> benzrf: consider e.g. a request in rails, which carries session data, which has information about the user
w4pm has quit [Ping timeout: 252 seconds]
<apeiros> the request could be the context
<benzrf> alrigh
<benzrf> t
fedesilva has joined #ruby
<apeiros> when you now e.g. have a method on the model which needs information about the "current user", it could take it from the context
<apeiros> no need to pass it around
hukl has quit [Quit: Leaving...]
<benzrf> how unfunctiona
<benzrf> l
<apeiros> similar to what ENV is to processes
<REdOG> can anyone help me get rkerberos built/installed? I keep getting an undefined reference error
<apeiros> benzrf: unfunctional as in: opposite to how a functional language works?
<apeiros> if so, then I'd disagree. a context is strictly pass-down. i.e. it's "sugar" that you don't have to pass it manually. the language does it for you.
petey has quit [Remote host closed the connection]
Jetchisel has joined #ruby
x77686d has quit [Quit: x77686d]
<apeiros> and an inner method can't mutate the outer context
havenwood has quit [Remote host closed the connection]
danshultz has quit [Ping timeout: 240 seconds]
dawkirst has joined #ruby
<benzrf> i was joking ;p
<benzrf> reader monad works like that sort ish
allaire has quit []
davy_ has quit [Remote host closed the connection]
obs_ has quit [Read error: Connection reset by peer]
obs_ has joined #ruby
shinobi_one has joined #ruby
<shinobi_one> Has anyone here used Elasticsearch with Apache Tika plugin for parsing "attachments" and had any success?
bleak has joined #ruby
momomomomo has joined #ruby
<benzrf> whats with apache and java
davy_ has joined #ruby
<shinobi_one> benzrf: they <3 each other
rljohnsn has joined #ruby
rezzack1 has joined #ruby
momomomomo has quit [Client Quit]
icantbecool has quit [Quit: Computer has gone to sleep.]
fedesilva has quit [Remote host closed the connection]
rezzack has quit [Ping timeout: 272 seconds]
nateberkopec has quit [Quit: Leaving...]
<glen> oh. substr variant has another side effect. it kept the \n
bedouin has quit [Ping timeout: 245 seconds]
standyro2 has quit [Ping timeout: 245 seconds]
sebouboubou has quit [Remote host closed the connection]
poikon_ has quit [Ping timeout: 276 seconds]
<glen> blah. i'm just using the .escape!
thesheff17 has quit [Ping timeout: 272 seconds]
shadoi has quit [Quit: Leaving.]
linojon has quit [Quit: linojon]
Viridisignis has joined #ruby
SHyx0rmZ has joined #ruby
aspires has joined #ruby
poikon_ has joined #ruby
<glen> as the substr thing did not anchor for ^
<glen> and i get mismatches from stdout='package kernel-module-build is not installed'
bedouin has joined #ruby
carif has joined #ruby
Amart41 has quit [Remote host closed the connection]
geggam has quit [Remote host closed the connection]
Wolland has joined #ruby
w4pm has joined #ruby
Amart41 has joined #ruby
g0bl1n has quit [Ping timeout: 248 seconds]
davy_ has quit [Remote host closed the connection]
dblessing has quit [Quit: dblessing]
dorei has joined #ruby
tauebel1 has quit [Read error: No route to host]
tauebel has joined #ruby
dseitz has joined #ruby
Amart41 has quit [Read error: Operation timed out]
Naoe-Kanno has joined #ruby
g0bl1n has joined #ruby
maletor has joined #ruby
shinobi_one has quit [Quit: shinobi_one]
assurbanipal has quit [Remote host closed the connection]
SHyx0rmZ has quit [Ping timeout: 260 seconds]
<bnagy> glen: how about stdout.split("#{package_name}-").last ?
sarlalian has quit [Quit: WeeChat 0.4.0]
<bnagy> but by that point it has probably passed the easy readability threshold, so regex might just be clearer ( for once )
chrisja has quit [Quit: leaving]
pskosinski has joined #ruby
shvelo has quit [Read error: Operation timed out]
<benzrf> bnagy: my abomination has over 200 dl's
<benzrf> how does it make you feel to know that at least 10 people have installed it
<benzrf> :D
nanoyak has quit [Quit: Computer has gone to sleep.]
brennanMKE has quit [Remote host closed the connection]
chomskiii has quit [Read error: Connection reset by peer]
brennanMKE has joined #ruby
<glen> bnagy: that split will fail if stdout is "package #{package_name} is not found" and give me "found" as "version" :)
chomskiii has joined #ruby
<glen> ah, hmm "-" maybe matters
cbetta_afk is now known as cbetta
v0n has quit [Ping timeout: 248 seconds]
SCommette has joined #ruby
sarlalian has joined #ruby
nanoyak has joined #ruby
octoberry has joined #ruby
<bnagy> it'll give you the unmodified string
<glen> oh. seems upsteream solved it with a regexp as well pkg_info.stdout[/^#{Regexp.escape(package_name)}-(.+)/, 1]
brennanMKE has quit [Ping timeout: 245 seconds]
<glen> and seems haha, they did it first with a split, and then with a regex
<bnagy> yeah, the regex is pretty readable tbh
ixti has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
lethjakm1 has joined #ruby