apeiros_ changed the topic of #ruby-lang to: Ruby 2.2.0; 2.1.5; 2.0.0-p598; 1.9.3-p551: http://ruby-lang.org || Paste code on http://gist.github.com
enebo has quit [Quit: enebo]
tunaCanBruh has joined #ruby-lang
tunaCanBruh has quit [Ping timeout: 252 seconds]
_djbkd has quit [Remote host closed the connection]
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
ta_ has joined #ruby-lang
_djbkd has joined #ruby-lang
jds has quit [Quit: Connection closed for inactivity]
_djbkd has quit [Remote host closed the connection]
Aova has quit [Read error: Connection reset by peer]
ta_ has quit [Ping timeout: 252 seconds]
tcopeland has quit [Ping timeout: 250 seconds]
Aova has joined #ruby-lang
ta_ has joined #ruby-lang
kyb3r_ has joined #ruby-lang
yusuf_403 has joined #ruby-lang
yusuf_403 has quit [Max SendQ exceeded]
yusuf_403 has joined #ruby-lang
Thecrazylumberja has quit [Quit: Leaving]
workmad3 has quit [Ping timeout: 252 seconds]
sarkyniin has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 252 seconds]
Obfuscate has quit [Quit: Upgrade?]
wallerdev_ has joined #ruby-lang
sankaber has joined #ruby-lang
hhatch has quit [Read error: Connection reset by peer]
wallerdev_ has quit [Ping timeout: 250 seconds]
hhatch has joined #ruby-lang
Obfuscate has joined #ruby-lang
_djbkd has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
Musashi007 has joined #ruby-lang
pipework is now known as |work
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RobertBirnie has quit [Ping timeout: 245 seconds]
ta_ has joined #ruby-lang
_djbkd has quit [Remote host closed the connection]
tunaCanBruh has joined #ruby-lang
_djbkd has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
j4cknewt has quit [Remote host closed the connection]
jess has joined #ruby-lang
jess is now known as Guest24881
tunaCanBruh has quit [Ping timeout: 265 seconds]
<Guest24881> Hi, I am a beginner in ruby and im having trouble with assignment of instance and class variables
chadwtaylor has quit [Remote host closed the connection]
<weaksauce> Guest24881 what's happening?
<Guest24881> I'm making a NIM game for a school assignment. When I choose a specific board configuration, another method of the same class takes the instance variable for the game board and sets it to one of the two class variables that are board configurations.
<weaksauce> can you gist what you are doing right now?
ta_ has quit [Ping timeout: 245 seconds]
j4cknewt has joined #ruby-lang
<weaksauce> and gist the stacktrace of the error
<Guest24881> sure
<Guest24881> one sec
<Guest24881> no error
<Guest24881> in my loadGameAssets method you'll see the place I am talking about
<Guest24881> when I loop through gameBoard's wordstrings to display them in playerMove, it's empty
<Guest24881> but I expect it to be one of the two board configs that are class vars
_djbkd has quit [Quit: My people need me...]
Aova has quit [Read error: Connection reset by peer]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<weaksauce> @boardConfig is nil
<weaksauce> you need to set that up somehow
<Guest24881> but i am calling startGame first
<Guest24881> so it should be initialized by the boardconfig = gets.chomp... line right?
<weaksauce> also, ruby doesn't use camelcase it uses snake case.
Musashi007 has quit [Quit: Musashi007]
<Guest24881> how does my gets line in startGame not set boardconfig to something other than nil
<weaksauce> try self.boardConfig instead
diegoviola has joined #ruby-lang
<Guest24881> now it's barking at me for not defining boardconfig=
<weaksauce> but getters and setters are usually done as attr_accessors
Pugsley_ has quit [Quit: Lingo: www.lingoirc.com]
<weaksauce> before it was defining boardConfig as a local variable and now it's trying to actually assign it to the class variable but you have no setter
<Guest24881> so when I want to set class vars or class instance vars I should always use self?
<Guest24881> and it will work as I need it to?
<weaksauce> you can either define a method to set that or use attr_accessor :boardConfig in your class
Aova has joined #ruby-lang
symm- has quit [Ping timeout: 256 seconds]
Antivan has joined #ruby-lang
<Guest24881> so attr_accessor is basically what I should be using
<Guest24881> and then I need no setters or getters
<weaksauce> unless you are doing something else with the getters and setters yes
trollface has quit [Ping timeout: 245 seconds]
<weaksauce> like validation or what have you. but for just having a variable be exposed to outside use use attr_accessor
marr has quit [Ping timeout: 252 seconds]
<weaksauce> you should only use getters and setters if you need to access instance variables outside the class though
<weaksauce> for most of your code you should use @whatever instead
Paradox has joined #ruby-lang
<Guest24881> okay.
<Guest24881> i feel like there is just something I am not understanding about ruby
<Guest24881> and it's probably to do with not working with it enough
<Guest24881> but coming from c++ it's just weird at times
<Guest24881> I had no problems using regex to solve a real problem
<Guest24881> now making this game is a nightmare
<Guest24881> I appreciate your help, I think it helps me a bit
<weaksauce> cool. ruby is not c++ is the thing. to be good at ruby you need to unlearn some things that c++ made you do
lytol has quit [Remote host closed the connection]
<Guest24881> well I come from a bit of c and java too
<weaksauce> java is the worst for required boilerplate
<Guest24881> it's just that the structure is different and i need to learn it intuitively
<Guest24881> whatever, im about ready to drop this course because I feel so behind
<weaksauce> :(
<Guest24881> well if it weren't for computing elements mobile app development and cryptography too
tunaCanBruh has joined #ruby-lang
nathanstitt has joined #ruby-lang
havenwood has joined #ruby-lang
riotjones has joined #ruby-lang
tunaCanBruh has quit [Ping timeout: 264 seconds]
Paradox has quit [Ping timeout: 245 seconds]
jacecore has quit [Quit: Leaving]
Paradox has joined #ruby-lang
riotjones has quit [Ping timeout: 265 seconds]
Guest24881 has quit [Quit: Leaving]
dzejrou_ has quit [Ping timeout: 240 seconds]
ta_ has joined #ruby-lang
yellowgh0st has quit [Quit: yellowgh0st]
havenwood has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 252 seconds]
yellowgh0st has joined #ruby-lang
duderonomy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ta_ has joined #ruby-lang
sankaber has joined #ruby-lang
ruby-lang754 has joined #ruby-lang
duderonomy has joined #ruby-lang
<ruby-lang754> Hi - I'm a beginner RoR developer and was hoping if someone could answer (I believe) a pretty easy question I just can't seem to get to the bottom of
duderonomy has quit [Client Quit]
ta_ has quit [Ping timeout: 252 seconds]
<yatish27> ruby-lang754: What is teh question
duderonomy has joined #ruby-lang
<ruby-lang754> I'm trying to replicate https://github.com/jcs/lobsters
<ruby-lang754> it has a script that automatically posts to twitter when a user "submits a story"
<ruby-lang754> I can't seem to find what kicks off the script
<ruby-lang754> the website is like reddit or any other link aggregrator sites
<ruby-lang754> I'm trying to replicate it for a different genre
ggherdov has quit [Ping timeout: 245 seconds]
mjc_ has quit [Ping timeout: 276 seconds]
mostlybadfly has quit [Ping timeout: 245 seconds]
shennyg has quit [Ping timeout: 272 seconds]
moogumbo_ has quit [Read error: Connection reset by peer]
ja_robol has quit [Ping timeout: 265 seconds]
dlackty__ has quit [Ping timeout: 265 seconds]
<ruby-lang754> I wasn't able to find anything in the rails controllers, that mentioned anything in this script (https://github.com/jcs/lobsters/blob/master/script/post_to_twitter) or in extras (https://github.com/jcs/lobsters/blob/master/extras/twitter.rb)
<ruby-lang754> yatish27: thanks for whatever help you can provide
<bnagy> there's also #rubyonrails
<ruby-lang754> thanks, will ask there as well... tried to logon earlier and was given issues getting access... but will try again
<ruby-lang754> are you familiar with rails? am I wrong to assume some controller should be calling this script?
<ledestin> ruby-lang754: it looks like the script should be run from cron
ItSANgo has quit [Quit: Leaving...]
yellowgh0st has quit [Quit: yellowgh0st]
<ruby-lang754> so being called externally every x minutes or something... not necessarily when someone submits a story
<ruby-lang754> what tells you its cron?
Aova has quit [Read error: Connection reset by peer]
<ledestin> doesn’t matter if it’s cron
<ledestin> beware of races though
postmodern has quit [Quit: Leaving]
<ledestin> like when first instance of script hasn’t finished working, and the second is up
<ruby-lang754> okay
<ruby-lang754> I can only hope people are submitting multiple in miliseconds
<ruby-lang754> thanks, but I still am having trouble understanding what tells this script to run... I can't get it running on my version and am troubleshooting
ta_ has joined #ruby-lang
Aova has joined #ruby-lang
yatish27_ has joined #ruby-lang
yatish27 has quit [Ping timeout: 245 seconds]
ta_ has quit [Ping timeout: 252 seconds]
amclain has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
wallerdev_ has joined #ruby-lang
crdpink2 has joined #ruby-lang
crdpink has quit [Ping timeout: 245 seconds]
Antivan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta_ has joined #ruby-lang
ItSANgo has joined #ruby-lang
wallerdev_ has quit [Ping timeout: 245 seconds]
wallerdev has quit [Quit: wallerdev]
j4cknewt has joined #ruby-lang
ruby-lang754 has quit [Ping timeout: 246 seconds]
ta_ has quit [Ping timeout: 252 seconds]
simi has joined #ruby-lang
ta_ has joined #ruby-lang
simi has quit [Ping timeout: 256 seconds]
dlackty__ has joined #ruby-lang
shinnya has quit [Ping timeout: 264 seconds]
shennyg has joined #ruby-lang
ta_ has quit [Ping timeout: 252 seconds]
shinnya has joined #ruby-lang
rahul_j has joined #ruby-lang
b_hoffman has joined #ruby-lang
ta_ has joined #ruby-lang
mostlybadfly has joined #ruby-lang
yusuf_403 has quit [Quit: Leaving.]
RobertBirnie has joined #ruby-lang
Lewix has joined #ruby-lang
Lewix has joined #ruby-lang
wallerdev has joined #ruby-lang
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ggherdov has joined #ruby-lang
Aova has quit [Read error: Connection reset by peer]
j4cknewt has quit [Remote host closed the connection]
wallerdev has quit [Ping timeout: 264 seconds]
houhoulis has joined #ruby-lang
tunaCanBruh has joined #ruby-lang
wprice has quit [Quit: wprice]
Aova has joined #ruby-lang
yatish27_ has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 252 seconds]
tunaCanBruh has quit [Ping timeout: 255 seconds]
slawrenc_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mjc_ has joined #ruby-lang
Antivan has joined #ruby-lang
ta_ has joined #ruby-lang
fvt has quit [Ping timeout: 244 seconds]
wallerdev has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 252 seconds]
Lewix has quit []
moogumbo_ has joined #ruby-lang
yatish27 has joined #ruby-lang
yfeldblum has joined #ruby-lang
skade has joined #ruby-lang
ta_ has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
ta_ has quit [Ping timeout: 252 seconds]
wallerdev has joined #ruby-lang
ocdmw has joined #ruby-lang
Musashi007 has joined #ruby-lang
vozcelik has joined #ruby-lang
_djbkd has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
ta_ has joined #ruby-lang
oleo__ has joined #ruby-lang
oleo is now known as Guest72520
Musashi007 has quit [Quit: Musashi007]
tkuchiki has joined #ruby-lang
Aova has quit [Read error: Connection reset by peer]
Guest72520 has quit [Ping timeout: 265 seconds]
j4cknewt has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
jo__ has quit [Quit: Connection closed for inactivity]
Aova has joined #ruby-lang
j4cknewt has quit [Ping timeout: 244 seconds]
rahul_j has joined #ruby-lang
vozcelik has quit [Ping timeout: 265 seconds]
ja_robol has joined #ruby-lang
jo__ has joined #ruby-lang
b_hoffman has quit [Quit: b_hoffman]
tkuchiki has quit [Ping timeout: 264 seconds]
b_hoffman has joined #ruby-lang
ta_ has quit [Ping timeout: 252 seconds]
morton has joined #ruby-lang
tunaCanBruh has joined #ruby-lang
<morton> how to write an OS in ruby
slawrence00 has joined #ruby-lang
Antivan has quit [Ping timeout: 245 seconds]
ta_ has joined #ruby-lang
morton has quit [Client Quit]
Lewix has joined #ruby-lang
tunaCanBruh has quit [Ping timeout: 255 seconds]
fvt has joined #ruby-lang
Musashi007 has joined #ruby-lang
wallerdev_ has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
wallerdev_ has quit [Ping timeout: 245 seconds]
Musashi007 has quit [Quit: Musashi007]
rahul_j has quit [Quit: rahul_j]
Musashi007 has joined #ruby-lang
Antivan has joined #ruby-lang
[H]unt3r has joined #ruby-lang
ta_ has quit [Ping timeout: 252 seconds]
gix has quit [Ping timeout: 264 seconds]
[H]unt3r has quit [Client Quit]
gix has joined #ruby-lang
rahul_j has joined #ruby-lang
iliketurtles has joined #ruby-lang
ta_ has joined #ruby-lang
mattyohe has quit [Quit: Connection closed for inactivity]
Blackhole has joined #ruby-lang
b_hoffman has quit [Quit: b_hoffman]
ta_ has quit [Ping timeout: 252 seconds]
Lewix has quit [Remote host closed the connection]
Vivex has joined #ruby-lang
BubonicPestile-1 has quit [Quit: BubonicPestile-1]
Vivex_ has quit [Ping timeout: 245 seconds]
slawrence00 has quit [Quit: Textual IRC Client: www.textualapp.com]
Lewix has joined #ruby-lang
pabloh has quit [Quit: Saliendo]
Forgetful_Lion has quit [Remote host closed the connection]
riotjones has joined #ruby-lang
Aova has quit [Read error: Connection reset by peer]
Sadin has joined #ruby-lang
slawrence00 has joined #ruby-lang
Miphix has quit [Quit: Leaving]
riotjones has quit [Ping timeout: 245 seconds]
zach has quit [Quit: Leaving]
Aova has joined #ruby-lang
b_hoffman has joined #ruby-lang
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
tkuchiki has joined #ruby-lang
djellemah has joined #ruby-lang
djinni` has joined #ruby-lang
mattyohe has joined #ruby-lang
tkuchiki has quit [Ping timeout: 245 seconds]
ta_ has joined #ruby-lang
fedexo has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
icharlie has joined #ruby-lang
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ta_ has quit [Ping timeout: 252 seconds]
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
RobertBirnie has joined #ruby-lang
kyb3r_ has quit [Read error: Connection reset by peer]
slawrence00 has quit [Quit: Textual IRC Client: www.textualapp.com]
slawrence00 has joined #ruby-lang
ta_ has joined #ruby-lang
yusuf_403 has joined #ruby-lang
yusuf_403 has quit [Max SendQ exceeded]
yusuf_403 has joined #ruby-lang
wallerdev_ has joined #ruby-lang
ta_ has quit [Ping timeout: 252 seconds]
cored has joined #ruby-lang
_djbkd has quit [Remote host closed the connection]
wallerdev_ has quit [Ping timeout: 264 seconds]
kapil__ has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
Aova has quit [Read error: Connection reset by peer]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rahul_j has joined #ruby-lang
Aova has joined #ruby-lang
ta_ has joined #ruby-lang
chompythegoat_ has joined #ruby-lang
|work has quit [Ping timeout: 276 seconds]
Sadin has quit [Remote host closed the connection]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pipework has joined #ruby-lang
pipework has joined #ruby-lang
tunaCanBruh has joined #ruby-lang
diegoviola has quit [Quit: WeeChat 1.1.1]
Sadin has joined #ruby-lang
Sadin has quit [Remote host closed the connection]
Vivex_ has joined #ruby-lang
pipework has quit [Ping timeout: 244 seconds]
tunaCanBruh has quit [Ping timeout: 264 seconds]
Vivex has quit [Ping timeout: 252 seconds]
pipework has joined #ruby-lang
pipework has joined #ruby-lang
ta_ has quit [Ping timeout: 265 seconds]
riotjones has joined #ruby-lang
yusuf_403 has quit [Quit: Leaving.]
riotjones has quit [Ping timeout: 250 seconds]
pipework has quit [Ping timeout: 250 seconds]
houhoulis has quit [Ping timeout: 245 seconds]
ta_ has joined #ruby-lang
pipework has joined #ruby-lang
pipework has quit [Changing host]
pipework has joined #ruby-lang
rippa has joined #ruby-lang
fedexo has quit [Ping timeout: 245 seconds]
ta_ has quit [Ping timeout: 252 seconds]
pipework has quit [Ping timeout: 245 seconds]
diegoviola has joined #ruby-lang
maso has joined #ruby-lang
simi has joined #ruby-lang
b_hoffman has quit [Quit: b_hoffman]
rahul_j has quit [Quit: rahul_j]
houhoulis has joined #ruby-lang
chompythegoat_ has quit [Ping timeout: 246 seconds]
duderonomy has joined #ruby-lang
Vivex_ has quit [Ping timeout: 255 seconds]
jxie has quit [Quit: leaving]
ta_ has joined #ruby-lang
jxie_ has joined #ruby-lang
mostlybadfly has quit [Quit: Connection closed for inactivity]
jxie_ has quit [Client Quit]
jxie_ has joined #ruby-lang
jxie_ has quit [Client Quit]
Aova has quit [Read error: Connection reset by peer]
ta_ has quit [Ping timeout: 252 seconds]
Aova has joined #ruby-lang
dellavg_ has joined #ruby-lang
cored has quit [Ping timeout: 245 seconds]
icharlie has quit [Remote host closed the connection]
mattyohe has quit [Quit: Connection closed for inactivity]
yatish27 has quit [Remote host closed the connection]
morton has joined #ruby-lang
<morton> rubinius and mri both have ~65% ruby in github, the rest is c++ or c respectively, whats the difference then?
j4cknewt has joined #ruby-lang
jo__ has quit [Quit: Connection closed for inactivity]
morton has quit [Quit: Page closed]
|jemc| has joined #ruby-lang
j4cknewt has quit [Ping timeout: 244 seconds]
simi has quit [Ping timeout: 245 seconds]
ta_ has joined #ruby-lang
Newbie0086 has joined #ruby-lang
aleshgo has joined #ruby-lang
tunaCanBruh has joined #ruby-lang
ta_ has quit [Ping timeout: 252 seconds]
Aova has quit [Read error: Connection reset by peer]
|jemc| has quit [Quit: WeeChat 1.0.1]
tunaCanBruh has quit [Ping timeout: 252 seconds]
ta_ has joined #ruby-lang
riotjones has joined #ruby-lang
Aova has joined #ruby-lang
ta_ has quit [Ping timeout: 246 seconds]
djellemah has quit [Ping timeout: 246 seconds]
riotjones has quit [Ping timeout: 264 seconds]
fusillicode has joined #ruby-lang
fusillicode1 has quit [Ping timeout: 245 seconds]
fusillicode1 has joined #ruby-lang
fusillicode has quit [Ping timeout: 246 seconds]
ta_ has joined #ruby-lang
maso has quit [Remote host closed the connection]
iliketurtles has quit [Remote host closed the connection]
mkaesz has joined #ruby-lang
ta_ has quit [Ping timeout: 252 seconds]
mkaesz has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Remote host closed the connection]
enkristoffer has quit [Ping timeout: 245 seconds]
enkristoffer has joined #ruby-lang
iliketurtles has joined #ruby-lang
marr has joined #ruby-lang
wallerdev_ has joined #ruby-lang
cornerma1 has joined #ruby-lang
ta_ has joined #ruby-lang
cornerman has quit [Ping timeout: 252 seconds]
cornerma1 is now known as cornerman
wallerdev_ has quit [Ping timeout: 245 seconds]
Aova has quit [Read error: Connection reset by peer]
Aova has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
hahuang65 has joined #ruby-lang
ta_ has quit [Ping timeout: 252 seconds]
ta_ has joined #ruby-lang
_shinnc has joined #ruby-lang
_shinnc has left #ruby-lang [#ruby-lang]
djellemah has joined #ruby-lang
apeiros_ has joined #ruby-lang
amclain has quit [Quit: Leaving]
Newbie0086 has quit [Quit: 离开]
<maloik> Is there a concise way to turn [1, 2, 3] into {a: 1, b: 2, c: 3} ? As in, given a list of keys, let each key have a value of the next element in the array
gwendall has joined #ruby-lang
ta_ has quit [Ping timeout: 246 seconds]
mkaesz has joined #ruby-lang
aleshgo has quit [Quit: WeeChat 0.4.2]
<apeiros_> maloik: I don't understand in your explanation from where :a, :b, :c comes
<apeiros_> maloik: do you have two arrays? keys and values?
GBrawl has joined #ruby-lang
Bwild has quit [Quit: leaving]
GBrawl has quit [Client Quit]
mkaesz has quit [Ping timeout: 265 seconds]
Musashi007 has joined #ruby-lang
ta_ has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
tunaCanBruh has joined #ruby-lang
Miphix has joined #ruby-lang
<maloik> apeiros_: yep exactly
<maloik> I guess I could use each with index to collect them, using the index to assign the correct key and value
mikecmpbll has joined #ruby-lang
<apeiros_> maloik: keys.zip(values).to_h
tunaCanBruh has quit [Ping timeout: 244 seconds]
rahul_j has joined #ruby-lang
<maloik> oooooh
<maloik> fancy :)
sarkyniin has joined #ruby-lang
ta_ has quit [Ping timeout: 245 seconds]
postmodern has joined #ruby-lang
charliesome has joined #ruby-lang
Aova has quit [Read error: Connection reset by peer]
Aova has joined #ruby-lang
yellowgh0st has joined #ruby-lang
marcdel has joined #ruby-lang
arBmind1 has quit [Quit: Leaving.]
charliesome has quit [Read error: Connection reset by peer]
diegoviola has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
marcdel has quit [Ping timeout: 245 seconds]
ta_ has joined #ruby-lang
charliesome_ has joined #ruby-lang
charliesome has quit [Read error: Connection reset by peer]
stamina has joined #ruby-lang
ta_ has quit [Ping timeout: 252 seconds]
Musashi007 has quit [Quit: Musashi007]
yfeldblum has joined #ruby-lang
skade has joined #ruby-lang
j4cknewt has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
ocdmw has quit [Remote host closed the connection]
arBmind has joined #ruby-lang
rahul_j has joined #ruby-lang
j4cknewt has quit [Ping timeout: 245 seconds]
skade has quit [Ping timeout: 240 seconds]
djellemah has quit [Ping timeout: 264 seconds]
yfeldblu_ has joined #ruby-lang
benlovell has joined #ruby-lang
yfeldblum has quit [Ping timeout: 252 seconds]
rahul_j has quit [Quit: rahul_j]
rahul_j has joined #ruby-lang
banister has joined #ruby-lang
ta_ has joined #ruby-lang
benlovell has quit [Ping timeout: 250 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
yellowgh0st has quit [Quit: yellowgh0st]
Musashi007 has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arBmind1 has joined #ruby-lang
arBmind has quit [Ping timeout: 245 seconds]
yellowgh0st has joined #ruby-lang
Aova has quit [Read error: Connection reset by peer]
Aova has joined #ruby-lang
ta_ has quit [Ping timeout: 252 seconds]
yellowgh0st has quit [Quit: yellowgh0st]
oleo__ has quit [Quit: Verlassend]
iamninja has quit [Remote host closed the connection]
iamninja has joined #ruby-lang
mattwildig has joined #ruby-lang
kadwill has joined #ruby-lang
mattwildig has quit [Client Quit]
djellemah has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
yellowgh0st has joined #ruby-lang
yellowgh0st has quit [Client Quit]
charliesome_ has quit [Quit: zzz]
rbowlby has quit [Remote host closed the connection]
ta_ has joined #ruby-lang
ocdmw has joined #ruby-lang
stef204 has joined #ruby-lang
ocdmw has quit [Remote host closed the connection]
tunaCanBruh has joined #ruby-lang
benlovell has joined #ruby-lang
tunaCanBruh has quit [Ping timeout: 252 seconds]
symm- has joined #ruby-lang
ta_ has quit [Ping timeout: 252 seconds]
aef has quit [Remote host closed the connection]
houhoulis has quit [Remote host closed the connection]
aef has joined #ruby-lang
mikecmpbll has joined #ruby-lang
Musashi007 has joined #ruby-lang
SHyx0rmZ has joined #ruby-lang
wallerdev has joined #ruby-lang
benlovell has quit [Quit: Lost terminal]
Aova has quit [Read error: Connection reset by peer]
rahul_j has quit [Quit: rahul_j]
ta_ has joined #ruby-lang
houhoulis has joined #ruby-lang
wallerdev has quit [Ping timeout: 246 seconds]
enkristoffer has quit [Ping timeout: 265 seconds]
Aova has joined #ruby-lang
enkristoffer has joined #ruby-lang
mikecmpbll has quit [Quit: i've nodded off.]
AlexAltea has joined #ruby-lang
oleo has joined #ruby-lang
oleo has joined #ruby-lang
<maloik> how would you split one array into several based on a predicate? for example, given [1, 2, 4, 5, 6, 7, 9, 11, 12] I'd want to split it up when the jump from one element to the next is more than 1
<maloik> (I'm coming up with the worst examples aren't I)
<maloik> outcome would be [[1,2], [4,5,6,7], [9], [11,12]] here
apt-get_ has joined #ruby-lang
ConstantineXVI has quit [Quit: Disconnected]
<ledestin> maloik: I just recently read about some new spliting methods in 2.2 or something
rikkipitt has joined #ruby-lang
<maloik> I'm not sure yet if this will be run on 2.2 so I prefer not to use anything new
<ledestin> Enumerable#slice_when
<ledestin> that’s really cool
sarkyniin has quit [Ping timeout: 245 seconds]
Thylacinelol has joined #ruby-lang
chinmay_dd has joined #ruby-lang
yfeldblu_ has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 252 seconds]
kadwill has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
rbowlby has joined #ruby-lang
stamina has quit [Quit: WeeChat 1.1.1]
yellowgh0st has joined #ruby-lang
j4cknewt has joined #ruby-lang
rbowlby has quit [Ping timeout: 245 seconds]
SpenQ has joined #ruby-lang
ocdmw has joined #ruby-lang
<maloik> any other ideas?
rahul_j has joined #ruby-lang
ocdmw has quit [Ping timeout: 244 seconds]
Vivex has joined #ruby-lang
yellowgh0st has quit [Quit: yellowgh0st]
<apeiros_> maloik: each_cons
rahul_j has quit [Ping timeout: 250 seconds]
houhoulis has quit [Remote host closed the connection]
rahul_j has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
ta_ has joined #ruby-lang
gwendall_ has joined #ruby-lang
Aova has quit [Read error: Connection reset by peer]
gwendall has quit [Ping timeout: 252 seconds]
ta_ has quit [Ping timeout: 252 seconds]
symm- has quit [Ping timeout: 244 seconds]
rahul_j has quit [Quit: rahul_j]
Aova has joined #ruby-lang
<maloik> sweet, getting somewhere
arBmind1 has quit [Quit: Leaving.]
ta_ has joined #ruby-lang
hramrach_ has joined #ruby-lang
hramrach has quit [Remote host closed the connection]
AlexAltea has quit [Quit: Leaving]
ta_ has quit [Ping timeout: 252 seconds]
hahuang61 has quit [Ping timeout: 252 seconds]
kadwill has joined #ruby-lang
gwendall_ has quit [Remote host closed the connection]
gwendall has joined #ruby-lang
hahuang61 has joined #ruby-lang
tunaCanBruh has joined #ruby-lang
ta_ has joined #ruby-lang
mostlybadfly has joined #ruby-lang
gwendall has quit [Ping timeout: 252 seconds]
tunaCanBruh has quit [Ping timeout: 252 seconds]
twe4ked has quit [Ping timeout: 245 seconds]
ta_ has quit [Ping timeout: 252 seconds]
ocdmw has joined #ruby-lang
twe4ked has joined #ruby-lang
ocdmw has quit [Remote host closed the connection]
chadwtaylor has joined #ruby-lang
twe4ked has quit [Ping timeout: 245 seconds]
yatish27 has joined #ruby-lang
ta_ has joined #ruby-lang
_dabradley has quit [Quit: WeeChat 0.4.2]
b_hoffman has joined #ruby-lang
cored has joined #ruby-lang
fedexo has joined #ruby-lang
ta_ has quit [Ping timeout: 264 seconds]
dabradley has joined #ruby-lang
Aova has quit [Read error: Connection reset by peer]
fedexo has quit [Read error: Connection reset by peer]
fedexo has joined #ruby-lang
mistym has quit [Ping timeout: 245 seconds]
Aova has joined #ruby-lang
aef has quit [Remote host closed the connection]
aef has joined #ruby-lang
mistym has joined #ruby-lang
twe4ked has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
ta_ has joined #ruby-lang
rahul_j has joined #ruby-lang
arBmind has joined #ruby-lang
jo__ has joined #ruby-lang
Vivex has quit [Read error: Connection reset by peer]
enebo has joined #ruby-lang
yatish27 has joined #ruby-lang
ta_ has quit [Ping timeout: 252 seconds]
SpenQ has quit [*.net *.split]
jefus has quit [*.net *.split]
ryotarai has quit [*.net *.split]
jdecuirm has quit [*.net *.split]
crazysim has quit [*.net *.split]
nisstyre has quit [*.net *.split]
Steve_Jobs has quit [*.net *.split]
justinmcp_ has quit [*.net *.split]
sideshowcoder has quit [*.net *.split]
LBo has quit [*.net *.split]
wmoxam has quit [*.net *.split]
mahlon has quit [*.net *.split]
michael_mbp has quit [*.net *.split]
hplar_ has quit [*.net *.split]
akkad has quit [*.net *.split]
yeltzooo has quit [*.net *.split]
billy_ran_away has quit [*.net *.split]
lea has quit [*.net *.split]
wmoxam has joined #ruby-lang
billy_ran_away has joined #ruby-lang
jefus has joined #ruby-lang
jdecuirm has joined #ruby-lang
Steve_Jobs has joined #ruby-lang
hplar_ has joined #ruby-lang
crazysim has joined #ruby-lang
yeltzooo has joined #ruby-lang
justinmcp has joined #ruby-lang
mahlon has joined #ruby-lang
SpenQ has joined #ruby-lang
lea has joined #ruby-lang
nisstyre has joined #ruby-lang
stef204 has quit [Ping timeout: 252 seconds]
ryotarai has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
michael_mbp has joined #ruby-lang
LBo has joined #ruby-lang
sideshowcoder has joined #ruby-lang
tunaCanBruh has joined #ruby-lang
mkaesz has joined #ruby-lang
Vivex has joined #ruby-lang
akkad has joined #ruby-lang
tunaCanBruh has quit [Ping timeout: 245 seconds]
ta_ has joined #ruby-lang
gwendall has joined #ruby-lang
ta_ has quit [Ping timeout: 265 seconds]
sankaber has joined #ruby-lang
gwendall has quit [Ping timeout: 252 seconds]
Aova has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby-lang
lapide_viridi has joined #ruby-lang
Aova has joined #ruby-lang
wallerdev has quit [Ping timeout: 252 seconds]
imperator has joined #ruby-lang
b_hoffman has quit [Quit: b_hoffman]
ledestin has quit [Quit: ledestin]
cored has quit [Ping timeout: 245 seconds]
chadwtaylor has quit [Remote host closed the connection]
djellemah has quit [Ping timeout: 252 seconds]
b_hoffman has joined #ruby-lang
b_hoffman has quit [Client Quit]
yfeldblum has joined #ruby-lang
kapil__ has quit [Quit: Connection closed for inactivity]
chadwtaylor has joined #ruby-lang
ta_ has joined #ruby-lang
riotjones has joined #ruby-lang
yellowgh0st has joined #ruby-lang
yfeldblum has quit [Ping timeout: 255 seconds]
cored has joined #ruby-lang
cored has joined #ruby-lang
havenwood has joined #ruby-lang
ocdmw has joined #ruby-lang
riotjones has quit [Ping timeout: 252 seconds]
djinni` has quit [Quit: Leaving]
SpenQ has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 252 seconds]
djinni` has joined #ruby-lang
ocdmw has quit [Remote host closed the connection]
ocdmw has joined #ruby-lang
djinni` has quit [Ping timeout: 245 seconds]
ocdmw has quit [Remote host closed the connection]
symm- has joined #ruby-lang
Antivan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 245 seconds]
Pugsley_ has joined #ruby-lang
ta_ has joined #ruby-lang
yellowgh0st_ has joined #ruby-lang
yellowgh0st has quit [Ping timeout: 240 seconds]
iamninja has quit [Remote host closed the connection]
mattyohe has joined #ruby-lang
simi has joined #ruby-lang
iamninja has joined #ruby-lang
marcdel has joined #ruby-lang
tunaCanBruh has joined #ruby-lang
iamninja has joined #ruby-lang
simi has quit [Ping timeout: 256 seconds]
Aova has quit [Read error: Connection reset by peer]
tunaCanBruh has quit [Ping timeout: 256 seconds]
ta_ has quit [Ping timeout: 245 seconds]
<lapide_viridi> I've got a few raspberries hooked up as server, but sometimes, one seems to crash. Is it possible to use ruby from another pi, which pings the other servers and then sends a mail if one or several don't respond?
iamninja has quit [Quit: ZZZzzz…]
Aova has joined #ruby-lang
kadwill has quit [Remote host closed the connection]
ta_ has joined #ruby-lang
yatish27 has joined #ruby-lang
gwendall has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
hinbody_ is now known as hinbody
djinni` has joined #ruby-lang
imperator has quit [Quit: Leaving]
<darix> lapide_viridi: sensu, icinga
<darix> come to mind
ta_ has quit [Ping timeout: 252 seconds]
<lapide_viridi> Those check if the servers are on? I just have to ping them.
gwendall has quit [Ping timeout: 252 seconds]
<darix> lapide_viridi: ping check is one of the basic checks they support yes
rahul_j has quit [Quit: rahul_j]
<lapide_viridi> Oh, I just wanted to know if I could ping with ruby, and then use to to send a mail.
<lapide_viridi> Not sure what those are, to be frank. Libraries or stand alone programs?
<darix> standalone
cored has quit [Ping timeout: 245 seconds]
j4cknewt has joined #ruby-lang
rahul_j has joined #ruby-lang
<lapide_viridi> Looks cool, but I wanted to make it ping at send a mail if it is unsuccessful. For Ruby practice and DIY.
chinmay_dd has quit [Quit: Connection closed for inactivity]
RobertBirnie has joined #ruby-lang
yellowgh0st_ has quit [Quit: yellowgh0st_]
fedexo has quit [Ping timeout: 250 seconds]
thebastl has joined #ruby-lang
chadwtaylor has quit [Remote host closed the connection]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ta_ has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
dzejrou has joined #ruby-lang
ocdmw has joined #ruby-lang
ta_ has quit [Ping timeout: 252 seconds]
stef204 has joined #ruby-lang
ta_ has joined #ruby-lang
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
j4cknewt has quit [Read error: Connection reset by peer]
ta_ has quit [Ping timeout: 250 seconds]
j4cknewt has joined #ruby-lang
slawrence00 has joined #ruby-lang
ocdmw has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
mkaesz has quit [Remote host closed the connection]
p3ery has joined #ruby-lang
tunaCanBruh has joined #ruby-lang
oleo is now known as Guest90722
oleo__ has joined #ruby-lang
p3ery_ has joined #ruby-lang
Aova has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby-lang
Guest90722 has quit [Ping timeout: 246 seconds]
p3ery has quit [Ping timeout: 245 seconds]
tunaCanBruh has quit [Ping timeout: 250 seconds]
gwendall has joined #ruby-lang
gwendall has quit [Remote host closed the connection]
gwendall has joined #ruby-lang
gix has quit [Ping timeout: 250 seconds]
j4cknewt has quit [Ping timeout: 264 seconds]
wallerdev_ has joined #ruby-lang
Aova has joined #ruby-lang
stamina has joined #ruby-lang
marr has quit []
yfeldblum has joined #ruby-lang
wallerdev_ has quit [Ping timeout: 245 seconds]
gix has joined #ruby-lang
yellowgh0st has joined #ruby-lang
marr has joined #ruby-lang
yfeldblum has quit [Ping timeout: 264 seconds]
j4cknewt has joined #ruby-lang
ta_ has joined #ruby-lang
icharlie has joined #ruby-lang
ocdmw has joined #ruby-lang
j4cknewt has quit [Read error: Connection reset by peer]
icharlie has quit [Ping timeout: 245 seconds]
ta_ has quit [Ping timeout: 252 seconds]
mcclurmc has quit [Remote host closed the connection]
mcclurmc has joined #ruby-lang
Lewix has joined #ruby-lang
mcclurmc has quit [Remote host closed the connection]
yatish27 has joined #ruby-lang
arooni-mobile has joined #ruby-lang
mostlybadfly has quit [Quit: Connection closed for inactivity]
lele|w has quit [Ping timeout: 252 seconds]
lele|w has joined #ruby-lang
sankaber has joined #ruby-lang
ta_ has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
ta_ has quit [Ping timeout: 252 seconds]
tunaCanBruh has joined #ruby-lang
Aova has quit [Read error: Connection reset by peer]
yatish27 has quit [Remote host closed the connection]
tunaCanBruh has quit [Ping timeout: 255 seconds]
rikkipitt has quit [Quit: Leaving...]
Miphix has quit [Quit: Leaving]
yatish27 has joined #ruby-lang
chadwtaylor has joined #ruby-lang
Aova has joined #ruby-lang
Steve_Jobs has quit [Read error: Connection reset by peer]
Steve_Jobs has joined #ruby-lang
ocdmw has quit [Remote host closed the connection]
apt-get_ has quit [Ping timeout: 252 seconds]
ledestin has joined #ruby-lang
jo__ has quit [Quit: Connection closed for inactivity]
ta_ has joined #ruby-lang
arooni-mobile__ has joined #ruby-lang
lytol has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 265 seconds]
icharlie has joined #ruby-lang
mattyohe has quit [Quit: Connection closed for inactivity]
chinmay_dd has joined #ruby-lang
ta_ has quit [Ping timeout: 244 seconds]
yellowgh0st has quit [Quit: yellowgh0st]
icharlie has quit [Ping timeout: 245 seconds]
mcclurmc has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
mcclurmc has quit [Client Quit]
Pugsley_ has quit [Quit: Lingo: www.lingoirc.com]
Pugsley_ has joined #ruby-lang
j4cknewt has quit [Ping timeout: 245 seconds]
Pugsley_ has quit [Client Quit]
yatish27 has quit [Remote host closed the connection]
mcclurmc has joined #ruby-lang
lytol has quit [Remote host closed the connection]
ta_ has joined #ruby-lang
ta_ has quit [Ping timeout: 250 seconds]
Aova has quit [Read error: Connection reset by peer]
crdpink has joined #ruby-lang
crdpink2 has quit [Ping timeout: 245 seconds]
Aova has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
wallerdev_ has joined #ruby-lang
mkaesz has joined #ruby-lang
ocdmw has joined #ruby-lang
ta_ has joined #ruby-lang
kadwill has joined #ruby-lang
wallerdev_ has quit [Ping timeout: 245 seconds]
ta_ has quit [Ping timeout: 250 seconds]
yatish27 has joined #ruby-lang
kadwill has quit [Ping timeout: 245 seconds]
ocdmw has quit [Ping timeout: 250 seconds]
yellowgh0st has joined #ruby-lang
fedexo has joined #ruby-lang
icharlie has joined #ruby-lang
icharlie_ has joined #ruby-lang
fedexo has quit [Remote host closed the connection]
icharlie has quit [Ping timeout: 245 seconds]
icharlie_ has quit [Client Quit]
icharlie has joined #ruby-lang
lytol has joined #ruby-lang
stamina has quit [Ping timeout: 244 seconds]
chadwtaylor has quit [Remote host closed the connection]
Thylacinelol has quit [Quit: leaving]
Thylacinelol has joined #ruby-lang
lytol has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
arooni-mobile__ has quit [Ping timeout: 265 seconds]
ta_ has joined #ruby-lang
RobertBirnie has joined #ruby-lang
marcdel has quit []
j4cknewt has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby-lang
RobertBirnie has quit [Ping timeout: 250 seconds]
jo__ has joined #ruby-lang
Thylacinelol has left #ruby-lang [#ruby-lang]
Thylacinelol has joined #ruby-lang
Blackhole has quit []
rod_ has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 245 seconds]
apt-get_ has joined #ruby-lang
tunaCanBruh has joined #ruby-lang
<rod_> Hi
<rod_> i have one doubt, probably stupid..
<rod_> but lets go
<rod_> word="hello"; word.length.times {|i| key=word; key[i]="_"; puts key}
<rod_> _ello
<rod_> __llo
<rod_> ____o
<rod_> _____
<rod_> shouldn't be?
<rod_> _ello
<rod_> h_llo
<rod_> he_lo
<rod_> hell_
<rod_> ?
<rod_> what i'm missing?
lytol has joined #ruby-lang
ta_ has joined #ruby-lang
yatish27 has quit []
tunaCanBruh has quit [Ping timeout: 245 seconds]
<womble> rod_: It's because `key=word` simply makes `key` point to the same place as `word` -- Ruby is all pass-by-reference, not pass-by-value. You want `key=word.dup` instead -- that makes a copy of `word` (the `.dup` call) and then assigns that to `key`.
Pugsley_ has joined #ruby-lang
<rod_> ahhhhh!
lytol has quit [Ping timeout: 246 seconds]
<rod_> let me try...
<rod_> makes sense
<womble> lapide_viridi: You can call external programs with Ruby; for the ping, you can just run system("ping -c 5 #{target}") and then check $?.exitstatus to see if it succeeded or failed. For the mail, you'll wait to use Net::SMTP, or any one of the many, many e-mail sending gems out there (I last used pony, but I'm sure there's something newer and hawter out there by now)
gwendall has quit []
<lapide_viridi> womble, oh, thanks! That is nice! I'll copy it for future reference
<lapide_viridi> womble, can any device send a mail, or does it have to use a domain name?
<lapide_viridi> Last time I checked, it was also not necessary to use a from address.
thebastl has quit [Quit: Leaving...]
jbae has joined #ruby-lang
<womble> lapide_viridi: That's up to whatever you're sending the mail *to* -- some mail servers require a valid reverse DNS record on the sending IP, others don't care so much. And yes, sometimes From: addresses are checked, and other mail servers don't need it.
nofxx has joined #ruby-lang
nofxx has joined #ruby-lang
<lapide_viridi> That could be a problem then, because I don't have a domain name.
Aova has quit [Read error: Connection reset by peer]
Thylacinelol has quit [Quit: leaving]
b_hoffman has joined #ruby-lang
Lewix has joined #ruby-lang
Lewix has joined #ruby-lang
Thylacinelol has joined #ruby-lang
<womble> lapide_viridi: You can set the From: address to any "real" address and it'll (probably) work.
<lapide_viridi> Ah, so I can just use my gmail address then, and send it to my gmail address.
fp- has joined #ruby-lang
WishBoy has joined #ruby-lang
<womble> You could also make the Pis act like mail clients, and send their e-mail via a "tame" mail server by logging in (the same as you would configure it if you were setting up the mail client on your computer or phone)
<fp-> hey everybody
<womble> lapide_viridi: Putting your gmail address in the From: won't work; Google have their systems setup to reject mail like that, to prevent spammers.
<fp-> I'm hoping someone here may have a little better experience with what I'm hoping to accomplish and can point me in the right direction
<lapide_viridi> That I could do. I have some addresses lying around, or I make a new one.
<fp-> basically, we've got several servers used for shared hosting of customer websites. I'm wanting to put a cron/daemon on each server that waits for a job to install WordPress into a user directory. Our centrally-hosted software would need to send the job to the server the user lives on, and the cron/daemon would pick up the job and install WP. Afterwards, the central software
<fp-> gets some kind of indication that the job is done and redirects the user to their new installation
<jbae> hey all
<jbae> does anybody know if there are any rooms for rubyists in ny ?
Aova has joined #ruby-lang
<fp-> I'm just wondering if there's already a good framework/job-based system I can extend to install WP instead of reinventing most of that work
<womble> fp-: That's pretty straightforward. There are no shortage of job queues out there. I prefer resque myself.
ur5us has joined #ruby-lang
<womble> Lots of people appear to have a thing for sidekiq, although I don't know what it's benefits are.
mkaesz has quit [Quit: Leaving...]
Sadin has joined #ruby-lang
<fp-> ok so you'd do this pure ruby on the server side using redis
<fp-> rather than a simple cronjob and shell script
<womble> If Redis isn't your thing, there's a variety of other systems out there that use RabbitMQ, or even a database like MySQL to store the jobs.
Bwild has joined #ruby-lang
<womble> fp-: I'd do it using resque, yeah; for me, cron isn't frequent enough for those sorts of jobs.
<fp-> womble: I'm basically trying to do this fairly lean so there's not a lot of potential for breakdowns, especially since this is something installed on each customer hosting server and not centrally hosted with the app
<womble> Also, you'd still need somewhere to *store* the jobs while you're waiting for the cronjob to fire, so you wouldn't save much code and infrastructure anyway.
<fp-> gotcha
ta_ has quit [Ping timeout: 252 seconds]
<womble> fp-: A resque worker on each machine isn't going to consume many resources, and a (tiny) Redis server somewhere isn't going to be noticable.
WishBoy has quit [Remote host closed the connection]
<fp-> i guess the other concern i have having those individual customer servers storing passwords to the central job queue
<nofxx> sidekiq benefits will be celluloid benefits: https://github.com/celluloid/celluloid
<fp-> that's why I was thinking each server would be running redis
rbowlby has joined #ruby-lang
<fp-> and the central app would push jobs to each server
<nofxx> works fine for me, but honest can't remember why I changed to sidekiq from resque. Something about speed with short running processes comes to mind
<womble> fp-: The passwords don't have to go into the jobs. If you've got them stored securely somewhere else, the job worker can just pull that info out of a database.
yatish27 has joined #ruby-lang
<womble> fp-: Alternately, you could send the passwords pre-hashed in the job data; have them hashed in whatever way they'll be stored in the DB -- that way you're never handling plaintext.
havenwood has joined #ruby-lang
Thylacinelol has quit [Quit: leaving]
Thylacinelol has joined #ruby-lang
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
<womble> nofxx: Running on EC2? Otherwise, I'd expect the overhead of a fork to be pretty hard-to-notice against the overhead of Ruby itself.
<fp-> womble: that makes sense on how to get passwords to the job, but what I'm talking about is how the job accesses its data
<fp-> womble: meaning, the password to connect to the redis server/mysql server to lookup the install info
<womble> fp-: That's just a credential you protect like any other. No shortage of those in the average hosting environment, so presumably you've already got that problem licked.
rbowlby has quit [Ping timeout: 256 seconds]
<fp-> right, we just usually don't have all servers communicating with each other
djbkd has quit [Quit: Leaving...]
<womble> Welcome to the Brave New World of semi-intelligent infrastructure... <grin>
<fp-> i'm starting to think of just having the central app server run resque and have it connect to the individual customer's account, upload WordPress, edit the wp-config file, etc.
<womble> That could work too.
<womble> Although that would mean that the central app server would need every customer's plaintext-equivalent credential... making it a *very* tasty target.
djbkd has joined #ruby-lang
<fp-> right, we don't store that info, but could prompt the user for their password before connecting
<fp-> hand it off to the job
<fp-> yeah I suppose that's what I'll do
<fp-> at least then its' all central
<fp-> and rails has that new nifty ActiveJob framework I've been wanting to try out
iliketurtles has joined #ruby-lang
ta_ has joined #ruby-lang
<womble> What a coincidence! I like turtles *too*!
<fp-> lol
banister has joined #ruby-lang
nofxx has quit [Ping timeout: 252 seconds]
workmad3 has joined #ruby-lang
iliketurtles has quit [Quit: Textual IRC Client: www.textualapp.com]
kyb3r_ has joined #ruby-lang
yellowgh0st has quit [Quit: yellowgh0st]
yellowgh0st has joined #ruby-lang
fp- has quit [Quit: Lingo: www.lingoirc.com]
icharlie has quit [Remote host closed the connection]
yellowgh0st has quit [Client Quit]
enkristoffer has quit [Quit: ❤]
deol has joined #ruby-lang
enkristoffer has joined #ruby-lang
oleo__ has quit [Quit: Verlassend]
arBmind has quit [Quit: Leaving.]
tunaCanBruh has joined #ruby-lang
rikkipitt has joined #ruby-lang
oleo has joined #ruby-lang
lytol has joined #ruby-lang
ta_ has quit [Read error: No route to host]
tunaCanBruh has quit [Ping timeout: 245 seconds]
ta_ has joined #ruby-lang
lytol has quit [Ping timeout: 255 seconds]
j4cknewt has joined #ruby-lang
Aova has quit [Read error: Connection reset by peer]
ocdmw has joined #ruby-lang
ta_ has quit [Ping timeout: 252 seconds]
b_hoffman has quit [Quit: b_hoffman]
ocdmw has quit [Remote host closed the connection]
jbae has quit [Quit: jbae]
apt-get__ has joined #ruby-lang
cornerma1 has joined #ruby-lang
Aova has joined #ruby-lang
djbkd has quit [Quit: Leaving...]
icharlie has joined #ruby-lang
ta_ has joined #ruby-lang
crdpink2 has joined #ruby-lang
apt-get_ has quit [Ping timeout: 245 seconds]
cornerman has quit [Ping timeout: 264 seconds]
crdpink has quit [Ping timeout: 245 seconds]
cornerma1 is now known as cornerman
icharlie has quit [Ping timeout: 245 seconds]
jbae has joined #ruby-lang
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
deol has quit [Quit: Textual IRC Client: www.textualapp.com]
charliesome has joined #ruby-lang
jbae has quit [Quit: jbae]
jbae has joined #ruby-lang
Bwild has quit [Ping timeout: 256 seconds]
j4cknewt has quit [Read error: Connection reset by peer]
j4cknewt has joined #ruby-lang
Sadin has quit [Remote host closed the connection]
simi has joined #ruby-lang
marcdel has joined #ruby-lang
ta_ has quit [Ping timeout: 252 seconds]
stamina has joined #ruby-lang
kyb3r_ has quit [Read error: Connection reset by peer]
kyb3r_ has joined #ruby-lang
arBmind has joined #ruby-lang
Antivan has joined #ruby-lang
rikkipitt has quit [Read error: Connection reset by peer]
rikkipitt has joined #ruby-lang
ta_ has joined #ruby-lang
charliesome has quit [Quit: zzz]
ta_ has quit [Ping timeout: 252 seconds]
lapide_viridi has quit [Quit: Leaving]
yellowgh0st has joined #ruby-lang
ta_ has joined #ruby-lang
marcdel has quit []
Musashi007 has joined #ruby-lang
rbowlby has joined #ruby-lang
|jemc| has joined #ruby-lang
ta_ has quit [Ping timeout: 244 seconds]
stamina has quit [Quit: WeeChat 1.1.1]
rikkipitt has quit [Quit: Leaving...]
marcdel has joined #ruby-lang
j4cknewt_ has joined #ruby-lang
j4cknewt has quit [Read error: Connection reset by peer]
Musashi007 has quit [Quit: Musashi007]
Aova has quit [Read error: Connection reset by peer]
ocdmw has joined #ruby-lang
rikkipitt has joined #ruby-lang
jbae has quit [Quit: jbae]
Aova has joined #ruby-lang
ocdmw has quit [Remote host closed the connection]
savagemic has joined #ruby-lang
wallerdev has joined #ruby-lang
wallerdev has quit [Ping timeout: 250 seconds]
marcdel has quit []
AlexAltea has joined #ruby-lang
kyb3r_ has quit [Read error: Connection reset by peer]
dellavg_ has quit [Ping timeout: 264 seconds]
|jemc| has quit [Quit: WeeChat 1.0.1]
rikkipitt has quit [Quit: Leaving...]
j4cknewt_ has quit [Read error: Connection reset by peer]
j4cknewt has joined #ruby-lang
apt-get__ has quit [Remote host closed the connection]
<yatish27> When I bild ruby from source I get this http://pastebin.com/hqWuUvBR
<yatish27> *build
ta_ has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
tunaCanBruh has joined #ruby-lang
benlakey_ has joined #ruby-lang
hahuang62 has joined #ruby-lang
manveru_ has joined #ruby-lang
bb010g_ has joined #ruby-lang
djinni` has quit [Ping timeout: 245 seconds]
ja_robol has quit [Ping timeout: 245 seconds]
manveru has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 245 seconds]
hahuang61 has quit [Ping timeout: 245 seconds]
bb010g has quit [Ping timeout: 245 seconds]
benlakey has quit [Ping timeout: 245 seconds]
cytomich has quit [Ping timeout: 245 seconds]
thang_ has quit [Ping timeout: 245 seconds]
chris2 has quit [Ping timeout: 245 seconds]
aef has quit [Ping timeout: 245 seconds]
jxport has quit [Ping timeout: 245 seconds]
jxport has joined #ruby-lang
manveru_ is now known as manveru
benlakey_ is now known as benlakey
bb010g_ is now known as bb010g
ja_robol has joined #ruby-lang
djinni` has joined #ruby-lang
thang has joined #ruby-lang
Thecrazylumberja has joined #ruby-lang
ja_robol is now known as ja_robol_
chris2 has joined #ruby-lang
cytomich has joined #ruby-lang
rikkipit_ has joined #ruby-lang
rikkipit_ has quit [Remote host closed the connection]
rbowlby has quit [Ping timeout: 252 seconds]
aef has joined #ruby-lang
tunaCanBruh has quit [Ping timeout: 255 seconds]
riotjones has joined #ruby-lang
nofxx has joined #ruby-lang
yellowgh0st has quit [Quit: yellowgh0st]
konekochan has joined #ruby-lang
rbowlby has joined #ruby-lang
riotjones has quit [Ping timeout: 250 seconds]
<konekochan> this code results in "undefined method `=~'"
<konekochan> are there any common methods with this alias in ruby?
<konekochan> is there any way to fix this problem?
red_menace has joined #ruby-lang
<weaksauce> konekochan you are likely sending =~ to a nil object
rikkipitt has joined #ruby-lang
diegoviola has joined #ruby-lang
rikkipitt has quit [Remote host closed the connection]
rikkipitt has joined #ruby-lang
<konekochan> undefined method `=~' for #<Pathname:/home/s/instiki-svn/config.ru> (NoMethodError)
mfn has quit [Quit: WeeChat 0.3.2]
<konekochan> weaksauce: i don't know ruby at all but it seems like this method is applied to #<Pathname...>
<weaksauce> you could try to_s
rikkipitt has quit [Client Quit]
<weaksauce> if config.to_s =~ /\.ru$/
<weaksauce> konekochan ^
<konekochan> weaksauce: thank you very much, it workes
<konekochan> works
<weaksauce> yw
Aova has quit [Read error: Connection reset by peer]
jbae has joined #ruby-lang
ta_ has quit [Ping timeout: 252 seconds]
cmckni3 has quit [Read error: Connection reset by peer]
j4cknewt has quit [Read error: Connection reset by peer]
cmckni3 has joined #ruby-lang
j4cknewt has joined #ruby-lang
ta_ has joined #ruby-lang
Aova has joined #ruby-lang
jbae has quit [Quit: jbae]
Bwild has joined #ruby-lang
dzejrou has quit [Ping timeout: 245 seconds]
ta_ has quit [Ping timeout: 245 seconds]
konekochan has quit [Quit: Page closed]
icharlie has joined #ruby-lang
workmad3 has quit [Remote host closed the connection]
b_hoffman has joined #ruby-lang
icharlie has quit [Ping timeout: 244 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chinmay_dd has quit [Quit: Connection closed for inactivity]
jo__ has quit [Quit: Connection closed for inactivity]
savagemic has quit []
jbae has joined #ruby-lang
b_hoffman has quit [Quit: b_hoffman]
lytol has joined #ruby-lang
arBmind1 has joined #ruby-lang
simi has quit [Ping timeout: 264 seconds]
yellowgh0st has joined #ruby-lang
arBmind has quit [Ping timeout: 250 seconds]
AlexAltea has quit [Quit: Leaving]
lytol has quit [Ping timeout: 265 seconds]