moss

Activity Graph

Page 1 of 1

2018-05-23

[00:31:12] moss: has left #ruby: ("WeeChat 2.1-dev")

2018-05-02

[15:43:58] moss: has joined #ruby
[15:44:44] moss: I'm using ruby to test if 2 files exist, and it is not working. I'm doing the following: if File.exists?(variable1) && File.exists?(variable2)
[15:44:58] moss: It is not working. I'm getting "no implicit conversion of nil into String"
[15:45:31] moss: both variables are set though
[15:45:35] moss: im looking right at it
[15:47:43] moss: darix: if i do that statement without the '&&' and test each variable individually, they both work
[15:48:24] moss: looking up what pry does now...
[15:53:38] moss: yeah - the problem is that this is in chef
[15:53:44] moss: i thought i was doing something incorrect w/ Ruby

2016-07-18

[17:06:22] moss: Ping timeout: 272 seconds
[17:20:33] moss: has joined #ruby

2016-07-02

[05:04:51] moss: *.net *.split
[13:10:58] moss: has joined #ruby

2016-06-25

[13:51:16] moss: Ping timeout: 258 seconds
[14:15:55] moss: has joined #ruby

2016-06-05

[10:53:34] moss: Ping timeout: 260 seconds
[11:03:53] moss: has joined #ruby

2016-05-26

[03:47:05] moss: Ping timeout: 260 seconds
[03:48:34] moss: has joined #ruby

2016-05-24

[00:20:00] moss: has joined #ruby

2016-05-23

[22:53:40] moss: *.net *.split

2016-05-21

[11:57:26] moss: awer: what's the output of : ruby-switch --list
[11:57:41] moss: or do you want to change it just for your user
[11:58:01] moss: give me output of ruby-switch --list
[11:58:37] moss: sudo apt-get install ruby-switch
[11:59:07] moss: you have rbenv ?
[11:59:34] moss: if 2.3.1 is still installed do: rbenv global 2.3.1-debian
[11:59:40] moss: err wait
[11:59:42] moss: rbenv versions
[11:59:45] moss: give me the output of that
[11:59:55] moss: that is clearly for ubuntu
[12:00:11] moss: so idk why the hell you did that
[12:00:17] moss: yeah... it is
[12:01:51] moss: i can't help you now, you've installed 2.3.1 using a guide for Trusty Tahr
[12:02:06] moss: undo whatever you did and follow a guide for debian jessie
[12:05:13] moss: awer: here is something https://www.linode.com/docs/websites/ror/ruby-on-rails-apache-debian-8
[12:06:08] moss: well you were following a rails guide so..
[12:06:30] moss: hence 'gorails.org'
[12:06:34] moss: err .com
[12:07:04] moss: wordpress..
[12:07:28] moss: detecting wordpress at all should throw flags
[12:07:38] moss: no one should run wordpress
[12:10:07] moss: sure, why not.
[12:10:39] moss: yeah thats source
[12:10:42] moss: you will have to compile it
[12:10:56] moss: like some sort of heathen
[12:24:45] moss: no worries
[12:25:27] moss: that scanner should detect wordpress installs and rm -rf them
[12:30:48] moss: drupal...
[12:30:55] moss: why did they name a cms after something that sounds like an std
[12:31:17] moss: 'i got drupal from this chick on friday'

2016-04-25

[18:16:02] moss: has joined #ruby
[18:39:24] moss: hi. i'm writing a puppet facter script to check if an interface is using dhcp or not. i want to exclude the loopback device but can't figure out how to do so. Here is what I've written so far: https://dpaste.de/8ysk
[19:04:58] moss: anyone??

2016-04-18

[11:08:05] moss: Quit: QUITTING

2016-04-01

[20:26:33] moss: how do I include a variable in a file that I need opened?
[20:26:50] moss: for instance: File.foreach('/etc/sysconfig/network-scripts/ifcfg-' + interface)

2016-03-31

[19:27:43] moss: has joined #ruby
[19:36:25] moss: hi. i'm trying to do the following and am having trouble getting started: find directory names located at /sys/class/net/* - for every directory name, get the value of /sys/class/net/{dirname}/operstate, if the value is up, check /etc/sysconfig/network-scripts/ifcfg-{dirname} for the string 'BOOTPROTO="dhcp"' - if it exists, return true.
[19:36:38] moss: If anyone's willing to help me get started with this, I'd appreciate it
[19:39:22] moss: Papierkorb: Thank you
[19:39:26] moss: I will look into this
[19:39:33] moss: This is all for puppet facter..
[19:41:05] moss: Papierkorb: won't Dir.glob return all the files in that folder?
[19:47:52] moss: Papierkorb: the problem is that I need ruby to find the names of the directories and edit files based on the name of the directory
[19:48:10] moss: so how do i include a variable in File.open?
[19:48:46] moss: or File.read
[19:51:13] moss: Papierkorb: yes, very
[19:51:16] moss: new to ruby, programming in general
[19:53:18] moss: Great :)

2016-03-28

[01:59:42] moss: Quit: QUITTING

2016-03-27

[09:14:05] moss: Ping timeout: 268 seconds
[11:59:33] moss: has joined #ruby

2016-03-10

