orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cthulchu has quit [Read error: Connection reset by peer]
cthulchu_ has joined #ruby
cthulchu_ has quit [Client Quit]
jottr has joined #ruby
cthulchu has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
jottr has quit [Ping timeout: 246 seconds]
bertyberty has joined #ruby
<bertyberty>
the comments of the method pkg_config in lib/mkmf.rb lead me to believe that mkmf.rb will accept an like --with-openssl-config=/usr/bin/pkgconfig
<bertyberty>
true or false?
mikecmpbll has quit [Quit: inabit. zz.]
crankharder has quit [Ping timeout: 255 seconds]
reaVer_ has quit [Ping timeout: 255 seconds]
jrafanie has joined #ruby
reaVer has joined #ruby
bjpenn has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has quit [Ping timeout: 245 seconds]
mangold has joined #ruby
orbyt_ has joined #ruby
Onwarion_re has joined #ruby
jottr has joined #ruby
Onwarion has quit [Ping timeout: 252 seconds]
jottr has quit [Ping timeout: 246 seconds]
reaVer has quit [Ping timeout: 246 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
tiogrand__ has quit [Ping timeout: 240 seconds]
marmotini_ has joined #ruby
jottr has joined #ruby
marmotini_ has quit [Ping timeout: 246 seconds]
jottr has quit [Ping timeout: 246 seconds]
bertyberty has quit [Quit: Page closed]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
wald0 has quit [Quit: Lost terminal]
bambanx has joined #ruby
jottr has joined #ruby
jottr has quit [Ping timeout: 255 seconds]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
skwurl has joined #ruby
ur5us has quit [Ping timeout: 246 seconds]
bga57 has quit [Remote host closed the connection]
jottr has joined #ruby
bga57 has joined #ruby
<skwurl>
hello #ruby
jottr has quit [Ping timeout: 246 seconds]
<skwurl>
new at ruby here, im trying to work through an old tutorial and think i hit an issue with version control. i think.
claudiuinberlin has quit [Ping timeout: 246 seconds]
gregf_ has quit [Ping timeout: 256 seconds]
qual[away] has quit [Quit: qual[away]]
qual has joined #ruby
<Tuor>
What I want to do is: if STDIN has a key path with a non empty string as value, make a Pathname with this string. I want to add to this code, that if path doesn't get assigned a pathname, path gets a default pathname. How should I do that? I could do it like this: https://dpaste.de/AHn0
<Tuor>
How would you do it?
<tbuehlmann>
sure, either that or `path ||= Pathname.new(default_path)`. default_path could be a Pathname already, but that's up to you. you could also assign the default path before going into the conditions
<phaul>
you could maintain a Set with contents, and use Set#include?
<phaul>
if your character set is limited for instance ascii you can implement hash with an array of include? flags mapping ords to bools
<phaul>
that would be constant time
<leftylink>
I wondered if it would be possible to use Array#uniq but it seems there are a few snags there so I defer to the other suggestions
<ryouba>
phaul: it's a subset of all of the different Unicode tables
<phaul>
you can try built in Set then. but that will require some data before it starts outperforming what you have now
<ryouba>
leftylink: my first attempt was indeed to stuff the content of every. single. cell. into an array and then run uniq. that crashed my laptop ... and the 32GB RAM xeon server ran over night :-P
<ryouba>
phaul: do AL columns, ~5000-ish-rows excel sheets count as "some data"?
ylshao has joined #ruby
<phaul>
very hard to tell, but you can test. Use Benchmark on it, and you will see
<ryouba>
oh, that's a nice idea! i keep forgetting about that... :) thank you!
<phaul>
what i found about optimization is that ppl are incredibly bad at predicting why their code is slow. Whithout profiling its pointless to even think about optimizing. (Obviously don't implment ridiculous things, but just doing sensible code is enough) If you find your program slow, then profile. What you thought the reson your program being slow is never the actual reason
<ryouba>
hmmm i would certainly include myself in that group of people
<phaul>
I meant everybody
<ryouba>
but then i never studied computer science on a university level
<ryouba>
hmm
<phaul>
me included
<ryouba>
everybody does include people who have
<ryouba>
because if you've done that then you should be able to do that, right?
jottr_ has joined #ruby
<phaul>
I don't beleive that. You can calculate run time costs. That's one thing. The actuall complexity in the computer, being IO blockedor CPU limited, or cache limited, or memory bandwidth.. Are all only measurable
jottr has quit [Ping timeout: 246 seconds]
ylshao has left #ruby ["WeeChat 2.4"]
mangold has quit [Quit: This computer has gone to sleep]
<phaul>
I suggest you try ruby prof in combination with [kq]cachegrind to visualize your runtime costs.
themsay has quit [Read error: Connection reset by peer]
themsay has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
Swyper has joined #ruby
xrexeon has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
keden has quit [Quit: WeeChat 1.9.1]
tau has joined #ruby
aqd has quit [Remote host closed the connection]
keden has joined #ruby
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
Onwarion_re has quit [Read error: Connection reset by peer]
Dbugger has joined #ruby
mniip has quit [Ping timeout: 600 seconds]
naught-fowl has joined #ruby
tdy1 has quit [Ping timeout: 246 seconds]
laaron has quit [Remote host closed the connection]
aqd has joined #ruby
AJA4350 has joined #ruby
jcalla has joined #ruby
qual has quit [Quit: qual]
aqd_ has joined #ruby
danguita has joined #ruby
andikr has quit [Ping timeout: 250 seconds]
laaron has joined #ruby
aqd has quit [Ping timeout: 250 seconds]
akem__ has quit [Ping timeout: 245 seconds]
stan has quit [Ping timeout: 258 seconds]
Swyper has quit [Remote host closed the connection]
xrexeon has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
laaron has quit [Remote host closed the connection]
qual has joined #ruby
laaron has joined #ruby
Swyper has joined #ruby
<Bish>
Xeago: like calling it non blocking and rettrying?
mniip has joined #ruby
ubuntuisloved has joined #ruby
skyikot has joined #ruby
aqd_ has quit [Quit: Leaving]
Rapture has joined #ruby
marz_d`ghostman has joined #ruby
<marz_d`ghostman>
Has anyone tried uploading files to google drive via cli using ruby?
akem has joined #ruby
GreyHame has joined #ruby
i9zO5AP has joined #ruby
akem__ has joined #ruby
Ai9zO5AP has quit [Ping timeout: 268 seconds]
i9zO5AP has quit [Client Quit]
Ai9zO5AP has joined #ruby
akem has quit [Ping timeout: 245 seconds]
jrafanie has joined #ruby
<Bish>
marz_d`ghostman: no, never
<marz_d`ghostman>
Bish: care to elaborate?
<marz_d`ghostman>
Bish: that's a bit of a strong negative answer, hehe
<Bish>
sarcasm, ofcourse someone has done that
<Bish>
is Queue implemented in C?
akem has joined #ruby
<al2o3-cr>
Bish: yes.
lukelukeluke has joined #ruby
akem__ has quit [Ping timeout: 245 seconds]
stan_ has joined #ruby
gnufied has joined #ruby
mangold has joined #ruby
teclator has quit [Remote host closed the connection]
<marz_d`ghostman>
Bish: Hahaha, Sorry didn't get that sarcasm, was just wondering though if you've done it how you handle tokens? I mean like if you do a cron job running the scripts how do you obtain the token since you'll have to interact with the webpage
Swyper has quit [Remote host closed the connection]
<ryouba>
phaul: sent me off on a bit of a journey there, good think though, thanks again! i'll keep that profiling stuff at the back of my mind. at the moment i'll stay with the original algorithm though, since this seems to be somewhat of a rabbit-hole-topic.
<ryouba>
is there a POS tagger for ruby that might work for arabic?
am0123 has joined #ruby
griffindy has joined #ruby
aqd has joined #ruby
cisco has quit [Quit: leaving]
DaRock has quit [Ping timeout: 246 seconds]
xrexeon has quit [Ping timeout: 240 seconds]
agent_white has joined #ruby
rippa has joined #ruby
stryek has joined #ruby
qual has quit [Quit: qual]
Swyper has quit [Remote host closed the connection]
mangold has joined #ruby
zleap has joined #ruby
zleap has quit [Changing host]
zleap has joined #ruby
naught-fowl has quit [Quit: Leaving]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
am0123 has quit [Ping timeout: 240 seconds]
jaddison has quit [Quit: jaddison]
jaddison has joined #ruby
KeyJoo has joined #ruby
sylario has joined #ruby
jrafanie_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrafanie has joined #ruby
qual has joined #ruby
jrafanie has quit [Client Quit]
tiogrand__ has quit [Ping timeout: 246 seconds]
jrafanie has joined #ruby
polishdub has joined #ruby
tiogrand has joined #ruby
Arkantos has joined #ruby
stan_ has quit [Remote host closed the connection]
stan has joined #ruby
<ytti>
if you have foo { |arg| arg.something }
<ytti>
you can replace it with foo(&:arg)
<ytti>
uhh foo(&:something)
<ytti>
can you pass argument to something?
andikr has quit [Remote host closed the connection]
[Butch] has joined #ruby
<Yxhuvud>
No, not in Ruby.
<robotcars>
Bundler could not find compatible versions for gem "activerecord":
<robotcars>
activerecord-sqlserver-adapter was resolved to 5.1.6, which depends on
<robotcars>
In Gemfile:
<robotcars>
fluent-plugin-sql was resolved to 1.0.0, which depends on
<robotcars>
activerecord (~> 5.1.0)
<robotcars>
activerecord (~> 4.2)
<robotcars>
anyway to resolve this?
Swyper has joined #ruby
matsaman has joined #ruby
tiogrand_ has joined #ruby
<ytti>
Yxhuvud, thanks
<ytti>
Yxhuvud, another interesting thing i noticed if 'something' takes arguments but has default argument values you still can't call it with foo(&:something)
<ytti>
Yxhuvud, i'm sure that should not be surprising, with proper understanding of the issue, but it was surprising to me
<ytti>
Yxhuvud, arity must be 0
tiogrand has quit [Ping timeout: 258 seconds]
D9 has quit [Read error: Connection reset by peer]
D9 has joined #ruby
danguita has quit [Quit: Connection closed for inactivity]
stan has quit [Remote host closed the connection]
iNs has quit [Remote host closed the connection]
iNs has joined #ruby
stan has joined #ruby
<Bish>
ytti: im guessing that depends on what something is