apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p327: http://ruby-lang.org (ruby-2.0.0-preview2) || Paste >3 lines of text on http://gist.github.com
<shevy> though there are more weird things happening ... hmm *** glibc detected *** dmesg: double free or corruption (!prev): 0x082a8038 ***
<JMcAfreak> having fun?
<shevy> :(
Goles has quit [Ping timeout: 255 seconds]
<JMcAfreak> yeah, figures. I hate it when my computer does that kind of crap to me
<shevy> I am trying fsck.ext4 right now
<aedorn> with it mounted?
<shevy> FILE SYSTEM WAS MODIFIED REBOOT LINUX
_64k has quit [Quit: _64k]
xerxas_ is now known as xerxas
<reppard> yeah probably dont want to fsck with the drive mounted
<JMcAfreak> ^
<JMcAfreak> trust me, that would be a genuine Bad Idea.
<aedorn> heh, too late now though.. go reboot and cross your fingers. You might be doing some fdisk fun though
<JMcAfreak> I have screwed over so many OSes
<shevy> aedorn hmm no, a reboot as-is would fail, mount etc.. is broken
<JMcAfreak> ... and I just noticed my pants are splitting
<shevy> what confuses me is that busybox does not react :(
<JMcAfreak> :(
<shevy> alright, the moment of truth has arrived... see you either soon, or tomorrow, or perhaps even later in case my machine also has a hardware defect ;)
shevy has quit [Quit: ""]
sn0wb1rd has joined #ruby
slainer68 has joined #ruby
ltsstar has quit [Quit: ltsstar]
<JMcAfreak> let's see if it ends in a shark attack. http://xkcd.com/349/
mengu has joined #ruby
andersomp4 has joined #ruby
<JMcAfreak> ... and... oh man, MY PANTS ARE TEARING AT THE SEAMS ON THE SIDE, TOO!
samuel02 has quit [Remote host closed the connection]
miskander has quit [Quit: miskander]
jdar has quit [Quit: jdar]
vonsar has quit [Quit: This computer has gone to sleep]
slainer68 has quit [Ping timeout: 248 seconds]
nignaztic has quit [Quit: plz die k thx]
lordnaz has quit [Quit: Lost terminal]
nazty has quit [Remote host closed the connection]
jdar has joined #ruby
jdar has quit [Remote host closed the connection]
cascalheira has joined #ruby
<JMcAfreak> aedorn: do you think he will be coming back?
Noldorin has joined #ruby
cascalheira has quit [Remote host closed the connection]
<reppard> what exactly was shevy trying to do?
zastern_ has quit [Remote host closed the connection]
cascalheira has joined #ruby
<JMcAfreak> reppard: I have no idea. All I know is that he tried fsck.ext4 /with the drive mounted/
lenovodroid has quit [Ping timeout: 265 seconds]
<JMcAfreak> reppard: my prediction was http://xkcd.com/349/
andersomp4 has quit [Quit: Saindo]
Guedes has joined #ruby
<reppard> yeah thats all i saw
pskosinski has quit [Quit: Learn Life's Little Lessons]
<reppard> haha
_64k has joined #ruby
cout has quit [Ping timeout: 255 seconds]
<reppard> historically a bad idea
lahwran has quit [Quit: ZNC - http://znc.sourceforge.net]
<reppard> can't say i haven't tried it in a pinch
<reppard> i never liked the results though
cout has joined #ruby
cascalheira has quit [Remote host closed the connection]
cascalheira has joined #ruby
<JMcAfreak> Hey, I learned the hard way that it was a genuine Bad Idea. I can even give a certificate of authenticity if you need one.
pskosinski has joined #ruby
cascalheira has quit [Client Quit]
jds has quit [Remote host closed the connection]
Kov|abx has quit [Ping timeout: 264 seconds]
<reppard> i finally got a physically copy of the pickaxe today!!
<reppard> whoop whoop
inimino has quit [Ping timeout: 264 seconds]
lorn has quit [Ping timeout: 244 seconds]
jds has joined #ruby
Kov|abx has joined #ruby
<JMcAfreak> the pickaxe... meaning the Minecraft pickaxe?
<reppard> haha no the ruby pickaxe
rking has quit [Ping timeout: 264 seconds]
<reppard> i've been programming ruby for a little while now but learned pretty much everything with ebooks or online documentation
<JMcAfreak> reppard: I was going to say... Should've gotten the MineCraft one a long time ago
lorn has joined #ruby
<reppard> nice to have a physical copy though
<reppard> JMcAfreak: i am patiently waiting for Minecraft Pi
<JMcAfreak> ah
<aedorn> oh, I see shevy finally rebooted.. heh
lenovodroid has joined #ruby
Squarepy has joined #ruby
rking has joined #ruby
jds has quit [Ping timeout: 245 seconds]
lahwran has joined #ruby
miskander has joined #ruby
toekutr has quit [Remote host closed the connection]
onibox has quit [Quit: leaving]
tjbiddle has joined #ruby
miskander has quit [Client Quit]
amacgregor_osx has quit [Read error: Operation timed out]
ikaros has quit [Quit: Ex-Chat]
<havenn> Anyone know a better, simpler way (other than obviously needed refactoring >.>) to get latest ruby version urls? https://gist.github.com/4395461
amacgregor_osx has joined #ruby
dougireton has quit [Quit: Leaving.]
<havenn> Was thinking of setting up an API that reports urls for the latest versions of Ruby.
<lupine> what does rvm do?
dougireton has joined #ruby
<havenn> lupine: Manually update urls via pull request.
_64k has quit [Quit: _64k]
<matip__> is there a syntax to do something like a + (b || c), where a, b and c are strings?
<matip__> something other than a + (b ? b : c)
<matip__> (b.length > 0) ? ... actually
<lupine> odd that there aren't -latest.tar.gz URLs, but there is http://ftp.ruby-lang.org/pub/ruby/stable-snapshot.tar.gz
<lupine> no idea what's in it
emmanuelux has quit [Ping timeout: 248 seconds]
kmurph has quit [Quit: kmurph]
jonahR has quit [Quit: jonahR]
ryanf_ has joined #ruby
<seanstickle> matip__: well, there is the classic
<seanstickle> a + (b || c)
friskd has quit [Ping timeout: 255 seconds]
<seanstickle> Which works well
<matip__> hmn, that's what I thought but...
<matip__> > "a" + ("" || "c")
<matip__> => "a"
<matip__> I'm expecting "ac" in this case
<seanstickle> "" is not false
<seanstickle> So that's obviously not going to work
slainer68 has joined #ruby
<matip__> then it doesn't work -.-
<aedorn> havenn: why http over ftp for that?
<matip__> I mean, as I want it to work :P
<havenn> aedorn: Uhhh.... that is a good point. :P
<aedorn> and why go by version when you can go by timestamp
<matip__> <matip__> something other than a + (b.length > 0 ? b : c)
<matip__> ;)
<havenn> aedorn: hmmm, I like that idea, thanks!!
<seanstickle> matip__: why don't you like that?
<seanstickle> matip__: it's clear and works
<matip__> () ? .. : .. ?
<mpfundstein_home> a + (b.length || c) ?
<seanstickle> mpfundstein: ?
maletor has quit [Ping timeout: 250 seconds]
<matip__> nop, it doesn't work either ^
anders__ has quit [Remote host closed the connection]
<mpfundstein_home> a + (b.length > 0 || c) ?
<seanstickle> mpfundstein: do you know what you're doing?
<seanstickle> mpfundstein: you're throwing type errors left and right
Squarepy has quit [Changing host]
Squarepy has joined #ruby
<mpfundstein_home> seansticke: ?
<seanstickle> matip__: I don't understand the problem with the obvious way
<mpfundstein_home> seanstickle: i am delighted to hear :-)
maletor has joined #ruby
nazty has joined #ruby
slainer68 has quit [Ping timeout: 248 seconds]
<seanstickle> mpfundstein_home: if b.length > 0 returns True, it can't catenate with a string
<mpfundstein_home> ah sure
<mpfundstein_home> :-)
emmanuelux has joined #ruby
havenn has quit [Ping timeout: 252 seconds]
<matip__> xD
<matip__> there's no problem. I wanted to know if there were another way! that's it
<seanstickle> Oh, ok
<reppard> anyone know of a way to get a diff of the current buffer and the original file in vim?
tvw has quit [Read error: Connection reset by peer]
<matip__> I mean, a syntax sugar or something
<seanstickle> You could probably monkey patch ||
<seanstickle> But I wouldn't advise such evil magic
<matip__> actually there's a problem, because I don't have a, b or c. it's the result of a function
<matip__> so I need two lines at least
pothibo has quit [Quit: pothibo]
<matip__> or something like a + ((b = func()) ? b : c)
<matip__> which is ugly :P
mrdtt has joined #ruby
<matip__> to be precise: f() + ((b = g()) ? b : h())
jds has joined #ruby
ryanf_ has quit [Quit: broken pipes |||]
squidBits has joined #ruby
dougireton has quit [Quit: Leaving.]
dougireton has joined #ruby
<reppard> man i figured there would be something built into vim
benlieb has quit [Quit: benlieb]
<reppard> :help diff shows some interesting stuff but none of it works for this case
blazes816 has quit [Quit: blazes816]
nga4 has quit []
benlieb has joined #ruby
assurbanipal has joined #ruby
shadewin1 has quit [Quit: Lost terminal]
Virunga has quit [Remote host closed the connection]
raul782_ has quit [Remote host closed the connection]
mjolk has joined #ruby
systems has joined #ruby
pskosinski has quit [Ping timeout: 260 seconds]
lolcathost has quit [Quit: leaving]
systems has left #ruby ["Leaving"]
jds has quit [Ping timeout: 250 seconds]
nazty has quit [Quit: Leaving]
chriskk has quit [Ping timeout: 255 seconds]
mpfundstein_home has quit [Ping timeout: 265 seconds]
bricker has quit [Ping timeout: 252 seconds]
dankest has quit [Quit: Leaving...]
kil0byte has quit [Remote host closed the connection]
DrShoggoth has joined #ruby
nazty has joined #ruby
rakl has joined #ruby
lolcathost has joined #ruby
voodoofish430 has left #ruby [#ruby]
dougireton has quit [Quit: Leaving.]
wallerdev has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby
daniel_-_ has joined #ruby
daniel_- has quit [Read error: Operation timed out]
fomatin has quit [Quit: Textual IRC Client: www.textualapp.com]
eph3meral has quit [Quit: eph3meral]
assurbanipal has quit [Remote host closed the connection]
havenn has joined #ruby
JarJar has joined #ruby
Goles has joined #ruby
Shadow_S has quit [Quit: Textual IRC Client: www.textualapp.com]
rubyretard has joined #ruby
Cooler_ has quit [Ping timeout: 260 seconds]
slainer68 has joined #ruby
datura has joined #ruby
amacgregor_osx has quit [Read error: Operation timed out]
Axsuul has joined #ruby
jds has joined #ruby
<havenn> Note to OP, patch 1.9.3-p362 is out for Topic! :)
amacgregor_osx has joined #ruby
statarb3 has quit [Ping timeout: 265 seconds]
zeade has joined #ruby
jds has quit [Ping timeout: 252 seconds]
yankeefan04 has joined #ruby
skcin7 has joined #ruby
<yankeefan04> I am trying to change my directory order and add a new one. I use unshift and it seems like it is in the correct order, then i leave and it goes back. is there something i need to do it save the directory order?
<yfeldblum> yankeefan04, what's a "directory order"?
marr has quit [Ping timeout: 255 seconds]
dougireton has joined #ruby
johnmilton has quit [Remote host closed the connection]
<yankeefan04> yfeldblum, it's the order by which my computer searches for files
ruzu has joined #ruby
dmiller has quit [Read error: Connection reset by peer]
<yfeldblum> yankeefan04, is this using the command-line tool `find`? is this using something in ruby?
<cajone> yankeefan04: what you explained seems like some form of AI O.S, why unshift, are you using a hash table?
<canton7> I'm betting on $LOAD_PATH
Cooler_ has joined #ruby
neurotech has joined #ruby
<yankeefan04> I am just in terminal trying to have it use my new folder when searching
ruzu has quit [Client Quit]
<cajone> yankeefan04:are you storing the the info in a hash?
<yfeldblum> yankeefan04, show your code on pastie.org
Kuifje has quit [Ping timeout: 255 seconds]
amacgregor_osx has quit [Read error: Operation timed out]
<yfeldblum> canton7, :D
<cajone> :D
<canton7> ah yeah, spot on :)
<canton7> one of the only times I use #unshift :P
<yankeefan04> so what is the problem?
<yfeldblum> yankeefan04, and how are you trying to search?
<yankeefan04> I am trying to save it as a default
<yfeldblum> yankeefan04, i don't know what that means
amacgregor_osx has joined #ruby
<yankeefan04> so its standard operation to look in the folder
<yfeldblum> yankeefan04, what do you mean by "save"? and by "default"?
<yankeefan04> i added the folder in the pastie.org link
<yankeefan04> with unshift
<yankeefan04> then when i quit terminal and try to load code from that folder it fails again
<yankeefan04> always load error
huoxito has joined #ruby
<yfeldblum> yankeefan04, indeed, and that will always happen, because changing $: only sticks until the end of your IRB session (or the end of the ruby program you're running)
<yankeefan04> ah
<cajone> ok yankee: you can not reference a hash by the order it is stored in, try saving to an array and referencing by index ( after sorting the required search requirements)
<havenn> yankeefan04: Even global variables don't persist beyond the proces
<havenn> process***
<yankeefan04> alright, thank you
<canton7> yankeefan04, if you're looking to auto-include work-in-progress gems in your home dir, for example, see /etc/gemrc and http://docs.rubygems.org/read/chapter/11
<canton7> specifically gempath
ruzu has joined #ruby
dougireton has quit [Quit: Leaving.]
atyz has quit [Quit: Leaving...]
pen has joined #ruby
Goles has quit [Quit: Out.]
skcin7 has quit [Quit: Computer has gone to sleep.]
lenovodroid has quit [Ping timeout: 252 seconds]
mercwithamouth has joined #ruby
yankeefan04 has quit [Remote host closed the connection]
elico has quit [Ping timeout: 255 seconds]
cousine has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
nomenkun has joined #ruby
joeycarmello has joined #ruby
Xeago has quit [Remote host closed the connection]
cousine has quit [Remote host closed the connection]
lolcathost has quit [Quit: leaving]
squidBits has quit [Quit: whoops]
Catnaroek has joined #ruby
nomenkun has quit [Ping timeout: 252 seconds]
dmiller has joined #ruby
datura has quit [Quit: This computer has gone to sleep]
shevy2 has joined #ruby
<shevy2> ah well
<shevy2> in the end I reinstalled :\
matip_ has joined #ruby
kjellski has joined #ruby
elico has joined #ruby
reppard has quit [Ping timeout: 252 seconds]
alexspeller has quit [Read error: Connection reset by peer]
benlieb has quit [Quit: benlieb]
<shevy2> but I know what I won't do again... have multiple copies of things like libuuid.so.1
alexspeller has joined #ruby
chriskk has joined #ruby
<rubyretard> hi all, i am looking for a solution to take an output from reverse engineering (a directory), parse it into .txt and ADD into a MySQL DB, is this doable with Ruby?
shevy2 is now known as shevy
matip__ has quit [Ping timeout: 265 seconds]
JarJar has quit [Quit: This computer has gone to sleep]
<canton7> sure. mysql can be a slight pain on windows though :P but not too bad
karupanerura has quit [Excess Flood]
<rubyretard> canton7: thanks, not WIn32, using Debian 6.0
karupanerura has joined #ruby
Hanmac has quit [Read error: Connection reset by peer]
Hanmac has joined #ruby
inimino has joined #ruby
freakazoid0223 has quit [Quit: Leaving]
<shevy> ok
<shevy> which docs are better
kiyoura has joined #ruby
<shevy> ruby docs or python docs
<aedorn> shevy: ruby and I see you fixed your read only FS
<shevy> aedorn I cowardly reinstalled hehehehe
<aedorn> oh lol
<shevy> though I tried to kill the wrong libuuid.so.1 and that *blk*.so too... but that alone didn't fix it, there still was some other error
<shevy> but I think I know how to avoid this problem in the future, so that is ok
<shevy> the only thing that I still don't understand is why busybox didn't work
<havenn> shevy: Ruby has an ISO spec (draft is free) and Python doesn't. Dunno which is 'better'.
<shevy> havenn hmm I mean more like, the quality of the documentation? I have not worked much at all with python, only looked superficially at the python docs
<shevy> I admit that I never looked at the iso spec hehe
<havenn> shevy: I think most people think you have to pay for the ISO spec, but if you search the draft is free. :)
<shevy> hmm
sepp2k has quit [Remote host closed the connection]
<havenn> P.S., draft and final are identical :P
Hanmac1 has joined #ruby
theRoUS has joined #ruby
<seanstickle> The Ruby spec is quite a nice read.
<seanstickle> I learned a lot of my Ruby programming by reading that
theRoUS_ has joined #ruby
Squarepy has quit [Quit: Leaving]
Hanmac has quit [Ping timeout: 265 seconds]
cirwin has quit [Quit: sleep...ping!]
<aedorn> thing I don't like about Python syntax docs is you kind of need to know what you are looking for. If you know the function you want, then you can find it fairly easy.. if you're looking for "what can I use to get this result" it's quite a bit more difficult
tenmilestereo has quit [Quit: Leaving]
mengu has quit [Quit: Leaving]
snowflight has joined #ruby
Xeago has joined #ruby
Markvilla has joined #ruby
medik has joined #ruby
medik has quit [Excess Flood]
medik has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
hybris has joined #ruby
kjellski has quit [Quit: This computer has gone to sleep]
BoomCow has quit [Quit: This computer has gone to sleep]
Cooler_ has quit [Read error: Connection reset by peer]
fomatin has joined #ruby
marknyc has joined #ruby
havenn has quit [Remote host closed the connection]
havenn has joined #ruby
EhyehAsherEhyeh has quit [Ping timeout: 244 seconds]
landho has quit [Ping timeout: 255 seconds]
autumn has quit [Remote host closed the connection]
Cooler_ has joined #ruby
autumn has joined #ruby
jbw has quit [Ping timeout: 248 seconds]
Dreamer3 has joined #ruby
landho has joined #ruby
havenn has quit [Ping timeout: 265 seconds]
alexspeller has quit [Remote host closed the connection]
flip_digits has joined #ruby
daniel_-_ has quit [Read error: Operation timed out]
xAndy is now known as xandy
erkules has joined #ruby
Catnaroek has quit [Quit: leaving]
samphippen has quit [Quit: Computer has gone to sleep.]
<erkules> where is the best place/book? to get into ruby (having some perl-foo)?
xandy is now known as xAndy
<shevy> erkules pickaxe is ok
fomatin has quit [Quit: Computer has gone to sleep.]
Noldorin has quit [Quit: Computer has gone to sleep.]
<shevy> if you know perl already though, the easiest may be to just write a few ruby scripts and read through some online resources
<shevy> and the official documentation
<erkules> shevy: hmm hmm okidoki thx
jbw has joined #ruby
<shevy> erkules, also work through this here once: http://pine.fm/LearnToProgram/?Chapter=00
<shevy> it may be very easy for you, but at the end, you will know many ruby basics
<erkules> shevy: thx2 :)
erkules has left #ruby ["WeeChat 0.3.2"]
soulcake has quit [Quit: ZNC - http://znc.in]
joshman_ has joined #ruby
<shevy> welcome!
thomasfedb has joined #ruby
soulcake has joined #ruby
The_8473 has joined #ruby
The_8472 has quit [Ping timeout: 245 seconds]
Guest27727 has quit [Remote host closed the connection]
pmros has joined #ruby
flip_digits has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
hybris has quit [Quit: Leaving]
joshman_ has quit [Ping timeout: 250 seconds]
Jasko has quit [Read error: Connection reset by peer]
Michael has joined #ruby
<pmros> hi!
Xeago has quit [Remote host closed the connection]
Jasko has joined #ruby
Michael is now known as Guest26854
dougireton has joined #ruby
moshee has quit [Ping timeout: 245 seconds]
bigmac has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
<pmros> I wonder if there is some gem to code something like this: file.bytes[1..3] = [1,2,3] #binary file, write byte 0x1 at position 1 and so on
<pmros> any help?
<pmros> I wanna use a binary file like an array
rakl has quit [Quit: sleeping]
Noldorin has joined #ruby
Catnaroek has joined #ruby
wf2f has quit []
snowflight has quit [Quit: snowflight]
Russell^^ has quit [Quit: Russell^^]
Takehiro has quit [Ping timeout: 265 seconds]
rakl has joined #ruby
xbayrockx has joined #ruby
xbayrockx is now known as wf2f
benlieb has joined #ruby
kmurph has joined #ruby
maletor has joined #ruby
<pmros> thank you Boohbah, although api that I'm looking for is really different
<pmros> I'll try to code my own library
dougireton has quit [Quit: Leaving.]
<pmros> my api is easier, don't you think so, Boobah?
Takehiro has joined #ruby
jduan1981 has quit [Ping timeout: 244 seconds]
<pmros> *Boohbah
fomatin has joined #ruby
bozaloshtsh has joined #ruby
Noldorin has quit [Quit: Computer has gone to sleep.]
zeade has quit [Quit: Leaving.]
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
bozaloshtsh has quit [Client Quit]
dmiller_ has joined #ruby
dmiller has quit [Ping timeout: 245 seconds]
mahmoudi_ has joined #ruby
phelps has quit [Quit: Computer has gone to sleep.]
Noldorin has joined #ruby
postmodern has joined #ruby
Solnse has joined #ruby
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
reppard has joined #ruby
zeade has joined #ruby
zeade has quit [Client Quit]
Takehiro has quit [Ping timeout: 265 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
ChrisBolton has joined #ruby
<ChrisBolton> Anyone use savon to make SOAP calls?
Astralum has quit [Read error: Connection reset by peer]
Astralum has joined #ruby
BoomCow has joined #ruby
felipe_Brz has joined #ruby
ewag has joined #ruby
mercwithamouth has quit [Ping timeout: 244 seconds]
x82_nicole has joined #ruby
<felipe_Brz> could someone tell me why I get this error message when trying to run this file as root (sudo) ? http://pastie.org/5591712
mercwithamouth has joined #ruby
jduan1981 has joined #ruby
gsj has joined #ruby
emsilva has quit [Quit: Computer has gone to sleep.]
Takehiro has joined #ruby
elico has quit [Quit: elico]
gsj has quit [Excess Flood]
rakl has quit [Quit: sleeping]
elico has joined #ruby
joofsh has joined #ruby
<pmros> felipe_Brz, unicode gem is intalled?
kokainepizza has quit [Quit: My pooter is sleep.]
<felipe_Brz> pmros: well yes I can run this script ok with my normal user
<felipe_Brz> but when I try and run with sudo then I get this error
<pmros> I think rvm works by user
uris has quit [Quit: Leaving]
<pmros> install that gem as root
<shevy> felipe_Brz it can not find unicode
<shevy> now you would have to find out why rvm is so stupid
<pmros> try rbenv
<shevy> :D
Takehiro has quit [Ping timeout: 244 seconds]
BoomCow has quit [Quit: This computer has gone to sleep]
<felipe_Brz> i wish i hadn't installed rvm because now I have no idea which are the regular os-supplied ruby file and which are rvm's
<shevy> no
<shevy> rvm installs into your home dir, right?
<shevy> and the home dir is not /usr
yacks has joined #ruby
<shevy> I bet you have a bin/ directory here -> /home/felipe/.rvm/rubies/ruby-1.9.3-p125
<shevy> and that bin/ dir has a file called ruby
joeycarmello has quit [Remote host closed the connection]
<felipe_Brz> shevy: correct
<shevy> if I would write a replacement for rvm, I'd do the same and install into a user's HOME directory
<shevy> that way the user can always kill rvm by just removing the directory
<felipe_Brz> is a different ruby binary being used when I run the script as sudo?
<felipe_Brz> it is, isn't it?
<aedorn> ruby -v && sudo ruby -v
<ChrisBolton> Sorry to repeat myself but has anyone used the savon gem for making SOAP calls?
<felipe_Brz> aedorn: the same i guess
Takehiro has joined #ruby
<pmros> no idea, ChrisBolton
<shevy> felipe_Brz don't think there is
<shevy> but if you have more than one ruby in your $PATH, the first one will most likely be used
<ChrisBolton> Thanks pmros.
<aedorn> SOAP makes me want to tear my eyes out.. so nope. But if I had to use it, I guess the only use case would be with Motive. bleh.
<pmros> sorry, ChrisBolton
<ChrisBolton> aedorn: Yeah right now I'm not a happy camper. I'm trying to pass authentication and it's not flying.
<aedorn> what are you trying to communicate with?
Umren has joined #ruby
reppard has quit [Ping timeout: 265 seconds]
rakl has joined #ruby
friskd has joined #ruby
xemu has quit [Ping timeout: 248 seconds]
nari has joined #ruby
friskd has quit [Quit: friskd]
dmiller_ has quit [Remote host closed the connection]
dmiller has joined #ruby
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby
IceDragon has quit [Quit: ::rest]
JoeHazzers has quit [Ping timeout: 260 seconds]
theRoUS_ has quit [Ping timeout: 265 seconds]
theRoUS has quit [Ping timeout: 276 seconds]
<ChrisBolton> I need to pass a username, password and client name but I'm having trouble figuring out what methods are accessible to me.
dougireton has joined #ruby
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
<rubyretard> /quit
<rubyretard> exit
rubyretard has quit [Quit: leaving]
toekutr has joined #ruby
Guest26854 has quit [Remote host closed the connection]
nari has quit [Read error: Operation timed out]
Takehiro has quit [Ping timeout: 260 seconds]
<aedorn> hmm
mjolk2 has joined #ruby
joofsh has quit [Remote host closed the connection]
<mercwithamouth> quick question...how would i go about accessing the hash, @data http://pastie.org/5591801
kiyoura has quit [Quit: Leaving]
kiyoura has joined #ruby
felipe_Brz has quit [Quit: ChatZilla 0.9.89 [Firefox 17.0.1/20121129162756]]
Takehiro has joined #ruby
prettymuchbryce has joined #ruby
<aedorn> heh, I have no idea why I'm digging into this soap api
hotovson has joined #ruby
alanp has joined #ruby
<ChrisBolton> aedorn: because you are awesome?
<RubyPanther> ChrisBolton: I thought everybody used soap4r
<ChrisBolton> RubyPanther: I was warned against it.
<RubyPanther> I was always warned against using anything else lol
ner0x has quit [Remote host closed the connection]
pen has quit [Read error: Connection reset by peer]
jblack has quit [Ping timeout: 265 seconds]
pen has joined #ruby
hotovson has quit [Ping timeout: 244 seconds]
<aedorn> hmm, can't really test this but it looks like you just need to set the basic credentials and then do your operations
<ChrisBolton> RubyPanther: I also kind of inherited it from another gem.
JoeHazzers has joined #ruby
<RubyPanther> newfangled SOAP would be enough to get me gouging at my eyes
<ruzu> soap makes me feel dirty
pmros has quit [Quit: Konversation terminated!]
<Noldorin> does Rake have a standard way to change the path to which "rake install" installs?
<aedorn> ChrisBolton: c = Savon.client(wsdl: "http://rmsws.yieldstar.com/rmsws/AppExchange?wsdl", basic_auth: ["testuser", "testpass"]) , then just call your operations as you need. I can't see anything else and that's what their tomcat server is asking for
amacgregor_osx has quit [Read error: Operation timed out]
amacgregor_osx has joined #ruby
prettymuchbryce has quit [Quit: prettymuchbryce]
<ChrisBolton> aedorn: That's what I did but I'm getting this … https://gist.github.com/4404618
seanstickle has quit [Quit: seanstickle]
huoxito has quit [Quit: Leaving]
dougireton has quit [Quit: Leaving.]
<aedorn> well, let's see what a packet capture says
dougireton has joined #ruby
<aedorn> it definitely sends it
blob4000 has joined #ruby
vlad_starkov has joined #ruby
GoGoGarrett has joined #ruby
<ChrisBolton> I think it requires a client_name as well, just not sure how to send it.
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
GoGoGarrett has quit [Remote host closed the connection]
<aedorn> you would just send that in the message
benlieb has quit [Quit: benlieb]
<aedorn> c.call(:get_properties, message: {client_name: "testme"})
<ChrisBolton> I'm getting a syntax error.
vlad_starkov has quit [Ping timeout: 252 seconds]
<aedorn> er.. ruby 1.9?
Umren has quit [Read error: Connection reset by peer]
radic has quit [Disconnected by services]
radic_ has joined #ruby
kmurph has quit [Quit: kmurph]
<ChrisBolton> 1.9.3
<aedorn> client.call(:get_properties, :message => {:client_name => "testme"})
kmurph has joined #ruby
prettymuchbryce has joined #ruby
amacgregor_osx has quit [Read error: Operation timed out]
amacgregor_osx has joined #ruby
NerveStream has quit [Ping timeout: 260 seconds]
<aedorn> so same thing really.. are you in control of this service?
<prettymuchbryce> Okay lets all write a ruby program one line at a time. I'll start.
<prettymuchbryce> class OneLineAtATime
<ChrisBolton> No I am not.
joeycarmello has joined #ruby
baphled has quit [Ping timeout: 255 seconds]
<mercwithamouth> def initialize(options = {})
<mercwithamouth> # wasn't i nice there?
Markvilla has quit [Quit: Computer has gone to sleep.]
blob4000 has left #ruby [#ruby]
zmisc has joined #ruby
joeycarmello has quit [Read error: Operation timed out]
<aedorn> ChrisBolton: only other thing is double checking you're allowed into that API and it actually is setup correctly on their side for it. You can get some pretty damn weird things happening with Tomcat
<prettymuchbryce> if options["echo"] == true
<ChrisBolton> Cool. I was hoping to avoid talking to them but looks like that's the direction I'll have to go.
<ChrisBolton> Thank you for your help aedorn.
<aedorn> well, not much help, but welcome. I still hate SOAP. =p
<ChrisBolton> As do I.
<shevy> hmm
<shevy> are 730 "def foo" much for a project?
<shevy> where foo of course is another method name each...
<shevy> my brain is beginning to dislike this :\
kmurph has quit [Quit: kmurph]
<prettymuchbryce> in one file shevy ?
<mercwithamouth> ca someone tell me how to access @data? http://pastie.org/5591894
kmurph has joined #ruby
<mercwithamouth> x.@data = fail of course.. @data = fail....not sure how to use it
amacgregor_osx has quit [Read error: Operation timed out]
<aedorn> why does everythinig dealing with real estate a pain in the ass? I don't get it.
<shevy> prettymuchbryce hmm no in many different files
<shevy> aedorn because there is a lot of money in dealing with these things
amacgregor_osx has joined #ruby
<shevy> money turns people into evil beings
<ChrisBolton> aedorn: Seriously I left real estate development to begin web development and mostly it's bureaucracy .
<aedorn> I helped a local company automate some appraisal forms a few months ago. I couldn't believe how much money they paid for a piece of software that just lets you fill in the form and print. Something like several thousand dollars every few months
dougireton has quit [Quit: Leaving.]
<aedorn> automated the whole form for them for some pizza and beer. I work cheap
<mercwithamouth> can someone tell me how to access @data? http://pastie.org/5591894
<prettymuchbryce> What am I looking at ? The output of a ruby script ?
<prettymuchbryce> What is pry(main)
tjbiddle has quit [Quit: tjbiddle]
<aedorn> mercwithamouth: x.first.data
fomatin has quit [Quit: Textual IRC Client: www.textualapp.com]
<prettymuchbryce> whats the difference between .first and [0]
<mercwithamouth> o_O
<aedorn> semantics
<mercwithamouth> aedorn: wtf...why does that work?! =P
<aedorn> mercwithamouth: because it's an array that's returned
<mercwithamouth> well i know about accessors but i couldn't find it anywhere in the Geocoders source code
<mercwithamouth> also wouldn't cache_hit would be....first, no? thank you by the way...
<prettymuchbryce> its an array of Geocoder::Result objects which have the accessor data
<mercwithamouth> hrmm oops..works exactly like a damn array should
<mercwithamouth> =P
<aedorn> no, it's an array before it's a Geocoder object.. or more precisely, it's an Array of Geocoder objects
<mercwithamouth> thanks guys...i got so caught up fighting the fact that i saw an instance variable. i was tryin @data.instance_variable_get and a lot of other things i won't mention =P
<aedorn> sometimes seeing [#<Object>] doesn't compute into a single element array. Hmmm... I'm sure there's a term for this like change blindness
<mercwithamouth> hmm this requires a journal entry
<reactormonk> which predicate evals to true with Integer.is_a? Numeric ?
dmiller has quit [Remote host closed the connection]
spyzer has joined #ruby
<spyzer> hello everyone
<spyzer> may anyone please tell me what can be a good ruby resource or book which can tell me the internals of ruby like how are global variables maintained, what happens in case of threading and insights in ruby itself
<spyzer> that will be a lot of help
<spyzer> i mean i want to move ahead from how to code in ruby -> how to use ruby
krnlsndrs has joined #ruby
<prettymuchbryce> spyzer I've heard good things about The Well-Grounded Rubyist.
<prettymuchbryce> I got it for christmas, but I haven't dug it very much yet. It does cover threading and global variables.
Noldorin has quit [Quit: Computer has gone to sleep.]
<reactormonk> globals? Not in ruby imo
<prettymuchbryce> dug into it* Sorry.
<prettymuchbryce> reactormonk What makes you say that ?
<mercwithamouth> aedorn: now i feel bad....looking at the source code AND documentation they let you know that an array is returned
<mercwithamouth> which well so does the feedback in the console
<spyzer> well yeah its not a global
<spyzer> i agree because after all even that is a property of the main object
<aedorn> mercwithamouth: yes, well, like I said .. it's because you don't perceive it. In your mind you think if it's only one result, then it should be just the result and not an array of a single object. In other words - it happens to everyone from time to time lol
<spyzer> but the thing is i wish to know depths of ruby as in how memory management takes place
<prettymuchbryce> spyzer I believe there is a garbage collector
<spyzer> so i wish to know how it works
<prettymuchbryce> prob mark and sweep or ref counting
<spyzer> what is the logic behind its cycles
<spyzer> and that's juts one thing
<prettymuchbryce> "I want to know what makes you tick, girl" -spyzer to ruby
<aedorn> spyzer: There's no book... and since there's multiple variants of a Ruby interpreter, there are multiple ways it's done
mjolk2 has quit [Quit: This computer has gone to sleep]
<spyzer> ahhh i seee
<aedorn> so you'll have to kind of piece things together. Like for MRI here's a small portion of it: http://www.scribd.com/doc/27174770/Garbage-Collection-and-the-Ruby-Heap
Markvilla has joined #ruby
<reactormonk> prettymuchbryce, how would you use globals in ruby? I don't see much besides $VERBOSE and $DEBUG that are interesting - maybe $LOAD_PATH
<spyzer> so in other words if say i have to profile my ruby app that would depend on which interpreter i use(assuming i have written the code which i wanted to write lol)
<aedorn> spyzer: To a degree, yes
aschmitz has joined #ruby
<reactormonk> prettymuchbryce, sure there is a GC ;-)
<aedorn> The way Rubinius handles memory, and how MRI handles it is a bit different. Same with JRuby, IronRuby, Maglev, and so forth
<spyzer> well then i shall reframe my question is there some best practrices ruby bok out there which can minimize my performance dpendency on interpreters
<prettymuchbryce> reactor monk I guess it depends on how you structure your application. I guess you guys just use statics variables on a main class (@@) for a singleton-style variable. I'm not sure what the tradeoffs might be for doing one or the other.
<reactormonk> spyzer, don't do premature optimization :>
<spyzer> like if you follow some standard pattern then you are bund to get similar results across implementations of rubyvm
<spyzer> ?
<reactormonk> prettymuchbryce, tab completion ftw
<aschmitz> Quick question: I have a class named Book, and a module with several classes, including Book. Inside that module, I want to access the "outer" Book class, not the module's Book class. How can I do that?
<reactormonk> prettymuchbryce, imho the only singleton stuff you should have is somewhere in the main
<reactormonk> aschmitz, ::Book
<aschmitz> reactormonk: Thanks!
<spyzer> reactormonk, yeah well you can say i am preparing for interview :P
<reactormonk> aschmitz, I assume you see the logic behind the syntax
<spyzer> so i need to know what will happen to my code when i execute it
<aschmitz> reactormonk: Yeah, it makes sense. Wouldn't have guessed it, but it makes sense.
<reactormonk> spyzer, oh. Well, if you want speed in ruby, go for jruby or http://rubygems.org/gems/RubyInline
<aedorn> spyzer: Not really... plenty of people have benchmarked all the implementations and some things you actually DO with it are the same, and some are wildly different.
<prettymuchbryce> reactormonk I don't think you're too far off base there. Do you consider CONSTS singletons ? I like to use those frequently in many different classes.
<reactormonk> prettymuchbryce, that's what CONSTANTS are for
<reactormonk> prettymuchbryce, and I look at it in terms of dataflow - if there is no flow of data through globals, they're fine. Just pay attention that it is possible to overwrite them if needed, which is not possible in Ruby.
<spyzer> well then i might have to backstep more and ask which is the best resource out there to learn ruby in its entirety be it a book or a website that teaches me ruby in the ruby way
aschmitz has quit [Quit: Leaving]
kiyoura has quit [Read error: Connection reset by peer]
<reactormonk> prettymuchbryce, activerecord used (may still use) a singleton for the connection - which kills any possibility of using more than one data source.
maletor has joined #ruby
<reactormonk> spyzer, read code, copy code, understand code.
Juul has joined #ruby
Markvilla has quit [Quit: Computer has gone to sleep.]
<aedorn> spyzer: Eloquent Ruby then Metaprogramming Ruby if you want to go the book route from psuedo-beginner to more advanced
<spyzer> thank you :)
<prettymuchbryce> reactormonk Yes you have to be careful in a big project such at that of course.
<reactormonk> prettymuchbryce, and I'm not sure ruby scales
<aedorn> followed by Practical Object-Oriented Design in Ruby for some organization theory
<prettymuchbryce> reactormonk Define scaling :P
<reactormonk> prettymuchbryce, but I'm sure you know the term technical dept, so feel free to apply your measures
<reactormonk> prettymuchbryce, > 100k lines
<prettymuchbryce> reactormonk technical debt. yep I know it well.
<prettymuchbryce> reactormonk If you don't like ruby for big applications, what do you like? Java?
egman has joined #ruby
<reactormonk> prettymuchbryce, the only big application I worked for so far was rails, rather well organized, just the cucumber keywords were out of bounds.
<egman> #mongo
egman has left #ruby [#ruby]
<reactormonk> prettymuchbryce, I have to say I'm kind of intrigued by scala. Might just be a fanboy issue, though :-)
jonahR has joined #ruby
<prettymuchbryce> reactormonk Well I think rails can scale, but like every framework it has it's downsides. Anyway. This debate has been had many times by people smarter than me.
<prettymuchbryce> reactormonk I like rails, but I also dislike it sometimes. It's fast. Thats it's main advantage.
oxeote has quit [Ping timeout: 248 seconds]
<reactormonk> prettymuchbryce, fast? We had the issue of it being too slow.
<prettymuchbryce> Fast to develop in. Not performance-wise. :P
<reactormonk> ^^
<reactormonk> Can't say, it's all I've ever used.
<prettymuchbryce> In this industry speed is important.
Jasko has quit [Read error: Connection reset by peer]
<aedorn> I'm glad I don't have to worry about performance, only development time
Jasko has joined #ruby
<prettymuchbryce> I worked with a Java Tomcat server. It was great. Scalable, customizable, but it seemed like it took a long time for the engineers to get stuff done.
<reactormonk> Produce lemming after lemming?
<prettymuchbryce> I wish I had to worry about performance. None of my pet projects seem to get a million views. So when that happens it will be a good day, not a bad one. :P
adallard has joined #ruby
ananthakumaran has joined #ruby
pen has quit [Read error: Connection reset by peer]
<spyzer> prettymuchbryce, lol
vlad_starkov has joined #ruby
<xybre> So, I have a class that needs to compare against strings, or symbols and its optional whether the comparison should be case sensitive. About half the time it would be, and half the time it wouldn't be.
pen has joined #ruby
<xybre> I'm trying to think of a good method API for that.
spyzer has quit [Quit: Leaving]
<xybre> I've used = for normal object state equality and === for case sensetive matches across different types.
<xybre> So I still need a case insensitive variant.
<xybre> Just brainstorming here.
<prettymuchbryce> Why not just convert both to lower case to check for case insensitivity ?
kenneth has quit [Quit: kenneth]
<xybre> Oh I know how to do it, I am just trying to think of a nice way of defining the method API for it.
<prettymuchbryce> Oh i see. Sorry I misunderstood your question.
<xybre> Like `object ==== "string"` if that even works.. its way too similar to the other = comparisons.
bigmac has quit [Remote host closed the connection]
<aedorn> why not =~ and ==? =~ is almost like saying "approximately equates to" and == is more "definitive"
<xybre> I was thinking `object.isometric? 'string'` but that might be weird to inject something like that.
ChrisBolton has quit [Quit: ChrisBolton]
vlad_starkov has quit [Ping timeout: 248 seconds]
<xybre> I was considering =~ but I'm concerned about clobbering the regex comparisons.
<xybre> Hmm.
<xybre> I could overload it with strings being case insensetive.. and regexes treated normal..
Solnse2 has joined #ruby
* xybre feels like that might violent the principal of least surprise though
<xybre> er
<xybre> violate^
<aedorn> oh, yeah if you can do regex matching then no, don't do that
<xybre> I haven't seen ==? before
Solnse has quit [Disconnected by services]
ninegrid_ has quit [Ping timeout: 248 seconds]
Solnse2 is now known as Solnse
sayan has joined #ruby
<xybre> Oh, heh, misunderstood the sentence, :D
freeayu has joined #ruby
<aedorn> do you need eql? or equal? ?
ecksit has joined #ruby
<ecksit> hey guys, having a small syntax issue - https://gist.github.com/00279c2749e202a82d6d . any ideas?
<xybre> equal checks object_id, probably shouldn't touch that one, eql checks type and value normally.
<aedorn> trying to think of in context of what would be 'expected' behavior.. but you might not be able to get away with anything like that
<prettymuchbryce> ecksit Isn't it just require 'sinatra' ?
<xybre> Oo, maybe just ~? It's typically a bitwise operator, but I don't think it'll clobber anything I'd use it for.
<xybre> Dammit, its a prefix operator. :(
<ecksit> prettymuchbryce: i thought it was sinatra/base but let me see.
<xybre> So it calls itself on the object that *follows* the operator, not the one that preceeds it.
<prettymuchbryce> The server doesn't start for me if I use sinatra/base.
<ecksit> sinatra/base was working however then i updated to 1.9.2
<ecksit> let me just update my gems also
<ecksit> i am using rackup for my webserver
fomatin has joined #ruby
<xybre> Unary + and minus is kind of neat though, hadn't seen though before. They're prefix operators.
yshh has joined #ruby
<prettymuchbryce> I don't see any syntactical issues with your code. What is the error that you are getting ?
<ecksit> https://gist.github.com/00279c2749e202a82d6d - added it to the bottom
<prettymuchbryce> I think the way you're defining your objects is wrong.
<prettymuchbryce> That looks javascripty.
<prettymuchbryce> I think its title => "matrix", url => "blah"
<prettymuchbryce> => in place of :
<prettymuchbryce> try that
maletor has quit [Quit: Computer has gone to sleep.]
<ecksit> nope
dmiller has joined #ruby
<ecksit> appears to be that require that is causing the issue
<ecksit> even using ruby -rubygems app.rb fails https://gist.github.com/00279c2749e202a82d6d
xyzodiac has joined #ruby
<ecksit> (tried both sinatra/base and just sinatra)
charliesome has joined #ruby
<prettymuchbryce> It might be an issue with your ruby version or gem versions. If I run it with sinatra/base it just ends without error.
Coeus has quit [Ping timeout: 255 seconds]
<prettymuchbryce> If I run it with sinatra, it starts up normally with no errors.
<prettymuchbryce> I don't know much about rackup.
<ecksit> i used rvm to update to 1.9.2 - might try rolling bac
<ecksit> back*
<prettymuchbryce> I am on 1.9.3
djdb has joined #ruby
<ecksit> let me update then
<ecksit> did it start up for you?
dmiller has quit [Ping timeout: 255 seconds]
<prettymuchbryce> it just ends with no error if I use base.
<prettymuchbryce> I think because I am not doing something to keep it running.. I'm not sure.
<prettymuchbryce> It's just defining the App class and doing nothing would be my guess.
miskander has joined #ruby
<prettymuchbryce> Something about rackup makes it different.
<prettymuchbryce> It's not throwing errors, though.
<ecksit> can you try and add a config.ru file to that dir with https://gist.github.com/40e0d5e88aa6b576409a for the contents?
<ecksit> then just run 'rackup' in the terminal?
yshh has quit [Remote host closed the connection]
<prettymuchbryce> okay I'm seeing your issue now
<prettymuchbryce> I'm looking at it
<ecksit> oh cool.
s0ber has quit [Read error: Connection reset by peer]
s0ber_ has joined #ruby
s0ber_ is now known as s0ber
kenneth has joined #ruby
<prettymuchbryce> Okay i figured it out
<prettymuchbryce> create a file named Gemfile in the directory
<prettymuchbryce> then run bundle exec rackup
<prettymuchbryce> put gem 'sinatra-base' in the file
<prettymuchbryce> I do think there might be an issue with your hash though. I think in some ruby versions using colons like that is okay and some its not. I'm not totally sure.
<ecksit> odd.
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
<ecksit> awesome work though! thanks.
<prettymuchbryce> The reason is "Not every library has a strict mapping between the name of the gem and the name of the file you need to require."
Gadgetoid has quit [Ping timeout: 246 seconds]
yeltzooo has quit [Ping timeout: 246 seconds]
medik has quit [Ping timeout: 240 seconds]
<prettymuchbryce> I don't know.
<prettymuchbryce> I think perhaps it's because the gem is named sinatra-base but the require is sinatra/base ?
chriskk has quit [Quit: chriskk]
echosystm has joined #ruby
<echosystm> when creating a block such as { |i| puts i }
<echosystm> is there any default variable that can be used for the first parameter, thus removing the need for |i| ?
Catnaroek has quit [Quit: leaving]
cheez0r has quit [Ping timeout: 246 seconds]
yeltzooo has joined #ruby
miskander has quit [Quit: miskander]
io_syl has quit [Quit: Computer has gone to sleep.]
fomatin has quit [Quit: Computer has gone to sleep.]
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
tommyvyo_ has joined #ruby
sayan has quit [Read error: Connection reset by peer]
io_syl has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
amacgregor_osx_ has joined #ruby
cheez0r has joined #ruby
Gadgetoid has joined #ruby
miskander has joined #ruby
<echosystm> hilarious
r126l has quit [Ping timeout: 246 seconds]
Beoran_ has quit [Ping timeout: 246 seconds]
<prettymuchbryce> I'm just kidding, but I don't know the answer. I would think not.
<prettymuchbryce> A lot of languages have something similar in for loops.
<echosystm> groovy has "it"
<prettymuchbryce> people just use i and j since the beginning of (epoch)time
Nisstyre-laptop has joined #ruby
<Boohbah> lol
<echosystm> perl has... various insanity
<echosystm> ruby must have something too
amacgregor_osx has quit [Ping timeout: 255 seconds]
Juul has quit [Ping timeout: 255 seconds]
Beoran_ has joined #ruby
frogstarr78 has quit [Ping timeout: 246 seconds]
miskander has quit [Quit: miskander]
<prettymuchbryce> I really don't think so echosystm.
<prettymuchbryce> You could use it if you like.
r126l has joined #ruby
<prettymuchbryce> list.each do |it| puts it end
BoomCow has joined #ruby
<echosystm> ok time for bed
<echosystm> thanks anyway
echosystm has quit [Quit: leaving]
KRF has quit [Ping timeout: 246 seconds]
peter1 has quit [Ping timeout: 246 seconds]
ixx has quit [Ping timeout: 246 seconds]
KRF has joined #ruby
vlad_starkov has joined #ruby
frogstarr78 has joined #ruby
mjolk has quit [Quit: returning some videotapes]
amacgregor_osx_ has quit [Ping timeout: 245 seconds]
marknyc has quit []
BoomCow has quit [Quit: This computer has gone to sleep]
ixx has joined #ruby
ixx is now known as Guest17706
amacgregor_osx has joined #ruby
dbrgn has quit [Ping timeout: 246 seconds]
dbrgn_ has joined #ruby
sayan has joined #ruby
emdub has quit [Ping timeout: 246 seconds]
rippa has joined #ruby
emdub has joined #ruby
msch has quit [Ping timeout: 246 seconds]
Gurpartap has joined #ruby
Roa has quit [Ping timeout: 246 seconds]
Roa has joined #ruby
Roa has joined #ruby
Roa has quit [Changing host]
dmiller has joined #ruby
Solnse has quit []
robustus has quit [Ping timeout: 255 seconds]
vlad_starkov has quit [Remote host closed the connection]
Solnse has joined #ruby
UdontKnow has quit [Ping timeout: 246 seconds]
autumn has quit [Remote host closed the connection]
robustus has joined #ruby
atyz has joined #ruby
dmiller has quit [Ping timeout: 264 seconds]
UdontKnow has joined #ruby
UdontKnow has joined #ruby
UdontKnow has quit [Changing host]
koshii has joined #ruby
yshh has joined #ruby
elico has quit [Quit: Elico]
Gurpartap has quit [Ping timeout: 245 seconds]
amacgregor_osx has quit [Ping timeout: 265 seconds]
Catnaroek has joined #ruby
amacgregor_osx has joined #ruby
rawGem has joined #ruby
moshee has quit [Ping timeout: 248 seconds]
moshee has joined #ruby
moshee has joined #ruby
Hanmac1 is now known as Hanmac
jasonh has joined #ruby
<jasonh> is there a way to automatically generate a Gemfile from ruby code that has requires in it?
mercwithamouth has quit [Ping timeout: 255 seconds]
megharsh has quit [Quit: WeeChat 0.3.9.2]
Axsuul has quit [Ping timeout: 252 seconds]
hamed_r has joined #ruby
browndawg has joined #ruby
apeiros_ has quit [Remote host closed the connection]
ecksit has quit [Quit: Gone to sleep.]
Catnaroek has quit [Quit: leaving]
mercwithamouth has joined #ruby
pasties has quit [Ping timeout: 246 seconds]
pasties has joined #ruby
alanjc has quit [Quit: Leaving]
zmisc has quit [Quit: Lost terminal]
yacks has quit [Ping timeout: 252 seconds]
<reactormonk> jasonh, nope
<reactormonk> jasonh, man up and write your Gemfile on your own ;-)
yshh has quit [Remote host closed the connection]
lazyguru has quit [Ping timeout: 246 seconds]
* Hanmac thinks there should be some gemfile-generator
<reactormonk> Hanmac, well, it can only guess
lazyguru has joined #ruby
<reactormonk> Hanmac, and it needs to download every possible gem from rubygems - or are the filelists indexed?
elico has joined #ruby
cj3kim has joined #ruby
<Hanmac> reactormonk i mean like an bash program like: "Autor: <there you input>"
yshh has joined #ruby
<reactormonk> Hanmac, isn't that gemspec?
ananthakumaran1 has joined #ruby
<Hanmac> yeah that what i mean
kmurph has quit [Quit: kmurph]
ananthakumaran has quit [Ping timeout: 265 seconds]
elico has quit [Quit: elico]
vlad_starkov has joined #ruby
pen has quit [Read error: Connection reset by peer]
tommyvyo_ has quit [Quit: Computer has gone to sleep.]
pen has joined #ruby
kayloos has joined #ruby
kayloos has quit [Client Quit]
kayloos has joined #ruby
mpfundstein has quit [Ping timeout: 245 seconds]
tommyvyo_ has joined #ruby
dmiller has joined #ruby
tommyvyo_ has quit [Client Quit]
dmiller has quit [Ping timeout: 260 seconds]
cj3kim has quit [Quit: This computer has gone to sleep]
yacks has joined #ruby
vlad_sta_ has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
elico has joined #ruby
nomenkun has joined #ruby
emmanuelux has quit [Quit: emmanuelux]
mercwithamouth has quit [Ping timeout: 248 seconds]
jds has joined #ruby
nomenkun has quit [Remote host closed the connection]
LouisGB has joined #ruby
jds has quit [Ping timeout: 244 seconds]
DrShoggoth has quit [Quit: Leaving]
regedarek has quit [Ping timeout: 260 seconds]
regedarek has joined #ruby
prettymuchbryce has left #ruby [#ruby]
Beoran__ has joined #ruby
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
toekutr has quit [Remote host closed the connection]
Beoran_ has quit [Ping timeout: 250 seconds]
kmurph has joined #ruby
scruple has joined #ruby
Guest25886 has joined #ruby
nomenkun has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
wargasm1 has quit [Ping timeout: 260 seconds]
vlad_sta_ has quit [Remote host closed the connection]
pen has quit [Read error: Connection reset by peer]
pen has joined #ruby
sayan has quit [Read error: Connection reset by peer]
elico has quit [Remote host closed the connection]
ebouchut has joined #ruby
mahmoudi_ has quit [Quit: Computer has gone to sleep.]
nemesit has joined #ruby
peter1 has joined #ruby
solidresolve has quit [Remote host closed the connection]
solidresolve has joined #ruby
jduan1981 has quit [Quit: jduan1981]
Astral_ has joined #ruby
zastern has quit [Remote host closed the connection]
rockets has joined #ruby
Astralum has quit [Ping timeout: 252 seconds]
dmiller has joined #ruby
chrismcg is now known as zz_chrismcg
msch has joined #ruby
skcin7 has joined #ruby
skcin7 has quit [Client Quit]
dmiller has quit [Read error: Operation timed out]
rockets has quit [Remote host closed the connection]
hamed_r has quit [Ping timeout: 252 seconds]
nomenkun has quit [Read error: Connection reset by peer]
nomenkun has joined #ruby
amacgregor_osx has quit [Ping timeout: 265 seconds]
daniel_-_ has joined #ruby
amacgregor_osx has joined #ruby
francisfish has joined #ruby
heftig has quit [Quit: leaving]
elico has joined #ruby
elico has quit [Client Quit]
marr has joined #ruby
ebouchut has quit [Quit: This computer has gone to sleep]
Spaceghostc2c has quit [Excess Flood]
Neomex has joined #ruby
koshii has quit [Ping timeout: 248 seconds]
Takehiro has quit [Remote host closed the connection]
amacgregor_osx has quit [Read error: Operation timed out]
Spaceghostc2c has joined #ruby
ikaros has joined #ruby
yacks has quit [Ping timeout: 248 seconds]
yacks has joined #ruby
daniel_-_ has quit [Ping timeout: 252 seconds]
havenn has joined #ruby
amacgregor_osx has joined #ruby
lobak_ has quit [Remote host closed the connection]
Banistergalaxy has quit [Ping timeout: 248 seconds]
sayan has joined #ruby
statarb3 has joined #ruby
atmosx has joined #ruby
wchun has quit [Quit: Leaving]
Banistergalaxy has joined #ruby
lobak has joined #ruby
havenn has quit [Ping timeout: 252 seconds]
wchun has joined #ruby
tommyvyo_ has joined #ruby
ChrisBolton has joined #ruby
vlad_starkov has joined #ruby
cableray has quit [Quit: cableray]
amacgregor_osx has quit [Read error: Operation timed out]
mrdtt has quit [Quit: mrdtt]
adambeynon has joined #ruby
statarb3 has quit [Read error: Connection reset by peer]
kmurph has quit [Quit: kmurph]
kmurph has joined #ruby
lkba has quit [Ping timeout: 265 seconds]
amacgregor_osx has joined #ruby
Astral_ has quit [Read error: Connection reset by peer]
Astral_ has joined #ruby
dmiller has joined #ruby
banister_ has joined #ruby
marr has quit []
banister`sleep has quit [Ping timeout: 248 seconds]
ChrisBolton has quit [Quit: ChrisBolton]
rakl has quit [Quit: sleeping]
tianchaos1 has joined #ruby
tianchaos1 is now known as tianchaos
assurbanipal has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
dmiller has quit [Ping timeout: 265 seconds]
vlad_starkov has joined #ruby
eldariof has joined #ruby
tianchaos has quit [Ping timeout: 260 seconds]
yacks has quit [Ping timeout: 245 seconds]
pskosinski has joined #ruby
regedarek has quit [Ping timeout: 260 seconds]
regedarek has joined #ruby
vonsar has joined #ruby
tianchaos has joined #ruby
tianchaos has quit [Read error: Connection reset by peer]
ruzu has quit [Read error: Connection reset by peer]
tommyvyo_ has quit [Quit: Computer has gone to sleep.]
rakl has joined #ruby
blacktulip has joined #ruby
hamed_r has joined #ruby
jgrevich has quit [Quit: jgrevich]
blacktulip has quit [Remote host closed the connection]
blacktulip has joined #ruby
kmurph has quit [Quit: kmurph]
Nisstyre-laptop has quit [Ping timeout: 264 seconds]
cirwin has joined #ruby
woolite64 has quit [Ping timeout: 252 seconds]
Neomex has quit [Quit: Neomex]
wpp has joined #ruby
amacgregor_osx has quit [Ping timeout: 255 seconds]
banister_ has quit [Remote host closed the connection]
daed has quit [Ping timeout: 260 seconds]
daed has joined #ruby
jbw has quit [Read error: Connection timed out]
jbw has joined #ruby
lkba has joined #ruby
ebouchut has joined #ruby
amacgregor_osx has joined #ruby
JarJar has joined #ruby
Solnse has quit [Ping timeout: 248 seconds]
arturaz has joined #ruby
ToTo has joined #ruby
emocakes has joined #ruby
Astral has joined #ruby
Astral has quit [Client Quit]
tommyvyo_ has joined #ruby
marr has joined #ruby
francisfish has quit [Remote host closed the connection]
EhyehAsherEhyeh has joined #ruby
pen has quit [Remote host closed the connection]
<atmosx> don't you love the error messages when they are like that: Haml::SyntaxError: You don't need to use "- end" in Haml. Un-indent to close a block:
hamed_r has quit [Ping timeout: 255 seconds]
assurbanipal has quit [Remote host closed the connection]
banister`sleep has joined #ruby
dmiller has joined #ruby
<wpp> atmosx: yeah i do :D
wallerdev has quit [Quit: wallerdev]
heftig has joined #ruby
Jasko has quit [Read error: Connection reset by peer]
sie has quit [Ping timeout: 265 seconds]
Jasko has joined #ruby
tommyvyo_ has quit [Quit: Computer has gone to sleep.]
dmiller has quit [Ping timeout: 244 seconds]
<atmosx> hehe me too :-P
ToTo has quit [Ping timeout: 265 seconds]
banister`sleep has quit [Remote host closed the connection]
txdv has quit [Read error: Connection reset by peer]
txdv_ has joined #ruby
snowflight has joined #ruby
Raven_ has joined #ruby
tommyvyo_ has joined #ruby
<Paradox> atmosx, you might want to look into SLIM
<Paradox> its a lot like haml
<Paradox> but its a bit less derp about some things
tommyvyo_ has quit [Client Quit]
<Paradox> like multi-line textual content
<Paradox> or whitespace
<atmosx> I already took a look at slim and it's good for what I want… but now I have done everythin gin haml
<Paradox> it doesn't seem to fuck up whitespace as much as haml does with its alligators
<Paradox> no matter how many alligators you throw at something
<Paradox> they dont eat all the white space
<Paradox> haml is nice though
Raven_ has quit [Client Quit]
<Paradox> infinitely better than erb
<atmosx> and I'm not really fluid with HTML/CSS to begin with so, it's not trivial for me to change language
<Paradox> if you know haml you know slim
<Paradox> basically
<atmosx> hmm okay I'll have a look at slim. Seems pretty easy after all.
<Paradox> just drop the %
<Paradox> there are some other differences
ejnahc has quit [Remote host closed the connection]
<Paradox> but thats the largest one
<atmosx> I see
mengu has joined #ruby
Virunga has joined #ruby
ejnahc has joined #ruby
<Paradox> other things like the automatic whitespace and whatnot are really useful
<Paradox> all too often i found myself having to do a + " " in haml
sepp2k has joined #ruby
<Paradox> slim is also a fuckload faster than haml
Proshot has joined #ruby
Proshot is now known as statarb3
statarb3 has quit [Changing host]
statarb3 has joined #ruby
ebouchut has quit [Quit: This computer has gone to sleep]
moshee has quit [Ping timeout: 255 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
koshii has joined #ruby
atyz has quit [Quit: Leaving...]
havenn has joined #ruby
samphippen has joined #ruby
banister`sleep has joined #ruby
ebouchut has joined #ruby
<wpp> Paradox: is it well supported in rails?
<Paradox> wpp, slim?
<Paradox> very
<Paradox> it even has generators
<Paradox> so you can use it to generate your stuff
<wpp> Paradox: awesome
<Paradox> if you add the 'slim-rails' gem
<Paradox> all your new generations have slim instead of erb templates
_64k has joined #ruby
havenn has quit [Ping timeout: 250 seconds]
<wpp> Just read my RubyWeekly which linked to a github discussion about the binstubs thing, anyone followed that? Could someone explain what they were discussing?
iNerd has joined #ruby
<iNerd> ahh. hello.
atyz has joined #ruby
<wpp> upps thought this was the rails irc. nevermind
jfl0wers_ has joined #ruby
Virunga has quit [Remote host closed the connection]
<Paradox> so nice
<Paradox> get rid of kludgy sql from your where()s
francisfish has joined #ruby
Guedes has quit [Ping timeout: 265 seconds]
xemu has joined #ruby
Guedes has joined #ruby
<iNerd> urgh. I don't suppose anyone knows anything about haml? that channel is somewhat slow -_-
francisfish has quit [Remote host closed the connection]
browndawg has quit [Quit: Leaving.]
arturaz has quit [Ping timeout: 255 seconds]
dmiller has joined #ruby
JarJar has left #ruby ["Leaving"]
vlad_starkov has quit [Remote host closed the connection]
Mary2012 has joined #ruby
<Mary2012> ciao
<Mary2012> !list
<Mary2012> Mary2012: No warez here! This is not a file sharing channel (or network); read the channel topic. If you're looking for information about me, type « /msg ubottu !bot ». If you're looking for a channel, see « /msg ubottu !alis ».
Mary2012 has left #ruby [#ruby]
dmiller has quit [Ping timeout: 265 seconds]
samuel02 has joined #ruby
Virunga has joined #ruby
rakl has quit [Quit: sleeping]
kuranai_off is now known as kuranai
daniel_-_ has joined #ruby
phelps has joined #ruby
Umren has joined #ruby
GeekOnCoffee has quit [Ping timeout: 276 seconds]
ebouchut has quit [Quit: This computer has gone to sleep]
atyz has quit [Quit: Leaving...]
reppard has joined #ruby
GeekOnCoffee has joined #ruby
assurbanipal has joined #ruby
postmodern has quit [Quit: Leaving]
rakl has joined #ruby
Slivka has joined #ruby
malte_ has joined #ruby
atyz has joined #ruby
phelps has quit [Ping timeout: 250 seconds]
kennyvb has quit [Ping timeout: 252 seconds]
Juul has joined #ruby
phelps has joined #ruby
jonahR has quit [Quit: jonahR]
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
GeekOnCoffee has quit [Ping timeout: 248 seconds]
ltsstar has joined #ruby
Morkel has joined #ruby
GeekOnCoffee has joined #ruby
phelps has quit [Ping timeout: 265 seconds]
phelps has joined #ruby
darthdeus has joined #ruby
GeekOnCoffee has quit [Ping timeout: 245 seconds]
kennyvb has joined #ruby
ToTo has joined #ruby
emsilva has joined #ruby
phelps has quit [Ping timeout: 250 seconds]
browndawg has joined #ruby
Slivka has quit [Remote host closed the connection]
evelyette has joined #ruby
<evelyette> hi
<evelyette> I'm having problems installing this: https://github.com/TracksApp/tracks/wiki/Ubuntu-11.04-minimal-setup
phelps has joined #ruby
eka has quit [Ping timeout: 250 seconds]
<evelyette> script/server
<evelyette> /home/eleanor/.gem/ruby/1.9.1/gems/bundler-1.2.3/lib/bundler.rb:263: warning: Insecure world writable dir /home/user/dex2jar-0.0.9.11/ in PATH, mode 040777
<evelyette> git://github.com/lrbalt/cache_digests.git (at master) is not checked out. Please run `bundle install`
<evelyette> any ideas ?
<evelyette> I've run bundle install but nothing is changed
eka has joined #ruby
snowflight has quit [Quit: snowflight]
GeekOnCoffee has joined #ruby
_64k has quit [Quit: _64k]
jds has joined #ruby
cdt has joined #ruby
emmanuelux has joined #ruby
neurotech has quit [Remote host closed the connection]
phelps has quit [Ping timeout: 255 seconds]
GeekOnCoffee has quit [Ping timeout: 276 seconds]
dmiller has joined #ruby
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
yshh has quit [Remote host closed the connection]
phelps has joined #ruby
snowflight has joined #ruby
spinagon has joined #ruby
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
rippa has quit [Read error: Connection reset by peer]
dmiller has quit [Ping timeout: 245 seconds]
<shevy> evelyette first thing you could do is change permissions
phelps has quit [Ping timeout: 252 seconds]
<shevy> second thing is to ask the guys on #bundler, they know most about bundler
wermel has joined #ruby
Kuifje has joined #ruby
Kuifje has quit [Changing host]
Kuifje has joined #ruby
krz has joined #ruby
cdt has quit [Ping timeout: 248 seconds]
banister`sleep has quit [Remote host closed the connection]
phelps has joined #ruby
_64k has joined #ruby
rakl has quit [Quit: sleeping]
spinagon has quit [Ping timeout: 240 seconds]
Goles has joined #ruby
s1n4 has joined #ruby
Markvilla has joined #ruby
_64k has quit [Quit: _64k]
phelps has quit [Ping timeout: 255 seconds]
cdt has joined #ruby
cdt has quit [Remote host closed the connection]
seanstickle has joined #ruby
s1n4 has quit [Quit: leaving]
freeayu has quit [Remote host closed the connection]
phelps has joined #ruby
Tuplanolla has joined #ruby
baphled has joined #ruby
<Tuplanolla> How can I restrict what can be accessed through a binding? I'm trying to only pass certain variables to ERB.
havenn has joined #ruby
<Tuplanolla> Here's an example: http://ideone.com/O6Dw4B
phelps has quit [Ping timeout: 260 seconds]
<Hanmac> Tuplanolla: look at #rubyonrails but i dont think you could block global variables
atyz has quit [Quit: Leaving...]
<Tuplanolla> How is Rails related, Hanmac?
<Hanmac> join /#erb
_64k has joined #ruby
phelps has joined #ruby
<Hanmac> hm ok erb does not have its own channel
rakl has joined #ruby
havenn has quit [Ping timeout: 248 seconds]
jimeh has joined #ruby
<Tuplanolla> If the only thing that can be accessed through the template is globals then I could just not use them.
Slivka has joined #ruby
_64k has quit [Client Quit]
phelps has quit [Ping timeout: 245 seconds]
atyz has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
samphippen has quit [Ping timeout: 250 seconds]
ewag has quit [Ping timeout: 260 seconds]
phelps has joined #ruby
koshii has quit [Ping timeout: 252 seconds]
samphippen has joined #ruby
nomenkun_ has joined #ruby
GeekOnCoffee has joined #ruby
medik has joined #ruby
medik has quit [Excess Flood]
medik has joined #ruby
medik has quit [Excess Flood]
Guest13242 has joined #ruby
Guest13242 has quit [Excess Flood]
phelps has quit [Ping timeout: 260 seconds]
Guest13242 has joined #ruby
Guest13242 has quit [Excess Flood]
Guest13242 has joined #ruby
Guest13242 has quit [Excess Flood]
nomenkun has quit [Ping timeout: 244 seconds]
mpfundstein has joined #ruby
Guest13242 has joined #ruby
Guest13242 has quit [Excess Flood]
Guest13242 has joined #ruby
_64k has joined #ruby
matip_ has quit [Read error: Connection reset by peer]
matip_ has joined #ruby
phelps has joined #ruby
mlue has quit [Ping timeout: 244 seconds]
dmiller has joined #ruby
Guest13242 has quit [Ping timeout: 240 seconds]
_nitti has joined #ruby
ikaros has quit [Quit: Ex-Chat]
Juul has quit [Ping timeout: 248 seconds]
phelps has quit [Ping timeout: 245 seconds]
nomenkun has joined #ruby
nomenkun_ has quit [Ping timeout: 248 seconds]
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
dmiller has quit [Ping timeout: 265 seconds]
snowflight has quit [Quit: snowflight]
daniel_-_ has quit [Ping timeout: 252 seconds]
atno has quit [Read error: Connection reset by peer]
Juul has joined #ruby
rakl has quit [Quit: sleeping]
vlad_starkov has joined #ruby
mlue has joined #ruby
mlue has quit [Changing host]
mlue has joined #ruby
phelps has joined #ruby
banister`sleep has joined #ruby
<shevy> I found templates really ugly
atyz has quit [Quit: Leaving...]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
mpfundstein has quit [Ping timeout: 250 seconds]
pothibo has joined #ruby
iNerd has left #ruby [#ruby]
_64k has quit [Quit: _64k]
banister`sleep has quit [Remote host closed the connection]
_nitti has quit [Remote host closed the connection]
atyz has joined #ruby
mercwithamouth has joined #ruby
ToTo has quit [Quit: Leaving...]
wpp has quit [Quit: wpp]
emmanuelux has quit [Ping timeout: 248 seconds]
phelps has quit [Ping timeout: 255 seconds]
medik_ has joined #ruby
medik_ has quit [Excess Flood]
reppard has quit [Ping timeout: 244 seconds]
medik_ has joined #ruby
phelps has joined #ruby
<pothibo> I'm not that comfortable with module and class methods, but I thought that this should work: https://gist.github.com/27a232159e65a13797e8 register_menu_for doesn't throw an exception but if I put a print "Hello" in the methods, nothing is printed. ideas?
tjbiddle has joined #ruby
xemu has quit [Ping timeout: 248 seconds]
<waxjar> i think you mean include on line 2 in navigationhelper.rb
jimeh has quit [Quit: Computer has gone to sleep.]
phelps has quit [Ping timeout: 250 seconds]
<waxjar> sorry, you need an extra end there
Juul has quit [Quit: Leaving]
arturaz has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<pothibo> waxjar: not sure what you mean
<pothibo> oh, yeah, typo
<waxjar> pothibo, right now you're not closing one of the modules.
sayan has quit [Quit: Leaving]
<waxjar> class methods go trough extend, btw, instance methods trough include
sayan has joined #ruby
<pothibo> waxjar: oh
<pothibo> that was my problem :/
LineByLine has joined #ruby
<pothibo> so I have to use the self.included(base) base.extend(ClassMethods) end ?
<pothibo> yup, it did it :) Thank you
reppard has joined #ruby
phelps has joined #ruby
Russell^^ has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
phelps has quit [Ping timeout: 260 seconds]
kjellski has joined #ruby
pen has joined #ruby
phelps has joined #ruby
_64k has joined #ruby
kjellski has quit [Ping timeout: 264 seconds]
arkiver has joined #ruby
LineByLine has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
reppard has quit [Ping timeout: 248 seconds]
michaelhf has joined #ruby
kjellski has joined #ruby
thone has joined #ruby
<shevy> more ruby ruby ruby
<waxjar> ah ha ha ha aah haaa, do ya do ya do ya do yaa
thone_ has quit [Ping timeout: 250 seconds]
kjellski has quit [Quit: This computer has gone to sleep]
benlieb has joined #ruby
dmiller has joined #ruby
banister`sleep has joined #ruby
phelps has quit [Ping timeout: 255 seconds]
reppard has joined #ruby
Jasko has quit [Read error: Connection reset by peer]
koshii has joined #ruby
Jasko has joined #ruby
dmiller has quit [Ping timeout: 260 seconds]
sailias has joined #ruby
phelps has joined #ruby
lenovodroid has joined #ruby
sailias has quit [Client Quit]
sailias has joined #ruby
pmros has joined #ruby
phelps has quit [Read error: Operation timed out]
xAndy is now known as xandy
reppard has quit [Ping timeout: 244 seconds]
xemu has joined #ruby
xandy is now known as xAndy
Liothen has quit [Remote host closed the connection]
phelps has joined #ruby
ksk has quit [Remote host closed the connection]
koshii has quit [Ping timeout: 252 seconds]
daniel_-_ has joined #ruby
mrdtt has joined #ruby
phelps has quit [Ping timeout: 260 seconds]
pmros has quit [Quit: Konversation terminated!]
AndChat| has joined #ruby
phelps has joined #ruby
Banistergalaxy has quit [Ping timeout: 248 seconds]
atmosx has quit [Quit: Computer has gone to sleep.]
_64k has quit [Quit: _64k]
francisfish has joined #ruby
<matip_> is there a way to delete an object to free the memory used?
hoelzro|away is now known as hoelzro
<hoelzro> matip_: you just need to remove all references to it
<hoelzro> the GC will take care of the rest
phelps has quit [Ping timeout: 255 seconds]
_64k has joined #ruby
havenn has joined #ruby
<matip_> remove all reference? do you mean foo = nil ?
hybris has joined #ruby
<matip_> hoelzro ^
<shevy> matip_ I think setting a variable to nil is not enough
<matip_> that's why I'm asking
<matip_> I have a script supposed to run all day
francisfish has quit [Remote host closed the connection]
<matip_> but it's eating memory as crazy
<hoelzro> shevy: how do you suppose that?
elaptics`away is now known as elaptics
<shevy> hoelzro I don't think it is possible without traversing through ObjectSpace
<hoelzro> shevy: if you have several references to an object, maybe
<hoelzro> if you have one, setting foo = nil will be enough
<hoelzro> also, traversing ObjectSpace probably won't work 100% of the time
<shevy> matip_, here is the limited control you get over GC http://www.ruby-doc.org/core-1.9.3/GC.html
<shevy> this is the most important one.. GC.disable hahaha :D
samuel02 has quit [Read error: Connection reset by peer]
<matip_> lol
daniel_-_ has quit [Ping timeout: 252 seconds]
<hoelzro> playing with the GC probably won't help
<shevy> oh... and .stat, this one I have not tried before hmm
matrixise has quit [Remote host closed the connection]
<hoelzro> matip_: you should probably make sure that you're not keeping references around accidentally
<hoelzro> or creating a bunch of symbols dynamically
<matip_> I don't
<matip_> it's reusing the variables
<hoelzro> also, fragmentation may be the culprit
<hoelzro> and on top of that, I'm not sure how good Ruby is about returning allocated memory to the OS
phelps has joined #ruby
jds has quit [Remote host closed the connection]
<matip_> loop do foo = whatever.new; foo.bar end
<hoelzro> matip_: would you be willing to paste the code somewhere?
sambio has joined #ruby
<shevy> matip_ hmm that code alone should not be leaky
<matip_> I'm using some libraries, maybe the problem is not in my code actually
<shevy> :)
<shevy> or you have a huge hash somewhere
<hoelzro> that could also be responsible
<matip_> ah, wait. I intensively use the gem stanford-core-nlp
xyzodiac has joined #ruby
ruzu has joined #ruby
ruzu has quit [Changing host]
ruzu has joined #ruby
<matip_> which is a bind to the java lib
<matip_> is it somehow more inefficient?
michaelhf has quit [Remote host closed the connection]
phelps has quit [Ping timeout: 260 seconds]
reppard has joined #ruby
pwelch has joined #ruby
<ruzu> anyone know if you can send a ctrl-z down ssh?
<hoelzro> ruzu: try <Enter>~?
phelps has joined #ruby
reppard has quit [Ping timeout: 248 seconds]
<matip_> 400MB in 10 seconds, +2MB/s after that lool
<banister`sleep> matip_: do u really think you deserve internet that fast
<matip_> uh?
atmosx has joined #ruby
<matip_> banister`sleep, it's not the speed of my connection but the amount of memory a script uses :P
jrajav has joined #ruby
michaelhf has joined #ruby
arietis has joined #ruby
phelps has quit [Ping timeout: 245 seconds]
mercwithamouth has quit [Ping timeout: 252 seconds]
<matip_> hoelzro, shevy: here is a simplified example of the code http://paste.kde.org/633200/ , 800MB as soon as you launch it!!
<matip_> the only place in which there is maybe a lake is in the .new, but I'm reusing the variable, why does it keep increasing?
<hoelzro> matip_: it doesn't matter if you re-use the variable; you're still creating new objects
<matip_> sure
<matip_> but I don't longer have the reference to the old object
<matip_> it should be removed
<hoelzro> true
<hoelzro> it should
<matip_> it's not being removed it seems
<hoelzro> well, it could be
<hoelzro> but it's interfacing with Java, which may not be behaving itself
<matip_> same problem here: http://paste.kde.org/633206
yacks has joined #ruby
koshii has joined #ruby
phelps has joined #ruby
arkiver has quit [Ping timeout: 264 seconds]
<hoelzro> so it's probably the constructor for StanfordCoreNLP.new
<matip_> you mean StanfordCoreNLP::Annotation.new ?
teh4 has joined #ruby
<matip_> I don't fully understand how the bridge works. there's no Annotation defined in https://github.com/louismullie/stanford-core-nlp/blob/master/lib/stanford-core-nlp.rb
<hoelzro> yeah
<hoelzro> I'm guess bind-it has something to do with it
nomenkun_ has joined #ruby
<matip_> ah, it uses const_missing
<matip_> line 185, def self.const_missing(const) \n super(const) \n end
nomenkun has quit [Ping timeout: 248 seconds]
MissionCritical has quit [Ping timeout: 260 seconds]
pen has quit [Remote host closed the connection]
dmiller has joined #ruby
phelps has quit [Ping timeout: 255 seconds]
nomenkun_ has quit [Read error: Connection reset by peer]
slainer68 has quit [Remote host closed the connection]
krz has quit [Quit: krz]
nomenkun has joined #ruby
phelps has joined #ruby
Jasko has quit [Read error: Connection reset by peer]
track7 has quit [Read error: Connection reset by peer]
jds has joined #ruby
Jasko has joined #ruby
dmiller has quit [Ping timeout: 260 seconds]
track7 has joined #ruby
jonathanwallace has quit [Quit: WeeChat 0.3.9.2]
jonathanwallace has joined #ruby
Umren has quit [Ping timeout: 255 seconds]
Drager has quit [Quit: Lost terminal]
Mission-Critical has joined #ruby
phelps has quit [Ping timeout: 252 seconds]
phelps has joined #ruby
otters has quit [Ping timeout: 248 seconds]
jds has quit [Ping timeout: 255 seconds]
Solnse has joined #ruby
malte_ has quit [Quit: malte_]
michaelhf has quit [Remote host closed the connection]
landho has quit [Ping timeout: 248 seconds]
Markvilla has quit [Read error: Connection reset by peer]
Drager has joined #ruby
Drager is now known as Drager
phelps has quit [Ping timeout: 260 seconds]
dmiller has joined #ruby
Mission-Critical is now known as MissionCritical
dmiller has quit [Remote host closed the connection]
Markvilla has joined #ruby
dmiller has joined #ruby
_64k has quit [Quit: _64k]
<ruzu> is capistrano still the in vogue deployment tool?
phelps has joined #ruby
phelps has quit [Remote host closed the connection]
dagnachew has joined #ruby
Slivka has quit [Remote host closed the connection]
philips_ has quit [Excess Flood]
Astral__ has joined #ruby
Astral__ has quit [Read error: Connection reset by peer]
Astral__ has joined #ruby
otters has joined #ruby
Astral has joined #ruby
Astral is now known as Guest67842
eldariof has quit []
Astral_ has quit [Ping timeout: 250 seconds]
Noldorin has joined #ruby
<emocakes> mmm vogue
Virunga has quit [Remote host closed the connection]
Astral__ has quit [Ping timeout: 255 seconds]
pwelch has quit [Quit: pwelch]
koshii has quit [Ping timeout: 264 seconds]
vlad_starkov has quit [Remote host closed the connection]
benlieb has quit [Quit: benlieb]
eldariof has joined #ruby
<pothibo> is it possible to change scope of a proc? For example, I have a helper method that takes a block, now when I call this proc I want the proc to be called in a specific context that includes differnet methods
<Hanmac> pothibo look for instance_eval
philips_ has joined #ruby
<pothibo> thanks!
slainer68 has joined #ruby
Michael has joined #ruby
Michael is now known as Guest97291
estan has left #ruby [#ruby]
mmitchell has joined #ruby
Morkel has quit [Quit: Morkel]
Takehiro has joined #ruby
mrdtt has quit [Quit: mrdtt]
Takehiro has quit [Remote host closed the connection]
kidoz has joined #ruby
reppard has joined #ruby
sambio has quit [Ping timeout: 248 seconds]
eldariof has quit []
koshii has joined #ruby
michaelhf has joined #ruby
benlieb has joined #ruby
sambio has joined #ruby
nomenkun has quit [Read error: Connection reset by peer]
miskander has joined #ruby
nomenkun has joined #ruby
slainer68 has quit [Ping timeout: 255 seconds]
Guest97291 has quit [Remote host closed the connection]
reppard has quit [Read error: Operation timed out]
LyonJT has joined #ruby
friskd has joined #ruby
_64k has joined #ruby
LyonJT has quit [Client Quit]
kirun has joined #ruby
mmitchell has quit [Remote host closed the connection]
dmiller_ has joined #ruby
dagnachew has quit [Remote host closed the connection]
mmitchell has joined #ruby
breakingthings has joined #ruby
<GlenK> so I had a dream about ruby last night. I couldn't talk to anyone or do anythng unless I wrote a ruby script to do so.
<emocakes> ive had that dream before
<emocakes> but with php
<emocakes> it was a nightmare
<GlenK> haha
<emocakes> who am i to complain though, it could have been x86 asm
<emocakes> ;(
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
theRoUS_ has joined #ruby
dmiller has quit [Ping timeout: 265 seconds]
sambio has quit [Ping timeout: 248 seconds]
sambio_ has joined #ruby
emmanuelux has joined #ruby
daniel_-_ has joined #ruby
mpfundstein has joined #ruby
<jrajav> I sometimes have sex dreams where I suddenly feel the need to write a program to run on my partner. Like, literally, ON her. Like her body is an interpreter.
daniel_-_ has quit [Client Quit]
vonsar has quit [Quit: This computer has gone to sleep]
<breakingthings> so uh
<breakingthings> i'm just gonna
<breakingthings> pretend none of this ever happened
<emocakes> mmm steamy jrajav
michaelhf has quit [Remote host closed the connection]
<emocakes> does she support multiple inputs?
<jrajav> I think we're breaking breakingthings
kiyoura has joined #ruby
LyonJT has joined #ruby
miskander has quit [Quit: miskander]
notVert has quit [Ping timeout: 252 seconds]
LineByLine has joined #ruby
tommyvyo_ has joined #ruby
Jasko has quit [Read error: Connection reset by peer]
eka has quit [Quit: Computer has gone to sleep.]
xyzodiac has quit [Quit: Computer has gone to sleep.]
LineByLine has quit [Client Quit]
theRoUS_ has quit [Ping timeout: 245 seconds]
theRoUS has quit [Ping timeout: 265 seconds]
xyzodiac has joined #ruby
_64k has quit [Quit: _64k]
_64k has joined #ruby
reppard has joined #ruby
atyz has quit [Quit: Leaving...]
nomenkun has quit [Remote host closed the connection]
Vert has joined #ruby
daniel_- has joined #ruby
Virunga has joined #ruby
thisirs has joined #ruby
atmosx has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
voodoofish has quit [Quit: Leaving]
joofsh has joined #ruby
Catnaroek has joined #ruby
sayan has quit [Read error: Connection reset by peer]
reppard has quit [Ping timeout: 245 seconds]
Catnaroek has quit [Client Quit]
reppard has joined #ruby
Catnaroek has joined #ruby
daniel_-_ has joined #ruby
voodoofish has joined #ruby
francisfish has joined #ruby
pmros has joined #ruby
whowantstolivef1 has joined #ruby
daniel_- has quit [Ping timeout: 260 seconds]
koshii has quit [Ping timeout: 255 seconds]
<shevy> jrajav awwww I know what you mean... the good old dreams of the old pervy bear
Jasko has joined #ruby
joofsh has quit [Remote host closed the connection]
<shevy> am I the only one to dislike the ternary operator?
<jrajav> No
<jrajav> It should die in a fire
francisfish has quit [Remote host closed the connection]
Michael has joined #ruby
daniel_-_ has quit [Quit: WeeChat 0.3.9.2]
<shevy> most of the time I am using if else, but if I put these on one new line each, I end up with 5 lines in total, versus one for ternary :(
<jrajav> Preferably with all of its loved ones, and after being destroyed physically and emotionally
Michael is now known as Guest49210
snowflight has joined #ruby
<jrajav> You could just not put them on a new line? :P
_64k has quit [Quit: _64k]
<jrajav> Ruby isn't like C-ish langs, it actually returns a value from if-blocks. Use the power given to you!
_64k has joined #ruby
<hoelzro> that's the only reason that Ruby has the ternary operator, I think
<jrajav> What reason?
<hoelzro> compatability with other languages
<jrajav> Oh
<shevy> jrajav yeah I am doing that right now...
Vert has quit [Remote host closed the connection]
<pmros> some people think if-else is code smell, bad code, you know?
<shevy> jrajav lookie: http://pastie.org/5593970
<shevy> pmros some people think the sun rotates around the earth too
<shevy> not a big improvement over ternary :(
<shevy> if I could omit end, it would be better
x82_nicole has joined #ruby
<jrajav> pmros: Wow seriously?
<jrajav> pmros: Oh, are you referring to that dumbass article that went on HN yesterday?
<shevy> if foo
<shevy> do_bla()
<shevy> else
<shevy> do_bla_bla()
<jrajav> Object orient all the things
francisfish has joined #ruby
<shevy> hmm how is this here for a toggle-switch, a flag:
ikaros has joined #ruby
<havenn> Smelling too many smells is a code smell.
<pmros> it's a extremist position, I know
<pmros> but too much conditionals is not good
<seanstickle> pmros: well, that's obvious
<seanstickle> As "too much" is by definition that quantity which is excessive
sayan has joined #ruby
<yfeldblum> pmros, it indeed is a smell
<shevy> I admit it... I hate "end" ...
otters has quit [Remote host closed the connection]
slainer68 has joined #ruby
<seanstickle> flag_variable = flag_variable ? false : true
<seanstickle> :)
<seanstickle> Or
<Hanmac> flag ^= true
tjbiddle has joined #ruby
<seanstickle> flag_variable = !flag_variable
<havenn> Hanmac: Sweet, didn't realize there even was a ^= operator.
<Hanmac> i didnt too :D
francisfish has quit [Remote host closed the connection]
ebouchut has joined #ruby
<jrajav> Yes because flag ^= true is so clear and won't cause any confusion or bugs ever
<jrajav> :P
<Hanmac> yfeldblum: "private :source=, :name=" totaly WHAT?
slainer68 has quit [Ping timeout: 250 seconds]
<shevy> ah
<yfeldblum> Hanmac, declaring the setter methods to be private, so they can be called only by the instance (and typically only in the #initialize constructor)
<shevy> the foo = ! foo toggles it without penalty?
michaelhf has joined #ruby
<yfeldblum> shevy, what penalty?
<hoelzro> shevy: what penalty do you expect?
<jrajav> Yes, it's allowed by the rules of the game
<jrajav> Not even a yellow card
<shevy> dunno, cases where it would not work for instance
<Hanmac> yfeldblum i thought that private forbits to be called with reciver (even self)
tommyvyo_ has quit [Quit: Computer has gone to sleep.]
<shevy> jrajav is in a good mood today
<jrajav> It's literally doing exactly the same thing as flag = flag ? false : true
<hoelzro> Hanmac: only the explicit receiver
<hoelzro> you must implicitly invoke private methods
<havenn> jrajav: I dunno, I think if you want to cause confusion would be good to do something more like: flag_variable ^=! nil
<yfeldblum> Hanmac, private methods suffixed with = (like #source=) are the only exception to that rule
<yfeldblum> shevy, it will work in every case
<shevy> ok
<yfeldblum> shevy, except for your process receiving sigkill
<hoelzro> yfeldblum: seriously?
* hoelzro tries
jds has joined #ruby
<jrajav> How about flag ^= ! def foo; end
<yfeldblum> hoelzro, seriously
Slivka has joined #ruby
<jrajav> >> 'do we still have a bot?'
<eval-in> jrajav: Output: "" (http://eval.in/5539)
_64k has quit [Quit: _64k]
<jrajav> >> flag = true; flag ^= ! def foo; end
<shevy> I think the bot is watching us
<eval-in> jrajav: Output: "" (http://eval.in/5540)
<hoelzro> holy crap.
<jrajav> >> flag = true; puts flag ^= ! def foo; end
<eval-in> jrajav: Output: "false\n" (http://eval.in/5541)
<jrajav> >> flag = false; puts flag ^= ! def foo; end
<eval-in> jrajav: Output: "true\n" (http://eval.in/5542)
<jrajav> ;D
<hoelzro> yfeldblum++
thisirs has quit [Ping timeout: 250 seconds]
<shevy> jrajav can't get off the habit of breaking bots, can you? :P
ruzu has quit [Read error: Connection reset by peer]
rakl has joined #ruby
<jrajav> It was MY bot that was always being broken!
<jrajav> Poor guy
<jrajav> He just wanted to do his job
<jrajav> And maybe love a sexy robot named Eva
<jrajav> And travel the stars
<Hanmac> argh i still forgot to make feature requests for eval.in
<yfeldblum> hoelzro, pmros, anyway the point of that file is an example of very limited use of `if-else` ... actually there's only one else and it's part of a `case-when-when-else`
<jrajav> Hanmac: I hope you'll put one in to, you know, *actually show the result*
<jrajav> >> 'please show me! D:'
<eval-in> jrajav: Output: "" (http://eval.in/5543)
x82_nicole has quit [Quit: Computer has gone to sleep.]
xAndy is now known as xandy
<havenn> Any OP around? Topic needs p362!
<yfeldblum> pmros, nearly all the code is linear, and conditionals are of the break-early or return-early style; very little is nested
atyz has joined #ruby
<shevy> ok now I learned the foo = ! foo thing... now my brain needs to remember it...
<Hanmac> havenn i dont think so ... wasnt 362 be trainted? (i heard about critical segfaults)
<shevy> what is "foo ^= true" doing again?
<Hanmac> the same as your line before
<shevy> it looks like a smiley
<yfeldblum> shevy, `foo = foo ^ true`, which is the XOR binary operator
<shevy> can I take code that is smiling at me seriously? :(
<shevy> aha ok
ruzu has joined #ruby
daniel_- has joined #ruby
<yfeldblum> shevy, binary or boolean operator, not bitwise operator for doing bit-fiddling
hoelzro is now known as hoelzro|away
hoelzro|away is now known as hoelzro
ruzu has quit [Changing host]
ruzu has joined #ruby
<Hanmac> smiling code is nice, but you should avoid code that laughs about you
<shevy> lol
<shevy> that is easy. I just paste that code into #ruby to get the lols
reppard has quit [Ping timeout: 252 seconds]
autumn has joined #ruby
EhyehAsherEhyeh has quit [Ping timeout: 250 seconds]
<Hanmac> you mean something like that? with_object(regex).any?(&:=~) :D
theRoUS_ has joined #ruby
woolite64 has joined #ruby
jds has quit [Remote host closed the connection]
theRoUS has joined #ruby
blacktul_ has joined #ruby
<pmros> I miss _why
Vert has joined #ruby
mpfundstein_home has joined #ruby
ruzu has quit [Quit: Leaving]
dmiller_ has quit [Remote host closed the connection]
jblack has joined #ruby
* hoelzro waves
mfridh has quit [Ping timeout: 250 seconds]
dmiller has joined #ruby
eka has joined #ruby
<seanstickle> _why? Nah, flaky dude.
mfridh has joined #ruby
blacktulip has quit [Ping timeout: 260 seconds]
xandy is now known as xAndy
thecreators has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
Markvilla has quit [Ping timeout: 252 seconds]
fomatin has joined #ruby
pngl has joined #ruby
Catnaroek has quit [Ping timeout: 264 seconds]
whowantstolivef1 has quit [Ping timeout: 260 seconds]
miskander has joined #ruby
<jrajav> He also wrote pretty terrible code apparently
<jrajav> Just goes to show you don't have to be a good programmer to be a great programmer
<shevy> yeah
<shevy> I think it has to do with motivation and speed of your output
snowflight has quit [Quit: snowflight]
<shevy> you can spend years in a large project, doing little improvements, but the real net gains are very small
<shevy> or... you end up abandoning it for bit rot :(
megharsh has joined #ruby
<hoelzro> I think it's about execution of ideas; everyone has good ideas, but few people actually follow through with them
<emocakes> and motivation ^^
<emocakes> if you care about what you are doing, it will be done righ
Guest49210 has quit [Remote host closed the connection]
<hoelzro> someone once told me that it's not about having an idea; it's about being crazy enough to think that you can get that idea working in a reasonable amount of time =)
<emocakes> if you dont care, monkey patching endures
Catnaroek has joined #ruby
<hoelzro> emocakes: very true
<emocakes> i come from php land
<emocakes> and a few months ago
<emocakes> i got given 2 weeks to spit out a fully working rights management app which had organizations, departments, cost centers, permissions(time range based etc etc etc)
danneu has joined #ruby
mpfundstein has quit [Ping timeout: 260 seconds]
<emocakes> ive spent the past 4 months fixing it
<emocakes> pressure :\ && not enough time to plan it out correctly
megharsh has quit [Client Quit]
<shevy> emocakes!!! I like cake... but not emos :(
<swarley> I like emos
<shevy> good old php
<emocakes> shevy, i cut myself?
<shevy> then you would be a bleeding emocake, we can't have that!
<emocakes> no
<emocakes> id be a cake which cuts itself.
<emocakes> :p
<swarley> I wish my grass was emo
<swarley> then it would cut itself too
<seanstickle> emocakes: sounds like a job for Prolog
<shevy> oh man, emos are useless ...
kiyoura has quit [Quit: Leaving]
<emocakes> :'(
<emocakes> i was feeling that way for a while
<emocakes> im learning rails
<emocakes> and there was so much 'magic' compared to php
Morkel has joined #ruby
<emocakes> that i was really reluctant to write any controller code, and i was angry at why it wasnt working how i wanted it to work
megharsh has joined #ruby
<emocakes> so i bit the bullet, and wrote out the controller code, and voila, it does what i want...
<emocakes> magic huh?
thecreators has quit [Remote host closed the connection]
<seanstickle> Uh, no.
<yfeldblum> emocakes, heh :D
jduan1981 has joined #ruby
<seanstickle> I mean, I suppose it's magic in the same way that heating your steak cooks it.
koshii has joined #ruby
<aedorn> I love steak.
mjolk has joined #ruby
Noldorin has quit [Quit: Computer has gone to sleep.]
Markvilla has joined #ruby
<emocakes> i love sausage
crackfu has joined #ruby
sepp2k has quit [Ping timeout: 252 seconds]
Michael has joined #ruby
Michael is now known as Guest38944
Noldorin has joined #ruby
<emocakes> erm, that didnt come out right
<emocakes> who watches miami vice?
<emocakes> the tv series
<emocakes> ?
mpfundstein has joined #ruby
sambio_ has quit [Ping timeout: 264 seconds]
<pngl> Is someone successfully using rvm under byobu? I get "rvm is not a function", but running my shell as a login shell under byobu doesn't sound like a good idea...
rmc3_ has quit [Ping timeout: 264 seconds]
bigmac has joined #ruby
rmc3 has joined #ruby
vonsar has joined #ruby
<shevy> emocakes in my quest to become cleverer, I must only watch videos where matz speaks
<emocakes> i learnt a new word, 'cleverer' haha
vonsar has quit [Client Quit]
Markvilla has quit [Quit: Computer has gone to sleep.]
<seanstickle> You are unfamiliar with the process of making comparative adjectives?
slainer68 has joined #ruby
sayan has quit [Ping timeout: 260 seconds]
jonahR has joined #ruby
michaelhf has quit [Remote host closed the connection]
rakl has quit [Quit: sleeping]
Markvilla has joined #ruby
ebouchut has quit [Quit: This computer has gone to sleep]
cj3kim has joined #ruby
Asher has joined #ruby
sepp2k has joined #ruby
browndawg has left #ruby [#ruby]
slainer68 has quit [Ping timeout: 250 seconds]
<aedorn> I really need to make an app to do system builds for me... perhaps that'll be my next project
<seanstickle> You mean, like Hudson?
francisfish has joined #ruby
<aedorn> no, hardware wise.. system as in server components. Sitting here finding the best items at X price point is tedious and annoying.
<aedorn> Guess that means I need to build the metacritic.com of computer hardware first
<seanstickle> Ah, like a mobile agent.
<seanstickle> Well, except for the mobile part, I guess
<seanstickle> So, just an agent.
mpfundstein has quit [Ping timeout: 265 seconds]
yacks has quit [Ping timeout: 265 seconds]
jgrevich has joined #ruby
Takehiro has joined #ruby
Takehiro has quit [Remote host closed the connection]
_64k has joined #ruby
<nmeum> is it possible to disable rubys buffering?
vonsar has joined #ruby
kmurph has joined #ruby
Xeago has joined #ruby
<Hanmac> nmeum what do you mean with buffering?
<nmeum> buffering
<Hanmac> repeating the word does not help
<nmeum> buffering
<Hanmac> nmeum can you show me in a sample there "rubys buffering" anoys you?
icole has joined #ruby
Jasko has quit [Read error: Connection reset by peer]
<yfeldblum> nmeum, you can use IO#sysread, #syswrite, and #sysseek, which are unbuffered by ruby (still buffered by the OS, though, and don't mix with the other IO methods), and you can also use IO#sync= to turn off ruby buffering for an IO instance
vonsar has quit [Client Quit]
Jasko has joined #ruby
<canton7> IO#flush is also relevant here
malcolmva has quit [Ping timeout: 260 seconds]
<pmros> can I precompile ruby code in ruby 2 preview2?
<nmeum> Hanmac, yfeldblum: I just used $stdout.sync = true
<pmros> precompiling like rubinius
Guest67842 is now known as Astralum
jaygen has joined #ruby
Tuplanolla has left #ruby ["Yes! Yes!"]
mahmoudi_ has joined #ruby
wallerdev has joined #ruby
yacks has joined #ruby
jaygen has quit [Remote host closed the connection]
Asher has quit [Quit: Leaving.]
kinginky has joined #ruby
nomenkun has joined #ruby
skcin7 has joined #ruby
jds has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
sepp2k has joined #ruby
Coeus has joined #ruby
otherj has joined #ruby
pngl has quit [Ping timeout: 252 seconds]
daniel_- has quit [Ping timeout: 252 seconds]
esdf has joined #ruby
<esdf> hey ive written a small parser for my json, http://sprunge.us/bRRN?rb
otherj has quit [Quit: otherj]
<esdf> can i sort that somehow according to num_players?
jds has quit [Ping timeout: 260 seconds]
<canton7> esdf, one point: don't leave a gap between the function name and the open brackets, as you've done on line 6. it starts getting ambiguous quickly
<canton7> but yeah, servers.sort_by!{ |x| x['num_players }
<esdf> canton7: ah so open("")?
<esdf> and ty
daniel_hinojosa has joined #ruby
<canton7> (also, you don't need line 3 unless you're using ruby 1.8, and replace lines 6 and 7 with json = File.read('list.json')
jgrevich_ has joined #ruby
<canton7> esdf, yup.
staafl has joined #ruby
Solnse2 has joined #ruby
<esdf> aha ty
<canton7> you're opening the file, but never closing it again. doesn't do any harm here, but in general it's bad practice
samuel02 has joined #ruby
staafl_alt has quit [Read error: No route to host]
vlad_starkov has joined #ruby
<esdf> canton7: well i want the output to actually load into zenity list
jgrevich has quit [Ping timeout: 265 seconds]
jgrevich_ is now known as jgrevich
<esdf> nad have tabs you know "host name" etc like in that puts line
<esdf> would i need to make an array out of the output for that to happen?
sambio has joined #ruby
<canton7> i'm starting to get dead picky (but I'm bored): line 11, you don't need the \n at the end of the string. 'puts' sticks a newline on the end if you don't specify one explicitely
<esdf> aha ok, im kinda new to ruby, so i don't know much
Solnse has quit [Ping timeout: 276 seconds]
<canton7> I'm afraid I have no idea what a zenity list is
kmurph has quit [Quit: kmurph]
<esdf> zenity is that gui, like xdialog
cj3kim has quit [Quit: This computer has gone to sleep]
<esdf> and this is what i meant by zenity list
nemesit has quit [Ping timeout: 264 seconds]
<canton7> aha, cool.
egman has joined #ruby
<esdf> btw the sorting stuff, parser.rb:11:in `block in <main>': undefined method `sort_by!' for #<Hash:0x00000001384950> (NoMethodError)
<esdf> this is how the file looks like now
<canton7> input looks like it's space-separated? regardless, if you can produce a sample of what you want your output to be, we can start massaging
<canton7> oops, so it will. servers = Hash[]
<esdf> this is script that calls the ruby parser
<canton7> oops, hit enter too soon
<esdf> this is where it gets input from
iNerd has joined #ruby
jduan1981 has quit [Quit: jduan1981]
<esdf> canton7: http://sprunge.us/hhWG?rb so what am i missing on line 11? i didn't quite understand servers = Hash[] comment :D
<canton7> parsed.sort_by!{ |v| v['num_players'] }, and take out line 11.
rakl has joined #ruby
<canton7> (done too much driving today... my brain's addled)
kmurph has joined #ruby
<esdf> ah ok
egman has quit [Ping timeout: 264 seconds]
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
atyz has quit [Ping timeout: 252 seconds]
<esdf> canton7: well ok, now that that's done, what's the easiest way for me to load it in a gui? export to a file or let the gui(zenity) grab the output directly from ruby?
Solnse2 is now known as Solnse
<canton7> I have no idea - not played with zenity before. I suspect making ruby fire up zenity would be easiest?
wmoxam has quit [Remote host closed the connection]
<esdf> hmm i'll try
slainer68 has joined #ruby
kennyvb has quit [Ping timeout: 244 seconds]
ebouchut has joined #ruby
<esdf> canton7: well i've piped the ruby output directly to zenity
<esdf> seems to work just fine
cj3kim has joined #ruby
atyz has joined #ruby
<canton7> I suspect something like this http://pastebin.com/ZZCDbMS5 would work, but I haven't tested it
atno has joined #ruby
evenix has joined #ruby
cj3kim has quit [Client Quit]
kokainepizza has joined #ruby
wargasm has joined #ruby
<esdf> what does %Q do ?
<canton7> %Q{something} is the same as "something"
<Mon_Ouie> It's a string literal
<esdf> aha ok
<Mon_Ouie> It allows you to choose pretty much whatever separator you like
<canton7> (you can use almost any character instead of the { and } if you like - eg %Q|something|)
tjbiddle has joined #ruby
<esdf> nice to know
<Paradox> is there any easy way to convert from a simple has_many, belongs_to relationship to a has_and_belongs_to_many
<canton7> just means I don't have to constantly escape the double quotes inside it
<esdf> nice to know ty
sepp2k1 has joined #ruby
rvmeier has joined #ruby
sepp2k has quit [Ping timeout: 255 seconds]
<canton7> (also, %q{something} is the same as 'something')
<esdf> canton7: this sort_by! breaks up again
<esdf> parser.rb:7:in `<main>': undefined method `sort_by!' for #<Hash:0x00000002406c60> (NoMethodError)
ikaros has quit [Quit: Ex-Chat]
<canton7> damn, I'm not keeping track of the data types
<esdf> canton7: btw is it better to use .map instead of .each?
crazybyte has joined #ruby
<Hanmac> esdf you cant use "sort_by!" you need to call "sort_by"
<esdf> aha
<canton7> here we go: http://pastebin.com/PC4GGNLJ
crazybyte is now known as Guest50204
tenmilestereo has joined #ruby
<canton7> esdf, depends on what you're doing. map has a very specific function - namely taking each element of an array and producing something from that element
sie has joined #ruby
<canton7> if that's what you're doing, map is often easier to read than each
<esdf> canton7: well what i'm doing is parsing across whole object for those arrays
<canton7> (and that is what you're doing here)
<esdf> ah ok
<esdf> ty
kmurph has quit [Quit: kmurph]
rvmeier has quit [Ping timeout: 245 seconds]
Morkel_ has joined #ruby
kmurph has joined #ruby
<esdf> canton7: so what does servers_list.join refer to btw?
<esdf> having trouble figuring it out
<canton7> servers_list is an array (#map returns an array), with each element being the value from line 10. Array#join takes an array and turns it into a string
<canton7> e.g. [1, 2, 3].join('-') # => "1-2-3"
LouisGB has quit [Ping timeout: 260 seconds]
Guest50204 has quit [Ping timeout: 244 seconds]
assurbanipal has quit [Quit: Leaving]
<esdf> hmm ok, i get parser.rb:13:in `<main>': undefined local variable or method `servers_list' for main:Object (NameError)
<canton7> it should be defined on line 9. let's see your code exactly?
<esdf> ok 1 s
freakazoid0223 has joined #ruby
nemesit has joined #ruby
Morkel has quit [Ping timeout: 265 seconds]
Morkel_ is now known as Morkel
<canton7> yeah, your line 9 is different
<esdf> ah
<esdf> i didnt notice you changed that too
<canton7> and your line 10 has loads of different quotes :P
<canton7> simple example of #map: [1, 2, 3].map{ |x| x+1 } # => [2, 3, 4]
<esdf> kks
<canton7> right, I'm going to go get some food
<esdf> kk i'll figure this out :D
<esdf> tys!
<Hanmac> esdf your map is totaly useless
<esdf> ok ?:D
<esdf> Hanmac: how to fix it?
<esdf> btw that is what im parsing
jduan1981 has joined #ruby
<Hanmac> you should only use map when you do something with the return of the map ... in your case each is enough
sie has quit [Ping timeout: 260 seconds]
<esdf> basically in my script, i'd like for host_name to appear under host name column, map under map column, etc (all in zenity ofc)
<esdf> Hanmac: so i'm goin back to each? :D
<Hanmac> maybe
<esdf> Hanmac: well each gives me array names in the list
<esdf> instead of values
Slivka has quit [Read error: Connection reset by peer]
fomatin has quit [Quit: Computer has gone to sleep.]
<canton7> (now I'm really off)
<esdf> ty canton7
<canton7> oops, typo...
benlieb has quit [Quit: benlieb]
<canton7> http://pastie.org/5594418 - there we go
<esdf> kk thanks
nyuszika7h has quit [Read error: Connection reset by peer]
pmros has quit [Quit: Konversation terminated!]
whitedawg has joined #ruby
nyuszika7h has joined #ruby
<havenn> Question of whether to use #map or #each reminds me of Almost Sinatra's "use map instead of each, it's shorter": https://github.com/rkh/almost-sinatra
miskander has quit [Quit: miskander]
kmurph has quit [Quit: kmurph]
lkba has joined #ruby
breakingthings has quit []
<esdf> hmm
Chryson has joined #ruby
<havenn> I think I wanna use almost-rack and almost-sinatra for my next side-project. Rack in three lines, Sinatra in four. :)
daniel_- has joined #ruby
elico has joined #ruby
<esdf> havenn, dno i'll use map because it returns values,, each returns array names
Jasko has quit [Read error: Connection reset by peer]
<havenn> esdf: The because "it's shorter" is just a joke. :P
<esdf> havenn, but now i'd like to put each value in it's own column
<esdf> havenn: oh :D
_64k has quit [Quit: _64k]
Jasko has joined #ruby
icole has quit [Remote host closed the connection]
<txdv_> 1 line less
<txdv_> o you save so much effort
kidoz has quit [Quit: Ухожу я от вас]
msch has quit [Quit: Coyote finally caught me]
msch has joined #ruby
IceDragon has joined #ruby
kayloos has quit [Ping timeout: 265 seconds]
<Hanmac> esdf use map if you want to use the new returned Array, and use each if you do not care about the return of the block
<Hanmac> samples: result = array1.map {|s| s.to_i} converts all elements into integers, array2.each {|o| o.enable} calls the enable method on all elements
<Hanmac> look how i dont use the result of each
<esdf> basically what i want to do is
<esdf> host_name to go in Host name column, etc
<esdf> like sosrt it, so far it's filling up the list, but line-per-line, not really filling it in a sorted way
iNerd has left #ruby [#ruby]
<esdf> Hanmac: + using map seems to create a lot of blank files in the folder from which the script is ran
<esdf> like 1 file per array
wallerdev has quit [Quit: wallerdev]
havenn has quit [Remote host closed the connection]
h4mz1d has joined #ruby
mahmoudi_ has quit [Quit: Computer has gone to sleep.]
whitedawg has quit [Quit: Leaving.]
atno has quit [Ping timeout: 265 seconds]
mahmoudi_ has joined #ruby
atno has joined #ruby
lenovodroid has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
lenovodroid has joined #ruby
egman has joined #ruby
Nisstyre-laptop has joined #ruby
kjellski has joined #ruby
wallerdev has joined #ruby
msch has quit [Quit: Coyote finally caught me]
msch has joined #ruby
mjolk has left #ruby ["returning some videotapes"]
rakl has quit [Quit: sleeping]
kjellski has quit [Max SendQ exceeded]
tommyvyo_ has joined #ruby
kjellski has joined #ruby
_64k has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
Jasko has quit [Read error: Connection reset by peer]
rakl has joined #ruby
sie has joined #ruby
Jasko has joined #ruby
ericwood has quit [Remote host closed the connection]
gridaphobe has joined #ruby
Snuggles has joined #ruby
ananthakumaran1 has quit [Quit: Leaving.]
fomatin has joined #ruby
<Snuggles> If I want to know if a folder contains at least one file of a certain type, is there any method to use or do I need to write one by myself?
wermel has quit [Remote host closed the connection]
<Snuggles> I want to do something like: "if folderContainsFile('.rar') do something"
otters has joined #ruby
ebouchut has quit [Quit: This computer has gone to sleep]
fomatin has quit [Client Quit]
dagnachew has joined #ruby
dougireton has joined #ruby
Guest25886 has quit [Quit: Guest25886]
rvmeier has joined #ruby
<IceDragon> Snuggles: Dir.glob('*.rar').size > 0
friskd has quit [Quit: friskd]
<canton7> meh, unless Dir['*.rar'].empty?
<IceDragon> or that
<Snuggles> Ahh, thanks
sailias has quit [Ping timeout: 248 seconds]
_64k has quit [Quit: _64k]
<Hanmac> Snuggles: my variant maybe faster: Dir.to_enum(:glob,"*.rar").any?
_64k has joined #ruby
dagnachew has quit [Quit: Leaving]
dagnachew has joined #ruby
<canton7> I'd be interested to see whether it is
<IceDragon> Benchmark it!
<canton7> or whether to_enum takes the array returned by Dir::glob and wraps that up to look like an enumerator
Spaceghostc2c has quit [Excess Flood]
vlad_starkov has joined #ruby
ryanf has quit [Ping timeout: 252 seconds]
Neomex has joined #ruby
<Hanmac> canton7 wrong, ... to_enum does work before the array is created (so for any? or find or all? is it interesting)
Neomex has quit [Client Quit]
dougireton has quit [Quit: Leaving.]
Jasko has quit [Read error: Connection reset by peer]
Spaceghostc2c has joined #ruby
Jasko has joined #ruby
<Snuggles> Its not so important that it is fast, but thanks anyway
<Snuggles> I'm doing a script to download subtitles automatic
postmodern has joined #ruby
theRoUS has quit [Read error: Operation timed out]
<canton7> hmm, interesting. got a resource? the glob source does look more complex than I was imagining
theRoUS_ has quit [Ping timeout: 276 seconds]
vlad_starkov has quit [Ping timeout: 255 seconds]
kmurph has joined #ruby
joofsh has joined #ruby
elaptics is now known as elaptics`away
waxjar has quit [Ping timeout: 245 seconds]
rakl has quit [Quit: sleeping]
thomasfedb has quit [Ping timeout: 244 seconds]
jenrzzz has joined #ruby
benlieb has joined #ruby
rakl has joined #ruby
graft is now known as Guest61103
s0ber_ has joined #ruby
s0ber has quit [Ping timeout: 265 seconds]
s0ber_ is now known as s0ber
reppard has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Takehiro has joined #ruby
dagnachew has quit [Remote host closed the connection]
kjellski has quit [Quit: This computer has gone to sleep]
x82_nicole has joined #ruby
reppard has quit [Ping timeout: 250 seconds]
seich- has quit [Ping timeout: 245 seconds]
BoomCow has joined #ruby
wargasm has quit [Ping timeout: 260 seconds]
Asher has joined #ruby
joeycarmello has joined #ruby
EyesIsMine has joined #ruby
LouisGB has joined #ruby
jblack has quit [Quit: Lost terminal]
kinginky has quit [Remote host closed the connection]
teh4 has quit [Quit: Leaving]
EhyehAsherEhyeh has joined #ruby
alexspeller has joined #ruby
Takehiro has quit [Remote host closed the connection]
maletor has joined #ruby
alexspeller has quit [Remote host closed the connection]
alexspeller has joined #ruby
samuel02 has quit [Remote host closed the connection]
ltsstar has quit [Quit: ltsstar]
reppard has joined #ruby
seich- has joined #ruby
kennyvb has joined #ruby
pooriaazimi has joined #ruby
Jacob_ has joined #ruby
Kudos has quit [Ping timeout: 248 seconds]
Jacob_ is now known as ecksit
kmurph has quit [Quit: kmurph]
jonahR has quit [Ping timeout: 252 seconds]
benlieb has quit [Quit: benlieb]
Kudos has joined #ruby
onibox has joined #ruby
jrajav has quit [Quit: I tend to be neutral about apples]
ecksit has quit [Remote host closed the connection]
Jacob_ has joined #ruby
Jacob_ is now known as Guest83629
jekotia has joined #ruby
Guest83629 is now known as ecksit
<reppard> shevy: everything cool with you hd?
onibox has quit [Quit: leaving]
Noldorin has quit [Quit: Computer has gone to sleep.]
jessepollak has joined #ruby
rawGem has quit [Ping timeout: 244 seconds]
freakazoid0223 has quit [Quit: Leaving]
ryanf has joined #ruby
francisfish has quit [Remote host closed the connection]
<jessepollak> anyone around who might have a second to help with a question about method_missing?
Takehiro has joined #ruby
<yfeldblum> jessepollak, what's the question?
SeySayux has quit [Ping timeout: 264 seconds]
<shevy> reppard hmm I am thinking...
<shevy> more and more code means more and more bugs, but also more and more features
mengu_ has joined #ruby
Villadelfia has quit [Ping timeout: 252 seconds]
<jessepollak> I'm trying to enable method missing on method chains. so let's say I have an DB object, called db and then call db.collection.query (and neither collection nor query are methods on DB), is there a way to get that whole method chain and then do something with it?
<shevy> I often wonder if there would be less bugs, if ruby would be a simpler language, and with a larger standard library
<yfeldblum> shevy, like java?
<yfeldblum> jessepollak, no
<otters> jessepollak: not really
<jessepollak> could I recurse through the method missing chain?
Villadelfia has joined #ruby
<yfeldblum> jessepollak, why? what are you trying to do with the method chain?
SeySayux has joined #ruby
<jessepollak> I'm just messing around, trying to recreate the functionality from the mongodb console for fun
<yfeldblum> jessepollak, you could have the first thing return a proxy, which defines method_missing which returns a new proxy, which defines method_missing which returns yet a new proxy
<otters> what I would do is define an ivar @method_chain and then append to it in method_missing
<jessepollak> yeah, that's what I was thinking, but that's probably more pain than just creating a Collection object which gets returned and has the query method on it
<yfeldblum> jessepollak, your best bet is probably to use real objects
ryanf has quit [Ping timeout: 244 seconds]
<yfeldblum> otters, that breaks in ways that annoy everyone around you
<otters> well that's probably why I don't have a job
<jessepollak> thanks for the help guys
<jessepollak> or girls*
<otters> yfeldblum: how does it break exactly
ryanf has joined #ruby
<yfeldblum> otters, o = first.some_method ; a = o.some_method ; b = o.some_method
<otters> yeah, you're absolutely right
benlieb has joined #ruby
Takehiro has quit [Ping timeout: 252 seconds]
hoelzro is now known as hoelzro|away
reppard has quit [Quit: leaving]
Raboo has quit [Ping timeout: 248 seconds]
Raboo has joined #ruby
BoomCow has quit [Quit: Leaving]
rvmeier has quit [Ping timeout: 264 seconds]
joeycarmello has quit [Remote host closed the connection]
joeycarmello has joined #ruby
Morkel has quit [Quit: Morkel]
Slivka has joined #ruby
workmad3 has joined #ruby
joeycarmello has quit [Ping timeout: 264 seconds]
sirecote has joined #ruby
kirun has quit [Quit: Client exiting]
tjbiddle has quit [Quit: tjbiddle]
sirecote has quit [Remote host closed the connection]
pooriaazimi has quit [Quit: pooriaazimi]
fomatin has joined #ruby
bbttxu_ has joined #ruby
kmurph has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
jfl0wers_ has quit [Quit: jfl0wers_]
sirecote has joined #ruby
kmurph has quit [Client Quit]
dmiller_ has joined #ruby
dmiller has quit [Ping timeout: 265 seconds]
Bry8Star has quit [Ping timeout: 276 seconds]
<shevy> cuddly otters! I'd hire you right away for your nick alone
<otters> <3
kiyoura has joined #ruby
Takehiro has joined #ruby
<shevy> yfeldblum problem with java is, imho, it is way too verbose. and I also think, it has lots of bugs too, when you write a really big application, so that in itself would not be a real improvement over ruby
<shevy> I read from that guy who wrote a game with around... 500K lines of code in java or something like that
malcolmva has joined #ruby
<ecksit> has anyone used a sintara and rails together?
<shevy> in the end he abandoned that project, saying that it's too much code to maintain
Goles has quit [Quit: Out.]
<whitequark> shevy: well, minecraft is entirely in java
_64k has quit [Quit: _64k]
alanp_ has joined #ruby
alanp_ has quit [Read error: Connection reset by peer]
benlieb has quit [Quit: benlieb]
ikaros has joined #ruby
alanp_ has joined #ruby
sie has quit [Ping timeout: 244 seconds]
kenneth has quit [Quit: kenneth]
Bry8Star has joined #ruby
xaq has joined #ruby
sailias has joined #ruby
mlue has quit [Ping timeout: 250 seconds]
ikaros has quit [Client Quit]
mlue has joined #ruby
alexwh_ has joined #ruby
<shevy> what I notice so far is that, the larger a project becomes, the harder it is to make changes to it
alexwh_ is now known as Guest931
tommyvyo_ has quit [Quit: Computer has gone to sleep.]
Rym has joined #ruby
havenn has joined #ruby
alanp has quit [Ping timeout: 255 seconds]
BoomCow has joined #ruby
kuranai is now known as kuranai_off
Takehiro has quit [Ping timeout: 260 seconds]
<whitequark> shevy: this is not related to language
jduan1981 has quit [Quit: jduan1981]
waxjar has joined #ruby
<shevy> different languages require more code
<whitequark> I'd say that managing a 500 KLOC ruby project is far more complex than 500 KLOC java project
<canton7> yeah, seconded
<seanstickle> Why?
<whitequark> if all other factors are equivalent (and we're in an ideal world.)
<arturaz> thirded
<whitequark> seanstickle: to say it very concisely, higher code density
<whitequark> you squeeze more meaning into the same amount of LOC
<seanstickle> whitequark: so?
<shevy> yeah, for equal amount of lines of code, for a serious project, the ruby project would be more complex
<arturaz> seanstickle, IMHO because of the dynamic typing. You can't ever get sure what gets called from where and how :)
<seanstickle> Haha
<whitequark> seanstickle: complexity does not arise from purely lines of code, but from the logic behind them
<workmad3> once you're at that scale of code, I'd be very hesitant to make any general statements about complexity and maintainability personally
<yfeldblum> in a 500 KLOC java project, you would likely have 400KLOC of getter/setter methods :D
<seanstickle> I welcome you to try and manage a 500 KLOC project in x86 assembly.
<seanstickle> Which I have.
<seanstickle> It is not easier.
joeycarmello has joined #ruby
<seanstickle> Although it is considerably less "code dense"
<workmad3> it depends on design, code organisation, what language aspects are in use, etc.
<whitequark> seanstickle: oh indeed, but note that I talked about "meaning" (yeah I just invented this term, but it helps the explanation)
<whitequark> seanstickle: x86 assembly requires you to care about a great deal more things than Java to implement the same logic
<whitequark> there is probably a better way to express this.
<seanstickle> So, if it's a less expressive language, it's more complex. And if it's a more expressive language, it's more complex.
<seanstickle> Sure, this all makes perfect sense.
<seanstickle> It's arbitrary make up stuff hour!
<workmad3> assembly has a lot more 'incidental complexity' (to steal the term from fred brooks)
francisfish has joined #ruby
<whitequark> ^ what he says
kenneth has joined #ruby
<workmad3> personally, I'd say that large projects require more care to change, no matter what the language
<seanstickle> Yup. Agreed.
<workmad3> they need more design, more care
<workmad3> and if you approach large projects with the same approach as small projects, you end up with a maintenance nightmare
<whitequark> "programming in the small" vs "programming in the large"
<seanstickle> Doghouses vs skyscrapers.
<whitequark> this also reminds me of a very nice article by B. Stroustrup
<whitequark> he should've kept writing instead of creating languages :)
whowantstolivef1 has joined #ruby
<workmad3> personally, I think we need more recognition of the differences between computer science and software engineering
mattt has left #ruby [#ruby]
<shevy> whitequark what I would like to find out is, whether it is possible to create a language, similar to ruby, faster, with less features (and also simpler), and as a consequence of this alone, to have more software, with less bugs
<workmad3> in the same way that we have a recognition of differences between (for example) material sciences and structural engineering
<whitequark> workmad3: we need to stop thinking that people who are good in computer science should build actual projects
pskosinski has quit [Ping timeout: 250 seconds]
<whitequark> exactly
<whitequark> the recognition is already there and is well understood by businesses
<seanstickle> I've heard this same complaint for the last 20 years, and it's not getting any better.
<seanstickle> I declare it a hobbyhorse issue.
<shevy> seanstickle damn, you old! :(
<whitequark> seanstickle: I'd say the problem is not contained within IT
<whitequark> for some reason, there is a strange notion that graduating from university will make you a better employee
<workmad3> it doesn't help that computer science seems to almost be a dumping ground for bits that other subjects don't want to cover
<whitequark> well, it does mean you can probably do pointless things for years straight. but that's all.
<seanstickle> No, but it does signal that you are more likely to be a good employee.
<workmad3> maths department doesn't want to teach algorithms? dump it in computer science!
<shevy> it's a selection process, some make it through university, some not. not that this says anything about success
<workmad3> same with logic
BoomCow has quit [Quit: This computer has gone to sleep]
<shevy> yeah, you could be the perfect slave with perfect degrees :)
<whitequark> seanstickle: I don't see how it does.
Solnse has quit [Ping timeout: 245 seconds]
<seanstickle> whitequark: signals that you are capable of being patient enough and careful enough to complete the sort of work that most places that hire college grads have for you to do.
<seanstickle> whitequark: the content of your studies are entirely secondary.
<workmad3> seanstickle: I'd probably say that it used to be the case
ikaros has joined #ruby
<whitequark> seanstickle: in other words, it signals that you can dump 5 years of your life into shit you don't care about
francisfish has quit [Remote host closed the connection]
<whitequark> in that sense of being a good employee, indeed.
<seanstickle> whitequark: there you go.
<GlenK> bah. none of this applies to electrical engineering just to give one example
<workmad3> seanstickle: back in the days (at least in the UK) where the incentive was on producing good graduates, not in increasing pass rates
cj3kim has joined #ruby
<seanstickle> workmad3: signaling systems do tend to get undermined in that way.
<whitequark> GlenK: I'm not talking about the cases when you actually need the knowledge you (can) receive
ikaros has quit [Client Quit]
<seanstickle> workmad3: the poorer classes buy knockoffs of expensive goods as well.
skcin7 has quit []
<seanstickle> workmad3: generating the creation of new luxury goods to be used as a signal.
<whitequark> GlenK: more about the things where to become a manager you need to have a diploma. of any sort. which doesnt' mean more than any other A4 piece of paper.
<havenn> There should be a degree for solving 333 or more Project Euler problems.
<seanstickle> havenn: that's because you think that degrees are about knowledge
<seanstickle> havenn: which is where you are mistaken
fomatin has quit [Quit: Computer has gone to sleep.]
benlieb has joined #ruby
<havenn> seanstickle: *should* - I make a normative claim!
<seanstickle> havenn: good luck with those.
hybris has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
<workmad3> degrees shouldn't be about having knowledge
ikaros has joined #ruby
<workmad3> they should be indicative of the ability to acquire knowledge and learning
<seanstickle> And we should all be paid what we're truly worth.
<seanstickle> But we don't live in magical unicorn rainbow land.
<whitequark> you know when the education system is functioning correctly? when students would fight (metaphorically and sometimes literally) to acquire the knowledge they need
<whitequark> not when they get in university because their parents said so
<seanstickle> Ha
<workmad3> seanstickle: nah, in magical unicorn rainbow land, we don't get paid
<whitequark> or they need a fucking piece of paper
whowantstolivef1 has quit [Read error: Connection reset by peer]
<whitequark> which is easier to buy if needed, which also avoids pointless wasting of your time
<seanstickle> workmad3: well, true. but we do get all our other wishes.
<workmad3> seanstickle: we do the best we can, and others do the same, and society ticks on fine with everybody contributing what they can :P
whowantstolivef1 has joined #ruby
<havenn> seanstickle: I <3 Unicorn and Rainbows! Puma is nice too, but for MRI forking seems the way to go. >.>
<seanstickle> workmad3: indeed they do.
<workmad3> seanstickle: and the complete divorce of that from actual reality is part of why I no longer like star trek :)
<seanstickle> workmad3: and economic signaling keeps working just like it always has.
<whitequark> seanstickle: it's not like there is even a theoretical way of determining how much you're worth. you're worth exactly as much as how you could sell yourself.
<seanstickle> whitequark: and your magical dreams are equally nonsensical.
fomatin has joined #ruby
<seanstickle> whitequark: together, we can establish the Kingdom of Puppy Rainbow Heaven
<whitequark> seanstickle: it's not like I pulled that argument about students fighting for knowledge out of thin air.
<seanstickle> I think I know where you pulled it out of.
<seanstickle> ;)
<workmad3> however, it's good to identify the ideal so that we can have IRC discussions about how far away from that ideal we are :)
<havenn> I'm curious how much copy-on-write friendly GC in 2.0.0 will benefit Unicorn memory usage irl.
<seanstickle> workmad3: assumes that we have the same ideal. which is doubtful.
<workmad3> seanstickle: in my ideal world, we do :P
<seanstickle> hA
<havenn> seanstickle: So you are for degrees, or against them, or indifferent?
<shevy> in the ideal world you two would be happily married with one another
<whitequark> a spherical seanstickle in vacuum
<seanstickle> shevy: you are so romantic!
<workmad3> whitequark: is that a punchline or a threat? :)
<seanstickle> havenn: I look at what there is, and how things seem to work.
<seanstickle> havenn: I make no normative claims.
cj3kim has quit [Quit: This computer has gone to sleep]
<whitequark> workmad3: the former. I think.
whowantstolivef2 has joined #ruby
LucidDreamZzZ has joined #ruby
<seanstickle> Given my waistline these days, a spherical seanstickle is not so far from the truth
<whitequark> seanstickle: unless you can make a normative claim, you are unable to change anything, for you do not know the direction of change
<seanstickle> whitequark: that's the price I pay.
<whitequark> a price you pay for what?
<seanstickle> Doing what I like to do.
moshee has quit [Ping timeout: 264 seconds]
moshee has joined #ruby
<whitequark> if I only looked at how the things seem to work, I won't be able to do what I want.
vlad_starkov has quit [Ping timeout: 252 seconds]
<whitequark> because the latter had to include a fuck off to a lot of people.
<whitequark> but your position might be different.
xaq has quit [Remote host closed the connection]
<seanstickle> I just want to understand how things work.
whowantstolivef1 has quit [Ping timeout: 260 seconds]
<seanstickle> Well, and retire with some money.
<whitequark> so, you're for pure knowledge after all? :D
<seanstickle> Maybe?
<whitequark> knowledge without a reason and without a will
<shevy> pure knowledge and pure power
fomatin has quit [Quit: Computer has gone to sleep.]
<shevy> whitequark to CONQUER THE WORLD!!!
<seanstickle> All men by nature desire to know.
<whitequark> seanstickle: I disagree, but can understand you.
<seanstickle> I am one of them.
<whitequark> hahaha
fomatin has joined #ruby
<whitequark> by nature I'd say not
<shevy> hmm I dont need to know everything, but I must control everything
<whitequark> or maybe just not all
<shevy> you humans are so puny
<shevy> you make me sick
Noldorin has joined #ruby
havenn has quit [Ping timeout: 260 seconds]
<shevy> gah
<workmad3> I've been gradually disillusioned from the idea that I can know everything
fomatin has quit [Client Quit]
<workmad3> and from the idea that anyone can know everything
<shevy> I have to either fix a complicated bug, or rewrite from scratch... and once again I chose to rewrite ... :(
cj3kim has joined #ruby
<workmad3> and from the idea that there is an absolute truth to things that can be known...
s1n4 has joined #ruby
<whitequark> I wonder how much knowledge human brain can actually acquire. Given there are people who remember every single second of several decades of their life
arturaz has quit [Remote host closed the connection]
<seanstickle> whitequark: quite a bit
xaq has joined #ruby
mmitchell has quit [Remote host closed the connection]
<seanstickle> I had to learn mnemonic techniques from the middle ages to keep up with the stuff I wanted to learn.
<seanstickle> My natural memory was insufficient
<workmad3> whitequark: physicists have worked out the quantum information density limit, so they can tell you the limit of information that a volume the size of the human brain can hold (in terms of information entropy)
<shevy> whitequark those people scare me
s1n4 has quit [Client Quit]
<whitequark> workmad3: yeah I know about those calculations
<workmad3> whitequark: translating that figure into a usable bit of information is a bit difficult though :)
<whitequark> but the brain is far less dense than that, of course
<seanstickle> Try not to confuse information with knowledge though.
s1n4 has joined #ruby
<whitequark> seanstickle: I don't.
<seanstickle> I don't need to memorize the position of all the points on a parabola.
statarb3 has quit [Quit: Leaving]
Nisstyre-laptop has quit [Quit: Leaving]
joeycarmello has quit [Ping timeout: 265 seconds]
jslowe has joined #ruby
jessepollak has left #ruby [#ruby]
nyuszika7h has quit [Quit: Here we are, going far to save all that we love - If we give all we've got, we will make it through - Here we are, like a star shining bright on your world - Today, make evil go away!]
gnul0ver has joined #ruby
<shevy> that's what you say now, but wait until your life depends on it
Catnaroek has quit [Quit: leaving]
<workmad3> I wonder if the limit of human memory is beyond what can be input in a human lifetime?
<shevy> ever saw "The Saw" or "Cube"? yes? those are the situations where your life could depend on it!!!
nyuszika7h has joined #ruby
Asher has quit [Quit: Leaving.]
Astral_ has joined #ruby
<shevy> so you better learn all there is to know about a parabola ...
<whitequark> workmad3: it seems so
assurbanipal has joined #ruby
esdf has quit [Quit: leaving]
<whitequark> from what I remember from my physiology course, you could remember somewhere along 300 years of your life
<whitequark> until you'd begin to have capacity problems
<seanstickle> shevy: with the analytic form of the parabola, I can calculate all the points.
blacktul_ has quit [Remote host closed the connection]
<seanstickle> shevy: no need to memorize them
<seanstickle> :)
<seanstickle> I didn't memorize the trig tables either. Quicker to calculate most of the common ones in my head.
<workmad3> or keep an emergency slide-rule concealed on your person? :)
<whitequark> seanstickle: +1 on not memorizing that. just imagine a circle and everything becomes obvious.
<seanstickle> whitequark: yup
<seanstickle> Imagine a cone with an intersecting plane, and you can work out a lot of the parabola stuff too.
<canton7> the one-one-root-two and one-two-root-three triangles are peasy to remember
<seanstickle> Slower going though.
dr_neek has joined #ruby
<whitequark> seanstickle: huh, never heard that. what could you infer from that construct?
<workmad3> whitequark: you've never encountered conic sections?
<seanstickle> whitequark: why do you think a parabola is called a conic section?
<seanstickle> whitequark: it's one of the intersections of a cone and a plane
<workmad3> whitequark: which let you construct parabolas, ellipses, circles and hyperbolas?
xaq has quit [Remote host closed the connection]
<whitequark> ... crap
<seanstickle> :D
<whitequark> of course I did
<whitequark> I hate my memory
<workmad3> heh
<seanstickle> We read Apollonius in college, and worked through all the proofs
EhyehAsherEhyeh has quit [Ping timeout: 255 seconds]
<seanstickle> Good fun!
<workmad3> in fairness, one of the worst bits of human memory is probably the indexing system
nemesit has quit [Quit: Leaving...]
swex_ has joined #ruby
Astralum has quit [Ping timeout: 260 seconds]
Astral_ is now known as Astralum
<workmad3> it can all be there, but you're just lacking that last bit of the key to look it up in your head with :)
<whitequark> to be fair, I never really liked math or shined at it. but when I've seen an immediate application for some part of it, it always became quite easy.
<seanstickle> I found math to be much easier to learn when studied historically.
<seanstickle> And not as a set of abstract principles handed down from on high.
<workmad3> I found maths much easier to handle when I started learning it recreationally (with a similar principle to seanstickle)
<workmad3> once you abandon the notion that it's all learning formula and equations and that it's all set in stone and absolute, maths gets a lot more interesting
<seanstickle> I particularly enjoyed reading the arguments back in the day about why negative numbers were pure nonsense.
<workmad3> what a lot of maths really boils down to is 'what can I do with this set of assumptions (axioms)?'
<seanstickle> And then reading similar arguments years and years later about why imaginary numbers are nonsense.
<workmad3> and then, on top of that, 'what can I still do if I start abandoning or changing these axioms?'
swex has quit [Ping timeout: 260 seconds]
<whitequark> for me, the moment of truth appeared when I realized that lambda calculus is immediately very useful for understanding compiler construction. then math stopped being stuff I need to do because I need and became a valuable, useful tool.
<workmad3> the 'core' principle (if there is one) for maths is probably consistency
darthdeus has quit [Quit: Leaving...]
skcin7 has joined #ruby
BoomCow has joined #ruby
<seanstickle> I did love reading the Principia
<workmad3> if you look at consistency, you see a lot of things come through... e.g. why don't we divide by 0? because we can't make it consistent
<seanstickle> You can divide by an infinitesimal though!
<seanstickle> :D
<workmad3> seanstickle: sure, if you're in the hyper-reals
<seanstickle> Aren't we all?
<workmad3> seanstickle: if you're just in the reals, there isn't a concept of an infinitesimal ;)
<seanstickle> Boo
<seanstickle> Calculus is much nicer with hyperreals
<workmad3> seanstickle: and let's not forget about the hyper-complex... or the surreals...
s1n4 has quit [Quit: leaving]
<seanstickle> I have a book on surreal numbers for accounting.
<workmad3> well, yeah... hyperreals came about as one approach to providing a concrete foundation for building calculus :)
cj3kim has quit [Quit: This computer has gone to sleep]
<seanstickle> Nonstandard analysis makes calculus much easier to learn for people from my college.
<seanstickle> Since we tend to skip all that limit stuff.
<workmad3> yeah, I wish I'd been introduced to calculus using nonstandard analysis
havenn has joined #ruby
<workmad3> talking about infinitesimals and infinities just seems a more natural approach, IMO
<shevy> you geeks you!
jslowe has quit [Quit: Leaving]
<seanstickle> workmad3: I agree. Limits are for wusses.
<shevy> look at you two go... professor seanstickle and professor workmad3, in another coffee session :D
whowantstolivef2 has quit [Ping timeout: 260 seconds]
landho has joined #ruby
<workmad3> it was what they originally used, they just took longer to figure out how to put infinitesimals on solid ground
Xeago has quit [Remote host closed the connection]
<workmad3> and by 'they' I mean all those mathematicians in history :P
<workmad3> shevy: :P
mahmoudi_ has quit [Quit: Computer has gone to sleep.]
<workmad3> shevy: we're not talking about pedagogy yet
<seanstickle> workmad3: I know. I read the Principia.
<workmad3> shevy: we're still purely in the realms of math geek ;)
<seanstickle> workmad3: it was quite delightful
samphippen has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<workmad3> I should read the principia I guess
samphippen has joined #ruby
<workmad3> just so many other books I want to read
dreinull has joined #ruby
<seanstickle> Few pay off as well as Newton's Principia
<seanstickle> and the other Principia too
<workmad3> the principia mathematica?
<dreinull> methods that accept either a single parameter or an array are acceptable via *params -> ary.flatten or is there a better way?
mengu_ has quit [Quit: Leaving]
<seanstickle> workmad3: they are both the Principia Mathematica
amacgregor_osx has quit [Remote host closed the connection]
<seanstickle> workmad3: but I mean the Russell and Whitehead one, yes
LouisGB has quit [Ping timeout: 255 seconds]
<workmad3> I should probably knuckle down and read them at some point :)
zeade has joined #ruby
<seanstickle> They construct the number 1
<seanstickle> How more awesome can you get?
<workmad3> Godel? :)
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
<seanstickle> workmad3: Godel is neat too
<seanstickle> But constructing the number 1 is pretty awesome
xyzodiac has quit [Quit: Computer has gone to sleep.]
nwertman has joined #ruby
<workmad3> I dunno... getting number theory to be self-referential... that's pretty awesome
<seanstickle> Yeah, but it's hard to translate to other people.
AndChat| has quit [Ping timeout: 250 seconds]
<seanstickle> When you tell them you now know why 1+1=2, it's a pleasant experience.
<workmad3> true :) godel's awesomness is a bit deeper
Coeus has quit [Quit: WeeChat 0.3.9.2]
<workmad3> do you know why 1 + 1 = 2 though? or do you just have an axiomatic construction that makes anything else a logical impossibility?