apeiros changed the topic of #ruby-lang to: Nick registration required to talk || Ruby 2.0.0-p195: http://ruby-lang.org (Ruby 1.9.3-p429) || Paste >3 lines of text on http://gist.github.com
_jpb_ is now known as arf
arubin has quit [Quit: Computer has gone to sleep.]
arf has quit [Quit: leaving]
_jpb_ has joined #ruby-lang
brianpWins has joined #ruby-lang
arubin has joined #ruby-lang
vlad_starkov has joined #ruby-lang
mdedetrich has joined #ruby-lang
JpC0utur3 has joined #ruby-lang
GeissT has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 240 seconds]
scholar01 has quit [Quit: Leaving.]
JpC0utur3 has quit [Ping timeout: 256 seconds]
hyp3rv1s0r has quit [Remote host closed the connection]
asahi has joined #ruby-lang
lcdhoffman has joined #ruby-lang
sora_h__ has quit [Quit: Tiarra 0.1+svn-38663M: SIGTERM received; exit]
sora_h_ is now known as sora_h
mantono has quit [Quit: Don't panic]
sepp2k has quit [Quit: Leaving.]
lcdhoffman has quit [Quit: lcdhoffman]
marr has quit [Ping timeout: 240 seconds]
mdedetrich has quit [Quit: Computer has gone to sleep.]
mdedetrich has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 264 seconds]
arooni-mobile has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
slowhands has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
mdedetrich has quit [Quit: Computer has gone to sleep.]
zachlatta has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 276 seconds]
slowhands has quit [Quit: Computer has gone to sleep]
jsullivandigs has quit [Remote host closed the connection]
jsullivandigs has joined #ruby-lang
JpC0utur3 has joined #ruby-lang
jsullivandigs has quit [Read error: Connection reset by peer]
jsullivandigs has joined #ruby-lang
Sambalero has quit [Read error: Connection reset by peer]
Sambalero has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 240 seconds]
<hackeye>
Hi folks, ruby-newbie here.. Trying to extract fields from whitespace-separated strings, tried a few different things but none work. Here's my latest attempt: http://www.privatepaste.com/853a3df742
<erikh>
also, storing 7 mil rows in a ruby array is probably gonna lead to a bad time memory-wise.
<whitequark>
darix: and that makes no sense.
<mychickenninja>
better way to pull the data?
<erikh>
also, there are smarter ways to scan for rootable servers.
<erikh>
like google.
<whitequark>
there is *no* guarantee that a random version of that gem will ever work
<erikh>
whitequark: allow me to explain in a minute
<erikh>
whitequark: functionally it's >= 0
<erikh>
that's the default. it's not omitted in any explicit sense.
<whitequark>
>= is an antipattern too :)\
<erikh>
well, yes, but dependency management among a lot of foreign gems is kind of complicated.
<erikh>
vagrant and chef clashed a while back over net-ssh versioning
<erikh>
these are two tools that are used together a *lot*
<whitequark>
yeah yeah, I read that
<erikh>
knock out the requirement on vagrant, everything works.
<erikh>
and honestly, nobody was hurt by it, except for mitchell's ego
<whitequark>
lol
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<erikh>
json is also another fine example
<erikh>
since everyone ~>'s it and they release a lot
<erikh>
so new gem takes new version -- bam, everything that did that before is super-incompatible
<erikh>
and.. it's json
<erikh>
it's not like it's going to change a ton
<erikh>
use-case-wise that is
<erikh>
so, there are a couple of concrete reasons if you will.
<erikh>
generally though, I agree, ~> should be used.
<whitequark>
erikh: well, if it doesn't change a lot, why bump major version?
<whitequark>
and if those folks depend on minor (ie ~> 1.2.3), yes, they're wrong
<erikh>
minor, but who uses semver?
<erikh>
.3 is patchlevel
<erikh>
fwiw.
<whitequark>
erikh: right. ~> 1.2.3 is >= 1.2.3 < 1.3
<whitequark>
so it depends on minor
<erikh>
everyone preaches semver
<erikh>
nobody does it
<whitequark>
I do
<whitequark>
:p
<yxhuvud>
As long as people don't start to do it with rails versions.
<erikh>
well you're a pretty princess
<erikh>
:D
mistym has quit [Remote host closed the connection]
<whitequark>
semver requires applying your brain in advance, yes
hogeo has joined #ruby-lang
<whitequark>
seems to be complicated these days.
<erikh>
no need to get ivory tower about it.
<erikh>
shit happens sometimes in development. sometimes you have to break things to fix things, and sometimes those fixes are urgent
<erikh>
so, bam, minor version.
<erikh>
(that everyone needs)
<whitequark>
erikh: agreed.
<whitequark>
but, I think /rmreconns
<whitequark>
errr
<erikh>
heh
<whitequark>
erikh: but, I think that it is possible to amend semver and include this use case.
<erikh>
I dunno man
_jpb_ has quit [Ping timeout: 246 seconds]
<erikh>
the only people that really use it are the occasional rubyist and people at github
<erikh>
outside of ruby it's ... well even matz just said "let's call it 2.0" after getting badgered over and over again
* whitequark
shrugs
<erikh>
this was shortly after the linux 3.0 thing.
_jpb_ has joined #ruby-lang
<whitequark>
or, you know, add a sentence to semver... "if a security fix breaks dependent libraries, treat security as more important"
<erikh>
I kind of respect that. it's their projects, let them version it how they want.
<erikh>
they put the work in, not tom.
<whitequark>
security > correctness > speed ?
<erikh>
maintainer > *
<erikh>
you can always choose not to use the library.
<erikh>
or kernel or language runtime, etc.
<whitequark>
except when you can't
apeiros has quit [Remote host closed the connection]
<erikh>
you'd be surprised how little is out there that you have no choice over these days.
apeiros has joined #ruby-lang
<erikh>
GNU definitely won that battle.
<erikh>
back in the day, there was DOS and if you have a nice computer, OS/2.
<erikh>
on PCs. if you wanted to go to unix, you were getting a *really* nice computer.
<yxhuvud>
personally I think semver to be an idea that sounds nice, and that works well in *some* reasonably small cases, but realyl stop working all that great as soon as a project takes on a certain size.
<erikh>
there are tons of options these days and you don't have to use any of them because all the dev tools are out there to make your own operating system.
<erikh>
you don't have to pirate a copy of masm or tasm and other borland kit
<erikh>
translation: don't bitch about others hard work if you want to use it. send patches or don't use it if it bothers you
<erikh>
and yes I am a hard ass about this
<mychickenninja>
erikh: any suggestions how to pull data out of a sqlite db and thread it ?
<erikh>
mychickenninja: you don't have to thread it.
<erikh>
you just need a better query.
<erikh>
and better ways to use your ram.
<whitequark>
yxhuvud: seems like that, yes.
dhruvasagar has joined #ruby-lang
<whitequark>
and that can demonstrate either a deficiency in semver, or in software development practices.
<whitequark>
I'm not sure which is it.
<erikh>
mychickenninja: and since you're writing some kind of remote host ghetto scanning tool, you'll have to ask someone else for ruby help now.
<yxhuvud>
whitequark: perhaps both. a versioning numbering system really must be compatible with the development practices, even if those are broken.
<erikh>
actually, the only thing that decides useful code is ... whether or not it provides value
<erikh>
time and proven over and over again that versioning schemes don't mean shit.
<whitequark>
yxhuvud: the thing is, semver here highlights an existing problem in the practices.
<mychickenninja>
erikh: im not some random hacker.. while trying to learn ruby, im building tools for my company.
<erikh>
with 7 million ip addresses?
<erikh>
do you work for AT&T?
<mychickenninja>
yeah that looks bad I guess. The original code was what I was shooting for and its kinda snowballed into how well it could perform on a large scale
<yxhuvud>
7 million seems more tier2 or tier 3. Not at&t.
<mychickenninja>
but clients with /15 nets is not unusual
<mychickenninja>
and 1 thread on that is damn annoying
<yxhuvud>
the solution I prefer most is to not get that list of ips but instead solve the problem in a smarter way. sometimes not possible though.
<mychickenninja>
you know a better way to scan 130k ips?
<yxhuvud>
scan how?
Criztian has joined #ruby-lang
<mychickenninja>
http request
<yxhuvud>
Sure. put it in a postgres db, put an index on it. Query.
<erikh>
...
<erikh>
put it in a flat file and write a go program
<erikh>
you'll be done in 30 minutes.
cordax has quit [Quit: Computer has gone to sleep.]
<yxhuvud>
or actually, it really depends on the whole problem you are trying to solve.
<mychickenninja>
flat files work.. it was that way originally.. but converting ip blocks to ip lists took a long time and was system intensive
<erikh>
what'd you use?
<erikh>
ruby's kind of slow at using a lot of memory and higher iteration stuff.
<mychickenninja>
for converting blocks to ips?
<yxhuvud>
you are .. converting a /15 to a list of entries and then scan for inclusion? that .. is not the most efficient way to do it
<erikh>
yeah
<mychickenninja>
im welcome to ideas
<mychickenninja>
im not a programmer.. ruby is my first lang so this is all new to me..
<mychickenninja>
not a very good speller either.. =P
<erikh>
ah ok
<erikh>
so, you have the list. let's put that behind us
<erikh>
worry about that later
<erikh>
dump that out to a text file
<erikh>
line delimited. then do this: perl -i.bak -pe 's!^!http://!' myfile
<erikh>
that'll add your http
<erikh>
it'll happen in a few seconds.
<erikh>
then you need to use a language that doesn't suck at this.
<erikh>
like go.
<mychickenninja>
ruby wasnt the right lang for this?
<erikh>
ruby is not a very good tool for this problem.
<mychickenninja>
bummer.. kinda enjoyed playing with it
<whitequark>
jruby may help, though
<erikh>
you'd want C, or go, or erlang, or yeah
<erikh>
whitequark: it's still a scalnig problem, but yeah
<whitequark>
erikh: well, jruby kinda scales :p
<erikh>
not disagreeing but I think there are things go is going to do better here.
<erikh>
from an ease-of-use standpoint.
<erikh>
not a java-can't-hack-it standpoint.
<erikh>
mychickenninja: either way, avoid MRI for this.
<whitequark>
erikh: when you're not a programmer, learning second language may be a worse problem than having to wait a bit and/or cook your CPU.
<erikh>
actually that's kind of why I'm pushing go here
<whitequark>
duh, and you recommend C. -_-
<erikh>
C was my second langauge. you kids are pampered :)
<whitequark>
C was my first language
<whitequark>
doesn't mean I think it is any good.
mytrile has quit [Remote host closed the connection]
<erikh>
anyhow -- go has nice concurrency primitives
<erikh>
ruby .. not so much
<whitequark>
^ he makes sense :)
mychickenninja_ has joined #ruby-lang
<erikh>
using channels is pretty easy
<erikh>
that and it's really fast, so you're going to sweat your machine.
mychickenninja has quit [Disconnected by services]
<erikh>
... which is why you'd use jruby anyhow
<erikh>
shit, speaking of which, I need to finish that load tester.
<yxhuvud>
>> require 'ipaddr'; network = IPAddr.new '126.123.0.0/15'; request = IPAddr.new('1.1.1.1'); print 'request ip in range' if network === request
<yxhuvud>
Yes, what you are on about. There is no need to make it to a range explicitly.
publicvoid_ has joined #ruby-lang
<yxhuvud>
at least not in this case.
curtism has left #ruby-lang ["Leaving"]
<yxhuvud>
actually it is downright stupid, because #include? on an actual Range will enumerate all ips, which is dumb.
<whitequark>
will it?
<yxhuvud>
why wouldn't it? doesn't Range#include? always do that nowadays?
slowhands has quit [Quit: Computer has gone to sleep]
<yxhuvud>
(as opposed to #cover?)
roadt has quit [Ping timeout: 246 seconds]
<apeiros>
not always
<apeiros>
it's special cased for numeric ranges iirc
<apeiros>
but that probably wouldn't affect IPAddr
dhruvasagar has quit [Ping timeout: 248 seconds]
faces has quit [Ping timeout: 240 seconds]
mytrile has joined #ruby-lang
face has joined #ruby-lang
jasonwryan has joined #ruby-lang
justinram has joined #ruby-lang
<yxhuvud>
seems not to break when I try with ::0/0, so it is probably just unessecary to convert it to range, not broken.
<jasonwryan>
where is gem list populated from?
<manveru>
jasonwryan: the rubygems.org api
<yxhuvud>
from whereever your system installs gems. In some cases, it can be several places.
<jasonwryan>
manveru: thanks: is there any way to flush it?
<jasonwryan>
it reports gems installed that aren't there
<manveru>
oh, gem list, not -r
<jasonwryan>
yep
<manveru>
it gets the list from the specifications
<yxhuvud>
there is an env variable that contains the location
<manveru>
cd $(dirname $(gem which $(gem list | head -4 | tail -1 | cut -d' ' -f1)))/../../../specifications
<yxhuvud>
(depending on OS you may have several different locations. you can have a specific dir containing gems installed through their package manager, eg yum)
<manveru>
is the silliest i can come up with :)
<manveru>
i think it's $GEM_HOME though
<manveru>
or $GEM_PATH
fedesilv_ has joined #ruby-lang
tdy_ has joined #ruby-lang
<jasonwryan>
thanks
fedesilva has quit [Ping timeout: 276 seconds]
benanne has joined #ruby-lang
<manveru>
IFS=:; for p in $GEM_PATH; do ls $p/specifications/*.gemspec; done
<manveru>
much easier
<jasonwryan>
cool - than you
mytrile has quit [Remote host closed the connection]
jasonwryan has left #ruby-lang [#ruby-lang]
hackeye has quit [Quit: Leaving.]
roadt has joined #ruby-lang
justinram has quit [Ping timeout: 240 seconds]
mychickenninja_ has quit [Quit: Page closed]
duph has joined #ruby-lang
mbj has joined #ruby-lang
justinram has joined #ruby-lang
mbj_ has joined #ruby-lang
mbj has quit [Ping timeout: 268 seconds]
duph1 has joined #ruby-lang
duph has quit [Read error: Connection reset by peer]
mbj_ is now known as mbj
duph1 has quit [Read error: Connection reset by peer]
duph has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
LokiSharp has quit [Remote host closed the connection]
firstdayonthejob has quit [Read error: Connection reset by peer]
LokiSharp has joined #ruby-lang
LokiSharp has left #ruby-lang [#ruby-lang]
LokiSharp has joined #ruby-lang
LokiSharp has quit [Remote host closed the connection]
LokiSharp has joined #ruby-lang
LokiSharp_ has joined #ruby-lang
LokiShar_ has joined #ruby-lang
LokiSharp has quit [Ping timeout: 246 seconds]
LokiShar_ has left #ruby-lang [#ruby-lang]
LokiShar_ has joined #ruby-lang
mdedetrich has joined #ruby-lang
LokiSharp_ has quit [Client Quit]
MasterNayru_ has joined #ruby-lang
MasterNayru__ has joined #ruby-lang
LokiShar_ has quit [Remote host closed the connection]
Criztian has quit [Remote host closed the connection]
jinie_ is now known as jinie
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
lcdhoffman has joined #ruby-lang
duph has quit [Quit: Leaving.]
jstorimer has joined #ruby-lang
Kabaka has quit [Excess Flood]
justinram has quit [Ping timeout: 248 seconds]
Kabaka has joined #ruby-lang
justinram has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
mdedetrich has joined #ruby-lang
firstdayonthejob has joined #ruby-lang
mbj has quit [Ping timeout: 240 seconds]
mdedetrich has quit [Client Quit]
mdedetrich has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
nivanson_ has joined #ruby-lang
nivanson has quit [Read error: Connection reset by peer]
jstorimer has quit [Remote host closed the connection]
Squarepy has joined #ruby-lang
sebastiansier has joined #ruby-lang
jstorimer has joined #ruby-lang
jxie has quit [Quit: leaving]
mbj has joined #ruby-lang
MaddinXx has quit [Remote host closed the connection]
io_syl has quit [Quit: Computer has gone to sleep.]
jinie is now known as jinie_
stamina has quit [Ping timeout: 255 seconds]
justinram has quit [Remote host closed the connection]
hogeo_ has joined #ruby-lang
hogeo has quit [Ping timeout: 256 seconds]
sebastiansier has quit [Remote host closed the connection]
MaddinXx_ has joined #ruby-lang
swav has quit [Remote host closed the connection]
jstorimer has quit [Remote host closed the connection]
jstorimer has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
MaddinXx_ has quit [Remote host closed the connection]
mdedetrich has joined #ruby-lang
postmodern has quit [Quit: Leaving]
jinie_ is now known as jinie
lcdhoffman has joined #ruby-lang
lcdhoffman has quit [Client Quit]
<yorickpeterse>
whitequark: what's the exact reason for (block) nodes wrapping (send) nodes instead of being passed as arguments?
<yorickpeterse>
so (block (send ...) ...) vs (send ... (block ...))
<yorickpeterse>
ha, reached this point where I was like "wtf this code can't possibly wo.....oh waaaaait a minute"
<yorickpeterse>
it's my own code even
Criztian has joined #ruby-lang
<whitequark>
yorickpeterse: hmm
<whitequark>
we discussed this earlier I believe
<yorickpeterse>
I don't recall blocks
scholar01 has quit [Quit: Leaving.]
<yorickpeterse>
Either way, I think my code is actually clever enough to deal with it
<yorickpeterse>
it's just that my tests are currently too stupid to confirm/deny that
dhruvasagar has quit [Ping timeout: 276 seconds]
dhruvasagar has joined #ruby-lang
<whitequark>
mkay
<whitequark>
the idea is that syntactically, calls are inside blocks
lcdhoffman has joined #ruby-lang
chris_ruby has joined #ruby-lang
<whitequark>
i.e. the expression range of a call is inside the expression for a block.
<whitequark>
another part is that a block isn't really an argument
<whitequark>
so it has nothing to do with the argument list in the send node
Criztian has quit [Remote host closed the connection]
mantono has joined #ruby-lang
<yorickpeterse>
hmm
io_syl has joined #ruby-lang
mantono has quit [Quit: Don't panic]
mantono has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
lcdhoffman has joined #ruby-lang
mbj has quit [Ping timeout: 246 seconds]
barttenbrinke has joined #ruby-lang
rikai has quit [Read error: Connection reset by peer]
rikai has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
elia has joined #ruby-lang
pbjorklund has quit [Read error: Operation timed out]
dhruvasagar has quit [Ping timeout: 268 seconds]
pbjorklund has joined #ruby-lang
adambeynon has joined #ruby-lang
mbj has joined #ruby-lang
jstorimer has quit [Remote host closed the connection]
Squarepy has quit [Quit: Leaving]
jinie is now known as jinie_
swav has joined #ruby-lang
zmike123 has quit [Quit: ~]
chris_ruby has quit [Quit: Ex-Chat]
swav has quit [Ping timeout: 240 seconds]
marr has quit [Ping timeout: 246 seconds]
dc5ala has quit [Quit: Ex-Chat]
havenwood has joined #ruby-lang
cofin has joined #ruby-lang
tdy_ has quit [Quit: WeeChat 0.4.1]
barttenbrinke has quit [Remote host closed the connection]
Nisstyre-laptop has joined #ruby-lang
pbjorklund has quit [Ping timeout: 264 seconds]
pbjorklund has joined #ruby-lang
lcdhoffman has joined #ruby-lang
vlad_starkov has joined #ruby-lang
Nisstyre has quit [Quit: Leaving]
lguardiola has quit [Ping timeout: 276 seconds]
Nisstyre-laptop is now known as Nisstyre
rikai has quit [Read error: Connection reset by peer]
rikai has joined #ruby-lang
jstorimer has joined #ruby-lang
wallerdev has joined #ruby-lang
EvilJStoker has quit [Remote host closed the connection]
EvilJStoker has joined #ruby-lang
justinram has joined #ruby-lang
tdy_ has joined #ruby-lang
sepp2k1 has joined #ruby-lang
sepp2k has quit [Ping timeout: 276 seconds]
Aaaarg has quit [Ping timeout: 248 seconds]
Aaaarg has joined #ruby-lang
Sambalero has joined #ruby-lang
jstorimer has quit [Ping timeout: 240 seconds]
arooni-mobile has joined #ruby-lang
lguardiola has joined #ruby-lang
GeissT has quit [Read error: Connection reset by peer]
nathanstitt has joined #ruby-lang
jxie has joined #ruby-lang
LokiSharp has joined #ruby-lang
ffio has joined #ruby-lang
pskosinski has joined #ruby-lang
atmosx has joined #ruby-lang
Olipro has quit [Ping timeout: 260 seconds]
justinra_ has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
justinram has quit [Ping timeout: 248 seconds]
wallerdev has quit [Quit: wallerdev]
zmike123 has joined #ruby-lang
_jpb_ has quit [Ping timeout: 255 seconds]
_jpb_ has joined #ruby-lang
Olipro has joined #ruby-lang
jstorimer has joined #ruby-lang
LokiSharp has quit [Remote host closed the connection]
rippa has quit [Ping timeout: 248 seconds]
slowhands has joined #ruby-lang
slowhands has quit [Client Quit]
fragamus has quit [Quit: Computer has gone to sleep.]
rikai has quit [Read error: Connection reset by peer]
rikai has joined #ruby-lang
Sambalero has quit [Remote host closed the connection]
andrewvos has joined #ruby-lang
Guest13172 has joined #ruby-lang
_jpb_ has quit [Quit: Lost terminal]
bzalasky has joined #ruby-lang
mytrile has joined #ruby-lang
krombr has joined #ruby-lang
Guest13172 is now known as diegoviola
wallerdev has joined #ruby-lang
marr has joined #ruby-lang
diegoviola has quit [Ping timeout: 246 seconds]
bzalasky has quit [Remote host closed the connection]
hogeo_ has quit [Remote host closed the connection]
ledestin has quit [Quit: ledestin]
ledestin has joined #ruby-lang
ledestin has quit [Ping timeout: 248 seconds]
arubin has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
hogeo has joined #ruby-lang
andrewvos has quit [Ping timeout: 276 seconds]
lupine has quit [Ping timeout: 264 seconds]
relix has joined #ruby-lang
Sambalero has joined #ruby-lang
krombr has quit [Remote host closed the connection]
atmosx has quit [Quit: And so the story goes…]
swav has joined #ruby-lang
bzalasky has joined #ruby-lang
KM has joined #ruby-lang
GarethAdams has joined #ruby-lang
KM is now known as Guest6500
andrewvos has joined #ruby-lang
benanne has quit [Quit: kbai]
lupine has joined #ruby-lang
rippa has joined #ruby-lang
swav has quit [Remote host closed the connection]
lcdhoffman has quit [Quit: lcdhoffman]
mistym has joined #ruby-lang
intellitech has quit [Quit: intellitech]
lupine has quit [Ping timeout: 264 seconds]
<injekt>
wat
<dominikh>
mixing it up this time, no smiley.
Guest17337 has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
Guest17337 is now known as diegoviola
<injekt>
Yeah I dont want to get boring
<GarethAdams>
w@t
jsullivandigs has quit [Remote host closed the connection]
jsullivandigs has joined #ruby-lang
elia has quit [Ping timeout: 255 seconds]
swav has joined #ruby-lang
intellitech has joined #ruby-lang
swav has quit [Remote host closed the connection]
tbuehlmann has joined #ruby-lang
lupine has joined #ruby-lang
jonahR has joined #ruby-lang
tomzx_mac has joined #ruby-lang
digs has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 256 seconds]
sepp2k1 has quit [Ping timeout: 246 seconds]
digs is now known as Guest99624
bzalasky has quit [Remote host closed the connection]
mollyf has joined #ruby-lang
swav has joined #ruby-lang
mollyf has left #ruby-lang [#ruby-lang]
mytrile has quit [Remote host closed the connection]
swav has quit [Remote host closed the connection]
lupine has quit [Ping timeout: 264 seconds]
ehutzelman has joined #ruby-lang
lcdhoffman has joined #ruby-lang
andrewvos has quit [Ping timeout: 246 seconds]
<zzak_>
hi
andrewvos has joined #ruby-lang
mytrile has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 248 seconds]
Guest99624 has quit [Remote host closed the connection]
jsullivandigs has joined #ruby-lang
sepp2k has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 276 seconds]
lupine has joined #ruby-lang
stamina has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
ffio has quit [Ping timeout: 246 seconds]
benanne has joined #ruby-lang
<injekt>
zzak_: !
<zzak_>
hi
<injekt>
zzak_: how was 'murica?
<injekt>
is*
bzalasky has joined #ruby-lang
<zzak_>
it was good
<zzak_>
i cant tell where i am
<zzak_>
so im forking a bunch of things
<injekt>
wat
<zzak_>
i think i need jruby
andrewvos has quit [Ping timeout: 255 seconds]
ffio has joined #ruby-lang
adambeynon has quit [Quit: Computer has gone to sleep.]
JpC0utur3 has quit [Quit: leaving]
arooni-mobile has joined #ruby-lang
hogeo_ has joined #ruby-lang
hogeo has quit [Ping timeout: 255 seconds]
tonni has joined #ruby-lang
cordax has joined #ruby-lang
andrewvos has joined #ruby-lang
Markvilla has joined #ruby-lang
r0bby_ has joined #ruby-lang
r0bby has quit [Ping timeout: 256 seconds]
cordax has quit [Ping timeout: 268 seconds]
craig___ has joined #ruby-lang
tRAS has joined #ruby-lang
craig___ has quit [Client Quit]
craig___ has joined #ruby-lang
craig___ has quit [Client Quit]
mnngfltg has joined #ruby-lang
criego has joined #ruby-lang
jonahR has quit [Ping timeout: 264 seconds]
swav has joined #ruby-lang
stamina has quit [Ping timeout: 246 seconds]
swav has quit [Ping timeout: 256 seconds]
Weems has joined #ruby-lang
darix has quit [Ping timeout: 256 seconds]
jonahR has joined #ruby-lang
roadt has quit [Ping timeout: 248 seconds]
corecode has joined #ruby-lang
<corecode>
hrumm
<corecode>
now pdf-reader is great
<corecode>
but i'd like to modify the whole file a bit
<corecode>
any ideas how i can modify pdfs, instead of just reading them?
darix has joined #ruby-lang
mnngfltg has quit [Read error: Connection reset by peer]
Nisstyre has quit [Quit: Leaving]
lsegal has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
<andrewvos>
Hey guyysss. So I have a script that launches cucumber and runs in the background. I want to draw a bar at the top of the screen and I don't want to break cucumbers output. Any idea how I can do this?
<andrewvos>
Do I need to use curses?
<andrewvos>
Also I don't want to break cucumbers output, so I want to be able to "move to the top of the screen; write some stuff; move back to original position".
cordax has joined #ruby-lang
zmike123 has quit [Ping timeout: 255 seconds]
bzalasky has joined #ruby-lang
<yorickpeterse>
andrewvos: eh, you can do it without curses
<yorickpeterse>
but it's tricky
<andrewvos>
yorickpeterse: halp me
<yorickpeterse>
you need some ANSI wizardy for it, but I can't remember
publicvoid_ has quit [Ping timeout: 240 seconds]
<andrewvos>
Think hard
<yorickpeterse>
there's a control character that lets you redraw the screen
<yorickpeterse>
haha
<andrewvos>
I don't want to redraw the screen though
<andrewvos>
Cause then cucumber loses all it's nice output
<yorickpeterse>
also wtf is up with that image in the readme
<yorickpeterse>
"Full test suite: build error" lawl
<andrewvos>
Ergh
<andrewvos>
Code is not nice to read
<criego>
I'm having a problem passing what was an implicit closure -- which i made explicit (Proc.new) -- to pipeline.bus.add_watch (a gstreamer thing).
<yorickpeterse>
andrewvos: The code explains itself (tm)
swav has joined #ruby-lang
<andrewvos>
yorickpeterse: It bloody doesn't
<andrewvos>
yorickpeterse: Ergh everything curses related doesn't seem to work
<heftig>
criego: if it was "foobar { baz }" before, it'll be "closure = Proc.new { baz }; foobar(&closure)" after
<yorickpeterse>
andrewvos: curses is a pain in general
<yorickpeterse>
andrewvos: what you can do is consume the Cucumber output and not display it until its done
<yorickpeterse>
but display the progress bar in the meantime
<criego>
pipeline.bus.add_watch do ... end worked. pipeline.bus.add_watch $proc_obj causes an error when i do: mainloop.run (run: undefined method 'call' for nil:NilClass)
<heftig>
criego: add_watch &$proc_obj
<yorickpeterse>
the alternative is to suck up the output, render the progress bar, redraw the screen (this means redrawing the entire output so far), repeat
<andrewvos>
yorickpeterse: That's a terrible thing to do
<heftig>
criego: also, why are you using a global variable?
<andrewvos>
yorickpeterse: EDIT: Both are terrible things to do
<yorickpeterse>
andrewvos: why do you need a progress bar anyway? Cucumber already does this more or less
<criego>
heftig: ta da! I thought i tried that. Thanks.
kgrz has joined #ruby-lang
<andrewvos>
yorickpeterse: Well I want to use the default formatter, and I want to have a list of how many tests are failed at the top
<andrewvos>
yorickpeterse: And I want to show an ETA
<criego>
heftig: It was global because i was changing lots of things to make it work
<andrewvos>
Basically I want to write an app like tmux I guess
<andrewvos>
With a title at the top instead of the bottom
jbsan has quit [Quit: jbsan]
jbsan has joined #ruby-lang
kgrz has quit [Remote host closed the connection]
Kabaka has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
<andrewvos>
Gah I suppose redrawing might be the only option yorickpeterse.
cirwin has joined #ruby-lang
corecode has left #ruby-lang ["ERC Version 5.3 (IRC client for Emacs)"]
Todd has quit [Ping timeout: 268 seconds]
bzalasky has joined #ruby-lang
<matled>
andrewvos: for simple stuff http://ix.io/6l1 might work, try it with (while sleep 0.2; do date; done) | ruby foo.rb
<matled>
andrewvos: if the original output contains escape sequences that might not work that well
<matled>
and terminal resizing may cause problems, too
tomzx_mac has quit [Ping timeout: 276 seconds]
Todd has joined #ruby-lang
<yorickpeterse>
gah, what's up with cats demanding attention after taking a shit
<yorickpeterse>
"OH HEY DON'T MIND ME SMELLING LIKE POOP. I WANT HUGS NAOW"
<apeiros>
somebody has to wipe their ass…
tomzx_mac has joined #ruby-lang
<yorickpeterse>
pretty sure he uses my blankets for that
stamina has joined #ruby-lang
<ryanf>
and people act like it's weird to not want pets...
<yorickpeterse>
besides that cats are fucking awesome
<yorickpeterse>
mostly because they just don't give a shit about anything
<yorickpeterse>
"Oh hey you're awake, let me park my ass in front of your face"
cirwin has left #ruby-lang [#ruby-lang]
<yorickpeterse>
plus he regulary pries open the door when I'm going to the bathroom only to just stare through the corner
<yorickpeterse>
errr, opening
jsullivandigs has joined #ruby-lang
hogeo_ has quit [Remote host closed the connection]
<manveru>
i heard cats alter your brain
<manveru>
so yeah, makes sense :)
<yorickpeterse>
If that's the case I was already tampered with the day I was born
<yorickpeterse>
there was a cat sleeping in my baby bed before I even called dibs on it
<yorickpeterse>
"dis is mine naow"
<andrewvos>
matled: What is $< ??
<manveru>
andrewvos: $stdin?
<ryanf>
yorickpeterse: I think you catch it by being exposed to feces
<yorickpeterse>
ARGF
<ryanf>
so it sounds like you're doomed
<ryanf>
based on your cat stories
<manveru>
oh, argv
<manveru>
well, almost :)
<yorickpeterse>
ryanf: No, it's a parasite but it's quite rare in the western parts of europe
<yorickpeterse>
plus it actually has to enter your blood stream
<andrewvos>
oh cool
<yorickpeterse>
and I'm not exactly fond of eating cat poop
<manveru>
just because $> is $stdin doesn't mean $< is $stdout - ruby is totally logical :P
<ryanf>
quite rare, really? I thought it was pretty common everywhere (to varying degrees)
<manveru>
other way round
havenwood has joined #ruby-lang
<yorickpeterse>
it's called "Toxoplasmosis" apparently
<ryanf>
yeah
<ryanf>
I was overestimating it -- it's like 10% in the US, but much higher in other places
<ryanf>
not including western europe
<andrewvos>
matled: Aww that works, you are a god thank you.
<yorickpeterse>
basically anything above the half of France or so is generally pretty void of weird parasites and shit
publicvoid_ has joined #ruby-lang
SilverKey has joined #ruby-lang
vlad_starkov has joined #ruby-lang
heftig has quit [Ping timeout: 245 seconds]
rippa has quit [Ping timeout: 248 seconds]
M_BlX has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 276 seconds]
ehutzelman has quit [Remote host closed the connection]
<yxhuvud>
yes, here in .se we have ticks, and wild animals may have trikines, but apart from that we pretty much don't have anything bad at all naturewise.
ehutzelman has joined #ruby-lang
Aaaarg has quit [Ping timeout: 248 seconds]
Aaaarg has joined #ruby-lang
_jpb_ has joined #ruby-lang
ehutzelman has quit [Remote host closed the connection]
<matled>
andrewvos: for the simple case it works, as I said: resizing and escape sequences in the original output might cause problems
fedesilv_ has quit [Remote host closed the connection]
tRAS has quit [Quit: Mother, did it need to be so high?]
Sambalero has quit [Remote host closed the connection]
diegoviola has quit [Ping timeout: 264 seconds]
Sambalero has joined #ruby-lang
heftig has joined #ruby-lang
hashkey has joined #ruby-lang
<andrewvos>
matled: yeah and also when the test run is complete and I scroll up in tmux, my window title is always in the output
<matled>
not sure where you can get a better description of what this is supposed to do exactly :)
cordax has quit [Quit: Computer has gone to sleep.]
<andrewvos>
Hahaha
<matled>
it seems that while in this area everything around that will stay fixed and only that area scrolls
<andrewvos>
matled: So I want to do the reverse
<matled>
but didn't try extensively
<andrewvos>
I want to disable scrolling for the top row
<matled>
well, setting scroll region from row 2 to the last should be what you want
<andrewvos>
True
<andrewvos>
Is there a -1 kind of thing for last row?
<matled>
you can query the terminal size using ioctl :)
<matled>
no, unfortunately not
<andrewvos>
Damn
<andrewvos>
Didn't want to have to do that
<andrewvos>
Now I have one more problem. What if the screen resizes
<matled>
and trap("WINCH") to find out when the screen is resized
<matled>
maybe there is a library that takes care of most of this
<matled>
looking into curses might be worth a try, just to get these things, not switching into the non-scrolling and manual drawing mode
<andrewvos>
Yeah, couldn't get it working with the screen title though. Well, couldn't get it working without destroying all cucumber output
gregmoreno has quit [Read error: Connection reset by peer]
cofin has quit [Quit: cofin]
gregmoreno has joined #ruby-lang
Sambalero has quit [Remote host closed the connection]
gr4yscale has joined #ruby-lang
Criztian has joined #ruby-lang
cordax has joined #ruby-lang
_jpb_ has quit [Ping timeout: 256 seconds]
_jpb_ has joined #ruby-lang
gr4yscale has quit [Ping timeout: 240 seconds]
symm- has joined #ruby-lang
M_BlX has quit [Remote host closed the connection]
jackhammer2022 has joined #ruby-lang
justinmburrous has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 276 seconds]
diegoviola has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
mbj has quit [Quit: leaving]
gr4yscale has joined #ruby-lang
elia has joined #ruby-lang
Aww has joined #ruby-lang
gr4yscale has quit [Ping timeout: 240 seconds]
Criztian has quit [Remote host closed the connection]
x0f has quit [Ping timeout: 268 seconds]
x0f_ has joined #ruby-lang
gr4yscale has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 256 seconds]
gr4yscale has quit [Ping timeout: 276 seconds]
havenwood has quit [Remote host closed the connection]
<criego>
Anybody familiar with ruby gstreamer bindings? I wanted to use ruby with gstreamer but... the bindings seem quite deficient. gst_query_unref isn't even implemented!! (You can create queries, but not do the cleanup you ought to).
gr4yscale has joined #ruby-lang
io_syl has quit [Quit: Computer has gone to sleep.]
Voker57 has joined #ruby-lang
sebastiansier has joined #ruby-lang
jsullivandigs has quit [Remote host closed the connection]
amerine has joined #ruby-lang
digs has joined #ruby-lang
digs is now known as Guest67784
fn_ has joined #ruby-lang
arooni-mobile has joined #ruby-lang
diegoviola has quit [Quit: WeeChat 0.4.1]
tbuehlmann has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
fn_ has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 256 seconds]
sebastiansier has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
mistym has joined #ruby-lang
justinra_ has quit [Remote host closed the connection]
Averna has joined #ruby-lang
sebastiansier has joined #ruby-lang
mistym has quit [Ping timeout: 264 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]