rehat

Activity Graph

Page 1 of 5 | Next »

2016-07-31

[01:36:37] rehat: has joined #ruby
[16:16:37] rehat: Remote host closed the connection

2016-07-23

[01:27:30] rehat: has joined #ruby
[01:27:37] rehat: has joined #RubyOnRails
[01:56:29] rehat: Remote host closed the connection

2016-07-17

[17:44:23] rehat: has joined #ruby
[19:30:41] rehat: Remote host closed the connection

2016-06-28

[01:24:51] rehat: has joined #ruby
[01:35:50] rehat: Remote host closed the connection

2016-06-26

[21:18:21] rehat: has joined #ruby
[22:34:18] rehat: Remote host closed the connection

2016-06-12

[02:27:24] rehat: has joined #ruby
[15:45:03] rehat: Remote host closed the connection

2016-06-07

[03:31:07] rehat: has joined #ruby
[03:32:18] rehat: trying to find the implementation of a method but I can't seem to find it. If there is a method called 'available?' shouldn't there be method with that name?
[07:35:26] rehat: Remote host closed the connection

2016-06-04

[15:47:28] rehat: has joined #ruby
[17:37:26] rehat: Remote host closed the connection

2016-05-07

[00:59:49] rehat: has joined #ruby
[05:40:53] rehat: Read error: Connection reset by peer

2016-05-06

[03:06:35] rehat: has joined #ruby
[15:49:42] rehat: Remote host closed the connection

2016-04-11

2016-04-10

[16:43:57] rehat: Remote host closed the connection
[21:00:01] rehat: has joined #ruby

2016-04-09

[06:41:59] rehat: Remote host closed the connection
[16:13:13] rehat: has joined #ruby
[16:54:25] rehat: Remote host closed the connection
[17:18:24] rehat: has joined #ruby

2016-04-05

[13:22:11] rehat: *.net *.split
[13:24:08] rehat: has joined #ruby

2016-04-04

[01:10:15] rehat: has joined #ruby

2016-04-03

[00:23:47] rehat: has joined #ruby
[01:53:32] rehat: has joined #ruby
[15:24:50] rehat: Remote host closed the connection
[15:48:31] rehat: has joined #ruby
[16:37:04] rehat: Remote host closed the connection
[17:43:49] rehat: has joined #ruby
[19:39:21] rehat: Remote host closed the connection
[20:17:37] rehat: has joined #ruby

2016-04-02

[01:25:49] rehat: has joined #ruby
[15:56:13] rehat: Remote host closed the connection
[16:21:26] rehat: has joined #ruby
[17:46:49] rehat: Remote host closed the connection
[19:06:04] rehat: has joined #ruby
[20:01:13] rehat: Remote host closed the connection
[20:22:18] rehat: has joined #ruby
[21:59:40] rehat: Read error: Connection reset by peer
[22:38:25] rehat: has joined #ruby

2016-04-01

[00:24:58] rehat: is there a way to trigger a ruby script with erb? Like user enters something in a textfield and when they press submit it would trigger a ruby script that would reload the page. Just running it locally not on a server
[00:29:25] rehat: smathy: ok thanks
[00:45:15] rehat: benzrf: ahh neat, thanks
[20:23:50] rehat: Remote host closed the connection
[21:00:51] rehat: has joined #ruby
[21:01:06] rehat: has joined #ruby
[21:07:48] rehat: is there a way to change my ip in ruby lol? I'm such a noob. I wrote a screen scraper and the site banned my ip lol
[21:14:05] rehat: bullets: haha I was looking for something to prevent getting banned for future scrapes. I'll try adding a random sleep but I read online that I should use ip rotating or a proxy service but I'm now familiar with that stuff. I guess I read a wiki lol
[23:27:51] rehat: Remote host closed the connection

2016-03-31

[21:54:48] rehat: has joined #ruby
[21:55:13] rehat: is there a different gem for SQLite3 or is this the best one?
[21:55:14] rehat: https://github.com/sparklemotion/sqlite3-ruby
[23:31:45] rehat: so lost, I am reading a file of words into an array but for some reason I can't find the index of a string that is in the array. '==' doesn't seem to work
[23:33:30] rehat: I tried just array_var.index("bat") but that returned nothing
[23:37:24] rehat: do I need to do anything special with strings read from a file? I printed out the .class and is say String and there are no '\n' or '\r' in the puts. I made another array and hard coded the strings and index("bat") worked
[23:42:16] rehat: ugh I found my problem, I'm a tard. I did gsub("\n", ' ') and it added a space to the end
[23:43:43] rehat: baweaver: ahh chomp is nicer thanks

