<volty>
log | print exec_cmdfile too -- suspect everything rule!
RichardBaker has left #ruby [#ruby]
zerign has joined #ruby
<SJr>
I am looking in the file, when this happens there is no output file, no side effect nothing. the response value of nil means the call didn't succeed at all.
vt101 has joined #ruby
mojjojo has quit [Quit: mojjojo]
Mars` has quit [Remote host closed the connection]
<volty>
check the error status
<havenwood>
SJr: Right, the command you're running is failing and not returning a failure exit status (or you'd see `false` not `nil`): system 'omgwtfbbq'; $?.exitstatus #=> 127
mojjojo has joined #ruby
<volty>
yap,
<SJr>
ah give me a second.
<volty>
no no
xargoon has quit [Read error: Operation timed out]
xargoon has joined #ruby
<vt101>
Man, I could use some help. https://gist.github.com/vt102/7634226 First half is code segment, second half is output. After I print graphs[hostid][gid] on line 6, it appears to become nil. What the heck am I missing here?
<volty>
you cannot base failing just on non-existing file
Tritania- is now known as Tritania
<SJr>
I'm not, I'm looking at the result system_exit
sergicles has quit [Quit: sergicles]
reset has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bradhe has quit [Remote host closed the connection]
<volty>
it seems no file or system fail
<bnagy>
vt101: always use p not puts when debugging
Bluemner has joined #ruby
schaary has quit [Quit: I sleep ZZZzzz…]
bradhe has joined #ruby
<bnagy>
bet you it's 1 vs "1"
mark_locklear has joined #ruby
<volty>
SJr: should double check -- log the env too
<volty>
what's you command btw
<volty>
?
kilophoton has quit [Ping timeout: 240 seconds]
lukec has joined #ruby
TaxmanBD has quit [Ping timeout: 272 seconds]
pskosinski has quit [Quit: Til rivido Idisti!]
<bnagy>
vt101: hrm.. ok that still doesn't make sense. :)
mojjojo has quit [Quit: mojjojo]
<vt101>
bnagy: I updated the gist, using p now (not familiar with that). Not sure how to read line 22...is it saying it's an array?
<vt101>
lines 6-8 I put in because I was getting a newline after the original line 6 print. There seem to be 4 lines output for lines 6-8-- the expected result, and three nils
TaxmanBD has quit [Client Quit]
TaxmanBD has joined #ruby
<bnagy>
vt101: oic, graphs[hostid][gid] just doesn't exist
TaxmanBD has quit [Client Quit]
drumusician has joined #ruby
reset has joined #ruby
shterrett has quit [Quit: shterrett]
<bnagy>
maybe you want graphs[hostid][gid[0]] ?
<volty>
log, print and/or check (if it exist) that command before invoking system, then write it to a file to invoke it manually
tsykoduk is now known as zz_tsykoduk
zz_tsykoduk is now known as tsykoduk
<bnagy>
also, you can do stuff like puts "gid: #{gid.inspect}" to make it a bit easier to follow
realDAB has joined #ruby
<volty>
or you could write it to a shell script and invoke that scripts etc etc
<volty>
bye
volty has quit [Quit: Konversation terminated!]
tkuchiki has joined #ruby
Metal-01 has joined #ruby
bugsinlights has joined #ruby
havenwood has quit []
mklappstuhl has joined #ruby
volty has joined #ruby
volty has left #ruby [#ruby]
<vt101>
bnagy: looking at line 21, there's no array in there.
moneydouble1 has quit [Quit: Leaving.]
<vt101>
oh gid must be blown
<bnagy>
vt101: gid is an array
bradhe has quit [Remote host closed the connection]
<vt101>
yup. expected an int.
bradhe has joined #ruby
<vt101>
bnagy: thanks!
kofno_ has quit [Ping timeout: 264 seconds]
<bnagy>
instead of gid use decomposition
<vt101>
bnagy: don't know what that is... (ruby newbie)
<bnagy>
blah.each {|gid,hsh| or something
<vt101>
ah
Linux_Extremist has quit [Ping timeout: 246 seconds]
reset has quit [Ping timeout: 272 seconds]
eka has quit [Quit: Computer has gone to sleep.]
b00stfr3ak has quit [Ping timeout: 245 seconds]
<bnagy>
also referring back into your main hash is weird
<vt101>
What I really want is graphs[hostid].keys.each
JimmyAtCMU has joined #ruby
<vt101>
that did it, I think
kofno_ has joined #ruby
<vt101>
What do you think is weird bnagy?
JimmyAtCMU has quit [Remote host closed the connection]
mjs2600 has quit [Remote host closed the connection]
<bnagy>
why not just graphs[hostid].each {|gid, subhsh| and then just subhsh['name] etc
nari_ has joined #ruby
Spami has joined #ruby
drumusician has quit [Ping timeout: 245 seconds]
TaxmanBD has joined #ruby
<vt101>
bnagy: that would work. I just need the "gid" to reference elsewhere.
parus has quit [Read error: Operation timed out]
Muz has quit [Read error: Operation timed out]
ZadYree has quit [Read error: Operation timed out]
Sourcele1s_ has quit [Read error: Operation timed out]
ghr has quit [Read error: Operation timed out]
tskogber1 has quit [Read error: Operation timed out]
katherinem13 has quit [Read error: Operation timed out]
jwest has quit [Read error: Operation timed out]
nbouscal has quit [Read error: Operation timed out]
mburns has quit [Read error: Operation timed out]
spacebug has quit [Read error: Operation timed out]
<vt101>
I see what you mean, though. Not used to working in a language where that is possible. I'm forcing myself to use ruby for just that reason. THanks!
_br_ has quit [Read error: Operation timed out]
crazysim has quit [Excess Flood]
Muz has joined #ruby
crazysim has joined #ruby
tskogberg has joined #ruby
parus has joined #ruby
mburns has joined #ruby
_br_ has joined #ruby
katherinem13 has joined #ruby
tsykoduk is now known as zz_tsykoduk
nateberkopec has quit [Quit: Leaving...]
kaspergrubbe has quit [Remote host closed the connection]
nbouscal has joined #ruby
<defendguin>
anyone try to run a ruby program using the mac automator?
hiyosi has joined #ruby
moneydouble has joined #ruby
zz_tsykoduk is now known as tsykoduk
ZadYree has joined #ruby
<defendguin>
seems like it isn't running in the right environment because i'm having issues with it not recognizing sqlite3
Sourceless has joined #ruby
spacebug has joined #ruby
nobitanobi has joined #ruby
Mr_Wharfsnort has quit [Quit: Leaving]
bradhe has quit [Remote host closed the connection]
smathieu_ has quit [Remote host closed the connection]
smathieu has joined #ruby
hogeo has joined #ruby
liamkeil1 has joined #ruby
hiyosi has quit [Ping timeout: 272 seconds]
randomnick_ has quit [Quit: Leaving]
liamkeily has quit [Ping timeout: 264 seconds]
jrhe has quit [Quit: jrhe]
thelorax123 has quit [Remote host closed the connection]
mjs2600 has joined #ruby
ananthakumaran has joined #ruby
Granite has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
smathieu has quit [Ping timeout: 272 seconds]
ananthakumaran has joined #ruby
hogeo has quit [Remote host closed the connection]
Aryasam has quit [Ping timeout: 272 seconds]
thelorax123 has joined #ruby
osvico has quit [Ping timeout: 245 seconds]
Mars` has joined #ruby
Aryasam has joined #ruby
t_p has joined #ruby
iliketu__ has quit [Quit: zzzzz…..]
Metal-01 has quit [Read error: Connection reset by peer]
mark_locklear has quit [Quit: Leaving]
kilophoton has joined #ruby
godzirra has quit [Quit: Page closed]
moneydouble has quit [Quit: Leaving.]
jwest has joined #ruby
jkhwan has quit [Remote host closed the connection]
jkhwan has joined #ruby
Mars` has quit [Ping timeout: 240 seconds]
hogeo has joined #ruby
nari_ has quit [Ping timeout: 245 seconds]
bradhe has joined #ruby
capicue has quit [Quit: Leaving...]
osvico has joined #ruby
tomasso has left #ruby [#ruby]
tkuchiki has quit [Remote host closed the connection]
realDAB has quit [Quit: realDAB]
machi has quit []
shterrett has joined #ruby
danshultz has joined #ruby
predator117 has quit [Ping timeout: 246 seconds]
mjs2600 has quit [Remote host closed the connection]
gyre007 has joined #ruby
predator117 has joined #ruby
danshultz has quit [Ping timeout: 245 seconds]
jalcine has quit [Excess Flood]
freerobby has quit [Quit: Leaving.]
sgnl has joined #ruby
jrhe has joined #ruby
nari_ has joined #ruby
eliasp has joined #ruby
funburn has joined #ruby
tholapz has joined #ruby
jeffdb has quit [Quit: jeffdb]
jrhe has quit [Client Quit]
jeffdb has joined #ruby
mjs2600 has joined #ruby
liamkeil1 has quit [Ping timeout: 248 seconds]
robustus has quit [Ping timeout: 245 seconds]
tsykoduk is now known as zz_tsykoduk
<rjhunter>
defendguin: sounds interesting -- how are you provoking the error? which rubies do you have installed?
shterrett has quit [Quit: shterrett]
otherj has joined #ruby
mjs2600 has quit [Remote host closed the connection]
colonolGron has quit [Quit: leaving]
robustus has joined #ruby
<defendguin>
i have 2.0.0 installed in rvm
tedstriker has joined #ruby
otherj has quit []
<defendguin>
basically the error says 'require' cannot load such file — sqlite3
Kricir has joined #ruby
<defendguin>
error in kernel_require
Lewix has joined #ruby
psyl0n has quit [Remote host closed the connection]
<rjhunter>
defendguin: and how are you provoking the error? ie, what are you running to get the error?
psyl0n has joined #ruby
<nobitanobi>
Would it be any different between doing: hash = Hash.new{ |h,k| h[k] = 0 } --- and doing --- hash = Hash.new{ 0 }
<nobitanobi>
?
Mars` has joined #ruby
nateberkopec has joined #ruby
<bnagy>
in practice no, for that example
<bnagy>
but the patterns are different
sparrovv has quit [Quit: sparrovv]
<defendguin>
rjhunter: i'm trying to run something like this /path/to/ruby /path/to/somefile.rb
<defendguin>
in a bash script automator task
sergicles has joined #ruby
<nobitanobi>
ok thanks bnagy
nateberkopec has quit [Read error: Connection reset by peer]
nateberkopec has joined #ruby
tharindu has quit [Quit: Leaving...]
bradhe has quit [Remote host closed the connection]
<bnagy>
nobitanobi: hm, unless they changed it
bradhe has joined #ruby
Guest70889 has quit [Ping timeout: 272 seconds]
tkuchiki has joined #ruby
<rjhunter>
defendguin: So you're using the "Run Shell Script" action in an Automator flow, with the Shell set to /bin/bash?
ZadYree has quit [Ping timeout: 272 seconds]
<defendguin>
yup
<rjhunter>
defendguin: And the bash script is just a single line, reading something like: /Users/defendguin/.rvm/wrappers/ruby-2.0.0-p0/ruby /Users/defendguin/myapp/go.rb
nari_ has quit [Ping timeout: 245 seconds]
<defendguin>
yup
<bnagy>
nobitanobi: bleh never mind me, I was thinking the second was Hash.new(0) not {}
RealMarc has joined #ruby
zerign has quit [Ping timeout: 272 seconds]
moneydouble has joined #ruby
<rjhunter>
defendguin: definitely using the ruby in RVM's "wrappers" folder?
<rjhunter>
defendguin: try "wrappers" instead of "rubies"
harrymoreno has joined #ruby
<bnagy>
nobitanobi: things like Hash.new( [] ) uses the same array for all hash misses
t_p has quit [Quit: Computer has gone to sleep.]
<rjhunter>
defendguin: it'll set up the ruby environment (GEM_HOME and similar things)
Solnse has joined #ruby
nateberkopec has quit [Ping timeout: 264 seconds]
<bnagy>
Hash.new{ [] } creates a new one
<bnagy>
but in that case it would just vanish
<nobitanobi>
mmm ok
Mars` has quit [Ping timeout: 240 seconds]
<bnagy>
Hash.new{0} is special because 0 is an immediate
ZadYree has joined #ruby
<defendguin>
hmmm ok
reset has joined #ruby
Barrin6 has quit []
vt101 has quit [Quit: Page closed]
<defendguin>
rjhunter: that workedQ
<defendguin>
!
Solnse has quit [Ping timeout: 252 seconds]
matematikaadit has quit [Remote host closed the connection]
<rjhunter>
defendguin: ".rvm/rubies/.../bin/ruby" is the actual ruby interpreter binary itself. When you `rvm use` on the command line, that sets your GEM_HOME and PATH etc to include the relevant folders for that ruby.
reset has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Read error: Connection reset by peer]
<rjhunter>
defendguin: the scripts in "wrappers" is only a couple of lines -- it loads the relevant environment and then runs whatever was going to run
<defendguin>
cool
tharindu has joined #ruby
lyanchih has joined #ruby
kofno_ has quit [Ping timeout: 246 seconds]
lethjakman has quit [Ping timeout: 240 seconds]
R33C3 has joined #ruby
dagnachew has joined #ruby
mjs2600 has joined #ruby
harrymoreno has quit [Ping timeout: 248 seconds]
harrymoreno has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
reset has joined #ruby
Kricir has quit [Remote host closed the connection]
kofno_ has joined #ruby
hogeo has quit [Quit: Leaving...]
sevenseacat has joined #ruby
hogeo has joined #ruby
preller has quit [Ping timeout: 248 seconds]
ananthakumaran has quit [Quit: Leaving.]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dagnachew has quit [Quit: Leaving]
Ripp__ has quit [Ping timeout: 245 seconds]
joumunji has joined #ruby
xp_prg has quit [Quit: This computer has gone to sleep]
mjs2600 has quit [Remote host closed the connection]
<benzrf>
notice the hello world example looks suspiciously like sinatra's
TaxmanBD has quit [Ping timeout: 248 seconds]
Granite has quit [Ping timeout: 265 seconds]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hello_world has quit [Ping timeout: 250 seconds]
<rjhunter>
glancing through the Flask documentation, it seems Flask includes templating (Sinatra expects you to bring your own if you want templating)
iliketu__ has joined #ruby
kaspergrubbe has quit [Ping timeout: 272 seconds]
<rjhunter>
but they seem roughly equivalent
Soda has quit [Read error: Connection reset by peer]
<jrobeson>
but it doies work automatically via tilt.. <3 tilt
ddd has quit [Ping timeout: 240 seconds]
<jrobeson>
i wonder when flask came out
<jrobeson>
i've only heard about it for the past few years
<jrobeson>
but .. i don't keep on top of muc python stuff
<benzrf>
rjhunter: wait really?
<benzrf>
:[
<rjhunter>
flask seems kinda heavier-weight
iliketur_ has quit [Ping timeout: 248 seconds]
<benzrf>
rjhunter: is there something like flask for ruby?
<benzrf>
that is, it has everything you need to make a typical app
<benzrf>
but is relatively bare bones
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
<benzrf>
without a ton of config or extra file
<benzrf>
s
Kricir has joined #ruby
<benzrf>
so on a scale between sinatra & rails, maybe like 1/3 away from sinatra?
tharindu has joined #ruby
jerius has joined #ruby
R33C3 has quit [Read error: Connection reset by peer]
R33C3 has joined #ruby
ddd has joined #ruby
<rjhunter>
benzrf: the scale probably goes something like: straight rack app -- sinatra -- sinatra + a couple of libraries -- padrino -- rails with a bunch of stuff turned off -- rails with defaults
wormwood has quit [Read error: Operation timed out]
Tobarja has quit [Ping timeout: 252 seconds]
SirFunk has quit [Ping timeout: 246 seconds]
shaquile has quit [Ping timeout: 246 seconds]
the_mentat has quit [Ping timeout: 248 seconds]
samkottler has quit [Ping timeout: 240 seconds]
<benzrf>
so padrino is what i want?
hamakn has quit [Remote host closed the connection]
orionstein_away has quit [Ping timeout: 245 seconds]
Gnubie_ has quit [Ping timeout: 246 seconds]
momomomomo has joined #ruby
hamakn has joined #ruby
IceColdMax has quit [Quit: For a hard earned thirst...]
<jrobeson>
benzrf, it's what you want to take a look at :)
<rjhunter>
benzrf: I don't know what you want, but you can try one or two of the options and see how you feel.
philtr has quit [Ping timeout: 272 seconds]
sindork has quit [Ping timeout: 272 seconds]
sweeper has quit [Ping timeout: 272 seconds]
machuga has quit [Ping timeout: 272 seconds]
sixteneighty has quit [Read error: Operation timed out]
Kovensky has quit [Ping timeout: 272 seconds]
xp_prg has joined #ruby
machuga has joined #ruby
<rjhunter>
I'd probably recommend you start with sinatra + liquid (a tilt-compatible templating library that looks similar to Jinja) and see if you feel like anything's missing
<benzrf>
hmm
tholapz has quit [Ping timeout: 250 seconds]
razieliyo has quit [Quit: Saliendo]
<jrobeson>
liquid <3
freerobby has joined #ruby
momomomomo has quit [Client Quit]
<jrobeson>
twig is more advanced that jinja.. i wonder how liquid compares to twig
<jrobeson>
twig being for php that is..
<jrobeson>
so actually i mean <3 twig.. and hopefully <3 liquid
<rjhunter>
benzrf: but if you feel like there's too many things missing, then jump up the ladder
jerius has quit []
<benzrf>
jrobeson: how is it more advanced
<jrobeson>
it doesn't matter.. this isnt' php
<benzrf>
.....
hamakn has quit [Ping timeout: 272 seconds]
<jrobeson>
i should probably attempt to compare compatibility with twig and liquid soon
sixteneighty has joined #ruby
bulkan has quit [Remote host closed the connection]
<jrobeson>
would be cool if i could play with the same templates in all 3 languages ..
gf3 has quit [Ping timeout: 264 seconds]
reset has quit [Quit: Leaving...]
freerobby has quit [Ping timeout: 245 seconds]
deception has joined #ruby
DanKnox has quit [Ping timeout: 246 seconds]
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
DanKnox has joined #ruby
gf3 has joined #ruby
<Galeforce>
whats a good program to make in ruby?
<Galeforce>
i want to test myself (im new) and dont know what program to start making
xybre has quit [Ping timeout: 248 seconds]
<nobitanobi>
Galeforce, something that is of your interest
<jrobeson>
Galeforce, did you complete the rubykoans ?
<bnagy>
well if you don't know what a mixin is, or how ruby works, then maybe asking a fine point of difference between two obscure thread sync classes isn't the place to start
IceDragon has quit [Quit: Space~~~]
freerobby has quit [Ping timeout: 246 seconds]
havenwood has joined #ruby
Kovensky has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
bradhe has quit [Remote host closed the connection]
<Galeforce>
is ruby koans all about tests?
<ddd>
no, it just uses tests to make you think about the ruby (and teach you how to write effecive tests)
<Galeforce>
ok
<Galeforce>
im actually doing ok on it now
<ddd>
keep at it :)
<bnagy>
koans are really night fur kinder, unless they've changed a lot
<bnagy>
*nicht
<bnagy>
there are probably way better intros
<Galeforce>
nicht?
<sevenseacat>
not for kids
<ddd>
not for beginners
<sevenseacat>
damn german colloquialisms
<ddd>
heh
lfox has joined #ruby
machuga has quit [Ping timeout: 272 seconds]
gyre007 has quit [Remote host closed the connection]
kung has quit [Quit: Bye!]
diegoviola has joined #ruby
jbrechtel has quit [Remote host closed the connection]
kilophoton has quit [Ping timeout: 272 seconds]
jbrechtel has joined #ruby
lfox has quit [Client Quit]
mjs2600 has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
lfox has joined #ruby
machuga has joined #ruby
Aryasam has joined #ruby
Kricir has quit [Remote host closed the connection]
varfoo has joined #ruby
smathieu has joined #ruby
mklappstuhl has quit [Ping timeout: 272 seconds]
<jrobeson>
so.. perhaps he does not know as much as thought to be known ..
iamjarvo has joined #ruby
<jrobeson>
bnagy, i thought the koans were easy.. going through the basic constructs.
<jrobeson>
like try ruby .. but faster
Hanmac has joined #ruby
bluOxigen has joined #ruby
danshultz has quit [Remote host closed the connection]
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
preller has quit [Ping timeout: 272 seconds]
ewnd9 has quit [Ping timeout: 245 seconds]
polaco_zZz has joined #ruby
zzak has joined #ruby
machuga has joined #ruby
xaores has quit [Ping timeout: 272 seconds]
bradhe has quit [Ping timeout: 245 seconds]
jibrjrb has quit [Quit: Leaving.]
lolmaus has joined #ruby
<benzrf>
ugh
<benzrf>
i dont like rubys syntactical inconsistencies
<benzrf>
|:<
reset has joined #ruby
<benzrf>
PYTHON, on the other hand, is MUCH more regular
<benzrf>
-smug-
polaco_zZz has quit [Ping timeout: 272 seconds]
<lolmaus>
benzrf, you haven't seen JavaScript if you grumble at Ruby.
<benzrf>
ive seen jsaak
<benzrf>
*JS
<benzrf>
it has p. regular grammar
jibrjrb has joined #ruby
<benzrf>
compared to ruby anyway
<benzrf>
:-D
zzak has quit [Remote host closed the connection]
<lolmaus>
I'm trying to figure out how to require a Ruby dependency fetched from Github rather then from gems. I tried requiring its main file by a relative URL: `require '../middleman-blog/lib/middleman-blog.rb'`, but the library fails to require its internal deps: "can not load such file -- middleman-blog/version".
<lolmaus>
How do i do it correctly?
noyb has joined #ruby
<sevenseacat>
javascript is hideous
<rjhunter>
lolmaus: The Ruby tool "bundler" is the widely-accepted way to manage dependencies in a Ruby application.
intuxicated_ has joined #ruby
intuxicated has quit [Ping timeout: 264 seconds]
<rjhunter>
lolmaus: If you're not using Bundler already, you'll save yourself a lot of pain by starting now
<benzrf>
sevenseacat: how so
reset has quit [Ping timeout: 245 seconds]
<benzrf>
?
<lolmaus>
rjhunter, i'm trying to test out a version of the library that made its way to Github but hasn't been released to RubyGems.
<rjhunter>
lolmaus: If you're using Bundler, then a line in your Gemfile like this should be enough:`gem 'middleman-blog', git: 'https://github.com/middleman/middleman-blog'`
<benzrf>
lolmaus: oh god yes js' semantics are horrifying
<benzrf>
im talking about *syntax*
<benzrf>
were you not listening
<benzrf>
:P
<havenwood>
benzrf: Ruby syntax is lovely. JS? Really?
<benzrf>
no the syntax is nice
<rjhunter>
havenwood: I think benzrf is talking about the regularity of the syntax, not its beauty
<benzrf>
but its annoyingly special-casey and inconsistent
apeiros has joined #ruby
<havenwood>
benzrf: such is human language
<lolmaus>
havenwood, he's talking about adherence to formal regularities.
<benzrf>
bah
<benzrf>
look at python
<havenwood>
there are many ways to do it
<benzrf>
its syntax is very nice
<lolmaus>
benzrf, Ruby lets write in a consistent manner if you want to.
<benzrf>
& yet quite regular & consistent
<havenwood>
benzrf: meh
<benzrf>
havenwood: you take that back
<lolmaus>
Python is ugly after you've got a taste of Ruby.
<havenwood>
lol
macmartine has quit [Ping timeout: 246 seconds]
<Shidash>
Does anyone have suggestions on the best way to do network visualization using Ruby? Ideally I'd like to find some way to use Gephi or something like that with Ruby
<benzrf>
lolmaus: pfft
<lolmaus>
Python still uses the `for` loop extensively.
<benzrf>
more like RUBY is ugly after you get a taste of HASKELL
<benzrf>
-shades-
<benzrf>
lolmaus: but yes
<benzrf>
my #1 beef with python is its lack of blocks & HOFs
<benzrf>
if it had those itd easily beat ruby w/ me
<benzrf>
as is, im trying to switch over to ruby
<benzrf>
:T
<havenwood>
benzrf: whenever i use Python i get the sneaking suspicion that i'm just being trolled, and there is another *real* library that is the actual one - like with pip... no way to list installed packages or update all package. OMGWTFBBQ...
<duncan_bayne>
lolmaus: not trying to be facetious, but what're the common use cases for Ruby on Windows?
<benzrf>
havenwood: more like ubuntu
<benzrf>
os x pfft
<sevenseacat>
lol osx
<duncan_bayne>
lolmaus: I recently had to support a Ruby app for a few people running Windows laptops, it was easier just to get them dual-booting Linux Mint.
<havenwood>
lolmaus: i prefer to use ruby-install with chruby instead of rvm, but mpapis is doing some neat stuff
<benzrf>
MORE LIKE OSUX AMIRITE
freerobby has joined #ruby
<havenwood>
benzrf: ubuntu >.>, i'd rather fedora, arch or gentoo
<havenwood>
benzrf: FreeBSD is moar like OS X
cooldman224 has joined #ruby
<benzrf>
pfft
<benzrf>
ubuntu has the best packages
<havenwood>
PostgreSQL on Ubuntu made me laugh, then cry.
<havenwood>
Ruby package on Ubuntu.
nateberkopec has quit [Quit: Leaving...]
<havenwood>
Gah... the horror.
<benzrf>
bah
<lolmaus>
duncan_bayne, i'm a frontend developer and my desktop OS happens to be Windows 7. I develop more complicated project in a virtual machine (usually headless Ubuntu), but when an app is fully Windows-compatible and either has Windows-compatible deployment routines or simply lacks them, then i prefer to run the app natively on Windows rather than bother with a virtual machine.
<lolmaus>
*projects
<rjhunter>
I've seen a fair number of people trying to run Ruby on Windows. Many are learning to program for the first time, or are working in non-coding roles in a team that likes Ruby.
freerobby has quit [Client Quit]
noname001__ has quit [Read error: Operation timed out]
<lolmaus>
havenwood, have you heard of RVM and PPAs?
<havenwood>
lolmaus: I'm not worried about me.
zz_tsykoduk is now known as tsykoduk
cooldman224 has quit [Remote host closed the connection]
<lolmaus>
havenwood, you don't have to have Ruby and Postgres from Ubuntu official repos. For Ruby, you have RVM and as for Postgres, it offers a private Ubuntu repo updated by Postgres team: http://www.postgresql.org/download/linux/ubuntu/
xybre has joined #ruby
<sevenseacat>
whats wrong with postgres in the 'buntu repos?
<havenwood>
lolmaus: Like with Fedora 19, you get ruby-2.0.0-p247 as the system install with a perfectly setup RubyGems. No research or hacks, just works.
<lolmaus>
havenwood, okay.
<duncan_bayne>
lolmaus, rjhunter: perhaps I've just been turned cynical by my recent experiences. It was in all honesty quicker just to set up dual-boot than it was to try to pin down the problems on Windows. I know because I tried both approaches :) Plus Windows is lacking a lot of useful dev tools out-of-the-box.
<havenwood>
just saying, i don't think Ubuntu packages are *all that* - sure you can make it work, but i don't really consider it a bon
<havenwood>
boon*
<Radar>
lol is something trying to install Ruby from Ubuntu's packages agani?
<Radar>
!popcorn3
<Radar>
Oh, that's not here.
<sam113101>
I thought you were dead Radar
xk_id has joined #ruby
<Radar>
sam113101: Rumours of my eventual death have been greatly exaggerated.
<sevenseacat>
Radar: i added more popcorn gifs. enjoy.
<Radar>
All the cool kids use chruby to install Ruby now.
<lolmaus>
duncan_bayne, unfortunately, i've got so many different tools and customisations in Windows, that going Ubuntu or Mac for me is a pain. Setting up Git and Ruby on Windows for me is the lesser of evils. :(
<duncan_bayne>
lolmaus: Hmmm. Have you looked into Cygwin? I was going down that route in my attempt to get things going on Windows. IIRC I got Ruby 2.0 building nicely, All The Things installed (Git, OpenSSH, Emacs, etc.) but was stuck on some Gem not compiling.
<havenwood>
Radar: i'm a chruby committer :) yeah, usual path seems to be Ubuntu's 1.8 package from hell, then when rvm is suggested get the apt packaged rvm and complain that doesn't work
<sevenseacat>
cygwin was a joke back when i used it at uni, i hope its gotten better
lyanchih has quit [Quit: lyanchih]
<lolmaus>
duncan_bayne, yeah, that's what i'm doing when the app i'm working with has no *nix-only dependencies.
Mars` has joined #ruby
<duncan_bayne>
sevenseacat: yeah, Cygwin is pretty good these days, certainly makes working on Windows tolerable.
<havenwood>
Radar: but ruby-install to install Ruby and chruby for switching :P
jbrechtel has quit [Remote host closed the connection]
<Radar>
havenwood: yes please :)
<lolmaus>
duncan_bayne, most gems compile fine on Windows with a 32-bit Ruby. 64-bit is rarely a requirement.
noyb has quit [Ping timeout: 264 seconds]
jamesaanderson has joined #ruby
vxxr has joined #ruby
endash has quit [Quit: endash]
nomenkun has quit [Remote host closed the connection]
tsykoduk is now known as zz_tsykoduk
benzrf has left #ruby [#ruby]
<bnagy>
I do a lot of windows, but all with jruby, which has easy 64bit
<bnagy>
but I only need stuff to run there, not ever going to use it as a primary dev env
<havenwood>
bnagy: ah nice, so no fork anyways - lines up in that regard
gyre007 has joined #ruby
<bnagy>
right
<rjhunter>
lolmaus: hm, i didn't know about "pik". someone was in the other day asking about multiple rubies on Windows, I thought they were on their own
<bnagy>
I still need to write fork for windows :<
<havenwood>
bnagy: :O
bkparso has quit [Quit: bkparso]
<bnagy>
it's possible, it's just really really awful
<lolmaus>
rjhunter, Pik doesn't distinguish between 32-bit and 64-bit. So you can only have either for each Ruby version. :(
<bnagy>
btu I think some of the newer windows might have actually made it a bit easier with new kernel stuff
freakazoid0223 has quit [Ping timeout: 246 seconds]
falood has joined #ruby
mklappstuhl has joined #ruby
<havenwood>
(the last post i mean)
<bnagy>
yeah, except it's not only undocumented, it varies from version to version
xp_prg has quit [Quit: This computer has gone to sleep]
<havenwood>
yeah, that is suboptimal :P
<bnagy>
the cygwin stuff goes nowhere, the nebbett approach can work
hogeo has quit [Remote host closed the connection]
gyre007 has quit [Ping timeout: 272 seconds]
<bnagy>
it's just awful, as I said :)
mklappstuhl has quit [Read error: Connection reset by peer]
<duncan_bayne>
rjhunter: I've replaced my hand-rolled stuff with micromachine and it's nice to behold.
<bnagy>
if you don't need to tell csrss it's a lot easier, but you kind of almost always want to
mklappstuhl has joined #ruby
hogeo has joined #ruby
amacgregor_ has joined #ruby
<lolmaus>
rjhunter, your recommendation to use Bundler to fetch from Github worked, but i now receive a weird error when running `bundle install` for the secod time (i added more gems to Gemfile): C:/Ruby200-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/source/git/git_proxy.rb:88:in ``': No such file or directory - git cat-file -e 6f2ef18572f917b5ce937688747d569fc261e6a5 (Errno::ENOENT)
<lolmaus>
Bundler refused to do anything. :(
ppppaul has joined #ruby
<duncan_bayne>
rjhunter: every non-trivial Ruby codebase has at its heart a informally-specified, bug-ridden, slow implementation of a state machine (with apologies to Greenspun)
myappleguy has quit [Ping timeout: 246 seconds]
intuxicated_ has quit [Ping timeout: 248 seconds]
<havenwood>
lolmaus: I don't know what has happened, but maybe try deleting your Gemfile.lock and bundling again?
amacgregor has quit [Ping timeout: 246 seconds]
bradhe has joined #ruby
axl_ has quit [Quit: axl_]
noyb has joined #ruby
sergicles has quit [Quit: sergicles]
<havenwood>
lolmaus: questions fine here of course, but there's a #bundler channel as well
mklappstuhl has quit [Ping timeout: 252 seconds]
axl_ has joined #ruby
danshultz has joined #ruby
lfox has quit [Quit: ZZZzzz…]
tharindu has joined #ruby
hogeo has quit [Ping timeout: 272 seconds]
<rjhunter>
lolmaus: it looks like there might have been a bug finding git on Windows in the version of Bundler you're using
<havenwood>
rjhunter: can it not find git or not find that commit hash?
bradhe has quit [Ping timeout: 265 seconds]
freakazoid0223 has joined #ruby
<rjhunter>
havenwood: based on the changelog, it sounds like it was finding git that was the problem
<havenwood>
ah
Mars` has quit [Ping timeout: 246 seconds]
<kiba>
so. I got a problem....
<rjhunter>
lolmaus: in the meantime, you can manually clear out your git cache folder
<havenwood>
lolmaus: assiming you have git installed? (if not, install git)
<havenwood>
you must..
<havenwood>
nvm
xp_prg has joined #ruby
<kiba>
I generated a 100MB file assuming it's all JSON
<kiba>
but it's really ruby hashes!
<kiba>
am I doomed?
<havenwood>
kiba: is it JSON or Ruby? huh?
<kiba>
I used ruby to write data
<havenwood>
kiba: you mean you meant to serialize it to JSON and you didn't?
<kiba>
but I forgot to convert them into JSON
<kiba>
havenwood: yes
danshultz has quit [Ping timeout: 272 seconds]
<havenwood>
kiba: so read it out, convert it, and put it back
<kiba>
it's probably a 100MB file now
<bricker`LA>
eval(File.read('yourfile.json')).to_json :O (I have no idea if that will work)
Briareos1 has quit [Remote host closed the connection]
tharindu has quit [Ping timeout: 272 seconds]
<havenwood>
kiba: So you're using RON :P Ruby object notation.
<kiba>
havenwood: well, I don't really care if it's JSON
<kiba>
as long as I can parse it into something useful
<kiba>
or maybe I should generate it as a JSON file
<havenwood>
kiba: Marshal is an option built into Ruby. MessagePack is nice: http://msgpack.org/
* kiba
wonders if he should try to boost download speed too
<havenwood>
kiba: So PStore and YAML::Store are things you might want to look at.
* kiba
's code has been hampering the rubygems server for quite a while now
<lolmaus>
rjhunter, havenwood, oh! You're right, i've been trying to do `bundle` in non Git-enabled terminal. My bad. :(
<havenwood>
kiba: PStore serializes with Marshal and store it to a file and YAML::Store does the same with YAML (a superset of JSON).
tharindu has joined #ruby
<rjhunter>
lolmaus: the newer versions of bundler have a nicer error message when it can't find git
<kiba>
I am confused, what with all the acronyms thrown at me?
lethjakman has quit [Ping timeout: 265 seconds]
<havenwood>
kiba: So the goal is to serialize and save to disk, right?
<rjhunter>
lolmaus: which would have made it easier to figure out what was going on :-)
<kiba>
havenwood: Well, I prefer to read the file, generate a JSON version of it
* kiba
faceplams himself
<lolmaus>
rjhunter, good to know.
<kiba>
now I have to write in my essay regarding the lifecylce of gems that I made a mistake
<havenwood>
kiba: So for a serialization format you have JSON, YAML, Marshal or MsgPack. (You said it didn't have to be JSON.) Ruby has two things built in for serializing to Marshal or YAML then persisting to disk in a transactional nice way, called PStore and YAML::Store.
* kiba
's original plan is to generate a JSON file, parse it and generate a CSV file and use R to do survival analysis
<havenwood>
kiba: So `eval` the content of the current file, convert it to JSON, save it back, carry on.
<kiba>
havenwood: well, I am just saying a lot of things. I think I really want the file in JSON
darkc0met has quit [Read error: Operation timed out]
<havenwood>
kk
<kiba>
so I will do what you say
<havenwood>
kiba: i think bricker`LA's suggestion was spot on
<kiba>
On each line is a separate hash, so I eval each line and then write to file as JSON
charliesome has joined #ruby
reset has joined #ruby
<kiba>
yeah yeah
<havenwood>
kiba: it is line-delimited?
funburn has quit [Quit: funburn]
<kiba>
I think so, yes
<havenwood>
kiba: or it is a Ruby array of hashes?
jibrjrb has quit [Quit: Leaving.]
<kiba>
no, it's not an array
macmarti_ has quit [Remote host closed the connection]
<kiba>
I generate a ruby Hash and write it to each line
<kiba>
it represent each gem
iamjarvo has quit [Quit: Leaving.]
* kiba
is working on an enterprising project to analyze the lifecycle of gems
<havenwood>
kiba: If that ^ doesn't work, provide us a gist of the first or last couple lines of the file. bricker`LA's presumed the file is valid Ruby while ^ presumes each line is
hogeo has joined #ruby
fschuindt has joined #ruby
<kiba>
havenwood: it's probably entirely valid ruby file too
<rjhunter>
kiba: if the data is too big to fit into memory at once, you'll need to take a slightly different approach, but 100MB doesn't sound too bad
reset has quit [Ping timeout: 272 seconds]
<kiba>
rjhunter: well, the copy is only something like 100 MB. I dunno
* kiba
checks
<kiba>
what I should have done earlier is to work on the file near the beginning while the data is being downloaded
<kiba>
the data is still being downloaded
<kiba>
it would be too painful to start over again unless I devise a faster mean of downloading the data
<jrobeson>
ask them for a db dump?
<kiba>
jrobeson: I never thought of doing that
* kiba
prefer not to ask for help though
<jrobeson>
well i think your project would be most helpful for the community.. so let the community help you when it can
<rjhunter>
chrisbolton: that sounds like an ActiveRecord question, which might be better answered in #rubyonrails
Hanmac has quit [Quit: Leaving.]
<havenwood>
kiba: Here, this returns the name and version number of each gem release ever: Gem::SpecFetcher.new.available_specs(:complete).first.values.flatten.map { |gem| {name: gem.full_name, version: gem.version.to_s } }
<kiba>
havenwood: and without downloading each of the gem from rubygems.org?
<havenwood>
kiba: yes
<sevenseacat>
he already asked us there
<chrisbolton>
rjhunter: It is an active record question. I tried the #rubyonrails room. I was hoping I might have some luck with people who use active record in here.
<kiba>
ok
<kiba>
havenwood: let throw away code!
<chrisbolton>
hi sevenseacat
<sevenseacat>
hi :)
LexicalScope has joined #ruby
<havenwood>
kiba: try it (you can swap out `:complete` for `:lastest` just to get most recent version of each gem)
<havenwood>
:latest**
<havenwood>
lastest >.>
<kiba>
havenwood: I need the entire history of each gem
<havenwood>
kiba: history?
<kiba>
including the information about author, license, etc
hogeo has quit [Remote host closed the connection]
<havenwood>
the spec
<kiba>
havenwood: version history, yeah
lodeston_ has joined #ruby
* kiba
didn't know the most efficient way of getting information
<havenwood>
kiba: yeah, you can use SpecFetcher to fetch the specs, then parse em all with RubyGems
<rjhunter>
chrisbolton: it's worth a shot, but the folks in here don't tend to be big on active*
<kiba>
specfetcher, got it
<havenwood>
kiba: It isn't widely known stuff, some of it quite arcane.
macmartine has joined #ruby
<kiba>
parse them all with rubygems?
<kiba>
didn't each gemspec contains info like author,license, etc?
closures999 has joined #ruby
<kiba>
I guess I should have ask the ruby community what's the most efficient way to get information
<chrisbolton>
rjhunter: Thanks. I was hoping to get lucky. I'll keep plugging away.
<jrobeson>
Gem::Specification is a thing..
<kiba>
it could have save me a lot of time waiting
<jrobeson>
what's wrong with using it?
nomenkun has joined #ruby
hogeo has joined #ruby
<jrobeson>
can't you just ask that?
et_ has joined #ruby
<kiba>
well, I didn't know.
<et_>
hi everyone
<kiba>
well, I won't cancel the download until I try out the code and see if it works
nomenkun has quit [Read error: Connection reset by peer]
<et_>
anyone rubyists here who have jumped into Go?
nomenkun has joined #ruby
<jrobeson>
you mean people who program using ruby who also program using go?
lodeston_ has quit [Ping timeout: 245 seconds]
<et_>
yes
<et_>
I'm just looking for pointers
<jrobeson>
pointers for what?
<et_>
..on how to get started
<havenwood>
kiba: Like i was saying the other day when you asked for feedback, your opening line looking for gem names with shell stuff should be replaced with: Gem::Specification.all.map &:name
browndawg has joined #ruby
<havenwood>
kiba: Just take a look at: Gem::Specification.all
<kiba>
ok dopey
macmartine has quit [Remote host closed the connection]
<jrobeson>
et_, wouldn't it be better to ask for pointers for using go in a go room?
<kiba>
havenwood: I thought that was just getting the names, rather than all the info I want
<jrobeson>
i'm not sure if there's anything that would particularly help an incoming rubyist
<havenwood>
kiba: Sounded to me like everything you want is in: Gem::Specification.all
<kiba>
but I didn't realized that you can get more information than that
<kiba>
Ok!
* kiba
is happy
* jrobeson
memory is not terrible.. WHOO
* kiba
shouldn't dwell on sunk cost
<et_>
jrobeson: probably, but rubyists are my people :)
<kiba>
I tried not to...
jkhwan has quit [Remote host closed the connection]
hogeo has quit [Ping timeout: 245 seconds]
<rjhunter>
et_: I know a few people who have spent a long time in Ruby and have recently spent time in Go
<rjhunter>
but I'm not one of them
jkhwan has joined #ruby
<et_>
rjhunter: I feel like I hear a lot of that going on...
<rjhunter>
et_: There seems to be a fair amount of interest in Rust as well
emocakes has joined #ruby
axl_ has quit [Quit: axl_]
nomenkun has quit [Ping timeout: 248 seconds]
tobyo has joined #ruby
osvico has quit [Ping timeout: 246 seconds]
<rjhunter>
et_: and Steve Klabnik is working on a book called "Rust for Rubyists"
mikepack has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<et_>
rjhunter: yes, I follow him on twitter so I see a lot of those tweets.
jbrechtel has joined #ruby
<rjhunter>
there may be something similar for Go, but honestly I'd probably start by just picking up a regular Go resource that doesn't target people from a particular language background
preller has quit [Ping timeout: 252 seconds]
<et_>
yes, I agree. I just wanted to hear what my fellow rubyists thought.
mjs2600 has joined #ruby
aavt has joined #ruby
jkhwan has quit [Ping timeout: 272 seconds]
<et_>
gotta run
hogeo has joined #ruby
<et_>
rjhunter: nice to meet you :)
nobitanobi has joined #ruby
<rjhunter>
:-)
<havenwood>
et_: What are you looking to do with Go? I find Elixir, Haskell and Clojure all more interesting and elegant than Go though personally. Go has cross compilation which is nice if you need it I guess, and a nice concurrency model, but meh.
<nobitanobi>
morning
<nobitanobi>
*night
<havenwood>
et_: later
<et_>
cheers havenwood
bugsinlights has quit [Remote host closed the connection]
<xybre>
I've looked into Haskell, Closure and Erlang (less Elixir) and that functional style is good for some things, but those languages have other large sets of drawbacks.
<sevenseacat>
i was with you down until about "None of the engineers on the team have taken very long at all to come up to speed in the language; heck, even one of our interns picked it up in a couple of days."
gtsiftsis has joined #ruby
<sevenseacat>
thats complete BS, you cant become proficient in a language in a few days
<xybre>
I think they just mean "it compiles", not like expert. Much like the game Go, simple rules, easy to learn, lifetime to master.
mklappstuhl has joined #ruby
mjs2600 has joined #ruby
adambeynon has joined #ruby
<sevenseacat>
ok so after a few days you wont be very productive at all but thats seen as 'coming up to speed'
<sevenseacat>
in that case, i am like the world's best java/android dev
ppppaul has quit [Ping timeout: 246 seconds]
<xybre>
Though, I was preficient in 24 hours in PHP enough to write an API consumer and interface.
maroloccio2 has joined #ruby
nomenkun has joined #ruby
maroloccio has quit [Ping timeout: 264 seconds]
funburn has quit [Quit: funburn]
mklappstuhl has quit [Ping timeout: 252 seconds]
jle` has quit [Quit: lambdabot]
jle` has joined #ruby
relix has joined #ruby
sandeepk has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
ananthakumaran has quit [Read error: Connection reset by peer]
nomenkun has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
mjs2600 has quit [Remote host closed the connection]
TigerWolf has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
zipper_ has quit [Remote host closed the connection]
DouweM has quit [Ping timeout: 248 seconds]
zipper has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
<hema>
<Lewix>bundle exec rake assets:precompile execute this in production it shows Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Raboo has joined #ruby
mikee has joined #ruby
monkegjinni has quit [Remote host closed the connection]
zeeraw has joined #ruby
hogeo has quit [Read error: Connection reset by peer]
CripperZ is now known as N00D
xcess_denied has joined #ruby
mootpointer has joined #ruby
hogeo has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Elhu has joined #ruby
Razkin has joined #ruby
jhaals has joined #ruby
ghr has joined #ruby
funburn has joined #ruby
sayan has quit [Read error: Connection reset by peer]
rickruby_ has quit [Remote host closed the connection]
Razkin has quit [K-Lined]
jhaals has quit [Client Quit]
mklappstuhl has quit [Remote host closed the connection]
moneydouble has quit [Quit: Leaving.]
wallerdev has quit [Quit: wallerdev]
mjs2600 has quit [Remote host closed the connection]
workmad3 has joined #ruby
moneydouble has joined #ruby
bradhe has joined #ruby
Alina-malina has quit [Quit: Leaving]
Alina-malina has joined #ruby
<hema>
image upload is not working in rails4 production it shows 500 internal server
nari_ has joined #ruby
tobago has quit [Ping timeout: 246 seconds]
ananthakumaran has quit [Read error: Connection reset by peer]
jhaals has joined #ruby
ananthakumaran has joined #ruby
jbrechtel has joined #ruby
dano21 has joined #ruby
jhaals has quit [Client Quit]
lyanchih has quit [Read error: Operation timed out]
bradhe has quit [Ping timeout: 252 seconds]
jbrechtel has quit [Read error: No route to host]
reset has quit [Quit: Leaving...]
jbrechtel has joined #ruby
einarj has joined #ruby
mfmfmfmfmfmf has joined #ruby
nateberkopec has joined #ruby
sayan has joined #ruby
mklappstuhl has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
gr33n7007h has quit [Quit: Leaving]
ewnd9 has quit [Ping timeout: 272 seconds]
jbrechtel has quit [Ping timeout: 246 seconds]
mootpointer has quit [Quit: ENOCAFFEINE.]
mootpointer has joined #ruby
rickruby has joined #ruby
nari_ has quit [Ping timeout: 246 seconds]
dano21 has quit [Remote host closed the connection]
falood has joined #ruby
<hema>
hi how to fix the issue
dano21 has joined #ruby
<hema>
in rails4 production images are not uploaded
<ghr>
hema tail your production.log
<ghr>
you might have better luck in #rubyonrails
<Leighton>
hema: if you did not get your rails site error also check stack logs like nginx and stuff
<bgy>
Hi
colonolGron has joined #ruby
dano21 has quit [Remote host closed the connection]
<hema>
<ghr> in tail i fot errorapp/controllers/photos_controller.rb:30:in `create'
Speed has joined #ruby
heftig has quit [Quit: Quitting]
<ghr>
that's where your problem will be then :)
jhaals has joined #ruby
dano21 has joined #ruby
DouweM has joined #ruby
gr33n7007h has joined #ruby
jhaals has quit [Client Quit]
mengu has quit [Remote host closed the connection]
<hema>
<ghr> in development does not have any errors
AndChat| has quit [Ping timeout: 246 seconds]
<ghr>
Doesn't really matter. You do have errors in the place where it matters :) The stack trace will give you an indication of what's wrong, and where in the code it is happening
marr has joined #ruby
timonv has joined #ruby
<shevy>
hema write better code mna!
<shevy>
man!
agent_white has quit [Ping timeout: 272 seconds]
<hema>
<shevy> clarify me i have a josn file and how to call that file from controller json file name is create.json.jbuilder
benlieb has quit [Quit: benlieb]
<shevy>
how should I know - I dont use json
<hema>
kk
lessless has joined #ruby
h_kon has quit [Remote host closed the connection]
matematikaadit has quit [Read error: Connection reset by peer]
danshult_ has quit [Read error: Connection reset by peer]
tobago has joined #ruby
danshultz has joined #ruby
elcontrastador has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hersha has joined #ruby
<hoelzro>
zump: you can probably use String#ord
<hoelzro>
but there might be a better solution ex. unpack
devdazed has quit [Quit: Bye]
matheuscaceres has joined #ruby
tobyo has quit [Read error: Operation timed out]
lsmola has joined #ruby
liamkeil1 has joined #ruby
<_br_>
shevy: Why?
<shevy>
_br_ bugs everywhere, sucking away time everywhere and it's just never as awesome as it were to look on paper
devdazed has joined #ruby
myappleguy has joined #ruby
Aryasam has quit [Ping timeout: 252 seconds]
<_br_>
shevy: Well, maybe you need to change the way you work to e.g. TDD/BDD way
drumusician has joined #ruby
Clooth has quit [Quit: Leaving...]
Aryasam has joined #ruby
sambao21 has joined #ruby
yalue has joined #ruby
carlyle has joined #ruby
dangerousdave has joined #ruby
RaCx has quit [Ping timeout: 240 seconds]
nucatus has joined #ruby
nowthatsamatt has joined #ruby
drumusician has quit [Ping timeout: 272 seconds]
kaspergrubbe has quit [Remote host closed the connection]
pskosinski has joined #ruby
mephux has quit [Ping timeout: 248 seconds]
bradhe has joined #ruby
rjhunter has joined #ruby
kiba has joined #ruby
lyanchih has joined #ruby
heftig has quit [Quit: Quitting]
heftig has joined #ruby
mephux has joined #ruby
BigBlueBacon has joined #ruby
realDAB has joined #ruby
Rickmasta has quit [Quit: Leaving]
user258467 has joined #ruby
zerign has quit [Ping timeout: 272 seconds]
kaspergrubbe has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
thelorax123 has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Ping timeout: 248 seconds]
teoric has joined #ruby
rjhunter has quit [Ping timeout: 272 seconds]
duggiefresh has joined #ruby
thelorax123 has joined #ruby
xcfox has joined #ruby
teoric has quit [Client Quit]
avril14th has joined #ruby
Soda has quit [Remote host closed the connection]
virtualize has quit [Ping timeout: 272 seconds]
p4d4w4n has quit [Quit: This computer has gone to sleep]
momomomomo has joined #ruby
sailias has joined #ruby
capicue has joined #ruby
antonishen has joined #ruby
clevermatt has joined #ruby
reset has joined #ruby
ringaroses has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
allanm has joined #ruby
gtsiftsis has quit [Quit: Leaving]
adkron has joined #ruby
blackmesa has joined #ruby
_maes_ has joined #ruby
ppppaul has quit [Ping timeout: 272 seconds]
capicue has quit [Ping timeout: 272 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
p4d4w4n has joined #ruby
Rickmasta has joined #ruby
jrhe has joined #ruby
krawchyk has quit [Ping timeout: 245 seconds]
reset has quit [Ping timeout: 246 seconds]
hogeo has joined #ruby
kcombs has joined #ruby
psyl0n has joined #ruby
jlast has joined #ruby
habanany has joined #ruby
blueOxigen has quit [Ping timeout: 264 seconds]
nucatus has quit [Remote host closed the connection]
elux has joined #ruby
nucatus has joined #ruby
rjhunter has joined #ruby
sambao21 has joined #ruby
petey has joined #ruby
Mon_Ouie has joined #ruby
dhruvasagar has joined #ruby
bean__ has joined #ruby
EugenA has joined #ruby
tobyo has joined #ruby
jkamenik has quit [Quit: Leaving.]
zkc has joined #ruby
jrhe has quit [Ping timeout: 245 seconds]
nucatus has quit [Ping timeout: 264 seconds]
iamjarvo has joined #ruby
hp_ has joined #ruby
<EugenA>
anybody familiar with capistrano? http://pastebin.com/cREYLYan How can I create another task to deploy on the other server defined in :web, completly different one?
hp_ has quit [Remote host closed the connection]
ce_afk is now known as cescalante
tobago has quit [Ping timeout: 272 seconds]
TMM has quit [Ping timeout: 245 seconds]
Kricir has joined #ruby
freerobby has joined #ruby
JohnBat26 has quit [Ping timeout: 245 seconds]
burlyscudd has joined #ruby
tharindu has joined #ruby
blandflakes has joined #ruby
carlyle_ has joined #ruby
tobago has joined #ruby
banghouse2 has joined #ruby
Astral__ has joined #ruby
ahawkins has joined #ruby
carlyle has quit [Read error: Connection reset by peer]
iamjarvo has quit [Remote host closed the connection]
shaunbaker has quit [Remote host closed the connection]
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
danshultz has quit [Ping timeout: 246 seconds]
freerobby has quit [Quit: Leaving.]
danshult_ has quit [Ping timeout: 245 seconds]
cody-- has joined #ruby
freerobby has joined #ruby
barratt has joined #ruby
h_kon has quit [Remote host closed the connection]
drag00n has joined #ruby
Xeago has quit [Ping timeout: 272 seconds]
h_kon has joined #ruby
chuk has joined #ruby
mklappst_ has quit [Remote host closed the connection]
<shevy>
die
<shevy>
I mean hi
<et__>
:)
jrhe has joined #ruby
momomomomo has quit [Quit: momomomomo]
hogeo has quit [Remote host closed the connection]
iamjarvo has joined #ruby
h_kon has quit [Ping timeout: 248 seconds]
Aryasam has quit [Quit: Bye]
hogeo has joined #ruby
aryaching has joined #ruby
tharindu has quit [Quit: Leaving...]
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
mklappstuhl has joined #ruby
liamkeil1 has quit [Quit: WeeChat 0.4.1]
mikepack has joined #ruby
ananthakumaran has quit [Ping timeout: 272 seconds]
liamkeily has joined #ruby
rippa has joined #ruby
varfoo has quit [Quit: WeeChat 0.4.0]
bradhe has joined #ruby
ravster has quit [Remote host closed the connection]
cgore has joined #ruby
mojjojo has joined #ruby
sandeepk has joined #ruby
intuxicated has joined #ruby
bradhe has quit [Ping timeout: 246 seconds]
jprovazn has quit [Quit: Leaving]
weems has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
axl_ has joined #ruby
shaunbaker has joined #ruby
<tobago>
since when is such possible: " define_method(Kaminari.config.page_method_name) do |num = nil|; ...." i mean the assignement in the block parameter
mmitchell has joined #ruby
<hoelzro>
1.9, I think?
<hoelzro>
maybe 2.0
<tobago>
but not sure? I only know that this is a syntax error in ruby 1.8.7 isn't it?
jibi has quit [Quit: .]
mojjojo has quit [Client Quit]
mojjojo has joined #ruby
<hoelzro>
probably
dhruvasagar has quit [Ping timeout: 272 seconds]
TMM has joined #ruby
ahawkins has quit [Quit: leaving]
<tobago>
hoelzro, where can I search for it (i don't know how to search for it/ how is this appraoch named?)?
<tobago>
approach
et__ has quit [Quit: Leaving.]
tagrudev has left #ruby ["lolst"]
<hoelzro>
maybe block default arguments?
<cgore>
This works in 1.9.3: [1,2,3,4,5].map {|x, y=12| x+y}
<cgore>
So probably 1.9
Kricir has quit [Ping timeout: 246 seconds]
shaunbaker has quit [Remote host closed the connection]
shaunbaker has joined #ruby
Czupa has joined #ruby
Lewix has joined #ruby
Lewis has joined #ruby
R33C3 has joined #ruby
R33C3 has quit [Remote host closed the connection]
jamesaanderson has joined #ruby
rfizzle has joined #ruby
xk_id has quit [Quit:
zeeraw has joined #ruby
freerobby has quit [Quit: Leaving.]
xtristan has joined #ruby
shaunbaker has quit [Ping timeout: 245 seconds]
wmoxam_ has joined #ruby
tesuji has quit [Ping timeout: 248 seconds]
jamesaanderson has quit [Client Quit]
zipper has quit [Ping timeout: 252 seconds]
Kneferilis has quit [Ping timeout: 264 seconds]
realDAB has quit [Quit: realDAB]
capicue has joined #ruby
zipper has joined #ruby
hiyosi has quit [Ping timeout: 246 seconds]
wmoxam has quit [Ping timeout: 252 seconds]
jrhe has quit [Ping timeout: 240 seconds]
casheew has quit [Read error: Connection reset by peer]
solidoodlesuppor has joined #ruby
wmoxam has joined #ruby
realDAB has joined #ruby
b00stfr3ak has joined #ruby
casheew has joined #ruby
nari_ has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby
reset has joined #ruby
casheew has quit [Read error: Connection reset by peer]
R33C3 has joined #ruby
et__ has joined #ruby
habanany has quit [Ping timeout: 245 seconds]
mklappstuhl has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
habanany has joined #ruby
_maes_ has joined #ruby
capicue has quit [Ping timeout: 272 seconds]
orionstein is now known as orionstein_away
yfeldblum has joined #ruby
vpretzel has quit [Remote host closed the connection]
reset has quit [Ping timeout: 246 seconds]
et__ has quit [Client Quit]
vpretzel has joined #ruby
fijimunkii has joined #ruby
R33C3 has quit []
stonevil has joined #ruby
shaunbaker has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
stonevil has quit [Remote host closed the connection]
stonevil has joined #ruby
tobyo has joined #ruby
zipper has quit [Ping timeout: 246 seconds]
nucatus has joined #ruby
p4d4w4n has quit [Quit: This computer has gone to sleep]
shaunbak_ has joined #ruby
xcfox has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
benwoody has joined #ruby
evenix has joined #ruby
casheew has joined #ruby
zipper has joined #ruby
p4d4w4n has joined #ruby
leonardoro has quit [Ping timeout: 252 seconds]
zoee has quit [Quit: Leaving]
freerobby has joined #ruby
<shevy>
tobago definitely works in 1.9.x I think
shaunbaker has quit [Ping timeout: 240 seconds]
<shevy>
one of the cool additions
<shevy>
there were also crap additions
hogeo has quit [Remote host closed the connection]
zcreative has joined #ruby
johnnyfuchs has joined #ruby
nucatus has quit [Ping timeout: 248 seconds]
fntzr has joined #ruby
Kricir has joined #ruby
mengu has quit []
Lewis has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
m8 has joined #ruby
monkegjinni has quit [Remote host closed the connection]
graydot has joined #ruby
graydot has quit [Client Quit]
Clooth has joined #ruby
andikr has joined #ruby
jragon has joined #ruby
CaptainJet has joined #ruby
banghouse2 has joined #ruby
Kricir has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby
tobyo has quit [Ping timeout: 240 seconds]
maletor has joined #ruby
carlyle has joined #ruby
habanany has quit [Ping timeout: 245 seconds]
axl_ has quit [Quit: axl_]
BizarreCake has joined #ruby
soukihei has joined #ruby
zipper has quit [Ping timeout: 246 seconds]
habanany has joined #ruby
tharindu has joined #ruby
acrussell has joined #ruby
bubbajones has joined #ruby
jrhe has joined #ruby
ewnd9 has quit [Ping timeout: 248 seconds]
sheeny has joined #ruby
sheeny has quit [Client Quit]
iamjarvo has quit []
ldnunes has joined #ruby
iamjarvo has joined #ruby
browndawg has quit [Quit: Leaving.]
jbpros has quit [Quit: jbpros]
hiyosi has joined #ruby
robbyoconnor has joined #ruby
hashpuppy has joined #ruby
sheeny has joined #ruby
DarthGandalf has quit [Ping timeout: 252 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
<sheeny>
workmad3: then I blame the people giving me the price
<sheeny>
workmad3: haha
jragon has quit [Changing host]
jragon has joined #ruby
<havenwood>
oops, didn't mean to *3 there, same difference though
<workmad3>
sheeny: yeah :)
<sheeny>
workmad3: ta
kaspergrubbe has quit [Ping timeout: 272 seconds]
shredding has joined #ruby
<workmad3>
sheeny: they're selling sub-penny items (and probably rounding at some point)
<workmad3>
sheeny: they could also be applying a bulk-item discount
<shevy>
I vote for the abolition of pence
<workmad3>
sheeny: 3 for 23.99 or something :)
<sheeny>
workmad3: they do all sorts of weird stuff here haha
wmoxam_ has quit [Quit: leaving]
jamblack has quit [Ping timeout: 252 seconds]
ghr has quit [Quit: Computer has gone to sleep.]
<workmad3>
sheeny: still... it sounds like you need sub-pence calculations in your intermediate steps and only round at the end (this is commonly the case I believe)
<sheeny>
workmad3: I believe thats what im trying to do
<lupine>
as long as you pick one or the other, the inland revenue doesn't mind
<lupine>
HMRC*
<lupine>
.us might be different, on reflection
gr33n7007h has joined #ruby
mklappstuhl has quit [Ping timeout: 240 seconds]
<sheeny>
workmad3: thanks, gives me an idea on where to look anyway.. :)
mklappstuhl has joined #ruby
rbennacer has joined #ruby
xcess_denied has quit [Read error: Connection reset by peer]
<eval-in>
rbennacer => /tmp/execpad-4a29ff954efc/source-4a29ff954efc:2: warning: wrong element type String at 0 (expected array) ... (https://eval.in/73206)
<havenwood>
There, had my coffee. Like i don't even have to drink any, just taste it and my brain starts working.
jamblack has joined #ruby
avril14th has quit [Remote host closed the connection]
inad922 has joined #ruby
banzounet has quit [Quit: Lost terminal]
iajrz_ has joined #ruby
hogeo has joined #ruby
jrhe has quit [Ping timeout: 245 seconds]
reset has quit [Ping timeout: 245 seconds]
tharindu_ has joined #ruby
<ambushsabre>
hey, does anyone have any idea why sinatra / ruby would throw "TypeError: no implicit conversion of Array into String" on this line, even though the update runs perfectly (this is the mongodb driver)
freezey has quit [Remote host closed the connection]
cameronbarton has joined #ruby
cameronbarton has left #ruby [#ruby]
tharindu has quit [Ping timeout: 272 seconds]
cameronbarton has joined #ruby
schaary has quit [Quit: I sleep ZZZzzz…]
Solnse has joined #ruby
hogeo has quit [Ping timeout: 272 seconds]
benzrf has joined #ruby
<benzrf>
hello
<benzrf>
i just looked at padrino
drag00n has quit [Ping timeout: 272 seconds]
jrhe has joined #ruby
jeffdb has joined #ruby
<benzrf>
the project generator creates a huge dir tree
<benzrf>
is it possible to make a 1-file app in it?
jamblack has quit [Ping timeout: 246 seconds]
<benzrf>
does hello world require all these config files?
benwoody has joined #ruby
<benzrf>
i like flask because the only dirs it uses by name by default are 'templates' and 'static', which you don't even need to make
<benzrf>
is all this cruft required to use padrino?
TMM has quit [Quit: Ex-Chat]
jamblack has joined #ruby
duggiefresh has quit [Remote host closed the connection]
johnnyfuchs has left #ruby [#ruby]
tharindu_ has quit [Ping timeout: 264 seconds]
freezey has joined #ruby
capicue has joined #ruby
<dorei>
Should I give "guard" some time to learn it when I can run my testsuite in an endless bash loop ?
lsmola has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
<Morrolan>
benzrf: Padrino is built on top of Sinatra. If you want to start with a minimalistic example, look at Sinatra first.
iliketur_ has joined #ruby
ezra has quit [Ping timeout: 245 seconds]
michele has joined #ruby
<michele>
hi
<michele>
how do I extract an element from a Set ?
Kricir has joined #ruby
ananthakumaran has quit [Ping timeout: 246 seconds]
jrhe has quit [Ping timeout: 246 seconds]
<michele>
I can't use delete because it removes the element from the set
jkhwan has joined #ruby
Voodoofish430 has joined #ruby
<Morrolan>
How would you want to extract it? Sets aren't ordered, and don't have any key->value associations either. Do you just want to check whether it's include in the set?
ezra has joined #ruby
freerobby has quit [Quit: Leaving.]
RaCx has joined #ruby
ezra is now known as Guest1131
freerobby has joined #ruby
Snaury has quit [Quit: Leaving.]
et__ has quit [Quit: Leaving.]
Astralum has quit [Read error: Connection reset by peer]
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
Snaury has joined #ruby
Astralum has joined #ruby
clevermatt has joined #ruby
et__ has joined #ruby
dagobah has quit [Remote host closed the connection]
zeeraw has joined #ruby
mary5030 has quit [Remote host closed the connection]
IceDragon has joined #ruby
bigoldrock has joined #ruby
mary5030 has joined #ruby
freerobby has quit [Read error: Operation timed out]
zkc has quit [Quit: Leaving]
sambao21 has quit [Quit: Computer has gone to sleep.]
CaptainJet has quit []
freerobby has joined #ruby
elcontrastador has joined #ruby
CaptainJet has joined #ruby
sandeepk has quit [Read error: Connection reset by peer]
sandeepk has joined #ruby
tsykoduk is now known as zz_tsykoduk
sambao21 has joined #ruby
b00stfr3ak has quit [Ping timeout: 245 seconds]
paul_k has joined #ruby
mary5030 has quit [Ping timeout: 245 seconds]
<benzrf>
Morrolan: sinatra looks a little *too* minimal for me
<benzrf>
i'd like some builtin templating tbh
<ambushsabre>
sinatra is the best
<benzrf>
does sinatra have builtin static routing?
<ambushsabre>
you can use erb right out of the box with it
<benzrf>
oh hm
IceDragon has quit [Read error: Operation timed out]
<ambushsabre>
yeah I think so
<benzrf>
haml looks interesting
<benzrf>
ok maybe ill just use sinatra
<benzrf>
:]
IceDragon has joined #ruby
<ambushsabre>
if you really need something complex just go for rails, there's huge amounts of support for it so you'll never really get stuck
<benzrf>
ew
<benzrf>
I dont like megastuff
<ambushsabre>
personally I like sinatra though
aley has joined #ruby
<benzrf>
i dont mind things that can scale up, but if a hello world project requires more than 1 file im out
hiyosi has joined #ruby
<michele>
Morrolan: found it. converted to an array with to_a and then accessed by []
roolo has quit [Remote host closed the connection]
coderhs has quit [Ping timeout: 272 seconds]
<benzrf>
basically i want something where the complexity of the project matches the complexity of the files & code & so on
<benzrf>
where you can learn exactly as much as you need
<benzrf>
if i don't want blueprints in flask, ignore emdub
<benzrf>
*em
schaary has joined #ruby
<benzrf>
you don't need to know about the request object if youre not using it
<benzrf>
it doesn't force me to configure blueprints to make a project that doesnt need them
robbyoconnor has quit [Quit: Konversation terminated!]
<benzrf>
basically if the framework comes with a nearly mandatory project gnerator, it's too much for me
olivier_bK has quit [Quit: Quitte]
kevind_ has joined #ruby
virtualize has quit [Read error: Connection reset by peer]
yacks has joined #ruby
f0ster has joined #ruby
et__ has quit [Quit: Leaving.]
RichardBaker has quit [Quit: RichardBaker]
ambushsabre has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michele has left #ruby ["Leaving..."]
maletor has joined #ruby
benwoody has quit [Quit: benwoody]
et__ has joined #ruby
yacks has quit [Max SendQ exceeded]
jbpros has joined #ruby
yacks has joined #ruby
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
hiyosi has quit [Ping timeout: 245 seconds]
kevind has quit [Ping timeout: 272 seconds]
kevind_ is now known as kevind
bradhe has joined #ruby
shanlar has quit [Quit: Be back later]
aganov has quit [Remote host closed the connection]
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Tuxist has joined #ruby
zz_tsykoduk is now known as tsykoduk
yjmsf20 has quit [Quit: leaving]
RaCx has quit [Quit: Computer has gone to sleep.]
RichardBaker has joined #ruby
alup has quit [Quit: Leaving]
awestroke has joined #ruby
et__ has quit [Client Quit]
rjhunter has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
<benzrf>
does ruby generate any junk files like python?
<benzrf>
i.e. .pyc/__pycache__
b00stfr3ak has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<Morrolan>
Depends on the implementation.
<havenwood>
benzrf: Padrino is a framework on top of Sinatra, if you're looking for Sinatra+.
<benzrf>
havenwood: i looked at sinatra again & it looks like what i want after all
<benzrf>
=]
timonv has quit [Remote host closed the connection]
<havenwood>
benzrf: Other options for lightweight Rack DSLs are Scortched or Camping, but Sinatra is most popular.
<benzrf>
what does *.gem do?
<Morrolan>
Packaged library / application.
zeeraw has joined #ruby
jeffdb has quit [Quit: jeffdb]
iajrz_ has quit [Remote host closed the connection]
<benzrf>
should i .gitignore it?
elcontrastador has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood>
benzrf: When you `gem build example.gemspec` a gem is built called `example-0.0.0-gem`.
<Morrolan>
Like Python's eggs, I believe.
macmartine has quit []
<benzrf>
[im trying to write a simple first web app in ruby]
<benzrf>
ah, ok
<havenwood>
benzrf: yes, ignore
<benzrf>
im going to be using heroku for hosting; it recommends using bundler, what will i want to gitignore?
<havenwood>
benzrf: *.gem in .gitignore is pretty standard
rjhunter has quit [Ping timeout: 246 seconds]
<Morrolan>
For an application, nothing bundler-specific.
jkhwan has quit [Remote host closed the connection]
elcontrastador has joined #ruby
borrach has joined #ruby
jkhwan has joined #ruby
<borrach>
Hi, I'm trying to print multiple lines from an IO object using gets. The docs say changing the separator parameter to nil will read the entire contents but I get errors when doing this. Does anyone know how to do this correctly?
PPH has quit [Ping timeout: 246 seconds]
<rfizzle>
Anyone know how to pull the final data after RestClient converts a hash into a Multipart before it posts so I can run HMAC on it?
paul_k has joined #ruby
capicue has quit [Quit: Leaving...]
iamjarvo has quit [Ping timeout: 245 seconds]
benzrf has quit [Read error: Connection reset by peer]
phansch has quit [Quit: Leaving]
jkhwan has quit [Read error: Connection reset by peer]
iliketur_ has quit [Ping timeout: 245 seconds]
jkhwan_ has joined #ruby
capicue has joined #ruby
snkcld has joined #ruby
<AntelopeSalad>
workmad3: my application.js has no reference to jquery now but it's still being included, hmm?
larissa has quit [Quit: Leaving]
Guest1131 has quit [Read error: Connection reset by peer]
Clooth has quit [Quit: Leaving...]
et__ has joined #ruby
cads has quit [Ping timeout: 246 seconds]
Kricir has quit [Ping timeout: 265 seconds]
benwoody has joined #ruby
phansch has joined #ruby
einarj has quit [Remote host closed the connection]
jibi has joined #ruby
stonevil has quit [Remote host closed the connection]
pskosinski has quit [Quit: Til rivido Idisti!]
stonevil has joined #ruby
sandeepk has quit [Ping timeout: 272 seconds]
v0n has quit [Quit: WeeChat 0.4.2]
_JamieD_ has joined #ruby
v0n has joined #ruby
<shevy>
borrach can you be more specific? what is the precise error you get, and do you have code for others to reproduce the problem in the smallest way?
bradhe has quit [Remote host closed the connection]
EugenA has quit [Quit: Konversation terminated!]
smathieu has joined #ruby
ephemerian has quit [Quit: Leaving.]
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
tobyo has joined #ruby
ambushsabre has joined #ruby
stonevil has quit [Ping timeout: 246 seconds]
noop has joined #ruby
endash_ has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nvrch has quit [Quit: nvrch]
<havenwood>
shevy: g'morn
<shevy>
hey
<shevy>
it's evening here!
<havenwood>
well, i do declare! it is morning here!
mojjojo has quit [Quit: mojjojo]
<havenwood>
this globe we live on....
jbpros has quit [Quit: jbpros]
<shevy>
do you guys love or hate UPCASED directory names?
<brandonblack>
ambushsabre: are you using the mongo gem or something different (Moped/Mongoid)?
bean__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lessless has quit [Remote host closed the connection]
<havenwood>
shevy: HATE
<ambushsabre>
the mongo gem
<shevy>
hmm
intuxicated has quit [Read error: Connection reset by peer]
<shevy>
linux has stuff like /home ... mac osx has /Users right? so I am confused...
jacobsmith has quit [Ping timeout: 264 seconds]
et__ has quit [Quit: Leaving.]
<shevy>
havenwood I just tried to cd to my sinatra dir
<brandonblack>
ambushsabre: Hmm. I actually don't think that error is from our gem. Can you shoot me a gist with a full example of what's going on around that line of code?
et__ has joined #ruby
<shevy>
so I went to my collection of ruby things, in one dir... typed "cd sinatra"... it did not work... because the dir is called SINATRA, which prompted me to ask that question just now...
<brandonblack>
also, what happens if you don't interpolate params[:name] (ex. { "name" => params[:name] })?
troessner has quit [Quit: Leaving]
<ambushsabre>
yeah, I can do that. btw I made a slight update to the intro tutorial the other day to answer some questions I had and I saw other people had with the gem, did you catch that?
phansch has quit [Remote host closed the connection]
mklappstuhl has quit [Read error: Connection reset by peer]
timonv has joined #ruby
<brandonblack>
ambushsabre: I don't think I saw it, but perhaps one of my team mates did.
reset has joined #ruby
<ambushsabre>
well I didn't make a pull request because you cant' for the wiki, and you have issues turned off, and your github email was bouncing
ukd1 has joined #ruby
<ambushsabre>
hold on
tylersmith has joined #ruby
<brandonblack>
ambushsabre: we use jira.mongodb.org for everything. we don't use gh issues.
<brandonblack>
you can report it there
JuncoJet_ has joined #ruby
JuncoJet has quit [Read error: Connection reset by peer]
<brandonblack>
ambushsabre: feel free to send me that as well though with you gist
jeffdb has joined #ruby
<ambushsabre>
yeah will do, will you be around in about a half hour
tylersmith has quit [Remote host closed the connection]
<brandonblack>
ambushsabre: yeah, no rush. just saw your q and wanted to help. hit me up when you're ready
lukec has quit [Quit: lukec]
bean__ has joined #ruby
duggiefresh has joined #ruby
barratt has quit [Ping timeout: 264 seconds]
<ambushsabre>
thanks, I just need to eat lunch hah, I wanted to take a break anyways since it was frustrating
<ambushsabre>
I'll /msg you in a bit
burlyscudd has joined #ruby
bradhe has joined #ruby
<brandonblack>
sounds good
burlyscudd1 has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby
Dwarf_ has joined #ruby
hogeo has joined #ruby
saarinen has joined #ruby
shredding has quit [Quit: shredding]
iliketur_ has joined #ruby
et__ has quit [Quit: Leaving.]
reset has quit [Ping timeout: 272 seconds]
RaCx has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
obs has quit [Remote host closed the connection]
cameronbarton has quit [Quit: cameronbarton]
browndawg has left #ruby [#ruby]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
freerobby has quit [Quit: Leaving.]
iliketur_ has quit [Client Quit]
borrach has quit [Ping timeout: 272 seconds]
hogeo has quit [Ping timeout: 245 seconds]
<shevy>
there it goes... SINATRA/ is now sinatra/ ... wheee
<TorpedoSkyline>
hey guys, I'm using Roo to convert Excel files to CSV files (Roo::Excelx.new("/file/name").to_csv) and it takes a good second or two on big files. Is this going to be blocking other requests made to the API during those seconds, and if so, how do I get around that?
smathieu has quit [Remote host closed the connection]
<shevy>
dunno... perhaps you can work via Threads
<TorpedoSkyline>
shevy threads or fibers?
enebo has joined #ruby
Nenor has left #ruby [#ruby]
Kricir has joined #ruby
<shevy>
no idea about fibers, have not yet been able to use them successfully :-)
DanBoy has quit [Remote host closed the connection]
blackmesa has quit [Write error: Broken pipe]
<TorpedoSkyline>
and even then, will the program continue execution and respond before the conversion is ready shevy?
freezey has quit [Remote host closed the connection]
realDAB has joined #ruby
<shevy>
I would think so, you would just delegate the tasks to separate threads, and let them continue their work, via #join
araujo_ has joined #ruby
<Morrolan>
Is IO, or CPU, your limit?
<shevy>
the only thing I did with threads was downloading webpages, and background-jobbing in a ruby-shell
araujo has quit [Read error: Connection reset by peer]
<TorpedoSkyline>
Morrolan I'm not sure, but my guess is CPU on a production server.
zeropx has joined #ruby
<TorpedoSkyline>
yeah, CPU
vpretzel has quit [Ping timeout: 252 seconds]
blackmesa has joined #ruby
endash_ has quit [Quit: endash_]
shaunbak_ has quit [Remote host closed the connection]
<inad922>
Is there a way to use Caoybara with a certificate on an https connection?
carlyle has joined #ruby
shaunbaker has joined #ruby
iamjarvo has joined #ruby
<TorpedoSkyline>
ok thanks guys, I'll see what I can do with threads.
<Morrolan>
TorpedoSkyline: There's various gems which allow to background work-intensive jobs. One of them might be a good fit.
<Morrolan>
I have, however, not had the chance to use any of those, so far.
<TorpedoSkyline>
Morrolan any names off the top of your head? if not, I'll just use the almighty google ;P
<Morrolan>
Google's probably the best way to go in this case. :)
<Morrolan>
Or the Ruby toolbox.
freezey has joined #ruby
<terrellt>
TorpedoSkyline: So threading is only non-blocking (except if it's IO-based) on JRuby. If you want a worker, check out Sidekiq or Resque.
Kricir has quit [Ping timeout: 272 seconds]
evenix has quit []
<inad922>
Is there a way to use a certificate with a connection over https with capybara?
maletor has quit [Quit: Computer has gone to sleep.]
<TorpedoSkyline>
terrellt ah ok, awesome. Thanks for the heads up and I'll check into these
<jrobeson>
that's the explanation right there.. no need for me to reparrot avdi
<apeiros>
stringoO: `test = true and false` is `(test = true) and false`
<apeiros>
precendence. if you don't understand it, use parens :-p
<stringoO>
apeiros: that makes sense. Thank you! :)
<stringoO>
thanks jrobeson and apeiros
<jrobeson>
stringoO, avdi shows good uses for actual and
psyl0n has joined #ruby
rickruby has quit [Remote host closed the connection]
benwoody has quit [Quit: benwoody]
smathieu has quit [Remote host closed the connection]
zaycheno1 has quit [Remote host closed the connection]
<jrobeson>
i personally don't use them much .. since most people get confused
<stringoO>
yeah, I was totally confused
nobitanobi has quit [Read error: Connection reset by peer]
<stringoO>
i didn't realize that the = took precedence over the and
smathieu has joined #ruby
funburn has joined #ruby
<jrobeson>
principle of least surprise.. is still surprising sometimes..
mando_ has joined #ruby
michael_mbp is now known as zz_michael_mbp
zz_michael_mbp is now known as michael_mbp
pskosinski has joined #ruby
Astral_ has joined #ruby
Clooth has quit [Quit: Leaving...]
smathieu has quit [Ping timeout: 245 seconds]
tobyo has quit [Ping timeout: 252 seconds]
RichardBaker has joined #ruby
jhaals has joined #ruby
Astralum has quit [Ping timeout: 245 seconds]
rjhunter has joined #ruby
mando has quit [Ping timeout: 272 seconds]
tapo_er_mayur has joined #ruby
habanany has quit [Quit: Bye]
rjhunter has quit [Read error: Connection reset by peer]
dallasm_ has quit [Remote host closed the connection]
mando_ has quit [Ping timeout: 272 seconds]
rjhunter has joined #ruby
tobyo has joined #ruby
jhaals has quit [Client Quit]
michael_mbp is now known as zz_michael_mbp
zz_michael_mbp is now known as michael_mbp
zaychenok has joined #ruby
jhaals has joined #ruby
end_guy has joined #ruby
rjhunter has quit [Ping timeout: 264 seconds]
wedgeV has quit [Quit: wedgeV]
cads has joined #ruby
rismoney has joined #ruby
michael_mbp is now known as zz_michael_mbp
zz_michael_mbp is now known as michael_mbp
havenwood has joined #ruby
reset has quit [Quit: Leaving...]
Fire-Dragon-DoL has joined #ruby
iamjarvo_ has quit [Remote host closed the connection]
mityaz has joined #ruby
iamjarvo has joined #ruby
elux has quit [Quit: Leaving...]
Clooth has joined #ruby
nucatus_ has quit [Remote host closed the connection]
nucatus has joined #ruby
<cout>
when I use String#inspect, the string that is returned has sequences that look like this: "\xACLE"
<rismoney>
i have an array of hashes. is there a way i can return all hashes with a particular keyname, say in this case A... example: [{"A"=>"alpha", "B"=>"beta"},{"A"=>"letterA", "G"=>"gamma"}] How can I have it return ['alpha','letterA']
michael_mbp is now known as zz_michael_mbp
bradhe has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zz_michael_mbp is now known as michael_mbp
<cout>
but I can't copy-and-paste that string into a C++ program, because \xACLE is too wide a character sequence. is there an easy way to get ruby to format my inspected strings in octal instead of hex? (e.g. "\nnn" instead of "\xnn"
buscon_ has joined #ruby
ambushsabre has joined #ruby
nucatus_ has joined #ruby
Jetchisel has joined #ruby
nucatus has quit [Remote host closed the connection]
m__s_ has quit [Remote host closed the connection]
<rismoney>
i think i got it. .map {|item| item['A']}
pixelgremlins has quit [Ping timeout: 240 seconds]
reset has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
bigoldrock has quit [Ping timeout: 264 seconds]
smathieu has joined #ruby
Es0teric has joined #ruby
mityaz has quit [Read error: Connection reset by peer]
mityaz has joined #ruby
mark_locklear has quit [Ping timeout: 241 seconds]
yfeldblu_ has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hogeo has joined #ruby
realDAB has joined #ruby
wedgeV has joined #ruby
mityaz has quit [Read error: Connection reset by peer]
mityaz has joined #ruby
XenoWolf_ is now known as XenoWolf
endash_ has joined #ruby
XenoWolf has left #ruby [#ruby]
skaflem has quit [Quit: Leaving]
Kricir has quit [Remote host closed the connection]
hogeo has quit [Ping timeout: 245 seconds]
ce_afk is now known as cescalante
buscon_ has quit [Remote host closed the connection]
moneydouble has joined #ruby
dtcrshr has quit [Ping timeout: 245 seconds]
ambushsabre has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michael_mbp is now known as zz_michael_mbp
benwoody has joined #ruby
zz_michael_mbp is now known as michael_mbp
Kricir has joined #ruby
larissa has joined #ruby
funburn has quit [Quit: funburn]
marr has joined #ruby
mityaz has quit [Read error: Connection reset by peer]
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
mityaz has joined #ruby
mando has joined #ruby
ssvo has quit [Ping timeout: 246 seconds]
zz_jrhorn424 is now known as jrhorn424
Virtualize|work has joined #ruby
virtualize has quit [Read error: Connection reset by peer]
michael_mbp is now known as zz_michael_mbp
s2013 has quit [Ping timeout: 246 seconds]
s2013_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ssvo has joined #ruby
zz_michael_mbp is now known as michael_mbp
Elhu has joined #ruby
wedgeV has quit [Quit: wedgeV]
fuhgeddaboudit has joined #ruby
acoyfellow has joined #ruby
dtcrshr has joined #ruby
dtcrshr has quit [Changing host]
dtcrshr has joined #ruby
smathieu has quit [Ping timeout: 245 seconds]
acrussell has joined #ruby
smathieu has joined #ruby
acrussell has left #ruby [#ruby]
aley has quit [Quit: aley]
Advocation has joined #ruby
mityaz has quit [Read error: No route to host]
RaCx has joined #ruby
krawchyk has quit []
mityaz has joined #ruby
matheuscaceres has joined #ruby
wedgeV has joined #ruby
asteros has joined #ruby
jhaals has joined #ruby
dallasm_ has joined #ruby
burlyscudd has quit [Ping timeout: 272 seconds]
capicue has quit [Quit: Leaving...]
iamjarvo has quit [Remote host closed the connection]
iamjarvo has joined #ruby
jamesaanderson has joined #ruby
mansi has quit [Read error: Connection reset by peer]
jkhwan_ has quit [Remote host closed the connection]
jkhwan has joined #ruby
athst has quit [Quit: athst]
mansi has joined #ruby
mansi has quit [Read error: Connection reset by peer]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mansi has joined #ruby
cody-- has quit [Quit: derp]
asteros has quit [Ping timeout: 265 seconds]
mityaz has quit [Ping timeout: 265 seconds]
aspires has joined #ruby
phinfonet has joined #ruby
kevind has quit [Quit: kevind]
tommyvyo has quit [Read error: Connection reset by peer]
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
iamjarvo has quit [Ping timeout: 272 seconds]
kevind has joined #ruby
rickruby has joined #ruby
Kricir has quit [Remote host closed the connection]
jkhwan has quit [Ping timeout: 272 seconds]
aley has joined #ruby
tommyvyo has joined #ruby
s2013_ is now known as s2013
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RaCx has quit [Quit: Computer has gone to sleep.]
dallasm_ has quit [Remote host closed the connection]
smathieu has quit [Ping timeout: 246 seconds]
Kricir has joined #ruby
dorei has quit [Read error: Connection reset by peer]
michael_mbp is now known as zz_michael_mbp
zz_michael_mbp is now known as michael_mbp
lethjakm1 is now known as lethjakman
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
athst has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
Monie has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
pskosinski has quit [Read error: Operation timed out]
yfeldblum has joined #ruby
fijimunkii has quit [Ping timeout: 245 seconds]
barratt has joined #ruby
maletor has joined #ruby
Jabberwock1 has joined #ruby
<Jabberwock1>
Hello.
rocknrollmarc has joined #ruby
blaskovicz has quit [Ping timeout: 245 seconds]
<Jabberwock1>
How can I make this more efficient? I don't like the idea of calling open twice:
<Jabberwock1>
if File.open(f).grep(/pass(wd|word)/i)
<Jabberwock1>
File.open(f).each do |line|
blaskovicz has joined #ruby
kirun has quit [Quit: Client exiting]
jkhwan has joined #ruby
RaCx has joined #ruby
asteros has joined #ruby
mojjojo has joined #ruby
smathieu has joined #ruby
aspires has quit []
rjhunter has joined #ruby
jamesaanderson has joined #ruby
havenwood has quit [Remote host closed the connection]
<onewheelskyward>
Pull it into a string and do your comparison on that. Then iterate upon it.
bret has joined #ruby
<realDAB>
Jabberwock1: maybe File.open(f) do |fh| if fh.grep(/.../); fh.rewind; fh.each ....
<Jabberwock1>
Thank you both. :)
Advocation has quit [Quit: Advocation]
sergicles has quit [Quit: sergicles]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fijimunkii has joined #ruby
clevermatt has quit [Remote host closed the connection]
tommyvyo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<rocknrollmarc>
?
realDAB has quit [Quit: realDAB]
jkhwan has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 272 seconds]
jkhwan has joined #ruby
rjhunter has quit [Ping timeout: 272 seconds]
Virtualize|work has quit [Quit: Leaving...]
aryaching has quit [Ping timeout: 245 seconds]
Tuxist has quit [Remote host closed the connection]
bradhe has joined #ruby
duncan_bayne has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
failshell has joined #ruby
virtualize has joined #ruby
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
michael_mbp is now known as zz_michael_mbp
bigoldrock has joined #ruby
zz_michael_mbp is now known as michael_mbp
aspires has joined #ruby
Mars` has joined #ruby
tapo_er_mayur has quit [Quit: Lost terminal]
jkhwan has quit [Ping timeout: 272 seconds]
mercwithamouth has joined #ruby
capicue has joined #ruby
havenwood has joined #ruby
xk_id has quit [Quit:
wedgeV has quit [Quit: wedgeV]
zoo-zed has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
mark06 has joined #ruby
mark06 has left #ruby [#ruby]
mojjojo has quit [Quit: mojjojo]
michael_mbp is now known as zz_michael_mbp
ravster has joined #ruby
zz_michael_mbp is now known as michael_mbp
wedgeV has joined #ruby
jkhwan has joined #ruby
hogeo has joined #ruby
iamjarvo has joined #ruby
smathieu has quit [Remote host closed the connection]
charliesome has joined #ruby
smathieu has joined #ruby
mojjojo has joined #ruby
Elhu has joined #ruby
iliketur_ has joined #ruby
capicue has quit [Ping timeout: 246 seconds]
michael_mbp is now known as zz_michael_mbp
zz_michael_mbp is now known as michael_mbp
p0wn3d has quit [Quit: ChatZilla 0.9.90.1 [Firefox 17.0.8/20130811004308]]
hogeo has quit [Ping timeout: 245 seconds]
allsystemsarego has quit [Quit: Leaving]
harrymoreno has joined #ruby
smathieu has quit [Ping timeout: 246 seconds]
awestroke has quit [Remote host closed the connection]
burlyscudd has joined #ruby
Kricir has quit [Remote host closed the connection]
jonahR has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
fijimunkii has quit [Ping timeout: 248 seconds]
tvw has joined #ruby
Voodoofish4301 has joined #ruby
mityaz has joined #ruby
smathieu has joined #ruby
jacobsmith has joined #ruby
ValicekB has quit [Ping timeout: 240 seconds]
<rocknrollmarc>
quit
rocknrollmarc has quit [Quit: rocknrollmarc]
tannerburson has quit [Quit: tannerburson]
mansi has quit [Remote host closed the connection]
ambushsabre has joined #ruby
xk_id has joined #ruby
Voodoofish430 has quit [Ping timeout: 248 seconds]
rocknrollmarc has joined #ruby
jkhwan has quit [Remote host closed the connection]
kaldrenon has quit [Remote host closed the connection]
adambeynon has joined #ruby
jkhwan has joined #ruby
rocknrollmarc has quit [Client Quit]
jkhwan has quit [Read error: Connection reset by peer]
jkhwan has joined #ruby
banister has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
Elhu has quit [Quit: Computer has gone to sleep.]
sergicles has joined #ruby
mansi has joined #ruby
mityaz has quit [Ping timeout: 252 seconds]
Voodoofish4301 has quit [Ping timeout: 245 seconds]
roolo has joined #ruby
mojjojo has quit [Quit: mojjojo]
ValicekB has joined #ruby
mojjojo has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
<roolo>
I have a bit nooby problem. I am writing an extension for Sinatra. When i want to parse json ruby tries to find parse method in Sinatra::JSON:Module
<roolo>
Is there some well known solution i am missing?
<banister>
shevy It's useless to look for the bend where night loses its way
Elhu has joined #ruby
endash_ has quit [Quit: endash_]
Voodoofish430 has joined #ruby
RaCx has joined #ruby
volty has joined #ruby
michael_mbp is now known as zz_michael_mbp
<bnagy>
roolo: you could try ::JSON
zz_michael_mbp is now known as michael_mbp
DanBoy has joined #ruby
nisstyre has joined #ruby
Underbyte has quit [Remote host closed the connection]
<roolo>
bnagy: You are my hero
axl_ has joined #ruby
alexparker_ has joined #ruby
<bnagy>
I don't know why it would be doing that though. ::JSON just tells ruby to look in the toplevel namespace, but it is only neccessary when working in stuff like BasicObject where they're removed all the lookup stuff on purpose
danshultz has quit [Remote host closed the connection]
<bnagy>
there's #sinatra
iliketur_ has joined #ruby
kcombs has quit [Remote host closed the connection]
smathieu has quit [Remote host closed the connection]
hiyosi has quit [Read error: Connection reset by peer]
danshultz has joined #ruby
liamkeily has joined #ruby
iamjarvo_ has joined #ruby
hiyosi has joined #ruby
smathieu has joined #ruby
mansi has quit [Read error: Connection reset by peer]
matchaw_ has joined #ruby
jamblack has quit [Quit: jamblack]
mansi has joined #ruby
jamblack has joined #ruby
jamblack has quit [Client Quit]
Bira has joined #ruby
matchaw has quit [Ping timeout: 264 seconds]
Bira has quit [Remote host closed the connection]
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
colonolGron has quit [Quit: leaving]
capicue has joined #ruby
iamjarvo has quit [Ping timeout: 272 seconds]
fumduq has quit [Ping timeout: 240 seconds]
danshultz has quit [Ping timeout: 245 seconds]
fumduq has joined #ruby
smathieu has quit [Ping timeout: 252 seconds]
nobitanobi has joined #ruby
iamjarvo_ has quit [Read error: Operation timed out]
michael_mbp is now known as zz_michael_mbp
zz_michael_mbp is now known as michael_mbp
myappleguy has quit [Ping timeout: 252 seconds]
smathieu has joined #ruby
capicue has quit [Ping timeout: 245 seconds]
mfmfmfmfmfmf has joined #ruby
benwoody has quit [Quit: benwoody]
bluOxigen has quit [Ping timeout: 272 seconds]
MattStratton has joined #ruby
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
sparrovv has joined #ruby
jonahR has quit [Quit: jonahR]
DrShoggoth has quit [Remote host closed the connection]
RaCx has quit [Quit: Computer has gone to sleep.]
michael_mbp is now known as zz_michael_mbp
DrShoggoth has joined #ruby
zz_michael_mbp is now known as michael_mbp
jonahR has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
carlyle has quit [Remote host closed the connection]
jkhwan has quit [Remote host closed the connection]
sergicles has quit [Quit: sergicles]
chuk has joined #ruby
capicue has joined #ruby
jkhwan has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby
Elhu has joined #ruby
Kricir has joined #ruby
realDAB has joined #ruby
newbiehacker has quit [Ping timeout: 264 seconds]
michael_mbp is now known as zz_michael_mbp
rjhunter has joined #ruby
IceColdMax has joined #ruby
jkhwan has quit [Ping timeout: 272 seconds]
virtualize has quit [Quit: Leaving...]
colonolGron has joined #ruby
dangerousdave has quit [Ping timeout: 245 seconds]
failshel_ has joined #ruby
mfmfmfmfmfmf has quit [Remote host closed the connection]
jamesaanderson has joined #ruby
jbpros has quit [Quit: jbpros]
rjhunter has quit [Ping timeout: 248 seconds]
mikesplain1 has joined #ruby
failshell has quit [Ping timeout: 272 seconds]
watermel0n has quit []
mikesplain has quit [Read error: Connection reset by peer]
failshel_ has quit [Ping timeout: 245 seconds]
zz_michael_mbp is now known as michael_mbp
mikesplain2 has joined #ruby
jkhwan has joined #ruby
wlanboy has quit [Ping timeout: 272 seconds]
Xeago has quit [Remote host closed the connection]
mfmfmfmfmfmf has joined #ruby
jamesaanderson has quit [Ping timeout: 264 seconds]
Xeago has joined #ruby
mikesplain1 has quit [Ping timeout: 246 seconds]
cameronbarton has joined #ruby
jle` has quit [Ping timeout: 252 seconds]
TigerWolf has joined #ruby
enebo has quit [Quit: enebo]
mikesplain2 has quit [Ping timeout: 245 seconds]
drumusician has quit [Ping timeout: 246 seconds]
gasbakid has quit [Read error: Connection reset by peer]
Solnse has quit [Quit: Leaving.]
mengu has quit []
duggiefresh has quit [Remote host closed the connection]
danman has quit [Quit: danman]
Xeago_ has joined #ruby
Soda has joined #ruby
enebo has joined #ruby
jle` has joined #ruby
michael_mbp is now known as zz_michael_mbp
Bira has joined #ruby
nateberkopec has quit [Quit: Leaving...]
barratt has quit [Quit: Leaving...]
wlanboy has joined #ruby
zz_michael_mbp is now known as michael_mbp
Voodoofish430 has quit [Ping timeout: 246 seconds]
hogeo has joined #ruby
mfmfmfmfmfmf has quit [Read error: Connection reset by peer]
Xeago_ has quit [Remote host closed the connection]
liamkeily has quit [Quit: WeeChat 0.4.1]
Bira has quit [Ping timeout: 272 seconds]
hogeo has quit [Ping timeout: 240 seconds]
liamkeily has joined #ruby
Lobster_ is now known as Lobster
claymore has quit [Quit: Leaving]
baordog has quit [Remote host closed the connection]
RichardBaker has quit [Quit: RichardBaker]
fridim__ has joined #ruby
`MArceLL` has joined #ruby
Bira has joined #ruby
dgfdgf has quit [Ping timeout: 246 seconds]
blaskovicz has quit [Quit: Leaving.]
Shidash has joined #ruby
xtristan has quit [Ping timeout: 246 seconds]
interactionjaxsn has quit [Remote host closed the connection]
cescalante is now known as ce_afk
pskosinski has joined #ruby
sparrovv has quit [Quit: sparrovv]
interactionjaxsn has joined #ruby
DrOwl has quit [Ping timeout: 252 seconds]
realDAB has quit [Quit: realDAB]
sailias has quit [Ping timeout: 245 seconds]
axl_ has quit [Quit: axl_]
momomomomo has quit [Quit: momomomomo]
roolo has quit [Quit: Leaving...]
cameronbarton has joined #ruby
dagnachew has joined #ruby
Kricir has quit [Ping timeout: 272 seconds]
jerius has quit [Ping timeout: 248 seconds]
jragon has quit [Read error: Operation timed out]
bean__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nisstyre has quit [Quit: Leaving]
mityaz has joined #ruby
RichardBaker has joined #ruby
interactionjaxsn has quit [Ping timeout: 252 seconds]
moneydouble has quit [Quit: Leaving.]
ssvo_ has joined #ruby
drumusician has joined #ruby
axl_ has joined #ruby
dgarstang3 has quit [Quit: WeeChat 0.4.0]
jrhorn424 is now known as zz_jrhorn424
zoo-zed has quit [Ping timeout: 246 seconds]
vt102 has quit [Quit: Leaving]
ssvo has quit [Ping timeout: 245 seconds]
kitak has joined #ruby
fuhgeddaboudit has quit [Read error: Operation timed out]
mmitchell has quit [Remote host closed the connection]
cameronbarton has quit [Quit: cameronbarton]
Jabberwock has quit [Quit: Leaving.]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jlast has quit [Remote host closed the connection]
nucatus_ has quit [Ping timeout: 272 seconds]
Reach has quit [Remote host closed the connection]
<TorpedoSkyline>
hey guys, I'm using a thread here to basically emulate setInterval in javascript, but if kick_off ever runs the loop ends… why? https://ghostbin.com/paste/99j9j
liamkeily has quit [Quit: WeeChat 0.4.1]
<TorpedoSkyline>
if it ever runs with success that is
<eka>
'objects' is a reserved word in ruby?
<heftig>
nope
<eka>
trying on irb
bradhe has quit [Remote host closed the connection]
<eka>
ok thx
freerobby has quit [Quit: Leaving.]
liamkeily has joined #ruby
<heftig>
TorpedoSkyline: what is the code of kick_off?
nfk has quit [Quit: yawn]
jacobsmith has quit [Ping timeout: 252 seconds]
michael_mbp is now known as zz_michael_mbp
randomnick_ has quit [Ping timeout: 264 seconds]
carlyle has joined #ruby
SHyx0rmZ has joined #ruby
lfox has quit [Quit: ZZZzzz…]
zodiak has quit [Ping timeout: 272 seconds]
jkhwan has quit [Remote host closed the connection]
blaxter_ has joined #ruby
pskosinski is now known as petra
zodiak has joined #ruby
dayepa has quit [Ping timeout: 246 seconds]
jkhwan has joined #ruby
Briareos1 has quit [Remote host closed the connection]
Briareos1 has joined #ruby
axl_ has quit [Quit: axl_]
sparrovv has joined #ruby
randomnick_ has joined #ruby
petra is now known as pskosinski
zz_michael_mbp is now known as michael_mbp
coca_rails has joined #ruby
mansi has quit [Remote host closed the connection]
<TorpedoSkyline>
now the thread isn't being killed, but it shows no error
blaskovicz has joined #ruby
<havenwood>
nordmike: I'd suggest asking in #RubyOnRails. Seems like a terrible idea to me to run a Rails 2 app, I wouldn't touch that with a 10ft pole.
<bnagy>
don't ever rescue error
blaskovicz has quit [Client Quit]
<bnagy>
TorpedoSkyline: in the loop itself just do begin; kick_off; rescue; p $!; end
<TorpedoSkyline>
ok
<bnagy>
you might want to p $@ as well
fijimunkii has joined #ruby
<bnagy>
those are just stupid magic globals for last error and last error stack
michael_mbp is now known as zz_michael_mbp
catphish has left #ruby ["Leaving"]
<nordmike>
havenwood: OK. But what with Gemfile. Sould it be in folder or not?
phinfonet has quit [Quit: exitiing]
rjhunter has joined #ruby
_whitelogger_ has joined #ruby
Nilium has quit [Ping timeout: 246 seconds]
<TorpedoSkyline>
bnagy, ok, it was an undefined local variable. I'll look into fixing it. Thanks!
<bnagy>
np
satman has quit [Read error: Operation timed out]
<TorpedoSkyline>
now does it not show because threads fail silently?
alexparker_ has quit [Quit: alexparker_]
gyre007 has quit [Ping timeout: 246 seconds]
<bnagy>
threads abort on exception by default, as does the main thread
Sammael has quit [Ping timeout: 252 seconds]
<bnagy>
but only the main thread barfs and outputs errors by default ( cause the interpreter is exiting )
<havenwood>
nordmike: Rails 3+ apps have a Gemfile, which is very handy for automated dependency resolution. If you're using a prehistoric Rails, you get no such niceties and many other unforeseen pains.
dagnachew has quit [Quit: Leaving]
_whitelogger has quit [Read error: Connection reset by peer]
kilophoton has quit [Ping timeout: 246 seconds]
aspires has joined #ruby
zz_michael_mbp is now known as michael_mbp
gr33n7007h has quit [Ping timeout: 252 seconds]
asteros has quit [Quit: asteros]
rjhunter has quit [Ping timeout: 240 seconds]
moneydouble has joined #ruby
swingha has quit [Ping timeout: 260 seconds]
satman has joined #ruby
rburton- has joined #ruby
jrhe has quit [Quit: jrhe]
<havenwood>
nordmike: Rails 2 and Ruby 1.8 are past end-of-life. They are not supported, they do not receive security fixes, be warned.
saarinen has quit [Quit: saarinen]
carlyle has quit []
<nordmike>
havenwood: Thank you.
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
tenjack has joined #ruby
MattStra_ has joined #ruby
s2013 has quit [Ping timeout: 264 seconds]
pel_daniel has left #ruby [#ruby]
Nilium has joined #ruby
kabiigon has joined #ruby
<kabiigon>
hi
<kabiigon>
having issues with install gem mysql
mikepack has quit [Remote host closed the connection]
veduardo has joined #ruby
<havenwood>
kabiigon: What is your OS? How'd you install Ruby what version manager do you use if any? What is the error you receive?
whunt has quit [Read error: Operation timed out]
whunt has joined #ruby
swingha has joined #ruby
<TorpedoSkyline>
haha yeah the mysql gem is fun to install ;P