apeiros changed the topic of #ruby to: Ruby 2.1.0-p0; 2.0.0-p353; 1.9.3-p484: http://ruby-lang.org|| Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
PLejeck has quit [Changing host]
PLejeck has joined #ruby
<ZephiroMX> :D, this code no work p "/\[title](.*?)[\/title]/".match("[title]Header title[/title]")
PLejeck is now known as nuck
mneorr has joined #ruby
<ZephiroMX> I assume that is a silly problem, but I can not solve
ambushsabre has joined #ruby
<bricker> ZephiroMX: you're missing a backslash before the closing square-brackets
<bricker> \[title\]
<bricker> ZephiroMX: although
bentonrr has quit [Ping timeout: 265 seconds]
ambushsabre has quit [Client Quit]
<ZephiroMX> p "/\[title\](.*?)[\/title\]/".match("[title]Header title[/title]")
joaoh82 has joined #ruby
<ZephiroMX> does not work
<bricker> ZephiroMX: Yes but the syntax is wrong as well.
cj3kim has quit [Remote host closed the connection]
<havenwood> >> '[title]Header title[/title]'.match /\[title\](.*?)\[\/title\]/
<ZephiroMX> ahaha sorry i am little rubyst
<bricker> ZephiroMX: you're matching a string to a string which won't work
mercwithamouth has joined #ruby
<bricker> ZephiroMX: you should remove the double-quotes from the first half
<ZephiroMX> Perfect
<ZephiroMX> thanks Havenwood and Bricker
jacksonn has quit [Quit: IRCGate CGI:IRC User (EOF)]
timonv has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 252 seconds]
joaoh82 has quit [Ping timeout: 265 seconds]
Virtualize has joined #ruby
klaut has quit [Remote host closed the connection]
dagnachew has joined #ruby
Megtastique has joined #ruby
blarghmatey has quit [Read error: Operation timed out]
specious has joined #ruby
figgleberry has quit [Ping timeout: 252 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
dru has quit [Ping timeout: 272 seconds]
danshultz has joined #ruby
rm_ has quit [Remote host closed the connection]
sid_ has joined #ruby
rm_ has joined #ruby
danshultz has quit [Remote host closed the connection]
ZephiroMX has quit [Read error: Connection reset by peer]
ZephiroMX has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
subbyyy has joined #ruby
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
ZephiroMX has quit [Client Quit]
rm_ has quit [Ping timeout: 246 seconds]
cj3kim has joined #ruby
timonv has quit [Remote host closed the connection]
nanoyak has joined #ruby
Yarou has quit [Quit: This computer has gone to sleep]
bentonrr has joined #ruby
cj3kim has quit [Remote host closed the connection]
mneorr has quit [Ping timeout: 272 seconds]
goleldar has quit [Remote host closed the connection]
Virtualize has quit [Quit: Leaving...]
Guest68596 is now known as banghouse
Guest54348 has quit [Remote host closed the connection]
<QKO_> Happy new year everyone!
Mars has joined #ruby
butblack has joined #ruby
Mars is now known as Guest53199
szerated_ has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
croaky has quit [Ping timeout: 265 seconds]
vlad_starkov has joined #ruby
goleldar has joined #ruby
szerated_ has quit [Ping timeout: 245 seconds]
claymore has quit [Quit: Leaving]
Vivekananda has joined #ruby
<havenwood> QKO_: Happy New Years!
goleldar has quit [Read error: Connection reset by peer]
goleldar has joined #ruby
nateberkopec has quit [Quit: Leaving...]
cameronbarton has quit [Quit: cameronbarton]
<ace_striker> happy new year all ...
cameronbarton has joined #ruby
Yarou has joined #ruby
Yarou has quit [Changing host]
Yarou has joined #ruby
tt1187 has quit [Ping timeout: 245 seconds]
kitak has quit [Remote host closed the connection]
CaptainJet has quit []
szerated_ has joined #ruby
LiquidInsect has quit [Read error: Connection reset by peer]
kitak has joined #ruby
<dann_> alright. i have a folder named "dungeon". it has subfolders in it, and a "run.bat"- the run.bat executes ruby lib/dungeon.rb (lib being a subfolder of dungeon).
<dann_> if i were to load a file from dungeon.rb, what would be the base folder for it?
<dann_> would it be /dungeon/ or /dungeon/lib/?
szerated_ has quit [Ping timeout: 245 seconds]
jellow_ is now known as jellow
jellow has quit [Changing host]
jellow has joined #ruby
<dann_> helloooo
<Jamo> try :)
rm_ has joined #ruby
spider-mario has quit [Remote host closed the connection]
lukec has quit [Quit: lukec]
<Jamo> in worst case you might need to prefix your path %dp0 or whatever it was to get paths relative to .bat files location
cameronbarton has quit [Read error: Connection reset by peer]
predator217 has quit [Ping timeout: 246 seconds]
Kricir has quit [Remote host closed the connection]
subbyyy has quit [Ping timeout: 252 seconds]
<Jamo> yep, %dp0
tedstriker has joined #ruby
predator117 has joined #ruby
mneorr has joined #ruby
robustus has quit [Ping timeout: 252 seconds]
phipes has quit [Remote host closed the connection]
szerated_ has joined #ruby
robustus has joined #ruby
lewix has quit [Remote host closed the connection]
renklaf has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
max96at has quit [Quit: Textual IRC Client: www.textualapp.com]
bitri has joined #ruby
joaoh82 has joined #ruby
szerated_ has quit [Client Quit]
szerated__ has joined #ruby
monkegjinni has quit [Remote host closed the connection]
heidi has quit [Quit: Leaving.]
smathieu has joined #ruby
joaoh82 has quit [Ping timeout: 240 seconds]
kirun has quit [Quit: Client exiting]
dagnachew has quit [Quit: Leaving]
tropicalmug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nanoyak has quit [Quit: Computer has gone to sleep.]
lessless has quit [Read error: Connection reset by peer]
smathieu has quit [Ping timeout: 245 seconds]
szerated__ has quit [Ping timeout: 245 seconds]
rm_ has quit [Remote host closed the connection]
aspires has quit []
rm_ has joined #ruby
dann_ has quit [Ping timeout: 272 seconds]
dagnachew has joined #ruby
dagnachew has quit [Max SendQ exceeded]
dagnachew has joined #ruby
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
eka has joined #ruby
monkegjinni has joined #ruby
havenwood has quit [Ping timeout: 272 seconds]
goleldar has quit []
lewix has joined #ruby
okinomo has joined #ruby
freerobby has quit [Quit: Leaving.]
bricker has quit [Quit: leaving]
tylersmith has quit [Remote host closed the connection]
goleldar has joined #ruby
cbetta_afk is now known as cbetta
dagnachew has quit [Quit: Leaving]
mneorr has quit [Remote host closed the connection]
Asher has joined #ruby
mneorr has joined #ruby
danshultz has joined #ruby
bentonrr has quit [Remote host closed the connection]
Kiba has joined #ruby
<Kiba> hmm
<Kiba> hi
<Kiba> trying to eval a string into a hash
<Kiba> a = "{\"name\":\"people\"}"
<Kiba> eval(a)
<Kiba> expecting end-of-input{"name":"people"}
<Kiba>
<Kiba> seems like it works differently in 2.0.0
<Kiba> than in 1.9.3
<Kiba> wait. I did it wrong
falood has joined #ruby
<Kiba> a = "{\name\"=>\"people\"}"
<Kiba> hmm
<Kiba> obviously, I am doing it wrong, completely wrong
mneorr has quit [Ping timeout: 252 seconds]
magoo has quit [Quit: WeeChat 0.4.2]
danshultz has quit [Ping timeout: 272 seconds]
afhammad has joined #ruby
mzdravkov has left #ruby [#ruby]
diego has joined #ruby
diego is now known as Guest86865
goleldar has quit []
Guest53199 has quit [Remote host closed the connection]
<Kiba> nvm guys, I figured out that I messed up the file I am reading
afhammad has left #ruby [#ruby]
Guest86865 is now known as diegoviola
kitak has quit [Remote host closed the connection]
havenwood has joined #ruby
Monie has joined #ruby
frustrum has joined #ruby
<emocakes> go out kiba
<emocakes> party
<emocakes> its the new year
frustrum has quit [Client Quit]
jmo has joined #ruby
byprdct has quit [Ping timeout: 248 seconds]
Iszak has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
rm_ has quit [Remote host closed the connection]
rm_ has joined #ruby
jmo has quit [Ping timeout: 272 seconds]
rm_ has quit [Remote host closed the connection]
rm_ has joined #ruby
Asher has quit [Quit: Leaving.]
vlad_starkov has quit [Remote host closed the connection]
Asher has joined #ruby
sheap has joined #ruby
Yarou has quit [Quit: This computer has gone to sleep]
vlad_starkov has joined #ruby
freerobby has joined #ruby
sheap has left #ruby [#ruby]
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_sta_ has joined #ruby
freerobby has quit [Client Quit]
tedstriker has quit [Quit: Anti-Fraping status set.]
flubba has quit [Read error: Connection reset by peer]
phipes has joined #ruby
flubba has joined #ruby
vlad_sta_ has quit [Read error: Connection reset by peer]
figgleberry has joined #ruby
joaoh82 has joined #ruby
tkuchiki has joined #ruby
lukec has joined #ruby
joaoh82 has quit [Read error: Connection reset by peer]
joaoh82 has joined #ruby
phipes has quit [Remote host closed the connection]
smathieu has joined #ruby
rm_ has quit [Remote host closed the connection]
rm_ has joined #ruby
mneorr has joined #ruby
ejnahc has quit [Remote host closed the connection]
bitri has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has quit [Ping timeout: 252 seconds]
rm__ has joined #ruby
ejnahc has joined #ruby
joaoh82 has quit [Ping timeout: 252 seconds]
smathieu has quit [Ping timeout: 248 seconds]
mary5030 has quit [Remote host closed the connection]
Yarou has joined #ruby
ludar has quit [Ping timeout: 240 seconds]
rm_ has quit [Remote host closed the connection]
timonv has joined #ruby
LexicalScope has joined #ruby
LexicalScope has quit [Changing host]
LexicalScope has joined #ruby
monkegjinni has quit [Remote host closed the connection]
mengu has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
larissa has quit [Quit: Leaving]
freerobby has joined #ruby
gja has joined #ruby
crapple has quit [Ping timeout: 265 seconds]
marr has quit [Ping timeout: 241 seconds]
mengu has quit [Ping timeout: 272 seconds]
crapple has joined #ruby
figgleberry has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
Mars has joined #ruby
vlad_starkov has joined #ruby
Mars is now known as Guest23232
drumusician has joined #ruby
tropicalmug has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
vlad_starkov has joined #ruby
cj3kim has quit [Ping timeout: 245 seconds]
frem has joined #ruby
drumusician has quit [Ping timeout: 240 seconds]
RoryHughes has quit []
<frem> I have a suspicion that somewhere in this huge project, an exception is being rescued which should not be rescued. is there a way to do such a terrible act as turning off all the rescues?
blarghmatey_ has joined #ruby
endash_ has quit [Quit: endash_]
gja has quit [Quit: This computer has gone to sleep]
Trynemjoel has quit [Ping timeout: 245 seconds]
diegoviola has quit [Quit: WeeChat 0.4.2]
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
Trynemjoel has joined #ruby
mmitchel_ has quit []
Hanmac1 has joined #ruby
cbetta is now known as cbetta_afk
butblack has quit [Quit: butblack]
mneorr_ has joined #ruby
Hanmac has quit [Ping timeout: 272 seconds]
mneorr has quit [Read error: Connection reset by peer]
afhammad has joined #ruby
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby
geggam_ has quit [Remote host closed the connection]
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
<pontiki> probably easer to grep for them
Hanmac has joined #ruby
<emocakes> ily pontiki
bean has joined #ruby
Guest23232 has quit [Remote host closed the connection]
Hanmac1 has quit [Ping timeout: 272 seconds]
boreliash has quit [Read error: Connection reset by peer]
boreliash has joined #ruby
centipedefarmer has joined #ruby
lnemo has joined #ruby
Tearan has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
kitak has joined #ruby
mneorr_ has quit [Remote host closed the connection]
lewix has quit [Remote host closed the connection]
mneorr has joined #ruby
gja has quit [Client Quit]
ace_striker has quit [Quit: Page closed]
falood has quit [Remote host closed the connection]
kitak has quit [Ping timeout: 245 seconds]
mneorr_ has joined #ruby
falood has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Read error: Connection reset by peer]
jkary has joined #ruby
gja has joined #ruby
havenwood has joined #ruby
gja has quit [Client Quit]
tropicalmug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mjburgess has quit [Ping timeout: 246 seconds]
joaoh82 has joined #ruby
nfk has quit [Quit: yawn]
smathieu has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
falood has quit [Remote host closed the connection]
Mars has joined #ruby
Mars is now known as Guest14306
smathieu has quit [Ping timeout: 272 seconds]
joaoh82 has quit [Ping timeout: 272 seconds]
banghouse has quit [Remote host closed the connection]
shedd has quit [Remote host closed the connection]
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
crapple has quit [Ping timeout: 246 seconds]
afhammad has quit [Read error: No route to host]
Iszak has quit [Quit: Textual IRC Client: www.textualapp.com]
afhammad has joined #ruby
Yarou has quit [Quit: This computer has gone to sleep]
DrShoggoth has joined #ruby
wallerdev has quit [Quit: wallerdev]
ehaliewicz has joined #ruby
afhammad has quit [Ping timeout: 240 seconds]
boreliash has quit [Quit: Leaving]
Guest14306 has quit [Remote host closed the connection]
falood has joined #ruby
jkary has quit [Quit: Leaving.]
crapple has joined #ruby
vlad_starkov has joined #ruby
cj3kim has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
emocakes has quit [Quit: Leaving...]
cj3kim has quit [Ping timeout: 272 seconds]
dru has joined #ruby
lewix has joined #ruby
aryaching_ has joined #ruby
aryaching has quit [Ping timeout: 272 seconds]
skulker has joined #ruby
lukec has quit [Quit: lukec]
Yarou has joined #ruby
Yarou has quit [Changing host]
Yarou has joined #ruby
blarghmatey_ has quit [Ping timeout: 252 seconds]
Deele has quit [Ping timeout: 260 seconds]
kate_r has joined #ruby
charliesome has joined #ruby
charliesome has quit [Client Quit]
tropicalmug has joined #ruby
shedd has joined #ruby
ehaliewicz has quit [Ping timeout: 252 seconds]
kate_r has quit [Ping timeout: 240 seconds]
Barrin6 has quit [Quit: Leaving]
gja has quit [Quit: This computer has gone to sleep]
kate_r has joined #ruby
jmo has joined #ruby
thumpba has joined #ruby
kate_r has quit [Read error: Connection reset by peer]
kate_r has joined #ruby
kate_r has quit [Max SendQ exceeded]
yacks has joined #ruby
shedd has quit [Ping timeout: 240 seconds]
jmo has quit [Ping timeout: 265 seconds]
thumpba has quit [Ping timeout: 252 seconds]
prc has left #ruby [#ruby]
Emmanuel_Chanel has quit [Quit: Leaving]
aryaching_ has quit [Ping timeout: 272 seconds]
charliesome has joined #ruby
radic has quit [Ping timeout: 272 seconds]
kate_r has joined #ruby
kate_r has quit [Max SendQ exceeded]
radic has joined #ruby
rm__ has quit [Remote host closed the connection]
rm_ has joined #ruby
kate_r has joined #ruby
kate_r has quit [Max SendQ exceeded]
timonv has joined #ruby
flubba has quit [Remote host closed the connection]
gquental has quit [Ping timeout: 246 seconds]
rm_ has quit [Ping timeout: 240 seconds]
tropicalmug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
braincrash has quit [Quit: bye bye]
tropicalmug has joined #ruby
kate_r has joined #ruby
timonv has quit [Read error: Operation timed out]
kate_r has quit [Max SendQ exceeded]
braincrash has joined #ruby
dogweather has joined #ruby
joaoh82 has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
kate_r has joined #ruby
rm_ has joined #ruby
smathieu has joined #ruby
aryaching has joined #ruby
Emmanuel_Chanel has joined #ruby
chrisan_x has quit [Ping timeout: 252 seconds]
byprdct has joined #ruby
tkuchiki has quit [Remote host closed the connection]
joaoh82 has quit [Ping timeout: 245 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki has joined #ruby
kate_r has quit [Ping timeout: 245 seconds]
smathieu has quit [Ping timeout: 272 seconds]
afhammad has joined #ruby
gquental has joined #ruby
bitri has joined #ruby
rm_ has quit []
bitri has quit [Max SendQ exceeded]
kate_r has joined #ruby
tkuchiki has quit [Ping timeout: 260 seconds]
rm_ has joined #ruby
shedd has joined #ruby
kate_r has quit [Ping timeout: 246 seconds]
brzycki has joined #ruby
carif has quit [Quit: Ex-Chat]
kate_r has joined #ruby
Vivekananda has quit [Read error: Connection reset by peer]
shedd has quit [Ping timeout: 272 seconds]
rickruby has joined #ruby
ewnd9 has joined #ruby
aspires has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
flubba has joined #ruby
skulker has quit [Remote host closed the connection]
cj3kim has joined #ruby
figgleberry has joined #ruby
postmodern has quit [Quit: Leaving]
Tearan has quit []
aspires has quit []
postmodern has joined #ruby
Mars has joined #ruby
Mars is now known as Guest71693
cj3kim has quit [Ping timeout: 272 seconds]
Guest71693 has quit [Ping timeout: 272 seconds]
aspires has joined #ruby
falood has quit [Remote host closed the connection]
qpls is now known as whereiswaldo
whereiswaldo is now known as qpls
kiba` has joined #ruby
Tearan has joined #ruby
lewix has quit [Remote host closed the connection]
Kiba has quit [Read error: Connection reset by peer]
kiba`` has joined #ruby
kiba` has quit [Read error: Connection reset by peer]
afhammad has quit [Ping timeout: 272 seconds]
lewix has joined #ruby
headgun has quit [Quit: edgepro: the future of irc :: (release:[v2.02.0101] - mirc:[v6.2] - url:[ www.edgepro.org ])]
bean has joined #ruby
bean has quit [Client Quit]
rhunter has quit [Remote host closed the connection]
grep_away is now known as grep_awesome
<ddd> HAPPY NEW YEAR!
<IceDragon> HAPPY NEW YEAR, FROM JAMAICA!
banghouse has joined #ruby
<IceDragon> and now to sleep
<IceDragon> good night
banghouse is now known as Guest76593
IceDragon has quit [Quit: Space~~~]
Guest76593 has quit [Read error: Operation timed out]
crapple has quit [Ping timeout: 240 seconds]
aryaching has quit [Ping timeout: 248 seconds]
kiba`` has quit [Read error: Operation timed out]
rm_ has quit [Remote host closed the connection]
rm_ has joined #ruby
joaoh82 has joined #ruby
figgleberry has quit [Ping timeout: 272 seconds]
smathieu has joined #ruby
aspires_ has joined #ruby
aspires has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
smathieu has quit [Ping timeout: 240 seconds]
joaoh82 has quit [Ping timeout: 272 seconds]
kurotor has joined #ruby
kurotor has quit [Client Quit]
afhammad has joined #ruby
crapple has joined #ruby
kurotor has joined #ruby
yacks has quit [Quit: Leaving]
dru has quit [Ping timeout: 272 seconds]
kurotor has quit [Remote host closed the connection]
threesome has quit [Ping timeout: 245 seconds]
afhammad has quit [Ping timeout: 246 seconds]
crapple has quit [Ping timeout: 248 seconds]
shedd has joined #ruby
crapple has joined #ruby
psyl0n has joined #ruby
rippa has joined #ruby
amclain has joined #ruby
rubyracer has joined #ruby
okinomo has quit [Ping timeout: 245 seconds]
shedd has quit [Ping timeout: 272 seconds]
kewubenduben has quit [Read error: Connection reset by peer]
pcfreak30 has quit [Remote host closed the connection]
rjhunter has joined #ruby
bentonrr has joined #ruby
mneorr_ has quit [Remote host closed the connection]
mneorr has joined #ruby
Seich has joined #ruby
figgleberry has joined #ruby
dru has joined #ruby
bentonrr has quit [Ping timeout: 265 seconds]
mneorr has quit [Ping timeout: 246 seconds]
aspires_ has quit []
psyl0n has quit []
lockyer has joined #ruby
lockyer has left #ruby [#ruby]
tharindu has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
aspires has joined #ruby
timonv has joined #ruby
jmo has joined #ruby
shedd has joined #ruby
niklasb has quit [Ping timeout: 252 seconds]
timonv has quit [Ping timeout: 272 seconds]
jmo has quit [Ping timeout: 272 seconds]
shedd has quit [Ping timeout: 246 seconds]
figgleberry has quit [Ping timeout: 245 seconds]
BrixSat has quit [Remote host closed the connection]
BrixSat has joined #ruby
LexicalScope has quit [Ping timeout: 252 seconds]
mneorr has joined #ruby
skulker has joined #ruby
havenwood has quit [Remote host closed the connection]
mneorr has quit [Ping timeout: 245 seconds]
tropicalmug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Megtastique has quit []
apeiros has quit [Remote host closed the connection]
Kricir has joined #ruby
apeiros has joined #ruby
dseitz has joined #ruby
apeiros has quit [Remote host closed the connection]
skulker has quit [Remote host closed the connection]
skulker has joined #ruby
zz_N00D has quit [Ping timeout: 264 seconds]
joaoh82 has joined #ruby
apeiros has joined #ruby
smathieu has joined #ruby
zz_CripperZ has joined #ruby
joaoh82 has quit [Ping timeout: 240 seconds]
skulker has quit [Ping timeout: 252 seconds]
smathieu has quit [Ping timeout: 240 seconds]
afhammad has joined #ruby
zz_CripperZ has quit [Quit: ZNC - http://znc.sourceforge.net]
DrShoggoth has quit [Quit: Leaving]
zz_CripperZ has joined #ruby
afhammad has quit [Ping timeout: 252 seconds]
tropicalmug has joined #ruby
tharindu has quit [Quit: Leaving...]
tharindu has joined #ruby
aspires has quit []
aryaching has joined #ruby
falood has joined #ruby
boreliash has joined #ruby
<boreliash> Hi! When I do: 10.step 1, -2 do |i| puts "#{i}, " end. Why does it returns me 10. Doesn't it supposed to return "nil" with a "puts"?
near77 has joined #ruby
<near77> hi
<near77> happy new year
<boreliash> near77, happy new year buddy!
<near77> im having a weird issue
<near77> im running a script /opt/token/ask.sh from commandline and it works well, but when calling it from system() or backlashes or %x[] it says command not found
Tearan has quit []
browndawg has joined #ruby
<near77> it works on a different ubuntu box, but not in this one
Yarou has quit [Quit: This computer has gone to sleep]
butblack has joined #ruby
<near77> its an ubuntu 12.04.3 LTS, Precise Pangolin..
aryaching has quit [Ping timeout: 246 seconds]
Wolland has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
<dseitz> how are you calling it?
<near77> never mind
<near77> I just replaced the script
<near77> and now it works
<near77> thanks anyways
<dseitz> okie :)
Seich has quit [Quit: Lingo - http://www.lingoirc.com]
tkuchiki has joined #ruby
Kiba has joined #ruby
tharindu has quit [Quit: Leaving...]
<lewix> boreliash: step returns self
agjacome has quit [Ping timeout: 246 seconds]
tharindu has joined #ruby
<boreliash> Lewix: so step returns the initial number. thks! Where or how have u come up with this answer?
croaky has joined #ruby
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
Tearan has joined #ruby
<lewix> boreliash: I knew it
grep_awesome is now known as grep_away
<lewix> boreliash: it can be confirmed in the doc
<lewix> boreliash: or you can simply deduct it with trials and errors
<boreliash> Lewix: ok thks! I will check that in the doc
<lewix> boreliash: what tutorial are you going through
falood has quit [Remote host closed the connection]
aspires has joined #ruby
<boreliash> Lewix: I,m doing in Ruby an old assignment that I had in java.
shedd has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<boreliash> Lewix : and I'm going over the book 'I love ruby' from Karthikeyan A K
near77 has quit [Quit: Page closed]
aspires has quit [Client Quit]
ayaz has joined #ruby
ayaz has quit [Changing host]
ayaz has joined #ruby
Xavier89 has joined #ruby
Xavier89 has left #ruby [#ruby]
rm_ has quit [Remote host closed the connection]
shedd has quit [Ping timeout: 272 seconds]
gja has quit [Quit: This computer has gone to sleep]
aryaching has joined #ruby
aspires has joined #ruby
gja has joined #ruby
mneorr has joined #ruby
banghouse has joined #ruby
banghouse is now known as Guest99593
okinomo has joined #ruby
tropicalmug has quit [Quit: Textual IRC Client: www.textualapp.com]
mneorr has quit [Ping timeout: 272 seconds]
Guest99593 has quit [Ping timeout: 248 seconds]
falood has joined #ruby
<pontiki> i was scanning the Learn Ruby the Hard Way, i thought it was a pretty good intro
joaoh82 has joined #ruby
okinomo has quit [Ping timeout: 248 seconds]
smathieu has joined #ruby
postmodern has quit [Quit: Leaving]
<ddd> i just picked up twgr 2d ed
<ddd> the meap
rickruby has quit [Remote host closed the connection]
afhammad has joined #ruby
smathieu has quit [Ping timeout: 252 seconds]
joaoh82 has quit [Ping timeout: 272 seconds]
<pontiki> what's available in the meap?
<ddd> covers ruby 2
gja has quit [Quit: This computer has gone to sleep]
<pontiki> i know this would never fly, but sometime i'd like to teach programming by starting with testing
<bnagy> pontiki: yeah I recommend it for people starting from absolute 0 ( no other programming lang )
<bnagy> but a lot of the style is Wrong
<bnagy> but mainly in later exercises, so w/e
<pontiki> it is basically writing BASIC in ruby syntax
<pontiki> which seems somewhat reasonable to me. that's where i started.
<pontiki> SO IT MUST BE RIGHT DAMMIT
<ddd> righ tnow its got chapters 1-8 covering bootstrapping ruby, objects, methods, and local vars, organizing objs with classes, modules, default obj (self), scope, and visibility, control-flow, built-in classes and modules, built-in essentials like constructors, Strings, symbols, and other scalar objects
<ddd> pontiki: there's like another 4 chapters iirc coming
<pontiki> yeah, ddd, i just peaked at the site
<ddd> ah
<ddd> sorry took me a bit to mine the TOC :)
<pontiki> nw :)
<bnagy> I still don't know what to recommend for experienced programmers who just want a fast start
<ddd> bnagy: the pickaxe probably
<bnagy> ruby from other languages page is not really enough
<pontiki> pickaxe 2.0, seriously
<ddd> or POODR
<bnagy> quickref doesn't cover general block philosophy etc that well
tharindu has quit [Quit: Leaving...]
<bnagy> pickaxe is way too much
<pontiki> too much... ??
<ddd> pontiki: i've that one too. but i find david's style a little easier to stick with
<pontiki> i don't mean, *read* the pickaxe -- it's a reference
<bnagy> I am invisioning like maximum 2 feet of text plus a link to the docs
<pontiki> oh, then just ruby-doc
samsonasu has joined #ruby
<ddd> bnagy: you killed off the only one i'd recommend. zen's qr
<bnagy> this is how we do blocks, here's the object philosophy
DrShoggoth has joined #ruby
<ddd> the only ones that get me that no book has explained well enough to get through my thick skull so it sticks are lambdas and proc
<ddd> i get procs are a sort of anonymous block but i lose it on how to use them right
<bnagy> not often
<pontiki> this is a pretty good place to pick up stuff: http://blog.rubybestpractices.com/
<bnagy> you use them for callbacks or polymorphic methods
<pontiki> old, but still good
<ddd> yeah i';ve read through that occasionally. usually still in the books, and occasionally grouse sites
rickruby has joined #ruby
<ddd> i do like practicing ruby
<pontiki> yup
<pontiki> love ruby tapas
<pontiki> i'm a total fangirl for avdi
<ddd> yeah thats another
<ddd> yeah me too
<bnagy> procs are total gold for callbacks because of the closure thing
<ddd> he's alittle over my head sometimes, but if i slow down quite a bit and really pick apart what he's saying i can get it
<pontiki> i can listen to him for hours
<ddd> bnagy: i'm really iffy on them
<ddd> pontiki: yeah he's got an easy style
<pontiki> closures?
<bnagy> yeah, procs are closures, ie they 'remember' all the local vars that were defined when they were created
<pontiki> yup
<bnagy> which is handy if you have say a client connection that's live at the time
rm_ has joined #ruby
<bnagy> which you want to send a response to
<bnagy> no need to save it in some huge stupid lookup
<ddd> more i work with ruby the mnore i realize i've only just begun to scratch the surface hehe
<pontiki> learning blocks, procs, and such things really made ruby sing
<pontiki> i was suddenly back in love, and with the things i loved about writing lisp
okinomo has joined #ruby
<ddd> i get blocks though i even waffle those occasionally, but procs .. meh
<bnagy> don't sweat it. If you avoid a few styles of proramming you could write ruby for years and never have a legit use-case that wasn't forced
croaky has quit [Ping timeout: 272 seconds]
<ddd> is there an agile book for rails like agile web development with rails 4? but specifically w/o the framework
<ddd> s/for rails/for ruby/
<pontiki> eh?
rm_ has quit [Ping timeout: 272 seconds]
<pontiki> oh
<pontiki> no
<ddd> pontiki: awdwr4 uses agile techniques using the rails 4 framework.
<pontiki> yeah, except, it doesn't
<ddd> was wondering if there was one for straight ruby (w/o rails)
<pontiki> what specific agile methods are you looking for?
<pontiki> pair programming? scrum? sprints?
<ddd> i've been at this for about 2 years with an 8 month break in that time from *all* coding. i'v enot really developed a workflow or stuck with a set of guidelines. i'm self taught and i don't work for a company (except myself).
<pontiki> right. nothing wrong with that
<ddd> there's tons of books about all different ways of working etc, and different styles of coding
<pontiki> most agile techniques are aimed at teams
<ddd> but i've not settled into anything. so trying to figure out a good way to set up a workflow for myself.
<pontiki> there was a guy at the SEI that was promoting a Personal Software Process
echevemaster has quit [Remote host closed the connection]
<ddd> i'm getting into writing a huge assed rails 4 app, and i've a large personal project i want to get back into working on. but i've no real.. flow? .. to how i work
<ddd> it feels really stilted
<pontiki> his approach was extreme IBM... but the concept is something i've appreciated
<ddd> but i don't know how to flatten it to be more productive
<pontiki> taking up the things that agile teaches: work in small spurts on small things
<ddd> isn't the IBM approach really just a suped up functional programming?
hexus0 has quit [Ping timeout: 240 seconds]
<pontiki> have an overall architecture, but don't be tied to it
<pontiki> no, lol
aspires has quit []
<pontiki> IBM is waterfall
<ddd> now see i don't even know what that is
zeade has joined #ruby
<pontiki> do *all* your specifications. then do *all* your archicture. then *all* your design. then you get to start your high level coding.
aspires has joined #ruby
<ddd> i mean i might, but w/o formalized training or schooling, idk if i do, and i've not heard many people talk about waterfall as a technique
<pontiki> then you get to do some low level coding. then you write tests.
<pontiki> etc etc
zeade has left #ruby [#ruby]
<ddd> oh, yeah see everyone's been drilling into me to write tests first
<pontiki> that's because it's quite deprecated now
<ddd> even if the tests are bogus (not to specs as in they say what to do but they're not actual rspec of minitest know what i mean?)
hexus0 has joined #ruby
<pontiki> i guess, for a personal process, i've never thought of writing it down
okinomo has quit [Ping timeout: 245 seconds]
<pontiki> there's three questions i try to ask and get answers for
<ddd> who what why?
<pontiki> sorta
<pontiki> 1. what do you want?
<pontiki> 2. why do you want it?
<pontiki> 3. how will you know when you have it?
<ddd> haha 1 is SO open ended :)
<pontiki> well, it can be
timonv has joined #ruby
<pontiki> but it's asked in a specific context
<ddd> i mean how 'simple' do you get?
sepp2k1 has quit [Read error: Connection reset by peer]
<ddd> do you write a super general overview? do you think of what you want and then break it into physical steps?
<ddd> etc
<pontiki> for a complete spec, there's like 6 more questions, which i'll avoid for now
<pontiki> no
<pontiki> it's just a conversation
L8D has quit [Ping timeout: 245 seconds]
<ddd> i mean i'd fit into a teram because i'd just adopt whatever they're doing. i just don't know how to properly define one for myself
<pontiki> there's tonnes of different ways to ask the questions
<ddd> s/teram/team/
<pontiki> that's totally fair
<pontiki> and not a bad way to go
<pontiki> at all
<pontiki> it's not like we leap from the womb knowing how to do this stuff
<ddd> hehe true
<ddd> i just expect to be more ahead in the game than i am because i've been around for almost 3 years (well a little under it)
<pontiki> i mean.. i began seriously working in sw dev in uni
<pontiki> and i was under scrutiny
<pontiki> told how to do things
<ddd> i feel just as stilted and disjointed as i did when i started
<pontiki> and same after graduating and working for a BIGCO
lethjakman has quit [Ping timeout: 252 seconds]
<pontiki> 5 years of uni; 5 more years working under people
<ddd> i work for myself. i got a d.b.a etc. and what i generally do is a tmux session with editor and pry or rails console in an opposite pane, couple other windows with logs and tests running. but as to the writing code or even the tests, there's no... pattern? to it
<pontiki> then i get into managemetn
<pontiki> big mistake that
<ddd> hell i still write craploads of stuff on paper or napkins lol
<pontiki> 5-6 more years as a lead
timonv has quit [Ping timeout: 252 seconds]
<pontiki> then 10 years as a process/change consultant
<pontiki> that's great!
<ddd> yeah see i got into programming really late. not until i turned 40
<pontiki> hold onto that!
<ddd> i'm 43 (recently)
<pontiki> i've seen so much crap done on graphics programs and powerpoints
<ddd> so it feels like playing catchup
<pontiki> and photoshop layouts
<ddd> the younger guys just seem to flow right into it all
<pontiki> yeah, i get it
<pontiki> some ppl are faster at getting stuff
<pontiki> but you know, there's lots of people who *don't*. a lot more than do
<ddd> lol, i was using visio for awhile to define stuff, my java class required it. but the program got in my way more than it helped
<pontiki> that^
<pontiki> i do my designs on paper
Wolland has joined #ruby
<pontiki> i can whip up a quick mock up on paper and show someone on my camera faster than anyone would in any graphics tool
<ddd> hehe i see people talking in here and i'll ask a questionand feel totally dumb for asking it because they explain it so simply and i look at it going oh shit, why didn't i see that?
<pontiki> there's a threshhold of knowledge and experience to get over
<ddd> yeah i like doing the mocks
<pontiki> how many languages have you worked with?
<ddd> C, C++, C#, and java though only C intensely
<pontiki> nod, good
<ddd> and that was WAY back
<ddd> (the C)
<pontiki> my C is from the 80s :)
<ddd> te java was about 6 months ago. just transiently
afhammad has quit [Ping timeout: 252 seconds]
<pontiki> Duran Duran C
<ddd> yeah thats about mine. 88 or so
<ddd> i was about 18 or 19
<pontiki> i'm not saying you'll have an epiphany
<pontiki> but it seems to happen with most people who spend a lot of time working on an area of practice
<ddd> i'm a hell of an administrator. thats where computers took *me*, but now i want to program. i like it, its fun when i get into a zone, just hard to get 'there'
<ddd> yeah admining was my area
<pontiki> sorry, what sort of admining?
<ddd> HA clusters, couple beuwolfs. mostly ldirectord and piranha stuff. lots of NT server, lotus notes and stuff
Wolland has quit [Ping timeout: 240 seconds]
<ddd> then got really heavy into linux systems
<pontiki> great, sys/net admining
<ddd> yeah
<pontiki> i mean, you could have been a hospital administrator for all i know...
<ddd> ah i get what you meant now
<pontiki> nw
<pontiki> i know for certain i'm an outlier in a lot of ways. i do this for fun as well as a living.
thumpba has joined #ruby
<pontiki> and look for ways i can write a program
tharindu has joined #ruby
<pontiki> and write programs that write programs if need be :>
<ddd> yeah, no. i was a systems administrator. biggest was handling a 4800 node db cluster backing a 100 node web farm for a company called QiXo back in the day
<pontiki> but i'm not really a stellar programmer
shedd has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jmo has joined #ruby
<ddd> i'm trying to get into it for a living. i gave up computers except for personal for a long time and went into the Army. went overseas, got hurt. physical labor jobs are out as a result of injuries, so i'm really trying to reinvent myself
<pontiki> i understand a lot of stuff theoretically, and a bit of stuff in the practical
<pontiki> but i'm still looking up stuff alla time
<dseitz> ddd: Sounds a bit like my story; a lot of companys wouldn't give me a chance without a degree
<dseitz> Interviews felt like coaching sessions lol
<ddd> i'm far from an idiot, and i like computing. i've always nibbled at programming. now this late in the game i'm trying to actually become one
<pontiki> dseitz: which is totally bogus
<ddd> dseitz: yeah
<dseitz> I agree; but it is a reality with some organizations
<pontiki> i don't really know anyone coming out with a BS CS that actually knows how to do commercial development
<pontiki> ddd, i'm 56
<dseitz> CS wasn't recommended, they just required a degree
<dseitz> a really specific check box
<pontiki> i'm back in the ruby/rails game in a big way since last year (2012 i mean)
<ddd> i watch a lot of the conf vids, watch MS's programming vids, etc. i see they have processes in place, and what i can glean from the vidds i try to inject into my own life, but its all hodge podge. nothing really flows
<ddd> drives me nuts
<pontiki> like anything, it does take a while
<pontiki> let me give an analogy?
<ddd> and then taking the 8 month break from doing *any* codding at all really hurt because i forgot so much of what i was *just* learning. didn't have time to stick to the walls so to speak
thumpba has quit [Ping timeout: 240 seconds]
<pontiki> i've always been the artistic one
<ddd> so feels like i'm back at square 2
<pontiki> i could manage drawing, a little painting, markers, and stuff
jmo has quit [Ping timeout: 240 seconds]
<pontiki> but i started taking watercolor painting classes a few years ago with my parents
shedd has quit [Ping timeout: 252 seconds]
<pontiki> omg did i not know anything
<ddd> hehe
<dseitz> lol
tharindu has quit [Ping timeout: 272 seconds]
<pontiki> and did i not know *how* to do anything
rm_ has joined #ruby
<pontiki> i'm *still* struggling
<pontiki> there are things i *cannot* do (water, glass, buildings)
skulker has joined #ruby
<pontiki> i'm okay with flowers and trees
<pontiki> landscapey and still life things
<ddd> yeah thats how i feel with ruby. i mean i have a good handle on the language in general, very few of the libraries that come with it, but i could struggle through, it just really feels lacking in the *how* department. know what i mean?
<pontiki> 4 years
<pontiki> i still don't know how to *make* a painting, you know?
<ddd> i can do birds! does that count? ;)
<pontiki> yes!
<ddd> yeah
<pontiki> i can't!
<pontiki> my birds are laughably bad
<bnagy> depends at what distance you're painting them
<pontiki> animals, figures, not good
<ddd> remember that guy from PBS with the wacky hair? bob something? did all the pil painting?
<pontiki> YES
<ddd> i watched him a LOT. tried my hand like crazy at every painting he ever showed that i watched
<ddd> man.. you SO did NOT want to see my work hehe
<pontiki> crikey, now all i can think of is Bob Villa, but he was the home improvement guy
<ddd> yeah
<dseitz> ddd: I call Dash my brain; I don't work to well without it lol
<ddd> can't for the life of me remember his name, but i do remember the hair! :)
<ddd> dseitz: hahaha
<pontiki> but the point i'm making is that is *does* take time to aquire the ... *mindset*
<pontiki> that's the word
<bnagy> Bob Ross?
<ddd> yeah!
<pontiki> YUS
<ddd> thats him!
Tearan has quit []
<pontiki> thank you bnagy
<ddd> yes thank you
* bnagy googled 'bob crazy hair painter'
<ddd> hahahaha
<pontiki> mousemind <^)~
<pontiki> noshit?? lol
<ddd> too funny
<pontiki> "happy little trees"
<ddd> yeppers
<pontiki> that'd bring him up
<ddd> bwahahaha that is too damned funny
<pontiki> anyway
<pontiki> long way around to say "don't give up!"
<ddd> pontiki: see this is why i've never applied for a real programmer job, even entry level where they expect you not to know shit
klaut has joined #ruby
<pontiki> oh man, wrong way
skulker has quit [Ping timeout: 246 seconds]
<pontiki> if you have a job, you *will* get this stuff
<dseitz> Is there any organizations offering training?
<pontiki> taking a class is huge motivation to learn paining
<ddd> dseitz: there are some, but that takes cash a military disability just will not allow
<pontiki> having a *job* is *dire* motivation
<dseitz> That's how I got my foot in the door; I did some paid internship
<ddd> pontiki: yeah but at the same time you put the job in jeopardy, and the team you're working with
<pontiki> why i think *i* came out of uni being able to do dev work is that my uni slave labour job was contract programming
<pontiki> magic happens
<ddd> i don't want to screw up a team and their time table for stuff because *I* don't have confidence in whatever ability i have
<pontiki> because you find things you can do
<pontiki> and you find ways of working with the team that helps them
<pontiki> testing
<pontiki> doc writing
<pontiki> all that shit
<pontiki> is IMPORTANT
<pontiki> and you do learn
<ddd> actually test writing has made my DAMNED good money
<ddd> backporting is what i've done
mneorr has joined #ruby
<dseitz> Testing is a good way in
<ddd> dropping tests into an existing app that didn't have any. i've done quite a bit of that
<bnagy> mm tests and docs
<pontiki> yeah
<bnagy> shit _I_ would just about pay someone to do that :)
<dseitz> Although you'll be shocked how few firms use agile lol
<ddd> telecommuting work. paid the bills a few months on that
<pontiki> i'm doing that on this gig, but it's because i need tests for what i'm developing
rm_ has quit [Ping timeout: 260 seconds]
<pontiki> more places say the use agile than use agile
<pontiki> but the business world, and the tech world i'm most familiar, is full of cargo culting
<dseitz> Indeed. The first place I worked for, the app was designed, specs were provided, you made the app and nothing more
<dseitz> and you moved on
<ddd> right now, i'm working on a rails 4 app. I can do everything i need in the console. I can write all the ruby scripts i need to be able to do the app. AR associations etc. but this framework, the framework is killing me
<dseitz> no tdd/bdd
<pontiki> there are a lot of shops like that
<pontiki> i think i'm blowing a lot of people's minds at this place
<dseitz> if there was no major issue reports from the client, our side of the shop dropped support after 2 weeks
<dseitz> 2 weeks... lol
<pontiki> and i'm like, wut?
<pontiki> wow lol
<ddd> i can write the model tests, i can write tests to call scripts that do what i need no problem. i just can not get the fucking rails way into my head so i flop when i try to write the controllers right ect.
<pontiki> well, it's a business model
<ddd> that make sense? and how fucked is *that*?!
<pontiki> sure, ddd
<pontiki> it's not fucked
browndawg has quit [Read error: No route to host]
<pontiki> routing is not that straight-forward a concept
browndawg has joined #ruby
<dseitz> rails tutorial was a blessing for me
<ddd> pontiki: github.com/dtf-gems/dtf
<ddd> that was my first attempt at writing a framework for rvm to test rvm installs, be able to replay the tests later on, etc
phansch has joined #ruby
<ddd> its not the greatest code, but you can see i have a 'decent' knowledge of ruby at least.
charliesome has joined #ruby
<ddd> and i've gotten better on the backend.,
<ddd> but this fucking rails shit.. holy cow
<pontiki> i just read the README. i am *impressed*
<ddd> eh anyone can write a readme, the code is the meat :)
mneorr has quit [Ping timeout: 272 seconds]
<pontiki> no, seriously, that is NOT true
<pontiki> i mean, yes, the code counts
browndawg has quit [Read error: Connection reset by peer]
Tearan has joined #ruby
<pontiki> but most devs cannot write a README that makes any sense
<ddd> and yeah i know people in her ecould and would tear apart what i wrote and do it probably a 100 times better. but for only having had 4 or 5 months of ruby knowledge when i wrote it..
<ddd> i thought it was pretty good :)
<pontiki> but that's okay!
<dseitz> Well that's fine
<dseitz> I always look at my past work and I'm like "wtf?? really guy??"
browndawg has joined #ruby
<ddd> hehe
<pontiki> the day i stop learning, or needing to learn, is like 10 days after my corpse has rotted away
<ddd> dtf is the large personal project i said i wanted to get back into
joaoh82 has joined #ruby
<ddd> the whole suite
<dseitz> I retain C++ pretty well, I think it's because there is no concept of code reuse (I consider it a myth in C++ world, beyond a few good examples)
smathieu has joined #ruby
<ddd> yeah god please kill me the day i stop learning. because life is over when that happens
<ddd> i may be thick skulled at times and a bit dim witted occasionally, but if i ever just stop learning, shoot me
browndawg has quit [Read error: No route to host]
<pontiki> no code reuse in C++?
Solnse has quit [Remote host closed the connection]
<pontiki> how's that work?
<ddd> c++ is all about code reuse
<pontiki> everyone writes the same date classes over and over again?
<ddd> object conceptualization and code reuse
<dseitz> The idea of writing generic code in C++ is a fascinating myth. The reality is, no one does it.
browndawg has joined #ruby
<pontiki> huh
<ddd> are you talking Generic or 'generic'?
Tearan has quit [Read error: Connection reset by peer]
<pontiki> it's been ages since i worked in C++
mansi_ has joined #ruby
<pontiki> i think the myth of code reuse, though, can be found lots of places
<ddd> i think he's talking about the Generic (<I>)
<dseitz> lol
<dseitz> Yeah, that's very true.
<pontiki> you get into a rails shop that is run by scared managers needing to meet unreasonable demands of the founders/cclients, you'll see the same thing
afhammad has joined #ruby
lethjakman has joined #ruby
<ddd> from a reuse perspective, i'd *rather* write ode I can reuse over and over in other projedts
<pontiki> this current project i'm on, one guy did it at first, and it was a "get it done in a month" thing
<ddd> err projects. if i can cut down on how much i have to do over and over ad nausium, i'd be immensely happy
<pontiki> so no tests, no architecture
joaoh82 has quit [Ping timeout: 252 seconds]
<pontiki> i'm currently looking at three different areas using datatables, where there is tons of duplciated functionality
smathieu has quit [Ping timeout: 248 seconds]
<pontiki> and structures put in that are never used
<pontiki> bridge to nowhere stuff
<pontiki> but it's what i would have done, too, given the time pressures
<pontiki> but this shit is *fun*
<pontiki> it sounds like complaining, but it's not. it's thrilling
mansi_ has quit [Ping timeout: 272 seconds]
<ddd> yeah, side note, don't take what i'm saying as me complaining. its frustrating, but its fun as hell at the same time
<dseitz> I read an article the other day that made me laugh.. something like "DRY is bad for your wallet. Copy & Pasting and updating the same code at 150 different locations is job security."
<ddd> hah, i've seen a ton of articles like that
<dseitz> It was like "Why PHP will always be better than everything else"
afhammad has quit [Ping timeout: 272 seconds]
ewnd9 has quit [Remote host closed the connection]
lnemo has quit [Ping timeout: 246 seconds]
<dseitz> Which I hold no direct opinion of. I never learned the language. I got into using Perl for CGI
byprdct has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dgx has joined #ruby
byprdct has joined #ruby
Tearan has joined #ruby
mengu has joined #ruby
tropicalmug has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tropicalmug has quit [Client Quit]
tkuchiki has joined #ruby
Hanmac1 has joined #ruby
Inoperable has quit [Quit: Rectified]
mengu has quit [Ping timeout: 260 seconds]
butblack has quit [Ping timeout: 248 seconds]
butblack has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
Hanmac has quit [Ping timeout: 272 seconds]
kevinfagan has quit [Ping timeout: 245 seconds]
falten has quit [Ping timeout: 252 seconds]
amclain has quit [Quit: Leaving]
KevinSjoberg has quit [Ping timeout: 272 seconds]
browndawg has quit [Read error: No route to host]
timmow has quit [Ping timeout: 260 seconds]
abstractj has quit [Ping timeout: 248 seconds]
browndawg has joined #ruby
falten has joined #ruby
kevinfagan has joined #ruby
KevinSjoberg has joined #ruby
timmow has joined #ruby
<ddd> hehe brain dumped to poor pontiki and i think i scared her off lol
abstractj has joined #ruby
Hanmac has joined #ruby
<pontiki> sometimes i need to go to the bathroom :P
<ddd> hahaha
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
browndawg has quit [Read error: Connection reset by peer]
Hanmac1 has quit [Ping timeout: 246 seconds]
<ddd> my turn :)
browndawg has joined #ruby
kewubenduben has joined #ruby
<pontiki> i'm a trendsetter
rickruby has quit [Remote host closed the connection]
<ddd> hehehe
browndawg has quit [Client Quit]
browndawg has joined #ruby
browndawg has quit [Client Quit]
browndawg1 has joined #ruby
<pipecloud> dseitz: lul
browndawg1 has quit [Client Quit]
browndawg has joined #ruby
browndawg has quit [Read error: No route to host]
browndawg has joined #ruby
gja has joined #ruby
rickruby has joined #ruby
shedd has joined #ruby
tharindu has joined #ruby
dogweather has quit [Remote host closed the connection]
dogweather has joined #ruby
dogweather has quit [Read error: Connection reset by peer]
dogweath_ has joined #ruby
shedd has quit [Ping timeout: 246 seconds]
dgx has quit [Quit: Leaving]
tharindu has quit [Ping timeout: 240 seconds]
gasbakid has joined #ruby
rm_ has joined #ruby
frxx has joined #ruby
banghouse has joined #ruby
banghouse is now known as Guest24547
mneorr has joined #ruby
rm_ has quit [Ping timeout: 252 seconds]
frx has quit [Ping timeout: 245 seconds]
Tearan has quit []
hl has quit [Ping timeout: 260 seconds]
Guest24547 has quit [Ping timeout: 240 seconds]
hl has joined #ruby
okinomo has joined #ruby
mneorr has quit [Ping timeout: 246 seconds]
joaoh82 has joined #ruby
afhammad has joined #ruby
smathieu has joined #ruby
browndawg has quit [Read error: Connection reset by peer]
mansi_ has joined #ruby
joaoh82 has quit [Ping timeout: 246 seconds]
aspires has quit []
smathieu has quit [Ping timeout: 252 seconds]
mansi_ has quit [Ping timeout: 265 seconds]
lewix has quit [Remote host closed the connection]
ewnd9 has joined #ruby
aspires has joined #ruby
shedd has joined #ruby
<dogweath_> Anyone using 2.1.0?
<pontiki> not yet
dogweath_ has quit []
Monie has joined #ruby
dogweather has joined #ruby
<Hanmac> 2.1.0 is so 2013 ... i am using 2.2trunk ;P
<pontiki> you maverick, you
shedd has quit [Ping timeout: 252 seconds]
Monie has quit [Client Quit]
timonv has joined #ruby
charliesome has joined #ruby
<pipecloud> dominikh: I build off HEAD daily. I use 2.0 at work, and we're evaluating 2.1 for the time being.
<dominikh> interesting!
<pipecloud> We'd like to miss out on the fun of finding bugs in a new release for once.
<dominikh> yet the wrong nick :P
mbytes has joined #ruby
<pipecloud> dominikh: You're right! Sorry.
browndawg has joined #ruby
<pipecloud> dogweather: ^
rubyracer has quit [Quit: Konversation terminated!]
cj3kim has joined #ruby
tt1187 has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
aspires has quit [Ping timeout: 240 seconds]
bauerbob has joined #ruby
cj3kim has quit [Ping timeout: 252 seconds]
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
spacemud has quit [Ping timeout: 260 seconds]
L8D has joined #ruby
spacemud has joined #ruby
mbytes has quit [Ping timeout: 245 seconds]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
h0rrorvacui has quit [Ping timeout: 245 seconds]
teenwolf has quit [Remote host closed the connection]
L8D has quit [Ping timeout: 272 seconds]
lukec has joined #ruby
okinomo has quit [Ping timeout: 265 seconds]
skulker has joined #ruby
relix has joined #ruby
skaflem has joined #ruby
skulker has quit [Ping timeout: 252 seconds]
shedd has joined #ruby
jmo has joined #ruby
bauerbob has quit [Ping timeout: 252 seconds]
tharindu has joined #ruby
nisstyre has quit [Quit: Leaving]
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
jmo has quit [Ping timeout: 240 seconds]
shedd has quit [Ping timeout: 272 seconds]
tharindu has quit [Ping timeout: 252 seconds]
prezJFK has joined #ruby
prezJFK has quit [Remote host closed the connection]
rm_ has joined #ruby
vongrippen has quit [Read error: Operation timed out]
mdpatrick has quit [Read error: Operation timed out]
aryaching has quit [Ping timeout: 248 seconds]
mneorr has joined #ruby
rm_ has quit [Ping timeout: 272 seconds]
kraljev1 has joined #ruby
<kraljev1> Hey guys, first of all, happy new year!
<kraljev1> Where can I find a more general tokenizer, Ripper is not ok:
<kraljev1> Ripper.tokenize "SELECT 1+2 AS sum"
<kraljev1> => ["SELECT", " ", "1", "+", "2", " ", "AS"]
lukec has quit [Quit: lukec]
kep has joined #ruby
wildroman2 has joined #ruby
mdpatrick has joined #ruby
vongrippen has joined #ruby
madb055 has joined #ruby
mneorr has quit [Ping timeout: 272 seconds]
joaoh82 has joined #ruby
smathieu has joined #ruby
aryaching has joined #ruby
robbyoconnor has quit [Excess Flood]
butblack has quit [Quit: butblack]
robbyoconnor has joined #ruby
kure__ has joined #ruby
mansi_ has joined #ruby
cow_ has joined #ruby
kure_ has quit [Ping timeout: 252 seconds]
joaoh82 has quit [Ping timeout: 252 seconds]
smathieu has quit [Ping timeout: 265 seconds]
mansi_ has quit [Ping timeout: 252 seconds]
wildroman2 has quit [Remote host closed the connection]
okinomo has joined #ruby
banghouse has joined #ruby
banghouse is now known as Guest32579
lkba has quit [Ping timeout: 265 seconds]
lethjakman has quit [Ping timeout: 260 seconds]
jamesaxl has joined #ruby
_honning_ has joined #ruby
phipes has joined #ruby
shedd has joined #ruby
joaosa_ has joined #ruby
mneorr has joined #ruby
sayan has joined #ruby
joaosa has quit [Ping timeout: 272 seconds]
shedd has quit [Ping timeout: 240 seconds]
<Hanmac> shevy did you see this? they use bad necromancy to revive dead versions https://www.ruby-lang.org/en/news/2013/12/17/maintenance-of-1-8-7-and-1-9-2/
Tearan has joined #ruby
banister has joined #ruby
afhammad has quit [Remote host closed the connection]
Tearan has quit []
RoryHughes has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
okinomo has quit [Ping timeout: 245 seconds]
boreliash has quit [Quit: Leaving]
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
colonolGron has joined #ruby
<pipecloud> Hanmac: yup.
<pipecloud> I'd rather they let it die.
mneorr has quit [Ping timeout: 240 seconds]
nisstyre has joined #ruby
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby
postmodern has joined #ruby
alvinsj has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wildroman2 has joined #ruby
shedd has joined #ruby
tharindu has joined #ruby
charliesome has joined #ruby
<kraljev1> Anybody know anything about my question?
Tearan has joined #ruby
<Hanmac> kraljev1 it smells that Ripper is not designed to parse SQL code ...
<Hanmac> kraljev1: "Ripper is a Ruby script parser." >> http://www.ruby-doc.org/stdlib-2.1.0/libdoc/ripper/rdoc/Ripper.html
guardianx has joined #ruby
<Hanmac> to highlight it: "Ripper is a »»Ruby«« script parser."
shedd has quit [Ping timeout: 265 seconds]
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
tharindu has quit [Ping timeout: 248 seconds]
rm_ has joined #ruby
nouitfvf has joined #ruby
max96at has joined #ruby
_honning_ has quit [Ping timeout: 260 seconds]
nouitfvf_ has quit [Ping timeout: 248 seconds]
rm_ has quit [Ping timeout: 245 seconds]
afhammad has joined #ruby
m8 has joined #ruby
tharindu has joined #ruby
kitak has joined #ruby
yacks has joined #ruby
kitak has quit [Remote host closed the connection]
claymore has joined #ruby
joaoh82 has joined #ruby
smathieu has joined #ruby
dru has quit [Ping timeout: 240 seconds]
mneorr has joined #ruby
<shevy> Hanmac I thought 1.8 was dead
foobarro has joined #ruby
<Hanmac> i thought that too! »The night of the living dead ruby version«
mansi_ has joined #ruby
lkba has joined #ruby
lowski has joined #ruby
mercwithamouth has quit [Quit: Lost terminal]
timonv has joined #ruby
joaoh82 has quit [Ping timeout: 246 seconds]
madb055 has quit [Ping timeout: 248 seconds]
smathieu has quit [Ping timeout: 245 seconds]
mneorr has quit [Ping timeout: 272 seconds]
mansi_ has quit [Ping timeout: 272 seconds]
<Hanmac> kraljev1: CodeRay has a SQL parser
timonv has quit [Ping timeout: 252 seconds]
mehlah has joined #ruby
<shevy> pontiki hey if you were a zombie, you could still learn after you would be dead!
gwb3 has quit [Quit: leaving]
gwb3 has joined #ruby
jmimi has joined #ruby
gwb3 has quit [Client Quit]
nisstyre has quit [Quit: Leaving]
gwb3 has joined #ruby
gwb3 has quit [Changing host]
gwb3 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
phipes has quit [Remote host closed the connection]
nouitfvf has quit []
lowski is now known as lowski_away
wildroman2 has quit [Ping timeout: 272 seconds]
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby
falood has quit [Remote host closed the connection]
skulker has joined #ruby
Mars has joined #ruby
Mars is now known as Guest74636
afhammad has quit [Remote host closed the connection]
afhammad has joined #ruby
<pipecloud> Hanmac: I pretend that they killed 1.8.7 on my birthday as a present for me.
Hanmac1 has joined #ruby
tharindu has quit [Quit: Leaving...]
alvinsj has quit [Remote host closed the connection]
aryaching has quit [Ping timeout: 260 seconds]
Hanmac has quit [Ping timeout: 248 seconds]
aryaching has joined #ruby
skulker has quit [Ping timeout: 260 seconds]
lowski_away has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest74636 has quit [Ping timeout: 240 seconds]
falood has joined #ruby
lowski has joined #ruby
decoponio has joined #ruby
Kricir has quit [Remote host closed the connection]
samsonasu has quit [Quit: samsonasu]
timonv has joined #ruby
lowski is now known as lowski_away
rubyracer has joined #ruby
spider-mario has joined #ruby
rurban has quit [Read error: Connection timed out]
rurban has joined #ruby
Hanmac has joined #ruby
eka has joined #ruby
thumpba has joined #ruby
Hanmac1 has quit [Ping timeout: 272 seconds]
aryaching has quit [Ping timeout: 245 seconds]
mrnugget has joined #ruby
jmo has joined #ruby
shedd has joined #ruby
lowski_away has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aryaching has joined #ruby
lowski has joined #ruby
shedd has quit [Ping timeout: 240 seconds]
jmo has quit [Ping timeout: 272 seconds]
lowski is now known as lowski_away
thumpba has quit [Ping timeout: 272 seconds]
shime has joined #ruby
rm_ has joined #ruby
cbetta_afk is now known as cbetta
timonv has quit [Remote host closed the connection]
skulker has joined #ruby
chrisan has joined #ruby
rm_ has quit [Ping timeout: 246 seconds]
Tearan has quit []
<shevy> pipecloud they did not :(
Tearan has joined #ruby
<pipecloud> They did, but evidently the 1.8.7 will rise again.
assurbanipal has joined #ruby
Tearan has quit [Client Quit]
Tearan has joined #ruby
Tearan has quit [Client Quit]
joaoh82 has joined #ruby
krz has joined #ruby
krz has quit [Changing host]
krz has joined #ruby
smathieu has joined #ruby
mneorr has joined #ruby
mansi_ has joined #ruby
Mon_Ouie has joined #ruby
Tearan has joined #ruby
drumusician has joined #ruby
udoprog1 has joined #ruby
smathieu has quit [Ping timeout: 245 seconds]
joaoh82 has quit [Ping timeout: 252 seconds]
Deele has joined #ruby
Tearan has quit [Read error: Connection reset by peer]
mansi_ has quit [Ping timeout: 265 seconds]
mneorr has quit [Ping timeout: 272 seconds]
Tearan has joined #ruby
Tearan has quit [Client Quit]
mzdravkov has joined #ruby
drumusician has quit [Remote host closed the connection]
joaoh82 has joined #ruby
udoprog1 has quit [Read error: Connection reset by peer]
udoprog1 has joined #ruby
shedd has joined #ruby
drumusician has joined #ruby
Tearan has joined #ruby
foobarro has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
tyl has joined #ruby
Tearan has quit [Client Quit]
shedd has quit [Ping timeout: 248 seconds]
Tearan has joined #ruby
mrnugget has quit [Quit: mrnugget]
mojjojo has joined #ruby
marwinis1 has quit [Ping timeout: 264 seconds]
Tearan has quit [Client Quit]
wildroman2 has joined #ruby
lyanchih_ has joined #ruby
aryaching_ has joined #ruby
mojjojo has quit [Quit: mojjojo]
wildroman2 has quit [Ping timeout: 245 seconds]
udoprog1 has quit [Ping timeout: 240 seconds]
lowski_away is now known as lowski
udoprog1 has joined #ruby
mojjojo has joined #ruby
vlad_starkov has joined #ruby
colonolGron has quit [Ping timeout: 260 seconds]
aryaching has quit [Ping timeout: 252 seconds]
mojjojo has quit [Client Quit]
ewnd9 has quit [Ping timeout: 252 seconds]
mojjojo has joined #ruby
lyanchih_ has quit [Quit: lyanchih_]
cow_ has quit [Remote host closed the connection]
rushpixy has joined #ruby
marwinism has joined #ruby
mrnugget has joined #ruby
shedd has joined #ruby
t_p has joined #ruby
ion- has quit [Quit: Leaving]
eka has quit [Quit: Computer has gone to sleep.]
mrnugget has quit [Client Quit]
flubba has quit [Remote host closed the connection]
shedd has quit [Ping timeout: 240 seconds]
Tearan has joined #ruby
Tearan has quit [Client Quit]
kirun has joined #ruby
rm_ has joined #ruby
Tearan has joined #ruby
Tearan has quit [Client Quit]
flubba has joined #ruby
Hobogrammer has quit [Ping timeout: 245 seconds]
t_p has quit [Ping timeout: 272 seconds]
drumusician has quit [Read error: Connection reset by peer]
Tearan has joined #ruby
Tearan has quit [Client Quit]
Wolland has joined #ruby
Tearan has joined #ruby
Hanmac1 has joined #ruby
mojjojo has quit [Quit: mojjojo]
Tearan has quit [Client Quit]
rm_ has quit [Ping timeout: 240 seconds]
drumusician has joined #ruby
Hanmac has quit [Ping timeout: 272 seconds]
Tearan has joined #ruby
brzycki has quit [Remote host closed the connection]
Advocation has joined #ruby
Tearan has quit [Client Quit]
skulker has quit [Remote host closed the connection]
Tearan has joined #ruby
schreceng has joined #ruby
Tearan has quit [Client Quit]
Tearan has joined #ruby
cow_ has joined #ruby
Tearan has quit [Client Quit]
kitak has joined #ruby
Tearan has joined #ruby
Tearan has quit [Client Quit]
smathieu has joined #ruby
mneorr has joined #ruby
mansi has joined #ruby
mojjojo has joined #ruby
skulker has joined #ruby
Tearan has joined #ruby
Tearan has quit [Client Quit]
agjacome has joined #ruby
popl has quit [Quit: And then there are people who prefer to look their fate in the eye.]
mojjojo has quit [Client Quit]
Tearan has joined #ruby
smathieu has quit [Ping timeout: 245 seconds]
mansi has quit [Ping timeout: 252 seconds]
Tearan has quit [Client Quit]
mneorr has quit [Ping timeout: 260 seconds]
Tearan has joined #ruby
Tearan has quit [Client Quit]
mojjojo has joined #ruby
afhammad has quit [Remote host closed the connection]
okinomo has joined #ruby
flubba has quit [Remote host closed the connection]
flubba has joined #ruby
dwerwerio2 has joined #ruby
SeySayux has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
shedd has joined #ruby
udoprog1 has quit [Ping timeout: 272 seconds]
dwerwerio2 has quit [Quit: Leaving]
Hanmac has joined #ruby
SeySayux has joined #ruby
mojjojo has quit [Quit: mojjojo]
monkegjinni has joined #ruby
Hanmac1 has quit [Ping timeout: 252 seconds]
Guest32579 has quit [Remote host closed the connection]
falood has quit [Remote host closed the connection]
browndawg has quit [Quit: Leaving.]
shedd has quit [Ping timeout: 260 seconds]
mojjojo has joined #ruby
falood has joined #ruby
olivier_bK has joined #ruby
gasbakid has quit [Read error: Connection reset by peer]
mansi_ has joined #ruby
grn has quit [Ping timeout: 245 seconds]
lowski has quit [Ping timeout: 252 seconds]
TheNumb has quit [Max SendQ exceeded]
bauerbob has joined #ruby
TheNumb has joined #ruby
ewnd9 has joined #ruby
lowski has joined #ruby
carraroj has joined #ruby
dapz has joined #ruby
udoprog1 has joined #ruby
jmo has joined #ruby
alvinsj has joined #ruby
klip has quit [Remote host closed the connection]
mjburgess has joined #ruby
mjburgess has quit [Client Quit]
skulker has quit [Remote host closed the connection]
jmo has quit [Ping timeout: 240 seconds]
Hanmac1 has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
Linux_Extremist has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
jamesaxl has joined #ruby
Hanmac has joined #ruby
okinomo has quit [Ping timeout: 265 seconds]
Hanmac1 has quit [Ping timeout: 240 seconds]
mojjojo has quit [Quit: mojjojo]
mojjojo has joined #ruby
drumusician has quit [Ping timeout: 245 seconds]
shedd has joined #ruby
skulker has joined #ruby
alvinsj has quit [Remote host closed the connection]
danshultz has joined #ruby
Advocation has quit [Quit: Advocation]
shedd has quit [Ping timeout: 246 seconds]
lyanchih has joined #ruby
rm_ has joined #ruby
L8D has joined #ruby
tt1187 has quit [Ping timeout: 248 seconds]
klaut has quit [Remote host closed the connection]
jkary has joined #ruby
rm_ has quit [Ping timeout: 240 seconds]
OdNairy has joined #ruby
kitak has quit [Remote host closed the connection]
wildroman2 has joined #ruby
jkary has quit [Ping timeout: 260 seconds]
mojjojo has quit [Quit: mojjojo]
wildroman2 has quit [Remote host closed the connection]
jkary has joined #ruby
wildroman2 has joined #ruby
jamesaxl has quit [Ping timeout: 272 seconds]
smathieu has joined #ruby
mneorr has joined #ruby
mojjojo has joined #ruby
freerobby has joined #ruby
jamesaxl has joined #ruby
smathieu has quit [Ping timeout: 260 seconds]
mneorr has quit [Ping timeout: 248 seconds]
<shevy> hey guys
<shevy> consider this:
<shevy> case $stdin.gets.chomp
<shevy> when 'bla' # and so on and so forth
<shevy> else
<shevy> ^^^ now is there a way to find out what the last user input was, without assigning to a variable?
<apeiros> no
<shevy> ok
<apeiros> well, unless all your when's are string literals
banghouse has joined #ruby
<apeiros> because if it hits `when "bla"` it's obviously "bla" :)
banghouse is now known as Guest26103
<shevy> another question, this time about require
<shevy> consider you have a project called 'foo'
<shevy> now you want to add some extra components to it
<shevy> but you are unsure what name you want to give them, especially when it is camel-cased
<shevy> for instance:
<shevy> require 'foo/autoinclude'
<shevy> require 'foo/auto_include'
<shevy> require 'foo/auto-include'
diegoviola has joined #ruby
<shevy> what is the preferred or best nomenclature for this?
shedd has joined #ruby
<apeiros> ruby convention: Foo::BarBaz -> foo/barbaz.rb
<apeiros> rails convention: Foo::BarBaz -> foo/bar_baz.rb
<apeiros> "-" in requires is IMO a nogo
<Hanmac> hm i also prefer underscore for files ... but only because with very long names its more readable
Advocation has joined #ruby
<shevy> hmm
<shevy> Hanmac you mean 'foo/bar_bla' ?
<Hanmac> hm yeah like that
Guest26103 has quit [Ping timeout: 248 seconds]
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
shedd has quit [Ping timeout: 248 seconds]
thumpba has joined #ruby
afhammad has joined #ruby
<shevy> hmm hmm hmm
rubyracer has quit [Quit: Konversation terminated!]
tyl has quit [Quit: Textual IRC Client: www.textualapp.com]
bauerbob has quit [Ping timeout: 246 seconds]
danshultz has quit [Ping timeout: 252 seconds]
timonv has quit [Remote host closed the connection]
<shevy> when is $? set?
thumpba has quit [Ping timeout: 246 seconds]
<shevy> I thought it would have $?.exitstatus but I am not sure how or what sets it
drumusician has joined #ruby
monkegjinni has quit [Remote host closed the connection]
<apeiros> shevy: shelling out sets it
<apeiros> e.g. ``
<shevy> ah ok
drumusician has quit [Read error: Connection reset by peer]
byprdct has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
browndawg has joined #ruby
vlad_starkov has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
Galgorth has joined #ruby
<shevy> Hanmac we have 2014 now
<shevy> what is the goal for rwx in 2014 :)
Hanmac has quit [Ping timeout: 272 seconds]
blarghmatey has joined #ruby
falood has quit [Remote host closed the connection]
Hanmac has joined #ruby
wildroman2 has quit [Remote host closed the connection]
banister has quit [Ping timeout: 272 seconds]
cow_ has quit [Remote host closed the connection]
timonv has joined #ruby
matchaw has joined #ruby
shime has quit [Ping timeout: 246 seconds]
dev1x has joined #ruby
shedd has joined #ruby
byprdct has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sayan has quit [Quit: Leaving]
lowski is now known as lowski_away
shedd has quit [Ping timeout: 252 seconds]
rm_ has joined #ruby
butblack has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hobogrammer has joined #ruby
byprdct has joined #ruby
rm_ has quit [Ping timeout: 252 seconds]
butblack has left #ruby [#ruby]
byprdct has quit [Client Quit]
wildroman2 has joined #ruby
matchaw has quit [Ping timeout: 252 seconds]
jkary has quit [Read error: Connection reset by peer]
kraljev1 has quit [Ping timeout: 245 seconds]
wildroman3 has joined #ruby
vlad_starkov has joined #ruby
freerobby has quit [Quit: Leaving.]
nfk has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
Linux_Extremist has quit [Quit: Leaving]
cow_ has joined #ruby
vlad_starkov has joined #ruby
wildroman2 has quit [Ping timeout: 245 seconds]
smathieu has joined #ruby
mneorr has joined #ruby
snapcase has joined #ruby
dawe has joined #ruby
nfk has quit [Client Quit]
vlad_starkov has quit [Read error: Connection reset by peer]
cow_ has quit [Ping timeout: 252 seconds]
Advocation has quit [Quit: Advocation]
kitak has joined #ruby
smathieu has quit [Ping timeout: 245 seconds]
Strad has joined #ruby
mneorr has quit [Read error: Operation timed out]
Strad has left #ruby [#ruby]
tannerburson has joined #ruby
eka has joined #ruby
figgleberry has joined #ruby
soobus has joined #ruby
browndawg has left #ruby [#ruby]
falood has joined #ruby
joaosa_ has quit [Ping timeout: 248 seconds]
ch0mskiii has joined #ruby
kitak has quit [Ping timeout: 245 seconds]
Czupa has joined #ruby
threesome has joined #ruby
chomskiii has quit [Ping timeout: 252 seconds]
soobus has quit [Ping timeout: 272 seconds]
Hanmac1 has joined #ruby
nemesit|znc has quit [Ping timeout: 245 seconds]
joaosa_ has joined #ruby
klaut has joined #ruby
blarghmatey has quit [Read error: Operation timed out]
Hanmac has quit [Ping timeout: 246 seconds]
nemesit|znc has joined #ruby
shedd has joined #ruby
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
blarghmatey__ has joined #ruby
byprdct has joined #ruby
wildroman3 has quit [Read error: Connection reset by peer]
soobus has joined #ruby
wildroman2 has joined #ruby
banghouse has joined #ruby
wildroman2 has quit [Remote host closed the connection]
byprdct has quit [Client Quit]
banghouse is now known as Guest90602
shedd has quit [Ping timeout: 272 seconds]
nfk has quit [Client Quit]
ludar has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
kep has quit [Quit: WeeChat 0.4.2]
Hanmac has joined #ruby
jkary has joined #ruby
Hanmac1 has quit [Ping timeout: 252 seconds]
diegoviola has quit [Quit: WeeChat 0.4.2]
jkary has quit [Read error: Connection reset by peer]
centipedefarmer has joined #ruby
ludar has quit [Ping timeout: 272 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danshultz has joined #ruby
alexherbo2 has quit [Quit: WeeChat 0.4.2]
tharindu has joined #ruby
jmo has joined #ruby
mojjojo has quit [Quit: mojjojo]
rickruby has quit [Remote host closed the connection]
danshultz has quit [Ping timeout: 272 seconds]
vlad_starkov has joined #ruby
monkegjinni has joined #ruby
IceDragon has joined #ruby
jmo has quit [Read error: Operation timed out]
kure_ has joined #ruby
bauerbob has joined #ruby
niklasb has joined #ruby
<shevy> hmmm
<shevy> if you have a file like foo.rb
<shevy> inside of it you have
<shevy> def foo; puts 'bla'; end
<shevy> there is no easy way to attach this code to a module at runtime right?
<shevy> one has to create a new file
kure__ has quit [Ping timeout: 260 seconds]
<shevy> with: module Foo; def foo; puts 'bla'; end; end
<IceDragon> No
<IceDragon> You could cheat?
wildroman2 has joined #ruby
<IceDragon> class MyModule ; instance_eval(File.read("foo.rb")) ; end
<IceDragon> I wrote a load_module which does something similar, except it creates a new Module
<IceDragon> load_module(filename) # => Module with your code
wildroman2 has quit [Read error: No route to host]
monkegjinni has quit [Remote host closed the connection]
wildroman2 has joined #ruby
monkegjinni has joined #ruby
noop has joined #ruby
shedd has joined #ruby
wildroman2 has quit [Read error: No route to host]
Brolen has joined #ruby
Hanmac1 has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
MetaCosm has quit [Ping timeout: 246 seconds]
mengu has joined #ruby
MetaCosm has joined #ruby
MetaCosm has quit [Changing host]
MetaCosm has joined #ruby
mojjojo has joined #ruby
monkegjinni has quit [Ping timeout: 272 seconds]
shedd has quit [Ping timeout: 260 seconds]
alvinsj has joined #ruby
Hanmac has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
Hanmac1 has quit [Ping timeout: 272 seconds]
<pipecloud> IceDragon: Are you the person who made a gem for that?
<IceDragon> nope
<IceDragon> O: Should I?
<pipecloud> Ah, some prat made a whole gem for it. I laughed.
<pipecloud> No.
wildroman2 has joined #ruby
<IceDragon> seriously
assurbanipal has quit [Ping timeout: 246 seconds]
<IceDragon> its just 1 line really :x
<IceDragon> module Kernel ; def load_module(filename); Module.new { instance_eval(File.read(filename)) } ; end ; end
<IceDragon> behold!
assurbanipal has joined #ruby
<apeiros> behold! you should add the filename as 2nd arg in instance_eval
<apeiros> better exceptions.
centipedefarmer has quit [Remote host closed the connection]
drumusician has joined #ruby
centipedefarmer has joined #ruby
<IceDragon> !
<IceDragon> right :O
timonv has quit [Remote host closed the connection]
<shevy> IceDragon would that work?
<IceDragon> only way to find out
* IceDragon throws it in irb
<shevy> hehe
<shevy> eval scares me
<shevy> but I will give it a try soon
<shevy> what does your load_module return? a Module?
DrOwl has quit [Ping timeout: 272 seconds]
<IceDragon> yup
<apeiros> btw., there is Module#module_eval
<IceDragon> and class_eval
<apeiros> same thing
<IceDragon> seriously
alvinsj has quit []
<apeiros> IMO you should use that, and could put it to Module#module_load
rm_ has joined #ruby
<IceDragon> ah :O brilliant
<shevy> what name should be given to such a project?
<shevy> project: module_load ?
baroquebobcat has joined #ruby
<shevy> why is it load_module() and module_load() that confuses my poor brain
crus has joined #ruby
<IceDragon> dunno, :O
<shevy> it's way too early in the year to try and get my brain to work
<IceDragon> its a naming convention I guess?
<shevy> ah you mean because
<shevy> there is Module#module_eval so it makes sense to start with module_
<shevy> I guess I'll just alias one to the other anyway :P
<IceDragon> shevy.brain.lazy? # => <TooLazyToGiveProperResponse>
<apeiros> e.g. something along: `class Module; def module_load(file); final_path = $LOAD_PATH.find { |dir| File.exist?(File.join(dir, file)) }; final_file = File.join(final_path, file); module_eval(File.read(final_file), final_file); end; end
<shevy> yeah IceDragon
smathieu has joined #ruby
mojjojo has quit [Quit: mojjojo]
<shevy> 2014 is only 17 hours young here so far
mneorr has joined #ruby
<shevy> I barely woke up at all!
<IceDragon> xD
<IceDragon> hehe
* IceDragon gobbles up apeiros' code for safe keeping
drumusician has quit [Read error: Connection reset by peer]
vertreko has joined #ruby
<apeiros> not sure how to deal with absolute paths there
lukec has joined #ruby
<IceDragon> File.expand_path
<IceDragon> :O
DrOwl has joined #ruby
crus` has quit [Ping timeout: 245 seconds]
<IceDragon> >> [File.expand_path("/absolute"), File.expand_path("relative/stuff")]
<IceDragon> ...
<IceDragon> >.>;
mojjojo has joined #ruby
<IceDragon> don't leave me hanging eval...
<pontiki> you broke it
rushpixy has left #ruby [#ruby]
<IceDragon> ;x
<pontiki> either that or the batteries ran out
<IceDragon> >> 1 + 1
<shevy> the bot expired in 2013
<IceDragon> ;x
<IceDragon> Someone didn't update his copyrights
<shevy> now we are back to the bot-less state we had in 2009 here
<IceDragon> He didn't make it to 2014
<IceDragon> XD
smathieu has quit [Ping timeout: 272 seconds]
<pontiki> oh that would be funny
<shevy> yeah
mneorr has quit [Ping timeout: 272 seconds]
falood has quit [Ping timeout: 272 seconds]
maj has joined #ruby
<pontiki> if you don't update your copyright statements, your code stops working
<shevy> I am surprised you did not melt either in 2014 IceDragon - global warming and all that
figgleberry has quit [Ping timeout: 265 seconds]
<IceDragon> [File.expand_path("/absolute"), File.expand_path("relative/stuff")] #=> ["/absolute", "/home/<REDACTED>/<REDACTED>/code/ruby/modules/relative/stuff"]
abra has joined #ruby
mehlah has quit [Quit: Leaving...]
<pontiki> hey, that's MY user name!
<IceDragon> shevy: yeah, I barely escape
<IceDragon> escaped*
<IceDragon> well looks like half of my brain was left in 2013..
MrZYX|off is now known as MrZYX
<shevy> MrZYX happy new year!!!
<IceDragon> ^
<IceDragon> What he said but in binary
<MrZYX> shevy: IceDragon thanks, you too :)
<shevy> IceDragon do you know that dragon in The Hobbit? the one that is greedy for the gold of the dwarves and invades their home to snatch it all? that's how I think you are, as evil as him :)
LexicalScope has joined #ruby
russt has quit [Quit: russt]
<IceDragon> nah, I steal your gold and the melt it in front of you while trampling all your furniture, after which I freeze your home and shatter it using the tip of my tail
<IceDragon> . x .
olivier_bK has quit [Ping timeout: 246 seconds]
mojjojo has quit [Quit: mojjojo]
<shevy> you know your role very well
<IceDragon> But for 2014, I plan to change all that
<IceDragon> I'll burn whole villages and pillage everything!
soobus has quit [Ping timeout: 272 seconds]
<IceDragon> probably snatch up a few princesses while I'm at it
mojjojo has joined #ruby
ViPi2 has joined #ruby
ViPi2 has quit [Max SendQ exceeded]
aryaching_ has quit []
Hien_ has quit [Remote host closed the connection]
logic_prog has joined #ruby
<logic_prog> is there a way to "gem install macgap" without SUDO ? (this is on OSX)
<Rylee> logic_prog, gem install --user macgap
<Rylee> will install it to only your user account, not system-wide
<logic_prog> Rylee: very nice, thanks! I was trying gem install --local, whihc did not work
shedd has joined #ruby
gja has joined #ruby
alexherbo2 has joined #ruby
soobus has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
Guest90602 has quit [Remote host closed the connection]
alexherbo2 has quit [Client Quit]
mechanicles has joined #ruby
alexherbo2 has joined #ruby
afhammad has quit []
ambushsabre has joined #ruby
cbetta is now known as cbetta_afk
shedd has quit [Ping timeout: 272 seconds]
aryaching has joined #ruby
thumpba has joined #ruby
DrOwl has quit [Ping timeout: 272 seconds]
Astralum has joined #ruby
mehlah has joined #ruby
thumpba has quit [Read error: Operation timed out]
cbetta_afk is now known as cbetta
sepp2k has joined #ruby
p8952 has quit [Read error: Connection reset by peer]
LexicalScope has quit [Ping timeout: 246 seconds]
mrnugget has joined #ruby
Advocation has joined #ruby
maj has quit [Quit: Computer has gone to sleep.]
logic_prog has left #ruby [#ruby]
momomomomo has joined #ruby
tylersmith has joined #ruby
lyanchih has quit [Quit: lyanchih]
mojjojo has quit [Quit: mojjojo]
michael_lee has joined #ruby
workmad3 has joined #ruby
mojjojo has joined #ruby
mikemac has quit [Remote host closed the connection]
jeffreyrichardso has joined #ruby
mikemac has joined #ruby
mary5030 has joined #ruby
fantazo has joined #ruby
tharindu is now known as tharindu|away
butblack has joined #ruby
tharindu|away is now known as tharindu
michael_lee has quit [Read error: Connection reset by peer]
mansi_ has quit [Remote host closed the connection]
lethjakman has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
madb055 has joined #ruby
mengu has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
pushpak has joined #ruby
gja has joined #ruby
mojjojo has quit [Quit: mojjojo]
mojjojo has joined #ruby
Megtastique has joined #ruby
frxx has quit []
frx has joined #ruby
zeade has joined #ruby
zipper has joined #ruby
shedd has joined #ruby
drumusician has joined #ruby
<shevy> wow
<shevy> now this is documentation ruby projects should learn from!
jamesaxl has quit [Ping timeout: 260 seconds]
Advocation has quit [Quit: Advocation]
<shevy> instead we have this! http://www.ruby-doc.org/core-2.0/IO.html
banghouse has joined #ruby
banghouse is now known as Guest54134
<momomomomo> shevy: You're comparing the commands of using a shell and usage to a full language
<momomomomo> shevy: those are basic commands, as well
Guest54134 is now known as banghouse
drumusician has quit [Remote host closed the connection]
zeade has quit [Quit: Leaving.]
drumusician has joined #ruby
shedd has quit [Ping timeout: 272 seconds]
guardianx has quit [Ping timeout: 272 seconds]
<apeiros> shevy: ruby is opensource, you can contribute
vlad_starkov has joined #ruby
<momomomomo> apeiros: a better answer than mine :p
Yarou has joined #ruby
mneorr has joined #ruby
jajaja has joined #ruby
<shevy> momomomomo I only compare documentation
havenwood has joined #ruby
<momomomomo> shevy: in that case, I think there are a lot of examples that could use more explanation / better examples
<momomomomo> but, I don't know if I agree with going down into use cases like for IO
<shevy> apeiros the problem is - if I were to suggest a complete different design and approach, how likely would it to be accepted?
<apeiros> shevy: not just suggest, you'd have to do it
<apeiros> and it doesn't need to be accepted
carraroj has quit [Ping timeout: 245 seconds]
eka has quit [Quit: Computer has gone to sleep.]
<apeiros> there are various ruby documentations
jajaja has left #ruby [#ruby]
<apeiros> see rdoc.info, ruby-doc.org
lxsameer has joined #ruby
<shevy> cool
<shevy> didn't know rdoc.info also has the documentation
<shevy> ohhh
<shevy> rdoc.info is rubydoc.info?
zipper has quit [Ping timeout: 252 seconds]
<shevy> hmm does not seem to be the same display
<shevy> oops
<shevy> now it is
<shevy> 2.1.0 documentation http://www.ruby-doc.org/core-2.1.0/
smathieu has joined #ruby
<momomomomo> http://www.ruby-lang.org/en/documentation/ - admittedly hard to find via google
<momomomomo> scroll down for reference docs
Neomex has joined #ruby
Neomex has quit [Client Quit]
workmad3 has quit [Ping timeout: 272 seconds]
freerobby has joined #ruby
ace_striker has joined #ruby
ace_striker has quit [Changing host]
ace_striker has joined #ruby
ace_striker has quit [Changing host]
ace_striker has joined #ruby
Speed has joined #ruby
smathieu has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
mjburgess has joined #ruby
<zzak> ruby-docs.org is also pretty good in the interim, until we get docs.ruby-lang.org finished
mary5030 has quit [Remote host closed the connection]
oddalot has quit [Remote host closed the connection]
Solnse has joined #ruby
lowski_away is now known as lowski
Yarou has quit [Quit: Leaving]
zipper has joined #ruby
madb055 has quit [Ping timeout: 248 seconds]
madb055 has joined #ruby
tharindu is now known as tharindu|away
joaoh82 has quit [Remote host closed the connection]
Yarou has joined #ruby
Yarou has joined #ruby
Yarou has quit [Changing host]
teenwolf has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
shedd has joined #ruby
madb055 has quit [Client Quit]
Guest77987 has joined #ruby
tharindu|away is now known as tharindu
stryek has joined #ruby
shedd has quit [Ping timeout: 240 seconds]
ViPi2 has joined #ruby
ViPi2 has quit [Max SendQ exceeded]
baroquebobcat has joined #ruby
colonolGron has joined #ruby
ViPi2 has joined #ruby
ViPi2 has quit [Max SendQ exceeded]
Jake232 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
Quintus_q has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
baroquebobcat has quit [Client Quit]
ViPi2 has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
Galgorth has quit []
Monie has joined #ruby
freerobby has quit [Quit: Leaving.]
<lxsameer> how can i exclude a directory from this glob **/*.rb
jmo has joined #ruby
yacks has quit [Quit: Leaving]
jmo has quit [Ping timeout: 240 seconds]
olivier_bK has joined #ruby
tomasso has joined #ruby
<yasu> try this Dir.glob("**/*.rb").reject { |p| FileTest.directory? p }
<apeiros> people naming their directories .rb should be publicly spanked…
dapz has quit [Ping timeout: 252 seconds]
<yasu> I agree with you, apeiros. :-p
<apeiros> lxsameer: you mean you don't want to list files within a directory included in ** there?
Landshark753 has quit [Ping timeout: 240 seconds]
<apeiros> lxsameer: Dir['**/*.rb'] - Dir['that/specific/dir/**/*.rb']
smathieu has joined #ruby
<lxsameer> apeiros: i want to exclude a directory from **/*.rb (i use it in command line as yardoc aparams)
IceDragon has quit [Read error: No route to host]
h0rrorvacui has joined #ruby
Landshark753 has joined #ruby
tt1187 has joined #ruby
vlad_starkov has joined #ruby
Vivekananda has joined #ruby
noop has quit [Ping timeout: 252 seconds]
smathieu has quit [Ping timeout: 240 seconds]
<yasu> In most cases, a file with .rb extension is not a directory.
joaoh82 has joined #ruby
ViPi2 has quit [Quit: Computer has gone to sleep.]
shedd has joined #ruby
Txandy has joined #ruby
<artgoeshere> Is it April 1st already?
madb055 has joined #ruby
IceDragon has joined #ruby
krz has quit [Quit: WeeChat 0.4.2]
mojjojo has quit [Quit: mojjojo]
joaoh82 has quit [Ping timeout: 248 seconds]
mojjojo has joined #ruby
shedd has quit [Ping timeout: 248 seconds]
mrnugget has quit [Quit: mrnugget]
<shevy> lol
vertreko has quit [Quit: WeeChat 0.4.1]
rm_ has quit [Remote host closed the connection]
rm_ has joined #ruby
butblack has quit [Quit: butblack]
IceDragon has quit [Read error: No route to host]
SkramX has joined #ruby
smathieu has joined #ruby
LexicalScope has joined #ruby
LexicalScope has joined #ruby
LexicalScope has quit [Changing host]
<SkramX> hey all. I have an array of hashes like [{:1 => {}, :2 => {}, :10 => nil ] ..whats the best way extract just the hash's key whose value is non-null?
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
<SkramX> actually no, it is a hash of hashes: {:1 => a, :2 => b, :10 => nil}
<Mon_Ouie> What you're showing isn't a hash of hashes, it's just a regular hash
<waxjar> what's in a and b ?
<SkramX> another hash
<SkramX> and you're right, sorry Mon_Ouie
Advocation has joined #ruby
<Mon_Ouie> Ah
<Mon_Ouie> Well, you can use #select to find elements that satisfy a certain condition
<SkramX> i think i can just collect/select non-null values and then sort by key
p8952 has joined #ruby
<SkramX> {:"1" => "non null", :"2" => nil}.select{|k,v| !v.nil?}
<waxjar> something like hash.select { |key, sub| sub.is_a? Hash }.map &:first ?
<SkramX> hm okay
smathieu has quit [Ping timeout: 240 seconds]
<waxjar> ah, *reject { |k,s| s.nil? }
russt has joined #ruby
<Mon_Ouie> select { |k, v| !v.nil? } -> select { |k, v| v }
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
joaoh82 has joined #ruby
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
ambushsabre has quit [Quit: rip]
rjhunter has quit [Remote host closed the connection]
joaoh82 has quit [Ping timeout: 241 seconds]
mehlah has quit [Quit: Leaving...]
pskosinski has quit [Remote host closed the connection]
ace_striker has quit [Ping timeout: 272 seconds]
mneorr has quit [Ping timeout: 272 seconds]
pskosinski has joined #ruby
IceDragon has joined #ruby
ambushsabre has joined #ruby
ambushsabre has quit [Client Quit]
LexicalScope has quit [Ping timeout: 246 seconds]
<lxsameer> is there any way to change markup of a single file in yardoc
MrZYX is now known as MrZYX|off
timonv has joined #ruby
mary5030 has joined #ruby
cj3kim_ has joined #ruby
<IceDragon> -,- oh crying out loud
dapz has joined #ruby
<IceDragon> I think I found a typo in the win32.h for ruby
<IceDragon> struct tm *gmtime_r(const time_t *, struct tm *); # tm is suppose to be tms I guess
carraroj has joined #ruby
<shevy> that's worse than a typo!
<shevy> that's a bug!
<IceDragon> greaaaaaaat
<IceDragon> THAT BREAKS MY ENTIRE PROJECT!
<IceDragon> :D
<shevy> I am sorry I don't bring you better news :(
Advocation has quit [Quit: Advocation]
<shevy> your first bug in 2014
* IceDragon quits being a programmer, and works in a super market selling novelty items
<Hanmac> IceDragon: are you sure its in ruby or it is in windows itself? ;P
<shevy> better human-human interaction in a super market anyway
<IceDragon> Hanmac: I'm cheating
mary5030 has quit [Ping timeout: 245 seconds]
<shevy> programming in the super market, now that would be awesome
<IceDragon> I'm using my Arch's mingw cross compilers
<IceDragon> I can always just patch the file myself :P
<shevy> Hanmac how is rwx coming along?
MrZYX|off is now known as MrZYX
thumpba has joined #ruby
<Hanmac> no commits today but +2 yesterday ... (i need to do more than 68 commits this month to keep in line)
tharindu has quit [Quit: Leaving...]
<shevy> hehe
<shevy> yeah
<shevy> every year push the limit
<shevy> become more effective, better, more accurate
<shevy> and younger
cj3kim_ has quit [Ping timeout: 272 seconds]
psyl0n has joined #ruby
<IceDragon> shevy: I agree with you
<IceDragon> except the younger part
saarinen has joined #ruby
<IceDragon> Hanmac: Fix my bugz pls?
<IceDragon> kthxbye
zipper has quit [Quit: Lost terminal]
* Hanmac does not fix bugs in windows ;P
<IceDragon> :D YAY
<IceDragon> god, if I could just do without windows ;_;
<IceDragon> but I have to compile this for windows..
<IceDragon> "HAVE TO"
kep has joined #ruby
ambushsabre has joined #ruby
<Hanmac> shevy some day i will test if my rwx binding works on windows .. but this day is still far in the future ;P
thumpba has quit [Ping timeout: 252 seconds]
<IceDragon> whats rwx?
* IceDragon gets ready for heavy gun fire
<shevy> Hanmac ruby-gnome works on windows!
<shevy> but most ruby guys dont use windows
<IceDragon> shevy: fix my bugz?
<shevy> rwx are bindings to the wxwidget GUI toolkit
<Hanmac> IceDragon: do you know wxWidgets? then you might know rwRuby too ... but its dead so thats why rwx was born
<shevy> IceDragon no, I must add a feature to a game first
<IceDragon> :O
<IceDragon> OH
<IceDragon> awesome suace
<IceDragon> shevy: yay!
<IceDragon> I'm ashamed, I haven't contributed to ruby on github :(
ambushsabre has quit [Client Quit]
<IceDragon> I'm contributed to mruby and rubinius but not ruby
<shevy> you mean the main ruby project at github? the official ruby?
<shevy> all I did was issue new suggestions
DrShoggoth has quit [Quit: Leaving]
<shevy> when will mruby be ready?
<IceDragon> I have no idea
<IceDragon> and where in heaven's name is ruby/issues!?
axl_ has joined #ruby
<shevy> oh you mean
<shevy> the main ruby
<shevy> mruby
<shevy> ;-)
pyx has joined #ruby
flubba has quit [Remote host closed the connection]
pyx has quit [Client Quit]
flubba has joined #ruby
<shevy> oh man :(
<shevy> mruby has class vars
gja has quit [Quit: This computer has gone to sleep]
<IceDragon> it didn't?
<IceDragon> O:
<IceDragon> I didn't realize > rarely uses class variables
<shevy> I dont use them either
<shevy> but they dont seem to work in mruby right now :P
jamesaxl has joined #ruby
timonv has quit [Remote host closed the connection]
tomasso has quit [Quit: Leaving.]
tomasso has joined #ruby
tomasso has quit [Read error: Connection reset by peer]
Tearan_ has joined #ruby
tomasso has joined #ruby
<IceDragon> shevy, submit an issue for me pls
<IceDragon> ;_; I'm too lazy to sign up
kalamazoo has joined #ruby
sharms has quit [Ping timeout: 240 seconds]
<Hanmac> "the barn is not leaking anymore, but now its bigger on the inside" "Psst! dont tell, or otherwise everyone want one like that" ;P
rm_ has quit [Ping timeout: 245 seconds]
<shevy> IceDragon ok
<shevy> but you must detail it here
mojjojo has quit [Quit: mojjojo]
tomasso has quit [Quit: Leaving.]
tomasso has joined #ruby
<shevy> "HALP! My body is so cold."
<shevy> - "That's because you are an ICE dragon."
sharms has joined #ruby
<IceDragon> Its just a small mistake they made in the include/ruby/win32.h line 752..753 tm should be tms
<IceDragon> dunno how you would reword that to make it look professional
decoponio has quit [Quit: Leaving...]
ambushsabre has joined #ruby
mojjojo has joined #ruby
saarinen has quit [Quit: saarinen]
Brolen has quit [Quit: Brolen]
IceDragon has quit [Read error: No route to host]
fernripcurl has joined #ruby
gja has joined #ruby
dann_ has joined #ruby
benzrf has joined #ruby
<benzrf> hello rubyists
<benzrf> hows rubyin
russt has quit [Ping timeout: 245 seconds]
blackmes1 has joined #ruby
skaflem has quit [Quit: Leaving]
<dann_> silent
<shevy> damn
<shevy> benzrf is back :<
<benzrf> i know
<shevy> I had high hopes for 2014 to be different ...
<benzrf> i really suck dont i
<DouweM> lol shevy
<benzrf> u will learn haskell & u will like it
<dann_> ew
<DouweM> haskell is the shit
<shevy> I still have not understood what a monad is
<DouweM> shevy: yeah, I never really got that either
<benzrf> shevy: it is a method for chaining functions of type (a -> m b)
<shevy> DouweM sometimes I get the feeling as if everyone explains it differently
<DouweM> I know what it is technically, I have just never been able to wrap my head around how to use them entirely
<benzrf> shevy: if you have a function of type (a -> b) and one of type (b -> c), you can just take the output of the first and put it into the second
<benzrf> shevy: if you have (a -> m b) and (b -> m c), you have a problem
IceDragon has joined #ruby
<dann_> ./ping #haskell
<shevy> isn't that what haskell does all the type anyway
<shevy> I mean
<shevy> all the time anyway
<IceDragon> O___o someone remind me next time not ot compile ruby using -j8
<shevy> and all those lambdas
<shevy> IceDragon! You were gone!
<IceDragon> My system went to the grave
<IceDragon> again
<shevy> why
<IceDragon> 3rd time to day
<IceDragon> ruby
<shevy> :(
<shevy> time for you to go back to the roots
<shevy> back to perl
<IceDragon> compiling using -j16, -j8 and -j4 respectively
predator117 has quit [Ping timeout: 240 seconds]
<shevy> benzrf, did you ever use perl?
<benzrf> yeah
russt has joined #ruby
<benzrf> lambdas are considered bad practice most of the time in haskell anyway
<benzrf> use point-free form or declare your functions
<IceDragon> okay to be on the safe side: -j1
<IceDragon> :O nothing can go wrong now
predator117 has joined #ruby
kalamazoo has quit [Remote host closed the connection]
kalamazoo has joined #ruby
<shevy> you play russian roulette
<dann_> do any of you know a tool for making simple placeholder images
<dann_> w/ transparency, of course
ewnd9 has quit [Ping timeout: 272 seconds]
<benzrf> shevy: lets say you have a bunch of functions ok
<benzrf> shevy: and each function takes a number and returns either a number or a string saying that there was an error and what the error was, alright?
<benzrf> like so:
mojjojo has quit [Quit: mojjojo]
<IceDragon> dann_ nope, but couldn't you just grab a few placeholds from online?
croaky has joined #ruby
<benzrf> {|a, b| b == 0 ? "DIV BY ZERO" : a / b}
kewubenduben has quit []
<benzrf> shevy: ya follow
alexherbo2 has quit [Quit: WeeChat 0.4.2]
<dann_> IceDragon: because it's easier to make them myself, plus it's hard to find good placeholders of the right sizes online
mojjojo has joined #ruby
Quintus_q has quit [Quit: WeeChat 0.4.2]
<IceDragon> oh
<IceDragon> right
<dann_> I know of http://placehold.er but that can only do so much
smathieu has joined #ruby
<IceDragon> shevy: nevermind that report
<benzrf> dann_: write a skript
<IceDragon> ITS THE TIME STRUCT
<IceDragon> O_O;;
<IceDragon> what a way out name
<IceDragon> tm
<IceDragon> Technical Machine
<shevy> hmm how to test ...
<shevy> if $stdin.gets.chomp[0,1] == 'y' || 'j' # i.e. first character to be either y or j
<shevy> benzrf dont really follow, sorry
<shevy> benzrf my brain is not very awake
<shevy> it even struggles with things like the above
<Hanmac> if $stdin.gets.chomp[0,1] =~ /[yj]/
<shevy> without a regex it is possible too?
<momomomomo> shevy: Why?
<momomomomo> shevy: store a variable then do your checks if you want
<Hanmac> if %w{y j}.include?($stdin.gets.chomp[0,1])
<shevy> momomomomo yes thank you for answering my question
gja has quit [Quit: This computer has gone to sleep]
<momomomomo> or that
<momomomomo> Hanmac: better solution
<dann_> quick, what's a good name for a class that stores and manages menu items?
<shevy> MenuHandler
<Hanmac> shevy: are you sure about [0,1] ? why not [0] ?
<momomomomo> or just Menu
benzrf has quit [Ping timeout: 260 seconds]
<shevy> Hanmac I love specifying the positions
shime has joined #ruby
joaoh82 has joined #ruby
<Hanmac> shevy: what about that? ;D if $stdin.gets.chomp[/\A[yj]/]
<shevy> nah
<shevy> I need the cost of the brain parsing processing to be very low
<shevy> the regex variant is the best here
benzrf has joined #ruby
<benzrf> yo shevy
<benzrf> listen up pls
<Hanmac> hm that regex works also without chomp
mojjojo has quit [Quit: mojjojo]
<benzrf> shevy: u will never be enlightened sry2say
<shevy> :(
fernripcurl has left #ruby [#ruby]
<benzrf> shevy: pls observe the following block
FifthWork has joined #ruby
<benzrf> {|a, b| b == 0 ? "ERROR THIS IS DIV BY 0" : a / b}
<benzrf> shevy: simple right
<shevy> dunno
<shevy> I don't use ? myself
<benzrf> ok, replace it with an if statement
<benzrf> :P
<shevy> ok
<Hanmac> shevy prefers ¿
joaoh82 has quit [Read error: Operation timed out]
<benzrf> shevy: lets say we have a bunch of blocks like this
<dann_> ? conditionals are gr8
mechanicles has quit [Quit: Computer has gone to sleep.]
<benzrf> shevy: they all take a number or two and return either a string or another number
<benzrf> ok?
<shevy> hmmm
<shevy> why do they take two numbers or return a string
<momomomomo> dann_: Ternary operators can be OK, but can increase the level of mind-fuck when reading someone elses project
SHyx0rmZ has joined #ruby
<benzrf> shevy: actually lets say they all take 1 number
<shevy> ok
<benzrf> let me edit that block
tt1187 has quit [Ping timeout: 272 seconds]
<benzrf> {|n| if n == 0 then "DIV BY 0" else 10 / n}
<benzrf> alright?
<shevy> yeah
<shevy> two actions. if, else
<shevy> simple
<shevy> good
<shevy> IceDragon I am even speaking like this in reallife
<benzrf> the type of this in haskell would be something like 'Float -> Either String Float'
<shevy> ok so
<shevy> that is basically an if else there
<dann_> momomomomo: of course, no more than 2 lines of logical code should be present in a ?
cbetta is now known as cbetta_afk
<shevy> it is either a String, or a Float
<benzrf> shevy: now lets say we have a bunch of blocks or methods that take a number and give back a string or a number
<dann_> atleast that's how i do it
<benzrf> shevy: yes?
<shevy> yeah
<benzrf> lets say we want to pipe them into each other
<benzrf> except, maybe one of them will return a string, when the next one expects a number
<benzrf> this is problem
<benzrf> yes?
<shevy> yeah
<shevy> but only because ruby is too dumb to figure it out automatically
<benzrf> monads are the solution to this problem
<benzrf> the idea is that
<benzrf> you make a method called 'bind'
smathieu has quit [Remote host closed the connection]
<benzrf> bind takes a value that is either a string or a number, and a block that takes a number
<benzrf> observe:
Hanmac1 has joined #ruby
<benzrf> class String
<benzrf> def bind
<benzrf> self
<benzrf> end
smathieu has joined #ruby
<benzrf> end
<benzrf> class Fixnum
<benzrf> def bind
<benzrf> yield self
<benzrf> end
<benzrf> end
<benzrf> now you can do this:
<benzrf> 3.bind {|n| if n > 0 then n - 1 else "ALREADY TOO LOW"}
<benzrf> and you will get back 2
<benzrf> but if you do this:
<benzrf> "ALREADY TOO LOW".bind {|n| if n > 0 then n - 1 else "ALREADY TOO LOW"}
<benzrf> you will just get back "ALREADY TOO LOW"
<benzrf> ok?
lowski has quit [Ping timeout: 252 seconds]
Hanmac has quit [Ping timeout: 245 seconds]
specious has quit [Ping timeout: 245 seconds]
skulker has quit [Remote host closed the connection]
mojjojo has joined #ruby
skulker has joined #ruby
aspires has joined #ruby
specious has joined #ruby
<benzrf> shevy: do u follow
kalamazoo has quit [Remote host closed the connection]
<dann_> shevy's dead
smathieu has quit [Ping timeout: 272 seconds]
<benzrf> dang
CaptainJet has joined #ruby
<momomomomo> benzrf: For what it's worth, nice explanation
psyl0n has quit [Remote host closed the connection]
<momomomomo> minus the 'benzrf: shevy: u will never be enlightened sry2say'
skulker has quit [Ping timeout: 245 seconds]
<benzrf> kek
<benzrf> thanks though
<benzrf> you know somebody made do-notation for ruby?
Yarou has quit [Quit: This computer has gone to sleep]
skulker has joined #ruby
<momomomomo> gotta run!
momomomomo has quit [Quit: momomomomo]
smathieu has joined #ruby
skulker has quit [Remote host closed the connection]
FifthWork has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
claymore has quit [Read error: No buffer space available]
claymore has joined #ruby
nerium has joined #ruby
<nerium> Does anyone know how to read from a stream using event machine ?
<nerium> or plain ruby
Hanmac1 has quit [Ping timeout: 245 seconds]
<benzrf> whats event machine
<waxjar> benzrf: would the null object be a monad?
vertreko has joined #ruby
<benzrf> hmm?
Hanmac has joined #ruby
<benzrf> waxjar: to be precise, a monad is a data type along with a definition of bind and return
<benzrf> where return takes any value and wraps it in a monadic value
dp has joined #ruby
<benzrf> or rather, a value of type a -> m a
smathieu has quit [Remote host closed the connection]
<dp> it seems that the YAML gem defaults times without a timezone to UTC. Is there a way to change this?
<benzrf> monads tend to make more sense in static type systems with ADTs, like hindley-milner
fella6s has joined #ruby
smathieu has joined #ruby
dru has joined #ruby
onewheelskyward_ has joined #ruby
<benzrf> waxjar: do you know any haskell?
<waxjar> i've played around with it a little
<benzrf> ok
<benzrf> do you know about type constructors/
<waxjar> wouldn't say i know any, tho :p
<benzrf> alright...
<benzrf> do you know java?
jeffreyrichardso has quit [Remote host closed the connection]
<waxjar> are they the things where you declare your own types?
Guest85414______ has joined #ruby
<benzrf> ish
terlar_ has joined #ruby
<benzrf> a type constructor is basically a parameterized type
jmo has joined #ruby
<benzrf> it's like a function that takes types and returns a type
<benzrf> for example,
<dann_> *dims lights*
<benzrf> data Either a b = Left a | Right b
butblack has joined #ruby
<benzrf> so a value of type 'Either String Int' could be 'Left "foo"' or 'Right 34'
<waxjar> ah, yes
bluehavana____ has joined #ruby
jericon_ has joined #ruby
<nerium> benzrf: google for it
<nerium> anyone
graft_ has joined #ruby
<nerium> ?
graft_ has quit [Changing host]
graft_ has joined #ruby
gazoombo_ has joined #ruby
<benzrf> waxjar: anyway
shaman42_ has joined #ruby
moshee has joined #ruby
<benzrf> waxjar: do you know java :p
im0b__ has joined #ruby
moses_ has joined #ruby
psyl0n has joined #ruby
<waxjar> nope, just ruby really. not really proficient in any other languages
thedonva1ghn has joined #ruby
smathieu has quit [Ping timeout: 245 seconds]
<benzrf> alright
[lewellyn] has joined #ruby
<benzrf> well, haskell has a thing called a 'typeclass'
Landshark753 has quit [Ping timeout: 240 seconds]
huttan_ has joined #ruby
aep_ has joined #ruby
rcs_ has joined #ruby
<benzrf> a typeclass is basically a list of functions or values whose type contains one blank spot
ckrailo_ has joined #ruby
error404_ has joined #ruby
<benzrf> then any type can 'instantiate' the typeclass by declaring versions of those functions where the blank spot is replaced with that type
nonconve1gent has joined #ruby
<benzrf> for example, (+) in haskell is part of the Num typeclass
<benzrf> Int, Float, and others implement Num
<benzrf> *instantiate
davorb_ has joined #ruby
derf-- has joined #ruby
jmo has quit [Ping timeout: 260 seconds]
<benzrf> one good example is Monoid
chuk__ has joined #ruby
<benzrf> the Monoid typeclass requires you to implement 'mappend', which has the type 'm -> m -> m' where m is the instantiating type
spacemud has quit [Ping timeout: 240 seconds]
<benzrf> and also 'mempty', which is just 'm'
<dp> anyone?
andredie` has joined #ruby
<benzrf> when instantiating monoid, mappend should be commutative and mempty should be identity
Brando753-o_O_o has joined #ruby
Armand has joined #ruby
tris- has joined #ruby
jrd00 has joined #ruby
<benzrf> when you call mappend, it will act as one of many functions depending on the type you call it with
jsaak_ has joined #ruby
<benzrf> so I can say:
<benzrf> mappend [1, 2, 3] [4, 5, 6]
Landshark753 has joined #ruby
<benzrf> and I will get [1, 2, 3, 4, 5, 6]
Armand is now known as Guest47391
<benzrf> because list instantiates monoid with (++) as mappend
<benzrf> oh shit, I meant associative, not commutative
mjburgess has quit [Remote host closed the connection]
<benzrf> waxjar: did you follow that >_>
<waxjar> no, haha
<dann_> how do I add alias methods without rewriting the method
Txandy is now known as Txandy|away
zigidias_ has joined #ruby
mjburgess has joined #ruby
<benzrf> alright, its not so important
<benzrf> >_>
<dann_> like how to_s is the same as to_string
<benzrf> dann_: use alias
dev1x has quit [*.net *.split]
jibi has quit [*.net *.split]
Brando753 has quit [*.net *.split]
bahar has quit [*.net *.split]
aep has quit [*.net *.split]
mosheee has quit [*.net *.split]
soukihei_ has quit [*.net *.split]
onewheelskyward has quit [*.net *.split]
Guest43128 has quit [*.net *.split]
rcs has quit [*.net *.split]
nonconvergent has quit [*.net *.split]
thedonvaughn has quit [*.net *.split]
andredieb has quit [*.net *.split]
Alina-malina has quit [*.net *.split]
error404 has quit [*.net *.split]
ws2k3 has quit [*.net *.split]
jrd0 has quit [*.net *.split]
mnemon has quit [*.net *.split]
tris has quit [*.net *.split]
jericon has quit [*.net *.split]
Guest85414_____ has quit [*.net *.split]
denysonique has quit [*.net *.split]
Jelco has quit [*.net *.split]
fella5s has quit [*.net *.split]
davorb has quit [*.net *.split]
terlar has quit [*.net *.split]
moses has quit [*.net *.split]
im0b_ has quit [*.net *.split]
bluehavana___ has quit [*.net *.split]
chuk_ has quit [*.net *.split]
gazoombo has quit [*.net *.split]
jsaak has quit [*.net *.split]
brisbin has quit [*.net *.split]
endash has quit [*.net *.split]
zigidias has quit [*.net *.split]
huttan has quit [*.net *.split]
shaman42 has quit [*.net *.split]
lewellyn has quit [*.net *.split]
derf- has quit [*.net *.split]
ckrailo has quit [*.net *.split]
Apocalypse has quit [*.net *.split]
moppersmurf has quit [*.net *.split]
Brando753-o_O_o is now known as Brando753
Guest47391 is now known as Apocalypse
rcs_ is now known as rcs
<waxjar> alias_method :to_string, :to_s
tris- is now known as tris
<waxjar> oh yay, netsplit
Apocalypse has quit [Changing host]
Apocalypse has joined #ruby
<dann_> waxjar: where to_string is the alias of to_s?
chuk__ is now known as chuk_
<waxjar> yes
bluehavana____ is now known as bluehavana___
Jelco has joined #ruby
Gestahlt_ has joined #ruby
ckrailo_ is now known as ckrailo
jamesaanderson has joined #ruby
<dann_> can I call alias in a class instance?
<benzrf> waxjar: anyway, a monad is just a data type + an implementation of bind + an implementation of return
davorb_ is now known as davorb
Yarou has joined #ruby
Yarou has quit [Changing host]
Yarou has joined #ruby
motto has joined #ruby
<benzrf> bind must be of the type 'm a -> (a -> m b) -> m b'
<benzrf> and return must be 'a -> m a'
gazoombo_ is now known as gazoombo
im0b__ is now known as im0b_
Alina-malina has joined #ruby
brisbin has joined #ruby
mjburgess` has joined #ruby
bahar has joined #ruby
mjburgess has quit [Disconnected by services]
jibi has joined #ruby
<benzrf> waxjar: for example, take the type Maybe:
<benzrf> data Maybe a = Just a | Nothing
mjburgess` is now known as mjburgess
RKornmeyer has joined #ruby
<benzrf> Maybe Int can be Nothing, or Just 3, or Just 5
Tearan_ has quit [Ping timeout: 240 seconds]
dev1x has joined #ruby
<benzrf> Maybe String can be Nothing, or Just "foo", or Just "bar"
<benzrf> waxjar: ok?
spacemud has joined #ruby
denysonique_ has joined #ruby
kiba` has joined #ruby
<waxjar> what is the m in those type declarations?
<benzrf> whatever type is instantiating monad
<benzrf> in this case, Maybe
<benzrf> so for maybe, bind will be this type:
<benzrf> Maybe a -> (a -> Maybe b) -> Maybe b
moppersmurf has joined #ruby
<benzrf> and return will be
<benzrf> a -> Maybe a
ws2k3 has joined #ruby
diegok has joined #ruby
wmoxam_ has joined #ruby
Sp4rKy has quit [Ping timeout: 246 seconds]
<benzrf> anyway, the implementation for bind is super simple
Landshark753 has quit [Ping timeout: 240 seconds]
Skelz0r_ has joined #ruby
<benzrf> bind (Just v) f = f v
<benzrf> bind Nothing f = Nothing
Hamled|Erp has joined #ruby
<benzrf> so is return:
<benzrf> return v = Just v
riking_ has joined #ruby
butblack_ has joined #ruby
moses has joined #ruby
aapzak_ has joined #ruby
matrixise has joined #ruby
phus1on_ has joined #ruby
Jb__ has joined #ruby
magbeat_ has joined #ruby
CptJeanLucPicard has joined #ruby
CptJeanLucPicard has quit [Changing host]
CptJeanLucPicard has joined #ruby
gigetoo_ has joined #ruby
OdNairy_ has joined #ruby
<waxjar> so f *must* take a v?
brugidou_ has joined #ruby
Sourceless_ has joined #ruby
Authenti1ator has joined #ruby
mnemon has joined #ruby
oz` has joined #ruby
ejnahc_ has joined #ruby
CalimeroTeknik_ has joined #ruby
QKO has joined #ruby
Megtasti_ has joined #ruby
kiki_lam1 has joined #ruby
<benzrf> bind :: Maybe a -> (a -> Maybe b) -> Maybe brugidou_
<shevy> dann_ I had to grab something to eat, all of this brain work is making me hungry
<benzrf> *b
lewellyn has joined #ruby
LostMonk_ has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
<benzrf> waxjar: so it takes a Maybe a, and a function from a to Maybe b, and gives you a Maybe b
<waxjar> ok, i think i understand it so far
<benzrf> :)
<shevy> I still don't quite get it... what benzrf described can all be done inside of a method anyway or?
<benzrf> shevy: yeah
<dann_> wb shevy
<benzrf> the key is that now we can chain a bunch of blocks with bind
RoryHugh_ has joined #ruby
<benzrf> without the block needing to do the checking
<shevy> dann_ I did not find enough :( I may have to pillage a nearby flat
xiphias has joined #ruby
<benzrf> the result of each bind can be bound again
<benzrf> waxjar: in haskell, bind is spelled (>>=)
<benzrf> so you can do this:
Dreamer3__ has joined #ruby
<pontiki> you got your haskell in my ruby!
<benzrf> Just 3 >>= \n -> if n == 0 then Nothing else Just 10 / n
<benzrf> the \n -> is a lambda
mary5030 has joined #ruby
<benzrf> like a block in ruby
freerobby has joined #ruby
apeiros_ has joined #ruby
<benzrf> so if you have a bunch of functions called f, g, and h
epsylon` has joined #ruby
<benzrf> and they are all of type (a -> Maybe b)
<benzrf> you can chain them using >>=
<benzrf> Just 3 >>= f >>= g >>= h
mary5030 has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
<benzrf> and just like that, youve made a pipeline
mbytes has joined #ruby
preller_ has joined #ruby
kate_r_ has joined #ruby
Landshark753 has joined #ruby
<waxjar> i see.
[lewellyn] has quit [*.net *.split]
moses_ has quit [*.net *.split]
butblack has quit [*.net *.split]
Vivekananda has quit [*.net *.split]
Megtastique has quit [*.net *.split]
OdNairy has quit [*.net *.split]
apeiros has quit [*.net *.split]
RoryHughes has quit [*.net *.split]
m8 has quit [*.net *.split]
Kiba has quit [*.net *.split]
kate_r has quit [*.net *.split]
ejnahc has quit [*.net *.split]
phus1on has quit [*.net *.split]
LostMonk- has quit [*.net *.split]
gigetoo has quit [*.net *.split]
ArchBeOS-work has quit [*.net *.split]
Dreamer3 has quit [*.net *.split]
Gestahlt has quit [*.net *.split]
wmoxam has quit [*.net *.split]
preller has quit [*.net *.split]
QKO_ has quit [*.net *.split]
Authenticator has quit [*.net *.split]
Sourceless has quit [*.net *.split]
Hamled has quit [*.net *.split]
matrixis1 has quit [*.net *.split]
oz has quit [*.net *.split]
magbeat has quit [*.net *.split]
kiki_lamb has quit [*.net *.split]
ericwood has quit [*.net *.split]
CalimeroTeknik has quit [*.net *.split]
Skelz0r has quit [*.net *.split]
diego_k has quit [*.net *.split]
Riking has quit [*.net *.split]
brugidou has quit [*.net *.split]
aapzak has quit [*.net *.split]
Jb___ has quit [*.net *.split]
epsylon has quit [*.net *.split]
thelamest has quit [*.net *.split]
RubyPanther has quit [*.net *.split]
oz` is now known as oz
butblack_ is now known as butblack
<benzrf> and thats monads.
<Hanmac1> Waitress? there is haskell in my ruby soup ...
<benzrf> hah
<benzrf> >> "ping"
Hanmac has quit [Ping timeout: 240 seconds]
<waxjar> i think i still don't quite understand the why, tho :p
<benzrf> yeah, thats the tricky part
<benzrf> :D
wildroman2 has quit [Remote host closed the connection]
<benzrf> it's like objects
<benzrf> you can understand how classes work without understanding how objects are useful
<benzrf> and the main way to understand it is to write a lot of code with objects and read some code with objects
ericwood has joined #ruby
<benzrf> like objects, monads have a couple of different uses whose only bit in common is that they use the bind operator
niklasb has quit [Ping timeout: 240 seconds]
<dann_> If I have a square named a and another square named b, the coordinates of their upper left corners (in x,y on a rectangular plane of 640x360), and their widths, how can I make a method that checks whether or not they overlap
<benzrf> waxjar: the way i tend to think of it is...
kiki_lam1 is now known as kiki_lamb
niklasb has joined #ruby
<benzrf> waxjar: a type that implements monad represents some kind of wrapper, or computation, or container, or otherwise surrounding value
<dann_> http://puu.sh/65QW9.png keeping each box like so, for example
<canton7> dann_, bit of basic geometry. try drawing overlapping boxes, taking note of where the corners of one lie in relation to the corners of the others
Asher has quit [Quit: Leaving.]
sec^nd has quit [Remote host closed the connection]
<dp> it seems that the YAML gem defaults times without a timezone to UTC. Is there a way to change this?
wildroman2 has joined #ruby
<benzrf> waxjar: and monads allow you to have a pipeline of functions where each function modifies the surrounding structure
<benzrf> or uses it as an environment
Beoran_ has quit [Read error: Connection reset by peer]
<dann_> canton7: could you explain?
Landshark753 has quit [Ping timeout: 240 seconds]
Mon_Ouie has quit [Ping timeout: 240 seconds]
sec^nd has joined #ruby
thelamest has joined #ruby
<benzrf> waxjar: in the maybe monad, you're wrapping a straight value with the context of being existant or not
Vivekananda has joined #ruby
Beoran_ has joined #ruby
<benzrf> waxjar: you can then write a function pipeline where each function has the ability to terminate the pipeline
<benzrf> waxjar: that is, modify the context of the computatoin
<benzrf> *computation
<benzrf> another kind of monad is the Writer monad
<canton7> dann_, so two boxes overlap if a corner of one lies between both corners of the other, on both axes. try drawing them
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
Landshark753 has joined #ruby
<benzrf> waxjar: where the monadic value is a pair of whatever 'a' is, and a string or other logging value
mehlah has joined #ruby
<benzrf> (a, String) -> (a -> (b, String)) -> (b, String)
<benzrf> waxjar: bind is implemented like this:
<canton7> dann_, there are loads and loads of posts on it. e.g. http://shawndeprey.blogspot.co.uk/2012/03/bounding-box-collision-detection.html
jmimi has quit [Ping timeout: 245 seconds]
<benzrf> (v, log) >>= f = let (newV, newLog) = f v in (newV, log ++ newLog)
<benzrf> waxjar: that is, it replaces the value with the function's resulting value, and appends the function's log to the existing log
Txandy|away is now known as Txandy
<benzrf> waxjar: so if you have f, g, and h as (a -> (b, String)), you can chain them like:
<benzrf> (1, "") >>= f >>= g >>= h
<benzrf> waxjar: and the output will be the pipeline result and the logs joined together
<dann_> canton7: this is much simpler than what I had in mind. thank you
<benzrf> waxjar: again, you have a regular function pipeline, but each function has the ability to modify or add to the structure that exists during the pipeline
<benzrf> in this case, appending to logs
lewellyn has quit [Ping timeout: 240 seconds]
jamesaxl has quit [Ping timeout: 240 seconds]
lewellyn has joined #ruby
aspires has quit []
<pontiki> dp: i don't know of a direct way, but look here: http://ruby-doc.com/stdlib-2.0/libdoc/psych/rdoc/Psych/ScalarScanner.html#method-i-parse_time and open up the source so you can see how that method is implemented
<benzrf> waxjar: this is why monads arent as useful in imperative languages; a lot of what they let you do can be solved by mutation of an implicit parameter like an ivar
mojjojo has quit [Quit: mojjojo]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<benzrf> waxjar: the other major usefulness of monads is for letting the function control the flow of the pipeline, like in Maybe, and that can often be done with things like exceptions
SkramX has quit [Quit: Page closed]
pedrocr has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
<benzrf> waxjar: finally, monads can save on boilerplate code for wrapping things into and out of types, but in a dynamically typed language like ruby that's not even an issue
<benzrf> *by moving the boilerplate into the binding operator
<pedrocr> has anyone ever seen test/unit return "Finished tests in 0.000614s, 1628.5451 tests/s, 1628.5451 assertions/s."
centipedefarmer has joined #ruby
<benzrf> waxjar: so ruby really has very little use for monads
kate_r_ has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<pedrocr> I have a single test and a single "assert(true)"
jmimi has joined #ruby
<pedrocr> very odd
<waxjar> benzrf: i thought i got it but now im not so sure :P
baroquebobcat has joined #ruby
flame_ has joined #ruby
<dp> pontiki: sadly, I'm doing YAML.load() on a series of data; so it's not just a single line
<benzrf> oh boy
<benzrf> sorry @_@
Landshark753 has quit [Ping timeout: 240 seconds]
<benzrf> im bad at keeping myself from going into infodump mode
<dp> actually; it looks like it's part of the YAML spec
<dp> to convert it to UTC
<waxjar> haha. thx though
<waxjar> i am now one step closer to being enlightened :D
<benzrf> actually the 'wrapping into and out of types' bit is more of a Functor thing
<benzrf> waxjar: woot!
jamesaxl has joined #ruby
<benzrf> just for the record, instances of Functor implement 'fmap', where:
<pontiki> dp: what does that have to do with it?
<benzrf> fmap :: (a -> b) -> f a -> f b
<dp> which is annoying, because it seems there's no way to specify a TZ without using a time offset; terrible for Daylight Saving Time
<benzrf> waxjar: that is to say, it takes a function that takes a regular value and applies it to a wrapped value
joaoh82 has joined #ruby
<benzrf> waxjar: so for lists, fmap is just map
<benzrf> waxjar: for Maybe, it looks like:
<benzrf> fmap f (Just v) = Just (f v)
mbytes has quit [Ping timeout: 272 seconds]
<benzrf> fmap f Nothing = Nothing
Landshark753 has joined #ruby
<waxjar> now that makes sense :P
<benzrf> waxjar: yes, functors are closer to what youre used to
<benzrf> waxjar: by definition, every instance of monad is also an instance of Functor
<benzrf> because fmap can be implemented in terms of >>= if you want to
<benzrf> Functor is a superclass of Monad
<benzrf> or it would be
<benzrf> if the designers hadnt messed up
mojjojo has joined #ruby
FifthWork has joined #ruby
<benzrf> mojjojo: are you missing an o
endash has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
wallerdev has joined #ruby
<mojjojo> benzrf: why do you think so
vlad_starkov has joined #ruby
freerobby has quit [Quit: Leaving.]
<benzrf> mojo jojo?
joaoh82 has quit [Ping timeout: 252 seconds]
smathieu has joined #ruby
<benzrf> waxjar: i think of fmap as taking off the wrapper, applying the function, then putting the wrapper back on
<benzrf> waxjar: whereas bind takes off the wrapper, applies the function, then merges the wrapper with the new one
freerobby has joined #ruby
<benzrf> because applying the function gives a new value AND a new wrapper
lewellyn has quit [Ping timeout: 240 seconds]
<waxjar> ah, i see.
lewellyn has joined #ruby
shaman42_ has quit [Ping timeout: 240 seconds]
shaman42 has joined #ruby
<benzrf> except it's waaay more complicated than that
<benzrf> but that's sort of the general idea
byprdct has joined #ruby
<riking_> hey benzrf
<benzrf> it's a useful way to think about it until you get a better mental model
<benzrf> and those are harder to transfer
<benzrf> riking_: sup
riking_ is now known as Riking
Riking has quit [Changing host]
Riking has joined #ruby
<Riking> how'd i do
<benzrf> im lookin
soobus has quit [Ping timeout: 260 seconds]
doodlehaus has joined #ruby
phipes has joined #ruby
<waxjar> thx for explaining benzrf :) it'll be a little easier next time im trying to wrap (badum tssh) my head around it
<benzrf> Riking: not bad ;p
<benzrf> wanna see my implementation?
<Riking> sure
rickruby has joined #ruby
<Riking> it uses a top-level method_missing right?
<benzrf> no, it uses instance_eval
<benzrf> which runs the block in the context of an object
<benzrf> :u
<Riking> oooh
<benzrf> mine is different in other ways tho
<benzrf> i build up a tree, then serialize it
<benzrf> instead of using strings from the start
<benzrf> oh wait
<benzrf> yeah ok
<Riking> yeah, i see
wildroman2 has quit [Remote host closed the connection]
assurbanipal has quit [Quit: Leaving]
<dp> pontiki: is there a way to determine if a datetime from YAML came in as UTC, and got converted?
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
<dp> IE, a datetime.original_value ?
ace_striker has joined #ruby
ace_striker has quit [Changing host]
ace_striker has joined #ruby
ace_striker has joined #ruby
mojjojo has quit [Quit: mojjojo]
monkegjinni has joined #ruby
wildroman2 has joined #ruby
FifthWork has quit [Ping timeout: 246 seconds]
flubba has quit [Remote host closed the connection]
tacos1de has quit [Ping timeout: 240 seconds]
skulker has joined #ruby
pwh has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
OdNairy_ is now known as OdNairy
fijimunkii has joined #ruby
phansch has quit [Quit: Leaving]
flubba_ has joined #ruby
jameshyde has joined #ruby
m8 has joined #ruby
yosafbridge has quit [Ping timeout: 245 seconds]
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
motto has quit [Ping timeout: 272 seconds]
vlad_starkov has joined #ruby
dp has left #ruby [#ruby]
siwica has joined #ruby
Advocation has joined #ruby
smathieu has quit [Read error: Connection reset by peer]
smathieu has joined #ruby
<benzrf> Riking: allow me 2 think of a new challenge
* benzrf ponders
<benzrf> Riking: since I did this one recently and it was fun:
<benzrf> write a gravity simulator
Advocation has quit [Read error: Operation timed out]
Kilo`Byte has quit [Quit: kilobyte22.de]
<benzrf> that is, a program that tracks mulitple perfect spheres in 2d space
<benzrf> and simulates gravity
<Riking> there was someone over at the dorm doing that
<benzrf> preferably using some kind of graphix library to display it
<benzrf> I recommend Gosu, i spent 20 minutes reading the tutorial and that was all I needed to do it
<benzrf> although i did have to copy somebody's code to draw circles without using a premade image
jamesaanderson has joined #ruby
<benzrf> it was fun, anyway :)
<Riking> they were using Processing, which is basically java + a graphics library as static imports + color as a syntactic sugar alias for int
<benzrf> mehlah:
<benzrf> *meh
<benzrf> ruby ftw
<Riking> it was the tool presented in an intro programming class, so
<benzrf> as an alternative: write a simple web site (recommend sinatra) that lets me sign up for a user account and edit a textbox that persists
lewix has joined #ruby
<benzrf> no need to make any data persist between runs of the program, you can just store it in variables
smathieu has quit [Ping timeout: 245 seconds]
<dann_> there are physics libraries for gosu I think
yosafbridge has joined #ruby
<benzrf> make 4 pages: homepage, sign up page, log in page, and editing page
<benzrf> you can click a submit button to save your current text, dont worry bout ajax
<benzrf> dann_: i saw chipmunk
dr_bob has joined #ruby
<Riking> check this out http://www.twitch.tv/funforfreedom
dagen has joined #ruby
<benzrf> oh man i dont want spoilers
grep_away is now known as grep_awesome
<benzrf> is albw like the previous 2 ds ones where the control scheme is stupid terrible
<Riking> can't tell
<benzrf> bah
* benzrf goes back to replaying the gb[a] zeldas over and over
<benzrf> shit, i think ive played all of those at least tiwce
<benzrf> *twice
Astralum has quit [Read error: Connection reset by peer]
<benzrf> never owned a console so i had to emulate :I
<benzrf> and ds emulation is imperfect at best
<benzrf> also n64/gamecube emu
aryaching_ has joined #ruby
gregoriokusowski has joined #ruby
<benzrf> Riking: btw codewars is back up
Astralum has joined #ruby
<Riking> ah, yeap
axl_ has quit [Quit: axl_]
<Riking> signed up
<benzrf> :)
wildroman2 has quit []
aryaching has quit [Ping timeout: 260 seconds]
skulker has quit [Remote host closed the connection]
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
<Riking> they just hit $53K
vertreko has quit [Quit: WeeChat 0.4.1]
<Riking> after beating every single zelda game
<benzrf> shit
<Riking> including spirit tracks and the CD-i games on a second stream
Guest77987 has quit [Remote host closed the connection]
eka has joined #ruby
Squarepy has joined #ruby
<benzrf> wow
dogweather has quit [Remote host closed the connection]
dogweather has joined #ruby
Txandy has quit [Quit: Leaving...]
FifthWork has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skulker has joined #ruby
simoz8 has joined #ruby
dogweather has quit [Ping timeout: 260 seconds]
crapple has quit [Ping timeout: 265 seconds]
ambushsabre has quit [Quit: rip]
smathieu has joined #ruby
wallerdev has quit [Quit: wallerdev]
Xeago has quit [Remote host closed the connection]
Landshark753 has quit [Ping timeout: 240 seconds]
crapple has joined #ruby
wildroman2 has quit [Remote host closed the connection]
Landshark753 has joined #ruby
smathieu has quit [Ping timeout: 245 seconds]
ambushsabre has joined #ruby
zipper has joined #ruby
bricker`LA has quit [Ping timeout: 265 seconds]
bricker`LA has joined #ruby
nisstyre has joined #ruby
amundj has joined #ruby
psyl0n has quit [Remote host closed the connection]
Mattias has left #ruby ["Leaving"]
dagen has left #ruby [#ruby]
pedrocr has left #ruby [#ruby]
mklappstuhl has joined #ruby
skulker has quit [Remote host closed the connection]
johnyboy6000 has joined #ruby
alexherbo2 has joined #ruby
chrisan has quit [Ping timeout: 265 seconds]
subbyyy has joined #ruby
flubba_ has quit [Remote host closed the connection]
flubba has joined #ruby
doodlehaus has quit [Remote host closed the connection]
johnyboy6000 has quit [Remote host closed the connection]
heidi has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
Megtasti_ has quit []
doodlehaus has joined #ruby
Megtastique has joined #ruby
subbyyy has quit [Ping timeout: 265 seconds]
Megtastique has quit [Client Quit]
subbyyy has joined #ruby
codenapper has quit [Quit: codenapper]
wallerdev has joined #ruby
<benzrf> hi
<benzrf> why would the files for a gem i installed be unreadable to non-root?
<shevy> benzrf hmm seems odd
<shevy> are you sure this is the real error message?
<benzrf> the real error message is the same as nonexistant
nomadic_ has quit [Ping timeout: 245 seconds]
lethjakman has quit [Quit: WeeChat 0.4.0]
<benzrf> but i found the file and root is the only one who can read it
<benzrf> and I can require it if I use sudo pry
droo has joined #ruby
heidi has quit [Quit: Leaving.]
skulker has joined #ruby
<benzrf> does anybody know when and/or where rubyconf will be this eyar
<benzrf> *year
cbetta_afk is now known as cbetta
dru has quit [Ping timeout: 245 seconds]
nomadic has joined #ruby
cbetta is now known as cbetta_afk
aryaching_ has quit []
dogweather has joined #ruby
dapz has quit [Ping timeout: 246 seconds]
Czupa has quit [Ping timeout: 245 seconds]
ambushsabre has quit [Quit: rip]
shime has quit [Ping timeout: 272 seconds]
skulker has quit [Remote host closed the connection]
matchaw has joined #ruby
croaky has quit [Ping timeout: 272 seconds]
aep_ is now known as aep
ambushsabre has joined #ruby
end_guy has quit [Remote host closed the connection]
skulker_ has joined #ruby
jmo has joined #ruby
end_guy has joined #ruby
andredie` is now known as andredieb
andredieb is now known as Guest95227
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
jmo has quit [Ping timeout: 272 seconds]
jamesaanderson has joined #ruby
burlyscudd has joined #ruby
Aryasam has joined #ruby
sambao21 has joined #ruby
Landshark753 has quit [Ping timeout: 240 seconds]
bricker`LA has quit [Ping timeout: 245 seconds]
kstephens has quit [Ping timeout: 246 seconds]
bricker`LA has joined #ruby
kalamazoo has joined #ruby
Landshark753 has joined #ruby
monkegjinni has quit [Remote host closed the connection]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
IceDragon has quit [Read error: No route to host]
centipedefarmer has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
subbyyy has quit [Ping timeout: 260 seconds]
nonconve1gent has quit [Ping timeout: 245 seconds]
Aryasam has quit [Ping timeout: 252 seconds]
doodlehaus has quit [Remote host closed the connection]
<shevy> benzrf no idea, probably somewhere in USA?
joaoh82 has joined #ruby
cj3kim_ has joined #ruby
<benzrf> eh
jamesaanderson has joined #ruby
kiba` is now known as kiba
mklappstuhl has quit [Remote host closed the connection]
marr has joined #ruby
klip has joined #ruby
cj3kim_ has quit [Ping timeout: 272 seconds]
drumusician has quit [Ping timeout: 272 seconds]
IceDragon has joined #ruby
cj3kim_ has joined #ruby
pskosinski_ has joined #ruby
klip has quit [Client Quit]
nisstyre has quit [Ping timeout: 272 seconds]
klip has joined #ruby
siwica has quit [Ping timeout: 272 seconds]
mary5030 has joined #ruby
<shevy> wow
pskosinski has quit [Ping timeout: 240 seconds]
<shevy> the fish shell has really cool tab completion
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
<shevy> "cd /t" a thin grey background is shown
smathieu has joined #ruby
<shevy> sadly, the fish shell is also more annoying to use than bash :(
alexherbo2 has joined #ruby
mzdravkov has left #ruby [#ruby]
croaky has joined #ruby
stkowski has joined #ruby
vlad_sta_ has joined #ruby
flubba_ has joined #ruby
Asher has joined #ruby
klip has quit [Ping timeout: 240 seconds]
Trynemjoel has quit [Ping timeout: 245 seconds]
wildroman2 has joined #ruby
vlad_starkov has quit [Ping timeout: 265 seconds]
klip has joined #ruby
doodlehaus has joined #ruby
smathieu has quit [Ping timeout: 246 seconds]
banghouse has quit [Remote host closed the connection]
flubba has quit [Ping timeout: 245 seconds]
kstephens has joined #ruby
claymore has quit [Quit: Leaving]
<pontiki> benzrf: san diego, i think?
skulker_ has quit [Remote host closed the connection]
lxsameer has quit [Quit: Leaving]
yfeldblum has joined #ruby
croaky has quit [Ping timeout: 245 seconds]
klip has quit [Quit: leaving]
klip has joined #ruby
flame_ has quit [Quit: Computer has gone to sleep.]
yfeldblum has quit [Client Quit]
Trynemjoel has joined #ruby
emocakes has joined #ruby
<benzrf> pontiki: do you know what month itll be in?
simoz8 has quit [Ping timeout: 245 seconds]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<emocakes> benzrf, usually 9 months from conception
<emocakes> so pontiki, you are due in september?
<emocakes> :D
<emocakes> congrats
flame_ has joined #ruby
<shevy> lol emocakes
<pontiki> benzrf: not sure
<emocakes> shevy have you moved on to a text editor that actually works?
<emocakes> :P
<pontiki> i don't know if there's any announcement yet
<shevy> oh man
<pontiki> it's not on lanyard
<benzrf> shevy: vim4lyfe
<shevy> I want to leave all problems of 2013 in 2013
<shevy> 2014 is so young! so great! so awesome
<emocakes> good, so you are using sublime text now
<emocakes> instead of that thing
<benzrf> pontiki: do you think there is any chance of it being during the summer
<emocakes> bluefish
Guedes0 has joined #ruby
<emocakes> I told you already benzrf, september
<benzrf> oh
<pontiki> benzrf: i am not privy to such talk
<emocakes> its like you've never had kids
<benzrf> emocakes: i thought you were only joking
<benzrf> oh wait
<benzrf> ugh
<emocakes> >:D
<benzrf> ive been TRICKE
<shevy> you'll never know if emocakes is joking
<benzrf> D
chomskiii has joined #ruby
<emocakes> tricksy nasty little emocakes
<pontiki> i just assume it's not but jokes
Trynemjoel has quit [Client Quit]
flame_ has quit [Client Quit]
gregoriokusowski has quit [Quit: gregoriokusowski]
<emocakes> I think using rails has made me lazy
<emocakes> honestly
ch0mskiii has quit [Ping timeout: 240 seconds]
banghouse has joined #ruby
banghouse is now known as Guest66407
russt has quit [Ping timeout: 252 seconds]
<shevy> hehe
Wolland has quit [Remote host closed the connection]
<shevy> as long as it has not ruined your brains
bauerbob has left #ruby ["Leaving"]
Guest66407 is now known as banghouse
<emocakes> I'm not too sure shevy
__class__ has joined #ruby
<emocakes> I think my brain went into survival mode after programming with cakephp for 2 years
<emocakes> when it found safe refuge, i.e: rails; it seems to have become allergic to challenges
Trynemjoel has joined #ruby
<shevy> hmm
<emocakes> and now if things have brackets and semicolons, i can't handle it
<shevy> that's how I feel with sophisticated ruby code... I want code to be as simple and as straight as possible
<emocakes> all my js is coffeescript, all my html is slim / jade templates
<benzrf> shevy: pfft
<benzrf> COMPLEXITY is FUN
<shevy> benzrf you will get older
<benzrf> lies
Guedes0 has quit [Remote host closed the connection]
<benzrf> getting older is for old people
<emocakes> peterpan
<shevy> benzrf then one day you'll understand why people find it hard to change
mojjojo has joined #ruby
<shevy> because everything they knew once, changed!
Squarepy has quit [Read error: Connection reset by peer]
<benzrf> im literally peter pan
<benzrf> LITERALLY
<shevy> can you fly
cj3kim_ has quit [Remote host closed the connection]
doodlehaus has quit [Remote host closed the connection]
<benzrf> yes
<benzrf> [1] pry(main)> Human.get_by_irc_nick("benzrf").can_fly?
<benzrf> => true
Asher has quit [Quit: Leaving.]
jmimi1 has joined #ruby
madb055 has quit [Read error: Connection reset by peer]
centipedefarmer has joined #ruby
jmimi has quit [Ping timeout: 272 seconds]
<shevy> can you still code in python too?
<benzrf> kinda
<shevy> hehe
<shevy> it's a new year man
<shevy> you are good to forget :)
<benzrf> b-but my lucrative python contracts!
workmad3 has joined #ruby
figgleberry has joined #ruby
<apeiros_> benzrf: didn't you say you were underage?
apeiros_ is now known as apeiros
<benzrf> yea
croaky has joined #ruby
<apeiros> I thought you couldn't have contracts when underage :)
<emocakes> why not apeiros?
<benzrf> i was joking, of course
<emocakes> its not like, if when given a contract online, people find out how old you are
<benzrf> i think i mightve written a program for 2$ once, idr
<emocakes> are you indian?
<benzrf> although!
<benzrf> i did make like 10$ over a few months from adf.ly on my minecraft mod!
<emocakes> /pakistani/ bengali / same thing
<benzrf> that was fun
<benzrf> no im murican
<emocakes> oh, sorry to hear that benzrf
<apeiros> emocakes: mind to tell me how you sign an online contract?
<emocakes> take a screenshot and use mspaint apeiros
<emocakes> then send the screenshot back
<emocakes> signed
<emocakes> or, if you are advanced, sign it with your pgp key
<apeiros> yeah, I can see how you do your business :-p
<emocakes> ;)
CpuID has joined #ruby
jamesaanderson has joined #ruby
<shevy> this is how business is done in nigeria!
jamesaanderson has quit [Max SendQ exceeded]
<shevy> of course the swiss can not be tricked as easy as that :<
jamesaanderson has joined #ruby
kc8qvp_ has joined #ruby
skulker has joined #ruby
<kc8qvp_> Who thought having gem run sudo behind my back would be a good idea, and how do I tell it to never do that?
kitak has joined #ruby
joriso has joined #ruby
doodlehaus has joined #ruby
ambushsabre has quit [Quit: rip]
robert_ has joined #ruby
johnyboy6000 has joined #ruby
<apeiros> mv sudo sduo
butblack has quit [Quit: butblack]
skulker has quit [Remote host closed the connection]
<apeiros> there you go :) no software will use sudo behind your back anymore
<shevy> kill sudo
<shevy> only noobs need it anyway
estebistec has joined #ruby
ambushsabre has joined #ruby
kirun has quit [Quit: Client exiting]
zz_CripperZ is now known as CripperZ
laphlaw has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
<kc8qvp_> apeiros: vaguely helpful, and what I figured I will have to do because gem is retarded
<kc8qvp_> shevy: n00b.
<shevy> kc8qvp_ I dont use sudo. go learn you some programming then you won't have to remain incompetent forever
CripperZ is now known as N00D
<kc8qvp_> haha, "ok".
smathieu has joined #ruby
s_kilk has joined #ruby
olivier_bK has quit [Ping timeout: 246 seconds]
dr_bob has left #ruby [#ruby]
smathieu has quit [Read error: Connection reset by peer]
smathieu has joined #ruby
kitak has quit [Remote host closed the connection]
doodlehaus has quit [Remote host closed the connection]
doodlehaus has joined #ruby
smathieu_ has joined #ruby
Killa has joined #ruby
fantazo has quit [Ping timeout: 272 seconds]
wildroman2 has quit [Remote host closed the connection]
smathieu has quit [Ping timeout: 245 seconds]
<kc8qvp_> ok, I don't know why I'm bothering with this, but out of curiosity
<kc8qvp_> shevy: what exactly is your issue with sudo?
doodlehaus has quit [Remote host closed the connection]
<shevy> kc8qvp_ I have no issue with it
s_kilk has quit [Quit: Leaving]
_honning_ has joined #ruby
threesome has quit [Read error: Operation timed out]
<kc8qvp_> ok, so how do you get from "sudo user" -> "n00b" ?
smathieu_ has quit [Ping timeout: 245 seconds]
<shevy> because only noobs need it
<kc8qvp_> explain.
<shevy> why would you need sudo kc8qvp_ ?
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<kc8qvp_> people don't need sudo, it's a convenience.
<kc8qvp_> I've been a systems administrator for a long time, and I can tell you that when used the way they typically are, sudo and su are equivalent, and much more convenient than requiring explicit root logins. and when you need more flexibility, sudo has it available whereas the other two methods do not.
ambushsabre has quit [Quit: rip]
Jetchisel has joined #ruby
<apeiros> sudo can improve security
<apeiros> you can limit the powers of sudo and in such a way enable a user to do specific tasks
shime has joined #ruby
<kc8qvp_> apeiros: exactly. but you do have to be really careful when using it that way.
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
<kc8qvp_> it's easy for a n00b to give away root w/ sudo w/o intended to.
<apeiros> kc8qvp_: I too think sudo isn't a n00b tool
cj3kim has joined #ruby
<emocakes> i just do sudo -s
fightback has joined #ruby
<apeiros> I do think too much software wants to be installed with sudo
cbetta_afk is now known as cbetta
OdNairy has joined #ruby
<emocakes> blame system file permissions then apeiros
<dann_> guys
<apeiros> and I think the way permissions currently work is utterly broken and a horrible mess. but that's another story :)
<kc8qvp_> I'm offended that I ran `gem install --user-install` as my user, and ended up with gems installed in /var/lib also.
<kc8qvp_> that's just... wtf.
jmimi1 has quit [Ping timeout: 240 seconds]
<kc8qvp_> apeiros: nah; unix permissions are grand.
<kc8qvp_> apeiros: you have ACLs when you really ned to do something unix perms can't, but you'll notice they're rarely used
<kc8qvp_> Those who fail to understand Unix are doomed to re-invent it, poorly. --Henry Spencer
<dann_> i have a method defined as jump(thing, high = 2, fast = 3).
<apeiros> kc8qvp_: "please install this with sudo" - hurray, lets give essentially untrusted software access to everything.
pushpak has quit [Quit: Linkinus - http://linkinus.com]
<kc8qvp_> pretty much everything on unix can be installed system-wide or in your homedir.
<kc8qvp_> some make it easier than others.
<dann_> i want to call jump "barrier", 2, 5. but 2 is a default, so I'm wasting time writing it
<apeiros> the fact that the software is the one in power is what bothers me.
<dann_> what do
<Killa> "Windows security center would like you to install this" *Clicks yes without reading about anything*....
<apeiros> it shouldn't be "this software makes it easy to be installed user-wide without sudo"
<kc8qvp_> I don't really understand what you're getting at exactly.
fightback has quit [Client Quit]
<apeiros> dann_: you'll have to be bothered, I fear
<Killa> If your installing any kind of software you should read about it and understand what it is before attemping to install it.
<dann_> damnit matz
<apeiros> dann_: if it's your method definition, you could use keyword args
* Killa leaves on that note.
<kc8qvp_> Killa: that's assuming it doesn't lie. the only real solution is compile everything yourself :)
alexherbo2 has joined #ruby
<apeiros> def jump(thing, high: 2, fast: 3); … jump "barrier", fast: 5
<dann_> *args and then args[?]
<dann_> ?
<havenwood> you should write any software you use yourself, and be sure to do a polygraph on yourself from time to time to make sure you're not being malicious
<kc8qvp_> read all the code, and hope you don't have an inception-style compiler hack
<apeiros> Killa: you read the source code of every installer?
flame_ has joined #ruby
<kc8qvp_> havenwood: exactly
<apeiros> Killa: excuse me if I don't believe you and call that bollocks
<dann_> ohh yeah hash args are a good idea
<dann_> thanks
mklappstuhl has joined #ruby
<apeiros> Killa: and even if you did, it's still bollocks. utterly unusable modus operandi.
figgleberry has quit [Ping timeout: 252 seconds]
kep has quit [Quit: WeeChat 0.4.2]
workmad3 has quit [Ping timeout: 240 seconds]
lagweezle has joined #ruby
lagweezle has quit [Client Quit]
Astralum has quit [Ping timeout: 240 seconds]
<alexherbo2> Hey guys, how can i make my script supports regexp multiple line?
<apeiros> alexherbo2: regex by default support multiline
<apeiros> alexherbo2: you can supply the m flag to make . match newlines
mklappstuhl has quit [Ping timeout: 240 seconds]
xiphias has quit [Ping timeout: 240 seconds]
<alexherbo2> apeiros: i would my script works on streams.
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
matchaw has quit [Read error: Operation timed out]
Kilo`Byte has joined #ruby
xiphias has joined #ruby
psyl0n has joined #ruby
dawe has quit [Quit: leaving]
<alexherbo2> i didn’t find a lib that turn regexp working on stream.
<alexherbo2> i doubt it exists in ruby.
<alexherbo2> it’s a shame :/
lewix has quit [Remote host closed the connection]
MrZYX is now known as MrZYX|off
<alexherbo2> apeiros: why regexp are not multiline by default? (doesn’t solve the issue)
<apeiros> alexherbo2: do you actually read what I write?
<alexherbo2> yes
<apeiros> alexherbo2: I said they ARE multiline. only . is by default not matching newline.
<alexherbo2> i know regexp support multiline
<alexherbo2> i’m looking for something like https://code.google.com/p/streamflyer
Azure has quit [Quit: My MBP went to sleep.]
axl_ has joined #ruby
laphlaw has quit [Ping timeout: 272 seconds]
Xeago has joined #ruby
gigetoo_ has quit [Remote host closed the connection]
_honning_ has quit [Ping timeout: 272 seconds]
<alexherbo2> apeiros: s/regexp/./
lagweezle has joined #ruby
lagweezle has quit [Client Quit]
gigetoo has joined #ruby
wildroman2 has joined #ruby
johnyboy6000 has quit [Remote host closed the connection]
totalmajor has quit [Remote host closed the connection]
ambushsabre has joined #ruby
estebistec has quit [Remote host closed the connection]
centipedefarmer has quit [Remote host closed the connection]
hadees has joined #ruby
wildroman2 has quit [Ping timeout: 246 seconds]
croaky has quit [Ping timeout: 272 seconds]
Brolen has joined #ruby
pskosinski_ is now known as pskosinski
guardianx has joined #ruby
jameshyde has quit [Quit: Leaving.]
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eka has quit [Quit: Computer has gone to sleep.]
cj3kim has quit [Remote host closed the connection]
coffeina has joined #ruby
sec^nd has quit [Remote host closed the connection]
sec^nd has joined #ruby
dann_ has quit [Quit: Page closed]
narcan has joined #ruby
lewix has joined #ruby
kalamazoo has quit [Remote host closed the connection]
kalamazoo has joined #ruby
kalamazoo has quit [Remote host closed the connection]
nateberkopec has joined #ruby
tt1187 has joined #ruby
jmo has joined #ruby
ambushsabre has quit [Quit: rip]
kalamazoo has joined #ruby
ambushsabre has joined #ruby
meatherly has joined #ruby
jmo has quit [Ping timeout: 272 seconds]
hadees has quit [Quit: hadees]
simoz8 has joined #ruby
Soliah has joined #ruby
zipper has quit [Quit: leaving]