rgb-one

Activity Graph

Page 1 of 3 | Next »

2018-05-17

[18:07:18] rgb-one: has joined #ruby
[18:08:05] rgb-one: I'm running `sass --watch sass/style.sass:css/style.css --compass` and I get `ERROR: Cannot load compass.`, why is this?
[20:01:30] rgb-one: Quit: Konversation terminated!

2018-03-21

[20:24:37] rgb-one: has joined #ruby
[20:24:59] rgb-one: > (0..1024).find { |i| !File.exist?("/tmp/.X11-unix/X#{i}") }
[20:25:14] rgb-one: how does one run eval here?
[20:25:30] rgb-one: !eval (0..1024).find { |i| !File.exist?("/tmp/.X11-unix/X#{i}") }
[20:26:07] rgb-one: >> (0..1024).find { |i| !File.exist?("/tmp/.X11-unix/X#{i}") }
[20:27:00] rgb-one: On my system that command I pasted returns 18
[20:27:06] rgb-one: I don't know why though
[20:27:17] rgb-one: Not quite sure what that snippet is doing
[20:34:42] rgb-one: ENV['DISPLAY'] returns :0
[20:34:52] rgb-one: which makes sense to me
[20:49:04] rgb-one: has left #ruby: ("Konversation terminated!")

2018-03-20

[23:05:36] rgb-one: has joined #ruby
[23:15:46] rgb-one: Why is yield used here: https://github.com/KDE/docker-neon/blob/Neon/stable/neondocker/neondocker.rb#L147?
[23:23:01] rgb-one: The result of this would be a string or a list havenwood: https://github.com/KDE/docker-neon/blob/Neon/stable/neondocker/neondocker.rb#L201?
[23:24:47] rgb-one: > Dir['*'].class
[23:25:59] rgb-one: Does this bot still execute code?
[23:31:56] rgb-one: Alright, thanks guys
[23:32:06] rgb-one: Quit: Konversation terminated!

2018-03-13

[02:32:46] rgb-one: has joined #ruby
[02:33:44] rgb-one: what helper is included with haml that can provide the index route?
[02:43:46] rgb-one: Quit: Konversation terminated!

2018-03-12

[18:14:13] rgb-one: has joined #ruby
[18:52:48] rgb-one: has left #ruby: ("Konversation terminated!")

2016-07-07

[21:55:15] rgb-one: has joined #ruby
[21:55:44] rgb-one: How can I reload only a part of the page, say a <div>?
[21:57:16] rgb-one: shevy: How so?
[22:26:43] rgb-one: Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/

2016-06-03

[20:37:44] rgb-one: has joined #ruby
[20:38:23] rgb-one: wasn't the name rubot?
[20:39:11] rgb-one: so Ruboto is now Rubot?
[20:40:36] rgb-one: has left #ruby: ("Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is")
[20:40:45] rgb-one: has joined #ruby
[20:40:58] rgb-one: someone said something to me?
[20:51:12] rgb-one: what client are you using abshak3
[20:52:30] rgb-one: it doesn't set your nickname on logon?
[20:53:08] rgb-one: ill mention ruby in every sentence to bring it back on ;)
[20:54:58] rgb-one: >> puts "wtf" if 0
[20:55:56] rgb-one: define "falsey"
[20:56:45] rgb-one: thanks haylon
[20:57:03] rgb-one: and while your at it check out thruthy for me will ya
[20:58:58] rgb-one: lol.. "truthy"
[20:59:33] rgb-one: use a class
[21:00:37] rgb-one: or specialized functions
[21:08:28] rgb-one: yea get the idea clear and it will flow
[21:11:04] rgb-one: has left #ruby: ("Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is")

2016-04-19

[19:12:57] rgb-one: has joined #ruby
[19:15:09] rgb-one: I am using Middleman and running the server, but JQuery doesn't work. When I inspect a webpage in the browser the lines in the js file read //= require jquery etc. instead of actually requireing the jquery code
[19:15:36] rgb-one: Anyone know what's going on?
[19:22:56] rgb-one: the name is app.js for my application nfk|laptop
[19:23:55] rgb-one: so the name "application.js" is required?
[19:24:09] rgb-one: Middleman initializes with app.js
[19:25:33] rgb-one: maybe I should just include the jquery mobile file in a vendor directory
[22:02:04] rgb-one: has left #ruby: ("Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is")

