<slyphon>
"While reading the book “Nagios: system and Network Monitoring” by Wolfgang Barth, I thought it will be a good idea to write a Ruby based System and Network Monitoring tool similar to Nagios."
<erikh>
he probably learned a lot
* slyphon
chuckles
<slyphon>
like "omfg this is really fucking *hard*"
<erikh>
right :)
<slyphon>
:D
<erikh>
nothing wrong with that, puts hair on your chest.
<slyphon>
hahahaha
<imperator>
and some on your back
<slyphon>
as long as it's not on your palms
<erikh>
we used to joke that all my uncle's hair rolled off his head and onto his back.
<slyphon>
hahah
cldwalker [cldwalker!u2984@gateway/web/irccloud.com/x-verwdzalmnctfmkk] has joined #ruby-lang
mrchrisadams [mrchrisadams!u1367@gateway/web/irccloud.com/x-reqdbdqjegvsxgon] has joined #ruby-lang
flowerpot [flowerpot!~nobody@c-174-61-224-227.hsd1.wa.comcast.net] has joined #ruby-lang
htl [htl!~sam@d14-69-225-16.try.wideopenwest.com] has joined #ruby-lang
<slyphon>
jeez
<htl>
hello. i'm on ubuntu and i can't get rvm to use ruby 1.9.3.
<slyphon>
looking at the twitter gem, reading the docs, can't fucking find the 'tweet' method
<slyphon>
you'd think that'd be like front-and-center
<slyphon>
htl: /join #rvm ?
<slyphon>
they're really helpful in there, actually
<htl>
ok thx
<slyphon>
nop
<slyphon>
np
akahn [akahn!u2243@gateway/web/irccloud.com/x-czxbmlwjvhgyombn] has joined #ruby-lang
<erikh>
slyphon: sec, I'll find it
<slyphon>
i found it :)
<slyphon>
it's update
<erikh>
sounds right
<slyphon>
:)
<erikh>
yeah, those docs are ... well it's just easier to RTFS
<slyphon>
yeah, the REST API docs aren't terrible
<slyphon>
eh, even these aren't so bad
<slyphon>
i just really thought that method would be called 'tweet'
<slyphon>
though i guess that could be ambiguous
dr0id [dr0id!~andy@unaffiliated/dr0id] has joined #ruby-lang
<JdpB42>
slyphon: markaby
<slyphon>
ah
<JdpB42>
and erector
<slyphon>
ah yeah, haven't used those, heard of 'em though :)
htl [htl!~sam@d14-69-225-16.try.wideopenwest.com] has quit [#ruby-lang]
timbleck [timbleck!u3835@gateway/web/irccloud.com/x-urktamahjmwazyan] has joined #ruby-lang
necromancer [necromancer!u4538@gateway/web/irccloud.com/x-hjakubbmrdrmlzoi] has joined #ruby-lang
mccraig [mccraig!u574@gateway/web/irccloud.com/x-hxvhsdiguhkcacen] has joined #ruby-lang
charper [charper!u1691@gateway/web/irccloud.com/x-hgzszaiwfwkfmkvs] has joined #ruby-lang
kamalreddy [kamalreddy!~coder@202.3.77.231] has joined #ruby-lang
crassus [crassus!u4275@gateway/web/irccloud.com/x-iuttczuquudxnfir] has joined #ruby-lang
crassus [crassus!u4275@unaffiliated/crassus] has joined #ruby-lang
crassus [crassus!u4275@gateway/web/irccloud.com/x-iuttczuquudxnfir] has joined #ruby-lang
<JdpB42>
slyphon: how long you been using rails?
<slyphon>
oh, since like 0.12 i think
<slyphon>
2006
<slyphon>
i don't do much rails work these days though
codelol [codelol!u3386@gateway/web/irccloud.com/x-jvbonjtlmvpgpwhp] has joined #ruby-lang
cesario [cesario!u2444@gateway/web/irccloud.com/x-ztfbvpwpsswqfkod] has joined #ruby-lang
ascarter [ascarter!~ascarter@209.119.253.66] has joined #ruby-lang
simon_weber [simon_weber!u4119@gateway/web/irccloud.com/x-kycvptyvyapwhmwn] has joined #ruby-lang
<JdpB42>
slyphon: what do you do?
<JdpB42>
just curious
<erikh>
he makes sculptures out of dish sponges
* slyphon
laughs
necromancer [necromancer!u4538@gateway/web/irccloud.com/x-gvkfigodwwbjdofc] has joined #ruby-lang
<slyphon>
mainly backend type work, systems programming
<slyphon>
i'm like the drummer
agib [agib!u781@gateway/web/irccloud.com/x-hraghnutcqejtwad] has joined #ruby-lang
<livinded>
just trying to find something full time that'll work around my at most 4 hours of class a week next semester
<wallerdev>
cool looking site :)
<slyphon>
hah
setmeaway2 [setmeaway2!setmeaway3@118.45.149.247] has joined #ruby-lang
<raggi>
well, if you're interested, you should drop a cv into our jobs site, we'll get back to you any time that works for you
<wallerdev>
yeah i added it to a list of job sites but i'm not really looking for a new job at the moment
<raggi>
do you have 4 kegs in the office? ;-)
<wallerdev>
i could… since i work from home haha :)
<livinded>
I have two kegs at home
<wallerdev>
haha
<raggi>
yeah, but does the beer guy come to your home once a week :)
<livinded>
benefit of homebrewing
dkannan [dkannan!u480@gateway/web/irccloud.com/x-ssmpsslqjjgadlil] has joined #ruby-lang
<wallerdev>
i'm not sure how i feel about your website being built by drunken coders haha
<livinded>
balmer peak
<raggi>
haha
<slyphon>
wallerdev: one of the main MRI contributors *only* codes while drunk
<raggi>
don't knock the balmer peak
<raggi>
it's 0.1337
<wallerdev>
haha yeah, it's a pretty dangerous peak though
<slyphon>
i heard this second-hand, but after looking at Net::HTTP, i have no reason to doubt it
<livinded>
when you know what you need to do, nothing beats programming high
<slyphon>
hrm
<slyphon>
livinded: don't tell that to your boss
<raggi>
wallerdev: tbh, it does make for good end of sprint parties :)
<slyphon>
wow twitter's "eventual consistency" is really...laid back
<wallerdev>
yeah it seems like a pretty cool company :)
<wallerdev>
i need to get back to doing some ruby, too much .NET at my current job
<livinded>
wallerdev: ewwww
<livinded>
so glad I've never worked in a microsoft shop
nofxx [nofxx!~nofxx@177.106.59.23] has joined #ruby-lang
nofxx [nofxx!~nofxx@unaffiliated/nofxx] has joined #ruby-lang
<wallerdev>
yeah i need a new side project to work on that i can catch up on whats new in ruby and rails and i was thinking about learning about mongodb
Nisstyre [Nisstyre!~yours@c-208-90-102-250.netflash.net] has joined #ruby-lang
cldwalker [cldwalker!u2984@gateway/web/irccloud.com/x-yalzdeckmmfdfncu] has joined #ruby-lang
<wallerdev>
hm craigslist is advertising to stop SOPA
<wallerdev>
seems like that will affect a lot of people
mrchrisadams [mrchrisadams!u1367@gateway/web/irccloud.com/x-kltlzuxmpupyshyp] has joined #ruby-lang
<slyphon>
SOPA is fucking terrible
denysonique_ [denysonique_!u484@gateway/web/irccloud.com/x-vsnxfcmmoyzcllxx] has joined #ruby-lang
<slyphon>
at least that's what ALL OF MY FRIENDS WON'T STOP TELLING ME OVER AND OVER OMFG MAKE IT STOP
<slyphon>
i keep trying to explain that i'm not a senator
<wallerdev>
haha
Nisstyre [Nisstyre!~yours@c-208-90-102-250.netflash.net] has joined #ruby-lang
igotnolegs [igotnolegs!~igotnoleg@75-162-83-166.slkc.qwest.net] has joined #ruby-lang
abuiles [abuiles!u1641@gateway/web/irccloud.com/x-yrnhjbzufcfloaqj] has joined #ruby-lang
dnyy [dnyy!u2106@gateway/web/irccloud.com/x-hyuxnrwnymszeyxc] has joined #ruby-lang
akahn [akahn!u2243@gateway/web/irccloud.com/x-jvppzmxrhnzxlyun] has joined #ruby-lang
Pip [Pip!~Pip@176.214.4.186] has joined #ruby-lang
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby-lang
wmoxam [wmoxam!~wmoxam@pdpc/supporter/active/wmoxam] has joined #ruby-lang
wallerdev_ [wallerdev_!~wallerdev@72.44.102.30] has joined #ruby-lang
sora_h [sora_h!~sora_h@mayfield.privs.net] has joined #ruby-lang
artOfWar [artOfWar!~artofwar@108-205-201-30.lightspeed.sntcca.sbcglobal.net] has joined #ruby-lang
<JdpB42>
what does SOPA mean?
<shevy>
JdpB42 stop online piracy act
<wmoxam>
JdpB42: it means that big companies can sue all the things
<JdpB42>
ah
<JdpB42>
I think they should do it
<wmoxam>
yeah, totally
<JdpB42>
then maybe I could have a criminal record
<JdpB42>
always wanted one!
<wmoxam>
good planning
<wallerdev>
i think the problem with sopa is that if someone uploads copyrighted content to craigslist.org in a listing, they can shut down all of craigslist.org
<wallerdev>
instead of how it is now where they can just request it be taken down
<wallerdev>
(the listing)
<JdpB42>
wallerdev: serious?
<JdpB42>
the internet would become very boring quick
<wallerdev>
that's how i understand it, i haven't done much research
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
retro|cz [retro|cz!~retro@106.142.broadband6.iol.cz] has joined #ruby-lang
andrewhl [andrewhl!~andrew@24-246-14-26.cable.teksavvy.com] has joined #ruby-lang
wmoxam [wmoxam!~wmoxam@pdpc/supporter/active/wmoxam] has joined #ruby-lang
<wmoxam>
wallerdev: that's totally reasonable
<wmoxam>
like, if I'm watching a pitrated dvd in McDonalds, they should shut down all of the McDonalds
<wmoxam>
makes sense
<wallerdev>
yeah it's pretty weird since they're all voting on it but they don't really know what it means
<wallerdev>
and then people complain and they say "oh we won't do that with it"
<wallerdev>
:S
<wallerdev>
hopefully the internet fixes it for us
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
andrewhl [andrewhl!~andrew@24-246-14-26.cable.teksavvy.com] has joined #ruby-lang
savage- [savage-!~savage-@c-67-180-11-89.hsd1.ca.comcast.net] has joined #ruby-lang
Pip [Pip!~Pip@176.214.4.186] has joined #ruby-lang
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
dnjaramba [dnjaramba!~dnjaramba@41.72.193.86] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
<lsegal`>
wallerdev wmoxam actually thats somewhat of a weird edge case where one random posting takes down an entire site. the much more plausible example would be for *repeat* unintentional offender, like, say, youtube.com, which orgs like the RIAA and MPAA could effectively target based on the legislation
<wallerdev>
yeah that makes sense, youtube has a lot of copyrighted content
ajeis_ [ajeis_!~quassel@14.195.23.36] has joined #ruby-lang
context [context!context@november.xen.prgmr.com] has joined #ruby-lang
<wallerdev>
although they have some neat algorithms to match songs in videos and put in ads to buy the song or block it
<context>
anyone here use rbenv, i just got an iMac, installing all my normal stuff. and rbenv is complaining it cant find a 'suitable gcc'
<lsegal>
wallerdev well google already has good deals with the RIAA, AFAIK... but this would make them their bitch. other content sites wouldnt be so fortunate.
<wallerdev>
did you install the developer tools for your mac?
<context>
heh, http://pastie.org/3182525 , homebrew installed everything just fine, and yes XCode installed
<wallerdev>
ooh right
<wallerdev>
Xcode doesn't use gcc anymore
<wallerdev>
or i guess its an option
srbartlett [srbartlett!~srbartlet@124-170-53-195.dyn.iinet.net.au] has joined #ruby-lang
<wallerdev>
anyway i don't have any advice :)
<context>
wallerdev: rbenv installed 1.9.3 just fine on my laptop and its using the same xcode
<JdpB42>
i think slicehost would have done far better if they would have not been swallowed by rackspace
dnjaramba_ [dnjaramba_!~dnjaramba@41.72.193.86] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
jim777 [jim777!~jim@26.49.233.220.static.exetel.com.au] has joined #ruby-lang
any-key [any-key!~eric_wood@tacs.cs.tamu.edu] has joined #ruby-lang
priteshjain [priteshjain!~priteshja@115.248.175.50] has joined #ruby-lang
Nisstyre [Nisstyre!~yours@c-208-90-102-250.netflash.net] has joined #ruby-lang
any-key [any-key!~eric_wood@tacs.cs.tamu.edu] has joined #ruby-lang
priteshjain [priteshjain!~priteshja@115.248.175.50] has joined #ruby-lang
<wallerdev>
when i looked at slice host they seemed to be the same as linode with higher prices and a prettier interface
<JdpB42>
wallerdev: slicehost no longer exist really
<JdpB42>
well no it doesn't
<wallerdev>
ah
<wallerdev>
haven't looked at it in awhile
jim777 [jim777!~jim@26.49.233.220.static.exetel.com.au] has quit [#ruby-lang]
<wallerdev>
i almost went with rackspace for one of my sites
<JdpB42>
rackspace vps are useless
<wallerdev>
but amazon's prices were too good
<JdpB42>
wallerdev: all their ip's are blocked for email
<JdpB42>
and amazon has those same issues
<JdpB42>
but you can sorta get around it
<wallerdev>
yeah thats why you ned to send email from something like mailchimp
<wallerdev>
sending it from your own server can often send things straight to the spam folder
ajeis [ajeis!~quassel@182.156.125.152] has joined #ruby-lang
<JdpB42>
yea im good with that ...i like to have the email sent from my actual server honestly
amerine [amerine!~mturner@bc171197.bendcable.com] has joined #ruby-lang
<JdpB42>
on blacklisted ip ranges
<JdpB42>
slicehost you used to be able to send email safely but then rackspace got all involved
shadowshell [shadowshell!~shadowshe@c-67-188-245-230.hsd1.ca.comcast.net] has joined #ruby-lang
Guest52123 [Guest52123!~davidw@adsl-ull-122-110.51-151.net24.it] has joined #ruby-lang
thone_ [thone_!~thone@g226048104.adsl.alicedsl.de] has joined #ruby-lang
artOfWar [artOfWar!~artofwar@108-205-201-30.lightspeed.sntcca.sbcglobal.net] has joined #ruby-lang
rippa [rippa!~rippa@87-253-30-198.pppoe.yaroslavl.ru] has joined #ruby-lang
solars [solars!~solars@194.208.132.118] has joined #ruby-lang
askurihin [askurihin!~askurihin@91.202.47.68] has joined #ruby-lang
shadowshell [shadowshell!~shadowshe@c-67-188-245-230.hsd1.ca.comcast.net] has quit [#ruby-lang]
yxhuvud [yxhuvud!mongo@h-85-82.a212.priv.bahnhof.se] has joined #ruby-lang
ajeis [ajeis!~quassel@49.200.16.4] has joined #ruby-lang
wallerdev [wallerdev!~wallerdev@72.44.102.30] has joined #ruby-lang
artOfWar [artOfWar!~artofwar@108-205-201-30.lightspeed.sntcca.sbcglobal.net] has joined #ruby-lang
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby-lang
wallerdev [wallerdev!~wallerdev@72.44.102.30] has joined #ruby-lang
enikar [enikar!~gil@cl-140.mrs-01.fr.sixxs.net] has joined #ruby-lang
wallerdev [wallerdev!~wallerdev@72.44.102.30] has joined #ruby-lang
wallerdev [wallerdev!~wallerdev@72.44.102.30] has joined #ruby-lang
flowerpot [flowerpot!~nobody@c-174-61-224-227.hsd1.wa.comcast.net] has joined #ruby-lang
flowerpot [flowerpot!~nobody@c-174-61-224-227.hsd1.wa.comcast.net] has joined #ruby-lang
flowerpot [flowerpot!~nobody@c-174-61-224-227.hsd1.wa.comcast.net] has joined #ruby-lang
flowerpot [flowerpot!~nobody@c-174-61-224-227.hsd1.wa.comcast.net] has joined #ruby-lang
<josh9>
how to clean rubyopt from rvm? rvm info shows me: "-rawesome_print"
<josh9>
i had it in my .bashrc, but now i am using a different gemset and don't need this gem anymore, so i removed from bashrc, opened new xterm, but it's still showing in rvm info..
ajeis_ [ajeis_!~quassel@182.156.73.224] has joined #ruby-lang
sora_h [sora_h!~sora_h@mayfield.privs.net] has joined #ruby-lang
robbyoconnor [robbyoconnor!~wakawaka@guifications/user/r0bby] has joined #ruby-lang
<josh9>
i got a problem guys. i can't run the gem command if i am not on a specific gemset, the one that have awesome_print.
<josh9>
i can run this export RUBYOPT="" in terminal, as a temporary solution.
shevy [shevy!~shevy@194-166-99-126.adsl.highway.telekom.at] has joined #ruby-lang
jensn [jensn!~Jens@ip225-88.wireless.lu.se] has joined #ruby-lang
adambeynon [adambeynon!~adambeyno@82-69-1-211.dsl.in-addr.zen.co.uk] has joined #ruby-lang
dreinull [dreinull!~dreinull@ip-78-94-220-161.unitymediagroup.de] has joined #ruby-lang
brianpWins [brianpWins!~brianpWin@S01060014bf8930ea.vc.shawcable.net] has joined #ruby-lang
ajeis [ajeis!~quassel@182.156.73.224] has joined #ruby-lang
artOfWar [artOfWar!~artofwar@108-205-201-30.lightspeed.sntcca.sbcglobal.net] has joined #ruby-lang
kryl99 [kryl99!~kryl99@202.161.19.241] has joined #ruby-lang
priteshjain [priteshjain!~priteshja@115.248.175.50] has joined #ruby-lang
thrcka [thrcka!~thrcka@ip-89-102-34-33.net.upcbroadband.cz] has joined #ruby-lang
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby-lang
<manveru>
josh9: your X server inherited the env
<josh9>
manveru: not sure what that mean.. i restarted x and the issue persist.
ajeis___ [ajeis___!~quassel@27.107.3.66] has joined #ruby-lang
<manveru>
josh9: how did you start x?
<josh9>
manveru: Mod4 + Control + r (restarting awesomeWM)
<josh9>
and startx from tty
<manveru>
did you log out of the tty first?
<josh9>
manveru: no..
<josh9>
that's deep
<manveru>
that's where your bashrc first got executed
<manveru>
from there on, every process inherits the same env variables
<josh9>
manveru: interesting
<manveru>
you can use `unset RUBYOPT` in the tty
<manveru>
same effect
<manveru>
or add `unset RUBYOPT` at the end of your bashrc
Nisstyre [Nisstyre!~yours@c-208-90-102-250.netflash.net] has joined #ruby-lang
<manveru>
but then you read it in a year and have no idea why you did that
<josh9>
nice. i wonder how do other people deal with this situation - i wanted to run my tests with awesome_print gem. can i set -rawesome_print in a different place other than bashrc, so it will not be global to my machine?
<josh9>
something more ad-hocky
<lsegal>
you can set temporary vars for the subprocess: RUBYOPT=-rawesome_print rake tests
<manveru>
export RUBYOPT=-rawesome_print
<lsegal>
or add it to your rakefile?
<manveru>
then it'll be there for as long as you keep that shell open
<josh9>
lsegal: manveru great suggestions
flowerpot [flowerpot!~flower@ec2-50-112-40-163.us-west-2.compute.amazonaws.com] has joined #ruby-lang
WillMarshall [WillMarshall!~willmarsh@203.118.179.237] has joined #ruby-lang
Locke23rus [Locke23rus!~quassel@128-70-1-227.broadband.corbina.ru] has joined #ruby-lang
WillMarshall [WillMarshall!~willmarsh@203.118.179.237] has joined #ruby-lang
gianlucadv [gianlucadv!~gianlucad@host61-81-dynamic.245-95-r.retail.telecomitalia.it] has joined #ruby-lang
Pip [Pip!~Pip@176.214.4.186] has joined #ruby-lang
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby-lang
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby-lang
tbuehlmann [tbuehlmann!~Tobias@unaffiliated/tovias] has joined #ruby-lang
ajeis_ [ajeis_!~quassel@27.107.80.238] has joined #ruby-lang
lsegal [lsegal!jinx@modemcable249.109-177-173.mc.videotron.ca] has joined #ruby-lang
mksm [mksm!~ramorim@pdpc/supporter/professional/mksm] has joined #ruby-lang
Dreamer3 [Dreamer3!~Dreamer3@74-134-34-116.dhcp.insightbb.com] has joined #ruby-lang
jasox [jasox!~jasox@178.239.26.139] has joined #ruby-lang
takaokouji [takaokouji!~takaokouj@nat35.mable.ne.jp] has joined #ruby-lang
<mksm>
my gem needs a config file ... where should it be stored? it would be pointless to pack it along with the gem ...
<injekt>
mksm: isn't that what user wide dotfiles are for?
[dmp] [[dmp]!~dennis@users.d75.net] has joined #ruby-lang
[dmp] [[dmp]!~dennis@unaffiliated/dmp/x-546784] has joined #ruby-lang
[dmp] [[dmp]!~dennis@unaffiliated/dmp/x-546784] has joined #ruby-lang
Defusal [Defusal!DeFi@dsl-240-234-163.telkomadsl.co.za] has joined #ruby-lang
Defusal [Defusal!DeFi@unaffiliated/ecnerifed] has joined #ruby-lang
[dmp] [[dmp]!~dennis@unaffiliated/dmp/x-546784] has joined #ruby-lang
[dmp] [[dmp]!~dennis@users.d75.net] has joined #ruby-lang
[dmp] [[dmp]!~dennis@unaffiliated/dmp/x-546784] has joined #ruby-lang
[dmp] [[dmp]!~dennis@users.d75.net] has joined #ruby-lang
[dmp] [[dmp]!~dennis@unaffiliated/dmp/x-546784] has joined #ruby-lang
[dmp] [[dmp]!~dennis@unaffiliated/dmp/x-546784] has joined #ruby-lang
[dmp] [[dmp]!~dennis@users.d75.net] has joined #ruby-lang
[dmp] [[dmp]!~dennis@unaffiliated/dmp/x-546784] has joined #ruby-lang
<mksm>
injekt: a-ha! right, thanks
jordan` [jordan`!~gromit@2001:660:3302:2826:225:90ff:fe20:d9a8] has joined #ruby-lang
burgestrand [burgestrand!~burgestra@h-45-63.a155.priv.bahnhof.se] has joined #ruby-lang
flowerpot [flowerpot!~flower@ec2-50-112-40-44.us-west-2.compute.amazonaws.com] has joined #ruby-lang
flowerpot [flowerpot!~flower@ec2-50-112-40-44.us-west-2.compute.amazonaws.com] has joined #ruby-lang
ajeis___ [ajeis___!~quassel@49.200.18.106] has joined #ruby-lang
flowerpot [flowerpot!~flower@ec2-50-112-40-44.us-west-2.compute.amazonaws.com] has joined #ruby-lang
gix [gix!~gix@e180025047.adsl.alicedsl.de] has joined #ruby-lang
bl00dshooter [bl00dshooter!~bl00dshoo@201.76.213.131] has joined #ruby-lang
Defusal [Defusal!DeFi@dsl-240-252-45.telkomadsl.co.za] has joined #ruby-lang
Defusal [Defusal!DeFi@unaffiliated/ecnerifed] has joined #ruby-lang
takaokouji [takaokouji!~takaokouj@nat35.mable.ne.jp] has joined #ruby-lang
flowerpot [flowerpot!~flower@ec2-50-112-22-115.us-west-2.compute.amazonaws.com] has joined #ruby-lang
flowerpot [flowerpot!~flower@ec2-50-112-22-115.us-west-2.compute.amazonaws.com] has joined #ruby-lang
dr0id [dr0id!~andy@unaffiliated/dr0id] has joined #ruby-lang
benanne [benanne!~rijdier@2.185-241-81.adsl-dyn.isp.belgacom.be] has joined #ruby-lang
Nisstyre [Nisstyre!~yours@out-on-209.wireless.telus.com] has joined #ruby-lang
jondot2 [jondot2!~jondot@77.126.80.113] has joined #ruby-lang
comboy [comboy!~quassel@tesuji.pl] has joined #ruby-lang
dejongge [dejongge!~jonke@pD9E0CB9A.dip0.t-ipconnect.de] has joined #ruby-lang
Pip [Pip!~Pip@176.214.4.186] has joined #ruby-lang
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby-lang
ryez [ryez!b49d0926@gateway/web/freenode/ip.180.157.9.38] has joined #ruby-lang
RomD [RomD!~Roman@nrbg-4dbe099b.pool.mediaWays.net] has joined #ruby-lang
ajeis [ajeis!~quassel@182.156.53.134] has joined #ruby-lang
ajeis_ [ajeis_!~quassel@27.107.1.204] has joined #ruby-lang
TvL2386 [TvL2386!~tom@ip5452a95e.adsl-surfen.hetnet.nl] has joined #ruby-lang
stephenp [stephenp!~stephenp@gatepost.hos.net] has joined #ruby-lang
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby-lang
saLOUt [saLOUt!~rriemann@91-65-223-29-dynip.superkabel.de] has joined #ruby-lang
Nisstyre [Nisstyre!~yours@c-208-90-102-250.netflash.net] has joined #ruby-lang
Codif [Codif!~codif@84.120.204.160.dyn.user.ono.com] has joined #ruby-lang
Nisstyre [Nisstyre!~yours@c-208-90-102-250.netflash.net] has joined #ruby-lang
ankurgel [ankurgel!~ankur@59.178.63.15] has joined #ruby-lang
retro|cz [retro|cz!~retro@106.142.broadband6.iol.cz] has joined #ruby-lang
Spooner [Spooner!~Miranda@host-78-144-139-130.as13285.net] has joined #ruby-lang
Codif [Codif!~codif@84.120.204.160.dyn.user.ono.com] has joined #ruby-lang
ankurgel [ankurgel!~ankur@59.178.63.15] has joined #ruby-lang
wimplash [wimplash!~Adium@rrcs-98-103-125-98.central.biz.rr.com] has joined #ruby-lang
wimplash [wimplash!~Adium@rrcs-98-103-125-98.central.biz.rr.com] has quit [#ruby-lang]
jasox [jasox!~jasox@178.239.26.139] has joined #ruby-lang
ricardovaleriano [ricardovaleriano!~ricardova@186.220.217.229] has joined #ruby-lang
ajeis [ajeis!~quassel@14.194.192.202] has joined #ruby-lang
bl00dshooter [bl00dshooter!~bl00dshoo@201.76.213.131] has joined #ruby-lang
andrewhl [andrewhl!~andrew@24-246-14-26.cable.teksavvy.com] has joined #ruby-lang
burgestrand1 [burgestrand1!~burgestra@h-45-63.a155.priv.bahnhof.se] has joined #ruby-lang
virunga [virunga!~virunga@151.64.42.140] has joined #ruby-lang
AlHafoudh [AlHafoudh!~textual@dsl-static-173.212-5-200.telecom.sk] has joined #ruby-lang
ajeis [ajeis!~quassel@14.194.194.201] has joined #ruby-lang
imperator [imperator!~Daniel@63-225-247-192.hlrn.qwest.net] has joined #ruby-lang
JEG2 [JEG2!~JEG2@ip72-198-103-217.ok.ok.cox.net] has joined #ruby-lang
wallerdev [wallerdev!~wallerdev@72.44.102.30] has joined #ruby-lang
urbanmonk [urbanmonk!~rom@bas1-toronto08-1279487303.dsl.bell.ca] has joined #ruby-lang
darkf [darkf!~darkf_dix@unaffiliated/darkf] has joined #ruby-lang
Nisstyre [Nisstyre!~yours@c-208-90-102-250.netflash.net] has joined #ruby-lang
<rue>
The problem is that the converter won't know what is and isn't valid
<chris2>
no
<chris2>
the problem is that encode to the same encoding doesnt do anything
<chris2>
even if :invalid or :undef is given
<zzak>
what about Encoding.default_internal
<chris2>
or it could check valid_?
<chris2>
zzak: thats utf8
<chris2>
see above
<rue>
How does it know which bytes are which glyph? I don't understand
<chris2>
if i actually go utf8 -> utf16 -> utf8 it works
<chris2>
rue: ok
<burgestrand>
rue: same way it knows if it’s valid utf8 or not
<chris2>
i force_encoding utf8
<chris2>
so it think its utf8
<chris2>
and most of it is
<chris2>
so it can do utf8 to utf16 properly
<chris2>
and it there is an error, it does :undef/:invalid
* chris2
checks the code
ankurgel [ankurgel!~ankur@59.178.36.147] has joined #ruby-lang
<rue>
burgestrand: Which is how?
ajeis [ajeis!~quassel@49.200.209.199] has joined #ruby-lang
<burgestrand>
so, assuming string is "\xC3\xC3\xA4".force_encoding("UTF-8").valid_encoding? returns false, whereas "\xC3\xA4".force_encoding("UTF-8").valid_encoding? returns true
<rue>
Binary data has no structure
<burgestrand>
UTF8 does
<chris2>
if (encoding_equal(sname, dname)) {
<chris2>
sname = "";
<chris2>
dname = "";
<chris2>
}
<chris2>
heh
<chris2>
so it doesnt do anything
<rue>
burgestrand: How does that work with variable-length encoding?
<burgestrand>
you could walk the string manually and replace invalid characters yourself, but it’s a bit silly
<chris2>
i'll file a bug imo
<zzak>
im actually having the same problem, with a string a lot like burgestrand's
<rue>
I mean, if \xC3\xC4 anD \xC3\xC4\xC5 were both valid
<burgestrand>
rue: for UTF8, a multibyte character is defined by having all of the bytes in the character (except for the last) have its’ 8th bit set
bl00dshooter [bl00dshooter!~bl00dshoo@201.76.213.131] has joined #ruby-lang
<burgestrand>
rue: there are some more rules, but it allows you to walk the string and consume it character by character, more or less; if you read a set of bytes that does not adhere to these rules, *at least* the first of them is invalid
<rue>
Aha, so you can look for a 0 8th bit as a separator
<burgestrand>
rue: in that case, you skip that first byte, and then try to read a character again beginning from the second one, it’ll be a bit expensive but it’ll be correct
<zzak>
burgestrand: you mean String.each_byte?
Natch| [Natch|!~natch@178.73.218.182] has joined #ruby-lang
<burgestrand>
I’ll write it down properly, hard to describe in loose messages like this :p
michael_mbp [michael_mbp!~Marin@31.203.148.187] has joined #ruby-lang
<rue>
Eek
davidw [davidw!~davidw@apache/committer/davidw] has joined #ruby-lang
<rue>
If the character is encoded by a sequence of more than one byte, the first byte has as many leading "1" bits as the total number of bytes in the sequence, followed by a "0" bit,
<burgestrand>
Yeah
<burgestrand>
So, assuming 0xxx xxxx, it must be an ASCII character (and such, a valid character, because UTF8 is ASCII compatible)
<rue>
And a \xC3 would have to be a 2-byte character
<rue>
Interesting
<burgestrand>
Yeah, since it’s 1100 0100
<burgestrand>
Problem is, all the characters part of that sequence must start with 10xx xxxx, but the next \xC3 does not
<burgestrand>
So, the first \xC3 cannot be a valid multibyte character
<chris2>
i mailed ruby-code
<chris2>
*core
<rue>
It seems rather inefficient, but it must not be
<burgestrand>
UTF8 is kind of inefficient because of this :p
<burgestrand>
For example, calculating the length of an UTF8 encoded byte sequence
<burgestrand>
(in comparison to a plain bytesize count)
ddollar [ddollar!~ddollar@pdpc/supporter/professional/ddollar] has joined #ruby-lang
<chris2>
not that bad if you'd used strlen anyway :P
<burgestrand>
:p
<chris2>
theres a very efficient version somewhere
<burgestrand>
but encoding does not change, and the bytes does not change
<piglop>
antinitro: File.join(p1,p2), or Pathname.new(p1).join(p2) (with require 'pathname')
<antinitro>
thanks
michael_mbp [michael_mbp!~Marin@31.203.48.3] has joined #ruby-lang
My_Hearing [My_Hearing!~Mon_Ouie@223.127-244-81.adsl-dyn.isp.belgacom.be] has joined #ruby-lang
My_Hearing [My_Hearing!~Mon_Ouie@subtle/user/MonOuie] has joined #ruby-lang
rubenfonseca [rubenfonseca!~rubenfons@bl6-89-215.dsl.telepac.pt] has joined #ruby-lang
<rubenfonseca>
hi all, I'm looking for a way of embedding the ruby 1.9.3 source on a Xcode 4 project, but I can't find any instructions and I always a lot of errors. Do anyone know any hint for this?
<rubenfonseca>
Or, it that's not possible, at least a way of compiling staticly for armv6, arvm7 and i386 so I can link my project on Xcode
apeiros_ [apeiros_!~apeiros@77-58-113-31.dclient.hispeed.ch] has joined #ruby-lang
aj_ [aj_!~quassel@49.200.211.126] has joined #ruby-lang
<rubenfonseca>
ok, asked on the ruby forums
ajeis [ajeis!~quassel@49.200.211.126] has joined #ruby-lang
jacobwg [jacobwg!~jacobwg@66.sub-75-254-77.myvzw.com] has joined #ruby-lang
retro2 [retro2!~retro@106.142.broadband6.iol.cz] has joined #ruby-lang
rippa [rippa!~rippa@93-181-220-111.adsl.yaroslavl.ru] has joined #ruby-lang
retro|slav [retro|slav!~retro@106.142.broadband6.iol.cz] has joined #ruby-lang
hagabaka [hagabaka!~hagabaka@unaffiliated/hagabaka] has joined #ruby-lang
hahuang65 [hahuang65!~hahuang65@c-24-23-128-23.hsd1.ca.comcast.net] has joined #ruby-lang
Codif [Codif!~codif@84.120.204.160.dyn.user.ono.com] has joined #ruby-lang
ricardovaleriano [ricardovaleriano!~ricardova@186.220.217.229] has joined #ruby-lang
savage- [savage-!~savage-@c-67-180-11-89.hsd1.ca.comcast.net] has joined #ruby-lang
ascarter [ascarter!~ascarter@67-42-86-1.tukw.qwest.net] has joined #ruby-lang
m0wfo [m0wfo!~chris@46.7.242.207] has joined #ruby-lang
<rue>
There's limited information about embedding Ruby (it's not a common use case)
pLameN_4o [pLameN_4o!~Plamen@78-83-72-111.spectrumnet.bg] has joined #ruby-lang
pLameN_4o [pLameN_4o!~Plamen@78-83-72-111.spectrumnet.bg] has quit [#ruby-lang]
nofxx [nofxx!~nofxx@unaffiliated/nofxx] has joined #ruby-lang
dreinull [dreinull!~dreinull@ip-78-94-220-161.unitymediagroup.de] has joined #ruby-lang
mkscrg [mkscrg!~mkscrg@ool-18e4f9d6.dyn.optonline.net] has joined #ruby-lang
bl00dshooter [bl00dshooter!~bl00dshoo@201.76.213.131] has joined #ruby-lang
robgleeson [robgleeson!~rob@subtle/contributor/robgleeson] has joined #ruby-lang
Natch| [Natch|!~natch@178.73.217.67] has joined #ruby-lang
livinded [livinded!~lolwut@pool-108-23-242-132.lsanca.fios.verizon.net] has joined #ruby-lang
<andrewvos>
I'm starting my first clojure project... This is scary :|
<shevy>
oh man andrewvos
<shevy>
you are scary
<andrewvos>
Hi shevy
ryanf [ryanf!~revfitz@adsl-67-122-210-85.dsl.snfc21.pacbell.net] has joined #ruby-lang
<mksm>
can't find the docs for yaml (1.9.2+)
adambeynon [adambeynon!~adambeyno@82-69-1-211.dsl.in-addr.zen.co.uk] has joined #ruby-lang
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
danielvdotcom [danielvdotcom!~danielvdo@cpe-76-172-85-16.socal.res.rr.com] has joined #ruby-lang
bl00dshooter [bl00dshooter!~bl00dshoo@201.76.213.131] has joined #ruby-lang
bl00dsho_ [bl00dsho_!~bl00dshoo@201.76.213.131] has joined #ruby-lang
danielvdotcom [danielvdotcom!~danielvdo@cpe-76-172-85-16.socal.res.rr.com] has quit [#ruby-lang]
NemesisD [NemesisD!~NemesisD@c-50-132-41-113.hsd1.wa.comcast.net] has joined #ruby-lang
danielvdotcom [danielvdotcom!~danielvdo@cpe-76-172-85-16.socal.res.rr.com] has joined #ruby-lang
retro|cz [retro|cz!~retro@106.142.broadband6.iol.cz] has joined #ruby-lang
niklasb_ [niklasb_!~codeslay0@p5B311084.dip0.t-ipconnect.de] has joined #ruby-lang
robbyoconnor [robbyoconnor!~wakawaka@guifications/user/r0bby] has joined #ruby-lang
dreinull- [dreinull-!dreieins@217.18.70.225] has joined #ruby-lang
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
queequeg1 [queequeg1!~chatzilla@c-71-202-152-67.hsd1.ca.comcast.net] has joined #ruby-lang
kyrylo [kyrylo!~kyrylo@subtle/user/kyrylo] has joined #ruby-lang
rushed [rushed!~rushed@cpe-70-116-11-35.austin.res.rr.com] has joined #ruby-lang
quatauta [quatauta!~quatauta@91-67-211-236-dynip.superkabel.de] has joined #ruby-lang
y3llow_ [y3llow_!~y3llow@114-36-230-162.dynamic.hinet.net] has joined #ruby-lang
s0ber_ [s0ber_!~s0ber@114-36-230-162.dynamic.hinet.net] has joined #ruby-lang
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
y3llow [y3llow!~y3llow@114-36-230-162.dynamic.hinet.net] has joined #ruby-lang
lsegal [lsegal!jinx@modemcable249.109-177-173.mc.videotron.ca] has joined #ruby-lang
y3llow [y3llow!~y3llow@114-36-230-162.dynamic.hinet.net] has joined #ruby-lang
<rue>
mksm: Generate them, or use rvm
NemesisD [NemesisD!~NemesisD@c-50-132-41-113.hsd1.wa.comcast.net] has joined #ruby-lang
robgleeson [robgleeson!~rob@subtle/contributor/robgleeson] has joined #ruby-lang
tbuehlmann [tbuehlmann!~Tobias@unaffiliated/tovias] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
WillMarshall [WillMarshall!~willmarsh@203.118.179.237] has joined #ruby-lang
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby-lang
<andrewvos>
I feel if I have to argue TDD one more time I'm going to find a new industry.
<context>
what is tdd?
<context>
andrewvos: :p JK !
<context>
dont have a stroke
<andrewvos>
context: It's a waste of time and has no real benefit.
<andrewvos>
context: Me too
<context>
sure ya are
<josh9>
i run my website from my ubuntu destktop at home and did a url forward to my ip address. there is no way to specify the port on namecheap, so it looks like i'll have to run my thin on port 80. i have to be super user to do that, but thin is not available to superuser. how do i make thin (and rvm) accessible
<josh9>
?
<theconartist>
do you have a router?
<josh9>
theconartist: yeah
<andrewvos>
josh9: proxylocal
<andrewvos>
josh9: or localtunnel
<andrewvos>
josh9: Oh wait I seem to have misread
<andrewvos>
josh9: Disregard everything I said :)
<andrewvos>
josh9: Oh ok wait I read it. Undisregard what I said.
<rue>
Do not regard what was unsaid
<josh9>
andrewvos: so both options are valid for my case? i'll google for them.
<josh9>
sounds like 'not unless' in ruby
<rue>
Can you port-forward in your router?
<bl00dshooter>
yeah
<josh9>
rue: yeah. but usually i port forward to 3000, 4000 etc
<bl00dshooter>
you can probably just forward data from one port to another
<rue>
Usually?
<josh9>
rue: right now i access it using the ip and :3000
<josh9>
rue: what you are saying, is change the 3000 to 80?
<rue>
Your router's your public IP, so just resolve the DNS to that IP:80 and have the router forward 80 to localmachine:whateverport
<josh9>
rue: ok. i hope that after doing it, i'll still be able to access my router's settings page (192.168.1.1)
<josh9>
i guess that's the 'start port' and 'end port'? start port can be 3000 and end port 80?
<josh9>
or the other way around.
<theconartist>
other way
<josh9>
start i 80 and end is 3000
<bl00dshooter>
yes
<bl00dshooter>
start because traffic will come from port 80 and be redirected to port 3000
<theconartist>
and btw for future reference josh9 (not how you should be doing this particular thing) you can use rvmsudo to run as superuser with your environment
<josh9>
theconartist: damn! you are right
<rue>
Hm. The router's internal listener shouldn't be affected?
<rue>
Or you can probably change the web interface port, if not
brianpWins [brianpWins!~brianpWin@S01060024a5c9e438.vc.shawcable.net] has joined #ruby-lang
<josh9>
bl00dshooter: when i change the start port to 80 on my router i get: Port conflict with other service.
<theconartist>
josh9: that means you have a dropdown that lets you pick "http" for example as a predefined service
<theconartist>
and you probably wont be able to change the exit port
<theconartist>
so it's back to either using rvmsudo or iptables
<bl00dshooter>
yes
<bl00dshooter>
there is already something
<bl00dshooter>
using port 80
<bl00dshooter>
on your router
<bl00dshooter>
but why can't thin run
<bl00dshooter>
as super user?
<theconartist>
he can
<bl00dshooter>
then why doesn't he run it as a superuser lol
<theconartist>
because he didn't know how before
<josh9>
when i try to use rvmsudo i get: eventmachine.rb:572:in `start_tcp_server': no acceptor (RuntimeError)
<josh9>
(it only happens when i specify port 80)
<josh9>
rvmsudo thin -p 80 start
<theconartist>
start using rackup isntead
<josh9>
theconartist: oh
kororaa [kororaa!~kororaa@adsl-63-194-250-149.dsl.lsan03.pacbell.net] has joined #ruby-lang
kororaa [kororaa!~kororaa@adsl-63-194-250-149.dsl.lsan03.pacbell.net] has quit [#ruby-lang]
<josh9>
theconartist: rackup -s thin -p 80 config.ru give me the same error
<theconartist>
did you forget the rvmsudo?
<theconartist>
it works just fine for me
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
<josh9>
oh. 1 sec
<josh9>
theconartist: rvmsudo rackup -s thin -p 80 config.ru the same error
looopy [looopy!~looopy@pool-141-156-48-205.washdc.btas.verizon.net] has joined #ruby-lang
<shevy>
how do I sort a hash alhapbetically on its keys?
<shevy>
*alphabetically
<josh9>
Hash[h.sort]
<josh9>
shevy: ^^
<shevy>
thanks josh9
hagabaka [hagabaka!~hagabaka@unaffiliated/hagabaka] has joined #ruby-lang
<bl00dshooter>
or h.sort!
<bl00dshooter>
lol
curtism [curtism!~curtis@bas11-montreal02-1128531121.dsl.bell.ca] has joined #ruby-lang
<theconartist>
no bl00dshooter .sort returns an array of [k,v]'s
<bl00dshooter>
yes
<bl00dshooter>
what's the problem?
mkscrg [mkscrg!~mkscrg@ool-18e4f9d6.dyn.optonline.net] has joined #ruby-lang
<theconartist>
well because #sort! doesn't exist for hashes (at least in 1.9.3)
<bl00dshooter>
ops
<bl00dshooter>
I just realized that
<shevy>
hey, that it returns an array stumped me initially too
<shevy>
I am now using this though, and it seems to work. not sure if it is correct :P
<josh9>
lsof -i :80 return nothing so i know it's not being used. what else can be the issue with running on port 80?
<josh9>
i can try nginx but not sure if there is a point to try it before it works with thin.
burgestrand [burgestrand!~burgestra@h-45-63.a155.priv.bahnhof.se] has joined #ruby-lang
<theconartist>
shevy: shevy shouldn
<theconartist>
woops
<theconartist>
it should be |element1, element2| shouldn't it?
dfr|mac [dfr|mac!~dfr|work@ool-18baf7e7.dyn.optonline.net] has joined #ruby-lang
<theconartist>
key <=> key will always be 0
<theconartist>
you ahve to remember these are array, not hash, methods
<theconartist>
if you wanted to compare keys it would be .sort_by{|a,b| a[0] <=> b[0]}
<josh9>
thin or unicorn? any suggestions?
<theconartist>
if you don't know which by requirements already you should probably just use thin
NemesisD [NemesisD!~NemesisD@c-50-132-41-113.hsd1.wa.comcast.net] has joined #ruby-lang
<josh9>
ok
<theconartist>
"Use what works best for you. Decide what you need and evaluate the available options based on those needs. Don’t pick a tool because GitHub uses it, pick a tool because it solves the problems you have."
<josh9>
theconartist: i figure out the issue with port 80. nginx was running and after stopping it i can run thin with sudo on port 80!
<theconartist>
>.<
<josh9>
but when i try to access the url in the browser, i get the pop up for the router's settings.
<theconartist>
sounds like you put the target as 192.168.1.1 instead of your internal ip
<josh9>
theconartist: both go to the settings of my router
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby-lang
<theconartist>
what do you mean josh9 ?
<josh9>
theconartist: i run my site on port 80 now, but it makes no diffence - both 192.168.1.1 and the public ip of my machine point to my router's settings
<theconartist>
nonono
<theconartist>
ifconfig | grep addr:192
<theconartist>
that first number is the number you want to forward to
<theconartist>
actually it might not start with 192, but it likely does
<josh9>
theconartist: wait. r u taking about my router's port forwarding settings?
<theconartist>
yes
Aengus [Aengus!~Aengus@cloudysunday.com] has joined #ruby-lang
<josh9>
theconartist: if you want me to change the 'start port' to 80, i already tried it.
<theconartist>
josh9: no im talking about the destination IP
<josh9>
theconartist: the destination ip is my internal ip - in my case it's 192.168.1.2 but the problem is the starting and ending ports.
<josh9>
i can't set it to 80
<theconartist>
theres 2 reasons that might be
<bl00dshooter>
have you tried googling about your router
<theconartist>
1. the most likely there is a drop down menu where you pick 'http' or 'web server'
<theconartist>
instead of entering the port manually
<theconartist>
or 2. your router config page is open to the public and consuming port 80 for itself
<josh9>
theconartist: there is a service type. i can chose: tcp/udp or tpc or udp
<theconartist>
that's not what im talking about
<josh9>
theconartist: yes. #2
<josh9>
my config page is public
<josh9>
how do i make it private
<bl00dshooter>
it varies from router to router
<theconartist>
are you sure it's public?
<bl00dshooter>
so you need to find info about your model
<theconartist>
you can't forget that it knows that you are making the request from inside
<josh9>
i am not sure, but when i go to my public ip, i see a pop up
<josh9>
oh
<theconartist>
anyway bbl
<vereteran>
i have a stupid encoding issue: nokogiri returns me \u00a0 symbols (unicode no-break space), i'm trying to replace that thing with simple space (0x20), but gsub and tr throw ArgumentError: invalid byte sequence in UTF-8 exception. how do i fix that?
r0bby [r0bby!~wakawaka@guifications/user/r0bby] has joined #ruby-lang
<dreinull>
how do I replace statuses with a variable? project.statuses.push Status.new(:name => 'Foo2!')
<zzak>
raggi: ping
<hagabaka>
vereteran, is it specific to nokogiri? do you have a test case?
lsegal` [lsegal`!jinx@modemcable249.109-177-173.mc.videotron.ca] has joined #ruby-lang
<vereteran>
hagabaka, seems i've fixed the issue. did # encoding: utf-8 in the beginning of file and monkey-patched Nokogiri::XML::Element#text method to this: super.try(:tr, "\u00a0", ' ')
<vereteran>
works ok
comboy_ [comboy_!~quassel@tesuji.pl] has joined #ruby-lang
yxhvuud [yxhvuud!mongo@h-85-82.a212.priv.bahnhof.se] has joined #ruby-lang
<hagabaka>
I thought the encoding comment was just for the ruby file text
<hagabaka>
and you're using only ASCII text, so isn't it unnecessary?
a3li` [a3li`!~alex@gentoo/developer/a3li] has joined #ruby-lang
<josh9>
theconartist: thanks, i had to chose http in the dropdown, and it uses port 80. i tried changing to port 3000 but it didn't let me, so rvmsudo works!
<josh9>
no it's time for some nginx!
slyphon [slyphon!~weechat@unaffiliated/slyphon] has joined #ruby-lang
<vereteran>
hagabaka, yeah, you're right. it was excessive
<vereteran>
somewhy i thought \u00a0 will not be understood by ruby w/o this directive
<rue>
Essentially it makes your ' ' be unicode
RomyEatsDrupal [RomyEatsDrupal!~stickycak@cpe-69-203-115-155.nyc.res.rr.com] has joined #ruby-lang
Indian [Indian!~Indian@unaffiliated/londonmet050] has quit [#ruby-lang]
<hagabaka>
it's only needed if you have the literal character in the file, like "ê" instead of "\u00EA"
<hagabaka>
btw I just noticed "# encoding: utf-8" works in irb too
antinitro_ [antinitro_!~adam@cpc1-stap4-0-0-cust418.12-2.cable.virginmedia.com] has joined #ruby-lang
mdel [mdel!~mdel@pool-71-175-17-16.phlapa.fios.verizon.net] has joined #ruby-lang
Rich_Morin [Rich_Morin!~rdm@cfcl.com] has joined #ruby-lang
kyrylo_ [kyrylo_!~kyrylo@46.118.236.121] has joined #ruby-lang
kyrylo_ [kyrylo_!~kyrylo@subtle/user/kyrylo] has joined #ruby-lang
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby-lang
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby-lang
longtheta_ [longtheta_!u4275@gateway/web/irccloud.com/x-btpcowidjqndmgyx] has joined #ruby-lang
necromancer_ [necromancer_!u4538@gateway/web/irccloud.com/x-uoeznffamzgnyhxb] has joined #ruby-lang
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby-lang
Aaaarg [Aaaarg!~Arthur@121-74-36-221.telstraclear.net] has joined #ruby-lang
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby-lang
robotmay [robotmay!~robotmay@5ad8f1da.bb.sky.com] has joined #ruby-lang
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby-lang
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby-lang
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby-lang
cesario_ [cesario_!u2444@gateway/web/irccloud.com/x-grwhlyurjiohalnd] has joined #ruby-lang
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby-lang
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby-lang
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby-lang
codelol_ [codelol_!u3386@gateway/web/irccloud.com/x-eybkpufywiyukoff] has joined #ruby-lang
simon_weber [simon_weber!u4119@gateway/web/irccloud.com/x-gbrkvhobgdxoieyu] has joined #ruby-lang
Nisstyre [Nisstyre!~yours@c-208-90-102-250.netflash.net] has joined #ruby-lang
yfeldblum [yfeldblum!~Jay@c-98-218-48-253.hsd1.md.comcast.net] has joined #ruby-lang
dejongge [dejongge!~jonke@pD9E0CB9A.dip0.t-ipconnect.de] has joined #ruby-lang
akahn [akahn!u2243@gateway/web/irccloud.com/x-aaxpcevvezisffun] has joined #ruby-lang
abuiles [abuiles!u1641@gateway/web/irccloud.com/x-qirupmptnzovgiie] has joined #ruby-lang
dous_ [dous_!~dous@cm171.sigma67.maxonline.com.sg] has joined #ruby-lang
agib [agib!u781@gateway/web/irccloud.com/x-pnscjfdvlreljctd] has joined #ruby-lang
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
comboy [comboy!~quassel@tesuji.pl] has joined #ruby-lang
amerine [amerine!~mturner@bc171197.bendcable.com] has joined #ruby-lang
dkannan [dkannan!u480@gateway/web/irccloud.com/x-ynxpagcsccmqwutv] has joined #ruby-lang
necromancer_ [necromancer_!u4538@gateway/web/irccloud.com/x-cldjrtxljesvndvo] has joined #ruby-lang
Bwild [Bwild!~irc@netblock-75-79-22-130.dslextreme.com] has joined #ruby-lang
<josh9>
how to pass environment variable to irb? i tried this: irb ENV["RACK_ENV"] = "test"
<robgleeson>
RACK_ENV=test irb
JdpB42 [JdpB42!~sdfdsf@cpe-71-72-126-188.insight.res.rr.com] has joined #ruby-lang
<josh9>
robgleeson: thanks
kryl99 [kryl99!~kryl99@202.161.19.241] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
cgag [cgag!~cgag@65.28.12.212] has joined #ruby-lang
<Spooner>
I'm trying to get a list of gems from bundler. I have :default and :development sets and have both installed, but I want something that does Bundler.setup(:default).gems (that is, gives me a list ONLY of non-development gems). Anyone have any idea how to differentiate them like that?
<Spooner>
Bundler.setup(:default).gems (this seems to ignore the request for just :defaults and gives all installed gems).
Nisstyre [Nisstyre!~yours@c-208-90-102-250.netflash.net] has joined #ruby-lang
<raggi>
zzak: pong
Pip [Pip!~Pip@176.214.4.186] has joined #ruby-lang
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby-lang
<raggi>
hagabaka: most of what you say is true, but there are some details
<raggi>
hagabaka: coding comments are kind-of only required if you want to use non-ascii literals, but they have other effects
<raggi>
hagabaka: such as making every literal in the file utf-8 compatible
<raggi>
this can avoid some other issues (but can also introduce the same issues it avoids)