apeiros changed the topic of #ruby to: Ruby 1.9.3-p374: http://ruby-lang.org (ruby-2.0.0-rc1) || Paste >3 lines of text on http://gist.github.com
m8 has quit [Quit: Sto andando via]
jduan1981 has joined #ruby
ffranz has joined #ruby
samuel02 has quit [Remote host closed the connection]
ffranz has quit [Remote host closed the connection]
ffranz has joined #ruby
zyrex has joined #ruby
reset has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
banisterfiend has joined #ruby
wargasm1 has joined #ruby
maj has quit [Quit: Textual IRC Client: www.textualapp.com]
subbyyy_ has joined #ruby
mmitchell has quit [Remote host closed the connection]
maj has joined #ruby
luckyruby has quit [Remote host closed the connection]
joshcheek has quit [Ping timeout: 264 seconds]
wargasm has quit [Ping timeout: 245 seconds]
chimkan has quit [Read error: Connection reset by peer]
banister_ has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
s__dana has quit [Quit: s__dana]
robotmay has joined #ruby
jduan1981 has quit [Read error: Connection reset by peer]
mengu__ has quit [Quit: Leaving]
pu22l3r has quit [Remote host closed the connection]
techhelp has joined #ruby
jduan1981 has joined #ruby
mmitchell has joined #ruby
gyre007 has joined #ruby
c0rn has quit [Ping timeout: 245 seconds]
ebobby has quit [Ping timeout: 255 seconds]
Takehiro has joined #ruby
mmitchell has quit [Remote host closed the connection]
c0rn has joined #ruby
tomzx has joined #ruby
AntiTyping has joined #ruby
maj has quit [Quit: Computer has gone to sleep.]
dougireton has quit [Remote host closed the connection]
Takehiro has quit [Ping timeout: 240 seconds]
tspike has quit [Quit: leaving]
bawigga has quit [Quit: Textual IRC Client: www.textualapp.com]
arya has quit [Ping timeout: 248 seconds]
pcarrier has quit [Ping timeout: 264 seconds]
moos3 has joined #ruby
bavarious has joined #ruby
horofox has joined #ruby
pcarrier has joined #ruby
marr has quit [Ping timeout: 248 seconds]
bavarious has left #ruby ["quit"]
arya has joined #ruby
idkazuma has joined #ruby
slyv has joined #ruby
jduan1981 has quit [Read error: Connection reset by peer]
slyv has quit [Max SendQ exceeded]
mrsolo has quit [Quit: This computer has gone to sleep]
slyv has joined #ruby
slyv has quit [Max SendQ exceeded]
slyv has joined #ruby
idkazuma has quit [Remote host closed the connection]
jduan1981 has joined #ruby
slyv has quit [Max SendQ exceeded]
mrsolo has joined #ruby
jduan1981 has quit [Client Quit]
blazes816 has quit [Quit: blazes816]
blazes816 has joined #ruby
blazes816 has left #ruby [#ruby]
mneorr has joined #ruby
tylersmith has joined #ruby
chrishunt has quit [Quit: Leaving...]
<graft> can i include a module on an instance variable somehow?
<graft> like have a whole suite of methods that are just defined on that one object, but not other objects of that class?
RurouniJones has joined #ruby
slyv has joined #ruby
<slyv> Hey, I am having trouble installing rmagick
daniel_- has quit [Quit: WeeChat 0.3.9.2]
<Hanmac> graft obj.extend Module
<slyv> I keep on getting this error: "Can't install RMagick 2.13.1. Can't find Magick-config"
apok has joined #ruby
jekotia has joined #ruby
<graft> Hanmac: perfect, thanks
<Hanmac> slyv did you install the -dev packages too?
<slyv> No, how can I do that?
<Hanmac> slyv what is your operating system?
<slyv> I'm on a shared hosting, debian.
idkazuma has joined #ruby
elkclone has quit [Quit: It's never too late to unplug and run.]
alanjc has joined #ruby
RurouniJones has quit [Remote host closed the connection]
wyhaines has quit [Remote host closed the connection]
techhelp has quit [Quit: This computer has gone to sleep]
dyrot has quit [Ping timeout: 244 seconds]
zyrex has quit [Quit: leaving]
mrsolo has quit [Quit: Leaving]
AntiTyping has quit [Ping timeout: 245 seconds]
rupee has quit [Ping timeout: 264 seconds]
nfk has quit [Quit: yawn]
yfeldblum has quit [Quit: Leaving]
yshh has joined #ruby
mneorr has quit [Remote host closed the connection]
mythical has joined #ruby
chrishunt has joined #ruby
aantix has joined #ruby
<Hanmac> slyv there should be libimagick-dev or similar packages... install them with apt-get
Takehiro has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
AntiTyping_ has joined #ruby
yshh_ has quit [Ping timeout: 252 seconds]
mythical has quit [Client Quit]
yshh has quit [Remote host closed the connection]
shiro has joined #ruby
yshh has joined #ruby
pewter_tao has quit [Ping timeout: 255 seconds]
Takehiro has quit [Ping timeout: 252 seconds]
meoblast001 has joined #ruby
Spooner has quit [Read error: Connection reset by peer]
AntiTyping_ has quit [Ping timeout: 252 seconds]
brimil01 has quit [Quit: Linkinus - http://linkinus.com]
mikepack has joined #ruby
x82_nicole has joined #ruby
moshee has quit [Ping timeout: 276 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
arya_ has joined #ruby
TomJ has quit [Quit: TomJ]
statarb3 has quit [Ping timeout: 252 seconds]
Vert has quit [Ping timeout: 252 seconds]
sn0wb1rd has quit [Quit: I will be right back]
mjolk has quit [Quit: This computer has gone to sleep]
pcarrier has quit []
bjeanes has quit [Ping timeout: 244 seconds]
pcarrier has joined #ruby
peteyg has quit [Ping timeout: 260 seconds]
arya has quit [Ping timeout: 248 seconds]
Targen has joined #ruby
ham1 has quit [Ping timeout: 264 seconds]
bjeanes has joined #ruby
Banistergalaxy has quit [Ping timeout: 245 seconds]
ner0x has quit [Quit: Leaving]
Banistergalaxy has joined #ruby
otherj has joined #ruby
i_s has quit [Quit: i_s]
nga4 has quit []
tomzx has quit [Ping timeout: 245 seconds]
TheFuzzball has quit [Quit: Computer has gone to sleep.]
shashin has quit [Quit: shashin]
yfeldblum has joined #ruby
recycle has quit [Remote host closed the connection]
bean|work has joined #ruby
tcstar has quit [Ping timeout: 245 seconds]
f0ster has joined #ruby
techlife has quit [Ping timeout: 260 seconds]
thufir_ has quit [Remote host closed the connection]
techlife has joined #ruby
_nitti has quit [Remote host closed the connection]
gyre007 has quit [Remote host closed the connection]
gyre007 has joined #ruby
Raboo has quit [Ping timeout: 252 seconds]
anderse has quit [Quit: anderse]
dyrot has joined #ruby
Raboo has joined #ruby
Takehiro has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
alanjc has quit [Ping timeout: 255 seconds]
dyrot is now known as alanjc
sn0wb1rd has joined #ruby
drago757 has joined #ruby
aantix has quit [Ping timeout: 244 seconds]
robotmay has quit [Ping timeout: 248 seconds]
TDJACR has joined #ruby
gyre007 has quit [Ping timeout: 264 seconds]
tvw has quit [Remote host closed the connection]
shashin has joined #ruby
Takehiro has quit [Ping timeout: 246 seconds]
chrishunt has quit [Quit: Leaving...]
_whitelogger has joined #ruby
xbayrockx has joined #ruby
stormetrooper has joined #ruby
Virunga has quit [Remote host closed the connection]
benlieb has quit [Quit: benlieb]
wf2f has quit [Ping timeout: 244 seconds]
dmerrick has quit [Quit: dmerrick]
zeade has quit [Quit: Leaving.]
jaequery has quit [Quit: Computer has gone to sleep.]
AntiTyping has joined #ruby
idkazuma has quit [Remote host closed the connection]
yacks has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
Kuifje has quit [Ping timeout: 256 seconds]
benlieb has joined #ruby
jrajav has joined #ruby
idkazuma has joined #ruby
idkazuma has quit [Read error: Connection reset by peer]
plotter has quit [Quit: Leaving]
plotter has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
arya_ has quit [Ping timeout: 264 seconds]
blaines has quit [Read error: Operation timed out]
uris has quit [Ping timeout: 245 seconds]
<jokke> hey, how do i execute something without blocking?
arya has joined #ruby
<jokke> i tried something like `firefox &` but is still blocks
love_color_text has joined #ruby
joeycarmello has quit [Remote host closed the connection]
<jokke> never mind
<jokke> works with system "#{command} &"
arya has quit [Ping timeout: 276 seconds]
ddilinger has left #ruby [#ruby]
<_br_> jokke: if you are looking for ruby syntax you might want to look into e.g. fork
pierre1 has joined #ruby
arya has joined #ruby
<_br_> jokke: the & sign just puts a process into the background, but its shell syntax. If you want to handle it from ruby please check the Process class etc.
daskalov has joined #ruby
luk3 has joined #ruby
adeponte has quit [Remote host closed the connection]
xpen has joined #ruby
reppard has joined #ruby
poikon has quit [Remote host closed the connection]
uris has joined #ruby
DrShoggoth has joined #ruby
bean|work has quit [Quit: Computer has gone to sleep.]
yshh has quit [Remote host closed the connection]
<reppard> anyone know how to make alt+arrow change windows in irssi, in iTerm, on mountain lion
wargasm1 has quit [Ping timeout: 264 seconds]
RyanD has joined #ruby
daskalov has quit [Ping timeout: 276 seconds]
<reppard> exit
reppard has quit [Quit: leaving]
apok has quit [Quit: apok]
reppard has joined #ruby
<reppard> the answer was to use tmux
tylersmith has quit [Quit: tylersmith]
DrShoggoth has quit [Ping timeout: 245 seconds]
bean|work has joined #ruby
tjbiddle has quit [Read error: Operation timed out]
greenarrow has quit [Ping timeout: 248 seconds]
d2dchat has quit [Remote host closed the connection]
SIFTU has joined #ruby
greenarrow has joined #ruby
RyanD has left #ruby [#ruby]
IrishGringo has quit [Quit: ChatZilla 0.9.89 [Firefox 18.0.1/20130116073211]]
jpfuentes2 has joined #ruby
x82_nicole has joined #ruby
bean|work has quit [Quit: Computer has gone to sleep.]
Vektur has joined #ruby
x82_nicole has quit [Client Quit]
cardoni has quit [Quit: cardoni]
alanjc has quit [Ping timeout: 256 seconds]
RyanD has joined #ruby
Michael_ has quit [Remote host closed the connection]
Michael_ has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
luk3 has quit [Quit: luk3]
DrShoggoth has joined #ruby
adkron_ has joined #ruby
Takehiro has joined #ruby
ephemerian has quit [Quit: Leaving.]
jaequery has joined #ruby
dhruvasagar has joined #ruby
dhruvasa1ar has joined #ruby
Takehiro has quit [Ping timeout: 245 seconds]
goraxe has quit [Ping timeout: 240 seconds]
daskalov has joined #ruby
<jokke> _br_: well, i'm writing a application laucher. So even if the launcher is killed, the processes lauched by it should continue. You know of a better way to do this?
goraxe has joined #ruby
Hanmac has quit [Ping timeout: 256 seconds]
plotter has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
bean|work has joined #ruby
recycle has joined #ruby
JMcAfreak has quit [Ping timeout: 246 seconds]
bean|work has quit [Quit: Computer has gone to sleep.]
tomzx_mac has joined #ruby
arya has quit [Ping timeout: 260 seconds]
shiro has quit [Remote host closed the connection]
<aytch> jokke: calling it through system shouldn't tie it to the process, I believe
nari has joined #ruby
adeponte has joined #ruby
rakl has quit [Quit: sleeping]
<jokke> it does
oinkon has quit [Ping timeout: 252 seconds]
<jokke> or calling what?
nateberkopec has joined #ruby
<aytch> I just ran: system `open .` on my mac, and the process is independent of irb
<aytch> maybe because it called Finder....hmm
daskalov has quit [Ping timeout: 255 seconds]
arya has joined #ruby
meoblast001 is now known as DJHelvetica
toekutr has quit [Remote host closed the connection]
nateberkopec has quit [Client Quit]
cardoni has joined #ruby
Hanmac has joined #ruby
<aytch> yeah, using `open /path/to/application.app` makes it independent from the ruby process, at least on a mac & Windows
Takehiro has joined #ruby
Michael_ has quit [Remote host closed the connection]
Michael_ has joined #ruby
ffranz has quit [Quit: Leaving]
pcarrier has quit [Ping timeout: 245 seconds]
nateberkopec has joined #ruby
Michael_ has quit [Remote host closed the connection]
Michael_ has joined #ruby
jbw has quit [Ping timeout: 264 seconds]
elvikingo has quit [Quit: elvikingo]
oinkon has joined #ruby
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
cardoni has quit [Ping timeout: 255 seconds]
charliesome has joined #ruby
goraxe has quit [Read error: Connection reset by peer]
benlieb has quit [Quit: benlieb]
chrishough has quit [Quit: chrishough]
havenn has joined #ruby
stormetrooper has quit [Quit: Leaving]
TomyLobo has quit [Quit: Standby mode...]
eka has quit [Quit: Computer has gone to sleep.]
arya has quit [Ping timeout: 264 seconds]
chimkan_ has joined #ruby
mfridh has quit [Read error: Operation timed out]
alvaro_o has quit [Quit: Ex-Chat]
benlieb has joined #ruby
uris has quit [Ping timeout: 260 seconds]
oinkon has quit [Ping timeout: 276 seconds]
arya has joined #ruby
horofox has quit [Quit: horofox]
chimkan_ has quit [Read error: Connection reset by peer]
maletor has quit [Quit: Computer has gone to sleep.]
maletor has joined #ruby
banister_ has quit [Read error: Connection reset by peer]
bricker is now known as bricker`work
banister`sleep has joined #ruby
adeponte has quit [Remote host closed the connection]
bradleyprice has joined #ruby
forced_request has quit [Read error: Connection reset by peer]
dustint has quit [Remote host closed the connection]
BoomCow has joined #ruby
DJHelvetica is now known as meoblast001
meoblast001 has quit [Remote host closed the connection]
kenneth has quit [Quit: kenneth]
oinkon has joined #ruby
atno has quit [Quit: Get MacIrssi - http://www.sysctl.co.uk/projects/macirssi/]
luckyruby has joined #ruby
BoomCow has quit [Client Quit]
otherj has quit [Quit: otherj]
havenn has quit [Remote host closed the connection]
rakl has joined #ruby
ebobby has joined #ruby
cardoni has joined #ruby
luk3_ has joined #ruby
luk3_ has quit [Client Quit]
ryanf has quit [Read error: Connection reset by peer]
aaronmcadam has quit [Quit: aaronmcadam]
uris has joined #ruby
ryanf has joined #ruby
gyre007 has joined #ruby
arya has quit [Ping timeout: 276 seconds]
Skylab has joined #ruby
unsay has joined #ruby
gyre007 has quit [Ping timeout: 245 seconds]
moshee has quit [Ping timeout: 248 seconds]
arya has joined #ruby
moshee has joined #ruby
reset has quit [Ping timeout: 252 seconds]
mcqueenorama has quit [Remote host closed the connection]
rezzack has quit [Quit: Leaving.]
thinkclay has quit [Quit: Leaving.]
cardoni has quit [Ping timeout: 276 seconds]
renanoronfle has joined #ruby
ryanf has quit [Read error: Connection reset by peer]
ryanf has joined #ruby
techhelp has joined #ruby
<shevy> hmm guys
<shevy> array[0] = nil
<shevy> vs
<shevy> array.shift
adeponte has joined #ruby
<shevy> oops
renanoronfle has quit [Client Quit]
<shevy> I thought they do the same, but they dont
adkron_ has quit [Ping timeout: 260 seconds]
zeade has joined #ruby
bricker`LA has quit [Ping timeout: 276 seconds]
dustint has joined #ruby
dustint has quit [Read error: Connection reset by peer]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
oinkon has quit [Quit: leaving]
Skylab has quit [Quit: Skylab]
pyx has quit [Quit: WeeChat 0.4.0]
EPIK has joined #ruby
dustint has joined #ruby
hadees has quit [Quit: hadees]
adeponte has quit [Remote host closed the connection]
toekutr has joined #ruby
dustint has quit [Client Quit]
adeponte has joined #ruby
dustint has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
dustint has quit [Client Quit]
adeponte has quit [Remote host closed the connection]
<chiel> what's the easiest way to get my code to reload on every refresh of the browser?
<chiel> i mean my app to reload*
bricker`LA has joined #ruby
<chiel> ideally, i'd like to not put in extra code in my project just for reloading purposes
<chiel> but if that's the way it has to be, fine :)
LazyBrian has joined #ruby
ebobby has quit [Ping timeout: 246 seconds]
icole has quit [Remote host closed the connection]
main_ has quit [Read error: Operation timed out]
mythical has joined #ruby
dustint has joined #ruby
pac1 has joined #ruby
binw has quit [Ping timeout: 272 seconds]
xemu has quit [Quit: Nettalk6 - www.ntalk.de]
ahokaomaeha has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
ahokaomaeha has joined #ruby
dcwu has joined #ruby
Nisstyre-laptop has joined #ruby
banister`sleep is now known as banisterfiend
postmodern has joined #ruby
gouthamvel has joined #ruby
arya has quit [Ping timeout: 255 seconds]
dhruvasagar has quit [Read error: Operation timed out]
dhruvasa1ar has quit [Read error: Operation timed out]
<shevy> chiel hmm I forgot but I think sinatra uses something for that
arya has joined #ruby
sorbo_ has joined #ruby
dhruvasagar has joined #ruby
dhruvasa1ar has joined #ruby
binw has joined #ruby
mythical has quit [Quit: mythical]
Rix has quit [Ping timeout: 248 seconds]
kenneth has joined #ruby
RyanD has quit []
gouthamvel_ has joined #ruby
gouthamvel_ has left #ruby [#ruby]
RyanD has joined #ruby
Retistic has quit [Quit: Retistic]
reppard has quit [Quit: leaving]
bricker`1A has joined #ruby
Michael_ has quit [Remote host closed the connection]
rakl has quit [Quit: sleeping]
io_syl_ has joined #ruby
io_syl has quit [Ping timeout: 245 seconds]
io_syl_ is now known as io_syl
Michael_ has joined #ruby
ryanf has quit [Read error: Connection reset by peer]
ryanf has joined #ruby
pac1 has quit [Quit: I got it one line of code at a time]
d2dchat has joined #ruby
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
Rix has joined #ruby
love_color_text has quit [Ping timeout: 240 seconds]
gyre007 has joined #ruby
dyrot has joined #ruby
kn330 has joined #ruby
ryanf has quit [Read error: Connection reset by peer]
arya has quit [Ping timeout: 245 seconds]
ryanf has joined #ruby
dyrot has quit [Client Quit]
<raz> hm this is funny
<raz> when you type File:/// your mac crashes
<banisterfiend> raz: maybe for u
<raz> banisterfiend: tried it? ;)
<gouthamvel> raz: that didn't happened to me
<raz> only works on mountain lion i think
<banisterfiend> raz: chrome?
<raz> banisterfiend: any app, just type it right here ;)
arya has joined #ruby
gouthamvel has quit [Remote host closed the connection]
<raz> seems to have worked for gouthamvel at last hehe
gouthamvel has joined #ruby
<raz> gouthamvel: funny eh? ;)
<gouthamvel> raz: got it
<gouthamvel> need to put space after that! and boom
<raz> hilarious bug
movvy has joined #ruby
shashin has quit [Quit: shashin]
hackerdude has quit [Remote host closed the connection]
pskosinski has quit [Quit: MOTD: Open source spirit according to Quinton Reeves, Red Eclipse developer: http://pawelk.pl/quinton-reeves]
tcstar has joined #ruby
arya has quit [Ping timeout: 256 seconds]
mikepack has quit [Remote host closed the connection]
cardoni has joined #ruby
arya has joined #ruby
Takehiro has quit [Remote host closed the connection]
tcstar has quit [Ping timeout: 248 seconds]
kn330 has quit [Ping timeout: 264 seconds]
Takehiro has joined #ruby
Takehiro_ has joined #ruby
jaequery has quit [Quit: Computer has gone to sleep.]
Takehiro has quit [Remote host closed the connection]
hekin has joined #ruby
ananthakumaran has joined #ruby
Michael_ has quit [Remote host closed the connection]
Michael_ has joined #ruby
kn330 has joined #ruby
goraxe has joined #ruby
hadees has joined #ruby
tcstar has joined #ruby
gouthamvel has quit [Remote host closed the connection]
<jrajav> Sounds like I need to make a hilarious trip to the Apple store tomorrow
cardoni has quit [Ping timeout: 240 seconds]
<jrajav> And hope that they don't hotfix the display machines
naquad has quit [Ping timeout: 264 seconds]
hekin has quit [Quit: hekin]
kenneth has quit [Quit: kenneth]
Michael_ has quit [Ping timeout: 264 seconds]
browndawg has joined #ruby
angusiguess has joined #ruby
yacks has quit [Ping timeout: 245 seconds]
ahokaomaeha has quit [Read error: Connection reset by peer]
ebobby has joined #ruby
uris has quit [Quit: Leaving]
tjbiddle has joined #ruby
Takehiro_ has quit [Remote host closed the connection]
froy has quit [Disconnected by services]
froy has joined #ruby
froy has quit [Disconnected by services]
lump has joined #ruby
huoxito has quit [Quit: Leaving]
d2dchat has quit [Remote host closed the connection]
mahmoudimus has joined #ruby
My_Hearing has quit [Read error: Operation timed out]
jekotia has quit [Quit: ChatZilla 0.9.89-rdmsoft [XULRunner 1.9.0.17/2009122204]]
Targen_ has joined #ruby
adeponte has joined #ruby
xpen_ has joined #ruby
chrishough has joined #ruby
bricker`1A has quit [Quit: leaving]
bricker`LA is now known as bricker
Rix has quit [Ping timeout: 245 seconds]
xpen has quit [Ping timeout: 245 seconds]
Targen has quit [Ping timeout: 264 seconds]
My_Hearing has joined #ruby
ebobby has quit [Ping timeout: 276 seconds]
advorak has quit [Quit: Leaving]
adeponte has quit [Ping timeout: 276 seconds]
gyre007 has quit [Ping timeout: 245 seconds]
d2dchat has joined #ruby
alanjc has joined #ruby
decoponio has joined #ruby
yacks has joined #ruby
hackerdude has joined #ruby
alanjc has quit [Client Quit]
slyv has quit [Quit: Textual IRC Client: www.textualapp.com]
Takehiro has joined #ruby
Rix has joined #ruby
mfridh_ has joined #ruby
d2dchat has quit [Remote host closed the connection]
cha1tanya has joined #ruby
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
sorbo_ has left #ruby [#ruby]
ryanf has quit [Ping timeout: 246 seconds]
mfridh_ has quit [Ping timeout: 256 seconds]
emergion has joined #ruby
Takehiro has quit [Remote host closed the connection]
<shevy> it's their way to lure you in
<shevy> once you buy apple, you are forever a fanboi :(
gokul has joined #ruby
mfridh- has joined #ruby
angusiguess has quit [Ping timeout: 264 seconds]
benlieb has quit [Quit: benlieb]
angusiguess has joined #ruby
tealmage has joined #ruby
arya has quit [Ping timeout: 264 seconds]
mmun has joined #ruby
beaky has quit [Quit: Lost terminal]
arya has joined #ruby
bradleyprice has quit [Remote host closed the connection]
tomzx_mac has quit [Ping timeout: 244 seconds]
tealmage has quit [Remote host closed the connection]
roadt_ has joined #ruby
byped has joined #ruby
nari has quit [Ping timeout: 248 seconds]
benlieb has joined #ruby
hakunin has quit [Ping timeout: 248 seconds]
Axsuul has quit [Read error: Connection reset by peer]
yacks has quit [Quit: Leaving]
<ninegrid> can osx run xmonad?
chendo_ has quit [Ping timeout: 256 seconds]
xpen_ has quit [Remote host closed the connection]
jonahR has joined #ruby
xpen has joined #ruby
v0n has joined #ruby
tealmage has joined #ruby
arya has quit [Ping timeout: 255 seconds]
hakunin has joined #ruby
gouthamvel has joined #ruby
tealmage has quit [Remote host closed the connection]
hackerdude has quit [Remote host closed the connection]
hakunin has quit [Excess Flood]
nateberkopec has quit [Quit: Leaving...]
byped has quit [Quit: leaving]
hakunin has joined #ruby
<shevy> what a ruby question!
<shevy> come use linux
<shevy> all use linux
<shevy> then we will write RubyOS
arya has joined #ruby
<ninegrid> hey i code in ruby, and xmonad is apart of my toolchain... so is hubris, so if osx doesn't do it i want no part of it
icole has joined #ruby
yacks has joined #ruby
chendo_ has joined #ruby
chendo_ has quit [Changing host]
chendo_ has joined #ruby
<shevy> hmm is xmonad the one with the dependency on haskell?
<ninegrid> yes, the config file is in haskell as well
yacks has quit [Remote host closed the connection]
yacks has joined #ruby
<shevy> a guy once said to me (on IRC) that haskell may be too difficult for me, like 5 years ago
<shevy> he was right :(
<ninegrid> i think you're both wrong
cha1tanya has quit [Read error: Connection timed out]
benlieb has quit [Quit: benlieb]
<ninegrid> haskell has a steep learning curve, but you're a rubyist so you have a foot in the door
cha1tanya has joined #ruby
<ninegrid> they are very different languages at the outset, but they have some things in common
<shevy> well the thing was
<shevy> with perl/php/lua/python/ruby, one kind of "sees" a pattern in all of them
dustint has quit [Remote host closed the connection]
<shevy> even into C (ignoring having to manage memory and pointers here)
<shevy> with haskell, I never really understood it
pranavk has joined #ruby
decoponio has quit [Quit: going to afk]
<ninegrid> i'd hate to talk about haskell in here... so i'll leave at this
<ninegrid> learn you a haskell
<shevy> I cant even tell you whether there are functions in haskell... I think they are... but they look differently
pranavk has quit [Changing host]
pranavk has joined #ruby
<shevy> *there are
<jrajav> That's because the "functions" you're used to aren't functions at all, but subroutines
<ninegrid> ^
pranavk has left #ruby [#ruby]
pranavk has joined #ruby
pranavk has left #ruby [#ruby]
<shevy> hmmm
<jrajav> In fact, pretty much every difficulty with Haskell or functional programming can be explained by the deep assimilation of imperative/procedural programming and the techniques involved in it
<ninegrid> haskell forces you into a paradigm, and ruby wants to follow that paradigm with "best practices" yet it allows you to do pretty much anything
<ninegrid> that is why i like both of these languages the most, they are at opposite ends of a spectrum
<shevy> ok here I must reveal my noobness but... what is the difference between a function and a subroutine? in perl they call their functions sub too I think
<ninegrid> shevy: a function has no side effects
<jrajav> A function is a mathematical concept, something that describes a relation over a set. Or in simpler terms, something that takes an input and spits out some output
<ninegrid> that is a handy way of looking at it, a function is like looking up something in an immutable dictionary
<jrajav> A subroutine is just a set of sequential instructions (at some given level of abstractions) that can be called by other instructions
<jrajav> ninegrid: Uh, no, I meant all of that in the mathematical sense
<jrajav> Mathematical sets don't have a lot to do with dictionaries
<ninegrid> well i'm thinking of a .net dictionary when i say that
<ninegrid> you can't put in two keys, there is no total ordering
<ninegrid> you can put in two values tho
Jeaye has joined #ruby
<ninegrid> such as f(n) = 1
<jrajav> Okay, but that's an analogy at best. What I quoted is the actual definition of a function as given by set theory
<ninegrid> if you're explaining it to someone without a strong math background, i think a dictionary lookup is a valid metaphor
techhelp has quit [Quit: This computer has gone to sleep]
chrishough has quit [Quit: chrishough]
<ninegrid> shevy: the function has a spectrum of inputs (called the codomain) and a spectrum of outputs (called the domain), it simply maps inputs to outputs such that given the same input value it will always yield the same corresponding output value... in a subroutine you cannot guarantee that claim if values can change throughout the execution of the program
<shevy> waaaah
<shevy> new words try to make it into my brain faster than their associated understanding does :(
<shevy> domain... codomain... this is the first time I read this
<ninegrid> case in point
<shevy> and now a subroutine sounds like a part of chaos theory :)
dustint has joined #ruby
<shevy> haskell turns people into abstract philosophizers
<ninegrid> i dont think so...
<Paradox> MFW i summon the dude http://i.imgur.com/X9otIw4.gif
cardoni has joined #ruby
<ninegrid> since programs run its very much applied philosphizing
dhruvasagar has quit [Ping timeout: 246 seconds]
dhruvasa1ar has quit [Ping timeout: 276 seconds]
<jrajav> shevy: Set theory and category theory are intimidating when you don't have many of the abstractions internalized (like anything that depends on lots of abstractions), but if you learn them from the ground up they're way more accessible than you'd think. I'd really recommend learning about them if you enjoy programming.
<jrajav> And Haskell is very good way to do so
crackfu has joined #ruby
dhruvasagar has joined #ruby
dhruvasa1ar has joined #ruby
<jrajav> Paradox: infected mushroom and midnight is making that trippier than it really should be for me
benlieb has joined #ruby
samlt has joined #ruby
hakunin has quit [Ping timeout: 245 seconds]
kans has joined #ruby
thinkclay has joined #ruby
hakunin has joined #ruby
hakunin has quit [Remote host closed the connection]
thinkclay has quit [Client Quit]
Guest81727 has joined #ruby
RyanD has quit []
Guest81727 has quit [Remote host closed the connection]
meoblast has joined #ruby
drago757 has quit [Quit: drago757]
cardoni has quit [Ping timeout: 245 seconds]
angusiguess has quit [Ping timeout: 240 seconds]
Takehiro has joined #ruby
arya has quit [Ping timeout: 248 seconds]
bapa has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Ping timeout: 245 seconds]
hadees has quit [Quit: hadees]
dhruvasa1ar has quit [Ping timeout: 245 seconds]
Guest76736 has quit [Ping timeout: 245 seconds]
arya has joined #ruby
jetblack has quit [Quit: leaving]
jetblack has joined #ruby
jaequery has joined #ruby
bapa has joined #ruby
benlieb has quit [Quit: benlieb]
cha1tanya has quit [Quit: Leaving]
hadees has joined #ruby
skrewler has joined #ruby
skrewler has left #ruby [#ruby]
pierre1 has quit [Quit: Leaving]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
stuartrexking has joined #ruby
subbyyy_ has quit [Ping timeout: 255 seconds]
arya has quit [Ping timeout: 246 seconds]
subbyyy_ has joined #ruby
mfridh- has quit [Read error: Operation timed out]
nga4 has joined #ruby
arya has joined #ruby
nobuoka has joined #ruby
crackfu has quit [Read error: Operation timed out]
cardoni has joined #ruby
crackfu has joined #ruby
mfridh_ has joined #ruby
sepp2k has joined #ruby
dhruvasagar has joined #ruby
dhruvasa1ar has joined #ruby
stuartrexking has quit [Quit: Linkinus - http://linkinus.com]
crackfu_ has joined #ruby
chrishough has joined #ruby
crackfu has quit [Ping timeout: 244 seconds]
lazywei has joined #ruby
<lazywei> Morning all
<w|t> hi
shirokuro11 has joined #ruby
<lazywei> May I ask a question about ruby source code? I'm reading include/ruby/ruby.h
<lazywei> and I saw a line about "#include "ruby/config.h"
<lazywei> but I can't find this "ruby/config.h"
<lazywei> do I miss something?
Jeaye has quit [Quit: zzzZZZzzz]
cardoni has quit [Ping timeout: 255 seconds]
<whitequark> lazywei: http://rxr.whitequark.org/
<whitequark> lazywei: config.h is autogenerated
<whitequark> by autotools (./configure)
<lazywei> oops! thank you so much
mockra_ has quit [Remote host closed the connection]
slash_nick has joined #ruby
tekknolagi has joined #ruby
gouthamvel has quit [Remote host closed the connection]
mfridh_ has quit [Ping timeout: 256 seconds]
nari has joined #ruby
<tekknolagi> hi guys! i'm writing a webapp called brightswipe, with my development server at http://heroku.brightswipe.com . i have some issues with upload, unfortunately - I get this funky error about files not found upon *writing* the file. the full source is available on http://github.com/tekknolagi/indexer - and this file in particular in http://github.com/tekknolagi/indexer/tree/master/helpers/functions.rb
<tekknolagi> what's wrong?
<shevy> now that's really a small problem eh
zeade has quit [Quit: Leaving.]
<tekknolagi> it's probably somethign stupid :(
<shevy> almost as simple as "how to iterate over an array"
<tekknolagi> shevy: umm... oh dear. what did i do? D:
<shevy> I can't speak for anyone else, but for me it seems like a huge complex problem that would require lots of time to find out where the problem is, in addition to having to know lots of other things... I can not even discern what your problem is. What is "funky error about files not found upon writing the file", what does that even mean
<shevy> how does that translate into ruby
<tekknolagi> shevy: my apologies
<tekknolagi> File.open returns No such file or directory
<shevy> this is how one would write a file in ruby: File.open('/foo.txt', 'a+', 0755) {|file| file.write(your_data_here) }
<shevy> please, I cant do anything with this image
tcstar has quit [Ping timeout: 245 seconds]
<shevy> "No such file or directory" - did you pass in anything as the first argument to File.open
KRF has quit [Ping timeout: 260 seconds]
<tekknolagi> I did
<shevy> are you sure :P
<tekknolagi> def save_torrent(fn, tmp)
<tekknolagi> File.open(File.join($pubdir, fn), 'w+') do |f|
<tekknolagi> f.write(tmp.read)
<tekknolagi> File.join($pubdir, fn)
<tekknolagi> end
<tekknolagi> end
<tekknolagi> whoops, sorry for pasting
<shevy> and what exactly does: File.join($pubdir, fn) return
<tekknolagi> it's in the second line that has a problem
<tekknolagi> hang on one sec; irssi in tmux is giving me issues
<shevy> and why do you use it twice
<shevy> you use this File.join($pubdir, fn) twice
tekknolagi has quit [Quit: leaving]
<shevy> why not _ = File.join($pubdir, fn) and then use the _ variable
tekknolagi has joined #ruby
<tekknolagi> alright
<tekknolagi> back
<tekknolagi> wait
<shevy> why do you use File.join($pubdir, fn) twice, why not _ = File.join($pubdir, fn) and then _
<tekknolagi> shit
<tekknolagi> still issues
<tekknolagi> webirc
<shevy> use xchat
tekknolagi has quit [Client Quit]
tekknolagi_ has joined #ruby
tekknolagi_ is now known as tekknolagi
<shevy> also what does File.join($pubdir, fn) give you
<tekknolagi> okay
<tekknolagi> back
<shevy> and why do you use global variables anyway
<shevy> I want to remove your app :P
<tekknolagi> remove my app?
tjbiddle has quit [Quit: tjbiddle]
<shevy> yes, it uses global variables
<tekknolagi> this is one of two global variables. first one is $pubdir, other one is $conf
<tekknolagi> $conf has db conf, $pubdir is the public directory
<shevy> and $pubdir can change?
<tekknolagi> no, it's static
<tekknolagi> rather, nothing actually changes it
<shevy> you could use a constant then, PUBDIR, or what I do, assign to @pubdir within my class
xpen_ has joined #ruby
<shevy> anyway, what does: File.join($pubdir, fn) give you
<tekknolagi> alright i will do that as soon as i fix this
<tekknolagi> presumably it gives /app/public/i/
<tekknolagi> since /app/public/i/ubuntu-12.04-alternate-amd64.iso.torrent is the correct path
<shevy> what do you mean "presumably"
<shevy> how can you not know
<tekknolagi> no, i do know, but clearly somethign is wrong
<tekknolagi> so i am being careful in my words
<tekknolagi> as i don't know what is wrong
blacktulip has joined #ruby
<shevy> ok so you are 100% sure that this File.join returns the string: "/app/public/i/"
xpen has quit [Ping timeout: 260 seconds]
<tekknolagi> if it did not, the error would not report back the correct path in the error
<shevy> in that case, I can think of only one more reason why this would fail with File.open, which would be either a permission error... or this path does not exist
Morkel has joined #ruby
<shevy> I dont know how you find such errors, but when I use apache, in the log files I would get the permission-error or in general the real culprit
<tekknolagi> could it be something with the way Heroku is structured? as far asi know, i can write files, but they are ephemeral
<shevy> you could check if (1) the directory exists or (2) the permission is proper, in ruby code
<tekknolagi> this is on Heroku, and i don't see anything wrong in the logs
<shevy> dunno, perhaps heroku does something fancy behind the scene and disallows certain things, I have no idea. we need a heroku expert
<shevy> Heroku experts listen up!
<shevy> (^^^ trying to get them to wake up...)
tjbiddle has joined #ruby
<shevy> all I know is that File.open works perfectly well on my machine :D
<tekknolagi> Heroku guys...? :D
angusiguess has joined #ruby
<shevy> yeah, people with lots of heroku experience
<tekknolagi> here, trying something and pushing
Morkel_ has joined #ruby
<tekknolagi> OH
<tekknolagi> git does not push empty directories
<tekknolagi> gotta make it on app startup
gosshedd has joined #ruby
robustus has quit [Ping timeout: 276 seconds]
<shevy> :\
<shevy> how can people even work like that
<shevy> I need all my things locally
freezway has quit [Ping timeout: 245 seconds]
<tekknolagi> i used to do that, but it was harder to manage
Morkel has quit [Ping timeout: 260 seconds]
Morkel_ is now known as Morkel
<tekknolagi> Passenger is awful
<tekknolagi> well
<tekknolagi> it's nice
<tekknolagi> but managing it and bugs and different gemsets
<tekknolagi> is
<tekknolagi> not fun.
ryanf has joined #ruby
<tekknolagi> okay, different error now
<tekknolagi> unfortunately
<tekknolagi> undefined method `include?' for nil:NilClass
<tekknolagi> for
<tekknolagi> def self.add(tag) first_or_new :name => tag end
<tekknolagi> (should be three lines)
angusiguess has quit [Ping timeout: 255 seconds]
<tekknolagi> i can't tell if first_or_new is causing the error or tag is
<tekknolagi> i'm sort of a newbie
<tekknolagi> but
robustus has joined #ruby
<shevy> I have no idea what you are doing here
<tekknolagi> blah. sinatra.
<shevy> but apparently you have a nil object
<tekknolagi> so it's a method in the Tag class
<shevy> and your code is wrong when you can check .include? on a nil object
<tekknolagi> i never call .include? though
<shevy> then you use some kind of software incorrectly or this software sucks :D
benlieb has joined #ruby
<shevy> I would not even know that first_or_new() does
<tekknolagi> have you ever used DataMapper?
<shevy> in plain ruby, you would get the file line
mfridh_ has joined #ruby
<shevy> nope
<tekknolagi> damn,
<tekknolagi> damn*.
<shevy> I try to use as much as possible self-written and as little as possible written by someone else
cardoni has joined #ruby
<tekknolagi> why?
<shevy> I make generous exceptions for high quality libraries written by others
<shevy> tekknolagi because most ruby code out there sucks
CorpusCallosum has quit [Ping timeout: 244 seconds]
<shevy> I took over maintaing ruby-fpdf
<tekknolagi> shevy: i would say DataMapper does not fall into the suckish category
<shevy> it has things like "def LineBreak(a,b,c,d,e,f,g)" and I kid you not here
<tekknolagi> ...oh dear.
<nga4> I tend to use stuff I could write in a few days over something where I may be at the mercy of others as well
gouthamvel has joined #ruby
<shevy> but at least it produces correct .pdf files, so that is at least something
<nga4> unless its a huge win, I will abstain
<shevy> nga4 yeah
epicurus has joined #ruby
<shevy> I think it has a lot to do with the quality of the original author
<nga4> been "got" a few times by that
<nga4> and that never comes cheap
<nga4> unless you took the time to abstract it well before hand
<shevy> yeah
<tekknolagi> ay caray
<tekknolagi> okay ruby question
<tekknolagi> straight ruby
<shevy> tekknolagi when you use several different pieces of software together, you almost always need to understand each component very well too
<tekknolagi> conceptual
meoblast has quit [Remote host closed the connection]
<tekknolagi> which one is the equivalent of a "static" method of a class
<tekknolagi> a self.method or a method?
<shevy> in rails, I would not want to learn it because I know I would also have to understand all of Active*
<shevy> define the meaning of the word "static"
<shevy> class Foo; def self.test;puts 'this is test';end;end; Foo.test
<tekknolagi> i.e. calling it with ClassName.method rather than ClassInstance.method
<nga4> maybe singleton, if you come from java or c
<shevy> "this is test"
<nga4> def self.method do stuff end
<tekknolagi> nga4: i think singleton, yes
<nga4> in the class def
<nga4> you can do that per instance of an object, for ruby singletons
<shevy> yeah
<nga4> or at the class declaration for a static type class lib
<shevy> x = Foo.new; def x.test; puts 'hi there again';end
<nga4> or in a module for mutliple inheritance sort of thing
<tekknolagi> soooo if i wanted to do Tag.add, would i use self.method or just method?
<nga4> def self.method
<tekknolagi> okay cool
<nga4> np
<shevy> tekknolagi yes, only via def self.name_of_method
<shevy> hmmm or perhaps... "def Tag" and have that return an object that can respond to add() method :D
generalissimo has quit [Remote host closed the connection]
<shevy> or, if you like it happy, an object that uses method_missing() hahaha
keyvan has quit [Ping timeout: 248 seconds]
<nga4> there is also class << self; def method; some stuff; end ;end
<nga4> tons of ways to swing that
<shevy> I once had a project designed that way. the classes were all using method_missing to shift around messages... but a year later, I started to hate this complexity and ripped it apart with a passion, since then I am wary of method_missing and send used together
<nga4> last ditch effort with mehtod missing
<shevy> I still use .send sometimes though
<shevy> hehe
<nga4> I'll use the hell out of modules
<shevy> I am scared by method_missing :\
<shevy> nga4, do you use modules and lots of subclasses together?
<tekknolagi> metaprogramming is weird to me
<nga4> meta in class and instance methods
<nga4> yeah
<shevy> hmm interesting
<nga4> have some comomn set of things that can be generalized by an abstract class
<nga4> them mix in modules on some of them to get a sort of second generalization
<nga4> if you need to mix in complex behavior
love_color_text has joined #ruby
<nga4> and then stick methods in to the class def of the subclass and instance methods
<nga4> works great in rails for "All these objects now fire events for this to tell remote servers that" without disrupting a reasonable OO class structure
<nga4> Single table inheritance, that mess
<shevy> hehe
<nga4> its a great way to decouple stuff
<nga4> but still have a sensible scalable structure
<nga4> Wish I worked more in ruby sometimes
<nga4> othertimes not
<nga4> you work in ruby you get siloed to rails and making webpages and webservices, not a lot of real time nifty stuff going on
<tekknolagi> hey that hurts :P
<tekknolagi> i consider myself to be doing cool things
unsay has quit [Ping timeout: 252 seconds]
<nga4> maybe Im unfortunate
<nga4> I spend ore time in c now-a-days
<tekknolagi> i used C a lot more one or two years ago
<nga4> distributed computing
<tekknolagi> i'm using C++ right now for my robotics tema
<tekknolagi> team*
<nga4> it is NO where near as pleasant
<tekknolagi> yaaaay FRC
<tekknolagi> i really dislike C++
<nga4> but the problems are a bit cooler
cardoni has quit [Ping timeout: 264 seconds]
<shevy> well
<shevy> you can always use ruby for the helper-stuff, and C/C++ for when you need the speed
<tekknolagi> nah
<tekknolagi> FIRST gives you hardware and software you need to use
<nga4> c then toss in lua for ruby like structures when you want them and zmq
<shevy> I thought that the core of C++ was not so bad
<nga4> small
<shevy> I liked it more than java
<nga4> portable
<tekknolagi> VxWorks on the cRIO
<tekknolagi> so we use C++ or Java
<shevy> but I will never use templates
<tekknolagi> since it ahs to work with their libraries
<tekknolagi> i despise Java.
<shevy> yeah java is awful
<nga4> I learned in java, I don't much miss it
ossareh has quit [Ping timeout: 240 seconds]
<shevy> hehe
<nga4> so many people use it though
<tekknolagi> i can't help but wonder why AP Compsci (CollegeBoard) is taught in Java
<nga4> good money
<tekknolagi> it's declining in industry
<shevy> yeah, java is for when you wanna get rich
<nga4> scala would be worth looking at
<pnkbst> tekknolagi: because they don't know that they're doing?
tfittsy has joined #ruby
<shevy> all the banks here use java
<tekknolagi> pnkbst: also why they have you hand write code
<nga4> It would be novel ot see ruby go a bit more mainstream as a general langauge instead of just one primarily used to make webapplications
<tekknolagi> well the problem is
<nga4> I could stand to get back into a structure and lexical environment I can use like I did ruby
<tekknolagi> it's TOO GOOD for web
<tekknolagi> nothing that can compete except for PHP
<tekknolagi> but PHP is awful
<nga4> no kidding
<nga4> Python stands a shot though
<nga4> django
<nga4> it assumes less, you have to drive it more intentionally
<nga4> but it seems like a legitimate competitor
<tekknolagi> Django is bad
<nga4> however python doesn't get pigeon holed quite so badly
<tekknolagi> tried it
<tekknolagi> ugh
<tekknolagi> no
idkazuma has joined #ruby
<nga4> maybe 2.0 will break the mold
<nga4> doesn't look like it
<nga4> but maybe it will
idkazuma has quit [Remote host closed the connection]
<nga4> or maybe a new erlang will debut
<nga4> That would be amazing
idkazuma has joined #ruby
<nga4> Go comes close, but its horrible
<ninegrid> django is bad....
<ninegrid> weren't you just a minute ago having trouble writing to a file?
<tekknolagi> yes but it's most likely my fault
Umren has joined #ruby
<ninegrid> how am i supposed to take your experience with django seriously
<tekknolagi> i'm not exactly lucid right now
<tekknolagi> lack of sleep
<nga4> django seemed fine to me, just a slightly different set of rules
<shevy> nga4 I'd like to see ruby pick up more of erlang concepts
<nga4> anything thats not erlang to be more like erlang
<ninegrid> shevy: which ones?
<nga4> Id love it
<nga4> scalalang
<shevy> ninegrid the idea about distribution and fault toleration
<shevy> it reminds me of biological cells in a living organism
moshee has quit [Ping timeout: 255 seconds]
<nga4> Have you looked at zmq multi-threading?
moshee has joined #ruby
<shevy> and you can think of every cell as a mini-computer
otters has quit [Ping timeout: 276 seconds]
<nga4> Im using it in python, c and lua to do erlang like multi-processing
<ninegrid> shevy: that comes from immutability
<nga4> over unix sockets and over the internet
<shevy> :(
<shevy> admittedly, what I hate most about erlang is the syntax
<nga4> no kidding
<nga4> its a bit too haskell like for me
<ninegrid> fwiw the F# language has erlang qualities in its standard libraries
<nga4> smart langauge for smart people
<ninegrid> erlang is ugly haskell is beautiful
<shevy> yeah haskell code looks nice
<ninegrid> we could write mailbox processors in ruby
<lazywei> /ec
lazywei has left #ruby [#ruby]
<nga4> people keep saying that, the stuff Ive seen written in my company looks rough
<nga4> we have one guy doing it htough
<nga4> probably not the best sample
<nga4> Seriously, look at zeromq
<nga4> combine it with ruby
<nga4> you can get mailboxes and more for cheap
<ninegrid> thats an option, they already have a binding
gyre007 has joined #ruby
<nga4> and it spans so many langauges and tools
dhruvasa1ar has quit [Ping timeout: 244 seconds]
<nga4> Think of the apis you could write
<nga4> the flexibility of going from rails to c
dhruvasagar has quit [Ping timeout: 244 seconds]
<nga4> web services to real time embedded programming
pavilionXP has joined #ruby
<nga4> with one common pattern
<nga4> its no silver bullet
<nga4> but it is a very powerful idea
mahmoudimus has joined #ruby
<nga4> read the whole thing
<nga4> buy the book
<ninegrid> i've used zmq some
<ninegrid> i like it
jeer_ has joined #ruby
<nga4> Its a good skill to have
<nga4> something you really can market
<ninegrid> albeit i used it from F#
<ninegrid> which isn't something you can market so much
<ninegrid> hah
<nga4> not quite as much
<ninegrid> although F# is a great language
<nga4> We just need a new erlang
<ninegrid> it essentially is
<nga4> I might have to look into that one
<ninegrid> functional/imperative hybrid
<ninegrid> and the type provider feature in 3.0... nothing else like it
<nga4> Im locked to certain hardware and locational things that restrict my choices
<shevy> nga4 a new erlang, but please with a nicer syntax
<nga4> I wouldnt use c and lua otherwise
mockra has joined #ruby
<ninegrid> i've used F# since it was first released in 2006, back then it was a port of OCaml to the .net framework
<ninegrid> then it grew into its own language and added features no other language has
<nga4> wait
<nga4> is f# a .net langauge
<ninegrid> it is
<nga4> bummer
<nga4> locked to unix
<ninegrid> *shrug* so is haskell
<ninegrid> not .net
<ninegrid> but microsoft
<nga4> I dont mind microsoft
<ninegrid> simon peyton jones is employed by microsoft research
<nga4> but I do mind when I'm locked to microsoft infrastructure
<ninegrid> i know what you mean
<nga4> if it ran on osx and unix, say debian or centos,
<ninegrid> it does on mono
<nga4> what the hell is mono
<ninegrid> well the .net framework is an open standard
rakl has joined #ruby
<ninegrid> mono is the open source implementation
<nga4> isee
<ninegrid> F# is an open source language too
<ninegrid> released under the apache license
<nga4> A shame silverlight still won't run on debian
<ninegrid> i think silverlight is dead, ms took the site down
toekutr has quit [Read error: Connection reset by peer]
<ninegrid> thank god i put off learning
brianpWins has joined #ruby
<nga4> no kidding
<nga4> I did flex/air for a year
<ninegrid> nga4: http://www.tryfsharp.org/ if your interested in taking it for a spin
<nga4> those have problems, but they work
<nga4> ninegrid: its never to late to look at your options
<ninegrid> you can try it in the browser
mockra has quit [Ping timeout: 244 seconds]
<nga4> it compiles right?
<ninegrid> yes its compiled or repl
<nga4> well kudos to microsoft if it is what you advertise
<ninegrid> scripts and bytecode, same language
<ninegrid> it has units of measure too
<nga4> I did c# for like a year too
<nga4> it never wowed me
<nga4> but it worked
<nga4> silverlight was an interesting idea because it ran like flex
<ninegrid> it has easy asynch and parallel, discriminated unions (algebraic datatypes like in haskell or SML), a host of other features but most interesting being type providers
<nga4> mobile, browser, and installed as an app
kans has quit [Ping timeout: 255 seconds]
<jeer_> /window new split
megha has joined #ruby
<shevy> /destroy the world in 10 seconds
<nga4> I think I just got told to shut up
<shevy> hey I was just picking up on jeer_
<jeer_> /boom
<shevy> I am porting an old project to a new structure, it sucks and is boring :(
Mon_Ouie has joined #ruby
<shevy> one day I want to reach a point where I never have to rewrite from scratch
<ninegrid> guys you shouldn't be opposed to watching other languages.. only improves your own
tfittsy has quit [Ping timeout: 276 seconds]
<shevy> but how else can you detect which instance variable is obsolete, if the project really is super huge?
<nga4> port projects is always a mess
<nga4> are* wow, bad grammar
unsay has joined #ruby
jeer_ has quit [Quit: leaving]
<shevy> ninegrid I was told this many times, but why would I learn a language that I know is inferior to a better language? I mean I really write ruby code daily... a rival language would have to compete with that OR it is just "learn it because it has new ideas"
jeer_ has joined #ruby
nari has quit [Ping timeout: 245 seconds]
<shevy> nga4 yeah. I destroyed 3 projects that way :( my first ruby game... it is not working right now ... my master-pipes project... the rewrite is already cleaner, but stuck at 30% status, and I lost motivation... and my first irc bot in ruby also no longer works, and I am not motivated to continue with it
<shevy> (but I have a standalone IRC "client" that allows me to "talk" in an irc channel at least)
<nga4> I think its more of a restriction thing for me. When you install remotely on machines like raspberry pis that people can access and hack, I hesitate to use ruby for reasons of size and general ease of messing with.
<nga4> egh, stagnation
<nga4> Been there, done that, my sympathies shevy
<ninegrid> shevy: languages aren't inferior or superior in a linear fashion like that
<nga4> jump into some machine learning with ruby
<nga4> that will get you going
<nga4> also a skill you can market
<nga4> if only there were more hours and more coffee
shirokuro11 has quit [Remote host closed the connection]
<ninegrid> i've been programming since '94 i'm at the point now where there isn't a whole lot of friction to learning a new language
<pnkbst> that's a good read. thanks.
<pnkbst> more coffee makes it harder for me to work :(
Retistic has joined #ruby
<nga4> just balance it out
shtirlic has joined #ruby
<nga4> 1 cup of coffee
<nga4> 2 cups of scotch
<ninegrid> vicodin
<nga4> you'll be amazed at how much ruby you'll get done
gyre007 has quit [Remote host closed the connection]
gyre007 has joined #ruby
gyre007 has quit [Read error: Connection reset by peer]
<pnkbst> I've recently cut down to 1 cup of pu erh, 1 cup of mate' daily. 1 cup of espresso every other day. a bit of whiskey in the late afternoon
gcoderre has joined #ruby
<nga4> every other day
<nga4> you poor soul
<nga4> that sort of self abuse should be illegal
<pnkbst> yes, it is tragic. but I made some sweet espresso
<pnkbst> *make
roadt_ has quit [Ping timeout: 245 seconds]
ebaranov has joined #ruby
shtirlic has quit [Remote host closed the connection]
unsay has quit [Ping timeout: 245 seconds]
<luckyruby> shevy: rewriting from scratch is the way to go
angusiguess has joined #ruby
<nga4> depends on the size of the project
pcarrier has joined #ruby
<luckyruby> I've done 2-3 rewrites the past year. It's a lot of fun stripping out obsolete requirements.
<nga4> sometimes you have no choice but to refactor
<nga4> aggressively
nazty has quit [Read error: Connection reset by peer]
nazty has joined #ruby
<luckyruby> my favorite was replacing our PL/SQL + Oracle reservation system with RoR + Postgres + Redis
<nga4> luckyruby is right though, ripping out the nonsense is gratifying
rismoney has quit []
<nga4> I imagine that felt really good
<luckyruby> yeah, benchmarked the heck out of it with jmeter beforehand. It chugged at 4 req/s at first. Then after profiling and refactoring, got it up to 100 req/s.
Retistic has quit [Quit: Retistic]
<luckyruby> the PL/SQL stuff was running on $350k hardware and only got up to 20 req/s
<nga4> solaris?
<luckyruby> the RoR stuff was running on three $300 used servers I bought off ebay secondhand.
<luckyruby> yeah, bunch of sun hardware and solaris
<nga4> right tool for the right job
<luckyruby> we also added statsd and graphite to monitor performance
lkba has quit [Ping timeout: 245 seconds]
<nga4> did you ever consider or use couchdb to solve that problem?
idkazuma has quit [Remote host closed the connection]
ebobby has joined #ruby
<luckyruby> which problem?
<nga4> it depends on if you wanted to cheaply scale out sideways
<nga4> but by the sound of it the two servers you have does the job
<nga4> solving web requests en mass
<ninegrid> have any of you tried orientdb? i've been wanting to try it myself...
gcoderre has quit [Quit: gcoderre]
Retistic has joined #ruby
<luckyruby> We have haproxy sitting in front of our web cluster. Each node gives us about 35 req/s.
<luckyruby> Only pain point right now is redis.
<nga4> which is why I mentioned couch
ryanf has quit [Ping timeout: 246 seconds]
idkazuma has joined #ruby
<nga4> if you wanted to spread out the load it might be a cheap way to do that, maybe not, I dont have a lot of context to go on
chussenot has joined #ruby
<luckyruby> Issue with redis is that it blocks on fsync if you can't handle the IO
<ebaranov> luckyruby, what is the bottleneck in current setup? io, cpu or memory?
<luckyruby> fsync gets called whenever you run BGSAVE or AOFREWRITE
<luckyruby> so what we're doing now in the meantime is letting the slave run BGSAVE and on master, we run AOFREWRITE once a week
icole has quit [Remote host closed the connection]
<luckyruby> I've been told on #redis that switching to Raid 0 on our redis servers would help
<nga4> that seems like a lot of data to put in redis
ryanf has joined #ruby
icole has joined #ruby
<bricker> is there anything built-in to ruby that will let me recursively grep a directory?
<luckyruby> we use it to store rate data and shop history
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
<luckyruby> so when you shop for a rate, we set a key with an expiration of 15 min. Then when you actually book, we pull the key to save the data into postgres.
<nga4> interesting
<nga4> the right use
<nga4> but why write to the disk
<luckyruby> to persist the rates
<nga4> seems like you keep it for 15 minutes and toss it, try a lookup and if nothing comes back you use the current rate
ebaranov has quit [Remote host closed the connection]
osaut has joined #ruby
<nga4> hrm
EPIK has quit []
<nga4> I have to do something similar
<nga4> phone calls
<nga4> rates
<luckyruby> reason we store rates in redis is cause we're optimizing for rate shops
<nga4> but we take the rate at the moment hte call ends
<bricker> I guess I can just use File.read() and #scan
<nga4> and dont have to go the mile you do
<ninegrid> bricker: i dont think there is anything "built-in" but you could just do a breadth-first-search from a starting directory with File.find and File.open
<nga4> I'll stick that one in my deck of cards though
<nga4> interesting
cousine has joined #ruby
kans has joined #ruby
subbyyy_ has quit [Quit: none 0.3.9.2]
ebobby has quit [Quit: Lost terminal]
icole has quit [Remote host closed the connection]
Retistic has quit [Quit: Retistic]
<ninegrid> bricker: actually, have a look at the rak gem
tjbiddle has quit [Quit: tjbiddle]
arya has quit [Ping timeout: 256 seconds]
spinagon has quit [Read error: Connection reset by peer]
<ninegrid> bricker: http://rak.rubyforge.org/
rippa has joined #ruby
chussenot has quit [Quit: chussenot]
ebaranov has joined #ruby
arya has joined #ruby
ebaranov has quit [Client Quit]
tekknolagi has quit [Quit: Page closed]
chussenot has joined #ruby
Morkel has quit [Quit: Morkel]
Retistic has joined #ruby
thomasfedb has quit [Quit: ZNC - http://znc.sourceforge.net]
thomasfedb has joined #ruby
mfridh_ is now known as mfridh
v0n has quit [Ping timeout: 245 seconds]
unsay has joined #ruby
ryanf has quit [Ping timeout: 246 seconds]
plotter has joined #ruby
pcarrier has quit []
cardoni has joined #ruby
cableray has joined #ruby
decoponio has joined #ruby
benlieb has quit [Quit: benlieb]
gosshedd has quit [Ping timeout: 264 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
arya_ has joined #ruby
chrishough has quit [Quit: chrishough]
marr has joined #ruby
samuel02 has joined #ruby
elkclone has joined #ruby
arya has quit [Ping timeout: 264 seconds]
Konboi has joined #ruby
Gue______ has joined #ruby
Gue______ is now known as CorpusCallosum
mmun has quit [Quit: Computer has gone to sleep.]
mockra has joined #ruby
<shevy> luckyruby yeah, the new result will be better, but what if you lose motivation when you did 30%?
Retistic has quit [Quit: Retistic]
unsay has quit [Ping timeout: 245 seconds]
<shevy> I think I did about 12 full rewrites so far, 5 of them were ok, about 3 more I am still writing (but having fun), and the four remaining ones I should have never tried to rewrite, I have no fun spending time on that :(
yshh has joined #ruby
<luckyruby> is this for work or a hobby?
<luckyruby> usually I'm incentivized by a big bonus for a rewrite
<nga4> man
<nga4> I wish
mockra has quit [Ping timeout: 252 seconds]
ahokaomaeha has joined #ruby
<shevy> luckyruby more or less hobby, if I would get paid for it I'd probably put in more effort
<luckyruby> in my case since I was replacing Oracle + expensive servers, it was easier to negotiate a bonus
jeer_ has quit [Quit: leaving]
<luckyruby> switching saved the company at least $80k/year in license and support costs
<nga4> 4 man dev team here
cardoni has quit [Ping timeout: 260 seconds]
<nga4> huge projects
<nga4> no two overlap
<nga4> in terms of language or even purpose
<luckyruby> 2 man dev team here
<nga4> no kidding
<nga4> sounds like you found a great place
<luckyruby> we technically have 3 other devs on payroll but they don't do much
<nga4> well
<nga4> if you caount that way we have 2
<nga4> one doesnt show up until 1, leaves at 6, doesnt come in from november to march and the other doesn't show up but twice a week or so
<luckyruby> they were the original team maintaining the oracle java stuff
<nga4> coasters
<nga4> one day
<luckyruby> nga4 where do you stand among the 4?
yshh has quit [Read error: Connection reset by peer]
yshh_ has joined #ruby
epicurus has quit [Remote host closed the connection]
<luckyruby> are you low or high on the totem pole
<nga4> I'm lead-ish, I don't like management
<nga4> everyday from 8-6
<nga4> nevet watched netflix at work
arya_ has quit []
<luckyruby> it helps if your dad is the boss
<nga4> its not bad, but there is no budget for bonuses great wages
jeer_ has joined #ruby
<nga4> bonuses or*
<nga4> I imagine so
<nga4> I imagine its also easier to sell an idea
<luckyruby> my dad is CEO and I started out as sys/network admin
<nga4> not bad
<luckyruby> developers were sucking so I looked into, recommended they switch to Ruby on Rails (we were primarily pl/sql and java)
workmad3 has joined #ruby
<nga4> its amazing your java was only doing 1req/s
<nga4> had they not heard of threads
<luckyruby> lead developer writes back that ruby is a scripting language and isn't suitable in the enterprise. lol
maxmanders has joined #ruby
<nga4> hrm
dv_ has quit [Ping timeout: 252 seconds]
yshh has joined #ruby
<nga4> Ive had java people say that
yshh_ has quit [Read error: Connection reset by peer]
<luckyruby> this was back in 2006. Fast forward to today and I've almost single handedly replaced all their apps with my own.
<nga4> scripting language or not, its back end software, it gives you flexibility
<luckyruby> our CTO at the time also had this gem: "Linux is for boys, Solaris is for Men"
dv_ has joined #ruby
<nga4> most scripting languages arent like the languages of old, it gets interpretted once and put into a sort of byte code
<nga4> as long as you don't eval everything
<nga4> the speed is comparable
<nga4> Its not c
<nga4> but nothing is
<nga4> god
<luckyruby> our main app was PL/SQL. We had java for daemons that communicated with the PL/SQL.
<nga4> solaris
<luckyruby> and some daemons in C
<nga4> Well good to hear they got their up and comings
mityaz has joined #ruby
codecop has joined #ruby
<nga4> I like java, dont use it
<luckyruby> so it went something like this. Expedia --> Worldspan --> C Daemon --> Java Daemon --> PL/SQL --> Oracle
<nga4> but its easy to find really bad applications
<nga4> probably one of those was just a single thread
<nga4> request reply
<nga4> in order
<nga4> queuing up stuff behind it
<luckyruby> the C daemon was doing some corba stuff which I didn't want to touch so I replaced the Java Daemon with one written in Eventmachine
<luckyruby> c daemon takes edifact and converts it to xml to pass to java daemon
<luckyruby> java daemon takes xml and converts it into some comma delimited format to feed into pl/sql
wallerdev has quit [Quit: wallerdev]
<nga4> horray for json
<luckyruby> now it looks like: Expedia --> Worldspan --> C Daemon --> Eventmachine --> RoR --> Postgres
<nga4> wild
<nga4> ror is so far back in that stack
<nga4> I guess you just use it to catch xml in a controller and hit some model
<nga4> Ive never seen it that far back
<nga4> its just a webservice
yshh has quit [Ping timeout: 255 seconds]
<luckyruby> EM sends xml in the request body of a POST to rails
<nga4> makes sense, just unusual
<luckyruby> rails parses xml and responds with another xml via builder
<nga4> I have pythong and hskell sending json to mine via posts for routing
<nga4> python
<nga4> but we still use rails as a sort of front end for html and what have you
<bricker> ninegrid: Thanks for the help... this is the quick dirty script I came up with... I had never heard of the Find module until you mentioned it https://gist.github.com/4696710
<luckyruby> i also have a json api so I can receive a GET with params and respond with JSON
<nga4> then out through zmq to c servers and to lua and c for serving media to hardware and trasncoding
<nga4> I want to use zmq across the board
<nga4> and eliminate the controllers and views
<nga4> then scale
<luckyruby> are you in telephony?
<nga4> yeah
Xeago has joined #ruby
<nga4> and the endpoints go all over
<nga4> all real time
<luckyruby> do you use adhearsion?
<nga4> never heard of it
<nga4> I see
<luckyruby> or http://adhearsion.com/
yshh has joined #ruby
<nga4> We have to push media into computers on user computers
<nga4> this seems very
<nga4> centralized
megha has quit [Quit: WeeChat 0.4.0]
cableray has quit [Quit: cableray]
Mon_Ouie has quit [Quit: WeeChat 0.3.9.2]
megha has joined #ruby
<nga4> waiting for web calls from halfway across the world would be a challenge, doubly so when things go offline
<nga4> it depends on the end goal and audience
<nga4> 2600hz makes a similar product
<nga4> twilio
<nga4> and one other one Im forgetting
Konboi_ has joined #ruby
<nga4> plivio
<luckyruby> explain to me why it's 2013 and I have to pay for text messaging
<nga4> Phone companies are like railroads
<nga4> they own the tracks
<nga4> and they know it
<nga4> read about the history of railroads and you'll get it
<nga4> they build the lines right next to the tracks as they went
<luckyruby> also bullshit how it's now illegal to unlock your own phone
<nga4> no kidding
<nga4> but
<nga4> it happened because the railroads bought congress
<nga4> metaphorically speaking
<luckyruby> yea
kylescottmcgill has joined #ruby
<nga4> networks lobbied
<luckyruby> same shit, different era
Konboi has quit [Ping timeout: 260 seconds]
unsay has joined #ruby
<nga4> pays to know your history
<nga4> and enemies
<bricker> Am I crazy? `require 'logger'; Logger.new(path)` #=> uninitialized constant Logger
osaut has quit [Quit: osaut]
<bricker> works in irb but not when running with the ruby binary
<luckyruby> is that in irb?
<bricker> ruby -v #=> ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.3.0]
<nga4> might be an embedded class?
wakoinc has joined #ruby
<bricker> nga4: not sure what you mean by that... you mean embedded in irb?
<nga4> no, the module might have one name but the constants you can use might be scoped in a way you would not expect
<luckyruby> i thank God everyday that I've been spared having to make a living writing php or java.
<nga4> luckyruby: nah, builds character
<luckyruby> lol
<nga4> never lock yourself to just one tool
<bricker> nga4: in irb it works as expected though: `irb$ Logger #=> uninitialized constant Logger ... require 'logger'; Logger #=> Logger`
<nga4> makes you less plastic
<luckyruby> I've been experimenting a little with erlang and node.js.
<nga4> bricker: actually that snippet worked for me
My_Hearing is now known as Mon_Ouie
hamed_r has joined #ruby
clocKwize has joined #ruby
<bricker> nga4: fuck me... I was running the wrong file -_-
<nga4> require "logger"; Logger.methods.sort
<nga4> bricker: happens to everyone
<luckyruby> PEBKAC
<nga4> luckyruby: node.js is unusually popular, I dont get it
<nga4> luckyruby: now erlang, thats something worth your time
<luckyruby> i rewrote the EM stuff in node.js. It was 30% faster.
<luckyruby> i think it's good for certain size projects
<luckyruby> like immediate short term gains
<luckyruby> but I imagine large projects get messy with all the callback spaghetti
<nga4> Everyone likes immediate short term gains
<nga4> callbacks are for people who constantly like being on fire
<luckyruby> same could be said about EM
<luckyruby> which is why I looked into celluloid
gyre007 has joined #ruby
<luckyruby> i wrote a celluloid version and it ran slower than the EM one
<nga4> whatever you pick, pick the right tool for the job and do yourself the favor of making sure you can sell your skill later
clocKwize has quit [Client Quit]
io_syl has quit [Quit: Computer has gone to sleep.]
<nga4> I picked up lua and c instead of erlang
<nga4> I have mixed feelings about hte investment
<nga4> but the requirements sort of forced my hand
Jackneill has joined #ruby
Jackneill has quit [Changing host]
Jackneill has joined #ruby
<nga4> small devices
<nga4> I'll be stuck where I am banking on other intellectual investments
<nga4> for now
<luckyruby> I might be entering the job market soon. Company is in the process of entertaining offers from buyers.
<nga4> bummer
<nga4> good
<nga4> but also a bummer
<luckyruby> and in the contract, it specifically said shareholder's relatives would be the first to go
<nga4> ruby is something you can sell, mostly for rails
<nga4> that sucks
banisterfiend has quit [Ping timeout: 245 seconds]
<nga4> just be prepared for the agile shop experience
<luckyruby> I wonder if they'll make an exception with me though considering I'm the most knowledgable person in the company re: our technology and how everything ties together.
<nga4> two scrums a day with developers in europe
<nga4> if they're buying out
<nga4> they'll probably just consume the technology and use their engineers to integrate and rewrite
<luckyruby> most likely, they won't be using what I've built but it'll help if they keep me around long enough to handle the transition
<nga4> I would imagine youd be set for a while, but I'd be ready to play to the tune of some other engineer
<nga4> java people perhaps
<nga4> who want to go back to solaris
<luckyruby> lol yea
<wakoinc> buy out deals fail often
yxhuvud has quit [Quit: Nettalk6 - www.ntalk.de]
unsay has quit [Ping timeout: 256 seconds]
<nga4> point being, build skills you can market based on picking the right tools for the problems you intend to solve
<wakoinc> but i've also learned that you can't go on with a new vision without cleaning house
samphippen has joined #ruby
<luckyruby> yea, I'd qualify myself more as a problem solver than a programmer
<nga4> dont become the next generation of your java people
yxhuvud has joined #ruby
<luckyruby> yea, I look at some of my non productive coworkers (in their 40s, 50s). It's sad.
chussenot has quit [Ping timeout: 255 seconds]
<nga4> well no one is a rockstar forever
<luckyruby> the fire just isn't there
<luckyruby> I tried teaching them RoR. All I got was a bunch of ruby written like Java.
<nga4> I think a lot of it comes from, say, buying a house, having kids and having to work a less than completely interesting job to meet personal obligations
hamed_r has quit [Quit: Leaving]
<nga4> you lock yourself into a job
<nga4> job locks you into a paradigm
<nga4> so it goes
jeer has joined #ruby
<nga4> not one string interpolation in the bunch
<wakoinc> ouch
emergion has quit [Quit: Computer has gone to sleep.]
gyre007 has quit [Remote host closed the connection]
<nga4> two character varible names kill me
johndouthat has quit [Quit: johndouthat]
<nga4> erb is built in
<nga4> its java-y
jeer_ has quit [Quit: Lost terminal]
<ninegrid> bricker: np... also it just occured to me you could always check this site in the future http://rosettacode.org/wiki/Walk_a_directory/Recursively
jgrevich has quit [Quit: jgrevich]
lzy has joined #ruby
nimred has quit [Quit: Lost terminal]
mityaz has quit [Quit: Miranda NG! Smaller, Faster, Easier. http://miranda-ng.org/]
nimred has joined #ruby
nimred has quit [Changing host]
nimred has joined #ruby
icole has joined #ruby
yshh has quit [Remote host closed the connection]
razibog has joined #ruby
agarie has joined #ruby
brianpWins has quit [Quit: brianpWins]
chussenot has joined #ruby
rakl has quit [Quit: sleeping]
<luckyruby> nga4: are you guys allowed to watch netflix at work?
icole has quit [Ping timeout: 252 seconds]
<nga4> No one seems to stop people
<nga4> Makes me a bit angry
<nga4> when we dont have time to write tests or do things right
<nga4> half measures all around
<nga4> kills me
<luckyruby> heh
emergion has joined #ruby
<luckyruby> I'm not that strict
<luckyruby> as long as you're productive
<nga4> Its a thin line
<luckyruby> we actually play minecraft a bunch
<nga4> like I said
<luckyruby> used to be starcraft
<nga4> half-measures
<nga4> cut corners
<nga4> bad code
<nga4> thoughtless design
<nga4> and no one reads
<nga4> I tend to spend all my spare cycles trying to read
<nga4> I try not to see it if it's at all preventable
<nga4> it boils out proper when it comes times for raises and the proverbial "Who gets the shitty features and who gets the cool stuff"
<nga4> or so I tell myself to clearly not sleep at night
gokul has quit [Read error: Connection reset by peer]
cantonic has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
emergion has quit [Client Quit]
samphippen has quit [Quit: Computer has gone to sleep.]
mockra has joined #ruby
braoru has joined #ruby
<nga4> I should probably try before the sun comes up
chendo_ has quit [Quit: Computer has gone to sleep.]
pcarrier has joined #ruby
<Hanmac> http://rosettacode.org/wiki/Category:Ruby "It is a language that combines * Joy of programming " :D
mockra has quit [Ping timeout: 276 seconds]
main_ has joined #ruby
<nga4> au revoir
maxmanders has quit [Ping timeout: 264 seconds]
unsay has joined #ruby
BizarreCake has joined #ruby
maxmanders has joined #ruby
nari has joined #ruby
jbw has joined #ruby
mityaz has joined #ruby
pcarrier has quit []
jaequery has quit [Quit: Computer has gone to sleep.]
cardoni has joined #ruby
yacks has quit [Remote host closed the connection]
justsee has quit [Quit: Linkinus - http://linkinus.com]
staafl has quit [Quit: Leaving]
unsay has quit [Ping timeout: 255 seconds]
segv- has joined #ruby
marr has quit [Ping timeout: 252 seconds]
mneorr has joined #ruby
maxmanders has quit [Ping timeout: 252 seconds]
cardoni has quit [Ping timeout: 255 seconds]
crackfu_ has quit [Remote host closed the connection]
crackfu has joined #ruby
crackfu has quit [Ping timeout: 264 seconds]
mercwithamouth has quit [Ping timeout: 264 seconds]
samuel02 has quit [Remote host closed the connection]
gosshedd has joined #ruby
roadt_ has joined #ruby
pavilionXP has quit [Read error: Connection reset by peer]
roadt_ has quit [Max SendQ exceeded]
roadt_ has joined #ruby
roadt_ has quit [Max SendQ exceeded]
roadt_ has joined #ruby
swex_ has joined #ruby
swex has quit [Ping timeout: 260 seconds]
kristofers has joined #ruby
Nisstyre-laptop has quit [Quit: Leaving]
mneorr has quit [Remote host closed the connection]
roadt_ has quit [Max SendQ exceeded]
emmanuelux has quit [Ping timeout: 260 seconds]
roadt_ has joined #ruby
maxmanders has joined #ruby
unsay has joined #ruby
Takehiro has quit [Read error: Connection reset by peer]
roadt_ has quit [Max SendQ exceeded]
backjlack has joined #ruby
roadt_ has joined #ruby
kans has quit [Ping timeout: 260 seconds]
cousine has quit [Remote host closed the connection]
ahokaomaeha has quit [Ping timeout: 248 seconds]
noxoc has joined #ruby
Takehiro has joined #ruby
gouthamvel has quit [Read error: Connection reset by peer]
maj has joined #ruby
love_color_text has quit [Ping timeout: 246 seconds]
wakoinc has quit [Quit: wakoinc]
reinaldob has joined #ruby
Retistic has joined #ruby
niklasb has joined #ruby
gouthamv_ has joined #ruby
emmanuelux has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
unsay has quit [Ping timeout: 255 seconds]
mockra has joined #ruby
ben_h has joined #ruby
<ben_h> hi all
Takehiro has quit [Remote host closed the connection]
Takehiro has joined #ruby
<ben_h> anyone else had issues installing gems on 2.0.0-rc1? i'm getting a Zlib::DataError with 'incorrect header check'; everything working fine on 1.9.3-p374
megha has quit [Ping timeout: 245 seconds]
yshh has joined #ruby
emmanuelux has quit [Remote host closed the connection]
Michael_ has joined #ruby
tenmilestereo has joined #ruby
Michael_ has quit [Remote host closed the connection]
Michael_ has joined #ruby
arietis has joined #ruby
banisterfiend has joined #ruby
Loaft has quit [Read error: Connection reset by peer]
samuel02 has joined #ruby
agarie has quit [Quit: Leaving...]
jeer has quit []
mockra has quit [Ping timeout: 245 seconds]
jeer has joined #ruby
noxoc has quit [Quit: noxoc]
marr has joined #ruby
jeer has quit [Client Quit]
jeer has joined #ruby
yshh has quit [Ping timeout: 248 seconds]
zastern has quit [Ping timeout: 245 seconds]
Michael_ has quit [Ping timeout: 245 seconds]
whowantstolivefo has quit [Quit: who wants to live forever ?]
zastern has joined #ruby
marr has quit [Ping timeout: 248 seconds]
apeiros_ has joined #ruby
rippa has joined #ruby
ben_h has quit [Quit: ben_h]
maj has quit [Quit: Textual IRC Client: www.textualapp.com]
Michael_ has joined #ruby
RagingDave has joined #ruby
preller has quit [Quit: Lost terminal]
noxoc has joined #ruby
yacks has joined #ruby
megha has joined #ruby
apeiros_ has quit [Remote host closed the connection]
preller has joined #ruby
preller has quit [Changing host]
preller has joined #ruby
Michael_ has quit [Ping timeout: 276 seconds]
pskosinski has joined #ruby
casheew has joined #ruby
unsay has joined #ruby
apeiros_ has joined #ruby
casheew has quit [Client Quit]
pavilionXP has joined #ruby
apeiros_ has quit [Remote host closed the connection]
marr has joined #ruby
Kuifje has joined #ruby
Kuifje has quit [Changing host]
Kuifje has joined #ruby
casheew has joined #ruby
horofox has joined #ruby
samphippen has joined #ruby
chussenot has quit [Quit: chussenot]
cardoni has joined #ruby
unsay has quit [Ping timeout: 255 seconds]
elkclone has quit [Quit: It's never too late to unplug and run.]
jonathanwallace has quit [Quit: WeeChat 0.3.9.2]
emmanuelux has joined #ruby
backjlack has quit [Remote host closed the connection]
cardoni has quit [Ping timeout: 244 seconds]
Retistic has quit [Quit: Retistic]
nari has quit [Read error: Operation timed out]
yxhuvud has quit [Quit: Nettalk6 - www.ntalk.de]
slainer68 has joined #ruby
slainer68 has quit [Remote host closed the connection]
Splourian has joined #ruby
yxhuvud has joined #ruby
nkr has joined #ruby
mneorr has joined #ruby
dekroning has joined #ruby
slainer68 has joined #ruby
nomenkun has joined #ruby
slainer68 has quit [Remote host closed the connection]
TheFuzzball has joined #ruby
mneorr has quit [Ping timeout: 244 seconds]
fg3 has joined #ruby
cantonic has quit [Quit: cantonic]
ssa has joined #ruby
<ssa> Anyone knows why Process.spawn would give:
<ssa> `spawn': No such file or directory - open (Errno::ENOENT)
mockra has joined #ruby
cantonic has joined #ruby
<ssa> I'm trying Process.spawn(env, "/usr/local/bin/redis-server -", opts)
<ssa> the file exists and works when i run it in shell.
<ssa> why is run trying the command "open"?
<ssa> why is ruby trying*
mfridh has quit [Ping timeout: 256 seconds]
gouthamv_ has quit [Remote host closed the connection]
Splourian has left #ruby [#ruby]
apeiros_ has joined #ruby
emergion has joined #ruby
marr has quit [Ping timeout: 248 seconds]
unsay has joined #ruby
mockra has quit [Ping timeout: 260 seconds]
<ssa> Anyone awake?
<ssa> :-)
hemanth_ has quit [Read error: Connection reset by peer]
buibex has joined #ruby
<ssa> ok figured. it was because i was passing stdout directory in opts, for which the directories didn't exist yet. that's all. thanks!
ssa has quit [Quit: Page closed]
hemanth has joined #ruby
slainer68 has joined #ruby
slainer68 has quit [Remote host closed the connection]
buibex has quit [Remote host closed the connection]
ben_h has joined #ruby
fg3 has left #ruby [#ruby]
allsystemsarego has joined #ruby
allsystemsarego has joined #ruby
allsystemsarego has quit [Changing host]
jacktrick has joined #ruby
unsay has quit [Ping timeout: 252 seconds]
Jackneill has quit [Read error: Connection reset by peer]
kenneth has joined #ruby
TomyLobo has joined #ruby
backjlack has joined #ruby
razibog has quit [Ping timeout: 260 seconds]
idkazuma has quit [Remote host closed the connection]
jonahR has quit [Quit: jonahR]
freeayu has joined #ruby
recycle has quit [Remote host closed the connection]
recycle has joined #ruby
RurouniJones has joined #ruby
recycle has quit [Ping timeout: 248 seconds]
colonolGron has joined #ruby
pcarrier has joined #ruby
grendlme has joined #ruby
maxmanders has quit [Ping timeout: 252 seconds]
arturaz has joined #ruby
dawkirst has quit [Read error: Connection reset by peer]
AndChat| has joined #ruby
yacks has quit [Quit: Leaving]
Targen has joined #ruby
Targen_ has quit [Ping timeout: 248 seconds]
atno has joined #ruby
Banistergalaxy has quit [Ping timeout: 276 seconds]
eka has joined #ruby
Takehiro has quit [Remote host closed the connection]
megha has quit [Ping timeout: 264 seconds]
aaronmcadam has joined #ruby
robotmay has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
unsay has joined #ruby
pcarrier has quit []
<shevy> hmm if I understand it
<shevy> aha
samphippen has joined #ruby
<shevy> Kernel.system() and system() is equivalent. Does class Object include module Kernel? I wonder how it works that we can omit the leading "Kernel." part
samphippen has quit [Client Quit]
<whitequark> shevy: Object.ancestors
<whitequark> iow, yes.
<apeiros_> shevy: all methods in Kernel are module_function's
<whitequark> ^ also that
<shevy> wheee! apeiros is back! Xeago wake up!
<apeiros_> not back
<shevy> awww :( Xeago was saying you were ill
<whitequark> also did you know that module_function is a visibility specifier? like public/private/protected
<apeiros_> stupid influenza :(
Vektur has quit [Ping timeout: 272 seconds]
<apeiros_> whitequark: kinda, it makes the instance method private
<shevy> whitequark hmm not sure, I have not used module_function much
<apeiros_> and the class method remains public
<apeiros_> which is awesome because it means the instance method won't interfere with method_missing
<fflush> salut bonjour
<apeiros_> and which is why `extend self` with modules is a bad pattern
<apeiros_> hi there fflush
<fflush> hey
<whitequark> apeiros_: it also affects the scope where it's invoked
<whitequark> ie module A; module_function; def a; end; end; module A; def b; end; end
<whitequark> `a' is module_function but `b' isn't
<apeiros_> whitequark: ah, you meant that
<whitequark> yep
<apeiros_> yeah, that's a nice property. would be nice though if ruby made that available to other methods too
jetblack has quit [Ping timeout: 264 seconds]
<apeiros_> you could emulate it using set_trace_func, but that sucks for obvious reasons :)
blaxter has joined #ruby
* apeiros_ barks like a pit bull :(
DaZ has quit [Ping timeout: 245 seconds]
idkazuma has joined #ruby
chussenot has joined #ruby
<whitequark> apeiros_: it is very hacky :/
<apeiros_> `protected do … end` would be a viable alternative IMO
<whitequark> jruby has to resort to things like pattern matching by "block_given?" at compile-time
horofox has quit [Quit: horofox]
<whitequark> and adding guards
<whitequark> for every method which accesses the scope of its parent
<apeiros_> wow, that sounds odd
<apeiros_> I'd expected a callback at `end`
<whitequark> hm?
AntiTyping has quit [Read error: Connection reset by peer]
AntiTyping has joined #ruby
<whitequark> oh, that's less of a problem for things like public&friends, which could indeed be implemented like a hidden field in the class
<whitequark> (but that would be less transparent, prone to breakage and not spec-compliant)
<whitequark> block_given?, binding, and so on need to be handled with great care by the optimizer
<whitequark> eg you cannot inline them blindly, etc
<apeiros_> ok, somehow I'm lost
<whitequark> see, there's normally no way to access &block (or any arbitrary arguments, for that matter) of caller in ruby
<whitequark> but block_given? does this, because.
<whitequark> (simply because)
cardoni has joined #ruby
<whitequark> thus, normally one would take advantage of the fact that methods cannot access arguments of the caller (eg in JS, one couldn't)
<apeiros_> are we still talking about how private/protected/public/module_function work?
<whitequark> but several magical methods break this assumption
razibog has joined #ruby
unsay has quit [Ping timeout: 276 seconds]
<whitequark> apeiros_: block_given? is similar to private by that they both access the scope of the caller.
jamescarr has joined #ruby
<apeiros_> ah
<whitequark> however, for private&friends this is mostly irrelevant because class definition is not optimized
reinaldob has quit [Remote host closed the connection]
<whitequark> that simply doesn't make sense
<whitequark> to optimize them, that is
<apeiros_> funny, I never considered block_given? a method, always assumed it was a keyword. never actually checked…
<whitequark> technically it is a method
Xeago has quit [Remote host closed the connection]
<Hanmac> alias is not a method, but alias_method is one :P
<whitequark> Hanmac: alias is not a method because you can alias globals
<whitequark> which is a wtf of itself
<whitequark> apeiros_: another strange "method" is local_variables
<ben_h> ha, that is confusing. most editors highlight #block_given? as a keyword
<whitequark> apeiros_: it shouldn't even exist imo. there is hardly a valid use case.
pskosinski has quit [Quit: Open source spirit according to Quinton Reeves, Red Eclipse developer: http://pawelk.pl/quinton-reeves]
<apeiros_> whitequark: I love it in pry/irb
<whitequark> also binding and proc/Proc.new
<apeiros_> but yes, outside of debugging, there's indeed no use-case coming to mind
<whitequark> the latter pair can also gain access to &block
ftqkfn has joined #ruby
<apeiros_> binding is very weird - obj.binding - what should it do?
<Hanmac> whitequark: with C-Ext you can do more freaky stuff with global variables :D ... like virtual, readonly, hooked variables :D
<whitequark> apeiros_: for debuggers, there should be a way to export a debugging context
<ben_h> whitequark: yep :) there's no way to use it in real code that doesn't end with "... but you really shouldn't be doing that."
<apeiros_> whitequark: re debugging context - that'd be lovely. I'd also love an Introspection module
<whitequark> apeiros_: which would also have a desired effect of localizing inhibition of optimizations
<apeiros_> which can't be modified and can introspect BasicObject's too
<whitequark> I'll try to discuss that with @headius
<whitequark> I already have two rfc's worth submitting though :S
<apeiros_> ^^
mockra has joined #ruby
<apeiros_> ruby is a nice language - but there's so much which could be better
gosshedd has quit [Ping timeout: 256 seconds]
<whitequark> fortunately matz agreed to remove proc{}.binding
pavilionXP has quit [Remote host closed the connection]
<whitequark> it has almost endless potential for abuse
<Hanmac> apeiros_ make an feature or pull request :P
<apeiros_> Hanmac: I'm somewhat disillusioned
<whitequark> 2.0 should really deprecate the block-less proc/Proc.new form
<whitequark> I mean remove them finally
<apeiros_> I made a simple patch to StringScanner, adding three methods (don't remember all, stuff that's present in MatchData) about 4y ago, afaik it's still not in
<apeiros_> yupp, still not in
<whitequark> apeiros_: 4y ago the process was different, I'd say.
<apeiros_> you mean I should rinse and repeat?
<whitequark> yes
kn330 has quit [Remote host closed the connection]
workmad3 has joined #ruby
allsystemsarego_ has joined #ruby
<apeiros_> hm
<banisterfiend> apeiros_: the common use is: proc.binding.eval('self')
mockra has quit [Ping timeout: 264 seconds]
pskosinski has joined #ruby
<banisterfiend> admittedly it's used for crazy/k00 stuff, but it's fun
<whitequark> if by "fun" you mean "prevents any optimization of procs whatsoever" I agree
<banisterfiend> if they provided: proc.self
<banisterfiend> that woudl be good enough
Neomex has joined #ruby
* Hanmac likes
<apeiros_> whitequark: I assume the closure aspect of blocks/procs is also an issue wrt optimization?
<Hanmac> >> p TOPLEVEL_BINDING.eval("self")
<eval-in> Hanmac: Output: "main\n" (http://eval.in/8190)
allsystemsarego has quit [Ping timeout: 245 seconds]
<whitequark> apeiros_: you can deal with closures, as they're lexically local
arya has joined #ruby
<whitequark> apeiros_: but you can invoke #binding in any place, at any proc
<banisterfiend> whitequark: things like mixico :)
<whitequark> apeiros_: and you cannot really optimize locals if you have #binding
cardoni has quit [Ping timeout: 245 seconds]
<apeiros_> whitequark: why?
<apeiros_> MRI does not allow introduction of new locals via binding+eval
<whitequark> apeiros_: but you have to store them on heap
<whitequark> as opposed to registers/stack
<whitequark> as you cannot get a reference to a stack slot in java
Neomex has quit [Client Quit]
IdlePhD has joined #ruby
<whitequark> you have to store them on heap anyway if something else closes over them as well. but that's only rarely the case.
<whitequark> (besides, there is inlining)
blaxter has quit [Quit: foo]
Xeago has joined #ruby
<whitequark> banisterfiend: mixico is ugh
<whitequark> relying on nonportable features for minor syntactic niceties
workmad3 has quit [Ping timeout: 264 seconds]
<banisterfiend> whitequark: i just said it was fun, it's not a serious project, but it's cool
Takehiro has joined #ruby
<banisterfiend> stop being so aggressive :)
<whitequark> banisterfiend: right now I'm faced with a rails testsuite which runs for circa 5 minutes
<whitequark> each fucking feature which gives up performance for some minor useless stuff is not going to amuse me
codecop has quit [Quit: Išeinu]
dustint has quit [Ping timeout: 252 seconds]
nfk has joined #ruby
<whitequark> ruby really ought to have all the callstack-reflecting stuff in some separate (and optional) Instrumentation module
<apeiros_> whitequark: I thought putting stuff in the register in modern C is more like a kind request at the compiler, but it'll do as it sees fit wrt optimization - no?
<whitequark> apeiros_: first, how is that related to C?
<whitequark> second, kind of: jvm places values in registers (if there's enough) or spills them on stack
<whitequark> but that's not the problem
<whitequark> if you *can* access the locals from outside, you *cannot* store them only in registers, because if you store them in a register, there's no way of accessing them from outside
<apeiros_> whitequark: oh, you were only referring to optimizations in jruby/jvm?
Takehiro has quit [Ping timeout: 264 seconds]
<whitequark> apeiros_: yes, MRI is too stupid to take advantage of it
<whitequark> I'm fairly certain that rbx has this penalty too
unsay has joined #ruby
<whitequark> it isn't restricted by jvm, but properly implementing this stack juggling can be hard, and even if it is, you still lose some performance
slainer68 has joined #ruby
<whitequark> fortunately, as I've said, matz has no objections to removing Proc#binding.
<charliesome> banisterfiend: the debug inspector segv got fixed
IdlePhD has quit [Ping timeout: 240 seconds]
Stilo has joined #ruby
slainer68 has quit [Ping timeout: 264 seconds]
<whitequark> also I wonder who came up with the idea of introducing call/cc to ruby
<whitequark> because in a language which has threads, fibers and exceptions it is only useful for very few very insane tricks
dcwu has quit [Quit: Leaving.]
<whitequark> (in e.g. scheme it is used to implement all of the above)
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
ejnahc has quit [Quit: Changing server]
ejnahc has joined #ruby
ejnahc has quit [Max SendQ exceeded]
unsay has quit [Ping timeout: 248 seconds]
ejnahc has joined #ruby
BizarreCake has quit [Ping timeout: 276 seconds]
cardoni has joined #ruby
grendlme has quit [Quit: grendlme]
Targen has quit [Ping timeout: 245 seconds]
Konboi_ has quit [Remote host closed the connection]
Vektur has joined #ruby
<banisterfiend> charliesome: cool
<banisterfiend> charliesome: but it skips block frames right?
arietis has quit [Quit: Computer has gone to sleep.]
kristofers has quit [Ping timeout: 244 seconds]
<charliesome> don't think so
<charliesome> i think ko1 fixed it properly
<banisterfiend> oh nice, last time i messed with it it seemed to miss a few frame types
<banisterfiend> sweet
<charliesome> don't quote me though
<banisterfiend> just in time for the 2.0 release which is supposed to be sometime this month
jfl0wers has quit [Quit: jfl0wers]
Guest69111 has joined #ruby
<rking> charliesome: What's the status of Pry+better_errors, brah?
<banisterfiend> charliesome: i can add support for it to binding_of_caller so u dont have to use a different API, though you've probably wrapped it already :)
tenmilestereo has quit [Quit: Leaving]
lunarjar has joined #ruby
<charliesome> banisterfiend: nah i haven't
<charliesome> banisterfiend: if you added support for it to binding_of_caller that'd be super sweet
<charliesome> rking: secret beta sort of
<charliesome> rking: i don't want to enable it by default until i'm confident it works
idkazuma has quit [Remote host closed the connection]
lunarjar has quit [Remote host closed the connection]
banisterfiend has quit [Remote host closed the connection]
<rking> charliesome: Can you comment on https://github.com/charliesome/better_errors/issues/3 ?
maxmanders has joined #ruby
grendlme has joined #ruby
<rking> charliesome: BTW I got back into Rails3 dev recently... first time since b_e came out. It is changing the dev teams' lives.
jamescarr has quit [Quit: jamescarr]
<charliesome> i'm glad to hear that
<whitequark> hm should try it
jonathanwallace has joined #ruby
maxmanders has quit [Max SendQ exceeded]
zommi has joined #ruby
<charliesome> i wonder if i had've made b_e an actual product and charged like $5 bucks for it whether it still would've taken off
cardoni has quit [Ping timeout: 255 seconds]
maxmanders has joined #ruby
BizarreCake has joined #ruby
<rking> charliesome: 77k downloads. I'd say so.
pavilionXP has joined #ruby
horofox has joined #ruby
<rking> charliesome: It should undoubtedly be funded.
Kuifje has left #ruby ["Leaving"]
<charliesome> most of b_e's awesomeness is basically a result of banisterfiend's hard work anywya
Kuifje has joined #ruby
<rking> What kind of rate would you expect a company to pay you, e.g. to make it so the localhost-only-repl thing works?
hoelzro|away is now known as hoelzro
<rking> banistwho?
<charliesome> the banisterfiend guy above (he just left)
<charliesome> also hmm i dunno
<rking> j/kj/k I kno dat boi.
kristofers has joined #ruby
<charliesome> i think localhost only repl is in master
<charliesome> i just haven't released in ages
<charliesome> because i've been slacking off
<rking> Yes, but IIRC it shuts off all of b_e
<charliesome> ah
<charliesome> yeah i suppose it'd be like a couple of conditionals
<charliesome> not a lot of work
<rking> I cannot stress how important b_e is.
pizzahead has quit [Read error: Connection reset by peer]
acrocity_ has joined #ruby
<swarley> I'm not sure what we're talking about, can I get a link?
<rking> Right. And if it had a nention of the fact that it is available but off would male that even better.
<rking> swarley: Do you do Rails dev?
<swarley> Not really.
<swarley> Ocassionally if the mood strikes me
<rking> =\
pavilionXP has quit [Ping timeout: 245 seconds]
<swarley> Generally, it feels like too much for what I want to do
banisterfiend has joined #ruby
acrocity has quit [Ping timeout: 264 seconds]
acrocity_ is now known as acrocity
<swarley> Oh that is really cool though
<rking> Actually, b_e isn't only for Rails.
<swarley> sinatra?
<charliesome> its a rack middleware
<rking> It just is super easy to use on Rails: ge 'better_errors' # done
<charliesome> it has a magical self activating railtie though
<rking> s/ge/gem
<swarley> nifty
<swarley> I'd use it with sinatra
acrocity_ has joined #ruby
unsay has joined #ruby
<charliesome> night everyone
<rking> charliesome: Many cool things are being done as Rack apps (Rails especially). Improving those processes exponentiates the whole community.
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
<rking> Dang.
zommi has quit [Quit: Leaving.]
<swarley> Calling yield from the REPL segfaults MRI 1.9.x.
<swarley> That's odd
acrocity has quit [Ping timeout: 245 seconds]
acrocity_ is now known as acrocity
workmad3 has joined #ruby
banisterfiend has quit [Remote host closed the connection]
xemu has joined #ruby
ashleyis has joined #ruby
mockra has joined #ruby
megha has joined #ruby
<rking> swarley: From b_e?
<rking> What REPL?
samphippen has joined #ruby
<swarley> That's in the known issues section
samuel02 has quit [Remote host closed the connection]
jonathanwallace has quit [Quit: WeeChat 0.3.9.2]
jonathanwallace has joined #ruby
mockra has quit [Ping timeout: 260 seconds]
maxmanders has quit [Ping timeout: 245 seconds]
carloslopes has joined #ruby
jonathanwallace has quit [Client Quit]
b1rkh0ff has quit [Read error: Operation timed out]
Pandaen has joined #ruby
jonathanwallace has joined #ruby
unsay has quit [Ping timeout: 256 seconds]
frankkany has joined #ruby
tfittsy has joined #ruby
banisterfiend has joined #ruby
maxmanders has joined #ruby
cardoni has joined #ruby
banisterfiend has quit [Ping timeout: 245 seconds]
grendlme has quit [Quit: grendlme]
xpen_ has quit [Remote host closed the connection]
xpen has joined #ruby
frankkany has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
b1rkh0ff has joined #ruby
acrocity_ has joined #ruby
timeout has joined #ruby
acrocity has quit [Ping timeout: 255 seconds]
acrocity_ is now known as acrocity
joofsh has joined #ruby
jonathanwallace1 has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
jonathanwallace has quit [Ping timeout: 256 seconds]
karupanerura has quit [Ping timeout: 276 seconds]
arya has quit [Ping timeout: 248 seconds]
samphippen has joined #ruby
karupanerura has joined #ruby
cardoni has quit [Ping timeout: 240 seconds]
arya has joined #ruby
carloslopes has quit [Remote host closed the connection]
maxmanders has quit [Ping timeout: 264 seconds]
xpen_ has joined #ruby
AndChat| has quit [Quit: Bye]
Banistergalaxy has joined #ruby
xpen_ has quit [Remote host closed the connection]
Beakr has joined #ruby
xpen_ has joined #ruby
maxmanders has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
unsay has joined #ruby
beaky has joined #ruby
<beaky> hello
xpen has quit [Ping timeout: 264 seconds]
jacktrick has quit [Quit: Leaving]
cousine has joined #ruby
ben_h has quit [Quit: ben_h]
xpen has joined #ruby
carloslopes has joined #ruby
jetblack has joined #ruby
chussenot has quit [Quit: chussenot]
xpen_ has quit [Ping timeout: 264 seconds]
colonolGron has quit [Ping timeout: 276 seconds]
arietis has joined #ruby
unsay has quit [Ping timeout: 252 seconds]
osaut has joined #ruby
<Hanmac> derpy is cool :D
Skylab has joined #ruby
tfittsy has quit [Ping timeout: 245 seconds]
plotter has quit [Remote host closed the connection]
nateberkopec has joined #ruby
marsam has joined #ruby
<swarley> Hanmac, Im torn between derpy and octavia. This is my current wallpaper http://fc05.deviantart.net/fs71/i/2012/284/8/7/encore_by_wmill-d5d99n1.png
megha has quit [Quit: WeeChat 0.4.0]
pavilionXP has joined #ruby
chussenot has joined #ruby
<whitequark> exterminate
maxmanders has quit [Ping timeout: 245 seconds]
eldariof has joined #ruby
nateberkopec has quit [Client Quit]
codecop has joined #ruby
cardoni has joined #ruby
workmad3 has joined #ruby
maxmanders has joined #ruby
<Hanmac> swarley uh she is nice too
<Hanmac> swarley do you know this page too: http://dan-vs-fim.tumblr.com/
aaronmcadam_ has joined #ruby
<marsam> swarley: nice
elux has joined #ruby
otters has joined #ruby
aaronmcadam has quit [Ping timeout: 264 seconds]
aaronmcadam_ is now known as aaronmcadam
<swarley> lolwat
xpen has quit [Remote host closed the connection]
mockra has joined #ruby
rismoney has joined #ruby
ddv has quit [Ping timeout: 240 seconds]
<rismoney> how do i get s1=["APPSTUFF-110","MGMT-200","BOOYA-301"] to be ["110","200","301"] using gsub?
xpen has joined #ruby
<whitequark> .split('-')[1]
<Hanmac> >> p ["APPSTUFF-110","MGMT-200","BOOYA-301"].map{|s|s[/(\d+)/,1]}
<eval-in> Hanmac: Output: "[\"110\", \"200\", \"301\"]\n" (http://eval.in/8192)
xpen_ has joined #ruby
robotmay has quit [Remote host closed the connection]
mockra has quit [Ping timeout: 252 seconds]
pskosinski_ has joined #ruby
tealmage has joined #ruby
<rismoney> hmm
xpen_ has quit [Remote host closed the connection]
<whitequark> Hanmac: now imagine APP0-110
<Hanmac> >> p ["APPSTUFF-110","MGMT-200","BOOYA-301"].map{|s|s[/-(.+)/,1]}
<eval-in> Hanmac: Output: "[\"110\", \"200\", \"301\"]\n" (http://eval.in/8193)
xpen_ has joined #ruby
pskosinski has quit [Quit: Open source spirit according to Quinton Reeves, Red Eclipse developer: http://pawelk.pl/quinton-reeves]
Catbuntu has joined #ruby
cardoni has quit [Ping timeout: 246 seconds]
techhelp has joined #ruby
xpen has quit [Ping timeout: 245 seconds]
pskosinski_ is now known as pskosinski
colonolGron has joined #ruby
unsay has joined #ruby
osaut has quit [Read error: Connection reset by peer]
samuel02 has joined #ruby
browndawg has quit [Quit: Leaving.]
osaut has joined #ruby
samuel02 has quit [Read error: Connection reset by peer]
samuel02 has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
xpen has joined #ruby
cousine has quit [Remote host closed the connection]
RyanD has joined #ruby
<shevy> Hanmac what are you doing again :P
colonolGron has quit [Ping timeout: 240 seconds]
xpen_ has quit [Ping timeout: 245 seconds]
<Hanmac> shevy currently i make new methods for my tmx stuff, little helper to get the index of a layer
ftqkfn has quit [Remote host closed the connection]
xpen has quit [Remote host closed the connection]
yacks has joined #ruby
xpen has joined #ruby
unsay has quit [Ping timeout: 248 seconds]
<Catbuntu> hiya
innohero has joined #ruby
zerba has joined #ruby
end_guy has quit [Remote host closed the connection]
Bry8Star has quit [Remote host closed the connection]
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
fflush has quit []
tgandrews has joined #ruby
s1n4 has joined #ruby
acrocity has quit [Read error: Connection reset by peer]
s1n4 has quit [Client Quit]
Cooler_ has quit [Ping timeout: 256 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
n1x has joined #ruby
HHRy has left #ruby [#ruby]
Bry8Star has joined #ruby
Stilo has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
chendo_ has joined #ruby
acrocity has joined #ruby
chendo_ has quit [Changing host]
chendo_ has joined #ruby
havenn has joined #ruby
mockra has joined #ruby
Dreamer3 has quit [Quit: Leaving...]
mockra has quit [Remote host closed the connection]
Spooner has joined #ruby
<shevy> Catbuntu are you a cat
samuel02 has quit [Read error: Connection reset by peer]
samuel02 has joined #ruby
maxmanders has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
samphippen has joined #ruby
samphippen has quit [Client Quit]
<rismoney> hanmac can i use sub to replace MGMT-100 to 100 without using the [] and rely on indexing? I am trying to do some stuff within puppet
<whitequark> rismoney: /-(.+)/, '\1'
<whitequark> arguments to gsub
<Hanmac> whitequark wrong
girija_ has joined #ruby
dustint has joined #ruby
<Hanmac> gsub(/.+-(.+)/, '\1')
<whitequark> eval-in: "MGMT-100".gsub(/-(.+)/, '\1')
kristofers has quit [Ping timeout: 245 seconds]
<whitequark> >> "MGMT-100".gsub(/-(.+)/, '\1')
<eval-in> whitequark: Output: "" (http://eval.in/8196)
<whitequark> >> "MGMT-100".gsub(/.+-(.+)/, '\1')
<eval-in> whitequark: Output: "" (http://eval.in/8197)
<whitequark> lolwat
<apeiros_> you have to puts/p
<whitequark> oh right
<whitequark> stupid bot
<apeiros_> eval-in isn't very userfriendly :-/
<whitequark> >> p "MGMT-100".gsub(/-(.+)/, '\1')
<eval-in> whitequark: Output: "\"MGMT100\"\n" (http://eval.in/8198)
<apeiros_> that said, I think I remember the owner
<whitequark> >> p "MGMT-100".gsub(/.+-(.+)/, '\1')
<eval-in> whitequark: Output: "\"100\"\n" (http://eval.in/8199)
<whitequark> charliesome, no?
<whitequark> Hanmac: you're right
jrafanie has joined #ruby
samphippen has joined #ruby
<rismoney> p "MGMT-100".gsub(/-(.+)/, '\1') gives me MGMT100
elaptics is now known as elaptics`away
backjlack has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
<Hanmac> rismoney thats why i said that whitequark was wrong ...
<apeiros_> do people actually ever use sub instead of gsub?
<whitequark> apeiros_: I do
<apeiros_> hah!
<whitequark> but then again, I'm aware of abbrev in stdlib :p
<apeiros_> hehe
<whitequark> and of flip-flops
<apeiros_> oh, nono, don't start with that
<whitequark> and Proc.new
<apeiros_> you'll get people confused
<whitequark> sigh
browndawg has joined #ruby
<whitequark> I wish I knew less
samuel02 has quit [Read error: Connection reset by peer]
<apeiros_> hm, Proc.new is one of the things that I learned only *years* after having started with ruby
<Hanmac> flip-flops are 99.9% WTF
<rismoney> oic ...cool beans. i was mucking it similar to whitequark.sigh
<whitequark> Hanmac: flip-flops are 1500% WTF
<apeiros_> assuming you mean the "no block given to new but to the method it is invoked within" behavior
samuel02 has joined #ruby
<whitequark> apeiros_: and thread-local and frame-local pseudoglobals
<whitequark> apeiros_: and the exact maximal amount of $123... vars
<whitequark> which would be 262144 IIRC
<apeiros_> whitequark: I wonder… in older rubies you could invoke methods via send if there was a hash collision
cousine has joined #ruby
end_guy has joined #ruby
<apeiros_> +I wonder if that's still present…
<whitequark> apeiros_: a hash collision?
fer_ has joined #ruby
<apeiros_> yes, if you had an alternative name which had the same hash value
<whitequark> that sounds like a bug
josh_keith has joined #ruby
<apeiros_> I guess ruby didn't bother to test for actual equality :)
<Hanmac> apeiros_ how would you react if you see: achive_object << "*.cpp" ? what would you suspect?
<josh_keith> anyone familiar with compiling ruby on linux?
hoelzro is now known as hoelzro|away
<apeiros_> Hanmac: given your example I'd expect a glob expand but I'm not a fand of that
<whitequark> apeiros_: plus 56-bit hash collisions aren't exactly easy to find, unless your hash function is FUBAR (I'm on 64-bit now)
<apeiros_> *not a fan
<apeiros_> Dir["*.cpp"] isn't hard. normalization should happen at the user side. or through explicit methods. IMO.
<whitequark> it's also += then
<apeiros_> whitequark: oh, I think somebody just ran ("a".."zzzzzzzzzz").find { |s| s.hash == someknownmethodshash }
samphippen has quit [Quit: Computer has gone to sleep.]
<apeiros_> archive.add_glob "*.cpp"
chimmy has joined #ruby
<josh_keith> I'm trying to compile ruby without openssl and I've tried --without-openssl and --with-out-ext=openssl, yet the resulting binary still links libcrypt
abcdefg_ has joined #ruby
<whitequark> apeiros_: that won't collide even without hashing at all
<whitequark> I think
xpen has quit [Ping timeout: 245 seconds]
<whitequark> apeiros_: ah it will. but with three less z's it wouldn't
ferdev has quit [Quit: ferdev]
unsay has joined #ruby
jrafanie has quit [Quit: jrafanie]
<apeiros_> o0
<Hanmac> i am currently playing with my archive again ... you can do << "*.cpp" << Dir["*.cpp"] << /.*\.cpp/ , works all similar
<whitequark> apeiros_: symbols are (machine_word_width-1) bytes wide internally
<apeiros_> hm, I run the search for "puts", and of course, the code reliably found a collision - "puts"
<whitequark> actually nevermind
<whitequark> that's bullshit
lkba has joined #ruby
<apeiros_> hrm, I wonder whether I remember the whole thing correctly, though
<apeiros_> whitequark: maybe you misunderstood - of course "puts" and "puts" have the same .hash, so ("a".."zzzzzzzz").find { |x| x.hash == "puts".hash } returned "puts"
<whitequark> apeiros_: no I meant a completely different thing
<apeiros_> ah, ok
CaptainKnots has quit [Quit: bazinga!]
<apeiros_> hm, probably would be easier with a 32bit ruby
plotter has joined #ruby
<apeiros_> bah, I don't have the patience to figure it out again, and most likely the behavior was 1.8 specific anyway
samphippen has joined #ruby
jrafanie has joined #ruby
fer_ has quit [Quit: Linkinus - http://linkinus.com]
ferdev has joined #ruby
frankkany has joined #ruby
chimmy has quit [Ping timeout: 246 seconds]
dustint has quit [Remote host closed the connection]
TomJ has joined #ruby
unsay has quit [Ping timeout: 255 seconds]
frankkany has quit [Remote host closed the connection]
Takehiro has joined #ruby
jaequery has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
jamescarr has joined #ruby
straind has quit [Read error: Connection reset by peer]
girija_ has quit [Ping timeout: 244 seconds]
m3pow has joined #ruby
BizarreCake has quit [Quit: Leaving]
straind has joined #ruby
tgandrews has quit [Quit: Leaving]
banisterfiend has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
mockra has joined #ruby
colonolGron has joined #ruby
Bry8Star has quit [Remote host closed the connection]
tgandrews has joined #ruby
ToTo has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
osaut has quit [Quit: osaut]
osaut has joined #ruby
horofox has quit [Quit: horofox]
Cooler_ has joined #ruby
mockra has quit [Ping timeout: 245 seconds]
jamescarr has quit [Quit: jamescarr]
angusiguess has quit [Ping timeout: 244 seconds]
sullenel has joined #ruby
withnale has quit [Quit: Terminated with extreme prejudice - dircproxy 1.2.0]
maxmanders has joined #ruby
sullenel has quit [Client Quit]
maeharin has joined #ruby
danneu has joined #ruby
ahokaomaeha has joined #ruby
cousine has quit [Remote host closed the connection]
sullenel has joined #ruby
josh_keith has quit [Ping timeout: 240 seconds]
eka has quit [Quit: Computer has gone to sleep.]
<shevy> nice Hanmac
<shevy> Hanmac how to install your gem?
pskosinski has quit [Ping timeout: 245 seconds]
<whitequark> gem install hanmac
pskosinski has joined #ruby
dallasm has joined #ruby
<Hanmac> not finish yet
ahokaomaeha has quit [Ping timeout: 245 seconds]
tcstar has joined #ruby
cardoni has joined #ruby
danneu1 has joined #ruby
Bry8Star has joined #ruby
danneu has quit [Ping timeout: 252 seconds]
girija_ has joined #ruby
<shevy> lol whitequark
<shevy> now that would be something
<shevy> meta-gems
Beakr has quit [Quit: Beakr]
<shevy> "install all of this users gems"
moshee has quit [Ping timeout: 252 seconds]
<apeiros_> hanmac install gem
moshee has joined #ruby
<apeiros_> hm, doesn't work…
moshee has joined #ruby
moshee has quit [Changing host]
<apeiros_> sudo hanmac install gem
rhodesp has joined #ruby
generalissimo has joined #ruby
maeharin has quit [Remote host closed the connection]
<shevy> hanmac dance lambada
rhodesp is now known as withnale
PragCypher has joined #ruby
fuzai has joined #ruby
<apeiros_> I think he prefers dancing lambda
<fuzai> http://pastie.org/6030006 --- No matter what I do I can't get this string compare to test true and it looks like it should when I add a puts line to it. Could someone help me with this conditional?
jamescarr has joined #ruby
Elhu has joined #ruby
ahokaomaeha has joined #ruby
dhruvasagar has joined #ruby
dhruvasa1ar has joined #ruby
kristofers has joined #ruby
<apeiros_> fuzai: pro-tip: don't use puts, use p
<fuzai> ok
<apeiros_> additionally I'd check for whether you're really dealing with strings (puts accepts anything that responds to .to_s)
sdudenhofer has joined #ruby
jamescarr has quit [Client Quit]
dallasm has quit []
unsay has joined #ruby
<apeiros_> um, fuzai - = is not testing for equality
<fuzai> the puts line is just outputting it for me
<apeiros_> = is assignment, and technically bot['magicKey'] = botProfile['magic_key'] is even invoking []=
gosshedd has joined #ruby
<apeiros_> you want ==
samuel02 has quit [Read error: Connection reset by peer]
<fuzai> oh i see what you mean
maxmanders has quit [Ping timeout: 255 seconds]
<fuzai> wow i can't believe i missed that
chussenot has quit [Quit: chussenot]
samuel02 has joined #ruby
workmad3 has joined #ruby
<fuzai> but they still don't get into that code block
<fuzai> i started with ==
<fuzai> then i read online that i should be using .eql?
<fuzai> so which one is it?
cardoni has quit [Ping timeout: 255 seconds]
<apeiros_> for String it doesn't matter I think
cousine has joined #ruby
mockra has joined #ruby
<fuzai> and if they aren't strings
<fuzai> and they very muc so have string data
<fuzai> what could they be?
Elhu has quit [Quit: Computer has gone to sleep.]
beandip has quit [Ping timeout: 255 seconds]
maxmanders has joined #ruby
<apeiros_> fuzai: how about you just find it out? it's ruby. it's not like there was no way to figure that out…
<apeiros_> also what code doesn't get executed?
<apeiros_> seems the if clause works, otherwise it wouldn't print that puts of yours
Catbuntu has quit [Remote host closed the connection]
gcoderre has joined #ruby
mockra has quit [Ping timeout: 276 seconds]
unsay has quit [Ping timeout: 264 seconds]
moshee has quit [Ping timeout: 246 seconds]
danneu1 is now known as danneu
moshee has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
<fuzai> thats what i'm trying to figure out
<fuzai> when it looks to see if anything is in there, it should test true and retort with a @ and a number
<fuzai> instead i get #
<fuzai> from what the puts line says, whatever i test should be true
ferdev has quit [Quit: Linkinus - http://linkinus.com]
ferdev has joined #ruby
GeekSir has joined #ruby
braoru has quit [Remote host closed the connection]
ferdev_ has joined #ruby
chussenot has joined #ruby
<shevy> given a string like string = " cd abc"
<shevy> how do I count the amount of leading ' '? in this case it would have to return 3
ferdev has quit [Client Quit]
ferdev_ has quit [Client Quit]
<apeiros_> shevy: str[/\A */].length
lzy has quit []
adkron has joined #ruby
<shevy> thanks
braoru has joined #ruby
kylescottmcgill has quit [Ping timeout: 256 seconds]
tealmage has quit [Remote host closed the connection]
mirage has joined #ruby
<banisterfiend> its urls are enormous
<banisterfiend> dropbox shoudl really minimize its own links
<banisterfiend> evernote needs a dose of that too
<mirage> Hi
<shevy> hey mirage, are you a plane?
gcoderre has quit [Quit: gcoderre]
GeekSir has left #ruby [#ruby]
<mirage> lol, why would you ask that :D
jpfuentes2 has joined #ruby
<mirage> i'm a fire truck.
maxmanders has quit [Ping timeout: 252 seconds]
<apeiros_> banisterfiend: I have a ↪ subdomain for that ^^
bluOxigen has joined #ruby
<banisterfiend> apeiros_: you into evernote?
<whitequark> apeiros_: but the link is actually way longer with it
<banisterfiend> i love that shiznite
<whitequark> because punycode
<apeiros_> whitequark: not to human readers and twitter
<whitequark> apeiros_: who cares about that if you can't type it anyway
<apeiros_> also punycode happens browserside
<apeiros_> who types links?
<whitequark> me? and regardless of that, in any context where you'd need a shorter link
<whitequark> a punycode one loses
jrafanie has quit [Quit: jrafanie]
<apeiros_> only if you have to actually write it in punycode
<apeiros_> you can perfectly paste http://↪.example.com/
<whitequark> hrm
benlieb has joined #ruby
<whitequark> makes sense
kristofers has quit []
<apeiros_> but yes, in any context where you expect the reader to type the url (print e.g.) it'd be a horrible choice
kristofers has joined #ruby
<apeiros_> banisterfiend: why am I listening to R. Kelly? :)
<apeiros_> banisterfiend: re evernote - bought it, but never actually used it :-/
cousine has quit [Remote host closed the connection]
naquad has joined #ruby
angusiguess has joined #ruby
<banisterfiend> apeiros_: too bad, it's pretty awesome. I stick absolutely everything in there
<apeiros_> have people died from coughing?
<banisterfiend> yeah, that's what T.B is i think :)
<whitequark> T.B?
cardoni has joined #ruby
<beaky> in what wayss is ruby beter than python?
jonahR has joined #ruby
ferdev has joined #ruby
banjara has joined #ruby
<apeiros_> whitequark: no, just ordinary cold
<apeiros_> I feel like ejecting my lungs :-/
goon12 has joined #ruby
goon12 has left #ruby [#ruby]
<havenn> beaky: Interesting video on the topic from a python conf: http://vimeo.com/9471538
<apeiros_> if it wasn't from gary bernhardt…
<beaky> ah thanks
<apeiros_> he calls & the "pretzel"?
tealmage has joined #ruby
<havenn> apeiros_: rofl
<apeiros_> and he thinks &:foo was syntax…
<beaky> wow creative name for &amp;
<apeiros_> he's so cute when he's wrong
<apeiros_> not
moted has quit [Ping timeout: 248 seconds]
<havenn> "You can't apply a symbol to a pretzel."
<shevy> lol
nidhimj22 has joined #ruby
<shevy> good analogy
osaut has quit [Quit: osaut]
mockra has joined #ruby
nidhimj22 has left #ruby [#ruby]
ham1 has joined #ruby
baniste__ has joined #ruby
banisterfiend has quit [Ping timeout: 245 seconds]
RurouniJones has quit [Remote host closed the connection]
v0n has joined #ruby
chussenot has quit [Quit: chussenot]
<beaky> programming in ruby is so much nicer than programming in C, C++, or Java
dhruvasagar has quit [Ping timeout: 245 seconds]
dhruvasa1ar has quit [Ping timeout: 260 seconds]
ninp0 has quit [Read error: Connection reset by peer]
mockra has quit [Ping timeout: 248 seconds]
cardoni has quit [Ping timeout: 248 seconds]
whowantstolivefo has joined #ruby
hydrozen has joined #ruby
jrafanie has joined #ruby
jaequery has quit [Quit: Computer has gone to sleep.]
jrafanie has quit [Client Quit]
<shevy> yeah
<shevy> that's the main reason why we have scripting languages
<shevy> they made solving a task easier and simpler than in the other languages
v0n has quit [Quit: WeeChat 0.4.0]
<apeiros_> do we really still make that distinction?
eka has joined #ruby
v0n has joined #ruby
unsay has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
baniste__ has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
<aytch> apeiros_: I definitely make that distinction. I can't do anything in C or .NET, but I can do scripting/small programs in Powershell, Python, and Ruby with ease
recycle has joined #ruby
<geggam> many of the people writing code in c c++ and java ( java especially) think they can code when in fact they cannot
jrafanie has joined #ruby
tenmilestereo has joined #ruby
<geggam> in otherwords... try it you migth like it aytch
angusiguess has quit [Ping timeout: 276 seconds]
<aytch> I have enough of a hard time with the "easy" languages
RyanD has quit []
<aytch> I'm really still learning how OO and other concepts. I've just been a sysadmin for years, so scripting is straightforward.
<aytch> I only figured out functions ~1 year ago
drago757 has joined #ruby
ham1 has quit [Ping timeout: 245 seconds]
dcwu has joined #ruby
m8 has joined #ruby
IRC-bot has joined #ruby
IRC-bot has quit [Read error: Connection reset by peer]
moos3 has joined #ruby
<shevy> hmm when I have an array
<shevy> I can use .match
<shevy> but is there a way to also do a ".match_with_index"? I kind of need the elements where my filter applied to
techhelp has quit [Quit: This computer has gone to sleep]
<shevy> oops
<shevy> I actually meant .grep
<shevy> nevermind, I just run .each_with_index and collect the matches
<beaky> does ruby have pattern matching?
<beaky> as in Haskell?
<aytch> beaky: it has regex
F1skr has joined #ruby
<beaky> ah first class regex :D
<aytch> http://rubular.com/ will likely be of assistance
<banisterfiend> i think pattern matching is a different concept to regex
wallerdev has joined #ruby
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
<whitequark> beaky: no, it doesn't
<whitequark> and it fact it couldn't nor does it need to
stormetrooper has joined #ruby
<beaky> ah
moos3 has quit [Quit: Computer has gone to sleep.]
<beaky> I like ruby syntax, but is there a way to eliminate all those 'end's?
<whitequark> no
byped has joined #ruby
<whitequark> use completion in your editor
hydrozen has quit [Quit: Computer has gone to sleep.]
invisime has joined #ruby
<beaky> right
<swarley> If you want space sensitive nesting you would want Python
mercwithamouth has joined #ruby
<shevy> beaky you could use {} rather than do/end in all blocks
<beaky> yeah I guess that will shave off a few ends, but eww curly braces :D
<shevy> swarley unfortunately python forces a ':' at the end of a def ... as in "def bla(n):" :(
<swarley> if you don't want do/end and you don't want {}..
<swarley> what do you expect to get?..
<beaky> something like Haskell :D
<shevy> how is haskell solving it
<swarley> Haskell is weird about it
<swarley> But yes, it is space sensitive
<shevy> ewwww
<swarley> at the same time, that space sensitivity is more annoying than pythons
moos3 has joined #ruby
<beaky> yep
<shevy> such a powerful language... and then it comes down to individual spaces...
<shevy> it can be even more annoying than in python?
<swarley> Yes.
<swarley> You have to visually align in definitions
<beaky> haskell is actually a curly-brace language, but if you use layout (i.e. whitespace sensitivity) the compiler will put them in there.
<shevy> I hate copy/pasting into interactive python and get told:
<shevy> IndentationError: expected an indented block
<sullenel> shevy: lol
<swarley> echo "example here" > python
<shevy> beaky odd
<beaky> from __future__ import braces => Error: Not a chance! :(
kirun has joined #ruby
Guest69111 is now known as DaZ
<beaky> ruby's syntax is one of the neatest I have seen even with all of the curly braces
<beaky> s/curly braces/ends*
TomJ_ has joined #ruby
stormetrooper has quit [Quit: Connection Terminated]
<beaky> and in rails it even reads like simple english :D
TomJ has quit [Ping timeout: 245 seconds]
TomJ_ is now known as TomJ
moos3 has quit [Client Quit]
<whitequark> curly braces are for inline blocks, do..end is for multiline ones
<whitequark> the fact that you technically could use them vice-versa doesn't mean you should
<beaky> yeah I guess I should stick to convention
<shevy> beaky yeah, a succint style of english
cardoni has joined #ruby
Dreamer3 has joined #ruby
<shevy> this convention makes no sense
<swarley> what convention?
<beaky> I think there was an interview where Matz explained why ruby is the way it is
<shevy> having to use do/end for blocks
<swarley> You don't have to
<shevy> beaky the one from 2003?
<beaky> i think
spider-mario has joined #ruby
<mehwork> even though you can omit parens in ruby, which is better to do: read_file(get_filename()) or read_file get_filename
<shevy> yeah... it made me pick ruby over python
moos3 has joined #ruby
_carloslopes has joined #ruby
<apeiros_> whitequark: I still favor "curly braces for return value, do/end for side-effect"
carloslopes has quit [Ping timeout: 245 seconds]
<shevy> mehwork, I would keep the first () but omit the second
<whitequark> mehwork: keep parens if it has even slightest potential for misinterpretation
<mehwork> shevy even though get_filename isn't a variabl? read_file(get_filename) ?
<swarley> apeiros_, that's what I do generally.
<shevy> mehwork yeah
<whitequark> apeiros_: I guess one could use both.
<mehwork> seems inconsistent but i just want to know what the convention is
xAndy is now known as xandy
<swarley> use () when you need to.
<shevy> mehwork but you can keep both () I just dont like to call methods without arguments + (), it looks visually strange... cat.meow versus cat.meow()
enebo has joined #ruby
<mehwork> i see
<shevy> conventions ... :P
<shevy> I think python is able to enforce conventions
<shevy> ruby is more easy going
<mehwork> well python has pep8 which you can use as a validator
<whitequark> shevy: believe me, academics are more than able to write exceptionally crappy python code
<shevy> the only big convention I can think of right now is that class names and module names must start with an uppercased character
<whitequark> even with pep8 and stuff
<mehwork> but in this case it has to have parens
<whitequark> it simply doesn't matter :/
<shevy> man, I hate that in python3 they require you to use () in print
samuel02 has quit [Read error: Connection reset by peer]
<shevy> print(5) vs print 5 what the...
<mehwork> yeah
<whitequark> shevy: having it as a keyword (keyword?) sucks even more
<mehwork> shevy: but it can ake all kinds of amazing arguments. That's why
samuel02 has joined #ruby
<mehwork> *take
roadt_ has quit [Ping timeout: 245 seconds]
<shevy> well in ruby you can cut it down, i.e. alias e puts; e 5 ... compare that to print(5)
<mehwork> that said, they could have kept the normal print keyword adn used a different word for the function version, since most of the time people won't even use those args
<shevy> hmm in python you can probably do e(5)
arietis has quit [Quit: Computer has gone to sleep.]
<shevy> ok so net-gain only one character actually :\
<shevy> somehow I feel that python 3 is evolution backwards
<mehwork> perl6 will be better than it. which is sad
<shevy> hey
<mehwork> subjectively better
<shevy> perl5 killed perl6 :)
<shevy> they got more momentum in perl5 than in perl6
<mehwork> i think people will be standoffish at first but will come around because perl6 is amazing
<shevy> on #gobolinux a perl dev said "I dont care about perl6" I asked why, he said because it is basically a completely different language
<mehwork> it will be like ruby. no one cared until rails. Perl6 will allow for some amazing things to be made and then people will care
hybris has joined #ruby
<shevy> :P
<shevy> way to raise the expectation
<mehwork> being a different language is a good thing in this case
<shevy> then comes the big disappointment ...
RyanD has joined #ruby
<mehwork> i could be wrong, but i've been reading up on it and it simply has features that other languages don't
<mehwork> powerful stuff
<shevy> didnt it have that since 10 years ago already
<mehwork> infinite lists, english grammars, etc
Emmanuel_Chanel has quit [Quit: Leaving]
mikepack has joined #ruby
<mehwork> see rakudo.org
<mehwork> also, ruby was used as inpiration
colonolGron has quit [Ping timeout: 245 seconds]
Stilo has joined #ruby
<whitequark> perl6 won't be
hybris has quit [Read error: Connection reset by peer]
<mehwork> it has threads and concurrency and nonblockin i/o built in
<mehwork> mats said if he could go back and change ruby it would be to get rid of the thread for concurrency
TomJ has quit [Read error: Connection reset by peer]
<whitequark> source?
banisterfiend has quit [Remote host closed the connection]
TomJ has joined #ruby
TomJ has quit [Changing host]
TomJ has joined #ruby
<mehwork> whitequark: the book '7 languages in 7 days' interview with mats in chapter 1
moshee has quit [Ping timeout: 244 seconds]
moshee has joined #ruby
cardoni has quit [Ping timeout: 256 seconds]
<mehwork> don't get me wrong. Perl6 isn't going to likely get PHPers to jump over to it. It will be like python where it will attract hackers, scientists and general software engineers
<mehwork> but only time will tell, idk
maletor has joined #ruby
Emmanuel_Chanel has joined #ruby
<mehwork> randal schwartz said at the very least people will try to immitate its grammars, like they did its regex, and want 'perl compatible grammars' in their language
angusiguess has joined #ruby
<whitequark> people aren't attracted to neat language features
<whitequark> people are attracted to stuff which solves their problems
<mehwork> for instance, in perl6 you should be able to create a dsl that's just for a single class, and do it in a very readable simple way. Stuff like that
<whitequark> note how there is no "better" in the last sentence
adkron has quit [Ping timeout: 255 seconds]
<mehwork> you can imagine the types of web, testing, etc frameworks that can come out of that
<shevy> mehwork the problem with perl6 is that it promises to change the world, yet it fails to deliver up until today. I have to bootstrap and compile parrot by using perl 5. when I download ruby 1.9.3 I can compile it just straight, without needing to have ruby installed
<mehwork> my point is that it will solve a lot of problems
jetblack has quit [Quit: leaving]
<mehwork> shevy: apple took a long time to change the world too
<shevy> it had steve jobs
<mehwork> slow and steady wins the race and all
<whitequark> apple didn't
<whitequark> and that is a quote of Jobs if you don't believe me
banisterfiend has joined #ruby
<mehwork> i see no reason to hate on it. I'm neither a language fan boy or language hater. I loved perl5 when it came out. I grew to realize i only liked it to solve certain problems (of which it still is the best tool for the job even in 2013 sometimes)
<shevy> perl 5 was better when larry was very active, now larry isn't as active anymore so perl 6 is a "community driven" effort. I really feel that most projects work better with visionnaires
<mehwork> also perl inspired ruby
<shevy> there is no need for hate, there are simply statements about perl 6
<mehwork> so it makes even less sense for rubyists to hate on it. Inspiration alone is respectable
<shevy> it is you who tries to introduce the word hate man
<whitequark> oh right #ruby
<mehwork> it would make sense to diss smalltalk more than ruby, if we're talkign practicalities
ham1 has joined #ruby
aapzak has quit [Read error: Connection reset by peer]
<mehwork> but no one does that because smalltalk somehow got a pass as a great language :p
<shevy> I dont feel smalltalk ever was really important
<mehwork> it's been fashionable to hate perl5 since 1999
<shevy> but you were talking primarily about perl6, not perl5 :P
<whitequark> smalltalk was important conceptually
<shevy> I mean at least perl5 had a success story here!
<mehwork> i'm just making an overall point
<whitequark> after all it's the language in which OO was invented
<shevy> yeah, smalltalk was like a bottle of ideas, you drink it, then throw the bottle away
roadt_ has joined #ruby
<whitequark> there is also the whole "let's abandon the source" thing
<mehwork> whitequark: but you can't objetively say that OO is more important than sane regex and the millions of important sys admin scripts that have helped shaped linux, etc that came out of perl
<whitequark> I fail to understand how these people work without source control
jaequery has joined #ruby
<mehwork> it would be one thing if the language failed to ever do anything much. Like Io i can understand hating on :p
altamic has joined #ruby
<aytch> millions of important sysadmin scripts that have destroyed sysadmin's livers.
<mehwork> even though it is still a nice prototype syntax, which is enough reason to not hate on it, of course
altamic has quit [Client Quit]
<whitequark> sigh. OO is a structural concept, regexps are just a simple DSL for a common task
pyreal has joined #ruby
<shevy> whitequark code should evolve
<whitequark> it's like comparing the concept of procedural programming with the concept of a macroassembler
<shevy> I mean, git would never have happened with the linux kernel
<mehwork> i'm just saying, don't be closed minded. If someone says a language has some cool features, try playing with them rather than listening to that voice that says "Well, my friends said perl6 is going to suck so i'm completely ripping it apart without trying it"
<shevy> I mean *without
jrafanie has quit [Quit: jrafanie]
<shevy> and github would not have happened without git
<whitequark> there's bitbucket. and anyway I need to go.
<mehwork> i've seen enough of that in the php world where they rip every other language apart and soudn ignorant when they talk about how ruby or python sucks yet have never used them
<shevy> and now that we have github, we can see that sourceforge has an awful usability layout
<mehwork> heh
<mehwork> poor sourceforge
jaequery has quit [Client Quit]
<shevy> it's evolution
<shevy> the weak get shreddered
v0n has quit [Ping timeout: 252 seconds]
<mehwork> weakness is a strange term in software
<mehwork> sine php still exists
<mehwork> and is more popular than ever
<shevy> php has a few really great things going for it
<mehwork> it's tribalism that matters
<shevy> its focus on the www was a good thing
aapzak has joined #ruby
<mehwork> i don't think the 'best' thing wins by default
<shevy> compare that to default ruby without rails... you have what? cgi
<shevy> hmmmmmmmm cgi...
ham1 has quit [Ping timeout: 276 seconds]
<mehwork> well python using wsgi
<mehwork> ruby has rack
<shevy> these are all afterthoughts
mercwithamouth has quit [Ping timeout: 245 seconds]
<mehwork> rails isn't perfect either
<mehwork> limitations of the server side and http in general
maletor has quit [Quit: Computer has gone to sleep.]
<aytch> rails was like...the last thing I wanted to use ruby for.
<mehwork> ditto
<aytch> scripting and puppet were what brought me into Ruby
<mehwork> like django in python is the last thing i'd want to use python for
<shevy> the www is really the single one biggest influence nowadays, you have javascript becoming so important, you suddenly see bindings to GUI fall apart because of smartphones becoming so important, or ubunty unity, this utter disaster, makes only sense on a smartphone really
colonolGron has joined #ruby
<mehwork> python brought me to ruby
jonahR has quit [Quit: jonahR]
<mehwork> it was like python only just an inch more fun to write
<shevy> heh
<shevy> I considered learning django
<mehwork> and i can flow back and forth between the two without having to chose one over the other
<mehwork> i did chose rails over django though :/ django is nuts
<havenn> sweet, just got my Arduino and trivially made a script with Dino to blink out morse code on the built-in LED :D https://gist.github.com/4698578
<aytch> I still prefer Python over Ruby, but only because Ruby's syntax makes me think like Yoda
<shevy> I dunno, I dont like that rails is so huge
<aytch> but Ruby has such nice frameworks that I keep coming back to it
<tgandrews> the thing that wins is the one that at the time, given what has happened before best fulfils requirements. The given what has happened before is what people tend to forget
<mehwork> shevy: i do, from a jobs perspective it allows more people to do ruby for a living
<shevy> aytch I like python syntax, save for a few things that annoy me... explicit self is one of those
<mehwork> i've been forced to do php for a living when python and ruby had no jobs I do NOT want to live in a world like that again
<shevy> hehe
<shevy> but all the jobs are web related!
jonahR has joined #ruby
v0n has joined #ruby
<mehwork> everything is moving toward the web
Vert has joined #ruby
<mehwork> it won't be long until we're all doing javascript. We already hare half doing js
<mehwork> js isn't so bad though, when done right
<shevy> havenn I like your methods... dit() dah() pause() :P
<shevy> mehwork :(
<mehwork> i just hate its syntax. Too many curlies and semicolons
<shevy> so we could all remove the scripting languages save for js
<shevy> and then js won not because it was better, but it was simply more in use and widespread
mockra has joined #ruby
<mehwork> php gets a lot of crap but the js code on average is worse
<aytch> someone needs to write Brainfuck on Rails
<aytch> That way we can come together as a community, and really get a proper hate on
<mehwork> well there is clojure mvc frameworks
<mehwork> hackers have to separate themselves somehow even if it means pain
<mehwork> it's less pain than swimming in the public pool
<havenn> shevy: Now I need to get some fun stuff to plug into the Uno. Only so much fun to be had with a single LED... >.>
onemanjujitsu has joined #ruby
<mehwork> i'm still a ruby noob. I tried clojure and liked it but not enough for daily use. I'm picking ruby up faster than anything probably because i know python
<mehwork> and perl
CorpusCallosum has quit [Quit: Computer has gone to sleep.]
<mehwork> so far blocks are my favorite thing and i really like require_relative
ryanf has joined #ruby
nkr has quit [Ping timeout: 244 seconds]
bluOxigen has quit [Ping timeout: 276 seconds]
emmanuelux has quit [Ping timeout: 276 seconds]
mockra has quit [Ping timeout: 252 seconds]
kaen has joined #ruby
<kyle__> If you connect using "ssh -lfoo -i path/to/some_key bar" would that be Net::SSH.start("bar",:username=>"foo",:host_keys=>["path/to/some_key"])?
<mehwork> and the whole: x unless y conditions on the same line after the fact, more english. That's about it so far. Python has some stuff i like more too so it's hard to say one is better than the other overall
<kyle__> using net/ssh that is.
<mehwork> i havent used that gem but that seems like the same thing to me
<mehwork> at least conceptually
<mehwork> kyle__: is it not working?
<havenn> mehwork: bpython repl looks pretty cool, pip drives me nuts
<mehwork> havenn: has a cool loook but i much prefer ipython for its power
<kyle__> mehwork: Nope. Not working. Keep getitng an autehntication failed error (and yes, I tested they host & key first ;)
bluOxigen has joined #ruby
<mehwork> what's wrong with pip? it works fine for me
<mehwork> as long as you use virtualenv, its just like rvm/rubygems
banisterfiend has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
<havenn> mehwork: I just miss commands like `gem update` and `gem list`.
<havenn> mehwork: Of have they *finally* merged pull requests to add updating and listing installed pip packages?
adkron has joined #ruby
<havenn> mehwork: Cool, i'll have to check out ipython!
<havenn> mehwork: Have you looked at Pry for Ruby?
<mehwork> yeah
browndawg has left #ruby [#ruby]
pac1 has joined #ruby
xandy is now known as xAndy
samuel02 has quit [Remote host closed the connection]
<mehwork> kyle__: idk, try running strace in front of the app if it's a cli app
samuel02 has joined #ruby
<kyle__> mehwork: I was playing with it in irb... just thought there _should_ be a way of figuring it out within irb..but yeah.
<mehwork> look for things like the application saying it doesnt have read permissions to the key, etc
cardoni has joined #ruby
seniorsassycat has joined #ruby
chrishunt has joined #ruby
<seniorsassycat> Are there ruby libraries that make it easy to create interactive shells in ruby?
<havenn> seniorsassycat: Yeah, depends on what you're trying to do I guess.
<havenn> seniorsassycat: Xiki is a pretty cool concept of Ruby shell from inside a text editor: http://xiki.org
<havenn> seniorsassycat: Are you doing a REPL-type thing, or Unix shell in Ruby, or something else?
<seniorsassycat> havenn: I want to write a shell like application in ruby, specifically to interface with amazon s3
<mehwork> perl6 has full unicode readline support that could make that nice, but i digress again
<seniorsassycat> I could get by with just a getch function.
samuel02 has quit [Ping timeout: 248 seconds]
<mehwork> you're going to want readline support, not mere gets stuff
mercwithamouth has joined #ruby
<havenn> mehwork: Perl6 really reminds me of Ruby! Had fun going through first couple chapters and rewriting the code in Ruby.
<mehwork> or you won't have history, tab completion and all that niceness
<mehwork> havenn: i have heard that ruby was used as a prototype for perl6
rowsdower has joined #ruby
<havenn> mehwork: intersting
<mehwork> that's what randal schwartz said anyway, in a different irc channel
moos3 has quit [Quit: Computer has gone to sleep.]
<mehwork> and he tends to know more than anyone about perl
jfl0wers has joined #ruby
emmanuelux has joined #ruby
onemanjujitsu has quit [Quit: onemanjujitsu]
<mehwork> of course, javascript supposedly tries to model python and uh well yeah.
<havenn> seniorsassycat: Might wanna take a look at how gems like rest-client or ronin etc do their shell.
ScottNYC has joined #ruby
johndouthat has joined #ruby
<seniorsassycat> havenn: it looks like restclient just loads irb, with some modules already included
<seniorsassycat> havenn: but I'm not sure I could get auto complete to work how I would want.
beandip has joined #ruby
<mehwork> i think i've seen things use pry to make their own shells. Doesn't rails do that now too?
eldariof has quit [Ping timeout: 244 seconds]
mneorr has joined #ruby
<mehwork> maybe look at rails console source too
<seniorsassycat> I've done similar things in python with ncurses, but that feals like overkill.
<seniorsassycat> And I can't get the ruby ncurses gem to comiple on archlinux.
rakl has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
<mehwork> repls are surpisngly difficult
pavilionXP has quit [Ping timeout: 260 seconds]
<mehwork> well shells anyway
jaequery has joined #ruby
cardoni has quit [Ping timeout: 260 seconds]
<mehwork> super easy to just make a basic one with no history/completion
<danneu> you can replicate those consoles with 'irb -r libname'
<seniorsassycat> mehwork: I hadn't heard the term repls before, maybe that will help my search
graft_ has quit [Read error: Connection reset by peer]
<seniorsassycat> danney: could I customize autocomplete?
<mehwork> seniorsassycat: yeah read-eval-print-loop, like what irb does and python's >>> prompt
spider-mario has quit [Remote host closed the connection]
<seniorsassycat> There is a ruby gem called repl, but I can't find documentation for it
ahokaomaeha has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
RomainT has joined #ruby
banisterfiend has quit [Remote host closed the connection]
graft_ has joined #ruby
graft_ has quit [Changing host]
graft_ has joined #ruby
<RomainT> Hello
<RomainT> I have troubles with Ruby Regexps. https://gist.github.com/c497c7b8ee8f90a560ef
ahokaomaeha has joined #ruby
<RomainT> The regexp I use seems to work in Rubular (http://rubular.com/r/Wg2u2LGIYe), but not in the code.
jaequery has quit [Quit: Computer has gone to sleep.]
<danneu> seniorsassycat: dunno how autocompletion works. might find a lead looking up 'irb/completion'
eldariof has joined #ruby
<danneu> RomainT: whatre you trying to do?
<RomainT> I expect 2 matches
<RomainT> One for each [code]…[/code] block
<RomainT> Just like in Rubular
moshee has quit [Ping timeout: 260 seconds]
shashin has joined #ruby
moshee has joined #ruby
<RomainT> But my matches.captures only contains the first one
<RomainT> I unsuccessfully tried with multipliers
<RomainT> quantifiers*
mercwithamouth has quit [Ping timeout: 264 seconds]
<RomainT> Any ideas? It drives me crazy
<apeiros_> RomainT: captures only ever get the last one
banisterfiend has joined #ruby
<apeiros_> you need String#scan or StringScanner
<RomainT> Hm
<RomainT> I'll try, thanks apeiros_
<apeiros_> oh, in your case - String#match only gives you the first match
<apeiros_> RomainT: short question, what does the m-flag do in your opinion?
<RomainT> multiline
<apeiros_> yes, what does that mean in your opinion?
jimeh has quit [Quit: Computer has gone to sleep.]
<apeiros_> RomainT: also I'd wonder if there wasn't an already written .ini parser for ruby
<RomainT> It means that the regexp not stops to the end of the line
<RomainT> It's BBCode. I found some parser but only to return HTML
<RomainT> I need a specific thing :s
<apeiros_> arr, I should fully wake up before doing such comments
<RomainT> I try with scan and let you know :)
<apeiros_> RomainT: a regex won't stop at multiple lines even without //m
<apeiros_> but . will
<apeiros_> . by default does not include \n (and probably also not \r)
<RomainT> If I remove the m from http://rubular.com/r/Wg2u2LGIYe it's doesn't work anymore
<apeiros_> yes, I misread your regexp and your code. you used the flag correctly, even if for the wrong reason ;-p
<RomainT> Arf
<RomainT> Can you explain the wrong reason plz ?
<apeiros_> as said, a regexp without m flag does not stop at newlines
nateberkopec has joined #ruby
<apeiros_> "hello\nworld".match(/o./)[0] # => "or"
Takehiro has quit [Remote host closed the connection]
arietis has joined #ruby
<RomainT> Funky
<RomainT> So i don't know how the m flag works :s
<RomainT> But i'm glad that scan fixed my problem :)
Skylab has quit [Quit: Skylab]
noxoc has quit [Quit: noxoc]
n1x has quit [Ping timeout: 245 seconds]
<apeiros_> RomainT: um, I just told you?
wallerdev has quit [Quit: wallerdev]
<apeiros_> 19:43 apeiros_: but . will
<apeiros_> 19:43 apeiros_: . by default does not include \n (and probably also not \r)
<apeiros_> "\n"[/./] # => nil
<apeiros_> "\n"[/./m] # => "\n"
freezway has joined #ruby
nateberkopec has quit [Client Quit]
JumpMast3r has quit [Quit: JumpMast3r]
<RomainT> Hmmm
pavilionXP has joined #ruby
<apeiros_> mind you, that part is different for different regex engines
jaequery has joined #ruby
<RomainT> I had not seen the second part of you explanation
<apeiros_> (i.e. perl, javascript, java libs, …)
nateberkopec has joined #ruby
oposomme has joined #ruby
<apeiros_> fun, . matches \r even without //m
<apeiros_> good that the classic MacOS is a thing of the past
brianpWins has joined #ruby
onemanjujitsu has joined #ruby
techhelp has joined #ruby
generalissimo has quit [Remote host closed the connection]
jaequery has quit [Quit: Computer has gone to sleep.]
ananthakumaran has quit [Quit: Leaving.]
generalissimo has joined #ruby
IdlePhD has joined #ruby
gosshedd has quit [Ping timeout: 276 seconds]
Cooler_ has quit [Ping timeout: 256 seconds]
tcstar has quit [Ping timeout: 264 seconds]
mirage has quit [Quit: Page closed]
IdlePhD has quit [Remote host closed the connection]
mockra has joined #ruby
segv- has quit [Quit: segv-]
n1x has joined #ruby
tjbiddle has joined #ruby
s__dana has joined #ruby
mockra has quit [Ping timeout: 260 seconds]
joofsh has quit [Remote host closed the connection]
ahokaomaeha has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
maletor has joined #ruby
dmiller has joined #ruby
jgrevich has joined #ruby
havenn has quit [Remote host closed the connection]
abcdefg_ has quit [Quit: ChatZilla 0.9.89 [Firefox 17.0.1/20121128204232]]
nkr has joined #ruby
s__dana_ has joined #ruby
shashin has quit [Quit: shashin]
Mchl has quit [Quit: ZNC - http://znc.sourceforge.net]
Nisstyre-laptop has joined #ruby
mikepack has quit [Remote host closed the connection]
Mchl has joined #ruby
oposomme has quit [Quit: Leaving...]
dekronin1 has joined #ruby
cardoni has joined #ruby
s__dana has quit [Ping timeout: 245 seconds]
roadt_ has quit [Ping timeout: 245 seconds]
s__dana_ is now known as s__dana
shevy has quit [Ping timeout: 244 seconds]
_br_ has quit [Excess Flood]
rowsdower has quit [Quit: Konversation terminated!]
axiak has quit [Quit: leaving]
<danneu> i think String#[] is one of my favorite Ruby methods
<danneu> so simple
dekroning has quit [Ping timeout: 252 seconds]
hybris has joined #ruby
freakazoid0223 has joined #ruby
horofox has joined #ruby
_br_ has joined #ruby
seniorsassycat has quit [Quit: leaving]
dmiller has quit [Ping timeout: 245 seconds]
apoch632 has joined #ruby
Takehiro has joined #ruby
TomJ_ has joined #ruby
TomJ_ has joined #ruby
TomJ_ has quit [Changing host]
_br_ has quit [Excess Flood]
apoch632 has left #ruby [#ruby]
TomJ has quit [Ping timeout: 248 seconds]
TomJ_ is now known as TomJ
_br_ has joined #ruby
_br_ has quit [Excess Flood]
_br_ has joined #ruby
Gu_______ has joined #ruby
_carloslopes has quit [Ping timeout: 245 seconds]
carloslopes has joined #ruby
hybris has quit [Quit: hybris]
bigmac has joined #ruby
Takehiro has quit [Ping timeout: 246 seconds]
joofsh has joined #ruby
wallerdev has joined #ruby
generalissimo has quit [Remote host closed the connection]
joofsh has quit [Remote host closed the connection]
joofsh has joined #ruby
dmiller has joined #ruby
shevy has joined #ruby
yacks has quit [Remote host closed the connection]
neku has joined #ruby
generalissimo has joined #ruby
jgrevich_ has joined #ruby
generalissimo has quit [Remote host closed the connection]
Pandaen has quit [Remote host closed the connection]
jgrevich has quit [Ping timeout: 245 seconds]
jgrevich_ is now known as jgrevich
tommyvyo has joined #ruby
decoponio has quit [Quit: Leaving...]
openstandards has joined #ruby
IceDragon has joined #ruby
Skylab has joined #ruby
kristofers has quit [Read error: Connection reset by peer]
DrShoggoth has quit [Quit: Leaving]
noxoc has joined #ruby
oposomme has joined #ruby
PragCypher has quit [Quit: Leaving]
joast has quit [Ping timeout: 245 seconds]
kristofers has joined #ruby
Atlantic777 has joined #ruby
DrShoggoth has joined #ruby
RyanD has quit []
oposomme has quit [Quit: Leaving...]
techhelp has quit [Quit: This computer has gone to sleep]
kristofers has quit []
kristofers has joined #ruby
toekutr has joined #ruby
a_a_g has joined #ruby
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
arya_ has joined #ruby
banisterfiend has quit [Remote host closed the connection]
arya has quit [Ping timeout: 248 seconds]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
techhelp has joined #ruby
danneu has quit [Remote host closed the connection]
techhelp has quit [Remote host closed the connection]
danneu has joined #ruby
io_syl has joined #ruby
samuel02 has joined #ruby
Cooler_ has joined #ruby
workmad3 has joined #ruby
uris has joined #ruby
tfittsy has joined #ruby
dmiller has quit [Ping timeout: 264 seconds]
dmiller has joined #ruby
girija_ has quit [Ping timeout: 255 seconds]
abcdefg_ has joined #ruby
becom33 has joined #ruby
sayan has joined #ruby
<becom33> Im doing this socket script . the problem is the the commands are responsed with 250 OK . i wanna check them if the command is 250 OK or somthing else . cant do it with a if . is there a more elegant way of doing that ?
johngalt2600 has quit [Ping timeout: 240 seconds]
byped has quit [Quit: leaving]
sayan has quit [Remote host closed the connection]
axiak has joined #ruby
unsay has quit [Ping timeout: 252 seconds]
Bosma has quit [Quit: leaving]
ahokaomaeha has joined #ruby
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
* becom33 anyone ?
s0ber_ has joined #ruby
marsam has quit [Ping timeout: 246 seconds]
johngalt2600 has joined #ruby
unsay has joined #ruby
mockra has joined #ruby
byped has joined #ruby
<apeiros_> becom33: why can't you do it with an if?
sepp2k has quit [Remote host closed the connection]
s0ber has quit [Ping timeout: 276 seconds]
carloslopes has quit [Remote host closed the connection]
axiak has left #ruby [#ruby]
s0ber_ is now known as s0ber
ekr has joined #ruby
<becom33> well its not working with if . even it works with if . I was wondering maby there is some kind of a way to deal with this kind of response code without using if
<becom33> apeiros_,
<IceDragon> if command.include?("250 OK") #?
<IceDragon> assuming its a string
<apeiros_> becom33: it's hard to help with "it doesn't work"
<becom33> IceDragon, yes its a string
mockra has quit [Ping timeout: 244 seconds]
sjk has quit [Ping timeout: 252 seconds]
advorak has joined #ruby
sjk has joined #ruby
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
colonolGron has quit [Quit: yipiieaah!]
jfl0wers has quit [Quit: jfl0wers]
<IceDragon> becom33 do you have any sample code I could look at to help you?
<becom33> IceDragon, yes it worked
<IceDragon> nvm then :D
chrishough has joined #ruby
eka has joined #ruby
Gu_______ has quit [Quit: Computer has gone to sleep.]
codespectator has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
jpfuentes2 has joined #ruby
techhelp has joined #ruby
banisterfiend has joined #ruby
jfelchner has quit [Ping timeout: 264 seconds]
havenn has joined #ruby
keymone has joined #ruby
ferdev is now known as ferdev|away
mityaz has quit [Quit: Miranda NG! Smaller, Faster, Easier. http://miranda-ng.org/]
Dreamer3 has quit [Quit: Computer has gone to sleep.]
robotmay has joined #ruby
rakl has quit [Quit: sleeping]
michaelmartinez has joined #ruby
Takehiro has joined #ruby
WhereIsMySpoon has quit [Changing host]
WhereIsMySpoon has joined #ruby
techhelp has quit [Quit: This computer has gone to sleep]
TDJACR has quit [Quit: Quit]
brianpWins_ has joined #ruby
onemanjujitsu has quit [Quit: onemanjujitsu]
byped has quit [Quit: byped]
byped has joined #ruby
marsam has joined #ruby
Stilo has joined #ruby
brianpWins has quit [Ping timeout: 252 seconds]
<openstandards> hi all
brianpWins_ is now known as brianpWins
<havenn> hey
F1skr has quit [Quit: WeeChat 0.4.0]
Dreamer3 has joined #ruby
<openstandards> i'm just trying to my first ruby program using the rb_wunderground gem and i'm getting back the results but i'm unsure on what to do next to process it into structured data
Takehiro has quit [Ping timeout: 245 seconds]
Marc_Online_ has joined #ruby
<openstandards> could you please just point me to some documentation to help the output is json
byped has quit [Client Quit]
banjara has quit [Quit: Leaving.]
grendlme has joined #ruby
byped has joined #ruby
joofsh has quit [Remote host closed the connection]
<invisime> sinatra > rails, imo.
<invisime> oh. nvm.
jfelchner has joined #ruby
<invisime> my scrolling was about an hour behind.
<invisime> no one's still talking about that. XD
butblack has joined #ruby
<openstandards> no prob :)
byped has left #ruby [#ruby]
byped has joined #ruby
<invisime> though, to be fair, saying something like "sinatra > rails" is almost always on topic in here. XD
banisterfiend has quit [Remote host closed the connection]
joofsh has joined #ruby
chrishough has quit [Quit: chrishough]
tfittsy has quit [Ping timeout: 245 seconds]
arya_ has quit [Ping timeout: 248 seconds]
unsay has quit [Ping timeout: 252 seconds]
<Xeago> apeiros_: you feeling better?
marsam has quit [Ping timeout: 256 seconds]
carloslopes has joined #ruby
TDJACR has joined #ruby
TDJACR has quit [Client Quit]
chrishough has joined #ruby
<Xeago> Can the following sentence be rephrased to make it easier to read?: "Quality of search results cannot be measured in concrete values/units. For that reason, whether the new system improved the quality of search results is determined by a questionnaire."
zastern has quit [Remote host closed the connection]
TDJACR has joined #ruby
io_syl has quit [Ping timeout: 256 seconds]
keymone_ has joined #ruby
<pnkbst> is there anything like cassandra with ruby?
io_syl has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
danneu has quit [Remote host closed the connection]
grendlme has quit [Quit: grendlme]
danneu has joined #ruby
Myconix has quit [Read error: Connection reset by peer]
ebobby has joined #ruby
keymone has quit [Ping timeout: 245 seconds]
keymone_ is now known as keymone
jeer has quit []
ddv has joined #ruby
innohero has quit [Quit: Leaving]
nkr has quit [Ping timeout: 255 seconds]
Myconix has joined #ruby
jeer has joined #ruby
grendlme has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
io_syl has quit [Ping timeout: 246 seconds]
zerba has quit [Remote host closed the connection]
grendlme_ has joined #ruby
otters has quit [Ping timeout: 252 seconds]
weasels has joined #ruby
tfittsy has joined #ruby
onemanjujitsu has joined #ruby
grendlme__ has joined #ruby
ddv has quit [Changing host]
ddv has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
JumpMast3r has joined #ruby
joast has joined #ruby
io_syl has joined #ruby
grendlme has quit [Ping timeout: 256 seconds]
grendlme__ is now known as grendlme
shashin has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
havenn has quit [Remote host closed the connection]
<ekr> Xeago: maybe something like this? "The quality of search results cannot be measured in concrete values or units. A questionnaire will determine whether or not the new system improved the quality of search results."
ferdev|away is now known as ferdev
havenn has joined #ruby
grendlme_ has quit [Ping timeout: 255 seconds]
cableray has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
<Marc_Online_> Good evening everyone! Lot's of people coming In and Out this channel but no one is really talking here. How come???
braoru has quit [Ping timeout: 240 seconds]
chrishough has quit [Quit: chrishough]
objectivemo has joined #ruby
<rking> Marc_Online_: That's IRC for you. I have my client set to hide joins/parts/quits unless the user recently spoke (or I can toggle them on/off with Alt+= )
havenn has quit [Ping timeout: 252 seconds]
<Marc_Online_> Ok great, thanks for the tip. :-)
carloslopes has quit [Remote host closed the connection]
Marc_Online_ has quit [Quit: Page closed]
beardyjay has quit [Quit: WeeChat 0.4.0-dev]
Marc_Online_ has joined #ruby
robotmay has quit [Remote host closed the connection]
cardoni has quit [Quit: cardoni]
eldariof has quit []
carloslopes has joined #ruby
samlt has quit [Ping timeout: 248 seconds]
Takehiro has joined #ruby
chrishough has joined #ruby
<shevy> Marc_Online_ yeah, I disabled this like 10 years ago with my client xchat here, otherwise it would be way too annoying to use IRC really
<shevy> Marc_Online_ people are not always talking because they are busy doing other things :D
v0n has quit [Read error: Connection reset by peer]
v0n has joined #ruby
arya has joined #ruby
<Marc_Online_> Yep i noticed. They are going in and out this channel all the time. hahaha ;-)
ahokaomaeha has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
Bosma has joined #ruby
tjbiddle has joined #ruby
idkazuma has joined #ruby
Marc_Online_ has quit [Quit: qwebirc exception: Buffer overflow.]
Bosma has left #ruby [#ruby]
mneorr has quit [Remote host closed the connection]
Takehiro has quit [Ping timeout: 246 seconds]
whowantstolivefo has quit [Ping timeout: 245 seconds]
<apeiros_> Xeago: not a bit :(
<Xeago> ekr that would indicate that the questionnaire isn't held yet
brianpWins has quit [Quit: brianpWins]
<Xeago> apeiros_: pity :'(, get better soon!
<apeiros_> headache like stupid, and roaring like a thunderstorm when I cough
Jeaye has joined #ruby
<apeiros_> thanks
tealmage has quit [Remote host closed the connection]
osaut has joined #ruby
allsystemsarego_ has quit [Quit: Leaving]
TDJACR has quit [Quit: Quit]
<ekr> Xeago: maybe "The questionnaire" would change the context, I'm guessing you reference it previously
weasels is now known as otters
<Xeago> huh?
TDJACR has joined #ruby
grendlme has quit [Quit: grendlme]
<ekr> idk I'm not clear on the overall message I guess
TDJACR has quit [Client Quit]
<ekr> the 2nd sentence just seemed like it could be condensed a bit more to me
luckyruby has quit [Remote host closed the connection]
<Xeago> hmm, let me try to elaborate
TDJACR has joined #ruby
<ekr> I re-read, are you suggesting a questionnaire is necessary to determine or if it a part of the process
<ekr> part of the process already
mikepack has joined #ruby
<Xeago> well, as quality of serach results cannot be (easily) measured in values or units
<Xeago> I am collecting opinions
<Xeago> through the questionnaire
TDJACR has quit [Client Quit]
<ekr> ah ok
<Xeago> and the result of that determines whether the new system improved the search-system, or not
mockra has joined #ruby
JumpMast3r has quit [Quit: JumpMast3r]
emmanuelux has quit [Ping timeout: 256 seconds]
dmiller has quit [Ping timeout: 245 seconds]
albakry has joined #ruby
albakry has quit [Changing host]
albakry has joined #ruby
jrafanie has joined #ruby
<ekr> "The outcome of a questionaire determines whether or not the new system improved the quality of search results."
joeycarmello has joined #ruby
<ekr> something like that, I just think maybe make the sentence more active, less propositional phrases
openstandards has quit [Quit: WeeChat 0.3.7]
vlad_starkov has joined #ruby
<advorak> I have two arrays ary1,ary2; ary1.count == ary2.count; I want to create a hash where {ary1[x] => ary2[x], ...} for each x. Is there an existing solution/gem or do I need to concoct my own?
mneorr has joined #ruby
openstandards has joined #ruby
mockra has quit [Ping timeout: 245 seconds]
elux has quit [Quit: Leaving...]
tfittsy has quit [Ping timeout: 252 seconds]
<Hanmac> advorak: Hash[ary1.zip(ary2)]
<Xeago> the old paragraph and new paragraph with your changes
pewter_tao has joined #ruby
JumpMast3r has joined #ruby
jimeh has joined #ruby
JumpMast3r has quit [Client Quit]
<advorak> Hanmac, thanks! :-)
JumpMast3r has joined #ruby
carloslopes has quit [Remote host closed the connection]
mfridh has joined #ruby
cardoni has joined #ruby
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
ham1 has joined #ruby
s1n4 has joined #ruby
<ekr> Xeago: I added a new revision under the first two http://hastebin.com/yesabuceja.vhdl
nicoulaj has joined #ruby
a_a_g has quit [Quit: Leaving.]
<Xeago> thanks!
vlad_starkov has quit [Ping timeout: 255 seconds]
<ekr> no problem!
arturaz has quit [Remote host closed the connection]
sdudenhofer has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
maletor has joined #ruby
havenn has joined #ruby
onemanjujitsu has quit [Quit: onemanjujitsu]
ham1 has quit [Ping timeout: 264 seconds]
banisterfiend has joined #ruby
angusiguess has quit [Ping timeout: 256 seconds]
platzhirsch has joined #ruby
platzhirsch has left #ruby [#ruby]
pewter_tao has quit [Ping timeout: 252 seconds]
maycon has quit [Ping timeout: 256 seconds]
dmerrick has joined #ruby
ebobby has quit [Quit: Lost terminal]
shashin has quit [Quit: shashin]
swoosh has joined #ruby
swoosh has quit [Max SendQ exceeded]
swoosh has joined #ruby
swoosh has quit [Max SendQ exceeded]
swoosh has joined #ruby
swoosh has quit [Max SendQ exceeded]
tommyvyo has joined #ruby
pskosinski has quit [Ping timeout: 245 seconds]
swoosh has joined #ruby
swoosh has quit [Max SendQ exceeded]
pskosinski has joined #ruby
calmyournerves has joined #ruby
drago757 has quit [Quit: drago757]
sullenel has quit [Quit: WeeChat 0.4.0]
samphippen has joined #ruby
Cooler_ has quit [Remote host closed the connection]
Cooler_ has joined #ruby
platzhirsch has joined #ruby
platzhirsch has left #ruby [#ruby]
emmanuelux has joined #ruby
skrewler has joined #ruby
skrewler has quit [Read error: Connection reset by peer]
maz-dev has quit [Quit: Leaving]
salonloewe has joined #ruby
<salonloewe> Why does "10".to_i-1.times{|i| puts i } only print 0 ?
unsay has joined #ruby
<salonloewe> "10".to_i-1 evaluates to 9 if I execute it without using times after that
maycon has joined #ruby
maycon has quit [Changing host]
maycon has joined #ruby
RomainT has left #ruby [#ruby]
<Xeago> salonloewe: methods on objects have a higher precedence than minus operations
workmad3 has quit [Ping timeout: 255 seconds]
jrafanie has quit [Quit: jrafanie]
<salonloewe> Xeago: oh I thought I tested that, thanks
shashin has joined #ruby
goraxe has quit [Ping timeout: 252 seconds]
<salonloewe> Any idea what is the shortes way for doing some calculation in the times block and adding them to a result which is printed in the end? At the moment I have to define a variable beforehand and use += on it every time and make and invocation to puts in the end
<Xeago> you can do the calculation in a map?
nicoulaj has quit [Remote host closed the connection]
zastern has joined #ruby
<Xeago> or you can do ("10".to_i-1).times..
arya has quit [Ping timeout: 255 seconds]
unsay has quit [Ping timeout: 245 seconds]
icole has joined #ruby
io_syl has quit [Ping timeout: 248 seconds]
cardoni has quit [Quit: cardoni]
TDJACR has joined #ruby
ham1 has joined #ruby
io_syl has joined #ruby
F1skr has joined #ruby
<salonloewe> Xeago: it's just that I have an array [0,1,2,..n] where I calculate for each number something and sum up everything at the moment: *(0..n).map{|i| compute(i)}.inject(:+) and I was thinking, maybe I can skip the auxiliary array and compute it in-place
Michael_ has joined #ruby
brianpWins has joined #ruby
arya has joined #ruby
havenn has quit [Read error: Connection reset by peer]
otters has quit [Ping timeout: 264 seconds]
ij has joined #ruby
havenn has joined #ruby
<Xeago> you should use reduce tho
angusiguess has joined #ruby
<Xeago> because you are reducing the amount of values
onemanjujitsu has joined #ruby
itsdavem has joined #ruby
dmiller has joined #ruby
michaelmartinez has quit [Quit: Check it, Wreck it http://www.caffeineindustries.com/blog]
<fuzai> how do i get the pid of eventmachine popen event handler or send it a signal?
swoosh has joined #ruby
* Xeago is away
shashin has quit [Quit: shashin]
shashin has joined #ruby
atmosx has joined #ruby
kold has joined #ruby
adkron has quit [Ping timeout: 246 seconds]
itsdavem has quit [Remote host closed the connection]
TDJACR has quit [Quit: leaving]
niklasb has quit [Ping timeout: 245 seconds]
Xeago has quit [Remote host closed the connection]
bricker has quit [Quit: leaving]
dmiller has quit [Ping timeout: 252 seconds]
F1skr has quit [Quit: WeeChat 0.4.0]
TDJACR has joined #ruby
cyong has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
angusiguess has quit [Ping timeout: 248 seconds]
thone_ has joined #ruby
ekr has quit [Quit: ekr]
xAndy is now known as xandy
Skylab has quit [Quit: Skylab]
techhelp has joined #ruby
marr has joined #ruby
butblack has quit [Quit: butblack]
thone has quit [Ping timeout: 252 seconds]
havenn has quit [Remote host closed the connection]
reinaldob has joined #ruby
<f0ster> why doesn't ruby have ++ operator ?
havenn has joined #ruby
cyong has quit [Ping timeout: 276 seconds]
cosmo115 has joined #ruby
techhelp has quit [Ping timeout: 264 seconds]
icole has quit [Remote host closed the connection]
adeponte has joined #ruby
Bosox20051 has joined #ruby
mockra has joined #ruby
mikepack has quit [Remote host closed the connection]
byped has quit [Quit: byped]
blueOxigen has joined #ruby
xandy is now known as xAndy
<atmosx> f0ster: how did you came up with that conclusion?
<f0ster> didnt see it listed on operators page when I googled
<atmosx> can you show me the list?
icole has joined #ruby
<banisterfiend> f0ster: dunno, he just didnt add it
<f0ster> atmosx: and it doesn't work in pry ?
<banisterfiend> f0ster: i guess he thought ++ was too obscure
<f0ster> banisterfiend: I see
<banisterfiend> x += 1 is arguably more expressive (arguably :)
<f0ster> yeah but doesnt allow me to do things like
TDJACR has quit [Quit: leaving]
<f0ster> put i++
<f0ster> puts*
Retistic has joined #ruby
<havenn> f0ster: puts i += 1
<f0ster> havenn: I guess I can, didn't know I could do that :D
<f0ster> I didnt think the assignment operator would return the value of the assigned
mockra has quit [Ping timeout: 260 seconds]
niklasb has joined #ruby
tcstar has joined #ruby
bluOxigen has quit [Ping timeout: 252 seconds]
<f0ster> silly
onemanjujitsu has quit [Quit: onemanjujitsu]
swoosh has quit [Ping timeout: 246 seconds]
<becom33> how I set a OptionParse option default value ?
cyong has joined #ruby
michaelmartinez has joined #ruby
cardoni has joined #ruby
adeponte has quit [Remote host closed the connection]
jaequery has joined #ruby
onemanjujitsu has joined #ruby
* becom33 anyone ?
<cosmo115> def yourMethod(opt={})
<cosmo115> {:xxx => "xxx}.merge opt
<becom33> cosmo115, kinda unclear bother
TDJACR has joined #ruby
ferdev is now known as ferdev|away
cousine has joined #ruby
<cosmo115> def yourMethod(opt ={})
<cosmo115> {:default_value => "wadaa"}.merge opt
<cosmo115> end
Retistic has quit [Quit: Retistic]
<cosmo115> Is it what you are looking for?
<becom33> from here do I call this method ?
Retistic has joined #ruby
jaequery has quit [Client Quit]
kaen has quit [Quit: Leaving]
abcdefg_ has quit [Read error: Connection reset by peer]
michaelmartinez has quit [Quit: Check it, Wreck it http://www.caffeineindustries.com/blog]
<becom33> no no Im talking about the OptionParser
<mehwork> how do you return a local variable from a block without using a global and without returning it?
ahokaomaeha has joined #ruby
<mehwork> well i want to return it but only if all iterations of teh block are complete
<banisterfiend> mehwork: you often dont need to do that, as there's Enumerable methods that likely do what you want
cantonic has quit [Quit: cantonic]
<banisterfiend> mehwork: but, you can set var = nil outside the block
<banisterfiend> so it'll persist before/after/through the block
<mehwork> ok
<mehwork> oh i see, blocks are just like closures then
cardoni has quit [Ping timeout: 260 seconds]
<mehwork> wonder why they don't just call them closures
<banisterfiend> mehwork: exactly
Takehiro has joined #ruby
<banisterfiend> mehwork: well, lambdas in lisp are closures and the're called 'lambdas' :)
<banisterfiend> mehwork: ditto for python, etc
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
<banisterfiend> mehwork: also there's a few different types of closures in ruby
<mehwork> i see
<banisterfiend> so closure is a more general term, with blocks/lambdas being specific examples
<mehwork> thanks
ferdev|away is now known as ferdev
mengu has joined #ruby
cousine has quit [Remote host closed the connection]
Takehiro has quit [Ping timeout: 276 seconds]
anderse has joined #ruby
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
jamescarr has joined #ruby
albakry has quit [Quit: Leaving]
blacktulip has quit [Remote host closed the connection]
jfl0wers has joined #ruby
cantonic has joined #ruby
spider-mario has joined #ruby
Retistic has quit [Quit: Retistic]
cableray has quit [Quit: cableray]
horofox has quit [Quit: horofox]
jpfuentes2 has joined #ruby
Xeago has joined #ruby
jonahR has quit [Quit: jonahR]
Guest43968 has quit [Quit: Leaving]
nazty has quit [Read error: Connection reset by peer]
F1skr has joined #ruby
chrishough has quit [Quit: chrishough]
Stilo has joined #ruby
drago757 has joined #ruby
jaequery has joined #ruby
jaequery has quit [Client Quit]
maletor has joined #ruby
TDJACR has quit [Quit: leaving]
jaequery has joined #ruby
_veer has joined #ruby
jaequery has quit [Client Quit]
Xeago has quit [Remote host closed the connection]
mneorr has quit [Remote host closed the connection]
TDJACR has joined #ruby
beardyjay has joined #ruby
beardyjay has quit [Changing host]
beardyjay has joined #ruby
mneorr has joined #ruby
benlieb has quit [Quit: benlieb]
arya has quit [Ping timeout: 245 seconds]
F1skr has quit [Quit: WeeChat 0.4.0]
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
<openstandards> has anyone used the gem hashie before?
statarb3 has joined #ruby
statarb3 has joined #ruby
TDJACR has quit [Quit: leaving]
TDJACR has joined #ruby
hakunin has joined #ruby
osaut has quit [Quit: osaut]
robotmay has joined #ruby
io_syl_ has joined #ruby
alanp_ has joined #ruby
kenneth has quit [Remote host closed the connection]
codecop has quit [Quit: Išeinu]
io_syl has quit [Ping timeout: 240 seconds]
io_syl_ is now known as io_syl
TDJACR has quit [Quit: leaving]
TDJACR has joined #ruby
alanp has quit [Ping timeout: 255 seconds]
mockra has joined #ruby
Asher has quit [Quit: Leaving.]
_bart has joined #ruby
TDJACR has quit [Client Quit]
timeout has quit [Quit: "Goodnight Austin, Texas, wherever you are..."]
skbierm has joined #ruby
Asher has joined #ruby
arya has joined #ruby
kold has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 240 seconds]
elico has quit [Quit: elico]
elico has joined #ruby
elico has quit [Client Quit]
abcdefg_ has joined #ruby
mockra has quit [Ping timeout: 256 seconds]
skbierm has quit [Quit: Verlassend]
onemanjujitsu has quit [Quit: onemanjujitsu]
TDJACR has joined #ruby
skbierm has joined #ruby
DaZ has quit [Read error: Operation timed out]
vlad_starkov has joined #ruby
arya has quit [Ping timeout: 248 seconds]
enebo has quit [Quit: enebo]
gosshedd has joined #ruby
joeycarmello has quit [Remote host closed the connection]
cyong has quit [Quit: Leaving.]
eka has quit [Quit: Computer has gone to sleep.]
TomJ has quit [Quit: TomJ]
kristofers has quit []
jonathanwallace2 has joined #ruby
adeponte has joined #ruby
mephux has quit [Excess Flood]
RurouniJones has joined #ruby
vlad_starkov has quit [Ping timeout: 264 seconds]
Takehiro has joined #ruby
icole has quit [Remote host closed the connection]
jonathanwallace1 has quit [Ping timeout: 264 seconds]
icole has joined #ruby
elico has joined #ruby
mephux has joined #ruby
plotter has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
adeponte has quit [Ping timeout: 240 seconds]
Takehiro has quit [Ping timeout: 246 seconds]
arya has joined #ruby
icole has quit [Ping timeout: 260 seconds]
<_bart> Ruby 1.9.x is roughly 200MB, is that correct?
invisime has quit [Quit: Leaving.]
c0rn has joined #ruby
TomJ has joined #ruby
TomJ has quit [Changing host]
TomJ has joined #ruby
<_bart> Ah never mind, it's the gems that are causing the big file size I think
workmad3 has joined #ruby
MattRB has joined #ruby
tommyvyo has joined #ruby
ekr_ has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
c0rn has quit [Ping timeout: 252 seconds]
hybris has joined #ruby
_bart has quit [Quit: _bart]
cyong has joined #ruby
emergion has joined #ruby
benlieb has joined #ruby
arya has quit [Ping timeout: 276 seconds]
s1n4 has quit [Quit: leaving]
c0rn has joined #ruby
jpfuentes2 has joined #ruby
braoru has joined #ruby
punkrawkR has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
apeiros_ has quit [Remote host closed the connection]
justsee has quit [Quit: Leaving...]
cyong has quit [Ping timeout: 252 seconds]
c0rn has quit [Client Quit]
justsee has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
davidokner has joined #ruby
rakl has joined #ruby
<davidokner> Does anyone here work in cyber security?
arya has joined #ruby
tomzx_ has joined #ruby
<davidokner> Anyone know any resources for secure software development using Ruby?
pskosinski has quit [Ping timeout: 252 seconds]
jamescarr has quit [Quit: jamescarr]
m3pow has quit [Quit: ChatZilla 0.9.89 [Firefox 18.0.1/20130117041608]]
benlieb has quit [Quit: benlieb]
petersaints has joined #ruby
arya has quit [Client Quit]
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
pskosinski has joined #ruby
tommyvyo has joined #ruby
atmosx has quit [Quit: And so the story goes…]
mneorr has quit [Remote host closed the connection]
davidokner has left #ruby [#ruby]