kaleido

Activity Graph

Page 1 of 3 | Next »

2019-04-23

[15:57:49] kaleido: has joined #ruby

2019-04-13

[16:50:14] kaleido: *.net *.split

2019-04-11

[00:32:10] kaleido: has joined #ruby

2019-04-05

[01:35:12] kaleido: has joined #ruby
[22:01:18] kaleido: Ping timeout: 246 seconds

2019-04-04

2019-03-24

[20:19:40] kaleido: has joined #ruby

2019-03-19

[15:46:57] kaleido: you know there's also a #python where this question would probably be met with a better audience

2019-03-16

[16:25:39] kaleido: has joined #ruby

2019-03-13

[20:04:41] kaleido: how can i check if a variable is a number(any number)? i tried "if variable = ([0-9]+)"
[20:04:46] kaleido: but it isn't appreciating that
[20:04:53] kaleido: for probably an obvious reason that i don't get

2019-03-05

[20:09:48] kaleido: has joined #ruby
[20:15:02] kaleido: example = ->(s)
[20:15:09] kaleido: what is the -> doing there?
[20:15:31] kaleido: example = ->(s){ stuff }
[22:29:04] kaleido: "weather"=>[{"id"=>800, "main"=>"Clear"}], but getting ["weather"]["main"] throws an error. what am i doing wrong to the hash after JSON.parse?
[22:31:05] kaleido: TypeError: no implicit conversion of String into Integer
[22:31:56] kaleido: TypeError: no implicit conversion of String into Integer
[22:31:56] kaleido: [18] pry(main)> skies = parsed["weather"]["main"]
[22:36:00] kaleido: so am i getting bogus json to put through JSON.parse i wonder
[22:36:52] kaleido: [20] pry(main)> parsed.class
[22:37:27] kaleido: wel shit it's an array
[22:38:26] kaleido: damned. thank you, sir!

2019-01-16

[16:55:23] kaleido: has left #ruby: ("Textual IRC Client: www.textualapp.com")

2018-12-28

[16:05:02] kaleido: has joined #ruby

2018-12-16

[20:40:32] kaleido: has joined #ruby

2018-12-11

[16:01:15] kaleido: probly a firewall or security-group somewhere
[16:20:49] kaleido: has joined #ruby

2018-12-09

[23:17:24] kaleido: &>> puts 'john connor...i was sent from the future.'
[23:21:12] kaleido: &>> def roll(r,s); dice_sides = s; num_rolls = r; x = 1; total = 0; results = []; while x <= num_rolls; number = rand(1..s); results << number; x += 1; total = total + number; end; puts "Total: #{total}"; puts Each Die: #{results}"; end; roll(3,7)
[23:22:26] kaleido: &>> def roll(r,s); dice_sides = s; num_rolls = r; x = 1; total = 0; results = []; while x <= num_rolls; number = rand(1..s); results << number; x += 1; total = total + number; end; puts "Total: #{total}"; puts "Each Die: #{results}"; end; roll(3,7)
[23:23:21] kaleido: probly a much simpler way to do that, but i feel 32% accomplished. :P

2018-12-08

[00:18:29] kaleido: Ping timeout: 240 seconds

2018-12-03

[15:53:18] kaleido: Ping timeout: 250 seconds
[15:54:37] kaleido: has joined #ruby

2018-12-01

[16:42:33] kaleido: Remote host closed the connection
[16:43:28] kaleido: has joined #ruby

2018-11-29

[14:34:29] kaleido: Remote host closed the connection
[14:34:55] kaleido: has joined #ruby

2018-11-27

[15:00:12] kaleido: Ping timeout: 250 seconds
[15:01:32] kaleido: has joined #ruby

2018-11-25

[19:51:42] kaleido: Quit: true story
[19:59:07] kaleido: has joined #ruby
[20:19:24] kaleido: Quit: Textual IRC Client: www.textualapp.com

2018-11-21

[21:46:46] kaleido: has joined #ruby
[21:51:36] kaleido: Ping timeout: 260 seconds
[21:52:38] kaleido: has joined #ruby
[21:55:04] kaleido: Read error: Connection reset by peer
[21:56:51] kaleido: has joined #ruby

