apeiros changed the topic of #ruby to: Ruby 2.1.1; 2.0.0-p451; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
_whitelogger has joined #ruby
jonasac has joined #ruby
phrozen77 has joined #ruby
lele has joined #ruby
dachi has joined #ruby
jinie has joined #ruby
tommyblue has joined #ruby
halfie has joined #ruby
centrx is now known as Guest28243
shadoi has joined #ruby
sirecote has joined #ruby
Nightmare has joined #ruby
hanikazmi has joined #ruby
newton has joined #ruby
jack_rabbit has joined #ruby
mansi has joined #ruby
quatron_ has joined #ruby
Guest28243 has quit [Client Quit]
Nightmare is now known as Guest81602
heftig has joined #ruby
v0n has joined #ruby
sdouglas has joined #ruby
cschneid has joined #ruby
fgo has joined #ruby
poguez__ has joined #ruby
jeregrine_ has joined #ruby
gsvolt_ has joined #ruby
danshultz has quit [Ping timeout: 255 seconds]
pietr0 has quit [Quit: pietr0]
jokke has joined #ruby
ahuman_ has joined #ruby
Rudde has joined #ruby
W0rmDr1nk has joined #ruby
devyn_ has joined #ruby
fridim__ has joined #ruby
cbetta has joined #ruby
mattyohe_ has joined #ruby
mansi has quit [Ping timeout: 255 seconds]
Guest81602 is now known as Nightmare
intellix has left #ruby [#ruby]
Biohazard has joined #ruby
machuga_ has joined #ruby
kies`prime has joined #ruby
adambeynon_ has joined #ruby
21WAADLHY has joined #ruby
octarine_ has joined #ruby
xcv_ has joined #ruby
robmozart__ has joined #ruby
mroth__ has joined #ruby
kalleth_ has joined #ruby
jrunning_____ has joined #ruby
SegFaultAX_ has joined #ruby
withnale_ has joined #ruby
mjc__ has joined #ruby
Su7 has joined #ruby
zellio_ has joined #ruby
S0da has quit [Read error: Connection reset by peer]
chris_th_ has joined #ruby
multi_io_ has joined #ruby
__tpavel has joined #ruby
glebm_ has joined #ruby
pel_daniel has joined #ruby
dstynchula has quit []
W0rmDr1nk has quit [Changing host]
Speed has quit [Ping timeout: 252 seconds]
S0da has joined #ruby
PLejeck has joined #ruby
CJD14__ has joined #ruby
anicet has joined #ruby
philcrissman has joined #ruby
AlSquire has joined #ruby
manacit has joined #ruby
Norrin has joined #ruby
dgarstang4 has joined #ruby
x1337807x has joined #ruby
zxq9 has joined #ruby
RohanRNS has joined #ruby
23LAATB06 has joined #ruby
ddd has joined #ruby
IceDragon has joined #ruby
mikepack_ has joined #ruby
RohanRNS has joined #ruby
frode15243_ has joined #ruby
23LAATCG7 has joined #ruby
Asher has joined #ruby
jackjackdrpr has joined #ruby
aaronmcadam has joined #ruby
zachallett has joined #ruby
ixti has joined #ruby
rurban has joined #ruby
toastynerd has joined #ruby
echevemaster has joined #ruby
mvangala has joined #ruby
drx_ has joined #ruby
mostlybadfly has joined #ruby
wykydtron has joined #ruby
idoru has joined #ruby
frode15243_ has joined #ruby
sdouglas has quit [Remote host closed the connection]
rickenharp__ has joined #ruby
23LAATFQ9 has joined #ruby
kiki_lam1 has joined #ruby
aep has joined #ruby
manacit has joined #ruby
lw has joined #ruby
UForgotten_ has joined #ruby
<rpage> Hi all i install a module called net-ssh-multi, using "gem install net-ssh-multi"
bradhe_ has joined #ruby
nuclearblast has joined #ruby
Norrin has joined #ruby
aspiers_ has joined #ruby
<rpage> when i use "require net/ssh/multi" i am receiving an error /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': cannot load such file -- net/ssh/multi (LoadError)
rickenharp__ has joined #ruby
Davedo1 has joined #ruby
crome_ has joined #ruby
kennym has joined #ruby
23LAATEYU has joined #ruby
rcs_ has joined #ruby
LBRapid_ has joined #ruby
Emmanuel_Chanel has joined #ruby
bricker has quit [Quit: leaving]
Adran has quit [Quit: Este é o fim.]
kukyakya_ has joined #ruby
schaary_ has joined #ruby
bauruine_ has joined #ruby
p8952 has joined #ruby
rcs_ is now known as rcs
SegFaultAX_ is now known as SegFaultAX
jeregrine_ is now known as jeregrine
UForgotten_ is now known as UForgotten
Thana` has joined #ruby
adambeynon_ is now known as adambeynon
kapowaz__ has joined #ruby
rickenharp__ is now known as rickenharp_
octarine_ is now known as octarine
mattyohe_ is now known as mattyohe
mroth__ is now known as mroth
snath has quit [Ping timeout: 252 seconds]
bluehavana_ has joined #ruby
mjc__ is now known as mjc_
lsmola has joined #ruby
mmochan_ has joined #ruby
iceden has joined #ruby
hoelzro has joined #ruby
maroloccio has quit [Quit: WeeChat 0.4.3]
aef_ has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 240 seconds]
lw has quit [Ping timeout: 240 seconds]
flori has quit [Remote host closed the connection]
kies`prime is now known as kiez
kiez has quit [Quit: baaaaiiiiiiiiiii~]
lessless has joined #ruby
k0m has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zxq9 has quit [Ping timeout: 240 seconds]
TripTastic has joined #ruby
Suit_Of_Sables has joined #ruby
Nyyx has joined #ruby
yxhuvud has joined #ruby
wchun has joined #ruby
gizmore has joined #ruby
wykydtron has quit [Ping timeout: 240 seconds]
Emmanuel_Chanel has joined #ruby
camt has joined #ruby
_zxq9_ has joined #ruby
kies has joined #ruby
kies has joined #ruby
kies has quit [Changing host]
w|t has joined #ruby
RubyPanther has joined #ruby
`ph8 has joined #ruby
23LAATB06 has quit [Ping timeout: 240 seconds]
TripTastic has joined #ruby
predator117 has joined #ruby
afex has quit [Ping timeout: 255 seconds]
23LAATEYU has quit [Ping timeout: 240 seconds]
jaimef has joined #ruby
manacit has quit [Ping timeout: 240 seconds]
23LAATFQ9 has quit [Ping timeout: 240 seconds]
Guest24119 has quit []
wykydtron has joined #ruby
manacit has joined #ruby
AlexRussia has joined #ruby
Guest45604 has quit [Ping timeout: 240 seconds]
vcoinminer__ has joined #ruby
jonathanwallace has joined #ruby
aef_ has quit [Ping timeout: 240 seconds]
rurban has quit [Ping timeout: 240 seconds]
zachallett has joined #ruby
pel_daniel has left #ruby [#ruby]
<BaconOverflow> Does anyone know of a testing framework like phantom.js etc, just "headful" so I can see what it does
Norrin has quit [Ping timeout: 240 seconds]
<BaconOverflow> as opposed to headless
pu22l3r has joined #ruby
kpshek has quit []
zachallett has quit [Remote host closed the connection]
smathieu has joined #ruby
<centrx> BaconOverflow, Selenium?
deens has joined #ruby
machty has joined #ruby
kiki_lam1 is now known as kiki_lamb
invinceable has joined #ruby
mostlybadfly_ has joined #ruby
rpage_ has joined #ruby
drx has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
rpage_ has quit [Client Quit]
aspiers_ has quit [Read error: No route to host]
lw has joined #ruby
dik_dak has quit [Quit: Leaving]
<BaconOverflow> Ah okay, thanks, I thought it was purely headless
Spami_ has quit [Quit: This computer has gone to sleep]
sigurding has quit [Quit: sigurding]
freerobby has joined #ruby
AlSquirrel has joined #ruby
aef has joined #ruby
mostlybadfly has quit [Ping timeout: 240 seconds]
mostlybadfly_ is now known as mostlybadfly
lw has quit [Client Quit]
deens has quit [Ping timeout: 255 seconds]
aspiers has joined #ruby
x1337807_ has joined #ruby
freerobby1 has joined #ruby
_zxq9_ is now known as zxq9
lw has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
m4n1f3st0 has joined #ruby
mlpinit has quit [Quit: Leaving...]
mlpinit has joined #ruby
Guest45604 has joined #ruby
wykydtron has quit [*.net *.split]
bradhe_ has quit [*.net *.split]
AlSquire has quit [*.net *.split]
philcrissman has quit [*.net *.split]
x1337807x has quit [*.net *.split]
frode15243_ has quit [*.net *.split]
Asher has quit [*.net *.split]
23LAATCG7 has quit [*.net *.split]
echevemaster has quit [*.net *.split]
Guest69243 has quit [*.net *.split]
jackjackdrpr has quit [*.net *.split]
IceDragon has quit [*.net *.split]
toastynerd has quit [*.net *.split]
mvangala has quit [*.net *.split]
aaronmcadam has quit [*.net *.split]
drx_ has quit [*.net *.split]
idoru has quit [*.net *.split]
timonv has joined #ruby
lw has quit [Client Quit]
frode15243_ has joined #ruby
thesheff17_ has joined #ruby
freerobby1 has quit [Ping timeout: 240 seconds]
AlSquirrel has quit [Quit: This computer has gone to sleep]
charles81 has quit [Ping timeout: 245 seconds]
thesheff17_ has quit [Read error: Connection reset by peer]
ada2358 has joined #ruby
<hfp> Finally, after spending most of the afternoon on it, I'm with that koan. Could someone please look at https://eval.in/120503 and tell me if it's done right or could be refactored?
fveillette has joined #ruby
kevinykchan has joined #ruby
Guest24119 has joined #ruby
rurban has joined #ruby
mikepack has joined #ruby
charles81 has joined #ruby
circuit has joined #ruby
x1337807_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv has quit [Ping timeout: 264 seconds]
kevinykchan has quit [Ping timeout: 246 seconds]
mostlybadfly has quit [Ping timeout: 246 seconds]
sirecote has quit [Ping timeout: 246 seconds]
lsmola has quit [Ping timeout: 246 seconds]
Guest24119 has quit [Ping timeout: 246 seconds]
_whitelogger has quit [Ping timeout: 246 seconds]
_whitelogger_ has joined #ruby
chipotle_ has joined #ruby
wykydtron has joined #ruby
bradhe_ has joined #ruby
toastynerd has joined #ruby
mvangala has joined #ruby
Asher has joined #ruby
echevemaster has joined #ruby
jackjackdrpr has joined #ruby
JBlazeCoder21 has joined #ruby
Guest69243 has joined #ruby
23LAATCG7 has joined #ruby
idoru has joined #ruby
mr_rich102 has joined #ruby
IceDragon has joined #ruby
aaronmcadam has joined #ruby
existensil_ has joined #ruby
Guest24119_ has joined #ruby
Guest24119_ has quit [Client Quit]
kayloos_ has quit [Remote host closed the connection]
<bnagy> themanjackalman: /msg NickServ help register
sirecote_ has joined #ruby
<bnagy> or google something like freenode nickserv register I guess
RohanRNS has joined #ruby
jeregrine has quit [Quit: Connection closed for inactivity]
Spami_ has joined #ruby
bradhe_ has quit [Remote host closed the connection]
<bnagy> you will need a valid email address
themanjackalman has quit [Client Quit]
zorak has joined #ruby
kevinykchan has quit [Ping timeout: 246 seconds]
mostlybadfly has quit [Ping timeout: 246 seconds]
sirecote has quit [Ping timeout: 246 seconds]
Guest24119 has quit [Ping timeout: 246 seconds]
lsmola has quit [Ping timeout: 246 seconds]
_whitelogger has quit [Ping timeout: 246 seconds]
jonasac has quit [Ping timeout: 246 seconds]
frode15243_ has quit [Ping timeout: 246 seconds]
chipotle has quit [Ping timeout: 246 seconds]
phrozen77 has quit [Ping timeout: 246 seconds]
halfie has quit [Ping timeout: 246 seconds]
charles81 has quit [Ping timeout: 246 seconds]
sirecote_ is now known as sirecote
frode15243__ has joined #ruby
pskosinski has quit [Ping timeout: 265 seconds]
halfie has joined #ruby
invinceable has quit [Ping timeout: 246 seconds]
mostlybadfly_ is now known as mostlybadfly
phrozen77 has joined #ruby
bradhe_ has joined #ruby
charles81 has joined #ruby
jonasac has joined #ruby
<hfp> bnagy: It bothered me too, I didn't think of a hash
Sammael has joined #ruby
jackal_ has joined #ruby
jackal_ is now known as Guest64578
JBreit has joined #ruby
bradhe_ has quit [Remote host closed the connection]
<hfp> bnagy: It has to be an Array because the tests are with arrays (I didn't write the tests)
ndrei has joined #ruby
<bnagy> eh?
_zxq9_ has joined #ruby
<hfp> It's the Ruby Koans
<shevy> Ruby Korans!
<bnagy> that's just the param passed to score. Score returns a number.
<shevy> Koreans!
<hfp> I can't change the tests. Well, I could be it defeats the purpose
<hfp> but*
<bnagy> you can change your internals in the score method
ctp has quit [Remote host closed the connection]
<hfp> True, I could convert the array to a hash
<bnagy> and I'm not really in love with the while loops either tbh
predator217 has joined #ruby
circuit_ has joined #ruby
<hfp> Ok, how would you do it?
Renich has joined #ruby
Norrin has joined #ruby
predator117 has quit [Remote host closed the connection]
camt has quit [Read error: Connection reset by peer]
invinceable has joined #ruby
yfeldblu_ has joined #ruby
tjr9898_ has joined #ruby
circuit has quit [Write error: Connection reset by peer]
JBlazeCo_ has joined #ruby
danshultz has joined #ruby
m4n1f3st0 has quit [Ping timeout: 372 seconds]
TripTastic has quit [Ping timeout: 372 seconds]
zxq9 has quit [Ping timeout: 372 seconds]
Suit_Of_Sables has quit [Ping timeout: 372 seconds]
_zxq9_ is now known as zxq9
ndrei_ has joined #ruby
JBlazeCoder21 has quit [Remote host closed the connection]
<bnagy> https://eval.in/120510 maybe that.. ( line 51... ) but it's still pretty ugly
yfeldblum has quit [Read error: Operation timed out]
smathieu has quit [Remote host closed the connection]
<bnagy> you could be cute and condense it ( Hash#delete returns the value of the key you deleted ) but it's only going to make it less readable
mlpinit has quit [Quit: Leaving...]
derek_c has quit [Ping timeout: 252 seconds]
mlpinit has joined #ruby
camt has joined #ruby
mikemar1_ has joined #ruby
mikemar10 has quit [Ping timeout: 255 seconds]
kapowaz__ is now known as kapowaz
sepp2k has quit [Quit: Leaving.]
pu22l3r has quit [Remote host closed the connection]
andy__ has quit [Remote host closed the connection]
sailias has quit [Ping timeout: 264 seconds]
goleldar has quit [Remote host closed the connection]
<hfp> I see, thanks
m4n1f3st0 has joined #ruby
<bnagy> fwiw the reason I don't like the while loops is a) it's inefficient and b) every time I see a while loop I flinch because there's an infinite loop waiting to happen
<bnagy> neither of which are actual problems in this codfe, because it's tiny
Suit_Of_Sables has joined #ruby
Spami has quit [Read error: Connection reset by peer]
sepp2k has joined #ruby
<hfp> I get your point. I hope further down the road I'll be able to write cleaner code
mansi has joined #ruby
yubrew has joined #ruby
Spami has joined #ruby
NicholasFlamel has joined #ruby
Salve has joined #ruby
IceDragon has quit [Quit: Space~~~]
meinside has joined #ruby
predator217 has quit [Ping timeout: 264 seconds]
bradhe has joined #ruby
mansi has quit [Ping timeout: 265 seconds]
yubrew has quit [Ping timeout: 264 seconds]
predator117 has joined #ruby
mlpinit has quit [Remote host closed the connection]
_Andres has joined #ruby
fijimunkii has joined #ruby
Salve has quit [Ping timeout: 264 seconds]
Avahey_ has joined #ruby
banister has quit [Remote host closed the connection]
aspires_ has quit []
NicholasFlamel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robustus has quit [Ping timeout: 252 seconds]
derek_c has joined #ruby
toastynerd has quit [Remote host closed the connection]
glebm_ has quit [Remote host closed the connection]
amclain has joined #ruby
glebm has joined #ruby
robustus has joined #ruby
tjr9898_ has quit [Remote host closed the connection]
sski has joined #ruby
deadlock has quit [Ping timeout: 240 seconds]
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
benzrf has left #ruby [#ruby]
Hobogrammer_ has quit [Ping timeout: 240 seconds]
ggrant has joined #ruby
armyriad has quit [Ping timeout: 255 seconds]
fgo has quit [Remote host closed the connection]
freerobby has joined #ruby
diegoviola has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
yokel has quit [Remote host closed the connection]
freerobby has quit [Ping timeout: 252 seconds]
splud has joined #ruby
<splud> greetings. Have a newb string expansions question.
<centrx> Excellent
Hanmac has quit [Ping timeout: 255 seconds]
<splud> Am converting some perl code to ruby (no perl/libs on target system, but have ruby there).
<bnagy> o_0
Hanmac has joined #ruby
<splud> have perl code that specified regexp variables to expand - basically $1 $2 $3 affair.
<bnagy> what system has ruby but no perl?
<bnagy> I mean not that I object to converting perl to ruby.. it's just weird
razrunelord has quit []
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
<splud> if I convert that to ruby, "#{$1}#{$2}...", the _specification_ string will of course attempt to take on the current value at the time of assignment. If I escape: "\#{$1}\#{$2}...
<splud> then the escapes remain in place when I attempt to use the string...
ce_afk is now known as cescalante
<splud> bnagy: an _embedded_ platform.
<toretore> splud: code?
<splud> Perl isn't used on it, so no need to add it to the rootfs and consume space, and be yet something else to keep updated.
<splud> not posted anywhere.
kotk has joined #ruby
<splud> I can regexp from a string to a pattern string fine. pattern =~ line
<splud> this creates the $1....$n variables fine.
<splud> But I want to be able to define the format as a string for sprintf to use..
<splud> (indirectly, not as the immediate string for sprintf, but a string variable)
Renich has left #ruby [#ruby]
<splud> At its most base, this is converting a certain date format into an ordered value so that it sorts properly.
<apeiros> splud: \1 - \9
<toretore> splud: code explains much better than you ever could. i have no idea what you're doing
cescalante is now known as ce_afk
montyboy has joined #ruby
<splud> code is presently a mash-up paste into irb.
<toretore> give it to me
<apeiros> >> "hello".gsub(/([hl])[eo]/, '\1X')
<eval-in> apeiros => "hXllX" (https://eval.in/120526)
<splud> (since original is perl, not ruby)
<toretore> show the perl code
<apeiros> for sprintf you probably best just use .match with .captures
<bnagy> also fwiw if the root of the problem is sorting dates, you probably shouldn't be using any regexp at all
Hanmac has quit [Ping timeout: 265 seconds]
<splud> apieros - that syntax works fine with gsub, but not with sprintf.
<apeiros> slupd, my nick isn't apieros
<splud> bnagy: it's 'logmerge' from google code. regexp is used most likely because the same code is used for a variety of log formats.
hanikazmi_ has joined #ruby
<splud> Once you've used regexp to capture the date portion of the line, you already have the bits of data in variables.
<toretore> where is the code in question?
<splud> the bulk of the perl is in processFile()
<splud> (plus a one-liner elsewhere)
markisonfire has joined #ruby
peckermanzzz has joined #ruby
yokel has joined #ruby
ehc has quit [Quit: ehc]
<apeiros> why do I read that as "lolmerge"?
<apeiros> and I didn't even have a drink yet :-S
<bnagy> yeah, just use DateTime.parse
codeFiend has joined #ruby
<bnagy> or strptime / strftime worst case
<bnagy> that code is pretty much perl at its most perly
<toretore> you should use strptime and allow the user to give a format string
<pipework> strippertime?!
tommyblu` has joined #ruby
<splud> there are alternative regexps specified elsewhere in the file (commandline parsing)
<toretore> tbh i wouldn't bother trying to rewrite that script
lele` has joined #ruby
peckermanzzz has quit [Client Quit]
danshultz has quit [*.net *.split]
ndrei_ has quit [*.net *.split]
aef has quit [*.net *.split]
hoelzro has quit [*.net *.split]
jinie has quit [*.net *.split]
lele has quit [*.net *.split]
dachi has quit [*.net *.split]
tommyblue has quit [*.net *.split]
Azure has quit [*.net *.split]
joast has quit [*.net *.split]
hanikazmi has quit [*.net *.split]
peckermanzzz has joined #ruby
hoelzro has joined #ruby
ndrei_ has joined #ruby
<splud> The only issue I'm having is how one might store "#{$1}" into a string such that it isn't interpreted at that time, but can be on a second evaluation of the string,
peckermanzzz has quit [Client Quit]
<centrx> Why?
rdark_ has quit [Quit: leaving]
Azure has joined #ruby
jinie has joined #ruby
danshultz has joined #ruby
<toretore> >> m_ts_match=Regexp.new('^(\d+)/(\d+)/(\d+) (\d+):(\d+):(\d+).(\d+)'); m_ts_subst='$3$1$2$4$5$6$7'; m = '01/02/03 04:05:06.12345'.match(m_ts_match); m_ts_subst.scan(/\$(\d+)/).flatten.map{|i| m[i.to_i] }.join
<eval-in> toretore => "03010204050612345" (https://eval.in/120527)
markisonfire has quit [Quit: markisonfire]
klue has joined #ruby
joast has joined #ruby
horofox has joined #ruby
dachi has joined #ruby
dachi has quit [Max SendQ exceeded]
h4mz1d has joined #ruby
yubrew has joined #ruby
aef has joined #ruby
dachi has joined #ruby
<splud> toretore: thanks.
m4n1f3st0 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aaronmcadam has quit [Quit: Leaving...]
SHyx0rmZ has joined #ruby
Skaag has quit [Ping timeout: 255 seconds]
<toretore> actually it should be:
<toretore> >> m_ts_match=Regexp.new('^(\d+)/(\d+)/(\d+) (\d+):(\d+):(\d+).(\d+)'); m_ts_subst='$3$1$2$4$5$6$7'; m = '01/02/03 04:05:06.12345'.match(m_ts_match); m_ts_subst.gsub(/\$(\d+)/){ m[$1.to_i] }
<eval-in> toretore => "03010204050612345" (https://eval.in/120528)
<toretore> and why gsub doesn't yield a MatchData is beyond me
mikepack has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 264 seconds]
pjsingh has joined #ruby
afex has joined #ruby
Guest64578 has quit [Ping timeout: 252 seconds]
JordanJ2 has joined #ruby
tungd has joined #ruby
senayar has quit []
Spami_ has quit [Quit: This computer has gone to sleep]
Salve has joined #ruby
sdouglas has joined #ruby
guilleiguaran has joined #ruby
<JordanJ2> Hello, I'm trying to set up terminus Bot ( https://github.com/Terminus-Project/Terminus-Bot ) and keep getting this error ( http://pastebin.com/kyEgs8jT )
Killerkeksdose has quit [Read error: Connection reset by peer]
pjsingh has left #ruby ["Konversation terminated!"]
Salve_ has joined #ruby
montyboy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Spami has quit [Quit: This computer has gone to sleep]
mehlah has joined #ruby
invinceable has quit [Ping timeout: 264 seconds]
nari has joined #ruby
fgo has joined #ruby
binaryhat has joined #ruby
yasushi has joined #ruby
quatron_ has quit [Quit: ChatZilla 0.9.90.1 [Firefox 27.0.1/20140212131424]]
Sigloo has joined #ruby
isbadawi has quit [Quit: Leaving.]
Salve has quit [Ping timeout: 264 seconds]
yfeldblu_ has quit [Ping timeout: 265 seconds]
paolooo has joined #ruby
speakingcode has joined #ruby
Salve_ has quit [Ping timeout: 264 seconds]
itadder has joined #ruby
<apeiros> toretore: $~
<apeiros> toretore: but agreed, would be nicer if it just yielded matchdata
afex has quit []
ruf has joined #ruby
elaptics is now known as elaptics`away
bradhe has quit [Remote host closed the connection]
ruf has quit [Quit: leaving]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
binaryhat has quit [Quit: Leaving]
chrisseaton has quit [Read error: Connection reset by peer]
Killerkeksdose has joined #ruby
Hanmac has joined #ruby
mikepack has joined #ruby
mgorbach has quit [Max SendQ exceeded]
jackal_ has joined #ruby
jackal_ is now known as Guest14930
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
alexju has quit [Remote host closed the connection]
<toretore> apeiros: ah, right, i keep forgetting about that
isbadawi has joined #ruby
<toretore> overall, i'm not very fond of these perlisms
lordd has joined #ruby
nari has quit [Ping timeout: 264 seconds]
kennym has quit [Quit: Leaving.]
h4mz1d has quit [Ping timeout: 264 seconds]
abra has quit [Ping timeout: 265 seconds]
toastynerd has joined #ruby
danshultz has quit [Ping timeout: 264 seconds]
tungd has quit [Ping timeout: 264 seconds]
isbadawi has quit [Ping timeout: 264 seconds]
mgorbach has joined #ruby
tungd has joined #ruby
kevinykchan has joined #ruby
<apeiros> toretore: Regexp.last_match then - same thing ;-)
circuit_ has quit [Quit: leaving]
circuit has joined #ruby
Lewix has quit [Remote host closed the connection]
isbadawi has joined #ruby
yasushi has quit [Remote host closed the connection]
abra has joined #ruby
aspires has joined #ruby
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kevinykchan has quit [Ping timeout: 252 seconds]
kennym has joined #ruby
RoxasShadow has quit [Quit: Leaving]
jackjackdrpr has quit [Ping timeout: 240 seconds]
mehlah has quit [Quit: Leaving...]
sdouglas has quit [Remote host closed the connection]
rezzack has quit [Quit: Leaving.]
Hobogrammer has quit [Quit: さようなら]
toastynerd has quit [Remote host closed the connection]
greenrose has joined #ruby
Hobogrammer has joined #ruby
kennym has quit [Quit: Leaving.]
snuffeluffegus has joined #ruby
yubrew has joined #ruby
ggrant has quit [Ping timeout: 252 seconds]
jollyy has quit [Quit: jollyy]
Adran has joined #ruby
fgo_ has joined #ruby
speakingcode has quit [Quit: leaving]
lyanchih has joined #ruby
kotk has quit [Ping timeout: 264 seconds]
yubrew has quit [Ping timeout: 264 seconds]
fgo has quit [Ping timeout: 264 seconds]
juarlex has joined #ruby
julweber has joined #ruby
paolooo has quit [Ping timeout: 245 seconds]
tungd has quit [Ping timeout: 264 seconds]
tungd has joined #ruby
yfeldblum has joined #ruby
itadder has quit []
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
Skaag has joined #ruby
vlad_starkov has joined #ruby
AlexRussia has quit [Remote host closed the connection]
julweber has quit [Ping timeout: 264 seconds]
juarlex has quit [Ping timeout: 264 seconds]
yasushi has joined #ruby
apeiros has quit [Remote host closed the connection]
digitalcake1 has joined #ruby
yacks has joined #ruby
vlad_starkov has quit [Ping timeout: 264 seconds]
juarlex has joined #ruby
Hanmac has quit [Ping timeout: 264 seconds]
apeiros has joined #ruby
AlexRussia has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
meinside has quit [Quit: Connection closed for inactivity]
agjacome has quit [Quit: leaving]
Salve has joined #ruby
aspires has quit []
agjacome has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
jetblack has joined #ruby
CaptainJet has quit []
Hanmac has joined #ruby
juarlex has quit [Ping timeout: 264 seconds]
fijimunkii has quit [Ping timeout: 264 seconds]
JordanJ2 has quit [Changing host]
JordanJ2 has joined #ruby
Salve has quit [Ping timeout: 264 seconds]
yasushi has quit [Remote host closed the connection]
juarlex has joined #ruby
gizmore has quit [Changing host]
gizmore has joined #ruby
fijimunkii has joined #ruby
tungd has quit [Quit: leaving]
tjr9898_ has joined #ruby
mikemar1_ has quit [Ping timeout: 255 seconds]
MJBrune has quit [Read error: Connection reset by peer]
juarlex has quit [Ping timeout: 264 seconds]
23LAATCG7 has quit [Quit: 23LAATCG7]
tjr9898_ has quit [Ping timeout: 264 seconds]
byprdct has joined #ruby
MJBrune has joined #ruby
MJBrune has joined #ruby
MJBrune has quit [Changing host]
splud has quit [Quit: splud]
juarlex has joined #ruby
ericmath1son has quit [Quit: leaving]
<digitalcake1> how can I replace a string char at an index of the string?
<digitalcake1> example s = "……", s[5] = "*" , thus s = "…..*"
mikemar10 has joined #ruby
<digitalcake1> derp :P
<digitalcake1> so odd I had even tried that first
juarlex has quit [Ping timeout: 264 seconds]
juarlex has joined #ruby
Voodoofish430 has quit [Quit: Leaving.]
fgo_ has quit [Ping timeout: 264 seconds]
juarlex_ has joined #ruby
juarlex has quit [Ping timeout: 264 seconds]
iml has quit [Remote host closed the connection]
juarlex has joined #ruby
juarlex_ has quit [Ping timeout: 264 seconds]
byprdct has quit [Ping timeout: 264 seconds]
juarlex_ has joined #ruby
juarlex has quit [Ping timeout: 264 seconds]
juarlex_ has quit [Ping timeout: 264 seconds]
Rollabunna has joined #ruby
m4n1f3st0 has joined #ruby
fgo has joined #ruby
mois3x has quit [Quit: mois3x]
saarinen has joined #ruby
ruf has joined #ruby
yubrew has joined #ruby
<centrx> >> s = "......"; s[5] = "*"
BeingUntoDeath has joined #ruby
<eval-in> centrx => "*" (https://eval.in/120529)
<centrx> >> s = "......"; s[5] = "*"; s
<eval-in> centrx => ".....*" (https://eval.in/120531)
Lewix has joined #ruby
postmodern has quit [Quit: Leaving]
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
yubrew has quit [Ping timeout: 264 seconds]
mikepack has quit [Remote host closed the connection]
__tpavel has quit [Quit: Leaving]
radic has quit [Ping timeout: 255 seconds]
derek_c has quit [Quit: Leaving]
radic has joined #ruby
<JordanJ2> Can anyone help me?
mlpinit has joined #ruby
marcdel has joined #ruby
<centrx> If you have a question, just ask! For example: "I have a problem with ___; I'm running version ___. When I try to do ___ I get the following output ___. I expected it to do ___." Don't ask if you can ask, if anyone uses it, or pick one person to ask. We're all volunteers; make it easy for us to help you.
kies has quit [Quit: baaaaiiiiiiiiiii~]
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
mark06 has joined #ruby
saarinen has quit [Quit: saarinen]
<mark06> what's the easiest way to access win32 api from ruby?
<Billy2> win32-api gem?
<mark06> 'LPI', 'I'... aghh!
jetblack has quit [Ping timeout: 264 seconds]
<centrx> Looks like Windows to me
<JordanJ2> centrx, I have a error with TerminusBot (eventmachine) when trying to run it I am getting http://pastebin.com/7KTRwNXF
W0rmDr1nk has quit [Read error: Connection reset by peer]
JBlazeCo_ has quit []
armyriad has joined #ruby
pu22l3r has joined #ruby
saarinen has joined #ruby
* ruf
<centrx> JordanJ2, From the source code, it looks like you may have some incorrect/misplaced values in your config (https://github.com/Terminus-Project/Terminus-Bot/blob/master/lib/core.rb#L98)
ruf has quit [Quit: leaving]
deens has joined #ruby
<JordanJ2> centrx, How would I fix that?
alvaro_o has quit [Quit: Ex-Chat]
kies has joined #ruby
kies has joined #ruby
kies has quit [Changing host]
WormDrink has joined #ruby
<centrx> JordanJ2, "you may have some incorrect/misplaced values in your config"
braincra- has quit [Quit: bye bye]
<JordanJ2> That page you highlighted, anything in there?
browndawg has joined #ruby
Salve has joined #ruby
Hanmac has quit [Ping timeout: 264 seconds]
deens has quit [Ping timeout: 264 seconds]
<centrx> JordanJ2, That is the source code at the line where the error occurs
<JordanJ2> I do not know Ruby, centrx. I would have no clue how to fix this error
braincrash has joined #ruby
i_s has joined #ruby
arubin has joined #ruby
tylersmith has quit [Remote host closed the connection]
ndrei_ has quit [Ping timeout: 264 seconds]
klue has quit [Read error: Connection reset by peer]
Salve has quit [Ping timeout: 264 seconds]
Tomasso has quit [Ping timeout: 240 seconds]
ndrei has quit [Ping timeout: 264 seconds]
<centrx> JordanJ2, Okay, do you have a configuration file?
<JordanJ2> I do
<centrx> JordanJ2, Is this terminus-bot.conf.dist in the repository the corresponding example for it?
<JordanJ2> Yes
mikepack has joined #ruby
<centrx> JordanJ2, It looks like the error is in the "servers" section of your configuration file
<JordanJ2> Thank you centrx
kukyakya has joined #ruby
saarinen has quit [Quit: saarinen]
sski has quit [Remote host closed the connection]
mansi has joined #ruby
mikepack has quit [Remote host closed the connection]
Ibuprofen has joined #ruby
yasushi has joined #ruby
<Ibuprofen> anyone know how I can get this to add a backslash prior to the substitution?
<Ibuprofen> "* ?".gsub(/(\?|\*)/, '\1')
Hanmac has joined #ruby
<Ibuprofen> im just trying to escape some charts
<Ibuprofen> chars
<centrx> "\\\1"
endash_ has joined #ruby
<centrx> add more backslashes as necessary :)
<Ibuprofen> => "\\1 \\1"
sski has joined #ruby
<Ibuprofen> haha
<Ibuprofen> been trying that, a lot
<centrx> >> "\\\1"
<eval-in> centrx => "\\\u0001" (https://eval.in/120533)
lw has joined #ruby
<centrx> >> "* ?".gsub(/(\?|\*)/, '\1')
<eval-in> centrx => "* ?" (https://eval.in/120534)
<centrx> >> "* ?".gsub(/(\?|\*)/, '\\\1')
<eval-in> centrx => "\\1 \\1" (https://eval.in/120535)
saarinen has joined #ruby
<centrx> hhm
<JordanJ2> Hey centrx, now getting this http://pastebin.com/3Wt4m9A3
nari has joined #ruby
SonicX has joined #ruby
<Ibuprofen> hehe i can get two slashes
klue has joined #ruby
klue has joined #ruby
klue has quit [Changing host]
<Ibuprofen> centrx => "* ?".gsub(/(\?|\*)/, '\\\\\1')
<Ibuprofen> >> "* ?".gsub(/(\?|\*)/, '\\\\\1')
<eval-in> Ibuprofen => "\\* \\?" (https://eval.in/120536)
yasushi has quit [Ping timeout: 264 seconds]
<centrx> JordanJ2, Sounds like you have to explicitly specify in the configuration that you you are using the "url_handler" module (which is in Terminus)
<JordanJ2> >.<
hermanmunster has quit [Remote host closed the connection]
<JordanJ2> I have no idea how to do that
<centrx> JordanJ2, Where did the configuration file you are using come from?
<JordanJ2> terminus-bot.conf.dist
<JordanJ2> Renamed to terminus-bot.conf.
mansi has quit [Remote host closed the connection]
<centrx> JordanJ2, That default seems to have the url_handler module in it. Did you heavily redact it (removing url_handler along the way)?
<JordanJ2> No
S0da has quit [Remote host closed the connection]
<JordanJ2> Should I clone the git repo once again?
bradhe has joined #ruby
mark06 has left #ruby [#ruby]
digitalcake1 has quit [Quit: Leaving.]
devyn_ has quit [Changing host]
devyn_ has joined #ruby
devyn_ is now known as devyn
pu22l3r has quit [Remote host closed the connection]
<centrx> JordanJ2, Sure. Keep/copy the conf file you made so you don't lose what you've done so far.
<JordanJ2> Already removed it
kevinykchan has joined #ruby
Jetchisel has joined #ruby
<JordanJ2> Yes
digitalcake1 has joined #ruby
digitalcake1 has left #ruby [#ruby]
yubrew has joined #ruby
kevinykchan has quit [Ping timeout: 264 seconds]
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
yubrew has quit [Ping timeout: 264 seconds]
Hanmac has quit [Ping timeout: 264 seconds]
<centrx> JordanJ2, It looks like Terminus-Bot is highly configurable/powerful, but it also requires you to go through that config file and make sure it is set up how you want it to be
isbadawi has quit [Quit: Leaving.]
aspires has joined #ruby
Solnse has quit [Ping timeout: 252 seconds]
nisstyre_ has joined #ruby
isbadawi has joined #ruby
Hanmac has joined #ruby
cantonic has quit [Quit: cantonic]
browndawg1 has joined #ruby
browndawg2 has joined #ruby
browndawg has quit [Ping timeout: 264 seconds]
Guest14930 has quit [Remote host closed the connection]
agarie_ has quit [Remote host closed the connection]
mattmcclure has quit [Quit: Connection closed for inactivity]
browndawg1 has quit [Ping timeout: 264 seconds]
bradhe has quit [Remote host closed the connection]
marcdel has quit []
bradhe has joined #ruby
echevemaster has quit [Quit: Leaving]
echevemaster has joined #ruby
fridim__ has quit [Ping timeout: 264 seconds]
deens has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
wallerdev has joined #ruby
Salve has joined #ruby
mark06 has joined #ruby
deens has quit [Ping timeout: 264 seconds]
Shidash has quit [Ping timeout: 240 seconds]
<mark06> is there any gem/lib which would not make the win32 api uglier than here in python? bazaar.launchpad.net/~renatosilva/+junk/scripts/view/head:/http-shutdown.py
postmodern has joined #ruby
<mark06> * the win32 api calls
tjr9898_ has joined #ruby
Salve has quit [Ping timeout: 264 seconds]
<centrx> What the heck is this little bug picture below the TOC on the Ruby docs
<centrx> mark06, What are you thinking?
<centrx> mark06, How would you do it without passing all the parameters the Windows API wants?
amclain has quit [Quit: Leaving]
abdulsattar has joined #ruby
<mark06> centrx: for example, those 'A', 'B', 'C' convention... is very uglier....
<mark06> and ideally, the more encapsulated, the better...
bashed has joined #ruby
agarie has joined #ruby
<mark06> *very ugly... I didn't find that python snippet ugly at all
<bashed> Is there anywhere I could download the source code for the intial versions of ruby from?
<centrx> mark06, What are you trying to do specifically? I gather this Win32 API is set up this way to allow access to any possible Win32 API call.
tjr9898_ has quit [Ping timeout: 264 seconds]
<mark06> centrx: considering to port that python script to ruby
abdulsattar_ has joined #ruby
ceej_ is now known as ceej
<centrx> bashed, ftp://ftp.ruby-lang.org/pub/ruby/
<pipework> bashed: github?
<bashed> centrx: Thanks, found the one I was looking for.
Avahey_ has quit [Quit: Connection closed for inactivity]
joelroa has quit [Quit: Textual IRC Client: www.textualapp.com]
abdulsattar_ has quit [Client Quit]
agarie has quit [Remote host closed the connection]
abdulsattar_ has joined #ruby
aspires has quit []
horofox has quit [Quit: horofox]
Skaag has quit [Ping timeout: 264 seconds]
browndawg has joined #ruby
agjacome has quit [Ping timeout: 264 seconds]
foredoomed has joined #ruby
<centrx> mark06, Where are the docs for these Python libraries?
chrisramon has joined #ruby
browndawg2 has quit [Ping timeout: 264 seconds]
marcdel has joined #ruby
abdulsattar has quit [Ping timeout: 264 seconds]
<mark06> it's the PyWin32 lib
abdulsattar_ has quit [Ping timeout: 264 seconds]
agarie has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
chrisramon has quit [Client Quit]
Hanmac1 has joined #ruby
endash_ has quit [Quit: endash_]
yubrew has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
<centrx> mark06, Yeah, well it's unfortunate
agarie has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 264 seconds]
<centrx> mark06, You can certainly clean up the code for it, define the objects ahead of time
<centrx> Make a class called e.g. ShutdownApi, dynamically define some methods in it
saarinen has quit [Quit: saarinen]
juarlex has joined #ruby
kevinykchan has joined #ruby
yubrew has quit [Ping timeout: 264 seconds]
circuit has quit [Quit: leaving]
<mark06> gtg thanks all anyway
mark06 has left #ruby [#ruby]
vlad_starkov has joined #ruby
kevinykchan has quit [Ping timeout: 264 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
juarlex has quit [Ping timeout: 264 seconds]
maletor has joined #ruby
mikepack has joined #ruby
abdulsattar has joined #ruby
snath has joined #ruby
wallerdev has quit [Quit: wallerdev]
Skaag has joined #ruby
rippa has joined #ruby
bluOxigen has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
sepp2k has quit [Read error: Connection reset by peer]
timonv has joined #ruby
Skaag has quit [Ping timeout: 264 seconds]
fieldfirst has joined #ruby
abdulsattar has quit [Quit: Leaving]
abdulsattar has joined #ruby
wallerdev has joined #ruby
derek_c has joined #ruby
timonv has quit [Ping timeout: 264 seconds]
abdulsattar_ has joined #ruby
tectonic has joined #ruby
wallerdev has quit [Client Quit]
wallerdev has joined #ruby
mikepack_ has joined #ruby
fveb has joined #ruby
<fveb> ..
deens has joined #ruby
oioioioi has joined #ruby
finges_ is now known as finges
mikepack_ has quit [Ping timeout: 264 seconds]
Salve has joined #ruby
xm_ has quit [Ping timeout: 240 seconds]
deens has quit [Ping timeout: 264 seconds]
foredoomed has quit [Remote host closed the connection]
idiocrash has joined #ruby
davedev24 has quit [Remote host closed the connection]
idiocrash has quit [Client Quit]
generalissimo has joined #ruby
idiocrash has joined #ruby
Salve has quit [Ping timeout: 264 seconds]
dickgas has joined #ruby
wakus-on has joined #ruby
general|mobile has joined #ruby
kukyakya has quit [Ping timeout: 264 seconds]
dickgas has quit [Ping timeout: 245 seconds]
AndChat-616761 has joined #ruby
dickgas_ has joined #ruby
<dickgas_> who is the asshole that invented ruby
kate_r has joined #ruby
Tranquility has quit [Ping timeout: 265 seconds]
mattyohe has quit [Ping timeout: 255 seconds]
adsisco has quit [Ping timeout: 255 seconds]
Guest85414______ has quit [Ping timeout: 245 seconds]
machty has quit [Ping timeout: 265 seconds]
RohanRNS has quit [Ping timeout: 265 seconds]
vcoinminer__ has quit [Ping timeout: 265 seconds]
jds has quit [Ping timeout: 265 seconds]
fayimora has quit [Ping timeout: 255 seconds]
yo61 has quit [Ping timeout: 255 seconds]
bcavileer_ has quit [Ping timeout: 255 seconds]
alol_ has quit [Ping timeout: 245 seconds]
<pontiki> you!
charles81 has quit [Ping timeout: 265 seconds]
mmochan_ has quit [Ping timeout: 265 seconds]
rickenharp_ has quit [Ping timeout: 255 seconds]
nhmood_ has quit [Ping timeout: 255 seconds]
drjblouse__ has quit [Ping timeout: 255 seconds]
schaary has quit [Ping timeout: 264 seconds]
cbetta has quit [Ping timeout: 264 seconds]
lectrick_ has quit [Ping timeout: 245 seconds]
Jakee`__ has quit [Ping timeout: 245 seconds]
bashed has quit [Ping timeout: 264 seconds]
guilleiguaran has quit [Ping timeout: 246 seconds]
jrunning_____ has quit [Ping timeout: 255 seconds]
jpinnix___ has quit [Ping timeout: 255 seconds]
antonishen has quit [Ping timeout: 255 seconds]
ceej has quit [Ping timeout: 255 seconds]
mjc_ has quit [Ping timeout: 255 seconds]
phantomwhale has quit [Ping timeout: 255 seconds]
robmozart__ has quit [Ping timeout: 255 seconds]
adambeynon has quit [Ping timeout: 265 seconds]
mroth has quit [Ping timeout: 265 seconds]
bluehavana_ has quit [Ping timeout: 265 seconds]
CJD14__ has quit [Ping timeout: 264 seconds]
21WAADLHY has quit [Ping timeout: 264 seconds]
generalissimo has quit [Ping timeout: 264 seconds]
culturelabs has quit [Ping timeout: 255 seconds]
pipework has quit [Ping timeout: 255 seconds]
frode15243__ has quit [Ping timeout: 265 seconds]
zzak has quit [Ping timeout: 265 seconds]
kapowaz has quit [Ping timeout: 265 seconds]
dnyy has quit [Ping timeout: 265 seconds]
supershabam has quit [Ping timeout: 265 seconds]
zrl has quit [Ping timeout: 265 seconds]
general|mobile has quit [Ping timeout: 264 seconds]
21WAADLD5 has quit [Ping timeout: 264 seconds]
thesheff17 has quit [Ping timeout: 264 seconds]
21WAADLGB has quit [Ping timeout: 264 seconds]
bashed has joined #ruby
AndChat-616761 has quit [Client Quit]
yubrew has joined #ruby
Sigloo has quit [Ping timeout: 264 seconds]
dickgas_ has quit [K-Lined]
klue has quit [Ping timeout: 264 seconds]
bradhe has joined #ruby
agarie has joined #ruby
i_s has quit [Remote host closed the connection]
jackneill has joined #ruby
jackneill has quit [Changing host]
jackneill has joined #ruby
yubrew has quit [Ping timeout: 264 seconds]
m4n1f3st0 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bradhe has quit [Ping timeout: 264 seconds]
wallerdev has quit [Quit: wallerdev]
agarie has quit [Ping timeout: 264 seconds]
jackjackdrpr has joined #ruby
atmosx has joined #ruby
fveb has left #ruby [#ruby]
kevinykchan has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
saarinen has joined #ruby
adsisco has joined #ruby
jackjackdrpr has quit [Client Quit]
kapowaz has joined #ruby
JBreit has quit [Read error: Connection reset by peer]
<atmosx> aloha
<Jamo> howdy
pipework has joined #ruby
arubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kevinykchan has quit [Ping timeout: 264 seconds]
robinbowes has joined #ruby
centrx has quit [Quit: All this computer hacking is making me thirsty]
fgo_ has joined #ruby
saarinen has quit [Quit: saarinen]
fgo has quit [Ping timeout: 264 seconds]
zorak has quit [Remote host closed the connection]
chris_th_ has quit [Quit: Zzz...]
postmodern has quit [Quit: Leaving]
Wolland has joined #ruby
armyriad has quit [Ping timeout: 264 seconds]
marcdel has quit []
Hanmac has joined #ruby
Hanmac1 has quit [Ping timeout: 264 seconds]
JBreit has joined #ruby
JBreit has left #ruby [#ruby]
razibog has joined #ruby
tectonic has quit []
tjr9898 has quit [Read error: Connection reset by peer]
Salve has joined #ruby
tesuji has joined #ruby
Salve has quit [Ping timeout: 264 seconds]
vcoinminer__ has joined #ruby
<pontiki> time for some debugging
mikepack has quit [Remote host closed the connection]
Wolland has quit []
mikepack has joined #ruby
cbetta has joined #ruby
yubrew has joined #ruby
browndawg has quit [Ping timeout: 264 seconds]
abk has joined #ruby
tjr9898 has joined #ruby
NicholasFlamel has joined #ruby
sigurding has joined #ruby
bashed has quit [Ping timeout: 264 seconds]
kevind has joined #ruby
bradhe has joined #ruby
rockelb has joined #ruby
echevemaster has quit [Quit: Leaving]
agarie has joined #ruby
ValicekB has quit []
razibog has quit [Quit: Leaving.]
jefflyne has quit [Ping timeout: 252 seconds]
yubrew has quit [Ping timeout: 264 seconds]
phrozen77 has quit [Changing host]
phrozen77 has joined #ruby
tesuji has quit [Read error: Connection reset by peer]
bradhe has quit [Ping timeout: 264 seconds]
dweeb_ has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
agarie has quit [Ping timeout: 264 seconds]
dweeb_ has quit [Client Quit]
fieldfirst has quit [Read error: Connection reset by peer]
jefflyne has joined #ruby
fieldfirst has joined #ruby
obs has joined #ruby
oioioioi has quit [Read error: Connection reset by peer]
atmosx has quit [Quit: Lost in trance]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
ValicekB has joined #ruby
rockelb has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
dnyy has joined #ruby
razibog has joined #ruby
kevinykchan has joined #ruby
timonv has joined #ruby
fieldfirst has quit [Read error: Connection reset by peer]
fieldfirst has joined #ruby
<sigurding> do I put require 'bundler/setup' in all files?
lectrick__ has joined #ruby
mattyohe has joined #ruby
guilleiguaran has joined #ruby
kevinykchan has quit [Ping timeout: 264 seconds]
phansch has joined #ruby
Beoran has quit [Ping timeout: 240 seconds]
Beoran__ has quit [Ping timeout: 240 seconds]
<sigurding> join #rubyde
klaut has joined #ruby
creede has joined #ruby
kevind has quit [Quit: kevind]
mikepack has quit [Remote host closed the connection]
Skaag has joined #ruby
lkba has joined #ruby
nisstyre_ has quit [Quit: WeeChat 0.4.3]
timonv has quit [Remote host closed the connection]
isbadawi has quit [Quit: Leaving.]
alexju has joined #ruby
phansch has quit [Quit: WeeChat 0.4.2]
jarray52 has joined #ruby
Skaag has quit [Ping timeout: 264 seconds]
bradhe has joined #ruby
<jarray52> Why doesn't Ruby-2.1.1 have an associated patchset? (the -p451 or something like that at the end)
decoponio has joined #ruby
mikepack has joined #ruby
browndawg has joined #ruby
isbadawi has joined #ruby
relix has joined #ruby
claymore has joined #ruby
bradhe has quit [Remote host closed the connection]
<pontiki> too new?
mikepack has quit [Ping timeout: 252 seconds]
bradhe has joined #ruby
Salve has joined #ruby
<pontiki> 2.1.1 is only 19 days old
<pontiki> even 2.1.0 doesn't have a patch set
bashed has joined #ruby
kevinykchan has joined #ruby
<pontiki> sigurding: you should only need it in the first file in the app
<sigurding> ponbiki: thanks
<pontiki> first file loaded
kevinykchan has quit [Client Quit]
<pontiki> ponbiki: is my wretched illegitimate daughter
blackmesa has joined #ruby
mercwithamouth has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
withnale_ has quit [Ping timeout: 264 seconds]
Salve has quit [Ping timeout: 252 seconds]
fieldfirst has quit [Ping timeout: 264 seconds]
nisstyre has quit [Quit: WeeChat 0.4.3]
andrewlio has joined #ruby
yubrew has joined #ruby
21WAADKPQ has quit [Read error: Connection reset by peer]
lepht_ has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
CJD14__ has joined #ruby
<abdulsattar> jarray52: Ruby switched to semver. No patch sets from now on
shadoi1 has joined #ruby
obs has quit [Remote host closed the connection]
<sigurding> anyone here may tell me how to debug segmentation errors?
twiceaday has quit [Ping timeout: 240 seconds]
twiceaday has joined #ruby
yubrew has quit [Ping timeout: 252 seconds]
guilleiguaran has quit [Quit: Connection closed for inactivity]
mlpinit has quit [Remote host closed the connection]
nhmood_ has joined #ruby
skaflem has joined #ruby
nfk has joined #ruby
21WAADPRO has joined #ruby
banister has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
noobgains has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
withnale has joined #ruby
deadlock has joined #ruby
mercwithamouth has joined #ruby
yfeldblu_ has joined #ruby
daoust has joined #ruby
rockelb has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
<jarray52> abdulsattar: Thanks.
mansi_ has joined #ruby
foooobear has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
andy__ has joined #ruby
vlad_starkov has joined #ruby
bradhe has joined #ruby
mansi_ has quit [Ping timeout: 252 seconds]
nari has quit [Ping timeout: 264 seconds]
BeingUntoDeath has quit [Ping timeout: 264 seconds]
hiyosi has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
foredoomed has joined #ruby
zigomir has joined #ruby
_Andres has joined #ruby
foredoomed has quit [Client Quit]
razibog has quit [Quit: Leaving.]
Hanmac1 has joined #ruby
<shevy> sigurding not trivial
<sigurding> shevy: that's what I see
<shevy> you should try to narrow it down as much as possible
<shevy> and compile from source :)
snuffeluffegus has quit [Quit: Leaving]
<sigurding> shevy: it seems related with https://github.com/rest-client/rest-client
arianit has joined #ruby
arianit has joined #ruby
<sigurding> my errors look like this: .rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/uri/common.rb:209: [BUG] Segmentation fault at 0x00000000000000
<shevy> ewwww
Hanmac has quit [Ping timeout: 264 seconds]
<sigurding> yep, that's really ewww
<shevy> I had that with a faulty glibc
<shevy> EIP instructions
<sigurding> the problem is, it is not really helpful and I am not sure what may cause this errors
<sigurding> beside that it seems to be in different places: .rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/net/http/response.rb:54: [BUG] Segmentation fault at 0x00000000000000
<sigurding> I tried 1.9.2, 2.0 and 2.1
derek_c has quit [Quit: Leaving]
<sigurding> shevy: the thing is, that I build a small plugin system
<sigurding> and put the rest-client into a singleton class
_justin has joined #ruby
bashed has quit [Ping timeout: 252 seconds]
sigurding has quit [Quit: sigurding]
<shevy> have you found the minimal ruby code that leads to these segfaults yet?
sigurding has joined #ruby
Skaag has joined #ruby
_justin has quit [Client Quit]
S0da has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
deadlock has quit [Ping timeout: 252 seconds]
mercwithamouth has joined #ruby
camidoo has left #ruby [#ruby]
Skaag has quit [Ping timeout: 252 seconds]
kennym has joined #ruby
ndrei has joined #ruby
rockelb has quit [Quit: Leaving]
noobgains has quit [Ping timeout: 252 seconds]
nisstyre has joined #ruby
kennym has quit [Ping timeout: 252 seconds]
AlSquirrel has joined #ruby
_justin has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
Salve has joined #ruby
yubrew has joined #ruby
Hanmac1 has quit [Ping timeout: 252 seconds]
bluehavana_ has joined #ruby
agarie has joined #ruby
_justin has quit [Ping timeout: 252 seconds]
_justin has joined #ruby
yubrew has quit [Ping timeout: 252 seconds]
Salve has quit [Ping timeout: 252 seconds]
nbezzala has joined #ruby
agarie has quit [Ping timeout: 252 seconds]
mercwithamouth has quit [Ping timeout: 252 seconds]
jds has joined #ruby
Jakee`__ has joined #ruby
f0ster has quit [Ping timeout: 255 seconds]
lyanchih has quit [Quit: lyanchih]
lyanchih_ has joined #ruby
nicoulaj has joined #ruby
jarray52 has left #ruby [#ruby]
21WAADPRO has quit [Ping timeout: 264 seconds]
lolmaus has joined #ruby
robinbowes is now known as yo61
fieldfirst has joined #ruby
fveb has joined #ruby
charles81 has joined #ruby
antonishen has joined #ruby
mlpinit has joined #ruby
abdulsattar_ has quit [Ping timeout: 264 seconds]
abdulsattar has quit [Ping timeout: 264 seconds]
monkegjinni has joined #ruby
_justin has quit [Quit: _justin]
<codeFiend> hey all
<codeFiend> i have a scoping issue
<codeFiend> i can't figure out how to access module methods from submodule
<shevy> well
<shevy> module method you mean something like
kies has quit [Quit: baaaaiiiiiiiiiii~]
<shevy> Foo.bar
<shevy> right?
<codeFiend> yep
<shevy> k well then let's make an example
<codeFiend> i can gist the code if that would help?
<codeFiend> i am probably doing something very dumb
<codeFiend> sigh
mlpinit has quit [Ping timeout: 252 seconds]
mercwithamouth has joined #ruby
<codeFiend> i'm defining the method like "def self.machines ... end"
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
monkegjinni has quit [Ping timeout: 252 seconds]
<shevy> codeFiend http://pastie.org/8920936
<shevy> codeFiend well it will take a long time if you talk about it, it is much easier to show the snippet that does not work
<codeFiend> yeah
<codeFiend> one sec
<shevy> in general the simplest syntax is to use def self.
Hanmac has joined #ruby
bradhe has joined #ruby
monkegjinni has joined #ruby
atmosx has joined #ruby
vlad_starkov has quit [Read error: No route to host]
mansi_ has joined #ruby
vlad_starkov has joined #ruby
<codeFiend> shevy: so basically something like this:
<codeFiend> dispatch really receives a message on some channel
<codeFiend> it wants to parse channel name, and figure out where to send the message for processing
<codeFiend> which works, it invokes Api::Pools.index correctly
<codeFiend> but that method says "pools" method is undefined (which is defined in Mtool module, which it extends)
bradhe has quit [Ping timeout: 252 seconds]
<shevy> I dont know what that is
juarlex has joined #ruby
<codeFiend> sorry
<codeFiend> it's kinda confusing i guess
<codeFiend> let me rename some of the methods
<shevy> I dont think that will help much
<shevy> you seem to use some third party code
<shevy> and things like @@ in modules
mansi_ has quit [Ping timeout: 252 seconds]
<shevy> and things like this here: client.run
<shevy> I do not know where client comes from
<codeFiend> yeah that's eventmachine
<shevy> yeah, I dont know eventmachine, sorry
<codeFiend> one sec
<codeFiend> i don't think it's relevant anyway
<shevy> where is the scoping issue btw?
havv has joined #ruby
abk has quit [Ping timeout: 264 seconds]
<codeFiend> shevy: reload the gist, maybe this is clearer
<codeFiend> seems like WHAT_WE_NEED is undefined in self.index
<toretore> no self in Mtool
<shevy> still not sure what you try to achieve, where do you invoke WHAT_WE_NEED btw?
<codeFiend> shevy: in self.index in pools.rb
abdulsattar has joined #ruby
<shevy> no you don't
jack_rabbit has quit [Quit: SIGSEGV (core dumped)]
<shevy> it would have to be Mtool.WHAT_WE_NEED there
juarlex has quit [Ping timeout: 252 seconds]
jack_rabbit has joined #ruby
<shevy> the code inside of WHAT_WE_NEED does not seem to make much self; you probably wanted yield if block_given? instead
<codeFiend> shevy: yeah, i was simplifying it for the example, so it probably doesn't work anymore
<shevy> I wanted to write "make much sense" :)
<shevy> codeFiend update your gist :P
<codeFiend> toretore: if I take self out, then I can't invoke that method in other methods inside the same module?
lolmaus_ has joined #ruby
<shevy> wait
<shevy> it is not the same module
lolmaus has quit [Ping timeout: 252 seconds]
<shevy> I really think you should reduce this to the simplest example possible
<shevy> like only 2 modules
leonidlm has joined #ruby
<toretore> codeFiend: what is it you're actually trying to do? it looks like you're just baging things together in the hope that they'll sort of work
timonv has joined #ruby
<toretore> *banging arg
<codeFiend> at 3am in the morning that's an apt description
<toretore> it seems like you're trying to route messages to different handlers
ktosiek has joined #ruby
<codeFiend> toretore: yes
<codeFiend> shevy: updated gist
<codeFiend> toretore: i was trying to have separate modules for processing different messages.
<toretore> codeFiend: ok, can you regist the EM+XMPP stuff that you had earlier?
fgo_ has quit [Ping timeout: 264 seconds]
<codeFiend> toretore: but I wanted them to have access to the common methods in the main module since that's where the XMPP and web socket connections are established
<codeFiend> so I thought I could do that with extend
<toretore> so, what you want it "get message X, send to handler A, message Y to handler B"
timonv has quit [Ping timeout: 252 seconds]
<toretore> first, stop using modules and use classes instead
<codeFiend> toretore: yeah, exactly
<toretore> then you instances can have state
<codeFiend> toretore: blather example code used a module, so I went with that
<toretore> ah, right, git :P
<codeFiend> i guess if I use classes, I have to instantiate them somewhere?
<codeFiend> wasn't sure where to do that in this context
<toretore> ok, first of all, what's this blather thing?
* codeFiend is a noob
<codeFiend> xmpp library
<toretore> looks like a useless abstraction on top of faye
<toretore> oh
<toretore> ok
<codeFiend> this is kind of, uh, a translator service between xmpp and faye
<codeFiend> heh
<toretore> but it doesn't show anything connection-y
<codeFiend> excluded for brevity
<codeFiend> i can add the whole thing if you like :)
<toretore> yes
<toretore> more code = better
<toretore> all the code = best
abk has joined #ruby
Tranquility has joined #ruby
<toretore> "Features: uses Nokogiri"
kayloos has joined #ruby
phansch has joined #ruby
mlpinit has joined #ruby
<codeFiend> toretore: this is more or less it: https://gist.github.com/Aeon/9563985
<codeFiend> toretore: thank you btw
<codeFiend> i've been banging my head against this all day
<codeFiend> and all night
Skaag has joined #ruby
mlpinit has quit [Ping timeout: 252 seconds]
<toretore> ok, so your xmpp stuff works?
<codeFiend> yep
<codeFiend> faye works too
ghk has joined #ruby
<codeFiend> just trying to figure out routing stuff without dumping explicit subscriptions to everything in there
<toretore> explicit is usually better
<toretore> in my experience
<codeFiend> well i also was hoping to avoid a huge blob of code in a monster method :)
abk has quit [Ping timeout: 252 seconds]
<toretore> so what's this Pools module?
abdulsattar has quit [Ping timeout: 252 seconds]
<toretore> is it a handler?
<codeFiend> just to encapsulate handlers for /api/pools/* messages
<codeFiend> kinda like the rails controllers
<toretore> ok, so /api/pools/* messages are supposed to go there?
<codeFiend> yep
<codeFiend> well, they do
<codeFiend> that works
<codeFiend> the whole api_klass.send works fine
yubrew has joined #ruby
<codeFiend> what doesn't work is accessing module methods that are defined on Mtool from Api::Pools.index method
vlad_starkov has quit [Remote host closed the connection]
<codeFiend> i.e., on line 8 of pools.rb, it says method undefined basically
carraroj has joined #ruby
<toretore> what is the bare minimum of information a handler needs to do its job?
<toretore> i don't know xmpp well
pskosinski_ has quit [Quit: Til rivido Idisti!]
Skaag has quit [Ping timeout: 252 seconds]
abdulsattar has joined #ruby
abdulsattar_ has joined #ruby
agarie has joined #ruby
abdulsattar_ has quit [Client Quit]
<toretore> if you're routing messages from faye to xmpp, shouldn't [@@faye, message] be enough?
abdulsattar_ has joined #ruby
abdulsattar_ has quit [Client Quit]
<toretore> ehm
<codeFiend> oh
abdulsattar has quit [Remote host closed the connection]
<toretore> whatever is the xmpp equivalent of @@faye
mikecmpbll has joined #ruby
vlad_starkov has joined #ruby
abdulsattar has joined #ruby
yubrew has quit [Ping timeout: 252 seconds]
<codeFiend> hmm
<codeFiend> well, it's client (as in self.run)
<codeFiend> i guess I can pass them both to handlers
<codeFiend> but it seems kinda hacky
<toretore> no, it's correct
<toretore> the other way around is hacky
<codeFiend> and it means I can't use any of of the xmpp dsl methods
<codeFiend> in the handlers
<codeFiend> only the raw client handle
samfisher has joined #ruby
<toretore> you could pass self
<codeFiend> i mean when I do "extend Blather::DSL" in mtool
<codeFiend> i get all those nice things
<toretore> handler.new(self, @@faye, message)
<codeFiend> i see
<codeFiend> i thought if i do "extend Mtool" i would automatically inherit that
<codeFiend> but I guess that doesn't work because it's not an instance?
<codeFiend> not a class i mean
Salve has joined #ruby
charliesome has joined #ruby
<toretore> but really, don't obsess about "nice" or "easy", that will only come back to bite you
<codeFiend> sure :)
<codeFiend> i just want to understand
<toretore> self is self, no matter what self is
<codeFiend> just don't get why it works for "extend Blather::DSL"
<codeFiend> unless they do some magic
<toretore> it's quite simple
<codeFiend> to make their methods available on whatever extends it
Atww has quit [Ping timeout: 255 seconds]
agarie has quit [Ping timeout: 252 seconds]
<toretore> you are defining `self.pools`
<toretore> when you `extend Mtool` it adds the "instance" methods of Mtool
<toretore> if you'd look at Blather::DSL, there would be no "self."
rootshift has joined #ruby
<codeFiend> hmm
<codeFiend> right
<codeFiend> there isn't
Merks has joined #ruby
<codeFiend> toretore: ok, so if remove self, they will become available in extending modules...
Salve has quit [Ping timeout: 252 seconds]
withnale has quit [Ping timeout: 252 seconds]
senayar has joined #ruby
CpuID has joined #ruby
<codeFiend> but it's better to make them classes and pass self to them?
<toretore> yes
abk has joined #ruby
<toretore> this module nonsense will get you nowhere
<codeFiend> if i make them classes, won't it make new instance of class every time message is received?
einarj has joined #ruby
<toretore> yes
<samfisher> is there any way I can emulate a printer with ruby, so a 3rd party software to print data to TXT?
vlad_starkov has quit [Remote host closed the connection]
alexju has quit [Remote host closed the connection]
AndChat| has joined #ruby
vlad_starkov has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
thesheff17 has joined #ruby
Guest85414______ has joined #ruby
<codeFiend> toretore: makes sense i guess
<codeFiend> toretore: but won't this make a new handler object for every received message?
postmodern has joined #ruby
<toretore> yes
monkegjinni has quit [Remote host closed the connection]
fgo has joined #ruby
<toretore> (no, it's not inefficient)
northfurr has quit [Read error: Connection reset by peer]
<codeFiend> heheh
monkegjinni has joined #ruby
northfurr has joined #ruby
<toretore> objects are born and die by the millions in a ruby app
<toretore> ok, thousands anyway
<codeFiend> ... i could also do handler.send route_method, message instead? so i can have multiple handler methods in one channel class?
<toretore> or you could leave that up to the handler
gsvolt_ has quit [Quit: No Ping reply in 180 seconds.]
devdazed has joined #ruby
<apeiros> s/send/public_send/
<toretore> the handler is perfectly capable of doing that itself
<codeFiend> i suppose so
fayimora_ has joined #ruby
gsvolt has joined #ruby
alol_ has joined #ruby
<codeFiend> toretore: thanks a otn
<codeFiend> ton
<banister> apeiros did u see Symbol#call ?
AndChat| has quit [Ping timeout: 252 seconds]
<toretore> class DefaultHandler < Handler; def handle; public_send(message.whatever); end; end
<apeiros> banister: nope
ndrei has joined #ruby
adambeynon has joined #ruby
monkegjinni has quit [Read error: No route to host]
<banister> apeiros like a Symbol#to_proc but can accept args
<apeiros> banister: ah, hehe
<codeFiend> toretore: this helped a lot
Speed has joined #ruby
<apeiros> banister: nice
<banister> apeiros i didnt come up with it (benzrf on this chan did) but im a huge fan, that should be in core IMO, it's so simple and slick
nisstyre has quit [Quit: WeeChat 0.4.3]
browndawg has quit [Quit: Leaving.]
bradhe has joined #ruby
<abdulsattar> banister: I've never seen anyone this excited about a method :)
ferr has joined #ruby
<banister> abdulsattar hehe, it's so elegant ;) I've wanted something like this for a while too and this solution is really sweet
mercwithamouth has quit [Ping timeout: 252 seconds]
withnale has joined #ruby
ferr has quit [Client Quit]
<sigurding> is rest-client not thread-safe?
ichistmeinname has joined #ruby
havv has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 252 seconds]
ichistmeinname has left #ruby [#ruby]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
<toretore> sigurding: does it say it's thread safe?
davedev24 has joined #ruby
<apeiros> sigurding: rule of thumb - everything which does not explicitly state thread safety is not thread safe.
<sigurding> toretore: it downloads thread_safe as dependency, but when I call (parallel) two classes: RestClient.get(uri, header) {... } I get segmentation faults
mansi_ has joined #ruby
nbezzala has quit [Remote host closed the connection]
<toretore> it doesn't list it as a direct dependency
<toretore> it may be one of the dependencies that's not thread safe too
idiocrash has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mercwithamouth has joined #ruby
<sigurding> apeiros: I created a small plugin system like that: https://gist.github.com/jhiemer/01059ee97c800cc97d36
<sigurding> and when I have more than one plugin, the segmentation errors occur
mansi_ has quit [Ping timeout: 252 seconds]
lordd has quit []
montyboy has joined #ruby
ghk has left #ruby [#ruby]
ghk has joined #ruby
mustdoge has joined #ruby
<mustdoge> Why does ruby sucks?
timonv has joined #ruby
frode15243_ has joined #ruby
jpinnix____ has joined #ruby
phantomwhale has joined #ruby
fveb has quit [Ping timeout: 264 seconds]
mjc__ has joined #ruby
robmozart__ has joined #ruby
mmochan_ has joined #ruby
dachi has quit [Quit: ...]
machty has joined #ruby
fveb has joined #ruby
kennym has joined #ruby
jrunning_____ has joined #ruby
mroth__ has joined #ruby
culturelabs_ has joined #ruby
zrl has joined #ruby
bcavileer_ has joined #ruby
RohanRNS has joined #ruby
rickenharp__ has joined #ruby
drjblouse__ has joined #ruby
supershabam_ has joined #ruby
zzak_ has joined #ruby
ceej has joined #ruby
mustdoge was kicked from #ruby by apeiros [no trolls allowed, sorry]
AussieDownUnder has joined #ruby
bedouin_ has joined #ruby
kennym has quit [Ping timeout: 252 seconds]
stnly has quit [Ping timeout: 252 seconds]
CpuID has quit [Quit: This computer has gone to sleep]
kennym has joined #ruby
kennym has quit [Client Quit]
stnly has joined #ruby
_bart has joined #ruby
arianit has quit [Ping timeout: 252 seconds]
isbadawi has quit [Quit: Leaving.]
ggherdov_ has quit [Changing host]
ggherdov_ has joined #ruby
ggherdov_ has joined #ruby
isbadawi has joined #ruby
ggherdov_ is now known as ggherdov
diegoviola has quit [Read error: Connection reset by peer]
fieldfirst has quit [Ping timeout: 252 seconds]
failshel_ has joined #ruby
jollyy has joined #ruby
<sigurding> apeiros: so any hint or advice you could give me?
mercwithamouth has quit [Ping timeout: 252 seconds]
claymore has quit [Ping timeout: 252 seconds]
mercwithamouth has joined #ruby
VTLob has joined #ruby
horofox has joined #ruby
mehlah has joined #ruby
isbadawi has quit [Ping timeout: 252 seconds]
ktosiek_ has joined #ruby
perlsyntax has joined #ruby
claymore has joined #ruby
claymore has quit [Changing host]
claymore has joined #ruby
Salve has joined #ruby
ktosiek has quit [Ping timeout: 252 seconds]
ktosiek_ is now known as ktosiek
Salve has quit [Ping timeout: 240 seconds]
aryaching has joined #ruby
failshel_ has quit [Remote host closed the connection]
zenojis_ has quit [Ping timeout: 265 seconds]
mostlybadfly has joined #ruby
wakus-on has quit [K-Lined]
vlad_sta_ has joined #ruby
bradhe has joined #ruby
itadder has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
montyboy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
andy__ has quit [Remote host closed the connection]
schaary_ has joined #ruby
abdulsattar has quit [Ping timeout: 252 seconds]
andy__ has joined #ruby
gyre007___ has joined #ruby
pagioss has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
andy__ has quit [Ping timeout: 252 seconds]
fannye has joined #ruby
_Andres has quit [Read error: Connection reset by peer]
hermanmunster has joined #ruby
abdulsattar has joined #ruby
blackmesa has joined #ruby
aryaching has quit [Ping timeout: 240 seconds]
isbadawi has joined #ruby
alexherbo2 has quit [Quit: WeeChat 0.4.3]
mansi_ has joined #ruby
isbadawi has quit [Read error: Connection reset by peer]
mercwithamouth has quit [Ping timeout: 240 seconds]
isbadawi has joined #ruby
jollyy has quit [Quit: jollyy]
abdulsattar has quit [Ping timeout: 240 seconds]
aryaching has joined #ruby
jollyy has joined #ruby
juarlex has joined #ruby
kirun has joined #ruby
mansi_ has quit [Ping timeout: 240 seconds]
monkegjinni has joined #ruby
isbadawi has quit [Ping timeout: 264 seconds]
camilasan has joined #ruby
juarlex has quit [Ping timeout: 240 seconds]
m8 has joined #ruby
shevy has quit [Ping timeout: 252 seconds]
monkegjinni has quit [Ping timeout: 252 seconds]
itadder has quit [Remote host closed the connection]
shevy has joined #ruby
teddyp1cker has joined #ruby
arianit has joined #ruby
yubrew has joined #ruby
jollyy has quit [Quit: jollyy]
<lolmaus_> How do i eval Ruby in channel?
shadoi1 has quit [Read error: Connection reset by peer]
<lolmaus_> > foo = true == false or true == true; foo
<lolmaus_> `foo = true == false or true == true; foo`
<lolmaus_> eval foo = true == false or true == true; foo
<lolmaus_> :(
shadoi1 has joined #ruby
mercwithamouth has joined #ruby
<shevy> lolmaus_ man, the trigger are two leading >
<lolmaus_> shevy: thx
<lolmaus_> >> foo = true == false or true == true; foo
<eval-in> lolmaus_ => false (https://eval.in/120621)
<lolmaus_> Why is this false?
<lolmaus_> >> true == false or true == true
<eval-in> lolmaus_ => true (https://eval.in/120622)
<shevy> I think it won't need to evaluate
<lolmaus_> Is it parsed as `(foo = true == false) or (true == true); foo` ?
agarie has joined #ruby
<lolmaus_> >> # This way it works; foo = (true == false or true == true); foo
<eval-in> lolmaus_ => nil (https://eval.in/120623)
<lolmaus_> owch
<lolmaus_> >> "This way it works"; foo = (true == false or true == true); foo
<eval-in> lolmaus_ => true (https://eval.in/120624)
<shevy> lolmaus_ it is definitely different if you use ()
<shevy> :)
<lolmaus_> I wonder what is the order of operations in `foo = true == false or true == true`
mlpinit has joined #ruby
yubrew has quit [Ping timeout: 252 seconds]
<shevy> try this: foo = true == false || true == true
<lolmaus_> >> foo = true == false || true == true; foo
<eval-in> lolmaus_ => true (https://eval.in/120625)
montyboy has joined #ruby
<lolmaus_> Captain?
mrnugget has joined #ruby
<shevy> hmm?
arianit has quit [Ping timeout: 252 seconds]
<shevy> && and || have higher precedence than and and or
<shevy> somehow my sentence contained one and too many, I think :)
TMM has joined #ruby
<shevy> or perhaps not
<shevy> grrr
<lolmaus_> shevy: thx
horofox has quit [Quit: horofox]
<lolmaus_> shevy: the matter is that the `=` operator is executed before `or`
mercwithamouth has quit [Ping timeout: 240 seconds]
peckerman has joined #ruby
<shevy> yeah
closer has quit [Ping timeout: 252 seconds]
dachi has joined #ruby
closer has joined #ruby
agarie has quit [Ping timeout: 252 seconds]
dachi has quit [Remote host closed the connection]
claymore has quit [Ping timeout: 240 seconds]
matchaw has joined #ruby
mlpinit has quit [Ping timeout: 240 seconds]
Lewix has quit [Remote host closed the connection]
claymore has joined #ruby
mehlah has quit [Quit: Leaving...]
lyanchih_ has quit [Quit: lyanchih_]
foooobear has quit [Quit: Computer has gone to sleep.]
browndawg has joined #ruby
ktosiek_ has joined #ruby
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
ktosiek has quit [Read error: Connection reset by peer]
makara has joined #ruby
Salve has joined #ruby
matchaw has quit [Read error: Operation timed out]
daoust has quit [Remote host closed the connection]
matchaw has joined #ruby
jack_rabbit has quit [Ping timeout: 252 seconds]
<banister> apeiros "Allgemeine Fahrzeugkontrolle, Führerschein und Fahrzeugpapiere bitte!
<apeiros> o0
dachi has joined #ruby
sski_ has joined #ruby
bugge has joined #ruby
codwrit has joined #ruby
<codwrit> hi all
Guest33221 is now known as juni0r
Salve has quit [Ping timeout: 240 seconds]
SHyx0rmZ has joined #ruby
codwrit has quit [Client Quit]
bradhe_ has joined #ruby
sski has quit [Ping timeout: 264 seconds]
tgkokk has joined #ruby
tgkokk has quit [Max SendQ exceeded]
Speed has joined #ruby
matchaw_ has joined #ruby
matchaw has quit [Ping timeout: 240 seconds]
bradhe_ has quit [Ping timeout: 252 seconds]
hiddev has joined #ruby
peckerman_ has joined #ruby
claymore has quit [Ping timeout: 240 seconds]
<csmrfx> Wenn Sie hier für mehr als 8 Jahren, Schritt außerhalb bitte!
claymore has joined #ruby
<csmrfx> banister ^
* csmrfx omg its the ruby border control
lkba has joined #ruby
klue has joined #ruby
tkuchiki has joined #ruby
superlou has joined #ruby
tgkokk has joined #ruby
tgkokk has quit [Max SendQ exceeded]
jcs222 has joined #ruby
tgkokk has joined #ruby
TheLarkInn has quit [Quit: Leaving.]
matchaw has joined #ruby
matchaw_ has quit [Ping timeout: 240 seconds]
peckerman has quit [Quit: buhbye!]
monkegjinni has joined #ruby
<superlou> So, I've been using rails for a while and wanted to step back and try out a non-rails app. I am writing a game server that manages the state of the game using an entity-component system. Clients interact with the game server via Faye pub/sub, and the client itself is static html that should be served by the server. I can serve the client using Thin, start the Faye server, and run the component-entity processing loop individually, but e
<superlou> ach one of these is a blocking task. I was hoping for some suggetsions on the best way to get all 3 tasks (game logic, client html/js serving, faye messaging) running concurrently.
<superlou> I've been researching processes and threads in ruby, but it seems like the sky's the limit, and I feel like i'm more likely to come up with an antipattern than something proper.
peckerman_ has quit [Quit: ZNC - http://znc.in]
matchaw has quit [Ping timeout: 240 seconds]
mansi_ has joined #ruby
peckerman has joined #ruby
TMM has quit [Quit: Ex-Chat]
isbadawi has joined #ruby
goganchic has joined #ruby
TheLarkInn has joined #ruby
User458764 has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
nfk has quit [Quit: yawn]
mansi_ has quit [Ping timeout: 240 seconds]
ndrei has quit [Ping timeout: 264 seconds]
isbadawi has quit [Ping timeout: 264 seconds]
Speed has quit [Ping timeout: 240 seconds]
yasushi has joined #ruby
mercwithamouth has joined #ruby
nfk has joined #ruby
vlad_starkov has joined #ruby
DouweM has quit [Ping timeout: 264 seconds]
jjbohn has joined #ruby
peckerman has quit [Quit: ZNC - http://znc.in]
peckerman has joined #ruby
yubrew has joined #ruby
peckerman has quit [Client Quit]
SonicX has quit [Read error: Connection reset by peer]
<toretore> superlou: if they are blocking your only choice left is threads
<toretore> superlou: though i bet you can find eventmachine alternatives
peckerman has joined #ruby
agarie has joined #ruby
atmosx has quit [Quit: Lost in trance]
<superlou> toretore, i've been starting to read about eventmachine, though i'm not 100% sure how it fits in
yubrew has quit [Ping timeout: 240 seconds]
carraroj has quit [Ping timeout: 252 seconds]
<superlou> is it just a non-blocking "thing" to build a web server with?
<toretore> superlou: it would require you to rewrite everything to fit the event loop concurrency model
<superlou> don't know the right word for thing
<toretore> it's an implementation of the reactor pattern
juarlex has joined #ruby
foooobear has joined #ruby
codeFiend has quit [Quit: codeFiend]
<superlou> based on the documentation, it seems like Thin is built on eventmachine
<toretore> it's basically a loop{ r, w, e = IO.select(rs, ws, es); process; }
<toretore> yes, thin uses em
<superlou> so than there should be a way to run thin without blocking?
<toretore> inside an eventmachine loop, yes
<toretore> but you can't mix and match
<superlou> but i'd have to rewrite my game logic too? there's no way to start up both web server and pub/sub server, and then do the naive game logic
<superlou> ah
<toretore> eventmachine itself blocks the thread
agarie has quit [Ping timeout: 264 seconds]
<toretore> it's only by writing code that utilizes eventmachine's concurrency primitives that you can get concurrency with it
<superlou> ok, it's starting to make more sense
<toretore> in your case, since you've already written the code, maybe threads or processes would be a better choice
<superlou> as an alternative, i could start the servers in threads?
<toretore> yes
<toretore> as long as you take care of all that shared state thread safety business
<superlou> i thought the GIL was supposed to make that easier?
<toretore> nope
<toretore> gil != thread safe
<superlou> ok
mlpinit has joined #ruby
shadoi1 has quit [Read error: Connection reset by peer]
<toretore> best practice in your case would be to only communicate between the components using messages
Hanmac has quit [Ping timeout: 252 seconds]
shadoi1 has joined #ruby
mansi_ has joined #ruby
<superlou> toretore, components like entity-components?
<superlou> i don't think those are supposed to talk to each other at all
senayar has quit [Remote host closed the connection]
<toretore> no, i mean the ones you described: the web server, the faye server and the entity component thingy
<superlou> ah, ok. sorry
senayar has joined #ruby
Hanmac has joined #ruby
mlpinit has quit [Ping timeout: 253 seconds]
<toretore> if your faye server gets a request or whatever, it probably needs to communicate with the entity thing
<superlou> So event-machine gives me a framework for communicating between those pieces with concurrency
<toretore> not really
<superlou> rats
<toretore> concurrency is complicated ;)
canton7 has quit [Read error: Connection reset by peer]
<superlou> s/complicated/painful
elaptics`away is now known as elaptics
klue has quit [Ping timeout: 252 seconds]
pu22l3r has joined #ruby
<toretore> eventmachine is an all-in sort of thing. either you use it everywhere or you don't use it
canton7 has joined #ruby
<superlou> ok
<toretore> that's not completely true, but true enough for most cases
<superlou> actually, the more i'm reading about faye, it seems like i may not need to to talk with faye-server or the web-server at all
Skaag has joined #ruby
<superlou> i think you just create a faye client (http://faye.jcoglan.com/ruby/clients.html) in the game logic and use that
<toretore> if it fits the way it works, probably
<superlou> though the last time i used faye, the server was node.js, and that operates on a pattern closer to event-machine
<toretore> yes, node is pretty much the same as em
senayar has quit [Ping timeout: 264 seconds]
<toretore> how is the core game logic implemented? a blocking loop of some kind?
<superlou> so, then maybe i spawn a process for web-sever, process for faye-server, then continue on with the game logic which has a blocking loop to process it's updates. And figure out how to use a faye client down the road
<superlou> there's almost nothing in it right now, just trying to figure out the architecture before i commit to much code
<toretore> so it's a loop that "activates" every second?
juarlex has quit [Remote host closed the connection]
<superlou> toretore, for now, yeah
<superlou> it's really basic
Skaag has quit [Ping timeout: 264 seconds]
<superlou> at some point, maybe it will queue faye messages as soon as they come in, but they'll only get processed every second
<toretore> (not really related, but you could just as well `sleep 1` there)
<superlou> good point
davedev2_ has joined #ruby
<toretore> if you have these in separate processes, you could spin up a thread in each one to handle communication
hiddev has quit [Quit: system sleep]
<toretore> using something like 0mq
bradhe has joined #ruby
jjbohn has quit [Quit: Leaving...]
shevy has quit [Ping timeout: 264 seconds]
ferr has joined #ruby
<toretore> or in the same thread if you want blocking semantics
<superlou> but if i don't need to communicate between the web-server, faye-server, and game logic, is that overkill?
<toretore> sure
<toretore> but i don't see how you wouldn't need to
<superlou> the game client will be a javascript/static-html app
<superlou> and the faye-server communicates through faye-clients
Salve has joined #ruby
davedev24 has quit [Ping timeout: 252 seconds]
<superlou> though i may have big holes in my knowledge
<toretore> you're getting stuff on the faye server that needs to do something with the game logic right?
<toretore> how do you plan on getting game changes out to the browser?
<toretore> unless it's being stored somewhere else
<superlou> my understanding of faye is that data goes from client to client.
<superlou> or, it can
<toretore> right
<superlou> so the browser client would send to the server client
<toretore> but where does faye get its data from?
<superlou> and the faye server is just a hub
monsieur1 is now known as monsieurp
<superlou> the server knows which clients are listening in which "channels"
<superlou> and distribtues the messages
Lewix has joined #ruby
shevy has joined #ruby
aryaching_ has joined #ruby
<toretore> and the messages come from where? :)
bradhe has quit [Ping timeout: 240 seconds]
orisma has joined #ruby
<superlou> ... the server? sorry, i think i'm missing something obvious
<shevy> test
<superlou> in my head, the message goes web-client => faye-server => server-client
<toretore> what is server-client here?
Salve has quit [Ping timeout: 240 seconds]
aryaching has quit [Ping timeout: 240 seconds]
<superlou> a faye-client running in the game logic (on the server)
<superlou> i guess "server-side client"
<toretore> right
<toretore> so that's how you plan on communicating with the game server
<superlou> yeah
<toretore> so you have a separate faye connection for communication between the two?
montyboy has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<superlou> not sure I understand. There is a faye connection from the client-side faye client to the faye-server, and from the server-side faye-client to the faye-server
mustdoge has joined #ruby
mansi_ has quit [Remote host closed the connection]
mansi_ has joined #ruby
<toretore> so, two separate connections? what i'm getting at is that there isn't a connection directly from the client to the game server
<superlou> correct
orisma is now known as orismatest
orismatest is now known as orisma
<toretore> it always goes client -> faye server -> game server
rajatkapoor has joined #ruby
<toretore> and the other way around
<superlou> i think i could do that per "The server has its own client attached to it so you can use the server to send messages to browsers. This client has direct access to the server without going over HTTP, and is thus more efficient. To send messages through the server just use the #get_client method.", but then i can't just start the faye server in a seperate process
<superlou> yeah
shevy has quit [Ping timeout: 252 seconds]
<rajatkapoor> Hi
<toretore> ok
<superlou> whoops, by "do that" i mean send messages directly from faye-server to the client-side faye-client
<rajatkapoor> I am new to ruby and i was trying to work on project
<toretore> yeah, my instinct would be to not do that
fijimunkii has quit [Ping timeout: 264 seconds]
<rajatkapoor> I I have cloned that project from git and made required changes to it
ndrei has joined #ruby
<toretore> to keep their responsibilities separate
<rajatkapoor> i can test the changes using bundle exec command
<rajatkapoor> but i am not able to install that gem to use it system wide
<superlou> toretore, i'm leaning towards that as well, and i think it may make testing a bit easier since it will completely isolate the faye server
<toretore> exactly
<toretore> separation = good
<rajatkapoor> can someone please guide me on how to install the changed gem for system wide usage
<toretore> anyway, what i was going to say was that for the faye connection on the game server, you'd likely need a separate thread for that
enebo has joined #ruby
Shidash has joined #ruby
ndrei has quit [Remote host closed the connection]
klue has joined #ruby
klue has quit [Changing host]
klue has joined #ruby
samfisher has quit [Ping timeout: 252 seconds]
shevy has joined #ruby
<toretore> rajatkapoor: you want to install a new gem containing the code you've changed?
mansi_ has quit [Ping timeout: 240 seconds]
<rajatkapoor> yes, I can use the changed code by using bundle exec pry
<rajatkapoor> but i cannot get the changes applied system wide
<rajatkapoor> bundle install does not help
<superlou> toretore, the faye docs for server-side faye-clients actually show an example wrapping the message handling in event machine, so i'll still have an excuse to learn it, but at least i can put it off a little
BloodMan has joined #ruby
<toretore> then you need to build the gem first, and the install it
philcrissman has joined #ruby
ndrei has joined #ruby
<toretore> superlou: yeah, i think faye can be EM friendly.. but as long as you're writing blocking code, you'll have to use threads
<toretore> well, you could run EM in said thread
<toretore> rajatkapoor: how to build the gem depends on the project, but most likely there's a projectname.gemspec file
<toretore> with which you can do `gem build projectname.gemspec`
AlexRussia has quit [Ping timeout: 264 seconds]
<rajatkapoor> Thanks toretore, i am trying this as we speak
<toretore> other options are a rake command, use `rake -T` to see them
<superlou> toretore, maybe i'll give the EM in a thread idea a shot. EM seems worth learning. I've got this big blur in my head from switching back to ruby after doing a bunch of node.js, and it'd be good to get it straightened out
BloodMan is now known as AlexRussia
orisma has quit [Changing host]
orisma has joined #ruby
<toretore> superlou: the semantics will be familiar if you're done node
carraroj has joined #ruby
<toretore> but it's always nice to learn different ways of doing things
Mongey has joined #ruby
rootshift has joined #ruby
<superlou> toretore, cool, thanks for all the help. I'm going to go put my nose to some docs. Thanks.
<toretore> np, happy coding :)
<shevy> toretore are you on rubygems?
ndrei has quit [Ping timeout: 240 seconds]
dx7 has joined #ruby
<toretore> shevy: what does being on rubygems mean?
<shevy> toretore well, registered, and as second step have gems published there
senayar has joined #ruby
<toretore> yeah, i have a couple of gems out
danshultz has joined #ruby
<shevy> barby?
danshultz has quit [Read error: Connection reset by peer]
ij has joined #ruby
<toretore> yes
agjacome has joined #ruby
<shevy> cool name btw :D
linojon has joined #ruby
makara has quit [Quit: Leaving]
<toretore> yeah, it was named when i was part of the "silly gem name" cargo cult
<toretore> but it's somewhat descriptive, so it's ok
senayar has quit [Ping timeout: 240 seconds]
lyanchih_ has joined #ruby
<toretore> besides, rbarcode is probably taken
isbadawi has joined #ruby
<shevy> yeah, it's easy to remember too
vlad_starkov has quit [Ping timeout: 240 seconds]
User458764 is now known as User458764_NotHe
yubrew has joined #ruby
juarlex has joined #ruby
horofox has joined #ruby
User458764_NotHe has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
montyboy has joined #ruby
isbadawi has quit [Ping timeout: 240 seconds]
m4n1f3st0 has joined #ruby
m4n1f3st0 has quit [Client Quit]
m4n1f3st0 has joined #ruby
agarie has joined #ruby
Mongey has quit [Ping timeout: 240 seconds]
ferr has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
<shevy> hey hanikazmi_
<shevy> I mean Hanmac
<shevy> how is rxw :D
Tamae has joined #ruby
<Hanmac> currently not working on it ... i still need to rethink some internal stuff
Patchou has quit [Ping timeout: 255 seconds]
agarie has quit [Ping timeout: 264 seconds]
Lewix has quit [Remote host closed the connection]
fieldfirst has joined #ruby
Salve has joined #ruby
peteyg has quit [Ping timeout: 265 seconds]
xIzIv has joined #ruby
akitada has joined #ruby
<shevy> ok
<shevy> 2014 is a bad year for rxw
<shevy> perhaps 2015 will be better
Adrao has quit [Ping timeout: 252 seconds]
itadder has joined #ruby
mlpinit has joined #ruby
maroloccio has joined #ruby
fieldfirst has quit [Ping timeout: 240 seconds]
klaut has quit [Remote host closed the connection]
jetblack has joined #ruby
fieldfirst has joined #ruby
Lewix has joined #ruby
mustdoge has quit [Remote host closed the connection]
mustdoge has joined #ruby
mlpinit has quit [Ping timeout: 240 seconds]
jph98 has joined #ruby
Zesty has joined #ruby
Zesty has quit [Remote host closed the connection]
blackmesa has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Salve has quit [Remote host closed the connection]
jetblack has quit [Quit: leaving]
Skaag has joined #ruby
bradhe has joined #ruby
fieldfirst has quit [Ping timeout: 252 seconds]
User458764 has joined #ruby
aryaching_ is now known as arya_
fieldfirst has joined #ruby
arya_ is now known as arya
arya is now known as Guest41087
Guest41087 is now known as arya_
kotk has joined #ruby
peckerman has quit [Quit: ZNC - http://znc.in]
e4xit has quit [Ping timeout: 240 seconds]
bradhe has quit [Ping timeout: 240 seconds]
Skaag has quit [Ping timeout: 240 seconds]
mansi has joined #ruby
peckerman has joined #ruby
senayar has joined #ruby
dayepa has joined #ruby
maroloccio has quit [Quit: WeeChat 0.4.3]
blackmesa has quit [Ping timeout: 240 seconds]
senayar has quit [Read error: Operation timed out]
arianit has joined #ruby
Xeago has joined #ruby
sski_ has quit [Remote host closed the connection]
Mongey has joined #ruby
ndrei has joined #ruby
philcrissman has quit [Remote host closed the connection]
IceDragon has joined #ruby
sski has joined #ruby
<hfp> Hey, could anyone recommend something like the watchr gem but more up to date and under active development?
mansi has quit [Remote host closed the connection]
<hfp> ie it runs a command everytime a file is modified in the directory it's watching
juarlex has quit [Remote host closed the connection]
mansi has joined #ruby
ktosiek_ has quit [Ping timeout: 240 seconds]
montyboy has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
klue has quit [Ping timeout: 240 seconds]
withnale has quit [Ping timeout: 252 seconds]
sski has quit [Ping timeout: 264 seconds]
sparrovv has joined #ruby
rippa has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
rajatkapoor has quit [Ping timeout: 245 seconds]
SCommette has joined #ruby
havenwood has joined #ruby
yubrew has joined #ruby
e4xit has joined #ruby
horofox has quit [Quit: horofox]
Salve has joined #ruby
lw has quit [Quit: s]
agarie has joined #ruby
isbadawi has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
AussieDownUnder has quit [Remote host closed the connection]
gr33n7007h has joined #ruby
jefflyne has quit [Ping timeout: 264 seconds]
sepp2k has joined #ruby
Salve has quit [Ping timeout: 240 seconds]
zorak has joined #ruby
xIzIv has quit [Quit: WeeChat 0.4.3]
jefflyne has joined #ruby
goganchic has quit []
isbadawi has quit [Ping timeout: 240 seconds]
carraroj has quit [Ping timeout: 240 seconds]
User458764 has quit [Ping timeout: 252 seconds]
withnale has joined #ruby
eka has joined #ruby
mrnugget has quit [Quit: mrnugget]
hiddev has joined #ruby
atno__ has quit [Quit: Leaving]
Skaag has joined #ruby
atno has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 253 seconds]
senayar has joined #ruby
tjr9898 has quit [Ping timeout: 264 seconds]
gr33n7007h has quit [Read error: Connection reset by peer]
dachi has quit [Quit: ...]
gtech has quit [Ping timeout: 240 seconds]
SCommette has quit [Quit: SCommette]
gtech has joined #ruby
poguez_ has joined #ruby
sski has joined #ruby
klue has joined #ruby
klue has joined #ruby
klue has quit [Changing host]
vlad_starkov has quit [Remote host closed the connection]
mlpinit has joined #ruby
tjr9898 has joined #ruby
bradhe has joined #ruby
fgo has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
randomnick_ has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
sski has quit [Ping timeout: 240 seconds]
dachi has joined #ruby
Hanmac has quit [Ping timeout: 264 seconds]
mlpinit has quit [Ping timeout: 240 seconds]
failshell has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
ndrei has quit [Ping timeout: 240 seconds]
<hoelzro> hfp: what's wrong with watchr?
mansi has joined #ruby
mercwithamouth has joined #ruby
<shevy> can you guys recommended something that could test your code BUT that does not necessarily say "you must test cover 100%"? Like I only want to test here and there, I don't mind testing 100%
jhass|off is now known as jhass
quatron has joined #ruby
failshel_ has joined #ruby
fridim__ has joined #ruby
sparrovv has quit [Remote host closed the connection]
m4n1f3st0 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
montyboy has joined #ruby
failshell has quit [Ping timeout: 240 seconds]
njection has joined #ruby
fantazo has joined #ruby
<hfp> hoelzro: it seems to be unmaintained?
seggy has joined #ruby
klaut has joined #ruby
<hoelzro> are there any bugs in it?
<hoelzro> or missing features that you need?
<hfp> I was thinking an active project is better than an inactive one
<hfp> I'm new to this, I'm going with my guts :)
<hoelzro> yeah, but if the code works...
<hoelzro> I'd rather pick a tried-and-true stable project that one that decided that they didn't like the API of the first, so they're spending their time reimplementing the same functionality
segmond has quit [Ping timeout: 255 seconds]
<hfp> I understand
failshel_ has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> though 3 or 4 years makes for stale, at least if the Issues are backlogged
rococo has joined #ruby
<havenwood> granted some things do *just work* and don't need to be fiddled with as much
montyboy has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<hoelzro> havenwood: if there *are* issues
<hoelzro> and if they're not dumb ones =)
seggy is now known as segmond
<toretore> hfp: there's also https://github.com/thomasfl/filewatcher
<toretore> i haven't used it myself
<hfp> Thanks, I'm using observr which is a fork from watchr. It seems to work properly.
<toretore> this "oh the last commit was 2 YEARS ago, it must be bug ridden!!" nonsense must die
<hfp> btw, how do you discover gems?
tungd has joined #ruby
<shevy> what do you mean discover
<shevy> you can search at the ruby toolbox
<toretore> this was because i follow the author on twitter, and i remembered he mentioned it
rootshift has joined #ruby
rococo has quit [Ping timeout: 252 seconds]
<hfp> I mean right now I'm starting out with Ruby and the gems I know of is small (less than 10 probably). How do you discover gems to use in your future projects? Are there podcasts or is it word of mouth or another way?
mansi has quit [Remote host closed the connection]
<havenwood> a maintained, thriving project tends to make me happier
mansi has joined #ruby
<havenwood> but two years isn't very long
mansi has quit [Read error: Connection reset by peer]
<havenwood> a blink
<havenwood> hfp: asking on irc is a good way, or https://www.ruby-toolbox.com like shevy mentioned
mansi has joined #ruby
<shevy> havenwood looks as if he got enough sleep this time :D
<havenwood> shevy: i did! slept so long, i didn't realize how sleep-deprived i was
kayloos_ has joined #ruby
mehlah has joined #ruby
<havenwood> hfp: have you checked out guard? http://guardgem.org/
<hfp> havenwood: I haven't, I was checking out shevy's ruby toolbox
<havenwood> nice
yubrew has joined #ruby
<hfp> oooh looks pretty haha
<havenwood> hfp: it's in the Continuous Testing category in the Toolbox: https://www.ruby-toolbox.com/categories/continuous_testing
kayloos has quit [Ping timeout: 252 seconds]
<toretore> i was going to say something like "oh, `ls` was last updated 7 years ago, it must clearly be full of bugs" but the last commit was only a couple of months ago
<shevy> toretore probably fixing a bug :D
<shevy> there was a funny bug in sudo lately
<toretore> looks like all the coreutils have lots of changes
yubrew has quit [Read error: Operation timed out]
<shevy> from "if (okvar == FALSE)" to "if (okvar == TRUE)"
jollyy has joined #ruby
lxsameer has quit [Quit: Leaving]
Lewix has quit [Remote host closed the connection]
toastynerd has joined #ruby
<toretore> hah
<havenwood> the ls that needs a commit is BSD's for natural sort of version numbers!
<havenwood> not having `ls -v` on OS X/BSD is cringeworthy
<havenwood> (if there is a portable alternative, please tell me!)
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
<shevy> haha
<shevy> would it be possible to reimplement all of coreutils in ruby BUT use C when speed is necessary? like ls in a dir with several thousand entries
zorak has quit [Ping timeout: 252 seconds]
chrisseaton has joined #ruby
<toretore> oh god
Salve has joined #ruby
<havenwood> shevy: not that... but i do think a lesser-known-than-it-should be Class in the stdlib is Shell: http://www.ruby-doc.org/stdlib-2.1.0/libdoc/shell/rdoc/Shell.html
<toretore> version numbers should be zero padded to accomodate mac users
<shevy> whoa
<shevy> never seen class Shell before
<toretore> myapp-0001.0002.0003
<shevy> ack
<shevy> the example is awful havenwood ... look: for dir in ["dir1", "dir3", "dir5"]
pfg has joined #ruby
<havenwood> shevy: yeah, we need to brush off some dust in some corners of the stdlib - i've never done a Ruby documentation commit and need to change that soon!
aleaf has joined #ruby
<aleaf> help
<aleaf> er... disregard
abk has quit [Ping timeout: 252 seconds]
isbadawi has joined #ruby
aleaf has left #ruby [#ruby]
<havenwood> shevy: we could show off piping between Shell commands much better
[gmi] has joined #ruby
marcdel has joined #ruby
octarine has quit [Write error: Connection reset by peer]
fayimora_ has quit [Read error: Connection reset by peer]
Salve has quit [Ping timeout: 240 seconds]
<havenwood> shevy: and its docs reference deprecated methods >.>
endash_ has joined #ruby
atmosx has joined #ruby
User458764 has joined #ruby
fayimora_ has joined #ruby
octarine_ has joined #ruby
<crome_>
jph98 has quit [Quit: jph98]
<shevy> that doc is kinda... sparse
avleaf has joined #ruby
withnale has quit [Ping timeout: 240 seconds]
alexdaube has joined #ruby
<shevy> we could actually need a complete revamp and overhaulf of stdlib
<shevy> all without docu would then be removed
<shevy> (or the docu will be improved)
<shevy> this will be pipework's dream :D
apeiros has joined #ruby
isbadawi has quit [Ping timeout: 240 seconds]
avleaf has left #ruby [#ruby]
<atmosx> hello
<havenwood> hi
mary5030 has joined #ruby
marcdel has quit []
endash_ has quit [Ping timeout: 264 seconds]
chrisseaton has quit []
Mongey has quit [Ping timeout: 240 seconds]
<shevy> hey atmosx
<shevy> I see you are still rocking with rails
toastynerd has quit [Remote host closed the connection]
freezey has joined #ruby
<atmosx> Yeah, I managed to bypass the issue I had yesterday... Thank God git supports branching
<atmosx> Now I'm facing a design dilema: I'm creating this patietn's record web-app. I have Patients/Doctors and I need probably a scheduler. So I'm thinking of creating another model called "Scheduler" where I'll register the appointments... Doctor/Patient/Date/Room(1..4)
<shevy> hehe
<atmosx> shevy: + I had to configure 3 windows PC's via TeamViewer, lost ~3 hours trying to setup OpenVPN + RDP but apparently these musings are dangerous when you're floating on windows
<shevy> and an online calendar, don't forget that
endash_ has joined #ruby
<shevy> I hate teamviewer
<atmosx> shevy: it's incredible the amount of shit that comes with default installations... HP had at least 3 programs to *facilitate* operations that are implemented into the system anyway... removed an uneeded mcafee antivirus... office hm anyway.
endash_ has quit [Read error: Connection reset by peer]
<shevy> and working on windows is so annoying
endash_ has joined #ruby
<atmosx> I hate everything that has to do with Microsoft but wasn't my choice to make
<atmosx> I'd go for 3 chromebooks they will just browse the web
<shevy> hehehe
<havenwood> atmosx: i think they usually call the person making the appointment a Receptionist not a Scheduler :P
bradhe has joined #ruby
<havenwood> i'd like to checkout a Chromebook Pixel, not sure i'd throw down for one but i'd like to see how it looks and feels
<atmosx> havenwood: it's not for programming, but for every-day tasks it's awesome and it's 4 times faster than my MBA ... I had the samsung 12.1"
<itadder> oh how old is your MBA
dayepa has quit [Remote host closed the connection]
<havenwood> good battery life?
<itadder> atmosx: do you know of any good budgeting software for the mac
<atmosx> havenwood: it's blazing fast. Everything web-based of course, but who cares... We live online anyway. The ssh client sucks big-time. The pixel is intel-based so you can do more things actually...
<itadder> or just use excel
Advocation has joined #ruby
<atmosx> itadder: depends on what you need, I use iCompta for my personal finances... But I wouldn't call it a professional solution.
<havenwood> itadder: Numbers or an online SAAS
<atmosx> itadder: I ~ never use MS software here. Numbers and Pages (iWork suite) or vim :-)
freezey has quit [Remote host closed the connection]
foooobear has quit [Quit: Computer has gone to sleep.]
fijimunkii has joined #ruby
<itadder> 'wow looks nice
<itadder> oh I should use numbers
<atmosx> havenwood: since I'm writing the program I can it whatever I want!!! (at least at DB level :-P)
<itadder> excel is okay but the mac version interfact sucks
<itadder> icompta looks nice but a bit expensive
<atmosx> itadder: wait a minute
<atmosx> I have a license for an app I don't use
<itadder> okay
<atmosx> it's called 'Money'
<itadder> oh
withnale has joined #ruby
<atmosx> similar but uglier/heavier
_Andres has joined #ruby
<atmosx> hmm I can give you the license but it's registered to my email/name :-P
bradhe has quit [Ping timeout: 252 seconds]
postmodern has quit [Quit: Leaving]
<itadder> damn I was overdraft
<itadder> the rent did not get cashed until one day before my other paycheck
<itadder> bah
<itadder> mint just seemed like to much work
mlpinit has joined #ruby
<itadder> and my bank online stuff is not great either :(
<itadder> LOL
<itadder> oh money uses dropbox HMM
fridim__ has quit [Ping timeout: 264 seconds]
<atmosx> itadder: I can give yout the details, but you won't receive updates..
<atmosx> itadder: if it doesn't bother you, I don't care.
elaptics is now known as elaptics`away
jollyy has quit [Ping timeout: 240 seconds]
jph98 has joined #ruby
<itadder> cool
<itadder> yea let me see
<itadder> oh no updates
freezey has joined #ruby
freezey has quit [Remote host closed the connection]
mlpinit has quit [Ping timeout: 240 seconds]
<itadder> I may buy it will try for 30 days
<itadder> I have a lot of things to do to day
ndrei has joined #ruby
<itadder> I just started a new gig and if I do good I may get hired full time
Mongey has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
<itadder> my friend told me he want me to join the team, he m anages but it up to the CIO to see if he likes me
<atmosx> itadder: good lack with that
<itadder> yea it been crazy two days at this hedgefund
<itadder> they want stuff done quickly and follow ups
freezey_ has joined #ruby
virtualize has quit []
<itadder> I used to use quicken a while back On a pc it was not bad but over complex
freezey_ has quit [Remote host closed the connection]
<atmosx> a hedgefund? oh... be careful
<itadder> In college the only class I was no good
<itadder> atmosx: oh why
abdulsattar has joined #ruby
<itadder> some anylanst emailed support last night he could not launch a DRM excel document needed some plugin, I saw this mornign and installed it for him on his VPN home workstation and at the office.
jollyy has joined #ruby
<itadder> Sent out emails to helpdesk and him that I was going to do it and then one That I was done
<atmosx> itadder: you're working there as a sys-adin or programmer?
<itadder> I just want to give a good impression becuase if I get hired full time or as a consutalnt
<itadder> sys-admin / help desk
<atmosx> cool
<itadder> not programing, but it will pay more and pay my bills
<atmosx> what kind of VPN do they use? IPSec?
<itadder> while I learn ruby in the afternooon
<itadder> Sonicwall
<itadder> becuase of political reason
virtualize has joined #ruby
<itadder> it a hedgefund so thier a poltical intraoffice reason but I bet it a ipsec tunnel
<atmosx> got it
<itadder> that how I used to to do years back at my first job
hiddev has quit [Quit: system sleep]
<itadder> let just say It the hedgefund for one of the big PC manufactures in the usa
<itadder> or it family
<atmosx> cool
<itadder> altough the big guys who mange it love ipads
ndrei has quit [Ping timeout: 246 seconds]
<itadder> I stayed late helping the helpdesk manager my friend set up his laptop PC latop for his overseas bussiness trip
<itadder> made sure email was working, trading platform, and citirx was working
<itadder> LOL
ndrei has joined #ruby
<itadder> I had to modify the registry atmosx his outlook inbox was over 20 gigs about 21 gigs
<shevy> hehe
<itadder> past that outlook won't download more emails
<shevy> outlook sucks so much
<itadder> Yea so this registry key I had to set for 100 gigs
<itadder> outlook is a bain
tjr9898 has quit [Read error: Connection reset by peer]
<itadder> outlook 2010 is so much better, but then 2013 is a headache
<itadder> the PC I was given has office 2013 the Theme is horrible
tjr9898 has joined #ruby
<itadder> We are testing office 2013 before it deployed firmwide, they ar ecurrently all 2007
<itadder> shevy: it was funny after a simply regedit it started to download emails again
<itadder> it posted in microsoft knowledge base, but they won't explain the math how to convert to hex
tungd has quit [Quit: leaving]
<itadder> so I found a exchange online user magzine that had some regsitry keys and explained how it worked.
<atmosx> itadder: why don't they use cloud-based solutions? They seem to have a big enough infrastructure... Handling your email locally, is kinda out-of-date. Maybe security reasons but then again PGP
<itadder> I did not apply the registry keys, I open it notepad and just copied what I needed the vaules, and it worked LOL
<itadder> oh good you brought that atmosx
<itadder> the head partners Do not want to put thier stuf fon the cloud
<sigurding> anyone here around with a C background?
<itadder> they run over 60 billion or of money
<atmosx> itadder: because of the NSA?
<atmosx> sigurding: I wish, but I don't. Shevy does
<shevy> hmm
<itadder> and the CIO want to safe guard his job, and such
r0nin_ has joined #ruby
r0nin_ has quit [Client Quit]
<atmosx> itadder: well, they could build their own cloud infrastructure with that kind of money...
<itadder> we do have a back up site in a data center, but it not cloud based
<shevy> atmosx, would you represent a table like that? http://pastie.org/8926803 it is a 10x5 table, 10 rows, 5 columns (or vice versa haha I forgot)
<atmosx> itadder: no need to use google/aws/etc
<itadder> our UK office I think runs thier stuff from the Datacenter in UK
<itadder> tat a small office
<itadder> atmosx: yea we do do tht
<itadder> for backup and BCP
<itadder> we have a offsite datacenter for certain things and for a backup exchange stuff
<atmosx> shevy: 5x10, yes
<itadder> but they will neer go for google or aws
<itadder> they may go for a soultion if it was owned by the big pc manfucature
chrisseaton has joined #ruby
<shevy> atmosx ok
<itadder> If the CEO suggeted to the partners, we X pc company offer cloud they may say yes shevy
gregf has quit [Quit: WeeChat 0.4.3]
<itadder> atmosx:
<shevy> I will need this for (a) games like minesweeper and (b) for tables where I will remove subsection (like in row 3, delete from 3 up to 6)
<atmosx> itadder: hardware manufacture you mean? Because GOO and AMZ are as big as it gets
<itadder> damn I need to finish with my bills
<itadder> they are the fourth or third place PC company in the usa
<itadder> I won't say who
<itadder> becuase I could ger fired
<shevy> hehe
iptunneler has joined #ruby
<itadder> I signed a paper on thursday
<shevy> yeah
<atmosx> itadder: haha okay
<shevy> now they have your balls
<itadder> yea I dislike that
<itadder> but I get part of their oney
<itadder> LOL
<itadder> money
tjr9898_ has joined #ruby
<shevy> I had to sign a blablabla I wont steal patentable knowledge too
rootshift has joined #ruby
<shevy> only way to get out of slavery is... start your own company!
<shevy> then you are only a slave to the banks and politicans
quatron_ has joined #ruby
<itadder> oh shoot I forgot numbers is free online
<itadder> icloud.com
tjr9898 has quit [Ping timeout: 240 seconds]
<itadder> hmm I don't wan tot spend 20 dollars on it right now, becuase I am going to be low on cash becuase of over drafts :(
<shevy> atmosx when I initialize a table like that, should I initialize each field with a nil?
lampe2 has joined #ruby
<atmosx> shevy: No idea
<shevy> hehe
<atmosx> I'm gonna get a shower and then watch my ancestors slaughter Iranians in the movies
<atmosx> Jezz, I should be proud of that somehow
yubrew has joined #ruby
quatron has quit [Ping timeout: 246 seconds]
quatron_ is now known as quatron
<shevy> atmosx lol
<shevy> atmosx well they were called Persians or? I am not sure if Iranians are really all Persians... I heard some are in Afghanistan too, so ... had that with a family that were Pashtuns and always pointed out that they were not Arabian but Persian
atno has joined #ruby
Skaag has quit [Ping timeout: 240 seconds]
peckerman has quit [Quit: buhbye.]
saarinen has joined #ruby
sdouglas has joined #ruby
shadoi1 has quit [Read error: Connection reset by peer]
peckerman has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
shadoi1 has joined #ruby
Speed has joined #ruby
mehlah has quit [Quit: Leaving...]
jph98 has quit [Quit: jph98]
jollyy has quit [Ping timeout: 252 seconds]
peckerman has quit [Client Quit]
tjr9898 has joined #ruby
sdouglas has quit [Ping timeout: 240 seconds]
tjr9898_ has quit [Ping timeout: 240 seconds]
rootshift has quit [Ping timeout: 252 seconds]
glebm has quit [Ping timeout: 264 seconds]
tjr9898_ has joined #ruby
xxpor has joined #ruby
jollyy has joined #ruby
mgorbach has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
ktosiek has joined #ruby
tjr9898 has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby
xxpor_ has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Remote host closed the connection]
Salve has joined #ruby
Skaag has joined #ruby
jragon has joined #ruby
Xeago has quit [Remote host closed the connection]
alexju has joined #ruby
tjr9898 has joined #ruby
axsuul has joined #ruby
linojon has quit [Read error: Operation timed out]
isbadawi has joined #ruby
mgorbach has joined #ruby
tjr9898_ has quit [Ping timeout: 240 seconds]
timonv has quit [Remote host closed the connection]
mgorbach has quit [Read error: Connection reset by peer]
Salve has quit [Ping timeout: 240 seconds]
Emmanuel_Chanel has joined #ruby
mustdoge has quit [Read error: Connection reset by peer]
Skaag has quit [Ping timeout: 264 seconds]
mustdoge has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
Xeago has joined #ruby
isbadawi has quit [Ping timeout: 264 seconds]
tjr9898 has quit [Ping timeout: 240 seconds]
mustdoge has quit [Read error: Connection reset by peer]
mustdoge has joined #ruby
mlpinit has joined #ruby
marcdel has joined #ruby
mgorbach has joined #ruby
abdulsattar has quit [Remote host closed the connection]
toastynerd has joined #ruby
bradhe has joined #ruby
Salve has joined #ruby
montyboy has joined #ruby
tgkokk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
IceDragon has quit [Ping timeout: 264 seconds]
tjr9898 has joined #ruby
timonv has joined #ruby
vlad_starkov has joined #ruby
kies has joined #ruby
User458764 is now known as User458764_NotHe
tt1187 has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
Xeago has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 240 seconds]
teddyp1cker has joined #ruby
User458764_NotHe has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
tjr9898_ has joined #ruby
sparrovv has joined #ruby
tjr9898 has quit [Ping timeout: 246 seconds]
andrewlio has quit [Quit: Leaving.]
Advocation has quit [Quit: Advocation]
wallerdev has joined #ruby
linojon has joined #ruby
mlpinit has quit [Remote host closed the connection]
abdulsattar has joined #ruby
endash_ has quit [Quit: endash_]
Kilo`byte has quit [Read error: Operation timed out]
Xeago has joined #ruby
mgorbach has quit [Read error: Connection reset by peer]
Kilo`byte has joined #ruby
fieldfirst has quit [Write error: Connection reset by peer]
fieldfirst has joined #ruby
Advocation has joined #ruby
dx7 has quit [Remote host closed the connection]
lyanchih_ has quit [Quit: lyanchih_]
teddyp1cker has quit [Remote host closed the connection]
seggy has joined #ruby
dx7 has joined #ruby
peckerman has joined #ruby
peckerman has quit [Client Quit]
bbloom has joined #ruby
peckerman has joined #ruby
glebm has joined #ruby
segmond has quit [Ping timeout: 240 seconds]
ndrei has quit [Ping timeout: 264 seconds]
tt1187 has quit [Ping timeout: 240 seconds]
mgorbach has joined #ruby
dx7 has quit [Ping timeout: 264 seconds]
yjmsf20 has joined #ruby
montyboy has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
dx7 has joined #ruby
Dwarf_ is now known as Dwarf
endash_ has joined #ruby
fihihe has joined #ruby
marcdel has quit []
jollyy has quit [Quit: jollyy]
yasushi has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
supersym has joined #ruby
yubrew has joined #ruby
arubin has joined #ruby
Xeago has quit [Remote host closed the connection]
toastynerd has joined #ruby
Xeago has joined #ruby
toastynerd has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
_justin has joined #ruby
sparrovv has quit [Remote host closed the connection]
i_s has joined #ruby
Speed has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 264 seconds]
nisstyre has joined #ruby
vlad_starkov has joined #ruby
yjmsf20 has quit [Ping timeout: 240 seconds]
telling has joined #ruby
telling has quit [Changing host]
telling has joined #ruby
Xeago has quit [Ping timeout: 252 seconds]
i_s has quit [Remote host closed the connection]
i_s has joined #ruby
Gadgetoid has quit [Ping timeout: 265 seconds]
Gadgetoid has joined #ruby
saarinen has quit [Quit: saarinen]
mikepack has joined #ruby
tjr9898_ has quit [Remote host closed the connection]
lessless is now known as Guest13108
Guest13108 has quit [Killed (kornbluth.freenode.net (Nickname regained by services))]
Guest13108 has joined #ruby
tjr9898 has joined #ruby
zorak has joined #ruby
mary5030 has joined #ruby
vpretzel has joined #ruby
i_s has quit [Ping timeout: 240 seconds]
Gadgetoid has quit [Read error: Operation timed out]
Gadgetoid_ has joined #ruby
Gadgetoid_ is now known as Gadgetoid
mary5030 has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
leonidlm has quit [Ping timeout: 252 seconds]
iptunneler has left #ruby ["Leaving"]
mikepack has quit [Ping timeout: 264 seconds]
browndawg has quit [Read error: Connection timed out]
yarou has joined #ruby
browndawg has joined #ruby
yarou has quit [Remote host closed the connection]
perlsyntax has left #ruby ["Textual IRC Client: www.textualapp.com"]
bashed has joined #ruby
nolic has quit [Ping timeout: 264 seconds]
nolic has joined #ruby
mrnugget has joined #ruby
Skaag has joined #ruby
klaut has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
Merks has quit []
vlad_starkov has joined #ruby
isbadawi has joined #ruby
bradhe has joined #ruby
shaileshg has joined #ruby
isbadawi has quit [Read error: Operation timed out]
arianit has quit [Ping timeout: 240 seconds]
Skaag has quit [Ping timeout: 264 seconds]
p4tux has quit [Remote host closed the connection]
mustdoge has quit [Remote host closed the connection]
mustdoge has joined #ruby
yacks has quit [Ping timeout: 264 seconds]
bradhe has quit [Ping timeout: 240 seconds]
james_d_h has joined #ruby
p4tux has joined #ruby
Solnse has joined #ruby
freggles has joined #ruby
itadder has quit []
Skaag has joined #ruby
lolmaus_ has quit [Remote host closed the connection]
jollyy has joined #ruby
Skaag has quit [Read error: Operation timed out]
fantazo has quit [Read error: Operation timed out]
<certainty> shevy: ?
pu22l3r has quit [Remote host closed the connection]
foooobear has joined #ruby
creede has quit [Ping timeout: 264 seconds]
jph98 has joined #ruby
dseitz has joined #ruby
mrnugget has quit [Quit: mrnugget]
Mongey has quit [Ping timeout: 252 seconds]
foooobear has quit [Ping timeout: 264 seconds]
mansi has quit [Quit: Leaving...]
<shevy> certainty what atmosx wrote
<shevy> certainty SPARTA!!!
IceDragon has joined #ruby
klue has quit [Ping timeout: 240 seconds]
<certainty> shevy: :)
Skaag has joined #ruby
bashed has quit [Ping timeout: 240 seconds]
CaptainJet has joined #ruby
james_d_h has quit [Quit: Lost terminal]
jollyy has quit [Quit: jollyy]
shadoi1 has quit [Read error: Connection reset by peer]
andrewlio has joined #ruby
shadoi1 has joined #ruby
Lewix has joined #ruby
alexju has quit [Remote host closed the connection]
bashed has joined #ruby
nolic has quit [Ping timeout: 240 seconds]
ferr has joined #ruby
yubrew has joined #ruby
nolic has joined #ruby
yfeldblum has joined #ruby
relix has joined #ruby
creede has joined #ruby
Mongey has joined #ruby
yubrew has quit [Read error: Operation timed out]
fayimora_ has quit [Ping timeout: 240 seconds]
octarine_ has quit [Ping timeout: 240 seconds]
culturelabs_ has quit [Ping timeout: 246 seconds]
frode15243_ has quit [Ping timeout: 246 seconds]
mjc__ has quit [Ping timeout: 246 seconds]
jrunning_____ has quit [Ping timeout: 246 seconds]
phantomwhale has quit [Ping timeout: 246 seconds]
jpinnix____ has quit [Ping timeout: 246 seconds]
poguez_ has quit [Ping timeout: 240 seconds]
bedouin_ has quit [Ping timeout: 264 seconds]
mostlybadfly has quit [Ping timeout: 240 seconds]
supershabam_ has quit [Ping timeout: 246 seconds]
drjblouse__ has quit [Ping timeout: 246 seconds]
bcavileer_ has quit [Ping timeout: 246 seconds]
rickenharp__ has quit [Ping timeout: 246 seconds]
machty has quit [Ping timeout: 246 seconds]
Notte has joined #ruby
yfeldblu_ has quit [Ping timeout: 252 seconds]
zrl has quit [Ping timeout: 246 seconds]
mroth__ has quit [Ping timeout: 246 seconds]
shaileshg has quit [Ping timeout: 246 seconds]
ndrei has joined #ruby
zzak_ has quit [Ping timeout: 264 seconds]
RohanRNS has quit [Ping timeout: 264 seconds]
mmochan_ has quit [Ping timeout: 264 seconds]
ceej has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Remote host closed the connection]
hakunin has quit []
toastynerd has joined #ruby
robmozart__ has quit [Ping timeout: 264 seconds]
akitada has quit [Ping timeout: 264 seconds]
toastynerd has quit [Remote host closed the connection]
Solnse has quit [Quit: Leaving.]
mrnugget has joined #ruby
gregf has joined #ruby
yfeldblum has joined #ruby
mrnugget has quit [Client Quit]
frode15243_ has joined #ruby
m1lt0n_ has joined #ruby
mjc__ has joined #ruby
machty has joined #ruby
jpinnix____ has joined #ruby
phantomwhale has joined #ruby
poguez_ has joined #ruby
bedouin_ has joined #ruby
shadoi1 has quit [Read error: Connection reset by peer]
mostlybadfly has joined #ruby
yjmsf20 has joined #ruby
robmozart__ has joined #ruby
RohanRNS has joined #ruby
akitada has joined #ruby
supershabam_ has joined #ruby
bcavileer_ has joined #ruby
rickenharp__ has joined #ruby
drjblouse__ has joined #ruby
mmochan_ has joined #ruby
zzak_ has joined #ruby
shadoi1 has joined #ruby
ceej has joined #ruby
jrunning_____ has joined #ruby
culturelabs_ has joined #ruby
Mongey has quit [Ping timeout: 240 seconds]
Speed has quit [Ping timeout: 240 seconds]
sheap has joined #ruby
octarine_ has joined #ruby
mroth__ has joined #ruby
fayimora_ has joined #ruby
centrx has joined #ruby
zrl has joined #ruby
xaq has joined #ruby
yjmsf20 has quit [Ping timeout: 252 seconds]
browndawg has left #ruby [#ruby]
Shidash has quit [Ping timeout: 252 seconds]
phansch has quit [Quit: WeeChat 0.4.2]
phansch has joined #ruby
Mongey has joined #ruby
benzrf has joined #ruby
<benzrf> hey
IceDragon has quit [Ping timeout: 240 seconds]
<benzrf> is there something otherwise basically similar to UDPSocket but that guarantees receival of datagrams?
<benzrf> i.e. something like stateless tcp
IceDragon has joined #ruby
shaileshg has joined #ruby
xaq has quit [Remote host closed the connection]
ij has left #ruby ["WeeChat 0.4.3"]
<centrx> benzrf, Sounds a little like a contradiction
rootshift has joined #ruby
Gonzih has joined #ruby
maletor has joined #ruby
<ineb> benzrf: no. if you want to, you have to use UDP and put the rest of the logic in your program.
<benzrf> >_>
mustdoge has quit [Remote host closed the connection]
mustdoge has joined #ruby
User458764 has joined #ruby
Salve has quit [Remote host closed the connection]
Salve has joined #ruby
<centrx> benzrf, Why not use TCP?
<centrx> TCP is good for you. It builds strong bones.
bradhe has joined #ruby
<benzrf> b-but
<benzrf> :I
<benzrf> ok
maletor has quit [Client Quit]
<benzrf> is there a simple way to multiplex tcp besides select
<shevy> centrx has epic quotes
<shevy> first about php, now about TCP
<centrx> PHP is an abomination and a scourge on the face of the earth.
yjmsf20 has joined #ruby
<benzrf> once upon a time
IceDragon has quit [Ping timeout: 240 seconds]
<benzrf> all programmers banded together to build a language into programming heaven
<shevy> haha
<benzrf> the god of code became wroth, and struck down their language
IceDragon has joined #ruby
<benzrf> to the ground it fell, and bcame
<benzrf> PHP
<shevy> benzrf well I wonder if PHP is really a programming language
esteban has joined #ruby
esteban is now known as estebanrules
yjmsf20 has left #ruby [#ruby]
Salve has quit [Ping timeout: 264 seconds]
Speed has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
Mongey has quit [Ping timeout: 252 seconds]
isbadawi has joined #ruby
mary5030 has joined #ruby
agjacome has quit [Quit: leaving]
tt1187 has joined #ruby
sepp2k has quit [Ping timeout: 240 seconds]
amclain has joined #ruby
sepp2k has joined #ruby
agjacome has joined #ruby
isbadawi has quit [Ping timeout: 240 seconds]
mary5030 has quit [Ping timeout: 240 seconds]
idiocrash has joined #ruby
rezonanc has quit [Read error: Connection reset by peer]
lolmaus has joined #ruby
<havenwood> shevy: not a general purpose one
msmith has joined #ruby
xcv_ has quit [Remote host closed the connection]
msmith has quit [Remote host closed the connection]
supersym has quit [Quit: WeeChat 0.4.3]
msmith has joined #ruby
Advocation has quit [Quit: Advocation]
bashed has quit [Ping timeout: 240 seconds]
jph98 has quit [Quit: jph98]
ndrei has quit [Quit: Lost terminal]
skaflem has quit [Quit: Leaving]
<benzrf> we need ruby images like smalltalk images
<benzrf> this would make me happy
fijimunkii has quit [Ping timeout: 252 seconds]
msmith has quit [Ping timeout: 240 seconds]
<shevy> benzrf yeah
<shevy> but I think matz is mostly busy with mruby
<shevy> for a much longer while :(
<shevy> benzrf perhaps you can write a new programming language
<shevy> something minimal
<benzrf> damn straight i can write a new programming language
blackmesa has joined #ruby
<certainty> scheme is minimal :p
<shevy> if you add a million features, it will die
<shevy> like Io
<benzrf> [itll be slower than the first version of ruby by a factor of 1000 though]
<havenwood> benzrf: have you checked out MagLev?: http://maglev.github.io/
<havenwood> benzrf: it hasn't been getting a ton of love in the last year, at least not on the public repo
<havenwood> but it certainly is interesting!
<shevy> benzrf speed won't be the problem, trust me
<Speed> believe shevy, I most definitively won't be a problem.
<shevy> benzrf but documentation can be a huge impediment
<benzrf> i should totally try writing a small talk in haskell
<benzrf> :y
<shevy> even Io did not have complete documentation
<shevy> and ruby docu was awful before pickaxe
<shevy> I think people need to write docu as they add features
tjr9898 has quit [Remote host closed the connection]
<shevy> otherwise they tend to not want to write it again
<shevy> and tests too!
<benzrf> dennomus from ##programming made a good point on the topic of blox in ruby vs lambdas
<shevy> blox?
<havenwood> what was the point?
ferno has joined #ruby
<ferno> Speed: Wat wat
<benzrf> specifically that special flow-control semantics (break, return, next instead of just method-style return) are not always needed & can be dangerous
<benzrf> example he gave:
<benzrf> >> [1, 2, 3, 4, 5].keep_if {|n| break if n > 3; true}
<eval-in> benzrf => nil (https://eval.in/120692)
Mongey has joined #ruby
<benzrf> oh wait.
<benzrf> lol
<benzrf> ok
<benzrf> >> l = [1, 2, 3, 4, 5]; l.keep_if {|n| break if n > 3; true}; l
<eval-in> benzrf => [1, 2, 3, 4, 5] (https://eval.in/120693)
<benzrf> um
<benzrf> guh i remember being shown something with weird reults >_>
<benzrf> >> l = [1, 2, 3, 4, 5]; l.keep_if {|n| break if n > 3; x.even?}; l
<eval-in> benzrf => undefined local variable or method `x' for main:Object (NameError) ... (https://eval.in/120694)
<benzrf> >> l = [1, 2, 3, 4, 5]; l.keep_if {|n| break if n > 3; n.even?}; l
<eval-in> benzrf => [2, 2, 3, 4, 5] (https://eval.in/120695)
<benzrf> there we go
<benzrf> breaking from destructive block-taking methods is dangerous
<benzrf> well
<benzrf> can be
MatthewsFace has joined #ruby
jjbohn has joined #ruby
MatthewsFace has quit [Client Quit]
yubrew has joined #ruby
MatthewsFace has joined #ruby
einarj has quit [Remote host closed the connection]
Salve has joined #ruby
Skaag has quit [Ping timeout: 240 seconds]
peckerman has quit [Quit: ZNC - http://znc.in]
AlexRussia has quit [Read error: Connection reset by peer]
AlexRussia has joined #ruby
mikepack has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
peckerman has joined #ruby
msmith has joined #ruby
Salve has quit [Ping timeout: 240 seconds]
<superlou> Trying to use the gem at https://github.com/tyrauber/census_api. Something's odd (or I'm doing something dumb). I can "gem install", and "require 'census_api'" which returns true. But when I try to use CensusApi::Client, ruby says uninitialized constant CensusApi, even though I see it at https://github.com/tyrauber/census_api/blob/master/lib/census_api/client.rb
<zorak> i can use ; to end a line an keep writing in the same line
<zorak> can i make a program in just one line with ; ??
freezey has joined #ruby
User458764 is now known as User458764_NotHe
Hanmac has joined #ruby
<centrx> zorak, Yes
User458764_NotHe has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<zorak> must be hard to coment a program like that :P
nouitfvf has quit [Ping timeout: 252 seconds]
ctp has joined #ruby
Gonzih has quit [Read error: Operation timed out]
Hanmac1 has quit [Ping timeout: 240 seconds]
User458764 has joined #ruby
akitada has quit [Quit: Connection closed for inactivity]
carraroj has joined #ruby
orisma has quit [Remote host closed the connection]
klaut has joined #ruby
estebanrules has quit [Quit: Lost terminal]
<shevy> hmm
Skaag has joined #ruby
<shevy> zorak you could always cheat comment
<zorak> how is this?
guilleiguaran has joined #ruby
nouitfvf has joined #ruby
sigurding_ has joined #ruby
<abdulsattar> benzrf: I spent the last 15 minutes or so trying to make sense of why it returned [2,2...]. I get it now. Thanks!
eka has joined #ruby
sigurding has quit [Read error: No route to host]
sigurding_ is now known as sigurding
<shevy> zorak hmm perhaps not, i tried to put a comment into a block call { # foo }
<shevy> but it does not work
<benzrf> abdulsattar: ??
<shevy> but perhaps you can do it like so: { 'some docu here' }
<benzrf> abdulsattar: haha
boboc has joined #ruby
<abdulsattar> benzrf: your destructible break, looked into source of select! to find it out, pretty twisty code there
freezey has quit [Remote host closed the connection]
Skaag has quit [Ping timeout: 240 seconds]
circuit has joined #ruby
chrisseaton has quit [Ping timeout: 240 seconds]
msmith has quit [Remote host closed the connection]
bradhe has joined #ruby
Lewix has quit [Remote host closed the connection]
<certainty> shevy: should work
msmith has joined #ruby
<certainty> >> def comment; end; comment{ something }; puts "looks good"
<eval-in> certainty => looks good ... (https://eval.in/120698)
<benzrf> abdulsattar: dang
bklane has joined #ruby
<shevy> certainty hehe
Atw has joined #ruby
<abdulsattar> def comment; something sense less here; end; puts "Don't even need a block!"
<abdulsattar> >> def comment; something sense less here; end; puts "Don't even need a block!"
<eval-in> abdulsattar => Don't even need a block! ... (https://eval.in/120699)
<jhass> superlou: and require 'census_api/client' returns false?
<superlou> jhass, I did that and have been mildly successful
m1lt0n_ has quit [Quit: leaving]
<superlou> also had to require 'census_api/request' and 'rest-client'
<superlou> but whenever i start doing that, i feel like i'm using bundler wrong
msmith has quit [Ping timeout: 240 seconds]
<jhass> superlou: just like I expected, this line https://github.com/tyrauber/census_api/blob/master/lib/census_api.rb#L3 is garbage. Open a bug report at the gem
<jhass> ./ is the current working dir
<jhass> I'm surprised it doesn't raise
<benzrf> does yarv have a single vm value that has all of the program state in ItSANgo
<benzrf> *it
<jhass> superlou: and while you at it you can inform the author that require 'rubygems' is already done for you in ruby > 1.9.2
<superlou> jhass, that's unforutnate
<superlou> ok
<superlou> i may have better luck forking and making a pull-request
<superlou> looks like it's been inactive for a while
<abdulsattar> Is pushing to an array is ruby O(1) or O(n)?
<centrx> abdulsattar, Should be O(1)
tectonic has joined #ruby
[gmi] has quit [Quit: Leaving]
<jhass> yeah, just expand it to three require 'census_api/client' (/request / version) lines
<jhass> superlou:
<abdulsattar> centrx: then this crazy dance in Array#select! doesn't make sense
<centrx> Maybe it is O(n) after all
<centrx> seems wrong though
<benzrf> >> [1, 2, 3].push 4
<eval-in> benzrf => [1, 2, 3, 4] (https://eval.in/120700)
<benzrf> ruby arrs are arraylists right
<mnms_> Do I know somehome in included module what is the including class ?
<superlou> jhass, i also had to require 'rest-client', which the gemspec already depends on
<abdulsattar> >> (1..1000000) * 100000 << 4
<eval-in> abdulsattar => undefined method `*' for 1..1000000:Range (NoMethodError) ... (https://eval.in/120701)
<abdulsattar> >> (1..1000000).to_a * 100000 << 4
<eval-in> abdulsattar => argument too big (ArgumentError) ... (https://eval.in/120702)
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<centrx> abdulsattar, What crazy dance are you referring to?
<benzrf> mnms_: there's the 'included' hook
<abdulsattar> The implementation of Array#select!
<superlou> jhass, should client.rb do a require 'rest-client' in it to avoid needing that in the application when using the library?
<jhass> superlou: https://github.com/tyrauber/census_api/blob/master/lib/census_api/request.rb#L4 probably not strict enough version requirement in it
<abdulsattar> It basically maintains two variables,
<abdulsattar> one to keep looping through this main array
<jhass> superlou: generally you want requires at the top of the file that use the required lib
<abdulsattar> and another to keep track of the lengh of the output array
<abdulsattar> *length
kennym has joined #ruby
<superlou> jhass, makes sense to me, i just don't know how they weren't getting errors when they ran their code
<jhass> superlou: yeah
<abdulsattar> I thought it might be because, pushing to end takes time
<abdulsattar> >> (1..100).to_a * 100000 << 4
<eval-in> abdulsattar => failed to allocate memory (NoMemoryError) ... (https://eval.in/120703)
<mnms_> benzrf: thanks
<abdulsattar> Let me try here, I've 12gigs
<centrx> I would think the array would keep track of the memory address of its last element
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblu_ has joined #ruby
hiyosi has quit [Ping timeout: 252 seconds]
lkba has quit [Quit: Bye]
<abdulsattar> I guess
<benzrf> >> 100000 * 100
<eval-in> benzrf => 10000000 (https://eval.in/120704)
<abdulsattar> I only have this question because of the implementation in Array#select!
<abdulsattar> Ok, it's been quite a while since I ran (1..100).to_a * 100000 << 4, there's no increase in memory usage and there's no output
txdv has quit [Read error: Connection reset by peer]
<centrx> abdulsattar, What is wrong wit hthe implementation in select!?
decoponio has quit [Quit: Leaving...]
<abdulsattar> centrx: Nothing's wrong, it goes through some hoops to avoid just pushing to the end of array
xibalba has joined #ruby
boboc has quit []
jjbohn has quit [Quit: Leaving...]
<centrx> abdulsattar, But what are you referring to in the code? I don't see it
yfeldblum has quit [Ping timeout: 264 seconds]
arya_ has quit [Ping timeout: 240 seconds]
bashed has joined #ruby
<centrx> I'm looking at i
<abdulsattar> It maintains two loop indices, i1 and i2
isbadawi has joined #ruby
<abdulsattar> i1 loops through the source array
<abdulsattar> i2 keeps track of the output array
montyboy has joined #ruby
<abdulsattar> holy shit, there's no "output" array,
<centrx> abdulsattar, There is no output array, it's the same array
<abdulsattar> Yes, I just realized that
<Akuma> Hello, how can I access a hash within an array; doing print my_array[0][:hash_key] gives me an error
<abdulsattar> that was the whole point of benzrf's little test
<jhass> Akuma: always share the error
olivier_bK has joined #ruby
jibi has quit [Read error: Connection reset by peer]
<mnms_> benzrf: I would like to pass to instance methods of module base class. Is this possible ?
<mnms_> benzrf: ok nvm :)
<Akuma> the error is the following: `block in process': undefined method `[]' for nil:NilClass (NoMethodError)
<havenwood> >> [0, {a: 'a', b: 'b'}, 2][1][:b]
<eval-in> havenwood => "b" (https://eval.in/120706)
<havenwood> Akuma: ^
<jhass> Akuma: that means the first element of your array is nil
<Akuma> yes
<havenwood> Akuma: you aren't asking for an element that isn't there
<centrx> Or possibly the whole "array"
<Akuma> I'm an idiot, I found my problem
<havenwood> are*
isbadawi has quit [Ping timeout: 240 seconds]
<Akuma> I was doing an each on the array and was still trying to acces the hash from the array value....
<Akuma> thanks anyways for the help :)
<superlou> jhass, any idea why Dir["census_api/*"].each { |file| require file } doesn't work?
spider-mario has joined #ruby
trhodes_ has quit [Ping timeout: 255 seconds]
ner0x has joined #ruby
<jhass> superlou: because it still depends on the current working directory, in this case being the lib dir of the gem
<superlou> if I puts Dir["census_api/*"] I see the right files, but it doesn't seem to resolve the need to require the files that are in the folder individually
<superlou> is there a pattern for doing this kind of thing in a gem?
<jhass> superlou: really, just explode it into three lines and be explicit, it's actually good practice to do so
yfeldblu_ has quit [Remote host closed the connection]
txdv has joined #ruby
yfeldblum has joined #ruby
<superlou> jhass, makes sense to me. just felt un rubyish
<superlou> but explicit isn't bad
arya_ has joined #ruby
<superlou> i think it's now fixed in my fork at https://github.com/superlou/census_api, though i've never done a pull-request before
klue has joined #ruby
klue has quit [Changing host]
klue has joined #ruby
<superlou> time to learn things
msmith has joined #ruby
weirdpercent has joined #ruby
SonicX has joined #ruby
Hanmac1 has joined #ruby
<havenwood> superlou: click a button or two on Githubs, rinse and repeat!
<shevy> anyone of you guys using ruby-gnome or another (non-web) GUI in ruby?
idiocrash has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> shevy: Shoes 4
<havenwood> shevy: :P
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
Hanmac has quit [Ping timeout: 252 seconds]
alexherbo2 has joined #ruby
<jhass> shevy: did you try the gtk broadway backend yet? it makes websites out of your gtk applications :P
yubrew has joined #ruby
montyboy has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<benzrf> jhass: sounds like seaside
bashed has left #ruby [#ruby]
weirdpercent has left #ruby ["Leaving"]
bradhe_ has joined #ruby
MJBrune has quit [Remote host closed the connection]
niftyn8 has joined #ruby
kennym has left #ruby [#ruby]
mustdoge has quit [Remote host closed the connection]
mustdoge has joined #ruby
<RubyPanther> shevy: I use ruby-gnome and plain Gtk
1JTAAP1FG is now known as linduxed
bradhe has quit [Ping timeout: 240 seconds]
koell has joined #ruby
nari has joined #ruby
yubrew has quit [Ping timeout: 264 seconds]
Lewix has joined #ruby
Hanmac has joined #ruby
Salve has joined #ruby
nbezzala has joined #ruby
Elico has joined #ruby
Hanmac1 has quit [Ping timeout: 240 seconds]
Salve has quit [Read error: Connection reset by peer]
Salve has joined #ruby
alexherbo2 has quit [Read error: Connection reset by peer]
arianit has joined #ruby
alexdaube has quit []
<shevy> jhass hmm never heard of that before
<shevy> RubyPanther cool, have you released anything as a gem yet?
bricker`LA has quit [Quit: leaving]
<shevy> related to ruby-gnome that is
Solnse has joined #ruby
jjbohn has joined #ruby
<RubyPanther> shevy: no, there are already too many gems in the world
vlad_starkov has quit [Remote host closed the connection]
<RubyPanther> I could make a Gtk viewer for pi_pie
Salve has quit [Ping timeout: 252 seconds]
<RubyPanther> I've got utilities for Restaurant Pro Express/Cash Register Express, but I wouldn't want to release them and risk anybody being encouraged to actually buy those products
Hanmac has quit [Ping timeout: 264 seconds]
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
jjbohn has quit [Ping timeout: 264 seconds]
<RubyPanther> I've got a tray gmail checker but I don't want to release that because I'd get support emails from people whose mail is down
codecop has joined #ruby
ferr has quit [Quit: Leaving.]
shaileshg has quit [Quit: Connection closed for inactivity]
<centrx> RubyPanther, Sounds like a tough live you lead
<centrx> life
<shevy> RubyPanther well ok but let's say these are three large projects in ruby-gnome
<shevy> you would surely have some tiny gems
<shevy> like minesweeper!
Jetchisel has joined #ruby
Skaag has joined #ruby
msmith has quit [Remote host closed the connection]
xcv has joined #ruby
RubyPanther has quit [Ping timeout: 264 seconds]
Hanmac has joined #ruby
msmith has joined #ruby
msmith has quit [Remote host closed the connection]
Skaag has quit [Ping timeout: 264 seconds]
msmith has joined #ruby
benzrf is now known as benzrf|offline
alk_ has joined #ruby
<alk_> ola
<alk_> I'm trying to figure out something that is many not in the docs. is it possible to access a variable that's in the main scope? ie. #!/usr/bin/env ruby, something = value, then somethingelse = obj.new. can obj.new somehow access that initial variable from the main context? without making it global with the $ prefix?
rootshift has joined #ruby
Maitiu has joined #ruby
msmith has quit [Ping timeout: 240 seconds]
<toretore> alk_: no
<toretore> you'll need to pass it in
<alk_> no way at all to explicitely specify a context?
kennym has joined #ruby
<alk_> damn. ok. it's just that I'm patching some software and I want to keep the changes minimal
<alk_> but I guess I'll have to push the changes a bit further
tectonic has quit []
<toretore> well, it's true to the real meaning of patch, i'll give you that
<jhass> alk_: you could do something very hack with passing in binding, but this is no sane way at all. Just pass it in (somethingelse = obj.new(something) )
arya__ has joined #ruby
arya_ has quit [Read error: Connection reset by peer]
mengu has joined #ruby
kraljev5 has joined #ruby
<alk_> basically I'm adding a plugin to a daemon, as a subclass, that doesn't pass the full config. but I need it
RubyPanther has joined #ruby
<alk_> I guess I'll just have to change a few things here an there
<kraljev5> hey! If I do this:
<kraljev5> obj = Obj.new
<kraljev5> obj.var = 10
<kraljev5> then var is not yet available in #initialize
<kraljev5> how to inject that variable before #initialize is invoked
<centrx> kraljev5, What are you really trying to do
<alk_> Obj.new(var). and take the arguments.
<centrx> ^
<alk_> but yeah the real question is what are you trying to do
Teltariat has joined #ruby
kennym has quit [Ping timeout: 240 seconds]
<kraljev5> #initialize is not under my control
<kraljev5> I want to pass env hash, so it can be used in #initialize by the user of a gem
<centrx> What is this code, a fortress?
<Teltariat> Hello. I was readying the "Programming Ruby" book then saw that it documents Ruby 1.6.... will that matter? It looks like I'm running Ruby 2.0... how much has changed? Or what would you suggest as better, much more up-to-date learning resource?
<kraljev5> So, I have to override .new
<alk_> Teltariat : a lot will be the same. but you should still use more up to date docs
<jhass> kraljev5: you mean you're writing a gem and users are meant to subclass one of the classes it provides? requiring them to take an argument when they override #initialize is a totally legit API requirement of your gem then, IMO
<jhass> Teltariat: 1.6 is really old though
<banister> Teltariat a tonne has changed
<banister> Teltariat get another book :)
<RubyPanther> shevy: I lagged out, did you have a ruby-gnome question?
glebm has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
petey has joined #ruby
<shevy> RubyPanther hmm not quite yet, I am just wondering whether I should release small standalone ruby-gnome things
<centrx> Teltariat, You must mean Ruby 1.8? Ruby 1.6 is like 15 years old
<shevy> if there is like a grand total of 8 people worldwide using ruby-gnome it is probably not worth it
kraljev6 has joined #ruby
<kraljev5> jhass: Yes, take an argument and not forget to call super! :(
kraljev5 has quit [Remote host closed the connection]
koell has quit [Ping timeout: 335 seconds]
<jhass> kraljev6: another way is to have a hook method, something like #initialize_something that you call from your #initialize (if existent)
mgorbach_ has joined #ruby
mgorbach has quit [Excess Flood]
sigurding has quit [Quit: sigurding]
isbadawi has joined #ruby
kennym has joined #ruby
kennym has quit [Changing host]
kennym has joined #ruby
mgorbach_ is now known as mgorbach
confounds has joined #ruby
fannye has quit [Read error: Connection reset by peer]
<RubyPanther> shevy: There are probably lots, but they're probably like me and writing reports apps for clients
<shevy> hmm
<RubyPanther> Gtk has lots of users, but it hasn't been sexy in years
AlexRussia has quit [Remote host closed the connection]
AlexRussia has joined #ruby
tectonic has joined #ruby
jeregrine has joined #ruby
<banister> RubyPanther when i want a GUI i just use something like marionette.js + a thin ruby websocket backend
mehlah has joined #ruby
Lewix has quit [Read error: Connection reset by peer]
isbadawi has quit [Ping timeout: 240 seconds]
timonv has quit [Ping timeout: 241 seconds]
Lewix has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
<RubyPanther> shevy: what do you have, apps, widgets, libraries?
davidcollom_zzz is now known as davidcollom
<shevy> RubyPanther hmm a mixture, both. but more apps, or rather - they are mostly just one class alone
x1337807x has joined #ruby
<RubyPanther> some custom widgets might get people excited to use it
<shevy> the thing I'd start is with minesweeper
<RubyPanther> the future needs minesweeper, definitely
tectonic has quit [Client Quit]
vlad_starkov has joined #ruby
Skaag has joined #ruby
chipotle_ has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
tgkokk has joined #ruby
jackneill has quit [Ping timeout: 264 seconds]
koell has joined #ruby
davidcollom is now known as davidcollom_zzz
yubrew has joined #ruby
vlad_starkov has quit [Ping timeout: 264 seconds]
jragon has quit [Ping timeout: 240 seconds]
Skaag has quit [Ping timeout: 252 seconds]
yubrew has quit [Ping timeout: 240 seconds]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
kennym has quit [Quit: Leaving.]
Xeago has joined #ruby
<shevy> hmmm
<shevy> they bundled minesweeper into shoes?
<havenwood> shevy: one of the many sample apps
sheap has quit [Quit: Leaving]
<shevy> hmmmm
niftyn8 has quit [Ping timeout: 264 seconds]
<havenwood> shevy: you can `rake samples` to have the next sample pop up when you close the first
kraljev6 has quit [Ping timeout: 264 seconds]
<centrx> #ruby, the only channel where spammers can hang out and message everyone in the channel
petey has quit []
timonv has joined #ruby
monkegji_ has joined #ruby
vlad_starkov has joined #ruby
Hanmac1 has joined #ruby
nicoulaj has quit [Remote host closed the connection]
monkegjinni has quit [Ping timeout: 240 seconds]
BeingUntoDeath has joined #ruby
mustdoge has quit [Remote host closed the connection]
<Teltariat> algddddd
<Teltariat> d
<Teltariat> d
<Teltariat> d
Hanmac has quit [Ping timeout: 240 seconds]
mark06 has joined #ruby
<Teltariat> (sorry, issue with my terminal)
<mark06> how can I list all additional gems that were installed after ruby installation?
Hanmac has joined #ruby
mikepack has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 240 seconds]
<Teltariat> alk_ jhass banister centrx On the Ruby website, in the documentation section, there is a link to the "Programming Ruby" book. http://ruby-doc.com/docs/ProgrammingRuby/ <- It's listed as documenting Ruby 1.6 under Ruby Versions
isbadawi has joined #ruby
<centrx> Teltariat, Oh that one's okay
<Teltariat> oh ok
<centrx> Teltariat, I thought it documented 1.8
<centrx> Teltariat, Apparently not much different between 1.6 and 1.8
wallerdev has quit [Quit: wallerdev]
vlad_starkov has quit [Ping timeout: 264 seconds]
<centrx> Teltariat, There are some significant backwards-incompatible differences between 1.8 and 1.9, but 1.8 (1.6) is a good start
<Teltariat> ok
Salve has joined #ruby
Hanmac1 has quit [Ping timeout: 252 seconds]
jack_rabbit has joined #ruby
<centrx> Teltariat, That book is called "the Pickaxe" and that site has the first edition of it. Latest edition is available (for pay) at http://pragprog.com/book/ruby4/programming-ruby
<Teltariat> centrx, understood, thanks for link
withnale has quit [Ping timeout: 240 seconds]
jjbohn has joined #ruby
Astralum has joined #ruby
withnale has joined #ruby
xcv has quit []
Salve has quit [Ping timeout: 240 seconds]
UserNameInvalid has joined #ruby
jjbohn has quit [Ping timeout: 240 seconds]
adkron has joined #ruby
alexherbo2 has joined #ruby
failshell has joined #ruby
failshel_ has joined #ruby
shadoi1 has quit [Read error: Connection reset by peer]
kraljev6 has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
lw has joined #ruby
ferr has joined #ruby
shadoi1 has joined #ruby
zellio_ is now known as zellio
failshell has quit [Ping timeout: 240 seconds]
monkegji_ has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
mary5030 has joined #ruby
ner0x has quit [Quit: Leaving]
teddyp1cker has quit [Remote host closed the connection]
Tomasso has joined #ruby
mary5030 has quit [Ping timeout: 252 seconds]
kraljev6 has quit [Ping timeout: 240 seconds]
BeingUntoDeath has quit [Ping timeout: 240 seconds]
ferno has quit [Ping timeout: 240 seconds]
kennym has joined #ruby
kennym has quit [Changing host]
kennym has joined #ruby
failshel_ has quit [Remote host closed the connection]
dx7 has quit [Remote host closed the connection]
CorySimmons has joined #ruby
dx7 has joined #ruby
abdulsattar has quit [Ping timeout: 240 seconds]
slabserif has joined #ruby
itadder has joined #ruby
slabserif has quit [Client Quit]
kennym has quit [Quit: Leaving.]
jph98 has joined #ruby
lampe2 has quit [Quit: ZNC - http://znc.in]
dx7 has quit [Ping timeout: 264 seconds]
_Rahul_Roy_ has joined #ruby
failshell has joined #ruby
failshel_ has joined #ruby
blackmesa has quit [Quit: WeeChat 0.4.3]
arianit has quit [Ping timeout: 240 seconds]
pu22l3r has joined #ruby
yubrew has joined #ruby
UserNameInvalid has quit [Ping timeout: 240 seconds]
isbadawi has quit [Quit: Leaving.]
sailias has joined #ruby
failshell has quit [Ping timeout: 240 seconds]
centrx has quit [Quit: All this computer hacking is making me thirsty]
centrx has joined #ruby
<bklane> How do you include a helper in a sinatra app?
carraroj has quit [Quit: Konversation terminated!]
butblack has joined #ruby
fieldfirst has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 240 seconds]
deadlock has joined #ruby
sambao21 has joined #ruby
sambao21 has quit [Client Quit]
failshel_ has quit [Remote host closed the connection]
mikepack has joined #ruby
confounds has quit [Ping timeout: 264 seconds]
chipotle has quit [Quit: cya]
ferr has quit [Quit: Leaving.]
Tomasso has quit [Ping timeout: 264 seconds]
glebm has joined #ruby
chipotle has joined #ruby
mikepack has quit [Ping timeout: 252 seconds]
<Dwarf> Why does
<Dwarf> @wins = { 'rock' => 'scissors', 'scissors' => 'paper', 'paper' => 'rock' }
<Dwarf> attr_reader :wins
<Dwarf> Give me nil?
<centrx> Dwarf, Why wouldn't it?
<Dwarf> You tell me
<centrx> attr_reader probably returns nil
nbezzala has quit [Read error: Connection reset by peer]
<Dwarf> I've been told that attr_reader :wins creates def wins @wins end
CorySimmons has quit [Quit: Bye!]
<Dwarf> So... it should return @wins
<Dwarf> right
<centrx> attr_reader creates that accessor, but attr_reader itself returns nil
<centrx> Dwarf, if you call obj.wins it will return @wins
toastynerd has joined #ruby
<Dwarf> I'm not I'm following
<Dwarf> So, attr_reader creates @wins
claymore has quit [Quit: Leaving]
<Dwarf> How do I assign anything to that from within the class
<centrx> Dwarf, One way is to set @wins =
<Dwarf> Which I did
<centrx> Dwarf, You have given this awfully incomplete code
<Dwarf> Yet obj.wins.inspect returns nil
<centrx> Dwarf, The code you have pasted, returns nil
toastynerd has quit [Remote host closed the connection]
pu22l3r has quit [Remote host closed the connection]
<centrx> Dwarf, That @wins = sets the class instance variable, not the instance variable
kennym has joined #ruby
<centrx> Dwarf, Presumably you want to set @wins = inside def initialize
sepp2k has quit [Read error: Connection reset by peer]
<centrx> Dwarf, #initialize is called when #new is called
Salve has joined #ruby
<Dwarf> D'oh, just after I removed my def initialize
<Dwarf> Well that surely did something
<Dwarf> I'm going to read up some more on class instance variables and instance variables
<Dwarf> Thanks for the heads up
adkron has quit [Ping timeout: 253 seconds]
elaptics`away is now known as elaptics
lkba has joined #ruby
Xiti` has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
jph98 has quit [Quit: jph98]
phansch has quit [Quit: WeeChat 0.4.2]
jjbohn has joined #ruby
eka has joined #ruby
Salve has quit [Ping timeout: 240 seconds]
bklane has quit [Quit: Leaving...]
Xiti` has quit [Client Quit]
Xiti has quit [Ping timeout: 252 seconds]
dx7 has joined #ruby
jcs222 has quit [Quit: leaving]
circuit has quit [Quit: leaving]
ItSANgo has quit [Quit: Leaving...]
jjbohn has quit [Ping timeout: 240 seconds]
lampe2_ has joined #ruby
sambao21 has joined #ruby
lampe2_ is now known as lampe2
bluOxigen has quit [Ping timeout: 264 seconds]
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
Xiti has joined #ruby
fihihe has quit [K-Lined]
nari has quit [Ping timeout: 240 seconds]
randomnick_ has quit [Quit: Leaving]
MatthewsFace has quit [Quit: This computer has gone to sleep]
NicholasFlamel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rollabunna has quit [Ping timeout: 252 seconds]
Spleeze has quit [Ping timeout: 264 seconds]
_Rahul_Roy_ has quit [Quit: Leaving]
UserNameInvalid has joined #ruby
UserNameInvalid has quit [Client Quit]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
kennym has quit [Quit: Leaving.]
_Andres has quit [Quit: jazz]
nfk has quit [Ping timeout: 264 seconds]
gigetoo has quit [Remote host closed the connection]
gigetoo has joined #ruby
marcdel has joined #ruby
toretore has quit [Quit: This computer has gone to sleep]
Spleeze has joined #ruby
Shidash has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
sputnik1_ has joined #ruby
Rollabunna has joined #ruby
deadlock has quit [Ping timeout: 240 seconds]
krainboltgreene has left #ruby [#ruby]
havenwood has joined #ruby
sdouglas has joined #ruby
Astralum has quit [Ping timeout: 252 seconds]
skkeeper has quit [Ping timeout: 246 seconds]
ferr has joined #ruby
benzrf|offline is now known as benzrf
ItSANg___ has joined #ruby
ItSANgo__ has joined #ruby
sputnik1_ has quit [Client Quit]
kennym has joined #ruby
sambao21 has joined #ruby
marcdel has quit [Ping timeout: 240 seconds]
axsuul has quit [Read error: Connection reset by peer]
arya__ has quit [Ping timeout: 240 seconds]
axsuul has joined #ruby
ferr has quit [Client Quit]
mostlybadfly has joined #ruby
sputnik1_ has joined #ruby
<benzrf> Dwarf: @foo is always an instance variable
sdouglas has quit [Ping timeout: 240 seconds]
<benzrf> Dwarf: however, it may be an instance variable on a class
jjbohn has joined #ruby
<benzrf> @@foo is a class variable
kennym has quit [Client Quit]
yubrew has joined #ruby
sputnik1_ has quit [Client Quit]
skkeeper has joined #ruby
mahogany has joined #ruby
sputnik1_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
olivier_bK has quit [Ping timeout: 246 seconds]
dseitz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jjbohn has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 240 seconds]
cantonic has joined #ruby
idiocrash has joined #ruby
isbadawi has joined #ruby
kennym has joined #ruby
timonv has joined #ruby
sambao21 has joined #ruby
kennym has quit [Client Quit]
isbadawi has quit [Read error: Connection reset by peer]
isbadawi has joined #ruby
Skaag has joined #ruby
Umschwung has joined #ruby
Umschwung has quit [Max SendQ exceeded]
timonv has quit [Ping timeout: 240 seconds]
Umschwung has joined #ruby
Umschwung has quit [Max SendQ exceeded]
sputnik1_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
sputnik1_ has joined #ruby
deens has joined #ruby
Skaag has quit [Ping timeout: 240 seconds]
codecop has quit [Remote host closed the connection]
skkeeper has quit [Ping timeout: 240 seconds]
shaunbaker has joined #ruby
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
Solnse has quit [Ping timeout: 240 seconds]
andy__ has joined #ruby
skkeeper has joined #ruby
_justin has quit [Quit: _justin]
camilasan has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
deens has quit [Ping timeout: 240 seconds]
_1_vikk222 has joined #ruby
<_1_vikk222> hi
itadder has quit [Remote host closed the connection]
<shevy> I hate class variables
<zorak> just ended the Ruby course in CodeAcademy !
_1_vikk222 has left #ruby [#ruby]
St_Marx has quit [Ping timeout: 245 seconds]
<zorak> <:oD
<shevy> zorak did you shoot the end guy?
sputnik1_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
andrewlio has quit [Quit: Leaving.]
<zorak> shevy: ???
<shevy> I see you missed
vlad_starkov has quit [Ping timeout: 240 seconds]
spider-mario has quit [Remote host closed the connection]
_lynX has joined #ruby
quatron has quit [Quit: ChatZilla 0.9.90.1 [Firefox 27.0.1/20140212131424]]
<zorak> i dont know what are you talking about
<centrx> zorak, Did you beat the big boss at the end of the course?
failshell has joined #ruby
<zorak> ahh, lol
<zorak> yes :P
<zorak> very easy actually
sputnik1_ has joined #ruby
<zorak> now, im gonna start my first project
Salve has joined #ruby
<zorak> an overtime calculator for my fellows coworkers in the argentinian movie industrie
Xeago has quit [Remote host closed the connection]
sputnik1_ has quit [Client Quit]
tgkokk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<centrx> ooo calculadora
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
wallerdev has joined #ruby
<zorak> im thinking, start with a module with all the rules and the constants
Umschwung has joined #ruby
Umschwung has quit [Max SendQ exceeded]
<zorak> then, in a class make the methods to analize the in and out and determine how much overtime was
Salve has quit [Ping timeout: 240 seconds]
Robert__ has quit [Read error: Connection reset by peer]
jjbohn has joined #ruby
senayar_ has joined #ruby
aquinas has joined #ruby
Rollabunna has quit [Ping timeout: 264 seconds]
senayar has quit [Ping timeout: 240 seconds]
Spami has joined #ruby
blackmesa has joined #ruby
senayar_ has quit [Ping timeout: 240 seconds]
<shevy> less talk, more start!
lkba has quit [Ping timeout: 240 seconds]
senayar has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
mahogany has quit [Quit: Leaving...]
sepp2k has joined #ruby
sambao21 has joined #ruby
teddyp1cker has joined #ruby
sambao21_ has joined #ruby
Lewix has quit [Remote host closed the connection]
<zorak> where can i read about dates and times in Ruby?
sambao21_ has quit [Client Quit]
Notte has quit []
chrisseaton has joined #ruby
rococo has joined #ruby
endash_ has quit [Quit: endash_]
sambao21_ has joined #ruby
teddyp1cker has quit [Ping timeout: 240 seconds]
<centrx> zorak, Yes, there's also Date.html and DateTime.html
<centrx> zorak, Those are the three date/time classes in core Ruby
AlexRussia has quit [Read error: Connection reset by peer]
<centrx> Actually DateTime is in stdlib
<zorak> thanks!
<centrx> Note really sure what the point of DateTime is to be honest
<centrx> Start with Date and Time, ignore DateTime for now
sambao21 has quit [Quit: Computer has gone to sleep.]
yubrew has joined #ruby
klaut has quit [Remote host closed the connection]
gregf has quit [Quit: WeeChat 0.4.3]
lkba has joined #ruby
lw has quit [Quit: s]
dseitz has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
linojon has quit [Quit: linojon]
andy__ has quit [Read error: Connection reset by peer]
aquinas has left #ruby [#ruby]
<zorak> centrx: im reading time
andy__ has joined #ruby
axsuul has quit [Ping timeout: 240 seconds]
_bart has quit [Ping timeout: 252 seconds]
kirun has quit [Quit: Client exiting]
sski has joined #ruby
SonicX has quit [Ping timeout: 240 seconds]
itadder has joined #ruby
rococo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
undert has left #ruby ["Leaving"]
butblack has quit [Quit: butblack]
elaptics is now known as elaptics`away
shaunbaker has quit [Remote host closed the connection]
<RubyPanther> DateTime implements various RFCs that somebody might want
arya_ has joined #ruby
havenwood has quit [Remote host closed the connection]
sambao21_ has quit [Quit: Computer has gone to sleep.]
havenwood has joined #ruby
Skaag has joined #ruby
YamakasY has joined #ruby
havenwood has quit [Ping timeout: 252 seconds]
<zorak> RubyPanther: i want make an overtime calculator. User input the date and time of enter work, date and time of getting out and return the overtime
<zorak> but, with the rules of the movie guild of Argentina
deens has joined #ruby
lw has joined #ruby
<zorak> (that there's a lot of rules)
<RubyPanther> zorak: Time class is probably where you should spend most of your time
workmad3 has joined #ruby
<zorak> yes, time have even a way to know if the day was sunday
<zorak> t.sunday? return true if t was sunday
tt1187 has quit [Read error: Operation timed out]
yano has quit [Ping timeout: 630 seconds]
jjbohn has quit [Quit: Leaving...]
<Rylee> Is there any way to make some kind of count-down function /without/ using sleep? https://gist.github.com/rylai-/88d8d861d49937551af0 is what I'm looking for, but it uses sleep.