fflush changed the topic of #ruby to: Ruby 1.9.3-p194: http://ruby-lang.org || Paste > 3 lines of text on pastebin.com
cj3kim has quit [Quit: This computer has gone to sleep]
LouisGB has quit [Ping timeout: 246 seconds]
<mc0e1>
I guess if you think you need to keep up with how others do their ads...
<drags>
I'm well aware.. and I find all forms of commercialism to be mental pollution.. but "to each their own" is a lesson I've learned to question less and less as I age
<mc0e1>
right. now take that idea back to the bot
<drags>
(again: not my bot)
<fowl>
that bot is a bastard, nobody will own up to it
Nowaker has quit [Ping timeout: 246 seconds]
<drags>
fowl: I just said, it's owned by 'radar'
M- has joined #ruby
Nowaker has joined #ruby
<drags>
or at least, he came in from the same linode host
<drags>
and he's currently in #rubyonrails
<trooney>
drags: you put me on the right path. i just had to move my RACK_ENV stuff ahead of my require's ... for some reason.
<blazes816>
drags: Radar is an op in #rubyonrails
<drags>
trooney: it works? if so, hell yeah to cargo culting tech support :)
banisterfiend has joined #ruby
<drags>
blazes816: if he's not one here and didn't ask to have his bot giving out response in here than he needs to have his bot part
beneggett has quit [Quit: Computer has gone to sleep.]
<blazes816>
drags: just letting you know who he is. idk what the problem is.
<blazes816>
oh, I see. had no idea helpa was round these parts
<drags>
helpa: part #ruby
codyrobbins has left #ruby [#ruby]
<drags>
helpa: fuck off
<fowl>
helpa: get out
<fowl>
helpa: LEAVE THIS PLACE
baroquebobcat has quit [Quit: baroquebobcat]
<fowl>
drags: i called him out on it in the channel, if that doesnt work nothing will
BSaboia__ has quit [Quit: Fui embora]
<fowl>
besides banning obv
machty has quit [Ping timeout: 276 seconds]
<drags>
I feel bad, codyrobbins had a real and interesting question and we're chatting about bot politics :(
<drags>
unfortunately I'm far from qualified to add anything to his discussion :/
recycle has joined #ruby
cantonic has quit [Quit: cantonic]
maxmmurphy has quit [Quit: maxmmurphy]
futini has quit [Ping timeout: 248 seconds]
ZachBeta has joined #ruby
lolzie has quit [Quit: Page closed]
luckyruby has quit [Remote host closed the connection]
jgrevich_ has joined #ruby
<fowl>
drags: his question was lame. its possible to do all those things but he wanted an "easy way" ie someone to write it for him
jgrevich has quit [Ping timeout: 252 seconds]
jgrevich_ is now known as jgrevich
cj3kim has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
cj3kim has quit [Changing host]
cj3kim has joined #ruby
cj3kim has quit [Remote host closed the connection]
bradhe has joined #ruby
<canton7>
Tachyon, and you've spotted your typo?
hunglin has joined #ruby
hunglin has quit [Client Quit]
futini has joined #ruby
rjsamson has joined #ruby
<Tachyon>
canton7: no, i still don't know
Criztian has quit [Remote host closed the connection]
<canton7>
Tachyon, @muter/@mutex ?
<Tachyon>
ah
<Tachyon>
canton7: thx!
<canton7>
it helps if you post the error ;)
elico has quit [Quit: elico]
<canton7>
that would have told you that there's no method 'synchronise for NilClass
<canton7>
which means @mutex was never initialized... and that leans you to the constructor
<shvelo>
btw I now checked out coffeescript, it's like both Python and Ruby that compiles to JS, it's awesomesauce
jgrevich_ has joined #ruby
<shvelo>
shevy,
<shevy>
shvelo switch to python?
<shevy>
hehe
<shevy>
I dunno
<shevy>
I dont wanna use JS
<shvelo>
I want to create native GUI so Ruby doesn't fit there
fyolnish_ has joined #ruby
Gm4n has joined #ruby
jgrevich has quit [Ping timeout: 244 seconds]
jgrevich_ is now known as jgrevich
AndChat| has joined #ruby
<blazes816>
shvelo: jruby + swing!
keymone_ has joined #ruby
fbernier has quit [Ping timeout: 245 seconds]
bricker88 has quit [Quit: Leaving.]
auntieNeo has quit [Ping timeout: 245 seconds]
<shvelo>
blazes816, hmm, I'll check it out
<shvelo>
but Python is a must-learn too
<blazes816>
do it my son
keymone has quit [Ping timeout: 246 seconds]
keymone_ is now known as keymone
<blazes816>
it's not bad to learn, but must-learn is too far
<blazes816>
I'd say if you're trying to learn, perl > python as far as education
fyolnish_ has quit [Remote host closed the connection]
<blazes816>
mostly what not to do
auntieNeo has joined #ruby
fbernier has joined #ruby
mmitchell has joined #ruby
Banistergalaxy has quit [Ping timeout: 245 seconds]
fyolnish_ has joined #ruby
<shvelo>
I'm also gonna learn Java
<shvelo>
Java and Python are used at Google
<shvelo>
so I'll need them :D
LouisGB has quit []
<shvelo>
I hope
<blazes816>
are you trollin?
<blazes816>
sounds like perhaps not
<blazes816>
i can't stand java, and barely like python, so i'm definitely biased against them. but it's all about general experience/knowledge. if a company hires you because and only because you know language X it probably isn't a job you want
enyo has quit [Quit: Lost terminal]
kaushik_ has quit [Ping timeout: 264 seconds]
jonathanwallace has quit [Remote host closed the connection]
ttilley has quit [Quit: ttilley]
ezra has joined #ruby
ezra has quit [Changing host]
ezra has joined #ruby
mmitchell has quit [Ping timeout: 246 seconds]
ZachBeta has quit [Quit: Computer has gone to sleep.]
jonathanwallace has joined #ruby
DrShoggoth has joined #ruby
vitor-br has joined #ruby
jonathan_ has joined #ruby
jonathanwallace has quit [Read error: Connection reset by peer]
yshh has joined #ruby
yshh has quit [Remote host closed the connection]
yshh has joined #ruby
dmiller has quit [Remote host closed the connection]
beneggett has joined #ruby
Bosma has quit [Quit: leaving]
_veer has quit [Quit: Leaving]
bapa has quit [Read error: Connection reset by peer]
luxurymode has joined #ruby
bapa has joined #ruby
jonathan_ has quit [Remote host closed the connection]
beneggett has quit [Quit: Computer has gone to sleep.]
tommyvyo has quit [Quit: Computer has gone to sleep.]
dmiller has joined #ruby
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
gh has joined #ruby
horofox has joined #ruby
beneggett has joined #ruby
adeponte has quit [Remote host closed the connection]
jonathanwallace has quit [Ping timeout: 246 seconds]
rcloak has quit [Quit: rcloak]
pdtpatrick has joined #ruby
blazes816 has quit [Quit: blazes816]
chrishunt has quit [Quit: Leaving...]
shvelo has quit [Read error: Connection reset by peer]
eignerchris has quit [Remote host closed the connection]
elux has quit [Quit: Leaving...]
hersoy has quit [Ping timeout: 272 seconds]
vitor-br has quit [Quit: Saindo]
tiripamwe has joined #ruby
gh has quit [Quit: gh]
alvaro_o has quit [Quit: Ex-Chat]
hersoy has joined #ruby
fragmachine has joined #ruby
mascool has quit [Ping timeout: 244 seconds]
<fragmachine>
CAn anyone tell me why Mechanize won't load https sites? I try 'Mechanize.new.get('https://webmail.westnet.com.au/login/default.aspx') and I always recieve a 'Errno::ECONNRESET: Connection reset by peer - SSL_connect' message
<fragmachine>
it's driving me mad
joofsh has joined #ruby
banisterfiend has joined #ruby
gtuckerkellogg has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
c0rn_ has joined #ruby
c0rn_ has quit [Client Quit]
sambio_ has joined #ruby
sambio_ has quit [Read error: Connection reset by peer]
maletor has joined #ruby
kvirani has quit [Remote host closed the connection]
c0rn_ has joined #ruby
AndChat| has quit [Ping timeout: 272 seconds]
jorge has joined #ruby
steven- has quit [Ping timeout: 240 seconds]
wpaulson has quit [Read error: Connection reset by peer]
wpaulson has joined #ruby
jrxiii has joined #ruby
<jrxiii>
hi all
Chryson has joined #ruby
Hanmac1 has joined #ruby
jorge has quit [Remote host closed the connection]
<jrxiii>
I'm looking for some guidance on parallel processing within ruby variants
<fragmachine>
exit
fragmachine has quit [Quit: leaving]
beneggett has joined #ruby
<jrxiii>
Is there an accepted means of getting around the GIL while using, say, jruby?
Hanmac has quit [Ping timeout: 245 seconds]
<banisterfiend>
jrxiii: jruby doesnt have a gil
<jrxiii>
right
bradhe has quit [Remote host closed the connection]
ibash has joined #ruby
<jrxiii>
so if I use jruby to parallelize my tasks, I should be able to take full advantage of multiple cores on a machine?
<banisterfiend>
i guess so
<jrxiii>
hmm… time to read then
<jrxiii>
effing jruby
joofsh has quit [Quit: Page closed]
c0rn_ has quit [Quit: Computer has gone to sleep.]
<fragmachine>
but I get an error: Errno::ECONNRESET: Connection reset by peer - SSL_connect
<fragmachine>
this script used to work about two months ago no problems
<fragmachine>
I've had no luck googling the problem
fantazo has quit [Remote host closed the connection]
mmitchell has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
<Hanmac>
fragmachine: did you install your ruby yourself or installed it via rvm?
<fragmachine>
I installed it via rvm
<Hanmac>
what happend if you do "require 'opensssl'" ?
<fragmachine>
I'll try
<fragmachine>
aha: LoadError: cannot load such file -- open-ssl
<fragmachine>
gem install open-ssl?
<Hanmac>
sorry i mean: "require 'openssl'"
<Hanmac>
without "-"
<fragmachine>
oh ok
mmitchell has quit [Ping timeout: 246 seconds]
mascool has quit [Ping timeout: 244 seconds]
<fragmachine>
true
<fragmachine>
it's there
<Hanmac>
ok so openssl is installed ...
<fragmachine>
I looked in the cert directory in rvm and there are no certs there
<fragmachine>
not sure if there are supposed to be any though
<Azure>
When reading a large file (like say, 100MB or more), would it be wise to use IO#each_line rather than read the entire file and iterate over the lines in memory?
cezar has joined #ruby
arkiver has quit [Quit: Leaving]
<bnagy>
depends if you think 100M is a significant amount of memory
banisterfiend has joined #ruby
<Hanmac>
Azure yeah each_line may be better ... or look at File.foreach
<bnagy>
but if it's just as easy to iterate then yes.
gen0cide_ has quit [Quit: ["rm -rf $ME"]]
rakl has joined #ruby
<fragmachine>
is there a Ruby mechanize irc channel?
cezar has quit [Client Quit]
zommi has joined #ruby
<fragmachine>
or maybe I should askin rvm
<Hanmac>
hm i cant help you ... your line works for me (a non-rvm user)
<fragmachine>
hmm
<fragmachine>
I think I'll go ask the folks over at rvm
<fragmachine>
must be a rvm issue
<Mon_Ouie>
I doubt that has anything to do with RVM
<Hanmac>
every error has to do with RVM :D
<Azure>
well, I've been starting work on a project that might need to handle a large amount of logfiles and parsing a good amount of that data into objects, further processing that data into statistics. Wee.
<fragmachine>
I just installed mechanize in the system ruby, when I try and require it I get an error with this line in it 'from /usr/lib/ruby/1.8/openssl/x509-internal.rb:53
<fragmachine>
mechanize won't load in 1.8.7
<fragmachine>
do you think that might be a clue to the problem?
eldariof has joined #ruby
Tachyon has quit [Ping timeout: 272 seconds]
<fragmachine>
I'm on ubuntu 12.04
keymone has left #ruby [#ruby]
Tachyon has joined #ruby
<Hanmac>
you could install ruby1.9.1-full
ph^ has joined #ruby
<fragmachine>
ok I'll try that
<Hanmac>
and then change the system ruby with "sudo update-alternatives --config ruby"
<fragmachine>
I don't want to mess with the system ruby if I can help it
specialGuest has quit [Quit: WeeChat 0.3.8]
<Hanmac>
my system ruby has 1.9.3p194 as version
<fragmachine>
are you on ubuntu?
BiHi has joined #ruby
<Hanmac>
yeah .. but its the next version :P
<fragmachine>
haha cool
Know1edge has quit [Ping timeout: 244 seconds]
<fragmachine>
I just changed over to ubuntu from mac
<fragmachine>
it's good so far
thone has joined #ruby
<Scient>
or you could just compile ruby from source, which is easy as pie :)
thone_ has quit [Ping timeout: 244 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
wobr has joined #ruby
<fragmachine>
installing the full ruby didn't work
ephemerian1 has joined #ruby
<Scient>
try it from source then
<Scient>
its just configure, make and make install basically
ephemerian1 has quit [Client Quit]
<fragmachine>
can someone tell me what's in the /home/fragmachine/.rvm/usr/ssl/certs
jprovazn_away is now known as jprovazn
<fragmachine>
folder?
<fragmachine>
if I install it from source will it take over the system ruby?
josh^ has quit [Ping timeout: 246 seconds]
<Scient>
you'd need to remove the rvm path thingie
<fragmachine>
/usr/ssl/certs
recycle has quit [Remote host closed the connection]
xorigin has joined #ruby
josh^ has joined #ruby
luckyruby has quit [Remote host closed the connection]
qwerxy has quit [Quit: offski]
<Hanmac>
fragmachine ... i have a package called ca-certificates installed ... maybe it helps you
charliesome has joined #ruby
<fragmachine>
ok cool, I'll see if I can find and install it from somewhere
<Hanmac>
it should be installable via apt
<Hanmac>
(apt-get)
Tachyon has quit [Ping timeout: 250 seconds]
<Banistergalaxy>
Hanmac hello hans
<Banistergalaxy>
Guten tag
Tachyon has joined #ruby
<fragmachine>
hmm it's already on my system
<Hanmac>
hm then i dont know why yoru rvm is not working
mr_dynamix has joined #ruby
mr_dynamix has quit [Client Quit]
<fragmachine>
oh well thanks for your help
<fragmachine>
I'll figure it out somehow
ori-l has joined #ruby
<ori-l>
how do i select elements from a hash if the key matches some condition?
<Banistergalaxy>
Use select?
c0rn_ has quit []
fragmachine has quit [Quit: leaving]
statarb3 has joined #ruby
statarb3 has quit [Remote host closed the connection]
statarb3 has joined #ruby
statarb3 has quit [Read error: Connection reset by peer]
Criztian has joined #ruby
mr_dynamix has joined #ruby
statarb3 has joined #ruby
smellynoser has joined #ruby
Criztian has quit [Remote host closed the connection]
c0rn_ has joined #ruby
keymone has joined #ruby
elico has joined #ruby
bradhe has joined #ruby
kaushik_ has quit [Ping timeout: 276 seconds]
jimeh has joined #ruby
bradhe has quit [Ping timeout: 246 seconds]
haxrbyte has joined #ruby
Xeago has joined #ruby
etank has quit [Ping timeout: 246 seconds]
mr_dynamix has quit [Quit: mr_dynamix]
mmitchell has joined #ruby
ephemerian has joined #ruby
haxrbyte_ has joined #ruby
mr_dynamix has joined #ruby
amskah has quit [Quit: Leaving]
love_color_text has joined #ruby
puchi23 has joined #ruby
haxrbyte has quit [Ping timeout: 246 seconds]
chimay has joined #ruby
chimay has quit [Changing host]
chimay has joined #ruby
diegoviola has quit [Quit: leaving]
ryanf has quit [Ping timeout: 252 seconds]
mmitchell has quit [Ping timeout: 246 seconds]
ori-l is now known as ori-l-away
hipertracker has joined #ruby
rakl has quit [Quit: sleeping]
kenneth has quit [Quit: kswizz.com]
stepnem has joined #ruby
Tachyon has quit [Ping timeout: 244 seconds]
Morkel has quit [Quit: Morkel]
Tachyon has joined #ruby
zigomir has joined #ruby
pdtpatrick has quit [Quit: pdtpatrick]
pingfloyd has quit [Quit: pingfloyd]
hoelzro|away is now known as hoelzro
<hoelzro>
does anyone have any recommendations for viewing ri documentation from within Vim?
gen0cide_ has joined #ruby
hoelzro is now known as hoelzro|away
elaptics`away is now known as elaptics
s1n4 has joined #ruby
puchi23 has quit [Remote host closed the connection]
alec-c4 has quit [Remote host closed the connection]
thunderstrike has quit [Read error: Connection reset by peer]
thunderstrike has joined #ruby
baphled has joined #ruby
Gabita123 has joined #ruby
justinmcp has quit [Remote host closed the connection]
robozahn has joined #ruby
dryule has joined #ruby
chussenot has joined #ruby
<banisterfiend>
hoelzro|away: can't vim open shells?
<banisterfiend>
emacs can :D
jrist-afk has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
robotmay has joined #ruby
beiter has joined #ruby
rohit has joined #ruby
Tachyx has joined #ruby
Tachyon has quit [Ping timeout: 252 seconds]
justsee has quit [Quit: Leaving...]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
imami|afk is now known as banseljaj
justsee has quit [Client Quit]
<ionte>
Hi. Need a hint. I have a string A that contains between zero and four characters. What is the best way to make this string always of length 4, padding with, say, "X"?
etank has joined #ruby
<ionte>
so - "" -> "XXXX", "a" -> "aXXX", "abcd" -> "abcd"
<bnagy>
ljust
<Xeago>
not rjust?
<Hanmac>
>> "%4s" % "F"
<al2o3cr>
(String) " F"
saschagehlich has joined #ruby
<banisterfiend>
>> "a".ljust(4, "X")
<al2o3cr>
(String) "aXXX"
<banisterfiend>
>> "a".rjust(4, "X")
<al2o3cr>
(String) "XXXa"
saschagehlich has quit [Read error: Connection reset by peer]
<banisterfiend>
Xeago: Nope
<banisterfiend>
>> "ab".ljust(4, "X")
<al2o3cr>
(String) "abXX"
<banisterfiend>
>> "abc".ljust(4, "X")
<al2o3cr>
(String) "abcX"
<banisterfiend>
>> "abcdef".ljust(4, "X")
<al2o3cr>
(String) "abcdef"
dimday has quit [Remote host closed the connection]
<bnagy>
or first I guess - but yeah I thought of first, uh.. first
<bnagy>
*or fist
wuzzzzaah has joined #ruby
<fowl>
o
bradhe has joined #ruby
jasonkuhrt has joined #ruby
jasonkuhrt has quit [Client Quit]
jrist has joined #ruby
jiphex has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
mneorr has left #ruby [#ruby]
peterpan has quit [Ping timeout: 245 seconds]
mmitchell has joined #ruby
athit has joined #ruby
<vectorshelve>
Hia
Markvilla has joined #ruby
Rochefort has joined #ruby
nari has quit [Ping timeout: 245 seconds]
justinmcp has joined #ruby
JohnDu has joined #ruby
mmitchell has quit [Ping timeout: 276 seconds]
Tachyx has quit [Ping timeout: 276 seconds]
<banisterfiend>
vectorshelve: hello Equus.
<vectorshelve>
banisterfiend: :)
Tachyx has joined #ruby
<banisterfiend>
vectorshelve: Oh Equus! Son of Flexus, son of Septus, son of Plexus!
<vectorshelve>
banisterfiend: :)
frogprince_mac has joined #ruby
nu7hatch has joined #ruby
puchi23 has joined #ruby
puchi23 has quit [Client Quit]
LouisGB has joined #ruby
ananthakumaran has quit [Ping timeout: 260 seconds]
puchi23 has joined #ruby
ananthakumaran has joined #ruby
Gabita123 has quit [Quit: Page closed]
nari has joined #ruby
cascalheira has joined #ruby
puchi23 has quit [Remote host closed the connection]
rakunHo has joined #ruby
darkf has joined #ruby
Takehiro has joined #ruby
<darkf>
I'm trying to install a native gem but I'm getting 'native gem requires installed buidl tools.' even though I'm in a mingw shell with gcc, make, sh, etc. Why?
<bnagy>
darkf: probably path stuff
<darkf>
yeah but they're in the path
<bnagy>
did you install devkit? That's the easiest way by far
<darkf>
nope, because I already have a mingw installation that works :p
<bnagy>
ok, well have fun with that then
<darkf>
anyone else?
wobr has quit [Read error: Connection reset by peer]
wobr has joined #ruby
freeayu has quit [Remote host closed the connection]
nu7hatch has left #ruby [#ruby]
hoelzro|away is now known as hoelzro
shadoi has quit [Quit: Leaving.]
<banisterfiend>
darkf: build it manually
<banisterfiend>
darkf: get the gem, ruby ruby extconf.rb and then execute the Makefile
JohnDu has left #ruby [#ruby]
SegFault1X|work2 has joined #ruby
<darkf>
banisterfiend: it just has a rakefile, which I assume won't install everything nicely for me?
hoelzro is now known as hoelzro|away
Rochefort has quit [Remote host closed the connection]
<banisterfiend>
darkf: it should have an extconf.rb in the ext/ directory
<darkf>
banisterfiend: ah, it does, thanks
c0rn_ has quit []
mklappstuhl has joined #ruby
dekroning has joined #ruby
SegFaultAX|work2 has quit [Ping timeout: 248 seconds]
SegFaultAX|work2 has joined #ruby
SegFault1X|work2 has quit [Ping timeout: 268 seconds]
thunderstrike has quit [Read error: Connection reset by peer]
thunderstrike has joined #ruby
arkiver has quit [Client Quit]
<ionte>
bnagy, Xeago, Hanmac, banisterfiend: thanks everyone! got a phone call and missed your answers, but "ljust" was exactly what i was looking for!
rohit has joined #ruby
s1n4 has quit [Ping timeout: 264 seconds]
deryl has joined #ruby
Takehiro has quit [Remote host closed the connection]
love_color_text has quit [Remote host closed the connection]
Takehiro has joined #ruby
<dryule>
l/quit
dryule has quit [Quit: leaving]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
elico has quit [Quit: elico]
elico has joined #ruby
tomaw_ has joined #ruby
cascalheira has joined #ruby
vlad_starkov has joined #ruby
kjellski has joined #ruby
mmitchell has joined #ruby
elico has quit [Quit: elico]
xkx has joined #ruby
mmitchell has quit [Ping timeout: 246 seconds]
Mon_Ouie has quit [Read error: Connection reset by peer]
Criztian has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
perun_ has quit [Ping timeout: 264 seconds]
<Hanmac>
mon_ouie does the changing host make so much sense? i allready saw your ip (or what ever this is)
chussenot has quit [Quit: chussenot]
Guedes_out is now known as Guedes
<Mon_Ouie>
It's done automatically when I identify. The point isn't really to hide my IP (or more commonly "host" in IRC-speak) ;)
fbernier has quit [Ping timeout: 245 seconds]
Hardcore has joined #ruby
mr_dynamix has quit [Quit: mr_dynamix]
<Hardcore>
hi have the problem: `require': no such file to load -- highline/import (LoadError)
<Hardcore>
but gem list say highline (1.6.14)
Takehiro has quit [Remote host closed the connection]
<Hardcore>
any suggestion?
statarb3 has quit [Quit: Leaving]
fbernier has joined #ruby
Takehiro has joined #ruby
<banisterfiend>
Hardcore: what ruby version?
<Hardcore>
banisterfiend: ruby 1.8.7
<banisterfiend>
Hardcore: require 'rubygems' first
<banisterfiend>
Hardcore: but really, why dont you upgrade to ruby 1.9 ?
<Hardcore>
banisterfiend: i don't know i'm very new to ruby
jenrzzz has quit [Ping timeout: 246 seconds]
<Hardcore>
hm something is still wrong
DrShoggoth has quit [Ping timeout: 246 seconds]
hoelzro|away is now known as hoelzro
<hoelzro>
banisterfiend: sure it can! but I was looking for something a little more "integrated"
<Hardcore>
end of installation Should be ruby 1.9.3p194: ruby 1.9.3p194
<Hardcore>
but ruby --version say 1.8.7
<banisterfiend>
Hardcore: install rvm or rbenv (google then :P)
<Hardcore>
whats rvm?
<Hardcore>
ah version manager
manizzle has quit [Ping timeout: 252 seconds]
krz has quit [Quit: krz]
manizzle has joined #ruby
Takehiro has quit [Ping timeout: 255 seconds]
samflores has joined #ruby
chussenot has joined #ruby
samflores has left #ruby [#ruby]
takamichi has quit [Ping timeout: 252 seconds]
takamichi has joined #ruby
<Hardcore>
banisterfiend: i used rvm install 1.9.3 but i just have 1.8 -.-
fearoffish has joined #ruby
withnale has quit [Quit: Terminated with extreme prejudice - dircproxy 1.2.0]
elico has joined #ruby
withnale has joined #ruby
<Hanmac>
Hardcore, your PATH is not fixed ... you need to add some rvm commands inside your bashrc ... read the docs of rvm
Takehiro has joined #ruby
<withnale>
Hi. Silly question. Can I just chmod 4755 a ruby script to get it to run setuid these days? (this is specifically setuid to a non-root user)
<banisterfiend>
Hardcore: rvm 1.9.3
<banisterfiend>
Hardcore: type that
mneorr1 has joined #ruby
rohit has quit [Quit: Leaving]
tomaw has quit [Quit: Quitting]
tomaw_ is now known as tomaw
elico has quit [Quit: Elico]
elico has joined #ruby
elico has quit [Client Quit]
Rochefort has joined #ruby
kvirani has joined #ruby
<Hanmac>
withnale add "#!/usr/bin/env ruby" as first and "# encoding: utf-8" as second line
<whowantstolivefo>
what is the best advertising platform for selling ipad/iphone/android apps ? google ? facebook or any other ? pleasa advice
elico has joined #ruby
kvirani has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
heisenmi_ has quit [Remote host closed the connection]
lushious has joined #ruby
philcrissman has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
vectorshelve has quit [Quit: Page closed]
banisterfiend has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
chussenot has joined #ruby
dpk has joined #ruby
Guest5516 has joined #ruby
dmiller has quit [Remote host closed the connection]
Banistergalaxy has quit [Ping timeout: 268 seconds]
yasushi has joined #ruby
jonathanwallace has joined #ruby
enroxorz-work has joined #ruby
Goles has joined #ruby
banisterfiend` has joined #ruby
tommyvyo_ has joined #ruby
will1000 has quit [Ping timeout: 252 seconds]
jasonkuhrt has joined #ruby
jasonkuhrt has quit [Remote host closed the connection]
banisterfiend has quit [Ping timeout: 245 seconds]
emka has joined #ruby
<emka>
Hi, this is not really a ruby question even thoI wonder if there any useful gems or something that can make it cleaner…I want to have a field in a form that takes a duration. ex 1.5 = 1hour 30 minutes, or 01:30:00 = 1 hour 30 minutes or 30:15 = 30 minutes 15 seconds. I want to be able to take this an convert everything into seconds in the db field. Any tips or tricks to do it clean?
<emka>
the recogniz
jonathanwallace has quit [Remote host closed the connection]
<emka>
and convert part I mean
Agis__ has joined #ruby
jonathanwallace has joined #ruby
jonathanwallace has quit [Read error: Connection reset by peer]
<Xeago>
there sure are some gems out there that will help with that
robozahn has quit [Quit: leaving]
<Xeago>
but I am unaware of their names. Google will help
Tachyon__ has quit [Read error: Connection reset by peer]
Tachyon__ has joined #ruby
jprovazn is now known as jprovazn_away
jprovazn_away has quit [Quit: Leaving]
iamjarvo has joined #ruby
chussenot has joined #ruby
alec-c4 has joined #ruby
Speed has joined #ruby
Speed has quit [Changing host]
Speed has joined #ruby
paul_andrew has quit [Quit: leaving]
v0n has joined #ruby
<trooney>
There's a ruby gem i once saw someone use... it allows you to drop from Webrick into an irb shell or somethign to that effect -- does anyone know this?
qwerxy has quit [Read error: Connection reset by peer]
sonkei has joined #ruby
Synthead has joined #ruby
qwerxy has joined #ruby
alek_b has joined #ruby
cantonic has joined #ruby
savage- has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
foolove has joined #ruby
darthdeus has quit [Quit: Leaving...]
fearoffish has joined #ruby
<JonnieCache>
i wasnt here
<JonnieCache>
plus i dont know what "rock out your D means"
<JonnieCache>
if D stands for dick it still doesnt make sense to me :)
<foolove>
i type ocra script.rb username password my.csv <---- these are the parameters to my script but my error complains about the username parameter and my script is not compiling
bbttxu has quit [Quit: bbttxu]
Nisstyre has quit [Remote host closed the connection]
maesbn has quit [Remote host closed the connection]
<banisterfiend`>
JonnieCache: it means cause an erection of the male genitalia
clj_newb has joined #ruby
hoelzro is now known as hoelzro|away
<JonnieCache>
ive heard of "object sexuality" where people are sexually attracted to inanimate objects
lolmaus has quit []
<JonnieCache>
but ive never heard of people being sexually attracted to conceptual entities like REPLs
<JonnieCache>
that would be deeply confusing and problematic i think
<JonnieCache>
at least if you fetishize a desk or a door you can quite easily do something about it
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<banisterfiend`>
JonnieCache: i just write erotic fiction about it
<JonnieCache>
haha oh god
<trooney>
lol
canton8 has quit [Remote host closed the connection]
<JonnieCache>
i bet that exists
<JonnieCache>
in quantity
canton8 has joined #ruby
canton8 has quit [Remote host closed the connection]
<banisterfiend`>
'as i typed `cd Class` i felt myself descend in deeper into ruby's object hierarchy, `cd Object`..and deeper still...before suddenly an `ls` revealed all the feminine mystery lurking at the heart, a vision i've lusted after for so long, finally naked before my eyes'
bradhe has joined #ruby
canton7 has joined #ruby
<banisterfiend`>
'instance variables quivering in expectation to be manipulated'
<JonnieCache>
MAKE IT STOP
<banisterfiend`>
'methods blushing in my direction, wanting me to slot those final parameters in before invoking them into paroxysms of ecstacy'
<JonnieCache>
ohh paroxysms thats a lot of scrabble points right there
stanzgy has quit [Ping timeout: 260 seconds]
davidcelis has quit [Quit: K-Lined.]
mneorr has quit [Quit: Leaving.]
<foolove>
i type ocra script.rb username password my.csv <---- these are the parameters to my script but my error complains about the username parameter and my script is not compiling
aspiers has quit [Ping timeout: 252 seconds]
<canton7>
foolove, without your script, it's kind of hard to say what's going on....
jakob-_ has joined #ruby
jobicoppola has joined #ruby
jakob-_ has quit [Client Quit]
<Xeago>
banisterfiend`: do you need credit for that if I copy your lines?
<banisterfiend`>
Xeago: haha wtf would you copy thoselines
<Xeago>
tweet/document them
<Xeago>
archive it
bwlang has joined #ruby
<banisterfiend`>
go for it..
locriani has quit [Remote host closed the connection]
<Xeago>
do you need credit?
<banisterfiend`>
up to you if u want to credit me, i dont demand it ;)
aspiers has joined #ruby
<JonnieCache>
banisterfiend`: my friend is the bpython dev you could collaborate on some slash fiction
johnjohnson has joined #ruby
<Xeago>
a tweet's only 140chars long..
Elico1 has quit [Quit: Elico1]
baroquebobcat has joined #ruby
punkrawkR has joined #ruby
chrishunt has quit [Quit: Leaving...]
Elico1 has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
Elico1 has quit [Client Quit]
Elico1 has joined #ruby
nacengineer has quit [Quit: Leaving.]
tomzx has joined #ruby
<Xeago>
banisterfiend`: mind continuing your novel :3?
<banisterfiend`>
JonnieCache: haha
<banisterfiend`>
JonnieCache: i've met your friend, he was doing ruby for a while
<banisterfiend`>
and hung out here
<JonnieCache>
not the person i know...
<banisterfiend`>
JonnieCache: i also met a guy who worke don both the bpython and pry code bases ;) and said pry's was better :D
<banisterfiend`>
JonnieCache: bob_f ?
<JonnieCache>
yeah
becom33 has joined #ruby
locriani_ has joined #ruby
<banisterfiend`>
bob_f was definitely here
<JonnieCache>
when was he doing ruby?
<banisterfiend`>
and he was learning ruby
<banisterfiend`>
for a short while
<banisterfiend`>
about 4-5 months ago
<banisterfiend`>
i remember talking to him about it and bpython
<JonnieCache>
ah right just learning it. i know he doesnt really use it at work
<becom33>
its crazy in IT, we call cheating as hacking lol :P
<banisterfiend`>
i think he had a small ruby project he had to learn it for
<JonnieCache>
yeah that makes sense
<JonnieCache>
i knew him for years and only recently found out he did bpython. didnt know how good a hacker he was
<banisterfiend`>
yeah bpython is definitely popular
<libryder>
trying to explain to a colleague why it's a bad idea to put has_many attributes on the model it belongs to, ending up with one flat table that represents 5 different classes
pricees has joined #ruby
ss0 has joined #ruby
<trooney>
If I have Hash A and Hash B, what's the best way to make a new Hash C that contains all the values of B where B and A contain the same key?
ss0 has left #ruby [#ruby]
Morkel has quit [Quit: Morkel]
locriani has joined #ruby
locriani has quit [Changing host]
locriani has joined #ruby
<JonnieCache>
i think theres Hash#intersection or something like that
<JonnieCache>
look in the docs
karakedi has quit [Ping timeout: 246 seconds]
<trooney>
Cool. Thx.
<JonnieCache>
theres definitely a method on hash or enumerable that does that kind of thing
bradhe has quit [Remote host closed the connection]
<JonnieCache>
>> {:a => 1, :b => 2} - {:a => 1}
<al2o3cr>
-e:1:in `eval': undefined method `-' for {:a=>1, :b=>2}:Hash (NoMethodError), from -e:1:in `eval', from -e:1:in `<main>'
<JonnieCache>
>> {:a => 1, :b => 2} | {:a => 1}
<al2o3cr>
-e:1:in `eval': undefined method `|' for {:a=>1, :b=>2}:Hash (NoMethodError), from -e:1:in `eval', from -e:1:in `<main>'
<JonnieCache>
hmmmm
jakob- has quit [Ping timeout: 264 seconds]
karakedi has joined #ruby
<JonnieCache>
>> {:a => 1, :b => 2} % {:a => 1}
<al2o3cr>
-e:1:in `eval': undefined method `%' for {:a=>1, :b=>2}:Hash (NoMethodError), from -e:1:in `eval', from -e:1:in `<main>'
beiter has quit [Quit: beiter]
BigFatFatty has joined #ruby
rippa has quit [Ping timeout: 244 seconds]
wuzzzzaah has quit [Quit: wuzzzzaah]
jakob-_ has joined #ruby
robotmay has quit [Remote host closed the connection]
datsik33 has quit [Quit: Leaving]
mklappstuhl has quit [Ping timeout: 246 seconds]
<Xeago>
rofl: "Duration: 39 sec, Finished: about a minute from now"
cpasmoi has joined #ruby
<cpasmoi>
hi
jrist-brb is now known as jrist
will1000 has joined #ruby
headius has quit [Quit: headius]
<enroxorz-work>
Anyone here good with XPath?
<Xeago>
xml, yuck
<enroxorz-work>
not even, HTML XPath
<trooney>
JonnieCache: Seems not to be a direct way, eh?
Takehiro has quit [Remote host closed the connection]
mr_dynamix has quit [Ping timeout: 272 seconds]
bradhe has joined #ruby
Xeago_ has joined #ruby
triptec has quit [Quit: triptec]
<Muz>
enroxorz-work: what're you trying to do?
<Mon_Ouie>
other.keys.each { |h| h.delete k }
Xeago_ has quit [Remote host closed the connection]
clj_newb has quit [Ping timeout: 268 seconds]
<enroxorz-work>
Muz: let me uplaod the HTML sample. Can I PM you when it is up?
rippa has joined #ruby
<JonnieCache>
or b.select {|k,v| a.include? k}
<JonnieCache>
but Mon_Ouies is more efficient
<Muz>
enroxorz-work: no, you can post it publically to the channel.
<Muz>
I'm sure I'm not the only person here who can do things with XPath.
gfontenot has joined #ruby
<enroxorz-work>
okie dokie
pdtpatrick has joined #ruby
Xeago has quit [Ping timeout: 246 seconds]
Mr-LuCkY has joined #ruby
JustinCampbell has joined #ruby
<enroxorz-work>
The situation is this. There is a link in the first cell that I have to click utilizing WATIR, but I cannot use the link method as I normally would (typically I can do a simple RegEx on the URL and get the right link from there, but this is missing it). The identifier for this link is in a cell two coloumns to the right (the date). How do I get access to the link utilizing the date?
<enroxorz-work>
sorry for the long winded question
Mr-LuCkY has quit [Client Quit]
<JonnieCache>
firebug can spit out xcode for elements on demand i think
matrixise has joined #ruby
chussenot has joined #ruby
<JonnieCache>
but obviously the query it gives you isnt generic
<JonnieCache>
oops xpath not xcode
IrishGringo has joined #ruby
Afal has joined #ruby
Ithrendil has joined #ruby
<enroxorz-work>
JonnieCache: I am embarrased to admit that this site only works on IE, so access to firebug isnt necessarily easy :( (its a legacy site we have to maintain)
<JonnieCache>
my comiserations
<enroxorz-work>
wait
linoj has quit [Quit: linoj]
<JonnieCache>
have you considered just directly interacting with the server?
<JonnieCache>
making the requests in your own code rather than driving a browser
<enroxorz-work>
cant. its a WATIR/Cucumber project for teh QAs
joephelius has quit [Ping timeout: 246 seconds]
<JonnieCache>
oic
rouss_ has quit [Read error: Connection reset by peer]
<enroxorz-work>
but i have an idea
<JonnieCache>
heres an idea: tell the customer its going to cost thousands of dollars an hour for you to keep working on it
<JonnieCache>
hey presto either you have thousands of dollars an hour, or you dont have to maintain cucumber scenarios for an IE only app anymore
<enroxorz-work>
hah, i wish
<JonnieCache>
let me guess its an internal tool for the company you work at?
<enroxorz-work>
;)
<enroxorz-work>
this tool is old and out dated
robacarp has quit [Quit: leaving]
<enroxorz-work>
BUT they dont want to get rid of it since the investment was so high (scoffs)
Afal has left #ruby [#ruby]
sonkei has quit [Quit: Computer has gone to sleep.]
<JonnieCache>
write a document detailing exactly how much money is lost because of this tools lameness
<JonnieCache>
preferably with pie charts
linoj has joined #ruby
<JonnieCache>
give this to your boss.
Hugo-Boss has joined #ruby
davidcelis has joined #ruby
athit has quit [Ping timeout: 248 seconds]
<Hugo-Boss>
i downloaded this ->ruby-1.9.3-p194-i386-mingw32
<Hugo-Boss>
but dunno what to do after that ?
davidcelis has quit [Read error: Connection reset by peer]
<enroxorz-work>
what are you trying to do Hugo-Boss?
chrishunt has joined #ruby
davidcelis has joined #ruby
<Hugo-Boss>
enroxorz-work: i want start learning ruby i downloaded above file now i want to shoot up my notepad++ then start to programming
<Hugo-Boss>
but dunno where to i can compile it
<enroxorz-work>
what OS Hugo-Boss?
<Hugo-Boss>
win 7
rouss_ has joined #ruby
<enroxorz-work>
ok, and did you install it? also, have you downloaded the devkit? if not, download and install that as well for certain gems.
yxhuvud has joined #ruby
khakimov has joined #ruby
jenrzzz has joined #ruby
alvaro_o has joined #ruby
jlogsdon has joined #ruby
<Hugo-Boss>
enroxorz-work: it is too confusing to me any window installer in market
<GuidovanPossum>
I found it to be an interesting survey of Gross Domestic Happiness
ori-l-away is now known as ori-l
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
failshell has joined #ruby
<JonnieCache>
our politicians in the UK talked about measuring gross domestic happniess a lot
<failshell>
hello. how do i convert a string into a time interval? i get the error: sleep': can't convert String into time interval (TypeError)
<JonnieCache>
but it was just to get elected :(
<failshell>
google isnt helping me here
Takehiro has joined #ruby
<JonnieCache>
failshell: convert a string to an integer with to_i
<JonnieCache>
>> sleep("1".to_i)
<al2o3cr>
(Fixnum) 1
joofsh has joined #ruby
emmanuelux has quit [Remote host closed the connection]
Tachyon__ has quit [Ping timeout: 255 seconds]
<JonnieCache>
obviously that will go wrong if your string isnt just a number like that
<failshell>
JonnieCache: thanks!
x77686d has quit [Quit: x77686d]
<failshell>
ah damn
<failshell>
i was mixing python syntax
<failshell>
like int(foo)
<JonnieCache>
failshell: you can do that in ruby too
<failshell>
didnt work
codespectator has quit [Ping timeout: 244 seconds]
mahmoudimus has joined #ruby
<JonnieCache>
>> Integer("1")
<al2o3cr>
(Fixnum) 1
<JonnieCache>
the same as...
<JonnieCache>
>> Integer.new("1")
<al2o3cr>
-e:1:in `eval': undefined method `new' for Integer:Class (NoMethodError), from -e:1:in `eval', from -e:1:in `<main>'
<JonnieCache>
oops no its not :)
<failshell>
undefined method `int' for main:Object (NoMethodError)
<failshell>
anyway. on to the next bug hehe
<blazes816>
JonnieCache: Integer has no initialize because they're singletons
apok has joined #ruby
<JonnieCache>
ahhhh of course
<JonnieCache>
theyre not singletons theres a proper name for the classes that act like that
<JonnieCache>
integers symbols etc
<bnagy>
immediates
jenrzzz has quit [Ping timeout: 240 seconds]
<JonnieCache>
thats the one
tcopp has joined #ruby
Takehiro has quit [Ping timeout: 240 seconds]
shevy has quit [Read error: Operation timed out]
apok_ has joined #ruby
frogprince_mac has quit [Quit: Leaving...]
maletor has joined #ruby
BiHi has quit [Quit: Computer has gone to sleep]
jgrevich has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
mascool has joined #ruby
kvirani has quit [Remote host closed the connection]
apok has quit [Ping timeout: 244 seconds]
apok_ is now known as apok
mahmoudimus has joined #ruby
<Hanmac>
oh no ... timeout is shevy-picking :(
karakedi has quit [Ping timeout: 246 seconds]
kenichi has joined #ruby
<Hugo-Boss>
bnagy: Bhutan is lil 600 KM away from my side
Moggle has joined #ruby
arkiver has joined #ruby
rouss_ has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
minijupe has joined #ruby
arkiver has quit [Client Quit]
iamjarvo has quit [Read error: Connection reset by peer]
codespectator has joined #ruby
g33k has joined #ruby
sneakyness_wk has joined #ruby
jorge_ has quit [Remote host closed the connection]
dekhaus has joined #ruby
bradhe has quit [Remote host closed the connection]
frogprince_mac has joined #ruby
<dekhaus>
Hi All. I need access to every printable character - or to put it another way - how can i easily generate an array that contains all printable characters ? Thx
Chryson has quit [Ping timeout: 260 seconds]
verto|off is now known as verto
shevy has joined #ruby
chussenot has quit [Remote host closed the connection]
<GuidovanPossum>
ASCII loop
chussenot has joined #ruby
apok has quit [Remote host closed the connection]
<dekhaus>
GuidovanPossum - can you be more specific please ?
sonkei has quit [Quit: Computer has gone to sleep.]
jgrevich_ has joined #ruby
Nisstyre_ has joined #ruby
headius has joined #ruby
jgrevich has quit [Ping timeout: 246 seconds]
jgrevich_ is now known as jgrevich
<dekhaus>
never mind - figured it out. thx
dekhaus has quit [Quit: dekhaus]
chussenot_ has joined #ruby
elaptics is now known as elaptics`away
kjellski has quit [Quit: This computer has gone to sleep]
<Hugo-Boss>
any free domain site for ruby hosting ?
c0rn_ has quit []
snuglepuss has joined #ruby
mmitchell has quit [Remote host closed the connection]
geggam has quit [Remote host closed the connection]
<failshell>
github
chussenot has quit [Ping timeout: 246 seconds]
chussenot_ is now known as chussenot
c0rn_ has joined #ruby
Criztian has quit [Ping timeout: 240 seconds]
adamkittelson has joined #ruby
<enroxorz-work>
Hugo-Boss: try using heroku. for dev testing its great.
areil has quit [Remote host closed the connection]
voodoofish430 has joined #ruby
c0rn_ has quit [Ping timeout: 252 seconds]
<Hugo-Boss>
both sites are looking awesome thanks for sharing ( :
chussenot has quit [Quit: chussenot]
nateberkopec has joined #ruby
<Hanmac>
Hugo-Boss: another site: bitbucket ... its similar to github
<Mon_Ouie>
Github is just for hosting source code, not to run your Ruby code on the server
paul_and1ew has joined #ruby
beneggett has joined #ruby
Criztian has joined #ruby
<minijupe>
can I add class methods to a class through a module?
<fearoffish>
extend
<minijupe>
fearoffish: that for me?
<fearoffish>
yep
kn330 has joined #ruby
<fearoffish>
include is for instance methods, extend is for class
<Hanmac>
you could extend to other objects too, but this is a different story
cj3kim has quit [Quit: This computer has gone to sleep]
griotspeak has joined #ruby
stkowski has quit [Quit: stkowski]
stkowski has joined #ruby
Free563 has quit [Quit: Computer has gone to sleep.]
adeponte has quit [Remote host closed the connection]
adeponte has joined #ruby
<griotspeak>
does anyone know of a good way to set metadata on a file in ruby?
GuidovanPossum has left #ruby [#ruby]
yasushi has quit [Remote host closed the connection]
c0rn_ has joined #ruby
x77686d has joined #ruby
ori-l-away is now known as ori-l
echobravo has quit [Quit: Pull the pin and count to what?]
wobr has joined #ruby
g33k has quit [Quit: Leaving]
c0rn_ has quit [Ping timeout: 240 seconds]
<theRoUS>
ruby 1.8.7. does anyone know of a good/better way to consolidate sequences in an array into ranges? i have this: https://gist.github.com/3656728 but i'm not perfectly happy with it -- it was a quick hack
<Paradox>
okunnig, that looks fine, although its a bit inefficient
knightblader has joined #ruby
arturaz has quit [Remote host closed the connection]
<okunnig>
Paradox: okay, but what the alternative?
<okunnig>
what's
<Paradox>
i cant think of one off the top of my head
manizzle has quit [Ping timeout: 252 seconds]
<okunnig>
Paradox: me neither
locriani has quit [Remote host closed the connection]
Free563 has joined #ruby
x77686d has joined #ruby
<blazes816>
why do you need to keep track of them all?
locriani has joined #ruby
<okunnig>
Paradox: Maybe that all converters inherits from a BaseConverter. And in the def inherited(base) metod. I register the converter?
locriani has quit [Changing host]
locriani has joined #ruby
<okunnig>
blazes816: because when the application starts. I would like to know what converters it's using
ori-l-away is now known as ori-l
v0n has quit [Ping timeout: 246 seconds]
Kneferilis has quit [Disconnected by services]
pu22l3r has quit [Ping timeout: 244 seconds]
Agis__ has quit [Quit: Agis__]
cakehero has joined #ruby
johnlcox has quit [Ping timeout: 244 seconds]
johnlcox has joined #ruby
krawchyk_ has joined #ruby
trebaum has quit [Quit: leaving]
horofox has quit [Quit: horofox]
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
kn330 has quit [Ping timeout: 255 seconds]
krawchyk has quit [Ping timeout: 248 seconds]
rogeruiz has joined #ruby
sneakyness_wk has quit [Ping timeout: 268 seconds]
kn330 has joined #ruby
Markvilla has quit [Quit: Computer has gone to sleep.]
richwestcoast has joined #ruby
heisenmi_ has joined #ruby
sneakyness_wk has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
ladder4 has quit [Quit: Connection closed for inactivity]
mc0e1 has joined #ruby
peterpan has joined #ruby
lushious has joined #ruby
sonkei has quit [Quit: Computer has gone to sleep.]
mc0e has quit [Ping timeout: 248 seconds]
joofsh has quit [Ping timeout: 245 seconds]
CodeFriar has joined #ruby
heisenmink has quit [Ping timeout: 245 seconds]
ori-l is now known as ori-l-away
will1000 has quit [Ping timeout: 252 seconds]
v0n has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
chimay has quit [Quit: WeeChat 0.3.9-rc1]
heisenmi_ has quit [Remote host closed the connection]
heisenmink has joined #ruby
pskosinski has joined #ruby
kn330 has quit [Ping timeout: 252 seconds]
thunderstrike has quit [Read error: Connection reset by peer]
eldar has joined #ruby
thunderstrike has joined #ruby
locriani has quit [Remote host closed the connection]
locriani has joined #ruby
alibama has joined #ruby
kn330 has joined #ruby
<alibama>
hi all = having a time getting vagrant installed on fedora 17
h4mz1d has joined #ruby
<alibama>
ruby packaging for f17 seems to be the culprit
<alibama>
has anyone seen this?
Dreamer3 has quit [Ping timeout: 272 seconds]
<alibama>
i'm getting errors about installing dev tools, but they've already been installed
artOfWar has joined #ruby
headius has quit [Quit: headius]
sonkei has joined #ruby
krawchyk_ has quit [Remote host closed the connection]
Dreamer3 has joined #ruby
<alibama>
You have to install development tools first.
trebaum has joined #ruby
trebaum has quit [Changing host]
trebaum has joined #ruby
<alibama>
ugh, that didn't come out right
eldariof has quit [Ping timeout: 244 seconds]
trebaum has quit [Client Quit]
<alibama>
usr/share/ruby/mkmf.rb:381:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
<alibama>
and then the "you have to install dev tools…" but i've got ruby-devel in stalled
<banisterfiend`>
JonnieCache: man it must be crazy being a geologist
_md has joined #ruby
<alibama>
anyhow, the vagrant folks sent me this way…
ckrailo has joined #ruby
<banisterfiend`>
JonnieCache: even the very shortest time scales they deal with (like 100K years) outstrip the length of entire human civilization not to mention their own lifespan by thousands of times
krawchyk_ has joined #ruby
<alibama>
am betting i can get someone here to send me to fedora, but I'm hoping there's someone around who has some experience with this :) :)
<banisterfiend`>
JonnieCache: could be because im high, but it's a eerie thought
<banisterfiend`>
an*
lushious has quit [Ping timeout: 252 seconds]
_md has quit [Client Quit]
spinagon has joined #ruby
lyaunzbe has quit [Remote host closed the connection]
alienvenom has quit [Ping timeout: 244 seconds]
ori-l-away is now known as ori-l
savage- has quit [Ping timeout: 246 seconds]
blazes816 has quit [Quit: blazes816]
baphled has quit [Ping timeout: 264 seconds]
rippa has quit [Ping timeout: 245 seconds]
<alibama>
anyone here working on fedora 17?
indian has joined #ruby
indian has quit [Changing host]
indian has joined #ruby
deryl has joined #ruby
savage- has joined #ruby
<alibama>
basically can't seem to install any gems using sudo gem install __package___
aldodelgado has joined #ruby
rcloak has quit [Quit: rcloak]
k-bopper has joined #ruby
qwerxy has joined #ruby
c0rn_ has quit [Quit: Computer has gone to sleep.]
<k-bopper>
new to ruby, I have this regex: %r{templates/.+\.html} and I want it to ignore files that start with ".#" like ".#file.html"
sonkei has quit [Quit: Computer has gone to sleep.]
joofsh has joined #ruby
dpk has quit [Quit: Asleep at the keyboard.]
<ben_m>
That example starts with a dot
<ben_m>
Oh, nevermind
tdelam has quit [Remote host closed the connection]
<ben_m>
Didn't see the dot in the first string
<Mon_Ouie>
You could require the beginning to be ([^.]|\.[^#])
baphled has joined #ruby
<rogeruiz>
wouldn't this work? ([^\.\#].*\.html)
<Mon_Ouie>
rogeruiz: That wouldn't match something that starts with a #, even if there's no . in front of it
alienvenom has joined #ruby
clj_newb has joined #ruby
macabre has joined #ruby
<k-bopper>
Mon_Ouie: Thanks!
<rogeruiz>
Mon_Quie: I see, your suggestion makes more sense. didn't see the pipe in there the first time
k-bopper has left #ruby [#ruby]
macabre has left #ruby [#ruby]
atmosx has joined #ruby
baphled has quit [Ping timeout: 264 seconds]
baphled_ has joined #ruby
Hugo-Boss has left #ruby [#ruby]
Moggle has quit [Ping timeout: 276 seconds]
tomzx has quit [Ping timeout: 244 seconds]
Takehiro has joined #ruby
krawchyk_ has quit [Remote host closed the connection]
Axsuul has joined #ruby
baphled_ has quit [Ping timeout: 252 seconds]
baphled has joined #ruby
altamic has quit [Ping timeout: 246 seconds]
mk03 has joined #ruby
Russell^^ has joined #ruby
jorge_ has joined #ruby
LBRapid has quit [Quit: Farewell.]
Zespre_ has quit [Ping timeout: 248 seconds]
Takehiro has quit [Ping timeout: 240 seconds]
okunnig has quit [Ping timeout: 245 seconds]
Xeago has joined #ruby
Zespre has joined #ruby
tomzx has joined #ruby
baphled has quit [Ping timeout: 264 seconds]
doomMonkey has quit [Ping timeout: 252 seconds]
pskosinski has quit [Ping timeout: 246 seconds]
ben_m has quit [Quit: Leaving]
johnlcox has quit [Quit: Computer has gone to sleep.]
<atmosx>
anyone used TweetStream gem? I wonder if I have to somehow handle the backoff for .track function or I don't need to be bothered since the connection stays up forever
altamic has joined #ruby
altamic has quit [Changing host]
altamic has joined #ruby
heisenmink has quit [Remote host closed the connection]
<alibama>
so i was able to gem install bundlre
<alibama>
er bundler
<alibama>
so it's not that all gem installs are busted
vlad_starkov has quit [Remote host closed the connection]
qwerxy has joined #ruby
hadees has joined #ruby
darthdeus has quit [Ping timeout: 246 seconds]
tigris_ has joined #ruby
<tigris_>
hi guys, i'm using Net::FTP and getting quite a few #<IOError: stream closed>, wondering if anyone would be able to point me in the right step to debugging
becom33 has quit [Ping timeout: 252 seconds]
becom33 has joined #ruby
lushious has joined #ruby
jarred has joined #ruby
xorgnak has quit [Remote host closed the connection]
tcopp has left #ruby [#ruby]
schaerli has joined #ruby
xorgnak has joined #ruby
jgrevich_ has joined #ruby
ori-l-away is now known as ori-l
jgrevich has quit [Ping timeout: 252 seconds]
jgrevich_ is now known as jgrevich
xorgnak has quit [Remote host closed the connection]
lushious has quit [Ping timeout: 252 seconds]
xorgnak has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
beneggett has joined #ruby
specialGuest has joined #ruby
sambio has quit [Ping timeout: 240 seconds]
specialGuest has quit [Changing host]
specialGuest has joined #ruby
<atmosx>
tigris_: ruby -d program.rb is a very good start
xorgnak has quit [Remote host closed the connection]
ttilley has joined #ruby
xorgnak has joined #ruby
xorgnak has quit [Remote host closed the connection]
xorgnak has joined #ruby
Criztian has quit [Ping timeout: 240 seconds]
athit has joined #ruby
stephenjudkins has joined #ruby
xorgnak has quit [Remote host closed the connection]
<Azure>
So, I was looking at loading a logfile and reading it as a string, vs reading each line from the file separately.
bambanx_ has quit [Read error: Connection reset by peer]
alibama has quit [Remote host closed the connection]
ori-l is now known as ori-l-away
alibama has joined #ruby
qwerxy has quit [Quit: offski]
baphled has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
Free563 has joined #ruby
becom33 has quit [Quit: Leaving]
jorge_ has quit [Remote host closed the connection]
ori-l-away is now known as ori-l
savage- has quit [Remote host closed the connection]
CoverSlide has quit [Ping timeout: 240 seconds]
headius has quit [Quit: headius]
altamic has quit [Remote host closed the connection]
Takehiro has joined #ruby
pricees has joined #ruby
krawchyk has quit [Remote host closed the connection]
krawchyk has joined #ruby
minijupe has joined #ruby
<Azure>
(speccy seems to be detecting my ram speed weird.)
paul_and1ew has quit [Quit: leaving]
artm has quit [Quit: artm]
fantazo has quit [Remote host closed the connection]
nicoulaj has quit [Remote host closed the connection]
Takehiro has quit [Ping timeout: 244 seconds]
<minijupe>
how do I add class methods to a class via a module?
locriani has joined #ruby
locriani has quit [Changing host]
locriani has joined #ruby
<Mon_Ouie>
Module#extend
<Mon_Ouie>
>> module Foo; def some_method; puts "method from a module!!!"; end; end; class Bar; extend Foo; end; Bar.some_method
<al2o3cr>
(NilClass) nil, Console: method from a module!!!
epalm has joined #ruby
<Hanmac>
minijupe didnt you asked it allready?
<Mon_Ouie>
At least someone did
<epalm>
i'm looking at http://docs.rubygems.org/read/chapter/10#page40 and i don't see a way to update a gem (rails, say) to a specific version. i want 3.2.6 but "gem update rails" is giving me 3.2.8
thunderstrike has quit [Read error: Connection reset by peer]
Rikkit has joined #ruby
thunderstrike has joined #ruby
Guest5516 has quit [Ping timeout: 240 seconds]
artm has quit [Client Quit]
c0rn_ has joined #ruby
kaushik_ has quit [Ping timeout: 276 seconds]
<libryder>
can someone point me to a resource on the problem with having unrelated attributes on a (db) model? as in, mixing attributes on a model to avoid creating several sub-models
vlad_starkov has quit [Ping timeout: 240 seconds]
manizzle has joined #ruby
<reactormonk>
libryder: rails-related?
<libryder>
not necessarily
<blazes816>
ActiveRecord related?
<libryder>
ORM related
xorgnak has quit [Remote host closed the connection]
<libryder>
i guess it would apply to activerecord
mneorr has joined #ruby
c0rn_ has quit [Client Quit]
<blazes816>
what problem are you referring to? are you having a specific issue or are you just looking for info about how to do it?
Rikkit has quit [Remote host closed the connection]
sneakyness_wk has joined #ruby
paul_andrew has joined #ruby
vlad_starkov has joined #ruby
<libryder>
blazes816: i'm having a conversation with a colleague that is new to programming about it, and i'm having a hard time convincing him that attributes on a submodel should not go in the parent model
<reactormonk>
libryder: STI n stuff?
<blazes816>
why would they? unless they override. e.g. A#foo is a varchar column and B#foo is an integer
<blazes816>
other than that, that's the point of inheritance. the child is inheriting properties from the parent
<libryder>
blazes816: because according to him, it makes it easier to query
<blazes816>
that's called denormalization and it's bad mmm'kay
<libryder>
it is really a non-argument, i know, but i'm having trouble conveying the concepts
<blazes816>
it's great for secondary data stores
<blazes816>
but for a 'master' store no way jose
<blazes816>
well, are you talking STI only? or multiple-table inheritance as well?
<blazes816>
with STI it's all in one table so it doesn't really matter
<blazes816>
with MTI unless the child's attr overrides the parent's type, having it in both tables will only lead to data corruption
Poapfel has joined #ruby
<libryder>
i haven't considered STI; currently thinking polymorphism
<Mon_Ouie>
shinobi_one: By putting the code to open the database in a method to call when you need it
chussenot_ has joined #ruby
<Mon_Ouie>
Also, you should avoid global variables and class variables
awarner has quit [Remote host closed the connection]
khakimov has joined #ruby
theRoUS has quit [Ping timeout: 252 seconds]
jasmina87SA__ has joined #ruby
<Mon_Ouie>
You could define a method to get the db like def db; @db ||= actually_open_the_db; end
<Mon_Ouie>
And use that accessor instead of using @db (or @@db in your current code) directly
adeponte has joined #ruby
chussenot has quit [Ping timeout: 244 seconds]
chussenot_ is now known as chussenot
Takehiro has quit [Ping timeout: 246 seconds]
<shinobi_one>
I don't see why I would need to avoid global variables in this situation, but I'll take that into consideration. As for defining a method to get the db. You mean in the global scope? or as a class method or instance method?
maletor has quit [Quit: Computer has gone to sleep.]
joschi has quit [Excess Flood]
<shinobi_one>
i want the db variable available in both class and instance methods, that's why i made it a class variable
<Mon_Ouie>
In your A class, as a class method in that case
<Mon_Ouie>
You can still call methods on the current object's class — self.class.db
c0rn_ has quit [Quit: Computer has gone to sleep.]
<shinobi_one>
i know, but it just seemed sexier to have it as a class variable, but i suppose that will not do and the class method is a better option
<shinobi_one>
thanks
joschi has joined #ruby
c0rn_ has joined #ruby
spopescu has quit [Quit: Leaving]
<Mon_Ouie>
Class variables are generally avoided in favor of class instance variables — mostly because of class variables being shared with all descendants
<shinobi_one>
which is what i wanted :P
devsharpen has quit []
smittyjohansen has joined #ruby
aristidesfl has quit []
cakehero has quit [Ping timeout: 244 seconds]
radic has joined #ruby
<shinobi_one>
is name a reserved object method?
Ugallu has quit [Quit: Gone Now.]
<shinobi_one>
ah it appears so
<Mon_Ouie>
It's not
<shinobi_one>
try Integer.name
<Mon_Ouie>
defined in a standard class != reserved
<shinobi_one>
ah true
aristidesfl has joined #ruby
cakehero has joined #ruby
alanp has joined #ruby
<Mon_Ouie>
Methods that *really* must not be overridden are those that start with __ (e.g. __send__)
<lupine_85>
Mind you, overriding #send is also evil
<shinobi_one>
^
specialGuest has quit [Quit: WeeChat 0.3.8]
<lupine_85>
We have one project where that happens, it bites me a lot
Ithrendil has quit [Quit: Quitte]
<shinobi_one>
sometimes it really can accomplish a certain task >.<
<Mon_Ouie>
There's another place where it happens… IO#send
<Mon_Ouie>
Socket#send*
ChadStudmuffin has joined #ruby
ttilley has joined #ruby
chussenot has quit [Quit: chussenot]
recycle has joined #ruby
vlad_starkov has joined #ruby
c0rn_ has quit [Quit: Computer has gone to sleep.]
alanp_ has quit [Ping timeout: 240 seconds]
johnjohnson has quit []
maletor has joined #ruby
snorkdude has joined #ruby
jclem has quit [Quit: Leaving...]
<fowl>
you dont often dynamically call methods on socket though
vlad_sta_ has quit [Ping timeout: 246 seconds]
RegEchse has quit [Quit: <3 WeeChat (v0.3.9-dev)]
<Mon_Ouie>
Still, if you write code that can be called on any kind of Object, you should know to use __send__ instead of send (other case where it breaks: BasicObject)
radic has quit [Ping timeout: 252 seconds]
joshman_ has quit [Ping timeout: 268 seconds]
`vitoravelino is now known as vitoravelino
vitoravelino is now known as vitoravelino`afk
savage- has quit [Read error: Connection reset by peer]
savage- has joined #ruby
savage- has quit [Remote host closed the connection]
chussenot has joined #ruby
vitoravelino`afk is now known as vitoravelino
sambio has quit [Ping timeout: 246 seconds]
matrixise has quit [Ping timeout: 264 seconds]
radic has joined #ruby
alec-c4 has quit [Remote host closed the connection]
stkowski has joined #ruby
sambio has joined #ruby
chussenot has quit [Quit: chussenot]
Dr4g|afk is now known as Dr4g
Dr4g has quit [Changing host]
Dr4g has joined #ruby
Dr4g has joined #ruby
hsbt has quit [Ping timeout: 272 seconds]
keppy has quit [Ping timeout: 252 seconds]
johnjohnson has joined #ruby
recycle has quit [Remote host closed the connection]
bbttxu has quit [Quit: bbttxu]
kvirani has quit [Remote host closed the connection]
snorkdude has quit [Remote host closed the connection]
<shinobi_one>
i'm still bombing this.. so if i have a class instance variable @db = self.class.db defined in the initializer, and a class method self.db that returns @db ||= "set", does the class always have to reference that object by a call to self.db?
c0rn_ has quit [Client Quit]
radic has quit [Ping timeout: 245 seconds]
<irc-user>
thank you!
irc-user has quit [Remote host closed the connection]
chrisja has quit [Quit: leaving]
bananagram has joined #ruby
atmosx has quit [Ping timeout: 240 seconds]
dangerousdave has quit [Quit: Leaving...]
khakimov has quit [Quit: Computer has gone to sleep.]
jgarvey has quit [Quit: Leaving]
c0rn_ has joined #ruby
atmosx has joined #ruby
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
eignerchris has quit [Remote host closed the connection]
datsik33 has quit [Quit: This computer has gone to sleep]
radic has joined #ruby
fbernier has quit [Ping timeout: 245 seconds]
Ithrendil has quit [Quit: Quitte]
h4mz1d has quit [Ping timeout: 276 seconds]
ori-l is now known as ori-l-away
recycle has quit [Remote host closed the connection]
Beoran_ has quit [Ping timeout: 264 seconds]
jpreyer has quit [Quit: Leaving...]
atmosx has quit [Ping timeout: 260 seconds]
fbernier has joined #ruby
Xeago has joined #ruby
Russell^^ has quit [Quit: Russell^^]
Tomasso has joined #ruby
mengu has quit [Remote host closed the connection]
root is now known as UdontKnow
recycle has joined #ruby
c0rn_ has quit [Quit: Computer has gone to sleep.]
stephenjudkins has quit [Quit: stephenjudkins]
pskosinski has quit [Ping timeout: 255 seconds]
ChadStudmuffin has quit [Ping timeout: 260 seconds]
BSaboia has joined #ruby
c0rn_ has joined #ruby
deryl has quit [Quit: Time To Go, Too Bad, So Sad!]
eroc has quit [Quit: eroc]
Beoran_ has joined #ruby
c0rn_ has quit [Client Quit]
gh has joined #ruby
clj_newb has quit [Ping timeout: 240 seconds]
qwerxy has quit [Quit: offski]
jenrzzz has quit [Ping timeout: 245 seconds]
stephenjudkins has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
BigFatFatty has left #ruby [#ruby]
[Neurotic] has joined #ruby
x77686d has quit [Ping timeout: 240 seconds]
ori-l-away is now known as ori-l
khakimov has joined #ruby
peterpan has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
sonkei has quit [Quit: Computer has gone to sleep.]
freeayu has joined #ruby
<elijah>
Can I ask a guard question in here?
<elijah>
#guard is dead right now
emmanuelux has joined #ruby
rjsamson has joined #ruby
vlad_starkov has joined #ruby
<blazes816>
pretty sure it is here too but give it a shot
<blazes816>
(i've never used guard)
<elijah>
I am a noob, I am just trying to get livereload working for web developement with Drupal - my question is --> Does there need to be a guardfile in every project directory or just $HOME, also does it matter if it is hidden or not (.guardfile vs guardfile) and is it case sensitive?
<elijah>
blazes816: thanks
Xeago has quit [Remote host closed the connection]
<elijah>
When I run guard in a directory I get an error no guardfile found please create one with guard init, it makes a non-hidden one
<elijah>
When I copy it from home it works but I get an "error: invalid guardfile, original error is: no block given"
gh has quit [Quit: gh]
<elijah>
I am not sure what blocks are?
vlad_starkov has quit [Ping timeout: 244 seconds]
etan|123321 is now known as etan
Takehiro has joined #ruby
pdtpatrick has quit [Quit: pdtpatrick]
<elijah>
Nonetheless, it appears guard is now watching my compass directory but that error bugs me
mneorr has quit [Quit: Leaving.]
sambio_ has quit [Quit: Saliendo]
sonkei has joined #ruby
sambio has quit [Remote host closed the connection]
luckyruby has quit [Remote host closed the connection]
Takehiro has quit [Ping timeout: 252 seconds]
rgc` has joined #ruby
qwerxy has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
fbernier has quit [Ping timeout: 245 seconds]
sambio has joined #ruby
<blazes816>
elijah: blocks are 'containers' of code. if(cond){ #this is the block area }; a.each{ #this is the block area }
<blazes816>
somewhere you call a method and it expects you to pass a block, and you are not
kiyoura has joined #ruby
<blazes816>
(and by you, it could very well be the lib or something)