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]
gregf has joined #ruby-lang
zachlatta has quit [Quit: Textual IRC Client: www.textualapp.com]
roadt has joined #ruby-lang
_jpb_ has quit [Ping timeout: 248 seconds]
arooni-mobile has joined #ruby-lang
_jpb_ has joined #ruby-lang
fenicks has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 276 seconds]
jstorimer has joined #ruby-lang
SilverKey has joined #ruby-lang
mdedetrich has joined #ruby-lang
jstorimer has quit [Remote host closed the connection]
jsullivandigs has joined #ruby-lang
jstorimer has joined #ruby-lang
jstorimer has quit [Remote host closed the connection]
mdedetrich has quit [Ping timeout: 240 seconds]
fragamus has joined #ruby-lang
_jpb_ has quit [Ping timeout: 246 seconds]
_jpb_ has joined #ruby-lang
Bosox20051 has quit [Remote host closed the connection]
thiagoborges has joined #ruby-lang
gfarfl_ has joined #ruby-lang
gfarfl_ has quit [Client Quit]
jackhammer2022 has quit [Quit: Computer has gone to sleep.]
jxie has quit [Quit: leaving]
tdy has quit [Read error: Connection reset by peer]
tdy has joined #ruby-lang
publicvoid_ has quit [Ping timeout: 256 seconds]
ffio_ has joined #ruby-lang
mollyf has joined #ruby-lang
ffio has quit [Ping timeout: 268 seconds]
mollyf has left #ruby-lang ["Bye!"]
dingus_khan has joined #ruby-lang
asahi has quit [Quit: Leaving.]
cofin has joined #ruby-lang
dingus_khan has quit [Ping timeout: 256 seconds]
mistym has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 256 seconds]
dhruvasagar has joined #ruby-lang
jstorimer has joined #ruby-lang
gr4yscale has quit [Quit: Computer has gone to sleep.]
kstuart has quit [Ping timeout: 246 seconds]
jstorimer has quit [Remote host closed the connection]
mdedetrich has joined #ruby-lang
bzalasky has joined #ruby-lang
vlad_starkov has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 255 seconds]
dingus_khan has joined #ruby-lang
mistym has joined #ruby-lang
xxaM has joined #ruby-lang
dkannan has joined #ruby-lang
Aaaarg has quit [Ping timeout: 248 seconds]
Aaaarg has joined #ruby-lang
dkannan has quit [Quit: dkannan]
dhruvasagar has quit [Ping timeout: 255 seconds]
hashkey has joined #ruby-lang
gr4yscale has joined #ruby-lang
dhruvasagar has joined #ruby-lang
bzalasky has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
pskosinski has quit [Quit: pskosinski]
bzalasky has quit [Remote host closed the connection]
mdedetrich has quit [Quit: Computer has gone to sleep.]
mdedetrich has joined #ruby-lang
gr4yscale has quit [Quit: Computer has gone to sleep.]
tdy has quit [Read error: Connection reset by peer]
tdy has joined #ruby-lang
mollyf has joined #ruby-lang
jstorimer has joined #ruby-lang
mollyf has left #ruby-lang [#ruby-lang]
gr4yscale has joined #ruby-lang
malev has joined #ruby-lang
SilverKey has left #ruby-lang ["Cheerio!"]
Aaaarg has quit [Ping timeout: 248 seconds]
mdedetrich has quit [Quit: Computer has gone to sleep.]
havenwood has quit [Remote host closed the connection]
Aaaarg has joined #ruby-lang
fenicks has quit [Remote host closed the connection]
tdy_ has joined #ruby-lang
tdy_ has quit [Client Quit]
tdy_ has joined #ruby-lang
gr4yscale has quit [Quit: Computer has gone to sleep.]
havenwood has joined #ruby-lang
cdelo_ has quit [Read error: Connection reset by peer]
cdelo_ has joined #ruby-lang
_jpb_ has quit [Ping timeout: 276 seconds]
_jpb_ has joined #ruby-lang
cordax has joined #ruby-lang
tdy has quit [Read error: Connection reset by peer]
tdy has joined #ruby-lang
brianpWins has joined #ruby-lang
brianpWins has quit [Client Quit]
curtism has joined #ruby-lang
<curtism> Is this the real life?
<erikh> there are plenty of karaoke bars in the real world
io_syl has joined #ruby-lang
vlad_starkov has joined #ruby-lang
bzalasky has joined #ruby-lang
Weems has quit [Ping timeout: 240 seconds]
bzalasky has quit [Remote host closed the connection]
Weems has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 264 seconds]
arooni-mobile has joined #ruby-lang
thiagoborges has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
cofin has quit [Quit: cofin]
slowhands has joined #ruby-lang
vlad_starkov has quit [Read error: Connection timed out]
vlad_starkov has joined #ruby-lang
cofin has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
Guest12876 has quit [Ping timeout: 268 seconds]
havenwood has quit [Remote host closed the connection]
ffio_ has quit [Quit: WeeChat 0.4.1]
tdy has quit [Read error: Connection reset by peer]
tdy has joined #ruby-lang
slowhands has quit [Quit: Computer has gone to sleep]
slowhands has joined #ruby-lang
scholar01 has joined #ruby-lang
scholar01 has quit [Changing host]
scholar01 has joined #ruby-lang
jstorimer has quit [Remote host closed the connection]
jstorimer has joined #ruby-lang
dhruvasagar has joined #ruby-lang
jstorimer has quit [Ping timeout: 248 seconds]
hackeye has joined #ruby-lang
justinmburrous has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
tomzx_mac has quit [Ping timeout: 255 seconds]
arubin has quit [Quit: Textual IRC Client: www.textualapp.com]
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
hogeo has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 255 seconds]
<bnagy> hackeye: s.lines.to_a.map(&:chomp).map {|l| l.squeeze(' ')}.grep(/1k/).first.split(' ')[1]
<bnagy> if you're doing this a lot there's a csv implementation in stdlib
vlad_starkov has joined #ruby-lang
<bnagy> actually you don't even need to squeeze
<bnagy> s.lines.to_a.grep(/1k/).first.split(' ')[1]
bzalasky has quit [Remote host closed the connection]
<hackeye> bnagy: thanks, i'll try this out
<bnagy> don't need to_a either
<bnagy> sorry I've been doing too much Go today :/
<hackeye> no worries, it's great to get help on a sunday :-)
<bnagy> basically grep gives you an array of lines matching that regex, and split gives you an array
<bnagy> you should try stuff out in irb to see what's going in
<hackeye> ok, that's a good idea, should've thought of that
dhruvasagar has quit [Read error: Operation timed out]
bzalasky has joined #ruby-lang
dhruvasagar has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
Markvilla has joined #ruby-lang
GeissT has quit [Ping timeout: 246 seconds]
wallerdev has quit [Quit: wallerdev]
zmike123 has joined #ruby-lang
Markvilla has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
bzalasky has quit [Remote host closed the connection]
cofin has quit [Quit: cofin]
dhruvasagar has quit [Ping timeout: 264 seconds]
relix has joined #ruby-lang
SubSpawnLnx has quit [Remote host closed the connection]
dhruvasagar has joined #ruby-lang
Aaaarg has quit [Ping timeout: 248 seconds]
tdy_ has quit [Ping timeout: 240 seconds]
Mon_Ouie has quit [Ping timeout: 268 seconds]
Aaaarg has joined #ruby-lang
rippa has joined #ruby-lang
dc5ala has joined #ruby-lang
malev has quit [Remote host closed the connection]
<hackeye> bnagy: still there?
stardiviner has joined #ruby-lang
cordax has quit [Quit: Computer has gone to sleep.]
<bnagy> yup
<hackeye> the CSV class stuff isn't working, and your later suggestions aren't either.. still get the nil object, couldn't figure out why
<hackeye> but your first suggestion works: s.lines.to_a.map(&:chomp).map {|l| l.squeeze(' ')}.grep(/1k/).first.split(' ')[1]
<hackeye> so a couple of questions on that if you don't mind?
<bnagy> s.lines.grep(/1k/).first.split(' ')[1] should be the same
<hackeye> it kept adding a nil too.. anyways, i can go along with the one that works for now... but just want to understand it
<hackeye> what does (&:chomp) do?
<bnagy> removes trailing newlines
<hackeye> that's what .chomp does, so why the '&'?
<hackeye> and the :sym notation? (sorry for the noobish questions)
stardiviner has quit [Remote host closed the connection]
<bnagy> it's shortcut symtax
<hackeye> ok, thanks
<bnagy> it passes the chomp method to map instead of saying ary.map {|s| s.chomp}
<hackeye> ok
mychickenninja has joined #ruby-lang
jxie has joined #ruby-lang
hhatch has joined #ruby-lang
<mychickenninja> howdy..
<mychickenninja> Anyone know if Sqlite has issues with threading? when running with thredify I get 100% cpu usage.. =(
<manveru> mychickenninja: using it via sequel?
<mychickenninja> not sure what you are refering to
<mychickenninja> ahh .. no.. using it via sqlite3
Rizzle has quit [Read error: Connection reset by peer]
hogeo has quit [Remote host closed the connection]
<manveru> i don't think that's thread-safe
cordax has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 240 seconds]
Rizzle has joined #ruby-lang
<mychickenninja> thought i read somewhere that v3 was thread safe... ill check out sequel
<mychickenninja> thanks
<manveru> hackeye: s = File.read(QUOTA_OUTPUT_FILE).split; s[s.index('1k-blocks')+s.index('usage')]
amerine has quit [Quit: Textual IRC Client: www.textualapp.com]
<erikh> I've done a lot of threading work with it.
<erikh> or are we talking about posix threading?
<manveru> good question
GeissT has joined #ruby-lang
<erikh> you need to wrap everything in transactions with the sqlite3 gem
<erikh> but it's fine
<erikh> I have some very thorough tests on my tooling
<erikh> those are marshalled writes to sqlite.
<erikh> well, i/o in generla
<mychickenninja> my simple learning project is quickly becoming a monster
<erikh> heh
<erikh> welcome to concurrency.
<mychickenninja> Im am just trying to pull data from a sqlite db into threadify and into http requests...
<erikh> not sure what threadify is
<mychickenninja> the code works..
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<erikh> but it sounds like a bad idea from the name
<mychickenninja> stupid easy way to thread
<erikh> yeah.
<mychickenninja> enum.threadify(#ofthread) do |something|
<erikh> oh, check out the parallel gem.
<erikh> it's at least something I know more than a few people rely on
<erikh> it has a similar api
Weems has quit [Ping timeout: 246 seconds]
<mychickenninja> what about sqlite? i was under the impression it was thread safe... should I try to implement sequel?
<erikh> you don't need to
Sambalero has quit [Remote host closed the connection]
<erikh> you do need to keep an eye on data races, though.
<erikh> thread safe doesn't mean you can ignore concurrency
hashkey has quit []
<erikh> if it wasn't thread safe, ruby would probably dump core at some point.
<mychickenninja> how many threads max for parallel? wiki doesnt say. Threadify was stable at 300
<mychickenninja> Kinda need the large volume of requests
<erikh> it's all delegating to ruby threads
<erikh> parallel does nothing magical.
<erikh> ruby's threads are i/o scheduled
<erikh> well, MRIs are.
<erikh> you can have quite a few of them, but the performance isn't linear.
<erikh> I would worry very little about stability. I'd worry about data races.
mytrile has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
<mychickenninja> cool... thanks for the info
yxhuvud2 has left #ruby-lang [#ruby-lang]
yxhuvud has joined #ruby-lang
<yxhuvud> personally I think anything that use 300 threads broken.
<yxhuvud> a couple of threads, fine. but for more than that, asynchness is the only way to scale with sanity. (imo).
<bnagy> unless you're CPU bound
vlad_starkov has quit [Read error: Connection reset by peer]
<yxhuvud> huh? How does getting context switches all the time help in that case?
<erikh> you know MRI's threads are basically async when it comes to scheduling, right?
relix has joined #ruby-lang
<erikh> and... computers tend to come with more than one core these days
<yxhuvud> Sure. I have nothing against using a few threads. but I have really bad experience from using 300+ threads.
<erikh> you'd really hate go then
<erikh> and erlang.
<yxhuvud> maybe, maybe not. there are ways to avoid insanity even in the threaded scenario.
marr has joined #ruby-lang
<xuser> to be fair, erlang uses lightweight processes which very different from native threads
<xuser> +are
<erikh> xuser: so does go, but for this discussion it's semantics.
<erikh> well, go uses fibers.
<erikh> which are effectively the same
<xuser> but yeah, 300 processes in erlang is nothing :)
<erikh> :)
GarethAdams has joined #ruby-lang
<mychickenninja> checking 7million+ entries in a db with fewer thatn 200~300 threads is quite a long process...
<erikh> in sqlite?
<mychickenninja> not mcuh choice but to thread that many
<erikh> what does your query look like?
<erikh> I can't see a good reason to need threading at all for something like that, presuming you're doing read-only stuff.
<erikh> probably just slowing things down.
<mychickenninja> prolly doing it wrong, since I am new to ruby..http://pastebin.com/KmttWMi1
<erikh> look at the CONCAT() sql function.
<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
<eval-in> yxhuvud => nil (https://eval.in/34592)
<erikh> yxhuvud: IPAddr.new('1.1.1.1/15').to_range
<mychickenninja_> thats just about the request i had
stamina has joined #ruby-lang
<mychickenninja_> before i pushed into a db
<erikh> and it's not really mind-blowingly fast
<yxhuvud> erikh: it doesn't print anything since it isn't in range.
<mychickenninja_> i pushed cause having to reload that list everytime was a pain
<erikh> >> r = IPAddr.new('1.1.1.1/15').to_range; r.first
<eval-in> erikh => uninitialized constant IPAddr (NameError) ... (https://eval.in/34593)
<erikh> ugh
<erikh> >> require 'ipaddr'; r = IPAddr.new('1.1.1.1/15').to_range; r.first
<eval-in> erikh => #<IPAddr: IPv4:1.0.0.0/255.254.0.0> (https://eval.in/34594)
<erikh> >> require 'ipaddr'; r = IPAddr.new('1.1.1.1/15').to_range; r.last
<eval-in> erikh => #<IPAddr: IPv4:1.1.255.255/255.254.0.0> (https://eval.in/34595)
<erikh> >> require 'ipaddr'; r = IPAddr.new('1.1.1.1/15').to_range; r.include?("1.1.1.2")
<eval-in> erikh => true (https://eval.in/34596)
<erikh> any questions?
<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.]
duph has quit [Client Quit]
zmike123 has quit [Ping timeout: 256 seconds]
GarethAdams has quit [Quit: Linkinus - http://linkinus.com]
duph has joined #ruby-lang
toretore has joined #ruby-lang
MaddinXx has joined #ruby-lang
dhruvasagar has joined #ruby-lang
sepp2k has joined #ruby-lang
zmike123 has joined #ruby-lang
LokiSharp has joined #ruby-lang
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> https://github.com/jfelchner/ruby-progressbar here, this might be a start
<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
<yorickpeterse> https://github.com/martinciu/fuubar-cucumber and this maybe
Kabaka has quit [Excess Flood]
gregf has quit [Quit: WeeChat 0.4.1]
<andrewvos> These are different from what I want
<andrewvos> These totally replace the formatter
<andrewvos> I want to use the default
<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> maybe setting the scroll region helps
<erikh> it's easy to eat feces without knowing it
<erikh> ask a doctor.
<erikh> pro tip: use soap
<andrewvos> matled: Didn't know you could do that
<andrewvos> Any idea how?
<erikh> also, #cat-feces-lang
<matled> http://www.termsys.demon.co.uk/vtansi.htm "Enable scrolling from row {start} to row {end}."
<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…]
kstuart has joined #ruby-lang
Markvilla has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
pipework has quit [Remote host closed the connection]
benanne has quit [Quit: kbai]
publicvoid_ has quit [Ping timeout: 268 seconds]
gregmoreno has quit [Remote host closed the connection]
arooni-mobile has quit [Ping timeout: 240 seconds]
GarethAdams has quit [Quit: Leaving...]
kennyvb has quit [Ping timeout: 256 seconds]
jstorimer has quit [Remote host closed the connection]
kennyvb has joined #ruby-lang
jstorimer has joined #ruby-lang
vlad_starkov has joined #ruby-lang
andrewvos has quit [Ping timeout: 246 seconds]
cofin has joined #ruby-lang
boytoy has joined #ruby-lang
Sambalero has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 264 seconds]
postmodern has joined #ruby-lang
stamina has quit [Ping timeout: 246 seconds]
duph has joined #ruby-lang
arooni-mobile has joined #ruby-lang
jstorimer has quit [Remote host closed the connection]
Weems has quit [Changing host]
Weems has joined #ruby-lang
woollyams has joined #ruby-lang
mdedetrich has joined #ruby-lang
andrewvos has joined #ruby-lang
mantono has quit [Ping timeout: 248 seconds]
wmoxam has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 256 seconds]
_jpb_ has quit [Ping timeout: 256 seconds]
hhatch has quit [Ping timeout: 248 seconds]
_jpb_ has joined #ruby-lang
sepp2k has quit [Quit: Leaving.]
kstuart has quit [Ping timeout: 276 seconds]
elia has quit [Quit: (IRC Client: textualapp.com)]
symm- has quit [Ping timeout: 248 seconds]