apeiros_ changed the topic of #ruby to: Ruby 2.0.0-p0: http://ruby-lang.org (Ruby 1.9.3-p392) || Paste >3 lines of text on http://gist.github.com
jnoob22 has joined #ruby
<MrZYX> ah, right, it only duplicates the reference
<MrZYX> to the array object
codesoda has joined #ruby
btaitelb has joined #ruby
mneorr has joined #ruby
<MrZYX> you could wrap it into a proc
<MrZYX> and call that proc
eykosioux has quit [Ping timeout: 248 seconds]
<Mattix> hmn, it's ugly :P
freeayu has joined #ruby
<Mattix> I can wrap it inside a new "init" method too
<MrZYX> yeah
slainer68 has joined #ruby
pandawarrior has quit [Quit: Leaving.]
<Mattix> I wonder why it's not possible to initialize instance vars outside a method
<Mattix> like in other languages
<MrZYX> because ruby evalutes the class content right away
sixEch0_ has quit [Quit: sixEch0_]
<MrZYX> for example if you write attr_reader
<MrZYX> that's a method
predator217 has quit [Ping timeout: 264 seconds]
<MrZYX> that is called when the class is read
<Mattix> hmn, you're right
<MrZYX> and defines a new method in that moment
gabrielrotbart has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
Inv1s1ble has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
moos3 has quit [Quit: Computer has gone to sleep.]
pandawarrior has joined #ruby
mneorr has quit [Ping timeout: 255 seconds]
d11wtq has joined #ruby
pandawarrior has quit [Client Quit]
bonty_ssh has quit [Remote host closed the connection]
MrZYX is now known as MrZYX|off
rakl has joined #ruby
d11wtq has quit [Ping timeout: 276 seconds]
eka has quit [Quit: Computer has gone to sleep.]
bonty_ssh has joined #ruby
subbyyy has joined #ruby
fermion has quit [Quit: Computer has gone to sleep.]
roz has joined #ruby
bhaarat has quit [Ping timeout: 258 seconds]
hakunin has quit [Ping timeout: 258 seconds]
sayan has quit [Ping timeout: 240 seconds]
hmarr has joined #ruby
yankeefan04 has quit [Remote host closed the connection]
zeroXten has quit [Remote host closed the connection]
chrishough has joined #ruby
sepp2k has quit [Remote host closed the connection]
btaitelb has quit [Quit: btaitelb]
jfredee has joined #ruby
dayepa has quit [Quit: dayepa]
dayepa has joined #ruby
Spooner has quit [Remote host closed the connection]
nkts has quit [Read error: Connection reset by peer]
marr has quit [Read error: Connection reset by peer]
yshh has quit [Remote host closed the connection]
xcv has quit [Remote host closed the connection]
nkts has joined #ruby
idkazuma has quit [Remote host closed the connection]
idkazuma has joined #ruby
idkazuma has quit [Remote host closed the connection]
MissionCritical has quit [Ping timeout: 245 seconds]
hogeo has joined #ruby
peta_ has quit [Quit: peta_]
bhaarat has joined #ruby
hogeo has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 248 seconds]
brianpWins has quit [Quit: brianpWins]
brianpWins has joined #ruby
hogeo has joined #ruby
tylersmith has joined #ruby
jamesfung14 has quit [Ping timeout: 252 seconds]
gabrielrotbart has quit [Remote host closed the connection]
jrajav has quit [Quit: I tend to be neutral about apples]
gabrielrotbart has joined #ruby
Mission-Critical has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
gabrielrotbart has quit [Ping timeout: 245 seconds]
ZachBeta has joined #ruby
gabrielrotbart has joined #ruby
d11wtq has joined #ruby
Guest94057 is now known as andrew12
andrew12 has joined #ruby
andrew12 has quit [Changing host]
robert_ has joined #ruby
Guedes has quit [Quit: Saindo]
sleetdrop has quit [Quit: Computer has gone to sleep.]
banjara has joined #ruby
jamesfung14 has joined #ruby
timmow has joined #ruby
Skofo has quit [Quit: Leaving]
Proshot has quit [Read error: Connection reset by peer]
Mission-Critical is now known as MissionCritical
adamjleonard has quit [Quit: Leaving...]
Ontolog has quit [Remote host closed the connection]
caledones has left #ruby ["Konversation terminated!"]
yshh has joined #ruby
sailias has joined #ruby
slainer68 has quit [Remote host closed the connection]
elux has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
bricker`LA has joined #ruby
rakl has quit [Quit: sleeping]
mercwithamouth has joined #ruby
inimino has quit [Ping timeout: 245 seconds]
Hanmac1 has joined #ruby
hmarr has quit []
jfredee has quit [Remote host closed the connection]
bricker`1A has quit [Ping timeout: 240 seconds]
adamjleonard has joined #ruby
chimmy has joined #ruby
hamakn has joined #ruby
dhruvasagar has joined #ruby
kenneth has quit [Quit: kenneth]
gyre008 has quit [Remote host closed the connection]
sambao21 has joined #ruby
Hanmac has quit [Ping timeout: 255 seconds]
aemeredith has joined #ruby
kenneth has joined #ruby
Astral__ has quit [Read error: Connection reset by peer]
Astral__ has joined #ruby
Scriptor has joined #ruby
<Scriptor> hi guys
<Scriptor> does anyone know if there's a way for InstructionSequence to read in a a string of instructions
wreckimnaked has joined #ruby
<chimmy> [1,2,3] & [3,4,5]
<chimmy> [3]
<chimmy> What's the operator for
<Scriptor> I know it can output the instructions given a string of code
<chimmy> [1,2] ??? [2,3]
<Scriptor> but I can't find a way to take in those instructions and then evaluate them
<chimmy> [1,2,3]
<fryguy-> chimmy: |
<chimmy> Tks!
<chimmy> I was trying with ||
snuglepuss has quit [Remote host closed the connection]
bonty_ssh has quit [Remote host closed the connection]
f0ster has joined #ruby
baba has joined #ruby
jerius has joined #ruby
security has quit [Ping timeout: 248 seconds]
wreckimnaked has quit [Ping timeout: 252 seconds]
bonty_ssh has joined #ruby
ariedler has quit [Read error: Connection reset by peer]
ariedler has joined #ruby
meanderer has quit [Ping timeout: 264 seconds]
athst has joined #ruby
brianpWins has quit [Quit: brianpWins]
platzhirsch has left #ruby [#ruby]
<ntzrmtthihu777> anyone with experience with rubinius?
jhn has joined #ruby
atno has quit [Ping timeout: 246 seconds]
rakl has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
mockra has quit [Remote host closed the connection]
hekin has joined #ruby
xue has joined #ruby
rakl has quit [Quit: sleeping]
kofno has quit [Remote host closed the connection]
slainer68 has joined #ruby
jpfuentes2 has joined #ruby
ntzrmtthihu777 has quit [Quit: leaving]
Ankhers has quit [Ping timeout: 245 seconds]
s2013 has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
tylersmith has quit [Quit: tylersmith]
chimmy has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
s2013 has joined #ruby
adamjleonard has quit [Read error: Connection reset by peer]
xperience has joined #ruby
eykosioux has joined #ruby
s2013 has quit [Read error: Connection reset by peer]
s2013 has joined #ruby
huoxito has quit [Quit: Leaving]
kuzushi has joined #ruby
dmiller_ has quit [Remote host closed the connection]
huoxito has joined #ruby
Domon has joined #ruby
pac1 has quit [Quit: I got it one line of code at a time]
dayepa has quit [Read error: Connection reset by peer]
dayepa has joined #ruby
s2013 has quit [Read error: Connection reset by peer]
slainer68 has quit [Ping timeout: 264 seconds]
s2013 has joined #ruby
s2013 has quit [Read error: Connection reset by peer]
s2013 has joined #ruby
mocfive has quit [Remote host closed the connection]
roz has quit [Ping timeout: 276 seconds]
emmanuelux has quit [Quit: emmanuelux]
eykosioux has quit [Remote host closed the connection]
s2013 has quit [Ping timeout: 248 seconds]
[rust] has joined #ruby
Matip has joined #ruby
timmow has joined #ruby
xperience has quit [Quit: Leaving...]
sambao21 has quit [Quit: Computer has gone to sleep.]
nfk has quit [Remote host closed the connection]
hekin has quit [Quit: hekin]
ttt has joined #ruby
jerius has quit []
Mattix has quit [Ping timeout: 276 seconds]
tomsthumb has joined #ruby
matchaw has quit [Remote host closed the connection]
timmow has quit [Ping timeout: 252 seconds]
matchaw has joined #ruby
epireve has quit [Read error: Connection timed out]
eykosioux has joined #ruby
casheew has quit [Read error: Connection reset by peer]
soulofpeace has joined #ruby
casheew has joined #ruby
freerobby has joined #ruby
Xeago has joined #ruby
dmiller has joined #ruby
ner0x has joined #ruby
sambio has joined #ruby
benlieb has quit [Quit: benlieb]
mafs has joined #ruby
cyro has joined #ruby
<cyro> what's the best way to convert a zipcode to lat/lon - it seems like geokit is out of date
<cyro> ?
Xeago has quit [Ping timeout: 264 seconds]
slainer68 has joined #ruby
bean has joined #ruby
sleetdrop has joined #ruby
coke has joined #ruby
aemeredith has quit [Remote host closed the connection]
bhaarat has quit [Quit: bhaarat]
cyro has left #ruby [#ruby]
bradleyp_ has quit [Remote host closed the connection]
sleetdrop has quit [Ping timeout: 248 seconds]
coke has left #ruby [#ruby]
slainer68 has quit [Ping timeout: 258 seconds]
<codesoda> @cyro you should checkout the geocoder gem
btaitelb has joined #ruby
pkrnj_ has joined #ruby
sleetdrop has joined #ruby
pkrnj has quit [Ping timeout: 240 seconds]
pkrnj_ is now known as pkrnj
shevy has quit [Ping timeout: 256 seconds]
radic has quit [Disconnected by services]
radic_ has joined #ruby
rgbdev has joined #ruby
hogeo has quit [Read error: Connection reset by peer]
angusiguess has joined #ruby
hogeo has joined #ruby
bhaarat has joined #ruby
pkrnj has quit [Quit: Computer has gone to sleep.]
gabrielrotbart has quit [Remote host closed the connection]
gabrielrotbart has joined #ruby
banisterfiend has quit [Remote host closed the connection]
gabrielrotbart has quit [Ping timeout: 245 seconds]
kofno has joined #ruby
rgbdev has quit [Ping timeout: 240 seconds]
shevy has joined #ruby
wsterling has joined #ruby
jenrzzz has joined #ruby
nateberkopec has quit [Quit: Leaving...]
pkrnj has joined #ruby
KazW has joined #ruby
brianherman has quit [Read error: Connection reset by peer]
kofno has quit [Ping timeout: 258 seconds]
sleetdrop has quit [Ping timeout: 258 seconds]
aemeredith has joined #ruby
NiteRain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
fschuindt has joined #ruby
rgbdev has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
LnL has quit [Ping timeout: 258 seconds]
sleetdrop has joined #ruby
nalaginrut has joined #ruby
eykosioux has quit [Remote host closed the connection]
dhruvasagar has quit [Read error: Connection reset by peer]
eykosioux has joined #ruby
eykosioux has quit [Read error: Connection reset by peer]
eykosioux has joined #ruby
dhruvasagar has joined #ruby
rakl has joined #ruby
jamesfung14 has quit [Remote host closed the connection]
bonty_ssh has quit [Remote host closed the connection]
etcetera has joined #ruby
ZachBeta has joined #ruby
ocnam has joined #ruby
huoxito has quit [Quit: Leaving]
nari has joined #ruby
eykosioux has quit [Remote host closed the connection]
hakunin has joined #ruby
eykosioux has joined #ruby
banisterfiend has joined #ruby
timmow has joined #ruby
synthetix has joined #ruby
mafs has quit [Quit: Quit]
pasties has quit [Ping timeout: 240 seconds]
<Matip> so.. when I .write in a file opened as "r+", it not only writes what I want but it also adds a lot of 0x00 at the beginning. what is wrong?
<Matip> that is basically what I do: file.truncate 0; file.write "whatever"; file.flush
mercwithamouth has quit [Ping timeout: 245 seconds]
sleetdrop has quit [Ping timeout: 252 seconds]
<bnagy> Matip: if you want to truncate just use 'w+'
timmow has quit [Ping timeout: 252 seconds]
<Matip> first, I need to be able to write, so "r"
<Matip> and second, I call a function that truncate it many times and start it again
<bnagy> Matip: w is write
pasties has joined #ruby
<Matip> yeah, but you can't read with w, can you?
<bnagy> you can with w+
<Matip> anyway, I truncates it many times, it's the same in this case
<Matip> truncate*
sleetdrop has joined #ruby
nateberkopec has joined #ruby
ocnam has quit [Quit: Quit: Textual IRC Client: http://www.textualapp.com/]
banisterfiend has quit [Ping timeout: 240 seconds]
<Matip> this is the content of the file after writing a "9" 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 390a
JaTochNietDan has left #ruby ["Leaving"]
mercwithamouth has joined #ruby
<bnagy> maybe truncate isn't resetting your cursor?
browndawg has joined #ruby
<bnagy> yeah, looks like
ariedler has quit [Remote host closed the connection]
<bnagy> rewind your handle before you write again, should fix it
BryanRuiz has joined #ruby
<BryanRuiz> so i just sudo gem install bundler
<bnagy> I'm so sorry
<BryanRuiz> but if i run the command bundler, it does not exist
grenierm has left #ruby [#ruby]
<BryanRuiz> what am i doing wrong?
<Matip> yep, you're right bnagy. thanks!
<bnagy> Matip: np
wreckimnaked has joined #ruby
<BryanRuiz> are gem's installed system wide or per project?
chrishough has quit [Quit: chrishough]
eykosioux has quit [Remote host closed the connection]
eykosioux has joined #ruby
echevemaster has joined #ruby
echevemaster has quit [Changing host]
echevemaster has joined #ruby
Davey has joined #ruby
<BryanRuiz> does this look familiar to anyone? /home/gitlab/gitlab/config/initializers/carrierwave.rb:1: invalid regular expression; [:word:] is not a character class: /[^[:word:]\.\-\+]/
nateberkopec has quit [Ping timeout: 264 seconds]
Davey has quit [Max SendQ exceeded]
ner0x has quit [Quit: Leaving]
Davey has joined #ruby
psyprus has quit [Read error: Connection reset by peer]
<bnagy> depends what you mean by familiar - I haven't seen it before, but the error is pretty clear
psyprus has joined #ruby
<bnagy> [:word:] is not a character class. Computers are smart!
<BryanRuiz> :)
<bnagy> [[:word:]] is though
<BryanRuiz> yeah, im trying to figure out why this application that always use to work all of a sudden doesnt work
IrishGringo has quit [Quit: ChatZilla 0.9.90 [Firefox 20.0/20130326150557]]
<BryanRuiz> someone said update bundler
<bnagy> did they change syntax? :/
<bnagy> 18>> p /[[:word:]]/
<eval-in> bnagy => /tmp/execpad-2e0142469d70/source-2e0142469d70:2: invalid regular expression; [:word:] is not a character class: /[[:word:]]/ (http://eval.in/16371)
<BryanRuiz> not sure.. im a lost php developer
<bnagy> 19>> p /[[:word:]]/
<eval-in> bnagy => /[[:word:]]/ ... (http://eval.in/16372)
eykosioux has quit [Ping timeout: 258 seconds]
keymone_ has joined #ruby
<bnagy> what the...
<bnagy> 18>> p /[:word:]/
<eval-in> bnagy => /[:word:]/ ... (http://eval.in/16373)
<bnagy> so lame! Why would they do that??
aemeredith has quit [Remote host closed the connection]
<bnagy> BryanRuiz: you're just going to have to fix it, 1.8 is EOL anyway
<BryanRuiz> so what happened, ruby was updated and it broke something with old code?
<bnagy> yeah
<BryanRuiz> hmph
<BryanRuiz> ok, so i should use [[:word:]] instead?
<bnagy> how big is the app? It shouldn't be too bad
<BryanRuiz> not sure
<BryanRuiz> its gitlabs
keymone has quit [Ping timeout: 264 seconds]
goganchic has joined #ruby
keymone_ is now known as keymone
hogeo_ has joined #ruby
dmiller has quit [Remote host closed the connection]
<bean> gitlab 5.0 requires ruby 1.9
<bean> BryanRuiz,
<BryanRuiz> well im running 2.8.2 so am i right in assuming that the bundler should install the correct version of ruby?
<BryanRuiz> there is a Gemfile that i think bundler reads and then installs the stuff
<BryanRuiz> but i guess ruby isnt a gem
<bean> oh jesus
<bean> dude
<bean> 2.8.2 thats really old.
<bean> can you upgrade?
<BryanRuiz> ill have to discuss with team
<BryanRuiz> eh
<bean> like, 5.0 has groups of projects, and teams.
<bean> its really nice.
<BryanRuiz> i just wanted to look at some source code gosh
slightair is now known as slightairx
<bean> oh, just clone the repo, if you know the url.
slightairx is now known as slightair
<bean> gitlab doesn't need to be started to clone
<bean> since thats purely ssh.
<BryanRuiz> but yeah if you can answer my question about bundler id apprecaite it, does it install ruby too? or is ruby a system wide thing
<bean> ruby is system wide.
<bnagy> uh
hogeo has quit [Ping timeout: 252 seconds]
<bean> unless you use RVM, or rbenv
<BryanRuiz> alrighttty
<BryanRuiz> at least i get whats going on
<BryanRuiz> thanks guyts
yacks has quit [Ping timeout: 240 seconds]
ananthakumaran has joined #ruby
<BryanRuiz> wait a minute
<BryanRuiz> i see paths like this: /home/gitlab/gitlab/rake/ruby/1.8/gems/railties-3.2.8/lib/rails/engine.rb
IceDragon has quit [Ping timeout: 258 seconds]
<BryanRuiz> eh nvm
<BryanRuiz> i get it
<bean> looks like
<BryanRuiz> ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
<BryanRuiz> is what ruby --version shows
<BryanRuiz> looks good?
<bean> "sudo gem install bundler"
<bean> and then bundle install
<BryanRuiz> yeah i did that
goganchic has quit []
<BryanRuiz> trying to fix things
<BryanRuiz> both of those commands
altin has joined #ruby
yacks has joined #ruby
<altin> Sorry for pasting the error here: I don't think it's too long
<altin> /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- facets/string/titlecase (LoadError)
<altin> from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
<altin> from ./louisville.rb:6:in `<main>'
<BryanRuiz> ok let me try fixing the error by replacing [:word:] with [[:word:]]
<altin> What might be the problem ?
<bean> altin, you're missing a gem.
<altin> bean: I tried to get dev version of 1.9
<altin> but that didn't fix it
quazimodo has quit [Ping timeout: 276 seconds]
ZachBeta has quit [Quit: Computer has gone to sleep.]
<altin> bean: what gem
<bean> altin, "gem install facets"
<altin> ?
<altin> ow
<altin> ok
<altin> thanks :)
browndawg has left #ruby [#ruby]
Heero has joined #ruby
<bnagy> BryanRuiz: you can run ruby -wc blah.rb and you'll get linter output
NiteRain has joined #ruby
<bnagy> so you can see right away any 1.9 syntax errors
<bnagy> still doesn't guarantee that it will all work correctly though. If they've got a test suite you could try and run that
<BryanRuiz> but it aint 1.9 bnagy, it seems like i have 1.8.7 installed unless ruby is installed some other way
<BryanRuiz> im trying to figure out how to fix this regular expression now: /[^[[:word:]]\.\-\+]/
cbot_ has joined #ruby
kofno has joined #ruby
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
<BryanRuiz> is there a way to undo what i did with bundle install?
<BryanRuiz> can i just delete a folder or something?
etcetera has quit []
<bnagy> 19>> p /[^[[:word:]]\.\-\+]/
<eval-in> bnagy => /[^[[:word:]]\.\-\+]/ ... (http://eval.in/16375)
ZachBeta has joined #ruby
<bean> bundle clean will uninstall all the gems in the gem file
<bnagy> looks ok, without any context
dhruvasagar has quit [Ping timeout: 264 seconds]
mneorr has joined #ruby
<BryanRuiz> 18>> p /[^[[:word:]]\.\-\+]/
<eval-in> BryanRuiz => /tmp/execpad-9cfa413080df/source-9cfa413080df:2: warning: character class has `[' without escape ... (http://eval.in/16377)
<bnagy> BryanRuiz: well which ruby interpreter is actually being invoked can become tricky
elux has quit [Quit: Leaving...]
<BryanRuiz> i think i need that expression to work with 1.8.7
<bnagy> you can add p RUBY_VERSION to the actual file that's erroring out and try whatever you're trying
<altin> bean: what about > `require': cannot load such file -- proj4 (LoadError)
<bnagy> BryanRuiz: the best thing you can do is to get rid of 1.8.7, srsly
<BryanRuiz> ill give that a shot bnagy
<bean> altin, does this project have a Gemfile?
<BryanRuiz> you know what
<BryanRuiz> fine
<BryanRuiz> ill do that
<altin> bean: /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- proj4 (LoadError)
<bnagy> what os are you on?
mneorr has quit [Remote host closed the connection]
forced_request has quit [Read error: Connection reset by peer]
<BryanRuiz> hopefully i can upgrade via ubtuntu's apt-get update
<BryanRuiz> ubuntu
kofno has quit [Ping timeout: 258 seconds]
<bean> altin, yeah, is there a Gemfile?
<altin> gem install proj4 ins not a valid gem... bean
mneorr has joined #ruby
<bnagy> ok. ubuntu does have up to date packages, you might need to update-alternatives though
<bean> altin, i didn't say to do that, is there a file called "Gemfile" in this project?
ckrailo has joined #ruby
<altin> no bean
<bean> what is the project?
<bean> gem install proj4rb
<bnagy> BryanRuiz: apart from being slow and insecure, 1.8 is end of life. You should move to at least 1.9 and tbh probably 2.0
bradhe has quit [Remote host closed the connection]
<BryanRuiz> how does one move to 1.9 on ubuntu
<BryanRuiz> or should i ask google gods for that one
<bnagy> there should be minimal to no syntax issues between 1.9 and 2.0 and 2.0 is better and faster
<bnagy> well I use rbenv, but you could use chruby as well - BUT I only install at user level
<bnagy> for gitlab you might need a system install...
<bean> what version of ubuntu
<bnagy> imvho I would get the 2.0 stable tarball and configure make sudo make install and then update-alternatives
<bean> naw
<bnagy> but Hanmac assures me that you can do it through apt and not die
<bean> theres packages that are ok
<bean> in ubuntu
quazimodo has joined #ruby
<bean> its true
<bean> you can
<bean> (though i build it on my mac)
etcetera has joined #ruby
baba is now known as hack
IceDragon has joined #ruby
mneorr has quit [Ping timeout: 258 seconds]
divout has joined #ruby
<Hanmac1> BryanRuiz: "apt-get install ruby1.9.1-full" PS: on newer ubuntu 1.9 is default, than "update-alternatives --config ruby" "update-alternatives --config gem"
gabrielrotbart has joined #ruby
<altin> bean: it is OpenStreetMap related
<bnagy> Hanmac1: you wouldn't go straight to 2.0?
<altin> I guess its asking http://trac.osgeo.org/proj/
<bean> altin: gem install proj4rb
Xlab has joined #ruby
<Hanmac1> bnagy depends if he wants to use packages or not ... i use currently a trunk
<bnagy> packages are probably more sane :)
aemeredith has joined #ruby
aemeredith has quit [Remote host closed the connection]
thams has joined #ruby
aemeredith has joined #ruby
btaitelb has quit [Quit: btaitelb]
<BryanRuiz> how do i do p RUBY_VERSION in a file? put an exit after it?
rhinux_ has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
<bnagy> BryanRuiz: if you put that on a line by itself it will just print the version to stdout and then do whatever comes next
<BryanRuiz> i hit an error next
<bnagy> from your regexp? Yeah, but it should still print the version
quazimodo has quit [Ping timeout: 256 seconds]
ariedler has joined #ruby
<BryanRuiz> thx for your help guys, still a bit lost.. so im doing this from the browser and im getting a pretty error message from Passenger?
mafs has joined #ruby
mafs has quit [Excess Flood]
bluOxigen has joined #ruby
<BryanRuiz> with no output from p RUBY_VERSION
<bnagy> ohhh yeah that version is just going to be going to a tty somewhere, or maybe lost forever, it won't go to the webpage
bhaarat has quit [Quit: bhaarat]
Xeago has joined #ruby
<bnagy> hacky, but File.open("/tmp/ruby_version") {|io| io.puts RUBY_VERSION}
<BryanRuiz> ill try it :)
brianpWins has joined #ruby
rgbdev has quit [Ping timeout: 240 seconds]
<bnagy> uh.. sorry File.open("/tmp/ruby_version",'w') {|io| io.puts RUBY_VERSION}
<bnagy> don't think create is default
mafs has joined #ruby
cbot_ has quit [Read error: Operation timed out]
<altin> gem install proj4rb gave me this > http://pastebin.com/Rn8QD6UJ
Xeago has quit [Ping timeout: 255 seconds]
<BryanRuiz> see any bugs in that line bnagy, im gettin nothing
<bean> altin, I don't think I can help you because I don't know how to use proj4
timmow has joined #ruby
hack is now known as megha
<bnagy> BryanRuiz: the file wasn't created?
mafs has joined #ruby
mafs has quit [Excess Flood]
<BryanRuiz> no bnagy
<BryanRuiz> :/
<bnagy> lame. perms I guess.
mafs has joined #ruby
mafs has quit [Excess Flood]
<BryanRuiz> ill try a different path
<BryanRuiz> then
mafs has joined #ruby
mafs has quit [Excess Flood]
mafs has joined #ruby
mafs has quit [Excess Flood]
bluOxigen has quit [Ping timeout: 258 seconds]
love_color_text has joined #ruby
mafs has joined #ruby
mafs has quit [Excess Flood]
akam-it has quit [Remote host closed the connection]
mafs has joined #ruby
mafs has quit [Excess Flood]
timmow has quit [Ping timeout: 252 seconds]
mafs has joined #ruby
mafs has quit [Excess Flood]
mafs has joined #ruby
mafs has quit [Excess Flood]
freerobby has quit [Quit: Leaving.]
freeayu has quit [Ping timeout: 256 seconds]
mafs has joined #ruby
mafs has quit [Excess Flood]
thams has quit [Ping timeout: 260 seconds]
mafs has joined #ruby
mafs has quit [Excess Flood]
mafs has joined #ruby
mafs has quit [Excess Flood]
mafs has joined #ruby
mafs has quit [Excess Flood]
tommyvyo has joined #ruby
mafs has joined #ruby
mafs has quit [Excess Flood]
mafs has joined #ruby
mafs has quit [Excess Flood]
miso1337 has joined #ruby
bradhe has joined #ruby
mafs has joined #ruby
mafs has quit [Excess Flood]
freeayu has joined #ruby
mafs has joined #ruby
hogeo_ has quit [Read error: Connection reset by peer]
mafs has quit [Excess Flood]
<miso1337> howdy friends
ariedler has quit [Remote host closed the connection]
beneggett has joined #ruby
mafs has joined #ruby
mafs has quit [Excess Flood]
mafs has joined #ruby
mafs has quit [Excess Flood]
hogeo has joined #ruby
mafs has joined #ruby
mafs has quit [Excess Flood]
aemeredith has quit [Remote host closed the connection]
freakazoid0223 has quit [Ping timeout: 258 seconds]
mafs has joined #ruby
mafs has quit [Excess Flood]
ariedler has joined #ruby
mafs has joined #ruby
mafs has quit [Excess Flood]
mafs has joined #ruby
mafs has quit [Excess Flood]
mafs has joined #ruby
mafs has quit [Excess Flood]
harrymoreno has joined #ruby
ariedler has quit [Remote host closed the connection]
basex has joined #ruby
mafs has joined #ruby
mafs has quit [Excess Flood]
mafs has joined #ruby
mafs has quit [Excess Flood]
mafs has joined #ruby
mafs has quit [Excess Flood]
mafs has joined #ruby
mafs has quit [Excess Flood]
aemeredith has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
hamakn has quit [Remote host closed the connection]
harrymoreno has quit [Client Quit]
mafs has joined #ruby
mafs has quit [Excess Flood]
mafs has joined #ruby
mafs has quit [Excess Flood]
mafs has joined #ruby
mafs has quit [Excess Flood]
bradhe has joined #ruby
mafs has joined #ruby
mafs has quit [Excess Flood]
tomzx_mac_ has joined #ruby
mafs has joined #ruby
mafs has quit [Excess Flood]
aapzak has quit [Ping timeout: 256 seconds]
tomzx_mac has quit [Ping timeout: 258 seconds]
mafs has joined #ruby
mafs has quit [Excess Flood]
eykosioux has joined #ruby
mafs has joined #ruby
mafs has quit [Excess Flood]
mafs has joined #ruby
mafs has quit [Excess Flood]
hach has quit [Quit: leaving]
mafs has joined #ruby
mafs has quit [Excess Flood]
brianpWins has quit [Quit: brianpWins]
Dreamer3 has left #ruby ["Leaving..."]
mafs has joined #ruby
mafs has quit [Excess Flood]
hogeo has quit [Ping timeout: 256 seconds]
mafs has joined #ruby
mafs has quit [Excess Flood]
mafs has joined #ruby
mafs has quit [Excess Flood]
macmartine has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
mafs has joined #ruby
mafs has quit [Excess Flood]
shadoi has joined #ruby
aapzak has joined #ruby
ioNull has joined #ruby
mafs has joined #ruby
mafs has quit [Excess Flood]
beneggett has joined #ruby
mafs has joined #ruby
mafs has quit [Excess Flood]
mafs has joined #ruby
mafs has quit [Excess Flood]
chandankumar has joined #ruby
mafs has joined #ruby
mafs has quit [Excess Flood]
mafs has joined #ruby
mafs has quit [Excess Flood]
mafs has joined #ruby
mafs has quit [Excess Flood]
Davey has quit [Quit: Computer has gone to sleep.]
mafs has joined #ruby
Domon has quit [Remote host closed the connection]
kofno has joined #ruby
Xlab has quit [Remote host closed the connection]
tommyvyo has quit [Quit:]
f0ster has quit [Ping timeout: 258 seconds]
kofno has quit [Ping timeout: 246 seconds]
Davey has joined #ruby
IceDragon has quit [Quit: Space~~~]
sleetdrop has quit [Quit: Computer has gone to sleep.]
hamakn has joined #ruby
freeayu has quit [Ping timeout: 256 seconds]
macmartine has quit [Quit: Computer has gone to sleep.]
brianpWins has joined #ruby
artofraw has joined #ruby
kimteq has quit [Remote host closed the connection]
freeayu has joined #ruby
ckrailo has quit [Ping timeout: 276 seconds]
ARCADIVS has joined #ruby
aemeredith has quit [Remote host closed the connection]
ckrailo has joined #ruby
pedda has quit [Quit: Computer has gone to sleep.]
etcetera has quit []
aderyabin has joined #ruby
artofraw has quit [Remote host closed the connection]
kofno has joined #ruby
ThePicard_ has joined #ruby
ThePicard has quit [Quit: Engage]
ThePicard_ is now known as ThePicard
ananthakumaran has joined #ruby
kofno has quit [Remote host closed the connection]
mafs has quit [Quit: Quit]
viuo has quit [Ping timeout: 245 seconds]
aapzak has quit [Ping timeout: 264 seconds]
timmow has joined #ruby
tylersmith has joined #ruby
viuo has joined #ruby
aapzak has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
ThePicard has quit [Quit: Engage]
hemanth has joined #ruby
SCommette has quit [Quit: SCommette]
ThePicard has joined #ruby
SCommette has joined #ruby
timonv has joined #ruby
nateberkopec has joined #ruby
eykosioux has quit [Remote host closed the connection]
eykosioux has joined #ruby
eykosioux has quit [Read error: Connection reset by peer]
kofno has joined #ruby
eykosioux has joined #ruby
iamjarvo has quit [Quit: Leaving.]
shmoon has left #ruby [#ruby]
Domon has joined #ruby
nateberkopec has quit [Ping timeout: 245 seconds]
aapzak has quit [Ping timeout: 255 seconds]
tylersmith has quit [Quit: tylersmith]
pitzips has quit [Ping timeout: 245 seconds]
aemeredith has joined #ruby
pyrac has joined #ruby
aemeredith has quit [Remote host closed the connection]
aemeredith has joined #ruby
aapzak has joined #ruby
timonv has quit [Remote host closed the connection]
nignaztic has joined #ruby
heftig has quit [Quit: Quitting]
bradhe has quit [Remote host closed the connection]
chandankumar has quit [Quit: Leaving]
aemeredith has quit [Ping timeout: 246 seconds]
DonRichie has joined #ruby
codecop has joined #ruby
nignaztic has quit [Client Quit]
ThePicard has quit [Quit: Engage]
ThePicard has joined #ruby
tonini has joined #ruby
aapzak has quit [Read error: Operation timed out]
a_a_g has joined #ruby
aspiers has quit [Ping timeout: 264 seconds]
aapzak has joined #ruby
jonathanwallace has quit [Ping timeout: 245 seconds]
chussenot has joined #ruby
Rumsteak has joined #ruby
SCommette has quit [Quit: SCommette]
jekotia has quit [Quit: ChatZilla 0.9.90-rdmsoft [XULRunner 18.0.2/20130201065344]]
bradhe has joined #ruby
mercwithamouth has quit [Ping timeout: 246 seconds]
chussenot has quit [Ping timeout: 245 seconds]
bradleyprice has joined #ruby
ph^ has joined #ruby
sleetdrop has joined #ruby
Xeago has joined #ruby
girija has joined #ruby
chussenot has joined #ruby
kofno has quit [Remote host closed the connection]
aganov has joined #ruby
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
tagrudev has joined #ruby
wsterling has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 245 seconds]
ph^ has quit [Ping timeout: 258 seconds]
knapper_tech has quit [Ping timeout: 256 seconds]
kofno has joined #ruby
knapper_tech has joined #ruby
quazimodo has joined #ruby
chussenot has quit [Ping timeout: 264 seconds]
DonRichie has quit [Quit: Verlassend]
ehellman has joined #ruby
kofno has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
shadoi has quit [Quit: Leaving.]
Chinorro has joined #ruby
Mon_Ouie has joined #ruby
elkclone has joined #ruby
wallerdev has quit [Quit: wallerdev]
jenrzzz has quit [Quit: later]
MrZYX|off is now known as MrZYX
tomzx_mac_ has quit [Quit: return 0;]
backjlack has joined #ruby
tomzx_mac has joined #ruby
timmow has joined #ruby
Skofo has joined #ruby
subbyyy has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby
v0n has quit [Ping timeout: 260 seconds]
benlieb has joined #ruby
aemeredith has joined #ruby
aemeredith has quit [Remote host closed the connection]
aemeredith has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
<bnagy> output.lines.to_a[0..-2] displeases me :(
pyrac has quit [Quit: pyrac]
love_color_text has quit [Read error: Connection reset by peer]
Mon_Ouie has quit [Ping timeout: 255 seconds]
pioz has joined #ruby
puppeh has joined #ruby
krz has joined #ruby
chandankumar has joined #ruby
pioz has quit [Client Quit]
cantonic has joined #ruby
harrymoreno has joined #ruby
sambio has quit []
momomomomo has quit [Quit: momomomomo]
chussenot has joined #ruby
fschuindt has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
bradhe_ has joined #ruby
knapper_tech has quit [Ping timeout: 245 seconds]
bradhe has quit [Ping timeout: 256 seconds]
tomzx_mac has quit [Ping timeout: 258 seconds]
chussenot has quit [Ping timeout: 252 seconds]
bradhe_ has quit [Remote host closed the connection]
rippa has joined #ruby
hogeo has joined #ruby
rakl has quit [Quit: sleeping]
ph^_ has joined #ruby
Vainoharhainen has joined #ruby
Xlab has joined #ruby
ehellman has quit []
Xeago has joined #ruby
noop has joined #ruby
Xeago has quit [Remote host closed the connection]
Xlab has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
aderyabin has quit [Remote host closed the connection]
aemeredith has quit [Remote host closed the connection]
keymone_ has joined #ruby
sayan has joined #ruby
jhn has quit [Read error: Operation timed out]
vlad_starkov has quit [Ping timeout: 260 seconds]
Xlab has joined #ruby
bigkevmcd has joined #ruby
aemeredith has joined #ruby
aemeredith has quit [Remote host closed the connection]
keymone_ has quit [Ping timeout: 258 seconds]
apeiros has joined #ruby
aemeredith has joined #ruby
chussenot has joined #ruby
pagios has joined #ruby
aemeredith has quit [Remote host closed the connection]
<pagios> hello
aemeredith has joined #ruby
dr_bob has joined #ruby
tobyo has quit [Ping timeout: 256 seconds]
aemeredith has quit [Remote host closed the connection]
bradleyprice has quit [Remote host closed the connection]
Caius has quit [Ping timeout: 252 seconds]
slainer68 has joined #ruby
chandankumar has quit [Read error: Connection reset by peer]
Hanmac has joined #ruby
jprovazn has joined #ruby
chussenot has quit [Ping timeout: 264 seconds]
callmeivan has quit [Remote host closed the connection]
callmeivan has joined #ruby
eykosioux has quit [Remote host closed the connection]
Morkel has joined #ruby
eykosioux has joined #ruby
Guest2782 has joined #ruby
sleetdro_ has joined #ruby
slainer68 has quit [Ping timeout: 258 seconds]
<krz> artist_video_path and artist_photo_path are a methods. how could i write it as such pseudo code: artist_#{foo}_path foo can either be "video" or "photo"
sleetdrop has quit [Ping timeout: 240 seconds]
sleetdro_ is now known as sleetdrop
cantonic has quit [Quit: cantonic]
LnL has joined #ruby
bradhe has joined #ruby
nomenkun has quit [Remote host closed the connection]
callmeivan_ has joined #ruby
eykosioux has quit [Ping timeout: 256 seconds]
clocKwize has joined #ruby
chussenot has joined #ruby
callmeivan__ has joined #ruby
banisterfiend has joined #ruby
puppeh has quit [Read error: Connection reset by peer]
bigkevmcd has quit [Ping timeout: 252 seconds]
Guest2782 has quit [Excess Flood]
Ca1us has joined #ruby
Ca1us has quit [Changing host]
Ca1us has joined #ruby
kofno has joined #ruby
jon_than_ has left #ruby [#ruby]
banisterfiend has quit [Read error: Connection reset by peer]
puppeh has joined #ruby
callmeivan has quit [Ping timeout: 256 seconds]
callmeivan__ is now known as callmeivan
bradhe has quit [Ping timeout: 255 seconds]
banisterfiend has joined #ruby
callmeivan_ has quit [Ping timeout: 264 seconds]
cantonic has joined #ruby
wsterling has joined #ruby
dr_bob has quit [Read error: Connection reset by peer]
teddyp1cker has joined #ruby
chussenot has quit [Ping timeout: 240 seconds]
kofno has quit [Ping timeout: 258 seconds]
pduin has joined #ruby
filipe has joined #ruby
yacks has quit [Read error: Operation timed out]
timmow has joined #ruby
wsterling has quit [Ping timeout: 258 seconds]
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
<krz> anyone
chandankumar has joined #ruby
<Hanmac> krz use send
clocKwize has quit [Quit: clocKwize]
gabrielrotbart has quit [Remote host closed the connection]
baz_ has quit [Quit: Leaving]
ph^_ has quit [Ping timeout: 245 seconds]
nari has quit [Ping timeout: 245 seconds]
gabrielrotbart has joined #ruby
postmodern has quit [Quit: Leaving]
timmow has quit [Ping timeout: 252 seconds]
Hanmac has quit [Ping timeout: 245 seconds]
r0bby has joined #ruby
bigkevmcd has joined #ruby
yacks has joined #ruby
nomenkun has joined #ruby
haxrbyte has joined #ruby
Xlab has quit [Remote host closed the connection]
ph^ has joined #ruby
Xlab has joined #ruby
gabrielrotbart has quit [Ping timeout: 245 seconds]
Hanmac has joined #ruby
eykosioux has joined #ruby
harrymoreno has quit [Quit: harrymoreno]
<s4muel> I remember seeing some kind of ruby idiom (i believe i saw it used in the pry shell) that shows you only the non-default methods, but i can't remember what it is.
robbyoconnor has quit [Ping timeout: 256 seconds]
<s4muel> exactly.
r0bby has quit [Read error: No route to host]
<s4muel> Anyone know what I'm talking about, or how to achieve that? :)
r0bby has joined #ruby
nateberkopec has joined #ruby
<Hanmac> s4muel: MyClass.instance_methods(false) #for sample?
chussenot has joined #ruby
keymone_ has joined #ruby
r0bby_ has joined #ruby
r0bby has quit [Read error: Connection reset by peer]
chiel has quit [Remote host closed the connection]
<s4muel> aha! it seems like for my case, Gem::methods(instance_methods=false) is doing what i need. Now, the real question is the best way to get a gem's installed path.
<s4muel> (thankyou Hanmac)
nateberkopec has quit [Ping timeout: 245 seconds]
ph^ has quit [Ping timeout: 260 seconds]
nari has joined #ruby
ph^ has joined #ruby
<Hanmac> s4muel: Gem::Specification.find_by_name("rdoc").gem_dir #=> "/usr/local/lib/ruby/gems/2.1.0/gems/rdoc-4.0.1"
chussenot has quit [Ping timeout: 256 seconds]
<s4muel> Hanmac -- thank you many times over.
robscomputer has quit [Remote host closed the connection]
pioz has joined #ruby
<pagios> i would like to build some graphical interface with ruby, what is the best tool to start with ? mainly it would be web based? http://en.wikibooks.org/wiki/Ruby_Programming/GUI_Toolkit_Modules
basex has quit [Quit: basex]
sleetdrop has quit [Quit: Computer has gone to sleep.]
JohnBat26 has joined #ruby
<Hanmac> pagios: i think none of the ones in the list are realy web based ... all of them are only for PC, not for browser
<pagios> Hanmac: what would be good for a browser
Spooner has joined #ruby
sleetdrop has joined #ruby
<Hanmac> pagios i think you are looking for website stuff like sinatra or rails
<undersc0re97> pagios: ruby on rails?
cantonic has quit [Quit: cantonic]
<undersc0re97> or sinatra
haxrbyte_ has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
<pagios> what would be the easiest to start with ruby on rails or sinatra? i mainly only need simple web graphical components like click on boxes to execute command etc
Scriptor has quit [Ping timeout: 258 seconds]
<Hanmac> pagios so do you want to make an website with clickable buttons or do you want to use an website so that your program clicks on the buttons for you? ...
timmow has joined #ruby
<sebastianb> I think he wants wysiwyg editor for rails or sinatra
* Hanmac hates the idea of "Make your Website into an Application" ... that really anoys me
<pagios> Hanmac: no i would like to do a small local website (runs on an STB box) and that stb box would have options to do different commands, that would execute at console level and return output to the graphical element
haxrbyte has quit [Ping timeout: 276 seconds]
<undersc0re97> pagios: first
<undersc0re97> learn ruby
<pagios> undersc0re97: i know the basics
vlad_starkov has joined #ruby
GhostingCoder011 has joined #ruby
rolton has joined #ruby
kemist has quit []
eykosioux has quit [Remote host closed the connection]
maxmanders has joined #ruby
eykosioux has joined #ruby
chussenot has joined #ruby
lmf40 has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
eykosioux has quit [Ping timeout: 248 seconds]
bigkevmcd has quit [Remote host closed the connection]
chussenot has quit [Ping timeout: 256 seconds]
bigkevmcd has joined #ruby
chussenot has joined #ruby
camilasa_ has joined #ruby
chussenot has quit [Client Quit]
hmarr has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
xlab_ has joined #ruby
alup has joined #ruby
mengu has joined #ruby
celinedior has joined #ruby
Ontolog has joined #ruby
Animawish has quit [Quit: Animawish]
MrZYX is now known as MrZYX|off
Xlab has quit [Ping timeout: 256 seconds]
unflores has joined #ruby
timonv has joined #ruby
nari has quit [Ping timeout: 245 seconds]
<pagios> Hanmac: for PC GUI which one would you recommend?
arturaz has joined #ruby
Xlab has joined #ruby
<Hanmac> pagios: i use rwx its my own wxRuby respawn ... but rubygnome is fine too i heard
GhostingCoder011 has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
andikr has joined #ruby
rolton has quit [Quit: Konversation terminated!]
Xlab has quit [Remote host closed the connection]
rolton has joined #ruby
Xlab has joined #ruby
ckwalsh has joined #ruby
threesome has joined #ruby
xlab_ has quit [Ping timeout: 258 seconds]
mfridh has joined #ruby
blacktulip has joined #ruby
bradhe has joined #ruby
Xlab has quit [Remote host closed the connection]
kofno has joined #ruby
rawler has quit [Ping timeout: 245 seconds]
teddyp1cker has quit [Remote host closed the connection]
gabrielrotbart has joined #ruby
bradhe has quit [Ping timeout: 256 seconds]
rawler has joined #ruby
peterhellberg has joined #ruby
marcdel has quit []
nari has joined #ruby
gener1c has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
gabrielrotbart has quit [Remote host closed the connection]
drumond19 has joined #ruby
yacks has quit [Quit: Leaving]
kofno has quit [Ping timeout: 258 seconds]
linusoleander has joined #ruby
marr has joined #ruby
Xlab has joined #ruby
sylvinus has joined #ruby
dr_bob has joined #ruby
nomenkun has quit [Remote host closed the connection]
<pagios> is their any library to use ncurse with ruby?
<hoelzro> pagios: Curses
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<hoelzro> although it's *really* low level
yacks has joined #ruby
Ontolog has quit [Remote host closed the connection]
<pagios> hoelzro: i am mainly researching a way to do some curse terminal coding that provide minimal gui features, i am afraid i cannot run x11 due to resource limitation
<hoelzro> ah
<pagios> anything equivalent to ncurse that would be coded high level with ruby?
<peterhellberg> pagios: I’d check out curses as hoelzro mentioned, especially since it is in the standard library
Xlab has quit [Remote host closed the connection]
Xlab has joined #ruby
puppeh has quit [Read error: Operation timed out]
blaxter has joined #ruby
<pagios> will that require dealing with pointers? c like?
<hoelzro> no
<hoelzro> Ruby doesn't have pointers =)
clocKwize has joined #ruby
<Quadlex> Ruby has hashes
<Quadlex> Any time you want to know if it has the features of another language, the answer is that it has hashes instead
RagingDave has joined #ruby
<Quadlex> </snark>
<peterhellberg> pagios: https://github.com/grosser/tic_tac_toe <- A simple "Tic Tac Toe" built with Ruby + curses
alup has quit [Ping timeout: 256 seconds]
<pagios> ok
schickung has joined #ruby
alup has joined #ruby
<peterhellberg> pagios: But as hoelzro said, it is fairly "low level", as in no higher level widgets or such
Neandre has joined #ruby
dagobah has joined #ruby
puppeh has joined #ruby
Xeago has joined #ruby
alup_ has joined #ruby
puppeh_ has joined #ruby
puppeh has quit [Read error: Connection reset by peer]
alup has quit [Read error: Connection reset by peer]
<kalleth> all our production apps use the debian ruby 1.9.3-p0 package
<kalleth> is this a Bad Thing(tm)?
<kalleth> or is it not really anyhting to worry about
<bnagy> didn't they fix awful ssl bugs after that?
atno has joined #ruby
Xeago has quit [Ping timeout: 260 seconds]
hogeo has quit [Read error: Connection reset by peer]
<kalleth> bnagy: that's what i'm wondering :)
hogeo has joined #ruby
pi3r has joined #ruby
<Hanmac> kalleth: ask the ubuntu devs why there is no new ruby packages ... i was wondering too why there is no new patchs
<kalleth> at least it could be latest 1.9
<kalleth> and they need to do 2.0 now
<kalleth> but LTS even backports takes a sodding age to do anything
rdark has joined #ruby
<kalleth> also, holy shit, they actually called 13.04 Raring Ringtail
<kalleth> i'm going to forever more refer to it as Raring Ringpiece
<kalleth> </mature>
haxrbyte_ has quit [Remote host closed the connection]
haxrbyte has joined #ruby
yacks has quit [Ping timeout: 246 seconds]
[rust] has quit [Quit: Leaving]
arya has joined #ruby
tevio has joined #ruby
hogeo has quit [Remote host closed the connection]
hogeo has joined #ruby
MrZYX|off is now known as MrZYX
chussenot has joined #ruby
troessner has joined #ruby
timmow_ has joined #ruby
<Hanmac> kalleth: if you ask me ... i am currently using nighly ruby ;P
hmarr has quit []
rickruby has quit [Remote host closed the connection]
Skofo has quit [Ping timeout: 256 seconds]
niceguyjames has joined #ruby
<kalleth> Hanmac: in production?
<Hanmac> not yet ;P
echevemaster has quit [Quit: Leaving]
lkba has quit [Ping timeout: 252 seconds]
elaptics`away is now known as elaptics
yacks has joined #ruby
hogeo has quit [Read error: Connection reset by peer]
eykosioux has joined #ruby
hogeo has joined #ruby
arya has quit [Ping timeout: 248 seconds]
linusoleander has quit [Quit: linusoleander]
ephemerian has joined #ruby
io_syl has quit [Ping timeout: 245 seconds]
<pagios> any idea?
slainer68 has joined #ruby
<Hanmac> pagios use require_relative
io_syl has joined #ruby
arya has joined #ruby
hogeo_ has joined #ruby
mneorr has joined #ruby
mneorr has quit [Remote host closed the connection]
ehellman has joined #ruby
hogeo_ has quit [Remote host closed the connection]
timonv has joined #ruby
Eising has joined #ruby
hogeo has quit [Ping timeout: 240 seconds]
niceguyjames has quit [Ping timeout: 252 seconds]
piotr_ has joined #ruby
<Eising> hey. Is Phusion Passenger still the prefered way of quickly deploying a ruby app (in this case with sinatra) on apache?
cantonic has joined #ruby
<jsaak> i think unicorn is the new guy, but ask #ror
<Eising> but it's not rails...
<jsaak> still
ferdev has joined #ruby
<Eising> Okay, I'll give them a shout
piotr__ has joined #ruby
piotr_ has quit [Ping timeout: 258 seconds]
<peterhellberg> Eising: Yes, if you want to deploy directly in Apache. But there are other alternatives if you want to proxy to a separate server (like Unicorn or Rainbows!)
<peterhellberg> Eising: I’m very happy with Nginx + Passenger
<bnagy> can you have unicorns AND rainbows?
<peterhellberg> bnagy: Why would you even want that? :)
angusiguess has quit [Ping timeout: 256 seconds]
<Eising> peterhellberg: I have no problem proxying...
<pagios> Hanmac: http://pastie.org/7568959 i did add require 'require_relative' i am using ruby 1.9.3
<Hanmac> pagios: i mean: require_relative "tic_tac_toe/version"
<peterhellberg> Eising: GitHub is using Unicorn… so it is pretty well tested in production :)
bradhe has joined #ruby
<pagios> ok
<Eising> I'll give it a spin then
elkclone has quit [Quit: It's never too late to unplug and run.]
m8 has joined #ruby
troessner has quit [Ping timeout: 248 seconds]
<peterhellberg> Eising: Note that it is “designed to only serve fast clients on low-latency, high-bandwidth connections”
<Eising> peterhellberg: what does that even mean?
athst has quit [Quit: athst]
eykosioux has quit [Remote host closed the connection]
<peterhellberg> Eising: That means that you need to take into consideration if your app will experience a lot of long requests/response times and/or slow clients.
d11wtq has quit [Ping timeout: 245 seconds]
<peterhellberg> Then Rainbows! would probably be a better fit: http://rainbows.rubyforge.org/
<peterhellberg> (Based on Unicorn)
eykosioux has joined #ruby
<Eising> peterhellberg: so it implements short HTTP timeouts, I take?
kofno has joined #ruby
bradhe has quit [Ping timeout: 256 seconds]
<kalleth> well, you can set it i thought
<peterhellberg> Eising: Something like that, yes.
<kalleth> to 30/60 sec
<kalleth> s'what gitlab uses
<peterhellberg> kalleth: Yes, but the documentation clearly states “Slow clients should only be served by placing a reverse proxy capable of fully buffering both the the request and response in between Unicorn and slow clients.”
eykosioux has quit [Read error: Connection reset by peer]
<peterhellberg> Not sure if 30-60 sec is to be considered slow though…
eykosioux has joined #ruby
chimmy has joined #ruby
<Eising> aye, so if I had a page that relied on a slow database query, it would probably be a bad idea
<peterhellberg> Eising: Precisely, but you should probably read up on the specifics. I’m generally using Nginx with Passenger and have only used Unicorn in a few tiny apps.
<peterhellberg> http://unicorn.bogomips.org/ <- Lots of very neat features
kofno has quit [Ping timeout: 258 seconds]
<Eising> Maybe I should just fire up sinatra. It usually works, and there seem to be lots of caveats on most other solutions :)
Zai00 has joined #ruby
<kalleth> sinatra is not an application server
<pagios> how can i solve this please? http://pastie.org/7569682
m8 has quit [Read error: Connection reset by peer]
<hoelzro> pagios: require 'curses'
<hoelzro> not ncurses
<pagios> ok
m8 has joined #ruby
<pagios> hoelzro: same error
callmeivan has quit [Ping timeout: 252 seconds]
m8 has quit [Read error: Connection reset by peer]
hmarr has joined #ruby
<Eising> why did I say Sinatra? I meant passenger
zmanfx has quit [Ping timeout: 245 seconds]
<pagios> i actually did apt-get install ncurses-dev
<pagios> do i have to import any gem for curses?
<hoelzro> I don't think so...
<peterhellberg> pagios: No, it is in the Ruby Standard Library
m8 has joined #ruby
<pagios> what could be my error related to?
<peterhellberg> Eising: Passenger + Apache/Nginx is a really simple way to deploy Rack applications without too much hassle
troessner has joined #ruby
<Eising> peterhellberg: yeah, I'm doing that then. It's what I usually do, actually, but I thought maybe something new and groundbreaking had emerged :)
nomenkun has joined #ruby
<shevy> since rack was mentioned, is there a way to avoid using .ru files and use .rb files instead?
<pagios> manually compiled ruby 1.9.3 on debian
zmanfx has joined #ruby
<peterhellberg> Eising: You might get better performance characteristics from something like nginx + unicorn, but it comes with a bit more configuration
<shevy> pagios is your ncurses installation complete?
<pagios> yes
<peterhellberg> No free lunch and so on :)
xcv has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
MrZYX is now known as MrZYX|off
<shevy> pagios if so, go to ext/curses/
<shevy> pagios then try to run the .rb file there
<pagios> shevy: which directory?
<shevy> pagios of the extracted ruby source tarball
<shevy> hmm
<peterhellberg> shevy: Do you have a reason for not using a config.ru?
brianpWins has quit [Quit: brianpWins]
<shevy> peterhellberg yeah! I dont like this extension :( but more seriously, my editor is ancient and too dumb to recognize .ru files
<pagios> not working still
<peterhellberg> shevy: Sounds like you need to update your editor :)
<shevy> pagios no no
<shevy> pagios, run extconf.rb
<shevy> and look for errors
<shevy> though, that is actually 'curses', not 'ncurses' ...
<pagios> ok it executed completed
callmeivan has joined #ruby
alup_ has quit [Read error: Connection reset by peer]
puppeh_ has quit [Read error: Connection reset by peer]
<shevy> "gem install ncurses"
<shevy> Fetching: ncurses-0.9.1.gem (100%)
<shevy> Building native extensions. This could take a while...
<pagios> what is the difference betWEEN ncurses and curses?
<shevy> pagios, ok good, perhaps your system can be rescued :D
alup_ has joined #ruby
<shevy> pagios both suck, but ncurses is new (n?) so it sucks less
puppeh has joined #ruby
ckwalsh has quit [Ping timeout: 256 seconds]
nateberkopec has joined #ruby
heftig has joined #ruby
<shevy> peterhellberg yeah but I love my editor :(
<pagios> shevy: what would be a better alternative if they both are not good
<Hanmac> its the new version so the sucking was increased by 50%
<shevy> pagios no, for terminal stuff there is no way around these, I think
<shevy> pagios do you know htop ?
<pagios> no
<shevy> ok let me find a screenshot
peanuts___ has joined #ruby
<peanuts___> Hi all
<pagios> its a monitoring thinh
<shevy> yes, ncurses based
buscon has joined #ruby
<shevy> that is what you can do with ncurses
<peanuts___> Small question about mongoid for people using it
<pagios> yes
hekin has joined #ruby
<peanuts___> I have a field into a document of type Symbol
<pagios> i actually want to automate some processes but i cannot use graphicals since i jhave limited resources
<shevy> pagios "gem install ncurses" worked?
<shevy> pagios both curses and ncurses have examples, when you install them
<shevy> you can look at them and tweak them
<peanuts___> but when I do a MyDocument.where(the_field: :the_value).count
<peanuts___> I get nothing … but I should obtain several records
<peanuts___> what is wrong with my query ?
zmanfx has quit [Ping timeout: 245 seconds]
security has joined #ruby
Zai00 has quit [Read error: Connection reset by peer]
nateberkopec has quit [Ping timeout: 258 seconds]
megha has quit [Ping timeout: 248 seconds]
angusiguess has joined #ruby
<pagios> received an error installed ncurses gem
<Hanmac> peanuts___: maybe that you are in the wrong channel? maybe the #rubyonrails preople are more helpfull
<peanuts___> Hanmac: ok, thanks … I'll try on #rubyonrails
zmanfx has joined #ruby
<shevy> pagios hmmmmm
El_loco has joined #ruby
<shevy> I have libncursesw.so.5.9
<shevy> pagios, what *ncurs* do you have in /usr/lib ?
<shevy> I tested this on 1.8.7 btw, the last cool ruby version :D
heftig has quit [Ping timeout: 245 seconds]
<Hanmac> shevy & pagios the ncurses gem looks like its for 1.8.6 ... thats why the error: ‘struct RArray’ has no member named ‘len’
* tobiasvl slaps shevy around a bit with a large trout
hdl has joined #ruby
<pagios> Hanmac: should it be backward compatible on 193?
<hdl> hi there
sleetdro_ has joined #ruby
<Hanmac> pagios & shevy 1.9.* and 1.8.7 have similar API ... but 1.8.6 have totaly different API ... and the ncursed was for 1.8.6 so it does not work with 1.8.7 or 1.9.*
<pagios> Hanmac: you mean i cant use ncurses/curses with the latest ruby release?
<hdl> is there anyone which know about a debian repository for uptodate ruby debian packages ?
chandankumar has quit [Read error: Connection reset by peer]
<Sp4rKy> §wg #puppet
<pagios> thats an ugly limitation then
chimmy has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
<Hanmac> pagios: if you realy want to use curses use the curses from the stdlib
<shevy> pagios ruby above 1.8.x is an ugly limitation, yes :)
gyre007 has joined #ruby
<shevy> I really must switch to utf for ruby alone :(
sleetdrop has quit [Ping timeout: 245 seconds]
sleetdro_ is now known as sleetdrop
vlad_starkov has joined #ruby
angusiguess has quit [Ping timeout: 258 seconds]
* JonnieCache has been learning go recently
<JonnieCache> all utf-8 all the time
<JonnieCache> anything that isnt utf8 is a byte array :)
<JonnieCache> taking a stand, i like it
Zai00 has joined #ruby
<shevy> have not had a need to use utf in 10 years
<pagios> will use: require "curses"
<pagios> include Curses
<shevy> somehow I have managed to survive
gyre008 has joined #ruby
tonini has quit [Remote host closed the connection]
postmodern has joined #ruby
nari has quit [Ping timeout: 245 seconds]
robustus has quit [Ping timeout: 255 seconds]
<pagios> btw is there a way to encrypt my ruby code so that it can execute but cannot be read by anyone but some privildeges users?
<pagios> privildged*
chussenot has quit [Quit: chussenot]
chussenot has joined #ruby
<shevy> dont think so
<shevy> it is just text file or?
<hoelzro> well
emergion has joined #ruby
<hoelzro> if your Ruby interpreter had the setuid bit set, that could do it
robustus has joined #ruby
<hoelzro> but that's a terrible, terrible, terrible idea.
gyre007 has quit [Ping timeout: 258 seconds]
charliesome_ has joined #ruby
gyre008 has quit [Remote host closed the connection]
gyre007 has joined #ruby
charliesome_ is now known as charliesome
dmiller has joined #ruby
clocKwize has quit [Quit: clocKwize]
<shevy> rubinius is still alive?
Xlab has quit [Remote host closed the connection]
<pagios> tobiasvl: cant you reverse bytecode to source code easily using some third party tools ? i prefer using some kind of encryption
hogeo has joined #ruby
noop has quit [Ping timeout: 255 seconds]
chussenot has quit [Read error: Connection reset by peer]
eka has joined #ruby
banisterfiend has quit [Remote host closed the connection]
chussenot has joined #ruby
dmiller has quit [Ping timeout: 264 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
benlieb has quit [Quit: benlieb]
cha1tanya has joined #ruby
<JonnieCache> pagios: you'll be fighting a losing battle all the way
nateberkopec has joined #ruby
lkba has joined #ruby
<pagios> why?
<pagios> there must be a a way to protect the source code
<Pierreb> im trying to do something that is way out of my league and im stuck
linusoleander has joined #ruby
chandankumar has joined #ruby
chessguy has quit [Remote host closed the connection]
browndawg has joined #ruby
<tobiasvl> pagios: that's a lot of code. do you have a specific problem?
<pagios> i would like to store some critical data in my code so i dont want it to be avaialbe for ppl having read access to the rb file
<tobiasvl> Pierreb: what the... what's this line? if ("#{$cnum}" = "#{$countrynum}" & "#{$email}" !=(null|0|nil) )
<pagios> is there a way to store that data in a hash for example?
<pagios> and load the hash for execution?
<injekt> Pierreb: did you just copy that code?
<injekt> Pierreb: there's absolutely nothing right about any of it
<Pierreb> yes and no
<tobiasvl> if "#{$email}" !=(null|0|nil)
<tobiasvl> what ... what
tomku has quit [Ping timeout: 246 seconds]
<Hanmac> pagios: critical like passwords should not go into code
<Pierreb> output from mysql, not sure what to put there
<bnagy> pagios: you can't protect code that will run on other people's computers
<injekt> Pierreb: most of that is not valid
<Pierreb> i want it to verify that email isnt empty
<Pierreb> would nil work?
<tobiasvl> Pierreb: you don't know ruby, do you
<pagios> Hanmac: mainly i would need to automate a process of sending some credentials from that application
tesuki has joined #ruby
<Pierreb> i have just started to learn ruby so yes i dont know ruby. however i need to make that work somehow and after that i can continue to learn
<injekt> Pierreb: no, you need to learn Ruby first
Axsuul has quit [Ping timeout: 264 seconds]
<tobiasvl> Pierreb: "#{$email}" interpolates a global (???) variable into a string. if $email is empty, the result will be the empty string, which is not equel to nil or 0. null isn't even a keyboard, and you can't chain together stuff like that anyway (nothing can be equal to the disjunction)
<injekt> because 90% of that code is ridiculous
<tobiasvl> for starters
BizarreCake has joined #ruby
<injekt> ("#{$cnum}" = "#{$countrynum}" & "#{$email}" !=(null|0|nil) )
<injekt> my favourite line
<bnagy> .. uh
<tobiasvl> yeah, i already pasted it
<tobiasvl> it's my favorite too
<bnagy> that is pretty epic fail
<tobiasvl> Pierreb: i'm sorry but you need to pick up a beginner's book in ruby and learn the basic syntax before tackling a (fairly) long script like that
<Pierreb> so how do i correct it then?
beiter has joined #ruby
<tobiasvl> no easy task
<tobiasvl> rewrite from scratch
<injekt> step 1: learn ruby
<Pierreb> ok ill try that then
<Hanmac> shevy whats your opinion about http://rubyencoder.com ? for me it smells like a fake ;P
jnoob22 has quit [Remote host closed the connection]
<bnagy> that is hilarious
noop has joined #ruby
<shevy> Hanmac lol
<bnagy> how do you even write that many lines that are nonsensical? Is it like pseudocode?
<shevy> Pierreb nil is for when something that does not exist
<shevy> Pierreb but if someone else wrote it, then trying to understand it is much harder
niceguyjames has joined #ruby
<bnagy> I love these aspirational objects, like Gmail and Channel :D
<JonnieCache> Hanmac: that is amazing
<JonnieCache> i bet its just rot13 or something
Pierreb_ has joined #ruby
clocKwize has joined #ruby
miso1337 has quit [Quit: afk]
kofno has joined #ruby
Pierreb has quit [Ping timeout: 255 seconds]
banisterfiend has joined #ruby
Pierreb_ has quit [Ping timeout: 245 seconds]
Pierreb has joined #ruby
jonathanwallace has joined #ruby
<Hanmac> JonnieCache: i can image an rubyEncriptor that uses pgp or something ... but its still unsecure
<JonnieCache> yeah well im sure we can all think of lots of ways around that
kofno has quit [Ping timeout: 258 seconds]
gosshedd has joined #ruby
<Hanmac> but i know: every protection can be broken ... thats why i do not care about ...
chessguy has joined #ruby
gosshedd has quit [Client Quit]
<JonnieCache> you could just get the interpreter to write out all the code to a file
security is now known as megha
<JonnieCache> or whatever
linusoleander has quit [Quit: linusoleander]
<JonnieCache> just read it out of memory with gdb
gosshedd has joined #ruby
Xeago has joined #ruby
<Hanmac> or the encrypt algorythm could be reverse enginiered
<bnagy> encryption algorithms don't need to be reversed
<bnagy> at least none worth using
dmiller has joined #ruby
nateberkopec has quit [Quit: Leaving...]
<bnagy> I'd probably just hook the parser in yarv and pull out src as the bytecode is being produced
<Hanmac> bnagy: okay i mean the decrypt, but its still possible
<bnagy> Hanmac: I just mean that the algorithms are very well known, you don't need to reverse engineer anything
<bnagy> the only thing secret is ( should be ) the key
<bnagy> trouble is all these dinky schemes involve putting the key on the same box as the encrypted source
<JonnieCache> exactly. its fundamentally a stupid idea
kelabot has joined #ruby
<JonnieCache> unless you want to plug in a usb token every time you execute the code
Xeago_ has joined #ruby
<bnagy> there are some OK setups like that
<JonnieCache> or use a kerberos server i suppose
codenapper has quit [Read error: Connection reset by peer]
schickung has quit [Quit: schickung]
codenapper has joined #ruby
dagobah_ has joined #ruby
Xeago has quit [Ping timeout: 256 seconds]
<bnagy> but it still has to, like, run
dormoose has quit [Read error: Connection reset by peer]
<JonnieCache> if your business will fail because someone else has access to your source code, maybe it sucks
dmiller has quit [Ping timeout: 258 seconds]
<bnagy> but yeah you can make an OK copy protector if you get to use a hardware dongle
tvw has joined #ruby
jonathanwallace1 has joined #ruby
<bnagy> but that's not the same as 'protecting your IP'
<bnagy> that's what copyright is for :D
pasties has quit [Ping timeout: 240 seconds]
dagobah has quit [Read error: Connection reset by peer]
<Hanmac> but the website says that you can open your suff with a loader ... so the algorythm cant be that complicated ...
jonathanwallace has quit [Ping timeout: 252 seconds]
<bnagy> oh I didn't even look at that website - it's bound to be complete wank
Matip has quit [Ping timeout: 256 seconds]
undersc0re97 has quit [Quit: Leaving]
<bnagy> but I guess it's for rails retards who want to protect their source from slightly more retarded customers, so the bar is pretty low
chessguy has quit [Remote host closed the connection]
El_loco has quit [Remote host closed the connection]
skattyadz has joined #ruby
<pagios> what would be the best way to protect my source code then?
<bnagy> legally
pasties has joined #ruby
<pagios> if consider i can give limited access to the client, for example allow only in /etc/passwd access to /path/myruby and not a shell
<tobiasvl> pagios: can you explain what exactly you want to protect
skattyadz has quit [Remote host closed the connection]
unflores has quit [Quit: unflores]
<pagios> tobiasvl: ok i have an STB box on which some data (critical ones) need to be stored to establish some communication with some third party servers, also some algorithms are done so i would like to protect this ruby script, now on the STB i can enforce restrictions on shell/OS level i am wondering if that is enough since for example a malicious user can just unplug the hardisk mount it on his machine and access the source code easiliy
<mklappstuhl> I want to get an Array that contains Date objects of the last 14 days. How would I do that?
<tobiasvl> what's an STB box?
<tobiasvl> a set top box box maybe
<tobiasvl> mklappstuhl: what do you mean? you want to generate a new array with 14 Date objects, one for each of the past 14 days?
<pagios> even when i encrypt the hardisk on the STB the user will be prompted to provide the password to decrypt so it does not make sense since he can always decrypt the hardisk once plugged on the malicous user's machine
<tobiasvl> mklappstuhl: (Date != day you know)
<mklappstuhl> tobiasvl: exactly
<pagios> tobiasvl: yes, consider the STB as a laptop for instance..
<bnagy> >> require 'date'; [*(Date.today - 14 .. Date.today)]
<eval-in> bnagy => [#<Date: 2013-04-01 ((2456384j,0s,0n),+0s,2299161j)>, #<Date: 2013-04-02 ((2456385j,0s,0n),+0s,2299161j)>, #<Date: 2013-04-03 ((2456386j,0s,0n),+0s,2299161j)>, #<Date: 2013-04-04 ((2456387j,0s,0n),+0s, ... (http://eval.in/16393)
<pagios> so i need some advice from the experts in here
<mklappstuhl> tobiasvl: yeah I know, I'm looking for something similar to Date.today
Matip has joined #ruby
jonathanwallace1 has quit [Ping timeout: 255 seconds]
<tobiasvl> i think bnagy hit the nail on the head
<mklappstuhl> bnagy: awesome!
br4ndon has joined #ruby
<bnagy> pagios: there is no way you can protect data on a computer to which an attacker has physical access
jonathanwallace has joined #ruby
<A124> Hey all.. Any idea how to use serial port?
<bnagy> pagios: are your comms even ssl, bro? ;)
<pagios> yes SSL tunnel
<pagios> but my concern is the physical box
<bnagy> A124: what OS, cause you can just open ttys0 etc on *nix
<pagios> i was thinking maybe i can send the code in realtime from the server to the box once connection is established and then destroy the data when the box is turned off :/
<pagios> dunno if it would be a goos solution
<bnagy> pagios: ok, I'll humour you and pretend this might ever work
<bnagy> does the attacker have to be able to log into this box?
<A124> bnagy: Win, Linux Both
<tobiasvl> man in the middle?
<pagios> tobiasvl: man in the middle wouldnt work on encrypted tunnel
<bnagy> pagios: cause if so, you're almost certainly screwed, if you have a skilled attacker
<bnagy> pagios: actually that depends how you verify ssl certs
<bnagy> but let's leave that for now
<pagios> bnagy: he cannot login to the box since the only thing he can access is SSH and that would only allow him to fire up the ruby script and not a shell
huoxito has joined #ruby
<bnagy> how is ssh access not logging in?
<pagios> unless he bruteforces the box but some scripts will just destroy the data if 20 consecurtive login trial fail
<A124> bnagy: Seems /dev/ttyS[0-9] could do on POSIX systems, now the part of Win :D
angusiguess has joined #ruby
<pagios> bnagy: it is logging in but again it is a restricted access he will not have a Shell access on his profile
camilasa_ has quit [Remote host closed the connection]
hmarr has quit [Ping timeout: 252 seconds]
<bnagy> why do you want to give them ssh acess at all? If they need to be able to run some script then serve it via a web interface or something
<bnagy> giving any ssh access is unsafe
<A124> CGI
<pagios> bnagy: correct, limitation is that the STB cannot support X11 it would be heavy on its resources
<bnagy> pagios: web interface has 0 to do with X
<pagios> webinterface = apache/rubyonrails
<bnagy> what is STB supposed to stand for anyway?
<bnagy> pagios: well that's one bloated, horrible way, yeah, I guess
neurone-2337 is now known as neurone-1337
<pagios> if we going web, X11 if we going local GUI on ruby
chase-work has joined #ruby
<A124> C:/Users/User/Documents/Ruby/win32serial.rb:127:in `[]=': no implicit conversion
<A124> of Fixnum into String (TypeError)
<bnagy> do web. X11 is basically like writing 'root here' on the side of the machine
<A124> bnagy: Any idea? I guess it has something to do with Ruby 1.8 -> 1.9
<pagios> but anyways even if i use web interface, the hardisk if plugged into another computer can be compromided
<pagios> compromised*
<bnagy> pagios: use full disk encryption
undersc0re97 has joined #ruby
undersc0re97 has joined #ruby
undersc0re97 has quit [Changing host]
lupine has joined #ruby
peanuts___ has quit [Quit: peanuts___]
<bnagy> and don't give them the password. Tell them if it turns off then it's a support callout
hmarr has joined #ruby
<pagios> bnagy: if i use full disk encryption, the STB will need the decryption pass to decrypt
<shevy> A124 come back to 1.8.x :)
<pagios> so i need to provide the password to the client user which can be a malicious user
<pagios> :)
<bnagy> it only needs it when it turns on
<A124> shevy: Why? :D
<shevy> A124 we need to use the best ruby version
<bnagy> and, if you read what I just wrote like 5 SECONDS AGO, don't do that
angusiguess has quit [Ping timeout: 258 seconds]
<A124> shevy: Hehe.. I like the new ones
gosshedd has quit [Quit: Lost terminal]
<A124> Thought 1.8.6 is classic
emergion has joined #ruby
hdl1 has joined #ruby
<pagios> bnagy: how would you solve it remotely? i am afraid that would need a physical intervention
<pagios> since OS didnt boot yet with a full disk encryption
<bnagy> there are hardware cards for that
mrmist has quit [Quit: leaving]
unflores has joined #ruby
<A124> shevy: I need to write a byte to absolute position in string .. gotta find that out
decentrality has quit [Quit: demonstrate freedom //]
hdl has quit [Ping timeout: 256 seconds]
<bnagy> but this is getting crap, and that means a 'full' PC, I dunno what your hardware constraints are
yshh has quit [Remote host closed the connection]
tonini has joined #ruby
<pagios> hehe
tesuki has quit [Remote host closed the connection]
<shevy> he codes on a potato
<A124> shevy: 124.chr does it
<shevy> 124.chr # => "|"
<shevy> indeed
<A124> shevy: I don't need that char.. but talking to serial and need to specify size. 124 was just a test :D
Zai00 has quit [Quit: Zai00]
<shevy> hehe
<shevy> oh man
<shevy> I have to switch to UTF and I dont wanna ...
unflores has quit [Remote host closed the connection]
unflores has joined #ruby
Zai00 has joined #ruby
mrmist has joined #ruby
<JonnieCache> boo hoo
<bnagy> pagios: basically this is boiling down to the 'trusted client' model, which is basically impossible to solve
<bnagy> basically. :/
bcuz has joined #ruby
fermion has joined #ruby
<Hanmac> bnagy: "trusted client" like that? http://pics.nase-bohren.de/trust-printer.jpg
includex has joined #ruby
nateberkopec has joined #ruby
<bnagy> owning printers is hilarious, shit persists for EVER
tonini_ has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
jonathanwallace1 has joined #ruby
d11wtq has joined #ruby
pothibo has joined #ruby
pcarrier has joined #ruby
<pagios> .0
<bnagy> anyway, this is all reminding me of why I got out of defensive security in the first place
<shevy> bnagy the booze?
<bnagy> so I'ma drink beer instead and write fuzzers
<bnagy> shevy: no, it's full of people that want to do stuff that's not doable
jonathanwallace has quit [Ping timeout: 264 seconds]
<bnagy> so they try and do it anyway, then it doesn't work
aespolov has joined #ruby
<pagios> bnagy: i think a good way is to create like a clientname/password send it to the server to authenticate once authenticated send the password to decrypt over the tunnel, load it to decerypt hardisk and then fire up the ruby script
peta_ has joined #ruby
bcuz has quit [Quit: Page closed]
peterhellberg has quit [Remote host closed the connection]
amal has quit [Ping timeout: 256 seconds]
yacks has quit [Ping timeout: 276 seconds]
<bnagy> ... ok sure, do that, whatever
jinie has joined #ruby
rking has quit [Ping timeout: 245 seconds]
yacks has joined #ruby
aespolov has quit [Remote host closed the connection]
jgrevich has quit [Remote host closed the connection]
<A124> bnagy: Umm..
<A124> Any idea bout the serial?
<A124> If I have blocking system call.. is thre a way to get out?
<A124> Interrupt does not seem to work
chussenot has quit [Quit: chussenot]
sleetdrop has quit [Quit: Computer has gone to sleep.]
<bnagy> A124: I don't know, I'd just be googling. Can't imagine it's too tricky though
rking has joined #ruby
amal has joined #ruby
amal has quit [Max SendQ exceeded]
fermion has quit [Quit: Computer has gone to sleep.]
amal has joined #ruby
heftig has joined #ruby
<A124> bnagy: It is.. sadly. the gem that exists just hangs up without sending data
<A124> bnagy: My approach was to directly talk to driver, but.. sadly, the call to kernel32 blocks
oneirophren has joined #ruby
<bnagy> A124: code?
<bnagy> and fwiw kernel32 isn't "talking directly to the driver" ;)
<A124> readFile = Win32API.new("Kernel32","ReadFile",["L","P","L","P","L"], "i")
<A124> res = readFile.call( @serialHandle, inpBuffer, numberBytesToRead, read, 0 )
<A124> That's the core
gosshedd has joined #ruby
<bnagy> tldr you can use readfileex async, or you can cancelio
<bnagy> or just, like read 1 :)
<bnagy> if you're using it sync I would just put it in a thread and have it push data onto a Queue
<bnagy> and imho you should port your win32api code to FFI now.
<bnagy> it's just Much Nicer in every way
<A124> bnagy: readfileex? cancelIO? . will take a look. But.. I can't read just one byte.. would be unusable
<bnagy> no it wouldn't dude, it's a _serial_ port, like max baud is 115200
<A124> bnagy: I'm glad I have it now. I don't know sh* bout Ruby and Windows, but some users use Win.. so I have to code in that
buscon has quit [Ping timeout: 260 seconds]
<bnagy> A124: seriously, win32api is not going to survive
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
<bnagy> it's already long in the tooth because it's married to MRI and 32 bit
<A124> bnagy: Yeah, cool, and? :D
<bnagy> FFI is easier to read and works better for corner cases
<A124> bnagy: If you supply me with serial that works with ruby on windows, I'll be cool.
jnoob22 has joined #ruby
* JonnieCache suddenly feels very grateful for being able to address his serial devices theough /dev/pty*
kofno has joined #ruby
Gonzih has joined #ruby
<A124> How to include file relative to the script? :D
<bnagy> require_relative
<A124> bnagy: Love.
<A124> Win32API.rb:26: [BUG] Segmentation fault
<A124> Cool
<bnagy> OMG U HAX0R3D WINDOWS
<JonnieCache> dont u mean winbl0ws
<JonnieCache> n00b
<A124> b00n
davetherat has joined #ruby
<bnagy> JonnieCache: nah because every had to stop calling it that once it became the most secure OS available
kofno has quit [Ping timeout: 256 seconds]
<bnagy> although win8 gui is pretty frickin wack
iphands_ has joined #ruby
<JonnieCache> SSSHHH!
<JonnieCache> we dont talk about that
<bnagy> well folks I hang with kind of have to :P
<A124> IDK I have Win7
<A124> And I much don't care proramaticaly bout it
<JonnieCache> i was talking about the security thing. as trendy OSS kids its important we dont advertise that fact ;)
alup_ has quit [Read error: Connection reset by peer]
puppeh has quit [Read error: Connection reset by peer]
tesuki has joined #ruby
buscon has joined #ruby
<A124> JonnieCache: I have only as a head, else I use terminals to Linux machines :P
alup_ has joined #ruby
<bnagy> meh I use osx
<bnagy> neither OSS nor secure, so #biwinning
<A124> Still *nix
puppeh has joined #ruby
<A124> So what's the prob?
freeayu has quit [Ping timeout: 252 seconds]
<JonnieCache> its evil. id make some analogy to the ring from LOTR if i didnt hate that hobbit shit so much
<JonnieCache> but yeah we dont need to have this conversation. sorry people.
<A124> Yeah. Could not figure this thing out.. it should timeout relatively soon and nothing
<bnagy> sorry, we were talking about security before and I got all carried away
<bnagy> A124: read the msdn link I gave you - you can CancelIoEx for that handle
<A124> bnagy: Link? :O Must lost it
<A124> Got it ^^
<bnagy> but sync read won't 'time out' ever, afaik
camilasa_ has joined #ruby
<A124> bnagy: If you set timeouts, it should block until timeout is reached
stowelly has joined #ruby
<bnagy> sure, but readfile doesn't have a timeout, does it?
buscon has quit [Read error: Operation timed out]
<bnagy> it's just like any normal sync read
kelabot has quit [Remote host closed the connection]
Gonzih has quit [Quit: IRC is just multiplayer vim.]
banisterfiend has quit [Remote host closed the connection]
coderhut has joined #ruby
yacks has quit [Read error: Operation timed out]
* lupine snorts
<lupine> mind you, given the past week, I think I'd prefer windows to mac
<lupine> fortunately, those aren't the only choices
tomku has joined #ruby
<lupine> condolences
<lupine> dyld
nari has joined #ruby
sylvinus has quit [Quit: sylvinus]
peterhellberg has joined #ruby
<lupine> honestly, it's relevant - dyld kills me with native-extension-gems under mac
hekin has quit [Quit: Textual IRC Client: www.textualapp.com]
<lupine> well, depending on what you're reading from, a timeout can cause EIO or other business in read()
yacks has joined #ruby
<lupine> but you wouldn't want to rely on it
<bnagy> lupine: this is kind of part of the reason I moved off all cext gems
<A124> bnagy: It does. If you set the timeout. Default it's 0, which is block indefinitely.
vlad_starkov has quit [Remote host closed the connection]
<lupine> bnagy, the gem in question is qtbindings, so barely an option ^^
<bnagy> A124: which API are you looking at?
Matip has quit [Ping timeout: 260 seconds]
ashka has joined #ruby
<bnagy> lupine: jruby!
<A124> Windows logic
<lupine> distributing a ruby qt application on windows and linux is easy. distributing it for mac is almost impossible
<lupine> yeah, we're committed to the mac system ruby at the moment
stowelly has left #ruby [#ruby]
<ashka> hello, I'm having some trouble : NameErrors popping up like "method `to_yaml' not defined in Object". Did I entirely broke ruby or what?
<bnagy> lupine: I am so sorry
<lupine> we make use of fork() and the rest
zmanfx has quit [Ping timeout: 245 seconds]
<lupine> me too :). it's made me even more grumpy about macs than usual
teddyp1cker has joined #ruby
<lupine> we'll farm it out to a contractor at some point, I'm sure
teddyp1cker has left #ruby [#ruby]
zmanfx has joined #ruby
<bnagy> lupine: rewrite the whole thing in jruby / swing :D
<A124> bnagy: "Kernel32", "SetCommTimeouts"
akam-it has joined #ruby
cantonic has quit [Quit: cantonic]
<lupine> that wouldn't help the fork() dependency
altin has quit [Ping timeout: 256 seconds]
<JonnieCache> lupine: what makes it impossible under mac when it works under linux and windows?
r0bby_ has quit [Ping timeout: 256 seconds]
veinofstars has quit [Quit: veinofstars]
<lupine> JonnieCache, dyld, that's what
ehellman has quit []
<bnagy> A124: .. I am not sure that's for what you think it's for
<JonnieCache> lupine: hmm my os-fu is too weak to really know what you mean
<JonnieCache> but it surprises me that its so different to linux
<lupine> utterly different
<bnagy> JonnieCache: jruby has no fork, either
<lupine> bnagy, in fairness, we could probably just about get away with spawn - but it's a lot of work to change
<bnagy> JonnieCache: which means it would need to be rearchitected, possibly radically
<bnagy> although possibly not
<JonnieCache> theres no way id use ruby for anything that has to be distributed
<bnagy> :|
<JonnieCache> i looked into it a while ago and i ran into issues much more trivial than yours and thought "hell no"
<JonnieCache> so you have my condolences
<bnagy> Dunno, I run a several hundred node fuzz cluster all on ruby
<lupine> it's trivial on linux, which is the platform I actually care about, and easy on windows
locriani has quit [Remote host closed the connection]
<JonnieCache> bnagy: i meant distributed as in "sent to people"
dallasm has joined #ruby
<bnagy> ohhhh, yeah OK :)
<lupine> as long as you're not using C extensions that rely on massive libraries, it's merely an arse on max
<lupine> mac*
angusiguess has joined #ruby
<bnagy> JonnieCache: but still - Jruby!
<lupine> as soon as you are, you have to start editing the load paths in your compiled units, in strange and interesting ways
* bnagy waves the little flag
<lupine> we do use jruby on the server side :)
<lupine> ...1.5.1
<bnagy> cross platform! Fast! Proper concurrency!
<JonnieCache> bnagy: yep. still lots of weird fiddly things though
<JonnieCache> library compatability etc
<JonnieCache> having to manage the fucking jvm in the first place :)
<bnagy> lupine: haha hahah ha. For a second there it looked like you said 1.5
<lupine> not even 1.5.6
<lupine> 1.5.1
<JonnieCache> 1.5 is ruby 1.8, yes?
gosshedd has quit [Quit: Lost terminal]
<lupine> aye, we're not off ruby1.8 yet
<lupine> although we are getting there
rclsilver has left #ruby [#ruby]
sleetdrop has joined #ruby
<lupine> the client runs in everything from 1.8.6 to 2.0.0
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
<bnagy> lupine: ok well it's sunset here in the tropics and I have to go drink G&T, but talking to you has really cheered me up :)
<lupine> :)
emergion has quit [Quit: Computer has gone to sleep.]
buscon has joined #ruby
nkr has joined #ruby
angusiguess has quit [Ping timeout: 258 seconds]
zmok has joined #ruby
postmodern has quit [Quit: Leaving]
xue_ has joined #ruby
xue has quit [Ping timeout: 258 seconds]
jekt has joined #ruby
soulofpeace has quit [Ping timeout: 240 seconds]
pcarrier has quit [Quit: Computer has gone to sleep.]
sambao21 has joined #ruby
nateberkopec has joined #ruby
iphands_ has quit [Ping timeout: 264 seconds]
jekt has left #ruby ["Leaving"]
Mon_Ouie has joined #ruby
yshh has joined #ruby
arya has quit [Ping timeout: 248 seconds]
locriani has joined #ruby
arya has joined #ruby
gani has joined #ruby
n3bul0n has joined #ruby
yann_ck has joined #ruby
Xlab has joined #ruby
divout has quit [Remote host closed the connection]
chussenot has joined #ruby
yshh has quit [Ping timeout: 246 seconds]
zmok has quit [Quit: Leaving]
Xlab has quit [Read error: Connection reset by peer]
browndawg has quit [Quit: Leaving.]
Xlab has joined #ruby
browndawg has joined #ruby
banisterfiend has joined #ruby
chandankumar has quit [Quit: Leaving]
basex has joined #ruby
jinie_ has joined #ruby
pi3r has quit [Quit: Leaving]
joshu has joined #ruby
joshu has left #ruby [#ruby]
sleetdrop has quit [Quit: Computer has gone to sleep.]
jinie_ has quit [Client Quit]
vlad_starkov has joined #ruby
pyrac has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
kofno has joined #ruby
browndawg has quit [Quit: Leaving.]
Scriptor has joined #ruby
pskosinski has joined #ruby
arya has quit [Ping timeout: 256 seconds]
arya has joined #ruby
Asus has joined #ruby
Asus is now known as Guest56522
Guest56522 has quit [Client Quit]
basex has quit [Quit: basex]
basex has joined #ruby
CarsonGutierrez has joined #ruby
browndawg has joined #ruby
casheew has quit [Read error: Connection reset by peer]
n3bul0n has left #ruby [#ruby]
casheew has joined #ruby
browndawg has quit [Client Quit]
mengu has quit [Quit: Konversation terminated!]
mengu has joined #ruby
banisterfiend has quit [Remote host closed the connection]
altin has joined #ruby
altin has quit [Changing host]
altin has joined #ruby
clocKwize has quit [Quit: clocKwize]
knapper_tech has joined #ruby
gani has quit [Quit: Page closed]
Neomex has joined #ruby
Neomex has quit [Client Quit]
clocKwize has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
yashshah has quit [Ping timeout: 256 seconds]
iphands_ has joined #ruby
nwertman has quit [Remote host closed the connection]
EPIK has quit [Ping timeout: 264 seconds]
mark_locklear has joined #ruby
cantonic has joined #ruby
idkazuma has joined #ruby
My_Hearing has joined #ruby
Mon_Ouie has quit [Ping timeout: 264 seconds]
LnL has quit [Quit: LnL]
mark_locklear has quit [Remote host closed the connection]
banisterfiend has joined #ruby
bhaarat has joined #ruby
subbyyy has joined #ruby
sepp2k has joined #ruby
Rumsteak has quit [Read error: No route to host]
pitzips has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
Rumsteak has joined #ruby
r0bby_ has joined #ruby
arya has quit [Ping timeout: 256 seconds]
jgarvey has joined #ruby
sailias has quit [Quit: Leaving.]
eykosioux has quit [Remote host closed the connection]
eykosioux has joined #ruby
r0bby_ is now known as robbyoconnor
pi3r has joined #ruby
NiteRain has quit [Ping timeout: 252 seconds]
coderhut has quit [Quit: Page closed]
yalue has joined #ruby
altin has quit [Read error: Operation timed out]
thinkdevcode has joined #ruby
eykosioux has quit [Ping timeout: 256 seconds]
MrZYX|off is now known as MrZYX
n3wb13 has joined #ruby
chase-work has quit [Quit: Textual IRC Client: www.textualapp.com]
angusiguess has joined #ruby
nkts has quit [Quit: -]
sylvinus has joined #ruby
thinkdevcode has quit [Remote host closed the connection]
CarsonGutierrez has quit [Ping timeout: 256 seconds]
nkontekst has joined #ruby
noop has quit [Ping timeout: 252 seconds]
m8 has quit [Quit: Sto andando via]
angusiguess has quit [Ping timeout: 246 seconds]
divout has joined #ruby
shevy has quit [Ping timeout: 264 seconds]
ananthakumaran has quit [Quit: Leaving.]
rickruby has joined #ruby
droppedonmyhead has joined #ruby
pcarrier has joined #ruby
n3wb13 has quit [Quit: Verlassend]
Czupa has joined #ruby
rickruby has quit [Ping timeout: 260 seconds]
ARCADIVS has quit [Quit: WeeChat 0.3.8]
robbyoconnor has quit [Ping timeout: 245 seconds]
carloslopes has joined #ruby
sylvinus has quit [Quit: sylvinus]
jandres has joined #ruby
moos3 has joined #ruby
noop has joined #ruby
tonini_ has quit [Remote host closed the connection]
wesside has quit [Ping timeout: 248 seconds]
forlin has joined #ruby
Matip has joined #ruby
moos3 has quit [Client Quit]
shevy has joined #ruby
iphands_ has quit [Ping timeout: 252 seconds]
atyz has joined #ruby
moos3_ has joined #ruby
banisterfiend has quit [Remote host closed the connection]
yshh has joined #ruby
etcetera has joined #ruby
TomJ has joined #ruby
TomJ has joined #ruby
smt has joined #ruby
clocKwize has quit [Quit: clocKwize]
tonini has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
csaunders has joined #ruby
tk_ has joined #ruby
blaxter has quit [Ping timeout: 246 seconds]
eykosioux has joined #ruby
nkontekst has left #ruby [#ruby]
sambao21 has joined #ruby
synthetix has quit [Ping timeout: 256 seconds]
etcetera has quit [Client Quit]
dustint has joined #ruby
fasta has quit [Remote host closed the connection]
fasta has joined #ruby
Matip has quit [Ping timeout: 255 seconds]
robbyoconnor has joined #ruby
banisterfiend has joined #ruby
dustint has quit [Ping timeout: 256 seconds]
duosrx has joined #ruby
zmanfx has quit [Ping timeout: 245 seconds]
p0wn3d has joined #ruby
<linduxed> how would i do a range like (1..10) but with the result being [20, 40, 60, 80....]?
eykosioux has quit [Ping timeout: 245 seconds]
fasta has quit [Remote host closed the connection]
<apeiros> that's not a range
fasta has joined #ruby
<linduxed> i know the last one isn't
krz has quit [Quit: krz]
<linduxed> sorry
<hoelzro> >> (1..10).map { |e| e * 20 }
<eval-in> hoelzro => [20, 40, 60, 80, 100, 120, 140, 160, 180, 200] (http://eval.in/16416)
<linduxed> but you get what i mean, do you?
<hoelzro> linduxed: ^
<apeiros> you can create an array like that using e.g. Array.new { |i| i*20 }
<linduxed> hoelzro: hmmm, yeah that sounds fine
* apeiros prefers Array.new over map - cleaner intent
<banisterfiend> linduxed: (20..100).step(20).to_a
<hoelzro> fair enough =)
fasta has quit [Read error: Connection reset by peer]
<linduxed> STEP!
<linduxed> that's the one
<linduxed> banisterfiend: thx, i had forgotten it
daniel_-_ has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
dustint has joined #ruby
etcetera has joined #ruby
<apeiros> there's also 20.step(100, 20)
fasta has joined #ruby
* apeiros would like if there was 20.upto(100, step: 20)
slainer68 has quit [Ping timeout: 258 seconds]
zmanfx has joined #ruby
<grn> apeiros: monkey patch ftw!
<banisterfiend> (20..Float::INFINITY).step(20).lazy.first(5)
<banisterfiend> how come
jpfuentes2 has joined #ruby
<apeiros> >> (20..Float::INFINITY).step(20).lazy.first(5)
<eval-in> apeiros => [20.0, 40.0, 60.0, 80.0, 100.0] (http://eval.in/16417)
<banisterfiend> .take(5) still returns a lazy enumerator?
<banisterfiend> dont need the lazy there
<banisterfiend> >> (20..Float::INFINITY).step(20).lazy.take(5)
<eval-in> banisterfiend => #<Enumerator::Lazy: #<Enumerator::Lazy: #<Enumerator: 20..Infinity:step(20)>>:take(5)> (http://eval.in/16418)
<banisterfiend> i guess
r0bby has joined #ruby
<banisterfiend> >> (20..Float::INFINITY).step(20).force
<eval-in> banisterfiend => /tmp/execpad-a80334bcd557/source-a80334bcd557:2:in `<main>': undefined method `force' for #<Enumerator: 20..Infinity:step(20)> (NoMethodError) (http://eval.in/16419)
<MrZYX> lol
<banisterfiend> >> (20..Float::INFINITY).step(20).lazy.force
<eval-in> banisterfiend => [FATAL] failed to allocate memory (http://eval.in/16420)
subbyyy has quit [Ping timeout: 260 seconds]
DK1 has joined #ruby
<banisterfiend> >> (20..Float::INFINITY).step(20)
<banisterfiend> okies
<eval-in> banisterfiend => #<Enumerator: 20..Infinity:step(20)> (http://eval.in/16421)
robbyoconnor has quit [Ping timeout: 245 seconds]
dustint has quit [Quit: Leaving]
Uranio has joined #ruby
<banisterfiend> bbs
wolcanus has joined #ruby
r0bby_ has joined #ruby
veinofstars has joined #ruby
jizeiol has joined #ruby
mercwithamouth has joined #ruby
r0bby has quit [Ping timeout: 245 seconds]
peterhellberg has quit [Remote host closed the connection]
Mattix has joined #ruby
jizeiol has quit [Read error: Connection reset by peer]
elux has joined #ruby
dustint has joined #ruby
devdazed has quit [Quit: Bye]
jerius has joined #ruby
Heero has quit [Quit: Leaving]
bluefish has joined #ruby
devdazed has joined #ruby
ananthakumaran has joined #ruby
banisterfiend has quit [Ping timeout: 245 seconds]
cha1tanya has quit [Ping timeout: 276 seconds]
<linduxed> what does (1<<5) mean?
<bluefish> guys, what is going on here? https://gist.github.com/ebbflowgo/5387887
<bluefish> it's a simple array push, I duplicated the array and it still edits the original
freerobby has joined #ruby
eykosioux has joined #ruby
miso1337 has joined #ruby
<JonnieCache> bluefish: dub is a shallow clone
<hoelzro> 1 << 5 means 32
<JonnieCache> *dup
<hoelzro> >> 1 << 5
<eval-in> hoelzro => 32 (http://eval.in/16422)
tubbo has joined #ruby
<hoelzro> the long story is that 1 is shifted five bits to the left
<JonnieCache> bluefish: the inner arrays are still the same
iamjarvo has joined #ruby
<bluefish> JonnieCache: hmm, never heard of that
<bluefish> JonnieCache: how can I create a seprate rray
<Spooner> You could use x = w.map &:dup (so that you duplicate the inner arrays, not just the outer one.
axl_ has joined #ruby
r0bby_ has quit [Ping timeout: 245 seconds]
schickung has joined #ruby
miso1337 has quit [Read error: Connection reset by peer]
miso1337 has joined #ruby
elux has quit [Quit: Bye!]
etcetera has quit []
<Hanmac> bluefish: or use Marshal.load(Marshal.dump(ary)) if you want a deep copy
<bluefish> Spooner, Hanmac, JonnieCache
<bluefish> thanks
miso1337 has quit [Read error: Connection reset by peer]
miso1337_ has joined #ruby
momomomomo has joined #ruby
miso1337_ has quit [Read error: Connection reset by peer]
miso1337 has joined #ruby
miso1337_ has joined #ruby
etcetera has joined #ruby
miso1337_ has quit [Read error: Connection reset by peer]
miso1337__ has joined #ruby
codesoda has quit [Remote host closed the connection]
miso1337__ has quit [Read error: Connection reset by peer]
miso1337_ has joined #ruby
browndawg has joined #ruby
miso1337_ has quit [Read error: Connection reset by peer]
miso1337 has quit [Read error: Connection reset by peer]
idkazuma has quit [Remote host closed the connection]
thebastl has joined #ruby
miso1337 has joined #ruby
Guedes has joined #ruby
Guedes has quit [Changing host]
Guedes has joined #ruby
<linduxed> hoelzro: oooh, so it's a bitshift, then it makes sense
slainer68 has joined #ruby
nga4 has joined #ruby
Scriptor has quit [Ping timeout: 258 seconds]
dustint has quit [Ping timeout: 240 seconds]
etcetera has quit []
rippa has joined #ruby
breakingthings has joined #ruby
zmanfx has quit [Ping timeout: 245 seconds]
celinedior has quit [Quit: celinedior]
sailias1 has joined #ruby
arya has joined #ruby
Uranio has quit [Ping timeout: 245 seconds]
My_Hearing has quit [Ping timeout: 245 seconds]
mmitchell has joined #ruby
My_Hearing has joined #ruby
BSaboia has joined #ruby
rickruby has joined #ruby
anonymuse has joined #ruby
anderse has joined #ruby
unflores has quit [Ping timeout: 272 seconds]
crankycoder has left #ruby [#ruby]
fredtoshell has joined #ruby
BSaboia has quit [Read error: Connection reset by peer]
fredtoshell has left #ruby [#ruby]
Xeago has joined #ruby
freezey has joined #ruby
dormousy has quit [Quit: ZNC - http://znc.in]
jinie has quit [Quit: Textual IRC Client: www.textualapp.com]
peta_ has quit [Quit: peta_]
rickruby has quit [Ping timeout: 240 seconds]
f0ster has joined #ruby
Arzaga has joined #ruby
<f0ster> good morrow #ruby
thone has joined #ruby
dormousy has joined #ruby
miso1337 has quit [Ping timeout: 252 seconds]
arya has quit [Ping timeout: 248 seconds]
momomomomo has quit [Quit: momomomomo]
Rym has quit [Quit: Rym]
cmarques has joined #ruby
fermion has joined #ruby
synthetix has joined #ruby
codecop has quit [Remote host closed the connection]
kpshek has joined #ruby
vlad_starkov has joined #ruby
Xeago has quit [Ping timeout: 256 seconds]
monban_ is now known as monban
miso1337 has joined #ruby
momomomomo has joined #ruby
dustint has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
arturaz has quit [Ping timeout: 245 seconds]
miso1337 has quit [Read error: Connection reset by peer]
mark_locklear has joined #ruby
miso1337 has joined #ruby
freezey has quit [Remote host closed the connection]
miso1337 has quit [Read error: Connection reset by peer]
miso1337_ has joined #ruby
miso1337_ has quit [Client Quit]
LaPetiteFromage has joined #ruby
yashshah has joined #ruby
pcarrier has quit [Quit: Computer has gone to sleep.]
unflores has joined #ruby
camilasa_ has joined #ruby
wallerdev has joined #ruby
zmanfx has joined #ruby
NiteRain has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
supergiantrobot_ has joined #ruby
Arzaga has quit [Quit: Computer has gone to sleep.]
Bofu2U has quit [Ping timeout: 240 seconds]
peta_ has joined #ruby
momomomomo has quit [Quit: momomomomo]
girija has quit [Ping timeout: 258 seconds]
wesside has joined #ruby
iphands_ has joined #ruby
daniel_-_ has quit [Quit: WeeChat 0.4.0]
phantasm66 has joined #ruby
phantasm66 has quit [Changing host]
phantasm66 has joined #ruby
zmanfx has quit [Ping timeout: 245 seconds]
sambio has joined #ruby
xclite is now known as blowjobs
ph^ has quit [Remote host closed the connection]
blowjobs is now known as xclite
carlyle has joined #ruby
sambio has quit [Client Quit]
fermion has quit [Quit: Computer has gone to sleep.]
yojimbo has joined #ruby
yojimbo is now known as yojimbo_
kimteq has joined #ruby
chiel has joined #ruby
interactionjaxsn has joined #ruby
My_Hearing is now known as Mon_Ouie
idkazuma has joined #ruby
wallerdev has quit [Quit: wallerdev]
Matip has joined #ruby
momomomomo has joined #ruby
chrishunt has quit [Quit: ZzZzZz...]
osvico has quit [Ping timeout: 255 seconds]
johnmilton has joined #ruby
chrishunt has joined #ruby
banister_ has joined #ruby
carlyle has quit [Read error: Connection reset by peer]
carlyle has joined #ruby
jtharris has joined #ruby
peta_ has quit [Quit: peta_]
Rym has joined #ruby
Mattix has quit [Ping timeout: 252 seconds]
pcarrier has joined #ruby
DaltonUS has joined #ruby
iphands_ has quit [Ping timeout: 255 seconds]
sleetdrop has joined #ruby
acrussell has joined #ruby
ngcazz has joined #ruby
_nitti has joined #ruby
arya has joined #ruby
Bofu2U has joined #ruby
irrationalfab has joined #ruby
irrationalfab has quit [Remote host closed the connection]
irrationalfab has joined #ruby
madb055 has quit [Ping timeout: 256 seconds]
dhruvasagar has quit [Ping timeout: 264 seconds]
ioNull has quit [Quit: Computer has gone to sleep.]
cantonic has quit [Quit: cantonic]
mklappstuhl has quit [Ping timeout: 252 seconds]
afd__ has joined #ruby
timonv has quit [Read error: Connection reset by peer]
timonv has joined #ruby
zmanfx has joined #ruby
puppeh has quit [Remote host closed the connection]
puppeh has joined #ruby
puppeh has quit [Remote host closed the connection]
theRoUS has joined #ruby
jtharris has quit [Read error: Connection reset by peer]
puppeh has joined #ruby
jtharris has joined #ruby
<linduxed> so i know that "reduce(:+)" is the same as "reduce { |sum, i| sum + i }" but i don't understand what's going on in the first case
generali_ has quit [Remote host closed the connection]
nkts has joined #ruby
<linduxed> anyone who'd care to explain that syntax?
Czupa has quit [Remote host closed the connection]
dustint has quit [Ping timeout: 252 seconds]
nari has quit [Ping timeout: 252 seconds]
puppeh has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
adamjleonard has joined #ruby
yshh has quit [Read error: Connection reset by peer]
<tobiasvl> the syntax is easy enough
justsee has quit [Ping timeout: 264 seconds]
<tobiasvl> you pass the symbol :+ to the reduce method
<tobiasvl> (all symbols start with a :)
yshh has joined #ruby
<linduxed> oooh
<linduxed> i keep forgetting the symbol stuff
TomJ has quit [Quit: TomJ]
rippa has quit [Ping timeout: 240 seconds]
<linduxed> so you pass the symbol :+ which points to a method which takes two integers as arguments
<hoelzro> linduxed: a Symbol has a #to_proc method
<tobiasvl> basically. not quite precise, because a symbol doesn't point at anything
beiter_ has joined #ruby
SCommette has joined #ruby
<tobiasvl> but the value of the symbol is the name of a method
gaahrdner has joined #ruby
<hoelzro> technically, you may pass anything that responds_to to_proc
<hoelzro> which is awesome.
<linduxed> hoelzro: what does to_proc mean?
Ankhers has joined #ruby
<hoelzro> it's a method that converts the invocant to a Proc object
v0n has joined #ruby
knapper_tech has quit [Ping timeout: 252 seconds]
<ccooke> linduxed: It's a method, just like to_s and to_i - it converts the called object into something else. In this case, a proc. Not every object has one, but you can always add the method to any class.
<hoelzro> it's used by certain methods as well as the "proc splat"
<linduxed> hoelzro: doesn't tell me much more
<linduxed> i don't understand what the proc is
beiter has quit [Ping timeout: 245 seconds]
beiter_ is now known as beiter
<Hanmac> hoelzro: yes and no, inject/reduce is a little bit different that it works with inject(&:+) but also with inject(:+) ... and the second one is faster
fermion has joined #ruby
bluOxigen has joined #ruby
<hoelzro> linduxed: a proc is kind of like a block
statarb3 has quit [Quit: Leaving]
<hoelzro> Hanmac: do inject(&:+) and inject(:+) have differenct semantics?
tommyvyo has joined #ruby
veinofstars has quit [Quit: veinofstars]
fermion has quit [Client Quit]
<Hanmac> the second one only works with Symbols or Strings and its faster
<hoelzro> but they do the same thing, right?
<Hanmac> yeah the output is the same ... but the second one does not create a proc
<hoelzro> right
BizarreCake has quit [Ping timeout: 248 seconds]
DK1 has left #ruby [#ruby]
<hoelzro> they're basically synonyms, is all I'm trying to say =)
arya has quit [Ping timeout: 248 seconds]
angusiguess has joined #ruby
<linduxed> what is that ampersand doing inside (&:+)?
<hoelzro> linduxed: it calls to_proc and sets the result to the block of the invocation
arya has joined #ruby
bean__ has joined #ruby
mklappstuhl has joined #ruby
<hoelzro> it's basically function() { |e, arg| e + arg }
BizarreCake has joined #ruby
axl__ has joined #ruby
axl_ has quit [Ping timeout: 276 seconds]
axl__ is now known as axl_
andikr has quit [Remote host closed the connection]
sylvinus has joined #ruby
frem has joined #ruby
invisime has joined #ruby
dustint has joined #ruby
<linduxed> hoelzro: thx, looks like good reading
madb055 has joined #ruby
<hoelzro> it's a bit hard to Google =/
<linduxed> hoelzro: no shit...
failshell has joined #ruby
beiter_ has joined #ruby
awarner has joined #ruby
<apeiros> I love how a company like google manages to create a language whose name totally sucks for googling…
<injekt> go-lang is usually fine, but agreed
beiter has quit [Ping timeout: 245 seconds]
beiter_ is now known as beiter
kelabot has joined #ruby
<injekt> not only that, but a 'go' language already existed
aganov has quit [Remote host closed the connection]
jlast has joined #ruby
tagrudev has quit [Quit: Me = Awesome]
atyz has quit [Quit: Leaving...]
wolcanus has quit [Remote host closed the connection]
Neomex has joined #ruby
<linduxed> i think you're hard press, however, to find a worse project name than "awesome"
Neomex has quit [Client Quit]
ffranz has joined #ruby
<linduxed> try to google that
<hoelzro> haha
* hoelzro uses AwesomeWM
<linduxed> so do i
tonini has quit [Remote host closed the connection]
wolcanus has joined #ruby
LiohAu has joined #ruby
atyz has joined #ruby
<finnomenon> xmonad <3
<linduxed> but that doesn't change that it should have had those magic two capital letters at the end
<injekt> I got mvc awesome
io_syl has quit [Ping timeout: 245 seconds]
beiter_ has joined #ruby
frem has quit [Quit: Farewell!]
beiter has quit [Ping timeout: 245 seconds]
beiter_ is now known as beiter
<linduxed> the ONLY thing that saves the day is that one pretty much knows that if the info is not available at awesome.naquadah.org or at the archwiki, then it doesn't exist
banister_ has quit [Ping timeout: 248 seconds]
mercwithamouth has quit [Ping timeout: 264 seconds]
io_syl has joined #ruby
TomJ has joined #ruby
akashj87 has joined #ruby
fermion has joined #ruby
tobyo has joined #ruby
generali_ has joined #ruby
generali_ has quit [Remote host closed the connection]
chrishunt has quit [Read error: Connection reset by peer]
generalissimo has joined #ruby
wallerdev has joined #ruby
ariedler has joined #ruby
ioNull has joined #ruby
ioNull has quit [Max SendQ exceeded]
ioNull has joined #ruby
wyhaines has joined #ruby
aspiers has joined #ruby
<mklappstuhl> how can I group a list of dates by month? (statistical purposes)
<Hanmac> mklappstuhl: group_by(&:day)
Animawish has joined #ruby
chrishunt has joined #ruby
<mklappstuhl> Hanmac: Whooaaa :) this is exactly what I've been looking for and its beautiful! thanks!
<mklappstuhl> hey there. Having a bunch of objects with a field .created_at I'd like to get information about how many objects were created monthly
<mklappstuhl> ah dammit, sorry. ignore last one.
_maes_ has joined #ruby
Xeago_ has quit [Remote host closed the connection]
io_syl has quit [Quit: Computer has gone to sleep.]
<waxjar> Enumerable is so good
<LiohAu> hi guys, it seems like my ruby install is failing everything i do, how can i make a clean install ?
celinedior has joined #ruby
momomomomo has joined #ruby
smigg has joined #ruby
<LiohAu> i just installed a new gem, and when using it i get : "/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:777:in `report_activate_error': Could not find RubyGem ocunit2junit (>= 0) (Gem::LoadError)"
beiter has quit [Ping timeout: 246 seconds]
Xeago has joined #ruby
beiter has joined #ruby
F1skr has joined #ruby
Xeago has quit [Remote host closed the connection]
<momomomomo> LiohAu: Did you install the dependency 'ocunit2junit' gem
LnL has joined #ruby
<LiohAu> ocunit2junit gem is the gem i'm currently running, it's not a dependency of another
juarlex has joined #ruby
<LiohAu> and i just did a sudo gem install ocunit2junit
cantonic has joined #ruby
miso1337 has joined #ruby
tomsthumb has quit [Quit: Leaving.]
<LiohAu> the install output : "Fetching: ocunit2junit-1.2.gem (100%) Successfully installed ocunit2junit-1.2 1 gem installed Installing ri documentation for ocunit2junit-1.2... Installing RDoc documentation for ocunit2junit-1.2..."
<momomomomo> welp, gems are a tricky situation that interact with lots of variables in your system
<LiohAu> i think that the problem is that rvm shit
<momomomomo> If you're not using something like RVM or rbenv, it's tough to diagnose
<LiohAu> that i tried to install
<momomomomo> LiohAu: https://rvm.io/rvm/install/
<apeiros> LiohAu: on osx, I would not touch system ruby. I'd install ruby through rvm.
banister_ has joined #ruby
<apeiros> (system ruby is rather old anyway, it's a 1.8.7 which is ~5y old now)
<ngcazz> LiohAu: show us the output of gem list ocunit2junit -d
<ngcazz> and of which ruby
<f0ster> apeiros: oh I wouldnt' do anything without rvm
<LiohAu> " *** LOCAL GEMS ***"
<LiohAu> => nothing
<ngcazz> hmm
<LiohAu> and for which ruby "/Users/liohau/.rvm/rubies/ruby-1.9.3-p392/bin/ruby"
<ngcazz> what about `which gem`
<LiohAu> "/Users/liohau/.rvm/rubies/ruby-1.9.3-p392/bin/gem"
kuzushi_ has joined #ruby
<ngcazz> oh right you installed with sudo
<momomomomo> LiohAu: the issue is that you didn't install it to rvm
<ngcazz> there lies the issue
<momomomomo> just do gem install 'gemname'
<banister_> apeiros: you ever experienced BS like this? https://gist.github.com/banister/43c66ea74376a75f436e
<momomomomo> if you do SUDO it goes up to the system ruby
<ngcazz> ^^ this
<ngcazz> the point of rvm is that users get to manage their own entire ruby installations
<LiohAu> ok, that explains the sentence i read on stackoverflow saying to do not use sudo with rvm :(
<ngcazz> yep
<ngcazz> i think you can have a system-wide rvm
ttt has quit [Remote host closed the connection]
<LiohAu> the problem is that without the sudo, i get these errors : "Fetching: ocunit2junit-1.2.gem (100%) Successfully installed ocunit2junit-1.2 1 gem installed Installing ri documentation for ocunit2junit-1.2... file 'lib' not found Installing RDoc documentation for ocunit2junit-1.2... file 'lib' not found"
<LiohAu> the "file 'lib' not found"
<ngcazz> weird
<LiohAu> (even if now the gem itself works)
<apeiros> banister_: not that I'd remember, no
<LiohAu> i mean ocunit2junit works
<apeiros> banister_: sounds like you built your sqlite gem against an sqlite which is no longer there
beiter_ has joined #ruby
beiter has quit [Ping timeout: 264 seconds]
beiter_ is now known as beiter
Vainoharhainen has quit [Quit: Leaving...]
kuzushi has quit [Ping timeout: 264 seconds]
<hoelzro> perhaps sqlite was update from under you?
<hoelzro> *updated
jprovazn has quit [Quit: Leaving]
carloslopes has quit [Remote host closed the connection]
<regedarek> Hi, could you help me understand why I can't test mailer when i trigger 'post' request in sinatra?
girija has joined #ruby
BadLarry has quit [Ping timeout: 256 seconds]
blaxter has joined #ruby
justsee has joined #ruby
idkazuma has quit [Remote host closed the connection]
pitzips has quit [Ping timeout: 276 seconds]
_nitti has quit [Remote host closed the connection]
ph^ has joined #ruby
veinofstars has joined #ruby
BadLarry has joined #ruby
sailias1 has quit [Ping timeout: 255 seconds]
lolmaus has joined #ruby
<lolmaus> What was that great video lecture about the nature of `self` in Ruby?
schickung has quit [Quit: schickung]
momomomomo has quit [Quit: momomomomo]
ph^ has quit [Ping timeout: 246 seconds]
apod has joined #ruby
_nitti has joined #ruby
<mklappstuhl> having a hash like this {{2013=>4}=>22} how would I access "22" without knowing the key?
beiter_ has joined #ruby
wolcanus has quit [Remote host closed the connection]
ferdev has quit [Ping timeout: 252 seconds]
<mklappstuhl> invert.keys.first seems cumbersome
xcv has quit [Remote host closed the connection]
<MrZYX> mklappstuhl: hsh.values.first
beiter has quit [Ping timeout: 245 seconds]
beiter_ is now known as beiter
_nitti_ has joined #ruby
<apeiros> it is cumbersome to access hash values without their keys.
xcv has joined #ruby
bluefish has quit [Quit: Page closed]
emptymag00 has quit [Read error: Connection reset by peer]
<mklappstuhl> MrZYX: haha I oversaw that I guess -.-
<MrZYX> ^ + when wishing to do so it usually means you got the wrong datastructure
<apeiros> kinda beats the purpose of having a hash…
<apeiros> also having a hash as a key is suspicious
* apeiros agrees with MrZYX
<mklappstuhl> ok, then let me tell you the original problem
browndawg has quit [Quit: Leaving.]
mikepack has joined #ruby
slainer6_ has joined #ruby
soulofpeace has joined #ruby
<mklappstuhl> I have a bunch of dates I want to "cluster" by month. I can use group_by(&:month) but this doesn't work well as soon as dates go accross multiple years
beiter_ has joined #ruby
<hoelzro> then group by year + month?
<mklappstuhl> It's also an option to remove the date from the data but I felt like keeping that bit of context would be nice
blueOxigen has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
atyz has quit [Quit: Linkinus - http://linkinus.com]
_nitti has quit [Ping timeout: 256 seconds]
nkts has quit [Read error: Connection reset by peer]
interactionjaxsn has joined #ruby
kuzushi_ has quit [Ping timeout: 264 seconds]
thebastl has quit [Ping timeout: 245 seconds]
beiter has quit [Ping timeout: 256 seconds]
beiter_ is now known as beiter
nkts has joined #ruby
Guedes has quit [Read error: Connection reset by peer]
<mklappstuhl> hoelzro: thats what I did in a hacky way by using the hash as key. didn't come up with a quick way of getting group_by to create a nested array...
bluOxigen has quit [Ping timeout: 245 seconds]
krawchyk has joined #ruby
slainer68 has quit [Ping timeout: 260 seconds]
ferdev has joined #ruby
<hoelzro> group_by { |d| d.year + '-' + d.month }
<hoelzro> what about that?
<hoelzro> no need for nested arrays
jandres has quit [Remote host closed the connection]
<apeiros> d.strftime("%Y%m")
<apeiros> d.year*100+d.month
interactionjaxsn has quit [Read error: No route to host]
interactionjaxsn has joined #ruby
baroquebobcat has joined #ruby
lolmaus has quit []
rippa has joined #ruby
<hoelzro> why 100, apeiros?
sambio has joined #ruby
<apeiros> easier to read
bluOxigen has joined #ruby
<apeiros> or did you mean why I multiply at all?
beiter_ has joined #ruby
beiter has quit [Ping timeout: 252 seconds]
beiter_ is now known as beiter
sailias has joined #ruby
Animawish has quit [Quit: Animawish]
pcarrier has quit [Quit: Computer has gone to sleep.]
<hoelzro> I'm guessing you multiply to make distinct values per year/month combination
<hoelzro> in which case I would suggest 12
<apeiros> well, you can easily tell what month and year 201204 is
bradhe has joined #ruby
DonRichie has joined #ruby
<apeiros> more difficult with 24148
<apeiros> and to ruby it won't matter whether the factor is 12 or 100
<hoelzro> ok, fair enough
<hoelzro> that's actually a really good strategy =)
<hoelzro> apeiros++
blueOxigen has quit [Ping timeout: 256 seconds]
<apeiros> if you have size constraints, the game changes, of course :)
newUser1234 has joined #ruby
<hoelzro> indeed
pyrac has quit [Ping timeout: 276 seconds]
blueOxigen has joined #ruby
momomomomo has joined #ruby
tk_ has quit [Quit: ばいばい]
* apeiros off, cya
apeiros has quit [Remote host closed the connection]
ckrailo has joined #ruby
mlr has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
bluOxigen has quit [Ping timeout: 255 seconds]
pduin has quit [Remote host closed the connection]
mlr has left #ruby [#ruby]
slainer6_ has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
jjbohn has joined #ruby
momomomomo has joined #ruby
slainer68 has joined #ruby
hdl1 is now known as hdl
drakedouay has joined #ruby
artofraw has joined #ruby
<drakedouay> I set my Gemfile to point to a specific github repo, and I am getting the error 'Permission denied (public key)'. This is the offending line "gem 'capybara-webkit', :git => 'git@github.com:thoughtbot/capybara-webkit.git'". What am I doing wrong?
<hoelzro> drakedouay: try git://github.com instead of git@github.com
<injekt> git@github.com:thoughtbot/capybara-webkit.git is a private git url
<hoelzro> you're asking it to access over SSH
<injekt> what hoelzro said
_nitti_ has quit [Ping timeout: 260 seconds]
<injekt> or `gem 'capbara-website', github: 'thoughtbot/capybara-webkit'`
thebastl has joined #ruby
camilasa_ has quit [Remote host closed the connection]
<drakedouay> Awesome. Thanks gus
<drakedouay> *guys
tubbo has left #ruby [#ruby]
buscon has quit [Remote host closed the connection]
smt has quit [Quit: Konversation terminated!]
Astral__ has quit [Read error: Connection reset by peer]
aspiers has quit [Ping timeout: 248 seconds]
Astral__ has joined #ruby
cha1tanya has joined #ruby
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
sambao21_ has joined #ruby
sambao21 has quit [Read error: Connection reset by peer]
sambao21_ is now known as sambao21
slainer68 has quit [Remote host closed the connection]
_nitti has joined #ruby
chandankumar has joined #ruby
chrishough has joined #ruby
wolcanus has joined #ruby
puppeh has joined #ruby
jandres has joined #ruby
soulofpeace has quit [Ping timeout: 245 seconds]
threesome has quit [Ping timeout: 255 seconds]
F1skr has quit [Quit: WeeChat 0.4.0]
DaltonUS has quit [Quit: DaltonUS]
carlyle_ has joined #ruby
freakazoid0223 has joined #ruby
GeissT has quit [Quit: MillBroChat AdIRC User]
bradhe has joined #ruby
carlyle has quit [Read error: Connection reset by peer]
xlab_ has joined #ruby
tomsthumb has joined #ruby
banister_ has quit [Remote host closed the connection]
slainer68 has joined #ruby
<drakedouay> I am trying to remember the name of this gem I used a while back. It let you single step through a ruby application, and execute commands during runtime. I think it's name started with a p. Anyone know what I am talking about
wolcanus has quit [Ping timeout: 245 seconds]
Xlab has quit [Ping timeout: 256 seconds]
<momomomomo> drakedouay: debugger?
jamie_ca_ has joined #ruby
<drakedouay> momomomomo: No, that isn't i
<drakedouay> t
<drakedouay> pry
<drakedouay> that is it's name
<momomomomo> right, I was going to link that, but it's a console
g0bl1n has joined #ruby
g0bl1n has quit [Changing host]
g0bl1n has joined #ruby
schickung has joined #ruby
tealmage has joined #ruby
mafs has joined #ruby
mafs has quit [Excess Flood]
preyalone has joined #ruby
dhruvasagar has joined #ruby
mafs has joined #ruby
mafs has quit [Excess Flood]
preyalone has left #ruby [#ruby]
ckwalsh has joined #ruby
csmrfx has joined #ruby
fearoffish has quit [Ping timeout: 245 seconds]
mafs has joined #ruby
mafs has quit [Excess Flood]
tesuki has quit []
keymone_ has quit [Read error: Operation timed out]
miso1337 has quit [Quit: afk]
mafs has joined #ruby
mafs has quit [Excess Flood]
wsterling has joined #ruby
mafs has joined #ruby
mafs has quit [Excess Flood]
justsee has quit [Ping timeout: 245 seconds]
mafs has joined #ruby
mafs has quit [Excess Flood]
timonv has quit [Remote host closed the connection]
interactionjaxsn has quit [Remote host closed the connection]
mafs has joined #ruby
mafs has quit [Excess Flood]
tootubular has joined #ruby
fearoffish has joined #ruby
a_a_g has quit [Quit: This computer has gone to sleep]
mafs has joined #ruby
mafs has quit [Excess Flood]
carloslopes has joined #ruby
carlyle_ has quit [Remote host closed the connection]
<Spooner> I'm trying to use wxruby-ruby19 on windows with 1.9.3. It works fine when I run it normally, but when I run it from an exe (built by ocra) I get an error about "The specified procedure could not be found" (at the point when it tries to load the .so).
mafs has joined #ruby
mafs has quit [Excess Flood]
cha1tanya has quit [Ping timeout: 264 seconds]
banisterfiend has joined #ruby
artofraw has quit [Remote host closed the connection]
mafs has joined #ruby
mafs has quit [Excess Flood]
interactionjaxsn has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Xlab has joined #ruby
<Spooner> Anyone have any pointers at all? Hanmac ? I've wasted hours on this and my client wants a .exe ;(
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
xlab_ has quit [Ping timeout: 245 seconds]
<Hanmac> Spooner: i didnt use wxruby i use my self thing and i didnt use ocra before
dmiller_ has joined #ruby
sambao21 has joined #ruby
stef_204 has joined #ruby
ttt has joined #ruby
<Spooner> Hanmac, OK, but what in general does that error mean? Couldn't find an entry point in the .so? Something else?
<csmrfx> Spooner: use jruby
<csmrfx> just my 1 cent
<csmrfx> Spooner: also, are you sure linked libraries are .so under Windoze, or .dll?
pioz has quit [Ping timeout: 264 seconds]
<Spooner> I'm not up for starting again ;) The application works fine. Just kicking an error for what is probably an easy thing to fix if I had a clue.
<Spooner> csmrfx, They are still .so for Ruby libraries.
jjbohn has quit [Quit: Leaving...]
<csmrfx> Are you sure about that?
soulofpeace has joined #ruby
kuzushi_ has joined #ruby
mityaz has joined #ruby
browndawg has joined #ruby
<csmrfx> (iow, sure use .so if you compiled that on your os)
filipe has quit [Remote host closed the connection]
<csmrfx> heh, refrase:
lmf40 has quit [Remote host closed the connection]
<Spooner> csmrfx, They definitely are ;)
tootubular has quit [Quit: tootubular]
dmiller_ has quit [Ping timeout: 252 seconds]
mercwithamouth has quit [Ping timeout: 246 seconds]
<csmrfx> DLL's, PE executable for windows, .so's are ELFs for leenux
kuzushi_ is now known as kuzushi
<Spooner> However, I just fixed it by copying another copy of the so over the one that wasn't working!
JonnieCache has quit [Quit: Lost terminal]
<csmrfx> good on ya
ttt has quit [Ping timeout: 276 seconds]
<Spooner> csmrfx, You helped indirectly by making me worry abotu having the right file :)
peta_ has joined #ruby
pitzips has joined #ruby
<Spooner> csmrfx, I think they are DLLs, but are just called .so because ruby wants to be different ;)
<Spooner> *normal dlls
ffranz has quit [Quit: Leaving]
<csmrfx> be carefult with those, so your clients dll's wont bite your ass!
btaitelb has joined #ruby
JonnieCache has joined #ruby
cascalheira has joined #ruby
cantonic has quit [Quit: cantonic]
choobie has joined #ruby
zeade has joined #ruby
marcdel has joined #ruby
pcarrier has joined #ruby
stkowski has joined #ruby
cantonic has joined #ruby
browndawg has quit [Quit: Leaving.]
Xeago has joined #ruby
ckwalsh has quit [Ping timeout: 276 seconds]
qaguy has joined #ruby
ffranz has joined #ruby
jjbohn has joined #ruby
Xeago_ has joined #ruby
wolcanus has joined #ruby
<qaguy> Hello. Hoping someone can provide a bit of guidance: I have this error in my rspec test: https://gist.github.com/anonymous/54a19610089e07e60e10
<qaguy> I want to rescue and retry the api call
<injekt> qaguy: that's not how testing works
<csmrfx> lel
<qaguy> injekt. This is not a test
<injekt> qaguy: it's in rspec no?
<qaguy> This is user creation before a test
<qaguy> It the setup step
<injekt> then how does your gist help?
<csmrfx> and should is there just for fun?
<qaguy> injekt: I am showing the error I get from the FB api.
freerobby has quit [Quit: Leaving.]
<qaguy> I want to rescue that error if it happens to ensure I get a user create to go through before the test runs
<injekt> qaguy: I would suggest not hitting their api for your tests
<qaguy> injekt: I'm testing our FB app. I need to create test users. How would I do that for FB without hitting their API?
headius has joined #ruby
<qaguy> That's the only way I know to create test accounts on FB
<injekt> Don't the fb libs provide test mock helpers for stuff like this? I don't like mocks but I don't think I'd like hitting the fb api every time I run my tests. Besides, there's a reason you're getting a 500 instead of a 200 response from fb, do you know the reason?
<qaguy> No I don't and that's what weird. The call works fine say 98% of the time.
<qaguy> And I am not changing anything in the call
<injekt> qaguy: then you certainly don't want to catch the exception
<injekt> you're masking a problem you haven't solved
mucker has joined #ruby
<qaguy> Good point. Ok I'm gonna go dig a bit deeper. Thanks for the help
<injekt> and you would usually mock an api call so you can test handling different responses. That is, you'd have a test to handle the 500 response and another to handle the 200 :)
<qaguy> Thanks again
bradleyp_ has joined #ruby
qaguy has left #ruby [#ruby]
rismoney has joined #ruby
<JonnieCache> VCR TO THE RESCUE! https://www.relishapp.com/vcr/vcr
<JonnieCache> automatically mocks external api's
dr_bob has left #ruby [#ruby]
ckrailo has quit [Quit: Computer has gone to sleep.]
wyattg is now known as wgosling
<JonnieCache> ooops dont shoot me punctuation fans
uris has joined #ruby
eka has quit [Ping timeout: 252 seconds]
<JonnieCache> but it is a superb testing tool
yacks has quit [Ping timeout: 258 seconds]
<JonnieCache> oh hes gone :(
ckrailo has joined #ruby
carlyle has joined #ruby
<injekt> smooth
lkba has quit [Ping timeout: 256 seconds]
Ontolog has joined #ruby
Rumsteak has quit [Ping timeout: 245 seconds]
ggun has joined #ruby
<Hanmac> JonnieCache: hm but the build is failing ;P
ephemerian has quit [Quit: Leaving.]
<JonnieCache> im not in a positon to help him with the brokenness of the fb api
<JonnieCache> but i can help avoid his test suite getting his api key banned
<JonnieCache> that vcr thing is genius
slainer68 has quit [Remote host closed the connection]
eka has joined #ruby
pcarrier has quit [Quit: Computer has gone to sleep.]
ckrailo has quit [Read error: Connection reset by peer]
ckrailo has joined #ruby
Xlab has quit [Ping timeout: 264 seconds]
Ontolog has quit [Remote host closed the connection]
<JonnieCache> that was probably the issue in the first place, the 500 was probably rate limiting being exceeded
Xlab has joined #ruby
<Hanmac> JonnieCache: i mean the vcr ... travis says that the build fails
ggun has quit [Client Quit]
<JonnieCache> oh
io_syl has joined #ruby
<JonnieCache> thats under jruby and 2.0
<JonnieCache> usually when you see the build failed image thats the case
kenneth has quit [Quit: kenneth]
<Hanmac> yeah and maybe for 1.9 too ;P
chussenot has quit [Quit: chussenot]
celinedior has quit [Quit: celinedior]
Rumsteak has joined #ruby
arya has quit []
ananthakumaran has quit [Quit: Leaving.]
zeade has quit [Quit: Leaving.]
chussenot has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
<shevy> hmmm
carlyle has quit [Ping timeout: 245 seconds]
teddyp1cker has joined #ruby
tmiller has joined #ruby
deric_skibotn has joined #ruby
hiroyuki has joined #ruby
JonnieCache has quit [Ping timeout: 252 seconds]
chussenot has quit [Client Quit]
banisterfiend has quit [Read error: Connection reset by peer]
yacks has joined #ruby
banisterfiend has joined #ruby
mengu has quit [Ping timeout: 258 seconds]
banisterfiend has quit [Read error: Connection reset by peer]
basex has quit [Quit: basex]
soulofpeace has quit [Ping timeout: 240 seconds]
banjara has quit [Quit: Leaving.]
banisterfiend has joined #ruby
tylersmith has joined #ruby
unflores has quit [Quit: unflores]
ferdev has quit [Read error: Operation timed out]
pi3r has quit [Quit: Leaving]
gaahrdner has quit [Ping timeout: 245 seconds]
frem has joined #ruby
frem has quit [Max SendQ exceeded]
maxmanders has quit [Quit: Computer has gone to sleep.]
ckwalsh has joined #ruby
ferdev has joined #ruby
jrhorn424 has joined #ruby
yacks has quit [Ping timeout: 255 seconds]
jeebster has joined #ruby
Voodoofish430 has joined #ruby
yacks has joined #ruby
dhruvasagar has joined #ruby
zeade has joined #ruby
jbueza has joined #ruby
kirun has joined #ruby
wedgeV has quit [Ping timeout: 256 seconds]
havenwood has joined #ruby
invisime has quit [Quit: Leaving.]
apod has quit []
breakingthings has quit []
BryanRuiz has left #ruby [#ruby]
teddyp1cker has quit [Ping timeout: 248 seconds]
KDiddy has joined #ruby
rupee has joined #ruby
dagobah_ has quit [Remote host closed the connection]
btaitelb has quit [Quit: btaitelb]
KDiddy has quit [Client Quit]
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
breakingthings has joined #ruby
breakingthings has quit [Remote host closed the connection]
bradleyp_ has quit [Read error: Connection reset by peer]
DaltonUS has joined #ruby
bradleyprice has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
banjara has joined #ruby
schickung has quit [Quit: schickung]
tvw has quit []
pioz has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
rakl has joined #ruby
jkamenik has joined #ruby
pothibo has quit [Quit: pothibo]
bluOxigen has joined #ruby
bradleyp_ has joined #ruby
blueOxigen has quit [Ping timeout: 264 seconds]
bradleyprice has quit [Ping timeout: 245 seconds]
veinofstars_ has joined #ruby
sambao21 has joined #ruby
nomenkun has quit [Ping timeout: 258 seconds]
Nimsical has joined #ruby
hamakn has quit [Remote host closed the connection]
veinofstars__ has joined #ruby
mercwithamouth has joined #ruby
enebo has joined #ruby
timmow_ has quit [Ping timeout: 252 seconds]
LiohAu has quit [Ping timeout: 245 seconds]
oneirophren has quit [Ping timeout: 256 seconds]
sepp2k has quit [Quit: Leaving.]
veinofstars has quit [Ping timeout: 256 seconds]
veinofstars__ is now known as veinofstars
alup_ has quit [Quit: Leaving]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
davetherat has quit [Read error: Connection reset by peer]
davetherat has joined #ruby
mahmoudimus has joined #ruby
veinofstars_ has quit [Ping timeout: 264 seconds]
basex has joined #ruby
brianpWins has joined #ruby
zeade has quit [Quit: Leaving.]
ph^ has joined #ruby
security has joined #ruby
ckrailo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
megha has quit [Ping timeout: 276 seconds]
arya__ has joined #ruby
dhruvasagar has quit [Ping timeout: 256 seconds]
security is now known as megha
d11wtq_ has joined #ruby
yacks has quit [Quit: Leaving]
yann_ck has quit [Quit: Computer has gone to sleep.]
Ontolog has joined #ruby
g0bl1n has quit [Quit: Ex-Chat]
d11wtq has quit [Ping timeout: 264 seconds]
kenneth has joined #ruby
blueOxigen has joined #ruby
freerobby has joined #ruby
thams has joined #ruby
duosrx has quit [Remote host closed the connection]
LS\MFT has joined #ruby
veinofstars_ has joined #ruby
alx- has joined #ruby
jjbohn is now known as jjbohn|afk
johnnyfuchs has joined #ruby
thams has quit [Remote host closed the connection]
ckrailo has joined #ruby
bluOxigen has quit [Ping timeout: 256 seconds]
peterhellberg has joined #ruby
phelps has joined #ruby
kelabot has quit [Ping timeout: 255 seconds]
carlyle has joined #ruby
veinofstars has quit [Ping timeout: 252 seconds]
veinofstars_ is now known as veinofstars
chussenot has joined #ruby
mrsolo has joined #ruby
bricker`LA has quit [Ping timeout: 252 seconds]
jandres has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
wsterling has quit [Remote host closed the connection]
bradleyp_ has quit [Read error: Connection reset by peer]
jonahR has joined #ruby
bradleyprice has joined #ruby
shadoi has joined #ruby
zeade has joined #ruby
ferdev has quit [Quit: ferdev]
Arzaga has joined #ruby
mucker has quit [Quit: leaving]
wsterling has joined #ruby
peterhellberg has quit [Remote host closed the connection]
nkts has quit [Read error: Connection reset by peer]
nkts has joined #ruby
sleetdrop has quit [Quit: Textual IRC Client: www.textualapp.com]
baphled_ has joined #ruby
rsahae has joined #ruby
chrishough has quit [Quit: chrishough]
eykosioux has quit [Remote host closed the connection]
eykosioux has joined #ruby
hmarr has quit [Ping timeout: 252 seconds]
wreckimnaked has quit [Ping timeout: 240 seconds]
eldariof has joined #ruby
kelabot has joined #ruby
c0rn has joined #ruby
yacks has joined #ruby
hmarr has joined #ruby
troessner has quit [Quit: Leaving]
girija has quit [Read error: Connection reset by peer]
eykosioux has quit [Ping timeout: 264 seconds]
m8 has joined #ruby
pioz has quit [Quit: This computer has gone to sleep]
benlieb has joined #ruby
bluOxigen has joined #ruby
chrishough has joined #ruby
Skelz0r has quit [Ping timeout: 245 seconds]
Skelz0r has joined #ruby
TomJ has quit [Quit: TomJ]
johnnyfuchs has quit [Quit: Leaving.]
blueOxigen has quit [Ping timeout: 256 seconds]
buibex has joined #ruby
randomautomator has joined #ruby
alx- has quit [Quit: alx-]
BadQuanta has quit [Quit: Leaving]
tmiller has quit [Remote host closed the connection]
johnnyfuchs has joined #ruby
Gadgetoid has quit [Ping timeout: 245 seconds]
xcv_ has joined #ruby
marr has quit [Ping timeout: 258 seconds]
sylvinus has quit [Quit: sylvinus]
xcv_ has quit [Remote host closed the connection]
Ontolog_ has joined #ruby
xcv_ has joined #ruby
Gadgetoid has joined #ruby
Ontolog__ has joined #ruby
Zai00 has quit [Quit: Zai00]
gaahrdner has joined #ruby
Morkel has quit [Quit: Morkel]
Guedes has joined #ruby
Guedes has quit [Changing host]
Guedes has joined #ruby
Ontolog has quit [Ping timeout: 256 seconds]
mahmoudi_ has joined #ruby
xcv has quit [Ping timeout: 240 seconds]
mahmoudi_ is now known as mahmoudimus^
mockra has joined #ruby
zeade has quit [Quit: Leaving.]
blueOxigen has joined #ruby
Ontolog_ has quit [Ping timeout: 240 seconds]
zeade has joined #ruby
mahmoudimus has quit [Ping timeout: 256 seconds]
carlyle has quit [Ping timeout: 245 seconds]
wsterling has quit [Remote host closed the connection]
carlyle has joined #ruby
a_a_g has joined #ruby
tootubular has joined #ruby
KDiddy has joined #ruby
ebobby has joined #ruby
carlyle has quit [Read error: Connection reset by peer]
bluOxigen has quit [Ping timeout: 256 seconds]
carlyle has joined #ruby
jpfuentes2 has left #ruby ["Textual IRC Client: www.textualapp.com"]
ebobby has left #ruby [#ruby]
sylvinus has joined #ruby
kelabot has quit [Remote host closed the connection]
hmarr has quit []
jdunck has joined #ruby
buibex has quit [Remote host closed the connection]
divout has quit [Quit: Leaving.]
sepp2k has joined #ruby
veinofstars_ has joined #ruby
veinofstars__ has joined #ruby
alx- has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
veinofstars___ has joined #ruby
veinofstars has quit [Read error: Connection reset by peer]
veinofstars___ is now known as veinofstars
swex has quit [Quit: No Ping reply in 180 seconds.]
swex has joined #ruby
sambao21 has joined #ruby
blueOxigen has quit [Read error: Connection reset by peer]
veinofstars_ has quit [Read error: Operation timed out]
bluOxigen has joined #ruby
veinofstars_ has joined #ruby
mercwithamouth has quit [Ping timeout: 248 seconds]
adkron has quit [Ping timeout: 258 seconds]
codecop has joined #ruby
maxmanders has joined #ruby
Ontolog has joined #ruby
adkron has joined #ruby
eykosioux has joined #ruby
veinofstars__ has quit [Ping timeout: 256 seconds]
jekotia has joined #ruby
veinofstars has quit [Ping timeout: 248 seconds]
veinofstars_ is now known as veinofstars
alvaro_o has joined #ruby
KDiddy has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
chussenot has quit [Quit: chussenot]
Ontolog__ has quit [Ping timeout: 264 seconds]
rdark has quit [Quit: leaving]
vlad_starkov has joined #ruby
bradleyp_ has joined #ruby
mahmoudimus^ is now known as mahmoudimus
tevio has quit [Ping timeout: 256 seconds]
dhruvasagar has joined #ruby
bradleyprice has quit [Ping timeout: 256 seconds]
TheFuzzball has quit [Ping timeout: 252 seconds]
dhruvasagar has quit [Read error: Connection reset by peer]
cwd1 has joined #ruby
veinofstars has quit [Read error: Connection reset by peer]
ehaliewicz has joined #ruby
thebastl has quit [Remote host closed the connection]
veinofstars has joined #ruby
pib1964 has quit [Remote host closed the connection]
tmiller has joined #ruby
eykosioux has quit [Ping timeout: 252 seconds]
wsterling has joined #ruby
cwd1 has quit [Remote host closed the connection]
LS\MFT has quit [Read error: Connection reset by peer]
veinofstars_ has joined #ruby
vlad_starkov has quit [Ping timeout: 276 seconds]
pyrac has joined #ruby
jrhorn424 has quit [Quit: Textual IRC Client: www.textualapp.com]
LS\MFT has joined #ruby
veinofstars has quit [Read error: Operation timed out]
veinofstars_ is now known as veinofstars
hamakn has joined #ruby
[eDu] has joined #ruby
[eDu] has quit [Client Quit]
ferdev has joined #ruby
xcv_ has quit [Ping timeout: 246 seconds]
tvw has joined #ruby
wsterling has quit [Remote host closed the connection]
hamakn has quit [Ping timeout: 260 seconds]
stef_204 has joined #ruby
basex has quit [Quit: basex]
mercwithamouth has joined #ruby
codenapper has quit [Quit: codenapper]
ckwalsh has quit [Ping timeout: 245 seconds]
cascalheira has quit [Quit: Linkinus - http://linkinus.com]
breakingthings has joined #ruby
Xeago_ has quit [Remote host closed the connection]
droppedonmyhead has quit [Quit: droppedonmyhead]
shock_one has joined #ruby
hydrozen has joined #ruby
forrest has joined #ruby
codenapper has joined #ruby
sixEch0 has joined #ruby
krawchyk_ has joined #ruby
platzhirsch has joined #ruby
sixEch0 has quit [Client Quit]
musl has quit [Quit: WeeChat 0.4.0]
musl has joined #ruby
duosrx has joined #ruby
khismetix has joined #ruby
fryguy- is now known as fryguy
mercwithamouth has quit [Ping timeout: 260 seconds]
<shevy> Hanmac, on your terminal, what is the default colour you use?
<shevy> or could you make a screenshot? I am wondering whether I should use white (on black) or green (on black) by default for my .rb scripts
krawchyk has quit [Ping timeout: 276 seconds]
<platzhirsch> The JSON.parse from Ruby is not very flexible, is it? I have a JSON object: { "author" : "Jimmy", "extras" : "[\"a\",\"b\"]" } and Ruby parses extras not as an Array, but as a string, any idea how to appraoch this?
brotspinne has joined #ruby
soulcake has quit [Quit: ZNC - http://znc.in]
codenapper has quit [Quit: codenapper]
Hanmac has quit [Ping timeout: 245 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
<yxhuvud> platz: that *is* a string. not an array
<platzhirsch> yxhuvud: I feared so
mikepack has quit [Remote host closed the connection]
<jimeh> platzhirsch: you'll simply have to pass the String value of "extras" through JSON.parse again...
br4ndon has joined #ruby
mikepack has joined #ruby
duosrx has quit [Ping timeout: 246 seconds]
<yxhuvud> or make certain it doesn't look like that in the first place.
<jimeh> or that, yeah :)
duosrx has joined #ruby
<platzhirsch> ok good, for the time being that is ok. But I really have to fix that issue on the side of the data provider
baroquebobcat has joined #ruby
duosrx has quit [Remote host closed the connection]
chipotle has joined #ruby
beiter_ has joined #ruby
D4T has joined #ruby
beiter has quit [Ping timeout: 276 seconds]
beiter_ is now known as beiter
oneirophren has joined #ruby
baroquebobcat has quit [Ping timeout: 256 seconds]
jrq has joined #ruby
baroquebobcat has joined #ruby
mengu has joined #ruby
motto has joined #ruby
etcetera has joined #ruby
Skofo has joined #ruby
sambio has quit []
mercwithamouth has joined #ruby
m8 has quit [Ping timeout: 256 seconds]
br4ndon has quit [Ping timeout: 245 seconds]
jgrevich has joined #ruby
LS\MFT has quit [Quit: Leaving]
Hanmac has joined #ruby
skattyadz has joined #ruby
mengu has quit [Ping timeout: 252 seconds]
pioz has joined #ruby
br4ndon has joined #ruby
senryu has joined #ruby
jeebster has quit [Quit: Leaving.]
elaptics is now known as elaptics`away
dmiller has joined #ruby
yojimbo_ has quit [Ping timeout: 264 seconds]
rsahae has quit [Quit: rsahae]
io_syl has quit [Ping timeout: 252 seconds]
etcetera has quit []
<davidcelis> How do I get rubygems to stop telling me that it's "Upgraded http://rubygems.org to HTTPS" every time I gem install on 2.0.0-p0?
carlyle has quit [Ping timeout: 245 seconds]
mando has joined #ruby
grenierm_ has joined #ruby
<davidcelis> Nevermind
timonv has joined #ruby
carlyle has joined #ruby
pyrac has quit [Quit: pyrac]
jonathanwallace1 has quit [Quit: WeeChat 0.3.9.2]
ioNull has quit [Quit: Computer has gone to sleep.]
ph^ has quit [Remote host closed the connection]
jonathanwallace has joined #ruby
wesside is now known as wes|away
tevio has joined #ruby
yojimbo_ has joined #ruby
amal has left #ruby [#ruby]
arietis has joined #ruby
ngcazz has quit [Ping timeout: 245 seconds]
jeebster has joined #ruby
jgrevich has quit [Remote host closed the connection]
io_syl has joined #ruby
pyrac has joined #ruby
jgrevich has joined #ruby
Proshot has joined #ruby
etcetera has joined #ruby
anonymuse has quit [Quit: Leaving...]
cr3 has joined #ruby
<cr3> how can I run tests from just one *_spec.rb file from the rspec command line? I've tried using the -p option but it doesn't seem to filter as I expected
Arzaga has quit [Quit: Computer has gone to sleep.]
<MrZYX> rspec path/to/file.rb
<shevy> MrZYX can you turn left to right so I can call you MrXYZ pls
<MrZYX> no
bradhe has quit [Remote host closed the connection]
<shevy> :(
<MrZYX> that would be too easy
<MrZYX> for you
grenierm_ has left #ruby [#ruby]
<shevy> but I dont wanna flip my monitor...
DonRichie has quit [Read error: Connection reset by peer]
gearaholic has joined #ruby
D4T has quit [Quit: Textual IRC Client: www.textualapp.com]
marr has joined #ruby
DonRichie has joined #ruby
Arzaga has joined #ruby
nomenkun has joined #ruby
<cr3> MrZYX: that returns an uninitialized constant error, probably because spec/spec_helper.rb is not being loaded
wedgeV has joined #ruby
<MrZYX> yup, it's good pratice to do that at the top of ever spec file
<MrZYX> afaik
<MrZYX> *every
sambao21 has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby
wsterling has joined #ruby
momomomomo has quit [Quit: momomomomo]
at-912 has joined #ruby
brotspinne has quit [Quit: brotspinne]
jrq has left #ruby [#ruby]
nazty has quit [Read error: Connection reset by peer]
dayepa__ has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
robert__ has joined #ruby
robert__ has joined #ruby
dayepa__ has joined #ruby
nazty has joined #ruby
JStoker has quit [Ping timeout: 246 seconds]
adkron has quit [Ping timeout: 276 seconds]
wgosling has quit [Quit: Konversation terminated!]
skattyadz has quit [Quit: skattyadz]
forlin has quit [Remote host closed the connection]
JStoker has joined #ruby
sambao21 has joined #ruby
beiter_ has joined #ruby
bradhe has joined #ruby
beiter has quit [Ping timeout: 264 seconds]
beiter_ is now known as beiter
ph^ has joined #ruby
robert_ has quit [Ping timeout: 258 seconds]
btaitelb has joined #ruby
pioz has quit [Quit: This computer has gone to sleep]
keymone has quit [Quit: keymone]
Bastiano_84 has joined #ruby
Bastiano_84 has left #ruby [#ruby]
niceguyjames has quit [Quit: Computer has gone to sleep.]
tomzx_mac has joined #ruby
sambao21 has quit [Client Quit]
_bart has joined #ruby
chessguy has joined #ruby
khismetix has quit [Quit: Computer has gone to sleep.]
adkron has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
emmanuelux has joined #ruby
chipotle has quit [Quit: cya]
JonnieCache has joined #ruby
a_a_g has quit [Quit: This computer has gone to sleep]
Arzaga has quit [Quit: Computer has gone to sleep.]
pcarrier has joined #ruby
rsahae has joined #ruby
rakl has quit [Quit: sleeping]
niceguy1234 has joined #ruby
callmeivan has quit [Remote host closed the connection]
callmeivan has joined #ruby
blaxter has quit [Ping timeout: 240 seconds]
gearaholic has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 260 seconds]
khismetix has joined #ruby
Rumsteak has quit [Ping timeout: 252 seconds]
cbot_ has joined #ruby
sambao21 has joined #ruby
nick_h has quit [Ping timeout: 252 seconds]
sambao21 has quit [Client Quit]
yankeefan04 has joined #ruby
nick_h has joined #ruby
Rumsteak has joined #ruby
<yankeefan04> I am no longer able to install gems from my user and keep getting ERRNO::EACCES: Permission Denied, Is there a way to delete/uninstall all the ruby stuff i have on my computer and start a fresh?
carlyle_ has joined #ruby
carlyle has quit [Read error: Connection reset by peer]
mahmoudi_ has joined #ruby
nateberkopec has quit [Read error: Connection reset by peer]
nateberkopec has joined #ruby
astegman has joined #ruby
mahmoud__ has joined #ruby
mahmoudimus has quit [Ping timeout: 256 seconds]
senryu has quit [Quit: WeeChat 0.3.7]
wes|away has quit [Quit: Ice cream truck!]
synthetix has quit [Remote host closed the connection]
wesside has joined #ruby
pandawarrior has joined #ruby
pagios has quit [Ping timeout: 276 seconds]
mahmoudi_ has quit [Ping timeout: 264 seconds]
shock_one has quit [Ping timeout: 245 seconds]
asm89 has joined #ruby
eldariof has quit []
<asm89> can anyone point me to a source which describes what the @@ syntax means in a class? Googling for "@@" is quite hard
dmiller has quit [Remote host closed the connection]
<MrZYX> google for class variables
reset has joined #ruby
nomenkun_ has joined #ruby
<asm89> MrZYX: thank you, I got some hits that should help me out
<asm89> cheers
sambao21 has joined #ruby
dmiller has joined #ruby
Eising has left #ruby [#ruby]
JMcAfreak has joined #ruby
TheFuzzball has joined #ruby
bradhe has quit [Remote host closed the connection]
nomenkun has quit [Ping timeout: 240 seconds]
hmarr has joined #ruby
bradhe has joined #ruby
niklasb has joined #ruby
chandankumar has quit [Quit: Leaving]
<TTilus> asm89: theres a catch you should be aware of
yalue has quit [Read error: Connection reset by peer]
jjbohn|afk is now known as jjbohn
<TTilus> asm89: @@var lives in the module/class context where it is introduced, @var lives in the context of what self is
Lord_Daedra has joined #ruby
<asm89> TTilus: ah ok :) so if @@ is defined and you create a new intance of the class it will use the same value?
nomenkun has joined #ruby
phelps has left #ruby ["Linkinus - http://linkinus.com"]
nezumi has joined #ruby
nomenkun_ has quit [Ping timeout: 258 seconds]
<Hanmac> asm89: beware @@ are maybe not what you want ... its poluted to all subclasses and its instances too
Chinorro has quit [Remote host closed the connection]
<asm89> I'm trying to read some ruby code :) not used to the language/syntax (yet)
<asm89> I also figured out it has implicit returns? :)
includex has quit [Quit: Computer has gone to sleep.]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
m8 has joined #ruby
platzhirsch has left #ruby [#ruby]
motto has quit [Ping timeout: 245 seconds]
beiter_ has joined #ruby
acrussell has left #ruby [#ruby]
Mon_Ouie has joined #ruby
beiter has quit [Ping timeout: 252 seconds]
Lord_Daedra has left #ruby [#ruby]
banisterfiend has quit [Remote host closed the connection]
Morkel has joined #ruby
<Spooner> asm89, Indeed it does. Try doing some tutorials online, rather than reading random code ;)
<yankeefan04> I am trying to install ruby and keep getting errors, any idea on how to fix? https://gist.github.com/blklane/5390822
chipotle has joined #ruby
Arzaga has joined #ruby
f0ster has quit [Remote host closed the connection]
beiter_ has quit [Ping timeout: 258 seconds]
spider-mario has joined #ruby
apeiros has joined #ruby
banisterfiend has joined #ruby
breakingthings has quit []
<tylersmith> anybody have ideas on dealing with 'reloading' classes (e.g. in Rails) breaking is_a? https://gist.github.com/tyler-smith/5390856
<tylersmith> afaict from the ruby source, it compares object_ids, which obviously change. Is there a better way than comparing the names of the classes?
<workmad3> tylersmith: yeah... don't reload classes
<Spooner> tylersmith, Well, you are deleting the original class and creating a new one. So they are in no way the same (any more than if you say A = Class.new; A = Class.new they are the same thing).
<workmad3> tylersmith: or if you do, make sure the entire environment is cleaned
<banisterfiend> tylersmith: you could compare the method tables
<banisterfiend> tylersmith: or faster, you could compare the source_location of a specific method
slainer68 has joined #ruby
<tylersmith> I understand they aren't really the same thing, i'm just trying to find a way to fix some stuff breaking in an env where things are reloaded
<banisterfiend> a_instance.method(:special_method) == A.instance_method(:special_method)
<banisterfiend> err
<banisterfiend> .source_location
<apeiros> tylersmith: you're just going to break more stuff in the process.
<banisterfiend> a_instance.method(:special_method).source_location == A.instance_method(:special_method).source_location
<Spooner> It is more a question of why on earth you'd want to delete classes.
<apeiros> that said, Module#clear would be nice
<tylersmith> Spooner: it's not me doing it, it's various web frameworks
<Spooner> Or, rather, you aren't deleting classes; just dereferencing constants.
<tylersmith> i'm attempting to resolve this bug: https://github.com/cypriss/mutations/issues/23
motto has joined #ruby
daemoen is now known as mmercer
<apeiros> some things just can't be done. hard to accept with a permissive language like ruby.
wsterling has quit [Remote host closed the connection]
<Spooner> tylersmith, Mutations doesn't seem like a good idea. If you want to change Class behaviour, use wrappers, then change the wrapped objects. Much simpler in many ways!
m8 has quit [Ping timeout: 252 seconds]
<tylersmith> we made mutations so we're definitely stuck using it ;)
<tylersmith> I'll look into better ways of dealing with it, thanks for the suggestions guys
alx- has quit [Quit: alx-]
wsterling has joined #ruby
<banisterfiend> tylersmith: Pry::WrappedModule(instance.class).source_location == Pry::WrappedModule(klass).source_location :P
<workmad3> tylersmith: firstly, class reloading is only ever a development concern in rails
alx- has joined #ruby
vlad_starkov has joined #ruby
<workmad3> tylersmith: so gotta ask how much you want to insert hacks for a dev-only use-case
<Hanmac> you could use const_missing hook ;P ... but it does maybe not solv the is_a? problem
<tylersmith> workmad3: definitely. i'm looking for a hackless way to do it, just fishing for some ideas
<tylersmith> banisterfiend: that's pretty ingenuitive
randomautomator has quit [Read error: Connection reset by peer]
randomau_ has joined #ruby
<banisterfiend> not really, u dont wnat to know what it's doign behind the scenes :)
chandankumar has joined #ruby
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<workmad3> tylersmith: is this specifically for the Mutation::Command thing?
mockra_ has joined #ruby
<workmad3> tylersmith: so something that's always subclassed?
<tylersmith> workmad3: yep
<workmad3> tylersmith: you could always hook into the inheritance hook method
tr3v has joined #ruby
yankeefan04 has quit [Remote host closed the connection]
<tylersmith> well the is_a? checks are on AR models usually
yankeefan04 has joined #ruby
<workmad3> ah... hmm
anonymuse has joined #ruby
ckwalsh has joined #ruby
mockra has quit [Ping timeout: 252 seconds]
henn1nk has joined #ruby
<henn1nk> how can i format an integer as a string like "000034"?
tr3v has left #ruby [#ruby]
<Spooner> henn1nk, "%06d" % 34
heliumsocket has joined #ruby
<henn1nk> thanks!
<Spooner> Look up sprintf for more formatting options.
beiter has joined #ruby
Zai00 has joined #ruby
brian- is now known as brian`
stef_204 has joined #ruby
Zai00 has quit [Client Quit]
dustint_ has joined #ruby
etcetera has quit []
arietis has quit [Quit: Computer has gone to sleep.]
f0ster has joined #ruby
khismetix has quit [Quit: Computer has gone to sleep.]
elaptics`away is now known as elaptics
_maes_ has quit [Ping timeout: 276 seconds]
arya__ has quit [Ping timeout: 248 seconds]
krawchyk_ has quit [Remote host closed the connection]
mengu has joined #ruby
fermion has quit [Quit: Computer has gone to sleep.]
mercwithamouth has quit [Ping timeout: 260 seconds]
dustint has quit [Ping timeout: 255 seconds]
madb055 has quit [Ping timeout: 264 seconds]
khismetix has joined #ruby
irrationalfab has quit [Remote host closed the connection]
snuglepuss has joined #ruby
jjbohn is now known as jjbohn|afk
tealmage has quit [Remote host closed the connection]
pskosinski has quit [Ping timeout: 256 seconds]
chipotle has quit [Quit: cya]
dustint_ has quit [Ping timeout: 264 seconds]
Hanmac1 has quit [Quit: Leaving.]
tenmilestereo has joined #ruby
NAYENA has joined #ruby
mahmoud__ is now known as mahmoudimus
Hanmac1 has joined #ruby
RonScagz has joined #ruby
henn1nk has left #ruby [#ruby]
platzhirsch has joined #ruby
pcarrier has quit [Ping timeout: 252 seconds]
bhaarat has quit [Quit: bhaarat]
rouss has joined #ruby
akashj87__ has joined #ruby
rouss is now known as Guest24711
akashj87__ has quit [Read error: Connection reset by peer]
Kruppe has joined #ruby
pcarrier has joined #ruby
pyr0commie has joined #ruby
akashj87 has quit [Ping timeout: 245 seconds]
hadees has joined #ruby
RonScagz has quit [Client Quit]
carloslopes has quit [Remote host closed the connection]
lewis has joined #ruby
tootubular has quit [Quit: tootubular]
awarner has quit [Ping timeout: 264 seconds]
arietis has joined #ruby
hydrozen has quit [Quit: Textual IRC Client: www.textualapp.com]
lewis is now known as lewix
awarner has joined #ruby
mlr_ has joined #ruby
<lewix> hi
arietis has quit [Client Quit]
mlr_ has left #ruby [#ruby]
mercwithamouth has joined #ruby
<otters> the neat thing about humans is that they can usually see a desired output and find the correct input
<TTilus> 991/away
<otters> and lookup is way faster than google
motto has quit [Quit: Sto andando via]
pib2009 has joined #ruby
platzhirsch has left #ruby [#ruby]
bhaarat has joined #ruby
rakl has joined #ruby
swistak35 has joined #ruby
sailias has quit [Ping timeout: 260 seconds]
Matip has quit [Quit: Leaving]
echevemaster has joined #ruby
echevemaster has joined #ruby
echevemaster has quit [Changing host]
gyre007 has quit [Ping timeout: 256 seconds]
Arzaga has quit [Quit: Computer has gone to sleep.]
anderse has quit [Quit: anderse]
chipotle has joined #ruby
awarner_ has joined #ruby
dustint_ has joined #ruby
kenneth has quit [Quit: kenneth]
banisterfiend has quit [Remote host closed the connection]
johnmilton has quit [Remote host closed the connection]
Nisstyre has quit [Quit: Leaving]
pskosinski has joined #ruby
kenneth has joined #ruby
DonRichie has quit [Ping timeout: 256 seconds]
jkamenik has quit [Quit: Leaving.]
DonRichie has joined #ruby
awarner has quit [Ping timeout: 264 seconds]
workmad3 has quit [Read error: Operation timed out]
carlyle_ has quit [Remote host closed the connection]
p0wn3d has left #ruby [#ruby]
irrationalfab has joined #ruby
CaptainKnots has joined #ruby
CaptainKnots has quit [Changing host]
CaptainKnots has joined #ruby
kpshek has quit []
smigg has quit [Ping timeout: 256 seconds]
CaptainKnots has quit [Client Quit]
asm89 has quit [Quit: bye!]
heliumsocket has quit [Quit: heliumsocket]
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
heliumsocket has joined #ruby
guns has joined #ruby
CaptainKnots has joined #ruby
jnoob22 has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
lele has quit [Ping timeout: 246 seconds]
heliumsocket has quit [Client Quit]
EPIK has joined #ruby
pyrac has quit [Quit: pyrac]
sebastianb has quit [Ping timeout: 246 seconds]
jcrawford has quit [Ping timeout: 246 seconds]
stef_204 has joined #ruby
lewix has quit [Remote host closed the connection]
schickung has joined #ruby
beiter_ has joined #ruby
lele has joined #ruby
mityaz has quit [Quit: See ya!]
mmitchell has quit [Read error: Connection reset by peer]
chrishough has quit [Quit: chrishough]
tealmage has joined #ruby
ephemerian has joined #ruby
mmitchell has joined #ruby
basex has joined #ruby
beiter has quit [Ping timeout: 264 seconds]
beiter_ is now known as beiter
ph^ has quit [Remote host closed the connection]
drakedouay has quit [Quit: leaving]
undersc0re97 has quit [Quit: Leaving]
itechjunkie has joined #ruby
undersc0re97 has joined #ruby
hormigas has joined #ruby
BizarreCake has quit [Quit: Leaving]
v0n has quit [Quit: WeeChat 0.4.0]
<hormigas> is there a difference between an assignment like "x0 = x1" and "x0 = x1;" ? Is the ; doing anything when the assignments are on separate lines?
Mattix has joined #ruby
<hormigas> I'm looking at some of the sciruby code, because I wouldn't mind adding some new functions, but I'm not sure if there is a reason they ended so many lines with semi-colons as I'm new to ruby
rippa has quit [Ping timeout: 240 seconds]
jcrawford has joined #ruby
yankeefan04 has quit [Remote host closed the connection]
<apeiros> hormigas: ; is treated the same as a newline in that case
<apeiros> i.e. if the whole line is `x0 = x1;`, then the ; is pointless
jjbohn|afk is now known as jjbohn
sambao21 has quit [Quit: Computer has gone to sleep.]
<apeiros> probably code written by a ruby novice
wsterling has quit [Remote host closed the connection]
Ankhers has quit [Remote host closed the connection]
Guest24711 has quit [Quit: Computer has gone to sleep.]
<hormigas> that's what I thought, but I just wanted to make sure. Thanks.
wsterling has joined #ruby
AndChat| has joined #ruby
rolton has quit [Quit: Konversation terminated!]
kpshek has joined #ruby
sambao21 has joined #ruby
unflores has joined #ruby
<Hanmac> hormigas: ; is used when you want to write multible ruby commands in one line
tealmage has quit [Remote host closed the connection]
Bish has quit [Ping timeout: 245 seconds]
robert__ is now known as robert_
yshh has quit [Read error: Connection reset by peer]
hemanth has quit [Read error: Connection reset by peer]
baphled_ has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
yshh has joined #ruby
<hormigas> Yeah that's what I was gathering from the pickaxe, but this code just seemed to like putting them at the end of lines: https://github.com/SciRuby/minimization/blob/master/lib/minimization.rb
sebastianb has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
choobie has quit [Remote host closed the connection]
hemanth has joined #ruby
Banistergalaxy has quit [Ping timeout: 264 seconds]
spacebug has quit [Read error: Connection reset by peer]
spacebug has joined #ruby
Bish has joined #ruby
sprites has joined #ruby
iphands_ has joined #ruby
pioz has joined #ruby
mmercer is now known as Daemoen
k3rn3lito has quit [Ping timeout: 245 seconds]
iphands_ has quit [Client Quit]
k3rn3lito has joined #ruby
irrationalfab has quit [Remote host closed the connection]
sprites has quit [Client Quit]
baphled has joined #ruby
chrishough has joined #ruby
DonRichie has quit [Ping timeout: 264 seconds]
pioz has quit [Client Quit]
gaahrdner has quit [Remote host closed the connection]
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
gaahrdner has joined #ruby
jdunck has quit [Read error: Operation timed out]
ckrailo has quit [Ping timeout: 276 seconds]
s2013 has joined #ruby
<s2013> hi im trying to create a function to find prime numbers but its not working properly. http://paste.ubuntu.com/5711562/ i get true for all odd numbers
codecop has quit [Remote host closed the connection]
wyhaines has quit [Remote host closed the connection]
jdunck has joined #ruby
ckrailo has joined #ruby
freerobby has quit [Quit: Leaving.]
<s2013> can anyone take a look?
lewix has joined #ruby
gaahrdner has quit [Ping timeout: 258 seconds]
<ericwood> first of all, do (2..n).each do |i| instead of those for loops
<s2013> ok
<s2013> any reason why?
<ericwood> it's more idiomatic ruby
<ericwood> we don't use for loops
<s2013> oh ok
<s2013> yeah im used to for loops mostly
<s2013> but okay i changed it
<ericwood> we tend to think in lambdas and closures
<s2013> but isnt my logic correct or atleast im thinking the right way?
<ericwood> another thing, you can do things like "return false if n % 2 == 0"
<s2013> true
<injekt> Ruby has a Prime class in stdlib
khismetix has quit [Ping timeout: 258 seconds]
<s2013> i want to create the function myself. im just practicing
<injekt> ah ok
Morkel has quit [Quit: Morkel]
Morkel has joined #ruby
<s2013> i figured m y logic was correct.. basically it loops through the numbers and if its divisible it returns false
TomJ has joined #ruby
<injekt> def prime?(x); 2.upto(x) {|n| return false if x % n == 0 }; true; end
average has joined #ruby
schickung has quit [Quit: schickung]
<ericwood> nice
average has left #ruby [#ruby]
<ericwood> that's more of the brute force way
<s2013> whats wrong with what i have though?
<s2013> isnt it essentially the same thing?
pkill has joined #ruby
<ericwood> his is much more compact
<s2013> no i mean the logic
<injekt> your loop will return on the first instance
<Hanmac> injekt & ericwood use 3.step(x/2,2).none? {|n| x % n == 0}
<injekt> so 2..n makes no sense, because you return in the first hit
<injekt> Hanmac: :D
<s2013> injekt so for mine how would i fix it without using what you have
<injekt> s2013: so you want the return true outside of the loop
wsterling has quit [Remote host closed the connection]
chipotle has quit [Quit: cya]
sylvinus has quit [Quit: sylvinus]
<ericwood> I wasn't aware of .step
<ericwood> there keep on being more and more awesome enumerable other things I forget
veinofstars has quit [Remote host closed the connection]
veinofstars has joined #ruby
<s2013> im still confused injekt
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
hmarr has quit []
khismetix has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
nga4 has quit []
blacktulip has quit [Remote host closed the connection]
<injekt> s2013: your loop is pointless because you return true or false on the first run through, the loop doesn't run more than once
<s2013> OH
<s2013> got it
<injekt> s2013: using if-else in a loop with a return is always going to return
<s2013> i see what you mean
<injekt> :)
<s2013> cant believe made such a rookie mistake
emergion has joined #ruby
<injekt> it happens
angusiguess has quit [Ping timeout: 260 seconds]
evenix has quit [Remote host closed the connection]
<Hanmac> you are an high advanced level when you understand others code ... but you are at master level when you understand my code ;P
<injekt> oO
dustint_ has quit [Ping timeout: 248 seconds]
vlad_starkov has quit [Remote host closed the connection]
<ericwood> he writes everything on single lines
<lewix> lol
phantasm66 has quit [Quit: *sleeeep….]
<Hanmac> lewix & ericwood & injekt: look at this code: https://gist.github.com/Hanmac/46aa0ecda5d117ed061d and try to understand it ;P
<injekt> Hanmac: I'm pretty sure if I took the time I could understand every part of it
<ericwood> I haven't seen blocks with * and & before
akashj87 has joined #ruby
<injekt> I'm not sure why you would be pleased with thinking your code was unreadable by others
<lewix> Hanmac: I only know ruby
<Hanmac> lewix: it is ruby ;P
<ericwood> Hanmac: tell me more about splats and & in blocks...
<ericwood> I've only seen those in args
<injekt> ericwood: you can splat args in block vars, same as blocks
<ericwood> neat
<ericwood> but &?!
<lewix> looks like complicated C
_nitti has quit [Remote host closed the connection]
Iszak has joined #ruby
<lupine> no, that's pretty standard ruby
chandankumar has quit [Quit: Leaving]
<injekt> ^
<injekt> very standard ruby
<Hanmac> lewix: this is my ruby code ... you dont want to see my C code ;P
<s2013> weird, still not working
<lewix> I'm just teasing
<lupine> it is very clear and if you don't understand it, you don't understand ruby ^^
jlast has quit [Remote host closed the connection]
<lewix> oh my god
<lewix> are you that slow
<lewix> Hanmac: its definitely a bit advance for me at this point in time = )
<cr3> how can I express a variable in a string, with #{foo} for example, so that it looks like true (without quotes) when the variable is a boolean and looks like 'true' (with quotes, single or double doesn't matter) when the variable is a string?
jenrzzz has joined #ruby
csaunders has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<lupine> cr3, #inspect
Yakko has joined #ruby
<injekt> s2013: looks better
<s2013> now it returns false for everything
<lupine> >>true.inspect
<eval-in> lupine => "true" (http://eval.in/16443)
<cr3> lupine: interesting, thanks!
<lupine> >>"true".inspect
<eval-in> lupine => "\"true\"" (http://eval.in/16444)
gaahrdner has joined #ruby
niceguyjames has joined #ruby
<injekt> 19>> %I(.)
<eval-in> injekt => /tmp/execpad-85ce59982608/source-85ce59982608:2: unknown type of %string ... (http://eval.in/16445)
<injekt> 20>> %I(.)
<eval-in> injekt => [:"."] (http://eval.in/16446)
_nitti has joined #ruby
<injekt> 19>> RUBY_DESCRIPTION
<eval-in> injekt => "ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux]" (http://eval.in/16447)
<injekt> ah
niceguyjames has quit [Client Quit]
emergion has quit [Quit: Computer has gone to sleep.]
<Hanmac> hu nice evalin feature ;P
zmanfx has quit [Ping timeout: 245 seconds]
nomenkun has quit [Remote host closed the connection]
<cr3> lupine: now my spec tests look awesome thanks to inspect, woohoo
<injekt> 10>> :/
<eval-in> injekt => 47 (http://eval.in/16448)
kenneth has quit [Quit: kenneth]
<Hanmac> but i am still waiting for a nightly evalin ;P
<injekt> 10>> Object
<eval-in> injekt => Object (http://eval.in/16449)
<injekt> 10>> Object.constants
<eval-in> injekt => /tmp/execpad-6c030dffb38e/source-6c030dffb38e:2: NameError: undefined method `constants' for Object(Class) (http://eval.in/16450)
<injekt> always wondered how anyone did ANY introspection on 1.0
kenneth has joined #ruby
<Hanmac> s2013: x == 2 || x%2 != 0 && 3.step(x/2,2).none? {|n| x % n == 0}
cloke has joined #ruby
<lupine> oh my
<apeiros> Math.sqrt
<s2013> Hanmac but that doesnt really teach me anything. i am trying to learn ruby so im using what i know so far to construct the function
<injekt> apeiros: tried that already, s2013 is writing from scratch
<apeiros> understood that. but you shouldn't iterate up to x/2, only to sqrt(x)
<apeiros> even when writing from scratch :)
<lewix> Hanmac: im creeping your github
<injekt> tru that
<AndChat|> 0).
<s2013> im not iterating upto x/2
<injekt> apeiros: hey did you ever touch 1.0?
<s2013> apeiros http://paste.ubuntu.com/5711592/ thats my code
<apeiros> no inkjet, I never did 1.0
<apeiros> I started with 1.8.0
<injekt> apieros: yeah 1.8.0 was me too
<apeiros> which feels ancient on its own already.
<lupine> ActionDispatch::Flash::FlashHash < Object
<injekt> incredibly
<lupine> whoops
<Hanmac> me started with RGSS and 1.8.* too
freerobby has joined #ruby
_nitti has quit [Ping timeout: 245 seconds]
* lupine was 1.8.7p72 when he started ruby
zmanfx has joined #ruby
kirun has quit [Quit: Client exiting]
* lewix hides behind a tree
_nitti has joined #ruby
<lewix> 2.0
mmitchell has quit [Remote host closed the connection]
jsaak has quit [Ping timeout: 264 seconds]
sixEch0 has joined #ruby
tenmilestereo has quit [Quit: Leaving]
failshell has quit [Remote host closed the connection]
arya__ has joined #ruby
jjbohn has quit [Quit: Leaving...]
wsterling has joined #ruby
mando has quit [Remote host closed the connection]
<lewix> brb
maxmanders has quit [Quit: Computer has gone to sleep.]
sixEch0 has left #ruby [#ruby]
postmodern has joined #ruby
matled has quit [Write error: Broken pipe]
matled has joined #ruby
rsahae has quit [Quit: rsahae]
jerius has quit []
RagingDave has quit [Quit: Ex-Chat]
sambao21 has quit [Quit: Computer has gone to sleep.]
tealmage has joined #ruby
deric_skibotn has quit [Ping timeout: 245 seconds]
<s2013> http://paste.ubuntu.com/5711616/ i think its working fine.
beiter has quit [Quit: beiter]
tealmage has quit [Remote host closed the connection]
spider-mario has quit [Read error: Connection reset by peer]
schickung has joined #ruby
angusiguess has joined #ruby
nfk has quit [Quit: yawn]
rsahae has joined #ruby
jjbohn has joined #ruby
Morkel has quit [Quit: Morkel]
<apeiros> s2013: ruby convention: def prime?, not isPrime
schickung has quit [Client Quit]
<apeiros> also, if you insist on the `is` prefix: is_prime, not isPrime
tealmage has joined #ruby
<apeiros> 2..n-1 --> 2...n
interactionjaxsn has quit [Remote host closed the connection]
interactionjaxsn has joined #ruby
forrest has quit [Quit: Leaving]
Kruppe has quit [Ping timeout: 276 seconds]
<AndChat|> Apeiros are you bored with this life
Iszak has quit [Quit: Computer has gone to sleep.]
<s2013> true. k i fixed it
<s2013> so i have def prime?(n)
<s2013> that works?
<apeiros> yes
kenneth has quit [Quit: kenneth]
<apeiros> ? is valid as the last char of a method name.
<apeiros> obj.is_a?(Object), obj.respond_to?(:class) etc.
<s2013> no it wasnt a question
<s2013> i mean it was
<s2013> but i mean i know it works. i mean is that ok. i know you could put ?
<apeiros> yes. your method is a boolean query.
<apeiros> which usually warrants a ? method
skattyadz has joined #ruby
enebo has quit [Quit: enebo]
generalissimo has quit [Remote host closed the connection]
<Xeago> apeiros: up for a quick game?
<Xeago> am platinum again, w/l ratio: .2
<apeiros> Xeago: oh, congrats
interactionjaxsn has quit [Ping timeout: 258 seconds]
<s2013> how do you compile ruby code into binary?
<apeiros> no, not today @ game
<Xeago> had 3 wins total
<Xeago> ok
awarner_ has quit [Read error: Connection reset by peer]
<Xeago> quite late already
<Xeago> got my proper gear again
niklasb has quit [Read error: Operation timed out]
<apeiros> !
<apeiros> cool :)
mikeg has joined #ruby
<Xeago> but am not having a vibe on the current gameplay
havenwood has quit [Remote host closed the connection]
wolcanus has quit [Ping timeout: 246 seconds]
angusiguess has quit [Ping timeout: 256 seconds]
awarner has joined #ruby
<apeiros> wed/thu are probably ok to play
DaltonUS has quit [Quit: DaltonUS]
<Xeago> keep being incoherent within myself
<Xeago> ok cool!
<Xeago> s2013: it is usually not done
bluOxigen has quit [Read error: Connection reset by peer]
davetherat has quit [Remote host closed the connection]
<Xeago> there are some options to do it but I discourage its use
davetherat has joined #ruby
pandawarrior has quit [Read error: Connection reset by peer]
astegman has quit [Quit: Out of time]
bluOxigen has joined #ruby
pandawarrior has joined #ruby
mengu has quit [Quit: This computer has gone to sleep]
ph^ has joined #ruby
<Xeago> ocra and releasy were mentioned earlier this week
kpshek has quit [Ping timeout: 264 seconds]
alanp has quit [Quit: No Ping reply in 180 seconds.]
alanp_ has joined #ruby
tmiller has quit [Remote host closed the connection]
Guedes has quit [Excess Flood]
timmow has quit [Read error: Connection reset by peer]
ffranz has quit [Excess Flood]
skattyadz has quit [Quit: skattyadz]
jenrzzz has quit [Ping timeout: 276 seconds]
Emmanuel_Chanel has quit [Excess Flood]
Guedes has joined #ruby
Guedes has quit [Changing host]
Guedes has joined #ruby
ffranz has joined #ruby
Emmanuel_Chanel has joined #ruby
<AndChat|> Apeiros do you do erotic cam chat with men?
AndChat| was kicked from #ruby by apeiros [off topic]
kpshek has joined #ruby
<apeiros> was that banister?
backjlack has quit [Remote host closed the connection]
jjbohn has quit [Quit: Leaving...]
iamjarvo has quit [Quit: Leaving.]
freeayu has joined #ruby
mahmoudi_ has joined #ruby
ph^ has quit [Ping timeout: 264 seconds]
<Xeago> you call that off topic?
jenrzzz has joined #ruby
hiroyuki has quit [Ping timeout: 256 seconds]
Proshot has quit [Quit: Leaving]
<Xeago> could be banister
<Xeago> it is in northern part of netherlands
<Xeago> which is about where banister lives
mahmoudimus has quit [Ping timeout: 252 seconds]
NAYENA has quit [Quit: Leaving.]
f0ster is now known as Oxdeadbeef
Oxdeadbeef is now known as f0ster
kpshek has quit []
<apeiros> he's probably on drugs again…
<apeiros> well, I should get some sleep
<apeiros> n8 all
jnoob22 has joined #ruby
<Xeago> take care
cr3 has quit [Quit: leaving]
niklasb has joined #ruby
cbot_ has quit [Ping timeout: 258 seconds]
timmow has joined #ruby
khismetix has quit [Quit: Computer has gone to sleep.]
genta has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 255 seconds]
jarred has joined #ruby
halfie has quit [Ping timeout: 240 seconds]
csexton has quit [Ping timeout: 240 seconds]
franks2_ has quit [Ping timeout: 240 seconds]
<jarred> If I call an asynchronous method from a background worker, does that mess things up? Does the background worker just wait for the method to finish? Does it continue onto the next job and kill the asynchronous method? What happens?
cmarques has quit [Ping timeout: 256 seconds]
maetthew- has quit [Ping timeout: 240 seconds]
<Xeago> jarred: how are you calling it asynchronous
WanderingGlitch has quit [Ping timeout: 240 seconds]
RORgasm has quit [Remote host closed the connection]
DrCode has quit [Ping timeout: 276 seconds]
csexton has joined #ruby
genta has joined #ruby
WanderingGlitch has joined #ruby
mikepack has quit [Remote host closed the connection]
halfie has joined #ruby
frem has joined #ruby
pandawarrior has quit [Quit: Leaving.]
maetthew has joined #ruby
franks2 has joined #ruby
<jarred> The delayed job would be polling an API using Weary (https://github.com/mwunsch/weary), which performs requests asynchronously
<jarred> I'm not 100% sure how it does that, but I can just read the code for it
_nitti has quit [Remote host closed the connection]
SCommette has quit [Quit: SCommette]
<Xeago> jarred: question is, why would you want workers async?
<Xeago> you make workers to offload it
<Xeago> when it is offloaded you want the load to happen in the worker
<Xeago> therefore it diminishes the usecases for further asynchrony calls within a single worker
<Xeago> if you would want further asynchrony in a single worker I would suggest looking at what a single worker does, and maybe splitting that up in multiple steps
<Xeago> will keep it more maintainable and scalable
<jarred> Yeah, that's the source of my confusion. I want to periodically poll, and this library looks really nice. But, since I want to periodically poll, I figured a background worker would be ideal
bean__ has quit [Quit: Computer has gone to sleep.]
<Xeago> jarred: have a look at what the #perform method does in Weary
<jarred> (since this is async though, the background worker would only have utility for the "periodic" part, rather than running in a process separate from the application server)
<jarred> I'm not sure what "future" is
DrCode has joined #ruby
<Xeago> gives you a way of keeping track of a result that is not there yet
<jarred> ah I see
alvaro_o has quit [Quit: Ex-Chat]
<Xeago> doesn't really do all that much in perform
threesome has joined #ruby
<Xeago> you could create Weary::Response.new yourself
<jarred> Yeah, I can just monkey patch it
Rumsteak has quit [Quit: Rumsteak]
oneirophren has quit [Ping timeout: 256 seconds]
<jarred> thanks for your help!
<Xeago> give it a sec
<Xeago> have a look at the future gem
pitzips has quit [Ping timeout: 276 seconds]
<jarred> okay
<Xeago> maybe that has a way to make it blocking
AndChat| has joined #ruby
uris has quit [Ping timeout: 256 seconds]
rsahae has quit [Quit: rsahae]
mercwithamouth has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby
pcarrier has quit [Ping timeout: 248 seconds]
<Xeago> kinda dirty of Weary to not expose a blocking interface
Iszak has joined #ruby
<Xeago> kind find something in the future gem tho
<Xeago> doubt you would need to make a request object tbh
f0ster has quit [Ping timeout: 264 seconds]
undersc0re97 has quit [Quit: Leaving]
rsahae has joined #ruby
roll_ has joined #ruby
<jarred> It just runs the block on a different thread and returns the result. Before the result is returned, it returns the future block (a Promise object).
xclite has quit [Remote host closed the connection]
<Xeago> yes, why make a request?
pcarrier has joined #ruby
roll_ has quit [Client Quit]
<Xeago> you just want the Response right?
mahmoudimus has joined #ruby
zmanfx has quit [Ping timeout: 245 seconds]
<Xeago> you are probably altering the request object I suppose
<Xeago> makes a bit of sense then
vlad_starkov has quit [Ping timeout: 264 seconds]
<Xeago> yea, I'd monkey patch it
undersc0re97 has joined #ruby
<Xeago> either make a method-scoped future that just does a tap
<Xeago> (e.g. passes through)
<Xeago> or snip the 4 lines from within the future
mercwithamouth has joined #ruby
mahmoudi_ has quit [Ping timeout: 252 seconds]
zmanfx has joined #ruby
tevio has quit [Remote host closed the connection]
<jarred> Yeah, I think I'll just monkey patch it so the "perform" method takes an option (:async), and when it's async, it calls itself wrapped in a future block
<Xeago> fair enough
rsahae has quit [Ping timeout: 245 seconds]
MrZYX is now known as MrZYX|off
freeayu has quit [Ping timeout: 264 seconds]
<Xeago> think that is a better solution if you want to keep perform
freeayu has joined #ruby
xcv has joined #ruby
theRoUS has quit [Ping timeout: 260 seconds]
agarie has joined #ruby
<agarie> Hey guys, if someone wants to participate in Google Summer of Code 2013, SciRuby has some projects: https://github.com/SciRuby/sciruby/wiki/Google-Summer-of-Code-2013-Ideas
baphled has quit [Ping timeout: 252 seconds]
Iszak has quit [Quit: Textual IRC Client: www.textualapp.com]
frem has quit [Ping timeout: 245 seconds]
pen has joined #ruby
jerius has joined #ruby
jerius has quit [Client Quit]
Neandre has quit [Remote host closed the connection]
arya__ has quit []
ariedler has quit [Remote host closed the connection]
pyr0commie has quit [Remote host closed the connection]
speakingcode-wor has quit [Remote host closed the connection]
adamjleonard has quit [Quit: Leaving...]
tevio has joined #ruby
GhostingCoder011 has joined #ruby
alanp_ is now known as alanp
kenneth has joined #ruby
GhostingCoder011 has quit [Client Quit]
rvmuser has joined #ruby
rvmuser has quit [Client Quit]
bradleyp_ has quit [Remote host closed the connection]
wesside has quit [Quit: Computer has gone to sleep.]
schickung has joined #ruby
justsee has joined #ruby
justsee has joined #ruby
randomau_ has quit [Remote host closed the connection]
stuartrexking has joined #ruby
chipotle has joined #ruby
Hobogrammer_ has joined #ruby
apeiros has joined #ruby
jgrevich has quit [Read error: Operation timed out]
jgrevich has joined #ruby
uris has joined #ruby
lkba has joined #ruby
swex_ has joined #ruby
Nisstyre-laptop has joined #ruby
angusiguess has joined #ruby
Hobogrammer has quit [Ping timeout: 245 seconds]
Mon_Ouie has quit [Ping timeout: 276 seconds]
jgarvey has quit [Quit: Leaving]
niklasb has quit [Read error: Operation timed out]
genta has quit [Quit: Quit]
pcarrier has quit [Quit: Computer has gone to sleep.]
swex has quit [Ping timeout: 245 seconds]
jtharris has quit [Read error: No route to host]
veinofstars has quit [Read error: Operation timed out]
genta has joined #ruby
angusiguess has quit [Ping timeout: 245 seconds]
unflores has quit [Quit: unflores]
momomomomo has joined #ruby
statarb3 has joined #ruby
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
chipotle has quit [Quit: cya]
rsahae has joined #ruby
Arzaga has joined #ruby
schickung has quit [Quit: schickung]
nkr has quit [Quit: Linkinus - http://linkinus.com]
jtharris has joined #ruby
axl_ has quit [Quit: axl_]
banisterfiend has joined #ruby
gaahrdner has quit [Remote host closed the connection]
chipotle has joined #ruby
anonymuse has quit [Quit: Leaving...]
timmow has quit [Remote host closed the connection]
rsahae has left #ruby [#ruby]
schickung has joined #ruby
emergion has joined #ruby
idkazuma has joined #ruby
marr has quit [Ping timeout: 248 seconds]
btaitelb has quit [Quit: btaitelb]
btaitelb has joined #ruby
schickung has quit [Client Quit]
tobyo has quit [Ping timeout: 256 seconds]
d11wtq_ has quit [Ping timeout: 256 seconds]
lewix has quit [Remote host closed the connection]
emergion has quit [Ping timeout: 264 seconds]
NiteRain has quit [Ping timeout: 240 seconds]
zmanfx has quit [Ping timeout: 245 seconds]
osvico has joined #ruby
GeissT has joined #ruby
wsterling has quit [Remote host closed the connection]
ukd1 has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
veinofstars has joined #ruby
wallerdev has quit [Quit: wallerdev]
awarner has quit [Remote host closed the connection]
jtharris has quit [Quit: WeeChat 0.4.0]
idletom has joined #ruby
zmanfx has joined #ruby
elaptics is now known as elaptics`away
jamie_ca_ has quit []
bhaarat has quit [Ping timeout: 260 seconds]
ehellman has joined #ruby
slainer68 has quit [Remote host closed the connection]
ariedler has joined #ruby
chipotle has quit [Quit: cya]
Arzaga has quit [Quit: Computer has gone to sleep.]
Scriptor has joined #ruby
locriani has quit [Read error: Connection reset by peer]
locriani has joined #ruby
nari has joined #ruby
headius has quit [Quit: headius]
JMcAfreak has quit [Ping timeout: 252 seconds]
chipotle has joined #ruby
Xeago has quit [Remote host closed the connection]
rismoney has quit [Read error: Connection reset by peer]
tylersmith has quit [Quit: tylersmith]
momomomomo has quit [Ping timeout: 258 seconds]
wreckimnaked has joined #ruby
hadees has quit [Quit: hadees]
momomomomo has joined #ruby
yojimbo__ has joined #ruby
tealmage has quit [Remote host closed the connection]
yojimbo_ has quit [Ping timeout: 252 seconds]
bhaarat has joined #ruby
emmanuelux has quit [Ping timeout: 240 seconds]
hormigas has quit [Ping timeout: 264 seconds]
thecodethinker has joined #ruby
<thecodethinker> Why is it that when i tell rvm to install something it just runs apt-get update then stops?
slainer68 has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
pkrnj has joined #ruby
predator217 has joined #ruby
angusiguess has joined #ruby
jamesfung14 has joined #ruby