<Darmani>
Hi everyone! I was trying to implement a word counter as part of the Exercism problems but I'm having a lot of trouble account for apostrophes.
babblebre has quit [Quit: Connection closed for inactivity]
swills has quit [Ping timeout: 256 seconds]
hightower2 has quit [Ping timeout: 268 seconds]
hightower2 has joined #ruby
snguyen has joined #ruby
s2013 has joined #ruby
gusrub_ has quit [Remote host closed the connection]
s2013 has quit [Client Quit]
Jameser has joined #ruby
s2013 has joined #ruby
dnicole has quit [Remote host closed the connection]
splud has quit [Quit: splud]
rapha has quit [Ping timeout: 244 seconds]
dviola has quit [Quit: WeeChat 1.6]
rodfersou has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: inabit. zz.]
babblebre has joined #ruby
tdy has joined #ruby
haylon has joined #ruby
dunpeal has quit [Ping timeout: 260 seconds]
dunpeal has joined #ruby
jcao219 has quit [Ping timeout: 265 seconds]
enterprisey has joined #ruby
gusrub_ has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
tvw has quit [Ping timeout: 260 seconds]
<matheusmoreira>
parsers are plenty fast
<matheusmoreira>
they get faster the more limited the grammar is
jcao219 has joined #ruby
Kero has quit [Ping timeout: 260 seconds]
hightower2 has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
smtudor has joined #ruby
e2021 has quit [Read error: Connection reset by peer]
jhack has quit [Quit: jhack]
creat has joined #ruby
Immune has quit [Ping timeout: 260 seconds]
Channel6 has joined #ruby
dar123 has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 250 seconds]
snguyen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
railssmi_ has joined #ruby
palms has quit [Ping timeout: 260 seconds]
railssmith has quit [Ping timeout: 240 seconds]
JeanCarloMachado has joined #ruby
Immune has joined #ruby
gusrub_ has quit [Read error: Connection reset by peer]
smtudor has quit [Read error: Connection reset by peer]
jhack has joined #ruby
gusrub_ has joined #ruby
cdg has quit [Remote host closed the connection]
A124 has quit [Ping timeout: 268 seconds]
winfli has joined #ruby
e2021 has joined #ruby
JeanCarl1Machado has joined #ruby
jgt1 has joined #ruby
astrobunny has joined #ruby
e2021 has quit [Client Quit]
jhack has quit [Quit: jhack]
lel has quit [Read error: Connection reset by peer]
nankyokusei has joined #ruby
gusrub_ has quit [Remote host closed the connection]
lel has joined #ruby
jgt1 has quit [Ping timeout: 244 seconds]
nankyokusei has quit [Ping timeout: 260 seconds]
enterprisey has quit [Ping timeout: 252 seconds]
GodFather has quit [Ping timeout: 252 seconds]
Snowy has quit [Ping timeout: 245 seconds]
smtudor has joined #ruby
tuxaddicted has quit [Ping timeout: 244 seconds]
harfangk has joined #ruby
d^sh has quit [Ping timeout: 248 seconds]
allcentury has joined #ruby
d^sh has joined #ruby
tfitts has quit [Quit: Connection closed for inactivity]
JeanCarloMachado has quit [Ping timeout: 244 seconds]
JeanCarl1Machado has quit [Ping timeout: 258 seconds]
SteenJobs has joined #ruby
SteenJobs has quit [Client Quit]
railssmi_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 252 seconds]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
Immune has quit [Ping timeout: 260 seconds]
Felipe__ has joined #ruby
djbkd has quit [Ping timeout: 248 seconds]
haylon has quit [Quit: Bye]
mluts has quit [Ping timeout: 260 seconds]
mluts has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
agent_white has quit [Quit: brb]
hanmac has quit [Ping timeout: 256 seconds]
ramfjord has joined #ruby
mikhael_k33hl has joined #ruby
XV8 has joined #ruby
<mikhael_k33hl>
Why would i need to create a module when I just can define all common methods under a file common.rb and require it in the class that needs them?
kingkong- has quit [Read error: Connection reset by peer]
<xrlk>
idk man
<xrlk>
modularity is usually good for load time and overhead
<xrlk>
recompiling
<xrlk>
that's based on my c++ knowledge
<xrlk>
if you kept everything in one file in c++ you'd be compiling for hours
<xrlk>
makes sense for working in groups to have tasks divided
kingkong- has joined #ruby
lel has quit [Disconnected by services]
<Ropeney>
mikhael_k33hl, namespacing
<mikhael_k33hl>
Ropeney: would you mind elaborating? I'm quite new to ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<elomatreb>
mikhael_k33hl: Usually the convention is to have all source inside a "lib" directory, with subdirectories representing the (nested) module structure. Files are usually named after the class defined in them
<mikhael_k33hl>
So saying I'm planning on creating 4 modules namely config, filemod, notification, and logging. Should I place them under modules/ directory?
<mikhael_k33hl>
elomatreb:
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<elomatreb>
Are you sure you want to create modules, not classes?
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
millerti has joined #ruby
<mikhael_k33hl>
elomatreb: yeah, these modules will contain common methods that will be used by different classes
izaac has quit [Quit: Lost terminal]
<elomatreb>
mikhael_k33hl: This is a little unconventional, but my instinct would be to have files named "config.rb", "filemod.rb", etc. in the top-level lib directory of your project
<mikhael_k33hl>
elomatreb: unconventional? isn't that what methods are for? they are used to contain common methods, like in logging, they will contain methods for logging into a file etc. etc. :)
aryaching has joined #ruby
cinderhaze has joined #ruby
agent_white has joined #ruby
<cinderhaze>
Hello everyone... I have an odd question
izaac has joined #ruby
<elomatreb>
mikhael_k33hl: In Ruby, you normally have such functions defined on classes. So you'd have a class "Logger" you instantiate to use
palms has quit [Ping timeout: 260 seconds]
<mikhael_k33hl>
elomatreb: so when do you used modules?
<bougyman>
cinderhaze: well, what is it?
<bougyman>
mikhael_k33hl: to group shared methods.
<bougyman>
or as a namespace.
<bougyman>
those are the two ways _I_ use modules.
<elomatreb>
Or, more specifically, to group classes
<bougyman>
that would be to use as a namespace, elomatreb
<mikhael_k33hl>
say I have a method log() { . . . } << this method will be used by different classes. That makes it a share method right?
<elomatreb>
Yes, I just wanted to make that explicitely clear
<cinderhaze>
bougyman: I'm trying to use https://github.com/puppetlabs/puppetlabs-inventory, where I mount the /opt/puppetlabs volume in another container so I can run puppet inventory in any other pre-existing docker container without modifying the base container
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<bougyman>
mikhael_k33hl: generally yes.
<cinderhaze>
this works fine until I launch a container that doesn't have a compatible version of GLIBC
<mikhael_k33hl>
bougyman: So it is best to put it inside a module yes?
<bougyman>
mikhael_k33hl: you can reuse it easily if it's in a module, yes.
CloCkWeRX has joined #ruby
<mikhael_k33hl>
bougyman: okay, thanks mate
<elomatreb>
My instinct would be to use a class, with class-level methods
<cinderhaze>
I have tried to use ldd inside the 'true' container that has the packaged version of ruby, copy all of the libraries mentioned into another volume, which I then mount into the other container, then I run LD_LIBRARY_PATH=/mylibs:/opt/puppetlabs/puppet/ruby --version where I get Segmentation fault (core dumped)
<cinderhaze>
if I run it without setting the LD_LIBRARY-paTH I get the following error /opt/puppetlabs/puppet/bin/ruby: /lib/libc.so.6: version `GLIBC_2.14' not found (required by /opt/puppetlabs/puppet/lib/libruby.so.2.1)
jrp has joined #ruby
jcao219 has quit [Ping timeout: 248 seconds]
Ropeney has joined #ruby
dar123 has joined #ruby
eclm has joined #ruby
Guest66 has joined #ruby
Guest66 has quit [Client Quit]
futabachannel has quit [Ping timeout: 260 seconds]
Guest66 has joined #ruby
Guest66 has quit [Client Quit]
agent_white has quit [Quit: agent_white]
agent_white has joined #ruby
jrp has quit [Quit: Leaving]
pwnd_nsfw` has joined #ruby
govg has quit [Ping timeout: 246 seconds]
mluts has quit [Ping timeout: 248 seconds]
mluts has joined #ruby
nadir has quit [Ping timeout: 246 seconds]
jrp has joined #ruby
troys_ has quit [Read error: Connection reset by peer]
dnicole has joined #ruby
f0rpaxe has quit [Ping timeout: 260 seconds]
pwnd_nsfw has quit [Ping timeout: 240 seconds]
matheusmoreira has quit [Ping timeout: 260 seconds]
futabachannel has joined #ruby
f0rpaxe has joined #ruby
nadir has joined #ruby
matheusmoreira has joined #ruby
aidalgol has quit [Quit: brb, kernel upgrade]
govg has joined #ruby
nankyokusei has joined #ruby
aidalgol has joined #ruby
Kero has joined #ruby
nankyokusei has quit [Ping timeout: 248 seconds]
Channel6 has quit [Quit: Leaving]
mluts has quit [Ping timeout: 260 seconds]
jrp has quit [Quit: Leaving]
mluts has joined #ruby
hahuang61 has joined #ruby
tuxaddicted has quit [Remote host closed the connection]
babblebre has quit [Quit: Connection closed for inactivity]
winfli has quit [Ping timeout: 245 seconds]
hahuang61 has quit [Ping timeout: 258 seconds]
edwardly has quit [Ping timeout: 250 seconds]
nullfxn has quit [Ping timeout: 250 seconds]
igniting has joined #ruby
edwardly has joined #ruby
edwardly has joined #ruby
edwardly has quit [Changing host]
ofkors has joined #ruby
Dimik has quit [Ping timeout: 246 seconds]
aryaching has quit [Ping timeout: 250 seconds]
jgnagy has joined #ruby
c355e3b has quit [Quit: Connection closed for inactivity]
JoshS has joined #ruby
solocshaw has joined #ruby
mluts has quit [Ping timeout: 260 seconds]
jgnagy has quit [Ping timeout: 268 seconds]
moei has quit [Quit: Leaving...]
moei has joined #ruby
mluts has joined #ruby
_sfiguser has quit [Ping timeout: 244 seconds]
pawnbox has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
nicoulaj has quit [Remote host closed the connection]
gingray has joined #ruby
CloCkWeRX has quit [Ping timeout: 256 seconds]
Jameser_ has joined #ruby
workmad3 has joined #ruby
Fernando-Basso has joined #ruby
jaguarmagenta has joined #ruby
JeanCarloMachado has joined #ruby
ldnunes has joined #ruby
Jameser has quit [Ping timeout: 265 seconds]
Jameser_ has quit [Ping timeout: 265 seconds]
tvw has joined #ruby
LoneHerm_ has joined #ruby
nullfxn has quit [Ping timeout: 250 seconds]
Snowy has joined #ruby
Dobler has joined #ruby
neeraj has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
jaguarmagenta has quit [Ping timeout: 265 seconds]
JeanCarl1Machado has joined #ruby
JeanCarloMachado has quit [Ping timeout: 252 seconds]
JeanCarloMachado has joined #ruby
nullfxn has joined #ruby
CloCkWeRX has joined #ruby
mluts has joined #ruby
ddffg has quit [Ping timeout: 265 seconds]
LoneHerm_ has quit [Remote host closed the connection]
Snowy_ has joined #ruby
ferr has joined #ruby
Snowy has quit [Ping timeout: 265 seconds]
cyphase has quit [Ping timeout: 260 seconds]
hightower2 has joined #ruby
tubuliferous_ has joined #ruby
ace05 has quit [Read error: Connection reset by peer]
ace05 has joined #ruby
E7F3RN4 has joined #ruby
E7F3RN4 has quit [Client Quit]
Madplatypus has joined #ruby
gusrub_ has joined #ruby
Skullclown has joined #ruby
<Skullclown>
hi, I'm looking for languages to use for continuous (24/7) web (API) scraping - how does ruby with something like sidekiq hold up against other languages?
gusrub_ has quit [Ping timeout: 260 seconds]
<dminuoso>
Skullclown: Ruby is turing complete.
<dminuoso>
Does that suffice?
<dminuoso>
Skullclown: Jokes aside, sidekiq/redis might not be the ideal approach because it's more job oriented.
<dminuoso>
But Ruby can be perfectly fine - it rather depends on how comfortable you are with the language.
Xeago has quit [Ping timeout: 250 seconds]
<mikecmpbll>
i'd be surprised if there was a language which wasn't able to to achieve that perfectly well, those aren't very challenging criteria
<mikecmpbll>
make web requests, write to a database?
neeraj has left #ruby [#ruby]
Xeago has joined #ruby
<Skullclown>
mikecmpbll: yup, JSON API to mongodb or mysql (although most likely mongodb for its fast inserts & JSON)
grh has joined #ruby
<dminuoso>
Skullclown: Ruby is fine like any other. Make it dependent on which language you are comfortable with.
<mikecmpbll>
well there you go then.
<Skullclown>
as one bad example, I know that node.js is pretty bad at web scraping, because it's single threaded and runs a maximum of 10 processes for async jobs :)
<dminuoso>
Skullclown: If you are a Python guy and know lots of libraries - use Python.
<mikecmpbll>
now you've introduced a new constraint, multithreading
<Skullclown>
dminuoso: I'm fine with either language, could also be C, C++, C#, Go, node.js
<dminuoso>
Skullclown: Concurrency is a real problem with multithreaded Ruby.
<Skullclown>
mikecmpbll: it needs to handle as many requests/s as possible - usually it helps if it's multithreaded but just saying "multithreaded" doesn't always make something faster
<dminuoso>
Skullclown: The usal case where multithreading in Ruby can be leveraged is if lots of time is spent sleep()ing (say because of blocking IO)
blackmesa has quit [Ping timeout: 260 seconds]
<Papierkorb>
There's always JRuby for real multithreading
<Papierkorb>
if that's even needed
<Skullclown>
Papierkorb: I'm open to any recommendations :)
<dminuoso>
Skullclown: Personally I would do it in Ruby because it's easy to accomplish for me. But that's only because I'm not a big fan of node.js, and C++ is simply the wrong language for the job.
<Papierkorb>
Skullclown: JRuby is a Ruby VM on the JVM which can do true multithreading. I'm just questioning if that's even needed, but you didn't give us enough info either
<Skullclown>
dminuoso: node.js is the wrong language for the job, considering the limitation of 10 child processess for async
lenwood has joined #ruby
<Skullclown>
unless I write it to fork and create as many child processes as I need, with a task queue, but even then I'm making it more complex than I need to
<Papierkorb>
Skullclown: we can't help if you don't give us any real info
<Skullclown>
Papierkorb: define real info?
<Papierkorb>
"as many requests/s as possible" .. what's that?
<dminuoso>
Skullclown: Where is most of the time spent? Computing results or IO?
<Papierkorb>
Are you trying to poll a HTTP endpoint every tenth of a millisecond?
augcesar has joined #ruby
rohit_ has joined #ruby
<Skullclown>
Papierkorb: 150 million requests to be done in as little time as possible, on a machine w/ 900Mbit/s down & 140 Mbit/s up, CPU E3-1245 V2 @ 3.40GHz, 32GB RAM
manjaro-kde5 has quit [Ping timeout: 248 seconds]
<Skullclown>
it's currently being done at 40 requests per second, which can definitely be improved (bad current codebase)
<Skullclown>
dminuoso: IO
<Papierkorb>
Skullclown: does the api even allow for concurrent access?
blackwind_123 has quit [Read error: Connection reset by peer]
<Skullclown>
Papierkorb: yes
<mikecmpbll>
even with cruby you'll be able to parallelise that a lot.
<Papierkorb>
sounds weird though that you need to poll >150M documents from some API
<mikecmpbll>
given most of API request is IO wait
hightower3 has joined #ruby
<Papierkorb>
Skullclown: How long does a request take to respond?
<Papierkorb>
Most likely ruby will do just fine as mikecmpbll says.
blackwind_123 has joined #ruby
<Skullclown>
Papierkorb: 0.195s
hightower2 has quit [Ping timeout: 268 seconds]
<Papierkorb>
Skullclown: That's ages. Ruby will spend most time sleeping, for this its threading model is perfectly sufficient
<Skullclown>
Papierkorb: 0.013s w/o DNS lookup
creat has joined #ruby
dushyant has joined #ruby
aidalgol has quit [Quit: zZzZZZzZzzz]
nettoweb1 has joined #ruby
nettoweb has quit [Ping timeout: 246 seconds]
<Skullclown>
mikecmpbll: thanks for the advice, I'm liking ruby for the job :)
Azure has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
govg has quit [Ping timeout: 256 seconds]
rohit__ has joined #ruby
<dminuoso>
Skullclown: So it's 150M known documents you need to fetch?
<Skullclown>
dminuoso: yes
<Papierkorb>
I don't get why you can't literally clone the database then
sparch has joined #ruby
sparch has joined #ruby
sparch has quit [Changing host]
<mikecmpbll>
heh, indeed.
<Papierkorb>
Or are you scraping a competitor, making it (borderline?) illegal?
virgil has joined #ruby
dunpeal has joined #ruby
<mikecmpbll>
against t&cs != illegal :D
<Skullclown>
Probably a misunderstanding in the phrasing. By known documents, I understood data that's in a known/expected format. However, the details of the contents are unknown.
<dminuoso>
It would just be a breach of contract.
<Skullclown>
And no, this is completely legal, and is unrelated to "competitors" :)
<dminuoso>
Skullclown: sidekiq/redis sounds like a good idea again now that I heard some details
<Skullclown>
Although I'm curious why #ruby would care more about the legal side of a question rather than the technical one ;)
<dminuoso>
as essentially you would be queuing up these 150M jobs and then have 10 concurrent workers.
<mikecmpbll>
because the technical side isn't interesting.
rohit_ has quit [Ping timeout: 268 seconds]
<dminuoso>
Skullclown: I have done my fair share of "grey area" scraping competitors to gain an advantage.
<dminuoso>
It's how the world works. :-)
<Skullclown>
mikecmpbll: then I suppose people should enter #ruby asking about what is legal and what's not, to keep it interesting for you?
<Papierkorb>
I think that sidekiq is already overkill. spawn some threads and have a loop in each downloading the documents
<mikecmpbll>
Skullclown : sure, or more interesting ruby problems :)
<dminuoso>
Papierkorb: 150M documents is a lot. sidekiq is super simple to set up and will give you persistence over the jobs
<Skullclown>
mikecmpbll: we can't always choose the complexity of a project :P
<mikecmpbll>
:)
<dminuoso>
Papierkorb: And you get all these things such as a UI for free to track how many outstanding jobs are left, how many have been processed, dead jobs
<Skullclown>
dminuoso: yup thanks, I'll play around with sidekiq, it was also the first thing that caught my eye
<dminuoso>
etc
<dminuoso>
Without any code. ;-)
dunpeal has quit [Ping timeout: 265 seconds]
<hanmac>
hmmm i currently wonder if it would be faster to ask the server to zip the files for you and doing a zipped batch download ... (depending if you can access the server)
nankyokusei has joined #ruby
<dminuoso>
Something tells me he has no control over the server.
<dminuoso>
;-)
<Skullclown>
hanmac: depending on the number of individual requests, it is
<Skullclown>
the API is indeed not mine though :) I'm working with some community devs for an early access game (Battlerite) to implement global Steam statistics
<Skullclown>
(store.steampowered.com)
<Papierkorb>
would be surprised if they're not rate limiting
<Skullclown>
they're not, at least not at the rates I've been going so far (40 - 100/s)
<dminuoso>
Skullclown: Then sidekiq is going to be an issue again.
jdawgaz has joined #ruby
<Skullclown>
dminuoso: oh?
<dminuoso>
Skullclown: All community throttling solutions are shitty at best.
<Skullclown>
community throttling?
<dminuoso>
Skullclown: sidekiq doesnt come with throttling if you go for the non-enterprise version
<Skullclown>
dminuoso: I don't need it to throttle :)
<Papierkorb>
Skullclown: eitherway, I'd batch up a thousand or so request into a single job to keep the sidekiq job dispatch overhead low
<dminuoso>
Skullclown: Until you do.
<Skullclown>
Papierkorb: I'll keep that in mind, thanks
<mikecmpbll>
+1
<Skullclown>
dminuoso: no, it's a one-time query for Steam's public profile game data, we just need those 150 million done once
nankyokusei has quit [Ping timeout: 256 seconds]
<Skullclown>
but we'd prefer to keep costs to whatever server(s) we already have, and not have it take a month to complete
<Papierkorb>
This reminds me that it was a good idea to disable public access to my steam profile
<Skullclown>
Papierkorb: if you think querying owned games is bad, you must not think of the chinese and russians who have been querying profile data for known identity details, or even matching those with known e-mail accounts and hacked password lists :)
<Papierkorb>
Skullclown: I do that everywhere, no reused emails, no reused passwords, generated passwords, etc. Isn't that standard for IT people?
<mikecmpbll>
Password123
<mikecmpbll>
oops, wrong window.
conta has joined #ruby
<Papierkorb>
hunter2*
<apeiros>
hunter2?
<apeiros>
^5 Papierkorb :D
<mikecmpbll>
:D
<Skullclown>
hunter3 here
<Skullclown>
to make it unguessable
<apeiros>
clever
<dminuoso>
I use randon passwords and commit messages.
<Skullclown>
I use random passwords as commit messages.
<dminuoso>
No honestly I actually have a shell script that automatically commits using a message from http://whatthecommit.com/
Beams has quit [Quit: .]
dionysus69 has joined #ruby
<apeiros>
I use 2048 character generated passwords. works great with all those websites which don't allow copy&paste.
<dminuoso>
Keeps you on your toes with your ten finger typing.
<Skullclown>
apeiros: I had to set up a password generator scheme that didn't use spaces and special characters because it messed up some websites.....
<Skullclown>
and I love it when they tell me there's a "30 character limit"
<dminuoso>
Skullclown: Or you know - use 1password
<apeiros>
Skullclown: yeah. too many websites with silly policies wrt passwords :-S
<dminuoso>
;-)
<apeiros>
"max 8 chars" - wtf?
<apeiros>
"invalid characters" - wtf?
<Papierkorb>
apeiros: Banks!
<dminuoso>
apeiros: Or better yet "this password is already in use"
<Papierkorb>
5 chars max
<Skullclown>
dminuoso: keepass
<dminuoso>
Ive seen this.
<dminuoso>
Not kidding.
<apeiros>
"copy & paste is disabled" - wtff?
<Papierkorb>
holy shit, my steam account is better protected than my bank account
Jameser has joined #ruby
<apeiros>
Papierkorb: I think that'd be suable here
<Papierkorb>
apeiros: *every* established bank is the same here
<Skullclown>
Papierkorb: same here, 4 or 5-char pass
<Skullclown>
:(
<apeiros>
Papierkorb: aren't you in germany?
<ruurd>
Where is here?
<Papierkorb>
apeiros: Yes, and all banks I know of have this limitation
<Skullclown>
ruurd: if I'd tell you, I'd have to kill you
<ruurd>
Hah that must be so easy to crack then
<apeiros>
Papierkorb: wouldn't that fit under "grossly mishandling sensitive data"?
<apeiros>
i.e. suable via data protection laws
<Skullclown>
apeiros: banks sign their logins & transfers with those card readers nowadays
<Skullclown>
on top of passwords
<Papierkorb>
apeiros: No, because of "insert some stupid reasoning here". IANAL.
<Skullclown>
although most of those same banks allow bank transfers without signing to anyone on your "favorites" list... and not all require signing when adding someone to that list...
<apeiros>
Skullclown: ok, if there's a reasonably safe 2nd factor + proper delay on multiple tries, then it's not that insane anymore
<Papierkorb>
bank transfers yes, that's protected through a TAN (with whatever scheme you use to get the TAN), but it's already really interesting to an attacker which bank accounts you have with how much money each, no?
<apeiros>
note: sms are not sane 2nd factor
<apeiros>
Papierkorb: so account is only protected by that 5 char pw? then IMO yes, that should fall under data protection laws.
jgnagy has joined #ruby
<mikecmpbll>
do any banks support u2f?
<Papierkorb>
apeiros: lawl, the "Sparkasse" has a banking app, and a tan app. You can not only put both on the same device, they even then communicate directly! This is intended behaviour!
<apeiros>
surprised that this hasn't yet had a legal consequence.
<Papierkorb>
That's like 2FA as in "two things you've lost: Your phone, and now your money too"
dunpeal has joined #ruby
<mikecmpbll>
:d
c355e3b has joined #ruby
<apeiros>
yeah. unbackuppable (is that a word) 2nd FA is disturbing
<apeiros>
main reason why I haven't secured all my stuff with 2FA
<mikecmpbll>
recovery codes tho'
jgnagy has quit [Ping timeout: 250 seconds]
johnmccabe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mikecmpbll>
when we developed a two factor app and had it security audited the auditors recommended preventing the secret being backed up with application data
<mikecmpbll>
i guess it makes sense, you don't want the secret being distributed across uncontrollable locations.
<apeiros>
mikecmpbll: thanks for that u2f hint. was pondering yubikey for some private project. might be that I'll use u2f instead (can still use a yubi product as they seem to support it)
<mikecmpbll>
apeiros : we've been using yubico products for two-factor in our web app for 5+ years and recently switched to supporting U2F
<mikecmpbll>
all OTP based two-factor are vulnerable to phishing attacks, which is the big bonus of U2F.
<apeiros>
yeah. at some point, the user becomes the weakest link.
govg has joined #ruby
<Papierkorb>
Oh, is the U2F stuff openly specified, including protocols?
<mikecmpbll>
downside for us is browser support tho, only Chrome and Opera (and Firefox with a plugin)
<apeiros>
for my case, I could use client certs. that might reduce phishing issue a lot.
horst has joined #ruby
<apeiros>
but it'll increase support requirements :-/
nadir has joined #ruby
<mikecmpbll>
Papierkorb : yep. the FIDO spec is being superseded by the more broad Web Auth spec though https://w3c.github.io/webauthn/
<Papierkorb>
neat, thanks
interpolate has quit [Quit: interpolate]
<mikecmpbll>
Edge folks are working on implementing Web Auth spec, for their Windows Hello identity thing.
byte512 has joined #ruby
Beams has joined #ruby
marr has quit [Ping timeout: 245 seconds]
aupadhye has quit [Ping timeout: 268 seconds]
unforgiven512 has quit [Ping timeout: 256 seconds]
<kareelee>
mluts: it doesn't work, it just continues to as me for a value
anisha has quit [Quit: This computer has gone to sleep]
lenwood has joined #ruby
aphprentice has quit [Quit: Connection closed for inactivity]
<blackbombay_>
hmm. popen3 could do a better job. it should let you spawn the command then write to stdin and then read from stdout or stderr (it passes those three ios to the block).
blackmesa has quit [Quit: WeeChat 1.5]
<kareelee>
blackbombay_: indeed, I just show the docs. I am trying this out
greinbold has left #ruby ["WeeChat 1.0.1"]
f4cl3y has quit [Quit: Leaving]
<blackbombay_>
i'm not sure if capture3 will work. i think you want to spawn the command first, and wait for 'run' to ask for input.
nahra has quit [Remote host closed the connection]
<kareelee>
blackbombay_: I tried it and didn't work (the popen3)
blackwind_123 has quit [Ping timeout: 245 seconds]
<blackbombay_>
what did you try? could you paste the code?
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<kareelee>
omg
nonnatus has joined #ruby
<kareelee>
IO.popen3 doesn't work for sure
<kareelee>
I am trying with Open3
tyang has joined #ruby
<blackbombay_>
ok
cibs has quit [Ping timeout: 268 seconds]
<kareelee>
well with {|stdin,stdout,stderr,thr| stdin.write "myname" }
<kareelee>
it returns an integer but I don't know If it works
<blackbombay_>
write returns the number of bytes written, so it probably worked fine.
jdawgaz has joined #ruby
cibs has joined #ruby
<kareelee>
and what If it asks for yes/no ?
<kareelee>
how sould you get the stdout ?
<blackbombay_>
stdout is there as second arg to the block but you should check if its readable or not first, IO.select stuff above is for that
tubuliferous_ has joined #ruby
jdawgaz has quit [Client Quit]
hogetaro has quit [Quit: Leaving...]
<blackbombay_>
it sounds like you should first check what is written to stdout, if it asks for a username, write to stdin, then check stdout again, and parse whatever it wrote. perhaps a bunch of IO.select calls.
allcentury has joined #ruby
teclator has quit [Ping timeout: 260 seconds]
<blackbombay_>
afk. good luck kareelee
fmcgeough has joined #ruby
nonnatus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
d0nn1e has quit [Ping timeout: 256 seconds]
Madplatypus has quit [Quit: Connection closed for inactivity]
nahra has joined #ruby
greinbold has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
d0nn1e has joined #ruby
<kareelee>
blackbombay_: worked ! thanks a lot
claudiuinberlin has joined #ruby
futabachannel has quit [Quit: Leaving...]
zukin has joined #ruby
tvw has quit [Remote host closed the connection]
Snowy has joined #ruby
chwbacca has joined #ruby
ta_ has quit [Remote host closed the connection]
grh has joined #ruby
kn330 has joined #ruby
blackwind_123 has quit [Ping timeout: 265 seconds]
blackwind_123 has joined #ruby
babblebre has joined #ruby
ferr has quit [Quit: WeeChat 1.5]
JeanCarloMachado has quit [Ping timeout: 252 seconds]
JeanCarl1Machado has quit [Ping timeout: 256 seconds]
<guardian>
hello
mostlybadfly has quit [Quit: Connection closed for inactivity]
<guardian>
I'm a bit of a bundler noob, is there a negation operator to forbid a specific version? like I want 1.1.1 or > 1.1.3 (when 1.1.3 is out) but I don't want 1.1.2
virgil has quit [Remote host closed the connection]
pwnd_nsfw` has joined #ruby
justinweiss has joined #ruby
csk has quit [Remote host closed the connection]
cyphase has joined #ruby
csk has joined #ruby
pwnd_nsfw has quit [Ping timeout: 260 seconds]
dunpeal has joined #ruby
justinweiss has quit [Ping timeout: 256 seconds]
Kero has quit [Ping timeout: 260 seconds]
jaxxstorm has quit [Ping timeout: 260 seconds]
AlexRussia has joined #ruby
dionysus69 has joined #ruby
Kero has joined #ruby
tk__ has quit [Quit: ばいばい]
jcao219 has quit [Ping timeout: 268 seconds]
last_staff has quit [Quit: last_staff]
i8igmac has quit [Ping timeout: 245 seconds]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
jdawgaz has joined #ruby
jhack has joined #ruby
mattn_jp_ has joined #ruby
polishdub has joined #ruby
mattn_jp_ has quit [Client Quit]
johnmccabe has joined #ruby
machinewar has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
toretore has joined #ruby
roflmyeggo has joined #ruby
agent_white has joined #ruby
troulouliou_div2 has quit [Quit: Leaving]
JeanCarloMachado has joined #ruby
chris349 has joined #ruby
nicks_85_ has joined #ruby
chadwtaylor has quit [Remote host closed the connection]
chadwtaylor has joined #ruby
<nicks_85_>
Hello I am facing problem with solaris 11 ruby version 1.9.1 and 2.1.0, other version have not tried yet , but when I run the fpm its always giving me this error, could someone please help me https://gist.github.com/nicks85/3e3f776d7efbed44a60c0ae43ffe6da2
JeanCarl1Machado has joined #ruby
mark_66 has quit [Remote host closed the connection]
nobitanobi has joined #ruby
<adam12>
nicks_85_: Strange territory for most. How did you install Ruby?
<nicks_85_>
adam12 I have installed via pkg install ruby
<havenwood>
nchambers: Ignore it for gems but commit it for apps.
whiteline has quit [Remote host closed the connection]
hahuang61 has joined #ruby
<adam12>
nicks_85_: I'm not sure I can be much help, but in my looking at SmartOS, I believe pkgsrc had a patch for ffi.
<nicks_85_>
adam12 any example do you have how to patch it as I am quite new in ruby
lenwood has quit [Ping timeout: 260 seconds]
<adam12>
nicks_85_: Not off hand :|
<nchambers>
thanks havenwood
SteenJobs has joined #ruby
hahuang61 has quit [Ping timeout: 258 seconds]
Immune_ has quit [Ping timeout: 260 seconds]
SteenJobs has quit [Client Quit]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lele has quit [Ping timeout: 260 seconds]
jgnagy has joined #ruby
djbkd has joined #ruby
nankyokusei has joined #ruby
lele has joined #ruby
jgnagy has quit [Ping timeout: 245 seconds]
chadwtaylor has joined #ruby
nixmaniack has quit [Remote host closed the connection]
machinewar has quit []
aganov has quit [Quit: Leaving]
a1fa has quit [Ping timeout: 260 seconds]
nankyokusei has quit [Ping timeout: 244 seconds]
a1fa has joined #ruby
GinoManWorks has joined #ruby
chadwtaylor has quit [Ping timeout: 260 seconds]
cibs has quit [Ping timeout: 268 seconds]
greinbold has quit [Quit: WeeChat 1.0.1]
gnufied has joined #ruby
dunpeal has quit [Ping timeout: 252 seconds]
AlexRussia has quit [Ping timeout: 256 seconds]
cibs has joined #ruby
djbkd has quit []
roflmyeggo has quit [Ping timeout: 260 seconds]
roflmyeggo has joined #ruby
synthroid has quit [Remote host closed the connection]
solocshaw has joined #ruby
nonnatus has joined #ruby
rfoust has joined #ruby
hogetaro has joined #ruby
AlexRussia has joined #ruby
grh has joined #ruby
SteenJobs has joined #ruby
roshanavand has quit [Ping timeout: 246 seconds]
mluts has quit [Ping timeout: 252 seconds]
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
shinnya has quit [Ping timeout: 244 seconds]
dar123 has joined #ruby
[Butch] has joined #ruby
nonnatus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dar123 has quit [Client Quit]
babblebre has quit [Quit: Connection closed for inactivity]
doublemalt__ has quit [Ping timeout: 260 seconds]
jgnagy has joined #ruby
MichaelK has joined #ruby
frmendes has quit [Quit: Zzzz...]
johnmccabe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
conta has quit [Ping timeout: 260 seconds]
jespada has joined #ruby
<MichaelK>
Hi, is there any guarantee to the precision of `.to_r` for `TimeWithZone`? It seems like it should be fixed precision, but I couldn't find anything about it
solocshaw has quit [Quit: solocshaw]
nunchuck has joined #ruby
amclain has joined #ruby
rbr has quit [Ping timeout: 250 seconds]
pwnd_nsfw has joined #ruby
balazs has joined #ruby
<balazs>
Can somebody help out a newbie ? I did "bundle install" and mixlib-cli got installed in ./vendor/bundle. What do I have to set GEM_PATH to so I can 'require "mixlib/cli"' ?
nonnatus has joined #ruby
vuoto has quit [Quit: Lost terminal]
vuoto has joined #ruby
<havenwood>
balazs: Bundler uses a silly "remembered" --path flag. Check your bundler config.
igniting has joined #ruby
<havenwood>
balazs: bundle config
nunchuck has quit [Remote host closed the connection]
pwnd_nsfw` has quit [Ping timeout: 258 seconds]
<havenwood>
balazs: Or the other possibility is you've set --deployment (also remembered).
nunchuck has joined #ruby
nunchuck has quit [Remote host closed the connection]
<balazs>
"path" is "vendor/bundle" indeed
frmendes has joined #ruby
rbr has joined #ruby
gusrub_ has joined #ruby
<balazs>
I guess my question is how to make ruby look for the gem there
<havenwood>
balazs: bundle config --delete path
nunchuck has joined #ruby
<balazs>
then just "bundle install" ?
<havenwood>
balazs: yeah, that would install to GEM_HOME
<havenwood>
balazs: or you can set GEM_HOME to bundler's path
skweek has joined #ruby
rubyDube has joined #ruby
<balazs>
I did export GEM_PATH=/home/balazs/project/vendor/bundle
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
greinbold has joined #ruby
gusrub_ has quit [Ping timeout: 245 seconds]
<havenwood>
err, right - GEM_PATH not GEM_HOME - you're wanting to use it not install to that location
<rubyDube>
Is there a way to include all of ruby23's bin inside an exe packaged by ocra?
<havenwood>
balazs: Is this in dev?
<balazs>
yes, dev
<havenwood>
balazs: It's fine to install the bundle to the global gem location. It'll still use the right versions of the right gems from the Gemfile.lock.
greinbold has quit [Client Quit]
JeanCarl1Machado has quit [Ping timeout: 252 seconds]
JeanCarloMachado has quit [Ping timeout: 268 seconds]
<havenwood>
rubyDube: See Traveling Ruby, Ocra or Releasy
<balazs>
I still don't get what to set GEM_PATH to. Shouldn't this work:
<maximus_dynamo>
Why can't ruby see a txt file in the same dir when I put: "x = File.readlines('text.txt')"
<dar123>
I am writing a script to configure cisco switches, i need output of a command ' show interface description' to be sent to a file. once i have it in file i can parse it easily
<apeiros>
maximus_dynamo: same dir as the script != working dir
<maximus_dynamo>
How does one link the file without writing a full path then?
nicks_85_ has quit [Ping timeout: 260 seconds]
<maximus_dynamo>
And where is the working dir?
<apeiros>
initially, the working dir is from where you start your script
<apeiros>
e.g. if you `cd /home/foo; ruby scripts/bar.rb`, then the working dir is /home/foo
<apeiros>
and it'll stay that way until your script actively changes the working dir.
johnmccabe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros>
Dir.getwd returns the current working directory.
<apeiros>
and all relative paths are relative to the working directory.
<maximus_dynamo>
Oh... that makes a lot of sense o.o
gusrub_ has quit [Ping timeout: 260 seconds]
johnmccabe has joined #ruby
<toretore>
maximus_dynamo: depending on your use case, you should probably either 1) always require full path to be given by the user, or 2) assume that the file is static, relative to the location of the script
<apeiros>
you can use __FILE__ and __dir__ to construct paths relative to the current code file
creat has quit [Quit: Leaving]
tercenya has quit [Remote host closed the connection]
<apeiros>
what to do depends entirely on what you need. there's no generic answer to that question.
nonnatus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
phantompain has joined #ruby
jphase has quit [Ping timeout: 258 seconds]
haylon has quit [Ping timeout: 260 seconds]
<toretore>
actually, nm my 1)
dhollinger has quit [Ping timeout: 260 seconds]
tercenya has joined #ruby
<toretore>
if i do `ruby script.rb -f file.rb` i expect that to be relative to my cwd
<maximus_dynamo>
It's static
dhollinger has joined #ruby
tubuliferous_ has quit [Ping timeout: 240 seconds]
polishdub has joined #ruby
<maximus_dynamo>
so I could do something like File.readlines(File.dirname(_FILE_)'text.txt)
<maximus_dynamo>
*'text.txt'
Skullclown has quit []
rbr has joined #ruby
definity has joined #ruby
hahuang61 has joined #ruby
nonnatus has joined #ruby
lacour has joined #ruby
<maximus_dynamo>
Nvm, I got it
<maximus_dynamo>
Thanks :)
eljimbo has joined #ruby
mpwin has joined #ruby
symm- has quit [Ping timeout: 252 seconds]
nicoulaj has joined #ruby
atmosx has joined #ruby
nicoulaj has quit [Client Quit]
<definity>
Hi, I am trying to learn ruby and I'm reading the documentation but I can't seem to find the methods for the TCPSocket class. Where can I find them?
<Papierkorb>
definity: socket stuff is in the "sockets" library which is not part of the stdlib, but is part of the standard distribution. That's why you don't find it directly in the stdlib docs
SteenJobs has quit [Quit: SteenJobs]
gizless has joined #ruby
nobitanobi has quit [Remote host closed the connection]
hahuang61 has joined #ruby
djbkd has joined #ruby
gizmore has quit [Ping timeout: 256 seconds]
<balazs>
Is there a canonical way to make mixlib/cli take a flag multiple times ? Like "command -t t1 -t t2"
<toretore>
optparse should support that, but don't ask me how
swills has joined #ruby
<balazs>
Currently I'm using a class variable like so: :proc => Proc.new {|t| @x||=[]; @x.push(t)}
swills has quit [Changing host]
swills has joined #ruby
muelleme has joined #ruby
<definity>
Okay thanks :) is there a close method?
<atmosx>
definity: have you looked the link I gave you?
kirun has joined #ruby
<atmosx>
The first code sample features a close method and it's like 6 lines, hard to miss.
andikr has quit [Remote host closed the connection]
chadwtaylor has joined #ruby
<havenwood>
Is ruby-lang964 still around?
flak has joined #ruby
tercenya has quit [Remote host closed the connection]
Miron has joined #ruby
swills has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
tercenya has joined #ruby
jhack has quit [Ping timeout: 258 seconds]
rippa has quit [Ping timeout: 268 seconds]
zeroDi has joined #ruby
<havenwood>
I asked ko1 and it seems there's not a link to the decremented program counter. Seaton suggested you'd have to get it from the stack. I don't know.
definity has quit [Ping timeout: 260 seconds]
ur5us has joined #ruby
jhack has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
csk has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
pawnbox has joined #ruby
nocd has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sdothum has joined #ruby
al2o3-cr has quit [Ping timeout: 240 seconds]
jhack has quit [Ping timeout: 260 seconds]
kbdkode has joined #ruby
aryaching has joined #ruby
nowhere_man has quit [Ping timeout: 240 seconds]
bocaneri has quit [Read error: Connection reset by peer]
jaruga___ has quit [Quit: jaruga___]
dviola has joined #ruby
csk has quit [Ping timeout: 244 seconds]
jackjackdripper has quit [Quit: Leaving.]
harai has quit [Ping timeout: 245 seconds]
pawnbox has quit [Remote host closed the connection]
tubuliferous_ has quit [Ping timeout: 260 seconds]
futilegames has quit [Quit: futilegames]
phantompain has quit [Ping timeout: 265 seconds]
toretore has joined #ruby
CloCkWeRX has quit [Ping timeout: 260 seconds]
pragmaticus has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
ramfjord has joined #ruby
Axy has joined #ruby
harai has joined #ruby
tylerwillingham has joined #ruby
zotherstupidguy has quit [Quit: WeeChat 1.6]
Mia has quit [Ping timeout: 240 seconds]
Cohedrin has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood>
bonerwad: You might consider trying to avoid doing so, unless your case requires it.
bovis has joined #ruby
dar123 has joined #ruby
jackjackdripper has joined #ruby
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
<bovis>
is there an equivalent of YAML.something to File.foreach where you could reach, say, one hash at a time?
jetblack has joined #ruby
nankyoku_ has quit [Ping timeout: 256 seconds]
matheusmoreira has quit [Ping timeout: 244 seconds]
<ruby-lang964>
ok, as i understand i cant get link from cfp on YARV instruction, who called him too?
gingray has joined #ruby
<jyaworski>
bovis YAML.load_file('myfile.yml') will turn it into a hash.
csk has quit [Quit: ZZZzzz…]
matheusmoreira has joined #ruby
<bovis>
jyaworski: but it will still load the entire file as a whole unit?
<bovis>
jyaworski: if I'm correct, foreach reads line by line, which is useless in a YAML
<jyaworski>
bovis it will give you a hash of hashes/arrays as is appropriate. You can then use .each, .each_pair, etc.
<bovis>
I guess it would just be nice to read unit by unit, like read a hash, stop and wait, read another
<bovis>
jyaworski: the load_file is what I have working now
<jyaworski>
You can use YAML.load_file('myfile.yml').inspect to see what I mean.
<bovis>
loading a whole file works, I'm just curious about an alternative
sp4rrow has joined #ruby
synthroid has quit []
<jyaworski>
I'm not aware of a way to partially read a file until you terminate a hash or array. You could get ridiculous with File.seek.
f4 has quit [Ping timeout: 246 seconds]
xaxisx_ has quit [Quit: xaxisx_]
Fire-Dragon-DoL has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
<bovis>
jyaworski: seek looks fun, but not necessarily what I need; thanks though
agent_white has joined #ruby
angelkryyo[m] has joined #ruby
sonOfRa has quit [Quit: Bye!]
dunpeal has quit [Ping timeout: 244 seconds]
sonOfRa has joined #ruby
<xrlk>
i fixed my logs
<xrlk>
and can run ruby now
<xrlk>
no thanks to you
angelkryyo[m] has left #ruby [#ruby]
<tobiasvl>
good job
tubuliferous_ has joined #ruby
<Papierkorb>
Took only 2.5h to rm /var/log/**/*.log*
jhack has quit [Ping timeout: 265 seconds]
<bougyman>
that doesn't parralelize the rm's at all.
<djellemah>
bovis: maybe YAML.load_documents, but it requires --- document separators.
<baweaver>
xrlk: last warning: enough.
<baweaver>
and for everyone else, #ruby-offtopic.
<xrlk>
Papierkorb,
<xrlk>
lmao
<xrlk>
removing logs
<xrlk>
as if
<xrlk>
stopping services
<apeiros>
!kick xrlk baweaver was clear enough
xrlk was kicked from #ruby by ruby[bot] [baweaver was clear enough]
jhack has joined #ruby
<bovis>
djellemah: looks like you still load the whole yaml file, but that will be helpful for future ideas
<bovis>
djellemah: maybe the separation of users, tasks, major groupings in a single doc
<bovis>
is the xrlk ban permanent?
<bougyman>
Papierkorb: how did you remove those, what command?
<baweaver>
bovis: feel free to discuss in #ruby-offtopic, but no, kick lasts a minute.
<bovis>
baweaver: ty
<Papierkorb>
bougyman: what do you mean?
<Papierkorb>
Remove what?
<bougyman>
11/11-13:28 < Papierkorb> Took only 2.5h to rm /var/log/**/*.log*
<bougyman>
or maybe that was a joke? I don't know the context, can't see backscroll.
<Papierkorb>
bougyman: I was joking that it took xrlk so long to figure out the rm invocation I wrote there, which is a legit zsh glob if you're wondering
<bougyman>
ok
tyang has quit [Read error: Connection reset by peer]
<bougyman>
was just gonna chime in that rsync's --delete is generally much faster than any incantation of rm.
<djellemah>
bovis: I had an idea load_documents used streaming, which is possible because of the document separators. But the code trail heads off into Psych somewhere, so I can't see whether it's actually implemented using streaming or not.
<bovis>
djellemah: what do you mean by streaming?
ramfjord has quit [Ping timeout: 268 seconds]
<djellemah>
bovis: loading only enough of a potentially large yaml file to yield something sensible.
<havenwood>
ruby-lang964: So you want to get at the previous executing instruction from the control frame pointer?
jhack_ has joined #ruby
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
ta_ has quit [Remote host closed the connection]
nonnatus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
<havenwood>
ruby-lang964: I don't know the answer but hang around and someone else might be able to help.
<bovis>
djellemah: would it be ridiculous inefficiency to just separate all parts of file with doc separators, like every hash is between a --- ?
jhack has quit [Ping timeout: 256 seconds]
jhack_ is now known as jhack
<bovis>
djellemah: if load_doc works like a stream as you said, that could be a replacement-ish for a similar to File.foreach
<djellemah>
bovis: maybe, but I don't have any useful experiences to share on that :-|
<djellemah>
gotta go
<bovis>
djellemah: seeya
bin7me has quit [Read error: Connection reset by peer]