<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
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
<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?
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.
<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]
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
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.
<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?
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]
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]
<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
<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.
<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
<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]
<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]
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]
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]
<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]
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]
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]
<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?
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]
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.