havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.0, 2.5.3, 2.4.5: 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!
d^sh has quit [Ping timeout: 258 seconds]
d^sh has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 250 seconds]
AJA4351 is now known as AJA4350
arekushi has quit [Ping timeout: 252 seconds]
vikaton has quit [Quit: Connection closed for inactivity]
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
ellcs has quit [Ping timeout: 250 seconds]
gix has quit [Ping timeout: 250 seconds]
mat_bug has joined #ruby
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
r29v has joined #ruby
mat_bug has quit [Ping timeout: 250 seconds]
ModusPwnens has quit [Quit: Page closed]
wolfshappen has quit [Ping timeout: 245 seconds]
jottr has quit [Ping timeout: 250 seconds]
sputnik13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nchambers has joined #ruby
themsay has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mat_bug has joined #ruby
mat_bug has quit [Ping timeout: 252 seconds]
orbyt_ has joined #ruby
uplime has quit [Ping timeout: 245 seconds]
r29v has quit [Quit: r29v]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 268 seconds]
AJA4351 is now known as AJA4350
mikecmpbll has quit [Quit: inabit. zz.]
[Butch] has quit [Quit: Textual IRC Client: www.textualapp.com]
mat_bug has joined #ruby
themsay has quit [Ping timeout: 268 seconds]
hutch has joined #ruby
mat_bug has quit [Ping timeout: 252 seconds]
bmurt has joined #ruby
mat_bug has joined #ruby
\void has quit [Quit: So long, and thanks for all the fish.]
juria_roberts has joined #ruby
<juria_roberts> How to I add a string to all of the lists in the array? https://justpaste.it/77gxq
AJA4351 has joined #ruby
<baweaver> juria_roberts: what have you tried?
AJA4350 has quit [Ping timeout: 245 seconds]
AJA4351 is now known as AJA4350
<juria_roberts> baweaver: tr.map! {|item| item[:posix_groups] = ["ddd"]}
<juria_roberts> oops
<juria_roberts> baweaver: tr.map! {|item| item[:list] = ["ddd"]}
<baweaver> y'know just giving us the original names is going to help a lot more
<baweaver> and posix groups aren't exactly sensitive.
<baweaver> Firstly avoid using ! methods. It won't help you in this case.
<baweaver> map transforms elements using a function
<baweaver> and the value it returns? In this case the result of `item[:list] = ...`
jottr has joined #ruby
<baweaver> So you just get back a bunch of `['ddd']` s
<juria_roberts> yup thats what I got
<juria_roberts> Should I not use map?
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<baweaver> After this I would definitely suggest learning more about Enumerable
<baweaver> In this particular case, no.
<baweaver> What's your actual code look like?
<juria_roberts> thats all there is
<juria_roberts> setting the array and then modifying it
<baweaver> Then why not just put it on the original definition?
<juria_roberts> actually the array is in a dependency
<juria_roberts> that I have no control over
<juria_roberts> I just need to add another posix group
<baweaver> Oh, so there is more to the code.
<juria_roberts> Yeah, but its not an important detail
<baweaver> It is, because it can change the context.
<baweaver> The easiest solution is to use `each` and `push`.
<juria_roberts> Will give it shot
<juria_roberts> Awesome, it works
<SeepingN> ah, push it
mat_bug has quit [Ping timeout: 252 seconds]
jottr has quit [Ping timeout: 272 seconds]
AJA4350 has quit [Remote host closed the connection]
tdy has joined #ruby
mozzarella has quit [Quit: WeeChat 2.2]
wolfshappen has joined #ruby
sylario has quit [Quit: Connection closed for inactivity]
hutch has quit [Ping timeout: 258 seconds]
mat_bug has joined #ruby
mat_bug has quit [Ping timeout: 252 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tiff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tiff has joined #ruby
nchambers is now known as uplime
dviola has quit [Quit: WeeChat 2.3]
tdy has quit [Ping timeout: 246 seconds]
mat_bug has joined #ruby
elcontrastador has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mat_bug has quit [Ping timeout: 252 seconds]
SeepingN has quit [Ping timeout: 246 seconds]
hutch has joined #ruby
mat_bug has joined #ruby
hutch has quit [Ping timeout: 240 seconds]
tdy has joined #ruby
mat_bug has quit [Ping timeout: 252 seconds]
mat_bug has joined #ruby
tdy has quit [Ping timeout: 258 seconds]
mat_bug has quit [Ping timeout: 252 seconds]
sanscoeur has quit [Ping timeout: 250 seconds]
hutch has joined #ruby
juria_roberts has quit [Ping timeout: 256 seconds]
dbugger_ has joined #ruby
Dbugger has quit [Ping timeout: 250 seconds]
mat_bug has joined #ruby
tag has quit [Quit: Connection closed for inactivity]
mat_bug has quit [Ping timeout: 252 seconds]
cschneid has joined #ruby
duderonomy has joined #ruby
mat_bug has joined #ruby
mat_bug has quit [Ping timeout: 252 seconds]
tdy has joined #ruby
lytol_ has quit [Remote host closed the connection]
tdy has quit [Ping timeout: 240 seconds]
mat_bug has joined #ruby
segy has quit [Quit: ZNC - http://znc.in]
dviola has joined #ruby
mat_bug has quit [Ping timeout: 252 seconds]
tpanarch1st has joined #ruby
<tpanarch1st> hi, is it possible to set up a mysql database connection without developing an app using ruby on rails please - the reason i ask is because all of the youtube tutorials cover rails
jottr has joined #ruby
<baweaver> tpanarch1st: Use Sequel
<tpanarch1st> oh yeah sure but i presume that there is some reading to do in relation to ruby
<tpanarch1st> and i cant even find anything that doesn't tell you to do it using rails
<tpanarch1st> thanks for this :)
<tpanarch1st> is there something a bit more basic and a bit more comprehensive please - for a start, i'm looking to do this with mysql
<tpanarch1st> in other words, geared towards a newbie!
<baweaver> How much Ruby do you currently know?
<tpanarch1st> i've watched giraffe's tutorials on youtube
<havenwood> tpanarch1st: What are you making?
<tpanarch1st> now ready to have a play
<tpanarch1st> i want to make a database for my vinyl collection!
<baweaver> I'd probably start on codewars.com
segy has joined #ruby
<tpanarch1st> ok just clicking this
chouhoulis has quit [Remote host closed the connection]
<tpanarch1st> oh that's a bit much, i just want to hit problems, research solutions and learn "on the job!"
<tpanarch1st> i just can't find a starting point for "how to work with mysql with ruby"
<havenwood> tpanarch1st: Ruby ships with support for a very simple DB called DBM.
<tpanarch1st> not ruby on rails - bit beyond me this framework stuff currently
<tpanarch1st> can i by any means stick with what i know and work with mysql havenwood :)
mat_bug has joined #ruby
<tpanarch1st> i'm quite excited by ruby, i'd heard about it before but i've now spent a few hours watching youtube and i think it seems a lot more friendly than php as a mild dyslexic that struggles with syntax matters
jottr has quit [Ping timeout: 268 seconds]
<tpanarch1st> i'm struggling to find a search term that doesn't involve rails
<tpanarch1st> it blew my mind that stuff, it seems obvious to work on a ruby website before moving into playing with rails
hutch has quit [Ping timeout: 268 seconds]
<havenwood> tpanarch1st: You can use the mysql2 gem directly or use it from the Sequel gem.
<havenwood> tpanarch1st: Have you created a simple Rack app? Or a Roda or Sinatra app?
<tpanarch1st> i may appear totally thick here but the first time gems was mentioned was in terms of rails
<tpanarch1st> no idea what those things are :) frameworks are well beyond me as yet!
<baweaver> It takes a while to get all these things sorted
<baweaver> and everyone has to start somewhere on it
<baweaver> If I were you I would consider starting with CSVs
<baweaver> make a "database" using files
<tpanarch1st> i've watched tutorials that shout "learn the freaking language before trying to move to their frameworks"!
<havenwood> tpanarch1st: We call snippets of Ruby code we package and share "Gems."
sarink has quit [Remote host closed the connection]
<baweaver> Eh, do what feels fun to you
<tpanarch1st> oooh so gems is not exclusive to rails havenwood
<baweaver> Most of those people yell that to the wind, I tend to ignore them
<tpanarch1st> it seems logical to play with ruby's tools to get a website up
<tpanarch1st> oh wow baweaver
<tpanarch1st> this approach seems to fit with where my heart is though
<baweaver> Just go straight for Rails if that's what interests you
<baweaver> then fill in the knowledge as you go.
<baweaver> "The Rails Tutorial" is a decent place to start as it goes through enough Ruby to get started
mat_bug has quit [Ping timeout: 252 seconds]
<tpanarch1st> too much for me, i want to play with what giraffe's tutorials tought me but actually do a project that appeals
<tpanarch1st> giraffe's didn't cover mysql though
<tpanarch1st> or databases at all
<baweaver> Rails tutorial goes through building basically Twitter
<tpanarch1st> yeah head overload there with rails
<tpanarch1st> want to try and avoid this MVC stuff (is it MVC?) for the moment
hutch has joined #ruby
<tpanarch1st> so the Mysql2::Client.new( i presume is the starting point here - what is mysql2 as well?
<tpanarch1st> (please and thanks)
<tpanarch1st> is anybody else familiar with the giraffe tutorials as well - i really liked the way he taught
<havenwood> tpanarch1st: mysql2 is a gem. You can install it with: gem install mysql2
<havenwood> tpanarch1st: then from Ruby you can use it: require 'mysql2'
<tpanarch1st> ah so, i take on board that gems are not unique to framework?
<havenwood> tpanarch1st: Gems are just snippets of Ruby code that people are sharing in formalized packages.
<tpanarch1st> but i'm sitting here thinking "I have my own web server", where to start with installing stuff, is this like installing php mods?
<havenwood> tpanarch1st: It's like downloading some code and evaling that code from the Ruby interpreter. It's not like apache modules, per se.
<havenwood> tpanarch1st: You're not loading the code for all Ruby programs. Just yours.
<tpanarch1st> oh Lord, this is a messy learning curve!
<tpanarch1st> i don't even know where to start, my way is a) avoid overload (the way my mind works) and just stick with things I know, like mysql, where i can (not an expert in mysql mind but i can muddle through with that i think)
<havenwood> tpanarch1st: Start with in-memory.
<tpanarch1st> what is that please?
<tpanarch1st> i dont have much memory on my server, i am hammering it with proxmox!
<havenwood> tpanarch1st: Not saving anything to disk - just model it in Ruby.
<tpanarch1st> i think i need to study some more but what materials should i use following on from giraffe's tutorials please, i'm clearly not ready
<tpanarch1st> not the best reader - better with videos
<havenwood> tpanarch1st: I'm not familiar with giraffe. Show your code? We could probably help.
<tpanarch1st> i'm lost with getting ruby up and running let alone coding it :-D
<havenwood> tpanarch1st: Do you have Ruby installed?
<tpanarch1st> that's why i say i'm clearly not ready :)
<baweaver> Eh
<havenwood> Start with installing Ruby.
<baweaver> No one's ever "ready"
<baweaver> We just wing it as we go and hope for the best
<tpanarch1st> i don't know havenwood to be honest - i have entire access to my linux box though :)
<tpanarch1st> thanks for your humble answer there baweaver :)
<havenwood> tpanarch1st: From the command line, type: ruby -v
<tpanarch1st> ah yeah, sugar, i've seen that before!
<baweaver> Give me a year or so and I could recommend you a Ruby book.
<tpanarch1st> hehe
<tpanarch1st> just ssh'ing in
<baweaver> Eloquent Ruby at the moment.
<tpanarch1st> beanie@jacob2:~$ ruby -v
<tpanarch1st> ruby 2.3.3p222 (2016-11-21) [x86_64-linux-gnu]
<havenwood> tpanarch1st: So you have Ruby 2.3. It's a bit dated, but it'll do.
<tpanarch1st> sweet :)
<havenwood> tpanarch1st: Now type: irb
<tpanarch1st> sure
<baweaver> irb is a...
<baweaver> freaking ninja
<havenwood> ;)
<havenwood> ?irb tpanarch1st
<ruby[bot]> tpanarch1st: irb is "interactive ruby", it is part of ruby. You can run ruby code and see results immediately. it's useful for testing code. Also see ?pry, a gem which is a popular alternative to irb.
<tpanarch1st> ah yeah i've seen a tutorial on this
<tpanarch1st> irb(main):001:0>
<tpanarch1st> it doesn't save anything
<tpanarch1st> im better with getting some sort of draft website up
<tpanarch1st> and seeing it in the browser
<havenwood> tpanarch1st: Try: 42 * 42
<havenwood> tpanarch1st: Or: print "Hello world"
<tpanarch1st> plus it saves my work!
<baweaver> Let's start with some Ruby itself
<tpanarch1st> oh yeah - i get that you can do the maths equations, i've watched a tutorial on that
<havenwood> tpanarch1st: So how would you represent a list of things?
<baweaver> Have you experienced the magic of Enumerable?
sarink has joined #ruby
braincrash has quit [Quit: bye bye]
<tpanarch1st> well havenwood the syntax is a tricky matter but the basic logic is the same as any other programming language - use an array
<baweaver> I swear you're reading my train of thought
<baweaver> How would you, say, double every element of that array?
<tpanarch1st> never heard of an enumerable (i don't think)
<havenwood> tpanarch1st: Great, yes, in Ruby the Array literal is square braces. This is an empty Array: []
<baweaver> &>> [1, 2, 3]
<rubydoc> # => [1, 2, 3] (https://carc.in/#/r/602r)
<havenwood> tpanarch1st: In irb, ask it if it's empty: [].empty?
<tpanarch1st> oh yeah, i can refer back to Giraffe Academy for that -that's my plan to hard code his stuff in my brain :)
<havenwood> &>> [1, 2, 3].empty?
<rubydoc> # => false (https://carc.in/#/r/602s)
<havenwood> tpanarch1st: Are you familiar with Hashes?
<baweaver> Dictionaries in other languages
<baweaver> or HashMaps
<tpanarch1st> never heard of mashes - this is my life - i know dribs and drabs of allsorts :-D
<tpanarch1st> jack of trades, master of none!
<tpanarch1st> all*
<havenwood> {"key" => "value", "another key" => "another value"}
<baweaver> Do you know the full version of that quote?
<baweaver> It means something quite different.
mat_bug has joined #ruby
<tpanarch1st> no is the short answer here!
<baweaver> A jack of all trades is a master of none, but oftentimes better than a master of one.
<tpanarch1st> ah thanks :)
<tpanarch1st> yep so your last question is where my lack of knowledge fails me!
braincrash has joined #ruby
<baweaver> Want to experience something really out there with Ruby?
<tpanarch1st> it's 4:07am here essentially, so i just thought "do some basic reading for my project"
<baweaver> Firstly, do you know what an anonymous function is?
<tpanarch1st> maybe baweaver as long as it don't stuff the server :)
<baweaver> &>> [1, 2, 3].map { |v| v * 2 }
<rubydoc> # => [2, 4, 6] (https://carc.in/#/r/602t)
<tpanarch1st> no idea what an anonymous function is - i know what a function is so does it somehow hide your identity or add to security
<baweaver> map is a function that takes a function
<baweaver> In this case it takes a function which takes one input, named v, and returns that input doubled
<tpanarch1st> ok you're going beyond me, misleading you in any way with what I know (and what I don't) would not help!
<havenwood> tpanarch1st: Here's a little Rack webserver for you: https://gist.github.com/havenwood/f2374f754c1f02a8f9e8c09f5726011e
<tpanarch1st> can you give me a really layments english term please :)
<havenwood> tpanarch1st: Save that as config.ru and you can run it with: rackup
<baweaver> Well if you want to have some interesting fun in Ruby, this talk is a bit of a treat - https://www.youtube.com/watch?v=x3b9KlzjJNM
<tpanarch1st> english explanation even*
<tpanarch1st> thanks havenwood :)
<baweaver> You can learn Ruby with cartoon lemurs :D
<tpanarch1st> right so to be totally honest with you havenwood, the def bit i know is the format for functions but the 200 and content type etc, never seen that before
mat_bug has quit [Ping timeout: 252 seconds]
<tpanarch1st> :-p baweaver
<baweaver> The presenter is out of their danged mind
<baweaver> I'm surprised they let them on stage
<havenwood> tpanarch1st: In Rack, you respond to requests with three parts, 1) the status code, 2) a Hash of the HTTP headers, and 3) the body.
<tpanarch1st> i'm not lazy but i've been totally locked out of programming because I am entirely crap at reading technical documents
baweaver is now known as lemur
<havenwood> tpanarch1st: The 200 is just the status code for "OK"
<bougyman> and 418 is "I'm a teapot"
<lemur> No one likes dull tech docs D:
<havenwood> tpanarch1st: These are the headers: {'Content-Type' => 'text/plain'}
<lemur> bougyman: watch that talk above
<tpanarch1st> havenwood: to take a step back, i seem to remember 200 being ok (absolutely no idea where i've heard that before, is that http??) what is rack please?
<lemur> and pay close attention to the background elements :D
<bougyman> lemur: I have :)
<lemur> I may have made that joke
lemur is now known as baweaver
<baweaver> hehehe
<baweaver> lemur was my original alias
<havenwood> tpanarch1st: Yes, it's an HTTP status code. 200 OK
<baweaver> I still keep it about
<tpanarch1st> oh Lord, baby steps if you have the patience please
<havenwood> tpanarch1st: Rack is a gem.
<tpanarch1st> i'm trying to grasp on to the little things that you are saying currently and trying to cling on for dear life
<al2o3-cr> &>> require 'net/http/status'; Net::HTTP::STATUS_CODES[200]
<rubydoc> # => "OK" (https://carc.in/#/r/602u)
<baweaver> How did you remember that al2o3-cr?
<baweaver> You and havenwood are encyclopedias
<tpanarch1st> oh it's ok if we are talking http this is fine right, it's pretty straight forward that, it's the "meat" of the wqeb
<tpanarch1st> web*
<tpanarch1st> how does http fit in with all of this, i'm totally surprised that http codes have come into the conversation so you can see how lost I am
<al2o3-cr> &>> require 'net/http/status'; Net::HTTP::STATUS_CODES[404]
<rubydoc> # => "Not Found" (https://carc.in/#/r/602v)
<tpanarch1st> what are you trying to tell me please al2o3-cr :)
<havenwood> tpanarch1st: When you a web request with your browser or an API, you're just opening a socket and sending some text over it. It's a spec.
<tpanarch1st> i presume rubydoc is a bot
<tpanarch1st> ok so how does that come into a programming language, i've given up with php (i think)
<baweaver> &>> require 'net/http/status'; [200, 404, 418, 503].map { |code| [code, Net::HTTP::STATUS_CODES[code]] }.to_h
<rubydoc> # => {200=>"OK", 404=>"Not Found", 418=>nil, 503=>"Service Unavailable"} (https://carc.in/#/r/602w)
<baweaver> Boo
<tpanarch1st> but in php conversations, noones ever mentioned a http code
<baweaver> They left off 418
<tpanarch1st> oh yeah i know 500 is a php f**kup
<tpanarch1st> or any programme language's f**kup
<tpanarch1st> 403 is not an authorised etc
<al2o3-cr> baweaver: to_h now :)
<tpanarch1st> unauthorised*
<tpanarch1st> failed login in english
<havenwood> tpanarch1st: You can respond to a request with any code you'd like. In the Rack spec, this first thing is that response code.
<baweaver> 2xx - that's normal; 3xx - Nah, it's over there somewhere; 4xx - wtf are you doing?; 5xx - wtf am _I_ doing?
<al2o3-cr> require 'net/http/status'; [200, 404, 418, 503].to_h { |code| [code, Net::HTTP::STATUS_CODES[code]] }
<al2o3-cr> &>> require 'net/http/status'; [200, 404, 418, 503].to_h { |code| [code, Net::HTTP::STATUS_CODES[code]] }
<rubydoc> # => {200=>"OK", 404=>"Not Found", 418=>nil, 503=>"Service Unavailable"} (https://carc.in/#/r/602x)
<elomatreb> 1xx - Do something else
<tpanarch1st> so, in really basic terms, how have we come on to http status codes in a conversation about ruby, you're obviously trying to teach me something here and I appreciate your time :)
<baweaver> Ah, they get 2.6 up?
<al2o3-cr> oh yeah :P
<tpanarch1st> never heard of a 418 or a 503 :-p
<tpanarch1st> i could stop being lazy and go on to wiki for that :-p
* baweaver should probably go get groceries already
<havenwood> tpanarch1st: In Ruby most webservers (Rails included) use Rack under the hood. You can make a simple Rack app directly to start groking what's going on.
<tpanarch1st> baweaver: you're not a covert drug dealer are you :-p :-p
<havenwood> tpanarch1st: It's a spec for handling HTTP 1.1 requests and responses.
<baweaver> My drug is Ruby
<baweaver> and you've already been dealt
<tpanarch1st> wicked, so this is a great start - "Ruby uses Rack under the hood"
<tpanarch1st> so taking it from there, what the goodness is rack!
<baweaver> Now where's shevy with that danged quotes list
<havenwood> tpanarch1st: https://rack.github.io/
<tpanarch1st> will this give a total newbie a good idea
<tpanarch1st> oh wicked yes it does
<havenwood> tpanarch1st: It takes web requests, gives you an `env` Hash with info about the request and then you give it the response.
<baweaver> Rails uses Rack under the hood
mat_bug has joined #ruby
<baweaver> Rack is written in RUby
<tpanarch1st> ok so just to paste this
<tpanarch1st> To use Rack, provide an "app": an object that responds to the call method, taking the environment hash as a parameter, and returning an Array with three elements:
hutch has quit [Ping timeout: 268 seconds]
<havenwood> tpanarch1st: Yes, so that little snippet I wrote is one way to do that ^
<tpanarch1st> a) what is an app, b) what is a call method c) i thought hashes were things like md5 and d_ where does an array come into it when i haven't even started writing code :)
<havenwood> tpanarch1st: a) an app is an application, which in the sense of web application is a little server that responds to HTTP requests with HTTP responnses
<tpanarch1st> i think there needs to be a "ruby in basic english" website and then i can continue :-p
<tpanarch1st> cool so can we say my web server is an app
<havenwood> tpanarch1st: yes
<tpanarch1st> ok cool, so i shall substitute that word in my brain :)
<havenwood> tpanarch1st: b) a call method is a method named #call.
<havenwood> def call
<tpanarch1st> and rack doesn't provide my web server though :) a quicker way is can someone rewrite that quote in really dumbass terms for me please
<tpanarch1st> i won't take offence, the more basic the better!
mat_bug has quit [Ping timeout: 252 seconds]
<tpanarch1st> and not bbc basic either :-p :-p
<havenwood> tpanarch1st: You can write an HTTP request by hand and type it out over socket. We don't though, since that's tedious. We use http clients.
<tpanarch1st> yeah in other words a web browser right
dviola has quit [Quit: WeeChat 2.3]
<tpanarch1st> that does that stuff for you i thought
<havenwood> tpanarch1st: Likewise, you can parse each HTTP request yourself when you receive it, but handling those connections and doing the parsing is tedious and complicated.
<havenwood> tpanarch1st: Rack ties together a pluggable webserver and a spec for easily creating web apps that respond to HTTP requests with HTTP responses.
<uplime> tpanarch1st: (c) md5 is a hashing algorithm. hash in this case refers to a Hashmap (which internally will use a hashing algorithm, but probably not md5). you might have seen it called an associative array or dictionary
<uplime> its got the syntax of { key => value } or { key_sym: value }
<tpanarch1st> oh cool, yeah last two terms i've heard of uplime
<havenwood> c ^
<baweaver> d?
<uplime> tpanarch1st: cool, its a similar idea in ruby
<tpanarch1st> so like everything i've heard so far is not a basic start to php, there's obviously a good reason for this but i'm clearly failing to grasp it
gothicsouth has joined #ruby
<tpanarch1st> it might help if i make clear i've never become competent in even one programming language :)
<baweaver> Gotta start somewhere :D
porg has joined #ruby
<tpanarch1st> yeah indeed
<tpanarch1st> so like, this is not meant to be rude, and how often do comments get taken the wrong way by text") but how does http requests, rack etc come into starting to type some code and shove some crap in a database and query it please
hutch has joined #ruby
\void has joined #ruby
<tpanarch1st> thanks ever so much guys, i'm going to go to bed now :)
mat_bug has joined #ruby
tag has joined #ruby
tdy has joined #ruby
tpanarch1st has quit [Quit: Thanks for your help, nice to see you, take care.]
mat_bug has quit [Ping timeout: 252 seconds]
gothicsouth has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Sauvin has joined #ruby
mat_bug has joined #ruby
cschneid has quit [Remote host closed the connection]
bga57 has quit [Ping timeout: 245 seconds]
mat_bug has quit [Ping timeout: 250 seconds]
hutch has quit [Ping timeout: 272 seconds]
davidw has quit [Ping timeout: 246 seconds]
dinfuehr has quit [Ping timeout: 258 seconds]
dinfuehr has joined #ruby
za1b1tsu has joined #ruby
dinfuehr has quit [Ping timeout: 246 seconds]
dinfuehr has joined #ruby
dinfuehr has quit [Ping timeout: 250 seconds]
dinfuehr has joined #ruby
tdy has quit [Ping timeout: 268 seconds]
jottr has joined #ruby
dinfuehr has quit [Ping timeout: 268 seconds]
dinfuehr has joined #ruby
jottr has quit [Ping timeout: 258 seconds]
dinfuehr has quit [Ping timeout: 268 seconds]
dinfuehr has joined #ruby
mozzarella has joined #ruby
sarink has quit [Remote host closed the connection]
drbrain has quit [Quit: Goodbye]
sarink has joined #ruby
mat_bug has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mat_bug has quit [Ping timeout: 252 seconds]
esrse has joined #ruby
reber has joined #ruby
conta has joined #ruby
dellavg_ has joined #ruby
Inline has quit [Quit: Leaving]
rawrg has joined #ruby
\void has quit [Quit: So long, and thanks for all the fish.]
mat_bug has joined #ruby
paranoicsan has joined #ruby
rawrg has quit [Remote host closed the connection]
aupadhye has joined #ruby
mat_bug has quit [Ping timeout: 252 seconds]
vondruch has quit [Ping timeout: 258 seconds]
gothicsouth has joined #ruby
zapata_ has joined #ruby
zapata has quit [Ping timeout: 252 seconds]
mat_bug has joined #ruby
cd has quit [Quit: cd]
tiff has quit [Quit: Textual IRC Client: www.textualapp.com]
cnsvc has joined #ruby
jcarl43 has joined #ruby
mat_bug has quit [Ping timeout: 252 seconds]
m27frogy has quit [Ping timeout: 268 seconds]
gothicsouth has quit [Quit: Textual IRC Client: www.textualapp.com]
kapil____ has joined #ruby
m27frogy has joined #ruby
mat_bug has joined #ruby
sgen has joined #ruby
am0123 has joined #ruby
mat_bug has quit [Ping timeout: 252 seconds]
jottr has joined #ruby
Xiti has quit [Quit: Xiti]
Xiti has joined #ruby
jottr has quit [Ping timeout: 258 seconds]
themsay has joined #ruby
jcarl43 has quit [Quit: WeeChat 2.3]
<havenwood> Like HashWithIndifferentAccess? You'll love RangeWithIndeterminateExclusion! https://gist.github.com/havenwood/bdc8b23f8ec374ec3e0c9a330ee30938
mat_bug has joined #ruby
xrexeon has joined #ruby
xrexeon has quit [Max SendQ exceeded]
paranoicsan has quit [Quit: paranoicsan]
porg has quit [Quit: ...]
dbugger_ has quit [Remote host closed the connection]
reber has quit [Remote host closed the connection]
Dbugger has joined #ruby
aufi has joined #ruby
paranoicsan has joined #ruby
<tbuehlmann> havenwood: heh
clemens3 has joined #ruby
clemens3 has quit [Ping timeout: 258 seconds]
clemens3_ has joined #ruby
vondruch has joined #ruby
cthulchu has quit [Ping timeout: 246 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
sylario has joined #ruby
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
vondruch has quit [Client Quit]
mat_bug has quit [Ping timeout: 252 seconds]
cnsvc has quit [Ping timeout: 256 seconds]
tag has quit [Quit: Connection closed for inactivity]
mat_bug has joined #ruby
mat_bug has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
mikecmpb_ has joined #ruby
mikecmpbll has quit [Ping timeout: 272 seconds]
uplime has quit [Quit: WeeChat 2.2]
sgen has quit [Ping timeout: 250 seconds]
paranoicsan is now known as paranoicsan[Away
paranoicsan[Away has quit [Quit: paranoicsan[Away]
paranoicsan has joined #ruby
profetes_ has joined #ruby
profetes_ has quit [Client Quit]
ellcs has joined #ruby
MuffinPimp has quit [Read error: Connection reset by peer]
jottr has joined #ruby
MuffinPimp has joined #ruby
za1b1tsu has quit [Ping timeout: 250 seconds]
evdubs__ has quit [Remote host closed the connection]
evdubs__ has joined #ruby
xrexeon has joined #ruby
mozzarella has quit [Remote host closed the connection]
mozzarella has joined #ruby
CrazyEddy has quit [Remote host closed the connection]
CrazyEddy has joined #ruby
paranoicsan has quit [Quit: paranoicsan]
za1b1tsu has joined #ruby
za1b1tsu has quit [Remote host closed the connection]
leah2 has quit [Ping timeout: 260 seconds]
nitza has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nitza has quit [Quit: Mutter: www.mutterirc.com]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
ur5us has quit [Ping timeout: 268 seconds]
DTZUZO has quit [Ping timeout: 244 seconds]
MuffinPimp_ has joined #ruby
MuffinPimp has quit [Ping timeout: 268 seconds]
MuffinPimp_ is now known as MuffinPimp
venmx has joined #ruby
sarink has quit [Remote host closed the connection]
nowhere_man has quit [Ping timeout: 252 seconds]
sarink has joined #ruby
conta has quit [Ping timeout: 258 seconds]
sarink has quit [Ping timeout: 250 seconds]
profetes has quit [Ping timeout: 252 seconds]
soyeomul^bionic has joined #ruby
SuperL4g has joined #ruby
paranoicsan has joined #ruby
SuperLag has quit [Ping timeout: 246 seconds]
kapil____ has quit [Quit: Connection closed for inactivity]
AJA4350 has joined #ruby
nowhere_man has joined #ruby
xrexeon_ has joined #ruby
conta has joined #ruby
xrexeon has quit [Ping timeout: 250 seconds]
nowhere_man has quit [Ping timeout: 246 seconds]
conta has quit [Ping timeout: 258 seconds]
conta has joined #ruby
leah2 has joined #ruby
Furai has quit [Quit: WeeChat 2.3]
Furai has joined #ruby
nowhere_man has joined #ruby
reber has joined #ruby
soyeomul^bionic has quit [Quit: ERC (IRC client for Emacs 26.1)]
yasumi2136 has joined #ruby
am0123 has quit [Quit: Leaving]
aupadhye has quit [Ping timeout: 244 seconds]
aupadhye has joined #ruby
bairyn has joined #ruby
ByronJohnson has quit [Ping timeout: 245 seconds]
aupadhye has quit [Ping timeout: 245 seconds]
paranoicsan is now known as paranoicsan[Away
paranoicsan[Away has quit [Quit: paranoicsan[Away]
paranoicsan has joined #ruby
za1b1tsu has joined #ruby
esrse has quit [Ping timeout: 268 seconds]
za1b1tsu has quit [Read error: Connection reset by peer]
dante has joined #ruby
mikecmpb_ is now known as mikecmpbll
nowhere_man has quit [Ping timeout: 258 seconds]
bmurt has joined #ruby
cow[moo] has joined #ruby
exchgr` has joined #ruby
exchgr has quit [Ping timeout: 250 seconds]
paranoicsan has quit [Quit: paranoicsan]
NL3limin4t0r_afk has quit [Quit: WeeChat 1.9.1]
chouhoulis has joined #ruby
nowhere_man has joined #ruby
mangold has joined #ruby
orbyt_ has joined #ruby
sleetdrop has joined #ruby
za1b1tsu has joined #ruby
jgnagy has quit [Ping timeout: 240 seconds]
paranoicsan has joined #ruby
rippa has joined #ruby
jgnagy has joined #ruby
Rapture has joined #ruby
twobitsprite has joined #ruby
polishdub has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
BH23 has joined #ruby
Nicmavr has joined #ruby
paranoicsan has quit [Quit: paranoicsan]
sgen has joined #ruby
DTZUZO has joined #ruby
twobitsprite has quit [Ping timeout: 240 seconds]
SeepingN has joined #ruby
dinfuehr has quit [Ping timeout: 244 seconds]
dinfuehr has joined #ruby
aufi has quit [Read error: Connection reset by peer]
conta has quit [Ping timeout: 272 seconds]
aufi has joined #ruby
dinfuehr has quit [Ping timeout: 268 seconds]
chouhoulis has quit [Remote host closed the connection]
twobitsprite has joined #ruby
dinfuehr has joined #ruby
_whitelogger has joined #ruby
creat has quit [Ping timeout: 252 seconds]
dinfuehr has quit [Ping timeout: 268 seconds]
creat has joined #ruby
dinfuehr has joined #ruby
cthulchu has joined #ruby
mistym has joined #ruby
reber has quit [Read error: Connection reset by peer]
code_zombie has joined #ruby
coffeejunk has joined #ruby
tdy has joined #ruby
SeepingN has quit [Ping timeout: 258 seconds]
BH23 has quit [Ping timeout: 244 seconds]
ByronJohnson has joined #ruby
xrexeon_ has quit [Remote host closed the connection]
johnny56 has quit [Ping timeout: 272 seconds]
bairyn has quit [Ping timeout: 268 seconds]
sleetdrop has quit [Quit: Computer has gone to sleep.]
eddof13 has joined #ruby
dinfuehr has quit [Ping timeout: 268 seconds]
exchgr` is now known as exchgr
dinfuehr has joined #ruby
kapil____ has joined #ruby
eddof13 has quit [Quit: eddof13]
dinfuehr has quit [Ping timeout: 268 seconds]
dinfuehr has joined #ruby
conta has joined #ruby
chouhoulis has joined #ruby
profetes has joined #ruby
cthulchu has quit [Ping timeout: 246 seconds]
hutch has joined #ruby
yasumi2136 has quit [Quit: Konversation terminated!]
powerbit has quit [Ping timeout: 272 seconds]
lucasb has joined #ruby
davidw has joined #ruby
powerbit has joined #ruby
tdy has quit [Ping timeout: 258 seconds]
chouhoulis has quit [Remote host closed the connection]
thunderbirdtr has joined #ruby
conta2 has joined #ruby
rsh has joined #ruby
conta2 has quit [Ping timeout: 268 seconds]
reber has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SeepingN has joined #ruby
\void has joined #ruby
aufi has quit [Ping timeout: 244 seconds]
nowhere_man has quit [Ping timeout: 250 seconds]
conta has quit [Quit: conta]
gix has joined #ruby
duderonomy has joined #ruby
uplime has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 250 seconds]
AJA4351 is now known as AJA4350
themsay has quit [Ping timeout: 268 seconds]
themsay has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jcarl43 has joined #ruby
duderonomy has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
sputnik13 has joined #ruby
orbyt_ has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sarink has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
SeepingN has joined #ruby
elcontrastador has joined #ruby
lxsameer has joined #ruby
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
sgen has quit [Ping timeout: 250 seconds]
sanscoeur has joined #ruby
duderonomy has joined #ruby
[Butch] has joined #ruby
[Butch] has quit [Client Quit]
duderonomy has quit [Client Quit]
duderonomy has joined #ruby
Rapture has quit [Ping timeout: 240 seconds]
cthulchu_ is now known as cthulchu
troulouliou_div2 has joined #ruby
johnny56 has joined #ruby
rsh has quit [Quit: leaving]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
nowhere_man has joined #ruby
Tempesta has quit [Ping timeout: 272 seconds]
sauvin has quit [Read error: Connection reset by peer]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Dbugger has quit [Remote host closed the connection]
Rapture has joined #ruby
Dbugger has joined #ruby
bairyn has joined #ruby
ByronJohnson has quit [Ping timeout: 272 seconds]
venmx has quit [Ping timeout: 268 seconds]
duderonomy has joined #ruby
xrexeon has joined #ruby
[Butch] has joined #ruby
xrexeon has quit [Remote host closed the connection]
d^sh has quit [Ping timeout: 246 seconds]
r29v has joined #ruby
d^sh has joined #ruby
xrexeon has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has joined #ruby
sgen has joined #ruby
sanscoeur has quit [Read error: Connection reset by peer]
sanscoeur has joined #ruby
orbyt_ has quit [Ping timeout: 240 seconds]
kapil____ has quit [Quit: Connection closed for inactivity]
conta has joined #ruby
conta has quit [Ping timeout: 268 seconds]
reber__ has joined #ruby
reber has quit [Ping timeout: 246 seconds]
cd has joined #ruby
cnsvc has joined #ruby
djdduty has quit [Ping timeout: 258 seconds]
Tempesta has joined #ruby
reber__ has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
clemens3_ has quit [Ping timeout: 245 seconds]
orbyt_ has joined #ruby
djdduty has joined #ruby
sanscoeur has quit [Remote host closed the connection]
sanscoeur has joined #ruby
hutch has quit [Ping timeout: 250 seconds]
wildermind has joined #ruby
nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
reber has joined #ruby
reber__ has joined #ruby
cd has quit [Quit: cd]
conta has joined #ruby
nowhere_man has quit [Ping timeout: 252 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ivanskie has joined #ruby
conta has quit [Ping timeout: 258 seconds]
cnsvc has quit [Quit: WeeChat 2.3]
lucasb has quit [Quit: Connection closed for inactivity]
sgen has quit [Ping timeout: 268 seconds]
chouhoulis has joined #ruby
nowhere_man has joined #ruby
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
troulouliou_div2 has quit [Read error: Connection reset by peer]
chouhoulis has quit [Ping timeout: 250 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
tdy has joined #ruby
tdy has quit [Ping timeout: 268 seconds]
Rapture has joined #ruby
ur5us has joined #ruby
jtperreault has quit [Quit: WeeChat 1.4]
jtperreault has joined #ruby
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fiachetti has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
bairyn has quit [Ping timeout: 245 seconds]
ByronJohnson has joined #ruby
fiachetti has joined #ruby
hutch has joined #ruby
orbyt_ has joined #ruby
sarink has quit [Remote host closed the connection]
r29v has quit [Quit: r29v]
ivanskie has joined #ruby
jarlopez has joined #ruby
jarlopez has left #ruby [#ruby]
jaddison has joined #ruby
sarink has joined #ruby
Dbugger has quit [Remote host closed the connection]
Aqo has joined #ruby
uplime has quit [Remote host closed the connection]
MrPunkin has joined #ruby
<MrPunkin> Anyone familiar with Net::HTTP enough to help me figure out if there is a way to get the request URL from the response object?
jaddison has quit [Quit: jaddison]
brandonkal has quit [Quit: Textual IRC Client: www.textualapp.com]
jenrzzz has joined #ruby
AJA4351 has joined #ruby
MrPunkin has quit [Quit: MrPunkin]
AJA4350 has quit [Ping timeout: 246 seconds]
AJA4351 is now known as AJA4350
r29v has joined #ruby
szulak_ has joined #ruby
d^sh has quit [Ping timeout: 268 seconds]
dellavg_ has quit [Ping timeout: 258 seconds]
d^sh has joined #ruby
jaddison has joined #ruby
donofrio has quit [Quit: Leaving]
uplime has joined #ruby
<havenwood> mr_rich101: res.uri.to_s
<havenwood> oops, wrong mr
ivanskie has quit [Quit: Textual IRC Client: www.textualapp.com]
phaul has quit [Read error: Connection reset by peer]
donofrio has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
lxsameer has quit [Ping timeout: 250 seconds]
cd has joined #ruby
donofrio has quit [Ping timeout: 250 seconds]
hutch has quit [Ping timeout: 250 seconds]
profetes has quit [Quit: Leaving]
themsay has quit [Ping timeout: 258 seconds]
fredolinhares has joined #ruby
reber has quit [Remote host closed the connection]
reber__ has quit [Read error: Connection reset by peer]
phaul has joined #ruby
hurricanehrndz has quit [Quit: Goodbye]
jenrzzz has joined #ruby
lyusternik has joined #ruby
donofrio has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
nowhere_man has quit [Ping timeout: 252 seconds]
chouhoulis has quit [Remote host closed the connection]
jaddison_ has joined #ruby
hutch has joined #ruby
<fredolinhares> How do I get the "Gem" from C, in a C extension?
<fredolinhares> I want to call a Gem method from C with funcall.
jaddison has quit [Ping timeout: 268 seconds]
donofrio has quit [Ping timeout: 258 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nowhere_man has joined #ruby
donofrio has joined #ruby
donofrio has quit [Ping timeout: 246 seconds]
twobitsprite has quit [Ping timeout: 244 seconds]
AJA4350 has quit [Ping timeout: 244 seconds]
Aqo has quit [Quit: ChatZilla 0.9.92-rdmsoft [XULRunner 35.0.1/20150122214805]]
code_zombie has quit [Quit: Leaving]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
chouhoulis has joined #ruby
hutch has quit [Ping timeout: 250 seconds]
chouhoulis has quit [Ping timeout: 268 seconds]
brandonkal has joined #ruby
jenrzzz has joined #ruby
polishdub has quit [Remote host closed the connection]
szulak_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<fredolinhares> Found it: rb_const_get(rb_cObject, rb_intern("Gem"));
cschneid has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
<cschneid> Trying to find the source of an idea I ran into a long while ago, but trying to show to a junior dev. "Push messes to the edge of your system" - I thought it was a sandi metz book or blog post, but I can't seem to find it. Anybody have any ideas?
orbyt_ has joined #ruby
donofrio has joined #ruby
donofrio has quit [Ping timeout: 268 seconds]
<leftylink> that wouldn't be gary bernhardt's boundaries talk, would it...
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mat_bug has joined #ruby
[Butch] has quit [Quit: Textual IRC Client: www.textualapp.com]
<cschneid> maybe, let me go skim it
<cschneid> I've read & followed too much great content in my time in ruby! Shoulda taken notes
mat_bug has quit [Ping timeout: 252 seconds]
hutch has joined #ruby
r29v has quit [Quit: r29v]
mat_bug has joined #ruby
gix has quit [Ping timeout: 246 seconds]
AJA4350 has joined #ruby
mat_bug has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
donofrio has joined #ruby