dous has quit [Read error: Connection reset by peer]
dous has joined #ruby-lang
toretore has quit [Quit: Leaving]
neocoin_ has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
cardoni has joined #ruby-lang
daidoji has quit []
headius has quit [Quit: headius]
guns has quit [Quit: guns]
havenn has quit [Ping timeout: 248 seconds]
znake has joined #ruby-lang
znake has quit [Remote host closed the connection]
chendo_ has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
dhruvasagar has joined #ruby-lang
dhruvasagar has quit [Client Quit]
dhruvasagar has joined #ruby-lang
gokul has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
Averna has quit [Quit: Leaving.]
KA_ has joined #ruby-lang
chendo_ has quit [Quit: Computer has gone to sleep.]
glebm has quit [Quit: Computer has gone to sleep.]
dr_bob has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
neocoin has joined #ruby-lang
zeisler has quit [Ping timeout: 256 seconds]
agarie has quit [Remote host closed the connection]
zeisler has joined #ruby-lang
workmad3 has quit [Ping timeout: 252 seconds]
klebervirgilio has joined #ruby-lang
gnufied has joined #ruby-lang
buzz_ has quit [Quit: buzz_]
megha has joined #ruby-lang
wyhaines has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
workmad3 has joined #ruby-lang
eban has quit [Quit: WeeChat 0.3.8]
eban has joined #ruby-lang
havenn has joined #ruby-lang
towski has quit [Remote host closed the connection]
ViPi has joined #ruby-lang
workmad3 has quit [Ping timeout: 256 seconds]
KA_ has quit [Quit: KA_]
<yorickpeterse>
Morning
<injekt>
moin
ramonmaruko has quit [Remote host closed the connection]
KA_ has joined #ruby-lang
klebervirgilio has quit [Remote host closed the connection]
sush24 has joined #ruby-lang
ramonmaruko has joined #ruby-lang
micaeked has quit [Quit: WeeChat 0.3.9.2]
gnufied has quit [Quit: Leaving.]
jbsan has joined #ruby-lang
gnufied has joined #ruby-lang
<yorickpeterse>
dem rails security issues
<yorickpeterse>
if it wasn't for tenderlove we'd all be fucked
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
GarethAdams has joined #ruby-lang
Duke_ has joined #ruby-lang
<injekt>
or if it wasn't for tenderlove someone else would fix it
KA_ has quit [Quit: KA_]
<yorickpeterse>
don't be so silly
<injekt>
lol, well it was a one line remove fix
TvL2386 has joined #ruby-lang
<injekt>
"more than 200,000 websites affected" nice
marr has joined #ruby-lang
<TvL2386>
Hi guys, I'm running ruby-p327 with the optimized CFLAGS ("-march=native -O2") and the Falcon patch (http://alisnic.net/blog/making-your-ruby-fly/). I've now upgraded to ruby-p362 with the same CFLAGS and noticed a 100% performance drop (rake routes went from 4.0 sec to 8.0 sec)
<injekt>
TvL2386: did you apply the falcon patch?
<TvL2386>
injekt, That was my second question: is there a patch for 362? Because I couldn't find it
<injekt>
TvL2386: I dont know I dont patch it, it looks like there probably isn't
<injekt>
TvL2386: the existing patch might work I guess?
<TvL2386>
injekt, I'm a bit hesitant to apply the patch if it is not stated that it should work....
sn0wb1rd has joined #ruby-lang
<injekt>
TvL2386: it would be pretty easy to test
<TvL2386>
injekt, I'll try it on my dev anyway
<TvL2386>
injekt, agreed!
<TvL2386>
bbl! :)
judofyr has joined #ruby-lang
solars has joined #ruby-lang
eban has quit [Quit: WeeChat 0.3.8]
<TvL2386>
injekt, the falcon patch fails...
<injekt>
:D
<injekt>
then I guess you have 2 options
<injekt>
no patch, or use the older version of ruby
eban has joined #ruby-lang
GarethAdams has quit [Quit: Leaving...]
<yorickpeterse>
bundle update twitter # updating rack to version blabla
<yorickpeterse>
wat
<TvL2386>
yup yup... I think I'll stay with 327 because my rails app is noticeably faster with the older version
<injekt>
yorickpeterse: yay bundler
<yorickpeterse>
Also fuck whatever author of the "twitter" gem decided to yank a large number of versions
serhart has quit [Quit: Leaving.]
zmack has joined #ruby-lang
rue|w has joined #ruby-lang
rindolf has joined #ruby-lang
<rindolf>
Hi all.
<judofyr>
hi rindolf
<rindolf>
judofyr: hi.
<injekt>
hai
<rindolf>
What's up y'all?
<judofyr>
working with a Perl project \o/
<rindolf>
judofyr: nice, which one?
<judofyr>
rindolf: work. closed-source ;)
<rindolf>
judofyr: ah.
<rindolf>
judofyr: closed source as in something in-house, or closed source as in something you sell?
<rindolf>
Well, sell under a proprietary, non-FOSS, licence.
<judofyr>
whitequark: that's a way to open-source a project :)
<judofyr>
also*
<whitequark>
judofyr: hahaha
karasawa has quit [Read error: Connection reset by peer]
GarethAdams has joined #ruby-lang
<judofyr>
I guess now is a good time to work on my new web framework :9
zenspider has joined #ruby-lang
<injekt>
:)
karasawa has joined #ruby-lang
<andrewvos>
judofyr: Not that I've used Rails, but it surely made Ruby popular enough for me to find it.
<judofyr>
btw, I'm considering starting a "daily contributions"-bloggy thing
<judofyr>
where I try to have one commit/contributions per day
rippa has joined #ruby-lang
<zenspider>
EVERYTHING but EVERYTHING has broke today. you'd think I was running an unpatched rails app on my server.
<zenspider>
huh... now I can ping my DNS server but I'm getting 50% packet loss on it... sad, but that's an improvement
<judofyr>
ouch :/
<whitequark>
judofyr: (daily contribs) not sure what's the point
<whitequark>
judofyr: what would you write about, except the contributions themselves?
<zenspider>
hrm... that seems better now... but I STILL can't resolve google.com
<zenspider>
what. the. fuck.
<judofyr>
use bing.com then
<rue|w>
That sounds like a feature
<zenspider>
I must have had something corrupt somewhere. but fuck if I can figure out what broke where
<judofyr>
whitequark: just link to the commit and write some small notes. it's just for forcing myself to do more open-source/publicly ;)
<rue|w>
I had weirdness with Safari not resolving yesterday
<zenspider>
ARGH
<zenspider>
ok... host google.com times out
<zenspider>
host google.com 68.87.69.146 works fine
<zenspider>
/etc/resolv.conf lists that as my primary nameserver
kiddorails has quit [Ping timeout: 276 seconds]
<zenspider>
what the fuck am I forgetting?
<whitequark>
judofyr: it reminds me of a common advice to novice programmers. "contribute to open source". and then you force yourself to find some bogus reason to write some code no one actually needs.
<andrewvos>
judofyr: Sounds cool!
<whitequark>
zenspider: linux?
<andrewvos>
judofyr: I would love to do a contribution every day.
sepp2k has joined #ruby-lang
<zenspider>
and of course this shit happens on the day I have one of my best workouts ever... I've STILL got no brain whatsoever
<zenspider>
whitequark: osx server
<rue|w>
andrewvos: You already contribute by being awesome
<whitequark>
zenspider: if yes, there's also glibc's NSS. /etc/nsswitch.com
<whitequark>
oh no idea then
<judofyr>
whitequark: well, who uses stuff I write anyway? :)
<judofyr>
whitequark: might as well publish it early, instead of keeping it in ~/programming/random
<andrewvos>
rue|w: Dawww
<andrewvos>
Thanks
<whitequark>
judofyr: I've used temple
* yorickpeterse
wrote a DTD
<zenspider>
mine is ~/Work/misc
<zenspider>
:)
<rue|w>
zenspider: Have you tried rebooting it?
<yorickpeterse>
I expected it to be far worse
<whitequark>
judofyr: and quickgem...
<zenspider>
rue|w: really? it isn't windows :P
<zenspider>
(yes--when the network was totally fucked and all the processes were freakin out)
<whitequark>
judofyr: and I've just found sexp_builder and chances are quite high that I'll use it instead of my crappy variant of it
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
<whitequark>
because that code was SO BAD I just deleted it whatsoever and just left some released gems to not break stuff.
cultureulterior_ has joined #ruby-lang
<judofyr>
whitequark: interesting. let me know if you need to patch it; you can have commit access if you need it :)
<zenspider>
your rule system is pretty
<whitequark>
judofyr: I'll have to look how to integrate it with Furnace
<zenspider>
I like the use of %
<whitequark>
judofyr: I suspect there might be differences wrt/ immutability of nodes
<ghr>
Anyone used ruport? Is there a way to paginate results?
MxG has joined #ruby-lang
pcboy_ has quit [Remote host closed the connection]
ivanoats has quit [Ping timeout: 260 seconds]
m3nd3s has joined #ruby-lang
banister`sleep has quit [Ping timeout: 265 seconds]
<zenspider>
do you guys resolve mail.zenspider.com ? `host -v mail.zenspider.com 184.106.214.131`
<zenspider>
hrm... I can on my laptop... but not on my server. wtf
<zenspider>
what the fuck did I break?
<yorickpeterse>
DNS?
<yorickpeterse>
Might be cached on your laptop
<zenspider>
just resolved it on a website tool
<zenspider>
but I have no idea... it's wonky
<zenspider>
I can't even look shit up if I specify the DNS server...
<injekt>
resolves here
<judofyr>
fine here too
<zenspider>
fucking pf firewall...
<zenspider>
sudo pfctl -d
<zenspider>
then host mail.zenspider.com works fine
<zenspider>
sudo pfctl -e
<zenspider>
then resolving something else breaks
<zenspider>
ARGH
<yorickpeterse>
resolves here fine
<zenspider>
at least I know now
<zenspider>
not that I know how to fix it yet
dhruvasagar has quit [Ping timeout: 246 seconds]
banister`sleep has joined #ruby-lang
dustint has joined #ruby-lang
charliesome has joined #ruby-lang
dhruvasagar has joined #ruby-lang
banister`sleep has quit [Ping timeout: 260 seconds]
madish has joined #ruby-lang
<rking>
ddd: Did you see the answer 'heckle' to the question about coverage gems?
dr_bob1 has quit [Quit: Leaving.]
<ddd>
yeah, on the slab to be looked at
<ddd>
thanks for the response
<rking>
Np. It's pretty gnarly… I think you'll like it.
<zenspider>
heckle schmeckle
rue|w has quit [Read error: Connection reset by peer]
<ddd>
just trying to eval a few others beyond the ones i named. hoping for something fairly decent.
rue|w has joined #ruby-lang
dr_bob has joined #ruby-lang
<ddd>
with college starting and contract work, haven't had the time to go through my todos. that got appended ;)
<ddd>
rking: you on a mac by chance?
<ddd>
i forget
larrylv has joined #ruby-lang
<judofyr>
rking: I think there's a fork of heckle that's being maintained now
<rking>
judofyr: Oh? I didn't know it was unmaintained. It's worked for me when I tried it.
<rking>
ddd: I burn all Apple products with the fire of my OSS purity.
JohnBat26 has joined #ruby-lang
<judofyr>
rking: oh. I just remember hearing about Heckle a looong time ago and never hearing about it again :)
<ddd>
damn, give em to me, don't burn em!
<whitequark>
>2.0.0.b1 October 3, 2012
<whitequark>
heckle
<whitequark>
looks like maintained for me.
<ddd>
actually, i'm suprised how happy i've been on this mbp since switching off linux. i did really think i would hate it as a commercial os.
<ddd>
that.. surprised me in more ways than one.
<ddd>
anyways, i was going to recommend Dash if you were. excellent all-in-one doc searching tool. sort of like gnome's doc-helper? i think its called.
<ddd>
dhelp? the non-html help system. gah ignore me. i'm tired up all night and the leg's killin me so i'm just ramblin bullshit.
kurko__ has joined #ruby-lang
<rking>
ddd: Hrm. I'll check that out (and burn it with OSS purityfire)
<ddd>
hehe
Nisstyre has quit [Ping timeout: 244 seconds]
ruskie has quit [Excess Flood]
ruskie has joined #ruby-lang
klebervirgilio has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 248 seconds]
jbsan has quit [Quit: jbsan]
jbsan has joined #ruby-lang
sepp2k has quit [Quit: Leaving.]
srbaker has joined #ruby-lang
Nisstyre has joined #ruby-lang
antbody has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
<judofyr>
unsymbol: heh. it's in pretty active development so minad will fix it :)
Nisstyre has joined #ruby-lang
lempface has joined #ruby-lang
<lempface>
Anyone launching a ruby script from .NET and successfully hiding the console? I've done this with other applications but ruby doesn't seem to want to hide, some reason it doesn't do this in the normal fashion?
bantic has quit [Read error: Connection reset by peer]
bantic has joined #ruby-lang
srbaker has joined #ruby-lang
dr_bob has quit [Quit: Leaving.]
dr_bob has joined #ruby-lang
<yorickpeterse>
Nokogiri nerds: is it possible to create a nested structure using the SAX parser similar to how Ripper does it (return values are added to the parent nodes)?
<manveru>
yeah
<yorickpeterse>
It seems the SAX parser system completely ignores return values which means I have to take care of stacks myself
<yorickpeterse>
(which is a pita)
<manveru>
yes
<yorickpeterse>
sweet, how? :)
<manveru>
it's not so hard, really
<manveru>
making your own stack, i mean
<yorickpeterse>
It's not, but I'd rather be lazy
<manveru>
lemme see if i have something i did
zhul_mechanos has joined #ruby-lang
blahwoop has quit [Ping timeout: 260 seconds]
<manveru>
weird
<manveru>
must be somewhere in one of my repo histories
<manveru>
is there an ack for that?
<yorickpeterse>
git log --grep
<yorickpeterse>
it can also do a search on file contents but it takes a while
<glebm>
This, according to yaml spec, should return YAML::parse("--- 1.") #=> 1.0 (float)
<glebm>
So, is there a way to dump "1." it so YAML knows it's a string? I am not familiar with YAML spec, so I don't even know if it's possible
<eam>
glebm: YAML::dump("1.") should return "--- \"1.\"\n"
<eam>
which is a string type in yaml
<glebm>
eam: Aha, Aaron just clarified it too :) Thanks!
<yorickpeterse>
awww yiss, linter is capable of building definitions for the OpenStruct class
<yorickpeterse>
Next up: refactoring my refactor, retrieving method return values and then hopefully I can process code such as `some_method[:key] = value`
ivanoats has quit [Remote host closed the connection]
<S1kx>
how would I ideally go about processing a huge .txt and keeping some state of what is processed and what is not... import to a session-specific sqlite database in the beginning and work with that?
imajes has joined #ruby-lang
<S1kx>
so that i can stop and resume at any points
sepp2k has quit [Ping timeout: 260 seconds]
<yorickpeterse>
injekt: I am home
<andrewvos>
go drunk you are home!
<injekt>
^
<injekt>
go to work you are drunk
<andrewvos>
S1kx: Store the line number in sql?
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
MaddinXx has quit [Remote host closed the connection]
<S1kx>
well i'm processing asynchronously so there might be things out of order
<andrewvos>
"processing a huge .txt" ... "sqlite"
<S1kx>
yes?
<andrewvos>
well
<andrewvos>
sqlite is kind of lite
<yorickpeterse>
and its sql
<yorickpeterse>
BABOOM
<andrewvos>
yorickpeterse: hiyoooo
davidbalbert is now known as davidbalber|away
<andrewvos>
Wait you're async processing a single file?
<andrewvos>
Oh, going for dinner peace
<S1kx>
it's a list of URLs which gets distributed to multiple workers, right
swav has joined #ruby-lang
imperator has quit [Quit: This computer has gone to sleep]
<yorickpeterse>
What have you tried so far? Also, if you do it async you'll probably run into race conditions
Nisstyre has joined #ruby-lang
swav has quit [Ping timeout: 244 seconds]
<S1kx>
it's a single process reading it, but the workers work concurrently so an URL further down the lsit may be processed earlier than one before
<yorickpeterse>
ah
<S1kx>
so far I have done the line-number-method every X seconds and with trap('INT'), but that's pretty inaccurate
<yorickpeterse>
What if you take N lines every time, process them, then repeat?
<yorickpeterse>
without any wait time in between
<yorickpeterse>
or build a small broker that hands out lines to process to workers
<andrewvos>
use node
<yorickpeterse>
andrewvos: good grief
ssl_ has joined #ruby-lang
<andrewvos>
yorickpeterse: ?
<S1kx>
well my question is rather how to remove the lines from the .txt without rewriting it entirely, or storing the state somehow else, just for the case of quitting and wanting to resume
<yorickpeterse>
andrewvos: why the fuck would you use Node for processing files?
<injekt>
use c
<injekt>
use clojure
<andrewvos>
yorickpeterse: I was joking
<yorickpeterse>
exactly
<yorickpeterse>
S1kx: File.readlines is your friend here
<injekt>
ugh File.readlines for reading partial?
<yorickpeterse>
or was that File.readline, either way, there's one that doesn't load the entire file into mem at once
<injekt>
no no
<injekt>
File.each_line
kiddorails has quit [Ping timeout: 256 seconds]
workmad3 has quit [Ping timeout: 255 seconds]
<S1kx>
i know how to read a file :(
<injekt>
yorickpeterse: maybe you mean .lines which is an alias for each_line
<yorickpeterse>
File.open('bigfile.txt', 'r') { |handle| handle.each_line { |line| workers.sample.work(line) } } # something like that
<andrewvos>
I think the only real approach is to do what yorickpeterse said. Read 1000 or so lines in, then store the line number, then process 1000 lines async.
carloslopes has joined #ruby-lang
EddiX has joined #ruby-lang
wyhaines has quit [Remote host closed the connection]
<S1kx>
hm
klebervirgilio has joined #ruby-lang
kiddorails has joined #ruby-lang
<yorickpeterse>
where `workers` is an array of worker objects
<S1kx>
well that's pretty much what i'm doing but was thinking there would be a better approach :(
<darix>
S1kx: how abot just having one process that feeds 1 url to each worker
<darix>
then you only have one process reading from that file
<darix>
you could use something like resque/sidekiq for handling the worker
<darix>
or build them yourself with something like zeromq
<S1kx>
there is no race conditions... no problems reading the file... it's about persisting the resume state
<darix>
S1kx: what do you mean? remembering where you were?
<yorickpeterse>
You'd have to store the processed line numbers and skip those. Not sure if #each_line gives you an index, if not you can easily count it yourself
<apeiros_>
.with_index gives you an index
<darix>
S1kx: that also gets easier if you have just one poress on the file
<S1kx>
darix: pretty much, but i want to save when the processing on a URL is complete, not when its read
<S1kx>
which is why i'm thinking about SQL
<yorickpeterse>
you can also read all the lines, store them in the SQL database and *then* process them
<yorickpeterse>
Then you can store all kinds of crazy meta data
<darix>
uhm... if you used rescue/zmq/sidekiq you get notified when the job is done?
<darix>
and could mark the line as done.
<S1kx>
yorickpeterse: that was the idea
gnufied1 has quit [Quit: Leaving.]
<S1kx>
and i suppose that's what i'm going with :P
<S1kx>
+ store the file timestamp in there aswell to make sure to diff when it has changed
panpainter_ has joined #ruby-lang
panpainter has quit [Ping timeout: 260 seconds]
andrewhl has joined #ruby-lang
Weems has joined #ruby-lang
Weems has quit [Changing host]
Weems has joined #ruby-lang
panpainter_ has quit [Ping timeout: 248 seconds]
ssl_ has quit [Remote host closed the connection]
marr has joined #ruby-lang
klebervirgilio has quit [Remote host closed the connection]
rondale_sc has joined #ruby-lang
sulo has quit [Read error: Connection reset by peer]
davidbalber|away is now known as davidbalbert
klebervirgilio has joined #ruby-lang
Weems has quit [Ping timeout: 240 seconds]
kain has joined #ruby-lang
sailias has quit [Quit: Leaving.]
stevechiagozie has quit [Quit: Computer has gone to sleep.]
rondale_sc has quit [Quit: rondale_sc]
benanne has quit [Quit: kbai]
Weems has joined #ruby-lang
slyphon has quit [Ping timeout: 255 seconds]
Weems2 has joined #ruby-lang
Weems has quit [Ping timeout: 244 seconds]
stevechiagozie has joined #ruby-lang
zz_chrismcg is now known as chrismcg
Rarrikins has joined #ruby-lang
scottschecter has joined #ruby-lang
glebm has quit [Quit: Computer has gone to sleep.]
Weems2 has quit [Ping timeout: 264 seconds]
scottschecter has quit [Quit: WeeChat 0.3.9.2]
zeisler_ has quit [Quit: zeisler_]
towski has quit [Remote host closed the connection]
scottschecter has joined #ruby-lang
chrismcg is now known as zz_chrismcg
klebervirgilio has quit [Remote host closed the connection]
headius has quit [Quit: headius]
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
rcvalle has quit [Quit: Leaving]
GarethAdams has joined #ruby-lang
GarethAdams has quit [Changing host]
GarethAdams has joined #ruby-lang
chendo_ has joined #ruby-lang
srbaker has joined #ruby-lang
blahwoop has quit [Ping timeout: 255 seconds]
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
shtirlic has joined #ruby-lang
zeisler has joined #ruby-lang
panpainter has joined #ruby-lang
ivanoats has quit [Remote host closed the connection]
glebm has joined #ruby-lang
mjio has joined #ruby-lang
havenn has quit [Ping timeout: 264 seconds]
brianpWins has quit [Quit: brianpWins]
emocakes has joined #ruby-lang
LnL has quit [Quit: LnL]
srbaker has quit [Quit: Computer has gone to sleep.]
glebm has quit [Quit: Computer has gone to sleep.]
darix has quit [Ping timeout: 260 seconds]
slyphon has joined #ruby-lang
panpainter has quit [Ping timeout: 256 seconds]
rcvalle has joined #ruby-lang
darix has joined #ruby-lang
darix has quit [Changing host]
darix has joined #ruby-lang
swav has joined #ruby-lang
io_syl has quit [Ping timeout: 248 seconds]
__butch__ has quit [Quit: Leaving.]
thone_ has joined #ruby-lang
thone has quit [Read error: Operation timed out]
ssl has joined #ruby-lang
chendo_ has quit [Quit: Leaving...]
ssl has quit [Read error: Connection reset by peer]
io_syl has joined #ruby-lang
ssl has joined #ruby-lang
havenn has joined #ruby-lang
mistym has quit [Remote host closed the connection]
blacktulip has quit [Remote host closed the connection]
jtoy has quit [Quit: jtoy]
jtoy has joined #ruby-lang
glebm has joined #ruby-lang
pkrnj has quit [Quit: Computer has gone to sleep.]
glebm has quit [Ping timeout: 255 seconds]
Hakon has joined #ruby-lang
glebm has joined #ruby-lang
klebervirgilio has joined #ruby-lang
scottschecter has quit [Quit: WeeChat 0.3.9.2]
jtoy has quit [Quit: jtoy]
slyphon has quit [Ping timeout: 246 seconds]
qz has quit []
brianpWins has joined #ruby-lang
ryanv-raptor has quit [Quit: Leaving.]
rins has quit [Ping timeout: 256 seconds]
panpainter has joined #ruby-lang
thillux_ has quit [Remote host closed the connection]
shtirlic has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]