Topic for #ruby is now Ruby programming language || ruby-lang.org || RUBY SUMMER OF CODE! rubysoc.org/ || Paste >3 lines of text in http://pastie.org || Para a nossa audiencia em portugues http://ruby-br.org/
Ammar_Frameworks [Ammar_Frameworks!~hassaa10@gatek.thls.bbc.co.uk] has joined #ruby
NinoScript [NinoScript!~anonymous@pc-50-243-241-201.cm.vtr.net] has joined #ruby
tommyvyo_ [tommyvyo_!~tommyvyo@38.123.129.115] has joined #ruby
<wallerdev>
nvm
kdmurray [kdmurray!~kdmurray@50.98.145.30] has joined #ruby
pootpoot [pootpoot!~pootpoot@38.108.250.130] has quit [#ruby]
dyer [dyer!~dyer@108-193-172-174.lightspeed.tukrga.sbcglobal.net] has joined #ruby
dyer [dyer!~dyer@unaffiliated/dyer] has joined #ruby
emocakes [emocakes!~om@189-11-46-97.mganm703.dsl.brasiltelecom.net.br] has joined #ruby
albemuth [albemuth!~albemuth@201.198.78.18] has joined #ruby
i8degrees [i8degrees!~i8degrees@ip70-178-131-208.ks.ks.cox.net] has joined #ruby
hasrb [hasrb!~hasrb@108-85-134-26.lightspeed.austtx.sbcglobal.net] has joined #ruby
jbpros [jbpros!~jbpros@89-178-112-217.dyn.adsl.belcenter.be] has joined #ruby
albemuth [albemuth!~albemuth@201.198.78.18] has joined #ruby
cyri__ [cyri__!~cyri_@jem75-1-87-88-118-80.dsl.sta.abo.bbox.fr] has joined #ruby
dotnull [dotnull!~dot_null@office.t8webware.com] has joined #ruby
ckrailo [ckrailo!~ckrailo@208.86.167.247] has joined #ruby
randym [randym!~randym@113x33x226x118.ap113.ftth.ucom.ne.jp] has joined #ruby
cableray [cableray!~cableray@wl-dhcp150-181.Mines.EDU] has joined #ruby
pabloh [pabloh!~pablo@186.22.82.39] has joined #ruby
h4mz1d [h4mz1d!~hamfz@130.160.40.63] has joined #ruby
Hellojere [Hellojere!~Hellojere@89.7.90.160] has joined #ruby
ap3mantus [ap3mantus!~ap3mantus@c-98-217-179-108.hsd1.ma.comcast.net] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
replore [replore!~replore@203.152.213.161.static.zoot.jp] has joined #ruby
raincole_ [raincole_!~raincole@140.112.239.113] has joined #ruby
tomzx [tomzx!~tomzx@dsl-156-157.aei.ca] has joined #ruby
cableray [cableray!~cableray@wl-dhcp150-181.Mines.EDU] has joined #ruby
rflorianobr [rflorianobr!~rfloriano@200.146.44.90.dynamic.adsl.gvt.net.br] has joined #ruby
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby
quest88 [quest88!~quest88@12.181.53.123] has joined #ruby
thomasdebenning [thomasdebenning!~thomasdeb@c-69-181-139-137.hsd1.ca.comcast.net] has joined #ruby
friskd [friskd!~friskd@75.79.184.2] has joined #ruby
tesmar [tesmar!~tesmar@cpe-024-163-059-067.nc.res.rr.com] has joined #ruby
dnyy [dnyy!u2106@gateway/web/irccloud.com/x-skjjyobjpcywkiro] has joined #ruby
badabim [badabim!~badabim@67.218.110.103] has joined #ruby
senj [senj!~senj@S01060026f323bcdf.ed.shawcable.net] has joined #ruby
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby
emmanuelux [emmanuelux!~emmanuel@2a01:e35:2e4d:9010:21d:60ff:fe0e:b818] has joined #ruby
Araxia_ [Araxia_!~Araxia@173-164-68-213-Oregon.hfc.comcastbusiness.net] has joined #ruby
redgetan [redgetan!~redgetan@CPE0023bee17c0e-CM0023bee17c0b.cpe.net.cable.rogers.com] has joined #ruby
wmoxam [wmoxam!~wmoxam@pdpc/supporter/active/wmoxam] has joined #ruby
Banistergalaxy [Banistergalaxy!~AndChat@222.153.223.47] has joined #ruby
dankest [dankest!~dankest@wsip-174-75-64-190.sb.sd.cox.net] has joined #ruby
Targen [Targen!~iguana@190.39.181.108] has joined #ruby
jmontross [jmontross!~Adium@static-96-236-65-137.snfcca.dsl-w.verizon.net] has quit [#ruby]
headius [headius!~headius@71-210-154-45.mpls.qwest.net] has joined #ruby
banisterfiend [banisterfiend!~baniseter@122.63.237.95] has joined #ruby
davidcelis [davidcelis!~david@c-76-115-58-79.hsd1.or.comcast.net] has joined #ruby
badabim [badabim!~badabim@67.218.110.103] has joined #ruby
Retistic [Retistic!~adam@72.54.242.201] has joined #ruby
dankest [dankest!~dankest@wsip-174-75-64-190.sb.sd.cox.net] has joined #ruby
Skaag [Skaag!~Skaag@cpe-67-247-51-89.nyc.res.rr.com] has joined #ruby
mads- [mads-!~mads@2808ds1-by.0.fullrate.dk] has quit [#ruby]
akem [akem!~akem@unaffiliated/akem] has joined #ruby
badabim [badabim!~badabim@67.218.110.103] has joined #ruby
macmartine [macmartine!~macmartin@c-24-21-112-60.hsd1.or.comcast.net] has quit [#ruby]
nari [nari!~nari@2001:268:306:1:f2de:f1ff:fe55:2de0] has joined #ruby
RomD [RomD!~Roman@nrbg-4d0760c5.pool.mediaWays.net] has joined #ruby
davidcelis [davidcelis!~david@c-76-115-58-79.hsd1.or.comcast.net] has joined #ruby
fenix45 [fenix45!~fenix45@CPE0023bee17c0e-CM0023bee17c0b.cpe.net.cable.rogers.com] has joined #ruby
rickmasta [rickmasta!~rickmasta@pool-71-183-247-164.nycmny.fios.verizon.net] has joined #ruby
Seppman [Seppman!~sepp@cpe90-146-41-35.liwest.at] has joined #ruby
beseku [beseku!~beseku@p31228-ipngn2501marunouchi.tokyo.ocn.ne.jp] has joined #ruby
strife25 [strife25!~strife25@cpe-098-026-018-050.nc.res.rr.com] has joined #ruby
fenix45 [fenix45!~fenix45@CPE0023bee17c0e-CM0023bee17c0b.cpe.net.cable.rogers.com] has joined #ruby
ferbass [ferbass!~ferbass@177.80.253.128] has joined #ruby
fenix45 [fenix45!~fenix45@CPE0023bee17c0e-CM0023bee17c0b.cpe.net.cable.rogers.com] has joined #ruby
sbanwart [sbanwart!~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net] has joined #ruby
tesmar [tesmar!~tesmar@cpe-024-163-059-067.nc.res.rr.com] has joined #ruby
thomasdebenning [thomasdebenning!~thomasdeb@c-69-181-139-137.hsd1.ca.comcast.net] has joined #ruby
iamjarvo [iamjarvo!~Adium@c-71-230-13-201.hsd1.nj.comcast.net] has joined #ruby
wilmoore [wilmoore!~wilmoore@c-67-190-17-108.hsd1.co.comcast.net] has joined #ruby
hadees [hadees!~hadees@72-48-91-73.dyn.grandenetworks.net] has joined #ruby
dyer [dyer!~dyer@108-193-172-174.lightspeed.tukrga.sbcglobal.net] has joined #ruby
dyer [dyer!~dyer@unaffiliated/dyer] has joined #ruby
rubyruy [rubyruy!~ruy@76.77.91.41] has joined #ruby
wenbert [wenbert!~wenbert@120.28.213.92] has joined #ruby
<mars2686_>
Has anyone done any integration testing for an app that uses omniauth? I'm having some issues testing once I redirect to twitter / facebook's authentication page.
Hanmac [Hanmac!~hanmac@p50845555.dip0.t-ipconnect.de] has joined #ruby
MasterIdler_ [MasterIdler_!~MasterIdl@75-119-244-141.dsl.teksavvy.com] has joined #ruby
pnegri [pnegri!~patrickne@177.33.239.35] has joined #ruby
radmacd [radmacd!~radmacd@modemcable055.68-82-70.mc.videotron.ca] has quit [#ruby]
hcchien [hcchien!~hcchien@74.117.61.202] has quit [#ruby]
ilyam [ilyam!~ilyam@c-67-188-113-128.hsd1.ca.comcast.net] has joined #ruby
roadze [roadze!~roadze@119.224.137.97] has joined #ruby
roadze [roadze!~roadze@119.224.137.97] has joined #ruby
akem [akem!~akem@253.195.84.79.rev.sfr.net] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
steampunkey [steampunkey!4e868a42@gateway/web/freenode/ip.78.134.138.66] has joined #ruby
cobragoat [cobragoat!~cobragoat@c-98-244-28-157.hsd1.ca.comcast.net] has joined #ruby
<steampunkey>
can i define functions that operate on blocks of code (like an UNTILL loop) in ruby, and if so, how?
savage- [savage-!~savage-@c-67-180-11-89.hsd1.ca.comcast.net] has joined #ruby
<steampunkey>
i don't know ruby (obviously?)
akem [akem!~akem@253.195.84.79.rev.sfr.net] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
banister_ [banister_!~baniseter@118.82.185.158] has joined #ruby
<banister_>
steampunkey: Yeah
<banister_>
steampunkey: can you give an example (with syntax) of the kind of control structure you want to build
<shevy>
steampunkey typically on blocks. array.each {|member| member * 2 }
<drizz>
steampunkey: you can use the `until` keyword in Ruby, too, but it is highly unrecommended
<banister_>
steampunkey: weren't you talking about constructing control structures from scratch?
<steampunkey>
banister_: switch_and(a, b) { case '0': print 'both are zero!' } <- smth like that, idk
dingus9 [dingus9!~dingus7@static-50-53-184-8.bvtn.or.frontiernet.net] has joined #ruby
<shevy>
and what is that doing?
<steampunkey>
banister_: adding syntax to ruby
<banister_>
steampunkey: Yeah
<banister_>
steampunkey: i did it with if/else
<steampunkey>
shevy: like switch, but compares two arguments. just an example.
<banister_>
steampunkey: Yeah, well, interestingly enough, the way we perform infinite loops in ruby is using a method
<banister_>
loop { puts "hi!" }
<steampunkey>
now if you rubify the C-like snytax up there i won't mind. i'm just asking if it's possible to extend ruby's
<banister_>
that's not built-in
<banister_>
steampunkey: did you see the link i just posted?
ghosTM55 [ghosTM55!~user@li279-245.members.linode.com] has joined #ruby
robyurkowski [robyurkowski!~robyurkow@205.233.80.139] has joined #ruby
<banister_>
steampunkey: that switch_and thing is easy enough i think
<banister_>
it would look like this: switch_and(a, b) { case(0) { puts "both are zero!" }; case(1) { puts "both are 1!" } }
<banister_>
steampunkey: ok?
maletor [maletor!~maletor@c-69-181-24-86.hsd1.ca.comcast.net] has joined #ruby
<banister_>
steampunkey: except you probably cant use the 'case' method ;)
<banister_>
anything else would likely be fine however
<steampunkey>
banister_: can you do it so it falls trough (that's kinda the case for switch-case ;-) )?
<banister_>
steampunkey: Yeah you might be able to
<banister_>
steampunkey: but you wouldn't get any of the performance advantages of a fall-through case, as you would in C
sleepwalker__ [sleepwalker__!~sleepwalk@178.176.131.235] has joined #ruby
<steampunkey>
banister_: well sure. i wouldn't try to find that in #ruby, no offense ;-D
<banister_>
steampunkey: :)
<banister_>
steampunkey: do you know any ruby?
<steampunkey>
banister_: what i have *seen*, i have forgotten ;-)
<banister_>
steampunkey: oh, so you're just interested in ruby for its ability to build your own syntax?
<steampunkey>
yes
magic_catz [magic_catz!~magic_cat@CPE0023bee17c0e-CM0023bee17c0b.cpe.net.cable.rogers.com] has joined #ruby
<banister_>
steampunkey: cool, yeah ruby is great for that
<steampunkey>
banister_: i mean will i be able to include my lib, and have the rest of the code in the .rb be in my own syntax and run?
<banister_>
steampunkey: Yes
<steampunkey>
awesome
<steampunkey>
thanks, banister_
<banister_>
np
<steampunkey>
i don't suppose you'd want to also take a crack at defining the C-like switch syntax? :-)
<banister_>
steampunkey: did you see my code for the C-like if syntax?
<banister_>
i posted it twice already i think :)
<steampunkey>
with the fall-through?
<banister_>
no, but fall through isnt that hard
<banister_>
it's just a matter of knowing the order of things
<banister_>
and automatically calling the next one in order
<banister_>
when the previous one didnt perform an exit
<steampunkey>
afaics you just asked me if the result syntax is acceptable
<steampunkey>
i didn't notice any ruby code that would support it
<banister_>
result?
mythmon [mythmon!~mythmon@osuosl/staff/Mythmon] has joined #ruby
<dingus9>
Can someone shed some light on ruby behavior I don't understand?. http://pastebin.com/zAPkY0JA Seems to me to be a difference between static string and variable.
dagnachewa [dagnachewa!~dagnachew@modemcable142.238-179-173.mc.videotron.ca] has joined #ruby
<steampunkey>
banister_: what you wrote is what the user would write to use the switch, how would i enable him to be able to use that syntax?
adamkittelson [adamkittelson!~adamkitte@c-24-23-252-19.hsd1.ca.comcast.net] has joined #ruby
senthil [senthil!~senthil@99-51-1-6.lightspeed.snjsca.sbcglobal.net] has joined #ruby
<senthil>
Is there an editrc line that fixes cntrl+ arrow keys to work in pry?
<senthil>
Right now I get [D when I press cntrl + left
<banister_>
senthil: try #pry
mars2686 [mars2686!~mars2686@c-76-17-125-148.hsd1.ga.comcast.net] has joined #ruby
<banister_>
steampunkey: ok, holdon
<banister_>
steampunkey: ill have a go at something simple
badabim [badabim!~badabim@adsl-71-131-15-28.dsl.sntc01.pacbell.net] has joined #ruby
<steampunkey>
banister_: ok. and thanks
mattyohe [mattyohe!~mattyohe@2620:0:e50:3011:3c23:47ed:56c0:b089] has joined #ruby
n00b_gloves [n00b_gloves!~n00b_glov@CPE0023bee17c0e-CM0023bee17c0b.cpe.net.cable.rogers.com] has joined #ruby
cconstantine [cconstantine!~cconstant@c-24-130-112-59.hsd1.ca.comcast.net] has joined #ruby
thomasdebenning [thomasdebenning!~thomasdeb@c-69-181-139-137.hsd1.ca.comcast.net] has joined #ruby
<banister_>
steampunkey: might take about 20 mins cos im a bit busy
<dingus9>
any takers on my question?
Hanmac [Hanmac!~hanmac@p50844F12.dip0.t-ipconnect.de] has joined #ruby
<steampunkey>
banister_: don't waste your time on me then. thanks for the effort. i'll figure it out, the main thing was to find out it can be done. i'd probably have to re-learn it afterwards anyway. cya
<banister_>
steampunkey: wait
<banister_>
steampunkey: im half way through
<steampunkey>
really, it's fine
<banister_>
steampunkey: no, i dont want the work ive done so far to be for nothing ;)
<banister_>
i wont be 20 mins
<banister_>
probably another 5-10
centipedefarmer [centipedefarmer!~centipede@75-170-150-51.desm.qwest.net] has joined #ruby
<steampunkey>
banister_: how many lines do you have by now?
<banister_>
steampunkey: about 20
<banister_>
30*
<steampunkey>
:-D
<steampunkey>
banister_: drop it really.
<steampunkey>
look, i'm already gone
<steampunkey>
still thankful
acidfrost [acidfrost!~acidfrost@unaffiliated/kiten] has joined #ruby
<steampunkey>
:-)
steampunkey [steampunkey!4e868a42@gateway/web/freenode/ip.78.134.138.66] has quit [#ruby]
p0y [p0y!~p0y@122.52.126.66] has joined #ruby
eko [eko!~eko@unaffiliated/eko] has joined #ruby
dasfugufish [dasfugufish!~Adium@64-184-237-212.mammothnetworks.com] has joined #ruby
freelanceful [freelanceful!~jamesfend@c-71-228-225-167.hsd1.tn.comcast.net] has joined #ruby
<freelanceful>
hello, I can't for the life of me remember the placeholder helper to use on an input field. Like when the user clicks on the input field, it disappears
alkos333 [alkos333!~alkos333@c-98-228-180-136.hsd1.il.comcast.net] has joined #ruby
<alkos333>
Have you guys had any trouble with the latest sass and ruby 1.9.1?
acidfrost [acidfrost!~acidfrost@unaffiliated/kiten] has quit ["Leaving"]
acidfrost [acidfrost!~acidfrost@unaffiliated/kiten] has joined #ruby
c0rn [c0rn!~c0rn@adsl-69-110-7-189.dsl.pltn13.pacbell.net] has joined #ruby
h4mz1d [h4mz1d!~hamfz@99-0-57-199.lightspeed.tsclal.sbcglobal.net] has joined #ruby
ap3mantus [ap3mantus!~ap3mantus@c-98-217-179-108.hsd1.ma.comcast.net] has joined #ruby
blueadept [blueadept!~blueadept@unaffiliated/blueadept] has joined #ruby
davidcelis [davidcelis!~david@c-76-115-58-79.hsd1.or.comcast.net] has joined #ruby
<banister_>
anone that is interested in the switch statement in ruby with fall through
<Seppman>
is there some keyword, which ends all open blocks? something one can do instead of writing "end end end end" over and over again
<frontendloader>
I'd take that as an indication I need to refactor personally.
thecreators [thecreators!~rskagy@cpe-65-27-201-150.cinci.res.rr.com] has joined #ruby
<Seppman>
true :-) but when writing some quick-and-dirty stuff it would halp :-)
<a_a_g>
Seppman: the problem is, what do you mean by 'all open blocks'?
ttgr [ttgr!liame@nl104-214-64.student.uu.se] has joined #ruby
azureye [azureye!~azureye@wrls-249-26-71.wrls-client.fas.harvard.edu] has joined #ruby
<Seppman>
for example multiple nested ifs (which should be better solved via case, i know
<a_a_g>
Seppman: would you want it to end your 'def'? how about your class definition?
<a_a_g>
where should it stop?
raincole_ [raincole_!~raincole@220-134-147-126.HINET-IP.hinet.net] has joined #ruby
<Seppman>
damn, thats really a problem. i realize it
brownies [brownies!~brownies@unaffiliated/brownies] has joined #ruby
<MarcWeber>
Do any libraries exist which show events by location the way google analytics look like?
trivol [trivol!~aurelien@ip-178.net-89-2-84.rev.numericable.fr] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
ryanf [ryanf!~ryanf@207.sub-174-253-243.myvzw.com] has joined #ruby
<Seppman>
whats the best way to get some substring abcd out of something like :abcd!xxxyyyzzzz... ? i could do with regexp, but i'm sure there's some more elegant way
<MarcWeber>
Seppman: you're task desciption is not accurate enough.
<MarcWeber>
you can use regex, parsers, substr command or just .split('!')[0] depending on what you need
<Seppman>
thanks, the split thing seems to do exactly what i want :-)
wedtm [wedtm!~wedtm@173-12-163-78-oregon.hfc.comcastbusiness.net] has joined #ruby
redgetan [redgetan!~redgetan@CPE0023bee17c0e-CM0023bee17c0b.cpe.net.cable.rogers.com] has quit ["Leaving"]
rknLA [rknLA!~rknLA@76-218-76-57.lightspeed.irvnca.sbcglobal.net] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
brownies [brownies!~brownies@unaffiliated/brownies] has joined #ruby
zalesz [zalesz!~zalesz@119-057-129.adsl.szeptel.net.pl] has joined #ruby
juarlex [juarlex!~juarlex@201.124.160.19] has joined #ruby
djdb [djdb!~digitalbo@linux.minsk.tutby.com] has joined #ruby
yxhuvud [yxhuvud!mongo@h-85-82.a212.priv.bahnhof.se] has joined #ruby
tonini [tonini!~zastav@edge.garaio.com] has joined #ruby
diago [diago!~heath@wsip-98-174-211-206.hr.hr.cox.net] has joined #ruby
amerine [amerine!~mturner@bc171197.bendcable.com] has joined #ruby
bluOxigen [bluOxigen!~noreply@unaffiliated/bluOxigen] has joined #ruby
dnjaramba [dnjaramba!~dnjaramba@41.72.193.86] has joined #ruby
ph^ [ph^!~ph^@79.135.7.162] has joined #ruby
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
adeponte [adeponte!~adeponte@pool-173-51-131-197.lsanca.fios.verizon.net] has joined #ruby
csherin [csherin!~csherin@115.111.177.122] has joined #ruby
enikar [enikar!~gil@cl-140.mrs-01.fr.sixxs.net] has joined #ruby
JohnBat26 [JohnBat26!~Eugene@89.175.77.79] has joined #ruby
JohnBat26 [JohnBat26!~Eugene@89.175.77.79] has joined #ruby
orangejuice [orangejuice!~orangejui@66.96.251.117] has joined #ruby
ph^ [ph^!~ph^@79.135.7.171] has joined #ruby
tomku [tomku!~tom_irc@24-196-153-152.dhcp.fdul.wi.charter.com] has joined #ruby
Natch| [Natch|!~natch@178.73.218.129] has joined #ruby
kr0l [kr0l!~kr0l@c-bf2fe655.02-221-6b73641.cust.bredbandsbolaget.se] has joined #ruby
Seventoes [Seventoes!~Seventoes@2607:f7c0:1:df60:d056:fb00:0:34] has joined #ruby
fismo [fismo!~fismo@cpe-24-193-156-28.nyc.res.rr.com] has joined #ruby
GoBin [GoBin!~GoBin@193.175.11.148] has joined #ruby
thone_ [thone_!~thone@g226048136.adsl.alicedsl.de] has joined #ruby
sonkei [sonkei!~sonkei@d14-69-26-171.try.wideopenwest.com] has joined #ruby
senny [senny!~senny@edge.garaio.com] has joined #ruby
Noqturnal [Noqturnal!~noq@unaffiliated/noqturnal] has joined #ruby
heftig [heftig!~Jan@archlinux/developer/heftig] has joined #ruby
flippingbits [flippingbits!~anonymous@ip-81-210-178-39.unitymediagroup.de] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
p1d [p1d!~p1d@ns1.vonaffenfels.de] has joined #ruby
Spockz` [Spockz`!~Spockz@21pc198.sshunet.nl] has joined #ruby
zommi [zommi!quassel@nat/ibm/x-hylljaoyzistyfcw] has joined #ruby
[RHQme]stringo0 [[RHQme]stringo0!~JLstring@bas1-toronto42-1279599895.dsl.bell.ca] has joined #ruby
dyer [dyer!~dyer@108-193-172-174.lightspeed.tukrga.sbcglobal.net] has joined #ruby
dyer [dyer!~dyer@unaffiliated/dyer] has joined #ruby
davidpk [davidpk!~r00t@5adc8e56.bb.sky.com] has joined #ruby
<frontendloader>
find the extra "end" is the worst ruby game ever, is there any way to cheat at it?
<rippa>
proper indentation
<rippa>
and good editor
<Seppman>
hehe, frontendloader, had the same problem 2nite
<frontendloader>
currently using sublime text, took me 5 minutes to spot it even though it was at the top indentation level
stephans [stephans!~stephans@76-217-209-24.lightspeed.sntcca.sbcglobal.net] has joined #ruby
<Noqturnal>
Sublime text is exactly that.
<Noqturnal>
I love that editor.
<Noqturnal>
Pity I don't want to fork out the money for it.
freelanceful [freelanceful!~jamesfend@c-71-228-225-167.hsd1.tn.comcast.net] has joined #ruby
<Seppman>
Maybe bluefish can do it to in some way
<a_a_g>
well, if you miss an end, a good text editor will usually reflect that in its indentation
<frontendloader>
I still haven't found it
<a_a_g>
frontendloader: can you editor indent the entire file?
<Noqturnal>
Ruby for web, what framework would one recommend? I've had people throw Rails, Sinatra and Ramaze at me.
<Noqturnal>
Rails I never got my head around, I've used Sinatra before for simple webapps, but I'm not sure how it holds up for complex stuff. Ramaze I've never touched.
<a_a_g>
Noqturnal: depends on the scale of you app. do you intend the app to become a big one with lots of business logic? then go for rails
<__null>
Rails is a good choice just for the experience
<Noqturnal>
a_a_g: The webapp in question at this point in time is a file-hosting site. I had a lot of weird logic based around geographical provision and such.
<frontendloader>
I'm not sure, I've just started using sublimetext
jaykub_ [jaykub_!~jaykub@ip68-12-204-131.ok.ok.cox.net] has joined #ruby
dnjaramba [dnjaramba!~dnjaramba@41.72.193.86] has joined #ruby
<Noqturnal>
a_a_g: I'm converting it from PHP.
<a_a_g>
Noqturnal: i would say if its got a lot of logic in code and not much DB access, go for sinatra
<a_a_g>
if its primarily a DB driven app, go for rails
<Noqturnal>
a_a_g: It uses the DB as each file has a unique identifier, so I guess it does.
<a_a_g>
Noqturnal: i mean, does the schema have a lot of relations and cross references and many tables?
<a_a_g>
rails would be overkill for a simple one or two table schema
<Noqturnal>
a_a_g: User accounts, files, folders (for user organising), downloads.
<Noqturnal>
a_a_g: S'all, really.
<a_a_g>
Noqturnal: rails then
<Noqturnal>
a_a_g: Alright. Thanks!
<a_a_g>
i dont know anything about ramaze. you should evaluate rails vs ramaze before you make your choice
adman65 [adman65!~adman65@d064019.adsl.hansenet.de] has joined #ruby
cyne [cyne!~jacktol@546B137D.cm-12-4a.dynamic.ziggo.nl] has joined #ruby
<a_a_g>
going by initial looks, ramaze seems to be equivalent to sinatra + MVC
<a_a_g>
which could just be what you want
sixpoint8 [sixpoint8!~jaykub@ip68-12-204-131.ok.ok.cox.net] has joined #ruby
pen [pen!~pen@dhcp1.csie.ntu.edu.tw] has joined #ruby
prs` [prs`!~user@138.82-134-78.bkkb.no] has quit ["ERC Version 5.3 (IRC client for Emacs)"]
shellox [shellox!pb@gateway/shell/blinkenshell.org/x-swlsmsnayootpnse] has joined #ruby
<shellox>
hi
afex [afex!~kthornhil@wsip-68-225-20-130.oc.oc.cox.net] has joined #ruby
adeponte [adeponte!~adeponte@pool-173-51-131-197.lsanca.fios.verizon.net] has joined #ruby
fortysixandtwo [fortysixandtwo!~textual@77.40.186.166] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
Locke23rus [Locke23rus!~quassel@188.162.162.191] has joined #ruby
leoncamel [leoncamel!~user@KD175129170046.ppp-bb.dion.ne.jp] has joined #ruby
ph^ [ph^!~ph^@79.135.7.171] has joined #ruby
volter [volter!~volker@85-127-135-38.dynamic.xdsl-line.inode.at] has joined #ruby
pi3r [pi3r!~pi3r@LSt-Amand-152-32-39-189.w80-11.abo.wanadoo.fr] has joined #ruby
TomJ [TomJ!~TomJ@unaffiliated/tomj] has joined #ruby
banisterfiend [banisterfiend!~baniseter@118.82.185.158] has joined #ruby
shellox [shellox!pb@gateway/shell/blinkenshell.org/x-swlsmsnayootpnse] has quit [#ruby]
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
cobragoat [cobragoat!~cobragoat@c-76-105-54-37.hsd1.ca.comcast.net] has joined #ruby
burgestrand [burgestrand!~burgestra@h-45-63.a155.priv.bahnhof.se] has joined #ruby
shellox [shellox!pb@gateway/shell/blinkenshell.org/x-swlsmsnayootpnse] has joined #ruby
<shellox>
hi
<shellox>
whats the regex way in ruby to match only numbers between 18 and 100?
bastilian [bastilian!~bastilian@chello213047077012.23.11.vie.surfer.at] has joined #ruby
<heftig>
shellox: why do you want a regex?
faber [faber!~faber@ppp-104-4.26-151.libero.it] has joined #ruby
<shellox>
heftig: because i read user input
enikar [enikar!~gil@cl-140.mrs-01.fr.sixxs.net] has joined #ruby
stoffus [stoffus!~stoffus@2001:9b0:1:dead:129a:ddff:fe58:6835] has joined #ruby
<heftig>
shellox: so parse it as an integer. then check its value
<heftig>
also, is this an age value? what about those poor people aged over 100?
<shellox>
heftig: you are too old to use this service
<shellox>
:P
<shellox>
heftig: yes, it is an age value
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
<banisterfiend>
Seppman: there's not much to know about it, it's just string interpolation syntax
<banisterfiend>
x = "hello"
<banisterfiend>
puts "hello there #{x} what'sup?"
<lupine_85>
it'll be in the language reference, rather than any library reference - even the core library
<Seppman>
so its like some sort of implicit .to_s ?
<Seppman>
lupine_85: were's that to find?
<lupine_85>
well, it'll be in pickaxe
<Seppman>
found
<lupine_85>
class A ; def to_s ; "to_s" ; end ; def inspect ; "inspect" ; end ; end ; "#{A.new}" => "to_s"
<Seppman>
thanks
<Seppman>
to give something back to the chan: "In double-quoted strings, regular expressions, and command output expressions, the form like "#{expression}" extended to the evaluated result of that expression. If the expressions are the variables which names begin with the character either `$',`@', expressions are not needed to be surrounded by braces."
<lupine_85>
@a = "foo" ; "#@a" => "foo"
<lupine_85>
by 'eck, I didn't know that
marcogmonteiro [marcogmonteiro!~marco@82.102.2.66] has quit [#ruby]
<Seppman>
give and take :-)
<lupine_85>
@a = "foo" ; "#@amoo" => "foo"
<lupine_85>
bah
<lupine_85>
this isn't irb
<lupine_85>
(needs a space in that instance, unsurprisingly)
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby
tvw [tvw!~tv@212.79.9.150] has joined #ruby
<a_a_g>
that form is not really recommended
<lupine_85>
interesting to know it exists, though
<Seppman>
a_a_g: why not? subject to change?
<a_a_g>
Seppman: one of the reasons is the ambiguity of the syntax, like the above code snippet
<a_a_g>
the other is probably that it is actually a syntactic special case
<a_a_g>
the #{} is universal - works everywhere
<Seppman>
maybe its faster?
<a_a_g>
i remember reading that its just syntactic sugar
<Seppman>
one could use it in obfuscated (or similar, my english isn't that good) code contests
Hellojere [Hellojere!~Hellojere@89.7.90.160] has joined #ruby
<a_a_g>
you dont _need_ the #{} delimiter when you have @ and $
<a_a_g>
Seppman: yes. i would strongly recommend it in obfuscated code contests :)
<a_a_g>
personally, i find #{} much cleaner to read, and its not that much trouble to write
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
sharkmonkey [sharkmonkey!~smoney@unaffiliated/sharkmonkey] has joined #ruby
<Seppman>
agree totally with that
kerframil_ [kerframil_!~kerframil@cpc2-enfi16-2-0-cust659.hari.cable.virginmedia.com] has joined #ruby
DrShoggoth [DrShoggoth!~prakwtf@12.116.104.118] has joined #ruby
elliot98 [elliot98!~elliot@77.125.82.102] has joined #ruby
statarb3 [statarb3!~CoreD@546A56AA.cm-12-3b.dynamic.ziggo.nl] has joined #ruby
statarb3 [statarb3!~CoreD@unaffiliated/statarb3] has joined #ruby
<sharkmonkey>
My non-programming friend wants to learn ruby. Is why's poignant guide any good for this task? I skimmed it. But it's hard for me to judge it. I'm having a hard time putting myself in the perspective of not being a programmer and not knowing ruby.
elliot98 [elliot98!~elliot@unaffiliated/elliot98] has joined #ruby
<lupine_85>
sharkmonkey, _why's piognant guide is more edutainment
<lupine_85>
that said, flipping through it before the interview helped me to get my current job
<lupine_85>
(I had no real ruby experience, but could do the ruby-based task asked of me as a result)
<Hanmac>
i dont know how i do learn ruby ... i woke up, and then i could it ...
<rippa>
I read pickaxe
<sharkmonkey>
From the description, pickaxe doesn't seem to target the first time programmer audience.
<a_a_g>
sharkmonkey: any particular reason for ruby?
berkes [berkes!~ber@indebossenvanleusden.xs4all.nl] has joined #ruby
<sharkmonkey>
Not really. My friend happened to be watching me write ruby code at the time and it struck me as a reasonable first language.
<sharkmonkey>
a_a_g: Would you choose something else?
BrianE [BrianE!~brian@188-220-10-235.zone11.bethere.co.uk] has joined #ruby
<Hanmac>
i think for interpreting stuff, ruby is one of the best
<a_a_g>
for people who have never done programming, i would recommend going through the first few chapters of http://www.cs.cmu.edu/~dst/LispBook/ first
<a_a_g>
upto a certain point, you can just read it without any computer around
<Hanmac>
Lisp? are you crazy? XD
<Tasser>
Hanmac, why? no crazy syntax ;-)
<a_a_g>
i've found that reading the first chapter of that book explains quite well what programming is all about
<banisterfiend>
Tasser: hey tassx0r
<Tasser>
banisterfiend, heyo, gotta have some fun with jruby ;-)
<banisterfiend>
Tasser: coolio
sdimkov [sdimkov!~sdimkov@sm45140.pppoe.optic-com.eu] has joined #ruby
NARKOZ [NARKOZ!~NARKOZ@46.228.177.254] has joined #ruby
emmanuelux [emmanuelux!~emmanuel@2a01:e35:2e4d:9010:21d:60ff:fe0e:b818] has joined #ruby
<Tasser>
banisterfiend, but some nimrod atm for a simple naive bayes (python was waaaaay too slow)
<banisterfiend>
Tasser: jruby is faster than C python?
Nss [Nss!~nss@93-41-204-123.ip83.fastwebnet.it] has joined #ruby
pen [pen!~pen@dhcp1.csie.ntu.edu.tw] has joined #ruby
<sharkmonkey>
jython is often faster than c python, so it wouldn't surprise me of jruby is.
<sharkmonkey>
It can be especially fast if you invoke java stuff to do the computationally intensive bits. :)
stepnem [stepnem!~stepnem@176.119.broadband10.iol.cz] has joined #ruby
RomD [RomD!~Roman@nrbg-d9323031.pool.mediaWays.net] has joined #ruby
ikaros [ikaros!~ikaros@studpool-wlan-75-185.fs.fbi.h-da.de] has joined #ruby
kerframil [kerframil!~kerframil@gentoo/user/kerframil] has joined #ruby
<Tasser>
banisterfiend, nah, I'm coding in nimrod
<banisterfiend>
Tasser: what on earth is nimrod
<Tasser>
banisterfiend, yet another small programming language
<lupine_85>
oh ruby, you so silly
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
nat2610 [nat2610!~nfelsen@74-85-144-253.onlive.net] has joined #ruby
zommi [zommi!quassel@nat/ibm/x-npzxreszgtkpdlre] has joined #ruby
macmartine [macmartine!~macmartin@c-24-21-112-60.hsd1.or.comcast.net] has joined #ruby
thepix [thepix!~pix@as3-16.starogard.dialup.inetia.pl] has joined #ruby
vraa [vraa!~vraa@c-76-30-135-64.hsd1.tx.comcast.net] has joined #ruby
nanderoo [nanderoo!~nanders@38.124.137.226] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
g0bl1n [g0bl1n!~prokter@a213-22-27-14.cpe.netcabo.pt] has joined #ruby
kpshek [kpshek!~kpshek@159.140.254.109] has joined #ruby
theishi [theishi!~max@87.249.45.135] has joined #ruby
wmoxam [wmoxam!~wmoxam@pdpc/supporter/active/wmoxam] has joined #ruby
<theishi>
I am having some issues here. I somehow must of corrupted my gem installer. When I try to install any gem, it freezes. I removed gem from my system and reinstalled it, but the issue remains the same
strife25 [strife25!strife25@nat/ibm/x-wligzynzhmmabkll] has joined #ruby
jmorton [jmorton!~jmorton@CUSTOMINK-L.ipcolo2.Washington1.Level3.net] has joined #ruby
philcrissman [philcrissman!~philcriss@206.57.45.116] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
DrShoggoth [DrShoggoth!~prakwtf@68-188-73-250.static.stls.mo.charter.com] has joined #ruby
Sailias [Sailias!~jonathan@bas8-toronto01-1279462027.dsl.bell.ca] has joined #ruby
<Tasser>
theishi, probably ditch the gem dir?
theRoUS [theRoUS!~KenCoar@dsl093-240-159.ral1.dsl.speakeasy.net] has joined #ruby
theRoUS [theRoUS!~KenCoar@apache/committer/coar] has joined #ruby
ph^ [ph^!~ph^@cm-84.212.225.74.getinternet.no] has joined #ruby
<theishi>
Tasser: you mean ~/.gem ?
<theishi>
I uninstalled gem, removed that director, then reinstalled, same issue
<Tasser>
theishi, echo $GEM_HOME
palcu [palcu!~alex@89.122.187.223] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
csherin [csherin!~csherin@61.11.47.189] has joined #ruby
heftig [heftig!jan@archlinux/developer/heftig] has joined #ruby
thomasdebenning [thomasdebenning!~thomasdeb@c-69-181-139-137.hsd1.ca.comcast.net] has joined #ruby
headius [headius!~headius@71-210-154-45.mpls.qwest.net] has joined #ruby
<theishi>
ok removed that one too.. still no effect Tasser
rippa [rippa!~rippa@109-161-120-219.pppoe.yaroslavl.ru] has joined #ruby
charnel [charnel!~cem@62.248.91.94] has joined #ruby
danielpunt [danielpunt!~danielpun@ip120-238-211-87.adsl2.static.versatel.nl] has joined #ruby
<charnel>
what does this means ? { | | }
<rippa>
looks like
<rippa>
ni
<rippa>
l
kr0l [kr0l!~kr0l@ksdfw05.rightcompetence.com] has joined #ruby
brugidou [brugidou!~marcellus@denver.dinauz.org] has quit [#ruby]
d2dchat [d2dchat!~d2dchat@c-68-42-68-174.hsd1.mi.comcast.net] has joined #ruby
<Tasser>
theishi, hum
<Tasser>
charnel, Proc.new, I'd say
<theishi>
you are losing me a bit, what do mean? Tasser
wedtm [wedtm!~wedtm@173-12-163-78-oregon.hfc.comcastbusiness.net] has joined #ruby
<Tasser>
theishi, I'd say something else is broken... no idea :-/
<theishi>
ok, thanks
RudyValencia [RudyValencia!me@unaffiliated/rudyvalencia] has joined #ruby
mattp_ [mattp_!~mattp_@intma.in] has joined #ruby
<theishi>
what does charnel mean? Tasser
mkscrg [mkscrg!~mkscrg@pool-108-41-134-165.nycmny.fios.verizon.net] has joined #ruby
<Tasser>
theishi, proc {||} is another syntax for Proc.new
<Tasser>
ah well
<Tasser>
let's say it create an empty block
<theishi>
oh, thats the other guys name...
catphish [catphish!~catphish@2001:9d8:2005:11:222:15ff:fe88:aae2] has joined #ruby
brngardner [brngardner!~brngardne@c-98-192-3-166.hsd1.ga.comcast.net] has joined #ruby
<catphish>
can anyone suggest the best way to parse a parenthesised string into some kind of tree?
<charnel>
Tasser, Thanks . theishi : It was a character in a very old commodore 64 game :)
<catphish>
basically a SQL WHERE like "WHERE a = 1 and (b = 2 or (b = 3 and c = 3))"
<theishi>
charnel: I made the mistake of thinking he was talking to me and charnel was a description of the problem or something
ewag [ewag!~ewagner@office-gw.cmh.aotech.net] has joined #ruby
csherin [csherin!~csherin@61.11.47.189] has joined #ruby
<Tasser>
catphish, take a contextfree parsing framework of your choice
dyer [dyer!~dyer@c-66-56-12-125.hsd1.ga.comcast.net] has joined #ruby
dyer [dyer!~dyer@unaffiliated/dyer] has joined #ruby
beakerman [beakerman!~beakerman@c-76-118-172-173.hsd1.nh.comcast.net] has joined #ruby
enikar [enikar!~gil@cl-140.mrs-01.fr.sixxs.net] has joined #ruby
bpf [bpf!~brianf@64.39.4.135] has joined #ruby
x77686d [x77686d!~whm@vecta.cs.arizona.edu] has joined #ruby
<catphish>
Tasser: any suggestions?
robotmay [robotmay!~robotmay@94.30.13.228] has joined #ruby
Skaag [Skaag!~Skaag@216.200.217.234] has joined #ruby
<Amorsen>
catphish, you're trying to write a parser? Sounds like a job for yacc, or probably Ragel since we're in #ruby
panzi [panzi!~chatzilla@80-121-48-92.adsl.highway.telekom.at] has joined #ruby
<panzi>
I forgot how to make a .gem file out of a project using hoe
<panzi>
how do you do this?
albemuth [albemuth!~albemuth@209.213.178.170] has joined #ruby
<panzi>
I need it so that bundle can use it from a local dir
<catphish>
thanks
<catphish>
will try to do it manually first
<panzi>
cant use the official gem because I added a bugfix that is still not in the official gem
TomJ [TomJ!~TomJ@unaffiliated/tomj] has joined #ruby
thomasdebenning [thomasdebenning!~thomasdeb@108.60.121.130] has joined #ruby
<Tasser>
catphish, never tried
<panzi>
no one?
robyurkowski [robyurkowski!~robyurkow@64.254.250.82] has joined #ruby
csherin [csherin!~csherin@61.11.47.189] has joined #ruby
matt_yohe [matt_yohe!~mattyohe@2620:0:e50:3011:95a8:124d:ef3e:7875] has joined #ruby
yekta [yekta!~yekta@c-24-1-182-219.hsd1.il.comcast.net] has joined #ruby
nacengineer [nacengineer!~dsoutha@165.219.88.72] has joined #ruby
veptune [veptune!~veptune@123-194-130-196.dynamic.kbronet.com.tw] has joined #ruby
<veptune>
hello all
<veptune>
a stupid question from a newbie who need to install ruby to use chili, i do bundle install --without=rmagick ruby-debug-base19 to exclude theses packages, as i got an error, but it still trying to install them .. any idea ?
Ankhers [Ankhers!~user@76-10-149-67.dsl.teksavvy.com] has joined #ruby
jwmann [jwmann!~Adium@modemcable032.85-202-24.mc.videotron.ca] has joined #ruby
jwmann [jwmann!~Adium@modemcable032.85-202-24.mc.videotron.ca] has joined #ruby
csavola [csavola!~csavola@76-10-149-67.dsl.teksavvy.com] has joined #ruby
badabim [badabim!~badabim@c-98-207-235-20.hsd1.ca.comcast.net] has joined #ruby
<ReinH>
veptune: --without is for groups, not individual gems
<ReinH>
you can't just exclude a required gem
<veptune>
ruby-debug-base19 is member of which group ?
panzi [panzi!~chatzilla@80-121-1-17.adsl.highway.telekom.at] has joined #ruby
panzi [panzi!~chatzilla@80-121-1-17.adsl.highway.telekom.at] has quit [#ruby]
panzi [panzi!~chatzilla@80-121-1-17.adsl.highway.telekom.at] has joined #ruby
<ReinH>
?
<veptune>
i don t want to install it (as it is bug)
* catphish
just crashed ruby 1.9.2p290 :(
<ReinH>
first, bundler install installs all required gems, not a single gem
<ReinH>
*bundle install
<ReinH>
veptune: maybe you should read more on how bundler works
<panzi>
what do I have to do that I get a gemspec form a hoe project?
<ReinH>
veptune: or tell us exactly what you're trying to do
<panzi>
catphish: in languages like ruby everything is always a reference
<catphish>
panzi: see my link
<panzi>
however, Fixnum is immutable
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
<veptune>
Installing ruby-debug-base19 (0.11.25) with native extensions
<veptune>
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension
<veptune>
C:/Ruby193/bin/ruby.exe extconf.rb
<catphish>
panzi: it seems the reference gets recreated
<veptune>
any idea ? that is just the begining of error messages
<veptune>
that's why i wanted to excluded this group
<catphish>
are Fixnums not passed by ref?
<panzi>
catphish: its like a pointer in C. you cannot cahgne where the ponter in another activation record is pointing to
<catphish>
oh i see
<panzi>
catphish: everything is passed by ref, but += creates a new Fixnum
geekbri [geekbri!~geekbri@208.252.10.190] has joined #ruby
<catphish>
so the issue is that you cant move the pointer
<catphish>
and you can't change 1
h4mz1d [h4mz1d!~hamfz@99-0-57-199.lightspeed.tsclal.sbcglobal.net] has joined #ruby
<catphish>
is there an elegent solution or should i use [n]
<panzi>
use OOP
<panzi>
class Something; def initialize; @x = 1; end; def increment; @x += 1; end; def get; @x; end; end
<catphish>
yes i suppose that's the sane solution :)
<catphish>
thanks
<catphish>
i like to avoid using unnecessary instance variables within methods, even recursive ones
<catphish>
but that'll be fine
<catphish>
seems the right thing to do in this case
<catphish>
unless i returned it
blueOxigen [blueOxigen!~noreply@115.167.121.183] has joined #ruby
<catphish>
thx
rflorianobr [rflorianobr!~rfloriano@189.115.31.245] has joined #ruby
<catphish>
actually i dont like that mathod because it needs to be zeroed on the first call of the method but not subsequent ones, i'll return it instead
adeponte [adeponte!~adeponte@pool-173-51-131-197.lsanca.fios.verizon.net] has joined #ruby
mensch [mensch!~mensch@c-174-62-210-182.hsd1.ma.comcast.net] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
pootpoot [pootpoot!~pootpoot@38.108.250.130] has joined #ruby
ckrailo [ckrailo!~ckrailo@208.86.167.247] has joined #ruby
adamkittelson [adamkittelson!~adamkitte@c-24-23-252-19.hsd1.ca.comcast.net] has joined #ruby
eldariof [eldariof!~CLD@81.200.24.56] has joined #ruby
robotmay [robotmay!~robotmay@94.30.13.228] has joined #ruby
strife25 [strife25!strife25@nat/ibm/x-jayqvcppiojbamtc] has joined #ruby
minver [minver!5ae6e3b0@gateway/web/freenode/ip.90.230.227.176] has joined #ruby
b0ot [b0ot!~tom@186.42.190.226] has quit ["Ex-Chat"]
jackerran [jackerran!~jackerran@fw.luckie.net] has joined #ruby
alkos333 [alkos333!~alkos333@c-98-228-180-136.hsd1.il.comcast.net] has joined #ruby
<danheberden>
minver would popping it off and pushing it be easier?
<Tasser>
minver, rails/all ? O.o
<minver>
Tasser: just to include the class_attribute method
<waxjar>
maybe define a columns method that outputs the columns array with :always_at_the_end attached to it?
<Hanmac>
you could override the colums getter ...
<Tasser>
minver, minver sledgehammer and nut? ^^
<minver>
waxjar, Hanmac: yeah I was thinking of that too
<Tasser>
Hanmac, yeah, nice idea
<Hanmac>
like: def columns; super + [:allways_last];end
krz [krz!~foobar@unaffiliated/krz] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
dasfugufish [dasfugufish!~Adium@174-27-233-214.slkc.qwest.net] has joined #ruby
<Tasser>
Hanmac, I wouldn't count on super here
<minijupe>
I'm using remote => true for the first time, and I've got things working, but I'm confused on the object I'm getting in the xhr: $('#new_image_form_button').live('ajax:success', function(event, xhr, status) {
<minijupe>
the xhr is just a string with the HTML resonse
LiquidInsect [LiquidInsect!~billabney@50-0-135-178.dedicated.static.sonic.net] has joined #ruby
<minijupe>
Shouldn't it be an object that has responseText defined?
ap3mantus [ap3mantus!~ap3mantus@c-98-217-179-108.hsd1.ma.comcast.net] has joined #ruby
<minijupe>
oops, wrong channel, sorry guys
baroquebobcat [baroquebobcat!~nick@70-90-113-174-co.denver.hfc.comcastbusiness.net] has joined #ruby
stayarrr [stayarrr!~olivererx@dslb-178-009-059-241.pools.arcor-ip.net] has joined #ruby
dekroning [dekroning!~dekroning@541B931D.cm-5-4c.dynamic.ziggo.nl] has joined #ruby
adman65 [adman65!~adman65@d064019.adsl.hansenet.de] has joined #ruby
tesmar [tesmar!~tesmar@cpe-024-163-059-067.nc.res.rr.com] has joined #ruby
Spockz_ [Spockz_!~Spockz@21pc198.sshunet.nl] has joined #ruby
centipedefarmer [centipedefarmer!~centipede@74-84-107-90.client.mchsi.com] has joined #ruby
dazoakley [dazoakley!~dazoakley@hocuspokus.vm.bytemark.co.uk] has quit [#ruby]
jbpros [jbpros!~jbpros@d515285E6.access.telenet.be] has joined #ruby
blueadept [blueadept!~blueadept@unaffiliated/blueadept] has joined #ruby
Shrink [Shrink!~sgupta@redhat/shrink] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
cruyps [cruyps!~cruyps@83.101.41.163] has joined #ruby
ctp [ctp!~ctp@p4FC35D7F.dip.t-dialin.net] has joined #ruby
maletor [maletor!~maletor@c-69-181-24-86.hsd1.ca.comcast.net] has joined #ruby
panpainter [panpainter!~panpainte@c-71-231-141-181.hsd1.wa.comcast.net] has joined #ruby
tokumine [tokumine!~kunio@82-69-174-54.dsl.in-addr.zen.co.uk] has joined #ruby
strife25 [strife25!strife25@nat/ibm/x-caiehkhzpxsuhlxu] has joined #ruby
tbrock [tbrock!~tbrock@74.113.160.178] has joined #ruby
klaustsen [klaustsen!~klaustsen@c80-217-133-221.bredband.comhem.se] has joined #ruby
Ammar01 [Ammar01!~hassaa10@gatej.thls.bbc.co.uk] has joined #ruby
cruyps [cruyps!~cruyps@83.101.41.163] has quit [#ruby]
alex__c2022 [alex__c2022!~alex@207.239.64.154] has joined #ruby
wmoxam [wmoxam!~wmoxam@pdpc/supporter/active/wmoxam] has joined #ruby
headius [headius!~headius@71-210-154-45.mpls.qwest.net] has joined #ruby
emocakes [emocakes!~om@189-11-46-97.mganm703.dsl.brasiltelecom.net.br] has joined #ruby
Hellojere [Hellojere!~Hellojere@89.7.90.160] has joined #ruby
idoru [idoru!idoru@freenode/utility-bot/ex-server/idoru] has joined #ruby
mmokrysz [mmokrysz!~mmokrysz@pdpc/supporter/student/mmokrysz] has joined #ruby
mmokrysz [mmokrysz!~mmokrysz@pdpc/supporter/student/mmokrysz] has quit [#ruby]
v0n [v0n!~v4n@2607:fad8:4:0:21e:8cff:fe4d:2f7d] has joined #ruby
enherit [enherit!~enherit@216.3.99.206] has joined #ruby
Hellojere [Hellojere!~Hellojere@89.7.90.160] has joined #ruby
LiquidInsect [LiquidInsect!~billabney@50-0-135-178.dedicated.static.sonic.net] has joined #ruby
Shrink [Shrink!~sgupta@redhat/shrink] has joined #ruby
p0y [p0y!~p0y@121.97.55.48] has joined #ruby
Hellojere [Hellojere!~Hellojere@89.7.90.160] has joined #ruby
d2dchat [d2dchat!~d2dchat@c-98-209-18-197.hsd1.mi.comcast.net] has joined #ruby
brngardner [brngardner!~brngardne@lawn-143-215-127-6.lawn.gatech.edu] has joined #ruby
thomasdebenning [thomasdebenning!~thomasdeb@108.60.121.130] has joined #ruby
Emmanuel_Chanel [Emmanuel_Chanel!star2@ZQ115148.ppp.dion.ne.jp] has joined #ruby
flippingbits [flippingbits!~anonymous@ip-81-210-178-39.unitymediagroup.de] has joined #ruby
savage- [savage-!~savage-@209.118.197.220] has joined #ruby
eignerchris [eignerchris!~eignerchr@c-24-20-239-11.hsd1.or.comcast.net] has joined #ruby
phantomfake [phantomfake!~whats_in_@pool-71-190-229-236.nycmny.fios.verizon.net] has joined #ruby
kakaskin [kakaskin!~CLDG@87.252.227.117] has joined #ruby
crankycoder [crankycoder!~crankycod@12.177.139.178] has joined #ruby
p0y_ [p0y_!~p0y@112.210.88.178] has joined #ruby
cearls [cearls!~cearls@166.102.175.99] has joined #ruby
adeponte [adeponte!~adeponte@67.110.253.162.ptr.us.xo.net] has joined #ruby
gigamonkey [gigamonkey!~user@adsl-99-179-45-189.dsl.pltn13.sbcglobal.net] has joined #ruby
tbrock [tbrock!~tbrock@74.113.160.178] has joined #ruby
badabim [badabim!~badabim@17.245.90.214] has joined #ruby
cearls [cearls!~cearls@173-160-14-61-littlerock.hfc.comcastbusiness.net] has joined #ruby
klaustsen [klaustsen!~klaustsen@c80-217-133-221.bredband.comhem.se] has joined #ruby
Buck [Buck!~Buck@unaffiliated/buck] has joined #ruby
<Buck>
hurr
<Buck>
is there something similar to perldoc for ruby for linux?
savage-_ [savage-_!~savage-@209.118.197.220] has joined #ruby
rushed [rushed!~rushed@99-73-225-9.lightspeed.austtx.sbcglobal.net] has joined #ruby
savage-_ [savage-_!~savage-@209.118.197.220] has joined #ruby
charnel [charnel!~cem@94.235.139.194] has joined #ruby
hadees [hadees!~hadees@rrcs-71-41-203-94.sw.biz.rr.com] has joined #ruby
Shrink [Shrink!~sgupta@redhat/shrink] has joined #ruby
<Mon_Ouie>
Buck: ri? rdoc?
shadoi [shadoi!~Adium@99-59-176-174.lightspeed.sntcca.sbcglobal.net] has joined #ruby
<Buck>
rdoc is for making documentation
<Buck>
I can't find anything on ri?
<Mon_Ouie>
It allows to browse rdoc-generated documentation in a terminal
<shadoi>
try: man ri
SegFaultAX|work [SegFaultAX|work!~mkbernard@173.228.45.162] has joined #ruby
strife25 [strife25!strife25@nat/ibm/x-ulmyahwebnzdsxzo] has joined #ruby
bier [bier!~bier@p54A5A8D4.dip.t-dialin.net] has joined #ruby
<Buck>
thanks Mon_Ouie, shadoi
dzhulk [dzhulk!~dzhulk@88.201.230.6] has joined #ruby
n8ji [n8ji!~n8ji@c-24-20-239-11.hsd1.or.comcast.net] has joined #ruby
alfism [alfism!~alfism@2620:149:4:1201:45bf:1b1:d9fe:d840] has joined #ruby
<panzi>
anyone knows fast_gettext? how do I make the _ method available everywhere? only via "class Object; include FastGettext::Translation; end"? or is there a more elegant way?
eywu [eywu!~Adium@205-170-107-4.dia.static.qwest.net] has joined #ruby
d2dchat [d2dchat!~d2dchat@173-167-20-129-michigan.hfc.comcastbusiness.net] has joined #ruby
stkowski [stkowski!~stkowski@12.207.16.130] has joined #ruby
Russell^^ [Russell^^!~Russell^^@88.97.51.87] has joined #ruby
mztriz [mztriz!~mztriz@nkugateway.nku.edu] has joined #ruby
apeiros_ [apeiros_!~apeiros@77-58-113-31.dclient.hispeed.ch] has joined #ruby
srid [srid!u3297@gateway/web/irccloud.com/x-feiuemoeygxjwpnu] has joined #ruby
srid [srid!u3297@unaffiliated/srid] has joined #ruby
srid [srid!u3297@gateway/web/irccloud.com/x-feiuemoeygxjwpnu] has joined #ruby
pooja [pooja!u4977@gateway/web/irccloud.com/x-dybljjiugbphyloa] has joined #ruby
pvh [pvh!u717@gateway/web/irccloud.com/x-cqvmkpvolztsupeo] has joined #ruby
Araxia_ [Araxia_!~Araxia@173-164-68-213-Oregon.hfc.comcastbusiness.net] has joined #ruby
whap [whap!~Adium@64.55.129.194] has joined #ruby
whap [whap!~Adium@64.55.129.194] has quit [#ruby]
thomasdebenning [thomasdebenning!~thomasdeb@108.60.121.130] has joined #ruby
cek [cek!~cek@crius.pantheon.fused.net] has joined #ruby
<cek>
anyone knows a REST service that would echo back what i posted?
<ReinH>
cek: netcat
<cek>
lol
<csavola>
cek: take you 10sec to build in sinatra
<cek>
hurl.it, but opposite
<ReinH>
no, I'm serious
<ReinH>
netcat
fcoury [fcoury!u2238@gateway/web/irccloud.com/x-jwpmpzgqdgkgdbzf] has joined #ruby
patricksroberts [patricksroberts!u3278@gateway/web/irccloud.com/x-wugfyyyewmeoleid] has joined #ruby
* apeiros_
used to use tcpflow, but as of 10.6, that didn't work on localhost anymore :(
<ReinH>
or if you really want to, TCPSocket
<ReinH>
you don't need a "REST service" for an echo server
<apeiros_>
ReinH: you mean TCPServer?
<ReinH>
no
<catphish>
cek: easy in sinatra / rack
dnyy [dnyy!u2106@gateway/web/irccloud.com/x-ocshmnzvlvwoztnq] has joined #ruby
<ReinH>
easy in *netcat*
<apeiros_>
ReinH: I wonder how you want to do it with TCPSocket…
Nowaker [Nowaker!~nowaker@geozone.pl] has joined #ruby
<cek>
you are of no use
<catphish>
ReinH: how?
<apeiros_>
sure you can do the same as TCPServer does, but much more work…
<catphish>
ReinH: does that do HTTP?
<ReinH>
apeiros_: oh TCPSocket can't bind? Yes, TCPServer then
<ReinH>
catphish: HTTP is TCP
<catphish>
ReinH: what are you talking about?
<apeiros_>
ReinH: sure it can, it's just more work :)
TheDeadSerious [TheDeadSerious!u2116@gateway/web/irccloud.com/x-ypiigxmgiswocsks] has joined #ruby
heftig [heftig!jan@archlinux/developer/heftig] has joined #ruby
<apeiros_>
cek: server = TCPServer.new("0.0.0.0", 80); while client = server.accept; puts "Got a request:", client.read; end
<ReinH>
cek: if you think I'm being of no use, you don't understand what I'm saying
<catphish>
ReinH: wuth your method you'd need to build a whole HTTP server
<ReinH>
what
<apeiros_>
oh, add a "puts" before the client.read
cyne [cyne!~jacktol@546B137D.cm-12-4a.dynamic.ziggo.nl] has joined #ruby
<ReinH>
"building a whole HTTP server" can happen in 1 line of code
<catphish>
ReinH: with sinatra or even plain rack its all done for you
* ReinH
facepalms
<cek>
now ive got https
<csavola>
ReinH: HTTP is not TCP... different layers
<catphish>
ReinH: no it can't, please stop talking
GSpotAssassin [GSpotAssassin!u4086@gateway/web/irccloud.com/x-lbdhdvxfclxmjmvj] has joined #ruby
<ReinH>
csavola: ofc, but if you have a TCP echo server you also have an HTTP echo server
<ReinH>
catphish: yes it can, wtf
<ReinH>
fucking idiots
<catphish>
" if you have a TCP echo server you also have an HTTP echo server"
<JonnieCache>
play nice boys and girls
<cek>
thank you
<catphish>
i stand corrected i guess
* ReinH
facepalms
<catphish>
but seriously ReinH, please learn how HTTP works
<catphish>
it's not raw TCP
<ReinH>
catphish: I know how HTTP works, jesus christ
<shadoi>
catphish: he's asking for echoes, not HTTP parsing. ReinH is correct, please stop being a douche.
<catphish>
then why are you saying a TCP echo server will act as an HTTP REST echo server?
<ReinH>
catphish: what exactly is the difference *for an echo server*?
<ReinH>
fucking hell
<catphish>
no, he said REST service that would echo what was posted
<ReinH>
you send TCP packets, you receive *THE SAME TCP PACKETS*
scott_nz [scott_nz!~anonymous@94-194-139-29.zone8.bethere.co.uk] has joined #ruby
<catphish>
REST implies HTTP
<ReinH>
catphish: REST is HTTP
<ReinH>
fucking hell
<catphish>
exactly
<cek>
echo, as in echo http body, not echo on 4th osi layer
<ReinH>
catphish: an HTTP echo service is equivalent to a TCP echo service
<catphish>
cek: please tell me i'm right and everyone else is being dumb
<ReinH>
you send TCP packets and you receive the same TCP packets
<cek>
you all suck
<shadoi>
lol
<ReinH>
that's what a fucking echo server is
<ReinH>
jesus christ
<cek>
and i'm a mandarine
<ReinH>
I am aware that forming a response to an HTTP request requires parsing an HTTP request
<catphish>
an HTTP echo server would have to process the request line and request headers first
<ReinH>
no it doesn't
<apeiros_>
catphish: besides of giving a conforming response - where do you need knowledge about http in order to echo the request?
<ReinH>
IT JUST SENDS BACK WHAT YOU SEND IT
<csavola>
ReinH: It sounds like an iteresting idea to hash something out. When you use this do you generally care about sending a different set of headers back?
<ReinH>
what the fucking fuck do you think an echo server is?
<ReinH>
jesus
SeanTAllen [SeanTAllen!u4855@gateway/web/irccloud.com/x-qnpxxtzuwlclwxuc] has joined #ruby
<ReinH>
csavola: if it's an *echo service* then by definition you do not
<scott_nz>
hi, when returning from a method can i go "a || b" on the last line of the method and it will return a if defined otherwise b? it seems to work in my tests but i can't see where it is documented
<deryl>
well, there's my entertainment for the day
<ReinH>
whatever catphish is talking about, it isn't an echo server
notbrent [notbrent!u5121@gateway/web/irccloud.com/x-hfecigjymeztmfng] has joined #ruby
<JonnieCache>
scott_nz: yeah that works. ruby just auto-returns the last line of any function
<apeiros_>
catphish: assuming you don't care about your client getting a happy response, my code above mostly disproves your claim that you need knowledge of the http layer in order to echo a request…
<ReinH>
nothing annoys me more than someone who is dead wrong telling me I'm an idiot
<catphish>
ReinH: a tcp echo server will not respond with a valid HTTP response
adamkittelson [adamkittelson!~adamkitte@50.0.132.2] has joined #ruby
<ReinH>
catphish: you do not know what an echo server is
<shadoi>
...
<JonnieCache>
scott_nz: and a || b just works like that, so if you put it on the last line it will be returned and youll get that behaviour
MetaCosm [MetaCosm!u514@gateway/web/irccloud.com/x-kxfdfgjgerpcknkw] has joined #ruby
<ReinH>
if it responds with something other than what you sen dit
<ReinH>
it is by definition NOT AN ECHO SERVICE
<ReinH>
what part of that do you not understand?
<JonnieCache>
scott_nz: the reason you might not find much documentation is because that behaviour isnt one ruby feature, ratehr a combination of several
<scott_nz>
JonnieCache: thanks my tests confirm that. but why when i am in irb does it not work the same way?
<JonnieCache>
scott_nz: it will still work the same way... in what exact circumstance?
<ReinH>
TCP guaranteed that packets are received in order
<shadoi>
scott_nz: there must be something different about your scope in irb.
<ReinH>
if I send the packets back in the order they are received
<scott_nz>
JonnieCache: i.e if in rib i assign a = 1 and then right b || a it complains b isn't defined
<ReinH>
exactly the same packets
<ReinH>
then I have an echo server
<catphish>
cek: anyway, to answer the original question, you probably want to use sinatra, and find the method to get the original request, and echo it back as the respnse body
<ReinH>
it is the same for TCP and HTTP
josh [josh!~josh@74-95-43-126-Oregon.hfc.comcastbusiness.net] has joined #ruby
* ReinH
facepalms
<scott_nz>
JonnieCache: sorry right = write
tbrock [tbrock!~tbrock@74.113.160.178] has joined #ruby
<ReinH>
cek: so do you want an echo server or do you want something that behaves differently that you mistakenly called an echo server?
zenergi [zenergi!~zenergi@pdpc/supporter/student/zenergi] has joined #ruby
<catphish>
if you really want to echo back the original request in a way that an HTTP client won't understand, just use TCPServer and loop back the stream
savage-_ [savage-_!~savage-@209.118.197.220] has joined #ruby
<csavola>
catphish cek : If you are ignoring response headers the TCP echo would suffice... which is what ReinH is getting at
<matled>
ReinH: sending a syn packet should give me back a syn packet with the same source and destination address as I've sent out? without a router that could work!
<catphish>
i think we're agreed :)
<shadoi>
scott_nz: in your code, b and a are defined but sometimes nil, in irb if you don't ever define the variables you get that exception.
savage-_ [savage-_!~savage-@209.118.197.220] has joined #ruby
<ReinH>
matled: touche
<catphish>
matled: :)
<catphish>
matled: but the destination MAC shouldn't be changed
<scott_nz>
JonnieCache: in my code a only gets defined inside an if statement
<catphish>
that wouldn't be an echo
<matled>
catphish: promiscous mode is implied :D
<catphish>
that's ok then :)
Shrink [Shrink!~sgupta@redhat/shrink] has joined #ruby
<cek>
stop annoying me. i need reverse of hurl.it
<scott_nz>
JonnieCache: i am sure if i try and access a then i will get an execption
<ReinH>
cek: what is "the reverse of hurl.it"?
<benj_>
you can call whatever you want an echo service unless you call it an RFC862 echo service
<ReinH>
cek: you suck at asking for help
<catphish>
cek: look at writing a simple http server with sinatra
<cek>
how do i catch all request methods with sinatra?
<catphish>
thanks for the lightening of my mood matled :)
<apeiros_>
catphish: for some reason I think even with "correct http reply" it's simpler just using TCPSocket
Mchl [Mchl!~Mchl@188.116.55.60] has joined #ruby
<catphish>
im going home now
<apeiros_>
err, TCPServer
<apeiros_>
after all, it's a single line of code to add - which consists of a proper set of headers and the content
<catphish>
apeiros_: that may be true, but only if he understands the http protocol
<JonnieCache>
scott_nz: you will get that error if a is totally undefined
amar_key [amar_key!u2605@gateway/web/irccloud.com/x-jwqofpoxvobcclij] has joined #ruby
<apeiros_>
catphish: you don't need to understand the protocol. you only need a single set of headers and you can look that up…
Nowaker [Nowaker!~nowaker@geozone.pl] has joined #ruby
<deryl>
you don't hav eto understand the http protocol directly if you just follow the docs :)
ikaros [ikaros!~ikaros@dslb-188-107-220-229.pools.arcor-ip.net] has joined #ruby
<shadoi>
scott_nz: you can use: defined?(a), but beware that it returns strings instead of true
<JonnieCache>
scott_nz: better to rewrite your code so a is a method call of some kind, or an instance variable
<scott_nz>
JonnieCache: oh i can see that now in rib when i create a method. so defined?(b) will return false but b || a will only work if b is in the method. do the variables some how bubble in scope?
thomasdebenning [thomasdebenning!~thomasdeb@108.60.121.130] has joined #ruby
robotmay [robotmay!~robotmay@5ad8f1da.bb.sky.com] has joined #ruby
<cek>
tcp echo won't work , http request has slightly different format than http reply
<shadoi>
scott_nz: variables without a sigil or caps are local.
relix [relix!u2146@gateway/web/irccloud.com/x-rqpdnjndkmyhsldu] has joined #ruby
<cek>
sinatra doesn't reload code on change, like in rails
<shadoi>
cek: use shotgun and suddenly it does.
amerine [amerine!~mturner@67.204.184.82] has joined #ruby
crankycoder [crankycoder!~crankycod@12.177.139.178] has joined #ruby
quest88 [quest88!~quest88@12.181.53.123] has joined #ruby
csherin [csherin!~csherin@61.11.47.189] has joined #ruby
<scott_nz>
does an if block have its own variable scope?
<danheberden>
no
<scott_nz>
ah ok thanks guys that clears some things up for me
<scott_nz>
much appreciated
dkannan [dkannan!u480@gateway/web/irccloud.com/x-zqnsbsluxsffdmdu] has joined #ruby
<ReinH>
apeiros_: I can write an "echo server" that responds with an HTTP repsonse in bash using netcat in 4 LOC
<apeiros_>
ReinH: I suggest you do it and paste it, then poor cek has something to work with…
moeSeth [moeSeth!u1029@gateway/web/irccloud.com/x-kpjuijmiubufegim] has joined #ruby
<deryl>
depends on which code is changed on if rails reloads it. in production rails won't reload classes generally because config.cache_classes=true is the default production setting.
<deryl>
in which case oyu have to either restart rails, or issue a reload through the rails console
<deryl>
s/oyu/you/
<cek>
you tell me i fucked around with unloadable constants for straight 1 day
kapowaz [kapowaz!u546@gateway/web/irccloud.com/x-bcipedxsjrqzrdzq] has joined #ruby
davidboy [davidboy!u3228@gateway/web/irccloud.com/x-ghwrqrqrabrkxdjr] has joined #ruby
<cek>
and finally got it working
raincole_ [raincole_!~raincole@140.112.239.113] has joined #ruby
cmasseraf [cmasseraf!~ColdFusio@187.106.203.65] has joined #ruby
<ReinH>
apeiros_: ugh, of course I'm on OS X so no nc -c
<ReinH>
sigh
<apeiros_>
brew install netcat ?
<apeiros_>
or is that bsd vs gnu?
<ReinH>
bsd iirc
<ReinH>
I hate scripting nc
<deryl>
correct
<ReinH>
because it's always so different
<apeiros_>
same with top…
<ReinH>
apeiros_: fuck it, I will use /dev/tcp
davidcelis [davidcelis!~david@70-89-180-6-smc-or.hfc.comcastbusiness.net] has joined #ruby
<apeiros_>
:)
bluOxigen [bluOxigen!ssf@unaffiliated/bluOxigen] has joined #ruby
<ReinH>
apeiros_: I write a redis client in bash using /dev/tcp and people are telling me I don't understand TCP
* ReinH
facepalms
daniel_hinojosa [daniel_hinojosa!~danno@67-0-117-93.albq.qwest.net] has joined #ruby
<cek>
yea, so what you know about tsvals and sacks?
cmasseraf [cmasseraf!~ColdFusio@187.106.203.65] has joined #ruby
<cek>
catphish, how do I "wildcard" method in sinatra so I don't write 6 of them?
Nowaker [Nowaker!~nowaker@geozone.pl] has joined #ruby
colossal7 [colossal7!~colossal7@75-169-53-227.slkc.qwest.net] has joined #ruby
<ReinH>
cek: you're telling me you know about the TCP timestamp clock but you DON'T know how to make a server that will echo an HTTP request?
<deryl>
oh jeez. how is it everyone else *but* you is wrong on everything you've said so far
<cek>
rack tutorial
Shrink [Shrink!~sgupta@redhat/shrink] has joined #ruby
<apeiros_>
abandon all hope…
jwang [jwang!~jwang@c-69-181-115-143.hsd1.ca.comcast.net] has joined #ruby
<csavola>
... and I'm done with that
<cek>
this hcannel is of no use
<csavola>
ignore is a wonderful thing
<ReinH>
if you can't formulate a search query for rack that is specific to ruby
<ReinH>
you are officially beyond help
<cek>
i mean, i asked totally simple question with defined params and you failed to answer
mmokrysz [mmokrysz!~mmokrysz@pdpc/supporter/student/mmokrysz] has joined #ruby
<deryl>
no you asked bullshit is what you did
<ReinH>
cek: what was this simple question with defined params?
<ReinH>
remember when we got into an argument because you don' tknow what an "echo server" is?
<ReinH>
remember when we got into an argument because you don' tknow what an "echo server" is?yeah.
<ReinH>
why did that double post? :(
<apeiros_>
funny, rackup minds the suffix? wtf? :(
<ReinH>
bad internet is bad
<cek>
i needed a very simple ruby based http echo server that would echo parameters. the request would come over ssl, thus some ssl aware support was needed.
brngardner [brngardner!~brngardne@lawn-143-215-127-6.lawn.gatech.edu] has joined #ruby
alex__c2022 [alex__c2022!~alex@207.239.64.154] has joined #ruby
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
<cek>
hurl.it is a wonderful resource. Now I need a server for it that does exactly that.
<cek>
answers queries with some examples
<cek>
echo is the most basic example one could imagine
<cek>
it should catch everything, not only GET. fuck GET. i want to OPTIONS / HTTP/1.0
banisterfiend [banisterfiend!~baniseter@118.82.185.158] has joined #ruby
letsgojuno [letsgojuno!~mmathews8@188.220.153.25] has joined #ruby
<ReinH>
hex``: you don't need to ask twice
Telmo [Telmo!~telmo@c-68-44-135-81.hsd1.pa.comcast.net] has joined #ruby
`brendan [`brendan!~b@66-208-246-34-ubr02b-waldlk01-mi.hfc.comcastbusiness.net] has joined #ruby
<hex``>
robyurkowski: thank you very much
<hex``>
ReinH: sorry :)
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby
acadavid [acadavid!~acadavid@190.71.122.249] has joined #ruby
burgestrand [burgestrand!~burgestra@80.252.215.26] has joined #ruby
dv310p3r [dv310p3r!~dv310p3r@216.199.155.226.nw.nuvox.net] has joined #ruby
mmokrysz [mmokrysz!~mmokrysz@pdpc/supporter/student/mmokrysz] has joined #ruby
dankest [dankest!~dankest@wsip-174-75-64-190.sb.sd.cox.net] has joined #ruby
<dankest>
I
cobragoat [cobragoat!~cobragoat@adsl-71-142-54-0.dsl.scrm01.pacbell.net] has joined #ruby
<dankest>
I'm trying to load multiple YAML objects from a text file, but when I use YAML::load(File.open("#{Rails.root}/get_courses.txt")), it only returns the first YAML object in the file. What do I need to do to load all the objects into an array?
d2dchat [d2dchat!~d2dchat@173-167-20-129-michigan.hfc.comcastbusiness.net] has joined #ruby
tokumine [tokumine!~kunio@82-69-174-54.dsl.in-addr.zen.co.uk] has joined #ruby
GreaseMonkey [GreaseMonkey!~gm@unaffiliated/greasemonkey] has joined #ruby
CreativeEmbassy [CreativeEmbassy!~CreativeE@h142.127.232.68.dynamic.ip.windstream.net] has joined #ruby
<dankest>
Nevermind! I found YAML::load_documents
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby
btanaka [btanaka!~textual@17.245.88.136] has joined #ruby
Nicke\ [Nicke\!~nickelito@h32n5c1o260.bredband.skanova.com] has joined #ruby
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby
crankycoder [crankycoder!~crankycod@12.177.139.178] has joined #ruby
davidcelis [davidcelis!~david@70-89-180-6-smc-or.hfc.comcastbusiness.net] has joined #ruby
g0tmi1k [g0tmi1k!~g0tmi1k@unaffiliated/g0tmi1k] has joined #ruby
apok [apok!~apok@c-107-3-149-167.hsd1.ca.comcast.net] has joined #ruby
bbttxu [bbttxu!~adam@68-191-221-18.static.dntn.tx.charter.com] has joined #ruby
adam_lowe [adam_lowe!~adam@c-69-180-90-26.hsd1.fl.comcast.net] has joined #ruby
senj [senj!~senj@S01060026f323bcdf.ed.shawcable.net] has joined #ruby
araujo [araujo!~araujo@gentoo/developer/araujo] has joined #ruby
baroquebobcat [baroquebobcat!~nick@c-67-176-80-121.hsd1.co.comcast.net] has joined #ruby
crankycoder [crankycoder!~crankycod@12.177.139.178] has joined #ruby
minijupe [minijupe!~benlieb@97-95-236-58.dhcp.sffl.va.charter.com] has joined #ruby
afex [afex!~kthornhil@wsip-68-225-20-130.oc.oc.cox.net] has joined #ruby
BrianE [BrianE!~brian@87.112.149.96] has joined #ruby
statix [statix!~statix@rrcs-208-125-52-150.nys.biz.rr.com] has joined #ruby
cearls [cearls!~cearls@74-94-219-161-LittleRock.hfc.comcastbusiness.net] has joined #ruby
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
baroquebobcat [baroquebobcat!~nick@c-67-176-80-121.hsd1.co.comcast.net] has joined #ruby
Jed_84 [Jed_84!~username@190.194.62.47] has joined #ruby
ylluminate [ylluminate!~ylluminat@rrcs-24-123-53-166.central.biz.rr.com] has joined #ruby
acadavid [acadavid!~acadavid@190.71.122.249] has joined #ruby
tatsuya_o [tatsuya_o!~tatsuya_o@46-64-51-175.zone15.bethere.co.uk] has joined #ruby
fred [fred!~fred@slamd64/fred] has joined #ruby
<fred>
hi all - it's been a while since I did a new project - is mocha still considered a good mocking framework?
<fred>
(for using while testing my project, project isn't making a new mocking library :p )
<csavola>
fred: that's a loaded question :) if you like mocha use it
<statix>
I'm trying to do this in a Chef bootstrap script, but apparently this is not legal Ruby, can someone tell me how to do this properly? echo "<%= @config[:chef_node_name].split(".")[0] %>" > /etc/hostname
tbrock [tbrock!~tbrock@74.113.160.178] has joined #ruby
tesmar [tesmar!~tesmar@cpe-024-163-059-067.nc.res.rr.com] has joined #ruby
<statix>
I get (erubis):19:in `evaluate': private method `split' called for nil:NilClass (NoMethodError)
<csavola>
statix: @config does not have a value for :chef_node_name
seb_ [seb_!~seb@lns-bzn-36-82-251-51-220.adsl.proxad.net] has joined #ruby
rickmasta [rickmasta!~rickmasta@pool-71-183-247-164.nycmny.fios.verizon.net] has joined #ruby
<fred>
csavola: :) cool - I just know that if I like something, come back after a year, there's a fair chance that it's been replaced by something better :p
mztriz [mztriz!~mztriz@nkugateway.nku.edu] has joined #ruby
cdepue [cdepue!~cdepue@host247.190-139-62.telecom.net.ar] has joined #ruby
<csavola>
fred: just because it's hip/new doesn't make it better
<statix>
Hmm, that @config[:chef_node_name] variable is used in other places in the file; maybe I have to cast it to a string? (no idea)
<fred>
csavola: of course, but if consensus says it's better, it's at least worth looking at
<csavola>
statix: try puts @config.inspect and check to see that it's what you expect it to be
<statix>
OK, thanks
ap3mantus [ap3mantus!~ap3mantus@c-98-217-179-108.hsd1.ma.comcast.net] has joined #ruby
c0rn [c0rn!~c0rn@50-0-142-2.dsl.dynamic.sonic.net] has joined #ruby
imsplitbit [imsplitbit!~imsplitbi@64.39.5.119] has joined #ruby
evantrav_ [evantrav_!~textual@fw.luckie.net] has joined #ruby
<statix>
csavola: I actually get: {:chef_node_name=>"test64-2.cloud-a.domain.com", ...... }
maxerize [maxerize!~maxerize@178.209.46.137] has joined #ruby
macmartine [macmartine!~macmartin@c-24-21-112-60.hsd1.or.comcast.net] has joined #ruby
ePirat [ePirat!~ePirat@unaffiliated/epirat] has joined #ruby
<ePirat>
hello
amerine [amerine!~mturner@67.204.184.82] has joined #ruby
<wroathe>
shadoi, I appreciate it :)
<InfiniteJest>
(I forgot to add that Ruby version is 1.9.2-p290)
<ePirat>
I've a problem running a ruby project getting following error: http://pastebin.com/gfJaR2aL anyone knows why?
pablo_ [pablo_!~pabloh@186.22.82.39] has joined #ruby
BrianE [BrianE!~brian@87.112.149.96] has joined #ruby
jbpros [jbpros!~jbpros@89-178-112-217.dyn.adsl.belcenter.be] has joined #ruby
<csavola>
InfiniteJest: it's a ruby 1.9 thing... it calls #to_ary on something as the first call
cdepue_ [cdepue_!~cdepue@190.194.166.167] has joined #ruby
strife25 [strife25!strife25@nat/ibm/x-mipugljqehkasjsn] has joined #ruby
ikaros [ikaros!~ikaros@dslb-188-107-220-229.pools.arcor-ip.net] has joined #ruby
chrisja [chrisja!~chris@5ac7d92c.bb.sky.com] has joined #ruby
petercoulton [petercoulton!~petercoul@cpc1-midd16-2-0-cust160.11-1.cable.virginmedia.com] has joined #ruby
jasonseifer [jasonseifer!~jason@rrcs-97-79-57-135.se.biz.rr.com] has joined #ruby
jamiemill [jamiemill!~jamiemill@78-86-4-116.zone2.bethere.co.uk] has quit [#ruby]
ephemerian [ephemerian!~ian@82-71-51-229.dsl.in-addr.zen.co.uk] has joined #ruby
tvo [tvo!~tvo@katapult/developer/tvo] has joined #ruby
justfielding [justfielding!~justfield@ip70-178-131-208.ks.ks.cox.net] has quit [#ruby]
cdepue [cdepue!~cdepue@host247.190-139-62.telecom.net.ar] has joined #ruby
recycle [recycle!~recycle@cpe-76-88-36-115.san.res.rr.com] has joined #ruby
kerframil [kerframil!~kerframil@cpc2-enfi16-2-0-cust659.hari.cable.virginmedia.com] has joined #ruby
ap3mantus [ap3mantus!~ap3mantus@c-98-217-179-108.hsd1.ma.comcast.net] has joined #ruby
adambeynon [adambeynon!~adambeyno@82-69-1-211.dsl.in-addr.zen.co.uk] has joined #ruby
charnel [charnel!~cem@62.248.91.94] has joined #ruby
icrazyhack [icrazyhack!~horieyui@183.60.101.84] has joined #ruby
canton7 [canton7!~canton7@87-194-161-58.bethere.co.uk] has joined #ruby
TomJ [TomJ!~TomJ@host-2-96-238-73.as13285.net] has joined #ruby
TomJ [TomJ!~TomJ@unaffiliated/tomj] has joined #ruby
LiquidInsect [LiquidInsect!~billabney@50-0-135-178.dedicated.static.sonic.net] has joined #ruby
dv310p3r [dv310p3r!~dv310p3r@216.199.155.226.nw.nuvox.net] has joined #ruby
flippingbits [flippingbits!~anonymous@ip-81-210-178-39.unitymediagroup.de] has joined #ruby
bbttxu [bbttxu!~adam@pool-71-96-208-205.dfw.dsl-w.verizon.net] has joined #ruby
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
pablo_ [pablo_!~pabloh@186.22.82.39] has joined #ruby
CreativeEmbassy [CreativeEmbassy!~CreativeE@h142.127.232.68.dynamic.ip.windstream.net] has joined #ruby
zastaph [zastaph!zastaph@unaffiliated/zastaph] has joined #ruby
hadees [hadees!~hadees@rrcs-71-41-203-94.sw.biz.rr.com] has joined #ruby
hadees_ [hadees_!~hadees@rrcs-71-41-203-91.sw.biz.rr.com] has joined #ruby
Guest24825 [Guest24825!~ePirat@p57A96FEE.dip.t-dialin.net] has joined #ruby
enherit [enherit!~enherit@216.3.99.206] has joined #ruby
<Guest24825>
I've a problem using a ruby script, trying to run with foreman start -f Procfile, i get an require error, seems something is not found but dunno why, anyone can help me please? http://pastebin.com/8hmkfUkJ
Guest24825 [Guest24825!~ePirat@unaffiliated/epirat] has joined #ruby
thomasdebenning [thomasdebenning!~thomasdeb@12.218.85.2] has joined #ruby
stkowski [stkowski!~stkowski@12.207.16.130] has joined #ruby
apeiros_ [apeiros_!~apeiros@77-58-113-31.dclient.hispeed.ch] has joined #ruby
tokumine [tokumine!~kunio@82-69-174-54.dsl.in-addr.zen.co.uk] has joined #ruby
Nss_ [Nss_!~nss@host127-217-dynamic.55-79-r.retail.telecomitalia.it] has joined #ruby
rjfranco [rjfranco!~rjfranco@50-78-182-242-static.hfc.comcastbusiness.net] has joined #ruby
plustwo [plustwo!~quassel@unaffiliated/plustwo] has quit ["http://quassel-irc.org - Chat comfortably. Anywhere."]
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby
<Hanmac>
ePirat: pastebin is currently broken, but it is the same paste from last hour? ... have you installed bundler?
<ePirat>
yeah i have
asobrasil [asobrasil!~asantioli@palpatine.privatedns.com] has quit [#ruby]
<trivol>
Do you know a way to write a string into an Array ? (I have an array of 20 char, and I want to write "Hello" in it starting at the index 5)
Kavu [Kavu!~Kavu@zurich.tunnelr.com] has joined #ruby
<Hanmac>
trivol: do you mean like: oldString[5,0]="Hello"
hadees [hadees!~hadees@rrcs-71-41-203-94.sw.biz.rr.com] has joined #ruby
<ePirat>
Hanmac, oh wait there is an error when i try to bundle, while installing bcrypt-ruby
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
<Hanmac>
a[5,0] = s.split("")
<trivol>
awesome :) thx
tokumine [tokumine!~kunio@82-69-174-54.dsl.in-addr.zen.co.uk] has joined #ruby
tokumine [tokumine!~kunio@82-69-174-54.dsl.in-addr.zen.co.uk] has joined #ruby
luckyruby [luckyruby!~luckyruby@125-187.96-97.tampabay.res.rr.com] has joined #ruby
<geekbri>
Anybody here doing continous integration with jenkins with ruby? Any suggestions on the best way to do it?
<ePirat>
Hanmac, ok tracked down the error, it requires mkmf which cannot be found, but i have installed ruby… why could that be?
<Hanmac>
the dev package too?
<ePirat>
yep
<Hanmac>
then i dont know ... mkmf is in the ruby*version*-dev package, so it should be requireable ...
panpainter [panpainter!~panpainte@c-71-231-141-181.hsd1.wa.comcast.net] has joined #ruby
<Hanmac>
i hope this is not a bug of rvm :(
<deryl>
if you're using dev packages then its definitely *not* rvm
<deryl>
rvm only gives you *access* to the system ruby, it does not in any way shape or form control it.
<deryl>
rvm use system
<deryl>
now its the OS's responsibility (the OS's package manager)
<Hanmac>
i never used rvm so i dont know
pantsman [pantsman!~pantsman@2.25.204.228] has joined #ruby
pantsman [pantsman!~pantsman@pdpc/supporter/active/pantsman] has joined #ruby
<voodoofish430>
if I have a class that extends it's base class, can both have in initialize method or only 1?
RudyValencia- [RudyValencia-!rudyv@unaffiliated/rudyvalencia] has joined #ruby
<ePirat>
hah
<canton7>
both can have constructors, yeah
<ePirat>
got it working
<ePirat>
had the wrong version of the dev pakcages
<canton7>
if you want the child class's constructor to call the parent's constructor, use super()
sagsousuke [sagsousuke!~user@201.93.205.133] has joined #ruby
zukunftsalick [zukunftsalick!~tworker@75.40.149.118] has joined #ruby
Nss [Nss!~nss@host127-217-dynamic.55-79-r.retail.telecomitalia.it] has joined #ruby
tbrock [tbrock!~tbrock@74.113.160.178] has joined #ruby
Seisatsu [Seisatsu!~seisatsu@adsl-99-35-225-92.dsl.pltn13.sbcglobal.net] has joined #ruby
<apeiros_>
there aren't really constructors in ruby. the closest thing to a constructor is Class#allocate. initialize is an instance method and its name is very accurate - it doesn't construct the object, it initializes it.
robyurkowski [robyurkowski!~robyurkow@205.233.80.139] has joined #ruby
sixpoint8 [sixpoint8!~jaykub@ip68-12-204-131.ok.ok.cox.net] has joined #ruby
<apeiros_>
you *could* consider new a constructor. all it does is run allocate and invoke initialize with its own args
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
Targen [Targen!~iguana@159.90.11.250] has joined #ruby
g1dv [g1dv!~dellavedo@host32-80-dynamic.44-79-r.retail.telecomitalia.it] has joined #ruby
cespare [cespare!~cespare@eng.nat.mtv.ooyala.com] has joined #ruby
dzhulk [dzhulk!~dzhulk@88.201.230.6] has quit [#ruby]
pandora17 [pandora17!~pandora17@p508D518C.dip.t-dialin.net] has joined #ruby
c0rn [c0rn!~c0rn@50-0-142-2.dsl.dynamic.sonic.net] has joined #ruby
letsgojuno [letsgojuno!~mmathews8@188.220.153.25] has joined #ruby
Azure [Azure!~azt@unaffiliated/azure] has joined #ruby
baroquebobcat [baroquebobcat!~nick@c-67-176-80-121.hsd1.co.comcast.net] has joined #ruby
rexbutler [rexbutler!~rex@c-24-10-196-81.hsd1.ut.comcast.net] has joined #ruby
Shamgar [Shamgar!~mbainter@sourcemage/mage/Shamgar] has joined #ruby
dv310p3r [dv310p3r!~dv310p3r@host-208-68-238-122.biznesshosting.net] has joined #ruby
gianlucadv [gianlucadv!~dellavedo@host32-80-dynamic.44-79-r.retail.telecomitalia.it] has joined #ruby
kevinbond [kevinbond!~kevinbond@112.50.204.68.cfl.res.rr.com] has quit [#ruby]
tokumine [tokumine!~kunio@82-69-174-54.dsl.in-addr.zen.co.uk] has joined #ruby
Squarepy [Squarepy!~Squarepy@ip82-139-118-42.lijbrandt.net] has joined #ruby
Squarepy [Squarepy!~Squarepy@unaffiliated/squarepy] has joined #ruby
hubub [hubub!~hubub@85.13.231.45] has joined #ruby
gianlucadv [gianlucadv!~dellavedo@host32-80-dynamic.44-79-r.retail.telecomitalia.it] has joined #ruby
n00b_gloves [n00b_gloves!~n00b_glov@CPE0023bee17c0e-CM0023bee17c0b.cpe.net.cable.rogers.com] has joined #ruby
kevinbond [kevinbond!~kevinbond@112.50.204.68.cfl.res.rr.com] has joined #ruby
kevinbond [kevinbond!~kevinbond@112.50.204.68.cfl.res.rr.com] has quit [#ruby]
kevinbond [kevinbond!~kevinbond@68.204.50.112] has joined #ruby
n00b_gloves [n00b_gloves!~n00b_glov@CPE0023bee17c0e-CM0023bee17c0b.cpe.net.cable.rogers.com] has joined #ruby
n00b_gloves [n00b_gloves!~n00b_glov@CPE0023bee17c0e-CM0023bee17c0b.cpe.net.cable.rogers.com] has joined #ruby
mononofu [mononofu!~mononofu@chello062178010088.4.11.vie.surfer.at] has joined #ruby
kinofcain [kinofcain!~KinOfCain@72.244.116.58] has quit [#ruby]
lkba [lkba!~AndChat@acjq134.neoplus.adsl.tpnet.pl] has joined #ruby
spyvsspy [spyvsspy!~nonenone@209.145.177.162] has joined #ruby
<mononofu>
does ruby do some kind of funky encoding when reading from files?
<LiquidInsect>
asteve: usually you use braces for single-line blocks and do...end for multi-line blocks
<LiquidInsect>
otherwise, no
<asteve>
LiquidInsect: awesome, thanks
<canton7>
asteve, style mainly. There's a slight precidence difference, but most agree that stylistically, bra... what LiquidInsect said
cousine [cousine!~cousine@196.221.245.118] has joined #ruby
baroquebobcat [baroquebobcat!~nick@70-90-113-174-co.denver.hfc.comcastbusiness.net] has joined #ruby
cdepue [cdepue!~cdepue@host247.190-139-62.telecom.net.ar] has joined #ruby
kylemcgill [kylemcgill!~kylemcgil@static-ip-202-90-56-14.watchdog.net.nz] has joined #ruby
ferbass [ferbass!~ferbass@189.102.51.45] has joined #ruby
kvyn [kvyn!~kvyn@w0109-49-134-252-238.uqwimax.jp] has joined #ruby
eignerchris_ [eignerchris_!~eignerchr@c-24-20-239-11.hsd1.or.comcast.net] has joined #ruby
tbrock [tbrock!~tbrock@74.113.160.178] has joined #ruby
c0rn [c0rn!~c0rn@adsl-69-110-7-189.dsl.pltn13.pacbell.net] has joined #ruby
cdepue [cdepue!~cdepue@host247.190-139-62.telecom.net.ar] has joined #ruby
d3b4g [d3b4g!~d3b4g@123.176.25.98] has joined #ruby
ianbrandt [ianbrandt!~ianbrandt@99-111-99-153.uvs.sndgca.sbcglobal.net] has joined #ruby
friskd [friskd!~friskd@71-95-209-242.static.mtpk.ca.charter.com] has joined #ruby
dagnachewa [dagnachewa!~dagnachew@modemcable142.238-179-173.mc.videotron.ca] has joined #ruby
mamu [mamu!~Michael@c-75-73-32-123.hsd1.mn.comcast.net] has joined #ruby
Blazento [Blazento!~john@ool-457e916e.dyn.optonline.net] has joined #ruby
jmorton_ [jmorton_!~jmorton@CUSTOMINK-L.ipcolo2.Washington1.Level3.net] has joined #ruby
cmasseraf [cmasseraf!~ColdFusio@187.106.195.233] has joined #ruby
aetaric [aetaric!~aetaric@74-130-83-237.dhcp.insightbb.com] has joined #ruby
jmorton_ [jmorton_!~jmorton@CUSTOMINK-L.ipcolo2.Washington1.Level3.net] has joined #ruby
spyvsspy [spyvsspy!~nonenone@209.145.177.162] has joined #ruby
sdwrage [sdwrage!~sdwrage@cpe-184-57-83-165.columbus.res.rr.com] has joined #ruby
crankycoder [crankycoder!~crankycod@12.177.139.178] has joined #ruby
pootpoot [pootpoot!~pootpoot@38.108.250.130] has quit [#ruby]
cdepue_ [cdepue_!~cdepue@190.194.166.167] has joined #ruby
Transformer [Transformer!~Transform@ool-4a59e397.dyn.optonline.net] has joined #ruby
mztriz [mztriz!~mztriz@74-136-75-114.dhcp.insightbb.com] has joined #ruby
hamiltop [hamiltop!~peter@128.187.188.234] has joined #ruby
dankest [dankest!~dankest@wsip-174-75-64-190.sb.sd.cox.net] has joined #ruby
<hamiltop>
I'm using ruby to interface with an embedded system over a uart. I am sending a struct over the connection and I am trying to find a good way to parse out the binary data and store it in an equivalent class in ruby. Is there a simple way to do this?
<canton7>
I suspect a C extension might be required
m_p [m_p!~m_p@107.0.83.66] has joined #ruby
<mamu>
has anyone ever had to work around weird issues with NameError#to_s/NameError#message ? I've found a few folks on the web discussing seeing inappropriate behavior with name_err_to_s / name_err_mesg_to_str and it seems to be hitting my production processes pretty hard whenever a name error is rescued and logged. hard being several seconds cranking the cpu as fast as it can. (this is on ruby 1.9.2p290)
colint_ [colint_!~ColinT@71-17-98-228.regn.hsdb.sasknet.sk.ca] has joined #ruby
colint_ [colint_!~ColinT@69.80.101.246] has joined #ruby
havenn [havenn!~skipper@rrcs-76-79-113-21.west.biz.rr.com] has joined #ruby
kevinbond [kevinbond!~kevinbond@112.50.204.68.cfl.res.rr.com] has joined #ruby
tvw [tvw!~tv@82.113.99.73] has joined #ruby
kevinbond [kevinbond!~kevinbond@68.204.50.112] has joined #ruby
alx- [alx-!~Alex@108.162.180.72] has joined #ruby
brmouzone [brmouzone!~brmouzone@108-90-18-133.lightspeed.cicril.sbcglobal.net] has joined #ruby
dorzey [dorzey!~dorzey@host-92-28-82-104.as13285.net] has joined #ruby
jrist [jrist!~jrist@71-212-215-38.hlrn.qwest.net] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
cespare [cespare!~cespare@eng.nat.mtv.ooyala.com] has joined #ruby
dyer [dyer!~dyer@unaffiliated/dyer] has joined #ruby
tesmar [tesmar!~tesmar@cpe-024-163-059-067.nc.res.rr.com] has joined #ruby
minijupe [minijupe!~benlieb@adsl-74-243-170-217.ard.bellsouth.net] has joined #ruby
luxurymode [luxurymode!~luxurymod@pool-71-167-49-181.nycmny.fios.verizon.net] has joined #ruby
vietnaam [vietnaam!~victor@187.174.205.9] has joined #ruby
dorzey [dorzey!~dorzey@host-92-28-82-104.as13285.net] has quit [#ruby]