2016-03-30

[16:23:41] rehat: Remote host closed the connection

2016-03-29

[20:52:59] rehat: Remote host closed the connection
[23:13:39] rehat: has joined #ruby

2016-03-28

[17:00:53] rehat: Ping timeout: 250 seconds
[20:59:07] rehat: has joined #ruby

2016-03-27

[01:00:54] rehat: what does "rvm reinstall 2.2.1 --disable-binary" do? that fixed a OpenSSL error I was having. Does that just reinstall ruby? It took forever to finish lol
[04:50:45] rehat: Ping timeout: 250 seconds
[07:58:25] rehat: has joined #ruby
[17:07:12] rehat: Remote host closed the connection
[19:11:41] rehat: has joined #ruby

2016-03-26

[17:13:36] rehat: has joined #ruby
[17:14:46] rehat: new with ruby, If I have some instance variables like @names is there any point to defining that variable in the class? I'm guess they need to be set in the class initialize method
[17:17:08] rehat: https://gist.github.com/rehat/47102f23f4d3104c11bd do I need to have the @names outside of the initialize
[17:18:06] rehat: man I think I am bouncing between languages too much. I thought I saw a class file with properties defined before the initializer
[17:18:16] rehat: ok thanks
[17:21:07] rehat: Ox0dea: ahh that might be it, so if I use attr_reader I would give it the symbol version of the instance variable right?
[17:21:32] rehat: sweet thanks
[17:59:44] rehat: what is a common method naming convention when a method checks something would I use 'isAvailable', is_available', or 'available?'
[18:36:54] rehat: Remote host closed the connection
[20:17:14] rehat: has joined #ruby
[20:29:46] rehat: anyone know how to fix this error with making http "openssl::ssl::sslerror: ssl_connect returned=1 errno=0 state=sslv3 read server certificate b: certificate verify failed"
[20:32:43] rehat: ahh ok so I just need to update that gem?
[20:33:51] rehat: oh the server is "https://itunes.apple.com/search?"
[20:35:37] rehat: yeah I get the same thing with https://google.com/
[20:36:46] rehat: have not tried that
[20:40:24] rehat: yeah curl works, idk maybe I should try a different machine lol
[20:42:45] rehat: https://gist.github.com/rehat/a840f1ba57bd69655100
[20:45:11] rehat: yeah it might be my machine. Maybe I need to update my gems, kinda new with ruby so I probably messed something up with rvm
[20:45:22] rehat: is there a update all installed gems command?
[20:46:54] rehat: ruby 2.2.1 OSX
[20:47:52] rehat: I'm just at a coffee shop lol
[20:53:16] rehat: haha it works in python. is there a way to remove rvm completely? I think it is messing shit up
[20:54:10] rehat: what do you use
[21:02:23] rehat: yeah rvm was the problem for some reason, Going to try chruby thanks
[21:03:30] rehat: havenwood: yeah I did that thanks :)
[21:06:49] rehat: Remote host closed the connection
[21:37:26] rehat: has joined #ruby
[22:05:36] rehat: shevy: yeah mainly iOS

2016-03-24

[18:18:44] rehat: has joined #ruby
[19:14:47] rehat: Remote host closed the connection

2016-03-01

[05:05:48] rehat: has joined #RubyOnRails

2016-02-29

[18:31:01] rehat: has joined #ruby

2016-01-27

[00:22:20] rehat: Ping timeout: 256 seconds

2016-01-26

[19:18:26] rehat: has joined #ruby

2016-01-25

[16:49:26] rehat: has joined #ruby
[16:50:59] rehat: There is a webpage that has a popup after submitting a form and then takes the user to another page. Is there a way with mechanize to know when the page has been redirected
[16:51:26] rehat: its one of those pop ups that says don't reload or press back. Some old ass web page lol
[16:52:36] rehat: haha not that old
[18:56:21] rehat: Read error: Connection reset by peer

