apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p286: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com
clj_newb has quit [Ping timeout: 246 seconds]
<apeiros> and the point of your question again was what?
v0n has joined #ruby
<rburton-> Any recommendations for a replacement of Foreman that will work with JRuby? When I try to run foreman via jruby it's dependent on posix/spawn which has native extensions
hsbt is now known as hsbt_away
<tintin> rburton-: join #jruby
<apeiros> tintin: you are NOT required to show us all you found, you know?
<danneu> tintin: wtf?
<tintin> danneu: What do you want ?
tvw has quit [Remote host closed the connection]
<apeiros> we'd even prefer if you did not paste them all here. paste them if you've got an actual question *related* to any of those articles. thank you.
geermc4 has quit [Remote host closed the connection]
hsbt_away is now known as hsbt
<tintin> Ok, thank you. bye
tintin has quit [Client Quit]
<apeiros> tick…
bigmac has joined #ruby
anachronistic has quit [Quit: anachronistic]
Keva161 has quit [Ping timeout: 255 seconds]
Takehiro has joined #ruby
u89 has joined #ruby
roadt has joined #ruby
hbpoison has joined #ruby
hbpoison_ has joined #ruby
_alejandro has joined #ruby
bigmac is now known as i8igmac
<jake_> lets say i just setup passenger and apache for my rack app, but passenger complains I haven't run 'bundle install' (but i have). What should I google?
<apeiros> jake_: you sure your passenger runs the same ruby as you do?
dpatel has quit [Quit: dpatel]
<jake_> yes. i removed ruby < 1.9.1 and backtrace has 1.9.1 in it. i can link you to the backtrace if that would help
maxer has quit [Quit: maxer]
Takehiro has quit [Ping timeout: 240 seconds]
clj_newb has joined #ruby
havenn has joined #ruby
<apeiros> no. but the configuration lines of passenger would be interesting, and what `which ruby` before running bundle install prints
hbpoison_ has quit [Ping timeout: 248 seconds]
hbpoison has quit [Ping timeout: 244 seconds]
zodiak has joined #ruby
ceej has joined #ruby
<apeiros> I also assume that you verified that the `bundle install` was indeed successful
Iszak has quit []
<jake_> yes. i can run the app with puma no problem
mahmoudimus has joined #ruby
<apeiros> ok
<jake_> which ruby is /usr/bin/ruby
maxer has joined #ruby
jjbohn has joined #ruby
BadProphet has quit [Quit: This computer has gone to sleep]
zodiak has quit [Max SendQ exceeded]
zodiak has joined #ruby
zodiak has quit [Max SendQ exceeded]
BadProphet has joined #ruby
codecaster has quit [Quit: Leaving.]
<jake_> the rackup config file or the passenger config file?
BadProphet has quit [Client Quit]
arubin_ has joined #ruby
thinkdevcode has quit [Remote host closed the connection]
ltsstar has joined #ruby
<jake_> I think the important part is what went into apache?
<jake_> LoadModule passenger_module /var/lib/gems/1.9.1/gems/passenger-3.0.18/ext/apache2/mod_passenger.so
<jake_> PassengerRoot /var/lib/gems/1.9.1/gems/passenger-3.0.18
<jake_> PassengerRuby /usr/bin/ruby1.9.1
<apeiros> those are different rubies
emmanuelux has joined #ruby
<apeiros> unless you symlinked them
<jake_> oh shit
<jake_> lol
<jake_> i see what what you mean now
<jake_> let me ehck
<apeiros> good ;-)
<apeiros> good luck fixing it
<jake_> thanks
ltsstar has quit [Client Quit]
hsbt is now known as hsbt_away
kbeddingfield has joined #ruby
nga4 has joined #ruby
barce has joined #ruby
Zai00_ has quit [Quit: Zai00_]
<jake_> symlinked, redid the bundle, same issue. atleast there is one less bug. thanks apeiros
hsbt_away is now known as hsbt
<apeiros> I don't think symlinking them is a good idea. I'd do a proper install of passenger with the ruby you want to run it under.
<apeiros> and then bundle with that same ruby.
QKO has quit [Changing host]
QKO has joined #ruby
_alejandro has quit [Read error: Connection reset by peer]
<barce> how do i replace %q[&'] with %q[&\'] ? str = %q[&'] ; str.gsub(%q[&'], %q[&\']) # doesn't work.
tyfighter has quit [Quit: tyfighter]
hsbt is now known as hsbt_away
<jake_> well, i symlinked them and changed the config file to point to the one that which ruby returned because thats the one that gem install passenger would have used.
`brendan has joined #ruby
butblack has joined #ruby
cirwin has joined #ruby
kbeddingfield has quit [Ping timeout: 260 seconds]
maxer has quit [Quit: maxer]
baphled has joined #ruby
cobragoa_ has quit [Remote host closed the connection]
hsbt_away is now known as hsbt
eataix has joined #ruby
thisirs has quit [Remote host closed the connection]
<jake_> barce: str.gsub(%q[&'], %q[&\\\\'])
<apeiros> that part really needs better docs in String#gsub
fantazo has quit [Ping timeout: 276 seconds]
<jake_> the same issue shows up in python.
h4mz1d has quit [Ping timeout: 256 seconds]
<apeiros> yes, it's due to \', \0-\9 etc. having a meaning in the replacement string
<apeiros> so you need double escaping - once plain string escaping, and then again to escape it from special meaning in gsub.
rakm has quit [Remote host closed the connection]
stephenjudkins has joined #ruby
_alejandro has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
<barce> jake_: thanks
<jake_> np
jrajav has quit []
jrajav has joined #ruby
Nisstyre has quit [Quit: Leaving]
armando_canals has quit [Ping timeout: 256 seconds]
ryanf has joined #ruby
crackfu has joined #ruby
Keva161 has joined #ruby
F1skr has quit [Quit: WeeChat 0.3.9]
ryanlecompte has quit [Remote host closed the connection]
zeade has left #ruby [#ruby]
SeoxyS has joined #ruby
kenneth has quit [Read error: Connection reset by peer]
SeoxyS is now known as kenneth
baphled has quit [Ping timeout: 245 seconds]
<danneu> Oh wow. To follow up my noob question above, if anyone's using Treetop or want to write their own grammar, check out the Citrus library. Amazing README: https://github.com/mjijackson/citrus
Tania has quit [Quit: :p]
tds has quit [Quit: tds]
awarner has quit [Remote host closed the connection]
crackfu has quit [Ping timeout: 244 seconds]
nga4 has quit [Ping timeout: 246 seconds]
baroquebobcat has joined #ruby
jeffreybaird has joined #ruby
jjbohn has quit [Quit: Leaving...]
warb0`laptop has joined #ruby
nari has joined #ruby
armando_canals has joined #ruby
hsbt is now known as hsbt_away
alexim has quit [Quit: bye]
jjbohn has joined #ruby
<jake_> for anyone having my problem: 'bundle pack' is the solution.
jlwestsr has quit [Ping timeout: 246 seconds]
jgrevich has quit [Ping timeout: 260 seconds]
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
mmitchell has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
cableray has quit [Quit: cableray]
maletor has quit [Quit: Computer has gone to sleep.]
JustinCampbell has quit [Remote host closed the connection]
joast has joined #ruby
<rburton-> damn strugglign to get God to start Sidekiq
linoj has quit [Quit: linoj]
<rburton-> /me let there be light.. nothing!
jaygen has joined #ruby
jgrevich has joined #ruby
zeitgeist_arkeo has joined #ruby
Nisstyre has joined #ruby
artOfWar has quit [Ping timeout: 265 seconds]
Takehiro has joined #ruby
hbpoison has joined #ruby
hbpoison_ has joined #ruby
emergion has joined #ruby
sailias has joined #ruby
armando_canals has quit [Ping timeout: 244 seconds]
jlwestsr has joined #ruby
Takehiro has quit [Ping timeout: 244 seconds]
hbpoison has quit [Ping timeout: 256 seconds]
hbpoison_ has quit [Ping timeout: 256 seconds]
emmanuelux has quit [Remote host closed the connection]
slainer68 has joined #ruby
sailias has quit [Ping timeout: 256 seconds]
Tearan has quit [Quit: Sleepy Badger....]
sn0wb1rd has quit [Quit: sn0wb1rd]
<rburton-> Anyone have any success at running sidekiq via God?
slainer68 has quit [Ping timeout: 256 seconds]
<rburton-> sort of frustrated at this point
<rburton-> It spawns it but doesn't monitor it. wanted to see if anyone had a God script I could look at
earthquake has joined #ruby
ddd has quit [Quit: Leaving.]
mneorr has quit [Remote host closed the connection]
x82_nicole has joined #ruby
chimkan has joined #ruby
mneorr has joined #ruby
voodoofish430 has quit [Quit: Leaving.]
jaygen_ has joined #ruby
jslowe has quit [Read error: Connection reset by peer]
jaygen has quit [Ping timeout: 252 seconds]
thinkdevcode has joined #ruby
werdnativ has quit [Ping timeout: 246 seconds]
dakine has quit [Quit: Leaving]
mklappstuhl has quit [Ping timeout: 256 seconds]
thinkdevcode has quit [Ping timeout: 256 seconds]
cirwin has quit [Ping timeout: 252 seconds]
dakine has joined #ruby
nga4 has joined #ruby
tds has joined #ruby
_alejandro has quit [Read error: Connection reset by peer]
jeffreybaird has quit [Quit: jeffreybaird]
u89 has quit [Remote host closed the connection]
bairui has quit [Ping timeout: 260 seconds]
crackfu has joined #ruby
hsbt_away is now known as hsbt
mahmoudimus has quit [Quit: Computer has gone to sleep.]
mkillebrew has quit [Ping timeout: 252 seconds]
yourmysin has joined #ruby
rburton- has quit [Quit: Linkinus - http://linkinus.com]
armenb has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
sn0wb1rd has joined #ruby
mkillebrew has joined #ruby
forced_request has quit [Ping timeout: 252 seconds]
crackfu has quit [Ping timeout: 276 seconds]
g-ram has joined #ruby
Keva161 has quit [Ping timeout: 245 seconds]
jaygen_ has quit [Remote host closed the connection]
clj_newb has quit [Ping timeout: 256 seconds]
Ry_ has joined #ruby
cableray has joined #ruby
shawn_hsiao has joined #ruby
chimkan has quit [Quit: chimkan]
slainer68 has joined #ruby
sailias has joined #ruby
lenovodroid has joined #ruby
jimeh has quit [Quit: Computer has gone to sleep.]
mahmoudimus has joined #ruby
zigidias has joined #ruby
sn0wb1rd_ has joined #ruby
cableray has quit [Quit: cableray]
justinmcp has quit [Remote host closed the connection]
arubin_ has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
adeponte has quit [Remote host closed the connection]
justinmcp has joined #ruby
sn0wb1rd has quit [Ping timeout: 244 seconds]
sn0wb1rd_ is now known as sn0wb1rd
geggam has joined #ruby
postmodern has joined #ruby
jjbohn has quit [Ping timeout: 240 seconds]
KnowTheLedge has joined #ruby
mneorr has quit [Remote host closed the connection]
vickaita has quit [Ping timeout: 260 seconds]
mneorr has joined #ruby
justinmcp has quit [Ping timeout: 240 seconds]
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
rakl has quit [Quit: sleeping]
<jake_> ive got a ruby app setup via passenger and apache. it is returning type 'httpd/unix-derectory' instead of plain text. anyone ever had a problem like this or know how to fix it?
jjbohn has joined #ruby
Jscob__ has quit [Ping timeout: 240 seconds]
issyl0 has quit [Ping timeout: 608 seconds]
apok has quit [Quit: apok]
Goles has quit [Remote host closed the connection]
chimkan has joined #ruby
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby
daniel_- has quit [Ping timeout: 260 seconds]
Takehiro has joined #ruby
hbpoison has joined #ruby
hbpoison_ has joined #ruby
seich- has quit [Ping timeout: 246 seconds]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
seich- has joined #ruby
freakazoid0223 has quit [Read error: Connection reset by peer]
cakehero has quit [Quit: Computer has gone to sleep.]
Takehiro has quit [Ping timeout: 252 seconds]
hbpoison has quit [Ping timeout: 256 seconds]
sn0wb1rd has quit [Quit: sn0wb1rd]
sn0wb1rd has joined #ruby
lenovodroid has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
smook has joined #ruby
colinbm has joined #ruby
sailias has quit [Ping timeout: 256 seconds]
rakl has joined #ruby
n_blownapart has joined #ruby
Xeago has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
Grieg has quit [Ping timeout: 268 seconds]
<n_blownapart> hi could use help with line 9 in this prog. Not sure what the [1] notation means, and it doesn't return an empty array as textbook promises. Only commented line returns empt. array altho not sure about the global variable there either. thanks: http://pastie.org/5147991
jjbohn has quit [Quit: Leaving...]
Grieg has joined #ruby
Grieg has quit [Changing host]
Grieg has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
jjbohn has joined #ruby
smook has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
jabs has joined #ruby
bairui has joined #ruby
colinbm has quit [Quit: colinbm]
alvaro_o has quit [Quit: Ex-Chat]
ceej has quit [Quit: ceej]
dv_ has quit [Ping timeout: 260 seconds]
justinmcp has joined #ruby
wargasm has joined #ruby
lastd0nkeY has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
Gmind has joined #ruby
bricker has quit [Read error: Operation timed out]
<apeiros> n_blownapart: that's odd code
<apeiros> Regexp#match returns a MatchData object or nil, patching it to return an empty array instead of nil doesn't make much sense to me…
<n_blownapart> thanks yeah apeiros its in a part of the book what not to do in ruby.
joeycarmello has quit [Remote host closed the connection]
<apeiros> n_blownapart: but to (maybe) explain the rationale: without that monkey-patch, the line 9 would fail, it'd raise an exception
CaptainJet has quit [Read error: Connection reset by peer]
<apeiros> you see, normally `/abc/.match("x")` # => nil
<apeiros> and nil does not respond to the [] method (x[1] invokes the method named [] on x), so you get a NoMethodError
kenneth has quit [Quit: kenneth]
<n_blownapart> apeiros: my problem is with the [1] vs. $1 notation. is [1] a monkey-patch?
<apeiros> no
goldenwest has joined #ruby
<apeiros> monkey-patch is when you change an existing class
<goldenwest> I've got mod_ruby working with cgi but it fails with a SecurityError if I try to require a gem
<apeiros> and line 1-6 changes the Regexp#match method
<n_blownapart> apeiros: got it. one sec if you have time I want to show you another prog...
jaygen has joined #ruby
<apeiros> n_blownapart: foo[1] is just a method call, just like foo.getIndex(1)
<apeiros> just a fancy name. you could write it as foo.[](1) too (foo[1] is just syntax sugar)
sailias has joined #ruby
<n_blownapart> apeiros: oh but what is it an index to?
<apeiros> n_blownapart: as said, Regexp#match returns a MatchData object. and MatchData#[] returns the nth capture
spo12 has joined #ruby
<n_blownapart> apeiros: thanks one sec studying that...
<apeiros> /(.)(.)(.)/.match("abc")[1] # => "a" (0 is the full match, so "abc")
g-ram has quit [Quit: Computer has gone to sleep.]
<apeiros> x = /(.)(.)(.)/.match("abc") # => #<MatchData …>
<apeiros> x[0] # => "abc"
<apeiros> x[1] # => "a"
CaptainJet has joined #ruby
<apeiros> x[3] # => "c"
<apeiros> x[4] # => nil - since you have only 3 captures
<n_blownapart> apeiros: yeah I think I get that there are four captures altogether including full string.
<n_blownapart> apeiros: that is cool !
<n_blownapart> apeiros: thanks much I wanted to ask you about this notation in lines 7 and 11 : http://pastie.org/4906423
brianpWins has quit [Quit: brianpWins]
jjbohn is now known as jjbohn|afk
<n_blownapart> apeiros: above explanation big help I couldn't have that explained properly hitherto.
<apeiros> what's your issue with those lines?
<apeiros> \\1 references the first capture, \\2 the second
emergion has quit [Quit: Computer has gone to sleep.]
ejholmes has quit [Quit: ejholmes]
<n_blownapart> apeiros: but its more than merely a reference because the output changes. First I don't see how \\1 \\2 and \\1 \\1 produces those two outputs.
g-ram has joined #ruby
<apeiros> gsub means "globally substitute"
ejholmes has joined #ruby
<apeiros> the methods job is indeed to change the string
<apeiros> "hello world".gsub(/o/, 'O') # => "hellO wOrld"
<apeiros> a capture in a regex is the part in parens. you use them to be able to reference them again
<n_blownapart> apeiros: got that. in line 9 the first entry in the array is unchanged, then the last two words of the string are returned. why?
<apeiros> because that's the last thing that was matched
<apeiros> and the string is unchanged because what is matches is replaced by exactly the same
dorei has quit []
ryanlecompte has joined #ruby
<n_blownapart> apeiros: sorry I'm trying to see what its doing...
ryanf has quit [Ping timeout: 244 seconds]
ryanlecompte has quit [Remote host closed the connection]
<n_blownapart> apeiros: so on line 9 is "double every word here." the \\0 capture ?
<apeiros> hu?
<goldenwest> I'm getting this error: Insecure operation - exist? (SecurityError) when I try to load a gem with $SAFE = 1
jblack has joined #ruby
<apeiros> n_blownapart: I think you get confused by the rest of the stuff that goes on
<apeiros> just focus on `"double every word here.".gsub(/\b(\w+) (\w+)/, "\\1 \\2")` first
<apeiros> you have string.gsub(match_this, replace_with_that)
<apeiros> and your "match_this" says "match two words, store word 1 in capture 1, and word 2 in capture 2"
proshot has quit [Read error: Connection reset by peer]
<apeiros> and your "replace_with_that" says "replace it with capture 1, space and capture 2"
<apeiros> which is essentially: don't do a thing.
alvaro_o has joined #ruby
stephenjudkins has quit [Quit: stephenjudkins]
jaygen has quit [Ping timeout: 252 seconds]
<n_blownapart> apeiros: yeah confusing. so \\1 is Double every
<apeiros> no, \\1 is "first capture"
atlantaman has joined #ruby
<apeiros> the effect of doubling happens because you say "first capture" twice
stephenjudkins has joined #ruby
<apeiros> the second example changes the "replace_with_that" to "\\1 \\1", which means "replace it with capture 1, space and capture 1 again"
emanon_ has joined #ruby
<n_blownapart> aoh apeiros I think I see this: the string is split in two because there are two (\w+) 's.
<apeiros> yes, as said, the stuff in parens are captures
<apeiros> \w+ means "match characters", and (\w+) means "match characters and store it"
proshot has joined #ruby
<n_blownapart> yeah apeiros so each (\w+) can only accomodate two words in a four word string.
<apeiros> no
<apeiros> each (\w+) accommodates *one* word
<apeiros> gsub substitutes twice.
<apeiros> if you use sub instead of gsub, you'll see
<apeiros> "double every word here.".sub(/\b(\w+) (\w+)/, "\\1 \\1") # => "double double word here"
Hanmac1 has joined #ruby
<apeiros> the first match is "double every", with capture 1 == "double" and capture 2 == "every"
<apeiros> so replacement "\\1 \\1" becomes "double double"
<apeiros> and sub (not gsub) stops after that first replacement
g-ram has quit [Quit: Computer has gone to sleep.]
slainer68 has quit [Remote host closed the connection]
<apeiros> if you use gsub, it'll proceed after that match. the second match being "word here", meaning capture 1 == "word", capture 2 being "here"
<apeiros> which is why $1 and $2 are set to "word" and "here" after the gsub. because that's what the captures stored in the last match.
Hanmac has quit [Ping timeout: 244 seconds]
emanon_ has quit [Quit: Leaving]
jaygen has joined #ruby
<n_blownapart> apeiros: that is rough but I think I'm starting to see it. thanks very much.
hbpoison has joined #ruby
tekacs has quit [Quit: Disappearing... *poof*]
jaygen has quit [Read error: Connection reset by peer]
jaygen_ has joined #ruby
flyinprogramer has quit [Quit: flyinprogramer]
sabfer has joined #ruby
DrShoggoth has quit [Quit: Leaving]
pipopopo has quit [Ping timeout: 276 seconds]
vickaita has joined #ruby
wolfman2000 has joined #ruby
tekacs has joined #ruby
pipopopo has joined #ruby
owzim has joined #ruby
<owzim> hello, after installing how can I access the gem? In every tutorial that uses a gem the gem is accessible via its name instantly. Why not in my case?
<thinkit> are any freelancers available in here for work?
<owzim> ruby work?
<thinkit> I am looking to launch a social ratings website and have the html/css all done and just need someone to code the backend.
<thinkit> got specs all written out.
<thinkit> and design ready to go
<owzim> backend is not my thing =) sorry
<thinkit> owzim: yes preferably.
sabfer has left #ruby [#ruby]
Takehiro has joined #ruby
<wolfman2000> Evening. Foundation CSS question: when using the top-bar and dropdown functionality, there is a white triangle to the right of the initial li that contains the drop down choices. How can I customize this triangle? I haven't found where in the CSS that is utilized.
freakazoid0223 has joined #ruby
cableray has joined #ruby
warb0`laptop has quit [Quit: Lost terminal]
CaptainJet has quit []
<apeiros> wolfman2000: this is #ruby, not #css
hotovson has joined #ruby
<wolfman2000> apeiros: my bad. I thought that it was acceptable here since foundation is tied to ruby in some way. Compass or something.
vickaita has quit [Ping timeout: 246 seconds]
g-ram has joined #ruby
Vinz_ is now known as Vinz_`
alvaro_o has quit [Quit: Ex-Chat]
scx has quit [Read error: Connection reset by peer]
adeponte has joined #ruby
mneorr has quit [Remote host closed the connection]
Takehiro has quit [Ping timeout: 252 seconds]
lupine_85 has quit [Excess Flood]
hotovson has quit [Ping timeout: 256 seconds]
<thinkit> anyone interested in coding this?
<thinkit> the backend :) paid job.
lupine_85 has joined #ruby
hotovson has joined #ruby
ceej has joined #ruby
roadt has quit [Ping timeout: 260 seconds]
nignaztic has joined #ruby
sailias has quit [Read error: Connection reset by peer]
buscapepe has joined #ruby
buscapepe has quit [Remote host closed the connection]
hotovson has quit [Ping timeout: 256 seconds]
buscapepe has joined #ruby
sailias has joined #ruby
ryanf has joined #ruby
v0n has quit [Quit: Leaving]
ablankfield has quit [Remote host closed the connection]
sailias has quit [Ping timeout: 256 seconds]
Grieg has quit [Quit: laterz! :D]
cakehero has joined #ruby
g-ram has quit [Quit: Computer has gone to sleep.]
jrajav has quit []
slainer68 has joined #ruby
brianpWins has joined #ruby
hbpoison has quit [Remote host closed the connection]
kbeddingfield has joined #ruby
chimkan has quit [Quit: chimkan]
niklasb has quit [Ping timeout: 240 seconds]
ryanf has quit [Quit: broken pipes |||]
jeremywrowe has joined #ruby
LucidDreamZzZ has joined #ruby
ryanf has joined #ruby
slainer68 has quit [Ping timeout: 256 seconds]
aetcore has joined #ruby
g-ram has joined #ruby
brianpWins has quit [Quit: brianpWins]
snorkdude has joined #ruby
stephenjudkins has quit [Quit: stephenjudkins]
strangeworks has joined #ruby
jblack has quit [Ping timeout: 268 seconds]
joeycarmello has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
thone_ has quit [Ping timeout: 246 seconds]
skaczor has quit [Remote host closed the connection]
thone has joined #ruby
joeycarmello has quit [Ping timeout: 244 seconds]
Gmind has quit [Read error: Connection reset by peer]
g-ram has quit [Quit: Computer has gone to sleep.]
rakl has quit [Quit: sleeping]
emergion has joined #ruby
Araxia has quit [Quit: Araxia]
shiin has quit [Quit: Computer has gone to sleep.]
rakl has joined #ruby
mahmoudimus has joined #ruby
g-ram has joined #ruby
<cakehero> Sup owners, I'm going to make an API wrapper for a soap web service and I haven't written a ruby API wrapper before
<cakehero> I was wondering if I should make it a gem, or just a file, or what, ultimately it's for a rails app
<cakehero> but obvi could be used for other stuff
quest88 has joined #ruby
<ryanf> cakehero: a gem
<cakehero> ryanf thanks
eataix has quit [Ping timeout: 245 seconds]
eataix has joined #ruby
Takehiro has joined #ruby
atlantaman has quit [Quit: atlantaman]
<rcsheets> How do i tell gem to pass arguments to the extconf.rb for a native extension?
Trioke has quit [Ping timeout: 252 seconds]
<rcsheets> i want to 'gem install ruby-odbc' but I need to tell it where to find the unixODBC stuff
Solnse has joined #ruby
QKO_ has joined #ruby
butblack has quit [Quit: butblack]
QKO has quit [Ping timeout: 244 seconds]
Takehiro has quit [Ping timeout: 252 seconds]
roadt has joined #ruby
<rcsheets> oh, just found it
<rcsheets> gem install ruby-odbc -- --with-odbc-dir=/path/to/unixODBC
strangeworks has quit [Remote host closed the connection]
wolfman2000 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
kbeddingfield has quit [Remote host closed the connection]
snorkdude has quit [Remote host closed the connection]
jeremywrowe has quit [Quit: jeremywrowe]
_alejandro has joined #ruby
thinkdevcode has joined #ruby
tomsthumb has quit [Quit: Leaving.]
n_blownapart has quit [Remote host closed the connection]
dakine has quit [Quit: Leaving]
ceej has quit [Quit: ceej]
savage- has joined #ruby
brianpWins has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
rakl has quit [Quit: sleeping]
thinkdevcode has quit [Remote host closed the connection]
jabs has quit [Quit: Page closed]
Monie has quit [Read error: Connection reset by peer]
Monie has joined #ruby
Monie has quit [Changing host]
Monie has joined #ruby
charliesome has joined #ruby
ejholmes has quit [Quit: ejholmes]
rakl has joined #ruby
tommyvyo has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Ry__ has joined #ruby
Uranio has quit [Ping timeout: 264 seconds]
owzim has quit [Remote host closed the connection]
danneu has quit [Ping timeout: 260 seconds]
nateberkopec has joined #ruby
Ry_ has quit [Ping timeout: 256 seconds]
_alejandro has quit [Ping timeout: 244 seconds]
areil has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
danneu has joined #ruby
nignaztic has quit [Ping timeout: 260 seconds]
nateberkopec has quit [Client Quit]
cirwin has joined #ruby
tk___ has joined #ruby
joeycarmello has joined #ruby
Jonah11_ has quit [Ping timeout: 260 seconds]
Jonah11_ has joined #ruby
Takehiro has joined #ruby
tds has quit [Quit: tds]
emergion has quit [Ping timeout: 252 seconds]
stephenjudkins has joined #ruby
adeponte has quit [Remote host closed the connection]
beneggett has joined #ruby
emergion has joined #ruby
rlb3 has joined #ruby
Takehiro has quit [Ping timeout: 256 seconds]
werdnativ has joined #ruby
emergion has quit [Ping timeout: 276 seconds]
emergion has joined #ruby
jankly has quit [Ping timeout: 256 seconds]
rlb3 has quit [Remote host closed the connection]
ABK has quit [Read error: Connection reset by peer]
chrisramon has quit [Quit: chrisramon]
h4mz1d has joined #ruby
ABK has joined #ruby
chimkan has joined #ruby
jgrevich_ has joined #ruby
jgrevich has quit [Read error: Operation timed out]
jgrevich_ is now known as jgrevich
iamjarvo has quit [Quit: Computer has gone to sleep.]
davidcelis has joined #ruby
cyong has joined #ruby
h4mz1d has quit [Ping timeout: 256 seconds]
proshot has quit [Read error: Connection reset by peer]
proshot has joined #ruby
baroquebobcat has joined #ruby
Cache_Money has joined #ruby
Solnse has quit [Quit: Leaving.]
baroquebobcat has quit [Quit: baroquebobcat]
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
Chryson has joined #ruby
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
<goldenwest> I'm getting a LoadError with rubygems... I'm trying to use mod_ruby
<goldenwest> can someone offer any debugging suggestions?
<cirwin> goldenwest: sounds like you need to configure the load path
<goldenwest> cirwin: how would I go about that
joofsh has quit [Remote host closed the connection]
<cirwin> I'm not sure what the correct way to do it is. You could just add directories to $:
<goldenwest> cirwin: yeah I was trying that but I'm not sure I'm adding the right directories
<cirwin> goldenwest: can you do "require 'rubygems'"?
<goldenwest> yeah that doesn't throw an error
<cirwin> ok, so how are you installing the gems?
<cirwin> are they system-wide?
<goldenwest> if I puts Gem::Specification.first.full_gem_path
<goldenwest> I get /usr/lib/ruby/gems/1.9.1/gems/RedCloth-4.2.9
<cirwin> ok
<cirwin> but you can't load red cloth?
<cirwin> that's odd :/
<goldenwest> well
<goldenwest> it seems I can load it
<goldenwest> it only errors the second refresh, supposedly cause its already been loaded
<goldenwest> but I don't know how I can install gems to that directory
<goldenwest> if I gem install they go to my ~/.gem
<goldenwest> if I sudo gem install they go to /root/.gem
<goldenwest> I know I'm doing something wrong and I'm a newb but I can't figure it out
<cirwin> goldenwest: that sounds like rvm trying to be helpful again
<goldenwest> I don't have rvm installed
<cirwin> hmm
* cirwin not sure then
<goldenwest> I have ruby 1.9.3 installed and mod_ruby
<goldenwest> running on apache
<goldenwest> been at this for hours ugh
<cirwin> so, I'm pretty sure that gems should be being installed into /usr/lib *not* into /root/.gems
<cirwin> (if you're going this root)
<goldenwest> if I sudo which -a gem => /usr/bin/gem
shawn_hsiao has quit [Remote host closed the connection]
<cirwin> sudo gem env ?
<cirwin> - INSTALLATION DIRECTORY: /var/lib/gems/1.8
<cirwin> (for me)
<goldenwest> - INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.9.1
kil0byte has joined #ruby
<goldenwest> - GEM PATHS:
<goldenwest> - /usr/lib/ruby/gems/1.9.1
<goldenwest> - /root/.gem/ruby/1.9.1
<cirwin> interesting that that last one is there
* cirwin not really an expert in this stuff :/
armando_canals has joined #ruby
<goldenwest> this is interesting... - "gem" => "--user-install"
<cirwin> ahha
<goldenwest> how do I change that
<cirwin> is that in ~/.gemrc ?
<goldenwest> well, it's not in /root/.gemrc
<goldenwest> here it is
<cirwin> otherwise try using --no-user-intsall
<goldenwest> /etc/gemrc
<cirwin> ah
guns has joined #ruby
<goldenwest> that did it
<goldenwest> cirwin: thanks so much for helping me get some headway
<cirwin> np
savage- has quit [Quit: savage-]
armando_canals has quit [Ping timeout: 240 seconds]
beneggett has quit [Quit: Computer has gone to sleep.]
mahmoudi_ has joined #ruby
viuo has quit [Ping timeout: 260 seconds]
beneggett has joined #ruby
Cache_Money has quit [Read error: Connection reset by peer]
Cache_Money has joined #ruby
mahmoudimus has quit [Ping timeout: 260 seconds]
viuo has joined #ruby
rburton- has joined #ruby
<goldenwest> cirwin: just got it working - i owe you a beer or three
redbull has quit [Ping timeout: 260 seconds]
<cirwin> let me know if you're ever in the bay area :)
cakehero has joined #ruby
joeycarmello has quit [Remote host closed the connection]
joeycarmello has joined #ruby
haxrbyte has joined #ruby
Mayhew has quit [Quit: leaving]
Takehiro has joined #ruby
Proshot_ has joined #ruby
joeycarmello has quit [Ping timeout: 256 seconds]
Proshot_ has quit [Read error: Connection reset by peer]
Proshot_ has joined #ruby
buscapepe has quit [Ping timeout: 240 seconds]
Takehiro has quit [Ping timeout: 256 seconds]
proshot has quit [Ping timeout: 246 seconds]
elentras has quit [Quit: This computer has gone to sleep]
Takehiro has joined #ruby
robbyoconnor has joined #ruby
crackfu has joined #ruby
sagax has quit [Ping timeout: 246 seconds]
dhruvasagar has quit [Ping timeout: 265 seconds]
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
dhruvasagar has joined #ruby
jlwestsr has quit [Ping timeout: 246 seconds]
RudyValencia has quit [Quit: Hacked By Chinese!]
beneggett has quit [Remote host closed the connection]
quest88 has quit [Quit: quest88]
answer_42 has joined #ruby
goldenwest has quit [Quit: leaving]
Jamone has joined #ruby
Jamone has joined #ruby
Jamone has quit [Changing host]
jenrzzz has joined #ruby
dhruvasagar has quit [Ping timeout: 245 seconds]
cakehero has quit [Quit: Computer has gone to sleep.]
Monie has quit [Ping timeout: 244 seconds]
dhruvasagar has joined #ruby
adeponte has joined #ruby
Cultofmetatron has joined #ruby
cakehero has joined #ruby
BrianJ has quit [Quit: BrianJ]
araujo has quit [Quit: Leaving]
rburton- has quit [Quit: Linkinus - http://linkinus.com]
array has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
Tania has joined #ruby
ipoval has joined #ruby
Jaxel has joined #ruby
<Jaxel> Hello.
<Jaxel> I'm trying to use the One-Click Ruby Application gem. However it is throwing me a bad file descriptor error.
<Jaxel> On this line: ocrafile.write([OP_DECOMPRESS_LZMA, compressed_data.size, compressed_data].pack("VVA*"))
<Jaxel> Does anyone have an inkling why this might be? Or any further information I should supply?
cakehero has quit [Quit: Computer has gone to sleep.]
<cirwin> Jaxel: the entire error message might help, but it sounds like ocrafile is in the wrong state
<Jaxel> C:/Ruby193/lib/ruby/gems/1.9.1/gems/ocra-1.2.0/bin/ocra:565: in 'write': Bad file descriptor - file.exe <Errno:EBADF>
<Jaxel> How might it be in the wrong state?
kenneth has joined #ruby
<Jaxel> Also, thanks for your prompt response.
<cirwin> if it's already been closed I think
<cirwin> perhaps if it was opened only for reading
<cirwin> not too sure — sounds like a pretty nasty bug
pen has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
ABK has quit [Ping timeout: 255 seconds]
<cirwin> looks from the code that neither of those can be the case though
x82_nicole has quit [Quit: Computer has gone to sleep.]
irclog0 has joined #ruby
cakehero has joined #ruby
sambio has quit []
<Jaxel> Yes, it is nasty.
<Jaxel> It's preventing me from compiling my program!
kenneth has quit [Quit: kenneth]
<Jaxel> It gives the same error if I compile it without lzma, but in a different part of the code.
sphera has quit [Quit: ZNC - http://znc.in]
<Jaxel> str = File.open(src, "rb") { |file| file.read }
<Jaxel> puts "a #{showtempdir tgt}" unless Ocra.quiet
<Jaxel> @of << [OP_CREATE_FILE, Ocra.dospath(tgt), str.size, str].pack("VZ*VA*")
irclog0 has quit [Ping timeout: 245 seconds]
sphera has joined #ruby
<Jaxel> I'm thinking it might be something wrong with my computer. I'm pretty sure I beat the error before but I completely forgot how.
Cache_Money has quit [Read error: Connection reset by peer]
Cache_Money has joined #ruby
apok has joined #ruby
irclog0 has joined #ruby
Chryson has quit [Quit: Leaving]
joeycarmello has joined #ruby
Cache_Money has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Ping timeout: 252 seconds]
haxrbyte has quit [Remote host closed the connection]
cakehero has quit [Quit: Computer has gone to sleep.]
Cache_Money has joined #ruby
dhruvasagar has joined #ruby
Hanmac1 is now known as Hanmac
samphippen has joined #ruby
wargasm has quit [Ping timeout: 244 seconds]
joeycarmello has quit [Ping timeout: 252 seconds]
adeponte has quit [Remote host closed the connection]
mahmoudi_ has quit [Quit: Computer has gone to sleep.]
x1337807x has quit [Read error: Connection reset by peer]
danneu has quit [Ping timeout: 252 seconds]
jonan has joined #ruby
RudyValencia has joined #ruby
<Jaxel> Sigh.
danneu has joined #ruby
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
emergion has joined #ruby
mamemimomu has joined #ruby
mamemimomu has quit [Client Quit]
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
redbull has joined #ruby
kil0byte has quit [Ping timeout: 256 seconds]
kil0byte has joined #ruby
casheew has quit [Read error: Connection reset by peer]
fantazo has joined #ruby
apok has quit [Quit: apok]
qwerxy has joined #ruby
casheew has joined #ruby
cirwin has quit [Ping timeout: 256 seconds]
samphippen has quit [Quit: Computer has gone to sleep.]
cableray has quit [Quit: cableray]
khakimov has quit [Quit: Computer has gone to sleep.]
chimkan has quit [Ping timeout: 252 seconds]
paolooo has joined #ruby
beilabs has quit [Ping timeout: 260 seconds]
werdnativ has quit [Quit: werdnativ]
ipoval has quit [Quit: ipoval]
zeitgeist_arkeo has left #ruby [#ruby]
khakimov has joined #ruby
<Jaxel> Can anybody else help?
beilabs has joined #ruby
darthdeus has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
casheew has quit [Read error: Connection reset by peer]
<reactormonk> compiling ruby? O.o
casheew has joined #ruby
casheew has quit [Read error: Connection reset by peer]
<Jaxel> Yep. I want to distribute it to people without Ruby.
<Mon_Ouie> I'd call that packaging (Ruby implemntations compile your code to bytecode or native code without it affecting your program's distribution)
casheew has joined #ruby
<Jaxel> Whatever you want to call it. I am just trying to get it to work.
<Jaxel> Making it standalone.
cyong has quit [Quit: Leaving.]
jgrevich has quit [Quit: jgrevich]
jenrzzz has joined #ruby
samphippen has joined #ruby
mappum has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
slainer68 has joined #ruby
batdorf has joined #ruby
slainer68 has quit [Ping timeout: 244 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
chussenot has joined #ruby
chussenot has quit [Client Quit]
Dreamer3 has quit [Quit: Computer has gone to sleep.]
<Jaxel> Goodnight.
khakimov has quit [Quit: Computer has gone to sleep.]
Axsuul has quit [Ping timeout: 244 seconds]
Xeago has joined #ruby
freeayu has joined #ruby
wallerdev has quit [Quit: wallerdev]
chussenot has joined #ruby
ryanf has quit [Ping timeout: 268 seconds]
cantonic has joined #ruby
jake_ has quit [Ping timeout: 240 seconds]
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby
Zai00 has joined #ruby
cantonic has quit [Quit: cantonic]
irclog0 has quit [Remote host closed the connection]
irclog0 has joined #ruby
justinmcp has quit [Ping timeout: 244 seconds]
emergion has joined #ruby
irclog0 has quit [Remote host closed the connection]
irclog0 has joined #ruby
jake_ has joined #ruby
irclog0 has quit [Remote host closed the connection]
irclog0 has joined #ruby
charliesome has left #ruby ["Textual IRC Client: www.textualapp.com"]
charliesome has joined #ruby
daniel_- has joined #ruby
adambeynon has joined #ruby
irclog0 has quit [Remote host closed the connection]
irclog0 has joined #ruby
irclog0 has quit [Remote host closed the connection]
irclog0 has joined #ruby
irclog0 has quit [Remote host closed the connection]
_alejandro has joined #ruby
irclog0 has joined #ruby
irclog0 has quit [Read error: Connection reset by peer]
irclog0 has joined #ruby
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
Cache_Money has quit [Ping timeout: 252 seconds]
irclog0 has quit [Remote host closed the connection]
irclog0 has joined #ruby
chendo_ has quit [Ping timeout: 240 seconds]
sgalmac has joined #ruby
irclog0 has quit [Remote host closed the connection]
chendo_ has joined #ruby
irclog0 has joined #ruby
irleif has joined #ruby
Sargun has quit [Ping timeout: 244 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
Tania has quit [Read error: Connection reset by peer]
Sargun has joined #ruby
hbpoison_ has quit [Ping timeout: 252 seconds]
Virunga has joined #ruby
sgalmac has quit [Quit: Bye]
hbpoison has joined #ruby
kil0byte has quit [Ping timeout: 246 seconds]
arvindravi has joined #ruby
Sargun has quit [Ping timeout: 265 seconds]
<arvindravi> hello all, quick question, Is there a method that does this? "longString".someMethod(4) #=> "long"
darthdeus has quit [Quit: Leaving...]
qwerxy has quit [Quit: offski]
Guest15771 has joined #ruby
<Hanmac> arvindravi "longString"[0,4]
Sargun has joined #ruby
qwerxy has joined #ruby
<arvindravi> Hanmac: Thanks!
slainer68 has joined #ruby
codecaster has joined #ruby
samphippen has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
bigkevmcd has quit [Quit: outta here]
rakl has quit [Quit: sleeping]
_alejandro has quit [Ping timeout: 244 seconds]
slainer68 has quit [Ping timeout: 260 seconds]
paolooo has quit [Ping timeout: 245 seconds]
bigmcq77 has quit [Quit: Computer has gone to sleep.]
hbpoison has quit [Ping timeout: 252 seconds]
hbpoison has joined #ruby
nyuszika7h has quit [Remote host closed the connection]
Axsuul has joined #ruby
und3f has joined #ruby
nari has quit [Ping timeout: 260 seconds]
nyuszika7h has joined #ruby
nari has joined #ruby
jjbohn|afk is now known as jjbohn
monkegjinni has joined #ruby
hbpoison has quit [Ping timeout: 264 seconds]
mneorr has joined #ruby
jjbohn has quit [Quit: Leaving...]
dhruvasagar has quit [Ping timeout: 265 seconds]
nyuszika7h has quit [Quit: brb]
Slivka has joined #ruby
irleif has quit [Quit: Computer has gone to sleep.]
nyuszika7h has joined #ruby
havenn has quit [Remote host closed the connection]
emergion has joined #ruby
recycle has quit [Ping timeout: 268 seconds]
havenn has joined #ruby
mneorr has quit [Remote host closed the connection]
nyuszika7h has quit [Excess Flood]
Vinz_` is now known as Vinz_
nyuszika7h has joined #ruby
kenneth has joined #ruby
lkba has quit [Ping timeout: 260 seconds]
havenn has quit [Ping timeout: 260 seconds]
lkba has joined #ruby
monkegjinni has quit [Remote host closed the connection]
emergion has quit [Quit: Computer has gone to sleep.]
guns has quit [Ping timeout: 252 seconds]
daniel_- has quit [Read error: Operation timed out]
lkba has quit [Ping timeout: 276 seconds]
recycle has joined #ruby
jjbohn has joined #ruby
workmad3 has joined #ruby
timonv has joined #ruby
amaya_ has joined #ruby
blacktulip has joined #ruby
hbpoison has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
bier_ has quit [Ping timeout: 240 seconds]
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
anderse has joined #ruby
<amaya_> :)
hbpoison has quit [Ping timeout: 256 seconds]
areil has quit [Remote host closed the connection]
<roadt> anyone interested to $~, i saw there are called virtual variable, not defined as memeber of any object.
<roadt> is it one place that not OO thing in ruby?
<apeiros> it's one place of ugly heritage (perl)
daniel_- has joined #ruby
<apeiros> it's also available via Regexp.last_match
dhruvasagar has joined #ruby
<apeiros> and I think variable scoping is somewhat orthogonal to OO-ness
sheerun has joined #ruby
daniel_- has quit [Read error: Operation timed out]
randomtestbot has joined #ruby
randomtestbot has quit [Remote host closed the connection]
paul_s has joined #ruby
robustus has joined #ruby
banisterfiend has joined #ruby
clj_newb has joined #ruby
love_color_text_ has quit [Remote host closed the connection]
root is now known as UdontKnow
shiin has joined #ruby
shiin has quit [Changing host]
shiin has joined #ruby
alem0lars has joined #ruby
chussenot has quit [Quit: chussenot]
LucidDreamZzZ has quit [Remote host closed the connection]
chussenot has joined #ruby
LucidDreamZzZ has joined #ruby
Erfankam has joined #ruby
nemesit has joined #ruby
<shevy3> custom_require.rb:36:in `require': iconv will be deprecated in the future, use String#encode instead.
d3c has joined #ruby
<shevy3> anyone knows how to get rid of this warning?
<UdontKnow> shevy3: do exactly what it says?
banisterfiend has quit [Remote host closed the connection]
snearch has joined #ruby
kidoz has joined #ruby
katfro has joined #ruby
<shevy3> this is not my code, this is part of rubygems
<katfro> Hi everyone. :)
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Jscob__ has joined #ruby
Jscob__ is now known as n00b982
monkegjinni has joined #ruby
<katfro> I'm really new to this and hoping I can get a hand? I can get ri to give me useful info as root, but not as my regular user in the terminal. What can I do to fix this?
havenn has joined #ruby
d3c has quit [Read error: Connection reset by peer]
love_color_text has quit [Remote host closed the connection]
irleif has joined #ruby
Vert has joined #ruby
monkegjinni has quit [Remote host closed the connection]
havenn has quit [Ping timeout: 260 seconds]
_alejandro has joined #ruby
<apeiros> shevy3: nag the author until he updates
<apeiros> shevy3: or patch yourself
yshh has quit [Remote host closed the connection]
und3f1 has joined #ruby
und3f has quit [Read error: Connection reset by peer]
<katfro> Please help? I can use RDoc by typing ri ___ as root, but not as my normal user. I don't know how to fix this.
Ry__ has quit [Quit: Ry__]
bier has joined #ruby
sullenel has joined #ruby
hbpoison has joined #ruby
amaya_ has quit [Ping timeout: 264 seconds]
Russell^^ has joined #ruby
und3f1 has quit [Ping timeout: 255 seconds]
emmanuelux has joined #ruby
sepp2k has joined #ruby
hbpoison has quit [Ping timeout: 244 seconds]
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
und3f has joined #ruby
ABK has joined #ruby
katfro has quit [Quit: Page closed]
<roadt> apeiros, good to know ($~ stuff) :)
Keva161 has joined #ruby
<roadt> apeiros, to me, it is a bit suprising, not to follow Kernel.xx pattern.
<roadt> apeiros, though.
u89 has joined #ruby
sysbeast has joined #ruby
ceej has joined #ruby
emanon_ has joined #ruby
jjbohn has quit [Quit: Leaving...]
emanon_ has quit [Read error: Connection reset by peer]
kirun has joined #ruby
strangeworks has joined #ruby
slainer68 has joined #ruby
F1skr has joined #ruby
sullenel has quit [Quit: Leaving.]
<apeiros> roadt: I think you've misunderstood the Kernel.xx pattern
<shevy3> hmm anyone remembers why I was using $stdout.flush ?
<shevy3> old code from me confuses me
sullenel has joined #ruby
sullenel has quit [Client Quit]
eataix has quit [Ping timeout: 245 seconds]
amaya_ has joined #ruby
tenmilestereo has joined #ruby
niklasb has joined #ruby
eataix has joined #ruby
u89 has quit [Remote host closed the connection]
daniel_- has joined #ruby
jjbohn has joined #ruby
ceej has quit [Quit: ceej]
amaya_ has quit [Read error: Connection reset by peer]
amaya_ has joined #ruby
jjbohn has quit [Client Quit]
codecaster has quit [Quit: Leaving.]
swex has joined #ruby
pjb3 has joined #ruby
blacktulip has quit [Ping timeout: 268 seconds]
ananthakumaran1 has joined #ruby
ananthakumaran has quit [Ping timeout: 252 seconds]
blacktulip has joined #ruby
F1skr has quit [Quit: WeeChat 0.3.9]
viuo_ has joined #ruby
F1skr has joined #ruby
viuo has quit [Ping timeout: 260 seconds]
Keva161 has quit [Ping timeout: 256 seconds]
dangerousdave has joined #ruby
pjb3 has quit [Quit: pjb3]
yshh has joined #ruby
issyl0 has joined #ruby
issyl0 is now known as Guest13833
Guest13833 is now known as issyl0
strangeworks has quit [Ping timeout: 252 seconds]
mengu has joined #ruby
arietis has joined #ruby
strangeworks has joined #ruby
vickaita has joined #ruby
Morkel has joined #ruby
leoncamel has joined #ruby
n00b982 has quit [Ping timeout: 244 seconds]
rakunHo has joined #ruby
fantazo has quit [Read error: Operation timed out]
hbpoison has joined #ruby
n00b982 has joined #ruby
vickaita has quit [Quit: leaving]
withnale has quit [Ping timeout: 276 seconds]
danneu has quit [Ping timeout: 251 seconds]
hbpoison has quit [Ping timeout: 264 seconds]
hotovson has joined #ruby
strangeworks has quit [Remote host closed the connection]
Proshot_ has quit [Quit: Leaving]
redbull has quit [Ping timeout: 256 seconds]
schaerli has joined #ruby
marty_mcfly has quit [Ping timeout: 245 seconds]
staafl has joined #ruby
Zai00 has quit [Quit: Zai00]
lkba has joined #ruby
danneu has joined #ruby
iamjarvo has joined #ruby
eph3meral has joined #ruby
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
<sheerun> Scala 2.10 introduces string interpolation. Please watch following fragment of Martin's presentation: http://youtu.be/qqQNqIy5LdM?t=33m12s
x0F_ is now known as x0F
tungd has joined #ruby
<sheerun> My question is: why don't Ruby do the same thing with % notation?
<roadt> apeiros, hmmm.. i suppose it can be method access from anywhere.. so that no variable concept used..
<roadt> apeiros, poor english, sorry for that.
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
love_color_text has joined #ruby
<Hanmac> sheerun: $f=4;"#$f" #=> 4 or what is your problem?
<shevy3> lol
<Hanmac> this works too: "%s,%05d" % ["a",3] #=> "a,00003"
<sheerun> Hanmac: you clearly didn't watch the video :)
pjb3 has joined #ruby
<Hanmac> "%<c>s,%05<n>d,%<c>s" % { c: "a", n: 3 } #=> "a,00003,a"
love_color_text has quit [Ping timeout: 244 seconds]
<Hanmac> sheerun and you maybe do not understand that ruby has string interpolation too
<sheerun> Hanmac: the question is not about interpolation, bro
Xeago has quit [Remote host closed the connection]
pmros has joined #ruby
<shevy3> what do you want ruby to do with %
<pmros> hi!
<shevy3> '%3s' % '1' -> ' 1'
<Hanmac> sheerun rubys % method is more mighty than everything Scala could do :'D
withnale has joined #ruby
ABK has quit [Read error: Connection reset by peer]
<sheerun> It's about rewriting: %r(foo bar $baz) = String.r("foo bar $bar", baz)
<sheerun> And allowing new % methods
<Hanmac> why? why do you want to write String.r ? why? ...
<shevy3> but String.r is just for regexes
<shevy3> I dont even use %r myself, I always use // directly
mengu has quit [Read error: Connection reset by peer]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
<sheerun> / is build in language, as well as %r
<sheerun> desugaring %r to method invocation makes language extensible
<Hanmac> sheerun and then weeping why ruby loses 90% of its speed
<sheerun> Hanmac: you can add operators to Int, and it does not mean that some basic operators are optimized in C
<sheerun> That's not an argument
<sheerun> some operators can't be optimized*
chussenot has quit [Quit: chussenot]
<Hanmac> some features cant be done with "method invocation"
Morkel has quit [Quit: Morkel]
ltsstar has joined #ruby
scx has joined #ruby
kidoz has quit [Quit: Ухожу я от вас]
<pmros> have you tried ruby 2.0.0-preview1?
<sheerun> All features of current % notations can
danneu has quit [Quit: WeeChat 0.3.8]
<Hanmac> sheerun: /(?<name>\d+)/ =~ "a123b";name
Axsuul has quit [Ping timeout: 265 seconds]
seanyo has joined #ruby
<sheerun> ok, that's hard
jlwestsr has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
* Hanmac wins
<shevy3> guys what is better
<eph3meral> that is quite mysterious
ABK has joined #ruby
<eph3meral> I take it (?…) is zero width lookahead?
<eph3meral> but what's <name>
<shevy3> raise "Not a string" unless input.is_a? String
<shevy3> vs.
<shevy3> input = input.to_s
<sheerun> Hanmac: but it's also inconsistent on Ruby side
<eph3meral> and I thought // is regex, but you guys are saying something about method invocations and %r() ? where do I read about those? (as in, not "the manual" but which chapter would that be in?)
<shevy3> and I mean in general, in a collection of 10.000 different .rb files
<sheerun> Regexp.new('(?<name>\d+)') == /(?<name>\d+)/ # => true
<shevy3> why is that inconsistent?
<sheerun> /(?<name>\d+)// =~ "a123b"; name # => 123
<sheerun> Regexp.new('(?<name>\d+)') =~ "a234c"; name # => nil
<shevy3> hmm odd
<Hanmac> it does all standing in the docs, why is noone reading it?
clj_newb has quit [Ping timeout: 252 seconds]
<apeiros> sheerun: that behavior is clearly documented
<apeiros> and it has a clear reason why it is that way
<sheerun> documented incostintency
<apeiros> (no dynamic lvar creation)
<Hanmac> "If =~ is used with a regexp >>>literal<<< with named captures, captured strings (or nil) is assigned to local variables named by the capture names."
<apeiros> sheerun: expected insanity
<apeiros> (from your part, I mean)
<eph3meral> Hanmac: hmm, so is (? zero width? or is (? part of this "named capture" business where it's required that you have (?<foo> for example?
<sheerun> why insanity?
<apeiros> sheerun: implement a language yourself and learn
<apeiros> hint, if you use hashes to implement lvars, you're doing it wrong™
<Hanmac> eph3meral: named captures: /(?<foo>.)(?<bar>.)(?<baz>.)/.names #=> ["foo", "bar", "baz"]
irleif has quit [Quit: Computer has gone to sleep.]
nari has quit [Ping timeout: 252 seconds]
<eph3meral> Hanmac: (? is normally the zero width assertion e.g. in perl, is that the case here as well or is (? a specific part of the named capture syntax?
<eph3meral> I'm guessing the latter
<eph3meral> I just want to double check
<eph3meral> or, I suppose it could be both :)
lushious has quit [Ping timeout: 252 seconds]
<Hanmac> both
<apeiros> eph3meral: no, (? starts special groups
<apeiros> (?: e.g. is not zero-width either and is older than look-arounds
<apeiros> (it's simply a non-capturing group)
<apeiros> with the addition of allowing you to specify different flags for a sub-part of your regex
Emmanuel_Chanel has joined #ruby
<eph3meral> wow, subflags
<eph3meral> where's the docs on the syntax for that?
<apeiros> ri Regexp
<apeiros> iirc as of 1.9.3 it's properly documented
<eph3meral> is it on here somewhere http://www.ruby-doc.org/core-1.9.3/Regexp.html
nedbat has joined #ruby
<apeiros> it's simply (?i-m: (before the - is added flags, behind the - is removed flags) (iirc)
mhag has joined #ruby
Erfankam has quit [Ping timeout: 260 seconds]
<apeiros> also you can just /some regex/i.to_s
<apeiros> it'll output it in that syntax (to enable composed regexen)
scx has quit [Ping timeout: 255 seconds]
<eph3meral> nifty
irleif has joined #ruby
<sheerun> apeiros: There's nothing wring with that. See for example Scala's unapply method.
* Hanmac sings "Ruby is better than Scala ..."
<apeiros> sheerun: and how's scala's unapply method related to local variables?
lushious has joined #ruby
hbpoison has joined #ruby
scx has joined #ruby
<apeiros> or are we making arguments by non-sequitur
<sheerun> it extracts them from object
<apeiros> like php's - what was it… - explode?
<eph3meral> sheerun, you said "/ is build in language, as well as %r", were you referring to Scala there?
<sheerun> no, to ruby
hiroyuki has quit [Read error: No route to host]
<eph3meral> ok, what is "build in language"?
<eph3meral> like, what does that mean? you can use / for something other than regex?
<sheerun> is defined as language's syntax
<apeiros> s/build/built/
<apeiros> and yeah, it means it's syntax. it's interpreted at parse-time already.
<eph3meral> ahh, built-ins, gotcha
<sheerun> and don't desugar to functions / methods
<eph3meral> mmm, I don't understand that either, what?
<eph3meral> functions / methods?
<apeiros> ah, it wasn't explode, it was extract
mengu_ has joined #ruby
mengu_ has quit [Changing host]
mengu_ has joined #ruby
mengu has quit [Remote host closed the connection]
nedbat has left #ruby ["Leaving"]
<sheerun> %r(foo bar $baz) => String.r("foo bar $bar", baz)
<apeiros> sheerun: from googling, unapply doesn't seem to do what you claim it to do
<eph3meral> extract() was quite handy for making template handlers
<eph3meral> almost as bad as eval, but that's the one thing it's sort of legit for IMO
<sheerun> and String.r would instantiate Regexp class
hbpoison has quit [Ping timeout: 256 seconds]
<eph3meral> sheerun: what's wrong with Regex.new ?
<eph3meral> or // ?
Erfankam has joined #ruby
<sheerun> nothing, I talked about % notation
<sheerun> It's not generalized
<apeiros> also, why don't you just use String.r("…")
tungd has quit [Read error: Connection reset by peer]
<apeiros> it is generalized. generalized as syntax, not methods.
<sheerun> ??
pjb3 has quit [Quit: pjb3]
Erfankam has quit [Client Quit]
tungd has joined #ruby
<apeiros> it's a design decision to have something as syntax. there's rationales, and you're just blowing them away with "I don't like it and I think it's not generalized". the first is a subjective matter and the second just wrong.
<eph3meral> sheerun, ok, so String.r doesn't exist and you'd like it to? what exactly is .r supposed to do here?
<eph3meral> and how do you get from $baz to $bar in `%r(foo bar $baz) => String.r("foo bar $bar", baz)`
<sheerun> that's typo
<eph3meral> ok, so what's it supposed to be?
<sheerun> Custom interpolation
<shevy3> eph3meral: except that there are like ten different ways of eval in ruby
<sheerun> you can do things to baz variable
<iamjarvo> so this exercise wanted me to convert a nested array to a hash.in the inner loop i looped through the contents of the array but the writer loops through the headers. i was wondering which is the preferred way and if there are any downsides to either http://pastie.org/private/zdzsqmzs4v4z0nqgam3czw
<shevy3> in ruby 3.0 we will have fifty ways to eval
<sheerun> And then insert to "foo bar $baz" string wherever you want
<eph3meral> shevy3: I wasn't talking about ruby in the context of my comment about extract/eval, I was talking about PHP
<shevy3> public_shy_eval public_awesome_eval private_super_eval
<sheerun> or even convert "foo bar $bar" to some class
<apeiros> iamjarvo: Hash[keys.zip(values)]
<apeiros> that should reduce your code by quite a bit
beilabs has quit [Ping timeout: 255 seconds]
<shevy3> good old php
<shevy3> even apeiros used it :)
<apeiros> iamjarvo: also, data_arr.slice(1..data_arr.length-1) --> data_arr.slice(1..-1) --> data_arr[1..-1]
jlwestsr has quit [Quit: Ex-Chat]
DDAZZA has joined #ruby
<apeiros> or just: keys = data_arr.shift; data_arr.each
<apeiros> iamjarvo: also, naming your variables by their data type --
<iamjarvo> apeiros thanks
<apeiros> and last but not least, take a look at Array#map
<apeiros> iamjarvo: oh, and `puts obj.inspect` --> `p obj`
<iamjarvo> you mean pp?
<apeiros> no, p
<apeiros> pp is good too, but different
<apeiros> pp obj is puts obj.pretty_inspect
<apeiros> p obj is puts obj.inspect
<iamjarvo> ahh i see
darthdeus has joined #ruby
<iamjarvo> way less code
Banistergalaxy has joined #ruby
drbawb has quit [Quit: WeeChat 0.3.9]
mercwithamouth has quit [Ping timeout: 256 seconds]
colinbm has joined #ruby
<sheerun> do we have some ruby repl bot here?
irleif has quit [Quit: Computer has gone to sleep.]
Virunga has quit [Remote host closed the connection]
pjb3 has joined #ruby
butblack has joined #ruby
Virunga has joined #ruby
<apeiros> sheerun: no
<apeiros> there was one, but I guess it was removed due to security concerns.
Erfankam has joined #ruby
<sheerun> by the chat admins or creator of bot? don't you recognize?
iPhoneMRZ has joined #ruby
tungd has quit [Read error: Connection reset by peer]
tungd has joined #ruby
<shevy3> the author could no longer host it
<shevy3> Xeago at one point wanted to host it but it never happened
<shevy3> so the bot died a tragic death
<shevy3> like all ruby projects
rbuck has joined #ruby
ABK has quit [Read error: Connection reset by peer]
<sheerun> lol
ABK has joined #ruby
punkrawkR has joined #ruby
<rbuck> i am going to cross post a question here because i am not getting any response on the rubygems irc nor the rubygems google group...
irleif has joined #ruby
<rbuck> is there anyone here that could explain one detail about gem push? namely why when i push the new gem date is the date of the FIRST gem pushed, and the lastest description is that of the FIRST gem pushed???
<rbuck> 9:16
<rbuck> 9:17
<rbuck> i'd like later gems to have updated descriptions and dates reflected on http://rubygems.org/
<rbuck> how does one change the description and have it show up on http://rubygems.org/, the date too? i use a .gemspec with spec.date and spec.description fields that i update
pen has quit [Remote host closed the connection]
colinbm has quit [Quit: colinbm]
beilabs has joined #ruby
<shevy3> dunno but cant you cheat and simply make it a part of the description? :D
Virunga has quit [Ping timeout: 255 seconds]
<rbuck> the description doesnt update on rubygems.org either or i would do that
<rbuck> it just displays the first description only
<apeiros> rbuck: kudos for disclosing that you crosspost
ABK has quit [Read error: Connection reset by peer]
<shevy3> rbuck yeah but you could just use that description part to add additional information or?
crackfu has quit [Remote host closed the connection]
fumduq has quit [Ping timeout: 252 seconds]
ABK has joined #ruby
crackfu has joined #ruby
moshee has quit [Ping timeout: 244 seconds]
<shevy3> and python + perl + ruby combined could dethrone php!!!!!!
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
crackfu has quit [Read error: Connection reset by peer]
crackfu has joined #ruby
ABK has quit [Read error: Connection reset by peer]
<rbuck> shevy3 - is my understanding flawed? i would have thought that spec.date becomes the published date on rubygems.org, and the spec.description becomes the page title on that site. is that right/wrong?
ABK has joined #ruby
paul_s has quit [Quit: paul_s]
<rbuck> btw, i notice some projects don't use spec.date at all but they get updated dates
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
<rbuck> also, all i do is simply `gem push mygemfile.gem`
Virunga has joined #ruby
<rbuck> shevy3, or others, am i missing a step when pushing a gem to rubygems.org?
<shevy3> rbuck no real idea yet, I try to use gems in the simplest manner possible
<shevy3> I also never have a spec.date thing
<shevy3> I push via alias always :)
<shevy3> gem push *.gem
samphippen has joined #ruby
hiroyuki has joined #ruby
<rbuck> let me drop the spec.date
<rbuck> maybe that will help
lkba has quit [Ping timeout: 276 seconds]
n00b982 has quit [Ping timeout: 255 seconds]
<rbuck> unrelated, re TIOBE, i am surprised ruby isnt higher; i've only used it for 5+ months, after doing c/c++/java for 15-20 years; loving ruby more than any other language i have ever used
u89 has joined #ruby
<rbuck> i **love** enumerable, array, hash; wow, i wish we had that flexibility and simplicity in other languages
Banistergalaxy has quit [Ping timeout: 256 seconds]
<rbuck> i am using ruby very successfully for analytics; pivoting data, summarization, etc. it works great and is really succinct
Erfankam has quit [Ping timeout: 264 seconds]
hbpoison has joined #ruby
ltsstar has quit [Quit: ltsstar]
<shevy3> I think TIOBE changes very slowly and it shows only a specific part of usage
bairui_ has joined #ruby
<shevy3> but still the thing is, python is used more widely than ruby... and probably perl is used more widely than ruby too, if only for legacy reasons alone :(
Banistergalaxy has joined #ruby
beilabs has quit [Ping timeout: 276 seconds]
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
bairui has quit [Ping timeout: 265 seconds]
bairui_ is now known as bairui
<rbuck> sorry, i gotta flame: having used python quite extensively, no offense to python fans, but python sucks; i spend more time spelunking to find information i need than reading any doc, then spend lots of time fixing crud thrown over the fence (have had to patch ssh/scp/sftp/boto and the list goes on)
bigmcq77 has joined #ruby
irleif has quit [Quit: Computer has gone to sleep.]
<rbuck> i am liking ruby because for the most part, it simply works, and works as advertized; the community does a great job building quality components
samphippen has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
pjb3 has quit [Quit: pjb3]
samuelharden has joined #ruby
lkba has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
<shevy3> hehe
<shevy3> well the documentation of ruby is quite a bit away from being perfect :(
dhruvasagar has quit [Ping timeout: 240 seconds]
<shevy3> some components I just hate
<shevy3> like webrick
pjb3 has joined #ruby
<shevy3> and I dont like drb too much either
<shevy3> the core of ruby is ok
AndChat| has joined #ruby
n00b982 has joined #ruby
Banistergalaxy has quit [Ping timeout: 255 seconds]
rjsamson has joined #ruby
beilabs has joined #ruby
mappum has joined #ruby
<rbuck> i love event machine; though it was tricky getting a single event machine working with both amqp and sinatra/thin in a single vm app, it works fantastic, and is very light weight
Zai00 has joined #ruby
squidz has quit [Quit: Lost terminal]
freeayu has quit [Remote host closed the connection]
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
F1skr has quit [Quit: WeeChat 0.3.9]
juarlex__ has joined #ruby
juarlex_ has quit [Read error: Connection reset by peer]
fantazo has joined #ruby
tsousa has joined #ruby
Slivka has quit [Read error: Connection reset by peer]
<tsousa> which tutorial you guys recommend for learning ruby?
medik has quit [Ping timeout: 260 seconds]
iPhoneMRZ has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
medik has joined #ruby
pmros has quit [Quit: Konversation terminated!]
Emmanuel_Chanel_ has joined #ruby
tnk1 has quit [Read error: Connection reset by peer]
mappum has quit [Ping timeout: 256 seconds]
Emmanuel_Chanel has quit [Quit: Leaving]
tnk1 has joined #ruby
ltsstar has joined #ruby
jfire has joined #ruby
_alejandro has quit [Ping timeout: 260 seconds]
_alejandro has joined #ruby
ltsstar has quit [Ping timeout: 252 seconds]
leifmadsen has joined #ruby
<leifmadsen> morning all! I'm going to order myself a ruby book, and am curious what one(s) people prefer?
jfire has left #ruby [#ruby]
<leifmadsen> I've done some ruby hacking with chef over the last few months, but want to expand my knowledge and style
pjb3 has quit [Quit: pjb3]
rakunHo has quit [Remote host closed the connection]
baphled has joined #ruby
huntercool has joined #ruby
tsousa has quit [Remote host closed the connection]
daniel_- has quit [Ping timeout: 256 seconds]
uuair has joined #ruby
love_color_text has joined #ruby
Virunga has quit [Remote host closed the connection]
Erfankam has joined #ruby
monkegjinni has joined #ruby
Emmanuel_Chanel_ has quit [Quit: Leaving]
Trioke has joined #ruby
mercwithamouth has joined #ruby
g-ram has quit [Quit: Computer has gone to sleep.]
love_color_text has quit [Ping timeout: 255 seconds]
Slivka has joined #ruby
Slivka has quit [Read error: Connection reset by peer]
<rbuck> shevy3: i removed the spec.date field, and now BOTH the current date AND the description shows up on rubygems.org !!! there is some sort of bug there
linoj has joined #ruby
love_color_text has joined #ruby
g-ram has joined #ruby
g-ram has quit [Client Quit]
samphippen has joined #ruby
eataix has quit [Quit: ZNC - http://znc.in]
und3f has quit [Quit: Leaving.]
und3f has joined #ruby
thinkit has quit [Read error: Connection reset by peer]
thinkit has joined #ruby
alem0lars has quit [Quit: quit]
_alejandro has quit [Ping timeout: 252 seconds]
shiin has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
shiin has joined #ruby
Tania has joined #ruby
fantazo has quit [Remote host closed the connection]
moshee has quit [Ping timeout: 240 seconds]
scx has quit [Ping timeout: 260 seconds]
moshee has joined #ruby
jcaudle has joined #ruby
scx has joined #ruby
<shevy3> rbuck hehehe
Cidan is now known as zz_Cidan
<shevy3> can you gimme a link to that gem?
<shevy3> leifmadsen: I used the pickaxe back then
<shevy3> "the ruby programming language" is also ok
hotovson has quit [Remote host closed the connection]
<shevy3> but remember in the end, only the stuff you write on your own is really what counts
jcaudle has quit [Client Quit]
<leifmadsen> shevy3: for sure -- I tend to use books more for syntax usage and best practices as I've done enough hacking in my day to pretty much know the logic I want to implement
<leifmadsen> so far have been pretty impressed with the low learning curve of ruby
<leifmadsen> looping through arrays is too easy.
<shevy3> well
<shevy3> there are the easy parts, yes
<shevy3> but ruby is also a bit complex :\
<leifmadsen> ya most languages get complex at some level, even English :)
<shevy3> procs, and when to use thim, still confuses me
<shevy3> *them
GazCMarsh has joined #ruby
<shevy3> always when I seem to be end up wanting to use a proc, it seems as if I can completely ignore them, and still achieve all I want to use
<leifmadsen> ya, I'm to the point now I want to start learning some of the more complex functionality
<shevy3> yeah, that's where things become more complicated for me hehe
<shevy3> my brain likes for things to remain simple and straightforward
chussenot has joined #ruby
<leifmadsen> shevy3: ditto
<leifmadsen> shevy3: which book is the pickaxe book? Is that an O'Reilly published one?
<leifmadsen> oh I bet google knows the answer
<leifmadsen> :D
GazCMarsh has left #ruby [#ruby]
swex has quit [Ping timeout: 256 seconds]
<shevy3> hmm not sure
<shevy3> I liked the one in 2006 more
<shevy3> but that may be because I knew more about ruby lateron than in 2005 or 2006
<charliesome> shameless plug: ruby-2.0.0-preview1 is now available on eval.in: http://eval.in/2143
dhruvasagar has joined #ruby
Erfankam has quit [Ping timeout: 268 seconds]
<rbuck> shevy3: here is the gem, https://rubygems.org/gems/keymap
alee has quit [Remote host closed the connection]
canton7 has quit [Remote host closed the connection]
QKO_ has quit [Ping timeout: 260 seconds]
swex has joined #ruby
canton7 has joined #ruby
jake_ has quit [Ping timeout: 252 seconds]
QKO has joined #ruby
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
hsbt is now known as hsbt_away
huntercool has quit [Ping timeout: 246 seconds]
linoj has quit [Quit: linoj]
huntercool has joined #ruby
qwerxy has quit [Quit: offski]
chussenot has quit [Quit: chussenot]
linoj has joined #ruby
chussenot has joined #ruby
F1skr has joined #ruby
alee has joined #ruby
werdnativ has joined #ruby
maxer has joined #ruby
dakine has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
postmodern has quit [Quit: Leaving]
linoj has quit [Read error: Connection reset by peer]
linoj has joined #ruby
swex has quit [Ping timeout: 265 seconds]
rbuck has quit [Quit: Leaving.]
leifmadsen has quit [Quit: This is how I roll; animal print pants outta control!]
<shevy3> hmm
pyreal has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
kil0byte has joined #ruby
<shevy3> ok so there is the keymap.gemspec
Emmanuel_Chanel has joined #ruby
mengu_ has quit [Remote host closed the connection]
mengu_ has joined #ruby
mengu_ has quit [Changing host]
mengu_ has joined #ruby
<shevy3> .description is the main field that gets displayed
<shevy3> hmm your gem is much more detailed than my gems :)
n00b982 has quit [Ping timeout: 245 seconds]
amaya_ has quit [Quit: ChatZilla 0.9.88.2 [Firefox 16.0.2/20121024073032]]
jslowe has joined #ruby
samuelharden has quit [Ping timeout: 256 seconds]
jeffreybaird has joined #ruby
linoj has quit [Read error: Connection reset by peer]
linoj has joined #ruby
u89 has quit [Remote host closed the connection]
jeffreybaird has quit [Client Quit]
arvindravi has quit [Ping timeout: 264 seconds]
chimkan has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
maxer has quit [Quit: maxer]
linoj_ has joined #ruby
u89 has joined #ruby
linoj has quit [Read error: Connection reset by peer]
linoj_ is now known as linoj
butblack has quit [Quit: butblack]
Dreamer3 has joined #ruby
linoj has quit [Client Quit]
BrianJ has joined #ruby
keyvan has joined #ruby
keyvan has joined #ruby
keyvan has quit [Changing host]
pac1 has joined #ruby
ceej has joined #ruby
<mercwithamouth> is there a way to inject instance variables into hashes?
<shevy3> you could always turn the name of the ivar into a symbol
<shevy3> hash = {}; @foo = 'hi'
<shevy3> hmm damn
<shevy3> that does not work :\
anderse has quit [Quit: anderse]
<mercwithamouth> hrmm
<mercwithamouth> this was my attempt
<mercwithamouth> i know there's a instance_variables method but i'm not sure gives me the control i want
samphippen has joined #ruby
<canton7> mercwithamouth, did you mean :name not name: ?
<mercwithamouth> canton7: o_O; possibly lol
chimkan has quit [Ping timeout: 256 seconds]
jeffreybaird has joined #ruby
<mercwithamouth> canton7: thank you
<mercwithamouth> that was blowing my mind =P "this just seems like it should work!"
Tania has quit [Read error: Connection reset by peer]
n00b982 has joined #ruby
havenn has joined #ruby
butblack has joined #ruby
<canton7> it's often handy to strip things back to the basic... does array << {foo: => 'test'} work? OK, what abouts puts {foo: => 'test'} ? That failed, how about puts foo:
<canton7> By that point, the problem should be fairly clear :P
hsbt_away is now known as hsbt
linoj has joined #ruby
chimkan has joined #ruby
n00b982 has quit [Ping timeout: 248 seconds]
jeffreybaird has quit [Quit: jeffreybaird]
snearch has quit [Quit: Verlassend]
maletor has joined #ruby
leoncamel has quit [Ping timeout: 252 seconds]
chimkan has quit [Quit: chimkan]
tenmilestereo has quit [Quit: Leaving]
Guest8723 has joined #ruby
Guest8723 has left #ruby [#ruby]
dhruvasagar has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
arturas has joined #ruby
rafter has joined #ruby
hbpoison has quit [Ping timeout: 260 seconds]
marius has quit []
rjsamson has quit [Remote host closed the connection]
rjsamson has joined #ruby
<mercwithamouth> canton7: very true....i was too busy 'trying something new' to pay attention =(
earthquake has quit [Quit: earthquake]
Araxia has joined #ruby
Keva161 has joined #ruby
CamonZ has joined #ruby
<CamonZ> hey
arvindravi has joined #ruby
<CamonZ> is it valid ruby to use a rescue clause without a begin clause?
Tuxist has joined #ruby
rjsamson has quit [Ping timeout: 244 seconds]
Grieg has joined #ruby
Grieg has quit [Changing host]
Grieg has joined #ruby
hbpoison has joined #ruby
chimkan has joined #ruby
keyvan has quit [Remote host closed the connection]
earthquake has joined #ruby
leoncamel has joined #ruby
<mercwithamouth> when thinking about regular expressions.....what would you call the actual symbols you use to define a regex? (.*\..~, etc) not operators???
BadLarry has quit [Quit: quitting]
chimkan has quit [Client Quit]
<matti> mercwithamouth: \. is a dot and ~ will be just syntax sugar; but . (any character) will be an operator and then + or * might be called quantifier.
hbpoison has quit [Ping timeout: 256 seconds]
<matti> mercwithamouth: Why do you need it?
BadLarry has joined #ruby
rbuck has joined #ruby
iamjarvo has quit [Quit: Computer has gone to sleep.]
<mercwithamouth> matti: ahh i see. i'm just toying with regular expressions and writing notes and it occurred to me that I didn't know the names of the symbols I was using. just general curiosity
hbpoison has joined #ruby
Politoed has quit [Ping timeout: 248 seconds]
rbuck has quit [Client Quit]
Politoed has joined #ruby
<shevy3> matti!
<matti> mercwithamouth: Look at Rubular and http://www.geocities.jp/kosako3/oniguruma/doc/RE.txt and Ruby documentaton etc.
<shevy3> let's have babies
<matti> shevy3: Why?
<shevy3> does there have to be a reason!!!
<matti> shevy3: There is 8 billion of human beings on the planet.
x82_nicole has joined #ruby
<matti> shevy3: Too many already.
<shevy3> so one more does not matter!!!!!
<shevy3> we can randomly remove someone from here :>
<matti> shevy3: That's selfish.
<shevy3> YES!
<x82_nicole> Can anyone recommend a simple API I can play with? That has no authentication.
<matti> x82_nicole: "What is my IP" :)
u89 has quit [Remote host closed the connection]
erichmenge has joined #ruby
hbpoison has quit [Ping timeout: 268 seconds]
dhruvasagar has quit [Ping timeout: 268 seconds]
hbpoison has joined #ruby
<x82_nicole> Do they accept PUT? I'm more interested in practicing PUT, GET is pretty simple.
<matti> shevy3: Ask x82_nicole about that.
anachronistic has joined #ruby
<matti> x82_nicole: No...
mohanmcgeek has joined #ruby
havenn has quit [Remote host closed the connection]
swarley has joined #ruby
<matti> x82_nicole: Hm, free API without OAuth that accepts PUT.
havenn has joined #ruby
<shevy3> matti nah, you are more fun! and I have no idea who is x82_nicole, probably some evil python user!
<mohanmcgeek> People, What's the easiest way to check if a directory has no entries but "." and ".."?
<x82_nicole> Okay, well I can do auth, if it's just an additional parameter like a key value. If not, I've no idea XD
<x82_nicole> Wha? :o)
<matti> x82_nicole: shevy3 wants to have babies with somebody.
<shevy3> no, only with matti!
<matti> x82_nicole: Teh usual.
tchebb has quit [Ping timeout: 260 seconds]
<shevy3> I still don't get why your nick is matti, it sounds so very finnish :)
<shevy3> matti nykänen
<matti> You've missed my explanation then.
<matti> ;]
maletor has quit [Quit: Computer has gone to sleep.]
<shevy3> hmmmm
<shevy3> I do indeed forget very quickly
fredjean has joined #ruby
<matti> mohanmcgeek: You mean, if directory is empty?
Keva161 has quit [Ping timeout: 248 seconds]
<mohanmcgeek> yes, Dir.isempty? is a method?
<matti> No.
<matti> mohanmcgeek: Two ways.
havenn_ has joined #ruby
<shevy3> looks javaish
<matti> mohanmcgeek: 1. Dir.entries(path).size == 2
<mohanmcgeek> entries.join
Erfankam has joined #ruby
jjbohn has joined #ruby
<matti> mohanmcgeek: 2. File.stat(path).nlink == 2
poga_ has joined #ruby
<shevy3> File.size? 'foo/'
<shevy3> how about that
poga_ has quit [Remote host closed the connection]
<mohanmcgeek> presently I'm doing if entries join == "..."
<matti> shevy3: No.
poga has joined #ruby
<shevy3> hey that is kinda of clever
havenn has quit [Ping timeout: 255 seconds]
<mohanmcgeek> but prob is, I don't want it to consider the temp files (*~)
<mohanmcgeek> :(
<shevy3> why isn't there a Dir.empty? though
<shevy3> then!
<shevy3> .glob() perhaps ?
<matti> mohanmcgeek: ?
<shevy3> then you can ignore the ~
<shevy3> and count the rest
jlwestsr has joined #ruby
<shevy3> and profit
<shevy3> and become real rich
<mohanmcgeek> shevy3: lol
<shevy3> and then pay matz to work faster on mruby
joeycarmello has joined #ruby
<shevy3> he is coding like 5 lines / day , I dont know how that can work ever
verto|off is now known as verto
maletor has joined #ruby
<mohanmcgeek> shevy3: mruby is actually a newer proj? I thought it _was_ an abandoned proj
<mohanmcgeek> saw that y'day
hbpoison has quit [Ping timeout: 264 seconds]
<mohanmcgeek> checked commit numbers.
<shevy3> see? one line was added ... +void mrb_alias_method(mrb_state *mrb, struct RClass *c, mrb_sym a, mrb_sym b);
verto is now known as verto|off
<shevy3> last commit by matz 17 hours ago
x82_nicole has quit [Quit: Computer has gone to sleep.]
<shevy3> I'd say that is quite active
<shevy3> but he is slow :(
Keva161 has joined #ruby
<matti> shevy3: He is a busy man.
brianpWins has quit [Quit: brianpWins]
<shevy3> there are a dozen guys helping him though, so that kinda is nice
<matti> shevy3: And even a line every 17 hours is fast.
<shevy3> matti: yeah
<shevy3> what!
Rydefalk has quit [Ping timeout: 256 seconds]
<mohanmcgeek> should this be faster 2.0.0?
<matti> shevy3: In his case.
<mohanmcgeek> ^ the
<shevy3> what is he doing the rest of the time haha
ABK has quit [Read error: Connection reset by peer]
<shevy3> mohanmcgeek: yeah
fredjean has quit [Quit: Computer has gone to sleep.]
<shevy3> mohanmcgeek: one of its aim is to have mruby be used like lua, so it better needs to be comparably fast eventually
ABK has joined #ruby
linoj has quit [Quit: linoj]
jrajav has joined #ruby
<matti> shevy3: I doubt that mruby will be "faster" than lua.
jeffreybaird has joined #ruby
jeffreybaird has quit [Client Quit]
hsbt is now known as hsbt_away
Ry has joined #ruby
wallerdev has joined #ruby
DDAZZA has quit [Remote host closed the connection]
n00b982 has joined #ruby
Rydefalk has joined #ruby
hbpoison has joined #ruby
mahmoudimus has joined #ruby
jjbohn has quit [Quit: Leaving...]
anderse has joined #ruby
khakimov has joined #ruby
<mohanmcgeek> matti: shevy3.. Thx people.. I'm done with what I was doing andd got to go sleep now.. byee
<matti> Bye
iamjarvo has joined #ruby
<mohanmcgeek> https://github.com/mohanmcgeek/sortobot here's the repo if you're interested.. I'm amateur :S
<mohanmcgeek> bye bye
mohanmcgeek has left #ruby [#ruby]
somazero has joined #ruby
anachronistic has quit [Read error: Connection reset by peer]
quest88 has joined #ruby
anachronistic has joined #ruby
fredjean has joined #ruby
Ry has quit [Ping timeout: 256 seconds]
linoj has joined #ruby
JustinCampbell has joined #ruby
und3f has quit [Quit: Leaving.]
tchebb has joined #ruby
proshot has joined #ruby
T-DeskTop has joined #ruby
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
T-DeskTop has left #ruby ["Leaving..."]
n00b982 has quit [Ping timeout: 256 seconds]
gift has left #ruby [#ruby]
Virunga has joined #ruby
hbpoison has quit [Ping timeout: 252 seconds]
jgrevich has joined #ruby
syamajala has joined #ruby
verbad has joined #ruby
ltsstar has joined #ruby
QKO has quit [Changing host]
QKO has joined #ruby
hsbt_away is now known as hsbt
leoncamel has quit [Read error: Connection reset by peer]
leoncame` has joined #ruby
ananthakumaran1 has quit [Quit: Leaving.]
Schafro has joined #ruby
schaerli has quit [Remote host closed the connection]
gokul has joined #ruby
chimkan has joined #ruby
jjbohn has joined #ruby
jeffreybaird has joined #ruby
<shevy3> I dont know why I bother to rewrite anything
<shevy3> starting from scratch seems much better
awarner has joined #ruby
philcrissman has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
huntercool has quit [Ping timeout: 246 seconds]
earthquake has quit [Quit: earthquake]
baroquebobcat_ has joined #ruby
philcrissman has quit [Remote host closed the connection]
JustinCampbell has quit [Remote host closed the connection]
uuair has quit [Quit: uuair]
juha_ has quit [Ping timeout: 244 seconds]
anachronistic has quit [Quit: anachronistic]
elico has joined #ruby
poga has quit [Remote host closed the connection]
Gmind has joined #ruby
brianpWins has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
samuelharden has joined #ruby
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
khakimov has joined #ruby
ejholmes has joined #ruby
savage- has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
baroquebobcat_ has quit [Quit: baroquebobcat_]
roelof_ has joined #ruby
Schafro has quit [Quit: Leaving]
<roelof_> Anyone who knows how to solve this error : undefined method `[]' for nil:NilClass (NoMethodError) on this code : https://github.com/roelof1967/tamara
Tearan has joined #ruby
jjbohn is now known as jjbohn|afk
maxer has joined #ruby
<shevy3> you have a nil there
<shevy3> it probably is supposed to be an array
<shevy3> on array you can use []
<shevy3> but on a nil, the [] will fail
hbpoison has joined #ruby
jcaudle has joined #ruby
Tearan has quit [Client Quit]
<havenn_> you could call #to_a on your nil :P
<havenn_> roelof_: #RubyOnRails
begriffs has joined #ruby
savage- has quit [Quit: savage-]
<roelof_> haven : Do you mean I have asked in the wrong forum ???
tenmilestereo has joined #ruby
qwerxy has joined #ruby
<havenn_> roelof_: Usually #RubyOnRails is a better channel when the problem involves Rails. Not always I guess.
roelof_ has left #ruby [#ruby]
<begriffs> I'm writing a gem that provides a module in its lib/ folder and a Ruby script in bin/. However, when I say require 'gem_name' in the script and try to run it, the require doesn't work. What am I doing wrong?
pjb3 has joined #ruby
sepp2k1 has joined #ruby
<begriffs> I need to access the gem's module from within the script, that's why I want to require the file.
baroquebobcat has joined #ruby
zeknox has quit [Quit: Lost terminal]
juha_ has joined #ruby
darthdeus has quit [Quit: Leaving...]
hbpoison has quit [Ping timeout: 265 seconds]
jgrevich_ has joined #ruby
<havenn_> begriffs: In your .gemspec you'd usually #require_paths = ["lib"]
jenrzzz has joined #ruby
sepp2k has quit [Ping timeout: 256 seconds]
erichmenge has quit [Quit: Linkinus - http://linkinus.com]
jgrevich has quit [Ping timeout: 240 seconds]
jgrevich_ is now known as jgrevich
<havenn_> begriffs: Oh, I might not have understood your question. Did you generate the gem structure with 'bundle gem gem_name_here' or use another generator or did it manually?
<begriffs> I used bundler to create my gem, so it added the require_paths line you mention, @havenn
tds has joined #ruby
<havenn_> begriffs: Gotcha.
<begriffs> Not sure if I have to run another command to "install" my gem or something before I can require the module stuff from bin/
n00b982 has joined #ruby
wallerdev has quit [Quit: wallerdev]
<havenn_> begriffs: Did ya 'gem build blahblah.gemspec'?
<begriffs> No. Do I have to run that everytime I want to test my binary?
_alejandro has joined #ruby
|Monie| has joined #ruby
linoj_ has joined #ruby
baroquebobcat_ has joined #ruby
awarner has quit [Remote host closed the connection]
ViperMaul|_ has joined #ruby
<havenn_> begriffs: Ya, pretty much. You can just build it locally and then gem install it from the local copy.
KarlHung1s has joined #ruby
statix_ has joined #ruby
<havenn_> begriffs: I'm really like gem-release for pushing it up to rubygems. :) https://github.com/svenfuchs/gem-release
[1]root_byte has joined #ruby
<havenn_> begriffs: It will push your repo, tag the build, bump version number, etc. Really nice!
spanner_ has joined #ruby
Tuxist_ has joined #ruby
root_byte has quit [Ping timeout: 260 seconds]
phite has joined #ruby
earthquake has joined #ruby
awarner has joined #ruby
Skelz0r_ has joined #ruby
kkiero_ has joined #ruby
bnagy_ has joined #ruby
undyingr1ge has joined #ruby
zaiste_ has joined #ruby
joppe_ has joined #ruby
tommylom1ykins has joined #ruby
cheez0r_ has joined #ruby
sixtenei1hty has joined #ruby
Ruler_Of_Heaven_ has joined #ruby
axiak_ has joined #ruby
neersighted has quit [Ping timeout: 252 seconds]
kirun has quit [Quit: Client exiting]
jcaudle has quit [Quit: jcaudle]
<begriffs> havenn: thanks
maxer has quit [Quit: maxer]
Cork- has joined #ruby
Vert has quit [Ping timeout: 252 seconds]
baroquebobcat has quit [*.net *.split]
linoj has quit [*.net *.split]
Tuxist has quit [*.net *.split]
tungd has quit [*.net *.split]
nga4 has quit [*.net *.split]
pipopopo has quit [*.net *.split]
Jamone has quit [*.net *.split]
Rizzle has quit [*.net *.split]
GeekOnCoffee has quit [*.net *.split]
frogstarr78 has quit [*.net *.split]
zaiste has quit [*.net *.split]
undyingrage has quit [*.net *.split]
kkiero has quit [*.net *.split]
tessi has quit [*.net *.split]
goraxe has quit [*.net *.split]
tommylommykins has quit [*.net *.split]
ben_alman has quit [*.net *.split]
stat1x has quit [*.net *.split]
KarlHungus has quit [*.net *.split]
justinweiss has quit [*.net *.split]
Skelz0r has quit [*.net *.split]
spanner has quit [*.net *.split]
sr___ has quit [*.net *.split]
Cork has quit [*.net *.split]
joppe has quit [*.net *.split]
bnagy has quit [*.net *.split]
thomasfedb has quit [*.net *.split]
sixteneighty has quit [*.net *.split]
methoddk has quit [*.net *.split]
axiak has quit [*.net *.split]
cheez0r has quit [*.net *.split]
phite is now known as tessi
baroquebobcat_ is now known as baroquebobcat
linoj_ is now known as linoj
v0n has joined #ruby
kirun has joined #ruby
Politoed has quit [Ping timeout: 276 seconds]
JustinCampbell has joined #ruby
eph3meral has left #ruby [#ruby]
anderse has quit [Quit: anderse]
Politoed has joined #ruby
justinweiss has joined #ruby
healpay has joined #ruby
v0n has quit [Ping timeout: 256 seconds]
pjb3 has quit [Quit: pjb3]
jjbohn|afk is now known as jjbohn
frogstarr78 has joined #ruby
ben_alman_ has joined #ruby
kil0byte has quit [Ping timeout: 276 seconds]
sr___ has joined #ruby
<swarley> i wish i had something to do
nga4 has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
goraxe has joined #ruby
awarner has quit [Remote host closed the connection]
tk___ has quit [Quit: ばいばい]
hbpoison has joined #ruby
samuelharden has quit [Ping timeout: 256 seconds]
JustinCampbell has quit [Remote host closed the connection]
chimkan has quit [Quit: chimkan]
hsbt is now known as hsbt_away
beachandbytes has joined #ruby
fredjean has quit [Quit: Computer has gone to sleep.]
samuelharden has joined #ruby
hbpoison has quit [Ping timeout: 256 seconds]
n1x has joined #ruby
_alejandro has quit [Remote host closed the connection]
banisterfiend has joined #ruby
beachandbytes has quit [Ping timeout: 240 seconds]
nicoulaj has joined #ruby
gokul has quit [Ping timeout: 256 seconds]
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
n00b982 has quit [Read error: Connection reset by peer]
n00b982 has joined #ruby
linoj has quit [Quit: linoj]
roadt has quit [Ping timeout: 265 seconds]
ryanf has joined #ruby
jjbohn is now known as jjbohn|afk
workmad3 has joined #ruby
mercwithamouth has quit [Ping timeout: 244 seconds]
begriffs has quit [Quit: begriffs]
<jrajav> Have fun!
PragCypher has joined #ruby
Vert has joined #ruby
beachandbytes has joined #ruby
chussenot has quit [Ping timeout: 246 seconds]
wallerdev has joined #ruby
samuelharden has quit [Ping timeout: 255 seconds]
Beoran has joined #ruby
<shevy3> swarley: what worked for me was to write a file called "projects"
<shevy3> projects.cgi actually. in there I list my projects, and assign work-load to it, what I want to do, what I should do etc...
<shevy3> this keeps growing and growing and is a great way to work on things and features little by little
jaygen has joined #ruby
<shevy3> without it getting (too) boring
Cache_Money has joined #ruby
jaygen_ has quit [Read error: Connection reset by peer]
<jrajav> I don't think I've ever reached a point yet where I'm asking myself what to do next
<jrajav> Rather I can barely keep track of all the stuff I want to continue working on
samuelharden has joined #ruby
jaygen has quit [Read error: Connection reset by peer]
swarley has quit [Ping timeout: 252 seconds]
<jrajav> In fact, what I really need to do right now is actually finish some crap
jaygen has joined #ruby
Gmind has quit [Quit: Leaving.]
arielpts has quit [Ping timeout: 276 seconds]
Danielpk has quit [Ping timeout: 255 seconds]
arielpts has joined #ruby
jaygen has quit [Read error: Connection reset by peer]
thinkdevcode has joined #ruby
samuelharden has quit [Ping timeout: 268 seconds]
armando_canals has joined #ruby
mneorr has joined #ruby
jaygen has joined #ruby
swarley has joined #ruby
jeremywrowe has joined #ruby
i8igmac has quit [Quit: Leaving]
rburton- has joined #ruby
otters has quit [Ping timeout: 260 seconds]
quest88 has quit [Quit: quest88]
Danielpk has joined #ruby
ceej has quit [Quit: ceej]
jeremywrowe_ has joined #ruby
rbuck has joined #ruby
mneorr has quit [Remote host closed the connection]
ABK has quit [Read error: Connection reset by peer]
nga4 has quit [Ping timeout: 255 seconds]
jeremywrowe has quit [Ping timeout: 256 seconds]
jeremywrowe_ is now known as jeremywrowe
rbuck has quit [Client Quit]
Bosma has joined #ruby
mengu_ has quit [Read error: Connection reset by peer]
jaygen_ has joined #ruby
dakine has quit [Quit: Leaving]
jaygen has quit [Ping timeout: 252 seconds]
jeremywrowe has quit [Quit: jeremywrowe]
nicoulaj has quit [Read error: Operation timed out]
Zai00 has quit [Quit: Zai00]
shevy3 has quit [Ping timeout: 246 seconds]
colinbm has joined #ruby
ejholmes has quit [Quit: ejholmes]
ukd1 has joined #ruby
ls4352 has joined #ruby
<ukd1> hey
Rydefalk has quit [Read error: Connection reset by peer]
Rydefalk_ has joined #ruby
ukd1 has quit [Client Quit]
jblack has joined #ruby
syamajala has quit [Remote host closed the connection]
jaygen_ has quit [Read error: Connection reset by peer]
starship has quit [Quit: WeeChat 0.3.9]
jaygen has joined #ruby
karakedi has joined #ruby
colinbm has quit [Quit: colinbm]
kzrl has quit [Ping timeout: 240 seconds]
ABK has joined #ruby
_alejandro has joined #ruby
<ls4352> problem with unpack - i have a 6 byte packed decimal field when i unpack the field everything is fine except the last 4 bits which is the sign bit it gives all field a sign of "f" which is +, raw data has some negative field which is a "d".
Tearan has joined #ruby
werdnativ has quit [Quit: werdnativ]
kzrl has joined #ruby
yourmysin has quit [Remote host closed the connection]
elentras has joined #ruby
qwerxy has quit [Quit: offski]
Xeago has joined #ruby
verbad has quit []
un1x01d has joined #ruby
Rydefalk has joined #ruby
Rydefalk_ has quit [Read error: Connection reset by peer]
ABK has quit [Read error: Connection reset by peer]
hbpoison has joined #ruby
kkh is now known as Guest92447
bradhe has joined #ruby
_alejandro has quit [Ping timeout: 244 seconds]
ls4352 has quit [Ping timeout: 244 seconds]
<un1x01d> Hi, trying to understand how to do this in ruby "grep ^string file.txt | awk '{print $2}'", any directions ?
anderse has joined #ruby
qwerxy has joined #ruby
ABK has joined #ruby
shevy3 has joined #ruby
Takehiro has quit [Remote host closed the connection]
kirun has quit [Ping timeout: 265 seconds]
<apeiros> don't know about the awk part, but the grep part: File.foreach('file.txt').grep(/^string/)
iamjarvo has quit [Ping timeout: 252 seconds]
KnowTheLedge has quit [Read error: Connection reset by peer]
jlwestsr has quit [Ping timeout: 246 seconds]
<un1x01d> apeiros, thanks - the awk piece would just print the second field after the space delimiter, any way to do that in ruby ?
KnowTheLedge has joined #ruby
armando_canals has quit [Ping timeout: 260 seconds]
<havenn_> un1x01d: "first second third".split[1] #=> "second"
<havenn_> un1x01d: Or you could use regex.
<un1x01d> havenn_, can i use a different delimiter with split ?
lele has joined #ruby
<havenn_> un1x01d: Yup, e.g.: "omgwtfbbq".split('t') #=> ["omgw", "fbbq"]
yshh has quit [Remote host closed the connection]
ABK has quit [Read error: Connection reset by peer]
<havenn_> un1x01d: Or you can set the default by defining $;
ABK has joined #ruby
mneorr has joined #ruby
<havenn_> un1x01d: $; = ':'; 'hi:there'.split #=> ["hi", "there"]
<un1x01d> havenn_, cool, so what would be the proper syntax to get the second string after the delimiter only ?
mneorr has quit [Read error: Connection reset by peer]
<havenn_> un1x01d: [1,2,3,4,5][1] #=> 2
swarley has quit [Read error: Connection reset by peer]
chimkan has joined #ruby
helichopter has joined #ruby
mneorr has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
hbpoison has quit [Ping timeout: 255 seconds]
swarley has joined #ruby
<un1x01d> havenn_, perfect, thanks!
F1skr has quit [Quit: WeeChat 0.3.9]
F1skr has joined #ruby
thinkdevcode has quit [Remote host closed the connection]
hsbt_away is now known as hsbt
thinkdevcode has joined #ruby
jeremywrowe has joined #ruby
kirun has joined #ruby
baphled has quit [Ping timeout: 255 seconds]
<havenn_> Oops, linked to ::[] when I meant #[]: http://www.ruby-doc.org/core-1.9.3/Array.html#method-i-5B-5D
mercwithamouth has joined #ruby
havenn_ has quit [Remote host closed the connection]
alejandro_ has joined #ruby
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
jeremywrowe has left #ruby [#ruby]
thinkdevcode has quit [Ping timeout: 244 seconds]
hsbt is now known as hsbt_away
jrajav has quit []
hsbt_away is now known as hsbt
jlwestsr has joined #ruby
<Jaxel> Good morning.
fredjean has joined #ruby
ls4352 has joined #ruby
ls4352 has left #ruby [#ruby]
_alejandro has joined #ruby
alejandro_ has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 256 seconds]
Takehiro has joined #ruby
Tearan has quit [Quit: Sleepy Badger....]
baroquebobcat has joined #ruby
ABK has quit [Read error: Connection reset by peer]
karakedi has quit [Ping timeout: 260 seconds]
brianpWins has quit [Ping timeout: 260 seconds]
ABK has joined #ruby
healpay has quit [Quit: Leaving]
n00b982 has quit [Ping timeout: 265 seconds]
_alejandro has quit [Ping timeout: 240 seconds]
irb_ has joined #ruby
<rburton-> Hey people!
<sheerun> $ "Hello world!"
<rburton-> Just working on removing any dependencies that require a C extension
<rburton-> JRuby++
irb_ has quit [Remote host closed the connection]
<rburton-> The only dependency is foreman which can work with JRuby but requires a gem that depends on c extensions for spawning processes
<rburton-> ugh
Cache_Money has quit [Read error: Connection reset by peer]
<rburton-> I could just use shells to do it but eh
irb_ has joined #ruby
Cache_Money has joined #ruby
irb_ has quit [Remote host closed the connection]
nga4 has joined #ruby
anachronistic has joined #ruby
jjbohn|afk is now known as jjbohn
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
mneorr has quit [Remote host closed the connection]
JustinCampbell has joined #ruby
mneorr has joined #ruby
_alejandro has joined #ruby
mercwithamouth has quit [Ping timeout: 244 seconds]
ABK has quit [Read error: Connection reset by peer]
Cache_Money has quit [Read error: Connection reset by peer]
ABK has joined #ruby
chimkan has quit [Quit: chimkan]
Cache_Money has joined #ruby
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
wargasm has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
recycle has quit [Ping timeout: 264 seconds]
brianpWins has joined #ruby
baroquebobcat has joined #ruby
jeremywrowe has joined #ruby
hsbt is now known as hsbt_away
jeremywrowe has quit [Client Quit]
Cache_Money has quit [Read error: Connection reset by peer]
Cache_Money has joined #ruby
dv_ has joined #ruby
irb_ has joined #ruby
irb_ has quit [Remote host closed the connection]
nemesit has quit [Quit: Leaving...]
irb_ has joined #ruby
<sheerun> > Date.now
<irb_> (NoMethodError) undefined method `now' for Date:Class
<sheerun> > Time.now
<irb_> 2012-11-03 20:02:16 +0000
<sheerun> > 5.times { puts "Hello world!" }
<irb_> Hello world!
<irb_> Hello world!
<irb_> Hello world!
irb_ has quit [Killed (idoru (Spam is off topic on freenode.))]
<reactormonk> > require 'net/http'
<reactormonk> sheerun, you pwnd it
<catepillar> !help
khakimov has quit [Quit: Computer has gone to sleep.]
<sheerun> he got a ban
<catepillar> Time.now.to_i
brianpWins has quit [Quit: brianpWins]
<catepillar> irb did?
<sheerun> yes
* catepillar sighs
<sheerun> because of these Hello worlds
<sheerun> is it auto ban?
<catepillar> did freenode catch that?
<catepillar> i dont see any ops here
Tearan has joined #ruby
<sheerun> "irb_ left the chat room. (Killed (idoru (Spam is off topic on freenode.)))"
* catepillar also has things like joins and parts ignored so they dont spam up this window
<sheerun> idoru: Do you know what's going on?
<catepillar> usually killed means a line of some kind
<catepillar> anildigital_work
<catepillar> dammit putty
<catepillar> anildigital_work
<catepillar> not waht i wanted
<catepillar> stupidest way to copy and paste
khakimov has joined #ruby
crackfu has quit [Remote host closed the connection]
keyvan has quit [Remote host closed the connection]
crackfu has joined #ruby
<sheerun> I'll change the login, but I'm afraid he will be killed again
<Xeago> it is host based
<Xeago> sheerun: have a lock at al2o3cr, working on getting it running here aswell
rburton- has quit [Quit: Linkinus - http://linkinus.com]
Araxia has quit [Read error: Connection reset by peer]
Araxia has joined #ruby
ryanf has quit [Ping timeout: 268 seconds]
iamjarvo has joined #ruby
<sheerun> He is admin or something?
bradhe has quit [Remote host closed the connection]
havenn has joined #ruby
crackfu has quit [Ping timeout: 240 seconds]
JustinCampbell has quit [Remote host closed the connection]
arvindravi has quit [Quit: leaving]
<shevy3> I need to kill someone!
Dreamer3 has quit [Quit: Computer has gone to sleep.]
bradhe has joined #ruby
bradhe has quit [Remote host closed the connection]
<scx> how to create link in rdoc? I tried "Blah in link:lib/test.rb." but then rdoc create link to "lib/test.rb." (instead "lib/test.rb" whithout ".")
joeycarmello has quit [Remote host closed the connection]
ryanf has joined #ruby
qwerxy has quit [Quit: offski]
jphpsf has joined #ruby
Cache_Money has quit [Read error: Connection reset by peer]
Cache_Money has joined #ruby
<scx> I am looking something like <b>word</b> (*word*), but for link.
bradhe has joined #ruby
_alejandro has quit [Remote host closed the connection]
<reactormonk> scx, just make a space after the link and before the dot
bier has quit [Read error: No route to host]
<shevy3> I swear all suckage in the software world is going to end one day
bier has joined #ruby
<shevy3> hey reactormonk ... it still confuses me that you used to be Tasser
<matti> LOL
dnyy has quit [Remote host closed the connection]
<scx> reactormonk: but i dont want space before dot at end of sentence
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
<shevy3> hehe
<reactormonk> shevy3, ;>
<reactormonk> scx, you can't have the cake and eat it too
<scx> reactormonk: so i cant create good formatted docs using rdoc?
jenrzzz has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
baroquebobcat has joined #ruby
tds has quit [Quit: tds]
Cache_Money has quit [Ping timeout: 268 seconds]
baroquebobcat has quit [Client Quit]
bradhe has quit [Remote host closed the connection]
fredjean has quit [Quit: Computer has gone to sleep.]
hsbt_away is now known as hsbt
baroquebobcat has joined #ruby
u89 has joined #ruby
<un1x01d> whats the shortest way (code wise) to do a search and replace of a string in a file ?
_alejandro has joined #ruby
verbad has joined #ruby
<shevy3> hmm
<shevy3> you will need to read in the full file
<shevy3> then you modify the data you read in
<shevy3> and save it
rafter has quit [Remote host closed the connection]
<shevy3> perhaps there is a cleverer way via .fseek or what was its name
<un1x01d> yea, that works for me .. using gsub
fredjean has joined #ruby
selwyn has joined #ruby
fredjean has quit [Client Quit]
<un1x01d> was looking for more of a 'sed' like way 's/string1/string2/g'
bradhe has joined #ruby
keyvan has quit [Remote host closed the connection]
<selwyn> hey guys! I have rubygems 1.9.1 but when I'm trying to install vagrant, it is throwing an error that I need rubygems >= 1.3.6
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
_alejandro has quit [Ping timeout: 240 seconds]
<shevy3> no
baroquebobcat has quit [Quit: baroquebobcat]
<shevy3> selwyn do not get confused by the versions
<shevy3> gem --version
<shevy3> do this
baroquebobcat has joined #ruby
<selwyn> shevy3: gem --version shows 1.3.5
<shevy3> yes
<shevy3> this sounds as if you use a debian based system :)
<selwyn> I'm on Joli cloud OS but I'm invoking the command as gem1.9.1
<shevy3> they update things once every 10 years
<selwyn> yes, it is a Debian
<shevy3> well you are kind of stuck then
<shevy3> the proper way to solve this is by finding out how debian allows you to upgrade
<selwyn> can you please provide me another alternative? I'm little new to all this
<shevy3> the dirty way, which I use, is to get the official source, in this case from http://rubyforge.org/projects/rubygems/ download it and install it
<shevy3> not the debian specific way, unfortunately
<shevy3> I stopped using it years ago
chimkan has joined #ruby
<selwyn> shevy3: let me try that, thanks for the help
<shevy3> you could try to use the official rubygems version too, but debian will hate you
<shevy3> because you abandoned them :)
<shevy3> debian usually keeps all .gem files in /var/lib something something
<shevy3> I have my gems in /usr/lib/ruby/gems/1.9.1
u89 has quit [Remote host closed the connection]
blacktulip has quit [Remote host closed the connection]
<selwyn> shevy3: okay, thanks for the information, really helpos :)
<selwyn> I have arch on my other system
<shevy3> yeah
<selwyn> will try using that
<shevy3> the best way is to build your own opinion anyway
<selwyn> yes
<shevy3> let me give you one article which you should read, from a debian developer
<selwyn> sure, please
mercwithamouth has joined #ruby
cableray has joined #ruby
joeycarmello has joined #ruby
<selwyn> thanks shevy3
Guest15771 has quit [Quit: Guest15771]
armando_canals has joined #ruby
<shevy3> of course I don't agree much at all with him, but it's up to you anyway what to think of it, it is just one side of the medal :) hope you can upgrade your gem version either way (I dont even know how to manage different versions in debian... you cant install two ruby versions into the same prefix usually right?)
brianpWins has joined #ruby
u89 has joined #ruby
n00b982 has joined #ruby
Gliner is now known as Rix
Axsuul has joined #ruby
VegetableSpoon has joined #ruby
jjbohn has quit [Quit: Leaving...]
lkba has quit [Ping timeout: 252 seconds]
proshot is now known as statarb3
h4mz1d has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
Cultofmetatron has joined #ruby
somazero has quit [Ping timeout: 265 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
hsbt is now known as hsbt_away
joeycarmello has quit [Read error: Connection reset by peer]
fredjean has joined #ruby
<dpk> hmm, is there something like %w that will give me symbols instead of strings?
otters has joined #ruby
<dpk> (1.9.3)
blacktulip has joined #ruby
bier_ has joined #ruby
zarubin has quit [Read error: Connection reset by peer]
earthquake has quit [Quit: earthquake]
zarubin has joined #ruby
darthdeus has joined #ruby
hsbt_away is now known as hsbt
<swarley> dpk; %I has been proposed for 2.0 i dont believe it is in 1.9
<dpk> swarley: k, thanks. .map(&:to_sym) will do then
F1skr has quit [Quit: WeeChat 0.3.9]
daniel_- has joined #ruby
sn0wb1rd has quit [Quit: sn0wb1rd]
helichopter has quit [Ping timeout: 244 seconds]
n00b982 has quit [Ping timeout: 276 seconds]
lkba has joined #ruby
sn0wb1rd has joined #ruby
Chryson has joined #ruby
cirwin has joined #ruby
<havenn> dpk: %s{hi} #=> :hi
<swarley> huh, i didnt notice that
<swarley> i tried %S though
<burgestrand> It’s just one symbol.
<dpk> havenn: thank you for your suggestion. please file it into the nearest trash can.
<burgestrand> Same as :"hi"
<swarley> oh
ejholmes has joined #ruby
<havenn> yeah, not like %w
<swarley> yeah i didnt think so
<burgestrand> %i works in 2.0.0 though. :)
<burgestrand> Like you said swarley
ejholmes has quit [Client Quit]
<swarley> we should go % crazy. Have one for an array of constants, an array of methods, and array of arrays..
<swarley> and an*
tbrock has joined #ruby
<tbrock> any of you guys know a ton about jruby?
<swarley> not a ton.
<tbrock> I'm having trouble whereby Process.kill(0, pid) returns immediately
<tbrock> I *think* before the process actually starts
<swarley> are you running it in a threaded environment?
selwyn has quit [Ping timeout: 245 seconds]
<tbrock> no
fredjean has quit [Quit: Computer has gone to sleep.]
<tbrock> i mean, the process should run asynchronously because i'm using Process.spawn
<tbrock> so in that sense, yes
armando_canals has quit [Ping timeout: 276 seconds]
elaptics`away is now known as elaptics
bradhe has quit [Remote host closed the connection]
_alejandro has joined #ruby
hsbt is now known as hsbt_away
<tbrock> jruby is a huge pain in the ass
<swarley> what is the situation that you are killing a process manually?
<swarley> Like, why are you doing it?
n00b982 has joined #ruby
<tbrock> well kill with zero signal just stats the process to see if its running
<tbrock> works perfect in 1.8.7 1.9.3 and 2.0.0
<tbrock> obviously you can't fork + exec in jruby
Araxia has quit [Quit: Araxia]
<tbrock> so you have to use Process.spawn
havenn has quit [Remote host closed the connection]
<tbrock> which is kinda the same
crackfu_ has joined #ruby
<tbrock> anyway, after you spawn a process, i need to check if its running
<tbrock> so you call Process.kill(0, pid)
havenn has joined #ruby
sn0wb1rd_ has joined #ruby
samphippen has joined #ruby
butblack has left #ruby [#ruby]
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
tds has joined #ruby
havenn has quit [Read error: Operation timed out]
h4mz1d has quit [Ping timeout: 268 seconds]
sn0wb1rd has quit [Ping timeout: 252 seconds]
sn0wb1rd_ is now known as sn0wb1rd
adeponte has joined #ruby
hbpoison has joined #ruby
jake_ has joined #ruby
sn0wb1rd has quit [Quit: sn0wb1rd]
heftig is now known as nethearsonanzani
nethearsonanzani is now known as heftig
sn0wb1rd has joined #ruby
_alejandro has quit [Ping timeout: 244 seconds]
havenn has joined #ruby
somazero has joined #ruby
hbpoison has quit [Ping timeout: 246 seconds]
jake_ has quit [Ping timeout: 276 seconds]
cousine has joined #ruby
baroquebobcat has joined #ruby
<shevy3> dumdedum
rjsamson has joined #ruby
baroquebobcat has quit [Client Quit]
F1skr has joined #ruby
geggam has quit [Quit: planned network outage]
Tearan has quit [Quit: Sleepy Badger....]
ryanf has quit [Ping timeout: 252 seconds]
jarred_ has joined #ruby
banisterfiend has quit [Ping timeout: 246 seconds]
keyvan has quit [Remote host closed the connection]
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
tommylom1ykins is now known as tommylommykins
jjbohn has joined #ruby
Keva161 has quit [Quit: Leaving...]
mahmoudimus has quit [Ping timeout: 260 seconds]
answer_42 has quit [Quit: WeeChat 0.3.9]
darthdeus has quit [Quit: Leaving...]
hsbt_away is now known as hsbt
rjsamson has quit [Remote host closed the connection]
rjsamson has joined #ruby
rjsamson has quit [Read error: Connection reset by peer]
rjsamson has joined #ruby
helichopter has joined #ruby
bradhe has joined #ruby
mahmoudimus has joined #ruby
keyvan has quit [Remote host closed the connection]
qwerxy has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
Cultofmetatron has joined #ruby
workmad3 has joined #ruby
mpereira has joined #ruby
arturas has quit [Remote host closed the connection]
sysbeast has quit [Quit: Verlassend]
Cultofmetatron has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 252 seconds]
bradhe has quit [Ping timeout: 256 seconds]
ejholmes has joined #ruby
adeponte has quit [Remote host closed the connection]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<swarley> blah i wish i knew what i wanted to do
<un1x01d> "I'll start coding, you go ask what they want"
<swarley> i've started like 3 little mini things today, and i want to finish none of them
<un1x01d> indeed it is Saturday ..
<un1x01d> wanna help me figure out gpgme ?
<un1x01d> the docs just make no sense to me
staafl has quit [Quit: Leaving]
chimkan has quit [Quit: chimkan]
Erfankam has quit [Ping timeout: 246 seconds]
<havenn> I'm blowing the afternoon playing with DCell and eating shrimp: https://gist.github.com/4009037
<havenn> Distributed Celluloid ftw?
bier_ has quit [Read error: Operation timed out]
somazero has quit [Ping timeout: 256 seconds]
v0n has joined #ruby
<havenn> Anyone not at RubyConf have a question you want to ask Matz?
cakehero has joined #ruby
tenmilestereo has quit [Quit: Leaving]
jjbohn is now known as jjbohn|afk
JustinCampbell has joined #ruby
<havenn> I can't think of any questions to submit. :(
hsbt is now known as hsbt_away
somazero has joined #ruby
somazero has quit [Client Quit]
strangeworks has joined #ruby
chimkan has joined #ruby
irleif has joined #ruby
bradhe has joined #ruby
stanigator has joined #ruby
<shevy3> YES
<shevy3> WHEN WILL MRUBY BE FINISHED?
<shevy3> or perhaps ask him what he would change for ruby if he could jump back ten years
<shevy3> like if he would have had something like gem from the beginning
<shevy3> (which I wonder if mruby will ever have actually)
BrianJ has quit [Quit: BrianJ]
lenovodroid has joined #ruby
robustus has quit [Quit: ZNC - http://znc.in]
<stanigator> shevy3: What are you looking to do with mruby?
hsbt_away is now known as hsbt
iPhoneMRZ has joined #ruby
iPhoneMRZ has quit [Client Quit]
ryanf has joined #ruby
verbad has quit []
jjbohn|afk is now known as jjbohn
<shevy3> stanigator: not sure yet... I want to learn C next, seriously (I always stopped when I came to pointers)
<stanigator> shevy3: are you a student?
<shevy3> and I'd rather use mruby than lua then. it's much easier to extend my ruby-knowledge, than learn lua when I know that ruby is the clearly superior overall language if compared with lua for merits of feature alone
<shevy3> kind of :)
<shevy3> but never informatics
jjbohn has quit [Quit: Leaving...]
<shevy3> biology and chemistry mostly
irleif has quit [Quit: Computer has gone to sleep.]
<swarley> pointers are meh. They are a lot less scary when you get the basics down
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
u89 has quit [Remote host closed the connection]
chimkan has quit [Ping timeout: 240 seconds]
rakl has joined #ruby
jjbohn has joined #ruby
Takehiro has quit [Remote host closed the connection]
mneorr has quit [Remote host closed the connection]
mpereira has quit [Ping timeout: 246 seconds]
mneorr has joined #ruby
srji has joined #ruby
mpereira has joined #ruby
anachronistic has quit [Quit: anachronistic]
<stanigator> I may have a strange question here, but what are the main problems Ruby programmers typically face recently?
u89 has joined #ruby
<cirwin> stanigator: what kind of thing are you looking for? Ruby programmers have problems when Strings and Symbols get mixed up for example
Astral has joined #ruby
Slivka has joined #ruby
srji has quit [Client Quit]
Astral is now known as Guest91311
Astral_ has joined #ruby
<stanigator> cirwin: i don't have a good idea yet. I mean, I went through some tutorial materials earlier in the year, but not sure what's causing pros like you pain recently
tds has quit [Quit: tds]
havenn has quit [Remote host closed the connection]
<knite> just learned about Procs, trying to figure out why my_array.map(&:foo) works when foo is a method but not a symbol. might not have my terms exactly correct here - what I mean is, the above works if I have an array of class instances and foo is a method, but not if foo is an attr_acessor.
havenn has joined #ruby
<cirwin> knite: my_array.map(&:foo) is the same as my_array.map{ |x| x.foo }
<cirwin> attr_accessor's are just methods, so it should work for either
v0n has quit [Ping timeout: 260 seconds]
<cakehero> I'm having trouble understanding the proper way to build this SOAP request https://gist.github.com/e2d29d364cd733eee965 using savon - does anyone have any advice they can give me to help me out?
jjbohn has quit [Quit: Leaving...]
[1]root_byte has quit [Quit: HydraIRC -> http://www.hydrairc.com <- Go on, try it!]
justinmcp has joined #ruby
css_newbs has joined #ruby
css_newbs has quit [Client Quit]
havenn has quit [Ping timeout: 260 seconds]
blacktulip has quit [Remote host closed the connection]
BrianJ has joined #ruby
savage- has joined #ruby
jimeh has joined #ruby
jjbohn has joined #ruby
Guest91311 has quit [Quit: Leaving]
butblack has joined #ruby
brianpWins_ has joined #ruby
brianpWins has quit [Ping timeout: 255 seconds]
brianpWins_ is now known as brianpWins
tbrock has quit [Quit: Leaving]
jblack has quit [Ping timeout: 252 seconds]
Russell^^ has quit [Quit: Russell^^]
havenn has joined #ruby
<havenn> shevy3: If he could go back 20 years, would do away with global variables. :)
keyvan has quit [Remote host closed the connection]
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
<cirwin> you don't need them when you can just change the value of constants :)
<havenn> I wouldn't miss class variables either. >.>
<apeiros> you don't need them even if you couldn't change the value of constants
<apeiros> I miss useable cvars :(
<apeiros> share them only between class & instances
<cirwin> yeah, everything could be done on instances of constants
<stanigator> who programs for a living here?
<cirwin> meee!
<cirwin> probably most people I'm guessing
<stanigator> really?
<cirwin> I'd have thought >50% of people here, but I might be wrong
<stanigator> I have no idea either, hence wanted to ask to find out
<apeiros> I do
<havenn> I do, though I feel like an impostor.
keyvan has quit [Remote host closed the connection]
cakehero has quit [Quit: Computer has gone to sleep.]
<apeiros> how come?
<apeiros> you professionally code VB?
<cirwin> oxymoron :p
BrianJ has quit [Quit: BrianJ]
<apeiros> hm, my bash scripting is very weak, how do I require an argument to a script?
jenrzzz has quit [Ping timeout: 245 seconds]
<cirwin> echo ${1?Please specify an argument}
Vert has quit [Read error: Connection reset by peer]
<cirwin> (you might need to set -e for that to actually kill the script, but you should do that anyway)
<apeiros> exit 1 will do to kill the script I'd say :)
alanp_ has joined #ruby
<havenn> I have no CS degree. I enrolled in a few intro classes but never made it past the first day. Never had prereqs to take interesting classes.
jjbohn has quit [Quit: Leaving...]
<stanigator> apeiros: interesting, can i hear more about it?
<stanigator> just want to talk to more professional programmers to learn their stories
<havenn> Philosophy then Law. Now Ruby. >.>
<cirwin> havenn: you're the second person I know who did that — crazy wordl!
lenovodroid has quit [Read error: Connection reset by peer]
<apeiros> cirwin: basically I'm having difficulties writing the `if then` part only
<apeiros> I hate bash syntax :( always forget how it works…
lenovodroid has joined #ruby
<cirwin> apeiros: yeah, if statements are not pretty: if [ "$1" == "" ]; then; fi
<cirwin> I think you can be fancier, but that has the advantage of working
<apeiros> ; in the oddest places…
<apeiros> that's quite a nice advantage :D
<cirwin> just put everything on new lines
<apeiros> works
<cirwin> though I agree it looks odd to have then on a line on its own
alanp has quit [Ping timeout: 240 seconds]
<ccooke> apeiros: if COMMAND ;then SOMETHING ; elif COMMAND; then SOMETHING ; else SOMETHIG ELSE ; fi
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
mahmoudimus has joined #ruby
<apeiros> thanks cirwin
pac1 has quit [Quit: I got it one line of code at a time]
stanigator has quit [Quit: Page closed]
<ccooke> apeiros: you can also short circuit if you just want something quick:
okapi has quit [Ping timeout: 256 seconds]
u89 has quit [Read error: Connection reset by peer]
Slivka has quit [Remote host closed the connection]
Takehiro has joined #ruby
u89 has joined #ruby
<ccooke> [ "$1" ] || error "need a param"
Slivka has joined #ruby
<apeiros> that's how I did it: if [ "$1" == "" ]; then; echo "USAGE: $0 DB_SUPERUSER"; exit 1; fi # on multiple lines, that is
<ccooke> (note that you'd need to define error as a function for that)
<cirwin> ccooke: he already rejected my ${1?need a param} idea :(
<ccooke> cirwin: so sad
<apeiros> cirwin: mind explaining that one?
<cirwin> apeiros: looks good to me
<cirwin> apeiros: ? is a variable modifier or something that means "if the variable $1 is not defined, output this error message"
<ccooke> apeiros: you don't need the semicolkns after the 'then'
<apeiros> ccooke: I have a newline there
<cirwin> :- is the other useful one USERNAME=${1:-root} — will be $1 if $1 is defined, and use root as the default
Guest___ has joined #ruby
<ccooke> right
<apeiros> cirwin: but would that also terminate the script?
Zai00 has joined #ruby
<apeiros> maybe I should just try…
<ccooke> apeiros: and for brevity, the test I used is equivalent
<ccooke> apeiros: if you have "set -e" above it, any error will terminate the script
<cirwin> apeiros: yes
<cirwin> it terminates it even without set -e
<apeiros> ah yes, but it gives an ugly error message :(
keyvan has quit [Remote host closed the connection]
<cirwin> true that :)
justinmcp has quit [Remote host closed the connection]
sertaconay has joined #ruby
dzmitry_ has joined #ruby
JarJar has joined #ruby
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
elico has quit [Quit: elico]
keyvan has quit [Remote host closed the connection]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
u89 has quit [Read error: Connection reset by peer]
chimkan has joined #ruby
u89 has joined #ruby
dmiller has joined #ruby
classix has quit [Ping timeout: 252 seconds]
keyvan has quit [Remote host closed the connection]
Mon_Ouie has quit [Read error: Connection reset by peer]
Takehiro has quit [Ping timeout: 276 seconds]
joeycarmello has joined #ruby
LucidDreamZzZz has joined #ruby
Mon_Ouie has joined #ruby
GeekOnCoffee has joined #ruby
dzmitry_ has quit [Quit: dzmitry_]
t0rc has joined #ruby
thinkdevcode has joined #ruby
bigmac has joined #ruby
n00b982 has quit [Ping timeout: 255 seconds]
LucidDreamZzZ has quit [Ping timeout: 276 seconds]
baroquebobcat has joined #ruby
Banistergalaxy has joined #ruby
<t0rc> I have a gem that I am making in which users will be able to contribute content via github (fork, add content, merge). Only someone who cloned from their github, should be able to add content, since otherwise it does not make sense to do so (they'd be adding content locally only in this case at best). Would it be wise to simply create rake tasks that are meant for helping users create new content or still leave
<t0rc> them as commands of the gem? Is there some way I can distinguish between a gem only installation and a clone from their own fork?
Guest___ has quit [Quit: Computer has gone to sleep.]
AndChat- has joined #ruby
rakl has quit [Quit: sleeping]
chimkan has quit [Quit: chimkan]
lenovodroid has quit [Read error: Connection reset by peer]
AndChat| has quit [Ping timeout: 255 seconds]
lenovodroid has joined #ruby
Banistergalaxy has quit [Ping timeout: 248 seconds]
lenovodroid has quit [Read error: Connection reset by peer]
lenovodroid has joined #ruby
sertaconay has quit [Remote host closed the connection]
tommyvyo has joined #ruby
<cirwin> t0rc: once the gem has been installed I don't think you can tell where it came from
<cirwin> t0rc: you could probably use the github api to make a fork for the user
<cirwin> and automate the setup process for them
jenrzzz has joined #ruby
Banistergalaxy has joined #ruby
<t0rc> cirwin: yeah I thought as much. Oh interesting idea. I was going to say I could also provide commands that let them move the content easily to somewhere else from their gem.
<cirwin> sounds sane
lenovodroid has quit [Read error: Connection reset by peer]
<cirwin> you might want to look at how CocoaPods manages user-submitted content via github
AndChat| has joined #ruby
xeronic has joined #ruby
<t0rc> cirwin: hmm that's certainly worth looking into. Interesting. Thank you.
samuel02 has joined #ruby
<t0rc> cirwin: ahhh, excellent, will check that project out too. Looks like they make users fork manually and just allow them to create the content from their gem
AndChat- has quit [Ping timeout: 248 seconds]
chimkan has joined #ruby
Banistergalaxy has quit [Ping timeout: 248 seconds]
<t0rc> thanks again cirwin
t0rc has quit [Quit: WeeChat 0.3.9]
lenodroid has joined #ruby
<swarley> I have pink hair now. Fear me
<cirwin> pics or it didn't happen
mahmoudimus has joined #ruby
mahmoudimus has quit [Client Quit]
marius has joined #ruby
<swarley> all fear the ugly swarley
ltsstar has quit [Quit: ltsstar]
<sheerun> movember?
tomku has quit [Quit: WeeChat 0.3.9]
cakehero has joined #ruby
<cirwin> swarley: impression making!
Dreamer3 has joined #ruby
<swarley> indeed
okapi has joined #ruby
poga has joined #ruby
lenodroid has quit [Read error: Connection reset by peer]
pskosinski has joined #ruby
Tania has joined #ruby
<pskosinski> Is there an easy way to remove e.g. first and third element from every row of an array? E.g. I have array where every row has 5 elements and want to have array with rows with only 2nd and 4th elements
<pskosinski> 2nd and 4th colun
<apeiros> delete_at
n00b982 has joined #ruby
havenn has quit [Remote host closed the connection]
<cirwin> pskosinski: new_array = old_array.map{ |x| [x[1], x[3]] }
<apeiros> too bad it doesn't accept multiple indices
<apeiros> don't forget that if you remove the e.g. the first element, all later elements move 1 up
<pskosinski> yeah... thank you both :)
<apeiros> pskosinski: your array of arrays in a "tabular" shape?
<swarley> array.map {|x| x[1..3] }
<swarley> oh wait
<swarley> you only want the two
<swarley> sorry
<apeiros> if so, ary2 = ary.transpose; ary.delete_at(x); ary.transpose. then you don't need to iterate to delete a "column"
<apeiros> should be ary2.delete_at; ary2.transpose, of course
seanyo has quit [Ping timeout: 244 seconds]
jcaudle has joined #ruby
xeronic has quit []
Takehiro has joined #ruby
rburton- has joined #ruby
<pskosinski> Hm... thank you, now I need to read about it. 8) Magic
<AndChat|> Apeiros sup
nga4 has quit [Ping timeout: 245 seconds]
classix has joined #ruby
<apeiros> me
ltsstar has joined #ruby
hbpoison has joined #ruby
Grieg has quit [Quit: laterz! :D]
anderse has quit [Quit: anderse]
samuel02 has quit [Remote host closed the connection]
bier_ has joined #ruby
Tania has quit [Quit: :p]
hotovson has joined #ruby
Takehiro has quit [Ping timeout: 276 seconds]
beilabs has quit [Ping timeout: 246 seconds]
justinmcp has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
cakehero has quit [Quit: Computer has gone to sleep.]
mahmoudimus has joined #ruby
baroquebobcat has joined #ruby
fixl has joined #ruby
baroquebobcat has quit [Client Quit]
wookiehangover has joined #ruby
hsbt is now known as hsbt_away
JustinCampbell has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 245 seconds]
bier_ has quit [Ping timeout: 256 seconds]
baroquebobcat has joined #ruby
brianpWins has quit [Quit: brianpWins]
baroquebobcat has quit [Client Quit]
weeb1e has quit [Read error: Connection reset by peer]
weeb1e_ has joined #ruby
mahmoudimus has quit [Ping timeout: 265 seconds]
Iszak has joined #ruby
cakehero has joined #ruby
earthquake has joined #ruby
w2f2 has quit [Ping timeout: 260 seconds]
baroquebobcat has joined #ruby
mahmoudimus has joined #ruby
w2f2 has joined #ruby
tomku has joined #ruby