2018-11-20

[03:37:06] kaleido: Remote host closed the connection

2018-11-19

[15:23:22] kaleido: has joined #ruby

2018-11-18

[15:36:54] kaleido: has joined #ruby
[17:05:02] kaleido: the generic, but still accurate, answer is that yes it will help you learn the basics just as well as any other means.
[21:27:54] kaleido: Ping timeout: 250 seconds

2018-11-17

[08:06:16] kaleido: Read error: Connection reset by peer

2018-11-16

[09:57:19] kaleido: Remote host closed the connection
[15:09:38] kaleido: has joined #ruby

2018-11-14

[09:57:11] kaleido: Read error: Connection reset by peer
[15:05:04] kaleido: has joined #ruby
[20:48:54] kaleido: Quit: true story
[20:56:16] kaleido: has joined #ruby
[21:37:52] kaleido: Quit: true story
[21:46:33] kaleido: has joined #ruby

2018-11-12

[14:57:38] kaleido: has joined #ruby
[21:57:05] kaleido: Read error: Connection reset by peer
[22:00:42] kaleido: has joined #ruby

2018-11-11

[18:35:56] kaleido: Quit: My MacBook has gone to sleep. ZZZzzz…
[18:45:11] kaleido: has joined #ruby
[19:47:29] kaleido: Quit: My MacBook has gone to sleep. ZZZzzz…
[21:14:54] kaleido: has joined #ruby
[21:57:10] kaleido: Remote host closed the connection

2018-11-10

[09:57:06] kaleido: Remote host closed the connection
[16:14:00] kaleido: has joined #ruby
[16:32:48] kaleido: Quit: true story
[16:58:36] kaleido: has joined #ruby

2018-11-08

[09:57:08] kaleido: Remote host closed the connection
[14:53:50] kaleido: has joined #ruby

2018-11-07

[22:00:46] kaleido: Ping timeout: 250 seconds
[22:05:59] kaleido: has joined #ruby

2018-11-06

[20:16:44] kaleido: what's the current favorite web micro framework? and sorry if this is off topic.
[20:17:48] kaleido: havenwood thanks, i'll take a look.

2018-11-04

[10:00:57] kaleido: Ping timeout: 252 seconds
[15:36:05] kaleido: has joined #ruby

2018-11-03

[01:31:26] kaleido: has joined #ruby
[14:11:53] kaleido: Quit: true story
[15:08:25] kaleido: has joined #ruby
[15:45:40] kaleido: Read error: Connection reset by peer
[18:28:39] kaleido: has joined #ruby
[18:50:59] kaleido: given a random string "niLF2" how can i separate every character and change lower to upper and upper to lower and combine back to a string?
[18:53:19] kaleido: wow, that's too easy. :( thanks!

2018-11-02

[06:30:25] kaleido: Read error: Connection reset by peer
[14:31:45] kaleido: has joined #ruby
[20:29:29] kaleido: what are you trying to do? send postgres queries to a server hiding behind an ssh tunnel?
[20:29:44] kaleido: sorry, i'm not a pro by any stretch so i can't determine just from reading your paste.
[21:57:01] kaleido: Read error: Connection reset by peer

2018-11-01

[09:57:09] kaleido: Remote host closed the connection
[14:33:58] kaleido: has joined #ruby

2018-10-31

[14:04:58] kaleido: Quit: true story
[14:25:48] kaleido: has joined #ruby
[20:50:17] kaleido: Quit: My MacBook has gone to sleep. ZZZzzz…
[20:50:57] kaleido: has joined #ruby

2018-10-30

[06:16:52] kaleido: Ping timeout: 264 seconds
[14:32:23] kaleido: has joined #ruby
[16:58:11] kaleido: Quit: My MacBook has gone to sleep. ZZZzzz…
[19:56:38] kaleido: has joined #ruby

2018-10-29

[13:31:39] kaleido: has joined #ruby
[21:57:02] kaleido: Remote host closed the connection
[21:58:03] kaleido: has joined #ruby

2018-08-16

2018-08-15

