apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p286: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com
hsbt is now known as hsbt_away
<rudle> can anybody hear me?
Takehiro has quit [Ping timeout: 260 seconds]
mrsolo has quit [Quit: Leaving]
hsbt_away is now known as hsbt
GoGoGarrett has quit [Remote host closed the connection]
chimkan___ has joined #ruby
Vinz_ is now known as Vinz_`
chimkan___ has quit [Client Quit]
pu22l3r has joined #ruby
GoGoGarrett has joined #ruby
nkts has joined #ruby
chimkan has quit [Ping timeout: 255 seconds]
<eph3meral> nope
Vinz_` is now known as Vinz_
slainer68 has joined #ruby
<rudle> :c
ryanlecompte has quit [Remote host closed the connection]
staafl has quit [Ping timeout: 240 seconds]
BrianJ has joined #ruby
<eph3meral> rudle: maybe you need #rubyonrails ?
dagnachewa has quit [Quit: Leaving]
jrajav has quit []
hsbt is now known as hsbt_away
<rudle> well, i'm asking more about #ruby than rails. to wit: is Kernel::exit the only way to set the exit code of a ruby process?
juarlex_ has joined #ruby
jenrzzz has joined #ruby
<heftig> rudle: do you need another way?
GoGoGarrett has quit [Ping timeout: 276 seconds]
GoGoGarrett has joined #ruby
<rudle> heftig: i'm suspicious that one of my libraries is using an alternate technique
Cultofmetatron has joined #ruby
<rudle> since i've logged all calls to exit to no avail
staafl has joined #ruby
<heftig> ruby -e 'begin exit 1 ensure exit 0 end'
iamjarvo has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
ABK has quit [Ping timeout: 256 seconds]
havenn has quit [Remote host closed the connection]
linoj has quit [Quit: linoj]
<rudle> wouldn't that be caught by something like this? https://gist.github.com/3997779
havenn has joined #ruby
<rudle> testing now, just wanted to share that code
slainer68 has quit [Ping timeout: 256 seconds]
<rudle> indeed it is
<heftig> maybe a C extension?
<rudle> excellent idea!
colwem has joined #ruby
havenn_ has joined #ruby
havenn has quit [Read error: No route to host]
<heftig> look for exit() or _exit() or exit_group(), i guess
ephemerian has quit [Quit: Leaving.]
mneorr has quit [Remote host closed the connection]
<heftig> oh, there's also _Exit()
mneorr has joined #ruby
staafl has quit [Ping timeout: 264 seconds]
daniel_-_ has joined #ruby
havenn has joined #ruby
<rudle> heftig: grepping the *.c files in my $GEM_HOME for those keywords only gets results in the FFI
BrianJ has quit [Quit: BrianJ]
havenn_ has quit [Ping timeout: 260 seconds]
<rudle> regarding the FFI, though i don't fully understand it, doesn't seem like the culprit
ablankfield has joined #ruby
apeiros has joined #ruby
icole has quit [Remote host closed the connection]
jeffreybaird has quit [Quit: jeffreybaird]
apeiros_ has quit [Ping timeout: 276 seconds]
Takehiro has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
arubin_ has joined #ruby
havenn has quit [Ping timeout: 252 seconds]
ablankfield has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 256 seconds]
glyytchy has joined #ruby
qwerxy has quit [Quit: offski]
mengu has joined #ruby
hotovson has quit [Remote host closed the connection]
GoGoGarrett has quit [Remote host closed the connection]
linoj has joined #ruby
Takehiro has quit [Remote host closed the connection]
jamjam has quit [Ping timeout: 260 seconds]
freakazoid0223 has joined #ruby
BadProphet has quit [Quit: This computer has gone to sleep]
kbeddingfield has quit [Remote host closed the connection]
linoj has quit [Client Quit]
pu22l3r has quit [Remote host closed the connection]
Vinz_ is now known as Vinz_`
i8igmac has joined #ruby
elico has quit [Remote host closed the connection]
JustinCampbell has joined #ruby
<i8igmac> clength = response.scan(/Content-Length: \d+/).to_s => "[\"Content-Length: 123\"]"
<i8igmac> i feel stupid here
yshh has quit [Remote host closed the connection]
<i8igmac> "[\" how do i loose this junk
<i8igmac> i just want it as a string
adeponte has joined #ruby
nemish2 has joined #ruby
gabrielrotbart has quit [Remote host closed the connection]
male40 has joined #ruby
baphled has joined #ruby
kbeddingfield has joined #ruby
<i8igmac> clength[0].to_s
mklappstuhl has quit [Ping timeout: 260 seconds]
<rudle> i8igmac: you understand those "\"s are there only for presentation purposes?
JustinCampbell has quit [Ping timeout: 252 seconds]
_root_ has quit [Read error: Connection reset by peer]
syamajala has joined #ruby
<i8igmac> print / puts would different results i guess
<rudle> exactly
<rudle> call .length on your string, you'll see
<catepillar> i know that right now, ruby doesn't have true multithreading.
<catepillar> is that gonna come with the 2.0 release
<i8igmac> i see
Mayhew has joined #ruby
sepp2k has quit [Remote host closed the connection]
jipiboily has joined #ruby
tomsthumb has quit [Quit: Leaving.]
fyolnish has joined #ruby
fyolnish has quit [Remote host closed the connection]
fyolnish has joined #ruby
male40 has quit []
mneorr has quit [Remote host closed the connection]
male40 has joined #ruby
mneorr has joined #ruby
male40 has quit [Client Quit]
rakl has quit [Quit: sleeping]
yshh has joined #ruby
pjb3 has quit [Quit: pjb3]
pjb3 has joined #ruby
jslowe has quit [Quit: Leaving]
ckrailo has quit [Quit: Computer has gone to sleep.]
jrist-rubyconf is now known as jrist
greasegum has joined #ruby
mengu has quit [Ping timeout: 240 seconds]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
recycle has quit [Remote host closed the connection]
greasegum has quit [Client Quit]
cakehero has joined #ruby
recycle has joined #ruby
v0n has joined #ruby
kbeddingfield has quit [Remote host closed the connection]
bricker has quit [Ping timeout: 260 seconds]
jaygen_ has quit [Remote host closed the connection]
Agis__ has joined #ruby
<Agis__> hey, I'm searching for a cool starter project to contribute to, any recommendations?
<Agis__> ideally it should be something relatively simple but useful
Slivka has quit [Read error: Connection reset by peer]
jeffreybaird has joined #ruby
t0rc has quit [Quit: WeeChat 0.3.9]
sn0wb1rd has quit [Quit: sn0wb1rd]
daniel_-_ has quit [Ping timeout: 252 seconds]
nemish2 has quit [Ping timeout: 265 seconds]
dakine has quit [Remote host closed the connection]
hefgi has left #ruby ["Leaving"]
JustinCampbell has joined #ruby
artOfWar has quit [Ping timeout: 240 seconds]
Markvilla has quit [Quit: Computer has gone to sleep.]
Cultofmetatron has quit [Remote host closed the connection]
jblack has quit [Ping timeout: 244 seconds]
hsbt_away is now known as hsbt
JustinCampbell has quit [Ping timeout: 260 seconds]
tds has quit [Quit: tds]
jblack has joined #ruby
tds has joined #ruby
omg765 has quit [Read error: Operation timed out]
n00b982 has joined #ruby
<n00b982> Hello
v0n has quit [Remote host closed the connection]
<n00b982> I downloaded and installed Ruby Installer for Windows
<n00b982> And I am wondering how to run my file? It is just a Hello World! program
perun_ has quit [Ping timeout: 268 seconds]
tds has quit [Ping timeout: 252 seconds]
jaygen_ has joined #ruby
bradhe has quit [Remote host closed the connection]
pjb3 has quit [Quit: pjb3]
omg765 has joined #ruby
rakl has joined #ruby
bradhe has joined #ruby
tintin has joined #ruby
<tintin> Hi
<tintin> I have configured apache+passenger
<tintin> in public/ i have put the form.html
sn0wb1rd has joined #ruby
<tintin> This time i want to use the form.html instead of form.erb
<tintin> How can i re-write it? https://gist.github.com/3998070
bradhe has quit [Remote host closed the connection]
omg765 has quit [Client Quit]
jenrzzz has joined #ruby
adeponte has quit [Remote host closed the connection]
<Mayhew> n00b982: you need to open cmd.exe and type "ruby yourprogram.rb"
<n00b982> OK
Agis__ has quit [Quit: Agis__]
<n00b982> Do I need to have my file in the bin?
<tintin> Can anyone answer my question?
clj_newb has quit [Ping timeout: 245 seconds]
jblack has quit [Ping timeout: 240 seconds]
dpatel has quit [Quit: dpatel]
cantonic has quit [Quit: cantonic]
jblack has joined #ruby
tvw has quit [Remote host closed the connection]
jimeh has quit [Ping timeout: 264 seconds]
hsbt is now known as hsbt_away
Iszak has quit []
evilsushi has joined #ruby
perun_ has joined #ruby
<djbpython> is there an easier way to do 'if !foo.nil? and foo.attr.blank?'
<djbpython> like to remove the first foo.nil?
twopoint718 has joined #ruby
twopoint718 has quit [Changing host]
twopoint718 has joined #ruby
baphled has quit [Ping timeout: 240 seconds]
Cidan is now known as zz_Cidan
crackfu has joined #ruby
buscapepe has joined #ruby
phelps has joined #ruby
waxjar has joined #ruby
<phelps> Is it possible to populate class attributes via an initialize with n arguments ?
pjb3 has joined #ruby
<phelps> as to Stock.new(symbol: 'GOOG', last: 672.42)
<phelps> and the rest be nil
katherinem13 has quit [Quit: katherinem13]
<heftig> def initialize(hash); hash.each { |k,v| instance_variable_set("@#{k}", v) }; end
i8igmac has quit [Remote host closed the connection]
<Mayhew> n00b982: if the "ruby.exe" program isn't on your PATH, you need to type it like so: C:\path\to\ruby.exe C:\path\to\myfile.rb
<phelps> heftig: didn't expect code, but thanks a bunch
<Mayhew> n00b982: I highly recommend installing Linux in a VM, it's pretty much assumed by the Ruby community that you'll be on a Unix-like machine.
jeremywrowe has joined #ruby
Agis__ has joined #ruby
cobragoat has joined #ruby
katherinem13 has joined #ruby
Agis__ has quit [Client Quit]
<tintin> [200, {'Content-Type' => 'text/html; encoding=utf-8'}, [ @temp ]] , what type of object is it?
<tintin> Is it a list or hash ?
<tintin> {'Content-Type' => 'text/html; encoding=utf-8'} , is it hash?
cobragoat has quit [Read error: Operation timed out]
jeffreybaird has quit [Quit: jeffreybaird]
apok has quit [Ping timeout: 276 seconds]
<phelps> tintin: .class
<phelps> puts foo.class
pu22l3r has joined #ruby
<phelps> but thats a hash
jake_ has joined #ruby
<tintin> return [200, {'Content-Type' => 'text/html; encoding=utf-8'}, [ @temp ]]
<phelps> thats a list with an int, hash, list => object
nari has joined #ruby
pu22l3r has quit [Remote host closed the connection]
<phelps> assuming @temp is an object
pu22l3r has joined #ruby
<heftig> it's a typical Rack HTTP Response
<phelps> [] = list, {} = hash
<heftig> [statuscode, headers, body]
n00b982 has quit [Ping timeout: 245 seconds]
ttt has joined #ruby
<phelps> heftig: snippet worked wonderfully, thanks a bunch
<tintin> puts [200, {'Content-Type' => 'text/html; encoding=utf-8'}, [ @temp ]].class , outputs Array
<phelps> yes
yangchenyun has left #ruby [#ruby]
<tintin> puts {'Content-Type' => 'text/html; encoding=utf-8'}.class
<tintin> testruby.rb:5: syntax error, unexpected tASSOC, expecting '}'
<tintin> puts {'Content-Type' => 'text/html; encoding=utf-8'}.class
<tintin> Why?
<jake_> hey guys. im a python developer interested in using tent.io to power my blog. I know a bit of ruby, but don't have much insight into the ruby mindset. the tent code 'racks up' and i can access it from the web. works like a charm. but I don't know how to control the subdomain of that 'rack'. can anyone point out the keywords i need to read up on?
<tintin> {'Content-Type' => 'text/html; encoding=utf-8'} what type of object it is?
<tintin> is it a hash ?
<heftig> tintin: use parentheses
<heftig> puts(...)
voodoofish430 has quit [Quit: Leaving.]
<tintin> heftig: What's wrong without parentheses ?
<tintin> Why aren't that same?
<heftig> because of the foo { ... } block syntax
<heftig> e.g. 3.times { puts "Hello" }
<tintin> {'Content-Type' => 'text/html; encoding=utf-8'} , is it block syntax?
<heftig> curly braces are used both for blocks and hash literals
jeffreybaird has joined #ruby
<heftig> it's not, that's why you get a syntax error
Kant has joined #ruby
rakl has quit [Quit: sleeping]
kbeddingfield has joined #ruby
bradhe has joined #ruby
<tintin> heftig: Then that is ambiguity
<phelps> foo = {'Content-Type' => 'text/html; encoding=utf-8'};
<phelps> puts foo.class
<phelps> => Hash < Object
<tintin> heftig: {'Content-Type' => 'text/html; encoding=utf-8'} , Why is it hash type ? it's not like encoding=>value ?
Nisstyre-laptop has joined #ruby
<tintin> hash means , key => value
<tintin> or key = value ?
<jake_> 'text/html; encoding=utf-8' is a string
Kant has quit [Remote host closed the connection]
<jake_> the encoding=utf-8 is not a ruby expression
jblack has quit [Ping timeout: 248 seconds]
adeponte has joined #ruby
adeponte has quit [Remote host closed the connection]
kbeddingfield has quit [Ping timeout: 260 seconds]
pjb3 has quit [Quit: pjb3]
<tintin> How to print newline at the end of string, i don't want to use puts
<jake_> \n
c0rn has quit [Quit: Computer has gone to sleep.]
<phelps> only withs in " double quoted strings
<phelps> s/withs/works/
<tintin> print(File.join('public', 'form.html') + '\n') , this didn't work
<phelps> see my last message
<tintin> Is it? print(File.join('public', 'form.html') + "\n")
caleb_io has joined #ruby
<X-Jester> tintin: try print("#{File.join()}\n") ?
<phelps> sure
<tintin> Why doesn't it work ? print(File.join('public', 'form.html') + '\n')
<phelps> tintin: because escape characters only work in double quoted strings
<phelps> single quoted strings are passed as string literals
<matti> tintin: '' -- no evaulation / expansion of \n
jipiboily has quit [Quit: Leaving.]
DrShoggoth has quit [Ping timeout: 260 seconds]
g-ram has quit [Quit: Computer has gone to sleep.]
guns has quit [Ping timeout: 260 seconds]
rakl has joined #ruby
JustinCampbell has joined #ruby
jcaudle has quit [Quit: jcaudle]
mneorr has quit [Remote host closed the connection]
perryh has quit [Excess Flood]
Nisstyre-laptop has quit [Quit: Leaving]
mpereira has quit [Read error: Connection reset by peer]
<tintin> Is there any other way to load the .erb file ?
perryh has joined #ruby
<tintin> Is there any alternative to this ? def_erb_method('form()', 'form.erb')
JustinCampbell has quit [Ping timeout: 255 seconds]
Trioke has quit [Ping timeout: 246 seconds]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
phelps has left #ruby ["Linkinus - http://linkinus.com"]
pr0ton has quit [Quit: pr0ton]
jenrzzz has quit [Ping timeout: 244 seconds]
JonnieCache has joined #ruby
emmanuelux has quit [Remote host closed the connection]
cakehero has quit [Quit: Computer has gone to sleep.]
Caleb_ has joined #ruby
katherinem13 has quit [Quit: katherinem13]
caleb_io has quit [Ping timeout: 260 seconds]
dakine has joined #ruby
reset has quit [Ping timeout: 265 seconds]
love_color_text has quit [Remote host closed the connection]
katherinem13 has joined #ruby
seanyo has joined #ruby
JonnieCache has quit [Ping timeout: 240 seconds]
g-ram has joined #ruby
Asher has quit [Quit: Leaving.]
Asher has joined #ruby
BoomCow has quit [Quit: This computer has gone to sleep]
alek_b has quit [Ping timeout: 248 seconds]
g-ram has quit [Quit: Computer has gone to sleep.]
tds has joined #ruby
reset has joined #ruby
pu22l3r_ has joined #ruby
Gmind has joined #ruby
jcaudle has joined #ruby
vickaita has quit [Ping timeout: 256 seconds]
jcaudle has quit [Client Quit]
geggam has joined #ruby
g-ram has joined #ruby
pu22l3r has quit [Ping timeout: 240 seconds]
tintin has left #ruby [#ruby]
pu22l3r_ has quit [Remote host closed the connection]
pu22l3r has joined #ruby
tintin has joined #ruby
vitor-br has quit [Read error: Connection reset by peer]
<tintin> return [200, {'Content-Type' => 'text/html; encoding=utf-16'}, [ form() ]]
u89 has quit [Remote host closed the connection]
<tintin> which do you prefer?
<tintin> return [200, {'Content-Type' => 'text/html; encoding=utf-8'}, [ form() ]] ?
<tintin> utf-8 or utf-16 ?
<tintin> Which one to use?
tomsthumb has joined #ruby
<blazes816> I think most everyone uses utf-8, but I don't know why
<tintin> Doesn't utf-18 support more characters?
skaczor has quit [Remote host closed the connection]
<blazes816> yes
<tintin> Then we should use utf-16 instead of 8
<tintin> Isn't it?
dakine has quit [Remote host closed the connection]
chimkan has joined #ruby
<blazes816> actually, I think it does not support more
<tintin> How are you sure?
<blazes816> I believe they both support 1,112,064 characters
<X-Jester> both have variable storage for character sets
<X-Jester> one is more efficient for western language
pu22l3r_ has joined #ruby
<X-Jester> and the other is (arguably) more efficient for eastern languages [utf-16]
<blazes816> well there we go
<X-Jester> utf-8 is also backwards compatible with ascii
<X-Jester> utf-16 is not
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<tintin> blazes816: How did you get 1,112,064 characters ?
wallerdev has quit [Quit: wallerdev]
pu22l3r_ has quit [Remote host closed the connection]
wallerdev has joined #ruby
<X-Jester> that's the standard unicode space, isnt it?
<tintin> each time i change some code, i have to do : rackup config.ru, how can i stop restarting server each time?
g-ram has quit [Quit: Computer has gone to sleep.]
adeponte has joined #ruby
<blazes816> sinatra?
pu22l3r has quit [Ping timeout: 244 seconds]
tds has quit [Quit: tds]
<tintin> No, ruby+rack
<reactormonk> blazes816, I think utf-16 supports less
<reactormonk> blazes816, 2^16
<reactormonk> = 65536
<blazes816> reactormonk: it's a bit more complicated than that: http://en.wikipedia.org/wiki/UTF-16
werdnativ has joined #ruby
pu22l3r has joined #ruby
kbeddingfield has joined #ruby
ryanf has quit [Ping timeout: 248 seconds]
pipopopo has quit [Ping timeout: 265 seconds]
Ruler_Of_Heaven_ has joined #ruby
Progster has quit [Ping timeout: 260 seconds]
ffranz has quit [Quit: Leaving]
<tintin> How can i stop restarting server every time i change some code?
<tintin> using ruby+rack
jrist is now known as jrist-out
erichmenge has quit [Quit: Linkinus - http://linkinus.com]
kbeddingfield has quit [Ping timeout: 244 seconds]
syamajala has quit [Remote host closed the connection]
Juul has joined #ruby
hsbt_away is now known as hsbt
BoomCow has joined #ruby
jeff_sebring has quit [Quit: Leaving]
voodoofish has quit [Ping timeout: 246 seconds]
twopoint718 has quit [Ping timeout: 256 seconds]
adelcampo has quit [Read error: Connection reset by peer]
adelcampo has joined #ruby
nat26101 has quit [Quit: Leaving.]
alvaro_o has quit [Quit: Ex-Chat]
<nemish> is this room for experienced or are n00bs welcome? or can someone point me in the right direction
JustinCampbell has joined #ruby
<blazes816> n00bs are welcome
<nemish> thanks blazes816
omg765 has joined #ruby
<tintin> nemish: Are you n00b?
tomsthumb has quit [Read error: Connection reset by peer]
crackfu has quit [Remote host closed the connection]
<nemish> I'm trying to figure out how to write an application … and its kinda complicated i guess for my first real program in ruby but from all the power of ruby it seems like a lot can be done with a little code
<nemish> tintin: n00b in ruby yes
minijupe has joined #ruby
crackfu has joined #ruby
jaygen has joined #ruby
<tintin> nemish: What do you want to do?
<nemish> I'm not sure if I should be looking at plain ruby, rails, sinatra, rack… a lot of this stuff is all greek to me :P
jaygen_ has quit [Ping timeout: 252 seconds]
<tintin> nemish: Learn plain ruby
<Mayhew> nemish: what do you want to build?
<nemish> I want to create a web service to do binary asset serving and manipulation
<blazes816> nemish: sinatra is really good, or grape if you're just building an api
<blazes816> both are rack based, but a bit nicer to use
viuo has joined #ruby
<blazes816> but much lighter than rails
<Mayhew> Agreed with blazes816, Sinatra is perfect for creating web services.
<nemish> has a few parts but step one would be serving images from s3… step 2 would be passing path to end of image that would use imagemagick or rMagick to resize the image… then allow something like /w to be passed at the end to watermark the image
radic has quit [Disconnected by services]
radic_ has joined #ruby
<blazes816> yep, sinatra sounds like exactly like what you want
kil0byte has joined #ruby
<nemish> so /image-guid/ would serve the image from s3… /image-guid/200x.jpg would rescale the image to 200x columns.. x200 would resize to 200 rows…
x82_nicole has joined #ruby
<nemish> ok well i wrote my first hello world sinatra app ;)… now what
<nemish> :P
crackfu has quit [Ping timeout: 244 seconds]
<Mayhew> nemish: learn the Ruby API for Amazon S3
JustinCampbell has quit [Ping timeout: 252 seconds]
<blazes816> then write a get '/:image-guid' route, and get '/:image-guid/:settings/' rout
<mariooo> somewhat silly question: how might I get rand() to give me random integer between 0 & max int, instead of 0 and 1?
<mariooo> *a random integer, even
<mariooo> *instead of a float between 0 and 1
<tintin> Mayhew: What is amazon S3?
<blazes816> google it
savage- has joined #ruby
<Mayhew> tintin: it's cloud storage infrastructure, what companies like Dropbox use under the hood.
voodoofish has joined #ruby
jenrzzz has joined #ruby
dmiller_ has joined #ruby
<mariooo> blazes816: all I can seem to find is people looking for specific ranges, unsure how to specify max int?
tomdebenning has quit [Quit: tomdebenning]
<blazes816> 0 through a max integer is a specific range
<mariooo> blazes816: i.e. "Ruby automatically converts integers to a large integer class when they overflow, so there's (practically) no limit to how big they can be."
<mariooo> ^ i.e. don't want that to happen
<mariooo> I'm assuming there's someway of getting max int for the current system, but failing to find what that is
<blazes816> btw, 'google it' was intended for tin tin, I should have specified
chimkan has quit [Remote host closed the connection]
<mariooo> right, sorry
<blazes816> np
chimkan_ has joined #ruby
<tintin> taking value from rack to display on html file with ruby, what do you do?
<tintin> Any template system? or html
redbull has quit [Read error: Connection reset by peer]
<tintin> How to pass the value to html to display it?
<blazes816> mariooo: [*0..50].sample
redbull has joined #ruby
<blazes816> [*0..500].sample
<mariooo> hrm... what's *0 do?
<x82_nicole> I'm pulling my hair out over here. How do I use this API response? Since it's a string, I have to convert it to an array/object by hand? This can't be normal workflow. Here is my code: http://pastie.org/pastes/5170134
<blazes816> mariooo: [*(0..50)].sample
rburton- has joined #ruby
<tintin> Can anyone answer me?
<blazes816> mariooo: 0..50 is a range. * in front of it makes it an array. then we call #sample on it
<mariooo> blazes816: right ok yep, I've got that far
<mariooo> blazes816: what I was suck on is something like, (0..MAX_INT)
<mariooo> blazes816: part of me knows that's probably possible somehow, but it feels pretty dodge
<mariooo> blazes816: when rand() pretty much does what I want already... I just want the decimal part as an integer =/
<blazes816> mariooo: i=50;[*(0..i)].sample
fredjean has joined #ruby
<mariooo> blazes816: when I say max_int i mean, some keyword for the largest possible integer on the system.
<mariooo> blazes816: not a variable
Caleb_ has quit [Quit: Caleb_]
<blazes816> oh, gotcha, i'm sorry haha
<blazes816> i misunderstood what you meant
<mariooo> nah no worries i'm explaining like a noob
<blazes816> no, I'm just dumb
minijupe has quit [Quit: minijupe]
<mariooo> I feel like there's probalby some silly thing
<mariooo> like
<mariooo> rand() * 100000000
<mariooo> will always make it an integer
<mariooo> or something
<blazes816> anyways, I think the best you can do is rand() times just large number
<mariooo> maybe (rand()*10000000).to_int
<blazes816> Integer(rand() * 99999999)
<mariooo> ah yep
<mariooo> meh
<mariooo> that'll do for now
<mariooo> thanks! ;)
JustinCampbell has joined #ruby
areil has joined #ruby
thone_ has joined #ruby
medik has quit [Quit: Leaving]
ananthakumaran has joined #ruby
postmodern has joined #ruby
Gmind1 has joined #ruby
g-ram has joined #ruby
thone has quit [Ping timeout: 252 seconds]
davidcelis has joined #ruby
Gmind has quit [Ping timeout: 252 seconds]
BadProphet has joined #ruby
havenn has joined #ruby
minijupe has joined #ruby
vickaita has joined #ruby
havenn has quit [Remote host closed the connection]
havenn has joined #ruby
jaygen_ has joined #ruby
d2dchat has quit [Remote host closed the connection]
havenn has quit [Ping timeout: 244 seconds]
<Paradox> ho boy
<Paradox> ruby 2.pre
joeycarmello has quit [Remote host closed the connection]
cobragoat has joined #ruby
seanyo has quit [Remote host closed the connection]
vickaita has quit [Ping timeout: 276 seconds]
blazes816 has quit [Quit: blazes816]
jaygen has quit [Ping timeout: 252 seconds]
<BoomCow> how do you guys think of unless
<BoomCow> the keyword always confuse me
<BoomCow> s
<eph3meral> BoomCow: "if not"
kil0byte_ has joined #ruby
<eph3meral> it's pretty simple, any time you're about to use something like
<eph3meral> if !cool
<eph3meral> BoomCow: you can say
<eph3meral> unless cool
<eph3meral> instead
cobragoat has quit [Ping timeout: 256 seconds]
<BoomCow> yeah, I'm doing some koans right now
<BoomCow> and this line
<BoomCow> break unless i <= 10
kil0byte has quit [Read error: Connection reset by peer]
<BoomCow> it took awhile for me to think it through
<BoomCow> it just doesn't read well to me
<eph3meral> break if i is not less than ten
<eph3meral> yeah that's bad form
<BoomCow> I like it more when it's used like
perryh has quit [Excess Flood]
<BoomCow> a unless place.blank?
<eph3meral> programmers commonly use double negatives, that could be more clearly written as break if i > 10
<BoomCow> so in a unless place.blank?
<BoomCow> if place is blank
<Paradox> BoomCow, i think of it as a broken if you should be careful
<BoomCow> not a
perryh has joined #ruby
<Paradox> i very rarely if ever use it in a block statement
<BoomCow> so if a = 0
<BoomCow> a = 1 unless place.blank?
<Paradox> i mainly use it as a single-line conditional
stephenjudkins has quit [Quit: stephenjudkins]
<BoomCow> so if place is blank
<BoomCow> a = 0
<eph3meral> BoomCow: I mainly use it for error checking
<Paradox> raise FuckedUpError unless a = 0
<eph3meral> yep
<Paradox> and not = 0
<BoomCow> yeah
<Paradox> == 0
<eph3meral> unless this_very_important_thing_is_the_way_it_should be
<eph3meral> freak out
<eph3meral> end
<BoomCow> I have to think about it for a bit
<BoomCow> I have to think for a bit
BoomCow has left #ruby ["Leaving"]
<Paradox> dont do unless herp ¬ derp ¬ end
<Paradox> thats dumb
BoomCow has joined #ruby
<Paradox> and hard to read
<Paradox> and what if you want to reverse it later
<eph3meral> you're dumb and hard to read
<eph3meral> lol, wtf?
<BoomCow> hahaha
<Paradox> better to do if !herp ¬ derp ¬ end
<eph3meral> it's perfectly easy to read
<BoomCow> yeah
<BoomCow> I prefer if statement
<BoomCow> if !
<Paradox> not idiomatic though
<eph3meral> you're an idiom :P
<eph3meral> it's perfectly idiomatic
BrianJ has joined #ruby
<eph3meral> maybe not YOUR idiom
<BoomCow> unless not true
<BoomCow> AHHHH
<BoomCow> unless !true
<eph3meral> BoomCow: you're thinking too hard
<BoomCow> = if false?
Serial_Killer_C has joined #ruby
cableray has quit [Quit: cableray]
<eph3meral> BoomCow: if you use ruby well, then you'll have mostly names to work with, and you can go on the linguistic description of what's happening… provided you cover your bases before hand, you'll be fine
Dreamer3__ has joined #ruby
<BoomCow> okay
<BoomCow> something I"ll pick up over time :)
<eph3meral> BoomCow: think of it and generally try to use it as an error checking thing
Companion has quit [Ping timeout: 256 seconds]
<BoomCow> I used to have a much harder time with it
Mayhew has quit [Quit: leaving]
<BoomCow> I still remember my first time seeing it
<eph3meral> like I said… unless something_important_is_the_way_it_should_be; freak_the_heck_out(); end
<BoomCow> my mind exploded
<eph3meral> OR, if you wanna be a god like Paradox
<Paradox> or eat babies
<Paradox> for breakfast
<eph3meral> you can use something like raise SomethingIsFucked unless something_is_the_way_it_should_be
<BoomCow> I prefer milk with my babies
<BoomCow> today at work, I spent a full day trying out something that doesn't work
<BoomCow> is this typical?
<BoomCow> or should I try to avoid this
Coolhand has quit [Quit: No Ping reply in 180 seconds.]
jenrzzz has quit [Ping timeout: 245 seconds]
<eph3meral> both
<BoomCow> I felt unproductive even though I was hacking away
Coolhand has joined #ruby
<eph3meral> you were
<Paradox> BoomCow, were you being paid?
<BoomCow> yes
<Paradox> then it was productive
<Paradox> you learned something doesnt work
<BoomCow> did not expect that
<BoomCow> lol
<Paradox> if you hadnt done that
<BoomCow> :D
<Paradox> you would not have known that something didnt work
<BoomCow> moving towards the right direction
<Paradox> and you might have done that something at some time in which the something was far more imporant and impactful
<eph3meral> BoomCow: as long as your boss doesn't care/realize/find-out/clue-in etc you can probably do that regularly
<BoomCow> well, my boss knows I'm new to programming
<eph3meral> although all of that is mitigated by the reality of exactly what you did
<BoomCow> so I'm getting paid to learn
<BoomCow> I'm not used to the engineering field yet
<eph3meral> BoomCow: then what you did was expected
<eph3meral> so don't worry about it
<BoomCow> at my old place
<BoomCow> productivity was measured by how much of something you can churn out
Companion has joined #ruby
<Paradox> thats a code factory
<BoomCow> with programming, it doesn't seem to always work that way
jeffreybaird has quit [Quit: jeffreybaird]
<eph3meral> BoomCow: yeah, well, ultimately that is pretty much still the measure of what most work places call "productivity"
kbeddingfield has joined #ruby
<BoomCow> I basically played with some matching algorithm all day
nat2610 has joined #ruby
<eph3meral> were you productive for yourself? yes, you learned - were you productive for your company? sort of, provided you still work there in the future and the investment you placed in yourself is returned to them
<eph3meral> but, really - it mostly doesn't matter provided you've got food on the table
<BoomCow> mhmm
<BoomCow> still settling in so not sure what to expect
<BoomCow> I appreciate the feedback :)
omg765 has quit [Quit: Computer has gone to sleep.]
sambio has quit []
<BoomCow> and work doesn't really tell me much
<BoomCow> I just show up
<BoomCow> do my shit
<BoomCow> and leave
Raol has joined #ruby
<BoomCow> do you guys work in startups
<eph3meral> BoomCow: your company is trying to invest in you, and they hope that will return profits by you giving them work for probably cheaper than someone who knows what's actually going on
<eph3meral> it's actually pretty common
<eph3meral> BoomCow: I have, why?
<BoomCow> just curious
<eph3meral> try #startups if you want
<BoomCow> how do you like startups vs corporate programming job
<eph3meral> there's nothing special really about startups - it's all in how they treat their employees
<Raol> hi guys
arubin_ has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<eph3meral> provided you're an employee, and unless you've got about 50% equity, don't fool yourself, you're just an employee
<BoomCow> yeah
<BoomCow> I joined late
<BoomCow> it's a small team
<BoomCow> but we've gotten a good amount of fudning
<BoomCow> so I'm pretty sure my stocks are shit
<BoomCow> not hoping to get rich from the company
<eph3meral> plenty of small teams get big money
<Raol> i have just started working on a startup with a client who will pay us only after the product earns something
<eph3meral> plenty of big corps are on a shoestring budget
<Raol> wot do u think is it good or bad ?
<BoomCow> just hoping to learn enough and save up to attempt another startup
<eph3meral> BoomCow: it's less about "startup" vs "not startup" and more about the actual people and how they behave
slainer68 has joined #ruby
<BoomCow> Raol bad imo
kbeddingfield has quit [Ping timeout: 260 seconds]
omg765 has joined #ruby
<BoomCow> Raol, you take all the risk and he has nothing to lose
<Raol> i know :)
<eph3meral> BoomCow: I tend to find smaller companies are often less formal, but also therefor less professional in day to day personal interactions within the company and things like responsibility and accountability and well established hierarchy/seniority/authority
joofsh has quit [Remote host closed the connection]
<Raol> yes thats right boomcow
<BoomCow> eph3meral, I actually prefer that
<BoomCow> eph3meral, I don't care to dress up and behave properly
<BoomCow> I just like to get shit done
<BoomCow> I try to avoid office politics as much as possible
<BoomCow> it's fruitless
<eph3meral> BoomCow: ehh, i used to think the "more formal" thing was nice and I used to be like "damn the man" - but actually those things are really beneficial in many ways
<eph3meral> BoomCow: there's no way to avoid politics
heftig has quit [Ping timeout: 245 seconds]
<eph3meral> you can bury your head in the sand, but the bullets will still fly and you'll get hit without knowing who did it to you
<Raol> i just left my job because of office politics now working on startup ideas
heftig has joined #ruby
<eph3meral> politics in small companies are just different is all
<BoomCow> Raol, that was why I left my job to attempt a startup too
mengu has quit [Ping timeout: 255 seconds]
<Raol> cool
<eph3meral> in fact it can be much worse because of things like nepotism et al
<BoomCow> but eph3meral is right
<Spaceghostc2c> Raol: Exciting.
<BoomCow> you can't really avoid it
<Spaceghostc2c> Raol: I think it's bad.
<eph3meral> but big corps have equally messed up politics
<BoomCow> eph3meral, welcome to the adult world :D
<Spaceghostc2c> eph3meral: Their messed up politics are enterprise scale though.
<Raol> space : wats bad me leaving th e job or politics in compny?
<eph3meral> webscales politics!
<Spaceghostc2c> Raol: No, that the client will only pay after it makes money.
<Raol> hhehe
<Spaceghostc2c> I'd make them pay out the nose if you have to build it and prove it's viable first. Sell it to them as a service they pay out the nose for each month.
<Raol> yes thats true
<eph3meral> Raol: if your bank account is padded enough for you to live for the next two years AND you don't care about wasting your time for potentially (really more like probably) nothing, then yeah it's a great idea
<Spaceghostc2c> Then go sell it to other people.
slainer68 has quit [Ping timeout: 256 seconds]
<BoomCow> Raol, it comes down to whether or not you value your time, man
<Raol> we are 5 friends who left the job from the same company because of worthless politics...
<Spaceghostc2c> Or if he wants to take the idea and run with it.
<eph3meral> Raol: run
<Raol> now we are trying get nythin at all to build our profile
<BoomCow> profile or portfolio?
<Raol> so not getting money is kinda secondary
<Spaceghostc2c> Raol: Come up with some fun kind of service. Something you want to build.
<Raol> portfolio
<BoomCow> what field are you from Raol?
jeffreybaird has joined #ruby
<eph3meral> left
Juul has quit [Quit: Leaving]
<Raol> we are into website development
<BoomCow> what field did you leave*
<Spaceghostc2c> BoomCow: The southern one with the rice fields.
<eph3meral> magnetic?
<BoomCow> hahahah
<Raol> hehe
<BoomCow> what profession*
ryanf has joined #ruby
roadt has joined #ruby
<BoomCow> you guys made me ask that question 3 times
thinkdevcode has joined #ruby
<Raol> software engineer
<BoomCow> ahh
<BoomCow> so you already know how to code
<Spaceghostc2c> BoomCow: We're skilled like that.
<Raol> yes
dakine has joined #ruby
<Spaceghostc2c> I've seen startups with only business people and no technical minds. Lulz.
<BoomCow> how does that work
<jake_> not well
<Spaceghostc2c> BoomCow: Like sales does.
<BoomCow> unless someone starts learning
<Spaceghostc2c> "We can deliver it!" But it doesn't exist.
<jake_> YC took a 1 non tech founder this term
<Spaceghostc2c> But they spend every night trying to get developers from mailing lists, meetups, etc.
<BoomCow> jake_, I read about that the other day
<Spaceghostc2c> jake_: I'm curious about it. Where can I read?
<jake_> it hit the front page on hacker news
<jake_> ill find a link
<tintin> How can i pass the value of rack request to html?
<jake_> hacker news: read. read. read. :D http://news.ycombinator.com/
<tintin> Should i use any template?
<jake_> anyone playing with tent?
cableray has joined #ruby
omg765 has quit [Quit: Computer has gone to sleep.]
<eph3meral> tintin: maybe ask #rack ?
<eph3meral> tintin: #sinatra is pretty "racky", they might field that one
<Spaceghostc2c> jake_: Oh hm.
Dreamer3__ has quit [Quit: Leaving...]
<Spaceghostc2c> jake_: Also, no. tent is shit, imo
alek_b has joined #ruby
<jake_> Spaceghostc2c: why's that?
<Spaceghostc2c> jake_: Sending http posts everywhere isn't very scaley or nice.
<Spaceghostc2c> jake_: I'd rather they used existing protocols or improving them.
<jake_> Spaceghostc2c: what protocol might you have used (with or without modification)?
<Spaceghostc2c> steveklabnik has a lot more hatereasons.
dhruvasagar has joined #ruby
<BoomCow> heading home now
<jake_> im not really into tent in particular but the idea in general
<Spaceghostc2c> Ostatus.
<Spaceghostc2c> With some likely adjustments/extensions.
<tintin> Spaceghostc2c: YOu here too?
<Spaceghostc2c> tintin: I'm nearly everywhere.
<Spaceghostc2c> Being a ghost has its advantages.
<tintin> Spaceghostc2c: It's not rails
<Spaceghostc2c> tintin: What does that have to do with it?
xpen has joined #ruby
DrShoggoth has joined #ruby
BoomCow has quit [Quit: This computer has gone to sleep]
<jake_> o status seems very 'poll'ish whereas tent seems 'push'y
<Spaceghostc2c> You do know that rails is just a rather large collection of metabrogramming techniques under the guise of being a framework, right?
<eph3meral> tintin: I think you may have mistaken Spaceghostc2c talking in here with him actually responding to your question, which I don't believe he has
<tintin> eph3meral: Ok
<tintin> He knows more about rails than ruby
<eph3meral> I'll let him assert that
cakehero has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
<jake_> Spaceghostc2c: no i didn't, but then again i barely understand the proper way to think about conditionals in ruby, much less the great mystery of meta programming :D i just chill in #ruby apparently
kbeddingfield has joined #ruby
<Spaceghostc2c> I'm a rubyist, not a rails developer.
<eph3meral> tintin: seems you know more about nothing than you know about Spaceghostc2c :P
<Spaceghostc2c> eph3meral: That was a funny and awesome way to put it.
<Spaceghostc2c> I just work with rails, but I'm not relegated to rails.
<Spaceghostc2c> Oh if you only knew the ways I pervert rails...
nazty has quit [Read error: Connection reset by peer]
adeponte has quit [Read error: Connection reset by peer]
<jake_> ?
nazty has joined #ruby
adeponte has joined #ruby
yakko has joined #ruby
tintin has left #ruby [#ruby]
yakko is now known as tpinto
Kant has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
<nemish> ok well i guess i'm not a developer… I can't seem to get this ruby stuff to work… thanks for the help guys
chimkan__ has joined #ruby
sailias has quit [Ping timeout: 260 seconds]
<Spaceghostc2c> nemish: Ruby doesn't actually work, it just whispers sweet nothings into your ears while it just sits there looking sexy.
<nemish> must be Spaceghostc2c ;)
<Spaceghostc2c> Wait. Oh the programming language...
<jake_> don't throw in the towel just cause ruby gets you. try python.
havenn has joined #ruby
dhruvasagar has joined #ruby
<eph3meral> lol, anyone who uses the word 'sexy' in context of code or interfaces probably hasn't gotten any 'sexy' in a long time
<eph3meral> luckily, Spaceghostc2c saved himself with a bit of humor that time
<Spaceghostc2c> jake_: Or better yet, whitespace. If you can't manage the space bar, you've got bigger problems. :p
<eph3meral> but for real… "that's sexy"… is just far too overplayed, and also it makes me wonder towards the sanity of those individuals
iamjarvo has quit [Quit: Computer has gone to sleep.]
<eph3meral> I have created a new term, robosexuals, we are a new race, we shall prevail!
banisterfiend has quit [Ping timeout: 260 seconds]
gabrielrotbart has joined #ruby
chimkan_ has quit [Ping timeout: 256 seconds]
Gmind has joined #ruby
<jake_> eph3meral: i think robosexual was coined by the writers of futurama
djbpython has quit [Ping timeout: 260 seconds]
<eph3meral> ahh, probably :(
BrianJ has quit [Quit: BrianJ]
<jake_> we can't be associated w/ those filthy humans
<Spaceghostc2c> Which isn't a bad thing to associate with!
<Spaceghostc2c> I mean futurama, not filthy meatbags.
quest88 has joined #ruby
mmlac has quit [Quit: Comics for a flat fee - http://comicb.in]
Gmind1 has quit [Ping timeout: 260 seconds]
quest88 has quit [Remote host closed the connection]
Antiarc has quit [Read error: Connection reset by peer]
rub has quit [Remote host closed the connection]
ananthakumaran has quit [Quit: Leaving.]
hbpoison has quit [Ping timeout: 264 seconds]
Tref has joined #ruby
hbpoison has joined #ruby
Solnse has joined #ruby
BoomCow has joined #ruby
Cultofmetatron has joined #ruby
joeycarmello has joined #ruby
<Solnse> ruby 2.0.0-preview1
pu22l3r has quit [Remote host closed the connection]
CodeVision has quit [Ping timeout: 252 seconds]
sailias has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
BoomCow has quit [Client Quit]
CodeVision has joined #ruby
ahuman_ is now known as ahuman
Kant has quit [Remote host closed the connection]
<rburton-> Solnse yup saw that today when Matz was presenting about the offical release coming soon
<Solnse> nice... looks like release in february?
<rburton-> Yup the birthday of Ruby
<rburton-> Refinements may or may not make it
savage- has quit [Quit: savage-]
<rburton-> Keyword arguments is a nice little perk
<havenn> rburton-: Already made it, no?
<rburton-> made it? to the conf?
<havenn> rburton-: 2.0 is feature frozen, and refinements are in.
<rburton-> One person presented it as being a maybe
<Solnse> feature freeze next month according to that post
<rburton-> Akira Matsuda's slide
c0rn has joined #ruby
<havenn> Solnse: I thought freeze was last Sun.
<rburton-> I'm still big on JRuby. I really need to look at more of what Square has done with jetpack
<havenn> rburton-: Ahh, I didn't catch Matsuda talk.
<Spaceghostc2c> That's one of my favorite parts.
<Spaceghostc2c> I can't wait.
<Solnse> my mistake... code freeze around xmas I read
<rburton-> are you at the conference?
<Spaceghostc2c> rburton-: Mmm, jruby!
adeponte has quit [Remote host closed the connection]
<rburton-> Spaceghostc2c totally I was eating with headius/charles Nutter and tom
<rburton-> those guys work hard at kicking ass
<rburton-> Still not sure what in Ruby 2.0 makes it a major release
<havenn> rburton-: Yup, just left iTriage party with... a case of beer. Apparently their fridges couldn't hold it all so I carried a case back to the hotel. >.>
<rburton-> I think that's where Charles went after having a few beers with a few folks
<rburton-> my hotel is too far from the conference. about 1.5 miles
<Solnse> lol
<Solnse> too far to carry a case of beer? never
<Spaceghostc2c> rburton-: Fucking jealous.
<rburton-> To far to walk home drunk lol
adeponte has joined #ruby
<Solnse> that's what cabs are for.
<Spaceghostc2c> rburton-: So jealous.
<rburton-> Anyone have a recommendation for a replacement of Foreman that works with JRuby?
<Spaceghostc2c> I, for one, love named arguments.
<rburton-> Solnse: true
<rburton-> Spaceghostc2c same here so that's a nice feature
JonnieCache has joined #ruby
<havenn> P.S., anyone at Grand Hyatt who wants some Breckenridge Christmas Ale, lemme know. I've managed to drink one of them so far.
<Spaceghostc2c> I now want a hard cider.
<havenn> I'm curious about Module prepend. Really like named arguments and refinements.
ABK has joined #ruby
xpen has quit [Ping timeout: 260 seconds]
<rburton-> havenn ha
<havenn> rburton-: If you want some beer, I'm your guy. Seriously no possible way I can drink all this, it is 7% alcohol.
<rburton-> I'm too far away lol
<havenn> rburton-: I was tricked into thinking the conference was in this hotel. Not at all true. >.>
jeremywrowe has quit [Quit: jeremywrowe]
<rburton-> ha I booked for 80/night
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has quit [Remote host closed the connection]
justsee has joined #ruby
justsee has joined #ruby
<dakine> free thermal putty after rebate
<dakine> (10.99)
<dakine> ((usd))
Cultofmetatron has quit [Remote host closed the connection]
JonnieCache has quit [Ping timeout: 248 seconds]
<havenn> dakine: Sweet! I'm almost tempted, though I have no use (I can think of) for thermal putty. Could come in handy?
<havenn> Haven't been seating CPU's lately.
<dakine> yeah, that's what i was thinking XP
<dakine> figured i'd share in case some one was building a new box
cableray has quit [Quit: cableray]
<rburton-> fuck me - Election comericals back to back
ananthakumaran has joined #ruby
chimkan__ has quit [Quit: chimkan__]
c0rn has quit []
Kant has joined #ruby
<Spaceghostc2c> rburton-: Different parties?
chimkan has joined #ruby
<rburton-> both back to back
<rburton-> Romney then Obama
Gmind has quit [Quit: Leaving.]
dmiller_ has quit [Remote host closed the connection]
<musl> Fuck electing one of two people I'm not excited about.
<rburton-> musl++
<havenn> Two candidates is only slightly less pathetic than one candidate.
<musl> That said, I'm baffled why folks would take the pointy-haired-boss seriously.
richardjortega has joined #ruby
<richardjortega> I'm trying to parse data into a csv using Ruby CSV and getting the following error: Encoding::UndefinedConversionError: U+2019 from UTF-8 to ISO-8859-1
<musl> ISO-8859-1 doesn't have a character that corresponds to U+2019. Looks like you might need to specify an encoding. This might help: http://nuclearsquid.com/writings/ruby-1-9-encodings/
<havenn> I so wish we could just use UTF-8 and only UTF-8. :(
Blaster has joined #ruby
Raol has left #ruby [#ruby]
<Blaster> hey guys im trying to gem install ruby and when I type gem install rails it takes like 5 minutes then says "aborted:
<Blaster> "aborted" *
sailias has quit [Ping timeout: 260 seconds]
kil0byte_ has quit [Ping timeout: 264 seconds]
stephenjudkins__ has joined #ruby
<eph3meral> gem install ruby, doesn't… like… exist, maaaan
<richardjortega> musi: i specified my encoding with "ISO-8859-1"
<richardjortega> so that the csv would have special characters
stephenjudkins__ has quit [Client Quit]
justsee has quit [Ping timeout: 244 seconds]
<Blaster> gem install rails
<Blaster> sorry
<Blaster> haha
<richardjortega> if i set it to "utf-8", all the special characters are replaced by their utf-8 counterpart
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
<havenn> Blaster: What version or Ruby and Rubygems?
<Blaster> ruby 1.8.5
<richardjortega> i just want to display special characters in my csv output
<Blaster> 1.3.1 rubygems
ipoval has joined #ruby
<havenn> Blaster: Is it at all possible for you to use Ruby 1.9.3 with gem 1.8.24??
stephenjudkins__ has joined #ruby
<Blaster> If I can find a yum repository that has it
<havenn> Blaster: Good! Switch to 1.9 and your problems dissolve.
ABK has quit [Ping timeout: 246 seconds]
tonini has joined #ruby
<musl> richardjortega: What's the source encoding? UTF-16, or something more exotic?
<Blaster> havenn: What about my gems version?
<richardjortega> musi: source encoding is utf-8
ryanf_ has joined #ruby
<havenn> Blaster: Way too old on both counts. Scary old. A new Ruby will come with a new rubygems.
<havenn> Blaster: 1.8.7 is too old. 1.9+ is good. 2.0 comes out in Feb.
<havenn> Blaster: 1.8.5 is scary.
<musl> Then if you've told ruby to use the correct external and internal encodings, your data should be making it through perfectly.
<musl> *should* I'm not an expert with the wiley world of encodings.
ryanf has quit [Quit: leaving]
ryanf_ is now known as ryanf
<Spaceghostc2c> 1.9.1 is lulzy too.
<Paradox> purple poop
<richardjortega> well i'm creating a csv on the fly from that utf-8 data and now "42º North" read as "42º North"
<richardjortega> when i open up the csv in excel
<havenn> Spaceghostc2c: Good point, I shoulda said 1.9.2+
<Paradox> richardjortega, thats because you arent saving the csv right
<Paradox> thats a utf-8 combining character
* musl looks earnestly at the url he posted earlier.
ipoval has left #ruby [#ruby]
<richardjortega> I'm calling CSV.open after i have a huge dataset of array of hashes
<richardjortega> i'll reread the url posted earlier again
Gmind has joined #ruby
Serial_Killer_C has quit [Remote host closed the connection]
keymone has quit [Read error: Connection reset by peer]
keymone has joined #ruby
justsee has quit [Quit: Linkinus - http://linkinus.com]
<musl> CSV ruby-doc mentions encodings, too: http://is.gd/6yD19Y
evilsushi has quit [Quit: Lost terminal]
Juul has joined #ruby
jake_ has quit [Ping timeout: 248 seconds]
cobragoat has joined #ruby
tpinto is now known as yakko
viuo has quit [Ping timeout: 260 seconds]
Dreamer3 has quit [Quit: Leaving...]
viuo has joined #ruby
cobragoat has quit [Ping timeout: 240 seconds]
brianpWins has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
ABK has joined #ruby
kiyoura has quit [Quit: Leaving]
ryanf has quit [Quit: broken pipes |||]
ryanf_ has joined #ruby
ryanf_ is now known as ryanf
savage- has joined #ruby
monkegjinni has quit [Remote host closed the connection]
cakehero has quit [Quit: Computer has gone to sleep.]
eph3meral_ has joined #ruby
jenrzzz has joined #ruby
eph3meral has quit [Ping timeout: 244 seconds]
eph3meral_ is now known as eph3meral
slainer68 has joined #ruby
glyytchy has quit [Quit: glyytchy]
stkowski has quit [Quit: stkowski]
perryh has quit [Excess Flood]
gabrielrotbart has quit [Remote host closed the connection]
bigmcq77 is now known as asdfasdf
Tearan has joined #ruby
slainer68 has quit [Ping timeout: 260 seconds]
perryh has joined #ruby
asdfasdf is now known as bigmcq77
Tearan has quit [Client Quit]
rburton- has quit [Quit: Leaving...]
lxsameer has joined #ruby
eddie_ has joined #ruby
<eddie_> Guys i have to build a rails REST API. I am new to rails. Which is the best tutorial for me
<eddie_> ?
justinmcp has quit [Remote host closed the connection]
burgestrand has joined #ruby
justinmcp has joined #ruby
<JohnTeddy> I'm getting the right output, though perhaps I didn't do it exactly how they want. I don't know. I was cruising through other exercises, this one is destroying my time/mind.
<Spaceghostc2c> It's pasted into pastebin, that's what.
<JohnTeddy> heh, Well copy the pastebin result, then dump it into the codeacademy editor.. and hit 'run'
anpl has quit [Read error: Connection reset by peer]
justinmcp has quit [Ping timeout: 260 seconds]
<heftig> JohnTeddy: you forgot to add a space behind REDACTED
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
<JohnTeddy> heftig: I still can't pass after making that change, I get 'It looks like you didn't print each word from the user's text to the console.'
yxhuvud has joined #ruby
<JohnTeddy> heftig: did you pass after making that change?
anpl has joined #ruby
thinkdevcode has quit [Remote host closed the connection]
JohnBat26 has joined #ruby
BadProphet has quit [Quit: This computer has gone to sleep]
jlwestsr has quit [Ping timeout: 246 seconds]
yakko has quit [Quit: night]
shiin has quit [Quit: Computer has gone to sleep.]
<Spaceghostc2c> JohnTeddy: Nope. :)
adeponte has quit [Remote host closed the connection]
mmercer has quit [Ping timeout: 244 seconds]
joukokar has quit [Ping timeout: 244 seconds]
wca has quit [Read error: Operation timed out]
wca has joined #ruby
wca has joined #ruby
wca has quit [Changing host]
<JohnTeddy> heh
<JohnTeddy> I'm not sure if it's a bug, or what.
tagrudev has joined #ruby
<JohnTeddy> I probably did 50 exercises before this with no problems.
joukokar has joined #ruby
cespare has quit [Ping timeout: 252 seconds]
<dakine> havenn: another sweet deal
<dakine> ADATA Value-Driven S102 Pro Effortless Upgrade 16GB USB 3.0 Flash Drive
Gmind1 has joined #ruby
mmercer has joined #ruby
<dakine> 11/10 build quality too ,i have that exact one, picked it up for 9.99 on an earlier deal for it
cespare has joined #ruby
answer_42 has joined #ruby
Goles has quit [Remote host closed the connection]
Gmind has quit [Ping timeout: 260 seconds]
chimkan has quit [Remote host closed the connection]
<havenn> csmrfx: That is why I use Jruby and RBX, I like using more characters. ;P
chimkan has joined #ruby
<havenn> csmrfx: I have a benchmark somewhere comparing 23 vs 24 char strings in all the Ruby implementations. I was... bored.
<havenn> I think a good trivia is asking the object_id of nil in various implementations. :)
<csmrfx> hm, youd think thats nil
joeycarmello has quit [Remote host closed the connection]
Kant has quit [Remote host closed the connection]
<havenn> e.g., in RBX it is 26 (no idea why...)
chimkan has quit [Ping timeout: 248 seconds]
aganov has joined #ruby
<havenn> in Maglev it is 20
kbeddingfield has quit [Remote host closed the connection]
Drewch has quit [Quit: ZNC - http://znc.in]
samuel02 has joined #ruby
adeponte has joined #ruby
chimkan has joined #ruby
steph021 has joined #ruby
richardjortega has quit [Quit: richardjortega]
hbpoison has quit [Ping timeout: 264 seconds]
chimkan__ has joined #ruby
steph021 has quit [Client Quit]
adeponte has quit [Ping timeout: 260 seconds]
savage- has quit [Quit: savage-]
<csmrfx> uh, id for nil or the string lenght limit before perf impact?
<havenn> csmrfx: nil
Uranio has quit [Ping timeout: 248 seconds]
lxsameer has quit [Ping timeout: 265 seconds]
chimkan has quit [Ping timeout: 252 seconds]
chimkan__ is now known as chimkan
staafl has joined #ruby
<havenn> csmrfx: nil is 4 in 1.9.3 and Jruby cause false is 0 and true is 2
J-_-L has joined #ruby
<havenn> csmrfx: oddly... in 2.0.0 true is 20
<havenn> csmrfx: Again, no idea why. >.>
nat2610 has quit [Quit: Leaving.]
<havenn> And in 2.0.0 nil is 8. Go-figure.
<havenn> Implementation details...
dross has quit [Ping timeout: 240 seconds]
Guest15771 has joined #ruby
Juul has quit [Quit: Leaving]
JustinCampbell has quit [Remote host closed the connection]
lxsameer has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
charliesome has joined #ruby
J-_-L has quit [Quit: Leaving.]
lxsameer has quit [Ping timeout: 244 seconds]
bl3k has joined #ruby
bl3k has quit [Read error: Connection reset by peer]
fantazo has joined #ruby
tds has joined #ruby
arkiver has joined #ruby
<Spaceghostc2c> havenn: Lol really?
answer_42 has quit [Ping timeout: 276 seconds]
jaygen_ has quit [Remote host closed the connection]
g-ram has quit [Quit: Computer has gone to sleep.]
<havenn> Spaceghostc2c: Yup. Now the cryptic error messages about nil will involve 8 not 4, hehe.
chimkan has quit [Quit: chimkan]
lxsameer has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
<havenn> In mruby nil is 1 >.>
tchebb has quit [Quit: Leaving.]
<Spaceghostc2c> havenn: Everyone knows nil is obvsly 8
<Spaceghostc2c> :D
eph3meral has quit [Quit: eph3meral]
<havenn> >.>
uxp has quit [Read error: Connection reset by peer]
uxp has joined #ruby
<havenn> Maybe I should prepare a lightning talk on nil for tomorrow. I HAVE NO IDEA WHY, BUT NIL IS ALL THESE NUMBERS!!!
khakimov has quit [Ping timeout: 255 seconds]
<havenn> I'm actually curious to ask the Ruby devs why they switched from 1.8, 1.9 to this newfangled 2.0 stuff.
tchebb has joined #ruby
ryanf has quit [Quit: leaving]
<havenn> At least false is still 0, I can live with that.
<charliesome> i don't see why nil has a special pointer value
<charliesome> can't they just allocate a single global nil object
<charliesome> and point to that
maesbn has joined #ruby
mercwithamouth has joined #ruby
Morkel has joined #ruby
und3f has joined #ruby
eddie_ has quit [Read error: Connection reset by peer]
JonnieCache has joined #ruby
burgestrand has quit [Quit: Leaving.]
burgestrand has joined #ruby
<havenn> charliesome: Matz chose odd numbers to represent actual numbers - so 0's object_id is 1, 1's object_id is 3, etc. Non-numbers use evens, false's id is 0, true's 2, nil's 4. Patrick Farley's Ruby Internals talk is awesome regarding the 'why'. I've got a copy but seem like vid links are dead?
<charliesome> havenn: i understand the why of using tagged pointers for fixnums
<charliesome> i'll watch that
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
Gmind has joined #ruby
swex has quit [Read error: Operation timed out]
burgestrand has quit [Ping timeout: 252 seconds]
Whackatre has quit [Quit: No Ping reply in 180 seconds.]
swex has joined #ruby
mucker has joined #ruby
Ry has quit [Read error: Connection reset by peer]
JonnieCache has quit [Ping timeout: 260 seconds]
Gmind1 has quit [Ping timeout: 260 seconds]
<havenn> My new fav JS: Array(8).join('Robin' - 1) + ' Batman!'
<havenn> 'NaNNaNNaNNaNNaNNaNNaN Batman!'
Whackatre has joined #ruby
Whackatre has quit [Changing host]
Whackatre has joined #ruby
<Spaceghostc2c> havenn: Nice.
bradhe has quit [Remote host closed the connection]
Morkel has quit [Read error: Connection reset by peer]
rakl has quit [Quit: gone]
<havenn> My fav CSS is: color="checknorris"
Morkel has joined #ruby
<havenn> Really a nice shade of red. :)
<havenn> ** color="chucknorris"
<havenn> not sure what color checknorris is... checking.
JohnBat26 has joined #ruby
<Spaceghostc2c> Wat?
eddie_ has joined #ruby
justinmcp has joined #ruby
<havenn> I <3 Destroy All Software.
dangerousdave has joined #ruby
<havenn> Spaceghostc2c: color="crap" is brown
<havenn> Spaceghostc2c: Invalid digits are read as 0, extras ignored.
cobragoat has joined #ruby
<havenn> From stackoverflow: sick = #00ck00... crap = #c0a000... MrT = #000000... chucknorris = #c00c0000000
<havenn> Because Chuck Norris doesn't conform to web standards. Web standards conform to him.
senny has joined #ruby
workmad3 has joined #ruby
timonv has quit [Remote host closed the connection]
<Spaceghostc2c> havenn: So funneh
cobragoat has quit [Ping timeout: 240 seconds]
Chryson has quit [Quit: Leaving]
eldariof has joined #ruby
joeycarmello has joined #ruby
joeycarmello has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 276 seconds]
und3f has quit [Quit: Leaving.]
und3f has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
hotovson has joined #ruby
<Spaceghostc2c> havenn: http://i.imgur.com/885od.jpg
nazty has quit [Read error: Connection reset by peer]
qwerxy has joined #ruby
nazty has joined #ruby
filipe has joined #ruby
arturaz has joined #ruby
rippa has joined #ruby
und3f1 has joined #ruby
und3f has quit [Ping timeout: 244 seconds]
jenrzzz has joined #ruby
timmillwood has joined #ruby
und3f1 has quit [Ping timeout: 260 seconds]
olrrai has joined #ruby
und3f has joined #ruby
rippa has quit [Ping timeout: 265 seconds]
olrrai has quit [Remote host closed the connection]
lxsameer has quit [Ping timeout: 252 seconds]
olrrai has joined #ruby
olrrai has quit [Client Quit]
blacktulip has joined #ruby
burgestrand has joined #ruby
dekroning has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
<Jonah11_> i am loading a file into irb with 'load "#{Dir.pwd}/arr.rb"'. The load statement returns true and the files contents are "a = 1". Yet if I type "a" after the load, i get an undefined error. why?
timonv has joined #ruby
xorigin has joined #ruby
dangerousdave has quit [Quit: Leaving...]
klip has quit [Ping timeout: 252 seconds]
havenn has quit [Remote host closed the connection]
eddie_ has quit [Read error: No route to host]
eddie_ has joined #ruby
dekroning has quit [Ping timeout: 265 seconds]
dekroning has joined #ruby
mucker has quit [Quit: leaving]
<arturaz> Jonah11_, because load isolates local variables
B|aster has joined #ruby
<arturaz> eval File.read("#{Dir.pwd}/arr.rb")
<Jonah11_> arturaz, ty
Blaster has quit [Ping timeout: 256 seconds]
aganov has quit [Read error: Operation timed out]
<Mon_Ouie> Doesn't help if you didn't define a before though
<Mon_Ouie> Because eval creates its own variable scope
Xeago has joined #ruby
tagrudev has quit [Ping timeout: 245 seconds]
haxrbyte has joined #ruby
Gmind1 has joined #ruby
rdark has joined #ruby
klip has joined #ruby
<apeiros> and even if you use a binding with eval, you can't introduce new variables outside eval
dakine has quit [Quit: Leaving]
dakine has joined #ruby
Gmind has quit [Ping timeout: 240 seconds]
mercwithamouth has quit [Ping timeout: 240 seconds]
xpen has joined #ruby
justinmcp has quit [Remote host closed the connection]
Jonah11_ has quit [Quit: Leaving]
Elhu has joined #ruby
<Xeago> how do I modify git status to use -sb as default arguments?
<burgestrand> Xeago: add an alias
tagrudev has joined #ruby
aganov has joined #ruby
irleif has joined #ruby
xpen_ has joined #ruby
daniel_-_ has joined #ruby
hbpoison has joined #ruby
xpen_ has quit [Read error: Connection reset by peer]
xpen_ has joined #ruby
xpen has quit [Ping timeout: 260 seconds]
eddie_ has quit [Ping timeout: 244 seconds]
kil0byte has joined #ruby
<Xeago> status = status -sb doesn't work
amaya_ has joined #ruby
<Xeago> s = status -sb does work, but I want it on status
knite has quit [Quit: knite]
adambeynon has joined #ruby
moshee has quit [Ping timeout: 244 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
philips_ has quit [Excess Flood]
philips_ has joined #ruby
dakine has quit [Quit: Leaving]
mappum has quit [Ping timeout: 244 seconds]
jimeh has joined #ruby
dakine has joined #ruby
jenrzzz has joined #ruby
Ry has joined #ruby
timonv has quit [Remote host closed the connection]
dekroning has quit [Ping timeout: 268 seconds]
Grieg has quit [Quit: laterz! :D]
keymone has quit [Quit: keymone]
Asher has quit [Ping timeout: 260 seconds]
Whackatre has quit [Quit: No Ping reply in 180 seconds.]
jenrzzz has quit [Ping timeout: 265 seconds]
Whackatre has joined #ruby
Whackatre has quit [Changing host]
Whackatre has joined #ruby
cantonic has joined #ruby
eataix has joined #ruby
Asher has joined #ruby
chussenot has joined #ruby
cezar has joined #ruby
F7 has quit [Ping timeout: 252 seconds]
cezar has quit [Client Quit]
baphled has joined #ruby
Ry has quit [Ping timeout: 260 seconds]
sn0wb1rd has quit [Quit: sn0wb1rd]
jslowe has joined #ruby
Solnse has left #ruby [#ruby]
anpl_ has joined #ruby
sn0wb1rd has joined #ruby
amaya_ has quit [Read error: Connection reset by peer]
anpl has quit [Ping timeout: 256 seconds]
ABK has quit [Ping timeout: 260 seconds]
elaptics`away is now known as elaptics
Mon_Ouie has quit [Ping timeout: 260 seconds]
mikecmpbll has joined #ruby
timonv has joined #ruby
slainer68 has joined #ruby
wallerdev has quit [Quit: wallerdev]
arkiver has quit [Ping timeout: 244 seconds]
workmad3 has joined #ruby
eddie_ has joined #ruby
hoelzro|away is now known as hoelzro
Gmind has joined #ruby
nari has quit [Ping timeout: 260 seconds]
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
marius has quit []
binw has quit [Remote host closed the connection]
Gmind1 has quit [Ping timeout: 260 seconds]
nilg has quit [Ping timeout: 240 seconds]
skroni has joined #ruby
skroni has quit [Client Quit]
JonnieCache has joined #ruby
arkiver has joined #ruby
Ry has joined #ruby
cobragoat has joined #ruby
lkba has quit [Ping timeout: 256 seconds]
lkba has joined #ruby
fermion has joined #ruby
cobragoat has quit [Ping timeout: 244 seconds]
Ry has quit [Remote host closed the connection]
jgrevich has quit [Quit: jgrevich]
lkba has quit [Ping timeout: 260 seconds]
will_b has joined #ruby
kil0byte has quit [Ping timeout: 244 seconds]
timmow has joined #ruby
will_b has quit [Client Quit]
Ry has joined #ruby
<mikecmpbll> anyone got any general advice for reducing memory usage in ruby?
jankly has quit [Read error: Connection reset by peer]
dekroning has joined #ruby
jankly has joined #ruby
arietis has joined #ruby
guns has joined #ruby
ld100 has quit [Quit: ld100]
u89 has joined #ruby
<Muz> Symbols, reusable objects where possible, avoid creating excessive objects when you can just use the return value of an operation instead of holding it in memory, write things to the disk, close handles/streams etc. when done. The usual approach one would take with any language really.
<Muz> mikecmpbll: ^
<mikecmpbll> thanks Muz! :).
ttt has quit [Read error: Connection reset by peer]
ttt has joined #ruby
<Muz> It's worth noting that some of the above come at the cost of flexibility or speed.
<mikecmpbll> got a server with very limited memory and a long running rake task keeps getting killed.
u89_ has joined #ruby
<mikecmpbll> indeed.
<Muz> What's the rake task doing?
<apeiros> profile
<Muz> Can you not shard out the workload?
dekroning has quit [Ping timeout: 268 seconds]
u89 has quit [Read error: Connection reset by peer]
fyolnish has quit [Remote host closed the connection]
<mikecmpbll> the rake task is importing a ton of data from an XML file
tchebb has quit [Ping timeout: 246 seconds]
qwerxy has quit [Quit: offski]
elico has joined #ruby
tonini has quit [Remote host closed the connection]
bier_ has joined #ruby
bier has quit [Ping timeout: 240 seconds]
jimeh_ has joined #ruby
jimeh has quit [Quit: bye]
jimeh_ is now known as jimeh
amaya_ has joined #ruby
jimeh has quit [Client Quit]
jimeh has joined #ruby
Zai00 has joined #ruby
daniel_-_ has quit [Ping timeout: 260 seconds]
jimeh has quit [Client Quit]
samphippen has joined #ruby
jimeh has joined #ruby
jpreyer has quit [Quit: Leaving]
awestroke has joined #ruby
zaki[] has quit [Read error: Operation timed out]
sertaconay has quit [Read error: Connection reset by peer]
blacktulip has quit [Remote host closed the connection]
blacktulip has joined #ruby
Gmind1 has joined #ruby
samphippen has quit [Ping timeout: 260 seconds]
reinaldob has joined #ruby
u89_ has quit [Read error: Connection reset by peer]
Gmind has quit [Ping timeout: 260 seconds]
Orcris has quit [Ping timeout: 260 seconds]
u89 has joined #ruby
aetcore has quit []
aetcore has joined #ruby
Vinz_` is now known as Vinz_
F1skr has quit [Quit: WeeChat 0.3.9]
samphippen has joined #ruby
arkiver has quit [Ping timeout: 260 seconds]
amaya_ has quit [Ping timeout: 244 seconds]
roadt has quit [Ping timeout: 246 seconds]
arkiver has joined #ruby
u89 has quit [Read error: Connection reset by peer]
zaki[] has joined #ruby
u89 has joined #ruby
Takehiro has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
sepp2k has joined #ruby
dmiller has joined #ruby
elico has quit [Quit: Elico]
amaya_ has joined #ruby
banisterfiend has joined #ruby
dmiller has quit [Remote host closed the connection]
Axsuul has joined #ruby
perryh has quit [Excess Flood]
hoelzro is now known as hoelzro|away
haxrbyte_ has joined #ruby
perryh has joined #ruby
xpen_ has quit [Remote host closed the connection]
haxrbyte has quit [Ping timeout: 260 seconds]
banisterfiend has quit [Remote host closed the connection]
ttt has quit [Remote host closed the connection]
yshh has quit [Remote host closed the connection]
qwerxy has joined #ruby
daniel_-_ has joined #ruby
ABK has joined #ruby
haxrbyte_ has quit [Remote host closed the connection]
haxrbyte has joined #ruby
buscapepe has quit [Ping timeout: 255 seconds]
elentras has joined #ruby
samphippen has joined #ruby
mklappstuhl has joined #ruby
AndChat| has joined #ruby
vickaita has joined #ruby
colinbm has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Emmanuel_Chanel has quit [Quit: Leaving]
yalue has joined #ruby
Banistergalaxy has quit [Ping timeout: 246 seconds]
Emmanuel_Chanel has joined #ruby
<JonnieCache> mikemac: stop using libraries like activerecord which create a zillion objects for every little thing
<JonnieCache> ruby objects are extremely heavy
<Xeago> :O thought they were relatively cheap
u89_ has joined #ruby
u89 has quit [Read error: Connection reset by peer]
Agis__ has joined #ruby
Gmind has joined #ruby
clj_newb has joined #ruby
arkiver has quit [Quit: Leaving]
arkiver has joined #ruby
aetcore has quit [Remote host closed the connection]
Gmind1 has quit [Ping timeout: 260 seconds]
<JonnieCache> this is why ruby is so slow basically: http://blog.headius.com/2012/10/so-you-want-to-optimize-ruby.html
aetcore has joined #ruby
<JonnieCache> everything has to carry so much state all the time to support all the mad shit that we love to do
tvw has joined #ruby
jlwestsr has joined #ruby
Neomex has joined #ruby
u89_ has quit [Read error: Connection reset by peer]
u89 has joined #ruby
shiin has joined #ruby
pjb3 has joined #ruby
jake_ has joined #ruby
vickaita has quit [Ping timeout: 264 seconds]
jblack has joined #ruby
Shrink has quit [Quit: ta]
awestroke has quit [Remote host closed the connection]
jake_ has quit [Ping timeout: 252 seconds]
cobragoat has joined #ruby
aetcore has quit [Remote host closed the connection]
jipiboily has joined #ruby
cobragoat has quit [Ping timeout: 244 seconds]
carfoo has joined #ruby
u89 has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
carfoo has quit [Quit: leaving]
hbpoison has quit [Ping timeout: 244 seconds]
iamjarvo has joined #ruby
meizaps has joined #ruby
staafl has quit [Read error: Connection reset by peer]
staafl has joined #ruby
meizaps has quit [Client Quit]
Experium has joined #ruby
elico has joined #ruby
irleif has quit [Quit: Computer has gone to sleep.]
elico has quit [Client Quit]
Xeago has joined #ruby
chendo_ has quit [Ping timeout: 252 seconds]
kil0byte has joined #ruby
chendo_ has joined #ruby
solirc has joined #ruby
mark_locklear has joined #ruby
Experium has left #ruby ["Leaving"]
aetcore has joined #ruby
staafl_alt has joined #ruby
staafl has quit [Read error: Connection reset by peer]
geekbri has joined #ruby
Zai00 has quit [Quit: Zai00]
sullenel has joined #ruby
answer_42 has joined #ruby
niklasb has joined #ruby
chussenot has quit [Quit: chussenot]
roadt has joined #ruby
chussenot has joined #ruby
clj_newb has quit [Ping timeout: 260 seconds]
`brendan has joined #ruby
<solirc> Is there a way to create local classes in ruby?
<solirc> In test code I want to repeatedly test something with a subclass of a given class. Something like http://hpaste.org/77151
<solirc> But as it is here, Bar is always the same class for each context.
nanderoo has joined #ruby
vickaita has joined #ruby
<solirc> So what I would need is a way to make the class local to the inner scope.
hoelzro|away is now known as hoelzro
nemesit has joined #ruby
anachronistic has joined #ruby
dekroning has joined #ruby
qwerxy has quit [Quit: offski]
shawn_hsiao has joined #ruby
jrajav has joined #ruby
shawn_hsiao has quit [Remote host closed the connection]
Ry has quit [Quit: Ry]
<Xeago> solirc: not entirely sure: new Class { .. } will make you a new class each time
krawchyk has joined #ruby
<Xeago> which you can save in a variable
alek_b has quit [Remote host closed the connection]
<solirc> Xeago: ah, that sounds useful
<solirc> I'll try something.
<Xeago> you can make it a sublcass by calling new Class(FooIsParentClass) { }
tintin has joined #ruby
mikecmpbll has joined #ruby
<tintin> Hi, is erb a ruby template system?
<apeiros> you can save any class in a variable
<apeiros> x = Array # perfectly valid
<apeiros> as it happens to be, Array is just a variable too (a constant)
<Xeago> tintin: use google
<jrajav> Xeago: Have you tried to start up the vm yet?
ddd has quit [Read error: Connection reset by peer]
tommyvyo has quit [Quit: Computer has gone to sleep.]
dekroning has quit [Ping timeout: 268 seconds]
<Xeago> jrajav: had crisis at work last night with Sandy
<tintin> Xeago: ERB provides an easy to use but powerful templating system for Ruby.
<apeiros> tintin: bravo, so your question is answered.
<Xeago> tintin: I did not ask the question, I redirected you to google
<jrajav> Xeago: Ah, sucks :(
mercwithamouth has joined #ruby
<Xeago> jrajav: will look at it tonight
<Xeago> and the weekend :)
<tintin> Is it possible to render html getting the value from ruby code without template system?
irleif has joined #ruby
<Xeago> I think tintin still wants a php approach to ruby...
<tintin> Xeago: lol, did you ever use PHP before
<Xeago> yes
<jrajav> tintin: You mean generate, not render, and sure you can - generate it with Ruby! :D
<apeiros> tintin: fair warning - my patience with you is very limited. be careful.
<jrajav> Templating is a much more elegant solution though. There's a reason it's so widely used
chussenot has quit [Quit: chussenot]
<tintin> jrajav: For example you got some value from ruby code, now you want to display it inside html, but without erb or other template system, is it possible?
<jrajav> Why don't you want to use templating?
<Xeago> tintin: yes
<Xeago> tintin: but why would you want to?
<jrajav> And do you mean a statically generated value that's been determined before the page is served to the client, or a dynamic value?
<tintin> I want to know what is that method except erb
awestroke has joined #ruby
elico has joined #ruby
hbpoison has joined #ruby
<Xeago> tintin: you can use stream api for example
<Xeago> but it makes no sense for your rationale of questioning
<Xeago> s/makes/has
<jrajav> a = 'hi'
<Xeago> blargh, screw that sentence
<jrajav> puts '<html><body>' + a + '</body></html>'
<jrajav> There you go!
ablankfield has joined #ruby
casheew has quit [Read error: Connection reset by peer]
<jrajav> Fine print: This organization does not endorse the use of potentially life-threatening code for any purpose, personal or commercial ™
casheew has joined #ruby
lkba has joined #ruby
<jrajav> Don't ask me why that's trademarked. It felt right
<Xeago> where is lmgtfy for duckduckgo
<Xeago> it existed some time ago, can't find it now
<Xeago> found it: lmddgtfy.net
<apeiros> what an unexpected url
<apeiros> ;-p
<Xeago> the tld was..
<apeiros> ah
<Xeago> as it is duckduckgo.com
<elaptics> ddg is awesome :)
blacktul_ has joined #ruby
<apeiros> yeah, I only read lmddgtfy
daniel_-_ has quit [Ping timeout: 252 seconds]
casheew has quit [Read error: Connection reset by peer]
<elaptics> I use it in preference to google now
<tintin> Xeago: which stream api?
Banistergalaxy has joined #ruby
arvindravi has joined #ruby
chussenot has joined #ruby
dekroning has joined #ruby
<Xeago> stream api provided middleware
AndChat- has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
irleif has quit [Quit: Computer has gone to sleep.]
blacktulip has quit [Ping timeout: 246 seconds]
Luceo has joined #ruby
<solirc> Xeago: It should be Class.new(FooIsParentClass) {..}. But other than hat, it's working like a charm :)
<solirc> Thanks a lot.
<Xeago> wops, yea sorry
casheew has joined #ruby
<Luceo> Hi, how easy would it be to write a simple painting program with ruby? I have no idea what language to do this in >_<
<Xeago> didn't sleep in a while :<
<solirc> Xeago: holidays, I guess?
<Xeago> hotfixed java code during the night
<solirc> oh, that makes sense
<Xeago> no, hurricane sandy issue's
<solirc> oh
<Xeago> and people not checking in hotfixes in git
<Xeago> e.g. directly on production servers
<Xeago> >.<
Gmind1 has joined #ruby
<solirc> That is bad.
<Xeago> and they went down like 8 hours ago
roadt has quit [Ping timeout: 256 seconds]
Ry has joined #ruby
casheew has quit [Read error: Connection reset by peer]
AndChat| has quit [Ping timeout: 260 seconds]
ddd has joined #ruby
Banistergalaxy has quit [Ping timeout: 260 seconds]
hbpoison has quit [Ping timeout: 268 seconds]
banisterfiend has joined #ruby
sertaconay has joined #ruby
ddd has quit [Client Quit]
dekroning has quit [Ping timeout: 255 seconds]
pothibo has quit [Quit: pothibo]
ddd has joined #ruby
casheew has joined #ruby
Gmind has quit [Ping timeout: 260 seconds]
daniel_-_ has joined #ruby
invisime has joined #ruby
IrishGringo has joined #ruby
chussenot has quit [Quit: chussenot]
vickaita has quit [Ping timeout: 268 seconds]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
jeremywrowe has joined #ruby
mercwithamouth has quit [Ping timeout: 245 seconds]
<Xeago> tintin: no
nari has joined #ruby
<tintin> Xeago: Which stream api?
<Xeago> I am not entirely sure, but I think it is provided by Rack
roadt has joined #ruby
Zai00 has joined #ruby
roadt has quit [Max SendQ exceeded]
arvindravi has quit [Ping timeout: 245 seconds]
hotovson has quit [Remote host closed the connection]
roadt has joined #ruby
<Xeago> it covers some aspect — yes'ish
tintin has left #ruby [#ruby]
pjb3 has quit [Quit: pjb3]
<Xeago> please use google and duckduckgo and learn to determine quality and quantity of your results
roadt has quit [Max SendQ exceeded]
Virunga has joined #ruby
BrianJ has joined #ruby
roadt has joined #ruby
moshee has quit [Ping timeout: 256 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
iamjarvo has quit [Quit: Computer has gone to sleep.]
Cultofmetatron has joined #ruby
tommyvyo has joined #ruby
jamjam has joined #ruby
arvindravi has joined #ruby
hotovson has joined #ruby
Xeago has quit [Remote host closed the connection]
codefyre has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
irleif has joined #ruby
roadt has quit [Ping timeout: 260 seconds]
banisterfiend has quit [Ping timeout: 264 seconds]
tommyvyo has quit [Read error: Connection reset by peer]
chussenot has joined #ruby
arturaz has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 245 seconds]
tommyvyo has joined #ruby
roadt has joined #ruby
codefyre has quit [Client Quit]
clj_newb has joined #ruby
dhruvasagar has joined #ruby
roadt has quit [Max SendQ exceeded]
jcaudle has joined #ruby
roadt has joined #ruby
jipiboily has left #ruby [#ruby]
Neomex has quit [Ping timeout: 255 seconds]
arkiver has quit [Quit: Leaving]
d2dchat has joined #ruby
gener1c has quit [Ping timeout: 244 seconds]
gener1c has joined #ruby
csaunders has joined #ruby
clj_newb has quit [Ping timeout: 245 seconds]
Markvilla has joined #ruby
proshot has quit [Read error: Connection reset by peer]
afader has joined #ruby
afader has quit [Changing host]
afader has joined #ruby
Xeago has joined #ruby
Neomex has joined #ruby
sailias has joined #ruby
und3f has quit [Quit: Leaving.]
mercwithamouth has joined #ruby
und3f has joined #ruby
scx_ has joined #ruby
Cultofmetatron has joined #ruby
joofsh has joined #ruby
dhruvasagar has quit [Ping timeout: 244 seconds]
Cultofmetatron has quit [Remote host closed the connection]
sailias has quit [Ping timeout: 252 seconds]
Cultofmetatron has joined #ruby
dhruvasagar has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
GoGoGarrett has joined #ruby
Cultofmetatron has joined #ruby
daniel_-_ has quit [Ping timeout: 252 seconds]
mklappstuhl has quit [Ping timeout: 256 seconds]
fredjean has quit [Ping timeout: 260 seconds]
zz_Cidan is now known as Cidan
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
mark_locklear has quit [Remote host closed the connection]
root_byte has joined #ruby
vickaita has joined #ruby
moshee has quit [Ping timeout: 252 seconds]
aetcore has quit [Remote host closed the connection]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
Agis__ has quit [Quit: Agis__]
jerius has joined #ruby
jblack has quit [Ping timeout: 255 seconds]
aetcore has joined #ruby
kelonye has joined #ruby
<kelonye> Hi, dir.glob exclude particular files ?
hbpoison has joined #ruby
eataix has quit [Quit: ZNC - http://znc.in]
elico has quit [Remote host closed the connection]
sailias has joined #ruby
awarner has joined #ruby
jeffreybaird has joined #ruby
hbpoison has quit [Ping timeout: 240 seconds]
jeffreybaird_ has joined #ruby
krawchyk has quit [Remote host closed the connection]
rippa has joined #ruby
seanyo has joined #ruby
jeffreybaird has quit [Ping timeout: 240 seconds]
jeffreybaird_ is now known as jeffreybaird
kpshek has joined #ruby
aetcore has quit [Remote host closed the connection]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
guns has quit [Quit: guns]
Gmind has joined #ruby
irleif has quit [Quit: Computer has gone to sleep.]
Markvilla has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
geggam has quit [Ping timeout: 276 seconds]
skaczor has joined #ruby
Gmind1 has quit [Ping timeout: 260 seconds]
<nemish> has anyone here had any use of aws-s3?
<nemish> all the docs/examples I'm finding are for uploading images to s3
rippa has quit [Ping timeout: 265 seconds]
<nemish> i'm looking to request an image from s3 and display it
<nemish> so http://app/file.jpg retrieves the file from my bucket and displays it
joshman_ has quit [Quit: Computer has gone to sleep.]
Takehiro has quit [Remote host closed the connection]
geggam has joined #ruby
jenrzzz has joined #ruby
Takehiro has joined #ruby
awarner has quit [Remote host closed the connection]
tk__ has joined #ruby
perryh has quit [Excess Flood]
cobragoat has joined #ruby
perryh has joined #ruby
macabre has joined #ruby
sailias has quit [Quit: Leaving.]
minijupe has quit [Quit: minijupe]
iamjarvo has joined #ruby
ABK has quit [Ping timeout: 256 seconds]
Xeago has quit [Remote host closed the connection]
aetcore has joined #ruby
aetcore has quit [Remote host closed the connection]
carlyle has joined #ruby
ohsiris1 has joined #ruby
ABK has joined #ruby
cobragoat has quit [Ping timeout: 264 seconds]
lkba has quit [Ping timeout: 260 seconds]
anachronistic has quit [Quit: anachronistic]
carlyle has quit [Remote host closed the connection]
<scx_> how to check if regexp has "\1", "\2", etc? i mean check("test([a-z])" => true; check("[a-z]") => false; check("[(a)]") => false
mikecmpbll has quit [Quit: Computer has gone to sleep.]
philcrissman has joined #ruby
mklappstuhl has joined #ruby
ohsiris has quit [Ping timeout: 240 seconds]
hbpoison has joined #ruby
marty_mcfly has joined #ruby
Iszak has joined #ruby
Neomex has quit [Quit: Neomex]
mikecmpbll has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
stopbit has joined #ruby
Xeago has joined #ruby
theRoUS has quit [Ping timeout: 264 seconds]
<Xeago> anyone tried mapping the fn key to control and vice versa?
staafl_alt has quit [Read error: Connection reset by peer]
irleif has joined #ruby
BrianJ has quit [Quit: BrianJ]
hoelzro is now known as hoelzro|away
Gmind has quit [Read error: Connection reset by peer]
nfk has joined #ruby
fantazo has quit [Remote host closed the connection]
u89 has joined #ruby
<Ry> I've heard good things of mapping CapsLock => Control, less likely to miss that than fn I think ;)
<nfk> Math.tan(Math::PI/4) => 0.9999999999999999 #shouldn't this be exactly 1?
Gmind has joined #ruby
adeponte has joined #ruby
stopbit has quit [Read error: Connection reset by peer]
stopbit has joined #ruby
Servidorv has joined #ruby
<Servidorv> hey guys
<Servidorv> good mosrning
<Servidorv> morning
mmitchell has joined #ruby
<Servidorv> can i ask you guys a question
<Servidorv> i have this code number = (sinceor - tillor) / 86400 ofcourse cinceor and tillor are unix timestamps
xorigin has quit [Ping timeout: 272 seconds]
adeponte has quit [Ping timeout: 260 seconds]
<Servidorv> but it is giving me this error Error:undefined method `-' for "1350111600":String
Takehiro has quit [Remote host closed the connection]
<Servidorv> i did irb and no errors there
solirc has left #ruby ["WeeChat 0.3.2"]
<Servidorv> what can be the problem??
uris has joined #ruby
<Ry> what did you type in irb
<nw> sinceor and tillor are strings and not integers?
<Ry> you probably need .to_i on each of those timestamps
<nw> sinceor.to_i - tillor.to_i
<Servidorv> sinceor = params['since'], tillor = params['till'] and the params are since=1350111600
juha_ has quit [Ping timeout: 248 seconds]
<Ry> yeah, those are strings
<Servidorv> till=1351839600
<Ry> you need to cast to int
<Servidorv> oh ok man
<Servidorv> thanks
<nw> in that case, it might make more sense to do sinceor = params['since'].to_i
ipoval has joined #ruby
<Ry> yeah, what nw says :)
ipoval has quit [Client Quit]
<Servidorv> aa ok thanks guys
<Servidorv> :)
Serial_Killer_C has joined #ruby
qwerxy has joined #ruby
<Servidorv> hey one more question
joshman_ has joined #ruby
<Servidorv> if i want to use number = (tillor - sinceor) / 86400
<Servidorv> number.time {|i|}
<Servidorv> can it be posible??
<Servidorv> cause im trying and it tells me Error:wrong number of arguments (0 for 1)
wting has quit [Quit: leaving]
<nw> what exactly are you trying to achieve?
<Servidorv> ok i need to be able to separate the since and till in groups of 14 days, so now im getting the amount of days from since to till
<Servidorv> then after i get the amount of days from till and since, i'm dividing that number in 14 but im rounding it, si if it is 1.x im getting 2 so i do the code 2.times{|i|}
<Xeago> wat?
jrajav has quit []
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
<Servidorv> this code is to get info from facebook graph, but the problem is that facebook graph only allow to get information in periods of 14 days each time
cakehero has joined #ruby
<Servidorv> so i need to calculate the abount of times requests i need to do to facebook to be able to get all the information on the since and till time period
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
phelps has joined #ruby
<phelps> Having a problem referencing a module inside another, here is the code and error: https://gist.github.com/80c396f7ab19e99b3ae6
billiam has joined #ruby
<phelps> (do I need to include B)
[1]root_byte has joined #ruby
dmiller has joined #ruby
root_byte has quit [Ping timeout: 260 seconds]
mohanmcgeek has joined #ruby
thisirs has joined #ruby
<mohanmcgeek> people, What should I be using for making a gem..? Jeweler or Bundler?
<mohanmcgeek> or something else?
<JonnieCache> forget jeweler
<JonnieCache> type `bundle gem` on the command line and you get everything you need
<mohanmcgeek> that's what I've been doing..
<JonnieCache> actually you should probably type `bundle gem <gemname>` or something
<mohanmcgeek> but when I google for some tuts, it's jeweler everywhere.. :o\
anachronistic has joined #ruby
minijupe has joined #ruby
<phelps> I would use rubygems since thats where its prob. going to be hosted
mohanmcgeek has quit [Client Quit]
mohanmcgeek has joined #ruby
und3f has quit [Quit: Leaving.]
und3f has joined #ruby
sambio has joined #ruby
mohanmcgeek1 has joined #ruby
mohanmcgeek has quit [Client Quit]
Servidorv has quit [Quit: If your not living on the edge, you're taking up too much space]
<Ry> phelps: have you tried loading B before A?
<phelps> yeah, doesn't change anything
solidoodlesuppor has joined #ruby
maesbn has quit [Remote host closed the connection]
ananthakumaran1 has joined #ruby
juha_ has joined #ruby
xorigin has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
<Ry> works for me if i have module B above A in the same file, or referenced through a require
jrajav has joined #ruby
carlyle has joined #ruby
awarner has joined #ruby
<JonnieCache> mohanmcgeek1: jeweler was a product of rails groupthink at its height
J-_-L has joined #ruby
awarner has quit [Client Quit]
<JonnieCache> everyone used it because everyone else was using it
philcrissman has quit [Remote host closed the connection]
<JonnieCache> (imo)
awarner has joined #ruby
Grieg has joined #ruby
Grieg has quit [Changing host]
Grieg has joined #ruby
<phelps> thats 90% of web tech today though
carlyle has quit [Client Quit]
alee has quit [Ping timeout: 276 seconds]
<phelps> or perhaps I'm just a prude and refuse to adopt new tech
clj_newb has joined #ruby
<JonnieCache> with jeweler, it wasnt just trendy new tech. it was a solution to a problem nobody had
<JonnieCache> it was the same with cucumber, although thats a solution to a problem few people have, rather than nobody
Gmind1 has joined #ruby
Gmind has quit [Ping timeout: 260 seconds]
ananthakumaran1 has quit [Quit: Leaving.]
dmiller has quit [Remote host closed the connection]
v0n has joined #ruby
supersym has joined #ruby
nateberkopec has joined #ruby
Whackatre_ has joined #ruby
Whackatre has quit [Ping timeout: 268 seconds]
cantonic has quit [Quit: cantonic]
samphippen has joined #ruby
jenrzzz has joined #ruby
sullenel has quit [Quit: Leaving.]
butblack has joined #ruby
perryh has quit [Excess Flood]
<davidcelis> rubymotion's half off if anybody's been sitting on buying it
awestroke has quit [Remote host closed the connection]
perryh has joined #ruby
x82_nicole has joined #ruby
ABK has quit [Ping timeout: 260 seconds]
u89 has quit [Remote host closed the connection]
joeycarmello has joined #ruby
amaya_ has quit [Quit: ChatZilla 0.9.88.2 [Firefox 16.0.2/20121024073032]]
philcrissman has joined #ruby
kelonye has left #ruby [#ruby]
theRoUS has quit [Ping timeout: 255 seconds]
dpatel has joined #ruby
geggam_ has joined #ruby
fredjean has joined #ruby
statarb3 has quit [Quit: Leaving]
mpereira has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
ckrailo has joined #ruby
BrianJ has joined #ruby
brianpWins has quit [Quit: brianpWins]
earthquake has joined #ruby
davidcelis has quit [Quit: K-Lined.]
tomsthumb has joined #ruby
alee has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
Kant has joined #ruby
supersym has quit [Ping timeout: 268 seconds]
havenn has joined #ruby
insulator has joined #ruby
<apeiros> I feel cheated! I bought it with early bird rebate, which was less than half off :(
philcrissman has quit [Remote host closed the connection]
tagrudev has quit [Quit: ydd]
eldariof has quit []
dakine has quit [Quit: Leaving]
proshot has joined #ruby
joeycarmello has quit [Remote host closed the connection]
shevy has joined #ruby
reinaldob has quit [Remote host closed the connection]
samphippen has quit [Quit: Computer has gone to sleep.]
sebastorama has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
Cicloid has joined #ruby
chrisramon has joined #ruby
BadProphet has joined #ruby
areil has quit [Remote host closed the connection]
alek_b has joined #ruby
thorncp has quit [Quit: hills]
jds__ has joined #ruby
<jds__> Heya
Morkel has quit [Quit: Morkel]
JospehJ has joined #ruby
<burgestrand> 1,373 -> 1,098 is not half. :(
<jds__> Any suggestions on finding the shortest match to a regexp? "axxab".match(/(a(?:.*?)b)/) will match 'axxab' - I'd like it to just match 'ab'
Kant has quit [Remote host closed the connection]
<burgestrand> jds__: that is the shortest match.
eph3meral has joined #ruby
<burgestrand> jds__: rather, it’s the first match.
<jds__> yes
<burgestrand> jds__: use scan instead and pick out the smallest result?
sebastorama has quit [Quit: ;)]
adeponte has joined #ruby
<jds__> scan only gives 1 results, which is annoying
<burgestrand> jds__: you won’t know the shortest match unless you try them all anyway.
<burgestrand> Ah, yes it will consume the string up until that point
<jds__> "axxab".scan(/(a.*b)/) => [["axxab"]]
<burgestrand> … walking the string could be expensive.
<apeiros> this will be expensive anyway
<jds__> The only option I've found is to scan for matches in 'axxab', then 'xxab', then 'xab', then 'ab', then 'b'.
<jds__> but that seems pretty hideous
mohanmcgeek1 has quit [Ping timeout: 255 seconds]
Agis__ has joined #ruby
AndChat- has quit [Remote host closed the connection]
rasbonics has joined #ruby
daniel_-_ has joined #ruby
<apeiros> "axxazbabxx".enum_for(:scan, /a(?=.*?b)/).map { ($&+$~.post_match)[/a.*?b/] }.min_by(&:length)
<apeiros> but that needs the regex twice in different form
<apeiros> "axxazbabxx".enum_for(:scan, /a(?=.*?b)/).map { ($&+$')[/a.*?b/] }.min_by(&:length)
<apeiros> (if I use those ugly $ vars, I might just as well use them right…)
clocKwize has quit [Remote host closed the connection]
<Agis__> is $ gem update a "dangerous" command to run?
y5wars has joined #ruby
khakimov has joined #ruby
<Agis__> i mean it could break my apps that don't use bundler, right?
<workmad3> Agis__: depends on how your app dependencies are managed
<workmad3> Agis__: it could
tds has quit [Read error: Connection reset by peer]
<workmad3> Agis__: and it might not break in obvious ways (you could introduce new bugs accidentally)
<Agis__> hm i see
<jds__> apeiros: 'min_by' ? Huh, that's handy. Not seen that before
<Agis__> so it's different from doing bundle update, right? gem update is updating the gems I installed doing gem install "bla"
<workmad3> yes
<Agis__> not gems installed by running "bundle install"
<jds__> Still trying to parse wtf your regexps are doing tho
<workmad3> Agis__: both
hsbt is now known as hsbt_away
<workmad3> Agis__: assuming that bundler installed into the system gem repo
<Agis__> so there's one universal folder where all the gems are installed
<Agis__> and bundler uses that
kpshek has quit []
<workmad3> Agis__: not quite
rasbonics has left #ruby [#ruby]
fredjean has quit [Ping timeout: 244 seconds]
<workmad3> Agis__: gem will install into GEM_HOME, and look up gems from GEM_PATH
kpshek has joined #ruby
brianpWins has joined #ruby
<workmad3> Agis__: bundler can install into GEM_HOME (which it does by default), or to an arbitrary path, and will then set up your ruby load paths to 'activate' the right gems from wherever they were installed
<Agis__> i see
<workmad3> Agis__: if you did something like 'bundle install --deployment' then that would install gems into a 'vendor' directory to keep them separate from anything else on the system
iamjarvo has quit [Quit: Computer has gone to sleep.]
<Agis__> shouldn't $: include the rubygems paths?
nopolitica has joined #ruby
<Agis__> in ruby 1.9.3?
<workmad3> Agis__: not at the outset
<workmad3> Agis__: $: will include the paths of activated gems
awarner has quit [Remote host closed the connection]
mohanmcgeek has joined #ruby
<Agis__> ah so only when I do a require 'rack' for ex. it will include its path
adeponte has quit [Remote host closed the connection]
<workmad3> Agis__: yes, or if you did 'gem "rack"' to activate it without requiring it
awarner has joined #ruby
<Agis__> ok
joukokar has quit [Ping timeout: 260 seconds]
<workmad3> Agis__: 'gem "rack", "1.2" ' would activate a specific version
fredjean has joined #ruby
<workmad3> Agis__: which is why rubygems doesn't add all the paths at the start... at that point rubygems doesn't know what versions you'd want :)
<Agis__> makes sense
<Agis__> :)
<workmad3> Agis__: of course, you get issues if you attempt to activate two different versions of a gem in the same run :)
<workmad3> Agis__: because rubygems barfs on that
<workmad3> Agis__: which is why bundler exists ;)
Gmind has joined #ruby
<Agis__> yes
awarner has quit [Remote host closed the connection]
omg765 has joined #ruby
jaygen has joined #ruby
jaygen has quit [Read error: Connection reset by peer]
xpen has joined #ruby
Gmind1 has quit [Ping timeout: 255 seconds]
Agis__ has quit [Quit: Agis__]
cobragoat has joined #ruby
stigmux has joined #ruby
<shevy> my old computer died
<shevy> I had only wlan on a laptop ... can't code on that thing!!!
mahmoudimus has joined #ruby
<stigmux> Hello! Could someone please come with a recommandation for a good book to learn Ruby ? Im pretty experienced with C++, Java, Perl and the OO-way of thinking. I've looked at the O'Reilly The ruby programming language, is it any good ?
SCommette has joined #ruby
joukokar has joined #ruby
mjb2k has joined #ruby
fredjean has quit [Quit: Computer has gone to sleep.]
ltsstar has joined #ruby
Xeago has quit [Remote host closed the connection]
<Whackatre_> im currently reading why's book
<Whackatre_> p cool
chrisramon has quit [Quit: chrisramon]
ananthakumaran has joined #ruby
qwerxy has quit [Quit: offski]
aganov has quit [Remote host closed the connection]
<stigmux> Okay, what is your thoughts about it, is it any good ?
cobragoat has quit [Ping timeout: 244 seconds]
hbpoison_ has joined #ruby
cakehero has joined #ruby
wallerdev has joined #ruby
jerius has quit [Quit: Computer has gone to sleep.]
<Whackatre_> i like it; i am in no position to judge it though.
shevy has quit [Quit: Page closed]
Xeago has joined #ruby
<JonnieCache> if you are already a proficient programmer and you want a concise book on ruby, thats the one
qwerxy has joined #ruby
<JonnieCache> its also a great reference. i have it in front of me right now :)
perryh has quit [Excess Flood]
Xeago_ has joined #ruby
Xeago_ has quit [Remote host closed the connection]
<Whackatre_> what is your defn of proficient?
<Whackatre_> jw
perryh has joined #ruby
mpereira has quit [Read error: Connection reset by peer]
<JonnieCache> you already know the stuff thats common to most languages, and you only care about the stuff thats specific to ruby
<stigmux> JonnieCache: Oh, that was the O'reilly book i was looking at, and considering to buy. I think i'll go for it then - i also like to have my books in textual form
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
linoj has joined #ruby
<JonnieCache> stigmux: if youre familiar with K&R its like that
Xeago_ has joined #ruby
hsbt_away is now known as hsbt
<stigmux> JonnieCache: Yeah, K&R was what taught me C
<stigmux> Sounds great
<Whackatre_> the k&r language is slightly difficult for me to comprehend
jlast has joined #ruby
jerius has joined #ruby
Xeago has quit [Ping timeout: 256 seconds]
margle has joined #ruby
davidcelis has joined #ruby
supersymmetry has joined #ruby
<JonnieCache> its not quite as dense as k&r, i meant in the sense that it gets straight to the point and covers all the little details
<JonnieCache> i hate tech books that have a narrative form
<JonnieCache> (in general)
kbeddingfield has joined #ruby
<jlast> even = Proc.new {|x| x % 2}; (1..10).select(even)
<jlast> I've written a proc that takes one parameter and I want to pass it into an enumerable cleanly. e.g.
<jlast> as opposed to (1..10).select {|num| even.call(num)}.
<jlast> sorry for the jumbled message :)
<Whackatre_> (but of course that limitation is probably only restricted to me; after all, i am only sixteen and have little exposure to computer science and its terminology)
Xeago_ has quit [Remote host closed the connection]
yshh has joined #ruby
blazes816 has joined #ruby
nopolitica has quit [Quit: leaving]
jcaudle has quit [Remote host closed the connection]
jcaudle has joined #ruby
jrajav has quit []
Araxia has joined #ruby
joeycarmello has joined #ruby
insulator has quit [Ping timeout: 276 seconds]
jaygen has joined #ruby
F1skr has joined #ruby
awarner has joined #ruby
jerius has quit [Quit: Computer has gone to sleep.]
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
mneorr has joined #ruby
rakm has joined #ruby
alvaro_o has joined #ruby
burgestrand has quit [Quit: Leaving.]
<davidcelis> ?
insulator has joined #ruby
mjb2k has quit [Ping timeout: 260 seconds]
otters has quit [Ping timeout: 252 seconds]
sn0wb1rd has quit [Quit: sn0wb1rd]
awarner has quit [Ping timeout: 256 seconds]
Tref has quit [Quit: Tref]
irleif has quit [Quit: Computer has gone to sleep.]
thisirs has quit [Remote host closed the connection]
adeponte has joined #ruby
otters has joined #ruby
colwem has quit [Quit: WeeChat 0.3.7]
jgrevich has joined #ruby
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
y5wars has quit [Quit: y5wars]
caleb_io has joined #ruby
ryanlecompte has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
rudle has quit [Remote host closed the connection]
insulator has quit [Read error: Connection reset by peer]
<withnale> Hello. How do I resolve a gem loading problem?
perryh has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
und3f has quit [Quit: Leaving.]
<withnale> I'm using vagrant with some of it's plugins... when I run as root, it sees the plugins and they are loaded correctly. If I run as non-root they are not seen at all. I've checked the versions and plugins. Both are only present once in my rubygems paths.
mappum has joined #ruby
artOfWar has joined #ruby
qwerxy has quit [Quit: offski]
Uranio has joined #ruby
JospehJ has quit [Remote host closed the connection]
alfism has joined #ruby
caleb_io has quit [Quit: caleb_io]
chimkan_ has joined #ruby
qwerxy has joined #ruby
Faris has joined #ruby
mohanmcgeek has left #ruby [#ruby]
dmiller has joined #ruby
daniel_-_ has quit [Ping timeout: 256 seconds]
casheew has quit [Read error: Connection reset by peer]
dross has joined #ruby
casheew has joined #ruby
omg765 has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
monkegjinni has joined #ruby
casheew has quit [Read error: Connection reset by peer]
v3m4 has joined #ruby
monkegjinni has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
d2dchat has quit [Remote host closed the connection]
Virunga has quit [Ping timeout: 252 seconds]
J-_-L has quit [Ping timeout: 260 seconds]
casheew has joined #ruby
SCommette_ has joined #ruby
davidcelis has quit [Quit: K-Lined.]
casheew has quit [Read error: Connection reset by peer]
adeponte has quit [Remote host closed the connection]
Dreamer3 has joined #ruby
mneorr has quit [Ping timeout: 256 seconds]
ABK has joined #ruby
SCommette has quit [Ping timeout: 255 seconds]
SCommette_ is now known as SCommette
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
mneorr has joined #ruby
J-_-L has joined #ruby
casheew has joined #ruby
Gmind1 has joined #ruby
cakehero has joined #ruby
<Ry> jlast: you nearly got it, I think you're looking for: even = Proc.new {|x| x % 2 == 0}; (1..10).select &even
xpen has quit [Remote host closed the connection]
dmiller has quit [Remote host closed the connection]
awarner has joined #ruby
olrrai has joined #ruby
x82_nicole has quit [Read error: Connection reset by peer]
jrajav has joined #ruby
olrrai has quit [Client Quit]
IrishGringo has quit [Read error: Operation timed out]
<jlast> thanks
mneorr has quit [Read error: Connection reset by peer]
v3m4 has left #ruby [#ruby]
<jlast> would defining an even method on fixnum have worked well?
<jlast> if so, how does ruby handle both cases?
Takehiro has joined #ruby
Tearan has joined #ruby
maletor has joined #ruby
casheew has quit [Read error: Connection reset by peer]
Gmind has quit [Ping timeout: 260 seconds]
cakehero has quit [Ping timeout: 246 seconds]
thinkdevcode has joined #ruby
casheew has joined #ruby
casheew has quit [Read error: Connection reset by peer]
davidcelis has joined #ruby
cakehero has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
IrishGringo has joined #ruby
minijupe has quit [Quit: minijupe]
xorigin has quit [Quit: leaving]
root_byte has joined #ruby
Uranio has quit [Quit: WeeChat 0.3.8]
casheew has joined #ruby
awarner has quit [Ping timeout: 256 seconds]
kbeddingfield has quit [Remote host closed the connection]
cakehero has quit [Ping timeout: 260 seconds]
[1]root_byte has quit [Ping timeout: 260 seconds]
irleif has joined #ruby
vickaita has quit [Ping timeout: 268 seconds]
undersc0re97 has quit [Quit: Leaving]
colinbm has quit [Quit: colinbm]
margle has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
maxer has joined #ruby
fredjean has joined #ruby
apok has joined #ruby
<apeiros> jlast: there already is a method Integer#even?
<maxer> anyone familiar with the geocoded gem?… how could i use it to search for items in a country… .near(country) returns an empty set
filipe has quit [Remote host closed the connection]
<jlast> apeiros: yea, but in that case it's 2.even? as opposed to even?(2). and yet ruby is smart enough to handle both (1..10).select(&even?) and (1..10).select(&:even?)
sn0wb1rd has joined #ruby
Virunga has joined #ruby
qwerxy has quit [Quit: offski]
daniel__ has quit [Ping timeout: 240 seconds]
lkba has joined #ruby
alem0lars has joined #ruby
Tearan has quit [Quit: Sleepy Badger....]
jerius has joined #ruby
kbeddingfield has joined #ruby
irleif has quit [Quit: Computer has gone to sleep.]
senny has quit [Remote host closed the connection]
mneorr has joined #ruby
awarner has joined #ruby
mrsolo has joined #ruby
hsbt is now known as hsbt_away
linoj has quit [Quit: linoj]
kbeddingfield has quit [Read error: Connection reset by peer]
kbeddingfield has joined #ruby
Trioke has joined #ruby
fredjean has quit [Quit: Computer has gone to sleep.]
Morkel has joined #ruby
n00b982 has joined #ruby
Morkel has quit [Client Quit]
Morkel has joined #ruby
tomdebenning has joined #ruby
yshh has quit [Remote host closed the connection]
macabre has quit [Remote host closed the connection]
slainer68 has quit [Remote host closed the connection]
Neomex has joined #ruby
Neomex has quit [Client Quit]
nari has quit [Read error: Operation timed out]
irleif has joined #ruby
baphled has quit [Ping timeout: 268 seconds]
timmillwood has quit [Ping timeout: 264 seconds]
fredjean has joined #ruby
Elhu has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
timonv has quit [Remote host closed the connection]
evilsushi has joined #ruby
evilsushi has quit [Changing host]
evilsushi has joined #ruby
nat2610 has joined #ruby
heftig has quit [Ping timeout: 245 seconds]
yshh has joined #ruby
awarner has quit [Remote host closed the connection]
flyinprogramer has joined #ruby
heftig has joined #ruby
shevy has joined #ruby
<shevy> NoMethodError: undefined method `grep' for #<String:0x8d1f580>
<shevy> waaaat :(
chussenot has quit [Quit: chussenot]
ryanlecompte has quit [Remote host closed the connection]
<flyinprogramer> so, how do you escape the escape character in a ruby regex; example "mailto:FOO\"".match(/mailto:(.*)\\/) seems to give me not at all what i want...
voodoofish430 has joined #ruby
<davidcelis> you don't have an escape character in that string
<davidcelis> the backslash is escaping the double quote; your string does not actually contain a backslash
cantonic has joined #ruby
<heftig> while the regexp ends in a backslash, so it would try to match it
irleif has quit [Quit: Computer has gone to sleep.]
dhruvasagar has quit [Ping timeout: 248 seconds]
linoj has joined #ruby
fredjean has quit [Quit: Computer has gone to sleep.]
n00b982 has quit [Ping timeout: 260 seconds]
khakimov has quit [Quit: Computer has gone to sleep.]
<flyinprogramer> ok, so i hear you...
havenn has quit [Remote host closed the connection]
<flyinprogramer> and that's validated in rib… so why is my real dataset not working
havenn has joined #ruby
<flyinprogramer> which i obviously want to share, i need to sensitize it - hold on
awarner has joined #ruby
adeponte has joined #ruby
hsbt_away is now known as hsbt
samuel02 has quit [Remote host closed the connection]
J-_-L has quit [Ping timeout: 248 seconds]
Vinz_ is now known as Vinz_`
chimkan_ has quit [Quit: chimkan_]
iamjarvo has joined #ruby
<flyinprogramer> davidcelis: http://pastebin.com/r5LJiC93
<flyinprogramer> that's the true string
<flyinprogramer> i'm trying to match/scan out the email address...
Iszak has quit []
v0n has quit [Remote host closed the connection]
<flyinprogramer> so i thought match(/mailto:(.*)"/) would work… it does not
uuair has joined #ruby
irleif has joined #ruby
chussenot has joined #ruby
stephenjudkins__ has quit [Quit: stephenjudkins__]
jblack has joined #ruby
havenn has quit [Ping timeout: 252 seconds]
<davidcelis> /mailto:([^\\]+)/i works for me on rubular
<flyinprogramer> interesting
ananthakumaran has quit [Quit: Leaving.]
Vinz_` is now known as Vinz_
fredjean has joined #ruby
sheerun has joined #ruby
wallerdev has quit [Quit: wallerdev]
haxrbyte has quit [Ping timeout: 260 seconds]
<flyinprogramer> davidcelis: response.match(/mailto:([^\\]+)/) isn't working, where response is the string..
<flyinprogramer> adding the i doesn't change things..
<davidcelis> play around on rubular
hsbt has quit [Read error: Connection reset by peer]
hsbt has joined #ruby
<davidcelis> it's much easier to test there in real time than continuously entering in new regexps in irb
<flyinprogramer> so why is working on rubular and not in rib?
Faris has quit [Ping timeout: 246 seconds]
<flyinprogramer> or when scripted...
Ry_ has joined #ruby
Ry has quit [Read error: Connection reset by peer]
Ry_ is now known as Ry
jrajav has quit []
clj_newb_ has joined #ruby
nemesit has quit [Quit: Linkinus - http://linkinus.com]
nemesit has joined #ruby
snuglepuss has joined #ruby
c0rn has joined #ruby
whowantstolivefo has joined #ruby
cakehero has joined #ruby
clj_newb has quit [Ping timeout: 264 seconds]
ablankfield has quit [Ping timeout: 240 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
Aiur has joined #ruby
clj_newb_ has quit [Ping timeout: 245 seconds]
stephenjudkins has joined #ruby
mahmoudimus has joined #ruby
kil0byte has quit [Ping timeout: 260 seconds]
lxsameer has joined #ruby
whowantstolivefo has quit [Ping timeout: 260 seconds]
supersymmetry has quit [Read error: Operation timed out]
krawchyk has joined #ruby
jcaudle_ has joined #ruby
Gmind has joined #ruby
mmitchel_ has joined #ruby
<elentras> Hi, I'm looking for a gem to parse excel files with multiples sheets.
jcaudle_ has quit [Client Quit]
sepp2k1 has joined #ruby
jcaudle_ has joined #ruby
<marty_mcfly> hello all, i just compiled and installed ruby 1.9.3 on my redhat machine ... now that I installed rubygems, when I try any command with ruby, like update or install, i get an ERROR: Loading command: update (LoadError) and it complains about 'cannot load such file -- zlib' ... i have zlib and zlib-devel installled through yum though, what gives ???
eddie_ has quit [Ping timeout: 244 seconds]
<marty_mcfly> when i try commands with gem **(
bricker has joined #ruby
jcaudle has quit [Ping timeout: 244 seconds]
jcaudle_ is now known as jcaudle
mmitchell has quit [Ping timeout: 244 seconds]
sepp2k has quit [Ping timeout: 256 seconds]
jblack has quit [Read error: Connection reset by peer]
kil0byte has joined #ruby
<marty_mcfly> anybody have insight on this mind boggling problem
Gmind1 has quit [Ping timeout: 260 seconds]
jcaudle has quit [Client Quit]
cantonic has quit [Quit: cantonic]
chimkan has joined #ruby
snuglepuss has quit [Remote host closed the connection]
Virunga has quit [Remote host closed the connection]
jrajav has joined #ruby
alem0lars has quit [Quit: quit]
timmow has quit [Quit: has left the building]
shevy has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
elaptics is now known as elaptics`away
evilsushi has quit [Quit: Lost terminal]
jrajav has quit [Client Quit]
headius has joined #ruby
lxsameer has quit [Ping timeout: 256 seconds]
<uuair> rvm install ruby-1.9.3-p286
<uuair> Error running 'make', please read /Users/uuair/.rvm/log/ruby-1.9.3-p286/make.log
<uuair> There has been an error while running make. Halting the installation.
Monie has joined #ruby
x1337807x has joined #ruby
uuair has quit [Quit: uuair]
uuair has joined #ruby
IrishGringo has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.2/20121024073032]]
ABK has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 255 seconds]
ABK has joined #ruby
Rizzle has quit [Ping timeout: 264 seconds]
nat2610 has quit [Quit: Leaving.]
jgrevich_ has joined #ruby
<davidcelis> ok
jgrevich has quit [Ping timeout: 244 seconds]
jgrevich_ is now known as jgrevich
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
freakazoid0223 has quit [Read error: Connection reset by peer]
Iszak has joined #ruby
berserkr has joined #ruby
kbeddingfield has quit [Remote host closed the connection]
kbeddingfield has joined #ruby
_Mon_Ouie_ is now known as Mon_Ouie
fredjean has quit [Quit: Computer has gone to sleep.]
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
kbeddingfield has quit [Remote host closed the connection]
pu22l3r has joined #ruby
nat2610 has joined #ruby
mklappstuhl has quit [Ping timeout: 240 seconds]
ryanlecompte has joined #ruby
headius has quit [Quit: headius]
lkba has quit [Read error: Connection reset by peer]
hsbt is now known as hsbt_away
undersc0re97 has joined #ruby
undersc0re97 has joined #ruby
undersc0re97 has quit [Changing host]
lkba has joined #ruby
JonnieCache has quit [Ping timeout: 260 seconds]
arvindravi has quit [Ping timeout: 244 seconds]
wallerdev has joined #ruby
timonv has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
pu22l3r has quit [Remote host closed the connection]
pr0ton_ has joined #ruby
burgestrand has joined #ruby
n00b982 has joined #ruby
tvw has quit [Remote host closed the connection]
ABK has quit [Read error: Connection reset by peer]
pr0ton_ has left #ruby [#ruby]
ABK has joined #ruby
kil0byte has quit [Ping timeout: 244 seconds]
lxsameer has quit [Ping timeout: 246 seconds]
cobragoat has joined #ruby
x82_nicole has joined #ruby
Tuxist has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Faris has joined #ruby
x1337807x has left #ruby [#ruby]
x1337807x has joined #ruby
maxer has quit [Quit: maxer]
x1337807x has quit [Quit: x1337807x]
Gmind has quit [Ping timeout: 260 seconds]
jonan has joined #ruby
zeade has joined #ruby
<zeade> anyone here have any experience using ruby to create metro 2 credit reporting files?
smook has joined #ruby
earthquake has quit [Quit: earthquake]
chussenot has quit [Quit: chussenot]
vickaita has joined #ruby
slainer68 has joined #ruby
roadt has quit [Ping timeout: 252 seconds]
maxer has joined #ruby
hbpoison has quit [Ping timeout: 268 seconds]
linoj has quit [Quit: linoj]
n00b982 has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
slainer68 has quit [Ping timeout: 260 seconds]
cantonic has joined #ruby
lxsameer has joined #ruby
philcrissman has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
maxer has quit [Quit: maxer]
thorncp has joined #ruby
hbpoison_ has quit [Ping timeout: 256 seconds]
lxsameer has quit [Client Quit]
chimkan__ has joined #ruby
alexim has joined #ruby
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
g-ram has joined #ruby
chimkan has quit [Ping timeout: 260 seconds]
chimkan__ is now known as chimkan
cableray has joined #ruby
ABK has quit [Read error: Connection reset by peer]
Uranio has joined #ruby
nga4 has joined #ruby
ABK has joined #ruby
fermion has quit [Read error: Operation timed out]
Neomex has joined #ruby
Neomex has quit [Client Quit]
<nga4> Is there a reasonable, short way to determine if a given time zone (ActiveSupport::TimeZone) does or does not acknowledge daylight savings time? I just want a boolean.
<matti> nga4: /j rubyonrails
darthdeus has joined #ruby
nat2610 has quit [Quit: Leaving.]
<nga4> Or really any means at all, TZInfo::timezone would fly too
<nga4> I just need a means
adambeynon has joined #ruby
nat2610 has joined #ruby
rdark has quit [Quit: leaving]
irleif has quit [Quit: Computer has gone to sleep.]
<matti> nga4: TZInfo gem?
ABK has quit [Read error: Connection reset by peer]
<matti> Not sure.
ABK has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mpereira has joined #ruby
* apeiros gets himself a glass of coderdiesel
<matti> apeiros: What year?
havenn has joined #ruby
<apeiros> oh a good 2012er
<apeiros> well grounded, subtly rounded with a hint of red bull
<matti> Mmm... I see.
<matti> 2012 is a little young, tho.
<matti> ;]
nyuszika7h has quit [Remote host closed the connection]
invisime has quit [Quit: Leaving.]
hbpoison has joined #ruby
irleif has joined #ruby
jrajav has joined #ruby
chrisramon has joined #ruby
nyuszika7h has joined #ruby
apok_ has joined #ruby
ltsstar has quit [Quit: ltsstar]
Zai00 has quit [Quit: Zai00]
apok has quit [Ping timeout: 264 seconds]
apok_ is now known as apok
kpshek has quit []
Keva161 has joined #ruby
sertaconay has quit [Read error: Connection reset by peer]
anpl_ has quit [Ping timeout: 244 seconds]
kpshek has joined #ruby
iamjarvo has quit [Quit: Computer has gone to sleep.]
irleif has quit [Quit: Computer has gone to sleep.]
hbpoison has quit [Ping timeout: 268 seconds]
uuair has quit [Quit: uuair]
daniel_-_ has joined #ruby
samphippen has joined #ruby
mensvaga has joined #ruby
BoomCow has joined #ruby
aquaranto has quit [Remote host closed the connection]
<mensvaga> how do I break up an if statement across multiple lines?
cableray has quit [Read error: Connection reset by peer]
irleif has joined #ruby
<BoomCow> mensvaga, what do oyou mean
h4mz1d has joined #ruby
<mensvaga> if ( a=b &&
<mensvaga> c==d)
<mensvaga> like that.
<mensvaga> never mind, slashes appear to be the correct answer.
<BoomCow> I just tested that in irb
<BoomCow> what's the answer?
<BoomCow> \?
<mensvaga> yeah.
<BoomCow> awesome
<BoomCow> good to know :D
anpl has joined #ruby
awarner has quit [Remote host closed the connection]
rburton- has joined #ruby
knite has joined #ruby
wting has joined #ruby
clj_newb has joined #ruby
awarner has joined #ruby
<wting> What's the noop statement in Ruby?
maletor has quit [Quit: Computer has gone to sleep.]
<wting> e.g. C = ; or Python = pass
maletor has joined #ruby
<bricker> What's the different between putting extra code in an "ensure" block, or just putting it after "end"?
<bricker> difference*
<heftig> wting: you could use nil
<tos9> wting: What do you need it for
<bricker> I think it's better just to use "true" right?
slainer68 has joined #ruby
mpereira has quit [Read error: Connection reset by peer]
<wting> tos9: I need to ignore an exception, so I'm just catching and noop'ing.
<wting> heftig: thx
<Sou|cutter> bricker: code inside an ensure block will execute even if there's an uncaught exception
Grieg has quit [Read error: Connection reset by peer]
<heftig> begin; raise "foo"; rescue; end
<bricker> Sou|cutter: ah, thanks
cableray has joined #ruby
<heftig> bricker: or the code returns from the protected block
<Sou|cutter> heftig: yes. good point
mpereira has joined #ruby
<wting> heftig: oh ok, I didn't realize blocks could be empty.
hbpoison has joined #ruby
g-ram has quit [Quit: Computer has gone to sleep.]
hsbt_away is now known as hsbt
Grieg has joined #ruby
Grieg has quit [Changing host]
Grieg has joined #ruby
J-_-L has joined #ruby
dmiller_ has joined #ruby
hbpoison has quit [Ping timeout: 240 seconds]
darthdeus has quit [Quit: Leaving...]
linoj has joined #ruby
mmitchel_ has quit [Remote host closed the connection]
clj_newb has quit [Read error: No route to host]
onibox has joined #ruby
seanyo has quit [Ping timeout: 248 seconds]
irleif has quit [Quit: Computer has gone to sleep.]
clj_newb has joined #ruby
james12343 has joined #ruby
workmad3 has joined #ruby
mpereira has quit [Read error: Connection reset by peer]
caleb_io has joined #ruby
caleb_io has quit [Client Quit]
gogiel has quit [Ping timeout: 260 seconds]
mpereira has joined #ruby
gogiel has joined #ruby
wting has quit [Quit: leaving]
savage- has joined #ruby
james12343 has left #ruby [#ruby]
wting has joined #ruby
hsbt is now known as hsbt_away
kenneth has joined #ruby
<kenneth> hey there
<mensvaga> is there a module that validates a hostname?
chrisramon has quit [Quit: chrisramon]
<mensvaga> like "*@(*(@*(@*(*@(.poop.com" is not a valid hostname.
<kenneth> so with rack, is there a reason that OPTIONS http request result in a 405?
linoj has quit [Quit: linoj]
tvw has joined #ruby
kirun has joined #ruby
ryanlecompte has quit [Ping timeout: 260 seconds]
arvindravi has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
mpereira has quit [Ping timeout: 240 seconds]
mpereira has joined #ruby
chimkan_ has joined #ruby
<scx_> where i can find list of possible valid file encodings, for example "# encoding: utf-8" or "# -*- coding: UTF-8 *-*"
<scx_> ?
chimkan has quit [Read error: Operation timed out]
joast has quit [Remote host closed the connection]
Iszak has quit []
jake_ has joined #ruby
jerius has quit [Quit: Computer has gone to sleep.]
hsbt_away is now known as hsbt
butblack has quit [Quit: butblack]
scx_ is now known as scx
ThaDick has joined #ruby
butblack has joined #ruby
chimkan_ has quit [Ping timeout: 276 seconds]
love_color_text has joined #ruby
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
Faris has quit [Quit: Nettalk6 - www.ntalk.de]
BrianJ has quit [Quit: BrianJ]
JustinCampbell has joined #ruby
Mayhew has joined #ruby
Morkel_ has joined #ruby
JustinCampbell has quit [Remote host closed the connection]
geggam has quit [Remote host closed the connection]
geggam_ is now known as geggam
flyinprogramer has quit [Quit: flyinprogramer]
Morkel has quit [Ping timeout: 260 seconds]
Morkel_ is now known as Morkel
krawchyk has quit [Remote host closed the connection]
irleif has joined #ruby
Tuxist has quit [Remote host closed the connection]
flyinprogramer has joined #ruby
monkegjinni has joined #ruby
workmad3 has joined #ruby
<Grieg> hello.
<Grieg> On win7 ruby command line opens script in text editor instead of executing it, on winXP it works as it should. what might be the problem?
caleb_io has joined #ruby
<apeiros> windows
<apeiros> (scnr)
<X-Jester> Grieg: you have probably associated a certain script file to open with an editor by default
werdnativ has quit [Quit: werdnativ]
ABK has quit [Read error: Connection reset by peer]
<X-Jester> like, you double-clicked that file and told windows how you wanted to open it, and now when you run the command, it's checked against the association
ABK has joined #ruby
stephenjudkins has quit [Quit: stephenjudkins]
hbpoison has joined #ruby
hbpoison_ has joined #ruby
pothibo has joined #ruby
tk__ has quit [Quit: ばいばい]
hsbt is now known as hsbt_away
kbeddingfield has joined #ruby
emergion has joined #ruby
wting has quit [Remote host closed the connection]
_veer has quit [Ping timeout: 260 seconds]
emergion has quit [Client Quit]
monkegjinni has quit [Remote host closed the connection]
maxok has joined #ruby
hbpoison_ has quit [Ping timeout: 245 seconds]
ThaDick has quit [Quit: I'm outta here!]
rburton- has quit [Quit: Leaving...]
jerius has joined #ruby
kbeddingfield has quit [Ping timeout: 255 seconds]
berserkr has quit [Quit: Leaving.]
caleb_io has quit [Quit: caleb_io]
Dreamer3 has quit [Quit: Leaving...]
Dreamer3 has joined #ruby
Dreamer3 has quit [Client Quit]
Dreamer3 has joined #ruby
timonv has joined #ruby
hsbt_away is now known as hsbt
haxrbyte has joined #ruby
mpereira has quit [Ping timeout: 260 seconds]
Fenice has joined #ruby
Fenice has left #ruby [#ruby]
hsbt is now known as hsbt_away
havenn has quit [Remote host closed the connection]
havenn has joined #ruby
chussenot has joined #ruby
hbpoison has quit [Ping timeout: 245 seconds]
pothibo has quit [Quit: pothibo]
asobrasil has left #ruby [#ruby]
haxrbyte has quit [Ping timeout: 252 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
headius has joined #ruby
tchebb has joined #ruby
havenn has quit [Ping timeout: 260 seconds]
fredjean has joined #ruby
jrajav has quit []
v0n has joined #ruby
stephenjudkins has joined #ruby
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
havenn has joined #ruby
rburton- has joined #ruby
linoj has joined #ruby
emergion has joined #ruby
mmitchell has joined #ruby
moshee has quit [Ping timeout: 264 seconds]
vickaita_ has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
_veer has joined #ruby
_veer has quit [Changing host]
_veer has joined #ruby
irleif has quit [Quit: Computer has gone to sleep.]
<Grieg> X-Jester: that was the case. thank you man
vickaita has quit [Ping timeout: 240 seconds]
SeoxyS has joined #ruby
kenneth has quit [Read error: Connection reset by peer]
SeoxyS is now known as kenneth
irleif has joined #ruby
kbeddingfield has joined #ruby
Rizzle has joined #ruby
hsbt_away is now known as hsbt
moshee has quit [Ping timeout: 252 seconds]
moshee has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
jjbohn has joined #ruby
nanderoo has quit [Quit: Leaving.]
swex has quit [Ping timeout: 276 seconds]
SoonerBourne has quit [Read error: Connection reset by peer]
SoonerBourne has joined #ruby
ejholmes has joined #ruby
werdnativ has joined #ruby
awarner has quit [Remote host closed the connection]
insulator has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
awarner has joined #ruby
chussenot has quit [Quit: chussenot]
ceej has joined #ruby
hakunin has joined #ruby
Bosma has quit [Quit: leaving]
emergion has joined #ruby
daniel_-_ has quit [Ping timeout: 260 seconds]
dmiller_ has quit [Remote host closed the connection]
jlwestsr has quit [Ping timeout: 246 seconds]
Tearan has joined #ruby
maxok has quit [Quit: Linkinus - http://linkinus.com]
rburton- has quit [Quit: Leaving...]
geekbri has quit [Remote host closed the connection]
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
Guest15771 has quit [Quit: Guest15771]
butblack has quit [Quit: butblack]
linusoleander has joined #ruby
linusoleander has left #ruby [#ruby]
alfism has quit [Quit: alfism]
seanyo has joined #ruby
tenmilestereo has joined #ruby
carlyle has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
Cultofmetatron has joined #ruby
slainer68 has quit [Remote host closed the connection]
hbpoison has joined #ruby
jlwestsr has joined #ruby
irleif has quit [Quit: Computer has gone to sleep.]
stkowski has joined #ruby
onibox has quit [Quit: leaving]
Cultofmetatron has quit [Remote host closed the connection]
fredjean has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<burgestrand> scx: Encoding.list
nat2610 has left #ruby [#ruby]
BadProphet has quit [Quit: This computer has gone to sleep]
sertaconay has joined #ruby
tomsthumb has quit [Quit: Leaving.]
hbpoison has quit [Ping timeout: 268 seconds]
workmad3 has joined #ruby
carlyle has quit [Remote host closed the connection]
Tania has joined #ruby
havenn has quit [Remote host closed the connection]
BrianJ has joined #ruby
havenn has joined #ruby
vickaita_ has quit [Ping timeout: 244 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
undersc0re97 has quit [Quit: Leaving]
linoj has quit [Quit: linoj]
irleif has joined #ruby
vickaita has joined #ruby
jonan has quit [Read error: Connection reset by peer]
yalue has quit [Quit: Leaving]
havenn has quit [Ping timeout: 256 seconds]
Tearan has quit [Quit: Sleepy Badger....]
hbpoison has joined #ruby
jonan has joined #ruby
SoonerBourne has quit [Quit: HydraIRC -> http://www.hydrairc.com <- It'll be on slashdot one day...]
SoonerBourne has joined #ruby
Keva161 has quit [Ping timeout: 260 seconds]
justinmcp has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
jeffreybaird has quit [Quit: jeffreybaird]
flyinprogramer has quit [Quit: flyinprogramer]
hsbt is now known as hsbt_away
anpl has quit [Ping timeout: 252 seconds]
tommyvyo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
hotovson has quit [Remote host closed the connection]
irleif has quit [Quit: Computer has gone to sleep.]
apmacwrk has quit [Ping timeout: 260 seconds]
Cicloid has quit [Remote host closed the connection]
apmacwrk has joined #ruby
rburton- has joined #ruby
hotovson has joined #ruby
csaunders has quit [Quit: Computer has gone to sleep.]
Tearan has joined #ruby
casheew has quit [Read error: Connection reset by peer]
s0ber has quit [Read error: Connection reset by peer]
casheew has joined #ruby
medik has joined #ruby
linoj has joined #ruby
s0ber has joined #ruby
ryanlecompte has joined #ruby
jlwestsr has quit [Ping timeout: 246 seconds]
GoGoGarrett has quit [Remote host closed the connection]
hotovson has quit [Ping timeout: 260 seconds]
hsbt_away is now known as hsbt
workmad3 has joined #ruby
emergion has joined #ruby
headius has quit [Quit: headius]
daniel_-_ has joined #ruby
headius has joined #ruby
slainer68 has joined #ruby
rburton- has quit [Ping timeout: 252 seconds]
Takehiro has quit [Remote host closed the connection]
irleif has joined #ruby
savage- has quit [Ping timeout: 248 seconds]
jgarvey has joined #ruby
vickaita has quit [Ping timeout: 240 seconds]
forced_request has joined #ruby
love_color_text_ has joined #ruby
love_color_text_ has quit [Changing host]
love_color_text_ has joined #ruby
colinbm has joined #ruby
bapa has quit [Read error: Connection reset by peer]
bapa has joined #ruby
Goles has joined #ruby
marius has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
hbpoison has quit [Ping timeout: 260 seconds]
samuel02 has joined #ruby
headius has joined #ruby
scx has quit [Ping timeout: 240 seconds]
Neomex has joined #ruby
pjb3 has joined #ruby
Neomex has quit [Client Quit]
slainer68 has quit [Ping timeout: 248 seconds]
shevy3 has joined #ruby
jerius has quit [Quit: Computer has gone to sleep.]
dakine has joined #ruby
colinbm has quit [Quit: colinbm]
<shevy3> test
<shevy3> is anyone here
jjbohn has quit [Quit: Leaving...]
<jonan> Yes
<shevy3> hmm ok good... I am on chatzilla right now... and I hate it, everything is different :(
jlwestsr has joined #ruby
jerius has joined #ruby
thinkdevcode has quit [Remote host closed the connection]
scx has joined #ruby
insulator has quit [Ping timeout: 276 seconds]
tomdebenning has quit [Quit: tomdebenning]
Virunga has joined #ruby
moshee has quit [Ping timeout: 244 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
jgarvey has quit [Quit: Leaving]
havenn has joined #ruby
insulator has joined #ruby
<jonan> hate is a strong word
Soilent has joined #ruby
<Grieg> )
<jonan> try "I am diametrically opposed to chatzilla"
<X-Jester> Grieg: glad to help
jerius has quit [Client Quit]
stephenjudkins has quit [Quit: stephenjudkins]
Keva161 has joined #ruby
linusable has joined #ruby
<X-Jester> ls
<X-Jester> whoops, mt
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
<havenn> "I #{%w[loathe despise abhor].sample} chatzilla"
linusable has left #ruby ["Ex-Chat"]
Soilent has quit [Remote host closed the connection]
mmercer has quit [Ping timeout: 245 seconds]
<havenn> I <3 LimeChat, except for the name. :
arvindravi has quit [Quit: leaving]
smook has quit [Remote host closed the connection]
codecaster has joined #ruby
blazes816 has left #ruby [#ruby]
clj_newb has quit [Ping timeout: 256 seconds]
<jonan> Limes are delicious. They last for months and prevent scurvy; what's not to like?
Uranio has quit [Remote host closed the connection]
nkts has quit [Read error: Connection reset by peer]
mmercer has joined #ruby
apok has quit [Quit: apok]
<havenn> jonan: Oh, I love limes. Just LimeChat reminds me of LimeWire, which for some reason I have a bad association with.
baroquebobcat has joined #ruby
<jonan> Ahhh, because teh hax.
hsbt is now known as hsbt_away
jrajav has joined #ruby
<shevy3> jonan no, I can only hate it really, it's awful... but until xchat works, it has to suffice
<shevy3> the nicks aren't even coloured at all!
havenn_ has joined #ruby
jonan is now known as x1337807x
<shevy3> and it did not allow me to pick "shevy" as nick on startup either...
gregorg_taf has joined #ruby
<x1337807x> I'm using a Colloquy
daniel_- has joined #ruby
ceej has quit [Quit: ceej]
pjb3 has quit [Quit: pjb3]
<x1337807x> but I miss irssi
<x1337807x> There is no perfect IRC client
mrj has joined #ruby
mensvaga has quit [Ping timeout: 260 seconds]
<apeiros> colloquy was just so freaking buggy when I first used it
<apeiros> I never ever touched it since
<mrj> colloquy is pretty goofy, imo
jord_ has joined #ruby
<apeiros> and it had bad behaviors, like silent/hidden notices etc.
<x1337807x> yup
<havenn> In other news, guinea pigs and bats can get scurvy just like us. They don't synthesize vitamin C either.
havenn has quit [Read error: Connection reset by peer]
gregorg has quit [Read error: Connection reset by peer]
daniel_-_ has quit [Read error: Connection reset by peer]
klip has quit [Read error: Operation timed out]
Villadelfia has quit [Read error: Operation timed out]
sguselnikov has joined #ruby
arietis has quit [Read error: Connection reset by peer]
Guest41156 has quit [Read error: Operation timed out]
DarkFoxDK has quit [Read error: Operation timed out]
jord has quit [Read error: Operation timed out]
Apocalypse has quit [Read error: Operation timed out]
Villadelfia has joined #ruby
<mrj> it just never felt "right" or comfortable
apok has joined #ruby
geggam has quit [Read error: Connection reset by peer]
Villadelfia has quit [Changing host]
Villadelfia has joined #ruby
apok has quit [Remote host closed the connection]
sguselnikov has quit [Client Quit]
<apeiros> limechat is the client which felt the most comfortable. yet it's still lacking in so many regards :(
<x1337807x> I just discovered that I could hide the toolbar
apok has joined #ruby
klip has joined #ruby
rburton- has joined #ruby
tds has joined #ruby
<x1337807x> I like Colloquy 20% more now
arietis has joined #ruby
greenarrow has quit [Ping timeout: 252 seconds]
<shevy3> what is coloquy, is that a mac only elitist thing again?
<x1337807x> They should have chosen a name I could pronounce though.
greenarrow has joined #ruby
pjb3 has joined #ruby
<x1337807x> Yes, it's for elitists.
maxer has joined #ruby
<shevy3> my secret plan was to write an IRC client in ruby but as always with grand goals, I fail in the 10-20% phase...
hsbt_away is now known as hsbt
chimkan has joined #ruby
jeremywrowe has left #ruby [#ruby]
<x1337807x> Elitists don't fail until at least 30%.
<workmad3> more people should use irssi :P
<shevy3> see this is the thing with irssi etc..
<X-Jester> let me just cry for a few minutes about how unhappy i am trying to get js185 to compile on my x86_64 host.
<shevy3> I just cant get used to handling the interface in it
<X-Jester> it keeps trying to link against an x86 library. :\
<shevy3> I even mis-copy / paste things into irssi
Guest41156 has joined #ruby
<workmad3> shevy3: yeah well.... you suck? :P
joshman_ has quit [Ping timeout: 244 seconds]
<x1337807x> woah
Apocalypse has joined #ruby
<shevy3> nah, it's the format of the client
DarkFoxDK has joined #ruby
Ruler_Of_Heaven_ has quit [Ping timeout: 244 seconds]
<X-Jester> i have to chuckle a bit, because when i first started on irc, it was with ircII
<x1337807x> There's no need for that kind of mean
butblack has joined #ruby
<X-Jester> no windows, colors, shortcuts, anything
codecaster has quit [Quit: Leaving.]
<X-Jester> when the epic ports came out, i was in love, that's why i like irssi, it's got the same look and feel as bitchx and the epic ports
<shevy3> I need to look at what I am about to type before I can send it :)
<x1337807x> Colors are for the weak
maxer has quit [Client Quit]
<shevy3> I think I once spammed like 30 lines into irssi without wanting to
pipopopo has joined #ruby
<mrj> i've never really understood the popularity or irssi/bitchx
<shevy3> odd... workmad3's message appears here in #ruby to me but also in #freenode ...
<workmad3> shevy3: how does this contradict my previous statement? :P
<workmad3> heh
kenneth has quit [Read error: Connection reset by peer]
<mrj> i mean, it was great with eggdrops in 1997
philcrissman has quit [Remote host closed the connection]
darthdeus has joined #ruby
<X-Jester> mrj: in 1997, it was amazing
<X-Jester> mrj: hah, jinx
<mrj> bingo
Takehiro has joined #ruby
kenneth has joined #ruby
<mrj> remember the old crazy windows clients loaded with tons of plugins/malware/watever.. ACidMAX2000!!!
hbpoison has joined #ruby
hbpoison_ has joined #ruby
<X-Jester> mrj: on unix, it was the best thing available
<shevy3> workmad3: nah that's like saying because someone is bad, the tool is better. I am not saying I am great, but I reject the notion that irssi is great!
BadProphet has joined #ruby
<X-Jester> it extended the core of epic a lot, and then gave the user much more extensibility on top of it
<mrj> yeah but nowadays people install cygwin just to run irssi.. i dont get it
<X-Jester> irc was like the beez kneez
<shevy3> though, if I would have a choice, I'd rather use it in ruby at least... a ruby irssi that would be ok
<X-Jester> well, as a chat client, i think i'm rather fond of it
<mrj> i use trillians IRC.. i dig it
<shevy3> what is that
rakl has joined #ruby
<shevy3> sounds alien
<X-Jester> i think i'm used to keyboard-driven IRC though, that's why i don't dig the windows clients as much
<shevy3> "Hello, I come from planet Trillian. Your IRCs will be assimilated."
<mrj> trillian was one of the first multiprotocol IM clients.. trillian astra now
<X-Jester> i actually set out to write an epic-ish client in C# but then realized tehre's no terminal library for .NET
<X-Jester> so writing something like that would be, well, bad
Guest41156 has quit [Read error: Operation timed out]
Jonah11_ has joined #ruby
<shevy3> lol X-Jester you do seem to kind of doing the epic things
<workmad3> mrj: if you're on windows, irssi is still > mIRC...
<mrj> lol mirc
Guest41156 has joined #ruby
<shevy3> awww mIRC was so cool
<Jonah11_> I am looking for an elegant way to solve this simple array problem without manual looping: http://pastie.org/5174010
tomsthumb has joined #ruby
<mrj> i can still picture the guys face
<X-Jester> shevy3: do you know what i mean when i say epic?
<mrj> every time i started it.. ugh
<workmad3> mrj: and if you're not on windows, well you have a decent terminal to run irssi already :)
_veer has quit [Ping timeout: 260 seconds]
<X-Jester> shevy3: i'm talking about ircII-EPIC, one of the only successful ports of ircII, and the base starting point for epic ports like BitchX, CToolZ, ScrollZ, etc
<mrj> i like my irc in a gui
<X-Jester> i do not believe irssi is epic-based, but it's definitely designed to look like it.
<Jonah11_> * 3rd item in desired output should have value blah7, not blah8
<shevy3> hmm trillian seems windows only?
rburton- has quit [Ping timeout: 240 seconds]
<X-Jester> so i'm not using the term epic to mean "epic", i'm talking about a specific program that was shortened to just "epic"
<shevy3> let me see jonah11
<X-Jester> while we're on this topic, someone make js 1.8.5 build correctly on my x86_64 host!
<shevy3> Jonah11 can't you use some sort of .select ?
darthdeu has joined #ruby
_veer has joined #ruby
_veer has quit [Changing host]
_veer has joined #ruby
Takehiro has quit [Ping timeout: 240 seconds]
stopbit has quit [Quit: Leaving]
<Jonah11_> shevy3, i think so, but i'm having trouble figuring out how to get the 2nd item in each group logic
cobragoa_ has joined #ruby
weasels has joined #ruby
darthdeus has quit [Read error: Connection reset by peer]
cobragoat has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
TheFuzzball has quit [Read error: Operation timed out]
Villadelfia has quit [Read error: Operation timed out]
headius has quit [Quit: headius]
hbpoison has quit [Ping timeout: 260 seconds]
n00b982 has joined #ruby
<shevy3> hmm
adambeynon has joined #ruby
<shevy3> workmad3 surely knows clever solutions
otters has quit [Read error: Connection reset by peer]
hbpoison_ has quit [Ping timeout: 276 seconds]
<shevy3> but actually
<shevy3> why not simply use .each and count manually?
jaygen_ has joined #ruby
DarkFoxDK has quit [Read error: Operation timed out]
Guest41156 has quit [Read error: Operation timed out]
<Jonah11_> shevy3, because this is ruby :)
<shevy3> and just reset it when you found your match
TheFuzzball has joined #ruby
<shevy3> I am the laziest ruby guy on earth, when I found a solution that works, I am happy with it and move on to better grounds!
colinbm has joined #ruby
<shevy3> where is Hanmac
<Jonah11_> shevy3, no i like to find the clever 1 line solution and learn more
jaygen has quit [Ping timeout: 252 seconds]
xclite has quit [Ping timeout: 252 seconds]
casheew has quit [Read error: Connection reset by peer]
<shevy3> ok
DarkFoxDK has joined #ruby
<shevy3> this is for workmad3
<shevy3> workmad3: we need a terse solution to find each 2nd entry in an array
baroquebobcat has quit [Quit: baroquebobcat]
Guest41156 has joined #ruby
casheew has joined #ruby
casheew has quit [Read error: Connection reset by peer]
Villadelfia has joined #ruby
<shevy3> {id: 2, val: "blah5"} {id: 3, val: "blah8"}
reset has quit [Quit: Leaving...]
xclite has joined #ruby
blazes816 has joined #ruby
nga4 has quit []
nfk has quit [Quit: yawn]
Uranio has joined #ruby
headius has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
colinbm has quit [Quit: colinbm]
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
casheew has joined #ruby
headius has quit [Client Quit]
Vinz_ is now known as Vinz_`
justinmcp has quit [Remote host closed the connection]
Vinz_` is now known as Vinz_
<jake_> could someone explain a gem to me? is it the same as a python module? or it more like a package that gets installed that contains modules?
bapa has quit [Ping timeout: 260 seconds]
Morkel has quit [Quit: Morkel]
tenmilestereo has quit [Quit: Leaving]
haxrbyte has joined #ruby
casheew has quit [Read error: Connection reset by peer]
kirun has quit [Quit: Client exiting]
<shevy3> jake_: not sure how python does it
<shevy3> a .gem file is basically a kind of archive, with different files in it, mostly .rb files
<shevy3> so you install it via "gem install name" it gets downloaded and installed into SITE_DIR of ruby
<shevy3> most often, the gem has some kind of main module, the main namespace
<shevy3> like foobar-1.0.gem would usually have the main namespace module Foobar; end
blacktul_ has quit [Remote host closed the connection]
answer_42 has quit [Ping timeout: 276 seconds]
linoj has quit [Quit: linoj]
casheew has joined #ruby
jaygen_ has quit [Remote host closed the connection]
csaunders has joined #ruby
havenn_ has quit [Remote host closed the connection]
Xeago has joined #ruby
havenn has joined #ruby
bapa has joined #ruby
roadt has joined #ruby
vickaita has joined #ruby
solidoodlesuppor has quit [Remote host closed the connection]
<jake_> makes sense. thanks
J-_-L has quit [Quit: Leaving.]
tyfighter has joined #ruby
kpshek has quit []
hsbt is now known as hsbt_away
v0n has quit [Ping timeout: 244 seconds]
<love_color_text_> that was so good i just saved it on my blog... http://slog.keyvanfatehi.com/post/34856191874/explain-the-concept-of-a-ruby-gem-an-irc-snippet
<love_color_text_> thanks, let me know if u want me to blank your nick or something
irleif has quit [Quit: Computer has gone to sleep.]
havenn has quit [Ping timeout: 260 seconds]
<apeiros> shevy3, love_color_text_ - the installation directory isn't SITE_DIR
chimkan has quit [Quit: chimkan]
pjb3 has quit [Quit: pjb3]
dogweather has joined #ruby
<love_color_text_> $GEM_HOME then ? apeiros
Serial_Killer_C has quit [Remote host closed the connection]
Virunga has quit [Remote host closed the connection]
stephenjudkins has joined #ruby
<apeiros> love_color_text_: from `gem env`, the value under 'INSTALLATION DIRECTORY'
hsbt_away is now known as hsbt
<jake_> shevy3: just reread your response after finishing what i was working on. a gem then is liek a python package. it would be installed with easy_install or pip which are both like rubygems
JustinCampbell has joined #ruby
somazero has joined #ruby
headius has joined #ruby
linoj has joined #ruby
jlast has quit [Remote host closed the connection]
rburton- has joined #ruby
baroquebobcat has joined #ruby
flyinprogramer has joined #ruby
uris has quit [Quit: Leaving]
freakazoid0223 has joined #ruby
Axsuul has quit [Ping timeout: 268 seconds]
JustinCampbell has quit [Remote host closed the connection]
Axsuul has joined #ruby
theRoUS has quit [Ping timeout: 264 seconds]
justinmcp has joined #ruby
acanals has joined #ruby
<love_color_text_> apeiros: thanks, updated
acanals is now known as armando_canals
mrj has quit [Read error: Connection reset by peer]
emergion has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
Tearan has quit [Quit: Sleepy Badger....]
baroquebobcat has joined #ruby
Guest41156 has quit [Read error: Operation timed out]
Guest41156 has joined #ruby
apok_ has joined #ruby
<shadewind> what does the syntax "class << self" or "class << Klazz" actually mean?
cableray has quit [Quit: cableray]
chimkan has joined #ruby
Zai00 has joined #ruby
<apeiros> "open singleton_class of object self/Klazz"
sertaconay has quit [Remote host closed the connection]
hsbt is now known as hsbt_away
apok has quit [Read error: Operation timed out]
apok_ is now known as apok
<shadewind> but the << is not an operator in that context, is it?
khakimov has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
vickaita has quit [Ping timeout: 260 seconds]
dorei has joined #ruby
<apeiros> no
<apeiros> it's part of the syntax
<apeiros> (so in some sense it is an operator, but it is not a method call, which is what you probably meant)
samuel02 has quit [Remote host closed the connection]
nemish has quit [Quit: nemish]
<shadewind> yes
nemesit has quit [Quit: Leaving...]
afader has quit []
csaunders has quit [Quit: Computer has gone to sleep.]
somazero has quit [Ping timeout: 260 seconds]
wpaulson has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
fantazo has joined #ruby
Dreamer3 has quit [Quit: Computer has gone to sleep.]
Mchl has quit [Quit: ZNC - http://znc.sourceforge.net]
<dorei> let's say I have a class X with an instance variable @t, a = X.new; a.t = 5 is there a way of getting 5 using a string "t" as an input?
mklappstuhl has joined #ruby
chussenot has joined #ruby
<X-Jester> dorei: you should define 'attr_accessor :t' on your class
chussenot has quit [Client Quit]
wpaulson_ has joined #ruby
<X-Jester> then the block that does 'a = X.new' will be able to get 'a.t'
<banisterfiend> dorei: yes, use instance_variable_get("@#{input}")
Mchl has joined #ruby
<X-Jester> dorei: unless you meant what banisterfiend described, in which case, ignore me because i wouldn't have been able to do that.
<banisterfiend> dorei: class X; def get_var(name); instance_variable_get("@#{name}"); end; end
<apeiros> X-Jester: property = 't'; a.send("#{property}=", 5)
<banisterfiend> dorei: X.new.get_var(:t)
<apeiros> to set, and to get: a.send(property)
<apeiros> setter amended: a.send(:"#{property}=", 5)
<X-Jester> i'm confused, unless he doesn't just want to have access to the 't' member from something that contains an object of his class
<dorei> instance_variable_get seams perfect, thanx :)
<apeiros> (the one I initially pasted will work too, though)
<apeiros> dorei: *seems
<apeiros> (unless you're a taylor…)
wpaulson has quit [Ping timeout: 252 seconds]
wpaulson_ is now known as wpaulson
mikemac is now known as crazymykl
somazero has joined #ruby
codecaster has joined #ruby
armando_canals has quit [Ping timeout: 248 seconds]
headius has quit [Quit: headius]
emergion has quit [Quit: Computer has gone to sleep.]
weasels is now known as otters
Tearan has joined #ruby
Zai00_ has joined #ruby
stephenjudkins has quit [Quit: stephenjudkins]
billiam has quit [Quit: Leaving]
Dawne has joined #ruby
alanp has joined #ruby
Zai00 has quit [Ping timeout: 260 seconds]
Hanmac has joined #ruby
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
somazero has quit [Ping timeout: 260 seconds]
SCommette has quit [Quit: SCommette]
_fmm has quit [Ping timeout: 260 seconds]
Takehiro has joined #ruby
hbpoison has joined #ruby
hbpoison_ has joined #ruby
alanp_ has quit [Ping timeout: 276 seconds]
darthdeu has quit [Quit: Leaving...]
armando_canals has joined #ruby
williamcotton has quit [Quit: williamcotton]
darthdeus has joined #ruby
vickaita has joined #ruby
eph3meral has quit [Quit: eph3meral]
u89 has joined #ruby
Takehiro has quit [Ping timeout: 240 seconds]
stkowski has quit [Quit: stkowski]
insulator has quit [Remote host closed the connection]
hbpoison_ has quit [Ping timeout: 255 seconds]
mercwithamouth has quit [Ping timeout: 245 seconds]
hbpoison has quit [Ping timeout: 260 seconds]
slainer68 has joined #ruby
lenovodroid has joined #ruby
colinbm has joined #ruby
mercwithamouth has joined #ruby
<Jonah11_> shevy3, in case you are interested, i got a nice answer on SO to my earlier question: arr_of_hashes.chunk { |h| h[:id] }.map { |id, hs| hs[1] }
khakimov has quit [Ping timeout: 264 seconds]
sheerun has quit [Quit: and thanks for all the fish]
nateberkopec has quit [Quit: Leaving...]
BoomCow has quit [Quit: Leaving]
hsbt_away is now known as hsbt
juarlex_ has quit [Read error: Connection reset by peer]
juarlex_ has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
fumduq has joined #ruby
slainer68 has quit [Ping timeout: 264 seconds]
joeycarmello has quit [Remote host closed the connection]
armando_canals has quit [Ping timeout: 244 seconds]
Dawne has quit [Quit: Leaving.]
haxrbyte has quit [Remote host closed the connection]
Dreamer3 has joined #ruby
Gonzih has quit [Quit: WeeChat 0.3.5]
colinbm has quit [Quit: colinbm]
Jscob__ has joined #ruby
kiyoura has joined #ruby
ablankfield has joined #ruby
thisirs has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
sagax has joined #ruby
CaptainJet has joined #ruby
n00b982 has quit [Ping timeout: 244 seconds]
banisterfiend has quit [Ping timeout: 252 seconds]
rburton- has quit [Quit: Leaving...]
linoj has quit [Quit: linoj]
butblack has left #ruby [#ruby]
SCommette has joined #ruby
lenovodroid has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
geermc4 has joined #ruby
jamjam has quit [Ping timeout: 245 seconds]
CaptainJet has quit []
CaptainJet has joined #ruby
vickaita has quit [Ping timeout: 264 seconds]
u89 has quit [Read error: Connection reset by peer]
chimkan has quit [Quit: chimkan]
n00b982 has joined #ruby
u89 has joined #ruby
timonv has quit [Remote host closed the connection]
JustinCampbell has joined #ruby
Ry has quit [Ping timeout: 260 seconds]
Jscob__ has quit [Ping timeout: 240 seconds]
Jscob__ has joined #ruby
havenn has joined #ruby
n00b982 has quit [Ping timeout: 264 seconds]
clj_newb has joined #ruby
adeponte has quit [Read error: Connection reset by peer]
adeponte has joined #ruby
blazes816 has quit [Quit: blazes816]
davidcelis has quit [Quit: K-Lined.]
chrisramon has joined #ruby
seanyo has quit [Ping timeout: 260 seconds]
Aiur has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
havenn has quit [Ping timeout: 252 seconds]
thinkdevcode has joined #ruby
Jscob__ has quit [Ping timeout: 244 seconds]
dogweather has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
Iszak has joined #ruby
fixl has joined #ruby
armando_canals has joined #ruby
mrsolo has quit [Quit: Leaving]
cantonic has quit [Quit: cantonic]
kbeddingfield has quit [Remote host closed the connection]
darthdeus has quit [Quit: Leaving...]
khakimov has joined #ruby
danneu has joined #ruby
thinkit has joined #ruby
beneggett has joined #ruby
maxer has joined #ruby
tintin has joined #ruby
roadt has quit [Ping timeout: 260 seconds]
<tintin> Is there any public, private method in ruby?
<tintin> public, private, protected method
vickaita has joined #ruby
joeycarmello has joined #ruby
<apeiros> tintin: seriously, spend FIVE minutes googling, or get lost.
combatai` has quit [Ping timeout: 252 seconds]
tintin has quit [Client Quit]
Jscob__ has joined #ruby
<danneu> heh
mercwithamouth has quit [Ping timeout: 248 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
linoj has joined #ruby
cableray has joined #ruby
zodiak has quit [Ping timeout: 260 seconds]
_fmm has joined #ruby
mercwithamouth has joined #ruby
<Hanmac> apeiros is now known as tintin-away-spray :D
rburton- has joined #ruby
* apeiros is tempted to add an autoresponder for tintin, with the message "did you try google?"
SCommette has quit [Quit: SCommette]
<danneu> I used Treetop to build a parser that can parse "[b]hey[/b]". I'm new to parsing/grammar. Is transformation ([b] -> <strong>) done in another step once you have your AST, or is your AST supposed to actually returned the transformed value? (like tree.opening_tag #=> <strong>). here's a simple 17-line parser i wrote: https://gist.github.com/4005062
* apeiros feels a bit like on an episode of IT-crowd
u89 has quit [Remote host closed the connection]
tintin has joined #ruby
<tintin> apeiros: Ah, i forgot, there is a keyword: private
<tintin> apeiros: But i didn't find anything protected.
<tintin> no protected keyword
<apeiros> it's a method, not a keyword.
<apeiros> yeah, google. your friend.
<danneu> dude, google "ruby protected"
<tintin> Yes, i have got that documentationd