apeiros_ has quit [Remote host closed the connection]
danneu has joined #ruby
chrishunt has quit [Ping timeout: 244 seconds]
jimeh has quit [Quit: Computer has gone to sleep.]
nomenkun has quit [Remote host closed the connection]
crazed has quit [Ping timeout: 250 seconds]
phelps has joined #ruby
phelps has quit [Client Quit]
babykosh has quit [Quit: babykosh]
nomenkun has joined #ruby
phelps has joined #ruby
crazed has joined #ruby
banisterfiend has quit [Ping timeout: 265 seconds]
osvico has joined #ruby
hotovson_ has joined #ruby
banisterfiend has joined #ruby
synthetix has quit [Ping timeout: 240 seconds]
thone has joined #ruby
thone_ has quit [Ping timeout: 252 seconds]
cableray has quit [Quit: cableray]
jeffreybaird has joined #ruby
h4mz1d has quit [Ping timeout: 252 seconds]
tomku has joined #ruby
dankest is now known as dankest|away
cascalheira has quit [Quit: Leaving...]
gyre007 has quit [Remote host closed the connection]
igro has quit [Quit: Computer has gone to sleep.]
banisterfiend has quit [Ping timeout: 240 seconds]
synthetix has joined #ruby
timonv has joined #ruby
gabrielrotbart has joined #ruby
c0rn has quit []
nomenkun has quit [Ping timeout: 255 seconds]
<tsp>
shevy: edbrowse is ed with PCRE and a browser, quite useful. One of those apps I can't live without
timonv has quit [Ping timeout: 276 seconds]
digitalcakestudi has quit [Quit: Leaving.]
drlaj has joined #ruby
tommyvyo_ has joined #ruby
lolcathost has quit [Quit: leaving]
hotovson_ has quit [Remote host closed the connection]
lolcathost has joined #ruby
iamjarvo has quit [Quit: Leaving.]
pu22l3r_ has joined #ruby
moshee has quit [Ping timeout: 255 seconds]
Virunga has joined #ruby
moshee has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
cyong has quit [Quit: Leaving.]
Virunga has quit [Remote host closed the connection]
drlaj has quit [Ping timeout: 260 seconds]
hotovson has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
tommyvyo_ is now known as tommyvyo
yshh has joined #ruby
banisterfiend has joined #ruby
ejholmes has joined #ruby
<shevy>
interesting, never heard of that
hotovson has quit [Ping timeout: 240 seconds]
adac has quit [Quit: Leaving]
ipalaus has quit [Quit: :-)]
mike-- has joined #ruby
joeycarmello has joined #ruby
raycarr has quit [Quit: raycarr]
jwang has quit [Quit: Leaving]
miso1337 has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
tommyvyo_ has joined #ruby
joeycarmello has quit [Ping timeout: 244 seconds]
tommyvyo_ has quit [Client Quit]
seanstickle has quit [Quit: seanstickle]
synthetix has quit [Ping timeout: 264 seconds]
chrishunt has joined #ruby
ephemerian has quit [Quit: Leaving.]
Naeblis has left #ruby ["Leaving"]
raycarr has joined #ruby
Tref has joined #ruby
Gooder has joined #ruby
chrishunt has quit [Ping timeout: 244 seconds]
banister_ has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
beachandbytes has quit [Ping timeout: 248 seconds]
cyong has joined #ruby
tommyvyo_ has joined #ruby
raycarr has quit [Client Quit]
dukedave has quit [Quit: Leaving.]
ejholmes has quit [Quit: ejholmes]
beachandbytes has joined #ruby
digitalcakestudi has joined #ruby
agarie has joined #ruby
Tref has quit [Quit: Tref]
EyesIsMine has quit [Ping timeout: 264 seconds]
danneu has quit [Ping timeout: 250 seconds]
reppard has joined #ruby
synthetix has joined #ruby
rew_ has quit [Quit: leaving]
EyesIsMine has joined #ruby
Guest84831 has quit [Quit: Computer has gone to sleep.]
moos3 has quit [Quit: Computer has gone to sleep.]
Briney has joined #ruby
cyong has quit [Ping timeout: 264 seconds]
slainer68 has quit [Remote host closed the connection]
digitalcakestudi has quit [Quit: Leaving.]
jwang has joined #ruby
banister_ has quit [Ping timeout: 244 seconds]
banisterfiend has joined #ruby
voodoofish has quit [Ping timeout: 240 seconds]
Goles has joined #ruby
hsbt is now known as hsbt_away
freakazoid0223 has joined #ruby
Briney has quit [Quit: Briney]
ejholmes has joined #ruby
IvoTenk has quit [Ping timeout: 240 seconds]
GoGoGarrett has quit [Remote host closed the connection]
cyong has joined #ruby
mike-- has quit [Ping timeout: 265 seconds]
huoxito has joined #ruby
ejholmes has quit [Client Quit]
gyre007 has joined #ruby
havenn has joined #ruby
gabrielrotbart has quit [Remote host closed the connection]
tommyvyo has quit [Quit: Computer has gone to sleep.]
tommyvyo_ is now known as tommyvyo
voodoofish has joined #ruby
gyre007 has quit [Ping timeout: 252 seconds]
ipalaus has joined #ruby
nonotza has joined #ruby
vasile has quit [Ping timeout: 265 seconds]
Goles has quit [Quit: Computer has gone to sleep.]
ttt has joined #ruby
ejholmes has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
Goles has joined #ruby
dankest|away is now known as dankest
Goles has quit [Max SendQ exceeded]
krisfremen has quit [Remote host closed the connection]
Goles has joined #ruby
tps_ has joined #ruby
Daman has quit [Quit: u]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
vasile has joined #ruby
leonardorb has quit [Remote host closed the connection]
krisfremen has joined #ruby
krisfremen has joined #ruby
leonardorb has joined #ruby
danneu has joined #ruby
slainer68 has joined #ruby
Shamgar has quit [Ping timeout: 264 seconds]
EyesIsMine has quit [Ping timeout: 248 seconds]
pu22l3r_ has quit [Ping timeout: 252 seconds]
pu22l3r_ has joined #ruby
iamjarvo has joined #ruby
mahmoudimus has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
tommyvyo has joined #ruby
bye_bye has joined #ruby
havenn has quit [Remote host closed the connection]
aaronmacy has quit [Read error: Connection reset by peer]
aaronmacy has joined #ruby
nonotza has quit [Quit: nonotza]
tommyvyo has quit [Quit: Computer has gone to sleep.]
havenn has joined #ruby
slainer68 has quit [Ping timeout: 264 seconds]
rakl has quit [Ping timeout: 252 seconds]
Gooder has quit [Read error: Connection reset by peer]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
tommyvyo has joined #ruby
rakl has joined #ruby
cj3kim has joined #ruby
bradhe has joined #ruby
krz has joined #ruby
definiv has joined #ruby
mengu has quit [Remote host closed the connection]
kil0byte_ has joined #ruby
kil0byte_ has quit [Remote host closed the connection]
pencilcheck has joined #ruby
kil0byte has quit [Ping timeout: 255 seconds]
freeayu_ has joined #ruby
mercwithamouth has joined #ruby
freeayu has quit [Read error: Connection reset by peer]
noric has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
vasile has quit [Read error: Operation timed out]
banisterfiend has quit [Ping timeout: 252 seconds]
<noric>
What's an ideal directory / file structure for nested modules? Let's say I'm in a subdirectory of lib. I want a new nested module foo. mkdir ./foo/ will contain all the files inside module Foo. ./foo.rb contains requires for module Foo, so a consumer must only require 'foo.rb' to receive ./foo/*.
Hanmac1 has joined #ruby
<ryanf>
that sounds typical, yeah
<noric>
A nested class, Foo::Bar will go in ./foo/bar.rb, ./foo.rb will require 'bar'.
<ryanf>
* 'foo/bar'
<noric>
My question is, where do I put methods defined on the module: module Foo; def self.bar; end;
<ryanf>
but yeah, that sounds about right. and rails autoloading will assume that structure, so you don't need the require statements
<ryanf>
probably foo.rb
<noric>
One convention seems to be ./foo/base.rb. I despise base after having too many base.rb<4> in emacs.
<noric>
So Module Foo; def self.bar; end; would go in ./foo.rb ?
<ryanf>
surely foo/base.rb would be a class called Foo::Base?
cj3kim has quit [Quit: This computer has gone to sleep]
<noric>
hopefully :P
<ryanf>
yeah, I'd put it in foo.rb. or if it gets too sprawling, try to refactor it to not need so much stuff in there
<noric>
So, one counterpoint to including Foo::bar in foo.rb, a bunch of foo functionality is living in foo's parent directory.
<noric>
If you think of foo/* as being the contents of module foo, well you're violating that when you put a bunch of functions in foo.rb
<ryanf>
if that's how you're structuring things and that makes you uncomfortable, it probably makes more sense to change the structure than mess with the arrangement of files
<noric>
So you want, ./foo.rb # requires the Foo module, ./foo/bar.rb # class Foo::Bar, ./foo/foo.rb # Module Foo; def self.classMethodOmg; end;
<ryanf>
I think it's generally worth keeping to the convention of the directory structure reflecting the classes/modules that are in them
<noric>
Well, in a ruby module/class hierarchy, there's stuff attached to the module and to classes
<ryanf>
so foo/foo.rb should be Foo::Foo
<noric>
Classes are understood to be foo/bar.rb
<noric>
right
<ryanf>
if it's not Foo::Foo, you're misleading someone who is trying to find the class methods
<ryanf>
mo
<ryanf>
*imo
<noric>
so ./foo.rb contains the host of business logic, Foo::bar1 .. Foo::barN?
<noric>
I see the pattern, but then you're left with a bunch of the module outside the module directory.
<noric>
It seems cleaner to have only the requires outside the module directory.
<noric>
Sinatra uses sinatra/base.rb to mean "a general container" and not Sinatra::Base
gabrielrotbart has joined #ruby
postmodern has joined #ruby
<noric>
But other projects do it differently
<noric>
I'm just surprised there's no clear convention
<ryanf>
I think there is a clear convention, and you just don't like it :)
<ryanf>
of course different projects will vary, because it's a free country
freeayu has joined #ruby
<ryanf>
(metaphorically speaking)
<ryanf>
but I definitely think the common assumption is that the constant hierarchy matches the file hierarchy
love_color_text has joined #ruby
<noric>
Hehe, thanks. I will go with Foo::method inside foo.rb (outside the "module directory")
freeayu_ has quit [Read error: Connection reset by peer]
<noric>
I like that better than screwing with Foo::method inside foo/?.rb
banisterfiend has joined #ruby
tps_ has quit [Quit: tps_]
elkclone has quit [Quit: It's never too late to unplug and run.]
Michael__ has joined #ruby
<mercwithamouth>
how would one go about referencing a method with a symbol?
<havenn>
mercwithamouth: send(:puts, 'hi')
shiin has quit [Quit: Computer has gone to sleep.]
<waxjar>
or __send__ if you're not sure send might be used for something else
pu22l3r_ has quit [Ping timeout: 265 seconds]
freakazoid0223 has quit [Quit: Leaving]
reppard has quit [Ping timeout: 265 seconds]
<mercwithamouth>
havenn: ahh i see
<mercwithamouth>
is that how rails handles it...when you call methods as arguments to before_filter, etc?
<ryanf>
pretty much
<ryanf>
there are a couple of other ways you can do it too
<ryanf>
like method(:foo) will return a Method object which you can then call with .call
<mercwithamouth>
oops i mispelled the method as well =P
<mercwithamouth>
nice...i'm just picking one thing and writing/learning as much about it as i can a day...that's why i'm asking all of these questions =P
ShareTextingCEO has joined #ruby
<havenn>
method(:puts)['hi'] or .('hi') or .call('hi') are all valid btw.
<havenn>
(All are just sugar for #call)
ShareTextingCEO has quit [Killed (idoru (Spam is off topic on freenode.))]
<mercwithamouth>
hrmm so for method(:puts)['hi'] ...the ['hi'] portion...would i say you're passing puts an array..that particular string?
<havenn>
I <3 ->!
babykosh has joined #ruby
mneorr has joined #ruby
<havenn>
mercwithamouth: Doesn't mean Array in that sense. An alternate syntax to .call when following a proc or lambda.
beachandbytes has quit [Ping timeout: 250 seconds]
BoomCow has joined #ruby
phelps has joined #ruby
mike-- has joined #ruby
bigkevmcd has joined #ruby
danneu has joined #ruby
h4mz1d has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
phelps has quit [Ping timeout: 276 seconds]
mike-- has quit [Ping timeout: 265 seconds]
nickbuff has joined #ruby
nickbuff has quit [Client Quit]
dr_bob has joined #ruby
ToTo has joined #ruby
phelps has joined #ruby
undecim has joined #ruby
bradhe has joined #ruby
nomenkun has joined #ruby
jaygen has joined #ruby
<undecim>
I think perhaps the guide I'm reading is out of date. Why do I get 'NoMethodError: undefined method `type' for /cat/:Regexp' when I enter '/cat/.type' into irb?
jonathan_ has joined #ruby
rellin has quit [Ping timeout: 260 seconds]
jonathan_ has quit [Client Quit]
mike-- has joined #ruby
<undecim>
(actually, I know it's out of date. It's written for 1.6, and I'm using 1.9)
beilabs_ has joined #ruby
<hoelzro>
undecim: I'm guessing that .type was once a method on Regexp object (or perhaps all objects), but it no longer is
<undecim>
It's supposed to return the type of class. e.g. "Regexp" in this case
<undecim>
How would I do this in 1.9?
<hoelzro>
it's now '.class'
<undecim>
ty
<hoelzro>
but that returns the class object
<hoelzro>
so hopefully that's what you're expecting =)
<undecim>
so .class.to_s if I want to do string-worthy stuff to it, right?
bradhe has quit [Ping timeout: 240 seconds]
mneorr has quit [Remote host closed the connection]
elsifaka has joined #ruby
<hoelzro>
undecim: well, why would you want to do string stuff on it?
<undecim>
Just theoretically. I'm just learning Ruby
<hoelzro>
(and I would use .class.name)
beachandbytes has joined #ruby
phelps has quit [Ping timeout: 255 seconds]
tonini has joined #ruby
danneu has quit [Ping timeout: 255 seconds]
u89 has joined #ruby
nomenkun has quit [Ping timeout: 255 seconds]
hotovson has joined #ruby
sspiff has joined #ruby
banisterfiend has quit [Ping timeout: 252 seconds]
Gooder` has joined #ruby
Gooder has quit [Read error: Connection reset by peer]
Nisstyre-laptop has quit [Ping timeout: 264 seconds]
phelps has joined #ruby
amaya_the has quit [Ping timeout: 250 seconds]
amaya_the has joined #ruby
amaya_the has quit [Client Quit]
kil0byte has joined #ruby
sepp2k has quit [Quit: Leaving.]
Xeago has joined #ruby
answer_42 has quit [Ping timeout: 252 seconds]
marknyc has quit []
u89 has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
banisterfiend has joined #ruby
phelps has quit [Ping timeout: 252 seconds]
blaxter has joined #ruby
h4mz1d has quit [Ping timeout: 240 seconds]
jackdanger has quit [Quit: Leaving.]
jprovazn has joined #ruby
Gooder` has quit [Remote host closed the connection]
phelps has joined #ruby
alup has joined #ruby
pcarrier has quit []
jean has quit [Ping timeout: 264 seconds]
generalissimo has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
dawkirst_ has joined #ruby
bigmac has quit [Remote host closed the connection]
banisterfiend has quit [Ping timeout: 252 seconds]
locriani_ is now known as locriani
ipalaus has quit [Read error: Operation timed out]
jean has joined #ruby
arturaz has quit [Remote host closed the connection]
devdazed has quit [Ping timeout: 276 seconds]
mike-- has quit [Ping timeout: 252 seconds]
devdazed has joined #ruby
zigomir has joined #ruby
phelps has quit [Ping timeout: 276 seconds]
phelps has joined #ruby
Morkel has joined #ruby
jean has quit [Ping timeout: 244 seconds]
phelps has quit [Max SendQ exceeded]
jean has joined #ruby
phelps has joined #ruby
yacks has quit [Ping timeout: 264 seconds]
banisterfiend has joined #ruby
miso1337 has quit [Quit: afk]
rippa has quit [Ping timeout: 240 seconds]
madhatter has joined #ruby
Elhu has joined #ruby
<love_color_text>
hey guys. having a very strange occurrence where two identical hashes are being deemed as not equal to each other in my rspecs on 1.9.3p327 and not in 1.9.3p194
<love_color_text>
they should in fact be equal, and appear to be when i print the contents out... this is the only failing test out of about 300 tests, can't figure out why, did something change?
ipalaus has joined #ruby
<hoelzro>
love_color_text: could you paste some code?
<love_color_text>
k i will
gridaphobe has quit [Ping timeout: 252 seconds]
phelps has quit [Ping timeout: 244 seconds]
adeponte has joined #ruby
Daman has joined #ruby
Daman has quit [Changing host]
Daman has joined #ruby
Daman has quit [Excess Flood]
Daman has joined #ruby
Daman has quit [Changing host]
Daman has joined #ruby
Daman has quit [Excess Flood]
iamjarvo has quit [Quit: Leaving.]
vlad_starkov has quit [Read error: Connection reset by peer]
banisterfiend has quit [Ping timeout: 265 seconds]
phelps has quit [Ping timeout: 264 seconds]
igro has joined #ruby
c0rn has quit []
<kdridi>
i'm trying to fetch a page, with open-uri, the encoding is well detected but i can't access the response headers and with other tools ('net/http' or 'rest_client') i can access the headers but the encoding isn't detected… what should i do ?
Juul has joined #ruby
tps_ has quit [Quit: tps_]
banisterfiend has joined #ruby
pen has quit [Read error: Connection reset by peer]
pen has joined #ruby
phelps has joined #ruby
kapowaz_ is now known as kapowaz
drlaj has joined #ruby
blacktulip has joined #ruby
dmiller_ has quit [Remote host closed the connection]
beachandbytes has quit []
BoomCow has quit [Ping timeout: 265 seconds]
tris has quit [Excess Flood]
u89 has joined #ruby
phelps has quit [Ping timeout: 255 seconds]
dmiller has joined #ruby
vlad_sta_ has quit [Read error: Connection reset by peer]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby
jimeh has joined #ruby
Vert has quit [Remote host closed the connection]
sie has joined #ruby
vlad_sta_ has joined #ruby
<sie>
Why can't ruby parse symbols with question marks without quotes?
<love_color_text>
sie :foo? works as expected for me on 1.9.3
tris has joined #ruby
freeayu has quit [Ping timeout: 255 seconds]
phelps has joined #ruby
tps_ has joined #ruby
<sie>
Oh, it's old ruby's fault. :/
adeponte has quit [Remote host closed the connection]
BiHi has joined #ruby
<sie>
Hmmmmm
jean has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Ping timeout: 264 seconds]
arturaz has joined #ruby
drlaj has quit [Remote host closed the connection]
kil0byte_ has joined #ruby
jean has joined #ruby
mahmoudimus has joined #ruby
nomenkun has joined #ruby
dmiller has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
phelps has quit [Ping timeout: 276 seconds]
vlad_starkov has joined #ruby
Xeago has joined #ruby
phelps has joined #ruby
ChampS666 has joined #ruby
nomenkun_ has joined #ruby
segv- has quit [Quit: segv-]
kil0byte has quit [Ping timeout: 264 seconds]
tps_ has quit [Ping timeout: 260 seconds]
pcarrier has joined #ruby
rohit_ has joined #ruby
adambeynon has joined #ruby
vlad_sta_ has quit [Ping timeout: 264 seconds]
clocKwize has joined #ruby
nomenkun has quit [Ping timeout: 255 seconds]
freeayu has joined #ruby
elaptics`away is now known as elaptics
<sie>
Ah, it was variable names, that couldn't handle the ?. >_<
pcarrier has quit [Ping timeout: 252 seconds]
BoomCow has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
g_bleezy has joined #ruby
pcarrier has joined #ruby
LouisGB has joined #ruby
eka has joined #ruby
aaronmacy has joined #ruby
igro has quit [Quit: Computer has gone to sleep.]
dantesun has quit [Ping timeout: 260 seconds]
aaronmacy has quit [Client Quit]
dantesun has joined #ruby
nickbuff has joined #ruby
bradhe has quit [Remote host closed the connection]
phelps has quit [Ping timeout: 255 seconds]
g_bleezy has quit [Ping timeout: 252 seconds]
igro has joined #ruby
io_syl has quit [Quit: Computer has gone to sleep.]
daniel_hinojosa has quit [Quit: Leaving.]
dankest is now known as dankest|away
L1 has quit [Quit: Quitter]
Vainoharhainen has joined #ruby
kil0byte_ has quit [Ping timeout: 255 seconds]
jean has quit [Read error: Connection reset by peer]
<apeiros_>
BuGo: and your use case is covered by Hash.new with a block
<BuGo>
oh... OKay
<ccooke>
BuGo: the block that apeiros_ gave you does, but setting the default to a value does not.
<apeiros_>
BuGo: also, how deep would you like your default value to be cloned?
<BuGo>
i see
mafolz has joined #ruby
dankest|away has quit [Quit: Leaving...]
<BuGo>
apeiros_: thank you!
<apeiros_>
only the first level? then comes Bugo2 and says "but it doesn't make sense!!!1! I want it all levels down!"
phelps has quit [Ping timeout: 265 seconds]
<BuGo>
i didnt thought about that
banisterfiend has quit [Ping timeout: 252 seconds]
<ccooke>
BuGo: it's a tricky issue
<ccooke>
BuGo: but Ruby does the best and most reliably predicatble thing it can
<apeiros_>
BuGo: also, cloning the default value still wouldn't solve your issue of no key being added to the hash
Takehiro has quit [Remote host closed the connection]
phelps has joined #ruby
<apeiros_>
accessing a key doesn't tell the hash to create that key (and that's *good*, I don't want my hash to suddenly contain a thousand keys just because I accessed inexistent keys)
rdark has joined #ruby
<DefV>
me/5
vlad_starkov has quit [Ping timeout: 265 seconds]
berserkr has joined #ruby
vlad_sta_ has joined #ruby
alee has quit [Ping timeout: 276 seconds]
nemesit has joined #ruby
Slivka has quit [Remote host closed the connection]
timonv has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
phelps has quit [Ping timeout: 276 seconds]
cableray has quit [Quit: cableray]
sn0wb1rd has joined #ruby
ipalaus has joined #ruby
phelps has joined #ruby
richardjapenga has joined #ruby
<BuGo>
apeiros_: thank you once again! hash = Hash.new {|h,n| h[n] = [] }
<BuGo>
this is what i wanted
rohit_ has quit [Ping timeout: 255 seconds]
banisterfiend has joined #ruby
gyre007 has joined #ruby
<apeiros_>
BuGo: another reason to not clone the default value: not all objects can be cloned.
nomenkun has quit [Read error: Connection reset by peer]
<BuGo>
true
<BuGo>
it all makes sense when you explained it
u- has joined #ruby
babonk has quit [Quit: babonk]
nomenkun has joined #ruby
mafolz has quit [Ping timeout: 264 seconds]
<sie>
If I remember my code, then I almost always think it is crappy and I must've done something in an incorrect fashion, is it the same for any of you guys?
kil0byte_ has joined #ruby
maesbn has joined #ruby
<apeiros_>
sie: it's a common feeling amongst coders
JonnieCache has joined #ruby
phelps has quit [Ping timeout: 250 seconds]
dr_bob has quit [Read error: Connection reset by peer]
kil0byte has quit [Ping timeout: 256 seconds]
dr_bob has joined #ruby
cascalheira has joined #ruby
rouss has joined #ruby
nomenkun has quit [Read error: Connection reset by peer]
statarb3 has quit [Quit: Leaving]
rouss is now known as Guest62415
mafolz has joined #ruby
nomenkun has joined #ruby
<burgestrand>
sie: if you didn’t think that you wouldn’t be better at your craft than you were when you wrote it. It’s a good thing.
phelps has joined #ruby
cdt has joined #ruby
elico has joined #ruby
Juul has quit [Ping timeout: 276 seconds]
darthdeus has quit [Quit: Leaving...]
workmad3 has joined #ruby
phelps has quit [Ping timeout: 255 seconds]
Proshot has joined #ruby
EyesIsMine has joined #ruby
Proshot is now known as statarb3
statarb3 has quit [Changing host]
statarb3 has joined #ruby
nomenkun has quit [Read error: Connection reset by peer]
nomenkun has joined #ruby
banisterfiend has quit [Ping timeout: 248 seconds]
phelps has joined #ruby
alee has joined #ruby
artm has quit [Quit: artm]
hoelzro is now known as hoelzro|away
Takehiro has joined #ruby
eph3meral has joined #ruby
artm has joined #ruby
sepp2k has joined #ruby
thisirs has joined #ruby
love_col_ has joined #ruby
nomenkun_ has joined #ruby
locriani_ has joined #ruby
BiHi_ has joined #ruby
Xeago_ has joined #ruby
Xeago_ is now known as xeago_
xeago_ is now known as Xeago_
artm_ has joined #ruby
juarlex_ has joined #ruby
KarlHung1s has joined #ruby
banjara1 has joined #ruby
hibariya_ has joined #ruby
Xeago has quit [Killed (sendak.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
nemesit has quit [Quit: Leaving...]
nkts has joined #ruby
withnale has quit [Excess Flood]
undert has joined #ruby
withnale has joined #ruby
bradhe has joined #ruby
schwap has joined #ruby
new299 has joined #ruby
pdtpatri1k has joined #ruby
pcboy__ has joined #ruby
Nigel_ has joined #ruby
Seventoe1 has joined #ruby
qubit_ has joined #ruby
stigmux has joined #ruby
jhunter_ has joined #ruby
taec has joined #ruby
SJrX has joined #ruby
charlies_ has joined #ruby
taec is now known as Guest84141
ipalaus_ has joined #ruby
brianpWins_ has joined #ruby
xpen has quit [Remote host closed the connection]
diegok has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
vertog has joined #ruby
JoeHazzers_ has joined #ruby
fearoffish_ has joined #ruby
vertog is now known as verto
Some-body_ has joined #ruby
bradhe has quit [Ping timeout: 255 seconds]
verto is now known as Guest29986
artm has quit [*.net *.split]
ipalaus has quit [*.net *.split]
clocKwize has quit [*.net *.split]
Shrink has quit [*.net *.split]
BiHi has quit [*.net *.split]
nomenkun has quit [*.net *.split]
charliesome has quit [*.net *.split]
love_color_text has quit [*.net *.split]
bluehavana has quit [*.net *.split]
dukedave has quit [*.net *.split]
JohnBat26 has quit [*.net *.split]
postmodern has quit [*.net *.split]
gbchaosmaster has quit [*.net *.split]
locriani has quit [*.net *.split]
banjara has quit [*.net *.split]
juarlex has quit [*.net *.split]
undert_ has quit [*.net *.split]
brianpWins has quit [*.net *.split]
jhunter has quit [*.net *.split]
pdtpatrick has quit [*.net *.split]
KarlHungus has quit [*.net *.split]
qubit has quit [*.net *.split]
yewton has quit [*.net *.split]
dpn` has quit [*.net *.split]
SJr has quit [*.net *.split]
schwap_ has quit [*.net *.split]
hibariya has quit [*.net *.split]
cespare has quit [*.net *.split]
Gadgetoid has quit [*.net *.split]
stigmux_ has quit [*.net *.split]
JoeHazzers has quit [*.net *.split]
DarthGandalf has quit [*.net *.split]
verto|off has quit [*.net *.split]
TheMoonMaster has quit [*.net *.split]
Seventoes has quit [*.net *.split]
MissionCritical has quit [*.net *.split]
fearoffish has quit [*.net *.split]
taec_ has quit [*.net *.split]
G has quit [*.net *.split]
new299_ has quit [*.net *.split]
pcboy_ has quit [*.net *.split]
Jelco_ has quit [*.net *.split]
artm_ is now known as artm
brianpWins_ is now known as brianpWins
charlies_ is now known as charliesome
fearoffish_ is now known as fearoffish
Some-body_ is now known as DarthGandalf
roflmaus has joined #ruby
lolmaus has quit [Write error: Connection reset by peer]
yewton has joined #ruby
nomenkun_ has quit [Read error: Connection reset by peer]
gbchaosmaster has joined #ruby
Gadgetoid has joined #ruby
Jelco_ has joined #ruby
nomenkun has joined #ruby
TheMoonMaster_ has joined #ruby
lkba has joined #ruby
cascalheira has quit [Ping timeout: 240 seconds]
igro has quit [Quit: Computer has gone to sleep.]
kil0byte has joined #ruby
clocKwize has joined #ruby
icole has joined #ruby
JohnBat26 has joined #ruby
Shrink has joined #ruby
postmodern has joined #ruby
dukedave has joined #ruby
kil0byte_ has quit [Ping timeout: 240 seconds]
igro has joined #ruby
cespare has joined #ruby
yacks has joined #ruby
shiin has joined #ruby
icole has quit [Remote host closed the connection]
dpn` has joined #ruby
Mission-Critical has joined #ruby
Averna1 has joined #ruby
fyolnish has joined #ruby
elico has quit [Remote host closed the connection]
<Vendethiel>
class H < Hash; def []=(*keys, vals); keys.each_with_index do |v, i|; super(v, vals[i])
<Vendethiel>
something like that :).
jackbrownhf has joined #ruby
jackbrownhf has quit [Changing host]
jackbrownhf has joined #ruby
moos3 has joined #ruby
kpshek has quit []
<JDubs_>
Hey guys: having trouble with this code http://pastie.org/5506640 When I input a word that starts with a vowel, it seems to work fine, if I start with a word that starts with a consonant it doesn't work
<JDubs_>
Any input is welcome :)
undecim has quit [Read error: Connection reset by peer]
undecim has joined #ruby
Takehiro_ has quit [Ping timeout: 264 seconds]
<JDubs_>
Anyone? :(
jackbrownhf has quit [Client Quit]
carlyle has joined #ruby
gmci has joined #ruby
keyvan has quit [Remote host closed the connection]
Takehiro has joined #ruby
gmci is now known as Guest32568
Takehiro has quit [Read error: No buffer space available]
blaxter has joined #ruby
keyvan has joined #ruby
<JDubs_>
Vendethiel: can you help?
<heftig>
JDubs_: what's that supposed to do?
<JDubs_>
it will take in a string, words that start with a vowel will simply append 'ay' to the end of the word
<heftig>
pig latin?
<JDubs_>
if it starts with a consonant, it will break of the break of consonants and move to the end and then append 'ay'
<burgestrand>
JDubs_: no, for your lols, I’m not kidding :p
<burgestrand>
banisterfiend: \o.
<JDubs_>
burgestrand: wow, that's crazy!
nomenkun has quit [Read error: Connection reset by peer]
jackbrownhf has joined #ruby
jackbrownhf has quit [Changing host]
jackbrownhf has joined #ruby
<burgestrand>
banisterfiend: taking a short work break for water refill :)
Goles has quit [Max SendQ exceeded]
<heftig>
JDubs_: "The one who says it cannot be done should never interrupt the one who is doing it.".gsub(/([\w&&[^aeiouAEIOU]]+)(\w*)|(\w+)/, "\\2\\1\\3ay")
<heftig>
does this match what you expect?
<burgestrand>
JDubs_: #python can be a bit uppity about acronyms
nomenkun has joined #ruby
<burgestrand>
that is also hilarious, and worthy of a lol.
Goles has joined #ruby
<banisterfiend>
burgestrand: cool, hey do you work out at the gym?
Goles has quit [Max SendQ exceeded]
<burgestrand>
banisterfiend: naw, I jump around and scream: http://gbg-taido.se/
<JonnieCache>
christ it must be a brilliant idling in there. jesus.
<JDubs_>
heftig: I think it would, but I don't personally feel comfortable using a solution I don't understand. I figured out another solution though
Goles has joined #ruby
<JDubs_>
banisterfiend: bro, do you even lift?
<heftig>
JDubs_: it's not as complicated as it seems. that class matches any word character that's not a vowel (intersection of \w and [^aeiouAEIOU])
Goles has quit [Max SendQ exceeded]
nickbuff has joined #ruby
<burgestrand>
Bahah.
<burgestrand>
or, um, lol.
<banisterfiend>
JDubs_: naw, i just work the elliptical like those middle aged women
Gooder` has quit [Ping timeout: 250 seconds]
Goles has joined #ruby
<heftig>
so with the alternation, it either matches a word beginning with consonants (left side) or any other word (right side)
<heftig>
in the substitution, the first two groups are then swapped
kpshek has quit []
Banistergalaxy has quit [Ping timeout: 265 seconds]
jprovazn has quit [Quit: Leaving]
Goles has quit [Max SendQ exceeded]
leonardorb has quit [Read error: Connection reset by peer]
<JDubs_>
heftig: mind telling me your opinion of the solution I came up with? It seems to work fine, and it's easier to understand
<JonnieCache>
it explains regular expressions for you
Goles has quit [Max SendQ exceeded]
<burgestrand>
nkts: you are documenting an HTTP API?
<nkts>
I have tried rdoc-sinatra, but it's not picking up all post '/foo', etc.
<JonnieCache>
very good for learning. JDubs_ put that regex into that site and things will be mucj clearer
<nkts>
burgestrand, yes
phelps has joined #ruby
<heftig>
JDubs_: of course it does. that's what's making it complex
<heftig>
if I just wanted to add "ay" to every word, I could just do .gsub(/\w+/, "\\&ay")
<JonnieCache>
heftig: according to that explainer site there is a mistake in your regex. maybe its because its using a different regex engine...
<burgestrand>
nkts: I forked the GitHub API docs to document an HTTP API, it’s nicer than any of the other solutions I tried (markdown, rolling my own, etc).
<nkts>
burgestrand, thanks, will have a look. One problem my code is private and I can't upload it
<heftig>
"Question: Is it better to abide by the rules until they're changed or
<heftig>
whoops
<burgestrand>
nkts: the documentation will be free from your code, and the github api compiles statically which frees you from the necessity of publishing it.
<burgestrand>
nkts: you can put the compiled documentation (which becomes just HTML/CSS) anywhere.
_nitti has quit [Remote host closed the connection]
krisfremen has quit [Read error: Connection reset by peer]
krislappy has joined #ruby
<shevy>
sandman I think so
_alejandro has quit [Remote host closed the connection]
freeayu has quit [Remote host closed the connection]
nomenkun has quit [Ping timeout: 264 seconds]
eldariof has quit [Ping timeout: 248 seconds]
Slivka has joined #ruby
kil0byte_ has quit [Remote host closed the connection]
monkegji_ has joined #ruby
TitaniumStudioUs has joined #ruby
io_syl has joined #ruby
Banistergalaxy has quit [Quit: Bye]
Banistergalaxy has joined #ruby
_nitti has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
mpfundstein has joined #ruby
entrenador has joined #ruby
<sandman>
shevy, thx will try some more possibilities.
beiter has joined #ruby
<workmad3>
sandman: it's important to note that the encoding comment will instruct the ruby interpreter to read the source as UTF-8, it doesn't actually make the text UTF-8 encoded
<sandman>
workmad3: I am trying to import some csv files into a database, some of those files use non standard characters and then I get the "SyntaxError: encoding_1.rb:1: invalid multibyte char (US-ASCII)" error.
SoonerBourne has joined #ruby
<workmad3>
sandman: source encoding is also not the same as the character encoding for reading in files
<workmad3>
sandman: you need to be setting what the encoding of the file input streams is
<workmad3>
woo, ruby encoding links :D
* csmrfx
throws a little encoding blog link spaghetti meatball on the chan wall
gbchaosmaster has joined #ruby
<sandman>
csmrfx: Thx, will read them
<workmad3>
mmm, spaghetti and meatballs
samphippen has joined #ruby
dantesun has quit [Ping timeout: 259 seconds]
cconstantine has quit [Ping timeout: 264 seconds]
<sandman>
workmad3, Ok, I will try to figger out what encoding the input files are. Thx.
pcarrier has quit []
dantesun has joined #ruby
monkegji_ has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
flip_digits has joined #ruby
artm has quit [Quit: artm]
Virunga has quit [Remote host closed the connection]
gdoko has joined #ruby
gdoko has left #ruby ["Leaving"]
_nitti has quit [Remote host closed the connection]
techhelp has joined #ruby
Goopyo has joined #ruby
zigomir has quit [Quit: zigomir]
<Goopyo>
hey does anyone mind code reviewing a ruby rest client I wrote? It's pretty short but its the first an only ruby script I've written so it needs to be looked at
<Goopyo>
I'd like to share it privately though since I haven't launched yet
thatguycraig has joined #ruby
<sie>
Who cares whether you've launched or not.
<sie>
Just send it to everyone.
<sie>
Hopefully someone will look at it.
<sie>
This audience is small enough.
rellin has joined #ruby
mpereira has quit [Ping timeout: 259 seconds]
DanBoy has joined #ruby
Goopyo has quit [Quit: Goopyo]
haxrbyte has quit [Read error: Connection reset by peer]
Goopyo has joined #ruby
<Goopyo>
sorry disconnected
<Goopyo>
still interested if anyone can help me out
generalissimo has quit [Remote host closed the connection]
burgestrand has quit [Quit: Leaving.]
pavilionXP has quit [Read error: Connection reset by peer]
moshef has joined #ruby
atal421 has joined #ruby
<moshef>
hi guys, I'm just upgrading to ruby 1.9.3 and I see that __method__ returns something else, is there a way to get the old functionality back? there is another method for that?
lord4163 has joined #ruby
adac has quit [Remote host closed the connection]
<lord4163>
Hi
<foucist>
Goopyo: i'll take a look but i can't promise good feedback
leonardorb has quit [Ping timeout: 240 seconds]
<lord4163>
If I execute script/plugin install git://github.com/dougal/daemon_generator.git nothing happends
niklasb has quit [Ping timeout: 248 seconds]
Roa has quit [Ping timeout: 256 seconds]
pu22l3r_ has quit [Remote host closed the connection]
leonardorb has joined #ruby
<Goopyo>
foucist: cool ill pm you
a_a_g has joined #ruby
Jasko2 has joined #ruby
mildfate has quit [Quit: Leaving.]
Roa has joined #ruby
Roa has quit [Changing host]
Roa has joined #ruby
bradhe has joined #ruby
<sie>
Goopyo, me too
<Goopyo>
thanks ill send it to both of you
<Goopyo>
one sec pasting
arturaz has quit [Ping timeout: 240 seconds]
bradhe has quit [Remote host closed the connection]
supergiantrobot has quit [Quit: supergiantrobot]
<Xeago>
lord4163: I don't know what you are doing but script/plugin looks like rails 2
<lord4163>
I want to make a daemon
<Xeago>
are you using rails 2?
<JonnieCache>
a big fuck you going out to the person who wrote mysqldump and decided to give it a totally different CLI syntax from the mysql bin
<JonnieCache>
sorry just had to get that out there
bradhe has joined #ruby
niklasb has joined #ruby
Jasko has quit [Ping timeout: 256 seconds]
<JonnieCache>
i almost just lost a load of client data
<Xeago>
Oh JonnieCache, I know how you feel right now :)
tps_ has joined #ruby
_nitti has joined #ruby
rippa has joined #ruby
<Xeago>
ouch, that must've given some adrenaline :\
ikaros has quit [Quit: Ex-Chat]
babykosh has joined #ruby
mikecmpbll has joined #ruby
<JonnieCache>
`mysql -d foo` means "use the database foo" whereas `mysqldump -d foo` means "dump the database foo SKIPPING ALL THE DATA" as -d is short for --no-data
<JonnieCache>
FUUUUCK YOU!
carloslopes has joined #ruby
mneorr has joined #ruby
havenn has quit [Read error: Connection reset by peer]
<JonnieCache>
fortunately i had another dump
<sandman>
probably written by another team....
havenn has joined #ruby
<foucist>
JonnieCache: protip, don't use -d at all (you don't need it for mysql)
<JonnieCache>
thanks, will do that in future
<foucist>
mysql -h blah -u blah -ppassword foo
Coolhand has quit [Read error: Operation timed out]
havenn has quit [Read error: No route to host]
<JonnieCache>
foucist: i kinda need to because i was piping sql into it from cat
<JonnieCache>
and i dont think that sql necessariy had `USE foo` or whatever at the top
<foucist>
mysql -h blah -u blah -ppassword foo < dump.sql always worked fine for me
<JonnieCache>
fucking mysql
<Xeago>
JonnieCache: postgresql in compat mode works good for us here
<JonnieCache>
all the new projects are 100% postgres
<workmad3>
what? people generate mysql dumps without using phpmyadmin?!!!
mpereira has joined #ruby
<JonnieCache>
phpmyadmin == fail;
* workmad3
hides
<JonnieCache>
although its probably less fail than what i just did
chanced has quit [Remote host closed the connection]
Coolhand has joined #ruby
<workmad3>
JonnieCache: :D
Coolhand_ has joined #ruby
<JonnieCache>
tbh ive seen too many servers rooted through phpmyadmin to ever want to get near it
<Xeago>
anyone experience with tdu?
gbchaosmaster has quit [Ping timeout: 248 seconds]
pcarrier has joined #ruby
igro has quit [Quit: Computer has gone to sleep.]
mafolz has quit [Quit: mafolz]
igro has joined #ruby
pu22l3r_ has joined #ruby
willob has joined #ruby
banisterfiend has quit [Remote host closed the connection]
Coolhand_ has quit [Remote host closed the connection]
_alejandro has joined #ruby
Coolhand has quit [Remote host closed the connection]
schaary has joined #ruby
chussenot has quit [Remote host closed the connection]
Coolhand has joined #ruby
chussenot has joined #ruby
havenn has joined #ruby
generalissimo has joined #ruby
Banistergalaxy has quit [Read error: Connection reset by peer]
kirun_ has quit [Ping timeout: 248 seconds]
pcarrier has quit [Ping timeout: 252 seconds]
xclite has joined #ruby
berserkr has joined #ruby
heftig has joined #ruby
ckrailo has joined #ruby
<JDubs_>
okay, i did /in/ for a regex, but how do I make it only match the word "in" without matching things like "inside"?
pcarrier has joined #ruby
<hoelzro>
JDubs_: /in\b/ should do it
maesbn has quit [Remote host closed the connection]
tatum_O_o has joined #ruby
<JDubs_>
what does the \b mean?
<JonnieCache>
word boundry
<hoelzro>
"boundary" would be my guess
<JDubs_>
okay and how do i add that to a large regex, eg /a|b|c|d/ ?
<JonnieCache>
you didnt print out that pdf i linked did you? ;)
<JDubs_>
JonnieCache: I saved it to go through later :)
<JonnieCache>
the point is you print it out so when you have question like "what does \b do" you can look at it
_nitti has quit [Remote host closed the connection]
<JonnieCache>
for me i find looking at things on paper forces your brain to pay special attention and its easier to rmember stuff
bairui has quit [Ping timeout: 255 seconds]
gbchaosmaster has joined #ruby
fire has joined #ruby
thatguycraig has left #ruby [#ruby]
thatguycraig has joined #ruby
aganov has quit [Quit: aganov]
cakehero has quit [Quit: Leaving...]
nerd has quit [Ping timeout: 252 seconds]
richardjapenga has quit [Quit: Leaving]
<shevy>
JDubs_ put that cheat sheet next to your monitor
<Joost>
I used 'gem install task juggler', but how do I start the tool?
heftig has quit [Quit: leaving]
<csmrfx>
probably require that gem in your app
<JDubs_>
shevy: yeah i can't use the netheftig: start of a string
ddd has quit [Client Quit]
<JDubs_>
oops
<JDubs_>
lol
<JDubs_>
heftig: start of a string
<csmrfx>
Joost: you really should google ruby gems tutorial?
<Joost>
I guess
ddd has joined #ruby
<csmrfx>
Joost: also google ruby require
<csmrfx>
;)
tjbiddle_ has quit [Ping timeout: 240 seconds]
thatguycraig has left #ruby [#ruby]
<Joost>
I'm just trying to start a tool I supposedly installed
hoelzro is now known as hoelzro|away
thatguycraig has joined #ruby
rcvalle has joined #ruby
cableray has joined #ruby
<JDubs_>
Looking for a critique of my implementation for a book class please: http://pastie.org/5507165
<JDubs_>
want to improve my coding formatting and methodology
<JDubs_>
:)
madhadron has joined #ruby
<madhadron>
Does anyone know the equivalent of setUpClass and tearDownClass from Python in Ruby's test/unit library?
<madhadron>
(Or where in the documentation I should be looking to find it...)
tatum_O_o has quit [Remote host closed the connection]
heftig has joined #ruby
moshef has quit [Quit: moshef]
alvaro_o has joined #ruby
nateberkopec has joined #ruby
<foucist>
JDubs_: that's quite the word.match, if you think it's gonna get more complicated, you might want to stick the regexp in a separate method/spot
artm has joined #ruby
<csmrfx>
JDubs_: imo your style is just fine
BigO has joined #ruby
<csmrfx>
JDubs_: I would perhaps attempt to "parametrize" the noncapped words/article-words, but thats already micromanaging since the code is still rather short
_nitti has joined #ruby
<csmrfx>
Then again - given a book class I wouldn't format any input until output
<csmrfx>
but perhaps you have some reason for that
banisterfiend has joined #ruby
Takehiro has joined #ruby
_alejandro has quit [Remote host closed the connection]
cousine has joined #ruby
niklasb has quit [Ping timeout: 240 seconds]
lkba has joined #ruby
Hanmac has quit [Quit: Leaving.]
pkeni has joined #ruby
Hanmac has joined #ruby
rakl has quit [Quit: sleeping]
vd0 has joined #ruby
pavilionXP has joined #ruby
<JDubs_>
csmrfx: what do you mean parametrize?
Nimsical has joined #ruby
<csmrfx>
Meaning the values tested are presented in separate place from where the logic for their use is presented in your code (-files)
<csmrfx>
for example, you might have the variable non_capitalizable_words with array of those words
<csmrfx>
declare that in library_config.rb even!
nemesit has joined #ruby
<JDubs_>
i see
<JDubs_>
and then maybe do an include? to see if the word im checking is in the array?
<JDubs_>
or match or whatever
<JDubs_>
lol
<csmrfx>
Just for convinience when you have a real app with multiple files and hundreds or thousands of lines of logic code
<csmrfx>
then you only need to open the config, instead of browsing through all the logic
<JDubs_>
awesome
<csmrfx>
but I dont think your example is that complex
samphippen has quit [Quit: Computer has gone to sleep.]
dash_ has quit [Ping timeout: 252 seconds]
statarb3 has quit [Ping timeout: 240 seconds]
<JDubs_>
any idea why this code won't work: "%2d:%2d:%2d" % hours, minutes, seconds
<csmrfx>
Ruby has pretty crazy facilities for parametrizing all kinds of aspects of regexii
statarb3 has joined #ruby
<csmrfx>
ah well gotta get back to work
leonard__ has joined #ruby
kpshek has joined #ruby
gregorg has joined #ruby
gregorg has quit [Changing host]
gregorg has joined #ruby
Banistergalaxy has joined #ruby
leonardorb has quit [Ping timeout: 264 seconds]
jeffreybaird has quit [Ping timeout: 255 seconds]
Mahar has joined #ruby
pu22l3r_ has quit [Remote host closed the connection]
<Joost>
What's the default gempath when it's not /usr/local/rubygems ?
<Joost>
I'm trying to find where my gems are installed,so I can use them :p
<JonnieCache>
Joost: `gem env` will answer all your problems
bbttxu has quit [Ping timeout: 252 seconds]
<Joost>
awesome
<Joost>
thanks
Mahar has left #ruby [#ruby]
dnyy has joined #ruby
samphippen has joined #ruby
mpfundstein has quit [Remote host closed the connection]
larissa has quit [Quit: Leaving]
Xeago has quit [Read error: Operation timed out]
quest88 has quit [Quit: quest88]
flyinprogramer has joined #ruby
Takehiro has quit [Remote host closed the connection]
FredLe has quit [Quit: Leaving.]
davidcelis has joined #ruby
roflmaus has quit []
ejholmes has quit [Quit: ejholmes]
drlaj has quit [Remote host closed the connection]
darthdeus has joined #ruby
SoonerBourne has quit [Read error: Connection reset by peer]
olrrai has joined #ruby
jackbrownhf has joined #ruby
jackbrownhf has quit [Changing host]
jackbrownhf has joined #ruby
<flyinprogramer>
so.. i'm clearly an idiot… but lets say i have a an object Dog, and he has a name, and an id; i'm trying to do JSON.genereate on an array of dogs; so naturally i thought it to be wise to do append a to_h method to dog, defined as {name: @name, id: @id} -- but when i do JSON.generate on the array, i the name an id are double escaped -- how do i make it stop doing this ?
SoonerBourne has joined #ruby
berserkr has quit [Ping timeout: 264 seconds]
Takehiro has joined #ruby
drlaj has joined #ruby
<flyinprogramer>
or what's the best way to json-ify an array of dogs ?
Joost has quit [Quit: Joost]
skoodge has joined #ruby
mneorr has joined #ruby
darthdeu has joined #ruby
scruple has joined #ruby
schaary has quit [Quit: Leaving.]
gbchaosmaster has quit [Ping timeout: 265 seconds]
darthdeus has quit [Ping timeout: 259 seconds]
blazes816 has joined #ruby
cableray has quit [Ping timeout: 255 seconds]
icole has joined #ruby
timonv has quit [Remote host closed the connection]
lolcathost has quit [Remote host closed the connection]
maletor has joined #ruby
Mon_Ouie has joined #ruby
lolcathost has joined #ruby
<csmrfx>
flyinprogramer: use module JSON?
<flyinprogramer>
i am...
<csmrfx>
dump
igro has quit [Quit: Computer has gone to sleep.]
<csmrfx>
or, just use a string for one off
skoodge has left #ruby [#ruby]
<flyinprogramer>
csmrfx: ok - hold on
bbttxu has joined #ruby
lolcathost has quit [Client Quit]
lolcathost has joined #ruby
lolcathost has quit [Client Quit]
haxrbyte has joined #ruby
niklasb has joined #ruby
haxrbyte_ has joined #ruby
baroquebobcat has joined #ruby
jrajav has quit [Quit: I tend to be neutral about apples]
* csmrfx
holds on franticly
mmitchell has joined #ruby
sn0wb1rd has quit [Quit: sn0wb1rd]
TitaniumStudioUs has quit [Quit: This computer has gone to sleep]
<lord4163>
I got the permissions on a+rwx on each file
<flyinprogramer>
#<Dog:0x007fa8790dcae0>
<flyinprogramer>
#<Dog:0x007fa8790dca68>
hola123 has joined #ruby
hola123 is now known as arkiver
Vert has joined #ruby
mahmoudimus has joined #ruby
leonard__ has quit [Ping timeout: 240 seconds]
<flyinprogramer>
csmrfx: so obviously it's not doing what i claimed… but how would i get that do display json something like: {"dogs": [{name: test, id: 123},{name:test, id: 123}]} //ignore my missing double quotes
cousine has quit [Remote host closed the connection]
bakis has quit [Ping timeout: 240 seconds]
drlaj has quit [Remote host closed the connection]
jenrzzz has joined #ruby
Adget has joined #ruby
bakis has joined #ruby
bakis is now known as Guest10137
babonk has joined #ruby
babonk has quit [Changing host]
babonk has joined #ruby
jackbrownhf has joined #ruby
jackbrownhf has quit [Changing host]
jackbrownhf has joined #ruby
dkullmann is now known as cakehero
Slivka has quit [Read error: Connection reset by peer]
Virunga has joined #ruby
<csmrfx>
flyinprogramer: ok, so you have ruby Dog -class instances
<csmrfx>
flyinprogramer: are you aware of what JSON really is?
<flyinprogramer>
csmrfx: i'm going to play stupid and say nope
drlaj has joined #ruby
nat2610 has joined #ruby
huoxito has joined #ruby
<flyinprogramer>
csmrfx: just in i missed something, not to be a jerk
Fretta has joined #ruby
<flyinprogramer>
**in case
alanp has quit [Ping timeout: 240 seconds]
alanp_ has joined #ruby
nazty has quit [Quit: Leaving]
Joost has joined #ruby
<rcvalle>
Hi, is it possible to get an reference to the current binding and, thus, change its contents. For example, for each call to Kernel#binding I receive a different binding object, passing it to a method that modifies its contents, such as creating a variable doesn't really change the current binding and I can't reference the newly created variable after calling this method in the current binding
swarley-freenode has joined #ruby
punkrawkR^Home has quit [Ping timeout: 248 seconds]
punkrawkR^Home has joined #ruby
<rcvalle>
Is there a way to get a reference to the current binding and change its contents?
remi has joined #ruby
remi has quit [Changing host]
remi has joined #ruby
rakl has joined #ruby
fire has quit [Quit: WeeChat 0.3.9.2]
TheMoonMaster_ is now known as TheMoonMaster
Elhu has quit [Quit: Computer has gone to sleep.]
<csmrfx>
flyinprogramer: what I am trying to point to, or ask about, is do you realize how JSON treats ruby classes?
<flyinprogramer>
nope
<csmrfx>
flyinprogramer: and the trivial answer to your q is, put the dog objs as a value in a has with the key "dogs"
<csmrfx>
flyinprogramer: since you dont know how a custom ruby class gets converted into JSON, that is your next mission
rhys has joined #ruby
<csmrfx>
until you know you can not be successful with JSON
<workmad3>
got to use hashrockets for stringy keys
<workmad3>
>> require 'json'; puts JSON.dump({"who let the dogs out" => ["wof", "wuf", "wuf"]})
<eval-in>
workmad3: Output: "{\"who let the dogs out\":[\"wof\",\"wuf\",\"wuf\"]}\n" (http://eval.in/4393)
<csmrfx>
Nevr evr! use irb before irc exampul
<csmrfx>
8)
rellin has quit [Ping timeout: 255 seconds]
<csmrfx>
thanks workmad3
nfisher has quit [Quit: Good night]
ryanlecompte has joined #ruby
h4mz1d has joined #ruby
artm has joined #ruby
davidcelis has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
realniko_ has quit [Ping timeout: 255 seconds]
_nitti has quit [Remote host closed the connection]
pewter_tao has joined #ruby
pewter_tao has left #ruby [#ruby]
pewter_tao has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
Proshot has joined #ruby
sn0wb1rd has joined #ruby
atal421 has joined #ruby
iaj has quit [Ping timeout: 256 seconds]
havenn has quit [Remote host closed the connection]
joeycarmello has joined #ruby
k610 has joined #ruby
joeycarmello has quit [Remote host closed the connection]
swarley-freenode has quit [Ping timeout: 245 seconds]
clj_newb has joined #ruby
cezar has quit [Ping timeout: 260 seconds]
TitaniumStudioUs has joined #ruby
statarb3 has quit [Ping timeout: 265 seconds]
joeycarmello has joined #ruby
Proshot is now known as statarb3
babonk has quit [Quit: babonk]
statarb3 has quit [Changing host]
statarb3 has joined #ruby
icole has quit [Remote host closed the connection]
ExxKA has joined #ruby
reppard has quit [Ping timeout: 265 seconds]
friskd_ has joined #ruby
banjara1 has quit [Quit: Leaving.]
Vainoharhainen has quit [Quit: Leaving...]
friskd has quit [Ping timeout: 255 seconds]
friskd_ is now known as friskd
h4mz1d has quit [Ping timeout: 240 seconds]
ephemerian has quit [Quit: Leaving.]
headius has joined #ruby
GoGoGarrett has quit [Remote host closed the connection]
nwertman has joined #ruby
<csmrfx>
hey headius
<headius>
hello there
<csmrfx>
anything new on the jruby front during last 10 months or so?
<headius>
heh :)
<headius>
yeah, a few things
iaj has joined #ruby
<csmrfx>
kewl kewl
leonardorb has quit [Read error: Connection reset by peer]
leonardo_ has joined #ruby
<csmrfx>
must have been jan since I last got to jreubeyns around
<shevy>
jsex is new!
haxrbyte_ has quit [Ping timeout: 240 seconds]
nkts has quit [Quit: Leaving]
arkiver has quit [Ping timeout: 252 seconds]
<babykosh>
simple question here…how to say…"select keys as k"…..hash.select{|k,v|}.keys….??
leonardo_ has quit [Client Quit]
BiHi_ has quit [Quit: Computer has gone to sleep]
<banisterfiend>
babykosh: ?
<banisterfiend>
babykosh: hash.keys ?
<csmrfx>
babykosh: sorry I dont grok
mildfate has joined #ruby
slainer68 has quit [Remote host closed the connection]
vd0 has quit [Remote host closed the connection]
<eka>
csmrfx: define grok
<pewter_tao>
hey guys, I want to run ruby -c filename recursively through directories... It obviously has issues on non-ruby files. What's a good way to do this?
Solnse has joined #ruby
<babykosh>
ah…trying to extract keys from hash…so I can do 'for each key….do'
<csmrfx>
understand, capische, cognize, get
tvw has quit [Remote host closed the connection]
<banisterfiend>
babykosh: hash.each_key
<csmrfx>
babykosh: you could just use the enumerator
<csmrfx>
pewter_tao: use bash to filter out all non rb's?
<babykosh>
ah got it…stayed up too late last night…brain slow now
Bidness has quit [Remote host closed the connection]
dangerousdave has joined #ruby
<csmrfx>
workmad3 eka I just talk jive with some old dudes who used to say grok
<csmrfx>
always thought it was same as "get it"
<eka>
csmrfx: how old are you?
<pewter_tao>
csmrfx: just by filename, or for the first line of the file...? (which would be #!/usr/bin/ruby)
<csmrfx>
eka: middle ages
sepp2k has quit [Remote host closed the connection]
krislappy is now known as krisfremen
<eka>
lol
havenn has joined #ruby
<workmad3>
csmrfx: that's how it tends to be used :)
<csmrfx>
pewter_tao: I mean something like using find ('find /tgtdir/ -type f -name *.rb -exec ruby -flags {} \;
<csmrfx>
' or just plain old 'ruby -flags tgdir/**.rb')
<workmad3>
csmrfx: you should read 'Stranger in a strange land' though... that's where it came from and it'll help you grok why grok is so much more than simply 'getting it' :)
artm has quit [Quit: artm]
banjara has joined #ruby
drlaj has quit [Ping timeout: 240 seconds]
<csmrfx>
workmad3: hey, didn't know that
<pewter_tao>
csmrfx: ok, yeah I'll run ruby -c on all files in subdirs, and give outputs
lrz has joined #ruby
chussenot has quit [Quit: chussenot]
<csmrfx>
hehe I wonder what ruby tgtdir/**.rb >> sumfile.txt would do
<pewter_tao>
csmrfx: just looking for the most robust way
<csmrfx>
** dies if there are more than 64k files I think
daniel_hinojosa has joined #ruby
<csmrfx>
in bash.
<csmrfx>
Or maybe it was 48k or 32k files.
<pewter_tao>
csmrfx: yeah, this ruby script will check syntax of all ruby & bash files
<csmrfx>
So, most robust in bash would be using find, definately.
<JDubs_>
Hey guys, how do I search a hash and pull out key value pairs that match a string?
<csmrfx>
Then again, if you are certain theres only going to be few hundred or less, **.rb is just fine
vivien_ has joined #ruby
<JDubs_>
using a prefix only
<JDubs_>
btw
rakuN has joined #ruby
<csmrfx>
JDubs_: peek into ri Hash.each_pair
Aiur has joined #ruby
<pewter_tao>
csmrfx: why two astrisks before file extension?
vivien_ has quit [Remote host closed the connection]
<csmrfx>
two asterisks goes all the way
<pewter_tao>
hmmm, I hope all ruby files will have the extension
vivien_ has joined #ruby
<csmrfx>
single asterisk only looks at this directory
<pewter_tao>
all way down from current dir
<pewter_tao>
cool :
<pewter_tao>
)
k610 has quit [Ping timeout: 252 seconds]
<csmrfx>
Ok, time to go home
<csmrfx>
8)
<JDubs_>
@csmrfx is the best way just to do a hash.each and then use an include? to see if the string is a part of the current key?
tjbiddle has quit [Ping timeout: 240 seconds]
<csmrfx>
Depends, if you want to check key, value, both, use a block perhaps, or what
daniel_hinojosa has quit [Read error: No route to host]
hackerdude has joined #ruby
dash_ has quit [Ping timeout: 252 seconds]
daniel_hinojosa has joined #ruby
<JDubs_>
csmrfx i just want to check the key: for instance I could search "Pre" and it would pull keys that said "Prehistoric" "Prefixes" etc
bapa has quit [Read error: Connection reset by peer]
<JDubs_>
would i just hash.each and then k.include?(/pre\b/)?
<csmrfx>
JDubs_: perhaps you want ri Hash.select - gives you both and returns a nice collection
<JDubs_>
ooo
mrsolo has joined #ruby
<csmrfx>
anyway, I'm off to the bus stop
<csmrfx>
ta!
freakazoid0223 has quit [Quit: Leaving]
bapa has joined #ruby
arturaz has joined #ruby
cdt has quit [Ping timeout: 240 seconds]
itchyouch has joined #ruby
mascool has joined #ruby
ryanf has quit [Quit: leaving]
a_a_g has quit [Quit: Leaving.]
jackbrownhf has quit [Quit: Sto andando via]
whowantstolivef1 has joined #ruby
whowantstolivef1 has quit [Read error: Connection reset by peer]
whowantstolivef1 has joined #ruby
froy has joined #ruby
Slivka has joined #ruby
dash_ has joined #ruby
Slivka has quit [Max SendQ exceeded]
_nitti_ has joined #ruby
Slivka has joined #ruby
Diger_s has joined #ruby
bradleyprice has joined #ruby
mmitchell has quit [Read error: Connection reset by peer]
mmitchell has joined #ruby
tjbiddle has joined #ruby
mildfate has quit [Quit: Leaving.]
<pewter_tao>
to syntax check bash with ruby would you just call "bash -n filename" from ruby?
<pewter_tao>
or can ruby do it natively?
workmad3 has quit [Ping timeout: 264 seconds]
Coolhand has quit [Remote host closed the connection]
darthdeu has quit [Read error: Connection reset by peer]
darthdeus has joined #ruby
ejholmes has joined #ruby
Aiur has quit [Quit: Computer has gone to sleep.]
darthdeus has quit [Read error: Connection reset by peer]
tommyvyo has joined #ruby
blaxter has quit [Quit: foo]
arietis has joined #ruby
rakl has quit [Read error: Connection reset by peer]
sarmiena_ has joined #ruby
philcrissman has quit [Remote host closed the connection]
<sarmiena_>
I'm retrieving an email from Gmail & trying to extract the body. I noticed that it has been encoded using Quoted-Printable… so I am using String#unpack
<sarmiena_>
the problem is that unpack is returning nothing but a couple of dashes "--"
lrz has left #ruby [#ruby]
<Mon_Ouie>
pewter_tao: I would shell out to do that. Writing a shell parser in ruby would be a lot of work.
bairui has joined #ruby
Aiur has joined #ruby
_nitti_ has quit [Ping timeout: 264 seconds]
headius has quit [Quit: headius]
<pewter_tao>
Mon_Ouie: because 'bash -n' can do it
elsifaka has quit [Quit: Veloma e!]
philomory has joined #ruby
clj_newb has quit [Ping timeout: 250 seconds]
<pewter_tao>
So I'll basically be running bash -n and ruby -c on every file...
gridaphobe has joined #ruby
babonk has joined #ruby
babonk has quit [Changing host]
babonk has joined #ruby
stkowski has joined #ruby
whowantstolivef1 has quit [Read error: No buffer space available]
EyesIsMine has quit [Remote host closed the connection]
icole has joined #ruby
whowantstolivef1 has joined #ruby
ExxKA has quit [Quit: This computer has gone to sleep]
rakl has joined #ruby
reppard has joined #ruby
Takehiro has quit [Remote host closed the connection]
babonk has left #ruby [#ruby]
vlad_starkov has joined #ruby
shiin has quit [Quit: Computer has gone to sleep.]
techhelp has quit [Quit: This computer has gone to sleep]
haxrbyte has joined #ruby
tcurdt has quit [Quit: Computer has gone to sleep.]
Russell^^ has joined #ruby
Andr0_ has joined #ruby
emmanuelux has joined #ruby
browndawg has quit [Quit: Leaving.]
bapa has quit [Remote host closed the connection]
bricker has joined #ruby
Zolrath has quit []
noric has joined #ruby
L1 has joined #ruby
L1 has quit [Changing host]
L1 has joined #ruby
bapa has joined #ruby
headius has joined #ruby
nga4 has joined #ruby
c0rn has joined #ruby
reppard has quit [Ping timeout: 256 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_sta_ has joined #ruby
darthdeus has joined #ruby
dash_ has quit [Ping timeout: 250 seconds]
yaymukund has quit [Ping timeout: 240 seconds]
swarley-freenode has joined #ruby
jekotia has joined #ruby
maletor has quit [Ping timeout: 240 seconds]
Shadow_S has joined #ruby
elux has joined #ruby
fred909 has joined #ruby
maletor has joined #ruby
codecaster has joined #ruby
pu22l3r_ has joined #ruby
Roa has quit [Ping timeout: 264 seconds]
pettsson has joined #ruby
Roa has joined #ruby
Roa has quit [Changing host]
Roa has joined #ruby
atal421 has quit [Read error: Connection reset by peer]
<JDubs_>
I dont know how to do either of those things
<JDubs_>
:(
ewokchewy has joined #ruby
<JDubs_>
How do I see if it's a miscall?
<madhadron>
Okay, you run ruby -d script.rb
squidBits has quit [Read error: Connection reset by peer]
<madhadron>
And start stepping through, printing the value of variables as you go
chimkan_ has joined #ruby
squidBits has joined #ruby
<madhadron>
You can also just stick a puts of the class in the statement
Appineer has joined #ruby
<madhadron>
So before the split, add "puts "#{entry.class}"
pu22l3r_ has quit [Ping timeout: 260 seconds]
pu22l3r__ has joined #ruby
<pewter_tao>
hey guys I'm trying to run syntax checks on lots of ruby files using ruby -c, but it outputs errors if it is run on non-ruby files. How can I check for '#!/usr/bin/ruby' at the beginning of every file.
* csmrfx
rides the ruby red bua
<csmrfx>
*bus
postmodern has joined #ruby
<madhadron>
pewter_tao, You could always use ls *.rb, or grep -L
<madhadron>
grep -L prints only the filename of the matched file
Zai00 has quit [Quit: Zai00]
<csmrfx>
naw
<csmrfx>
better use find
bbttxu has quit [Quit: bbttxu]
<madhadron>
csmrfx, Yes, true. Better to use find.
<madhadron>
If you're writing a script, definitely use find. If, like me, you can't remember all its arguments, just hack a pipe together.
<csmrfx>
I already pasted a fd
<csmrfx>
*find
rezzack has joined #ruby
carloslopes has quit [Remote host closed the connection]
* csmrfx
last projex hav 100s of k's of files so only find works
philcrissman has joined #ruby
undecim has quit [Remote host closed the connection]
<madhadron>
csmrfx: Gak.
mercwithamouth has quit [Ping timeout: 252 seconds]
<csmrfx>
pewter_tao: test with ruby if first line is that?
<madhadron>
csmrfx: Does your ls or grep seriously have a size limit?
<pewter_tao>
madhadron: not all of the ruby files have .rb, I think - so I'm checking for both .rb and the #! line
<csmrfx>
madhadron: yes
<pewter_tao>
to qualify it as a ruby file before I run ruby -c on it
tjbiddle_ has joined #ruby
<csmrfx>
madhadron: bash * is limited by inode size of your fs
<pewter_tao>
csmrfx: yeah I realized I want to check for the #! at the beginning of the file AND .rb as an extension to qualify it as a ruby file.
<madhadron>
csmrfx: Ah, right.
<csmrfx>
32k/48k/64k files, give it more and it dies
<pewter_tao>
I only need a few thousand
grzywacz has quit [Ping timeout: 264 seconds]
pcarrier has quit []
<csmrfx>
pewter_tao: well, whatabout python and bash files with crynchbanf
* madhadron
being newly arrived from other languages is slightly appalled at such numbers of source files.
<csmrfx>
madhadron: not source, data
carloslopes has joined #ruby
<madhadron>
csmrfx: Ah, okay. That kind of thing happens, unfortunately.
daniel_hinojosa has quit [Ping timeout: 265 seconds]
jrist is now known as jrist-afk
friskd has quit [Quit: friskd]
<pewter_tao>
csmrfx: crynchbang?
<csmrfx>
crunchbang == #!
pkeni has quit [Remote host closed the connection]
tjbiddle has quit [Ping timeout: 240 seconds]
tjbiddle_ is now known as tjbiddle
<madhadron>
csmrfx: Usually it means that priority #1 should be better data curation.
flip_digits has quit [Read error: Connection reset by peer]
<csmrfx>
find can exec a command and give it the filepath as argument
<csmrfx>
I wonder if ri ARGV exists
fayimora has joined #ruby
<csmrfx>
ARGF
xcvd`` has joined #ruby
<csmrfx>
no, seriously ri ARGF
jlwestsr has quit [Quit: Ex-Chat]
fcj has quit [Client Quit]
dr_bob has joined #ruby
beneggett has joined #ruby
qubit_ is now known as qubit
fayimora has quit [Client Quit]
mgates has joined #ruby
<csmrfx>
not that I've ever used ARGF.read personally - but that might be the ticket
ikaros has joined #ruby
jeffsmykil1 has joined #ruby
king313 has joined #ruby
king313 has joined #ruby
king313 has quit [Changing host]
foxtrot101 has joined #ruby
jslowe has quit [Ping timeout: 264 seconds]
pen has quit [Remote host closed the connection]
<jeffsmykil1>
I have an issue where I am outputting this date/time Mon Dec 10 09:00:00 -0500 2012 but IE browsers don't like the -0500, is there a way to format the same thing so it says EST instead?
elaptics is now known as elaptics`away
remi has quit [Quit: Lost terminal]
<csmrfx>
pewter_tao: what are you writing anyhow?
mgates has left #ruby [#ruby]
<pewter_tao>
something that 1) recursively checks if a file has a #!/usr/bin/ruby line OR if it has a .rb extension 2) if so checks its syntax (using ruby -c)
mildfate has quit [Quit: Leaving.]
dreinull has joined #ruby
<csmrfx>
so its a some kind of build thing?
<pewter_tao>
a test thing
<csmrfx>
if you gonna do both you wont need find
sarmiena_ has quit [Quit: sarmiena_]
jackbrownhf has quit [Quit: Sto andando via]
pu22l3r_ has joined #ruby
<csmrfx>
just ruby -c **.rb >> "output.txt"
<csmrfx>
done!
<pewter_tao>
I want both
<pewter_tao>
and I want to use a ruby script to do it
<pewter_tao>
:)
SoonerBourne has quit [Read error: Connection reset by peer]
sarmiena_ has joined #ruby
burgestrand has joined #ruby
<csmrfx>
look man, that problem is already solved
<csmrfx>
my output.txt says "Syntax OK"
<csmrfx>
lol
<silverslab>
I'm having a problem with connection errors to a URL in a ruby script but, the same url works fine in IRB or with curl on the command line.
rakuN has quit [Ping timeout: 240 seconds]
SoonerBourne has joined #ruby
thillux_ has joined #ruby
shevy has joined #ruby
nomenkun has joined #ruby
punkrawkR^Home has quit [Read error: Connection reset by peer]
aaronmacy has quit [Quit: Leaving.]
<csmrfx>
pewter_tao: ruby -c **.rb will stop at first file
punkrawkR^Home has joined #ruby
thillux has quit [Ping timeout: 255 seconds]
brianpWins has joined #ruby
jekotia has quit [Read error: Connection reset by peer]
jekotia has joined #ruby
rakuN has joined #ruby
eldariof has quit []
bradhe has quit [Remote host closed the connection]
<csmrfx>
so "$ find /tgt/path -type f -name *.rb -exec ruby -c {} >> 'output.txt' \;" would check all files for rubyness.
codezombie has joined #ruby
apok has joined #ruby
iamjarvo has quit [Quit: Leaving.]
wchun has quit [Ping timeout: 264 seconds]
Morkel_ has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
h4mz1d has quit [Ping timeout: 250 seconds]
Guest73164 has quit [Quit: Guest73164]
_bart has joined #ruby
drlaj has quit [Remote host closed the connection]
Morkel has quit [Ping timeout: 252 seconds]
Morkel_ is now known as Morkel
kdridi has joined #ruby
wchun has joined #ruby
xorigin has joined #ruby
xorigin has left #ruby [#ruby]
rakuN has quit [Ping timeout: 240 seconds]
rakuN has joined #ruby
artm has joined #ruby
whowantstolivef1 has quit [Ping timeout: 264 seconds]
arturaz has quit [Remote host closed the connection]
hippyphysicist has joined #ruby
gbchaosmaster has joined #ruby
xorigin has joined #ruby
d2dchat has joined #ruby
hippyphysicist has quit [Read error: Connection reset by peer]
xorigin has left #ruby [#ruby]
yeban_ is now known as yeban
maletor has joined #ruby
pewter_tao has quit [Ping timeout: 255 seconds]
willob has quit [Quit: Leaving.]
maletor has quit [Max SendQ exceeded]
maletor has joined #ruby
hippyphysicist has joined #ruby
jackbrownhf has joined #ruby
jackbrownhf has quit [Changing host]
jackbrownhf has joined #ruby
hippyphysicist has quit [Client Quit]
u89 has quit [Ping timeout: 250 seconds]
willob has joined #ruby
davidcelis has joined #ruby
DaZ has joined #ruby
arquebus has joined #ruby
s1n4 has quit [Quit: leaving]
kpshek has quit []
Choobie has joined #ruby
altamic has joined #ruby
timonv has joined #ruby
u89 has joined #ruby
jackbrown has joined #ruby
jackbrownhf has quit [Ping timeout: 248 seconds]
cableray has joined #ruby
gyre007 has quit [Remote host closed the connection]
kpshek has joined #ruby
jeffsmykil1 has left #ruby [#ruby]
jimeh has quit [Quit: Computer has gone to sleep.]
banisterfiend has joined #ruby
workmad3 has joined #ruby
hadees has joined #ruby
jekotia has quit [Read error: Connection reset by peer]
hadees has quit [Remote host closed the connection]
<ddd>
your meat sits around A 3rd Party Alternative
darthdeus has quit [Read error: Connection reset by peer]
darthdeu has joined #ruby
jjbohn has joined #ruby
dnyy has joined #ruby
kpshek has quit []
philomory has quit [Quit: philomory]
staafl has joined #ruby
digitalcakestudi has joined #ruby
altamic has quit [Quit: altamic]
cdt has joined #ruby
tyfighter has joined #ruby
<Beoran_>
temporarily persistance is almost a contradiction to me ;)
cdt has quit [Client Quit]
dangerousdave has quit [Ping timeout: 260 seconds]
Spaceboy has joined #ruby
<csmrfx>
marshal is good
darkc0met has joined #ruby
<csmrfx>
it is relatively fast
jalcine has joined #ruby
atal421 has quit [Ping timeout: 250 seconds]
DaZ has quit [Ping timeout: 260 seconds]
dnyy has quit [Ping timeout: 240 seconds]
<ddd>
thik he was more worried about a format less likely to change under him ruby ver to ruby ver than speed (or at least thats how i read the initial issue)
<Spaceghostc2c>
Eh.
clj_newb has joined #ruby
<ddd>
but i didn't realize (unless the article is speaking falsely) that yaml was that slow.
answer_42 has quit [Read error: Operation timed out]
atal421 has joined #ruby
danneu has joined #ruby
<ddd>
then again i've not had to to massive amounts of data serializing either.
fike1 has quit [Quit: Saindo]
u89 has quit [Remote host closed the connection]
kpshek has joined #ruby
mvangala_ has joined #ruby
dawkirst_2 has joined #ruby
dawkirst_ has quit [Ping timeout: 260 seconds]
c0rn has joined #ruby
huoxito has quit [Ping timeout: 240 seconds]
mvangala has quit [Read error: Connection reset by peer]
staafl has quit [Quit: Leaving]
u89 has joined #ruby
kpshek has quit [Client Quit]
_alejandro has quit [Ping timeout: 240 seconds]
h4mz1d has joined #ruby
clj_newb has quit [Ping timeout: 252 seconds]
u89 has quit [Remote host closed the connection]
cakehero has quit [Quit: Computer has gone to sleep.]
<csmrfx>
(returns array of ruby files that pass the syntax test)
<csmrfx>
One closing paren too much before the first ? there
KRF has joined #ruby
vlad_sta_ has quit [Read error: Connection reset by peer]
<eka>
csmrfx: doesn't work for me... how you ...?
<silverslab>
eka: I'm seeing an issue on 1.8.7 where if I do a network request outside of a function call, it works. If I do it inside of one, it doesn't.
<eka>
csmrfx: tried it in pry
vlad_starkov has joined #ruby
<silverslab>
It's driving me nuts trying to find.
<pewter_tao>
csmrfx: yeah didn't work... just starts with "|fn|...|
<csmrfx>
perhaps best to take the file opening + first line reading onto it's own line
AlbireoX has quit [Remote host closed the connection]
ryanf has quit [Ping timeout: 252 seconds]
<csmrfx>
note: you're supposed to put that inside a select block
<eka>
csmrfx: did it worked for you?
kpshek has quit []
AlbireoX has joined #ruby
philcrissman has quit [Remote host closed the connection]
<csmrfx>
note2: it's just off the top of my head, but should be valid, give and take (, ) or two
pyr0commie has joined #ruby
lolcathost has joined #ruby
nomenkun has quit [Ping timeout: 240 seconds]
ryanf has joined #ruby
<csmrfx>
hm, guess one doesn't need the first ternary at all
jrajav has quit [Quit: I tend to be neutral about apples]