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
matcouto has quit []
iamayam has joined #ruby
eblip has joined #ruby
oleo has quit [Quit: irc client terminated!]
xenops has joined #ruby
mooser has quit [Remote host closed the connection]
thebaffoon has joined #ruby
tocky has joined #ruby
tocky has left #ruby [#ruby]
hndk has joined #ruby
<darix> cahoots: require_relative
<darix> might help
Guest96 has quit [Remote host closed the connection]
Guest96 has joined #ruby
vondruch_ has quit [Quit: vondruch_]
mooser has joined #ruby
mooser has quit [Remote host closed the connection]
mooser has joined #ruby
vondruch_ has joined #ruby
Silthias has quit [Ping timeout: 240 seconds]
Silthias has joined #ruby
ColeHub has quit [Quit: Snooze.]
skade_ has joined #ruby
Guest96 has quit [Remote host closed the connection]
Guest96 has joined #ruby
skade_ has quit [Ping timeout: 240 seconds]
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Derperperd has quit [Ping timeout: 260 seconds]
roamingdog has joined #ruby
rrichard_ has joined #ruby
rrichard_ has quit [Client Quit]
t-recx has quit [Quit: t-recx]
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
jameser has joined #ruby
JeanCarloMachado has joined #ruby
GodFather__ has quit [Ping timeout: 240 seconds]
gnufied has quit [Quit: Leaving]
blackmes1 has joined #ruby
brent__ has quit [Ping timeout: 260 seconds]
lagweezle is now known as lagweezle_away
binaryplease has quit [Ping timeout: 240 seconds]
outreachdan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 260 seconds]
marxarelli is now known as marxarelli|afk
budzzzz has joined #ruby
Guest96 has quit [Remote host closed the connection]
Guest96 has joined #ruby
cfec0b8d has quit [Remote host closed the connection]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
aspiers has quit [Quit: ZNC - http://znc.sourceforge.net]
projectmoon_ has joined #ruby
projectmoon_ has quit [Client Quit]
raul782 has joined #ruby
projectmoon has joined #ruby
projectmo10 has joined #ruby
projectmo10 has left #ruby ["User left"]
__Yiota has joined #ruby
gnufied has joined #ruby
amclain has quit [Quit: Leaving]
duderonomy has quit [Ping timeout: 258 seconds]
kobain has joined #ruby
d^sh has quit [Ping timeout: 240 seconds]
projectmoon has left #ruby ["User left"]
thebaffoon has quit [Ping timeout: 276 seconds]
gusrub has quit [Remote host closed the connection]
d^sh has joined #ruby
gnufied has quit [Client Quit]
thebaffoon has joined #ruby
MrBismuth has quit [Ping timeout: 246 seconds]
drcode has quit [Quit: ZNC 1.6.5 - http://znc.in]
thebaffoon has quit [Client Quit]
mahlon has joined #ruby
drcode has joined #ruby
chopin has joined #ruby
gizmore has joined #ruby
mahlon has quit [Quit: WeeChat 1.7.1]
davic has joined #ruby
JeanCarloMachado has quit [Ping timeout: 260 seconds]
JeanCarloMachado has joined #ruby
drcode has quit [Quit: ZNC 1.6.5 - http://znc.in]
gizmore|2 has quit [Ping timeout: 268 seconds]
budzzzz has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
kies has quit [Quit: baaaaiiiiiiiiiii~]
rkazak has quit [Quit: Sleep.....ing....]
mahlon has joined #ruby
Channel6 has joined #ruby
drcode has joined #ruby
rkazak has joined #ruby
drcode has quit [Remote host closed the connection]
shinnya has joined #ruby
skade_ has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mooser has quit [Remote host closed the connection]
blackmes1 has quit [Ping timeout: 240 seconds]
skade_ has quit [Ping timeout: 240 seconds]
lektrik has joined #ruby
brent__ has joined #ruby
__Yiota has joined #ruby
drcode has joined #ruby
brent__ has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
duderonomy has joined #ruby
Silthias has quit [Ping timeout: 240 seconds]
Silthias1 has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
zacts has quit [Quit: WeeChat 1.7.1]
chopin has quit [Remote host closed the connection]
chopin has joined #ruby
iliketurtles has joined #ruby
libastral has quit [Ping timeout: 240 seconds]
JeanCarloMachado has quit [Ping timeout: 276 seconds]
chopin has quit [Ping timeout: 240 seconds]
JeanCarloMachado has joined #ruby
cahoots has quit [Ping timeout: 240 seconds]
libastral has joined #ruby
kies has joined #ruby
haylon has joined #ruby
Cohedrin has quit [Read error: Connection reset by peer]
Silthias1 has quit [Ping timeout: 240 seconds]
Silthias has joined #ruby
ColeHub has joined #ruby
kobain has quit [Ping timeout: 276 seconds]
Cohedrin has joined #ruby
mjora7 has joined #ruby
Cohedrin has quit [Read error: Connection reset by peer]
SpikeMaster has joined #ruby
Cohedrin has joined #ruby
cpruitt has quit [Quit: cpruitt]
genpaku has quit [Remote host closed the connection]
SpikeMaster has quit [Quit: ERC (IRC client for Emacs 26.0.50)]
haylon has quit [Quit: haylon]
genpaku has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cpruitt has joined #ruby
iMadper has joined #ruby
JeanCarloMachado has quit [Remote host closed the connection]
JeanCarloMachado has joined #ruby
cpruitt has quit [Client Quit]
xco has left #ruby [#ruby]
hndk has quit [Quit: Leaving]
Silthias has quit [Ping timeout: 240 seconds]
haylon has joined #ruby
skade_ has joined #ruby
Sammichmaker has quit [Ping timeout: 240 seconds]
Joufflu_ has quit [Quit: Leaving]
iliketurtles has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
beauby has quit [Ping timeout: 276 seconds]
iliketurtles has joined #ruby
skade_ has quit [Ping timeout: 240 seconds]
Silthias has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
JeanCarloMachado has joined #ruby
Guest96 has quit [Remote host closed the connection]
Guest96 has joined #ruby
Guest96 has quit [Remote host closed the connection]
Guest96 has joined #ruby
raspado has quit [Remote host closed the connection]
raspado has joined #ruby
raspado has quit [Ping timeout: 276 seconds]
pbrouse has quit [Remote host closed the connection]
podlech has joined #ruby
JeanCarloMachado has quit [Ping timeout: 268 seconds]
iMadper has quit [Remote host closed the connection]
iMadper has joined #ruby
podlech has quit [Client Quit]
JeanCarloMachado has joined #ruby
gix has quit [Ping timeout: 268 seconds]
gix has joined #ruby
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
JeanCarloMachado has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
raul782 has quit []
shinnya has quit [Ping timeout: 276 seconds]
_whitelogger has joined #ruby
GinoMan has quit [Read error: Connection reset by peer]
GinoMan has joined #ruby
JeanCarloMachado has quit [Ping timeout: 260 seconds]
JeanCarloMachado has joined #ruby
antoniobeyah has quit [Quit: Connection closed for inactivity]
brent__ has joined #ruby
_whitelogger has joined #ruby
brent__ has quit [Ping timeout: 240 seconds]
iMadper has quit [Remote host closed the connection]
skade_ has joined #ruby
drcode has quit [Remote host closed the connection]
skade_ has quit [Ping timeout: 260 seconds]
Channel6 has quit [Quit: Leaving]
pnbeast has quit [Quit: leaving]
anisha has joined #ruby
skade_ has joined #ruby
drcode has joined #ruby
drcode has quit [Remote host closed the connection]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drcode has joined #ruby
nullobject has joined #ruby
alveric1 is now known as lordalveric
nullobject has quit [Client Quit]
vikaton has quit [Quit: Connection closed for inactivity]
dviola has quit [Quit: WeeChat 1.7.1]
mjora7 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
patarr has joined #ruby
roamingdog has joined #ruby
patarr has quit [Ping timeout: 245 seconds]
iliketurtles has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roamingdog has quit [Ping timeout: 255 seconds]
Silthias1 has joined #ruby
Silthias has quit [Ping timeout: 268 seconds]
iliketurtles has joined #ruby
jeyraof^mbpr has joined #ruby
Guest96 has quit [Remote host closed the connection]
BSAlb has joined #ruby
kent\n has quit [Remote host closed the connection]
BSaboia has quit [Ping timeout: 245 seconds]
jeyraof^mbpr has quit [Ping timeout: 276 seconds]
Guest96 has joined #ruby
kent\n has joined #ruby
Silthias1 has quit [Ping timeout: 245 seconds]
chopin has joined #ruby
mjora7 has joined #ruby
iliketurtles has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Silthias has joined #ruby
jeyraof^mbpr has joined #ruby
iliketurtles has joined #ruby
statelesscode has quit [Ping timeout: 246 seconds]
JeanCarloMachado has quit [Ping timeout: 276 seconds]
JeanCarloMachado has joined #ruby
cfec0b8d has joined #ruby
Guest96 has quit [Remote host closed the connection]
GinoMan has quit [Read error: Connection reset by peer]
Guest96 has joined #ruby
GinoMan has joined #ruby
GinoMan has quit [Read error: Connection reset by peer]
vondruch_ has quit [Ping timeout: 240 seconds]
GinoMan has joined #ruby
GinoMan has quit [Read error: Connection reset by peer]
GinoMan has joined #ruby
jeyraof^mbpr has quit [Quit: Leaving]
GinoMan has quit [Read error: Connection reset by peer]
GinoMan has joined #ruby
GinoMan has quit [Read error: Connection reset by peer]
cyphase has quit [Ping timeout: 255 seconds]
GinoMan has joined #ruby
GinoMan has quit [Read error: Connection reset by peer]
Guest80758 is now known as olspookishmagus
cyphase has joined #ruby
Sammichmaker has joined #ruby
akkad has quit [Quit: Emacs must have died]
yogg-saron has joined #ruby
Silthias has quit [Ping timeout: 240 seconds]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
Silthias has joined #ruby
unshadow has quit [Ping timeout: 276 seconds]
Bock has joined #ruby
Bock has quit [Max SendQ exceeded]
m0d has joined #ruby
unshadow has joined #ruby
rkazak has joined #ruby
Bock has joined #ruby
vondruch_ has joined #ruby
maxkuzmin has joined #ruby
JeanCarloMachado has joined #ruby
mokiwis has joined #ruby
roamingdog has joined #ruby
skade_ has quit [Ping timeout: 240 seconds]
shinnya has joined #ruby
chopin has quit [Remote host closed the connection]
chopin has joined #ruby
BSAlb has quit [Read error: Connection reset by peer]
mjora7 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
roamingdog has quit [Ping timeout: 276 seconds]
mokiwis is now known as monin
monin has quit [Quit: See ya!]
Cyrus has quit [Quit: omg]
chopin has quit [Ping timeout: 276 seconds]
mokiwis has joined #ruby
mokiwis is now known as alebrije
Cyrus has joined #ruby
audy has joined #ruby
alebrije is now known as mokiwis
mokiwis is now known as alebrije
alebrije is now known as mokiwis
mokiwis has quit [Client Quit]
Guest96 has quit [Remote host closed the connection]
ColeHub has quit [Quit: Bye.]
DK2 has joined #ruby
Guest96 has joined #ruby
guardianx has joined #ruby
ChickeNES has joined #ruby
shinnya has quit [Ping timeout: 240 seconds]
mjora7 has joined #ruby
brent__ has joined #ruby
mjora7 has quit [Client Quit]
brent__ has quit [Ping timeout: 240 seconds]
vondruch_ is now known as vondruch
Silthias1 has joined #ruby
yogg-saron has quit [Ping timeout: 276 seconds]
Silthias has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
guardianx has quit [Remote host closed the connection]
Silthias1 has quit [Ping timeout: 260 seconds]
Silthias has joined #ruby
charliesome has joined #ruby
blackwind_123 has quit [Ping timeout: 260 seconds]
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
DaniG2k has joined #ruby
JeanCarloMachado has joined #ruby
skade_ has joined #ruby
djbkd_ has joined #ruby
JeanCarloMachado has quit [Ping timeout: 258 seconds]
JeanCarloMachado has joined #ruby
patarr has joined #ruby
roamingdog has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
Cohedrin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Mortomes|Work has joined #ruby
Disavowed has quit [Ping timeout: 260 seconds]
friday has quit [Ping timeout: 260 seconds]
arvindsaik has quit [Ping timeout: 260 seconds]
roamingdog has quit [Ping timeout: 268 seconds]
arvindsaik has joined #ruby
Disavowed has joined #ruby
friday has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
rkazak has quit [Quit: Sleep.....ing....]
JeanCarloMachado has joined #ruby
mjora7 has joined #ruby
DaniG2k has quit [Quit: leaving]
dionysus69 has joined #ruby
ddffg has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
conta has joined #ruby
JeanCarloMachado has joined #ruby
m0d has quit [Read error: Connection reset by peer]
SuperLag has quit [Quit: Lost terminal]
enterprisey has quit [Read error: Connection reset by peer]
djbkd_ has quit [Remote host closed the connection]
djbkd_ has joined #ruby
djbkd_ has quit [Remote host closed the connection]
atmosx has joined #ruby
mjora7 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
drcode has quit [Quit: ZNC 1.6.5 - http://znc.in]
conta has quit [Quit: conta]
Burgestrand has joined #ruby
iliketurtles has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
conta has joined #ruby
<foxmask> bonjello
last_staff has joined #ruby
mclee has quit [Ping timeout: 245 seconds]
jaruga has joined #ruby
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
Silthias has quit [Ping timeout: 276 seconds]
<Seenox> Hello. What is the best way to read a json file line by line and convert datas into hashes of hashes?
<ljarvis> Seenox: File.each_line
Silthias has joined #ruby
JeanCarloMachado has quit [Remote host closed the connection]
<ljarvis> then split the line into words (if that's what you want), String#split
<Seenox> ljarvis: Thanks, going to read it now.
<ljarvis> then hash them (this changes based on what algo you want)
<ljarvis> oh sorry json file
Sou|cutter has quit [Ping timeout: 240 seconds]
<ljarvis> the json file contains arrays or something?
<Seenox> ljarvis: Yes, I will show you an example in a minute.
<ljarvis> ok, in which case you probably want JSON.parse once you've read the file (you could use a streamed parser if the file is huge and you wanted to avoid excess memory)
<ruby[bot]> Seenox: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/6464110276ee403f7448792e5f51fa9f
<ruby[bot]> Seenox: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<Seenox> ljarvis: What I want to do is to read this type of json file line by read, and add each block into hashes.
<Seenox> line by line*
JeanCarloMachado has joined #ruby
<allisio> Seenox: Why do you need it to be line-by-line? `JSON.parse(File.read('foo'))` seems like it should be all you need?
<Seenox> allisio: Thanks. Let me read about it quickly.
<Seenox> allisio: I think I've already tried that but the hashes were not in the right format after using it.
vali has joined #ruby
<Seenox> hostgroup_json_file = File.read('hostgroup.json') hostgroup_hash = JSON.parse(hostgroup_json_file)
bigkevmcd has joined #ruby
vasilakisfil has joined #ruby
<allisio> Seenox: Your JSON is slightly ill-formed; you're missing the closing brackets on the internal hashes, and the trailing commas are considered syntax errors by the standard library's JSON module.
Cohedrin has joined #ruby
<Seenox> allisio: You're right. I've just copied a little part of my original json file. I've tried JSON.parse again now.
mark_66 has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
<Seenox> Seenox: It seems to work correctly.
<allisio> allisio: Good deal.
JeanCarloMachado has joined #ruby
jackrandom has joined #ruby
mclee has joined #ruby
<Seenox> allisio: Thank you again.
conta has quit [Quit: conta]
conta has joined #ruby
drcode has joined #ruby
JeanCarloMachado has quit [Ping timeout: 268 seconds]
vasilakisfil has quit [Ping timeout: 260 seconds]
aufi has joined #ruby
JeanCarloMachado has joined #ruby
anisha has quit [Read error: Connection reset by peer]
anisha has joined #ruby
Qchmqs has joined #ruby
Qchmqs has quit [Read error: Connection reset by peer]
tbuehlmann has left #ruby [#ruby]
User458764 has joined #ruby
latemus has quit [Ping timeout: 258 seconds]
mim1k has joined #ruby
<Seenox> allisio: I think I am lost again. I've successfully added each block of JSON into hashes. Now I want to select for example only hashes with a specific keys. What did I do wrong here? https://gist.github.com/anonymous/e4349eb54a72f1956d287cc134752452
nobitanobi has joined #ruby
roamingdog has joined #ruby
jaruga has quit [Quit: jaruga]
jaruga has joined #ruby
<al2o3-cr> Seenox: keys or values?
JeanCarloMachado has quit [Ping timeout: 240 seconds]
roamingdog has quit [Ping timeout: 276 seconds]
mikecmpbll has joined #ruby
Qchmqs__ has joined #ruby
andikr has joined #ruby
flying has joined #ruby
vasilakisfil has joined #ruby
<Seenox> al2o3-cr: Values, sorry. Is it a better idea to use .select? Like this for example: https://gist.github.com/anonymous/ee806e719b2df997f450e1d7f152f455
JeanCarloMachado has joined #ruby
<Burgestrand> Seenox `each` on a hash will yield both keys and values to the block, I assume `host_hash` is a hash here?
<Burgestrand> Seenox i.e. `|each_host|` should probably be `|host_key, host_value|` (ideally even more descriptive than that)
anisha has quit [Read error: Connection reset by peer]
anisha has joined #ruby
Gutenberg has quit [Ping timeout: 255 seconds]
postmodern has quit [Quit: Leaving]
Dry_Lips has joined #ruby
Dry_Lips has joined #ruby
Dry_Lips has quit [Changing host]
tekacs has quit [Ping timeout: 264 seconds]
pocketprotector has quit [Ping timeout: 264 seconds]
tekacs has joined #ruby
_DanN__ has quit [Ping timeout: 264 seconds]
_DanN_ has joined #ruby
Qchmqs__ is now known as Qchmqs
pocketprotector has joined #ruby
Yxhuvud has quit [Ping timeout: 240 seconds]
mim1k has quit [Ping timeout: 240 seconds]
Qchmqs is now known as Frites
Yxhuvud has joined #ruby
lhambley has joined #ruby
blackmes1 has joined #ruby
Silthias has quit [Ping timeout: 276 seconds]
<Seenox> Burgestrand: 'host_hash' is a hash of hashes in my case. So first I need to separate keys and values and then work with them? Something like this for example: https://gist.github.com/anonymous/2c1622dea53b912f3d4bdf6f06cc6690
<Burgestrand> Seenox `host_hash.each do |key, nested_hash|` — compare that to what you have
JeanCarloMachado has quit [Ping timeout: 268 seconds]
patarr has joined #ruby
Silthias has joined #ruby
<Burgestrand> Seenox e.g. https://eval.in/785293
al2o3-cr has quit [Ping timeout: 240 seconds]
esObe_ has joined #ruby
JeanCarloMachado has joined #ruby
<Seenox> Burgestrand: Thanks! Exactly what I needed. What if I've another nested_hash inside a nested_hash for example? Should I break it again with .each?
<Burgestrand> Seenox if you provide an example of what your data contains, and what you'd like to get out, I might be able to help you with the translation stuff inbetween :)
patarr has quit [Ping timeout: 240 seconds]
<Seenox> Burgestrand: Sure. One moment please.
<Burgestrand> Seenox typically `each` is only useful when you want to iterate through the data and do some side effect (usually printing), methods such as `select`, `map`, `filter`, etc are useful when you want to modify the data in some way and keep the result to continue working with it
<Burgestrand> Seenox that said, a side effect in `each` could be a variable outside the loop that you also modify, usually there's a more pure (side effect-free) way of doing it, which may or may not be nicer :)
mim1k has joined #ruby
Beams has joined #ruby
mooser has joined #ruby
<Seenox> Burgestrand: Here is my hash for example: https://gist.github.com/anonymous/9651b2498191d31de0bec2b0af5c55b8
<Burgestrand> Seenox that looks like two hashes
rakm has joined #ruby
<Seenox> Burgestrand: It will be 5000 hashes inside a hash.
Cohedrin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Burgestrand> Seenox with some kind of key, so in fact it's more like `host_hash = { "some key" => { "ID" => 37, … }, "some other key" => { "ID" => 48, … } }`?
JeanCarloMachado has quit [Ping timeout: 258 seconds]
<Seenox> Burgestrand: Should I avoid each and use select and map in this example? I want to remove all hashes which doesn't contain a certain value from a specific key.
JeanCarloMachado has joined #ruby
<Seenox> Burgestrand: No they don't have that first key.
<Burgestrand> Seenox every hash has a key and a value
<Burgestrand> Seenox if those two hashes you provided are in a hash, then they have a key
<Seenox> Burgestrand: When I use host_hash.each do |each_host|, then it returns each block of those hashes.
<Seenox> Burgestrand: Which looks like what I've sent you as example of my hash.
<Burgestrand> Seenox can you show the result of `host_hash.class`
<Seenox> Burgestrand: Hmm, I am lost I think. should I do 'puts host_hash.class' ?
<Burgestrand> Seenox yes :)
<Seenox> Burgestrand: Array
<Burgestrand> Seenox hehe, figures, so your `host_hash` is not a hash, it's an array, which is a list of hashes, and not a hash of hashes, it doesn't change too much but it's an important distinction
<Seenox> Burgestrand: Exactly. They should be converted into list of hashes first?
<Burgestrand> Seenox not at all! But I'd probably name the variable something like `hosts_array` or even just `hosts`
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Seenox> Burgestrand: That's how I imported them from a json file: https://gist.github.com/anonymous/5c40254cc2a74b71a9f7f81b79c8328a
<Burgestrand> Seenox yes, it's correct :)
<Seenox> I've renamed it to host_array.
<Burgestrand> Seenox an example code to keep only the hosts with an `operatingsystem_name` matching the text `Debian` anywhere could look like this: `debians = host_array.keep_if { |host| /Debian/ === host.dig("Betriebssystem", "operatingsystem_name") }`
depesz has joined #ruby
depesz has left #ruby [#ruby]
<Burgestrand> Seenox e.g. an example that filters on environment: https://eval.in/785344
d10n-work has quit [Quit: Connection closed for inactivity]
jackrandom has quit [Remote host closed the connection]
Ar_Da has joined #ruby
<Ar_Da> hi
<Ar_Da> How can I extract a substring from another string taking N character after and before the substring. For instance I have a string like this: aaaabbbccccctttoooo. I want to extract "cccc" and 4 character after and before so I get abbbcccctttto
<Ar_Da> sorry It would be abbbccccttto
jsrn_ has joined #ruby
<Burgestrand> Ar_Da What if you don't have either 4 characters before and/or after?
<Ar_Da> Burgestrand: that's a nice point
<Ar_Da> my problem is that I dunno any delimiter
<Ar_Da> so I think I have to something more complex to check that you say
<Burgestrand> >> "aaaabbbccccctttoooo"[/.{0,4}cccc.{0,4}/]
<ruby[bot]> Burgestrand: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<Burgestrand> Ah, poor ruby bot.
roamingdog has joined #ruby
<Ar_Da> Burgestrand: thanks
<Burgestrand> Seenox :)
<Burgestrand> Ar_Da that'll allow 0 to 4 characters before and after, might be a bit finnicky with newlines
<Seenox> Burgestrand: Did I do something terribly wrong?
<Burgestrand> Seenox did it work terribly?
tvw has joined #ruby
<Seenox> Burgestrand: No, but I got an error.
<Burgestrand> Seenox ooh, exciting, what error?
<Ar_Da> Burgestrand: thank you
<Burgestrand> Ar_Da yw :)
<Seenox> Burgestrand: `block in <main>': undefined method `dig' for #<Hash:0x00000001c03770> (NoMethodError) from test.rb:12:in `keep_if' from test.rb:12:in `<main>'
<Burgestrand> Seenox ah, I betcha you're on an older version of ruby than the one I'm used to
JeanCarloMachado has quit [Ping timeout: 264 seconds]
<Burgestrand> Seenox you can replace `host.dig("hostgroup_name")` with just `host["hostgroup_name"]`
<Seenox> Burgestrand: I am on 1.9.1
mogaj has joined #ruby
lxsameer has joined #ruby
<Burgestrand> Seenox aye, it's way old and not even receiving security patches these days, but it's not uncommon to have it as the system ruby still because… well… systems lag behind
JeanCarloMachado has joined #ruby
roamingdog has quit [Ping timeout: 240 seconds]
<Seenox> Burgestrand: Worked. but just returned [].
mogaj has quit [Client Quit]
<Seenox> Burgestrand: as in my example, I want to keep each of hashes (or Array?) that contains that Debian in hostgroup_name in it.
<Burgestrand> Seenox ah, yes, you'll need `host["Betriebssystem"]["hostgroup_name"]`, since the `hostgroup_name` is nested inside another hash inside the host
<Burgestrand> Seenox downside to using `[]` instead of `dig` here is that you'll get an error if the key "Betriebssystem" is missing from any host, but with some luck your data is fairly uniform :)
<Seenox> Burgestrand: Awesome! It worked.
<Burgestrand> Seenox \o/
<Seenox> Burgestrand: [6, 16, 48, 50]
<Burgestrand> Seenox if the value is surrounded by `[…]` then it's an Array, if it's surrounded by `{…}` it's a hash
<Seenox> Burgestrand: So it will be ok to work with them for further data editing in it as arrays?
<Burgestrand> Seenox yeah it's no problem, the thing is you need to know what format your data is in
<Seenox> Burgestrand: Thank you so much! It worked perfectly. https://gist.github.com/anonymous/a2cbae60c592acf12aec74dd836cca1f
binaryplease has joined #ruby
<Burgestrand> Seenox lovely :)
JeanCarloMachado has quit [Ping timeout: 240 seconds]
<Seenox> Burgestrand: You will be an amazing teacher one day! So patient and helpful. That's really great.
<Burgestrand> Seenox thank you :)
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JeanCarloMachado has joined #ruby
toretore has joined #ruby
<Seenox> Burgestrand: Did we use .map to run through each block of arrays?
<Burgestrand> Seenox nope, no need, `map` is only used if you want to change the data you get back in some way
<Burgestrand> >> [1, 2, 3, 4].map { |x| x ** x }
<ruby[bot]> Burgestrand: # => [1, 4, 27, 256] (https://eval.in/785377)
<Burgestrand> Seenox ^
SenpaiSilver has joined #ruby
<Seenox> Burgestrand: The example was too much for a newbie like me! lol
<Seenox> Burgestrand: So in my example, we could just use p production_hosts ?
<Seenox> Burgestrand: "IF" we wanted to just print the whole block.
<Burgestrand> Seenox yeah, sure, if you're happy with the result of that, it's just short for `print production_hosts` with a more debuggy like output
blackmes1 has quit [Ping timeout: 240 seconds]
<Seenox> Burgestrand: I see. So we used .map to print only 'ID's from the remaining hosts?
<Burgestrand> Seenox aye
<Seenox> Burgestrand: Gotcha. Thanks again.
<Seenox> Burgestrand: I will have to work more with my data and further filter it and see how far I can go with it.
SenpaiSilver has quit [Client Quit]
<Burgestrand> Seenox how far? to the stars, for sure :)
SenpaiSilver has joined #ruby
<Seenox> Burgestrand: With your help, for sure! It always help a lot to have someone like you that can explain stuff in human language so to say!
<Burgestrand> Seenox I'm sure there are many more capable hands in this channel that'd be happy to help :)
<Seenox> Burgestrand: I will definitely use their help in the future too.
al2o3-cr has joined #ruby
Mortomes|Work_ has joined #ruby
Mortomes|Work has quit [Ping timeout: 260 seconds]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
JeanCarloMachado has joined #ruby
jaruga has quit [Quit: jaruga]
SenpaiSilver has quit [Quit: Leaving]
_bet0n has joined #ruby
apparition has joined #ruby
apparition has quit [Changing host]
apparition has joined #ruby
binaryplease has quit [Ping timeout: 240 seconds]
astrobunny has joined #ruby
guardianx has joined #ruby
mim1k has quit [Ping timeout: 258 seconds]
JeanCarloMachado has quit [Remote host closed the connection]
JeanCarloMachado has joined #ruby
guardianx has quit [Remote host closed the connection]
romank has joined #ruby
guardianx has joined #ruby
incomprehensibly has quit [Remote host closed the connection]
digitalfiz has quit [Remote host closed the connection]
Majost has quit [Remote host closed the connection]
davic has quit [Remote host closed the connection]
mrbobbytables has quit [Remote host closed the connection]
bweston92 has quit [Remote host closed the connection]
ec has quit [Remote host closed the connection]
knowtheory has quit [Remote host closed the connection]
ckrailo has quit [Remote host closed the connection]
rflot has quit [Remote host closed the connection]
vcoinminer has quit [Remote host closed the connection]
jcp___ has quit [Remote host closed the connection]
jpinnix has quit [Remote host closed the connection]
dukedave has quit [Remote host closed the connection]
[diecast] has quit [Remote host closed the connection]
jhill__ has quit [Read error: Connection reset by peer]
mitsuhiko has quit [Remote host closed the connection]
MrBloo has quit [Remote host closed the connection]
jimcroft has quit [Remote host closed the connection]
mroth has quit [Remote host closed the connection]
jmhmccr has quit [Remote host closed the connection]
err_ok has quit [Remote host closed the connection]
hayden___ has quit [Remote host closed the connection]
kapowaz has quit [Write error: Broken pipe]
wbnns has quit [Remote host closed the connection]
mim1k has joined #ruby
[diecast] has joined #ruby
kapowaz has joined #ruby
digitalfiz has joined #ruby
dukedave has joined #ruby
jhill__ has joined #ruby
mroth has joined #ruby
ckrailo has joined #ruby
jpinnix has joined #ruby
ec has joined #ruby
jmhmccr has joined #ruby
knowtheory has joined #ruby
al2o3-cr has quit [Read error: Connection reset by peer]
incomprehensibly has joined #ruby
rflot has joined #ruby
wbnns has joined #ruby
mrbobbytables has joined #ruby
noctux has joined #ruby
err_ok has joined #ruby
BTRE has quit [Ping timeout: 240 seconds]
jackrandom has joined #ruby
Majost has joined #ruby
jcp___ has joined #ruby
jimcroft has joined #ruby
mitsuhiko has joined #ruby
Burgestrand has quit [Quit: Closing time!]
al2o3-cr has joined #ruby
Burgestrand has joined #ruby
JeanCarloMachado has quit [Ping timeout: 246 seconds]
apparition has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JeanCarloMachado has joined #ruby
jackrandom has quit [Remote host closed the connection]
jackrandom has joined #ruby
skweek has quit [Ping timeout: 258 seconds]
bernd27 has joined #ruby
Burgestrand has quit [Quit: Closing time!]
Burgestrand has joined #ruby
jackrandom has quit [Ping timeout: 276 seconds]
ferr has joined #ruby
vcoinminer has joined #ruby
MrBloo has joined #ruby
hayden___ has joined #ruby
patarr has joined #ruby
brent__ has joined #ruby
bweston92 has joined #ruby
davic has joined #ruby
Burgestrand has quit [Quit: Closing time!]
brent__ has quit [Ping timeout: 240 seconds]
patarr has quit [Ping timeout: 240 seconds]
chopin has joined #ruby
Burgestrand has joined #ruby
JeanCarloMachado has quit [Ping timeout: 264 seconds]
agit0 has joined #ruby
skweek has joined #ruby
KnownSyntax has quit [Quit: No Ping reply in 180 seconds.]
chopin has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
Burgestrand has quit [Quit: Closing time!]
KnownSyntax has joined #ruby
astrobunny has quit [Ping timeout: 258 seconds]
Burgestrand has joined #ruby
maxkuzmin has quit [Quit: bye, guys!]
t-recx has joined #ruby
jaruga has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Burgestrand has quit [Quit: Closing time!]
Burgestrand has joined #ruby
marr has joined #ruby
bauruine has quit [Quit: ZNC - http://znc.in]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
User458764 has joined #ruby
bauruine has joined #ruby
aupadhye has joined #ruby
GodFather__ has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
Burgestrand has quit [Quit: Closing time!]
Burgestrand has joined #ruby
Subfusc is now known as Subfusc_
Subfusc_ is now known as Subfusc
ChaosArchitect has joined #ruby
jaruga has quit [Quit: jaruga]
agit0 has quit [Ping timeout: 240 seconds]
skade_ has quit [Ping timeout: 260 seconds]
mooser has quit [Remote host closed the connection]
nobitanobi has quit [Remote host closed the connection]
nobitanobi has joined #ruby
Burgestrand has quit [Quit: Closing time!]
Burgestrand has joined #ruby
07EAAS2NJ has joined #ruby
patarr has joined #ruby
cfec0b8d has quit [Remote host closed the connection]
Snowy has joined #ruby
ChaosArchitect has quit [Quit: leaving]
07EAAS2NJ has quit [Ping timeout: 240 seconds]
patarr has quit [Ping timeout: 268 seconds]
Ar_Da has quit [Quit: leaving]
guardianx has left #ruby [#ruby]
skweek has joined #ruby
BSaboia has joined #ruby
ddffg has quit [Ping timeout: 260 seconds]
mniip has quit [Ping timeout: 608 seconds]
hndk has joined #ruby
mooser has joined #ruby
petruff has joined #ruby
yorickpeterse has joined #ruby
Mortomes|Work_ has quit [Ping timeout: 260 seconds]
apparition has joined #ruby
ddffg has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
User458764 has joined #ruby
minimalism has quit [Quit: minimalism]
binaryplease has joined #ruby
ldnunes has joined #ruby
blackwind_123 has joined #ruby
JeanCarloMachado has joined #ruby
binaryplease has quit [Ping timeout: 240 seconds]
hndk has quit [Quit: Leaving]
sczizzo has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
blackmes1 has joined #ruby
ferr has quit [Quit: WeeChat 1.7]
charliesome has quit [Client Quit]
millerti has joined #ruby
ferr has joined #ruby
millerti has quit [Client Quit]
Guest51121 has quit [Ping timeout: 240 seconds]
Guest77232 has joined #ruby
mooser has quit [Remote host closed the connection]
mooser has joined #ruby
millerti has joined #ruby
gnufied has joined #ruby
fusta has joined #ruby
GinoMan has joined #ruby
GinoMan has quit [Max SendQ exceeded]
antgel has joined #ruby
GinoMan has joined #ruby
brent__ has joined #ruby
GinoMan has quit [Remote host closed the connection]
GinoMan has joined #ruby
Guest77232 is now known as CrazyEddy
GinoMan has quit [Max SendQ exceeded]
GinoMan has joined #ruby
rwb has quit [Ping timeout: 240 seconds]
User458764 has joined #ruby
_bet0n has quit [Quit: Leaving.]
brent__ has quit [Ping timeout: 268 seconds]
daf__ has joined #ruby
<daf__> is ruby different from ruby on rails?
skweek has quit [Ping timeout: 276 seconds]
fusta has quit [Ping timeout: 276 seconds]
<elomatreb> Ruby on Rails is a set of libraries/a framework written in Ruby, yes
sepp2k has joined #ruby
Lavan has joined #ruby
<Lavan> Hey guys
<Lavan> same guy from yesterday
<Lavan> same question...
chopin has joined #ruby
<Lavan> i just noticed something interesting...
<daf__> elomatreb: ruby on rails would entirely be different? what is the purpose of ruby on rails?
jamesaxl has joined #ruby
<Lavan> if i print out the cursor value every time it changes, it seems that it doesn't go all the way up to 143 before it reverses...
<Lavan> it shoudn't be this way
<Zarthus> daf__: It's something you could google ;p
<elomatreb> Lavan: Your code?
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Lavan> the problem statement ill add soon
<elomatreb> Protip: If you give your gist file a .rb extension, you get syntax highlighting
biberu has joined #ruby
<Lavan> good tip mate! didn't know...
<Lavan> should i re-upload it?
<elomatreb> You can edit gists, you even get a full diff history
gnufied has quit [Quit: Leaving]
chopin has quit [Ping timeout: 268 seconds]
haylon_ has joined #ruby
d10n-work has joined #ruby
haylon has quit [Ping timeout: 240 seconds]
pupsicle has joined #ruby
polysics has joined #ruby
tvw has quit []
gnufied has joined #ruby
skweek has joined #ruby
<Lavan> edited it elomatreb
roamingdog has joined #ruby
cfec0b8d has joined #ruby
pupsicle has quit [Remote host closed the connection]
pupsicle has joined #ruby
brent__ has joined #ruby
skade_ has joined #ruby
brent__ has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
BTRE has joined #ruby
sczizzo has quit []
Snowy has quit [Remote host closed the connection]
Snowy has joined #ruby
skade_ has quit [Ping timeout: 240 seconds]
CrazyEddy has quit [Ping timeout: 246 seconds]
ramortegui has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
CrazyEddy has joined #ruby
Snowy has quit [Ping timeout: 240 seconds]
duckpupp1 has joined #ruby
erlendf has joined #ruby
lhambley has quit [Quit: Textual IRC Client: www.textualapp.com]
jameser has joined #ruby
erlend has quit [Ping timeout: 240 seconds]
erlendf is now known as erlend
mim1k has quit [Disconnected by services]
roamingdog has quit [Remote host closed the connection]
mim1k_ has joined #ruby
cdg has joined #ruby
roamingdog has joined #ruby
workmad3 has joined #ruby
jameser has quit [Client Quit]
sonOfRa has quit [Quit: Bye!]
mim1k_ has quit [Read error: Connection reset by peer]
gaucheph has joined #ruby
bernd27 has quit [Ping timeout: 260 seconds]
sonOfRa has joined #ruby
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
mjuszczak has joined #ruby
jrafanie has joined #ruby
workmad3_ has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
jameser has joined #ruby
workmad3 has joined #ruby
millerti has joined #ruby
patr0clus has joined #ruby
jameser has quit [Read error: Connection reset by peer]
dcunit3d has joined #ruby
workmad3_ has quit [Ping timeout: 255 seconds]
millerti has quit [Read error: Connection reset by peer]
Snowy has joined #ruby
mniip has joined #ruby
DLSteve has joined #ruby
scrooloose has joined #ruby
beauby has joined #ruby
djbkd_ has joined #ruby
gottcha has joined #ruby
djbkd_ has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
haylon has joined #ruby
jameser has joined #ruby
timvisher has joined #ruby
dcunit3d has quit [Ping timeout: 240 seconds]
jameser has quit [Ping timeout: 240 seconds]
Snowy has quit [Quit: ragequit]
mtkd has quit [Ping timeout: 260 seconds]
mtkd has joined #ruby
nobodyzxc has joined #ruby
mooser has quit [Remote host closed the connection]
valentinul has joined #ruby
Beams has quit [Remote host closed the connection]
Beams has joined #ruby
vali has quit [Ping timeout: 258 seconds]
valentinul has quit [Ping timeout: 276 seconds]
mim1k has quit [Ping timeout: 258 seconds]
ldnunes has quit [Ping timeout: 260 seconds]
rkazak has joined #ruby
Guest96 has quit [Remote host closed the connection]
GodFather__ has quit [Ping timeout: 240 seconds]
blackmes1 has quit [Ping timeout: 240 seconds]
patarr has joined #ruby
patarr_ has joined #ruby
skade_ has joined #ruby
Guest96 has joined #ruby
jaruga has joined #ruby
daf__ has quit [Ping timeout: 260 seconds]
jaruga has quit [Remote host closed the connection]
mooser has joined #ruby
jaruga has joined #ruby
beauby has quit [Ping timeout: 240 seconds]
ResidentBiscuit has joined #ruby
mim1k has joined #ruby
__Yiota has joined #ruby
kobain has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
blackmes1 has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
GodFather__ has joined #ruby
whiteline has quit [Read error: Connection reset by peer]
User458764 has joined #ruby
whiteline has joined #ruby
theunraveler has joined #ruby
whiteline has quit [Max SendQ exceeded]
BSAlb has joined #ruby
whiteline has joined #ruby
mikecmpb_ has joined #ruby
theunraveler has quit [Client Quit]
theunraveler has joined #ruby
BSaboia has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Ping timeout: 240 seconds]
fusta has joined #ruby
last_staff has quit [Quit: last_staff]
gizmore has quit [Ping timeout: 276 seconds]
gizmore has joined #ruby
mark_66 has quit [Read error: Connection reset by peer]
mark_66 has joined #ruby
BSab has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
nopacien13 has joined #ruby
SuperLag has joined #ruby
jimeh has quit [Ping timeout: 264 seconds]
cardoni has quit [Ping timeout: 264 seconds]
Pongles has quit [Ping timeout: 264 seconds]
dionysus69 has quit [Remote host closed the connection]
nahra has quit [Remote host closed the connection]
justinmrkva has quit [Ping timeout: 255 seconds]
tsunamie has quit [Ping timeout: 240 seconds]
andersh has quit [Ping timeout: 255 seconds]
ewilliam__ has quit [Ping timeout: 255 seconds]
dionysus69 has joined #ruby
nahra has joined #ruby
bcavileer has quit [Ping timeout: 264 seconds]
avdi has quit [Ping timeout: 264 seconds]
mrsolo has quit [Ping timeout: 264 seconds]
johnkpaul has quit [Ping timeout: 264 seconds]
kireevco has quit [Ping timeout: 264 seconds]
troter__________ has quit [Ping timeout: 264 seconds]
pfg has quit [Ping timeout: 264 seconds]
bove has quit [Ping timeout: 264 seconds]
solidsnack has quit [Ping timeout: 264 seconds]
Heero__ has quit [Ping timeout: 255 seconds]
headius has quit [Ping timeout: 240 seconds]
roamingd_ has joined #ruby
Jello_Raptor has quit [Ping timeout: 240 seconds]
davic has quit [Ping timeout: 276 seconds]
kiltzman has quit [Ping timeout: 260 seconds]
jaruga has quit [Remote host closed the connection]
abort_ has quit [Ping timeout: 255 seconds]
planigan has quit [Ping timeout: 240 seconds]
tatey has quit [Ping timeout: 240 seconds]
mitsuhiko has quit [Ping timeout: 264 seconds]
jcp___ has quit [Ping timeout: 264 seconds]
nopacienc3 has quit [Ping timeout: 264 seconds]
jaruga has joined #ruby
mrbobbytables has quit [Ping timeout: 276 seconds]
dukedave has quit [Ping timeout: 276 seconds]
Guest10418 has quit [Ping timeout: 255 seconds]
szulak has quit [Quit: bye!]
davic has joined #ruby
jimcroft has quit [Ping timeout: 255 seconds]
oliv_____ has joined #ruby
oliv_____ has quit [Client Quit]
boshhead has quit [Ping timeout: 240 seconds]
balazs has quit [Ping timeout: 240 seconds]
guacamole has quit [Ping timeout: 240 seconds]
TheMoonMaster has quit [Ping timeout: 264 seconds]
charles81_ has quit [Ping timeout: 264 seconds]
chromis has quit [Ping timeout: 264 seconds]
noodle has quit [Ping timeout: 264 seconds]
ec\_ has quit [Ping timeout: 264 seconds]
edwardly has quit [Ping timeout: 264 seconds]
t-richards has quit [Ping timeout: 264 seconds]
Gnubie_ has quit [Ping timeout: 255 seconds]
justinmcp has quit [Ping timeout: 255 seconds]
BSAlb has quit [Ping timeout: 255 seconds]
Liothen has quit [Ping timeout: 255 seconds]
jdelstrother has quit [Ping timeout: 255 seconds]
rjungemann has quit [Ping timeout: 255 seconds]
justinmcp has joined #ruby
chef3000 has quit [Ping timeout: 260 seconds]
iamayam has quit [Ping timeout: 276 seconds]
ytti_ has quit [Ping timeout: 258 seconds]
Gnubie_ has joined #ruby
MrBloo has quit [Ping timeout: 264 seconds]
vcoinminer has quit [Ping timeout: 264 seconds]
skmp has quit [Ping timeout: 264 seconds]
ahuman has quit [Ping timeout: 264 seconds]
pmarreck has quit [Ping timeout: 264 seconds]
tomphp has joined #ruby
boshhead has joined #ruby
hotpancakes has joined #ruby
seggy has quit [Ping timeout: 240 seconds]
CrazyEddy has quit [Ping timeout: 276 seconds]
jpinnix has quit [Ping timeout: 276 seconds]
roamingdog has quit [Ping timeout: 255 seconds]
moufl has quit [Ping timeout: 246 seconds]
ytti has joined #ruby
ahuman has joined #ruby
pupsicle1 has joined #ruby
guidos has quit [Ping timeout: 264 seconds]
sent-hil has quit [Ping timeout: 240 seconds]
allisio has quit [Ping timeout: 240 seconds]
Majost has quit [Ping timeout: 255 seconds]
kies has quit [Ping timeout: 255 seconds]
joevandyk has quit [Ping timeout: 255 seconds]
abort has joined #ruby
jmhmccr has quit [Ping timeout: 276 seconds]
ec\ has joined #ruby
jimcroft has joined #ruby
iamayam has joined #ruby
greenhat has quit [Ping timeout: 264 seconds]
brixen has quit [Ping timeout: 264 seconds]
freeze has quit [Ping timeout: 264 seconds]
vondruch has quit [Client Quit]
csk_ has quit [Ping timeout: 255 seconds]
Tharbakim has quit [Ping timeout: 240 seconds]
daed has quit [Ping timeout: 255 seconds]
noodle has joined #ruby
daed has joined #ruby
vondruch has joined #ruby
duckpupp1 has quit [Ping timeout: 276 seconds]
darthvorik has quit [Ping timeout: 240 seconds]
chrisarcand has quit [Ping timeout: 255 seconds]
Pongles has joined #ruby
jcp___ has joined #ruby
kies has joined #ruby
TheMoonMaster has joined #ruby
pupsicle has quit [Ping timeout: 264 seconds]
pupsicle1 is now known as pupsicle
jpinnix has joined #ruby
mattp__ has quit [Ping timeout: 240 seconds]
CrazyEddy has joined #ruby
mrbobbytables has joined #ruby
chrisarcand has joined #ruby
manveru has quit [Ping timeout: 264 seconds]
vcoinminer has joined #ruby
spiette has quit [Ping timeout: 255 seconds]
csk has joined #ruby
jmhmccr has joined #ruby
kireevco has joined #ruby
kiltzman has joined #ruby
greenhat has joined #ruby
dukedave has joined #ruby
MrBloo has joined #ruby
Majost has joined #ruby
<hxegon> Lavan: Hey! Is the cursor not going all the way up to the cell value because the ciphertext isn't that long? Otherwise it would be an out of bounds, right?
last_staff has joined #ruby
Liothen has joined #ruby
patarr has quit [Ping timeout: 260 seconds]
moufl has joined #ruby
rwb has joined #ruby
solidsnack has joined #ruby
MissionCritical has quit [Ping timeout: 255 seconds]
duckpupp1 has joined #ruby
edwardly has joined #ruby
edwardly has joined #ruby
edwardly has quit [Changing host]
mitsuhiko has joined #ruby
justinmrkva has joined #ruby
tatey has joined #ruby
fumk has quit [Ping timeout: 264 seconds]
Jello_Raptor has joined #ruby
mattp__ has joined #ruby
bove has joined #ruby
mrsolo has joined #ruby
rjungemann has joined #ruby
brixen has joined #ruby
skade_ has quit [Ping timeout: 260 seconds]
Heero__ has joined #ruby
t-richards has joined #ruby
pmarreck has joined #ruby
conta has quit [Ping timeout: 276 seconds]
allisio has joined #ruby
gaucheph has quit [Ping timeout: 276 seconds]
planigan has joined #ruby
patarr has joined #ruby
balazs has joined #ruby
andersh has joined #ruby
tsunamie has joined #ruby
Tharbakim has joined #ruby
Tharbakim has joined #ruby
Tharbakim has quit [Changing host]
darthvorik has joined #ruby
szulak has joined #ruby
spiette has joined #ruby
fumk has joined #ruby
hogetaro_ has joined #ruby
cardoni has joined #ruby
hogetaro has quit [Ping timeout: 268 seconds]
antgel has quit [Ping timeout: 260 seconds]
avdi has joined #ruby
workmad3 has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guacamole has joined #ruby
<Lavan> ive just noticed that it does goall the way up so it is not the problem
<al2o3-cr> Lavan: is this some sort of challenge?
johnkpaul has joined #ruby
gheegh has joined #ruby
mooser has quit [Remote host closed the connection]
chromis has joined #ruby
bcavileer has joined #ruby
conta1 has joined #ruby
charles81_ has joined #ruby
tomphp has joined #ruby
mooser has joined #ruby
pfg has joined #ruby
skmp has joined #ruby
mooser has quit [Remote host closed the connection]
centrx has joined #ruby
jimeh has joined #ruby
apparition has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mooser has joined #ruby
ewilliam__ has joined #ruby
manveru has joined #ruby
headius has joined #ruby
jdelstrother has joined #ruby
jdelstrother is now known as Guest51193
<Lavan> yes it is
<centrx> It begins
<Lavan> it is a challenge al2o3-cr
mooser has quit [Remote host closed the connection]
last_staff has quit [Quit: last_staff]
antgel has joined #ruby
rippa has joined #ruby
mooser has joined #ruby
Sou|cutter has joined #ruby
mikecmpb_ has quit [Quit: inabit. zz.]
patarr has quit [Quit: leaving]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
patarr_ has quit [Quit: leaving]
mooser has quit [Remote host closed the connection]
ledestin has joined #ruby
cahoots has joined #ruby
<al2o3-cr> Lavan: the closest i get is: https://eval.in/785624
duderonomy has joined #ruby
patarr has joined #ruby
blackmes1 has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby
<al2o3-cr> i can't see why that last part is malformed
Burgestrand has quit [Quit: Closing time!]
mim1k has quit [Ping timeout: 276 seconds]
patarr_ has joined #ruby
cfec0b8d has quit [Remote host closed the connection]
patarr has quit [Ping timeout: 260 seconds]
aufi has quit [Ping timeout: 276 seconds]
MissionCritical has joined #ruby
theunraveler has quit []
theunraveler has joined #ruby
theunraveler has quit [Client Quit]
theunraveler has joined #ruby
polishdub has joined #ruby
theunraveler has quit [Client Quit]
cahoots has quit [Ping timeout: 268 seconds]
<Lavan> how did you make it to work al2o3-cr??!
cpruitt has joined #ruby
<Lavan> its awesome
<Lavan> what happend there really? can you explain the solution al2o3-cr ? what did you do there with the [c%128].pack('C') and is it the only difference
ferr has quit [Quit: WeeChat 1.7]
tercenya has quit [Remote host closed the connection]
tercenya has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<al2o3-cr> Lavan: it's the same as (c%128).chr i was just checking something before oh, and dir = 1 if cursor < 0 instead of <= the rest you earned :P
patarr_ has quit [Ping timeout: 240 seconds]
<Lavan> alright this is so cool
<Lavan> now i really wonder why there's still a lil bit of cipher left scrambled...
<al2o3-cr> it's still not right though
<Lavan> no no, it turns out to be right...
<al2o3-cr> i'll have another look after got to go
<Lavan> almost right at least, but you can figure the password from that
brent__ has joined #ruby
roamingd_ has quit [Read error: Connection reset by peer]
<Lavan> thanks alot :D
workmad3_ has joined #ruby
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
brent__ has quit [Remote host closed the connection]
roamingdog has quit [Remote host closed the connection]
brent__ has joined #ruby
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
mim1k has joined #ruby
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
conta1 has quit [Ping timeout: 258 seconds]
roamingdog has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
patr0clus has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
xpitr is now known as ecdsa521
patr0clus has joined #ruby
<centrx> FYI Ruby is the best programming language
workmad3_ has quit [Ping timeout: 255 seconds]
cahoots has joined #ruby
<ytti> glad that's settled now
<ytti> i'd love to review the paper
<ytti> i have some additional questions and concerns
sonOfRa has quit [Remote host closed the connection]
BSaboia has joined #ruby
sonOfRa has joined #ruby
joevandyk has joined #ruby
BSAlb has joined #ruby
duderonomy has quit [Ping timeout: 268 seconds]
BSab has quit [Ping timeout: 260 seconds]
cahoots has quit [Quit: leaving]
BSaboia has quit [Ping timeout: 276 seconds]
blackmes1 has joined #ruby
Yxhuvud has quit [Read error: Connection reset by peer]
rkazak has quit [Quit: Sleep.....ing....]
Yxhuvud has joined #ruby
<kspencer> is there a library where I can run var.parent.arbitrary.child = value, without dealing with the 'no method' and that can be returned as a hash
amclain has joined #ruby
<ljarvis> kspencer: well, that's not a hash, they're method calls
seggy has joined #ruby
<ljarvis> unless you mean foo[:bar][:baz][:child] = value
chopin has joined #ruby
<ljarvis> also, srsly law of demeter
rkazak has joined #ruby
cagomez has joined #ruby
cagomez has quit [Remote host closed the connection]
mark_66 has quit [Remote host closed the connection]
cagomez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
hotpancakes has quit [Remote host closed the connection]
hobodave has joined #ruby
blackmesa has joined #ruby
<elomatreb> kspencer: OpenStructs sound like what you want: http://ruby-doc.org/stdlib-2.4.1/libdoc/ostruct/rdoc/OpenStruct.html
blackmes1 has quit [Ping timeout: 240 seconds]
jsrn_ has quit [Quit: Leaving]
<kspencer> hmm I'll change my code to implement that, thanks elomatreb
kobain has quit [Ping timeout: 276 seconds]
hotpancakes has joined #ruby
beauby has joined #ruby
Cohedrin has joined #ruby
brodul has joined #ruby
andikr has quit [Read error: Connection reset by peer]
kristofferR has joined #ruby
chef3000 has joined #ruby
beauby has quit [Ping timeout: 264 seconds]
<chef3000> lost my connection not sure if this was sent. https://pastebin.com/FNZ0ubXu
<ruby[bot]> chef3000: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/1c9e62b3ce1e9841fe028aa884b801b0
<ruby[bot]> chef3000: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<elomatreb> chef3000: It was not, and neither was any question
Frites has quit [Ping timeout: 240 seconds]
<chef3000> I am attempting to delete all files in a folder except for one. The gist is my attempt. Wondering if there is a better/preferred way to achieve this. Thanks.
<kspencer> Even without looking at that, looping through the directories files and doing an if in there to see if its the one you want sounds like the easiest route to me
tlaxkit has joined #ruby
<elomatreb> FileUtils.rm takes a list (an array) of files, so you could use array difference
<kspencer> o.o huh
<elomatreb> FileUtils.rm(Dir.glob('c:/test/temp/**/*') - ["c:/test/temp/file_you_want_to_keep.txt"])
vasilakisfil has quit [Quit: Konversation terminated!]
<ccooke> that could be quite bad if the set of files is big, though
<elomatreb> The list of files or the list of exceptions?
<ccooke> The set of files
<chef3000> It will actually be run against a yum repo directory, so the files in that folder will be very few.
marxarelli|afk is now known as marxarelli
<chef3000> thank you that is what I was looking for.
gusrub has joined #ruby
txjoe_ has joined #ruby
tlaxkit has quit [Quit: tlaxkit]
txjoe_ has left #ruby [#ruby]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
GodFather__ has quit [Ping timeout: 240 seconds]
nobodyzxc has quit [Quit: leaving]
skade_ has joined #ruby
jaruga has quit [Quit: jaruga]
outreachdan has joined #ruby
Beams has quit [Quit: .]
mim1k has quit [Ping timeout: 264 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
mtkd has quit [Ping timeout: 246 seconds]
aspiers has joined #ruby
skade_ has quit [Ping timeout: 276 seconds]
mtkd has joined #ruby
BSab has joined #ruby
Cohedrin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
LastWhisper____ has joined #ruby
<LastWhisper____> hey guys
<havenwood> LastWhisper____: hi
BSaboia has joined #ruby
LastWhisper____ has left #ruby [#ruby]
LastWhisper____ has joined #ruby
BSAlb has quit [Ping timeout: 264 seconds]
<LastWhisper____> hey havenwood
chef3000 has quit [Quit: Page closed]
JeanCarloMachado has joined #ruby
<LastWhisper____> I'm writing a small blog post and trying to come up with some ruby snippets that represent "Guitar output" digitally
<LastWhisper____> so each string is represented similar to [1,2,3,4,5]
<LastWhisper____> and if you were to iteratively strum each one, the output would be like [1,2,3,4,5], but with a "delay" effect, it would be [1,1,2,2,3,3,4,4,5,5] (this part is easy)
BSab has quit [Ping timeout: 240 seconds]
workmad3_ has joined #ruby
<LastWhisper____> the next level though, is to represent "feedback" which would look a bit like this [1,1,1,1,1,1,2,2,2,1,1,2,1,2,1,2,1,2,1,2,1]
ben______ has joined #ruby
<LastWhisper____> from what i'm told, feedback is feeding the delay signal back into itself
workmad3 has quit [Ping timeout: 255 seconds]
<LastWhisper____> I'm trying to think of a way to represent that just playing around with arrays though and I can't think of any besides just doing some manual work and concatenating
roamingdog has joined #ruby
brent__ has quit [Remote host closed the connection]
ben_____ has quit [Ping timeout: 255 seconds]
troter__________ has joined #ruby
raspado has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guidos has joined #ruby
jrafanie has joined #ruby
sent-hil has joined #ruby
beauby has joined #ruby
<canton7> maybe the sticking point is that audio isn't just "one note then another" - they're added together
roamingdog has quit [Ping timeout: 276 seconds]
pupsicle has quit [Remote host closed the connection]
hotpancakes has quit [Remote host closed the connection]
pupsicle has joined #ruby
brent__ has joined #ruby
ColeHub has joined #ruby
hotpancakes has joined #ruby
__Yiota has quit [Remote host closed the connection]
__Yiota has joined #ruby
lxsameer has quit [Quit: WeeChat 1.7]
araujo has joined #ruby
araujo has quit [Max SendQ exceeded]
araujo has joined #ruby
AndBobsYourUncle has joined #ruby
cdg has quit [Remote host closed the connection]
mooser has joined #ruby
swills has quit [Excess Flood]
gheegh has quit [Quit: Textual IRC Client: www.textualapp.com]
swills has joined #ruby
AndBobsYourUncle has quit [Ping timeout: 276 seconds]
rprimus has joined #ruby
jackrandom has joined #ruby
nitric has joined #ruby
kies has quit [Ping timeout: 258 seconds]
mooser has quit [Ping timeout: 255 seconds]
cdg has joined #ruby
ColeHub has quit [Ping timeout: 240 seconds]
kent\n has quit [Quit: No Ping reply in 180 seconds.]
centrx has quit [Remote host closed the connection]
kent\n has joined #ruby
gheegh has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest96 has quit [Remote host closed the connection]
hotpancakes has quit [Remote host closed the connection]
rakm has joined #ruby
hotpancakes has joined #ruby
Guest96 has joined #ruby
tristanp_ has quit []
bigkevmcd has quit [Quit: Outta here...]
quobo has joined #ruby
hotpanca_ has joined #ruby
tristanp has joined #ruby
hotpancakes has quit [Read error: Connection reset by peer]
skade_ has joined #ruby
justizin has joined #ruby
JeanCarloMachado has quit [Remote host closed the connection]
gusrub has quit [Remote host closed the connection]
ldnunes has joined #ruby
JeanCarloMachado has joined #ruby
tercenya has quit [Remote host closed the connection]
tercenya has joined #ruby
patr0clus has quit [Read error: Connection reset by peer]
milardovich has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
ColeHub has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
patr0clus has joined #ruby
kristofferR has quit [Remote host closed the connection]
kies has joined #ruby
agent_white has quit [Quit: agent_white]
blackmesa has joined #ruby
Cohedrin has joined #ruby
rkazak has joined #ruby
flying has quit []
User458764 has joined #ruby
cout has joined #ruby
MrBusiness has joined #ruby
perniciouscaffei has joined #ruby
<cout> I have a short script that calls out to another program (let's say with system()) and I want to pass the exit status back unmodified. If I use exit $?.to_i, then that fails for the false command ($?.to_i is 256 so the effective exit code is 0). If I use exit $?.exitstatus then that fails for a program that aborts and dumps core ($?.to_i is 134 but $?.exitstatus is nil since the program terminated abnormally).
petruff has quit [Ping timeout: 240 seconds]
<cout> I'm tempted to write exit($?.exitstatus || $?.to_i), but I'm not confident that's right either
mikecmpbll has joined #ruby
Cohedrin has quit [Max SendQ exceeded]
petruff has joined #ruby
nhhc has joined #ruby
bernd27 has joined #ruby
Cohedrin has joined #ruby
hotpanca_ has quit [Remote host closed the connection]
hotpancakes has joined #ruby
jackrandom has quit [Ping timeout: 264 seconds]
<eam> cout: you want $?.exitstatus
unshadow has quit [Quit: leaving]
<eam> the exit status on unix is a 16 bit integer, and the value returned by exit() is 8 bit
<eam> the other 8 bits are filled in by the kernel
<eam> $?.exitstatus are those 8 bits relevant to exit()
<eam> this is documented in Process::Status https://ruby-doc.org/core-2.2.0/Process/Status.html
hotpancakes has quit [Remote host closed the connection]
aupadhye has quit [Ping timeout: 240 seconds]
* dminuoso slaps eam for linking outdated documentation
hotpancakes has joined #ruby
* dminuoso pokes eam with his eskrima sticks
<toretore> im still running 1.9
<cout> eam: but if the child terminates abnormally, exitstatus is nil, and exit(nil) isn't valid since nil is not an integer
<eam> abnormally how?
<cout> int main() { abort(); }
hotpancakes has quit [Ping timeout: 255 seconds]
BSAlb has joined #ruby
hotpancakes has joined #ruby
romank has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
patarr has joined #ruby
workmad3_ has quit [Ping timeout: 276 seconds]
<eam> seems like a bug
<eam> all processes have an exit code
<cout> man 2 wait
<toretore> shouldn't you be checking `exited?` explicitly?
romank has joined #ruby
<cout> WEXITSTATUS() has no meaning unless the child terminated normally
akkad has joined #ruby
<eam> cout: well, otherwise it's zero
<cout> toretore: exitstatus does that for you
<cout> eam: I think it's undefined in that case (so maybe 0, maybe something else)
<toretore> i mean as a matter of being explicit in itself
<toretore> if exited? then exitstatus else something_weird_happened end
<eam> WEXITSTATUS is 7 bits right?
<cout> I could probably argue it both ways
BSaboia has quit [Ping timeout: 240 seconds]
nobitanobi has quit [Remote host closed the connection]
<cout> eam: seems to be 8 bits; not sure if that's guaranteed
<eam> or is that just shell convention?
<toretore> if you come back in a year and see `exitstatus || to_i` you'll probably not understand what it means
nobitanobi has joined #ruby
<sunrunner20> new to ruby
<sunrunner20> just found a script that has an integer with an underscore in it: 86_400
<cout> toretore: I think to_i is probably wrong but I don't know why
skweek has joined #ruby
<cout> toretore: so I'm using exitstatus || 127 for now
<toretore> sunrunner20: it is ignored
<apeiros> sunrunner20: underscores in integers are ignored
<sunrunner20> k
<sunrunner20> so its just there to pretend to be a thousands indicator
t-recx has quit [Quit: t-recx]
<apeiros> s/to pretend/
<eam> shell convetion is to set the 8th bit if something went wrong and exit(3) wasn't called
romank has quit [Ping timeout: 246 seconds]
<eam> and to push that other 8 bites of data down into the exit code
<toretore> cout: yeah i don't know what the right status to return is, i'm just arguing that the abnormal case should be explicit and obvious
<eam> seems like you'd want to adopt a similar mechanism if you want to do the same
mooser has joined #ruby
<eam> the problem is you're wanting to return the full 16 bits (whether abort was called, etc) but only using the last 8 bits
<eam> so /bin/sh does that by reserving the high bit and mapping the behaviors in
sonOfRa has quit [Quit: Bye!]
<cout> eam: I'm wanting to stick to convention
nobitanobi has quit [Ping timeout: 276 seconds]
chouhoulis has quit [Remote host closed the connection]
skweek has quit [Ping timeout: 246 seconds]
petruff1 has joined #ruby
<cout> eam: or rather, I'm wanting to stick to _correct_ convention (convention in ruby seems to be to blindly use exitstatus, which for reasons mentioned above is wrong)
duderonomy has joined #ruby
mostlybadfly has joined #ruby
mjuszcza_ has joined #ruby
workmad3 has joined #ruby
sonOfRa has joined #ruby
psychicist__ has joined #ruby
mooser has quit [Ping timeout: 246 seconds]
mjuszczak has quit [Ping timeout: 260 seconds]
petruff has quit [Ping timeout: 276 seconds]
cdg_ has joined #ruby
cdg has quit [Ping timeout: 276 seconds]
<Lavan> al2o3-cr , might you have a suggestion on attacking the next problem? now there's another ciphered text without a key, but they do tell you that the key consists of 3 descriptors, and the final result includes only english letters, spaces, and '?' '.'
Oclair has joined #ruby
Jody has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
<Lavan> what i think you should do is brute force through all 3 descripors combination, stopping when you don't get any character that don't fall to the criteria (english letters, spaces,'?','.')
petruff1 has quit [Ping timeout: 246 seconds]
<Lavan> or maybe someone else has an idea
<Lavan> guys, a question for you all...
<hxegon> Lavan that sounds like you'd get a lot of false positives, but I can't think of a better soluion off the top of my head
Jody has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<Lavan> suppose you have an array like this [[0,0,0],[0,0,0],[0,0,0]].you want to change it each iteration so it iterates through all combinations from [[0,0,0],[0,0,0],[0,0,0]] to [[255,255,255],[255,255,255],[255,255,255]]
<Lavan> I'm thinking of a way to implement it... i don't think it'll give us too many false positive as it would seem at glance... just a feeling. the problem is i can't be confident enough on the correctness of the former code.
freeze has joined #ruby
<Lavan> because it got the result with minor errors that would make the whole expression wrong in such test
<hxegon> is the key just three sub-arrays?
<Lavan> yes, the key is just three sub arrays
patarr has quit [Ping timeout: 240 seconds]
Yxhuvud has quit [Read error: Connection reset by peer]
faces has quit [Ping timeout: 260 seconds]
Yxhuvud has joined #ruby
mondongo has joined #ruby
<hxegon> Lavan: hold on
patarr has joined #ruby
mondongo has left #ruby [#ruby]
GinoMan has quit [Ping timeout: 245 seconds]
synstack has quit [Changing host]
synstack has joined #ruby
cdg_ has quit [Remote host closed the connection]
<Lavan> ok no problem
patr0clus has quit [Quit: WeeChat 1.4]
enterprisey has joined #ruby
Oclair has quit [Quit: Bye Bye]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chopin has quit [Remote host closed the connection]
rakm has joined #ruby
preyalone has joined #ruby
Bock has quit [Read error: Connection reset by peer]
rakm has quit [Client Quit]
rakm has joined #ruby
rakm has quit [Client Quit]
chopin has joined #ruby
rakm has joined #ruby
rakm has quit [Client Quit]
jusa has joined #ruby
rakm has joined #ruby
skade_ has quit [Ping timeout: 240 seconds]
rakm has quit [Client Quit]
rakm has joined #ruby
rakm has quit [Client Quit]
skade_ has joined #ruby
GinoMan has joined #ruby
vuoto has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
AndrewIsHere has joined #ruby
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
patarr has joined #ruby
fusta has quit [Quit: Leaving]
hotpanca_ has joined #ruby
hotpancakes has quit [Read error: Connection reset by peer]
nhhc has quit [Remote host closed the connection]
jrafanie has joined #ruby
cfec0b8d has joined #ruby
workmad3 has joined #ruby
roamingdog has joined #ruby
chouhoulis has joined #ruby
tercenya has quit [Remote host closed the connection]
faces has joined #ruby
tercenya has joined #ruby
vuoto has quit [Remote host closed the connection]
<hxegon> Lavan: ok, so the brute force might take a while, considering it's worst case 256 ^ 9 * how long it takes to check if a key 'works' for the ciphertext
<Lavan> any other leads?
<Lavan> you are right...
<hxegon> No other leads though. Do you have the problem statement?
mjuszcza_ has quit [Read error: Connection reset by peer]
<hxegon> I have an easyish way to make subkey permutations though, so theres that
roamingdog has quit [Ping timeout: 268 seconds]
mjuszczak has joined #ruby
<Lavan> i have the problem statement
<hxegon> >> ((0..255).to_a * 3).permutation(3).next
<ruby[bot]> hxegon: # => [0, 1, 2] (https://eval.in/785730)
gchristensen has joined #ruby
<gchristensen> hi, is there a support schedule for ruby versions?
<hxegon> it doesn't start at 0, 0, 0, but it works it's way through all possible values of a subkey
<gchristensen> like how long will 2.3 be supported?
<Lavan> doesn't have to start at 0
<hxegon> also, it's lazy so if you find your match earlier than 256 ^ 9 it won't try generating/going through the rest of the permutations
<hxegon> gchristensen: This is all I could find, but it's for 2.0 and 2.1 https://www.ruby-lang.org/en/news/2016/02/24/support-plan-of-ruby-2-0-0-and-2-1/
<Lavan> okay
<Lavan> each time i .next the expression you wrote i get the next permutation?
<Lavan> i mean... how do i integrate it with the current code?
<Lavan> key.permutation(3).next?
<hxegon> >> foo = ((0..255).to_a * 3).permutation(3); [foo.next, foo.next] # Lavan
<ruby[bot]> hxegon: # => [[0, 1, 2], [0, 1, 3]] (https://eval.in/785731)
<hxegon> that probably helps
lagweezle_away is now known as lagweezle
jusa has quit [Ping timeout: 276 seconds]
<hxegon> Lavan: you can use it in loops, or with #find
<hxegon> I'd suggest #find, as it's more idiomatic IMO
GinoMan has quit [Ping timeout: 264 seconds]
<hxegon> &ri Enumerable#find # Lavan
<LastWhisper____> btw figured i'd share the post I was rambling about earlier
<LastWhisper____> cheers
<gchristensen> hxegon: hmm thank you
<LastWhisper____> i ended up leaving the feedback effect out of it I felt it was a bit of an overcomplication
tercenya has quit [Remote host closed the connection]
tercenya has joined #ruby
centrx has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
ColeHub has quit [Quit: Snooze.]
Jody_ has joined #ruby
GodFather__ has joined #ruby
Jody_ is now known as Jody
<hxegon> LastWhisper____: I'll read this when I get a minute. I've been thinking about getting an OP-1 to try and get into music production, so this is right up my alley :)
roamingdog has joined #ruby
<LastWhisper____> sweet! the post is very ... basic i don't go into a lot of detail music production wise, it's just the main design pattern of software development & music production that follow similar patterns
<Lavan> this permutation trick, i have a problem with it.. each time if i set foo to what you wrote, and i set key to be key=[foo,foo,foo] then i need if i .next all/each/only one of the foos, i dont get all of the overall posiible permutations
<hxegon> .next is only supposed to get one possible permutation
<hxegon> if you try using foo.next to get 3 subkeys you won't cover the entire keyspace
skweek has joined #ruby
<Lavan> i want to apply each time 3 subkeys...
GinoMan has joined #ruby
<Lavan> and i want to apply all 3 subkeys combinations
<hxegon> you couldn't, for example, get [[0, 0, 0], [0, 0, 0], [0, 0, 0]] as a possible key this way
<hxegon> you could do something like define 3 of those enumerators and take permutations from each one for each of the 3 subkeys, but this doesn't cover everything either
<Lavan> it doesn't bother me.... [0,0,0],[0,0,0],[0,0,0] just won't do anything
<hxegon> bad example, a better one would be [[1, 2, 3], [1, 2, 3], [1, 2, 3]], which would be a valid possible subkey
<hxegon> valid possible key*
<Lavan> it is a valid key, what is the problem with it?
Xakotu has joined #ruby
ldnunes_ has joined #ruby
<hxegon> the problem is you can't get it by going [foo.next, foo.next, foo.next] because you'd get 3 permutations of a subkey space. It would have to be 3 different possible subkeys.
ldnunes has quit [Read error: Connection reset by peer]
<Lavan> yes, exactly, that's the problem i had with understanding your trick - it doesn't help me cover all "upper" permutations...
Jody has quit [Ping timeout: 260 seconds]
<hxegon> you could probably change my snippet to cover all possible permutations of keys rather than just subkeys somehow
<Lavan> i need all permutations from [0,0,0],[0,0,0],[0,0,0] to [255,255,255],[255,255,255],[255,255,255]
cschneid_ has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
<Lavan> at least that what i think i need
gchristensen has left #ruby ["WeeChat 0.4.2"]
hotpancakes has joined #ruby
skade_ has quit [Ping timeout: 260 seconds]
<hxegon> there's definitely a way to do that with #permutation, but I can't quite get the right invocation in pry
choke has joined #ruby
hotpanca_ has quit [Ping timeout: 240 seconds]
gusrub has joined #ruby
<hxegon> almost got it
Guest19790 has joined #ruby
<hxegon> >> foo = ((0..255).to_a * 9).permutation(9).lazy.map { |arr| arr.each_slice(3).to_a }; foo.next
Guest19790 has quit [Client Quit]
<ruby[bot]> hxegon: # => [[0, 1, 2], [3, 4, 5], [6, 7, 8]] (https://eval.in/785733)
workmad3 has quit [Ping timeout: 264 seconds]
Xakotu has quit [Quit: Mutter: www.mutterirc.com]
patarr has joined #ruby
yqt has joined #ruby
mtkd has quit [Ping timeout: 260 seconds]
Xakotu has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
mtkd has joined #ruby
<al2o3-cr> Lavan: you on the next level hehe :p
<al2o3-cr> so you're trying to get a permuations from 0 to 255
vali has joined #ruby
Xakotu has quit [Quit: Mutter: www.mutterirc.com]
mjuszczak has quit []
vali has quit [Client Quit]
<Lavan> i think so, al2o3-cr
<Lavan> a huge permutation, maybe it's notthe right way at all..
<Lavan> maybe there's a different way i'm missing
<hxegon> There probably is
<hxegon> actually, the problem statement explicitly asks for a brute force, so you're good.
<havenwood> Lavan: You want 4558705201498672727040 different ones?
<hxegon> havenwood: 256 ^ 9?
patarr has quit [Ping timeout: 276 seconds]
<Lavan> yup
dcunit3d has joined #ruby
<havenwood> >> 256 ** 9
<ruby[bot]> havenwood: # => 4722366482869645213696 (https://eval.in/785734)
<havenwood> >> 256.times.to_a.permutation(3).to_a.permutation(3).size
<ruby[bot]> havenwood: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
beauby has quit [Read error: Connection reset by peer]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> #=> 4558705201498672727040
<Lavan> >> 128**9
<ruby[bot]> Lavan: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<havenwood> #=> 9223372036854775808
<Lavan> >> 128 ** 9
<ruby[bot]> Lavan: # => 9223372036854775808 (https://eval.in/785735)
<Lavan> still exagarated lol
__Yiota has joined #ruby
<al2o3-cr> no chance
<al2o3-cr> Lavan: you'd be in the knackered yard long before :p
<hxegon> havenwood: is there a way to write it like that lazily?
<al2o3-cr> Lavan: i think you want something like this
<al2o3-cr> >> Enumerator.new { |y| 255.times { [*0..255].repeated_permutation(3) { |prm| y << [prm] } } }.take(3)
<ruby[bot]> al2o3-cr: # => [[[0, 0, 0]], [[0, 0, 1]], [[0, 0, 2]]] (https://eval.in/785737)
<havenwood> hxegon: There's no Enumerable#permutation so that throws a wrench in the mix.
<hxegon> al2o3-cr: my way works, but doesn't start at [0, 0, 0] [0, 0, 0] [0, 0, 0]. It will come around to that at some point though :)
<havenwood> hxegon: 256.times.to_a.permutation(3).to_a.permutation(3).lazy
cagomez has quit [Remote host closed the connection]
<hxegon> havenwood: yeah I tried throwing #lazy in between there at a few places and got nothing
cagomez has joined #ruby
<havenwood> You unfortunately need an intermediary Array if you're going to use #permutation or #repeated_permutation.
<havenwood> Though I don't think repeated are relevant here.
kobain has joined #ruby
ika_ has joined #ruby
<al2o3-cr> Lavan: have you got the readme for this one?
<Lavan> yes
u0_a170 has joined #ruby
<u0_a170> hey
<al2o3-cr> could you gist it?
cagomez has quit [Ping timeout: 255 seconds]
<u0_a170> yeaa thanks
<ika_> hi guys
<al2o3-cr> tnks hxegon
<hxegon> hi u0_a170, ika_
<ika_> I am new to ruby community and would like to get into contributing to ruby core development
P1ro has quit [Remote host closed the connection]
duckpupp1 has quit [Ping timeout: 258 seconds]
<havenwood> ika_: Welcome!
<ika_> Can anyone tell me where is the good place to start hacking in ruby code :)
JeanCarloMachado has quit [Ping timeout: 240 seconds]
Derperperd has joined #ruby
<ika_> Are there some beginner C tasks
Derperperd has quit [Changing host]
Derperperd has joined #ruby
<havenwood> ika_: The bug tracker is here: https://bugs.ruby-lang.org/projects/ruby-trunk/issues
<ika_> Like easy bugs to get into patching and coding
<al2o3-cr> Lavan: by the sounds of the you only need [0,0,0] to [255,255,255] as before
<al2o3-cr> *that
<Lavan> but there are 3 steps...
<Lavan> each [0,0,0] is a step
<Lavan> three steps are like [0,1,2],[2,3,4],[17,32,11]
<al2o3-cr> are you sure
<Lavan> yes
<al2o3-cr> k, hmm...
<Lavan> but maybe you are rihgt
<Lavan> i mean.. no, i dont know
<ika_> havenwood I am generaly new to open source contributions has alwayse worked in a commercial companies. So is it possible to work on weekends like on part time and still give needed progress?
<al2o3-cr> Lavan: as i see it, is, as before with op, code, len but bruteforce
u0_a170 has quit [Ping timeout: 240 seconds]
<havenwood> ika_: Yes. There are a wide variety of Ruby gems that are great for contributing to. Documentation for gems or Ruby-proper is a good way to start. Contributing to Ruby itself is a bit rockier than the path to contribute to most gems, but it's doable.
<Lavan> you think that 3 steps can be equvivalent to say 32 steps?
<al2o3-cr> how'd you get 32 steps?
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<al2o3-cr> unless i'm reading totally wrong
<havenwood> ika_: You might consider contributing to a popular gem like Rails or one of the smaller gems in its ecosystem: http://guides.rubyonrails.org/contributing_to_ruby_on_rails.html
<havenwood> ika_: Or there are countless other gems.
<Lavan> each triplet is a step. in the problem statement they say the key is consisted of 3 steps... if i just brute force as before, as far as i understand what you mean, i get a chain of more than 3 steps
<al2o3-cr> ah, maybe you're right
<ika_> havenwood generaly what I mean is that if you take a task is there a deadline. Or I can work it on free time without hurry
<Lavan> a step is : first byte- opcode, second byte- param, third byte -length
<al2o3-cr> Lavan: have you got the encrypted message, i'll play around.
<havenwood> ika_: It totally depends. There are plenty of things that aren't in a rush that you should have no want.
<Lavan> yes i have got it
<Lavan> but...
<Lavan> i wanna like be able to understand the solution
<Lavan> just a sec
ColeHub has joined #ruby
<havenwood> ika_: Sporadic contribution is still much appreciated.
<al2o3-cr> Lavan: if i figure it out, i'll talk you though my methodolgy
<al2o3-cr> *through
<Lavan> that's the bin file with the encrypted message
patarr has joined #ruby
<ika_> havenwood: yes as I am still working in a commercial company I wont be able to contribute regularly. will be able to work on weekends few hours
<ika_> OK thanks you very much I will keep on reading guids and check the bug list
<ika_> Might find one suitable for me :)
Ellimist has joined #ruby
Cohedrin has quit [Read error: Connection reset by peer]
<al2o3-cr> Lavan: thx, i'll have a play.
jose_leeto has joined #ruby
nobitanobi has joined #ruby
Cohedrin has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
bash has joined #ruby
gusrub has quit [Remote host closed the connection]
<jose_leeto> hey guys
<jose_leeto> some one knows if it is possible to use a rails validation method on a delegated attribute?
skweek has joined #ruby
<hxegon> ?rails jose_leeto
<ruby[bot]> jose_leeto: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
milardovich has quit [Remote host closed the connection]
ika_ has left #ruby ["Leaving"]
<jose_leeto> ok thx
mooser has joined #ruby
nobitanobi has quit [Ping timeout: 268 seconds]
jose_leeto has quit [Quit: Leaving.]
rails4444 has joined #ruby
anjen has joined #ruby
__Yiota has joined #ruby
<Lavan> al203-cr , you might want to have a look at the previous problem statement
mooser has quit [Ping timeout: 260 seconds]
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
__Yiota has quit [Client Quit]
milardovich has joined #ruby
xco has joined #ruby
<xco> what’d be the easiest way for me to reverse something like this
<xco> text = “hello, boy”
<havenwood> xco: text.reverse
<xco> i want “boy, hello”
minimalism has joined #ruby
god has joined #ruby
god has quit [Client Quit]
<havenwood> xco: text.split(', ').reverse.join(', ')
<hxegon> >> "foo, bar".split(', ').reverse.join(', ')
<ruby[bot]> hxegon: # => "bar, foo" (https://eval.in/785756)
<xco> oh, thought i could get a simpler one. have this one :D….thank you!
__Yiota has joined #ruby
postmodern has joined #ruby
<patarr> Does ruby have a datastructure like an iterator that loops to the beginning after the end?
<apeiros> &ri Enumerable#cycle patarr
<havenwood> >> 'patarr'.each_char.cycle.first 10
<ruby[bot]> havenwood: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<havenwood> #=> ["p", "a", "t", "a", "r", "r", "p", "a", "t", "a"]
u0_a170 has joined #ruby
<havenwood> >> example = [:x, :o].cycle; [example.class, example.size] # patarr
<ruby[bot]> havenwood: # => [Enumerator, Infinity] (https://eval.in/785769)
BSaboia has joined #ruby
BSaboia has quit [Max SendQ exceeded]
BSaboia has joined #ruby
BSAlb has quit [Ping timeout: 276 seconds]
lxsameer has joined #ruby
Cohedrin has quit [Read error: Connection reset by peer]
u0_a170 has quit [Ping timeout: 240 seconds]
Cohedrin has joined #ruby
milardovich has quit [Remote host closed the connection]
cagomez has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has joined #ruby
<patarr> `derpy: awesome thanks! Do you by any chance also know of anything like chunk, given an input of truthy and falsy values, will only chunk the truthy ones? Aka, if I had truthy, truthy, truthy, falsy - that would be two chunks. But if I had falsy, falsy, truthy, truth - that would be 4 chunks [[falsy],[falsy],[truthy,truthy]]
centrx has quit [Remote host closed the connection]
jamesaxl has quit [Remote host closed the connection]
chopin has quit []
gusrub has joined #ruby
roamingdog has quit [Remote host closed the connection]
xco has left #ruby [#ruby]
cagomez has quit [Ping timeout: 264 seconds]
bernd27 has quit [Ping timeout: 260 seconds]
<elomatreb> patarr: You likely mean apeiros, `derpy is a bot
biberu has quit []
milardovich has quit [Remote host closed the connection]
cyberRodent has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
bernd27 has joined #ruby
<patarr> lol yes I meant that towards apeiros
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has quit [Ping timeout: 240 seconds]
__Yiota has joined #ruby
BSaboia has quit [Ping timeout: 240 seconds]
jamesaxl has joined #ruby
dionysus69 has quit [Ping timeout: 255 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
outreachdan has quit [Quit: Textual IRC Client: www.textualapp.com]
mjuszczak has joined #ruby
rwb has quit [Ping timeout: 260 seconds]
cagomez has joined #ruby
psychicist__ has quit [Quit: Lost terminal]
rohitpaulk has joined #ruby
cyberRodent has joined #ruby
pupsicle has quit [Remote host closed the connection]
vikaton has joined #ruby
brent__ has quit [Remote host closed the connection]
__Yiota has joined #ruby
jusa has joined #ruby
amclain has quit [Read error: Connection reset by peer]
outreachdan has joined #ruby
rohitpaulk has quit [Client Quit]
outreachdan has quit [Client Quit]
amclain has joined #ruby
JoshS has joined #ruby
jusa has quit [Ping timeout: 276 seconds]
outreachdan has joined #ruby
roamingdog has joined #ruby
workmad3 has joined #ruby
GinoMan2440 has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jamesaxl has quit [Quit: WeeChat 1.7]
cdg has joined #ruby
workmad3 has quit [Ping timeout: 276 seconds]
GinoMan has quit [Ping timeout: 260 seconds]
centrx has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
Emmanuel_Chanel has quit [Quit: Leaving]
blackmes1 has joined #ruby
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
GinoMan2440 has quit [Ping timeout: 260 seconds]
blackmesa has quit [Ping timeout: 264 seconds]
<eam> cout: I don't think there's a correct convention here
Emmanuel_Chanel has joined #ruby
choke has quit [Ping timeout: 264 seconds]
<eam> you're gonna lose some data, different systems handle it in different ways
jinie has joined #ruby
axyjo has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
sepp2k has quit [Quit: Leaving.]
brent__ has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
ldnunes_ has quit [Quit: Leaving]
preyalone has quit [Quit: Connection closed for inactivity]
patarr has joined #ruby
sp4rrow has joined #ruby
mjuszczak has quit []
marxarelli is now known as marxarelli|afk
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
ramortegui has quit [Quit: Ex-Chat]
mim1k has joined #ruby
patarr has quit [Ping timeout: 255 seconds]
rwb has joined #ruby
hotpanca_ has joined #ruby
workmad3 has joined #ruby
GinoMan2440 has joined #ruby
bash has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
mim1k has quit [Ping timeout: 260 seconds]
hotpancakes has quit [Ping timeout: 276 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
quobo has quit [Quit: Connection closed for inactivity]
milardovich has joined #ruby
workmad3 has joined #ruby
GodFather__ has quit [Ping timeout: 240 seconds]
centrx has quit [Remote host closed the connection]
patarr has joined #ruby
cdg_ has joined #ruby
milardovich has quit [Ping timeout: 264 seconds]
d10n-work has quit [Quit: Connection closed for inactivity]
pupsicle has joined #ruby
cdg has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
patarr has quit [Ping timeout: 240 seconds]
patarr has joined #ruby
GodFather__ has joined #ruby
BSaboia has joined #ruby
bernd27 has quit [Remote host closed the connection]
romank has joined #ruby
hotpanca_ has quit [Remote host closed the connection]
hotpancakes has joined #ruby
jackrandom has joined #ruby
u0_a170 has joined #ruby
anjen has quit [Quit: anjen]
hotpancakes has quit [Ping timeout: 255 seconds]
bernd27 has joined #ruby
hotpancakes has joined #ruby
oleo has joined #ruby
nobitanobi has joined #ruby
bernd9000 has joined #ruby
jackrandom has quit [Ping timeout: 276 seconds]
bernd27 has quit [Ping timeout: 255 seconds]
hotpancakes has quit [Ping timeout: 255 seconds]
nobitanobi has quit [Ping timeout: 240 seconds]
cseder has joined #ruby
cseder has quit [Client Quit]
cseder has joined #ruby
marxarelli|afk is now known as marxarelli
marxarelli is now known as marxarelli|afk
centrx has joined #ruby
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
petruff1 has joined #ruby
hobodave has quit [Ping timeout: 240 seconds]
rkazak has quit [Quit: Sleep.....ing....]
rkazak has joined #ruby
cdg_ has quit [Remote host closed the connection]
BSAlb has joined #ruby
cdg has joined #ruby
toretore has quit [Ping timeout: 264 seconds]
cagomez has quit [Read error: Connection reset by peer]
centrx has quit []
BSaboia has quit [Ping timeout: 276 seconds]
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
roamingdog has quit [Remote host closed the connection]
kobain has quit [Ping timeout: 276 seconds]
cagomez has joined #ruby
gottcha has quit [Ping timeout: 260 seconds]
mjuszczak has joined #ruby
workmad3_ has joined #ruby
lagweezle is now known as lagweezle_away
SeepingN has joined #ruby
workmad3 has quit [Ping timeout: 276 seconds]
gusrub has quit [Remote host closed the connection]
gusrub has joined #ruby
justizin has quit [Quit: Connection closed for inactivity]
patarr has quit [Ping timeout: 264 seconds]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
bash has joined #ruby
hotpancakes has joined #ruby
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cdg_ has joined #ruby
cdg has quit [Ping timeout: 260 seconds]
cagomez has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: inabit. zz.]
cagomez has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
hotpancakes has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
ColeHub has quit [Quit: Snooze.]
cagomez has quit [Ping timeout: 264 seconds]
ColeHub has joined #ruby
ColeHub has quit [Client Quit]
gnufied has quit [Remote host closed the connection]
ColeHub has joined #ruby
mjuszczak has quit []
johnny56 has joined #ruby
BSab has joined #ruby
hlmjr has joined #ruby
BSab has quit [Max SendQ exceeded]
workmad3_ has quit [Ping timeout: 276 seconds]
BSAlb has quit [Ping timeout: 260 seconds]
perniciouscaffei has joined #ruby
t-recx has joined #ruby
<adam12> Anybody know of a non-ActiveSupport way to get list of timezones?
jusa has joined #ruby
mjuszczak has joined #ruby
patarr has joined #ruby
cagomez has joined #ruby
cagomez has quit [Remote host closed the connection]
<elomatreb> adam12: Some people are recommending https://rubygems.org/gems/tzinfo
<adam12> Thanks. I had my eye on it.
cagomez has joined #ruby
<adam12> Will check it out.
gnufied has joined #ruby
BSaboia has joined #ruby
Cohedrin has quit [Read error: Connection reset by peer]
jusa has quit [Ping timeout: 240 seconds]
rails4444 has quit [Quit: Leaving.]
Cohedrin has joined #ruby
cagomez has quit [Ping timeout: 264 seconds]
enterprisey has quit [Remote host closed the connection]
cagomez has joined #ruby
<adam12> elomatreb: worked a charm.
cagomez has quit [Remote host closed the connection]
anuxivm has joined #ruby
cagomez has joined #ruby
anuxivm has left #ruby [#ruby]
outreachdan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hlmjr has quit [Quit: Konversation terminated!]
yqt has quit [Ping timeout: 240 seconds]
bash has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
cagomez has quit [Ping timeout: 255 seconds]
oleo has quit [Quit: irc client terminated!]
jordanm has quit [Quit: Konversation terminated!]
nofxx has joined #ruby
jordanm has joined #ruby
milardovich has joined #ruby
chouhoul_ has joined #ruby
milardovich has quit [Read error: Connection reset by peer]
chouhoul_ has quit [Remote host closed the connection]
milardovich has joined #ruby
oleo has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
cschneid_ has quit [Remote host closed the connection]
cschneid_ has joined #ruby
alveric1 has joined #ruby
hotpancakes has joined #ruby
mjuszczak has quit [Ping timeout: 240 seconds]
cagomez has joined #ruby
cschneid_ has quit [Ping timeout: 240 seconds]
lordalveric has quit [Ping timeout: 258 seconds]
esObe_ has quit [Remote host closed the connection]
skade_ has joined #ruby
romank has quit [Read error: Connection reset by peer]
mtkd has quit [Ping timeout: 240 seconds]
cdg_ has quit [Ping timeout: 264 seconds]
mtkd has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
romank has joined #ruby
Cohedrin has quit [Read error: Connection reset by peer]
mim1k has joined #ruby
kobain has joined #ruby
Cohedrin has joined #ruby
djuber` has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
hotpancakes has quit [Ping timeout: 246 seconds]
jrafanie has joined #ruby
xenops has quit [Quit: Textual IRC Client: www.textualapp.com]
dcunit3d has quit [Ping timeout: 276 seconds]
AndrewIsHere has quit []
cschneid_ has joined #ruby
DLSteve has joined #ruby
Cohedrin has quit [Read error: Connection reset by peer]
DLSteve has quit [Client Quit]
DLSteve has joined #ruby
Cohedrin has joined #ruby
cschneid_ has quit [Ping timeout: 255 seconds]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
marr has quit [Ping timeout: 245 seconds]
GinoMan2440 has quit [Ping timeout: 240 seconds]
romank has quit [Read error: Connection reset by peer]
ledestin has joined #ruby
romank has joined #ruby
duderono_ has joined #ruby
duderonomy has quit [Ping timeout: 264 seconds]