apeiros changed the topic of #ruby to: Ruby 2.1.1; 2.0.0-p451; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
<Francis2211> Undernet server
AlexRussia has quit [Client Quit]
bahar has quit [Ping timeout: 240 seconds]
Geniack has joined #ruby
Geniack_ has quit [Read error: Operation timed out]
AlexRussia has joined #ruby
bahar has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<Francis2211> Installing ..... ....... .......
shevy has joined #ruby
nateberkopec has joined #ruby
YamakasY_ has quit [Remote host closed the connection]
klaut has quit [Remote host closed the connection]
nateberkopec has quit [Read error: No route to host]
nateberkopec has joined #ruby
derek_c has quit [Ping timeout: 255 seconds]
bradhe has joined #ruby
kil0byte has joined #ruby
alexju has quit [Remote host closed the connection]
jhass is now known as jhass|off
<slawrence> @speakingcode: Thanks for the link to that tut. Checking it out.
nateberkopec has quit [Ping timeout: 265 seconds]
<Francis2211> Franciss-MacBook-Pro:furbaez.github.com francis$ git push origin master
<Francis2211> Warning: Permanently added the RSA host key for IP address '192.30.252.131' to the list of known hosts.
<Francis2211> Permission denied (publickey).
<Francis2211> fatal: Could not read from remote repository.
sincereness has joined #ruby
<sincereness> if i have this code <a href='<%= @array.first.href %>'><%= @array[0] %></a> that outputs the first link in an array how do i change this into a code block to output all the links?
<Francis2211> I'm trying to push to my github and im getting this error
kil0byte has quit [Remote host closed the connection]
cpruitt has joined #ruby
lkba has joined #ruby
near77 has quit [Quit: Page closed]
nisstyre has joined #ruby
momomomomo has joined #ruby
rahult_ is now known as rahult
<popl> Francis2211: How is this related to Ruby?
<Francis2211> sorry wrong channel
x77686d has quit [Quit: x77686d]
aspires has quit []
jamto11 has joined #ruby
derek_c has joined #ruby
evenix has quit [Read error: Connection reset by peer]
evenix has joined #ruby
AlexRussia has quit [Read error: Connection reset by peer]
AlexRussia__ has joined #ruby
andrewlio has quit [Quit: Leaving.]
jamto11 has quit [Ping timeout: 268 seconds]
YamakasY has joined #ruby
ktosiek has joined #ruby
Beoran has quit [Ping timeout: 264 seconds]
<benzrf> bbl
gancl has quit [Quit: No Ping reply in 180 seconds.]
benzrf is now known as benzrf|offline
gancl has joined #ruby
YamakasY_ has joined #ruby
ChrisAnn has quit [Remote host closed the connection]
yfeldblum has joined #ruby
YamakasY has quit [Ping timeout: 255 seconds]
Chronocity has quit [Read error: Connection reset by peer]
yfeldblum has quit [Remote host closed the connection]
nanoyak has joined #ruby
Nss has quit [Ping timeout: 265 seconds]
osvico has joined #ruby
bawNg has quit [Quit: No Ping reply in 180 seconds.]
nisstyre has quit [Quit: WeeChat 0.4.3]
otherj has joined #ruby
karmatr0n has quit [Remote host closed the connection]
bawNg has joined #ruby
bawNg has joined #ruby
bawNg has quit [Changing host]
havenwood has quit [Remote host closed the connection]
YamakasY_ is now known as YamakasY
havenwood has joined #ruby
jetblack has joined #ruby
jetblack has quit [Client Quit]
northfurr has joined #ruby
m0s^away is now known as m0s
evenix_ has joined #ruby
gemmy has quit [Quit: Lost terminal]
Beoran has joined #ruby
havenwood has quit [Ping timeout: 252 seconds]
siwica has quit [Ping timeout: 265 seconds]
predator117 has joined #ruby
evenix has quit [Ping timeout: 252 seconds]
brunops has quit [Quit: leaving]
siwica has joined #ruby
brunops has joined #ruby
<Francis2211> Thank you!!!! my blog is up and running
mehlah has quit [Quit: Leaving...]
predator217 has quit [Ping timeout: 251 seconds]
x77686d has joined #ruby
cpruitt has quit [Quit: cpruitt]
tomdane_ has joined #ruby
kirun_ has quit [Ping timeout: 265 seconds]
m0s is now known as m0s^away
AlexRussia__ has quit [Ping timeout: 255 seconds]
m0s^away is now known as m0s
postmodern has quit [Quit: Leaving]
Speed has quit [Ping timeout: 265 seconds]
x77686d has quit [Quit: x77686d]
samlt has quit [Ping timeout: 240 seconds]
Erthe has joined #ruby
Erthe has left #ruby [#ruby]
userx- is now known as userx
RaptorJesus has joined #ruby
m0s is now known as m0s^away
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
m0s^away is now known as m0s
JBreit has joined #ruby
centrx has quit [Quit: All this computer hacking is making me thirsty]
cpruitt has joined #ruby
Stalkr_ has quit [Quit: Leaving...]
gilest has quit [Remote host closed the connection]
cpruitt has quit [Client Quit]
cpruitt has joined #ruby
deadlock has joined #ruby
bradhe_ has joined #ruby
Stalkr_ has joined #ruby
Stalkr_ has quit [Client Quit]
maroloccio has quit [Quit: WeeChat 0.4.3]
bradhe has quit [Ping timeout: 255 seconds]
brunops has quit [Quit: leaving]
cpruitt has quit [Quit: cpruitt]
chipotle has quit [Quit: cya]
tectonic has joined #ruby
nateberkopec has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
cpruitt has joined #ruby
nffff has quit [Ping timeout: 265 seconds]
MatthewsFace has joined #ruby
dapz has joined #ruby
dapz has quit [Max SendQ exceeded]
dapz has joined #ruby
dapz has quit [Max SendQ exceeded]
macmartine has joined #ruby
otherj has quit []
benzrf|offline is now known as benzrf
xapak has joined #ruby
<xapak> Hello.
<xapak> In Ruby 2.1.1 is “require 'rubygems'” required?
fabrice31 has joined #ruby
nopolitica has quit [Quit: Lost terminal]
evenix_ has quit [Remote host closed the connection]
ktosiek has quit [Ping timeout: 265 seconds]
evenix has joined #ruby
macmartine has quit [Ping timeout: 255 seconds]
dapz has joined #ruby
YamakasY has quit [Quit: The best revenge is massive success...]
MatthewsFace has quit [Quit: This computer has gone to sleep]
fabrice31 has quit [Ping timeout: 265 seconds]
gregf has joined #ruby
derek_c has quit [Ping timeout: 255 seconds]
<apeiros> xapak: no
gilest has joined #ruby
MatthewsFace has joined #ruby
Es0teric has quit [Ping timeout: 268 seconds]
MatthewsFace has quit [Remote host closed the connection]
tomdane_ has quit [Ping timeout: 240 seconds]
evenix has quit [Ping timeout: 268 seconds]
aspires has joined #ruby
<xapak> apeiros, thanks.
gregf has quit [Client Quit]
gregf has joined #ruby
MatthewsFace has joined #ruby
crystal77 has joined #ruby
jwingfi has joined #ruby
serp` has joined #ruby
xapak has left #ruby [#ruby]
aspires has quit [Ping timeout: 268 seconds]
Splourian has joined #ruby
danno1 has joined #ruby
rahult is now known as rahult_
shevy has quit [Ping timeout: 264 seconds]
bawNg has quit [Ping timeout: 268 seconds]
weeb1e has quit [Ping timeout: 255 seconds]
sputnik1_ has joined #ruby
RaptorJesus_ has joined #ruby
bradhe_ has quit [Ping timeout: 240 seconds]
RaptorJesus has quit [Ping timeout: 255 seconds]
sputnik__ has joined #ruby
sputnik1_ has quit [Read error: Connection reset by peer]
cashnguns has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 265 seconds]
cpruitt has quit [Quit: cpruitt]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dapz has joined #ruby
RaptorJesus_ is now known as RaptorJesus
danno1 has quit [Ping timeout: 252 seconds]
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
tvw has quit [Ping timeout: 240 seconds]
<dmarr> I just installed rbenv and 2.1.1, when I try to bundle install in the our-boxen dir, I still get an error with the path /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
tectonic has quit []
slopjong has joined #ruby
sincereness has quit [Quit: Page closed]
nath_schwarz has quit [Read error: Connection reset by peer]
gilest has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
gilest has joined #ruby
bawNg has joined #ruby
bawNg has joined #ruby
bawNg has quit [Changing host]
pierre1_ has joined #ruby
papercode has quit [Quit: WeeChat 0.4.3]
weeb1e has joined #ruby
pwh has joined #ruby
ctp has joined #ruby
teddyp1cker has quit [Ping timeout: 240 seconds]
shevy has joined #ruby
AlexRussia__ has joined #ruby
Francis2211 has quit [Remote host closed the connection]
AlexRussia has joined #ruby
sputnik__ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
peta_ has quit [Quit: peta_]
sputnik1_ has joined #ruby
Hanmac has quit [Ping timeout: 268 seconds]
shevy has quit [Remote host closed the connection]
AlexRussia__ has quit [Ping timeout: 240 seconds]
sputnik1_ has quit [Client Quit]
AlexRussia has quit [Client Quit]
bahar has quit [Changing host]
bahar has joined #ruby
cescalante is now known as ce_afk
AlexRussia has joined #ruby
chipotle has joined #ruby
kennym has quit [Quit: Leaving.]
Shidash has quit [Ping timeout: 265 seconds]
Psybur has joined #ruby
Shidash has joined #ruby
AlexRussia has quit [Read error: Operation timed out]
RaptorJesus_ has joined #ruby
aef has quit [Remote host closed the connection]
rylev has quit [Remote host closed the connection]
aef has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
shevy has joined #ruby
r_rios has joined #ruby
RaptorJesus has quit [Ping timeout: 264 seconds]
The_NetZ has joined #ruby
thomasxie has joined #ruby
AlexRussia has joined #ruby
r0bby has joined #ruby
robbyoconnor has quit [Ping timeout: 264 seconds]
RaptorJesus has joined #ruby
Celm has quit [Remote host closed the connection]
<The_NetZ> hrm. its really hard to google for using the code::blocks IDE to write ruby extensions when codeblock is a ruby programming technique
m0s is now known as m0s^away
AlexRussia has quit [Client Quit]
Hanmac has joined #ruby
RaptorJesus_ has quit [Ping timeout: 255 seconds]
AlexRussia has joined #ruby
shevy has quit [Ping timeout: 240 seconds]
Celm has joined #ruby
supermarin has quit [Remote host closed the connection]
supermarin has joined #ruby
kyb3r_ has joined #ruby
montyboy has joined #ruby
kennym has joined #ruby
charliesome has joined #ruby
RaptorJesus_ has joined #ruby
kyb3r_ has quit [Client Quit]
kyb3r_ has joined #ruby
AlexRussia has quit [Ping timeout: 264 seconds]
supermarin has quit [Ping timeout: 255 seconds]
AlexRussia has joined #ruby
RaptorJesus has quit [Ping timeout: 255 seconds]
diegoviola has joined #ruby
JBreit has left #ruby ["Leaving"]
f1skn has quit []
shevy has joined #ruby
danno1 has joined #ruby
oniMaker has joined #ruby
kennym has quit [Quit: Leaving.]
f1skn has joined #ruby
<oniMaker> Installed ruby with `sudo apt-get install ruby1.9.1-dev` but `ruby` and `which ruby` show nothing
<oniMaker> Is there another install step?
axsuul has joined #ruby
<benzrf> oniMaker: try just ruby1.9.1
<benzrf> oniMaker: i think -dev is for the headers
<oniMaker> benzrf: oh... I'm setting up something where I think I need -dev
<oniMaker> benzrf: so, install both?
<benzrf> tryggvib:
<benzrf> *try
<benzrf> cant hurt :-)
<oniMaker> just did:
<oniMaker> ruby1.9.1 is already the newest version.
<oniMaker> ruby1.9.1 set to manually installed.
<oniMaker> what's the directory it gets installed to?
<benzrf> :o
<benzrf> oniMaker: no idea >.>
jamto11 has joined #ruby
<benzrf> oniMaker: you could try using locate
<benzrf> oniMaker: i assume u have an updatedb cronjob
nisstyre has joined #ruby
timonv has joined #ruby
<oniMaker> no
mostlybadfly has quit [Quit: Connection closed for inactivity]
<oniMaker> just installed locate, but `locate ruby` returns nothing
<oniMaker> updatedb first?
chuk has quit [Quit: This computer has gone to sleep]
radic has quit [Ping timeout: 265 seconds]
Axsuul_ has joined #ruby
Axsuul_ has quit [Max SendQ exceeded]
Axsuul_ has joined #ruby
zigomir_ has quit [Ping timeout: 265 seconds]
f1skn has quit [Remote host closed the connection]
jamto11 has quit [Ping timeout: 255 seconds]
gregf has quit [Quit: WeeChat 0.4.3]
radic has joined #ruby
brunops has joined #ruby
petey has joined #ruby
timonv has quit [Ping timeout: 268 seconds]
axsuul has quit [Ping timeout: 268 seconds]
Splourian has quit [Ping timeout: 245 seconds]
danno1 has quit [Ping timeout: 240 seconds]
george2 has quit [Remote host closed the connection]
Shidash has quit [Ping timeout: 240 seconds]
Shidash has joined #ruby
<oniMaker> ok, the only ruby binary I see is one at /etc/alternatives/ruby
<oniMaker> I can't remember when that was installed or how it was done
<oniMaker> though I see entries for ruby1.8 in apt-get installed packages
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
kennym has joined #ruby
The_NetZ_ has joined #ruby
<oniMaker> removed 1.8 from apt-get, then it updated /usr/bin/ruby
<oniMaker> update-alternatives: using /usr/bin/ruby1.9.1 to provide /usr/bin/ruby (ruby) in auto mode.
marcdel has joined #ruby
The_NetZ has quit [Ping timeout: 265 seconds]
<shevy> debian makes me sad
<oniMaker> now bundle is complaining about a missing 1.8
<oniMaker> is there a sane way for this to be set up?
freerobby has joined #ruby
<oniMaker> I don't even see how bundler is installed... gem doesn't list it
The_NetZ has joined #ruby
<oniMaker> shevy: why?
jwingfi has quit [Remote host closed the connection]
<shevy> oniMaker because you have to run extra loops just to make your build sane
<oniMaker> shevy: what's a better alternative?
jwingfi has joined #ruby
The_NetZ_ has quit [Ping timeout: 240 seconds]
<shevy> compiling from source
<oniMaker> that's different for debian?
<shevy> of course they also compile from source
<shevy> but they split up the compiled parts into separate packages
jamto11 has joined #ruby
Axsuul_ has quit [Ping timeout: 264 seconds]
<shevy> there is no guarantee for your ruby install to be "as-is" compared to the source archives
<shevy> for instance, debian hates mkmf and so removes it usually
gilest has quit [Remote host closed the connection]
kyb3r_ has quit [Quit: Leaving]
<oniMaker> what's mkmf?
x77686d has joined #ruby
<shevy> then there are a few other changes they do, such as defaulting to /var/lib something for your gems
vpretzel has quit [Remote host closed the connection]
<shevy> mkmf is a part of ruby, it provides ways for some gems that require native compilation to work
<oniMaker> I still don't have the hang of install paths on any distro... there doesn't seem to be much rhyme or reason to it
<oniMaker> shevy: oh ok, thanks
<shevy> precisely oniMaker
axsuul has joined #ruby
<shevy> the paths are to a large degree arbitrary
axsuul has quit [Excess Flood]
<shevy> in most cases they also came to be because they are more convenient to type for the old C hackers
<shevy> like /usr /etc /home
<oniMaker> that part makes sense at least
<shevy> you can find out your gem paths via "gem env"
<shevy> and if your ruby version is at least 1.9.x then you should have gem
<shevy> unless debian took that away from you by default as well ;P
<oniMaker> so the best idea if I'm starting fresh is to compile everything myself and choose how I'd like to structure the containing paths?
<shevy> I don't know if this is the "best"
<shevy> there are always tradeoffs
<oniMaker> no, gem is still there... looks like things are working now
<shevy> you can use debian ruby, you just have to uncripple it
<oniMaker> atomic wasn't building with 1.8 so I guess1.9.1-dev is needed...
<shevy> there you go :P
jwingfi has quit [Remote host closed the connection]
jwingfi has joined #ruby
<oniMaker> in most cases the convenience of apt-get or other package managers is great
sepp2k has quit [Quit: Leaving.]
<oniMaker> probably my own knowledge of alternatives that I have to fill in
marcdel has quit [Ping timeout: 265 seconds]
gancl has quit [Ping timeout: 265 seconds]
sawbon3s has joined #ruby
gilest has joined #ruby
<shevy> dunno
<shevy> I found it too tiring to cater towards developers of a distribution
Splourian has joined #ruby
george2 has joined #ruby
Jetchisel has joined #ruby
Psybur has quit [Ping timeout: 255 seconds]
brunops has quit [Quit: leaving]
jamto11 has quit [Remote host closed the connection]
lw has joined #ruby
kukyakya_ has joined #ruby
fabrice31 has joined #ruby
chipotle has quit [Quit: cya]
braincrash has quit [Quit: bye bye]
Doppp has quit [Ping timeout: 265 seconds]
Splourian has left #ruby [#ruby]
chipotle has joined #ruby
siwica has quit [Ping timeout: 265 seconds]
jwingfi has quit [Remote host closed the connection]
brunops has joined #ruby
jwingfi has joined #ruby
ghr has joined #ruby
fabrice31 has quit [Ping timeout: 265 seconds]
braincrash has joined #ruby
saarinen has quit [Quit: saarinen]
jwingfi has quit [Remote host closed the connection]
Splourian has joined #ruby
jwingfi has joined #ruby
Jetchisel has quit [Ping timeout: 252 seconds]
mengu has joined #ruby
Es0teric has joined #ruby
yfeldblum has joined #ruby
lw has quit [Quit: s]
ghr has quit [Ping timeout: 265 seconds]
yfeldblum has quit [Remote host closed the connection]
oo_ has joined #ruby
rylev has joined #ruby
michaeldeol has joined #ruby
soulcake has quit [Read error: Connection reset by peer]
vpretzel has joined #ruby
soulcake has joined #ruby
Jetchisel has joined #ruby
mengu has quit [Ping timeout: 252 seconds]
r0bby has quit [Quit: Konversation terminated!]
danno1 has joined #ruby
Fraeon has quit [Ping timeout: 245 seconds]
mikepack has joined #ruby
rylev has quit [Ping timeout: 252 seconds]
mikepack has quit [Client Quit]
jetblack has joined #ruby
kukyakya_ has quit [Quit: kukyakya_]
kennym has quit [Quit: Leaving.]
jetblack has quit [Client Quit]
jamto11 has joined #ruby
chipotle has quit [Quit: cya]
Slavox is now known as Slavox|AFK
oo_ has quit [Remote host closed the connection]
vpretzel has quit [Ping timeout: 240 seconds]
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
coder_neo has joined #ruby
coder_neo has quit [Client Quit]
yacks has joined #ruby
danno1 has quit [Ping timeout: 265 seconds]
yfeldblum has quit [Read error: Connection reset by peer]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Celm has quit [Remote host closed the connection]
Slavox|AFK is now known as Slavox
yfeldblum has joined #ruby
RaptorJesus_ is now known as RaptorJesus
SparkySparkyBoom has joined #ruby
chipotle has joined #ruby
Doppp has joined #ruby
benzrf is now known as benzrf|offline
Celm has joined #ruby
gregf has joined #ruby
crystal77 has joined #ruby
Avahey_ has quit [Quit: Connection closed for inactivity]
browndawg has joined #ruby
lw has joined #ruby
vpretzel has joined #ruby
kitak has joined #ruby
morenoh149 has joined #ruby
Jon30 has joined #ruby
<Jon30> how can i output bigdecimal as a number an not an object? to_s("F") still turns it into a string..
<morenoh149> to_s converts to a string I think you want to_f
rek2p0wn has quit [Ping timeout: 240 seconds]
<Jon30> morenoh149: to_f gives me 1.22e-06
<Jon30> the real value should be 0.00000546
<Jon30> or something like that
gilest has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
agent_white has joined #ruby
macmartine has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
<Rylee> Can anyone think of a reason for EventMachine to be unable to compile? https://gist.github.com/rylai-/947aea9531ff99f6b1f2
pierre1_ has quit [Ping timeout: 240 seconds]
lw has quit [Quit: s]
<Jon30> i am just trying to output json and i am trying to output it without double quotes.. anybody?
jwingfi has quit [Remote host closed the connection]
<morenoh149> so it's a bigdecimal with value 0.0000000546?
<Jon30> morenoh149: yes
<morenoh149> and you want a string representation of it?
jwingfi has joined #ruby
r_rios has quit [Ping timeout: 265 seconds]
dcope has joined #ruby
<Jon30> morenoh149: kinda.. but without double quotes
<Jon30> morenoh149: right now it gives me this: {"date":"2014-03-30-03-50","value":"0.00000121"}
teddyp1cker has quit [Ping timeout: 255 seconds]
<dcope> hey all, i'm using httparty and trying to watch the http requests with a proxy (mitmproxy)
<dcope> ruby doesn't seem to abide by system proxy settings... is there a way to force this?
<Jon30> and i want 0.00000121 to show up without the double quotes
gilest has joined #ruby
<morenoh149> does json even support non-quoted values?
<Jon30> morenoh149: when they are numbers i believe or boolean
mostlybadfly has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
Lewix has joined #ruby
<Jon30> morenoh149: i just double checked.. json can have numbers or booleans
<morenoh149> Jon30: can you just strip out the quotes .to_s('F').split("\"") ?
Bumptious has joined #ruby
<morenoh149> or .to_s('F').to_f ?
<Jon30> i'll try that
<bnagy> >> require 'json'; puts( {'a' => 0.1}.to_json )
<eval-in> bnagy => (https://eval.in/128768)
<bnagy> lame
<bnagy> anyway json just dumps your hash. If the value is a float you'll get a float, if it's a string you'll get a string
<bnagy> so that hash will get you {"a":0.1}
pfg has joined #ruby
<Jon30> morenoh149: it gives me 1.22e-06 once again
<morenoh149> bnagy: yeah but he has a bigdecimal that he converts first
Splourian has left #ruby [#ruby]
<bnagy> so?
<bnagy> if it's a float at the time you json it, you get a float
<morenoh149> he can't get the representation without double quotes in the first place
<Jon30> i need it to be 0.0000121 but instead it gives me 1.22e-06
<Jon30> yeah.. or with double quotes "0.0000121"
yasushi has joined #ruby
<morenoh149> I have a feeling whatever you're using to display the value may implicitly add quotes to show it to you, but it may very well be unquoted. Do you have any other way of testing it?
<Jon30> i am just using the browser to show it
<Jon30> when doing to_i it gives me 0 without double quotes
pfg has quit [Client Quit]
Fraeon has joined #ruby
<bnagy> ok well this is just how floats work
pierre1_ has joined #ruby
yasushi has quit [Ping timeout: 255 seconds]
<bnagy> >> f= "0.0000121".to_f; "%.7f" % f
<eval-in> bnagy => "0.0000121" (https://eval.in/128769)
endash_ has quit [Quit: endash_]
<bnagy> I mean.. a float is a float. A string representation is a string...
Celm has quit [Remote host closed the connection]
SHyx0rmZ has quit [Ping timeout: 255 seconds]
<oniMaker> and what of a banana?
hurricanehackers has joined #ruby
<Jon30> bnagy: i need the float to show with 8 decimals
<bnagy> sounds like the cleanest thing you can do is leave it as a string and to_f if you need to use it for arithmetic
<morenoh149> I agree with bnagy just tested a couple of scenarios. Put a string in your json and reinterpret it at the endpoint
lw has joined #ruby
dcope has left #ruby [#ruby]
<morenoh149> bnagy: where do I find docs on the %.7f stuff?
The_NetZ has quit [Ping timeout: 265 seconds]
hurricanehackers has left #ruby [#ruby]
<Jon30> it will slow things down :-/ i got a huge json output
iamdoo2 has joined #ruby
Splourian has joined #ruby
<bnagy> morenoh149: Kernel#printf
timonv has joined #ruby
etqqkoiflwhb has joined #ruby
<morenoh149> Jon30: what are you trying to accomplish? if you just pass the 1.22e-06 you'll have a float at the other end. If you want to display the data make it a string. If you want both you'll have to do both.
gilest has quit [Remote host closed the connection]
gancl has joined #ruby
<Jon30> i need the output to have 8 decimal points
<Jon30> i mean
<Jon30> places
<Jon30> morenoh149: you're right
<Jon30> my bad
<Jon30> :P
<bnagy> that's just string representation
<bnagy> >> "%.8f" % 0.555555555555555555555
<eval-in> bnagy => "0.55555556" (https://eval.in/128770)
timonv has quit [Ping timeout: 265 seconds]
<bnagy> the float is the float, it doesn't get more or less precise
MatthewsFace has quit [Quit: This computer has gone to sleep]
<bnagy> well unless you explicitly modify it
gilest has joined #ruby
<morenoh149> >> format("%.15f", 5.46e-08)
<eval-in> morenoh149 => "0.000000054600000" (https://eval.in/128771)
gilest has quit [Remote host closed the connection]
Celm has joined #ruby
gilest has joined #ruby
gancl has quit [Ping timeout: 255 seconds]
kennym has joined #ruby
Fraeon has quit [Ping timeout: 268 seconds]
jamto11_ has joined #ruby
macmartine has quit [Remote host closed the connection]
macmartine has joined #ruby
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
kennym has quit [Client Quit]
Splourian has quit [Ping timeout: 245 seconds]
jamto11_ has quit [Ping timeout: 268 seconds]
macmartine has quit [Ping timeout: 268 seconds]
gilest has quit [Remote host closed the connection]
gilest has joined #ruby
montyboy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Doppp has quit [Ping timeout: 264 seconds]
gilest has quit [Remote host closed the connection]
michael_lee has joined #ruby
jamto11 has quit [Remote host closed the connection]
macmartine has joined #ruby
brunops has quit [Ping timeout: 240 seconds]
gilest has joined #ruby
chuk has joined #ruby
gilest has quit [Remote host closed the connection]
brunops has joined #ruby
brunops has quit [Changing host]
brunops has joined #ruby
bahar has quit [Ping timeout: 265 seconds]
bahar has joined #ruby
macmartine has quit [Remote host closed the connection]
Fraeon has joined #ruby
freerobby has quit [Quit: Leaving.]
kennym has joined #ruby
lw has quit [Quit: s]
fabrice31 has joined #ruby
mary5030 has joined #ruby
gilest has joined #ruby
gilest has quit [Remote host closed the connection]
gilest has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
Lewix has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 240 seconds]
flippant has joined #ruby
Doppp has joined #ruby
abdulsattar has joined #ruby
spacemud has quit [Ping timeout: 265 seconds]
tectonic has joined #ruby
Es0teric has joined #ruby
SparkySparkyBoom has quit [Read error: Operation timed out]
snuffeluffegus has joined #ruby
dfsahfkjhakhg has joined #ruby
<dfsahfkjhakhg> some1 can tel me about the 'bug' with remote call to DRbObject referencing a Queue plz
dseitz has joined #ruby
kennym1 has joined #ruby
cover has quit [Remote host closed the connection]
dfsahfkjhakhg has left #ruby [#ruby]
idiocrash has joined #ruby
dfsahfkjhakhg has joined #ruby
kennym has quit [Ping timeout: 264 seconds]
oniMaker has left #ruby [#ruby]
bahar has quit [Ping timeout: 240 seconds]
jamto11 has joined #ruby
bahar has joined #ruby
larissa has quit [Quit: Leaving]
magler has joined #ruby
tectonic has quit []
Cache_Money has quit [Quit: Cache_Money]
Fraeon has quit [Ping timeout: 264 seconds]
jamto11 has quit [Ping timeout: 240 seconds]
bnagy has left #ruby [#ruby]
agent_white has quit [Quit: brb]
brunops has quit [Ping timeout: 240 seconds]
spacemud has joined #ruby
browndawg has quit [Quit: Leaving.]
chris_thomson has quit [Quit: Zzz...]
mary5030 has quit [Remote host closed the connection]
browndawg has joined #ruby
noop has joined #ruby
magler has quit [Remote host closed the connection]
sawbon3s has quit [Quit: Leaving]
chipotle has quit [Quit: cya]
bahar has quit [Ping timeout: 240 seconds]
dfsahfkjhakhg has quit [Quit: leaving]
bahar has joined #ruby
Aquilo has joined #ruby
boombadaroomba has quit [Ping timeout: 265 seconds]
agent_white has joined #ruby
noop has quit [Remote host closed the connection]
etqqkoiflwhb has joined #ruby
bahar has quit [Ping timeout: 240 seconds]
nbezzala has joined #ruby
decoponio has joined #ruby
browndawg has quit [Quit: Leaving.]
bahar has joined #ruby
browndawg has joined #ruby
browndawg has left #ruby [#ruby]
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
abdulsattar has quit [Ping timeout: 265 seconds]
petey has quit [Remote host closed the connection]
petey has joined #ruby
Solnse has quit [Quit: Leaving.]
mary5030 has joined #ruby
interweb has joined #ruby
oo_ has joined #ruby
<interweb> hello
freerobby has joined #ruby
boombadaroomba has joined #ruby
derek_c has joined #ruby
maroloccio has joined #ruby
evenix has joined #ruby
petey has quit [Ping timeout: 268 seconds]
<agent_white> heya
rippa has joined #ruby
havenwood has joined #ruby
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<interweb> agent_white, I want to begin programming with one of python or ruby , which one is better to choose ?
<agent_white> interweb: I like Ruby. But why not try both and see what fits comfortably?
freerobby has quit [Ping timeout: 265 seconds]
idiocrash has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hobogrammer has quit [Ping timeout: 255 seconds]
crystal77 has joined #ruby
lambo has joined #ruby
chichou has joined #ruby
<interweb> agent_white, Why does python users are more active on #python ?
teddyp1cker has joined #ruby
<agent_white> interweb: Beats me! I'm here and not in Python :) -- I hope you base your choice over the language than number of people in the IRC channel.
etqqkoiflwhb has joined #ruby
<lambo> why my client caller crash when i try to call methode on DRbObject of a Thread::Queue ??
yasushi has joined #ruby
gilest has quit [Remote host closed the connection]
chuk has quit [Quit: This computer has gone to sleep]
mary5030 has quit [Remote host closed the connection]
gilest has joined #ruby
teddyp1cker has quit [Ping timeout: 264 seconds]
mary5030 has joined #ruby
centrx has joined #ruby
papercode has joined #ruby
chichou has quit []
lambo has quit [Quit: leaving]
momomomomo has quit [Quit: momomomomo]
mary5030 has quit [Ping timeout: 265 seconds]
ziyadb_ has joined #ruby
arietis has joined #ruby
timonv has joined #ruby
kennym1 has quit [Quit: Leaving.]
chichou has joined #ruby
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
etqqkoiflwhb has joined #ruby
timonv has quit [Ping timeout: 268 seconds]
tgkokk has joined #ruby
coderhs has joined #ruby
coderhs has quit [Remote host closed the connection]
Fraeon has joined #ruby
pfg has joined #ruby
etqqkoiflwhb has quit [Ping timeout: 255 seconds]
<RubyPanther> If you're not sure if you want Ruby or Python, you're probably best off with Perl
jason__ has quit [Remote host closed the connection]
freerobby has joined #ruby
mercwithamouth has joined #ruby
<centrx> I wish we could put that in the topic
teddyp1cker has joined #ruby
nari has joined #ruby
pfg has quit [Client Quit]
browndawg has joined #ruby
nisstyre has quit [Quit: WeeChat 0.4.3]
freerobby has quit [Ping timeout: 255 seconds]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
mesamoo has joined #ruby
LadyRainicorn has joined #ruby
speakingcode has quit [Ping timeout: 255 seconds]
skammer has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
slawrence has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
slawrence has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
havenwood has quit [Remote host closed the connection]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jamto11 has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
eynj has left #ruby [#ruby]
jamto11 has quit [Ping timeout: 264 seconds]
CyborgCygnus has joined #ruby
yacks has quit [Ping timeout: 240 seconds]
nari has quit [Ping timeout: 265 seconds]
etqqkoiflwhb has joined #ruby
arietis has joined #ruby
meatherly has quit [Remote host closed the connection]
oniMaker has joined #ruby
<oniMaker> When I run 'bundle exec rake secret' I get:
<oniMaker> cannot load such file -- cookiejar
<oniMaker> looks like it comes from the activesupport gem
meatherly has joined #ruby
<oniMaker> what does this mean, and how can I fix it?
nanoyak has joined #ruby
brunops has joined #ruby
Jon30 has quit [Ping timeout: 268 seconds]
meatherly has quit [Ping timeout: 264 seconds]
papercode has quit [Quit: WeeChat 0.4.3]
LadyRainicorn has quit [Ping timeout: 255 seconds]
Shidash has quit [Ping timeout: 268 seconds]
LadyRainicorn has joined #ruby
rm__ has quit [Remote host closed the connection]
fabrice31 has joined #ruby
rm_ has joined #ruby
bahar has quit [Ping timeout: 264 seconds]
bahar has joined #ruby
maroloccio has quit [Quit: WeeChat 0.4.3]
thomasxie has quit [Quit: Leaving.]
<centrx> oniMaker, Check your gems?
yfeldblum has joined #ruby
<oniMaker> centrx: the cookiejar gem didn't have read permissions for group/other
<oniMaker> centrx: is that normal?
<oniMaker> setting them fixed it
fabrice31 has quit [Ping timeout: 255 seconds]
rm_ has quit [Ping timeout: 268 seconds]
<centrx> oniMaker, The files in the gem itself didn't?
<oniMaker> right
<centrx> Yeah seems wrong
brunops has quit [Ping timeout: 264 seconds]
<oniMaker> what sets the permissions normally?
<oniMaker> can each gem do that?
snuffeluffegus has quit [Ping timeout: 265 seconds]
<centrx> I don't know
arubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
amclain has quit [Quit: Leaving]
yfeldblum has quit [Ping timeout: 265 seconds]
kitak has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
kitak has joined #ruby
yacks has joined #ruby
cj3kim_ has joined #ruby
centrx has quit [Quit: All this computer hacking is making me thirsty]
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
cj3kim_ has quit [Remote host closed the connection]
yasushi has quit [Remote host closed the connection]
Splourian has joined #ruby
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
speakingcode has joined #ruby
gancl has joined #ruby
chichou has quit []
pwh has quit []
cj3kim_ has joined #ruby
Fraeon has quit [Ping timeout: 264 seconds]
abdulsattar has joined #ruby
spacemud has quit [Ping timeout: 264 seconds]
x77686d has quit [Quit: x77686d]
Celm has quit [Remote host closed the connection]
crystal77 has quit [Quit: Computer has gone to sleep.]
zigomir has joined #ruby
mrnugget has joined #ruby
freerobby has joined #ruby
thomasxie has joined #ruby
ghr has joined #ruby
Splourian has quit [Quit: Page closed]
endash_ has joined #ruby
bahar has quit [Ping timeout: 240 seconds]
Fire-Dragon-DoL has quit [Quit: Leaving.]
freerobby has quit [Ping timeout: 265 seconds]
ghr has quit [Ping timeout: 255 seconds]
chipotle has joined #ruby
bahar has joined #ruby
Lucky_Red has joined #ruby
papercode has joined #ruby
Jetchisel has quit [Ping timeout: 252 seconds]
s3ri0us has joined #ruby
oniMaker has quit []
spacemud has joined #ruby
prs_ is now known as prs
prs has quit [Changing host]
prs has joined #ruby
adeponte has quit [Ping timeout: 255 seconds]
adeponte has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
dangerousdave has joined #ruby
kitak has quit [Ping timeout: 260 seconds]
relix has joined #ruby
cj3kim_ has quit [Remote host closed the connection]
Bumptious has quit [Remote host closed the connection]
Bumptious has joined #ruby
Hobogrammer has joined #ruby
MatthewsFace has joined #ruby
akitada has joined #ruby
gilest has quit [Quit: Leaving...]
pierre1_ has quit [Quit: Leaving]
cj3kim_ has joined #ruby
ktosiek has joined #ruby
skaflem has joined #ruby
Celm has joined #ruby
Celm has quit [Ping timeout: 240 seconds]
rm_ has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
maroloccio has joined #ruby
Atw has quit [Ping timeout: 240 seconds]
Fraeon has joined #ruby
yfeldblum has joined #ruby
bahar has quit [Ping timeout: 255 seconds]
bahar has joined #ruby
Hanmac1 has joined #ruby
kitak has joined #ruby
rm_ has quit [Ping timeout: 240 seconds]
Fraeon has quit [Ping timeout: 240 seconds]
MatthewsFace has quit [Quit: This computer has gone to sleep]
iamdoo2 has quit [Remote host closed the connection]
timonv has joined #ruby
Hanmac has quit [Ping timeout: 255 seconds]
yfeldblum has quit [Ping timeout: 265 seconds]
claymore has joined #ruby
toastynerd has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 268 seconds]
jonmorehouse has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
gancl has quit [Ping timeout: 265 seconds]
cj3kim_ has quit [Remote host closed the connection]
toastynerd has joined #ruby
tgkokk has quit [Remote host closed the connection]
tgkokk has joined #ruby
noocode has quit [Ping timeout: 246 seconds]
Deele has quit [Ping timeout: 240 seconds]
Lewix has joined #ruby
speakingcode has quit [Ping timeout: 255 seconds]
brunops has joined #ruby
kevinykchan has joined #ruby
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
Lewix has quit [Remote host closed the connection]
yasushi has joined #ruby
freerobby has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
diegoviola has quit [Remote host closed the connection]
_Andres has joined #ruby
CaptainJet has quit [Ping timeout: 265 seconds]
Jetchisel has joined #ruby
s3ri0us has quit [Quit: leaving]
slopjong has quit [Ping timeout: 245 seconds]
endash_ has quit [Quit: endash_]
chrisseaton has quit [Ping timeout: 264 seconds]
Hanmac1 has quit [Ping timeout: 240 seconds]
browndawg has quit [Read error: Connection timed out]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
freerobby has quit [Ping timeout: 252 seconds]
yasushi has quit [Ping timeout: 268 seconds]
browndawg has joined #ruby
ktosiek has quit [Ping timeout: 268 seconds]
CaptainJet has joined #ruby
noocode has joined #ruby
spicerack has joined #ruby
Fraeon has joined #ruby
agent_white has quit [Quit: gnight]
mrnugget has quit [Quit: mrnugget]
karmatr0n has joined #ruby
bahar has quit [Ping timeout: 268 seconds]
samlt has joined #ruby
klaut has joined #ruby
slawrence has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lucky_Red has quit [Quit: Leaving...]
bahar has joined #ruby
evenix has quit [Remote host closed the connection]
Jetchisel has quit [Ping timeout: 252 seconds]
yasushi has joined #ruby
jamto11 has joined #ruby
Hanmac has joined #ruby
bahar has quit [Ping timeout: 240 seconds]
fabrice31 has joined #ruby
bahar has joined #ruby
jamto11 has quit [Ping timeout: 265 seconds]
robbyoconnor has joined #ruby
ktosiek has joined #ruby
yasushi has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 252 seconds]
mrnugget has joined #ruby
browndawg has quit [Read error: Connection timed out]
arietis has joined #ruby
jonmorehouse has joined #ruby
mrnugget has quit [Client Quit]
karmatr0n has quit [Remote host closed the connection]
brunops has quit [Ping timeout: 268 seconds]
blackmesa has joined #ruby
brunops has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
etqqkoiflwhb has joined #ruby
Fraeon has quit [Ping timeout: 264 seconds]
tacos1de has quit [Remote host closed the connection]
tacos1de has joined #ruby
brunops has quit [Client Quit]
toastynerd has quit [Remote host closed the connection]
rm_ has joined #ruby
yfeldblum has joined #ruby
Dr3amc0d3r|away is now known as Dr3amc0d3r
yfeldblum has quit [Read error: Connection reset by peer]
nfk has joined #ruby
sski has joined #ruby
tacos1de has quit [Ping timeout: 265 seconds]
bahar has quit [Ping timeout: 264 seconds]
deadlock has quit [Quit: fuck off]
bahar has joined #ruby
oo__ has joined #ruby
Dude007 has joined #ruby
browndawg has joined #ruby
jhass|off is now known as jhass
rm_ has quit [Ping timeout: 268 seconds]
oo_ has quit [Ping timeout: 240 seconds]
interweb has quit [Ping timeout: 265 seconds]
tacos1de has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nbezzala has quit [Ping timeout: 265 seconds]
Hanmac1 has joined #ruby
nbezzala has joined #ruby
Hanmac has quit [Ping timeout: 255 seconds]
andrewlio has joined #ruby
teddyp1cker has quit [Read error: Connection timed out]
teddyp1cker has joined #ruby
maroloccio has quit [Quit: WeeChat 0.4.3]
jason__ has joined #ruby
freerobby has joined #ruby
WormDrink has quit [Ping timeout: 264 seconds]
speakingcode has joined #ruby
jason__ has quit [Ping timeout: 245 seconds]
WormDrink has joined #ruby
aagdbl has joined #ruby
CaptainJet has quit [Remote host closed the connection]
CaptainJet has joined #ruby
oo__ has quit [Remote host closed the connection]
freerobby has quit [Ping timeout: 268 seconds]
oo_ has joined #ruby
elektronaut has quit [Ping timeout: 240 seconds]
ponbiki has quit [Read error: Operation timed out]
jonatasdp has quit [Ping timeout: 240 seconds]
jaimef has quit [Ping timeout: 268 seconds]
ponbiki has joined #ruby
ponbiki is now known as Guest56776
Nss has joined #ruby
oo_ has quit [Ping timeout: 255 seconds]
nbezzala has quit [Remote host closed the connection]
speakingcode has quit [Ping timeout: 265 seconds]
CaptainJet has quit [Ping timeout: 240 seconds]
abdulsattar has quit [Remote host closed the connection]
klaut_ has joined #ruby
bahar has quit [Ping timeout: 255 seconds]
browndawg has quit [Read error: Connection timed out]
CaptainJet has joined #ruby
elektronaut has joined #ruby
tgkokk has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
mengu has joined #ruby
bahar has joined #ruby
browndawg has joined #ruby
Fraeon has joined #ruby
rahult_ is now known as rahult
rylev has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
relix has joined #ruby
jaimef has joined #ruby
jackneill has joined #ruby
jonmorehouse has quit [Ping timeout: 255 seconds]
Speed has joined #ruby
carif has joined #ruby
rylev has quit [Remote host closed the connection]
carraroj has joined #ruby
Xeago has joined #ruby
carif has quit [Ping timeout: 240 seconds]
kimiamania has joined #ruby
petey has joined #ruby
morenoh149 has quit [Ping timeout: 264 seconds]
jzigmund has quit [Ping timeout: 240 seconds]
carif has joined #ruby
timonv has joined #ruby
elaptics`away is now known as elaptics
klaut_ has quit []
Rainicorn has joined #ruby
timonv has quit [Read error: Operation timed out]
petey has quit [Ping timeout: 265 seconds]
LadyR has joined #ruby
LadyRainicorn has quit [Read error: Connection reset by peer]
danux has joined #ruby
yasushi has joined #ruby
gancl has joined #ruby
jespada has joined #ruby
Rainicorn has quit [Ping timeout: 255 seconds]
LadyR is now known as LadyRainicorn
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
montyboy has joined #ruby
montyboy has quit [Client Quit]
klaut has quit [Remote host closed the connection]
yfeldblum has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
yasushi has quit [Ping timeout: 265 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
montyboy has joined #ruby
Fraeon has quit [Ping timeout: 265 seconds]
Fraeon has joined #ruby
rm_ has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
browndawg has quit [Read error: Connection timed out]
mehlah has joined #ruby
bijumon has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bijumon> hi, is /^([A-Za-z]+)/ correct for matching alpha numeric words starting with a character
browndawg has joined #ruby
<LadyRainicorn> no.
rm_ has quit [Ping timeout: 265 seconds]
<jhass> posix defines alphanumeric to A-Za-z0-9
<bijumon> LadyRainicorn: can u help me understand? a bit confused
<LadyRainicorn> That matches the first letters at the beginning of a line.
Lucky_Red has joined #ruby
<bijumon> i'm trying to assert_match a username
Alina-malina has quit [Read error: Connection reset by peer]
<jhass> I'm not aware of _the_ specification for valid usernames
<jhass> so you need to get a little more specific
<LadyRainicorn> you likely want /\A\w+\z/
mengu has quit [Remote host closed the connection]
<LadyRainicorn> Isn't there a specific alphanumeric thing in Rails?
relix has joined #ruby
Alina-malina has joined #ruby
<bijumon> alphanumeric chars but starts with a letter
<bijumon> ^[A-Za-z](A-Za-z0-9*+) is correct?
<LadyRainicorn> No.
monkegjinni has joined #ruby
<jhass> LadyRainicorn: there's [[:alnum:]] for the unicode class, but I think that's broader than posix definition, \w already is
carif has quit [Ping timeout: 265 seconds]
<LadyRainicorn> Then /\A[A-Za-z]\w+\z/
Speed has quit [Ping timeout: 264 seconds]
<LadyRainicorn> I meant a Rails validation thingy
<bijumon> LadyRainicorn, yea, i just figured that , cool tyvm
aspiers has quit [Ping timeout: 246 seconds]
<Hanmac1> there is also /[[:upper:]]/ ;P
kennym has joined #ruby
glen has joined #ruby
rahult is now known as rahult_
<bijumon> /\A[A-Za-z]\w+\z/ looks about right
relix has quit [Client Quit]
<glen> hey. i would like to make wrapper function that takes optional hash params and makes them all into block calls, something like this: http://sprunge.us/RQGA
<jhass> bijumon: note that \w includes underscores
kennym has quit [Client Quit]
Alina-malina has quit [Read error: Connection reset by peer]
<jhass> glen: it's not entirely clear what you want
pfg has joined #ruby
<glen> i.e i want to write: wrap_block 'mucus', :port => 3316, :innodb => false
arietis has joined #ruby
<glen> which will do something like: cacti_graph_mysql 'mucus' do port 3316; innodb false end
<jhass> you want the block to return the hash?
<jhass> ah you want to call the methods in the hash keys
Alina-malina has joined #ruby
<glen> i think, i want hash to be convert to block or something
<jhass> params.each do |method, param| public_send(method, param); end;
<jhass> depending on your DSL you have to use send instead of public_send
<glen> and that syntax i presented, it will appear as params?
<glen> i mean the :port and :innodb are kind of optional hash or something
timonv has joined #ruby
<jhass> then additionally do def wrap_block(name, params={})
<glen> and also, the "name" funciton parameter is not optional
<Hanmac1> in newer ruby you can use def wrap_block(name, **params) for the optional parameters
<glen> i'm sorry, di i get it right: http://sprunge.us/eNFX ?
Hanmac1 is now known as Hanmac
<glen> is 1.9 new enough?
thomasxie has quit [Quit: Leaving.]
<jhass> no and not quite
<jhass> you still want to pass the block to cacti_graph_mysql and do the each inside
<jhass> also we use ; in IRC to abbreviate, replace it by new lines in real code
Alina-malina has quit [Ping timeout: 264 seconds]
carraroj has quit [Read error: Operation timed out]
Alina-malina has joined #ruby
<glen> so, something this? http://sprunge.us/OiEg
<glen> i'll fix the syntax later :)
<glen> missing one 'end' there
<jhass> you'r emissing an end (and a newline before the public_send), but yeah
freerobby has joined #ruby
<glen> and what if i want to make that cacti_graph_mysql came from param as well?
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
<glen> first, can i have the call syntax to be: wrap_block :cacti_graph_mysql, 'mucus', :port => 3316, :innodb => false
etqqkoiflwhb has joined #ruby
<jhass> sure, just use another (public_)send
freerobby1 has joined #ruby
<jhass> btw. wrap_block is a bad method name
freerobby has quit [Read error: Connection reset by peer]
mostlybadfly has joined #ruby
<glen> actually i'm lost, how do i do another public_send
phansch has joined #ruby
Speed has joined #ruby
<glen> http://sprunge.us/TXIR partial code
klaut has joined #ruby
<jhass> I'm feeling like I'm just giving you the code and you've no idea what you're actually doing tbh.
dx7 has joined #ruby
<glen> i got it until you said "just use another public send"
etqqkoiflwhb has quit [Ping timeout: 252 seconds]
<jhass> still, I see no concept of variables, values, objects or methods
freerobby1 has quit [Ping timeout: 252 seconds]
dx7_ has quit [Ping timeout: 240 seconds]
robustus has quit [Ping timeout: 252 seconds]
YamakasY has joined #ruby
spicerack has joined #ruby
bahar has quit [Ping timeout: 240 seconds]
rahult_ is now known as rahult
<jhass> oh well, here it goes: public_send(definition, name) do; params.each do ....
robustus has joined #ruby
armstrjare has joined #ruby
bahar has joined #ruby
browndawg has quit [Read error: Connection timed out]
tgkokk has joined #ruby
armstrjare has left #ruby [#ruby]
fabrice31 has joined #ruby
mrnugget has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
slopjong has joined #ruby
Hanmac1 has joined #ruby
<glen> thanks!
Hanmac has quit [Ping timeout: 240 seconds]
fabrice31 has quit [Read error: Operation timed out]
Dr3amc0d3r is now known as Dr3amc0d3r|away
Fraeon has quit [Ping timeout: 264 seconds]
speakingcode has joined #ruby
jamto11 has joined #ruby
caustic has quit [Ping timeout: 240 seconds]
<glen> if you wish, then final version is this : http://sprunge.us/XbVR
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
Stalkr_ has joined #ruby
jamto11_ has joined #ruby
jason_ has joined #ruby
jamto11 has quit [Ping timeout: 265 seconds]
gancl has quit [Quit: No Ping reply in 180 seconds.]
sdouglas has joined #ruby
gancl has joined #ruby
relix has joined #ruby
jamto11_ has quit [Ping timeout: 240 seconds]
jason_ has quit [Ping timeout: 264 seconds]
browndawg has joined #ruby
mengu has quit [Ping timeout: 240 seconds]
kobain has quit [Ping timeout: 265 seconds]
sdouglas has quit [Ping timeout: 255 seconds]
lkba has quit [Ping timeout: 265 seconds]
robertjpayne has joined #ruby
<robertjpayne> Is it possible to "monkey patch" a method on a class but still be able to call super?
agjacome has quit [Ping timeout: 255 seconds]
Lewix has joined #ruby
Fraeon has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
<apeiros> robertjpayne: a) alias the method before, or b) store the Method object (Object#method) to call it
<robertjpayne> apeiros: I actually just discovered Module.prepend :) Works perfect
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> then you don't monkey patch ;-)
<robertjpayne> apeiros: but thank you, Module#prepend has the issue of not seeing the same instance variables/class variables
<robertjpayne> apeiros: Well, it's sorta monkey patching :P
<apeiros> no it's not
<apeiros> it's sorta include
<apeiros> monkey patching is when you change the class itself
banister has joined #ruby
yfeldblum has joined #ruby
spider-mario has joined #ruby
teddyp1cker has quit [Read error: Connection timed out]
mikecmpbll has joined #ruby
bahar has quit [Ping timeout: 265 seconds]
rm_ has joined #ruby
derek_c has quit [Ping timeout: 240 seconds]
teddyp1cker has joined #ruby
flippant is now known as SparkySparkyBoom
yfeldblum has quit [Ping timeout: 265 seconds]
bahar has joined #ruby
Slavox is now known as Slavox|AFK
rm_ has quit [Ping timeout: 265 seconds]
nouitfvf_ has joined #ruby
sdouglas has joined #ruby
nouitfvf has quit [Ping timeout: 265 seconds]
Fraeon has quit [Read error: Operation timed out]
Dude007 has quit [Read error: Connection reset by peer]
Dude007 has joined #ruby
carraroj has joined #ruby
sdouglas has quit [Ping timeout: 240 seconds]
interweb has joined #ruby
nouitfvf has joined #ruby
Slavox|AFK is now known as Slavox
nari has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
Testy-Bot has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Lewix has quit [Remote host closed the connection]
Justi has joined #ruby
nouitfvf_ has quit [Ping timeout: 252 seconds]
freerobby has joined #ruby
peta_ has joined #ruby
armstrjare has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
bahar has quit [Ping timeout: 265 seconds]
ghr has joined #ruby
bahar has joined #ruby
relix has joined #ruby
freerobby has quit [Ping timeout: 255 seconds]
Fraeon has joined #ruby
ghr has quit [Ping timeout: 265 seconds]
Dude007 has quit []
armstrjare has quit [Quit: Textual IRC Client: www.textualapp.com]
relix has quit [Client Quit]
armstrjare has joined #ruby
gancl has quit [Ping timeout: 264 seconds]
monkegjinni has quit [Remote host closed the connection]
kitak_ has joined #ruby
mehlah has quit [Quit: Leaving...]
arietis has joined #ruby
temaaa has joined #ruby
LadyRainicorn has quit [Ping timeout: 265 seconds]
ViPi2 has joined #ruby
tgkokk has quit [Ping timeout: 255 seconds]
jason__ has joined #ruby
carraroj has quit [Ping timeout: 240 seconds]
lkba has joined #ruby
nuck has quit [Ping timeout: 240 seconds]
jason__ has quit [Ping timeout: 245 seconds]
aef has quit [Remote host closed the connection]
nuck has joined #ruby
banister has joined #ruby
ViPi2 has quit [Quit: Computer has gone to sleep.]
popl has quit [Ping timeout: 264 seconds]
eka has joined #ruby
<Xeago> when I do require 'gemname'
<Xeago> Can I get to know where the gem was found?
<Xeago> for some reason gem list shows no gems, but I can still require it :\
<Hanmac1> Xeago: $LOADED_FEATURES
Hanmac1 is now known as Hanmac
temaaa has quit [Quit: Pfxtv ns 'nj xbnftim&]
<Xeago> Hanmac: that shows gemname.rb, but not the path to genmane
<Hanmac> hm for me it shows paths :/
Fraeon has quit [Ping timeout: 265 seconds]
mengu has joined #ruby
<apeiros> as of 1.9 $LOADED_FEATURES should contain absolute paths
SparkySparkyBoom has quit [Remote host closed the connection]
kitak__ has joined #ruby
yfeldblum has joined #ruby
caustic has joined #ruby
LadyRainicorn has joined #ruby
rm_ has joined #ruby
kitak has quit [Ping timeout: 260 seconds]
gancl has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
<Xeago> bag :/
<Xeago> is there trickery I can do before 1.9?
<Xeago> I'll install 1.9
jollyy has joined #ruby
rm_ has quit [Ping timeout: 240 seconds]
jollyy has quit [Client Quit]
<atmosx> hello
jonaskindler has joined #ruby
Hanmac1 has joined #ruby
<atmosx> I want to create a calendar for an appointments RoR page any ideas on which gem to use/how to proceed? I need to display appointes (time and date) in an *acceptable* manner :-)
<jonaskindler> Hey I got a question. I
hiall has joined #ruby
<jonaskindler> m new to ruby and uesd rbenv to install 2.1.1 on my computer. just tried to install a gem but i get “You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory"
<jonaskindler> I used rbenv global 2.1.1 (which is my custom installation)
<jonaskindler> am i missing something?
bijumon has quit [Ping timeout: 264 seconds]
Hanmac has quit [Ping timeout: 268 seconds]
teddyp1cker has quit [Remote host closed the connection]
<Xeago> jonaskindler: you haven't switched yet to your installed ruby
jle` has quit [Quit: WeeChat 0.4.2]
<Xeago> it seems you are still using system ruby
<jonaskindler> I think i dont. ‘rbenv version’ gets me my custom installed ruby
<Xeago> rbenv version just lists
fabrice31 has joined #ruby
<Xeago> is there an asterisk next to it?
<jonaskindler> yes.
<Xeago> what does `which ruby` output?
lxsameer has quit [Quit: Leaving]
freerobby has joined #ruby
<jonaskindler> ‘/usr/bin/ruby’
chipotle has quit [Ping timeout: 255 seconds]
r_rios has joined #ruby
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hiall has quit [Ping timeout: 240 seconds]
Fraeon has joined #ruby
fabrice31 has quit [Ping timeout: 255 seconds]
hiall has joined #ruby
gancl has quit [Ping timeout: 240 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
freerobby has quit [Ping timeout: 264 seconds]
oo_ has joined #ruby
Azulinho has quit [Ping timeout: 264 seconds]
bahar has quit [Ping timeout: 264 seconds]
bahar has joined #ruby
oo_ has quit [Ping timeout: 265 seconds]
Fraeon has quit [Ping timeout: 264 seconds]
gancl has joined #ruby
oo_ has joined #ruby
WillAmes has quit [Remote host closed the connection]
WillAmes has joined #ruby
jamto11 has joined #ruby
<Xeago> than you are sitll running system ruby
<Xeago> `echo $PATH`
oo_ has quit [Ping timeout: 240 seconds]
s_kilk has joined #ruby
<Hanmac1> Xeago: what about "RbConfig.ruby" ? ;P
<Hanmac1> >> RbConfig.ruby
<eval-in> Hanmac1 => "/execpad/interpreters/ruby-2.1.0/bin/ruby" (https://eval.in/128860)
monkegjinni has joined #ruby
Hanmac1 is now known as Hanmac
keppy has joined #ruby
oo_ has joined #ruby
jamto11 has quit [Ping timeout: 264 seconds]
armstrjare has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jason_ has joined #ruby
Splourian has joined #ruby
<Xeago> Hanmac: that just shows the ruby I am on, I need the path to a gem
<shevy> where is RbConfig::CONFIG stored?
oo_ has quit [Ping timeout: 255 seconds]
<Hanmac> >> Gem::Specification.find_by_name("rdoc").full_gem_path
<eval-in> Hanmac => (https://eval.in/128861)
<Hanmac> Xeago: try something like that
<Xeago> thanks, trying!
heftig has quit [Quit: Quitting]
<Hanmac> shevy: compiled into the lib file itself
<Hanmac> (as far as i know)
<shevy> hmmm damn
heftig has joined #ruby
dangerousdave has quit [Quit: Linkinus - http://linkinus.com]
_Andres has quit [Read error: Connection reset by peer]
danshultz has joined #ruby
oo_ has joined #ruby
monkegji_ has joined #ruby
<Xeago> Hanmac: doesn't work on 1.8 :\
Testy-Bot has left #ruby [#ruby]
monkegjinni has quit [Ping timeout: 255 seconds]
s_kilk has quit [Quit: Leaving]
<Hanmac> Xeago: did you require rubygems before?
<Xeago> without that I don't have Gems
slopjong has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
r_rios has quit [Ping timeout: 240 seconds]
Fraeon has joined #ruby
<Xeago> the module Gem comes from rubygems, but Gem::Specification doesn't have that method in the latest version of rubygems on 1.8
yfeldblum has quit [Read error: Connection reset by peer]
<Xeago> I'm working with 1.9 now :)
freerobby has joined #ruby
browndawg has quit [Quit: Leaving.]
<Hanmac> you should work with 2.2 ;P
Testy-Bot has joined #ruby
<Xeago> 2.2 doesn't run on my rpi, puppet doesn't work on 2,1 :'(
rm_ has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
oo_ has quit [Ping timeout: 265 seconds]
oo_ has joined #ruby
Kilo`byte has quit [Read error: Operation timed out]
* Hanmac 's ruby version is time-machine powerd ... using future versions since yesterday ;P
freerobby has quit [Ping timeout: 265 seconds]
dorei has joined #ruby
Kilo`byte has joined #ruby
cover has joined #ruby
rm_ has quit [Ping timeout: 252 seconds]
oo_ has quit [Ping timeout: 265 seconds]
interweb has quit [Ping timeout: 240 seconds]
<dorei> hello, is there a way to have Thor execute a specific task when it cant find the specified task (from cli arguments) ?
r0nin has joined #ruby
r_rios has joined #ruby
northfurr has quit [Ping timeout: 240 seconds]
SHyx0rmZ has joined #ruby
Celm has joined #ruby
oo_ has joined #ruby
heftig has quit [Quit: Quitting]
Testy-Bot has quit [Remote host closed the connection]
r0nin has quit [Remote host closed the connection]
Czupa has joined #ruby
Slavox is now known as Slavox|AFK
Testy-Bot has joined #ruby
r_rios has quit [Ping timeout: 265 seconds]
Celm has quit [Ping timeout: 252 seconds]
browndawg has joined #ruby
freerobby has joined #ruby
blackmesa has joined #ruby
Slavox|AFK is now known as Slavox
r0nin has joined #ruby
freerobby has quit [Ping timeout: 268 seconds]
felixjet has quit [Ping timeout: 240 seconds]
cuppscakes has quit [Ping timeout: 245 seconds]
freggles has joined #ruby
felixjet has joined #ruby
Testy-Bot has left #ruby [#ruby]
sepp2k has joined #ruby
Testy-Bot has joined #ruby
<atmosx> weird..
shaunbaker has joined #ruby
cuppscakes has joined #ruby
Lucky_Red has quit [Quit: Leaving...]
jonaskindler has left #ruby [#ruby]
niv has quit [Ping timeout: 245 seconds]
niv has joined #ruby
<shevy> \o/
njection_ has joined #ruby
CyborgCygnus has quit [Remote host closed the connection]
nshbrown has joined #ruby
njection has quit [Read error: Operation timed out]
<matti> ;]
mengu has quit [Remote host closed the connection]
<matti> Hanmac: Did you happen to vendor a third-part C library with a gem code?
<matti> Hanmac: I am not entirely sure how to tackle this sensibly.
<Hanmac> matti: https://github.com/Hanmac/rwx one of my many projects where i bind C(++) libs to ruby
Deele has joined #ruby
<matti> Hanmac: And you just include whole of third-part as a part of your release?
peta_ has quit [Quit: peta_]
<Hanmac> hm nonono ... the libs are mostly to big for that ...
<Hanmac> but nokogiri is shipped with its own xml libs
heftig has joined #ruby
petey has joined #ruby
rvraghav93 has joined #ruby
<matti> I also need to look at Win32 support.
<matti> Meh
Splourian has quit [Quit: Page closed]
blackmesa has quit [Ping timeout: 255 seconds]
r0nin has quit [Remote host closed the connection]
aagdbl has quit [Quit: Connection closed for inactivity]
shaunbaker has quit []
<matti> Whoo, the way how Nokogiri does it seem bit crazy
arietis has quit [Quit: Computer has gone to sleep.]
petey has quit [Ping timeout: 255 seconds]
bijumon has joined #ruby
bijumon has left #ruby [#ruby]
_Andres has joined #ruby
kennym has joined #ruby
arietis has joined #ruby
robertjpayne has left #ruby [#ruby]
forced_request has joined #ruby
yfeldblum has joined #ruby
Jon30 has joined #ruby
Jon30 has joined #ruby
Jon30 has quit [Changing host]
Mon_Ouie has joined #ruby
CaptainJet has quit [Ping timeout: 265 seconds]
rm_ has joined #ruby
oo_ has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
browndawg has quit [Ping timeout: 265 seconds]
cashnguns has joined #ruby
gancl has quit [Quit: No Ping reply in 180 seconds.]
gancl has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
lw has joined #ruby
fabrice31 has joined #ruby
mehlah has joined #ruby
CaptainJet has joined #ruby
rm_ has quit [Ping timeout: 265 seconds]
freezey has joined #ruby
danshultz has quit [Ping timeout: 255 seconds]
rm_ has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
tgkokk has joined #ruby
Celm has joined #ruby
<shevy> that's what you get when working with XML
lw has quit [Quit: s]
<shevy> a shame centrx is not here, I'd be curious what he'd have to say about using PHP hand in hand with XML
<Hanmac> shevy http://www.mapeditor.org/ uses xml
<shevy> ewwwwwww
twiceaday has quit [Ping timeout: 265 seconds]
lw has joined #ruby
twiceaday has joined #ruby
tjr9898 has joined #ruby
teddyp1cker has joined #ruby
Testy-Bot has quit [Remote host closed the connection]
IceDragon has joined #ruby
jamto11 has joined #ruby
Celm has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
<shevy> Hanmac, omg how do you find such things?
browndawg has joined #ruby
Testy-Bot has joined #ruby
Testy-Bot has quit [Remote host closed the connection]
DouweM has joined #ruby
freezey has quit [Remote host closed the connection]
Testy-Bot has joined #ruby
lw has quit [Quit: s]
teddyp1cker has quit [Ping timeout: 255 seconds]
freerobby has quit [Ping timeout: 265 seconds]
browndawg has quit [Ping timeout: 268 seconds]
abdulsattar has joined #ruby
tgkokk has quit [Ping timeout: 240 seconds]
<bawNg> For any web devs who like to use a REPL interface like IRB, you may find this useful: https://gist.github.com/bawNg/9873327
freggles has quit [Remote host closed the connection]
<bawNg> Even more useful when embedded into EventMachine based applications, but can be used for blocking web servers too
freggles has joined #ruby
bahar has quit [Ping timeout: 240 seconds]
<shevy> what do you guys think about flexible APIs
<shevy> def foo(a, b = nil)
<shevy> b could be a string, a hash, a symbol
<shevy> some symbols or hashes could control the behaviour (settings) of the other arguments
<bawNg> It enables a game-like dev console on the web front end for logged in devs which can be toggled with the tilda key, that acts as a remote REPL interface into your backend, evaluating entered lines and serializing the response the json
Justi is now known as jousseti
jousseti is now known as Jousse
linojon has joined #ruby
bahar has joined #ruby
<bawNg> It also syntax highlights the json response, wraps exception backtraces in a scollable area and includes tab competion for code
<bawNg> shevy: I have nothing wrong with dynamic APIs like that, as long as their behavior is well defined
<bawNg> It also often makes more sense to make b a options hash
<shevy> well that's the thing
<bawNg> *an options hash
Jousse is now known as Justi
<shevy> the more dynamic it is, the more complicated such methods become
<bawNg> It depends on the method, often it makes sense for functionality to be dynamic
<bawNg> I don't like defining [](obj) on certain classes like models which accepts various kinds of objects for convenience
<bawNg> Unless used for a DSL-like implementation
<shevy> you mean def self.[](obj) ?
<bawNg> I do so in some cases where that method handles caching of model instances
<bawNg> Yeah
<shevy> hehe
browndawg has joined #ruby
<shevy> for some time I used that for mini classes
<bawNg> So that would accept an ID or name for lookups
<shevy> where self.[] was the only method they had added :)
freggles has quit [Remote host closed the connection]
<bawNg> Hah, that is a bit extreme :P
<shevy> RemoveDirectory['/tmp/test']
<shevy> yeah
jamto11_ has joined #ruby
lolmaus has joined #ruby
<bawNg> I'd far prefer monkey patching Dir.remove()
benzrf|offline is now known as benzrf
mikecmpbll has joined #ruby
Justi is now known as bobert
freggles has joined #ruby
CaptainJet has quit [Ping timeout: 265 seconds]
crystal77 has joined #ruby
zachallett has joined #ruby
jamto11_ has quit [Ping timeout: 252 seconds]
<jhass> shevy: don't overload your methods, if the caller has to specify the mode of operation anyhow, he can do that just well in the method name. Of course it's hard to argue without a specific case at hand
evenix has joined #ruby
<shevy> in the method name?
<Xeago> Puppet is pretty much written in that style
<Xeago> where RemoveDirectory['path'] returns a resource description instead (of type RemoveDirectory < Resource
<Xeago> )
<Xeago> and then later when a dependency graph is set up and traveled, you call resource.execute
arianit has joined #ruby
danux has quit [Quit: ChatZilla 0.9.90.1 [Firefox 24.0/20130917154333]]
<Xeago> Quite a common idiom when your program consists of a planning and execution phase
<shevy> hmm
pothibo has joined #ruby
<jhass> shevy: def strip_and_truncate; def truncate; def strip; vs. def handle_text text, options={}; if options[:strip]; if options[:truncate]; end
<jhass> the first is to prefer IMO
sqlnoob has joined #ruby
dangerousdave has joined #ruby
monkegji_ has quit [Remote host closed the connection]
zachallett has quit [Remote host closed the connection]
<Xeago> isn't strip and truncate chomp?
<jhass> shevy didn't provide an example to his question so I totally made something up
mrnugget has quit [Quit: mrnugget]
<jhass> don't care about the operations
dangerousdave has quit [Client Quit]
<shevy> well
<shevy> in the latter case the second argument is a hash
<shevy> what if you also want to call:
<shevy> handle_text 'bla', :truncate
spider-mario has quit [Remote host closed the connection]
<jhass> I'm saying you don't want a method that accepts that, instead you want to have truncate 'bla'
TheMoonMaster has quit [Excess Flood]
<bawNg> I'd say handle_text :truncate, 'bla' or better yet another wrapper: def truncate(text); handle_text(:truncate, text) end
<sqlnoob> Trying to install bundler 1.0.10. How do I specify particular version of bundler with gems?
kennym has quit [Quit: Leaving.]
<jhass> no, truncate_and_strip is a wrapper around truncate and strip, def truncate_and_strip text; truncate strip text; end
<shevy> jhass well in your examples you only work with tiny methods
northfurr has joined #ruby
<jhass> shevy: methods should be tiny
<jhass> sqlnoob: what's wrong with 1.6.0? anyway gem install bundler -v 1.0.10
TheMoonMaster has joined #ruby
kennym has joined #ruby
kennym has quit [Changing host]
kennym has joined #ruby
<sqlnoob> jhass : thanks. I'm not a ruby guy but trying to install a specific tool that uses 1.0.10
pwh has joined #ruby
lukec has joined #ruby
simono_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> sqlnoob: note that version is 3 years old, maybe reconsider that tool
simono has joined #ruby
<sqlnoob> hmm thanks for the information. What's bundler particularly used for? If it does not affect anything, I could change version in Gemfile
<jhass> it installs the gems in the Gemfile
<jhass> and makes sure only those versions are loaded
Testy-Bot has quit [Remote host closed the connection]
sambao21 has joined #ruby
<sqlnoob> I'm getting this error when I type bundler. https://gist.github.com/anonymous/09fc40200b62a2586c20
<sqlnoob> Any idea why is this happening
<sqlnoob> I installed bundler already
<sqlnoob> however, this error is being echoed
slawrence has joined #ruby
Testy-Bot has joined #ruby
<jhass> sqlnoob: it's probably because you installed RVM as root
<sqlnoob> oh I guess its bundle
<sqlnoob> yep I installed rvm as a root user
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sqlnoob> any workaround for this or should I do with non-root user?
<jhass> maintaining a root RVM installation is hard, you should know what you're doing if you're going that way
<jhass> yep, I'd get rid of the rvm installation and redo as normal user
<jhass> never work with root unless you can explain why it doesn't work as normal user
yfeldblum has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
<sqlnoob> thanks for the tips jhass
einarj has joined #ruby
r_rios has joined #ruby
claymore has quit [Quit: Leaving]
sambao21 has quit [Ping timeout: 255 seconds]
havenwood has joined #ruby
nath_schwarz has joined #ruby
<nath_schwarz> Hi everyone, method overload isn't possible in ruby, is it? The only equivalent would be *val, nor?
jason_ has quit [Remote host closed the connection]
<jhass> nath_schwarz: method overloading in the classic sense comes from the need to differentiate argument types
arianit has quit [Remote host closed the connection]
jason__ has joined #ruby
<jhass> this need is very rare in ruby
<jhass> if you have that need there's most likely a nicer way to solve your problem
<jhass> (I'm ignoring the pattern matching stuff functional languages do here)
<Jamo> you can somehow get around it by using the hash syntax and merging it with default values, or with named parameters
<nath_schwarz> jhass: Well, I'm assimilating ruby as my third language and it would be nice to overload methods for oop. But it's not necessary
dseitz has joined #ruby
<jhass> I'd call method overloading a concept of statically typed languages, not of oop
<jhass> ruby is very oop language
<nath_schwarz> I will just go without it, method overload was always a more nasty thing
<Jamo> btw you can also have default values for params..
<nath_schwarz> I always put it to oop since I didn't need it on other types
bobert is now known as Justi
<Jamo> like def say_hi(name="john doe")...
snath has quit [Ping timeout: 240 seconds]
abdulsattar has quit [Ping timeout: 255 seconds]
<nath_schwarz> Jamo: Didn't know that, that's very useful, thanks!
jason__ has quit [Ping timeout: 265 seconds]
<nath_schwarz> So far I like ruby very much. I'm excited how I'll get along with rails.
<jhass> nath_schwarz: mayb read through http://ruby-doc.org/core-2.1.1/doc/syntax/methods_rdoc.html
bahar has quit [Ping timeout: 265 seconds]
<nath_schwarz> jhass: I'm currently going through techotopias introduction to ruby
rvraghav93 has quit [Ping timeout: 268 seconds]
bahar has joined #ruby
sdouglas has joined #ruby
jason__ has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
Testy-Bot has quit [Remote host closed the connection]
sambao21 has joined #ruby
Testy-Bot has joined #ruby
peta__ has joined #ruby
rvraghav93 has joined #ruby
_sambao21 has joined #ruby
sdouglas has quit [Ping timeout: 265 seconds]
sepp2k has quit [Quit: Leaving.]
arietis has quit [Quit: Computer has gone to sleep.]
freerobby has joined #ruby
sambao21 has quit [Ping timeout: 255 seconds]
kitak_ has quit [Remote host closed the connection]
cashnguns has quit [Read error: Operation timed out]
kitak has joined #ruby
dx7 has quit [Remote host closed the connection]
dx7 has joined #ruby
_sambao21 has quit [Quit: Computer has gone to sleep.]
Hanmac1 has joined #ruby
freerobby has quit [Ping timeout: 264 seconds]
evenix has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 252 seconds]
carraroj has joined #ruby
michael_lee has quit [Quit: Ex-Chat]
dx7 has quit [Ping timeout: 265 seconds]
rahult is now known as rahult_
rahult_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bruno- has joined #ruby
freerobby has joined #ruby
skammer has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby1 has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
r0nin has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
enebo has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
bahar has quit [Ping timeout: 240 seconds]
<benzrf> Mon_Ouie: hey
dangermouse has joined #ruby
Angelous has quit [Ping timeout: 240 seconds]
linojon has quit [Quit: linojon]
bahar has joined #ruby
<Mon_Ouie> benzrf: Hey
montyboy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kirun has joined #ruby
<Hanmac1> Jamo: fun thing what you can do in ruby with default args def meth(name, type = raise "you forgot the type parameter"); end ;P
mr_snowf1ake has joined #ruby
Hanmac1 is now known as Hanmac
<benzrf> Mon_Ouie: i made a pull request
<benzrf> Mon_Ouie: also did u see my memo
petey has joined #ruby
Angelous has joined #ruby
r0nin has quit []
<Mon_Ouie> Now I have
<benzrf> cool
<Mon_Ouie> I don't really have time to check things right now though, probably tomorrow
<benzrf> the PR is pretty tiny
sqlnoob has quit [Ping timeout: 255 seconds]
<benzrf> it just moves '@client.wait' into run
<jhass> Hanmac: why you're so evil?
<benzrf> so that Server#initialize doesnt block
<Hanmac> jhass: because in ruby i can ;P
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bluOxigen has joined #ruby
<benzrf> i kinda need that for Quick and id rather not add a tiny extension file just to fix that
<benzrf> so if you could accept the PR and do a quick gem build/push i would seriously appreciate it
<benzrf> :u
spyderman4g63 has quit [Remote host closed the connection]
flak has joined #ruby
sski has quit [Remote host closed the connection]
AlexRussia___ has joined #ruby
flak is now known as Guest48629
sski has joined #ruby
spyderman4g63 has joined #ruby
<jhass> benzrf: you can use bundler and pull it in via github: 'benzrf/pry-remote', branch: 'whatever' :P
AlexRussia has quit [Read error: Connection reset by peer]
abdulsattar has joined #ruby
<benzrf> hmmm
<benzrf> i dont feel like keeping it updated though o-o
petey has quit [Ping timeout: 240 seconds]
AlexRussia___ is now known as AlexRussia
maletor has joined #ruby
<jhass> nah, you'd switch back once your fix is released
<segv> On a sunday might be tough
<benzrf> kk =[
nshbrown has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fabrice31 has joined #ruby
<benzrf> how do i bundler a github
rippa has quit [Ping timeout: 252 seconds]
dangermouse has left #ruby [#ruby]
<benzrf> hmm
<jhass> hm, doesn't mention the github shortcut interestingly
<jhass> so instead of git: '...' you can do github: 'user/repo'
<jhass> the other params work the same
<Mon_Ouie> You can also just install a gem from the *.gem file (and I'll probably stop to read now)
<benzrf> kk
UserNameInvalid has joined #ruby
<jhass> oh, it does mention it as last example in the first section
spyderman4g63 has quit [Ping timeout: 265 seconds]
sski has quit [Ping timeout: 264 seconds]
<jhass> benzrf: reads the second section to, might be a viable alternative for you
DouweM has quit [Read error: Connection reset by peer]
<benzrf> jhass: like with a submodule?
carif has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
<jhass> hm, no to point to a git submodule I'd use path
Dukalis has joined #ruby
Xeago has quit [Remote host closed the connection]
<cherry_lin> пок
<cherry_lin> кок
Dukalis has quit [Remote host closed the connection]
yfeldblum has joined #ruby
elaptics is now known as elaptics`away
crystal77 has joined #ruby
peterhellberg has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
fflush_ has joined #ruby
<fflush_> bonjour
Guest____ has joined #ruby
fflush__ has quit [Quit: leaving]
chipotle has joined #ruby
timonv has quit [Remote host closed the connection]
fflush has quit [Disconnected by services]
Guest____ has quit [Client Quit]
fflush_ is now known as fflush
fflush has quit [Changing host]
fflush has joined #ruby
Elico has joined #ruby
tjr9898 has quit [Read error: Connection reset by peer]
ktosiek_ has joined #ruby
<Elico> i' having trouble running moneta on ubuntu 12.04. I can install moneta but I cannot seem to use it.
tjr9898 has joined #ruby
thesheff17_ has joined #ruby
chris_thomson has joined #ruby
sdouglas has joined #ruby
Guest____ has joined #ruby
Guest____ has quit [Max SendQ exceeded]
<jhass> elico: I doubt it says "you cannot use me" to you
ktosiek has quit [Ping timeout: 240 seconds]
thesheff17 has quit [Ping timeout: 240 seconds]
<Elico> jhass: it will not even return true to a require "moneta" statment
<jhass> but false?
<Elico> no an error
<Hanmac> returning false is okay, that means it was already required
<jhass> elico: you do realize we don't see your screen?
<Elico> I can try to describe just a sec
Geniack has quit [Remote host closed the connection]
thesheff17_ is now known as thesheff17
<Elico> I managed to install it maually and it now returns require "moneta" with true
Geniack has joined #ruby
chrisseaton has joined #ruby
ktosiek_ has quit [Ping timeout: 268 seconds]
<Elico> now it states "NoMethodError: undefined method `new' for Moneta:Module"
enebo has quit [Quit: enebo]
sdouglas has quit [Ping timeout: 240 seconds]
teddyp1cker has joined #ruby
<Elico> when I run the basic line "store = Moneta.new(:File, :dir => 'moneta')"
abdulsattar has quit [Remote host closed the connection]
<jhass> what do you mean by "install manually"? what was the error you're getting before that?
klaut has quit [Remote host closed the connection]
<Elico> I have tried to install the gem using "gem install moneta" and it stated an error.
<jhass> well, you should've come with that error to us already if you don't understand it
<Elico> ok so let's start from 0
Testy-Bot has quit [Quit: !]
<AlexRussia> shevy: hey, man
<shevy> wat
rvraghav93_ has joined #ruby
<AlexRussia> shevy: http://static.comicsia.ru/i/67/e0-26592.jpeg only english :P
Testy-Bot has joined #ruby
mercwithamouth has joined #ruby
supermarin has joined #ruby
kobain has joined #ruby
rvraghav93 has quit [Ping timeout: 268 seconds]
teddyp1cker has quit [Ping timeout: 268 seconds]
<mr_snowf1ake> elico, take the error and copy paste it into a gist. link us to the gist.
<Elico> mr_snowf1ake: is this pastebin ok?
kennym has quit [Quit: Leaving.]
<mr_snowf1ake> yup :)
fflush has quit [Quit: fflush]
rrios has joined #ruby
<mr_snowf1ake> oo 1.8
<Elico> this is ubuntu 12.04
<mr_snowf1ake> any reason you're using ruby 1.8 apart from that?
<jhass> and working as root?
<mr_snowf1ake> ^ that's another good q
<mr_snowf1ake> elico, would recommend rvm
<jhass> since moneta dropped ruby 1.8 support
<Elico> ho OK now it's explains couple things.
<Elico> ok so rvm it is I forgot it even existed :(
<mr_snowf1ake> elico: https://rvm.io/
<jhass> elico: make sure to not install rvm as root!
<benzrf> hmm should i get rvm or chruby or rbenv
sski has joined #ruby
<shevy> real men use the source
<havenwood> benzrf: chruby
<jhass> benzrf: throw a dice
<benzrf> havenwood: why
<havenwood> elico: if you're really going to use just one Ruby, ruby-install to /usr/local
r_rios has quit [Ping timeout: 255 seconds]
<jhass> havenwood: elico nah, that makes it harder to cleanly upgrade / get rid of it
<benzrf> o wai
<benzrf> i wanna be able to install also
<benzrf> rvm then
<benzrf> o;
<havenwood> benzrf: you don't need RVM hand-holding, and chruby just works without having to use shims
<havenwood> benzrf: ruby-install + chruby
rvraghav93 has joined #ruby
<benzrf> kk
<havenwood> benzrf: one thing, one thing well
<jhass> benzrf: there's ruby-build too
<benzrf> gem?
erobtom has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
<havenwood> benzrf: naw, in bash in case you don't already have a Ruby installed
rvraghav93_ has quit [Ping timeout: 265 seconds]
Mon_Ouie has quit [Ping timeout: 255 seconds]
<benzrf> what about rbenv
eynj has joined #ruby
<havenwood> benzrf: uses shims, have to reshim all the time, more complex
<benzrf> kk
<havenwood> benzrf: but also works
<mr_snowf1ake> there are pros and cons to each. to each his own.
<jhass> benzrf: as said throw a dice. if you really worry try all approaches and keep what you like
<benzrf> gem install chruby fails
<havenwood> benzrf: not a gem
<benzrf> /usr/local/bin/ruby-install: line 39: Configuration of failed!: command not found
<benzrf> oh wait
Testy-Bot has left #ruby [#ruby]
<jhass> there's even the possibility to use rvm as installer & chruby as switcher
<benzrf> kk
sski has quit [Ping timeout: 255 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
<erobtom> Hey, I need a small help for ruby in puppet. I need a loop through a list of hostnames but for each hostname I need to print it’s ID [ 0, 1, 2, …]. For now I have something like this:
<benzrf> alright, i already had system ruby from my pacman
<erobtom> <% @hostnames.each do |hostname| -%>
<mr_snowf1ake> benzrf: tho havenwood is strongly pushing chruby, it doesn't really matter that much which one you use. they all do their job well.
<benzrf> *pkg manager, not on arch
<erobtom> <%= i++ %> <%= hostname %>
<mr_snowf1ake> benzrf, don't worry about the system ruby.
<erobtom> <% end -%>
<mr_snowf1ake> benzrf, just leave it be
<benzrf> erobtom: ruby does not have ++
<benzrf> erobtom: use +=
<erobtom> :(
Xeago has joined #ruby
toastynerd has joined #ruby
<mr_snowf1ake> erobtom, use i += 1
<erobtom> Do I need decalre i as 0 before the loop ?
<jhass> error404: each_with_index do |hostname, i|
<benzrf> erobtom: anyway the correct solution is to use each_with_index do |hostname, ItSANgo |
<benzrf> *i not ItSANgo
dangerousdave has joined #ruby
<jhass> er, erobtom ^, sorry error404
slopjong has joined #ruby
<mr_snowf1ake> erobtom, as jhass said, each_with_index. sry, i didn't see you were using it as an index.
mrnugget has joined #ruby
<erobtom> ok
<erobtom> so it will be:
<erobtom> <% @hostnames. each_with_index do |hostname, i| -%>
<erobtom> <%= i %> <%= hostname %>
<erobtom> <% end -%>
<benzrf> sure
<benzrf> erobtom: why not just an ol to
<benzrf> *tho
<havenwood> mr_snowf1ake: rbenv user?
<jhass> benzrf: oh, you're on arch? consider my approach: chruby + (my) ruby packages from the AUR
<benzrf> jhass: no im on unutu
<mr_snowf1ake> havenwood: i just use rvm out of habit
<benzrf> *ubuntu
<benzrf> 12:21 < benzrf> *pkg manager, not on arch
<benzrf> i referred to apt as 'my pacman'
<erobtom> Guys, thanks for you HELP !!!
<benzrf> then realized that could sound confusing
TigerWolf has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
* Hanmac is on ubuntu but a bloody stupid nightly user
<erobtom> you save my Sunday at work !!!
<jhass> benzrf: okay, didn't read far enough :P
<mr_snowf1ake> erobtom: you're welcome :)
<benzrf> erobtom: why not use <ol>
<erobtom> <ol> ?
<benzrf> ordered list tag
<benzrf> then <li> inside
<benzrf> <ol><li>thing</li><li>other thing</li></ol>
dx7 has joined #ruby
AlexRussia has quit [Read error: Connection reset by peer]
<erobtom> I will try both see which one work under Puppet
<benzrf> oh wait
<benzrf> erobtom: sorry i thought you were making html
<benzrf> erobtom: nvm
<mr_snowf1ake> benzrf: is your q about whether you should get rid of the system ruby before installing other rubys?
<benzrf> well
<benzrf> im just asking how it will interact with chruby
<Elico> mr_snowf1ake: it works now. thanks
<benzrf> i have a shitload of gems installed >.>
<mr_snowf1ake> elico: good to hear
<erobtom> Yes, I think html tagas under puppet won't work well
<havenwood> benzrf: `chruby system` to go back to system Ruby
<benzrf> aha
<erobtom> anyway, thanks again !
<mr_snowf1ake> benzrf, you can have them concurrent
AlexRussia has joined #ruby
<Hanmac> havenwood: do you like Fantasy Books? did you read TerryPratchett? What is your Opinion about "Bloody Stupid Johnson" ? ;P
chipotle has quit [Remote host closed the connection]
<benzrf> Hanmac: discworld-five o/
<jhass> benzrf: rvm? http://rvm.io/workflow/chruby
<havenwood> mr_snowf1ake: RVM is nice for those not conformable with unix or if you need to install old Rubies on old systems, it has the patches and funky stuff.
chipotle has joined #ruby
<havenwood> mr_snowf1ake: looked at RVM2 at all?
<havenwood> conformable, lol
<havenwood> i need more coffee
<benzrf> i only have chruby-exec
<benzrf> no chruby o-O
<jhass> you did source /usr/.../chruby.sh ?
<Hanmac> benzrf: \o i think i found an image of the Busar wearing a "you dont need to be crazy to work there but it helps"-Tshirt ;P
bawNg has quit [Ping timeout: 265 seconds]
<benzrf> oh shit
<Elico> I have another question.
<Elico> I have seen in the past something like a transformer that connects to multiple backends together to allow caching. was it moneta?
<havenwood> Hanmac: andrewvos recommended discworld too, now i've really got to read it!
<benzrf> havenwood: god damn
<havenwood> Hanmac: nope, not familiar but will be soon
<benzrf> read it already jesus
weeb1e has quit [Ping timeout: 264 seconds]
<havenwood> :)
<Hanmac> havenwood: you need to start fast or he writes "YetAnotherBook" ;P
<benzrf> Hanmac: 2late
<benzrf> another one came out about a week ago
bruno- has quit [Ping timeout: 255 seconds]
jamto11_ has joined #ruby
x77686d has joined #ruby
dx7 has quit [Ping timeout: 265 seconds]
Xeago has quit [Ping timeout: 252 seconds]
<benzrf> havenwood: read em in publishing order imo
<benzrf> actually
kitak has quit [Remote host closed the connection]
<benzrf> read guards guards first to get a taste for it
<benzrf> then read in chrono order
<Hanmac> ! i think i didnt bought it yet (i buy the books twice, once in english and then again in my own language (german))
jamto11 has quit [Remote host closed the connection]
kitak has joined #ruby
toastynerd has quit [Remote host closed the connection]
<mr_snowf1ake> havenwood: actually, i haven't really looked. you're right tho, i might be better off with something else just because i like having fairly close control over my system, and i also build a lot of the versions of ruby i have from source
AlexRussia has quit [Ping timeout: 255 seconds]
UserNameInvalid has quit [Ping timeout: 240 seconds]
cashnguns has joined #ruby
<Hanmac> havenwood: let me google it for oyu: http://amigadave.com/discworld/discworld_reading_order.png
bawNg has joined #ruby
<benzrf> Hanmac no
<benzrf> just read em in publishing order
<havenwood> benzrf: looks like i've got a *lot* of reading to do...
jamto11_ has quit [Ping timeout: 252 seconds]
weeb1e has joined #ruby
<benzrf> havenwood: there are 40 atmosx
<benzrf> *atm
<benzrf> havenwood: soon you will be HAPPY for that
<benzrf> ok why is 'chruby' not a command i can use
<Hanmac> havenwood & benzrf "and that isnt even my final form"-joke ... that linked reading guide isnt even complete ;D ... i think he wrote so many books to anoy the reading guide makers ;P
<jhass> benzrf: because it needs to affect the environment of your shell and a process spawned from a process can't affect the environment of it's parent
<benzrf> wut
<benzrf> oh
<benzrf> jhass: what do i do
<jhass> oh, you still didn't source chruby.sh?
<benzrf> ahuman:
<benzrf> *ah
<jhass> I thought you ask why you have to
<benzrf> i failed to notice this suggestion
<benzrf> >.>
<benzrf> no
<jhass> btw. do you press tab after every letter or...
<benzrf> uhhhh
<benzrf> maybe
<shevy> haha
<benzrf> im fidgety -.-
<shevy> get a better IRC client man
<benzrf> =[
enebo has joined #ruby
<benzrf> chruby auto handles my binaries right
<benzrf> i.e. chruby jruby && gem will be jruby gem
<havenwood> benzrf: yup yup
phansch has quit [Quit: WeeChat 0.4.2]
<benzrf> sweet
consti has joined #ruby
<consti> Hi! Is there any way to have an object, set some attr_accessor and then return the object (and return nil, if object is nil), in one line?
* consti Something like this (using ActiveRecord from Rails in that case, but that's not important):Object.all.first.send(:my_accessor=, other_my_accessor).return_the_object
<consti> Something like this (using ActiveRecord from Rails in that case, but that's not important): Object.all.first.send(:my_accessor=, other_my_accessor).return_the_object
absolutezeroff has joined #ruby
momomomomo has joined #ruby
<benzrf> ERROR: Could not find a valid gem 'mirah' (>= 0), here is why: Found mirah (0.1.2), but was for platform java
<benzrf> wat
tkuchiki has quit [Ping timeout: 255 seconds]
<benzrf> my current gem IS jruby
<benzrf> *gem binary
<Hanmac> benzrf: so jruby and java are finally incompatible ? ;P
<benzrf> D=
<benzrf> ah wait
<benzrf> i see, i was using sudo
<benzrf> derp derp
<mr_snowf1ake> lol
<mr_snowf1ake> that would do it.
<mr_snowf1ake> so you were trying to install onto system ruby?
slopjong has quit [Ping timeout: 245 seconds]
<jhass> consti: I think you want Object#tap
<benzrf> >tfw java takes for-fuckin-ever to start
<consti> jhass: ah right.. I used that somewhere but forgot ;) thanks!
<jhass> benzrf: you're on java 8 yet? they got lambdas! :D
<benzrf> so ive heard o.O
<benzrf> g2g tho :I
<benzrf> bbloom:
<benzrf> *bbl
<bbloom> benzrf: that's the third time you've done that
framling has joined #ruby
<bbloom> benzrf: easy on the tag completion!
benzrf is now known as benzrf|offline
<bbloom> s/tag/tab
einarj has quit [Remote host closed the connection]
yfeldblum has joined #ruby
heftig has quit [Quit: Quitting]
oo_ has joined #ruby
lambo has joined #ruby
Cache_Money has joined #ruby
arietis has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
Xeago has joined #ruby
r_rios has joined #ruby
oo_ has quit [Ping timeout: 255 seconds]
hfp is now known as hfp`away
jamto11 has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
jespada has quit [Read error: Operation timed out]
rrios has quit [Ping timeout: 255 seconds]
UserNameInvalid has joined #ruby
<lambo> why cant I see whats going on there ? msg me plz
<Xeago> Hanmac: why not debian or openbsd
<lambo> why cant I see whats going on there ? msg me plz
<crome> lambo: we cant msg you as we don't see what you write
ktosiek has joined #ruby
<lambo> why nobody speeks , need i do something else than the || past 3 line stuff?
consti has quit [Quit: Linkinus - http://linkinus.com]
jamto11 has quit [Ping timeout: 265 seconds]
snath has joined #ruby
arubin has joined #ruby
<jhass> lambo: we see your messages just fine
<lambo> xD i dont see yours omh
<lambo> *g
<jhass> how can you respond then?
<lambo> ok i see just nobody was speeking x
<lambo> my mistake
prs has quit [Ping timeout: 260 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
timonv has joined #ruby
prs has joined #ruby
fflush has joined #ruby
Bumptious has quit [Remote host closed the connection]
Bumptious has joined #ruby
<lambo> ^^ well I was wondering I m reading the dRuby book snipset and I got trouble with using Queue instance from DRbObject : segmentation fault when deq empty Queue or enq SizedQueue
<jhass> provide a minimal example reproducing your problem
quatron has joined #ruby
wallerdev has joined #ruby
greggroth has joined #ruby
Justi is now known as bobert
<lambo> q = Queue.new; DRb.start_service(uri, q) then from "client" side there = DRbObject.new_with_uri(uri); and as soon ass the queue is empty or full in case ok SizedQueue instande of locking it crash (it works fine until the caller thread is supposed to lock)
sepp2k has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
mary5030 has joined #ruby
oo_ has joined #ruby
amclain has joined #ruby
<lambo> as soon as I deq an empty remote queue or enq a full one I got a segmentation fault
peta__ has quit [Quit: peta__]
<havenwood> lambo: what version of Ruby are you on?
<jhass> lambo: can't reproduce on 2.1.1
keppy has quit [Ping timeout: 255 seconds]
<havenwood> lambo: my suspicion would be it might work in 2.0.0 and 2.1.1, just not 2.1.0
timonv has quit [Remote host closed the connection]
prs has quit [Ping timeout: 260 seconds]
evenix has joined #ruby
oo_ has quit [Ping timeout: 265 seconds]
prs has joined #ruby
<jhass> lambo: no need for query, yes I mean it works fine with my 2.1.1, inside pry even
rvraghav93 has quit [Ping timeout: 265 seconds]
<jhass> I didn't test any of my other rubies
prs has quit [Ping timeout: 260 seconds]
TripTastic has joined #ruby
Xeago has quit [Remote host closed the connection]
pabloh has joined #ruby
IceDragon has quit [Ping timeout: 252 seconds]
fflush has quit [Quit: fflush]
IceDragon has joined #ruby
wallerdev has quit [Quit: wallerdev]
jamto11 has joined #ruby
Nss has quit [Remote host closed the connection]
crystal77 has quit [Quit: Computer has gone to sleep.]
CaptainJet has joined #ruby
<lambo> havenwood told me that too so its all good :)
prs has joined #ruby
nolic has quit [Remote host closed the connection]
<lambo> anyway thanks cu
lambo has quit [Quit: leaving]
fabrice31 has joined #ruby
keppy has joined #ruby
bobert has quit []
cj3kim has joined #ruby
timonv has joined #ruby
jamto11 has quit [Ping timeout: 255 seconds]
cj3kim has quit [Remote host closed the connection]
Briareos1 has joined #ruby
greggroth has quit [Ping timeout: 255 seconds]
fabrice31 has quit [Ping timeout: 240 seconds]
yacks has quit [Ping timeout: 268 seconds]
x77686d has quit [Quit: x77686d]
mary5030 has quit [Remote host closed the connection]
browndawg has left #ruby [#ruby]
petey has joined #ruby
mary5030 has joined #ruby
justinxreese has quit [Ping timeout: 246 seconds]
petey has quit [Read error: Connection reset by peer]
petey has joined #ruby
mfkp has joined #ruby
justinxreese has joined #ruby
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
spyderman4g63 has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
gancl has quit [Ping timeout: 255 seconds]
sqlnoob has joined #ruby
<sqlnoob> I'm trying to run an app but getting this issue: https://gist.github.com/anonymous/f10630f6232b2042eebf can anyone let identify whats going on? thanks
AlexRussia has joined #ruby
x77686d has joined #ruby
spyderman4g63 has quit [Ping timeout: 240 seconds]
tylersmith has joined #ruby
<havenwood> sqlnoob: ruby-1.9.1-p431 is quite ancient, any chance you could go to 2.1.1, 2.0 or 1.9?
Briareos1_ has joined #ruby
<sqlnoob> havenwood: I'm working on a legacy app so have to live with it :(
<havenwood> sqlnoob: :O
bruno- has joined #ruby
<havenwood> sqlnoob: try asking in #rvm, maybe mpapis is around
decoponio has quit [Quit: Leaving...]
jdguzman has joined #ruby
<sqlnoob> ok thanks havenwood
<Hanmac> "i am still working on a Stone circle so have to live with it" ;P
oo_ has joined #ruby
klaut has joined #ruby
TripTastic has left #ruby ["Leaving"]
yfeldblum has joined #ruby
mrnugget has quit [Quit: mrnugget]
Tamae has quit [Ping timeout: 255 seconds]
yfeldblu_ has joined #ruby
<havenwood> sqlnoob: my guess would be that a `require 'rubygems'` is needed and rubygems-bundler is only requiring < 1.9
AlexRussia__ has joined #ruby
oo_ has quit [Ping timeout: 240 seconds]
yfeldblu_ has quit [Read error: Connection reset by peer]
<sqlnoob> hmm okay should I remove rubygems-bundler?
yfeldblu_ has joined #ruby
<havenwood> sqlnoob: you might want to start an Issue at https://github.com/mpapis/rubygems-bundler/issues, if you're going to be using RVM with 1.9.1.
AlexRussia has quit [Ping timeout: 268 seconds]
<havenwood> sqlnoob: or maybe RVM functions fine without rubygems-bundler, I know it ships with it but i'm not an RVM user
yfeldblum has quit [Ping timeout: 265 seconds]
Xeago has joined #ruby
<sqlnoob> thanks havenwood. I'm still poking through the codes
_2_vi has joined #ruby
<havenwood> sqlnoob: i'd guess RVM works fine if you remove rubygems-bundler, but you'll need to use explicit `bundle exec`.
sambao21 has joined #ruby
reijoslav has quit [Ping timeout: 246 seconds]
mikepack has joined #ruby
yfeldblum has joined #ruby
yfeldblu_ has quit [Ping timeout: 240 seconds]
apeiros has joined #ruby
AlexRussia has joined #ruby
akitada has quit [Quit: Connection closed for inactivity]
greggroth has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
_2_vi has quit [Quit: WhatsChat IRC Android APP]
AlexRussia__ has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
reijoslav has joined #ruby
AlexRussia has quit [Client Quit]
Bounga has quit [Quit: Bounga]
Celm has joined #ruby
grayWolf has joined #ruby
AlexRussia has joined #ruby
<havenwood> sqlnoob: maybe try a `gem uninstall rubygems-bundler && rvm get latest --without-gems="rubygems-bundler"`
Speed is now known as Guest6945
grayWolf is now known as Speed
Guest6945 has quit [Ping timeout: 265 seconds]
Nyyx has quit [Ping timeout: 240 seconds]
cashnguns has quit [Ping timeout: 268 seconds]
greggroth has quit [Ping timeout: 240 seconds]
<Hanmac> >> require "date"; "ruby binary is %d days old" % (Date.today - Date.parse(RUBY_RELEASE_DATE))
<eval-in> Hanmac => "ruby binary is 95 days old" (https://eval.in/128947)
<havenwood> AlexRussia: for sure update libyaml
Celm has quit [Ping timeout: 240 seconds]
dangerousdave has joined #ruby
<jhass> sqlnoob: actually try if a explicit bundle exec helps already
<sqlnoob> hmm okay I hope it helps. time for dinner though
<AlexRussia> havenwood: :)
teddyp1cker has joined #ruby
Avahey_ has joined #ruby
<AlexRussia> >> => "ruby binary is 34 days old"
<eval-in> AlexRussia => /tmp/execpad-1e3135f0225b/source-1e3135f0225b:2: syntax error, unexpected => ... (https://eval.in/128951)
<AlexRussia> :P
mfkp has quit [Remote host closed the connection]
bruno- has quit [Quit: leaving]
<AlexRussia> >> puts "C++ killed me..."
<eval-in> AlexRussia => C++ killed me... ... (https://eval.in/128954)
jottr has joined #ruby
mfkp has joined #ruby
dx7 has joined #ruby
pabloh has quit [Remote host closed the connection]
teddyp1cker has quit [Ping timeout: 265 seconds]
brunops has joined #ruby
timonv has quit [Remote host closed the connection]
mfkp has quit [Remote host closed the connection]
kennym has joined #ruby
dx7 has quit [Ping timeout: 264 seconds]
bklane has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
skaflem has quit [Quit: Leaving]
wallerdev has joined #ruby
GGalizzi has joined #ruby
fflush has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
freerobby1 has quit [Quit: Leaving.]
GGalizzi has quit [Client Quit]
x1337807x has joined #ruby
_justin has joined #ruby
bahar has quit [Ping timeout: 265 seconds]
centrx has joined #ruby
mikepack has quit [Remote host closed the connection]
soulcake has quit [Read error: Connection reset by peer]
caustic has quit [Ping timeout: 265 seconds]
bahar has joined #ruby
soulcake has joined #ruby
_justin has quit [Client Quit]
b1nd has quit [Remote host closed the connection]
jamto11_ has joined #ruby
jdguzman has quit [Quit: Textual IRC Client: www.textualapp.com]
jamto11 has joined #ruby
siwica has joined #ruby
beneggett has joined #ruby
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
centrx has quit [Quit: All this computer hacking is making me thirsty]
jamto11_ has quit [Ping timeout: 255 seconds]
hamakn has quit [Remote host closed the connection]
vasilakisFiL has joined #ruby
hamakn has joined #ruby
s3ri0us has joined #ruby
centrx has joined #ruby
fflush has quit [Quit: fflush]
<vasilakisFiL> hi! do you know any library in ruby that imitates the rabbitmq but with minimal requirements? I just need a queue to stack callbacks which I want them to be executed after a specific time...
<centrx> DelayedJob?
<momomomomo> ick dont use delayed job
<momomomomo> :D
<s3ri0us> sidekiq?
<jhass> is that even still maintained?
<momomomomo> just kidding, it doesn’t require any external dependencies,
<jhass> delayjob that is
benzrf|offline is now known as benzrf
<jhass> vasilakisFiL: you could just use a Thread and a Queue
<momomomomo> s3ri0us: sidekiq is for processing jobs; it has a queue to do that, but it’s not just for queing
<s3ri0us> sorry
<vasilakisFiL> and how the callbacks will be called in specific time jhass? by polling ?
<jhass> vasilakisFiL: what does "specific time" even mean?
<vasilakisFiL> in 300 seconds for instance
sepp2k1 has joined #ruby
bahar has quit [Ping timeout: 240 seconds]
aagdbl has joined #ruby
<jhass> are the jobs ordered, that is you'll never push a job onto the queue that should run either sooner or later than the existing ones?
<vasilakisFiL> no they are random
<jhass> if your callbacks are conflict free / atomic you could just spawn threads that sleep for your delay time before doing anything
Doppp has quit [Ping timeout: 255 seconds]
sepp2k has quit [Ping timeout: 240 seconds]
<jhass> combine that with a thread pool if you have lots
bahar has joined #ruby
bklane has quit [Quit: Leaving...]
<vasilakisFiL> hmm yeah ok but I don't think it is very efficient
<jhass> but if you have lots you do should seek for not homebrew solution anyway I guess
<vasilakisFiL> rufus scheduler seems also interesting
vakymal has joined #ruby
<jhass> what's your actual application for this?
<vasilakisFiL> an web email server which also lets the user to send emails after some delay if they want to
sambao21 has joined #ruby
mfkp has joined #ruby
<jhass> that sounds like an excellent job for sidekiq
<jhass> though that requires redis
havenwood has quit []
timonv has joined #ruby
jarray52 has left #ruby [#ruby]
mfkp has quit [Ping timeout: 252 seconds]
Aquilo has quit [Ping timeout: 268 seconds]
blackmesa has joined #ruby
phansch has joined #ruby
_Andres has quit [Read error: Connection reset by peer]
lkba has joined #ruby
rylev has joined #ruby
djbender has joined #ruby
Es0teric has joined #ruby
alexju has joined #ruby
freezey has joined #ruby
dx7 has joined #ruby
claymore has joined #ruby
kennym has quit [Quit: Leaving.]
<shevy> jhass are you using ruby for the www?
<jhass> yup
kennym has joined #ruby
carif has quit [Ping timeout: 265 seconds]
supermarin has quit []
mengu has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> Hanmac I dont quite get it
carif has joined #ruby
Celm has joined #ruby
Slavox is now known as Slavox|AFK
sdouglas has joined #ruby
r_rios has quit [Ping timeout: 265 seconds]
Hanmac1 has joined #ruby
r_rios has joined #ruby
Celm has quit [Ping timeout: 265 seconds]
s3ri0us has quit [Ping timeout: 268 seconds]
s3ri0us has joined #ruby
<momomomomo> Question (the jruby/torquebox channels seem slow this sunday) - anyone here use torquebox?
yfeldblum has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
sdouglas has quit [Ping timeout: 240 seconds]
kennym has quit [Quit: Leaving.]
<shevy> not me
m0s^away is now known as m0s
jkmcrg has joined #ruby
Slavox|AFK is now known as Slavox
nari has quit [Ping timeout: 240 seconds]
<jkmcrg> Hello. Is there any way to access an instance variable that shares a name with another variable’s contents? Like, if @james = ‘asdf’, and var_name = ‘james’, how can I access the contents of @james through var_name?
<shevy> jkmcrg your question is hard to understand
<jkmcrg> Alright, maybe if I show what I have tried.
<jkmcrg> @james = ‘asdf’
<jkmcrg> var_name = ‘james’
<j416> jkmcrg: instance_variable_get("@#{james}")
<jkmcrg> @(eval(var_name)) #should access ‘asdf'?
_Andres has joined #ruby
<j416> aha, your var is var_name
<shevy> you can obtain all these variables via Kernel.local_variables and instance_variables
yfeldblum has quit [Ping timeout: 255 seconds]
<j416> jkmcrg: instance_variable_get("@#{var_name}")
<shevy> once you have the array of both, you can return a subset through a method that gives you back all matches
<shevy> and if there is at least one match, you can continue to obtain the content
<jkmcrg> Woo! Thanks j416 that was it
<j416> yw
<j416> jkmcrg: not sure what you're doing, but you might just want to think through your solution one more time to see if you can't solve it without meta programming. It's not very clean. :)
<jkmcrg> Maybe so, I will weigh my options.
peta_ has joined #ruby
peta__ has joined #ruby
cocotton has joined #ruby
osvico has quit [Read error: Connection reset by peer]
relix has joined #ruby
osvico has joined #ruby
<cocotton> Hey channel! I've been sorting a hash with Hash[myhash.sort] method. But I was wondering, is there a way to select a key and its values and send them to the "end" of the hash? That way, when I'll loop over the hash, I'll get this key and its value last
Guest48629 has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
sdouglas has joined #ruby
peta_ has quit [Ping timeout: 265 seconds]
<shevy> .map{|l|trap(l){$r.stop}
<shevy> almost sinatra code
<shevy> what is $r.stop ?
<jhass> cocotton: you shouldn't rely rely on the order of a hash, while the docs state since 1.9 that hashes are ordered by insertion order it still feels like an implementation side effect
fabrice31 has joined #ruby
<jhass> shevy: isn't $r assigned somewhere?
<shevy> hmm
<shevy> %w( rack tilt date INT TERM ).map {|l|trap(l){$r.stop}
<jhass> Rack::Handler.get("webrick").run(a,Port:$z){|s|$r=s}}
<cocotton> jhass: You are right, I feel the same way
<shevy> ohh
djbender has quit [Read error: Connection reset by peer]
<shevy> interesting
<shevy> why did rack pick $r ?
<jhass> rack didn't
<jhass> almost-sinatra did
<shevy> aha
<shevy> damn minimalism :\
naw has quit [Ping timeout: 265 seconds]
sdouglas has quit [Ping timeout: 268 seconds]
fabrice31 has quit [Ping timeout: 240 seconds]
<benzrf> almost-sinatra?
Aquilo has joined #ruby
<shevy> yeah
<shevy> sinatra in like 999 chars
<benzrf> christ
bahar has quit [Ping timeout: 264 seconds]
r_rios has quit [Ping timeout: 268 seconds]
<benzrf> what the fuck is this
<centrx> Cuba is even smaller
<centrx> Pretty impressive
bahar has joined #ruby
etqqkoiflwhb has joined #ruby
dstynchula has joined #ruby
dstynchula has quit [Client Quit]
<benzrf> im pretty sure cuba is NOT smaller
<shevy> oh man
<shevy> I thought the country Cuba was meant
r_rios has joined #ruby
niftylettuce_ has joined #ruby
agjacome has joined #ruby
keen_ has joined #ruby
freezey has quit [Remote host closed the connection]
Atw has joined #ruby
jpstokes has joined #ruby
reset has joined #ruby
s3ri0us has quit [Ping timeout: 268 seconds]
<jpstokes> I'm working on a ruby only project...no rails...when I install factory_girl I get uninitialized constant error for FactoryGirl...https://www.dropbox.com/s/ki7wb6apxgx66xr/Screenshot%202014-03-30%2014.24.40.png
<jpstokes> Any idea how I fix this problem
freezey has joined #ruby
jarray52 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
brunops has quit [Read error: Connection reset by peer]
vakymal has quit [K-Lined]
magler has joined #ruby
sambao21 has joined #ruby
<canton7> not nearly enough detail
<canton7> I suspect you're trying to use it without requiring it?
<jhass> jpstokes: require factory girl or make sure your spec helper does Bundler.require
luckyruby has joined #ruby
luckyruby has quit [Client Quit]
spyderman4g63 has joined #ruby
<jpstokes> gemfile...i'm just getting started so it's still pretty simple: https://www.dropbox.com/s/rtunndz5idqwgpd/Screenshot%202014-03-30%2014.46.19.png
<jhass> jpstokes: I hold my answer
<jhass> still
<jpstokes> I'll try that jhas
<jhass> also don't share code with screenshots
coffeina has joined #ruby
crystal77 has joined #ruby
<canton7> yeah, you never actually require factory_girl
<toretore> .png
<canton7> the gemfile says what gems should be installed in order for the project to function
<canton7> it doesn't magically include the files you need in the files that need them
<jhass> as said, Bundler.require otoh does
zigomir has quit [Ping timeout: 255 seconds]
<jpstokes> looks like Bundler.require works...thanks
spyderman4g63 has quit [Ping timeout: 240 seconds]
dseitz has joined #ruby
vasilakisFiL has left #ruby ["Konversation terminated!"]
teddyp1cker has joined #ruby
<jhass> jpstokes: time to look up and understand what it does
lw has joined #ruby
<jpstokes> well that works to get rid of the uninitialize constant but it's not finding my definitions...the doc just says to install the gem it didn't say anything about putting require statements in so I'm a bit lost...i'm guess now I need to requirement my factory files
crystal77 has quit [Quit: Computer has gone to sleep.]
<jpstokes> well that works to get rid of the uninitialize constant but it's not finding my definitions...the doc just says to install the gem it didn't say anything about putting require statements in so I'm a bit lost...i'm guess now I need to require my factory files
coffeina has quit [Quit: Wychodzi]
<jhass> that came through the first time
<jpstokes> ^correction
<canton7> this is pretty elementary ruby. most people assume you know the basics
The_NetZ has joined #ruby
<The_NetZ> hey. any way to make extconf.rb produce a debug makefile?
reset has quit [Quit: Leaving...]
<jpstokes> All I've done so far is build simple apps and mostly use rails...now I'm trying to implement some of the gems I've used with rails in a ruby only app...sorry for my ignorances but if the instructions doesn't say to require your files then I don't know
cocotton has quit [Quit: Page closed]
mostlybadfly has quit [Quit: Connection closed for inactivity]
<The_NetZ> dafuq? modruby.net is japanese o.0
teddyp1cker has quit [Remote host closed the connection]
jamto11 has quit [Remote host closed the connection]
popl has joined #ruby
popl has joined #ruby
CaptainJet has quit [Ping timeout: 265 seconds]
dapz has joined #ruby
Nyyx has joined #ruby
CaptainJet has joined #ruby
Czupa has quit [Remote host closed the connection]
AlexRussia has quit [Quit: Konversation terminated!Good bye!]
AlexRussia has joined #ruby
cashnguns has joined #ruby
freezey has quit [Remote host closed the connection]
jamto11 has joined #ruby
vpretzel has quit [Remote host closed the connection]
CaptainJet has quit [Ping timeout: 268 seconds]
CaptainJet has joined #ruby
vpretzel has joined #ruby
gogiel has joined #ruby
freerobby has joined #ruby
jkmcrg has quit [Quit: jkmcrg]
freerobby has quit [Client Quit]
jwingfi has quit [Remote host closed the connection]
Azure has quit [Ping timeout: 240 seconds]
crystal77 has joined #ruby
jwingfi has joined #ruby
sethen has joined #ruby
AlSquire has quit [Read error: Connection reset by peer]
Azure has joined #ruby
AlSquire has joined #ruby
CaptainJet has quit [Ping timeout: 265 seconds]
<shevy> dafuq
<shevy> ruby was written by a japanese dude
<centrx> Have you been living in a cave?
<The_NetZ> shevy: yeah, I know. matz
Azure has quit [Read error: Connection reset by peer]
<shevy> there are many japanese with rather weak english skills, and perhaps they are also lazy so they will default to japanese docu and don't care about english much
<LadyRainicorn>
Azure has joined #ruby
timonv has quit [Remote host closed the connection]
<The_NetZ> just find it funny; I've spoke japanese here and got scolded for it before, and yet a japanese site was linked to me when I joined the channel XD
morenoh149 has joined #ruby
<The_NetZ> I'm having an issue requireing my built shared object; undefined symbol: Init_rect, where rect.so is the library and Rect is the class defined therein.
<The_NetZ> any insight?
keppy has quit [Ping timeout: 265 seconds]
CaptainJet has joined #ruby
sqlnoob has quit [Quit: FOSS enthusiast]
monkegjinni has joined #ruby
itadder has joined #ruby
<dorei> The_NetZ: try nm rect.so | grep Init_rect so as to be sure that the symbol really exists in rect.so
<The_NetZ> dorei: will do
jackneill has quit [Quit: WeeChat 0.4.3]
<dorei> hmm, maybe nm is not the way, also try readelf --syms rect.so | grep Init_rect
<Hanmac1> The_NetZ: did you maybe forgot the ( extern "C" ) part?
<The_NetZ> dorei: thankyou. you pointed me at something I had missed. I am writing in c++, so I checked rbSFML's Init_ methods; and it uses extern "C" before them :P
Hanmac1 is now known as Hanmac
mostlybadfly has joined #ruby
<The_NetZ> I had previously changed Init_rect to Init_Rect for test purposes, and forgot to change it back after adding the extern "C" bit :P
benlieb has joined #ruby
s3ri0us has joined #ruby
<The_NetZ> so, problem solved and extension works :D
<benlieb> I'm trying to do this, which obviously doesn't work. Is there another option without using the ternary? :class => 'on' if is_search_for_request?
<benlieb> I guess I'd have to supply something though, so duh
<benlieb> :class => is_search_for_request? ? 'on' : 'off'
sambao21 has quit [Quit: Computer has gone to sleep.]
<The_NetZ> Hanmac: so, I had extern "C" but forgot to change the name back :P
<shevy> benlieb use a hash there
<shevy> your_hash[:class] = 'on' if is_search_for_request?
<benlieb> shevy: it's in a hash, just didn't didn't want to bother you with the ugly rest :)
<benlieb> %a{:href => services_path({:q => {:kind_eq => :request}}), :class => is_search_for_request? ? 'on' : nil }>
<shevy> god that is ugly
<benlieb> yup
<benlieb> you should see it inside a link_to
<shevy> the trailing >
<shevy> is that erb ?
<benlieb> even uglier
* The_NetZ pops the top on some bubbly
<shevy> it's the reason I can not use erb
<The_NetZ> Yay, made my first ruby library :D
<shevy> it distorts and distracts from the visual beauty
<shevy> The_NetZ good! now make it into a gem
<benlieb> that > is a paste errror
<shevy> (1) add an EXAMPLE file or similar to show how to use your library and (2) write a .gemspec (less than 10 lines it has) and you are ready to go
<The_NetZ> shevy: hehe, already working on the gemspec :P
alexju has quit [Remote host closed the connection]
sambao21 has joined #ruby
<shevy> ok so you have (2) covered
<shevy> don't forget (1)
fflush has joined #ruby
s3ri0us has quit [Ping timeout: 265 seconds]
<shevy> benlieb problem with the ternary is that, as far as if/else conditional are concerned, the ternary solution is already pretty much the shortest way to go
noob101 has joined #ruby
<noob101> Hello, I am a new to the programming world. I decided to become a rubyist.
<shevy> you could try to modify your hash via methods
<shevy> set :on if is_search_for_request?
<benlieb> oh just looked that up, the > is an haml thing that makes the output stay on the line above
<The_NetZ> noob101: join the club :P
<shevy> ewwww
<shevy> evil templates
<shevy> noob101 haven't you been to #ruby before??
alexju has joined #ruby
jamto11_ has joined #ruby
<benzrf> benlieb: there can only be one ben!
<benzrf> i challenge u to a ruby due
<benzrf> l
<shevy> benzrf,
<shevy> benlieb,
<shevy> haha
<shevy> tab completion mastery
<shevy> benzrf please write "benevolent"
<benzrf> benevolent
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> grrr
<shevy> you are supposed to write ben<TAB>
<benzrf> :-D
<benzrf> wrong_ben = IRC.network(:freenode).user(:benlieb); RealWorld.person_from_irc(wrong_ben).stab!
<noob101> I am completing the koans online but I have an issue. I can't see to find out what should go next to "assert_equal". I tried putting in "Nil", "AboutNil", "Neo::Koan" but nothing works. Link -> http://koans.heroku.com/en/about_nil?input%5B%5D=true&input%5B%5D=test_nil_is_an_object&input%5B%5D=ex&input%5B%5D=true&input%5B%5D=&input%5B%5D=
<benzrf> i have won the ruby duel
<benlieb> I lose
jamto11_ has quit [Ping timeout: 265 seconds]
freerobby has joined #ruby
<benlieb> me.surrender(true)
endash_ has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
<jhass> noob101: you're close, easiest way is to fire up irb and enter the second argument to assert_equal
<jhass> noob101: or actually to reproduce the exception and look at it
<noob101> jhass, thank you for helping me. Now I have been working on this all day.
<jhass> noob101: actually the error sort of tells you already:   The answers which you seek:
<jhass>   <nil> expected but was <NoMethodError>.
<noob101> jhass, yes!
dangerousdave has quit [Ping timeout: 268 seconds]
<noob101> jhass, I put that but it says something else.
<jhass> you put what in exactly
<noob101> jhass, then I put in what that said then it said syntax error.
<noob101> Ok, give me a second please.
ToTheInternet has joined #ruby
<noob101> jhass, it said "expected to be <NoMethodError> right?
<noob101> I put that in and got this message => "<"undefined method `some_method_nil_doesnt_know_about' for nil:NilClass"> expected to be =~ </ex/>."
<jhass> noob101: you provide what to expect, not what's actually there
<noob101> jhass, when I got that message I put in ex, </ex/> and /ex/.
<jhass> noob101: the first argument to assert_equal is what to expect, the second is what's it actually is
<shevy> <ex><girlfriend>
<noob101> I am so confused. I am sorry jhass.
<ToTheInternet> hi. i'm getting this passenger error from my redmine installation: http://paste2.org/GDOZwKvV anyone have an idea how to fix it?
peterhellberg has quit []
<jhass> ToTheInternet: make sure the ruby your passenger runs under has bundler installed
supermarin has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
supermar_ has joined #ruby
supermar_ has quit [Client Quit]
skammer has joined #ruby
<ToTheInternet> jhass: cool.. that was easy lol. now i'm getting a different error, but thanks for now hehe :)
<noob101> Ok jhass, can you please explain to me <NoMethodError>? I actually put in that. I was told to put in a ruby class, is that correct?
Galgorth has joined #ruby
relix has joined #ruby
<jhass> noob101: yes, in particular it's a ruby class used by ruby to tell you that you called a method that doesn't exist
<noob101> jhass, is it Nil?
<jhass> no
alexju has quit [Remote host closed the connection]
<noob101> Dang it.
<jhass> Nil doesn't exist (unless you define it)
<jhass> nil is an object to represent something not there
<jhass> nil.class is NilClass
sski has joined #ruby
<noob101> jhass, right. Am I close by any chance?
<jhass> close to what?
<The_NetZ> jhass: its the sound of one hand clapping
<noob101> jhass, solving the problem, putting in a correct answer.
<jhass> <NoMethodError> was very close
<jhass> just make sure it's actually a Ruby class and not something you copy pasted from an error message that might have additional formatting
freerobby has quit [Quit: Leaving.]
s3ri0us has joined #ruby
<noob101> jhass, hm. NoMethodError, I will search that up on the internet. Thank you for helping me, I really appreciate it a lot. I am 16 by the way, I am trying to learn programming.
jdjd_ has joined #ruby
<jdjd_> So, I started learning ruby a bit ago, starting last summer.
<jdjd_> I went through a course that walked through building a gem, then am about to finish some rspec puzzles soon.
<jdjd_> I also took some courses in college when I went back, learned java in that. But had to stop because I couldnt afford a second degree after a year.
<jdjd_> After these puzzles, I really want something to have fun with.
<jdjd_> I want to build stuff.
<jdjd_> Make things.
<jdjd_> Does anyone have any ideas of how to make programming fun?
<Elico> is there any rpm for centos for ruby 2.1.1 ?
Naoe-Kanno has joined #ruby
<noob101> That's sad, you couldn't afford it. If I had the money, I would of given it to you. You seem dedicated and driven.
<jdjd_> Programming is fun, but I want stuff to build.
SHyx0rmZ has quit [Ping timeout: 265 seconds]
<jdjd_> Well, I am considering jumping over to android stuff.
<jdjd_> I did a simple app in college.
s3ri0us has quit [Ping timeout: 264 seconds]
<jdjd_> And android is in Java.
<jdjd_> But, IDK if that is a good idae.
<jdjd_> Idk if I should stick with ruby a bit more.
<jdjd_> Or what I should be doing.
<benzrf> jdjd_: jruby is pretty mature afaik
<jhass> jdjd_: do you have something you do regularly to daily? any chance to automate it?
<jhass> or partially automate it
<jdjd_> jhass: I work in the finance industry.
<jdjd_> Not aware of anything I need to automate though.
<jdjd_> Well, there is nothing I can do in work, cause security is so high.
<jdjd_> In personal life there isn't really any thing either.
<jdjd_> I built a new computer though 2 weeks ago, so I have a new computer that can run anything.
<jdjd_> It might be fun to build bots with video games.
<jdjd_> That can fly planes or other stuff.
benlieb has quit [Quit: benlieb]
<jdjd_> Dont know how that would work though.
<jhass> jdjd_: nothing? like a complicated excel spreadsheet you could re-implement? :P
<jhass> another approach is to seek though open source projects you like and find things to contribute
twiceaday has quit [Ping timeout: 265 seconds]
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
momomomomo has quit [Quit: momomomomo]
<jdjd_> I have a minecraft account, haven't played it in 2-3 years though.
<jdjd_> Is there anything I could do in that maybe?
crystal77 has quit [Quit: Computer has gone to sleep.]
twiceaday has joined #ruby
etqqkoiflwhb has joined #ruby
m_3 has joined #ruby
<jhass> uh, maybe, I'm not into the minecraft community
<jhass> I've seen lower semesters here built all kinds of logic gates and what not in minecraft
<jdjd_> Where is here for you?
<jdjd_> I am not a player of minecraft either, it was just an idea.
<jhass> germany, my university
etqqkoiflwhb_ has joined #ruby
etqqkoiflwhb has quit [Ping timeout: 265 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
monsieurp has quit [Quit: Lost terminal]
<benzrf> i minecraft
lolmaus has quit [Read error: Operation timed out]
monsieurp has joined #ruby
lolmaus has joined #ruby
yfeldblum has joined #ruby
quatron has quit [Read error: Connection reset by peer]
<jdjd_> benzrf: I will change my name, one second.
<jdjd_> Be back.
jdjd_ has quit [Quit: Page closed]
jottr has quit [Quit: WeeChat 0.4.2]
firewater has joined #ruby
<firewater> benzrf: Ok back.
<benzrf> sup firewater
<benzrf> oh wait you were firewater
<firewater> good, do you mind if I PM you?
<benzrf> oh shit
CaptainJet has quit [Ping timeout: 245 seconds]
<benzrf> haha
<benzrf> go ahead
bluOxigen has quit [Ping timeout: 265 seconds]
<firewater> yeah, lol.
CaptainJet has joined #ruby
Celm has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
ezrios has quit [Ping timeout: 240 seconds]
CaptainJet has quit [Read error: Connection reset by peer]
phansch has quit [Quit: WeeChat 0.4.2]
peta__ has quit [Quit: peta__]
CaptainJet has joined #ruby
jottr has joined #ruby
snath has quit [Ping timeout: 265 seconds]
Celm has quit [Ping timeout: 265 seconds]
Aquilo has quit [Ping timeout: 265 seconds]
bahar has quit [Ping timeout: 264 seconds]
petey has quit [Remote host closed the connection]
bahar has joined #ruby
aagdbl has quit [Quit: Connection closed for inactivity]
fabrice31 has joined #ruby
cover_ has joined #ruby
ezrios has joined #ruby
sski has quit [Remote host closed the connection]
sski has joined #ruby
ToTheInternet has left #ruby [#ruby]
cover has quit [Ping timeout: 265 seconds]
CaptainJet has quit [Ping timeout: 240 seconds]
fabrice31 has quit [Ping timeout: 264 seconds]
<atmosx> hello
<benzrf> hello atmosx
<benzrf> is that atmos x, or atm osx
<atmosx> benzrf: do you mind if I pm you? lol
snath has joined #ruby
<atmosx> atm_osx
<benzrf> dont mind
aspires has joined #ruby
<atmosx> well it's a FreeBSD but anway, that was the original idea
<atmosx> I mean the client runs on a freebsd
<atmosx> kill it
<atmosx> benzrf: I was j/k
<atmosx> saw the logs above
<benzrf> =p
sski has quit [Ping timeout: 264 seconds]
mercwithamouth has quit [Ping timeout: 264 seconds]
jamto11 has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
sambao21 has joined #ruby
maroloccio has joined #ruby
CaptainJet has joined #ruby
kmfdm_ has joined #ruby
UserNameInvalid has quit [Quit: Leaving]
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
bahar has quit [Ping timeout: 268 seconds]
<benzrf> uh oh pry-remote has some other issues o.o
kitak has quit [Remote host closed the connection]
LadyRainicorn has quit [Quit: Bye]
kitak has joined #ruby
bahar has joined #ruby
sski has joined #ruby
<atmosx> benzrf: pry-remote? whats that?
<atmosx> benzrf: runs pry on a remote host?!
Es0teric has quit [Read error: Connection reset by peer]
<benzrf> ish
mengu has quit [Read error: Connection reset by peer]
mengu has joined #ruby
Es0teric has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
skammer has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bjhaid has joined #ruby
badhatter has quit [Ping timeout: 265 seconds]
mercwithamouth has joined #ruby
keppy has joined #ruby
nisstyre has joined #ruby
derek_c has joined #ruby
njection_ has quit []
monkegjinni has quit [Remote host closed the connection]
cj3kim_ has joined #ruby
sski has quit [Remote host closed the connection]
<atmosx> anyone knows what class should I use (if there's anything ready) to make a boostrap menu horizonal? list-style-type:none; doesn't work.
s3ri0us has joined #ruby
heftig has joined #ruby
spyderman4g63 has joined #ruby
freerobby has joined #ruby
freggles has quit [Remote host closed the connection]
mfkp has joined #ruby
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby
gigetoo has quit [Remote host closed the connection]
kmfdm_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
postmodern has joined #ruby
gigetoo has joined #ruby
spyderman4g63 has quit [Ping timeout: 255 seconds]
freerobby has quit [Ping timeout: 255 seconds]
badhatter has joined #ruby
badhatter has quit [Changing host]
badhatter has joined #ruby
armstrjare has joined #ruby
sambao21 has joined #ruby
tylersmith has quit [Ping timeout: 252 seconds]
enebo has quit [Quit: enebo]
Kryptonical has quit [Ping timeout: 240 seconds]
teddyp1cker has joined #ruby
itadder has quit [Remote host closed the connection]
claymore has quit [Quit: Leaving]
DouweM has joined #ruby
tjr9898 has quit [Remote host closed the connection]
teddyp1cker has quit [Ping timeout: 265 seconds]
<shevy> is it simple to use prawn to generate simple .pdf files?
yfeldblum has joined #ruby
Alina-malina has quit [Ping timeout: 265 seconds]
Alina-malina has joined #ruby
samlt has quit [Ping timeout: 265 seconds]
jason__ has quit [Remote host closed the connection]
Celm has joined #ruby
jason__ has joined #ruby
<arubin> Looks like it.
zachallett has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
malcolmva has quit [Ping timeout: 240 seconds]
kennym has joined #ruby
Celm has quit [Ping timeout: 268 seconds]
jason__ has quit [Remote host closed the connection]
the-undefined has quit [Quit: Connection closed for inactivity]
kennym1 has joined #ruby
youssefeid has joined #ruby
ktosiek has quit [Ping timeout: 255 seconds]
chuk has joined #ruby
<benzrf> holy crap this is buggy >.<
jwingfi has quit [Remote host closed the connection]
SonicX has joined #ruby
jwingfi has joined #ruby
fflush has quit [Quit: fflush]
<lolmaus> I'm trying refinements in IRB 2.1.1 and i receive NoMethodError. Why? https://gist.github.com/lolmaus/9880751
kobain has quit []
chuk has quit [Client Quit]
sski has joined #ruby
gancl has joined #ruby
kennym has quit [Ping timeout: 268 seconds]
youssefeid has quit [Remote host closed the connection]
rahult has joined #ruby
jaywastaken has joined #ruby
zachallett has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
<slawrence> Can anyone suggest a good IDE for ruby / rails? I am messing with Aptana RadRails but it seems unimpressive. I normally use IntelliJ at work along with PHPStorm. My guess is the JetBrains Ruby IDE is probably pretty good but just curious if anything else out there that is OSS might fill the void.
kobain has joined #ruby
<slawrence> Looking for auto-code formatting, auto-completion, drill-downs, refactoring features, syntax check, etc..
greggroth has joined #ruby
gancl has quit [Ping timeout: 264 seconds]
<benzrf> slawrence: why do you need autocompletion
<benzrf> this isnt java
<slawrence> I like my tab button :)
<benzrf> tab is for inserting tab characters
<slawrence> not when your IDE is showing suggestions
sski has quit [Remote host closed the connection]
<benzrf> why do u need suggestions tho
<benzrf> slawrence: just run a pry at the same time as you code
<slawrence> ... ponders what a pry is
<benzrf> sudo gem install pry please
<benzrf> pry is to irb as bash is to sh
<benzrf> use vim for writing code
<benzrf> formatting is mostly built in, drillsdowns and syntax checking can be gotten as plugins
<benzrf> *drilldowns
malcolmva has joined #ruby
<benzrf> i hope you dont need drilldowns tho
firewater has quit [Quit: Page closed]
Aquilo has joined #ruby
<benzrf> keep in mind, ruby is extremely dynamic
<benzrf> very little can be reliably determined without running code
sdouglas has joined #ruby
<benzrf> even something like a drilldown can be difficult to implement depending on what your code is like
<benzrf> what if you override a method in another file?
<benzrf> which one do you want
greggroth has quit [Ping timeout: 240 seconds]
sdouglas has quit [Ping timeout: 246 seconds]
Speed has quit [Ping timeout: 265 seconds]
Alina-malina has quit [Ping timeout: 252 seconds]
Briareos1_ has quit [Remote host closed the connection]
Briareos1 has quit [Remote host closed the connection]
Chronocity has joined #ruby
Alina-malina has joined #ruby
toastynerd has joined #ruby
jason___ has joined #ruby
jamto11 has joined #ruby
enebo has joined #ruby
enebo has quit [Client Quit]
osvico has quit [Ping timeout: 268 seconds]
workmad3 has joined #ruby
osvico has joined #ruby
momomomomo has joined #ruby
Photism_ has joined #ruby
Hanmac1 has joined #ruby
Photism2 has joined #ruby
tylersmith has joined #ruby
jamto11 has quit [Ping timeout: 268 seconds]
Photism has quit [Ping timeout: 255 seconds]
sambao21 has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
Chronocity has quit [Ping timeout: 268 seconds]
kwertie has quit [Ping timeout: 252 seconds]
jxport has quit [Ping timeout: 252 seconds]
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
Photism_ has quit [Ping timeout: 265 seconds]
Doppp has joined #ruby
Doppp has quit [Changing host]
Doppp has joined #ruby
sski has joined #ruby
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
mikecmpbll has quit [Quit: i've nodded off.]
etqqkoiflwhb_ has quit [Quit: Computer has gone to sleep.]
TigerWolf has joined #ruby
spyderman4g63 has joined #ruby
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
jason___ has quit [Remote host closed the connection]
x1337807x has joined #ruby
spyderman4g63 has quit [Client Quit]
kennym has joined #ruby
x1337807x has quit [Max SendQ exceeded]
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
kennym1 has quit [Ping timeout: 268 seconds]
x1337807x has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
chipotle_ has joined #ruby
freerobby has joined #ruby
chipotle has quit [Ping timeout: 265 seconds]
keppy has quit [Quit: leaving]
keppy has joined #ruby
jonaskindler has joined #ruby
jonaskindler has quit [Client Quit]
freerobby has quit [Ping timeout: 240 seconds]
kyb3r_ has joined #ruby
jwingfi has quit [Remote host closed the connection]
jwingfi has joined #ruby
sambao21 has joined #ruby
wallerdev has quit [Quit: wallerdev]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
deadlock has joined #ruby
Shidash has joined #ruby
kennym1 has joined #ruby
cashnguns has quit [Ping timeout: 264 seconds]
<chrisseaton> I've always wondered - Ruby has inline caches, so why can't those inline caches be read and used to provide an indicator to your IDE about what type each variable is, so it can provide tab completion?
sambao21 has quit [Quit: Computer has gone to sleep.]
klaut has quit [Remote host closed the connection]
<DouweM> How could the IDE know the type of a variable without running the entire app?
kennym has quit [Ping timeout: 265 seconds]
<DouweM> Ruby isn't strongly typed anyway, so a variable could contain any type of object depending on numerous factors
kirun has quit [Quit: Client exiting]
kennym1 has quit [Client Quit]
fabrice31 has joined #ruby
<arubin> DouweM: It is not statically typed.
evenix has quit [Remote host closed the connection]
<DouweM> whoops, forgot the right term
chipotle_ has quit [Ping timeout: 265 seconds]
yfeldblum has joined #ruby
supermarin has quit [Quit: Computer has gone to sleep.]
supermarin has joined #ruby
evenix has joined #ruby
yokel has quit [Ping timeout: 252 seconds]
jwingfi has quit [Remote host closed the connection]
supermarin_ has joined #ruby
Musashi1 has joined #ruby
supermarin has quit [Read error: Connection reset by peer]
jwingfi has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
yokel has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
chipotle has joined #ruby
lolmaus has quit [Remote host closed the connection]
<chrisseaton> Yeah, but if you run the program, and then see what ended up in the inline caches, you can guess the types are likely to be the same the next time the program run. If this wasn't true, there wouldn't' be any point in the inline caches.
lolmaus has joined #ruby
<chrisseaton> You would indeed have to run the whole app, I agree.
cyberarm has joined #ruby
<chrisseaton> For the small number of cases where a call site is truly megamorphic, the IDE could tell you that.
kennym has joined #ruby
petey has joined #ruby
itadder has joined #ruby
agrinb_ has joined #ruby
bjhaid has quit [Ping timeout: 255 seconds]
momomomomo has quit [Quit: momomomomo]
siwica has quit [Ping timeout: 255 seconds]
petey has quit [Ping timeout: 265 seconds]
supermarin_ has quit [Quit: Computer has gone to sleep.]
rahult is now known as rahult_
supermarin_ has joined #ruby
The_NetZ has left #ruby ["For a good time, try: 'curl -L http://bit.ly/10hA8iC | bash' ;)"]
chipotle has quit [Quit: cya]
chrisseaton has quit []
rylev has quit [Remote host closed the connection]
spicerack has joined #ruby
siwica has joined #ruby
<agrinb_> building my first rails app and I have this question: I want to create associations. My app will have Users that will have Contacts and those Users will have Comments and Meetings for Contacts. So first I scaffold the Users and Contacts, then I add models for Meetings and Notes migrations, run rake db:migrate and now I'm going to start putting associations in. Or should I've put associations into the migrations?
<shevy> an.rb:444:in `encode': "\xE4" from ASCII-8BIT to UTF-8 (Encoding::UndefinedConversionError)
<shevy> hmm
<shevy> what to do when I have such characters?
rahult_ is now known as rahult
lkba has quit [Ping timeout: 252 seconds]
Speed has joined #ruby
<jhass> agrinb_: #RubyOnRails
chipotle has joined #ruby
cj3kim_ has quit [Remote host closed the connection]
supermarin_ has quit [Ping timeout: 240 seconds]
<agrinb_> also my second time in IRC, and I tried and can't join #rubyonrails
<dorei> shevy: \xe4 in ascii is a with 2 dots above it
peta_ has joined #ruby
<jhass> agrinb_: /msg NickServ help
dkamioka has joined #ruby
<shevy> hmm
toretore has quit [Quit: This computer has gone to sleep]
<dorei> shevy: maybe it aint ascii 8bit
<shevy> yeah
<shevy> it's some ISO encoding
<shevy> prawn requires UTF-8 input
<shevy> afm.rb:100:in `rescue in normalize_encoding': Arguments to text methods must be UTF-8 encoded (Prawn::Errors::IncompatibleStringEncoding)
<shevy> hmm
<dorei> hmm, maybe u need to force_encoding the corect encoding
<dorei> and then try to encode into utf-8
zorak has joined #ruby
dkamioka has quit [Remote host closed the connection]
<Jamo> which ruby version?
mostlybadfly has quit [Quit: Connection closed for inactivity]
niftylettuce_ has quit [Quit: Connection closed for inactivity]
<Jamo> do you mean char like this: ä
deweydb has joined #ruby
kitak has quit [Remote host closed the connection]
<Jamo> adding
<dorei> yeap, this is \xe4 @ ascii 8bit
<Jamo> # coding: utf-8
kitak has joined #ruby
<Jamo> to the file which gives this error
<deweydb> i'm having an issue with bundler. It seems somehow i've managed to install two different versions to two different places. /usr/bin/bundle - v 1.0.15 AND /usr/local/rvm/bin/bundle - 1.6.0
predator217 has joined #ruby
hermanmunster has joined #ruby
<deweydb> how do i get rid of the /usr/bin/bundle one?
<deweydb> and more importantly how do i undo my mess of multiple installations ?
<Jamo> you probably has installed it via system ruby
<jhass> deweydb: rm. while at it get rid of your global RVM and install it as user
<deweydb> it is possible i did that prior to installing rvm
<Jamo> just make sure that your $PATH is set up correctly; it shoulding matter if rvm and its bundler is first
<shevy> what is the proper way to convert into UTF-8?
<shevy> I am trying .force_encoding('UTF-8')
<jhass> deweydb: and stop executing stuff as root unless you know why it wouldn't work otherwise ;)
<shevy> and _.encoding says #<Encoding:UTF-8>
<shevy> but prawn still thinks it is not UTF
<dorei> shevy: i thing force_encoding doesnt reencode
<shevy> hmm
<Jamo> twe are using that helper in our project
eynj has quit [Ping timeout: 255 seconds]
<shevy> cool
<jhass> shevy: dorei said the correct thing, find out your correct source encoding, force_encoding to that and encode to utf-8 afterwards
<shevy> valid_encoding? gives me true once, and false the other time
<agrinb_> thanks jhass
<deweydb> jhass: how to remove rvm?
chipotle_ has joined #ruby
<deweydb> honestly i wouldn't mind getting rid of everything and installing it correctly.
<deweydb> i am having no end of issues.
<Jamo> "rvm implode" or smthing like that
predator117 has quit [Ping timeout: 255 seconds]
<jhass> deweydb: rvmsudo implode, search for traces in your bashrc's etc, rvm is pretty invasive, especially when installed a s root
DrCode has quit [Remote host closed the connection]
<deweydb> thanks
<deweydb> and what about all the gems and stuff that were installed?
<deweydb> should i be torching that stuff too?
<Jamo> what are you doinc when you are getting that encoding error?
peta_ has quit [Quit: peta_]
<Jamo> those gems should be under rvm's folder so those will be deleted
cashnguns has joined #ruby
<Jamo> btw, try rbenv :)
hiall has quit [Quit: hiall]
<jhass> deweydb: if you're back to your system ruby, if the gems where installed with gem install, you can gem list to list them and sudo gem uninstall (or remove? I always forget). But if you have a correct RVM installation, you won't notice them anyhow
chipotle has quit [Ping timeout: 265 seconds]
mfkp has quit []
Lucky_Red has joined #ruby
<deweydb> so should i try to get rid of system ruby as well?
<deweydb> apt-get remove ruby ?
<jhass> not necessarily
<Jamo> I don't see any reason to delete system ruby
<postmodern> system ruby should be your goto default ruby
<shevy> cool
keppy has quit [Ping timeout: 265 seconds]
<shevy> the encoding fix worked
r_rios has quit [Ping timeout: 265 seconds]
chipotle_ has quit [Quit: cya]
mxweas has joined #ruby
mxweas has quit [Client Quit]
<benzrf> hmm
<deweydb> ok thanks guys
sambao21 has joined #ruby
<deweydb> hopefully that helps
<deweydb> i guess originally i installed rvm as root because i was trying to run a gem and it was telling me i had ot be root: "bundle exec bluepill..." but when i did it as root, root couldn't find any of the bundler etc.
<Jamo> umm install rvm as root only if you want to share your ruby installation for multiple users
DrCode has joined #ruby
<Jamo> 8there are just a few usecases for that)
Geniack has quit [Disconnected by services]
Geniack_ has joined #ruby
<jhass> the next time a gem tells you to run something as root come and ask us if you understood it correctly, it's very rare that that's really needed
itadder has quit [Remote host closed the connection]
<deweydb> ok. well i'm about to re-install now
Azure has quit [Ping timeout: 265 seconds]
<Jamo> that usually means that your file permissions are horribly wrong
<deweydb> what is the best way? "\curl -sSL https://get.rvm.io | bash -s stable" ?
<jhass> as your normal user, yes
<deweydb> ok
YamakasY has quit [Read error: Operation timed out]
eynj has joined #ruby
<deweydb> does it matter that my normal user is a different user than my web user? i.e. www-data ?
<deweydb> will www-data still be able to use ruby?
cashnguns has quit [Ping timeout: 265 seconds]
<jhass> hm, no
<Jamo> when installing as normal user, it will install ruby to your home
<jhass> rvm on the server is hard
<Jamo> thus its basically available for just that one user
Photism has joined #ruby
<Jamo> but in this case you should either install it as root
<Jamo> or do smthing smarter :)
<Jamo> rvm has a global install version
<jhass> deweydb: waht do you mean with www-data running ruby? passenger?
<Jamo> where its installed under /etc/
jottr has quit [Ping timeout: 264 seconds]
kimiamania is now known as kimiamania|BNC
jonmorehouse has joined #ruby
<deweydb> sorry, i'm kind of a noob and not explaining myself well. I have a web project, that i run with thin server routing sockets to nginx. the nginx process is run as www-data.
blackmesa has quit [Ping timeout: 265 seconds]
Aquilo has quit [Ping timeout: 252 seconds]
<deweydb> oh, wait, i get it. that doesn't matter.
Photism2 has quit [Ping timeout: 265 seconds]
<deweydb> so as long as i launch thin with my user that has RVM i'm good.
<Jamo> yep
<deweydb> but that's where i ran into a problem, because i use bluepill to spawn thin. and bluepill wants to be run as root.
<benzrf> aaaaauuuuuudhgudfghudfhusduifhsdiufhsdifhsidufh
<Jamo> rvmsudo...
<benzrf> how the fuck do i do this
<benzrf> D:
<deweydb> rvmsudo?
<deweydb> ok. thats probably what i was missing
<deweydb> is that a gem?
freerobby has joined #ruby
Xeago has quit [Remote host closed the connection]
<Jamo> its a rvm feature
<deweydb> so instead of "bundle exec bluepill ... " i'd do "rvmsudo bundle exec bluepill ... " ?
supermarin_ has joined #ruby
kitak has quit [Remote host closed the connection]
itadder has joined #ruby
jwingfi has quit [Remote host closed the connection]
jwingfi has joined #ruby
kitak has joined #ruby
jdjd has joined #ruby
Solnse has joined #ruby
Musashi1 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
aspires has quit []
freerobby has quit [Ping timeout: 252 seconds]
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
supermarin_ has quit [Ping timeout: 268 seconds]
cj3kim_ has joined #ruby
<jdjd> I'm considering learning Java again after learning ruby for almost a year here outside work part time.
<jdjd> How do I keep up with ruby while doing Java again?
<jdjd> I want to learn more than one language.
<jdjd> But dont want to forget evreything I learned too.
<jdjd> And dont have time to do both with a full time job.
<jdjd> How does one do that?
andrewlio has quit [Quit: Leaving.]
Stalkr_ has quit [Quit: Leaving...]
rahult is now known as rahult_
Hanmac has joined #ruby
teddyp1cker has joined #ruby
Hanmac1 has quit [Ping timeout: 240 seconds]
forced_request has quit [Ping timeout: 240 seconds]