icarus

Activity Graph

Page 1 of 3 | Next »

2019-06-11

[04:47:24] icarus: has joined #ruby
[05:13:44] icarus: Ping timeout: 244 seconds

2019-02-17

[20:55:38] icarus: has joined #ruby
[21:58:40] icarus: Ping timeout: 250 seconds

2019-02-12

[02:12:42] icarus: Quit: leaving

2019-02-11

[23:10:11] icarus: has joined #ruby

2018-11-14

[00:55:55] icarus: Quit: leaving

2018-11-13

[20:48:23] icarus: has joined #ruby
[21:38:09] icarus: Ping timeout: 244 seconds
[22:22:14] icarus: has joined #ruby

2018-10-22

[15:57:39] icarus: has joined #ruby
[16:03:47] icarus: Quit: leaving
[16:41:03] icarus: has joined #ruby
[19:02:24] icarus: Quit: leaving

2018-10-20

[21:08:01] icarus: has joined #ruby
[21:10:20] icarus: hello all, I have an endpoint that needs a post request (IE, curl --data '{"example":"data"}'), is anyone familiar with out to do this with httparty?
[21:11:31] icarus: with curl, this looks like: curl --data '{"example":"data"}' $url
[21:11:53] icarus: same for httparty via cli: httparty --data '{"example":"data"}' $url
[21:22:00] icarus: ah screw it, im just going to hard code `httparty --data '{"example":"data"}' $url`, yolo
[22:07:23] icarus: Read error: Connection reset by peer
[22:07:49] icarus: has joined #ruby
[23:13:09] icarus: Ping timeout: 252 seconds

2018-10-19

[18:26:04] icarus: Quit: Lost terminal

2018-10-18

[21:52:47] icarus: has joined #ruby
[22:13:11] icarus: Ping timeout: 250 seconds
[22:40:08] icarus: has joined #ruby

2018-09-18

[05:39:03] icarus: I'm using sinatra to query endpoints that response in json requests, and need to validate two things: a 200 response and json schema, IE that it send me a json response and not someother html error (to clarify, sinatra will return whatever get /page is handed by response.body)
[05:44:00] icarus: httparty has a neat response.code tidbid
[05:44:33] icarus: I still would like to lint test a json response before passing it to a client
[05:44:59] icarus: Like rubocop .. for json
[05:46:22] icarus: because ... one can not trust endpoints to do their homework, im getting passed html errors occasionally and it spits out ugly sinatra garbage, thus the wont to test specifically for json, and that it be in a non-erroroneous format
[05:47:08] icarus: response = HTTParty.get('https://someendpoint/file.json')
[05:47:41] icarus: ^ i want to make SURE its json, if not, fill response with a custom json error
[05:49:11] icarus: thats incredibly lazy, it could be html or xml, i dont want to catch general exceptions, i want to catch valid or non-valid json
[05:52:37] icarus: Ok, i see what you mean by JSON.parse, JSON::ParserError can be a clear exception to watch for
[05:55:38] icarus: all the (this) sinatra endpoint is meant to do act as a microserver to wrap other json endpoints
[05:55:56] icarus: its replacing a bash script using jq/csvkit
[06:03:39] icarus: I'll figure it out
[06:04:14] icarus: one question i really cant get to the bottom of, how to output sprintf without quotes! > p sprintf '%0.8f' % "123"
[06:43:53] icarus: >> ("123").round(8)
[06:44:03] icarus: >> (123).round(8)
[06:44:20] icarus: ^ apparently .round will suffice
[06:45:10] icarus: Im so used to thinking in awk/cli terms: | awk '{print sprintf("%0.8f", $1);}'
[18:01:22] icarus: Ping timeout: 244 seconds
[18:13:01] icarus: has joined #ruby
[18:27:33] icarus: Ping timeout: 245 seconds
[18:28:41] icarus: has joined #ruby
[19:00:04] icarus: Quit: leaving

2018-09-17

[21:35:15] icarus: has joined #ruby
[23:09:17] icarus: Hi all, what is the best way to validate json from a resquest in ruby?
[23:09:43] icarus: I've looked at 'json' and 'json-schema', but neither work
[23:10:40] icarus: I'm just looking for a quick elegant way to validate json along a route in sinatra

2018-09-12

[04:51:37] icarus: has joined #ruby
[07:52:37] icarus: Quit: Lost terminal

2018-08-20

[18:41:08] icarus: has joined #ruby
[22:59:52] icarus: Quit: leaving

2018-07-01