[00:49:08] moss: Ping timeout: 248 seconds
[00:50:58] moss: has joined #ruby

2016-03-07

[14:38:28] moss: has joined #ruby
[14:38:28] moss: Changing host

2016-03-01

[19:25:45] moss: *.net *.split
[19:26:57] moss: has joined #ruby

2016-02-02

[01:34:10] moss: Quit: QUITTING
[01:35:08] moss: has joined #ruby

2016-02-01

[18:03:50] moss: Ping timeout: 260 seconds
[18:15:10] moss: has joined #ruby

2016-01-30

[19:04:47] moss: has joined #ruby

2016-01-25

[22:22:00] moss: Quit: brb
[23:36:17] moss: has joined #ruby

2015-12-21

[09:49:59] moss: *.net *.split
[09:57:49] moss: has joined #ruby

2015-12-12

2015-12-04

[06:23:29] moss: Ping timeout: 245 seconds
[06:24:40] moss: has joined #ruby

2015-12-02

[15:36:02] moss: *.net *.split
[16:28:46] moss: has joined #ruby

2015-11-29

[21:11:41] moss: *.net *.split
[21:29:44] moss: has joined #ruby
[22:18:10] moss: *.net *.split
[23:44:16] moss: has joined #ruby

2015-11-22

[19:37:11] moss: Quit: brb
[20:17:54] moss: has joined #ruby

2015-11-13

[02:37:01] moss: *.net *.split
[02:38:57] moss: has joined #ruby

2015-11-07

[04:01:58] moss: Read error: Connection reset by peer
[15:21:17] moss: has joined #ruby
[16:01:44] moss: Quit: kernel update
[17:02:30] moss: has joined #ruby

2015-11-01

[02:00:31] moss: Ping timeout: 268 seconds
[04:34:20] moss: has joined #ruby
[04:51:49] moss: Quit: QUITTING
[05:04:28] moss: has joined #ruby
[05:16:45] moss: Quit: QUITTING
[05:22:33] moss: has joined #ruby
[05:25:59] moss: Client Quit
[05:27:27] moss: has joined #ruby

2015-10-31

[16:41:06] moss: Ping timeout: 240 seconds
[16:55:32] moss: has joined #ruby

2015-10-26

[11:56:59] moss: Ping timeout: 240 seconds
[12:10:30] moss: has joined #ruby

2015-10-25

[16:52:56] moss: has left #RubyOnRails: ("Laters")
[17:55:55] moss: Ping timeout: 246 seconds
[18:46:03] moss: has joined #ruby

2015-10-22

[15:06:56] moss: *.net *.split
[15:39:12] moss: has joined #ruby
[15:39:26] moss: has joined #RubyOnRails

2015-10-16

[00:08:54] moss: has joined #ruby
[13:59:50] moss: I am thinking of switching my Rails server from Unicorn to Puma. Do I need to make any code changes to have this work properly or is it just a matter of deployment?
[14:02:15] moss: has joined #RubyOnRails
[14:02:19] moss: hello :)
[14:02:38] moss: I am thinking of switching my Rails server from Unicorn to Puma. Do I need to make any code changes to have this work properly or is it just a matter of deployment?
[14:03:37] moss: ddv: elaborate?
[14:08:36] moss: havenwood: i heard it uses less memory
[14:08:44] moss: havenwood: i thought perhaps our application would run faster
[14:09:52] moss: havenwood: okay awesome. thanks
[14:10:08] moss: havenwood: I would assume that no code changes are necessary but wanted to make sure - I guess that's the only way to find out?

2015-10-05

[01:08:01] moss: Quit: QUITTING
[11:43:33] moss: has joined #ruby

2015-10-02

[22:12:48] moss: Read error: Connection reset by peer

2015-09-28

[01:38:48] moss: Ping timeout: 250 seconds

2015-09-24

[01:42:34] moss: Read error: No route to host
[01:43:30] moss: has joined #ruby

2015-09-16

[00:35:59] moss: *.net *.split
[00:41:50] moss: has joined #ruby

2015-09-14

[02:01:33] moss: Read error: Connection reset by peer
[02:02:51] moss: has joined #ruby

2015-09-12

[13:45:22] moss: Read error: Connection reset by peer
[13:46:33] moss: has joined #ruby

2015-09-09

[22:48:17] moss: Ping timeout: 244 seconds
[23:03:49] moss: has joined #ruby

2015-09-07

[12:27:24] moss: Quit: brb
[12:56:23] moss: has joined #ruby

2015-08-29

[14:58:10] moss: has joined #ruby

2015-08-28

[21:54:36] moss: Read error: Connection reset by peer

2015-08-21

[04:17:47] moss: Read error: Connection reset by peer
[04:18:38] moss: has joined #ruby

2015-08-19

[11:05:59] moss: Read error: Connection reset by peer
[14:13:09] moss: has joined #ruby

2015-08-17

[01:58:26] moss: has joined #ruby

2015-08-13

[01:17:28] moss: Ping timeout: 246 seconds

2015-08-12

[15:00:03] moss: has joined #RubyOnRails
[15:10:57] moss: for some reason 'bundle install' is failing at json 1.5.3
[15:11:38] moss: http://dpaste.com/1SJSX98