[21:54:51] kaleido: has joined #ruby

2017-05-22

[19:59:07] kaleido: Quit: Lost terminal

2017-05-17

[22:02:58] kaleido: has joined #ruby
[22:08:12] kaleido: i definitely feel the warmth

2016-07-21

[14:20:02] kaleido: has joined #ruby
[16:21:39] kaleido: has left #ruby: ()

2016-07-18

[13:10:36] kaleido: has left #ruby: ()

2016-07-15

[13:56:18] kaleido: regex is expensive anyways, isnt it?
[13:58:55] kaleido: interesting. its still painful to look at :)
[15:28:30] kaleido: req.content_type = 'application/json'
[15:28:34] kaleido: something like that?
[15:29:38] kaleido: or maybe req['Cookie'] = "long random string"
[18:49:42] kaleido: >> a = b ; b = a ; p a + b
[18:59:10] kaleido: pry makes me smile inside

2016-07-04

[18:16:41] kaleido: has joined #ruby

2016-06-08

[14:35:28] kaleido: has left #ruby: ()

2016-06-02

[17:10:46] kaleido: very carefully?

2016-05-30

[14:03:18] kaleido: has joined #ruby
[14:03:18] kaleido: Changing host

2016-05-23

[23:08:01] kaleido: ive noticed it usually done the latter

2016-05-20

[06:28:31] kaleido: Ping timeout: 276 seconds
[06:29:40] kaleido: has joined #ruby

2016-05-17

[00:06:24] kaleido: rubybot bein rude this evening
[20:48:11] kaleido: Remote host closed the connection
[20:57:12] kaleido: has joined #ruby

2016-05-15

[14:49:32] kaleido: a symbol is always the same in any context, correct?
[20:58:32] kaleido: sinatra is based on rack. cant you look at req.referer?
[20:59:40] kaleido: request.env['REMOTE_ADDR'] also might do the trick
[21:02:04] kaleido: id be stumped to i spose. i would have thought request.referer would have done it :/
[21:13:20] kaleido: rack makes it so easy
[21:13:36] kaleido: well, easier
[21:13:48] kaleido: i still fight with the same kinds of things

2016-05-10

[22:25:46] kaleido: graft: im sorta dumb but im guessing because hashes are superior to arrays in all ways :P

2016-05-06

[17:06:40] kaleido: Quit: leaving
[17:09:58] kaleido: has joined #ruby

2016-05-05

[14:49:15] kaleido: server_ip.each { |k, v| code = Hash["name" => "#{k}", "address" => "#{v}"] }
[14:49:25] kaleido: is it valid to append .to_json after the last }
[14:55:48] kaleido: so do i want
[14:55:50] kaleido: nodes = server_ip.each { |k, v| code = Hash["name" => "#{k}", "address" => "#{v}"] }.to_json
[14:55:56] kaleido: nodes = server_ip.each { |k, v| code = Hash["name" => "#{k}", "address" => "#{v}"] }
[14:55:59] kaleido: nodes.to_json
[14:56:07] kaleido: or am i still way off?
[14:59:36] kaleido: so code will only hold one name/address pairs? i need to end up with a hash that holds everything coming from the original hash
[15:02:06] kaleido: im working with Hash#each, does that make a difference?
[15:04:53] kaleido: smathy: indeed. gotta love irb :) thanks.
[15:06:24] kaleido: hmm, how to do this

2016-05-04