[00:12:29] icarus: has joined #ruby
[02:16:49] icarus: Ping timeout: 256 seconds
[09:34:05] icarus: has joined #ruby
[16:48:21] icarus: Ping timeout: 256 seconds
[16:50:02] icarus: has joined #ruby
[17:41:18] icarus: Quit: leaving

2018-06-29

[17:12:57] icarus: has joined #ruby
[17:57:42] icarus: Ping timeout: 245 seconds

2018-06-28

[21:17:05] icarus: Ping timeout: 240 seconds

2018-06-27

[03:09:26] icarus: Ping timeout: 260 seconds
[03:48:31] icarus: has joined #ruby

2018-06-24

[03:40:12] icarus: Ping timeout: 245 seconds
[05:16:37] icarus: has joined #ruby
[19:14:45] icarus: Ping timeout: 264 seconds
[22:57:55] icarus: has joined #ruby

2018-06-22

[17:42:00] icarus: Disconnected by services
[18:08:23] icarus: Quit: leaving
[18:10:55] icarus: has joined #ruby
[20:13:21] icarus: Ping timeout: 248 seconds
[20:52:03] icarus: has joined #ruby

2018-06-21

[09:11:46] icarus: has joined #ruby
[20:57:10] icarus: Ping timeout: 268 seconds
[21:51:59] icarus: has joined #ruby

2018-06-20

[23:07:05] icarus: Ping timeout: 240 seconds

2018-06-18

[15:43:40] icarus: Ping timeout: 256 seconds
[17:31:59] icarus: has joined #ruby
[19:01:12] icarus: Ping timeout: 265 seconds
[20:34:10] icarus: has joined #ruby

2018-06-17

[17:59:29] icarus: Ping timeout: 265 seconds
[22:15:47] icarus: has joined #ruby

2018-06-16

[03:59:37] icarus: has joined #ruby
[04:33:40] icarus: Ping timeout: 260 seconds
[18:08:25] icarus: has joined #ruby

2018-06-15

[20:57:17] icarus: Ping timeout: 245 seconds

2018-06-13

[19:30:59] icarus: Disconnected by services
[20:31:12] icarus: Quit: Lost terminal
[22:15:17] icarus: has joined #ruby

2018-06-12

[20:15:51] icarus: has joined #ruby

2018-06-07

[01:52:41] icarus: Quit: Lost terminal

2018-06-06

[18:46:57] icarus: Ping timeout: 240 seconds
[23:17:31] icarus: has joined #ruby

2018-06-05

[20:57:58] icarus: has joined #ruby

2018-06-04

[00:49:47] icarus: has joined #ruby
[05:55:24] icarus: Quit: leaving

2018-05-18

[19:58:43] icarus: Quit: Lost terminal

2018-05-17

[23:10:50] icarus: has joined #ruby

2018-04-18

[05:40:24] icarus: has joined #ruby
[05:56:28] icarus: Ping timeout: 256 seconds
[06:00:38] icarus: has joined #ruby
[06:08:34] icarus: Ping timeout: 260 seconds
[10:27:33] icarus: has joined #ruby
[23:03:48] icarus: Ping timeout: 265 seconds

2018-04-17

[02:12:04] icarus: Ping timeout: 260 seconds
[05:46:53] icarus: has joined #ruby
[21:43:14] icarus: Ping timeout: 265 seconds

2018-04-16

[17:29:23] icarus: Ping timeout: 256 seconds
[22:06:08] icarus: has joined #ruby

2018-04-15

[01:48:58] icarus: Ping timeout: 240 seconds
[01:59:47] icarus: has joined #ruby
[02:12:44] icarus: Ping timeout: 260 seconds
[17:46:23] icarus: has joined #ruby

2018-04-14

[16:49:36] icarus: has joined #ruby

2018-04-13

[16:13:57] icarus: has joined #ruby
[20:53:09] icarus: Ping timeout: 264 seconds
[22:40:23] icarus: has joined #ruby
[23:41:59] icarus: Ping timeout: 260 seconds

2018-04-11

[02:20:53] icarus: has joined #ruby
[17:20:29] icarus: Ping timeout: 268 seconds
[17:22:06] icarus: has joined #ruby
[20:09:20] icarus: Ping timeout: 276 seconds

2018-04-08

[05:55:28] icarus: has joined #ruby
[22:04:22] icarus: Ping timeout: 260 seconds

2018-04-07

[19:32:00] icarus: Ping timeout: 256 seconds

2018-04-06

[18:18:53] icarus: has joined #ruby

