brianherman has quit [Read error: Connection reset by peer]
jalcine- has joined #ruby
jalcine- has quit [Excess Flood]
Asher1 has joined #ruby
marcgg has quit [Read error: No route to host]
marcgg has joined #ruby
Asher has quit [Ping timeout: 248 seconds]
dodosan has quit [Ping timeout: 248 seconds]
Thermo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
harrymoreno_ has joined #ruby
harrymoreno has quit [Ping timeout: 252 seconds]
harrymoreno_ is now known as harrymoreno
krisfremen has quit [Ping timeout: 248 seconds]
wmoxam has quit [Ping timeout: 246 seconds]
Nisstyre has quit [Quit: Leaving]
Thermo has joined #ruby
Nisstyre-laptop has joined #ruby
wmoxam has joined #ruby
kasper has quit [Remote host closed the connection]
peta_ has quit [Quit: peta_]
RobW_ has quit [Quit: RobW_]
Inside has joined #ruby
Inside has joined #ruby
Inside has quit [Changing host]
Trynemjoel has quit [Ping timeout: 245 seconds]
axeman_ has joined #ruby
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
TheDick has quit [Quit: TheDick]
butblack has quit [Quit: butblack]
jimg has joined #ruby
Nisstyre-laptop has quit [Ping timeout: 246 seconds]
zigomir_ has quit [Ping timeout: 268 seconds]
eka has quit [Quit: Computer has gone to sleep.]
hamakn has quit [Ping timeout: 246 seconds]
Xeago has quit [Remote host closed the connection]
jalcine has joined #ruby
Inside has quit [Read error: Connection reset by peer]
jimg has quit [Ping timeout: 256 seconds]
hadees has quit [Quit: hadees]
axeman__ has joined #ruby
axeman_ has quit [Ping timeout: 256 seconds]
harrymoreno has quit [Ping timeout: 256 seconds]
harrymoreno has joined #ruby
emergion has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Guga_ has joined #ruby
sepp2k1 has quit [Quit: Leaving.]
emergion has quit [Quit: Computer has gone to sleep.]
teclator has joined #ruby
momomomomo has quit [Quit: momomomomo]
danneu has quit [Quit: Leaving.]
emergion has joined #ruby
rickmasta has joined #ruby
emergion has quit [Client Quit]
Asher has joined #ruby
axeman_ has joined #ruby
emergion has joined #ruby
emergion has quit [Client Quit]
axeman__ has quit [Ping timeout: 268 seconds]
Asher1 has quit [Ping timeout: 259 seconds]
kasper has joined #ruby
generalissimo has joined #ruby
tkuchiki has joined #ruby
Mars` has joined #ruby
phrozensilver has quit [Quit: Leaving]
kasper has quit [Ping timeout: 246 seconds]
generalissimo has quit [Remote host closed the connection]
butblack has joined #ruby
marcgg has quit [Read error: No route to host]
teclator has quit [Ping timeout: 246 seconds]
marcgg has joined #ruby
momomomomo has joined #ruby
Mars` has quit [Ping timeout: 256 seconds]
reset has quit [Read error: Operation timed out]
Tectonic has quit [Quit: Tectonic]
LnL has quit [Quit: LnL]
Thermo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
veco has quit [Remote host closed the connection]
veco has joined #ruby
harrymoreno has quit [Ping timeout: 260 seconds]
harrymoreno_ has joined #ruby
pkrnj has joined #ruby
RichardBaker has joined #ruby
strax has joined #ruby
gwillickers has left #ruby [#ruby]
[0x1a] has joined #ruby
butblack has quit [Quit: butblack]
asteve has joined #ruby
axeman_ has quit [Ping timeout: 256 seconds]
jefflyne has joined #ruby
axeman_ has joined #ruby
BizarreCake has joined #ruby
EleetoBurrito has joined #ruby
Mars` has joined #ruby
RORgasm has joined #ruby
harrymoreno has joined #ruby
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
harrymoreno_ has quit [Ping timeout: 246 seconds]
EleetoBurrito has quit [Remote host closed the connection]
RORgasm has quit [Read error: Operation timed out]
mars__ has joined #ruby
rickmasta has quit [Quit: Leaving...]
hogeo has joined #ruby
kofno has joined #ruby
Inside has joined #ruby
<Inside>
derp. is there any way to use the #{} string formatting thing to format the number of decimal places, etc?
mikepack_ has quit [Remote host closed the connection]
<Inside>
I mean I can do the whole "%0.2f"%number thing
mikepack has joined #ruby
Omego2K has joined #ruby
wald0 has joined #ruby
<wald0>
i use xgettext to generate templates of .pot files, I can do the same with ruby ? (parse a source code and extract sentences onto a .pot file), finally, ruby apps can load .mo files for show translated messages on the UI?
Omego2K has quit [Remote host closed the connection]
<wald0>
I ask that specially because i dont see ruby in the xgettext manpage (--language= option)
<s7ry93r>
can macports and homebrew co-exist, or will they constantly butt heads?
<popl>
s7ry93r: that's not really a ruby question. :)
|jemc| has joined #ruby
echevemaster has joined #ruby
echevemaster has quit [Changing host]
echevemaster has joined #ruby
grillermo has joined #ruby
grillermo has quit [Client Quit]
<wald0>
im trying to learn ruby for write my apps on it but its useless if i can't do that
mikepack has quit [Ping timeout: 276 seconds]
rickmasta has joined #ruby
<|jemc|>
I've got a question, coming from a python background. Check out this paste: http://bpaste.net/show/BYVHGYuhfV5ba4OOUVFc/ I'm trying to create a "pass-thru" function, although this is just to demonstrate my issue. My end target is a little more complex. In python, using the *args, **kwargs argument pattern passes all arguments exactly as received. Can somebudy tell me if I can do something like this in
<|jemc|>
ruby?
Vert has quit [Remote host closed the connection]
nettoweb has quit [Quit: nettoweb]
<popl>
wald0: There's no mention of Ruby in the manpage. That probably means that no, it doesn't support it. However, the manpage also suggests that it will usually guess the language depending on the extension of the particular file.
<GeekOnCoffee>
|jemc|: leave out the * on line 6
<popl>
wald0: so I'd suggest trying it with some .rb file and if it doesn't work then you have your answer.
<Kelet>
Hello. I have an optional feature I'd like to add to my software. This feature requires a gem. I don't want the user to need the gem unless they want the feature. What I thought of doing is adding a file like Application_Extension.rb which monkey patches a method into my class which adds the feature. Unfortunately, I would need to modify another method to call this method. I was thinking about monkey patching in a variable like @feature_injected, checking that, a
<Kelet>
nd then running the monkey patched method. But this seems messy. Any suggestions?
<Kelet>
The feature is sort of tied in with the existing code, it needs some integration, so it cannot exactly be separated fully
<|jemc|>
GeekOnCoffee: `foo': wrong number of arguments (1 for 2..4)
<GeekOnCoffee>
nevermind
<GeekOnCoffee>
it works as is
<|jemc|>
can you show your output?
orangerobot has joined #ruby
<GeekOnCoffee>
sorry, the first 2 work
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<GeekOnCoffee>
|jemc|: you probably just want bar(55, 22, 'moo','woof')
danslo has quit [Quit: danslo]
danneu has joined #ruby
sambao21 has joined #ruby
<|jemc|>
well, no I don't, unfortunately
<orangerobot>
i'm using HTMLEntities to decode hexadecimal utf8 character codes into characters but, when I do this page.gsub!(/(&#x.{2,4};)/, HTMLEntities.new.decode('\1')) , the code itself gets returned, not the character to which it refers. Any help?
<|jemc|>
they need to be keyword args
sambao21 has quit [Client Quit]
heftig_ has joined #ruby
<popl>
:O
<|jemc|>
maybe ruby just doesn't support keyword args to quite the same extent as python
hamakn has joined #ruby
sambao21 has joined #ruby
<|jemc|>
or at least they're not commutative
incubus_ has joined #ruby
<popl>
what are you trying to accomplish |jemc|?
<GeekOnCoffee>
|jemc|: can you explain better what you're trying to accomplish?
pipework has joined #ruby
<GeekOnCoffee>
|jemc|: a pattern I often see is an options hash
mikepack has joined #ruby
<|jemc|>
popl, GeekOnCofee: the desired output is [55, 22, 'moo', 'woof']; that is, the keyword arguments should be passed through the bar function to the foo function just as if they were passed directly to the foo function
heftig has quit [Ping timeout: 252 seconds]
<|jemc|>
ah wait
<|jemc|>
they do
<|jemc|>
I was using the wrong syntax
<popl>
yes you were :P
<|jemc|>
I should have been using bar(55, 22, cow='moo', dog='woof')
<|jemc|>
and it all works exactly as it does in python
<|jemc|>
wonderful
<popl>
Well I don't know what you're trying to do so I can't say.
<GeekOnCoffee>
|jemc|: you can always accept a hash as an argument, which I generally prefer to *args
<|jemc|>
well, I'm trying to pass keyword arguments through with the double-splat
agjacome has quit [Quit: leaving]
hogeo has quit [Remote host closed the connection]
<|jemc|>
GeekOnCoffee: using an options hash isn't desirable, because the function should be 'transparent'
<|jemc|>
that is to say
hogeo has joined #ruby
hamakn has quit [Ping timeout: 268 seconds]
<popl>
that is to say?
<GeekOnCoffee>
|jemc|: yeah, if you're just doing a transparent passthrough like that
<|jemc|>
bar(*args, **kwargs) should be able to pass the arguments through to any function with an arbitrary argument pattern
<popl>
good luck
Mars` has quit [Ping timeout: 246 seconds]
<|jemc|>
well, it appears I don't need the luck
incubus_ has quit [Ping timeout: 256 seconds]
<|jemc|>
as it works out of the box
mars__ has quit [Ping timeout: 276 seconds]
<|jemc|>
thanks for the ear, folks
|jemc| has left #ruby ["WeeChat 0.4.0"]
hogeo has quit [Ping timeout: 256 seconds]
wmoxam has quit [Ping timeout: 246 seconds]
johnjohnson has joined #ruby
mars__ has joined #ruby
Mars` has joined #ruby
hogeo has joined #ruby
rickmasta has quit [Quit: Leaving...]
mikepack has quit [Remote host closed the connection]
<Pholey>
i was looking at the actual source and thought it was either that or the nested link
IcyDragon has quit [Quit: Space~~~]
<Pholey>
thank you very much you guys!
<irmbrady>
Anyone here using vim for ruby? I asked the #vim guys but didn't really get an answer. I installed vim on ubuntu with apt-get vim vim-gtk. If I 'ruby puts RUBY_VERSION' in vim it shows 1.9.3 (presumably compiled in this version)
<Pholey>
vim?
<irmbrady>
However my $PATH in vim is pointing to my RVM folder which has 2.0
<popl>
vim is a text editor Pholey
<Pholey>
like the text editor?
<irmbrady>
Yes, the editor :)
<Hanmac>
irmbrady: it seems that vim cant detect rvm ... good that i dont use one of them ;P
<irmbrady>
... However, I was wondering if vim-ruby's autocomplete would be using the 2.0 binaries or the 1.9.3 binaries? Does anyone know?
<popl>
the help would know
<irmbrady>
:help ruby ?
<Pholey>
sorry for two questions, but now that i have crafted my GET request, how do i read the page, ".read"?
<irmbrady>
Thanks havenwood, will give them a read
dawkirst has joined #ruby
<Pholey>
actually i am having a hard time finding how to read the page's content.. a link would be appreciated :-p
<irmbrady>
Tim Pope is becoming a minor celebrity in my life
<popl>
o_O
cout_ is now known as cout
<irmbrady>
Pholey: .read should do it for you
<Pholey>
actually
<Pholey>
was about to say that was a dumb question
<Pholey>
but thanks anyways irmbrady
<Pholey>
i had a total brain fart and thought URI would do everything for me haha
* popl
returns to koans
<Pholey>
but i forgot to even initialize the request
dawkirst has quit [Ping timeout: 246 seconds]
incubus_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
farn has joined #ruby
irmbrady has quit [Quit: WeeChat 0.4.0]
<pontiki_>
vim seems to be gaining much favour among rubyists
<pontiki_>
Pholey: what are you using to fetch the page?
<popl>
vim is pretty awesome
<pontiki_>
i think i'd try vim, but i have such an awful time unlearning emacs key bindings
<pontiki_>
i had to drop sublime for that reason; most especially because most of the emacs keybindings worked on linux, but then they didn't on os/x
<Pholey>
well i am trying to figure out what would be best to use
<pontiki_>
too hard to switch back and forth
<Pholey>
i was considering HTTParty
<Pholey>
but net/http seems to work as well
<pontiki_>
Pholey: oh! maybe look at mechanize, or even nokogiri + open_uri
<Pholey>
open uri is also in my script
<pontiki_>
if you are going to do anything with the page content, assuming it is html or xml, nokogiri is rather wonderful
<pontiki_>
mechanize is rather cool for scraping
wallerdev has joined #ruby
RobW_ has quit [Ping timeout: 248 seconds]
zacts has quit [Quit: leaving]
<Pholey>
well essentially i am having a contest with my friend
<Pholey>
we are reverse engineering polldaddy's JS and using it to to rig the poll, whomever coded the best script (determined by the amount of votes) wins
<Pholey>
(our poll of course)
<Pholey>
i chose ruby, he chose perl
<popl>
popularity contest?
<popl>
Pholey: You are violating Polldaddy's TOS.
<popl>
Pholey: You should ask them first.
_ffio_ has joined #ruby
ffio_ has quit [Ping timeout: 246 seconds]
<Pholey>
well we are not really using poll daddy's server per say
<Pholey>
we found a copy
<Pholey>
rather he did i guess
<popl>
huh?
<Pholey>
but i am curious as to whether it works on polldaddy
<Pholey>
and it is only one vote ;-)
<popl>
:(
<pontiki_>
oh man
<Pholey>
technically it is user submitted lol
<pontiki_>
you want watir :)
<Pholey>
ah i tried watir
<Pholey>
i got it working
<Pholey>
but it was really slow
<Pholey>
its essentially a macro haha
<pontiki_>
tru
<pontiki_>
actually
<pontiki_>
hah
browndawg has joined #ruby
<pontiki_>
you want node
<popl>
man I wish you didn't mention what you were doing with it.
<Pholey>
well im not rigging polls or anything
Davai__ has joined #ruby
<Pholey>
well
<Pholey>
other than my own
<popl>
Have you ever seen Fantasia?
<pontiki_>
meh, online polls are made for rigging
<popl>
Sure, I guess. Whatever. :P
<Pholey>
but i might even report it to polldaddy if a cash reward is involved ;)
<popl>
you are unethical Pholey
GeissT has joined #ruby
<pontiki_>
i consider it unethical to pass off online polls as something to be considered valid indications of public opinion
<popl>
What?
<Pholey>
hey, tons of people report bugs for cash
<pontiki_>
what what?
<Pholey>
in fact google promotes it
lutfidemirci has joined #ruby
<popl>
pontiki_: How is that unethical? It is a poll, and people answer it.
<Pholey>
im just trying to pay for me and my pup's food
<Pholey>
lol
<pontiki_>
yes, but *which* people
<popl>
Data is data. Interpretation of the data is what can be skewed.
Davai has quit [Ping timeout: 246 seconds]
<pontiki_>
read what i said
browndawg has quit [Ping timeout: 246 seconds]
<pontiki_>
"valid indications of public opinion"
<pontiki_>
deconstruct that in light of your last sentence
<popl>
It seems your problem is with the interpretation of the data.
fuhgeddaboudit has quit [Ping timeout: 256 seconds]
<pontiki_>
that is where the ethics lie, yes
<popl>
So why did I need to reread what you said?
<Pholey>
well, i am not using it to rig a poll but my own
vlad_starkov has quit [Ping timeout: 276 seconds]
<popl>
23:10 < popl> Data is data. Interpretation of the data is what can be skewed.
<pontiki_>
because youare questioning it
<Pholey>
a private one might i add
<Pholey>
just two questions
<Pholey>
perl
<Pholey>
and ruby
<popl>
pontiki_: Perhaps we are agreeing.
<pontiki_>
were those the questions, Pholey ?
<pontiki_>
they seem like answers
<Pholey>
well, we are supposed to be writing a script in each aforementioned language to see which can send/handle requests better
<Pholey>
as well as other things
<popl>
So your goal is to find a bug in the polldaddy API?
<Pholey>
such as dealing with tor, multi threading, etc
<Pholey>
well we already found the bug
<Pholey>
but now we are using it to determine which language is "better" if it were to be used for the bug
<popl>
heh
<Pholey>
hence, perl and ruby being "questions"
<Pholey>
rule is languages we do not know
<popl>
Threads in Perl are horrid.
<Hanmac>
popl: no, Data is a Crewmember of the Enterprise ;P
<pontiki_>
oh i see
<popl>
Your friend is at a disadvantage.
<pontiki_>
what are the criteria for "better"-ness ?
<popl>
Hanmac: The Enterprise is not real.
<popl>
Hanmac: Therefore Data is not real.
<pontiki_>
oh don't break a girl's heart now!
<popl>
Data's cat isn't real either.
<incubus_>
popl :)
<pontiki_>
SPOT WASN'T REAL?!?!?!
<Pholey>
yeah i was banking on ruby
<havenwood>
popl: Spot is a cyborg?
Mars___ has joined #ruby
mneorr_ has joined #ruby
<popl>
havenwood: Spot was a meat popsicle.
<pontiki_>
i have now lost all faith in 23rd century humanity
<pontiki_>
and droidery
<havenwood>
Data ran what versions of Ruby I wonder?
<pontiki_>
Dr. Singh would never stoop to running Ruby
<popl>
Probably something better than Ruby.
<havenwood>
popl: Ruby 3000
jefflyne has joined #ruby
<popl>
Programming languages wouldn't exist in the way we know them now.
<havenwood>
No GIL.
jefflyne has quit [Max SendQ exceeded]
mneorr has quit [Ping timeout: 240 seconds]
<Hanmac>
havenwood: Loor maybe still runs on ruby1.8
<pontiki_>
lol
<havenwood>
haha
<popl>
hurr
<pontiki_>
we all get emotional about 1.8.7, don't we?
jefflyne has joined #ruby
<pontiki_>
but 2.0.0 has no contractiosn?
<havenwood>
RIP 1.8
<Hanmac>
pontiki_: today should be the last day ... (of Ruby1.8)
fgo has joined #ruby
<popl>
I'm using 1.9.3
<pontiki_>
i'm sure all the distros will keep flogging the corpose
<pontiki_>
corpse
<pontiki_>
can you get 1.9 native on *any* current distro?
Mars___ has quit [Ping timeout: 264 seconds]
<havenwood>
Lo, they bid 1.8 take its place among them, in the halls of Valhalla!
<popl>
pontiki_: my distro is using 1.9.3
<Hanmac>
pontiki_: on the current ubuntu 1.9 is default, on the version before you could install it as secondary ruby (and then later switch it to default)
<pontiki_>
hail, hail 1.8
<Pholey>
who suggested mechinizew?
<pontiki_>
o/
<pontiki_>
why? did i break something?
<Pholey>
allrighty reading the API
<Pholey>
no lol
kasper has joined #ruby
icecandy has quit [Remote host closed the connection]
<popl>
Does Ubuntu do anything to Ruby?
<Pholey>
would it be allright if i pm'ed you?
<pontiki_>
notably, mechanize doesn't do js
<Pholey>
just some questions is all
<pontiki_>
sure, Pholey
browndawg has joined #ruby
jonahR has joined #ruby
rsahae_ has quit [Quit: rsahae_]
tkuchiki has quit [Remote host closed the connection]
<Hanmac>
popl: it only split it in logical pieces ... (so when you install ruby, the ruby-dev package is not installed too)
<popl>
oh right, I remember that dude had a problem with it
<popl>
that's annoying, though
<popl>
and obviously causes confusion
wolcanus has joined #ruby
<popl>
Hanmac: thanks for answering
kasper has quit [Ping timeout: 276 seconds]
rsahae_ has joined #ruby
<Hanmac>
hm but its only logical, when you install for sample the ruby-* packages of the gems, you dont need the ruby-dev package (you only need it when you build and install your own gems)
akashj87 has quit [Ping timeout: 248 seconds]
<popl>
But it breaks things doesn't it?
wargasm has quit [Read error: Connection reset by peer]
<Hanmac>
hm not so much, i mean for sample "make" is not installed per default, it does break thinks too doesnt it?
BizarreCake has joined #ruby
<Hanmac>
when you install bindings as gem, the requireing header files are not installed per default, it does also break things?
zeromodulus has quit [Remote host closed the connection]
Inside has quit [Ping timeout: 256 seconds]
zeromodulus has joined #ruby
<popl>
I think you are underestimating the silliness of users.
wolcanus has quit [Ping timeout: 276 seconds]
<popl>
But as far as responding to your questions, I'm not sure what you're saying (but I'd like to answer you).
Shirakawasuna has joined #ruby
<Hanmac>
popl: yeah sorry but gems can not install distribution packages, and when the users are to dump to see when "make not found" that they should install make via the package manager, then no one can help them
<popl>
I remember in this very channel having to walk a user through installing ubuntu packages for ruby-dev (admittedly he seemed pretty dense) and it took hours.
<popl>
Ubuntu is supposed to be super user friendly though right?
<Hanmac>
it is user friendly but it is not noob friendly
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fgo has quit [Remote host closed the connection]
echevemaster has quit [Quit: Leaving]
<popl>
What's the difference?
<Mon_Ouie>
Part of the standard library is in ruby-dev
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
rickruby has joined #ruby
djbkd has quit [Remote host closed the connection]
<Hanmac>
Mon_Ouie: part of that standard library does not work without the ruby header files (that are in ruby-dev)
mityaz has joined #ruby
tjbiddle has quit [Ping timeout: 246 seconds]
<popl>
So why not just keep it all bundled, nice and tidy?
emergion has joined #ruby
blob has joined #ruby
wallerdev has quit [Quit: wallerdev]
<Hanmac>
popl: there are reasons why it is split in Binary, Library and Header files
<popl>
I don't think I will agree they are good reasons but this is why I don't use Ubuntu I guess. :)
<popl>
If it works for you that's good. :)
julweber_ has quit []
julweber has joined #ruby
havenwood has quit [Ping timeout: 246 seconds]
mikewintermute has joined #ruby
yacks has quit [Quit: Leaving]
Mon_Ouie has quit [Read error: Connection reset by peer]
rickruby has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
<Hanmac>
i dropped long time ago each version of released ruby version ... i am use rubytrunk ;P
incubus_ has quit [Read error: Connection reset by peer]
mikewintermute has quit [Ping timeout: 240 seconds]
rickruby has joined #ruby
mamtina has joined #ruby
cha1tanya has quit [Quit: Leaving]
<r0bgleeson>
it doesnt make practical sense for ruby
nivoc has joined #ruby
butblack has joined #ruby
pibix has joined #ruby
momomomomo has quit [Quit: momomomomo]
rsahae_ has quit [Quit: rsahae_]
butblack has quit [Client Quit]
predator217 has quit [Ping timeout: 246 seconds]
butblack has joined #ruby
butblack has quit [Client Quit]
djbkd has joined #ruby
veco has quit [Ping timeout: 264 seconds]
orangerobot has quit [Quit: ChatZilla 0.9.90 [Firefox 22.0/20130620121849]]
ananthakumaran has quit [Ping timeout: 256 seconds]
aqil has joined #ruby
kevinykchan has joined #ruby
wald0 has quit [Read error: Connection reset by peer]
ntus1017 has joined #ruby
wald0 has joined #ruby
vlad_starkov has joined #ruby
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
pibix has quit [Ping timeout: 246 seconds]
goganchic has joined #ruby
ananthakumaran has joined #ruby
aqil has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
emergion has quit [Quit: Computer has gone to sleep.]
RORgasm has quit [Ping timeout: 276 seconds]
mamtina has joined #ruby
browndawg1 has joined #ruby
jbpros has quit [Ping timeout: 256 seconds]
Spaceghost|work has quit [Remote host closed the connection]
statarb3 has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
goganchic has quit [Quit: Leaving.]
browndawg has quit [Ping timeout: 252 seconds]
rickruby has quit [Remote host closed the connection]
Peej has quit [Quit: Research is what I'm doing when I don't know what I'm doing.]
<mamtina>
hello !
<mamtina>
someone knows what is dora!?
Peej has joined #ruby
axeman_ has quit [Read error: Connection reset by peer]
axeman_ has joined #ruby
<pontiki_>
dora is an explorer
zigomir has joined #ruby
emergion has joined #ruby
rickmasta has quit [Quit: Leaving...]
<mamtina>
:D I heard a ruby programer said, I've done the project with dora
LarsSmit has joined #ruby
jbpros has joined #ruby
crazymykl has quit [Ping timeout: 260 seconds]
rickruby has joined #ruby
jbpros has quit [Ping timeout: 256 seconds]
Xeago has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
<pontiki_>
sorry, no idea really
<pontiki_>
maybe they meant fedora?
<Pholey>
lol
Xeago has quit [Remote host closed the connection]
<Pholey>
mamtina they probably meant fedora, the Linux distribution, which can run ruby projects
railsbros_dirk has joined #ruby
yacks has joined #ruby
<mamtina>
thanks for your care!
<mamtina>
:)
pibix has joined #ruby
monkegjinni has joined #ruby
viszu has joined #ruby
pipework has joined #ruby
pibix has quit [Client Quit]
mary5030 has joined #ruby
marr has joined #ruby
mary5030 has quit [Remote host closed the connection]
statarb3 is now known as Proshot
relix has joined #ruby
Mon_Ouie has quit [Read error: Connection reset by peer]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
Kar- has joined #ruby
sevenseacat has joined #ruby
hadees has joined #ruby
icecandy has joined #ruby
jds_ has joined #ruby
lkba has quit [Ping timeout: 246 seconds]
nfk has quit [Quit: yawn]
gildo has quit [Ping timeout: 246 seconds]
subbyyy has quit [Ping timeout: 246 seconds]
jbpros has joined #ruby
byprdct has joined #ruby
axeman_ has quit [Remote host closed the connection]
codecop has joined #ruby
vlad_starkov has joined #ruby
Spami has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
vlad_starkov has quit [Ping timeout: 246 seconds]
Meatant has joined #ruby
lutfidemirci has quit [Remote host closed the connection]
ChronocityLC has quit [Ping timeout: 240 seconds]
pfui has joined #ruby
zigomir has quit [Read error: Connection reset by peer]
<pfui>
I have a problem with em-http-request always failing with "connection closed by server" no matter what the url I try to load. any ideas what might be wrong on my side?
<pipework>
Anything descendant from SGML, actually.
<pipework>
Fudge.
MrZYX is now known as MrZYX|off
<pipework>
Forget that. My client hates this channel.
Shirakawasuna has quit [Ping timeout: 252 seconds]
Meatant has quit [Quit: bbl]
mityaz has quit [Quit: See ya!]
arietis has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
marcgg has quit [Read error: No route to host]
scrollback has quit [Read error: Connection reset by peer]
<enthrops>
what does that have to do with colors though?
<enthrops>
some terminals don't support them
<tulip>
enthrops: Ah, if you're just worried about the TERM environment variable, do it by that ;-)
<tulip>
Pretty much the most common are xterm-color, xterm-color256, screen-color, etc.
<enthrops>
yeah, I will probably have to go with checking TERM, thought there was something more reliable
<tulip>
enthrops: But really, it seems you want to check the tty part.
<tulip>
Cause like... do people use terminals without color?
<tulip>
And if they do, do you care to support them?
dhruvasagar has quit [Ping timeout: 252 seconds]
nettoweb has joined #ruby
<enthrops>
kinda
<tulip>
enthrops: Nah you don't.
flowerhack has quit [Remote host closed the connection]
alexwh has left #ruby [#ruby]
<enthrops>
tulip: hahaha
<tulip>
enthrops: Sounds like you're worrying about a problem that isn't there while children in africa don't have enough AK47s.
<enthrops>
I'll do a --no-color flag then
apeiros has quit [Remote host closed the connection]
<tulip>
All I've ever needed is to check if it is a tty or not.
<tulip>
Cause colours mess it up when I wanna run it through awk... I mean... ruby -lane or something.
<enthrops>
tulip: why would I do that? The script is not supposed to be ever redirected or grepped
himsin has quit [Ping timeout: 260 seconds]
<tulip>
enthrops: What kinda script would never need to be grepped?
<enthrops>
tulip: an interactive one :)
<tulip>
enthrops: Grep is interactive.
timonv has quit [Remote host closed the connection]
robscomputer has quit [Remote host closed the connection]
robscomputer has joined #ruby
<enthrops>
there are more people with terminals that don't support colors than people who'd like to grep this particular script
<Mon_Ouie>
You can use terminfo to know what your terminal is capable of
bobbyz has quit [Ping timeout: 260 seconds]
<enthrops>
there are more children with ak47s in africa
<enthrops>
Mon_Ouie: right
vdandre has joined #ruby
timonv has joined #ruby
arubin has joined #ruby
<Deele>
hello
<tulip>
enthrops: Yes, but, not enough. While we in the west are all decadent.
<Deele>
why is it so, that tmp = initial creates some sort of reference, not copy
bobbyz has joined #ruby
generalissimo has quit [Remote host closed the connection]
Rix has quit [Quit: No One Lives Forever]
<enthrops>
Deele: because tmp now points to whatever initial was pointed at
<tulip>
Deele: tmp = whatever.dup
<tulip>
Deele: or whatever.clone
<Deele>
oh
<Deele>
so, that is OK
<Deele>
and tmp = initial.clone is correct way
<tulip>
Or .dup
Rix has joined #ruby
<tulip>
There is tiny difference though.
<Deele>
which is better?
<tulip>
I usually use .dup
binw_ has joined #ruby
<Deele>
ok, I will check in docs
<tulip>
Cause .clone seems more thorough.
<tulip>
So I like to live dangerously.
<Hanmac>
or Marshal.load(Marshal.dump(whatever))
<tulip>
That always seemed weird to me... also too thorough.
<tulip>
How are you going to create something unexpected to keep you busy if you do things properly?
janniks_ has joined #ruby
janniks has joined #ruby
danslo has quit [Quit: danslo]
jds_ has joined #ruby
TheDick has quit [Quit: TheDick]
leonidlm has quit [Ping timeout: 256 seconds]
<tulip>
Anyone in this place from .jp?
binw__ has quit [Ping timeout: 260 seconds]
<Mon_Ouie>
Object#clone preserves #frozen? and #tainted? while #dup doesn't (I don't think I've seen much code that uses either of those though)
LennyLinux has joined #ruby
kofno_ has quit [Remote host closed the connection]
<Mon_Ouie>
The Marshal trick is to do a deep copy for marshallable classes
Pholey has joined #ruby
havenn_ has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
<tulip>
Mon_Ouie: What is a marshallable class?
<Mon_Ouie>
A class that supports Marshal.load and Marshall.dump
<tulip>
Something I guess I gotta read up on.
<Hanmac>
tulip: Proc for sample is not marshalble
mengu has quit [Quit: This computer has gone to sleep]
Catie has quit [Ping timeout: 246 seconds]
<Mon_Ouie>
(I don't remember what methods you have to define for it to work, I believe it's #_marshall_dump and then ._marshall_load as a class method)
<Hanmac>
Mon_Ouie: there is also _dump and _load that work a bit different
<Mon_Ouie>
Oh, it's marshal*
dhruvasagar has joined #ruby
blackmesa has quit [Quit: WeeChat 0.4.1]
JZTech101 has quit [Read error: Connection reset by peer]
<tulip>
Why would someone wish to do this exactly?
<Hanmac>
tulip with marshal you can copy an entire Tree of elements
<Mon_Ouie>
A deep copy, or having the marshal methods?
<tulip>
Deep copy.
<Mon_Ouie>
To avoid having multiple references to the same objects if you're going to mutate some of them
<Hanmac>
tulip: lets say you have an array of elements, and you call array.dup, then the elements are not dupped too
zastern has quit [Remote host closed the connection]
<tulip>
Really? Thought they were.
<Mon_Ouie>
[1, 2, 3].dup — That should be an example of why they're not ;)
r4nd0m1 has joined #ruby
Catie has joined #ruby
<tulip>
I just did irb and array.dup works for me?
Catie is now known as Guest93797
<Mon_Ouie>
It does, but try 1.dup
havenn_ has quit [Ping timeout: 240 seconds]
<tulip>
Yeah, but with Fixnum you don't have that "reference" problem.
<tulip>
Oh.
<Hanmac>
Mon_Ouie: it makes me a bit agry, imo it should return just self without error
<tulip>
I get your point suddenly.
JZTech101 has joined #ruby
<tulip>
Entire tree of elemants.
<Mon_Ouie>
But it shows Array#dup can't just dup its elements (besides the fact that, most of the time, you don't want a deep copy)
JZTech101 has quit [Max SendQ exceeded]
mcarron has joined #ruby
ntus1017 has joined #ruby
enthrops has quit [Quit: enthrops]
<Mon_Ouie>
Hanmac: Yes, I think that definition would make more sense for immutable objects (although, they're not technically immutable)
subbyyy has quit [Ping timeout: 268 seconds]
wallerdev has joined #ruby
<Hanmac>
PS: you should also be careful when you marshal objects that revereces other duped objects ... like A points to B and B points to A, then you can only marshal them together if you want to keep that intact
<tulip>
They way both of you sound, .dup and .clone are useless?
<Hanmac>
yes and no
<Mon_Ouie>
They're not
icecandy has quit [Remote host closed the connection]
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ryan_turner has left #ruby ["Leaving"]
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
timonv has quit [Remote host closed the connection]
<tulip>
Well, something to read up on sometime. Nighty nighty.
<Deele>
how to concat safely two different objects, to output as string
<Deele>
p 1 <<
<Deele>
p 1 << " <- " << 23
<Pholey>
question, i do not know whether its a bug in ruby or something on my part, however i am under the impression that open-uri's ".read" should read *all* the content of a page correct?
<Mon_Ouie>
"#{1} <- #{23}"
<Deele>
oh, I remember such form, thanks
<Pholey>
i would produce code, however it is a bit odd because i am dealing with sessions so links only last a little while
bradhe has joined #ruby
<Pholey>
but my problem is that open-uri will *not* read JS, even if it is all in plain text
kjellski has joined #ruby
<Pholey>
it will cut off at the first statement
<Pholey>
rather the first ";"
<Pholey>
same with mechanize, and net/http, curb just throws me an error
scrollback has quit [Remote host closed the connection]
scrollback has joined #ruby
subbyyy has joined #ruby
<Mon_Ouie>
I'm not sure what your issue is, but open-uri doesn't know anything about JS/HTML/etc.
<Mon_Ouie>
It just wraps net/http (and other libraries for other protocols) to download stuff
<Pholey>
when it should be something like PD_button7215679.className='pds-vote-button';document.getElementById('PDI_container7215679').innerHTML=' #etc etc
<Mon_Ouie>
What if you use curl (from command line) to retrieve the page?
<Pholey>
it preforms as i would expect it to
<Pholey>
reading all the output
<Deele>
I want to convert integer to array, where each digit is single element of array, how to do that? I know 1234.to_s.split('') is there any better way
thesheff17 has joined #ruby
icecandy has joined #ruby
<Mon_Ouie>
By repeating rest, digit = divmod(10) you can extract successive digits
blackmesa has joined #ruby
dhruvasagar has quit [Read error: Operation timed out]
bubblehead has quit [Remote host closed the connection]
bubblehead has joined #ruby
<Pholey>
i am thinking i am going to change languages.. ruby seems to give me nothing but trouble
<Hanmac>
pholey: goto C
<Pholey>
i know C++
<Pholey>
so i was considering making the sawitch
mityaz has quit [Quit: See ya!]
<hoelzro>
switch from C++ to Ruby?
niklasb has quit [Ping timeout: 256 seconds]
sambao21 has joined #ruby
fridim__ has quit [Quit: Leaving]
<Pholey>
well i am extremely frustrated with ruby currently
<Pholey>
i am convinced that the 'net/http' module is broken
<Hanmac>
pholey: make a gist of your code so we can look over it
horofox_ has quit [Quit: horofox_]
anderson has quit [Read error: Connection reset by peer]
icecandy has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
sambao21 has joined #ruby
icecandy has quit [Ping timeout: 248 seconds]
<Pholey>
i think it's the "|" in the url
<Pholey>
i NEED that "|"
<havenwood>
pholey: what's stripping the pipe?
kjellski has quit [Quit: Leaving]
<Pholey>
but i get an error claiming a false URI
<Pholey>
im sorry what do you mean?
<havenwood>
pholey: Oh, i just showed up late and dunno what's going on. >.> Just curious what failed with a pipe in the URL.
d4rkstalk3r has joined #ruby
kevinykchan has quit [Read error: Connection reset by peer]
<Pholey>
i have no idea
<Pholey>
i am extremely frustrated
cofin has joined #ruby
<Pholey>
how can i use a "|" in the url withoutescaping it
<MrZYX>
I'd do something like params = {param: "value"} and url = ".../?#{params.map {|k,v| "#{k}=#{CGI.escape(v)}" }.join("&")}"
<Hanmac>
the funn thing, after i called "poll = open(url).read" later, it does show more, but when i called directly with the others it show less ...
<Pholey>
(keep in mind i have been in ruby for a day :( )
<Pholey>
what do you mean hanmac?
cofin has quit [Client Quit]
machuga is now known as machuga|away
<Pholey>
i have been dealing with oddities since the beginning of my ruby career
jds_ has quit [Remote host closed the connection]
<Pholey>
i am convinced that ruby needs a major overhaul, never have i had such problems in any other language
jarin has joined #ruby
jds_ has joined #ruby
<Pholey>
i don't mean to be dissing ruby, the syntax and usage is beautiful, but the functionality of things i need seem to be in a "barely working" state
<Hanmac>
pholey: i paste your entire code in irb, and it shows me only that one part, but then i called "open(url).read" later and it shows me more
generalissimo has joined #ruby
kayloos has quit [Remote host closed the connection]
<Pholey>
so.. what should i do hanmac?
<Hanmac>
i dont know .. i never used open-uri :(
<Pholey>
well do you have any suggestions on what i should do?
robscomputer has quit [Read error: Connection reset by peer]
<RubyPanther>
codepython777: glancing up at the channel subject, I would say no.
sambao21 has quit [Quit: Computer has gone to sleep.]
<RubyPanther>
If you actually needed that version, you'd be sure you needed it.
<havenwood>
codepython777: Yeah, 1.8.7 is OS X system Ruby until 10.9 Mavericks updates to 2.0.0. You have several options, install Ruby with Homebrew, with ruby-install/chruby, ruby-build/rbenv, or RVM.
<havenwood>
codepython777: What RubyPanther said, go 2.0.0. :)
<codepython777>
I just tried rbenv
<havenwood>
codepython777: I really like ruby-install/chruby on OS X. RVM is the most popular route.
<havenwood>
codepython777: Problem with rbenv?
<RubyPanther>
as a happy rbenv user I have to point out, unless you have a reason to choose rbenv, use rvm is it the usual thing to use. rbenv is for certain types of *nix curmudgeon.
<havenwood>
codepython777: The ruby-install route to install 2.0.0-p247 is: brew install ruby-install; ruby-install ruby
* Hanmac
is a happy trunk user
<RubyPanther>
s/is it/it is/
rsahae_ has joined #ruby
<codepython777>
I already did — rbenv install 1.9.3-p448
<codepython777>
should have asked and waited here
<codepython777>
Its taking too much time
<codepython777>
now in a new shell, when i do ruby —version -> 1.8.7
rsahae_ has quit [Client Quit]
<codepython777>
what did i do wrong?
<RubyPanther>
the longer compiling takes the better, if it takes long enough it means it found the optional dependencies </snark>
<RubyPanther>
rbenv has no magic, the features it uses are *nix features like symlinks
kayloos has joined #ruby
rickruby has quit [Remote host closed the connection]
<havenwood>
RubyPanther: chruby uses *nix features like environment variables :P
jalcine has joined #ruby
machuga|away is now known as machuga
<havenwood>
RubyPanther: I guess I consider executable shims to be an anti-feature, that causes more problems than does good.
<RubyPanther>
right, and to a sysadmin how does it sound if you ask, "hey why don't you replace those symlinks with some env vars... then your programs work the same... assuming your shell is set up 'right'"
<codepython777>
ok. I set my path to point to -> /Users/username/.rbenv/versions/1.9.3-p448/bin - and am trying to use gem install veewee - is that alright?
krisfremen has joined #ruby
krisfremen has joined #ruby
krisfremen has quit [Changing host]
<codepython777>
ERROR: While executing gem ... (Gem::DependencyError ... Unable to resolve dependencies: fog requires net-scp (~> 1.1); vagrant requires net-scp (~> 1.0.4)
<codepython777>
how do i fix this?
<havenwood>
codepython777: I blame shims.
<havenwood>
:P
jds_ has quit [Remote host closed the connection]
msuszczy has quit [Ping timeout: 260 seconds]
<havenwood>
RubyPanther: Yeah, the shims / env var debate is an interesting one.
<RubyPanther>
yes it is short tricks, but I don't care how many lines of code it takes, I care how much it departs from old-school *nix practices. If I'm not using any features, how many do I still have?
<codepython777>
havenwood: any workarounds?
jds_ has joined #ruby
bionoid has quit [Remote host closed the connection]
<havenwood>
RubyPanther: i'd just maintain that chruby is very *nix, single responsibility, does it well, sets env vars as Ruby specifies them to be set and things work
butblack has quit [Quit: butblack]
<Hanmac>
vagrant had dropped ruby gems, so you should drop vagrant too
msuszczy has joined #ruby
rsahae has joined #ruby
<havenwood>
RubyPanther: also chruby has a manpage, etc, as a good unix citizen
<RubyPanther>
chruby is fine, it doesn't commit any of the _unforgivable_ sins that rvm does (or did, when I was an unhappy user)
<havenwood>
RubyPanther: Sad that many supposed unix-supported gems have no manpage. :(
<havenwood>
RubyPanther: I don't know if rbenv does, actually. It ought.
<RubyPanther>
it doesn't, it is a sin but these days it is a typical one
<havenwood>
particularly for a ruby installer, the manpage info is kinda essential - what are you modifiying? what files? etc.
<havenwood>
gem's manpage sorely needs love
<RubyPanther>
these days everything is self-documenting
jds_ has quit [Ping timeout: 264 seconds]
takezawa has quit [Remote host closed the connection]
headius has joined #ruby
<havenwood>
RubyPanther: Yeah, definitely seems that way. I think there is real wisdom in the FILES and ENVIRONMENT sections of manpage though that don't get self-documented well.
<waxjar>
we've got google and readme's these days :D
<RubyPanther>
yeah, manpages have more room
nomenkun has joined #ruby
<havenwood>
waxjar: Sometimes a google'd manpage is best google resource, which is kinda funny.
<havenwood>
bigmac: that would make a bunch of nil
<havenwood>
bigmac: since #puts returns nil
<bigmac>
or print off each line that var="a\na\na\na\na"
<havenwood>
bigmac: don't use #map and #each
<bigmac>
lol see i do things wrong
<bigmac>
i never found any problems with the way i do things
<bigmac>
so, 1 sec
<popl>
bigmac: are you interested in finding out the why of things working?
<havenwood>
bigmac: Use map when you're actually wanting to return a new array: [1,2,3].map { |n| n.to_s }; #=> ["1", "2", "3"]
timonv has quit [Remote host closed the connection]
<havenwood>
bigmac: Or fancier: [1,2,3].map &:to_s; #=> ["1", "2", "3"]
BSaboia has quit [Ping timeout: 246 seconds]
<bigmac>
a=sock.read; a.map.each
<havenwood>
bigmac: stop with the map.each, either you want map or each, never both
viszu has quit [Quit: Leaving.]
<bigmac>
oh, lol i see now
cj3kim has quit [Remote host closed the connection]
<bigmac>
its like map and each do the same thing
marcgg has joined #ruby
<bigmac>
a.map {|x|...}
<havenwood>
yeah, use each unless you need map
<bigmac>
a.each {|x|...}
marcgg_ has quit [Read error: Connection reset by peer]
<fryguy>
bigmac: the return values are different, otherwise yes
BizarreCake has quit [Quit: Leaving]
Zolo has joined #ruby
<bigmac>
so there is no need..... for x in var.map (that is ugly)
kasper has quit [Remote host closed the connection]
<bigmac>
im trying to break bad habits
zeromodulus has joined #ruby
zeromodulus has joined #ruby
zeromodulus has quit [Changing host]
<popl>
bigmac: It might be considered a bad habit to not answer people's questions when they address you directly.
<bigmac>
i have to stop doing this also.... `cat file.txt`
banister has joined #ruby
<popl>
It might even be considered rude.
harrymoreno has quit [Ping timeout: 246 seconds]
<bigmac>
sorry
<bigmac>
i didnt understand your question
harrymoreno has joined #ruby
<popl>
Which one?
jhowarth_ has quit [Ping timeout: 264 seconds]
Peej has joined #ruby
<bigmac>
bigmac: are you interested in finding out the why of things working?
<popl>
It's not a sin to ask for clarification. :)
<havenwood>
bigmac: not a crime to shell out, but easy enough to: File.read 'file.txt'
<bigmac>
sorry i can read but cant comprehend ;)
<bigmac>
my bad English
wallerdev has quit [Quit: wallerdev]
alexwh has joined #ruby
havenwood has quit [Remote host closed the connection]
sambao21 has joined #ruby
pothibo has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
<pothibo>
When you require a file in a relative folder, does the folder name by default becomes a module? I'm pretty sure this only happen in rails but I want to make sure
danslo has joined #ruby
instinkt has quit [Read error: Connection reset by peer]
Neomex has quit [Quit: Neomex]
jds_ has joined #ruby
Mars___ has joined #ruby
Mars` has joined #ruby
niklasb has joined #ruby
r0bgleeson has joined #ruby
poseid has joined #ruby
h4mz1d has quit [Quit: h4mz1d]
sambao21 has quit [Quit: Computer has gone to sleep.]
obs has joined #ruby
zmike123 has quit [Ping timeout: 268 seconds]
zhando has joined #ruby
<Deele>
does ruby methods always passes variables by reference?
cofin has joined #ruby
<pothibo>
Deele: C passes everything by value, but yes, it passes the value of the reference
<hoelzro>
Deele: pretty much everything in Ruby is a "reference"
<pothibo>
unless you built a C extension, it shouldn't matter to you
<yxhuvud2>
They copy the reference. That is not the same thing, since some values are stored in the reference itself. Integers etc
<pothibo>
what yxhuvud2 said
Zolo has quit [Remote host closed the connection]
brennanMKE has joined #ruby
<pothibo>
"scalar" variable are "copied" so you can't modify an integer, but you can modify a hash key/value
ntus1017 has quit [Remote host closed the connection]
<Deele>
so `collection = [] foo(collection,addition) collection << addition foo(collection,"bar") end p collection` will output ["bar"]?
jds_ has quit [Remote host closed the connection]
KhalilC has quit [Ping timeout: 256 seconds]
jds_ has joined #ruby
<Deele>
I guess I need interactive ruby
tomzx_mac_ has joined #ruby
apeiros has quit [Remote host closed the connection]
swistak35 has quit [Read error: Operation timed out]
apeiros has joined #ruby
tomzx_mac has quit [Ping timeout: 256 seconds]
Mars___ has quit [Ping timeout: 252 seconds]
<pothibo>
yes
<pothibo>
collection can be added/remove
<Morrolan>
Your example up there, once you fixed the syntax, will recurse indefinitely. :P
<pothibo>
ahaa
Mars` has quit [Ping timeout: 256 seconds]
jds_ has quit [Ping timeout: 264 seconds]
RORgasm has joined #ruby
sambao21 has joined #ruby
Zolo has joined #ruby
samuel02 has joined #ruby
apeiros has quit [Ping timeout: 256 seconds]
denver has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
takezawa has joined #ruby
kasper has joined #ruby
RORgasm has quit [Ping timeout: 276 seconds]
vlad_starkov has joined #ruby
Zolo has quit [Remote host closed the connection]
mary5030 has joined #ruby
takezawa has quit [Ping timeout: 256 seconds]
sepp2k has quit [Ping timeout: 246 seconds]
sepp2k has joined #ruby
tjbiddle_ has joined #ruby
nettoweb has quit [Quit: nettoweb]
tjbiddle has quit [Ping timeout: 246 seconds]
tjbiddle_ is now known as tjbiddle
cofin has quit [Quit: cofin]
rsahae has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
ninegrid has quit [Ping timeout: 248 seconds]
ntus1017 has joined #ruby
RichardBaker has joined #ruby
nomenkun has quit [Remote host closed the connection]
lutfidemirci has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
RobW_ has joined #ruby
marcgg has quit [Read error: No route to host]
marcgg has joined #ruby
fyym has joined #ruby
headius has quit [Quit: headius]
cheese1756 has quit [Excess Flood]
Chat3357 has joined #ruby
<Chat3357>
Hi
Chat3357 has quit [Client Quit]
cheese1756 has joined #ruby
vdandre has quit [Quit: leaving]
JZTech101 has quit [Read error: Connection reset by peer]
fyym has quit [Remote host closed the connection]
asteve has joined #ruby
strax has joined #ruby
fomatin has joined #ruby
fulcan has quit [Quit: ircII EPIC5-0.3.5 -- Are we there yet?]
JZTech101 has joined #ruby
Jackneill has quit [Remote host closed the connection]
JZTech101 has quit [Max SendQ exceeded]
d4rkstalk3r has quit [Read error: Operation timed out]
Al__ has joined #ruby
Al__ has quit [Read error: Connection reset by peer]
Al__ has joined #ruby
graft has quit [Ping timeout: 264 seconds]
headius has joined #ruby
mary5030 has quit [Remote host closed the connection]
graft has joined #ruby
v0n has quit [Ping timeout: 260 seconds]
rsahae has quit [Quit: rsahae]
jacktrick has joined #ruby
kofno has joined #ruby
graft has quit [Ping timeout: 246 seconds]
nomenkun has joined #ruby
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
g3orge has joined #ruby
asteve has joined #ruby
tvw has quit [Read error: Operation timed out]
nomenkun has quit [Ping timeout: 264 seconds]
mars__ has joined #ruby
eldariof has quit [Ping timeout: 246 seconds]
jds_ has joined #ruby
jonathanwallace1 has quit [Ping timeout: 252 seconds]
subbyyy has quit [Ping timeout: 246 seconds]
Al__ has quit [Quit: Al__]
<davidcelis>
Hi
graft has joined #ruby
spider-mario has quit [Remote host closed the connection]
mars__ has quit [Ping timeout: 264 seconds]
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jds_ has quit [Ping timeout: 252 seconds]
jonathanwallace1 has joined #ruby
kofno has quit [Remote host closed the connection]
_seanc_ has joined #ruby
LennyLinux has joined #ruby
jimg has joined #ruby
cads has joined #ruby
demet8 has joined #ruby
jimg has quit [Ping timeout: 264 seconds]
<hoelzro>
Hi
cj3kim has quit [Remote host closed the connection]
JZTech101 has joined #ruby
codezombie13 has joined #ruby
codezombie has quit [Read error: Connection reset by peer]
rickruby has joined #ruby
JZTech101 has quit [Max SendQ exceeded]
mahmoudimus has joined #ruby
roadt_ has quit [Ping timeout: 276 seconds]
poseid has quit [Quit: poseid]
arya has quit [Disconnected by services]
fabioluciano has joined #ruby
staafl has joined #ruby
arya_ has joined #ruby
LnL7 has joined #ruby
jhowarth_ has joined #ruby
wallerdev has joined #ruby
LnL has quit [Ping timeout: 246 seconds]
sailias has joined #ruby
subbyyy has joined #ruby
airlok has joined #ruby
demet8 has quit [Quit: demet8]
airlok has quit [Remote host closed the connection]
bionoid has joined #ruby
poseid has joined #ruby
jds_ has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit [Remote host closed the connection]
RORgasm has joined #ruby
emmanuelux has quit [Ping timeout: 256 seconds]
lindenle has quit [Quit: This computer has gone to sleep]
JZTech101 has joined #ruby
JZTech101 has quit [Max SendQ exceeded]
undert_ has joined #ruby
JZTech101 has joined #ruby
marcgg has quit [Read error: No route to host]
RORgasm has quit [Ping timeout: 276 seconds]
marcgg has joined #ruby
jds_ has joined #ruby
Davey has joined #ruby
bionoid has quit [Remote host closed the connection]
JZTech101 has quit [Ping timeout: 252 seconds]
dmiller_ has quit [Remote host closed the connection]
zigomir has joined #ruby
marcgg has quit [Read error: No route to host]
dmiller has joined #ruby
marcgg has joined #ruby
jds_ has quit [Remote host closed the connection]
ciziar has joined #ruby
emmanuelux has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
monkegjinni has joined #ruby
JZTech101 has joined #ruby
mahmoudimus has joined #ruby
s0ber_ has joined #ruby
monkegjinni has quit [Read error: No route to host]
dhruvasagar has quit [Ping timeout: 268 seconds]
s0ber has quit [Ping timeout: 268 seconds]
kayloos has quit [Remote host closed the connection]
ferdev has quit [Ping timeout: 256 seconds]
monkegji_ has quit [Ping timeout: 268 seconds]
s0ber_ is now known as s0ber
g3orge has quit [Quit: leaving]
ninegrid has joined #ruby
sailias has quit [Ping timeout: 246 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
tomzx has joined #ruby
nivoc has quit [Quit: nivoc]
MrZYX is now known as MrZYX|off
ivanoats_ has joined #ruby
codezombie13 has quit [Ping timeout: 245 seconds]
brennanMKE has quit [Read error: Connection reset by peer]
cofin has quit [Quit: cofin]
tomzx has quit [Disconnected by services]
icecandy has quit [Remote host closed the connection]
brennanMKE has joined #ruby
ivanoats_ has quit [Remote host closed the connection]
<Fire-Dragon-DoL>
I always love ruby syntax: where(email: email, subscribed: true).limit(1).first or email
<Fire-Dragon-DoL>
:Q_
vlad_starkov has joined #ruby
ToApolytoXaos has quit [Quit: Leaving]
cj3kim has joined #ruby
msuszczy has quit [Ping timeout: 260 seconds]
butblack has joined #ruby
hadees has joined #ruby
RobW_ has joined #ruby
msuszczy has joined #ruby
iamjbecker has joined #ruby
BrianJ has joined #ruby
k610 has quit [Quit: Leaving]
cj3kim has quit [Ping timeout: 260 seconds]
demet8 has joined #ruby
milardovich has joined #ruby
Mon_Ouie has quit [Ping timeout: 246 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
pkrnj has quit [Quit: Computer has gone to sleep.]
ffio has joined #ruby
<krainboltgreene>
Don't use `or`, Fire-Dragon-DoL.
<krainboltgreene>
Use ||
jonathanwallace1 has quit [Ping timeout: 252 seconds]
_ffio_ has quit [Ping timeout: 268 seconds]
Mon_Ouie has joined #ruby
Neomex has joined #ruby
teclator has quit [Ping timeout: 248 seconds]
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
danslo has quit [Read error: Connection reset by peer]
_seanc_ has joined #ruby
danslo has joined #ruby
Nisstyre-laptop has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<RubyPanther>
krainboltgreene: based on that snipped, you may be right... or wrong
<RubyPanther>
snippet
teclator has joined #ruby
<krainboltgreene>
In this case he wants an object or a string, I can't imagine why he'd want `or`.
<krainboltgreene>
Now, if it was some action, like user.ban! or redirect_to
Neomex has quit [Client Quit]
Nisstyre-laptop is now known as Nisstyre
bionoid has joined #ruby
kirun has quit [Quit: Client exiting]
motto has quit [Quit: Sto andando via]
emmanuelux has quit [Read error: Operation timed out]
<Kelet>
Opinions on image magick gems for ruby? I don't want to have to compile RMagick, and quick_magick has the problem that it's too easy to generate a command to big for the command line.
<Kelet>
Going to try mini_magick
iamjbecker has quit [Remote host closed the connection]
<ner0x>
So when using fog you have to first dir.files.create(key: @key) before you can actually delete it?
<krainboltgreene>
"compile" RMagick?
nomenkun has joined #ruby
<Kelet>
RMagick requires me to install developer tools to compile something.
<Kelet>
Unfortunately mini_magick is the same as quick_magick, it uses the command line tools and thus commands are easily too large. Suppose I'll just bite the bullet and compile RMagick.
Xeago has joined #ruby
MadDog31 has quit [Quit: Leaving]
nomenkun has quit [Ping timeout: 264 seconds]
msuszczy has quit [Ping timeout: 260 seconds]
msuszczy has joined #ruby
fomatin has quit [Quit: Computer has gone to sleep.]
ferdev has joined #ruby
<krainboltgreene>
I'm fairly sure the only thing rmagick requires is imagemagick
codecop has quit [Remote host closed the connection]
butblack has left #ruby [#ruby]
<Kelet>
krainboltgreene, Well I'm here, typing gem install rmagick with imagemagick in my path and it's telling me I need the developer tools to compile it.
cofin has joined #ruby
<krainboltgreene>
Paste log?
emmanuelux has joined #ruby
fabioluciano has quit [Remote host closed the connection]
<popl>
Kelet: You should pay attention to the output of the commands. The information can be useful. :)
cdelo__ has quit [Read error: Connection reset by peer]
Opettaja has joined #ruby
<popl>
"Check the mkmf.log file for more details."
threesome has quit [Ping timeout: 248 seconds]
brianherman has joined #ruby
demet8 has joined #ruby
Villadelfia has joined #ruby
cdelo has joined #ruby
<krainboltgreene>
Kelet: Realistically windows development sucks. No one tests their gems against Windows and many gems you'll want require native extensions.
<popl>
Kelet: you could use a better pastebin site too, like the one pointed to in the topic (pastebin.com *sucks*)
<Kelet>
Well, I was mostly just asking if anyone had any sensible alternatives for image modification, specifically I need to edit pixels like an array, but it would be super, super nice if I could make multiple frames and combine it to an animation, hence why I wanted to use something that used ImageMagick
<Kelet>
as it's the only tool I know of that can do such a thing that has bindings in Ruby
jacktrick has quit [Quit: Leaving]
<krainboltgreene>
Yeah.
Mon_Ouie has quit [Ping timeout: 248 seconds]
codezombie13 has joined #ruby
<Kelet>
but most of the command-line interfaces get overloaded because I need to draw a lot of pixels and it keeps making the command bigger. And TBH I read a lot of bad things about RMagick involving high memory usage and memory leaks, I don't have much memory.
<krainboltgreene>
So you have two options: Change your platform or figure out what piece your missing.
mercwithamouth has joined #ruby
codezombie13 has quit [Read error: Connection reset by peer]
threesome has joined #ruby
codezombie has quit [Read error: Connection reset by peer]
codezombie13 has joined #ruby
machty has joined #ruby
<krainboltgreene>
Oh hey, or you could try out jruby.
<krainboltgreene>
I know it has better windows support, and usually there's a java native extension version of popular gems.
<krainboltgreene>
That would basically solve your problem.
zigomir has quit [Ping timeout: 268 seconds]
codezombie has joined #ruby
jimg has joined #ruby
<machty>
hi all, this might be more of a rails question, but it seems to be Ruby-related at the root: I'm requiring the active_admin gem, and in a rails initializer, I reopen class in that gem to `include` a module defined in my app's lib directory. Based on my tests in IRB, it seems that the way things should work is that if a class is defined, and includes a module, and then that module is reopened, the including class also gets those changes… confirm?
codezombie has quit [Read error: Connection reset by peer]
codezombie has joined #ruby
ryanhirsch has joined #ruby
<machty>
but this doesn't seem to be happening
<popl>
machty: there's a #rubyonrails
codezombie13 has quit [Read error: Connection reset by peer]
msuszczy has quit [Quit: Lost terminal]
<machty>
popl: i know… but i think this is more of a ruby question. i might just be fundamentally misunderstanding how class/module reopening/inclusion works
<popl>
ok
headius has quit [Quit: headius]
codezombie13 has joined #ruby
codezombie13 has quit [Client Quit]
jimg_ has joined #ruby
JZTech101 has quit [Ping timeout: 268 seconds]
tkuchiki has joined #ruby
harrymoreno has quit [Ping timeout: 264 seconds]
harrymoreno has joined #ruby
cdelo_ has joined #ruby
danslo has quit [Read error: Connection reset by peer]
cdelo has quit [Ping timeout: 248 seconds]
danslo has joined #ruby
codezombie has quit [Ping timeout: 260 seconds]
nomenkun has joined #ruby
<krainboltgreene>
machty: What you're saying is correct.
<popl>
What is machty saying?
<krainboltgreene>
machty: But you should make a tiny script to confirm this.
tkuchiki has quit [Remote host closed the connection]
<machty>
i did. i think i might be getting bitten by some rails magic
<machty>
thanks for the confirm though
<krainboltgreene>
Most likely due to the autoload process.
<Deele>
I dunno why, it outputs array with same numbers
bionoid has joined #ruby
Thermo has joined #ruby
<popl>
control structure makes it look like a snake!
obs has quit [Quit: Konversation terminated!]
<Deele>
that is... a good attribute
vigintas has joined #ruby
mercwithamouth has quit [Ping timeout: 268 seconds]
ciziar has quit [Quit: Computer has gone to sleep.]
<popl>
Deele: I think you should not try to port something from some other language and instead start with a generalized description of an algorithm then go from there
<Deele>
already did that, but it worked for numbers up to 3 digits
JZTech101 has joined #ruby
AntelopeSalad has joined #ruby
harrymoreno has quit [Ping timeout: 264 seconds]
teclator has quit [Ping timeout: 240 seconds]
<AntelopeSalad>
hey guys, i added the 'which gem' path to my PATH dir but i can't run any gems that i install -- any idea what's going on with that? i'm brand new to ruby
harrymoreno has joined #ruby
<popl>
Deele: why couldn't you make it work for longer sequences?
A124 has quit [Ping timeout: 264 seconds]
Kar- has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
julweber has joined #ruby
bionoid has quit [Remote host closed the connection]
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
jonathanwallace1 has joined #ruby
Lewis has joined #ruby
cofin has quit [Quit: cofin]
Lewis is now known as lewix
<lewix>
hi
LennyLinux has joined #ruby
machty has quit [Ping timeout: 276 seconds]
djbkd has joined #ruby
Thermo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
milardovich has quit [Quit: Leaving]
jimg has quit [Remote host closed the connection]
harrymoreno has quit [Ping timeout: 256 seconds]
Soliah has quit [Ping timeout: 248 seconds]
blackmesa has quit [Quit: WeeChat 0.4.1]
mercwithamouth has joined #ruby
freeayu has joined #ruby
jonathanwallace1 has quit [Ping timeout: 252 seconds]
janniks has quit [Quit: Leaving]
janniks_ has quit [Remote host closed the connection]
postmodern has joined #ruby
harrymoreno has joined #ruby
nomenkun has joined #ruby
skasio_ has joined #ruby
skasio_ has quit [Client Quit]
daihuws has joined #ruby
marr has quit [Ping timeout: 256 seconds]
nomenkun has quit [Ping timeout: 240 seconds]
zhando` has joined #ruby
banzounet has joined #ruby
RORgasm has joined #ruby
fredjean has quit [Ping timeout: 246 seconds]
saurabh has joined #ruby
Peej has joined #ruby
<saurabh>
hi guys
<Deele>
hi
zhando has quit [Remote host closed the connection]
ninegrid has quit [Remote host closed the connection]
<saurabh>
any one attended recently ruby conference '2013
demet8 has quit [Quit: demet8]
emergion has joined #ruby
fredjean has joined #ruby
demet8 has joined #ruby
brianherman has quit [Quit: Leaving]
brianherman has joined #ruby
statarb3 has quit [Quit: Leaving]
saurabh has quit [Client Quit]
RORgasm has quit [Ping timeout: 268 seconds]
marcgg has quit [Read error: No route to host]
harrymoreno has quit [Quit: harrymoreno]
fomatin has joined #ruby
marcgg has joined #ruby
tkuchiki has joined #ruby
banghouse has quit [Remote host closed the connection]
fomatin has quit [Client Quit]
emergion has quit [Quit: Computer has gone to sleep.]
<banzounet>
Hey, I've this object : http://pastebin.com/WynSR9W4 if I want to acces to a var like entities I should do nameOfObject.entities right?? (I'm pretty new to ruby)
crazymykl has quit [Ping timeout: 276 seconds]
tkuchiki has quit [Remote host closed the connection]
nari has joined #ruby
x1337807x has joined #ruby
ntus1017 has quit [Remote host closed the connection]
jimg has joined #ruby
jimg has quit [Remote host closed the connection]
Thermo has joined #ruby
Tarential has quit [Excess Flood]
<krainboltgreene>
banzounet: Usually, yes.
Tarential has joined #ruby
<krainboltgreene>
You don't access variables this way, you are calling a method.
takezawa has joined #ruby
<krainboltgreene>
That method then might return the value of a instance variable (usually)
justsee has quit [Ping timeout: 246 seconds]
Es0teric has joined #ruby
vigintas has quit [Ping timeout: 264 seconds]
nisa has joined #ruby
lindenle has quit [Quit: This computer has gone to sleep]
<banzounet>
krainboltgreene: is there a way to know all the methods of a object? (since It's not my class)
generalissimo has quit [Remote host closed the connection]
<krainboltgreene>
banzounet: Yes, everything that inherits from Object has access to the #public_methods, #private_methods, etc.
kasper has quit [Remote host closed the connection]
v0n has joined #ruby
<banister>
banzounet: if you use pry, you can just go: ls your_object
<banister>
and it'll tell you
<krainboltgreene>
To get ONLY the methods of that class, and not methods it inherits from other classes, use object.public_methods(false)
havenwood has joined #ruby
nomenkun has joined #ruby
<krainboltgreene>
banister: As much as I love Pry, it's better to start understanding how Ruby's method categorization works.
<banister>
:)
ZuzzleBuzzer has joined #ruby
zhando` has quit [Remote host closed the connection]
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]