fflush changed the topic of #ruby to: Ruby 1.9.3-p194: http://ruby-lang.org || Paste > 3 lines of text on pastebin.com
c0rn_ has quit [Ping timeout: 252 seconds]
risico has joined #ruby
josh^ has joined #ruby
vanmik has quit [Ping timeout: 240 seconds]
c0rn_ has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
nari has quit [Ping timeout: 248 seconds]
risico has quit [Ping timeout: 244 seconds]
g_rotbart has quit [Remote host closed the connection]
fbernier has joined #ruby
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
beachandbytes has quit [Ping timeout: 248 seconds]
havenn has joined #ruby
blazes816 has joined #ruby
c0rn_ has quit [Ping timeout: 240 seconds]
otters has joined #ruby
Solnse has joined #ruby
c0rn_ has joined #ruby
CarlB_the_great has joined #ruby
wargasm has quit [Ping timeout: 276 seconds]
sebastorama has quit [Quit: Computer has gone to sleep.]
g_rotbart has joined #ruby
butblack has quit [Quit: butblack]
cmasseraf has joined #ruby
machty has joined #ruby
wpaulson has joined #ruby
wpaulson has quit [Client Quit]
c0rn_ has quit [Ping timeout: 276 seconds]
khakimov has quit [Quit: Computer has gone to sleep.]
yshh has joined #ruby
c0rn_ has joined #ruby
beachandbytes has joined #ruby
drago757 has joined #ruby
pdtpatrick has quit [Quit: pdtpatrick]
Foxhoundz_ has joined #ruby
Guedes has joined #ruby
Guedes has quit [Changing host]
Guedes has joined #ruby
tyman has joined #ruby
CarlB_the_great has quit [Remote host closed the connection]
jenrzzz has joined #ruby
banisterfiend has joined #ruby
<banisterfiend> HISAND SO IT IS}}}{{PPIPPPPPPPP
<banisterfiend> K
<banisterfiend> H
<banisterfiend> S
<banisterfiend> D
<banisterfiend> R
<banisterfiend> G
\13k has joined #ruby
<banisterfiend> R
doomMonkey has joined #ruby
Bosox20051 has quit [Quit: Leaving]
pdtpatrick has joined #ruby
banisterfiend has quit [Remote host closed the connection]
yshh has quit [Remote host closed the connection]
c0rn_ has quit [Ping timeout: 268 seconds]
love_col_ has quit [Ping timeout: 240 seconds]
c0rn_ has joined #ruby
insulator has joined #ruby
horsey has quit [Ping timeout: 246 seconds]
beakerman has joined #ruby
beakerman has quit [Remote host closed the connection]
Foxhoundz_ has quit [Ping timeout: 245 seconds]
beakerman has joined #ruby
noyb has quit [Ping timeout: 245 seconds]
<beakerman> how do you copy a file with FileUtils#cp when there is a space in the pathname?
RegEchse has quit [Quit: <3 WeeChat (v0.3.9-dev)]
c0rn_ has quit [Ping timeout: 252 seconds]
Banistergalaxy has quit [Ping timeout: 272 seconds]
awarner has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
Banistergalaxy has joined #ruby
c0rn_ has joined #ruby
<jrajav> beakerman: FileUtils should work fine on unescaped strings. Provide an example of what you're trying
fyolnish_ has joined #ruby
AlbireoX has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 255 seconds]
AlbireoX has joined #ruby
seanyo has joined #ruby
rakl has quit [Quit: sleeping]
cj3kim has quit [Quit: Leaving]
fyolnish_ has quit [Ping timeout: 264 seconds]
noyb has joined #ruby
iori has joined #ruby
c0rn_ has quit [Ping timeout: 245 seconds]
yshh has joined #ruby
mmitchell has quit [Remote host closed the connection]
josh^ has quit [Ping timeout: 276 seconds]
S1kx has joined #ruby
S1kx has quit [Changing host]
S1kx has joined #ruby
bradyl0ve has quit [Quit: Linkinus - http://linkinus.com]
Russell^^ has quit [Quit: Russell^^]
c0rn_ has joined #ruby
love_col_ has joined #ruby
hunglin has joined #ruby
josh^ has joined #ruby
hunglin has quit [Client Quit]
insulator has quit [Remote host closed the connection]
dev_ryan70 has quit [Remote host closed the connection]
yasushi has joined #ruby
CodeFriar has quit [Quit: Leaving...]
awarner has quit [Remote host closed the connection]
noyb has quit [Ping timeout: 245 seconds]
c0rn_ has quit [Remote host closed the connection]
c0rn_ has joined #ruby
lesce has joined #ruby
horsey has joined #ruby
<horsey> hey boys
gverri has quit [Quit: gverri]
Banistergalaxy has quit [Ping timeout: 276 seconds]
Hanmac has quit [Ping timeout: 240 seconds]
awarner has joined #ruby
thunderstrike has quit [Remote host closed the connection]
swarley has joined #ruby
<swarley> okay, i decided to come here because #regex isnt helpful at all
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
<swarley> i want "hello\\n world" to be matched by regex, but not "hello\\\\n world"
<karstensrage> do most of you use the internal pages that devise provides for your sites?
c0rn_ has quit [Ping timeout: 252 seconds]
<swarley> (first: hello\n world, second: hello\\n world)
sagax has quit [Quit: Ухожу я от вас]
c0rn_ has joined #ruby
awarner has quit [Remote host closed the connection]
tommyvyo has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
noyb has joined #ruby
austinbv has quit [Ping timeout: 240 seconds]
sepp2k has quit [Read error: Connection reset by peer]
rakl has joined #ruby
c0rn_ has quit [Ping timeout: 272 seconds]
jenrzzz has joined #ruby
Peter_lee has joined #ruby
<Peter_lee> How would I web scrape google for keywords using Ruby?
justsee has quit [Quit: Leaving...]
noyb has quit [Ping timeout: 260 seconds]
dev_ryan70 has joined #ruby
noyb has joined #ruby
c0rn_ has joined #ruby
Hanmac has joined #ruby
digitalcakestudi has quit [Remote host closed the connection]
<swarley> Peter_lee, it depends on what you mean, mechanize is a good library for that i think
awarner has joined #ruby
awarner has quit [Remote host closed the connection]
<Peter_lee> ok, I'll start there...thanks
<swarley> no problem
wargasm has joined #ruby
<swarley> hpricot is also a good HTML parsing library to look into
c0rn_ has quit [Ping timeout: 244 seconds]
<swarley> faster than mechanize as well
dev_ryan70 has quit [Ping timeout: 276 seconds]
c0rn_ has joined #ruby
c0rn_ has quit [Client Quit]
austinbv has joined #ruby
yeggeps_ has joined #ruby
yeggeps has quit [Ping timeout: 252 seconds]
yasushi has quit [Ping timeout: 244 seconds]
dev_ryan70 has joined #ruby
<Peter_lee> ok great
shadoi has quit [Quit: Leaving.]
seanyo_ has joined #ruby
seanyo has quit [Ping timeout: 246 seconds]
snorkdude has joined #ruby
maletor has joined #ruby
fyolnish has joined #ruby
beachandbytes has quit [Quit: Leaving]
gmci has joined #ruby
phantasm66 has joined #ruby
nari has joined #ruby
austinbv has quit [Ping timeout: 264 seconds]
mercwithamouth has joined #ruby
fyolnish has quit [Ping timeout: 245 seconds]
swarley has quit [Ping timeout: 264 seconds]
khakimov has joined #ruby
swarley has joined #ruby
wpaulson has joined #ruby
blazes816 has quit [Quit: blazes816]
austinbv has joined #ruby
noyb has quit [Ping timeout: 268 seconds]
Jellyg00se has joined #ruby
SCommette has joined #ruby
austinbv has quit [Ping timeout: 260 seconds]
pipopopo has quit [Ping timeout: 244 seconds]
SCommette has quit [Client Quit]
pipopopo has joined #ruby
jasonkuhrt has joined #ruby
jarred_ has joined #ruby
xnm has joined #ruby
williamherry has joined #ruby
radic has quit [Read error: Operation timed out]
AlbireoX has quit [Ping timeout: 240 seconds]
AlbireoX has joined #ruby
mmitchell has joined #ruby
love_col_ has quit [Remote host closed the connection]
gfontenot has joined #ruby
mmitchell has quit [Ping timeout: 276 seconds]
gfontenot has quit [Client Quit]
xclite has quit [Remote host closed the connection]
joshcheek has joined #ruby
dev_ryan70 has quit [Remote host closed the connection]
k_89 has quit [Ping timeout: 268 seconds]
radic has joined #ruby
wargasm has quit [Read error: Connection reset by peer]
Jay_Levitt has joined #ruby
emmanuelux has quit [Remote host closed the connection]
koshii has quit [Quit: Lost terminal]
Targen has quit [Ping timeout: 244 seconds]
Targen_ has joined #ruby
jobicoppola has quit [Quit: Computer has gone to sleep.]
wargasm has joined #ruby
bambanx has joined #ruby
machty_ has joined #ruby
machty has quit [Ping timeout: 276 seconds]
machty_ is now known as machty
joshcheek has quit [Quit: joshcheek]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
uris has quit [Quit: leaving]
drago757 has quit [Quit: drago757]
jrajav has quit []
Banistergalaxy has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
horsey has quit [Ping timeout: 260 seconds]
iamjarvo has joined #ruby
rakl has quit [Quit: sleeping]
c0rn_ has joined #ruby
Spooner has quit [Ping timeout: 255 seconds]
swarley has quit [Read error: Connection reset by peer]
seanyo_ has quit [Ping timeout: 260 seconds]
naz has joined #ruby
mmitchell has joined #ruby
snorkdude has quit [Remote host closed the connection]
justinmcp has quit [Remote host closed the connection]
techsurvivor has quit [Ping timeout: 245 seconds]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
fyolnish has joined #ruby
<bnagy> Peter_lee: you'll get captcha'd very fast on google
c0rn_ has quit []
maletor has quit [Quit: Computer has gone to sleep.]
love_col_ has joined #ruby
love_col_ has quit [Client Quit]
love_color_text_ has joined #ruby
pu22l3r has joined #ruby
c0rn_ has joined #ruby
fyolnish has quit [Ping timeout: 268 seconds]
rakl has joined #ruby
rakl has quit [Client Quit]
rakl has joined #ruby
wuzzzzaah has joined #ruby
Jellyg00se has quit [Read error: Connection reset by peer]
don1 has joined #ruby
phantasm66 has quit [Quit: *sleeeeep*]
don1 has quit [Client Quit]
mercwithamouth has quit [Ping timeout: 272 seconds]
techsurvivor has joined #ruby
butblack has joined #ruby
c0rn_ has quit [Read error: Connection reset by peer]
Peter_lee has quit [Ping timeout: 264 seconds]
wallerdev has quit [Quit: wallerdev]
Guedes has quit [Ping timeout: 252 seconds]
Banistergalaxy has quit [Ping timeout: 244 seconds]
ZachBeta has joined #ruby
k_89 has joined #ruby
justsee has quit [Quit: Leaving...]
wallerdev has joined #ruby
GraemeLion has quit [Quit: out]
sonkei has joined #ruby
jenrzzz has joined #ruby
Banistergalaxy has joined #ruby
c0rn_ has joined #ruby
sonkei has quit [Client Quit]
techsurvivor has quit [Ping timeout: 264 seconds]
bambanx has quit [Quit: Saliendo]
tos9 has joined #ruby
jasonkuhrt has quit [Quit: Leaving...]
k_89 has quit [Quit: Leaving]
techsurvivor has joined #ruby
cmasseraf has quit [Quit: This computer has gone to sleep]
cakehero has quit [Quit: Leaving...]
niklasb_ has quit [Ping timeout: 246 seconds]
Progster has joined #ruby
hollyw00d has joined #ruby
hollyw00d has left #ruby [#ruby]
AlbireoX has quit [Ping timeout: 244 seconds]
wuzzzzaah has quit [Quit: wuzzzzaah]
AlbireoX has joined #ruby
austinbv has joined #ruby
afex has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
gmci has quit [Quit: Computer has gone to sleep.]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
verto is now known as verto|off
AlbireoX has quit [Remote host closed the connection]
afex_ has joined #ruby
afex has quit [Read error: Connection reset by peer]
afex_ is now known as afex
mmitchell has quit [Remote host closed the connection]
andrewhl has quit [Remote host closed the connection]
rakl has quit [Quit: sleeping]
rakl has joined #ruby
lchin has joined #ruby
pu22l3r has quit [Remote host closed the connection]
jenrzzz has quit [Read error: Connection reset by peer]
fyolnish_ has joined #ruby
jrist is now known as jrist-afk
fyolnish_ has quit [Ping timeout: 272 seconds]
sepp2k has joined #ruby
snorkdude has joined #ruby
Bosma has joined #ruby
Guest81709 has joined #ruby
ananthakumaran has joined #ruby
banisterfiend has joined #ruby
Banistergalaxy has quit [Ping timeout: 240 seconds]
sonkei has joined #ruby
love_color_text_ has quit [Remote host closed the connection]
butblack has quit [Quit: butblack]
banisterfiend has quit [Remote host closed the connection]
wargasm has quit [Ping timeout: 276 seconds]
Progster has quit [Ping timeout: 260 seconds]
ntfox has joined #ruby
bananagram has quit [Ping timeout: 246 seconds]
snorkdude has quit [Remote host closed the connection]
pcboy__ has quit [Ping timeout: 272 seconds]
havenn has quit [Remote host closed the connection]
bananagram has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
alek_b_ has joined #ruby
pcboy_ has joined #ruby
machty_ has joined #ruby
machty has quit [Read error: Connection reset by peer]
machty_ is now known as machty
alek_b has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
burgestrand has quit [Quit: Leaving.]
hemanth has quit [Read error: Connection reset by peer]
mr-rich has joined #ruby
yoklov has quit [Quit: bye!]
freeayu has quit [Ping timeout: 260 seconds]
hemanth has joined #ruby
sonkei has quit [Quit: Computer has gone to sleep.]
austinbv has quit [Ping timeout: 255 seconds]
freeayu has joined #ruby
ntfox has quit [Quit: Leaving]
drupin has joined #ruby
<drupin> Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
<drupin> <drupin> /home/ubuntu-studio/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb
<drupin> <drupin> checking for pg_config... no
Juul has joined #ruby
justinmcp has joined #ruby
Guest81709 has quit [Ping timeout: 252 seconds]
ananthakumaran has quit [Quit: Leaving.]
justinmcp has quit [Ping timeout: 246 seconds]
rakl has quit [Quit: sleeping]
GoHuyGo has joined #ruby
Bosox20051 has joined #ruby
GoHuyGo has quit [Client Quit]
GoHuyGo has joined #ruby
GoHuyGo has quit [Client Quit]
GoHuyGo has joined #ruby
khakimov has joined #ruby
LouisGB has joined #ruby
banisterfiend has joined #ruby
<GoHuyGo> sup pimps
ph^ has joined #ruby
jarred_ has quit [Quit: jarred_]
<bnagy> drupin: do you have a question, or you just like pasting random snippets from pg failing to install?
noyb has joined #ruby
<drupin> bnagy: its the output on bundle install
banisterfiend has quit [Remote host closed the connection]
bananagram has quit [Ping timeout: 260 seconds]
justsee has quit [Quit: Leaving...]
<bnagy> drupin: cool story, bro
<bnagy> now, did you have an actual question?
<drupin> ok i foound out i need postgres installed
<davidcelis> .....
LouisGB has quit [Ping timeout: 260 seconds]
<bnagy> excellent detective work, watson!
<davidcelis> fantastic
<bnagy> TIL irc etiquette greatly affects my disposition :/
spopescu has joined #ruby
burgestrand has joined #ruby
rohit has joined #ruby
<davidcelis> normal person + anonymity + audience = total fuckwad
<davidcelis> though to be fair, i'm clearly not anonymous, and am clearly a total fuckwad
jenrzzz has quit [Ping timeout: 252 seconds]
ananthakumaran has joined #ruby
qwerxy has joined #ruby
Monie has joined #ruby
Monie has quit [Changing host]
Monie has joined #ruby
thomasfedb has quit [Ping timeout: 244 seconds]
iamjarvo has quit [Ping timeout: 276 seconds]
thomasfedb has joined #ruby
yxhuvud has joined #ruby
bigmeow has quit [Ping timeout: 276 seconds]
Banistergalaxy has joined #ruby
kernelpanix has joined #ruby
spopescu has quit [Quit: Leaving]
neurotech has joined #ruby
austinbv has joined #ruby
arietis has joined #ruby
pu22l3r has joined #ruby
jenrzzz has joined #ruby
ltsstar has joined #ruby
Bosox20051 has quit [Read error: Connection reset by peer]
SCommette has joined #ruby
kernelpanix has quit [Remote host closed the connection]
tonini has joined #ruby
<neurotech> Has anyone encountered problems with RVM and Mountain Lion?
tyman has quit [Quit: tyman]
vanmik_ has quit [Remote host closed the connection]
vanmik has joined #ruby
h4mz1d has joined #ruby
bigmeow has joined #ruby
vanmik has quit [Remote host closed the connection]
austinbv has quit [Ping timeout: 276 seconds]
qwerxy has quit [Quit: offski]
noahsussman has joined #ruby
noahsussman has quit [Client Quit]
noahsussman has joined #ruby
h4mz1d has quit [Ping timeout: 276 seconds]
coyo has quit []
<burgestrand> neurotech: what kind of problems?
<rohit> neurotech, In case you haven't already, you can ask in #rvm. The creator RVM usually is in there answering questions.
<neurotech> hmmm
maletor has joined #ruby
<neurotech> Specifically the last 3 lines
leku has joined #ruby
<leku> hi
<leku> when I try 'script/plugin' nothing happens
<neurotech> when trying to run 'rails server' in my project folder
pdtpatrick has quit [Quit: pdtpatrick]
justinmcp has joined #ruby
<GoHuyGo> i wonder why you're getting a segmentation fault
<neurotech> trying an extra fix atm
<burgestrand> It’s possible your mysql gem was compiled and linked against another version of ruby. It would result in something similar to this.
thaz has joined #ruby
<burgestrand> It’s not unlikely other native gems you have might cause similar issues.
<neurotech> is there an easy fix for that?
<burgestrand> Also, I don’t know if you have, but do not try to remove the system version of ruby, it’s a bad idea. Just leave it be, and use RVM exclusively with other rubies.
<bnagy> do what the stackoverflow answer says - nuke rvm and use rbenv
<burgestrand> I would try to reinstall RVM, but it’s equally likely RVM is not really the issue, and a reinstallation won’t help.
<bnagy> it's Just Better
<neurotech> I'm using rbenv now bnagy
<burgestrand> neurotech: unfortunately I don’t have a solution, or even a way of checking if my theory is correct (except for maybe examining the build logs for any native gem). If rbenv works for you do use that, otherwise ask in #rvm, they are often very helpful and competent.
Takehiro has joined #ruby
techsurvivor has quit [Quit: WeeChat 0.3.8]
<neurotech> Looks like that stackoverflow solution broke rails
ph^ has quit [Remote host closed the connection]
<bnagy> biwinning! rvm gone AND rails broken
<burgestrand> Anyway, the only solution I can provide you is to nuke everything related to ruby except the system ruby (that includes an rvm implode), and reinstall RVM and try again.
<burgestrand> I have to be on my way. Good luck to you.
tagrudev has joined #ruby
Bosma has quit [Ping timeout: 264 seconds]
<shevy> use bundler to fix your problems
<bnagy> shevy's always ready with the comedy
<neurotech> reinstalling rails atm
maesbn has joined #ruby
<shevy> bnagy it's too tempting :)
Banistergalaxy has quit [Ping timeout: 268 seconds]
<shevy> [10 hours later]
<shevy> finished installing rails
<neurotech> Aawesome
<neurotech> working
<neurotech> rails server seems to be running
<neurotech> Welcome aboard You’re riding Ruby on Rails!
<neurotech> yessss
SCommette has quit [Quit: SCommette]
uhsf has quit [Quit: leaving]
Banistergalaxy has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
<GoHuyGo> wooooo
<GoHuyGo> hope on the bandwagon! there's still time!
<GoHuyGo> hop*
<GoHuyGo> good night :)
GoHuyGo has quit [Quit: Leaving]
rohit has quit [Quit: Leaving]
<neurotech> was that sarcasm from GoHuyGo
Takehiro has quit [Remote host closed the connection]
<bnagy> sarcasm regarding rails in #ruby? Almost never
<neurotech> I've never been good at detecting sarcasm on the internet
Erfankam has joined #ruby
und3f has joined #ruby
rakl has joined #ruby
<shevy> neurotech the written form makes it hard, yeah
fbernier has quit [Ping timeout: 260 seconds]
<shevy> neurotech just keep in mind that 20% of the questions asked here are usually ruby-on-rails related :)
<neurotech> Fair enough
<neurotech> I'm still super new to programming, including the culture
machty_ has joined #ruby
<shevy> hmm
<shevy> I could not tell you anything about the rails culture
machty has quit [Read error: Connection reset by peer]
machty_ is now known as machty
<shevy> ruby culture tends to be diverse
<neurotech> It seems like a pretty cool group of people
Solnse has quit [Ping timeout: 260 seconds]
<shevy> dunno, it depends. I think rails and in some ways the www steals a lot of the focus
Xeago has joined #ruby
<shevy> how many other big projects in ruby could you name?
<neurotech> No idea
<neurotech> But for someone who's never really had much programming experience it seems like a good place to start
<neurotech> in terms of ease of learning
yxhuvud has quit [Ping timeout: 260 seconds]
Xeago_ has joined #ruby
Banistergalaxy has quit [Ping timeout: 244 seconds]
<shevy> hmm
sepp2k has quit [Remote host closed the connection]
<shevy> but you could use ... perl... or python ... or even php
<shevy> or perhaps not PHP, somehow it does not work aside from web stuff :\
Xeago has quit [Ping timeout: 245 seconds]
arturaz has joined #ruby
<neurotech> shevy: The tutorials for ruby seemed to make the most sense to me
<neurotech> I'm sure I'll get to perl, python, etc eventually
<neurotech> Time to head home, thanks for the help everyone
neurotech has quit [Remote host closed the connection]
<shevy> I went to perl before ruby
<shevy> things like my $foo; $foo->bla("lala"); tend to be ugly
bigkevmcd has joined #ruby
<Scient> i hope he doesnt get to perl
<Scient> ever
jenrzzz has quit [Ping timeout: 260 seconds]
cableray has quit [Quit: cableray]
Takehiro has joined #ruby
justinmcp has quit [Remote host closed the connection]
Xeago_ has quit [Remote host closed the connection]
Niamkik has quit [Quit: leaving]
Elico1 has joined #ruby
noyb has quit [Ping timeout: 260 seconds]
timonv has joined #ruby
Morkel has joined #ruby
nucc has joined #ruby
cableray has joined #ruby
noyb has joined #ruby
ph^ has joined #ruby
x0F has joined #ruby
mwilson` has quit [Excess Flood]
mwilson` has joined #ruby
workmad3 has joined #ruby
Tref has quit [Quit: Tref]
s1n4 has joined #ruby
jprovazn_away is now known as jprovazn
timonv has quit [Remote host closed the connection]
rcsheets has joined #ruby
ltsstar has quit [Quit: ltsstar]
thone has joined #ruby
justinmcp has joined #ruby
aganov has joined #ruby
chussenot has joined #ruby
hoelzro|away is now known as hoelzro
thone_ has quit [Ping timeout: 248 seconds]
dr_bob has joined #ruby
leku has left #ruby [#ruby]
elico has quit [Quit: Elico]
answer_42 has joined #ruby
c0rn_ has quit []
workmad3 has quit [Ping timeout: 276 seconds]
arkiver has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
zigomir has joined #ruby
lchin has quit [Remote host closed the connection]
ncamargo has joined #ruby
ncamargo is now known as BIGX333
ephemerian has joined #ruby
haxrbyte has joined #ruby
amaya_ has joined #ruby
<amaya_> hi!
<amaya_> hello~
<amaya_> I need some help.
jenrzzz has joined #ruby
sspiff has joined #ruby
sspiff has quit [Changing host]
sspiff has joined #ruby
amaya_ has left #ruby [#ruby]
Xeago has joined #ruby
lesce has quit [Quit: Leaving]
xorigin has joined #ruby
haxrbyte_ has joined #ruby
cezar has joined #ruby
cableray has quit [Quit: cableray]
cezar has quit [Client Quit]
* dr_bob hands over some help
chussenot has quit [Quit: chussenot]
<Hanmac> dr_bob too late, the user already leaves the room
haxrbyte has quit [Ping timeout: 240 seconds]
<dr_bob> Oh, I didn't bother to check. Patience seems to get out of fashion.
Elico1 has quit [Quit: elico1]
dangerousdave has joined #ruby
drupin has left #ruby ["Baaa Buy"]
nucc has quit [Quit: Leaving...]
amaya_ has joined #ruby
<Hanmac> dr_bob the problem was that the user didnt know that Classes are Objects too and can be returned from methods ... so "@scene = first_scene_class.new" confuses the user
justinmcp has quit [Remote host closed the connection]
<amaya_> Classes are Objects ,So Classes are existing in runtime ?
rakl has quit [Read error: Connection reset by peer]
rakl has joined #ruby
<Hanmac> yeah
<Hanmac> >> class E;end; variable = E; puts variable
<al2o3cr> (NilClass) nil, Console: E
nilg has joined #ruby
<Hanmac> >> variable = Class.new; puts variable
<al2o3cr> (NilClass) nil, Console: #<Class:0x00000000a1b058>
zommi has joined #ruby
BiHi has joined #ruby
<amaya_> after "variable = E" , the "variable" beacomes a point to E ?
<amaya_> Sorry , It should be "pointer ".
Stefunel has left #ruby [#ruby]
jenrzzz has quit [Ping timeout: 244 seconds]
qwerxy has joined #ruby
ryanf has quit [Quit: leaving]
<Xeago> amaya_: nah, Classes at runtime are just objects, they are singleton objects but are otherwise ordinary objects.
jimeh has joined #ruby
<Xeago> their #new method instantiates an object of it's own type
lushious has quit [Ping timeout: 252 seconds]
chimay has joined #ruby
chimay has quit [Changing host]
chimay has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
jarred has joined #ruby
sgmac has joined #ruby
sgmac has left #ruby [#ruby]
<amaya_> I see. thx!
g_rotbart has quit [Remote host closed the connection]
ph^ has quit [Read error: No route to host]
statarb3 has quit [Quit: Leaving]
ph^ has joined #ruby
ickmund has joined #ruby
Axsuul has quit [Ping timeout: 268 seconds]
jjang has quit [Remote host closed the connection]
noyb has quit [Ping timeout: 244 seconds]
mneorr has joined #ruby
eldariof has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
BiHi_ has joined #ruby
piotr_ has joined #ruby
BiHi has quit [Ping timeout: 255 seconds]
matrixise has joined #ruby
pedda has joined #ruby
<pedda> hi all
<pedda> i need some help setting up a package written in ruby -> sphinx the documentation parser
<pedda> on mac os x
<pedda> i've tried to install it via easy_install but when i sh Sphinx-1.1.3-py2.7.egg it says it can't execute a binary file
iszak has joined #ruby
<hoelzro> ummm....isn't easy_install/eggs Python?
<pedda> ups
<pedda> sorry
amskah has joined #ruby
iszak is now known as Guest12259
<pedda> missed the right language :-P
<hoelzro> =)
<pedda> was trying to solve a problem in ruby at the same time
<pedda> never happened to me before :-P
Guest12259 has quit [Client Quit]
thunderstrike has joined #ruby
robustus has joined #ruby
rotor` is now known as rotor
piotr__ has joined #ruby
piotr_ has quit [Ping timeout: 276 seconds]
pedda has left #ruby [#ruby]
haxrbyte_ has quit [Ping timeout: 255 seconds]
amskah has quit [Quit: Leaving]
qwerxy has quit [Quit: offski]
sgmac has joined #ruby
chussenot has joined #ruby
sgmac has left #ruby [#ruby]
Axsuul has joined #ruby
Axsuul has quit [Excess Flood]
Axsuul has joined #ruby
Axsuul has quit [Excess Flood]
Axsuul has joined #ruby
Axsuul has quit [Excess Flood]
Axsuul has joined #ruby
Axsuul has quit [Excess Flood]
Axsuul has joined #ruby
Axsuul has quit [Excess Flood]
Axsuul has joined #ruby
Axsuul has quit [Excess Flood]
maletor has joined #ruby
Axsuul has joined #ruby
Axsuul has quit [Excess Flood]
Axsuul has joined #ruby
Axsuul has quit [Excess Flood]
Axsuul has joined #ruby
Axsuul has quit [Excess Flood]
LouisGB has joined #ruby
dpk has joined #ruby
risico has joined #ruby
jarred has quit [Quit: jarred]
Criztian has joined #ruby
Takehiro has quit [Remote host closed the connection]
maletor has quit [Ping timeout: 244 seconds]
elaptics`away is now known as elaptics
Iszak_ has joined #ruby
ttilley has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
williamherry has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
chussenot has quit [Ping timeout: 244 seconds]
Banistergalaxy has joined #ruby
chussenot has joined #ruby
timonv has joined #ruby
scb has joined #ruby
charliesome has joined #ruby
ewag has joined #ruby
qwerxy has joined #ruby
bennukem has joined #ruby
<bennukem> hi
noahsussman has quit [Read error: Connection reset by peer]
noahsussman has joined #ruby
ewag has quit [Quit: Leaving]
ewag has joined #ruby
sdwrage has left #ruby [#ruby]
cnf has left #ruby ["Linkinus - http://linkinus.com"]
<bennukem> how choose my environment for execute a gem install ?
<bennukem> gem need a >= 1.3.6 version, how I can use the 1.9.1
ewag has quit [Client Quit]
ewag has joined #ruby
ewag has quit [Read error: Connection reset by peer]
ewag has joined #ruby
<Hanmac> bennukem: so you are under an ubnutu or debian?
carrythezero has quit [Ping timeout: 240 seconds]
mneorr1 has joined #ruby
<Hanmac> bennukem: install the package ruby1.9.1-full package, then do "update-alternatives --config ruby" and maybe this too: "update-alternatives --config gem"
mneorr has quit [Ping timeout: 276 seconds]
<bennukem> Hanmac: sorry, debian
<Hanmac> my solution should work on debian too
<bennukem> I installed rubygems1.9.1
<Hanmac> hm install please the "ruby1.9.1-full" package too
<Xeago> Is this acceptable english: "I was criticized for hesitating to take or not taking any decisions."?
<bennukem> Hanmac: you save my life
<bennukem> thk
<bennukem> I hope
<Xeago> should it just be hesitating to take, and leave it the "or not taking..."
<hoelzro> I would say "to make any decisions"
<Xeago> hoelzro: how would the full sentence look like in that case?
<Xeago> I'm trying to ge tthe point through that I was hesitating and possible not taking any decisions
<hoelzro> I was criticized for hestitating to make a decision
lkba has quit [Quit: Bye]
<bennukem> arggll gem is always in version 1.3.5 , after a "update-alternatives --config gem"
<rcsheets> Xeago: one does not take decisions. there's something wrong with your choice of verb.
cantonic has quit [Quit: cantonic]
<bnagy> take a decision is valid, although uncommon
cantonic has joined #ruby
<Xeago> what would be proper?
<bnagy> especially uncommon in present tenses
<rcsheets> Xeago: if you should have been deciding, then you might be criticized for not making decisions. or if you should be allowing others to choose, then maybe accepting decisions?
<Xeago> I've always been taught to take a decision
<bnagy> use make unless you have a special reason not to
* bennukem will write 1000 time, never use a ruby software
<bnagy> take a decision comes from french / latin style
<Xeago> I should've been deciding myself, however I didn't and questioned others and led that be the decisive factor instead of the arguments I proposed myself
robotmay has joined #ruby
<rcsheets> Xeago: if you should have been deciding, then "make".
Takehiro has joined #ruby
<Xeago> "I was criticized for hesitating to make a decision."?
<rcsheets> yes, that sounds fine
Juul has quit [Ping timeout: 276 seconds]
<rcsheets> or even "I was criticized for my hesitation in making a decision." or "I was criticized for my hesitation in making decisions."
<bnagy> unless it was a specific decision, you could also say 'for indecisiveness'
<Xeago> I was criticized for my hesitation in making decisions and indecisiveness in general.
<bnagy> that's redundant
<Xeago> I like the last one rcsheets alot, but also indecisiveness is the property/aspect I am talking about
carrythezero has joined #ruby
Takehiro has quit [Ping timeout: 244 seconds]
<rcsheets> the other thing is that if you say "my hesitation" it can be taken to imply that the criticism is correct. i don't know if that's what you want or not.
<Xeago> the criticism was correct
Takehiro has joined #ruby
<Xeago> they noticed my indecisiveness due to my hesitation for deciding
<rcsheets> right
<rcsheets> any of these last few examples would work
rakl has quit [Quit: sleeping]
<Xeago> might be redundant, but it only showed while I deciding amongst others
mneorr1 has quit [Quit: Leaving.]
kjellski has joined #ruby
<bnagy> hesitation in making decisions and indecisiveness is a horrible sentence
<bennukem> I don't remeber when a ruby software run on my life ....
<bennukem> rm ruby
<bennukem> bye and thk for people try to help me
bennukem has left #ruby [#ruby]
<matti> ;]
br4ndon has joined #ruby
ananthakumaran has quit [Ping timeout: 244 seconds]
vectorshelve has joined #ruby
sagax has joined #ruby
afex has quit [Quit: afex]
Takehiro has quit [Remote host closed the connection]
dekroning has joined #ruby
Iszak has joined #ruby
Iszak is now known as Guest43773
Takehiro has joined #ruby
ananthakumaran has joined #ruby
chussenot has quit [Ping timeout: 276 seconds]
Guest43773 has quit [Client Quit]
nari has quit [Ping timeout: 245 seconds]
<amaya_> An object must be exit in some system. In that system,all things have their meanings.
lchin has joined #ruby
gmci has joined #ruby
wallerdev has quit [Quit: wallerdev]
mhi^ has left #ruby [#ruby]
<amaya_> Well , I am thinking about philosophy.
cascalheira has joined #ruby
br4ndon has quit [Ping timeout: 255 seconds]
hemanth has quit [Read error: Connection reset by peer]
Progster has joined #ruby
fermion has joined #ruby
snearch has joined #ruby
sspiff has quit [Ping timeout: 264 seconds]
Gesh has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
Takehiro has quit [Remote host closed the connection]
rburton- has joined #ruby
pingfloyd has quit [Quit: pingfloyd]
pskosinski has joined #ruby
hemanth has joined #ruby
Takehiro has joined #ruby
br4ndon has joined #ruby
<hemanth> vectorshelve, meow
<shevy> Hanmac eh what is that
<Hanmac> shevy its the "Yangtze River" in China
Takehiro has quit [Remote host closed the connection]
<Xeago> why is it colored as it is?
<bnagy> uigyr blood
<shevy> I've seen dead people floating in it, but that colouring is a bit much
<Hanmac> "Then the third angel poured out his bowl on the rivers and springs of water, and they became blood." - Revelation 16:4 XD
<vectorshelve> hemanth: hi.. what was that ? :)
<Xeago> uigyr yields not a desired result at google
<Hanmac> i read about some kind of "natural algal blooms " ... but i dont trust them
<hemanth> vectorshelve, that was some greetings
<vectorshelve> hemanth: thanks.. hope you are doing good :)
Axsuul has joined #ruby
mneorr has joined #ruby
<hemanth> vectorshelve, not bad...
<vectorshelve> hemanth: that's quite ionic to what was expected !! Expect was "I am good" :)
<vectorshelve> hemanth: ironic*
<hemanth> :-]
x0F has quit [Disconnected by services]
Guedes_out is now known as Guedes
x0F_ has joined #ruby
x0F_ is now known as x0F
matrixis1 has joined #ruby
matrixise has quit [Read error: Connection reset by peer]
scb has quit [Ping timeout: 260 seconds]
Takehiro has joined #ruby
chussenot has joined #ruby
frogprince_mac has joined #ruby
Takehiro has quit [Remote host closed the connection]
Takehiro has joined #ruby
Mon_Ouie has quit [Read error: No route to host]
Takehiro has quit [Remote host closed the connection]
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
br4ndon has joined #ruby
berserkr has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
Takehiro has joined #ruby
dhruvasagar has joined #ruby
Takehiro has quit [Remote host closed the connection]
rburton- has quit [Quit: Linkinus - http://linkinus.com]
Takehiro has joined #ruby
vlad_starkov has joined #ruby
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
topo has quit [Quit: aaa]
cantonic has quit [Quit: cantonic]
machty has quit [Ping timeout: 276 seconds]
amaya_ has quit [Ping timeout: 260 seconds]
timonv has quit [Remote host closed the connection]
robotmay_ has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
robotmay has quit [Ping timeout: 276 seconds]
jenrzzz has quit [Ping timeout: 244 seconds]
chussenot has quit [Ping timeout: 268 seconds]
ZachBeta has joined #ruby
gmci has quit [Quit: Computer has gone to sleep.]
tpe11etier has quit [Quit: tpe11etier]
BiHi_ has quit [Quit: Computer has gone to sleep]
Progster has quit [Ping timeout: 260 seconds]
<kiela> Hi
amaya_ has joined #ruby
<kiela> is there any way Time.parse parse correctly time with AM/PM? for example 2012-09-10 12:15 PM ?
<Xeago> if you can't figure it out by the docs, I'd recommend a time parsing library
<Xeago> gem*
<dr_bob> kiela: $ ri Time.strftime
<dr_bob> You'll find %l and the like
<dr_bob> Then parse with strptime
thisirs has joined #ruby
Foxandxss has joined #ruby
rgrau has joined #ruby
timonv has joined #ruby
horsey has joined #ruby
<kiela> dr_bob: thanks, I know %l, but i want it in other way, I'd like to execute Time.parse('2012-09-10 12:15 PM') and it should return '00:15'
timonv has quit [Remote host closed the connection]
Jake232 has joined #ruby
<zii> Any ideas how to get ack to recognize stuff like .haml?
perun has quit [Ping timeout: 272 seconds]
<zii> without -a
<zii> Nevermind!
dr_bob has quit [Ping timeout: 245 seconds]
g00se has joined #ruby
timonv has joined #ruby
darkfox83 has joined #ruby
a_a_g has joined #ruby
g00se has quit [Remote host closed the connection]
weeb1e_ has joined #ruby
<hoelzro> zii: --type-add
weeb1e has quit [Ping timeout: 264 seconds]
m3pow has quit [Quit: ChatZilla 0.9.88.2 [Firefox 15.0.1/20120905151427]]
<zii> hoelzro, yup, I was scrtolling the manpage
<kiela> Xeago: Chronic gem works perfectly, thanks
timonv has quit [Ping timeout: 244 seconds]
<Hanmac> Xeago & kiela: it seems that DateTime.strptime is to dump to parse the PM
robbyoconnor has quit [Quit: Konversation terminated!]
insulator has joined #ruby
sspiff has joined #ruby
sspiff has quit [Changing host]
sspiff has joined #ruby
<kiela> Hanmac: nice, i prefer to use DateTime rather than Chronic gem(which seems to be nice too)
<Hanmac> ... if you get DateTime working like you want ... than its okay ... i dont get it working :'(
<Hanmac> ... stupid AM/PM format
<kiela> Hanmac: I'd like change '12:15 PM' to 24h format clock, DateTime.parse('12:15 AM').strftime('%R') seems working fine to me
dhruvasagar has quit [Remote host closed the connection]
<Hanmac> ... okay ... i tryed strptime ... parse seems to be better
nari has joined #ruby
a_a_g has quit [Quit: Leaving.]
<kiela> Hanmac: DateTime.parse('12:15 AM', '%R') will return whole date, with year, day and so on, I just want hour ;)
justinmcp has joined #ruby
perun has joined #ruby
flype has joined #ruby
a_a_g has joined #ruby
<kiela> Hanmac: of course, I meant to write DateTime.strptime, not DateTime.parse, my mistake
tvw has joined #ruby
<Hanmac> you fooled me ... i mistake AM for PM ...
<Hanmac> >> require "date"; DateTime.strptime('2012-09-10 12:15 AM',"%Y-%m-%d %I:%M %P").strftime("%H:%M")
<al2o3cr> (String) "00:15"
thunderstrike has quit [Read error: Connection reset by peer]
thunderstrike has joined #ruby
rohit has joined #ruby
rohit has quit [Client Quit]
ZachBeta has quit [Quit: Computer has gone to sleep.]
rohit has joined #ruby
insulator has quit [Ping timeout: 276 seconds]
statarb3 has quit [Quit: Leaving]
chussenot has joined #ruby
fbernier has joined #ruby
pu22l3r has quit [Remote host closed the connection]
ickmund has quit [Ping timeout: 268 seconds]
ickmund has joined #ruby
BiHi has joined #ruby
Erfankam has quit [Quit: Leaving.]
atmosx has joined #ruby
rohit has quit [Ping timeout: 276 seconds]
Guest81709 has joined #ruby
KevinSjoberg has joined #ruby
lchin has quit [Remote host closed the connection]
sebastianb has joined #ruby
Takehiro has quit [Remote host closed the connection]
larissa has joined #ruby
Morkel has quit [Quit: Morkel]
Takehiro has joined #ruby
timonv has joined #ruby
machty has joined #ruby
KevinSjoberg has quit [Read error: Connection reset by peer]
fbernier has quit [Ping timeout: 276 seconds]
Agis__ has joined #ruby
mneorr has quit [Quit: Leaving.]
emmanuelux has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
theRoUS is now known as GenghisKen
xyon has left #ruby ["WeeChat 0.3.8"]
scb has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
geekbri has joined #ruby
Jake232 has quit [Quit: Computer has gone to sleep.]
chussenot has quit [Remote host closed the connection]
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
chussenot has joined #ruby
snearch has quit [Quit: Verlassend]
ssspiff has joined #ruby
sspiff has quit [Ping timeout: 276 seconds]
pilili_78 has joined #ruby
mark_locklear has joined #ruby
jobicoppola has joined #ruby
habib has joined #ruby
<habib> clear
<atmosx> just joined
<atmosx> wtf do you clear for?
nucc has joined #ruby
<Xeago> to clear!?
<atmosx> clear!
<Xeago> see?
<deryl> many people don't like their channel window showing all the nicks. like they don't always like seeing who is playing what music ;)
<atmosx> speaking of which...
* atmosx is listening to The Smiths - Bigmouth Strikes Again, from the album Complete (Remastered) [3:13 mins] [256 kbps AAC] [7,21 MB] [played 3 times]
<atmosx> deryl: i know you were dying to know
<Hanmac> The Purple 8 Ball says: It's possible
<JonnieCache> ooh are we showing off our mirc scripts?
* JonnieCache looks around for his wet fish
<deryl> atmosx: lol
<atmosx> JonnieCache: I'ts Textual!!!! mIRC is for windows-lusers! I'm a UNIX derivative and I rock! I use cli to 'uname -a' all the time!!!
noahsussman has quit [Quit: Unexpected SpanishInquisitionException]
noahsussman has joined #ruby
<atmosx> The Smiths have strong lyrics for once
<Hanmac> JonnieCache, no in my case its an pidgin plugin
<atmosx> I don't understand how can you stay on irc using pidgin
<atmosx> purple irc
gmci has joined #ruby
<JonnieCache> i used to have some serious mirc scripts back in the day
<JonnieCache> colour ascii art generators and shit
<amaya_> There are no video games for UNIX.
<Hanmac> amaya_ liar
niklasb_ has joined #ruby
<JonnieCache> also it was all about having winnuke integrated into your irc client. the glory days of taking over channels on efnet...
habib has quit [Ping timeout: 264 seconds]
KevinSjoberg has joined #ruby
vlad_starkov has joined #ruby
iamjarvo has joined #ruby
<atmosx> JonnieCache: I thought mIRC was IRC and Internet exploder the Internet back in the day
iori has quit [Remote host closed the connection]
<horsey> JonnieCache did u ride netsplits to take over chans
<JonnieCache> im kindof exaggerating we didnt do it that much but we used to try and do stuff like that
<JonnieCache> riding splits and just using the many different packets which would just bluescreen windows boxes back then
minver has joined #ruby
enroxorz-work has joined #ruby
<JonnieCache> it was chaos
<minver> is it possible to list the attributes as a Hash from an OpenStruct object?
arkiver has quit [Quit: Leaving]
<atmosx> when I talk to people from back 2000-2004 they are surprised that I still use IRC and not facebook
<atmosx> like if they have the same functionn
<matti> We need FaceIRC.
<matti> ;d
<deryl> much prefer irc over facebook. then again i've been on irc since just after efnet's splitup
* matti <3 IRC
<matti> I remember the time when IRC was a new thing to me.
<deryl> hey matti
<matti> And I used to spent hours on talk/ytalk.
<matti> ;]
<matti> Good 'ol university time.
<deryl> hehe
seanwash has joined #ruby
<matti> When 14.400 bps was considered faaaast.
<matti> ;d
<JonnieCache> i stopped using it for a decade or something then came back to it when i started going to my local hackerspace
<deryl> i *like* that irc doesn't change under me, unlike a few other places i know (cough - facebook, myspace, yahoo - cough)
<Hanmac> minver:
<Hanmac> >> require "ostruct"; a= OpenStruct.new; a.abc = 3; a.xyz=4; a.instance_variable_get(:@table)
<al2o3cr> (Hash) {:abc=>3, :xyz=>4}
RegEchse has joined #ruby
<Hanmac> for some reason the table method does not work oO
<JonnieCache> but during that time i was on a private direct connect filesharing server which had irc-like chat so i guess that counts
robozahn has joined #ruby
<Hanmac> minver: a.send(:table) works but a.table does not ... its about visiblity
carloslopes has joined #ruby
<minver> Hanmac: thanks. but I found the #marshal_dump method. It returns a hash with all the attributes
invisime has joined #ruby
frogprince_mac has quit [Quit: Leaving...]
AlbireoX has joined #ruby
KevinSjoberg has quit [Read error: Connection reset by peer]
<fowl> JonnieCache: u sound 50 1337 right now
enricostn has joined #ruby
alindeman has quit [Ping timeout: 244 seconds]
chussenot has quit [Quit: chussenot]
<enricostn> hi, I need to generate a random string containing 11 digits. How could I achieve this in Ruby 1.9.3?
risico has quit [Read error: Connection reset by peer]
Vert has joined #ruby
<JonnieCache> fowl: its nothing compared to how l33t i feel
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
chussenot has joined #ruby
<Hanmac> enricostn from A..Z or do you want other chars too?
cmasseraf has joined #ruby
<enricostn> just digits 0..9
<fowl> >> 11.times.map { (0..9).to_a.sample }
<al2o3cr> (Array) [6, 1, 1, 4, 5, 6, 7, 4, 1, 4, 2]
<fowl> >> 11.times.map { (0..9).to_a.sample.to_s }.join''
<al2o3cr> (String) "14221322610"
Iszak_ has quit [Ping timeout: 244 seconds]
<Hanmac> fowl:
<Hanmac> >>('A'..'Z').to_a.sample(11).join
<al2o3cr> (String) "EBJZRIXQMOD"
anekos has quit [Quit: Tiarra 0.1+svn-39036: SIGTERM received; exit]
atmosx has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<fowl> thats pretty useful
<fowl> a lot of methods have unexpected but useful arguments
anekos has joined #ruby
<Hanmac> fowl ... the difference is: your method allows duplicates, my method allows no duplicates :(
matrixis1 has quit [Quit: leaving]
matrixise has joined #ruby
habib has joined #ruby
<fowl> >> ('A'..'D').to_a.sample(10)
<al2o3cr> (Array) ["C", "A", "D", "B"]
<enricostn> using (0..9).to_a.sample(11).join I get always strings with length = 10
<horsey> >> (0..9).to_a.cycle.sample(11)
<al2o3cr> -e:1:in `eval': undefined method `sample' for #<Enumerator: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]:cycle> (NoMethodError), from -e:1:in `eval', from -e:1:in `<main>'
<horsey> >> (0..9).cycle.sample(11)
<al2o3cr> -e:1:in `eval': undefined method `sample' for #<Enumerator: 0..9:cycle> (NoMethodError), from -e:1:in `eval', from -e:1:in `<main>'
<fowl> bicycle??
<Hanmac> horsey DONT try to call to_a on cycle :P
timonv has quit [Remote host closed the connection]
<horsey> >> (0..9).cycle.take(11).shuffle
<al2o3cr> (Array) [8, 3, 5, 6, 4, 0, 0, 2, 7, 9, 1]
fbernier has joined #ruby
<horsey> >> (0..9).cycle.take(11).shuffle.join
<al2o3cr> (String) "35981076024"
<horsey> >> (0..9).cycle.take(11).shuffle.join.count
<al2o3cr> -e:1:in `eval': wrong number of arguments (at least 1) (ArgumentError), from (eval):1:in `<main>', from -e:1:in `eval', from -e:1:in `<main>'
<Xeago> what's the difference between chef and capistrano?
<horsey> >> (0..9).cycle.take(11).shuffle.join.size
<al2o3cr> (Fixnum) 11
<fowl> >> "hanmac".each_byte.cycle do |b| puts b end
<al2o3cr> 99, Console: 104, 97, 110, 109, 97, 99, 104, 97, 110, 109, 97, 99, 104, 97, 110, 109, 97, 99, 104, 97, 110, 109, 97, 99, 104, 97, 110, 109, 97, 99, 104, 97, 110, 109, 97, 99, 104, 97, 110, 109, 97, 99, 104, 97, 110, 109, 97, 99, 104, 97, 110, 109, 97, 99, 104, 97,...
[Neurotic] has quit [Remote host closed the connection]
himsin has quit [Remote host closed the connection]
himsin has joined #ruby
<enricostn> ok, what's the better between (0..9).to_a.sample(11).join and (0..9).cycle.take(11).shuffle.join
<enricostn> >>(0..9).to_a.sample(11).join
<al2o3cr> (String) "1705863492"
<fowl> enricostn: my solution is clearly the best
<Xeago> >> (0..9).cycle.take(11).shuffle.join
<al2o3cr> (String) "18607932405"
<Xeago> >> (0..9).to_a.sample(11).join
<al2o3cr> (String) "2904387156"
<Xeago> >> (0..9).to_a.sample(11).size
<al2o3cr> (Fixnum) 10
<Xeago> question is do you want repetition or not?
<shevy> question is do you want repetition or not?
<enricostn> it doesn't really matter
<Xeago> then use sample
<shevy> awwww ;P
<fowl> repitition is do you want question or not?
<shevy> what is the .cycle btw?
<horsey> shevy it means u're a noob
<horsey> for not knowing it
<horsey> noob
<enricostn> >>(0..9).to_a.sample(11).join.length
<al2o3cr> (Fixnum) 10
<fowl> shevy's bee on ruby since 1.8, still havent learned how to google ruby docs on-the-fly
<Xeago> >> ri cycle
<al2o3cr> -e:1:in `eval': undefined local variable or method `cycle' for main:Object (NameError), from -e:1:in `eval', from -e:1:in `<main>'
<Xeago> >> ri Enumerable#cycle
<al2o3cr> -e:1:in `eval': undefined method `ri' for main:Object (NoMethodError), from -e:1:in `eval', from -e:1:in `<main>'
<Xeago> booh
<shevy> fowl yeah, I try to avoid reaching full knowledge
<enricostn> >>(0..9).cycle.take(11).shuffle.join.length
<al2o3cr> (Fixnum) 11
<JonnieCache> >> system("ri cycle")
<al2o3cr> (NilClass) nil
<JonnieCache> booo
<Xeago> what's the difference between chef and capistrano?
<enricostn> fowl: using sample(11) I get a 10 digits string
kvirani has joined #ruby
<JonnieCache> >> `ri cycle`
<al2o3cr> -e:1:in `eval': No such file or directory - ri cycle (Errno::ENOENT), from (eval):1:in `<main>', from -e:1:in `eval', from -e:1:in `<main>'
cmasseraf_ has joined #ruby
<fowl> enricostn: why you telling me? that wasnt my solution, boopkins
<Xeago> enricostn: that is to be expected
cmasseraf has left #ruby ["Leaving"]
<JonnieCache> Xeago: capistrano is just a simple set of scripts that you run on your local machine which sshes into your server and does stuff like deployments
<enricostn> fowl sorry!
<Xeago> so does chef?
<JonnieCache> Xeago: chef is a full configuration management system which can do anything on a server
cmasseraf_ has quit [Client Quit]
tommyvyo has joined #ruby
<JonnieCache> and crucially parts of it run on the server
cmasseraf has joined #ruby
timonv has joined #ruby
<Xeago> so chef for server management
<JonnieCache> chef is a massive thing, you could reasonably build a whole career on it. capistrano is just a tool like bundler or something
<Xeago> and capistrano for deployments?
<enricostn> >>11.times.map { (0..9).to_a.sample.to_s }.join
austinbv has joined #ruby
<al2o3cr> (String) "91240028350"
<Xeago> enricostn: what are you trying to achieve
<JonnieCache> chef can do the stuff capistrano does
<JonnieCache> but you could use them together
<Xeago> multiple solutions have been posted with their caveats
<fowl> dont even ened that to_s
Agis__ has quit [Quit: Agis__]
<enricostn> Xeago: I need a random string with 11 digits, I think fowl solution is the best
fantazo has joined #ruby
<enricostn> 11.times.map { (0..9).to_a.sample }.join
* fowl brushes his shoulders off and pimp strolls out of here
<enricostn> >>11.times.map { (0..9).to_a.sample }.join
<al2o3cr> (String) "59183958480"
<Xeago> enricostn: boot up a REPL
a_a_g has quit [Quit: Leaving.]
noahsussman has quit [Quit: Unexpected SpanishInquisitionException]
mucker has joined #ruby
<shevy> lol "boot up" :D
<shevy> enricostn: use your floppy disc man
<enricostn> Xeago: ehm REPL? like Read-Eval-Print-Eval loop ?
darkfox83 has quit [Quit: Ex-Chat]
justinmcp has quit [Remote host closed the connection]
<shevy> Retro Enhanced Perl Language
<shevy> hip in the 1970s
<enricostn> shevy: cool
<shevy> he means irb most likely
andrewhl has joined #ruby
habib has quit [Ping timeout: 244 seconds]
noyb has joined #ruby
ly_gs has joined #ruby
sspiff has joined #ruby
ping-pong has quit [Ping timeout: 265 seconds]
johnjohnson has joined #ruby
ssspiff has quit [Ping timeout: 276 seconds]
<fowl> no he means ripl
<shevy> mirb!
spopescu has joined #ruby
<shevy> enricostn, this will be the future of ruby https://github.com/mruby/mruby
<shevy> in... 2 years
<shevy> " matz authored an hour ago"
ly_gs has quit [Remote host closed the connection]
minver has quit [Ping timeout: 245 seconds]
noyb has quit [Ping timeout: 276 seconds]
Faris has joined #ruby
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
nwest has joined #ruby
linoj has joined #ruby
nanderoo has joined #ruby
Jellyg00se has joined #ruby
stabby_lambda has joined #ruby
stabby_lambda has quit [Client Quit]
Faris has left #ruby [#ruby]
noahsussman has joined #ruby
Rochefort has joined #ruby
elico has joined #ruby
ly_gs has joined #ruby
josh^ has quit [Ping timeout: 276 seconds]
vlad_starkov has quit [Remote host closed the connection]
austinbv has quit [Ping timeout: 268 seconds]
bluenemo has quit [Remote host closed the connection]
lushious has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
trooney has quit [Quit: seacrest out]
sepp2k has joined #ruby
Iszak has joined #ruby
Iszak has quit [Changing host]
Iszak has joined #ruby
josh^ has joined #ruby
nari has quit [Ping timeout: 272 seconds]
mneorr has joined #ruby
Faris has joined #ruby
linoj has quit [Quit: linoj]
* JonnieCache tries not to throw up
<JonnieCache> that *has* to be fake
<Hanmac> the girl is 1D ... it has a height but no width or depth :P
iamjarvo has quit [Ping timeout: 244 seconds]
<JonnieCache> reminds me of http://www.psdisasters.com/
horsey has quit [Read error: Connection reset by peer]
<JonnieCache> warning: reading that site may cause you to become alienated from your environment and generally scared of the society in which you live
cantbecool has joined #ruby
yasushi has joined #ruby
horsey has joined #ruby
austinbv has joined #ruby
<JonnieCache> when you realise that the majority of images of other humans you see are completely fake, it gets a bit weird
beakerman has quit [Remote host closed the connection]
vectorshelve has quit [Quit: Page closed]
Faris has quit [Quit: Leaving.]
<Hanmac> it gets more weird, when you are in RL and thinks: "this tree doesn't look real ... it must be photoshoped"
elico has quit [Quit: elico]
nateberkopec has joined #ruby
flype has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
a_a_g has joined #ruby
jasonkuhrt has joined #ruby
timonv has quit [Read error: Connection reset by peer]
horsey has quit [Read error: Connection reset by peer]
timonv has joined #ruby
horsey has joined #ruby
gift has joined #ruby
<workmad3> Hanmac: evil demons are photoshopping images from your eyes before your brain gets them!
horsey has quit [Read error: Connection reset by peer]
a_a_g has quit [Ping timeout: 244 seconds]
Axsuul has quit [Ping timeout: 240 seconds]
jobicoppola has quit [Quit: Computer has gone to sleep.]
cantbecool has quit [Quit: Textual IRC Client: www.textualapp.com]
nucc has quit [Quit: Linkinus - http://linkinus.com]
horsey has joined #ruby
krawchyk has joined #ruby
kryl99_ has joined #ruby
jclem has quit [Quit: Linkinus - http://linkinus.com]
jrist-afk is now known as jrist
ly_gs has quit [Remote host closed the connection]
horsey has left #ruby [#ruby]
mercwithamouth has joined #ruby
uris has joined #ruby
kryl99_ has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
yshh has quit [Remote host closed the connection]
GoGoGarrett has joined #ruby
mikedevita has joined #ruby
frogprince_mac has joined #ruby
austinbv has quit [Ping timeout: 255 seconds]
sonkei has joined #ruby
GraemeLion has joined #ruby
verto|off is now known as verto
virtuose has quit [Ping timeout: 252 seconds]
alindeman has joined #ruby
rubyist has joined #ruby
virtuose has joined #ruby
dekroning has quit [Ping timeout: 260 seconds]
noahsussman has quit [Quit: Unexpected SpanishInquisitionException]
<rubyist> hi
duard has joined #ruby
<rubyist> anyone tried iron ruby
phantasm66 has joined #ruby
stopbit has joined #ruby
v0n has joined #ruby
Choclo has joined #ruby
TomJ has joined #ruby
TomJ has quit [Changing host]
TomJ has joined #ruby
awarner has joined #ruby
hcumberdale has joined #ruby
<hcumberdale> How to add regexp-url security with authlogic ?
<JonnieCache> whats regexp-url security?
<hcumberdale> Like defining roles and users for specified url's
dekroning has joined #ruby
<JonnieCache> in rails everything goes through the MVC architecture
tonini has quit [Remote host closed the connection]
<JonnieCache> you authorize specific actions rather than specifying regexes
thaz has quit [Quit: thaz]
kpshek has joined #ruby
ph^ has quit [Remote host closed the connection]
<hcumberdale> I've found examples using the Controler
amaya_ has quit [Quit: ChatZilla 0.9.88.2 [Firefox 15.0.1/20120905151427]]
<hcumberdale> There is the central routes file, is it possible to specify who is allowed to call a specified URL?
<JonnieCache> the routes point to controller actions, and that is where the authorization is typically applied
<JonnieCache> iirc rails does the route resolution almost the first thing when a request comes in, so applying authorization there would be hard
<JonnieCache> just do it in the controller
cakehero has joined #ruby
<hcumberdale> okay,...
<hcumberdale> ;(
sambio has joined #ruby
asobrasil has joined #ruby
sspiff has quit [Remote host closed the connection]
johnlcox_ has joined #ruby
<rubyist> has anyone here used iron ruby?
<Hanmac> isnt iron ruby rusted?
nacengineer has quit [Remote host closed the connection]
CodeFriar has joined #ruby
<fowl> my ruby is made with skyforge steel
linoj has joined #ruby
Rochefort has quit [Remote host closed the connection]
auntieNeo has left #ruby [#ruby]
<hoelzro> fowl: nice.
iamjarvo has joined #ruby
fantazo has quit [Remote host closed the connection]
ewag has quit [Quit: Leaving]
dnyy__ has joined #ruby
Rochefort has joined #ruby
tvw has quit [Remote host closed the connection]
internet_user has joined #ruby
asteve has joined #ruby
snorkdude has joined #ruby
Rochefortes has joined #ruby
Rochefort has quit [Read error: Connection reset by peer]
Rochefortes has quit [Remote host closed the connection]
elico has joined #ruby
Rochefortes has joined #ruby
pricees has joined #ruby
SCommette has joined #ruby
havenn has joined #ruby
xclite has joined #ruby
s1n4 has quit [Quit: leaving]
sailias has joined #ruby
nacengineer has joined #ruby
tvw has joined #ruby
snorkdude has quit [Remote host closed the connection]
mneorr has quit [Read error: Connection reset by peer]
mneorr has joined #ruby
tk__ has joined #ruby
joshman_ has joined #ruby
bbttxu has joined #ruby
ph^ has joined #ruby
sspiff has joined #ruby
sspiff has quit [Changing host]
sspiff has joined #ruby
zigomir has quit [Read error: Operation timed out]
tvw has quit [Ping timeout: 272 seconds]
iamjarvo has quit [Ping timeout: 244 seconds]
Rochefort has joined #ruby
Rochefortes has quit [Ping timeout: 276 seconds]
ananthakumaran has quit [Quit: Leaving.]
frogprince_mac has quit [Quit: Leaving...]
tagrudev has quit [Quit: http://youtu.be/zyltK6pmJGg]
seanyo has joined #ruby
dekroning has quit [Ping timeout: 246 seconds]
yshh has joined #ruby
Agis__ has joined #ruby
zigomir has joined #ruby
Solnse has joined #ruby
phantasm66 has quit [Quit: *sleeeeep*]
tyman has joined #ruby
adambeynon has joined #ruby
phantasm66 has joined #ruby
tyman has left #ruby [#ruby]
jasonkuhrt has quit [Quit: Leaving...]
phantasm66 has quit [Client Quit]
Virunga has joined #ruby
answer_42 has quit [Ping timeout: 276 seconds]
asklov has joined #ruby
zigomir has quit [Ping timeout: 244 seconds]
KevinSjoberg has joined #ruby
jrajav has joined #ruby
mvangala has quit [Remote host closed the connection]
ly_gs has joined #ruby
dekroning has joined #ruby
adeponte has joined #ruby
tiripamwe has joined #ruby
Spooner has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
mvangala has joined #ruby
mvangala has quit [Remote host closed the connection]
mvangala has joined #ruby
timonv has quit [Remote host closed the connection]
Takehiro has quit [Remote host closed the connection]
iamjarvo has joined #ruby
Takehiro has joined #ruby
ACK___ has joined #ruby
Takehiro has quit [Remote host closed the connection]
jasonkuhrt has joined #ruby
<ACK___> which one is better Static web generator Nanoc or Middleman?
<ACK___> whta your experience
<ACK___> what's your experience
locriani has joined #ruby
locriani has quit [Changing host]
locriani has joined #ruby
<Mon_Ouie> Never used (or heard of) Middleman, but Nanoc is nice
yasushi has quit [Remote host closed the connection]
<ACK___> is nanoc can be heavily customize
ltsstar has joined #ruby
crazed has quit [Ping timeout: 260 seconds]
jaylevitt has joined #ruby
crazed has joined #ruby
<Spooner> ACK___ : I've used Nanoc, but also not heard of middleman. It is very customisable, but it rather depends what level of customisation you consider "customisable". You might also consider Jekyll, though I suppose that is more focused.
timonv has joined #ruby
zigomir has joined #ruby
<ACK___> u really did'nt herad about Middleman
<seanwash> Hey Everyone
freeayu has quit [Quit: 离开]
johnjohnson has quit [Ping timeout: 264 seconds]
<Spooner> No, but I'm not a web dev; I just needed a site for my projects. I just looked at nanoc and jekyll and octopress, I think.
<ACK___> actually there are not many resources about nanoc
geekbri has quit [Remote host closed the connection]
<Mon_Ouie> The tutorial for getting started and the YARD documentation for more specific details was enough for me
jjbohn has joined #ruby
johnjohnson has joined #ruby
<ACK___> i want deploy tutorial
answer_42 has joined #ruby
<Spooner> What I use is: git push (that is all the tutorial you need; I am hosted at github :D)
khakimov has joined #ruby
<Spooner> But anyway, it depends what you want. Something very constrained like Jekyll or something very complex and powerful, closer to Rails. That is your decision, not ours!
crazed has quit [Remote host closed the connection]
crazed has joined #ruby
adeponte has quit [Remote host closed the connection]
jprovazn is now known as jprovazn_away
<reactormonk> Spooner: or nanoc
<Spooner> reactormonk : Yeah, that is why I picked it. Somewhere in the middle...
tk__ has quit [Quit: ばいばい]
<reactormonk> Spooner: rails is for dynamic pages, nanoc/jekyll for static
<Spooner> The more complex things, that say "We use Rails conventions" don't help me, since I don't use rails.
KevinSjoberg has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
burgestrand has quit [Quit: Leaving.]
CodeFriar has quit [Quit: Leaving...]
<Spooner> reactormonk : It is, but Rails is the definition of the bloatware complexity end of the scale ;)
ly_gs has quit [Remote host closed the connection]
<JonnieCache> i do static sites by running wget in mirror mode against a simple sinatra site
sonkei has quit [Quit: Computer has gone to sleep.]
<JonnieCache> its like a DIY jekkyll
Solnse has quit [Ping timeout: 252 seconds]
pricees has quit [Quit: leaving]
pricees has joined #ruby
larissa has quit [Quit: Leaving]
jrajav has quit []
davidcelis has quit [Quit: K-Lined.]
baroquebobcat has joined #ruby
jrajav has joined #ruby
<Spooner> ACK___ : Anyway, I'm giving my opinion, not #ruby's opinion.
yasushi has joined #ruby
aaroncm has joined #ruby
blazes816 has joined #ruby
ckrailo has joined #ruby
sonkei has joined #ruby
grandi_ has joined #ruby
Takehiro has joined #ruby
<ACK___> any gem to add commenting system in nanoc
<Agis__> what would be an elegant way to convert characters in a string to other characters which I'll define somewhere (eg. {"a" => "α", "b" => 'β' etc.)?
zigomir has quit [Ping timeout: 244 seconds]
maesbn has quit [Remote host closed the connection]
<ACK___> any gem to add commenting system in nanoc
<JonnieCache> Agis__: maintain a hash much like the one you just described
apok has joined #ruby
manuscle has joined #ruby
maesbn has joined #ruby
<rgrau> String#tr ?
rakl has joined #ruby
rippa has joined #ruby
<Agis__> JonnieCache: yes provided I've built the hash, then which method should I use? Should I convert the String to Array first?
<JonnieCache> replacements.each {|k,v| string.gsub(k,v)}
apok has quit [Read error: Connection reset by peer]
<Agis__> cool thx :)
Xeago has quit [Ping timeout: 245 seconds]
matrixise has quit [Ping timeout: 276 seconds]
<JonnieCache> actually you'll need:
<JonnieCache> replacements.each {|k,v| string.gsub!(k,v)}
zommi has quit [Quit: Leaving.]
devdazed has joined #ruby
<Spooner> ACK___ : Not aware of one. I added my comments just by adding a bit of javascript for Discus.
<ACK___> ok
triptec has joined #ruby
mikepack has joined #ruby
ACK___ has quit [Quit: Page closed]
<Spooner> I broke my comments recently. Since no-one had ever commented, I decided it wasn't a high priority to fix them ;)
maesbn has quit [Ping timeout: 268 seconds]
<JonnieCache> theyre not needed on most people's personal blogs really. if people have important stuff to say, they can email you and you can do another post or an update about it
v0n has quit [Ping timeout: 246 seconds]
sonkei has quit [Quit: Computer has gone to sleep.]
<JonnieCache> im probably not going to have them when i get my blog back up
<Hanmac> JonnieCache, ACK__ why do you need gsub?
<Hanmac> >> "abcde".tr("a-e","α-ε")
<al2o3cr> (String) "\xCE\xB1\xB2\xB3\xB4"
<JonnieCache> never heard of that method
<Mon_Ouie> In that case, tr is better, but if it were more complex, you can easily pass a hash to gsub
<JonnieCache> youre right its clearly better
<Mon_Ouie> gsub(Regexp.join(hash.keys), hash)
sonkei has joined #ruby
<Mon_Ouie> Also won't cause odd side-effects when one replacement is done before another like JonnieCache's solution
<Mon_Ouie> (if one of the replacements is also part of the strings to replace)
<Mon_Ouie> Oh, I meant Regexp.union*
leoncamel has quit [Ping timeout: 264 seconds]
grandi_ has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
ananthakumaran has joined #ruby
josh^ has quit [Remote host closed the connection]
<Hanmac> Mon_Ouie ... hm i found out that you cant change a-z to z-a with tr :( :/
Synthead has joined #ruby
Rochefortes has joined #ruby
<Mon_Ouie> Because reverse ranges don't work I guess?
rakl has quit [Quit: sleeping]
yasushi has quit [Remote host closed the connection]
<fowl> whee, mon
<Hanmac> yeah :(
yasushi has joined #ruby
yasushi has quit [Remote host closed the connection]
chrishunt has quit [Ping timeout: 276 seconds]
sonkei has quit [Quit: Computer has gone to sleep.]
Rochefort has quit [Ping timeout: 276 seconds]
aganov has quit [Quit: aganov]
jgrevich has joined #ruby
verto is now known as verto|off
Nathandim has joined #ruby
Jellyg00se has quit [Read error: Connection reset by peer]
v0n has joined #ruby
Jellyg00se has joined #ruby
MasterIdler_ has joined #ruby
lkba has joined #ruby
jasonkuhrt has quit [Quit: Leaving...]
yshh has quit [Remote host closed the connection]
Agis__ has quit [Quit: Agis__]
khakimov has quit [Quit: Computer has gone to sleep.]
mikedevita has quit [Remote host closed the connection]
carloslopes has quit [Quit: Leaving.]
Elico1 has joined #ruby
mrdodo has joined #ruby
eldariof has quit [Ping timeout: 248 seconds]
Choclo has quit [Quit: Leaving.]
kvirani has quit [Remote host closed the connection]
<bnagy> >> 'abc'.tr 'a-z', ('a'..'z').to_a.reverse.join
<al2o3cr> (String) "zyx"
_JamieD_ has joined #ruby
johnjohnson has quit []
mercwithamouth has quit [Ping timeout: 252 seconds]
robotmay_ has quit [Remote host closed the connection]
heydonovan has joined #ruby
<rking> bnagy: I was surprised to find a few of my guesses on how to golf that down didn't work.
mneorr has quit [Quit: Leaving.]
heydonovan has quit [Client Quit]
apok has joined #ruby
Choclo has joined #ruby
apok has quit [Client Quit]
<bnagy> the first 3 or 4 hings I can think of are long ;/
<rking> I know!
br4ndon has joined #ruby
v0n has quit [Ping timeout: 246 seconds]
sagax has quit [Quit: Ухожу я от вас]
<bnagy> aight sleep
Takehiro has quit [Remote host closed the connection]
davidcelis has joined #ruby
xorigin has quit [Quit: leaving]
davidcelis has quit [Read error: Connection reset by peer]
br4ndon has quit [Client Quit]
hoelzro is now known as hoelzro|away
davidcelis has joined #ruby
br4ndon has joined #ruby
jonathanwallace has joined #ruby
fermion has quit [Read error: Operation timed out]
yshh has joined #ruby
mikedevita has joined #ruby
<mikedevita> cough
voodoofish430 has joined #ruby
<davidcelis> might wanna see a doctor about that cough bro
<mikedevita> yeah its pretty bad
<mikedevita> its got me hackin' up blood
<mikedevita> sweat, and tears too
<davidcelis> gross
rmcafee has joined #ruby
hadees has quit [Quit: hadees]
wendallsan has joined #ruby
luckyruby has joined #ruby
mneorr has joined #ruby
jso has joined #ruby
mahmoudimus has joined #ruby
pdtpatrick has joined #ruby
thisirs has quit [Remote host closed the connection]
Choclo has quit [Quit: Leaving.]
samflores has joined #ruby
Solnse has joined #ruby
maletor has joined #ruby
cbuxton has joined #ruby
chrishunt has joined #ruby
<seanwash> Does anyone have a minute to help me figure an RVM issue out? I need to use a specific version of ruby (1.8.7-p358) and I can't get it to compile. It errors out at the Make step.
iamjarvo has quit [Ping timeout: 260 seconds]
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
dekroning has quit [Ping timeout: 272 seconds]
Takehiro has joined #ruby
<davidcelis> not much we can do without a trace
mrsolo has joined #ruby
v0n has joined #ruby
cbuxton has quit [Client Quit]
krawchyk has quit [Read error: Connection reset by peer]
shevy has quit [Ping timeout: 252 seconds]
Jellyg00se has quit [Remote host closed the connection]
<Muz> seanwash: there's also #rvm
krawchyk has joined #ruby
<Hanmac> seanwash my crystal ball says that you need to post the entire error that happend at the end of the make step
<Muz> But like davidcelis, not much we can do without a trace, or the output from what happened when Make was ran.
<Muz> *said
hadees has joined #ruby
<seanwash> Is this what you're looking for?!? http://pastebin.com/EEvUwYjU
<Hanmac> the only other help i can give ... dont use ruby1.8.7
<seanwash> I pasted out the output of make.log
<seanwash> Hanmac I have to use it for working with another developer's app
beneggett has joined #ruby
<seanwash> Muz Is there an IRC room for every occasion?
mrsolo has quit [Client Quit]
<Muz> seanwash: You'd best ask that in #meta-questions.
<seanwash> Muz #lulz
kvirani has joined #ruby
<Hanmac> seanwash then you should kick in that other developers ass
<Hanmac> seanwash ... what is your os? some kind of debian or ubuntu?
<seanwash> Hanmac Oh, I want to badly. I'll wait until after I get the check ;)
<seanwash> Hanmac Mountain Lion
<Muz> seanwash: looking at your logfile, I'd suggest taking it to #rvm tbh.
<Hanmac> >> "X11/Xlib.h" is missing ... i dont know the package in wich is that
<al2o3cr> -e:1:in `eval': (eval):1: syntax error, unexpected tIDENTIFIER, expecting $end (SyntaxError), "X11/Xlib.h" is missing ... i dont know the package in wich is that, ^, from -e:1:in `<main>'
luxurymode has joined #ruby
<seanwash> Muz Sure, no worries.
<seanwash> I'll give it a shot over at #rvm! thanks guys
Virunga has quit [Remote host closed the connection]
Solnse has quit []
bluenemo has quit [Ping timeout: 264 seconds]
timonv has quit [Remote host closed the connection]
mrsolo has joined #ruby
adeponte has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
<seanwash> Hanmac That is the coolest thing! haha, let me google this for you
robozahn has quit [Quit: leaving]
zigomir has joined #ruby
Foxandxss has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
MasterIdler__ has joined #ruby
MasterIdler__ has quit [Client Quit]
a_a_g has joined #ruby
rcloak has joined #ruby
larissa has joined #ruby
evilsushi has joined #ruby
evilsushi has joined #ruby
evilsushi has quit [Changing host]
jenrzzz has joined #ruby
shevy has joined #ruby
sepp2k1 has joined #ruby
SegFaultAX|work2 has joined #ruby
sepp2k has quit [Ping timeout: 260 seconds]
Eiam has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
MasterIdler_ has quit [Ping timeout: 240 seconds]
bluenemo has joined #ruby
eignerchris has joined #ruby
samflores has left #ruby [#ruby]
adamkittelson has joined #ruby
<seanwash> Hey everyone! @mpapis in #rvm figured it out for me :)
yxhuvud has joined #ruby
cbuxton has joined #ruby
wallerdev has joined #ruby
artOfWar has joined #ruby
\13k has quit [Quit: gg]
williamcotton has joined #ruby
bluenemo has quit [Ping timeout: 240 seconds]
mikedevita has quit [Remote host closed the connection]
chussenot_ has joined #ruby
chussenot_ has quit [Client Quit]
Criztian_ has joined #ruby
kidoz has joined #ruby
stkowski has joined #ruby
Criztian has quit [Read error: Connection reset by peer]
arturaz has quit [Ping timeout: 276 seconds]
larissa has quit [Quit: Saindo]
chussenot has quit [Ping timeout: 260 seconds]
CodeFriar has joined #ruby
Nathandim has quit [Remote host closed the connection]
eldariof has joined #ruby
kjellski has quit [Quit: This computer has gone to sleep]
samrose has joined #ruby
apok has joined #ruby
nateberkopec has quit [Quit: Leaving...]
Jellyg00se has joined #ruby
wallerdev has quit [Quit: wallerdev]
Iszak has quit [Quit: User has gone to sleep.]
machty has quit [Quit: machty]
ben_alman has quit [Excess Flood]
ylluminate has joined #ruby
ylluminate has quit [Client Quit]
sonkei has joined #ruby
ylluminate has joined #ruby
nateberkopec has joined #ruby
carloslopes has joined #ruby
larissa has joined #ruby
samrose has quit [Quit: Ex-Chat]
scb has quit [Ping timeout: 260 seconds]
geekbri has joined #ruby
mercwithamouth has joined #ruby
BiHi has quit [Quit: Computer has gone to sleep]
samrose has joined #ruby
iamjarvo has joined #ruby
evilsushi has quit [Read error: Operation timed out]
strk has joined #ruby
centipedefarmer has joined #ruby
<strk> what do I have to import to use Open3 ?
frogprince_mac has joined #ruby
<libryder> anyone have a good reference online that talks about passing around nil for conditionals?
ben_alman has joined #ruby
ken_barber has joined #ruby
sonkei has quit [Quit: Computer has gone to sleep.]
qwerxy has quit [Quit: offski]
<Hanmac> strk:
<Hanmac> >> require "open3";Open3
<al2o3cr> (Module) Open3
evilsushi has joined #ruby
evilsushi has quit [Changing host]
evilsushi has joined #ruby
<strk> Hanmac: thanks ! is it a builtin or should I put it in the Gemfile too ?
flype has joined #ruby
bluenemo has joined #ruby
ylluminate has quit [Quit: Bye!]
larissa has quit [Ping timeout: 264 seconds]
<davidcelis> it's part of stdlib, so it's builtin
sneakyness_wk has joined #ruby
Jellyg00se has quit [Ping timeout: 260 seconds]
pricees has quit [Ping timeout: 252 seconds]
<Hanmac> strk its build in
cascalheir has joined #ruby
cascalheira has quit [Ping timeout: 260 seconds]
spopescu has left #ruby ["Leaving"]
jonathanwallace has quit [Remote host closed the connection]
curhx has joined #ruby
apok has quit [Read error: Connection reset by peer]
curhx has quit [Client Quit]
apok has joined #ruby
jgrevich_ has joined #ruby
daniel_hinojosa has joined #ruby
sgmac has joined #ruby
curhx has joined #ruby
jgrevich has quit [Ping timeout: 252 seconds]
jgrevich_ is now known as jgrevich
sgmac has left #ruby [#ruby]
cj3kim has quit [Quit: This computer has gone to sleep]
\13k has joined #ruby
curhx has quit [Quit: Konversation terminated!]
Takehiro_ has joined #ruby
bluenemo has quit [Remote host closed the connection]
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
cj3kim has quit [Remote host closed the connection]
techhelp has joined #ruby
bluenemo has joined #ruby
Jellyg00se has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
mattp_ has quit [Ping timeout: 268 seconds]
Takehiro has quit [Ping timeout: 244 seconds]
<techhelp> I am trying to call the double() method in rspec but got undefined method double. Anyone know what? I have required rubygems and rspec
GoHuyGo has joined #ruby
CodeFriar has quit [Quit: Linkinus - http://linkinus.com]
lesce has joined #ruby
strk has left #ruby [#ruby]
<libryder> techhelp: have you required spec_helper?
jrajav has quit []
yshh has quit [Remote host closed the connection]
daniel_hinojosa has quit [Read error: Connection reset by peer]
CodeFriar has joined #ruby
<techhelp> libryder: >> require 'spec_helper'
<techhelp> LoadError: no such file to load -- spec_helper
jonathanwallace has joined #ruby
<libryder> spec_helper would be something you have to create to configure rspec
<libryder> rspec isn't a part of the ruby library
centipedefarmer has quit [Read error: No route to host]
iamjarvo has quit [Ping timeout: 276 seconds]
andrewhl has quit [Remote host closed the connection]
nohonor has joined #ruby
centipedefarmer has joined #ruby
mrdodo has quit [Remote host closed the connection]
grifx has joined #ruby
<grifx> hello
<grifx> I've got this error ... I'm a beginner I don't know what to do
<tommyvyo> whats up grifx
<grifx> LoadError on line ["36"] of /usr/lib/ruby/1.9.1/rubygems/custom_require.rb: cannot load such file -- haml
eldar has joined #ruby
techsurvivor has joined #ruby
<grifx> tommyvyo: hii
<tommyvyo> do you have the haml gem?
<grifx> I don't know what is it
<grifx> gem
<grifx> I've got gem
ttilley has joined #ruby
axl_ has quit [Read error: Connection reset by peer]
<tommyvyo> gem install haml
<tommyvyo> try that grifx
Virunga has joined #ruby
jaylevit has joined #ruby
joelsotherbeard has joined #ruby
axl_ has joined #ruby
triptec has quit [Ping timeout: 260 seconds]
mikedevita has joined #ruby
mrdodo has joined #ruby
eldariof has quit [Ping timeout: 272 seconds]
Takehiro has joined #ruby
<grifx> tommyvyo: Congratulations! Your compass project has been created.
<grifx> tommyvyo: You're awesome thanks !:
<tommyvyo> yep no problem
<tommyvyo> enjoy!
orospakr has joined #ruby
<grifx> coool
pablo__ has quit [Remote host closed the connection]
Takehiro_ has quit [Ping timeout: 246 seconds]
Eiam has joined #ruby
Eiam has quit [Changing host]
Eiam has joined #ruby
jaylevitt has quit [Ping timeout: 252 seconds]
Elico1 has quit [Quit: Elico1]
axl_ has left #ruby [#ruby]
joelsotherbeard has quit [Ping timeout: 264 seconds]
Ramone has joined #ruby
Speed has joined #ruby
Speed has quit [Changing host]
Speed has joined #ruby
seanyo has quit [Ping timeout: 276 seconds]
tiripamwe has quit [Ping timeout: 276 seconds]
c0rn_ has joined #ruby
joelsotherbeard has joined #ruby
<Ramone> hey all, can anyone tell me what the \x, \b and \f mean in the string output of this binary string? "\x00\x00\x00\x04test\x00\x00\x00\x03\x00\x00\x00\f\x00\x00\x00\b\x00B\xC4\xC9yale"
Virunga is now known as LennyLinux
awarner has quit [Read error: Connection reset by peer]
awarner has joined #ruby
rippa has quit [Ping timeout: 245 seconds]
<Muz> \x is a hex escape.
cakehero has quit [Quit: Computer has gone to sleep.]
<Muz> Without knowing the context of where that string came from, \b and \f could mean anything.
jlogsdon has joined #ruby
mikedevita has quit [Read error: Connection reset by peer]
<Ramone> \b and \f are content then? not escape chars?
<Muz> Possibly.
centipedefarmer has quit [Remote host closed the connection]
<Ramone> are there any docs on the escape chars then? how'd you know about \x?
answer_42 has quit [Ping timeout: 276 seconds]
gen0cide_ has joined #ruby
<Muz> There's a reference.
<Ramone> ahh nice
<Muz> I'm sure there are plenty of others floating about on the Internet though.
<Ramone> \b and \f have real hex values I can pull out
<Ramone> that's perfect... thanks man
MasterIdler_ has joined #ruby
jaylevit has quit [Remote host closed the connection]
jaylevitt has joined #ruby
bluenemo has quit [Remote host closed the connection]
cakehero has joined #ruby
aaroncm has quit [Quit: Computer has gone to sleep.]
luckyruby has quit [Remote host closed the connection]
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
marcoshack has joined #ruby
rakunHo has joined #ruby
marcoshack has quit [Remote host closed the connection]
marcoshack has joined #ruby
<nohonor> greetings, rubyists
<nohonor> i have come to seek more wisdom
<nohonor> this time i can't understand the terminology of ruby's enumeration/iteration pattern
<nohonor> all the guides i've read just handwave
<nohonor> _what_, conceptually, is an *enumerator*, what is an *iterator*, and what is *enumerable object*
marcoshack has quit [Client Quit]
<nohonor> theoretically, an iterator is a cursor over a collection, and a generator is a function that, well, generates values
<nohonor> but for some reason i can't quite see how they map into ruby
bluenemo has quit [Remote host closed the connection]
scb has joined #ruby
tiripamwe has joined #ruby
stkowski has quit [Quit: stkowski]
havenn has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
<yxhuvud> An enumerable is something that includes the Enumerable module. An enumerator is an Enumerator instance, and an iterator is commonly the 'each' method and variations of it provided by Enumerable.
nateberkopec has joined #ruby
<yxhuvud> simplified a bit - many classes provide specialized variants, ie Hash implements reject! by its own terms.
kvirani has quit [Remote host closed the connection]
<nohonor> thanks, but 'enumerator is an Enumerator instance' doesn't tell me much :-)
flype has quit [Quit: Computer has gone to sleep.]
<Hanmac> nohonor:
<Hanmac> >> "abc\nxyz".each_line.to_a
<al2o3cr> (Array) ["abc\n", "xyz"]
<Hanmac> >> "abc\nxyz".each_char.to_a
<al2o3cr> (Array) ["a", "b", "c", "\n", "x", "y", "z"]
<Hanmac> >> "abc\nxyz".each_codepoint.to_a
<al2o3cr> (Array) [97, 98, 99, 10, 120, 121, 122]
eldar has quit []
<Hanmac> as you can see you could interate an String in different ways
eldariof has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
mark06 has joined #ruby
cakehero has joined #ruby
<nohonor> i get that, of course, i'm familiar with the pattern from C++ and the CLR
<nohonor> i'm just trying to figure out it's architecture in the case of Ruby
<nohonor> *its
<nohonor> so, if i understand correctly, an iterator is a generative procedure
<yxhuvud> nohonor: it is a module that implement common functionality between different classes that can be iterated over.
<yxhuvud> yes
<nohonor> an enumerator is a cursor over a collection or an iterator
mahmoudimus has quit [Quit: Computer has gone to sleep.]
cakehero has quit [Client Quit]
<Hanmac> an "enumerable object" could be any object that includes or extends the Enumerable module (optional) and defines the method each (required)
<Hanmac> the module is optional wich only adds useful methods to the object like "select"
<Hanmac> so you can chain the methods like each_line.with_index.map {|line,idx| ... }
<Hanmac> for the good Enumerator includes Enumerable too
<Hanmac> some methods that can be used for iteration can when used without a block, return an Enumerator (wich is like the Iterator in C++)
mark06 has left #ruby [#ruby]
cakehero has joined #ruby
cmasseraf has quit [Quit: This computer has gone to sleep]
<nohonor> i see
noahsussman has joined #ruby
<Hanmac> some Classes like String where the enumeration is ambiguous dont include Enumerable, but has many each_* methods
<nohonor> so it maps pretty closely to the CLR model
<nohonor> which means wikipedia is lying: "In CLU and C#, generators are called iterators, and in Ruby, enumerators."
<nohonor> s/enumerators/iterators/
<nohonor> ok, thanks yxhuvud and Hanmac
pricees has joined #ruby
Iszak has joined #ruby
Iszak has quit [Changing host]
Iszak has joined #ruby
jimeh has quit [Ping timeout: 264 seconds]
manizzle has quit [Ping timeout: 255 seconds]
mahmoudimus has joined #ruby
evilsushi has quit [Ping timeout: 272 seconds]
evilsushi has joined #ruby
evilsushi has quit [Changing host]
evilsushi has joined #ruby
mucker has quit [Ping timeout: 244 seconds]
thiagopnts has joined #ruby
workmad3 has joined #ruby
kpshek has quit []
nohonor has quit [Quit: Leaving]
asiekierka has joined #ruby
<asiekierka> hello
<asiekierka> i come from the dark depths of C and Java
<asiekierka> and became interested in Ruby
<asiekierka> sadly, _why's guide is completely not for me
kvirani has joined #ruby
<asiekierka> do you have any other good ones?
Iszak has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
jrajav has joined #ruby
<asiekierka> "It assumes absolutely no prior programming knowledge"
<asiekierka> hmm
<asiekierka> let's read it for free
bigmeow has quit [Ping timeout: 276 seconds]
<asiekierka> i may just use O'Reilly's book
<asiekierka> i have a very good experience with everything they've done
techhelp2 has joined #ruby
Choclo has joined #ruby
thunders_ has joined #ruby
a_a_g has quit [Ping timeout: 264 seconds]
hoelzro|away is now known as hoelzro
hbpoison has joined #ruby
<hoelzro> asiekierka: I *highly* recommend "The Ruby Programming Language"
<asiekierka> >$31.99 makes me sad
sambio has quit [Ping timeout: 255 seconds]
jimeh has joined #ruby
kvirani has quit [Read error: Connection reset by peer]
<asiekierka> on one hand, i could use the "MYEP9" discount code (that's the one they use for print book upgrades)
<asiekierka> on the other, that's closer to piracy than i wish it were
kvirani has joined #ruby
techhelp has quit [Ping timeout: 244 seconds]
<hoelzro> asiekierka: it's worth the money, imo
thunderstrike has quit [Read error: Operation timed out]
<Hanmac> asiekierka: the good point is: you know C so you could ship your stuff stuff as C-bindings, so you get the nice syntax from ruby, and the Speed from C
<hoelzro> it's a *very* thorough book
<asiekierka> hoelzro: but i don't even have $31.99 left
<asiekierka> i just bought a 2TB HDD drive for backup/archivinfg
berserkr has quit [Quit: Leaving.]
<asiekierka> i really want it, though
<asiekierka> i need to think about something
<ElderFain> when doing a .sort {|a,b| a["property"] <=> b["property"] } in some cases the value in the property is nil instead of a number
<ElderFain> i would have expected sort to handle that, but it fails
noahsussman has quit [Quit: Unexpected SpanishInquisitionException]
<Hanmac> asiekierka http://www.ruby-doc.org/docs/ProgrammingRuby/ this may be good ...
<Hanmac> ElderFain: .sort_by {|x| x["property"]} ?
<ElderFain> Hanmac: that looks like a shorter way to type what i had
rippa has joined #ruby
jimeh has quit [Ping timeout: 240 seconds]
<ElderFain> it still fails however
<ElderFain> "comparison if NilClass with 3 failed"
<ElderFain> comparison of NilClass with 3 failed, rather
<Hanmac> hm .select{|x| x["property"]}.sort_by {|x| x["property"]}
thaz has joined #ruby
<lectrick> Banistergalaxy: are you the banister of pry fame?
<ElderFain> Hanmac: that removes one of the values however, so the returned sorted array is missing an item
<Hanmac> lectrick yeah but the other Banister nicks are banned :P
<Hanmac> ElderFain: .sort_by {|x| x["property"].to_s}
andrewhl has joined #ruby
<ElderFain> Hanmac: oh now thats sneaky
havenn has joined #ruby
<lectrick> banned? I had that issue till... well, I forgot what I did but I got rid of it
<lectrick> Banistergalaxy: Did you ever implement the singleton class rearrangement you mention at the bottom of https://github.com/banister/remix ?
<Hanmac> lectrick i was joking, he only switches in different nicks to annoy us
await has joined #ruby
<reashlin> is there a reasonable guide somewhere to ususal ARGV handling. Tbh I just want to configure 2 levels of verbosity. I want to count the number of "-v" allowing two of those or one "-vv"
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
carloslopes has quit [Quit: Leaving.]
carloslopes has joined #ruby
olrrai has joined #ruby
tyfighter has joined #ruby
<ElderFain> Hanmac: ha, that worked. i wsan't sure how a string compare of "2" to "4" would work
<ElderFain> but indeed it does.. love this language sometimes..
jrist is now known as jrist-afk
<Hanmac> you could try that too: .sort_by {|x| x["property"].to_i}
<ElderFain> nil goes to 0
<ElderFain> i like that more than doing strings
cj3kim has quit [Client Quit]
jimeh has joined #ruby
<await> I'm writing a command line gem using Thor. The executable is in "/bin", my initial logic and stuff is in "/lib/name/cli.rb". How can I require cli.rb in the executable? Doing `require "name/cli.rb"` keeps saying that the file doesn't exist.
<lectrick> Hanmac: ah lol ok
<Hanmac> await ruby version?
<await> And paths like "../lib/name/cli" don't work.
<await> 1.9.3
s1n4 has joined #ruby
<Hanmac> require_relative "../lib/name/cli"
Chryson has joined #ruby
gen0cid__ has joined #ruby
kpshek has joined #ruby
answer_42 has joined #ruby
iamjarvo has joined #ruby
<await> Awesome. Thanks.
gen0cide_ has quit [Read error: Connection reset by peer]
gen0cid__ is now known as gen0cide_
<await> Is that new in 1.9.3?
elux has joined #ruby
<Hanmac> i think it exist in >1.9.1
mark06 has joined #ruby
<await> Cool, good to know.
yakko has joined #ruby
aaroncm has joined #ruby
dafuq has joined #ruby
chussenot has joined #ruby
<mark06> how to get TZInfo::Timezone.get(:name).next_period.start_transition? there's only current_period
<mark06> actually, that won't help
Morkel has joined #ruby
tpd has joined #ruby
<dafuq> hi. how do I clear my gem settings and force the gem cache to be recreated ? gem env gives me some strange info about dirs that don't even exist. I have tried re-installing ruby and manually deleting all related dirs to no avail :(
<mark06> maybe ~/.gem
<dafuq> doesn't exist
shadoi has joined #ruby
austinbv has joined #ruby
verto|off is now known as verto
v0n has quit [Ping timeout: 246 seconds]
Nanuq has quit [Ping timeout: 245 seconds]
pilili_78 has quit [Quit: Lost terminal]
Nanuq has joined #ruby
chimay has quit [Quit: WeeChat 0.3.9-rc1]
manuscle has quit [Quit: Quitte]
sambio has joined #ruby
TomJ has quit [Quit: TomJ]
wallerdev has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
mark06 has quit [Quit: Leaving.]
Takehiro has quit [Remote host closed the connection]
jonatha__ has joined #ruby
Jellyg00se has quit [Read error: Connection reset by peer]
aetaric has quit [Ping timeout: 245 seconds]
Chryson has quit [Quit: Leaving]
cakehero has joined #ruby
mark_locklear has quit [Read error: Connection reset by peer]
Jellyg00se has joined #ruby
<fbernier> ok question for the pros of ruby's object model
cakehero has quit [Client Quit]
<fbernier> can you .... redefine ... 'self' ?
a_a_g has joined #ruby
<Choclo> the object itself? not sure what you mean
aetaric has joined #ruby
jonathanwallace has quit [Ping timeout: 260 seconds]
_bart has joined #ruby
<fbernier> redefine the call to 'self'
rakunHo has quit [Quit: Saliendo]
<fbernier> instead of returning the object in the current context, return whatever we want
hbpoison has left #ruby [#ruby]
hbpoison has joined #ruby
<blazes816> interesting question my man, but i don't think there's anyway to do that
imami|afk is now known as banseljaj
<fbernier> I know it would break everything, but I'm thinking of a use-case where doing an around-alias which would change the return value of 'self' just for some rare cases could be useful
minver has joined #ruby
dangerousdave has quit [Quit: Leaving...]
<Hanmac> fbernier i dont think thats possible ... you are looking for that: http://www.ruby-doc.org/stdlib-1.9.3/libdoc/delegate/rdoc/SimpleDelegator.html
baroquebobcat has quit [Quit: baroquebobcat]
<minver> Does anyone have experience in both faraday/httparty and can give me some briefing? Whats the main difference?
hbpoison has quit [Client Quit]
hbpoison has joined #ruby
dangerousdave has joined #ruby
matrixise has joined #ruby
burgestrand has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
hbpoison has quit [Client Quit]
tyfighter has quit [Quit: tyfighter]
workmad3 has quit [Ping timeout: 272 seconds]
hbpoison has joined #ruby
sneakyness_wk has quit [Ping timeout: 276 seconds]
cakehero has joined #ruby
<fbernier> Hanmac, looks interesting. Not sure how it works yet. I'll give it a try. Thanks
elaptics is now known as elaptics`away
dpk has quit [Quit: Ceci n'est pas une broken pipe.]
timonv has joined #ruby
cableray has joined #ruby
und3f has quit [Quit: Leaving.]
dpk has joined #ruby
haxrbyte has joined #ruby
mark_locklear has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
haxrbyte_ has joined #ruby
daniel_hinojosa has joined #ruby
luckyruby has joined #ruby
beneggett has joined #ruby
yakko has quit [Remote host closed the connection]
Rochefortes has quit [Remote host closed the connection]
haxrbyte has quit [Ping timeout: 264 seconds]
lesce has quit [Quit: Leaving]
lesce_ has joined #ruby
demet8 has joined #ruby
Nisstyre has joined #ruby
tpd has quit [Quit: leaving]
v0n has joined #ruby
lesce_ has quit [Client Quit]
lesce has joined #ruby
lesce has quit [Changing host]
lesce has joined #ruby
<reashlin> array.each do |x|
<reashlin> is there a way to find out x.last?
mattp_ has joined #ruby
FreeStyleRuL has joined #ruby
Nisstyre has quit [Excess Flood]
<Hanmac> array.each_with_index { |x,i| i == array.size }
cascalheir has quit [Quit: Linkinus - http://linkinus.com]
sambio has quit [Ping timeout: 276 seconds]
a_a_g has quit [Quit: Leaving.]
<reashlin> Hanmac: of course, cheers
ananthakumaran has joined #ruby
vaino has quit [Ping timeout: 245 seconds]
FreeStyleRuL has quit [Client Quit]
austinbv has quit [Ping timeout: 244 seconds]
BrokenCog has quit [Read error: Operation timed out]
hoelzro is now known as hoelzro|away
methodmat312 has joined #ruby
<methodmat312> hello
Nisstyre has joined #ruby
<methodmat312> is there an easy way to, say, test a var to see if it's array and if it's not make it an array with 1 element, the var i was testing
<methodmat312> like a one liner way
jimeh has quit [Ping timeout: 244 seconds]
<reactormonk> methodmat312: Array(var)
<methodmat312> thanks reactormonk!
Nisstyre has quit [Read error: Connection reset by peer]
<fbernier> ok so look like 'self' is a keyword so it;s nowhere in the object model. Can't redefine it either.
manizzle has joined #ruby
enricostn has quit [Quit: Leaving.]
manizzle has quit [Remote host closed the connection]
manizzle has joined #ruby
Takehiro has joined #ruby
znake has joined #ruby
<Mon_Ouie> Can you give an actual example of what you're trying to do?
Choclo has quit [Quit: Leaving.]
<Mon_Ouie> If changing yourself is a goal per se (which is rather unlikely), see #instance_eval (and friends)
<fbernier> Mon Ouie: its for https://github.com/celluloid/celluloid
<fbernier> if you do like
<fbernier> class Foo; include Celluloid; def leaky_method; self; end; end
<fbernier> actor = Foo.new
atmosx has joined #ruby
<atmosx> αλοηα
<atmosx> ops
<fbernier> actor.leaky_method would most likely not return what youd expect it to. Youre most likely expecting to receive current_actor
Takehiro has quit [Ping timeout: 244 seconds]
<Mon_Ouie> I'm most likely expecting it to return actor
a_a_g has joined #ruby
<Mon_Ouie> If you want to get current_actor, why don't you just call current_actor?
<fbernier> well that's exactly what youd have to do
olrrai has quit [Quit: Saliendo]
<fbernier> but people are confused and use self thinking it should return the current_actor, which is not a regular object but a Celluloid proxy object
asiekierka has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
<fbernier> anyway it;s not that much of a big deal, I was just wondering if such things was possible and it appears it's not
jasonkuhrt has joined #ruby
sneakyness_wk has joined #ruby
seanyo has joined #ruby
<fbernier> Mon_Ouie: I guess you speak french like I do
<Mon_Ouie> Yeah
Takehiro has joined #ruby
xorigin has joined #ruby
nilg has quit [Remote host closed the connection]
moted has joined #ruby
Takehiro has quit [Remote host closed the connection]
havenn has joined #ruby
nohonor has joined #ruby
<nohonor> what is the conceptual difference between a block and a lambda and why do we need to have both?
ping-pong has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
* atmosx wonders if his generation is gonna face a war anytime soon
chrishunt has quit [Ping timeout: 240 seconds]
<davidcelis> FIRST result dude
tyfighter has joined #ruby
<GoHuyGo> atmosx: something is bound to happen in our lifetime
a_a_g has quit [Quit: Leaving.]
<GoHuyGo> atmosx: nuclear war :((((
<davidcelis> i'm gonna wage war on people that can't google
<davidcelis> so, yes
ewag has joined #ruby
<atmosx> Gadgetoid: Nazi's are on the rise… like heavilyin Greece and… I was reading a paper about the situation in politics in WW 1… it's not really *that* different from today
<atmosx> all it takes is for Germany to make the 1st step (again)
seanyo has quit [Ping timeout: 252 seconds]
<davidcelis> who says it has to be Germany
habib has joined #ruby
<atmosx> well, it has to be someone
<davidcelis> why Germany?
niklasb_ has quit [Ping timeout: 260 seconds]
<atmosx> Because they did it twice, y not third?
<davidcelis> because their political situation is completely different right now?
<davidcelis> there was political turmoil in Germany that led to those governments
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
<atmosx> hmm, Germany was pretty stable in the 1930's
<atmosx> 10 years later was not...
<davidcelis> what is happening in Germany right now that you think would lead to a third world war?
<davidcelis> stable in the 1930s!? what???
br4ndon has joined #ruby
<atmosx> again in 1905 was the leading economic force along with the UK having won the war against France a coupe of decades earlier
<atmosx> davidcelis: yeap.
dekroning has joined #ruby
<atmosx> davidcelis: ah no, I don't see how it can evolve to a war
<atmosx> but surely to start a WW3 must *start* a *big* nation
<nohonor> davidcelis, i know how to google
<nohonor> i was looking for a consise summary, not a newbie tutorial
<davidcelis> and yet if you read through that article, it tells you exactly what the conceptual difference between a Proc and a lambda is
<atmosx> davidcelis: sorry if you're German, didn't mean to offend you or something I was just thinking out loud.
<davidcelis> atmosx: i'm not german, i'm just trying to get you to think critically
<nohonor> davidcelis, i don't want to read through it, thank you
<davidcelis> there's nothing going on in germany right now that would suggest that they would start a war
<atmosx> davidcelis: I don't think that these situations are predictable. Where are you from?
<davidcelis> nohonor: then apparently you don't know how to search through a web page either. ⌘f lambda and within two seconds i'm at the paragraph that says what a lambda is
<atmosx> davidcelis: same thing in 1905
andrewstewart has joined #ruby
<davidcelis> nohonor: learn to use the web bro, all i can say at this point
<nohonor> "what time is it?" "check http://tycho.usno.navy.mil/cgi-bin/timer.pl"
andrewstewart has left #ruby [#ruby]
<davidcelis> atmosx: the states
<nohonor> davidcelis, aye, your wisdom is mighty
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
<davidcelis> atmosx: Germany's economy was in shambles in the 20s
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Dreamer3 has quit [Quit: Computer has gone to sleep.]
<atmosx> davidcelis: that's just a point view, considering all south European countries 'beggars' creates a sort of negative social sentiment, while the PIIGS are strongly feeling exactly the opposite (in a very hostile way)
<davidcelis> atmosx: they had hyperinflation so bad that people were literally burning money to keep warm because wood was too expensive
<davidcelis> their economic problems are pretty widely believed to be what lead to Hitler's rise to power
<atmosx> davidcelis: says "unexpectedly" ...
<davidcelis> that's world war 1 bro
<davidcelis> talkin about world war 2 right now
<atmosx> davidcelis: I mentioned both.
love_color_text has quit []
<atmosx> davidcelis: you pick the one the suited better your argument but okay. My point is that hyou cannot predict what a lunatic politician/statesmen will do.
<atmosx> or what is at stake and how it can evolve
<davidcelis> my point is that 1 for 2 is not grounds to say Germany would start another world war
<davidcelis> that's just presumptuous
<davidcelis> and, yes, offensive
<atmosx> sure, thank God.
<atmosx> okay, I don't wanna be offernsive.
uris has quit [Quit: leaving]
Guest81709 has quit [Ping timeout: 240 seconds]
<Hanmac> hm as a german i would say not germany, but maybe USA and Israel
* atmosx goes back to sinatra framework
Axsuul has joined #ruby
<atmosx> Hanmac: against, who Iran?
<Hanmac> for the first ... and then against all others
<atmosx> hmm, don't think the USA can do it.
<atmosx> they barely know what war is...
seanyo has joined #ruby
<atmosx> I mean, if they receive an attack, they will be down to their knees in no-time… Their population hardly has ever seen a war, except on CNN
ly_gs has joined #ruby
luxurymode has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<atmosx> A port was bombed once and they made like 25 movies and wrote 7.000 books
Iszak has joined #ruby
Iszak has quit [Changing host]
Iszak has joined #ruby
hiroyuki has quit [Read error: No route to host]
hiroyuki has joined #ruby
elaptics`away is now known as elaptics
timonv has quit [Remote host closed the connection]
jimeh has joined #ruby
haxrbyte has joined #ruby
ly_gs has quit [Remote host closed the connection]
banseljaj is now known as imami|afk
s0ber_ has joined #ruby
Guedes is now known as Guedes_out
c0rn_ has quit [Quit: Computer has gone to sleep.]
johnlcox_ has quit [Ping timeout: 260 seconds]
haxrbyte_ has quit [Ping timeout: 276 seconds]
s0ber has quit [Read error: Connection reset by peer]
s0ber_ is now known as s0ber
c0rn_ has joined #ruby
baroquebobcat has joined #ruby
johnlcox_ has joined #ruby
iamjarvo has quit [Ping timeout: 276 seconds]
nohonor has quit [Quit: Leaving]
jrist-afk is now known as jrist
dr_bob has joined #ruby
Iszak has quit [Ping timeout: 268 seconds]
havenn has quit [Remote host closed the connection]
Dreamer3 has joined #ruby
minver has quit [Ping timeout: 245 seconds]
rubyist has quit [Ping timeout: 245 seconds]
cj3kim has quit [Quit: This computer has gone to sleep]
haxrbyte has quit [Remote host closed the connection]
ken_barber1 has joined #ruby
hiroyuki has quit [Read error: Connection reset by peer]
hiroyuki has joined #ruby
GoHuyGo has quit [Quit: Leaving]
jimeh2 has joined #ruby
haxrbyte has joined #ruby
ken_barber has quit [Disconnected by services]
ken_barber1 is now known as ken_barber
s1n4 has quit [Quit: peace out]
Ramone has quit [Ping timeout: 245 seconds]
Criztian_ has quit [Ping timeout: 244 seconds]
mikepack has quit [Read error: Connection reset by peer]
BSaboia has joined #ruby
jimeh has quit [Ping timeout: 240 seconds]
cableray has quit [Quit: cableray]
mikepack has joined #ruby
jrajav has quit []
hiroyuki has quit [Read error: Connection reset by peer]
hiroyuki has joined #ruby
andrewhl has quit [Remote host closed the connection]
mwilson` has quit [Excess Flood]
bigmeow has joined #ruby
mwilson` has joined #ruby
haxrbyte has quit [Ping timeout: 260 seconds]
krawchyk has quit [Remote host closed the connection]
znake has quit [Remote host closed the connection]
philcrissman has joined #ruby
hiroyuki has quit [Read error: Connection reset by peer]
jimeh2 has quit [Ping timeout: 272 seconds]
hiroyuki has joined #ruby
Criztian has joined #ruby
tiripamwe has quit [Ping timeout: 252 seconds]
moted has quit [Read error: Connection reset by peer]
Dreamer3 has quit [Quit: Computer has gone to sleep.]
pu22l3r has joined #ruby
TomJ has joined #ruby
TomJ has quit [Changing host]
TomJ has joined #ruby
moted has joined #ruby
chrishunt has joined #ruby
jimeh2 has joined #ruby
mikedevita has joined #ruby
stepnem has quit [Ping timeout: 240 seconds]
Agis__ has joined #ruby
<_bart> hi
Chryson has joined #ruby
<Agis__> why String#upcase doesn't work with UTF8 chars?
<Paradox> Agis__, whats upcase of ಠ
mikepack has quit [Remote host closed the connection]
jimeh2 has quit [Ping timeout: 260 seconds]
<Agis__> right..
keyvan has quit [Remote host closed the connection]
<_bart> Ø
<_bart> :D
<Agis__> so I would need to create my own methods to do this right?
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
marcoshack has joined #ruby
<Paradox> Agis__, that or override upcase
<Agis__> nice, thanks
AlbireoX`Laptop has joined #ruby
punkrawkR has joined #ruby
AlbireoX has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
jbw has quit [Ping timeout: 245 seconds]
<RegEchse> or ... simply use existing code: http://unicode-utils.rubyforge.org/
<RegEchse> ;)
<RegEchse> Agis__: ^
cakehero has quit [Quit: Leaving...]
<Agis__> oh that's awesome
marcoshack has quit [Client Quit]
<ezra> anyone know of a means to get the file location of a class at runtime? i've don't have a class method to check .source_location on
Takehiro has joined #ruby
pdtpatrick has quit [Quit: pdtpatrick]
fantazo has joined #ruby
BSaboia has quit [Quit: Fui embora]
pdtpatrick has joined #ruby
c0rn_ has quit [Quit: Computer has gone to sleep.]
tiripamwe has joined #ruby
answer_42 has quit [Quit: WeeChat 0.3.8]
robustus has quit [Quit: ZNC - http://znc.in]
<Hanmac> ezra what does source_location return? ... otherwise i have no idea ...
enroxorz-work has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
moted has quit [Remote host closed the connection]
<Hanmac> PS: it could be a class from an C-binding ... in this case source_location does not work
pu22l3r has quit [Remote host closed the connection]
<ezra> Hanmac: there's no class method that i can reliably invoke it on, so it's just nil or the __FILE__ of the base class (when called from deriving class)
pu22l3r has joined #ruby
<ezra> yeah, it's not hitting any native code
shinobi_one has quit [Ping timeout: 244 seconds]
Solnse has joined #ruby
seanyo has quit [Ping timeout: 276 seconds]
<Paradox> Hanmac, Banistergalaxy does it in pry
<Paradox> you could ask him or dig through the source
Takehiro has quit [Ping timeout: 244 seconds]
rippa has quit [Ping timeout: 240 seconds]
<Hanmac> i should realy gemize my bindings ... because i dont belive that pry is inteligent enough...
dr_bob has quit [Read error: Connection reset by peer]
pdtpatrick has quit [Ping timeout: 276 seconds]
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
keyvan is now known as love_color_text
sambio has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
c0rn_ has joined #ruby
Foxandxss has joined #ruby
shinobi_one has joined #ruby
pdtpatrick has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
vitoravelino is now known as vitoravelino`afk
duard has quit [Remote host closed the connection]
geekbri has quit [Remote host closed the connection]
Asher1 has joined #ruby
hbpoison has quit [Ping timeout: 264 seconds]
jbw has joined #ruby
lushious is now known as lush
timonv has joined #ruby
lush is now known as lushious
Asher has quit [Ping timeout: 268 seconds]
afex has joined #ruby
<await> Can anyone explain what's going on in line 5-9 here? https://github.com/heroku/heroku/blob/master/bin/heroku - I'm using it as a base for my CLI gem with Thor, but am having problems requiring the main CLI class from my executable. Basically, I require_relative '../lib/name/cli'. but then it says that 'Name' is unintialized. So I require '../lib/name', but then it says that it can't Name can't require 'name/version'.
<await> (I'm creating a gem through Bundler's generator)
joelsotherbeard has left #ruby [#ruby]
<await> Actually, let me just throw it up on Github. That'll make things easier.
nanderoo has quit [Quit: Leaving.]
afex has quit [Client Quit]
<davidcelis> await: requires the "pathname" library which provides that `realpath` method
<davidcelis> assumedly, `realpath` will detect if the file is actually a symlink and, if it is, return the actual file path and not the path to the symlink
<await> Ah, that does make sense. Since sometimes the heroku executable is symlinked to another bin folder
<davidcelis> yep
Nisstyre-laptop has joined #ruby
Blazento has joined #ruby
Asher1 has quit [Quit: Leaving.]
reuf has joined #ruby
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
internet_user has quit [Remote host closed the connection]
cakehero has joined #ruby
chussenot has quit [Quit: chussenot]
pu22l3r_ has joined #ruby
xorigin has quit [Quit: leaving]
Asher has joined #ruby
pu22l3r has quit [Ping timeout: 240 seconds]
habib has quit [Remote host closed the connection]
cj3kim has quit [Quit: This computer has gone to sleep]
GraemeLion has quit [Quit: out]
gift has quit [Ping timeout: 276 seconds]
timonv has quit [Remote host closed the connection]
elux has quit [Quit: Bye!]
johnlcox_ has quit [Quit: Computer has gone to sleep.]
joelsotherbeard has joined #ruby
<joelsotherbeard> Can anyone explain the significance of: private_class_method :new
mark_locklear has quit [Remote host closed the connection]
jrist is now known as jrist-afk
<await> Okay, so here's my repo: https://github.com/subtractiv/heploy
eldariof has quit []
moted has joined #ruby
lantins has quit [Ping timeout: 248 seconds]
<Hanmac> joelsotherbeard ... where did you see this?
<Blazento> hey, I have an issue i need to work out. I have a large number of accounts i need to simultaiously pull data for and I hit API limits for each dataset. I need each individual dataset to wait for 15 minutes and then continue pulling data. #1 how do I make these accounts run concurrently, #2 how do i make my application "wait"
johnlcox_ has joined #ruby
carloslopes has quit [Quit: Leaving.]
gift has joined #ruby
<atmosx> Blazento: 1) threads 2) event machine
combataircraft has quit [Read error: Operation timed out]
combataircraft has joined #ruby
tommyvyo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Morkel has quit [Quit: Morkel]
<joelsotherbeard> Hanmac, in ActionMailer I think. Seems like a common pattern
<joelsotherbeard> davicelis: I read that but I don't really understand what it means
bricker88 has joined #ruby
atmosx has quit [Ping timeout: 244 seconds]
<bricker88> I'm having a hard time wrapping my head around method definitions inside of method definitions. How does that work? I can have a class method that defines instance methods
Norrin has quit [Quit: ""]
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
atmosx has joined #ruby
lantins has joined #ruby
<atmosx> hmm strange
<atmosx> and I'm seeing weird wifi logs, I think someone is trying to catch my WPA2 key
Nisstyre-laptop has quit [Remote host closed the connection]
<atmosx> which he might just have got..
<Hanmac> bricker88:
<Hanmac> >> def abc; def abc; def abc; "third";end;"second";end;"first";end; p abc,abc,abc
<al2o3cr> (Array) ["first", "second", "third"], Console: "first", "second", "third"
vitoravelino`afk is now known as vitoravelino
demian`_ has joined #ruby
demian`_ has quit [Client Quit]
<bricker88> Hanmac: I don't understand that behavior… wouldn't it just do the first one 3 times?
<bricker88> Or rather, why doesn't it just do the first one three times
<bricker88> I mean return "first" three times
yakko has joined #ruby
sailias has quit [Quit: Leaving.]
<Hanmac> because the method overrides itself :P
jenrzzz has quit [Ping timeout: 276 seconds]
Agis__ has quit [Quit: Agis__]
linoj has quit [Ping timeout: 276 seconds]
mneorr has quit [Quit: Leaving.]
ephemerian has quit [Quit: Leaving.]
ph^ has quit [Remote host closed the connection]
mneorr has joined #ruby
dangerousdave has quit [Ping timeout: 268 seconds]
Dreamer3 has joined #ruby
axl_ has joined #ruby
hadees has quit [Quit: hadees]
dpk is now known as davidpk
workmad3 has joined #ruby
davidpk is now known as dpk
mikedevita has quit [Remote host closed the connection]
locriani has quit [Remote host closed the connection]
zeromodulus has quit [Ping timeout: 244 seconds]
matrixise has quit [Ping timeout: 244 seconds]
<atmosx> nighty all
atmosx has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Solnse has quit []
jenrzzz has joined #ruby
nacengineer has quit [Ping timeout: 252 seconds]
<davidcelis> FIFTY DPK MINUS
thunders_ has quit [Remote host closed the connection]
jaylevitt has quit [Ping timeout: 252 seconds]
<dpk> davidcelis: excuse me?
<davidcelis> hi
baroquebobcat has joined #ruby
Takehiro has joined #ruby
<dpk> hello
fbernier has quit [Ping timeout: 276 seconds]
dekroning has quit [Quit: leaving]
null- has joined #ruby
kpshek has quit [Ping timeout: 246 seconds]
Norrin has joined #ruby
Norrin has quit [Excess Flood]
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
specialGuest has joined #ruby
specialGuest has quit [Changing host]
specialGuest has joined #ruby
andrew__ has joined #ruby
Dreamer3 has quit [Quit: Computer has gone to sleep.]
kpshek has joined #ruby
jimeh2 has joined #ruby
Norrin has joined #ruby
jasonkuhrt has quit [Quit: Leaving...]
Takehiro has quit [Ping timeout: 244 seconds]
c0rn_ has quit [Quit: Computer has gone to sleep.]
andrew__ has quit [Remote host closed the connection]
andrew__ has joined #ruby
andrew__ is now known as andrewhl
bananagram has joined #ruby
LennyLin_ has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
R3dy has joined #ruby
scb has quit [Ping timeout: 248 seconds]
<R3dy> Would anyone know how to do this (PYTHON:class_data.decode('utf-16-le').decode('hex')" in ruby?
<R3dy> specifically the .decode('utf-16-le')
LennyLinux has quit [Ping timeout: 276 seconds]
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
flagg0204 has quit [Quit: leaving]
<R3dy> Google seems to point me to opening and reading Files in UTF-16
<R3dy> but I just have a single string
<R3dy> I belive I am suppose to put the string in an array and use the .pack method
<R3dy> I just don't know which params to sen dit
dafuq has quit [Ping timeout: 240 seconds]
<await> Is there a best practice of "module Something; class Else; end; end" rather than "class Something::Else; end;" ?
Blazento has quit [Remote host closed the connection]
<Hanmac> await, hm the first is better
Guedes has joined #ruby
Guedes has quit [Changing host]
Guedes has joined #ruby
<await> Then I'll do that.
<Hanmac> R3dy: what is your string input and what is your wanted output?
<R3dy> string input is '01038dca'
<R3dy> desired output is ??
<R3dy> desired output is '??'
<R3dy> Trying to turn this - 01038dca61cadeb5dca1bc4476a24f28 to this ??a?޵ܡ?Dv?O(
mikepack has quit [Remote host closed the connection]
<R3dy> Python does it with class_data.decode('utf-16-le').decode('hex')
<R3dy> I'm trying to port a python tool to ruby
samrose has quit [Read error: Connection reset by peer]
<Hanmac> R3dy: d you want something like that:
<Hanmac> >> '01038dca'.to_i(16)
<al2o3cr> (Fixnum) 17010122
yasushi has joined #ruby
yakko has quit [Remote host closed the connection]
mikepack has joined #ruby
<Hanmac> R3dy but i think pack is the best way
GenghisKen has quit [Ping timeout: 276 seconds]
<R3dy> pack with which params?
yxhuvud has quit [Ping timeout: 255 seconds]
<Hanmac> >> puts ["01038dca61cadeb5dca1bc4476a24f28"].pack("h*")
asteve has quit []
<R3dy> that does not generate
<R3dy> the right output
Chryson has quit [Ping timeout: 240 seconds]
<R3dy> should be ??a?޵ܡ?Dv?O(
Adran has quit [Quit: Your nick was overruled.]
<Hanmac> >> puts ["01038dca61cadeb5dca1bc4476a24f28"].pack("H*")# returns this for me: ��a�޵ܡ�Dv�O(
yasushi has quit [Ping timeout: 255 seconds]
Chryson has joined #ruby
<R3dy> sweet
<R3dy> first time was a lowercase h
<R3dy> hehe
<R3dy> thanks!
<R3dy> hell yea dude
<R3dy> thanks man!!!!!
jenrzzz_ has joined #ruby
aaroncm has quit [Quit: Computer has gone to sleep.]
<Hanmac> the diff about "h" and "H" are the nibbles ;P
joshman_ has quit [Ping timeout: 268 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
thaz has quit [Quit: thaz]
tiripamwe has quit [Ping timeout: 264 seconds]
<shevy> what
Bosma has joined #ruby
<Hanmac> shevy not what you thought :P " H | String | hex string (high nibble first)" " h | String | hex string (low nibble first)"
justinmcp has joined #ruby
ncr100 has joined #ruby
<shevy> what is nibble there?
dafuq has joined #ruby
nwest has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<Hanmac> shevy its about the byte order
Adran has joined #ruby
dafuq has quit [Client Quit]
Dreamer3 has joined #ruby
GoGoGarrett has quit [Remote host closed the connection]
frogprince_mac has quit [Quit: Leaving...]
bgupta has joined #ruby
bgupta has quit [Excess Flood]
stopbit_ has joined #ruby
stopbit has quit [Read error: Connection reset by peer]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
gyre008 has joined #ruby
hadees has joined #ruby
<gyre008> quick question…rbenv or rvm ? :)
<Hanmac> gyre008 recent OS with recent system ruby ... my system ruby has the newest released ruby version
alanp has quit [Ping timeout: 260 seconds]
<gyre008> Hanmac, what OS and what version of ruby ...
bgupta has joined #ruby
bgupta has quit [Excess Flood]
Jellyg00se has quit [Read error: Connection reset by peer]
statarb3 has quit [Quit: Leaving]
bigmeow has quit [Ping timeout: 276 seconds]
<Hanmac> Ubuntu 12.10, ruby 1.9.3p194
<shevy> gyre007 I recommend to compile from source ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.bz2
<gyre008> shevy, that would mean recompile on every update...
<blazes816> gyre008: rvm
Dreamer3 has quit [Quit: Computer has gone to sleep.]
<shevy> gyre008 RVM compiles too
bgupta has joined #ruby
bgupta has quit [Excess Flood]
<gyre008> blazes816, why ? what I don't like about it is that its messing up with basic UNIX commands…like cd
jjbohn has quit [Ping timeout: 252 seconds]
macmartine has joined #ruby
<Hanmac> gyre008 there isnt any recent updates ... ruby does not update so often like adobe
<blazes816> gyre008: all it does it check for a .rvmrc file when you cd. if that's too crazy, wacky, and over the top for you use rbenv or compile from the source
grifx has quit [Quit: Page closed]
<blazes816> rbenv vs. rvm mostly a matter of feature preferences.
cbuxton has quit [Quit: Leaving.]
<gyre008> we had a rescue startup script which was set to run with bash -e i.e. if any command fails it should exit…so when cd failed - which it did because of RVM - it just exited with no log or output printed…took us a while to figure it out
bigmeow has joined #ruby
ttilley is now known as travist
<gyre008> blazes816, that's not all it does…it loads rvm.sh on login…and that messes up with bunch of standard linux commands..
Guest81416 is now known as ged
<gyre008> was just curious how much better rbenv is...
cantonic has joined #ruby
<gyre008> have no experience with it and am looking for alternatives to RVM
ged is now known as Guest94050
travist is now known as ttilley
<Hanmac> some of us dont need rvm or rbenv ...
Guest94050 is now known as ged
<gyre008> Hanmac, some of us do :)
jrist-afk is now known as jrist
<blazes816> gyre008: sounds like there's nothing to ask about then. your choices are now rbenv, compile from source, or something 3rd answer c.
<Hanmac> some of us not support outdated ruby versions like 1.8.7 or more worse: 1.8.6
<gyre008> I'm asking whether someone used both and why did they stick with the particular option...
<gyre008> Hanmac, those are too old…we don't use those
stephenjudkins has joined #ruby
tiripamwe has joined #ruby
[Neurotic] has joined #ruby
zeromodulus has joined #ruby
jimeh2 has quit [Ping timeout: 240 seconds]
ltsstar has quit [Quit: ltsstar]
knightblader has quit [Ping timeout: 246 seconds]
<Hanmac> gyre008 1.8.6 has an very old C-API that dont work with newer gems, this version is dead, 1.8.7 dont feel well and will die in the next summer ... so you only should need 1.9.1+ ... i would recommend 1.9.3 and newer
<shevy> gyre008 the reason why RVM is unnecessary is because the option exists to do what RVM does, which is compile ruby into its own prefixed and versioned directory somewhere in $HOME
verto is now known as verto|off
<shevy> when the compile scheme has something like /Programs/Ruby/VERSION_HERE then one does not need RVM
love_color_text has quit [Remote host closed the connection]
<gyre008> shevy, then in all our scripts you;ll have to set the path to a particular version of ruby
rmcafee_ has joined #ruby
Peter_lee has joined #ruby
sailias has joined #ruby
grizlo42 has joined #ruby
<Peter_lee> Hey, I'm using Nokogiri gem. How do I remove the element name after my XML Parse? For example, in the xml there's a node <text></text> I'm parsing and would just like to output the text in between and not the the node. It's now appearing like <text>This is some text</text> and I'd like "This is some text"
flagg0204 has joined #ruby
<shevy> gyre008 why? I have: #!/System/Executables/ruby -w which is just the same as querying the hardcoded /usr/bin/env
rmcafee_ has quit [Client Quit]
<shevy> RVM uses symlinks too as far as I know by the way
<shevy> i.e. when doing "rvm --default use 1.9.3" or "rvm --default use 1.8.7"
<grizlo42> Peter_lee: node.value i believe?
<gyre008> I've come to discover that RVM is messing with al sorts of stuff ;)…like it doesn't even use gem binary…it aliases it to something…arrrgh
<Peter_lee> Ok, I'll take a look at that, thanks
samflores has joined #ruby
c0rn_ has joined #ruby
samflores has left #ruby [#ruby]
<shevy> hehe
rmcafee has quit [Ping timeout: 276 seconds]
<shevy> the coolest thing is combining RVM with bundler
<grizlo42> Peter_lee: or node.content
<shevy> and system ruby!
LouisGB has quit [Ping timeout: 240 seconds]
<Hanmac> hm i saw a problem that rvm fails to install a gem where a normal ruby still works ... oO
c0rn_ has quit [Client Quit]
bontaq has joined #ruby
<Peter_lee> ok
JarJar has joined #ruby
workmad3 has quit [Ping timeout: 268 seconds]
LennyLin_ has quit [Remote host closed the connection]
<gyre008> shevy, yeah…its just crazy…and the worst thing is that it takes sometimes quite a long time to find the damn root cause of chaos :)
stephenjudkins has quit [Quit: stephenjudkins]
scb has joined #ruby
<Peter_lee> node.content did the trick, thanks!
snorkdude has joined #ruby
<shevy> gyre008, yeah, layers on layers on layers of complexity
<Hanmac> turtles all the way down :P
philcrissman_ has joined #ruby
cmasseraf has joined #ruby
philcrissman_ has quit [Remote host closed the connection]
hiroyuki has quit [Read error: Connection reset by peer]
hiroyuki has joined #ruby
cmasseraf has quit [Read error: Connection reset by peer]
c0rn_ has joined #ruby
<bricker88> To get the first 50 characters from a string, string.first(50) is most efficient?
<bricker88> or would slice be better?
philcrissman has quit [Ping timeout: 244 seconds]
cableray has joined #ruby
<shevy> bricker88 dunno, I always use string[0,50]
iamjarvo has joined #ruby
<null-> bricker88: why don't you test it?
Takehiro has joined #ruby
cmasseraf has joined #ruby
<shevy> we need public speed charts
cmasseraf has quit [Read error: Connection reset by peer]
<grizlo42> i dont even see first(n) in the docs....
c0rn_ has quit [Client Quit]
UdontKnow is now known as root
<grizlo42> yeah.....that is certainly not a part of 1.9.3....
stephenjudkins has joined #ruby
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
love_color_text has joined #ruby
<lectrick> what is the best, cleanest way to add the ability to un-include a module in Ruby? Gems with native extensions allowed, as long as there is test coverage.
<lectrick> Unextend also included in this request
Peter_lee has quit [Quit: ChatZilla 0.9.88.2 [Firefox 3.6.18/20110628230241]]
sdwrage has joined #ruby
Takehiro has quit [Ping timeout: 244 seconds]
larissa has joined #ruby
<Hanmac> grizlo42 its because String loses its Enumerable module
<shevy> lectrick, how about Object.send! :remove_const, :NameOfModule
Nisstyre-laptop has joined #ruby
<grizlo42> so it only works in 1.8.7?
hbpoison has joined #ruby
<lectrick> shevy: I think that only removes the definition of the module, it doesn't uninclude the module's methods from wherever it was already included and restore the original functionality
cmasseraf has joined #ruby
<Hanmac> grizlo42 on ruby1.9+ you need string.chars.first(50) or string.chars.take(50)
bbttxu has quit [Quit: bbttxu]
sailias has quit [Ping timeout: 276 seconds]
<Hanmac> lectrick ... i think there is no uninclude or unextend ... :(
<lectrick> I think that there might be, via a gem.
<grizlo42> lectrick: why would you want to do that?
larissa has quit [Ping timeout: 240 seconds]
gverri has joined #ruby
<lectrick> Because it would be useful to add temporary functionality?
<grizlo42> might that be a sign of a code smell?
<Hanmac> sorry but i dont think to ... even with a gem its VERY complicated to mimic that unextend feature ... if you realy want it, make a ticket
punkrawkR has quit [Read error: Connection reset by peer]
<lectrick> I can already alias methods, undefine and redefine methods... isn't that already in the smell business?
<lectrick> :)
machty has joined #ruby
hbpoison has quit [Ping timeout: 255 seconds]
larissa has joined #ruby
kpshek has quit []
knightblader has joined #ruby
h4mz1d has joined #ruby
cmasseraf has quit [Read error: Connection reset by peer]
ctp has quit [Read error: Operation timed out]
<lectrick> Alternately I could somehow hook into the builtin "include" or "extend" methods and inject my own functionality somehow.
<grizlo42> lectrick: some would argue so
<lectrick> The only problem is that the .ancestors of a thing is unchangeable without C code.
bier has quit [Ping timeout: 272 seconds]
cmasseraf has joined #ruby
Guedes has quit [Quit: Saindo]
JarJar has quit [Quit: This computer has gone to sleep]
<reactormonk> lectrick: there's some snippet that banisterfiend wrote, and evil
<lectrick> yes, i've been trying to track that guy down
stopbit_ has quit [Quit: Leaving]
c0rn_ has joined #ruby
meskyanichi has joined #ruby
Guedes has joined #ruby
nari has joined #ruby
larissa has quit [Ping timeout: 248 seconds]
<Hanmac> lectrick ... i might know a way ... but its ugly with method missing, and many proxy objects ...
<reactormonk> lectrick: #pry
<reactormonk> lectrick: and hump everything that begins with 'banister'
cj3kim has quit [Quit: This computer has gone to sleep]
noahsussman has joined #ruby
Criztian has quit [Remote host closed the connection]
love_color_text has quit [Remote host closed the connection]
mengu has joined #ruby
<lectrick> Hanmac: I think I can already imagine that way, and I agree it's a little ugly
a_a_g has joined #ruby
gverri has quit [Quit: gverri]
ph^ has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
SCommette has quit [Quit: SCommette]
johnlcox_ has quit [Ping timeout: 244 seconds]
Nathandim has joined #ruby
sebastorama has joined #ruby
butblack has joined #ruby
Tearan has joined #ruby
jgrevich has quit [Quit: jgrevich]
bier has joined #ruby
larissa has joined #ruby
Juul has joined #ruby
Nathandim has quit [Remote host closed the connection]
kvirani has quit [Remote host closed the connection]
macmartine has quit [Quit: Computer has gone to sleep.]
ph^ has quit [Ping timeout: 260 seconds]
austinbv has joined #ruby
recycle has joined #ruby
lady has joined #ruby
devnull_ has joined #ruby
ejnahc has joined #ruby
<devnull_> hi :) I was wondering if someone oculd help with this http://danceb.in/sNkEQ5r74RGyg6gl9DNYg thanks in advance
himsin has quit [Quit: Leaving]
lady has quit []
recycle has quit [Remote host closed the connection]
c0rn_ has quit [Quit: Computer has gone to sleep.]
mkr_ has joined #ruby
Nisstyre-laptop has quit [Remote host closed the connection]
m3pow has joined #ruby
c0rn_ has joined #ruby
zigomir has quit [Ping timeout: 264 seconds]
MasterIdler__ has joined #ruby
xclite has quit [Remote host closed the connection]
hcumberdale has quit [Ping timeout: 252 seconds]
xclite has joined #ruby
<Muz> devnull_: 1) We're not here to do your legwork for you, 2) #rubyonrails
<devnull_> Muz: first this is not rails
<Muz> Sorry, looks terribly rails-esque to me.
<devnull_> Muz: this is not leg work I am actually asking if there is an easy way in lieu of redefining the template
<Synthead> is there a way I can sort the keys of a hash numerically?
<devnull_> Muz: but is not rails I am sorry
<devnull_> Muz: is camping :)
_JamieD_ has quit [Read error: Connection reset by peer]
_JamieD_ has joined #ruby
<devnull_> Muz: like I tried something like def admin_users_list && def admin_users_list_pending but doesn't work :) or even def admin_users_list && admin_users_list_pending
<devnull_> Muz: may be too much bash in my head: P
<Muz> Synthead: hash.keys.sort
invisime has quit [Quit: Leaving.]
recycle has joined #ruby
MasterIdler_ has quit [Ping timeout: 268 seconds]
austinbv has quit [Ping timeout: 244 seconds]
MasterIdler__ has quit [Ping timeout: 246 seconds]
<Synthead> Muz: I'm looking to iterate through the hash ordered by the keys, numerically. for example, 10, 50, 100 (instead of 10, 100, 50)
evilsushi has quit [Quit: Lost terminal]
<Muz> Synthead: are you referring to an array?
<Synthead> Muz: Hash
<Synthead> Muz: I'll make a pastie
ejnahc has quit [Quit: leaving]
gverri has joined #ruby
<a_a_g> Synthead: has.keys.sort should work right?
<a_a_g> s/has/hash
<Synthead> a_a_g: .keys only returns the keys, right?
<Muz> Synthead: are you in fact referring to the values and not the keys then?
seanwash has quit [Quit: Computer has gone to sleep.]
ejnahc has joined #ruby
<Synthead> Muz: the keys
<Muz> It may be easier if you just pastie an example dataset.
sailias has joined #ruby
<a_a_g> yes, but you can either map the keys into an array of key value pairs or just use the keys to get the values and do whatever you want with them
<Muz> >> hash = { 100 => "s", 10=>"s" }; hash.keys.sort.each {|p| puts p}
<al2o3cr> (Array) [10, 100], Console: 10, 100
v0n has quit [Ping timeout: 246 seconds]
sailias has quit [Client Quit]
<Muz> >> hash = { 100 => "your", 10=>"mum" }; hash.keys.sort.each {|p| puts hash[p]}
<al2o3cr> (Array) [10, 100], Console: mum, your
<a_a_g> or - hash.keys.sort.map {|p| {p => hash[p]} }
<a_a_g> depends on you usecase
<Synthead> Muz: the ports are imaginary: http://pastie.org/4698713
recycle has quit [Remote host closed the connection]
<Synthead> a_a_g: ^ (http://pastie.org/4698713)
ZachBeta has joined #ruby
daniel_hinojosa has quit [Ping timeout: 264 seconds]
<Muz> @ports.keys.sort.each do |port| protocol = @ports[port] end
<Synthead> Muz: ooh, that would work
jjang has joined #ruby
<Muz> Or keys = hash.keys.sort; keys.each {|k| item = hash[k] }
Chryson has quit [Ping timeout: 276 seconds]
h4mz1d has quit [Ping timeout: 240 seconds]
<Synthead> Muz: hm, seems to still order it by 1, 10, 100, 1000, 2 ... etc (sorted as a string?)
<Muz> >> hash = { 100 => "s", 10=>"s", 20 => 's' }; hash.keys.sort
<al2o3cr> (Array) [10, 20, 100]
mrdodo has quit [Remote host closed the connection]
austinbv has joined #ruby
ejnahc has quit [Quit: leaving]
ewag has quit [Ping timeout: 240 seconds]
Dreamer3 has joined #ruby
RegEchse has quit [Quit: <3 WeeChat (v0.3.9-dev)]
cbuxton has joined #ruby
fbernier has joined #ruby
gverri has quit [Quit: gverri]
iamjarvo has quit [Ping timeout: 276 seconds]
<fowl> Paradox: your web design teacher was WRONG
<fowl> !!!!!!
<Paradox> fowl, lol
daniel_hinojosa has joined #ruby
<davidcelis> o really
<grizlo42> Paradox: get him this shirt: http://www.bustedtees.com/helvetica
<davidcelis> >> Ruby.sucks?
<al2o3cr> -e:1:in `eval': uninitialized constant Ruby (NameError), from -e:1:in `eval', from -e:1:in `<main>'
gverri has joined #ruby
<davidcelis> see, Ruby doesn't suck
<davidcelis> because it doesn't even exist
<davidcelis> QED
ejnahc has joined #ruby
v0n has joined #ruby
hadees has quit [Quit: hadees]
Takehiro has joined #ruby
<davidcelis> grizlo42: helveterotica
<grizlo42> I haven't seen the kerning on that one.
<davidcelis> grizlo42: yo momma's kerning so bad, all the links on her website say "dick here"
<Muz> Faen i helvete.
<grizlo42> hahahaha
sebastorama has quit [Quit: Computer has gone to sleep.]
ejnahc has quit [Client Quit]
<Synthead> @ports.keys.sort_by { |port| port.to_i }.each do |port| This works ... can it be made more efficient?
ejnahc has joined #ruby
<Paradox> grizlo42, i actually have never taken a web design class
<Paradox> because i dont need to learn about <font> and <color>
<Paradox> but thats the argument some guy used the other day why ruby was "bad"
ejnahc has quit [Max SendQ exceeded]
<a_a_g> Synthead: you shouldnt need to do sort_by
<Muz> Ruby is bad because I couldn't set up some random piece of software I found on the Internet that was shoddily written in Ruby and no one on IRC would set it up for me for nothing.
<Synthead> a_a_g: it sorts as a string otherwise. maybe that's puppet mangling it
<a_a_g> plain sort just works (at least on 1.9)
Takehiro has quit [Ping timeout: 244 seconds]
<davidcelis> Ruby is bad because it's slow and it doesn't have any web scales
ejnahc has joined #ruby
techhelp2 has quit [Quit: This computer has gone to sleep]
<Synthead> davidcelis: nice, that's funny, hah
<grizlo42> davidcelis: i thought it was cuz it wasn't lisp.
<Synthead> okay, I'm out. you guys have been helpful as always :)
<Synthead> ciao
Synthead has quit [Quit: p33 ba115]
<davidcelis> node.js isn't lisp, but it's awesome because its non-blocking, and it has infinite web scales
_larissa has joined #ruby
reuf has quit [Quit: Leaving]
samflores has joined #ruby
<null-> ruby is bad because twitter drop it
<grizlo42> it scales all the things?
<grizlo42> :O
<Paradox> lol
<Paradox> nothing is non-blocking
<Paradox> node is just an evented system
<Paradox> same as eventmachine or twisted
<a_a_g> whats the point in comparing a language with a framework?
<davidcelis> null-: no they didnt
<davidcelis> wut
t_j has left #ruby [#ruby]
pdtpatrick has quit [Quit: pdtpatrick]
gverri has quit [Quit: gverri]
<null-> davidcelis: didn't they rewrite their web services in Scala?
samflores has left #ruby [#ruby]
a_a_g has quit [Quit: Leaving.]
<davidcelis> pretty sure they still use ruby
<davidcelis> they use a lot of different things now
samflores has joined #ruby
<Paradox> davidcelis, he's referring to when they briefly switched to scala
samflores has left #ruby [#ruby]
<davidcelis> i don't think it was a "switch" so much as an addition
daniel_hinojosa has quit [Ping timeout: 244 seconds]
_larissa has quit [Quit: Saindo]
scb has quit [Ping timeout: 268 seconds]
seanstickle has joined #ruby
_larissa has joined #ruby
jenrzzz_ has quit [Ping timeout: 245 seconds]
_larissa has quit [Client Quit]
daniel_hinojosa has joined #ruby
recycle has joined #ruby
sebastorama has joined #ruby
chrxn has joined #ruby
BrokenCog has joined #ruby
BrokenCog has quit [Changing host]
BrokenCog has joined #ruby
jarred has joined #ruby
recycle has quit [Ping timeout: 240 seconds]
benq has joined #ruby
piotr__ has quit [Ping timeout: 260 seconds]
daniel_hinojosa has quit [Ping timeout: 240 seconds]
hadees has joined #ruby
pricees has quit [Quit: leaving]
chrxn has quit [Quit: Leaving]
larissa_ has joined #ruby
larissa_ has quit [Remote host closed the connection]
ph^ has joined #ruby
awarner has quit [Remote host closed the connection]