havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
<Ox0dea> molay: Well, persistence is almost always a precursor to querying; you do intend to query the data, right?
wldcordeiro has joined #ruby
diegoaguilar has quit [Ping timeout: 250 seconds]
eightbellyoct has quit [Quit: leaving]
zeroDivisible has quit [Quit: WeeChat 1.3]
yfeldblum has quit [Ping timeout: 246 seconds]
zeroDivisible has joined #ruby
djbkd has joined #ruby
leafybas_ has quit [Remote host closed the connection]
atomical has joined #ruby
joneshf-laptop has quit [Ping timeout: 246 seconds]
zeroDivisible has quit [Client Quit]
zeroDivisible has joined #ruby
infamos has quit [Ping timeout: 250 seconds]
TomPeed has joined #ruby
yfeldblum has joined #ruby
Ox0dea has quit [Quit: WeeChat 1.4-dev]
cmoneylulz has joined #ruby
cicloid has quit [Ping timeout: 250 seconds]
<danneu> molay: it's often a bad sign if you're manually escaping things.
Ox0dea has joined #ruby
Uranio has quit [Ping timeout: 246 seconds]
<molay> Ox0dea: yes I will need to query too
cicloid has joined #ruby
<Ox0dea> molay: Then SQLite3 is a fine choice, and the Sequel gem is great for interacting with it.
rgb-one has quit [Ping timeout: 260 seconds]
Steve_Jobs has quit [Quit: WeeChat 0.4.2]
Trynemjoel has quit [Ping timeout: 264 seconds]
eminencehc has joined #ruby
<eam> not sqlite4?
jorb has quit [Ping timeout: 240 seconds]
Trynemjoel has joined #ruby
Yzguy has joined #ruby
<molay> Ox0dea: well i'm noticing a lot of comments saying its not a good idea doing it the way i'm doing it... each line of the table has 25 items, and I wasn't sure how else to input that many without building a string as i was writing the query
djbkd has quit [Remote host closed the connection]
tubuliferous_ has joined #ruby
<dorei> how can i find which items of an array are duplicate?
<Ox0dea> molay: You should probably be using a prepared statement.
Steve_Jobs has joined #ruby
DEA7TH has quit [Quit: DEA7TH]
tvw has quit [Remote host closed the connection]
<molay> Ox0dea: how do you mean "prepared statement" ?
Guest20167 has quit [Ping timeout: 246 seconds]
<eam> fun fact: a lot of database drivers just turn prepared statements into interpolated strings within the driver
cicloid has quit [Read error: No route to host]
<Ox0dea> molay: It's very Google-able. :P
jorb has joined #ruby
cicloid has joined #ruby
<molay> Ox0dea: yep, found it.. thank you
<molay> I sure have a long way to go... the ruby world is huge!!
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
<Ox0dea> It's... pretty big, yeah.
eightbellyoct has joined #ruby
<eam> the sun never sets, etc
diegoaguilar has joined #ruby
Steve_Jobs has quit [Client Quit]
<molay> haha. eam you must be british
Steve_Jobs has joined #ruby
<shevy> is it vampire time again?
axsuul has joined #ruby
leafybas_ has joined #ruby
Eiam has joined #ruby
<molay> ok bbl.. thanks guys
infamos has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<eam> spawn of, at least
<Ox0dea> shevy: 1827 is a vampire time, and it's just around the corner for some folks.
cicloid_ has joined #ruby
rgb-one has joined #ruby
mallu has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
cicloid has quit [Read error: No route to host]
weemsledeux has joined #ruby
cicloid has joined #ruby
Arkon has quit [Remote host closed the connection]
dreinull75 has quit [Remote host closed the connection]
zacts has joined #ruby
leafybas_ has quit [Ping timeout: 276 seconds]
dreinull75 has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
craysiii has quit [Quit: Leaving.]
cicloid_ has quit [Ping timeout: 264 seconds]
devgiant has joined #ruby
<Ox0dea> >> [1,2,3,2,1].each_with_object(Hash.new 0) { |e, h| h[e] += 1 }.select { |_, v| v > 1 }.keys # dorei
<ruboto> Ox0dea # => [1, 2] (https://eval.in/465870)
<Ox0dea> There's one O(n) approach, but there are others.
kies has joined #ruby
<Ox0dea> It's better than the O(n^2) approach of assigning your collection to a variable and using `foo.select { |e| foo.count(e) > 1 }`, at any rate.
<jericon> Ox0dea: you helped me a couple weeks ago about finding a Ruby equivilent to MySQL's "to_days" function and it was 2 days off. I figured out why.
<Ox0dea> jericon: Enlighten me. :)
<jericon> Ox0dea: Ruby starts at day 0, while mysql starts at day 1 (0000-01-01).
<jericon> so that's one day
<jericon> also, ruby figured that 0000 was a leap year
<Ox0dea> Ah, interesting.
<Ox0dea> It's hard to say whether those assumptions are entirely wrong or right.
<Ox0dea> We index everything else from zero; why not history?
<Ox0dea> Counting 0 as a leap year seems a little weird, though.
<eam> dealing with dates which span governments is always difficult
djbkd has joined #ruby
<Ox0dea> /which span governments/d
<eam> yes, I should say even moreso than usual
<eam> see also: maps
centrx has joined #ruby
charliesome has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cicloid has quit [Quit: zzZZzzzZzzzzzZZZz]
TPBallbag has joined #ruby
<jericon> exactly, 0000 was a leap year, and MySQL didn't even recognize 0000-02-29 as a valid day.
eminencehc has quit [Remote host closed the connection]
<Ox0dea> I think it's probably the case that MySQL's interpretation is more accurate by dint of including some of the "political" information.
<jericon> although ultimately... I updated my script to use this:
<jericon> cur_days = @client.query("SELECT to_days(now()) as days").first["days"]
patdohere has joined #ruby
djbkd has quit [Remote host closed the connection]
<jericon> Then I can rely on MySQL giving me what it believes is the number, and only using that. No fiddling necessary
Arkon has joined #ruby
atomical has joined #ruby
<Ox0dea> If it fits, you ships.
ciampix has quit [Ping timeout: 265 seconds]
lazyatom has quit [Quit: Connection closed for inactivity]
<jericon> My fear is that somewhere down the line, something would change and then Ruby would be 1 day off... or 3 days off... and then the script breaks.
<jericon> but thanks for the help :)
patdohere has quit [Ping timeout: 276 seconds]
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
KINGSABRI has quit [Remote host closed the connection]
Eiam has joined #ruby
<centrx> 0 isn't a year at all right?
predator117 has joined #ruby
djbkd has joined #ruby
Alayde has quit [Quit: WeeChat 1.1.1]
<Ox0dea> >> Time.new 0
<ruboto> Ox0dea # => 0000-01-01 00:00:00 +0000 (https://eval.in/465871)
<Ox0dea> Ruby certainly thinks so.
<jericon> technically, it is. the MySQL to_days function counts the nubmer of days since 0000-01-01
Croves has joined #ruby
<jericon> *number
symm- has quit [Ping timeout: 252 seconds]
<eam> wait, what's the arg to Time.new?
<Ox0dea> Magical.
<Ox0dea> It's variadic.
<Ox0dea> >> Time.new 2015, 11
<ruboto> Ox0dea # => 2015-11-01 00:00:00 +0000 (https://eval.in/465872)
<eam> but given a fixnum, what does it treat it as?
<eam> year?
<Ox0dea> Yeah.
rodfersou has quit [Quit: leaving]
h99h9h88 has joined #ruby
<eam> ok. I read that as a time_t and had a wtf
<Ox0dea> >> Time.new -1
<ruboto> Ox0dea # => -0001-01-01 00:00:00 +0000 (https://eval.in/465873)
djbkd has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> Huh, I get +0456 on my machine.
predator217 has quit [Ping timeout: 265 seconds]
<Ox0dea> I wonder why 456 was chosen to represent LMT.
<Ox0dea> What's gonna happen if there's some timezone that actually is +0456 of GMT?
podman has joined #ruby
eminencehc has joined #ruby
<Ox0dea> Oh, right, that's why we name things.
Cyther has joined #ruby
Cyther has quit [Remote host closed the connection]
h99h9h88 has quit [Remote host closed the connection]
diegoaguilar has quit [Remote host closed the connection]
marr has quit [Ping timeout: 250 seconds]
uber_ has joined #ruby
exadeci has joined #ruby
goodcodeguy has joined #ruby
<FailBit> timezones are awkward
cjbottaro has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<FailBit> I always manage to screw UTC offsets up
devoldmx has joined #ruby
uber_ has left #ruby [#ruby]
rcvalle has quit [Quit: rcvalle]
<mus> .10
devoldmx has quit [Ping timeout: 276 seconds]
rbowlby has joined #ruby
djbkd has joined #ruby
yfeldblum has quit [Remote host closed the connection]
rgb-one has quit [Read error: Connection reset by peer]
<weaksauce> FailBit yeah there are a lot of them and some are half offsets
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Kabal has joined #ruby
<weaksauce> -11 to +14 with some funky borders
djbkd has quit [Read error: Connection reset by peer]
devgiant has quit [Quit: Leaving]
djbkd has joined #ruby
vigintas has quit [Ping timeout: 264 seconds]
shock_one has joined #ruby
<dorei> and best korea recently changed its time zone from utc + 9 to utc + 8:30
mattwildig has quit [Remote host closed the connection]
stannard has joined #ruby
swgillespie has joined #ruby
swgillespie has quit [Client Quit]
<weaksauce> I'm sure that didn't mess up any code at all
nateberkopec has quit [Quit: Leaving...]
snockerton has quit [Quit: Leaving.]
<Ox0dea> weaksauce: Are you questioning Best Korea's intentions?
<Ox0dea> As I see it, it's the code that was wrong to begin with for not preempting the change.
<weaksauce> would never do such things
<Ox0dea> I should hope not.
baweaver has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
newdan has joined #ruby
stannard has quit [Ping timeout: 265 seconds]
shock_one has quit [Ping timeout: 276 seconds]
JDiPierro has joined #ruby
hxegon has quit [Ping timeout: 272 seconds]
<FailBit> :|
<Ox0dea> FailBit: What ails you?
JDiPierro has quit [Remote host closed the connection]
<Ox0dea> A lack of ale, mayhap?
<FailBit> users
<FailBit> mainly, users
<FailBit> they're idiots
<weaksauce> that's a constant
<Ox0dea> >> Errno::EDOOFUS # Literally.
<ruboto> Ox0dea # => Errno::NOERROR (https://eval.in/465876)
<FailBit> oh god that made my day
<FailBit> thank you
<Ox0dea> <3
charany1 has quit [Ping timeout: 240 seconds]
baweaver has quit [Ping timeout: 276 seconds]
rgtk has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
codeurge has joined #ruby
hahuang65 has quit [Quit: WeeChat 1.3]
bubbys has quit [Ping timeout: 244 seconds]
bb010g has joined #ruby
bubbys has joined #ruby
bruno- has joined #ruby
bruno- is now known as Guest52073
CodingWolf has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
Spami_ has quit [Quit: This computer has gone to sleep]
Croves has quit [Quit: Textual IRC Client: www.textualapp.com]
JDiPierro has joined #ruby
Guest52073 has quit [Ping timeout: 246 seconds]
pandaant has joined #ruby
eminencehc has quit [Remote host closed the connection]
howdoicomputer has quit [Ping timeout: 250 seconds]
_blizzy_ has joined #ruby
DiCablo has joined #ruby
ekinmur has joined #ruby
swgillespie has joined #ruby
leafybas_ has joined #ruby
rgtk has quit [Ping timeout: 260 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hahuang65 has joined #ruby
kp666_ has joined #ruby
DanKnox is now known as DanKnox[away]
benlieb has quit [Quit: benlieb]
shadoi has quit [Quit: Leaving.]
RegulationD has quit [Remote host closed the connection]
rgtk has joined #ruby
pkrnj has joined #ruby
leafybas_ has quit [Ping timeout: 260 seconds]
jobewan has joined #ruby
h99h9h88 has joined #ruby
infamos has quit [Ping timeout: 255 seconds]
platzhirsch has left #ruby [#ruby]
EllisTAA has joined #ruby
tkuchiki has joined #ruby
rgtk has quit [Ping timeout: 260 seconds]
h99h9h88 has quit [Remote host closed the connection]
dikaio_ has joined #ruby
rgtk has joined #ruby
jim1138 has quit [Ping timeout: 272 seconds]
dikaio has quit [Ping timeout: 255 seconds]
RobertBirnie has quit [Ping timeout: 240 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
errant_rider has joined #ruby
<errant_rider> anyone here ever play with the google_drive gem?
hxegon has joined #ruby
rgtk has quit [Ping timeout: 260 seconds]
SamGerber has joined #ruby
Sam_Gerber has joined #ruby
Arkon has quit [Remote host closed the connection]
jim1138 has joined #ruby
rgtk has joined #ruby
Arkon has joined #ruby
jim1138 has quit [Client Quit]
bricker has quit [Ping timeout: 265 seconds]
pkrnj has quit [Quit: Computer has gone to sleep.]
solocshaw has quit [Read error: Connection reset by peer]
rgtk has quit [Ping timeout: 260 seconds]
slash_ni1k has joined #ruby
DanKnox[away] is now known as DanKnox
slash_ni1k has quit [Client Quit]
Yzguy has quit [Quit: Zzz...]
missinghandle has quit []
veg has joined #ruby
rgtk has joined #ruby
cicloid has joined #ruby
yfeldblum has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
Asher has quit [Quit: Leaving.]
Asher has joined #ruby
mordocai has joined #ruby
rgtk has quit [Ping timeout: 260 seconds]
Yzguy has joined #ruby
bruno-_ has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
maletor_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
EllisTAA has quit [Ping timeout: 252 seconds]
DanKnox is now known as DanKnox[away]
cmoneylulz has quit [Remote host closed the connection]
rgtk has joined #ruby
ccooke has quit [Read error: Connection reset by peer]
<dorei> >> "3.12".to_f
<ruboto> dorei # => 3.12 (https://eval.in/465898)
<dorei> >> "3,12".to_f
<ruboto> dorei # => 3.0 (https://eval.in/465899)
Sam_Gerber has quit [Ping timeout: 276 seconds]
<dorei> is there some to have to_f take into account locale rules?
<dorei> some way
<Ox0dea> Probably not. :<
Sam_Gerber has joined #ruby
jobewan has quit [Ping timeout: 276 seconds]
howdoicomputer has joined #ruby
bricker has joined #ruby
ccooke has joined #ruby
Rinzlit has joined #ruby
rgtk has quit [Ping timeout: 260 seconds]
rgtk has joined #ruby
Rinzlit_ has quit [Ping timeout: 244 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> dorei: C's sprintf() does take locale into account, but Ruby's does not.
DiCablo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bruno-_ has quit [Ping timeout: 255 seconds]
gambl0re has quit [Ping timeout: 244 seconds]
malconis has joined #ruby
rgtk has quit [Read error: No route to host]
scmx has quit [Ping timeout: 260 seconds]
rgtk has joined #ruby
Rinzlit has quit [Read error: Connection timed out]
baweaver has joined #ruby
vdamewood has joined #ruby
Rinzlit has joined #ruby
rakm has joined #ruby
freerobby has joined #ruby
cicloid has quit [Ping timeout: 240 seconds]
jackjackdripper has quit [Ping timeout: 272 seconds]
jackjackdripper has joined #ruby
ascarter has quit [Quit: Textual IRC Client: www.textualapp.com]
errant_rider has left #ruby [#ruby]
ascarter has joined #ruby
nchambers is now known as nchambers\dead
infamos has joined #ruby
rgtk has quit [Ping timeout: 260 seconds]
TPBallbag has quit [Remote host closed the connection]
jobewan has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
rgtk has joined #ruby
jessemcgilallen has quit [Quit: jessemcgilallen]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<FailBit> jesus fuck
maxz_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<FailBit> nexus 5x doesn't come with a regular USB cable so I had to wait to get an adapter
<FailBit> now it takes a nanosim instead of a microsim
<FailBit> so I have to clip my simcard
<FailBit> -.-
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TomPeed has joined #ruby
rgtk has quit [Read error: No route to host]
northfurr has joined #ruby
rgtk_ has joined #ruby
paradisaeidae has joined #ruby
djbkd has quit [Quit: My people need me...]
RegulationD has joined #ruby
rgtk has joined #ruby
rgtk_ has quit [Ping timeout: 260 seconds]
poguez_ has joined #ruby
roxtrongo has quit [Remote host closed the connection]
pkrnj has joined #ruby
jobewan has quit [Ping timeout: 240 seconds]
pkrueger has quit [Quit: Leaving]
axsuul has quit [Read error: No route to host]
musou has quit [Quit: Connection closed for inactivity]
DLSteve has joined #ruby
tubuliferous_ has quit [Ping timeout: 252 seconds]
rgtk has quit [Ping timeout: 260 seconds]
h99h9h88 has joined #ruby
rgtk has joined #ruby
NeverDie has joined #ruby
leafybas_ has joined #ruby
atomical_ has joined #ruby
amclain has quit [Quit: Leaving]
CloCkWeRX has joined #ruby
NeverDie has quit [Max SendQ exceeded]
NeverDie has joined #ruby
NeverTired has joined #ruby
atomical has quit [Ping timeout: 255 seconds]
mattwildig has joined #ruby
rgtk has quit [Ping timeout: 260 seconds]
mattwildig has quit [Client Quit]
s00pcan has quit [Ping timeout: 250 seconds]
leafybas_ has quit [Ping timeout: 252 seconds]
eminencehc has joined #ruby
skweek has joined #ruby
JDiPierro has quit [Remote host closed the connection]
s00pcan has joined #ruby
baweaver has joined #ruby
rgtk has joined #ruby
NeverDie has quit [Ping timeout: 250 seconds]
jobewan has joined #ruby
Sembei has quit [Ping timeout: 240 seconds]
Yzguy has quit [Quit: Zzz...]
Jardayn has quit [Quit: Leaving]
hxegon has quit [Ping timeout: 276 seconds]
|ifei5good has joined #ruby
h99h9h88 has quit [Remote host closed the connection]
jessemcgilallen has joined #ruby
skweek has quit [Remote host closed the connection]
rgtk has quit [Ping timeout: 260 seconds]
kp666_ has quit [Quit: Leaving]
towski_ has quit [Remote host closed the connection]
charany1 has joined #ruby
|ifei5g00d has quit [Ping timeout: 264 seconds]
droptone has joined #ruby
<droptone> Question: I've been studying YAML for a bit using Ruby, and I'm attempting to write an array to a YAML file.
<droptone> Anyone have any recommendations on a tutorial for such?
northfurr has quit [Quit: northfurr]
vdamewood has quit [Quit: Life beckons.]
<droptone> I read about PSStore, is there a quick way to write, for example, a hash that has a string and an array, to a yaml file?
NeverDie has joined #ruby
yqt has quit [Ping timeout: 272 seconds]
rgtk has joined #ruby
DiCablo has joined #ruby
<Ox0dea> droptone: You can use `YAML.dump hash` or `hash.to_yaml` to get a string, and then write that to a file however you know how.
<droptone> Can you simply use Yaml::load_file if the file doesn't exist?
<droptone> Ox0dea: Thank you.
northfurr has joined #ruby
cdg has quit [Remote host closed the connection]
favadi has joined #ruby
<Ox0dea> droptone: File.write('foo', bar) will open 'foo' in write mode (thus overwriting its previous contents if they existed), write `bar` as a string (by invoking its #to_s method), and then close the file.
northfurr has quit [Client Quit]
favadi has quit [Max SendQ exceeded]
<droptone> Ok, so for writing a file in YAML format, are there no YAML-specific methods I should leverage?
cicloid has joined #ruby
<droptone> Or just use standard File.write and manually write in YAML-compatible format?
gambl0re has joined #ruby
jessemcgilallen has quit [Quit: jessemcgilallen]
rgtk has quit [Ping timeout: 260 seconds]
zeroDivisible has quit [Quit: WeeChat 1.3]
<Ox0dea> droptone: YAML.dump can be given an IO-like as its second argument.
<Ox0dea> I guess that's probably the one you want.
hxegon has joined #ruby
ruby-lang674 has joined #ruby
ruby-lang674 has left #ruby [#ruby]
<Ox0dea> "IO-like" here means anything which has IO as an ancestor or responds to #write.
devoldmx has joined #ruby
rgtk has joined #ruby
<droptone> Gotcha, thank you.
ruby-lang429 has joined #ruby
<ruby-lang429> hi
<ruby-lang429> can someone help me with a webscraper
<droptone> lol
<ruby-lang429> i need an algorithm to scrape all the text from each profile in angel list
Rickmasta has joined #ruby
<baweaver> do they have an API?
<ruby-lang429> no
<baweaver> if not, it's generally considered bad form to scrape
<ruby-lang429> i was able to scrape the names of the people
<ruby-lang429> i wrote a do loop where page = 1 changes to =2, =3,
<baweaver> hm
<baweaver> that looks like an API
paradisaeidae has quit [Remote host closed the connection]
rgtk has quit [Read error: No route to host]
<Ox0dea> > [C]rawling the Service is permissible in accordance with this agreement, but scraping the Service without the prior consent of AngelList except as permitted by this agreement is expressly prohibited.
<Ox0dea> ruby-lang429: ^
rbowlby has quit [Remote host closed the connection]
rbowlby has joined #ruby
rgtk has joined #ruby
scmx has joined #ruby
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hxegon has quit [Ping timeout: 276 seconds]
<baweaver> Use the API
<baweaver> it'd be easier to use anyways
paradisaeidae has joined #ruby
hxegon has joined #ruby
charliesome has joined #ruby
<ruby-lang429> i'd rather not use it
<Ox0dea> I'm phoning the authorities.
vigintas has joined #ruby
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
* baweaver kinda is the law in these here parts
Sembei has joined #ruby
<baweaver> ruby-lang429: we're not going to help you break their rules
houhoulis has joined #ruby
<havenwood> AngelList Terms of Service § XIII(c)(xvii): Participants in the AngelList community will not ... use or launch, develop or distribute any automated system, including, without limitation, any spider, robot (or "bot"), cheat utility, scraper or offline reader that accesses the Service....
<baweaver> The API will be a cleaner and easier interface to work with.
bruno- has joined #ruby
cmoneylulz has joined #ruby
diegoaguilar has joined #ruby
scmx has quit [Ping timeout: 252 seconds]
bruno- is now known as Guest8103
<Ox0dea> ruby-lang429: Scraping is a gateway crime.
rgtk has quit [Ping timeout: 260 seconds]
<havenwood> And unfortunately probably a Federal crime under the CFAA.
<havenwood> (If you're in the States.)
<baweaver> well, we've already covered that it's bad, so we can leave it at that.
<dorei> scraping is a crime? :O
Arkon has quit [Remote host closed the connection]
<baweaver> no need to go over it multiple different ways.
<havenwood> dorei: The Computer Fraud and Abuse Act is incredibly broad.
framlinqp has quit [Ping timeout: 255 seconds]
Arkon has joined #ruby
<dorei> how is scraping different from having someone clicking each link and then print screen? or is that a crime too? :O
tubuliferous_ has joined #ruby
vigintas has quit [Ping timeout: 244 seconds]
<havenwood> dorei: Everything is a crime. They just pick whom to prosecute.
<baweaver> let's go to offtopic if we want to delve this much deeper
goodcodeguy has joined #ruby
cmoneylulz has quit [Remote host closed the connection]
Trieste has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
pdoherty has quit [Ping timeout: 252 seconds]
cmoneylulz has joined #ruby
cmoneylulz has quit [Remote host closed the connection]
Guest8103 has quit [Ping timeout: 255 seconds]
karapetyan has quit [Remote host closed the connection]
Arkon has quit [Ping timeout: 240 seconds]
rgtk has joined #ruby
karapetyan has joined #ruby
CVTJNII has quit [Ping timeout: 264 seconds]
<BraddPitt> Can anyone lend an eye to do a code review on a gem I wrote?
eminencehc has quit [Remote host closed the connection]
<havenwood> BraddPitt: Link?
wprice has quit [Quit: wprice]
nateberkopec has joined #ruby
nateberkopec has quit [Client Quit]
cmoneylulz has joined #ruby
markao has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
|ifei5good has quit [Read error: Connection reset by peer]
terminalrecluse has joined #ruby
NeverDie has quit [Ping timeout: 264 seconds]
|ifei5g00d has joined #ruby
centrx has quit [Quit: If you meet the Buddha on the way, kill him.]
<havenwood> baweaver: touche
<BraddPitt> havenwood can I PM you?
rgtk has quit [Read error: No route to host]
vdamewood has joined #ruby
<havenwood> BraddPitt: sure
rgtk has joined #ruby
ruby-lang038 has joined #ruby
<baweaver> BraddPitt: I likes code reviews too
charany1 has quit [Ping timeout: 246 seconds]
arescorpio has joined #ruby
<Ox0dea> ^
asas has joined #ruby
TomPeed has joined #ruby
edj has joined #ruby
rgtk has quit [Ping timeout: 260 seconds]
markao has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
ESpiney has joined #ruby
|ifei5g00d has quit [Ping timeout: 265 seconds]
waxjar has quit [Quit: Connection closed for inactivity]
hahuang65 has quit [Ping timeout: 240 seconds]
rgtk has joined #ruby
NeverDie has joined #ruby
mary5030 has joined #ruby
markao has quit [Excess Flood]
devoldmx has quit [Remote host closed the connection]
cicloid has quit [Quit: zzZZzzzZzzzzzZZZz]
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
devoldmx has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
kp666 has joined #ruby
Arkon has joined #ruby
rgtk has quit [Ping timeout: 260 seconds]
hxegon has quit [Ping timeout: 264 seconds]
claw has quit [Ping timeout: 260 seconds]
hxegon has joined #ruby
CVTJNII has joined #ruby
Icey has quit [Quit: icey]
claw has joined #ruby
DLSteve has quit [Read error: Connection reset by peer]
hahuang65 has joined #ruby
favadi has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rgtk has joined #ruby
hxegon has quit [Ping timeout: 255 seconds]
|ifei5g00d has joined #ruby
hxegon has joined #ruby
Yzguy has joined #ruby
ruby-lang038 has quit [Ping timeout: 246 seconds]
rgtk has quit [Ping timeout: 260 seconds]
dionysus69 has joined #ruby
<edj> does anyone know aproximately how many hours rubymonk should take?
DLSteve has joined #ruby
<Ox0dea> >> rand 42 # edj
<ruboto> Ox0dea # => 6 (https://eval.in/465906)
sankaber has joined #ruby
Arkon has quit [Remote host closed the connection]
<dorei> >> (1..42).to_a.sample
<ruboto> dorei # => 22 (https://eval.in/465907)
Arkon has joined #ruby
CloCkWeRX has quit [Ping timeout: 264 seconds]
jorb has quit [Ping timeout: 276 seconds]
NeverDie has quit [Read error: Connection reset by peer]
EllisTAA has joined #ruby
karapetyan has quit [Remote host closed the connection]
NeverDie has joined #ruby
jorb has joined #ruby
karapetyan has joined #ruby
SamGerber has quit [Quit: Leaving]
Sam_Gerber has quit [Quit: Leaving]
EllisTAA has left #ruby [#ruby]
Arkon has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rbowlby has quit [Remote host closed the connection]
NeverDie has quit [Client Quit]
solocshaw has joined #ruby
NeverDie has joined #ruby
asas has quit [Ping timeout: 240 seconds]
karapetyan has quit [Ping timeout: 250 seconds]
jgpawletko has quit [Ping timeout: 265 seconds]
wildlander has joined #ruby
NeverDie has quit [Max SendQ exceeded]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vigintas has joined #ruby
molay has quit [Quit: Leaving]
atomical_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
NeverDie has joined #ruby
bruno- has joined #ruby
bruno- is now known as Guest17385
vigintas has quit [Ping timeout: 240 seconds]
CloCkWeRX has joined #ruby
x-light has quit [Ping timeout: 264 seconds]
Rinzlit_ has joined #ruby
Rinzlit has quit [Ping timeout: 264 seconds]
Guest17385 has quit [Ping timeout: 240 seconds]
Rinzlit has joined #ruby
charliesome has joined #ruby
Rinzlit_ has quit [Ping timeout: 240 seconds]
x-light has joined #ruby
eminencehc has joined #ruby
Arkon has joined #ruby
UtkarshRay has quit [Remote host closed the connection]
Rinzlit_ has joined #ruby
colegatron has quit [Ping timeout: 260 seconds]
tubuliferous_ has quit [Read error: Connection reset by peer]
Rinzlit has quit [Ping timeout: 240 seconds]
TPBallbag has joined #ruby
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eminencehc has quit [Ping timeout: 240 seconds]
braincras has quit [Quit: bye bye]
x-light has quit [Ping timeout: 255 seconds]
sam_ has joined #ruby
Eiam_ has joined #ruby
gix has quit [Ping timeout: 250 seconds]
paradisaeidae has quit [Quit: ChatZilla 0.9.92 [Firefox 42.0/20151029151421]]
jobewan has quit [Ping timeout: 252 seconds]
TPBallbag has quit [Ping timeout: 250 seconds]
agent_white has joined #ruby
<sam_> Hi there, sorry for bothering everyone...a bit of a newbie question here, but I have looked and can't find what I'm looking for. I'd like to see ruby documentation in the command line. I've been trying to massage ri to fit the need, but keep running into issues and have read that when used in conjunction with rvm it will eat a lot of memory. Can anyone recommend a way to find ruby documentation that interrupts one's workflow less than naviga
<sam_> ting to ruby-doc.org?
<dionysus69> i know how to access last object in array but how do I access one before last?
<sam_> .[-2]
<dionysus69> oh nice didnt know negative worked thanks sam_
skweek has joined #ruby
Yzguy has quit [Quit: Zzz...]
braincrash has joined #ruby
paradisaeidae has joined #ruby
Yzguy has joined #ruby
gix has joined #ruby
musou has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<agent_white> Evenin' folks
<Ox0dea> sam_: I'm not sure I follow; ri is really how you ought to be accessing Ruby documentation from the command line.
colegatron has joined #ruby
freedrull has joined #ruby
ruby-lang429 has quit [Ping timeout: 246 seconds]
<freedrull> module names matching the file path, convention or hard requirement? eg Foo::Bar::Baz is located foo/bar/baz.rb
<Ox0dea> freedrull: Convention, but there's no particularly compelling reason to break it.
<freedrull> right
watsy has joined #ruby
Yzguy has quit [Quit: Zzz...]
DLSteve has joined #ruby
<freedrull> its kind of hard to make a good case against it in a code review, since it doesn't necessarily break anything
<Ox0dea> It breaks Rails' autoloading mechanism.
<pontiki> breaking a convention is a great reason to flag it
<pontiki> there should be good reasons given for breaking conventions, not the other way 'round
northfurr has joined #ruby
s00pcan has quit [Remote host closed the connection]
<freedrull> Ox0dea: oh right, thats true, i have definitely seen that before
<freedrull> pontiki: makes sense
fedexo has joined #ruby
Yzguy has joined #ruby
cmoneylulz has quit [Remote host closed the connection]
dorei has quit []
jackjackdripper has joined #ruby
jackjackdripper has quit [Client Quit]
rbowlby has joined #ruby
RobertBirnie has joined #ruby
maxzda has joined #ruby
shock_one has joined #ruby
<sam_> Ox0dea, thank you, I will try harder to get it working.
<bnagy> sam_: I think pry does docs
agent_white has quit [Read error: Connection reset by peer]
<bnagy> and most ruby workflows probably involve an open pry (or irb) window
yfeldblum has quit [Ping timeout: 240 seconds]
govg has joined #ruby
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sam_ has quit [Remote host closed the connection]
sam_ has joined #ruby
kobain has quit [Ping timeout: 250 seconds]
agent_wh1te has joined #ruby
shock_one has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Yzguy has quit [Quit: Zzz...]
agent_wh1te is now known as agent_white
freerobby has quit [Quit: Leaving.]
agent_white has quit [Changing host]
agent_white has joined #ruby
<sam_> bnagy, what would you type in a pry or irb prompt
Rickmasta has joined #ruby
newdan has quit [Remote host closed the connection]
ThatsNotJack has quit [Remote host closed the connection]
<Ox0dea> sam_: help
ThatsNotJack has joined #ruby
<sam_> Ox0dea, thanks
<Ox0dea> sam_: Sure thing.
<sunya7a> how do i sort an array of objects into groups based on a property of the object?
ThatsNotJack has quit [Remote host closed the connection]
<Ox0dea> &ri Enumerable#sort_by @sunya7a
ThatsNotJack has joined #ruby
<sunya7a> ty
ngscheurich has joined #ruby
swgillespie has joined #ruby
willardg has joined #ruby
Skull0Inc has joined #ruby
<bnagy> 'into groups' might be group_by
<Ox0dea> Oops.
cdd is now known as chinmay_dd
charliesome has joined #ruby
Arkon has quit [Remote host closed the connection]
Fire-Dragon-DoL has quit []
Arkon has joined #ruby
northfurr has quit [Quit: northfurr]
northfurr has joined #ruby
willardg has left #ruby ["Textual IRC Client: www.textualapp.com"]
pdoherty has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
ngscheurich has quit [Quit: WeeChat 1.2]
Nightmare is now known as HaythemKenway
HaythemKenway is now known as HaythamKenway
craigp_ has quit [Remote host closed the connection]
_blizzy_ has quit [Quit: Leaving]
Arkon has quit [Remote host closed the connection]
Arkon has joined #ruby
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
darkf has joined #ruby
ngscheurich has joined #ruby
h99h9h88 has joined #ruby
Arkon has quit [Read error: Connection reset by peer]
ngscheurich has quit [Client Quit]
Arkon has joined #ruby
leafybas_ has joined #ruby
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
infamos has quit [Ping timeout: 250 seconds]
leafybas_ has quit [Ping timeout: 265 seconds]
<sam_> Ox0dea and bnagy, I know you probably think me a fool (and are likely right) but your simple instructions helped me out worlds - I wasn't using half of what pry is good for.
<Ox0dea> sam_: Probably not even a tenth! :P
<sam_> Thank you
<Ox0dea> It's a very powerful tool.
<sam_> Ox0dea, even that's generous
<Ox0dea> sam_: In any case, I'm glad we've helped you to see that particular light.
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
h99h9h88 has quit [Remote host closed the connection]
sleetdrop has joined #ruby
NeverTired has quit [Quit: Connection closed for inactivity]
<agent_white> Dese folks, they know thangs.
fedexo has quit [Ping timeout: 240 seconds]
<sleetdrop> osx 10.11 gem install report ssl related error https://gist.github.com/sleetdrop/f13db1a0188b1eec3c76
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Arkon has quit [Remote host closed the connection]
mallu has joined #ruby
Arkon has joined #ruby
<mallu> Can someone please tell me why this is not working? https://gist.github.com/anonymous/4ca7a3958083876fe59f
Arkon_ has joined #ruby
devoldmx has quit [Remote host closed the connection]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arescorpio has quit [Quit: Leaving.]
<Ox0dea> mallu: You've got the parameters backwards in the method definition.
Arkon has quit [Ping timeout: 240 seconds]
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
deg_ has quit [Ping timeout: 264 seconds]
<mallu> Ox0dea: which parameters?
<Ox0dea> mallu: The only parameters in that snippet of code.
<Ox0dea> mallu: Yep, just flip the parameters for `calculate`.
<mallu> Then I get this error syntax error, unexpected '=', expecting ')' def calculate(*numbers, options = {} ) ^ from C:/Ruby22-x64/bin/irb:11:in `<main>'
devoldmx has joined #ruby
<Ox0dea> mallu: You'll need to make options a keyword argument.
<mallu> Ox0dea: how do you do that? I'm new at this
<Ox0dea> mallu: Er, sorry, that wouldn't quite work. You'll have to use `add` and `subtract` as optional keyword arguments.
jobewan has joined #ruby
<Ox0dea> Alternatively, you could just accept *arguments, and then pop the last and use it as the options if and only if it's a Hash, but that's hackish.
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diegoaguilar has quit [Remote host closed the connection]
framling has joined #ruby
favadi has joined #ruby
<mallu> "You'll have to use `add` and `subtract` as optional keyword arguments" How do you do that?
jxie has joined #ruby
jxie has quit [Client Quit]
yfeldblum has joined #ruby
favadi has quit [Max SendQ exceeded]
<Ox0dea> mallu: def foo(*args, add: false, subtract: false) ...
<Ox0dea> As you might be able to see, this is probably not the best way to structure this method.
bmurt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> `calculate` should just take an initial argument indicating whether to add or subtract.
<bnagy> mallu: https://eval.in/465957
<bnagy> but tbh idiomatic ruby would probably use procs
<Ox0dea> Or a terminal argument.
macdaddy has quit [Quit: WeeChat 1.3]
<mallu> ok... thanks guys
CloCkWeRX has quit [Ping timeout: 265 seconds]
<agent_white> Huh... never thought to try the catch-rest (*) at the start of an argument.
deg_ has joined #ruby
<bnagy> mallu: https://eval.in/465970 :P
<Ox0dea> >> *butlast, last = [1,2,3,4]; [butlast, last] # agent_white
<ruboto> Ox0dea # => [[1, 2, 3], 4] (https://eval.in/465972)
astrobunny has joined #ruby
dlitvak has joined #ruby
<Ox0dea> bnagy: No need for `&` there, mind.
mordocai has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
<bnagy> not for + or - because magic
<bnagy> but I wasn't sure if it will to_proc any symbol
<mallu> thanks bnagy
<Ox0dea> They're not particularly special.
sanjayu has joined #ruby
<Ox0dea> There's a VM instruction called `opt_send_without_block` that was born for #reduce/#inject.
hxegon has quit [Ping timeout: 252 seconds]
hxegon has joined #ruby
Musashi007 has joined #ruby
<Ox0dea> >> h = {a: {b: {c: 42}}}; %i[a b c].reduce h, :[] # bnagy
<ruboto> Ox0dea # => 42 (https://eval.in/465979)
vigintas has joined #ruby
<Ox0dea> So it's not even that some Symbols are "magically" to_proc'd; they just skip the step as an optimization.
paradisaeidae has quit [Read error: Connection reset by peer]
dlitvak has quit [Remote host closed the connection]
<bnagy> this has possibly changed
Coldblackice_ has quit [Ping timeout: 255 seconds]
<Ox0dea> 19>> h = {a: {b: {c: 42}}}; [:a, :b, :c].reduce h, :[] # bnagy
<ruboto> Ox0dea # => 42 (https://eval.in/465980)
<bnagy> 19>> [1,2,3].inject :|
<ruboto> bnagy # => 3 (https://eval.in/465981)
<bnagy> fair enough :)
Musashi007 has quit [Client Quit]
vigintas has quit [Ping timeout: 240 seconds]
Mon_Ouie has quit [Ping timeout: 276 seconds]
axsuul has joined #ruby
davedev2_ has quit []
Mon_Ouie has joined #ruby
northfurr has quit [Quit: northfurr]
CloCkWeRX has joined #ruby
iateadonut has joined #ruby
djbkd has quit [Quit: My people need me...]
yes`r has quit [Ping timeout: 240 seconds]
charliesome has quit [Ping timeout: 260 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bruno-_ has joined #ruby
<Ox0dea> That we can refine #method_missing but not #const_missing is really shitting in my corn flakes right now.
watsy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tmtwd has quit [Ping timeout: 240 seconds]
watsy has joined #ruby
bruno-_ has quit [Ping timeout: 244 seconds]
shock_one has joined #ruby
<sam_> Maybe a good day to skip breakfast
DiCablo has quit [Quit: Textual IRC Client: www.textualapp.com]
<agent_white> sam_: Good idea. Gotta let the whiskey age.
AlexRussia has quit [Ping timeout: 240 seconds]
<Ox0dea> "Premium malt whiskey, aged nine minutes."
dionysus69 has quit [Ping timeout: 244 seconds]
<agent_white> Ox0dea: Damn those bacon strips must be burnt!
swgillespie has joined #ruby
skade has joined #ruby
TPBallbag has joined #ruby
mallu has quit [Ping timeout: 246 seconds]
charliesome has joined #ruby
TPBallbag has quit [Ping timeout: 246 seconds]
gusrub has joined #ruby
baweaver has joined #ruby
dhjondoh has joined #ruby
ss_much has quit [Quit: Connection closed for inactivity]
yes`r has joined #ruby
<agent_white> Or more importantly... if it has time to age upon it's age...
shock_one has quit [Remote host closed the connection]
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
baweaver has quit [Ping timeout: 252 seconds]
deg_ has quit [Ping timeout: 272 seconds]
shock_one has joined #ruby
bMalum has joined #ruby
krz has joined #ruby
Xzanron has joined #ruby
gard_ has joined #ruby
hxegon has quit [Ping timeout: 260 seconds]
benlieb has joined #ruby
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
Ox0dea has quit [Read error: Connection reset by peer]
watsy has quit [Quit: Textual IRC Client: www.textualapp.com]
kerunaru has joined #ruby
deg_ has joined #ruby
sdfgsdfg has quit [Read error: Connection reset by peer]
bricker has quit [Ping timeout: 264 seconds]
norc has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
hxegon has joined #ruby
iateadonut has quit [Ping timeout: 240 seconds]
skade has quit [Quit: Computer has gone to sleep.]
stannard has joined #ruby
ta has quit [Remote host closed the connection]
govg has quit [Ping timeout: 244 seconds]
stannard has quit [Ping timeout: 244 seconds]
bricker has joined #ruby
tagrudev has joined #ruby
vigintas has joined #ruby
RobertBirnie has joined #ruby
aganov has joined #ruby
ESpiney has quit [Quit: Leaving]
nchambers\dead is now known as nchambers
lxsameer has quit [Remote host closed the connection]
PlasmaStar has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
vigintas has quit [Ping timeout: 252 seconds]
Dreamer3 has quit [Max SendQ exceeded]
kerunaru has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Dreamer3 has joined #ruby
psy_ has quit [Quit: Leaving]
gusrub has quit [Quit: Leaving]
desmondhume has joined #ruby
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
Guest23333 has quit [Ping timeout: 252 seconds]
minimalism has quit [Quit: leaving]
maxzda has quit [Ping timeout: 244 seconds]
Olipro_ has joined #ruby
Olipro_ is now known as Guest2784
minimalism has joined #ruby
bricker has quit [Remote host closed the connection]
bricker has joined #ruby
PlasmaStar has joined #ruby
dionysus69 has joined #ruby
astrobunny has quit [Remote host closed the connection]
Kabal has quit [Ping timeout: 252 seconds]
Skull0Inc has quit [Remote host closed the connection]
jessemcgilallen has joined #ruby
Mon_Ouie has quit [Ping timeout: 260 seconds]
desmondhume has quit [Ping timeout: 264 seconds]
Pupp3tm4st3r has joined #ruby
astrobunny has joined #ruby
symm- has joined #ruby
eightbellyoct has quit [Quit: eightbellyoct]
shock_one has quit [Remote host closed the connection]
yardenbar has joined #ruby
sinkensabe has joined #ruby
ciampix has joined #ruby
iateadonut has joined #ruby
kerunaru has joined #ruby
devbug has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
scmx has joined #ruby
rgtk has joined #ruby
desmondhume has joined #ruby
houhoulis has quit [Remote host closed the connection]
jas02 has joined #ruby
willardg has joined #ruby
jessemcgilallen has quit [Quit: jessemcgilallen]
dropkiss has joined #ruby
rgtk has quit [Ping timeout: 260 seconds]
shock_one has joined #ruby
blue_deref has quit [Quit: bbn]
desmondhume has quit [Ping timeout: 252 seconds]
jobewan has quit [Ping timeout: 240 seconds]
dropkiss has quit [Ping timeout: 246 seconds]
codecop has joined #ruby
ss_much has joined #ruby
craigp has joined #ruby
axsuul has quit [Ping timeout: 240 seconds]
desmondhume has joined #ruby
infamos has joined #ruby
Asher has quit [Quit: Leaving.]
astrobunny has quit [Ping timeout: 272 seconds]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Asher has joined #ruby
astrobunny has joined #ruby
arup_r has joined #ruby
desmondhume has quit [Remote host closed the connection]
arup_r is now known as Guest43731
supergeek has joined #ruby
Guest43731 is now known as arup_r
darkf has quit [Quit: Leaving]
Voker57 has joined #ruby
supergeek has quit [Client Quit]
eightbellyoct has joined #ruby
eightbellyoct has quit [Client Quit]
Asher has quit [Quit: Leaving.]
andikr has joined #ruby
stan has joined #ruby
dhjondoh has joined #ruby
Asher has joined #ruby
Xeago has joined #ruby
rgtk has joined #ruby
vdamewood has quit [Quit: Life beckons.]
ta has joined #ruby
darkf has joined #ruby
rgtk has quit [Read error: Connection reset by peer]
agent_white has quit [Read error: Connection reset by peer]
lkba_ has quit [Ping timeout: 260 seconds]
rgtk has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
htmldrum has quit [Ping timeout: 246 seconds]
solars has joined #ruby
edj has quit [Quit: Page closed]
gard_ has quit [Ping timeout: 272 seconds]
agent_white has joined #ruby
rgtk has quit [Read error: Connection reset by peer]
rgtk has joined #ruby
bruno- has joined #ruby
lsmola has joined #ruby
bruno- is now known as Guest79067
solars has quit [Ping timeout: 250 seconds]
rgtk has quit [Read error: Connection reset by peer]
SCHAAP137 has joined #ruby
ruby-lang319 has joined #ruby
rgtk has joined #ruby
th0m_ has quit [Ping timeout: 252 seconds]
arup_r has quit [Quit: Leaving]
Rinzlit has joined #ruby
znz_jp has quit [Quit: kill -QUIT $$]
araujo_ has joined #ruby
araujo_ has quit [Max SendQ exceeded]
Guest79067 has quit [Ping timeout: 250 seconds]
rgtk has quit [Remote host closed the connection]
skade has joined #ruby
araujo_ has joined #ruby
x-light has joined #ruby
Rinzlit_ has quit [Ping timeout: 264 seconds]
araujo has quit [Ping timeout: 240 seconds]
symm- has quit [Ping timeout: 240 seconds]
teclator has joined #ruby
zeroDivisible has joined #ruby
znz_jp has joined #ruby
TPBallbag has joined #ruby
Rinzlit has quit [Ping timeout: 265 seconds]
th0m_ has joined #ruby
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zeroDivisible has quit [Client Quit]
peppers has quit [Quit: Leaving]
TPBallbag has quit [Ping timeout: 272 seconds]
solars has joined #ruby
sam_ has quit [Ping timeout: 246 seconds]
rakm has joined #ruby
Spami_ has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
moeabdol has joined #ruby
desmondhume has joined #ruby
kimegede has joined #ruby
tvw has joined #ruby
aufi has joined #ruby
howdoicomputer has quit [Quit: WeeChat 1.3]
vigintas has joined #ruby
adac has joined #ruby
benlieb has quit [Read error: Connection reset by peer]
benlieb has joined #ruby
solocshaw has quit [Ping timeout: 246 seconds]
vigintas has quit [Ping timeout: 255 seconds]
futilegames has joined #ruby
x-light has quit [Ping timeout: 265 seconds]
arup_r has joined #ruby
blaxter has joined #ruby
ibouvousaime has joined #ruby
shredding has joined #ruby
anisha has joined #ruby
timonv has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shock_one has quit [Remote host closed the connection]
benlieb has quit [Quit: benlieb]
Xeago has joined #ruby
lipoqil has joined #ruby
teclator has quit [Ping timeout: 272 seconds]
RegulationD has joined #ruby
bricker has quit [Ping timeout: 240 seconds]
shock_one has joined #ruby
TheHodge has joined #ruby
Hounddog has joined #ruby
desmondhume is now known as __desmondhume
RegulationD has quit [Ping timeout: 255 seconds]
Coldblackice_ has joined #ruby
vigintas has joined #ruby
wprice has joined #ruby
<norc> Anyone here around with the current ruby trunk and the gcc kit to build it with?
araujo_ has quit [Quit: Leaving]
<havenwood> norc: yeah sure, multiple folk
treaki has joined #ruby
govg has joined #ruby
<norc> havenwood: Can you try building it with CFLAGS=-DCPDEBUG=3
dionysus69 has quit [Ping timeout: 240 seconds]
DEA7TH has joined #ruby
trosborn has joined #ruby
govg has quit [Client Quit]
TPBallbag has joined #ruby
govg has joined #ruby
<bougyman> heh, I just noticed rubymine is for-pay
<havenwood> norc: ./enc/make_encmake.rb: method `inspect' called on unexpected T_IMEMO object (0x007fb103847270 flags=0x703a) (NotImplementedError)
<havenwood> make: *** [enc.mk] Error 1
<norc> havenwood: Thanks.
howdoi has joined #ruby
teclator has joined #ruby
vondruch_ has joined #ruby
rbowlby has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 240 seconds]
bapa has quit [Quit: Zalgo watches]
DoubleMalt has joined #ruby
ruby-lang319 has quit [Ping timeout: 246 seconds]
vondruch has quit [Ping timeout: 250 seconds]
benlovell has joined #ruby
VeryBewitching has quit [Quit: Konversation terminated!]
dhjondoh has quit [Quit: dhjondoh]
marr has joined #ruby
futilegames has quit [Quit: futilegames]
dhjondoh has joined #ruby
shock_one has quit [Remote host closed the connection]
shock_one has joined #ruby
troulouliou_div2 has joined #ruby
futilegames has joined #ruby
zenguy_pc has quit [Ping timeout: 272 seconds]
treaki has quit [Ping timeout: 272 seconds]
shock_one has quit [Ping timeout: 250 seconds]
Arkon_ has quit [Remote host closed the connection]
Arkon has joined #ruby
neanderslob has quit [Ping timeout: 250 seconds]
neanderslob has joined #ruby
mark2 has joined #ruby
futilegames has quit [Quit: futilegames]
musou has quit [Quit: Connection closed for inactivity]
erbesharat has joined #ruby
joonty has joined #ruby
Arkon has quit [Ping timeout: 240 seconds]
voodo has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
voodo has quit [Client Quit]
subscope has joined #ruby
qba73 has joined #ruby
ciampix has quit [Quit: Leaving]
voodo has joined #ruby
weemsledeux has joined #ruby
tomphp has joined #ruby
<FailBit> :π
<FailBit> is apparently a valid symbol literal :Y
<apeiros> as are most utf-8 chars
<apeiros> >> :
<ruboto> apeiros # => :
Azure has quit [Ping timeout: 240 seconds]
tvw has quit [Remote host closed the connection]
<norc> So where would I find people knowledged in the MRI?
claw has quit [Ping timeout: 252 seconds]
<apeiros> in japan
<norc> Hah.
<FailBit> msot of this channel
<FailBit> has some kind of knowledge with it
wprice has quit [Quit: wprice]
shock_one has joined #ruby
rdark has joined #ruby
nfk|laptop has joined #ruby
claw has joined #ruby
__desmondhume has quit [Remote host closed the connection]
stannard has joined #ruby
blackmesa has joined #ruby
<norc> Well, Im trying to figure out how and why the build process is failing at the moment.
stannard has quit [Ping timeout: 240 seconds]
monthy has joined #ruby
it_tard has joined #ruby
nfk|laptop has quit [Read error: Connection reset by peer]
it_tard is now known as nfk|laptop
zenguy_pc has joined #ruby
asas has joined #ruby
<apeiros> I suggest you book a flight then :o)
<apeiros> alternatively you might try the ML or ask in here
mdih has joined #ruby
vigintas has quit [Ping timeout: 240 seconds]
Pupp3tm4st3r has quit [Remote host closed the connection]
vigintas has joined #ruby
lukaszes has joined #ruby
<mozzarella> cool colors
I has joined #ruby
I is now known as Guest58448
TomyWork has joined #ruby
Pupp3tm4st3r has joined #ruby
* apeiros wonders why FailBit links the pic of an elephant here
Emmanuel_Chanel has quit [Quit: Leaving]
skade has quit [Ping timeout: 255 seconds]
<sjums> that center piece is really annoying
<FailBit> it's a cool trick
<FailBit> you can put the hole wherever you want
stamina has joined #ruby
<norc> apeiros: I think booking a flight and staying at a Japanese Ruby temple might be the faster option.
Emmanuel_Chanel has joined #ruby
Emmanuel_Chanel has quit [Max SendQ exceeded]
rodfersou has joined #ruby
TPBallbag is now known as Ballkenende
Emmanuel_Chanel has joined #ruby
Ballkenende is now known as TPBallbag
futilegames has joined #ruby
__desmondhume has joined #ruby
duncannz has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby
mary5030 has quit [Remote host closed the connection]
bruno- is now known as Guest74597
skade has joined #ruby
asas has quit [Ping timeout: 260 seconds]
<blubjr> ruby doesn't have anything like anaphoric macros right
<blubjr> im googling around but not seeing anything
colegatron has quit [Ping timeout: 240 seconds]
vondruch_ has quit [Ping timeout: 240 seconds]
rgtk has joined #ruby
Guest74597 has quit [Ping timeout: 240 seconds]
futilegames has quit [Read error: Connection reset by peer]
rgtk has quit [Read error: No route to host]
futilegames has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<adaedra> apeiros: it's irrelephant.
<apeiros> :D
<yorickpeterse> ha ha ha I get it
stamina has quit [Ping timeout: 240 seconds]
bweston92 has joined #ruby
<ccooke> blubjr: Ruby doesn't have macros really, but the metaprogramming supports some anaphoric concepts.
mfoo has quit [Quit: Leaving]
rbowlby has joined #ruby
sepp2k has joined #ruby
vondruch_ has joined #ruby
ss_much has quit [Quit: Connection closed for inactivity]
marr has quit [Ping timeout: 250 seconds]
rbowlby has quit [Ping timeout: 240 seconds]
<blubjr> oh im an idiot i didnt read far enough down that page
<blubjr> thank you
yes`r has quit [Ping timeout: 265 seconds]
colegatron has joined #ruby
Rollabunna has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
DEA7TH has quit [Quit: DEA7TH]
karapetyan has joined #ruby
unclouded has quit [Ping timeout: 246 seconds]
noodle has quit [Ping timeout: 252 seconds]
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skade has quit [Ping timeout: 272 seconds]
avelldiroll has quit [Quit: WeeChat 0.3.8]
skade has joined #ruby
DEA7TH has joined #ruby
voodo has quit [Quit: Leaving...]
DEA7TH has quit [Client Quit]
blackmesa has quit [Ping timeout: 240 seconds]
voodo has joined #ruby
avelldiroll has joined #ruby
Peg-leg has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
astrobunny has quit [Remote host closed the connection]
favadi has joined #ruby
pandaant has quit [Remote host closed the connection]
qiukun has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
weemsledeux has joined #ruby
charliesome has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
qiukun has quit [Remote host closed the connection]
qiukun has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
__desmondhume has quit [Remote host closed the connection]
doddok has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
dikaio_ has quit [Quit: ........]
agent_white has quit [Quit: blur]
shock_one has quit [Read error: Connection reset by peer]
sinkensabe has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Remote host closed the connection]
ldnunes has joined #ruby
sinkensabe has joined #ruby
qiukun has quit [Remote host closed the connection]
qiukun has joined #ruby
skade has quit [Ping timeout: 240 seconds]
guillaume-rb has quit [Quit: guillaume-rb]
yeticry has quit [Ping timeout: 240 seconds]
beauby has joined #ruby
yeticry has joined #ruby
platzhirsch has joined #ruby
ctp has quit [Quit: Connection closed for inactivity]
vondruch_ has quit [Ping timeout: 240 seconds]
vondruch has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lipoqil has quit [Quit: Connection closed for inactivity]
Pupp3tm4st3r has joined #ruby
bruno- has joined #ruby
bruno- is now known as Guest73316
__desmondhume has joined #ruby
craigp has quit [Remote host closed the connection]
<norc> Other than Ripper.sexp or compiling with CPDEBUG, is there a way to get a look at the AST, ideally seeing the actual NODE_ types and underlying structures?
<norc> Or do I have to plug in my debugger for this?
chriscoffee has joined #ruby
<yorickpeterse> norc: you can use https://github.com/whitequark/parser
<norc> yorickpeterse: Thank you I shall assess its usability for my scenario. :)
noodle has joined #ruby
dhjondoh has joined #ruby
<norc> Or maybe I should just figure out whether I can fix this bug in the compiler. CPDEBUG really is what I want in the end.
dionysus69 has joined #ruby
senayar has joined #ruby
lseactuary has joined #ruby
lubekpl has joined #ruby
<lseactuary> anyone here know of a software where i can build a 'front end' to a manhattan/vertica back end y dragging/dropping elements instead of actually coding. similar to this: http://pinegrow.com/docs/editing/layout.html
krz has quit [Quit: WeeChat 1.2]
govg has quit [Ping timeout: 240 seconds]
craigp has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
bruce_lee has joined #ruby
rbowlby has joined #ruby
futilegames has quit [Quit: futilegames]
ibouvousaime has quit [Ping timeout: 246 seconds]
dionysus69 has joined #ruby
baweaver has joined #ruby
<lubekpl> lseactuary you can try out http://pingendo.com/
<lseactuary> lubekpl can i make charts / graphs in this?
codecop has quit [Remote host closed the connection]
CodingWolf has quit [Read error: Connection reset by peer]
CodingWolf has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rickmasta has joined #ruby
htmldrum has joined #ruby
rbowlby has quit [Ping timeout: 246 seconds]
marr has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
qiukun has quit [Quit: qiukun]
infamos has quit [Ping timeout: 240 seconds]
<norc> shevy: Today I wrote an entire Ruby method. It is true.
Affix has quit [Excess Flood]
<lseactuary> i want to make something like this: http://imgur.com/XVjpT8V
<lseactuary> like a tool
<lseactuary> not just a webpage
Affix has joined #ruby
dionysus69 has quit [Ping timeout: 272 seconds]
Affix is now known as Guest66467
voodo has quit [Quit: Leaving...]
beauby has quit [Ping timeout: 250 seconds]
<lubekpl> lseactuary I guess you can create a simple template quickly and easily in this, and then use something like https://github.com/ankane/chartkick for graphs
minimalism has quit [Quit: leaving]
<lseactuary> lubekpl the problem is i cant code - therefore i need a tool where i can drag/drop/change stuff
skade has joined #ruby
dionysus69 has joined #ruby
beauby has joined #ruby
<kiki_lamb> if my class has both an cluded module and a parent class, both containing an initialize method, how do I control which one I am calling with super in my own class's initialize method?
<kiki_lamb> 'an included'
prestorium has joined #ruby
<lseactuary> lubekpl any ideas please?
UNIMPL has joined #ruby
antgel has joined #ruby
mus has quit [Quit: leaving]
Musashi007 has joined #ruby
karapetyan has quit [Remote host closed the connection]
dhjondoh has quit [Remote host closed the connection]
stamina has joined #ruby
<kiki_lamb> suchness: if i'm reading that right, there's no way to ensure both intializers are called, assuming the module and parent class don't know about each other
<kiki_lamb> sounds like super will hit the included module, and the parent class's initialize will never be called?
<suchness> Correct
blackmesa has joined #ruby
Spami_ has quit [Quit: This computer has gone to sleep]
<suchness> Well
<suchness> You could call super in the module
govg has joined #ruby
subscope has joined #ruby
govg is now known as Guest28473
<norc> Just remember the difference between super and super()
<kiki_lamb> seems like for that to work properly, the module would need to know something about the parent class
* norc is still baffled by that
avril14th has joined #ruby
<suchness> kiki_lamb: Well, it depends on what exactly you are trying to accomplish, in some situations the module would know, other times not so much. I don't know what you are implementing, but basically that's the lookup, if you need it to do something different you need to call super where necessary, or implement your architecture differently.
<norc> kiki_lamb: Best way would be to not define an initialize method in a module, but work with callbacks rather.
<norc> Let your class hierarchy call callbacks, that your module can register.
<norc> For example
dionysus69 has quit [Ping timeout: 246 seconds]
Azure has joined #ruby
voodo has joined #ruby
dionysus69 has joined #ruby
<kiki_lamb> right now i've got something like 'class Instruments < Hash; include TimingScope; ...; end'. Each Instruments needs to initialize it's parent Hash with certain arguments, but it also needs to do the same with it's TimingScope.
<blubjr> super without parens implicitly passes arguments up right
<kiki_lamb> there are plenty of other classeds including TimingScope that are not descendents of Hash, so having TimingScope initialize the Hash seems impractical
<kiki_lamb> blubjr: yup
<norc> blubjr: It also passes a block if present. ;-)
<kiki_lamb> ^ figured that was kind of implied, but yeah
<norc> Ideally just use super() - it is so much more readable.
<kiki_lamb> suchness: so, for my snippet there, is there any possible way for Instruments (not it's included TimingScope) to initialize it's parent Hash?
<norc> kiki_lamb: Heh, internally blocks are considered very much differently from arguments.
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dionysus70 has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<suchness> kiki_lamb: I don't see a snippet
dionysus69 has quit [Ping timeout: 240 seconds]
dionysus70 is now known as dionysus69
<kiki_lamb> norc: maybe under the hood, sure.. but from a language user perspective, though, they're integrated into the method argument system and at any given time they're a character or two of sugar away from being the same as any typical Proc argument.
trosborn has quit [Quit: trosborn]
<kiki_lamb> suchness: 'class Instruments < Hash; include TimingScope; ...; end'
tvw has joined #ruby
Jamo has quit [Remote host closed the connection]
<blubjr> blocks are a really ugly wart to me right now still i've only been doing ruby for like a week tho, maybe theyll grow on me
<suchness> kiki_lamb: I think if that's your goal you need to look at composition over inheritance
dhjondoh has joined #ruby
Jamo has joined #ruby
DEA7TH has joined #ruby
<kiki_lamb> blubjr: definitely. once you get to the point where you're building your own little task specific DSLs you'll find that often half the arguments you're dealing with are blocks.
lxsameer has quit [Ping timeout: 240 seconds]
Musashi007 has quit [Quit: Musashi007]
voodo has quit [Read error: Connection reset by peer]
<norc> kiki_lamb: The most interesting part about blocks is, is that they are one of the very few things that actually are not objects in Ruby.
donske has joined #ruby
lkba has joined #ruby
bweston92 has quit [Quit: Leaving]
devbug_ has joined #ruby
Guest66467 has quit [Changing host]
Guest66467 has joined #ruby
<kiki_lamb> norc: sure, just not something you have to think about a lot as a user, given how trivial it is to box/unbox them in Procs
Musashi007 has joined #ruby
Guest66467 is now known as Affix
<pontiki> the most interesting part about blocks to me is how i can use them
favadi has joined #ruby
<norc> kiki_lamb: I was just trying to make a point. IMO it is not obvious that super should also pass along a block, especially since is neither implemented as an argument, nor does it look like one, or becomes apparent that one can be passed.
zacts has quit [Read error: Connection reset by peer]
<lseactuary> anyone have ideas?
devbug has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Read error: Connection reset by peer]
dreinull75 has quit [Remote host closed the connection]
<suchness> lseactuary: You want a drag and drop front end because you can't code and you're asking in an IRC dedicated to coding, I don't think you will get much in the way of help.
<suchness> wordpress
<suchness> shopify
<lseactuary> suchness then what do i do?
<suchness> tumblr
<suchness> lseactuary: Well, learn to code perhaps.
<pontiki> pay someone(s) to make it for you
<suchness> ^
<lseactuary> i dont have that option
<lseactuary> and i have tried learning but i dont even know where to start
<suchness> Better start learning then.
__desmondhume has quit [Remote host closed the connection]
<norc> kiki_lamb: And in cases of class hierarchies, an upper method that does fancy things based on block_given? can suddenly lead to bugs. :D
<suchness> There are a lot of first rails app tutorials on the internet, pick one.
<lseactuary> and there is no one at my company who can walk me through stuff
zacts has joined #ruby
<lseactuary> i dont even know if rails is what i need
gusTester has joined #ruby
<suchness> lseactuary: What is your job?
<lseactuary> my job is to analyse data and scope tools
<lseactuary> the problem is without programming i cant get the data nor build any tools
<lseactuary> so we hired a data engineer who is writing scripts for data
<suchness> lseactuary: I think you might need to find another job then.
<lseactuary> but i need to help him wit hthe front end
rgtk has joined #ruby
beauby has quit [Ping timeout: 252 seconds]
<lseactuary> because we are under-resources
<suchness> If you aren't willing to learn how to do your job it's better you let someone who is.
<lseactuary> well i didnt say i dont want to learn
<lseactuary> i just have no clue where to start
<lseactuary> people send me a bunch of github links and i dont get it
<lseactuary> i dont have any background in this
<norc> lseactuary: What do you want to learn?
<blubjr> oh, i asked the other day but i dont think anyone answered, does ruby have something like lisp's FRESH-LINE, where it prints a newline unless you're already at the start of the line
<lseactuary> its like learning a newl anguage
<lseactuary> without any help
arup_r has quit [Ping timeout: 240 seconds]
holsee_ has quit [Quit: Connection closed for inactivity]
<suchness> That book started my career.
<lseactuary> i tried python i didnt udnerstand a thing
<suchness> Oh good god.
<lseactuary> and i dont have the time to go through bunch of code books
rgtk has quit [Read error: Connection reset by peer]
<lseactuary> i need to build something and quick
<lseactuary> and then he can plug in the data
<pontiki> it seems like you should take classes for a while, as self learning isn't working for you in this area
<lseactuary> im under a lot of pressure here
<lseactuary> i tried sclading classes
<lseactuary> again didnt understand a thing
<pontiki> try again
<norc> blubjr: Someone sadistic seems to have written this in ancient history: https://github.com/now/ruby-lisp
<norc> :D
platzhirsch has quit [Ping timeout: 265 seconds]
krz has joined #ruby
<pontiki> seriously what are you expecting from us?
<lseactuary> surely there is some tool which can help
<lseactuary> me scope the front end
<lseactuary> but something with graphs and tables and charts
Musashi007 has quit [Quit: Musashi007]
<pontiki> excel?
<suchness> ^
<lseactuary> i need to build a tool so people can input workds and date ranges etc
<lseactuary> excel or tableau or SQL wont cut it
<sapslaj> Access?
<lseactuary> i dont have this type of data
<lseactuary> i need a tool
<lseactuary> ive got back end help i just need to design the front end
Spami_ has joined #ruby
<suchness> lseactuary: http://www.highcharts.com/
lxsameer has joined #ruby
<norc> lseactuary: Oh I know what you want.
build22 has joined #ruby
platzhirsch has joined #ruby
beauby has joined #ruby
<norc> lseactuary: Microsoft Sharepoint obviously meets your requirements. :-)
<suchness> lseactuary: http://d3js.org/
devbug_ has quit [Read error: Connection reset by peer]
<lseactuary> i see
solocshaw has joined #ruby
chipotle has joined #ruby
<suchness> lseactuary: For the future, HTML and CSS are not 'coding', though javascript is.
<lseactuary> ok
<adaedra> CSS is 'torture'.
<norc> CSS is just widely misunderstood.
<suchness> I like css
<suchness> When it's nice and neat
<suchness> But when it's not, then kill me please
<sapslaj> Vanilla CSS can be a pain.
Ilyes512 has joined #ruby
<sapslaj> Using a preproccessor makes things a little more managable.
Musashi007 has joined #ruby
<suchness> lseactuary: Did one of those tools help?
fivnay has joined #ruby
benlovell has quit [Ping timeout: 240 seconds]
<lseactuary> yes - exactly what i needed :)
Musashi007 has quit [Client Quit]
<suchness> lseactuary: Good
monthy has quit [Ping timeout: 240 seconds]
sanjayu has quit [Quit: Leaving]
baweaver has joined #ruby
arup_r has joined #ruby
arup_r is now known as Guest3585
infamos has joined #ruby
tvw has quit [Ping timeout: 276 seconds]
TvL2386 has joined #ruby
Guest3585 is now known as arup_r
Guest28473 has quit [Ping timeout: 240 seconds]
kp666 has quit [Remote host closed the connection]
baweaver has quit [Ping timeout: 240 seconds]
vondruch has quit [Quit: Ex-Chat]
blackmesa has quit [Ping timeout: 260 seconds]
beauby has quit [Ping timeout: 250 seconds]
syath has joined #ruby
infamos has quit [Ping timeout: 240 seconds]
Xeago has quit [Remote host closed the connection]
lseactuary has quit [Quit: Page closed]
shredding has quit [Ping timeout: 240 seconds]
dhjondoh1 has joined #ruby
Guest58448 has quit [Quit: Leaving]
I has joined #ruby
I is now known as Guest61686
dhjondoh has quit [Read error: Connection reset by peer]
dhjondoh1 is now known as dhjondoh
ValicekB has quit [Ping timeout: 240 seconds]
heinrich5991 has quit [Ping timeout: 250 seconds]
SHyx0rmZ has quit [Ping timeout: 276 seconds]
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
scmx has quit [Ping timeout: 240 seconds]
valeri_ufo has quit [Ping timeout: 255 seconds]
parus has quit [Ping timeout: 255 seconds]
FailBit has quit [Ping timeout: 255 seconds]
ccooke has quit [Ping timeout: 246 seconds]
dooo has joined #ruby
ccooke has joined #ruby
lukaszes has quit [Ping timeout: 250 seconds]
<dooo> hey
hxegon has quit [Ping timeout: 255 seconds]
<adaedra> hej
Guest61686 has quit [Client Quit]
<blubjr> hi dooo
heinrich5991 has joined #ruby
parus has joined #ruby
vondruch has joined #ruby
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
abbe has quit [Ping timeout: 240 seconds]
valeri_ufo has joined #ruby
LiamW has joined #ruby
LiamW is now known as FailBit
Ilyes512 has joined #ruby
<FailBit> fuck freenode, okay
<FailBit> grr
__desmondhume has joined #ruby
<adaedra> ?
trabulmonkee has joined #ruby
<FailBit> splitting
abbe has joined #ruby
Guest73316 has quit [Ping timeout: 272 seconds]
Mon_Ouie has joined #ruby
<FailBit> suchness: how did elastic stuff go
dhjondoh has quit [Quit: dhjondoh]
vondruch has quit [Quit: Ex-Chat]
benlovell has joined #ruby
MuffinPimp has quit [Ping timeout: 250 seconds]
CloCkWeRX has quit [Ping timeout: 244 seconds]
ValicekB has joined #ruby
Coldblackice_ has quit [Ping timeout: 240 seconds]
MuffinPimp has joined #ruby
donske has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
vondruch has joined #ruby
CloCkWeRX has joined #ruby
bruno- is now known as Guest80595
sunya7a__ has quit [Ping timeout: 252 seconds]
lkba_ has joined #ruby
<dooo> I'm trying to translate some code from ruby from python. I stuck on line: .pack('n'). How that would be in python? What struct directive is equivalent to pack('n')?
zenguy_pc has quit [Ping timeout: 252 seconds]
benlovell has quit [Ping timeout: 260 seconds]
prestorium_ has joined #ruby
dhjondoh has joined #ruby
sunya7a__ has joined #ruby
RegulationD has joined #ruby
lkba has quit [Ping timeout: 276 seconds]
CloCkWeRX has quit [Ping timeout: 240 seconds]
codecop has joined #ruby
Mon_Ouie has quit [Ping timeout: 252 seconds]
__desmondhume has quit [Remote host closed the connection]
__desmondhume has joined #ruby
prestorium has quit [Ping timeout: 276 seconds]
Icey has joined #ruby
gowikel has joined #ruby
freerobby has joined #ruby
AndyBotwin has joined #ruby
solocshaw1 has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
solocshaw has quit [Ping timeout: 240 seconds]
solocshaw1 is now known as solocshaw
zenguy_pc has joined #ruby
benlovell has joined #ruby
CloCkWeRX has joined #ruby
phutchins has quit [Disconnected by services]
phutchins1 has joined #ruby
beast has joined #ruby
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skweek has quit [Ping timeout: 250 seconds]
wildlander has quit [Quit: Saliendo]
synthroid has joined #ruby
sleetdrop has quit [Quit: Textual IRC Client: www.textualapp.com]
CloCkWeRX has quit [Client Quit]
CloCkWeRX1 has joined #ruby
kobain has joined #ruby
scmx has joined #ruby
<suchness> FailBit: Really well, I decided to just do the one to one correlation, we don't really have a requirement to have more than one parent, so it should work out fine. We are collapsing all our indexes to just be in one with different types. It's going to be a couple months before we get through it all though. I have high hopes.
tkuchiki has joined #ruby
avril14th has quit [Read error: Connection reset by peer]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
voodo has joined #ruby
CloCkWeRX1 has quit [Ping timeout: 272 seconds]
gowikel has quit [Ping timeout: 246 seconds]
doddok has quit [Read error: Connection reset by peer]
CloCkWeRX has joined #ruby
karapetyan has joined #ruby
CloCkWeRX has quit [Client Quit]
CloCkWeRX1 has joined #ruby
<norc> dooo: Array#pack
tk__ has joined #ruby
_blizzy_ has joined #ruby
|ifei5g00d has quit [Remote host closed the connection]
teclator has quit [Ping timeout: 260 seconds]
karapetyan has quit [Ping timeout: 250 seconds]
atomical has joined #ruby
CloCkWeRX1 has quit [Ping timeout: 244 seconds]
avril14th has joined #ruby
Miron has quit [Ping timeout: 240 seconds]
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rbowlby has joined #ruby
jokke has quit [Ping timeout: 252 seconds]
CloCkWeRX has joined #ruby
solocshaw has quit [Ping timeout: 240 seconds]
brendan- has joined #ruby
jokke has joined #ruby
curses has joined #ruby
C0r3 has joined #ruby
sankaber has joined #ruby
roxtrongo has joined #ruby
rbowlby has quit [Ping timeout: 240 seconds]
build22 has quit [Ping timeout: 276 seconds]
CloCkWeRX has quit [Ping timeout: 260 seconds]
govg has joined #ruby
DEA7TH has quit [Quit: DEA7TH]
joonty has quit [Quit: joonty]
yfeldblum has quit [Ping timeout: 240 seconds]
Miron has joined #ruby
dooo has quit [Quit: Page closed]
baweaver has joined #ruby
EldSEC has joined #ruby
htmldrum has quit [Ping timeout: 276 seconds]
mwlang has joined #ruby
prestorium_ is now known as prestorium
doddok has joined #ruby
fivnay has quit [Remote host closed the connection]
jdawgaz has joined #ruby
AlexRussia has joined #ruby
teclator has joined #ruby
<jhass> &ri Array#pack
<jhass> n | Integer | 16-bit unsigned, network (big-endian) byte order
dorei has joined #ruby
monthy has joined #ruby
<jhass> oh, they left already
<adaedra> very efficient, jhass
<adaedra> :p
<jhass> I responded before you did!
<adaedra> What kind of point is that
<adaedra> Meanwhile, there's still the File.exist? mystery
chipotle has quit [Quit: cheerio]
<Jan_> A mystery?
Yzguy has joined #ruby
Yzguy has quit [Client Quit]
subscope has joined #ruby
Jan_ is now known as DefV
rdark has quit [Ping timeout: 250 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<norc> jhass. You surely know your way around the Ruby source code well enough.
CodingWolf has quit [Read error: Connection reset by peer]
CodingWolf has joined #ruby
parus has quit [Ping timeout: 240 seconds]
shinenelson has quit [Quit: Connection closed for inactivity]
gusTester has quit [Quit: Leaving.]
coffeejunk has quit [Ping timeout: 240 seconds]
<norc> Or can someone else tell me what this all is about? http://lists.ruby-lang.org/pipermail/ruby-cvs/2015-July/008916.html
araujo has joined #ruby
araujo has joined #ruby
goodcodeguy has joined #ruby
coffeejunk has joined #ruby
parus has joined #ruby
daivyk has joined #ruby
slawrence00 has joined #ruby
mattwildig has joined #ruby
<jhass> I have no clue about the C code
diegoaguilar has joined #ruby
joonty has joined #ruby
rwilcox has joined #ruby
ESpiney has joined #ruby
diegoaguilar has quit [Read error: Connection reset by peer]
diegoaguilar has joined #ruby
dstarh has joined #ruby
rwilcox_ has joined #ruby
karapetyan has joined #ruby
ayonkhan has joined #ruby
rwilcox has quit [Ping timeout: 260 seconds]
stannard has joined #ruby
aufi has quit [Ping timeout: 240 seconds]
ayonkhan has quit [Client Quit]
Xeago has joined #ruby
s00pcan has joined #ruby
sankaber has joined #ruby
dmitch has joined #ruby
polysics has joined #ruby
Icey has quit [Remote host closed the connection]
s00pcan has quit [Remote host closed the connection]
Icey has joined #ruby
yeticry_ has joined #ruby
lkba_ has quit [Ping timeout: 252 seconds]
roxtrong_ has joined #ruby
s00pcan has joined #ruby
karapetyan has quit [Remote host closed the connection]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Musashi007 has joined #ruby
roxtrongo has quit [Ping timeout: 240 seconds]
rwilcox_ has quit [Quit: WeeChat 1.2-dev]
sankaber has quit [Remote host closed the connection]
yeticry has quit [Ping timeout: 265 seconds]
arup_r has quit [Quit: Leaving]
sankaber has joined #ruby
decoponio has joined #ruby
rwilcox has joined #ruby
stannard has quit [Remote host closed the connection]
karapetyan has joined #ruby
synthroid has quit [Remote host closed the connection]
gusTester has joined #ruby
sinkensabe has quit [Remote host closed the connection]
gusTester has quit [Client Quit]
mikecmpbll has joined #ruby
gusTester has joined #ruby
s00pcan has quit [Ping timeout: 250 seconds]
<mikecmpbll> anyone know what the order of Dir.glob is on ubuntu?
gusTester has left #ruby [#ruby]
<mikecmpbll> i can detemine that it's alphabetical on OSX but can't see the pattern on ubuntu
s00pcan has joined #ruby
sinkensabe has joined #ruby
<apeiros> maybe it doesn't have an order?
cdg has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
davedev24 has joined #ruby
AndyBotwin has quit [Quit: Leaving]
ekinmur has joined #ruby
rgtk has joined #ruby
rgtk has quit [Read error: Connection reset by peer]
build22 has joined #ruby
<mikecmpbll> hm.
tvw has joined #ruby
<mikecmpbll> well, it has an order, Dir.glob("/some/dir/*").first is always the same and there's more than one file returned
Guest53 has joined #ruby
<bougyman> mikecmpbll: LC_COLLATE decides that.
cfinley has joined #ruby
voodo is now known as voodo|away
<bougyman> if LC_COLLATE ins't populated it'll fall back to a valid locale in LC_ALL Or LANG or a few others.
agentmeerkat has joined #ruby
davedev2_ has joined #ruby
CodingWolf has quit [Read error: Connection reset by peer]
CodingWolf has joined #ruby
davedev24 has quit [Ping timeout: 240 seconds]
gambl0re has quit [Ping timeout: 246 seconds]
antgel has quit [Ping timeout: 244 seconds]
TomPeed has joined #ruby
FilipeChagas has joined #ruby
Musashi007 has quit [Quit: Musashi007]
<mikecmpbll> bougyman: very useful, thank you :)
<mikecmpbll> that helps me understand the order from commands like `ls` but for some reason Dir.glob doesn't match ls
FilipeChagas has quit [Client Quit]
blackmesa has joined #ruby
<mikecmpbll> it's not important, i can sort in ruby but curiosity got the better of me.
FilipeChagas has joined #ruby
devoldmx has quit [Remote host closed the connection]
Ilyes512 has joined #ruby
<bougyman> hrm, I assumed Dir would use the os collation method
k3asd` has joined #ruby
yqt has joined #ruby
infamos has joined #ruby
momomomomo has joined #ruby
<bougyman> that's a weird ordering, indeed: Dir.entries(Dir.pwd)[0..10]
<bougyman> => [".", "..", ".bash_logout", ".bash_profile", ".ssh", "Downloads", "quicklisp.lisp", "quicklisp", ".cache", "g", ".sbclrc"]
synthroid has joined #ruby
<mikecmpbll> yeah, it's quite odd.
<bougyman> According to the Ruby language docs, Dir.entries() does not guarantee any particular order of the listed files, so if you require some order it's best to do it explicitly yourself.
nibbo has quit [Ping timeout: 246 seconds]
<bougyman> ^ found on stackexchange
<mikecmpbll> "Note that case sensitivity depends on your system (so File::FNM_CASEFOLD is ignored), as does the order in which the results are returned."
abbe has quit [Ping timeout: 264 seconds]
<mikecmpbll> but the results are still consistent for one OS
<mikecmpbll> so it's not like, random.
<bougyman> i think we're seeing cached results
<bougyman> like if we did it again tomorrow it might be different.
th0m_ has quit [Ping timeout: 240 seconds]
abbe has joined #ruby
jdawgaz has joined #ruby
<bougyman> . and .. are always first.
null__ has quit [Ping timeout: 264 seconds]
<bougyman> ah, I jsut got diff results.
<bougyman> copied my dir to another name, did the Dir.entries on that one, and the results are different.
<mikecmpbll> ah, good thinking
<bougyman> the only order that doesn't seem to change is . and ..
based_pdev_ has joined #ruby
<mikecmpbll> cool :) well now I know!
based_pdev has quit [Ping timeout: 264 seconds]
null__ has joined #ruby
<bougyman> me, too!
C0r3 has quit [Ping timeout: 264 seconds]
awk has quit [Ping timeout: 264 seconds]
C0r3 has joined #ruby
awk has joined #ruby
null__ has quit [Changing host]
null__ has joined #ruby
infamos has quit [Ping timeout: 272 seconds]
Hounddog_ has joined #ruby
awk is now known as Guest71666
sepp2k has quit [Ping timeout: 240 seconds]
Guest80595 has quit [Ping timeout: 265 seconds]
dhjondoh has quit [Quit: dhjondoh]
Hounddog has quit [*.net *.split]
voodo|away is now known as voodo
whippythellama has joined #ruby
rodfersou is now known as rodfersou|lunch
<FailBit> derp
<FailBit> derpity derp derp
<FailBit> it is only so fitting when I say that, I run a site with "derp" in the name :V
Tempesta has quit [Quit: Going offline, see ya! (( www.adiirc.com )]
The_Phoenix has joined #ruby
<mikecmpbll> underpants.io ?
<mikecmpbll> tehe.
benlovell has quit [Ping timeout: 276 seconds]
kies has quit [Ping timeout: 272 seconds]
dmitch has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
daivyk has quit [Read error: Connection reset by peer]
frode15243 has quit [Ping timeout: 264 seconds]
Jardayn has joined #ruby
roxtrong_ has quit [Remote host closed the connection]
Jardayn_two has joined #ruby
frode15243 has joined #ruby
baweaver has quit [Remote host closed the connection]
lkba has joined #ruby
agentmeerkat has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
th0m_ has joined #ruby
dmitch has joined #ruby
norc_ has joined #ruby
EldSEC has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
norc_ has quit [Client Quit]
eggoez has quit [Ping timeout: 264 seconds]
mostlybadfly has quit [Ping timeout: 264 seconds]
Guest85414______ has quit [Ping timeout: 264 seconds]
karapetyan has quit [Remote host closed the connection]
C0r3 has quit [Quit: leaving]
karapetyan has joined #ruby
CloCkWeRX has joined #ruby
dtordable has quit [Quit: Lost terminal]
sepp2k has joined #ruby
dtordable has joined #ruby
mostlybadfly has joined #ruby
lacrymol1gy has joined #ruby
suchness has quit [Remote host closed the connection]
Guest85414______ has joined #ruby
<lacrymol1gy> how can I get an instance variable by name? (name being a string)
lacrymol1gy is now known as lacrymology
Tempesta has joined #ruby
<havenwood> >> @example = 'sekret'; instance_variable_get :@example
<ruboto> havenwood # => "sekret" (https://eval.in/466326)
<havenwood> or rather:
<havenwood> >> @example = 'sekret'; instance_variable_get "@example"
<ruboto> havenwood # => "sekret" (https://eval.in/466327)
<havenwood> lacrymology: ^
ujjain has quit [Ping timeout: 250 seconds]
funnel has quit [Ping timeout: 264 seconds]
benlovell has joined #ruby
funnel has joined #ruby
<lacrymology> thanks
stannard has joined #ruby
eggoez has joined #ruby
TomPeed is now known as pdev_champ_1996
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
francisco has joined #ruby
CloCkWeRX has quit [Ping timeout: 246 seconds]
melter has joined #ruby
ujjain has joined #ruby
ujjain has quit [Changing host]
ujjain has joined #ruby
francisco is now known as Guest97401
stannard has quit [Remote host closed the connection]
Trieste has quit [Ping timeout: 264 seconds]
nfk|laptop has quit [Read error: Connection reset by peer]
uber has quit [Excess Flood]
uber has joined #ruby
umgrosscol has joined #ruby
stannard has joined #ruby
nfk|laptop has joined #ruby
Guest97401 has quit [Client Quit]
Trieste has joined #ruby
CloCkWeRX has joined #ruby
benlovell has quit [Ping timeout: 240 seconds]
francisco1 has joined #ruby
francisco1 is now known as franciscomxs
bruno- has joined #ruby
malconis has joined #ruby
bruno- is now known as Guest77742
* franciscomxs
nibbo has joined #ruby
mwlang has quit [Quit: mwlang]
stannard has quit [Ping timeout: 252 seconds]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CloCkWeRX has quit [Ping timeout: 252 seconds]
stannard has joined #ruby
jdawgaz has joined #ruby
FilipeChagas has left #ruby ["WeeChat 1.3"]
futilegames has joined #ruby
RegulationD has joined #ruby
kerunaru has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rippa has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
Jardayn_two has quit [Quit: Leaving]
RobertBirnie has joined #ruby
vondruch has quit [Ping timeout: 240 seconds]
curses has quit []
dmitch has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
stannard has quit [Ping timeout: 240 seconds]
daivyk has joined #ruby
franciscomxs has quit [Quit: WeeChat 1.3]
araujo has quit [Quit: Leaving]
stannard has joined #ruby
<blubjr> is there a tidier alternative to x = foo(); x = default unless bar?(x)
dionysus69 has joined #ruby
arthurix has joined #ruby
nfk|laptop has quit [Quit: yawn]
<apeiros> blubjr: not generically. i.e. depends on foo() and bar?.
dhollinger has joined #ruby
<blubjr> ok thank you
Hounddog_ has quit [Ping timeout: 240 seconds]
gusTester has joined #ruby
Hounddog has joined #ruby
mary5030 has joined #ruby
tk__ has quit [Quit: ばいばい]
mary5030 has quit [Remote host closed the connection]
Hounddog has quit [Excess Flood]
arthurix_ has quit [Ping timeout: 255 seconds]
mary5030 has joined #ruby
tagrudev has quit [Remote host closed the connection]
Hounddog has joined #ruby
dionysus69 has quit [Ping timeout: 276 seconds]
aganov has quit [Remote host closed the connection]
momomomomo has quit [Read error: Connection reset by peer]
momomomomo has joined #ruby
Hounddog has quit [Excess Flood]
senayar has quit []
Hounddog has joined #ruby
ta has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has joined #ruby
Rollabunna has quit [Quit: Leaving...]
gusTester has left #ruby [#ruby]
<yorickpeterse> ?ot
<ruboto> this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
SenpaiSilver has quit [Read error: Connection reset by peer]
futilegames has quit [Ping timeout: 265 seconds]
Xzanron has quit [Quit: Leaving]
SenpaiSilver has joined #ruby
I has joined #ruby
<adaedra> Wow, this .old
I is now known as Guest39972
Guest39972 has quit [Client Quit]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
dopie has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dmitch has joined #ruby
<gregf_> blubjr: whats wrong with: a = bar() || "foo"?
kernik has joined #ruby
benlovell has joined #ruby
rbowlby has joined #ruby
bigmac_ has joined #ruby
kimegede has quit [Quit: Leaving...]
Xeago has quit [Remote host closed the connection]
teclator has quit [Ping timeout: 260 seconds]
<gregf_> >> def foo a=nil; a;end;[nil,1].each{ |b| a = foo(b) || 2;p a; a = nil }
<ruboto> gregf_ # => 2 ...check link for more (https://eval.in/466333)
devoldmx has joined #ruby
centrx has joined #ruby
<apeiros> gregf_: that's a quite different thing
axl_ has joined #ruby
<apeiros> i.e., it's only equivalent if blubjr's `bar?(x)` is `(x)` (i.e. test for truthiness)
bigmac has quit [Ping timeout: 252 seconds]
govg has quit [Quit: leaving]
griffindy has joined #ruby
tkuchiki has quit [Remote host closed the connection]
bigmac__ has quit [Ping timeout: 244 seconds]
<gregf_> ah - ok
bigmac has joined #ruby
<apeiros> hence "depends on your foo() and bar?()"
bigmac__ has joined #ruby
<blubjr> (defmacro or-set (place form pred default)
<blubjr> (let ((val (gensym)))
<blubjr> `(let ((,val ,form))
<blubjr> (setf ,place (if (funcall ,pred ,val) ,val ,default)))))
<blubjr> something like that
<blubjr> in ruby obvs..
_stu_ has joined #ruby
mallu has joined #ruby
<gregf_> whats that in btw? clojure?
agentmeerkat has joined #ruby
<blubjr> common lisp
<gregf_> o_O
rbowlby has quit [Ping timeout: 240 seconds]
_stu_ has quit [Client Quit]
jordanm has quit [Quit: Konversation terminated!]
bigmac_ has quit [Ping timeout: 250 seconds]
<apeiros> blubjr: you can write a method to do that.
lxsameer has quit [Quit: Leaving]
benlovell has quit [Ping timeout: 272 seconds]
mloy has quit [Ping timeout: 250 seconds]
plonk has joined #ruby
<apeiros> x = or_set(foo(), default) { |x| bar?(x) }
naftilos76 has joined #ruby
bigmac_ has joined #ruby
ekinmur has joined #ruby
<apeiros> but IMO that signature would be ugly
__desmondhume has quit [Read error: Connection reset by peer]
devoldmx has quit [Ping timeout: 250 seconds]
tkuchiki has joined #ruby
__desmondhume has joined #ruby
<blubjr> the closure complicates it
bigmac has quit [Ping timeout: 264 seconds]
mattwildig has quit [Remote host closed the connection]
bigmac has joined #ruby
wldcordeiro has quit [Quit: WeeChat 1.3]
bigmac__ has quit [Ping timeout: 255 seconds]
dagda1 has joined #ruby
<plonk> hi, when deploying a ruby app that has a Gemfile and a Gemfile.lock in VCS, but also uses a non-VCS Gemfile.plugins that somehow automagically adds stuff to Gemfile.lock when bundle install is run, what's the best practice? Re-Commit Gemfile.lock?
charliesome has joined #ruby
jgpawletko has joined #ruby
<plonk> sorry, ultimate ruby noob here, just a sysadmin
kerunaru has joined #ruby
freerobby has joined #ruby
freerobby has quit [Client Quit]
bigmac__ has joined #ruby
jordanm has joined #ruby
<__desmondhume> shouldn't be enough to add Gemfile and Gemfile.lock and let Gemfile.plugins do his job when deploying && bundling on the server?
bigmac_ has quit [Ping timeout: 240 seconds]
eminencehc has joined #ruby
goodcodeguy has joined #ruby
hxegon has joined #ruby
<__desmondhume> I would go for a hook after the deploy that runs bundle install (if it's not already like that)
benlovell has joined #ruby
<plonk> the problem here being that my deployment managment borks on the second run after installing because there are uncommitted changes in the repository
bigmac_ has joined #ruby
infamos has joined #ruby
<__desmondhume> oh, i see...
bigmac has quit [Ping timeout: 250 seconds]
bigmac has joined #ruby
<plonk> i read somewhere that Gemfile.lock should be version controlled, but am unsure how to deal with that
bigmac__ has quit [Ping timeout: 240 seconds]
<__desmondhume> yeah it should
<__desmondhume> oh ok, sorry i misread it
bigmac__ has joined #ruby
<__desmondhume> i think the best way then would be to check in the updated Gemfile.lock
DEA7TH has joined #ruby
hxegon has quit [Ping timeout: 240 seconds]
karmatr0n has joined #ruby
<__desmondhume> well, it IS the best practice, so that's the way to go (and that's the way i usually go :) )
bigmac_ has quit [Ping timeout: 240 seconds]
norc has quit [Ping timeout: 246 seconds]
bigmac_ has joined #ruby
step1step2_ has joined #ruby
teclator has joined #ruby
rodfersou|lunch is now known as rodfersou
craigp_ has joined #ruby
kies has joined #ruby
waka has joined #ruby
mloy has joined #ruby
bigmac has quit [Ping timeout: 276 seconds]
bigmac has joined #ruby
bigmac__ has quit [Ping timeout: 265 seconds]
craigp has quit [Ping timeout: 252 seconds]
<ddv> plonk: git add Gemfile.lock
<ddv> that is all?
<ddv> :)
step1step2 has quit [Ping timeout: 260 seconds]
roxtrongo has joined #ruby
senayar has quit [Read error: Connection reset by peer]
bigmac__ has joined #ruby
bigmac_ has quit [Ping timeout: 260 seconds]
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
<plonk> what would happen if I then removed things from the Gemfile?
bigmac_ has joined #ruby
<FailBit> then you check in changes to both
guillaume-rb has joined #ruby
TvL2386 has quit [Remote host closed the connection]
craigp_ has quit [Ping timeout: 260 seconds]
baweaver has joined #ruby
nitrix is now known as nitrixu-san
infamos has quit [Ping timeout: 240 seconds]
diegoaguilar has quit [Ping timeout: 260 seconds]
<centrx> both Gemfile and Gemfile.lock should be version controlled
AlexRussia has quit [Quit: WeeChat 1.4-dev]
krz has quit [Ping timeout: 246 seconds]
<__desmondhume> ì
<__desmondhume> ^
nitrixu-san is now known as nitrix
_stu_ has joined #ruby
<centrx> plonk, if you remove gems from the Gemfile, they are no longer in your bundle, but they are not automatically uninstalled
<plonk> the problem I am facing is this btw: https://github.com/opf/openproject/blob/stable/4.2/Gemfile#L240
rdark has joined #ruby
<plonk> Additional gemfiles that are not in source control being sourced
The_Phoenix has quit [Quit: Leaving.]
bigmac has quit [Ping timeout: 265 seconds]
bigmac has joined #ruby
Fire-Dragon-DoL has joined #ruby
krz has joined #ruby
<centrx> plonk, Could you comment out that section?
bigmac__ has quit [Ping timeout: 264 seconds]
roxtrongo has quit [Ping timeout: 276 seconds]
guillaume-rb has quit [Client Quit]
skade has quit [Ping timeout: 240 seconds]
voodo is now known as voodo|away
<plonk> centrx: Since I am deploying a tagged revision of that onto a porduction system and I just want to add plugins, I'd rather not commit stuff into VCS or touch any of the sources...
bigmac__ has joined #ruby
bigmac_ has quit [Ping timeout: 272 seconds]
freerobby has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
<plonk> the idea here being stable automatic deploys :S
freerobby has quit [Client Quit]
bigmac_ has joined #ruby
eminencehc has quit [Remote host closed the connection]
lacrymology has left #ruby [#ruby]
Xeago has joined #ruby
mloy has quit [Ping timeout: 255 seconds]
AlexRussia has joined #ruby
guillaume-rb has joined #ruby
sinkensabe has quit [Remote host closed the connection]
bigmac has quit [Ping timeout: 276 seconds]
pandaant has joined #ruby
sinkensabe has joined #ruby
codeurge has joined #ruby
fedexo has joined #ruby
aufi has joined #ruby
bigmac has joined #ruby
bigmac__ has quit [Ping timeout: 246 seconds]
codeurge has quit [Max SendQ exceeded]
bigmac__ has joined #ruby
guillaume-rb has quit [Client Quit]
bigmac_ has quit [Ping timeout: 240 seconds]
<shevy> we all have our grand ideas
<shevy> then we end up using wordpress :(
<ddv> not me
* plonk does not use wordpress
skweek has joined #ruby
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pandaant has quit [Remote host closed the connection]
codeurge has joined #ruby
<ddv> shevy loads up wordpress inside an iframe in his rails projects
<shevy> I don't use rails
bigmac_ has joined #ruby
exadeci has quit [Quit: Connection closed for inactivity]
sinkensabe has quit [Ping timeout: 244 seconds]
<ddv> what do you use bb?
<shevy> cgi
<yorickpeterse> shevy: gtfo
polishdub has joined #ruby
<havenwood> shevy: I knew you were going to say cgi! Ruby Par Avion.
diegoaguilar has joined #ruby
<shevy> yorickpeterse: stfu
<ddv> lol what just happened
bigmac has quit [Ping timeout: 265 seconds]
mattwildig has joined #ruby
bigmac__ has quit [Ping timeout: 240 seconds]
bigmac has joined #ruby
tkuchiki has quit [Remote host closed the connection]
The_Phoenix has joined #ruby
<shevy> havenwood oldschool never dies!
Hounddog has quit [*.net *.split]
<yorickpeterse> shevy: 1990 called, they want their web app setup back
<__desmondhume> shevy loads up wordpress inside an iframe in his rails projects
<__desmondhume> 16:52 shevy
<__desmondhume> I don't use rails
<__desmondhume> LOL
<yorickpeterse> shevy: :>
bigmac__ has joined #ruby
<ddv> shevy: yorickpeterse practices krav maga better not get him mad
Hounddog has joined #ruby
<shevy> ddv something strange is going on, now we have an echo :/
<shevy> Krav Maga is unfair, they kick into the balls
Guest77742 has quit [Ping timeout: 272 seconds]
mark2 has left #ruby ["PART #RubyOnRails :PART #jquery :PART #reactjs :PART ##javascript :PART #elixir-lang :PART #debian :PART #zsh :PART #nethunter :PONG :kornbluth.freenode.net"]
<shevy> though that is indeed effective
Fire-Dragon-DoL has quit [Remote host closed the connection]
Hounddog has quit [Excess Flood]
<yorickpeterse> it's super effective even
InternetFriend has joined #ruby
<__desmondhume> barely legal
<yorickpeterse> krav maga doesn't give a shit, it's not a sport for that reason :P
bigmac_ has quit [Ping timeout: 264 seconds]
<yorickpeterse> oh somebody comes at you with a knife, better get in your karate pose and get ready to smash some bricks
<yorickpeterse> oh now you're dead with a knife between your ribs
mattwildig has quit [Remote host closed the connection]
<__desmondhume> nice poem bro
<yorickpeterse> ty
<yorickpeterse> worked real hard on that
<momomomomo> nah jiu jitsu is pretty good at avoiding knifes
<__desmondhume> what about rifles?
bigmac_ has joined #ruby
<yorickpeterse> __desmondhume: that's working out so well for the US isn't it?
<yorickpeterse> the country really is a lot safer with them
<__desmondhume> yeah i agree
<__desmondhume> but i'm from italy
<shevy> they don't want to get kicked into the balls
<__desmondhume> where people die for taxes
<momomomomo> yorickpeterse: guns/knives/sticks/lead pipes
tkuchiki has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<__desmondhume> so np
bigmac has quit [Ping timeout: 240 seconds]
<momomomomo> who will stop the damn lead pipe bashings
<shevy> __desmondhume northern italy?
<__desmondhume> yeah shevy
<shevy> well that's like central europe so it's fine
<yorickpeterse> momomomomo: see, krav maga at least teaches you how to sorta deal with that
hxegon has joined #ruby
<__desmondhume> fine about taxes? lol
<yorickpeterse> Though guns is mostly higher levels and for the police/army branch of krav maga
ekinmur has quit [Read error: Connection reset by peer]
<shevy> there even were people doing bioinformatics/bioruby in milano + hiring a few years ago ... I didn't wanna go though
bigmac__ has quit [Ping timeout: 264 seconds]
<havenwood> "Ruby, you'll shoot your eye out!"
karapetyan has quit [Remote host closed the connection]
bigmac has joined #ruby
<__desmondhume> yeah i work in milano, but i just moved to my hometown
karapetyan has joined #ruby
<__desmondhume> remote work is cool
<__desmondhume> so startup
<__desmondhume> much wow
<shevy> __desmondhume dunno you could be living in Sicilia too :)
<momomomomo> working from home atm but have a meeting in an hour :(
<momomomomo> yay spark job done, time to go in :/
marr has quit [Ping timeout: 265 seconds]
bigmac__ has joined #ruby
ekinmur has joined #ruby
<__desmondhume> the best part of having meeting from home is wearing just ashirt
<bougyman> +1
<__desmondhume> could u please stand up? well no
<bougyman> I did that in a training session last night
baroquebobcat has quit [Read error: Connection reset by peer]
Hounddog has joined #ruby
<momomomomo> :| my workplace is pretty laid back anyhow, most days I just hang out on the top floor next to the fireplace with my shoes off
<shevy> top floor
<momomomomo> about as comfy as home, but better coffee
<shevy> did they lock you away?
<havenwood> top level
<momomomomo> nah, we have a roof and a penthouse
<__desmondhume> humor is getting better and better
kernik has left #ruby [#ruby]
<shevy> ooooh penthouse coding suite!
<shevy> coding like a boss
<__desmondhume> penthouse?
bigmac_ has quit [Ping timeout: 276 seconds]
dreinull75 has joined #ruby
<__desmondhume> isn't it like a naked women thing?
indignatio has joined #ruby
<momomomomo> :|
<havenwood> ?ot __desmondhume
<ruboto> __desmondhume, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
infamos has joined #ruby
colegatron has quit [Ping timeout: 260 seconds]
<__desmondhume> lol i'm just asking guys
<__desmondhume> what is penthouse?
baroquebobcat has joined #ruby
<momomomomo> nah it's like the top floor of a hotel / building
<havenwood> ?huys __desmondhume
<ruboto> __desmondhume, I don't know anything about huys
<shevy> no, just top floor, usually the costlier flats
<__desmondhume> oh, LOL
<__desmondhume> sry :D
<shevy> I am almost in the basement :(
<havenwood> Ruby.
bigmac_ has joined #ruby
<__desmondhume> sorry havenwood
<shevy> havenwood codes in a skyscraper, at the very top of the top!
bigmac has quit [Ping timeout: 240 seconds]
karapetyan has quit [Ping timeout: 250 seconds]
<momomomomo> shevy: he's sauron
bricker has joined #ruby
<__desmondhume> lol
skade has joined #ruby
<shevy> lol
bigmac__ has quit [Ping timeout: 255 seconds]
bigmac has joined #ruby
Spami_ has quit [Quit: Leaving]
indignatio has quit [Remote host closed the connection]
rgtk has joined #ruby
bigmac__ has joined #ruby
Hounddog has quit [Ping timeout: 240 seconds]
<__desmondhume> do you guys read medium?
TomyWork has quit [Ping timeout: 260 seconds]
<shevy> what is that
<momomomomo> only when it pops up on HN/reddit
rgtk has quit [Read error: Connection reset by peer]
araujo has joined #ruby
araujo has joined #ruby
Guest53 has quit [Read error: Connection reset by peer]
<momomomomo> shevy: like a blog for fancy people on someone else's platform
<__desmondhume> blogging platform
<__desmondhume> ^
bigmac_ has quit [Ping timeout: 260 seconds]
baweaver has joined #ruby
<__desmondhume> aka 57M investment for dunno-why
<momomomomo> fancy people like fancy things
<__desmondhume> btw, i wrote an article on that lol
<momomomomo> and to sit on fancy soap boxes
<momomomomo> not that there's anything wrong with that
<__desmondhume> wanted to share
<momomomomo> it's a good platform with a large audience
thezanke has joined #ruby
Hounddog has joined #ruby
<__desmondhume> yeah, the editor is really good tbh
Rutix has joined #ruby
Rutix has joined #ruby
<momomomomo> whereas my site is pretty much the base jekyll theme with some tweaks and extremely lazy code
bigmac has quit [Ping timeout: 260 seconds]
<momomomomo> http://soryy.com
_stu_ has quit [Quit: _stu_]
bigmac__ has quit [Ping timeout: 244 seconds]
thezanke has quit [Client Quit]
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
overcrush has joined #ruby
bigmac__ has joined #ruby
Hounddog has quit [Excess Flood]
Guest53 has joined #ruby
Hounddog has joined #ruby
<overcrush> hey all, n00b here. is rails the right tool for a personal CMS/blog/portfolio project?
bigmac_ has joined #ruby
<havenwood> overcrush: Maybe look at Jekyll.
<__desmondhume> ^
voodo|away is now known as voodo
voodo has quit [Quit: Leaving...]
ekinmur has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
chouhoul_ has joined #ruby
vondruch has joined #ruby
Flipez has left #ruby ["Leaving"]
<overcrush> cool. looking into it now. i wanted something that looks nice and shows off a little bit as a sort of resume
bigmac has joined #ruby
ruby-lang383 has joined #ruby
<ruby-lang383> hi
<havenwood> ruby-lang383: hi
<momomomomo> overcrush: Jekyll is a good project for that - you write in markdown and it compiles to static html
<__desmondhume> i wouldn't go with rails, tons of useless stuff for that kind of thing, and theming is not a feature
<ruby-lang383> hi i'm doing a scraper project
baweaver has quit [Remote host closed the connection]
<__desmondhume> Jekyll is also good for seo things, you can do pretty good stuff with slugs and permalinks
ericalexander has joined #ruby
<momomomomo> ruby-lang383: web scraping?
<ruby-lang383> yea
<momomomomo> ruby-lang383: !ask
aufi has quit [Quit: Konversation terminated!]
<momomomomo> ruby-lang383: ?answers
sebstrax has joined #ruby
h99h9h88 has joined #ruby
<__desmondhume> (http://desmondhume.github.io/ <- Jekyll too)
<momomomomo> ?ask
<ruboto> Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
chouhoulis has quit [Ping timeout: 250 seconds]
<momomomomo> ?getanswers
<ruboto> I don't know anything about getanswers
<ruby-lang383> does anyone know how to write a script to
<momomomomo> damn this bot
<__desmondhume> ahahahahah
<ruby-lang383> there are profiles in the url
bigmac__ has quit [Ping timeout: 260 seconds]
<ruby-lang383> how do I scrape the text from
<ruby-lang383> each profile
<momomomomo> ?enter
<ruboto> I don't know anything about enter
<ruby-lang383> and output it to txt file
gagrio has quit [Remote host closed the connection]
yardenbar has quit [Ping timeout: 250 seconds]
<havenwood> ruby-lang383: Use their API instead.
bigmac__ has joined #ruby
<ruby-lang383> does anyone know how to implement it
<__desmondhume> I think he's trying to avoid api limits
<ruby-lang383> the api
<ruby-lang383> yeah
<ruby-lang383> you have to wait a few days to register
<ruby-lang383> this is jsut a class project
<__desmondhume> not so polite tbh
bigmac_ has quit [Ping timeout: 265 seconds]
bruno- has joined #ruby
<havenwood> ruby-lang383: For a class in the United States?
<ruby-lang383> yes
gagrio has joined #ruby
bruno- is now known as Guest84441
DoubleMalt has quit [Remote host closed the connection]
colegatron has joined #ruby
gagrio is now known as gagrio|gone
bigmac has quit [Ping timeout: 255 seconds]
<ruby-lang383> you can scrape it if it is not for a commercial pages
Rodya_ has joined #ruby
<ruby-lang383> commercial purposees
baweaver has joined #ruby
<ruby-lang383> i just prefer not to use the api
chriscoffee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bigmac has joined #ruby
<__desmondhume> plain nokogiri should be enough
<ruby-lang383> yeah
<ruby-lang383> but I need to implenent a do loop
<__desmondhume> well, if you want to do it dirty :D
<ruby-lang383> that will access all the profile URLs
weemsledeux has joined #ruby
<__desmondhume> i'd go with some queue
bMalum_ has joined #ruby
<__desmondhume> or multithread if you need speed...
<__desmondhume> it's just fetching so you don't need to worry about race conditions
devoldmx has joined #ruby
bigmac_ has joined #ruby
<__desmondhume> you could do it in few lines with an .each loop
polishdub has quit [Quit: Leaving]
<__desmondhume> or do something better with a minimum setup (redis+sidekiq to enable multiple workers to process the pages)
<__desmondhume> dunno your needs
bigmac__ has quit [Ping timeout: 264 seconds]
nfk|laptop has joined #ruby
<__desmondhume> or just install a scraper gem lol
stu_ has joined #ruby
bigmac__ has joined #ruby
bMalum has quit [Ping timeout: 244 seconds]
bMalum_ is now known as bMalum
guillaume-rb has joined #ruby
<havenwood> ruby-lang383: I really do think the CFAA needs to be amended to allow tinkering or educational exceptions and to bar prison time for violating TOS... but alas...
<havenwood> ruby-lang383: The EFF is putting for good efforts on that front: https://www.eff.org/issues/cfaa
<havenwood> forth*
bigmac has quit [Ping timeout: 264 seconds]
momomomomo has quit [Ping timeout: 250 seconds]
wprice has joined #ruby
erbesharat has quit [Remote host closed the connection]
chriscoffee has joined #ruby
devoldmx has quit [Ping timeout: 272 seconds]
eminencehc has joined #ruby
bigmac has joined #ruby
bigmac_ has quit [Ping timeout: 252 seconds]
blackmesa has joined #ruby
bigmac_ has joined #ruby
Fire-Dragon-DoL has joined #ruby
polishdub has joined #ruby
eshy has quit [Ping timeout: 272 seconds]
ItSANgo has quit [Quit: Leaving...]
Fire-Dragon-DoL has quit [Client Quit]
bigmac__ has quit [Ping timeout: 265 seconds]
avril14th has quit [Read error: Connection reset by peer]
<__desmondhume> ruby-lang383: has been jailed lol
djstorm has joined #ruby
bigmac__ has joined #ruby
k3asd` has quit [Ping timeout: 246 seconds]
ESpiney_ has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
guillaume-rb has quit [Quit: guillaume-rb]
bigmac has quit [Ping timeout: 246 seconds]
bigmac has joined #ruby
bigmac_ has quit [Ping timeout: 240 seconds]
guillaume-rb has joined #ruby
guillaume-rb has quit [Client Quit]
bigmac_ has joined #ruby
ESpiney has quit [Ping timeout: 260 seconds]
hashpuppy has joined #ruby
ruby-lang383 has quit [Ping timeout: 246 seconds]
bigmac__ has quit [Ping timeout: 250 seconds]
ESpiney__ has joined #ruby
PaulCapestany has quit [Ping timeout: 260 seconds]
bigmac has quit [Ping timeout: 244 seconds]
PaulCape_ has joined #ruby
naftilos76 has quit [Quit: Αποχώρησε]
bigmac has joined #ruby
freerobby has joined #ruby
bigmac_ has quit [Ping timeout: 244 seconds]
bigmac__ has joined #ruby
<havenwood> i've been enjoying using Oga for HTML parsing
hahuang65 has quit [Ping timeout: 250 seconds]
Xeago has quit [Remote host closed the connection]
synthroid has quit [Remote host closed the connection]
bigmac_ has joined #ruby
<yorickpeterse> Yeah it's pretty good
ESpiney_ has quit [Ping timeout: 255 seconds]
nfk has joined #ruby
<yorickpeterse> I think the maintainer is a bit of a knob though
skweek has quit [Ping timeout: 240 seconds]
<havenwood> ;)
stu_ has quit [Quit: stu_]
dopie has quit [Quit: This computer has gone to sleep]
ThatsNotJack has quit [Remote host closed the connection]
lubekpl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ThatsNotJack has joined #ruby
subscope has joined #ruby
bigmac has quit [Ping timeout: 250 seconds]
krz has quit [Quit: WeeChat 1.2]
bigmac has joined #ruby
bigmac__ has quit [Ping timeout: 240 seconds]
subscope has quit [Client Quit]
bigmac__ has joined #ruby
symm- has joined #ruby
bMalum has quit [Ping timeout: 255 seconds]
ThatsNotJack has quit [Remote host closed the connection]
maletor has joined #ruby
ESpiney_ has joined #ruby
bigmac_ has quit [Ping timeout: 244 seconds]
dopie has joined #ruby
bigmac_ has joined #ruby
ItSANgo has joined #ruby
eshy has joined #ruby
|ifei5g00d has joined #ruby
d10n-work has joined #ruby
bricker has quit [Ping timeout: 250 seconds]
lemur has joined #ruby
ThatsNotJack has joined #ruby
psy has joined #ruby
psy has quit [Max SendQ exceeded]
roxtrongo has joined #ruby
kerunaru has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
psy has joined #ruby
bigmac has quit [Ping timeout: 276 seconds]
ESpiney__ has quit [Ping timeout: 240 seconds]
bigmac__ has quit [Ping timeout: 246 seconds]
subscope has joined #ruby
bigmac has joined #ruby
mostlybadfly has joined #ruby
marr has joined #ruby
bigmac_ has quit [Ping timeout: 265 seconds]
krz has joined #ruby
bigmac_ has joined #ruby
lemur has quit [Ping timeout: 240 seconds]
bigmac__ has joined #ruby
DoubleMalt has joined #ruby
qba73 has quit []
DoubleMalt has quit [Max SendQ exceeded]
roxtrongo has quit [Ping timeout: 252 seconds]
DoubleMalt has joined #ruby
solars has quit [Ping timeout: 276 seconds]
psy has quit [Disconnected by services]
psy_ has joined #ruby
bigmac has quit [Ping timeout: 240 seconds]
bigmac has joined #ruby
kies has quit [Ping timeout: 250 seconds]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bigmac_ has quit [Ping timeout: 265 seconds]
benlovell has quit [Ping timeout: 265 seconds]
Guest84441 has quit [Ping timeout: 276 seconds]
charliesome_ has joined #ruby
bigmac_ has joined #ruby
bigmac__ has quit [Ping timeout: 272 seconds]
simplyianm has joined #ruby
cfinley has quit [Remote host closed the connection]
charliesome has quit [Ping timeout: 240 seconds]
teclator has quit [Ping timeout: 240 seconds]
bigmac__ has joined #ruby
dopie has quit [Quit: Leaving]
bigmac has quit [Ping timeout: 240 seconds]
wldcordeiro has joined #ruby
subscope has quit [Quit: Textual IRC Client: www.textualapp.com]
[Butch] has joined #ruby
bigmac has joined #ruby
TC has joined #ruby
iateadonut has quit [Quit: Leaving.]
TC is now known as Guest31310
bigmac_ has quit [Ping timeout: 240 seconds]
<Guest31310> exit
Guest31310 has quit [Client Quit]
bigmac_ has joined #ruby
podman has quit [Quit: Connection closed for inactivity]
dopie has joined #ruby
bigmac__ has quit [Ping timeout: 240 seconds]
lukaszes has joined #ruby
bigmac__ has joined #ruby
bigmac has quit [Ping timeout: 250 seconds]
framling has quit [Remote host closed the connection]
yqt has quit [Ping timeout: 250 seconds]
bigmac_ has quit [Ping timeout: 250 seconds]
towski_ has joined #ruby
bigmac has joined #ruby
scmx has quit [Ping timeout: 276 seconds]
axsuul has joined #ruby
fedexo has quit [Read error: Connection reset by peer]
bigmac_ has joined #ruby
Xeago has joined #ruby
bigmac__ has quit [Ping timeout: 240 seconds]
Xeago has quit [Remote host closed the connection]
mattwildig has joined #ruby
doddok has quit [Quit: Leaving]
bigmac__ has joined #ruby
bigmac has quit [Ping timeout: 240 seconds]
Alayde has joined #ruby
centrx has quit [Quit: If you meet the Buddha on the way, kill him.]
skade has quit [Quit: Computer has gone to sleep.]
Xeago has joined #ruby
Alayde has left #ruby [#ruby]
bigmac has joined #ruby
bigmac_ has quit [Ping timeout: 276 seconds]
Xeago has quit [Remote host closed the connection]
bigmac_ has joined #ruby
bMalum has joined #ruby
troyready has quit [Remote host closed the connection]
bricker has joined #ruby
SCHAAP137 has joined #ruby
synthroid has joined #ruby
bigmac__ has quit [Ping timeout: 260 seconds]
mdih has quit [Ping timeout: 272 seconds]
<__desmondhume> lol ruby is becoming a selfpromoting channel
bigmac__ has joined #ruby
troyready has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
Alayde has joined #ruby
h99h9h88 has quit [Remote host closed the connection]
bigmac has quit [Ping timeout: 252 seconds]
<_blizzy_> ugh, I can't seem to install rest-client on my comp
bigmac_ has quit [Ping timeout: 250 seconds]
jdawgaz has joined #ruby
bigmac__ has quit [Ping timeout: 260 seconds]
teclator has joined #ruby
craigp has joined #ruby
craigp has quit [Remote host closed the connection]
joonty has quit [Quit: joonty]
PaulCape_ has quit [Quit: .]
PaulCapestany has joined #ruby
charliesome_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RegulationD has quit [Remote host closed the connection]
momomomomo has joined #ruby
rbowlby has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
adac has quit [Ping timeout: 244 seconds]
indignatio has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CodingWolf has quit [Read error: Connection reset by peer]
tomphp has quit [Ping timeout: 260 seconds]
CrazyEddy has quit [Ping timeout: 240 seconds]
CodingWolf has joined #ruby
freerobby has quit [Quit: Leaving.]
|ifei5good has joined #ruby
rbowlby has quit [Ping timeout: 240 seconds]
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
stu_ has joined #ruby
stu_ is now known as _stu_
|ifei5g00d has quit [Ping timeout: 250 seconds]
<hxegon> with the stdlib CSV, why won't csv.each { |row| row.headers.each { |h| row[h] = 'foo' } } work?
polysics has quit []
ekinmur has joined #ruby
<hxegon> If you try and read the csv after that, the rows are unchanged
CrazyEddy has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
andikr has quit [Remote host closed the connection]
pdev_champ_1996 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rodya_ has quit [Remote host closed the connection]
<DEA7TH> I have a string which looks like this: "{\"a\":\"some customer data\", (...) ". Notice that there is a backslash before every ". How can I display it without the backslashes?
blackmesa has quit [Ping timeout: 272 seconds]
senayar has quit []
<DEA7TH> It says that the second character is \" - this is a single character. inspect only makes things worse
The_Phoenix has quit [Ping timeout: 272 seconds]
TomPeed has joined #ruby
<hxegon> DEA7TH: puts it. It shows up in the string rep, but not when you print it. or use single quotes, but I'm not sure how well that would work with what I assume is JSON
<DEA7TH> oh, that worked! I thought that puts = p
Guest53 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<DEA7TH> and it didn't work with p
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Peg-leg has quit [Quit: Leaving.]
<adaedra> hxegon: well, you're modifying the data in-memory, you have to write the data back
<hxegon> DEA7TH: I'm looking it up, and I guess p is basically prints foo.inspect vs puts, which uses foo.to_s
<blubjr> 'p foo' == 'puts foo.inspect'
<hxegon> DEA7TH: so, #to_s might be more appropriate
The_Phoenix has joined #ruby
<DEA7TH> it's all right, I'll throw away the code in several minutes anyway
th0m_ has quit [Ping timeout: 252 seconds]
<blubjr> #to_s on a string is identity..
skade has joined #ruby
skade has quit [Client Quit]
<hxegon> adaedra: so your saying its just passing me a copy of the row and not a ref to that row?
blackmesa has joined #ruby
gard_ has joined #ruby
step1step2_ is now known as stepstep2
<adaedra> hxegon: well, how did you get your csv variable?
baweaver has quit [Remote host closed the connection]
<hxegon> adaedra: csv = CSV.new("foo\nbar", headers: true)
blaxter has quit [Quit: foo]
skweek has joined #ruby
<adaedra> hxegon: that does not looks like reading from a file
mikecmpbll has quit [Ping timeout: 244 seconds]
<hxegon> adaedra: its not
roxtrongo has joined #ruby
eminencehc has quit [Remote host closed the connection]
Aria has quit [Ping timeout: 246 seconds]
<adaedra> ah, I thought you were speaking about writing back to a file.
<hxegon> adaedra: nope :)
Fire-Dragon-DoL has joined #ruby
<hxegon> adaedra: i meant csv.read.to_s when I said read. I see how that could be confusing.
DEA7TH has quit [Quit: DEA7TH]
bb010g has joined #ruby
baweaver has joined #ruby
djbkd has joined #ruby
bruno- has joined #ruby
__desmondhume has quit [Remote host closed the connection]
bruno- is now known as Guest58404
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aredridel has joined #ruby
UtkarshRay has joined #ruby
lukaszes has joined #ruby
benlieb has joined #ruby
momomomomo has quit [Quit: momomomomo]
overcrush has quit [Remote host closed the connection]
h99h9h88 has joined #ruby
roxtrongo has quit [Ping timeout: 264 seconds]
CrazyEddy has quit [Remote host closed the connection]
lukaszes has quit [Client Quit]
lukaszes has joined #ruby
gregf has quit [Quit: WeeChat 1.3]
weemsledeux has quit [Quit: Textual IRC Client: www.textualapp.com]
<plonk> i'm having trouble building ruby 2.1.6 which fails building ssl_ossl.c
mrtomme has quit [Ping timeout: 260 seconds]
<plonk> this is on a fresh debian using rbenv with all the recommended packages installed
eminencehc has joined #ruby
mrtomme has joined #ruby
chris2 has quit [Ping timeout: 252 seconds]
haxrbyte has joined #ruby
jhn has joined #ruby
gregf has joined #ruby
alexherbo2 has quit [Quit: WeeChat 1.3]
th0m_ has joined #ruby
h99h9h88 has quit [Ping timeout: 240 seconds]
hahuang65 has joined #ruby
alexherbo2 has joined #ruby
stan has quit [Ping timeout: 264 seconds]
jdawgaz has joined #ruby
amclain has joined #ruby
mallu has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
arup_r has joined #ruby
arup_r has quit [Max SendQ exceeded]
monthy has quit [Remote host closed the connection]
arup_r has joined #ruby
arup_r is now known as Guest47884
<hxegon> plonk: have you tried installing the ssl lib through apt-get?
freerobby has joined #ruby
cicloid has joined #ruby
shadoi has joined #ruby
cicloid has quit [Max SendQ exceeded]
luriv has joined #ruby
CrazyEddy has joined #ruby
User458764 has joined #ruby
rakm has joined #ruby
teclator has quit [Ping timeout: 252 seconds]
cicloid has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lsmola has quit [Ping timeout: 240 seconds]
<User458764> Hi, how do I correctly define method for handling hash parameters?
TPBallbag has quit [Quit: don't try and hack my account Ballkenende]
banister has quit [Read error: Connection reset by peer]
<segfalt> User458764: do you mean keyword arguments, or accepting a hash as a parameter?
<segfalt> User458764: In Ruby 2.1, you can do "def my_method(kwarg1:, kwarg2:)"
<User458764> segfalt accepting a hash as parameter
<segfalt> That's just like any other parameter.
The_Phoenix has quit [Read error: Connection reset by peer]
<segfalt> h = {} ; def my_method_takes_a_hash(arg_name); puts arg_name; end; my_method_takes_a_hash(h)
ekinmur has joined #ruby
<segfalt> User458764: Maybe you could show me a code sample if I'm not understanding correctly.
malcolmva has quit [Ping timeout: 252 seconds]
Guest47884 is now known as arup_r
jpfuentes2 has joined #ruby
momomomomo has joined #ruby
<plonk> hxegon: sure
Arkon has joined #ruby
doddok has joined #ruby
goodcodeguy has joined #ruby
<hxegon> plonk: that's my only suggestion, sorry :P
chris2 has joined #ruby
gusTester has joined #ruby
mdih has joined #ruby
rbowlby has joined #ruby
<User458764> segfalt I use ruby for years and I am just asking myself how do I build code so that I don't pass an array where an integer is expected?
RegulationD has joined #ruby
skweek has quit [Ping timeout: 246 seconds]
gusTester has left #ruby [#ruby]
<spaceghost|work> User458764: Always wrap everything into an array?
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<spaceghost|work> Deal with collections rather than singular objects?
<segfalt> User458764: Oh, you want a type system. There are some projects that half-bake in a type system. What I did was switch to another programming language. :)
<User458764> segfalt lol
<spaceghost|work> type like a duck.
luriv_ has joined #ruby
NO_BOOT_DEVICE has joined #ruby
<platzhirsch> kill the duck
<spaceghost|work> be the duck
<segfalt> That works for a while, generally until you have 10,000 lines of code in production and wonder why you thought class-level DSLs were cool.
<User458764> but ruby is awesome because it is not type base
InternetFriend has quit [Remote host closed the connection]
<segfalt> User458764: and yet, you're asking how to add a type system.
<spaceghost|work> segfalt: They can be if you don't screw them up.
build22 has quit [Ping timeout: 240 seconds]
<User458764> segfalt yes I think my solution is to better comment my code
<spaceghost|work> It works whale beyond 10K LOC.
<spaceghost|work> User458764: Or just wrap everything into an array!
rwilcox_ has joined #ruby
<User458764> spaceghost|work thanks I will check that
<spaceghost|work> .Array() is neat.
yardenbar has joined #ruby
<segfalt> I definitely use Array() in code that accepts one or many things. Clean approach.
<NO_BOOT_DEVICE> is it possible to on init of a class have it fail gracefully without throwing or the like?
<segfalt> NO_BOOT_DEVICE: your initialize is throwing an exception?
luriv has quit [Ping timeout: 250 seconds]
<spaceghost|work> NO_BOOT_DEVICE: When you say init of a class, do you mean when the class is defined?
CloCkWeRX has joined #ruby
<spaceghost|work> Or when you're instantiating an instance of the class?
_blizzy_ has quit [Ping timeout: 240 seconds]
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rwilcox has quit [Ping timeout: 250 seconds]
<NO_BOOT_DEVICE> segfalt: no, and i don't want it to, but i want it to not do full init and such when it won't work basically saying "fail_gracefully() if [bad init check condition]"
mattwildig has quit [Remote host closed the connection]
InternetFriend has joined #ruby
<segfalt> NO_BOOT_DEVICE: What's gracefully mean? What do you want .new to return instead?
<NO_BOOT_DEVICE> spaceghost|work: instantiating
<spaceghost|work> NO_BOOT_DEVICE: What have you tried? Did you try raising an exception?
CloCkWeRX has quit [Client Quit]
trav408 has joined #ruby
CloCkWeRX1 has joined #ruby
InternetFriend has quit [Client Quit]
<NO_BOOT_DEVICE> spaceghost|work: i'd rather not, i'd like for it to more just say, return "nil", as it's not really an exception, it's just "this functionality isn't implemented"
ashleyhindle has joined #ruby
<spaceghost|work> NO_BOOT_DEVICE: #initialize always returns the instance, override .new if you want to do something else.
ashleyhindle has left #ruby [#ruby]
baweaver has quit [Remote host closed the connection]
<segfalt> NO_BOOT_DEVICE: I'd find it really confusing for .new to return nil, as a user.
<spaceghost|work> NO_BOOT_DEVICE: There is NotImplementedError though. That way at least the caller can get a chance to rescue it and handle it themselves.
<segfalt> It seems like immediately after that happens you'll end up with NoMethodErrors on whatever you try to do with the nil, anyway.
CloCkWeRX1 has quit [Client Quit]
<NO_BOOT_DEVICE> spaceghost|work: oh, that's actually probably what i'm looking for, i guess if the program makes it clear that it's just "not implemented"
<NO_BOOT_DEVICE> thanks
h99h9h88 has joined #ruby
CloCkWeRX has joined #ruby
<spaceghost|work> NO_BOOT_DEVICE: Cheers. :D
h99h9h88 has quit [Remote host closed the connection]
troulouliou_div2 has quit [Remote host closed the connection]
skweek has joined #ruby
cfinley has joined #ruby
blue_deref has joined #ruby
CloCkWeRX has quit [Client Quit]
CloCkWeRX1 has joined #ruby
devoldmx has joined #ruby
Guest53 has joined #ruby
last_staff has joined #ruby
dmitch has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
last_staff has quit [Client Quit]
fantazo has joined #ruby
CloCkWeRX1 has quit [Ping timeout: 260 seconds]
mikecmpbll has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
devoldmx has quit [Ping timeout: 260 seconds]
mattwildig has joined #ruby
_blizzy_ has joined #ruby
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fumk has quit [Excess Flood]
charliesome has joined #ruby
fumk has joined #ruby
|ifei5good has quit [Read error: Connection reset by peer]
gusTester has joined #ruby
dionysus69 has joined #ruby
gusTester has left #ruby [#ruby]
|ifei5g00d has joined #ruby
karapetyan has joined #ruby
krz has quit [Quit: WeeChat 1.2]
diegoviola has joined #ruby
Aderium has joined #ruby
malcolmva has joined #ruby
freerobby has quit [Quit: Leaving.]
fumk has quit [Remote host closed the connection]
User458764 has joined #ruby
dionysus69 has quit [Ping timeout: 255 seconds]
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
codeurge has quit [Ping timeout: 250 seconds]
ESpiney__ has joined #ruby
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
fumk has joined #ruby
Hounddog has quit [Remote host closed the connection]
teclator has joined #ruby
joonty has joined #ruby
baweaver has joined #ruby
tomphp has joined #ruby
_stu_ has quit [Quit: _stu_]
ESpiney_ has quit [Ping timeout: 255 seconds]
m8 has joined #ruby
Musashi007 has joined #ruby
joonty has quit [Client Quit]
Musashi007 has quit [Client Quit]
bMalum has quit [Ping timeout: 244 seconds]
CloCkWeRX has joined #ruby
lemur has joined #ruby
infamos has quit [Ping timeout: 240 seconds]
cicloid has quit [Ping timeout: 276 seconds]
tomphp has quit [Ping timeout: 240 seconds]
roxtrongo has joined #ruby
skade has joined #ruby
<arup_r> Why `if` modifier changes the default value of a local variable to nil when if experssion is false? https://gist.github.com/aruprakshit/4f8c28e772d5fb527cac#file-debug-rb-L7
<arup_r> I am missing something
skweek has quit [Ping timeout: 246 seconds]
bMalum has joined #ruby
<arup_r> it should be `""` when if expression is false .. but it is becoming nil
CloCkWeRX has quit [Ping timeout: 240 seconds]
maletor has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lemur has quit [Ping timeout: 240 seconds]
chris2 has quit [Ping timeout: 264 seconds]
blackmesa has quit [Ping timeout: 264 seconds]
johnzorn has joined #ruby
<johnzorn> anyone use org-babel with ruby?
roxtrongo has quit [Ping timeout: 260 seconds]
<blubjr> arup_r: line 2 of helper.rb is initializing search to nil, and line 4 is correctly not overriding that
weemsledeux has joined #ruby
<arup_r> >> x = y = ""
<ruboto> arup_r # => "" (https://eval.in/466491)
<arup_r> >> x = y = ""; p [x, y]
<ruboto> arup_r # => ["", ""] ...check link for more (https://eval.in/466492)
<arup_r> I checked, it is correct
<blubjr> line 2 of helper.rb is site_name, search = ""
<arup_r> opps
<arup_r> sorry
weemsledeux has quit [Max SendQ exceeded]
<arup_r> why it didn't throw error.. :)
maletor has joined #ruby
<arup_r> anyway.. yup that is the problem
cornerma1 has joined #ruby
cfinley has quit [Remote host closed the connection]
<blubjr> ruby tends to prefer nil to errors
<arup_r> yes yes..
<arup_r> I recall it.. I wrote something when I have something else in my head
darkf has quit [Quit: Leaving]
swgillespie has joined #ruby
craigp has joined #ruby
dionysus69 has joined #ruby
NeverDie has quit [Quit: http://radiux.io/]
simplyianm has quit [Remote host closed the connection]
cornerman has quit [Read error: Connection reset by peer]
cornerma1 is now known as cornerman
simplyianm has joined #ruby
mattwildig has quit [Remote host closed the connection]
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
__desmondhume has joined #ruby
willardg has joined #ruby
ekinmur has joined #ruby
unclouded has joined #ruby
jhn has quit [Quit: Textual IRC Client: www.textualapp.com]
jackjackdripper has joined #ruby
dnewkerk has joined #ruby
CloCkWeRX has joined #ruby
NeverDie has joined #ruby
kies has joined #ruby
DEA7TH has joined #ruby
baweaver has quit [Remote host closed the connection]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rwilcox has joined #ruby
chris2 has joined #ruby
rwilcox has quit [Client Quit]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
karapetyan has quit [Remote host closed the connection]
CloCkWeRX has quit [Ping timeout: 255 seconds]
cicloid has joined #ruby
kirun has joined #ruby
NeverDie has quit [Max SendQ exceeded]
rwilcox_ has quit [Ping timeout: 240 seconds]
NeverDie has joined #ruby
chrisja has joined #ruby
Aderium has quit [Quit: Textual IRC Client: www.textualapp.com]
solenoids has quit [Ping timeout: 265 seconds]
cicloid_ has joined #ruby
gard_ has quit [Ping timeout: 265 seconds]
freerobby has joined #ruby
Arkon has quit [Remote host closed the connection]
Arkon has joined #ruby
cicloid has quit [Ping timeout: 260 seconds]
ericalexander has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
zenguy_pc has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
platzhirsch has left #ruby [#ruby]
yqt has joined #ruby
baweaver has joined #ruby
mattwildig has joined #ruby
_blizzy_ has quit [Ping timeout: 240 seconds]
CloCkWeRX has quit [Ping timeout: 276 seconds]
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ekinmur has joined #ruby
th0m_ has quit [Ping timeout: 240 seconds]
moei has quit [Ping timeout: 272 seconds]
h99h9h88 has joined #ruby
Meow-J has quit [Quit: Connection closed for inactivity]
solenoids has joined #ruby
infamos has joined #ruby
sye has quit [Remote host closed the connection]
sye has joined #ruby
blackmesa has joined #ruby
h99h9h88 has quit [Ping timeout: 244 seconds]
crankhar1er has quit [Quit: leaving]
Guest53 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
crankharder has joined #ruby
cicloid has joined #ruby
cicloid_ has quit [Read error: Connection reset by peer]
CloCkWeRX has joined #ruby
<hxegon> anyone have experience with the CSV libs? (CSV, FasterCSV, smarter_csv)
CloCkWeRX has quit [Client Quit]
CloCkWeRX has joined #ruby
<pabs> hxegon: yes, why?
<pabs> hxegon: i just have experience with the stock library (CSV)
NeverDie has quit [Quit: http://radiux.io/]
CloCkWeRX has quit [Ping timeout: 250 seconds]
Guest53 has joined #ruby
Jackneill has joined #ruby
moei has joined #ruby
swgillespie has joined #ruby
diegoaguilar_ has joined #ruby
diegoaguilar_ has quit [Read error: Connection reset by peer]
diegoaguilar_ has joined #ruby
_blizzy_ has joined #ruby
willardg has left #ruby ["Textual IRC Client: www.textualapp.com"]
syath has quit [Quit: WeeChat 1.2]
chris2 has quit [Ping timeout: 264 seconds]
NeverDie has joined #ruby
CloCkWeRX has joined #ruby
karapetyan has quit [Remote host closed the connection]
diegoaguilar has quit [Ping timeout: 252 seconds]
th0m_ has joined #ruby
<jhass> csv was dropped from stdlib and fastercsv renamed to csv with 1.9 (iirc)
subscope has joined #ruby
aredridel is now known as Aria
Fire-Dragon-DoL has quit [Remote host closed the connection]
<pabs> jhass: could be, the api is certainly better than 1.8 :/
th0m_ has quit [Max SendQ exceeded]
<pabs> jhass: (i have to use 1.8 for work stuff, it's, uh, clunky)
cdg has quit [Remote host closed the connection]
th0m_ has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
nfk|laptop has quit [Quit: yawn]
th0m_ has quit [Max SendQ exceeded]
karapetyan has joined #ruby
Fire-Dragon-DoL has joined #ruby
th0m_ has joined #ruby
CloCkWeRX has quit [Ping timeout: 250 seconds]
AccordLTN has quit []
User458764 has joined #ruby
<hxegon> pabs: do you know why this doesn't work? csv = CSV.new("foo\nbar", headers: true); csv.each { |row| row['foo'] = 'anything' } # it changes row in the scope but not in csv
diegoaguilar_ has quit [Quit: Leaving]
Xeago has joined #ruby
_blizzy_ has quit [Ping timeout: 246 seconds]
AccordLTN has joined #ruby
wilbert has joined #ruby
benlovell has joined #ruby
wilbert has quit [Client Quit]
aaeron has joined #ruby
wilbert has joined #ruby
<aaeron> hi. I am trying to write tests for concurrency using concurrent gem.
blackmesa has quit [Ping timeout: 260 seconds]
<aaeron> Is there a good way of testing concurrency?
<aaeron> I did not find anything useful yet.
diegoaguilar has joined #ruby
<yorickpeterse> what specifically do you want to test?
matp has quit [Quit: Textual IRC Client: www.textualapp.com]
<aaeron> I am creating promises for deployments.
<aaeron> I want to test that the deployments are going in parallel
not_a_robot has joined #ruby
_blizzy_ has joined #ruby
<not_a_robot> hello
matp has joined #ruby
<blubjr> hi not a robot
<yorickpeterse> aaeron: parallelism is impossible to test using some form of runtime testing
<yorickpeterse> You can test if something is "most likely" parallel, but it's impossible to get a 100% guarantee
benlovell has quit [Ping timeout: 260 seconds]
<aaeron> Ok.
chris2 has joined #ruby
<atmosx> Anyone knows if AWS will allow me to fetch RDS stats?
<aaeron> Make one blocking
haxrbyte has quit [Quit: Leaving...]
<aaeron> And run the second one.
<yorickpeterse> atmosx: Cloudwatch has them
<atmosx> yorickpeterse: has what?
<adaedra> not_a_robot: beep bop?
<yorickpeterse> atmosx: RDS statistics
<pabs> hxegon: you'll need to read the csv in, make your changes, then write it back out again, it doesn't make the changes on disk when you edit
<atmosx> ah yes, I'm on it (google)
freerobby has quit [Quit: Leaving.]
<atmosx> yorickpeterse: and I can access cloudwatch via ruby SDK?
<yorickpeterse> Yes
not_a_robot has quit [Client Quit]
<yorickpeterse> aaeron: then you're no longer really testing parallelism
adac has joined #ruby
hxegon_ has joined #ruby
<atmosx> awesome
opensource_ninja has joined #ruby
Guest58404 has quit [Ping timeout: 250 seconds]
<aaeron> Yeah. But i need to be able to write tests which shows that the process is concurrent
* atmosx Sam Cooke - Cupid
<aaeron> If not 100% correct
hxegon has quit [Ping timeout: 272 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cicloid has quit [Quit: zzZZzzzZzzzzzZZZz]
opensource_ninja has quit [Client Quit]
wilbert has quit [Quit: quit]
baweaver has quit [Remote host closed the connection]
x-light has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
<yorickpeterse> aaeron: you can not test something happened in parallel, only _that_ it happened
Xeago has joined #ruby
dionysus69 has quit [Ping timeout: 252 seconds]
kopykat has joined #ruby
<aaeron> That would work
jdawgaz has joined #ruby
kopykat has left #ruby [#ruby]
<yorickpeterse> e.g. if you have something like `a = nil; b = nil; Thread.new { a = 10 }; Thread.new { b = 20 }` there's no guarantee (or way to ensure) that the two threads actually run in parallel
<yorickpeterse> the same applies to processes
<yorickpeterse> Heck, on MRI the threads won't even run in parallel in the first place
freerobby has joined #ruby
<aaeron> I got ur point yorickpeterse
baweaver has joined #ruby
<yorickpeterse> also in both cases the OS might take longer to start them up, which could break any timing sensitive tests
<yorickpeterse> so I'd test "did it happen" instead of "did it happen at exactly the same time"
<aaeron> Exactly
chouhoulis has joined #ruby
robbyoconnor has quit [Ping timeout: 252 seconds]
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
h99h9h88 has joined #ruby
<aaeron> I think I am just going to test if the state of all the threads is pending after sleeping for half a second
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_blizzy_ has quit [Ping timeout: 240 seconds]
<yorickpeterse> that does not work at all
<yorickpeterse> read again what I said
<yorickpeterse> timing sensitive execution is seriously difficult when dealing with parallelism
chouhoul_ has quit [Ping timeout: 244 seconds]
baweaver has quit [Ping timeout: 240 seconds]
arthurix_ has joined #ruby
<aaeron> When I call execute on concurrent promises. It would change the status of the promises to pending. It might not execute them
<aaeron> So will that not be a good test?
mattwildig has quit [Remote host closed the connection]
<yorickpeterse> That sentence makes no sense
<aaeron> Sorry about that yorickpeterse. I am new to concurrency
skweek has joined #ruby
arthurix has quit [Ping timeout: 240 seconds]
rgtk has joined #ruby
roxtrongo has joined #ruby
<yorickpeterse> The difficulty of concurrency is that there's no guarantee as to when what happens
kies has quit [Ping timeout: 260 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<aaeron> Got that.
rgtk has quit [Read error: Connection reset by peer]
<aaeron> But when I call p = Concurrent::Promise.execute{ "Hello, world!" }
<aaeron> It would make the p.state as pending. Pending does not mean its getting implemented. (afaik)
<yorickpeterse> getting implemented?
<aaeron> executed
eminencehc has quit [Remote host closed the connection]
<yorickpeterse> If the state is not "pending" by default and it's modified from another thread it could be that when you call "p.state" the state hasn't been set to "pending" yet
<yorickpeterse> so you'd get a race condition
Arkon has quit [Remote host closed the connection]
<yorickpeterse> but this depends on how things are implemented
roxtrongo has quit [Ping timeout: 240 seconds]
Arkon has joined #ruby
<yorickpeterse> for such a condition the code would probably pass 999 out of 1000 runs
<yorickpeterse> and fail one time on Friday the 13th at 17:00
karapetyan has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
<aaeron> Haha.
z4j5 has quit [Ping timeout: 244 seconds]
karapetyan has joined #ruby
fantazo has quit [Quit: Verlassend]
__desmondhume has quit [Remote host closed the connection]
h99h9h88 has quit [Remote host closed the connection]
<aaeron> I think I am going to test parallelism by making it sequential. Block the first thread. And wait for the second to finish.
ldnunes has quit [Quit: Leaving]
<aaeron> This will just guarantee that one thread does not block the other one.
<aaeron> and hence they are in parallel.
<yorickpeterse> one thread not blocking the other doesn't make them parallel
<yorickpeterse> e.g. a paused thread won't block another, but isn't running in parallel
Arkon has quit [Ping timeout: 240 seconds]
Arkon has joined #ruby
djbkd has quit [Remote host closed the connection]
ekinmur has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
<aaeron> in my case: I was running deploys in sequence running a loop. So lets say jobA, jobB. If I block jobA, jobB would never get executed. As it is sequential.
baweaver has joined #ruby
pglombardo has joined #ruby
<aaeron> But now that they are running independent of each other. I can block jobA and expect jobB to finish.
<aaeron> It was a single threaded deploy previously.
mattwildig has joined #ruby
Eiam_ has joined #ruby
eminencehc has joined #ruby
sparr has quit [Changing host]
sparr has joined #ruby
devoldmx has joined #ruby
ta has joined #ruby
yfeldblum has joined #ruby
podman has joined #ruby
freerobby has joined #ruby
yaewa has joined #ruby
moei has quit [Ping timeout: 252 seconds]
devoldmx has quit [Ping timeout: 246 seconds]
prestorium has quit [Quit: Leaving]
yaewa has quit [Client Quit]
bruno- has joined #ruby
moei has joined #ruby
karapetyan has joined #ruby
bruno- is now known as Guest23347
beast has quit [Quit: Leaving]
Coldblackice_ has joined #ruby
adac has quit [Ping timeout: 240 seconds]
infamos has quit [Ping timeout: 264 seconds]
rodfersou has quit [Quit: leaving]
dfockler has joined #ruby
diegoviola has quit [Quit: WeeChat 1.3]
futilegames has joined #ruby
vigintas has quit [Ping timeout: 260 seconds]
hahuang65 has quit [Ping timeout: 240 seconds]
eminencehc has quit [Remote host closed the connection]
eminencehc has joined #ruby
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
blackmesa has joined #ruby
seydar has joined #ruby
djbkd has joined #ruby
lukaszes has joined #ruby
adac has joined #ruby
Eiam_ has joined #ruby
seydar has left #ruby [#ruby]
seydar has joined #ruby
Arkon has quit [Remote host closed the connection]
<seydar> what's the hardest part about parsing ruby?
<yorickpeterse> seydar: parsing ruby
[Butch] has quit [Quit: I'm out . . .]
Arkon has joined #ruby
newmanships has joined #ruby
<seydar> yorickpeterse: no further questions, thank you
willardg has joined #ruby
chouhoulis has quit [Remote host closed the connection]
charliesome has joined #ruby
chouhoulis has joined #ruby
johnkacz has joined #ruby
solenoids has quit [Ping timeout: 240 seconds]
Oatmeal has quit [Ping timeout: 240 seconds]
johnkacz has left #ruby [#ruby]
baweaver has quit [Remote host closed the connection]
arthurix has joined #ruby
<FailBit> ruby syntax is implicit to the point of near ambiguity
<FailBit> that's the hardest part
TheHodge has quit [Quit: Connection closed for inactivity]
blackmesa has quit [Ping timeout: 250 seconds]
<seydar> FailBit: can you expound upon that?
Arkon has quit [Ping timeout: 276 seconds]
charliesome_ has joined #ruby
charliesome has quit [Ping timeout: 276 seconds]
<FailBit> say you wanted to pass a hash to a function
<FailBit> func foo: :bar
<FailBit> no big deal right
m8 has quit [Quit: Sto andando via]
<FailBit> what if you wanted to pass 2 hashes?
<FailBit> func {}, foo: :bar
<FailBit> SyntaxError: unexpected ',', expecting $end
VeryBewitching has joined #ruby
<FailBit> you have to wrap it in parens to get that to parse
NeverDie has quit [Quit: http://radiux.io/]
arthurix_ has quit [Ping timeout: 264 seconds]
<VeryBewitching> G'day folks.
swgillespie has joined #ruby
<seydar> FailBit: ahhhhh yes yes yes
<havenwood> VeryBewitching: Hellooo
<seydar> keep going keep going
<seydar> let the rage flow through you
h99h9h88 has joined #ruby
freerobby has quit [Quit: Leaving.]
zeroDivisible has joined #ruby
futilegames has quit [Quit: futilegames]
Xeago has quit [Remote host closed the connection]
Arkon has joined #ruby
baweaver has joined #ruby
nchambers is now known as nchambers\dead
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
blackmesa has joined #ruby
hahuang65 has joined #ruby
lemur has joined #ruby
cdg has joined #ruby
Xeago has joined #ruby
solenoids has joined #ruby
TomPeed has joined #ruby
kadoppe has quit [Ping timeout: 244 seconds]
Eiam_ has joined #ruby
lemur has quit [Ping timeout: 240 seconds]
h99h9h88 has quit [Remote host closed the connection]
kadoppe has joined #ruby
willardg has left #ruby ["Textual IRC Client: www.textualapp.com"]
Eiam_ has quit [Client Quit]
CloCkWeRX has joined #ruby
<shevy> lol
Meeh has quit [Read error: Connection reset by peer]
<shevy> FailBit: ruby allows people to be lazy in what they write; nobody stops you from satisfying the parser with more syntax
<shevy> if less syntax could be achievable then ruby core would do it
willardg has joined #ruby
Meeh has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
rdark has quit [Ping timeout: 260 seconds]
infamos has joined #ruby
djbkd has joined #ruby
platzhirsch has joined #ruby
__desmondhume has joined #ruby
CloCkWeRX has quit [Ping timeout: 240 seconds]
<seydar> shevy: do you read reddit? did you see the new Rush shell that was posted to /r/ruby?
northfurr has joined #ruby
kies has joined #ruby
wprice has quit [Quit: wprice]
northfurr has quit [Client Quit]
nchambers\dead is now known as nchambers\undead
<Papierkorb> That shell that doesn't even offer pipes?
nchambers\undead is now known as nchambers\fsckin
<shevy> seydar I do read reddit sometimes, not regularly though. The rush shell... was that the extension from the old ncurses one, with the in-built dropdown box when someone hits tab?
<shevy> people often fatigue or tire in projects :(
SenpaiSilver has quit [Quit: Leaving]
SenpaiSilver has joined #ruby
h99h9h88 has joined #ruby
wprice has joined #ruby
h99h9h88 has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
user1138 has joined #ruby
user1138 has quit [Remote host closed the connection]
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nchambers\fsckin is now known as nchambers
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
synthroid has quit []
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
baweaver has quit [Remote host closed the connection]
anisha has quit [Quit: Leaving]
<seydar> shevy: yeah i just remember it as the project that was parsing bash grammar and running it on ruby
vigintas has joined #ruby
<seydar> BUT THAT WAS US
<seydar> WE WERE THERE
<seydar> WE WERE SOLDIERS
diegoaguilar has quit [Ping timeout: 260 seconds]
<eam> well, ruby itself does a bit of shell syntax analysis as well doesn't it
lukaszes has joined #ruby
charliesome_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<seydar> eam: i can't remember how the original project was done. me, shevy, and the original guy all kinda worked on our own separate shells under the single banner of "rush"
<seydar> i came back years later and wrote chitin
bMalum has quit [Quit: bMalum]
<seydar> and someone just took the name rush and wrote something similar to chitin
<slash_nick> i've heard of chitlins
<slash_nick> and now, chitin
<seydar> if i could get the startup time down to zilch, i think it'd be more usable as a shell
lukaszes has quit [Client Quit]
jgpawletko has quit [Quit: jgpawletko]
<seydar> but on my computer it takes like 3 seconds to start up because of gems and my shitty-ass laptop
Xeago has quit [Remote host closed the connection]
charliesome has joined #ruby
benlovell has joined #ruby
kurzweil has quit [Ping timeout: 265 seconds]
CloCkWeRX has joined #ruby
Xeago has joined #ruby
jgpawletko has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
trosborn has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
Guest23347 has quit [Ping timeout: 240 seconds]
lukaszes has joined #ruby
benlovell has quit [Ping timeout: 255 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
overcrush has joined #ruby
diegoaguilar has joined #ruby
overcrush has left #ruby ["Leaving..."]
CloCkWeRX has quit [Ping timeout: 250 seconds]
kies has quit [Ping timeout: 240 seconds]
lukaszes has quit [Client Quit]
CloCkWeRX has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<TTilus> nnngh...
seydar has quit [Quit: leaving]
th0m_ has quit [Quit: Leaving]
k3asd` has joined #ruby
<hxegon_> hmm... so that row mutation works when I do CSV.parse, but not CSV.new...
<TTilus> i'm trying to beat a bit ancient radiant 0.8.0 site into working shape to serve until i figure out where to transition to
harumph has joined #ruby
arup_r has quit [Quit: Leaving]
_blizzy_ has joined #ruby
jessemcgilallen has joined #ruby
harumph has left #ruby [#ruby]
CloCkWeRX has quit [Ping timeout: 240 seconds]
<TTilus> so i figure i'll just `ruby-install ruby 1.8.7 && chruby 1.8 && gem install radiant --version 0.8.0` and be done with it
lukaszes has joined #ruby
netule has joined #ruby
<TTilus> but for some weird reason `ruby-install ruby 1.8.7-p358` gives me a ruby without gem :-/
trosborn has quit [Quit: trosborn]
lukaszes has quit [Client Quit]
<TTilus> like 'gem: command not found'
bb010g has quit [Quit: Connection closed for inactivity]
<blubjr> i thought gem didn't come with ruby until 1.9
nchambers is now known as {0xc6}
{0xc6} is now known as nchambers
poguez_ has joined #ruby
willardg has joined #ruby
trosborn has joined #ruby
adac has quit [Ping timeout: 252 seconds]
<TTilus> blubjr: that would explain
Ilyes512 has joined #ruby
Kabal has joined #ruby
sepp2k has quit [Quit: Leaving.]
steve_ has joined #ruby
spider-mario has joined #ruby
<steve_> Is anyone in here?
<havenwood> Steve_: yup
codecop has quit [Remote host closed the connection]
<havenwood> Steve_: A thousand Rubyists.
infamos has quit [Ping timeout: 244 seconds]
pdoherty has quit [Ping timeout: 240 seconds]
<steve_> Cool. Can anyone help me out with a RoR question?
<havenwood> ?rails Steve_
<ruboto> Steve_, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<steve_> Thanks for pointing me in the right direction ruboto
<adaedra> ?bot
<ruboto> I don't know anything about bot
<adaedra> grmbl.
roxtrongo has joined #ruby
tiwillia has joined #ruby
sinkensabe has joined #ruby
hxegon has joined #ruby
netule has quit [Quit: Textual IRC Client: www.textualapp.com]
eluten has joined #ruby
kerunaru has joined #ruby
hxegon_ has quit [Ping timeout: 240 seconds]
Guest53 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<eluten> Is anyone getting this error running "make check" on the current trunk? https://gist.github.com/EddyLuten/c63ba2a2ba599b581f34 Running OS X 10.10.5. I haven't tried on a different machine yet.
jessemcgilallen has quit [Ping timeout: 255 seconds]
Guest53 has joined #ruby
TheNet has joined #ruby
pglombardo has quit [Ping timeout: 255 seconds]
baweaver has joined #ruby
infamos has joined #ruby
B1n4r10 has joined #ruby
melter has quit [Quit: Client exiting]
hanmac has quit [Ping timeout: 240 seconds]
asas has joined #ruby
overcrush has joined #ruby
CloCkWeRX has joined #ruby
duncannz has joined #ruby
<overcrush> hey all, is there a channel for rbenv support or can someone in here help a brother out?
steve_ has left #ruby [#ruby]
<havenwood> overcrush: There's a #chruby or #rvm but #rbenv is just lost souls.
<overcrush> dag
CloCkWeRX has quit [Client Quit]
<havenwood> overcrush: Already tried?: rbenv rehash
CloCkWeRX1 has joined #ruby
<havenwood> overcrush: What trouble are you having?
<overcrush> trying to install jekyll with gem and it's not showing up in my PATH
rgtk has joined #ruby
<havenwood> overcrush: Did you rehash? Have to water your garden of shims or they'll die!
tomphp has joined #ruby
<overcrush> haha... yeah, i haven't tried that. i'm new to rbenv
<overcrush> well shit. that's what i needed
<overcrush> much thanks
<havenwood> overcrush: No prob. :) Save yourself some trouble and just switch to chruby so you'll never have to rehash again.
<overcrush> i was told to move to rbenv from rvm because it's less complicated, etc.
rgtk has quit [Read error: Connection reset by peer]
<overcrush> my ruby env isn't complicated so i'm not opposed to the switch. what's the difference?
<havenwood> overcrush: chruby is simpler yet
<adaedra> chruby is the next step in this way.
Tempesta has quit [Ping timeout: 240 seconds]
<havenwood> eluten: Running the tests.
CloCkWeRX1 has quit [Ping timeout: 240 seconds]
<overcrush> cool. so just `rm -rf` rbenv and jump on the train. the ruby world moves quick
<eluten> havenwood: appreciate it. I want to eliminate my local config as a variable.
djbkd has quit [Remote host closed the connection]
B1n4r10 has quit [Ping timeout: 272 seconds]
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ropeney has joined #ruby
<havenwood> eluten: All green with latest trunk on 10.11.2 beta.
<havenwood> eluten: 15690 tests, 2230305 assertions, 0 failures, 0 errors, 39 skips
Kabal has quit []
Kabal has joined #ruby
rodfersou has joined #ruby
<eluten> havenwood: Crap. Thanks for running the tests, now to hunt down what the problem is :) Thanks again.
<havenwood> eluten: np
Kabal has quit [Client Quit]
Kabal has joined #ruby
gusrub has joined #ruby
colegatron has quit [Ping timeout: 264 seconds]
bruno- has joined #ruby
bruno- is now known as Guest24193
minimalism has joined #ruby
Rutix has quit []
indignatio has quit [Read error: Connection reset by peer]
ec is now known as ec^
Ilyes512 has quit [Quit: Textual IRC Client: www.textualapp.com]
solocshaw has joined #ruby
ec^ is now known as ec|hat
h99h9h88 has joined #ruby
devoldmx has joined #ruby
hanmac has joined #ruby
lukaszes has joined #ruby
hahuang65 has quit [Ping timeout: 265 seconds]
Guest24193 has quit [Ping timeout: 276 seconds]
bruno-_ has joined #ruby
chouhoulis has joined #ruby
hahuang65 has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
h99h9h88 has quit [Ping timeout: 244 seconds]
ytti has quit [Ping timeout: 240 seconds]
Ox0dea has joined #ruby
bruno-_ has quit [Ping timeout: 276 seconds]
craigp has quit [Remote host closed the connection]
<Ox0dea> What're some ways the new Hash#to_proc is useful other than, say, in a call to #map as an alternative to Hash#values_at?
bruno-_ has joined #ruby
djbkd has joined #ruby
maikowblue has joined #ruby
<Ox0dea> I guess being able to #call a Hash lets you remove the distinction between a lookup and a real invocation in a memoized method, but that's the only other use case I can see.
<Ox0dea> It's kinda weird that it got accepted, I'm saying.
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 276 seconds]
wldcordeiro has quit [Ping timeout: 260 seconds]
jessemcgilallen has joined #ruby
jessemcgilallen has quit [Read error: Connection reset by peer]
Guest53 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
colegatron has joined #ruby
ytti has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has quit [Ping timeout: 240 seconds]
Xeago has quit [Remote host closed the connection]
agentmeerkat has quit [Ping timeout: 264 seconds]
h99h9h88 has joined #ruby
djbkd has joined #ruby
Guest53 has joined #ruby
jgpawletko has quit [Quit: jgpawletko]
sinkensabe has quit [Remote host closed the connection]
h99h9h88 has quit [Remote host closed the connection]
sinkensabe has joined #ruby
eluten has quit [Quit: Textual IRC Client: www.textualapp.com]
baweaver has quit [Remote host closed the connection]
dhollinger has quit [Quit: WeeChat 1.2]
baweaver has joined #ruby
yfeldblum has joined #ruby
chouhoulis has quit [Remote host closed the connection]
yardenbar has quit [Ping timeout: 255 seconds]
ta_ has joined #ruby
ta has quit [Read error: Connection reset by peer]
CloCkWeRX has joined #ruby
sinkensabe has quit [Ping timeout: 252 seconds]
asas is now known as Dimik
bb010g has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CloCkWeRX has quit [Client Quit]
gambl0re has joined #ruby
CloCkWeRX1 has joined #ruby
trosborn has quit [Quit: trosborn]
chouhoul_ has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
howdoi has quit [Quit: Connection closed for inactivity]
dfockler has quit [Ping timeout: 276 seconds]
chouhoulis has joined #ruby
kies has joined #ruby
DoubleMalt has joined #ruby
podman has quit [Quit: Connection closed for inactivity]
zenguy_pc has joined #ruby
<Sou|cutter> Ox0dea: wait, you will be able to {}.call(key) now?
CloCkWeRX1 has quit [Ping timeout: 252 seconds]
tvw has quit [Remote host closed the connection]
<Ox0dea> Sou|cutter: And `[1,2,3].map(&hash)` as well.
maikowblue has quit [Quit: .]
<Ox0dea> Er, you'll have to say `{}.to_proc.to_call`, though.
<Ox0dea> *call
<Sou|cutter> ah
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
<Ox0dea> It's not as weird as the Hash comparisons that're now a thing.
<Sou|cutter> that's interesting. I do think values_at is more readable
<Ox0dea> It is, but I'll probably use the #map form. :P
yfeldblu_ has joined #ruby
<Ox0dea> I guess the notions of "subhash" and "superhash" are good for checking whether a certain set of options have been passed in.
sepp2k has joined #ruby
<Ox0dea> Still weird, though.
djstorm has quit [Ping timeout: 260 seconds]
<Sou|cutter> I suppose you could use that map thing with lazy enumerables or something now
vdamewood has joined #ruby
purplexed- has quit [Ping timeout: 250 seconds]
kies has quit [Ping timeout: 250 seconds]
__desmondhume has quit [Remote host closed the connection]
yqt has quit [Ping timeout: 260 seconds]
maletor has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 240 seconds]
mary5030_ has joined #ruby
maletor has joined #ruby
mary5030_ has quit [Remote host closed the connection]
<Ox0dea> $ ruby -e 'h = {a: 1, b: 2}; p %i[a b].cycle.lazy.map(&h).take(4).force'
<Ox0dea> [1, 2, 1, 2]
<Ox0dea> Sou|cutter: Neat, I guess. :P
mary5030_ has joined #ruby
ledestin has joined #ruby
<Sou|cutter> if you had a hash initialized with a block or something, you could prevent creating all the keys
jgpawletko has joined #ruby
jgpawletko has quit [Client Quit]
arthurix_ has joined #ruby
<Ox0dea> >> h = Hash.new { |h, k| h[k] = k * 2 }; h.values_at 1, 2, 3 # Sou|cutter
kerunaru has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ruboto> Ox0dea # => [2, 4, 6] (https://eval.in/466589)
mary5030 has quit [Read error: Connection reset by peer]
Guest53 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> I don't see how Hash#to_proc adds anything, but it wasn't necessarily meant to.
<Ox0dea> It's just a nicety.
hahuang65 has quit [Ping timeout: 260 seconds]
chouhoulis has quit [Remote host closed the connection]
<Sou|cutter> sure, I mean ruby's not a minimalist language
weaksauce has joined #ruby
Fire-Dra_ has joined #ruby
<Ox0dea> It can be coerced into one. ^_^
<darix> like mruby?
arthurix has quit [Ping timeout: 272 seconds]
<adaedra> yes.
lemur has joined #ruby
CloCkWeRX has joined #ruby
htmldrum has joined #ruby
CloCkWeRX has quit [Client Quit]
Fire-Dragon-DoL has quit [Ping timeout: 265 seconds]
CloCkWeRX1 has joined #ruby
<Sou|cutter> amazingly there is nothing parked at yes.com
johnzorn has quit [Ping timeout: 255 seconds]
<ericwood> hmmm is anyone using mruby for anything yet?
mary5030_ has quit [Remote host closed the connection]
roxtrongo has quit [Remote host closed the connection]
h99h9h88 has joined #ruby
lemur has quit [Ping timeout: 240 seconds]
h99h9h88 has quit [Remote host closed the connection]
johnzorn has joined #ruby
baweaver has quit [Remote host closed the connection]
gambl0re has quit []
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CloCkWeRX1 has quit [Ping timeout: 276 seconds]
willardg has joined #ruby
iateadonut has joined #ruby
baweaver has joined #ruby
pdoherty has joined #ruby
solenoids has quit [Ping timeout: 244 seconds]
stamina has quit [Ping timeout: 240 seconds]
stepstep2 has quit [Quit: Leaving]
<Ox0dea> darix: I was more referring to Tom Stuart's "Programming with Nothing".
malconis has quit [Ping timeout: 260 seconds]
gambl0re has joined #ruby
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rontec76 has joined #ruby
pglombardo has joined #ruby
polishdub has quit [Quit: Leaving]
renderf__ has quit [Read error: Connection reset by peer]
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
renderf__ has joined #ruby
riotjone_ has joined #ruby
stannard has quit [Ping timeout: 276 seconds]
riotjon__ has quit [Ping timeout: 250 seconds]
mary5030 has joined #ruby
pglombardo has quit [Ping timeout: 240 seconds]
simplyianm has quit [Read error: Connection reset by peer]
overcrush has left #ruby ["Leaving..."]
spider-mario has quit [Remote host closed the connection]
leafybas_ has joined #ruby
cicloid has joined #ruby
benlovell has joined #ruby
cicloid has quit [Max SendQ exceeded]
leafybas_ has quit [Remote host closed the connection]
cicloid has joined #ruby
mary5030 has quit [Remote host closed the connection]
lukaszes has joined #ruby
symm- has quit [Ping timeout: 240 seconds]
solenoids has joined #ruby
benlovell has quit [Ping timeout: 240 seconds]
vigintas has quit [Remote host closed the connection]
<shevy> programming with nothing
<shevy> not even a computer
simplyianm has joined #ruby
edj has joined #ruby
grill has joined #ruby
wldcordeiro has joined #ruby
umgrosscol has quit [Quit: End of Line]
<grill> you know how you can add a main method to a module in ruby? this way, you can run the module on its own AND include its methods? how can you do this with ruby?
k3asd` has quit [Ping timeout: 240 seconds]
<shevy> not sure what you are asking
<shevy> you mean both standalone and module methods?
<shevy> one way is private_function :name
<Ox0dea> grill: Use `module_function`.
<shevy> another is: extend self
<shevy> or def self.foo manually, with def foo calling that method
<Ox0dea> grill: https://eval.in/466605
user083 has quit [Ping timeout: 240 seconds]
Jackneill has quit [Ping timeout: 244 seconds]
sye has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
sye has joined #ruby
hashpuppy has quit [Quit: Textual IRC Client: www.textualapp.com]
karapetyan has joined #ruby
hahuang65 has joined #ruby
Yzguy has joined #ruby
Arkon has quit [Remote host closed the connection]
pdoherty has quit [Ping timeout: 276 seconds]
Arkon has joined #ruby
CloCkWeRX has joined #ruby
arescorpio has joined #ruby
rgrmatt has joined #ruby
user083 has joined #ruby
fibbel has quit [Quit: fibbel]
sye has quit [Remote host closed the connection]
sye has joined #ruby
Arkon has quit [Remote host closed the connection]
Arkon has joined #ruby
karapetyan has quit [Ping timeout: 260 seconds]
<Ox0dea> This is Delta Echo Alpha to grill. grill, do you read?
nateberkopec has joined #ruby
<grill> looking now
CloCkWeRX has quit [Ping timeout: 240 seconds]
<shevy> you can do it!
momomomomo has quit [Ping timeout: 240 seconds]
<shevy> or
<shevy> >> module Foo; def bla; puts 'bla!'; end; extend self; end; Foo.bla; class Bar;include Foo; end; bar = Bar.new; bar.bla
<ruboto> shevy # => bla! ...check link for more (https://eval.in/466606)
eluten has joined #ruby
sye has quit [Remote host closed the connection]
TheHodge has joined #ruby
sye has joined #ruby
Alayde has quit [Ping timeout: 264 seconds]
<Ox0dea> `extend self` doesn't give you any granularity; `module_function` is essentially just a visibility modifier like `public` and `private`.
<grill> ok. i am going to have to look into this later. good to know it's pssible. thanks
<eluten> havenwood: i fixed the build issue I had by restarting the machine. Probably purged a few ghosts or something...
<Ox0dea> eluten: But you still have `rbenv` installed, yeah?
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
RegulationD has quit [Remote host closed the connection]
<eluten> Ox0dea: I wasn't the rbenv question guy, I am the "make clean" fails on trunk guy.
<Ox0dea> Oh, right.
platzhirsch has quit [Ping timeout: 244 seconds]
<havenwood> eluten: Aha, nice.
TPBallbag has joined #ruby
sye has quit [Remote host closed the connection]
sye has joined #ruby
TPBallbag has quit [Client Quit]
DoubleMalt has quit [Remote host closed the connection]
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vF3hNGxc47h8 has joined #ruby
gccostabr has joined #ruby
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bruno-_ has quit [Ping timeout: 240 seconds]
vF3hNGxc47h8 has quit [Read error: Connection reset by peer]
sye has quit [Remote host closed the connection]