havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.1, 2.3.4 & 2.2.7: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
Psy-Q_ has quit [Quit: ZNC - http://znc.in]
Psy-Q has joined #ruby
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_whitelogger has joined #ruby
tfitts has joined #ruby
montanonic has quit [Ping timeout: 255 seconds]
Rodya_ has quit [Remote host closed the connection]
lxsameer has quit [Quit: WeeChat 1.8]
<pabs> amperry: i'm looking at it now, do you have an example of the generated query?
<pabs> amperry: or is that what "sample.psql" is supposed to be?
<amperry> pabs: yeah, sample.psql
<amperry> it's a truncated version of the file, but you get the idea
<pabs> amperry: what i see in sample.psql is the quoted table name, if the table name is created unquoted elsewhere that will cause problems
<amperry> how do I get postgres to recognize it's all uppercase without the quotes?
<pabs> amperry: postgres implicitly lower-cases un-double-quoted identifer names, but if they are double-quoted then it leaves them alone
<pabs> amperry: i was going to suggest tweaking the queries to do one or the other, but not both
<pabs> amperry: (maybe adding another gsub in your patch-up gsub list)
<pabs> amperry: like i think you've got a CREATE TABLE OCCUPANTS ... somewhere in your source psql, and then later, the INSERT INTO "OCCUPANTS"
jenrzzz has quit [Ping timeout: 260 seconds]
<amperry> pabs: that file actually says 'CREATE TABLE "OCCUPANTS" ( ...'
<pabs> amperry: without the double quotes the identifier in the CREATE TABLE statement will get implicitly lower-cased by postgres, but because of the double quotes in the INSERT statement the identifier won't be implicitly lower-cased, and you'd end up with the error above
<pabs> amperry: hey, uh
<pabs> what's up with this: pg.exec('set search_path to public;')
Rodya_ has joined #ruby
<pabs> amperry: you're resetting the search path before executing each command
<amperry> grrr... I was testing something, but I think it's the same either way. Let me take that out and see.
<pabs> amperry: ok
jenrzzz has joined #ruby
Mia has quit [Ping timeout: 260 seconds]
<amperry> nope, taking that out changes nothing.
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<amperry> the schema and the tables were created by calling '$ psql -u <user> < file.psql'
runescape07rsps has quit [Quit: Leaving]
<pabs> amperry: is it just creates and inserts in teh source file, like could you do a .gsub(/(create table|insert into) "[^"]+"/, '\1 \2') to strip the quotes?
<amperry> I'm trying to write something that reads the files and creates/switches to the schema based on a command-line switch, so I don't have to manually go in to the (many) files and prepend 'create schema/set search_path' to them.
<amperry> well, since it's early in this project, I don't see any harm in trying that.
<amperry> (It's actually very late in the project, but early in this stage :)
<pabs> yeah
<pabs> i missed a /i on my example:
<pabs> >> ['CREATE TABLE "foo"', 'insert into "foo"'].map { |v| v.gsub(/(create table|insert into) "([^"]+)"/i, '\1 \2') }
<ruby[bot]> pabs: # => ["CREATE TABLE foo", "insert into foo"] (https://eval.in/824038)
<pabs> => ["CREATE TABLE foo", "insert into foo"]
jottr has joined #ruby
<amperry> yeah, and a back reference... I'm fixing it :)
<pabs> ok :)
jackjackdripper has quit [Quit: Leaving.]
<pabs> amperry: also if you're looking for a replacement for mysql's AUTO_INCREMENT, you can use a serial in postgres
<pabs> amperry: (i just noticed the gsub(/AUTO_INCREMENT/, '')
<amperry> and, of course, some of the tables have spaces in their names; they're actually dumped from MS-access files. So that dies
<pabs> +)
brent__ has quit [Remote host closed the connection]
<pabs> amperry: ugh
<amperry> pabs: you said it
brent__ has joined #ruby
brent__ has quit [Remote host closed the connection]
<pabs> amperry: well you can keep the names and just lower-case them
Kug3lis has joined #ruby
<amperry> yeah, and I suppose put underscores where the spaces are
r3vDev has joined #ruby
<pabs> that works too
jottr has quit [Ping timeout: 240 seconds]
brent__ has joined #ruby
<SeepingN> spaces in table names is ridiculous
<amperry> but it still seems odd and frustrating that I can't get it to work with the quotes.
<amperry> but I guess I'll have to work around it
<SeepingN> it's like intentionally making things just a little more fragile
<pabs> amperry: they "work" with the double quotes, but with them postgres assumes you don't want it to implicitly lower case the identifier
<pabs> amperry: so the issue is mixing and matching, it either has to be double quotes everywhere (and consistent case in the table names), or not
umaaji has joined #ruby
<amperry> right, but in that case (quoting uppercase) it still says the relation doesn't exist, when it clearly does.
<amperry> but if I use the script to force lowercase, hrm... I have another utility that'll need that case-slamming .gsub as well.
<pabs> this should do what you want:
<pabs> >> ['CREATE TABLE "bar foo"', 'insert into "foo bar"'].map { |v| v.gsub(/(create table|insert into)\s+"([^"]+)"/i) { '%s %s' % [$1, $2.downcase.gsub(/\s+/, '_')] } }
<ruby[bot]> pabs: # => ["CREATE TABLE bar_foo", "insert into foo_bar"] (https://eval.in/824039)
isBEKaml has quit [Ping timeout: 260 seconds]
Kug3lis has quit [Quit: Textual IRC Client: www.textualapp.com]
<amperry> drat. I don't think it's going to work, unless I can find every 'SELECT ... FROM "TABLE NAME"/INNER JOIN "TABLE NAME"/LEFT JOIN "TABLE NAME"' and fix it.
brent__ has quit [Ping timeout: 260 seconds]
<pabs> amperry: probably not, unless you want to go the other direction and make sure everything is using the exact same case for the table names
<pabs> amperry: i'll see if i can find an option to turn off that behavior, but i'm not aware of one
Dimik has joined #ruby
<amperry> that shouldn't be a problem. If I could use the uppercase names (loathsome thought they are), I would prefer that.
railswebdev has joined #ruby
<pabs> amperry: i don't see an option to disable that behavior in pg, i think you'll have to patch up the generated sql
<pabs> :/
<amperry> bah
<amperry> might be easier to write something that just sticks the right 'create schema/set search_path' statements at the front of these files and just run them through '$ psql -u <user> < file.psql'
<amperry> durnit
<pabs> possibly, yeah
bkxd_ has quit [Read error: Connection reset by peer]
bkxd has quit [Ping timeout: 255 seconds]
Trynemjoel has quit [Ping timeout: 264 seconds]
Trynemjoel has joined #ruby
im0nde has quit [Ping timeout: 276 seconds]
TheBloke has quit [Ping timeout: 240 seconds]
cyphase has quit [Ping timeout: 260 seconds]
enterprisey has quit [Remote host closed the connection]
Trynemjoel has quit [Ping timeout: 276 seconds]
qakqed has joined #ruby
bkxd has joined #ruby
bkxd_ has joined #ruby
<amperry> aaaaand somehow, through all of that massaging of my stage_legacy.rb file, it now works with double-quoted uppercase table names with spaces. So who knows?
__Yiota has joined #ruby
johnny56 has joined #ruby
marr has quit [Ping timeout: 276 seconds]
troys is now known as troys_
grymmjack has quit [Ping timeout: 268 seconds]
amperry has quit [Quit: suppertime]
mydog2 has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 268 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
joast has quit [Quit: Leaving.]
patarr has joined #ruby
ur5us has joined #ruby
qakqed has quit [Quit: Konversation terminated!]
railswebdev has joined #ruby
mydog2 has joined #ruby
patarr has quit [Ping timeout: 246 seconds]
rfoust has joined #ruby
brent__ has joined #ruby
davidmichaelkarr has quit [Quit: Connection closed for inactivity]
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has joined #ruby
FastJack has quit [Ping timeout: 258 seconds]
caral has joined #ruby
isBEKaml has joined #ruby
tau has quit [Remote host closed the connection]
brent__ has quit [Ping timeout: 276 seconds]
jottr has joined #ruby
cyphase has joined #ruby
mim1k has quit [Ping timeout: 246 seconds]
gnufied has quit [Ping timeout: 276 seconds]
nb_bez____ has quit [Quit: Connection closed for inactivity]
jottr has quit [Ping timeout: 240 seconds]
caral has quit [Quit: caral]
pohvak has quit []
meshsmith has quit [Remote host closed the connection]
FastJack has joined #ruby
grymmjack has joined #ruby
FastJack has quit [Ping timeout: 258 seconds]
jak has quit [Remote host closed the connection]
jak has joined #ruby
d^sh_ has joined #ruby
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
gusrub has quit []
umaaji has quit [Quit: Leaving...]
d^sh has quit [Ping timeout: 260 seconds]
KeyJoo has quit [Ping timeout: 246 seconds]
Cohedrin_ has joined #ruby
cyphase has quit [Read error: Connection reset by peer]
railswebdev has joined #ruby
gizmore has joined #ruby
johnny56 has quit [Remote host closed the connection]
FastJack has joined #ruby
gizmore|2 has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
comet23 has joined #ruby
<comet23> hello
<comet23> what method can i use to see if the input is an integer besides to_i?
<comet23> basically, i'm working with a string that's being inputed as a number, this is for a tic tac toe game, but the problem i'm having is that if the input is a letter converting it using to_i will output an integer of 0 and i'm working with arrays and this method is supposed to take a number and subtract 1 from it to return the correct index
<elomatreb> Kernel#Integer is your friend, it will error on invalid strings
<comet23> so Integer(input, base)?
<elomatreb> base is optional and defaults to 10, but yes
<elomatreb> Or, rather, it does heuristics with base prefixes
<comet23> def input_to_index(input)
mydog2 has quit [Ping timeout: 276 seconds]
mydog2 has joined #ruby
<comet23> how can i make it not error out but give me a negative value like -1?
uZiel has joined #ruby
uZiel has quit [Remote host closed the connection]
<elomatreb> comet23: Use a rescue block
<comet23> so just use a rescue keyword before the variable?
<comet23> rescue index = Integer(input)
swills has joined #ruby
V1s1ble has joined #ruby
umaaji has joined #ruby
<comet23> is that a good method?
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<elomatreb> comet23: This is how you can simplify it: https://gist.github.com/elomatreb/d35c4f6882a0653a0e5a134240b697c2
<elomatreb> 1. Methods have an implicit begin block, so you can just use rescue without at that level
<elomatreb> 2. Return is optional, the last evaluated value will be returned
<comet23> no i need to subtract 1 from the input
<comet23> to get the array index
<elomatreb> 3. You should always specificy what exception you want to handle, since otherwise you might end up silencing other errors from your code
<comet23> but the last thing evaluated will be returned yes, but if i use the return explicitly i won't have the code that's at the bottom of the method run
<V1s1ble> So I'm trying to figure out how to do this functionally: https://gist.github.com/sumdog/e4b556af98a8ce0f902b6a158b60159a
FastJack has quit [Ping timeout: 258 seconds]
<elomatreb> comet23: So you want a method that given a string converts it to an Integer and subtracts 1 from it. What should it do on invalid input?
<comet23> on invalid input it should return -1
<elomatreb> V1s1ble: Take a look at Enumerable#group_by
<comet23> on valid input it should subtract 1 and return the new value
<havenwood> >> Integer 'comet23' rescue -1
<ruby[bot]> havenwood: # => -1 (https://eval.in/824061)
<havenwood> comet23: Wouldn't that then work with #to_i? Since 0 minus 1 is -1?
<havenwood> comet23: Just subtract one, since you do it in both cases?
<elomatreb> ^ that's an elegant solution
<comet23> that's not elegant at all
<comet23> puts "#{$!} (#{$!.class})"
<comet23> raise $!
<comet23> $stdout.flush
<comet23> what's all that junk?
<havenwood> comet23: You tell us?
<comet23> i don't know
<elomatreb> That's from the bot. Only the part in the begin is interesting to you.
<havenwood> Oh, haha.
<havenwood> >> comet23 = ->(s) { s.to_i.pred }; [comet23.('nerp'), comet23.('42')]
<ruby[bot]> havenwood: # => [-1, 41] (https://eval.in/824062)
jottr has joined #ruby
<matthewd> I'm not sure I'd call anything that returns -1 on invalid input an elegant solution, but that's a higher level concern ¯\_(ツ)_/¯
<elomatreb> semi-related: I wish you could specify an error class with the modifier rescue, so often a rescue block is just "return this value instead"
<elomatreb> But I don't feel comfortable just rescuing everything
<havenwood> matthewd: rails blarg; echo $? #=> 1
<havenwood> matthewd: ;-)
charliesome has joined #ruby
<matthewd> havenwood: See? Rails does it, ergo not elegant. QED. ;)
<havenwood> matthewd: haha, touche
uZiel has joined #ruby
jottr has quit [Ping timeout: 260 seconds]
railswebdev has joined #ruby
kies has quit [Ping timeout: 276 seconds]
jameser has joined #ruby
amclain has quit [Quit: Leaving]
FastJack has joined #ruby
patarr has joined #ruby
chimkan has quit [Quit: chimkan]
perniciouscaffei has joined #ruby
astrobunny has joined #ruby
patarr has quit [Ping timeout: 260 seconds]
Azure|dc is now known as Azure
drcode has quit [Quit: ZNC 1.6.5 - http://znc.in]
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shinnya has joined #ruby
dviola has quit [Quit: WeeChat 1.9]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cam27 has quit [Quit: cam27]
itsautomatisch has quit [Ping timeout: 276 seconds]
drcode has joined #ruby
railswebdev has joined #ruby
Pepu has quit [Ping timeout: 240 seconds]
rubylegend_ has joined #ruby
ledestin has joined #ruby
rubylegend2092 has quit [Ping timeout: 240 seconds]
rubylegend_ is now known as rubylegend2092
jak has quit [Remote host closed the connection]
jak has joined #ruby
nobitanobi has joined #ruby
zacts has quit [Ping timeout: 276 seconds]
enterprisey has joined #ruby
nobitanobi has quit [Ping timeout: 260 seconds]
shinnya has quit [Ping timeout: 260 seconds]
r3vDev has quit [Quit: Leaving.]
cam27 has joined #ruby
<V1s1ble> elomatreb, cool thanks. So I can get to this: [{"example.net"=>"brit"}, {"example.net"=>"foo.brit"}, {"bob.com"=>""}]
<V1s1ble> if I take that and use group_by { |o| o }, I get the entire dictionary as what it's grouped by, o[0] gives me a nil pointing to an array of hashes
<elomatreb> I'm not sure I follow, I'd start with something like this: https://eval.in/824067
<elomatreb> Then I'd probably use transform_values and map to remove the domain suffix from the entries in the array
mim1k has joined #ruby
__Yiota has joined #ruby
zacts has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
tau has joined #ruby
jottr has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cyphase has joined #ruby
mydog2 has quit [Ping timeout: 255 seconds]
mydog2 has joined #ruby
troys_ is now known as troys
<elomatreb> V1s1ble: Not exactly beautiful but it meets your spec: https://eval.in/824077
__Yiota has joined #ruby
__Yiota has quit [Client Quit]
jottr has quit [Ping timeout: 276 seconds]
<elomatreb> Cleaner version: https://eval.in/824079
jak_ has joined #ruby
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jak has quit [Ping timeout: 246 seconds]
johnny56 has joined #ruby
agent_white has quit [Quit: rocketcars]
agent_white has joined #ruby
railswebdev has joined #ruby
gix has quit [Ping timeout: 276 seconds]
gix has joined #ruby
t-recx has quit [Quit: t-recx]
pecan has joined #ruby
kies has joined #ruby
GinoMan2440 has joined #ruby
comet23_ has joined #ruby
comet23 has quit [Ping timeout: 276 seconds]
GinoMan2440 has quit [Quit: Leaving]
_whitelogger has joined #ruby
eljimmy has quit [Quit: Leaving]
cdg_ has joined #ruby
jottr has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
cdg has quit [Ping timeout: 246 seconds]
ur5us has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 276 seconds]
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mim1k has joined #ruby
charliesome has quit [Ping timeout: 276 seconds]
mogaj has joined #ruby
jak_ has quit [Remote host closed the connection]
jak_ has joined #ruby
cadillac_ has quit [Ping timeout: 276 seconds]
mim1k has quit [Ping timeout: 276 seconds]
cadillac_ has joined #ruby
perniciouscaffei has joined #ruby
patarr has joined #ruby
mogaj has quit []
mogaj has joined #ruby
patarr has quit [Ping timeout: 255 seconds]
domgetter has joined #ruby
jak_ has quit [Remote host closed the connection]
jak_ has joined #ruby
tau has quit [Remote host closed the connection]
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
enterprisey has quit [Remote host closed the connection]
Rodya_ has quit [Remote host closed the connection]
uZiel has quit [Ping timeout: 248 seconds]
arescorpio has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
drcode has quit [Quit: ZNC 1.6.5 - http://znc.in]
ddddddd has joined #ruby
comet23_ has quit [Quit: Don't push the red button!]
beilabs_ has quit [Ping timeout: 268 seconds]
drcode has joined #ruby
beilabs_ has joined #ruby
stan has quit [Ping timeout: 246 seconds]
isBEKaml has quit [Ping timeout: 246 seconds]
agrecascino has joined #ruby
cdg_ has quit [Read error: Connection reset by peer]
cdg has joined #ruby
<agrecascino> uh
<agrecascino> is it possible to run bootsnap as a non-root user
<agrecascino> rake*
<agrecascino> sorry
<agrecascino> or maybe this is a danbooru related issue
<agrecascino> idk
<agrecascino> the point is that bootsnap-cache is in a place the user i'm currently running as can't access
sarbs has quit [Read error: Connection reset by peer]
cam27 has quit [Quit: cam27]
charliesome has joined #ruby
jottr has joined #ruby
oleo has quit [Quit: irc client terminated!]
jottr has quit [Ping timeout: 260 seconds]
anisha has joined #ruby
brent__ has joined #ruby
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
brent__ has quit [Remote host closed the connection]
enterprisey has joined #ruby
brent__ has joined #ruby
gothicsouth has joined #ruby
rubylegend2092 has quit [Remote host closed the connection]
cyphase has quit [Ping timeout: 276 seconds]
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
TomyLobo has joined #ruby
brent__ has quit [Ping timeout: 260 seconds]
enterprisey has quit [Remote host closed the connection]
dmtd has quit [Quit: Connection closed for inactivity]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
troys has quit [Quit: Bye]
Rodya_ has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cyphase has joined #ruby
uZiel has joined #ruby
arescorpio has quit [Quit: Leaving.]
cyphase has quit [Max SendQ exceeded]
Mortomes|Work has joined #ruby
dionysus69 has joined #ruby
r3vDev has joined #ruby
conta has joined #ruby
mogaj has quit [Remote host closed the connection]
iMadper has joined #ruby
jottr has joined #ruby
blackwind_123 has quit [Ping timeout: 276 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mogaj has joined #ruby
<V1s1ble> elomatreb, That is awesome man. Works perfectly.
jottr has quit [Ping timeout: 246 seconds]
ascarter has joined #ruby
valentin has quit [Remote host closed the connection]
TomyLobo has quit [Ping timeout: 276 seconds]
jak_ has quit [Remote host closed the connection]
jak_ has joined #ruby
charliesome has joined #ruby
valentin has joined #ruby
rgr has joined #ruby
patarr has joined #ruby
R11 has joined #ruby
aufi has joined #ruby
ascarter has quit [Ping timeout: 255 seconds]
al2o3-cr has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
iMadper is now known as WhatsGoingOn
jottr has joined #ruby
ta_ has quit [Remote host closed the connection]
umaaji has quit [Quit: Leaving...]
cdg_ has joined #ruby
umaaji has joined #ruby
jak_ has quit [Remote host closed the connection]
TomyWork has joined #ruby
jak_ has joined #ruby
gwilkes has joined #ruby
cdg has quit [Ping timeout: 240 seconds]
Rodya_ has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
jottr has quit [Ping timeout: 260 seconds]
Rodya_ has quit [Ping timeout: 240 seconds]
gizmore has quit [Remote host closed the connection]
bkxd_ has quit [Ping timeout: 260 seconds]
Silthias has joined #ruby
bkxd_ has joined #ruby
psychicist__ has joined #ruby
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
sysvalve has joined #ruby
nobitanobi has joined #ruby
elsevero has quit [Quit: elsevero]
TomyWork has quit [Remote host closed the connection]
Ishido has joined #ruby
nobitanobi has quit [Ping timeout: 268 seconds]
dyjakan has joined #ruby
drcode has quit [Quit: ZNC 1.6.5 - http://znc.in]
aupadhye has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ByronJohnson has quit [Ping timeout: 240 seconds]
ByronJohnson has joined #ruby
charliesome has joined #ruby
stan has joined #ruby
nofxxx has joined #ruby
andikr has joined #ruby
drcode has joined #ruby
nofxx has quit [Ping timeout: 260 seconds]
antgel has joined #ruby
zenspider_ has joined #ruby
zenspider has quit [Read error: Connection reset by peer]
stan has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
stan has joined #ruby
zapata has joined #ruby
charliesome has joined #ruby
mogaj has quit [Remote host closed the connection]
mogaj has joined #ruby
ascarter has joined #ruby
bkxd_ has quit [Ping timeout: 246 seconds]
Mia has quit [Ping timeout: 255 seconds]
ta_ has joined #ruby
bkxd has quit [Ping timeout: 268 seconds]
bkxd has joined #ruby
bkxd_ has joined #ruby
nixmaniack has joined #ruby
ascarter has quit [Ping timeout: 260 seconds]
dangerousdave has joined #ruby
mikecmpbll has joined #ruby
jottr has joined #ruby
postmodern_ has joined #ruby
adgtl has left #ruby ["Textual IRC Client: www.textualapp.com"]
Rodya_ has joined #ruby
postmodern has quit [Ping timeout: 246 seconds]
Dimik has quit [Ping timeout: 276 seconds]
jottr has quit [Ping timeout: 276 seconds]
aufi has quit [Ping timeout: 260 seconds]
r3vDev has quit [Quit: Leaving.]
znz_jp0 has quit [Remote host closed the connection]
Rodya_ has quit [Ping timeout: 258 seconds]
syndikate has quit [Ping timeout: 240 seconds]
alex`` has joined #ruby
MasterNayru_ has joined #ruby
MasterNayru has quit [Ping timeout: 246 seconds]
alex`` is now known as alexherbo2
syndikate has joined #ruby
alexherbo2 is now known as alex``
znz_jp has joined #ruby
djbkd has joined #ruby
cdg_ has quit [Remote host closed the connection]
domgetter has quit [Ping timeout: 255 seconds]
cdg has joined #ruby
mim1k has joined #ruby
mim1k has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cdg has quit [Ping timeout: 276 seconds]
roshanavand has quit [Quit: roshanavand]
aufi has joined #ruby
ferr has joined #ruby
marr has joined #ruby
rrawlins has joined #ruby
kruppm has joined #ruby
quobo has joined #ruby
im314ous has joined #ruby
charliesome has joined #ruby
lxsameer has joined #ruby
djbkd has quit [Remote host closed the connection]
<dminuoso> elomatreb: I have spent the entire evening thinking about it.
<elomatreb> About the Range thing?
<dminuoso> Yeah.
mim1k has joined #ruby
<elomatreb> Any ideas? I gave up pretty quickly
<dminuoso> Couldn't find a way to cut even a single instruction away.
<dminuoso> Though...
Serpent7776 has joined #ruby
<dminuoso> elomatreb: I did it!
<dminuoso> It just hit me, one instruction less.
<dminuoso> elomatreb: https://eval.in/824261
<elomatreb> Huh
<elomatreb> I didn't even think in that direction
<dminuoso> elomatreb: Hehe. I spent all evening trying to avoid the extra stack frame which seemed impossible.
<dminuoso> (And thus avoiding an unnecessary trace and leave ins)
aufi has quit [Ping timeout: 255 seconds]
<dminuoso> But I couldnt make it work in that few instructions
jak_ has quit [Remote host closed the connection]
jak_ has joined #ruby
<dminuoso> elomatreb: Of course it can be argued that sprintf will be slower since it has to dispatch an actual method first (whereas "a#{b}c" has optimized instructions) - but the goal was to reduce the number of instructions.
nobitanobi has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby
patarr has joined #ruby
TheBloke has joined #ruby
sjums has quit [Quit: Connection reset by beer]
patarr has quit [Ping timeout: 268 seconds]
aufi has joined #ruby
TheBloke has quit [Ping timeout: 240 seconds]
TheBloke has joined #ruby
sjums has joined #ruby
Beams has joined #ruby
jaruga_________ has joined #ruby
elsevero has joined #ruby
jottr has joined #ruby
Rodya_ has joined #ruby
jottr has quit [Ping timeout: 260 seconds]
Asher has quit [Quit: Leaving.]
Asher has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
pandaant has joined #ruby
cdg has joined #ruby
Beams has quit [Quit: .]
cdg has quit [Ping timeout: 246 seconds]
im0nde has joined #ruby
sepp2k has joined #ruby
Beams has joined #ruby
Aloy has quit [Remote host closed the connection]
Aloy has joined #ruby
ionte_ has joined #ruby
dangerousdave has quit [Quit: Textual IRC Client: www.textualapp.com]
piyush has joined #ruby
<piyush> hey
<piyush> i am working on a project dealing with code smells in ruby
<piyush> can someone please tell me where the syntax rules for the ruby compiler can be found?
<dminuoso> piyush: Pick the proper commit for your revision.
<dminuoso> piyush: The bison part in the first half of it mostly. The second half in that file is just the hackish lexer.
<dminuoso> Unsure how that related to code smells though
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
<piyush> thanks @dminuoso
astrobunny has quit [Ping timeout: 276 seconds]
tgragnato has joined #ruby
ascarter has joined #ruby
jaruga________ has joined #ruby
tgragnato_ has joined #ruby
jaruga_________ has quit [Read error: Connection reset by peer]
postmodern_ has quit [Quit: Leaving]
tgragnato has quit [Ping timeout: 276 seconds]
czerasz has joined #ruby
jottr has joined #ruby
ascarter has quit [Ping timeout: 240 seconds]
Rodya_ has joined #ruby
jottr has quit [Ping timeout: 276 seconds]
Rodya_ has quit [Ping timeout: 276 seconds]
im0nde has quit [Ping timeout: 240 seconds]
nadir has quit [Quit: Connection closed for inactivity]
mogaj has quit [Remote host closed the connection]
czerasz has quit [Ping timeout: 260 seconds]
cdg has joined #ruby
s1kx has quit [Quit: s1kx]
cdg has quit [Ping timeout: 260 seconds]
czerasz has joined #ruby
pandaant has quit [Quit: Lost terminal]
Fernando-Basso has joined #ruby
zapata has quit [Quit: WeeChat 1.9]
anisha has quit [Ping timeout: 276 seconds]
nixmaniack has quit [Remote host closed the connection]
nixmaniack has joined #ruby
nixmaniack has quit [Remote host closed the connection]
<zenspider_> piyush: have you seen reek and other similar projects?
nixmaniack has joined #ruby
zenspider_ is now known as zenspider
zenspider has quit [Changing host]
zenspider has joined #ruby
anisha has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rohitpaulk has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kolgomorov has quit [Ping timeout: 240 seconds]
kruppm has quit [Ping timeout: 246 seconds]
rohitpaulk has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
Guest85030 is now known as julian
jak_ has quit [Remote host closed the connection]
jak_ has joined #ruby
mogaj has joined #ruby
rohitpaulk has joined #ruby
charliesome has quit [Ping timeout: 258 seconds]
<octomancer> hi, i have an array, a1, and i want to append the values from another array, b1. the best i can come up with after looking at the docs for the Array Class is this: a1.push(b1).flatten!
<octomancer> but that seems inelegant
<octomancer> i think there is a more ruby way to do it, can anyone elighten me please?
gwilkes has quit [Read error: Connection reset by peer]
<elomatreb> octomancer: a1.concat b1
<octomancer> tyvm
<octomancer> how did i miss concat?! dur
patarr has joined #ruby
bkxd_ has quit [Read error: Connection reset by peer]
bkxd_ has joined #ruby
patarr has quit [Ping timeout: 258 seconds]
kruppm has joined #ruby
valentin is now known as vali
vali has left #ruby [#ruby]
jottr has joined #ruby
ged has quit [Ping timeout: 260 seconds]
Rodya_ has joined #ruby
mahlon has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
jottr has quit [Ping timeout: 276 seconds]
gwilkes has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
mim1k has quit [Ping timeout: 268 seconds]
mim1k has joined #ruby
ged has joined #ruby
minimalism has joined #ruby
Ishido has quit [Ping timeout: 276 seconds]
mahlon has joined #ruby
OS-28295 has joined #ruby
<OS-28295> Hello guys : when i try to install a packet i have this error : ] exec: gem install ruby-oci8
<OS-28295> ; However when I type gem sources:
<OS-28295> Unable to download data from https://rubygems.org - SSL_connect returned=1 errno=0 state=error: certificate verify failed (https://api.rubygems.org/specs.4.8.gz)
<OS-28295> ERROR: Could not find a valid gem 'ruby-oci8' (>= 0), here is why:
<OS-28295> it's present ! ... Any ideas quys ?
<agent_white> Update dudes allowed
<agent_white> mehbeh
<OS-28295> thks agent_white i will have a look
roshanavand has joined #ruby
runescape07rsps has joined #ruby
gnufied has joined #ruby
mim1k has quit [Read error: Connection reset by peer]
VladGh_ has quit [Remote host closed the connection]
ldnunes has joined #ruby
VladGh has joined #ruby
patarr has joined #ruby
z3uS has quit [Quit: /dev/null]
uZiel has quit [Ping timeout: 248 seconds]
<OS-28295> agent_white, thanks but still I have some trouble the ruby-oci8 don't want to install. Is there is any things that I should be aware ? why it does not work ?
patarr has quit [Ping timeout: 276 seconds]
_2easy has joined #ruby
nixmaniack has quit [Remote host closed the connection]
z3uS has joined #ruby
nixmaniack has joined #ruby
ascarter has joined #ruby
synthroid has joined #ruby
Patadas has joined #ruby
rrawlins has quit [Ping timeout: 276 seconds]
jottr has joined #ruby
czerasz has quit [Ping timeout: 240 seconds]
Rodya_ has joined #ruby
antgel has quit [Ping timeout: 246 seconds]
ascarter has quit [Ping timeout: 255 seconds]
czerasz has joined #ruby
synthroi_ has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
dionysus70 has joined #ruby
dionysus69 has quit [Ping timeout: 246 seconds]
dionysus70 is now known as dionysus69
antgel has joined #ruby
Mortomes|Work has quit [Ping timeout: 260 seconds]
umaaji has quit [Quit: Leaving...]
Rodya_ has quit [Ping timeout: 255 seconds]
rohitpaulk has quit [Ping timeout: 276 seconds]
synthroid has quit [Ping timeout: 255 seconds]
im0nde has joined #ruby
rohitpaulk has joined #ruby
jak_ has quit [Remote host closed the connection]
jak_ has joined #ruby
synthroid has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pavelz has joined #ruby
<pavelz> how does one call @var when it is created in global space?
<pavelz> as opposed to var
mniip has joined #ruby
synthroi_ has quit [Ping timeout: 268 seconds]
<pavelz> just curious
charliesome has joined #ruby
Ishido has joined #ruby
<elomatreb> pavelz: Methods you define and instance variables you set outside of a class are on Object
<elomatreb> So it's still an instance variable, just not a very useful one
dropsh0t has joined #ruby
joast has joined #ruby
dropsh0t has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 276 seconds]
agent_white has quit [Read error: Connection reset by peer]
__Yiota has joined #ruby
OS-28295 has left #ruby ["Leaving"]
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dropsh0t has joined #ruby
millerti has joined #ruby
roamingdog has joined #ruby
dropsh0t has left #ruby [#ruby]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TomyWork has joined #ruby
splitshot has joined #ruby
anisha has quit [Read error: Connection reset by peer]
roamingdog has quit []
nixmaniack has quit [Remote host closed the connection]
im314ous has quit [Ping timeout: 276 seconds]
<dminuoso> pavelz: Ruby has no global space.
mim1k has joined #ruby
<dminuoso> pavelz: To understand why would help you here.
<dminuoso> Well it does through $ variables.
Patadas has quit [Ping timeout: 276 seconds]
chimkan has joined #ruby
anisha has joined #ruby
nixmaniack has joined #ruby
Rodya_ has joined #ruby
mogaj has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
uZiel has joined #ruby
jottr has joined #ruby
anisha has quit [Read error: Connection reset by peer]
rohitpaulk has quit [Ping timeout: 276 seconds]
anisha has joined #ruby
itsautomatisch has joined #ruby
tvw has joined #ruby
jottr has quit [Ping timeout: 276 seconds]
pier has joined #ruby
pier is now known as pier297
pier297 has quit [Client Quit]
cseder has joined #ruby
nixmaniack has quit [Remote host closed the connection]
nixmaniack has joined #ruby
_moep_ has quit [Ping timeout: 240 seconds]
rohitpaulk has joined #ruby
romank has joined #ruby
rfoust has joined #ruby
cam27 has joined #ruby
nixmaniack has quit [Ping timeout: 255 seconds]
mim1k has quit [Disconnected by services]
shinnya has joined #ruby
anisha has quit [Ping timeout: 260 seconds]
jphase has joined #ruby
czerasz has quit [Quit: Ex-Chat]
mim1k has joined #ruby
charliesome has joined #ruby
simmaniac has joined #ruby
sysvalve has quit [Ping timeout: 276 seconds]
DLSteve has joined #ruby
charliesome has quit [Ping timeout: 240 seconds]
Rodya_ has quit [Remote host closed the connection]
cdg has joined #ruby
synthroid has quit [Remote host closed the connection]
DoubleMalt has joined #ruby
skweek has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
dionysus69 has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
ltem has joined #ruby
bkxd_ has quit [Ping timeout: 276 seconds]
mogaj has joined #ruby
__Yiota has joined #ruby
Rodya_ has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
mogaj has quit [Ping timeout: 240 seconds]
mogaj has joined #ruby
ujjain has quit [Remote host closed the connection]
ujjain has joined #ruby
ujjain has joined #ruby
ujjain has quit [Changing host]
mostlybadfly has quit [Quit: Connection closed for inactivity]
glcx has joined #ruby
roshanavand has joined #ruby
patarr has joined #ruby
ta_ has quit [Remote host closed the connection]
railswebdev has joined #ruby
ascarter has joined #ruby
brent__ has joined #ruby
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
glcx has quit [Quit: Quitte]
jottr has joined #ruby
rfoust has quit [Quit: Textual IRC Client: www.textualapp.com]
dcunit3d has joined #ruby
chouhoulis has joined #ruby
antgel has quit [Ping timeout: 260 seconds]
brent__ has quit [Ping timeout: 276 seconds]
ascarter has quit [Ping timeout: 268 seconds]
rohitpaulk has quit [Ping timeout: 260 seconds]
Neptu has quit [Ping timeout: 240 seconds]
jak_ has quit [Remote host closed the connection]
jak_ has joined #ruby
bkxd has joined #ruby
Rodya_ has quit [Remote host closed the connection]
rohitpaulk has joined #ruby
nahra has quit [Remote host closed the connection]
nahra has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
ResidentBiscuit has joined #ruby
aglorei has quit [Ping timeout: 248 seconds]
savoir-faire has quit [Ping timeout: 255 seconds]
savoir-faire has joined #ruby
aglorei has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
ddddddd has quit [Ping timeout: 268 seconds]
<Cork> i'm using bundler + rvm in system wide installation, but Gemfiles with github references doesn't work
mim1k has quit [Read error: Connection reset by peer]
<Cork> anyone know how to get around that?
bkxd has joined #ruby
<dminuoso> Cork: What does "doesn't work" mean
jottr has quit [Ping timeout: 260 seconds]
<Cork> dminuoso: every user other then root gets The git source <url> is not yet checked out. Please run `bundle install` before trying to start your application
<Cork> the normal gems works but none of the git or github link ones
brent__ has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
brent__ has quit [Remote host closed the connection]
<dminuoso> Cork: what does your bundle env look like?
aupadhye has quit [Ping timeout: 240 seconds]
brent__ has joined #ruby
<Cork> dminuoso: it lists GIT ... and the git repos if that is what you mean
<canton7> !GIT
<canton7> ah, wrong channel
<dminuoso> Cork: !gist
<dminuoso> ?gist Cork
<ruby[bot]> Cork: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
gizmore has joined #ruby
<Cork> heh ya working on it https://paste.debian.net/plain/973932
<Cork> thats just one of the projects though
<Cork> this is cross the board
<Cork> similar gemfiles and setup though
<dminuoso> Cork: What happens if you replace the github with a plain git reference?
<Cork> let me try
<Cork> it didn't work last time i tried, but i'm updated bundler since then
<dminuoso> Cork: And please also give the same output of bundle env when you use root instead.
brent__ has quit [Ping timeout: 240 seconds]
Phage- is now known as Phage
Phage has quit [Changing host]
Phage has joined #ruby
<Cork> huh... insteresting
<Cork> git: links works
<dminuoso> Cork: file a bug report then.
<Cork> sure.
<Cork> dminuoso: thx a bunch for the help messing around with this on and off for close to a month now
<dminuoso> Cork: Should have asked for a months salary before I helped.
<dminuoso> :|
<Cork> lol
jottr has joined #ruby
kies has quit [Ping timeout: 260 seconds]
alex`` has quit [Quit: WeeChat 1.8]
mim1k has joined #ruby
nixmaniack has joined #ruby
nixmaniack has joined #ruby
nixmaniack has quit [Changing host]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kolgomorov has joined #ruby
snowcrshd has joined #ruby
cam27 has quit [Quit: cam27]
antgel has joined #ruby
nixmaniack has quit [Client Quit]
papelycarton has joined #ruby
<papelycarton> Hello. What would be the difference between making a HTTP request setting OpenSSL::SSL::VERIFY_PEER on with and without a CA file?
cseder has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso> papelycarton: Depends, what interface are you using?
<papelycarton> dminuoso: I'm using Net::HTTP
gizmore has quit [Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
<dminuoso> papelycarton: Okay. Can you give me a specific code example where you specify the "CA file" so that we're on the same page?
oleo has joined #ruby
djbjd has joined #ruby
cseder has joined #ruby
<papelycarton> dminuoso: here, for example https://www.theguild.nl/ruby-and-ssl-certificate-validation/.
weinstein has joined #ruby
tvw has quit [Ping timeout: 240 seconds]
<dminuoso> papelycarton: Ah, so "ca_path" is slightly misleading. Essentially TLS relies on a chain of certificates. But the root certificates must be implicitly trusted.
<dminuoso> papelycarton: All OS (and browsers can bring their own too) have a set of pre-installed root certificates. If you want to trust a specific (root) certificate without exposing it to the entire OS, you can use ca_file for this it looks like.
<dminuoso> (i.e. a specific (root) certificate that is _not_ on your OS)
kolgomorov has quit [Ping timeout: 276 seconds]
<papelycarton> dminuoso: so if I don't specify a root CA Ruby will trust the certificates that are on the OS?
<dminuoso> papelycarton: Yeah.
bkxd has joined #ruby
<papelycarton> dminuoso: thank you :)
centrx has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
chimkan has quit [Quit: chimkan]
tvw has joined #ruby
cschneid_ has quit [Read error: Connection reset by peer]
mogaj has quit [Remote host closed the connection]
cschneid_ has joined #ruby
enterprisey has joined #ruby
cevett has joined #ruby
patarr has quit [Ping timeout: 268 seconds]
rgr has quit [Ping timeout: 246 seconds]
mogaj has joined #ruby
papelycarton has quit [Ping timeout: 260 seconds]
bkxd has quit [Ping timeout: 260 seconds]
aufi has quit [Ping timeout: 255 seconds]
hightower2 has joined #ruby
anisha has joined #ruby
Rodya_ has joined #ruby
conta has quit [Ping timeout: 255 seconds]
roshanavand has quit [Quit: roshanavand]
kruppm has quit [Ping timeout: 240 seconds]
nadir has joined #ruby
patarr has joined #ruby
enterprisey has quit [Ping timeout: 268 seconds]
djbjd has quit [Quit: djbjd]
bed7 has joined #ruby
brent__ has joined #ruby
anisha_ has joined #ruby
mim1k has quit [Read error: Connection reset by peer]
mim1k has joined #ruby
cbyrda has joined #ruby
anisha has quit [Ping timeout: 260 seconds]
brent___ has joined #ruby
brent__ has quit [Read error: Connection reset by peer]
anisha_ has quit [Ping timeout: 240 seconds]
SteenJobs has joined #ruby
SteenJobs has quit [Client Quit]
enterprisey has joined #ruby
SteenJobs has joined #ruby
itsautomatisch has quit [Ping timeout: 240 seconds]
mim1k has quit [Read error: Connection reset by peer]
chimkan has joined #ruby
t-recx has joined #ruby
perniciouscaffei has joined #ruby
dcunit3d has quit [Ping timeout: 240 seconds]
jaruga________ has quit [Quit: jaruga________]
rohitpaulk has quit [Ping timeout: 246 seconds]
itsech0 has quit [Ping timeout: 246 seconds]
rohitpaulk has joined #ruby
itsautomatisch has joined #ruby
SteenJobs has quit [Quit: peaceee]
troys has joined #ruby
<jokke> hi
<jokke> i'm trying to install ruby 2.0.0 on arch
<jokke> but i'm having several issues
<jokke> openssl i figured out but now the build fails with parse.c:4720:16: error: too few arguments to function ‘yylex’
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jokke> any ideas?
itsautomatisch has quit [Quit: Leaving]
__Yiota has joined #ruby
ddddddd has joined #ruby
DaveTaboola has joined #ruby
Yxhuvud has quit [Remote host closed the connection]
Yxhuvud has joined #ruby
mim1k has joined #ruby
elsevero has quit [Quit: elsevero]
bkxd has joined #ruby
dviola has joined #ruby
amclain has joined #ruby
ascarter has joined #ruby
skinnymg1 has joined #ruby
conta has joined #ruby
andikr has quit [Remote host closed the connection]
antgel has quit [Ping timeout: 276 seconds]
dcunit3d has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
ryzokuken has joined #ruby
jak_ has quit [Remote host closed the connection]
jak_ has joined #ruby
ascarter has quit [Ping timeout: 268 seconds]
skweek has quit [Ping timeout: 260 seconds]
griffindy has joined #ruby
rohitpaulk has quit [Ping timeout: 240 seconds]
Serpent7776 has quit [Quit: Leaving]
isBEKaml has joined #ruby
GinoMan2440 has joined #ruby
marr has quit [Ping timeout: 260 seconds]
<darix> jokke: now that is a quiet old version
davidmichaelkarr has joined #ruby
marr has joined #ruby
<darix> jokke: especially when you start using openssl 1.1 you will need to do a lot of backporting
<jokke> yeah
<jokke> but it's not an openssl issue
<jokke> i'll just use my oldest 2.x version and hope for the best
charliesome has joined #ruby
[Butch] has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
WhatsGoingOn has quit [Read error: Connection reset by peer]
WhatsGoi` has joined #ruby
tvw has quit []
tvw has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
chimkan has quit [Quit: chimkan]
cbyrda has quit [Remote host closed the connection]
mhib has joined #ruby
weinstei1 has joined #ruby
weinstei1 has quit [Client Quit]
mikecmpbll has quit [Ping timeout: 276 seconds]
tau has joined #ruby
HoierM has joined #ruby
al2o3-cr has quit [Quit: WeeChat 1.8]
WhatsGoi` has quit [Ping timeout: 276 seconds]
WhatsGoi` has joined #ruby
DoubleMalt has quit [Ping timeout: 276 seconds]
blackwind_123 has joined #ruby
Dimik has joined #ruby
mim1k has quit [Ping timeout: 255 seconds]
uZiel has joined #ruby
Neptu has joined #ruby
konsolebox has joined #ruby
cadillac__ has joined #ruby
turtlekitten has joined #ruby
govg has quit [Ping timeout: 255 seconds]
cadillac_ has quit [Ping timeout: 260 seconds]
cadillac__ is now known as cadillac_
lxsameer has quit [Quit: WeeChat 1.7]
gdonald has left #ruby ["Leaving"]
preisform has joined #ruby
Beams has quit [Quit: .]
TomyWork has quit [Remote host closed the connection]
<turtlekitten> Hey, Rubyists. Having a little problem: I can't seem to deserialize a Rack::Utils::HeaderHash with my latest upgrade (Ruby 2.4.1 and Rack 2.0.3). It worked fine under 2.2.4. Any ideas?
runescape07rsps has quit [Ping timeout: 276 seconds]
preisfor2 has joined #ruby
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<preisfor2> tmux a
preisform has quit [Remote host closed the connection]
preisfor2 has quit [Client Quit]
_main_0 has quit [Read error: Connection reset by peer]
__main__ has joined #ruby
synthroid has joined #ruby
ericnw has joined #ruby
ferr has quit [Quit: WeeChat 1.8]
dcunit3d has quit [Ping timeout: 260 seconds]
Rodya_ has quit [Quit: Leaving...]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
hkdsun has quit [Ping timeout: 240 seconds]
hkdsun has joined #ruby
preisfor3 has joined #ruby
marxarelli|afk is now known as marxarelli
TomyLobo has joined #ruby
<pavelz> is there a server ssh implementation for ruby ?
<pavelz> not the client ie net::ssh
<apeiros> you mean an sshd? I thought net/ssh had one.
jottr has quit [Ping timeout: 255 seconds]
al2o3-cr has joined #ruby
isBEKaml has quit [Quit: leaving]
<apeiros> pavelz: else https://github.com/jammi/net-sshd looks like one
<apeiros> oh, "just a crude hack". well…
GinoMan1423 has joined #ruby
<matthewd> Seems like the sort of thing I'd rather leave to a well-known implementation, personally
nobitanobi has quit [Remote host closed the connection]
<apeiros> good point
SeepingN has joined #ruby
<apeiros> but I guess it depends on the intent. if it's to learn how the internals work it might be useful.
turtlekitten has left #ruby [#ruby]
musl_ has quit [Ping timeout: 240 seconds]
preisfor4 has joined #ruby
runescape07rsps has joined #ruby
GinoMan2440 has quit [Ping timeout: 276 seconds]
agimenez has joined #ruby
kies has joined #ruby
mahlon has quit [Quit: WeeChat 1.7.1]
runescape07rsps has quit [Read error: Connection reset by peer]
simmaniac has quit [Ping timeout: 240 seconds]
turtlekitten has joined #ruby
turtlekitten has left #ruby [#ruby]
turtlekitten2 has joined #ruby
Ka has quit [Quit: ZNC 1.7.x-git-775-96c92ef8 - https://znc.in]
<turtlekitten2> I'll leave this window open in case anyone has any ideas whilst I'm away. Kinda baffled by this one. https://gist.github.com/TurtleKitty/e129eb30fe3359229645a431cf9e1939
N0ATN has joined #ruby
<apeiros> turtlekitten2: are you trying to load a serialized hash from an earlier version in this version?
<apeiros> or did you serialize and deserialize with the current version?
im0nde has quit [Quit: im0nde]
perniciouscaffei has joined #ruby
<pavelz> apeiros: thanks!
<pavelz> apeiros: well a place to start I guess
gix- has joined #ruby
gix has quit [Disconnected by services]
Cohedrin_ has joined #ruby
hightower2 has quit [Ping timeout: 240 seconds]
<matthewd> pavelz: Are you trying to learn the protocol, or are you trying to implement a service? If the latter, I really recommend using openssh.
tau has quit [Remote host closed the connection]
tau has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
gix has joined #ruby
ldnunes has quit [Ping timeout: 240 seconds]
machinewar has joined #ruby
Ferdroid has left #ruby [#ruby]
centrx has quit [Remote host closed the connection]
chimkan has joined #ruby
gix- has quit [Ping timeout: 240 seconds]
machinewar has left #ruby [#ruby]
gix has quit [Ping timeout: 255 seconds]
<pavelz> matthewd: thanks!
<pavelz> yeah bit of both a pet project
daed_ is now known as daed
daed has quit [Changing host]
daed has joined #ruby
rohitpaulk has joined #ruby
romank has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
uZiel has quit [Ping timeout: 248 seconds]
sepp2k has quit [Ping timeout: 240 seconds]
ldnunes has joined #ruby
centrx has joined #ruby
chimkan has quit [Quit: chimkan]
chimkan has joined #ruby
simmaniac has joined #ruby
jottr has joined #ruby
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
agimenez has quit [Ping timeout: 240 seconds]
chimkan has quit [Client Quit]
haylon has joined #ruby
gix has joined #ruby
montanonic has joined #ruby
hahuang65 has quit [Read error: Connection reset by peer]
gix has quit [Read error: Connection reset by peer]
Cohedrin_ has joined #ruby
tvw has quit []
bed1 has joined #ruby
wilbert has joined #ruby
jottr has quit [Ping timeout: 276 seconds]
bed7 has quit [Ping timeout: 276 seconds]
_sfiguser has joined #ruby
ascarter has joined #ruby
tvon has joined #ruby
BSaboia has joined #ruby
jak_ has quit [Remote host closed the connection]
GinoMan1423 has quit [Remote host closed the connection]
jak_ has joined #ruby
GinoMan1423 has joined #ruby
TheBloke has quit [Ping timeout: 246 seconds]
gix has joined #ruby
pancutan_ has joined #ruby
<_sfiguser> hello rubyers
<_sfiguser> sup ?
ascarter has quit [Ping timeout: 260 seconds]
mogaj has quit [Remote host closed the connection]
<SeepingN> rubying
ujjain has quit [Ping timeout: 240 seconds]
bed1 has quit [Quit: Leaving]
gix has quit [Read error: Connection reset by peer]
gix has joined #ruby
gix- has joined #ruby
gix has quit [Disconnected by services]
domgetter has joined #ruby
bed7 has joined #ruby
Ishido has quit [Remote host closed the connection]
mogaj has joined #ruby
charliesome has joined #ruby
charliesome has quit [Remote host closed the connection]
Ishido has joined #ruby
<turtlekitten2> apeiros: The YAML was serialized by the old version (Ruby 2.2.4, Rack ~ 2.0.1). I'm getting that error when I try to marshal it with the new version (Ruby 2.4.1, Rack 2.0.3).
<turtlekitten2> I haven't tried serializing a HeaderHash with the new version... maybe I should
alex`` has joined #ruby
gix- has quit [Read error: Connection reset by peer]
ujjain has joined #ruby
ujjain has joined #ruby
ujjain has quit [Changing host]
Bock has quit [Ping timeout: 260 seconds]
troys has quit [Quit: Bye]
mogaj has quit [Ping timeout: 240 seconds]
<turtlekitten2> Nope... that didn't work either: https://gist.github.com/TurtleKitty/8c377723928ae88ffd1a2275027bd16f
cseder has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hinbody has quit [Quit: leaving]
centrx has quit []
mogaj has joined #ruby
chimkan has joined #ruby
alex`` is now known as alexherbo2
mogaj has quit [Ping timeout: 240 seconds]
alexherbo2 is now known as alex``
mhib has quit [Ping timeout: 240 seconds]
tvon has quit [Remote host closed the connection]
gix has joined #ruby
tvon has joined #ruby
blackwind_123 has quit [Ping timeout: 240 seconds]
gothicsouth has joined #ruby
ule has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
charliesome has quit [Remote host closed the connection]
chimkan has quit [Quit: chimkan]
blackwind_123 has joined #ruby
charliesome has joined #ruby
MarkBilk has joined #ruby
<apeiros> turtlekitten2: ok, across versions it's not surprising that it doesn't work. but that it doesn't work within the same version is unexpected
mogaj has joined #ruby
TvL2386_ has joined #ruby
tvon has quit [Ping timeout: 276 seconds]
tau has quit [Remote host closed the connection]
tau has joined #ruby
MarkBilk_ has quit [Ping timeout: 246 seconds]
kitikonti has joined #ruby
charliesome has quit [Ping timeout: 276 seconds]
TvL2386 has quit [Ping timeout: 255 seconds]
enterprisey has quit [Remote host closed the connection]
mogaj has quit [Ping timeout: 276 seconds]
hinbody has joined #ruby
mhib has joined #ruby
gix- has joined #ruby
gix has quit [Disconnected by services]
chimkan has joined #ruby
tgragnato_ has quit [Read error: Connection reset by peer]
<turtlekitten2> apeiros: I wouldn't think it would break either way - is just YAML, neh? But I guess I don't know how that serialization works under the hood.
rohitpaulk has quit [Ping timeout: 276 seconds]
zacts has quit [Ping timeout: 255 seconds]
ltem has quit [Remote host closed the connection]
montanonic has quit [Ping timeout: 246 seconds]
cseder has joined #ruby
MarkBilk_ has joined #ruby
gusrub has joined #ruby
ltem has joined #ruby
MarkBilk has quit [Ping timeout: 240 seconds]
justizin has joined #ruby
jottr has joined #ruby
cdg has quit [Remote host closed the connection]
clemens3 has left #ruby ["WeeChat 1.0.1"]
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
KeyJoo has joined #ruby
romank has joined #ruby
romank has quit [Read error: Connection reset by peer]
blackwind_123 has quit [Ping timeout: 255 seconds]
jottr has quit [Ping timeout: 260 seconds]
blackwind_123 has joined #ruby
gusrub has quit [Remote host closed the connection]
romank has joined #ruby
nobitanobi has joined #ruby
zacts has joined #ruby
chimkan has quit [Quit: chimkan]
romank has quit [Read error: Connection reset by peer]
mogaj has joined #ruby
chimkan has joined #ruby
nobitanobi has quit [Ping timeout: 276 seconds]
DLSteve has joined #ruby
ledestin has joined #ruby
hahuang65 has joined #ruby
simmaniac has quit [Quit: Leaving]
mogaj has quit [Ping timeout: 255 seconds]
romank has joined #ruby
mogaj has joined #ruby
conta has quit [Ping timeout: 246 seconds]
preisfor5 has joined #ruby
hightower2 has joined #ruby
mogaj_ has joined #ruby
mogaj has quit [Ping timeout: 260 seconds]
sniptot has joined #ruby
TheBloke has joined #ruby
romank has quit [Read error: Connection reset by peer]
mogaj has joined #ruby
mogaj_ has quit [Ping timeout: 246 seconds]
sniptot has quit [Quit: Page closed]
mogaj_ has joined #ruby
mogaj has quit [Ping timeout: 240 seconds]
[Butch] has joined #ruby
gix- has quit [Ping timeout: 240 seconds]
romank has joined #ruby
preisfor4 has quit [Ping timeout: 240 seconds]
preisfor5 has quit [Ping timeout: 240 seconds]
preisfor3 has quit [Ping timeout: 260 seconds]
mogaj_ has quit [Ping timeout: 260 seconds]
mogaj has joined #ruby
preisform has joined #ruby
preisfor2 has joined #ruby
preisfor4 has joined #ruby
gix has joined #ruby
red_manc has joined #ruby
shinnya has quit [Ping timeout: 255 seconds]
plujon has joined #ruby
brent___ has quit [Remote host closed the connection]
mogaj has quit [Ping timeout: 246 seconds]
chmuri has quit [Ping timeout: 255 seconds]
ur5us has joined #ruby
cschneid_ has quit [Read error: Connection reset by peer]
cschneid_ has joined #ruby
brent__ has joined #ruby
muelleme_ has joined #ruby
conta has joined #ruby
Cohedrin_ has quit [Read error: Connection reset by peer]
zacts has quit [Ping timeout: 255 seconds]
Cohedrin_ has joined #ruby
chmurifree has joined #ruby
ur5us has quit [Remote host closed the connection]
_sfiguser has quit [Remote host closed the connection]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
piyush has quit [Ping timeout: 246 seconds]
andrzejku has joined #ruby
felipevolpone has joined #ruby
romank has quit [Read error: Connection reset by peer]
gix has quit [Read error: Connection reset by peer]
felipevolpone has left #ruby ["Leaving"]
tvon has joined #ruby
jenrzzz has joined #ruby
haylon_ has joined #ruby
jottr has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
lxsameer has joined #ruby
haylon has quit [Ping timeout: 240 seconds]
mogaj has joined #ruby
gix has joined #ruby
splitshot has quit [Ping timeout: 276 seconds]
psychicist__ has quit [Ping timeout: 276 seconds]
splitshot has joined #ruby
romank has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
kariyaki has joined #ruby
* kariyaki inserts a 10mbit isa network card in bweston92
kariyaki has left #ruby [#ruby]
romank has quit [Read error: Connection reset by peer]
cpruitt has quit [Quit: cpruitt]
kt2 has joined #ruby
mogaj has quit [Ping timeout: 240 seconds]
mogaj has joined #ruby
romank has joined #ruby
jak_ has quit [Remote host closed the connection]
jak_ has joined #ruby
gusrub has joined #ruby
knight33 has joined #ruby
ascarter has joined #ruby
Cohedrin_ has quit [Read error: Connection reset by peer]
mogaj has quit [Ping timeout: 240 seconds]
nadir has quit [Quit: Connection closed for inactivity]
kitikonti has quit [Read error: Connection reset by peer]
montanonic has joined #ruby
gix has quit [Ping timeout: 260 seconds]
mhib has quit [Remote host closed the connection]
MrBismuth has joined #ruby
ta_ has joined #ruby
Cohedrin_ has joined #ruby
nobitanobi has joined #ruby
MrBusiness has quit [Ping timeout: 246 seconds]
mogaj has joined #ruby
Fysicus has joined #ruby
gix has joined #ruby
nobitanobi has quit [Remote host closed the connection]
chimkan has quit [Ping timeout: 255 seconds]
KeyJoo has quit [Ping timeout: 255 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
ascarter has quit [Ping timeout: 276 seconds]
montanonic has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
mikecmpbll has joined #ruby
conta has quit [Ping timeout: 260 seconds]
mogaj_ has joined #ruby
mogaj has quit [Ping timeout: 276 seconds]
theunraveler has joined #ruby
haylon_ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
ttilley has quit [Quit: Linkinus - http://linkinus.com]
mogaj_ has quit [Ping timeout: 260 seconds]
gothicsouth has joined #ruby
<patarr> Are there any standards on how to bundle native FFI code with Ruby gems/
<patarr> So one can simply bundle install, and get the required libs without having to use their OS package manager, etc?
haylon has joined #ruby
ytti_ has quit [Ping timeout: 240 seconds]
mogaj has joined #ruby
stryek_ has joined #ruby
montanonic has joined #ruby
cdg has joined #ruby
agent_white has joined #ruby
<havenwood> patarr: you could take a look at how nokogiri does it
<havenwood> patarr: i'm not aware of a RubyGems-proffered standard practice
cdg_ has joined #ruby
BSaboia has quit [Read error: Connection reset by peer]
mogaj has quit [Ping timeout: 260 seconds]
stryek has quit [Ping timeout: 260 seconds]
ytti has joined #ruby
knight33 has quit [Ping timeout: 240 seconds]
cdg has quit [Ping timeout: 240 seconds]
turtlekitten2 has quit [Quit: Leaving]
im0nde has joined #ruby
Cyrus has quit [Quit: WeeChat 1.7.1]
haylon has quit [Ping timeout: 246 seconds]
[Butch] has quit [Quit: I'm out . . .]
pancutan_ has quit [Quit: Page closed]
romank has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 246 seconds]
Bock has joined #ruby
dcluna has quit [Ping timeout: 240 seconds]
<patarr> thanks havenwood i will take a look at those resources
hightower2 has quit [Ping timeout: 240 seconds]
mogaj has joined #ruby
runescape07rsps has joined #ruby
gusrub has quit [Remote host closed the connection]
red_manc has quit [Quit: Leaving]
<patarr> Looks like there's a handy compilation gem, but looks like the method is to stuff a ton of .c files into a gem folder
romank has joined #ruby
<patarr> I'm a little worried about issues like upgrading the native library code, and also the fact that my native library depends on a bunch of other libraries. So many files to add :(
romank has quit [Read error: Connection reset by peer]
synthroid has quit []
mogaj has quit [Ping timeout: 276 seconds]
romank has joined #ruby
AustinMatherne has joined #ruby
jcast has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
oncall-pokemon has quit [Quit: Connection closed for inactivity]
mikecmpbll has quit [Quit: inabit. zz.]
muelleme_ has quit [Ping timeout: 276 seconds]
charliesome has joined #ruby
charliesome has quit [Remote host closed the connection]
jcast has joined #ruby
gusrub has joined #ruby
jottr has joined #ruby
mikecmpbll has joined #ruby
nadir has joined #ruby
mogaj has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
jackjackdripper has joined #ruby
s2013 has joined #ruby
mogaj has quit [Ping timeout: 260 seconds]
haylon has joined #ruby
chouhoulis has quit [Remote host closed the connection]
mogaj has joined #ruby
charliesome has joined #ruby
enterprisey has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
andrzejku has quit [Quit: Textual IRC Client: www.textualapp.com]
amperry has joined #ruby
ldnunes has quit [Quit: Leaving]
mogaj has quit [Ping timeout: 255 seconds]
preisform has quit [Ping timeout: 246 seconds]
preisfor4 has quit [Ping timeout: 258 seconds]
preisfor2 has quit [Ping timeout: 258 seconds]
im0nde has quit [Ping timeout: 255 seconds]
GinoMan2440 has joined #ruby
splitshot has quit [Remote host closed the connection]
romank has quit [Read error: Connection reset by peer]
__Yiota has joined #ruby
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
GinoMan1423 has quit [Ping timeout: 246 seconds]
cseder has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GinoMan2440 has quit [Ping timeout: 260 seconds]
Patadas has joined #ruby
ltem has quit [Quit: Leaving]
jackjackdripper has quit [Ping timeout: 260 seconds]
romank has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
dcluna has joined #ruby
jackjackdripper has joined #ruby
romank has quit [Ping timeout: 268 seconds]
TomyLobo has quit [Ping timeout: 258 seconds]
ryzokuken__ has joined #ruby
mim1k has joined #ruby
DoubleMalt has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ryzokuken has quit [Ping timeout: 276 seconds]
mogaj has joined #ruby
HoierM has quit [Ping timeout: 260 seconds]
learningRuby has joined #ruby
mim1k has quit [Ping timeout: 268 seconds]
s4mmy has joined #ruby
__Yiota has joined #ruby
zacts has joined #ruby
mogaj has quit [Ping timeout: 260 seconds]
poloych has joined #ruby
jak_ has quit [Remote host closed the connection]
jak_ has joined #ruby
Ishido has quit [Ping timeout: 260 seconds]
lxsameer has quit [Quit: WeeChat 1.8]
<learningRuby> QUESTION: I'm trying to understand LITERALS. I'm reading a book that refers to a “hash literal” as being this: numbers = { "one" => 1, "two" => 2, "three" => 3 }. However, shouldn't a “literal” represent and actual value? This hash representation is not a value, but a sequence of symbols that represent a collection of values, right? I think that ac
<learningRuby> tual LITERALS can only be written for strings, numbers and regular expressions, right? Because "some text", 1 and /regex/ are actual values and not a representation of something else. Am I right guys?
Pepu has joined #ruby
<ineb> definition of literal: represents a fixed value, whatever that might be.
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ineb> that hash literal you posted is also a fixed value
Patadas has quit [Ping timeout: 240 seconds]
gothicsouth has joined #ruby
s4mmy has quit [Quit: Page closed]
<havenwood> >> require 'ripper'; Ripper.sexp 'Hash.new'
<ruby[bot]> havenwood: # => [:program, [[:call, [:var_ref, [:@const, "Hash", [1, 0]]], :".", [:@ident, "new", [1, 5]]]]] (https://eval.in/824810)
<havenwood> >> require 'ripper'; Ripper.sexp '{}'
<ruby[bot]> havenwood: # => [:program, [[:hash, nil]]] (https://eval.in/824811)
<havenwood> >> RubyVM::InstructionSequence.compile('{}').to_a.last
<ruby[bot]> havenwood: # => [1, [:trace, 1], [:newhash, 0], [:leave]] (https://eval.in/824812)
<Papierkorb> learningRuby: That too is a literal. A string is also a bunch of codepoints in reality, and a number a bunch of digits. That's not important, what matters is that a literal creates an atomic entity for the reader
poloych has quit [Ping timeout: 260 seconds]
<learningRuby> ineb thanks for replying.. I found a definition of “literals” in the book The Ruby Programming Language (by Matz). It says “Literals are values that appear directly in Ruby source code.”. So, according to this definition, I think the hash representation shouldn't be called a literal. Perhaps it depends on how one defines a literal then.
jackjackdripper has quit [Quit: Leaving.]
<learningRuby> Papierkorb so a hash is an atomic entity? Isn't a hash a collection of atomic entities? How would you define an “atomic entity”?
<Papierkorb> learningRuby: Or in our case, a literal is a special syntax to construct a complex object out of less-complex terminals and non-terminals from the grammar. An Integer is more complex than the token `123`, `"foo"` is actually quite complex already, and { "foo" => "bar" } is even more complex
<havenwood> learningRuby: It might be a bit easier to understand a literal in Elixir, where it means a one-to-one mapping of the human code to the intermediate representation value. A `{}` is a `{}` simply in the AST itself.
zacts has quit [Ping timeout: 255 seconds]
<havenwood> It doesn't expand to something else.
jak__ has joined #ruby
<havenwood> When parsed.
Rutix`away has quit []
jak_ has quit [Read error: Connection reset by peer]
Cohedrin_ has quit [Read error: Connection reset by peer]
<Papierkorb> learningRuby: Even in C, you can write: `int foo[] = { 1, 2, 3 };`. Again, we're constructing a more complex "object" using a special syntax.
bkxd has joined #ruby
bkxd_ has joined #ruby
Cohedrin_ has joined #ruby
ryzokuken has joined #ruby
jordanm has quit [Ping timeout: 246 seconds]
<learningRuby> Papierkorb In the wikipedia definition for ‘value’ is: “a value is an expression which cannot be evaluated any further (a normal form)” Would you say that a literal is then a direct representation of a value?
ryzokuken__ has quit [Ping timeout: 240 seconds]
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
bkxd_ has quit [Ping timeout: 268 seconds]
bkxd has quit [Ping timeout: 268 seconds]
ryzokuken has quit [Ping timeout: 260 seconds]
theunraveler has quit []
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
wilbert has quit [Ping timeout: 276 seconds]
<Papierkorb> learningRuby: Without digging through smart books, you could say that I think ;)
DoubleMalt has quit [Ping timeout: 276 seconds]
<learningRuby> Papierkorb I think now I get it... I put together what you guys told me.. so a hash is actually a value (I didn't know that), because it cannot be evaluated any further. It's just a more complex value, like you said. And a literal is something that represents an actual value (as opposed to a variable which is not a value in itself, but references o
<learningRuby> ne) :)
<learningRuby> damn I feel smarter now :P
<Papierkorb> Yeah that description should work
<learningRuby> cool, thanks
<Papierkorb> cheers
<learningRuby> thanks havenwood and ineb too
brent__ has quit [Remote host closed the connection]
haylon has quit [Remote host closed the connection]
runescape07rsps has quit [Ping timeout: 276 seconds]
<learningRuby> I realize that in programming, terminology is quite important, to make sense of concepts. Yet we can easily get caught up in terminology, because maybe we can never be as precise as we'd like with our abstractions. Perhaps to be really precise one must give up on abstraction and get down to the level of machine code.
jackjackdripper has joined #ruby
cseder has joined #ruby
ResidentBiscuit has quit [Quit: Critical Miss]
zacts has joined #ruby
<Papierkorb> learningRuby: The thing is you have to look out what you're talking about. A literal is something the language cares about, the parser speaks about (non-)terminals, and the virtual machine now suddenly calls whatever the literal described an instance of a value.
<Papierkorb> learningRuby: Parsers are even more fun, where people came up with different names for the same thing.
jak__ has quit [Remote host closed the connection]
jak__ has joined #ruby
bed7 has quit [Ping timeout: 276 seconds]
ascarter has joined #ruby
cseder has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nobitanobi has joined #ruby
Ishido has joined #ruby
<learningRuby> Papierkorb When you say “terminals” do you mean tokens?
montanonic has quit [Ping timeout: 276 seconds]
<Papierkorb> learningRuby: what a lexer ("scanner", "tokenizer") calls a token, a parser calls a terminal
mostlybadfly has joined #ruby
<learningRuby> mmm ok
gothicsouth has joined #ruby
<learningRuby> Papierkorb can you suggest me a book or resource to learn more about this? (parsing, etc.)
nobitanobi has quit [Ping timeout: 276 seconds]
ascarter has quit [Ping timeout: 260 seconds]
ecuanaso has joined #ruby
<Papierkorb> learningRuby: Never liked (technical) books much, you can find tons of good university courses (free) on those topics. What they explain badly, other sources may explain easier. Also, YouTube has a surprising amount of videos on CS stuff. If you want a book, among the all-time favorites are the famous "Dragon Books"
<Papierkorb> learningRuby: No matter the source of information, make sure to build a small program using whatever the source is describing. Ruby is an excellent language for this.
montanonic has joined #ruby
<Papierkorb> learningRuby: If you understand it, you can build it. If you can't build it, you didn't understand it. :)
enterprisey has quit [Remote host closed the connection]
<Papierkorb> well obviously, this doesn't cover 100% of possible misunderstandings, but it's better than nothin'. And much less painful than writing an exam (if you're an university student) and getting an F.
ddddddd has quit [Ping timeout: 260 seconds]
<learningRuby> mm I like that.. sounds a bit like what Gillespie said about jazz “If you can hear it you can have it”
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<learningRuby> Papierkorb thx for the suggestions, I'll try those.. I agree that books often seem to complicate things, perhaps specially tech books.
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jackjackdripper has quit [Ping timeout: 240 seconds]
jackjackdripper has joined #ruby
railswebdev has joined #ruby
zacts has quit [Ping timeout: 276 seconds]
A124 has quit [Ping timeout: 255 seconds]
A124 has joined #ruby
herbmillerjr has quit [Quit: Konversation terminated!]
herbmillerjr has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
Guest15764 has joined #ruby
fnodeuser has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
fnodeuser has left #ruby [#ruby]
mydog2 has quit [Ping timeout: 260 seconds]
domgetter has quit [Ping timeout: 260 seconds]
enterprisey has joined #ruby
dcluna has quit [Ping timeout: 240 seconds]
<Derperperd> simple question. how can i turn the following string into an array?
<SeepingN> .to_a
tgragnato has joined #ruby
<Derperperd> test "this is also a test" test2 => [test, this is also a test, test2]
<SeepingN> try using eval
tgragnato has quit [Max SendQ exceeded]
<Derperperd> SeepingN: how do i use eval
<SeepingN> oh wait. that's... unusual
<SeepingN> you'll have to do some custom parsing me thinks
<Derperperd> yeah i thought it would be easier but...its not..
tgragnato has joined #ruby
tgragnato has left #ruby [#ruby]
<SeepingN> change the source ;)
darix has quit [Ping timeout: 258 seconds]
darix has joined #ruby
Guest15764 has quit [Ping timeout: 240 seconds]
agent_white has quit [Quit: leaving]
DLSteve has joined #ruby
jackjackdripper1 has joined #ruby
<al2o3-cr> Derperperd: shellsplit
jordanm has joined #ruby
jackjackdripper has quit [Ping timeout: 240 seconds]
d5sx43 has joined #ruby
d5sx43 has quit [Client Quit]
tgragnato has joined #ruby
<al2o3-cr> >> %(test "this is also a test" test2).shellsplit
<ruby[bot]> al2o3-cr: # => undefined method `shellsplit' for "test \"this is also a test\" test2":String (NoMethodError) ...check link for more (https://eval.in/824828)
mrconfused has joined #ruby
Fernando-Basso has quit [Quit: WeeChat 1.9]
<al2o3-cr> >> require 'shellwords'; %(test "this is also a test" test2).shellsplit
<ruby[bot]> al2o3-cr: # => ["test", "this is also a test", "test2"] (https://eval.in/824829)
<Derperperd> you the man al2o3-cr thanks
plujon has quit [Remote host closed the connection]
<al2o3-cr> yw Derperperd
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mydog2 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jak_ has joined #ruby
railswebdev has joined #ruby
ghormoon has quit [Remote host closed the connection]
jak__ has quit [Ping timeout: 255 seconds]
kobain has joined #ruby
raul782 has joined #ruby
mydog2 has quit [Read error: Connection reset by peer]
montanonic has quit [Ping timeout: 276 seconds]
ascarter has joined #ruby
gothicsouth has joined #ruby
jackjackdripper1 has quit [Quit: Leaving.]
learningRuby has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
ascarter has quit [Ping timeout: 240 seconds]
runescape07rsps has joined #ruby
im0nde has joined #ruby
zacts_pi has joined #ruby
mim1k has joined #ruby
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
MrSamuel has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ghormoon has joined #ruby
V1s1ble has quit [Ping timeout: 276 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
s2013 has joined #ruby
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gothicsouth has joined #ruby
ioquatix has joined #ruby
MrSamuel has quit [Quit: MrSamuel]
brent__ has joined #ruby
Mia has quit [Ping timeout: 255 seconds]
V1s1ble has joined #ruby
V1s1ble has quit [Changing host]
V1s1ble has joined #ruby
brent__ has quit [Ping timeout: 260 seconds]