<bricker>
This server is running an old version of libc, I'll try updating
yubrew has joined #ruby
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
Altonymous has joined #ruby
<yoshokatana>
I'm trying to figure out.....ruby
Altonymous has left #ruby [#ruby]
Altonymous has joined #ruby
<yoshokatana>
.____.
<shevy>
yoshokatana that is simple
<yoshokatana>
or rather octokit.rb, since I can parse these .rb files now
crystal77 has quit [Quit: Computer has gone to sleep.]
mikepack has joined #ruby
mjs2600 has quit [Read error: Connection reset by peer]
robbyoconnor has quit [Ping timeout: 240 seconds]
northfurr has joined #ruby
mjs2600 has joined #ruby
AFKGeek has joined #ruby
rbartos has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
predator117 has joined #ruby
chrisseaton has quit []
<Altonymous>
I'm trying to upload a log file to AWS S3. I'm getting timeout errors intermittently. I'm wondering if someone could take a look at this gist and tell me if they see anything obviously wrong? https://gist.github.com/Altonymous/b08f81c7632e64c0c77f
mehlah has quit [Read error: Connection reset by peer]
yubrew has quit [Ping timeout: 265 seconds]
mehlah has joined #ruby
Celm has joined #ruby
RyanD_ has joined #ruby
snath has joined #ruby
YamakasY has joined #ruby
Slavox is now known as Slavox|AFK
predator217 has quit [Ping timeout: 265 seconds]
rbartos has joined #ruby
aspires has quit []
srji has joined #ruby
nifty has joined #ruby
weie has quit [Ping timeout: 240 seconds]
Aryasam has joined #ruby
geopet has quit []
srji_ has quit [Ping timeout: 252 seconds]
fenicks has quit [Remote host closed the connection]
jhass is now known as jhass|off
vlad_starkov has quit [Remote host closed the connection]
zachallett has quit [Remote host closed the connection]
<bricker>
Altonymous: hard to tell from that small snippet, but maybe don't open the AWS connection until after you've written to the file, reading/writing that much data takes a while
Aryasam has joined #ruby
<Altonymous>
That's the entire script...
<Altonymous>
And it's a streaming connection
<Altonymous>
So it's not opening until I start streaming.
tjr9898 has quit [Remote host closed the connection]
Kricir has joined #ruby
grzywacz has quit [Ping timeout: 240 seconds]
renderful has quit [Ping timeout: 265 seconds]
bauerbob has joined #ruby
tkuchiki has quit [Remote host closed the connection]
lolmaus has quit [Read error: Operation timed out]
flowerhack has quit [Quit: Connection closed for inactivity]
<bauerbob>
hi. i want to write an explicit nil class for one of my objects, so i want its instances to return false for present?, however it returns true. it seems as if i can't override the present? method. is that correct?
Shidash has quit [Quit: Leaving.]
andrewlio has quit [Quit: Leaving.]
relaxer has quit [Ping timeout: 252 seconds]
<yoshokatana>
Altonymous: I read that as "So it's not opening until I start screaming." and nodded thoughfully
<centrx>
bauerbob, present? is just a Rails method on Object
ner0x has joined #ruby
timonv has joined #ruby
asteros has quit [Quit: asteros]
tonni has quit [Read error: Connection reset by peer]
renderful has joined #ruby
tonni has joined #ruby
xerox357 has joined #ruby
yoshokatana has quit [Quit: yoshokatana]
__TT__ has joined #ruby
Kricir has quit [Ping timeout: 240 seconds]
timonv has quit [Ping timeout: 240 seconds]
asteros has joined #ruby
crystal77 has joined #ruby
workmad3 has joined #ruby
havenwood has joined #ruby
andy__ has joined #ruby
macclearich has joined #ruby
nifty has quit [Ping timeout: 264 seconds]
sparrovv has quit [Remote host closed the connection]
fschuindt has joined #ruby
fgo has quit [Remote host closed the connection]
__TT__ has left #ruby ["Leaving"]
xerox357 has quit [Remote host closed the connection]
<centrx>
hermanmunster, You mean the Queen City of the South?
Aryasam has joined #ruby
razrunelord has quit []
amclain has joined #ruby
robbyoconnor has quit [Ping timeout: 240 seconds]
<hermanmunster>
centrx: that's the place. South Australia.
jamto11 has quit [Remote host closed the connection]
hamakn has joined #ruby
andy__ has quit [Ping timeout: 244 seconds]
absolutezeroff has joined #ruby
coderhs has quit [Ping timeout: 264 seconds]
<centrx>
hermanmunster, Adelaide is placed on gently rising ground on both banks of a small stream called the River Torrens (the Yatala of the natives). Nature appears to have marked out the site for a city the plateau upon which it sits having been lifted about 170 feet above the sea level.
<centrx>
hermanmunster, This Adelaide?
<hermanmunster>
centrx: that would be the one.
YamakasY has joined #ruby
aspires has quit []
fridim__ has joined #ruby
codeFiend has quit [Quit: codeFiend]
afex has quit [Ping timeout: 240 seconds]
xcv_ has joined #ruby
xcv has quit [Read error: Connection reset by peer]
RoxasShadowRS has quit [Read error: Connection reset by peer]
nfk has quit [Quit: yawn]
IceDragon has quit [Quit: Space~~~]
lw has joined #ruby
YamakasY has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
falood has quit [Remote host closed the connection]
gilest has quit [Remote host closed the connection]
falood has joined #ruby
Celm has quit [Remote host closed the connection]
mjs2600 has quit [Remote host closed the connection]
gilest has joined #ruby
tjr9898_ has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
Hanmac has joined #ruby
figgleberry has quit [Ping timeout: 264 seconds]
markisonfire has quit [Quit: markisonfire]
sdouglas_ has quit [Read error: Connection reset by peer]
sdouglas has joined #ruby
Hanmac1 has quit [Ping timeout: 265 seconds]
macclearich has quit [Remote host closed the connection]
multi_io has quit [Ping timeout: 244 seconds]
pranny has quit [Quit: Leaving.]
multi_io has joined #ruby
mgberlin has joined #ruby
afex has joined #ruby
GaryOak_ has quit [Ping timeout: 264 seconds]
jprovazn has joined #ruby
rahult_ has joined #ruby
griffind_ has quit [Quit: Computer has gone to sleep.]
rahult has quit [Ping timeout: 264 seconds]
axsuul has quit [Remote host closed the connection]
xcv_ has quit [Remote host closed the connection]
axsuul has joined #ruby
Deele2 has quit [Ping timeout: 264 seconds]
Kricir has joined #ruby
x1337807x has joined #ruby
x1337807x has quit [Client Quit]
boycey has joined #ruby
_1_goku123 has joined #ruby
<_1_goku123>
hola
<_1_goku123>
:O
mansi has joined #ruby
linojon has joined #ruby
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
derek_c has quit [Read error: Operation timed out]
_1_goku123 has quit [Quit: WhatsChat IRC Android APP]
<boycey>
Hi ,anyone here use Shoes ?
derek_c has joined #ruby
_maes_ has joined #ruby
Voodoofish430 has quit [Quit: Leaving.]
<boycey>
Or any other Ruby GUI ?
rbartos has quit [Ping timeout: 244 seconds]
<boycey>
Helloooo ??
reset has quit [Quit: Leaving...]
meinside has joined #ruby
mansi has quit [Remote host closed the connection]
asteros has quit [Quit: asteros]
yubrew has joined #ruby
mansi has joined #ruby
<havenwood>
boycey: shoes4 is the newest shoes, on JRuby
iliketurtles has joined #ruby
mikepack_ has joined #ruby
<havenwood>
boycey: there is a #shoes too by the way
unixpro1970 has quit [Ping timeout: 244 seconds]
<boycey>
havenwood: is shoes4 preferable to shoes3 ?
coderhs has joined #ruby
<boycey>
havenwood: thanks, i looked at the channel , however nobody is around
<havenwood>
yeah
<boycey>
ok
mansi has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 240 seconds]
davedev24 has joined #ruby
davedev2_ has quit [Ping timeout: 265 seconds]
<havenwood>
boycey: i'd spend time on shoes4 personally, it is the future of shoes
sepp2k has quit [Read error: Connection reset by peer]
bry4n_ has joined #ruby
<pontiki>
o/
mikepack has quit [Ping timeout: 264 seconds]
elcontrastador has joined #ruby
robbyoconnor has joined #ruby
<boycey>
havenwood: yeah, i noticed shoes3 is dying slowly
kate_r has joined #ruby
<boycey>
heh
CaptainJet has quit []
<havenwood>
the previous version tends to when the next has a foothold
nadirvardar has joined #ruby
ukd1 has quit [Quit: Leaving...]
mikepack_ has quit [Client Quit]
Megtastique has joined #ruby
mlpinit has joined #ruby
derek_c has quit [Ping timeout: 264 seconds]
Megtastique has quit [Client Quit]
mansi has joined #ruby
niftylettuce_ has quit [Quit: Connection closed for inactivity]
bry4n_ has quit [Ping timeout: 265 seconds]
CaptainJet has joined #ruby
mikepack has joined #ruby
nadirvardar has quit [Max SendQ exceeded]
alvaro_o has quit [Quit: Ex-Chat]
mikepack_ has joined #ruby
nadirvardar has joined #ruby
endash_ has quit [Quit: endash_]
zcreative has quit [Quit: Computer has gone to sleep.]
Kricir has quit [Remote host closed the connection]
coderhs has quit [Ping timeout: 240 seconds]
crystal77 has joined #ruby
nateberkopec has quit [Quit: Leaving...]
krz has joined #ruby
skyjumper has quit [Changing host]
skyjumper has joined #ruby
jjbohn has joined #ruby
mikepack has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
chrisja has quit [Quit: leaving]
mikepack_ has quit [Remote host closed the connection]
aspires has joined #ruby
derek_c has joined #ruby
Aryasam has quit [Ping timeout: 244 seconds]
mikepack_ has joined #ruby
danman has quit [Quit: danman]
Aryasam has joined #ruby
gr33n7007h has quit [Ping timeout: 240 seconds]
sdouglas has quit [Remote host closed the connection]
mois3x has quit [Quit: mois3x]
sdouglas has joined #ruby
itadder has quit [Remote host closed the connection]
thomasxie has joined #ruby
geggam has quit [Remote host closed the connection]
mikepack_ has quit [Ping timeout: 264 seconds]
sdouglas_ has joined #ruby
itadder has joined #ruby
mikepack_ has joined #ruby
coderhs has joined #ruby
sdouglas_ has quit [Remote host closed the connection]
sdouglas has quit [Ping timeout: 265 seconds]
sdouglas has joined #ruby
mikepac__ has joined #ruby
mikepa___ has joined #ruby
itadder has quit [Ping timeout: 252 seconds]
angelixd has quit [Ping timeout: 252 seconds]
rodasc has quit [Ping timeout: 244 seconds]
gtc has quit [Ping timeout: 240 seconds]
jjbohn has quit [Quit: Leaving...]
hiyosi has quit [Ping timeout: 264 seconds]
mjmac has quit [Ping timeout: 265 seconds]
mikepack has quit [Ping timeout: 264 seconds]
TheMoonMaster has quit [Ping timeout: 264 seconds]
rezzack has quit [Ping timeout: 240 seconds]
mikepack_ has quit [Ping timeout: 265 seconds]
sdouglas has quit [Ping timeout: 265 seconds]
Asher has quit [Quit: Leaving.]
gr33n7007h has joined #ruby
sdouglas has joined #ruby
Xeago_ has joined #ruby
mikepa___ has quit [Remote host closed the connection]
kotakotakota has quit [Quit: Leaving]
mikepack has joined #ruby
figgleberry has joined #ruby
Xeago has quit [Ping timeout: 264 seconds]
ner0x has quit [Quit: Leaving]
afex has quit [Ping timeout: 244 seconds]
oso96_2000 is now known as oso|away
Kricir has joined #ruby
fschuindt has joined #ruby
tommyvcantdesign has quit [Quit: Connection closed for inactivity]
boycey has quit [Ping timeout: 252 seconds]
mikepack has quit [Ping timeout: 252 seconds]
yacks has joined #ruby
koell has quit [Ping timeout: 264 seconds]
nateberkopec has joined #ruby
terrellt has quit [Ping timeout: 264 seconds]
lxsameer has joined #ruby
nateberkopec has quit [Read error: No route to host]
nateberkopec has joined #ruby
yubrew has joined #ruby
decoponio has joined #ruby
boycey has joined #ruby
davy has joined #ruby
Cache_Money has joined #ruby
aspires has quit []
io_syl has quit []
nateberkopec has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 240 seconds]
marcdel has joined #ruby
Asher has joined #ruby
axl_ has joined #ruby
linojon has quit [Quit: linojon]
browndawg has joined #ruby
Vovko has quit [Remote host closed the connection]
evenix has joined #ruby
crodas has joined #ruby
yeticry has quit [Ping timeout: 240 seconds]
mjmac has joined #ruby
danman has joined #ruby
danman has quit [Client Quit]
gtc has joined #ruby
TheMoonMaster has joined #ruby
joelroa has quit [Ping timeout: 244 seconds]
LadyRainicorn has quit [Ping timeout: 252 seconds]
JasmeetQA has joined #ruby
nisstyre has joined #ruby
wiku5_ has quit [Ping timeout: 265 seconds]
postmodern has quit [Quit: Leaving]
mlpinit has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
craigp has quit [Remote host closed the connection]
mgberlin has quit [Remote host closed the connection]
omegahm has joined #ruby
recurrence has joined #ruby
vlad_starkov has joined #ruby
codeitagile has quit [Ping timeout: 240 seconds]
sarmiena_ has joined #ruby
gilest has joined #ruby
michaelchum has joined #ruby
mindcake has quit [Quit: mindcake]
vlad_starkov has quit [Ping timeout: 240 seconds]
<michaelchum>
Can the values in a hash be modified after being add to the hash?
<agent_white>
Yes
sarmiena_ has quit [Read error: Connection reset by peer]
sarmiena_ has joined #ruby
gilest has quit [Remote host closed the connection]
<sarmiena_>
michaelchum: why not? the keys are the ones that are indexed, i believe
gilest has joined #ruby
mansi has joined #ruby
poguez has quit [Quit: Connection closed for inactivity]
hololeap has joined #ruby
robbyoconnor has joined #ruby
mansi has quit [Ping timeout: 244 seconds]
<michaelchum>
oh ok I just figured out, because I have a hash with string as keys and integers as values, I tried to increment the integer values using hash["key"] += 1 but it didn't work, I ended up doing hash["key"] = hash["key"].to_i + 1
<michaelchum>
Thanks
Faris has quit [Ping timeout: 240 seconds]
asteros has quit [Quit: asteros]
alexju has joined #ruby
JViz_ has joined #ruby
bluOxigen has joined #ruby
mattmcclure has quit [Quit: Connection closed for inactivity]
JViz has quit [Ping timeout: 240 seconds]
shanemhansen has joined #ruby
renderful has quit [Read error: Connection reset by peer]
<shanemhansen>
I have a local gem which can't seem to find aws-sdk.
<shanemhansen>
I'm a total ruby moron.
Hanmac has joined #ruby
lw has quit [Quit: s]
<centrx>
shanemhansen, Is awk-sdk a typo, or is it genuinely a different dependency?
aspires has joined #ruby
Deele has joined #ruby
<shanemhansen>
ummm. typo.
<shanemhansen>
Let me retry.
vlad_starkov has joined #ruby
makara has joined #ruby
morenoh149 has quit [Ping timeout: 240 seconds]
Hanmac1 has quit [Ping timeout: 240 seconds]
morenoh149 has joined #ruby
illumina has joined #ruby
illumina has left #ruby [#ruby]
yasushi has quit [Remote host closed the connection]
gilest has quit [Quit: Leaving...]
Kricir has joined #ruby
<shanemhansen>
centrx, that did the trick. Sorry for such a dumb question. It helped to extract that portion.
<shanemhansen>
the larger project involves using fpm to generate several debian packages.
<shanemhansen>
That was the final piece of the puzzle.
<shanemhansen>
!
jrhorn424 is now known as zz_jrhorn424
vlad_starkov has quit [Ping timeout: 240 seconds]
aspires has quit []
LiohAu has joined #ruby
amclain_ has joined #ruby
amclain has quit [Read error: Connection reset by peer]
amclain_ has quit [Client Quit]
amclain has joined #ruby
yubrew has joined #ruby
joelroa has joined #ruby
aspires has joined #ruby
<sarmiena_>
I'm importing a CSV file, and there appears to be non-ut8 characters in the data. I assumed that using the following would remove all non utf-8 characters: CSV.open file.path, "r:bom|utf-8"
<sarmiena_>
why does the file still have non-utf-8 chars?
evaryont has joined #ruby
mlpinit has joined #ruby
<shanemhansen>
I don't think there's a way to remove non-utf8 characters from a string which doesn't decode to utf-8 in a simple way.
<shanemhansen>
Then again, I know crap about ruby so maybe they made that task simple.
<sincereness>
thats dumb....i come to freenode specifically because i dont have to register -_-
JasmeetQA1 has joined #ruby
<centrx>
sincereness, I agree, but there was a lot of spam, and registering is very simple
<The_NetZ>
assuming that I have a text ( or whatever ) list detailing 1. the array index of a script, 2. the name of the script, and 3. the location of the script source code, how would I achieve this effect?
<bnagy>
registration only channels get less spam, trolls and people who can't read simple instructions
<sincereness>
ahh
craigp has quit [Client Quit]
<bnagy>
The_NetZ: Marshal.dump some_ary # done
centrx has quit [Quit: All this computer hacking is making me thirsty]
<The_NetZ>
bnagy: that simple? :P
<albedoa>
Eloquent Ruby says (paraphrased): "You should treat Ruby strings like any other mutable data structure. Get in the habit of saying `name = name.upcase` instead of `name.upcase!`" it doesn't go on to say why. what is the author saying here?
davy has joined #ruby
<bnagy>
getting a zlib compressed strinh is a bit irritating though, the available gems are... not my favourite
Hanmac has joined #ruby
<bnagy>
albedoa: I don't know.
havenn has joined #ruby
marcdel has quit []
<bnagy>
I mean yeah I'm against using ! methods as a habit
TuxLyn has joined #ruby
tgkokk has quit [Client Quit]
<bnagy>
but mainly because they're ugly and often lead to Unexpected Effects
havenwood has quit [Ping timeout: 240 seconds]
<TuxLyn>
Hey guys, I've managed to do what I wanted in using regex ^_^
<TuxLyn>
works exactly how I needed it, you're welcome to modify it to your needs
<Aquilo>
I've got a strange problem that I'm sure is just me making a dumb mistake, but I can't figure out what's going on. I'm pushing a string (stored in a variable) to an array, then change the variable and try to push THAT into the array. When I print the array though, all the values equal the last thing that was pushed in, no matter how many times it is pushed in. If you print it each time, the
<Aquilo>
elements update with the variable...I can't figure out what's going on at all http://pastebin.com/axiDRZCe
<havenn>
bnagy: yup
AlexRussia has joined #ruby
Hanmac1 has joined #ruby
<TuxLyn>
havenn, if you don't like messing with regex then you should use nokogiri and sanitize like some pointed out here.
<Aquilo>
actual pushing occurs on line 22
jamto11 has joined #ruby
mansi has joined #ruby
Hanmac has quit [Ping timeout: 244 seconds]
crystal77 has quit [Quit: Computer has gone to sleep.]
<hermanmunster>
+1 for using nokogiri to sanitise html/xml
YamakasY has joined #ruby
Zunonia_ has joined #ruby
<TuxLyn>
Yes nokogiri is very good and easy to use :) But this works for me, for very basic script.
<havenn>
TuxLyn: if this is what you want to really be doing, just `html.gsub!(/(\n|\t|\r)/, '')` no and don't #squeeze!
<havenn>
s/no//
<TuxLyn>
havenn, well you do need it :)
<TuxLyn>
try commenting out
<TuxLyn>
and running the script
<TuxLyn>
you'll see what happen
<TuxLyn>
if you don't remove style for example
itadder has joined #ruby
<havenn>
TuxLyn: look at the code i put above
<TuxLyn>
you will have a lot of extra spaces
<havenn>
TuxLyn: no
jamto11 has quit [Ping timeout: 252 seconds]
mansi has quit [Ping timeout: 244 seconds]
<havenn>
TuxLyn: Only because you made the space.
<havenn>
TuxLyn: Just don't.
maletor has joined #ruby
<TuxLyn>
ok one sec
<TuxLyn>
testing
Zunonia has quit [Ping timeout: 264 seconds]
aganov has joined #ruby
havenn is now known as cthulhu_
<TuxLyn>
havenn, ok it worked this time, good :) It looks like I tried that with \n+ before :)
<TuxLyn>
thanks for pointing that out :)
cthulhu_ is now known as havenwood
maletor has quit [Client Quit]
<TuxLyn>
havenwood, what is the point of changing your nick :)
<havenwood>
TuxLyn: I disconnected and my irc client chose a backup name.
<TuxLyn>
ic
AlexRussia has quit [Ping timeout: 240 seconds]
YamakasY has quit [Ping timeout: 252 seconds]
<havenwood>
;)
robbyoconnor has quit [Read error: Connection reset by peer]
derek_c has joined #ruby
<TuxLyn>
still have extra spacing before tags...
Hanmac has joined #ruby
maletor has joined #ruby
<TuxLyn>
also will need to compress css better later
snuffeluffegus has quit [Remote host closed the connection]
itadder has quit [Ping timeout: 240 seconds]
snuffeluffegus has joined #ruby
Jetchisel has joined #ruby
Hanmac1 has quit [Ping timeout: 264 seconds]
go|dfish has quit [Ping timeout: 240 seconds]
<Aquilo>
Not to be a bother, but just out of curiosity, has anyone else had a similar problem with arrays in that way before? I asked someone at a ruby meetup earlier tonight and he basically shrugged and said "should work."
mikepac__ has quit [Remote host closed the connection]
browndawg has joined #ruby
mjs2600 has joined #ruby
<Aquilo>
It's gonna be something simple, but I can't for the life of me figure it out o.O
<havenwood>
Aquilo: Taking a look, which part is the problem?
tylerkern has quit [Read error: Connection reset by peer]
<Aquilo>
havenwood: line 22 where I push in the array. It doesn't just append the value, it actually changes the value of the whole array for some reason
<Aquilo>
which is why I have it print for each iteration...so you can actually see it change
go|dfish has joined #ruby
<TuxLyn>
havenwood, do you know how to properly use array with gsub ? In php I would use it like preg_replace(array('/regex1/','/regex2'), array('/one/','two'), $data, $out);
<TuxLyn>
not exactly like that I would use array's outside of preg_replace but just so you understand what I'm asking ^_^
yubrew has joined #ruby
funburn has quit [Quit: funburn]
CaddyShack has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
rm__ has quit [Remote host closed the connection]
nadirvardar has quit [Quit: Computer has gone to sleep.]
rm__ has joined #ruby
<TuxLyn>
basicly I would like to *try* and do this regex = [ ['/regex1/',''], ['/regex2/','.'] ] etc...
mary5030_ has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
<TuxLyn>
where you have key and value in array
<TuxLyn>
then run that throught gsub somehow ^_^
mjs2600 has quit [Ping timeout: 265 seconds]
asteros has joined #ruby
noopq has joined #ruby
vlad_starkov has joined #ruby
Hanmac1 has joined #ruby
yubrew has quit [Ping timeout: 244 seconds]
Hanmac has quit [Ping timeout: 244 seconds]
yarou has quit [Remote host closed the connection]
segmond has joined #ruby
rm__ has quit [Ping timeout: 240 seconds]
mikepack has joined #ruby
<TuxLyn>
hmm I may be able to do this with each loop
mlpinit has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
iliketurtles has quit [Quit: zzzzz…..]
hermanmunster has quit [Remote host closed the connection]
mgberlin has quit [Remote host closed the connection]
hermanmunster has joined #ruby
rm__ has joined #ruby
albedoa has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yasushi has joined #ruby
hermanmu_ has joined #ruby
hermanmunster has quit [Read error: Connection reset by peer]
Shidash has joined #ruby
mlpinit has quit [Ping timeout: 252 seconds]
<Aquilo>
alright, I've been messing with this push thing for literally hours. It's time to just leave it and come back to it tomorrow with fresh eyes.
shevy has joined #ruby
<Aquilo>
Thanks for your help everyone :)
JohnBat26 has joined #ruby
yasushi has quit [Ping timeout: 240 seconds]
tonni has quit [Remote host closed the connection]
JohnBat26 has quit [Client Quit]
nateberkopec has joined #ruby
JohnBat26 has joined #ruby
JohnBat26 has quit [Client Quit]
JohnBat26 has joined #ruby
anarang has joined #ruby
dseitz has joined #ruby
falood has quit [Remote host closed the connection]
joelroa has joined #ruby
falood has joined #ruby
<TuxLyn>
here is what I want to do but of course its not working for some reason :-) If any one can help I apreceate it. http://pastebin.com/7nfD1duA
<havenwood>
Aquilo: i have the reason
<havenwood>
Aquilo: sec
<havenwood>
Aquilo: in your randMove method
<havenwood>
Aquilo: you're overwriting your local_variable inside that method
<havenwood>
Aquilo: it is still referenced in the Array
davedev24 has quit [Remote host closed the connection]
<TuxLyn>
but they both work identical right ? because I used both of them have no issues
codeitagile has joined #ruby
davedev24 has joined #ruby
<havenwood>
TuxLyn: for your usecase, yeah you could use either just fine
gaussblurinc has joined #ruby
<TuxLyn>
ok thanks :)
Ch4rAss has joined #ruby
<Aquilo>
havenwood: Haha, yay tinkering. Really I should be doing this with objects anyway. It's mostly something I'm just messing around with to get the hang of ruby. I'm glad you did that though, as it really clarified where the problem was. I knew what was happening after you fixed it and said it, but the refactor there solidified it in my head.
apeiros has quit [Remote host closed the connection]
seggy has joined #ruby
<havenwood>
Aquilo: :)
apeiros has joined #ruby
mozzarella is now known as bro
segmond has quit [Read error: Connection reset by peer]
tonni has joined #ruby
recurrence has joined #ruby
robert___ has joined #ruby
davedev24 has quit [Ping timeout: 240 seconds]
Hanmac1 has quit [Ping timeout: 240 seconds]
Zunonia__ has joined #ruby
shevy has quit [Ping timeout: 240 seconds]
coderhs has quit [Ping timeout: 264 seconds]
mikepack has quit [Remote host closed the connection]
apeiros has quit [Ping timeout: 252 seconds]
Hanmac has joined #ruby
robert_ has quit [Ping timeout: 252 seconds]
Zunonia_ has quit [Ping timeout: 240 seconds]
gaussblurinc has quit [Quit: Leaving.]
hololeap has quit [Ping timeout: 244 seconds]
lsmola has joined #ruby
shevy has joined #ruby
_tpavel has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
kopasetik has quit [Ping timeout: 244 seconds]
shevy has quit [Ping timeout: 240 seconds]
bal has joined #ruby
asteros has quit [Quit: asteros]
hermanmu_ has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
hermanmunster has joined #ruby
snuffeluffegus has quit [Quit: Leaving]
LiohAu has joined #ruby
shevy has joined #ruby
yubrew has joined #ruby
hermanmunster has quit [Ping timeout: 240 seconds]
iliketurtles has quit [Quit: zzzzz…..]
rahult_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<sarmiena_>
but still getting ArgumentError: invalid byte sequence in UTF-8
hermanmunster has joined #ruby
hermanmunster has quit [Remote host closed the connection]
Nyyx has joined #ruby
Myk267 has joined #ruby
sdouglas has quit [Remote host closed the connection]
<sarmiena_>
i thought the r:bom|utf-8 was supposed to remove all non-utf-8 chars in the file?
sdouglas has joined #ruby
TuxLyn has quit [Ping timeout: 244 seconds]
chipotle has quit [Quit: cya]
toastynerd has joined #ruby
kobain has quit []
toastynerd has quit [Remote host closed the connection]
shevy has quit [Ping timeout: 265 seconds]
tonni has joined #ruby
tylersmith has quit [Remote host closed the connection]
sdouglas has quit [Ping timeout: 265 seconds]
Cache_Money has joined #ruby
mlpinit has joined #ruby
jph98 has joined #ruby
txdv_ has quit [Ping timeout: 264 seconds]
Zunonia__ has quit [Remote host closed the connection]
apeiros has joined #ruby
tylersmith has joined #ruby
Zunonia__ has joined #ruby
Nyyx has quit [Ping timeout: 240 seconds]
<sarmiena_>
apeiros: i believe you helped me with my file read question a while back. had to do with byte order mark in my file…. not sure if you remember?
<apeiros>
sarmiena_: I think I do. a utf-8 file with a BOM?
<sarmiena_>
yeah!
<sarmiena_>
so i'm having a follow up issue with another csv
<sarmiena_>
but still getting ArgumentError: invalid byte sequence in UTF-8
madhatter has joined #ruby
<apeiros>
sounds like the .csv is not in utf-8 then
hobodave has quit [Quit: Computer has gone to sleep.]
<sarmiena_>
yeah… but i thought that opening the file with
<sarmiena_>
r:bom|utf-8 would convert it and remove non-utf8 chars?
rippa has joined #ruby
<apeiros>
that only states what encoding the file is supposed to be in. it doesn't convert it from unknown to utf-8
mary5030 has joined #ruby
<sarmiena_>
oh i see
<sarmiena_>
how would i achieve conversion?
<apeiros>
in order to convert an encoding, the source encoding must be known
<sarmiena_>
mhmmm
<sarmiena_>
and how would one go about finding that out?
<apeiros>
either you ask the creator of the file
<apeiros>
or you inspect the file, look for distinctive chars, and try in which encoding they appear to be correct
mlpinit has quit [Ping timeout: 252 seconds]
tylersmith has quit [Ping timeout: 265 seconds]
<apeiros>
File.read(path, encoding: 'TESTENCODING:utf-8')[offset, length] # <-- set offset/length so that you can see the distinctive char, set TESTENCODING to the encoding you assume the file to be
NovapaX has joined #ruby
<apeiros>
this assumes that your terminal etc. can properly display utf-8 :)
Es0teric has quit [Quit: Computer has gone to sleep.]
<sarmiena_>
there's no way to remove non-utf8 from random file?
bricker`LA has joined #ruby
<apeiros>
you can remove all chars which are above the 7bit range
nateberkopec has joined #ruby
charlies_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros>
that sounds ill-advised, though
cdime has quit [Remote host closed the connection]
<sarmiena_>
lol
dagobah has joined #ruby
Findegil has quit [Ping timeout: 240 seconds]
carraroj has joined #ruby
<apeiros>
you'd open it as binary and use e.g. gsub(/[^\x00-\x79]/, ''), then you use force_encoding('utf-8')
recurrence has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood>
god encodings are frightening :O
yacks has quit [Quit: Leaving]
dapz has joined #ruby
<havenwood>
apeiros: pretty cool it works, at least for these three
cloud|nix has quit [Quit: Ex-Chat]
davy has quit [Ping timeout: 265 seconds]
charliesome has joined #ruby
<havenwood>
coming up with adequate rules seems daunting
Cache_Money has quit [Quit: Cache_Money]
shevy has quit [Ping timeout: 240 seconds]
Kricir has quit [Ping timeout: 240 seconds]
zombiebit has quit []
shevy has joined #ruby
grzywacz has joined #ruby
<havenwood>
UTF-8 \o/
elcontrastador has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
YamakasY has joined #ruby
ayaz has joined #ruby
jph98 has quit [Quit: jph98]
shvelo has joined #ruby
shvelo has quit [Changing host]
shvelo has joined #ruby
MattStra_ has joined #ruby
hermanmunster has joined #ruby
fgo has quit [Remote host closed the connection]
itadder has joined #ruby
hermanmunster has quit [Remote host closed the connection]
jsilver_ has joined #ruby
hermanmunster has joined #ruby
mengu__ has joined #ruby
ephemerian has joined #ruby
Gooder` has joined #ruby
charlies_ has joined #ruby
sski_ has joined #ruby
justinmcp_ has joined #ruby
<havenwood>
apeiros: parsed a csv and created a pdf with tabledata gem, this is neat! :)
lolmaus_ has joined #ruby
claymore has joined #ruby
calleerlandsson has joined #ruby
m1lt0n_ has joined #ruby
jayne_ has joined #ruby
itadder has quit [Ping timeout: 264 seconds]
raddazong has joined #ruby
jmeeuwen has quit [Read error: Connection reset by peer]
ninegrid_ has joined #ruby
klaut__ has joined #ruby
predator217 has joined #ruby
gigetoo_ has joined #ruby
hermanmunster has quit [Ping timeout: 264 seconds]
Zunonia has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
_zxq9_ has joined #ruby
dseitz_ has joined #ruby
ahawkins has joined #ruby
jamto11 has joined #ruby
mansi has joined #ruby
predator117 has quit [Disconnected by services]
mr_rich102 has joined #ruby
ageis_ has joined #ruby
alex88 has joined #ruby
kevinfagan_ has joined #ruby
scttnlsn- has joined #ruby
shvelo has quit [*.net *.split]
charliesome has quit [*.net *.split]
madhatter has quit [*.net *.split]
Zunonia__ has quit [*.net *.split]
coderhs has quit [*.net *.split]
klaut_ has quit [*.net *.split]
_tpavel has quit [*.net *.split]
tagrudev has quit [*.net *.split]
dseitz has quit [*.net *.split]
noopq has quit [*.net *.split]
mengu has quit [*.net *.split]
browndawg has quit [*.net *.split]
wchun has quit [*.net *.split]
lolmaus has quit [*.net *.split]
sski has quit [*.net *.split]
zxq9 has quit [*.net *.split]
jsilver has quit [*.net *.split]
CpuID has quit [*.net *.split]
v0n has quit [*.net *.split]
ageis has quit [*.net *.split]
drager has quit [*.net *.split]
DrShoggoth has quit [*.net *.split]
gigetoo has quit [*.net *.split]
vpretzel has quit [*.net *.split]
Salve has quit [*.net *.split]
Alina-malina has quit [*.net *.split]
armyriad has quit [*.net *.split]
scttnlsn has quit [*.net *.split]
ninegrid has quit [*.net *.split]
Hamburglr has quit [*.net *.split]
Radar has quit [*.net *.split]
breakingthings has quit [*.net *.split]
kevinfagan has quit [*.net *.split]
mr_rich101 has quit [*.net *.split]
dreamchaser has quit [*.net *.split]
Gooder has quit [*.net *.split]
Andrevan has quit [*.net *.split]
justinmcp has quit [*.net *.split]
camt has quit [*.net *.split]
jayne has quit [*.net *.split]
Port3M5[Work] has quit [*.net *.split]
mclee_ has quit [*.net *.split]
Senjai has quit [*.net *.split]
kitak has quit [*.net *.split]
ayaz has quit [*.net *.split]
txdv has quit [*.net *.split]
apeiros has quit [*.net *.split]
Waheedi has quit [*.net *.split]
robbyoconnor has quit [*.net *.split]
nfk has quit [*.net *.split]
wiku5_ has quit [*.net *.split]
michaelchum has quit [*.net *.split]
kukyakya has quit [*.net *.split]
Xeago_ has quit [*.net *.split]
thomasxie has quit [*.net *.split]
tjr9898 has quit [*.net *.split]
awarner has quit [*.net *.split]
northfurr has quit [*.net *.split]
Xiti has quit [*.net *.split]
Mongey has quit [*.net *.split]
BraddBitt has quit [*.net *.split]
Nilium has quit [*.net *.split]
TMM has quit [*.net *.split]
greenrose has quit [*.net *.split]
Soulcutter has quit [*.net *.split]
tommyblu` has quit [*.net *.split]
jinie_ has quit [*.net *.split]
zellio has quit [*.net *.split]
phantasm66 has quit [*.net *.split]
ritek has quit [*.net *.split]
Hobogrammer has quit [*.net *.split]
glebm has quit [*.net *.split]
deadlock_ has quit [*.net *.split]
SegFaultAX has quit [*.net *.split]
MrJoshua has quit [*.net *.split]
p8952 has quit [*.net *.split]
joonty has quit [*.net *.split]
vaicine has quit [*.net *.split]
klaut has quit [*.net *.split]
Kovensky has quit [*.net *.split]
Davey has quit [*.net *.split]
mgomezch has quit [*.net *.split]
iamdoo2_ has quit [*.net *.split]
Authenticator has quit [*.net *.split]
george2 has quit [*.net *.split]
DylanJ has quit [*.net *.split]
lele has quit [*.net *.split]
w|t has quit [*.net *.split]
linduxed has quit [*.net *.split]
kloeri has quit [*.net *.split]
phutchins has quit [*.net *.split]
soahccc has quit [*.net *.split]
mgorbach has quit [*.net *.split]
NalloK has quit [*.net *.split]
virtualize has quit [*.net *.split]
mven has quit [*.net *.split]
ddd has quit [*.net *.split]
aboudreault has quit [*.net *.split]
idoru has quit [*.net *.split]
wykydtron has quit [*.net *.split]
gigetoo_ is now known as gigetoo
scttnlsn- is now known as scttnlsn
Alina-malina has joined #ruby
Radar has joined #ruby
Radar is now known as Guest71112
yacks has joined #ruby
drager has joined #ruby
jayne_ is now known as jayne
jamto11 has quit [Ping timeout: 253 seconds]
snuffeluffegus has quit [Quit: Leaving]
vpretzel has joined #ruby
mansi has quit [Ping timeout: 244 seconds]
dreamchaser has joined #ruby
agent_white has quit [Quit: leaving]
schaary has quit [Ping timeout: 264 seconds]
dreamchaser is now known as Guest76255
not_a_guest has joined #ruby
schaary has joined #ruby
tonni has quit [Remote host closed the connection]
timonv_ has quit [Remote host closed the connection]
havenwood has left #ruby [#ruby]
gaussblurinc has joined #ruby
io_syl has quit []
NalloK has joined #ruby
coderhs has joined #ruby
noopq has joined #ruby
_tpavel has joined #ruby
shvelo has joined #ruby
v0n has joined #ruby
CpuID has joined #ruby
CpuID has joined #ruby
CpuID has quit [Changing host]
mjs2600 has joined #ruby
axsuul has quit [Ping timeout: 252 seconds]
julian` has joined #ruby
esposito has joined #ruby
axsuul has joined #ruby
dseitz_ is now known as dseit
dseit is now known as dseitz
einarj has joined #ruby
esposito has quit [Client Quit]
CpuID has quit [Client Quit]
derek_c has quit [Quit: Leaving]
CpuID has joined #ruby
mjs2600 has quit [Ping timeout: 244 seconds]
<shevy>
people seem to dislike goto
<shevy>
I think we need goto everywhere
<shevy>
even in ruby
<shevy>
goto {}
amclain has quit [Quit: Leaving]
carraroj has quit [Ping timeout: 244 seconds]
<tobiasvl>
funny that the gnutls bug ALSO was a goto mistake
CpuID has quit [Read error: Connection reset by peer]
<tobiasvl>
i mean wtf.
aaronmcadam has joined #ruby
tesuji has joined #ruby
phansch has joined #ruby
ndrei has quit [Ping timeout: 265 seconds]
Ch4rAss has quit [Ping timeout: 240 seconds]
francisfish has joined #ruby
armyriad has joined #ruby
aaronmcadam has quit [Client Quit]
workmad3 has joined #ruby
mehlah has joined #ruby
Ch4rAss has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
mlpinit has joined #ruby
leonidlm has joined #ruby
pcarrier has quit [Quit: Connection closed for inactivity]
mlpinit has quit [Read error: Connection reset by peer]
mlpinit has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
apeiros has joined #ruby
arietis has quit [Ping timeout: 265 seconds]
arietis has joined #ruby
<apeiros>
seems I ended up on the wrong side of the netsplit
<gaussblurinc>
hi! I am bit confused about regexps in ruby. how to implement 'not contains a set of words' for array select function? I use regex square brackets operator but I can't write correct regex with look-behind
mlpinit has quit [Ping timeout: 252 seconds]
<apeiros>
hrm, but havenwood is not here :(
<apeiros>
gaussblurinc: regex are character based. writing "does not include words" is non-trivial.
tonni has joined #ruby
ikaros has joined #ruby
<gaussblurinc>
?! - look-behind will do it well.. but how about [] - operator ?
<apeiros>
[] are character classes.
<apeiros>
[abc] <-- a single character, either a, b or c
<gaussblurinc>
no, I mean []-operator for object in ruby :)
<apeiros>
that's a method, not an operator
<apeiros>
well, what about it?
<gaussblurinc>
array.select{|object| object[regex]} - filter array with regex
tvw has joined #ruby
<apeiros>
use =~, not [] there
jhass|off is now known as jhass
axsuul has quit [Read error: Connection reset by peer]
rahult_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
snuffeluffegus has quit [Quit: Leaving]
timonv has quit [Ping timeout: 240 seconds]
cs02rm0 has quit [Ping timeout: 240 seconds]
nfk|laptop has quit [Read error: Operation timed out]
timonv has joined #ruby
leur has joined #ruby
emanu has quit [Quit: emanu]
axsuul has joined #ruby
weeb1e has joined #ruby
shredding has quit [Read error: Connection reset by peer]
Ch4rAss` has joined #ruby
rahult has joined #ruby
AlSquire has joined #ruby
mbuf has quit [Quit: Leaving]
<weeb1e>
Good day everyone
sparrovv has joined #ruby
<weeb1e>
I have a strange rubygems issue on one of my boxes which has not been solved by updating rubygems, when I run applications the console is flooded with:
<weeb1e>
Exception `NoMethodError' at /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:1949 - undefined method `to_ary' for #<Gem::Specification name=multi_json version=1.7.7>
<weeb1e>
Exception `NoMethodError' at /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:1949 - undefined method `to_ary' for #<Gem::Specification name=builder version=3.0.0>
<weeb1e>
Many times for those gems
hermanmunster has joined #ruby
rm__ has quit [Remote host closed the connection]
gccv has left #ruby [#ruby]
rm__ has joined #ruby
<shevy>
which gems?
Ch4rAss has quit [Ping timeout: 244 seconds]
gaussblurinc has quit [Quit: Leaving.]
roolo has joined #ruby
shredding has joined #ruby
elaptics`away is now known as elaptics
<jhass>
weeb1e: what's your rubygems version now? gem --version
kitak has joined #ruby
<apeiros>
mbreit: rugged is probably the best option
<apeiros>
gah, sorry mbreit
<apeiros>
the guy I wanted to address is already gone :(
mengu__ has quit [Remote host closed the connection]
rdark has joined #ruby
pingec has joined #ruby
rm__ has quit [Ping timeout: 240 seconds]
crystal77 has joined #ruby
coderhs has quit [Remote host closed the connection]
shaunbaker has joined #ruby
greenarrow has quit [Quit: 500]
sigurding has quit [Quit: sigurding]
gaussblurinc has joined #ruby
mlpinit has joined #ruby
tvw has quit []
greenarrow has joined #ruby
timonv has quit [Remote host closed the connection]
andrewlio has quit [Quit: Leaving.]
AxonetBE has joined #ruby
<AxonetBE>
How can I pass an operand to a method?
<AxonetBE>
Do I have to pass as a string like "+" "-" ?
<Riking>
I think you'll want to pass a block
<Riking>
in general
<Riking>
what's the method supposed to do?
nateberkopec has joined #ruby
_HolyCow1 has joined #ruby
<AxonetBE>
For example I want to make function for this because I repeat it quite often with other parameters
<weeb1e>
shevy: Those two I pasted, they just flood the console with those two lines
_HolyCow has quit [Ping timeout: 265 seconds]
<weeb1e>
jhass: 2.2.2
julian` has quit [Ping timeout: 264 seconds]
julian` has joined #ruby
shvelo has quit [Ping timeout: 244 seconds]
rahult is now known as rahult_
<jhass>
AxonetBE: .inject(0){|sum,x| sum + (x["sales"] - x["returns"])} can be written as .map {|x| x["sales"] - x["returns"] }.inject(:+)
Hien has joined #ruby
rahult_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hamletx has joined #ruby
<weeb1e>
If anyone has any ideas how I can fix the issue, please let me know
nfk|laptop has joined #ruby
lolmaus has joined #ruby
shvelo has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
sdouglas has joined #ruby
<AxonetBE>
jhass: thanks
lolmaus_ has quit [Ping timeout: 264 seconds]
gaussblurinc has joined #ruby
browndawg has quit [Read error: Connection reset by peer]
browndawg has joined #ruby
Hanmac has quit [Quit: Leaving.]
Hanmac has joined #ruby
Shidash has quit [Ping timeout: 265 seconds]
karupanerura is now known as zz_karupanerura
blackmesa has joined #ruby
<AxonetBE>
Riking: any idea how to make the method in the best way?
<Riking>
whoops, wasn't looking - one sec
sdouglas has quit [Ping timeout: 265 seconds]
visof has joined #ruby
cs02rm0 has joined #ruby
<Riking>
oh - what jhass said is the answer
<Riking>
.inject(:+)
<bnagy>
don't think so
guilleiguaran has quit [Quit: Connection closed for inactivity]
<Riking>
hm, lemme check
<bnagy>
I think it's sales - returns vs sales + returns vs whatever / otherthing
<Riking>
1.+() results in ArgumentError:
nomenkun has quit [Read error: Connection reset by peer]
<bnagy>
but probably always inject :+
<AxonetBE>
bnagy: correct
<Riking>
so you want to use :- AxonetBE
<jhass>
a.public_send(:-, b) then
<Riking>
^
<Riking>
yup
<weeb1e>
I'm considering editing rubygems/specification.rb and just hacking it to hide these method missing errors, I can't find any information online and have no idea how else I can fix this
itadder has joined #ruby
<bnagy>
I'd probably write a method so you could do stocks.sum('sales', :-, 'returns')
Kneferilis has joined #ruby
<Riking>
that's what he was trying to do IIRC
<bnagy>
the implementation from there is pretty trivial :)
<bnagy>
thing[first].send(op, thing[second])
davy has joined #ruby
<bnagy>
or stocks.munge :+, 'sales', :-, 'returns'
<AxonetBE>
I will make my method and post it later here for a double check
yokel has quit [Remote host closed the connection]
kitak has quit [Remote host closed the connection]
<jhass>
olivier_bK: also note that the Host header in HTTP isn't intended as parameter but as indicator what domain you want to access. Changing that meaning is bad style
<gaussblurinc>
I'd like to use this: print qq(curl $url) ; print qx(curl $url) <- perl
yokel has joined #ruby
<olivier_bK>
jhass, i try to acces to my domain
_zxq9_ is now known as zxq9
joelroa has quit [Ping timeout: 240 seconds]
pierre1_ has quit [Ping timeout: 265 seconds]
Xeago has joined #ruby
<olivier_bK>
i have two server on in debian and another one in centos in the first one everything doing fine
<olivier_bK>
but in centos i get this error
<jhass>
olivier_bK: again, I do not speak french so I've no idea what the error is
<gaussblurinc>
are you sure, that this is question about ruby?
bluenemo has joined #ruby
<olivier_bK>
ohh sorry lol
<olivier_bK>
Aucun fichier ou dossier de ce type
<olivier_bK>
=> i cant find any directory of that type
<pontiki>
"Each file or folder of the type"
<jhass>
You mean "No such file or directory" ?
<jhass>
just run it with LC_ALL=C
<pontiki>
do you know for a *fact* there are files of the type you are looking for there?
rdark has quit [Ping timeout: 240 seconds]
tjr9898 has quit [Read error: No route to host]
ndrei has joined #ruby
rahult is now known as rahult_
<olivier_bK>
jhass, yea something like that :)
tjr9898 has joined #ruby
<jhass>
what does which curl say?
rahult_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<olivier_bK>
he say /usr/bin/curl
<jhass>
try removing the '
<pontiki>
that's what was bothering me
rdark has joined #ruby
<pontiki>
if you send a quoted string to the shell like that, it thinks that whole string is the file to execute, doesn't it?
<weeb1e>
Still haven't been able to figure out what is going on with rubygems, something is seriously wrong
gaussblurinc has left #ruby [#ruby]
jkhaliph has joined #ruby
gaussblurinc has joined #ruby
<olivier_bK>
thanks all
<pontiki>
i doubt it, weeb1e
QbY has joined #ruby
<jkhaliph>
I have a question about my ruby app im working on
<weeb1e>
I am getting random gem method missing errors all over the place pontiki
<jkhaliph>
can someone help?
<jkhaliph>
Im a ruby noob
<pontiki>
weeb1e: your installation might be screwed up
<weeb1e>
Unlikley
<weeb1e>
*Unlikely
<pontiki>
lol
<jhass>
jkhaliph: don't ask to ask, just ask
<weeb1e>
I have many other applications running just fine on here
<pontiki>
yes, and millions of other people are having all the same problems
<olivier_bK>
yes ask your question
<weeb1e>
(On this box, using this ruby installation)
<pontiki>
so, you're saying that all those other applications are working, the one is not, and rubygems is screwed up??
<jkhaliph>
I need to add a search ba yo a web app I am working on
mansi has quit [Ping timeout: 244 seconds]
dingus_khan has joined #ruby
<jkhaliph>
bar to*
tjr9898 has quit [Read error: Connection reset by peer]
hiyosi has joined #ruby
<weeb1e>
jkhaliph: Is it a rails app
<jhass>
jkhaliph: note that ruby != rails, rails is a framework running on ruby. If you're using rails you're better helped in #RubyOnRails
<weeb1e>
What jhass said.
tjr9898 has joined #ruby
<jkhaliph>
Gotcha
<jkhaliph>
Im heading over to the #rubyonrails chat now
<jkhaliph>
thanks
dingus_khan has quit [Remote host closed the connection]
<weeb1e>
I blame PHP for people confusing languages and frameworks
<weeb1e>
PHP should never have been invented
jkhaliph has quit [Client Quit]
<pontiki>
PHP isn't a framework, either
<QbY>
but it made so many competent developers though
camilasan has quit [Remote host closed the connection]
<weeb1e>
Exactly
camilasan has joined #ruby
<weeb1e>
Why does rubygems hate me today :(
camilasa_ has joined #ruby
<weeb1e>
MongoMapper is causing constant spamming of: Exception `NoMethodError' at /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.8/lib/active_support/core_ext/date_time/calculations.rb:141 - undefined method `coerce' for nil:NilClass
<weeb1e>
Even though everything still seems to work as expected, it makes my console output useless
hiyosi has quit [Ping timeout: 240 seconds]
camilasa_ has quit [Read error: Connection reset by peer]
itadder has joined #ruby
camilasa_ has joined #ruby
<itadder>
whawt does yield do
camilasa_ has quit [Read error: Connection reset by peer]
andrewlio has joined #ruby
<weeb1e>
Do you think it's possible I'm getting those coerce issues because the version of 1.9.3 is a lot older on this box?
<jhass>
itadder: it calls a passed bloc. parameters you pass to yield are passed to the block. The return value of the block is the return value of yield
camilasa_ has joined #ruby
<weeb1e>
These gems work fine on another box I have
camilasa_ has quit [Read error: Connection reset by peer]
<weeb1e>
It looks like that is indeed a ruby bug
camilasa_ has joined #ruby
<weeb1e>
Just surprised I have not run into it with any of my other applications running on this box
camilasan has quit [Ping timeout: 264 seconds]
<weeb1e>
I'll have to try upgrade 1.9.3 to the latest build and hope none of my other applications break
camilasa_ has quit [Read error: Connection reset by peer]
crantron has quit []
ndrei has quit [Ping timeout: 240 seconds]
camilasan has joined #ruby
rdark has quit [Ping timeout: 244 seconds]
camilasan has quit [Read error: Connection reset by peer]
dingus_khan has joined #ruby
pierre1_ has joined #ruby
camilasan has joined #ruby
rahult has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
rdark has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
AlSquire has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
camilasan has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
davedev24 has joined #ruby
renderful has quit [Ping timeout: 252 seconds]
ndrei has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 264 seconds]
thomasxie has quit [Remote host closed the connection]
camilasan has joined #ruby
thomasxie has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
roolo has quit [Quit: Leaving...]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
<itadder>
so yield
<itadder>
passes the block
m1lt0n_ has quit [Quit: leaving]
camilasan has quit [Read error: Connection reset by peer]
camilasa_ has joined #ruby
<certainty>
if you think of the block of a function, than yield == function application
fedesilva has joined #ruby
<certainty>
then
<weeb1e>
Or not... updated to the latest 1.9.3 and I still get these errors
camilasa_ has quit [Read error: Connection reset by peer]
<weeb1e>
This makes no sense :/
camilasan has joined #ruby
mlpinit has joined #ruby
noopq has quit [Ping timeout: 240 seconds]
<itadder>
certainty: oh
shime has joined #ruby
boycey has quit [Quit: boycey]
camilasan has quit [Read error: Connection reset by peer]
Hanmac has joined #ruby
chrisseaton has quit []
<itadder>
what would be a good use case
sigurding has quit [Quit: sigurding]
camilasan has joined #ruby
dweeb has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
nateberkopec has joined #ruby
cs02rm0 has joined #ruby
camilasan has joined #ruby
<weeb1e>
I don't even know how these exceptions are being caught and printed without a backtrace
<certainty>
itadder: for yield?
camilasa_ has joined #ruby
dingus_khan has quit [Read error: Connection reset by peer]
<weeb1e>
What part of ruby or rubygems catches exceptions and prints them out in this format? "Exception `NoMethodError' at /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.8/lib/active_support/core_ext/date_time/calculations.rb:141 - undefined method `coerce' for nil:NilClass"
<weeb1e>
I tried editing that file directly and adding a rescue to like 141, but it doesn't even catch the error
camilas__ has joined #ruby
chrisseaton has joined #ruby
<itadder>
yes
<weeb1e>
So I can't get a full backtrace and see where the real error is even
<weeb1e>
If anyone has any ideas, please let me know :|
mlpinit has quit [Ping timeout: 244 seconds]
<certainty>
itadder: there are many. It's a means to share code. Can be used to implement strategy pattern or visitor
<certainty>
and all sorts of other interesting things
<itadder>
okay
<itadder>
it seem every chapter is getting more advance now
<itadder>
methods and blocks are very advance topic for me
<itadder>
I need to spend far more time doing examples and tweeking
cs02rm0 has quit [Ping timeout: 252 seconds]
shvelo has joined #ruby
<certainty>
itadder: are you familiar with the concept of higher order functions?
sparrovv has quit [Remote host closed the connection]
AlexRussia has quit [Ping timeout: 264 seconds]
Faris has joined #ruby
<certainty>
itadder: that's something different I think. Isn't that a rule to remember the precedence of operations?
sparrovv has joined #ruby
boycey has joined #ruby
frode15243_ has joined #ruby
iaj_ has joined #ruby
mikemac has joined #ruby
ji0n has joined #ruby
Atww has joined #ruby
gyre007__ has joined #ruby
Jakee`__ has joined #ruby
<certainty>
itadder: well basically every method in ruby can take an optional argument that happens to be equivalent to a function. Something that is callable and represents an operation/computation
Cope__ has joined #ruby
hanikazmi has joined #ruby
<certainty>
that's the blocks
vcoinminer_ has joined #ruby
lolmaus_ has joined #ruby
LiohAu has quit [Read error: Connection reset by peer]
dachi_ has joined #ruby
snkcld_ has joined #ruby
<certainty>
you can either bind the block to a parameter and call it def f(&block); block.call; end or use yield which will do the same but without the need to bind the block to a parameter: def f; yield; end
zrl__ has joined #ruby
jrhe_ has joined #ruby
* certainty
is bad at explaining things
noname001__ has joined #ruby
vaktpost_ has joined #ruby
kevinfagan has joined #ruby
DrForr_ has joined #ruby
telling_ has joined #ruby
antonishen_ has joined #ruby
robmozart__ has joined #ruby
dseitz_ has joined #ruby
Drakevr_ has joined #ruby
multi_io_ has joined #ruby
crazysim has quit [Excess Flood]
frode15243 has quit [Ping timeout: 265 seconds]
Jakee`_ has quit [Ping timeout: 265 seconds]
frode15243_ is now known as frode15243
Jakee`__ is now known as Jakee`_
krandi has joined #ruby
dseitz has quit [Disconnected by services]
sivoais_ has joined #ruby
jpinnix___ has joined #ruby
dseitz_ is now known as dseitz
sparrovv has quit [Remote host closed the connection]
elimS has joined #ruby
Drakevr has quit [Disconnected by services]
mansi has joined #ruby
dayepa has joined #ruby
icedp has joined #ruby
sparrovv has joined #ruby
skyjumpe1 has joined #ruby
phrozen77 has joined #ruby
davy has joined #ruby
roolo has joined #ruby
TwinkleH1od has joined #ruby
schaary_ has joined #ruby
supershabam_ has joined #ruby
d-snp_ has joined #ruby
Drakevr_ is now known as Drakevr
ping_pong has joined #ruby
ckrailo_ has joined #ruby
SirFunk_ has joined #ruby
cbetta_ has joined #ruby
Drakevr has quit [Changing host]
Drakevr has joined #ruby
foredoomed has joined #ruby
Tranquility_ has joined #ruby
mattyohe_ has joined #ruby
ndrei_ has joined #ruby
drjblouse__ has joined #ruby
mroth__ has joined #ruby
niv_ has joined #ruby
rdark_ has joined #ruby
visof_ has joined #ruby
adamholt_ has joined #ruby
sindork_ has joined #ruby
crazysim has joined #ruby
davidcel- has joined #ruby
hamakn_ has joined #ruby
Sthebig_ has joined #ruby
charles81_ has joined #ruby
xxi has joined #ruby
cmaxw____ has joined #ruby
aryaching_ has joined #ruby
kapowaz_ has joined #ruby
adambeynon__ has joined #ruby
jrunning____ has joined #ruby
Muz_ has joined #ruby
mtlatif__ has joined #ruby
cjk101010_ has joined #ruby
LiohAu has joined #ruby
roolo has quit [Read error: Connection reset by peer]
PLejeck- has joined #ruby
Ch4rAss has joined #ruby
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
crazymykl has quit [Remote host closed the connection]
iaj has quit [Remote host closed the connection]
gyre007_ has quit [Ping timeout: 265 seconds]
bakingbread has quit [Ping timeout: 265 seconds]
phrozen7- has quit [Ping timeout: 265 seconds]
vcoinminer has quit [Ping timeout: 265 seconds]
ji0n_ has quit [Ping timeout: 265 seconds]
bodie_ has quit [Ping timeout: 265 seconds]
Speed has quit [Ping timeout: 265 seconds]
Klumben has quit [Ping timeout: 265 seconds]
FL1SK has quit [Ping timeout: 265 seconds]
Atw has quit [Remote host closed the connection]
zenojis has quit [Quit: No Ping reply in 180 seconds.]
jrhe has quit [Ping timeout: 265 seconds]
Cope has quit [Ping timeout: 265 seconds]
zrl_ has quit [Ping timeout: 265 seconds]
hanikazmi_ has quit [Quit: No Ping reply in 180 seconds.]
kevinfagan_ has quit [Ping timeout: 265 seconds]
JViz_ has quit [Ping timeout: 265 seconds]
jmaister has quit [Ping timeout: 265 seconds]
antonishen has quit [Ping timeout: 265 seconds]
epochwolf has quit [Ping timeout: 265 seconds]
dachi has quit [Ping timeout: 265 seconds]
ConstantineXVI has quit [Ping timeout: 265 seconds]
Klumben has joined #ruby
lolmaus has quit [Quit: No Ping reply in 180 seconds.]
Deele has quit [Ping timeout: 265 seconds]
nathansoz has quit [Ping timeout: 265 seconds]
lfox_ has quit [Ping timeout: 265 seconds]
psyprus has quit [Ping timeout: 265 seconds]
Paradox has quit [Ping timeout: 265 seconds]
jpinnix__ has quit [Ping timeout: 265 seconds]
snkcld has quit [Ping timeout: 265 seconds]
robmozart_ has quit [Ping timeout: 265 seconds]
dmarr has quit [Ping timeout: 265 seconds]
artgoeshere has quit [Ping timeout: 265 seconds]
dachi_ is now known as dachi
mr_rich101 has joined #ruby
gyre007__ is now known as gyre007_
dmoe___ has joined #ruby
Deele has joined #ruby
Nigel_ has joined #ruby
Rylee has quit [Max SendQ exceeded]
zenojis has joined #ruby
The_Doctor has joined #ruby
jrhe_ is now known as jrhe
<itadder>
is tutspoint + the best way for me to learn ruby methods
<itadder>
or programing methods and blocks
jmaister has joined #ruby
<itadder>
I just want to learn the logic of blocks classes and methods
__noname001__ has quit [Remote host closed the connection]
aryaching has quit [Ping timeout: 265 seconds]
vaktpost has quit [Ping timeout: 265 seconds]
<itadder>
so I can then appiy to any lang later on
DrForr has quit [Ping timeout: 265 seconds]
MindfulMonk has quit [Ping timeout: 265 seconds]
jpinnix___ is now known as jpinnix__
BaconOverflow___ has quit [Ping timeout: 265 seconds]
G has quit [Ping timeout: 265 seconds]
mtlatif_ has quit [Ping timeout: 265 seconds]
telling has quit [Ping timeout: 265 seconds]
multi_io has quit [Ping timeout: 265 seconds]
Angelous has quit [Ping timeout: 265 seconds]
xiphiasx1 has quit [Ping timeout: 265 seconds]
ping-pong has quit [Ping timeout: 265 seconds]
ggherdov has quit [Ping timeout: 265 seconds]
davidcelis has quit [Ping timeout: 265 seconds]
G has joined #ruby
andikr has quit [Quit: No Ping reply in 180 seconds.]
tjr9898 has quit [Ping timeout: 265 seconds]
tobiasvl has quit [Ping timeout: 265 seconds]
dmoe__ has quit [Ping timeout: 265 seconds]
sivoais has quit [Ping timeout: 265 seconds]
davidcel- is now known as davidcelis
davidcelis has quit [Changing host]
davidcelis has joined #ruby
_main_ has joined #ruby
antonishen_ is now known as antonishen
vcoinminer_ is now known as vcoinminer
JasmeetQA has quit [Read error: Connection reset by peer]
PLejeck has quit [Ping timeout: 265 seconds]
Adran has quit [Ping timeout: 265 seconds]
mattyohe has quit [Ping timeout: 265 seconds]
alol_ has joined #ruby
tvl has joined #ruby
robmozart__ is now known as robmozart_
vjt has quit [Remote host closed the connection]
xiphiasx_ has joined #ruby
mahlon has quit [Ping timeout: 265 seconds]
plexus has quit [Ping timeout: 265 seconds]
skyjumper has quit [Ping timeout: 265 seconds]
Tranquility has quit [Ping timeout: 265 seconds]
charles81 has quit [Ping timeout: 265 seconds]
csq has quit [Ping timeout: 265 seconds]
Nightmare has quit [Ping timeout: 265 seconds]
tvl is now known as tobiasvl
epochwolf has joined #ruby
sindork has quit [Ping timeout: 265 seconds]
SirFunk has quit [Ping timeout: 265 seconds]
kapowaz has quit [Ping timeout: 265 seconds]
Guest22876 has quit [Ping timeout: 265 seconds]
supershabam has quit [Ping timeout: 265 seconds]
adambeynon_ has quit [Ping timeout: 265 seconds]
cbetta has quit [Ping timeout: 265 seconds]
TwinkleHood has quit [Ping timeout: 265 seconds]
ndrei has quit [Ping timeout: 265 seconds]
mr_rich102 has quit [Ping timeout: 265 seconds]
mroth has quit [Ping timeout: 265 seconds]
jrunning___ has quit [Ping timeout: 265 seconds]
__main__ has quit [Ping timeout: 265 seconds]
ckrailo has quit [Ping timeout: 265 seconds]
aef has quit [Ping timeout: 265 seconds]
dandrade_ has quit [Ping timeout: 265 seconds]
cjk101010 has quit [Ping timeout: 265 seconds]
d-snp has quit [Ping timeout: 265 seconds]
vjt has joined #ruby
tjr9898 has joined #ruby
schaary has quit [Ping timeout: 265 seconds]
visof has quit [Ping timeout: 265 seconds]
rdark has quit [Ping timeout: 265 seconds]
predator217 has quit [Ping timeout: 265 seconds]
alol has quit [Ping timeout: 265 seconds]
niv has quit [Ping timeout: 265 seconds]
drjblouse_ has quit [Read error: Connection reset by peer]
jmaister has quit [Remote host closed the connection]
cmaxw___ has quit [Ping timeout: 265 seconds]
go|dfish has quit [Ping timeout: 265 seconds]
ValicekB has quit [Ping timeout: 265 seconds]
lectrick_ has quit [Ping timeout: 265 seconds]
drago777- has quit [Ping timeout: 265 seconds]
mbff- has joined #ruby
Guest85414______ has quit [Ping timeout: 265 seconds]
dandrade has joined #ruby
epochwolf has joined #ruby
epochwolf has quit [Changing host]
lfox has joined #ruby
Sthebig has quit [Ping timeout: 265 seconds]
ixx has quit [Ping timeout: 265 seconds]
Muz has quit [Ping timeout: 265 seconds]
mansi has quit [Remote host closed the connection]
dmarr has joined #ruby
aetaric has quit [Excess Flood]
Angelous has joined #ruby
Nightmare has joined #ruby
jmaister has joined #ruby
Nightmare has joined #ruby
jmaister has joined #ruby
psyprus has joined #ruby
Liothen has quit [Quit: The Dogmatic Law of Shadowsong]
csq has joined #ruby
Ch4rAss` has quit [Ping timeout: 265 seconds]
grzywacz has quit [Ping timeout: 265 seconds]
drago777 has joined #ruby
bodie_ has joined #ruby
aetaric has joined #ruby
artgoeshere has joined #ruby
G has quit [Ping timeout: 265 seconds]
aef has joined #ruby
mjmac has quit [Ping timeout: 265 seconds]
niv_ is now known as niv
lectrick__ has joined #ruby
cbetta_ is now known as cbetta
Liothen has joined #ruby
grzywacz has joined #ruby
Paradox has joined #ruby
cmaxw____ is now known as cmaxw___
BaconOverflow___ has joined #ruby
adambeynon__ is now known as adambeynon_
davy has quit [Ping timeout: 264 seconds]
ConstantineXVI has joined #ruby
Sthebig_ is now known as Sthebig
schaary_ is now known as schaary
bodie_ is now known as Guest87187
MindfulMonk has joined #ruby
mattyohe_ is now known as mattyohe
mroth__ is now known as mroth
alol_ is now known as alol
Guest85414______ has joined #ruby
kapowaz_ is now known as kapowaz
Mongey has quit [Ping timeout: 240 seconds]
drjblouse__ is now known as drjblouse_
hamakn has quit [Ping timeout: 265 seconds]
<certainty>
itadder: i don't know that, so i can't judge. All I can say is that blocks are conceptually very simple and nothing to be afraid of
ckrailo_ is now known as ckrailo
Tranquility_ is now known as Tranquility
supershabam_ is now known as supershabam
<itadder>
oh
mjmac has joined #ruby
<itadder>
so I need to spend 2 hours after work
<itadder>
every day
<itadder>
I need to head to gym
Rylee has joined #ruby
<certainty>
have fun
<itadder>
I was just syncing some ebooks on my ipad and audio book on my iphone
_main_ is now known as __main__
predator117 has joined #ruby
shaileshg has joined #ruby
adambeynon_ is now known as adambeynon
<itadder>
certainty: your da best thanks
<itadder>
The
blackmesa has quit [Ping timeout: 264 seconds]
aryaching has joined #ruby
sparrovv has quit [Remote host closed the connection]
<itadder>
practice makes the master is what I am learning in this audio book
<itadder>
okay bye
ggherdov has joined #ruby
sparrovv has joined #ruby
joelroa has joined #ruby
mmochan has joined #ruby
aryaching_ has quit [Ping timeout: 252 seconds]
spider-mario has joined #ruby
ValicekB_ has joined #ruby
tjr9898 has quit [Ping timeout: 265 seconds]
ValicekB_ is now known as ValicekB
joelroa has quit [Read error: Operation timed out]
prc has quit [Ping timeout: 252 seconds]
Hanmac has quit [Ping timeout: 240 seconds]
mansi has joined #ruby
heftig has quit [Quit: Quitting]
mengu has quit [Remote host closed the connection]
tjr9898 has joined #ruby
mikeg has quit [Remote host closed the connection]
TripleDES has joined #ruby
aryaching has quit [Ping timeout: 240 seconds]
jamto11 has joined #ruby
telling_ is now known as telling
telling has quit [Changing host]
telling has joined #ruby
phantasm66 has quit [Quit: *sleeeep….]
griffindy has joined #ruby
Hanmac has joined #ruby
Speed has joined #ruby
tgkokk has joined #ruby
shredding has quit [Quit: shredding]
jamto11 has quit [Ping timeout: 244 seconds]
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
Xeago_ has joined #ruby
Xeago_ has quit [Client Quit]
hiyosi has joined #ruby
grzywa has quit [Read error: Connection reset by peer]
JustMozzy has left #ruby [#ruby]
cjk101010_ is now known as cjk101010
joonty has quit [Ping timeout: 240 seconds]
grzywacz has quit [Ping timeout: 265 seconds]
tesuji has quit [Read error: Connection reset by peer]
tesuji has joined #ruby
craigp has joined #ruby
aganov has quit [Read error: Operation timed out]
hiyosi has quit [Ping timeout: 265 seconds]
lkba has joined #ruby
mjs2600 has joined #ruby
codeFiend has joined #ruby
prc has joined #ruby
nath_schwarz has quit [Remote host closed the connection]
IceDragon has joined #ruby
Guest71112 is now known as Radar
mjs2600 has quit [Ping timeout: 240 seconds]
nerium has joined #ruby
<nerium>
Anyone knows a way to merge yaml filés?
pabloh has joined #ruby
<canton7>
read them into hashes, merge using whatever technique you want, write back to yaml?
vlad_starkov has quit [Ping timeout: 265 seconds]
tgkokk has quit [Ping timeout: 244 seconds]
yfeldblum has joined #ruby
klaut_ has joined #ruby
sigurding has joined #ruby
chrisseaton has quit []
joonty has joined #ruby
fluxxible has joined #ruby
fluxxible has left #ruby [#ruby]
popl has quit [Quit: Touch the frog.]
vlad_starkov has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
<apeiros>
nerium: that's a *very* vague question, given that a yaml can contain virtually *any* type of data
verto_ is now known as verto
hamakn_ has quit [Remote host closed the connection]
mostlybadfly has quit [Quit: Connection closed for inactivity]
<nerium>
apeiros: Okay, but given that they are almost the same
thomasxie has quit [Remote host closed the connection]
<apeiros>
still not informative.
flagg0204 has quit [Ping timeout: 264 seconds]
thomasxie has joined #ruby
<apeiros>
how do you merge a yaml file containing "1" with a yaml file containing "2"?
simono has joined #ruby
tgkokk has joined #ruby
tgkokk has quit [Max SendQ exceeded]
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<nerium>
apeiros: It's more a question about merging two hashes
<apeiros>
(they're almost the same - and that's the only description about your yaml files we have so far…)
codeFiend has quit [Quit: codeFiend]
<apeiros>
see Hash#merge
m1lt0n_ has joined #ruby
nathansoz has joined #ruby
Speed has quit [Ping timeout: 240 seconds]
nateberkopec has joined #ruby
aganov has joined #ruby
<apeiros>
note though that "It's more a question about merging two hashes" is still neither a question nor really informative. but at least it's getting warmer.
infoget has quit [Quit: Leaving.]
infoget has joined #ruby
<shevy>
ack
<shevy>
it is getting warmer
<shevy>
that might be bad news depending on where one lives
yubrew has joined #ruby
<olivier_bK>
how i can remove in my date T00:00:00+00:00 complete date 2011-02-02T00:00:00+00:00
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
TheLarkInn has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 264 seconds]
thisirs has joined #ruby
TheLarkInn has joined #ruby
mostlybadfly has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
morenoh149 has joined #ruby
sigurding has quit [Quit: sigurding]
dingus_khan has joined #ruby
sdouglas has quit [Ping timeout: 265 seconds]
mansi has quit [Ping timeout: 244 seconds]
<shevy>
hmm anyone knows of a gem or something that would allow me to do copy xorg buffer into pastie.org ? but through a ruby script, right now I manually paste there
Speed has joined #ruby
Advocation has quit [Ping timeout: 240 seconds]
Advocation_ has joined #ruby
northfurr has joined #ruby
ziyadb_ has joined #ruby
morenoh149 has quit [Ping timeout: 240 seconds]
Hanmac1 has joined #ruby
davy has joined #ruby
dingus_khan has quit [Ping timeout: 264 seconds]
Mongey has joined #ruby
jmeeuwen_ is now known as jmeeuwen
niftyn8 has joined #ruby
Hanmac has quit [Ping timeout: 244 seconds]
<certainty>
shevy: don't be lazy :p
<shevy>
hey!
<shevy>
I did not pick perl
sigurding has joined #ruby
<shevy>
those perl guys are hard workers
<shevy>
I am with ruby and lazy
Megtastique has joined #ruby
tesuji has quit [Ping timeout: 264 seconds]
<certainty>
shevy: could've picked haskell to be even more lazy
<shevy>
ack
<shevy>
I never managed to understand monads
davy has quit [Ping timeout: 240 seconds]
<certainty>
heh, you know they're just monoids in the category of endofunctors, what's the big deal?
<TheLarkInn>
Anyone know a good rspec autotest gems that work with OSX Notifications rather than Growl?
<shevy>
what is an endofunctor and why is it important
AlexRussia has joined #ruby
kaliya has joined #ruby
<shevy>
certainty this is the kind of stuff I do all day long http://oi62.tinypic.com/35kloja.jpg but wuest lately told me that all R,G,B colours work on konsole, so the next thing I shall do is ... add more colours!!!
<Butcho>
I have a nagios script which does a Net::HTTP::Post.new. But if the webserver isn't running, it throws a Errno::ECONNREFUSED. How do I check for that before running the rest of the script?
Hanmac1 has quit [Ping timeout: 265 seconds]
yfeldblum has joined #ruby
grzywacz has joined #ruby
<rdark_>
Butcho: rescue that exception with a begin/rescue block
crystal77 has quit [Quit: Computer has gone to sleep.]
timonv has quit [Remote host closed the connection]
sambao21 has quit [Client Quit]
tjr9898__ has joined #ruby
tjr9898 has quit [Ping timeout: 265 seconds]
jamto11 has joined #ruby
lw has joined #ruby
Mongey has joined #ruby
ndrei_ has quit [Ping timeout: 264 seconds]
coder_neo has quit [Quit: This computer has gone to sleep]
relaxer has quit [Ping timeout: 240 seconds]
tgkokk has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sigurding has quit [Quit: sigurding]
xcv has joined #ruby
browndawg has joined #ruby
sambao21 has joined #ruby
antonishen has quit []
antonishen has joined #ruby
crystal77 has joined #ruby
workmad3 has quit [Quit: Reconnecting]
workmad3 has joined #ruby
jglover has joined #ruby
dtcrshr has joined #ruby
enebo has joined #ruby
mary5030_ has quit [Remote host closed the connection]
marcgg_ has joined #ruby
joelroa has joined #ruby
mary5030 has joined #ruby
mansi has quit [Read error: Connection reset by peer]
mansi_ has joined #ruby
tonni has quit [Remote host closed the connection]
dblessing has joined #ruby
dseitz has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
yubrew has joined #ruby
mansi_ has quit [Read error: Connection reset by peer]
mansi has joined #ruby
marcgg has quit [Ping timeout: 264 seconds]
freerobby has quit [Quit: Leaving.]
joelroa has quit [Ping timeout: 265 seconds]
kevind has joined #ruby
freerobby has joined #ruby
freerobby has quit [Client Quit]
phantomtiger has joined #ruby
yubrew has quit [Ping timeout: 265 seconds]
boycey has quit [Quit: boycey]
marcgg has joined #ruby
zipper has joined #ruby
<zipper>
Hey guys.
shime has quit [Ping timeout: 264 seconds]
<jglover>
yo
fridim__ has joined #ruby
<zipper>
How can I fix the following error ` /usr/lib/ruby/site_ruby/2.1.0/rubygems/dependency.rb:298:in `to_specs': Could not find 'liquid' (~> 2.5.5) - did find: [liquid-2.6.1] (Gem::LoadError) '
<jhass>
zipper: install liquid < 2.6
mansi has quit [Read error: Connection reset by peer]
<jhass>
~> 2.5.5 means >= 2.5.5 && < 2.6
<zipper>
jhass: gem instal liquid 2.5.5 ?
mansi has joined #ruby
<zipper>
How will I handle the conflict in versions?
<jhass>
I think gem install liquid -v ~> 2.5.5 works nowadays
<jhass>
normally you'd use bundler
marcgg_ has quit [Ping timeout: 240 seconds]
<jglover>
Hm. Do you guys think there is any reason not to use two different database softwares in a single project?
<jglover>
I haven't had any issues at all, but maybe it's because I'm naive
zz_jrhorn424 is now known as jrhorn424
dik_dak has joined #ruby
tedstriker has joined #ruby
ndrei has joined #ruby
itadder has joined #ruby
andrewlio has joined #ruby
marcgg_ has joined #ruby
<apeiros>
jglover: it may introduce some headaches. like you can't join two tables from two different databases (easily)
crystal77 has quit [Quit: Computer has gone to sleep.]
rudisimo has joined #ruby
nerium has quit [Quit: nerium]
<jglover>
apeiros: the information in them is completely independent. I have a user table in mysql that contains passwords, email, name, etc and then a table in MongoDB for an API
griffindy has quit [Quit: Computer has gone to sleep.]
bluntman is now known as choomalot
marcgg has quit [Ping timeout: 240 seconds]
momomomomo has quit [Quit: momomomomo]
itadder has quit [Ping timeout: 264 seconds]
tonni has joined #ruby
banister has joined #ruby
timonv has joined #ruby
yeticry has quit [Ping timeout: 252 seconds]
aagdbl has quit [Quit: Connection closed for inactivity]
<shevy>
create a new table with all that information!
Ch4rAss has quit [Quit: "Connection reset by beer"]
yfeldblum has joined #ruby
Bira has joined #ruby
<jglover>
shevy: I'm using mongo for it's speed. It counts when some of this data is like 50,000 rows
tgkokk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sparrovv has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
codabrink has joined #ruby
xcv has quit [Remote host closed the connection]
tjr9898_ has quit [Remote host closed the connection]
fedesilva has joined #ruby
xcv has joined #ruby
sparrovv has joined #ruby
grvgr has joined #ruby
guilleiguaran has joined #ruby
ffranz has joined #ruby
Guest551 has quit [Quit: Leaving]
yasushi has joined #ruby
morenoh149 has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Remote host closed the connection]
banister_ has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
cocotton has joined #ruby
nhhagen has joined #ruby
sigurding has joined #ruby
bean has joined #ruby
banister has quit [Ping timeout: 265 seconds]
mary5030 has quit [Remote host closed the connection]
davy_ has joined #ruby
twd_ has joined #ruby
<twd_>
hi does anyone here
<toretore>
yes
duggiefresh has quit [Remote host closed the connection]
<twd_>
nice to see you guys here
lxsameer has quit [Quit: Leaving]
deadlock_ has joined #ruby
<zipper>
Ok when I add ` gem 'listen' '~> 1.3' ' to my gemfile and run bundle install I get the error: ` Could not find gem 'listen~> 1.3 (>= 0) ruby' in the gems available on this machine. '
momomomomo has joined #ruby
freezey has quit [Remote host closed the connection]
<twd_>
what is irc
<zipper>
Shouldn't bundle install install the gems in Gemfile?
duggiefresh has joined #ruby
<zipper>
and not look for them in the machine?
<zipper>
So I fail to understand: ` Could not find gem 'listen~> 1.3 (>= 0) ruby' in the gems available on this machine. '
<toretore>
u miss ,
Guedes0 has quit [Quit: Saindo]
adamholt_ is now known as adamholt
Nirgali42 has joined #ruby
tonni has joined #ruby
<toretore>
use the , man
Guedes has joined #ruby
Guedes has joined #ruby
Guedes has quit [Changing host]
<shevy>
twd_ we exchange information on IRC; you will learn ruby
<weeb1e>
shevy: From the start of my application, I get a bunch of exceptions spammed to console constantly by 2 gem specs
<weeb1e>
Then that same thing catches all sorts of other exceptions
<shevy>
pretty nasty
<weeb1e>
Yet I have no idea what is doing it, it sure isn't my code
jcs222 has quit [Quit: leaving]
<weeb1e>
I'm at the point where I'm doing a find all for "Exception `" in my gems directory
visof has joined #ruby
Guest87187 is now known as bodie_
<weeb1e>
Has anyone ever seen exceptions being printed by something in the following format: Exception `RuntimeError' at ./test.rb:195 - some exception!
kennym1 has joined #ruby
<weeb1e>
Single line exception print outs, formatted like that
duggiefresh has quit [Read error: Connection reset by peer]
razibog has quit [Quit: Leaving.]
<weeb1e>
toretore: I have personally build over 100 EM-based applications from scratch
duggiefresh has joined #ruby
freezey has quit [Remote host closed the connection]
meatherly has quit [Remote host closed the connection]
tylersmith has joined #ruby
<toretore>
are you using defer?
<toretore>
i have seen em do this many times
meatherly has joined #ruby
<toretore>
but i'm not sure under which circumstances exactly it does this
<weeb1e>
No, this is a completely single threaded application
joelroa has quit [Ping timeout: 265 seconds]
<yoshokatana>
hey, has anyone here used octokit.rb? I'm trying to do api calls to update github issues, but I'm not sure how to translate the api requests into octokit (and the docs aren't very forthcoming with examples)
momomomomo has quit [Quit: momomomomo]
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby
<wuest>
I was pinged
<wuest>
shevy: glad you're having fun! :D
<shevy>
hehe
fedesilva has quit [Remote host closed the connection]
griffindy has joined #ruby
lw has quit [Quit: s]
lw has joined #ruby
axl_ has joined #ruby
nateberkopec has joined #ruby
<weeb1e>
Ah damn, figured it out
lw has quit [Client Quit]
meatherly has quit [Ping timeout: 240 seconds]
<weeb1e>
It's because I had $DEBUG = true, which I pretty much never have enabled in any of my applications
<shevy>
!!!
<weeb1e>
FYI toretore, not related to EM
<weeb1e>
It seems to be a ruby feature
<weeb1e>
Enabling $DEBUG has the same effect when outside of the event loop
momomomomo has joined #ruby
<weeb1e>
I'm glad that is over, that was pure torture
<toretore>
ah
tylersmith has quit [Ping timeout: 265 seconds]
<toretore>
but i'm also positive that em at least used to catch some exceptions and just print them
<toretore>
though i think that's changed
<toretore>
probably related to EM.defer
xerox357 has joined #ruby
<weeb1e>
Now I can get back to debugging some mind-breaking fiber race condition issues
<weeb1e>
toretore: If you use EM.defer, you are doing something wrong
<weeb1e>
The whole point of using EventMachine is so that you do not have to defer to another thread
<toretore>
why is that? sometimes you have to use threads to not block the main thread
<toretore>
not everything is async
<weeb1e>
Give me an example use case where you would do that toretore?
redlines has joined #ruby
meatherly has joined #ruby
<weeb1e>
You should _NOT_ be using any blocking code in an EM application
<weeb1e>
At all
<weeb1e>
If you have to do something seriously heavy, like a massive IO operation on the filesystem, deferring would be acceptable
twd_ has quit [Ping timeout: 245 seconds]
Xeago has joined #ruby
<toretore>
one example: i had to use IO.popen because i couldn't send EOF on EM's version
<weeb1e>
toretore: On windows?
<toretore>
no, linux/osx
ebwise has joined #ruby
geopet has joined #ruby
<weeb1e>
toretore: Do you want a better solution?
<weeb1e>
I have implemented countless things for EM over the years, including that
<toretore>
i could've probably got the file handler and use that, but tbh i can't be bothered
<toretore>
ok, what's the better solution
<toretore>
?
webgen has quit [Ping timeout: 269 seconds]
<weeb1e>
Let me check my code, it's been a while
<toretore>
saying "never use threads in em" like it's some sort of hard rule isn't very helpful
<toretore>
sometimes you gotta use threads
<a-priori>
not everything fits in EM's world view
thomas_dick has quit [Remote host closed the connection]
thomas_d has joined #ruby
akitada has joined #ruby
no0code has joined #ruby
<weeb1e>
It's actually very helpful, to avoid incredibly bad habbits toretore
<toretore>
no, that's dogma. not advice
<weeb1e>
It's counter-productive to use threads in an EM application for anything IO related
<weeb1e>
No really, you have an async reactor at your disposal
<weeb1e>
I for one make the most out of it
<toretore>
as long as you have an evented alternative, but not when you don't
<weeb1e>
Ok toretore, it's a bit of a mouthful but I can pastebin you my implementation for spawning
<toretore>
ok
<weeb1e>
One thing though, you will need to make slightly changes to it
<weeb1e>
It is designed as a module for my modular platform that almost all my applications are based on
<weeb1e>
So you will need to replace the :loaded event, etc
<weeb1e>
But all the hard work is done, and it is far better than anything else I have seen for spawning stuff from ruby
<weeb1e>
I implemented it primarily for a process_manager daemon that runs on my boxes are root and exposes an IPC to my other applications for spawning processes as specific users with specific privs
<weeb1e>
As well as monitoring them, restarting them, and other stuff
<toretore>
right, so that's why i used defer, because i didn't want to write all that just to use popen ;)
starfox21 has joined #ruby
alexju has joined #ruby
rayners has joined #ruby
<weeb1e>
Oh damn, there's a bit more you need too toretore :P
<weeb1e>
I forgot signal catching is abstracted by my framework too
whowantstolivef2 has joined #ruby
pontiki has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<weeb1e>
toretore: I have implemented hundreds of protocols and other useful things for EM over the years
whowantstolivef3 has quit [Ping timeout: 252 seconds]
<weeb1e>
Anything to not have to defer.
<toretore>
you still haven't said exactly why using defer is so bad
geggam has quit [Ping timeout: 244 seconds]
momomomomo has joined #ruby
ehc has joined #ruby
<weeb1e>
Because the overhead of threading and context switching is completely unnecessary
pontiki has joined #ruby
lmickh has joined #ruby
<weeb1e>
The whole point of using EM is to use non-blocking code
axl_ has quit [Ping timeout: 240 seconds]
<toretore>
so what if i want to use multiple cores? ;)
davy_ has quit [Ping timeout: 265 seconds]
Vovko has joined #ruby
msmith_ has joined #ruby
<weeb1e>
toretore: Then it would be better to spin up an instance of your application as a new process per core
apeiros has quit [Remote host closed the connection]
<toretore>
that would also imply a lot of overhead
meatherly has quit [Remote host closed the connection]
havenwood has joined #ruby
apeiros has joined #ruby
<toretore>
but my real point is that defer is a completely legitimate way to handle something that blocks the thread instead of writing a completely new piece of em-friendly code
<weeb1e>
toretore: If you do want to use that code, just define a signal_queue array on the class level and replace "signal(:CLD) do end" with: Signal.trap(sig) do signal_queue << sig end
<weeb1e>
end
<weeb1e>
end--
tonni has joined #ruby
<toretore>
not that your code isn't interesting, but for me to write that at the point i was making the decision would be complete overkill
wiku5_ has quit [Ping timeout: 240 seconds]
<weeb1e>
toretore: Deferring for that reason is counter-productive and unnecessary
BackEndCoder has quit [Read error: Connection reset by peer]
<weeb1e>
It's a pity the EM maintainers don't care more about improving the core
<weeb1e>
So that stuff like this "just works"
BackEndCoder has joined #ruby
<toretore>
not as unnecessary as spending god knows how much time writing em-friendly code first is
<weeb1e>
There is often a ready made implementation for what you need, in this case, probably not
lw has joined #ruby
<toretore>
EM.defer{ IO.popen(cmd){|io| } } is not going to destroy my app
<weeb1e>
But my main point was, it's a bad habbit to allow yourself to defer
jerius has joined #ruby
<toretore>
is it a bad habit to use threads?
freezey has joined #ruby
<weeb1e>
If you're willing to defer for a popen, you'll defer for plenty unnecessary stuff
jamto11 has quit []
<weeb1e>
In an EM-based application, yes
<toretore>
you can't know that
derek_c has quit [Ping timeout: 240 seconds]
<weeb1e>
For IO in general, yes.
<weeb1e>
Using threading for anything IO-related is a complete waste
redlines has quit [Ping timeout: 240 seconds]
<toretore>
you have drank too much of the em koolaid my friend
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
banek has joined #ruby
<weeb1e>
EM is great for ruby, but it that is just for ruby
apeiros has quit [Ping timeout: 240 seconds]
sdouglas has quit [Remote host closed the connection]
gaussblurinc has quit [Quit: Leaving.]
<weeb1e>
I have been working with asynchronous reactor based applications since just after I started learning to code
tonni has quit [Remote host closed the connection]
sdouglas has joined #ruby
bal has quit [Quit: bal]
<weeb1e>
Pretty much all game servers are single threaded, asynchronous reactor based applications
<toretore>
which is another way of saying you're heavily biased towards them
<weeb1e>
For good reason
Vovko has quit [Remote host closed the connection]
platzhirsch has quit [Quit: Leaving.]
<weeb1e>
Threading causes unnecessary overhead, complexity and general headaches
platzhirsch has joined #ruby
<weeb1e>
The only reason to use it for IO stuff is if one is lazy
zachallett has quit [Remote host closed the connection]
joonty has quit [Ping timeout: 244 seconds]
<toretore>
async/concurrency/parallellism is a complex subject with lots of problems and solutions, and to say that one way is superior is just foolish
jrhe has quit [Quit: Connection closed for inactivity]
Thanatermesis has joined #ruby
JViz_ has quit [Ping timeout: 265 seconds]
<lilltiger>
But isent I/O in Ruby blocking, so threading it makes no sense at all..
<weeb1e>
toretore: I specifically said for IO-related stuff
<weeb1e>
There simply is no case where threading is better at doing IO
<a-priori>
I wouldn't go that far.
<weeb1e>
In ruby, even more so, like lilltiger mentioned
einarj has quit [Remote host closed the connection]
<toretore>
so? it doesn't have to be "better", it just has to work for what i'm doing
<toretore>
i'm not going to spend days writing code just to avoid having to use defer
<toretore>
actually, i would, but it shouldn't be expected
<a-priori>
evented concurrency is good for situations where the app spends most of its time waiting for stuff to happen
sdouglas has quit [Ping timeout: 265 seconds]
<weeb1e>
Yeah well, it seems most coders take that lazy approach, and I find that really sad
<toretore>
threads have been and will for the foreseeable future be the most basic concurrency primitive
<weeb1e>
This is why the world runs on PHP
<toretore>
you are being silly
centrx has joined #ruby
<weeb1e>
a-priori: Ie. IO-heavy applications
<weeb1e>
Which is what I have been saying all along
<a-priori>
something like a thread pool model is good for compute-heavy applications
madb055 has quit [Remote host closed the connection]
grvgr has quit [Quit: grvgr]
<weeb1e>
I never once said threading shouldn't be used for compute-heavy code, but that is not what we are talking about
madb055 has joined #ruby
<weeb1e>
toretore: I can't help that I'm more anal about such things than most people
<toretore>
you don't have to convince anyone that pre-emptive scheduling isn't ideal for io
xaq has quit [Remote host closed the connection]
<weeb1e>
I've written 1 blocking ruby application in the past 6 years
senayar_ has joined #ruby
<toretore>
you do have to convince people who aren't writing their own programming language that they should ditch threads and do 5 times the amount of work just because "it's slightly more efficient"
<weeb1e>
And it's a unicorn web front-end which is only 1/3rd of 3 applications, two of which are EM-based which make up a single website
<a-priori>
just rebuking your statement "There simply is no case where threading is better at doing IO" -- if an app does a bit of IO followed by a lot of computation, then a thread pool would make more sense
crazysim has quit [Max SendQ exceeded]
<a-priori>
weeb1e
crazysim has joined #ruby
<lilltiger>
weeb1e: Just out of couriosity, why do you use Ruby when you are concerned about things like that?
<weeb1e>
a-priori: If it was doing it once off and then cutting the IO connection, I'd accept that
<weeb1e>
But if not I'd use a EM core which defers the compute work to worker threads
ocher has quit [Read error: Connection reset by peer]
Emmanuel_Chanel has quit [Ping timeout: 264 seconds]
ziyadb_ has quit [Quit: Connection closed for inactivity]
<a-priori>
i.e, using EM.defer
<weeb1e>
lilltiger: Because ruby is the best language I've ever seen
diegoviola has joined #ruby
MarcWeber has joined #ruby
<weeb1e>
And I have been through a ton of languages
roolo has joined #ruby
ocher has joined #ruby
axl_ has joined #ruby
no0code has quit [Remote host closed the connection]
ziyadb_ has joined #ruby
platzhirsch has quit [Ping timeout: 240 seconds]
<weeb1e>
I still have to use other languages for various domain specific things, C++ for extensions and a few small applications, a variety of scripting languages and some other less known ones
<MarcWeber>
Is there an alternative to clamsy (which turns .odt templates into pdf files)? clamsy's gem file has'nt been updated for a long time and depends on an old rghost version ..
<weeb1e>
But nothing else comes close to ruby
<lilltiger>
weeb1e: well, depends on what one would define as best then, as always blocking for I/O etc. isent a good thing in a language :)
<weeb1e>
I can't wait until mruby is one day mature and optimized enough to be used for just about anything
senayar has quit [Ping timeout: 264 seconds]
no0code has joined #ruby
terrellt has joined #ruby
<weeb1e>
lilltiger: What do you mean exactly?
whowantstolivef1 has joined #ruby
<weeb1e>
I define the best language as one with good enough performance, and great useability in terms of features which improve your development experience
sdouglas has joined #ruby
<weeb1e>
Ruby has so many small useful features, which I am always missing when I use other languages
ocher has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
mgberlin has joined #ruby
<toretore>
no language is "best", you can do most things equally well in most languages
<toretore>
just like no concurrency tool is "best"
<lilltiger>
weeb1e: Nothing realy, I was just wondering, i'm a C++ coder mainly, and it often seems to me that people does the most extreame things to work around shortcommings in thire favorite language, and still claims it to be the best, while I have never found a language that can be called it self best for evry task
whowantstolivef2 has quit [Ping timeout: 264 seconds]
alexherbo2 has quit [Ping timeout: 264 seconds]
<wmoxam>
best is in the eye of the beholder
<toretore>
and i am the beholder
sdouglas has quit [Remote host closed the connection]
<wmoxam>
Behold! It's the beholder!!
ocher has joined #ruby
<weeb1e>
lilltiger: Sure, no high level language is the best for every use case, but ruby is the best I have used for the vast majority of my use cases
mgberlin has quit [Remote host closed the connection]
<toretore>
you can't behold the beholder, because then you are the beholder
<toretore>
it's a paradox
ff22310 has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<weeb1e>
I build large IO-heavy platforms that make tons of outgoing connections and accept incoming connections for a variety of services
ndrei has quit [Ping timeout: 240 seconds]
Emmanuel_Chanel has joined #ruby
<toretore>
so you should be using node
<weeb1e>
And that is what I use ruby for, though I will use it for other things when I can get away with it
<wmoxam>
a paradox wrapped in an enigma
<weeb1e>
toretore: No, I really should not
zeeraw has joined #ruby
<lilltiger>
toretore: of corse you can behold the beholder, just watch out for it's rays
<weeb1e>
The slightly performance increase Node has over ruby 1.9.3/2.0 is not worth the loss of syntax
<wmoxam>
weeb1e: given that is a primary use case for node, maybe you should :p
<weeb1e>
I would rather have slightly more overhead and be able to make use of all of ruby's awesome features, than be limited to CoffeeScript, which I already am forced to use for all web front ends
ocher has quit [Read error: Connection reset by peer]
foredoomed has quit []
<a-priori>
just because it's the primary use case doesn't mean it's better at it
<toretore>
OH, you mean like the slight performance increase a reactor has over threads isn't worth the extra work?
<wmoxam>
weeb1e: are you using eventmachine?
<shevy>
hehe
Zai00 has left #ruby [#ruby]
<weeb1e>
toretore: No, threads are just plain bad.
<weeb1e>
:)
derek_c has joined #ruby
<toretore>
said the pot to the kettle
<shevy>
everyone asks weeb1e whether he is using eventmachine
<weeb1e>
wmoxam: Pretty much all my applications are EM-based
<toretore>
i heard celluloid is much better than eventmachine
<toretore>
and node + celluloid is the way to go
joonty has joined #ruby
<wmoxam>
heh
<wmoxam>
I heard that Rust is teh bomb
shime has quit [Ping timeout: 240 seconds]
<weeb1e>
toretore: You have run with that, why not throw some PHP in there while you're at it :P
<weeb1e>
*fun with that
<toretore>
but it's got actors just like erlang
<toretore>
it's gotta be good
ocher has joined #ruby
<weeb1e>
wmoxam: I heard good things about it, but I would not be willing to use it instead of ruby syntax
itadder has joined #ruby
<toretore>
the celluloid guys say actors are the answer to all my concurrency problems; i don't know who to trust
jprovazn has quit [Quit: Leaving]
<wmoxam>
Never trust an actor!
<toretore>
and rich hickey says it's agents
<toretore>
i so confuse
<wmoxam>
toretore: the NSA has proven to never trust agents either!
griffindy has quit [Read error: Connection reset by peer]
<weeb1e>
Just use EM
interactionjaxsn has quit [Remote host closed the connection]
<weeb1e>
I've recently started using fibers again
ocher has quit [Read error: Connection reset by peer]
nateberkopec has joined #ruby
griffindy has joined #ruby
dik_dak has quit [Ping timeout: 265 seconds]
<toretore>
don't use fibers, they're just inefficient
<weeb1e>
Primarily for database queries, so that callback spagetti does not get ridiculous
<toretore>
goroutines are much more lightweight
xcv_ has quit [Remote host closed the connection]
<weeb1e>
Fibers are not very heavy, but I do pool them
crystal77 has joined #ruby
<toretore>
AND they can be parallellized
<weeb1e>
I have a dynamic fiber pool which I use for almost everything
joelroa has joined #ruby
<weeb1e>
(in applications that are fibered at least)
<toretore>
how do you do that, to be serious for a change?
jjbohn has joined #ruby
<toretore>
the fiber pool
<havenwood>
toretore: They aren't lighter weight than fibers.
<toretore>
sure they are
<weeb1e>
toretore: Want me to pastebin it for you?
<havenwood>
toretore: They start as heavy as a fiber afaik.
tylersmith has joined #ruby
<havenwood>
toretore: 4k stack size.
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<toretore>
fibers have a set stack size, goroutines start out very small and grow as needed
apeiros has joined #ruby
<toretore>
ruby 2 fibers have much larger stack sizes by default afaik
<havenwood>
toretore: goroutines start out as large as fibers then grow, that isn't lighter weight. :P
<weeb1e>
Fibers are pretty light weight, but I did have some issues with processing huge amounts of incoming UDP packets with them before I switched to using a pool
boycey has joined #ruby
<toretore>
weeb1e: yes please
madb055 has quit [Remote host closed the connection]
itadder has quit [Ping timeout: 240 seconds]
xerox357_ has joined #ruby
madb055 has joined #ruby
<toretore>
try running 100k fibers in ruby
ocher has joined #ruby
<toretore>
then 100k goroutines
<havenwood>
toretore: okay, did it
ahawkins has quit [Quit: leaving]
<havenwood>
toretore: was i supposed to notice somthing?
<toretore>
without changing the fiber stack size
_HolyCow1 is now known as _HolyCow
<havenwood>
toretore: the default stack size is 4k just like goroutines
dik_dak has joined #ruby
NovapaX has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<tobiasvl>
ugh parsing... anyone here who's used whittle?
<apeiros>
havenwood: due to the netsplit before you left I didn't see a message from you and you probably didn't see some from me…
<weeb1e>
The Fiber.current[:whois] is unrelated, another part of my platforms uses that to track fibers
<havenwood>
apeiros: oops!
lolmaus has quit [Remote host closed the connection]
lolmaus has joined #ruby
<apeiros>
09:01 apeiros: havenwood: in what version was .one? introduced?
<apeiros>
09:02 apeiros: havenwood: if you're interested in building such a bloomfilter, we could work on one
<apeiros>
09:02 apeiros: but doing it alone, I'm not interested :)
xerox357_ has quit [Ping timeout: 240 seconds]
ocher has quit [Read error: Connection reset by peer]
<apeiros>
so if you're interested, tell me ;-)
<toretore>
on my machine i get {:thread_vm_stack_size=>1048576, :thread_machine_stack_size=>1048576, :fiber_vm_stack_size=>131072, :fiber_machine_stack_size=>524288}
zeeraw has joined #ruby
Nyyx has joined #ruby
<apeiros>
and thanks @ "this is neat"
ocher has joined #ruby
sk87 has quit [Client Quit]
<toretore>
weeb1e: thanks. i might try to work a fiber pool into this thing i'm working on
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
<toretore>
not sure exactly how though
ebwise has quit [Ping timeout: 252 seconds]
razrunelord has joined #ruby
<weeb1e>
No problem
* apeiros
brb
<weeb1e>
This chat has been fun, given me some procrastination time
<weeb1e>
Guess I should get back to debugging my fiber troubles
<weeb1e>
For some reason the connection to mongodb is getting broken seemingly randomly
no0code has quit [Remote host closed the connection]
<a-priori>
if it makes you feel any better I'm dealing with a similar problem... on an in-process socket
<a-priori>
:)
no0code has joined #ruby
rbartos has joined #ruby
<weeb1e>
Well I monkeypatched the mongo driver to be fibered so that I can use all existing MongoMapper code as is, which worked fine in the application I originally implemented it for, but now trying to reuse the same code in a new application on another box is being troublesome
ocher has quit [Read error: Connection reset by peer]
mark_locklear has joined #ruby
ndrei has joined #ruby
lsmola has quit [Ping timeout: 244 seconds]
<toretore>
is the mongo driver thread blocking by default?
ocher has joined #ruby
Xeago has quit [Remote host closed the connection]
GaryOak_ has joined #ruby
TMM has quit [Quit: Ex-Chat]
supersym has joined #ruby
<weeb1e>
The one MongoMapper uses is
<toretore>
if it's callback based you could just write a wrapper that uses the callbacks to yield and resume
<toretore>
instead of monkey patching
io_syl has quit [Ping timeout: 244 seconds]
<weeb1e>
Yeah that can't work without completely rewriting MongoMapper
AxonetBE has quit [Quit: AxonetBE]
<weeb1e>
and if you have not already looked at that code base, you really don't want to
<weeb1e>
I recall bad things
lolmaus has quit [Remote host closed the connection]
<toretore>
oh, mongomapper
<weeb1e>
Monkeypatching the blocking mongo driver allows using a blocking framework with it, but in a fibered application
<toretore>
didn't see that part
<havenwood>
apeiros: i'd for sure be interested in looking into bloom filters, i need to look more at tabledata gem too ;)
<havenwood>
apeiros: #one? is in 1.8.7 at least, but I'm not sure when it was introduced
coder_neo has quit [Quit: Leaving]
poguez has joined #ruby
<havenwood>
1.8 is dead, long live 2.1!!
<havenwood>
(rumors of 1.8's death may be exaggerated)
lolmaus has joined #ruby
<weeb1e>
em-synchrony provides most helper classes you need for monkeypatching blocking code to be fibered
Celm has joined #ruby
<weeb1e>
It's pretty useful when there is no better option
<havenwood>
weeb1e: igrigorik touched it, it is gold
<havenwood>
midas i tell you
<weeb1e>
Hehe :)
<a-priori>
:)
mary5030 has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
Waheedi has joined #ruby
end_guy has joined #ruby
apeiros has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
<razrunelord>
yjmsf20: What is the purpose of the method signature self.instance?
Waheedi has quit [Client Quit]
lw has quit [Quit: s]
carneiro has joined #ruby
<kukyakya_>
In Rakefile, how can I add a non-file task to the prerequisites of a rule?
snath has joined #ruby
Hanmac1 has joined #ruby
sivoais_ is now known as sivoais
sivoais has quit [Changing host]
sivoais has joined #ruby
<kukyakya_>
I tried "rule '.o' => ['.cpp', :my_task]"
<kukyakya_>
but it doesn't work
anarang has quit [Quit: Leaving]
<yjmsf20>
razrunelord: To create a new instance of the class.
<boycey>
Guys , anyone know what the line 'gemspec' in a Gemfile does ?
RaCx has joined #ruby
<kukyakya_>
rake says "Don't know how to handle rule dependent: :FORCE"
anarang has joined #ruby
aspires has joined #ruby
<weeb1e>
I think I actually need to take a break and look at this later again, I get the feeling I'm not going to make much progress
<weeb1e>
Everything works fine, until it doesn't
zachallett has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
<weeb1e>
It can work for anywhere up to 15 minutes or something, and then a query kills it due to a connection error
leonidlm has quit [Ping timeout: 265 seconds]
acrussell has joined #ruby
<boycey>
Anyone ?
mikepack_ has joined #ruby
ocher has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
<havenwood>
boycey: It contains all the info for the gem.
<razrunelord>
yjmsf20: I think instance is used for the singleton pattern
bluenemo has quit [Remote host closed the connection]
JViz has joined #ruby
ocher has joined #ruby
<boycey>
havenwood: so , if it's empty (ie. just 'gemspec' ) it does nothing , right ?
apeiros has quit [Ping timeout: 264 seconds]
<havenwood>
boycey: RubyGems uses it to build the gem, know who the author is, what dependencies the gem has, etc.
bean has joined #ruby
<yjmsf20>
razrunelord: Ok, replace the method signature with get.
derek_c has quit [Read error: Operation timed out]
b00stfr3ak has quit [Ping timeout: 244 seconds]
<yjmsf20>
s/instance/get
larissa has quit [Ping timeout: 240 seconds]
<havenwood>
boycey: the convention is to name the gemspec file `gem_name.gemspec`.
<a-priori>
weeb1e: maybe run it through wireshark to see what's happening on the wire to kill the connection?
<jxport>
Single Responsibility Principle: it breaks out responsibilities from a class into singly responsible classes. Doesn't this make it more complicated for end users, of the original functionality that got split out, though?
YamakasY has quit [Read error: Connection reset by peer]
<havenwood>
a-priori: yeah, that is a good read
no0code has quit [Remote host closed the connection]
<boycey>
a-priori: havenwood: alright thanks. i think i get it :D
<weeb1e>
a-priori: Could be a bit tricky, there is a lot of other stuff also using mongo
yfeldblum has quit [Ping timeout: 241 seconds]
<toretore>
jxport: complexity > bad code
<a-priori>
on the same machine? if not then you can filter by the IP
YamakasY has joined #ruby
<havenwood>
jxport: no, the principle can be maintained through refactoring that doesn't effect end user experience
<weeb1e>
Yeah on the same machine
<havenwood>
toretore: <3 simple
<weeb1e>
There are a few other large, active ruby platforms that use the same database
<weeb1e>
I'm just adding this small new one since the box is massive
<toretore>
havenwood: simple, but not too simple
ocher has joined #ruby
<weeb1e>
And also has great connectivity, which is needed for making thousands of UDP queries a minute
anarang is now known as annie
<toretore>
how can you have a "connection error" if you're using udp? ;)
ocher has quit [Read error: Connection reset by peer]
<a-priori>
seems like a strange use for udp to me
jezz has joined #ruby
ebwise has joined #ruby
Macaveli has quit [Ping timeout: 252 seconds]
Solnse has joined #ruby
<weeb1e>
The mongodb connection is TCP
monkegjinni has joined #ruby
Guest45684 has quit [Quit: Leaving]
<a-priori>
oh good ;)
anarang has joined #ruby
<toretore>
well, you could just do the mongo stuff in a thread, that way you don't have to go around monkey patching it
<weeb1e>
The application queries ~15k servers frequently and updates their stats in the mongo database
duggiefresh has quit [Remote host closed the connection]
jezz has quit [Client Quit]
<a-priori>
really toretore, what do you think weeb1e is going to say to that :P
figgleberry has joined #ruby
<toretore>
"yay threads"? :P
<weeb1e>
I want to use the stats to graph uptime, user counts and latency data
duggiefresh has joined #ruby
ddelrio1986 has joined #ruby
<weeb1e>
That is, if mongodb will let me
Hanmac1 has quit [Ping timeout: 252 seconds]
pabloh has quit [Ping timeout: 265 seconds]
<weeb1e>
toretore: I don't think I actually need to answer that suggestion :P
<toretore>
can't you funnel all the mongo stuff into one worker that serializes them?
<weeb1e>
I'd sooner start spawning processes to make queries :P
ocher has joined #ruby
davy_ has quit [Ping timeout: 240 seconds]
<toretore>
and by serialize i mean synchronize, run in serial
kpshek has quit []
ocher has quit [Read error: Connection reset by peer]
craigp has quit [Remote host closed the connection]
<a-priori>
not real familiar with mongodb, but generally that sort of serialization is the DBMS's job
<a-priori>
it'll do a much better job via transactions than you will
maletor has joined #ruby
albedoa has joined #ruby
ff22310 has quit [Ping timeout: 265 seconds]
yasushi has quit [Remote host closed the connection]
grvgr has joined #ruby
pfg has joined #ruby
<weeb1e>
I implemented all this fibered mongo stuff for 2 other applications, which have no issues, so I really need to figure out what is causing this
kevind_ has joined #ruby
duggiefresh has quit [Ping timeout: 240 seconds]
<weeb1e>
a-priori: What would you even need transactions for, in a single threaded reactor based application?
apeiros has joined #ruby
kpshek has joined #ruby
olivier_bK has quit [Ping timeout: 264 seconds]
<apeiros>
huh? why on earth does my macbook randomly disconnect? :-S
<weeb1e>
I had to disable transactions for the MySQL driver in another one of my applications because it was causing all kinds of race conditions
S0da has joined #ruby
pel_daniel has joined #ruby
<weeb1e>
Since there are no other applications that use that MySQL db, that was the best option to solve that
<toretore>
a-priori: what i mean is that you can have one or more workers who's only responsibility is to run queries against mongo, instead of having mongo connections everywhere
jprovazn has joined #ruby
<toretore>
like a connection pool, but better
ocher has joined #ruby
grzywacz has quit [Ping timeout: 264 seconds]
YamakasY_ has joined #ruby
recurrence has joined #ruby
<a-priori>
weeb1e: because you might have multiple queries in-flight at a time?
<weeb1e>
toretore: You're far too used to threaded programming :P
kevind has quit [Ping timeout: 244 seconds]
ndrei has joined #ruby
kevind_ is now known as kevind
rbartos_ has joined #ruby
<weeb1e>
a-priori: Multiple update queries on the same record?
<toretore>
weeb1e: actually, i'm not used to threaded programming at all
<weeb1e>
You'd have to be careful to avoid that I guess
<weeb1e>
But so far I haven't had any issues, and it's been a good few months since I disabled transactions
visof has quit [Ping timeout: 240 seconds]
<toretore>
sharing resources like connections and synchronizing isn't only useful with threads
ocher has quit [Read error: Connection reset by peer]
<weeb1e>
It did solve hundreds of rare race conditions though
<a-priori>
weeb1e: sure, why not? if two clients request data for the same record you have to synchronize it somehow
Shidash has joined #ruby
rbartos has quit [Ping timeout: 240 seconds]
<weeb1e>
a-priori: Requesting data can't cause issues?
<weeb1e>
How would transactions affecting querying data out of the db?
dagobah has quit [Quit: Leaving...]
<weeb1e>
Reading is reading
IcyDragon has joined #ruby
<jxport>
havenwood & toretore: sorry I disappeared. By "end user", I actually meant the person that's writing an interface to the functionality
nhhagen has quit [Ping timeout: 270 seconds]
IceDragon has quit [Disconnected by services]
IcyDragon is now known as IceDragon
pietr0 has joined #ruby
<toretore>
jxport: long answer made short: it doesn't matter. code/design quality comes first
<jxport>
what was before a "Report", has become ReportCLI, Report, ReportCSVWriter, ReportEmailer
YamakasY has quit [Ping timeout: 264 seconds]
YamakasY_ has quit [Read error: Operation timed out]
lw has joined #ruby
<toretore>
well separated concerns then
<weeb1e>
toretore: The mongo client includes a connection pool
<weeb1e>
Which I share between all my fibers
Vovko has joined #ruby
RaCx_ has joined #ruby
<toretore>
weeb1e: right, but it wouldn't have race conditions
<apeiros>
havenwood: got a date/time when you'd have time for it? e.g. next saturday?
<a-priori>
bad choice of words on 'request', I was referring to read consistency in the presence of a write query
<a-priori>
weeb1e:
RaCx has quit [Ping timeout: 244 seconds]
<apeiros>
I think the most difficult part of it is collecting the data…
RaCx_ is now known as RaCx
<havenwood>
apeiros: sat sounds good
<havenwood>
apeiros: brb on a call
<apeiros>
you're in a european timezone?
<apeiros>
kk
freezey has quit [Remote host closed the connection]
<weeb1e>
a-priori: Ah right, yeah that makes sense, though I'm not sure how the database handles that
figgleberry has quit []
<weeb1e>
I haven't had any issue reports
<weeb1e>
So I assume reading is going just fine
<a-priori>
there's a few ways, but one is MVCC
<jxport>
toretore: I'm only playing Devil's advocate here. But now if I was to write a new interface alongside ReportCLI, e.g. ReportWeb: it now has to know about Report, ReportCSVWriter and ReportEmailer. Before, the interface could just do Report.issue() and respond to the interface appropriately
<a-priori>
locks are another
davidcollom_ has quit [Ping timeout: 264 seconds]
<toretore>
weeb1e: race conditions happen when you share resources, if those resources were controlled in just one place, it'd be easier to deal with
ocher has joined #ruby
<a-priori>
toretore: at a great performance cost
timonv has quit [Remote host closed the connection]
<toretore>
which is?
<workmad3>
weeb1e: read consistency will depend on the transaction isolation level, assuming that's something you can set in MySQL (I know you can in pg)
tonni has joined #ruby
<weeb1e>
I don't use MySQL very often anymore, that platform is one of the last I have that uses MySQL (activerecord) which I had to patch to be fibered instead of blocking because database queries started having a far too large performance impact
<jxport>
So I'm not sure if it could be considered *more* simple (except on a per-class basis) - it could certainly be considered more complicated though, on a per-usage basis
tkuchiki has quit [Remote host closed the connection]
<a-priori>
mysql isn't exactly a good example of good DBMS design anyway
<weeb1e>
toretore: Threading and synchronizing has huge overhead
pabloh has joined #ruby
<toretore>
jxport: well, it depends on what those things do and how they're separated
Vovko_ has joined #ruby
<weeb1e>
Just ask Valve, who completely screwed up their games which now spend 80% of their time in locks
Vovko has quit [Read error: Connection reset by peer]
<toretore>
weeb1e: i wan't saying anything about threads
shredding has quit [Read error: Operation timed out]
fella5s has quit [Ping timeout: 252 seconds]
<toretore>
i just said "worker"
davidcollom_ has joined #ruby
<weeb1e>
toretore: Basically, in a single threaded application, you can't really have conventional race conditions
davidcollom_ is now known as davidcollom
<toretore>
sure you can
kukyakya has quit [Ping timeout: 240 seconds]
<workmad3>
weeb1e: you can in a co-routine based reactor system
<weeb1e>
workmad3: Yeah ok you can, but it is harder
<toretore>
workmad3: have any examples of one of those?
<workmad3>
toretore: weeb1e's current system? :D
<toretore>
(in ruby)
pingec has left #ruby [#ruby]
<toretore>
well, i don't know how weeble's system works
<weeb1e>
toretore: Fibered MySQL + transactions
<toretore>
i mean a fiber reactor
<workmad3>
toretore: eventmachine
<toretore>
eventmachine doesn't use fibers
<workmad3>
it can do
<weeb1e>
transactions delays the updating of attributes until the transaction is over, which means it yields out of the fiber when it starts the query and only updates the local data in memory afterwards
<toretore>
i'm asking because i'm currently writing one
<workmad3>
toretore: you can use the Fiber class (standard ruby) and EM plays nicely with it
<toretore>
and i didn't see anything in ruby already
<toretore>
sure, but em doesn't manage the fibers
<toretore>
it just runs callbacks
<weeb1e>
toretore: Fibers are cooperatively managed
<weeb1e>
It's up to the code implementing fiber support to manage them
<toretore>
but they can be scheduled, which is what i'm talking about
<workmad3>
toretore: I think EM-Synchrony adds fiber management into EM
<weeb1e>
Libraries with fiber support manage them where needed
tylersmith has quit [Remote host closed the connection]
<weeb1e>
em-synchrony adds fiber management for many common uses
gigetoo has quit [Remote host closed the connection]
<weeb1e>
It's a good starting point
<toretore>
but it's not a fiber reactor
<weeb1e>
toretore: I think you're misunderstanding what fibers are
tylersmith has joined #ruby
<weeb1e>
Or how they work
<toretore>
no, i know what fibers are
rainmanjam has joined #ruby
Hanmac has joined #ruby
<toretore>
i have just written a fiber scheduler/reactor
<weeb1e>
Then you'd know you don't need or get such a thing as a "fiber reactor"
<workmad3>
toretore: ok, if you wanted to get extremely picky about it, you may have a point... but you can certainly make heavy use of fibers with EM and get what, is to most people, a fiber reactor ;)
<toretore>
which is why i'm interested in the topic
<diegoviola>
hi
gigetoo has joined #ruby
Es0teric has joined #ruby
not_a_guest has joined #ruby
freezey has joined #ruby
jjbohn is now known as jjbohn|afk
davy_ has joined #ruby
tylersmi_ has joined #ruby
sigurding has joined #ruby
tylersmith has quit [Read error: Connection reset by peer]
carlyle has joined #ruby
<toretore>
a fiber reactor is an event loop that uses fibers instead of callables
RaCx has quit [Quit: Computer has gone to sleep.]
<weeb1e>
a-priori: I added a rescue and retry around the one query that seems to randomly fail the most and it pretty much fixes this
jjbohn|afk is now known as jjbohn
scottradcliff has joined #ruby
fraterlaetus has joined #ruby
<weeb1e>
So I guess I'll just monkeypatch retries on lost connection to the Mongo driver
axsuul has quit [Read error: Connection reset by peer]
<weeb1e>
Still odd that it randomly loses 1 connection while making an update query once in a while
<havenwood>
diegoviola: or the more expensive: 100.times.map { rand 0..1000 }
tylershipe has joined #ruby
andy__ has quit [Remote host closed the connection]
duggiefresh has joined #ruby
xcv has quit [Remote host closed the connection]
grvgr has quit [Quit: grvgr]
andy__ has joined #ruby
xcv has joined #ruby
Xeago has joined #ruby
pushpak has joined #ruby
davy_ has quit [Remote host closed the connection]
<diegoviola>
havenwood: thanks
io_syl has joined #ruby
rbartos has quit [Remote host closed the connection]
carneiro has quit []
crystal77 has joined #ruby
thesheff17 has joined #ruby
amundj has quit [Remote host closed the connection]
lw has quit [Quit: s]
razibog has joined #ruby
carlyle has quit [Read error: Connection reset by peer]
Voodoofish4301 has joined #ruby
<alex88>
hi guys, I'm coming from PHP, usually a thing like "if comments_count = comments_since_last_visit(user).count()" not pass if comments_count (and so the count() on the right) is 0, on ruby however it pass, what should I do to both assign the variable and do the if in one line?
<tobiasvl>
alex88: in ruby 0 evaluates as true
nateberkopec has quit [Read error: Connection reset by peer]
<vpretzel>
There are some fundamental things that people need so I guess what I'm saying is I don't know exactly where the "excess" rewriting is going on, kind of curious
<lewellyn>
the same thing happened when C++ became cool. people started rewriting things which were in C just because C++ is newer.
armyriad has quit [Ping timeout: 264 seconds]
AlSquire has quit [Quit: This computer has gone to sleep]
kpshek has joined #ruby
<centrx>
If the promise of mruby holds out, everything should be rewritten in Ruby
shinobi_one has joined #ruby
jjbohn is now known as jjbohn|afk
cs02rm0 has joined #ruby
<shinobi_one>
lewellyn: everyone seems to rewrite everything in ruby?
AxonetBE has joined #ruby
monkegjinni has joined #ruby
tvw has quit []
dyreshark has joined #ruby
kukyakya has quit [Ping timeout: 264 seconds]
axsuul has quit [Read error: Connection reset by peer]
<dyreshark>
hello friends! beginner question: i have `class Foo < Struct.new(:bar); end` -- how do i define a different string representation for Foo? i've tried defining to_s and to_str, but neither works (running Ruby 2.1)
crystal77 has quit [Quit: Computer has gone to sleep.]
skyjumpe1 is now known as skyjumper
skyjumper has quit [Changing host]
skyjumper has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
Speed has quit [Ping timeout: 265 seconds]
monkegjinni has quit [Ping timeout: 240 seconds]
nanoyak has joined #ruby
albedoa has joined #ruby
carlyle has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
afex has quit [Ping timeout: 265 seconds]
havenwood has quit [Remote host closed the connection]
carlyle has joined #ruby
budrose has joined #ruby
havenwood has joined #ruby
crystal77 has joined #ruby
LBRapid has quit [Ping timeout: 264 seconds]
lfox has quit [Ping timeout: 265 seconds]
timonv has joined #ruby
freerobby1 has joined #ruby
Nightmare has quit [Ping timeout: 265 seconds]
freerobby has quit [Read error: Connection reset by peer]
WormDrink has joined #ruby
WormDrink has quit [Changing host]
WormDrink has joined #ruby
WormDrink has quit [Remote host closed the connection]
<chuck_>
to avoid having to write the variable declaration several times
<apeiros>
uh, yeah, start with a sane design.
SHyx0rmZ has joined #ruby
<chuck_>
huh?
nuba has joined #ruby
cjsarette has joined #ruby
<chuck_>
that's not my object, it's an API response, I'm trying to normalize it
<tylershipe>
What is a SOAP api and is there a way to interact with one in ruby?
<apeiros>
city = address.values_at("city", "town", "village", "hamlet").compact.first
<shevy>
hmm
RaCx has quit [Quit: Computer has gone to sleep.]
<centrx>
tylershipe, Yes, and yes.
<apeiros>
alternatively, city = %w[city town village hamlet].find { |key| address[key] }
krandi has quit [Remote host closed the connection]
* centrx
approves of apeiros' code
<chuck_>
ooh I like that, thanks!
<tylershipe>
centrx, Awesome and awesome!
pu22l3r has quit [Ping timeout: 265 seconds]
RaCx has joined #ruby
nadirvardar has joined #ruby
olivier_bK has joined #ruby
timonv has quit [Remote host closed the connection]
sambao21 has joined #ruby
blaxter has quit [Quit: foo]
Hobogrammer_ has joined #ruby
carlyle has joined #ruby
jjbohn|afk is now known as jjbohn
zachallett has quit [Remote host closed the connection]
* apeiros
ponders writing a gem with ~10 LoC
RaCx has quit [Quit: Computer has gone to sleep.]
nadirvardar has quit [Max SendQ exceeded]
<apeiros>
class Module; def inherit(module); include module::InstanceMethods; include module::Constants; extend module::ClassMethods; end; end # <-- roughly this
mansi has quit [Read error: Connection reset by peer]
tedstriker has quit [Quit: Anti-Fraping status set.]
noopq has quit [Client Quit]
RaCx has joined #ruby
tedstriker has joined #ruby
klaut_ has joined #ruby
axsuul has quit [Read error: Connection reset by peer]
armyriad has joined #ruby
mattmcclure has joined #ruby
Speed has joined #ruby
frem has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
havenwood has joined #ruby
ndrei has joined #ruby
io_syl has quit []
cdime has joined #ruby
<weeb1e>
apeiros: Your alternative option these is not equivalent... city = address["city"] || address["town"] || address["village"] || address["hamlet"]
<weeb1e>
Your alternative will return the key, not the value
nadirvardar has quit [Max SendQ exceeded]
S0da has joined #ruby
<apeiros>
weeb1e: ah, damn, yes
<apeiros>
I keep wanting a map_find
<chuck_>
yeah haha the first example was good though
<weeb1e>
chuck_: See my alternative above as yet another option
davy has quit [Remote host closed the connection]
nadirvardar has joined #ruby
shinobi_one has quit [Quit: shinobi_one]
mehlah has quit [Read error: Connection reset by peer]
<wuest>
shevy: :)
Speed has quit [Ping timeout: 240 seconds]
jjbohn is now known as jjbohn|afk
timonv has quit [Remote host closed the connection]
Kricir has joined #ruby
quatron has joined #ruby
pu22l3r_ has quit [Remote host closed the connection]
pu22l3r has joined #ruby
twiceaday has quit [Read error: Connection reset by peer]
<apeiros>
outside of the class it doesn't refer to neither the class nor an instance of it
RaCx has quit [Quit: Computer has gone to sleep.]
aryaching has quit [Ping timeout: 264 seconds]
<apeiros>
"outside the class" - well, then the class doesn't matter anymore at all for self, it doesn't matter what you're *out* of, it matters what you're *in*.
<gr33n7007h>
Your example makes it clear
anarang has quit [Quit: Leaving]
mourest has quit [Read error: Connection reset by peer]
<apeiros>
gr33n7007h: note that @ivars are tied to the same self. same self == same ivars.
tjr9898_ has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
RaCx has joined #ruby
<gr33n7007h>
Brilliant, thanks apeiros
craigp has quit []
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
<slowcon>
hey guys, is there an OS that ruby plays best with?
polyidus has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
slowcon the RubyOS
<RubyPanther>
slowcon: Any of the Earth ones
yarou has joined #ruby
<slowcon>
looking at a server and have the options of ubuntu, centos, debian, fedora, scientific linux
<wmoxam>
Ruby is terible on BlackberryOS
<shevy>
slowcon linux is usually better because of the ease of interoperability you get; I set my xorg buffer freely, then open tabs in firefox. on windows, this may be possible but not out-of-the-box I assume
<wmoxam>
:(
cloud|nix has joined #ruby
<slash_nick>
slowcon: have used ubuntu and centos
boycey has left #ruby [#ruby]
<slash_nick>
no problems with either... what do you prefer?
<shevy>
then kde konsole with R,G,B colours + tabs - beat that windows! ok now that we determined that windows loses, let's look at osx
sigurding has quit [Quit: sigurding]
<RubyPanther>
slowcon: for Ruby those are all the same, but centos has the best server packages for the other stuff you may need
<wmoxam>
slowcon: any of those will work great
styped has joined #ruby
<slowcon>
ive only worked in windows and osx really, never dove into any other
duggiefresh has joined #ruby
dzhulk has joined #ruby
<shevy>
yeah
<centrx>
slowcon, I would recommend a Debian-based distribution, such as Ubuntu or Debian
<shevy>
you would need someone to compare linux to osx and vice versa
<shevy>
(provided that there are clever people using both)
<centrx>
slowcon, (given the list of options you presented)
<slowcon>
hmmmmm
<RubyPanther>
slowcon: Even if I write a Ruby extension in C on linux, it will compile and run without porting or modification on windows, we've escaped platform lock a decade ago
<shevy>
can you set the paste buffer on osx from the commandline?
<RubyPanther>
In fact a lot of my code gets run on windows desktops, and I don't even own a windows box to test on.
duggiefr_ has joined #ruby
<centrx>
RubyPanther, Has the slowness of Ruby on Windows been improved?
<shevy>
it is easy to make pr0n run cross platform
<slowcon>
RubyPanther: i work on windows at work, osx at home. was running into so many problems on the windows machine
phansch has quit [Quit: WeeChat 0.4.2]
<shevy>
slowcon ditch windows!
<RubyPanther>
centrx: I wouldn't write a media codec or something in Ruby, so it would never be a bottleneck to even know if it is slow or not. To the user it runs the same speed as a C app; the speed of windows
phantomtiger has quit [Quit: phantomtiger]
freezey has quit [Remote host closed the connection]
starfox21 has joined #ruby
<slowcon>
shevy: i wish!
<shevy>
slowcon the most important thing is to have ruby running
<shevy>
on windows you can at least use the unixy tools, either via putty to connect to a server with linux or by using stuff like cygwin or msys
<RubyPanther>
slowcon: The windows boxes themselves have lots of problems, but for the Ruby it Just Works. If I tried to dev there, yeah, problems I'm sure
jjbohn is now known as jjbohn|afk
duggiefresh has quit [Ping timeout: 264 seconds]
boxmein has joined #ruby
<slowcon>
RubyPanther: yeah exactly. i want to setup a dev enviornment on this server and always work there
havenwood has quit [Remote host closed the connection]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
armyriad has quit [Ping timeout: 240 seconds]
<RubyPanther>
slowcon: centos is the best blend of server and workstation defaults IMO
<slowcon>
perfect
<slowcon>
centrx thinks so as well :)
havenwood has joined #ruby
kpshek has quit []
<slowcon>
what you think centrx?
Xeago has joined #ruby
agent_white has joined #ruby
<centrx>
I prefer Debian-based distributions.
<centrx>
Surely any distribution will work
tjr9898_ has joined #ruby
shvelo has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
rbartos has joined #ruby
<shevy>
:)
<shevy>
slowcon do you have a computer to test?
<shevy>
I mean like, test install a linux distribution for a while
<DouweM>
apeiros: why not leave the instance methods in the module itself, instead of under InstanceMethod? That way it's a little more in line with expectations/"real" behaviour. Note that this is also how ActiveSupport::Concern handles this
<apeiros>
DouweM: because it means you include all constants directly under the module too
<apeiros>
and that's exactly one aspect I dislike about AS::Concern
<DouweM>
apeiros: ah, right
vlad_starkov has joined #ruby
<DouweM>
I was gonna say I think ActiveSupport::Concern is a neater solution, but that's actually a great point that I wasn't aware of
<apeiros>
there was something else I disliked, but I forgot. I barely ever used AS::Concern :(
axl_ has quit [Quit: axl_]
vpretzel has quit [Remote host closed the connection]
freerobby has joined #ruby
<DouweM>
ActiveSupport::Concern handles module dependencies nicely as well
freerobby has quit [Read error: Connection reset by peer]
vpretzel has joined #ruby
YamakasY has quit [Ping timeout: 268 seconds]
maroloccio has joined #ruby
pfg has joined #ruby
Hanmac1 has joined #ruby
tedstriker has quit [Quit: Anti-Fraping status set.]
claymore has quit [Ping timeout: 240 seconds]
mikepack has joined #ruby
tedstriker has joined #ruby
claymore has joined #ruby
freerobby has joined #ruby
ebwise has quit [Ping timeout: 240 seconds]
Hanmac has quit [Ping timeout: 269 seconds]
carlyle has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 240 seconds]
tjr9898__ has joined #ruby
carlyle has joined #ruby
freerobby1 has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
starfox21 has quit [Quit: starfox21]
tvw has quit [Ping timeout: 252 seconds]
tjr9898 has quit [Ping timeout: 264 seconds]
<apeiros>
DouweM: got an example how and where that matters?
<apeiros>
(I do intend on keeping `inherit` minimal, though)
BeLucid has quit [Remote host closed the connection]
dzhulk has joined #ruby
<apeiros>
if all your values are strings, you can shorten this to:
xaq has quit [Read error: Connection reset by peer]
<apeiros>
@testimonials.reject(&:empty?).each …
banister has joined #ruby
xaq has joined #ruby
mihirrege has joined #ruby
smathieu has quit [Remote host closed the connection]
Solnse has quit [Quit: Leaving.]
<jhass>
actually you can't, he's doing .interest_group
inversesquarelaw has joined #ruby
jackneill has quit [Read error: Operation timed out]
smathieu has joined #ruby
<jhass>
I still like .reject {|testimonial| testimonial.interest_group.empty? } better though
<Macaveli>
DouweM, apeiros does an Enumerable unique exist for example Line 1 -> "abc" Line 2 -> "def" Line 3 -> "abc" -> it can only loop 2 lines in that case
YamakasY_ has quit [Remote host closed the connection]
mjs2600 has quit [Remote host closed the connection]
mjs2600 has joined #ruby
<apeiros>
jhass: gah, true
enebo has quit [Quit: enebo]
<apeiros>
and yes, still .empty?
YamakasY has joined #ruby
<apeiros>
Macaveli: I don't follow, sorry.
<fveillette>
if i have 2 different array and both contain hashes... if i try to do array1 - array2 it doesn't evaluate the hashes properly.. i would like to know why
mjs2600 has quit [Remote host closed the connection]
<apeiros>
fveillette: incomplete problem description.
<Macaveli>
apeiros, jhass -> it becomes this @testimonials.reject{|testimonial| testimonial.interest_group.empty? }.uniq{|x| x.interest_group}.each do |test|
mjs2600 has joined #ruby
<apeiros>
fveillette: reproducable example. demo input, output, and expected output
<Macaveli>
or can you combine uniq and select?
mjs2600 has quit [Remote host closed the connection]
<fveillette>
i give you a gist in a sec
Kricir has quit []
kaldreno_ has joined #ruby
YamakasY_ has joined #ruby
<apeiros>
Macaveli: chaining is fine
phantomtiger has joined #ruby
afex has joined #ruby
<jhass>
now you can do uniq(&:interest_group) ;)
mjs2600 has joined #ruby
vim_shim is now known as vimsterly
<apeiros>
Macaveli: you could do the uniq test within reject/select, but it'd become horribly unreadable and you'd gain nothing IMO.
<apeiros>
isn't it uniq_by?
smathieu has quit [Ping timeout: 265 seconds]
<jhass>
iirc that one falls out of the scheme
<apeiros>
ohfuckno
<apeiros>
it isn't :(
<apeiros>
SHAME ON THEM!
kaldrenon has quit [Ping timeout: 264 seconds]
mjs2600 has quit [Remote host closed the connection]
mihirrege has quit [Remote host closed the connection]
joelroa has joined #ruby
Guest18028 is now known as bodie_
hiyosi has joined #ruby
kotakotakota has joined #ruby
mansi has quit [Ping timeout: 244 seconds]
Foo3 has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
mihirrege has joined #ruby
mjs2600 has quit [Remote host closed the connection]
yfeldblu_ has joined #ruby
RaCx_ has joined #ruby
RaCx has quit [Ping timeout: 244 seconds]
RaCx_ is now known as RaCx
jxf has quit [Ping timeout: 264 seconds]
<kewubenduben>
can anyone suggest me on what library to use to be able to parse mysql's my.cnf config format?
hiyosi has quit [Ping timeout: 240 seconds]
joelroa has quit [Ping timeout: 265 seconds]
yfeldblum has quit [Ping timeout: 244 seconds]
shvelo has quit [Ping timeout: 240 seconds]
kukyakya has joined #ruby
sski has joined #ruby
sambao21 has joined #ruby
<shevy>
dont think there is a library
sparrovv has joined #ruby
tvw has joined #ruby
lw has quit [Quit: s]
lw has joined #ruby
atmosx has quit [Quit: WeeChat 0.4.3-dev]
atmosx has joined #ruby
<kewubenduben>
any suggestion on how to parse the conf? I've tried 'iniparse', problem is that mysql config have some lines which doesn't have matching value
mansi has joined #ruby
<agent_white>
It's quiet in here...
pu22l3r has quit [Ping timeout: 265 seconds]
ws2k3__ has quit [Remote host closed the connection]
esposito has joined #ruby
<centrx>
Almost too quiet...
<centrx>
agent_white, BOO
kaldreno_ is now known as kaldrenon
<Jdubs>
hey guys i cant seem to find help with an issue elsewhere, anyone good with bootstrap?
AntelopeSalad has quit []
ws2k3__ has joined #ruby
<centrx>
kewubenduben, Iniparse isn't robust enough to handle that?
<apeiros>
kewubenduben: StringScanner, TreeTop
<kewubenduben>
centrx, yep
<apeiros>
oh, *Treetop actually
<kewubenduben>
apeiros, thanks.. will look into it
<apeiros>
if .cnf is supposed to be a valid .ini format - patch iniparse
RaCx has quit [Quit: Computer has gone to sleep.]
prc has joined #ruby
grzywacz has joined #ruby
<centrx>
Jdubs, How about #twitter-bootstrap
wimplash has joined #ruby
<centrx>
Jdubs, If no response there, you could try #RubyOnRails that would be a more likely channel than here
<Jdubs>
alright thanks
polydius has joined #ruby
polydius has quit [Max SendQ exceeded]
armyriad has quit [Ping timeout: 240 seconds]
AntelopeSalad has joined #ruby
nanoyak has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
polydius has joined #ruby
polydius has quit [Max SendQ exceeded]
wimplash has quit [Client Quit]
igsilv has joined #ruby
rbartos has joined #ruby
guinslym has quit [Quit: Lost terminal]
carlyle has quit []
tedstriker has quit [Quit: Anti-Fraping status set.]
jokke has quit [Quit: WeeChat 0.4.2]
mengu has joined #ruby
mengu has joined #ruby
aspires has quit []
tedstriker has joined #ruby
LiohAu has quit [Quit: LiohAu]
maroloccio has quit [Quit: WeeChat 0.4.3]
<slowcon>
centrx: i went with ubuntu. gonna try this out
Jdubs has quit [Remote host closed the connection]
rahult has joined #ruby
Hobogrammer_ has joined #ruby
itadder has joined #ruby
srji_ has joined #ruby
tylershipe has quit [Ping timeout: 240 seconds]
srji has quit [Ping timeout: 252 seconds]
swapna has joined #ruby
grzywacz has quit [Remote host closed the connection]
AlexRussia has quit [Quit: Konversation terminated!Good bye!]
cs02rm0 has quit [Ping timeout: 240 seconds]
DaniG2k has quit [Ping timeout: 240 seconds]
grzywacz has joined #ruby
grzywacz has quit [Changing host]
grzywacz has joined #ruby
itadder has quit [Ping timeout: 241 seconds]
<bradhe>
Hey how can I install the ruby development headers if I'm installing from source?
paulfm has quit []
<centrx>
The development headers are in the source directory
bluOxigen has quit [Ping timeout: 252 seconds]
mary5030 has quit [Read error: Connection reset by peer]
pwh has joined #ruby
toastynerd has joined #ruby
swapna has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
timonv has quit [Remote host closed the connection]
mary5030 has quit [Read error: Connection reset by peer]
swapna has joined #ruby
monkegjinni has quit [Remote host closed the connection]
rankine has joined #ruby
monkegjinni has joined #ruby
enebo has joined #ruby
rbartos has quit [Remote host closed the connection]
banek has joined #ruby
sdouglas has joined #ruby
joelroa has joined #ruby
boom__ has joined #ruby
hiyosi has joined #ruby
sailias has quit [Ping timeout: 240 seconds]
MissionCritical has quit [Ping timeout: 245 seconds]
DaniG2k has joined #ruby
popl has quit [Quit: Touch the frog.]
ndrei has quit [Ping timeout: 264 seconds]
codezomb has joined #ruby
jonno11 has joined #ruby
monkegjinni has quit [Ping timeout: 264 seconds]
rbartos has joined #ruby
msmith_ has quit [Remote host closed the connection]
agent_white has quit [Quit: leaving]
<RubyPanther>
bradhe: if you're on ruby 1.9 you need some tricks
sdouglas has quit [Remote host closed the connection]
<bradhe>
Rub
<bradhe>
RubyPanther: 2.1.1
ddelrio1986 has quit [Ping timeout: 240 seconds]
agent_white has joined #ruby
ndrei has joined #ruby
<RubyPanther>
okay, it should all happen automatically then
polydius has quit [Quit: EOF]
<bradhe>
hmmm
sdouglas has joined #ruby
Sokolman has joined #ruby
<bradhe>
I used sudo make install, the binary makes it to the right place...but when I try to install a gem with native extensions is says "can't find mkmf"
<bradhe>
which I thought was part of the dev stuff for ruby?
polydius has joined #ruby
joelroa has quit [Ping timeout: 240 seconds]
mois3x has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
hiyosi has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
<Hanmac1>
bradhe: do you use rvm or similar? what is your OS?
<bradhe>
Ubuntu, no RVM
xaq has quit [Remote host closed the connection]
<bradhe>
I'm trying to do it without RVM...
<Hanmac1>
bradhe: test "ruby -v" and "gem env" if your installed ruby is correct installed
kaldrenon has quit [Remote host closed the connection]
<RubyPanther>
bradhe: typicaly that means you're hitting a system ruby
<shevy>
bradhe on some debian distributions they are so clever to remove mkmf, then you can't compile ruby extensions. say thanks to these helpful devs!
Sokolman has quit []
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
<Hanmac>
RubyPanther: thats what my friends hate on me ... that sometimes they need to tell me "yeah you are right" or i said to them "Told you so" ... if i get a Dollar for each time i was right ... i already would own my own City ;P
Kruppe has joined #ruby
<shevy>
like Detroit
<shevy>
it did cost a dollar at one point in time
<RubyPanther>
But if you do sudo sh -c 'echo $PATH' # typically /usr/local/bin is stripped out, so you run a ruby tool with sudo, and that tool then tries to hand off to another tool, but it hits the system tool instead of the one in /usr/local, because the scripts all have #!/usr/bin/env ruby
robbyoconnor has quit [Ping timeout: 240 seconds]
jjbohn has quit [Quit: Leaving...]
agent_white has quit [Client Quit]
tjr9898_ has quit []
<Hanmac>
shevy: yeah but no one wants Detroit ;P
jjbohn has joined #ruby
toastynerd has quit []
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rm__ has quit []
<bradhe>
Odd, "irb; require 'mkmf' => true" -- maybe bundler is le hosed?
<jhass>
bradhe: did you install it again already?
<Hanmac>
bradhe: didyou try to reinstall bundler?
<bradhe>
I'm trying now
rm_ has joined #ruby
<Hanmac>
RubyPanther: i should collect money for each time someone does not want to listen when i am right ... ;P
<RubyPanther>
bradhe: You should also remove the system ruby so that if sudo can't find something, you'll get the right error message (that it isn't there) instead of a ruby error message that will be obtuse
jonno11 has joined #ruby
acrussell has quit [Quit: Leaving.]
<RubyPanther>
Hanmac: I was just trying to guide him past the pain so that he doesn't need your advice :o
mikepack has quit [Remote host closed the connection]
Sawbones has joined #ruby
Solnse has joined #ruby
<Hanmac>
yeah ... but sometimes they need to learn when the hotplates are "hot" ;P
cs02rm0 has joined #ruby
yubrew has quit [Remote host closed the connection]
tedstriker has quit [Quit: Anti-Fraping status set.]
vlad_starkov has joined #ruby
<RubyPanther>
In my case, I insisted I could just cool them off, and I maintained an alternate sudo rpm for a couple years
joast has quit [Quit: Leaving.]
Kricir has joined #ruby
JViz has quit [Ping timeout: 264 seconds]
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
esposito has joined #ruby
sincereness has quit [Ping timeout: 245 seconds]
yubrew has joined #ruby
<bradhe>
Yup, it was freakin' bundler. Re-isntalling it (with a know-good version this time) fixed the problem.
yubrew has quit [Remote host closed the connection]
<RubyPanther>
but the reality is that /usr/local is fine for games, but sucks for dev tools these days
<Hanmac>
i used Centos at work ... i am still suprised that BASIC components like "man" where missing!!¡
kukyakya has joined #ruby
<RubyPanther>
Hanmac: don't blame centos, blame the IT person who ran the installer
toastynerd has joined #ruby
<jhass>
bradhe: it rather was /usr/bin/bundle still pointing to your old ruby I bet. Which is expected unless you install your gems with --env-shebang or what the parameter was
<RubyPanther>
A lot of sysadmins don't want extra tools on the routers, etc
<centrx>
slowcon, How is the Ubuntu?
Mission-Critical is now known as MissionCritical
Umschwung has joined #ruby
cs02rm0 has quit [Ping timeout: 244 seconds]
<RubyPanther>
"Society is important because of Ubuntu." -- President Bill Clinton
Sawbones has quit []
fgo has quit [Remote host closed the connection]
griffindy has quit [Quit: Computer has gone to sleep.]
doubleemms has joined #ruby
thomas_d has quit []
joast has joined #ruby
philcrissman has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
rbartos has quit [Remote host closed the connection]
ebwise has joined #ruby
rudisimo has quit []
rbartos has joined #ruby
banister has joined #ruby
albedoa has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jph98 has joined #ruby
scottradcliff has quit [Quit: Page closed]
Xeago has quit [Remote host closed the connection]
<Hanmac>
RubyPanther: last i have seen a picture that shows that Clinton could answer 3 of 3 Questions about My Little Pony ;PP
derek_c has joined #ruby
mjs2600 has quit [Remote host closed the connection]
rm_ has quit [Read error: Connection reset by peer]
rm_ has joined #ruby
rbartos has quit [Remote host closed the connection]
doubleemms has quit [Quit: doubleemms]
jjbohn has joined #ruby
jxf has quit [Ping timeout: 240 seconds]
<shevy>
cool
<shevy>
I did not know there was a readline 6.3, off to compile it!
<jhass>
shevy: see arch has it compiled for you in the repos before you even notice it's released! ;P
meather__ has quit [Remote host closed the connection]
<shevy>
yeah, 20 eyes see more than 2 eyes
<shevy>
finished compilation!
meatherly has joined #ruby
Faris2 has joined #ruby
Kricir has quit [Remote host closed the connection]
<shevy>
hmm
<shevy>
there is, or there appears to be, this slight inconsistency in how ruby programs use versioning
Asher has joined #ruby
<shevy>
I thought this would work: Readline::Version
<shevy>
well no... it is Readline::VERSION instead # => "5.2"
Faris has quit [Ping timeout: 240 seconds]
<shevy>
Is everyone here using VERSION?
caesura has joined #ruby
tvw has quit []
<enricostn>
jhass, downgrading readline (6.3-1 => 6.2.004-2) did the trick!
<enricostn>
thanks
<centrx>
shevy, I think so
zachallett has joined #ruby
<terrellt>
shevy: Yes, but only because that's what bundler generates.
<shevy>
hmm
<centrx>
VERSION looks like a constant. Version looks like a class
<enricostn>
now I need to remember to upgrade it when the ruby issue is fixed...
jph98 has quit [Quit: jph98]
Kricir has joined #ruby
<shevy>
yeah I think that makes sense centrx ... Gem also uses the same: Gem::VERSION # => "2.2.2", it also has a class caled Gem::Version
<jhass>
enricostn: haven't verified but I think the issue is only at compile time. Given the major ABI version didn't change I'd expect it to continue working after upgrade
codeitagile has quit [Remote host closed the connection]
<enricostn>
oh, thanks
<shevy>
omg... actionpack-4.0.2/lib/action_pack/version.rb: module VERSION
charliesome has joined #ruby
<shevy>
oh... but they use an interesting way to version; def self.version; Gem::Version.new "4.0.2"
mary5030 has quit [Remote host closed the connection]
Faris2 has quit [Ping timeout: 240 seconds]
mlpinit has quit [Remote host closed the connection]
meatherly has quit [Ping timeout: 265 seconds]
Faris has joined #ruby
Asher has quit [Read error: Connection reset by peer]
mlpinit has joined #ruby
Asher has joined #ruby
hiyosi has joined #ruby
zachallett has quit [Ping timeout: 264 seconds]
bradhe has quit [Remote host closed the connection]
<whomp>
what's the best way to include bundles in my ruby app? it'll be distributed to mac users only
hobodave_ has quit [Quit: Computer has gone to sleep.]
<whomp>
also, what's the best way to protect my source code and keep it closed-source?
<jhass>
hmm
<jhass>
don't use ruby?
<jhass>
or don't give it to anybody
<centrx>
mruby?
<shevy>
whomp how do you want to protect text files?
hornairs has joined #ruby
<apeiros>
whomp: or pay $ridiculous for encoder (google it, I don't have the link, sorry - it's by zenspider I think)
igsilv has quit [Ping timeout: 240 seconds]
<whomp>
shevy, i want to have them as obfuscated as files in any compiled language. so if there's a good way to compile them, i'm down with that
mlpinit has quit [Ping timeout: 240 seconds]
Asher has quit [Client Quit]
mojjojo has joined #ruby
toastynerd has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
hiyosi has quit [Ping timeout: 265 seconds]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
pierre1_ has quit [Ping timeout: 265 seconds]
jonno11 has quit [Ping timeout: 252 seconds]
Trevoke has joined #ruby
pfg has joined #ruby
markisonfire has quit [Ping timeout: 252 seconds]
jerius has quit [Ping timeout: 252 seconds]
mengu has quit []
markisonfire has joined #ruby
jcs222 has joined #ruby
toastynerd has joined #ruby
philcrissman has quit [Remote host closed the connection]
<shevy>
it's hypnotic, just look at it for a while
kukyakya has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 240 seconds]
cs02rm0 has joined #ruby
Nyyx has quit [Ping timeout: 240 seconds]
kpshek has quit []
sambao21 has joined #ruby
sambao21 has quit [Client Quit]
DrShoggoth has quit [Quit: Leaving]
jonahR has quit [Quit: jonahR]
binaryhat has joined #ruby
yasushi has joined #ruby
rootshift has joined #ruby
cs02rm0 has quit [Ping timeout: 244 seconds]
petey has quit [Ping timeout: 264 seconds]
Avahey has joined #ruby
griffindy has joined #ruby
SCommette has quit [Quit: SCommette]
shinobi_one has quit [Quit: shinobi_one]
aspires has quit []
shinobi_one has joined #ruby
hobodave has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
griffindy has quit [Client Quit]
duggiefresh has joined #ruby
aspires has joined #ruby
chrisja has quit [Quit: leaving]
enebo has quit [Quit: enebo]
Trevoke has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
geggam has quit [Remote host closed the connection]
Nyyx has joined #ruby
elaptics is now known as elaptics`away
scrogson has left #ruby ["Auf Wiedersehen"]
<swapna>
regarding sketchup and ruby scripts... Anyone know if ruby scripts needs to be converted from dos to unix format in order for the plugins to work??
bradhe has quit [Ping timeout: 240 seconds]
rbartos has joined #ruby
itadder has joined #ruby
bradhe has joined #ruby
esposito has joined #ruby
unixpro1970 has joined #ruby
unixpro1970 has quit [Remote host closed the connection]