<CpuID>
im seeing the comment re "ignoring request :do_request for non-existent (closed?) channel; probably ssh server bug" in both posts
<CpuID>
and im seeing the same thing right before the timeout/error
pencilcheck has joined #ruby
<CpuID>
seems to be multiple hosts, centos and ubuntu server
<CpuID>
openssh 5.3p1 and openssh 5.9p1 on the servers
endash has quit [Quit: endash]
Mars` has quit [Read error: Connection reset by peer]
RichardBaker has quit [Quit: RichardBaker]
petey has joined #ruby
Mars` has joined #ruby
PragCypher has quit [Quit: Leaving]
einarj has quit [Ping timeout: 245 seconds]
tirengarfio has joined #ruby
benweint has quit [Quit: Computer has gone to sleep.]
drumsrgr8forn8 has joined #ruby
randomnick_ has quit [Remote host closed the connection]
CpuID has quit [Quit: Leaving]
clov3r has joined #ruby
nari has joined #ruby
asdasd has joined #ruby
clov3r has quit [Read error: Connection reset by peer]
mrsolo has quit [Quit: This computer has gone to sleep]
Hanmac has joined #ruby
beilabs has quit [Ping timeout: 272 seconds]
nemysis has quit [Ping timeout: 240 seconds]
qubit has joined #ruby
i_s has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
i_s has joined #ruby
lassebunk has quit [Remote host closed the connection]
tylersmith has quit [Remote host closed the connection]
zeade has quit [Quit: Leaving.]
NicolasTarzia has quit [Ping timeout: 240 seconds]
kreeves has joined #ruby
i_s_ has joined #ruby
i_s has quit [Read error: Connection reset by peer]
i_s_ has quit [Remote host closed the connection]
zz_tsykoduk is now known as tsykoduk
i_s has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
benlieb has joined #ruby
filipe has quit [Remote host closed the connection]
fayimora has quit [Quit: zzzzz...]
braincra- has quit [Ping timeout: 252 seconds]
pencilcheck has quit [Remote host closed the connection]
mikeric has quit []
i_s has quit [Ping timeout: 272 seconds]
nari has quit [Ping timeout: 268 seconds]
monsterment has joined #ruby
Guedes0 has quit [Quit: Saindo]
starfox21 has quit [Quit: starfox21]
beilabs has joined #ruby
kaspergrubbe has joined #ruby
kreeves has quit []
petey has quit [Remote host closed the connection]
petey has joined #ruby
someish has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
monsterment has quit [Quit: Leaving]
Jayflux has quit [Read error: Connection reset by peer]
petey has quit [Ping timeout: 272 seconds]
hogeo has joined #ruby
ner0x has joined #ruby
hogeo has quit [Remote host closed the connection]
tkuchiki has joined #ruby
hogeo has joined #ruby
mmitchell has joined #ruby
astrobunny has quit [Ping timeout: 268 seconds]
tjbiddle has quit [Quit: tjbiddle]
Greg__ has joined #ruby
r0bgleeson has quit [Quit: WeeChat 0.4.1]
mixel has quit [Quit: mixel]
dontdont has left #ruby [#ruby]
drumsrgr8forn8 has quit [Ping timeout: 240 seconds]
mrsolo has joined #ruby
ryotarai has joined #ruby
nemysis has joined #ruby
joshAnderson99 has quit [Quit: Leaving]
Greg__ has quit [Remote host closed the connection]
astrobunny has joined #ruby
jibi has quit [Quit: .]
pen has joined #ruby
sevenseacat has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
benlieb_ has joined #ruby
jonathanwallace has joined #ruby
benlieb has quit [Ping timeout: 240 seconds]
benlieb_ is now known as benlieb
katsrc has quit [Read error: Connection reset by peer]
xk_id has quit [Quit:
DanKnox is now known as DanKnox_away
dhruvasagar has joined #ruby
pencilcheck has joined #ruby
kpshek has joined #ruby
Mars` has quit [Remote host closed the connection]
Mars` has joined #ruby
nathancahill has quit [Quit: nathancahill]
astrobunny has quit [Ping timeout: 272 seconds]
pen has quit [Ping timeout: 240 seconds]
nari has joined #ruby
petey has joined #ruby
jonathanwallace has quit [Quit: WeeChat 0.4.1]
pencilcheck has quit [Remote host closed the connection]
petey has quit [Remote host closed the connection]
petey has joined #ruby
gyre007 has quit [Ping timeout: 268 seconds]
Monie has joined #ruby
Mars` has quit [Ping timeout: 264 seconds]
astrobunny has joined #ruby
drumsrgr8forn8 has joined #ruby
dagobah_ has joined #ruby
petey has quit [Ping timeout: 240 seconds]
stonevil has quit [Remote host closed the connection]
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Voodoofish430 has quit [Quit: Leaving.]
stonevil has joined #ruby
dagobah has quit [Read error: Connection reset by peer]
dagnachew has quit [Read error: Connection reset by peer]
lewis has joined #ruby
InFlames has joined #ruby
drumsrgr8forn8 has quit [Ping timeout: 240 seconds]
agent_white has joined #ruby
mlpinit has joined #ruby
baroquebobcat has joined #ruby
Jdubs has quit [Remote host closed the connection]
Jdubs has joined #ruby
tsykoduk is now known as zz_tsykoduk
duggiefresh has quit [Ping timeout: 260 seconds]
thumpba has quit [Quit: thumpba]
stonevil has quit [Ping timeout: 265 seconds]
johnmilton has quit [Ping timeout: 240 seconds]
astrobunny has quit [Ping timeout: 272 seconds]
zz_tsykoduk is now known as tsykoduk
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
reset has quit [Quit: Leaving...]
reset has joined #ruby
rgbdev has quit [Quit: rgbdev]
Jdubs has quit [Ping timeout: 272 seconds]
soheil has quit [Remote host closed the connection]
soheil has joined #ruby
Hanmac has joined #ruby
lethjakman has quit [Ping timeout: 240 seconds]
rgbdev has joined #ruby
astrobunny has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
reset has quit [Ping timeout: 240 seconds]
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
tsykoduk is now known as zz_tsykoduk
jrp has joined #ruby
fayimora has joined #ruby
soheil has quit [Ping timeout: 272 seconds]
jrp has left #ruby [#ruby]
Hanmac has quit [Ping timeout: 264 seconds]
CreativeEmbassy has joined #ruby
zz_tsykoduk is now known as tsykoduk
CreativeEmbassy has quit [Client Quit]
jalcine_ is now known as jalcine
nisstyre has quit [Quit: Leaving]
smathieu has quit [Ping timeout: 245 seconds]
phantasm66 has joined #ruby
phantasm66 has quit [Remote host closed the connection]
gmas has quit [Read error: Operation timed out]
sambao21 has quit [Quit: Computer has gone to sleep.]
jonathanwallace has joined #ruby
volty has quit [Quit: Konversation terminated!]
fayimora has quit [Quit: zzzzz...]
alvaro_o has quit [Quit: Ex-Chat]
ldnunes has quit [Quit: Leaving]
aspires has quit [Quit: aspires]
nathancahill has joined #ruby
c0rn_ has quit [Ping timeout: 268 seconds]
phantasm66 has joined #ruby
phantasm66 has quit [Client Quit]
fuhgeddaboudit has joined #ruby
pragmatism has quit [Quit: pragmatism]
astrobunny has quit [Ping timeout: 240 seconds]
mansi has joined #ruby
c0rn has joined #ruby
burlyscudd has joined #ruby
Domon has joined #ruby
thumpba has joined #ruby
drusepth has quit [Ping timeout: 272 seconds]
mary5030 has joined #ruby
<habstinat>
When trying to build and test ruby 1.9, I get a lot of errors like this: <http://sprunge.us/bCiL>; namely "Cannot assign requested address - bind(2)". What is the actual cause of these build test errors and how could one go about eliminating them?
tsykoduk is now known as zz_tsykoduk
benweint has joined #ruby
<sevenseacat>
you already have a server running on that port.
blarghmatey has joined #ruby
astrobunny has joined #ruby
postmodern has quit [Quit: Leaving]
bricker`1A is now known as bricker`LA
Mars` has joined #ruby
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
smathieu has joined #ruby
radic has quit [Disconnected by services]
radic_ has joined #ruby
maletor has joined #ruby
aeu has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
<habstinat>
sevenseacat: That's odd; I didn't have any webservers running on that computer that I can remember. Are you talking about port 2? Is there any way I can see what specifically is running on that port so I can kill it?
<sevenseacat>
no, not port 2
drusepth has joined #ruby
<sevenseacat>
webrick usually runs on port 3000
aeu has quit [Client Quit]
orionstein is now known as orionstein_away
mlue has quit [Quit: Lost terminal]
kobain_ has joined #ruby
kobain has quit [Ping timeout: 245 seconds]
<habstinat>
sevenseacat: Well, "lsof -i :3000" lists nothing. Are you sure the problem couldn't be something else?
smathieu has quit [Ping timeout: 240 seconds]
<sevenseacat>
fairly sure.
cainus has joined #ruby
beilabs has quit [Ping timeout: 264 seconds]
roflpox has joined #ruby
kaspergrubbe has quit [Ping timeout: 260 seconds]
beilabs has joined #ruby
roflpox has quit [Client Quit]
MrSamuel has joined #ruby
roflpox has joined #ruby
forced_request has quit [Read error: Connection reset by peer]
bobsapto has joined #ruby
zz_tsykoduk is now known as tsykoduk
IceyEC has quit [Quit: IceyEC]
astrobunny has quit [Ping timeout: 240 seconds]
someish has quit [Quit: someish]
kil0byte has quit [Remote host closed the connection]
MrPoT4tO has joined #ruby
kil0byte has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
glaksmono has quit [Quit: This computer has gone to sleep]
io_syl has quit [Ping timeout: 240 seconds]
kil0byte has quit [Remote host closed the connection]
mercwith1mouth has quit [Ping timeout: 240 seconds]
MrPoT4tO has joined #ruby
drumsrgr8forn8 has joined #ruby
MrPoT4tO has quit [Remote host closed the connection]
uokesita_ has joined #ruby
Heero has joined #ruby
Heero has quit [Client Quit]
benweint has quit [Quit: Computer has gone to sleep.]
icemancast has quit [Quit: icemancast]
thumpba has quit [Quit: thumpba]
tatsuya_o has joined #ruby
mmitchell has quit [Remote host closed the connection]
fomatin has quit [Quit: Computer has gone to sleep.]
astrobunny has quit [Ping timeout: 265 seconds]
mmitchell has joined #ruby
drumsrgr8forn8 has quit [Ping timeout: 240 seconds]
mansi has quit [Remote host closed the connection]
Hanmac has joined #ruby
roadt_ has joined #ruby
jonathanwallace has quit [Ping timeout: 260 seconds]
tatsuya_o has quit [Ping timeout: 240 seconds]
iheom has joined #ruby
icemancast has joined #ruby
mmitchell has quit [Ping timeout: 268 seconds]
astrobunny has joined #ruby
rgbdev has quit [Quit: rgbdev]
Hanmac has quit [Ping timeout: 272 seconds]
benweint has joined #ruby
mobileblue has quit [Read error: Operation timed out]
pragmatism has joined #ruby
pragmatism has quit [Remote host closed the connection]
Mars` has quit [Remote host closed the connection]
Mars` has joined #ruby
smathieu has joined #ruby
brennanMKE has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
brennanMKE has joined #ruby
obs has joined #ruby
soheil has joined #ruby
Mars` has quit [Ping timeout: 240 seconds]
smathieu has quit [Ping timeout: 272 seconds]
mobileblue has joined #ruby
cainus has quit [Ping timeout: 240 seconds]
brennanMKE has quit [Ping timeout: 245 seconds]
mlpinit_ has joined #ruby
soheil has quit [Ping timeout: 268 seconds]
anderson has quit [Ping timeout: 240 seconds]
kaspergrubbe has quit [Ping timeout: 264 seconds]
iheom has quit [Quit: Ex-Chat]
mlpinit has quit [Ping timeout: 272 seconds]
fomatin has joined #ruby
benlieb has quit [Quit: benlieb]
mlpinit has joined #ruby
mlpinit_ has quit [Ping timeout: 264 seconds]
huydx has joined #ruby
astrobunny has quit [Ping timeout: 264 seconds]
veinofstars has quit [Quit: veinofstars]
alekst has quit [Quit: Computer has gone to sleep.]
tsykoduk is now known as zz_tsykoduk
sarlalian has quit [Quit: WeeChat 0.4.0]
sarlalian has joined #ruby
astrobunny has joined #ruby
io_syl has joined #ruby
Ren has joined #ruby
c0rn has quit [Ping timeout: 240 seconds]
Ren^ has quit [Ping timeout: 240 seconds]
Ren is now known as Guest16428
brennanMKE has joined #ruby
joshAnderson99 has joined #ruby
dmiller has joined #ruby
<joshAnderson99>
hi nokogiri docs use "@doc = Nokogiri::XML(File.open("shows.xml"))" thought the ampersand could only be used as last parameter. there's some other use for ampersand?
c0rn has joined #ruby
aspiers has quit [Ping timeout: 272 seconds]
<jhn>
joshAnderson99: what ampersand?
<joshAnderson99>
see quote
<joshAnderson99>
@doc
<joshAnderson99>
sorry
<joshAnderson99>
at
veinofstars has joined #ruby
<joshAnderson99>
why one shouldn't skimp on sleep
frustrum has joined #ruby
frustrum has quit [Client Quit]
<sevenseacat>
im not sure what youre talking about
zarubin has joined #ruby
<joshAnderson99>
mistakenly thought the @ was ampersand, which i haven't seen before in ruby code, in that way.
astrobunny has quit [Ping timeout: 240 seconds]
<joshAnderson99>
but misread, and now pointed out, will check a page that explains it. new to ruby.
<joshAnderson99>
thanks
<mark06>
sevenseacat: I feel good not being alone
burlyscudd has quit [Quit: Leaving.]
snooc has joined #ruby
tylersmith has joined #ruby
mlpinit_ has joined #ruby
ZhBPi has joined #ruby
kreeves has joined #ruby
zarubin has quit [Ping timeout: 272 seconds]
frustrum has joined #ruby
astrobunny has joined #ruby
mlpinit has quit [Ping timeout: 272 seconds]
fomatin has quit [Quit: Computer has gone to sleep.]
mlpinit_ has quit [Ping timeout: 272 seconds]
fomatin has joined #ruby
ner0x has quit [Quit: Leaving]
DrCode has quit [Remote host closed the connection]
veinofstars has quit [Ping timeout: 240 seconds]
rgbdev has joined #ruby
DrCode has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
heidi has quit [Quit: Leaving.]
whunt has quit [Quit: Computer has gone to sleep.]
ehaliewicz has quit [Ping timeout: 264 seconds]
rezzack has quit [Quit: Leaving.]
monsterment has joined #ruby
muh has joined #ruby
monsterment has left #ruby [#ruby]
ehaliewicz has joined #ruby
DanKnox_away is now known as DanKnox
stefff has quit [Ping timeout: 264 seconds]
brennanMKE has quit [Remote host closed the connection]
mrsolo has quit [Quit: This computer has gone to sleep]
Hanmac has joined #ruby
blarghmatey has quit [Ping timeout: 264 seconds]
rjhunter has joined #ruby
rgbdev has quit [Quit: rgbdev]
mrsolo has joined #ruby
Hanmac has quit [Ping timeout: 245 seconds]
dhruvasagar has quit [Ping timeout: 260 seconds]
rjhunter has quit [Ping timeout: 272 seconds]
saarinen has joined #ruby
smathieu has joined #ruby
tpayne84 has joined #ruby
Mars` has joined #ruby
smathieu has quit [Ping timeout: 272 seconds]
ssmithstone has joined #ruby
astrobunny has quit [Read error: Connection reset by peer]
astrobunny has joined #ruby
deception has quit [Quit: Goodbye]
mark06 has left #ruby [#ruby]
clov3r has joined #ruby
n_blownapart has joined #ruby
cody-- has joined #ruby
snovak has joined #ruby
tdk2fe has quit [Remote host closed the connection]
snovak has quit [Remote host closed the connection]
mlpinit has joined #ruby
huydx has quit [Ping timeout: 260 seconds]
DanKnox is now known as DanKnox_away
snovak has joined #ruby
Ahti333 has quit [Ping timeout: 272 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
soba has joined #ruby
Ahti333 has joined #ruby
snovak has quit [Ping timeout: 260 seconds]
mlpinit has quit [Ping timeout: 272 seconds]
Ahti333 has quit [Ping timeout: 240 seconds]
maz-dev has quit [Ping timeout: 240 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
brunoro has quit [Quit: WeeChat 0.3.8]
mj12albert has quit [Ping timeout: 272 seconds]
polaco is now known as polaco_zZz
mj12albert has joined #ruby
kreeves has quit [Ping timeout: 268 seconds]
soba_ has joined #ruby
lukec has quit [Quit: lukec]
roflpox has quit [Remote host closed the connection]
soba has quit [Ping timeout: 240 seconds]
tpayne84 has left #ruby [#ruby]
Ahti333 has joined #ruby
kobain_ has quit []
inimit has quit [Quit: inimit]
aspires has joined #ruby
T_T has joined #ruby
n_blownapart has quit [Remote host closed the connection]
soba has joined #ruby
teapop has joined #ruby
rjhunter has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
ehaliewicz has quit [Ping timeout: 272 seconds]
soba_ has quit [Ping timeout: 240 seconds]
krz has joined #ruby
ssmithstone has quit [Read error: Connection reset by peer]
ssmithstone has joined #ruby
capnmalarkey has joined #ruby
ehaliewicz has joined #ruby
cainus has joined #ruby
FroMaster has joined #ruby
Mars` has quit [Remote host closed the connection]
banisterfiend has quit [Quit: Computer has gone to sleep.]
lethjakman has joined #ruby
<funburn>
I'm having trouble formulating my query. I have an array [10, 50, 100, 1000] and want to write a test for n = 70 that returns the last number that n was greater than in the array (50, in this case)
<funburn>
can someone just suggest a search term that will point me in the right direction?
Marshin has joined #ruby
banisterfiend has joined #ruby
<Sp4rKy>
I'd go with a.select { |x| x < 70 }.last
fgo has quit [Ping timeout: 272 seconds]
<Sp4rKy>
a is your array
<funburn>
oh hell yes!
<funburn>
that's the stuff. Thank you!
<Sp4rKy>
yw
kaspergrubbe has quit [Ping timeout: 240 seconds]
johnnyfuchs has quit [Quit: Leaving.]
mark06 is now known as pikkachu
pikkachu is now known as mark06
WillAmes has joined #ruby
<Mon_Ouie>
Or reverse_each.find { |x| x < 70 }, to avoid the creation of the new array
stonevil has quit [Remote host closed the connection]
<jlebrech>
say I have a chain of objects and the last object needs to access a variable in the furthest ancestor, can I use a pattern for that? of should I pass that value to each child?
skaflem has quit [Quit: This computer has gone to sleep]
<avril14th>
with tmp_array declared before the loop
<tobago>
avril14th, yep.
<lurch_>
can you specify in a Gemfile that you want to exclude a dependency, or overwrite it? I have a problem with a project that has a dependency on 2 other public projects (vagrant and fog), but for internal reasons i can't update vagrant to a new version while I need to upgrade fog to the latest one. Both depend on net-scp, but vagrant depends on ~> 1.0.4 while fog depends on ~>1.1 which causes errors with a bundle install
<tobago>
hoelzro, no. btw. the project still is on unmaintained ruby 1.8
<tobago>
:(
<Hanmac>
array.each_with_object([]) {|s,ary| ary << s.size if s.size < 6}
Guest16428 is now known as Ren^
<Hanmac>
oh 1.8? then my help ended there ;P
kaspergr_ has joined #ruby
dzhulk has quit [Quit: Leaving.]
francisfish has quit [Ping timeout: 260 seconds]
workmad3 has quit [Ping timeout: 272 seconds]
workmad3 has joined #ruby
Mars` has joined #ruby
plotter has quit [Read error: Connection reset by peer]
<jsaak>
if i do not want to use bundler, but i need to install a lot of dependency gems for my application, what are my options? i remember something like Gemfile for rubygems
aagdbl1 has joined #ruby
<Hanmac>
jsaak: Gemfile is for bundler
tirengarfio has quit [Read error: Connection reset by peer]
<jsaak>
yeah i know but i think there is an alternative for rubygems
Xeago has quit [Remote host closed the connection]
aagdbl has quit [Ping timeout: 268 seconds]
Mrdarknezz has quit [Ping timeout: 272 seconds]
<Hanmac>
ruby gems itself can manage its own dependencies … but only from gem -> gem … not for app -> gem
Advocation has joined #ruby
beilabs has quit [Ping timeout: 272 seconds]
<jsaak>
so the best way is to use bundler for install and then never run Bundler.setup or anything, just plain old require?
Mars` has quit [Remote host closed the connection]
beilabs has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
dzhulk has joined #ruby
<jsaak>
(basically all i want is like npm, install gems in local folder, and do all dependency and version checks at install time)
workmad3 has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
colonolGron has joined #ruby
tharindu has quit [Quit: Leaving...]
tharindu has joined #ruby
shaunbaker has quit [Remote host closed the connection]
h_kon has joined #ruby
shaunbaker has joined #ruby
mikecmpbll has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
lkba has joined #ruby
apeiros has quit [Remote host closed the connection]
aagdbl1 is now known as aagdbl
coderhs has quit [Quit: Leaving]
shaunbaker has quit [Ping timeout: 264 seconds]
siwica has joined #ruby
stonevil has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 260 seconds]
workmad3 has joined #ruby
popl has quit [Quit: We must make an idol of our fear, and call it God.]
sjltaylo_ has joined #ruby
simplex_ has quit [Ping timeout: 265 seconds]
tziOm has joined #ruby
allsystemsarego has joined #ruby
allsystemsarego has quit [Changing host]
allsystemsarego has joined #ruby
fayimora has joined #ruby
kaspergr_ has quit [Remote host closed the connection]
ioNull has joined #ruby
workmad3 has quit [Ping timeout: 268 seconds]
workmad3 has joined #ruby
ismlages has joined #ruby
nari has joined #ruby
Hanmac has quit [Quit: Leaving.]
ferdev has quit [Quit: ferdev]
siwica has quit [Read error: Operation timed out]
Stalkr_ has joined #ruby
peterhu has joined #ruby
Mrdarknezz has joined #ruby
ndrei has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
workmad3 has joined #ruby
vince_prignano has quit []
shaunbaker has joined #ruby
carraroj has joined #ruby
Hanmac has joined #ruby
mercwithamouth has joined #ruby
jb41 has joined #ruby
kil0byte has joined #ruby
siwica has joined #ruby
razi has quit [Ping timeout: 268 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
maasha has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
shaunbak_ has joined #ruby
<maasha>
Hello. I am looking for a good way to guess data types when parsing data - basically just Numeric or not.
xk_id has joined #ruby
<maasha>
Everything is parsed as strings.
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
* maasha
waits for magic suggestion
tkuchiki has quit [Read error: Connection reset by peer]
shaunbaker has quit [Ping timeout: 240 seconds]
adambeynon has joined #ruby
capnmalarkey has joined #ruby
siwica has quit [Ping timeout: 260 seconds]
sjltaylo_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
capnmalarkey has quit [Client Quit]
<maasha>
and I wonder why String have to_i and to_f methods.
workmad3 has quit [Ping timeout: 260 seconds]
<maasha>
for stuff that is alphabetic
workmad3 has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
monkegjinni has quit [Remote host closed the connection]
monkegjinni has joined #ruby
ndrei has joined #ruby
<_br_>
well, force converting it is one possiblity. But you mentioned parsed. Isn't your tokenizer supposed to correctly detect if its a numeric or not?
Giorgio has quit [Ping timeout: 272 seconds]
Kar-_ has quit [Ping timeout: 264 seconds]
<maasha>
_br_ it is a very generic parser :o/
<maasha>
_br_ but I can convert anything "foobar".to_i yield 0. the same would "0".to_i - and that will not do as a test
<maasha>
I could use regex ...
<Hanmac>
_br_ use Integer() method
lassebunk has joined #ruby
michael_mbp is now known as zz_michael_mbp
<workmad3>
>> Integer("foobar")
<eval-in>
workmad3 => invalid value for Integer(): "foobar" (ArgumentError) ... (https://eval.in/54578)
<Hanmac>
next time someone says "centos" i point and laugh about him ;P
<aep>
i can't change the sad reality of server os's
TheNotary has quit [Max SendQ exceeded]
peterhu has joined #ruby
<aep>
either you pay a small car for redhell, or you're stuck with ancient stuff
kitak has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
arkiver_ has joined #ruby
<Hanmac>
just use rvm and install an more recent ruby … (i prefer trunk ;D )
<Hanmac>
… otherwise it could have segfaults inside i found and they are not backported yet
<aep>
actually that might not be a bad idea
<aep>
but that incorrect comma was all i needed, so all good.
<arkiver_>
I want to visit a page and perform 1. right click 2. save link as. I want to do this on a bunch of elements in a page. I can use something like HTTParty to scrape the urls. But how can I save_link_as using a ruby script? Any ideas? Basically I want to download a bunch of coursera videos.
<arkiver_>
* Httparty to fetch the page.
Elhu has joined #ruby
peterhu has quit [Ping timeout: 272 seconds]
aleron has joined #ruby
<_br_>
Mechanize.
siwica has joined #ruby
jbpros has quit [Quit: jbpros]
<_br_>
That being said, I'm pretty sure a simple oneliner for that is probably enough.
<arkiver_>
_br_: thanks. even I think a simple oneliner should be enough.
xk_id has joined #ruby
<arkiver_>
getting the link to the download is easy. I don't know how to perform the save_link_as action on that link
<arkiver_>
I tried to use wget in a shell script. but that won't download the video. just the link
drumsrgr8forn8 has quit [Ping timeout: 240 seconds]
smathieu has joined #ruby
kil0byte_ has joined #ruby
sparq_ has quit [Ping timeout: 240 seconds]
xk_id has joined #ruby
<Hanmac>
aep if you use ruby on the server as an web application, you need to be sure that its installed globally so that the dev user and the web user can both access the same ruby … otherwise it could be "complicated"
bradhe has joined #ruby
<aep>
its a crappy script on an automation infrastructure
TheNotary has joined #ruby
<aep>
it didnt work after all, trying rvm now
TheNotary has quit [Max SendQ exceeded]
kil0byte has quit [Ping timeout: 272 seconds]
mark_locklear has joined #ruby
TheNotary has joined #ruby
mark_locklear has quit [Remote host closed the connection]
smathieu has quit [Ping timeout: 245 seconds]
TheNotary has quit [Max SendQ exceeded]
persand has joined #ruby
TheNotary has joined #ruby
TheNotary has quit [Max SendQ exceeded]
TheNotary has joined #ruby
TheNotary has quit [Max SendQ exceeded]
ewnd9 has joined #ruby
bradhe has quit [Ping timeout: 265 seconds]
khushildep has quit [Quit: khushildep]
habanany has joined #ruby
Advocation has quit [Quit: Advocation]
TheNotary has joined #ruby
persand has quit [Client Quit]
rdark has quit [Read error: Operation timed out]
TheNotary has quit [Max SendQ exceeded]
TheNotary has joined #ruby
persand has joined #ruby
helloworld has quit [Ping timeout: 245 seconds]
saysjonathan has quit [Quit: leaving]
mlpinit has joined #ruby
xk_id has quit [Quit:
breakingthings has joined #ruby
rdark has joined #ruby
ique has joined #ruby
xk_id has joined #ruby
lucazi has joined #ruby
someish has quit [Quit: someish]
geekbri has joined #ruby
nism has joined #ruby
postmodern has quit [Quit: Leaving]
rgbdev has joined #ruby
k-man has left #ruby ["WeeChat 0.4.0"]
Giorgio has joined #ruby
xk_id has quit [Quit:
decoponio has joined #ruby
Sail is now known as Sail_Away
simplex_ has joined #ruby
cody-- has quit [Quit: derp]
PeNNyWiSe182__ has joined #ruby
jkamenik has joined #ruby
mpeg has joined #ruby
vince_prignano has quit [Remote host closed the connection]
vince_prignano has joined #ruby
svector has quit [Ping timeout: 260 seconds]
soasme has joined #ruby
rgbdev has quit [Quit: rgbdev]
bamdad has joined #ruby
soba has quit [Ping timeout: 272 seconds]
bamdad has left #ruby [#ruby]
ItSANgo has quit [Quit: Leaving...]
BizarreCake has joined #ruby
simplex_ has quit [Quit: simplex_]
braincrash has joined #ruby
aagdbl has quit [Read error: Connection reset by peer]
Soda has joined #ruby
soba has joined #ruby
xk_id has joined #ruby
aagdbl has joined #ruby
astrobunny has quit [Ping timeout: 240 seconds]
v0n has quit [Ping timeout: 272 seconds]
jbpros has joined #ruby
jerius has joined #ruby
ioNull has quit [Quit: Computer has gone to sleep.]
polaco_zZz is now known as polaco
kaldrenon has joined #ruby
theRoUS has joined #ruby
spike|spiegel has quit [Quit: WeeChat 0.4.2]
rjhunter has quit [Remote host closed the connection]
fijimunkii has joined #ruby
stonevil has quit [Remote host closed the connection]
thesheff17 has quit [Remote host closed the connection]
spike|spiegel has joined #ruby
saysjonathan has joined #ruby
gwb3 has quit [Quit: leaving]
astrobunny has joined #ruby
gwb3 has joined #ruby
stonevil has joined #ruby
braincrash has quit [Ping timeout: 246 seconds]
nism has quit [Quit: Leaving]
klaut has quit [Read error: Connection reset by peer]
saysjonathan has quit [Remote host closed the connection]
vpretzel has joined #ruby
klaut has joined #ruby
peterhu has joined #ruby
francisfish has quit [Remote host closed the connection]
francisfish has joined #ruby
Azulinho_ has quit [Ping timeout: 245 seconds]
jaynewstrom has joined #ruby
jbpros has quit [Quit: jbpros]
elaptics is now known as elaptics`away
Soda has quit [Read error: Connection reset by peer]
fijimunk1i has joined #ruby
<m4rcu5>
what is the equivilent of perls $var = function($arg) or warn "failed"? so a routine can have a value returned or a "false"?
fijimunkii has quit [Ping timeout: 240 seconds]
klaut_ has joined #ruby
peterhu has quit [Ping timeout: 241 seconds]
klaut has quit [Ping timeout: 246 seconds]
tharindu has quit [Quit: Leaving...]
francisfish has quit [Ping timeout: 265 seconds]
atmosx has joined #ruby
alekst has quit [Quit: Leaving...]
fgo_ has quit [Remote host closed the connection]
helloworld has joined #ruby
jcromart_ has joined #ruby
jprovazn has quit [Quit: Leaving]
arkiver_ has quit [Remote host closed the connection]
lfox has joined #ruby
<avril14th>
m4rcu5: raise exception? return nil?
<avril14th>
or a text describing the error
saysjonathan has joined #ruby
starfox21 has quit [Quit: starfox21]
fgo has joined #ruby
steelmaiden has quit [Quit: irc2go]
kitak has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
kitak has joined #ruby
persand has quit [Ping timeout: 272 seconds]
jonathanwallace has joined #ruby
smathieu has joined #ruby
jerius has quit []
Soda has joined #ruby
<Hanmac>
m4rcu5: ruby has a warn method too
workmad3 has joined #ruby
v0n has joined #ruby
soasme has quit [Ping timeout: 272 seconds]
puzanov has joined #ruby
MrZYX|off is now known as MrZYX
kitak has quit [Ping timeout: 246 seconds]
ioNull has joined #ruby
vince_prignano has quit [Remote host closed the connection]
nism has joined #ruby
Advocation has joined #ruby
smathieu has quit [Read error: Operation timed out]
astrobunny has quit [Ping timeout: 265 seconds]
persand has joined #ruby
toringe has joined #ruby
frustrum has joined #ruby
khushildep has joined #ruby
momomomomo has joined #ruby
dzhulk has quit [Quit: Leaving.]
astrobunny has joined #ruby
svector has joined #ruby
plotter has joined #ruby
plotter has quit [Changing host]
plotter has joined #ruby
lfox has quit []
sailias has joined #ruby
dhamidi has joined #ruby
burlyscudd has joined #ruby
workmad3 has quit [Remote host closed the connection]
workmad3 has joined #ruby
lfox has joined #ruby
mmitchell has joined #ruby
<m4rcu5>
avril14th: but raising nill will that work in the same var = function(var) or do someting?
lxsameer has quit [Quit: Leaving]
mklappstuhl has quit [Remote host closed the connection]
guiguidoc has joined #ruby
colonolGron has joined #ruby
mj12albert has quit [Ping timeout: 272 seconds]
snooc has joined #ruby
mj12albert has joined #ruby
<Hanmac>
m4rcu5: raising will work too, but also warn will work … yust use what you prefer
araujo has quit [Read error: Connection reset by peer]
aspires has quit [Client Quit]
araujo has joined #ruby
aspires has joined #ruby
smathieu has joined #ruby
dash_ has joined #ruby
r0bby_ has quit [Client Quit]
<qohelet_>
how can I multiply all the elements of a = [2,3,4] for all the elements of b = [4,5,6] so to get an array with all 9 ( c = [8,10,12,12,15,18,16,20,24] )?
kil0byte_ has joined #ruby
aryaching has joined #ruby
workmad3 has quit [Remote host closed the connection]
workmad3 has joined #ruby
mr_red has joined #ruby
julweber has quit [Remote host closed the connection]
<havenwood>
mantas322: Why is it a string to start with? Must that happen?
<apeiros>
eval will be faster
<MrZYX>
mantas322: it just sounds _a lot_ like this shouldn't exist as string in the first place
gja has joined #ruby
<mantas322>
okay hang on
* apeiros
agrees with the others
<apeiros>
at least not as a string in that form
<apeiros>
(re: use proper serialization)
<tjbarber>
hey guys, I have a question about how Ruby handles multiple incoming connections (I guess this is a rack question). Does it create a process for each connected user?
<apeiros>
tjbarber: depends on your code
<Hanmac>
mantas322: if you need it for comunication like Hash -> String -> Hash like when you need to transport it from a Server to client, try to use Json or Marshal
<apeiros>
ruby itself doesn't do anything
<MrZYX>
tjbarber: and your appserver
Xeago has quit [Remote host closed the connection]
<tjbarber>
MrZYX so if I was using Thin or Unicorn with Sinatra?
geekbri has quit [Remote host closed the connection]
<mantas322>
thanks everyone.
<havenwood>
tjbarber: Thin is evented and Unicorn is forked.
failshell has quit [Remote host closed the connection]
failshell has joined #ruby
<MrZYX>
hm, iirc thin queues up the requests and processes them in serial, unicorn does the same but with a configurable number of forked child processes
AndChat| has quit [Ping timeout: 272 seconds]
<havenwood>
tjbarber: Jesse Storimer did a good talk at last year's RubyConf on how Unicorn works, worth watching.
bradleyprice has joined #ruby
ioNull has joined #ruby
<tjbarber>
havenwood ah that would be great to watch, might help me in thinking about how this works
<tjbarber>
thanks MrZYX and havenwood
<MrZYX>
also there's puma which uses a dynamic number of threads
<havenwood>
banisterfiend: daylight time dependant?
<banisterfiend>
havenwood EST is just "Eastern Time" right? when i chose it on google hangouts it said "panama time"
<banisterfiend>
i have no idea about these weird american time zones
<havenwood>
West siiiide. PST represent.
Mars` has joined #ruby
<bean__>
EST -> CST -> MST -> PST
<bean__>
though I think its likely EDT righ tnow
<havenwood>
bean__: then Alaska and Hawaii, or is Alaska PST?
<bean__>
Hawaii-Aleutian Time Zone
<bean__>
(UTC-10:00)
<bean__>
Alaska Time Zone
<bean__>
(UTC-09:00)
thumpba has joined #ruby
Monie has joined #ruby
prisoner has joined #ruby
mephux has quit [Ping timeout: 240 seconds]
ioNull has quit [Quit: Computer has gone to sleep.]
mephux has joined #ruby
mephux is now known as Guest16680
reset has joined #ruby
kalesage has joined #ruby
Xeago has joined #ruby
schaerli has joined #ruby
akesterson has joined #ruby
tharindu has quit [Ping timeout: 272 seconds]
Xeago_ has joined #ruby
T_T has quit [Read error: Connection reset by peer]
mayhew has joined #ruby
T_T has joined #ruby
sumark_ is now known as sumark
prisoner has quit [Ping timeout: 268 seconds]
T_T is now known as o_0
colonolGron has quit [Read error: Connection reset by peer]
o_0 has quit [Disconnected by services]
spider-mario has joined #ruby
o_0 has joined #ruby
o_0 has quit [Disconnected by services]
petey_ has quit [Remote host closed the connection]
Guest57541 has joined #ruby
jb41 has quit [Ping timeout: 260 seconds]
Xeago has quit [Ping timeout: 246 seconds]
Guest57541 is now known as T__T
dash_ has quit [Quit: dash_]
carraroj has joined #ruby
monkegjinni has joined #ruby
aspiers has quit [Ping timeout: 240 seconds]
schaerli has quit [Remote host closed the connection]
Elhu has joined #ruby
capnmalarkey has joined #ruby
schaerli has joined #ruby
schaerli has quit [Remote host closed the connection]
T__T has quit [Read error: Connection reset by peer]
bklane has joined #ruby
T__T has joined #ruby
schaerli has joined #ruby
aleron has quit [Quit: Lost terminal]
krz has quit [Quit: krz]
zachrab_ has joined #ruby
jtran has left #ruby [#ruby]
zachrab has quit [Read error: Connection reset by peer]
Ren^ has quit [Read error: Connection reset by peer]
BizarreCake has quit [Remote host closed the connection]
Ren^ has joined #ruby
MisutoWolf has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 268 seconds]
mklappstuhl has joined #ruby
marcdel has joined #ruby
Authenticator has joined #ruby
razi has joined #ruby
<mantas322>
hmmmmm
razi has quit [Client Quit]
razi has joined #ruby
nisstyre has joined #ruby
francisfish has joined #ruby
Giorgio has quit [Ping timeout: 245 seconds]
fuhgeddaboudit has joined #ruby
tjbarber has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<a1ph4g33k>
mantas322, depending on your data types, it may be well formed enough to pass through one of the existing parsers ... like JSON. Otherwise there is a LOT of work to deal with hashes, and the only alternative is to ask Ruby to deal with them ( via eval() ) ... which is generally viewed as a terribly unsafe thing to do.
blaxter has quit [Ping timeout: 240 seconds]
zigomir has joined #ruby
<a1ph4g33k>
replicating the intricacies of parsing/building a deeply nested hash isn't something to take lightly.
mklappstuhl has quit [Ping timeout: 272 seconds]
<havenwood>
mantas322: Why do you need to serializing? Are you passing code through a socket? Saving it to disk?
<havenwood>
s/serializing/serialize
Yakko has joined #ruby
<Hanmac>
no he is passing data though a key hole ;P
<a1ph4g33k>
most specifically on the "ruby is dying" portion of the article ?
<a1ph4g33k>
( I swear I'm not trolling ... )
<havenwood>
a1ph4g33k: first time i've heard 'dying' along with Ruby as well, that stood out
barratt has quit [Read error: Connection reset by peer]
<Hanmac>
maybe they are some java or php trolls
<a1ph4g33k>
... nope, it's the rubinius folks ...
<a1ph4g33k>
quite surprising.
<a1ph4g33k>
really the only thing I see in ruby that would be good to fix is removing the GIL.
terracatta has joined #ruby
<a1ph4g33k>
.. and adding concurrent + parallel data types ...
zmansiv has joined #ruby
Xeago_ is now known as Xeago
jibi has quit [Ping timeout: 268 seconds]
<a1ph4g33k>
part of me has always wanted to take a stab at an implementation of Ruby ... but I know what a large undertaking that would be ...
jlebrech has quit [Ping timeout: 240 seconds]
<Hanmac>
removing the the lock may break some C(++) extensions … i for myself do not know if my ones would work if the GIL is removed
<havenwood>
Maybe startups are just doing less 'lauding' of languages in general. Plenty use Ruby. Conferences thriving. Dunno.
<a1ph4g33k>
hanmac, absolutely it may, that just means that those extensions need to do the work to validate they are thread safe.
MisutoWolf has quit [Quit: WeeChat 0.4.0]
Mitchellvanw has quit [Ping timeout: 240 seconds]
<havenwood>
hanmac: Rubinius just puts burden on C-ext author now, doesn't lock around em.
<a1ph4g33k>
... which for languages like C is just a stated feature of a given library ... it is or it isn't.
Mars` has quit [Remote host closed the connection]
michael_mbp is now known as zz_michael_mbp
<a1ph4g33k>
... I think that each object should really be it's own sub process ... have a message queue and process one thing at a time...
<Hanmac>
a1ph4g33k: i make bindings … for libs … and if the libs itself are not thread safe, how thread-safe can my bindings then be?
Mitchellvanw has joined #ruby
<mantas322>
well havenwood
<mantas322>
I got a request to format some output into a JSON-ish format
<havenwood>
mantas322: JSON is a good JSON-ish format.
<mantas322>
then I was asked to have the format be recognized as a hash
burlyscudd has joined #ruby
<havenwood>
recognized?
<havenwood>
like human readable?
lurch_ has joined #ruby
<a1ph4g33k>
hanmac, I understand. I'm just saying that extensions that wrap non thread-safe libraries, are marked as compatible with MRuby + GIL but not with MRuby - GIL.
<mantas322>
no like myHash = "myhashstring"
<mantas322>
so you can do myHash[:a][0]
<mantas322>
etc
<a1ph4g33k>
mantas, if you encode your hashes in JSON, they will be parseable as JSON.
bklane has quit [Remote host closed the connection]
<mantas322>
i understandthat
ahawkins has joined #ruby
glaksmono has joined #ruby
<havenwood>
JSON.parse(the_json)[:a][0]
<glaksmono>
anyone is aorund?
akesterson has left #ruby [#ruby]
Nicolas_Leonidas has joined #ruby
<glaksmono>
sooo.. @ in Ruby is pretty much like $this in PHP right?
mpeg has joined #ruby
benweint has joined #ruby
<glaksmono>
just wanna confirm :)
razi1 has quit [Quit: Leaving.]
Advocation_ has joined #ruby
<apeiros>
similar
razi has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
<a1ph4g33k>
glaksmono, @<variablename> means instance variable.
<Nicolas_Leonidas>
hi, is there some sort of skeleton I could download for ruby so that I don't have to rewrite repeated things such as authentication and etc?
Advocation has quit [Ping timeout: 264 seconds]
Advocation_ is now known as Advocation
Banistergalaxy has joined #ruby
mpeg has quit [Client Quit]
<mantas322>
im just going to use JSON
RichardBaker has quit [Quit: RichardBaker]
<mantas322>
this is a wierd request and im sure I shouldnt be creating complex hashes with some sort of Literal Parser
<a1ph4g33k>
Nicolas_Leonidas, It depends on what you are working with ... if you mean Rails ... yes there are many Gems available as extensions to Rails that support many common web application needs ...
wildroman has quit [Remote host closed the connection]
<havenwood>
Nicolas_Leonidas: Ruby's package manager is called RubyGems. You can install a gem like `gem install gem-name-here`: http://guides.rubygems.org/
burlyscudd has quit [Ping timeout: 240 seconds]
wildroman has joined #ruby
<havenwood>
mantas322: apeiros's library is the way to go if that is actually what you wanna do, but a more typical thing is to serialize to MsgPack, Marshal, JSON, or YAML
<mantas322>
I will go back to my native freendoe channel and praise you all
Mitchellvanw is now known as Mitchellvanw_afk
i_s has joined #ruby
<a1ph4g33k>
glaksmono, there are 4 types of variables in ruby ... Global ( $foo ) ... Class ( @@foo ) ... Instance ( @foo ) ... scoped ( foo ).
* apeiros
concurs with havenwood
wildroman has quit [Read error: No route to host]
<apeiros>
mantas322: proper serialization is certainly the right way (as I said all along too)
<mantas322>
lol he's here!
<Nicolas_Leonidas>
a1ph4g33k: yes that's what I meant, where do I find a list of available gems? are they all listed in a directory or something like that?
petey has joined #ruby
<apeiros>
a1ph4g33k: you forgot Constants
<mantas322>
are you liek a celebrity around here?
<apeiros>
mantas322: no
RichardBaker has joined #ruby
<a1ph4g33k>
apeiros, true ...
<havenwood>
yes, he is..
<apeiros>
I just have one of those odd wizard hats :)
<mantas322>
:D
wildroman has joined #ruby
kalesage has quit [Quit: ThrashIRC v2.9 sic populo comunicated]
<a1ph4g33k>
Nicolas_Leonidas, and Constants ( Foo ) <- name starts with uppercase char
zeromodulusx has joined #ruby
tjad has joined #ruby
jlast has joined #ruby
lassebunk has quit [Remote host closed the connection]
<Hanmac>
there are also block scoped variables inside |var|
monkegjinni has quit [Remote host closed the connection]
interactionjaxsn has quit [Remote host closed the connection]
dash_ has quit [Ping timeout: 240 seconds]
<a1ph4g33k>
Nicolas_Leonidas, You can visit RubyGems.org or you can visit Ruby-Toolbox.com ... to hunt for Gems.
<a1ph4g33k>
hanmac, those are still scoped.
monkegjinni has joined #ruby
dzhulk has joined #ruby
<zeromodulusx>
I'd like to know if there are any advanced techniques or applications that I can use to test my applications on the command line.
<havenwood>
zeromodulusx: test it in what way, whatcha mean?
<a1ph4g33k>
zeromodulusx, defined "advanced" and "applications"
saarinen has joined #ruby
i_s has quit [Read error: No route to host]
saarinen has quit [Client Quit]
Xeago has quit [Ping timeout: 272 seconds]
i_s has joined #ruby
lewis is now known as Lewix
alex__c2022 has quit [Quit: alex__c2022]
<zeromodulusx>
By advanced techniques or applications, perhaps some methods that can be used to reload code, or debug code.
Lewix has quit [Changing host]
Lewix has joined #ruby
<zeromodulusx>
Or a different kind of interactive console.
<zeromodulusx>
I'm testing out my application with irb at the moment.
<Hanmac>
interesting … block vars are called "formal argument" ;P
<zeromodulusx>
And I frequently close irb, open it again, and require my code.
jaimef has quit [Quit: Emacs must have died]
stonevil has quit [Remote host closed the connection]
geekbri has joined #ruby
Fuzai has joined #ruby
saarinen has joined #ruby
geekbri has quit [Remote host closed the connection]
<Authenticator>
I'm trying to quote shell arguments with Shellwords.escape and filename#=123 gets turned into filename\#\=123 even though those seem to be valid characters IN an argument. Is there a different way to handle this?
razi has quit [Quit: Leaving.]
razi1 has joined #ruby
<havenwood>
zeromodulusx: Pry is really lovely. What version of Ruby are you on?
sorbo_ has left #ruby [#ruby]
<zeromodulusx>
1.9.3
mr_red_ has joined #ruby
sorbo_ has joined #ruby
kil0byte has quit [Remote host closed the connection]
<zeromodulusx>
Pry does some awesome. I need to invest the time to learn how to use it.
<zeromodulusx>
seem*
dash_ has quit [Client Quit]
<havenwood>
zeromodulusx: Switch from irb to pry at once! Check `help` for available commands.
<zeromodulusx>
Okay, will do.
<sorbo_>
pry >>> irb
monkegjinni has quit [Ping timeout: 272 seconds]
<zeromodulusx>
I'll be back later. Thanks for the suggestion.
<Morrolan>
Easiest solution is to clone the git repository, build it, and install it.
<cortexman>
oh, not sure why i didn't see that when googling
brennanMKE has quit [Remote host closed the connection]
<Morrolan>
After that, wp2txt will install fine.
<cortexman>
thanks
<Morrolan>
Of course, that's kind of a pain for deployment, so you'll have to think of a solution for there. :)
ssmithstone has joined #ruby
francisfish has joined #ruby
helloworld has joined #ruby
Seanathan3 has joined #ruby
<ShellFu>
Hey all. I have lots o hashes. The hashes all have a :name and a :parent. If the hashes :parent key has a value i merge that parent hash with the child asking for it. Now the problem im having is when I do not know how many parents there may be. So hashB has :parent hashA, and hashA has :parent hashZ. It works fine when I know the depth.
<ShellFu>
What would be an effective solution to handle an unknown number of parent hashes?
araujo has quit [Read error: Connection reset by peer]
<ShellFu>
Ive been experimenting with a while loop. while :parent key has a value continue to lookup hashes, but times its not breaking as some customers fill in :parent will nil or null or the word nothing
newbiehacker has quit [Ping timeout: 240 seconds]
mengu has joined #ruby
araujo has joined #ruby
araujo has joined #ruby
araujo has quit [Changing host]
helloworld has quit [Read error: No route to host]
astrobunny has quit [Ping timeout: 272 seconds]
<ShellFu>
if im not making sense ill work up a code example of my attempt after I get off work this evening. Just wanted to sounds some things off
cortexman has left #ruby [#ruby]
SHyx0rmZ has joined #ruby
volty has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
momomomomo has quit [Quit: momomomomo]
helloworld has joined #ruby
nathancahill has quit [Quit: nathancahill]
benlieb has joined #ruby
momomomomo has joined #ruby
astrobunny has joined #ruby
alex__c2022 has quit [Ping timeout: 256 seconds]
i_s has joined #ruby
clov3r has quit [Remote host closed the connection]
clov3r has joined #ruby
capnmalarkey has quit [Quit: capnmalarkey]
theRoUS has quit [Ping timeout: 272 seconds]
kleesc has joined #ruby
fntzr has quit [Quit: Leaving]
Santin79 has joined #ruby
jonathanwallace has joined #ruby
benweint has joined #ruby
alvaro_o has joined #ruby
stonevil has joined #ruby
clov3r_ has joined #ruby
btanaka has joined #ruby
puzanov_ has joined #ruby
clov3r has quit [Read error: Connection reset by peer]
mengu has quit [Remote host closed the connection]
Spami has quit [Read error: Operation timed out]
mengu has joined #ruby
Santin79 has quit [Client Quit]
ehaliewicz has joined #ruby
Mars` has joined #ruby
Spami has joined #ruby
puzanov has quit [Ping timeout: 245 seconds]
puzanov_ is now known as puzanov
zz_tsykoduk is now known as tsykoduk
Mars` has quit [Read error: Connection reset by peer]
michael_mbp is now known as zz_michael_mbp
Mars` has joined #ruby
kleesc has quit [Quit: Page closed]
Jabberish has joined #ruby
burlyscudd has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Xeago has quit [Remote host closed the connection]
interactionjaxsn has quit [Remote host closed the connection]
lurch_ has joined #ruby
jb41 has joined #ruby
LarsSmit has quit [Quit: Leaving.]
mengu has quit [Ping timeout: 246 seconds]
interactionjaxsn has joined #ruby
<jsaak>
it sounds like a perfect example of a recursive algorithm
prisoner has joined #ruby
<ShellFu>
yeah im just struggling with it. Need to give it some love and thought when I have time. problem is i always have more on my plate and bug fixing hardly gets put deliverables :|
ewnd9 has quit [Read error: Operation timed out]
<ShellFu>
gets put before delvierables that is
robustus has quit [Ping timeout: 264 seconds]
robustus has joined #ruby
MrZYX is now known as MrZYX|off
nathancahill has joined #ruby
tsykoduk is now known as zz_tsykoduk
burlyscudd has quit [Ping timeout: 252 seconds]
tjbarber has joined #ruby
prisoner has quit [Ping timeout: 272 seconds]
brennanMKE has joined #ruby
<tjbarber>
hey guys, so I have a method that I'm using to make a query to the database and inside of that method I want to run a verify_identity method. verify_identity checks whether the user has access, and if so return with a JSON string. The thing is that I need the query method to quit executing when verify_identity returns the error.
<tjbarber>
how would that be done?
jkline has joined #ruby
astrobunny has quit [Ping timeout: 272 seconds]
momomomomo_ has joined #ruby
<ShellFu>
begin rescue end perhaps? Im a unix admin not a pro coder so there is prolly a better way
toringe has joined #ruby
momomomomo_ has quit [Client Quit]
Mitchellvanw_afk is now known as Mitchellvanw
<tjbarber>
or maybe? return if logged_in == false
drusepth has quit [Read error: Connection reset by peer]
<Morrolan>
Either just 'return', or throw something and put a catch around the method call.
<tjbarber>
change verify_identity to return a boolean, but then I'd have to return the JSON in that line every time I called verify_identity
SilverKey has quit [Quit: Sleep now]
<tjbarber>
ok that sounds like that's it Morrolan, thanks
LarsSmit has joined #ruby
dash_ has joined #ruby
terracatta has quit [Ping timeout: 264 seconds]
LarsSmit has quit [Client Quit]
nathancahill has left #ruby [#ruby]
iamjarvo_ has joined #ruby
<tjbarber>
Morrolan could I do the throwing and catching inside of the verify_identity method? I would like for there just to be a line with 'verify_identity' in it and it handle the work instead of having to have throw/catch everytime I have to call it
<tjbarber>
which I'm doing like 6 times
gyzmodo has quit []
smathieu_ has joined #ruby
SilverKey has joined #ruby
astrobunny has joined #ruby
<Morrolan>
Err, you want verify_identity to return JSON if authorized, and abort early if not authorized?
iamjarvo_ has quit [Remote host closed the connection]
brightcohen has quit []
Jdubs has quit [Ping timeout: 264 seconds]
heidi has quit [Quit: Leaving.]
<tjbarber>
no, return JSON if not authorized with an error and continue the parent execution if authorized
iamjarvo_ has joined #ruby
mansi has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
geekbri has quit [Remote host closed the connection]
kevind_ has joined #ruby
mansi has joined #ruby
<Morrolan>
Oh.
heidi has joined #ruby
baordog_ has joined #ruby
iamjarvo has quit [Ping timeout: 256 seconds]
tatsuya_o has joined #ruby
<tjbarber>
yeah, I wonder if return {json here} if verify_identity == false would be cleaner
<Morrolan>
Yes, I think so.
<tjbarber>
ok thanks
<Morrolan>
Also because, this way, verify_identity would actually do what it claims to do. (And not potentially return JSON, too)
brennanMKE has quit [Ping timeout: 272 seconds]
petey_ has quit [Remote host closed the connection]
<tjbarber>
true, that's perfect
Jdubs has joined #ruby
smathieu has quit [Ping timeout: 272 seconds]
rins has quit [Read error: Connection reset by peer]
petey has joined #ruby
blarghmatey has quit [Ping timeout: 264 seconds]
kevind has quit [Ping timeout: 272 seconds]
kevind_ is now known as kevind
peregrine81 has quit []
zarubin has joined #ruby
simplex_ has joined #ruby
jbpros has quit [Quit: jbpros]
seruy has joined #ruby
<seruy>
;k
momomomomo has quit [Quit: momomomomo]
allsystemsarego has quit [Quit: Leaving]
ssmithstone has quit [Ping timeout: 272 seconds]
<seruy>
if you dont know anylanguage for programming, how much it need to larn ruby on rails or php, to be expert in it?)
kevind_ has joined #ruby
<ShellFu>
just get lines under your belt.
rins has joined #ruby
jonathanwallace has quit [Ping timeout: 256 seconds]
petey has quit [Ping timeout: 265 seconds]
<seruy>
4-5mounths?)
<seruy>
:D
jalcine is now known as jalcine_
<seruy>
month
<ShellFu>
lol man it depends on how much you apply yourself. You just need to start writing code. not reading books about it
mengu has joined #ruby
staafl has joined #ruby
kevind_ has quit [Client Quit]
astrobunny has quit [Ping timeout: 260 seconds]
thesheff17 has quit [Read error: Connection reset by peer]
<w3pm>
since when is 4-5 months enough to be an expert in anything
<w3pm>
maybe 4-5 years
<ShellFu>
I dunno 4.5 months you might be able to be an expert in drug use??
<volty>
maybe 40-50
<jkline>
yeah, i was going to say 4-5 years in one language
<seruy>
it not enoght for somone who dont know any language, probaly its not enought
thesheff17 has joined #ruby
capnmalarkey has joined #ruby
<seruy>
maybe for php only)
glaksmono has quit [Quit: This computer has gone to sleep]
zarubin has quit [Read error: No route to host]
<ShellFu>
a loop is a loop. php or ruby or c. var is a var. need to know these constructs before you move on
<volty>
maybe for dancing polka
Xeago has joined #ruby
jprovazn has quit [Quit: Odcházím]
zarubin has joined #ruby
zz_tsykoduk is now known as tsykoduk
<volty>
are 4-5 months enough to lean becoming a guard of a shopping centre? :)
jalcine_ is now known as jalcine
marcdel has quit [Ping timeout: 272 seconds]
RichardBaker has joined #ruby
<seruy>
haha
astrobunny has joined #ruby
<seruy>
i read on internt
<seruy>
about 4 months
iamjarvo has joined #ruby
<seruy>
or 2 weeks
<seruy>
;)
<seruy>
puts "hello world"
iamjarvo has quit [Remote host closed the connection]
ShellFu has quit [Ping timeout: 272 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
iamjarvo has joined #ruby
Spami has quit [Ping timeout: 272 seconds]
francisfish has quit [Read error: Connection reset by peer]
francisfish has joined #ruby
Nisstyre-laptop has joined #ruby
brunoro has quit [Ping timeout: 240 seconds]
Nisstyre-laptop is now known as nisstyre
geggam has quit [Remote host closed the connection]
sambao21 has joined #ruby
zz_michael_mbp is now known as michael_mbp
iamjarvo_ has quit [Ping timeout: 272 seconds]
<shevy>
do this seruy
<shevy>
alias e
<shevy>
e 'hello world'
mansi has quit [Remote host closed the connection]
<shevy>
less characters FOREVER
<shevy>
well actually
brunoro has joined #ruby
<shevy>
p 'hello world'
<shevy>
wont need even any alias
mansi has joined #ruby
<seruy>
haha
iamjarvo has quit [Ping timeout: 240 seconds]
<seruy>
good
mansi has quit [Read error: Connection reset by peer]
Zolo has quit [Remote host closed the connection]
mansi has joined #ruby
Zolo has joined #ruby
zeromodulusx has joined #ruby
popl has quit [Quit: We must make an idol of our fear, and call it God.]
<seruy>
shevy, btw,are you are a girl or boy?
<seruy>
;)
<seruy>
i think its a girl name
<zeromodulusx>
I often find myself passing a reference of an instance to other instances, and saving it as an instance variable.
raphaelivan has quit [Quit: Leaving.]
tsykoduk is now known as zz_tsykoduk
Nicolas_Leonidas has quit [Quit: ChatZilla 0.9.90.1 [Firefox 24.0/20130910160258]]
simplex_ has quit [Quit: simplex_]
<zeromodulusx>
For example, I'll have instance of class A (a), and when I instantiate B, I'll do b = B.new(a)
ssvo has quit [Ping timeout: 240 seconds]
ssvo_ has joined #ruby
kindjal has joined #ruby
<zeromodulusx>
I believe other people refer to this as a "code smell".
alex__c2022 has joined #ruby
jalcine is now known as jalcine_
Zolo has quit [Ping timeout: 256 seconds]
nouitfvf_ has quit []
jbpros has joined #ruby
vpretzel has quit [Remote host closed the connection]
filipe has joined #ruby
smathieu_ has quit [Remote host closed the connection]
schaerli has quit [Remote host closed the connection]
<shevy>
in analogy of the blinking cursor, here is my first attempt to put it into a module http://pastie.org/pastes/8404789/text but now I need to add the ability to break out of this loop when the user starts to input anything
zeromodulusx has quit [Quit: leaving]
sambao21 has quit [Quit: Computer has gone to sleep.]
Auraelius has joined #ruby
fomatin has joined #ruby
FroMaster has quit []
DevDoo has quit []
<shevy>
and if the user did input nothing, the loop of course should continue to run
schaerli has quit [Ping timeout: 248 seconds]
havenwood has quit [Remote host closed the connection]
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
<Xeago>
what is the windows graphics performance benchmark that has a <200kb size executable?
astrobunny has quit [Ping timeout: 272 seconds]
awarner has joined #ruby
awarner_ has quit [Read error: Operation timed out]
ShellFu has joined #ruby
xk_id has quit [Quit:
Auraelius has quit [Quit: quit....]
mengu has quit [Remote host closed the connection]
awarner_ has joined #ruby
larissa has joined #ruby
funburn has joined #ruby
nutella has joined #ruby
angusiguess has quit [Ping timeout: 245 seconds]
snooc has quit []
nutella is now known as Guest24316
astrobunny has joined #ruby
awarner has quit [Ping timeout: 272 seconds]
tdk2fe has quit [Ping timeout: 260 seconds]
zz_tsykoduk is now known as tsykoduk
nemysis has quit [Remote host closed the connection]
dkamioka has quit [Remote host closed the connection]
zigomir has quit [Ping timeout: 272 seconds]
<volty>
shevy: are you on linux ?
nwertman has joined #ruby
astrobunny has quit [Ping timeout: 240 seconds]
mansi has quit [Remote host closed the connection]
<bean__>
Xeago: I don't think executable size and graphics performance have anything to do with eachother.
prisoner has joined #ruby
einarj has quit [Remote host closed the connection]
crank1988 has quit [Read error: Operation timed out]
einarj has joined #ruby
sambao21 has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
<Xeago>
bean__: no but it was a notable feat about the benchmark I am referring to
<Xeago>
it had lots of qubes breaking apart into many more qubes
<Xeago>
that form a stream
phantasm66 has quit [Quit: *sleeeep….]
<Xeago>
that are later being engulfed by something else
mansi_ has joined #ruby
astrobunny has joined #ruby
mansi has quit [Ping timeout: 272 seconds]
nitish has joined #ruby
nitish has joined #ruby
nitish has quit [Changing host]
tsykoduk is now known as zz_tsykoduk
prisoner has quit [Ping timeout: 256 seconds]
simplex_ has joined #ruby
dzhulk has quit [Quit: Leaving.]
einarj has quit [Ping timeout: 245 seconds]
mklappstuhl has joined #ruby
mansi has joined #ruby
mansi_ has quit [Read error: Connection reset by peer]
reset has quit [Quit: Leaving...]
Kabaka has quit [Remote host closed the connection]
nemysis has joined #ruby
zeade has joined #ruby
Kabaka has joined #ruby
spider-mario has quit [Ping timeout: 260 seconds]
bio is now known as Biohazard
staafl has quit [Read error: Connection reset by peer]
funburn has quit [Quit: funburn]
fomatin has quit [Quit: Computer has gone to sleep.]
jkline has quit [Quit: jkline]
IceyEC has quit [Quit: IceyEC]
mansi has quit [Remote host closed the connection]
jcromart_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mansi has joined #ruby
heidi has quit [Quit: Leaving.]
awarner_ has quit [Remote host closed the connection]
awarner has joined #ruby
<shevy>
volty yep
einarj has joined #ruby
Giorgio has joined #ruby
<volty>
you have to create another thread and watch for a keystroke
awarner_ has joined #ruby
petey has joined #ruby
Elhu has joined #ruby
jkline has joined #ruby
<volty>
and in that thread you have to put your console (xterm or whatever) in raw mode
mansi_ has joined #ruby
julweber has joined #ruby
zz_tsykoduk is now known as tsykoduk
mansi has quit [Read error: Connection reset by peer]
alexju has quit [Remote host closed the connection]
Hanmac has quit [Quit: Leaving.]
<volty>
i had good time playing with that
alexju has joined #ruby
tdk2fe has joined #ruby
<volty>
going to paste it to you
einarj has quit [Remote host closed the connection]
<shevy>
atmosx hmm not sure, I think I need to get a deeper level of understanding in proficiency and because lab-places / benchwork-places are harder to get and more labour-intensive (I could not do that at home), I guess it may make more sense to invest more time into bioinformatics-related stuff (as I can work on my own speed, independent of others)
<bean__>
alright, for once I have a question. With the openssl command I can do "openssl passwd -1 MySecret" which generates $1$nRbb26sy$UzVRtmVXGYipFiOTGGSxZ1
r0bby_ has joined #ruby
<bean__>
how do i accomplish the same thing in ruby
<bean__>
( i hate shelling out )
awarner has quit [Ping timeout: 272 seconds]
petey has quit [Remote host closed the connection]
kaldrenon has quit [Remote host closed the connection]
adambeynon has joined #ruby
<shevy>
cool volty
<shevy>
that looks like a lot of code though
kaldrenon has joined #ruby
petey has joined #ruby
<volty>
already tried ?
<shevy>
I have a dancing ascii prompt now :D
<shevy>
well your example
benlieb has quit [Quit: benlieb]
<shevy>
I did not yet try to incorporate the bit that makes this work
nitish has quit [Remote host closed the connection]
simplex_ has left #ruby [#ruby]
michael_mbp is now known as zz_michael_mbp
ssvo_ is now known as ssvo
francisfish has quit [Remote host closed the connection]
mrsolo has joined #ruby
alexju has quit [Ping timeout: 272 seconds]
<volty>
though it could interrupt the cycler thread when printing or deleting (low probability) , in which case the prompt will remain partial
francisfish has joined #ruby
threesome has quit [Ping timeout: 260 seconds]
qhartman has joined #ruby
Kar- has quit [Ping timeout: 240 seconds]
capnmalarkey has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
staafl has joined #ruby
alvaro_o has joined #ruby
petey has quit [Ping timeout: 256 seconds]
kaldrenon has quit [Ping timeout: 265 seconds]
wildroman has quit [Remote host closed the connection]
Seanathan3 has quit [Quit: Leaving]
someish has quit [Quit: someish]
wildroman has joined #ruby
c0rn has quit [Ping timeout: 256 seconds]
francisfish has quit [Ping timeout: 246 seconds]
ephemerian has joined #ruby
Yakko has quit [Remote host closed the connection]
nisstyre has quit [Quit: Leaving]
tspike has joined #ruby
wildroman has quit [Ping timeout: 248 seconds]
burlyscudd has joined #ruby
mikeg has joined #ruby
Sc0rp10n has joined #ruby
Mars` has quit [Remote host closed the connection]
Mars` has joined #ruby
petey has joined #ruby
Mars` has quit [Ping timeout: 240 seconds]
Mars`_ has joined #ruby
cody-- has quit [Quit: derp]
reset has joined #ruby
smathieu_ has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 260 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
aspiers has joined #ruby
heidi has joined #ruby
c0rn has joined #ruby
mengu has quit [Read error: Connection reset by peer]
brennanMKE has joined #ruby
mengu has joined #ruby
Monie has joined #ruby
failshell has quit [Remote host closed the connection]
reset has quit [Ping timeout: 246 seconds]
smathieu has quit [Ping timeout: 272 seconds]
nwertman has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
interactionjaxsn has quit [Remote host closed the connection]
helloworld has quit [Ping timeout: 245 seconds]
interactionjaxsn has joined #ruby
DarthGandalf has quit [Ping timeout: 245 seconds]
mlpinit has quit [Remote host closed the connection]
aryaching has quit [Ping timeout: 272 seconds]
mlpinit has joined #ruby
mmitchel_ has joined #ruby
DarthGandalf has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
jdenen has quit [Remote host closed the connection]
mmitchell has quit [Read error: Operation timed out]
<volty>
i have problems with my proc that converts tabs to spaces, line 19 should be: print("\b" * len) // though it IS there - probably working with that hidden \b character
r0bby_ has quit [Read error: Connection reset by peer]
interactionjaxsn has quit [Ping timeout: 272 seconds]
fomatin has joined #ruby
mmitchel_ has quit [Ping timeout: 252 seconds]
claymore has quit [Quit: Leaving]
tdk2fe has left #ruby [#ruby]
prisoner has joined #ruby
ner0x is now known as is
is is now known as ner0x
mj12albert has quit [Ping timeout: 272 seconds]
mansi_ has quit [Remote host closed the connection]