[17:58:06] kaleido: has joined #ruby
[18:00:24] kaleido: x = 5 and i want to create server 1 - server5 based on whatever value x has
[18:00:36] kaleido: im a noob but im also drawing a blank but it seems like it should be very simple
[18:04:51] kaleido: staring at sublime text with a blank expression on my face, honestly. im trying to do this while on a series of conf calls
[18:06:19] kaleido: no, i promise im not cheating. i dont even do this for more than a hobby
[18:08:06] kaleido: im trying to write a very basic webpage that will generate tmsh commands for an f5
[18:08:42] kaleido: could i (1..x).each do |yay|
[18:14:53] kaleido: servers = [] ; servers.push("server" + yay) ?
[18:16:13] kaleido: servers = [] ; servers.push("server" + yay.to_s) ?
[18:16:32] kaleido: or i have to do .to_s before the push?
[18:17:16] kaleido: do i have to create the empty array first or will a push create it?
[18:18:17] kaleido: gotcha, but i need to create it outside of the block, or ill blow it away with every iteration
[18:20:16] kaleido: servers = [] ; x = 5 ; (1..x).each do |yay| { yay.to_s ; server = "server" + yay ; servers.push("server")
[18:20:59] kaleido: ok, got it
[18:21:36] kaleido: right, cause its a variable now
[18:27:54] kaleido: apeiros: maybe https://gist.github.com/ekaleido/5759671945167ca674ae703dc1327425
[18:28:21] kaleido: i changed names but its essentially the same
[18:55:07] kaleido: apeiros: thank you very much again
[20:15:54] kaleido: is there a simple/elegant way to take a value from one array and make it the key, and a value from a second array and make it the value in a hash? the values will have the same index
[20:17:23] kaleido: baweaver: thanks :)
[20:18:50] kaleido: thank you, i will

2016-04-23

[16:03:37] kaleido: has joined #ruby
[20:01:06] kaleido: has left #ruby: ()

2016-04-22

[15:02:15] kaleido: Ping timeout: 246 seconds

2016-04-21

[00:39:26] kaleido: Ping timeout: 252 seconds
[00:40:50] kaleido: has joined #ruby
[01:32:28] kaleido: has joined #ruby
[01:32:28] kaleido: Changing host
[01:41:43] kaleido: hard quaestion to answer when youre so specific, can you be ore vague?
[02:06:22] kaleido: is node even 50% js anymore?
[15:19:59] kaleido: C# and java make baby jesus cry
[15:20:15] kaleido: .NET was used by the nazis in 1939
[17:08:33] kaleido: Remote host closed the connection
[17:26:12] kaleido: has joined #ruby

2016-04-20

[18:13:28] kaleido: has joined #ruby

2016-04-02

[21:13:37] kaleido: has joined #ruby
[21:13:41] kaleido: has left #ruby: ()

2016-03-10

[00:49:05] kaleido: Ping timeout: 248 seconds
[15:59:40] kaleido: has joined #ruby
[15:59:40] kaleido: Changing host
[16:44:14] kaleido: Remote host closed the connection
[17:57:22] kaleido: has joined #ruby
[17:57:42] kaleido: has left #ruby: ()

2016-03-09

[15:23:46] kaleido: Remote host closed the connection
[15:37:32] kaleido: has joined #ruby

2016-03-08

[18:40:26] kaleido: yuung: #rubyonrails
[18:40:31] kaleido: they will have better answers

2016-03-06

[18:00:02] kaleido: ill second that
[18:00:10] kaleido: its very poignant

2016-03-01

[19:09:31] kaleido: openstruct: they want you
[19:10:22] kaleido: you callin him pure magic?

2016-02-29

[20:19:07] kaleido: >> a ="b" ; b = a ; puts a + b
[20:19:17] kaleido: im so good at this
[20:22:02] kaleido: Ox0dea: i am. im a bit more knowledgable than what i had rubybot do, but im definitely a noob

2016-02-28

[19:08:25] kaleido: i find it helps to try to reverse someones ruby as well

2016-02-27

[22:19:20] kaleido: has joined #ruby
[22:19:20] kaleido: Changing host

2016-02-25

[21:05:52] kaleido: Quit: leaving
[21:09:01] kaleido: has joined #ruby
[22:14:00] kaleido: shevy: you know you prefer perl and php
[23:13:24] kaleido: >> nil.type

2016-02-24

[13:10:56] kaleido: has joined #ruby
[16:45:38] kaleido: >> a = "b" ; b = a ; puts a + b
[16:45:52] kaleido: i call shenanigans!

2016-02-23

[20:47:37] kaleido: Ping timeout: 244 seconds

2016-02-22

[15:09:11] kaleido: keep it simple stupid :D
[18:46:29] kaleido: what would a "pop" do?
[18:59:47] kaleido: athix: european or african?

2016-02-21