Spami has quit [Quit: This computer has gone to sleep]
rickmasta has joined #ruby
peregrine81 has quit []
ehaliewicz has joined #ruby
Spami has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
Xeago has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 245 seconds]
crus has quit [Ping timeout: 268 seconds]
ssvo_ has quit [Ping timeout: 260 seconds]
dagnachew has joined #ruby
brianpWins has quit [Quit: brianpWins]
wallerdev has quit [Quit: wallerdev]
crus has joined #ruby
wallerdev has joined #ruby
dagnachew has quit [Client Quit]
V8Energy has joined #ruby
seoNinjaWarrior has joined #ruby
<Flashmasterson>
i entered rvm install 2.0.0
<Flashmasterson>
and nothing happened. same with rvm current
sambao21 has quit [Quit: Computer has gone to sleep.]
<shevy>
there is a #rvm channel, not sure many people use rvm here
<Flashmasterson>
thank you
<shevy>
good luck
<seoNinjaWarrior>
when scheduling threads for to lie in wait for my thread pool to execute them in ruby, do those threads waiting to be spawned take up a lot of memory?
<bnagy>
wat
<shevy>
lol
<seoNinjaWarrior>
err.. i'm a noob, probably not explaining it very well
<seoNinjaWarrior>
lol
<shevy>
hmm ... style-question... what do you guys think reads better in a .rb file:
<shevy>
require 'gtk/modify_bold_label'
giulia12 has joined #ruby
<shevy>
or
<giulia12>
Ciao a tutti :)
<shevy>
require 'gtk_modify_bold_label'
giulia12 has left #ruby [#ruby]
<bnagy>
threads are cheap but not free
<seoNinjaWarrior>
I've got about 8.5 million threads, I'm thinking maybe to schedule them in chunks of 1k
<shevy>
wat
<bnagy>
no you don't
<seoNinjaWarrior>
or should i do in chunks of 100?
<bnagy>
I think you're mistaking what a thread is
<bnagy>
it's not a thread until you've spun it up in the runtime
<seoNinjaWarrior>
err
<seoNinjaWarrior>
okay i have 8.5 million threads to schedule
<bnagy>
it might be a proc or a textfile containing some code or some other thing
<ecksit>
shevy, the first
<shevy>
oh
bricker`LA is now known as bricker
<bnagy>
shevy: depends
<shevy>
ok
<bnagy>
if there's other stuff inside a broader gtk gem I like the first
<shevy>
bnagy if you would have to use either of these two in a .rb file you write, which one would you prefer, if you'd have only these two choices
<bnagy>
but whatever, the second is too long and underscory
<shevy>
hmm yeah... I am thinking of that right now... to bundle all my gtk-modifications into a logical subgroup or not...
<shevy>
ok thanks
<bnagy>
seoNinjaWarrior: you mean you have a lot of work units to process I guess
Klotho1 has quit [Ping timeout: 264 seconds]
<seoNinjaWarrior>
yeah lol
<bnagy>
how many threads to run at once kind of depends on the kind of work
<tneutron>
does anyone have a recommended gem for mongodb
<bnagy>
and also which runtime you use
cody-- has quit [Quit: Computer has gone to sleep.]
<seoNinjaWarrior>
i guess i'm asking is it a good idea to schedule a lot of threads at once, and if so how many
BillCriswell has quit [Remote host closed the connection]
<bnagy>
if it's IO bound stuff, like fetching things from the internet you can spin up a lot
<seoNinjaWarrior>
yup it is :)
<seoNinjaWarrior>
need to fetch a lot of content
<bnagy>
if it's CPU bound like calculating hashes or something then there's not much point spinning up more then your number of cores
<seoNinjaWarrior>
maybe i can try all 8 mil and see what happens
<bnagy>
and even then, only with jruby or rbx
<bnagy>
you won't be able to start 8 mil ruby threads
<bnagy>
not even vaguely close
<seoNinjaWarrior>
yeah not cpu intensive and not using jruby
<seoNinjaWarrior>
well put them in a pool to be executed, 50 at a time
<bnagy>
I'd suggest not using an MRI threadpool for this
<bnagy>
it's going to suck balls
<seoNinjaWarrior>
oh really?
tealmage has joined #ruby
<seoNinjaWarrior>
what would you recommend?
<bnagy>
try and find a wrapper for a real event lib
ssvo has quit [Ping timeout: 264 seconds]
<bnagy>
I don't know what's current, I used to use eventmachine, which I think was on rev?
<bnagy>
but there's a new one I think now
<bnagy>
there's gevent, which is the lowlevel lib, but I don't know the wrappers
<bnagy>
I do this kind of stuff with either a python wrapped gevent tool or with golang
freerobby has quit [Quit: Leaving.]
<bnagy>
issue with MRI threadpool is that they're concurrent but not parallel, and threads are quite expensive in memory terms
nibbles has quit [Ping timeout: 268 seconds]
<bnagy>
and for web fetching stuff you need a LOT of concurrency
<seoNinjaWarrior>
thanks for the info, i'ma start researching gevent look at alternatives to eventmachine
<bnagy>
check celluloid
mootpointer has joined #ruby
<Flashmasterson>
shevy: did you mean type #rvm into the 'join group chat' option under File?
snovak has joined #ruby
Lewix has quit [Remote host closed the connection]
<bnagy>
at least celluloid uses fibers under MRI, which are much lighter weight
<bnagy>
but imho I'd still recommend jruby :P
<seoNinjaWarrior>
I got a lot of research ahead of me, thanks for the pointers :)
Lewix has joined #ruby
Lewix has joined #ruby
<bnagy>
np, bounce back if you have more questions
BillCriswell has joined #ruby
BillCriswell has quit [Remote host closed the connection]
<seoNinjaWarrior>
will do :)
<bnagy>
me dissing MRI Threads is my opinion, on a busier day you'd probably get some different ones
stonevil has joined #ruby
DonRichie has quit [Ping timeout: 246 seconds]
<shevy>
Flashmasterson not sure what client you have. in my client, I can do this: /join #rvm
<shevy>
Flashmasterson the channel here is on freenode, like #ruby here
DonRichie has joined #ruby
<shevy>
there are 56 ppl there
<shevy>
if rvm fails there is still the source :D ftp://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p247.tar.bz2
snovak has quit [Ping timeout: 260 seconds]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robotblake has quit [Quit: Leaving...]
stonevil has quit [Ping timeout: 260 seconds]
<Flashmasterson>
shevy: does it take long to download your link? no progress seems to be happening
<shevy>
Flashmasterson hmmm let me check
<shevy>
it is the official source of ruby
unixninja92 has quit [Ping timeout: 256 seconds]
<shevy>
I have about 100KB/s Flashmasterson but try rvm first
<shevy>
I myself use the source and compile into a special, versioned directory
Ox6abe has quit [Remote host closed the connection]
sweepTheLeg has joined #ruby
VTLob has quit [Quit: VTLob]
<Flashmasterson>
shevy: that sounds nice but i play bass, so most of this is chinese to me. now when you say "client" what are you referring to?
dodosan has joined #ruby
<shevy>
Flashmasterson ok... we are using IRC here, yes? we are "chatting" ...
bradhe has quit [Remote host closed the connection]
<shevy>
with what tool are you using IRC?
Bry8Star{T2_ has joined #ruby
<shevy>
just about every serious IRC client will allow you to join a channel
<shevy>
the syntax to do so is a leading / and then a command... in this case
<shevy>
/join #rvm
<shevy>
the two ' ' before /join should be stripped away
<Flashmasterson>
ok it says Cannot join #rvm: Registration is required.
<sweepTheLeg>
Hi all. If I mixin a Module that has several constants, is it possible to dynamically reference one of them using a variable? MyModule::<myvariable> ?
<Flashmasterson>
i thought i registered
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
unixninja92 has joined #ruby
<sweepTheLeg>
revise.. well not that specifically but some similar mechanism?
<Flashmasterson>
shevy: will you paste the exact link for registration? i went to the site for guidance and i had trouble finding where to begin
<shevy>
Flashmasterson I see
cascalheira has quit [Quit: Leaving...]
<shevy>
Flashmasterson seems freenode is a bit annoying here...
<shevy>
second entry is the FAQ about how to register
<shevy>
sweepTheLeg this syntax would be a method
<shevy>
you can scope to your constants
<shevy>
module Foo; Bar = 'Hi from Bar'; end; Foo::Bar # => "Hi from Bar"
<shevy>
if you want to avoid typing Foo, you can do: include Foo, then call bar
<shevy>
you can add a method call foo too
<shevy>
sweepTheLeg module Foo; Bar = 'Hi from Bar'; def self.bar; Bar; end; end; Foo::bar
<shevy>
or Foo.bar
<shevy>
people prefer the one . over the two : for method calls
tealmage has quit [Remote host closed the connection]
<shevy>
sweepTheLeg you could collect all your constants in an array
CAP7017 has joined #ruby
<shevy>
module Foo; Lala = 'Hey'; Bar = 'Hi from Bar'; X = [ Lala, Bar]; def self.x; X[1-rand(2)]; end; end; Foo::x
<shevy>
# => "Hey"
<shevy>
or
<shevy>
# => "Hi from Bar"
MiguelGD has quit [Ping timeout: 268 seconds]
<Flashmasterson>
#rvm
<Flashmasterson>
crap
<shevy>
you forgot the leading /join perhaps
Ox6abe has joined #ruby
<shevy>
on my IRC client, I can right click on every word with a leading #
<shevy>
and then select "join channel"
<shevy>
but typing /join is much faster for me
<sweepTheLeg>
Ah, I see what you mean by array of constants. Thx will try that out
unixninja92 has quit [Ping timeout: 256 seconds]
quoin has joined #ruby
<shevy>
yeah not very elegant though
<shevy>
I think you can somehow use @vars too instead
<shevy>
in a module
<shevy>
but you have to ask ... bnagy for that haha
TripleDE1 has quit [Quit: leaving]
<bnagy>
for whatnow?
<bnagy>
also, fuck oracle
ferdev has quit [Quit: ferdev]
<bnagy>
(trying to DL java from commandline)
<bnagy>
why would you need to store constants in an array when they're already available in one
smashwilson1 has joined #ruby
<bnagy>
with Whatevermod.constants
<bnagy>
confused
r4nd0m1 has quit []
ferdev has joined #ruby
quoin_ has joined #ruby
DanKnox_away is now known as DanKnox
quoin has quit [Ping timeout: 256 seconds]
sailias has quit [Quit: Leaving.]
felixjet has joined #ruby
sailias has joined #ruby
ner0x has quit [Quit: Leaving]
ferdev has quit [Client Quit]
nibbles has joined #ruby
mercwithamouth has quit [Ping timeout: 256 seconds]
mercwithamouth has joined #ruby
Aquilo has quit []
candlej4ck has joined #ruby
yacks has joined #ruby
Lewix has quit [Remote host closed the connection]
jamesaanderson has joined #ruby
xerxas has quit [Quit: Connection closed for inactivity]
tealmage has joined #ruby
jamesaanderson has quit [Client Quit]
rickmasta has quit [Quit: Leaving...]
snovak has joined #ruby
Flashmasterson has quit [Quit: Leaving.]
bradhe has joined #ruby
bboogaard has quit [Quit: Konversation terminated!]
jamesaanderson has joined #ruby
jamesaanderson has quit [Client Quit]
eka has joined #ruby
bradhe has quit [Ping timeout: 260 seconds]
sailias has quit [Quit: Leaving.]
sailias has joined #ruby
ecksit has quit [Read error: Connection reset by peer]
tealmage has quit [Remote host closed the connection]
freerobby has joined #ruby
sweepTheLeg has quit [Quit: leaving]
CAP7017 has quit [Ping timeout: 245 seconds]
nstnst has joined #ruby
ssvo has joined #ruby
GeissT has joined #ruby
freerobby has quit [Ping timeout: 268 seconds]
ssvo has quit [Ping timeout: 264 seconds]
ftiasch has joined #ruby
bradhe has joined #ruby
TIJ has joined #ruby
Ox6abe has quit [Remote host closed the connection]
SilverKey has joined #ruby
bradhe has quit [Remote host closed the connection]
Ox6abe has joined #ruby
ftiasch has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
SilverKey has quit [Client Quit]
nstnst has quit [Quit: Lost terminal]
brianpWins has joined #ruby
Heero has joined #ruby
dhruvasagar has joined #ruby
Ox6abe has quit [Ping timeout: 240 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
brianpWins has quit [Quit: brianpWins]
bradhe has joined #ruby
willb1 has quit [Ping timeout: 248 seconds]
maximveksler has joined #ruby
mercwithamouth has quit [Ping timeout: 260 seconds]
<maximveksler>
Hey guys, I'm writing a quick hack to run on Heroku. Could someone please point me to how I should be processing a POST request in my code ?
brianpWins has joined #ruby
lfox has joined #ruby
smashwilson1 has left #ruby [#ruby]
Heero has quit [Quit: Leaving]
dhruvasagar has quit [Ping timeout: 260 seconds]
rcosta has quit [Remote host closed the connection]
Aristata has quit [Read error: Connection reset by peer]
Aristata has joined #ruby
freerobby has joined #ruby
postmodern has joined #ruby
bradhe has quit [Remote host closed the connection]
willb1 has joined #ruby
peregrine81 has joined #ruby
<Senjai>
maximveksler: might you think people would need to see your code to do so?
bboogaard has joined #ruby
tigor_ has quit [Read error: Connection reset by peer]
freerobby has quit [Ping timeout: 264 seconds]
bigkevmcd has quit [Ping timeout: 245 seconds]
bigkevmcd has joined #ruby
freerobby has joined #ruby
kayloos has quit [Remote host closed the connection]
sam113101 is now known as sam113101_afk
Monie has joined #ruby
sam113101_afk is now known as sam113101
Fezzler has joined #ruby
cody-- has joined #ruby
wesside has joined #ruby
rickmasta has joined #ruby
okinomo has joined #ruby
rickmasta has quit [Client Quit]
_5kg has quit [Read error: Connection reset by peer]
<i8igmac>
my brain says it should work, but i never used def before
bradhe has joined #ruby
<i8igmac>
im confused as you can see
<macmartine>
what's 'a'?
ssvo has joined #ruby
duracrisis has joined #ruby
<macmartine>
looks undefined
<i8igmac>
a could be ['a', 'b, 'c']
katsrc has quit [Remote host closed the connection]
<macmartine>
what would you expect that to retry, anyway? the method from the start? the result would still be the same
<i8igmac>
if the length is equal to or higher then ten then dont proceed and retry
sayan has joined #ruby
<i8igmac>
that a.map could change at any second, lower or higher
<macmartine>
the length of what though? is something else incrementing this? I just see an undefined local variable
<i8igmac>
this is a brute force example im working on for a presentation
<macmartine>
anyway, no, this won't work, as you found out. there's likely a better way to accomplish what you're doing but can't help without seeing what else is going on
<i8igmac>
so, im attemting to login to a servce
<i8igmac>
with threads
<i8igmac>
so, a= thread count
<macmartine>
why not just a while loop?
<i8igmac>
i guess that makes sense
<i8igmac>
there is a while loop passing the strings to the authentication()
bradhe has quit [Ping timeout: 264 seconds]
<i8igmac>
i never seen this error before and it bothers me
ssvo has quit [Ping timeout: 264 seconds]
okinomo has quit [Ping timeout: 264 seconds]
pen has quit [Read error: Connection reset by peer]
pen has joined #ruby
peregrine81 has quit []
danman has joined #ruby
<macmartine>
you're using retry in the wrong way, that's why you're getting the error
<macmartine>
to state the obvious
mootpointer has quit [Quit: ENOCAFFEINE.]
bboogaard has quit [Quit: Ex-Chat]
Davey has joined #ruby
Klotho1 has joined #ruby
noop has quit [Ping timeout: 264 seconds]
snovak has joined #ruby
freerobby has joined #ruby
machuga is now known as machuga|away
nibbles has joined #ruby
optimusprimem has joined #ruby
optimusprimem has joined #ruby
bradhe has joined #ruby
danman has quit [Quit: danman]
danman has joined #ruby
lucazi has joined #ruby
jefflyne2 has quit [Ping timeout: 240 seconds]
hamakn has quit [Remote host closed the connection]
snovak has quit [Ping timeout: 245 seconds]
danman has quit [Client Quit]
hamakn has joined #ruby
danman has joined #ruby
devoldmx3 has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
yano has joined #ruby
tealmage has joined #ruby
TIJ has quit [Remote host closed the connection]
danman has quit [Client Quit]
danman has joined #ruby
TIJ has joined #ruby
narcan has joined #ruby
hamakn has quit [Ping timeout: 264 seconds]
tealmage has quit [Ping timeout: 264 seconds]
monban_ has quit [Ping timeout: 248 seconds]
duracrisis has quit [Ping timeout: 260 seconds]
bradhe has quit [Remote host closed the connection]
jtgiri_ has joined #ruby
duggiefresh has quit [Remote host closed the connection]
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has joined #ruby
brianpWins has quit [Quit: brianpWins]
huoxito has quit [Quit: Leaving]
bradhe has joined #ruby
nibbles has quit [Ping timeout: 268 seconds]
duggiefresh has joined #ruby
sailias has quit [Ping timeout: 268 seconds]
spike|spiegel has joined #ruby
browndawg has joined #ruby
ewnd9 has quit [Ping timeout: 260 seconds]
jonahR has joined #ruby
brianpWins has joined #ruby
browndawg has quit [Ping timeout: 264 seconds]
ewnd9 has joined #ruby
ssvo has joined #ruby
aalmenar has quit [Ping timeout: 245 seconds]
ereslibre_laptop has quit [Ping timeout: 245 seconds]
ssvo has quit [Ping timeout: 240 seconds]
rrmartins has joined #ruby
tealmage has joined #ruby
Lewix has joined #ruby
duggiefresh has quit [Remote host closed the connection]
Asher has quit [Quit: Leaving.]
banisterfiend is now known as banister`tryslee
banister`tryslee is now known as banister`nosleep
hellyeah has quit [Read error: Operation timed out]
lukec has quit [Ping timeout: 264 seconds]
butblack has left #ruby [#ruby]
mrsolo has quit [Quit: This computer has gone to sleep]
mrsolo has joined #ruby
snovak has joined #ruby
bricker has quit [Ping timeout: 260 seconds]
candlej4ck has joined #ruby
snovak has quit [Ping timeout: 260 seconds]
druonysus has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
ssvo has joined #ruby
lukec has joined #ruby
hamakn has joined #ruby
nari has joined #ruby
nisstyre has quit [Ping timeout: 260 seconds]
tomzx_mac_ has quit [Read error: Operation timed out]
stopbit has quit [Quit: leaving]
tealmage has quit [Ping timeout: 264 seconds]
SeySayux has quit [Ping timeout: 276 seconds]
SeySayux has joined #ruby
okinomo has joined #ruby
brianpWins has quit [Quit: brianpWins]
JohnBat26 has joined #ruby
candlej4ck is now known as robotblake
robotblake has quit [Changing host]
robotblake has joined #ruby
nibbles has joined #ruby
zarul has quit [Ping timeout: 268 seconds]
alx- has quit [Read error: Connection reset by peer]
<xybre>
Might be a way to clean that up even more, but that at least works.
beilabs has joined #ruby
<Trudko>
ok will check in sec
TIJ has joined #ruby
vikhyat has joined #ruby
pyrac has quit [Quit: pyrac]
ndrei has joined #ruby
Bosox20051 has joined #ruby
ndrei has quit [Client Quit]
tatsuya_o has joined #ruby
pyrac has joined #ruby
okinomo_ has quit [Ping timeout: 260 seconds]
rrmartins has quit [Remote host closed the connection]
wlanboy has joined #ruby
jglauche has joined #ruby
znode_ has quit [Remote host closed the connection]
znode has joined #ruby
<jglauche>
hey. I've got a library that uses print to output stuff. what would be the easist way to catch the output to have it as a string?
<xybre>
jglauche: Gah, thats nasty. Does the lib let you provide a different logging option or anything?
snovak has joined #ruby
<jglauche>
xybre: nope
jefflyne2 has joined #ruby
<jglauche>
xybre: well, I can hack the lib
parzo has quit [Ping timeout: 264 seconds]
razi has quit [Ping timeout: 264 seconds]
mrsolo has joined #ruby
dodosan has quit [Remote host closed the connection]
pyrac has quit [Quit: pyrac]
snovak has quit [Ping timeout: 260 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
<apeiros>
jglauche: change $stdout = StringIO.new
<apeiros>
after that, use output = $stdout.string; $stdout = STDOUT
znode has quit [Remote host closed the connection]
<apeiros>
best put the $stdout = STDOUT in an ensure
<xybre>
Yeah you can do that if your calls to the library are easily wrapped. I assumed they weren't, should've asked.
jbpros has joined #ruby
okinomo has joined #ruby
<apeiros>
it's ugly as hell. I'd still contact the author and make a pull request
<jrobeson>
i feel like my serialport connection (using the serialport gem) magically became blocking :(
<apeiros>
it's easy enough to do something like def initialize(out=$stdout); @out = out; …; end; def print/puts/write/whatever(*args); @out.print/puts/whatever(*args)
<jrobeson>
i wonder if a kernel upgrade changed something..
yano has quit [Ping timeout: 624 seconds]
<xybre>
If its a single object, overriding puts is also feasible.
stonevil has quit [Remote host closed the connection]
adambeynon has joined #ruby
stonevil has joined #ruby
okinomo has quit [Ping timeout: 240 seconds]
jbpros has quit [Quit: jbpros]
okinomo has joined #ruby
tealmage has joined #ruby
<jglauche>
apeiros: yup, that works. it's incredibly messy though
* jglauche
is seriously considering ripping the lib of its useful stuff and integrate it in his
sayan has quit [Ping timeout: 264 seconds]
<apeiros>
jglauche: less messy is doing what I suggested as a pull request (and xybre later said to do with a single object) - override puts/print in the object and provide an accessor for the object you output to
<apeiros>
can even put it into a module and use extend
<jglauche>
apeiros: yup, but it isn't that simple as the autor kinda traverse a tree and ouputs the result to stdio rather than returning it to to the sender
mum12345 has joined #ruby
<mum12345>
hi
nari has joined #ruby
<apeiros>
jglauche: hm? unless he uses puts from other object contexts (i.e. instance_eval's or has his own different classes) this should work fine
tatsuya_o has quit [Remote host closed the connection]
<mum12345>
?
<apeiros>
mum12345: ++ does not exist in ruby
<mum12345>
oh srry
<mum12345>
but even i remove it i get same error
<apeiros>
and the superfluous kEND (keyword 'end') is probably a subsequent error of that
<apeiros>
mum12345: paste the updated code please
tealmage has quit [Ping timeout: 268 seconds]
wallerdev has quit [Quit: wallerdev]
<jglauche>
apeiros: looks doable. will mess with existing scripts outputs though if I do that. I better merge the important output stuff into my lib (which does what the lib I use does, just nicer)
vikhyat has quit [Read error: Connection reset by peer]
vikhyat has joined #ruby
Macaveli has quit [Quit: Computer has gone to sleep.]
mercwithamouth has joined #ruby
codecop has joined #ruby
Macaveli has joined #ruby
vlad_starkov has joined #ruby
okinomo has quit [Ping timeout: 256 seconds]
jeffreyio2_ has joined #ruby
Macaveli has quit [Client Quit]
relix has joined #ruby
jeffreyio2 has joined #ruby
Macaveli has joined #ruby
mercwithamouth has quit [Ping timeout: 256 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
yxhuvud has quit [Ping timeout: 245 seconds]
rcosta has joined #ruby
yxhuvud has joined #ruby
razi has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
pen has quit [Remote host closed the connection]
jeffreyio2_ has quit [Ping timeout: 260 seconds]
<xybre>
Uh. Okay, have fun.
Astralum has joined #ruby
blackmes1 has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
m8 has joined #ruby
m8 has quit [Max SendQ exceeded]
s0ny123 has quit [Quit: leaving]
s0ny123 has joined #ruby
okinomo has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
krainboltgreene has quit [Ping timeout: 264 seconds]
spider-mario has quit [Remote host closed the connection]
JohnBat26 has joined #ruby
krainboltgreene has joined #ruby
rdxc has quit [Ping timeout: 264 seconds]
Gillo26_ has joined #ruby
mklappst_ has joined #ruby
mklappstuhl has quit [Ping timeout: 260 seconds]
satesto has joined #ruby
Gillo26__ has joined #ruby
VTLob has joined #ruby
<satesto>
People, can selenium-webdriver execute_script not before navigate.to, not after navigate.to, but while navigating. So, if I use window.screen inside page's inner javascript, I could set window.screen.__defineGetter__('width', function(){return 1024;}); with selenium's execute_script for example?
Gillo26_ has quit [Ping timeout: 250 seconds]
Trynemjoel has joined #ruby
Gillo has joined #ruby
ASimpson87 has joined #ruby
buzzybron has quit [Quit: Leaving.]
<ASimpson87>
hey everyone?
relix has joined #ruby
Gillo26__ has quit [Ping timeout: 250 seconds]
Macaveli has quit [Quit: Computer has gone to sleep.]
colonolGron has joined #ruby
lkba has joined #ruby
tatsuya_o has joined #ruby
jeffreyio2 has quit [Read error: Connection reset by peer]
ntus1017 has joined #ruby
<satesto>
hi
okinomo has quit [Ping timeout: 245 seconds]
forcefsck has joined #ruby
Trudko_ has joined #ruby
tealmage has joined #ruby
jeffreyio2 has joined #ruby
lucazi has joined #ruby
emanon_ has quit [Remote host closed the connection]
Trudko has quit [Ping timeout: 245 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Trudko_ is now known as Trudko
mercwithamouth has joined #ruby
* jglauche
is terrible bad with finding new names
<jglauche>
*terribly
<jglauche>
how should I name my extention of RubyScad? RubyScadOnSteroids?
tealmage has quit [Ping timeout: 264 seconds]
<shevy>
that sounds like a buzzword
<shevy>
I usually try to define something that describes what the class may do, and also try to be as short as possible... sometimes does not work
<shevy>
if there is a module or class named RubyScad
<shevy>
you could try to use it as your base namespace
<shevy>
then you could call it RubyScad::Extensions
<shevy>
or something like that
<shevy>
JglaucheRubyScadExtension
<shevy>
hah... way too long :(
hakunin has quit [Remote host closed the connection]
buzzybron has joined #ruby
buzzybron has left #ruby [#ruby]
ntus1017 has quit [Remote host closed the connection]
yacks has quit [Ping timeout: 240 seconds]
staafl has quit [Read error: Connection reset by peer]
relix has joined #ruby
ntus1017 has joined #ruby
satesto has quit [Quit: Page closed]
<jglauche>
well. Extentions look nice, but it radically changes the way that the library that's based off works
<jglauche>
*sounds
<shevy>
it's never an easy thing
<shevy>
you could make it very long
<shevy>
"RubyScadOnSteroids"
<shevy>
"RubyScadOnSteroidsForExtraEffects"
<shevy>
how about
<shevy>
RubyRoids
<shevy>
oh wait
dodosan has quit [Remote host closed the connection]
<shevy>
RubyScadois
<shevy>
oops
<shevy>
*RubyScadoids
<shevy>
or the magic word "potente" ... RubyScadPotente
<jglauche>
lol
dodosan has joined #ruby
<jglauche>
that sounds like I'd make this to print our dildos
<jglauche>
*out
yacks has joined #ruby
krainboltgreene has quit [Ping timeout: 256 seconds]
Macaveli has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dodosan has quit [Ping timeout: 268 seconds]
ehaliewicz has quit [Ping timeout: 256 seconds]
aryaching has joined #ruby
tealmage has joined #ruby
browndawg has joined #ruby
rcosta has quit [Remote host closed the connection]
aryaching_ has joined #ruby
wildroman has joined #ruby
aryaching_ has quit [Read error: Connection reset by peer]
blackmes1 has quit [Ping timeout: 240 seconds]
jefflyne2 has joined #ruby
<shevy>
lol
ewnd9 has quit [Ping timeout: 260 seconds]
Tuxist has joined #ruby
snovak has joined #ruby
okinomo has joined #ruby
freeayu has quit [Ping timeout: 240 seconds]
ntus1017 has quit [Remote host closed the connection]
mklappst_ has quit [Remote host closed the connection]
stonevil has quit [Remote host closed the connection]
snovak has quit [Ping timeout: 264 seconds]
seyha has joined #ruby
pskosinski has joined #ruby
<seyha>
hi can anyone help me how to create by select category that i want to select
sr78ger has joined #ruby
<seyha>
i have product and category table that product belong to category and category has many products
ewnd9 has joined #ruby
<jglauche>
rails I presume?
corpuscle has quit [Quit: WeeChat 0.4.1]
jyuan has joined #ruby
swordsmanz has joined #ruby
ArchIsTheBest has joined #ruby
jyuan has quit [Remote host closed the connection]
tatsuya_o has quit [Remote host closed the connection]
ArchIsTheBest has left #ruby ["WeeChat 0.4.1 #ruby"]
fixer has joined #ruby
TIJ has quit [Quit: Konversation terminated!]
JohnBat26 has quit [Read error: Operation timed out]
<atmosx>
What is the easiest way to contstruct a graph of points in x,y axis in Ruby? what library etc?
<atmosx>
err gem
fixer has quit [Remote host closed the connection]
Aryasam has quit [Read error: Connection reset by peer]
miskander has joined #ruby
rcosta has joined #ruby
carraroj has joined #ruby
timonv has joined #ruby
miskander has quit [Client Quit]
xk_id has joined #ruby
platzhirsch has joined #ruby
browndawg has joined #ruby
razi has quit [Ping timeout: 240 seconds]
eka has joined #ruby
sailias has joined #ruby
seyha has quit [Ping timeout: 268 seconds]
eka has quit [Client Quit]
pen has joined #ruby
pyrac has quit [Quit: pyrac]
cody-- has quit [Quit: Computer has gone to sleep.]
seyha has joined #ruby
snovak has joined #ruby
rodacato has joined #ruby
jefflyne2 has quit [Ping timeout: 268 seconds]
mklappstuhl has quit [Remote host closed the connection]
snovak has quit [Ping timeout: 260 seconds]
machuga|away is now known as machuga
goshakkk has joined #ruby
Ox6abe has joined #ruby
MrSamuel has quit [Quit: MrSamuel]
goganchic has joined #ruby
sevenseacat has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
salva has joined #ruby
salva has left #ruby [#ruby]
vikhyat_ has quit [Read error: No route to host]
vikhyat has joined #ruby
pyrac has joined #ruby
carraroj has joined #ruby
rcosta_ has joined #ruby
rcosta has quit [Ping timeout: 260 seconds]
wildroman has quit [Remote host closed the connection]
Astral_ has joined #ruby
hamakn has joined #ruby
quoin has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 260 seconds]
carraroj has quit [Read error: Operation timed out]
carraroj_ has joined #ruby
browndawg has quit [Ping timeout: 264 seconds]
carraroj_ is now known as carraroj
quoin has joined #ruby
carraroj has quit [Client Quit]
carraroj has joined #ruby
Astralum has quit [Ping timeout: 240 seconds]
unixninja92 has joined #ruby
vlad_starkov has joined #ruby
rcosta_ has quit [Remote host closed the connection]
browndawg has joined #ruby
shredding has joined #ruby
wildroman has joined #ruby
altamic has joined #ruby
mklappstuhl has joined #ruby
sr78ger has quit [Ping timeout: 264 seconds]
altamic has left #ruby [#ruby]
quoin has quit [Ping timeout: 260 seconds]
Gillo has quit [Remote host closed the connection]
mpereira_ has joined #ruby
bakedb has joined #ruby
mpereira has quit [Ping timeout: 264 seconds]
Bish has quit [Ping timeout: 264 seconds]
blackmes1 has quit [Ping timeout: 240 seconds]
Kabaka has quit [Ping timeout: 240 seconds]
ksh has quit [Ping timeout: 240 seconds]
DrCode has quit [Ping timeout: 240 seconds]
telling has quit [Ping timeout: 264 seconds]
lotherk has quit [Ping timeout: 264 seconds]
bakedb_ has quit [Ping timeout: 264 seconds]
asuka_ has quit [Ping timeout: 264 seconds]
asuka has joined #ruby
telling has joined #ruby
lotherk has joined #ruby
telling has quit [Changing host]
telling has joined #ruby
go|dfish has quit [Ping timeout: 264 seconds]
browndawg has quit [Ping timeout: 256 seconds]
Bish has joined #ruby
Xaitec_______ has joined #ruby
PaulePanter has quit [Ping timeout: 264 seconds]
go|dfish has joined #ruby
PaulePanter has joined #ruby
goganchic has quit [Quit: Computer has gone to sleep.]
blackmes1 has joined #ruby
Macaveli has quit [Quit: Computer has gone to sleep.]
wildroman has quit [Remote host closed the connection]
wildroman has joined #ruby
Kabaka has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
intuxicated has quit [Ping timeout: 260 seconds]
Kabaka has quit [Excess Flood]
ksh has joined #ruby
vikhyat_ has joined #ruby
vikhyat_ has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
headius has joined #ruby
vikhyat_ has joined #ruby
pyrac has quit [Quit: pyrac]
vikhyat has quit [Read error: Connection reset by peer]
heidar has quit [Quit: Connection closed for inactivity]
DrCode has joined #ruby
rodacato has quit [Remote host closed the connection]
lukec has joined #ruby
Kabaka has joined #ruby
Kabaka has quit [Excess Flood]
yano has joined #ruby
Lewix has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
rodacato has joined #ruby
seyha has quit [Ping timeout: 260 seconds]
Lewix has quit [Remote host closed the connection]
okinomo has joined #ruby
Gooder` has joined #ruby
mklappstuhl has joined #ruby
Gooder has quit [Ping timeout: 264 seconds]
Kabaka has joined #ruby
okinomo has quit [Ping timeout: 260 seconds]
okinomo has joined #ruby
carraroj has quit [Read error: Connection reset by peer]
carraroj has joined #ruby
rodacato has quit [Ping timeout: 264 seconds]
colonolGron has quit [Quit: Lost terminal]
Trudko_ has joined #ruby
freeayu__ has joined #ruby
SHyx0rmZ has joined #ruby
Trudko__ has joined #ruby
rodacato has joined #ruby
Trudko___ has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
Trudko has quit [Ping timeout: 260 seconds]
Trudko___ is now known as Trudko
<seoNinjaWarrior>
noob question. When a module is required, the "initialize" function is called immediately right?
Trudko_ has quit [Ping timeout: 256 seconds]
freeayu has quit [Ping timeout: 268 seconds]
Gillo has joined #ruby
Trudko__ has quit [Ping timeout: 256 seconds]
<banister`nosleep>
seoNinjaWarrior no..
<jglauche>
only on .new
<banister`nosleep>
seoNinjaWarrior actually there's a significant number of misunderstandings there
pyrac has joined #ruby
carraroj has quit [Ping timeout: 260 seconds]
<banister`nosleep>
seoNinjaWarrior 1. you don't require modules (you require files) 2. a module cannot be instantiated (only classes can), so initialise functions are not invoked
<seoNinjaWarrior>
thanks for the clarification
duggiefresh has joined #ruby
azcodex has quit [Read error: Connection reset by peer]
browndawg has joined #ruby
cody-- has joined #ruby
<banister`nosleep>
seoNinjaWarrior yeah ruby modules are quite different to modules in other languages
<banister`nosleep>
seoNinjaWarrior they're multi-purposed for a start, so it's hard to give a clean definition of them
<seoNinjaWarrior>
yeah… i read about the mixins, still trying to take it all in
<banister`nosleep>
seoNinjaWarrior but they're used for two things, primarily: they're used as mixins, and they're also used as a namespace for containing class definitions
<Morrolan>
(Generally it's a good idea to put all your classes inside a module, to prevent clogging up your user's namespace.)
<seoNinjaWarrior>
ok so that's why most modules immediately declare classes in the gems i'm looking at
<seoNinjaWarrior>
thanks :)
Gillo has quit [Ping timeout: 245 seconds]
blackratdog has joined #ruby
Trudko_ has joined #ruby
Trudko_ has quit [Client Quit]
danman has joined #ruby
Trudko has quit [Ping timeout: 268 seconds]
byprdct has joined #ruby
Macaveli has joined #ruby
Xaitec_______ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
jonkri has joined #ruby
jonkri has joined #ruby
jonkri has quit [Changing host]
byprdct has quit [Ping timeout: 245 seconds]
candlej4ck has joined #ruby
machuga is now known as machuga|away
sambao21 has joined #ruby
kayloos has joined #ruby
krz has joined #ruby
cody-- has quit [Quit: Computer has gone to sleep.]
yano has quit [Remote host closed the connection]
timonv_ has joined #ruby
okinomo has quit [Ping timeout: 264 seconds]
Macaveli has quit [Quit: Computer has gone to sleep.]
duggiefresh has quit [Remote host closed the connection]
Macaveli has quit [Quit: Computer has gone to sleep.]
<Flashmasterson>
i got an email confirmation from freenode IRC network saying that i have registered, but i keep getting denied when i enter my nickname into the Channel box to enter the group chat
<Flashmasterson>
same with rvm
<Flashmasterson>
just trying to install ruby 2.0.0!
Splourian has joined #ruby
blackmes1 has quit [Ping timeout: 240 seconds]
kobain has joined #ruby
mklappstuhl has joined #ruby
pen has joined #ruby
youcallme has joined #ruby
adkron has quit [Ping timeout: 248 seconds]
seyha has joined #ruby
banister`nosleep has quit [Quit: Computer has gone to sleep.]
iamjarvo has quit [Remote host closed the connection]
iamjarvo has joined #ruby
jkamenik has joined #ruby
jkamenik has joined #ruby
duggiefresh has quit [Remote host closed the connection]
jkamenik1 has joined #ruby
<Morrolan>
Flashmasterson: If I recall correctly, that e-mail contains further instructions.
bluOxigen has quit [Ping timeout: 256 seconds]
<Morrolan>
[16:49:58] NickServ [NickServ@services.]: You have to confirm the email address. To do this, [16:49:58] NickServ [NickServ@services.]: follow the instructions in the message sent to the email [16:49:58] NickServ [NickServ@services.]: address.
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv_ has quit [Remote host closed the connection]
adebabs has joined #ruby
<adebabs>
If a person wants to go into php what advice can you give such a person? For instance, what ebook to read, how to study and practice, where to go to when problem arises etc
chairabanta has joined #ruby
jefflyne2 has joined #ruby
sevenseacat has quit [Quit: Leaving.]
kobain_ has joined #ruby
kobain_ has quit [Remote host closed the connection]
<waxjar>
my advice would be to pick up another language first
kobain has quit [Ping timeout: 256 seconds]
<adebabs>
What language?
<Ox6abe>
hmmmm
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox6abe>
...What language?
<apeiros>
such a difficult question…
<apeiros>
malbolge, maybe?
<waxjar>
ruby, python, javascript. any language that has a bit of OO and a big enough community to have great introductions for complete beginners
GeissT has quit [Quit: MillBroChat AdIRC User]
UnderCrux has joined #ruby
tealmage has quit [Remote host closed the connection]
UnderCrux has quit [Client Quit]
tealmage has joined #ruby
<Flashmasterson>
Morrolan: sorry for delay, i followed the rest of the email's instructions and received this message when i entered their command here (on IRC): Please log in before attempting to verify your registration.
UnderCrux has joined #ruby
<blackratdog>
php has OO and a large community too
<waxjar>
i started doing a lilttle php some years ago. only when i started using ruby did I learn about HTTP, UNIX, processes, threads, etc.
<Morrolan>
Flashmasterson: Now you can identify with nickserv, by using "/msg nickserv identify your_password"
UnderCrux has quit [Client Quit]
cads has quit [Read error: Operation timed out]
<Morrolan>
Respectively, if you did not register the nickname you are using currently, it would be '/msg nickserv IDENTIFY <nick> <password>'
<Morrolan>
adebabs: Why are you asking this in a Ruby channel? :P
iPhoneMRZ has joined #ruby
stonevil has quit [Remote host closed the connection]
kobain has joined #ruby
iPhoneMRZ has quit [Client Quit]
swordsmanz has quit [Read error: Connection reset by peer]
tomzx_mac has joined #ruby
<Morrolan>
Flashmasterson: I wasn't aware that RVM's channel requires you to be registered with nickserv. Kinda odd.
<Morrolan>
Maybe they've had issues with trolls.
<adebabs>
No one answered when i asked in php channel
<Flashmasterson>
Morrolan: crap… well now i'm paying for their trolling. i just want to install ruby then ruby rails and get started on this long haul
<Morrolan>
Flashmasterson: Depending on your issue, we might be able to help you. What happens when you try to install it?
swordsmanz has joined #ruby
tealmage has quit [Ping timeout: 240 seconds]
pen has joined #ruby
<Flashmasterson>
Morrolan: well i have it installed, but it's in the 1.8. version, not yet 2.0.0. which is what i'm going for
Spami has joined #ruby
<Flashmasterson>
Morrolan: i'll probably also need help installing ruby rails sooner than later
platzhirsch1 has joined #ruby
<blackratdog>
there's a rails channel too in case you didn't know
<Morrolan>
Well, rvm is a ruby version manager. So once you installed 2.0, you have to tell it to actually use it. Did you set up RVM completely, yet?
<blackratdog>
can just install both at the same time
<Morrolan>
That is, did you the source command to .bash_profile or similar?
adebabs has left #ruby [#ruby]
theRoUS|sick has quit [Ping timeout: 260 seconds]
<Morrolan>
did you add the*
platzhirsch has quit [Ping timeout: 256 seconds]
<Flashmasterson>
Morrolan: i believe so, one moment...
<Morrolan>
If you did, then you can use, uh, `rvm use ruby-2.0.0`, I think.
<Morrolan>
Maybe consult the documentation on this, haven't used RVM in a long time. :)
tealmage has joined #ruby
pen has quit [Ping timeout: 264 seconds]
<Flashmasterson>
Morrolan: ok yeah i entered 'rvm install 2.0.0' but received this message: Searching for binary rubies, this might take some time.
vlad_starkov has quit [Read error: Connection reset by peer]
<Flashmasterson>
No binary rubies available for: osx/10.6/x86_64/ruby-2.0.0-p247.
<Flashmasterson>
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
<Flashmasterson>
Checking requirements for osx.
<Flashmasterson>
Can not find compiler and 'make' tool - make sure Xcode and/or Command Line Tools are installed.
<Flashmasterson>
Requirements installation failed with status: 11.
tealmage has quit [Remote host closed the connection]
JohnBat26 has quit [Remote host closed the connection]
<Flashmasterson>
Morrolan: keep in mind that this is my introduction to the programming world
<Morrolan>
Well, 2.0.0 wasn't installed yet. To allow people to assist you, you should provide them with this information from the beginning. :)
tealmage has joined #ruby
vlad_starkov has joined #ruby
<Morrolan>
Okay. It could not find a binary ruby, so it has to compile it. That means it'll download the source code, and will transform it into a way which your computer understands.
tealmage has quit [Read error: Connection reset by peer]
<Morrolan>
To do that, it needs several tools. And currently these tools aren't installed on your machine.
* Morrolan
prods apeiros
tealmage has joined #ruby
<Morrolan>
How do you get gcc and co on Mac? :P
<apeiros>
Morrolan: rvm just told him actually
<apeiros>
`make sure Xcode and/or Command Line Tools are installed.`
<Morrolan>
Heh, indeed. Missed that line. :o
Rylee has quit [Remote host closed the connection]
<apeiros>
so you either download xcode from the appstore (~4GB) or the "Command Line Tools" (some 400MB iirc)
<apeiros>
both are for free
jamesaanderson has joined #ruby
pen has joined #ruby
tealmage has quit [Remote host closed the connection]
<apeiros>
ah, might be that the command line tools are not available via appstore
<apeiros>
(xcode is)
<Flashmasterson>
Morrolan: ok where do i find those and how do i install them?
<Flashmasterson>
apeiros: sorry, missed that line
<Morrolan>
Well, xcode seemingly in the appstore. The command line tools probably on apple's website.
<apeiros>
Flashmasterson: in programming, it usually pays to actually read what your tools tell you ;-)
Rym has joined #ruby
<waxjar>
the command line tools can be downloaded from apple's dev website w/o the need to install xcode
<Flashmasterson>
waxjar: ok sweet, and i have an apple id
jibi has quit [Ping timeout: 260 seconds]
<Flashmasterson>
Morrolan: thans
<Flashmasterson>
Morrolan: *thanks
<apeiros>
ok, it's actually 1.61GB vs. 113MB
quoin has joined #ruby
<apeiros>
if your bandwith is fine, I'd just go ahead an install xcode actually
dtcrshr has joined #ruby
dtcrshr has joined #ruby
<waxjar>
the app itself takes up about 4 gb tho
noop has joined #ruby
jibi has joined #ruby
<blackratdog>
also you can install the command line tools from within xcode
peregrine81 has joined #ruby
<blackratdog>
if you already have it
Davey has joined #ruby
<Flashmasterson>
blackratdog: i don't yet
rcosta has quit [Remote host closed the connection]
juken has left #ruby [#ruby]
<blackratdog>
well you might as well download it unless you want to only d/l the command line tools
krainboltgreene has joined #ruby
<Flashmasterson>
Morrolan: ok i see the option for mountain lion but also lion. i have snow leopard. should i just install lion now and download the command line tools for lion?
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Morrolan>
No clue, never used a Mac. ;)
<Flashmasterson>
blackratdog: what advantages do i have with the xcode?
quoin has quit [Ping timeout: 240 seconds]
<blackratdog>
well if you ever want to develop mac applications or c++ applications or iOS etc, you need Xcode
zenon003 has joined #ruby
<blackratdog>
but if you'll never need it, then don't bother I guess lol
tealmage has joined #ruby
<blackratdog>
i only mention it because it's easy to download your command line tools and keep them updated automatically with Xcode
<blackratdog>
just makes it simpler i guess
rippa has joined #ruby
<blackratdog>
regarding lion, mountain lion is the latest OS soon to be replaced by another new one
platzhirsch has joined #ruby
endash has joined #ruby
<blackratdog>
so I'd install mountain lion rather than lion
nari has quit [Ping timeout: 268 seconds]
eka has quit [Quit: Computer has gone to sleep.]
mklappstuhl has quit [Remote host closed the connection]
zenon003 has quit [Client Quit]
platzhirsch1 has quit [Ping timeout: 262 seconds]
eka has joined #ruby
Gillo has joined #ruby
JohnBat26 has joined #ruby
<Flashmasterson>
blackratdog: hmm… i might want to do apps later, as long as xcode it doesn't complicate the process of getting ruby together i'll get mountain lion
<blackratdog>
it shouldn't do as far as I know but I'm only a ruby beginner
<blackratdog>
it set up rails fine on my system anyway
<blackratdog>
also mountain lion
Lewix has joined #ruby
<apeiros>
the command line tools are a subset of xcode
<apeiros>
xcode shouldn't make installing ruby more difficult, no
freerobby has quit [Quit: Leaving.]
<Morrolan>
Plenty of Ruby devs use Mac. While I like to look down on them a bit, they still produce fine Ruby code. ;)
rcosta has joined #ruby
zenon003 has joined #ruby
<seoNinjaWarrior>
i'm using ruby on mac
<seoNinjaWarrior>
it beats the hell outta windows
eka has quit [Client Quit]
<Morrolan>
Yea. There's probably not too many areas where development on Windows is easier than on Mac or Linux.
<seoNinjaWarrior>
i'd be on linux in a second if it supported photoshop
<waxjar>
.net
zenon003 has quit [Client Quit]
zenon003-2 has joined #ruby
zenon003-2 has quit [Client Quit]
carlyle has quit [Remote host closed the connection]
<seoNinjaWarrior>
i tried the CS2 port that I believe google paid for and it was terrible
Gillo has quit [Ping timeout: 268 seconds]
<Morrolan>
Ah. For my basic needs, Gimp is sufficient.
tealmage has quit [Remote host closed the connection]
jamesaanderson has joined #ruby
V8Energy has joined #ruby
<apeiros>
everytime I try gimp again, I get cramps in my whole body
<apeiros>
I'd love to ditch adobe. their tools become more crappy in every iteration. adobe is almost as horrible as microsoft in that regard…
jkamenik1 has quit [Quit: Leaving.]
phantasm66 has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<Morrolan>
Heh.
<waxjar>
it's too bad that so much video still relies on flash :(
<Morrolan>
Give it some time. ;)
<seoNinjaWarrior>
yeah, youtube has a new version out with HTML5
<seoNinjaWarrior>
it's WAY BETTER
ChronocityLC has joined #ruby
<seoNinjaWarrior>
you can watch videos at 1.5x and 2x
<waxjar>
it won't hide my cursor in full screen, i really dislike that :P
<Flashmasterson>
'waiting to see about a free upgrade to mountain lion before i can resume the ruby download. have you guys had good experience with ruby rails?
fgo has joined #ruby
michaellynch has joined #ruby
pen has quit [Ping timeout: 260 seconds]
michaellynch has quit [Client Quit]
brbcoding has joined #ruby
brbcoding has quit [Client Quit]
fgo has quit [Remote host closed the connection]
wallerdev has joined #ruby
Rylee has joined #ruby
Rylee has quit [Excess Flood]
Rylee has joined #ruby
<banisterfiend>
Flashmasterson "ruby rails" ? :P
zimbo has joined #ruby
platzhirsch has joined #ruby
mpereira_ has quit [Ping timeout: 264 seconds]
krz has quit [Quit: krz]
jefflyne2 has quit [Ping timeout: 256 seconds]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mpereira has joined #ruby
Lewix has quit [Remote host closed the connection]
carlyle has joined #ruby
lfox has joined #ruby
wallerdev has quit [Quit: wallerdev]
eldariof has joined #ruby
ahill-89 has joined #ruby
<Flashmasterson>
banisterfiend: yeah i'm just entering the programming world, so that program would seme to help
<Flashmasterson>
banisterfiend: *seem
parzo has quit [Ping timeout: 256 seconds]
havenwood has joined #ruby
jkamenik has joined #ruby
Lewix has joined #ruby
Lewix has quit [Changing host]
Lewix has joined #ruby
shark has joined #ruby
<shark>
i have heard that knowing ruby will make me a nicer person
<shark>
is this true
carlyle has quit [Ping timeout: 245 seconds]
<zimbo>
if it is we should teach it to psychopathic prisoners as part of pre parole conditions, but i doubt it is true
tkuchiki has quit [Remote host closed the connection]
ChronocityLC has quit [Ping timeout: 264 seconds]
parzo has joined #ruby
jamesaanderson has joined #ruby
<shark>
second question: i have heard rubymine is much better than apatana studio
<shark>
is there pros/cons to each?
jibi has quit [Ping timeout: 264 seconds]
agjacome has joined #ruby
<banisterfiend>
shark real men use emacs/vim ;)
<banisterfiend>
(mostly emacs)
tealmage has joined #ruby
<shark>
i may have already spent $30 for an academic license for rubymine
yano has joined #ruby
dachi has joined #ruby
<dachi>
hello everyone
tealmage has quit [Remote host closed the connection]
phantasm66 has quit [Quit: *sleeeep….]
quoin has joined #ruby
<dachi>
does anybody know how to run javascript code while selenium http request is being processed? not just before request starts or after it ends?
<Morrolan>
Rubymine is nice.
<Morrolan>
So is Emacs.
<Morrolan>
Given that you have the license already, why not use it, and see whether you like it. :)
Gooder` has quit [Ping timeout: 256 seconds]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shark>
ok
mrsolo has joined #ruby
quoin has quit [Ping timeout: 240 seconds]
tabolario has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lucazi has quit [Ping timeout: 260 seconds]
<Morrolan>
To be quite honest, though, I never actually used all the features it provides.
<Morrolan>
I run my tests from the console, I manage the git repo from the console.
pencilcheck has quit [Remote host closed the connection]
jefflyne2 has joined #ruby
pen has joined #ruby
Gillo has joined #ruby
tealmage has joined #ruby
<dachi>
I see
<dachi>
Thanks
freerobby has joined #ruby
tealmage has quit [Remote host closed the connection]
Gillo_ has joined #ruby
Gillo has quit [Read error: No route to host]
mary5030 has joined #ruby
wildroman has quit [Remote host closed the connection]
zimbo has quit [Quit: Vim irc plugin.]
timonv has joined #ruby
cascalheira has joined #ruby
wildroman has joined #ruby
Xaitec_______ has joined #ruby
jamesaanderson has joined #ruby
peregrine81 has quit []
ksh has quit [Ping timeout: 240 seconds]
peregrine81 has joined #ruby
krainboltgreene has quit [Ping timeout: 264 seconds]
jkamenik has quit [Quit: Leaving.]
peregrine81 has quit [Client Quit]
robertjpayne has quit [Remote host closed the connection]
Nss has quit [Quit: Sto andando via]
dhruvasagar has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
Xaitec_______ has quit [Remote host closed the connection]
wallerdev has joined #ruby
cody-- has joined #ruby
goshakkk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Astral_ has quit [Ping timeout: 260 seconds]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv has quit [Remote host closed the connection]
Flashmasterson has quit [Quit: Leaving.]
yacks has quit [Quit: Leaving]
headius has quit [Ping timeout: 264 seconds]
lukec has quit [Quit: lukec]
fridim_ has joined #ruby
<dachi>
Even threads won't help....
JohnBat26 has quit [Remote host closed the connection]
Xaitec has joined #ruby
bradhe has joined #ruby
youcallme has quit [Remote host closed the connection]
Ox6abe has quit [Remote host closed the connection]
IceDragon has joined #ruby
polaco_zZz is now known as polaco
krainboltgreene has joined #ruby
krainboltgreene has quit [Client Quit]
shredding has quit [Quit: shredding]
cody-- has quit [Quit: Computer has gone to sleep.]
shredding has joined #ruby
apeiros has quit [Remote host closed the connection]
zimbo has quit [Remote host closed the connection]
<havenwood>
reminds me of Rails threads on the matter...
adkron has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
alyi has joined #ruby
carlyle has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
tatsuya_o has joined #ruby
<dorei>
it's pretty handy with strings and regular expressions, suppose you want to set a boolean whether a string matches a regexp, it can be done like: flag = !!str[regxp]
Lewix has joined #ruby
Lewix has quit [Changing host]
Lewix has joined #ruby
jibi has joined #ruby
<havenwood>
dorei: you don't need to convert to a boolean to evaluate truthiness, like Morrolan pointed out
<Morrolan>
Unless the code which uses that flag does something very silly (like type checking), it won't actually care whether you pass it true, "hello world", or 123.5
endash has joined #ruby
<Morrolan>
But if it makes the intent clearer then sure, use !!. :)
<havenwood>
deavid: i.e., if `flag = 0` you can still `if flag ...` and it will be as-good-as-true
Ox6abe has quit [Remote host closed the connection]
adkron_ has quit [Ping timeout: 264 seconds]
Ox6abe_ has joined #ruby
duggiefresh has joined #ruby
staafl has joined #ruby
intothev01d has joined #ruby
intothev01d has left #ruby [#ruby]
<dorei>
what about memory usage? if no typecasting into boolean, then an object might not be garbage collected
Rym has quit [Read error: Connection reset by peer]
Rym_ has joined #ruby
rcosta has joined #ruby
adkron has joined #ruby
Bosox20051 has quit [Quit: Leaving]
Ox6abe__ has joined #ruby
gustavn has quit [Quit: Leaving]
Ox6abe_ has quit [Ping timeout: 260 seconds]
Ox6abe has joined #ruby
havenwood has quit [Remote host closed the connection]
Ox6abe_ has joined #ruby
Ox6abe__ has quit [Ping timeout: 264 seconds]
Lewix has quit [Remote host closed the connection]
quoin has joined #ruby
Lewix has joined #ruby
ewnd9 has quit [Read error: Operation timed out]
Ox6abe__ has joined #ruby
Ox6abe has quit [Ping timeout: 268 seconds]
Ox6abe_ has quit [Ping timeout: 264 seconds]
Xeago has joined #ruby
quoin has quit [Ping timeout: 264 seconds]
Ox6abe has joined #ruby
tabolario has joined #ruby
Lewix has quit [Ping timeout: 264 seconds]
lukec has joined #ruby
endash has quit [Quit: endash]
Ox6abe_ has joined #ruby
peregrine81 has joined #ruby
Ox6abe__ has quit [Ping timeout: 256 seconds]
adkron__ has joined #ruby
cody-- has joined #ruby
adkron has quit [Ping timeout: 260 seconds]
bd-pdx has quit [Remote host closed the connection]
goganchic has quit []
Ox6abe has quit [Ping timeout: 264 seconds]
nwertman_ has quit [Ping timeout: 268 seconds]
azcodex has quit [Read error: Connection reset by peer]
Ox6abe has joined #ruby
browndawg has left #ruby [#ruby]
Ox6abe_ has quit [Ping timeout: 245 seconds]
snearch has quit [Quit: Verlassend]
eka has joined #ruby
locriani has quit [Remote host closed the connection]
locriani has joined #ruby
brianpWins has joined #ruby
KevinSjoberg has joined #ruby
rcosta has quit [Ping timeout: 245 seconds]
Tricon has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
stonevil has joined #ruby
mark_locklear has joined #ruby
timonv has joined #ruby
vlad_starkov has joined #ruby
timonv has quit [Remote host closed the connection]
duggiefresh has quit [Remote host closed the connection]
aryaching has quit [Ping timeout: 268 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
dkamioka has joined #ruby
Notte has joined #ruby
dankest has joined #ruby
rcosta has joined #ruby
nwertman has quit [Remote host closed the connection]
shaunbaker has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
Davey has joined #ruby
ehaliewicz has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Remote host closed the connection]
Macaveli has joined #ruby
decoponio has quit [Quit: Leaving...]
adkron__ has quit [Ping timeout: 240 seconds]
machuga|away is now known as machuga
chairabanta has quit [Quit: Leaving...]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
adkron_ has joined #ruby
ehaliewicz has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti!]
chairabanta has joined #ruby
TripleDES has joined #ruby
rcosta has quit [Remote host closed the connection]
kilophoton has quit [Ping timeout: 264 seconds]
Macaveli has quit [Quit: Computer has gone to sleep.]
Tuxist has quit [Read error: Connection reset by peer]
pyrac has quit [Quit: pyrac]
Tuxist has joined #ruby
Tuxist has quit [Read error: Connection reset by peer]
goshakkk has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cody-- has quit [Quit: Computer has gone to sleep.]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Macaveli has joined #ruby
chairabanta has quit [Quit: Leaving...]
adkron__ has joined #ruby
Aryasam has joined #ruby
<existensil_>
I would like to store some frequently used and rarely changed app settings in my data store. I don't want each instance of my app to read from the store constantly, so I'd like to have each instance keep them in memory and refresh every 5 minutes or so. What is a sane way to do this?
existensil_ is now known as existensil
workmad3 has joined #ruby
Tricon has quit [Quit: Bye!]
pyrac has joined #ruby
bjorkintosh has joined #ruby
bjorkintosh has left #ruby ["Leaving"]
greenride has joined #ruby
<existensil>
Assuming a rails web app, would it be sane to kick off a thread on environment startup that sleeps for 5 minutes and refreshes the values stored in singleton?
Tricon has joined #ruby
adkron_ has quit [Ping timeout: 258 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
duggiefresh has joined #ruby
adkron__ has quit [Ping timeout: 264 seconds]
jonkri has quit [Quit: jonkri]
plotter has joined #ruby
adkron_ has joined #ruby
m8 has joined #ruby
motto has quit [Ping timeout: 240 seconds]
jtgiri_ has joined #ruby
vlad_starkov has joined #ruby
snath has quit [Ping timeout: 245 seconds]
forcefsck has quit [Quit: Ex-Chat]
platzhirsch has left #ruby [#ruby]
tealmage has quit [Remote host closed the connection]
<gtrak>
hey guys.. is there any way to get the underlying html of a Mechanize::Page response?
banisterfiend is now known as banister`sleep
dpritchett has joined #ruby
<dpritchett>
Morning!
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<gtrak>
ah, maybe I should google :-)
<staafl>
dpritchett, morning?
<gtrak>
.body does the trick
<staafl>
dpritchett, are you East Asia?
<dpritchett>
nope
<dpritchett>
I just logged in to IRC though, so this is the beginning of my work day
<staafl>
I see
<staafl>
well then, good morrow to you and the best of days :-)
<dpritchett>
Does anyone have a favorite technique for renaming a gem's included instance method that is getting clobbered by *another* instance method included from a second gem?
<dpritchett>
In this case it's ActiveRecord::Base models getting a #search method from both Tire and Ransack
<dpritchett>
Ransack is currently winning and I want to preserve it while still giving myself access to the Tire search by another name.
s0ny123 has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
Bry8Star{T2 has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
stevechiagozie has joined #ruby
lfox has joined #ruby
timonv has joined #ruby
duggiefresh has joined #ruby
alyi has quit [Read error: Connection reset by peer]
tatsuya_o has quit [Ping timeout: 268 seconds]
kirun has quit [Quit: Client exiting]
alx- has quit [Quit: Leaving...]
Xaitec has joined #ruby
Xaitec has quit [Remote host closed the connection]
snath has quit [Ping timeout: 256 seconds]
yfeldblum has joined #ruby
spider-mario has quit [Remote host closed the connection]
DonRichie has quit [Quit: Verlassend]
timonv has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
vikhyat_ has quit [Remote host closed the connection]
weeb1e_ has joined #ruby
toothe_ has joined #ruby
workmad3 has joined #ruby
thoraxe_ has joined #ruby
kpwz_ has joined #ruby
TwinkleH1od has joined #ruby
Muz_ has joined #ruby
rotor` has joined #ruby
sumark_ has joined #ruby
chiel_ has joined #ruby
yeltzooo6 has joined #ruby
Xeago has quit [Remote host closed the connection]
jso_ has joined #ruby
Some-body_ has joined #ruby
sirecote_ has joined #ruby
LoRe_ has joined #ruby
zendeavr has joined #ruby
optimusprimem has quit [*.net *.split]
sirecote has quit [*.net *.split]
sumark has quit [*.net *.split]
[Neurotic] has quit [*.net *.split]
LoRe has quit [*.net *.split]
chiel has quit [*.net *.split]
waxjar has quit [*.net *.split]
jso has quit [*.net *.split]
cjk101010 has quit [*.net *.split]
weeb1e has quit [*.net *.split]
thoraxe has quit [*.net *.split]
toothe has quit [*.net *.split]
gregorg has quit [*.net *.split]
DarthGandalf has quit [*.net *.split]
Muz has quit [*.net *.split]
kpwz has quit [*.net *.split]
TwinkleHood has quit [*.net *.split]
zendeavor has quit [*.net *.split]
yeltzooo has quit [*.net *.split]
jeremyb has quit [*.net *.split]
aliljet has quit [*.net *.split]
rotor has quit [*.net *.split]
wuest has quit [*.net *.split]
kobain has quit [*.net *.split]
karupanerura has quit [*.net *.split]
cibs has quit [*.net *.split]
adkron_ has quit [*.net *.split]
duggiefresh has quit [*.net *.split]
tealmage has quit [*.net *.split]
duke_nukem has quit [*.net *.split]
Rym_ has quit [*.net *.split]
yacks has quit [*.net *.split]
pen has quit [*.net *.split]
ahill-89 has quit [*.net *.split]
asuka has quit [*.net *.split]
unixninja92 has quit [*.net *.split]
telling has quit [*.net *.split]
mmm has quit [*.net *.split]
rcs has quit [*.net *.split]
larissa has quit [*.net *.split]
maroloccio has quit [*.net *.split]
jsaak has quit [*.net *.split]
bubbajones has quit [*.net *.split]
robbyoconnor has quit [*.net *.split]
x0nic has quit [*.net *.split]
RORgasm has quit [*.net *.split]
Aloysius1 has quit [*.net *.split]
froy has quit [*.net *.split]
pinage404 has quit [*.net *.split]
ericwood has quit [*.net *.split]
Nilium has quit [*.net *.split]
paul_k has quit [*.net *.split]
machuga|away has quit [*.net *.split]
onewheelskyward has quit [*.net *.split]
blz37 has quit [*.net *.split]
tommylommykins has quit [*.net *.split]
smlgs has quit [*.net *.split]
micah` has quit [*.net *.split]
redgetan has quit [*.net *.split]
zeusmns has quit [*.net *.split]
darkc0met has quit [*.net *.split]
RTG` has quit [*.net *.split]
wykydtron has quit [*.net *.split]
_br_ has quit [*.net *.split]
mvangal__ has quit [*.net *.split]
ozzloy has quit [*.net *.split]
Andrevan has quit [*.net *.split]
ixti has quit [*.net *.split]
danman has quit [*.net *.split]
eregon_ has quit [*.net *.split]
Soda has quit [*.net *.split]
m8 has quit [*.net *.split]
MiguelGD has quit [*.net *.split]
dorei has quit [*.net *.split]
rickmasta has quit [*.net *.split]
Spami has quit [*.net *.split]
lotherk has quit [*.net *.split]
go|dfish has quit [*.net *.split]
Tarential has quit [*.net *.split]
ferdev has quit [*.net *.split]
dross has quit [*.net *.split]
spike|spiegel has quit [*.net *.split]
LiquidInsect has quit [*.net *.split]
jaynewst_ has quit [*.net *.split]
nazty has quit [*.net *.split]
echevemaster has quit [*.net *.split]
zets has quit [*.net *.split]
AlSquire has quit [*.net *.split]
io_syl has quit [*.net *.split]
blooberr has quit [*.net *.split]
Domon_ has quit [*.net *.split]
braincra- has quit [*.net *.split]
sethetter has quit [*.net *.split]
radic__ has quit [*.net *.split]
ericmathison has quit [*.net *.split]
Kneferilis has quit [*.net *.split]
jmccune has quit [*.net *.split]
malcolmva has quit [*.net *.split]
graft has quit [*.net *.split]
Blue_Ice has quit [*.net *.split]
dayepa has quit [*.net *.split]
mikemar10 has quit [*.net *.split]
awpti has quit [*.net *.split]
naquad has quit [*.net *.split]
elektronaut has quit [*.net *.split]
zacts has quit [*.net *.split]
mist has quit [*.net *.split]
Schuy13r has quit [*.net *.split]
slash_nick has quit [*.net *.split]
askhader has quit [*.net *.split]
denken has quit [*.net *.split]
karnowski has quit [*.net *.split]
TheHodge has quit [*.net *.split]
three18ti has quit [*.net *.split]
sysop2 has quit [*.net *.split]
Koshian has quit [*.net *.split]
dyoung522 has quit [*.net *.split]
joschi has quit [*.net *.split]
Skelz0r has quit [*.net *.split]
defrag has quit [*.net *.split]
jolleyjoe has quit [*.net *.split]
lfox has quit [*.net *.split]
Cheos has quit [*.net *.split]
jonahR has quit [*.net *.split]
endash has quit [*.net *.split]
Emmanuel_Chanel has quit [*.net *.split]
Jb____ has quit [*.net *.split]
TripleDES has quit [*.net *.split]
relix has quit [*.net *.split]
jibi has quit [*.net *.split]
dtcrshr has quit [*.net *.split]
snovak has quit [*.net *.split]
tomzx_mac has quit [*.net *.split]
Bish has quit [*.net *.split]
bakedb has quit [*.net *.split]
claymore has quit [*.net *.split]
musl has quit [*.net *.split]
zarul has quit [*.net *.split]
wesside has quit [*.net *.split]
hackerpreneur has quit [*.net *.split]
i8igmac has quit [*.net *.split]
brisbin has quit [*.net *.split]
Mattias has quit [*.net *.split]
JZTech101 has quit [*.net *.split]
wudofyr has quit [*.net *.split]
shevy has quit [*.net *.split]
Kovensky has quit [*.net *.split]
FDj has quit [*.net *.split]
hiyosi has quit [*.net *.split]
m_3 has quit [*.net *.split]
jglauche has quit [*.net *.split]
adamholt has quit [*.net *.split]
kung has quit [*.net *.split]
ping-pong has quit [*.net *.split]
neektza1 has quit [*.net *.split]
DanielPy has quit [*.net *.split]
thelamest has quit [*.net *.split]
crazed has quit [*.net *.split]
Nuck has quit [*.net *.split]
mrapple has quit [*.net *.split]
xargoon has quit [*.net *.split]
jbc22 has quit [*.net *.split]
JonathanNeal has quit [*.net *.split]
fearoffish has quit [*.net *.split]
patronus has quit [*.net *.split]
johnjay1 has quit [*.net *.split]
destructure has quit [*.net *.split]
shaman42 has quit [*.net *.split]
ainame has quit [*.net *.split]
anderson has quit [*.net *.split]
MarcWeber has quit [*.net *.split]
taion809 has quit [*.net *.split]
bronson_ has quit [*.net *.split]
TomRone has quit [*.net *.split]
SirFunk has quit [*.net *.split]
wormwood has quit [*.net *.split]
Kruppe has quit [*.net *.split]
psyprus has quit [*.net *.split]
lunarjar has quit [*.net *.split]
Buuyo has quit [*.net *.split]
kkh has quit [*.net *.split]
dlind has quit [*.net *.split]
nnww has quit [*.net *.split]
conceal_rs_____0 has quit [*.net *.split]
crazedpsyc has quit [*.net *.split]
closer has quit [*.net *.split]
sirecote_ is now known as sirecote
rotor` is now known as rotor
Some-body_ is now known as DarthGandalf
bricker has quit [Ping timeout: 269 seconds]
woolite64 has quit [Ping timeout: 264 seconds]
optimusprimem has joined #ruby
karupanerura has joined #ruby
cibs has joined #ruby
closer has joined #ruby
tabolario has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Nilium has joined #ruby
i8igmac has joined #ruby
dankest has quit [Read error: Connection reset by peer]
tommylommykins has joined #ruby
kobain has joined #ruby
colonolGron has quit [Quit: Lost terminal]
agjacome has quit [Quit: leaving]
kobain has quit [Client Quit]
bradhe has joined #ruby
woolite64 has joined #ruby
duke_nukem has joined #ruby
Rym_ has joined #ruby
cjk101010_ has joined #ruby
adkron_ has joined #ruby
pen has joined #ruby
jeremyb_ has joined #ruby
yacks has joined #ruby
unixninja92 has joined #ruby
larissa has joined #ruby
froy has joined #ruby
robbyoconnor has joined #ruby
rcs has joined #ruby
pinage404 has joined #ruby
blz37 has joined #ruby
tealmage has joined #ruby
zeusmns has joined #ruby
onewheelskyward has joined #ruby
asuka has joined #ruby
wykydtron has joined #ruby
RTG` has joined #ruby
darkc0met has joined #ruby
mvangal__ has joined #ruby
jsaak has joined #ruby
paul_k has joined #ruby
x0nic has joined #ruby
_br_ has joined #ruby
micah` has joined #ruby
telling has joined #ruby
redgetan has joined #ruby
mmm has joined #ruby
ericwood has joined #ruby
Aloysius1 has joined #ruby
machuga|away has joined #ruby
RORgasm has joined #ruby
ozzloy has joined #ruby
bubbajones has joined #ruby
ahill-89 has joined #ruby
duggiefresh has joined #ruby
anderson has joined #ruby
MarcWeber has joined #ruby
wormwood has joined #ruby
TomRone has joined #ruby
taion809 has joined #ruby
crazedpsyc has joined #ruby
dlind has joined #ruby
Kruppe has joined #ruby
conceal_rs_____0 has joined #ruby
kkh has joined #ruby
nnww has joined #ruby
lunarjar has joined #ruby
psyprus has joined #ruby
bronson_ has joined #ruby
SirFunk has joined #ruby
Buuyo has joined #ruby
anderson has left #ruby [#ruby]
aef has quit [Excess Flood]
maroloccio has joined #ruby
dyoung522 has joined #ruby
ixti has joined #ruby
m8 has joined #ruby
jmccune has joined #ruby
TheHodge has joined #ruby
blooberr has joined #ruby
naquad has joined #ruby
denken has joined #ruby
dorei has joined #ruby
sysop2 has joined #ruby
karnowski has joined #ruby
Soda has joined #ruby
mikemar10 has joined #ruby
graft has joined #ruby
Skelz0r has joined #ruby
Domon_ has joined #ruby
Blue_Ice has joined #ruby
thelamest has joined #ruby
askhader has joined #ruby
nazty has joined #ruby
jaynewst_ has joined #ruby
awpti has joined #ruby
zacts has joined #ruby
go|dfish has joined #ruby
braincra- has joined #ruby
slash_nick has joined #ruby
radic__ has joined #ruby
jolleyjoe has joined #ruby
MiguelGD has joined #ruby
ferdev has joined #ruby
mist has joined #ruby
joschi has joined #ruby
Schuy13r has joined #ruby
lotherk has joined #ruby
Kneferilis has joined #ruby
io_syl has joined #ruby
danman has joined #ruby
LiquidInsect has joined #ruby
Spami has joined #ruby
eregon_ has joined #ruby
rickmasta has joined #ruby
Koshian has joined #ruby
AlSquire has joined #ruby
dayepa has joined #ruby
sethetter has joined #ruby
ericmathison has joined #ruby
malcolmva has joined #ruby
Tarential has joined #ruby
Andrevan has joined #ruby
echevemaster has joined #ruby
three18ti has joined #ruby
defrag has joined #ruby
dross has joined #ruby
elektronaut has joined #ruby
spike|spiegel has joined #ruby
cads has joined #ruby
musl has joined #ruby
Jb____ has joined #ruby
zarul has joined #ruby
gregorg has joined #ruby
lfox has joined #ruby
dtcrshr has joined #ruby
crazed has joined #ruby
jonahR has joined #ruby
Mattias has joined #ruby
relix has joined #ruby
hackerpreneur has joined #ruby
jbc22 has joined #ruby
Emmanuel_Chanel has joined #ruby
wudofyr has joined #ruby
wesside has joined #ruby
JonathanNeal has joined #ruby
hiyosi has joined #ruby
brisbin has joined #ruby
ainame has joined #ruby
FDj has joined #ruby
jibi has joined #ruby
jglauche has joined #ruby
xargoon has joined #ruby
Bish has joined #ruby
DanielPy has joined #ruby
aliljet_ has joined #ruby
adamholt has joined #ruby
waxjar_ has joined #ruby
Cheos has joined #ruby
mrapple has joined #ruby
TripleDES has joined #ruby
johnjay1 has joined #ruby
bakedb has joined #ruby
JZTech101 has joined #ruby
destructure has joined #ruby
snovak has joined #ruby
tomzx_mac has joined #ruby
shaman42 has joined #ruby
neektza1 has joined #ruby
endash has joined #ruby
Nuck has joined #ruby
Kovensky has joined #ruby
wuest_ has joined #ruby
m_3 has joined #ruby
shevy has joined #ruby
patronus has joined #ruby
fearoffish has joined #ruby
kung has joined #ruby
ping-pong has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
optimusprimem has quit [Quit: Saindo]
go|dfish has quit [Max SendQ exceeded]
maroloccio has quit [Max SendQ exceeded]
dayepa has quit [Remote host closed the connection]
JZTech101 has quit [Max SendQ exceeded]
cads has quit [Max SendQ exceeded]
dayepa has joined #ruby
danman has quit [Ping timeout: 245 seconds]
optimusprimem has joined #ruby
danman has joined #ruby
JZTech101 has joined #ruby
go|dfish has joined #ruby
lessless has quit [Remote host closed the connection]
cads has joined #ruby
cam`_ has quit [Ping timeout: 245 seconds]
aef has joined #ruby
dnyy has quit [Ping timeout: 245 seconds]
zets has joined #ruby
jayne has joined #ruby
maroloccio has joined #ruby
dankest has joined #ruby
chiel_ is now known as chiel
snovak has quit [Remote host closed the connection]
mrsolo has joined #ruby
ahill-89 has quit [Quit: leaving]
jibi has quit [Quit: .]
DrCode has quit [Ping timeout: 240 seconds]
lmwood has quit [Read error: Connection reset by peer]
bradhe has quit [Ping timeout: 240 seconds]
woolite64 has quit [Ping timeout: 260 seconds]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
dkamioka has quit [Read error: Connection reset by peer]
quoin has joined #ruby
azcodex has joined #ruby
vlad_starkov has joined #ruby
alx- has joined #ruby
Anarch has quit [Ping timeout: 256 seconds]
alx- has quit [Client Quit]
visof has joined #ruby
Koa has quit [Ping timeout: 264 seconds]
jamesaanderson has joined #ruby
jmc-be has joined #ruby
quoin has quit [Ping timeout: 260 seconds]
gr33n7007h has joined #ruby
jp- has joined #ruby
<shevy>
dumdedum
<shevy>
somehow rewrites always seem to take longer than one expected them to be in the firstp lace
hackerpreneur has quit [Quit: Need instant coding help? --> www.airpair.com]
DrCode has joined #ruby
ferdev has quit [Quit: ferdev]
woolite64 has joined #ruby
hackerpreneur has joined #ruby
vlad_sta_ has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
VTLob has quit [Quit: VTLob]
vlad_starkov has quit [Read error: Connection reset by peer]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
jamesaanderson has joined #ruby
nari has joined #ruby
Monie has joined #ruby
Koa has joined #ruby
fridim_ has joined #ruby
sambao21 has joined #ruby
Monie has quit [Ping timeout: 260 seconds]
apeiros has quit [Remote host closed the connection]
Niamkik_ has quit [Quit: Disconnecting from stoned server.]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Niamkik has joined #ruby
sambao21 has quit [Ping timeout: 245 seconds]
xpirator has quit [Ping timeout: 264 seconds]
rcosta has quit [Remote host closed the connection]
ccbn has joined #ruby
zarul has quit [Ping timeout: 268 seconds]
Targen has quit [Read error: Operation timed out]
senayar has joined #ruby
<ccbn>
I'm writing a simple Sinatra app that displays a list of files from a directory on a remote server. I use net/ssh to get the stdout of 'ls -alh' on the remote system. I'd rather not have to do this on every request. I would like to have it run in the background on an interval, and update HTTP clients via jQuery. Would I need to use threads to have the SSH process running on an interval with a thread to do this?
narcan has joined #ruby
zarul has joined #ruby
visof has quit [Quit: Leaving]
mgorbach has quit [Read error: Operation timed out]
<r0bglees0n>
ccbn: interesting problem. I'd separate the SSH layer completely. I'd implement an endpoint that the SSH layer could push data to whenever it has finished polling. the process that would poll SSH would be separate and notify the web services whenever it had data. the web service might update an in-memory data structure that kept this data.
<jrobeson>
ccbn, perhaps you should go the opposite way.. use inotify on ssh and push all directory/file chaneges
<jrobeson>
use inotify on the server where you're connecting to ssh i mean
<jrobeson>
ah basically the same thing as r0bglees0n said..
DanKnox is now known as DanKnox_away
<jrobeson>
expect being specifiy about inotify for monitoring..
<ccbn>
r0bglees0n: thanks, I guess I just felt like it had to be part of the sinatra app
mgorbach has joined #ruby
<jrobeson>
if the server side doesn't change often.. you can always just cache the results :)
m8 has quit [Quit: Sto andando via]
<r0bglees0n>
ccbn: yeah, I think you can take advantage of HTTP here and keep the SSH polling or update separate.
<r0bglees0n>
the endpoint might need to be secured and an in-memory data structure may need to be guarded against concurrent writes/updates.
<ccbn>
jrobeson: I thought about using inotify but the server isn't mine and I wanted to keep things running on the local end. The contents don't change often, I just wanted to learn jQuery
zarul has quit [Read error: Operation timed out]
<jrobeson>
i'm not surre when inotify was added exactly, but it's been a few years since it was added to a 2.6 kernel out of the box
<jrobeson>
well perhaps you shouldn't bother with files at all and use something else
zarul has joined #ruby
<r0bglees0n>
easy concurrency is a new (random) key that the SSH dump gets added to
Astralum has quit [Ping timeout: 264 seconds]
<r0bglees0n>
a read will read the last key
AndChat| has joined #ruby
<r0bglees0n>
on 1.9 hash are insert-ordered
<r0bglees0n>
so you'll always have the latest blob/SSH dump
<r0bglees0n>
and you dont need to use a mutex or any of that
<r0bglees0n>
you might need to recycyle the keys now and then
jefflyne2 has joined #ruby
LaPetiteFromage has joined #ruby
<ccbn>
But I'm passing this hash between the sinatra app and some other SSH app?
<r0bglees0n>
nah, the hash is the sinatra's app internal representation, the SSH process sends nothing but a string. the web service finds a unique random key that won't conflict with any other, and adds the blob.
<r0bglees0n>
the "read last value" is @map.values[-1]
iliketur_ has joined #ruby
<ccbn>
Forgive my ignorance, but would this string be passed via HTTP POST?
<r0bglees0n>
sure
<r0bglees0n>
you want to solve the problem of "POST reassigns in-memory data structure while HTTP client tries to read it".
<r0bglees0n>
it might be nil.
<r0bglees0n>
anyway it might be getting overkill
<r0bglees0n>
the general idea is to do it like that
<ccbn>
Okay, I think I get the idea. Thanks
<ccbn>
This looks much better than my original idea
banister`sleep has quit [Quit: Computer has gone to sleep.]
<r0bglees0n>
yeah, I imagine it is easier to test the separate parts now as well
<r0bglees0n>
you can test the endpoint separately and the SSH stuff separately
<r0bglees0n>
if everything is in the application its harder
banisterfiend has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
AlSquire has quit [Quit: This computer has gone to sleep]
Nisstyre-laptop has joined #ruby
snath has joined #ruby
tkuchiki has joined #ruby
nisstyre has quit [Read error: Operation timed out]
nari has quit [Ping timeout: 264 seconds]
snovak has joined #ruby
DrCode has quit [Remote host closed the connection]
[Neurotic] has joined #ruby
Klotho1 has quit [Ping timeout: 264 seconds]
TripleDES has quit [Ping timeout: 268 seconds]
tkuchiki has quit [Ping timeout: 260 seconds]
mercwithamouth has quit [Ping timeout: 256 seconds]
predator117 has joined #ruby
rcosta has joined #ruby
quoin has joined #ruby
pwh has joined #ruby
locriani has quit [Remote host closed the connection]
tkuchiki has joined #ruby
snovak has quit [Read error: Operation timed out]
DrCode has joined #ruby
tkuchiki has quit [Remote host closed the connection]
locriani has joined #ruby
predator217 has quit [Ping timeout: 264 seconds]
tkuchiki has joined #ruby
nfk has quit [Quit: yawn]
mercwithamouth has joined #ruby
quoin has quit [Ping timeout: 256 seconds]
ksh has quit [Remote host closed the connection]
ksh has joined #ruby
locriani has quit [Ping timeout: 264 seconds]
nari has joined #ruby
tkuchiki has quit [Ping timeout: 260 seconds]
SHyx0rmZ has joined #ruby
sambao21 has joined #ruby
pontiki has quit [Quit: rebooting]
pontiki has joined #ruby
dodosan has joined #ruby
DanKnox_away is now known as DanKnox
sambao21 has quit [Ping timeout: 260 seconds]
Ripp__ has joined #ruby
Davey has joined #ruby
Davey has quit [Client Quit]
Davey has joined #ruby
senayar has quit [Remote host closed the connection]
cody-- has joined #ruby
mary5030 has joined #ruby
mercwithamouth has quit [Ping timeout: 260 seconds]
Quashie has joined #ruby
theows has joined #ruby
kobain has joined #ruby
ssvo has joined #ruby
amacgregor has quit [Read error: Connection reset by peer]
soulcake has quit [Ping timeout: 248 seconds]
JumpMast3r has joined #ruby
soulcake has joined #ruby
atno is now known as atno|Zzz
mercwithamouth has joined #ruby
JumpMast3r has quit [Client Quit]
Andrevan has quit [Ping timeout: 245 seconds]
jmc-be has quit []
ccolorado has joined #ruby
<ccolorado>
What is the best way to manage command line options and arguments ?
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]