2016-01-14

[17:28:20] rehat: has joined #ruby
[18:59:11] rehat: Ping timeout: 265 seconds

2016-01-13

[00:34:19] rehat: Ping timeout: 260 seconds

2016-01-12

[20:52:38] rehat: has joined #ruby
[20:53:43] rehat: can I use rvm to change ruby environments? I want to try a new cocoapods for ios but I don't want to change my current setup
[20:55:01] rehat: ahh its been a while since I used rvm when I played with Rails, what would be a modern alternative?
[20:57:03] rehat: norc: sweet thanks

2015-12-16

[00:36:29] rehat: Ping timeout: 246 seconds

2015-12-15

[00:22:06] rehat: Ping timeout: 256 seconds
[17:09:51] rehat: has joined #ruby

2015-12-14

[18:14:58] rehat: has joined #ruby

2015-12-03

[18:16:34] rehat: has joined #ruby
[21:07:20] rehat: Ping timeout: 246 seconds

2015-11-05

[04:19:15] rehat: has joined #ruby
[22:08:59] rehat: Ping timeout: 240 seconds

2015-10-30

[02:26:44] rehat: has joined #ruby
[07:36:39] rehat: Remote host closed the connection

2015-10-27

[07:55:35] rehat: Remote host closed the connection

2015-10-26

[06:55:58] rehat: Remote host closed the connection
[23:49:06] rehat: has joined #ruby

2015-10-25

[07:47:16] rehat: Remote host closed the connection
[23:53:20] rehat: has joined #ruby

2015-10-24

[03:30:49] rehat: has joined #ruby
[05:32:56] rehat: this might be an odd question but is there a way to run a ruby script A with an arg to another ruby script B that has a bunch of constants so that ruby script A can use??
[17:22:01] rehat: Remote host closed the connection
[17:56:50] rehat: has joined #ruby
[18:01:17] rehat: this might be an odd question but is there a way to run ruby script A from the commandline with an arg to another ruby script B that has a bunch of constants so that ruby script A can use? Like programmatically require a module
[18:03:26] rehat: well I want to pass in a config file as a requirement so that the user is aware they need to update it before calling my script but yeah maybe I am doing it wrong
[18:04:01] rehat: oh lol, ok
[18:06:59] rehat: so something like this https://hackhands.com/ruby-read-json-file-hash/
[19:14:54] rehat: Remote host closed the connection
[21:08:13] rehat: has joined #ruby

2015-10-23

[02:52:04] rehat: has joined #ruby
[05:46:31] rehat: how do I execute a terminal command and get a bool result. When I use system or backticks the terminal command still spits out. How do gems like xcpretty do it?
[05:47:02] rehat: oh wait, do I just pipe it to a string?
[05:47:26] rehat: yeah exit status
[05:56:39] rehat: oh I changed my logic lol https://www.diffchecker.com/l30he4de
[07:56:53] rehat: Remote host closed the connection

2015-10-22

[00:27:04] rehat: trying to create a ruby script to automate something we do a lot in git. What is the benefit of using a gem like Rugged over calling STDOUT backtick commands?
[00:37:37] rehat: jhass: ok thanks
[00:56:08] rehat: Remote host closed the connection
[01:43:36] rehat: has joined #ruby
[03:14:00] rehat: new to ruby is there a better way to programmatically increment a line of text like "pod 'Alamofire', '~> 2.0.0'" to "pod 'Alamofire', '~> 2.0.1'" ? This is what I have so far lol https://gist.github.com/rehat/4cd713023853a72ca4ab
[03:17:44] rehat: Ox0dea: lol thanks dude
[03:23:44] rehat: wow, so I even use next on the full string "Alamofire', '~> 2.0.0'" and it worked. Ruby is so magical :)
[09:01:02] rehat: Remote host closed the connection
[15:34:24] rehat: has joined #ruby
[16:19:22] rehat: is there a way to conditionally require a gem if it exists on the system?
[16:20:13] rehat: jhass: ahh right
[16:20:17] rehat: mg^^: thanks
[20:31:40] rehat: Remote host closed the connection

2015-10-21