2016-03-22

[01:00:50] rgb-one: has joined #ruby
[01:02:38] rgb-one: Could someone guide me with this project https://gist.github.com/rgb-one/3cf0a72122c444d4b7c9#file-project-entelope-txt
[01:03:41] rgb-one: good for you
[01:04:12] rgb-one: reread what I said
[01:04:17] rgb-one: the key word is guide
[01:04:25] rgb-one: I didn't say do my homework
[01:05:10] rgb-one: Guy if you don't want to help dont
[01:05:26] rgb-one: if you do want to help hear me out
[01:06:25] rgb-one: Alright, so the scenario is to be implemented in Java but I will be prototyping it in Ruby
[01:06:37] rgb-one: I figure I can get the prototype done in a day or two
[01:06:52] rgb-one: so I can clarify my ideas and move to the java implementation
[01:08:10] rgb-one: It is an assignment
[01:08:38] rgb-one: I have broken the problem down
[01:08:46] rgb-one: I have a direction in which I am going
[01:08:52] rgb-one: I aint finished typing
[01:09:29] rgb-one: The application is to be multithreaded as to avoid blocking
[01:09:36] rgb-one: also RMI should be used
[01:10:14] rgb-one: RMI is a bit different from RPC no?
[01:11:26] rgb-one: So distributed ruby seems to be a good start as it is available in the stdlib
[01:11:37] rgb-one: What do you think?
[01:12:10] rgb-one: havenwood: Yea
[01:12:31] rgb-one: For basic database ineraction what do you recommend?
[01:12:50] rgb-one: I could but I guess I can get it done faster in Ruby
[01:13:08] rgb-one: and clarify some stuff
[01:14:12] rgb-one: havenwood: RMI isn't advised?
[01:18:44] rgb-one: hmm..I think i'm doing too much work here..maybe I will stick with Java. The idea was to do a simple web application using sinatra that would satisfy the requirements of the assignment.
[01:26:50] rgb-one: RickHull: Alright
[02:10:25] rgb-one: Quit: Konversation terminated!
[02:10:35] rgb-one: has joined #ruby
[02:13:13] rgb-one: has left #ruby: ()

2016-03-21

[21:22:29] rgb-one: has joined #ruby
[21:24:57] rgb-one: what libs are available for Remote Method Invocation in Ruby?
[21:35:33] rgb-one: Thanks shevy
[22:13:43] rgb-one: snockerton: how does the printout look?
[22:31:29] rgb-one: has left #ruby: ("Konversation terminated!")

2016-01-02

[00:00:03] rgb-one: I would like to slit the first page of a pdf document into a new pdf document. Any ideas?
[00:21:21] rgb-one: I would like to slit the first page of a pdf document into a new pdf document. Any ideas?
[07:52:43] rgb-one: has left #ruby: ()

2016-01-01

[23:51:16] rgb-one: has joined #ruby
[23:51:28] rgb-one: I would like to slit the first page of a pdf document into a new pdf document. Any ideas?

2015-12-07

[01:54:01] rgb-one: has joined #ruby
[01:55:21] rgb-one: nerium, are you having any issues with using bundler?
[02:15:14] rgb-one: has left #ruby: ()

2015-11-10

[00:07:07] rgb-one: Ping timeout: 260 seconds
[00:14:15] rgb-one: has joined #ruby
[00:51:38] rgb-one: Read error: Connection reset by peer

2015-11-09

[22:27:57] rgb-one: has joined #ruby
[22:31:48] rgb-one: How can I reference the first argument for an application commandline. In this case the argument is an file. I would like to abort with a File not found message to the command line and I would like to mention the file name in the message.
[22:32:05] rgb-one: How would I achieve this?
[22:38:55] rgb-one: havenwood: The result is nil
[22:39:42] rgb-one: havenwood: ah
[22:39:50] rgb-one: havenwood: I left out the hi there
[22:40:17] rgb-one: havenwood: Indeed. Thanks.
[22:59:10] rgb-one: Ping timeout: 240 seconds
[23:18:46] rgb-one: has joined #ruby

