<jMCg>
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not parse for environment production: Syntax error at ','; expected '}' at /etc/puppet/manifests/profiles.pp:125 on node test-lb01.esat
<canton7>
I don't know puppet config at all... are you allowed custom objects?
havenwood has joined #ruby-lang
<Boohbah>
hi, using nokogiri to parse a web page, how do i remove text nodes containing parenthesis, and all nodes between them, but keep a href nodes containing parenthesis?
<Boohbah>
i'm removing these other nodes like this:
bin7me|2 has quit [Read error: Connection reset by peer]
<Boohbah>
the problem with my current approach is that i'm removing parens inside hrefs when i don't want to
<Boohbah>
and there must be a better way than converting the Nokogiri::XML::Element to text and back again
Gaelan has quit [Remote host closed the connection]
Gaelan has joined #ruby-lang
<andrewvos>
Boohbah: if node.tag == "a"
Gaelan has quit [Remote host closed the connection]
Gaelan has joined #ruby-lang
<andrewvos>
(I have no idea if the tag method exists)
<canton7>
node.name - close enough
lcdhoffman has quit [Quit: lcdhoffman]
<zenspider>
mistym: why?
lcdhoffman has joined #ruby-lang
<mistym>
zenspider: It's the Ruby that comes with OS X Tiger, and I have a fork of Homebrew that runs on Tiger/PPC Macs.
<zenspider>
hah
<zenspider>
nice
ykk has quit [Read error: Connection reset by peer]
lcdhoffman has quit [Client Quit]
ykk has joined #ruby-lang
stonerfish has joined #ruby-lang
soknee has joined #ruby-lang
ndch has quit [Remote host closed the connection]
lsegal has joined #ruby-lang
<amerine>
heh, someone can't let go of their 12" Powerbook ;-)
Gaelan has quit [Remote host closed the connection]
<zenspider>
dude... that's STILL in my top 3 laptops of all time list
<zenspider>
can't hold a candle to my current 13" air... but that's really about the SSD more than anything
soknee has quit [Client Quit]
<zenspider>
tho the performance doubled too over the previous air w/ ssd
<mistym>
Some interesting stuff in there, like Pathname's hilariously bad symlink handling
Gaelan has joined #ruby-lang
<mistym>
amerine: I <3 my 15" PowerBook G4! Still a great machine.
<lianj>
loved my 12" powerbook
<lianj>
sold it after 2-3 year for only 50 euro less than i bought it for
rwk1 has joined #ruby-lang
<srbaker>
zenspider: as far as i know, my dad still uses your old PowerBook 12" that i got from you
stonerfish has quit [Quit: Leaving.]
<srbaker>
he definitely did a year ago
<amerine>
I gave my 12" to my youngest sister when the first 15" MBPs shipped. Last I heard she still had it.
<srbaker>
great machine.
<amerine>
It's odd how quickly we get accustomed to the speed of newer machines. Going back and using older boxes is an exercise in annoyance.
<lianj>
at work i used to put the 12" into target mode (firewire) and use its home folder on their G5
<amerine>
Ahh, good old target disc mode. I haven't used that in forever.
<amerine>
Fun fact: You can also boot xserv's into target disc mode and recover data when the OS wont' boot ;-)
<jMCg>
zenspider: interesting experience: Once you.. no: Once I stopped trying to coerce Perl-like datastructures into puppet, puppet, being all Ruby, stopped being confused -- and confusing.
<amerine>
jMCg: Ahh, so you figure out 'undefined local variable or method `my'' and 'undefined local variable or method `our'' errors ;-)
<jMCg>
>_o
<jMCg>
amerine: I think I'm above that level..
<amerine>
jMCg: Of course, of course I was only kidding.
<jMCg>
Which reminds me, if anyone of you would like to program perl like it's 2013, not 1985, take a look at perl5i
<jMCg>
schwern who's the author, gives a 20min talk in blazing speed at auconf (if reading the readme is too much of a hassle ;)
djwonk has joined #ruby-lang
<zenspider>
srbaker: hah
<zenspider>
jMCg: yay
<jMCg>
amerine: sorry.. sarcastometer died about three months ago, and the replace won't be delivered until after I can afford vacation.
<jMCg>
(I can't even tell if I'm being sarcastic myself anymore :C
<amerine>
jMCg: Yeah, those meters get used pretty hard on the tubes.
soknee has joined #ruby-lang
spuk has quit [Ping timeout: 264 seconds]
spuk has joined #ruby-lang
stevechiagozie has joined #ruby-lang
emocakes has quit [Quit: emocakes]
agarie has quit [Ping timeout: 260 seconds]
soknee has quit [Client Quit]
fosky has joined #ruby-lang
tylersmith has quit [Quit: tylersmith]
emocakes has joined #ruby-lang
ykk has quit [Read error: Connection reset by peer]
MehLaptop has joined #ruby-lang
ykk has joined #ruby-lang
emocakes has quit [Client Quit]
Gaelan has quit [Remote host closed the connection]
Gaelan has joined #ruby-lang
dhruvasagar has joined #ruby-lang
pr0ton has quit [Ping timeout: 255 seconds]
soknee has joined #ruby-lang
pr0ton has joined #ruby-lang
ndch has joined #ruby-lang
soknee has quit [Quit: Leaving.]
Domon has joined #ruby-lang
XxBlakeFailxX has quit [Read error: Connection reset by peer]
XxBlakeFailxX has joined #ruby-lang
pr0ton has quit [Quit: pr0ton]
skade has joined #ruby-lang
MehLaptop has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
tcopp has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
yfeldblum has quit [Ping timeout: 255 seconds]
agarie has joined #ruby-lang
mistym has quit [Remote host closed the connection]
rwk1 has quit [Remote host closed the connection]
agarie has quit [Remote host closed the connection]
agarie has joined #ruby-lang
agarie has quit [Ping timeout: 260 seconds]
soknee has joined #ruby-lang
tylersmith has joined #ruby-lang
bzalasky has joined #ruby-lang
agarie has joined #ruby-lang
soknee has quit [Quit: Leaving.]
tylersmith has quit [Ping timeout: 255 seconds]
<charliesome>
whitequark: yo
havenwood has quit [Remote host closed the connection]
soknee has joined #ruby-lang
soknee has quit [Client Quit]
srbaker has quit [Quit: Computer has gone to sleep.]
tsion has quit [Quit: Leaving]
chrismar035 has joined #ruby-lang
io_syl has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby-lang
rwk1 has joined #ruby-lang
rwk1 has quit [Ping timeout: 260 seconds]
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby-lang
agarie has quit [Remote host closed the connection]
agarie has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
skade has quit [Ping timeout: 264 seconds]
glebm has quit [Quit: Computer has gone to sleep.]
agarie has quit [Ping timeout: 264 seconds]
lcdhoffman has joined #ruby-lang
lcdhoffman has quit [Client Quit]
agarie has joined #ruby-lang
hakunin_ is now known as hakunin
bzalasky has quit [Remote host closed the connection]
wmoxam has joined #ruby-lang
Gaelan has quit [Remote host closed the connection]
rwk1 has joined #ruby-lang
rwk1 has quit [Ping timeout: 255 seconds]
Nisstyre-laptop has joined #ruby-lang
wallclockbuilder has joined #ruby-lang
wmoxam has quit [Ping timeout: 264 seconds]
security has joined #ruby-lang
megha has quit [Ping timeout: 248 seconds]
sandbags has quit [Remote host closed the connection]
chrismar035 has quit [Ping timeout: 248 seconds]
Averna has joined #ruby-lang
Gaelan has joined #ruby-lang
<soahccc>
What is a good solution for fast recurring tasks? They should run as quickly as possible (so I guess a preloaded env). Is Sidekiq the way to go? Or should I go with a threaded self crafted handler process?
<bnagy>
depends?
io_syl has joined #ruby-lang
<soahccc>
on what exactly? I know it more of the perspective of a web application where it is goal no. 1 to save the users time but now I'm confronted with "fast as possible" execution.
ykk has quit [Remote host closed the connection]
ryanf has quit [Quit: leaving]
<soahccc>
They will contain a lot of http requests so I guess MRI's threads might be fast enough for this. wouldn't scale well though
Gaelan has quit [Remote host closed the connection]
emocakes has joined #ruby-lang
tonni has quit [Read error: Connection reset by peer]
<bnagy>
MRI threads are fine for IO bound stuff
tonni has joined #ruby-lang
<bnagy>
afaik sidekiq is basically a threaded work queue, and if you're using it for a webapp it's probably a fine choice
Gaelan has joined #ruby-lang
<soahccc>
hmm sidekiq serializes so it might need to reinitiate the env...
<drbrain>
soahccc: a) write it b) see if it is slow c) profile d) fix the slow parts
<soahccc>
drbrain: yeah so basically roll your own :)
<drbrain>
soahccc: no
<bnagy>
rolling your own threaded work queue is shitty death
<bnagy>
having done so multiple times :/
<drbrain>
soahccc: use libraries and whatnot
<soahccc>
Maybe I directly give jruby a try but I'm kinda overwhelmed with the locking thing
<bnagy>
I don't see what the interpreter really has to do with this
<drbrain>
jruby won't save you from locking
<bnagy>
if it's outgoing http requests they are going to be IO bound
<bnagy>
not that I don't love jruby, I use it on all my prod
<bnagy>
I'm more worried about the part where you think your jobs won't serialize cleanly
<bnagy>
that smells like a design problem
<soahccc>
well it's making a request and doing something with the output which itself will doing something with a database so I don't know if the IO part is the biggest part
dhruvasagar has quit [Ping timeout: 264 seconds]
<soahccc>
I don't worry about serialization in general but I can't imagine how it can run the job in the environment without loading it each time
dhruvasagar has joined #ruby-lang
<bnagy>
what 'environment' ?
<soahccc>
well gems, and all that library stuff, things you only need to load once
<bnagy>
workers are usually persistent, and they just process work units
<bnagy>
whether you fork or spin a thread, all you libs and gems etc are still loaded
<soahccc>
I think I give sidekiq a try and if I structure it well I should be able to replace the actual backend easily
Boohbah has quit [Ping timeout: 256 seconds]
Boohbah has joined #ruby-lang
Boohbah is now known as Guest91682
zerokarmaleft has joined #ruby-lang
rwk1 has joined #ruby-lang
bzalasky has joined #ruby-lang
kgrz has joined #ruby-lang
rwk1 has quit [Ping timeout: 260 seconds]
Kuukunen has quit [Ping timeout: 245 seconds]
dhruvasagar has quit [Ping timeout: 264 seconds]
Kuukunen has joined #ruby-lang
kvs has quit [Ping timeout: 256 seconds]
kvs has joined #ruby-lang
Kuukunen has quit [Ping timeout: 255 seconds]
tonni_ has joined #ruby-lang
tonni has quit [Read error: Connection reset by peer]
tonni_ has quit [Read error: Connection reset by peer]
cored has quit [Ping timeout: 256 seconds]
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
wallclockbuilder has quit [Remote host closed the connection]
maxwell has joined #ruby-lang
tomzx_mac has quit [Ping timeout: 256 seconds]
maxwell has quit [Client Quit]
brianpWins has joined #ruby-lang
agarie has quit [Remote host closed the connection]
crynix has quit [Remote host closed the connection]
maxwell has joined #ruby-lang
maxwell has quit [Quit: leaving]
emocakes has joined #ruby-lang
stevechiagozie has quit [Quit: Computer has gone to sleep.]
bzalasky has quit [Remote host closed the connection]
r0bgleeson has quit [Ping timeout: 252 seconds]
agarie has joined #ruby-lang
rippa has joined #ruby-lang
rwk1 has joined #ruby-lang
rwk1 has quit [Ping timeout: 258 seconds]
Bosox20051 has joined #ruby-lang
dkannan has joined #ruby-lang
kgrz has quit [Ping timeout: 260 seconds]
dhruvasagar has quit [Read error: Connection reset by peer]
wallclockbuilder has joined #ruby-lang
dhruvasagar has joined #ruby-lang
maxmanders has joined #ruby-lang
swav has joined #ruby-lang
Nuru has joined #ruby-lang
<Nuru>
What's the convention to avoid conflicts between names and global functions?
maxmande_ has joined #ruby-lang
fosky has quit [Remote host closed the connection]
maxmanders has quit [Ping timeout: 260 seconds]
soahccc has quit [Ping timeout: 276 seconds]
maxmande_ has quit [Quit: Computer has gone to sleep.]
kgrz has joined #ruby-lang
ezkl has joined #ruby-lang
Bosox20051 has quit [Quit: Leaving]
Mon_Ouie has joined #ruby-lang
Polish has joined #ruby-lang
agarie has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
agarie has joined #ruby-lang
ryanf has quit [Quit: leaving]
kgrz has quit [Ping timeout: 264 seconds]
Polish has quit [Quit: Leaving]
tcopp has quit [Ping timeout: 248 seconds]
kgrz has joined #ruby-lang
Wardrop has joined #ruby-lang
axcint has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
ndch has quit [Remote host closed the connection]
axcint has quit [Quit: Leaving]
kgrz has quit [Read error: Connection reset by peer]
vlad_sta_ has joined #ruby-lang
vlad_sta_ has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby-lang
Nuru has quit [Quit: Bye bye]
agarie has quit [Remote host closed the connection]
fosky has joined #ruby-lang
io_syl has quit [Quit: Computer has gone to sleep.]
brianpWins has quit [Quit: brianpWins]
yxhuvud has joined #ruby-lang
wallclockbuilder has quit [Remote host closed the connection]
chendo has joined #ruby-lang
aj_acevedo has joined #ruby-lang
solars has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 256 seconds]
dhruvasagar has joined #ruby-lang
aj_acevedo has quit [Client Quit]
hramrach has joined #ruby-lang
faces has quit [Ping timeout: 272 seconds]
lewis1711 has joined #ruby-lang
wallclockbuilder has joined #ruby-lang
fire has quit [Quit: WeeChat 0.4.0]
chendo has quit [Ping timeout: 264 seconds]
chendo has joined #ruby-lang
kgrz has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 256 seconds]
dhruvasagar has joined #ruby-lang
<lewis1711>
that feeling when you come in here to solve a problem then you solve it yourself
<injekt>
:)
<apeiros_>
that's called "thinking about your problem" :-p
alessio_rocco has joined #ruby-lang
kgrz has quit [Remote host closed the connection]
face has joined #ruby-lang
kgrz has joined #ruby-lang
<lewis1711>
you'd be surprised how long I can spend thinking about a stupid problem without solving it
<apeiros_>
just pretend you explain it to somebody
<apeiros_>
it's surprising how people can think about a problem without actually thinking about it :) (no kidding)
<injekt>
I think about thinking about it whilst im trying to think about it and then I have a headache
<lewis1711>
yes I often end up figuring something out when I try and put it in a format that can help other people understand the problem. tends to bring out false assumptions
<apeiros_>
it also forces you to think of all parts of the problems
<apeiros_>
-s
<apeiros_>
which is often helpful
thebastl has joined #ruby-lang
thebastl has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
JohnBat26 has joined #ruby-lang
zmack has joined #ruby-lang
MaddinXx has joined #ruby-lang
<bnagy>
hey, #jruby is dead-ish, anyone care to help me speculate about what looks like a memory leak in DRb on windows under jruby?
<bnagy>
can't really test with MRI, because x64
vlad_sta_ has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
maxmanders has joined #ruby-lang
thebastl has joined #ruby-lang
techlife has quit [Ping timeout: 256 seconds]
techlife has joined #ruby-lang
soknee has joined #ruby-lang
fire has joined #ruby-lang
rippa has quit [Ping timeout: 240 seconds]
<yorickpeterse>
morning
dhruvasagar has quit [Ping timeout: 264 seconds]
dhruvasagar has joined #ruby-lang
vlad_starkov has joined #ruby-lang
vlad_st__ has joined #ruby-lang
vlad_sta_ has quit [Ping timeout: 258 seconds]
rwk1 has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 240 seconds]
vlad_st__ has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
tsion has joined #ruby-lang
<whitequark>
moo
MaddinXx has quit [Remote host closed the connection]
<bnagy>
ok, this is definitely a drb related leak. Somehow.
<whitequark>
bnagy: #jruby shouldn't be dead
<bnagy>
seems to be :) not sure it's jruby related, tbh
<bnagy>
I definitely suspect Threads, though
<bnagy>
I refactored a lot of other code to avoid killing Threads that use objects that create internal Threads
<bnagy>
but I am not all that keen to start tinkering with InvokeMethod in drb
<bnagy>
don't suppose there's any new RPC hotness that could replace DRb?
<yorickpeterse>
yet the individual files show 18 hours ago
<whitequark>
yorickpeterse: rebase.
<whitequark>
changes modtime of the file but not the commit
<whitequark>
this even kinda makes sense
<whitequark>
because you don't want to rebase an empty commit and get a commit with a different sha1
<yorickpeterse>
right
<yorickpeterse>
so I had this idea last night:
<yorickpeterse>
how about the parser itself (the bison crap) doesn't actually emit AST nodes but instead just fires events? That way you could do the AST building in pure Ruby (that's not mixed with Bison crap)
Ridders24 has joined #ruby-lang
<yorickpeterse>
(unless this is the way to do things, in that case disregard)
<yorickpeterse>
This would make it easier to maintain the AST generation part as people could contribute to it without having to know anything about the Bison syntax
<whitequark>
yorickpeterse: that is a possible approach, but wrong reason
<whitequark>
if people know nothing about the Bison syntax, they should not maintain a parse.
<whitequark>
*parser.
<Ridders24>
hows the best way to create a user input for somthing like " time + message + ID + source" each of those representing data to be output in that order?
<whitequark>
seriously, *reading* Bison stuff isn't hard. writing it is, mainly because LR(1) is kind of a puzzle
<yorickpeterse>
whitequark: correct, but I prefer to keep the .y file as sane as possible
<yorickpeterse>
There's another reason to do it in a separate bit of code (=class): makes it possible to customize it
<whitequark>
yorickpeterse: right now, it is halfway there. most of the AST-generating methods longer than a line or two are in the RubyParserExtras
Haibin has joined #ruby-lang
<yorickpeterse>
So you'd end up with something like RubyLexer, RubyParser and RubyASTBuilder
<whitequark>
yorickpeterse: why do you want to customize it?
<whitequark>
convention over configuration, dude.
<yorickpeterse>
whitequark: for example, for ruby-lint my AST nodes carry some extra methods
vlad_sta_ has joined #ruby-lang
gnufied has joined #ruby-lang
<yorickpeterse>
The traditional way of dealing with this would be to iterate over the AST and replace nodes with your own *or* monkey patch them
<whitequark>
yorickpeterse: hrm
<yorickpeterse>
It would be nicer to say "Use this class for nodes" instead
<yorickpeterse>
It's by no means a common use case, but it would be nice
glebm has joined #ruby-lang
<whitequark>
I guess you could simply subclass the Parser::Ruby and override the s() method
<whitequark>
yours is a valid use case but it should not warrant a method of changing the entire AST structure
<yorickpeterse>
hmm
tbuehlmann has joined #ruby-lang
<yorickpeterse>
subclassing the parser could also work, didn't think of that
<yorickpeterse>
but yeah, it would require something like a `create_node` method
<whitequark>
yorickpeterse: it's `s`.
<yorickpeterse>
instead of all the classes being hardcoded in each node type callback
<yorickpeterse>
whitequark: oh, that global s() method?
<yorickpeterse>
hmpf
<whitequark>
yorickpeterse: who said global? I moved it to a mixin
<yorickpeterse>
Oh nice
<whitequark>
in Furnace
<whitequark>
also I'm going to split Furnace to several gems, furnace and furnace-ast for now
<yorickpeterse>
Yes, but didn't RP have one as well? Or did you remove it?
<whitequark>
yorickpeterse: I will, together with moving it to the Furnace Sexps
<yorickpeterse>
sweet
vlad_starkov has quit [Ping timeout: 264 seconds]
Haibin has quit [Quit: leaving]
chendo has quit [Quit: Computer has gone to sleep.]
Haibin has joined #ruby-lang
<Ridders24>
hows the best way to create a user input for somthing like " time + message + ID + source" each of those representing data to be output in that order?
tomzx_mac has quit [Read error: Operation timed out]
jxpx777 has quit [Quit: Leaving...]
breakingthings has joined #ruby-lang
stevechiagozie has quit [Quit: Computer has gone to sleep.]
stevechiagozie has joined #ruby-lang
stevechiagozie has quit [Client Quit]
gnufied has quit [Quit: Leaving.]
<charliesome>
zzak: morning
<whitequark>
>> 1
jxpx777 has joined #ruby-lang
<whitequark>
charliesome: why can't you put the bot on whitequark.org?
<whitequark>
we do miss it
<charliesome>
whitequark: it's non trivial to get running
<charliesome>
the evaluator bit requires a 32 bit 2.6 kernel
<whitequark>
$ uname -a
<whitequark>
Linux fehu 3.7.10-linode49 #2 SMP Wed Feb 27 14:15:25 EST 2013 i686 GNU/Linux
<charliesome>
>2.6
<whitequark>
32-bit but 3.7.x
<whitequark>
why do you need 2.6.x? that sounds like a wtf
<charliesome>
i use a ptrace sandbox that does a lot of stuff that is very kernel version dependent
<charliesome>
i've tried it on recent stuff and it doesn't work
<charliesome>
anyway i'm still having networking lols
gnufied has joined #ruby-lang
<whitequark>
charliesome: I can get a machine on 2.6.x if that'll help you
gnufied has quit [Client Quit]
<charliesome>
it'll be back soon i promise
<whitequark>
sigh. ok...
<charliesome>
sorry :(
<charliesome>
this pains me as much as you
<charliesome>
i miss having a working server
marcostoledo has joined #ruby-lang
<zzak>
charliesome: :D
marcostoledo has quit [Client Quit]
<charliesome>
whitequark: as soon as i get permission from the owner of another vm on the same host to reboot it, i'll compare pcap dumps to see why my server's networking is so flakey
chrismar035 has joined #ruby-lang
runeb has quit [Remote host closed the connection]
rockpapergoat has joined #ruby-lang
<yorickpeterse>
charliesome: what the fuck, why?
<yorickpeterse>
oh right
mytrile has quit [Remote host closed the connection]
<charliesome>
yorickpeterse: hm?
<whitequark>
charliesome: so you own a physical host with multiple vms on it, of which not all are owned by you?
yfeldblum has quit [Ping timeout: 248 seconds]
<charliesome>
whitequark: correct
<charliesome>
i pay half, the other guy pays the other half
davejlong has joined #ruby-lang
rolfb has joined #ruby-lang
r0bgleeson has joined #ruby-lang
jMCg has joined #ruby-lang
chendo has joined #ruby-lang
wminor has joined #ruby-lang
holgerno has joined #ruby-lang
holgerno has quit [Changing host]
holgerno has joined #ruby-lang
Gaelan has joined #ruby-lang
stevechiagozie has joined #ruby-lang
<yorickpeterse>
haha, I just wrote some ugly code
<yorickpeterse>
given a list of CSS selectors, get rid of the matching lines in another file
<yorickpeterse>
fffff, of course it fucks up the CSS
<yorickpeterse>
damn it
rockpapergoat has quit [Remote host closed the connection]
davejlong has quit [Quit: Leaving.]
davejlong has joined #ruby-lang
davejlong has quit [Client Quit]
Gaelan has quit [Remote host closed the connection]
nertzy2 has quit [Ping timeout: 276 seconds]
yfeldblum has joined #ruby-lang
chendo has quit [Ping timeout: 255 seconds]
Gaelan has joined #ruby-lang
MaddinXx has quit [Remote host closed the connection]
runeb has joined #ruby-lang
kgrz has quit [Ping timeout: 256 seconds]
runeb has quit [Read error: Connection reset by peer]
Gaelan has quit [Ping timeout: 258 seconds]
noop has quit [Quit: Leaving]
kgrz has joined #ruby-lang
Rhy0lite has joined #ruby-lang
<Rhy0lite>
What is the relationship among the various CI websites for Ruby? rubyci.org, ci.rubyinstaller.org, etc.?
outoftime has joined #ruby-lang
idkazuma has joined #ruby-lang
<Rhy0lite>
Anyone who can provide information about Ruby CI systems and builtbots?
stef_204 has joined #ruby-lang
amerine has quit [Ping timeout: 256 seconds]
rockpapergoat has joined #ruby-lang
retro|cz has joined #ruby-lang
<charliesome>
whitequark: tentatively saying my network issues are resolved
<whitequark>
charliesome: awesome
<ykk>
hey can someone please explain why ruby returns 3 for 10/3
<breakingthings>
because integers
<charliesome>
ykk: integer divided by integer returns an integer answer
<breakingthings>
10/3.to_f
rippa has joined #ruby-lang
<breakingthings>
for a float answer
<apeiros_>
10.fdiv(3)
<breakingthings>
or that
<ykk>
hmm
<charliesome>
ykk: there are good arguments for whether ruby should or shouldn't have this behaviour, but this is the way it is in ruby
<ykk>
ok so i'm doing an excersise that will print if a number is divisible by 2, 3 or 5
<apeiros_>
modulo
dhruvasagar has quit [Ping timeout: 258 seconds]
<breakingthings>
puts "#{number} is divisible by 2" if number % 2 == 0
<ykk>
oh it's the % operator
<apeiros_>
yes, % is modulo
<ykk>
oh
<ykk>
modulo, ok got it. i'll read up on it now
<ykk>
thank you
<apeiros_>
also number.modulo(2)
<ykk>
1.+(2)
<apeiros_>
it returns the remainder of an integer division
<ykk>
it's a method got it
<apeiros_>
well, actually even of a float division
<tsion>
What do you guys (the regulars) think of having a Ruby eval bot in here? So we could do live demonstrations of little code examples like above.
<apeiros_>
the regulars think we wait for charliesome fix his eval-in :)
<charliesome>
apeiros_: almost!
Ridders24 has joined #ruby-lang
<charliesome>
so as it turns out
<charliesome>
with hetzner, you get what you pay for in terms of servers that actually work properly
<charliesome>
my networking issues seem to have been resolved by lots of rebooting and requesting new mac addresses from them
<Ridders24>
how would I go about reading user input with multiple values, that each value does somthing for example: name + date + message - ID for example, each would output a result?
Rhy0lite has left #ruby-lang ["Leaving"]
<apeiros_>
charliesome: hetzner? the german one?
<charliesome>
apeiros_: yeah
<charliesome>
thems be the one
<apeiros_>
interesting - but you aren't german, or are you? o0
<whitequark>
charliesome: they're kinda well known for that
<charliesome>
apeiros_: nope
<charliesome>
whitequark: YES BUT CHEAP HARDWARE ;)
<whitequark>
apeiros_: hetzner usage is widespread in russia either
<apeiros_>
didn't know they were that big
<charliesome>
also it seems i accidentally blew away my iptables rules that let the eval slave talk to the web app while fucking with networking
<ykk>
tsion: that sounds like a smart project, but would you have the bot setup for visitors of the channel to be able to use the triggers?
kvs has quit [Ping timeout: 246 seconds]
<ykk>
that can get annoying =\
<tsion>
It's my friend's bot, actually. Currently it would let anyone use it.
<ykk>
unless it gave the answers in private message
<breakingthings>
we already have a bot for that. It's just broken right now.
<breakingthings>
which is what apeiros was saying.
<charliesome>
whitequark: initialize_copy exists so dup worksa
<charliesome>
whitequark: the sanity checks are in Class#initialize_copy, the actual superclass copying and other fun stuff are in Module#initialize_copy
<ben>
What do I read if I have a passable idea of how to write things in ruby, but want to learn about ruby/stdlib semantics in detail? Some sort of anti-tutorial? Any recommendations?
<Ridders24>
how would I out the data for "user"=>{"id" from the twitter api? as the other data can be called just by for example "text", but the user info seems to sit behind that "user"=> attribute. Any ideas?
skade has quit [Quit: Computer has gone to sleep.]
pr0ton has quit [Ping timeout: 245 seconds]
prochlo has joined #ruby-lang
rwk1 has quit [Ping timeout: 257 seconds]
Nisstyre-laptop has joined #ruby-lang
ritek has joined #ruby-lang
hramrach has quit [Remote host closed the connection]
srbaker has joined #ruby-lang
hramrach has joined #ruby-lang
sepp2k has quit [Quit: Leaving.]
Asher has joined #ruby-lang
kith has quit [Read error: Connection reset by peer]
sush24 has quit [Quit: This computer has gone to sleep]
ndch has joined #ruby-lang
sush24 has joined #ruby-lang
amerine has joined #ruby-lang
skade has joined #ruby-lang
kith has joined #ruby-lang
<r0bgleeson>
Ridders24: what rippa said.
pr0ton has joined #ruby-lang
symm- has joined #ruby-lang
baba has quit [Ping timeout: 246 seconds]
<rue>
2/5 rubyists agree
ruby-lang945 has joined #ruby-lang
runeb has joined #ruby-lang
alessio_1occo has joined #ruby-lang
<yorickpeterse>
so you mean 0? :>
<whitequark>
:D
alessio_rocco has quit [Ping timeout: 260 seconds]
tonni_ has joined #ruby-lang
reactormonk has quit [Ping timeout: 264 seconds]
tonni has quit [Ping timeout: 256 seconds]
chrismar035 has quit [Quit: chrismar035]
sepp2k has joined #ruby-lang
runeb has quit [Read error: Connection reset by peer]
baba has joined #ruby-lang
mwjcomputing has joined #ruby-lang
ruby-lang945 has quit [Ping timeout: 245 seconds]
jmeeuwen has quit [Ping timeout: 264 seconds]
mytrile has joined #ruby-lang
thebastl has joined #ruby-lang
swav has quit [Remote host closed the connection]
jmeeuwen has joined #ruby-lang
rockpapergoat has joined #ruby-lang
stevechiagozie has quit [Quit: Computer has gone to sleep.]
ParkQ has joined #ruby-lang
ykk has joined #ruby-lang
ndch has quit [Remote host closed the connection]
rwk1 has joined #ruby-lang
mrsolo has quit [Quit: This computer has gone to sleep]
burgestrand has quit [Quit: Leaving.]
mrsolo has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
brianpWins has quit [Quit: brianpWins]
rwk1 has quit [Ping timeout: 252 seconds]
alessio_1occo has quit [Quit: Lost terminal]
ParkQ has quit [Ping timeout: 255 seconds]
ros3bud has joined #ruby-lang
dingus_khan has joined #ruby-lang
<yorickpeterse>
whitequark: from a parsing perspective, what defines a class method call?
<yorickpeterse>
inb4 "a method called on a constant", that would be wrong
<yorickpeterse>
Right now my code assumes that a method call with a receiver is a class method call, which is obviously wrong
<whitequark>
yorickpeterse: nothing
<yorickpeterse>
hm
<whitequark>
a class method call is not different from an ordinary method call.
<yorickpeterse>
god damn it, that means I have to differentiate between definition "classes" and instances
<whitequark>
it is not possible to distinguish these without some form of partial evaluation
<whitequark>
of course.
<yorickpeterse>
What would be a good name for an attribute containing a value to differentiate between the two? "instance_type" would be one, but I have my doubts
<yorickpeterse>
(where instance_type would either be :class or :instance)
<whitequark>
obj.is_a?(LinterClass)
<yorickpeterse>
Won't really work since the definitions (basically ruby-lint's objects) are already instances
<whitequark>
meh I've no idea how your linter works
<yorickpeterse>
it's magic
<whitequark>
unicorns?
<yorickpeterse>
on crack
<whitequark>
is friendship involved?
<yorickpeterse>
fuck no
<yorickpeterse>
I'm no brony
<whitequark>
my boss suggested to call the parser gem "friendship"
Mon_Ouie has quit [Quit: WeeChat 0.4.0]
<yorickpeterse>
tl;dr: I use definition lists/lookup tables (whatever you'd like to call them) for storing information about objects and such (e.g. RubyLint::Definition::RubyObject.new(:type => :constant, :name => 'String'))
<whitequark>
there's some subtle irony in that :D
<whitequark>
wat
<whitequark>
a constant is not an object
<yorickpeterse>
I could probably return a new definition that inherits (safe copying data around) and sets an attribute
sush24 has quit [Quit: This computer has gone to sleep]
<yorickpeterse>
* safes
stevechiagozie has joined #ruby-lang
<yorickpeterse>
The object system of the linter is something I need to take another look at some time in the future. So far it has served me well but it is a bit confusing at times
<yorickpeterse>
Mostly due to naming
rippa has quit [Ping timeout: 240 seconds]
<whitequark>
ok
<yorickpeterse>
whitequark: if you want a good Friday "duuuuuddeee wtff", take a look at this:
<yorickpeterse>
hm, some of the docs are also broken
<dillyjay>
new to ruby, and having some issues with dependency mgmt. i'm using bundler to manage deps. my project includes chef 11.4 and vagrant 1.1. i want to include the test-kitchen gem. the current test-kitchen on rubygems.org is v0.7.0, and has a dependency on the (now-deprecated) vagrant gem. so calling bundle installs the vagrant gem and breaks vagrant
<whitequark>
yorickpeterse: it isn't wtf
<dillyjay>
my current approach is to set :git => 'test-kitchen-repo' in the gemfile
<yorickpeterse>
whitequark: oh?
<yorickpeterse>
well, that's a first
<drbrain>
dillyjay: you'll need to file a bug against test-kitchen
<injekt>
evenin'
<whitequark>
yorickpeterse: but I think that you're wrong in conflating path-based lookup with identity-based lookup
ReinH_ is now known as ReinH
<dillyjay>
drbrain: v1.0 fixes it, so i doubt they'll do anything about it, as vagrant 1.1 is relatively new
kain has quit [Quit: exit]
<yorickpeterse>
whitequark: oh?
kain has joined #ruby-lang
cirenyc has joined #ruby-lang
<whitequark>
or maybe not
<whitequark>
I'm tired
<yorickpeterse>
heh
<whitequark>
nevermind that
<dillyjay>
the `:git` thing prevents the vagrant gem from being installed, but it doesn't "feel" right. i'm concerned about updating that file all the time, and if there could be conflicts that `bundle` usually handles which will be overlooked bc of the :git directive
sush24 has joined #ruby-lang
<whitequark>
still not really wtf.
<dillyjay>
is there an established best practice for this sort of thing, or does anyone have a better idea?
<yorickpeterse>
gah, I need to clear my head before I write some gross hack for this. bbl
rwk1 has joined #ruby-lang
sepp2k has quit [Quit: Leaving.]
sepp2k has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
rwk1 has quit [Ping timeout: 255 seconds]
MaddinXx_ has quit [Remote host closed the connection]
rockpapergoat has quit [Remote host closed the connection]
justinmcp has quit [Quit: No Ping reply in 180 seconds.]
justinmcp has joined #ruby-lang
jmeeuwen has quit [Quit: Disconnecting from stoned server.]
pkrnj has joined #ruby-lang
soypirate has quit [Quit: Leaving]
jmeeuwen has joined #ruby-lang
gynna has joined #ruby-lang
gynna has quit [Client Quit]
jmeeuwen has quit [Ping timeout: 252 seconds]
Rhyolite has joined #ruby-lang
<Rhyolite>
Can anyone provide some information about the Ruby CI testers?
dhruvasagar has quit [Ping timeout: 245 seconds]
jmeeuwen has joined #ruby-lang
mistym has quit [Remote host closed the connection]
postmodern has joined #ruby-lang
Rhyolite has left #ruby-lang ["Leaving"]
outoftime has quit [Quit: Leaving]
dhruvasagar has joined #ruby-lang
flexd has quit [Ping timeout: 245 seconds]
<Paradox>
wat
gspederson has joined #ruby-lang
<gspederson>
Hi all, I'm wondering if anyone has any ideas I can solicit? I've been asked for me to create a csv file that shows double quotes around some string values, but the problem is that I seem to only be able to get values with no quotes, single quotes or three outer quotes.
<gspederson>
I've tried:
<gspederson>
"'test'" and get: irb: "'test'", TextEdit: 'test' - Single Quotes