jhass changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.4; 2.1.8; 2.0.0-p648: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
freerobby has quit [Client Quit]
ornerymoose has quit [Quit: ornerymoose]
pawnbox has joined #ruby
jbrhbr1 has joined #ruby
<dfwqdfui2342> Was wondering if ruby had a real time function/method that could display the array of time i have deppending on the location the user chooses
jbrhbr has quit [Ping timeout: 256 seconds]
gizmore has joined #ruby
<underplank> dfwqdfui2342: you mean if the location is San Francisco, you pass that in somehow and it works out that its PST, and gives you timezone adjusted time for that location?
nerium has joined #ruby
<cmrussell> @shevy i have one more question
ElFerna has joined #ruby
<cmrussell> i got the script to work without using the map method...i couldnt figure that one out
<cmrussell> is there anything wrong with that
pawnbox has quit [Ping timeout: 240 seconds]
gizless has quit [Ping timeout: 256 seconds]
firstdayonthejob has quit [Ping timeout: 260 seconds]
<adaedra> cmrussell: it works, but you wouldn't have to push explicitely with #map.
<Ox0dea> cmrussell: Now those calls to #chomp are redundant. :P
<cmrussell> why
<Ox0dea> >> "42\n".to_i # cmrussell
<ruboto> Ox0dea # => 42 (https://eval.in/487683)
whippythellama has quit [Ping timeout: 260 seconds]
<cmrussell> is it bc .chomp only matters when getting an actual string?
<Ox0dea> No, it's because String#to_i consumes numeric data until it can't.
<Ox0dea> >> '123abc'.to_i
<ruboto> Ox0dea # => 123 (https://eval.in/487684)
dfwqdfui2342 has quit []
hxegon_AFK has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<cmrussell> so .chomp is for what
<Ox0dea> Removing a trailing newline if it exists.
<cmrussell> ohhhh
<Ox0dea> Useful, to be sure, but not strictly necessary for your purpose here.
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<cmrussell> so each could just say gets.to_i
<Ox0dea> Just so.
<cmrussell> or could i skip the to_i and call it on the array itself?
<Ox0dea> With #map, sure.
<cmrussell> and see, I looked up the map thing and I dont het how to use it
lictor36 has quit [Quit: lictor36]
n_blownapart has quit []
<cmrussell> map! alters the existing array
<cmrussell> map makes a new one
<cmrussell> but I dont know where to put map
_stu_ has quit [Quit: _stu_]
<Ox0dea> >> nums = [1,2,3]; nums.map { |n| n * 2 } # cmrussell
cdg has joined #ruby
<ruboto> Ox0dea # => [2, 4, 6] (https://eval.in/487685)
<Ox0dea> Put it wherever you need to transform some collection. :P
radgeRayden_ has joined #ruby
underplank has quit [Read error: Connection reset by peer]
radgeRayden__ has quit [Read error: Connection reset by peer]
devbug has quit [Read error: Connection reset by peer]
TomPeed has joined #ruby
s00pcan has joined #ruby
kies^ has joined #ruby
<shevy> cmrussell rather than .each you would use .map
cajone is now known as cajone_afk
<havenwood> save a character!
whippythellama has joined #ruby
<havenwood> "use map instead of each, it's shorter"
<shevy> :D
icarus has joined #ruby
<shevy> hahaha
<shevy> havenwood: "use ->{} instead of proc or lambda (this is why it depends on 1.9)"
_stu_ has joined #ruby
<havenwood> shevy: *almost* Sinatra
<havenwood> Not bad for five lines. ;)
<havenwood> shevy: pair it with *almost* Rack for a nine LOC stack: https://github.com/rkh/almost-rack/blob/meister/almost-rackup
<havenwood> Then almost Rack protection for a little safety.
icarus_ has quit [Ping timeout: 256 seconds]
bitcycle has quit [Ping timeout: 260 seconds]
icarus_ has joined #ruby
cjbottaro has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
icarus has quit [Ping timeout: 260 seconds]
colegatron has quit [Ping timeout: 265 seconds]
andrew9183 has quit [Quit: andrew9183]
pawnbox has quit [Ping timeout: 255 seconds]
p0wn3d_ has quit [Ping timeout: 260 seconds]
jessemcgilallen has joined #ruby
jbrhbr1 has quit [Quit: Leaving.]
ElFerna has quit [Ping timeout: 260 seconds]
lokulin has quit [Ping timeout: 240 seconds]
ElFerna has joined #ruby
nonopposition has quit [Remote host closed the connection]
jottr has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
Pathfinder has quit [Read error: Connection reset by peer]
Pathfinder has joined #ruby
jottr has quit [Ping timeout: 255 seconds]
babblebre has quit [Quit: Connection closed for inactivity]
howdoicomputer has quit [Ping timeout: 240 seconds]
lokulin has joined #ruby
colegatron has joined #ruby
jbrhbr has joined #ruby
cwong_on_irc has quit [Quit: Leaving.]
nonopposition has joined #ruby
charliesome has joined #ruby
VeryBewitching has joined #ruby
linduxed has quit [Ping timeout: 272 seconds]
aspire has quit [Ping timeout: 272 seconds]
aspire has joined #ruby
wildlander has quit [Quit: Saliendo]
freerobby has joined #ruby
dlitvak has joined #ruby
<VeryBewitching> G'day folks.
linduxed has joined #ruby
<havenwood> hi
<shevy> xmas xmas xmas
<VeryBewitching> I have a Christmas desktop this year.
ferr has quit [Quit: WeeChat 1.3]
arescorpio has joined #ruby
finisherr has quit [Quit: finisherr]
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<VeryBewitching> yay
dlitvak has quit [Ping timeout: 265 seconds]
pawnbox has joined #ruby
bitcycle has joined #ruby
millerti has joined #ruby
bitcycle has quit [Read error: Connection reset by peer]
blub has joined #ruby
bitcycle has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
renemaya has quit [Quit: Re has gone to sleep. ZZZzzz…]
Snowy has quit [Remote host closed the connection]
Snaggle has left #ruby [#ruby]
eytanfb has quit [Remote host closed the connection]
Snowy has joined #ruby
tenderlove has quit [Quit: Leaving...]
bitcycle has quit [Read error: Connection reset by peer]
TomPeed has joined #ruby
renemaya has joined #ruby
stannard has quit [Remote host closed the connection]
chouhoulis has joined #ruby
stannard has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
basex has joined #ruby
chouhoulis has quit [Remote host closed the connection]
dkam has quit [Quit: Be back later ...]
Snowy has quit [Ping timeout: 240 seconds]
kirun has quit [Quit: Client exiting]
fantazo has joined #ruby
chouhoul_ has quit [Ping timeout: 246 seconds]
ElFerna has quit [Ping timeout: 272 seconds]
stannard has quit [Ping timeout: 246 seconds]
TheBloke- is now known as TheBloke
Synthead has quit [Quit: Synthead]
icarus_ has quit [Ping timeout: 255 seconds]
Pathfinder has quit [Remote host closed the connection]
devoldmx has joined #ruby
<shevy> ack
<shevy> kde
<shevy> they turned ruby into kuby!
indiebrain has joined #ruby
fantazo has quit [Quit: Verlassend]
cassioscabral has quit [Quit: cassioscabral]
skcin7 has joined #ruby
Sucks has quit [Ping timeout: 246 seconds]
freerobby has quit [Quit: Leaving.]
marr has quit [Ping timeout: 256 seconds]
Sucks has joined #ruby
rgtk has joined #ruby
<Ox0dea> ?
seitensei has joined #ruby
seitensei has quit [Changing host]
seitensei has joined #ruby
tricon_ has quit [Quit: Leaving...]
rkazak_ has joined #ruby
renemaya has quit [Quit: Re has gone to sleep. ZZZzzz…]
<shevy> Ox0dea the shot
IrishGringo has quit [Ping timeout: 260 seconds]
SCHAAP137 has quit [Remote host closed the connection]
<Ox0dea> shevy: Oh, okay. Thanks for clarifying.
rgtk has quit [Ping timeout: 246 seconds]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
devoldmx has quit [Remote host closed the connection]
roshanavand has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
seitensei has quit [Ping timeout: 260 seconds]
devoldmx has joined #ruby
devoldmx has quit [Remote host closed the connection]
freerobby has joined #ruby
last_staff has quit [Quit: last_staff]
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
IrishGringo has joined #ruby
cmrussell has quit [Quit: Leaving]
idefine has joined #ruby
Marsupermammal has quit [Ping timeout: 256 seconds]
<VeryBewitching> shevy: I <3 KDE
roshanavand has quit [Ping timeout: 272 seconds]
ramfjord has quit [Ping timeout: 246 seconds]
cyberarm has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
cassioscabral has joined #ruby
idefine has quit [Ping timeout: 265 seconds]
cassioscabral has quit [Client Quit]
indiebrain has quit [Ping timeout: 246 seconds]
_stu_ has quit [Quit: _stu_]
jpfuentes2 has joined #ruby
imperator has joined #ruby
pawnbox has joined #ruby
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 240 seconds]
freerobby has quit [Quit: Leaving.]
yashinbasement has quit [Quit: Leaving]
pawnbox has quit [Ping timeout: 256 seconds]
Rickmasta has joined #ruby
RegulationD has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nerium has quit [Quit: nerium]
RegulationD has quit [Ping timeout: 240 seconds]
kalopsian has joined #ruby
cyberarm has joined #ruby
maletor has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
devbug has joined #ruby
houhoulis has joined #ruby
pietr0 has quit [Quit: pietr0]
lele has quit [Ping timeout: 250 seconds]
dlitvak has joined #ruby
seitensei has joined #ruby
seitensei has quit [Changing host]
seitensei has joined #ruby
ruu_ has joined #ruby
ruu_ has quit [Remote host closed the connection]
ruu_ has joined #ruby
ruu has quit [Read error: Connection reset by peer]
lele has joined #ruby
dlitvak has quit [Ping timeout: 260 seconds]
devoldmx has joined #ruby
<imperator> 'sup
devoldmx has quit [Read error: Connection reset by peer]
Sucks has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
ruu_ has quit [Ping timeout: 260 seconds]
moeabdol has joined #ruby
shanemcd has joined #ruby
shadoi has quit [Quit: Leaving.]
IrishGringo has quit [Ping timeout: 256 seconds]
jnagro has joined #ruby
djbkd has joined #ruby
lacuna has quit [Remote host closed the connection]
ElFerna has joined #ruby
<shevy> VeryBewitching I use kde konsole a lot but the rest of it ... hmm
shanemcd has quit [Ping timeout: 256 seconds]
mmitchell has joined #ruby
djbkd has quit [Ping timeout: 272 seconds]
mmitchell has quit [Client Quit]
shadoi has joined #ruby
chouhoulis has joined #ruby
zzz_ has joined #ruby
lipoqil has quit [Quit: Connection closed for inactivity]
pawnbox has joined #ruby
chouhoulis has quit [Ping timeout: 256 seconds]
solocshaw has quit [Ping timeout: 240 seconds]
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has quit [Ping timeout: 240 seconds]
joneshf-laptop has quit [Ping timeout: 256 seconds]
bb010g has joined #ruby
davedev24 has quit []
roshanavand has joined #ruby
atomical_ has joined #ruby
blackgoat has quit [Quit: WeeChat 1.3]
roshanavand has quit [Ping timeout: 246 seconds]
atomical has quit [Ping timeout: 260 seconds]
sdrew has joined #ruby
DLSteve has joined #ruby
jottr has joined #ruby
blackmesa has joined #ruby
howdoicomputer has joined #ruby
jottr has quit [Ping timeout: 260 seconds]
atomical_ has quit [Quit: Textual IRC Client: www.textualapp.com]
nocd has quit [Quit: nocd]
dkam has joined #ruby
blackmesa has quit [Ping timeout: 255 seconds]
howdoicomputer has quit [Ping timeout: 255 seconds]
joneshf-laptop has joined #ruby
Vitor has quit [Ping timeout: 265 seconds]
skcin7 has joined #ruby
pawnbox has joined #ruby
Tempesta_ has quit [Quit: See ya!]
idefine has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dkam has quit [Ping timeout: 272 seconds]
freerobby has joined #ruby
techietrash has quit [Ping timeout: 260 seconds]
segmond has quit [Ping timeout: 240 seconds]
pawnbox has quit [Ping timeout: 240 seconds]
cyberarm has quit [Quit: Leaving]
techietrash has joined #ruby
techietrash has quit [Changing host]
techietrash has joined #ruby
idefine has quit [Ping timeout: 256 seconds]
dlitvak has joined #ruby
JoshL has quit [Ping timeout: 276 seconds]
eboaz has quit [Quit: No Ping reply in 180 seconds.]
eboaz has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
JoshL has joined #ruby
jbrhbr has quit [Quit: Leaving.]
yqt has quit [Ping timeout: 260 seconds]
dlitvak has quit [Ping timeout: 240 seconds]
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
moeabdol has quit [Quit: WeeChat 1.3]
segmond has joined #ruby
cwong_on_irc has joined #ruby
kalopsian has quit [Ping timeout: 240 seconds]
sdrew has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dlitvak has joined #ruby
ramfjord has joined #ruby
moeabdol has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
sankaber has joined #ruby
chouhoulis has joined #ruby
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Yzguy has quit [Quit: Zzz...]
dkam has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
pawnbox has joined #ruby
cdg has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 255 seconds]
cdg has joined #ruby
Jardayn has quit [Read error: Connection reset by peer]
pawnbox has quit [Ping timeout: 255 seconds]
dkam has quit [Ping timeout: 240 seconds]
rgtk has joined #ruby
skcin7 has quit [Max SendQ exceeded]
ec is now known as ELLIOTTCABLE
ELLIOTTCABLE is now known as ec
jackjackdripper1 has quit [Quit: Leaving.]
aspire has quit [Quit: Leaving]
skcin7 has joined #ruby
cdg_ has joined #ruby
VeryBewitching has quit [Quit: Konversation terminated!]
agent_white has joined #ruby
rgtk has quit [Ping timeout: 246 seconds]
oncall-pokemon has joined #ruby
cdg has quit [Ping timeout: 246 seconds]
dmcp has quit [Quit: Disconnecting...]
jessemcgilallen has quit [Quit: jessemcgilallen]
oncall-pokemon has quit [Client Quit]
cdg_ has quit [Ping timeout: 240 seconds]
oncall-pokemon has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
govg has joined #ruby
madcodes has quit [Ping timeout: 240 seconds]
freerobby has quit [Quit: Leaving.]
blackmesa has joined #ruby
DavidDudson has joined #ruby
dkam has joined #ruby
Uptime has quit [Changing host]
Uptime has joined #ruby
msankhala has joined #ruby
guide_X has quit [Changing host]
guide_X has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
fullofcaffeine has joined #ruby
dorei has quit []
renemaya has joined #ruby
idefine has joined #ruby
Mia has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
cassioscabral has joined #ruby
SleepySensei has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Lilian has quit [Quit: WeeChat 1.3]
idefine has quit [Ping timeout: 255 seconds]
idefine has joined #ruby
djbkd has quit [Ping timeout: 255 seconds]
basex has quit [Quit: basex]
braincrash has quit [Quit: bye bye]
dlitvak has joined #ruby
idefine has quit [Ping timeout: 240 seconds]
dkam has quit [Ping timeout: 240 seconds]
idefine has joined #ruby
zast has joined #ruby
dlitvak has quit [Ping timeout: 265 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
linelevel has joined #ruby
linelevel1 has joined #ruby
nateberkopec has quit [Quit: Leaving...]
idefine has quit [Ping timeout: 256 seconds]
weemsledeux has joined #ruby
bronson has quit [Remote host closed the connection]
braincrash has joined #ruby
linelevel has quit [Ping timeout: 240 seconds]
gix has quit [Ping timeout: 260 seconds]
chouhoulis has joined #ruby
<camus> hello, hoping someone can please help me w/ my ruby script: https://gist.github.com/anonymous/70089eb70f6033ba19d9
<camus> I would like to 1) loop through and interpolate the email address in the "url" with a list of email addresses I have, and 2) store the json response in a file, and append each subsequent response until i've queried all email addresses
St1gma_ has joined #ruby
imperator has left #ruby ["Leaving"]
imperator has quit [Quit: Leaving]
gix has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 246 seconds]
<camus> Was thinking perhaps some type of method that writes to a file with the response or parsed_json, but I am unsure about the syntax, and then for the list of email addresses to populate a portion of the url (where it says email=) maybe another file.. or an array in the above gist that get's iterated through? maybe i could use concatenation to restructure the
<camus> url w/ from the array until the loop is finished?/
sdothum has joined #ruby
<gizmore> hi camus
<gizmore> camus: you want to serialize the json into a file?
nerium has joined #ruby
charliesome has joined #ruby
bigmac_ has quit [Remote host closed the connection]
<camus> gizmore: hello, thanks for your reply - basically, when i query that URL, it gives me back JSON, I would like to put that reply into a file, and then do it over and over again for other email addresses, so that at the end i have a file with a bunch of JSON in it.
madcodes has joined #ruby
jnagro has quit [Quit: Leaving]
<gizmore> camus: and eleminate duplicates?
<gizmore> or just replace with newestß
<camus> gizmore: just append each new response to the file
<gizmore> hmm not exactly
<gizmore> you get json objects back
<gizmore> and want to alter them, based on new data
<gizmore> simple file appending won´t work
<gizmore> unless you come up with a file format that allows it
<camus> ah, ok - basically, that API will give you all of the social media information attached an email address
<camus> so what i want to do is run it across a bunch of email addresses to then have a big json object that i can convert to csv to sort and be able to determine who is most active on social media
<gizmore> how many adresses do you plan to harvest for your malware campaign?
<gizmore> less than 100,000?
<camus> haha, no, i'm trying to determine which of my customers are the most active on social media
<gizmore> so just a bunch of 100?
<camus> yeah something like that
<gizmore> then maybe save the file as JSON or YML
<gizmore> load it before new request, merge it, and save again
<camus> that's over my head i think :)
<gizmore> you got the JSON as ruby object already?
<gizmore> from the website?
<camus> so far i have just gotten it to the point of printing the response on my command line
<camus> i can see the 200 response and the subsequent info
<gizmore> rubyobject = JSON.parse(response)
TheBloke has quit [Quit: Textual IRC Client: www.textualapp.com]
<camus> ok, so i can assign that to a variable
gizless has joined #ruby
TDJACR has quit [Ping timeout: 240 seconds]
<camus> cache = JSON.parse(response)
<gizless> oldcache = JSON.parse(File.read("myfile"))
<havenwood> camus: You can always write to a file with File.write but Ruby has some nifty transactional ways to serialize and store to disk or db built into the stdlib like YAML::DBM, YAML::Store and PStore, etc.
dlitvak has joined #ruby
<havenwood> camus: One example: require 'yaml/dbm'; ydbm = YAML::DBM.new 'email.db'; ydbm['example.email.com'] = {example: 'parsed_json'}; ydbm['example.email.com']
<havenwood> #=> {:example=>"parsed_json"}
<havenwood> I dunno if you really need to have the file be JSON.
<camus> I thought I could use a JSON to CSV converter.
<camus> Because then I can upload into Google Docs and sort the columns.
<camus> And also share with others who are non-devs.
gizmore has quit [Ping timeout: 256 seconds]
jottr has joined #ruby
<gizless> 1. load your local file - 2. request new file - 3. merge both - 4. save the merge - 5. export to csv?
<havenwood> camus: You could add email blob pairs to a Hash then serialize it to JSON and save a file I suppose.
<camus> ok
dlitvak has quit [Remote host closed the connection]
c355e3b has quit [Quit: Connection closed for inactivity]
willywos has joined #ruby
<havenwood> camus: Or give YDBM a try! It's pretty simple to use. :) http://ruby-doc.org/stdlib/libdoc/dbm/rdoc/DBM.html
howdoicomputer has joined #ruby
<camus> gizless: 1. create new file from email address 2. request new file w/ different email address 3. merge 4. save
blackmesa has joined #ruby
<havenwood> TIMTOWTDI
<camus> havenwood: ok, thanks for your help too, btw!
jottr has quit [Ping timeout: 240 seconds]
<gizless> camus: i would suggest you store all emails/customers in one file
<gizless> hence the load/request/merge
<camus> ok i have that
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
gizmore has joined #ruby
paradisaeidae has quit [Quit: ChatZilla 0.9.92 [Firefox 43.0.1/20151216175450]]
howdoicomputer has quit [Ping timeout: 240 seconds]
msankhala has quit [Ping timeout: 240 seconds]
<camus> havenwood: i think i need to gain a little bit more experience first before i try your route
msankhala has joined #ruby
<Ox0dea> camus: Alternatively, dive in!
<Ox0dea> You'll either die or learn to swim. :P
<camus> Ox0dea: you are talking to my spirit :P
TheBloke has joined #ruby
<havenwood> camus: If you're familiar with Hashes then YDBM might be easier than you imagine!
msankhala has quit [Client Quit]
gizless has quit [Ping timeout: 265 seconds]
<havenwood> camus: The keys need to be Strings but the values can be anything serializable to YAML.
blackmesa has quit [Ping timeout: 265 seconds]
znz_jp has quit [Quit: kill -QUIT $$]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> camus: If you want to think about it even less, here's a little wrapper I wrote around Ruby's PStore that even picks the file name for you :O https://github.com/havenwood/persist#readme
gizmore has quit [Ping timeout: 272 seconds]
<havenwood> It's really not much easier than the stdlib ways... ;)
lessless has joined #ruby
TDJACR has joined #ruby
rakm has joined #ruby
ElFerna has quit [Ping timeout: 246 seconds]
bigmac_ has joined #ruby
znz_jp has joined #ruby
gix has quit [Ping timeout: 272 seconds]
<camus> how do I open the file with email addresses (one per line) and iterate through that?
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
benlieb has quit [Quit: benlieb]
dlitvak has joined #ruby
<havenwood> camus: Try my YDBM example above with a few email/value pairs and then: ydbm.to_h
<havenwood> camus: Or: ydbm.each { |email, value| ...
<nerium> Anyone knows a tool or platform for publishing data to all social media platforms?
eytanfb has joined #ruby
seitensei has quit [Remote host closed the connection]
<camus> nerium: https://bufferapp.com/
<nerium> camus: They only support a few services, 4 if im not misstaken
slackr has joined #ruby
<nerium> I was hoping to host my own solution as there arn’t any paid ones that work
<camus> ah, ok, i understand
<slackr> .seen jhass
<camus> havenwood: sorry, i think this is still a bit over my head, i am pretty new
<slackr> camus, is your nick taken from Albert Camus? or is camus a regular name?
<camus> slackr: yes, Albert Camus
<havenwood> camus: Ah, yeah if you're not familiar with Hashes it'd be foreign!
<havenwood> camus: Hashes are very much worth learning.
<camus> havenwood: is there something i could do that is more rudimentary, like a for loop or something like that with a method to File.open and then structure the url and to aggregate and store the json?
<slackr> camus, nice.
eytanfb has quit [Ping timeout: 255 seconds]
<havenwood> camus: You could download each and store them as key/value pairs in a Hash, then serialize that Hash to JSON and write it as a file.
slackr has quit [Client Quit]
tjohnson has quit [Quit: Connection closed for inactivity]
TheBloke has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> camus: hash = {}; hash[email] = parsed_json; File.write('your_file_name.json', hash.to_json)
<havenwood> camus: ^ an example
<camus> ok thanks
SleepySensei has joined #ruby
darkf has joined #ruby
chouhoulis has joined #ruby
pawnbox has joined #ruby
bronson has joined #ruby
Domaldel has quit [Quit: Leaving]
smactive has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
chouhoulis has quit [Ping timeout: 240 seconds]
pawnbox has quit [Ping timeout: 240 seconds]
arescorpio has quit [Quit: Leaving.]
fullofcaffeine has joined #ruby
<Ox0dea> > [something] more rudimentary, like a for loop
<Ox0dea> camus: Did you know that `for` loops actually invoke #each in Ruby?
<camus> Yeah exactly
<Ox0dea> Hm?
smactive has quit [Ping timeout: 256 seconds]
shanemcd has joined #ruby
rgtk has joined #ruby
<camus> Ox0dea: https://gist.github.com/anonymous/70089eb70f6033ba19d9 <--- I would like to replace the "####@###.###" with a different email address and instead of "print response" would like to store the response to a file (and append each subsequent response to it)
<Ox0dea> You talk like somebody who thinks they're using a "give me the answer"ing machine.
<camus> Apologies, more like I don't understand what I'm doing and there is a bit of a knot of confusion - not sure which string to pull first to not make it more of a mess.
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
linelevel1 has quit [Ping timeout: 240 seconds]
shanemcd has quit [Ping timeout: 255 seconds]
rgtk has quit [Ping timeout: 246 seconds]
alex_ has joined #ruby
<Ox0dea> camus: You have an Array of email addresses, yes?
dlitvak has quit [Remote host closed the connection]
ornerymoose has joined #ruby
<camus> Yeah, I was thinking that maybe I could iterate through the array and concatenate the URL or something? But got a bit dead-ended there.
TheBloke has joined #ruby
p0wn3d_ has joined #ruby
rakm has joined #ruby
<Ox0dea> camus: The concept you're looking for is called string interpolation.
alex_ has quit [Client Quit]
idefine has joined #ruby
DavidDudson has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DavidDudson has quit [Client Quit]
lxsameer has joined #ruby
ornerymoose has quit [Quit: ornerymoose]
amclain has quit [Quit: Leaving]
idefine has quit [Ping timeout: 246 seconds]
z3uS has joined #ruby
charliesome has joined #ruby
djbkd has joined #ruby
z3uS has quit [Client Quit]
blackmesa has joined #ruby
pawnbox has joined #ruby
charliesome has quit [Client Quit]
RegulationD has joined #ruby
guacamole has joined #ruby
z3uS has joined #ruby
guacamole has quit [Client Quit]
djbkd has quit [Ping timeout: 256 seconds]
arooni_______ has joined #ruby
bitcycle has joined #ruby
psy_ has joined #ruby
z3uS has quit [Client Quit]
z3uS has joined #ruby
pawnbox has quit [Ping timeout: 255 seconds]
aspire has joined #ruby
RegulationD has quit [Ping timeout: 260 seconds]
z3uS has quit [Client Quit]
blackmesa has quit [Ping timeout: 240 seconds]
idefine has joined #ruby
lxsameer has quit [Quit: Leaving]
ruu has joined #ruby
idefine has quit [Ping timeout: 240 seconds]
<camus> Ox0dea: thank you for helping me
renemaya has quit [Quit: Re has gone to sleep. ZZZzzz…]
renemaya has joined #ruby
<Ox0dea> camus: It was my pleasure and the like.
s00pcan has quit [Remote host closed the connection]
<Ox0dea> For reference, OpenURI is pretty nice if you only need to perform basic GET requests.
bitcycle has quit [Ping timeout: 246 seconds]
psy_ has quit [Read error: No route to host]
zzz_ has quit [Remote host closed the connection]
<camus> ok i will check it out
psy_ has joined #ruby
roshanavand has joined #ruby
psy_ has quit [Max SendQ exceeded]
seitensei has joined #ruby
<Ox0dea> require 'open-uri'; File.write 'foo.json', emails.map { |e| JSON.parse open("foo.com/bar.json?email=#{e}").read }.to_json
<Ox0dea> camus: Something like that oughta do in a pinch.
psy_ has joined #ruby
seitensei has quit [Remote host closed the connection]
speaking1ode has joined #ruby
roshanavand has quit [Ping timeout: 265 seconds]
aspire has quit [Ping timeout: 272 seconds]
moeabdol has quit [Ping timeout: 255 seconds]
lxsameer has joined #ruby
howdoicomputer has joined #ruby
Maxed has joined #ruby
<camus> Ox0dea: thanks again
<Ox0dea> Ja.
willywos has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Maxed has quit [Remote host closed the connection]
Maxed has joined #ruby
ruu has quit [Remote host closed the connection]
speaking2ode has joined #ruby
djbkd has joined #ruby
pawnbox has joined #ruby
speaking1ode has quit [Quit: leaving]
howdoicomputer has quit [Ping timeout: 240 seconds]
gizmore has joined #ruby
Maxed has quit [Remote host closed the connection]
chouhoulis has joined #ruby
<ja> Jaså
<Ox0dea> Sorry about that highlight. :/
<ja> Haha, don’t be
<ja> besides, only “ja:” highlights me
<ja> /^ja:/ even
wjimenez5271 has quit [Ping timeout: 272 seconds]
Maxed has joined #ruby
CloCkWeRX has quit [Ping timeout: 272 seconds]
pawnbox has quit [Ping timeout: 246 seconds]
govg has quit [Ping timeout: 255 seconds]
aspire has joined #ruby
govg has joined #ruby
chouhoulis has quit [Ping timeout: 265 seconds]
wjimenez5271 has joined #ruby
Maxed has quit [Remote host closed the connection]
<camus> Ox0dea: Hey, I was trying what you just shared (thanks again) and I see that emails is undefined, that's because I need to create my array with the addresses, right?
<Ox0dea> camus: Right.
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
BlackCoyote has quit [Remote host closed the connection]
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
idefine has joined #ruby
colegatron has quit [Ping timeout: 256 seconds]
djbkd has quit []
ornerymoose has joined #ruby
CloCkWeRX has joined #ruby
cassioscabral has quit [Quit: cassioscabral]
aspire has quit [Quit: Leaving]
idefine has quit [Ping timeout: 260 seconds]
fullofcaffeine has quit [Remote host closed the connection]
jottr has joined #ruby
ornerymoose has quit [Quit: ornerymoose]
djbkd has joined #ruby
fullofcaffeine has joined #ruby
jottr has quit [Ping timeout: 260 seconds]
babblebre has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
hxegon has joined #ruby
arooni_______ has quit [Ping timeout: 260 seconds]
colegatron has joined #ruby
madcodes has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
guide_X is now known as guideX
idefine has joined #ruby
hxegon has quit [Ping timeout: 246 seconds]
dionysus69 has joined #ruby
ornerymoose has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
idefine has quit [Ping timeout: 256 seconds]
pdoherty has quit [Ping timeout: 246 seconds]
dlitvak has joined #ruby
startupality has joined #ruby
pawnbox has quit [Ping timeout: 255 seconds]
ornerymoose has quit [Quit: ornerymoose]
ornerymoose has joined #ruby
yeshacker has joined #ruby
dlitvak has quit [Ping timeout: 265 seconds]
renemaya has quit [Quit: It's all about knowing what you don't know yet]
dh64 has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
yeshacker has quit [Client Quit]
PedramT has joined #ruby
SleepySensei has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ornerymoose has quit [Quit: ornerymoose]
idefine has joined #ruby
devoldmx has quit [Remote host closed the connection]
ornerymoose has joined #ruby
ibouvousaime has joined #ruby
SleepySensei has joined #ruby
idefine has quit [Ping timeout: 256 seconds]
lessless has joined #ruby
ornerymoose has quit [Quit: ornerymoose]
ornerymoose has joined #ruby
radgeRayden__ has joined #ruby
radgeRayden_ has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby
claw has quit [Ping timeout: 256 seconds]
djbkd_ has joined #ruby
CloCkWeRX has quit [Ping timeout: 272 seconds]
PedramT has quit [Remote host closed the connection]
PedramT has joined #ruby
djbkd_ has quit [Ping timeout: 256 seconds]
chouhoulis has quit [Ping timeout: 255 seconds]
startupality has quit [Quit: startupality]
Ishido has joined #ruby
rgtk has joined #ruby
idefine has joined #ruby
jackcom has joined #ruby
dsdeiz has joined #ruby
<dsdeiz> anyone happen to know of a gem to do spell and grammar check?
rgtk has quit [Ping timeout: 246 seconds]
claw has joined #ruby
startupality has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
idefine has quit [Ping timeout: 272 seconds]
pawnbox has joined #ruby
ur5us has joined #ruby
<Ox0dea> dsdeiz: Checking grammar beyond the very rudiments is actually a remarkably difficult problem.
Waheedi has joined #ruby
opencard has quit [Read error: Connection reset by peer]
PedramT_ has joined #ruby
moeabdol has joined #ruby
nofxx has quit [Ping timeout: 240 seconds]
<Ox0dea> The "best" option seems to be this wrapper around some online proofreader: https://github.com/subosito/gingerice
karapetyan has joined #ruby
<dsdeiz> sorry yeah probably just spelling and just realized that i need it to read markdown files
ornerymoose has quit [Quit: ornerymoose]
<Ox0dea> All Markdown syntax is symbolic, so you should be able to extract "words" with /\w+/ just fine.
nerium has quit [Quit: nerium]
PedramT has quit [Ping timeout: 265 seconds]
rippa has joined #ruby
<dsdeiz> ah awesome.. thx Ox0dea
<Ox0dea> Sure thing?
zast has quit [Remote host closed the connection]
<dsdeiz> yeah dunno if it'll work or not though any help is appreciated (cause i don't even know where to start in the first place) heh
gizless has joined #ruby
stannard has joined #ruby
yfeldblum has joined #ruby
gizmore has quit [Ping timeout: 240 seconds]
ibouvousaime has quit [Ping timeout: 246 seconds]
dionysus69 has joined #ruby
slackr has joined #ruby
stannard has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
<Ox0dea> dsdeiz: The simplest approach would be to create a Set containing some list of valid words, then report all those which can't be found therein.
<Ox0dea> Slightly more complex but efficient would be to use a Bloom filter.
<Ox0dea> Additionally, http://norvig.com/spell-correct.html is quite an enlightening read on the matter.
<Ox0dea> Or just use the wrapper around Hunspell. :P
Dimik has quit []
ehth77_ has joined #ruby
slackr has quit [Ping timeout: 260 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
SleepySensei has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ehth77_ has quit [Quit: Leaving]
ornerymoose has joined #ruby
gizmore has joined #ruby
gizmore|2 has joined #ruby
karapetyan has quit [Remote host closed the connection]
gizless has quit [Ping timeout: 256 seconds]
seitensei has joined #ruby
devoldmx has joined #ruby
ur5us has quit [Remote host closed the connection]
gizmore has quit [Ping timeout: 260 seconds]
arup_r has joined #ruby
djbkd has quit []
ur5us has joined #ruby
gambl0re has quit []
karapetyan has joined #ruby
howdoicomputer has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
seitensei has quit [Ping timeout: 240 seconds]
dsdeiz has quit [Ping timeout: 246 seconds]
symm- has joined #ruby
slackr has joined #ruby
<atmosx> Good morning
<atmosx> is it normal to serialize a file with Python and not being able to read it with Ruby?
xet7 has joined #ruby
devbug has quit [Read error: Connection reset by peer]
ruu has joined #ruby
howdoicomputer has quit [Ping timeout: 272 seconds]
<Ox0dea> atmosx: Are you trying to unpickle something with Ruby?
yfeldblum has quit [Remote host closed the connection]
<atmosx> Ox0dea: no, I'm using json
<Ox0dea> Then no, that's not normal.
chouhoulis has joined #ruby
<atmosx> I'm need a light-weight human readable file that will act as DB, but YAML (my first choice) produced by py27 PyYAML are hard to read/edit, then I tried msgpack same, now I'm trying json and I get this
<atmosx> "{\"prod00\": [\"client_stc\", \"client_demo\",
<atmosx> that's a sample o0fcourse not the entire dic/hash
devbug has joined #ruby
<atmosx> I
<atmosx> would love thse slashes to go away
jackcom has left #ruby [#ruby]
ur5us has quit [Remote host closed the connection]
<Ox0dea> >> (91..93).map(&:chr) # atmosx
<ruboto> Ox0dea # => ["[", "\\", "]"] (https://eval.in/487763)
<Ox0dea> The backslashes aren't "really there", so to speak; it's just how Ruby displays escaped characters.
<Ox0dea> Your JSON file doesn't actually contain the backslashes, right?
chouhoulis has quit [Ping timeout: 256 seconds]
<atmosx> Ox0dea: my bad, I was serializing twice!
<Ox0dea> Heh.
BaroMeter has joined #ruby
idefine has joined #ruby
blandflakes has joined #ruby
startupality has quit [Quit: startupality]
blandflakes has quit [Client Quit]
blackmesa has joined #ruby
Bloomer has joined #ruby
idefine has quit [Ping timeout: 256 seconds]
Bloomer has quit [Client Quit]
Waheedi has quit [Quit: Waheedi]
jottr has joined #ruby
Waheedi has joined #ruby
startupality has joined #ruby
PedramT_ has quit [Ping timeout: 260 seconds]
idefine has joined #ruby
PedramT has joined #ruby
cyfr0n has joined #ruby
arup_r has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 265 seconds]
startupality has quit [Client Quit]
blackmesa has quit [Ping timeout: 272 seconds]
idefine has quit [Ping timeout: 256 seconds]
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
suffice has joined #ruby
babblebre has quit [Quit: Connection closed for inactivity]
nanoz has joined #ruby
Jackneill has joined #ruby
PedramT has quit [Remote host closed the connection]
symm- has quit [Quit: Leaving...]
idefine has joined #ruby
PedramT has joined #ruby
symm- has joined #ruby
idefine has quit [Ping timeout: 256 seconds]
radgeRayden__ has quit [Read error: Connection reset by peer]
startupality has joined #ruby
karapetyan has quit [Remote host closed the connection]
radgeRayden__ has joined #ruby
gizmore|2 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
chouhoulis has joined #ruby
rgtk has joined #ruby
djbkd has joined #ruby
<Ox0dea> Is this okay? https://eval.in/487767
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
idefine has joined #ruby
chouhoulis has quit [Ping timeout: 272 seconds]
BaroMeter has quit [Ping timeout: 250 seconds]
karapetyan has joined #ruby
djbkd has quit [Ping timeout: 256 seconds]
bkxd has joined #ruby
troulouliou_div2 has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
idefine has quit [Ping timeout: 256 seconds]
startupality has quit [Quit: startupality]
cwong_on_irc has quit [Quit: Leaving.]
startupality has joined #ruby
PedramT has quit [Remote host closed the connection]
ss_much has quit [Quit: Connection closed for inactivity]
BaroMeter has joined #ruby
PedramT has joined #ruby
startupality has quit [Client Quit]
karapetyan has quit [Remote host closed the connection]
djbkd has joined #ruby
xet7 has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
roshanavand has joined #ruby
yardenbar has joined #ruby
djbkd has quit [Ping timeout: 256 seconds]
blackmesa has joined #ruby
karapetyan has quit [Remote host closed the connection]
nonopposition has quit [Remote host closed the connection]
RegulationD has joined #ruby
stevenxl has joined #ruby
stevenxl has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
stevenxl has quit [Client Quit]
xet7 has joined #ruby
RegulationD has quit [Ping timeout: 265 seconds]
idefine has joined #ruby
Snowy has joined #ruby
idefine has quit [Ping timeout: 256 seconds]
ruu has quit [Ping timeout: 272 seconds]
firstdayonthejob has joined #ruby
rodfersou has joined #ruby
spider-mario has joined #ruby
elaptics`away is now known as elaptics
AlphaAtom has joined #ruby
ruu has joined #ruby
nanoz has quit [Quit: <3]
yardenbar has quit [Ping timeout: 256 seconds]
yardenbar has joined #ruby
seitensei has joined #ruby
seitensei has quit [Changing host]
seitensei has joined #ruby
AKASkip has joined #ruby
devoldmx has joined #ruby
ruu_ has joined #ruby
msankhala has joined #ruby
ruu has quit [Read error: No route to host]
gizmore has joined #ruby
InvGhost has joined #ruby
seitensei has quit [Ping timeout: 246 seconds]
howdoicomputer has joined #ruby
dionysus69 has quit [Ping timeout: 272 seconds]
devoldmx has quit [Ping timeout: 256 seconds]
mikecmpbll has joined #ruby
ledestin has joined #ruby
yardenbar has quit [Ping timeout: 256 seconds]
howdoicomputer has quit [Ping timeout: 255 seconds]
moei has quit [Read error: Connection reset by peer]
moei has joined #ruby
chouhoulis has joined #ruby
karapetyan has joined #ruby
PedramT has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 260 seconds]
jottr has joined #ruby
karapetyan has quit [Ping timeout: 255 seconds]
moeabdol has quit [Ping timeout: 255 seconds]
blandflakes has joined #ruby
jottr has quit [Ping timeout: 260 seconds]
blandflakes has quit [Client Quit]
karapetyan has joined #ruby
xet7 has quit [Ping timeout: 256 seconds]
claw has quit [Read error: Connection reset by peer]
claw has joined #ruby
BaroMeter has quit [Remote host closed the connection]
moeabdol has joined #ruby
AKASkip has quit [Ping timeout: 260 seconds]
PedramT has joined #ruby
karapetyan has quit [Remote host closed the connection]
smactive has joined #ruby
rodfersou has quit [Quit: leaving]
guacamole has joined #ruby
PedramT has quit [Ping timeout: 260 seconds]
xet7 has joined #ruby
troulouliou_div2 has quit [Quit: Leaving]
<shevy> looks like java
smactive has quit [Ping timeout: 255 seconds]
PedramT has joined #ruby
karapetyan has joined #ruby
moeabdol has quit [Quit: WeeChat 1.3]
moeabdol has joined #ruby
moeabdol has quit [Client Quit]
moeabdol has joined #ruby
Snowy has quit [Remote host closed the connection]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
roshanavand has quit [Remote host closed the connection]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ruu_ has quit [Remote host closed the connection]
psy_ has quit [Ping timeout: 255 seconds]
The_Phoenix has joined #ruby
karapetyan has quit [Remote host closed the connection]
dionysus69 has joined #ruby
The_Phoenix has quit [Ping timeout: 240 seconds]
jaxxstorm has quit [Read error: Connection reset by peer]
sandstrom has joined #ruby
ibouvousaime has joined #ruby
djbkd has joined #ruby
PedramT has quit [Remote host closed the connection]
FernandoBasso has joined #ruby
djbkd has quit [Ping timeout: 256 seconds]
stamina has joined #ruby
basex has joined #ruby
chouhoulis has joined #ruby
InvGhost has quit [Read error: Connection reset by peer]
pawnbox has quit [Remote host closed the connection]
InvGhost has joined #ruby
dlitvak has joined #ruby
lapide_viridi has joined #ruby
<pontiki> Ox0dea: that breaks my febrile brain
pawnbox has joined #ruby
psy_ has joined #ruby
psy_ has quit [Max SendQ exceeded]
psy_ has joined #ruby
chouhoulis has quit [Ping timeout: 265 seconds]
dlitvak has quit [Ping timeout: 240 seconds]
ornerymoose has quit [Quit: ornerymoose]
basex has quit [Quit: basex]
moeabdol has quit [Ping timeout: 246 seconds]
SCHAAP137 has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
incomprehensibly is now known as glowcoil
dlitvak has joined #ruby
skade has joined #ruby
xet7 has quit [Ping timeout: 260 seconds]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
varunwachaspati has joined #ruby
msankhala has quit [Quit: This computer has gone to sleep]
jackcom has joined #ruby
<jackcom> :)
<HashNuke> Hello everyone ~!
<HashNuke> What's the different between using Mechanize and RestClient+Nokogiri? Does using Mechanize have any advantage?
<HashNuke> I don't have any forms to click or submit.
Neronfapper has quit [Read error: Connection reset by peer]
Zackio has quit [Quit: C-x C-c]
moeabdol has joined #ruby
AlphaAtom has joined #ruby
ElFerna has joined #ruby
Zackio has joined #ruby
symm- has quit [Quit: Leaving...]
mahk has quit [Quit: Quit.]
codecop has joined #ruby
blackmesa has joined #ruby
colegatron has quit [Ping timeout: 260 seconds]
n008f4g_ has joined #ruby
symm- has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
skakri has quit [Ping timeout: 246 seconds]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
edwinvdgraaf has quit [Read error: Connection reset by peer]
edwinvdgraaf has joined #ruby
root_murdoc has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
devFrederick has quit [Remote host closed the connection]
PedramT has joined #ruby
FooMunki has joined #ruby
msankhala has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
seitensei has joined #ruby
seitensei has quit [Changing host]
seitensei has joined #ruby
edwinvdgraaf has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
robbyoconnor has joined #ruby
colegatron has joined #ruby
symm- has quit [Ping timeout: 240 seconds]
symm- has joined #ruby
root_murdoc has quit [Quit: Leaving]
dlitvak_ has joined #ruby
tk__ has joined #ruby
millerti has joined #ruby
root_murdoc has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
root_murdoc has quit [Max SendQ exceeded]
sandstrom has joined #ruby
root_murdoc has joined #ruby
howdoicomputer has joined #ruby
root_murdoc has quit [Max SendQ exceeded]
ht__ has joined #ruby
ht__ has quit [Client Quit]
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
seitensei has quit [Ping timeout: 256 seconds]
dlitvak has quit [Ping timeout: 256 seconds]
InvGhost has quit [Read error: Connection reset by peer]
root_murdoc has joined #ruby
devoldmx has quit [Ping timeout: 260 seconds]
root_murdoc has quit [Max SendQ exceeded]
ht__ has joined #ruby
InvGhost has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
lessless has joined #ruby
root_murdoc has joined #ruby
edwinvdgraaf has joined #ruby
skakri has joined #ruby
root_murdoc has quit [Client Quit]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
howdoicomputer has quit [Ping timeout: 246 seconds]
PedramT has quit [Ping timeout: 272 seconds]
chouhoulis has joined #ruby
slucx has joined #ruby
<shevy> pontiki your feline brain?
<shevy> HashNuke dealing with XML always made me sad
<shevy> mechanize made me happier
hanmac has quit [Ping timeout: 240 seconds]
chouhoulis has quit [Ping timeout: 256 seconds]
devbug has quit [Ping timeout: 260 seconds]
jottr has joined #ruby
msankhala has quit [Quit: This computer has gone to sleep]
InvGhost has quit [Ping timeout: 265 seconds]
pandaant has quit [Remote host closed the connection]
Idakyne has joined #ruby
jottr has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
FernandoBasso has quit [Quit: Leaving]
blandflakes has joined #ruby
blandflakes has quit [Client Quit]
root_murdoc has joined #ruby
root_murdoc has quit [Max SendQ exceeded]
lxsameer has quit [Quit: Leaving]
charliesome has quit [Client Quit]
jottr has joined #ruby
root_murdoc has joined #ruby
root_murdoc has quit [Max SendQ exceeded]
bronson has quit [Remote host closed the connection]
hanmac has joined #ruby
root_murdoc has joined #ruby
sdothum has joined #ruby
root_murdoc has quit [Max SendQ exceeded]
Bellthoven has joined #ruby
FernandoBasso has joined #ruby
jottr has quit [Ping timeout: 272 seconds]
charliesome has joined #ruby
Bellthoven has quit [Ping timeout: 260 seconds]
zanzarel has joined #ruby
fullofcaffeine has joined #ruby
charliesome has quit [Client Quit]
InvGhost has joined #ruby
jottr has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
c355e3b has joined #ruby
stamina has quit [Quit: WeeChat 1.3]
lapide_viridi has quit [Quit: Leaving]
jottr has quit [Ping timeout: 246 seconds]
nanoz has joined #ruby
yfeldblum has joined #ruby
djbkd has joined #ruby
ElFerna has quit [Ping timeout: 246 seconds]
Idakyne has quit [Ping timeout: 272 seconds]
edwinvdgraaf has quit [Read error: Connection reset by peer]
decoponio has joined #ruby
edwinvdgraaf has joined #ruby
djbkd has quit [Ping timeout: 256 seconds]
Bellthoven has joined #ruby
ramfjord has joined #ruby
minimalism has quit [Quit: leaving]
p0wn3d_ has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
DenysLins has joined #ruby
Bellthoven has quit [Ping timeout: 240 seconds]
radgeRayden__ has quit [Read error: Connection reset by peer]
radgeRayden__ has joined #ruby
Chau has joined #ruby
dlitvak_ has quit [Remote host closed the connection]
symm- has quit [Quit: Leaving...]
jottr has quit [Ping timeout: 246 seconds]
kobain has joined #ruby
ElFerna has joined #ruby
ht__ has quit [Quit: Konversation terminated!]
ht__ has joined #ruby
dlitvak has joined #ruby
ruid has joined #ruby
ruid has quit [Changing host]
ruid has joined #ruby
dlitvak has quit [Remote host closed the connection]
dlitvak has joined #ruby
agent_white has quit [Quit: leaving]
madcodes has joined #ruby
ht__ has quit [Client Quit]
ElFerna has quit [Ping timeout: 272 seconds]
mrtomme has quit [Ping timeout: 246 seconds]
edwinvdgraaf has quit [Read error: Connection reset by peer]
edwinvdgraaf has joined #ruby
d0nn1e has quit [Ping timeout: 265 seconds]
ElFerna has joined #ruby
mrtomme has joined #ruby
chouhoulis has joined #ruby
akem has joined #ruby
d0nn1e has joined #ruby
wildlander has joined #ruby
ruid has quit [Ping timeout: 265 seconds]
ElFerna has quit [Ping timeout: 260 seconds]
tomphp has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
dlitvak has quit [Remote host closed the connection]
kirun has joined #ruby
basex has joined #ruby
last_staff has joined #ruby
prestorium has joined #ruby
Chau has quit [Quit: Leaving]
AlphaAtom has joined #ruby
nateberkopec has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
AlphaAtom has joined #ruby
millerti has joined #ruby
idefine has joined #ruby
RegulationD has joined #ruby
idefine_ has joined #ruby
idefine has quit [Ping timeout: 240 seconds]
RegulationD has quit [Ping timeout: 255 seconds]
houhouli_ has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
linduxed has quit [Ping timeout: 240 seconds]
agit0 has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
houhoulis has quit [Ping timeout: 272 seconds]
mary5030 has joined #ruby
The_Phoenix has joined #ruby
linduxed has joined #ruby
idefine_ has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
edwinvdgraaf has quit [Read error: Connection reset by peer]
edwinvdgraaf has joined #ruby
Vitor has joined #ruby
jottr has joined #ruby
dionysus69 has quit [Remote host closed the connection]
agit0 has quit [Quit: zzzZZZ….]
dionysus69 has joined #ruby
seitensei has joined #ruby
devoldmx has joined #ruby
basex has quit [Quit: basex]
basex has joined #ruby
chipotle has joined #ruby
idefine has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
Vitor has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
howdoicomputer has joined #ruby
devoldmx has quit [Ping timeout: 255 seconds]
seitensei has quit [Ping timeout: 255 seconds]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
basex has quit [Quit: basex]
fullofcaffeine has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
prillian5 has joined #ruby
howdoicomputer has quit [Ping timeout: 272 seconds]
<prillian5> how can I solve this: http://pastebin.com/zwxa1MnM
<ruboto> prillian5, we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
idefine has quit [Ping timeout: 260 seconds]
basex has joined #ruby
speaking2ode has quit [Ping timeout: 240 seconds]
nonopposition has joined #ruby
Jackneill has quit [Quit: Leaving]
dlitvak has joined #ruby
basex has quit [Client Quit]
chouhoulis has joined #ruby
<Mon_Ouie> If the gem dependencies are accurate you can't use this version of the money gem with that version of Rails
dorei has joined #ruby
basex has joined #ruby
<Mon_Ouie> However it might be that the money gem can still run with i18n v0.7.0 despite the stronger dependency, you could try editing the gemspec and running its tests to see if it works
<prillian5> ok, find out... in a GEMFILE of a plugin, there is an if condition for $RUBY_VERSION.
<prillian5> But this ENV-Var is not set in system
<prillian5> how can I set this (maybe for other plugins to use it).
dlitvak has quit [Remote host closed the connection]
<prillian5> Manualy export it, or is there an "install"-way with ruby
stannard has joined #ruby
basex has quit [Client Quit]
chouhoulis has quit [Ping timeout: 255 seconds]
chipotle has quit [Ping timeout: 246 seconds]
fexilal has joined #ruby
basex has joined #ruby
n008f4g_ has quit [Ping timeout: 246 seconds]
basex has quit [Client Quit]
yashinbasement has joined #ruby
basex has joined #ruby
blandflakes has joined #ruby
iateadonut has joined #ruby
blandflakes has quit [Client Quit]
chipotle has joined #ruby
basex has quit [Client Quit]
lightstalker has quit [Ping timeout: 265 seconds]
Jardayn has joined #ruby
basex has joined #ruby
araujo has quit [Read error: Connection timed out]
bronson has joined #ruby
absolutejam has quit [Ping timeout: 256 seconds]
lightstalker has joined #ruby
speaking1ode has joined #ruby
cdg has joined #ruby
_ko1 has joined #ruby
basex has quit [Client Quit]
ht__ has joined #ruby
idefine has joined #ruby
basex has joined #ruby
absolutejam has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
mary5030 has quit [Remote host closed the connection]
basex has quit [Client Quit]
nerium has joined #ruby
_axx has joined #ruby
cdg has quit [Ping timeout: 260 seconds]
weemsledeux has joined #ruby
weemsledeux has quit [Client Quit]
<shevy> prillian5 you could always add to ENV in a .rb file
aryaching has joined #ruby
blandflakes has joined #ruby
thisirs has joined #ruby
speaking1ode has quit [Ping timeout: 246 seconds]
skade has joined #ruby
jackcom has left #ruby [#ruby]
djbkd has joined #ruby
cdg has joined #ruby
basex has joined #ruby
s00pcan has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has quit [Ping timeout: 256 seconds]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
speaking1ode has joined #ruby
PedramT has joined #ruby
Jackneill has joined #ruby
moeabdol has quit [Ping timeout: 260 seconds]
karapetyan has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
sankaber has joined #ruby
edwinvdgraaf has joined #ruby
Bellthoven has joined #ruby
FernandoBasso has quit [Ping timeout: 246 seconds]
PedramT_ has joined #ruby
idefine has quit [Remote host closed the connection]
speaking1ode has quit [Quit: Lost terminal]
FernandoBasso has joined #ruby
speaking1ode has joined #ruby
PedramT has quit [Ping timeout: 265 seconds]
Guest80357 has joined #ruby
mistermocha has joined #ruby
akem has quit [Remote host closed the connection]
edwinvdgraaf has quit [Read error: Connection reset by peer]
edwinvdgraaf has joined #ruby
Bellthoven has quit [Ping timeout: 265 seconds]
PedramT_ has quit [Ping timeout: 272 seconds]
n008f4g_ has joined #ruby
yashinbasement has quit [Quit: Leaving]
tk__ has quit [Quit: ばいばい]
puria has quit [Remote host closed the connection]
idefine has joined #ruby
willywos has joined #ruby
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
araujo has quit [Max SendQ exceeded]
davedev24 has joined #ruby
last_staff has quit [Read error: Connection reset by peer]
last_staff has joined #ruby
blandflakes has joined #ruby
blandflakes has quit [Client Quit]
willywos has quit [Client Quit]
ht__ has quit [Quit: Konversation terminated!]
ht__ has joined #ruby
prestorium_ has joined #ruby
guacamole has joined #ruby
guacamole has quit [Client Quit]
idefine has quit [Ping timeout: 255 seconds]
bugo has joined #ruby
yardenbar has joined #ruby
<bugo> I have a stupid question. When using bundle how to debug what happened when building native extensions fail. For example: https://gist.github.com/MartynasM/5020786b139168ad6c5d
ht__ has quit [Client Quit]
<shevy> bugo that is a common problem when it comes to native extensions
ht__ has joined #ruby
prestorium has quit [Ping timeout: 246 seconds]
<shevy> one hint is in that file you showed though: /usr/bin/ld: cannot find -lgmp
<shevy> so the libgmp.so was not found
prillian5 has quit [Quit: Konversation terminated!]
prestorium_ is now known as prestorium
mrtomme has quit [Ping timeout: 246 seconds]
<bugo> Oh yea! That one was not so hard :( sorry I asked :( Should have read everything in detail first
symm- has joined #ruby
prestorium has quit [Quit: Leaving]
aryaching has quit []
<bugo> tnx shevy !
prestorium has joined #ruby
mrtomme has joined #ruby
karapetyan has quit [Remote host closed the connection]
kobain has quit [Ping timeout: 240 seconds]
Dry_Lips has joined #ruby
yardenbar has quit [Ping timeout: 260 seconds]
willywos has joined #ruby
mistermocha has quit [Remote host closed the connection]
cwong_on_irc has joined #ruby
skakri has quit [Ping timeout: 256 seconds]
nateberkopec has joined #ruby
idefine has joined #ruby
pdoherty has joined #ruby
mistermocha has joined #ruby
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
idefine has quit [Ping timeout: 256 seconds]
willywos has quit [Quit: Textual IRC Client: www.textualapp.com]
jottr has joined #ruby
ht__ has quit [Quit: Konversation terminated!]
roshanavand has joined #ruby
_stu_ has joined #ruby
atomical has joined #ruby
kobain has joined #ruby
kobain has quit [Changing host]
kobain has joined #ruby
ht__ has joined #ruby
mistermocha has quit [Ping timeout: 272 seconds]
rgtk has quit [Remote host closed the connection]
sandstrom has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
nofxx has joined #ruby
IrishGringo has joined #ruby
mistermocha has joined #ruby
Guest80357 has left #ruby [#ruby]
davedev2_ has joined #ruby
Waheedi has quit [Quit: Waheedi]
davedev24 has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
ht__ has quit [Quit: Konversation terminated!]
stannard has quit [Remote host closed the connection]
mary5030 has joined #ruby
pawnbox has quit [Remote host closed the connection]
arup_r has joined #ruby
pawnbox has joined #ruby
mistermocha has quit [Ping timeout: 272 seconds]
ht__ has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
yardenbar has joined #ruby
AlphaAtom has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
skakri has joined #ruby
sumark_ has quit [Remote host closed the connection]
sumark has joined #ruby
diegoviola has joined #ruby
cassioscabral has joined #ruby
dwfait has joined #ruby
cajone_afk is now known as cajone
nerium has quit [Quit: nerium]
slucx has quit [Ping timeout: 246 seconds]
seitensei has joined #ruby
devoldmx has joined #ruby
dwfait has quit [Ping timeout: 240 seconds]
dwfait_ has joined #ruby
ht__ has quit [Quit: Konversation terminated!]
SenpaiSilver has quit [Read error: Connection reset by peer]
ht__ has joined #ruby
yardenbar has quit [Ping timeout: 246 seconds]
howdoicomputer has joined #ruby
devoldmx has quit [Ping timeout: 272 seconds]
seitensei has quit [Ping timeout: 256 seconds]
atomical_ has joined #ruby
stannard has joined #ruby
ramfjord has joined #ruby
prestorium has quit [Read error: Connection reset by peer]
howdoicomputer has quit [Ping timeout: 240 seconds]
atomical has quit [Ping timeout: 240 seconds]
dwfait_ has quit [Ping timeout: 240 seconds]
cassioscabral has quit [Quit: cassioscabral]
startupality has joined #ruby
prestorium has joined #ruby
startupality has quit [Client Quit]
dlitvak has joined #ruby
startupality has joined #ruby
chipotle has quit [Quit: cheerio]
idefine has joined #ruby
yardenbar has joined #ruby
dwfait has joined #ruby
startupality has quit [Client Quit]
doodleha_ has joined #ruby
dlitvak has quit [Remote host closed the connection]
symm- has quit [Quit: Leaving...]
Yzguy has joined #ruby
hesco has joined #ruby
rgtk has joined #ruby
<dwfait> Hello all. Does anyone have any resources on getting into the internals of Ruby? I’ve tried googling, but most things come up developing with ruby, not ruby itself.
chipotle has joined #ruby
idefine has quit [Ping timeout: 256 seconds]
<hesco> I'm having issues on a two node Vagrantfile which are explained fully here: https://gist.github.com/hesco/50434ae9b36b1b422e97 Can anyone please lend a moment to suggest what it is I might be getting wrong here? Its probably more of a ruby issue, than a vagrant issue, but I'm not entirely sure about that.
<Ox0dea> dwfait: Are you quite fluent in C, then?
<dwfait> So far I’ve been compiling ruby with my own C methods and having a bit of fun, but some overviews of the internal structures like what is an ID versus a Symbol would be good
RegulationD has joined #ruby
<dwfait> I have a history in C/C++, yeah
hxegon has joined #ruby
<dwfait> It’s the abstractions and getting to grips with the large codebase I’d like some pointers with :)
idefine has joined #ruby
<dwfait> I’m looking through that at the moment, it’s been quite helpful
root_murdoc has joined #ruby
root_murdoc has quit [Max SendQ exceeded]
<Ox0dea> Some efforts have been made to translate it into English, but none are complete.
root_murdoc has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
yardenbar has quit [Ping timeout: 255 seconds]
<Ox0dea> https://ruby-hacking-guide.github.io/ seems the best attempt.
root_murdoc has quit [Max SendQ exceeded]
startupality has joined #ruby
<Ox0dea> Best is really to just dive in with a good editor.
ramfjord has quit [Ping timeout: 240 seconds]
<dwfait> Cool, thanks - haven’t seen that one, I’ll check it out.
atomical has joined #ruby
RegulationD has quit [Ping timeout: 265 seconds]
<dwfait> My second question - I’ve heard a large goal for Ruby 3 is making the language faster. Are there any benchmarking suites I can run against ruby to test out changes?
<dwfait> Would working on a suite like that be a good contribution for ruby?
djbkd has joined #ruby
idefine has quit [Ping timeout: 272 seconds]
dionysus69 has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
doodleha_ has quit [Remote host closed the connection]
<Ox0dea> I don't think such a thing exists, but I suspect it'd be a welcome addition.
idefine has joined #ruby
<Ox0dea> There's always The Computer Language
IrishGringo has quit [Ping timeout: 240 seconds]
atomical_ has quit [Ping timeout: 265 seconds]
startupality has quit [Quit: startupality]
sandstrom has joined #ruby
<chrisseaton> havenwood dwfait: https://github.com/jruby/bench9000
<havenwood> chrisseaton: :D
<chrisseaton> but beware - it's designed to be scientifically rigorous, not easy to use
firstdayonthejob has quit [Quit: WeeChat 1.4-dev]
<Ox0dea> Holy Graal!
<chrisseaton> sample output is here http://jruby.org/bench9000/
djbkd has quit [Ping timeout: 256 seconds]
startupality has joined #ruby
firstdayonthejob has joined #ruby
idefine has quit [Ping timeout: 256 seconds]
idefine has joined #ruby
IrishGringo has joined #ruby
stannard has quit [Remote host closed the connection]
<dwfait> Thanks all, I’ll get stuck into those
dwfait has quit [Quit: dwfait]
idefine has quit [Ping timeout: 265 seconds]
ht__ has quit [Quit: Konversation terminated!]
<hesco> under what circumstances would a method remember an argument from a previous invocation, rather than accept and process the new argument. That is the behavior I am seeing and I have refactored this code in multiple ways without changing this observed behavior.
bitri has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
idefine has joined #ruby
<toretore> ?code hesco
<ruboto> hesco, We can't help you without your code, please post it to https://gist.github.com
dlitvak has joined #ruby
bitri has quit [Client Quit]
<hesco> thanks toretore: any ideas would be appreiated.
djbkd has joined #ruby
idefine_ has joined #ruby
DenysLins has quit [Quit: Saindo]
<Ox0dea> >> def foo x; (@x ||= x) * 2; end; [foo(21), foo(-6)] # hesco
<ruboto> Ox0dea # => [42, 42] (https://eval.in/487971)
<havenwood> Memoiiiize it, don't critiziiiize it. Memoize it and will advertise it.
<Ox0dea> That answers your question at its barest, but I can't say how it relates to your Vagrant problem.
idefine has quit [Ping timeout: 260 seconds]
solars has joined #ruby
djbkd has quit [Ping timeout: 240 seconds]
chipotle has quit [Quit: cheerio]
<shevy> Memoiiiiiiiiiiiiiize
<shevy> what is the topic, anyway
<toretore> hesco, i assume your problem is line 55 and the method on line 8?
idefine_ has quit [Ping timeout: 272 seconds]
<toretore> hesco, first thing that stands out is you're assigning to a global variable on line 10
<havenwood> shevy: good mornin'
<hesco> toretore: yes, method at line 8, invoked from line 55
bitri has joined #ruby
Bellthoven has joined #ruby
<hesco> The $ sigal is for a global, a : sigal is for a symbol and no signal is a local variable, is that right?
bitri has quit [Remote host closed the connection]
symm- has joined #ruby
<toretore> hesco, yes
<Ox0dea> *sigil
<hesco> on, so I certainly intend a local variable in this context.
<hesco> testing again. if I can. my build depends on our vpn I suspect, although I am unable to access IRC from the office.
<toretore> hesco, are you sure this does what you think it does? `Vagrant.configure(2){|c| nodes.each{|n| config.vm.provision 'shell', inline: dynamic_config_for(node) } }`
<toretore> i think you're just overwriting the vm config
<hesco> toretore: yes, it will successfully configure a nic on the machines, unfortunately it assigned both machines the same IP.
<toretore> you are not defining multiple machines
<toretore> oh nm
idefine has joined #ruby
<toretore> you are
<toretore> no wait
<toretore> you are using config, not jenkins
Bellthoven has quit [Ping timeout: 246 seconds]
<toretore> config = global, jenkins = current machine
ElFerna has joined #ruby
<toretore> so: you are overwriting or adding to the global config, not the per-machine config
<hesco> yes: config.vm.define "#{nodes[host]['host']}" do |jenkins|
<hesco> jenkins is the current machine
ibouvousaime has quit [Ping timeout: 255 seconds]
<toretore> jenkins.vm.provision
<toretore> move all config.* out of the each loop
<toretore> then it will be clear
idefine has quit [Ping timeout: 255 seconds]
<shevy> havenwood I could need some coffee
<adaedra> ?coffee
<ruboto> here's a coffee, you seem to need it: ☕
<Yzguy> hey hesco maybe this can give you something to reference? https://github.com/yzguy/vagrant-puppet/blob/master/Vagrantfile
<Yzguy> you shouldn't need to do all that crazy network script stuff
hxegon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<toretore> hesco, yes, and now it won't work for reasons that should be clear
govg has quit [Ping timeout: 246 seconds]
<toretore> actually, you seem to just have changed random words so nothing makes sense any more
IrishGringo has quit [Ping timeout: 255 seconds]
<pipework> toretore: That's how I code and it seems to work.
<hesco> Yzguy: as explained in https://gist.github.com/hesco/50434ae9b36b1b422e97#file-010-problem-statement, I believe I may be working with a crippled base image. I had filed bug reports on Mitchell Hashimoto's project thinking it was his suse/cap/network_something.rb code, but now I am blaming the ISO I got from operations when I built our base box.
<toretore> pipework, if given enough time
<Yzguy> yeah i read that, i may have mis understood?
<Yzguy> I think i have run into the same issue
<Yzguy> before
<toretore> hesco, as i've already explained: config.vm are *global options*; jenkins.vm are *per machine options*
<toretore> hesco, that should be enough for you to fix it
<hesco> toretore: well the reason which seems a bit murky to me is: seems lke am no longer iterating across my provisioning code for each machine.
<toretore> i don't know what else i can say to make it clearer
<toretore> you iterate through the `nodes` to make per-machine configuration. the per-machine configuration is done on the `jenkins` object
<toretore> the `config` object is *global* configuration that is applied to *all* machines
<toretore> if you have *per machine* configuration, use the *jenkins* object
zzz has joined #ruby
<hesco> but so I need to bring my shell provisioner inside the jenkins loop then
<hesco> ok, trying this again.
ashemark has joined #ruby
<ashemark> Hi!
<Ox0dea> Hey, ashemark!
<toretore> start with a new file, then write it from the ground up, adding your configuration from the old file and try to understand each step as you're doing it
nerium has joined #ruby
<hesco> toretore: I think this updated version better reflects your advise: https://gist.github.com/hesco/50434ae9b36b1b422e97#file-200-vagrantfile-refactored
idefine has joined #ruby
<toretore> no, that makes no sense
hxegon has joined #ruby
<toretore> you don't have the each loop
<toretore> as i said, start fresh
<ashemark> Ox0dea: hey!
<toretore> and don't just move things around randomly
TheBloke- has joined #ruby
peteyg_ has joined #ruby
ItSANg___ has joined #ruby
Rutix`away has joined #ruby
Rutix`away has quit [Changing host]
Rutix`away has joined #ruby
Jet4Fire_ has joined #ruby
matled- has joined #ruby
houhoulis has joined #ruby
symm-_ has joined #ruby
fumduq has joined #ruby
Fridtjof_ has joined #ruby
The_Phoenix1 has joined #ruby
matled has quit [Read error: Connection reset by peer]
atumzin has quit [Read error: Connection reset by peer]
fumduq- has quit [Read error: Connection reset by peer]
symm- has quit [Ping timeout: 272 seconds]
slackr has quit [Ping timeout: 272 seconds]
wjimenez5271 has quit [Ping timeout: 272 seconds]
ItSANgo has quit [Ping timeout: 272 seconds]
nunchuck has quit [Ping timeout: 272 seconds]
Icey has quit [Ping timeout: 272 seconds]
ebertx has quit [Ping timeout: 272 seconds]
Fridtjof has quit [Ping timeout: 272 seconds]
bahar has quit [Ping timeout: 272 seconds]
Rutix has quit [Ping timeout: 272 seconds]
matled- is now known as matled
sankaber has joined #ruby
TheBloke has quit [Ping timeout: 240 seconds]
wjimenez5271 has joined #ruby
slackr has joined #ruby
Lildirt has quit [Ping timeout: 272 seconds]
<Yzguy> hesco, ill send you somethign in a minute
<Yzguy> that I think will work out for you
nunchuck has joined #ruby
<pipework> Maybe it'll be a hug!
atumzin has joined #ruby
atumzin has quit [Changing host]
atumzin has joined #ruby
The_Phoenix has quit [Ping timeout: 272 seconds]
Drakevr has quit [Ping timeout: 272 seconds]
Morrolan has quit [Ping timeout: 272 seconds]
peteyg has quit [Ping timeout: 272 seconds]
Shapeshifter has quit [Ping timeout: 272 seconds]
santacat has quit [Ping timeout: 272 seconds]
<ashemark> I want to parse and append to some html files..
Drakevr_ has joined #ruby
Jardayn has quit [Read error: Connection reset by peer]
idefine has quit [Ping timeout: 246 seconds]
Shapeshi1ter has joined #ruby
cats has joined #ruby
<ashemark> I've found nokogiri which can help parse, but how do I edit files in place, 'the ruby way'?
houhouli_ has quit [Ping timeout: 272 seconds]
Jet4Fire has quit [Ping timeout: 272 seconds]
<hesco> thanks Yzguy: look forward to seeing that.
Morrolan has joined #ruby
Lildirt has joined #ruby
<hesco> toretore: I see what you were saying. I think this cleans up the sloppiness: https://gist.github.com/hesco/50434ae9b36b1b422e97#file-200-vagrantfile-refactored
zotherstupidguy has joined #ruby
<toretore> ashemark, it's not "the ruby way", it's "the nokogiri way"; meaning: you are limited to what the nokogiri api lets you do
<Yzguy> it kinda looks like you're trying to condense and handle so much in as little code as possible, which is gonna be hard to manage
ebertx has joined #ruby
sjums_ has joined #ruby
<toretore> hesco, not at all. do you understand what i'm trying to tell you about config and jenkins and the each loop?
<ashemark> toretore: of course, but I was thinking on the lines of sed for ruby..
devbug has joined #ruby
<Yzguy> and we can handle the network interface issue seperately, i think i know how to solve it
<toretore> ashemark, do you use sed to parse html?
Waheedi has joined #ruby
cdg has quit [Remote host closed the connection]
sjums has quit [Ping timeout: 272 seconds]
<ashemark> toretore: want to combine nokogiri and sed
<toretore> ashemark, how would that work?
<ashemark> thought as awesome as ruby is, there must be already be a nice method/library
last_staff has quit [Read error: Connection reset by peer]
zzz_ has joined #ruby
<ashemark> toretore: edit/append to html files at certain places
<hesco> toretore: what I understand is that: the each loop provides me a jenkins object to configure each vagrant box
last_staff has joined #ruby
<toretore> ashemark, html parsing and editing is very complex, it's not something that can be distilled into a "nice method/library"
<toretore> hesco, no, the each loop doesn't, but the config.vm.define does
gambl0re has joined #ruby
<ashemark> toretore: ok..
<toretore> hesco, so inside the each loop you use that to define each machine
<hesco> and further that the config object needs to be global and will apply to every node in the Vagrantfile
<toretore> hesco, then you pass a block to define which lets you configure that particular machine
<toretore> hesco, that is true
dmolina has joined #ruby
zzz has quit [Ping timeout: 240 seconds]
<toretore> ashemark, i suggest: 1) parse html with nokogiri into a dom tree; 2) mutate nokogiri dom tree; 3) write this dom tree to a file or whatever
devbug has quit [Ping timeout: 240 seconds]
<ashemark> toretore: that's the process I'm contemplating right now..
<toretore> ashemark, the "in place stream editing" of sed is not fit for html
ramfjord has joined #ruby
<ashemark> hmm ok
<hesco> toretore: sorry, of course, the each loop iterates over my hosts hash, config.vm.define exposes the jenkins object.
<toretore> hesco, yes. and then inside that block put your per-machine config, and *only* that
<toretore> hesco, it might be easier if you just manually config.vm.define for each machine and use static configuration
<hesco> defining the jenkins object inside the hash iterations allows me to apply the values of the hash keys to customize each node defined by the jenkins object.
<toretore> yes
<Yzguy> much cleaner, seperate config per VM, a lot easier to manage
<Yzguy> instead of having a hash where you are doing conditionals to define if something gets applied or not
sjums_ is now known as sjums
hxegon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Yzguy> also uses vagrant-hosts plugin to handle /etc/hosts file so they can resolve each other
<toretore> >> require 'net/http'; print Net::HTTP.get('http://httpbin.org/').gsub(/HTTP/, 'FTP') # ashemark
<ruboto> toretore # => undefined method `hostname' for "http://httpbin.org/":String (NoMethodError) ...check link for more (https://eval.in/487974)
<toretore> shit
<toretore> >> require 'net/http'; require 'uri'; print Net::HTTP.get(URI 'http://httpbin.org/').gsub(/HTTP/, 'FTP') # ashemark
<ruboto> toretore # => (https://eval.in/487975)
iateadonut has quit [Quit: Leaving.]
nanoz has quit [Read error: Connection reset by peer]
<Yzguy> hopefully that helps, like I said https://github.com/yzguy/vagrant-puppet would be a good reference for you on how to accomplish some stuff and organize your code for provisioning
<toretore> hesco, what Yzguy has is much easier to reason about when you don't know ruby, i suggest you use that
<ashemark> toretore: ?
stevenxl has joined #ruby
stevenxl has quit [Changing host]
stevenxl has joined #ruby
<Yzguy> yeah and really, the work you're going to do with the VMs is more important that the vagrant process
last_staff has quit [Remote host closed the connection]
<Yzguy> so dont try to complicate it
last_staff has joined #ruby
hxegon has joined #ruby
idefine has joined #ruby
PedramT has joined #ruby
idefine_ has joined #ruby
agit0 has joined #ruby
zzz_ has quit [Quit: Leaving...]
<hesco> toretore: thanks, read that, had not seen the vagrant-hosts plugin trick before. That looks useful. Although in addition to sorting out this multi-box issue, I also have an interest in honing my developing ruby skills to DRY up my code a bit.
<Yzguy> definitely a good goal, but i wouldn't try it in the context of vagrant, do it in some ruby scripts
rippa has joined #ruby
<toretore> hesco, don't use any plugins and don't do anything clever; just type everything out manually
<toretore> hesco, once you have something that works, you can improve on it
<toretore> dry is overrated
ashemark has left #ruby ["WeeChat 1.3"]
idefine has quit [Ping timeout: 256 seconds]
ElFerna has quit [Ping timeout: 255 seconds]
howdoicomputer has joined #ruby
IrishGringo has joined #ruby
idefine_ has quit [Ping timeout: 260 seconds]
PedramT has quit [Ping timeout: 260 seconds]
fullofcaffeine has joined #ruby
ramfjord has quit [Ping timeout: 255 seconds]
lacuna has joined #ruby
<hesco> I started with something that worked, cp'd Vagrantfile Vagrantfile.jenkins_master, refactored that till I had something which worked and cp'd Vagrantfile Vagrantfile.jenkins_slave, then did a diff on those two files and proceeded to integrate them into a single Vagrantfile, although Yzguy seems to suggest that I skipped a step along the refactoring path.
hxegon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
stuartb has quit [Ping timeout: 246 seconds]
stevenxl is now known as stevenxl-away
AKASkip has joined #ruby
<Yzguy> i'm not saying to skipped anything, It just seems you're new to ruby and vagrant maybe, so trying to do two things at once might make it difficult
yeticry has quit [Ping timeout: 255 seconds]
howdoicomputer has quit [Quit: WeeChat 1.3]
<Yzguy> not new i guess, i don't know you're level but
yeticry has joined #ruby
<Yzguy> looking at your vagrant file, it is pretty complicated, especially when you have to deal with the network interface issue.
<hesco> toying with vagrant for two or three years, using it aggressively at work for most of the past year. toyed with ruby for the first time two or five years ago, and finally read Well Grounded Rubyist earlier this year, and using ruby more and more with vagrant and puppet focused projects, though still reach first for bash or perl on greenfield projects.
stuartb has joined #ruby
ramfjord has joined #ruby
colegatron has quit [Ping timeout: 260 seconds]
<Yzguy> I'm in the same boat
stevenxl has joined #ruby
stevenxl has quit [Changing host]
stevenxl has joined #ruby
AKASkip has quit [Ping timeout: 246 seconds]
<Yzguy> so your vagrant file is "fine", if you got the vagrant understanding down, some ruby understanding, refactoring is good
railswebdev has joined #ruby
<Yzguy> I would try and get that network interface issue fixed. i think it's prolly just removing that 70-persistent-net.rules and repackage the box
<Yzguy> that would remove a lot of the code
<hesco> ok, on the vpn from home now, just ran `vagrant up`. We'll see if this gets me any further.
idefine has joined #ruby
startupality has quit [Quit: startupality]
<hesco> yeah, the requirements I set for myself when I built the base box was to use the employer blessed ISO and upgrade scripts. makes for a really fat base image (2.3gb as I recall). Turns out I seem to be the one who has been evangelizing vagrant use at work, simply by creating that base box and documenting what I learn in the confluence installation at work.
<Yzguy> yeah that's awesome.
<Yzguy> can you describe your interface issue more?
millerti has joined #ruby
<hesco> but I wanted to offer folks a 'production-like' development environment, and by 'folks' I mean myself mostly, though its cool to see others finding that base box useful.
<Yzguy> yeah we do the same thing at work, we have a rhel 6.6 vagrant box, we use it for a puppet dev environment, developers have one for muleesb, grails, etc.
<Yzguy> all using the same base box
<hesco> before the gymnastics of the get_network_config_script() method, I was unable to get a second nic configured. I filed a bug report on the vagrant project earlier this year, which Mitchell declined to work on.
<Yzguy> do you have the link to that issue
<Yzguy> Mitchell is a crazy busy dude, I met him back in september at Hashiconf
sandstrom has quit [Quit: My computer has gone to sleep.]
InvGhost has quit [Read error: Connection reset by peer]
startupality has joined #ruby
InvGhost has joined #ruby
<Yzguy> hm
Drakevr_ is now known as Drakevr
xcesariox has joined #ruby
lacuna has quit [Remote host closed the connection]
Drakevr has quit [Changing host]
Drakevr has joined #ruby
aufi has joined #ruby
idefine has quit [Remote host closed the connection]
seitensei has joined #ruby
devoldmx has joined #ruby
stevenxl has quit [Quit: leaving]
<Yzguy> so what are you looking for for an interface/network configuration
<Yzguy> at the end stage
colegatron has joined #ruby
dlitvak has quit [Remote host closed the connection]
lacuna has joined #ruby
lacuna has quit [Changing host]
lacuna has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
<hesco> a nic with an IP assigned communicating through a network segment with other vagrant boxes on the same host machine.
seitensei has quit [Ping timeout: 265 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aufi has quit [Quit: Konversation terminated!]
cdg has joined #ruby
<Yzguy> so just a private network
<Yzguy> ok
startupality has quit [Quit: startupality]
<Yzguy> so when you do like :private_network you will get 2 nics on your vm, 1 for NAT, 1 for private network
<Yzguy> but that should be fine for you
<Yzguy> am almost done with your vagrant file
idefine has joined #ruby
startupality has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
<hesco> My test is nearly complete. in previous iterations it would configure the extra nic before applying the puppet catalogue, but now it seems to do the shell provisioning code after the catalogue application.
zast has joined #ruby
<hesco> the slave has the expected IP, waiting on the jenkins plugins on the master to complete, before it configures the network on the master
idefine has quit [Ping timeout: 256 seconds]
seitensei has joined #ruby
zzz has joined #ruby
shadoi has quit [Quit: Leaving.]
IrishGringo has quit [Ping timeout: 240 seconds]
bronson has joined #ruby
stamina has joined #ruby
<Yzguy> okay my second one doesnt work, fixing it :P. Was waiting for SLES box to download
sandstrom has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
djbkd has joined #ruby
idefine has joined #ruby
dlitvak has joined #ruby
<hesco> my refactored Vagrantfile failed again. Now testing yzguy.v1
startupality has quit [Quit: startupality]
symm-_ is now known as symm-
agit0 has quit [Quit: zzzZZZ….]
djbkd has quit [Ping timeout: 256 seconds]
millerti has joined #ruby
<hesco> looks like it is missing the key declaration: *.ssh.private_key_path
<Yzguy> you shouldn't need that
<hesco> adding that and testing again
<Yzguy> vagrant will put one in on its own
<Yzguy> unless you're doing something weird with your base box
<hesco> yes, our base box has an $employer_specific key pair
<Yzguy> hm
idefine has quit [Ping timeout: 265 seconds]
<Yzguy> might not be the best idea to do that. adds another unnecessary complication
blackmesa has joined #ruby
<Yzguy> the whole ssh key thing is handled and provided by vagrant
blackmes1 has joined #ruby
<hesco> it was done to keep the security and compliance teams off my back over the NDA
<Yzguy> well where are you publishing your box?
<hesco> on our internal repo
<Yzguy> ok
sandstrom has quit [Quit: My computer has gone to sleep.]
<hesco> concentric circles of security and all that
IrishGringo has joined #ruby
jottr has joined #ruby
<Yzguy> another one of those pointless security things huh
djbkd has joined #ruby
zast has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 272 seconds]
<hesco> still looking at authentication errors on `vagrant up`, but in the next window `vagrant ssh -c"sudo /sbin/ifconfif -a" finds lo, eth0, eth1 though eth1 has no IP.
dlitvak has quit [Remote host closed the connection]
aef has quit [Remote host closed the connection]
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
stevenxl-away has quit [Remote host closed the connection]
bronson has joined #ruby
<hesco> ah, I see you swapped out the base box for a publicly accessible one
<hesco> rethinking this again
<Yzguy> yeah, i wanted to use a sles box, and i cant use yours right :P
jottr has quit [Ping timeout: 255 seconds]
idefine has joined #ruby
<Yzguy> but yeah honestly, this too many hands in your dev environment configuration would piss me off
Jet4Fire_ has left #ruby [#ruby]
Bellthoven has joined #ruby
blackmes1 has quit [Read error: Connection reset by peer]
<hesco> how do you mean?
<Yzguy> like security saying "You need to use a specific private key"
<Yzguy> thats stupidity and just like a security department
Jet4Fire has joined #ruby
<hesco> security and compliance never spoke with me about this project. were probably unaware of it even.
<Yzguy> its not a production box, you're not putting it on the internet. you're just using vagrant as a framework to get boxes built
blackmes1 has joined #ruby
<hesco> but my contract included an NDA, which I assume I ought to make a best effort to protect the proprietary intellectual property of those who write my checks.
agit0 has joined #ruby
<hesco> I like getting those checks and it seemed a simple precaution to avoid this ever becoming an issue.
sankaber has quit [Ping timeout: 240 seconds]
<Yzguy> sure
<Yzguy> just seems like an unncessary complication you've added in
<Yzguy> for a non existent problem
idefine has quit [Ping timeout: 240 seconds]
<Yzguy> anywho, that super long vagrantfile should be easier to use, you'll need to modify it to your needs
aef has joined #ruby
cyfr0n1 has joined #ruby
devoldmx has joined #ruby
<Yzguy> but your'e doign some crazy stuff so it's incredibly hard to help you with your problems, hence why your issue was closed
prestorium has quit [Quit: Leaving]
<hesco> understood. hold no grudges against Hashimoto, gave me an opportunity to dig in and understand vagrant architecture a bit better.
ramfjord has quit [Ping timeout: 240 seconds]
<Yzguy> there is also a #vagrant channel on IRC
thisirs has quit [Ping timeout: 256 seconds]
cyfr0n has quit [Ping timeout: 256 seconds]
<Yzguy> let me private message you, so we don't fill #ruby up with vagrant talk
<hesco> yes, I have been helping a guy named NikosA over there, but no one there responded to my gist posted there twice since last night.
<hesco> sure, thanks. that makes sense
<hesco> or we can join each other on #vagrant
sankaber has joined #ruby
Bellthov_ has joined #ruby
Bellthoven has quit [Read error: Connection reset by peer]
lacuna has quit [Remote host closed the connection]
ElFerna has joined #ruby
aef has quit [Remote host closed the connection]
idefine has joined #ruby
stamina has quit [Ping timeout: 272 seconds]
agent_white has joined #ruby
stevenxl has joined #ruby
stevenxl has quit [Changing host]
stevenxl has joined #ruby
stevenxl has quit [Client Quit]
lxsameer has quit [Quit: Leaving]
Yzguy has quit [Quit: Cya]
stamina has joined #ruby
cats is now known as santacat
davedev2_ has quit [Ping timeout: 260 seconds]
skade has quit [Read error: Connection reset by peer]
_stu_ has quit [Quit: _stu_]
skade has joined #ruby
Bellthov_ has quit []
davedev24 has joined #ruby
aspire has joined #ruby
blackmes1 has quit [Ping timeout: 265 seconds]
skade has quit [Client Quit]
stannard has joined #ruby
elaptics is now known as elaptics`away
alex88 has joined #ruby
idefine_ has joined #ruby
<alex88> hi there, I've this code and the uri passed on the function can be downloaded correctly with curl/httpie/browser https://gist.github.com/alex88/84b3a774eb07659e8f73
<alex88> however there I get connection reset
<alex88> anyone has some ideas?
<alex88> I've just seen that there are some calls to the aws-sdk, even if it shouldn't be there
<alex88> is it possible it monkey patch net:http to handle requests to any aws endpoint? :/
dmolina has quit [Quit: Leaving.]
tomphp has joined #ruby
eregon_ is now known as eregon
stannard has quit [Remote host closed the connection]
kadoppe has quit [Ping timeout: 246 seconds]
slackbotgz has joined #ruby
idefine_ has quit [Ping timeout: 240 seconds]
kadoppe has joined #ruby
17WABDHFL has joined #ruby
zotherstupidguy has quit [Ping timeout: 255 seconds]
karapetyan has joined #ruby
yardenbar has joined #ruby
dlitvak has joined #ruby
zotherstupidguy has joined #ruby
17WABDHFL has quit [Quit: Leaving]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sankaber has joined #ruby
dlitvak has quit [Ping timeout: 265 seconds]
guacjack has joined #ruby
manquer has quit [Read error: Connection reset by peer]
AKASkip has joined #ruby
idefine has quit [Remote host closed the connection]
blackmes1 has joined #ruby
<alex88> ohh ok, seems it's because the request is https
aef has joined #ruby
manquer has joined #ruby
stannard has joined #ruby
idefine has joined #ruby
stannard has quit [Ping timeout: 240 seconds]
crixet has joined #ruby
idefine_ has joined #ruby
<crixet> Sup all
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hakunin has quit []
dlitvak has joined #ruby
dlitvak has quit [Remote host closed the connection]
idefine has quit [Ping timeout: 256 seconds]
Fezzler has joined #ruby
ElFerna has quit [Ping timeout: 260 seconds]
idefine_ has quit [Ping timeout: 265 seconds]
ta has quit [Remote host closed the connection]
hakunin has joined #ruby
InvGhost has quit [Read error: Connection reset by peer]
ibouvousaime has joined #ruby
InvGhost has joined #ruby
FooMunki has quit [Quit: FooMunki]
ElFerna has joined #ruby
Danishman has joined #ruby
slackbotgz has quit [Remote host closed the connection]
davedev2_ has joined #ruby
TheBloke- is now known as TheBloke
seitensei has quit [Remote host closed the connection]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
radgeRayden has joined #ruby
davedev24 has quit [Ping timeout: 240 seconds]
millerti has joined #ruby
radgeRayden__ has quit [Ping timeout: 240 seconds]
millerti has quit [Client Quit]
DLSteve has joined #ruby
zotherstupidguy has quit [Ping timeout: 255 seconds]
fullofcaffeine has quit [Remote host closed the connection]
Fezzler has quit [Quit: Leaving]
ZeeNoodley is now known as Minori
Minori has quit [Changing host]
Minori has joined #ruby
fullofcaffeine has joined #ruby
lacuna has joined #ruby
lacuna has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
rgtk has quit [Remote host closed the connection]
ramfjord has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
devbug has joined #ruby
linelevel has joined #ruby
yqt has joined #ruby
lacuna has quit [Remote host closed the connection]
InvGhost has quit [Read error: Connection reset by peer]
InvGhost has joined #ruby
ruid has joined #ruby
ruid has joined #ruby
karapetyan has quit [Ping timeout: 255 seconds]
bronson has quit [Remote host closed the connection]
linelevel has quit [Read error: Connection reset by peer]
devbug has quit [Ping timeout: 265 seconds]
linelevel has joined #ruby
lacuna has joined #ruby
linelevel has quit [Read error: No route to host]
varunwachaspati has quit [Quit: Connection closed for inactivity]
aef has quit [Remote host closed the connection]
millerti has joined #ruby
idefine has joined #ruby
blackmes1 has quit [Read error: Connection reset by peer]
aef has joined #ruby
griffindy has joined #ruby
rakm has joined #ruby
cdg has quit [Remote host closed the connection]
gusto has joined #ruby
idefine has quit [Ping timeout: 240 seconds]
dlitvak has joined #ruby
idefine has joined #ruby
zotherstupidguy has joined #ruby
phreakocious has quit [Read error: Connection reset by peer]
phreakocious has joined #ruby
chouhoulis has quit [Remote host closed the connection]
dlitvak has quit [Ping timeout: 255 seconds]
trautwein has joined #ruby
cdg has joined #ruby
<crixet> Why use ruby over python?
<chrisseaton> crixet: I prefer the syntax of Ruby over Python
<chrisseaton> crixet: and the package manager is a lot better
<crixet> I'm new to programming, they look the same so I was curious
<Ox0dea> crixet: Wat.
symm- has quit [Quit: Leaving...]
<Ox0dea> Ruby and Python don't "look" much alike at all.
RegulationD has joined #ruby
<crixet> At their basic level they look similar...
<crixet> At least from the learn python or learn ruby the hard way guides
<adaedra> crixet: to answer your question: because you like it better. They both are good language, and this is subjective.
<shevy> ruby is better
<Ox0dea> ^
<adaedra> ?better
<ruboto> "Best" and "better" are subjective. Try to use a different term.
<Ox0dea> ?ruby
<ruboto> I don't know anything about ruby
<crixet> Oh, hey shevy! :)
<shevy> python is unable to know where self is
nfk|laptop has joined #ruby
<Ox0dea> Pretty stupid.
darkf has quit [Quit: Leaving]
<shevy> you have to be more explicit!
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> More importantly, beautiful is better than ugly.
cornerman has quit [Read error: Connection reset by peer]
RegulationD has quit [Ping timeout: 240 seconds]
cornerma1 has joined #ruby
cornerma1 is now known as cornerman
<crixet> Line I said, I've just scratched the surface and they, at this point, seemed similar
<Ox0dea> crixet: They are similar, but you initially said they *look* similar.
<crixet> Oh, not in syntax! I meant as a whole language and the capabilities
millerti has joined #ruby
<shevy> the biggest difference is the philosophy, which you can then see in design considerations made
idefine has quit [Remote host closed the connection]
<adaedra> They're general purposes programing languages, so yes they can do more or less the same.
<adaedra> You'll have to test both if your want to know which is better for you.
iDavid has quit [Remote host closed the connection]
<Ox0dea> They're both Turing-complete, so they can do exactly the same things as every other TC system.
<Ox0dea> But Ruby remains TC even if you take away all the numbers and letters. :P
idefine has joined #ruby
Minori is now known as kspencer
<hesco> ping Yzguy
kspencer has quit [Changing host]
kspencer has joined #ruby
jottr has joined #ruby
zotherstupidguy has quit [Quit: WeeChat 1.3]
<shevy> "long dong gong"
<Ox0dea> ljarvis: http://kanji.sljfaq.org/
blackmes1 has joined #ruby
<ljarvis> interesting
<Ox0dea> You're advised to check "Ignore stroke order". :P
<ljarvis> well im shit at this
<adaedra> ?crosspost ljarvis
<ruboto> ljarvis, Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
nonopposition has quit [Ping timeout: 255 seconds]
<ljarvis> oi
lacuna has quit [Remote host closed the connection]
<ljarvis> I think the second one is season
jottr has quit [Ping timeout: 260 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
idefine has quit [Remote host closed the connection]
<ljarvis> fist of spring chant
<hesco> toretore: your advice that DRY is over-rated, along with Yzguy's wet Vagrantfile, along with my *.vm.network . . . auto_config: false, plus my shell provisioner using the get_network_config_script( ip ), at long last got me to the promised land. I now have a functioning multi-node Vagrantfile !!! which builds across the vpn in 20 minutes, although those two nodes only take 11 minutes in the office.
<ljarvis> carry on
idefine has joined #ruby
kspencer has quit [Changing host]
kspencer has joined #ruby
<shevy> hesco that sounds quite painful!
iDavid has joined #ruby
trautwein has quit [Quit: Textual IRC Client: www.textualapp.com]
idefine has quit [Remote host closed the connection]
blackmes1 has quit [Read error: Connection reset by peer]
<hesco> shevy: it was, and quite time consuming as well.
ruu_ has joined #ruby
pawnbox has quit [Remote host closed the connection]
The_Phoenix1 has quit [Read error: Connection reset by peer]
<Ox0dea> ljarvis: Becoming a practitioner of Wing Chun, then?
<ljarvis> I have inadvertently let out my secret
<dorei> ljarvis: first one is something like long, eternity, the second one is spring
<Ox0dea> It literally translates from Chinese as "fist of eternal spring".
<ljarvis> ya
<ljarvis> dorei: thanks :)
crixet has quit [Quit: Bye]
<dorei> i think first one is long but long in the dimmension of time, not space
<Ox0dea> dorei: Mission complete.
<Ox0dea> See the sidebar.
<ljarvis> ^
underplank has joined #ruby
guacjack has quit [Quit: Textual IRC Client: www.textualapp.com]
threh has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cdg has quit [Remote host closed the connection]
pawnbox has joined #ruby
idefine has joined #ruby
iDavid has quit [Ping timeout: 255 seconds]
sankaber has joined #ruby
<Ox0dea> ljarvis: Return the favor? http://i.imgur.com/QWi8kVt.jpg
ElFerna has quit [Ping timeout: 265 seconds]
<adaedra> Ox0dea: 42.
<Ox0dea> adaedra: Donkey.
<adaedra> Only on mondays.
<Ox0dea> *Danke
govg has joined #ruby
idefine has quit [Ping timeout: 256 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
atomical_ has joined #ruby
atomical has quit [Ping timeout: 256 seconds]
kspencer has quit [Changing host]
kspencer has joined #ruby
arup_r has quit []
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
colegatron has quit [Ping timeout: 255 seconds]
diegoviola has quit [Quit: WeeChat 1.3]
bronson has joined #ruby
gusto has quit [Quit: Leaving]
blackmesa has joined #ruby
Jackneill has quit [Quit: Leaving]
Sucks has joined #ruby
iDavid has joined #ruby
ruid has quit [Ping timeout: 260 seconds]
moeSeth has joined #ruby
ruu_ has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 265 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
ferr has joined #ruby
idefine has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
yardenbar has quit [Ping timeout: 240 seconds]
nfk|laptop has quit [Quit: yawn]
codecop has quit [Remote host closed the connection]
hesco has quit [Ping timeout: 240 seconds]
ledestin has joined #ruby
symm- has joined #ruby
s2013 has joined #ruby
idefine has quit [Ping timeout: 256 seconds]
colegatron has joined #ruby
basex has quit [Quit: basex]
nfk|laptop has joined #ruby
underplank has quit [Quit: underplank]
chouhoulis has joined #ruby
underplank has joined #ruby
shoutsid has joined #ruby
gigetoo has quit [Ping timeout: 256 seconds]
pawnbox has quit [Remote host closed the connection]
gigetoo has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 255 seconds]
chipotle has joined #ruby
ta has joined #ruby
akaiiro has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
ss_much has joined #ruby
nfk|laptop has quit [Quit: yawn]
meatchicken has quit [Ping timeout: 260 seconds]
shoutsid06 has joined #ruby
shoutsid has quit [Ping timeout: 246 seconds]
<shevy> dumdedum
diegoviola has joined #ruby
meatchicken has joined #ruby
<Ox0dea> >> Time.now.saturday?
<ruboto> Ox0dea # => true (https://eval.in/488051)
amoeba has quit [Quit: ...]
<shevy> soon it will be sunday
<shevy> then people are even lazier
<shevy> except the ruby core team!
nerium has quit [Quit: nerium]
<shevy> https://github.com/ruby/ruby/blob/trunk/ChangeLog nobu even works on sundays
nonopposition has joined #ruby
nerium has joined #ruby
idefine has joined #ruby
Emmanuel_Chanel has joined #ruby
pawnbox has joined #ruby
dwfait has joined #ruby
dionysus69 has quit [Ping timeout: 246 seconds]
idefine has quit [Ping timeout: 256 seconds]
alon has joined #ruby
pawnbox has quit [Ping timeout: 255 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nerium has quit [Quit: nerium]
nerium has joined #ruby
marr has joined #ruby
skcin7 has joined #ruby
meatchicken has quit [Read error: Connection reset by peer]
ornerymoose has joined #ruby
<hanmac> shevy: 30% of the republicans in america does want to destroy "Agrabah" ;P try to find it with google maps ;P
jdm has joined #ruby
PedramT has joined #ruby
jottr has joined #ruby
<Ox0dea> hanmac: It's beautiful! http://i.imgur.com/uNCcj8B.jpg
meatchicken has joined #ruby
rakm has joined #ruby
seitensei has joined #ruby
PedramT has quit [Ping timeout: 240 seconds]
jottr has quit [Ping timeout: 240 seconds]
roshanavand has quit [Remote host closed the connection]
dwfait has quit [Ping timeout: 240 seconds]
aspire has quit [Quit: Leaving]
threh has quit [Ping timeout: 260 seconds]
seitensei has quit [Ping timeout: 260 seconds]
ta has quit [Remote host closed the connection]
atomical has joined #ruby
rgtk has joined #ruby
<nofxx> hanmac, I would gladly rescue Jasmine
jdm has quit [Read error: Connection reset by peer]
jobewan has joined #ruby
atomical has quit [Remote host closed the connection]
s2013 has joined #ruby
atomical has joined #ruby
Emmanuel_Chanel_ has joined #ruby
jobewan has quit [Quit: Textual IRC Client: www.textualapp.com]
skade has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 240 seconds]
atomical_ has quit [Ping timeout: 272 seconds]
rgtk has quit [Ping timeout: 246 seconds]
jobewan has joined #ruby
ruu_ has joined #ruby
jobewan has quit [Client Quit]
last_staff has quit [Quit: last_staff]
ohaibbq has joined #ruby
ohaibbq has quit [Remote host closed the connection]
ohaibbq has joined #ruby
dwfait has joined #ruby
millerti has joined #ruby
ruu_ has quit [Ping timeout: 256 seconds]
AKASkip has quit [Ping timeout: 272 seconds]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
underplank has quit [Quit: underplank]
nonopposition has quit [Remote host closed the connection]
minimalism has joined #ruby
stevenxl has joined #ruby
stevenxl has joined #ruby
SleepySensei has joined #ruby
pawnbox has joined #ruby
dwfait has quit [Ping timeout: 240 seconds]
YankNYC has joined #ruby
solars has quit [Quit: WeeChat 0.4.2]
pawnbox has quit [Ping timeout: 255 seconds]
nonopposition has joined #ruby
Jardayn has joined #ruby
stannard has joined #ruby
<YankNYC> hey so i'm confused about carrierwave. it looks like it has rmagick already included as a module but i get an error telling me require cannot load such file and to install rmagick gem
<YankNYC> when i include the gem in my gemfile I get a deprecation warning RMagick is deprecated use rmagick instead
<YankNYC> maybe i should look into an image uploading alternative
chouhoulis has joined #ruby
bugo has left #ruby [#ruby]
shoutsid06 has quit []
<YankNYC> this error is being thrown because i'm including CarrierWave::RMagick in my uploader
alex88 has quit [Quit: Leaving...]
SleepySensei has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chipotle has quit [Quit: cheerio]
ornerymoose has quit [Quit: ornerymoose]
roshanavand has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
_djbkd has joined #ruby
roshanavand has quit [Ping timeout: 246 seconds]
zenlot3 has quit [Ping timeout: 256 seconds]
vikaton has quit [Quit: Connection closed for inactivity]
devbug has joined #ruby
zenlot3 has joined #ruby
s1kx has joined #ruby
Vitor has joined #ruby
mary5030 has joined #ruby
s00pcan has quit [Ping timeout: 256 seconds]
sigurding has joined #ruby
s00pcan has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Vitor has quit [Ping timeout: 255 seconds]
ta has joined #ruby
dwfait has joined #ruby
stamina has quit [Quit: WeeChat 1.3]
s00pcan has quit [Ping timeout: 256 seconds]
InvGhost has quit [Ping timeout: 246 seconds]
pawnbox has joined #ruby
s00pcan has joined #ruby
bartkoo has joined #ruby
<dwfait> Is anyone familiar with bench9000 that could help me get it running? Seems people were right when they said it was not easy to use
pawnbox has quit [Ping timeout: 265 seconds]
spider-mario has quit [Read error: Connection reset by peer]
akaiiro has quit [Ping timeout: 260 seconds]
hxegon has joined #ruby
Vitor has joined #ruby
ruu_ has joined #ruby
<shevy> huh
<shevy> >> ARGF.class
<ruboto> shevy # => ARGF.class (https://eval.in/488060)
ta_ has joined #ruby
rgtk has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dlitvak has joined #ruby
dwfait has quit [Ping timeout: 260 seconds]
sulky has quit [Read error: Connection reset by peer]
<shevy> I never thought that ARGF would be some special class
<havenwood> >> eval(eval(eval(eval(ARGF.class.name).name).name).name)
<ruboto> havenwood # => ARGF.class (https://eval.in/488061)
ruu_ has quit [Ping timeout: 240 seconds]
idefine has joined #ruby
<shevy> you had too much coffee today!
ta has quit [Ping timeout: 255 seconds]
akaiiro has joined #ruby
sandstrom has joined #ruby
idefine has quit [Ping timeout: 256 seconds]
solocshaw has joined #ruby
dwfait has joined #ruby
mary5030 has quit [Remote host closed the connection]
jottr has joined #ruby
stannard has quit [Remote host closed the connection]
jottr_ has joined #ruby
arescorpio has joined #ruby
chouhoulis has joined #ruby
FernandoBasso has quit [Quit: Leaving]
jottr has quit [Ping timeout: 255 seconds]
bartkoo has quit [Quit: bartkoo]
samgerber has joined #ruby
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
s00pcan has quit [Ping timeout: 255 seconds]
chouhoulis has quit [Ping timeout: 256 seconds]
hxegon is now known as hxegon_AFK
hxegon_AFK is now known as hxegon
s00pcan has joined #ruby
rattatmatt has joined #ruby
<samgerber> Is there anyone who would be willing to help me with an OO design question?
<Ox0dea> ?anyone samgerber
<ruboto> samgerber, Just ask your question, if anyone has or can, they will respond.
<pwnd_nsfw> lol
<pwnd_nsfw> Can anyone do a thing?
stannard has joined #ruby
<shevy> only if someone can't do anything
<shevy> samgerber you must ask the question
idefine has joined #ruby
ss_much has quit [Quit: Connection closed for inactivity]
<samgerber> I'm getting hung up on inheritance. I'm trying to build a game, and I will have essentially three types of players: ComputerPlayer, HumanPlayer, and SolitairePlayer. They all have some things in common, but not enough that instantiating a Player superclass would produce a useful object. SolitairePlayer would be a subclass of HumanPlayer, but instead of extending HumanPlayer with MORE behavior and attributes, it would b
<samgerber> e reducing the available behavior and attributes. How many ways have I committed sacrilege, and is there a place where I can read about the right way to do this sort of thing?
<shevy> usually you find the common lowest denominator that is shared across your classes, then you can make this your base class Player
<shevy> the specialized behaviour that is unique to the specific player class goes into the e. g. class ComputerPlayer < Player one
<shevy> for simple constants, use a module
agent_white has quit [Quit: brb]
akaiiro has quit [Quit: Leaving]
pwnd_nsfw has quit [Ping timeout: 240 seconds]
idefine has quit [Ping timeout: 256 seconds]
dsdeiz has joined #ruby
<samgerber> @shevy, thank you. Is it a Bad Thing if the superclass doesn't make sense on its own and is just holding the intersection of two similar subclasses?
roshanavand has joined #ruby
<shevy> you can use an abstract class of course
akem has joined #ruby
<shevy> the thing is how much you want to specialize your class
bigmac_ has quit [Ping timeout: 256 seconds]
<samgerber> @shevy, thank you, you've given me some ideas to work with. I'll head back to the drawing board now and leave you nice people alone :) Thanks again!
<shevy> but really, find the smallest subset that is common to the classes and put that into one
<shevy> see ya
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cdg has joined #ruby
roshanavand has quit [Ping timeout: 265 seconds]
cdg has quit [Remote host closed the connection]
s00pcan has quit [Ping timeout: 272 seconds]