havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.7.0, 2.6.5, 2.5.7: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select Ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
jmcgnh has quit [Read error: Connection reset by peer]
roadie has quit [Ping timeout: 256 seconds]
jmcgnh has joined #ruby
noboruma has quit [Ping timeout: 256 seconds]
john2496 has quit [Remote host closed the connection]
noboruma has joined #ruby
TCZ has joined #ruby
lucasb has quit [Quit: Connection closed for inactivity]
drincruz_ has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Technodrome has joined #ruby
drincruz_ has quit [Ping timeout: 264 seconds]
roadie has joined #ruby
ritalinona has quit [Remote host closed the connection]
ritalinona has joined #ruby
roadie has quit [Ping timeout: 250 seconds]
Intelo has joined #ruby
<Intelo> Is it a good idea to sudo bundle update rake?
<Intelo> or sudo should not be used?
mniip has quit [Ping timeout: 600 seconds]
<Intelo> If I do not use sudo, it says There was an error while trying to write to `/usr/share/redmine/Gemfile.lock`. It is likely that you need to grant write permissions for that path.
<Intelo> havenwood, adam12 al2o3-cr ?
Translat-Embedde has joined #ruby
<Translat-Embedde> hii can anybody know what are the best testing tool for website ?
<Translat-Embedde> performance or what developer must to do
r3m has quit [Quit: WeeChat 2.8-dev]
mniip has joined #ruby
r3m has joined #ruby
drincruz_ has joined #ruby
Translat-Embedde has quit []
cschneid_ has quit [Ping timeout: 246 seconds]
alexherbo2 has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cschneid has joined #ruby
jmcgnh has quit [Read error: Connection reset by peer]
jmcgnh has joined #ruby
OverClocked has joined #ruby
<OverClocked> https://github.com/Jyrnee/therepose <----- Wondering if I should build this in ruby or PHP? What would be best to handle querying large databases?
<OverClocked> Forgive me in advance as ignorant lol. Very little experience ewith ruby barely know what it is
<OverClocked> Ruby is easy to program with I hear, but not sure where to begin. Figured I'd run with php/html but I've seen some fancy ruby works as well and it may be simpler than how I anticipate to setup
jintseng has joined #ruby
<Intelo> What do these even mean? https://paste.ubuntu.com/p/tSVjBd3kb4/
alfiemax has joined #ruby
drincruz_ has quit [Ping timeout: 240 seconds]
alfiemax has quit [Ping timeout: 240 seconds]
drincruz_ has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<meowzus> I think both woudl be okay OverClocked
<meowzus> But I'd probably recommend ruby over php
SeepingN has quit [Quit: The system is going down for reboot NOW!]
jintseng has quit [Quit: Leaving]
troulouliou_dev has quit [Quit: Leaving]
<leitz> OverClocked, PHP is great for web pages, and you can do a lot of DB queries, etc. Ruby is a general purpose language that is easy and fun to learn; it is written for humans to read. There are several web based tools you can use with Ruby, Rails is the most well know.
<leitz> Intelo, you only need sudo if the rake will be installed system wide, and used by other accounts. If it's just you doing stuff, sudo is best avoided.
<leitz> Intelo, that said, I install stuff as root, that's my background.
<leitz> Intelo, Ruby constants are not, er, constant. You can change them, but you get a warning. That's what you're seeing, a constant is being changed.
budonyc has joined #ruby
<leitz> Not sure why, though. Sorry.
<leitz> It's well past my nappy time.
<leitz> If Translat-Embedde comes back, can someone let them know that RSPec can be set up to do web queries. Not sure it allows "clicking", I'm not much of a web dev. There are things that can, I think.
<leitz> And to all, a good night...
<OverClocked> meowzus: Thanka for the info
<OverClocked> I'm a little lost with what exactly rails is on ruby. Ruby is a language, rails is a development framework? Right?
<meowzus> No problem and yeah OverClocked leitz gives some good info
<meowzus> That's right OverClocked
al2o3-cr has quit [Quit: WeeChat 2.7.1]
<leitz> OverClocked, yes. You can also do Sinatra, Roomba, or Hanami. Rails is by far the most developed, but the others can be easier to link from A -> F.
<OverClocked> I see
<Intelo> leitz, all was working with my redmine. I tried to install a plugin, gem/bundler/rake updated and this problem started. Now my redmine don't start
<OverClocked> So although php is great to handle the queries, best to develop with ruby for extended functionality like an admin backend
<leitz> Intelo, what's pkg-config on line 95? Is it not in that path?
al2o3-cr has joined #ruby
<leitz> Intelo, can you back out? There will be logs, but finding the clues will take time.
<OverClocked> I'll give ruby a shot. Will do som research tonight I'm sure I'll be back with more questions. Thanks for the info meow & leitz!
<Intelo> leitz, yes, how can I back out/revert?
<leitz> OverClocked, Ruby is my goto language for getting stuff done fast.
TCZ has quit [Quit: Leaving]
<leftylink> who was the person who said "ruby is my go-to language, but C is my goto language" ?
<leitz> Like, really fast. Even faster than Python, but that's another general purpose language that does web stuff.
<leitz> leftylink, :)
<leitz> Intelo, did you make backup copies of stuff?
<Intelo> leitz, isn't python same in being fast and featurefull as ruby?
<OverClocked> Hmm - you wouldnt be by chance interested in working with me on a project would you? :P Or give me an idea of where to begin lmao (as an amateur coder, very amateur). I google my way through to develop anything
<leitz> If not, it's going to be a slog.
<leitz> OverClocked, as a matter of fact...
<Intelo> leitz, I just restored backup of redmine root director but I think now its about systemwide
<leitz> OverClocked, spend some time with Ruby, see if you like it.
<leitz> OverClocked, this will guide you to the best programming language: http://www.freetradeleague.net/2018/08/the-best-programming-language.html
<OverClocked> leitz: - I've worked with spree commerce, though the rails concept has be a bit lost atm.
<OverClocked> Sweet thanks for the link will give it a read now
<leitz> OverClocked, Sinatra is easier to grasp, though I think Rails can do more.
<meowzus> leitz: I wish ruby was more popular compared to python but...
<leitz> OverClocked, I'm going to run a project soon, and it will help new coders build the skills to join an open source project.
<OverClocked> So essentially the framework is just a bunch of preset variables or what would be a good short way to describe that
<leitz> meowzus, me too.
<leitz> OverClocked, additional methods to make your life a lot easier.
<OverClocked> leitz: I'd like to contribute if possible. Would like to learn
<leitz> OverClocked, read up on ERB, too.
<meowzus> I don't see it being like massively better than python
<meowzus> And I've been doing ML/data science stuff, so it's basically all python there
<meowzus> And maybe some R/Julia now
<leitz> meowzus, easier to read, but it's really what fits your individual brain. Python is great, but Ruby fits my brain much better.
<meowzus> Yeah I used to hate python, but I guess I'm used to it now
<Intelo> leitz, I just restored backup of redmine root director but I think now its about systemwide
<Intelo> leitz, how can I fix my redmine at least so it works?
<Intelo> It was working before
<leitz> Intelo, I need to hit the hay. Here's what I'd suggest. Try to remove whatever you installed. You're on a linux, go into the redmind directory and do:
<leitz> find . -mtime -1
<leitz> That will show you everything that changed since a day ago.
<leitz> Install the backup in a *different* directory, and you can compare/copy in stuff bit by bit.
<leitz> meowzus, I love Python's whitespace. Add some ":" to my Ruby and it'd look a lot like my Python. :)
<leitz> Intelo, good follow up! You could move the "new" version directory aside, but save it at the root to get any dot files, and then copy in the old from backup. Most of those files look like actors, not data stores.
<leitz> That's a quick look, though.
<leitz> Another issue is your path might have been changed. See if you can remove whatever you tried to add.
<OverClocked> Damn all languages seem so overwhelming besides cas and html lol
<OverClocked> Css*
<leitz> OverClocked, it takes time to learn, but once you start playing, and I do mean playing, it's fun.
<leitz> Intelo, I need to zonk out. If your redmine isn't working tomorrow, ping me and we can try some stuff.
<leitz> Find the logs, and make sure you still have those pastes.
leitz has quit [Quit: Leaving]
<Intelo> leitz, I just restored some recent backup. It now shows this error in apache https://paste.ubuntu.com/p/7Kmygn9MCc/
sergioro has quit [Quit: leaving]
lxsameer has quit [Ping timeout: 250 seconds]
roadie has joined #ruby
ChmEarl has quit [Quit: Leaving]
ferche23 has joined #ruby
ferche23 has quit [Max SendQ exceeded]
ferche23 has joined #ruby
roadie has quit [Ping timeout: 256 seconds]
cockadopolous has quit [Quit: leaving]
ferche23 has quit [Max SendQ exceeded]
cockadopolous has joined #ruby
sergioro has joined #ruby
ferche23 has joined #ruby
budonyc has quit [Quit: Leaving]
polishdub has joined #ruby
john2496 has joined #ruby
drincruz_ has quit [Ping timeout: 264 seconds]
orbyt_ has quit [Quit: Textual IRC Client: www.textualapp.com]
cliluw has quit [Ping timeout: 250 seconds]
cliluw has joined #ruby
cliluw has quit [Ping timeout: 246 seconds]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
Arkantos has joined #ruby
rmnull has quit [Ping timeout: 246 seconds]
Technodrome has joined #ruby
roadie has joined #ruby
cschneid has quit [Ping timeout: 256 seconds]
cschneid has joined #ruby
roadie has quit [Ping timeout: 265 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jmcgnh has quit [Read error: Connection reset by peer]
gix has quit [Disconnected by services]
cliluw has joined #ruby
rmnull has joined #ruby
braincrash has quit [Quit: bye bye]
jmcgnh has joined #ruby
braincrash has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
golevka has quit [Read error: Connection reset by peer]
john2496 has quit []
alexherbo2 has quit [Quit: The Lounge - https://thelounge.chat]
jmcgnh has quit [Read error: Connection reset by peer]
cliluw has quit [Ping timeout: 250 seconds]
ur5us has joined #ruby
jmcgnh has joined #ruby
roadie has joined #ruby
roadie has quit [Ping timeout: 250 seconds]
jmcgnh has quit [Read error: Connection reset by peer]
jmcgnh has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
jmcgnh has quit [Ping timeout: 250 seconds]
mheld has quit [Quit: Connection closed for inactivity]
jmcgnh has joined #ruby
drincruz_ has joined #ruby
brool has quit [Ping timeout: 246 seconds]
drincruz_ has quit [Ping timeout: 246 seconds]
_whitelogger has joined #ruby
jmcgnh has joined #ruby
donofrio has quit [Read error: Connection reset by peer]
d3bug has quit [Quit: Connection closed for inactivity]
_whitelogger has joined #ruby
ur5us has quit [Ping timeout: 246 seconds]
<Intelo> After putting plugins in /usr/share/redmine/plugins I get these errors. What might be the issue? https://paste.ubuntu.com/p/8z6QSJTxJd/
jmcgnh has quit [Read error: Connection reset by peer]
cschneid has quit [Ping timeout: 264 seconds]
jmcgnh has joined #ruby
cschneid has joined #ruby
<Intelo> error 2 at bottom https://paste.ubuntu.com/p/dXpg8CFyq9/
polishdub has quit [Quit: leaving]
markopasha has joined #ruby
ferche23 has quit [Remote host closed the connection]
ferche23 has joined #ruby
ferche23 has quit [Max SendQ exceeded]
jmcgnh has quit [Read error: Connection reset by peer]
jmcgnh has joined #ruby
jmcgnh has quit [Read error: Connection reset by peer]
jmcgnh has joined #ruby
dinfuehr_ has quit [Ping timeout: 264 seconds]
<Intelo> latest ^
dinfuehr has joined #ruby
dinfuehr has quit [Ping timeout: 240 seconds]
<rmnull> >> mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
<ruby[bot]> rmnull: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
xco has joined #ruby
<rmnull> Intelo: do u have ruby-dev installed ?
roadie has joined #ruby
dinfuehr has joined #ruby
<Intelo> rmnull, let me see
dinfuehr has quit [Ping timeout: 246 seconds]
<rmnull> which distro are u on ?
dinfuehr has joined #ruby
sysh has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Intelo> rmnull, ubuntu
<rmnull> okay, ruby-dev is the package name
<rmnull> also in case u dont know doing "sudo bundle install" is bad
<Intelo> rmnull, I followed this and it uses sudo gem..
<Intelo> sudo is bad. I read that in bundle docs too
<Intelo> rmnull, will having ruby-dev solve all those problems?
<rmnull> i see an error for mysql2, mysql2 will likely require its dev package too
<rmnull> try bundle install after installing ruby-dev
<Intelo> rmnull, funny, all was working fine unless I tried to install pluggins
<rmnull> the error messages will be updated
<rmnull> ooo, that's strange
<rmnull> in that case u know what to do, uninstall the plugins ;)
Emmanuel_Chanel has quit [Ping timeout: 240 seconds]
dinfuehr has quit [Ping timeout: 260 seconds]
dinfuehr has joined #ruby
<Intelo> rmnull, [ 2020-03-24 06:53:28.4268 3304/7f7ccd534700 age/Cor/App/Implementation.cpp:304 ]: Could not spawn process for application /usr/share/redmine: An error occurred while starting up the preloader.
cthu| has quit [Ping timeout: 264 seconds]
<Intelo> Message from application: Permission denied @ dir_s_mkdir - /usr/share/redmine/public/javascripts/redmine_extensions (Errno::EACCES)
<Intelo> /usr/lib/ruby/2.5.0/fileutils.rb:232:in `mkdir'
<rmnull> please don't spam the channel, use a paste service
<Intelo> ok
<Intelo> next time
<rmnull> lol ok
<Intelo> but thats the error
<Intelo> :)
<rmnull> so now u did it without sudo
<rmnull> it clearly looks like "permission_error"
<Intelo> yes
<Intelo> should I use sudo?
<Intelo> sudo bundle install?
<rmnull> u might as well use it, as u have already installed few packages there before
<rmnull> (i think #ruby will hate me for suggesting this)
<Intelo> did, same issue
<rmnull> log
jmcgnh has quit [Ping timeout: 256 seconds]
<rmnull> some permission error, pew pew.
jmcgnh_ has joined #ruby
jmcgnh_ is now known as jmcgnh
<rmnull> can u post the log with your command
<Intelo> rmnull, permission issue solved by chmod 777 -R .
<Intelo> remaining issue: https://paste.ubuntu.com/p/cGzYNJpw7S/
Emmanuel_Chanel has joined #ruby
<rmnull> did u chmod 777 a folder under /usr ?
code_zombie_ has joined #ruby
code_zombie_ has quit [Remote host closed the connection]
<rmnull> that seems like u have some package missing
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
code_zombie has quit [Ping timeout: 260 seconds]
<Intelo> rmnull, only /usr/share/redmine
<Intelo> rmnull, which package?
jmcgnh has quit [Read error: Connection reset by peer]
<rmnull> no idea
<Intelo> rmnull, bundle update rake solved it
<rmnull> : )
<rmnull> nice
<rmnull> is everything working okay now ?
<Intelo> rmnull, new errors https://paste.ubuntu.com/p/CqDjnC36RN/
jmcgnh has joined #ruby
jingjinghack has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
conta1 has joined #ruby
rmnull has quit [Quit: WeeChat 2.7.1]
vondruch_ has joined #ruby
vondruch_ has quit [Client Quit]
vondruch has quit [Client Quit]
vondruch has joined #ruby
chalkmonster has joined #ruby
alfiemax has joined #ruby
<Intelo> rm last error left https://paste.ubuntu.com/p/njyhDVpQzp/
zlogan has joined #ruby
jmcgnh has quit [Read error: Connection reset by peer]
cschneid_ has joined #ruby
cschneid has quit [Ping timeout: 264 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
jmcgnh has joined #ruby
alfiemax has quit [Remote host closed the connection]
xco has joined #ruby
xco has quit [Client Quit]
hassox has quit [Remote host closed the connection]
alfiemax has joined #ruby
foxxx0 has quit [Quit: foxxx0]
foxxx0 has joined #ruby
alfiemax has quit [Remote host closed the connection]
Arkantos has quit [Quit: Textual IRC Client: www.textualapp.com]
factormystic3 has joined #ruby
factormystic has quit [Ping timeout: 246 seconds]
schne1der has joined #ruby
factormystic has joined #ruby
factormystic3 has quit [Ping timeout: 264 seconds]
cschneid_ has quit [Quit: ZNC 1.7.5 - https://znc.in]
conta1 has quit [Quit: conta1]
vondruch has quit [Ping timeout: 264 seconds]
stooj has quit [Ping timeout: 250 seconds]
akem_ has joined #ruby
akem has quit [Ping timeout: 250 seconds]
cschneid has joined #ruby
lxsameer has joined #ruby
jingjing1 has joined #ruby
jingjinghack has quit [Ping timeout: 240 seconds]
chalkmonster has quit [Quit: WeeChat 2.7.1]
fercell has joined #ruby
postmodern has quit [Quit: Leaving]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
stooj has joined #ruby
jinie_ has joined #ruby
jinie has quit [Ping timeout: 250 seconds]
jinie_ is now known as jinie
xco has joined #ruby
TomyWork has joined #ruby
vondruch has joined #ruby
jmcgnh has quit [Read error: Connection reset by peer]
mniip has quit [Ping timeout: 606 seconds]
hassox has joined #ruby
jmcgnh has joined #ruby
sergioro has quit [Quit: leaving]
akem_ has quit [Quit: Leaving]
hassox has quit [Ping timeout: 256 seconds]
roadie has quit [Remote host closed the connection]
mniip has joined #ruby
Rudd0 has quit [Ping timeout: 256 seconds]
Rudd0 has joined #ruby
jingjing1 has quit [Ping timeout: 260 seconds]
akem has joined #ruby
jingjinghack has joined #ruby
MuffinPimp has quit [Ping timeout: 246 seconds]
MuffinPimp has joined #ruby
sphex_ has quit [Ping timeout: 246 seconds]
roadie has joined #ruby
sphex has joined #ruby
dionysus69 has joined #ruby
donofrio has joined #ruby
Technodrome has joined #ruby
cschneid_ has joined #ruby
cschneid has quit [Ping timeout: 250 seconds]
TCZ has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Technodrome has joined #ruby
jingjinghack has quit [Quit: WeeChat 2.1]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
leitz has joined #ruby
Tungki has joined #ruby
brendan- has quit [Ping timeout: 258 seconds]
burningserenity has joined #ruby
brendan- has joined #ruby
drincruz_ has joined #ruby
cschneid_ has quit [Read error: Connection reset by peer]
fercell has quit [Quit: WeeChat 2.7.1]
cschneid has joined #ruby
roadie has quit [Ping timeout: 240 seconds]
fercell has joined #ruby
Technodrome has joined #ruby
conta1 has joined #ruby
vondruch has quit [Ping timeout: 240 seconds]
cd has joined #ruby
cd has quit [Client Quit]
Technodrome has quit [Quit: Textual IRC Client: www.textualapp.com]
burningserenity has quit [Remote host closed the connection]
<OverClocked> Goodbye, Ruby Tuesday!! Who could hang a name on you?
<OverClocked> When you change with every new day
<OverClocked> Still, I'm going to miss you
duderonomy has joined #ruby
TCZ has quit [Remote host closed the connection]
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
Intelo has quit [Ping timeout: 250 seconds]
dionysus69 has quit [Ping timeout: 240 seconds]
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
drincruz_ is now known as drincruz
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
TCZ has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
vondruch has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
<leitz> Hey OverClocked, what did you decide, on your language?
paraxial has quit [Remote host closed the connection]
roadie has joined #ruby
paraxial has joined #ruby
<OverClocked> leitz: I worked with ruby a tiny bit but I given the objective I think PHP would be the easiest to get KE out there, however with the traffic I expect to get I'd be looking to immediately make a full ruby setup for more functionality
<OverClocked> Get me out there*
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
<OverClocked> Any good videos explaining the workings of ruby? Most videos is some kid writing code and showing the output, but no explanation as to WHY the output is what it is or what certain characters do in a command
paraxial has quit [Remote host closed the connection]
<OverClocked> I watched a good java video that had explained the whole language and how it interprets, and so on. Need something like that for ruby
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
<OverClocked> Or I may just be missing some basic programming fundamentals that are basics in most languages.
paraxial has quit [Remote host closed the connection]
pupsikov has joined #ruby
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
<leitz> OverClocked, what's "KE"?
paraxial has quit [Remote host closed the connection]
<OverClocked> leitz: me* (typo)
paraxial has joined #ruby
<leitz> Hehe....my keyboard has those issues, too...
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
<leitz> If you want a full function site, Rails is probably the way to go. Maybe something like: https://www.codecademy.com/learn/learn-rails
paraxial has joined #ruby
roadie has quit [Ping timeout: 264 seconds]
cd has joined #ruby
<leitz> OverClocked, if you want a good intro into the "why" of Ruby, check out the "Well Grounded Rubyist".
paraxial has quit [Remote host closed the connection]
<OverClocked> Ooh forgot about codecademy. I'll give them a shot, and yes I agree with full function site
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
<OverClocked> leitz: perfect. That's exactly what I want to know is the why lol. Runy seems super "easy" as far as getting something put together, and since it is good for quite a bit of different purposes I am very interested in learning it. + to my understanding ruby dev's are "in short supply / paid more"
<OverClocked> Autocorrect = autowrong 😖. Phone keyboard is killer
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
<leitz> OverClocked, I'll contradict part of that. Ruby has a very very small market share outside of Rails. Almost negative, actually.
<OverClocked> Why is that? What's the downside?
paraxial has quit [Remote host closed the connection]
<leitz> What I have found, though, is that when being interviewed, you'll be asked to solve coding questions. The few times I've done that, no one cared what language I used. Just that I could solve the problem.
paraxial has joined #ruby
<leitz> You can learn syntax in a week or three, problem solving is harder.
paraxial has quit [Remote host closed the connection]
<leitz> The downside to Ruby is that it's not super performant at the machine level. Ruby programs can take a little longer to run.
paraxial has joined #ruby
<leitz> The upside is that you can get the program running a heck of a lot faster with Ruby.
<OverClocked> I see
<OverClocked> That's funny because I was thinking php but I see a lot of coding in my future for a fairly simple site imo
paraxial has quit [Remote host closed the connection]
<leitz> The better upside is that you can go into some weird project that you don't understand, learn the domain issues, and mould the Ruby objects to just what you need.
paraxial has joined #ruby
<leitz> The even better upside is that if you really need performance (most people don't), you can use C programs in Ruby.
<OverClocked> Want to make a digital memorial or everyone that's lost their lives in major events, basically a database sorted by region and event and when you click on a person's name it shows info about them, sayings they often used, time of birth and death, and photos
paraxial has quit [Remote host closed the connection]
<OverClocked> So there will be 1000s of database entries that would be populated to webpage
paraxial has joined #ruby
<leitz> Ruby and MongoDB then. With Ruby, define the object in a very very simple way. (Read the "Well Grounded Rubyist")
<OverClocked> Esentially listed out as links (persons name) that can be clicked and view info abou them
paraxial has quit [Remote host closed the connection]
<OverClocked> I'll give it a read. I have 0 experience with mongo. Been using mariadb
paraxial has joined #ruby
<OverClocked> I already have private server setup and RoR setup, standard LAMP server
paraxial has quit [Remote host closed the connection]
<leitz> Store it in a MongoDB database. Then grow your data set organically. You can expand the object easily, and Mongo's schemaless nature allows putting in what you want without doing the normalization first.
paraxial has joined #ruby
<OverClocked> Dont run off leitz , I need you haha. I'll do some research and come back with questions
<leitz> Free MongoDB learning. Since we're all stuck alone, time to learn.
fluxAeon has quit [Ping timeout: 250 seconds]
<OverClocked> Haha. I'm in ATX, lockdown orders land tonight
paraxial has quit [Remote host closed the connection]
<OverClocked> Kung flu running rampant
<leitz> MariaDB is good. Mongo is faster at reads than writes.
paraxial has joined #ruby
<leitz> ATX?
<OverClocked> Auatin texas
<leitz> Nice. I think there are a couple of Ruby luminaries near you. Hal Fulton and Dave Thomas come to mind.
<OverClocked> Mongo would be better then as it's more reads then writes
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
<leitz> And Mongo lets you grow organically. Not every data entry needs all the same fields.
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
<OverClocked> Interesting. Let me do some reading so I understand mongo structure and I'll check out well grounded rubyist
<OverClocked> Thanks for the info leitz! Greatly appreciated
paraxial has quit [Remote host closed the connection]
<OverClocked> Let me apologize for being such a good haha
<OverClocked> Goof*
paraxial has joined #ruby
iNs_ has quit [Remote host closed the connection]
ritalinona has quit [Remote host closed the connection]
paraxial has quit [Remote host closed the connection]
iNs has joined #ruby
ritalinona has joined #ruby
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
<leitz> Who cares about being a newbie? We all were at some point, I still consider myself an Apprentice Ruby Coder.
<leitz> I'm just an Apprentice in a lot of things, so it can sound like I'm smart. :)
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
davispuh has joined #ruby
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
dionysus69 has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
<OverClocked> Lol
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
roadie has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
zlogan has quit [Remote host closed the connection]
paraxial has quit [Remote host closed the connection]
conta1 has quit [Quit: conta1]
paraxial has joined #ruby
zlogan has joined #ruby
paraxial has quit [Remote host closed the connection]
<apotheon> OverClocked: Be aware that MongoDB doesn't give the same guarantees about data integrity and consistency that you get from a more traditional relational DBMS. Depending on your use case, that may or may not be important. If you don't need the distributed storage of MongoDB, though, you can get some similar fudge-ability of data structure using PostgreSQL's native JSON type.
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
Rapture has joined #ruby
paraxial has joined #ruby
<apotheon> OverClocked: The data integrity and consistency matter is why I sometimes say MongoDB is the database you use when you don't care about your data. Google uses (or used; I haven't kept up) MongoDB for things where all it needs is to collect statistics about data, because individual records' integrity doesn't matter as much.
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
burningserenity has joined #ruby
paraxial has quit [Remote host closed the connection]
roadie has quit [Ping timeout: 240 seconds]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
OverClocked has quit [Ping timeout: 240 seconds]
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
<leitz> apotheon, I think Mongo stays consistent in a single node/no shard design. But yes, when you start doing replication and sharding there can be a short time of inconsistency.
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
<apotheon> leitz: . . . and if you have more than two nodes, updates can start conflicting.
<apotheon> The "eventually consistent" model of MongoDB lends itself to occasional race conditions.
paraxial has quit [Remote host closed the connection]
<leitz> Drat, lost him.
burningserenity has quit [Read error: Connection reset by peer]
paraxial has joined #ruby
<leitz> apotheon, I've not run MongoDB in multi-node yet, so I'll agree with you. :)
burningserenity has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
andikr has joined #ruby
paraxial has quit [Remote host closed the connection]
<apotheon> leitz: I remember there was a Bitcoin startup that used MongoDB, until inconsistencies started propagating across the database, people lost money, and the whole thing came crashing down.
paraxial has joined #ruby
burningserenity has quit [Client Quit]
<apotheon> If you're only using a single node, I'd go with PostgreSQL's JSON datatype anyway.
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
roadie has joined #ruby
fanta1 has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
alfiemax has joined #ruby
<apotheon> In fact, there are many use cases where MongoDB seems like the right thing where I'd use PostgreSQL's JSON datatype with Redis, instead, but your mileage may vary.
<apotheon> Setup for PostgreSQL+Redis could be a little more complicated than a single-node MongoDB.
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
burningserenity has joined #ruby
paraxial has quit [Remote host closed the connection]
TCZ has quit [Quit: Leaving]
paraxial has joined #ruby
ellcs has joined #ruby
ellcs has quit [Max SendQ exceeded]
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
ellcs has joined #ruby
ellcs has quit [Max SendQ exceeded]
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
ellcs has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
andikr has left #ruby [#ruby]
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
cd has quit [Quit: cd]
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
d3bug has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
brool has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
cschneid_ has joined #ruby
roadie has quit [Remote host closed the connection]
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
roadie has joined #ruby
cschneid has quit [Ping timeout: 240 seconds]
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
ldepandis has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
fanta1 has quit [Quit: fanta1]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
alfiemax has quit [Ping timeout: 256 seconds]
arekushi has quit [Quit: Gateway shutdown]
paraxial has quit [Remote host closed the connection]
Technodrome has joined #ruby
Rapture has quit [Ping timeout: 246 seconds]
fercell has quit [Quit: WeeChat 2.7.1]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
burningserenity has quit [Ping timeout: 256 seconds]
paraxial has joined #ruby
fluxAeon has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
TCZ has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
connermcd has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
bvdw has quit [Read error: Connection reset by peer]
paraxial has joined #ruby
bvdw has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
burningserenity has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
SeepingN has joined #ruby
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
phaul has joined #ruby
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
phaul_ has quit [Ping timeout: 265 seconds]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
chalkmonster has joined #ruby
paraxial has quit [Remote host closed the connection]
_phaul has joined #ruby
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
phaul has quit [Ping timeout: 240 seconds]
phaul has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
paraxial has joined #ruby
_phaul has quit [Ping timeout: 250 seconds]
xco has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
fercell has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
cthu| has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
alfiemax has joined #ruby
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
phaul has quit [Ping timeout: 258 seconds]
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
schne1der has quit [Ping timeout: 258 seconds]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
ChmEarl has joined #ruby
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
howdoi has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
tau has joined #ruby
paraxial has quit [Read error: Connection reset by peer]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Read error: Connection reset by peer]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
connermcd has quit [Quit: WeeChat 2.7.1]
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
markopasha has quit [Ping timeout: 240 seconds]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
conta1 has joined #ruby
paraxial has quit [Remote host closed the connection]
markopasha has joined #ruby
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
burningserenity has quit [Ping timeout: 260 seconds]
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
sergioro has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
sauvin has quit [Ping timeout: 264 seconds]
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
phaul has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
sauvin has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
cschneid has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
ritalinona has quit [Remote host closed the connection]
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
ritalinona has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
burningserenity has joined #ruby
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
imadper has quit [Remote host closed the connection]
paraxial has joined #ruby
_phaul has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
postmodern has joined #ruby
paraxial has quit [Remote host closed the connection]
pupsikov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
phaul has quit [Ping timeout: 256 seconds]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
phaul has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
_phaul has quit [Ping timeout: 264 seconds]
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
_phaul has joined #ruby
conta1 has quit [Quit: conta1]
Tungki has quit [Read error: Connection reset by peer]
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
pupsikov has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
phaul has quit [Ping timeout: 264 seconds]
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
_phaul has quit [Ping timeout: 256 seconds]
burningserenity has quit [Quit: Leaving.]
burningserenity has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
_phaul has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
TomyLobo2 has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
sysh has quit [Remote host closed the connection]
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
alfiemax has quit [Remote host closed the connection]
TomyWork has quit [Ping timeout: 256 seconds]
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
cliluw has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
burningserenity has quit [Quit: Leaving.]
burningserenity has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
hiroaki has quit [*.net *.split]
cow[moo] has quit [*.net *.split]
ule has quit [*.net *.split]
green- has quit [*.net *.split]
camilasan has quit [*.net *.split]
klaas has quit [*.net *.split]
ByronJohnson has quit [*.net *.split]
robotmay has quit [*.net *.split]
zxq2 has quit [*.net *.split]
daemonwrangler has quit [*.net *.split]
ByronJohnson has joined #ruby
robotmay has joined #ruby
green- has joined #ruby
daemonwrangler has joined #ruby
camilasan has joined #ruby
hiroaki has joined #ruby
TCZ has quit [Quit: Leaving]
roadie has quit [Ping timeout: 265 seconds]
bitcycle has joined #ruby
<bitcycle> Hey all. Does anyone here know how to copy a file from the gem (via gemspec) to /usr/bin on install?
<adam12> bitcycle: If you put it in the bindir specified by the gemspec, it will happen automatically.
burningserenity has quit [Ping timeout: 264 seconds]
rippa has joined #ruby
NightMonkey has quit [Ping timeout: 256 seconds]
<bitcycle> adam12: We're using a custom prefix for the RPM-packaged gen to put it under opt, but we're wanting to have a symlink (or copy) of a binary land at /usr/bin/
NightMonkey has joined #ruby
<bitcycle> Is that possible with gemspec as a postinst command?
<adam12> bitcycle: No post install commands in gemspecs that I know. Only messages.
<adam12> bitcycle: This can't be handled in the RPM spec?
burningserenity has joined #ruby
<bitcycle> adam12: we could handle it at the rpm level, but we'd need to add postinst and postremove scripts to manage the link. I was hoping there was some way of putting an absolute path into the executables as the "destination" path.
<bitcycle> But it would seem that that's not a thing, at this time.
<adam12> bitcycle: Not that I know of. Depending on how you're packaging the gem into an RPM, gem supports an executable dir that might work.
<bitcycle> adam12: ah, I'll try that. I think that might work.
<bitcycle> adam12: fpm has an option: --gem-bin-path
gix has joined #ruby
GodFather has quit [Ping timeout: 260 seconds]
burningserenity has quit [Read error: Connection reset by peer]
<bitcycle> adam12: fantastic, that totally worked. Thanks for helping me figure that out. I really appreciate your time and expertise!
burningserenity has joined #ruby
paraxial has quit [Remote host closed the connection]
Arkantos has joined #ruby
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
<adam12> bitcycle: cheers
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
dviola has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
sauvin has quit [Read error: Connection reset by peer]
paraxial has joined #ruby
cliluw has quit [Ping timeout: 240 seconds]
cliluw has joined #ruby
paraxial has quit [Remote host closed the connection]
roadie has joined #ruby
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.7.1]
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
roadie has quit [Ping timeout: 264 seconds]
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
roadie has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
GodFather has joined #ruby
alfiemax has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
vondruch has quit [Ping timeout: 240 seconds]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
alfiemax has quit [Ping timeout: 260 seconds]
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
roadie has quit [Ping timeout: 246 seconds]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
galaxie has quit [Ping timeout: 240 seconds]
paraxial has joined #ruby
wildtrees has joined #ruby
kent\n has quit [Ping timeout: 260 seconds]
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
SeepingN has joined #ruby
paraxial has quit [Remote host closed the connection]
galaxie has joined #ruby
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
paraxial has quit [Remote host closed the connection]
DTZUZU2 has joined #ruby
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Read error: Connection reset by peer]
DTZUZU has quit [Ping timeout: 250 seconds]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
xco has joined #ruby
paraxial has quit [Remote host closed the connection]
_phaul has quit [Ping timeout: 256 seconds]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
<al2o3-cr> Guild is now called Ractor.
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
<adam12> al2o3-cr: Interesting! I saw ko1 reserve the ractor namespace and wondered what was going on.
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
GodFather has quit [Ping timeout: 246 seconds]
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
schne1der has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
cschneid_ has joined #ruby
cschneid has quit [Ping timeout: 265 seconds]
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
[rg] has joined #ruby
<[rg]> in the case that the socket fails, what happens in this example? https://ruby-doc.org/stdlib-1.9.3/libdoc/socket/rdoc/Socket.html
paraxial has quit [Remote host closed the connection]
<[rg]> ah it throws an exception?
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
<al2o3-cr> adam12: I was suspicious too, considering i follow ko1 tweets religiously.
paraxial has quit [Read error: Connection reset by peer]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
rmnull has joined #ruby
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
klaas has joined #ruby
paraxial has joined #ruby
[rg] has quit [Ping timeout: 246 seconds]
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
<leitz> al2o3-cr, for the newbie, what are Guild and Ractor? It looks like a network "thing".
paraxial has joined #ruby
<al2o3-cr> leitz: it's the new concurrency model in ruby 2.8/3.0
paraxial has quit [Remote host closed the connection]
<leitz> al2o3-cr, ah, cool.
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
_phaul has joined #ruby
paraxial has joined #ruby
GodFather has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
_phaul has quit [Ping timeout: 256 seconds]
Arahael has quit [Ping timeout: 246 seconds]
paraxial has quit [Remote host closed the connection]
ritalinona has quit [Max SendQ exceeded]
paraxial has joined #ruby
_phaul has joined #ruby
ritalinona has joined #ruby
cloaked1 has joined #ruby
paraxial has quit [Remote host closed the connection]
Arahael has joined #ruby
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
phaul has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
phaul_ has joined #ruby
paraxial has quit [Remote host closed the connection]
_phaul has quit [Ping timeout: 264 seconds]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
phaul has quit [Ping timeout: 264 seconds]
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
kent\n has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
TomyLobo2 has quit [Remote host closed the connection]
hiroaki has quit [Ping timeout: 265 seconds]
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
phaul_ has quit [Ping timeout: 265 seconds]
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
phaul_ has joined #ruby
xco has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
phaul_ has quit [Ping timeout: 256 seconds]
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
phaul_ has joined #ruby
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
paraxial has quit [Remote host closed the connection]
hiroaki has joined #ruby
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
phaul_ has quit [Ping timeout: 256 seconds]
paraxial has quit [Remote host closed the connection]
burningserenity has quit [Quit: Leaving.]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
ur5us has joined #ruby
dinfuehr has quit [Ping timeout: 246 seconds]
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
TCZ has joined #ruby
xco has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
dinfuehr has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
markopasha has quit [Ping timeout: 264 seconds]
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
markopasha has joined #ruby
dviola has quit [Ping timeout: 265 seconds]
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
Azure has quit [Read error: Connection reset by peer]
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
Azure has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
jmcgnh has quit [Read error: Connection reset by peer]
paraxial has quit [Remote host closed the connection]
<xco> how would you use "#values_at" in this? https://gist.github.com/xcobar/ab04fca0c103b0dda7cd06883690f8dd
paraxial has joined #ruby
<xco> i guess you can't can you?
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
rmnull has quit [Quit: WeeChat 2.7.1]
paraxial has joined #ruby
rmnull has joined #ruby
ellcs has quit [Ping timeout: 246 seconds]
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
ellcs has joined #ruby
jmcgnh has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
phaul_ has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
<havenwood> xco: rows = [country.fetch('country').upcase, *country.values_at('cases', 'deaths', 'recovered')]
paraxial has quit [Remote host closed the connection]
<havenwood> xco: I mean: rows = data.map do |country|; [country.fetch('country').upcase, *country.values_at('cases', 'deaths', 'recovered')]
paraxial has joined #ruby
<xco> right i'm trying to force this change in my update, i like it :)
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
<havenwood> xco: Or: rows = data.map do |country|; [country.values_at('country', 'cases', 'deaths', 'recovered')].tap { |country, *| country.upcase! }
<havenwood> xco: I mean: rows = data.map do |country|; [country.values_at('country', 'cases', 'deaths', 'recovered')].tap { |name, *| name.upcase! }
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
<havenwood> xco: I like to use a plural and corresponding singular for collections. Like: countries.map do |country|
<apotheon> havenwood: me too
<havenwood> xco: I think that ends up being really nice.
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
<xco> perfectly agree with you on that
rmnull has quit [Quit: WeeChat 2.7.1]
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
Jonopoly has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
DTZUZU2 has quit [Ping timeout: 256 seconds]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
<xco> havenwood look this got complicated a bit, i guess i'll have to name those args on L9 and L10 https://gist.github.com/xcobar/ab04fca0c103b0dda7cd06883690f8dd
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
<havenwood> xco: It's order dependent, I presume?
<xco> yes
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
<havenwood> xco: I replied to your gist.
paraxial has joined #ruby
<havenwood> xco: I'd suggest looking carefully at repeated values to extract constants.
phaul_ has quit [Ping timeout: 256 seconds]
phaul has joined #ruby
<havenwood> xco: That'll help DRY this up too.
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
<havenwood> xco: Updated my comment (forgot a splat).
paraxial has quit [Remote host closed the connection]
<xco> it should be data.map
paraxial has joined #ruby
<havenwood> xco: Right, I'm just trying to get you to rename `data`. :P
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
<xco> forgiven :P
paraxial has quit [Remote host closed the connection]
<xco> btw did you see my uri_builder class?
<xco> i ditched the constants
paraxial has joined #ruby
<havenwood> xco: When you're in a specialty method like this, it's nice to use variables that correspond to what exactly the data is.
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<havenwood> xco: looking
paraxial has quit [Remote host closed the connection]
<havenwood> xco: I saw the module_function top level - which looks really nice! :0
<havenwood> :)
paraxial has joined #ruby
<xco> ;D
phaul has quit [Ping timeout: 250 seconds]
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
<havenwood> xco: Nice, yeah, you've extracted two things now that could be part of a JSON HTTP client wrapper—the Cache and URLBuilder
<havenwood> xco: That's totally fine, just pointing it out, since it's fairly common to have an HTTP wrapper for this reason.
paraxial has quit [Remote host closed the connection]
phaul has joined #ruby
paraxial has joined #ruby
<xco> yeap
<havenwood> xco: cache and url_builder are HTTP client stuff and tableize is request data stuff. hmm.
paraxial has quit [Remote host closed the connection]
<xco> but you see with this way the constants are gone and i'm wondering how cheap/expensive this compared to having to use many constants
code_zombie has joined #ruby
paraxial has joined #ruby
dviola has joined #ruby
<xco> i could group them, but i could also argue that i'm separating concerns on a fine level
<xco> wdyt?
paraxial has quit [Read error: Connection reset by peer]
<havenwood> xco: Constants are certainly cheaper. You could even use the URLBuilder for your constants.
<havenwood> xco: CASES_URL = UriBuilder.new('/all').url
paraxial has joined #ruby
<xco> i did that already
<havenwood> xco: Nice.
<havenwood> xco: The URL builder creates a new object each time the method is run. Several, actually.
<havenwood> xco: So it's nice to extract those to a constant.
<xco> in exchange for visual beauty :P
paraxial has quit [Remote host closed the connection]
<xco> but i get your point :D
paraxial has joined #ruby
<havenwood> xco: Extracting constants end up being lovely and readable, I think.
paraxial has quit [Remote host closed the connection]
<havenwood> It tends to, at least.
paraxial has joined #ruby
<havenwood> xco: Use them directly in your methods, no intermediary local variable.
paraxial has quit [Remote host closed the connection]
bitcycle has quit [Quit: WeeChat 2.4]
<havenwood> xco: Like on this line, use: Typhoeus.get(STATE_URL, cache_ttl: 900) https://github.com/siaw23/kovid/blob/master/lib/kovid/request.rb#L84
paraxial has joined #ruby
<havenwood> xco: You'll have grouped URLs up top. That's nice. Then the methods all get shorter.
<havenwood> xco: It's faster and uses less memory too.
<xco> +1
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
pupsikov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
arekushi has joined #ruby
DTZUZU2 has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
fercell has quit [Quit: WeeChat 2.7.1]
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
paraxial has quit [Remote host closed the connection]
cschneid has joined #ruby
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
bvdw has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
phaul has quit [Ping timeout: 256 seconds]
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
phaul has joined #ruby
paraxial has quit [Remote host closed the connection]
jmcgnh has quit [Read error: Connection reset by peer]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
jmcgnh has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Read error: Connection reset by peer]
paraxial has joined #ruby
fluxAeon has quit [Ping timeout: 240 seconds]
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
fluxAeon has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
<umu> paraxial: why the join spam?
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
<umu> anyone know who is paraxial?
paraxial has quit [Remote host closed the connection]
<xco> is there a gem to output emoji flags? or should i created it? :D
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
<umu> paraxial: do you always join spam channels?
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
<phaul> !connection paraxial
paraxial has quit [Remote host closed the connection]
<phaul> oh well
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
<havenwood> xco: I think there's a clever way you can do it. :)
<xco> i'm all years
<xco> ears* wtf
<xco> :D
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
<xco> havenwood want to create a PR so that credit goes to you? :D
<havenwood> &>> 127462.chr('utf-8')
<rubydoc> # => "🇦" (https://carc.in/#/r/8rgv)
<havenwood> xco: Sure, happy to, or just tag me @havenwood in the commit. Lemme see if it checks out.
paraxial has quit [Remote host closed the connection]
paraxial has joined #ruby
<xco> which commit?
<xco> i haven't started this yet
<xco> was thinking of creating a gem that given an ISO code for a country, it spits out a flag
<xco> emoji flag
<umu> I think paraxial might use a boot
paraxial has quit [Remote host closed the connection]
<havenwood> !connection paraxial
<apotheon> xco: Include a feature for spitting out the name of the country, too.
<umu> ah, thanks!
<havenwood> xco: I think I have a clever way to do it with multi-codepoint grapheme clusters.
<xco> apotheon splitting out the name of a country? mmm not sure i get that
<apotheon> xco: How many people don't know, off the tops of their heads, that ch is Switzerland? How many of them wouldn't recognize the Swiss flag?
<xco> havenwood keep blowing my mind
<apotheon> tooname -f ch
<apotheon> spits out flag
<apotheon> s/tooname/toolname/
<apotheon> toolname -n ch
<apotheon> spits out "Switzerland"
<phaul> seems ruby[bot] doesn't like me :(, it's undesrtandable though :)
<apotheon> (for a CLI wrapper for your lib)
<havenwood> &>> 'A'.upto('Z').each.with_index(127462).map { |letter, digit| [letter, digit.chr('utf-8')] }.to_h
<rubydoc> # => {"A"=>"🇦", "B"=>"🇧", "C"=>"🇨", "D"=>"🇩", "E"=>"🇪", "F"=>"🇫", "G"=>"🇬", "H"=>"🇭", "I"=>"🇮", "J"=>"🇯",... check link for more (https://carc.in/#/r/8rgw)
<xco> apotheon oh actually that's a good idea, i thought if i'll create a gem for this i'll return all static data given a country ISO too, like currency, left/right drive etc so definitely a good idea
<apotheon> righto
<apotheon> currency's a good one, as well
<apotheon> timezone, maybe
<apotheon> ut-oh
<apotheon> This is getting complicated.
<xco> apotheon right, you get the point
<xco> apotheon well actually any static info on a country
<xco> but timezone? hmmmm not sure with DTS and stuff
<xco> havenwood those are not flag emojis
<xco> oh
<havenwood> xco: They're the codepoints that make up flags. Sec, I don't have it yet.
<havenwood> &>> '🇭🇹'.codepoints.map { |codepoint| codepoint.chr 'utf-8' } # xco
<rubydoc> # => ["🇭", "🇹"] (https://carc.in/#/r/8rgx)
<havenwood> xco: You should be able to provide the country ISO and get the flag.
green- has quit [Read error: Connection reset by peer]
<xco> havenwood where does the country ISO go in the code above?
<havenwood> xco: I'm distracted so I haven't gotten it working yet. The idea is to build the codepoints then grapheme cluster for the emoji from the corresponding ISO. I just showed my idea but need to get the codepoints back to a cluster now.
<xco> ok
<havenwood> &>> COUNTRY_LETTERS = 'A'.upto('Z').each.with_index(127462).to_h; COUNTRY_LETTERS.values_at('U', 'K')
<rubydoc> # => [127482, 127472] (https://carc.in/#/r/8rgy)
<havenwood> &>> '🇬🇧'.codepoints
<rubydoc> # => [127468, 127463] (https://carc.in/#/r/8rgz)
<havenwood> hrm
<havenwood> &>> '🇬🇧'.codepoints.map { |codepoint| codepoint.chr('utf-8') }
<rubydoc> # => ["🇬", "🇧"] (https://carc.in/#/r/8rh0)
<havenwood> Oh, right.
<havenwood> &>> COUNTRY_LETTERS = 'A'.upto('Z').each.with_index(127462).to_h; COUNTRY_LETTERS.values_at('G', 'B')
<rubydoc> # => [127468, 127463] (https://carc.in/#/r/8rh1)
<xco> oh i think get what you're trying to do
<xco> with this
<xco> i insert the iso
<xco> and get the codepoints for the flag
<xco> how do i actually get the emoji?
<havenwood> &>> COUNTRY_LETTERS = 'A'.upto('Z').each.with_index(127462).to_h; COUNTRY_LETTERS.values_at('G', 'B').pack('U*')
<rubydoc> # => "🇬🇧" (https://carc.in/#/r/8rh2)
<havenwood> xco: Like that ^
<xco> this is nice!
<xco> but i have lots of questions
<xco> just a few
<xco> what's this "127462"?
<umu> utf
<havenwood> &>> 127462.chr('utf-8')
<rubydoc> # => "🇦" (https://carc.in/#/r/8rh3)
<havenwood> &>> 127462.chr('utf-8').bytes
<rubydoc> # => [240, 159, 135, 166] (https://carc.in/#/r/8rh4)
<havenwood> xco: It's a multi-byte codepoint for a UTF-8 character.
<havenwood> xco: Like umu is saying.
<xco> ah i missed his comment!
<xco> ok got that
<xco> now i want to ask why you're passing that param to #pack
<xco> but i'm going to check the documentation
caterfxo has joined #ruby
<xco> Packs the contents of arr into a binary sequence according to the directives in aTemplateString
<havenwood> xco: I'd write it something like that ^
<xco> ok i got this now
<umu> so I believe that pack handles the conversion from decimal code point to encoded UTF byes
<havenwood> xco: It's a fun way to get an emoji flag. :)
<xco> this is so cool
<umu> utf is cool once you wield its power
<xco> it's weird for me but i think it's learnable
dinfuehr has quit [Ping timeout: 256 seconds]
<umu> but, utf bytes can also give probs
<havenwood> xco: Feel free to steal my code. Just credit me @havenwood in your commit. :)
<xco> umu the whole encoding stuff is a hurdle
<xco> havenwood will do
<havenwood> xco: It should *just work* and not much to it. :)
<umu> xco: I think of it as packaging the same thing for different clients
<umu> if you look at my link, you will see many other encodings,
dinfuehr has joined #ruby
<umu> and the java methods for the utf char code points may be worth a quick peek, esp the second last one
<xco> looking
<xco> tbh i didn't know there was #with_index until now daaamn
<xco> :D :D
dan64 has quit [Ping timeout: 246 seconds]
<xco> havenwood your gist took me to a whole new level of enlightenment hahahah
<umu> &>> 127462.chr('utf-8').valid_encoding?
<rubydoc> # => true (https://carc.in/#/r/8rh5)
<umu> yay its valid!
<xco> :)
<havenwood> xco: Oh, also you can drop the `.each`.
<havenwood> xco: Updated the gist. :
<havenwood> :)
<havenwood> (Already an Enumerator.0
<xco> got it
ellcs has quit [Ping timeout: 246 seconds]
<xco> phaul got offended that i said i'm enjoying my time working with Ruby in quarantine, i deleted my post, don't want to send the wrong msg to people like you :) no hard feelings
tpanarch1st has joined #ruby
<phaul> man. no hard feelings. or offending. it's ok if you enjoy ruby and programming, we all do. I reacted to your reddit, in it's own context.
<phaul> its*
<phaul> i think it's not good to post a post about best times, in the generic context
<xco> phaul ok i understand your point :) but please don't think this whole situation makes me happy, it saddens me a lot, that's why i deleted my post because some people MIGHT shift contexts
<phaul> you might want to re-prhase it... and post it again..
schne1der has quit [Ping timeout: 246 seconds]
jmcgnh has quit [Remote host closed the connection]
<xco> phaul ok cool... i may later ;)
pupsikov has joined #ruby
mikecmpbll has joined #ruby
pupsikov has quit [Client Quit]
_phaul has joined #ruby
leitz has quit [Quit: Leaving]
armatechnicos has joined #ruby
phaul has quit [Ping timeout: 256 seconds]
fluxAeon has quit [Ping timeout: 256 seconds]
phaul has joined #ruby
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_phaul has quit [Ping timeout: 250 seconds]
TCZ has quit [Quit: Leaving]
Arkantos has quit [Quit: Textual IRC Client: www.textualapp.com]
drincruz has quit [Ping timeout: 240 seconds]
troulouliou_div2 has joined #ruby
jmcgnh has joined #ruby
cschneid has quit [Ping timeout: 246 seconds]
cschneid has joined #ruby
arahael1 has joined #ruby
Arahael has quit [Ping timeout: 264 seconds]
phaul has quit [Ping timeout: 264 seconds]
Jonopoly has quit [Quit: WeeChat 2.5]
phaul has joined #ruby