st1gma

Activity Graph

Page 1 of 1

2016-06-08

[04:46:05] st1gma: Quit: laters

2016-06-03

[08:39:10] st1gma: Ping timeout: 264 seconds
[08:39:22] st1gma: has joined #ruby

2016-05-31

[00:07:40] st1gma: Ping timeout: 264 seconds
[00:09:50] st1gma: has joined #ruby

2016-05-26

[12:46:15] st1gma: has joined #ruby

2016-04-29

[04:44:05] st1gma: Quit: laters

2016-04-27

[14:11:39] st1gma: has joined #ruby

2016-04-21

[16:27:35] st1gma: Quit: laters

2016-04-11

[17:11:52] st1gma: Ping timeout: 264 seconds
[17:13:46] st1gma: has joined #ruby
[17:23:52] st1gma: Ping timeout: 264 seconds
[17:35:42] st1gma: has joined #ruby
[17:45:28] st1gma: Ping timeout: 264 seconds
[17:48:14] st1gma: has joined #ruby

2016-04-06

[13:44:51] st1gma: has joined #ruby

2016-04-03

[23:01:42] st1gma: Quit: laters

2016-03-28

[12:50:13] st1gma: has joined #ruby

2016-03-14

[10:21:54] st1gma: Quit: laters

2016-03-08

[07:13:05] st1gma: Quit: laters
[22:39:06] st1gma: has joined #ruby

2016-02-25

[20:11:06] st1gma: has joined #ruby

2016-02-18

[16:15:51] st1gma: Quit: laters

2016-02-17

[10:03:48] st1gma: *.net *.split
[10:05:33] st1gma: has joined #ruby

2016-02-16

[23:38:42] st1gma: *.net *.split
[23:48:22] st1gma: has joined #ruby

2016-02-10

[16:14:01] st1gma: has joined #ruby

2016-02-08

[03:50:23] st1gma: Quit: laters

2016-01-30

[01:04:05] st1gma: *.net *.split
[01:10:02] st1gma: has joined #ruby

2016-01-14

[07:19:08] st1gma: hey guys question. Suppose I have an object instance, one of the methods takes a couple of parameters which I want to have "checked". I created another method to "sanitize" the params and I'm using .map!. All good there, the problem is that the original method that calls sanize does not see the modified object.

2016-01-07

[19:38:36] st1gma: *.net *.split
[19:41:25] st1gma: has joined #ruby

2015-12-21

[03:22:56] st1gma: Remote host closed the connection
[03:26:24] st1gma: has joined #ruby

2015-12-20

[05:18:01] st1gma: Quit: Leaving
[18:59:24] st1gma: has joined #ruby

2015-12-16

[17:00:49] st1gma: has joined #ruby

2015-11-24

[22:38:35] st1gma: Ping timeout: 240 seconds

2015-11-23

[05:34:12] st1gma: has joined #ruby

2015-11-18

[07:32:27] st1gma: Ping timeout: 260 seconds
[18:42:36] st1gma: has joined #ruby
[18:50:30] st1gma: Ping timeout: 255 seconds
[19:03:40] st1gma: has joined #ruby
[19:16:35] st1gma: Ping timeout: 240 seconds
[19:28:55] st1gma: has joined #ruby
[22:26:25] st1gma: Quit: Leaving

2015-11-16

[12:39:48] st1gma: has joined #ruby
[22:54:44] st1gma: Ping timeout: 265 seconds
[23:07:11] st1gma: has joined #ruby

2015-10-20

[14:44:50] st1gma: Remote host closed the connection

2015-10-19

[17:54:23] st1gma: has joined #ruby

2015-10-15

[18:50:02] st1gma: has joined #ruby
[19:15:56] st1gma: Remote host closed the connection

2015-10-10

[17:30:23] st1gma: Remote host closed the connection

2015-10-06

[12:31:16] st1gma: has joined #ruby

2015-10-04

[23:17:38] st1gma: Remote host closed the connection

2015-09-29

[06:08:49] st1gma: Ping timeout: 264 seconds
[06:22:01] st1gma: has joined #ruby

2015-09-28

2015-09-23

[04:39:51] st1gma: Quit: Leaving
[12:50:41] st1gma: has joined #ruby

2015-09-21

[23:36:58] st1gma: Ping timeout: 265 seconds
[23:49:08] st1gma: has joined #ruby