2015-11-06

[15:03:34] rgb-one: has joined #ruby
[15:43:27] rgb-one: Ping timeout: 246 seconds
[16:32:36] rgb-one: has joined #ruby
[16:35:08] rgb-one: has left #ruby: ()
[22:56:22] rgb-one: has joined #ruby

2015-11-03

[15:54:54] rgb-one: has joined #ruby
[16:05:41] rgb-one: How easy is it to retrieve data from a csv file?
[17:18:26] rgb-one: has left #ruby: ()
[22:57:49] rgb-one: has joined #ruby
[23:00:37] rgb-one: What is the name of the ruby file hash (md5, sha1, etc.) library?
[23:03:51] rgb-one: has left #ruby: ()

2015-11-01

[13:34:20] rgb-one: has joined #ruby
[13:35:16] rgb-one: Success? Ox0dea?
[13:54:40] rgb-one: Ping timeout: 265 seconds
[15:03:52] rgb-one: has joined #ruby
[15:19:07] rgb-one: has left #ruby: ()

2015-10-31

[16:21:12] rgb-one: has joined #ruby
[16:23:49] rgb-one: Success: o/
[16:24:46] rgb-one: I am working on a basic virus scanner application and would like to discuss it a bit
[16:26:25] rgb-one: Ox0dea, Success, Cool :)
[16:28:01] rgb-one: Success: I have started with the GUI but I haven't done much.
[16:28:57] rgb-one: I've been putting the cart ahead of the horse, in that I haven't clarified my ideas and already I am coding.
[16:29:20] rgb-one: Success: Yea
[16:31:34] rgb-one: Alright so I will clarify the scope of this application
[16:32:20] rgb-one: thats another thing you know without boundaries I kinda go crazy with ideas and don't settle.
[16:33:28] rgb-one: So the application is a basic virus scanner that will scan files to check if it is a virus by using its file signiature (md5, sha1)
[16:34:30] rgb-one: So I will have a virus definitions database and if a file matches any of the definitions in the database, then it will be flagged as a virus and quarentined
[16:35:17] rgb-one: Ox0dea: five? What do you mean?
[16:38:11] rgb-one: Ox0dea: Maybe cause you are using single quotes.
[16:46:20] rgb-one: Success: I think I will focus on the backend first
[16:47:38] rgb-one: Success: I will be using Python to code the application because I will be using PyQt for the GUI.
[16:48:06] rgb-one: Ox0dea: lol
[16:50:22] rgb-one: dreinull75: Yea, you can use module_function
[16:51:00] rgb-one: so define a module for eg. module ModuleName
[16:51:39] rgb-one: In order to use a function from within a module, you will need to use module_function
[16:52:11] rgb-one: Then you can reference the function like this: ModuleName.function()
[17:04:34] rgb-one: >> module ModuleName; def add(a, b); r = a + b; r; end; end; puts ModuleName.add(10, 12);
[17:04:51] rgb-one: >> module ModuleName; module_function; def add(a, b); r = a + b; r; end; end; puts ModuleName.add(10, 12);
[17:05:45] rgb-one: Ox0dea: What other purpose does it serve?
[19:01:49] rgb-one: Ping timeout: 246 seconds

2015-10-28

