havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.5.1, 2.4.4, 2.3.7, 2.6.0-preview2: https://www.ruby-lang.org | Paste 4+ lines of text to https://gist.github.com | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby
Guest84006 has quit [Ping timeout: 240 seconds]
RougeR has quit [Ping timeout: 244 seconds]
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
RougeR has joined #ruby
RougeR has quit [Changing host]
RougeR has joined #ruby
yokel has quit [Remote host closed the connection]
yokel has joined #ruby
Guest84006 has joined #ruby
pharma_joe has joined #ruby
bak1an has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sameerynho has quit [Ping timeout: 240 seconds]
Puffball has quit [Read error: Connection reset by peer]
unreal has quit [Ping timeout: 276 seconds]
Guest84006 has quit [Ping timeout: 264 seconds]
unreal has joined #ruby
Zaab1t has quit [Quit: Zaab1t]
Guest84006 has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
raynold has joined #ruby
cheater has left #ruby [#ruby]
Puffball has joined #ruby
mynameisdebian has joined #ruby
Guest84006 has quit [Ping timeout: 268 seconds]
jcarl43 has quit [Quit: WeeChat 2.1]
cthulchu_ has joined #ruby
jhack_ has joined #ruby
Guest84006 has joined #ruby
tdy has joined #ruby
jhack_ has quit [Client Quit]
jhack_ has joined #ruby
spectra has quit [Ping timeout: 256 seconds]
Guest84006 has quit [Ping timeout: 240 seconds]
mynameisdebian has quit [Remote host closed the connection]
mynameisdebian has joined #ruby
mynameisdebian has quit [Remote host closed the connection]
zachk has quit [Quit: Leaving]
klaas has quit [Quit: ZNC - http://znc.sourceforge.net]
hfp_work has quit [Quit: bye]
spectra has joined #ruby
Guest84006 has joined #ruby
AKPWD has quit [Quit: じゃね。]
cthu| has joined #ruby
klaas has joined #ruby
AKPWD has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
Guest84006 has quit [Ping timeout: 240 seconds]
cthulchu_ has quit [Ping timeout: 240 seconds]
desperek has quit [Quit: xoxo]
cthu| has quit [Ping timeout: 240 seconds]
Puffball has quit [Read error: Connection reset by peer]
Puffball has joined #ruby
AKPWD has quit [Quit: じゃね。]
noobineer has quit [Ping timeout: 244 seconds]
Guest84006 has joined #ruby
augcesar has quit [Quit: Connection closed for inactivity]
AKPWD has joined #ruby
Guest84006 has quit [Ping timeout: 260 seconds]
Guest18491 has quit [Read error: Connection reset by peer]
Puffball has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
Nicmavr is now known as Guest96351
Guest84006 has joined #ruby
Puffball has joined #ruby
salasrod has quit []
Guest84006 has quit [Ping timeout: 240 seconds]
dinfuehr has quit [Ping timeout: 240 seconds]
dinfuehr has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
Guest84006 has joined #ruby
Tempesta has joined #ruby
Fridtjof has quit [Ping timeout: 256 seconds]
alfiemax has joined #ruby
pr0ton has quit [Remote host closed the connection]
Guest84006 has quit [Ping timeout: 240 seconds]
Fridtjof has joined #ruby
DarthGandalf has quit [Ping timeout: 240 seconds]
alex`` has quit [Ping timeout: 240 seconds]
alfiemax has quit [Ping timeout: 240 seconds]
DarthGandalf has joined #ruby
Guest84006 has joined #ruby
white_lilies has joined #ruby
eb0t has quit [Quit: WeeChat 2.0.1]
bmurt has joined #ruby
Guest84006 has quit [Ping timeout: 264 seconds]
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mynameisdebian has joined #ruby
Guest84006 has joined #ruby
arfy has joined #ruby
<arfy> hi all... I'm having a bit of trouble finding an answer for ruby 2.5.1, I want to install ruby using the ruby installer in windows, but noted it doesn't come with any ri documentation for core ruby. is there a way to install this?
jhack has quit [Quit: Leaving]
jhack_ is now known as jhack
Guest84006 has quit [Ping timeout: 244 seconds]
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
Guest84006 has joined #ruby
Guest84006 has quit [Ping timeout: 240 seconds]
<arahael> thats an old ruby, isnt it?
<arfy> arahael: the ruby installer? no, it's 2.5.1
graphene has quit [Remote host closed the connection]
jhack has quit [Quit: jhack]
graphene has joined #ruby
Guest84006 has joined #ruby
akkiguru_ has joined #ruby
subroot has joined #ruby
tvw has quit [Ping timeout: 256 seconds]
<arahael> Ah, indeed. Well, why not grab the docs, then?
jhack has joined #ruby
paradisaeidae has joined #ruby
paradisaeidae_ has joined #ruby
pauliesaint has quit [Ping timeout: 240 seconds]
Guest84006 has quit [Ping timeout: 264 seconds]
pauliesaint has joined #ruby
akkiguru_ has quit [Ping timeout: 260 seconds]
Guest84006 has joined #ruby
gell5 has joined #ruby
Guest84006 has quit [Ping timeout: 264 seconds]
MagePsycho has quit [Ping timeout: 248 seconds]
akkiguru_ has joined #ruby
Guest84006 has joined #ruby
mikeiniowa has quit [Remote host closed the connection]
mikeiniowa has joined #ruby
jhack has quit [Quit: jhack]
dviola has quit [Quit: WeeChat 2.1]
Guest84006 has quit [Ping timeout: 268 seconds]
knight33 has joined #ruby
knight33 has quit [Client Quit]
starseed0000 has quit [Ping timeout: 240 seconds]
bak1an has joined #ruby
akaiiro has quit [Ping timeout: 244 seconds]
MagePsycho has joined #ruby
Guest84006 has joined #ruby
noobineer has joined #ruby
Guest84006 has quit [Ping timeout: 244 seconds]
noobineer has quit [Remote host closed the connection]
Guest84006 has joined #ruby
hfp_work has joined #ruby
Guest84006 has quit [Ping timeout: 264 seconds]
<havenwood> arfy: RubyInstaller ships docs as Windows help files (CHMs).
winkylocc has joined #ruby
eb0t has joined #ruby
<havenwood> Actually, looks like they maybe switch to HTML docs in 2.4+. Unsure.
<arfy> havenwood: not now, it's just plain html :).
<havenwood> arfy: Aye, just saw that. :-)
<arfy> but yes. presumably it's generated from the same sources as ri format.
<havenwood> arfy: You might want to try Ruby on the WSL.
<havenwood> arfy: Then you get ri!
<arfy> yeah. I'll try that.
* arfy has it installed already :)
<havenwood> nice
* arfy doesn't miss cygiwn. :P
<arfy> cygwin
Guest84006 has joined #ruby
shinnya has quit [Ping timeout: 264 seconds]
<arfy> ah. there is my problem. don't use apt...
<arfy> :P
Guest84006 has quit [Ping timeout: 244 seconds]
white_lilies has quit [Ping timeout: 240 seconds]
Guest84006 has joined #ruby
mynameisdebian has quit [Remote host closed the connection]
Mrgoose has joined #ruby
pauliesaint has quit [Quit: pauliesaint]
Guest84006 has quit [Ping timeout: 240 seconds]
white_lilies has joined #ruby
eblip has joined #ruby
Guest84006 has joined #ruby
mynameisdebian has joined #ruby
alfiemax has joined #ruby
Guest84006 has quit [Ping timeout: 244 seconds]
braincrash has quit [Quit: bye bye]
alfiemax has quit [Ping timeout: 240 seconds]
braincrash has joined #ruby
Guest84006 has joined #ruby
knight33 has joined #ruby
Guest84006 has quit [Ping timeout: 240 seconds]
lele has quit [Ping timeout: 256 seconds]
lele has joined #ruby
akaiiro has joined #ruby
Guest84006 has joined #ruby
<arfy> havenwood: thanks! that worked, I can now use ri. :)
bak1an has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest84006 has quit [Ping timeout: 240 seconds]
Guest84006 has joined #ruby
salasrod has joined #ruby
subroot has quit [Read error: Connection reset by peer]
gix- has joined #ruby
gix has quit [Disconnected by services]
paraxial has quit [Read error: Connection reset by peer]
paraxial has joined #ruby
Guest84006 has quit [Ping timeout: 264 seconds]
alex`` has joined #ruby
tty has joined #ruby
Guest84006 has joined #ruby
kryptoz has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest84006 has quit [Ping timeout: 264 seconds]
winkylocc has quit [Ping timeout: 252 seconds]
Guest84006 has joined #ruby
khomesh24 has quit [Quit: EliteBNC 1.6.5 - http://elitebnc.org]
digimer has joined #ruby
<digimer> hi all, I know very little about ruby, but I am trying to repackage an ruby RPM and hitting an error. I was wondering if anyone could help me understand it. - https://paste.fedoraproject.org/paste/U9x5ZhxIJEqLdkIb5BusWQ
<digimer> it's on RHEL 7 (CentOS 7)
Guest84006 has quit [Ping timeout: 240 seconds]
graphene has quit [Remote host closed the connection]
white_lilies has quit [Ping timeout: 244 seconds]
graphene has joined #ruby
cadillac_ has joined #ruby
Guest84006 has joined #ruby
AJA4350 has quit [Quit: AJA4350]
gell5 has quit []
Fridtjof has quit [Ping timeout: 265 seconds]
nowhere_man has quit [Ping timeout: 256 seconds]
Guest84006 has quit [Ping timeout: 260 seconds]
nowhere_man has joined #ruby
Fridtjof has joined #ruby
shinnya has joined #ruby
Guest84006 has joined #ruby
Guest84006 has quit [Ping timeout: 240 seconds]
Joufflu_Fail has joined #ruby
Joufflu_Fail has quit [Read error: Connection reset by peer]
Joufflu_Fail has joined #ruby
Guest84006 has joined #ruby
Guest84006 has quit [Ping timeout: 244 seconds]
khomesh24 has joined #ruby
akkiguru_ has quit [Ping timeout: 264 seconds]
Guest84006 has joined #ruby
Guest84006 has quit [Ping timeout: 264 seconds]
alfiemax has joined #ruby
Guest84006 has joined #ruby
Guest84006 has quit [Ping timeout: 240 seconds]
Guest84006 has joined #ruby
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> digimer: Note on line 80: minitest-4.3.2
Guest84006 has quit [Ping timeout: 240 seconds]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SeepingN has joined #ruby
ur5us has quit [Ping timeout: 265 seconds]
Joufflu_Fail has quit [Ping timeout: 244 seconds]
Guest84006 has joined #ruby
<digimer> havenwood: what does that mean, if I may ask?
<digimer> I'm learning packaging, and know basically nil about ruby. sorry if it's a 101 question
<havenwood> digimer: I just glanced over the logs, but that stood out. Everywhere else it's minitest 5. This one line it's minitest 4.
<digimer> o_O
alfiemax has quit [Remote host closed the connection]
<digimer> odd, I grabbed the src.rpm from epel7, so it must have compiled in the past. odd
<digimer> huh, I see a v4 in the repo
<digimer> ok, this might get me going, thank you
<havenwood> np
Guest84006 has quit [Ping timeout: 260 seconds]
alfiemax has joined #ruby
akaiiro has quit [Remote host closed the connection]
mynameisdebian has quit [Remote host closed the connection]
Guest84006 has joined #ruby
solocshaw has quit [Quit: solocshaw]
<digimer> hmm, it was installed already
sauvin has joined #ruby
Guest84006 has quit [Ping timeout: 260 seconds]
howdoi has joined #ruby
Guest84006 has joined #ruby
troys has quit [Quit: Bye]
mynameisdebian has joined #ruby
Guest84006 has quit [Ping timeout: 240 seconds]
akkiguru_ has joined #ruby
anisha has joined #ruby
mikhael_k33hl has joined #ruby
<mikhael_k33hl> regarding this file? https://gist.github.com/marzdgzmn/9d8173a0db527e54b5d2a9ec899c253c Is this wrapper gem something that wraps the export that will only be usable for ruby? I can't seem to see the exported variables in linux
pharma_joe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
akkiguru_ has quit [Ping timeout: 240 seconds]
pharma_joe has joined #ruby
<havenwood> mikhael_k33hl: When you say you can't see them in Linux, what are you trying?
Guest84006 has joined #ruby
apeiros_ has quit [Remote host closed the connection]
<havenwood> mikhael_k33hl: You can only see env vars in the process they were created or a child process. A parent process can't get env vars from its child.
<havenwood> mikhael_k33hl: If you haven't already, take a look at exactly what the wrapper does: cat /usr/local/rvm/gems/ruby-1.9.3-p547/wrappers/ruby
<mikhael_k33hl> havenwood: like `export -p` to see environment variables
<mikhael_k33hl> havenwood: isn't exporting making the variables an environment variables for linux itself?
<mikhael_k33hl> havenwood: Oh I see now, the variables were exported in the ruby environment
Guest84006 has quit [Ping timeout: 244 seconds]
<havenwood> mikhael_k33hl: Exporting means child processes will inherit the variable. There's no way to have the child assign a variable on the parent.
<havenwood> mikhael_k33hl: Env vars only go downstream.
<mikhael_k33hl> havenwood: I see. I'm still a little bit confused about it though as I've been used to export environment variables in linux just running the export command, hehe
<havenwood> mikhael_k33hl: If you check in the Ruby process, you'll see the env vars are all there. If you exec or fork from the Ruby process you'll still see them.
<havenwood> The grandchildren process can still see them.
<havenwood> And the great grandchildren.
<mikhael_k33hl> the exports were run under the /bin/sh context though
<havenwood> mikhael_k33hl: The context isn't /bin/sh, it's this specific process.
Inline has quit [Quit: Leaving]
<havenwood> mikhael_k33hl: Many sh processes can have totally different env vars.
<havenwood> mikhael_k33hl: Children inherit env vars, but they're not global.
<mikhael_k33hl> Okay, so how do you create a env var for linux?
Guest84006 has joined #ruby
<havenwood> mikhael_k33hl: export FOO=1
havenwood has quit [Excess Flood]
TvL2386 has quit [Ping timeout: 248 seconds]
arfy8820 has joined #ruby
havenwood has joined #ruby
havenwood has joined #ruby
havenwood has quit [Changing host]
<mikhael_k33hl> and you will see it when you run `printenv` right? Though I'm slowly getting it. So the wrapper/ruby has exec ruby "$@" which I've read pertaing to backtraces, is that correct?
banisterfiend has joined #ruby
<mikhael_k33hl> Or is there another use for that that I'm now aware of?
<mikhael_k33hl> Cause what I'm looking for perhaps is how those exports were sent to the ruby environments? cause they are used in a rails application
<havenwood> mikhael_k33hl: well, this `file` shim you've shown sets a few env vars, then execs a child process that's an RVM wrapper that adds a few more env vars and runs Ruby with the arguments to the file
<havenwood> mikhael_k33hl: you took a look at the contents of the wrapper?
Guest84006 has quit [Ping timeout: 244 seconds]
<havenwood> (it's just a few env vars then it runs ruby)
za1b1tsu has joined #ruby
biberu has joined #ruby
<mikhael_k33hl> havenwood: yep, I did it has the lines source "/usr/local/rvm/gems/ruby-1.9.3-p547/environment" ; exec ruby "$@"
paradisaeidae has quit [Quit: ChatZilla 0.9.93 [Firefox 56.0.2/20171024165158]]
paradisaeidae_ has quit [Quit: ChatZilla 0.9.93 [Firefox 56.0.2/20171024165158]]
<mikhael_k33hl> I guess that' what redirecting the exports eh?
<havenwood> mikhael_k33hl: cat /usr/local/rvm/gems/ruby-1.9.3-p547/environment
arfy has quit [Ping timeout: 264 seconds]
<mikhael_k33hl> havenwood: I did, and it should the lines with the exported variables
arfy8820 has left #ruby [#ruby]
aupadhye has joined #ruby
smrtrnx has joined #ruby
<smrtrnx> hello everyone
<havenwood> smrtrnx: hi
<smrtrnx> I am new to ruby. Using git i tried to install bootstrap using gem but it seems that I cannot locate or don't know how to install the gem file that I have downloaded
<smrtrnx> can anyone please guide me on what to do?
<smrtrnx> Hello @havenwood
<havenwood> smrtrnx: You're using the bootstrap gem in a Ruby app?
<havenwood> mikhael_k33hl: Basically the file shim and RVM wrappers do the same thing, set some env vars then pass the args on to Ruby.
<smrtrnx> i tried installing it using git like "gem bootstrap" command
reber has joined #ruby
Guest84006 has joined #ruby
<havenwood> smrtrnx: Are you wanting to use this gem in an app? Does the app have a Gemfile?
<havenwood> smrtrnx: When you say "using git", do you mean you put it in your Gemfile and ran?: bundle
<mikhael_k33hl> havenwood: I see, will look more into it, thanks man
<havenwood> mikhael_k33hl: no prob
TvL2386 has joined #ruby
<havenwood> smrtrnx: Happy to help, but we need context. Just sanity checking that you have an app, it has a Gemfile, you've bundled and are having trouble requiring the gem?
<havenwood> smrtrnx: Rails or Hanami?
<smrtrnx> basically i have succesfully downloaded the bootstrap gem file but i don't really know how to do the bundle install
<smrtrnx> ruby rails i guess havenwood
<smrtrnx> i installed ruby on my machine
<havenwood> smrtrnx: If you don't have a Rails or Hanami app, you shouldn't be using this gem.
<havenwood> smrtrnx: Ruby is the programming language. Rails is a popular web framework library in Ruby.
<havenwood> ?rails
<ruby[bot]> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
rippa has joined #ruby
<havenwood> smrtrnx: I wonder if you really have a Rails app? It seems like you'd know if you did.
Guest84006 has quit [Ping timeout: 260 seconds]
<havenwood> What are you trying to use Bootstrap for?
<smrtrnx> i was supposed to create a wordpress theme using bootstrap sass
<havenwood> smrtrnx: If you just want to install the bootstrap gem, outside an app, for whatever reason: gem install bootstrap
<smrtrnx> should it download the latest version of bootstrap using gem install bootstrap?
<havenwood> smrtrnx: bootstrap-sass is an entirely different gem
<havenwood> smrtrnx: Are you sure you're doing anything relating to Ruby at all?
<smrtrnx> i tried following the instructions here https://github.com/twbs/bootstrap-rubygem
<havenwood> smrtrnx: Wordpress is a PHP library. I don't get where a gem comes into play at all.
<smrtrnx> using this command gem 'bootstrap', '~> 4.1.1' but i am stuck installing using the bundle install
<havenwood> smrtrnx: Do you have a Gemfile?
<havenwood> smrtrnx: What kinda Wordpress app is this that it's Ruby?!?
<havenwood> smrtrnx: This doesn't add up.
<smrtrnx> basically using some sort of this command gem 'bootstrap', '~> 4.1.1' will download the gem file
<smrtrnx> allow me to clarify things up
<havenwood> smrtrnx: What in the world are you doing with that line? Where are you puttin git?
raynold has quit []
<havenwood> If you don't have a Ruby app, you're barking up the wrong tree.
Guest84006 has joined #ruby
<smrtrnx> I was just only trying to download this bootstrap version 4.1.1 on my git cmd
<havenwood> smrtrnx: So there's Bootstrap. Then there are various Bootstrap-related gems. These are the latter.
<smrtrnx> i was just wondering how to extract the gem file that I have downloaded
<havenwood> smrtrnx: Why are you using a gem???
<havenwood> smrtrnx: If you have a Ruby project, you haven't mentioned it. You seem to be using Wordpress and somehow got on a Ruby gem rather than the Bootstrap library you're searching for.
<smrtrnx> hhmmm i don't really have a clue I was trying to figure out how it works to download bootstrap on git cmd
<havenwood> smrtrnx: Since you don't have a Ruby app, or anything Ruby-related here, stay away from Ruby gems.
<smrtrnx> and from https://github.com/twbs/bootstrap-rubygem i just followed the instructions. that says gem 'bootstrap', '~> 4.1.1'
<smrtrnx> so is there any way to download bootstrap using gem?
<havenwood> smrtrnx: So there are bootstrap libraries in dozens of languages, that are specific to facilitating use in that language.
<havenwood> smrtrnx: This is the actual Bootstrap library: https://github.com/twbs/bootstrap
quobo has quit [Quit: Connection closed for inactivity]
<havenwood> smrtrnx: A Rails gem isn't relevant to what you're doing any more than a Rust Cargo package or whatever else. If it says gem, it's not what you're looking for. Stop messing with Ruby gems.
Guest84006 has quit [Ping timeout: 240 seconds]
<havenwood> smrtrnx: Though do come back and learn Ruby!
<havenwood> We'd be happy to show you how to use gems or create your own.
akkiguru_ has joined #ruby
<smrtrnx> thanks havenwood. I guess I am starting to learn ruby by now
<smrtrnx> but i couldn't extract gem files
<smrtrnx> should it be extracted anyway?
<havenwood> smrtrnx: Are you trolling?
<havenwood> smrtrnx: Wordpress doesn't use gems. Gems are Ruby packages. Wordpress is not Ruby. Gems have nothing at all to do with what you're doing. Nothing.
<havenwood> smrtrnx: These gems are packaging bootstrap specifically for Ruby apps. You don't have a Ruby app so they're not what you're looking for.
Guest84006 has joined #ruby
smrtrnx has quit [Remote host closed the connection]
<havenwood> smrtrnx: Try that ^ repo above. It seems you're trying to find a nice Wordpress theme with Bootstrap support. I don't know how you got on Ruby gems, but abort. This is not what you're looking for.
<havenwood> ¯\_(ツ)_/¯
Guest84006 has quit [Ping timeout: 268 seconds]
schleppel has joined #ruby
Guest84006 has joined #ruby
Guest84006 has quit [Ping timeout: 240 seconds]
banisterfiend has quit [Ping timeout: 244 seconds]
kryptoz has quit [Remote host closed the connection]
pharma_joe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kryptoz has joined #ruby
pharma_joe has joined #ruby
Guest84006 has joined #ruby
eb0t has quit [Quit: WeeChat 2.0.1]
dellavg has joined #ruby
eblip has quit [Quit: WeeChat 2.0.1]
kryptoz has quit [Remote host closed the connection]
konsolebox has quit [Ping timeout: 240 seconds]
Guest84006 has quit [Ping timeout: 256 seconds]
kryptoz has joined #ruby
konsolebox has joined #ruby
pharma_joe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Eiam has quit [Ping timeout: 276 seconds]
Guest84006 has joined #ruby
aufi has joined #ruby
nowhere_man has quit [Ping timeout: 256 seconds]
kryptoz has quit [Remote host closed the connection]
nowhere_man has joined #ruby
Guest84006 has quit [Ping timeout: 265 seconds]
kryptoz has joined #ruby
Guest84006 has joined #ruby
Guest84006 has quit [Ping timeout: 260 seconds]
amar has joined #ruby
Guest84006 has joined #ruby
yohji has joined #ruby
amar has quit [Ping timeout: 240 seconds]
conta has joined #ruby
agent_white has quit [Quit: leaving]
Guest84006 has quit [Ping timeout: 260 seconds]
amar has joined #ruby
dionysus69 has joined #ruby
TomyWork has joined #ruby
alem0lars has joined #ruby
clemens3 has joined #ruby
mynameisdebian has quit [Remote host closed the connection]
beefjoe has joined #ruby
Guest84006 has joined #ruby
akkiguru_ has quit [Ping timeout: 244 seconds]
akkiguru_ has joined #ruby
smrtrnx has joined #ruby
<smrtrnx> sorry @havenwood
<smrtrnx> i was disconnected
<havenwood> smrtrnx: no prob
Guest84006 has quit [Ping timeout: 260 seconds]
<havenwood> smrtrnx: Try the noahbass/sass-wordpress-bootstrap repo I linked above. It seems you're trying to find a nice Wordpress theme with Bootstrap support (not a Ruby gem).
<smrtrnx> I am not trolling anyway just trying to look for some help with regards to my query
<smrtrnx> thanks for this i'll check it out
Guest84006 has joined #ruby
Guest84006 has quit [Ping timeout: 240 seconds]
teclator has quit [Read error: Connection reset by peer]
shinnya has quit [Ping timeout: 244 seconds]
teclator has joined #ruby
quobo has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
Guest84006 has joined #ruby
gregf_ has quit [Ping timeout: 252 seconds]
salasrod has quit [Ping timeout: 244 seconds]
Guest84006 has quit [Ping timeout: 244 seconds]
mikecmpbll has joined #ruby
mikecmpbll has quit [Client Quit]
Burgestrand has joined #ruby
mynameisdebian has joined #ruby
jmcgnh has quit [Read error: Connection reset by peer]
Guest84006 has joined #ruby
andikr has joined #ruby
Beams has joined #ruby
jmcgnh has joined #ruby
chkhanch has joined #ruby
mynameisdebian has quit [Ping timeout: 276 seconds]
mikecmpbll has joined #ruby
Guest84006 has quit [Ping timeout: 265 seconds]
reber has quit [Remote host closed the connection]
baweaver is now known as baweaver_away
Beams has quit [Quit: .]
Guest84006 has joined #ruby
amar_ has joined #ruby
tildes has joined #ruby
amar has quit [Ping timeout: 268 seconds]
Guest84006 has quit [Ping timeout: 264 seconds]
VladGh_ has joined #ruby
VladGh has quit [Ping timeout: 268 seconds]
Beams has joined #ruby
Guest84006 has joined #ruby
smrtrnx has quit [Remote host closed the connection]
Guest84006 has quit [Ping timeout: 240 seconds]
mtkd has joined #ruby
arne has joined #ruby
<arne> HELLO
arne is now known as Bish
Guest84006 has joined #ruby
ams__ has joined #ruby
guille-moe has joined #ruby
akkiguru_ has quit [Ping timeout: 240 seconds]
ak_ has joined #ruby
Beams has quit [Quit: .]
Technato1 has joined #ruby
Beams has joined #ruby
khan_ has joined #ruby
chkhanch has quit [Ping timeout: 244 seconds]
akkiguru_ has joined #ruby
Tempesta has quit [Remote host closed the connection]
foxxx0_ has quit [Quit: foxxx0_]
mynameisdebian has joined #ruby
eb0t has joined #ruby
mynameisdebian has quit [Ping timeout: 265 seconds]
<Bish> https://lwn.net/Articles/650333/ woudln't you love ruby removing GIL with this?
<Bish> im guessing that's not doable, without breaking ruby
wojnar has joined #ruby
beefjoe has quit [Remote host closed the connection]
clemens3 has quit [Remote host closed the connection]
Technato1 has quit [Quit: leaving]
dhollin3 has joined #ruby
dhollinger has quit [Ping timeout: 244 seconds]
khan_ has quit [Ping timeout: 264 seconds]
InfinityFye has joined #ruby
wojnar has quit [Remote host closed the connection]
pen has quit []
mynameisdebian has joined #ruby
venmx has joined #ruby
ur5us has joined #ruby
tvw has joined #ruby
mikhael_k33hl has quit [Quit: Page closed]
mynameisdebian has quit [Ping timeout: 276 seconds]
Beams has quit [Quit: .]
teclator has quit [Remote host closed the connection]
^mtkd has joined #ruby
mtkd has quit [Ping timeout: 240 seconds]
tildes has quit [Remote host closed the connection]
Beams has joined #ruby
samosaphile has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
GodFather has quit [Ping timeout: 260 seconds]
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
pwnd_nsfw` has joined #ruby
UncleCid__ has quit [Ping timeout: 264 seconds]
Beams has quit [Quit: .]
<ohcibi> when `bundle install --path foo` in a new directory with just a Gemfile in it, bundler will persist the path setting in .bundle/config in that directory. I was doing the same thing in a ruby:2.5 docker container (i.e. executing `bundle install --path foo` inside the container with just the Gemfile and Gemfile.lock in it) but the config is missing... i'm running as root inside the container but the config is not persisted. also /root/.bundle contains only the
<ohcibi> cache.. why is the config not persisted?
<ohcibi> the readme even tells that --path is not persisted and one must do so by using bundle config but why is the config persisted on my local machine thern?
apeiros_ has joined #ruby
amar_ has quit [Remote host closed the connection]
amar_ has joined #ruby
amar_ has quit [Read error: Connection reset by peer]
samosaphile has quit [Ping timeout: 252 seconds]
Beams has joined #ruby
mynameisdebian has joined #ruby
mynameisdebian has quit [Ping timeout: 276 seconds]
samosaphile has joined #ruby
InfinityFye has left #ruby ["Leaving"]
\void has quit [Quit: So long, and thanks for all the fish.]
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
Guest41435 is now known as olspookishmagus
manakanapa has quit [Quit: The Lounge - https://thelounge.chat]
samosaphile has quit [Ping timeout: 252 seconds]
psychicist__ has joined #ruby
Beams has quit [Quit: .]
Dbugger has joined #ruby
Beams has joined #ruby
kryptoz has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
amar_ has joined #ruby
khan_ has joined #ruby
ur5us has quit [Ping timeout: 268 seconds]
Beams has quit [Quit: .]
amar__ has joined #ruby
Beams has joined #ruby
amar_ has quit [Ping timeout: 268 seconds]
Some-body_ has joined #ruby
DarthGandalf has quit [Ping timeout: 264 seconds]
Some-body_ is now known as DarthGandalf
akkiguru_ has quit [Ping timeout: 268 seconds]
aufi_ has joined #ruby
aufi has quit [Ping timeout: 240 seconds]
mynameisdebian has joined #ruby
mynameisdebian has quit [Ping timeout: 276 seconds]
ltp has quit [Quit: leaving]
ltp has joined #ruby
khan_ has quit [Ping timeout: 240 seconds]
alex`` has quit [Ping timeout: 240 seconds]
mzo has joined #ruby
banisterfiend has joined #ruby
clemens3 has joined #ruby
maufart__ has joined #ruby
amelliaa has joined #ruby
aufi_ has quit [Ping timeout: 264 seconds]
mynameisdebian has joined #ruby
samosaphile has joined #ruby
khan_ has joined #ruby
teclator_ has joined #ruby
aufi_ has joined #ruby
jottr has joined #ruby
teclator_ is now known as teclator
maufart__ has quit [Ping timeout: 240 seconds]
mynameisdebian has quit [Ping timeout: 276 seconds]
amelliaa has quit [Quit: -]
noobineer has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
shinnya has joined #ruby
donofrio has joined #ruby
jrafanie has joined #ruby
Beams has quit [Quit: .]
alex`` has joined #ruby
bkxd has joined #ruby
Beams has joined #ruby
guille-moe has quit [Ping timeout: 260 seconds]
nowhere_man has quit [Ping timeout: 256 seconds]
bkxd has quit [Ping timeout: 240 seconds]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
noobineer has quit [Ping timeout: 276 seconds]
ldnunes has joined #ruby
Beams has quit [Quit: .]
maufart__ has joined #ruby
apparition has joined #ruby
aufi_ has quit [Ping timeout: 264 seconds]
Beams has joined #ruby
venmx has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
dbugger_ has joined #ruby
alem0lars has quit [Ping timeout: 240 seconds]
Dbugger has quit [Ping timeout: 265 seconds]
jottr has quit [Ping timeout: 240 seconds]
augcesar has joined #ruby
herbmillerjr has joined #ruby
griffindy has joined #ruby
venmx has joined #ruby
megamos has joined #ruby
ferr has joined #ruby
desperek has joined #ruby
mynameisdebian has joined #ruby
samosaphile has quit [Ping timeout: 252 seconds]
mynameisdebian has quit [Ping timeout: 276 seconds]
jraavis has joined #ruby
ferr has quit [Quit: WeeChat 2.1]
rwb has quit [Ping timeout: 244 seconds]
megamos has quit [Ping timeout: 240 seconds]
ferr has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
megamos has joined #ruby
banisterfiend has joined #ruby
ak_ has quit [Ping timeout: 240 seconds]
Asher has quit [Ping timeout: 240 seconds]
AJA4350 has joined #ruby
ldnunes has quit [Quit: Leaving]
amar_ has joined #ruby
amar__ has quit [Ping timeout: 244 seconds]
khan_ has quit [Remote host closed the connection]
Beams has quit [Quit: .]
Beams has joined #ruby
mtkd has joined #ruby
GodFather has joined #ruby
^mtkd has quit [Ping timeout: 240 seconds]
shinnya has quit [Ping timeout: 240 seconds]
synthroid has joined #ruby
chkhanch has joined #ruby
megamosaren has joined #ruby
megamos has quit [Quit: Leaving]
ldnunes has joined #ruby
ldnunes has quit [Remote host closed the connection]
ldnunes has joined #ruby
suukim has joined #ruby
bak1an has joined #ruby
motstgo has joined #ruby
Asher has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
motstgo_ has quit [Ping timeout: 256 seconds]
ak_ has joined #ruby
rwb has joined #ruby
Asher has quit [Ping timeout: 244 seconds]
kent\n has quit [Ping timeout: 260 seconds]
herbmillerjr has quit [Quit: Konversation terminated!]
<tbuehlmann> I'm dealing with a CSV file I want to read and the first line is "sep=;\n", which doesn't really play nice with headers: true. is there something in ruby's CSV library to use that first line for col_sep and kind of ignoring it for headers?
ak_ has quit [Ping timeout: 240 seconds]
ak_ has joined #ruby
<Bish> haha, you poor fool, trying to parse csv!
<Bish> tbuehlmann: give liberal_parsing:true a shot?
za1b1tsu has quit [Ping timeout: 244 seconds]
<Bish> i forgot what exactly it does
mynameisdebian has joined #ruby
<Bish> oh wait what, your first line dfines the col seperator? no you will enver get CSV to do that
<Bish> why not do it yourself?
<tbuehlmann> I'm on it :\
<tbuehlmann> seems this is something coming from excel
clemens3 has quit [Remote host closed the connection]
<Bish> col_sep,parsed = [file_data.lines[1][/sep=(.*)/,1],CSV.new(file_data.lines[1..-1],col_sep:col_sep)]
<Bish> something like that?
<Bish> never seen excel doing that
<tbuehlmann> me neither. but yea, something like that
clemens3 has joined #ruby
mikecmpb_ has joined #ruby
mynameisdebian has quit [Ping timeout: 276 seconds]
mikecmpbll has quit [Ping timeout: 268 seconds]
guille-moe has joined #ruby
ferr has quit [Quit: WeeChat 2.1]
chkhanch has quit [Ping timeout: 256 seconds]
<tbuehlmann> thanks so far, gonna do something like this
GodFather has quit [Ping timeout: 240 seconds]
lapinferoce has joined #ruby
cadillac_ has quit [Ping timeout: 268 seconds]
venmx has quit [Ping timeout: 240 seconds]
venmx has joined #ruby
GodFather has joined #ruby
dionysus69 has quit [Quit: dionysus69]
TinkerT has quit [Quit: ZNC 1.8.x-nightly-20180616-bdbcaca0 - https://znc.in]
Beams has quit [Quit: .]
TinkerT has joined #ruby
Beams has joined #ruby
ak_ has quit [Ping timeout: 240 seconds]
clemens3 has quit [Remote host closed the connection]
cyberg has quit [Ping timeout: 240 seconds]
cyberg has joined #ruby
ak_ has joined #ruby
nelson has joined #ruby
clemens3 has joined #ruby
nelson has quit [Client Quit]
ferr has joined #ruby
Beams has quit [Quit: .]
Beams has joined #ruby
knight33 has joined #ruby
graphene has quit [Read error: Connection reset by peer]
graphene has joined #ruby
soniya29 has joined #ruby
soniya29_ has joined #ruby
mzo has quit [Ping timeout: 240 seconds]
alfiemax has quit [Remote host closed the connection]
Asher has joined #ruby
dhollin3 is now known as dhollinger
kryptoz has joined #ruby
Burgestrand has quit [Quit: Closing time!]
Beams has quit [Quit: .]
alfiemax has joined #ruby
lele has quit [Ping timeout: 256 seconds]
GodFather has quit [Ping timeout: 240 seconds]
mynameisdebian has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
Zaab1t has joined #ruby
lele has joined #ruby
GodFather has joined #ruby
suukim has quit [Quit: Konversation terminated!]
mynameisdebian has quit [Ping timeout: 265 seconds]
Rapture has joined #ruby
graphene has quit [Read error: Connection reset by peer]
jrafanie has joined #ruby
gigetoo has joined #ruby
kryptoz has quit [Remote host closed the connection]
Inline has joined #ruby
nowhere_man has joined #ruby
apeiros_ has quit [Remote host closed the connection]
conta has quit [Quit: conta]
dionysus69 has joined #ruby
aupadhye has quit [Remote host closed the connection]
maufart__ has quit [Ping timeout: 260 seconds]
Mia has quit [Read error: Connection reset by peer]
jraavis has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
nowhere_man has quit [Ping timeout: 240 seconds]
paraxial has quit [Quit: The Lounge - https://thelounge.github.io]
graphene has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
synthroid has quit [Remote host closed the connection]
tty has quit [Quit: tty]
paraxial has joined #ruby
apeiros_ has joined #ruby
graphene has quit [Ping timeout: 244 seconds]
apeiros_ has quit [Remote host closed the connection]
n13z has quit [Remote host closed the connection]
ak_ has quit [Ping timeout: 260 seconds]
TomyWork has quit [Remote host closed the connection]
Mike11 has joined #ruby
kryptoz has joined #ruby
alfiemax has quit [Remote host closed the connection]
n13z has joined #ruby
synthroid has joined #ruby
Zaab1t has quit [Quit: Zaab1t]
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
megamos has joined #ruby
graphene has joined #ruby
apeiros_ has joined #ruby
tdy has quit [Ping timeout: 240 seconds]
ak_ has joined #ruby
samosaphile has joined #ruby
mynameisdebian has joined #ruby
alfiemax has joined #ruby
GodFather has quit [Ping timeout: 265 seconds]
Asher has quit [Ping timeout: 256 seconds]
lapinferoce has quit [Remote host closed the connection]
tdy has joined #ruby
kryptoz has quit [Remote host closed the connection]
mynameisdebian has quit [Ping timeout: 276 seconds]
kryptoz has joined #ruby
graphene has quit [Read error: Connection reset by peer]
megamos has quit [Ping timeout: 240 seconds]
Inline has quit [Quit: Leaving]
graphene has joined #ruby
kryptoz has quit [Remote host closed the connection]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
graphene has quit [Read error: Connection reset by peer]
kryptoz has joined #ruby
banisterfiend has joined #ruby
Inline has joined #ruby
troys has joined #ruby
salasrod has joined #ruby
ak_ has quit [Ping timeout: 240 seconds]
graphene has joined #ruby
ak has joined #ruby
graphene has quit [Read error: Connection reset by peer]
jraavis has joined #ruby
graphene has joined #ruby
ellcs1 has quit [Remote host closed the connection]
griffindy has quit [Quit: Textual IRC Client: www.textualapp.com]
Asher has joined #ruby
^mtkd has joined #ruby
mtkd has quit [Ping timeout: 260 seconds]
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
kryptoz has quit [Remote host closed the connection]
jraavis has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
soniya29_ has quit [Ping timeout: 276 seconds]
soniya29 has quit [Ping timeout: 276 seconds]
jraavis has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kryptoz has joined #ruby
banisterfiend has joined #ruby
Tempesta has joined #ruby
amar__ has joined #ruby
jraavis has quit [Quit: Textual IRC Client: www.textualapp.com]
desperek has quit [Quit: xoxo]
amar_ has quit [Ping timeout: 268 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ineb has joined #ruby
aceruser has joined #ruby
<ineb> wasnt there a quick way to create a subclass which was basically just a parameterized version of the superclass?
graphene has quit [Remote host closed the connection]
aceruser has quit [Client Quit]
<ineb> class Foo < Bar.new('baz'); end
graphene has joined #ruby
<ineb> nah, more like Foo = Baz.new('baz')
amar_ has joined #ruby
<apeiros_> `class Foo < expr` allows anything as expr which returns a class.
bmurt has joined #ruby
<apeiros_> but since SomeClass.new usually does not return a class, the way it works differs a bit from what you imagine/remember
<ineb> right
apeiros_ is now known as apeiros
<apeiros> and the way it was done by _why which served as a template to many was: `class Foo < Bar(a,b,c…)`
<apeiros> Bar naturally being a method, Kernel#Bar
<ineb> ah yes, i guess that was what i had in mind
<ineb> i dont like it though :)
yokel has quit [Ping timeout: 244 seconds]
<apeiros> *shrug* you asked about it. do as you please :)
mynameisdebian has joined #ruby
<ineb> how is Struct doing it? MyStruct = Struct.new(:foo) { def whatever; end }; MyStruct.new("baz") ?
<apeiros> Struct.new returns a class.
cagomez has joined #ruby
<apeiros> Struct is one of those nice classes which fail to uphold SomeClass.new.is_a?(SomeClass) :)
amar__ has quit [Ping timeout: 256 seconds]
yokel has joined #ruby
maufart__ has joined #ruby
<ineb> heh
dionysus69 has quit [Ping timeout: 260 seconds]
tdy has quit [Ping timeout: 260 seconds]
ak has quit [Ping timeout: 240 seconds]
ivanskie has joined #ruby
khomesh24 has quit [Quit: ZNC 1.6.5-elitebnc:6 - http://elitebnc.org]
mtkd has joined #ruby
apparition has quit [Quit: Bye]
<ineb> apeiros: how would Kernel#Bar(a,b,c…) look like? tmp = Class.new(Object) {}; const_set("MyClass", tmp)?
<ineb> MyModule.const_set i guess?
<apeiros> you shouldn't const_set
^mtkd has quit [Ping timeout: 268 seconds]
<apeiros> but the other part looks about right, yes. Class.new is the way. and then you do whatever to parametrize the created class.
jraavis has joined #ruby
<ineb> cool
za1b1tsu has joined #ruby
vermaneerajin[m] has joined #ruby
<ineb> apeiros: can you link me this pattern somewhere? who is _why btw? ^^
ianmalcolm has quit [Ping timeout: 240 seconds]
<apeiros> _why was quite famous a while back. sadly quit the community. camping.rb was his project where you can see this pattern.
khomesh24 has joined #ruby
ghoti has quit [Ping timeout: 244 seconds]
<ineb> i see. thank you
tdy has joined #ruby
dviola has joined #ruby
TvL2386 has quit [Ping timeout: 256 seconds]
mgraf has joined #ruby
ghoti has joined #ruby
megamosaren has quit [Ping timeout: 264 seconds]
amar__ has joined #ruby
kryptoz has quit [Remote host closed the connection]
howdoi has joined #ruby
amar_ has quit [Ping timeout: 240 seconds]
banisterfiend has joined #ruby
chkhanch has joined #ruby
kryptoz has joined #ruby
amar_ has joined #ruby
andikr has quit [Remote host closed the connection]
jcarl43 has joined #ruby
alfiemax has quit [Remote host closed the connection]
mikecmpb_ has quit [Quit: inabit. zz.]
DTZUZO has joined #ruby
za1b1tsu has quit [Quit: WeeChat 2.1]
clemens3 has quit [Ping timeout: 240 seconds]
mgraf has quit [Ping timeout: 244 seconds]
amar__ has quit [Ping timeout: 244 seconds]
yohji has quit [Remote host closed the connection]
sticaz has quit [Ping timeout: 260 seconds]
kryptoz has quit [Remote host closed the connection]
TvL2386 has joined #ruby
noobineer has joined #ruby
codymj has joined #ruby
eb0t has quit [Quit: WeeChat 2.0.1]
<ineb> apeiros: interesting story around _why. looks like he disappeared and deleted all his repo one day. i always wonder why people do this.
mgraf has joined #ruby
sticaz has joined #ruby
<ineb> i understand it when hackers remove their stuff once they receive a friendly legal note adressed at their real names ;)
<ineb> but OSS contributors? well. we will never know i guess
<ineb> maybe due to a nuisance of imperfection and the wish to start with a clean slate
<ineb> new game+ or something like that
<WA9ACE> Just speculating but, they could have died. Not everyone is Jim. My wife and a friend have dead man switch access to my password manager to start shutting off accounts in my case
mgraf has quit [Ping timeout: 264 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jraavis has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
eb0t has joined #ruby
jraavis has joined #ruby
amar_ has quit [Remote host closed the connection]
<ineb> oh, yes ofc. not everyone is just text in the internet.
sticaz has quit [Ping timeout: 240 seconds]
jraavis has quit [Client Quit]
chouhoulis has quit [Remote host closed the connection]
anisha has quit [Quit: This computer has gone to sleep]
<apeiros> WA9ACE: as far as I know _why is not dead. somebody close to him in RL said as much. but it's still only hearsay.
RougeR has quit [Ping timeout: 240 seconds]
<raggi> Ah camping
graphene has quit [Remote host closed the connection]
<raggi> It's been a long long time now
* raggi reminiscing about redhanded
<apeiros> oy, raggi
<apeiros> what're you up to?
graphene has joined #ruby
mgraf has joined #ruby
<raggi> I haven't read code from a flashing gif in too many years
<raggi> I'm working on Fuchsia
eckhardt_ has joined #ruby
maufart__ has quit [Remote host closed the connection]
<apeiros> I only know the color
<apeiros> google fuchsia, OS?
<raggi> Yeah
<apeiros> you get paid to work on that? bastard! 😂
* apeiros is envious
knight33 has joined #ruby
jaequery has joined #ruby
<raggi> It's fun, also a lot of work :-)
hinbody has joined #ruby
<raggi> I built mruby for it, and it works
hinbody has left #ruby [#ruby]
GodFather has joined #ruby
<apeiros> 👍🏻
<raggi> Not using it for anything atm, but was considering using it for some repl stuff for introspection / exploration tools
<raggi> What are you up to these days?
<apeiros> not much. trying to clean up remaining tasks until jan '19
<apeiros> feb-april I took 3 months of unpaid vacation to follow through on some projects of mine
<raggi> Nice
<apeiros> yeah, though I still think I should have been more greedy and asked for 6 months :-/
Azure has quit [Ping timeout: 240 seconds]
ak has joined #ruby
jraavis has joined #ruby
jottr has joined #ruby
jraavis has quit [Client Quit]
<raggi> Yeah I hear that
jraavis has joined #ruby
<raggi> Working on an OS basically doubled my to-do list instantly, but I at least can get a bunch done by teams now
<apeiros> while I'm not sure I'll have enough time for it, I want to also learn some rust during that time. aim is to write a smallish database server from scratch.
<raggi> Rust is pretty interesting, but also hard work in some areas
<mgraf> eh, never write your own db
GodFather has quit [Ping timeout: 260 seconds]
<apeiros> mgraf: it'd be my second actually :)
<raggi> mgraf: why?
<apeiros> first one was in perl for the first website I built around '99
<mgraf> neat
chouhoulis has joined #ruby
<raggi> mgraf: did you read that article?
jottr has quit [Ping timeout: 240 seconds]
Rapture has quit [Ping timeout: 240 seconds]
<raggi> It's a story about how and why they did, and how it is fine
<mgraf> it describes the OneNote _team_ deciding to build a solution
<mgraf> maybe I'm under estimating your resources; but it seems silly to write a database and implement it in something that people are going to use
<apeiros> IMO if you're serious about understanding something, you have to implement it yourself.
<apeiros> it doesn't mean that you have to use your self built thing
noobineer has quit [Ping timeout: 264 seconds]
<mgraf> I agree, as an exercise. I wouldn't implement my own database in an OS though
<apeiros> implement as in use? not sure I understand that last sentence :)
<mgraf> Sorry, english is my third language
GodFather has joined #ruby
<apeiros> depending on how you count, it's my 4th :D
nowhere_man has joined #ruby
jraavis has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<apeiros> (though I'm far better in it than in my 3rd)
Mike11 has quit [Ping timeout: 260 seconds]
<mgraf> I wouldn't feel comfortable having users (consumers?) use / rely on a database I wrote by myself
<mgraf> Мы говорим то же самое?
<apeiros> given that I feel comfortable to have users/customers use other software I wrote myself, why'd that be different with a DB?
<apeiros> (it's not what I intend to do with this, though - it's intended to be a learning project)
<mistergibson> I wrote a db system - it wasn't so bad
jraavis has joined #ruby
<mgraf> Show me your unit testing :)
za1b1tsu has joined #ruby
<raggi> I once accidentally wrote a DB for a trading platform, in ruby no less
jraavis has quit [Client Quit]
<raggi> Accidentally because I wrote the ruby version as an experiment to get a rough minimum baseline for latency and write throughput while we were evaluating other storage solutions
<raggi> And for various reasons it was about an order of magnitude faster at the primary taks
<raggi> So, fast forward a few months and it had a journal and read repair and a few other such bits
<apeiros> nice
mgraf has quit [Ping timeout: 240 seconds]
armyriad has quit [Quit: Leaving]
nfk has joined #ruby
alem0lars has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alem0lars has left #ruby ["Leaving"]
chkhanch has quit [Quit: Leaving]
alem0lars has joined #ruby
chkhanch has joined #ruby
sameerynho has joined #ruby
jaequery has joined #ruby
mtkd has quit []
sticaz has joined #ruby
Puffball has quit [Quit: Puffball]
mtkd has joined #ruby
kryptoz has joined #ruby
mynameisdebian has quit [Remote host closed the connection]
kryptoz has quit [Remote host closed the connection]
banisterfiend has joined #ruby
banisterfiend has quit [Client Quit]
mynameisdebian has joined #ruby
sphenxes has joined #ruby
sphenxes has quit [Max SendQ exceeded]
sphenxes has joined #ruby
Mike11 has joined #ruby
alem0lars has quit [Ping timeout: 256 seconds]
<raggi> I'm so glad this is still on the interwebs
kapil___ has joined #ruby
mgraf has joined #ruby
alem0lars has joined #ruby
mgraf has quit [Ping timeout: 248 seconds]
banisterfiend has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has joined #ruby
desperek has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
venmx has quit [Ping timeout: 240 seconds]
eckhardt_ has quit [Quit: Textual IRC Client: www.textualapp.com]
bmurt has joined #ruby
fmcgeough has joined #ruby
amar has joined #ruby
mzo has joined #ruby
Mike11 has quit [Quit: Leaving.]
mtkd has quit [Ping timeout: 260 seconds]
jasmith has quit [Ping timeout: 248 seconds]
conta has joined #ruby
baweaver_away is now known as baweaver
r29v has joined #ruby
mtkd has joined #ruby
nowhere_man has quit [Ping timeout: 256 seconds]
mgraf has joined #ruby
jamesaxl has joined #ruby
anjen has joined #ruby
anjen has quit [Read error: Connection reset by peer]
guille-moe has quit [Ping timeout: 248 seconds]
tvw has quit [Remote host closed the connection]
quobo has joined #ruby
guille-moe has joined #ruby
alem0lars has quit [Ping timeout: 268 seconds]
sauvin has quit [Read error: Connection reset by peer]
mgraf has quit [Ping timeout: 240 seconds]
bmurt has quit [Ping timeout: 240 seconds]
mgraf has joined #ruby
Sina has quit [Quit: Connection closed for inactivity]
reber has joined #ruby
mgraf has left #ruby [#ruby]
megamosaren has joined #ruby
akaiiro has joined #ruby
chouhoulis has quit [Remote host closed the connection]
<Zarthus> man, a recruiter just hit me up for a rails position at SUSE, sounded kinda interesting, but nuremberg is like the middle of nowhere.
masterasia has joined #ruby
mtkd has quit []
<Zarthus> I say this while currently living in the middle of nowhere, I suppose.
<masterasia> How do I create a hash from a hash?
<Zarthus> masterasia: like {thing2: otherhash[:thing]} ?
<masterasia> Zarthus, like a hash digest?
<masterasia> I want a string representation of the hash
<masterasia> I am not sure if I'm using the right term
<masterasia> (so I can compare hash equality)
<Zarthus> no, that's the right term, it's just got multiple definitions :P
<Zarthus> i just don't know if your question in itself makes sense
konsolebox has quit [Ping timeout: 264 seconds]
<masterasia> hmm
<masterasia> I am storing the json from an API in my db
<masterasia> to check if anything has changed, I want to compare the json strings
<Zarthus> i see
<masterasia> I figure I'd hash both json strings
<masterasia> and compare
amar has quit [Remote host closed the connection]
<masterasia> actually rails JSON column type might actually return the json as a hash
<masterasia> same with the http library
<Zarthus> even just comparing the string would work
<masterasia> I'd need to make sure if the json column keeps whitespace though
<masterasia> a string-to-string comparison seems almost naive
<Zarthus> it wouldn't surprise me if comparing two large strings is faster than sha2ing both
<masterasia> but I guess that space would change the hash digest anyways
<Zarthus> yup
<Zarthus> hashes are intentionally rather slow
<Zarthus> especially cryptographic ones
catbusters has joined #ruby
zachk has joined #ruby
<masterasia> ah fair enough
konsolebox has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
<Zarthus> checksum ones are fine, but it doesn't make much sense to do that here
<catbusters> Hey all!
zachk has quit [Changing host]
zachk has joined #ruby
<catbusters> What's the best datetime library for Ruby? I'm looking for something like moment.js or arrow (python)
<Zarthus> catbusters: I've managed just fine with the normal time/date libraries, what functionality do you need?
<catbusters> Adding an subtracting hours
<Zarthus> Time supports Time#-
<masterasia> Zarthus, why wouldn't a checksum be okay here? for learning purposes
<Zarthus> masterasia: unless you store it in the db rather, checksumming both values is equal to a normal string comparison
Puffball has joined #ruby
rawste has joined #ruby
mzo has quit [Ping timeout: 244 seconds]
rubytester has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
spencer has joined #ruby
__goodnight__ has joined #ruby
spencer has left #ruby [#ruby]
wald0 has joined #ruby
jaequery has joined #ruby
__goodnight__ has quit [Client Quit]
jottr has joined #ruby
ak has quit [Ping timeout: 268 seconds]
conta has quit [Quit: conta]
rubytester has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
guille-moe has quit [Ping timeout: 264 seconds]
jottr has quit [Ping timeout: 244 seconds]
beowuff has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
beowuff has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
megamosaren has quit [Remote host closed the connection]
willthechill has quit [Ping timeout: 265 seconds]
claudiuinberlin has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
nowhere_man has joined #ruby
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has joined #ruby
nowhere_man has quit [Ping timeout: 240 seconds]
jottr has quit [Ping timeout: 244 seconds]
_whitelogger has joined #ruby
fluxAeon has joined #ruby
ciscam has quit [Ping timeout: 260 seconds]
ciscam has joined #ruby
Mike11 has joined #ruby
Ouchy has joined #ruby
Ouchy has joined #ruby
Ouchy has quit [Changing host]
\void has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
SeepingN has joined #ruby
jaequery has joined #ruby
dbugger_ has quit [Ping timeout: 240 seconds]
mynameisdebian has quit [Remote host closed the connection]
dviola has quit [Quit: WeeChat 2.1]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mynameisdebian has joined #ruby
jaequery has joined #ruby
rwb has quit [Ping timeout: 240 seconds]
klaas has quit [Quit: ZNC - http://znc.sourceforge.net]
klaas has joined #ruby
mtkd has joined #ruby
TvL2386_ has joined #ruby
TvL2386 has quit [Ping timeout: 240 seconds]
banisterfiend has joined #ruby
ellcs has joined #ruby
banisterfiend has quit [Client Quit]
alex`` has quit [Ping timeout: 256 seconds]
mtkd has quit []
alex`` has joined #ruby
TvL2386 has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
TvL2386_ has quit [Ping timeout: 260 seconds]
mtkd has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
willthechill has joined #ruby
banisterfiend has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kapil___ has quit [Quit: Connection closed for inactivity]
biberu has quit []
blackwind_123 has joined #ruby
chkhanch has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Ping timeout: 260 seconds]
catbusters has quit [Quit: Connection closed for inactivity]
regedit has joined #ruby
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rapture has joined #ruby
synthroid has quit []
rawste has quit [Quit: Quit...]
mtkd has quit [Read error: Connection reset by peer]
starseed0000 has joined #ruby
jaequery has joined #ruby
mtkd has joined #ruby
jcarl43 has quit [Quit: WeeChat 2.1]
Ouchy has quit [Ping timeout: 244 seconds]
alex`` has quit [Ping timeout: 264 seconds]
alex`` has joined #ruby
rwb has joined #ruby
dionysus69 has joined #ruby
ldnunes has quit [Quit: Leaving]
ur5us has joined #ruby
schleppel has quit [Quit: Konversation terminated!]
<al2o3-cr> would perens for rational stir shit up?
<al2o3-cr> e.g (15/8)
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<elomatreb> >> 15/8r
<ruby[bot]> elomatreb: # => (15/8) (https://eval.in/1035181)
<al2o3-cr> >> ((((())))) ^ (((())))
<ruby[bot]> al2o3-cr: # => false (https://eval.in/1035182)
reber has quit [Remote host closed the connection]
<al2o3-cr> elomatreb: this i know, but would perens be plausable?
<elomatreb> Feels like a weird special case for how rarely they're used
<al2o3-cr> syntactically speaking, it would be nice imo
alfiemax has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
<al2o3-cr> >> 1+7i
<ruby[bot]> al2o3-cr: # => (1+7i) (https://eval.in/1035183)
<elomatreb> You'd probably have to restrict it to literals (i.e. no variables/expressions) in order to keep it at least a little unambigous
postmodern has quit [Quit: Leaving]
<al2o3-cr> elomatreb: yeah, i see your point ;)
<apeiros> al2o3-cr: how do you express (15/7)-2 as int division with that?
<al2o3-cr> apeiros: well (15/7) would be a rational.
<apeiros> yes, so not an int division
fmcgeough has quit [Quit: fmcgeough]
alfiemax_ has joined #ruby
<apeiros> so what do I do if I do want an int division?
alfiemax has quit [Ping timeout: 244 seconds]
<al2o3-cr> apeiros: how do you do int div with 15/7r now?
<apeiros> you don't. you do 15/7
<al2o3-cr> i'm on about rational here ;)
<apeiros> you're missing the point
<al2o3-cr> no i'm not.
<apeiros> then answer my question :)
<al2o3-cr> you answer mine first =p
graphene has quit [Remote host closed the connection]
<apeiros> oh my
<al2o3-cr> what?
<apeiros> you're being dense. well, I'm off then.
<al2o3-cr> ok lol
agent_white has joined #ruby
graphene has joined #ruby
<al2o3-cr> i'm saying would a syntax of (15/8) be ok rational literals
postmodern has joined #ruby
<masterasia> if I have a url like https://google.ca/api/users, how can I strip out the https://google.ca/api
<masterasia> assuming it remains constant
<masterasia> I've looked at slice but that returns the stripped out prefix
<masterasia> and not the /users
<al2o3-cr> masterasia: use URI lib
<masterasia> won't that give me /api/users, al2o3-cr
<masterasia> if I ask the URI lib for the path
<al2o3-cr> no
<apeiros> al2o3-cr: and I'm saying it'd be problematic and gave you an example.
<al2o3-cr> apeiros: yes, i see what you were saying ;)
beefjoe has joined #ruby
alfiemax_ has quit [Ping timeout: 244 seconds]
jenrzzz_ has joined #ruby
ellcs has quit [Remote host closed the connection]
<masterasia> al2o3-cr, ended up doing a gsub
jenrzzz has quit [Ping timeout: 240 seconds]
<al2o3-cr> you could actually use File.split(...).first
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
alex`` has quit [Ping timeout: 260 seconds]
r29v has quit [Quit: r29v]
ellcs has joined #ruby
<al2o3-cr> masterasia: what gsub?
<masterasia> link = "https://google.ca/api/users"; link.gsub("https://google.ca/api", "")
<masterasia> returns /users without mutating link
<al2o3-cr> so you just want /users?
<masterasia> yes
<al2o3-cr> ah
<masterasia> well I've solved it
banisterfiend has joined #ruby
<al2o3-cr> kk
<masterasia> I'm letting user-input sneak define which API endpoint I call, they only have limited access but could it be malicious?
<al2o3-cr> masterasia: just use String#sub if you're not globally subtituting.
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
<masterasia> link = "/users/#{params[:id]}" which is fed into http.get('https://google.ca/api/#{link}")
<al2o3-cr> is this sinatra?
<masterasia> I feel like there is some sort of link traversal that they can do
<masterasia> Nah this is rails
<al2o3-cr> ah
dellavg has quit [Ping timeout: 244 seconds]
<al2o3-cr> this sounds iffy
<al2o3-cr> apeiros: no hard feelings.
<apeiros> hm? from my side? no worries.
<al2o3-cr> just on the wrong wave length
cyberg has quit [Ping timeout: 240 seconds]
<al2o3-cr> >> File.relative_path('foo/bar/bax/quux', ?/
<ruby[bot]> al2o3-cr: # => /tmp/execpad-062b8a760887/source-062b8a760887:3: syntax error, unexpected keyword_rescue, expecting ...check link for more (https://eval.in/1035186)
cyberg has joined #ruby
<al2o3-cr> >> File.relative_path('foo/bar/bax/quux', ?/)
<ruby[bot]> al2o3-cr: # => undefined method `relative_path' for File:Class (NoMethodError) ...check link for more (https://eval.in/1035187)
<al2o3-cr> wut?
<al2o3-cr> >> File.relative_paths('foo/bar/bax/quux', ?/)
<ruby[bot]> al2o3-cr: # => undefined method `relative_paths' for File:Class (NoMethodError) ...check link for more (https://eval.in/1035188)
<al2o3-cr> i've forgotten ;(
* al2o3-cr little henrys have died.
Puffball has quit [Quit: Puffball]
<al2o3-cr> >> File.relative_path
<ruby[bot]> al2o3-cr: # => undefined method `relative_path' for File:Class (NoMethodError) ...check link for more (https://eval.in/1035189)
<al2o3-cr> ok, ok. it's pigging yard omg.
<al2o3-cr> i thought that was a singleton method on File ;(
dviola has joined #ruby
AJA4350 has quit [Remote host closed the connection]
AJA4350 has joined #ruby
<al2o3-cr> irb or pry?
<al2o3-cr> irb is a kitten and pry is a lion
cosmopaladin has joined #ruby
mtkd has quit []
<al2o3-cr> >> Gem.vendor_dir
<ruby[bot]> al2o3-cr: # => "/execpad/interpreters/ruby-2.3.0/lib/ruby/vendor_ruby/gems/2.3.0" (https://eval.in/1035190)
<al2o3-cr> 2.3.0 wft
alfiemax has quit [Ping timeout: 264 seconds]
sphenxes has quit [Remote host closed the connection]
TvL2386_ has joined #ruby
alfiemax has joined #ruby
<al2o3-cr> >> Gem.install 'nyan-cat'
<ruby[bot]> al2o3-cr: # => (https://eval.in/1035191)
mynameisdebian has quit [Remote host closed the connection]
tdy has quit [Ping timeout: 240 seconds]
mynameisdebian has joined #ruby
alfiemax has quit [Remote host closed the connection]
mynameisdebian has quit [Remote host closed the connection]
mynameisdebian has joined #ruby
TvL2386 has quit [Ping timeout: 264 seconds]
mynameisdebian has quit [Remote host closed the connection]
shinnya has joined #ruby
nickjj has quit [Read error: Connection reset by peer]
Guest96351 has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
Nicmavr is now known as Guest49493
beefjoe has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 244 seconds]
TvL2386 has joined #ruby
TvL2386_ has quit [Ping timeout: 240 seconds]
sameerynho has quit [Ping timeout: 256 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lytol has quit [Remote host closed the connection]
banisterfiend has joined #ruby
pharma_joe has joined #ruby
jasmith has joined #ruby
postmodern has quit [Quit: Leaving]
Mike11 has quit [Quit: Leaving.]
augcesar has quit [Quit: Connection closed for inactivity]
alfiemax has joined #ruby
zautomata has joined #ruby
zautomata has quit [Changing host]
zautomata has joined #ruby
jenrzzz_ has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
ams__ has quit [Quit: Connection closed for inactivity]
DarthGandalf has quit [Ping timeout: 265 seconds]
alfiemax has quit [Ping timeout: 240 seconds]
apeiros has quit [Ping timeout: 240 seconds]
gix- has quit [Ping timeout: 260 seconds]
desperek has quit [Quit: xoxo]
DarthGandalf has joined #ruby
gizmore has joined #ruby
gix has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
bak1an has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jamesaxl has quit [Ping timeout: 276 seconds]
ellcs has quit [Ping timeout: 265 seconds]
jamesaxl has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
postmodern has joined #ruby
white_lilies has joined #ruby
psychicist__ has quit [Ping timeout: 244 seconds]
noobineer has joined #ruby
bak1an has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
RougeR has joined #ruby
codymj has quit [Quit: Leaving]
eb0t has quit [Ping timeout: 240 seconds]
fmcgeough has joined #ruby
venmx has joined #ruby
nickjj has joined #ruby
zugzug has joined #ruby
bak1an has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
willthechill has quit [Ping timeout: 244 seconds]
eb0t has joined #ruby
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zugzug> puts
<zugzug> oops
Azure has joined #ruby
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
white_lilies has quit [Ping timeout: 260 seconds]
za1b1tsu has quit [Ping timeout: 240 seconds]
duderonomy has joined #ruby
venmx has quit [Ping timeout: 264 seconds]