2018-03-28

[01:18:53] icarus: zenspider: thanks again for the help, night
[01:18:54] icarus: Quit: leaving
[17:12:21] icarus: has joined #ruby
[17:35:39] icarus: Hi all, I'm in a bit of a rut with some sinatra code: `get '/:action' do |a| \n response = exec ( "ssh ..." ) \n puts response \n end`
[17:36:56] icarus: Basically I'm running `exec ( "ssh ..." )` to issue a local ssh command which correctly responds with json in the backend debug, but it won't response to the `curl 127.0.0.1:8080/action` call
[17:37:11] icarus: Does anyone have any advice on setting a timeout?
[17:48:42] icarus: aah, dang ill try that
[17:55:38] icarus: havenwood: thanks for the suggestion on rack-timeout
[17:56:11] icarus: Interesting, now its waiting for the response correctly, the backend is still showing the json response, but the `curl ...` outputs a blank response
[17:56:45] icarus: A real improvement though, I'm trying body("")
[17:57:17] icarus: whooooo!!! thanks for the help yall

2018-03-27

[22:02:35] icarus: has joined #ruby
[22:06:09] icarus: hello all, I'm looking at 'net/ssh', attempting to use ssh.exec! to issue a command on a remote server, however it is one that requires :RequestTTY => force, but this isn't an option for Net::SSH (http://www.rubydoc.info/github/net-ssh/net-ssh/Net/SSH); Does anyone have any recommendations for executing "ssh -ttt" commands via ruby?
[22:06:33] icarus: I appreciate any input, thank you!
[22:07:56] icarus: zenspider: correct! (:config doesnt register an entry in ~/.ssh/config for RequestTTY either)
[22:10:59] icarus: im also looking here: https://net-ssh.github.io/net-ssh/classes/Net/SSH/Connection/Session.html
[22:14:41] icarus: zenspider: thanks for the assist, ill read up
[22:15:59] icarus: SeepingN: do you happen to know of any good alternatives? (yeah, in this case i just need the equivalent of "ssh -t" hah)
[22:19:35] icarus: yea see rake has something like this: "set :ssh_flags, %w[-l joe -p 2000]" thats a lot more convenient
[22:23:26] icarus: "undefined local variable or method `session' for main:Object (NameError)"
[22:23:39] icarus: does it not exist in net/ssh anymore?
[22:23:52] icarus: I might be leaving it in a few minutes for the same reasons :)
[22:24:58] icarus: im putting an ssh wrapper together to run certain commands on remote servers, behind sinatra/nginx
[22:25:35] icarus: I was handed some endpoints that have broken rpc endpoints, but they still work locally (yea, im hacking it together, but hey its gotta be up asap)
[22:29:37] icarus: zenspider: yeah i think so
[23:12:27] icarus: zenspider: exec ( "ssh -q -t ..." ) is winner winner chicken dinner
[23:12:33] icarus: i really over thought that one

2018-03-09

[22:08:16] icarus: has joined #ruby
[22:32:41] icarus: Quit: leaving

2018-01-05

[05:13:22] icarus: has joined #ruby
[08:50:40] icarus: Ping timeout: 248 seconds

2018-01-04

[23:41:45] icarus: Ping timeout: 264 seconds

2018-01-03

[01:52:57] icarus: has joined #ruby
[02:10:22] icarus: Ping timeout: 272 seconds
[05:11:50] icarus: has joined #ruby

2017-08-05

[04:58:10] icarus: has joined #ruby
[05:02:35] icarus: Ping timeout: 240 seconds
[05:03:12] icarus: has joined #ruby
[05:56:28] icarus: Read error: Connection reset by peer
[05:56:58] icarus: has joined #ruby
[15:36:36] icarus: Ping timeout: 260 seconds
[19:57:27] icarus: has joined #ruby
[20:09:24] icarus: Ping timeout: 255 seconds
[21:38:39] icarus: has joined #ruby
[21:39:38] icarus: Client Quit

2017-07-12

[01:03:15] icarus: Ping timeout: 255 seconds

2017-07-11

[10:28:14] icarus: has joined #ruby
[12:40:01] icarus: Ping timeout: 248 seconds
[19:48:41] icarus: has joined #ruby
[19:54:28] icarus: Ping timeout: 246 seconds
[23:00:36] icarus: has joined #ruby

2017-04-19

[00:13:59] icarus: Quit: leaving

2017-04-18

