ttilley has quit [Remote host closed the connection]
woollyams has quit [Quit: Computer has gone to sleep.]
micha-- has joined #ruby-lang
nevynxxx has joined #ruby-lang
ttilley has joined #ruby-lang
fgomez has quit [Ping timeout: 246 seconds]
<micha-->
hi, question: i use nokogiri to fetch one <p> element. now i want to add a property (itemprop="description") to that <p> element. how can i do that?
<micha-->
right now i have <div itemprop=... around the <%= Nokogiri::HTML(post.compiled_content).at_css("p") %>
<micha-->
but double tags are bad, i think
perryh is now known as perryh_away
ioga_wrk has joined #ruby-lang
<micha-->
following a hint on stackoverflow i tried <%= Nokogiri::HTML(post.compiled_content).at_css("p")['itemprop']='description' %> but that returns only "description", not "<p itemprop=description">text/p>"
sepp2k has joined #ruby-lang
cdt has joined #ruby-lang
gnufied has joined #ruby-lang
toretore has joined #ruby-lang
<micha-->
okay, separating it into multiple lines works
levifig has quit [Quit: Farewell]
levifig has joined #ruby-lang
shevy2 has left #ruby-lang [#ruby-lang]
stardiviner has joined #ruby-lang
apeiros|euruko has quit [Remote host closed the connection]
neoesque has quit [Quit: Bye!]
igotnolegs has quit [Quit: Computer has gone to sleep.]
valeri_ufo has joined #ruby-lang
apeiros|euruko has joined #ruby-lang
workmad3 has joined #ruby-lang
sandbags has joined #ruby-lang
yxhuvud has quit [Ping timeout: 244 seconds]
workmad3 has quit [Ping timeout: 245 seconds]
workmad3 has joined #ruby-lang
d3vic3 has quit [Ping timeout: 244 seconds]
d3vic3 has joined #ruby-lang
fayimora has quit [Read error: Connection reset by peer]
fayimora has joined #ruby-lang
fayimora has quit [Remote host closed the connection]
<chris2>
anyone clued about mruby? should it implement Array#-?
wallerdev has quit [Quit: wallerdev]
Fullmoon has quit [Quit: Fullmoon]
<TvL2386>
Hi guys, I'm trying to connect multiple servers to a message bus so they can exchange messages. I've looked at mcollective, zeromq, dcell, druby but didn't find an implementation that is: easy to use, possibly not so much dependencies, secure, encrypted, unicast messages (not only broadcasts). Does anybody have some more libraries that could be interesting?
<rue>
RabbitMQ?
micha-- has quit [Ping timeout: 245 seconds]
<rue>
I’d rather use ZMQ, but I’m not sure what the issue you had with it is
Hakon|mbp has joined #ruby-lang
<TvL2386>
rue: I've looked at zmq, but it seems implementing security there can not be done unless you start using vpn's or hack ssh tunnels together
futurechimp has joined #ruby-lang
<TvL2386>
I'm researching the possibility to encrypt the payload using some encryption algorithm based on a passphrase and some algorithm. Since it seems all transport protocols seem to be insecure. Mcollective with activemq with the aes plugin seems to resolve that, but it is very hard to set up and has a lot of dependencies.
<rue>
Ah, hm, yes. I think even using SSL is kind of meh in ZMQ
<TvL2386>
rue: indeed!
JoL1hAHN has quit [Remote host closed the connection]
<TvL2386>
rue: I'm now thinking about using dcell and see if I can put some message encryption inside of the protocol
<bnagy>
dcell just uses zmq, doesn't it?
<rue>
That’d still work if the infrastructure was easy enough to add encryption at the protocol level
<rue>
I haven’t used dcell myself so I dunno
jbsan has quit [Quit: jbsan]
<bnagy>
personally I would use an ssl vpn and then put omq on top of that
<bnagy>
well.. depends on your threat model I guess
<rue>
That’d be simple enough for many use cases
<bnagy>
basically either you encrypt each message and use a common carrier or you use a secure transport
<bnagy>
or both
<bnagy>
but putting SSL inside 0mq messages won't work
micha-- has joined #ruby-lang
<TvL2386>
bnagy, thanks for your comments! I was looking at the Crypt module to see if it has anything good enough for me to encrypt messages
<TvL2386>
bnagy, what exactly do you mean with SSL VPN?
<bnagy>
an ssl vpn is an ssl vpn. It's a vpn, tunneled over ssl
<bnagy>
usually over a single udp port, but there are lots of ways
<TvL2386>
ssl would be tcp
<rue>
Any other VPN for that matter
<bnagy>
TvL2386: ssl has nothing to do with tcp
<bnagy>
and most SSL vpns use udp :)
<TvL2386>
bnagy, I see! I have a Cisco ASA which runs it ssl vpn (anyconnect) over tcp port 443. I didn't know udp was possible
<bnagy>
basically you use a tun device that appears to have an IP address, then you run 'normal' ip/tcp/udp/whatever traffic over that interface
<bnagy>
openvpn is a fairly common implementation and has a lot of clients, for example
apeiros|euruko has quit [Remote host closed the connection]
<bnagy>
basically that would protect your messages in motion
<bnagy>
but it doesn't really provide any identity assurance etc
<TvL2386>
it seems it would not be hard to setup and may be much easier than messing the the messages themselves
<bnagy>
it's definitely easier
<bnagy>
but it depends on your requirements
riffraff has joined #ruby-lang
micha-- has quit [Quit: Ex-Chat]
tekin has joined #ruby-lang
<TvL2386>
bnagy: I'll do the openvpn sollution! Sounds very interesting and it sounds quite easy since it does not mess with messages or the underlying mechanism (zmq or whatever)
soahccc` is now known as soahccc
workmad3_ has joined #ruby-lang
d3vic3 has quit [Read error: Operation timed out]
riffraff has quit [Ping timeout: 248 seconds]
<andrewvos>
This Friday Hug bullshit has gone too far!
<banisterfiend>
andrewvos: somehow a 'friday hug' doesn't seem an appropriate thing for a bunch of oppressed semi-autistic computer programmers to engage in
riffraff has joined #ruby-lang
<andrewvos>
banisterfiend: EXACTLY
<bnagy>
itym 'repressed'
<andrewvos>
How about on Fridays we just don't argue stupid shit on the internet, or something.
<matled>
uh, module Foo; class Time; end; end; include Foo; Time.new does not create a Foo::Time object. self.class.ancestors is [Object, Foo, Kernel, BasicObject]. shouldn't ruby try to resolve the constant following the chain of ancestors?
<matled>
oh, it's in Object.. mh
<banisterfiend>
bnagy: Yeah
<bnagy>
so I have forgotten everything I know about parsing xml
<bnagy>
itunes xml has keys like <dict> <key>blah <key>bloo etc - I just want to turn that into a nested Hash
<rue>
andrewvos: Is it too mainstream now? You liked it when they were still obscure? :)
<rue>
bnagy: I think HappyMapper can do that automatically (or a successor)
<ddfreyne>
friday hug? eh what?
<rue>
With Nokogiri you’d create the hash yourself
<bnagy>
I just can't work out how to access the nodes at all :/
<bnagy>
and it doesn't help that the file is gigantic
dalekurt has quit [Quit: Zzz...]
<banisterfiend>
ddfreyne: just the ruby community trying to maintain its 'quirkiness' now that _why has gone ;)
<ddfreyne>
ah :)
<rue>
bnagy: How are you trying to access it?
<rue>
banisterfiend: Yeah, there’s way too much of that…
<bnagy>
rue: I tried with slop first, doing doc.dict.dict
<bnagy>
I don't know a better way of stripping them because I haven't touched xml for years and years
apeiros|euruko has joined #ruby-lang
<matled>
that's just the way xml works, you probably want to ignore those elements
<matled>
why do you care? you should probably just access the key / string / integer elements
<matled>
and they contain only the value you want
<bnagy>
well I reject them with a regex, but it seems crappy and slow
<bnagy>
matled: cause I don't know how to do that :)
<matled>
ah, the keys and values are all at the same level. you could probably ignore just all text elements within a dict in this case
<bnagy>
well the stuff I want seems to be in text elements, unless I am xpathing wrong, which is likely
tomb_ has joined #ruby-lang
<matled>
I'd write a method that accepts a dict element and iterates over all the children. it should always see a key element followed by a string/integer/dict element
<matled>
parse them both (using recursion for the dict) and it should be fine
<matled>
the text elements within the dict can be ignored
<ryez>
regarding gemspec files, is their any convension/standard about the file encoding?
mistym has joined #ruby-lang
<apeiros>
khaase: damn, would've been awesome :D
IPGlider has joined #ruby-lang
<apeiros>
and I'd have definitively come to the stage to steal it from you ;-)
tekin__ has joined #ruby-lang
<apeiros>
(I can say that, now that I'm sure I don't actually have to do it *g*)
mistym has quit [Remote host closed the connection]
<banisterfiend>
htf do i get appstore to show me actual % download for an app rather than just the vague download meter
tomb_ has joined #ruby-lang
<banisterfiend>
in osx
<apeiros>
banisterfiend: that's too complex for the average user so you don't need to know!</sarcasm>
<banisterfiend>
im getting xcode
<apeiros>
(no idea, sorry)
<banisterfiend>
so i have no idea if it's stalled, or if it's just really slow
zz_wasnotrice is now known as wasnotrice
znake has quit [Quit: znake]
Criztian has joined #ruby-lang
<zzak>
isnt xcode a big download?
<apeiros>
~4gb last time I loaded it
<apeiros>
so it's like a 5min download, not that big :o)
<banisterfiend>
zzak: yeah which is why i need feedback, if it was a small dl i would know it was progressing OK cos the meter would be advancing quickly
dalekurt has joined #ruby-lang
<banisterfiend>
apeiros: haha, 4 gig will take me about 5 hours
<banisterfiend>
at least
RegEchse has joined #ruby-lang
KU0N has quit [Remote host closed the connection]
telemachus_ is now known as telemachus
igaiga has joined #ruby-lang
dv310p3r has joined #ruby-lang
tomzx has joined #ruby-lang
hynkle has joined #ruby-lang
jxie has quit [Ping timeout: 248 seconds]
tcopp has joined #ruby-lang
vesan has quit [Remote host closed the connection]
vesan has joined #ruby-lang
replore_ has quit [Remote host closed the connection]
bglusman has joined #ruby-lang
dejongge has joined #ruby-lang
igaiga has quit [Remote host closed the connection]
replore has joined #ruby-lang
valeri_uF0 has left #ruby-lang [#ruby-lang]
valeri_ufo has joined #ruby-lang
lsegal has joined #ruby-lang
RegEchse has quit [Read error: Connection timed out]
tomzx has quit [Read error: Operation timed out]
TvL2386 has quit [Remote host closed the connection]
RegEchse has joined #ruby-lang
d3vic3 has quit [Ping timeout: 244 seconds]
d3vic3 has joined #ruby-lang
ttilley has quit [Remote host closed the connection]
gnufied has quit [Quit: Leaving.]
vaelen has joined #ruby-lang
lsegal has quit [Read error: Connection reset by peer]
lsegal has joined #ruby-lang
RubyRedGirl has left #ruby-lang [#ruby-lang]
jnimety has joined #ruby-lang
jnimety has left #ruby-lang [#ruby-lang]
Axsuul has quit [Ping timeout: 248 seconds]
d3vic3 has quit [Ping timeout: 248 seconds]
wasnotrice is now known as zz_wasnotrice
d3vic3 has joined #ruby-lang
<zzak>
thats a long time in middle earth
zz_wasnotrice is now known as wasnotrice
dv310p3r has quit [Ping timeout: 248 seconds]
wasnotrice is now known as zz_wasnotrice
<youngin>
zzak: its no problem really
<youngin>
it's so fun down there that time moves really fast
vesan has quit [Read error: Connection reset by peer]
<zzak>
i like the name knightbladder
tcopp has quit [Quit: Lost terminal]
Criztian has quit [Read error: Connection reset by peer]
Criztian_ has joined #ruby-lang
kristofferrr has joined #ruby-lang
<erikh>
incontinent michael knight
workmad3 has quit [Ping timeout: 265 seconds]
cdt has quit [Quit: Ex-Chat]
Guedes has quit [Read error: Connection reset by peer]
Guedes has joined #ruby-lang
Guedes has joined #ruby-lang
peppyheppy has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
gnufied has quit [Quit: Leaving.]
vesan has joined #ruby-lang
drp33 has joined #ruby-lang
achiu has joined #ruby-lang
<knightblader>
*face palm* Blader as in blade not bladder
francisfish has quit [Remote host closed the connection]
soahccc is now known as soahccc`
dankest has joined #ruby-lang
<erikh>
I like knight bladder better.
<oddmunds>
me too
Hakon|mbp has quit [Quit: Leaving...]
akira989 has quit [Remote host closed the connection]
elux has joined #ruby-lang
carloslopes has joined #ruby-lang
<oddmunds>
do you guys think there would be any interest in 'bundle gem' to support more licenses than MIT?
wmoxam has joined #ruby-lang
akira989 has joined #ruby-lang
<dalekurt>
Hey, when I try to view the console on a running VM I get the FQDN with *.realihostip.com and I updated the consoleproxy.url.domain setting
<dalekurt>
Oops!
vmoravec has quit [Quit: Leaving]
taterbas_ has joined #ruby-lang
RegEchse has joined #ruby-lang
tonesfrommars has joined #ruby-lang
wallerdev has joined #ruby-lang
sepp2k has quit [Ping timeout: 240 seconds]
savage- has joined #ruby-lang
fserb has quit [Quit: ttyl]
fayimora has joined #ruby-lang
fayimora has quit [Client Quit]
sandbags has quit [Remote host closed the connection]
rippa has joined #ruby-lang
sandbags has joined #ruby-lang
Hakon|mbp has joined #ruby-lang
sepp2k has joined #ruby-lang
taterbas_ has quit [Quit: Computer has gone to sleep.]
mikkelb has joined #ruby-lang
<mikkelb>
I run this Ruby script 24/7 (which records data from this live stream). It's running inside a screen so it's easy to check in on it every now and then. But how do I crontab the screen with the Ruby script inside it?
akira989 has quit [Remote host closed the connection]
<Defusal>
mikkelb: try man screen
<mikkelb>
really screen can do this kinda stuff?
yxhuvud has joined #ruby-lang
<Defusal>
yeah, it has tons of options
<mikkelb>
awesome
<Defusal>
:)
akira989 has joined #ruby-lang
<Defusal>
i was going to do the same thing when i was still using screen
<Defusal>
but i went a different direction
<wmoxam>
Defusal: you use tmux now?
sandbags has quit [Remote host closed the connection]
<TTilus>
com e to the dark side
<Defusal>
nah, i have my ruby daemon spawn the other software and handle the std streams and all
<Defusal>
then have realtime console logging and other stuff exposed via a HTML5 interface using WebSockets
<Defusal>
since i'll be providing the platform as a service to clients in the near future
banisterfiend has quit [Read error: Connection reset by peer]
gregf has joined #ruby-lang
<mikkelb>
Defusal: thise dude in #freebsd says i should use daemontools you got any experience with that?
workmad3_ has joined #ruby-lang
<Defusal>
can't say i do
akira989 has quit [Remote host closed the connection]
<Defusal>
tmux does sound interesting though, i'm looking for a good solution to allow me to save the state of many SSH sessions on disconnect and resume them later
<Defusal>
but since i mainly use SSH from windows, theres not really any decent options for ssh clients
akira989 has joined #ruby-lang
<Defusal>
i often have over 10 concurrent ssh sessions open for tailing logs, screen sessions, testing and other system stuff, which are all lost every time i have a problem with my connectivity or need to reboot
<Defusal>
so having to get back to that state all the time is rather inconvenient
<mikkelb>
<haroldp> I would think you are probably at the point that you should make your script a proper daemon though. I would bet ruby has tools to help with that
gsav has quit [Read error: Connection reset by peer]
<sockmonk>
Defusal: you could always set up a linux or *BSD image using vmware or virtualbox, and get yourself a decent toolset on that windows machine
gsav has joined #ruby-lang
fserb has quit [Client Quit]
_damienp_ has joined #ruby-lang
<Defusal>
sockmonk, i do my development remotely with sftp syncing and ssh, my server is only 5ms away from me so it works fine. there are a number of things my code needs to do that would simply not be possible on my local machine, which is why my server has heavy duty hardware
akira989 has quit [Remote host closed the connection]
<sockmonk>
Defusal: sounds good for your setup then. I just decided to install virtualbox/freebsd on an extra windows machine at home for playing around.
akira989 has joined #ruby-lang
<sockmonk>
have to play with it to get the resolution decent, but seems better than using cygwin or something
stamina has quit [Quit: Lost terminal]
gouthamvel has joined #ruby-lang
gouthamvel has left #ruby-lang [#ruby-lang]
<Defusal>
i do have vitualbox running linux on my local machine, but that is mainly used for avoiding windows issues :P
akira989 has quit [Ping timeout: 244 seconds]
banisterfiend has joined #ruby-lang
fserb has joined #ruby-lang
akira989 has joined #ruby-lang
<Defusal>
sockmonk, windows decided that it would no longer allow any web browser to use websockets 9 times out of 10 not too long ago, forcing me to have to use a browser running in the VM to test my own interface that i am developing until i have time to format and reinstall
alexkane has quit [Ping timeout: 244 seconds]
akira989_ has joined #ruby-lang
<sockmonk>
ms thinks websockets are a security issue?
akira989 has quit [Ping timeout: 240 seconds]
rking_ has joined #ruby-lang
tomb_ has quit [Quit: Computer has gone to sleep.]
alexkane_ has joined #ruby-lang
kvirani has joined #ruby-lang
stamina has joined #ruby-lang
peppyheppy_ has joined #ruby-lang
peppyheppy has quit [Ping timeout: 245 seconds]
peppyheppy_ is now known as peppyheppy
rking_ has left #ruby-lang [#ruby-lang]
dalekurt has quit [Ping timeout: 252 seconds]
workmad3_ has quit [Ping timeout: 245 seconds]
Tref has quit [Quit: Tref]
yannis has joined #ruby-lang
<zzak>
tenderlove: around?
<zzak>
do patches for racc goto redmine or tenderlove/racc?