<postmodern>
Asher, it appears there's some regexp grammars, i could use those to parse the raw source
takaokouji has joined #ruby-lang
takaokouji has joined #ruby-lang
<cout>
postmodern: look at onig_parse_make_tree()
<postmodern>
oh interesting
nofxx_ has joined #ruby-lang
nofxx_ has joined #ruby-lang
rohit has joined #ruby-lang
rohit has joined #ruby-lang
nofxxx has joined #ruby-lang
nofxxx has joined #ruby-lang
nofxxx has joined #ruby-lang
nofxxx has joined #ruby-lang
nofxxx has joined #ruby-lang
nofxxx has joined #ruby-lang
nofxx_ has joined #ruby-lang
nofxx_ has joined #ruby-lang
<cout>
postmodern: also print_indent_tree()
<cout>
and onig_print_compiled_byte_code (which would be bytecode instead of AST)
manojhans has joined #ruby-lang
manojhans has joined #ruby-lang
burns180 has joined #ruby-lang
burns180 has joined #ruby-lang
skryking has joined #ruby-lang
skryking has joined #ruby-lang
jfelchner has joined #ruby-lang
jfelchner has joined #ruby-lang
naz has joined #ruby-lang
naz has joined #ruby-lang
jasonw22 has joined #ruby-lang
jasonw22 has joined #ruby-lang
csprite has joined #ruby-lang
csprite has joined #ruby-lang
achiu has joined #ruby-lang
achiu has joined #ruby-lang
rippa has joined #ruby-lang
rippa has joined #ruby-lang
uniqanomaly has joined #ruby-lang
uniqanomaly has joined #ruby-lang
burns180_ has joined #ruby-lang
burns180_ has joined #ruby-lang
Azure has joined #ruby-lang
Azure has joined #ruby-lang
manojhans has joined #ruby-lang
manojhans has joined #ruby-lang
jasonw22 has joined #ruby-lang
jasonw22 has joined #ruby-lang
srbartlett has joined #ruby-lang
srbartlett has joined #ruby-lang
savage- has joined #ruby-lang
savage- has joined #ruby-lang
brianpWins has joined #ruby-lang
brianpWins has joined #ruby-lang
cyndis has joined #ruby-lang
cyndis has joined #ruby-lang
wmoxam has joined #ruby-lang
wmoxam has joined #ruby-lang
ryanf has joined #ruby-lang
ryanf has joined #ruby-lang
shyouhei_ has joined #ruby-lang
shyouhei_ has joined #ruby-lang
yumike has joined #ruby-lang
yumike has joined #ruby-lang
<nofxx>
Those sinatra apps are very handy , but cd folder... rake/start/whatever ... open firefox to type 'lo' and hope for the port there to avoid typing, sux.... anything I'm missing?
<nofxx>
just `niceapp` ... bump, ffox or whatever running the thing
<nofxx>
and it chooses a random port too, grrr nothing worst to ps aux for some app using 5678 hehe
<nofxx>
I'm thinking writing a binary for the gems, do a random for port and uses launchy
<nofxx>
bump/boom
<nanothief>
can't you use -p to choose the port?
<nofxx>
nanothief, you missed the rant idea heh
<nanothief>
I'm not exactly following the rant though :P
<nanothief>
oh you want to be able run something like "start_gem <sinatra_gem>", and it starts and opens a page in firefox?
<nofxx>
nanothief, one, < 10 char command will do it all
<nofxx>
nanothief, exactly
dfr|mac has joined #ruby-lang
dfr|mac has joined #ruby-lang
dfr|mac_ has joined #ruby-lang
dfr|mac_ has joined #ruby-lang
fayimora has joined #ruby-lang
fayimora has joined #ruby-lang
brownies has joined #ruby-lang
brownies has joined #ruby-lang
QoQOoO has joined #ruby-lang
QoQOoO has joined #ruby-lang
JohnBat26 has joined #ruby-lang
JohnBat26 has joined #ruby-lang
denysonique__ has joined #ruby-lang
denysonique__ has joined #ruby-lang
looopy has joined #ruby-lang
looopy has joined #ruby-lang
brownies has joined #ruby-lang
brownies has joined #ruby-lang
wyhaines_ has joined #ruby-lang
wyhaines_ has joined #ruby-lang
nguerin has joined #ruby-lang
nguerin has joined #ruby-lang
<nguerin>
hey, does anyone have any experience using asian characters in ruby, for example 你好
x0F__ has joined #ruby-lang
x0F__ has joined #ruby-lang
woollyams has joined #ruby-lang
woollyams has joined #ruby-lang
rohit has joined #ruby-lang
rohit has joined #ruby-lang
yxhuvud has joined #ruby-lang
yxhuvud has joined #ruby-lang
imperator has joined #ruby-lang
imperator has joined #ruby-lang
DRCALKIN has joined #ruby-lang
DRCALKIN has joined #ruby-lang
csherin has joined #ruby-lang
csherin has joined #ruby-lang
replore_ has joined #ruby-lang
replore_ has joined #ruby-lang
bryancp has joined #ruby-lang
bryancp has joined #ruby-lang
genivf has joined #ruby-lang
genivf has joined #ruby-lang
|Vargas| has joined #ruby-lang
|Vargas| has joined #ruby-lang
Stereokitsune has joined #ruby-lang
Stereokitsune has joined #ruby-lang
twelvechairs has joined #ruby-lang
twelvechairs has joined #ruby-lang
lightcap has joined #ruby-lang
lightcap has joined #ruby-lang
<twelvechairs>
anyone know how to parse a poorly-formatted RSS feed?
Banistergalaxy has joined #ruby-lang
Banistergalaxy has joined #ruby-lang
Banistergalaxy has joined #ruby-lang
Banistergalaxy has joined #ruby-lang
Stereokitsune has joined #ruby-lang
Stereokitsune has joined #ruby-lang
toretore has joined #ruby-lang
toretore has joined #ruby-lang
mytrile has joined #ruby-lang
mytrile has joined #ruby-lang
QoQOoO has joined #ruby-lang
QoQOoO has joined #ruby-lang
<rippa>
format it right
frangiz has joined #ruby-lang
frangiz has joined #ruby-lang
<Jarred>
How do I dereference an object manually?
daglees has joined #ruby-lang
daglees has joined #ruby-lang
<rippa>
explain
<Jarred>
wait
<Jarred>
I'm probably doing this wrong
<Jarred>
I'll explain
<Jarred>
This is for a state machine. I store state changes and "why" in the database. Its an alarm. It has many sensor states and resident states (home or not)
<Jarred>
But the actual state machine part -- the part that decides what state it should be in
<Jarred>
that's within the AlarmState modle
<Jarred>
*model
<Jarred>
but that should probably be in the Alarm model
<h4y4shi_>
Does pushing add to the front or the end of an array?
<bnagy>
'front'
<h4y4shi_>
Thanks
<bnagy>
right, -1 etc
<bnagy>
I guess it depends on how you visualise stuff :/
<h4y4shi_>
so is the front the -1 value or the 0 value?
<bnagy>
well if you're using it as a stack then the front is the -1 side :)
<Silex>
for me front on an array is 0
<Silex>
so push adds to the end
<Silex>
:)
<bnagy>
well I can't help it if your brain is broken :P
pp01bit has joined #ruby-lang
pp01bit has joined #ruby-lang
<Silex>
bnagy: so #shift takes from the "back" for you?
<h4y4shi_>
okay thanks lol, is pop adding to the 0 value?
<bnagy>
no pop pops
<bnagy>
['stackbottom'].push(1).pop => 1
<Silex>
[1,2].push(3) == [1,2,3]
<bnagy>
Silex: yes, push / shift is the ring buffer pattern
gasbakid has joined #ruby-lang
gasbakid has joined #ruby-lang
<Silex>
fwiw, in c++ push is named push_back :)
<Silex>
but I guess it's a matter of how you see it
<Silex>
I'm fairly certain most users see index 0 as the front and index -1 as the back
<bnagy>
yes, correctly or otherwise
<Silex>
bnagy: front somewhat indicates "first" to me
<Silex>
and back somewhat indicates "last"
<bnagy>
Silex: yeah and when you push onto a stack, that's now the first value
<Silex>
but an array is not a stack
<bnagy>
it is if you're using #push
<Silex>
for an array, push adds to the end of the array
<bnagy>
ok well you can be wrong on your own time
<bnagy>
I'ma drink beer
<Silex>
for a stack you're right
<Silex>
but he asked for an array
<hagabaka>
is it expected that if I open pry in a block, I can't access the block arguments?
<Banistergalaxy>
hagabaka: gist code
<Banistergalaxy>
hagabaka: And cann you move to #ruby ? I'm on phone here:)
<bnagy>
SPLITTER
<h4y4shi_>
I have a problem with ruby, I dont want it to factor in my remainder. I want it to always have the answer be a multiple of 40. However I get things that arent multiples of 40. I assume that it is giving me the answer with a decimal. Could someone help me make this always factor in a multiple of 40. @x_tile = (mouse_x / 40) * 40
<bnagy>
h4y4shi_: if mouse_x is a float it will stay a float until you #round #floor #ceil it or something
<h4y4shi_>
Oh yeah thank you bnagy
<bnagy>
it might still be tricky, floats are awkward :(
<h4y4shi_>
What if I turn it into an int?
<bnagy>
what do you want? A range from 0..40 ?
<h4y4shi_>
no I want it to be 0 or a multiple of 40 up to 640
<h4y4shi_>
but I have the up to 640 part already figured out
<bnagy>
(16 * float).round * 40 ?
lbrent has joined #ruby-lang
lbrent has joined #ruby-lang
<canton7>
(mouse_x.floor / 40) * 40 ?
francisfish has joined #ruby-lang
francisfish has joined #ruby-lang
<h4y4shi_>
Thank you from the bottom of my heart. I have been trying to get this to work for over a week
<h4y4shi_>
I am so happy!
<bnagy>
np
yibe has joined #ruby-lang
yibe has joined #ruby-lang
rolfb has joined #ruby-lang
rolfb has joined #ruby-lang
dhruvasagar has joined #ruby-lang
dhruvasagar has joined #ruby-lang
vmoravec has joined #ruby-lang
vmoravec has joined #ruby-lang
Jay_Levitt has joined #ruby-lang
Jay_Levitt has joined #ruby-lang
takaokouji has joined #ruby-lang
takaokouji has joined #ruby-lang
jasiek has joined #ruby-lang
jasiek has joined #ruby-lang
Indian has joined #ruby-lang
Indian has joined #ruby-lang
vmoravec has joined #ruby-lang
vmoravec has joined #ruby-lang
dhruvasagar has joined #ruby-lang
dhruvasagar has joined #ruby-lang
spuk has joined #ruby-lang
spuk has joined #ruby-lang
brushbox has joined #ruby-lang
brushbox has joined #ruby-lang
Arnvald has joined #ruby-lang
Arnvald has joined #ruby-lang
vmoravec has joined #ruby-lang
vmoravec has joined #ruby-lang
kek1 has joined #ruby-lang
kek1 has joined #ruby-lang
m3nd3s has joined #ruby-lang
m3nd3s has joined #ruby-lang
publicvoid_ has joined #ruby-lang
publicvoid_ has joined #ruby-lang
rohit has joined #ruby-lang
rohit has joined #ruby-lang
bosie has joined #ruby-lang
bosie has joined #ruby-lang
dhruvasagar has joined #ruby-lang
dhruvasagar has joined #ruby-lang
gasbakid has joined #ruby-lang
gasbakid has joined #ruby-lang
gianlucadv has joined #ruby-lang
gianlucadv has joined #ruby-lang
Joeysomo has joined #ruby-lang
Joeysomo has joined #ruby-lang
Joeysomo has joined #ruby-lang
Joeysomo has joined #ruby-lang
Azure has joined #ruby-lang
Azure has joined #ruby-lang
x0F__ has joined #ruby-lang
x0F__ has joined #ruby-lang
gianlucadv has joined #ruby-lang
gianlucadv has joined #ruby-lang
thone has joined #ruby-lang
thone has joined #ruby-lang
malev has joined #ruby-lang
malev has joined #ruby-lang
ovnimancer has quit [#ruby-lang]
ovnimancer has quit [#ruby-lang]
m3nd3s_ has joined #ruby-lang
m3nd3s_ has joined #ruby-lang
KU0N has joined #ruby-lang
KU0N has joined #ruby-lang
malev has joined #ruby-lang
malev has joined #ruby-lang
sandbags has joined #ruby-lang
sandbags has joined #ruby-lang
Banistergalaxy has joined #ruby-lang
Banistergalaxy has joined #ruby-lang
<h4y4shi_>
My array is filled with objects, and each object has a method. The method is called under_point?. It tests if the image is under point by the mouse. I want to write an if statement that tests if any of the objects in the array are under point. I Just dont know how to call a method for every object in an array. This is hard because I keep pushing more objects onto the array.
<andrewvos>
array.select($:.under_point?)
<andrewvos>
h4y4shi_: That might work ^
<andrewvos>
In ruby 1.9
<h4y4shi_>
could you explain the array.select part
<andrewvos>
h4y4shi_: It selects any item that returns true in the block
<judofyr>
andrewvos: huh? are you sure you don't mean select(&:under_point?) ?
<andrewvos>
judofyr: Probably :)
<andrewvos>
h4y4shi_: Another way to write that is array.select {|d| d.under_point?}
<andrewvos>
h4y4shi_: But because under_point? (seems to) doesn't take any parameters, you can use the shortened syntax
vdrab has joined #ruby-lang
vdrab has joined #ruby-lang
<judofyr>
h4y4shi_: use #any?: [2, 4, 8].any? { |x| x == 2 } # => true
<h4y4shi_>
For both of the solutions it says that under_point? is an undefined method. My array doesnt have any methods itself but the objects inside each have their own method.
<judofyr>
h4y4shi_: hm. seems like you have nested arrays then
Indian has quit [#ruby-lang]
Indian has quit [#ruby-lang]
takaokouji has joined #ruby-lang
takaokouji has joined #ruby-lang
<h4y4shi_>
Okay thanks I remember something about that. I will look into that thanks
coreydaley has joined #ruby-lang
coreydaley has joined #ruby-lang
shtirlic has joined #ruby-lang
shtirlic has joined #ruby-lang
QaDeS has joined #ruby-lang
QaDeS has joined #ruby-lang
<andrewvos>
h4y4shi_: He means you have an array that contains arrays inside it
<andrewvos>
h4y4shi_: Or maybe you just have some objects in there that aren't your type
<andrewvos>
h4y4shi_: Maybe you put nil in there at some point... What is the actual error?
<h4y4shi_>
OK one second
<h4y4shi_>
main.rb:34:in `update': undefined method `under_point?' for #<Array:0x45b3d0> (NoMethodError) from main.rb:68:in `<main>'
<rue>
[].under_point?
<bnagy>
yeah your arrays are nested
<andrewvos>
h4y4shi_: Oh yeah, judofyr guessed right
<bnagy>
.map(&:flatten)
<bnagy>
or whatever
<bnagy>
I'm quite drunk
<andrewvos>
bnagy: But it's only 1pm!
<h4y4shi_>
nice I tried er guotou yesterday have you ever had it?
<bnagy>
2012 heer
<andrewvos>
2011 here
<bnagy>
lol I mean Wed Feb 29 20:12:31 ICT 2012
<tobiasvl>
A DAY THAT DOESN'T EXIST
<tobiasvl>
help
<h4y4shi_>
if i push to an array does it create a new array inside the old array or does it add to the currently existing array? I think that might be my problem.
<bnagy>
h4y4shi_: I can't parse that as chinese.. is that baijo?
<judofyr>
h4y4shi_: a = [1, 2]; a.push([3, 4]); a => [1, 2, [3, 4]]
<judofyr>
h4y4shi_: a = [1, 2]; a.concat([3, 4]); a => [1, 2, 3, 4]
<bnagy>
judofyr: ha! I never knew that. Thanks :)
<tobiasvl>
[1, 2] + [3, 4] => [1, 2, 3, 4]
<bnagy>
it's like push *other_ary but working
<tobiasvl>
+ is cooler than concat ;)
<judofyr>
tobiasvl: that creates a new array
<tobiasvl>
true
<tobiasvl>
+=
<judofyr>
yeah
<tobiasvl>
(and << is better than push)
<h4y4shi_>
bnagy: I dont know what you mean about parsing chinese or baijo. But if you google er guotou then youll find a wiki article on it.
<bnagy>
guotou is a kind of baijo,is what I was asking :)
<h4y4shi_>
oh, well I have to go to work soon so bye and thanks for the help.
<bnagy>
and yeah, looks like
<bnagy>
tobiasvl: I thought they were alises?
<bnagy>
<< and push
<tobiasvl>
oh, probably. i just mean "better" in terms of readability :)
mark_locklear has joined #ruby-lang
mark_locklear has joined #ruby-lang
<bnagy>
aha
<bnagy>
I always use push when I am going to use the array as a stack or buffer, and << when I am using it as a collection / linked list etc
<bnagy>
which harks back a bit to the boring discussion earlier
<manveru>
IBM866... i thought that's OS/2 and MS-DOS?
<manveru>
oh, cmd behaves like DOS, doesn't it
dhruvasagar has joined #ruby-lang
dhruvasagar has joined #ruby-lang
<Luam>
:)) tnx for help
<manveru>
judofyr: if you set the default_external, $stdout.default_external will use it if it's nil
wmoxam has joined #ruby-lang
wmoxam has joined #ruby-lang
<judofyr>
manveru: but doesn't that also affect outputted files?
<manveru>
sure does
<manveru>
just like LC_CTYPE
tekin has joined #ruby-lang
tekin has joined #ruby-lang
flak has joined #ruby-lang
flak has joined #ruby-lang
<Spooner>
Can anyone recommend a good, ruby-friendly, online collaborative code editor thingie please?
<manveru>
uhm
<outoftime>
ssh + gnu screen : )
<manveru>
tmux + ssh + vim :)
* Spooner
rolls his eyes.
<judofyr>
car
<manveru>
cdr
<judofyr>
cons
<manveru>
:P
<judofyr>
:)
<vereteran>
are there any asynchronous (a-la node.js) frameworks for ruby? i need to process images uploaded by users and i would like to avoid blocking caused by actual image processing in sinatra / rails controller. also because i don't want to set up some queues, separate apps or similar SOA solutions
<Guest13404>
eventmachine
<manveru>
vereteran: jruby
<darix>
vereteran: paperclip and others support to put the actual processing to a background queue handler
<vereteran>
Guest13404, event machine from what i understand is not a web server solution and i'll have to implement lots of things by myself
<outoftime>
vereteran: cramp
<vereteran>
darix, as i've told i don't want to add queues
<manveru>
Spooner: well, i know some, but they're rather meh and ruby-neutral, but online collaborative :)
<vereteran>
outoftime, seen it and goliath, both look really raw. even examples with templates didn't work =\
rippa has joined #ruby-lang
rippa has joined #ruby-lang
<darix>
why simple if it can also work more complex and complicated :)
<outoftime>
vereteran: never tried it, it just looks cool
<vereteran>
only looks
<Spooner>
manveru: Yeah, I have just been using Etherpad, but it doesn't know Ruby and Amy, which is a bit meh.
<outoftime>
vereteran: there's also an async sinatra add-on. but to be honest, unless the user is blocking on the upload request to get the processed image, I have to agree with others' suggestions that a background queue would be more appropriate.
<judofyr>
vereteran: I'm actually working on some async web stuff in Ruby, but I'm far from done :(
<vereteran>
outoftime, problem is it'll add complexity: i should return some token, then provide polling mechanism and content delivery after its done
<outoftime>
judofyr: what are you up to? I played around with the idea of a Rack-based approach where the only difference is #call yields a result instead of returning it. got something basic working wrapped by EM.
<vereteran>
judofyr, just a curiousity: did you end up with own solution or something existing?
<judofyr>
vereteran: nginx has a plugin for handling big uploads
<outoftime>
vereteran: with resque-status that's pretty easy.
<judofyr>
vereteran: oh, I mean, an async web framework :)
<vereteran>
judofyr, upload itself is not a problem, problems start in thumbnail generation, applying effects to images, etc...
<judofyr>
outoftime: HTTP/1.1 server+client; WebSocket server+client. no dependencies by default (a simple even-loop written with IO.select), but you can "upgrade" it to use EM or libuv or whatever. that's the plan at least :)
<judofyr>
outoftime: fiber-based
<Spooner>
frem: good to know, but I wanted something sort of now :)
<outoftime>
judofyr: interesting. I'd love to show you what I was working on but it's on my home machine and I didn't push it up to GH yet : \
andrewhl has joined #ruby-lang
andrewhl has joined #ruby-lang
<outoftime>
judofyr: no reason the rack-that-yields approach has to use EM, of course.
<judofyr>
outoftime: I'm specifically *not* designing my stuff around any spec. I'd rather not be limited by some silly old ideas :)
<outoftime>
judofyr: ten four
jeffmoss has joined #ruby-lang
jeffmoss has joined #ruby-lang
divoxx has joined #ruby-lang
divoxx has joined #ruby-lang
<judofyr>
outoftime: I've been talking a lot about it lately, so hopefully that will push me into finishing it :)
<outoftime>
judofyr: would definitely be interested to see it when you're done
<judofyr>
I think there's a wide gap when it comes to async stuff in Ruby
gregf has joined #ruby-lang
gregf has joined #ruby-lang
<outoftime>
agreed. it's a really good language for it, actually, at least as good as JS, but the tools haven't caught up to node
<judofyr>
outoftime: email address? I can notify you when I publish it!
Jan_ has joined #ruby-lang
Jan_ has joined #ruby-lang
Heimidal has joined #ruby-lang
Heimidal has joined #ruby-lang
<frem>
outoftime: or twisted. :(
savage- has joined #ruby-lang
savage- has joined #ruby-lang
looopy has joined #ruby-lang
looopy has joined #ruby-lang
oilpastels has joined #ruby-lang
oilpastels has joined #ruby-lang
cjs226 has joined #ruby-lang
cjs226 has joined #ruby-lang
kyrylo has joined #ruby-lang
kyrylo has joined #ruby-lang
jasonw22 has joined #ruby-lang
jasonw22 has joined #ruby-lang
jasonw22 has joined #ruby-lang
jasonw22 has joined #ruby-lang
srbaker has joined #ruby-lang
srbaker has joined #ruby-lang
dejongge has joined #ruby-lang
dejongge has joined #ruby-lang
sirfilip has joined #ruby-lang
sirfilip has joined #ruby-lang
bcardarella has joined #ruby-lang
bcardarella has joined #ruby-lang
havenn has joined #ruby-lang
havenn has joined #ruby-lang
mytrile has joined #ruby-lang
mytrile has joined #ruby-lang
<bcardarella>
With a gsub and passing a block it seems that I no longer have access to any of the groups I'm matching via \1, \2, etc... is there a way to access those groups in the context of a block in gsub or do I have to run another regex on the match itself?
rippa has joined #ruby-lang
rippa has joined #ruby-lang
m3nd3s has joined #ruby-lang
m3nd3s has joined #ruby-lang
jasonw22 has joined #ruby-lang
jasonw22 has joined #ruby-lang
<canton7>
bcardarella, I found you can use $1, but it feels a little dirty
malev_ has joined #ruby-lang
malev_ has joined #ruby-lang
Heimidal has joined #ruby-lang
Heimidal has joined #ruby-lang
looopy has joined #ruby-lang
looopy has joined #ruby-lang
Heimidal has joined #ruby-lang
Heimidal has joined #ruby-lang
Heimidal has joined #ruby-lang
Heimidal has joined #ruby-lang
snafoo has joined #ruby-lang
snafoo has joined #ruby-lang
bglusman has joined #ruby-lang
bglusman has joined #ruby-lang
savage- has joined #ruby-lang
savage- has joined #ruby-lang
erics has joined #ruby-lang
erics has joined #ruby-lang
malev has joined #ruby-lang
malev has joined #ruby-lang
rippa has joined #ruby-lang
rippa has joined #ruby-lang
virunga has joined #ruby-lang
virunga has joined #ruby-lang
l0st1 has joined #ruby-lang
l0st1 has joined #ruby-lang
rayners has joined #ruby-lang
rayners has joined #ruby-lang
looopy has joined #ruby-lang
looopy has joined #ruby-lang
tekin has joined #ruby-lang
tekin has joined #ruby-lang
zerokarmaleft has joined #ruby-lang
zerokarmaleft has joined #ruby-lang
GiambalaGiambala has joined #ruby-lang
GiambalaGiambala has joined #ruby-lang
gianlucadv has joined #ruby-lang
gianlucadv has joined #ruby-lang
ilyam has joined #ruby-lang
ilyam has joined #ruby-lang
butchanton has joined #ruby-lang
butchanton has joined #ruby-lang
gasbakid__ has joined #ruby-lang
gasbakid__ has joined #ruby-lang
pemeon has joined #ruby-lang
pemeon has joined #ruby-lang
tekin has joined #ruby-lang
tekin has joined #ruby-lang
QaDeS has joined #ruby-lang
QaDeS has joined #ruby-lang
tbuehlmann has joined #ruby-lang
tbuehlmann has joined #ruby-lang
* imperator
releases net-ping 1.5.3 into the wild
m3nd3s_ has joined #ruby-lang
m3nd3s_ has joined #ruby-lang
twittard has joined #ruby-lang
twittard has joined #ruby-lang
m3nd3s has joined #ruby-lang
m3nd3s has joined #ruby-lang
flak has joined #ruby-lang
flak has joined #ruby-lang
achiu has joined #ruby-lang
achiu has joined #ruby-lang
twittard_ has joined #ruby-lang
twittard_ has joined #ruby-lang
H2H has joined #ruby-lang
H2H has joined #ruby-lang
virunga has joined #ruby-lang
virunga has joined #ruby-lang
Sailias|work has joined #ruby-lang
Sailias|work has joined #ruby-lang
bagratte has joined #ruby-lang
bagratte has joined #ruby-lang
hagabaka has joined #ruby-lang
hagabaka has joined #ruby-lang
hagabaka has joined #ruby-lang
hagabaka has joined #ruby-lang
gasbakid has joined #ruby-lang
gasbakid has joined #ruby-lang
macmartine has joined #ruby-lang
macmartine has joined #ruby-lang
rippa has joined #ruby-lang
rippa has joined #ruby-lang
andkerosine has joined #ruby-lang
andkerosine has joined #ruby-lang
rollandWebmag has joined #ruby-lang
rollandWebmag has joined #ruby-lang
rollandWebmag has quit [#ruby-lang]
rollandWebmag has quit [#ruby-lang]
brianpWins has joined #ruby-lang
brianpWins has joined #ruby-lang
westernanalog has joined #ruby-lang
westernanalog has joined #ruby-lang
* imperator
releases win32-taskscheduler 0.2.2 into the wild
GiambalaGiambala has joined #ruby-lang
GiambalaGiambala has joined #ruby-lang
ascarter has joined #ruby-lang
ascarter has joined #ruby-lang
ylluminate has joined #ruby-lang
ylluminate has joined #ruby-lang
ryanf has joined #ruby-lang
ryanf has joined #ruby-lang
rollandWebmag has joined #ruby-lang
rollandWebmag has joined #ruby-lang
rollandWebmag has quit [#ruby-lang]
rollandWebmag has quit [#ruby-lang]
achiu has joined #ruby-lang
achiu has joined #ruby-lang
erpuds has joined #ruby-lang
erpuds has joined #ruby-lang
looopy has joined #ruby-lang
looopy has joined #ruby-lang
solars has joined #ruby-lang
solars has joined #ruby-lang
lsegal has joined #ruby-lang
lsegal has joined #ruby-lang
<erikh>
guys, I'm hanging out in other programming channels more regularly now... I'm just saying because it needs to be said
<erikh>
I love you guys
<deryl>
no you don't or you'd stay just with us. boo hoo!
<deryl>
:)
<erikh>
I'm a polyglot, what can I say
<deryl>
hehe
<erikh>
I mean, by comparison this channel is pretty lax on rules, doesn't have an overwhelming amount of moist robots with anal retention issues, and generally just serves the purpose of answering the fucking question and being a not-hateful place to hang out
apeiros_ has joined #ruby-lang
apeiros_ has joined #ruby-lang
csherin has joined #ruby-lang
csherin has joined #ruby-lang
bcardarella has quit [#ruby-lang]
bcardarella has quit [#ruby-lang]
<manveru>
erikh: looks like we're not using the same languages then :)
ilyam has joined #ruby-lang
ilyam has joined #ruby-lang
<erikh>
perhaps not. what are you learning these days?
<erikh>
I'm always excited to see what others are learning.
<manveru>
i'm just practicing go again
<erikh>
ah, I haven't even begun to crack that one open. Learning python and improving my C here.
<manveru>
i've got this really annoying itch i want to scratch for two years now :)
<bougyman>
i've been mires in C and Perl
<bougyman>
not on purpose, mind you.
<erikh>
I can help you with the latter if you need someone to bug
gregf has joined #ruby-lang
gregf has joined #ruby-lang
<bougyman>
manveru: go have good webgl interface?
josh9 has joined #ruby-lang
josh9 has joined #ruby-lang
<bougyman>
erikh: nah, it's not lack of knowledge in perl, just hate.
<manveru>
bougyman: webgl is js
<erikh>
ah
<bougyman>
and C is well... every app is different.
<erikh>
right
<bougyman>
manveru: just js?
<manveru>
well, or NaCl
<manveru>
which also works with go, but that's normal gl, not webgl
<bougyman>
i thought go might have some of the urweb type stuff that does js as well.
<bougyman>
i've never delved into it except a few tutorials.
<manveru>
nah, go is just a mix of erlang and c
<bougyman>
erikh: if you want a nice mindfuck check our urweb.
<manveru>
bougyman: there are a couple of other candidates now
<bougyman>
they push an SML interpreter in javascript to the browser so the server and client code is the same
<bougyman>
i still like the idea, i don't like the idiom of ML programs to be so callback-heavy.
<manveru>
bougyman: you ever looked at opa?
mytrile has joined #ruby-lang
mytrile has joined #ruby-lang
<bougyman>
yeah, you showed it to me
<bougyman>
i didn't do anything with it, though.
ttilley has joined #ruby-lang
ttilley has joined #ruby-lang
<manveru>
"A large class of programming errors that goes unnoticed in Node.js and requires heavy testing and debugging is automatically detected in Opa and reported with helpful (most of the time) error messages."
<manveru>
bad thing about opa is that it's got its own database
<manveru>
and only mongodb as alternative
<manveru>
though it has easy ocaml bindings, so you could use a pg list from there
_whitelogger1 has joined #ruby-lang
<manveru>
s/list/lib/
<bougyman>
i've been meaning to get back to hunchentoot.
<Tasser>
manveru, opa?
westernanalog has joined #ruby-lang
eggman2001 has joined #ruby-lang
<manveru>
Tasser: opapa
<Tasser>
huh?
<rippa>
oraoraora
<manveru>
Tasser: what's the question?
<eggman2001>
hello, what method can I use if I want to put the first several (say 4) items of an array into a new array?
<andkerosine>
Not sure if that's what eggman wanted or not.
<manveru>
ah, take doesn't?
<manveru>
guess i'm too used to old[0...4]
<manveru>
guess take works better with enums
<eggman2001>
new_array = old_array[0 .. 3] is perfect for me, and also easy to remember :-)
<andkerosine>
But #take is more semantic.
<Tasser>
manveru, oh, fancy stuff
<eggman2001>
andkerosine: not sure what you mean
<manveru>
andkerosine: you mean you can misinterpret what it means easier?
<andkerosine>
Haha.
<andkerosine>
More sensible when interpreted correctly.
<andkerosine>
You want to /take/ four elements, so #take them. : )
havenn has joined #ruby-lang
<manveru>
from which side?
<manveru>
destructive?
<whatasunnyday>
I've got a quick nokogiri question if anyone has a second, I'm searching a doc say doc = Nokogiri::HTML(open('http://www.google.com/search?q=tenderlove';)), doc.search("//a[@href]").each do |a| puts a #Gives me full anchor tag with href and anchor text, a['href'] #gives href url, how do I just get the text?
<manveru>
whatasunnyday: a.text
shtirlic has joined #ruby-lang
justinmcp has joined #ruby-lang
<imperator>
erikh, haven't found a channel yet better than this one :)
gix has joined #ruby-lang
jamw has joined #ruby-lang
Carnage\ has joined #ruby-lang
Skif has joined #ruby-lang
twittard has joined #ruby-lang
Sailias|work has joined #ruby-lang
brownies has joined #ruby-lang
cyri_ has joined #ruby-lang
curtism has joined #ruby-lang
jfelchner has joined #ruby-lang
urbanmonk has joined #ruby-lang
adambeynon has joined #ruby-lang
shtirlic has joined #ruby-lang
pandora17 has joined #ruby-lang
macmartine has joined #ruby-lang
daglees has joined #ruby-lang
daglees has joined #ruby-lang
havenn has joined #ruby-lang
daglees has joined #ruby-lang
<kith>
hmmm i copy pasted the cinch samples for plugins but it doesnt reply :S
<andrewvos>
kith: Should probably be in the docs somewhere highly visible cc: dominikh
<andrewvos>
kith: Or better yet, do a pull request
<kith>
whats a pull request?
<kith>
to remove that "feature"?
<andrewvos>
kith: Fix the readme, in code then submit a patch on github
<andrewvos>
s/\,//
<workmad3>
kith: if you didn't use the !, then the bot would respond to the command every time someone came into the channel and said 'hello'
<kith>
workmad3: yeah
<kith>
thats my intention
<workmad3>
kith: is the bot noisy when you say hello?
<kith>
i thought its more "progammer" friendly when the "!" is actually required in code
<workmad3>
kith: because I'm not sure how appreciative people will be if they get blasted with output from a bot everytime they join a channel and say hello :)
<kith>
workmad3: i'm just toying around
<kith>
workmad3: our current bot doesnt use "trigger symbols"