[22:26:54] icarus: has joined #ruby
[22:29:23] icarus: hey all, ive got a Gemfile with a :git source denoted, bundle will install it but i dont see it with i grep it with "gem list"
[22:30:09] icarus: bundle doesnt seem to assign the custom source gem to a list that i can require in a script
[22:30:29] icarus: bundle list shows it, but gem list does not
[22:31:52] icarus: i guess bundle isnt installing to a system wide recognizable location, just wondering what the best way to resolve it is
[22:40:22] icarus: Phrogz: the custom source :git gem isnt showing up when required in the header of a script
[22:40:39] icarus: if i manually copy from the bundler location to where global gems are stored, the script runs fine
[22:43:06] icarus: Phrogz: what method do you use to track your gems?
[22:44:38] icarus: its convenient to drop a Gemfile in a repo and feel likes its dependencies can be tracked
[22:54:02] icarus: ive always though bundler was a neat way to track dependencies, i guess one could use .gemspec alone too
[22:54:18] icarus: havenwood: yeah, im debugging through it, i appreciate yalls input
[22:57:37] icarus: havenwood: im just trying to get a gem i cloned on github with a few changes to install properly to a global path via bundler install: https://github.com/jjdevbiz/poloniex
[22:58:21] icarus: Gemfile entry: gem "poloniex", :git => 'https://github.com/jjdevbiz/poloniex.git', :branch => 'master'
[22:58:37] icarus: it installs correctly, bundle show has it listed
[22:59:37] icarus: /root/.chefdk/gem/ruby/2.1.0/bundler/gems/poloniex-4facb54c1045
[23:00:21] icarus: i should mention, i am using chef's development kit
[23:06:37] icarus: havenwood: bingo
[23:07:43] icarus: > Bundler.setup
[23:11:58] icarus: havenwood: Phrogz: thanks for the help

2017-04-14

[21:27:55] icarus: has joined #ruby
[21:56:59] icarus: Quit: leaving

2017-03-22

[17:16:49] icarus: Ping timeout: 240 seconds

2017-03-21

[23:48:26] icarus: has joined #ruby

2016-07-15

[20:54:28] icarus: has joined #ruby
[22:14:17] icarus: Quit: leaving

2016-06-28

[01:58:12] icarus: has joined #ruby
[02:27:38] icarus: Quit: Lost terminal

2016-06-27

[19:36:00] icarus: has joined #ruby
[21:21:10] icarus: Ping timeout: 252 seconds

2016-06-24

[14:59:12] icarus: has joined #ruby
[15:57:51] icarus: Ping timeout: 240 seconds
[19:59:41] icarus: has joined #ruby
[20:00:00] icarus: Read error: Connection reset by peer

2016-06-06

[20:41:27] icarus: has joined #ruby
[23:19:18] icarus: Quit: Lost terminal

2016-05-19

[18:12:04] icarus: has joined #ruby
[18:54:22] icarus: Quit: Lost terminal

2016-05-12

[18:38:27] icarus: has joined #ruby
[21:16:18] icarus: Quit: leaving

2016-04-19

[02:08:52] icarus: has joined #ruby
[03:18:42] icarus: Ping timeout: 260 seconds
[03:20:31] icarus: has joined #ruby
[05:28:42] icarus: Read error: Connection reset by peer
[05:29:07] icarus: has joined #ruby
[05:33:27] icarus: Read error: Connection reset by peer
[05:34:07] icarus: has joined #ruby
[05:59:03] icarus: Read error: Connection reset by peer
[06:03:07] icarus: has joined #ruby
[06:12:52] icarus: Ping timeout: 252 seconds
[06:14:41] icarus: has joined #ruby
[06:22:53] icarus: Read error: Connection reset by peer
[07:47:08] icarus: has joined #ruby
[09:09:07] icarus: Ping timeout: 250 seconds
[14:14:47] icarus: has joined #ruby
[14:15:12] icarus: Read error: Connection reset by peer
[14:56:11] icarus: has joined #ruby
[15:15:13] icarus: Ping timeout: 250 seconds
[15:16:56] icarus: has joined #ruby
[15:24:30] icarus: Read error: Connection reset by peer
[16:54:19] icarus: has joined #ruby
[17:13:14] icarus: Ping timeout: 260 seconds
[17:15:18] icarus: has joined #ruby
[17:15:51] icarus: Client Quit

2016-04-04

[19:24:30] icarus: has joined #ruby
[20:44:21] icarus: Ping timeout: 276 seconds
[20:45:32] icarus: has joined #ruby
[21:22:29] icarus: Quit: leaving