[18:28:19] rgb-one: has joined #ruby
[18:29:11] rgb-one: Can the key of a hash be referenced like this hashname.key
[18:29:34] rgb-one: that will return the value I would think
[18:29:59] rgb-one: do I have to do hashname[:key]?
[18:32:00] rgb-one: adaedra: Can have multipe keys
[18:32:14] rgb-one: adaedra: I am just wondering about syntax
[18:32:32] rgb-one: is hash_name.key the same as hash[:key]?
[18:33:01] rgb-one: adaedra: That will return the value assigned to the key
[18:35:40] rgb-one: Ox0dea: Yea, important thing to note.
[18:36:13] rgb-one: Ox0dea: So OpenStruct is similar to stucts in C right?
[18:36:52] rgb-one: adaedra: What does OpenStruct do?
[18:39:06] rgb-one: Ox0dea: So it allows for accessing a value in multiple ways?
[18:42:47] rgb-one: Ox0dea: It allows for writing to and reading from values in a hash. Being that you mentioned accessors, I figure that it allows for read write operations of values to the keys of a hash. Is that the case?
[18:43:23] rgb-one: reading from keys in a hash*
[18:44:17] rgb-one: adaedra: I see.
[18:48:29] rgb-one: https://gist.github.com/rgb-one/c11536c473442822edbe
[18:50:24] rgb-one: Im using OptionParser in this application. At the bottom I attempt to use the hash_name.key syntax however it doesn't work.
[18:50:47] rgb-one: I understand that I can't reference a value of a key that way
[18:51:07] rgb-one: And in order to use such a syntax, OpenStruct is required
[18:54:46] rgb-one: Alright, it has been updated
[19:28:26] rgb-one: Ping timeout: 244 seconds
[19:35:54] rgb-one: has joined #ruby
[19:55:50] rgb-one: Read error: Connection reset by peer

2015-10-25

[03:12:17] rgb-one: has joined #ruby
[03:51:21] rgb-one: Ping timeout: 244 seconds
[04:16:18] rgb-one: has joined #ruby
[04:44:43] rgb-one: Ping timeout: 265 seconds
[04:44:59] rgb-one: has joined #ruby
[05:06:03] rgb-one: Read error: Connection reset by peer

2015-10-22

[03:10:41] rgb-one: Ping timeout: 244 seconds
[03:18:04] rgb-one: has joined #ruby
[04:27:05] rgb-one: Anyone have a list of projects using optparse?
[04:39:02] rgb-one: Ox0dea: Clever :)
[04:40:01] rgb-one: Ox0dea: Good answer. It didn't cross my mind to do that.
[06:28:05] rgb-one: Read error: Connection reset by peer

2015-10-21

[04:43:09] rgb-one: Read error: Connection reset by peer
[19:58:21] rgb-one: has joined #ruby
[19:59:07] rgb-one: Ox0dea: Hey bro/sis, hows it going :)
[20:02:01] rgb-one: How do I reference a string entered as a parameter on the command line?
[20:05:05] rgb-one: What am I doing wrong here: abort_with_note("#{ARGV[1]} doesn't exist in this directory.")
[20:06:41] rgb-one: Ox0dea: abort_with_note will print to stderr if a note is passed to it as a parameter which it is in this case, however, that part of ARGV[1] part doesnt return anything.
[20:09:41] rgb-one: Ox0dea: Ah so its like bash in that respect.
[20:09:54] rgb-one: so $1 will be the first parameter.
[20:28:36] rgb-one: Ping timeout: 255 seconds
[20:47:48] rgb-one: has joined #ruby
[21:05:55] rgb-one: Ping timeout: 244 seconds
[21:06:07] rgb-one: has joined #ruby
[21:17:56] rgb-one: Alright, say I have an argument --output which outputs content to a file. Using optparse, how would I set the --output function to perform the task of writing to a file? The file could be named anything. Would I use the gets method to read the output filename entered by the user? eg. progname infile.txt -o outfile.txt.
[21:18:34] rgb-one: progname infile.txt --output outfile.txt*
[21:23:20] rgb-one: drbrain: option["--option"] right?
[21:26:26] rgb-one: drbrain: I think I understand. option[:output] = file would perform the task of registering the users input.
[21:29:28] rgb-one: drbrain: Interesting
[21:34:00] rgb-one: drbrain: That is a useful approach. I was thinking of doing the same for an upcoming project but didn't know how to.
[21:49:53] rgb-one: atr_accessor = setter right?
[21:50:41] rgb-one: attr_accessor is the same as attr_setter?
[21:50:49] rgb-one: attr_accessor is the same as attr_writer?*
[21:51:23] rgb-one: Radar: I see.
[22:24:49] rgb-one: With optparse, when i use the opts.version provided it doesn't display in the help message. I use `opts; exit` for the --help message.
[22:25:47] rgb-one: Is there any way to show the -v, --version message in the help output?

2015-10-20

[17:32:47] rgb-one: I have been using ARGV.shift to test if any arguments have been passed to the commandline. Any other approaches?