<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
<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]
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)
<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?
<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
<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?
<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]
<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.
<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]
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?
<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.]
<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
<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 :(
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
<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?
* 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
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: 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
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]
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]
<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"
<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]
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....
<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.]
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
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
<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]