<bnagy>
mkmf.rb can't find header files for ruby at /usr/local/rvm/rubies/jruby-head/lib/native/include/ruby/ruby.h
<drbrain>
is that the whole log?
<drbrain>
do you have files in /usr/local/rvm/rubies/jruby-head/lib/native/include/ruby ?
pritesh [pritesh!~pritesh@115.248.175.50] has joined #ruby-lang
<bnagy>
sry got disc'ed... logging back in and looking (and yeah, that's the only relevant part of the log, it's like 3 lines)
<drbrain>
do you have files in /usr/local/rvm/rubies/jruby-head/lib/native/include/ruby ?
<drbrain>
or /usr/local/rvm/rubies/jruby-head/lib/native/include ?
<bnagy>
ok include is missing from the jruby-head subdir
Heimidal [Heimidal!~heimidal@c-67-165-197-126.hsd1.co.comcast.net] has joined #ruby-lang
JosephRuby [JosephRuby!~joseph@46.33.39.243] has joined #ruby-lang
<bnagy>
alright, blindly cp'ing from another ruby's include/ isn't working :)
<bnagy>
lemme try #jruby, cheers
ramonmaruko [ramonmaruko!~marco@122.52.126.66] has joined #ruby-lang
jredville [jredville!~james.dev@c-66-235-23-17.sea.wa.customer.broadstripe.net] has joined #ruby-lang
setmeaway [setmeaway!stemearay@119.201.52.190] has joined #ruby-lang
Banistergalaxy [Banistergalaxy!~AndChat@222.153.223.44] has joined #ruby-lang
tenderlove [tenderlove!~tenderlov@pdpc/supporter/active/tenderlove] has joined #ruby-lang
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
szarubin [szarubin!~stas@94.27.82.120] has joined #ruby-lang
brianpWins [brianpWins!~brianpWin@S01060014bf8930ea.vc.shawcable.net] has joined #ruby-lang
amerine [amerine!~mturner@bc171197.bendcable.com] has joined #ruby-lang
ramonmaruko [ramonmaruko!~marco@122.52.126.66] has quit ["PART #regex :QUIT :Leaving."]
sei [sei!~sei@user-3c2h3m6.cable.mindspring.com] has joined #ruby-lang
jxie [jxie!~jxie@115.198.175.95] has joined #ruby-lang
moinkers [moinkers!~m@pool-96-248-222-222.nrflva.fios.verizon.net] has joined #ruby-lang
jaafar [jaafar!~jet@adsl-76-200-166-49.dsl.pltn13.sbcglobal.net] has joined #ruby-lang
setmeaway [setmeaway!~setmeaway@119.201.52.190] has joined #ruby-lang
neoesque [neoesque!~neoesque@210.59.147.232] has joined #ruby-lang
yxhuvud [yxhuvud!mongo@h-209-13.a212.priv.bahnhof.se] has joined #ruby-lang
dfr|mac [dfr|mac!~dfr|work@ool-18baf7e7.dyn.optonline.net] has joined #ruby-lang
hallucinations [hallucinations!~hallucina@115.249.98.157] has joined #ruby-lang
szarubin [szarubin!~stas@94.27.82.120] has joined #ruby-lang
burgestrand [burgestrand!~burgestra@h-45-63.a155.priv.bahnhof.se] has joined #ruby-lang
uniqanomaly [uniqanomaly!~ua@dynamic-78-8-86-194.ssp.dialog.net.pl] has joined #ruby-lang
ksinkar [ksinkar!~ksinkar@123.201.117.198] has joined #ruby-lang
livinded [livinded!~lolwut@pool-108-23-242-132.lsanca.fios.verizon.net] has joined #ruby-lang
<shevy>
hmm bit off topic ... how are the [ and ] characters called in english? parens also, like ( and ) ?
<shevy>
'[' and ']'
<bnagy>
'square {braces|brackets}'
<shevy>
ok thanks
goutham [goutham!736fb17a@gateway/web/freenode/ip.115.111.177.122] has joined #ruby-lang
<goutham>
[eventmachine] how to capture stdout, stderr in callback while using EM::DeferrableChildProcess
tomzx [tomzx!~tomzx@dsl-156-68.aei.ca] has joined #ruby-lang
takaokouji [takaokouji!~takaokouj@2001:268:306:1:225:bcff:fedc:e1fe] has joined #ruby-lang
ryanf [ryanf!~revfitz@adsl-67-122-210-85.dsl.pltn13.pacbell.net] has joined #ruby-lang
szarubin [szarubin!~stas@94.27.82.120] has joined #ruby-lang
|Vargas| [|Vargas|!~luke@pdpc/supporter/profesional/vargas] has joined #ruby-lang
heftig [heftig!~Jan@archlinux/developer/heftig] has joined #ruby-lang
replore_ [replore_!~replore@203.152.213.161.static.zoot.jp] has joined #ruby-lang
Locke23rus [Locke23rus!~quassel@188.162.162.83] has joined #ruby-lang
<josh9>
my domain object have an instance variable that can be nil/:dropped/:increased. each state will show different text on my site. where should i write the if/else statement that decide what to display based on the state? normally i would do that in the erb template, but it makes my template 'dirty', right? is there a better approach?
headius [headius!~headius@71-210-151-185.mpls.qwest.net] has joined #ruby-lang
<drbrain>
a method on your domain object that spits out the correct text?
<drbrain>
if it's more complicated than text, render a different partial?
<josh9>
drbrain: i guess i can use a method that spits text, but i thought it's considered 'wrong' since this is a UI related thing.
<drbrain>
josh9: IMO, if you were to implement two different views and they had to each choose this same text based on a field in your model you're doing it wrong
<drbrain>
the model is the single unambiguous source for such information
<drbrain>
however, if that means you need to add more than one line per case to your model, perhaps a different solution is waranted
<drbrain>
or if you have to add more than, say, 10 different cases to your model
<josh9>
drbrain: it's only 2 cases and it's a 1 liner.
<drbrain>
yeah
<drbrain>
so I'd put it in the model
<josh9>
drbrain: isn't it couple that model to this specific ui?
<drbrain>
josh9: I couldn't say without looking at the code
<josh9>
if i'll ever consume this object from different interface, this method might not be relevent
<josh9>
relevant
* drbrain
nods
<josh9>
the method that spits the text
<drbrain>
from what you've said, I would put it on the model
Heimidal [Heimidal!~heimidal@c-67-165-197-126.hsd1.co.comcast.net] has joined #ruby-lang
<josh9>
ok. i'll give it a try. thanks
<drbrain>
I'm not sure what all the Cool Kids think these days, though
<josh9>
(:
thone_ [thone_!~thone@g225086100.adsl.alicedsl.de] has joined #ruby-lang
Weems [Weems!~the@unaffiliated/weems] has joined #ruby-lang
<drbrain>
when I want to add a method and don't know where it goes I try to place it as close to the data it uses as possible
dreinull [dreinull!~dreinull@ip-78-94-220-161.unitymediagroup.de] has joined #ruby-lang
Needtoknow [Needtoknow!Needtoknow@66.183.246.11] has joined #ruby-lang
frangiz [frangiz!~frangiz@user26.77-105-206.netatonce.net] has joined #ruby-lang
Torrieri [Torrieri!~Torrieri@nelug/crew/torrieri] has joined #ruby-lang
<josh9>
not bad - <%= product.update_message %>
Prat [Prat!c1342d11@gateway/web/freenode/ip.193.52.45.17] has joined #ruby-lang
robotmay [robotmay!~robotmay@5ad8f1da.bb.sky.com] has joined #ruby-lang
solars [solars!~solars@clnet-kmu02-090.ikbnet.co.at] has joined #ruby-lang
tla [tla!~tla@toelboell-lund.dk] has joined #ruby-lang
ylluminate [ylluminate!~ylluminat@rrcs-24-123-53-166.central.biz.rr.com] has joined #ruby-lang
dc5ala [dc5ala!~dc5ala@stgt-5d84be9b.pool.mediaWays.net] has joined #ruby-lang
<ylluminate>
i have some fairly precise floats that need to be emitted in json as floats, not as strings. presently they're showing up in scientific notation in the json output and when i pp the array elements. i'd like to simply emit 0.00001432 vs 1.432e-7
<ylluminate>
how can i coax or coerce this to happen? doing a "%f" % float
<ylluminate>
won't work because it yields a string
<rippa>
but JSON is always a string
<andrewvos>
Morning
<ylluminate>
well, i don't know what to say then rippa. i am 100% not sure what happened earlier today, but at one point i had float w/o sci notation coming out and things were working dandy. then suddenly the notation reappeared and buggered it all up. i forced it as noted as a string with appropriate precision, and still no go
<rippa>
what's wrong with scientific notation?
<ylluminate>
all i know is everywhere i've been reading on this particular library i have to pull out ints and floats for the graph to draw properly
<ylluminate>
the graphing library doesn't interpret scientific notation
<ryanf>
ylluminate: you should try a different json library maybe. if it can't be a string, you're pretty much at the mercy of the library for how it chooses to represent numbers
<rippa>
I see what you mean
<rippa>
ylluminate: you can hack the resulting JSON
<rippa>
just file off the quotes
<rippa>
off the numbers
<rippa>
that's way not pretty though
<ylluminate>
hm. well the thing that gets me is that this was working properly at one point and then i don't know what changed from one moment to the next.
<ylluminate>
i'm actually working in rails with the lazy_high_charts lib
<andrewvos>
drbrain: ModelPresenter?
<andrewvos>
Ok I'm walking away from my computer. The above statement was a joke. Just in case anyone argues it while I'm gone.
cyri_ [cyri_!~cyri_@236.200.72.86.rev.sfr.net] has joined #ruby-lang
arthurlockhart [arthurlockhart!~cinch@60-242-128-8.static.tpgi.com.au] has joined #ruby-lang
_inc [_inc!~inc@unaffiliated/-inc/x-0498339] has joined #ruby-lang
molgrew [molgrew!~bozo20@85.182.139.18] has joined #ruby-lang
indeterminate [indeterminate!~sei@user-3c2h3m6.cable.mindspring.com] has joined #ruby-lang
dreinull [dreinull!~dreinull@ip-78-94-220-161.unitymediagroup.de] has joined #ruby-lang
enikar [enikar!~gil@cl-140.mrs-01.fr.sixxs.net] has joined #ruby-lang
setmeaway [setmeaway!~setmeaway@119.201.52.190] has joined #ruby-lang
syphar [syphar!~syphar@brln-4dbc3c16.pool.mediaWays.net] has joined #ruby-lang
gnufied [gnufied!~gnufied@122.172.246.117] has joined #ruby-lang
adambeynon [adambeynon!~adambeyno@82-69-1-211.dsl.in-addr.zen.co.uk] has joined #ruby-lang
shevy [shevy!~shevy@88-117-39-187.adsl.highway.telekom.at] has joined #ruby-lang
kaiwren [kaiwren!~KaiWren@122.172.248.47] has joined #ruby-lang
saLOUt [saLOUt!~rriemann@91-65-223-29-dynip.superkabel.de] has joined #ruby-lang
artOfWar [artOfWar!~artofwar@108-205-201-30.lightspeed.sntcca.sbcglobal.net] has joined #ruby-lang
Banistergalaxy [Banistergalaxy!~AndChat@222.153.223.41] has joined #ruby-lang
AlHafoudh [AlHafoudh!~textual@85.248.11.120] has joined #ruby-lang
robotmay [robotmay!~robotmay@94.30.13.228] has joined #ruby-lang
indeterminate [indeterminate!~sei@user-3c2h3m6.cable.mindspring.com] has joined #ruby-lang
_inc [_inc!~inc@unaffiliated/-inc/x-0498339] has joined #ruby-lang
yango [yango!~yango@85.48.193.157] has joined #ruby-lang
davidw [davidw!~davidw@host228-251-static.95-94-b.business.telecomitalia.it] has joined #ruby-lang
gnufied [gnufied!~gnufied@122.172.246.117] has joined #ruby-lang
apeiros_ [apeiros_!~apeiros@194.209.75.58] has joined #ruby-lang
<Tasser>
how do I access the parsed html in mechanize?
rue [rue!~eeppa@echo622.server4you.de] has joined #ruby-lang
srbartlett [srbartlett!~srbartlet@124-148-180-125.dyn.iinet.net.au] has joined #ruby-lang
tcurdt [tcurdt!~tcurdt@89.246.67.229] has joined #ruby-lang
Carmivore [Carmivore!~carmivmor@ec2-50-16-94-68.compute-1.amazonaws.com] has joined #ruby-lang
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby-lang
Heimidal [Heimidal!~heimidal@c-67-165-197-126.hsd1.co.comcast.net] has joined #ruby-lang
robgleeson [robgleeson!~rob@subtle/contributor/robgleeson] has joined #ruby-lang
dave_miles [dave_miles!~davemiles@gatej.mh.bbc.co.uk] has joined #ruby-lang
srbartlett [srbartlett!~srbartlet@203.214.34.224] has joined #ruby-lang
empity [empity!~user@mail2.xype.com] has joined #ruby-lang
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby-lang
Carmivore [Carmivore!~carmivmor@ec2-184-72-71-178.compute-1.amazonaws.com] has joined #ruby-lang
JohnBat26 [JohnBat26!~Eugene@89.175.77.79] has joined #ruby-lang
enikar [enikar!~gil@cl-140.mrs-01.fr.sixxs.net] has joined #ruby-lang
zmack [zmack!~zmack@78.97.129.175] has joined #ruby-lang
regularfry [regularfry!~zander@eboracum.office.bytemark.co.uk] has joined #ruby-lang
<regularfry>
There's a zeromq binding gem out on the githubs somewhere which builds libzmq as part of the install, but I can't remember what it's called and can't find it. Ring any bells for anyone?
<darix>
regularfry: intree libraries are broken by definition
takaokouji [takaokouji!~takaokouj@nat35.mable.ne.jp] has joined #ruby-lang
_inc [_inc!~inc@unaffiliated/-inc/x-0498339] has joined #ruby-lang
<regularfry>
darix: I am sure you have your reasons for believing that
<rue>
It's funny because it's true
<darix>
install the library normally in your system and then let the gem pick it up from there
<darix>
regularfry: it is a maintenance nightmare
<darix>
instead of fixing one copy of the library you will fix n copies
<darix>
(when you are even aware of the other copies)
jensn [jensn!~Jens@ip229-77.wireless.lu.se] has joined #ruby-lang
<regularfry>
my choices are either a) install from OS package, in which case I get an out-of date library and have to lock myself to a gem version which is *also* out-of-date and not getting any attention, b) roll my own OS package, take responsibility for it and the gem, or c) install a gem.
<regularfry>
Given the choice, I'll go for c) - especially where I've already got a system for doing the gem -> OS package conversion.
toretore [toretore!~toretore@crr06-3-82-231-12-81.fbx.proxad.net] has joined #ruby-lang
retro|cz [retro|cz!~retro@106.142.broadband6.iol.cz] has joined #ruby-lang
stamina [stamina!~stamina@ip5452a9bc.speed.planet.nl] has joined #ruby-lang
sora_h [sora_h!~sora_h@mayfield.privs.net] has joined #ruby-lang
<darix>
lazyness ftw
alessio_rocco [alessio_rocco!~alessio@host61-75-static.224-95-b.business.telecomitalia.it] has joined #ruby-lang
indeterminate [indeterminate!~sei@user-3c2h3m6.cable.mindspring.com] has joined #ruby-lang
davidw [davidw!~davidw@apache/committer/davidw] has joined #ruby-lang
jasox [jasox!~jasox@178.239.26.139] has joined #ruby-lang
dreinull [dreinull!~dreinull@ip-78-94-220-161.unitymediagroup.de] has joined #ruby-lang
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby-lang
savage-_ [savage-_!~savage-@c-67-180-11-89.hsd1.ca.comcast.net] has joined #ruby-lang
heftig [heftig!jan@archlinux/developer/heftig] has joined #ruby-lang
Pip_ [Pip_!~Pip@unaffiliated/pip] has joined #ruby-lang
<Tasser>
is there a gem for a worker pool?
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby-lang
robotmay [robotmay!~robotmay@94.30.13.228] has joined #ruby-lang
Pip_ [Pip_!~Pip@unaffiliated/pip] has joined #ruby-lang
Weems [Weems!~the@unaffiliated/weems] has joined #ruby-lang
ksinkar [ksinkar!~ksinkar@117.195.102.179] has joined #ruby-lang
sush24 [sush24!~suhas@59.92.187.58] has joined #ruby-lang
<sush24>
hi all... i need to synthesize audio with ruby... are there any libraries that can help me?
<sush24>
it for a simple application...
<sush24>
here's the idea.... i have some data coming in... eg (2,3, -2 etc)... I should get an audio track proportional to that data
<sush24>
2 = 2 magnitude on the left channel
<sush24>
-2 = 2 magnitude on the right channel
<sush24>
something like that
<sush24>
Marionette will help me generate sine waves...
<sush24>
is this possible?
mytrile [mytrile!~mytrile@94.26.28.135] has joined #ruby-lang
robgleeson [robgleeson!~rob@subtle/contributor/robgleeson] has joined #ruby-lang
Sailias [Sailias!~jonathan@CPE0018f85e576d-CM001bd7aaaf96.cpe.net.cable.rogers.com] has joined #ruby-lang
beiter [beiter!~beiter@manz-590ef937.pool.mediaWays.net] has joined #ruby-lang
yalue [yalue!yalue@nat/ibm/x-nlbhunqgsmelhuva] has joined #ruby-lang
Defusal_ [Defusal_!DeFi@unaffiliated/ecnerifed] has joined #ruby-lang
brahmana [brahmana!3b6021b3@gateway/web/freenode/ip.59.96.33.179] has joined #ruby-lang
<brahmana>
Hi all
<brahmana>
How can I dynamically define an instance method from within a class method?
<rippa>
brahmana: Module#define_method
Defusal [Defusal!~DeFi@41-133-238-54.dsl.mweb.co.za] has joined #ruby-lang
Defusal [Defusal!~DeFi@unaffiliated/ecnerifed] has joined #ruby-lang
<brahmana>
rippa: I tried that, but when I call the dynamic method I get a no-method error..
mark_locklear [mark_locklear!~jlocklear@ab-tech-lan-to-ab-tech-gw.ncren.net] has joined #ruby-lang
<brahmana>
and respond_to?(:dynamic_method) is returning false
<rippa>
show your code
<brahmana>
just a sec
rushed [rushed!~rushed@99-73-225-9.lightspeed.austtx.sbcglobal.net] has joined #ruby-lang
alessio_rocco [alessio_rocco!~alessio@host61-75-static.224-95-b.business.telecomitalia.it] has joined #ruby-lang
<brahmana>
This MyModule gets included in the class
<rippa>
where's class method?
<rippa>
I only see instance methods
<brahmana>
the add_field method
<brahmana>
It's railish code. The modue ActiveSupport::Concern makes sure that the methods defined under the sub-module ClassMethods actually become class methods when included
<rippa>
maybe you should ask in #rails then?
robgleeson [robgleeson!~rob@subtle/contributor/robgleeson] has joined #ruby-lang
<brahmana>
aah.. not really.. if you just disregard the ActiveSupport::Concern part (which is just a syntactic sugar).. it is pretty much a ruby question..
<rippa>
so is it the same as MyClass.extend MyModule::ClassMethods ?
cola_zero [cola_zero!~cola_zero@www5054u.sakura.ne.jp] has joined #ruby-lang
<rippa>
welp, looks like it should work anyway
<brahmana>
yeah.. I just stripped out the ActiveSupport::Concern part and did a simple extend and it seems to work
slyphon [slyphon!~weechat@unaffiliated/slyphon] has joined #ruby-lang
robgleeson [robgleeson!~rob@subtle/contributor/robgleeson] has joined #ruby-lang
Marco [Marco!~marco@Marco-2.Kiewit.dartmouth.edu] has joined #ruby-lang
mortice [mortice!~Tom@li300-55.members.linode.com] has joined #ruby-lang
plusk [plusk!~plusk@201-40-62-197.gnace703.dsl.brasiltelecom.net.br] has joined #ruby-lang
slyphon [slyphon!~weechat@unaffiliated/slyphon] has joined #ruby-lang
uncle_billy [uncle_billy!~Adium@static-223.service.govdelivery.com] has joined #ruby-lang
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby-lang
malev [malev!~malev@190.210.138.237] has joined #ruby-lang
<andrewvos>
Hmm when I'm under 1.9.2 in rvm pry still uses 1.8.7 wtf?
kurko_ [kurko_!~kurko_@189.74.212.190] has joined #ruby-lang
AlezoneZ [AlezoneZ!~alezonez@187.38.26.180] has joined #ruby-lang
kurko__ [kurko__!~kurko_@189.74.212.190] has joined #ruby-lang
dv310p3r [dv310p3r!~dv310p3r@host-208-68-238-122.biznesshosting.net] has joined #ruby-lang
imajes [imajes!~imajes@is.imaj.es] has joined #ruby-lang
slyphon [slyphon!~weechat@unaffiliated/slyphon] has joined #ruby-lang
tommyvyo [tommyvyo!~tommyvyo@38.123.129.115] has joined #ruby-lang
yfeldblum [yfeldblum!~Jay@pool-71-246-76-76.bltmmd.east.verizon.net] has joined #ruby-lang
stoor [stoor!~stoor@ip4da85716.direct-adsl.nl] has joined #ruby-lang
ksinkar [ksinkar!~ksinkar@117.195.102.179] has joined #ruby-lang
Spooner [Spooner!~Miranda@host-78-144-139-130.as13285.net] has joined #ruby-lang
kurko_ [kurko_!~kurko_@189.74.212.190] has joined #ruby-lang
QaDeS [QaDeS!~mklaus@frbg-5d84f58b.pool.mediaWays.net] has joined #ruby-lang
gruwl [gruwl!~gruwl@host-95-199-26-69.mobileonline.telia.com] has joined #ruby-lang
QaDeS_ [QaDeS_!~mklaus@frbg-5d84f58b.pool.mediaWays.net] has joined #ruby-lang
johnvandijk [johnvandijk!~stoor@ip4da85716.direct-adsl.nl] has joined #ruby-lang
bglusman_ [bglusman_!~bglusman@c-71-224-192-35.hsd1.pa.comcast.net] has joined #ruby-lang
tomzx [tomzx!~tomzx@dsl-156-68.aei.ca] has joined #ruby-lang
valeri_uF0 [valeri_uF0!~valeri_uf@deadlink.in] has joined #ruby-lang
Locke23rus_ [Locke23rus_!~quassel@188.162.162.83] has joined #ruby-lang
<whitequark>
andrewvos: $ which ruby
empity` [empity`!~user@mail2.xype.com] has joined #ruby-lang
ksinkar [ksinkar!~ksinkar@117.195.102.179] has joined #ruby-lang
hibariya [hibariya!~quassel@www9204u.sakura.ne.jp] has joined #ruby-lang
comboy [comboy!~quassel@tesuji.pl] has joined #ruby-lang
<whitequark>
andrewvos: also, check if you have two rvm source'ing lines in .bashrc, that happens sometimes
whoops [whoops!u549@gateway/web/irccloud.com/x-pgugrraiijuxvapj] has joined #ruby-lang
jwollert [jwollert!~jwollert@rkh.im] has joined #ruby-lang
jasox [jasox!~jasox@178.239.26.139] has joined #ruby-lang
anekos [anekos!~anekos@mail.anekos.info] has joined #ruby-lang
jsaak [jsaak!~jsaak@catv-89-134-200-70.catv.broadband.hu] has joined #ruby-lang
_rane [_rane!rane@theorycraft.org] has joined #ruby-lang
JoL1hAHN [JoL1hAHN!~nrk@unaffiliated/jol1hahn] has joined #ruby-lang
kyrylo [kyrylo!~kyrylo@46.118.220.170] has joined #ruby-lang
demeth [demeth!~leto@c83-249-208-141.bredband.comhem.se] has joined #ruby-lang
pabs [pabs!~pabs@ip68-98-175-235.dc.dc.cox.net] has joined #ruby-lang
epitron [epitron!~epitron@unaffiliated/epitron] has joined #ruby-lang
spleeze [spleeze!~Spleeze@173-15-131-114-BusName-Philadelphia.hfc.comcastbusiness.net] has joined #ruby-lang
solars [solars!~solars@clnet-kmu02-090.ikbnet.co.at] has joined #ruby-lang
gruwl [gruwl!~gruwl@host-95-199-26-69.mobileonline.telia.com] has joined #ruby-lang
yfeldblum [yfeldblum!~Jay@pool-71-246-76-76.bltmmd.east.verizon.net] has joined #ruby-lang
andrewvos [andrewvos!~andrewvos@ec2-50-17-160-197.compute-1.amazonaws.com] has joined #ruby-lang
josh9 [josh9!~oren@cpe-76-172-9-207.socal.res.rr.com] has joined #ruby-lang
Nisstyre [Nisstyre!~yours@c-208-90-102-250.netflash.net] has joined #ruby-lang
pritesh [pritesh!~pritesh@115.248.175.50] has joined #ruby-lang
kedare [kedare!~kedare@2a01:e35:2f26:5330:70b9:803c:2ed3:e5ea] has joined #ruby-lang
musl [musl!~mike@li44-23.members.linode.com] has joined #ruby-lang
empity [empity!~user@mail2.xype.com] has joined #ruby-lang
dominikh [dominikh!~dominikh@subtle/contributor/dominikh] has joined #ruby-lang
neology [neology!~neology@115.119.250.230] has joined #ruby-lang
Sailias [Sailias!~jonathan@s72-38-77-178.static.comm.cgocable.net] has joined #ruby-lang
kitallis-cloud [kitallis-cloud!u358@gateway/web/irccloud.com/x-ucqqadotraqsilhu] has joined #ruby-lang
imperator [imperator!~Daniel@63-225-247-192.hlrn.qwest.net] has joined #ruby-lang
kurko__ [kurko__!~kurko_@189.74.212.190] has joined #ruby-lang
dejongge [dejongge!~jonke@pD9E0C06A.dip0.t-ipconnect.de] has joined #ruby-lang
MistyM [MistyM!~mistym@50.museumforhumanrights.com] has joined #ruby-lang
enebo [enebo!~enebo@75-168-50-253.mpls.qwest.net] has joined #ruby-lang
Bwild [Bwild!~irc@netblock-75-79-22-130.dslextreme.com] has joined #ruby-lang
<akahn>
I'm trying to simulate redis being unavailable by making the server block while my code block executes. I think I might be misunderstanding how to use threads though. Can anyone tell me why this code might not work as I expect it to? https://gist.github.com/e1ff97cd9e1138cc6d97
<bougyman>
lookin
outoftime [outoftime!~mat@ip-160-79-101-2.autorev.intellispace.net] has joined #ruby-lang
<bougyman>
the thread won't block until t.join
rayners [rayners!~rayners@c-68-50-153-53.hsd1.md.comcast.net] has joined #ruby-lang
<akahn>
I don't want the thread to block, I want commands to redis to block. what I expect is that calling this method will take only a split second, as long as the block I pass to it is fast to execute. but instead, it takes the full five seconds.
<akahn>
as soon as I lpush onto the list, redis should pop off the list, and stop blocking
outoftime [outoftime!~mat@ip-160-79-101-2.autorev.intellispace.net] has joined #ruby-lang
<outoftime>
anyone here know a lot about rmagick?
<akahn>
i thought maybe i needed to use a separate client instance for the background thread
<akahn>
let me try that again
tgall__ [tgall__!~tgall@206.9.88.154] has joined #ruby-lang
<akahn>
yep, if I use a different redis client instance, this works as I expect. let me update the gist
confounds [confounds!~confounds@CPE78cd8e667600-CM78cd8e6675fd.cpe.net.cable.rogers.com] has joined #ruby-lang
leonL [leonL!~leonl@CPE0024a5b652a3-CM000f21205d86.cpe.net.cable.rogers.com] has joined #ruby-lang
dv310p3r [dv310p3r!~dv310p3r@216.199.155.226.nw.nuvox.net] has joined #ruby-lang
<akahn>
on second thought, that doesn't work as expected. `with_redis_unavailable { Redis.new.ping }` should raise an error, but instead the method returns successfully
szarubin [szarubin!~stas@94.27.70.79] has joined #ruby-lang
tekin [tekin!~tekin@host-78-151-24-9.as13285.net] has joined #ruby-lang
slyphon [slyphon!~weechat@pool-96-224-232-158.nycmny.fios.verizon.net] has joined #ruby-lang
slyphon [slyphon!~weechat@unaffiliated/slyphon] has joined #ruby-lang
judofyr [judofyr!~judofyr@195.159.219.65] has joined #ruby-lang
rippa [rippa!~rippa@93-181-232-23.adsl.yaroslavl.ru] has joined #ruby-lang
thrcka_ [thrcka_!thrcka@nat/redhat/x-kcnmnmpvxqzuuenf] has joined #ruby-lang
ascarter [ascarter!~ascarter@216.243.14.216] has joined #ruby-lang
thrcka_ [thrcka_!thrcka@nat/redhat/x-dfjhztjbirhpmgzh] has joined #ruby-lang
headius [headius!~headius@71-210-151-185.mpls.qwest.net] has joined #ruby-lang
boodle [boodle!~boodle@174.46.129.34] has joined #ruby-lang
cschneid_ [cschneid_!~cschneid@72.1.92.57] has joined #ruby-lang
boodle [boodle!~boodle@174.46.129.34] has joined #ruby-lang
boodle [boodle!~boodle@174.46.129.34] has joined #ruby-lang
RomD [RomD!~Roman@nrbg-4d0776e8.pool.mediaWays.net] has joined #ruby-lang
andrewhl [andrewhl!~andrew@24-246-14-26.cable.teksavvy.com] has joined #ruby-lang
neology [neology!~neology@115.119.250.230] has quit [#ruby-lang]
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby-lang
ConstantineXVI [ConstantineXVI!~constanti@216-24-48-34.ip.win.net] has joined #ruby-lang
slyphon [slyphon!~weechat@unaffiliated/slyphon] has joined #ruby-lang
robgleeson [robgleeson!~rob@subtle/contributor/robgleeson] has joined #ruby-lang
neology [neology!~neology@115.119.250.230] has joined #ruby-lang
ascarter [ascarter!~ascarter@216.243.14.216] has joined #ruby-lang
jarrod__ [jarrod__!~jarrod@rrcs-24-153-217-133.sw.biz.rr.com] has joined #ruby-lang
beiter [beiter!~beiter@manz-590ef937.pool.mediaWays.net] has joined #ruby-lang
JEG2 [JEG2!~JEG2@ip72-198-103-217.ok.ok.cox.net] has joined #ruby-lang
Silowyi [Silowyi!~silowyi_d@99-26-202-35.lightspeed.snantx.sbcglobal.net] has joined #ruby-lang
dv310p3r [dv310p3r!~dv310p3r@host-208-68-238-122.biznesshosting.net] has joined #ruby-lang
JEG2 [JEG2!~JEG2@ip72-198-103-217.ok.ok.cox.net] has joined #ruby-lang
dfr|mac [dfr|mac!~dfr|work@ool-18baf7e7.dyn.optonline.net] has joined #ruby-lang
spleeze [spleeze!~Spleeze@173-15-131-114-BusName-Philadelphia.hfc.comcastbusiness.net] has joined #ruby-lang
gnufied [gnufied!~gnufied@122.172.246.117] has joined #ruby-lang
cynosure [cynosure!~cynosure@centrumnet.hu] has joined #ruby-lang
dous [dous!~dous@cm171.sigma67.maxonline.com.sg] has joined #ruby-lang
dous [dous!~dous@unaffiliated/dous] has joined #ruby-lang
jredville [jredville!~james.dev@173-160-211-253-Washington.hfc.comcastbusiness.net] has joined #ruby-lang
tbuehlmann [tbuehlmann!~Tobias@unaffiliated/tovias] has joined #ruby-lang
apeiros_ [apeiros_!~apeiros@194.209.75.58] has joined #ruby-lang
gix [gix!~gix@e180010214.adsl.alicedsl.de] has joined #ruby-lang
darkf [darkf!~darkf_dix@unaffiliated/darkf] has joined #ruby-lang
ascarter [ascarter!~ascarter@209.119.253.66] has joined #ruby-lang
hallucinations [hallucinations!~hallucina@115.249.98.157] has quit [#ruby-lang]
<akahn>
Can I make a StringIO object that doesn't have EOF? I want to simulate the behavior of ARGF and continue to append lines to the IO object while my code continues to consume the stream
dnjaramba [dnjaramba!~dnjaramba@41.72.193.86] has joined #ruby-lang
JEG2 [JEG2!~JEG2@ip72-198-103-217.ok.ok.cox.net] has joined #ruby-lang
erics [erics!~Skif@72.1.92.57] has joined #ruby-lang
gnufied [gnufied!~gnufied@122.172.246.117] has joined #ruby-lang
<akahn>
I guess I need an actual IO object
thrcka_ [thrcka_!thrcka@nat/redhat/x-xkzxbbxiyaqifupk] has joined #ruby-lang
RomyEatsDrupal [RomyEatsDrupal!~stickycak@cpe-74-64-122-182.nyc.res.rr.com] has joined #ruby-lang
<vereteran>
i have json with keys using ' instead of ". can i somehow tell json parser that ' should be used instead of " ?
priteshjain [priteshjain!~priteshja@113.193.50.164] has joined #ruby-lang
<shevy>
vereteran probably not, if it is ruby syntax
lake [lake!~lake@li71-228.members.linode.com] has joined #ruby-lang
<vereteran>
problem: {'all': [123,123,123]} instead of {"all": [123,123,123]} - that doesn't parse :( can i somehow make json parser to understand ' same as "? or fix json on the fly somehow?
<confounds>
vereteran find/replace?
JEG2 [JEG2!~JEG2@ip72-198-103-217.ok.ok.cox.net] has joined #ruby-lang
<vereteran>
confounds, won't do, text may contain quotes either
<confounds>
or use a different parser if that one can't do it
<vereteran>
confounds, i've tried standard ruby parser and yajl, both have same issues
<confounds>
vereteran think there are still some other popular ones
<confounds>
seems like there should be some easy way though
<manveru>
using ' instead of " is invalid json
<manveru>
so you better tell whoever made it :)
<vereteran>
manveru, i know, but can't do anything about it. this response comes from remote server
<confounds>
whose server
<vereteran>
manveru, they don't care. their argument is: browser can parse it -> its valid
<manveru>
you can kinda work around it, if the responses don't contain other strings
<manveru>
meh
<manveru>
then it's javascript, not json
neology [neology!~neology@115.119.250.230] has joined #ruby-lang
<manveru>
and only works with eval, not JSON.parse either
<confounds>
that could be a workable solution though
<confounds>
first parse as javascript
<manveru>
js> JSON.parse("['bar']")
<manveru>
typein:2: SyntaxError: JSON.parse
<manveru>
js> JSON.parse('["bar"]')
<manveru>
["bar"]
<manveru>
that's spidermonkey, anyway
<manveru>
err, whatever monkey they use these days
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby-lang
JEG2 [JEG2!~JEG2@ip72-198-103-217.ok.ok.cox.net] has joined #ruby-lang
codatory [codatory!~codatory@IP-216-37-19-2.nframe.net] has joined #ruby-lang
bglusman [bglusman!~bglusman@50.128.76.133] has joined #ruby-lang
solars [solars!~solars@mk089144206112.a1.net] has joined #ruby-lang
jmontross [jmontross!~Adium@static-96-236-65-137.snfcca.dsl-w.verizon.net] has joined #ruby-lang
SuperTaz_work [SuperTaz_work!~supertaz_@38.99.52.59] has joined #ruby-lang
JEG2 [JEG2!~JEG2@ip72-198-103-217.ok.ok.cox.net] has joined #ruby-lang
<erikh>
not sure why more plumbing projects aren't called "monkey wrench"
thrcka [thrcka!thrcka@nat/redhat/x-hwamnwcvemxmreyc] has joined #ruby-lang
ascarter_ [ascarter_!~ascarter@209.119.253.66] has joined #ruby-lang
Weems [Weems!~the@unaffiliated/weems] has joined #ruby-lang
macmartine [macmartine!~macmartin@069-064-227-254.pdx.net] has joined #ruby-lang
JEG2 [JEG2!~JEG2@ip72-198-103-217.ok.ok.cox.net] has joined #ruby-lang
bglusman [bglusman!~bglusman@50.128.77.127] has joined #ruby-lang
apeiros_ [apeiros_!~apeiros@77-58-113-31.dclient.hispeed.ch] has joined #ruby-lang
bglusman_ [bglusman_!~bglusman@50.128.77.127] has joined #ruby-lang
niklasb [niklasb!~codeslay0@p5B310ABB.dip0.t-ipconnect.de] has joined #ruby-lang
SuperTaz_work [SuperTaz_work!~supertaz_@vpn.lax.truecarcorp.com] has joined #ruby-lang
robbrit [robbrit!~rob@38.108.76.250] has joined #ruby-lang
cylence [cylence!~cylence@64-71-24-18.static.wiline.com] has joined #ruby-lang
Marco_ [Marco_!~marco@dhcp-210-131.cs.dartmouth.edu] has joined #ruby-lang
Marco [Marco!~marco@vtelinet-216-66-104-5.vermontel.net] has joined #ruby-lang
amerine [amerine!~mturner@bc171197.bendcable.com] has joined #ruby-lang
Heimidal [Heimidal!~heimidal@factory-smtp.factorylabs.com] has joined #ruby-lang
bglusman_ [bglusman_!~bglusman@c-68-80-200-61.hsd1.pa.comcast.net] has joined #ruby-lang
<singpolyma>
can someone tell me why one of these works and the other doesn't? http://pastie.org/3161522
zmack [zmack!~zmack@78.97.129.175] has joined #ruby-lang
<burgestrand>
singpolyma: { } have different precedence than do … end
<corsican>
what's "func"
<burgestrand>
singpolyma: if you place parentheses around the argument with {} it’ll work
<singpolyma>
corsican: some function
<singpolyma>
burgestrand: right
<corsican>
oh ok, that's confusing
<corsican>
considering it's not valid
<burgestrand>
singpolyma: also, in ruby we’re calling them methods :)
<singpolyma>
corsican: which? you mean the syntax is wrong? yes, that's what the question was about :)
butchanton [butchanton!~butchanto@vpn-sanfran.exacttarget.com] has joined #ruby-lang
<singpolyma>
I think ruby 1.8 might have had slightly different rules, but I haven't worked in DSLs for awhile
<burgestrand>
no, should be same thing there
<burgestrand>
singpolyma: in effect, since the {} binds tighter it’ll be interpreted as you passing a block to the /expr/ literal
<burgestrand>
singpolyma: and "/expr/ { |el| doit }" is a syntax error
<singpolyma>
burgestrand: right, ok
<burgestrand>
singpolyma: try to use a variable instead of /expr/, it’ll give you a different result :)
DRCALKIN [DRCALKIN!~DROOL_AND@cpe-66-69-208-144.austin.res.rr.com] has joined #ruby-lang
Gunnar_ [Gunnar_!~Gunnar@gunnar.xs4all.nl] has joined #ruby-lang
Gunnar_ [Gunnar_!~Gunnar@gunnar.xs4all.nl] has joined #ruby-lang
robotmay [robotmay!~robotmay@5ad8f1da.bb.sky.com] has joined #ruby-lang
brianpWins [brianpWins!~brianpWin@S01060014bf8930ea.vc.shawcable.net] has joined #ruby-lang
tenderlove [tenderlove!~tenderlov@pdpc/supporter/active/tenderlove] has joined #ruby-lang
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby-lang
cylence [cylence!~cylence@64-71-24-18.static.wiline.com] has joined #ruby-lang
Keva161 [Keva161!~Keva161@78.32.156.143] has joined #ruby-lang
robgleeson [robgleeson!~rob@subtle/contributor/robgleeson] has joined #ruby-lang
benanne [benanne!~rijdier@ip-213-49-87-109.dsl.scarlet.be] has joined #ruby-lang
artOfWar [artOfWar!~artofwar@nat/yahoo/x-lnlepmkxxdjmwbns] has joined #ruby-lang
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby-lang
Marco [Marco!~marco@vtelinet-216-66-104-5.vermontel.net] has joined #ruby-lang
flip_digits [flip_digits!~textual@c-76-122-14-228.hsd1.fl.comcast.net] has joined #ruby-lang
SkramX [SkramX!~SkramX@pool-74-96-19-247.washdc.east.verizon.net] has joined #ruby-lang
imperator [imperator!~Daniel@63-225-247-192.hlrn.qwest.net] has joined #ruby-lang
Heimidal [Heimidal!~heimidal@factory-smtp.factorylabs.com] has joined #ruby-lang
Heimidal [Heimidal!~heimidal@factory-smtp.factorylabs.com] has joined #ruby-lang
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby-lang
MrPunkin [MrPunkin!~MrPunkin@75-150-34-133-Oregon.hfc.comcastbusiness.net] has joined #ruby-lang
<MrPunkin>
would this be the proper way to test an integer if it is evenly divisible by 100 : http://pastie.org/3161744
<drbrain>
i % 100
<MrPunkin>
sure enough. Thanks for simplifying that for me
<drbrain>
MrPunkin: if it's just one line, paste it in channel
<drbrain>
unless it's a ridiculous golf line
<shevy>
hehe
<shevy>
let's all come up with ridiculous golf linves!
<shevy>
ehm *lines too!
Carmivore [Carmivore!~carmivmor@ec2-107-22-137-127.compute-1.amazonaws.com] has joined #ruby-lang
Marco [Marco!~marco@vtelinet-216-66-104-3.vermontel.net] has joined #ruby-lang
dv310p3r [dv310p3r!~dv310p3r@216.199.155.226.nw.nuvox.net] has joined #ruby-lang
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby-lang
tekin [tekin!~tekin@cpc8-with5-2-0-cust208.1-4.cable.virginmedia.com] has joined #ruby-lang
savage- [savage-!~savage-@209.118.197.220] has joined #ruby-lang
_inc [_inc!~inc@unaffiliated/-inc/x-0498339] has joined #ruby-lang
empity [empity!~user@cpc1-aztw16-0-0-cust938.aztw.cable.virginmedia.com] has joined #ruby-lang
niklasb [niklasb!~codeslay0@p5B310ABB.dip0.t-ipconnect.de] has joined #ruby-lang
Defusal [Defusal!~DeFi@unaffiliated/ecnerifed] has joined #ruby-lang
Marco_ [Marco_!~marco@pat32.dartmouth-secure.border1-cfw.Dartmouth.EDU] has joined #ruby-lang
queequeg1 [queequeg1!~chatzilla@c-71-202-152-67.hsd1.ca.comcast.net] has joined #ruby-lang
Carnage\ [Carnage\!~carnage@84-75-163-211.dclient.hispeed.ch] has joined #ruby-lang
Pip [Pip!~Pip@176.214.13.82] has joined #ruby-lang
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby-lang
<rue>
Wasn't the point to come up with a single line?
cyri_ [cyri_!~cyri_@jem75-1-87-88-118-80.dsl.sta.abo.bbox.fr] has joined #ruby-lang
mrsolo [mrsolo!~mrsolo@64.125.181.73] has joined #ruby-lang
<shevy>
single lines are hard
<shevy>
imagine if someone would forbid the newline character
hagabaka [hagabaka!~hagabaka@unaffiliated/hagabaka] has joined #ruby-lang
<drbrain>
mount doesn't claim "journaled" for devfs
<drbrain>
I that's the only discrepancy of note
davidw [davidw!~davidw@adsl-ull-196-118.51-151.net24.it] has joined #ruby-lang
rshackleford [rshackleford!~rshacklef@186.153.99.114] has joined #ruby-lang
twittard [twittard!~twittard@wc.lax.truecarcorp.com] has joined #ruby-lang
looopy [looopy!~looopy@pool-141-156-60-133.washdc.btas.verizon.net] has joined #ruby-lang
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
RomyEatsDrupal [RomyEatsDrupal!~stickycak@cpe-74-64-122-182.nyc.res.rr.com] has joined #ruby-lang
IPGlider [IPGlider!~ipglider@62.83.8.224.dyn.user.ono.com] has joined #ruby-lang
twittard [twittard!~twittard@wc.lax.truecarcorp.com] has joined #ruby-lang
JosephRuby [JosephRuby!~joseph@46.33.39.243] has joined #ruby-lang
dv310p3r [dv310p3r!~dv310p3r@216.199.155.226.nw.nuvox.net] has joined #ruby-lang
Carnage\ [Carnage\!~carnage@84-75-163-211.dclient.hispeed.ch] has joined #ruby-lang
wdperson [wdperson!~wdperson@cpe-173-89-163-182.neo.res.rr.com] has joined #ruby-lang
<imperator>
blargh
gentz [gentz!ilab@ancient.webfoundation.net] has joined #ruby-lang
Keva161 [Keva161!~Keva161@78.32.156.143] has joined #ruby-lang
jMCg [jMCg!~hiro@apache/committer/igalic] has joined #ruby-lang
amerine [amerine!~mturner@mobile-198-228-221-067.mycingular.net] has joined #ruby-lang
Marco [Marco!~marco@pat32.dartmouth-secure.border1-cfw.Dartmouth.EDU] has joined #ruby-lang
<imperator>
dammit, that flags &= ~key should be outside the if clause
* imperator
duck punches himself in the face
RomyEatsDrupal [RomyEatsDrupal!~stickycak@cpe-74-64-122-182.nyc.res.rr.com] has joined #ruby-lang
postmodern [postmodern!~postmoder@c-71-237-178-98.hsd1.or.comcast.net] has joined #ruby-lang
<rue>
Oh, you hadn't solved it yet?
lsegal [lsegal!jinx@modemcable249.109-177-173.mc.videotron.ca] has joined #ruby-lang
Mon_Ouie [Mon_Ouie!~Mon_Ouie@subtle/user/MonOuie] has joined #ruby-lang
<imperator>
rue, you seem a decent fellow, i'd hate to have to hurt you
* apeiros_
whistles "should have used my code, lalala…"
* apeiros_
grins
* apeiros_
ducks, hides, runs - whatever works…
<rue>
imperator: :D
<imperator>
apeiros_, can't because the don't match the constant names in this case
<imperator>
er, the constant names don't match the strings
<apeiros_>
o0
<apeiros_>
my code didn't rely on the constant names…
<imperator>
oh, nm, forget that
<rue>
I dunno why, but today's been a hilarious day
Marco [Marco!~marco@vtelinet-216-66-104-4.vermontel.net] has joined #ruby-lang
tychobrailleur [tychobrailleur!~sebastien@176.61.72.130] has joined #ruby-lang
dr_bob [dr_bob!~robert@p549E7691.dip.t-dialin.net] has joined #ruby-lang
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby-lang
robbrit [robbrit!~rob@38.108.76.250] has quit [#ruby-lang]
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
enikar [enikar!~gil@cl-140.mrs-01.fr.sixxs.net] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
<whatasunnyday>
I'm trying to write a cron job using the whenever gem to execute one of my ruby scripts. I'm not using this in a Rails application, its just running a specific ruby file. I installed whenever, created a directory called config and added a file with schedule.rb that read require 'whenever' and every 1.minute do puts "hello" end. I tried getting it to run as a test, any idea how to get it going?
<whatasunnyday>
If I type "whenever" it puts Hello on on the screen Above is your schedule file converted to cron syntax; your crontab file was not updated."
amerine [amerine!~mturner@mobile-198-228-221-067.mycingular.net] has joined #ruby-lang
tenderlove [tenderlove!~tenderlov@pdpc/supporter/active/tenderlove] has joined #ruby-lang
<drbrain>
whatasunnyday: seems like a complicated way to write * * * * * /usr/bin/ruby -e 'puts "hello"
<whatasunnyday>
dbrain, you're probably right
<whatasunnyday>
i guess i'm not very familiar with the unix environment
headius [headius!~headius@71-210-151-185.mpls.qwest.net] has joined #ruby-lang
<whatasunnyday>
and i'm trying to find a more approachable way to deal with cron
<drbrain>
yeah
<drbrain>
I used the whenever gem once and hated it
<erikh>
two snaps in a counter-clockwise circle.
<erikh>
HATED IT
<drbrain>
there was about 3x more typing to get whenever to work than to write the line in the crontab
<drbrain>
and it could only run at 0-based times
<apeiros_>
whatasunnyday: `man cron`
<whatasunnyday>
well, drbrain, do you mind if i give learning a cron a shot
<whatasunnyday>
and asking you a question if i need help later?
<drbrain>
man 5 crontab
<imperator>
erikh, nice
<apeiros_>
also `man crontab`
<erikh>
men on film: best sketch ever
<whatasunnyday>
okay, i'll do some reading
<headius>
two snaps with a twist and a kiss
<imperator>
whatasunnyday, you coming from windows?
<whatasunnyday>
or really any of you fellows. i'm not sure if it is appropiate to ask cron questions in a ruby channel.
<whatasunnyday>
yeah
<whatasunnyday>
but not in a development sense
<whatasunnyday>
i installed linux mint
<whatasunnyday>
learning to program
<whatasunnyday>
college student, etc
<rue>
Cron's really easy in the sense that when you forget which field is which, you'll just check the manual
<imperator>
meh, it's much simpler, but less flexible, than windows' scheduler
<rue>
Windows has a scheduler?
<erikh>
yes
<nofxx>
rue, how do you think they manage to fuck everything over the time without one?
<rue>
C:\bsod.exe
<nofxx>
viruses need timing ;)
<erikh>
no, they just need vba
<erikh>
well the modern class of viruses
<rue>
whatasunnyday: The only other thing to remember is that Cron jobs don't run in your normal environment
<nofxx>
My town (lil) town has 20k hab, and we got 5+ pc shops that the greatest revenue is the $30 windows reinstall
<whatasunnyday>
what?
<nofxx>
that's how windows wins... feeding tech support families
<imperator>
yeah but at least the wireless works :-P
<erikh>
ha
<nofxx>
imperator, hehe.. but that's old, there's tons of wifi fw bundled now days (or pkg get easy)
<erikh>
I like some of windows. other parts I vehemently dislike
<erikh>
it's always a mix of love and hate
<erikh>
and sometimes revulsion
<nofxx>
gladly never had to work on it, it's just "lets see that new game" ...
voker57 [voker57!~voker57@128-70-59-55.broadband.corbina.ru] has joined #ruby-lang
voker57 [voker57!~voker57@kvirc/developer/Voker57] has joined #ruby-lang
<imperator>
i think they got services right
<erikh>
yeah, agreed
<erikh>
and for the most part I also only use windows as a wintendo
<nofxx>
erikh, hahah exaclty
<erikh>
I did some stuff with it a while ago at $some_job as a server class, it has high points
<erikh>
anyhow why am I talking about this in a ruby channel
<nofxx>
my grub reads: 0. Archilnux 1. Arcade
<nofxx>
not sure realy the name in english... where there is tons of arcade machines?
<drbrain>
arcade
<nofxx>
hahaha...
<imperator>
TIL you can alias a function in ffi's attach_function
<nofxx>
drbrain, hehe no nickname? slug ? Here we know it as "Fliper"
<erikh>
pinball
<erikh>
everything else is on the xbox anyhow
<nofxx>
old days, 28k modem playing red alert over dial up... was incredible
<drbrain>
but a bunch of pinball machines would be in an arcade
<erikh>
oh! they have a pinball museum here in the bay area (alameda to be precise)
<erikh>
correct
<erikh>
it's *awesome*
<drbrain>
nofxx: I did that!
<drbrain>
and Descent!
srbartlett [srbartlett!~srbartlet@202.146.7.239] has joined #ruby-lang
<erikh>
yes!
<erikh>
actually we figured out that you could connect two modems together and send the right AT command set to get them to operate as a null modem
<nofxx>
drbrain, just when you finished your structures, got the tanks waiting for, someone tries to use the phone!
<erikh>
then we played DOOM
<erikh>
basically you had to trick the modems into not caring about a dialtone
<whitequark>
er
<erikh>
yes.
<whitequark>
am I suddenly in 1995?
<nofxx>
erikh, damn... that would have changed my life.... days and days trying LPT connect
<nofxx>
ITS EVIL, ITS WRONG
<whitequark>
ah, you're not doing that now.
Heimidal_ [Heimidal_!~heimidal@factory-smtp.factorylabs.com] has joined #ruby-lang
<apeiros_>
nofxx: whose evil, whose wrong?
<nofxx>
apeiros_, parallel ports
<erikh>
parallel ports were a bitch to use
<nofxx>
used my old athlon 1ghz for the parallel last year, burned a usb chip burner heheh... chicken egg situation, you can't program chips via USB without one preprogrammed...
fayimora [fayimora!~fayimora@95.175.159.42] has joined #ruby-lang
<nofxx>
erikh, only happiness parallel gave me ever
<whatasunnyday>
Quick question, once I write something to crontab, will cron automatically starting executing it?
<drbrain>
whitequark: yes
<drbrain>
you need to use the crontab to do the edit, though
<whatasunnyday>
yeah, i did crontab -e
<drbrain>
good
<whatasunnyday>
added a command
withanx [withanx!~withanx@99.32.37.70] has joined #ruby-lang
<whatasunnyday>
not seeing it go, but i think i know the problem
<drbrain>
it should send you mail
<drbrain>
if your machine doesn't deliver mail to you, you may need to run `mail`
Marco [Marco!~marco@pat32.dartmouth-secure.border1-cfw.Dartmouth.EDU] has joined #ruby-lang
<drbrain>
or whatever linux has
<whatasunnyday>
hmm, doesn't look it supports mail..
<whatasunnyday>
drbrain, can i send you a quick pm?
<drbrain>
sure
Marco_ [Marco_!~marco@vtelinet-216-66-104-3.vermontel.net] has joined #ruby-lang
robgleeson [robgleeson!~rob@subtle/contributor/robgleeson] has joined #ruby-lang
niklasb [niklasb!~codeslay0@p5B310ABB.dip0.t-ipconnect.de] has joined #ruby-lang
<imperator>
cron failures get logged in /var/log or something, too, iirc
<whatasunnyday>
ooh
<whatasunnyday>
good to know
<whitequark>
drbrain: why do I need crontab?
<whitequark>
err
<whitequark>
nevermind
<drbrain>
crontab makes sure your syntax is correct (but not your command)
RomyEatsDrupal [RomyEatsDrupal!~stickycak@cpe-74-64-122-182.nyc.res.rr.com] has joined #ruby-lang
Carmivore [Carmivore!~carmivmor@ec2-174-129-83-65.compute-1.amazonaws.com] has joined #ruby-lang
artOfWar [artOfWar!~artofwar@nat/yahoo/x-wjnficpgklnzuvpa] has joined #ruby-lang
<whitequark>
drbrain: I know how crontab works. I just have wondered what does it have to do with me.
<whitequark>
irssi highlighted my nick, and so on
<imperator>
whitequark, i assume it was a tab autocomplete goof
<drbrain>
whitequark: probably a bad tab completion on my part
<drbrain>
yup
<drbrain>
my bad ☹
<whitequark>
sure
ryanf [ryanf!~revfitz@50.0.160.40] has joined #ruby-lang
spuk [spuk!~spuk@187.65.185.145] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
<andrewvos>
Boring in here lately.
<andrewvos>
rue: Say something snarky
kain [kain!~kain@151.64.233.209] has joined #ruby-lang
a3li [a3li!~alex@gentoo/developer/a3li] has joined #ruby-lang
Heimidal [Heimidal!~heimidal@factory-smtp.factorylabs.com] has joined #ruby-lang
WillMarshall [WillMarshall!~willmarsh@203.48.101.90] has joined #ruby-lang
Heimidal [Heimidal!~heimidal@factory-smtp.factorylabs.com] has joined #ruby-lang
zenspider [zenspider!~user@envy.zenspider.com] has joined #ruby-lang
abentspoon [abentspoon!~micah@173.247.201.130] has joined #ruby-lang
Weems [Weems!~the@nat.resnet.mc.edu] has joined #ruby-lang
Weems [Weems!~the@unaffiliated/weems] has joined #ruby-lang
esufan [esufan!~nekid@c-24-6-170-1.hsd1.ca.comcast.net] has joined #ruby-lang
enebo [enebo!~enebo@75-168-50-253.mpls.qwest.net] has joined #ruby-lang
RomyEatsDrupal [RomyEatsDrupal!~stickycak@cpe-74-64-122-182.nyc.res.rr.com] has joined #ruby-lang
<esufan>
tutthreads_4.rb:6:in `block (2 levels) in <main>': undefined method `net' for Ne
<esufan>
t::HTTP:Class (NoMethodError)
<drbrain>
Net::HTTP.new?
<andrewvos>
get?
<esufan>
wow, sorry guys
<esufan>
X:
<drbrain>
esufan: HELPING‼
<drbrain>
:D
solars [solars!~solars@mk089144206112.a1.net] has joined #ruby-lang
RomyEatsDrupal [RomyEatsDrupal!~stickycak@cpe-74-64-122-182.nyc.res.rr.com] has joined #ruby-lang
tcurdt [tcurdt!~tcurdt@p5B03DADF.dip.t-dialin.net] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
Spooner [Spooner!~Miranda@host-78-144-139-130.as13285.net] has joined #ruby-lang
bglusman [bglusman!~bglusman@c-68-80-200-61.hsd1.pa.comcast.net] has joined #ruby-lang
dfr|mac [dfr|mac!dfr|work@nat/google/x-rztpjgdlszashtxv] has joined #ruby-lang
brianpWins [brianpWins!~brianpWin@S01060014bf8930ea.vc.shawcable.net] has joined #ruby-lang
RomyEatsDrupal [RomyEatsDrupal!~stickycak@cpe-74-64-122-182.nyc.res.rr.com] has joined #ruby-lang
porcelina [porcelina!~kay@71-212-148-73.hlrn.qwest.net] has joined #ruby-lang
porcelina [porcelina!~kay@71-212-148-73.hlrn.qwest.net] has quit [#ruby-lang]
dreinull [dreinull!~dreinull@ip-78-94-220-161.unitymediagroup.de] has joined #ruby-lang
glimpsenirvana [glimpsenirvana!~david@pool-98-118-121-77.bstnma.fios.verizon.net] has joined #ruby-lang
Constant_ [Constant_!~constanti@74-138-221-74.dhcp.insightbb.com] has joined #ruby-lang
Constant_ [Constant_!~constanti@74-138-221-74.dhcp.insightbb.com] has joined #ruby-lang
<shevy>
andrewvos it's never boring!
<shevy>
you just need to find projects that you can work on for a prolonged period of time... something interesting, something fascinating!
ConstantineXVI [ConstantineXVI!~constanti@74-138-221-74.dhcp.insightbb.com] has joined #ruby-lang
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby-lang
<drbrain>
something tedious!
livinded [livinded!~lolwut@s042n230.csun.edu] has joined #ruby-lang
yfeldblum [yfeldblum!~Jay@c-98-218-48-253.hsd1.md.comcast.net] has joined #ruby-lang
wingless2434 [wingless2434!~chris@c-174-61-224-227.hsd1.wa.comcast.net] has joined #ruby-lang
RomD` [RomD`!~Roman@nrbg-4d076eac.pool.mediaWays.net] has joined #ruby-lang
tomzx [tomzx!~tomzx@dsl-156-68.aei.ca] has joined #ruby-lang
esufan [esufan!~nekid@c-24-6-170-1.hsd1.ca.comcast.net] has joined #ruby-lang
MrPunkin [MrPunkin!~MrPunkin@75-150-34-133-Oregon.hfc.comcastbusiness.net] has quit [#ruby-lang]
whatasunnyday [whatasunnyday!~sunny@adsl-99-35-225-68.dsl.pltn13.sbcglobal.net] has joined #ruby-lang
slyphon [slyphon!~weechat@unaffiliated/slyphon] has joined #ruby-lang
fayimora [fayimora!~fayimora@95.175.159.42] has joined #ruby-lang
boodle [boodle!~boodle@cpe-071-070-241-198.nc.res.rr.com] has joined #ruby-lang