2015-09-17

[14:33:51] st1gma: has joined #ruby

2015-09-16

[20:16:57] st1gma: Ping timeout: 250 seconds

2015-09-15

[21:57:57] st1gma: has joined #ruby

2015-09-14

[15:14:35] st1gma: has joined #ruby
[23:27:38] st1gma: Remote host closed the connection

2015-09-11

[13:03:01] st1gma: has joined #ruby
[23:36:20] st1gma: Remote host closed the connection

2015-09-08

[14:05:12] st1gma: has joined #ruby
[22:01:11] st1gma: Remote host closed the connection

2015-07-27

[00:41:29] st1gma: has joined #ruby
[00:42:12] st1gma: anybody in here have any experience with sockets? I'm trying to read from one, more specifically from an SMTP server. I can see the server sending me everything but when I do a socket.read I'm hung.
[00:42:36] st1gma: I can use the same code and point it to say google.com and I get something back no problem
[00:44:27] st1gma: any ideas?
[01:18:37] st1gma: lol craysili
[12:14:55] st1gma: Quit: Leaving

2015-07-07

[13:01:20] st1gma: Quit: Leaving

2015-06-24

[15:43:10] st1gma: has joined #ruby

2015-06-21

[22:47:30] st1gma: Remote host closed the connection

2015-06-17

[12:30:55] st1gma: has joined #ruby
[13:10:56] st1gma: Remote host closed the connection
[14:45:27] st1gma: has joined #ruby

2015-06-03

[11:45:43] st1gma: Ping timeout: 255 seconds

2015-06-02

[15:27:10] st1gma: has joined #ruby

2015-05-27

[05:31:10] st1gma: Remote host closed the connection
[14:48:08] st1gma: has joined #ruby
[23:47:30] st1gma: Remote host closed the connection

2015-05-26

[15:41:03] st1gma: has joined #ruby
[17:47:38] st1gma: got a question... does anybody know what compression is being used for a .gem? I got a gem that I need to modify so I have to "unbundle" it.
[17:50:17] st1gma: learn something new everyday. I didn't know about gem unpack
[17:50:22] st1gma: thanks havenwood and jhass
[17:52:29] st1gma: it's just a tar
[17:52:48] st1gma: then a gz inside

2015-05-25

[19:55:42] st1gma: Ping timeout: 272 seconds

2015-05-24

[04:53:04] st1gma: has joined #ruby

2015-05-20

[16:00:58] st1gma: he is lonely?
[21:22:41] st1gma: Quit: Leaving

2015-05-18

[09:23:06] st1gma: izzol: use git
[09:23:16] st1gma: damn just realized when that was asked :p
[09:26:09] st1gma: You said you wanted to keep versioning of your REST API that you are building?
[09:26:32] st1gma: git would be good for keeping track of changes in the code. (maybe I misunderstood your question?)
[09:28:26] st1gma: There are many ways of creating versions in git, some people might disagree with what I'm going to say here. But what I've done in the past is keep the "master" branch with the latest changes once I'm satisfied I create a new branch with the name "version-XX.YY". I tell people they can get that branch for that specific version or "master" for bleeding edge.
[09:28:54] st1gma: you can join #git and ask more questions on how that works
[09:32:47] st1gma: so you will have to create a route that contains the path's that you accept
[09:35:26] st1gma: you could do version in URI it doesn't matter, most vendors do URI
[09:38:13] st1gma: in sinatra you can do something like this
[09:38:36] st1gma: get '/api/:version/:params' do
[09:38:50] st1gma: then whatever code you want
[09:39:01] st1gma: probably a case statement to load the right libraries for the right version

2015-05-16

