apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p194: http://ruby-lang.org || Paste >3 lines of text on gist.github.com || Rails is in #rubyonrails || Log: http://irclog.whitequark.org/ruby
wagle has quit [Remote host closed the connection]
Guest33170 is now known as dhodgkin
Nick____ has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
mikepack_ has quit [Remote host closed the connection]
mattonrails has quit [Remote host closed the connection]
tomb_ has joined #ruby
ianbrandt has quit [Quit: ianbrandt]
hunglin has joined #ruby
ilyam_ has joined #ruby
randomautomator has quit [Remote host closed the connection]
indian has quit [Ping timeout: 255 seconds]
d1zzYLuLz has joined #ruby
d1zzYLuLz has left #ruby [#ruby]
Calvarygoer has joined #ruby
ilyam has quit [Ping timeout: 272 seconds]
ilyam_ is now known as ilyam
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
Maniacal has quit [Quit: Leaving]
atmosx has quit [Ping timeout: 276 seconds]
wagle has joined #ruby
sailias has quit [Ping timeout: 260 seconds]
havenn has quit [Remote host closed the connection]
atmosx has joined #ruby
digitalcakestudi has joined #ruby
cpruitt has joined #ruby
tiripamwe has left #ruby ["Leaving"]
mxweas has joined #ruby
havenn has joined #ruby
kpshek has joined #ruby
tewecske has quit [Quit: Leaving.]
piotr_ has quit [Ping timeout: 260 seconds]
becom33 has quit [Ping timeout: 272 seconds]
becom33 has joined #ruby
td123 has quit [Quit: WeeChat 0.3.8]
IrishGringo has joined #ruby
Nies has joined #ruby
ziggles has joined #ruby
cantonic has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
Calvarygoer has left #ruby ["Konversation terminated!"]
Targen has joined #ruby
kevinbond has joined #ruby
trend has quit [Read error: Connection reset by peer]
trend has joined #ruby
trend has quit [Client Quit]
atmosx has quit [Ping timeout: 276 seconds]
trend has joined #ruby
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
rizzylt has joined #ruby
sailias has joined #ruby
xaq has quit [Remote host closed the connection]
atmosx has joined #ruby
chaingun has quit [Ping timeout: 264 seconds]
itnomad has joined #ruby
apok has joined #ruby
davidcelis has quit [Ping timeout: 260 seconds]
ViperMaul has joined #ruby
KDr2 has joined #ruby
Rizzle has quit [Ping timeout: 246 seconds]
jxf has joined #ruby
<jd__> does ruby require the need for dereferencing like perl? or can i just call a hash inside an array?
ilyam has quit [Remote host closed the connection]
ilyam has joined #ruby
<Ontolog> Tasser: Encoding.default_internal => nil, Encoding.default_external => #<Encoding:UTF-8>, and its not a problem with Terminal
yankhates has quit [Ping timeout: 260 seconds]
iamjarvo has quit [Read error: Connection reset by peer]
jamesaxl has quit [Ping timeout: 264 seconds]
<Spooner> jd__ : You don't need to mess about, no. So you can do array_of_hashes[4][:frog]
mengu has quit [Read error: Connection reset by peer]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
brianpWins has joined #ruby
Gavilan has quit [Ping timeout: 245 seconds]
fgwaegeawgfwa has joined #ruby
freeayu has joined #ruby
medik has joined #ruby
bradhe has quit [Remote host closed the connection]
<Spooner> jd__ : Should just try stuff like that in irb (or pry) and see if it works :)
<jd__> swee thatnks Spooner!
bradhe has joined #ruby
fivetwentysix has joined #ruby
pting has joined #ruby
frishi has joined #ruby
justinmcp has quit [Ping timeout: 240 seconds]
vladiim has quit [Quit: vladiim]
booginga has joined #ruby
bradhe has quit [Ping timeout: 255 seconds]
aantix has quit [Ping timeout: 245 seconds]
cpruitt has quit [Quit: cpruitt]
justinmcp has joined #ruby
banisterfiend has quit [Remote host closed the connection]
vladiim has joined #ruby
ZachBeta_ has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Sheehan has joined #ruby
S1kx has quit [Ping timeout: 245 seconds]
wagle has quit [Remote host closed the connection]
Enk has joined #ruby
kenperkins has joined #ruby
wagle has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
Enekoos has quit [Ping timeout: 260 seconds]
ciopte7 has quit [Quit: ciopte7]
becom33 has quit [Ping timeout: 244 seconds]
r0bby has quit [Ping timeout: 245 seconds]
CheeToS has joined #ruby
rizzylt has quit [Ping timeout: 245 seconds]
skinny_much has quit [Quit: Leaving...]
mengu has quit [Remote host closed the connection]
cpruitt has joined #ruby
ceradon has quit [Ping timeout: 252 seconds]
cantonic has quit [Quit: cantonic]
Banistergalaxy has joined #ruby
andrewhl has quit [Remote host closed the connection]
derekreeve has joined #ruby
umttumt has quit [Remote host closed the connection]
atmosx has quit [Ping timeout: 276 seconds]
Scrivener has joined #ruby
jxf has quit [Read error: Connection reset by peer]
becom33 has joined #ruby
jxf has joined #ruby
Tricks has joined #ruby
Aaton is now known as Aaton_off
maletor has quit [Quit: Computer has gone to sleep.]
c0rn_ has quit [Quit: Computer has gone to sleep.]
banisterfiend has joined #ruby
havenn has quit [Remote host closed the connection]
atmosx has joined #ruby
Banistergalaxy has quit [Ping timeout: 244 seconds]
adamkittelson has quit [Ping timeout: 248 seconds]
silentpost has quit [Ping timeout: 255 seconds]
chaingun has joined #ruby
headius has joined #ruby
andrewhl has joined #ruby
cpruitt has quit [Quit: cpruitt]
chaingun has quit [Changing host]
chaingun has joined #ruby
carlyle has quit [Remote host closed the connection]
chaingun has quit [Client Quit]
atmosx has quit [Ping timeout: 276 seconds]
chaingun has joined #ruby
savage- has quit [Remote host closed the connection]
ciopte7 has joined #ruby
derekreeve has quit [Quit: leaving]
jxf has quit [Ping timeout: 246 seconds]
mdaisuke has joined #ruby
nari_ has joined #ruby
jwmann has quit [Quit: Leaving.]
ben_alman has quit [Excess Flood]
jwmann has joined #ruby
mikepack has joined #ruby
Hanmac1 has joined #ruby
savage- has joined #ruby
Hanmac has quit [Ping timeout: 260 seconds]
mdaisuke has quit [Remote host closed the connection]
mdaisuke has joined #ruby
vladiim has quit [Quit: vladiim]
albemuth has joined #ruby
vitor-br has joined #ruby
atmosx has joined #ruby
banisterfiend has quit [Remote host closed the connection]
kenichi has quit [Remote host closed the connection]
ben_alman has joined #ruby
cousine has quit [Remote host closed the connection]
cousine has joined #ruby
fbernier has joined #ruby
tchebb has quit [Remote host closed the connection]
ilyam has quit [Quit: ilyam]
voodoofish430 has quit [Quit: Leaving.]
ciopte7 has quit [Quit: ciopte7]
headius has quit [Quit: headius]
banisterfiend has joined #ruby
vladiim has joined #ruby
tchebb has joined #ruby
cousine has quit [Ping timeout: 264 seconds]
uris has joined #ruby
ceradon has joined #ruby
adeponte has quit [Remote host closed the connection]
jxf has joined #ruby
savage- has quit [Remote host closed the connection]
zalesz has quit [Quit: Wychodzi]
Ontolog has quit [Remote host closed the connection]
mrsolo has quit [Quit: Leaving]
bradhe has joined #ruby
fbernier has quit [Ping timeout: 248 seconds]
vladiim has quit [Quit: vladiim]
frishi has quit [Quit: Leaving...]
stephenjudkins has quit [Quit: stephenjudkins]
atmosx has quit [Remote host closed the connection]
wpaulson has joined #ruby
ePirat_ has joined #ruby
jeff_sebring has quit [Remote host closed the connection]
grantbdev has joined #ruby
minijupe has quit [Quit: minijupe]
cousine has joined #ruby
malkomalko has joined #ruby
vladiim has joined #ruby
raja has joined #ruby
musee has quit [Ping timeout: 245 seconds]
dr_diamond has quit [Quit: Bye !]
atmosx has joined #ruby
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
Enk has quit [Quit: Saliendo]
wpaulson has joined #ruby
cousine has quit [Ping timeout: 260 seconds]
fbernier has joined #ruby
Ethan has joined #ruby
Ethan has quit [Changing host]
Ethan has joined #ruby
Ethan has quit [Client Quit]
ceradon has quit [Ping timeout: 245 seconds]
mdhopkins has quit [Quit: mdhopkins]
havenn has joined #ruby
radic has quit [Disconnected by services]
radic_ has joined #ruby
radic_ is now known as radic
igotnolegs has joined #ruby
cjs has joined #ruby
artOfWar_ has quit [Remote host closed the connection]
perryh_away is now known as perryh
fbernier has quit [Ping timeout: 252 seconds]
rking has joined #ruby
adeponte has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
ePirat_ has quit [Quit: Palaver http://palaverapp.com/]
perryh is now known as perry
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
ciopte7_ has joined #ruby
sleetdrop has joined #ruby
ringotwo has joined #ruby
eywu1 has joined #ruby
eywu1 has quit [Client Quit]
d1zzYLuLz has joined #ruby
apok has quit [Quit: apok]
<d1zzYLuLz> are there any libraries I can import that will help me parse through IIS logs (w3c extended format)?
L-----D has joined #ruby
eywu has quit [Ping timeout: 244 seconds]
vladiim has quit [Quit: vladiim]
Ethan has joined #ruby
chaingun has quit [Ping timeout: 244 seconds]
fighella has joined #ruby
fivetwentysix has quit [Quit: fivetwentysix]
fulmato has joined #ruby
atmosx has quit [Ping timeout: 276 seconds]
kpshek has quit [Ping timeout: 260 seconds]
jeff_sebring has joined #ruby
gmci has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Araxia_ has quit [Quit: Araxia_]
mikeycgto has joined #ruby
mikeycgto has quit [Changing host]
mikeycgto has joined #ruby
grantbdev has quit [Quit: Leaving]
Cpudan80 has quit [Disconnected by services]
Cpudan80_ has joined #ruby
nai has joined #ruby
Yugo has quit [Ping timeout: 248 seconds]
maletor has joined #ruby
fighella has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
atmosx has joined #ruby
ePirat- has joined #ruby
mockra has joined #ruby
mikeycgto has quit [Ping timeout: 265 seconds]
cousine has joined #ruby
vladiim has joined #ruby
gmci has joined #ruby
ciopte7_ has quit [Quit: ciopte7_]
ceradon has joined #ruby
chienpo has left #ruby [#ruby]
amacgregor_osx_ has quit [Remote host closed the connection]
albemuth has quit [Quit: Computer has gone to sleep.]
sleetdrop has quit []
silentpost has joined #ruby
yannis has quit [Read error: Connection timed out]
mayankkohaley has quit [Ping timeout: 260 seconds]
mayankkohaley has joined #ruby
igotnolegs has quit [Quit: Computer has gone to sleep.]
williamcotton has quit [Quit: williamcotton]
frishi has joined #ruby
Scrivener has quit [Ping timeout: 245 seconds]
trend has quit [Read error: Connection reset by peer]
mockra has quit [Remote host closed the connection]
noganex has quit [Ping timeout: 252 seconds]
kevinbond has quit [Quit: kevinbond]
trend has joined #ruby
[-mX-] has joined #ruby
bricker88 has quit [Quit: Leaving.]
noganex has joined #ruby
adeponte has quit [Remote host closed the connection]
[-mX-] has quit [Client Quit]
mockra has joined #ruby
pting has quit [Quit: Ex-Chat]
Spooner has quit []
banisterfiend has quit [Ping timeout: 264 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
ickmund has quit [Ping timeout: 272 seconds]
flaccid has joined #ruby
<flaccid> i'm using getoptlong but i can't work out how to 'do something' if not all required options are specified. anyone know what to do for this?
frishi has quit [Quit: Leaving...]
<flaccid> or do i just use if ARGV.length != 1 where 1 = the number of required options?
cuppsy has quit [Read error: Operation timed out]
ickmund has joined #ruby
fulmato has quit [Ping timeout: 248 seconds]
rakunHo has joined #ruby
cuppsy has joined #ruby
banisterfiend has joined #ruby
rakunHo_ has quit [Ping timeout: 260 seconds]
fbernier has joined #ruby
ceradon has quit [Ping timeout: 245 seconds]
ananthakumaran has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
mvangala_home has quit [Remote host closed the connection]
prometheus has quit [Ping timeout: 248 seconds]
ryanf has quit [Quit: leaving]
axiak has joined #ruby
jxf has quit [Ping timeout: 255 seconds]
unixabg has joined #ruby
balki_ is now known as balki
williamcotton has joined #ruby
adeponte has joined #ruby
macmartine has quit [Quit: macmartine]
ipoval has joined #ruby
moshenick has joined #ruby
silentpost has quit [Ping timeout: 272 seconds]
ryanf has joined #ruby
<moshenick> hey anyone here?
moshenick has left #ruby [#ruby]
manizzle has quit [Read error: No route to host]
<flaccid> lots here, but no help
<flaccid> ah well next time
flaccid has left #ruby ["Konversation terminated!"]
indian has joined #ruby
kill-9_ has quit [Ping timeout: 246 seconds]
prometheus has joined #ruby
ryanf_ has joined #ruby
ryanf has quit [Client Quit]
ryanf_ is now known as ryanf
mockra has quit [Remote host closed the connection]
ceradon has joined #ruby
iori has joined #ruby
nai has quit [Ping timeout: 244 seconds]
RainbowDashh has joined #ruby
Sheehan has quit [Quit: Sheehan]
<jd__> when making a hash it's stock_hash{:stock => stock, :yao => $1.to_f} not stock_hash{:stock => stock, :yao => $1.to_f] correct?
adamlaass has joined #ruby
<jd__> use the {} not the []?
<jd__> but you make a call to it using []?
mockra has joined #ruby
adamlaass has left #ruby [#ruby]
mwilson_ has quit [Excess Flood]
mwilson_ has joined #ruby
mockra has quit [Remote host closed the connection]
malkomalko has quit [Remote host closed the connection]
RainbowDashh has quit [Quit: SLEEP MODE. <REDACTED SUBORBITAL QUOTE HERE>]
alek_b_ has joined #ruby
savage- has joined #ruby
gibsonfs_ has quit [Remote host closed the connection]
cousine has quit [Remote host closed the connection]
alek_b has quit [Ping timeout: 246 seconds]
cousine has joined #ruby
RainbowDashh has joined #ruby
csprite has joined #ruby
freeayu has quit [Ping timeout: 260 seconds]
havenn has quit [Remote host closed the connection]
mwilson_ has quit [Excess Flood]
mwilson_ has joined #ruby
prateekp has joined #ruby
andreime has joined #ruby
<prateekp> i have done sudo apt-get install ruby1.9.1 , it has installed ruby but the path is not set how to do that
austinbv has joined #ruby
rakunHo_ has joined #ruby
mockra has joined #ruby
mockra has quit [Remote host closed the connection]
Sheehan has joined #ruby
wpaulson has joined #ruby
cousine has quit [Ping timeout: 260 seconds]
vladiim has quit [Quit: vladiim]
nai has joined #ruby
rakunHo has quit [Ping timeout: 260 seconds]
mockra has joined #ruby
<prateekp> i have done sudo apt-get install ruby1.9.1 , it has installed ruby but the path is not set how to do that
freeayu has joined #ruby
<unixabg> prateekp: what do you mean path is not set?
<prateekp> means when i type ruby in the terminal it says ruby is not installed
<unixabg> what happen if you type
ryanf has quit [Quit: broken pipes |||]
<unixabg> which ruby
RainbowDashh has quit [Quit: SLEEP MODE. <REDACTED SUBORBITAL QUOTE HERE>]
<prateekp> nothing happens
ryanf has joined #ruby
eywu has joined #ruby
vladiim has joined #ruby
<unixabg> prateekp: what dist are you running and I will attempt to look up path for you?
raja has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
RainbowDashh has joined #ruby
<prateekp> dist?
booginga has quit [Quit: This computer has gone to sleep]
sepp2k has joined #ruby
<cirwin> linux distribution
<prateekp> ubuntu 11.04
<unixabg> distribution, ubuntu debian... thx cirwin
L-----D has quit [Ping timeout: 240 seconds]
Ontolog has joined #ruby
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
Sheehan has quit [Quit: Sheehan]
jgrevich_ has joined #ruby
<unixabg> prateekp: do you only have 1.9.x installed?
jgrevich has quit [Read error: Operation timed out]
jgrevich_ is now known as jgrevich
<prateekp> yes
<prateekp> i installed it using sudo apt-get install ruby1.9.1
yugui_zzz is now known as yugui
freeayu has quit [Quit: 离开]
sailias has quit [Quit: Leaving.]
Sheehan has joined #ruby
rakm has quit [Ping timeout: 252 seconds]
CheeToS has quit [Ping timeout: 245 seconds]
thecreators has quit [Quit: thecreators]
lorandi has quit [Quit: Leaving]
codefyre has joined #ruby
codefyre has left #ruby [#ruby]
ryanf_ has joined #ruby
codefyre has joined #ruby
rakm has joined #ruby
jgrevich_ has joined #ruby
ryanf has quit [Ping timeout: 255 seconds]
ryanf_ is now known as ryanf
<unixabg> prateekp: I am not on ubuntu, but what do you get from a: ls -aFl /usr/bin/ruby*
Jackneill has joined #ruby
<prateekp> unixabg: i got -rwxr-xr-x 1 root root 6224 2010-11-03 01:15 /usr/bin/ruby1.9.1*
<Spaceghostc2c> prateekp: I don't thikn that's a good way to install ruby.
<Spaceghostc2c> At all. As in, no one uses 1.9.1 for good reason.
<prateekp> then how to install
jgrevich has quit [Ping timeout: 246 seconds]
jgrevich_ is now known as jgrevich
h4mz1d has joined #ruby
jgrevich has quit [Read error: Connection reset by peer]
jgrevich has joined #ruby
austinbv has quit [Ping timeout: 260 seconds]
<unixabg> prateekp: I think the issue is an entry inyour alternatives, see http://ubuntuforums.org/showthread.php?p=10057489 for more information
<aces23up> How can I run enumberable
<Spaceghostc2c> prateekp: Using the ARR VEE EMM
<aces23up> and only do min_by on a collection with
<aces23up> Example..
<aces23up> @array.min_by{|ele| ele[:failed] < MaxFailedAllowed ; ele[:last_used] } #<--- in this instance I really want
<aces23up> certain other variables met?
<aces23up> the lowest :last_used element, but only if its less that max failed as well.. do I have to do
<aces23up> a find_all to collect the first elements then do a min_by on that? or is there
<aces23up> a way to combine the 2 comparisons?
<aces23up> shoot sorry about that.
<prateekp> Spaceghostc2c: what is it
<unixabg> I am still on 1.8.x and debian so ymmv
<Spaceghostc2c> prateekp: Arr Vee Emm
<aces23up> sorry meant to put that in a pastebin..
<Spaceghostc2c> unixabg: That hits EOL really soon.
<aces23up> here it is: http://pastebin.com/MjFmtRFC
<aces23up> can any one help me with the enumberable min_by?
<cirwin> aces23up: first do a select, then a min_by
<cirwin> it's better to be explicit than clever :)
<prateekp> Spaceghostc2c: what is Arr Vee Emm
<Spaceghostc2c> Say it aloud.
<prateekp> ok
<aces23up> cirwin yes lol..
<prateekp> RVM
gmci has quit [Read error: Operation timed out]
<aces23up> clever gets me into trouble.
fbernier has quit [Ping timeout: 240 seconds]
macmartine has joined #ruby
<aces23up> would select be slower if for instance the array was really big than combining them somehow?
<aces23up> I also need this to be somewhat fast.
<prateekp> Spaceghostc2c: So by doing $ rvm get latest would the latest ruby be installed
<bnagy> you could look at sorting
<Spaceghostc2c> prateekp: Read the documentation on installing and prerequisites.
<prateekp> yeah the prereq is ruby and others
<aces23up> cirwin ok one other question, if i do a select and it returns nil, and I chain that to a min_by is there a better way to remove errors other than enclosing it in a begin/rescue?
dross has quit [Ping timeout: 245 seconds]
<unixabg> Spaceghostc2c: yes I will move, but it is hard to change when things are working well.
<prateekp> but which ruby should i use
<Spaceghostc2c> 1.9.3
<aces23up> or should I have 2 lines, instead of chaining?
<Spaceghostc2c> Or Jruby. :D
<prateekp> but my main aim is to install the latest version
<Spaceghostc2c> aces23up: You tell me.
<prateekp> how to install ruby1.9.3
<Spaceghostc2c> prateekp: 1.9.3 is the latest C ruby that isn't Rubinius. Jruby is my favorite.
<Spaceghostc2c> prateekp: rvm.io
<cirwin> aces23up: select won't return nil
<cirwin> detect might
<cirwin> but select always returns an array
<aces23up> cirwin ok.
<prateekp> rvm.io?
hemanth has quit [Read error: Connection reset by peer]
alta has quit [Ping timeout: 245 seconds]
hemanth has joined #ruby
<aces23up> cirwin really? crap.. I might have some logic jacked..
<aces23up> I have been assuming it returns nil on no find.
<cirwin> select?
<aces23up> yes select / find_all I use the later
<cirwin> nah, select will return the empty array
<cirwin> detect will return the first item, or nil if there weren't any
<aces23up> hrmm.
<aces23up> ok.
<aces23up> crap
<bnagy> which is what you want
<aces23up> yes
<bnagy> cause you want to chain select to sort
<aces23up> for this instance.
<bnagy> well it's almost always what you want :)
<aces23up> but for some other logic I had in my head it returns nil.
<aces23up> yeh, I was just using it wrong.
<bnagy> I would use reject in this case
<bnagy> cause positive logic is usually easier to read
<bnagy> ary.reject {|e| too many fails}.min_by { whatever }
josefig has joined #ruby
josefig has quit [Changing host]
josefig has joined #ruby
alta has joined #ruby
ryanf_ has joined #ruby
ryanf_ has quit [Client Quit]
ryanf has quit [Quit: broken pipes |||]
ryanf_ has joined #ruby
uris has quit [Quit: leaving]
ryanf_ is now known as ryanf
<aces23up> bnagy is positive login like.. for instance.. http://pastebin.com/2RNjM1w7
<aces23up> is mosltly how I code.. i don't like using unless statements.
<bnagy> unless is fine
<bnagy> if good > unless bad > if !good
RainbowDashh has quit [Quit: SLEEP MODE. <REDACTED SUBORBITAL QUOTE HERE>]
<bnagy> in your pastie, I wouldn't normally do it like that
<bnagy> return if condition means 'nothing to do' not 'something bad happened'
<bnagy> like in a sort method you could return str if str.empty?
krz has joined #ruby
codefyre_ has joined #ruby
<epochwolf> I am forking a gem and I need to get rid of jeweler. I need an alternative way to make a gem. Could someone link me to an up to date tutorial or screencast?
<bnagy> but if the thing doesn't have Comparable then you'd want to raise
hunglin has quit [Quit: Leaving.]
codefyre has quit [Ping timeout: 255 seconds]
codefyre_ has quit [Client Quit]
rakm has quit [Ping timeout: 272 seconds]
Eldariof-ru has joined #ruby
<Paradox> epochwolf, bundler is quite nice
<Paradox> uh
<Paradox> hold on
Sheehan has quit [Quit: Sheehan]
rakm has joined #ruby
tonini has joined #ruby
h4mz1d has quit [Ping timeout: 272 seconds]
<Paradox> epochwolf, hold on, let me find a tutorial
<Paradox> but its pretty straight forward
<Paradox> RubyPanther, thats essentially how bundler's gem create works
<Paradox> it just creates a few rake tasks that help
<RubyPanther> Just write a gemspec and use rubygems as the gem tool, it is easy you don't need an extra weird tool like jeweler
<Paradox> bundle gem
<Paradox> use bundle gem to create a new gem
savage- has quit [Remote host closed the connection]
<Paradox> then you can do rake install to build and install the local version
<Paradox> and rake publish to push it and tag a git commit
<cirwin> why is that a feature of bundler :/
krusty_ar has quit [Ping timeout: 248 seconds]
<Paradox> idk but its in there
* cirwin thinks bundler needs taking down a notch or two
<RubyPanther> "Using tools that are built into Ruby and Rubygems creates a more streamlined, conventional experience for all involved. Instead of trying to figure out what command to run to create a gem, expect to be able to run gem build mygem.gemspec"
<RubyPanther> gemspecs aren't hard enough to really need an extra tool :)
<cirwin> that said
<cirwin> every single time i create a new gem
<cirwin> I do cp ../<other-gem>/*.gemspec .
Nick_____ has joined #ruby
<Paradox> https://github.com/paradox460/snoo is a gem created using bundler
<epochwolf> RubyPanther: thanks
igotnolegs has joined #ruby
<Paradox> i gtg
<cirwin> https://github.com/ConradIrwin/jist <-- gem without :)
<cirwin> see ya
jd__ has quit [Ping timeout: 260 seconds]
xubuntu5 has quit [Ping timeout: 260 seconds]
derick_skibotn has joined #ruby
<derick_skibotn> I built Ruby 1.9.2-p320 from source on fedora 16, installed in /usr/local, but there's no /usr/local/lib/ruby/.../include with ruby.h and other header files. How do I install it so RbConfig knows about the include dir?
Eldariof-ru has quit []
lkba has quit [Ping timeout: 248 seconds]
itnomad has quit [Ping timeout: 252 seconds]
macmartine has quit [Quit: macmartine]
ananthakumaran has quit [Quit: Leaving.]
Chryson has quit [Quit: Leaving]
macmartine has joined #ruby
dross has joined #ruby
tyman has quit [Remote host closed the connection]
tyman has joined #ruby
mikepack has quit [Remote host closed the connection]
schovi has quit [Remote host closed the connection]
ziggles has quit [Remote host closed the connection]
derick_skibotn has quit [Quit: ChatZilla 0.9.86-rdmsoft [XULRunner 1.9.0.11/2009060313]]
eywu has quit [Quit: Leaving.]
werdnativ has joined #ruby
cirwin has quit [Ping timeout: 260 seconds]
mnaser has joined #ruby
dhruvasagar has quit [Ping timeout: 272 seconds]
CheeToS has joined #ruby
fantazo has joined #ruby
skinny_much has joined #ruby
macmartine has quit [Quit: macmartine]
wookiehangover has quit [Quit: i'm out]
ViperMaul has quit [Ping timeout: 260 seconds]
wookiehangover has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
Seventoes has quit [Ping timeout: 245 seconds]
hemanth has joined #ruby
Seventoes has joined #ruby
delinquentme has quit [Quit: Leaving]
boobah has joined #ruby
zigidias_ has quit [Remote host closed the connection]
srid has joined #ruby
Nisstyre has joined #ruby
eywu has joined #ruby
eywu has quit [Client Quit]
ryan0x2 has quit [Remote host closed the connection]
brianpWins has quit [Remote host closed the connection]
<prateekp> how ro run rvm
<prateekp> i have installed it but now how to run it
<Cork> did you run the initialize script?
<prateekp> what is it
BeLucid has quit [Ping timeout: 245 seconds]
<prateekp> i have done $ curl -L https://get.rvm.io | bash -s stable --ruby
<Cork> it should output the command on the screen after installation
macmartine has joined #ruby
<prateekp> run 'source blah blah'
<prateekp> can u tell me
bier_ has joined #ruby
<Cork> you need to import the rvm script into your shell
<Cork> alternatively you could logout and in again
<prateekp> how do i do that
bier has quit [Ping timeout: 265 seconds]
ananthakumaran has joined #ruby
<Cork> with the source command, or just normally
<prateekp> logout from computer and then come back again ?
<Cork> that should work too yes
<prateekp> yes it worked
macmartine has quit [Client Quit]
<prateekp> now can i install the latest ruby with rvm
andreime has quit [Quit: Konversation terminated!]
<Cork> rvm install 1.9.2
<Cork> opps 1.9.3 apparently :)
burgestrand has joined #ruby
<bnagy> latest stable is 1.9.3p194
Niamkik has joined #ruby
vectorshelve has joined #ruby
jgrevich_ has joined #ruby
jgrevich has quit [Read error: Connection reset by peer]
jgrevich_ is now known as jgrevich
abstrusenick has joined #ruby
vladiim has quit [Quit: vladiim]
nipra has joined #ruby
Helius has joined #ruby
csprite has quit [Quit: ChatZilla 0.9.88.2 [Firefox 12.0/20120420145725]]
mockra has quit [Remote host closed the connection]
Tricks has quit [Quit: No Ping reply in 180 seconds.]
Tricks has joined #ruby
savage- has joined #ruby
Ontolog has quit [Remote host closed the connection]
vladiim has joined #ruby
Ontolog has joined #ruby
Sheehan has joined #ruby
und has joined #ruby
und has left #ruby [#ruby]
nipra has quit [Ping timeout: 252 seconds]
d3vic3 has quit [Ping timeout: 264 seconds]
Helius has quit [Remote host closed the connection]
d3vic3 has joined #ruby
Ontolog has quit [Ping timeout: 246 seconds]
digitalcakestudi has quit [Ping timeout: 245 seconds]
austinbv has joined #ruby
nai has quit [Remote host closed the connection]
jgrevich has quit [Read error: Connection reset by peer]
freeayu has joined #ruby
Sheehan has quit [Quit: Sheehan]
becom33 has quit [Ping timeout: 250 seconds]
mockra has joined #ruby
zz_chrismcg is now known as chrismcg
chrismcg is now known as zz_chrismcg
samuel02 has joined #ruby
jgrevich has joined #ruby
nachtwandler has joined #ruby
vitor-br has quit [Quit: Saindo]
nipra has joined #ruby
cirwim has joined #ruby
austinbv has quit [Ping timeout: 250 seconds]
banisterfiend has quit [Remote host closed the connection]
savage- has quit [Remote host closed the connection]
musee has joined #ruby
godzirra has joined #ruby
josefig has quit [Quit: Computer has gone to sleep.]
quest88 has joined #ruby
nipra has quit [Remote host closed the connection]
Ethan has quit [Quit: *poof*]
ceradon has quit [Ping timeout: 245 seconds]
Ethan has joined #ruby
becom33 has joined #ruby
Ethan has left #ruby [#ruby]
Ethan has joined #ruby
ceradon has joined #ruby
robert__ has joined #ruby
djdb has joined #ruby
fantazo has quit [Ping timeout: 272 seconds]
banisterfiend has joined #ruby
shadoi has quit [Quit: Leaving.]
vladiim has quit [Quit: vladiim]
mnaser has quit [Quit: Computer has gone to sleep.]
robert__ has quit [Ping timeout: 265 seconds]
BeLucid has joined #ruby
mayankkohaley has quit [Ping timeout: 240 seconds]
quest88 has quit [Quit: quest88]
vladiim has joined #ruby
EzeQL has quit [Ping timeout: 250 seconds]
mayankkohaley has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
williamcotton has quit [Quit: williamcotton]
ringotwo has quit [Remote host closed the connection]
senny has joined #ruby
Progster has joined #ruby
schovi has joined #ruby
workmad3 has joined #ruby
maesbn has joined #ruby
dekroning has joined #ruby
SpinningWheels has quit [Ping timeout: 260 seconds]
EzeQL has joined #ruby
kkiero has quit [Read error: Operation timed out]
benjaminsull_ has joined #ruby
<benjaminsull_> hi
dekroning has quit [Ping timeout: 255 seconds]
SpinningWheels has joined #ruby
austinbv has joined #ruby
burgestrand has quit [Quit: Leaving.]
becom33 has quit [Quit: Leaving]
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
Morkel has joined #ruby
<prateekp> i have intalled gem but it shows error on typing any command
<prateekp> papri@papri-HP-Pavilion-dv6-Notebook-PC:~$ gem install rails
<prateekp> ERROR: Loading command: install (LoadError)
<prateekp> cannot load such file -- zlib
<prateekp> ERROR: While executing gem ... (NameError)
<prateekp> uninitialized constant Gem::Commands::InstallCommand
<prateekp> this is the error
nai has joined #ruby
austinbv has quit [Ping timeout: 265 seconds]
<Hanmac1> prateekp: you build your ruby itself right?
Hanmac1 is now known as Hanmac
<prateekp> i did it with rvm
workmad3 has quit [Ping timeout: 248 seconds]
<bnagy> prateekp: read /topic, please. ( Paste >3 lines of text on gist.github.com ) or any other paste service you prefer
ph^ has joined #ruby
<Hanmac> so first: install the zlib-dev package, then delete your ruby, and build it again
<prateekp> ok
<bnagy> if you want rails to install I thinkthere will be more than that missing
<bnagy> I would consult 'the internet'
<Paradox> generally, on virgin systems that dont have ruby
<prateekp> bnagy - what i neeed to install
<Paradox> use a package manager to install ruby
<Paradox> then uninstall that version and use rvm to install it
<bnagy> prateekp: I am not 'the internet'
<Paradox> that way you get deps and a modern version of ruby
vladiim has quit [Quit: vladiim]
mockra has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
francisfish has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
moosya has quit [Ping timeout: 260 seconds]
jprovazn_away is now known as jprovazn
vladiim has joined #ruby
<vectorshelve> is it fine if I use selenium to generate rspec test cases.. or is it better to write everything own my own ? It would be pretty much the same thing ryt ?
prometheus has quit [Ping timeout: 272 seconds]
<cirwim> vectorshelve: can selenium write tests for you?
davidcelis has joined #ruby
<vectorshelve> In selenium once I record actions I can export it as rspec and unit test cases and all.. so it would pretty much be the same thing ryt ? I mean an rspec for that particular action /
thecreators has joined #ruby
<cirwim> vectorshelve: oh cool
<cirwim> just be careful
<cirwim> because it will generate tests that refer to specific xpaths
<cirwim> it might not be very semantic
<cirwim> so it will be fragile
<vectorshelve> cirwim: but I am more worried about whether this is the right way since I am lazy to sit and write downs stuffs.. this would be easier.. but this would have a front end based approach...
seoaqua has quit [Quit: Leaving]
<cirwim> vectorshelve: well, selenium tests are *slow*
<cirwim> and not very thorough
<cirwim> it's good to have a few to check that the app basically works
<vectorshelve> cirwim: yeah.... wished If there were some automated tools to write test cases. :( I cant sit down and write test cases.. :-X
<cirwim> :)
<vectorshelve> hemanth: hai bhai
<cirwim> vectorshelve: I find it quite theraputic in a way
<cirwim> though I used to hate it
nachtwandler has quit [Quit: leaving]
<vectorshelve> cirwim: but I have tried out the exported rspec unit test cases and functional test cases.. via @selenium they are good.. within their limitations
sspiff has joined #ruby
sspiff has quit [Changing host]
sspiff has joined #ruby
<hemanth> vectorshelve, hey
<cirwim> vectorshelve: cool
<vectorshelve> cirwim: why theraputic ?
<cirwim> are you using the selenium recorder thing?
<cirwim> vectorshelve: I normally write tests after the hard design work is done
<cirwim> so it's just a relaxing typing excersize
jgrevich has quit [Quit: jgrevich]
<vectorshelve> hemanth: any solutions for my above query since u develop testing frameworks urself :)
<hemanth> ?
<vectorshelve> hemanth: any tools to generate automated test cases.. rspec
<joni> how can i order through association ie. has_many :foos, :through => :bar, :order => "barname"
<joni> ^ does not work, neither does :order => "foos.barname"
<vectorshelve> cirwim: I have an app its running.. its for that I need to create test cases now..then refactor the code... all purpose of making the app more robust and bug free
<hemanth> vectorshelve, many would lose their jobs if you do that ;) but their must be a gem ...
<joni> actually example is confusing, lets try better
<banisterfiend> hemanth: do you have any c extension jews?
<banisterfiend> hemanth: gems*
<joni> how can i order through association ie. has_many :foos, :through => :bar, :order => "fooname"
<hemanth> banisterfiend, nope
<vectorshelve> hemanth: but I have tried selenium I record actions then export them as rspec but its not that good..its all xpath based
<banisterfiend> hemanth: noob
<hemanth> planning to make one!
<hemanth> :D
<banisterfiend> :P jk
dekroning has joined #ruby
<joni> or :order => "foos.fooname", does not work on rails 2
<hemanth> ya accept that
<cirwim> vectorshelve: could you write one and send it to me pls
<vectorshelve> cirwim: which one ?
<cirwim> a tool to autogenerate tests :)
<cirwim> I think haskell have something
<hemanth> banisterfiend, any suggestions of C extensions gem?
<banisterfiend> hemanth: nah im just looking for c extensions to test
<vectorshelve> cirwim: but it isnt something impossible... fund me to start a company I will get it done with some cool developers and sell it to clients.. we will share the profit too what say /
<hemanth> banisterfiend, meh
TPFC-SYSTEM has joined #ruby
<Hanmac> hemanth did you pick an interesting lib?
<cirwim> vectorshelve: sounds great
<hemanth> Hanmac, libcurl
<vectorshelve> cirwim: :)
<cirwim> will £3.40 be enough?
<vectorshelve> hemanth: which is the mostly used development language in linux ?
QaDeS has joined #ruby
<hemanth> Hanmac, wget's lib?
<hemanth> vectorshelve, :)
<vectorshelve> cirwim: yeah
alup has joined #ruby
<vectorshelve> hemanth: whats with that smile ?
<Hanmac> isnt there allready an curl gem?
<cirwim> typhoueuesueses uses cur
<vectorshelve> Hanmac: curious to know if anyone contributed to linux with ruby.. :) these days
thecreators has quit [Remote host closed the connection]
rodasc has joined #ruby
crodas has quit [Write error: Broken pipe]
denysonique has quit [Excess Flood]
shevy has quit [Ping timeout: 327 seconds]
<cirwim> vectorshelve: I doubt they'd put ruby in the kernel :)
<hemanth> Hanmac, hmmm https://rubygems.org/gems/curl
<vectorshelve> cirwim: I have read somewhere. they use ruby too..
<Hanmac> you could run ruby without an operating system :P
<hemanth> !_!
<cirwim> let's build a ruby machine
<cirwim> it'll be the lisp machine of the 10s
<vectorshelve> Hanmac: u cud run an oS without ruby... which is sad for ruby.. :D
<Hanmac> vectorshelve, yeah, but ruby without OS is more cool
<vectorshelve> Hanmac: explain how ? :P
S1kx has joined #ruby
<cirwim> vectorshelve: just tell grub to run pry instead of linux
Nick_____ has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
denysonique has joined #ruby
<cirwim> and add a couple of hardware drivers
zommi has joined #ruby
<cirwim> nice
matled- has joined #ruby
<banisterfiend> Hanmac: if i buy u a red miniskirt with a crowbar on it will u become the official pry cheerleader
iamlacroix has joined #ruby
SpinningWheels has quit [Quit: Leaving.]
yxhvuud has joined #ruby
<hemanth> lol
Eldariof-ru has joined #ruby
Natch_z has joined #ruby
Aaton_off has quit [Write error: Broken pipe]
matled has quit [Write error: Broken pipe]
kalleth_ has quit [Write error: Broken pipe]
yxhuvud has quit [Write error: Broken pipe]
matled- is now known as matled
Natch has quit [Remote host closed the connection]
danheberden has quit [Quit: oh noes]
Natch_z is now known as Natch
nilg has joined #ruby
Gavilan has joined #ruby
fgwaegeawgfwa has quit [Remote host closed the connection]
kalleth_ has joined #ruby
danheberden has joined #ruby
<vectorshelve> banisterfiend: epic
bosphorus has joined #ruby
Aaton has joined #ruby
heftig has quit [Quit: leaving]
<sepp2k> cirwim: I know you were kidding, but for my sanity's sake: You can't just tell grub to run pry. Grub can't run ruby files (or ELF binaries for that matter).
tyman has quit [Quit: tyman]
piotr_ has joined #ruby
AlbireoX`Laptop has quit [Remote host closed the connection]
andrewhl has quit [Remote host closed the connection]
<banisterfiend> cirwim: u just got TOLD
cherrypeel has joined #ruby
<cirwim> damn
<politoed> bam
manizzle has joined #ruby
fgwaegeawgfwa has joined #ruby
dekroning has quit [Read error: Connection reset by peer]
hoelzro|away is now known as hoelzro
<Cork> is there a way to do something similar to c switch fall-through in ruby?
Tryke_ has joined #ruby
pureluck_ has joined #ruby
t4lk3r_ has joined #ruby
caveat-_ has joined #ruby
kalleth_1 has joined #ruby
dasuchin_ has joined #ruby
nimred_ has joined #ruby
bnagy_ has joined #ruby
wereHams1er has joined #ruby
elspeth has joined #ruby
zaiste_ has joined #ruby
libertyp1ime has joined #ruby
mxweas_ has joined #ruby
igotnolegs has quit [Quit: Computer has gone to sleep.]
sleetdrop has joined #ruby
<Hanmac> Cork: you mean: case 1;case 2; case 3; ...code ... ; case 4 ...?
<banisterfiend> Cork: Yeah
<banisterfiend> Cork: one sec
apeiros_ has joined #ruby
<Cork> well actually case 1: first code; case 2: additional code; break; case 3: other code
dhodgkin has quit [Ping timeout: 245 seconds]
mikekelly_ has joined #ruby
eighty4_ has joined #ruby
<banisterfiend> Cork: https://gist.github.com/1637648
neersigh^ has joined #ruby
<Cork> wow
<Cork> ah
wereHams1er has quit [Client Quit]
<Cork> banghouse: thx!
kalleth_ has quit [*.net *.split]
Gavilan has quit [*.net *.split]
srid has quit [*.net *.split]
iori has quit [*.net *.split]
ePirat- has quit [*.net *.split]
mxweas has quit [*.net *.split]
dasuchin has quit [*.net *.split]
Siphonblast has quit [*.net *.split]
libertyprime has quit [*.net *.split]
wvms has quit [*.net *.split]
deryl has quit [*.net *.split]
Tasser has quit [*.net *.split]
thone has quit [*.net *.split]
nimred has quit [*.net *.split]
caveat- has quit [*.net *.split]
kalleth has quit [*.net *.split]
sonkei has quit [*.net *.split]
Khyron320 has quit [*.net *.split]
Doc_X has quit [*.net *.split]
pureluck has quit [*.net *.split]
wereHamster has quit [*.net *.split]
eighty4 has quit [*.net *.split]
zaiste has quit [*.net *.split]
asuka_ has quit [*.net *.split]
jarednorman has quit [*.net *.split]
thedonvaughn has quit [*.net *.split]
marienz has quit [*.net *.split]
dkannan has quit [*.net *.split]
t4lk3r has quit [*.net *.split]
Spaceghostc2c has quit [*.net *.split]
bnagy has quit [*.net *.split]
lectrick has quit [*.net *.split]
mikekelly has quit [*.net *.split]
neersight[d] has quit [*.net *.split]
Koshian has quit [*.net *.split]
elspeth_ has quit [*.net *.split]
Tryke has quit [*.net *.split]
henn1nk has quit [*.net *.split]
al-ol has quit [*.net *.split]
goraxe has quit [Write error: Connection reset by peer]
mxweas_ is now known as mxweas
mikekelly_ is now known as mikekelly
al-ol has joined #ruby
<Hanmac> Cork what did he say? was it a solution to your problem?
<Cork> yes
wereHamster has joined #ruby
<Hanmac> ... i want to know too
goraxe has joined #ruby
<Cork> Hanmac: its a class that implements fallthrough
bnagy_ is now known as bnagy
andreime has joined #ruby
nai_ has joined #ruby
thone has joined #ruby
CheeToS has quit [Ping timeout: 244 seconds]
ng_ has quit [Remote host closed the connection]
Yugo has joined #ruby
<banisterfiend> Cork: i dont remember how to use it
asuka_ has joined #ruby
iocor has joined #ruby
nai has quit [Ping timeout: 260 seconds]
Rizzle has joined #ruby
<Cork> switch my_val do
<Cork> according to the code
<Cork> followed by case_ test do
<Cork> and breakout to end a block
ViperMaul has joined #ruby
Helius has joined #ruby
superbaloo has joined #ruby
Rizzle has quit [Ping timeout: 250 seconds]
<superbaloo> hi there, does someone know in ruby-ffi how to dereference a double pointer to a single one ? (like struct ** to struc *)
_br_ has joined #ruby
<superbaloo> (https://gist.github.com/656825c32128362c23a6) this is the only way i found for now
ViperMaul has quit [Ping timeout: 260 seconds]
<banisterfiend> Cork: https://gist.github.com/2994207
<banisterfiend> sorry x = 4 there
<banisterfiend> it kinda works
* Cork nods
<Cork> thats kinda what i wrote up there :)
perry is now known as perryh_away
<banisterfiend> hehe
<banisterfiend> def. dont use it though :P
<Cork> :D
vladiim has left #ruby [#ruby]
dr_diamond has joined #ruby
rakunHo has joined #ruby
rakunHo_ has quit [Ping timeout: 260 seconds]
Morkel has quit [Quit: Morkel]
<Cork> banisterfiend: ended using a two dimensional array instead and flatten
vlad_starkov has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
arturaz has joined #ruby
darthdeus has joined #ruby
Progster has quit [Ping timeout: 272 seconds]
ipoval has quit [Quit: ipoval]
dhodgkin has joined #ruby
cherrypeel has quit [Quit: Leaving]
jesly has joined #ruby
Khyron320 has joined #ruby
brianpWins has joined #ruby
Doc_X has joined #ruby
Siphonblast has joined #ruby
wvms has joined #ruby
thedonvaughn has joined #ruby
francisfish has joined #ruby
Spaceghostc2c has joined #ruby
iocor has quit [Quit: Computer has gone to sleep.]
swistak35 has quit [Ping timeout: 260 seconds]
iori has joined #ruby
henn1nk has joined #ruby
Tasser has joined #ruby
jarednorman has joined #ruby
Koshian has joined #ruby
marienz has joined #ruby
heftig has joined #ruby
Stefunel has joined #ruby
srid has joined #ruby
srid has quit [Changing host]
srid has joined #ruby
srid has joined #ruby
dkannan has joined #ruby
<Stefunel> what's the best way of running a bash command from a ruby script? I see there is exec, system, %x[]
perryh_away is now known as perryh
perryh is now known as perryh_away
<bnagy> there are about a million ways
dhodgkin has quit [Ping timeout: 255 seconds]
jesly has quit [Ping timeout: 272 seconds]
<bnagy> mainly it depends on what you want to do with your io and result codes etc
<bnagy> I don't think there's a single 'best' way
timonv has joined #ruby
blacktulip has joined #ruby
<Stefunel> the basch scripts outputs a line and that is the result I want and preferably do a x = result_of_bash_command
gilead has joined #ruby
<bnagy> probably any of the ones you just mentioned then
Criztian has joined #ruby
gilead has quit [Client Quit]
gilead_ has joined #ruby
nai_ has quit [Read error: Connection reset by peer]
nai has joined #ruby
<Paradox> i like ` `
<Paradox> but the others work just as well
jesly has joined #ruby
gilead_ has quit [Client Quit]
lectrick has joined #ruby
marienz has quit [Ping timeout: 600 seconds]
abstrusenick has quit [Quit: abstrusenick]
marienz has joined #ruby
<Stefunel> thanks
jamesaxl has joined #ruby
workmad3 has joined #ruby
tatsuya_o has joined #ruby
berserkr has joined #ruby
benjaminsull_ has quit [Ping timeout: 245 seconds]
rakunHo has quit [Read error: Connection reset by peer]
iocor has joined #ruby
jesly has quit [Ping timeout: 265 seconds]
atmosx has quit [Ping timeout: 276 seconds]
execute is now known as _axx
atmosx has joined #ruby
tayy has joined #ruby
virunga has joined #ruby
akem has quit [Ping timeout: 248 seconds]
stefanp has joined #ruby
stefanp has quit [Changing host]
stefanp has joined #ruby
freeayu has quit [Quit: 离开]
qwerxy has joined #ruby
tayy has quit [Ping timeout: 264 seconds]
ryanf has quit [Quit: leaving]
hemanth has quit [Read error: Connection reset by peer]
raposa has joined #ruby
<Stefunel> how would I check if an object is of a certain class? I need to check if an object is a hash or an array, but doing object.class == "Hash" doesn't seem to work as expected
dhodgkin has joined #ruby
superbaloo has left #ruby ["WeeChat 0.3.6-dev"]
<Mon_Ouie> That's because you're comparing a Class with a String
<Mon_Ouie> Use Object#is_a?
hemanth has joined #ruby
<Stefunel> ah
<bnagy> but it's usually a bad code smell
<bnagy> google "duck typing"
<Mon_Ouie> Yeah, prefer duck typing when possible
raposa has left #ruby [#ruby]
monkegjinni has joined #ruby
seoaqua has joined #ruby
tayy has joined #ruby
<Jackneill> http://codepad.org/tRGVFQIf can you help me? i having trouble with threads. i got nothing for puts :/
charliesome has joined #ruby
prtksxna has joined #ruby
<bnagy> did you check and see if there's an exception?
<bnagy> also you might want to look into join
davidw has joined #ruby
<bnagy> once you've created your threads [t1,t2,t3].map(&:join)
iori has quit [*.net *.split]
Tasser has quit [*.net *.split]
jarednorman has quit [*.net *.split]
Koshian has quit [*.net *.split]
henn1nk has quit [*.net *.split]
jarednorman has joined #ruby
henn1nk has joined #ruby
Koshian has joined #ruby
krz has quit [Read error: Connection timed out]
iori has joined #ruby
sgronblom has joined #ruby
Tasser has joined #ruby
<sgronblom> I'm trying to figure out when and what changes my Rails view_paths for ActionMailer::Base. Is there some sort of simple AOP-style approach I can use to find out?
<bnagy> try #rubyonrails
<sgronblom> It's not really a Rails question
<sgronblom> That's just a bit of context to make it easier to understand why I ask the question.
<Paradox> you could use pry and its plugins to step through your program
<sgronblom> But then I could just use the debugger
<bnagy> well I have NFI what view_paths, ActionMailer or AOP are, so it looks like a rails question to me
<sgronblom> bnagy: Ok, I'll get rid of the Rails stuff. How can I find out when/what updates and array in a program?
<sgronblom> an array
<bnagy> with a debugger?
t4lk3r_ has quit [Ping timeout: 264 seconds]
<sgronblom> If there wer some simple before/after_line_executed callbacks it would be easy.
<bnagy> assuming it could be changed by any of a billion things
<sgronblom> Yeah but then I have to do it manually right?
<sgronblom> As far as I know ruby's debugger doesn't support breakpoints for when an expression changes.
<bnagy> it doesn't have watchpoints??
t4lk3r has joined #ruby
<sgronblom> Does it?
tayy has quit [Remote host closed the connection]
<bnagy> if you know what kind of change you could make a sneaky class that overloads things like push with log caller[1], arg; super
<bnagy> but that's a bit awful
<bnagy> you could do the whole lot with a BasicObject and method_missing
<sgronblom> Yeah but I don't know if it gets updated by using push
<bnagy> assuming you know where the array is created so you can swap in the new obj
<sgronblom> The whole array could be reassigned or maybe it would concatenate or anything
<banisterfiend> bnagy: can u tell me some gems that you use that use c exts
peerAU has quit [Ping timeout: 272 seconds]
<bnagy> not many, anymore
<sgronblom> So I would have to put in a log statement in all methods
<bnagy> sgronblom: read the bit about method_missing
eighty4_ is now known as eighty4
eighty4 has quit [Changing host]
eighty4 has joined #ruby
apok has joined #ruby
cheekymonk3y has joined #ruby
<sgronblom> hmm, well the debugger does have conditional breakpoints
<sgronblom> hmm that would actually be good enough i think
<bnagy> in my debugger lexicon you'd want watchpoints
<bnagy> cause you're watching a bit of memory
<bnagy> but I have never even looked at the ruby debugger
cheekymonk3y has left #ruby [#ruby]
peerAU has joined #ruby
<sgronblom> Well in this case I know what elements the array has in one of my checkouts and what it has in the other
<Paradox> banisterfiend, i did a complete gem install
<Paradox> reinstall
<Paradox> hold on
niklasb has joined #ruby
<sgronblom> so i can simply set a condition to stop when it has two elements
<Paradox> let me dig up my logs from that
<Paradox> i had a spattering of ones with native code
<sgronblom> bnagy: thanks for helping me brainstorm though
rails has joined #ruby
<bnagy> np
nari_ has quit [Ping timeout: 248 seconds]
<bnagy> someone should sketch up that logging thing as a module... assuming they haven't already
<Paradox> banisterfiend, damnit, i cleared my terminal window
<Paradox> no dice
hemanth has quit [Read error: Connection reset by peer]
<bnagy> I dunno if you can nom every method when you're extended though
hemanth has joined #ruby
werdnativ has quit [Quit: werdnativ]
<sgronblom> this is so lame, condition needs me to specify a breakpoint
niklasb has quit [Ping timeout: 245 seconds]
<sgronblom> bnagy: so this is usually known as watch in other debuggers?
<Paradox> banisterfiend, this may not be what you're looking for, but here are gems that have extensions on my machine
<seoaqua> when using Rspec, how to skip a test when some other test has failed?
swistak35 has joined #ruby
<banisterfiend> sgronblom: watchpoints
catphish has joined #ruby
<bnagy> sgronblom: yeah, a conditional breakpoint is a code breakpoint, but it only triggers if a condition is true when you hit that code
<catphish> is there a way to match multiple overlapping strings with regex?
<sgronblom> well then i do need a watchpoint
<bnagy> a watchpoint tells you when a memory location is read / written etc
nari_ has joined #ruby
krz has joined #ruby
<sgronblom> even the old freely available pickaxe book mentions watchpoints for the debugger but help doesn't show any watch command...
<catphish> for example i want /.../ in "hello" to match "hel" "ell" and "llo"
d3vic3 has quit [Quit: leaving]
<banisterfiend> sgronblom: watchpoints aren't so diffiult to implement i think, not sure if debugger does it tho
d3vic3 has joined #ruby
<bnagy> catphish: that sounds hard. You could look at each_cons, if that's literally what you want
<sgronblom> banisterfiend: yeah they shouldn't be
<catphish> bnagy: there may be a better way to solve my problem
d3vic3 has quit [Client Quit]
<banisterfiend> sgronblom: well u could implement it yourself pretty easily, using set_trace_func
<bnagy> write up a sample input and desired output, but make it close to what you actually need
<catphish> i'm trying to match [space]@somealphanum[space]
<bnagy> then we can take a look
<sgronblom> did they remove the watchpoint functionality from ruby-debug at some point?
<sgronblom> oh...
<sgronblom> im using the wrong debugger?
<Paradox> banisterfiend, nokogiri is full of c
<banisterfiend> sgronblom: use 'debugger'
sonkei has joined #ruby
<banisterfiend> Paradox: check this out
dhruvasagar has quit [Ping timeout: 264 seconds]
d3vic3 has joined #ruby
<sgronblom> banisterfiend: but then i get the one that doesn't support watch
dhruvasagar has joined #ruby
<banisterfiend> Paradox: https://gist.github.com/2994644
d3vic3 has quit [Client Quit]
<Paradox> heh, <3 redcarpet
<bnagy> catphish: I dunno if you want a regex, but I can't look at it without a test input and desired output
<catphish> bnagy: did i not just send you exactly that
<Paradox> ive just been running over Gem::specification looking for things that have .c in their files
<bnagy> no you pasted a link to a regex testing site
<catphish> bnagy: ok, go back to sleep
s8 is now known as ij
<catphish> admittedly i didnt specify the desired output, but i hoped it would be apparent :)
d3vic3 has joined #ruby
<fowl> good night, sweet prince
<fowl> addressed to everybody^ <3
<bnagy> catphish: it's not
<catphish> never mind then
<ij> Has anyone ever needed to make redcloth make new paragraphs instead of a line-break, not altering the textile source?
jesly has joined #ruby
niklasb has joined #ruby
<sgronblom> So I tried using set_trace_func
<sgronblom> But my program just seems to die when it calls it
banseljaj is now known as imami|afk
umttumt has joined #ruby
<sgronblom> sometimes programming is just annoying
tonini has quit [Remote host closed the connection]
heftig has quit [Quit: leaving]
flype has joined #ruby
d3vic3 has quit [Ping timeout: 246 seconds]
<banisterfiend> sgronblom: what is the problem you're trying to debug? do you *really* need watch points?
tvw has joined #ruby
d3vic3 has joined #ruby
<sgronblom> I'm trying to find out what changes ActionMailer::Base's view paths
<banisterfiend> sgronblom: i've only used a watchpoint once in my life and i've done a fair amount of gdb debugging :)
<catphish> solution: http://rubular.com/r/njivieo64r
catphish has left #ruby ["Leaving"]
<banisterfiend> sgronblom: can't you monkeypatch the methods that peforms the change, and then issue 'up' to see teh caller?
niklasb has quit [Ping timeout: 252 seconds]
<sgronblom> banisterfiend: view_paths extends Array so there are multiple methods that could change it
ephemerian has joined #ruby
<bnagy> catphish leaves with a broken regex that will snap as soon as someone puts his term in (brackets) etc
rails has quit [Ping timeout: 248 seconds]
<sgronblom> managed to get set_trace_func to work but it's very sensitive to errors
<sgronblom> and it doesn't output what error it runs into
lewis1711 has joined #ruby
<sgronblom> So I have to be really careful about trying to get the value of ActionMailer::Base.view_paths
<Jackneill> bnagy: are you hungarian?
lewis1711 has left #ruby [#ruby]
<sgronblom> Module.const_defined? doesn't seem to work inside of it...
mohits has quit [Read error: No route to host]
<banisterfiend> sgronblom: interesting what does it say
<bnagy> Jackneill: no, Tanzanian, why?
<Jackneill> just your name sounds like very hungarian, sorry :)
<sgronblom> ah, it seems like the 1.8 version of const_defined wants me to lookup by string
<Jackneill> cause i am hungarian
jimeh has joined #ruby
<cjs> Not only that, his name is even in Hungarian notation if you re-capitalize it as bNagy. :-)
<banisterfiend> Jackneill: his first name is Atilla
<bnagy> my dad is hungarian. I'm not really tanzanian, tbh
<bnagy> actually Bela is a pretty cliche hungarian name
peerAU has quit [Quit: I thought what I'd do was, I'd pretend I was one of those deaf-mutes.]
<Jackneill> yep
<bnagy> not that it's mine
<bnagy> but it starts with b
<bnagy> cjs: true
<bnagy> HAHAHAHAHAH hungarian notation joke
<bnagy> ...ok I'll get my coat
<banisterfiend> bnagy: i found it funny nags
<banisterfiend> im still chuckling to myself
<bnagy> DON'T YOU PATRONISE ME!
* bnagy bursts into tears
<Jackneill> nagy means in hungarian: big
<banisterfiend> Jackneill: is atilla a popular name
<sgronblom> So how do you check if a module is defined?
AllanMacGregor has joined #ruby
<seoaqua> could someone help me with Rspec?
AllanMacGregor has quit [Read error: Connection reset by peer]
<Jackneill> banisterfiend, yes, pretty much
<bnagy> defined? Modname?
AllanMacGregor has joined #ruby
<bnagy> without the second ? pbviously
<sgronblom> ah defined? is an operator?
<sgronblom> why not just a Kernel method?
emmanuelux has joined #ruby
<bnagy> dunno, offhand, check the docs or the banisterfiend
<hoelzro> sgronblom: because defined? needs to not actually evaluate its argument to work properly
dr0p has joined #ruby
RainbowD_ has joined #ruby
<banisterfiend> sgronblom: it's not a method
rails has joined #ruby
<banisterfiend> sgronblom: because it looks up the name in the current scope, it's more powerful than a method
niklasb has joined #ruby
<sgronblom> Ah it works like that
<banisterfiend> sgronblom: defined? my_method
<banisterfiend> rather than defined? :my_method
<banisterfiend> Yeah
piotr has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
piotr_ has quit [Ping timeout: 264 seconds]
Sgeo has joined #ruby
<sgronblom> ah this is really tricky to do
<sgronblom> method_defined? doesn't seem to work
<sgronblom> if ActionMailer::Base.method_defined?(:view_paths) gives me a const_missing
niklasb has quit [Ping timeout: 244 seconds]
Sgeo has left #ruby [#ruby]
rouss has joined #ruby
cousine has joined #ruby
<sgronblom> yes
<sgronblom> works
<sgronblom> i was defining it in the wrong place
<ichilton> Why would rspec be filtering a test out?
ramblex has joined #ruby
<Jackneill> http://codepad.org/peFNqRDJ can you help me? i got: tabornok.rb:46:in `<main>': undefined method `connect' for #<Tabornok:0x9312a50 @logger=#<Logger:0x9312a3c>> (NoMethodError)
nilg has quit [Read error: Operation timed out]
cjs has quit [Read error: Operation timed out]
nilg has joined #ruby
omry has joined #ruby
freeayu has joined #ruby
skinny_much has quit [Quit: Leaving...]
<bnagy> Jackneill: which isn't surprising since it doesn't have a connect method
<sgronblom> your class Tabornok doesn't have amethod called connect
<Jackneill> but Irc class have
<Jackneill> irc = Irc.new irc.connect "irc.rizon.net", 6667
<Jackneill> i didnt call a method connect
<sgronblom> yeah but how is Tabornok supposed to know that you are doing something to the irc class
<sgronblom> tabornok.connect <- yes you did
robotmay has joined #ruby
apok has quit [Quit: apok]
<Jackneill> sgronblom, it's my old code, sorry i forgot about it
<Jackneill> :(
d3vic3 has quit [Ping timeout: 265 seconds]
<sgronblom> happens to me all the time too
d3vic3 has joined #ruby
RainbowD_ is now known as RainbowDashh
<bnagy> Jackneill: https://gist.github.com/2994849 or something
<Jackneill> bnagy: thanks
umttumt has quit [Remote host closed the connection]
niklasb has joined #ruby
umttumt has joined #ruby
fermion has joined #ruby
qwerxy_ has joined #ruby
qwerxy has quit [Read error: Connection reset by peer]
dr0p has quit [Read error: Connection reset by peer]
mxweas has quit [Ping timeout: 260 seconds]
RainbowDashh has quit [Disconnected by services]
RainbowDashh has joined #ruby
RainbowDashh has quit [Remote host closed the connection]
plastics has joined #ruby
ramblex has quit [Quit: ramblex]
irakli has joined #ruby
RainbowDashh has joined #ruby
KDr2 has quit [Remote host closed the connection]
mpereira has quit [Ping timeout: 272 seconds]
wpaulson has joined #ruby
plastics has quit [Ping timeout: 246 seconds]
irakli has quit [Client Quit]
<ichilton> Why would rspec give: "All examples were filtered out" ?
<apeiros_> random guess - because you specified filters that matched all specs, so all specs were filtered out…
federic has joined #ruby
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
Morkel has joined #ruby
wpaulson_ has joined #ruby
cousine has quit [Remote host closed the connection]
heftig has joined #ruby
<ij> Does 1.8.7 have positive look-behinds in regex?
wpaulson has quit [Ping timeout: 255 seconds]
wpaulson_ is now known as wpaulson
freeayu has quit [Quit: 离开]
wvms has quit [Ping timeout: 264 seconds]
mayankkohaley has quit [Read error: Connection reset by peer]
<Tasser> ij, just use 1.9? :-)
mayankkohaley has joined #ruby
<apeiros_> ij: no
<apeiros_> at least iirc
<apeiros_> you can try it easily
<Tasser> http://stackoverflow.com/questions/11205458/multiple-coders-on-the-same-source-php is it just me or is it correct to lose faith in coders?
<apeiros_> Tasser: why limit it to coders?
<Tasser> apeiros_, because of that example
nirakara has joined #ruby
<apeiros_> …
<Tasser> you don't like limits?
hemanth has quit [Read error: Connection reset by peer]
<apeiros_> I was more like: why not lose faith in humanity. it's not like non-coders fared any better…
iocor has quit [Quit: Computer has gone to sleep.]
hemanth has joined #ruby
ringotwo has joined #ruby
ringotwo has quit [Remote host closed the connection]
rizzylt has joined #ruby
sejo has quit [Ping timeout: 260 seconds]
nari_ has quit [Ping timeout: 245 seconds]
<hoelzro> fg
<hoelzro> oops
<hoelzro> wrong window =/
wilersh has quit []
iocor has joined #ruby
<ij> apeiros_: Failed, hoped maybe I'm doing it wrong.
<ij> Tasser: :-) can't
<Tasser> ij, talk to the officials about speed, just in case ;-)
<ij> The officials do not have time right now to rewrite.
<ij> meaning port
<Tasser> ij, to answer your question, why not simply try it? a simple irb snippet should do it
<ij> 13:01:01 ij | apeiros_: Failed, hoped maybe I'm doing it wrong.
<Hanmac> Tasser : i am a fefe reader too :D
<Hanmac> i will read it until my coverment blocks the site
<kapowaz> anyone here used Sprockets in a Sinatra project? I'm trying to work out how you can (at least temporarily) disable it in development mode, so that page requests take less than a year each.
* apeiros_ wants a coverment too
<apeiros_> sounds cozy
<Tasser> ruby -e '/(?<=foo)/'
<Tasser> -e:1: undefined (?...) sequence: /(?<=foo)/
hemanth has quit [Read error: Connection reset by peer]
<Tasser> kapowaz, don't load it?
hemanth has joined #ruby
Spooner has joined #ruby
d3vic3 has quit [Quit: leaving]
nai has quit [Remote host closed the connection]
<kapowaz> that's not exactly a solution
<kapowaz> if I'm using it to parse LESS files, I can't just *remove* it
<kapowaz> I need to fall back to static, generated versions if I'm to disable it.
<kapowaz> there must be some way of doing this (I'm sure it exists if you're using it in Rails) but I haven't any idea how you do it when you're using it ad-hoc (i.e. with Sinatra)
d3vic3 has joined #ruby
qwerxy_ has quit [Read error: No route to host]
qwerxy has joined #ruby
ramblex has joined #ruby
ramblex has quit [Client Quit]
frishi has joined #ruby
ramblex has joined #ruby
mxweas has joined #ruby
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
yugui is now known as yugui_zzz
prtksxna has quit [Ping timeout: 244 seconds]
SqREL has joined #ruby
prtksxna has joined #ruby
vonsar has joined #ruby
<ij> I saw you can make a class, that you assign to a variable name or some weird shenanigans like that. Can you do that with modules?
boo1 has joined #ruby
umttumt has quit [Remote host closed the connection]
<sepp2k> ij: Yes.
<ij> How?
<Tasser> ij, foo = Module
<ij> Ooh, hmm. But that class was also anonymous, I think.
<sepp2k> my_module = Module.new or my_module = MyExistingModule
<sepp2k> Depending on what you mean.
<boo1> Could someone explain me, what is a major difference between 'rails -v' and 'bundle exec rails -v', considering that rails is installed in current rvm gemset?
<boo1> gem list rails -> rails (3.0.7)
<boo1> bundle show rails -> /home/boo1ean/.rvm/gems/ruby-1.9.2-p180@someset/gems/rails-3.0.7
<boo1> which rails -> /home/boo1ean/.rvm/gems/ruby-1.9.2-p180@someset/bin/rails
<boo1> bundle exec rails -v -> ok
<ij> yay!
<ij> I probably want a module.new
<sepp2k> Note that when you do, class Foo ... end or module Foo ... end you're already creating a class/module and assigning it to a variable. Just with the restriction that the variable has to be a constant in that case - not a local variable.
bitsar2 has quit [Ping timeout: 260 seconds]
<sepp2k> ij: Yes, if you want it to be anonymous, you want Module.new
niklasb has quit [Ping timeout: 265 seconds]
ringotwo has joined #ruby
malkomalko has joined #ruby
ringotwo has quit [Remote host closed the connection]
umttumt has joined #ruby
rails has quit [Changing host]
rails has joined #ruby
sejo has joined #ruby
ringotwo has joined #ruby
Shahor has joined #ruby
Shahor has quit [Client Quit]
prateekp has quit [Ping timeout: 252 seconds]
kaB00M has joined #ruby
kpshek has joined #ruby
ringotwo has quit [Remote host closed the connection]
<kaB00M> anyone uses rpg maker in here?
Guedes_out is now known as Guedes
flype has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
KDr2 has joined #ruby
<Hanmac> kaB00M; i used them, whats your question?
<kaB00M> Do you like the new version?
ringotwo has joined #ruby
nirakara has quit [Quit: This computer has gone to sleep]
liluo has joined #ruby
kaB00M has left #ruby [#ruby]
samuel02 has quit [Remote host closed the connection]
ringotwo has quit [Remote host closed the connection]
Asher has quit [Ping timeout: 240 seconds]
bluenemo has joined #ruby
sleetdro_ has joined #ruby
Asher has joined #ruby
<ij> Where in the hell is the parser in redcloth gem?
sleetdro_ has quit [Remote host closed the connection]
sleetdrop has quit [Read error: Connection reset by peer]
sleetdrop has joined #ruby
<Tasser> ij, c exteions?
bluenemo has quit [Read error: Operation timed out]
iocor has quit [Quit: Computer has gone to sleep.]
<ij> Yes. Fuck.
<ij> Oh, god. :[
<atmosx> what?
Niamkik has quit [Quit: leaving]
<umttumt> :[
mwilson_ has quit [Excess Flood]
mdaisuke has quit [Remote host closed the connection]
<ij> atmosx: code
mwilson_ has joined #ruby
mwilson_ has quit [Excess Flood]
<atmosx> thought you called
<atmosx> k
mwilson_ has joined #ruby
SqREL has quit [Quit: Leaving]
Lachryma has joined #ruby
<ij> Oh, haha.
prtksxna_ has joined #ruby
prtksxna has quit [Read error: Connection reset by peer]
SqREL has joined #ruby
mayankkohaley_ has joined #ruby
mayankkohaley has quit [Ping timeout: 272 seconds]
nirakara has joined #ruby
mayankkohaley_ is now known as mayankkohaley
niklasb has joined #ruby
<ij> I need line-brakes(<br/>s only) in redcloth to become new paragraphs. Is there a sane way to do it?
Asher1 has joined #ruby
Niamkik has joined #ruby
b26 has joined #ruby
Asher has quit [Ping timeout: 272 seconds]
larissa has joined #ruby
iamlacroix has quit [Remote host closed the connection]
pk1001100011 has quit [Quit: I've got a feeling there's a fish in the floor; I'd better squish it or he'll swim out the door; Sometimes they take me for a walk in the sun; I see my fish and I have to run]
sleetdrop has quit []
mohits has quit [Read error: Connection reset by peer]
lxsameer has joined #ruby
BiHi has joined #ruby
bluenemo has joined #ruby
kill-9_ has joined #ruby
<Tasser> ij, search n dest^Wreplace ?
Criztian has quit [Remote host closed the connection]
Asher1 has quit [Quit: Leaving.]
Asher has joined #ruby
nirakara has quit [Quit: This computer has gone to sleep]
philips has quit [Excess Flood]
Progster has joined #ruby
fgwaegeawgfwa has left #ruby [#ruby]
philips has joined #ruby
umttumt has quit [Remote host closed the connection]
umttumt has joined #ruby
jesly has quit [Ping timeout: 248 seconds]
nanderoo has joined #ruby
bluenemo_ has joined #ruby
bluenemo_ has quit [Changing host]
bluenemo_ has joined #ruby
kalleth_1 is now known as kalleth
mrmist_ is now known as mrmist
liluo has quit [Remote host closed the connection]
fearoffish has joined #ruby
gtuckerkellogg has joined #ruby
krusty_ar has joined #ruby
fbernier has joined #ruby
jrist-afk is now known as jrist
_br_ has quit [Excess Flood]
liluo has joined #ruby
timonv has quit [Remote host closed the connection]
frishi has quit [Quit: Leaving...]
_br_ has joined #ruby
ken_barber has joined #ruby
mvangala_home has joined #ruby
jxf has joined #ruby
prtksxna has joined #ruby
prtksxna_ has quit [Read error: Connection reset by peer]
canton7 has joined #ruby
jstew has joined #ruby
jcromartie has joined #ruby
mvangal__ has joined #ruby
ph^ has quit [Remote host closed the connection]
ph^ has joined #ruby
mengu has joined #ruby
iocor has joined #ruby
jgarvey has joined #ruby
mvangala_home has quit [Ping timeout: 272 seconds]
pk1001100011 has joined #ruby
eurek has joined #ruby
ph^ has quit [Ping timeout: 250 seconds]
crankycoder has joined #ruby
jesly has joined #ruby
timonv has joined #ruby
yugui_zzz is now known as yugui
bluOxigen has quit [Ping timeout: 244 seconds]
emmanuelux has quit [Quit: @+]
liluo has quit [Remote host closed the connection]
sailias has joined #ruby
<rking> Hrm. I wonder why ~/.rbenv/bin/ doesn't have ruby, etc. (only rbenv and ruby-local-exec)
alindeman has quit [Ping timeout: 240 seconds]
jxpx777 has joined #ruby
<rking> rbenv versions shows 1.9.3-p194, and it's selected.
tommyvyo_ has joined #ruby
cakehero has joined #ruby
<workmad3> rking: is it .rbenv/bin or .rbenv/shims that has the binaries?
<rking> workmad3: Ahh, you're right.
nanderoo has quit [Quit: Leaving.]
<cakehero> For some reason I get an error saying that capistrano after I have installed it via gem, is there some checks I could do to figure out why?
<rking> Yep, shims goes in $PATH, not bin.
<rking> cakehero: I can't believe you the whole thing.
tk___ has joined #ruby
<cakehero> Not sure I understand that sentence - maybe you are missing a word?
<rking> Then you get my point. =)
<rking> Reread your last.
<cakehero> heh
<cakehero> Indeed
<cakehero> For some reason I get an error saying that capistrano isn't available after I have installed it via gem, is there some checks I could do to figure out why?
dsa has joined #ruby
<cakehero> more clarity ----> http://pastebin.com/jb68VPaD
<rking> cakehero: Probably it installed to a different ruby.
<cakehero> so I left and re-entered that directory and it is switching to the right version
<cakehero> b/c of the .rvmrc file
<rking> Right, rvm.
<rking> cakehero: My recommendation is to switch to rbenv and watch things magically get less painful.
<cakehero> I tried installing as sudo and regular user
<cakehero> aiyah
pu22l3r has joined #ruby
awarner has joined #ruby
<fbernier> Any reason why json parsing does not default to symbolize_keys => true ?
dr_diamond has quit [Quit: Bye !]
<rking> I'm going to give rvm2 a real look, but I'm completely done with rvm1. It's too complicated for what it does. rbenv is like, one change to $PATH (which I did the wrong one a few minutes ago, but that was the entirety of the debugging: figuring out what's wrong with that one change)
<hoelzro> rking: I'm pretty new to Ruby; what are the chief benefits of rbenv over rvm?
adeponte has quit [Read error: Connection reset by peer]
<apeiros_> fbernier: because that'd be a memory leak
adeponte has joined #ruby
<rking> hoelzro: rvm's implementation monkeys with so many things about the shell environment. Everything gets wrapped in functions that do indirect things.
<cakehero> rking would I be able to use rbenv while the rest of the team user rvm? I'm relatively new to ruby
atmosx has quit [Ping timeout: 276 seconds]
<rking> cakehero: Oh, no, that'd be a bad idea.
<fbernier> apeiros: ah, so symbolizing the keys requires more memory?
<rking> cakehero: Then we can debug your rvm issue.
<apeiros_> fbernier: no, the symbols require memory
<cakehero> okay - and I can say to use rbenv on the next project =)
<cakehero> heh
<apeiros_> and a symbol is never gc'ed
EzeQL has quit [Ping timeout: 240 seconds]
<hoelzro> fbernier: symbols never get GC'd
dsa has quit [Client Quit]
<fbernier> oh
crankycoder has quit [Remote host closed the connection]
<rking> cakehero: Basically the "gem" referred to when you said, "gem install capistrano" was not installing to the same path as when you later invoked it.
<hoelzro> rking: what do you use to install rubies into rbenv?
<apeiros_> you should *never* symbolize unvalidated userinput
<hoelzro> because iirc, rbenv doesn't do that by itself
pu22l3r has quit [Remote host closed the connection]
EzeQL has joined #ruby
<rking> hoelzro: ruby-build
<apeiros_> you should also not symbolize any potentially infinitely varying data
<cakehero> rking so what paths should I check? I see that it installed it for my app and for my version of ruby (basing that on the path I see it calls)
<rking> hoelzro: I kick it all off with this script: https://github.com/sharpsaw/ruby-dots/blob/master/bin/,rbenvi
<fbernier> apeiros_: makes sense, never thought about that ... thanks
pu22l3r has joined #ruby
jesly has quit [Read error: Connection reset by peer]
atmosx has joined #ruby
geekbri has joined #ruby
<cakehero> /Users/dkullmann/.rvm/gems/ruby-1.9.3-p125@mhealth/bin/cap <---- health === application, ruby version === correct.
Mon_Ouie has quit [Ping timeout: 260 seconds]
Mon_Ouie has joined #ruby
adeponte has quit [Read error: Connection reset by peer]
<rking> cakehero: Oh, odd.
<cakehero> So that file calls gem 'capistrano' version and load Gem.bin
<cakehero> (that file isn't where the error is)
vectorshelve has quit [Quit: Page closed]
adeponte has joined #ruby
<cakehero> it looks like that uses a site_ruby version
crankycoder has joined #ruby
<cakehero> when it calls load
<rking> cakehero: Maybe it's a gemset thing then.
jxf has quit [Ping timeout: 264 seconds]
jxf has joined #ruby
<cakehero> <--- newb, can you elaborate?
<cakehero> Should I be installing capistrano, specifically, with sudo?
<rking> cakehero: OK, so the problem trying to be solved is gem versions
<cakehero> I'm not sure what effect that has on RVM
adeponte has quit [Read error: Connection reset by peer]
<cakehero> ^--- ok - listing
<cakehero> *listening
henn1nk has left #ruby ["WeeChat 0.3.6"]
adeponte has joined #ruby
<rking> A given project has a specific set of dependencies. The chaotic way to do things is ad-hoc try to get them installed in the dev/staging/live envs all similarly.
<workmad3> cakehero: if you're using rvm, don't install gems with sudo
withnale has joined #ruby
<cakehero> workmad3 - ok, acknowledged
<rking> But it gets really complicated when you try to simultaneously run several projects with several different gem requirements.
yfeldblum has quit [Ping timeout: 276 seconds]
<cakehero> rking well there is a bundle that was installed initially, but capistrano wasn't part of it
<rking> So rvm invented "gemsets". It's the thing after the "@" in your directory there, "mhealth"
<cakehero> GEmfile?
<cakehero> oh I see
<cakehero> Right, this gem set is for my application
<rking> Yeah, Gemfiles are the other (and better) way to solve the same problem.
nanderoo has joined #ruby
<rking> That uses Bundler.
depy has joined #ruby
Targen has quit [Read error: Operation timed out]
plastics has joined #ruby
<cakehero> So initially i used bundle install and all those gems installed properly
schickung has joined #ruby
<cakehero> Then I installed capistrano separately and it' snot working
<cakehero> I also installed vagrant separately
<cakehero> which had, actually, the same problem and was resolved when I installed it from a package instead of a gem
<cakehero> So maybe in the process of installing new gems I screwed up this gem set
<rking> Keep in mind that both gemsets and Bundler are ♡ing you by trying to reduce $: to a minimum, so you don't accidentally have a gem inadvertently work in one place (like your dev env) then fail in your production env.
carloslopes has joined #ruby
<rking> Yeah.
<rking> Is the rest of the team using gemsets?
<cakehero> I believe everyones using the same thing I am
<cakehero> I followed their instructions to install, heh
<rking> Ahh, could be a glitch.
<rking> (In the install instructions)
<cakehero> Or maybe I didn't execute them in the proper order
<cakehero> Can I blow away this gem set and restart?
<rking> Yep, totally.
<cakehero> rm -rf (repo + .rvm file) ?
<rking> That's a bit of a big hammer
<rking> But sure.
<cakehero> but i have to tell rvm to remove the gemset also?
<cakehero> b/c it's like
<rking> Oh wait, I was thinking you were referring to ~/.rvm
<cakehero> in ~/.rvm somewhere
<Hanmac> PS: when you do rm -rf PLEASE me carefull that your string is escaped
<rking> Only removing the repo and its .rvm file is the little hammer. =)
<cakehero> Is there a medium sized hammer?
<rking> Yep.
<cakehero> Maybe something with a leather grip
eurek has quit [Quit: Computer has gone to sleep.]
<rking> I'm looking up how to nuke a gemset from within rvm now
fearoffish has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
iamlacroix has joined #ruby
davidw has quit [Changing host]
davidw has joined #ruby
<cakehero> rking likewise
<cakehero> rvm cleanup?
enroxorz has joined #ruby
enroxorz has quit [Changing host]
enroxorz has joined #ruby
d3vic3 has quit [Ping timeout: 256 seconds]
<cakehero> looks like you can remove ruby + gems
d3vic3 has joined #ruby
<rking> I'm thinking it'd be: rvm gemset delete mhealth
RainbowDashh has quit [Quit: SLEEP MODE. <REDACTED SUBORBITAL QUOTE HERE>]
Niamkik has quit [Ping timeout: 248 seconds]
chson has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 244 seconds]
ceradon has quit [Ping timeout: 272 seconds]
<cakehero> k
boo1 has left #ruby [#ruby]
dhruvasagar has joined #ruby
iamlacroix has quit [Ping timeout: 272 seconds]
awarner has quit [Remote host closed the connection]
tzvi has joined #ruby
Niamkik has joined #ruby
<cakehero> And then bundle install rking ?
<rking> Yes, the rking gem comes highly recommended.
<rking> Oh, no, you were asking a different thing.
whuffor has quit [Ping timeout: 245 seconds]
<rking> Yeah, you can do that.
ryan0x2 has joined #ruby
<rking> In fact if you're using Bundler gemsets are redundant.
<cakehero> heh
iori has quit [Remote host closed the connection]
<rking> So I would use the default set.
tcopp has joined #ruby
<cakehero> wouldn't bundle install put the gems in the RVM gem set?
<rking> Yep, exactly.
iori has joined #ruby
iori has quit [Remote host closed the connection]
<rking> Whichever you have selected through rvm at the time.
<cakehero> but bundle normally keeps them separate for you anyway?
<cakehero> the rvm file only says to use a certain ruby version (it's just one line)
<cakehero> use ruby-version@mhealth
iori has joined #ruby
flip_digits has joined #ruby
deens has quit [Ping timeout: 272 seconds]
eurek has joined #ruby
<rking> Yep, it's fine if you do or don't use a gemset on top of Bundler.
carlyle has joined #ruby
ctshh has joined #ruby
<cakehero> okay cool
<cakehero> weaksauce === it didn't fix it. blowing away gemset again and also blowing away the repo
<rking> Whenever you run `bundle exec <something>` bundle will completely sanitize your $:, making sure that you don't have accidental gems that get run but aren't in the Gemfile, and also that you /do/ have the ones that are in the Gemfile.
jxf has quit [Ping timeout: 264 seconds]
<rking> cakehero: How detailed are the install instructions?
<cakehero> I mean they are pretty much what you'd expect
<cakehero> download repo, run bundle
<cakehero> gem install capistrano
<rking> Command-for-command or are they like, "Ehh, go get rvm and then install some gems and stuff."
<cakehero> just a few staps
<ctshh> i'd like to strip the last part of a URL, ie. turn http://some.domain/some/url/path/that/is/long.html into http://some.domain/some/url/path/that/is/ - without using bash's "cut". any pointers would be appreciated.
<cakehero> *steps
<cakehero> they are command for command
mnaser has joined #ruby
ph^ has joined #ruby
iori has quit [Remote host closed the connection]
whuffor has joined #ruby
<rking> cakehero: OK. Bring out the giant hammer. Make a new user, get nothing but the repo and rvm, and do each command exactly.
<rking> cakehero: A semigiant hammer would be to set HOME=$HOME/tmp and that would probably be just as good, but this is a 100% clean slate.
ij has quit [Quit: WeeChat 0.3.8]
<cakehero> ok cool
<rking> ctshh: Is this already in a Ruby script?
d3vic3 has quit [Ping timeout: 265 seconds]
<rking> ctshh: Or are you simply in a shell environment at that poitn?
carpediembaby has joined #ruby
<ctshh> rking: this is for a script
<banisterfiend> man i have 9" straight-up for pry's exception exploring abilities: https://github.com/injekt/slop/issues/70
lorandi has joined #ruby
jesly has joined #ruby
explody has quit [Remote host closed the connection]
<rking> ctshh: I'd echo http://some.domain/some/url/path/that/is/long.html | sed 's,[^/]*$,,'
<carpediembaby> hi. i installed ruby 1.9.3 from source (ruby -v gives ruby 1.9.3p194). but when i am looking at sources (/usr/local/lib), i only see a folder for ruby/1.9.1. what's going on?
explody has joined #ruby
ringotwo has joined #ruby
<ctshh> rking: :) i do not want to use bash, i'd like to manipulate the string in ruby directly.
td123 has joined #ruby
Cpudan80_ has quit [Quit: Leaving]
<stockholm> what is that editor people use on mac to code ruby?
uris has joined #ruby
dv310p3r has joined #ruby
sailias has quit [Quit: Leaving.]
niklasb has quit [Ping timeout: 272 seconds]
<rking> ctshh: But you're in shell? Then echo http://some.domain/some/url/path/that/is/long.html | ruby -pe 'gsub /[^\/]*$/, ""'
<rking> stockholm: vim.
<rking> vim is the only editor. At all.
<ctshh> rking: no, i need to manipulate within the script.
<stockholm> doh, i had no clue there were so many
<rking> stockholm: There aren't. There's only the one.
<stockholm> rking: i know vim.
Niamkik has quit [Ping timeout: 255 seconds]
d3vic3 has joined #ruby
mnaser has quit [Quit: Computer has gone to sleep.]
<Hanmac> i use eclipse for bigger stuff
<rking> stockholm: So what dev features are you looking for that you can't already cleanly do with vim+shell ?
yugui is now known as yugui_zzz
jxf has joined #ruby
<ctshh> rking: File.dirname("...") was what I was looking for. Thanka anyways!
<rking> ctshh: Cool. =)
ananthakumaran has quit [Quit: Leaving.]
<stockholm> syntax highlighting, flymake like error detection, code completion
<cakehero> rking medium-sized hammer successful
<stockholm> the name i thought of was textmate. is that any good?
<stockholm> usually i use emacs
ananthakumaran has joined #ruby
gmci has joined #ruby
<cakehero> rking rm -rf <repo> && rvm gemset delete <repo> && git clone <url> <dir> && cd dir && bundle install && gem install capistrano === success
<stockholm> but emacs on mac is not so nice. (i build it with homebrew)
<rking> cakehero: Why is capistrano not in the Gemfile?
<cakehero> rking the $64k question
<rking> Wait wait, where's this $64k going? To the asker, the answerer, or someone else?
jesly has quit [Ping timeout: 248 seconds]
ctshh has quit [Quit: Page closed]
kpshek has quit []
kpshek has joined #ruby
gmci has quit [Read error: No route to host]
hynkle has joined #ruby
cantonic has joined #ruby
dhodgkin has quit [Ping timeout: 252 seconds]
dasuchin_ is now known as dasuchin
dhruvasagar has quit [Ping timeout: 255 seconds]
Liquid_X has left #ruby [#ruby]
gmci has joined #ruby
arturaz has quit [Remote host closed the connection]
arturaz has joined #ruby
alindeman has joined #ruby
hynkle has quit [Quit: hynkle]
yfeldblum has joined #ruby
jesly has joined #ruby
plastics has quit [Ping timeout: 244 seconds]
v0n has joined #ruby
ringotwo has quit [Remote host closed the connection]
ananthakumaran has quit [Quit: Leaving.]
<cakehero> rking to the client who's paying way too much money to have this stuff not work =)
linduxed has quit [Ping timeout: 244 seconds]
<cakehero> and the money would go to the guy who hired me to fix it, and, I would get an hourly stipend in exchange
ringotwo has joined #ruby
linduxed has joined #ruby
carlyle has quit [Remote host closed the connection]
Jake232 has joined #ruby
niklasb has joined #ruby
<rking> O.
samfisher has joined #ruby
<samfisher> hi ruby people
<rking> I samfishery person.
mnaser has joined #ruby
flou has joined #ruby
<rking> s/I/Hi/ =P
flou has quit [Client Quit]
<samfisher> how can I audit a win system with ruby? I need to list hardware, installed apps and maybe dir list all the drives
tzvi has quit [Ping timeout: 272 seconds]
<samfisher> of course, no GUI and the output can be just text
<rking> Well, there's always the Win32API gem deal, where you can directly call anything you want.
<rking> But I bet there's something wrapped nicer for those things.
xaq has joined #ruby
philips has quit [Excess Flood]
<samfisher> rking: thanks
philips has joined #ruby
<rking> samfisher: Np. I'm sure listing hardware would be similar, you'd just have to find the right OLE thing.
kevinbond has joined #ruby
<samfisher> another one: can I use ruby in client-server manner, so I can spawn a shell on the remote system?
<cakehero> rking I'm sure you can earn part of the $64k if you want
<cakehero> heh
cezar has joined #ruby
niklasb has quit [Ping timeout: 255 seconds]
<cakehero> if hanging out in IRC is less thrilling than working
the_jeebster has joined #ruby
<cakehero> brb, restrating
cezar has quit [Client Quit]
<cakehero> and/or getting starbucks
cakehero has quit [Quit: Leaving...]
_md has joined #ruby
tzvi has joined #ruby
booginga has joined #ruby
jesly has quit [Ping timeout: 272 seconds]
awarner has joined #ruby
PaciFisT has joined #ruby
jesly has joined #ruby
chson has joined #ruby
internet_user has joined #ruby
boo1 has joined #ruby
dhodgkin has joined #ruby
ryan0x2 has quit [Remote host closed the connection]
cpruitt has joined #ruby
cpruitt has left #ruby [#ruby]
polysics has joined #ruby
plastics has joined #ruby
omry has quit [Remote host closed the connection]
td123 has quit [Read error: Connection reset by peer]
cakehero has joined #ruby
randomubuntuguy has joined #ruby
Morkel has quit [Quit: Morkel]
krzkrzkrz has joined #ruby
krz has quit [Read error: Connection reset by peer]
krzkrzkrz is now known as krz
mnaser has quit [Quit: Computer has gone to sleep.]
pk1001100011 has quit [Quit: I've got a feeling there's a fish in the floor; I'd better squish it or he'll swim out the door; Sometimes they take me for a walk in the sun; I see my fish and I have to run]
iamlacroix has joined #ruby
yankhates has joined #ruby
prometheus has joined #ruby
rbanffy has joined #ruby
nateberkopec has joined #ruby
hunglin has joined #ruby
ananthakumaran has joined #ruby
k_89 has joined #ruby
dhodgkin has quit [Ping timeout: 245 seconds]
td123 has joined #ruby
iamlacroix has quit [Remote host closed the connection]
jprovazn is now known as jprovazn_away
samfisher has quit [Quit: exit error code 434]
rashm77 has joined #ruby
hasrb has joined #ruby
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
moshef has joined #ruby
_br_ has quit [Remote host closed the connection]
phantasm66 has joined #ruby
kenperkins has quit [Quit: Computer has gone to sleep.]
timonv has quit [Read error: No route to host]
ringotwo has quit [Remote host closed the connection]
randomubuntuguy has quit [Quit: Leaving]
gtuckerkellogg has quit [Ping timeout: 246 seconds]
rashm77 has quit []
joshman_ has joined #ruby
flype has joined #ruby
timonv has joined #ruby
bradhe has quit [Ping timeout: 272 seconds]
ipoval has joined #ruby
jesly has quit [Ping timeout: 246 seconds]
indian has quit [Ping timeout: 255 seconds]
randomautomator has joined #ruby
b26 has quit [Remote host closed the connection]
wargasm has joined #ruby
b26 has joined #ruby
digitalcakestudi has joined #ruby
d1zzYLuLz has left #ruby [#ruby]
mikepack has joined #ruby
mnaser has joined #ruby
randomubuntuguy has joined #ruby
kkiero has joined #ruby
moshef has quit [Quit: moshef]
timonv has quit [Ping timeout: 256 seconds]
<Synthead> Does rescue without specifying any exceptions catch Timeout::Error?
mnaser has quit [Client Quit]
pk1001100011 has joined #ruby
ryan0x2 has joined #ruby
<apeiros_> Synthead: in older rubies: no
tk___ has quit [Quit: ばいばい]
<apeiros_> I'm not sure, but I think they changed the ancestry of Timeout::Error
* apeiros_ checks
<Synthead> apeiros_: ah, so I have to specifically state rescue Timeout::Error?
Progster has quit [Ping timeout: 265 seconds]
<apeiros_> yes, in newer rubies it will rescue a Timeout::Error
<apeiros_> in older rubies, it didn't (again: iirc)
<apeiros_> and yes, that means in older rubies you would have to explicitly rescue it
<apeiros_> but you should *always* rescue specific exceptions.
<apeiros_> catch-alls are only ever good for logging purposes
Axsuul has quit [Ping timeout: 246 seconds]
alek_b has joined #ruby
prometheus has quit [Ping timeout: 240 seconds]
sailias has joined #ruby
lxsameer has quit [Quit: Leaving]
jxf has quit [Read error: Connection reset by peer]
jxf has joined #ruby
gtuckerkellogg has joined #ruby
josefig has joined #ruby
josefig has quit [Changing host]
josefig has joined #ruby
hasrb has quit [Remote host closed the connection]
TPFC-SYSTEM has quit [Quit: TPFC-SYSTEM]
uris has quit [Ping timeout: 248 seconds]
bradhe has joined #ruby
alek_b_ has quit [Ping timeout: 265 seconds]
tvw has quit [Remote host closed the connection]
tvw has joined #ruby
KDr2 has quit [Remote host closed the connection]
ipoval has quit [Quit: ipoval]
josefig_ has joined #ruby
josefig has quit [Read error: Connection reset by peer]
randomubuntuguy has quit [Quit: Leaving]
noganex has quit [Ping timeout: 264 seconds]
randomubuntuguy has joined #ruby
timonv has joined #ruby
noganex has joined #ruby
dhodgkin has joined #ruby
jesly has joined #ruby
eurek has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<rking> apieros_: Interesting statement ("only ever good for logging").
<rking> Anyone want to + or - the book, "Exceptional Ruby"? I'm thinking about reading it.
mikeycgto has joined #ruby
mikeycgto has quit [Changing host]
mikeycgto has joined #ruby
wargasm has quit [Read error: Connection reset by peer]
wargasm has joined #ruby
andreime has quit [Quit: Lost terminal]
<t_j> anyone tried/know of wait/sleep queues for ruby?
<apeiros_> t_j: require 'thread'; q = Queue.new
timonv_ has joined #ruby
<t_j> apeiros_: yeah, well sort of
timonv has quit [Ping timeout: 265 seconds]
iamjarvo has joined #ruby
<iamjarvo> is i wanted a quick way to figure out if versions of two gems are compatible what should id o
<t_j> i have 3 threads reading messages from an MQ, and i only want to process one message at a time, but messages from Queue A must be processed before ones from B or C, B and C have no prioritiy requirements
phantasm66 has quit [Quit: *poof*]
<apeiros_> t_j: yes. that's what Queue does…
<apeiros_> unless I'm misunderstanding something…
<t_j> i need message priorities
<apeiros_> though, having 2 threads wait for the other to finish the current message seems to beat the purpose of having threads in the first place…
dhodgkin has quit [Ping timeout: 240 seconds]
<apeiros_> aha
<apeiros_> ruby-toolbox.com then
<apeiros_> pretty sure I came across priority queues
<rking> iamjarvo: Run your tests.
<rking> If they pass then the two gem versions are equivalent enough.
<t_j> apeiros_: so i would end up with 3 produces, and one consumer
<t_j> the work the consumer is doing will use all the CPU resources on the node until its finished, hence one a ta time
<iamjarvo> rking: well they are failing haha
<iamjarvo> so i gues shtey arent compatible
<apeiros_> t_j: I don't see why you'd want to use 3 queues for that. I'd say the solution to it would be with a single queue and let the messages which you say are for queue A simply have a higher priority
<t_j> apeiros_: i guess i can change the message format
<apeiros_> or did you mean (in your description) messages from *thread A* (instead of "from Queue A")
<t_j> apeiros_: at the moment each work unite type goes in a seperate queue
<t_j> but i can add a type field and use a single queue
SQLStud has joined #ruby
<t_j> i guess i can use a single work queue and add message priorities
<t_j> and the MQ will deal with it
baroquebobcat has joined #ruby
baroquebobcat has quit [Read error: Connection reset by peer]
uris has joined #ruby
thone_ has joined #ruby
baroquebobcat has joined #ruby
quest88 has joined #ruby
boo1 has quit [Ping timeout: 246 seconds]
<apeiros_> oh dear… after all the atrocities we had (and still have) to endure thanks to apt-get being totally dick-headed about ruby install, we now have gentoo doing stupid things too…
<apeiros_> on gentoo, echo $RUBY_OPT --> '-rauto_gem'
<apeiros_> of course that'll break any custom install of ruby…
lorandi has quit [Quit: Leaving]
<apeiros_> somebody earned a hard slap with a large trout for that… :-S
Jake232 has quit [Quit: Computer has gone to sleep.]
thone has quit [Ping timeout: 252 seconds]
brasten has joined #ruby
ckrailo has joined #ruby
prometheus has joined #ruby
umttumt has quit [Remote host closed the connection]
ben_alman has quit [Excess Flood]
snip_it_ has joined #ruby
andrewhl has joined #ruby
umttumt has joined #ruby
pradeepto has joined #ruby
ben_alman has joined #ruby
gianlucadv has joined #ruby
CheeToS has joined #ruby
pradeepto has quit [Changing host]
pradeepto has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
plastics has quit [Ping timeout: 255 seconds]
<Synthead> apeiros_: worked wonderfully, thanks! :D
indstry has joined #ruby
veex has joined #ruby
gianlucadv has quit [Client Quit]
v0n has quit [Quit: Quitte]
yugui_zzz is now known as yugui
albemuth has joined #ruby
wargasm has quit [Read error: Connection reset by peer]
mnaser has joined #ruby
wargasm has joined #ruby
gianlucadv has joined #ruby
wallerdev has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
gianlucadv has quit [Client Quit]
djdb has quit [Remote host closed the connection]
kenperkins has joined #ruby
rippa has joined #ruby
davidcelis has quit [Ping timeout: 246 seconds]
b26 has quit [Remote host closed the connection]
gianlucadv has joined #ruby
hasrb has joined #ruby
hmans has joined #ruby
darthdeus has quit [Quit: Linkinus - http://linkinus.com]
b26 has joined #ruby
jgrevich has joined #ruby
quest88 has quit [Quit: quest88]
bluenemo_ has quit [Remote host closed the connection]
mikepack has quit [Read error: Connection reset by peer]
punkrawkR has joined #ruby
Rizzle has joined #ruby
ViperMaul has joined #ruby
maesbn has quit [Remote host closed the connection]
<moos3> i have a quesiton about writing a ruby daemon that I want to wake up every x minutes and execute something, whats the best way to do this
nachtwandler has joined #ruby
mwilson_ has quit [Excess Flood]
mwilson_ has joined #ruby
<lectrick> Should I put a run-time constraint in my test suite or is that wrong because it's nondeterministic?
<hoelzro> lectrick: what kind of constraint?
schovi has quit [Remote host closed the connection]
mwilson_ has quit [Excess Flood]
Rizzle has quit [Ping timeout: 272 seconds]
mwilson_ has joined #ruby
<lectrick> hoelzro: We have some code that auto-links content and it was taking a very long time on certain input content (like over 30 seconds). I rewrote the regex and some of the code and I want to ensure its run-time stays low
dhodgkin has joined #ruby
<lectrick> Basically the regex was doing catastrophic backtracing which is unfortunately a trap that is very easy to fall into with any non-simple regex
ViperMaul has quit [Ping timeout: 255 seconds]
<lectrick> It would eventually finish but it was taking an unusably long time so I want to add a test to check run time on it
<hoelzro> oh, I see what you mean
<lectrick> The problem with adding run time checks to your test suite is that they are nondeterministic.
<hoelzro> hmm
<hoelzro> well
<hoelzro> I would make a special test for it
<hoelzro> ex. don't have it run as part of the normal test suite
<lectrick> Maybe I can WARN if it's long, but still pass the test?
<hoelzro> and it'd be nice if you could ensure that run time was strictly non-increasing, with some margin for error
<hoelzro> I dunno
<lectrick> hoelzro: exactly
rbanffy has quit [Ping timeout: 272 seconds]
udk is now known as UdontKnow
nirakara has joined #ruby
jesly has quit [Ping timeout: 244 seconds]
shevy2 has joined #ruby
mdhopkins has joined #ruby
<lectrick> hoelzro: the dev group here is talking about a separate profiling test suite that just does WARNs on performance expectations not being met
d3vic3 has quit [Ping timeout: 245 seconds]
mikepack has joined #ruby
cbuxton has joined #ruby
<hoelzro> that makes sense to me
d3vic3 has joined #ruby
ananthakumaran1 has joined #ruby
deryl has joined #ruby
macmartine has joined #ruby
ananthakumaran has quit [Ping timeout: 246 seconds]
adeponte has quit [Remote host closed the connection]
jamesaxl has quit [Ping timeout: 250 seconds]
cakehero has quit [Quit: Computer has gone to sleep.]
senny has quit [Remote host closed the connection]
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
<krz> is && the same as and ?
<hoelzro> almost
<hoelzro> precedence is different
justinmcp has quit [Ping timeout: 260 seconds]
Eldariof-ru has quit [Ping timeout: 265 seconds]
kevinbond has left #ruby [#ruby]
Asher has quit [Ping timeout: 246 seconds]
kevinbond has joined #ruby
krusty_ar has quit [Read error: Connection reset by peer]
Asher has joined #ruby
krusty_ar has joined #ruby
ringotwo has joined #ruby
kvirani has joined #ruby
davidcelis has joined #ruby
davidcelis has quit [Changing host]
davidcelis has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
yugui is now known as yugui_zzz
indstry has quit [Remote host closed the connection]
zommi has quit [Remote host closed the connection]
Asher1 has joined #ruby
hoelzro is now known as hoelzro|away
Asher has quit [Ping timeout: 245 seconds]
werdnativ has joined #ruby
Asher1 has quit [Client Quit]
robotmay has quit [Remote host closed the connection]
Asher has joined #ruby
mahmoudimus has joined #ruby
mnaser has quit [Quit: Computer has gone to sleep.]
Targen has joined #ruby
mahmoudimus has quit [Client Quit]
yfeldblum has quit [Ping timeout: 272 seconds]
savage- has joined #ruby
ringotwo has quit [Remote host closed the connection]
jjp has quit [Ping timeout: 240 seconds]
jjp has joined #ruby
Ontolog has joined #ruby
tyman has joined #ruby
Ontolog has quit [Read error: Connection reset by peer]
Ontolog has joined #ruby
justinmcp has joined #ruby
lkba has joined #ruby
noganex has quit [Ping timeout: 248 seconds]
aantix has joined #ruby
davidcelis has quit [Ping timeout: 265 seconds]
ryanf has joined #ruby
ringotwo has joined #ruby
noganex has joined #ruby
jesly has joined #ruby
d3vic3 has quit [Ping timeout: 265 seconds]
jxpx777 has quit [Quit: Mac is sleeping…]
larissa has quit [Quit: Saindo]
d3vic3 has joined #ruby
TPFC-SYSTEM has joined #ruby
AlbireoX`Laptop has joined #ruby
piotr has quit [Ping timeout: 272 seconds]
ryanf has quit [Quit: broken pipes |||]
hasrb has quit [Remote host closed the connection]
nirakara has quit [Ping timeout: 245 seconds]
mnaser has joined #ruby
litheum has joined #ruby
b26 has quit [Remote host closed the connection]
werdnativ has quit [Quit: werdnativ]
b26 has joined #ruby
stkowski has joined #ruby
wallerdev has quit [Quit: wallerdev]
bricker88 has joined #ruby
mneorr2 has joined #ruby
timonv_ has quit [Remote host closed the connection]
mneorr1 has quit [Read error: Operation timed out]
hasrb has joined #ruby
eywu has joined #ruby
lorandi has joined #ruby
atmosx has quit [Ping timeout: 276 seconds]
maletor has joined #ruby
CheeToS has quit [Ping timeout: 265 seconds]
atmosx has joined #ruby
sailias has quit [Quit: Leaving.]
flype has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Helius has quit [Remote host closed the connection]
francisfish has quit [Remote host closed the connection]
litheum has left #ruby [#ruby]
brianpWins has quit [Quit: brianpWins]
adeponte has joined #ruby
whitenoise has joined #ruby
_md has quit [Quit: Leaving...]
mockra has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
jeff_sebring has quit [Quit: Leaving]
apok has joined #ruby
jeff_sebring has joined #ruby
albemuth has quit [Quit: Leaving...]
aaroncm has joined #ruby
bluOxigen has joined #ruby
Araxia has joined #ruby
<David_Miller> I am wondering why when I use eventmachine.defer, which is supposed to run stuff in another thread, I can't see multiple threads in ps -axf
jimeh has quit [Ping timeout: 246 seconds]
<David_Miller> I thought a thread = process
yfeldblum has joined #ruby
rbanffy has joined #ruby
rbanffy has quit [Remote host closed the connection]
rbanffy_ has joined #ruby
<bnagy> it is not
<bnagy> processes contain threads
arturaz has quit [Ping timeout: 272 seconds]
<bnagy> or at least one, anyway
mrsolo has joined #ruby
fmcgeough has joined #ruby
dankest has joined #ruby
ringotwo has quit [Remote host closed the connection]
Drewch has quit [Ping timeout: 260 seconds]
<David_Miller> Is there a problem with running an obscene number of threads in one process? like 1000 or so?
mockra has quit [Remote host closed the connection]
genivf has joined #ruby
<bnagy> probably
<bnagy> also depends on your ruby VM
<bnagy> MRI has GIL anyway, so you'll gain less than nothing
schaerli has joined #ruby
<David_Miller> I say that because I told eventmachine to run 500 concurrent threads and it seems to be totally happy with that
<bnagy> I'd try to keep it to < 2x cores, in any case
jimeh has joined #ruby
Drewch has joined #ruby
<bnagy> well yeah it shouldn't crash, it will just be much worse than running a reasonable nuber
itnomad has joined #ruby
bambanx has joined #ruby
<bambanx> Hi
plastics has joined #ruby
wallerdev has joined #ruby
rizzylt has quit [Ping timeout: 265 seconds]
<bambanx> Guys exist a comand like a break for finish whatever thing are doing my program and goto the first line of my code? Like a goto
cirwim has quit [Quit: Leaving.]
mockra has joined #ruby
<David_Miller> I was confusing threading with forking
rizzylt has joined #ruby
<Azure> ... what?
aaroncm has quit [Remote host closed the connection]
ringotwo has joined #ruby
savage- has quit [Remote host closed the connection]
werdnativ has joined #ruby
indian has joined #ruby
<David_Miller> I think he wants next
fulmato has joined #ruby
ghanima has joined #ruby
<bambanx> ?
<bnagy> bambanx: you'd need to show code.
fowl has quit [Ping timeout: 248 seconds]
mpereira has joined #ruby
<bnagy> there is an actual goto, but don't use it
<bambanx> I cannot know bnagy i am my phone
<bnagy> ok well good luck
<bambanx> but i need some for go out my method i think i am making infinito loops
williamcotton has joined #ruby
<bnagy> I'm sure that's really clear to you
<bambanx> Lol
tvw has quit [Remote host closed the connection]
<bnagy> things that might be what you want: break next redo retry return
<bnagy> anyway, bedtime for me
bradhe has quit [Remote host closed the connection]
<David_Miller> thanks bnagy
bradhe has joined #ruby
<bambanx> well i am using methods with in methods and i think i am making like infinity loops just o need some go to my first line of my code
<bambanx> sorry for my english
minijupe has joined #ruby
wpaulson has joined #ruby
iocor has quit [Quit: Computer has gone to sleep.]
rbanffy_ has quit [Read error: Connection reset by peer]
rbanffy__ has joined #ruby
bradhe_ has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
dhodgkin has quit [Quit: WeeChat 0.3.5]
brianpWins has joined #ruby
hmans has quit [Quit: Leaving...]
avandenhoven has joined #ruby
Ethan has quit [Quit: *poof*]
Ethan has joined #ruby
davidw has quit [Ping timeout: 240 seconds]
umttumt has quit [Remote host closed the connection]
cantelope has joined #ruby
_md has joined #ruby
wallerdev has quit [Quit: wallerdev]
workmad3 has quit [Ping timeout: 248 seconds]
shadoi has joined #ruby
dfr|work has quit [Read error: Operation timed out]
williamcotton has quit [Ping timeout: 246 seconds]
mnaser has quit [Ping timeout: 244 seconds]
mahmoudimus has joined #ruby
cirwim has joined #ruby
cirwin has joined #ruby
artOfWar has joined #ruby
mnaser has joined #ruby
adamkittelson has joined #ruby
ephemerian has left #ruby [#ruby]
apok has quit [Remote host closed the connection]
apok has joined #ruby
noganex has quit [Ping timeout: 265 seconds]
bradhe_ has quit [Remote host closed the connection]
bradhe has joined #ruby
iocor has joined #ruby
Drewch has quit [Ping timeout: 244 seconds]
akem has joined #ruby
bradhe has quit [Ping timeout: 246 seconds]
mockra has quit [Remote host closed the connection]
Drewch has joined #ruby
cakehero has joined #ruby
siefca has joined #ruby
<siefca> hi
<siefca> How can I add some methods to module that has been already used to extend some class, so that the newly added method became visible in all classes that are using the module? Possible?
<cirwin> siefca: that's how it works by default
savage- has joined #ruby
k_89 has quit [Ping timeout: 248 seconds]
sailias has joined #ruby
<siefca> cirwin: I'm getting method missing
apeiros_ has quit [Remote host closed the connection]
<Mon_Ouie> When you include a module, its methods don't really get added to those of the class, the module gets inserted in the ancestry chain
<Mon_Ouie> Any example of what you're doing?
yankhates has quit [Ping timeout: 244 seconds]
<companion> completion.rb:9:in `require': cannot load such file -- readline (LoadError)
<companion> any one got a sollution to such thing with RVM?
<cirwin> companion: try https://rvm.io//packages/readline/
<Mon_Ouie> You can also install the C readline library with your regular package manager
xubuntu5 has joined #ruby
jd__ has joined #ruby
<siefca> Mon_Ouie: http://pastie.org/4155511
<companion> Mon_Ouie, which package is it?
<companion> cirwim, tried that :<
<siefca> Mon_Ouie: I'm trying to create a module which will "update" other module, already mixed-in and used by some classes
jxf has quit [Ping timeout: 264 seconds]
snip_it_ has quit [Quit: snip_it_]
ryan0x2 has quit [Remote host closed the connection]
<Mon_Ouie> Ah, yeah, Ah, yeah, including a module in another one doesn't behave the same way as adding a method for some reason
banisterfiend has quit [Read error: Connection reset by peer]
Sheehan has joined #ruby
mockra has joined #ruby
SQLStud has quit [Quit: Leaving]
Targen has quit [Ping timeout: 245 seconds]
kenichi has joined #ruby
banisterfiend has joined #ruby
burgestrand has joined #ruby
bambanx has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
Jake232 has joined #ruby
mikepack has quit [Read error: Connection reset by peer]
crankyco_ has joined #ruby
jamesaxl has joined #ruby
burgestrand has quit [Ping timeout: 244 seconds]
FJB-Guy has joined #ruby
pdtpatrick has joined #ruby
tewecske has joined #ruby
tewecske has quit [Max SendQ exceeded]
crankycoder has quit [Ping timeout: 265 seconds]
Wizywig has joined #ruby
mikepack has joined #ruby
Targen has joined #ruby
b26 has quit [Read error: Connection reset by peer]
albemuth has joined #ruby
SqREL has quit [Remote host closed the connection]
voodoofish430 has joined #ruby
`brendan has joined #ruby
<bricker88> Can someone explain how this works? rand(36**8).to_s(36)
mikepack has quit [Read error: Connection reset by peer]
ramblex_ has joined #ruby
<bricker88> I don't see to_s anywhere that takes arguments and I am not familiar with the double-asterisk syntax
etehtsea has joined #ruby
<norm> double asterisk is the power operator
<norm> "36 to the 8th power"
<Hanmac> 38**6 is 38⁶
<bricker88> Okay - good to know.
ananthakumaran1 has quit [Quit: Leaving.]
<norm> Hanmac: wow … way to throw down the superscript in IRC
<Hanmac> i mean 38**8 is 38⁸
qwerxy has quit [Quit: offski]
<Mon_Ouie> And the argument to to_s is the base
<bricker88> Mon_Ouie: What do you mean the base?
kenperkins has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<Hanmac> norm? what superscript?
<Mon_Ouie> 16 is base 10 notation, 0x10 is base 16 notation
<bricker88> oh I see! thanks!
mucker has joined #ruby
ramblex has quit [Ping timeout: 246 seconds]
ramblex_ is now known as ramblex
<Hanmac> bricker88 to_s(2) is binary, to_s(8) octogonal, to_s(16) hexagonal, and to_s(32) is the max
Eldariof-ru has joined #ruby
<norm> Hanmac: not sure what you did, but my IRC client shows your exponent in super-script (small and raised)
<Mon_Ouie> Has nothing to do with IRC, that's just unicode
<Hanmac> norm i am on linux, i could type that :P
<bricker88> Hanmac: Awesome. My last question is, is that Object's to_s, or does the Random class override it or is the argument undocumented?
<Mon_Ouie> It's Integer#to_s
<Mon_Ouie> rand(n) returns an integer, not a Random
ramblex has quit [Client Quit]
yankhates has joined #ruby
offby1 has quit [Quit: time to rebuild emacs!]
shadoi has quit [Quit: Leaving.]
shadoi has joined #ruby
<bricker88> Thank you everybody
pdtpatrick has quit [Remote host closed the connection]
pdtpatrick has joined #ruby
fowl has joined #ruby
andreime has joined #ruby
Wizywig has quit [Ping timeout: 245 seconds]
ElderFain_ is now known as ElderFain
iamjarvo has quit [Quit: Leaving.]
kenperkins has joined #ruby
c0rn_ has joined #ruby
BiHi has quit [Quit: Computer has gone to sleep]
etehtsea has quit []
emdub has quit [Read error: Operation timed out]
ghanima has quit [Quit: Leaving.]
emdub has joined #ruby
pting has joined #ruby
camilo has joined #ruby
burgestrand has joined #ruby
werdnativ_ has joined #ruby
brianpWins has quit [Quit: brianpWins]
randomubuntuguy has quit [Quit: Leaving]
rbanffy__ has quit [Quit: Ex-Chat]
rbanffy has joined #ruby
sam113101 has quit [Remote host closed the connection]
sepp2k has quit [Ping timeout: 260 seconds]
cantonic has quit [Quit: cantonic]
davidcelis has joined #ruby
FJB-Guy has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
werdnativ has quit [Ping timeout: 272 seconds]
werdnativ_ is now known as werdnativ
SQLStud has joined #ruby
S2kx has joined #ruby
ken_barber has quit [Remote host closed the connection]
luckman212_ has quit [Remote host closed the connection]
etehtsea has joined #ruby
etehtsea has quit [Excess Flood]
<unixabg> I have a webrick setup that I would like to have convert still images.jpg to an avi. I have the working code to run from a console of
etehtsea has joined #ruby
etehtsea has quit [Excess Flood]
<unixabg> but I am having dificulty getting to work correctly with webrick
cuppsy has quit [Ping timeout: 252 seconds]
S1kx has quit [Ping timeout: 264 seconds]
cantonic has joined #ruby
cuppsy has joined #ruby
<unixabg> in the webrick I have http://paste.debian.net/176464/ but I am not getting the avi back. Any ideas welcome.
sam113101 has joined #ruby
sam113101 has quit [Max SendQ exceeded]
apeiros_ has joined #ruby
Helius has joined #ruby
sam113101 has joined #ruby
ben_alman has quit [Excess Flood]
etehtsea has joined #ruby
sterNiX has joined #ruby
sterNiX has quit [Read error: Connection reset by peer]
davidcelis_ has joined #ruby
luckyruby has joined #ruby
davidcelis has quit [Ping timeout: 240 seconds]
Lachryma has quit [Ping timeout: 240 seconds]
wallerdev has joined #ruby
dankest has quit [Quit: Leaving...]
jxpx777 has joined #ruby
krusty_ar has quit [Read error: Connection reset by peer]
wargasm has quit [Ping timeout: 244 seconds]
mikepack has joined #ruby
ilyam has joined #ruby
krusty_ar has joined #ruby
fermion has quit [Quit: P]
ben_alman has joined #ruby
havenn has joined #ruby
Niamkik has joined #ruby
mnaser has quit [Ping timeout: 264 seconds]
krz has quit [Quit: krz]
mnaser has joined #ruby
Boohbah_ has joined #ruby
Boohbah has quit [Remote host closed the connection]
dv_ has quit [Remote host closed the connection]
mikepack has quit [Read error: Connection reset by peer]
mockra has quit [Remote host closed the connection]
ringotwo has quit [Remote host closed the connection]
rouss has quit []
kirun has joined #ruby
williamcotton has joined #ruby
mnaser has quit [Ping timeout: 255 seconds]
mnaser has joined #ruby
DanBoy_ has quit [Remote host closed the connection]
prtksxna has quit [Ping timeout: 240 seconds]
niklasb has joined #ruby
rbanffy has quit [Read error: Connection reset by peer]
hasrb has quit [Remote host closed the connection]
rbanffy_ has joined #ruby
mnaser has quit [Ping timeout: 250 seconds]
fulmato has quit [Ping timeout: 248 seconds]
pygospa has quit [Quit: leaving]
jxf has joined #ruby
Lachryma has joined #ruby
mnaser has joined #ruby
cbuxton1 has joined #ruby
Maniacal has joined #ruby
cbuxton has quit [Ping timeout: 240 seconds]
hynkle has joined #ruby
nateberkopec has quit [Quit: Leaving...]
stephenjudkins has joined #ruby
_md has quit [Quit: Leaving...]
prtksxna has joined #ruby
Progster has joined #ruby
henn1nk has joined #ruby
hasrb has joined #ruby
itsjustaride271 has joined #ruby
<icy`> hi, i had a yaml file with some data. I manually went in and added some lines, and now when I tried to read it into a hash I get NoMethodError: undefined method `external_encoding' for #<String:0x000000017d8178>
<icy`> at least I suspect it was because i manually edited
<henn1nk> maybe someone has an idea.. https://gist.github.com/2998048 i'm trying to iterate throw all orders and to save the basic_articles of the orders to get my best sellers for GChart.... so the result has to be data => [10,20,50], labels => ['BasicArticleName1', 'BasicArticleName2', 'BasicArticleName3'] ... ?
itsjustaride271 has left #ruby [#ruby]
cczona has joined #ruby
kevinbond has quit [Quit: kevinbond]
booginga has quit [Quit: Leaving]
minijupe has quit [Quit: minijupe]
ph^ has quit [Remote host closed the connection]
niklasb has quit [Ping timeout: 246 seconds]
xnm has joined #ruby
<icy`> wait nvm, that's not because of those lines
graspee has joined #ruby
platzhirsch has joined #ruby
mockra has joined #ruby
TPFC-SYSTEM has quit [Quit: TPFC-SYSTEM]
mikepack has joined #ruby
bitsar2 has joined #ruby
Ontolog has quit [Read error: Connection reset by peer]
Ontolog_ has joined #ruby
stat1x has quit [Remote host closed the connection]
<platzhirsch> is $LOAD_PATH << '.' and require file the recommended approach to add ruby files of the same directory?
stat1x has joined #ruby
prtksxna has quit [Remote host closed the connection]
JustinCampbell has joined #ruby
mikepack has quit [Read error: Connection reset by peer]
mockra has quit [Remote host closed the connection]
<cirwin> platzhirsch: only do that if you undo it again
<cirwin> people normally just do something with __FILE__
vonsar has quit [Ping timeout: 272 seconds]
jarred has joined #ruby
<cirwin> yeah
mucker has quit [Quit: leaving]
<platzhirsch> really annoying to add this every time
seitensei has joined #ruby
yankhates has quit [Ping timeout: 265 seconds]
mnaser has quit [Ping timeout: 240 seconds]
hynkle has quit [Quit: hynkle]
mikepack has joined #ruby
yankhates has joined #ruby
mnaser has joined #ruby
wargasm has joined #ruby
havenn has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
federic has quit [Remote host closed the connection]
mikepack has joined #ruby
<henn1nk> https://gist.github.com/2998183 .. labels are wrong
<henn1nk> any idea how to do this cleaner?
dr_diamond has joined #ruby
dr_diamond has quit [Changing host]
dr_diamond has joined #ruby
Ethan has quit [Quit: *poof*]
rizzylt has quit [Ping timeout: 250 seconds]
hunglin has quit [Quit: Leaving.]
tommyvyo_ has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
mikepack has quit [Read error: Connection reset by peer]
ChampS666 has joined #ruby
jstew has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
niklasb has joined #ruby
tommyvyo_ has joined #ruby
Jackneill has quit [Read error: Connection reset by peer]
mpereira has quit [Read error: Connection reset by peer]
rdg has joined #ruby
graft is now known as Guest1779
Ethan has joined #ruby
abra has joined #ruby
mpereira has joined #ruby
mikepack has joined #ruby
timonv has joined #ruby
mikepack has quit [Read error: Connection reset by peer]
havenn has joined #ruby
jimeh has quit [Ping timeout: 245 seconds]
mikepack has joined #ruby
mikepack has quit [Read error: Connection reset by peer]
wmoxam_ has joined #ruby
Helius has quit [Remote host closed the connection]
rdg has quit [Quit: ttfn]
mvangala_home has joined #ruby
ideamonk has joined #ruby
graspee has left #ruby [#ruby]
mvangal__ has quit [Ping timeout: 240 seconds]
ideamonk has quit [Remote host closed the connection]
mvangala_home has quit [Remote host closed the connection]
mnaser has quit [Read error: Operation timed out]
ideamonk has joined #ruby
mvangala_home has joined #ruby
<henn1nk> how can i elimate a key in a hash
<henn1nk> oh got it
jimeh has joined #ruby
Niamkik has quit [Remote host closed the connection]
mnaser has joined #ruby
<shevy2> hash.delete name_of_key_here
mikepack has joined #ruby
shevy2 is now known as shevy
ringotwo has joined #ruby
<shevy> matz authored 4 hours ago: do not undef config macros commit 6410cdf3bf https://github.com/mruby/mruby/commit/6410cdf3bffcbbb3d97f0153720922242c4f800f
<shevy> wheeeee go matz go!
hunglin has joined #ruby
Calvarygoer has joined #ruby
tcopp has left #ruby [#ruby]
<atmosx> shevy: how's life?
cabbit has joined #ruby
chriskk has joined #ruby
<henn1nk> shevy: thanks perfect
<henn1nk> {"Clarion 501nx"=>7, "Pioneer 2000"=>1}
<shevy> atmosx dunno right now, I have like only 4 hours a day to do things unrelated to university
<henn1nk> need to be now: [7,1] and ["Clarion 501nx", "Pioneer 2000"] ...=
<shevy> in about 2 hours it's bed time already
<atmosx> shevy: I stopped studying, I'll give biophysics and physical chemistry on sept
<henn1nk> hash1 = hash.map { |index,value| index }
<henn1nk> ?
<atmosx> shevy: It was a very succesfull year but I don't wanna study anymore...
<cabbit> evening folks, anyone has success getting ruby-oci8 installed on Mac OSX Lion under 64bit ?
<shevy> atmosx hahaha I know that feeling
<atmosx> I'll try to polish/finnish a little script that helps me extract some info from fail2ban.log and then continue with a bigger project
bitsar2 has quit [Ping timeout: 272 seconds]
<atmosx> shevy: yes, :-P what are you doing now? bachelor/master/phd?
<canton7> henn1nk, do you know of #keys and #values ?
Adran is now known as Moodran
jd__ has quit [Ping timeout: 264 seconds]
albemuth has quit [Quit: Computer has gone to sleep.]
xubuntu5 has quit [Ping timeout: 245 seconds]
<henn1nk> canton7: ?
<henn1nk> canton7: ah nice
<canton7> {"Clarion 501nx"=>7, "Pioneer 2000"=>1}.keys #=> ["Clarion...", "Pioneer..."]
<henn1nk> canton7: works perfekt
<henn1nk> thanks!
<canton7> sweet
fridim_ has joined #ruby
nadirvardar has joined #ruby
<shevy> atmosx I do exams for both bachelor and master at the same time, technically though I still have to write my bachelor work. I stopped studies at my older university, bachelor/master system did not exist there and we were force-switched. and that just sucked (the old diploma there was worth about equal to a master study)
Moodran is now known as Adran
mikepack has quit [Read error: Connection reset by peer]
<Hanmac> shevy in what topic?
polysics_ has joined #ruby
CoverSlide has joined #ruby
polysics has quit [Ping timeout: 240 seconds]
imami|afk is now known as banseljaj
mikepack has joined #ruby
headius has joined #ruby
Eldariof-ru has quit []
mickn has joined #ruby
plastics has quit [Ping timeout: 250 seconds]
nanderoo has quit [Quit: Leaving.]
berserkr has quit [Quit: Leaving.]
rdg has joined #ruby
dasuchin has quit [Quit: leaving]
<mahmoudimus> How can I turn off VCR for one spec test?
polysics_ has quit [Remote host closed the connection]
xubuntu5 has joined #ruby
Criztian has joined #ruby
jd__ has joined #ruby
<mahmoudimus> Ah I see, VCR.turn_off!
Axsuul has joined #ruby
chienpo has joined #ruby
the_jeebster has quit [Ping timeout: 245 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
mxweas_ has joined #ruby
yoklov has joined #ruby
wpaulson has quit [Ping timeout: 245 seconds]
the_jeebster has joined #ruby
offby1 has joined #ruby
<offby1> I have a simple ActiveRecord model, and I was surprised that I was able to access a non-existing attribute without error. That is, x = MyThing.new ; x.typo = 4
lorandi has quit [Quit: Leaving]
<offby1> Is there a way to make that sort of typo raise an exception?
uris has quit [Ping timeout: 250 seconds]
pielgrzym has joined #ruby
<offby1> *crickets*
mickn has quit [Remote host closed the connection]
uris has joined #ruby
<shevy> Hanmac chemistry right now
cbuxton1 has quit [Quit: Leaving.]
<pielgrzym> how can I convert a string with hex values into an array of bytes? I need to xor some of them for my cryptography course
<pielgrzym> like: cipher = "ab0f3caa2b"
minijupe has joined #ruby
<Hanmac> string.to_i(16)
cbuxton has joined #ruby
<pielgrzym> Hanmac: this gives me an integer - how can I have an array of bytes out of it?
atmosx has quit [Remote host closed the connection]
cantonic has quit [Quit: cantonic]
<Hanmac> why do you need? you could xor integer
<pielgrzym> Hanmac: I need to know I'm addressing a particular byte, say 2b from above example
bglusman_ has joined #ruby
<Hanmac> string.to_i(16) ^ yourflag .... ^ is for xor
<pielgrzym> Hanmac: what is flag?
<pielgrzym> ah
<Hanmac> i mean "^" is your xor operator
<pielgrzym> Hanmac: I need to byte, say 3, with an oridinal from letter 'c', how to do this? I don't want to xor entire number
wpaulson has joined #ruby
atmosx has joined #ruby
fulmato has joined #ruby
werdnativ_ has joined #ruby
Vendethiel has joined #ruby
Jake232 has quit [Ping timeout: 250 seconds]
rdg has quit [Quit: ttfn]
jeff_sebring has quit [Remote host closed the connection]
<Hanmac> hm maybe something like that? cipher[0,4] #=> "ab0f"
werdnativ has quit [Ping timeout: 245 seconds]
werdnativ_ is now known as werdnativ
cantonic has joined #ruby
<pielgrzym> Hanmac: only thing that comes to mind is to make the string into array, cipher = [ "ab", "0f", "ca", "a2", "2b"], and for each of elements calculate .to_i(16)
<pielgrzym> Hanmac: let me try it
nachtwandler has quit [Quit: leaving]
<pielgrzym> Hanmac: ah, you just showed a slice or #=> is some king of operator?
jeff_sebring has joined #ruby
<Hanmac> #=> symbols the result
hashpuppy has joined #ruby
platzhirsch has left #ruby [#ruby]
<pielgrzym> Hanmac: I see, well I'll have to produce an array of single integers then :)
jcromartie has quit [Read error: Connection reset by peer]
jcromartie has joined #ruby
<Hanmac> cipher = "ab0f3caa2b"
<Hanmac> cipher2 = cipher.each_char.each_slice(2).map(&:join) #=>[ "ab", "0f", "ca", "a2", "2b"]
stephenjudkins has quit [Read error: Connection reset by peer]
stephenjudkins has joined #ruby
<pielgrzym> Hanmac: thanks!! :)
shevy has quit [Ping timeout: 272 seconds]
mayankkohaley has quit [Ping timeout: 255 seconds]
mxweas_ has quit [Quit: Leaving...]
mnaser has quit [Ping timeout: 244 seconds]
rippa has joined #ruby
workmad3 has joined #ruby
enroxorz has quit [Quit: Leaving]
dku has joined #ruby
randomubuntuguy has joined #ruby
<dku> What does a "deadlock detected" error mean when calling Thread.stop?
digitalcakestudi has quit [Ping timeout: 240 seconds]
randomubuntuguy has quit [Max SendQ exceeded]
randomubuntuguy has joined #ruby
mnaser has joined #ruby
timonv has quit [Remote host closed the connection]
schaerli has quit [Remote host closed the connection]
davidw has joined #ruby
jxpx777 has quit [Quit: Mac is sleeping…]
andreime has quit [Ping timeout: 252 seconds]
<stephenjudkins> dku: do you know what a deadlock is?
TheHunter_1039 has quit [Quit: TheHunter_1039]
rowanu has joined #ruby
<dku> stephenjudkins: not in a thread context, nope.
Lachryma has quit [Ping timeout: 272 seconds]
stephenjudkins has quit [Read error: Connection reset by peer]
nadirvardar has quit [Ping timeout: 272 seconds]
stephenjudkins has joined #ruby
Vendethiel has quit [Quit: je ne suis plus là, tqvu]
headius has quit [Quit: headius]
nadirvardar has joined #ruby
hashpuppy has quit [Quit: hashpuppy]
bradhe has joined #ruby
<burgestrand> dku: it typically means ruby has detected a situation where nothing will ever happen, and all active threads will be sleeping indefinetly or waiting for something
bluenemo has quit [Remote host closed the connection]
shevy has joined #ruby
Hanmac has quit [Ping timeout: 272 seconds]
stephenjudkins has quit [Ping timeout: 265 seconds]
araujo has quit [Remote host closed the connection]
werdnativ has quit [Quit: werdnativ]
bgaru has joined #ruby
kstephens has quit [Ping timeout: 260 seconds]
etehtsea has quit []
rippa has quit [Ping timeout: 248 seconds]
araujo has joined #ruby
kstephens has joined #ruby
bgaru has quit [Client Quit]
_-garu-_ has joined #ruby
Hanmac has joined #ruby
mikepack has quit [Read error: Connection reset by peer]
silentpost has joined #ruby
<dku> burgestrand: gotcha, thanks!
hynkle has joined #ruby
mvangala_home has quit [Remote host closed the connection]
BrokenCog has joined #ruby
ryan0x2 has joined #ruby
rowanu has quit [Remote host closed the connection]
iocor has quit [Quit: Computer has gone to sleep.]
j3ll3 has joined #ruby
j3ll3 has left #ruby [#ruby]
fbernier has quit [Ping timeout: 264 seconds]
mikepack has joined #ruby
mvangala_home has joined #ruby
cabbit has quit [Quit: cabbit]
JustinCampbell has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 265 seconds]
pygospa has joined #ruby
mikepack has quit [Read error: Connection reset by peer]
kenichi has quit [Remote host closed the connection]
axl_ has joined #ruby
minijupe has quit [Quit: minijupe]
werdnativ has joined #ruby
geekbri has quit [Remote host closed the connection]
hynkle has quit [Quit: hynkle]
atmosx has quit [Ping timeout: 276 seconds]
kenichi has joined #ruby
atmosx has joined #ruby
fantazo has joined #ruby
sspiff has quit [Ping timeout: 260 seconds]
ringotwo has quit [Remote host closed the connection]
<andrewhl> I'm trying to install ruby-debug, and I get the following output: https://gist.github.com/2999055
<andrewhl> It says: Couldn't find file to include 'VERSION' from lib/linecache19.rb. How do I fix this?
yankhate1 has joined #ruby
flip_digits has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
niklasb has quit [Read error: Operation timed out]
joshman_ has quit [Ping timeout: 245 seconds]
bosphorus has quit [Remote host closed the connection]
linduxed has quit [Ping timeout: 265 seconds]
tzvi|work has joined #ruby
sailias has quit [Quit: Leaving.]
mnaser has quit [Ping timeout: 264 seconds]
schovi has joined #ruby
Ethan has quit [Ping timeout: 248 seconds]
ideamonk has quit [Quit: ideamonk]
mnaser has joined #ruby
tzvi has quit [Ping timeout: 272 seconds]
dku has quit [Quit: Byebye]
jeff_sebring has quit [Remote host closed the connection]
hmans has joined #ruby
atmosx has quit [Ping timeout: 276 seconds]
cczona has quit [Quit: cczona]
hakunin has quit [Remote host closed the connection]
hakunin has joined #ruby
linduxed has joined #ruby
slyv has joined #ruby
hakunin_ has joined #ruby
cczona has joined #ruby
hakunin has quit [Read error: Connection reset by peer]
camilo has quit [Remote host closed the connection]
_-garu-_ has left #ruby [#ruby]
fridim_ has quit [Ping timeout: 264 seconds]
Ethan has joined #ruby
Calvarygoer has quit [Remote host closed the connection]
atmosx has joined #ruby
abra has quit [Ping timeout: 276 seconds]
schovi has quit [Remote host closed the connection]
danchoi has joined #ruby
danchoi has left #ruby [#ruby]
andrewhl has quit [Remote host closed the connection]
danchoi has joined #ruby
ryan0x2 has quit [Remote host closed the connection]
danchoi has left #ruby [#ruby]
hmans has quit [Quit: Leaving...]
atmosx has quit [Ping timeout: 276 seconds]
dankest has joined #ruby
silentpost has quit [Ping timeout: 250 seconds]
EricKamsky has quit [Quit: EricKamsky]
malkomalko has quit [Remote host closed the connection]
carloslopes has quit [Quit: Leaving.]
nilg has quit [Remote host closed the connection]
wvms has joined #ruby
bgupta has quit [Ping timeout: 244 seconds]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
_md has joined #ruby
mklappstuhl has joined #ruby
jeff_sebring has joined #ruby
abra has joined #ruby
<mklappstuhl> I want to install a gem that fails with "has an invalid value for @cert_chain" (ferret 0.11.6)—is there any way to force the installation?
axl_ has quit [Quit: axl_]
<cirwin> mklappstuhl: what version of rubygems have you?
<mklappstuhl> cirwin: 1.7.1
<cirwin> you should update it
<mklappstuhl> cirwin: with ruby1.8
<cirwin> (gem update --system, or rvm rubygems latest)
adeponte has quit [Remote host closed the connection]
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
vlad_starkov has quit [Remote host closed the connection]
wpaulson has joined #ruby
wpaulson_ has joined #ruby
<mklappstuhl> cirwin: we have a quite fucked up ruby setup on our server with two versions of ruby and two versions of rubygems without any rvm/rbenv stuff :D
<cirwin> lucky you :)
grantbdev has joined #ruby
jesly has quit [Ping timeout: 245 seconds]
mengu has quit [Remote host closed the connection]
blacktulip has quit [Remote host closed the connection]
ryanf has joined #ruby
yxhvuud has quit [Ping timeout: 264 seconds]
wpaulson has quit [Ping timeout: 248 seconds]
wpaulson_ is now known as wpaulson
balki_ has joined #ruby
balki has quit [Read error: Connection reset by peer]
atmosx has joined #ruby
jimeh has quit [Ping timeout: 255 seconds]
minijupe has joined #ruby
mikepack has joined #ruby
ukd1 has joined #ruby
malkomalko has joined #ruby
<ukd1> Hey guys, I'm doing some ruby and have been using the mongo driver directly, I'd like to use either mongoid or mongomapper - is there any clear reason to use one over the other?
ziggles has joined #ruby
<mklappstuhl> ukd1: afaik not really, I prefer mongoids documentation, which is beautiful
mikepack has quit [Read error: Connection reset by peer]
yankhates has quit [Ping timeout: 240 seconds]
yankhate1 has quit [Ping timeout: 245 seconds]
ebanoid has quit []
malkomalko has quit [Read error: Connection reset by peer]
<dankest> mklappstuhl: that's the stuff nightmares are made of
apeiros_ has quit [Remote host closed the connection]
FLeiXiuS has quit [Quit: Leaving]
workmad3 has quit [Ping timeout: 264 seconds]
mattp_ has quit [Read error: Connection reset by peer]
mattp_ has joined #ruby
kaktus has quit [Ping timeout: 246 seconds]
notbrent has quit [Ping timeout: 246 seconds]
aquaranto has quit [Ping timeout: 246 seconds]
tessi has quit [Quit: ZNC - http://znc.sourceforge.net]
Bish has quit [Quit: ZNC - http://znc.sourceforge.net]
MetaCosm has quit [Max SendQ exceeded]
kaktus has joined #ruby
notbrent has joined #ruby
malkomalko has joined #ruby
minijupe has quit [Quit: minijupe]
MetaCosm has joined #ruby
tessi has joined #ruby
iocor has joined #ruby
cczona has quit [Quit: cczona]
Bish has joined #ruby
PaciFisT has quit [Quit: Leaving.]
chson has quit [Remote host closed the connection]
berserkr has joined #ruby
dv310p3r has quit [Ping timeout: 272 seconds]
mikepack has joined #ruby
<SpitfireWP> www.ruby-doc.org is down? o.O
banseljaj is now known as imami|afk
<ukd1> yea
monkegjinni has quit [Remote host closed the connection]
aquaranto has joined #ruby
apok_ has joined #ruby
<icy`> hi, i'm trying to make a regexp at http://rubular.com/r/vfXirK7T45 . I think i've got it, but i jus want to confirm. It has to match something like ".set hat 44.3" , extracting hat to $1 and 44.3 to $2, and optional further characters to $3, as in the example
schickung has quit [Quit: schickung]
<icy`> i should prob change ^ and $ to \A , \z
_md has quit [Quit: Leaving...]
ChampS666 has quit []
ecigman is now known as jigman
apok has quit [Ping timeout: 246 seconds]
apok_ is now known as apok
davidw has quit [Ping timeout: 245 seconds]
Ethan has quit [Ping timeout: 245 seconds]
indian has quit [Ping timeout: 264 seconds]
Siphonblast has quit [Ping timeout: 255 seconds]
Siphonblast has joined #ruby
atmosx has quit [Ping timeout: 276 seconds]
ben_m has joined #ruby
pooya72 has joined #ruby
<pooya72> hello everybody.
<ben_m> Hello
atmosx has joined #ruby
<pooya72> so i know "learn python the hard way" is highly praised, can the same be say for the ruby version? http://ruby.learncodethehardway.org/
<ben_m> I don't think so. I read that it's not very idiomatic Ruby
<ben_m> ie. they just translate the Python into Ruby
kenichi has quit [Remote host closed the connection]
<ben_m> But I didn't read it myself, so not sure :)
cakehero has quit [Quit: Computer has gone to sleep.]
<pooya72> ben_m: yeah, I read similar comments.
jeff_sebring has quit [Quit: Leaving]
<pooya72> but I like the style. Anything similar to this?
stkowski has left #ruby [#ruby]
QaDeS has quit [Quit: Ex-Chat]
jeff_sebring has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
cczona has joined #ruby
rbanffy_ has quit [Quit: Ex-Chat]
whitenoise has quit [Quit: This computer has gone to sleep]
pradeepto has quit [Read error: Operation timed out]
Boohbah_ has quit [Ping timeout: 276 seconds]
Boohbah has joined #ruby
grantbdev has quit [Quit: Leaving]
kevinbond has joined #ruby
veex has quit [Read error: Connection reset by peer]
jxf has quit [Read error: Connection reset by peer]
wmoxam_ has quit [Ping timeout: 244 seconds]
linduxed has quit [Ping timeout: 248 seconds]
jxf has joined #ruby
<boobah> A programmer will eventually tell you to use Mac OSX or Linux. If the programmer likes fonts and typography, they'll tell you to get a Mac OSX computer. If they like control and have a huge beard, they'll tell you to install Linux.
<icy`> beard eh
<ben_m> I don't have a beard :/
<icy`> i've seen plenty of bearded OSX programmers o.O
<ben_m> Do goatees and that chinpatchthing count?
<icy`> o...k
<ben_m> Humor is fine, but I'm not sure if it's smart to make people get into religious wars quite that early :P
olrrai has joined #ruby
schickung has joined #ruby
<boobah> but wars are the most exciting part of religion!
<havenn> pooya72: Style isn't similar, but might want to check out _why's Poignant Guide: http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CFYQFjAA&url=http%3A%2F%2Fwww.cs.uni.edu%2F~wallingf%2Fteaching%2F188-agile%2Fruby%2Fwhys-poignant-guide-to-ruby.pdf&ei=XjvqT83jOqfZ0QGyyeDxAQ&usg=AFQjCNH0C2pZdyS8B8hss_FUXgxX230Fcw&sig2=HtaL9Rc7GDLNjtlsdskBzw
jimeh has joined #ruby
<ben_m> Gandhi always wants to push Christianity into my cities
<havenn> sorry for the sad link, paste-fail
<ben_m> War ensues.
TheHunter_1039 has joined #ruby
<havenn> pooya72: if you haven't checked it out yet, here is PDF link: http://www.rubyinside.com/media/poignant-guide.pdf
josefig_ has quit [Ping timeout: 255 seconds]
<pooya72> havenn: yeah I saw that. The problem is that this person's english isn't very good, so a lot of the humor and gradual introduction will be lost on him. Learn the hard way was good cause the code was at the center, and very little description.
<pooya72> and I really miss this _why guy. Shoes is cool.
<atmosx> anyone using octopress on a personal server?
<atmosx> with rsync deployment
chson has joined #ruby
linduxed has joined #ruby
ken_barber has joined #ruby
Whoop has quit [Quit: brb]
nateberkopec has joined #ruby
Whoop has joined #ruby
Whoop has quit [Changing host]
Whoop has joined #ruby
kpshek has quit []
awarner has quit [Remote host closed the connection]
Sheehan has quit [Quit: Sheehan]
alek_b_ has joined #ruby
pooya72 has quit [Quit: pooya72]
brianpWins has joined #ruby
jxf has quit [Ping timeout: 246 seconds]
bosphorus has joined #ruby
dankest has quit [Quit: Leaving...]
shadoi has quit [Quit: Leaving.]
macmartine has quit [Quit: macmartine]
shadoi has joined #ruby
virunga has quit [Read error: Connection reset by peer]
alek_b has quit [Ping timeout: 244 seconds]
<havenn> pooya72: Was skimming The Bastards Book of Ruby, seemed promising and has some good links as well: http://ruby.bastardsbook.com/
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
nateberkopec has quit [Quit: Leaving...]
hunglin has quit [Ping timeout: 244 seconds]
SQLStud has quit [Quit: Leaving]
randomautomator has quit [Remote host closed the connection]
randomubuntuguy has quit [Ping timeout: 245 seconds]
<lectrick> I want to print out the differences between two strings. Not at the line level, at the character level.
<lectrick> I can't seem to find something that will do this well.
ryan0x2 has joined #ruby
chson has quit [Ping timeout: 246 seconds]
Enekoos has joined #ruby
seitensei has quit [Remote host closed the connection]
brasten has quit [Quit: brasten]
nari_ has joined #ruby
yankhates has joined #ruby
yankhate1 has joined #ruby
berserkr has quit [Quit: Leaving.]
emmanuelux has joined #ruby
bluOxigen has quit [Ping timeout: 265 seconds]
havenn has quit [Remote host closed the connection]
kirun has quit [Quit: Client exiting]
hasrb has quit [Remote host closed the connection]
banghouse has quit [Remote host closed the connection]
iocor has quit [Quit: Computer has gone to sleep.]
<jd__> are the strings equal length?
<jd__> are the new and initialize methods the same?
freeayu has joined #ruby
<canton7> lectrick, you want something like "hello".each_char.zip("heeli".each_char).map{ |a,b| a==b ? nil : [a,b] } ?
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
tommyvyo_ is now known as tommyvyo
chico_chicote has joined #ruby
Ethan has joined #ruby
genivf has quit []
uris has quit [Quit: leaving]
ringotwo has joined #ruby
<lectrick> canton7: Whoa.
jimeh has quit [Ping timeout: 246 seconds]
<lectrick> canton7: I also want offsets to work though.
<canton7> "offsets to work"?
havenn has joined #ruby
<lectrick> canton7: If you give that "hello" and " hello", it will act silly :)
mockra has joined #ruby
<canton7> well, it'll compare them character by character
<canton7> if you want what you're describing, that's a lot more work
<canton7> (unless you just want to go the route of stripping whitespace)
chson has joined #ruby
gardnan has joined #ruby
<canton7> cross-correleation to find the best match... and how would you then present/represent that information?
<cirwin> I've found http://www.cjmweb.net/vbindiff/ to be somewhat good at it
iocor has joined #ruby
<cirwin> though it's for files rather than ruby strings
Targen has quit [Ping timeout: 245 seconds]
havenn has quit [Remote host closed the connection]
apok has quit [Remote host closed the connection]
stephenjudkins has joined #ruby
mockra has quit [Remote host closed the connection]
<jd__> .new() calls initialize not the new method what is this!
apok has joined #ruby
<canton7> .new calls some other stuff, part of which involves calling .initialize iirc
<jd__> thanks
<jd__> so Class::new can i do Class::new(parameters) or must I use Class.new(params)
<canton7> I've never seen anyone do Class::new ever, so even if it does work, I wouldn't do it :)
<jd__> thanks canton7!
gardnan has quit [Ping timeout: 246 seconds]
<lectrick> canton7: yesh, looking for someone who already went down the "lot more work" route
internet_user has quit [Remote host closed the connection]
<lectrick> canton7: I think this is related to the problem http://en.wikipedia.org/wiki/Longest_common_subsequence_problem
<jd__> .zip part of the String class?
<jd__> is *?
whitenoise has joined #ruby
t0mmyvyo has joined #ruby
<canton7> jd__, I think it's part of the Enumerable mixin?
ken_barber has quit [Remote host closed the connection]
<canton7> #each_char turns the string into an enumerable
dr_diamond has quit [Quit: Bye !]
pting has quit [Quit: Ex-Chat]
whitenoise has quit [Changing host]
whitenoise has joined #ruby
<jd__> oooh i see
sailias has joined #ruby
jimeh has joined #ruby
Criztian has quit [Remote host closed the connection]
<jd__> so if i put a command in a class not in a def end will that be called when i create an instance of that class ?
<cirwin> no, it'll be called when the file is read
<jd__> oooh
<jd__> when i call require 'file'
jgrevich has quit [Quit: jgrevich]
<cirwin> yeah; what class Foo; end does is build up a class, and if you run code inside that block, you can configure how the class itself is built
<cirwin> (or set values for constants and things)
<jd__> thanks cirwin
mengu has joined #ruby
sam113101 has quit [Remote host closed the connection]
ryanf has quit [Read error: Connection reset by peer]
ryanf has joined #ruby
nateberkopec has joined #ruby
mnaser has quit [Ping timeout: 248 seconds]
baroquebobcat has quit [Ping timeout: 252 seconds]
moted has quit [Remote host closed the connection]
yankhate2 has joined #ruby
yankhate1 has quit [Quit: leaving]
atmosx has quit [Ping timeout: 276 seconds]
yankhates has quit [Quit: leaving]
atmosx has joined #ruby
mnaser has joined #ruby
<canton7> lectrick, the diff-lcs gem seems to do exactly that
moted has joined #ruby
<canton7> Diff::LCS.diff("hello world", " hello worlb")
t0mmyvyo has quit [Quit: http://twitter.com/tommyvyo]
<jd__> how can i call a method from that's later in the class from the initialize method
<cirwin> jd__: you just can
ringotwo has quit [Remote host closed the connection]
<cirwin> at the time initialize is called, the entire body of the class will have been read
<cirwin> (unless you're creating an instance of the class inside the class body; in which case don't :p)
moted has quit [Read error: No route to host]
mpereira_ has joined #ruby
yankhates has joined #ruby
yankhates has quit [Client Quit]
ringotwo has joined #ruby
wpaulson has joined #ruby
<jd__> i don't have to bother with self methods and what not?
vitor-br has joined #ruby
<cirwin> if you're calling a self method on the class; you have to make sure the method is defined before you call it, yes
nari_ has quit [Ping timeout: 240 seconds]
<cirwin> normally what you'd do in that case is put that method into a module; and then extend Module at the top of your class
<jd__> oooh i see
<jd__> thanks cirwin
<jd__> so in initialize i have @list = returned value from def in method but how do i do that?
whitenoise has quit [Quit: This computer has gone to sleep]
t0mmyvyo has joined #ruby
<cirwin> just do it?
gardnan has joined #ruby
yankhates has joined #ruby
yankhates has quit [Client Quit]
yankhates has joined #ruby
seanstickle has joined #ruby
cczona has quit [Quit: cczona]
<jd__> w
mengu has quit [Remote host closed the connection]
<jd__> wow i'm dumb thanks cirwin just do it was right haha
<cirwin> :)
<jd__> you've been very helpful
<bricker88> I hate that the convention for constants is ALL_CAPS, it makes me feel like I'm yelling at the poor code :(
<jd__> lol ruby is just first Letter right?
<cirwin> well ClassesAndModules are differentiated from OTHER_RANDOM_CONSTANTS
<cirwin> bricker88: you can always use class-level attr_accessors
bitsar has joined #ruby
malkomalko has quit [Read error: Connection reset by peer]
<bricker88> cirwin: you're right! I hadn't thought about that. But I'm not sure I hate it enough to write extra code.
Aaton is now known as Aaton_off
malkomalko has joined #ruby
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
moted has joined #ruby
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
<Paradox> just finished the stylesheet for http://www.reddit.com/r/SublimeText/ if anyone is interested, i know its off topic but w/e
malkomalko has quit [Ping timeout: 246 seconds]
<davidcelis_> Paradox: looks very nice
<davidcelis_> good job
<Paradox> designed to look like sublimetext
<Paradox> heh
davidcelis_ has quit [Quit: K-Lined.]
davidcelis has joined #ruby
davidcelis has quit [Changing host]
davidcelis has joined #ruby
<Paradox> wat
<davidcelis> wat