havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.5, 2.5.7, 2.7.0-preview3: 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!
mikecmpbll has quit [Quit: inabit. zz.]
itarato has quit [Ping timeout: 240 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
NODE has quit [Quit: changing servers]
NODE has joined #ruby
AJA4350 has joined #ruby
NODE has quit [Client Quit]
akemhp has joined #ruby
NODE has joined #ruby
akemhp_ has quit [Ping timeout: 245 seconds]
lucasb has quit [Quit: Connection closed for inactivity]
akemhp_ has joined #ruby
akem__ has joined #ruby
akemhp has quit [Ping timeout: 276 seconds]
akemhp_ has quit [Ping timeout: 276 seconds]
mozzarella has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
NODE has quit [Quit: changing servers]
drincruz has quit [Ping timeout: 268 seconds]
NODE has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
dasher00 has quit [Ping timeout: 252 seconds]
orbyt_ has joined #ruby
jenrzzz has joined #ruby
ellcs1 has joined #ruby
netbastard has quit [Ping timeout: 252 seconds]
jenrzzz has quit [Ping timeout: 276 seconds]
dasher00 has joined #ruby
akemhp has joined #ruby
xco has joined #ruby
akem__ has quit [Ping timeout: 246 seconds]
akemhp_ has joined #ruby
akemhp_ has quit [Remote host closed the connection]
akemhp has quit [Ping timeout: 252 seconds]
akemhp has joined #ruby
drincruz has joined #ruby
teardown has joined #ruby
drincruz has quit [Ping timeout: 250 seconds]
Swyper has quit [Remote host closed the connection]
ellcs1 has quit [Ping timeout: 250 seconds]
dasher00 has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
hutch1 has quit [Ping timeout: 252 seconds]
ozzloy_ is now known as ozzloy
ozzloy has quit [Changing host]
ozzloy has joined #ruby
brool has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 268 seconds]
AJA4351 is now known as AJA4350
davispuh has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
drincruz has joined #ruby
fphilipe_ has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
drincruz has quit [Ping timeout: 246 seconds]
christiandsg has joined #ruby
fphilipe_ has quit [Ping timeout: 268 seconds]
Swyper has joined #ruby
jenrzzz has joined #ruby
christiandsg has quit [Quit: Leaving...]
Swyper has quit [Remote host closed the connection]
Technodrome has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
itarato has joined #ruby
sergioro has joined #ruby
grilix has quit [Ping timeout: 252 seconds]
NODE has quit [Quit: changing servers]
AJA4351 has joined #ruby
NODE has joined #ruby
AJA4350 has quit [Ping timeout: 246 seconds]
AJA4351 is now known as AJA4350
NODE has quit [Client Quit]
NODE has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
NODE has quit [Client Quit]
jenrzzz has joined #ruby
NODE has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
AJA4350 has quit [Ping timeout: 250 seconds]
NODE has quit [Client Quit]
Swyper has joined #ruby
NODE has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
itarato has quit [Ping timeout: 246 seconds]
AJA4350 has joined #ruby
Swyper has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 265 seconds]
AJA4350 has quit [Ping timeout: 252 seconds]
poweratom has joined #ruby
poweratom has quit [Client Quit]
drincruz has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fphilipe_ has joined #ruby
AJA4350 has joined #ruby
drincruz has quit [Ping timeout: 240 seconds]
fphilipe_ has quit [Ping timeout: 245 seconds]
bruce_lee has quit [Ping timeout: 265 seconds]
bruce_lee has joined #ruby
Swyper has joined #ruby
brool has quit [Ping timeout: 276 seconds]
_phaul has joined #ruby
gix has quit [Ping timeout: 240 seconds]
envex has quit []
phaul has quit [Ping timeout: 265 seconds]
_phaul has quit [Ping timeout: 265 seconds]
_phaul has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 276 seconds]
AJA4351 is now known as AJA4350
normanr__ has quit [Remote host closed the connection]
Swyper has quit [Remote host closed the connection]
goez has quit [Ping timeout: 276 seconds]
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
dviola has quit [Ping timeout: 265 seconds]
christiandsg has joined #ruby
Swyper has joined #ruby
Tempesta has quit [Quit: See ya!]
christiandsg has quit [Remote host closed the connection]
johnny56_ has quit [Ping timeout: 240 seconds]
johnny56 has joined #ruby
cd has quit [Quit: cd]
Swyper has quit [Remote host closed the connection]
christi__ has joined #ruby
Swyper has joined #ruby
Swyper has quit [Ping timeout: 250 seconds]
Tempesta has joined #ruby
prestorium has joined #ruby
im0nde has quit [Ping timeout: 250 seconds]
im0nde_ has joined #ruby
christi__ has quit [Quit: Leaving...]
prestorium has quit [Ping timeout: 240 seconds]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
AJA4350 has quit [Ping timeout: 265 seconds]
jmcgnh has quit [Read error: Connection reset by peer]
jmcgnh has joined #ruby
iNs has quit [Remote host closed the connection]
iNs has joined #ruby
nixy37 has quit [Quit: The Lounge - https://thelounge.chat]
nixy37 has joined #ruby
Mrbuck has joined #ruby
AJA4350 has joined #ruby
akemhp has quit [Ping timeout: 268 seconds]
drincruz has joined #ruby
<Mrbuck> any one working on something like tensorflow ?
drincruz has quit [Ping timeout: 246 seconds]
NODE has quit [Quit: changing servers]
NODE has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
NODE has quit [Client Quit]
krillbat has joined #ruby
NODE has joined #ruby
Mrbuck has quit [Remote host closed the connection]
vrih has quit [Ping timeout: 268 seconds]
vrih has joined #ruby
xco has joined #ruby
orbyt_ has joined #ruby
im0nde_ is now known as im0nde
AJA4350 has quit [Ping timeout: 240 seconds]
sphex has quit [Ping timeout: 265 seconds]
sphex has joined #ruby
jud has quit [Ping timeout: 252 seconds]
dionysus69 has joined #ruby
jud has joined #ruby
jenrzzz has joined #ruby
xco has quit [Quit: Textual IRC Client: www.textualapp.com]
jenrzzz has quit [Ping timeout: 250 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jdeen has joined #ruby
andikr has joined #ruby
infinityfye has joined #ruby
deepredsky has quit [Ping timeout: 250 seconds]
conta has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
fphilipe_ has joined #ruby
dev-rfc83 has quit [Ping timeout: 268 seconds]
fphilipe_ has quit [Ping timeout: 265 seconds]
drincruz has joined #ruby
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
drincruz has quit [Ping timeout: 250 seconds]
fphilipe_ has joined #ruby
vondruch has quit [Quit: vondruch]
akemhp has joined #ruby
Ua-Jared has joined #ruby
fphilipe_ has quit [Ping timeout: 268 seconds]
<Ua-Jared> Hello all, probably a real simple one. If I have an array of objects like this: arr = [ <name: "Ja", age: 34>, <name: "Sue", age: 32>, ...], what's the most idiomatic Ruby to turn that into an array of the names? Eg, ["Ja", "Sue", ..] would be what I'm looking for here
<leftylink> &ri Enumerable#map
<leftylink> enjoy.
<Ua-Jared> Wonderful :) . thanks
Ua-Jared has quit [Remote host closed the connection]
akemhp_ has joined #ruby
<sergioro> arr.map(&:name)
akemhp has quit [Ping timeout: 276 seconds]
akemhp_ has quit [Ping timeout: 276 seconds]
deepredsky has joined #ruby
conta has quit [Quit: conta]
Emmanuel_Chanel has quit [Ping timeout: 240 seconds]
schne1der has joined #ruby
fphilipe_ has joined #ruby
vondruch has joined #ruby
infinityfye has quit [Ping timeout: 245 seconds]
krillbat has quit [Quit: Connection closed for inactivity]
sergioro has left #ruby [#ruby]
infinityfye has joined #ruby
thrizian has joined #ruby
prestorium has joined #ruby
andikr has quit [Ping timeout: 268 seconds]
andikr has joined #ruby
deepredsky has quit [Ping timeout: 245 seconds]
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
shenghi has quit [Ping timeout: 268 seconds]
dous has quit [Quit: ZNC - http://znc.in]
clemens3 has joined #ruby
thrizian has quit [Remote host closed the connection]
shenghi has joined #ruby
Emmanuel_Chanel has joined #ruby
deepredsky has joined #ruby
phaul has joined #ruby
_phaul has quit [Ping timeout: 240 seconds]
drincruz has joined #ruby
phaul has quit [Ping timeout: 265 seconds]
dasher00 has joined #ruby
spllr has joined #ruby
drincruz has quit [Ping timeout: 245 seconds]
phaul has joined #ruby
phaul has quit [Ping timeout: 276 seconds]
phaul has joined #ruby
lxsameer has joined #ruby
andikr has quit [Ping timeout: 268 seconds]
phaul has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
spllr has quit [Quit: Leaving]
phaul has joined #ruby
spllr has joined #ruby
akemhp has joined #ruby
andikr has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
phaul has quit [Ping timeout: 265 seconds]
NL3limin4t0r_afk has quit [Ping timeout: 268 seconds]
phaul has joined #ruby
NL3limin4t0r_afk has joined #ruby
jenrzzz has joined #ruby
Jonopoly has joined #ruby
phaul has quit [Ping timeout: 246 seconds]
NL3limin4t0r_afk has quit [Ping timeout: 250 seconds]
NL3limin4t0r_afk has joined #ruby
phaul has joined #ruby
kapil_ has joined #ruby
phaul has quit [Ping timeout: 268 seconds]
rafadc_ has joined #ruby
phaul has joined #ruby
rafadc has quit [Ping timeout: 252 seconds]
rafadc has joined #ruby
rafadc_ has quit [Ping timeout: 252 seconds]
phaul has quit [Ping timeout: 268 seconds]
xco has joined #ruby
asghar has joined #ruby
phaul has joined #ruby
deepredsky has quit [Ping timeout: 250 seconds]
asghar has quit [Client Quit]
phaul has quit [Ping timeout: 250 seconds]
phaul has joined #ruby
akemhp_ has joined #ruby
ellcs1 has joined #ruby
phaul has quit [Ping timeout: 250 seconds]
rpifan has joined #ruby
akemhp has quit [Ping timeout: 250 seconds]
<rpifan> hello
phaul has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
ellcs1 has quit [Ping timeout: 268 seconds]
phaul has quit [Ping timeout: 265 seconds]
fig-le-deunch has joined #ruby
phaul has joined #ruby
rafadc has quit [Ping timeout: 240 seconds]
deepredsky has joined #ruby
ellcs1 has joined #ruby
akem__ has joined #ruby
deepredsky has quit [Ping timeout: 245 seconds]
rafadc has joined #ruby
akemhp_ has quit [Ping timeout: 265 seconds]
bruce_lee has quit [Ping timeout: 240 seconds]
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
drincruz has joined #ruby
luminousnine has quit [Read error: Connection reset by peer]
evertvdb has quit [Read error: Connection reset by peer]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
jenrzzz has joined #ruby
evert has joined #ruby
cthu| has quit [Read error: Connection reset by peer]
cthu| has joined #ruby
luminousnine has joined #ruby
luminousnine has joined #ruby
luminousnine has quit [Changing host]
bruce_lee has quit [Ping timeout: 240 seconds]
schne1der has quit [Ping timeout: 250 seconds]
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
Mrgoose845701915 has joined #ruby
spllr has quit [Ping timeout: 268 seconds]
fig-le-deunch has quit [Quit: Konversation terminated!]
banisterfiend has joined #ruby
otaznik[m] has quit [*.net *.split]
qbrd[m] has quit [*.net *.split]
execat[m] has quit [*.net *.split]
drale2k has joined #ruby
otaznik[m] has joined #ruby
qbrd[m] has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
chalkmonster has quit [Quit: WeeChat 2.6]
rafadc has quit [Read error: Connection reset by peer]
evert is now known as evertvdb
rafadc has joined #ruby
ellcs1 has quit [Ping timeout: 240 seconds]
Jonopoly has quit [Ping timeout: 265 seconds]
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drale2k has quit [Ping timeout: 250 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cthu| has quit [Read error: Connection reset by peer]
cthu| has joined #ruby
drincruz has quit [Ping timeout: 250 seconds]
AJA4350 has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
akemhp has joined #ruby
akemhp has quit [Remote host closed the connection]
NODE has quit [Client Quit]
akemhp has joined #ruby
akemhp has quit [Remote host closed the connection]
akemhp has joined #ruby
jenrzzz has joined #ruby
NODE has joined #ruby
normanrockwell has joined #ruby
akem__ has quit [Ping timeout: 268 seconds]
galaxie has quit [Ping timeout: 260 seconds]
NL3limin4t0r_afk is now known as NL3limin4t0r
NODE has quit [Client Quit]
Swyper has joined #ruby
galaxie has joined #ruby
NODE has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
Axy has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
lucasb has joined #ruby
grilix has joined #ruby
Mia has quit [Ping timeout: 268 seconds]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
bsdbandit-01 has joined #ruby
drincruz has joined #ruby
normanrockwell has quit [Remote host closed the connection]
Swyper has quit [Remote host closed the connection]
ellcs1 has joined #ruby
akemhp_ has joined #ruby
Swyper has joined #ruby
akemhp has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 276 seconds]
ellcs1 has quit [Ping timeout: 240 seconds]
schne1der has joined #ruby
drale2k has joined #ruby
foxxx0 has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
foxxx0 has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
mwlang has joined #ruby
bsdband71 has joined #ruby
mwlang_ has joined #ruby
bsdbandit-01 has quit [Ping timeout: 245 seconds]
<mwlang_> where are changs to the Ruby languaged discussed and tracked for inclusion into each new release of Ruby? For example, guilds/isolates and other concurrency concerns.
rwb has quit [Ping timeout: 265 seconds]
Mrbuck has joined #ruby
Swyper has quit [Remote host closed the connection]
drincruz has quit [Ping timeout: 265 seconds]
NODE has quit [Quit: changing servers]
AJA4351 has joined #ruby
Swyper has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
NODE has joined #ruby
mwlang has left #ruby [#ruby]
Swyper has quit [Remote host closed the connection]
Mrbuck has quit [Remote host closed the connection]
Esa_ has joined #ruby
conta1 has joined #ruby
ellcs1 has joined #ruby
Swyper has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
NODE has quit [Client Quit]
ellcs1 has quit [Ping timeout: 240 seconds]
NODE has joined #ruby
NODE has quit [Client Quit]
deepredsky has joined #ruby
NODE has joined #ruby
spllr has joined #ruby
DTZUZO has quit [Quit: WeeChat 2.0]
jcalla has joined #ruby
DTZUZO has joined #ruby
<rpifan> NL3limin4t0r, hello
<NL3limin4t0r> rpifan: hey
<rpifan> so the zammad ppl didnt help
<rpifan> so im just gonna solve it myself
<NL3limin4t0r> rpifan: It's not to hard, you just have some foreign key constraint blocking the deletion of a record. If you find out which record refers to the user and remove that record, or nullify the association you should be good.
<rpifan> so its basically saying there is something in the database that is still refering ot the user?
<NL3limin4t0r> yep
<rpifan> if i nullify the association wont i break it?
funnel has quit [Ping timeout: 250 seconds]
<NL3limin4t0r> If the association column has a NOT NULL constraint then yeah, you should be fine, although I don't know what your application expects.
<NL3limin4t0r> s/, you should/, otherwise your should/
funnel has joined #ruby
rapha has joined #ruby
<rapha> hi
phaul has quit [Ping timeout: 240 seconds]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
normanrockwell has joined #ruby
normanrockwell has quit [Remote host closed the connection]
normanrockwell has joined #ruby
phaul has joined #ruby
Swyper has quit []
phaul has quit [Ping timeout: 268 seconds]
<rapha> suppose two object trees (both produced by YAML.load of unknown data), one like so: [{1: one, 2: two, 3: [{4: four}]}] and the other like so: {1: one, 2: two, 3: {4: four}}. i want the same code to read them, though, and the arrays might NOT be superfluous (as they are in this example) but actually required. so, in order to be able to treat them the same, i want to automatically change the second example to be
<rapha> like the first example, but since i don't know the depth of the data I'm getting, it has to be done recursively. I tried thinking about how to do this and now have a headache. Is it possible at all?
phaul has joined #ruby
hutch1 has joined #ruby
andikr has quit [Ping timeout: 268 seconds]
NODE has quit [Quit: changing servers]
Lich has joined #ruby
NODE has joined #ruby
AJA4351 has joined #ruby
NODE has quit [Client Quit]
AJA4350 has quit [Ping timeout: 250 seconds]
AJA4351 is now known as AJA4350
Mrbuck has joined #ruby
mikecmpbll has joined #ruby
mikecmpbll has quit [Client Quit]
NODE has joined #ruby
MrCrackPot has quit [Remote host closed the connection]
drincruz has joined #ruby
spllr has quit [Quit: Leaving]
spllr has joined #ruby
Lich has quit [Quit: Leaving]
MrCrackPot has joined #ruby
drale2k has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<rapha> something like `with = maybewithout.class == Array ? maybewithout : [maybewithout]` but recursively...
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mwlang_> If sometimes and Array and sometimes not, then best approach is to always cast to Array and then process accordingly.
drale2k has joined #ruby
greengriminal has joined #ruby
<rpifan> now i know its all in mysql
NODE has quit [Quit: changing servers]
NODE has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
<rpifan> NL3limin4t0r, i got into the db how do i find the missing table
<NL3limin4t0r> rapha: Something like this might fulfil your needs https://gist.github.com/3limin4t0r/64ca80daab0d5eb4d7172e08e1e38cd9 although you I'm not satisfied with the naming, so you might want to change that.
<NL3limin4t0r> rpifan: Running `as_array(data)` results in the same output for both inputs.
NODE has quit [Client Quit]
<rpifan> well where do i find this foreign key
NODE has joined #ruby
<havenwood> rpifan: There's a #created_by_id reference to another User id—that's the foreign key.
<havenwood> rpifan: Check: User.where(created_by_id: 366)
NODE has quit [Client Quit]
<rapha> NL3limin4t0r: i was playing with https://gist.github.com/sixtyfive/bb3e95a08b9e0d8e48c3f62ef8097464 (don't run that! it hangs indefinitely!) but yours seems really elegant and actually works! thank you!
<havenwood> rpifan: Those ^ are pasted from the 29th. Maybe re-read the part of the log that mentions your name: https://freenode.irclog.whitequark.org/ruby/search?q=rpifan
<rpifan> yea i was checking
<NL3limin4t0r> rpifan: Last time you posted this link: https://pastebin.com/8pcTq0AD which says that the foreign key "fk_rails_45307c95a3" is blocking the deletion because some "created_by_id" column is still refereing to the user id.
<ruby[bot]> NL3limin4t0r: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
NODE has joined #ruby
<rpifan> so i read the previous stuff and found a table called users
<NL3limin4t0r> If you're not sure which table "fk_rails_45307c95a3" is set on, you can run: SELECT * FROM information_schema.table_constraints WHERE `CONSTRAINT_SCHEMA` = 'database name' AND `CONSTRAINT_NAME` = 'fk name'
<NL3limin4t0r> To find out info about the constraint.
<NL3limin4t0r> rpifan: ^
<rpifan> def | zammad | fk_rails_45307c95a3 | zammad | users | FOREIGN KEY
<rpifan> yea that was the result
phaul has quit [Ping timeout: 240 seconds]
NODE has quit [Client Quit]
spiette has joined #ruby
lanky_leguan has joined #ruby
NODE has joined #ruby
lanky_leguan has quit [Client Quit]
<rpifan> NL3limin4t0r, i found a refende to id 366 should i just delete the entry from the db?
<NL3limin4t0r> rpifan: That depends what the referencing record is. If it's an important record you might not want to delete it. You could also migrate the records that point to the user you want to delete, and let them point to the system user instead.
<NL3limin4t0r> Or set the "created_by_id" column for those record to NULL (if there is no NOT NULL constraint).
<rpifan> created_by_id | int(11) | NO | MUL | NULL
phaul has joined #ruby
<NL3limin4t0r> rpifan: aka your current schema does allow NULL values in that column.
spllr has quit [Quit: This computer has gone to sleep]
<rpifan> i think i understand
<rpifan> it is id 366 but it says it was also created by id 366
<rpifan> but it was updated by id 266
<rpifan> so can i change the created by id to 256
<rpifan> and then delete it
hutch1 has quit [Ping timeout: 240 seconds]
<havenwood> rpifan: that sounds reasonable. 👍🏽
<rpifan> ahh
<rapha> havenwood: is that a ... checkbox ... after the thumbs up?
normanro_ has joined #ruby
<havenwood> rpifan: It's a multi-codepoint Emoji.
<rpifan> yea i got it
<rpifan> so how do i do that in mysql set created_by_id = 256
<rpifan> ?
phaul has quit [Ping timeout: 268 seconds]
<havenwood> rapha: .codepoints #=> [128077, 127997]
NODE has quit [Quit: changing servers]
hutch1 has joined #ruby
<NL3limin4t0r> rapha: Some applications combine the emoji with the color, so you can have a skin colored emoji instead of yellow.
<havenwood> rapha: There are a fair number of multi-codepoint emoji. The codepoints together are grapheme clusters.
spacesuitdiver has joined #ruby
<havenwood> &>> 'abc'.grapheme_clusters
<rubydoc> # => ["a", "b", "c"] (https://carc.in/#/r/84j3)
NODE has joined #ruby
<NL3limin4t0r> rpifan: UPDATE `table_name` SET `column_name` = 1234 WHERE `table_name`.`id` = 1234
ellcs1 has joined #ruby
andikr has joined #ruby
<mwlang_> thanks havenwood
normanrockwell has quit [Ping timeout: 250 seconds]
NODE has quit [Client Quit]
<rapha> oh right! but ofc somewhere along the lines of gnome-terminal=>bash=>ssh=>bash=>tmux=>bash=>weechat that combination gets lost :P
DTZUZO has quit [Ping timeout: 268 seconds]
<rapha> and i didn't know Ruby can decode grapheme clusters, that's awesome!
<rpifan> hmm im thinking now if i delet ethis user 366 it seems to be the created of all users
<rpifan> wont that destroy all the otehr links
NODE has joined #ruby
<rpifan> or is that command going to update all the user created by entries
<havenwood> &>> '👍🏽'.codepoints.map { |n| n.chr 'utf-8' }
<rubydoc> # => ["👍", "🏽"] (https://carc.in/#/r/84j4)
<havenwood> &>> '👍🏽'.grapheme_clusters
<rubydoc> # => ["👍🏽"] (https://carc.in/#/r/84j5)
<rapha> huh
<rapha> ah
<rapha> right
<NL3limin4t0r> rpifan: A better option might be to disable users instead of simply deleting the entrire record. This allows other records to still point to them.
DTZUZO has joined #ruby
ellcs1 has quit [Ping timeout: 240 seconds]
<NL3limin4t0r> rpifan: You could for example add a "disabled_at" column that is set when a user is disabled.
<NL3limin4t0r> I'm not sure how compareble with rails your framework is, but in rails I would add the scopes `scope :active, -> { where(disabled_at: nil) }` and `scope :inactive, -> { where.not(disabled_at: nil) }`
<NL3limin4t0r> rpifan: But yeah, all records that point to that user have to be updated if you're planning to delete the user.
<rpifan> ok so the real admin user is 141
<rpifan> how can i updated the created by colum to that number for all the other users
stryek has joined #ruby
ellcs1 has joined #ruby
<NL3limin4t0r> The following updates all records that point to user 123 and changes it to 124: YourModel.where(created_by_id: 123).update_all(created_by_id: 124)
<rpifan> yourmodel?
DTZUZO has quit [Ping timeout: 268 seconds]
normanro_ has quit [Remote host closed the connection]
<NL3limin4t0r> ^ That is Ruby code (based upon a Rails app), you can achieve the same in SQL: UPDATE `your_table` SET `created_by_id` = 124 WHERE `created_by_id` = 123
<rpifan> ah
<rpifan> im more familiar with sql
<NL3limin4t0r> The update query above changes all records from created_by_id 123 to 124.
infinityfye has quit [Quit: Leaving]
phaul has joined #ruby
<rpifan> cool
<rpifan> turns out only that users it own id self rered
cd has joined #ruby
AJA4351 has joined #ruby
DTZUZO has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
<rpifan> ok sigh a whole bunch of stuff references that one user
<rpifan> ok that user is gone
<rpifan> ive got a bunch of random bad users but at least i know now
orbyt_ has joined #ruby
deepredsky has quit [Ping timeout: 240 seconds]
rippa has joined #ruby
hutch1 has quit [Ping timeout: 268 seconds]
suukim has joined #ruby
chalkmonster has joined #ruby
andikr has quit [Remote host closed the connection]
nowhere_man has quit [Ping timeout: 276 seconds]
mgraf__ has joined #ruby
Inline has joined #ruby
davidw has joined #ruby
davidw has quit [Changing host]
davidw has joined #ruby
xco has joined #ruby
brool has joined #ruby
ellcs has quit [Ping timeout: 268 seconds]
mwlang_ has quit [Quit: mwlang_]
AJA4350 has quit [Ping timeout: 268 seconds]
davispuh has joined #ruby
Mrbuck has quit [Remote host closed the connection]
dinfuehr has quit [Ping timeout: 265 seconds]
dinfuehr has joined #ruby
mwlang_ has joined #ruby
dinfuehr has quit [Ping timeout: 250 seconds]
dinfuehr has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xco has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.6]
DTZUZU has quit [Quit: WeeChat 2.2]
conta1 has quit [Quit: conta1]
DTZUZU has joined #ruby
normanrockwell has joined #ruby
Mrbuck has joined #ruby
NODE has quit [Quit: changing servers]
grilix has quit [Ping timeout: 252 seconds]
NODE has joined #ruby
dinfuehr has quit [Ping timeout: 268 seconds]
dinfuehr has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
hutch1 has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
chalkmonster has joined #ruby
dionysus69 has quit [Quit: dionysus69]
NODE has quit [Client Quit]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
NODE has joined #ruby
NODE has quit [Client Quit]
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xco has joined #ruby
NODE has joined #ruby
grilix has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
dionysus69 has joined #ruby
NODE has quit [Client Quit]
AJA4350 has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
<akemhp_> Hello, I would like to run a binary program that does not return (endless loop) from ruby and grab its stdout to process it, any idea about this anyone?
NODE has joined #ruby
bvdw has joined #ruby
rpifan has quit [Quit: Leaving]
LtHummus has quit [Quit: ZNC 1.7.5 - https://znc.in]
NODE has quit [Client Quit]
NODE has joined #ruby
LtHummus has joined #ruby
fphilipe_ has quit [Ping timeout: 268 seconds]
<akemhp_> Nevermind i found out, with popen ;) Thanks anyway.
greengriminal has quit [Quit: Leaving]
i9zO5AP has joined #ruby
ellcs1 has quit [Ping timeout: 240 seconds]
hutch1 has quit [Ping timeout: 265 seconds]
xco has quit [Ping timeout: 252 seconds]
Ai9zO5AP has quit [Ping timeout: 276 seconds]
NODE has quit [Quit: changing servers]
<mwlang_> does anyone know offhand if Bundler deprecates support for earlier Rubies? I have a project still at 10.1.0 and contemplating updating to newer version. This is a gem project I just inherited and needs to support Ruby 2.0.x for a bit longer before sunsetting.
NODE has joined #ruby
MrCrackPot has quit [Quit: Leaving]
clemens3 has quit [Quit: WeeChat 1.6]
Mrbuck has quit [Remote host closed the connection]
hutch1 has joined #ruby
mgraf__ has quit [Ping timeout: 250 seconds]
mgraf__ has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
normanrockwell has quit [Remote host closed the connection]
mgraf__ has quit [Ping timeout: 265 seconds]
mgraf_ has joined #ruby
Eiam has joined #ruby
mgraf_ has quit [Ping timeout: 265 seconds]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 265 seconds]
AJA4351 is now known as AJA4350
mgraf_ has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
donofrio has quit [Remote host closed the connection]
prestorium has quit [Ping timeout: 240 seconds]
donofrio has joined #ruby
dostoyevsky has quit [Ping timeout: 276 seconds]
normanrockwell has joined #ruby
hutch1 has quit [Ping timeout: 252 seconds]
normanrockwell has quit [Quit: Leaving...]
wildtrees has joined #ruby
rubydoc has quit [Remote host closed the connection]
AJA4351 has joined #ruby
rubydoc has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
<NL3limin4t0r> akemhp_: Glad you found a solution. #popen is pretty useful to know about and can come in handy in a lot of differnt situations.
hutch1 has joined #ruby
mgraf_ has quit [Ping timeout: 240 seconds]
dionysus70 has joined #ruby
gix has joined #ruby
dionysus69 has quit [Ping timeout: 265 seconds]
dionysus70 is now known as dionysus69
greengriminal has joined #ruby
drincruz_ has joined #ruby
drincruz has quit [Read error: No route to host]
drincruz_ is now known as drincruz
sauvin has quit [Ping timeout: 265 seconds]
dostoyevsky has joined #ruby
jud has quit [Ping timeout: 246 seconds]
Technodrome has joined #ruby
jud has joined #ruby
jenrzzz has joined #ruby
suukim has quit [Quit: Konversation terminated!]
dionysus69 has quit [Ping timeout: 252 seconds]
hutch1 has quit [Ping timeout: 276 seconds]
greengriminal has quit [Quit: Leaving]
kapil_ has quit [Quit: Connection closed for inactivity]
hutch1 has joined #ruby
drale2k has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<akemhp_> NL3limin4t0r, Yeah, i use it to grab MIDI controller input informations from aseqdump on Linux. Works pretty well for what i'm doing ;) I tried some ruby/MIDI solution first "Micromidi" but it's crashing...so i went the hacky way.
sameerynho has joined #ruby
fphilipe_ has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
chalkmonster has quit [Quit: WeeChat 2.6]
Nicmavr has joined #ruby
fphilipe_ has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
_whitelogger_ has joined #ruby
NODE has quit [Quit: changing servers]
Rush has joined #ruby
sh7d_ has quit [Client Quit]
sh7d_ has joined #ruby
hiroaki has joined #ruby
rubyguy_ has joined #ruby
netwoodle has joined #ruby
ta1 has joined #ruby
NODE has joined #ruby
NODE has quit [Client Quit]
aef has joined #ruby
bodqhrohro_ has joined #ruby
matthewd_ has joined #ruby
m3ssia_ has joined #ruby
vqrs_ has joined #ruby
EvilJStoker_ has joined #ruby
s3nd1v0g1us has joined #ruby
drincruz has quit [*.net *.split]
grilix has quit [*.net *.split]
jdeen has quit [*.net *.split]
graphicsv has quit [*.net *.split]
im0nde has quit [*.net *.split]
j416 has quit [*.net *.split]
creat has quit [*.net *.split]
_whitelogger has quit [*.net *.split]
kreantos has quit [*.net *.split]
RushPL has quit [*.net *.split]
baemazhen has quit [*.net *.split]
sh7d has quit [*.net *.split]
m3ssia has quit [*.net *.split]
rubyguy has quit [*.net *.split]
evdubs has quit [*.net *.split]
iotatron[m] has quit [*.net *.split]
nibbo has quit [*.net *.split]
shansen has quit [*.net *.split]
entel has quit [*.net *.split]
peteretep has quit [*.net *.split]
EvilJStoker has quit [*.net *.split]
wnd has quit [*.net *.split]
ccooke has quit [*.net *.split]
ta has quit [*.net *.split]
dumptruckman has quit [*.net *.split]
WA9ACE has quit [*.net *.split]
jhill has quit [*.net *.split]
xtsee has quit [*.net *.split]
aloy has quit [*.net *.split]
Fusl has quit [*.net *.split]
aef_ has quit [*.net *.split]
kashike has quit [*.net *.split]
MentalPower has quit [*.net *.split]
noodle has quit [*.net *.split]
teej has quit [*.net *.split]
bodqhrohro has quit [*.net *.split]
n1v has quit [*.net *.split]
matthewd has quit [*.net *.split]
integral has quit [*.net *.split]
vqrs has quit [*.net *.split]
lol768 has quit [*.net *.split]
ruskie has quit [*.net *.split]
kloeri has quit [*.net *.split]
baemazhen_ is now known as baemazhen
netwoodle is now known as noodle
matthewd_ is now known as matthewd
NODE has joined #ruby
MentalPower_ is now known as MentalPower
WA9ACE_ is now known as WA9ACE
peteretep_ is now known as peteretep
entel_ is now known as entel
integral_ is now known as integral
n1v_ is now known as n1v
jhill_ is now known as jhill
j416 has joined #ruby
EvilJStoker_ is now known as EvilJStoker
wnd-trans is now known as wnd
dumptruckman has joined #ruby
jenrzzz has joined #ruby
xtsee has joined #ruby
grilix has joined #ruby
ccooke has joined #ruby
kloeri_ has joined #ruby
kreantos has joined #ruby
nibbo has joined #ruby
donofrio has quit [Remote host closed the connection]
teej has joined #ruby
hiroaki has quit [Ping timeout: 265 seconds]
donofrio has joined #ruby
kashike has joined #ruby
ruskie has joined #ruby
phaul has quit [Ping timeout: 240 seconds]
AJA4351 has joined #ruby
NODE has quit [Quit: changing servers]
jdeen has joined #ruby
<adam12> Anybody know if more Rubyconf 2019 videos will be posted or if there's only 20?
AJA4350 has quit [Ping timeout: 276 seconds]
AJA4351 is now known as AJA4350
kloeri_ is now known as kloeri
Fusl has joined #ruby
aloy has joined #ruby
NODE has joined #ruby
NODE has quit [Client Quit]
mgraf__ has joined #ruby
NODE has joined #ruby
NODE has quit [Client Quit]
phaul has joined #ruby
davor_ has joined #ruby
davor has quit [Ping timeout: 240 seconds]
davor_ is now known as davor
NODE has joined #ruby
NODE has quit [Client Quit]
hiroaki has joined #ruby
NODE has joined #ruby
nowhere_man has joined #ruby
phaul has quit [Ping timeout: 276 seconds]
s3nd1v0g1us has quit [Quit: WeeChat 2.6]
phaul has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
NODE has quit [Quit: changing servers]
phaul has quit [Ping timeout: 240 seconds]
NODE has joined #ruby
phaul has joined #ruby
phaul has quit [Ping timeout: 268 seconds]
drale2k has joined #ruby
phaul has joined #ruby
fuzzface has joined #ruby
fuzzface has quit [Client Quit]
phaul has quit [Ping timeout: 250 seconds]
phaul has joined #ruby
mgraf__ has quit [Ping timeout: 265 seconds]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 276 seconds]
AJA4351 is now known as AJA4350
phaul has quit [Ping timeout: 265 seconds]
mgraf has joined #ruby
hutch1 has quit [Ping timeout: 265 seconds]
phaul has joined #ruby
sh7d_ has quit [Quit: meh]
sh7d has joined #ruby
phaul has quit [Ping timeout: 276 seconds]
phaul has joined #ruby
davidw has quit [Remote host closed the connection]
davidw has joined #ruby
davidw has quit [Changing host]
davidw has joined #ruby
phaul has quit [Ping timeout: 268 seconds]
TCZ has joined #ruby
NODE has quit [Quit: changing servers]
hutch1 has joined #ruby
NODE has joined #ruby
phaul has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
phaul has quit [Ping timeout: 240 seconds]
cjhutchi has joined #ruby
phaul has joined #ruby
mwlang_ has quit [Quit: mwlang_]
cjhutchi has left #ruby [#ruby]
Harzilein has quit [Ping timeout: 240 seconds]
phaul has quit [Ping timeout: 268 seconds]
AJA4350 has quit [Ping timeout: 250 seconds]
phaul has joined #ruby
chalkmonster has joined #ruby
phaul has quit [Ping timeout: 240 seconds]
phaul has joined #ruby
<havenwood> adam12: I'm sure they'll be posted. It usually takes a weeks to get the other tracks.
phaul has quit [Ping timeout: 250 seconds]
<adam12> havenwood: Cool. I didn't think there were only 20 talks :)
wildtrees has quit [Remote host closed the connection]
akemhp has joined #ruby
wildtrees has joined #ruby
phaul has joined #ruby
wildtrees has quit [Remote host closed the connection]
BTRE has quit [Quit: Leaving]
wildtrees has joined #ruby
fphilipe_ has joined #ruby
BTRE has joined #ruby
akemhp_ has quit [Ping timeout: 276 seconds]
Fernando-Basso has joined #ruby
phaul has quit [Ping timeout: 265 seconds]
fphilipe_ has quit [Ping timeout: 252 seconds]
phaul has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.6]
phaul has quit [Ping timeout: 265 seconds]
phaul has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
phaul has quit [Ping timeout: 276 seconds]
NODE has quit [Client Quit]
hutch1 has quit [Ping timeout: 250 seconds]
NODE has joined #ruby
phaul has joined #ruby
NODE has quit [Client Quit]
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rwb has joined #ruby
NODE has joined #ruby
bsdband71 has quit [Ping timeout: 246 seconds]
phaul has quit [Ping timeout: 265 seconds]
phaul has joined #ruby
jinie_ has joined #ruby
jinie has quit [Ping timeout: 265 seconds]
jinie_ is now known as jinie
SCHAPiE has quit [Quit: ZNC - https://znc.in]
phaul has quit [Ping timeout: 268 seconds]
NODE has quit [Quit: changing servers]
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
phaul has joined #ruby
NODE has joined #ruby
ellcs has joined #ruby
jinie has joined #ruby
bsdbandit-01 has joined #ruby
phaul has quit [Ping timeout: 250 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
phaul has joined #ruby
SCHAPiE has joined #ruby
normanrockwell has joined #ruby
phaul has quit [Ping timeout: 250 seconds]
Esa_ has quit []
normanrockwell has quit [Ping timeout: 250 seconds]
phaul has joined #ruby
jenrzzz has joined #ruby
phaul has quit [Ping timeout: 240 seconds]
jinie_ has joined #ruby
jinie has quit [Ping timeout: 276 seconds]
lucasb has quit [Quit: Connection closed for inactivity]
jinie_ is now known as jinie
normanrockwell has joined #ruby
phaul has joined #ruby
normanrockwell has quit [Client Quit]
phaul has quit [Ping timeout: 240 seconds]
phaul has joined #ruby
GodFather has joined #ruby
howdoi has joined #ruby
My_Hearing has joined #ruby
My_Hearing has quit [Client Quit]
phaul has quit [Ping timeout: 276 seconds]
GodFather has quit [Excess Flood]
AJA4350 has joined #ruby
phaul has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
buckworst has joined #ruby
NODE has quit [Client Quit]
GodFather has joined #ruby
phaul has quit [Ping timeout: 268 seconds]
NODE has joined #ruby
NODE has quit [Client Quit]
phaul has joined #ruby
NODE has joined #ruby
mgraf has quit [Ping timeout: 276 seconds]
AJA4350 has quit [Ping timeout: 250 seconds]
phaul has quit [Ping timeout: 268 seconds]
GodFather has quit [Read error: Connection timed out]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
GodFather has joined #ruby
phaul has joined #ruby
phaul has quit [Ping timeout: 268 seconds]
phaul has joined #ruby
phaul has quit [Ping timeout: 268 seconds]
Fernando-Basso has quit [Quit: Leaving]
phaul has joined #ruby
mikecmpbll has joined #ruby
fphilipe_ has joined #ruby
sameerynho has quit [Ping timeout: 265 seconds]
johnny56_ has joined #ruby
johnny56 has quit [Read error: Connection reset by peer]
fphilipe_ has quit [Ping timeout: 276 seconds]
davidw has quit [Ping timeout: 240 seconds]
GodFather has quit [Read error: Connection reset by peer]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]