[05:33:01] st1gma: Gemfiles are gem (library) configuration files for bundler (a dependency "checker")
[05:33:23] st1gma: Some things you have to read Jarsue, otherwise you will have answers that are a simple Google away from you.
[05:36:36] st1gma: I'm not saying go read the full RFC22616 (HTTP) in order to understand basic HTTP methods, but some minor reading of documentation is always useful to have at least a basic understanding of how things work, as as shevy said, you will end up being a smarter more capable person.
[05:36:56] st1gma: who isn't
[05:40:04] st1gma: only a handful of books that I've read, like Shellcoder's Handbook (just the first one, I got too lazy on the second one), Hacking: The art of exploitation, and How to program C++. I was forced to read some Java stuff at school but that was about it for Java, I felt dirty.
[05:40:42] st1gma: oh and TCP/IP Illustrated Vol1 <- very good book
[05:40:52] st1gma: Allenom: yeah it was given to me :S
[05:44:31] st1gma: I feel the same about it :S
[05:44:54] st1gma: I never got into it and I mostly write stuff in Sinatra when I have to do web related things.
[05:45:06] st1gma: I just don't have the time to learn the monster Rails API
[05:46:52] st1gma: Allenom: so what is the argument behind that?
[05:47:20] st1gma: Allenom: I'm not sure I understand, if you know rails really well, you can get up and running very fast with little issue.

2015-05-15

[07:08:03] st1gma: You could also use a regex to validate that the different things that you want to allow are in place and nothing else
[07:09:12] st1gma: If you are talking about Rails then there are a few methods, in Sinatra you got some methods deriving from Rack. For ruby itlself I would do the regex and compare that to your string in a boolean type method
[07:10:33] st1gma: that is correct, do if you want to validate the whole URL then you want to first validate that it has the correct protocol, then fqdn, then URI
[07:11:29] st1gma: Wouldn't the web server validate "structurally correct but invalid" URIs?
[07:11:33] st1gma: for example
[07:11:51] st1gma: http://mysite.com/valid/uri - should return an HTTP200
[07:12:16] st1gma: where http://mysite.com/invalid/uri - should return an HTTP404 or 403 depending on how you have that configured
[07:12:51] st1gma: in rails you would have to have a route for each of the valid URI schemes (same for Sinatra) so the framework takes care of those that aren't valid, wouldn't they?
[07:14:43] st1gma: So the website returns this error to you?
[07:19:01] st1gma: http://ruby-doc.org/stdlib-2.2.2/libdoc/net/http/rdoc/Net/HTTP.html#class-Net::HTTP-label-GET+with+Dynamic+Parameters
[07:19:27] st1gma: Change last line to match the custom error that you get from the endpoint
[07:19:35] st1gma: then you should be golden
[07:22:36] st1gma: you could simply put it into an array
[07:22:46] st1gma: or create a class for it
[07:23:01] st1gma: with an attribute that you want that would mean it has been validated
[07:26:36] st1gma: Sure if you want to do it that way
[07:26:40] st1gma: that should also work
[07:27:04] st1gma: That would "taint" it but you still have to memoralize it in order to recall what it was

2015-05-13

[03:43:22] st1gma: anybody with some sinatra experience? What would be the best way of terminating a session when a user logs in and provide them with a new authenticated session?

2015-02-08

[01:31:58] st1gma: that's reserved ram, which the kernel releases when applications need it
[01:32:09] st1gma: it's an osx thing if I remember correctly

2014-12-29

[08:42:12] st1gma: $ rvm gemset list
[08:42:19] st1gma: $ rvm gemset use <name>
[08:42:31] st1gma: forgot that
[15:20:42] st1gma: This is a Ruby channel. Keep your discussion to that. If you want to discuss "Which is the better language?" then join #programming or keep it on private.

2014-11-06

[06:20:55] st1gma: start_time = Time.new - 86400
[06:21:13] st1gma: start_epoc = start_time.to_i
[06:21:37] st1gma: Not tested it but I believe it should do what you want
[06:32:38] st1gma: python way or the hard way
[06:32:44] st1gma: high way*
[06:32:55] st1gma: good god.. I think I need to sleep
[06:33:24] st1gma: So the one thing that drives me mad about Python is the no "end"
[06:33:32] st1gma: Everything else I'm ok with
[06:34:53] st1gma: pizzahead, your stuff seems to work just fine for me.
[06:34:54] st1gma: 2.1.3 :011 > Time.new((Time.now - 86400).strftime('%Y,%m,%d')).to_i
[06:34:54] st1gma: => 2014-01-01 00:00:00 -0500
[06:34:54] st1gma: 2.1.3 :010 > Time.new((Time.now - 86400).strftime('%Y,%m,%d'))
[06:34:56] st1gma: => 1388552400

2014-10-09

[13:55:04] st1gma: do you have a .gitignore file?
[13:58:03] st1gma: that was for h4pless. Did you also have a similar problem ericwood?