[17:42:38] rehat: has joined #ruby
[18:35:40] rehat: is there a git gem to connect to a private github server?
[18:38:11] rehat: ahh octokit looks nice, just wondering if I can configure it so connect to a private github server that my company has
[18:38:54] rehat: jhass: nice! thanks dude
[19:28:46] rehat: Read error: Connection reset by peer
[23:22:52] rehat: has joined #ruby

2015-09-28

[01:17:11] rehat: has joined #ruby
[15:03:34] rehat: Remote host closed the connection

2015-09-23

[17:06:42] rehat: has joined #ruby
[18:32:53] rehat: has joined #ruby
[20:01:06] rehat: Remote host closed the connection

2015-09-22

[17:34:54] rehat: has joined #ruby
[23:41:24] rehat: Remote host closed the connection

2015-09-17

[02:12:44] rehat: has joined #ruby
[04:46:02] rehat: Remote host closed the connection

2015-09-16

[16:36:35] rehat: has joined #ruby
[23:53:29] rehat: Remote host closed the connection

2015-09-14

[01:11:00] rehat: has joined #ruby
[15:08:24] rehat: Remote host closed the connection

2015-09-13

[01:15:55] rehat: has joined #ruby
[07:51:12] rehat: Remote host closed the connection
[18:12:16] rehat: has joined #ruby
[20:23:34] rehat: Remote host closed the connection

2015-09-12

[04:24:37] rehat: has joined #ruby
[04:27:54] rehat: Remote host closed the connection
[16:53:04] rehat: has joined #ruby
[16:56:03] rehat: if I have a path string to a file and I want to remove the '.<extention>' at the end would I use slice minus the last two characters or is there a better way
[16:58:39] rehat: [k-: sweet!, thanks
[18:44:00] rehat: regex question. how do you use a character class to capture and ignore at the same time? Trying to avoid capturing the IBAction here http://rubular.com/r/IjLpZOYd8z
[18:53:31] rehat: trying to get all methods in a objective-c file but avoid methods with the IBAction return type
[18:55:31] rehat: I guess I could filter that out later, but it would be cool to know how to do it with a regex pattern
[18:56:58] rehat: weaksauce: ahh, ok thanks
[19:01:43] rehat: weaksauce: oh nice! That site seems like a good doc for regex , thanks
[19:04:15] rehat: weaksauce: thanks dude
[19:22:48] rehat: Remote host closed the connection

2015-09-10

[16:46:44] rehat: has joined #ruby
[23:33:06] rehat: Remote host closed the connection

2015-09-08

[07:53:15] rehat: Remote host closed the connection
[16:13:00] rehat: has joined #ruby
[18:52:05] rehat: Read error: Connection reset by peer
[21:51:22] rehat: has joined #ruby
[23:25:24] rehat: Remote host closed the connection

2015-09-07

[18:10:13] rehat: has joined #ruby

2015-09-05

[17:46:21] rehat: has joined #ruby
[18:54:24] rehat: Remote host closed the connection

2015-09-04

[15:54:17] rehat: has joined #ruby
[23:46:19] rehat: Remote host closed the connection

2015-09-03

[15:12:36] rehat: has joined #ruby
[15:44:06] rehat: Read error: Connection reset by peer

2015-09-02

[05:25:06] rehat: Read error: Connection reset by peer
[15:44:51] rehat: has joined #ruby
[23:49:08] rehat: Remote host closed the connection

2015-09-01

[00:11:08] rehat: has joined #ruby
[01:26:28] rehat: Remote host closed the connection
[06:29:34] rehat: has joined #ruby
[19:34:04] rehat: *.net *.split
[19:35:04] rehat: has joined #ruby
[19:47:56] rehat: *.net *.split
[19:52:39] rehat: has joined #ruby

2015-08-31

[00:53:24] rehat: has joined #ruby
[18:47:31] rehat: Read error: Connection reset by peer

2015-08-30

[00:19:16] rehat: has joined #ruby
[16:03:30] rehat: Remote host closed the connection
[17:51:10] rehat: has joined #ruby
[17:51:32] rehat: is there a URI like module for directory paths?
[17:52:17] rehat: thanks jhass havenwood
[18:02:04] rehat: Read error: Connection reset by peer

2015-08-29

[16:37:16] rehat: what do you mean by index?
[17:44:37] rehat: Remote host closed the connection