roadworks has quit [Remote host closed the connection]
shubhamgoyal has joined #ruby-lang
bb010g has quit [Quit: Connection closed for inactivity]
dik_dak has joined #ruby-lang
shubhamgoyal has quit [Remote host closed the connection]
dik_dak has quit [Max SendQ exceeded]
shubhamgoyal has joined #ruby-lang
crankharder has quit [Ping timeout: 265 seconds]
dik_dak has joined #ruby-lang
shubhamgoyal has quit [Read error: Connection reset by peer]
crankharder has joined #ruby-lang
shubhamgoyal has joined #ruby-lang
sush24 has joined #ruby-lang
chills42 has quit [Remote host closed the connection]
ta_ has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
ta_ has quit [Ping timeout: 244 seconds]
cored has quit [Ping timeout: 264 seconds]
<nofxx>
yorickpeterse, any reason in particular -p syntastic shows is #{file}:#{W|E}:#{line} ? Could one pull request a order change? #{file}:#{line}:#{W|E}
<nofxx>
terminal click to open in emacs is one of the best things I've discovered in the last year
<nofxx>
but the regex is kinda \w:\d:\d?.*
<nofxx>
btw, thanks didn't knew ruby-lint
jgpawletko has quit [Quit: jgpawletko]
jdecuirm has quit [Ping timeout: 264 seconds]
cored has joined #ruby-lang
cored has joined #ruby-lang
<nofxx>
FORMAT = '%{file}:%{line}:%{column}:%{level} %{message}' works
leonshalimov has joined #ruby-lang
ta_ has joined #ruby-lang
mistym has quit [Remote host closed the connection]
houhoulis has quit [Remote host closed the connection]
leonshalimov has quit [Ping timeout: 265 seconds]
Creeves has joined #ruby-lang
ta_ has quit [Ping timeout: 244 seconds]
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ta_ has joined #ruby-lang
shubhamgoyal has quit [Remote host closed the connection]
bradland_ has quit [Quit: bradland_]
shubhamgoyal has joined #ruby-lang
bb010g has joined #ruby-lang
wallerdev has joined #ruby-lang
RobertBirnie has joined #ruby-lang
ta_ has quit [Ping timeout: 264 seconds]
shubhamgoyal has quit [Ping timeout: 256 seconds]
jxie has joined #ruby-lang
<zenspider>
nofxx: not running your shell inside emacs?
chadwtaylor has joined #ruby-lang
bradland_ has joined #ruby-lang
shubhamgoyal has joined #ruby-lang
shubhamg_ has joined #ruby-lang
shubhamgoyal has quit [Ping timeout: 245 seconds]
shubhamg_ has quit [Remote host closed the connection]
pepperbreath has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
cored has quit [Ping timeout: 244 seconds]
mistym has joined #ruby-lang
rahul_j has joined #ruby-lang
SuMo_D has joined #ruby-lang
revath has joined #ruby-lang
gix has quit [Ping timeout: 244 seconds]
ur5us has quit [Remote host closed the connection]
gjaldon has joined #ruby-lang
SuMo_D has quit [Quit: Off into this... Real world place...]
ur5us has joined #ruby-lang
bradland_ has quit [Quit: bradland_]
Musashi007 has joined #ruby-lang
gix has joined #ruby-lang
[H]unt3r has joined #ruby-lang
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ur5us has quit [Ping timeout: 240 seconds]
rcvalle has quit [Quit: rcvalle]
gjaldon has quit [Remote host closed the connection]
fedexo has quit [Read error: Connection reset by peer]
fedexo_ has quit [Read error: Connection reset by peer]
leonshalimov has quit [Ping timeout: 244 seconds]
fedexo__ has joined #ruby-lang
fedexo has joined #ruby-lang
<nofxx>
zenspider, can't find a good way to do that with dual monitors
<nofxx>
also, it always buggies with me, both shell and eshell
[H]unt3r has quit [Quit: Leaving]
AKASkip has joined #ruby-lang
eristic is now known as yibeikafei
yibeikafei is now known as eristic
eristic is now known as yibeikafei
yibeikafei is now known as eristic
gjaldon has quit [Remote host closed the connection]
pwnz0r has quit [Remote host closed the connection]
pwnz0r has joined #ruby-lang
chadwtaylor has quit [Remote host closed the connection]
pwnz0r has quit [Ping timeout: 255 seconds]
AKASkip has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 245 seconds]
oleo has quit [Quit: Verlassend]
gjaldon has joined #ruby-lang
gjaldon has quit [Remote host closed the connection]
mattyohe has quit [Quit: Connection closed for inactivity]
emmesswhy has quit [Quit: This computer has gone to sleep]
emmesswhy has joined #ruby-lang
apeiros_ has quit [Read error: Connection reset by peer]
apeiros_ has joined #ruby-lang
shubhamgoyal has joined #ruby-lang
fclausen has quit [Read error: Connection reset by peer]
rahul_j has joined #ruby-lang
fclausen has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
gjaldon has joined #ruby-lang
seank__ has quit [Remote host closed the connection]
seank_ has joined #ruby-lang
cornerma1 has joined #ruby-lang
xcesariox has joined #ruby-lang
seank__ has joined #ruby-lang
cornerman has quit [Ping timeout: 243 seconds]
cornerma1 is now known as cornerman
seank__ has quit [Read error: Connection reset by peer]
seank_ has quit [Ping timeout: 240 seconds]
AKASkip has joined #ruby-lang
seank_ has joined #ruby-lang
ta_ has joined #ruby-lang
charliesome has quit [Quit: zzz]
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maso has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 244 seconds]
charliesome has joined #ruby-lang
kapil__ has quit [Quit: Connection closed for inactivity]
skade has joined #ruby-lang
kshah has joined #ruby-lang
<kshah>
hello, planning on wrapping an executable provided to my gem users with a daemon if the option is given, it’s a been a little bit, but is the de facto standard still the ‘daemons’ gem? are there any popular alternatives? quick googling didn’t reveal anything
wallerdev has quit [Quit: wallerdev]
Creeves has quit [Ping timeout: 256 seconds]
kapil__ has joined #ruby-lang
Xzanron has joined #ruby-lang
fclausen has quit [Ping timeout: 272 seconds]
revath has quit [Ping timeout: 244 seconds]
leonshalimov has joined #ruby-lang
[spoiler] has joined #ruby-lang
<darix>
kshah: check what things like puma, resque, sidekiq or unicorn use
<darix>
just to name a few
|jemc| has joined #ruby-lang
<kshah>
I would assuming they are rolling their own, but yes, I will check them out… it actually looks like daemons has been updated rather recently which is a joy to see, so I don’t anticipate a problem anywho
<kshah>
(not that it being old would have meant there would have been a problem)
|jemc| has quit [Client Quit]
|jemc| has joined #ruby-lang
leonshalimov has quit [Ping timeout: 245 seconds]
<[spoiler]>
Morning
jxie has joined #ruby-lang
DivineEntity has quit [Ping timeout: 256 seconds]
charliesome has quit [Quit: zzz]
BubonicPestile-1 has quit [Quit: BubonicPestile-1]
mostlybadfly has quit [Quit: Connection closed for inactivity]
rbrs has joined #ruby-lang
sush24 has joined #ruby-lang
chadwtaylor has joined #ruby-lang
hramrach has quit [Ping timeout: 250 seconds]
<ljarvis>
moin
<ljarvis>
yorickpeterse: not really having trouble per say, it all just feels quite clunky
fusillicode has joined #ruby-lang
chadwtaylor has quit [Ping timeout: 264 seconds]
mistym has quit [Remote host closed the connection]
<ljarvis>
yorickpeterse: that said, I haven't really scratched the surface yet (see leejarvis/tiger). I've done this kind of thing before many years ago, forgot how mind numbing it can be
ddd has quit [Ping timeout: 245 seconds]
ddd has joined #ruby-lang
ishikawa has quit [Ping timeout: 250 seconds]
ryez has joined #ruby-lang
jxie has quit [Read error: Connection reset by peer]
benlovell has joined #ruby-lang
jxie has joined #ruby-lang
stardiviner has joined #ruby-lang
ta_ has joined #ruby-lang
gjaldon has quit [Remote host closed the connection]
ishikawa has quit [Remote host closed the connection]
iamninja has joined #ruby-lang
Newbie0086 has quit [Ping timeout: 265 seconds]
rbowlby has quit [Ping timeout: 265 seconds]
<yorickpeterse>
nofxx: re syntastic, it's so that it's compatible with Syntastic
<yorickpeterse>
ljarvis: getting started with parsing is a PITA
<yorickpeterse>
also morning
dangerousdave has joined #ruby-lang
gwendall has joined #ruby-lang
chadwtaylor has joined #ruby-lang
Newbie0086 has joined #ruby-lang
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ishikawa has joined #ruby-lang
ta_ has joined #ruby-lang
gjaldon has joined #ruby-lang
chadwtaylor has quit [Ping timeout: 265 seconds]
Newbie0086 has quit [Quit: 离开]
<ljarvis>
how the fuck do i test a validation that only runs on update in a unit test
ta_ has quit [Ping timeout: 265 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Xzanron has joined #ruby-lang
stardiviner has quit [Ping timeout: 240 seconds]
<tobiasvl>
runs on update?
<maloik>
ljarvis: check that the method is being called on update, and then test the output of the actual method?
<ljarvis>
maloik: it just adds a validation, so i just want `foo.bar = "something bad"; expect(foo).to have(1).error_on(:whatever)` but the validation only runs on update which means (i think) fiddling with too much mocking or hitting the db
<ljarvis>
meh i'll just use an integration spec for it
Xzyx987X has joined #ruby-lang
<ljarvis>
x.length != Set.new(x).length # lazy
<maloik>
oh right... yea in that case we don't quite shy away from hitting the db yet :/
<maloik>
our 1200ish tests take about 2min to run locally
<ljarvis>
our unit and integration specs are fast, our request specs are not :D
tockitj has quit [Quit: Leaving]
ta has quit [Ping timeout: 264 seconds]
ta has joined #ruby-lang
Sadin has quit [Remote host closed the connection]
chills42 has quit [Remote host closed the connection]
Sadin has joined #ruby-lang
rbrs has quit [Quit: rbrs]
tcopeland has joined #ruby-lang
nertzy has quit [Quit: This computer has gone to sleep]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kshah has joined #ruby-lang
nertzy has joined #ruby-lang
VictorBjelkholm has quit [Quit: Leaving]
vondruch has quit [Quit: Ex-Chat]
mistym has quit [Remote host closed the connection]
hal_9000_ has joined #ruby-lang
fusillicode has quit [Ping timeout: 264 seconds]
<hal_9000_>
Greetings, all. I’m trying to re-form the habit of hanging out here. :)
<hal_9000_>
who’s awake, anyway?
<havenwood>
hal_9000_: hi
<hal_9000_>
hi, havenwood
* workmad3
hides from the evil ai
apeiros has joined #ruby-lang
<hal_9000_>
lol
<hal_9000_>
not evil, just misunderstood
<hal_9000_>
i’m curious - general question here - how many of you have heard of André Arko?
<ljarvis>
hal_9000_: lots of people, probably
goodcodeguy has joined #ruby-lang
<hal_9000_>
ljarvis: meaning at least you have, then
<ljarvis>
at least, yes
dagda1 has quit [Ping timeout: 244 seconds]
<hal_9000_>
k thx
<hal_9000_>
fwiw. the people i have asked have not heard of him, including all my coworkers as well as Chad Fowler, Dave Thomas, Rich Kilmer, Jim Freeze, others
<ljarvis>
ok..
dagda1 has joined #ruby-lang
<hal_9000_>
maybe he is better known in rails circles than ruby
<ljarvis>
hal_9000_: is this going anywhere?
<ljarvis>
well yeah, he's most popular for bundler i'd say
<hal_9000_>
oh, that’s right, i remember that
<pipework>
I've heard of him. He's super nice and cool.
lele has quit [Ping timeout: 265 seconds]
<pipework>
I bet most people know him by his pseudonym Indirect
<hal_9000_>
it’s not going anywhere, really. i just had one person tell me that AA was very well-known — but then I couldn’t find anyone who knew the name
rbrs has joined #ruby-lang
lele|w has quit [Ping timeout: 265 seconds]
<pipework>
What is 'it' in this context?
<hal_9000_>
pipework: ljarvis just asked “is this going anywhere?”
<pipework>
Oh so 'this' is your question?
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<hal_9000_>
yes
<pipework>
I bet if that person had used his pseudonym, Indirect, everyone would know.
[spoiler] has joined #ruby-lang
<pipework>
I'm surprised that the people you named don't know Indirect by his first name though. I met Jim Freeze at rubyconf 2014, I didn't ever learn much on what he does other than a quick conversation.
<hal_9000_>
mmm, maybe so. i still get the impression it’s mostly rails people who know him — although everyone knows bundler of course
bb010g has quit [Quit: Connection closed for inactivity]
benlovell has joined #ruby-lang
wallerdev has joined #ruby-lang
nofxx has joined #ruby-lang
<ljarvis>
this is a weird conversation
_elia has joined #ruby-lang
<hal_9000_>
Jim is one of the few people left who has been to *every* Ruby conference (original international)
<pipework>
ljarvis: Talking about people is pretty common.
<hal_9000_>
ljarvis: i didn’t mean it to be weird
<pipework>
hal_9000_: you so weird! :D
<pipework>
hal_9000_: If you have the ability to chat him up, tell him to come to ruby on ales.
<hal_9000_>
i know andre, i have found him to be friendly and competent
<pipework>
He's also one of the super nice rubyists.
benlovell has quit [Read error: Connection reset by peer]
lele has joined #ruby-lang
elia has quit [Ping timeout: 252 seconds]
rahul_j_ has joined #ruby-lang
<hal_9000_>
ahh cool
<hal_9000_>
eric hodel still up there somewhere? ryan davis?
<pipework>
up where?
<[spoiler]>
lol
<[spoiler]>
ruby on ales, love it
<pipework>
In the pacific northwest?
<hal_9000_>
Seattle as i recall
michaeldeol has joined #ruby-lang
<hal_9000_>
oh, wait. duh. wrong state :)
benlovell has joined #ruby-lang
rahul_j has quit [Ping timeout: 256 seconds]
rahul_j_ is now known as rahul_j
<[spoiler]>
I kinda agree with ljarvis about this being an odd conversation. :o
<hal_9000_>
i apologize if i have given a wrong impression
<workmad3>
nah, this doesn't even rank in my top 100 odd conversations... :)
<[spoiler]>
I meant odd as in uncommon
nathanstitt has quit [Read error: Connection reset by peer]
<hal_9000_>
it’s just that when i hear that “XYZ is a big deal” — usually a technology or website, not a person :) — and i hadn’t heard of XYZ — i ask other people about it/him/her
<workmad3>
[spoiler]: ;)
nathanstitt has joined #ruby-lang
<hal_9000_>
it’s true i’ve been too out of the loop in recent years
lele|w has joined #ruby-lang
<[spoiler]>
hal_9000_: I'm the embodiment of "out of the loop" :P
<workmad3>
hal_9000_: if it helps, I also didn't recognise the name... but I recognise 'indirect' and bundler :)
<workmad3>
[spoiler]: hell, we define the loop by 'wherever [spoiler] isn't'
<hal_9000_>
sure, everyone knows bundler now
<[spoiler]>
psh
<workmad3>
hal_9000_: I used bundler back when it was done by carlhuda ;)
yfeldblum has joined #ruby-lang
<hal_9000_>
loop do important_stuff end; self # outside the loop!!
_elia has quit [Read error: Connection reset by peer]
<pipework>
Nice curves.
<hal_9000_>
i don’t see many names here that i remember actually
<pipework>
where is 'here'? In the channel?
<hal_9000_>
yes
<pipework>
for the most part, IRC isn't cool for the people who're prominent rails developers from pre-2006.
<pipework>
The mailing list is their haunt. Though certainly some of those people are here.
<hal_9000_>
when i started hanging out here, it was all pre-rails rubyists :)
jxie has quit [Ping timeout: 252 seconds]
<[spoiler]>
Hmm. IIRC, I learned about Ruby through Rails, because a friend of mine landed a Rails job in SF
<workmad3>
hal_9000_: I think you've been in a few times while I've been around :)
<[spoiler]>
Well I *heard* of Ruby, but I never gave it a try
<[spoiler]>
I mostly worked in C, and sometimes in PHP
<hal_9000_>
i’m definitely trying to revisit my roots :)
<workmad3>
hal_9000_: did you jump ship for haskell? or go? :)
<[spoiler]>
Then Ruby happened, and it was like a Disney orgasm: wonderful
elabs-developer has quit [Quit: elabs-developer]
<hal_9000_>
workmad3: i have been using ruby all along, i just sort of lost contact with the mailing list and IRC
<loincloth>
what
yfeldblum has quit [Ping timeout: 244 seconds]
<loincloth>
the f
<workmad3>
[spoiler]: we don't need to know what you waste your tissues on... :P
<hal_9000_>
:P
<[spoiler]>
¬_¬
<hal_9000_>
you know how an electrical engineer fakes an orgasm?
sush24 has quit [Quit: This computer has gone to sleep]
<workmad3>
(btw, I think this is now just touching into top 100...)
<workmad3>
hal_9000_: I'm not sure I want to know... but go on
<hal_9000_>
with an andgasm and three inverters
<workmad3>
sigh
<[spoiler]>
lol
<hal_9000_>
imperator is still here sometimes, right?
cored has quit [Ping timeout: 252 seconds]
sangwoojoo has joined #ruby-lang
<[spoiler]>
yep
<hal_9000_>
what about drbrain or zenspider?
<[spoiler]>
yep & yep
<pipework>
How does a pentester achieve orgasm? nop sleds, like everything else.
<workmad3>
hal_9000_: seeing as they're both idling in here atm... ;)
sangwoojoo has quit [Client Quit]
<hal_9000_>
are they?? i overlooked them in the list
<[spoiler]>
Gosh how did this conversation about orgams stat even
sangwoojoo has joined #ruby-lang
<workmad3>
[spoiler]: it's your fault :P
<hal_9000_>
true dat! :)
<workmad3>
17:25 < [spoiler]> Then Ruby happened, and it was like a Disney orgasm: wonderful
<workmad3>
^^ the start
<[spoiler]>
oh come on
mistym has joined #ruby-lang
nofxx has quit [Ping timeout: 240 seconds]
<[spoiler]>
It was an [almost]innocent thing
<workmad3>
it was enough :P
<hal_9000_>
funny — in my client, i *don’t* see drbrain or imperator idling here
<pipework>
Get a better client? :D
<workmad3>
hal_9000_: imperator isn't atm... but drbrain and zenspider are (or so my tab-complete tells me :) )
<[spoiler]>
hal_9000_: they're /away, that could be why
<[spoiler]>
no wait, zenspider isn't
nertzy has quit [Quit: This computer has gone to sleep]
<[spoiler]>
neither is drbrain; ok I fail
<pipework>
Let's keep highlighting them to hell.
benlovell has quit [Read error: Connection reset by peer]
<[spoiler]>
LMAO
benlovell has joined #ruby-lang
<workmad3>
pipework: if they haven't appeared by now, it's probably just their bouncers ;)
<sangwoojoo>
한글 테스트 Testing UTF-8 IRC..
nofxx has joined #ruby-lang
nofxx has joined #ruby-lang
<pipework>
workmad3: They have their own personal security?!
<workmad3>
pipework: sure... irc is a dangerous place
<[spoiler]>
pipework: Don't be daft.
sangwoojoo has quit [Client Quit]
<workmad3>
pipework: there's redheads and all on here!
<[spoiler]>
They are ninjas, they don't need security
<workmad3>
can't be too careful
<workmad3>
[spoiler]: going by hal_9000_'s IRC client, ninja seems a good description ;)
mikecmpbll has quit [Ping timeout: 264 seconds]
<[spoiler]>
Hahaha
<nofxx>
yorickpeterse, ah, I see... gonna make my regex smarter...
<nofxx>
kshah, problably gonne but: a very simple way is using systemd, basically you don't have to do anything, just create a .service file
skade has quit [Quit: Computer has gone to sleep.]
sush24 has joined #ruby-lang
mikecmpbll has joined #ruby-lang
<hal_9000_>
out of curiosity, anyone here playing with elixir?
RobertBirnie has joined #ruby-lang
<hal_9000_>
because i sure am :)
<kshah>
nofxx: still here, I was looking for a cross platform method, but ruby provides everything needed anyways, so even daemons is unnecessary though convenient
<workmad3>
hal_9000_: I keep on meaning to... just haven't found the time recently :)
<hal_9000_>
i understand that totally
<hal_9000_>
it
sangwoojoo has joined #ruby-lang
<hal_9000_>
*it’s not OO, but it does have some bits inspired by ruby
pwnz0r has joined #ruby-lang
<[spoiler]>
hal_9000_: I'm the same as workmad3 in that respect :P
<workmad3>
hal_9000_: a good chunk of my spare time recently has been eaten up reading about React.js (for a work project) and various other bits and pieces that were on my radar
<nofxx>
kshah, ahh, nice!
<hal_9000_>
[spoiler]: hey, i’ve seen you before. on the back of a sports car
godd2 has joined #ruby-lang
sarkyniin has joined #ruby-lang
leonshalimov has quit [Ping timeout: 264 seconds]
Asher has quit [Quit: Leaving.]
<[spoiler]>
hal_9000_: I don't understand that reference
<hal_9000_>
i’m a bit of a dinosaur in that i’m Not Really a Web Guy
<hal_9000_>
[spoiler]: sorry, dumb joke - spoiler, like on a car?
fusillicode has joined #ruby-lang
<[spoiler]>
Oh right an exhaust pipe
<[spoiler]>
I forget about that lol
<workmad3>
no, a spoiler isn't an exhaust...
<hal_9000_>
no that’s something else
wallerdev has quit [Quit: wallerdev]
<workmad3>
I consider cars to basically be boxes on wheels, and even I know a spoiler isn't an exhaust :P
<hal_9000_>
they’re not just boxes on wheels - they also have a stereo :)
<workmad3>
hal_9000_: and a big turny thing inside that makes it go in different directions
<[spoiler]>
ooh right
<[spoiler]>
the spoiler is the thing on the boot
<hal_9000_>
oh you’re a brit or something
<[spoiler]>
I'm Croatian
<hal_9000_>
i see
<workmad3>
hal_9000_: are you objecting to calling it by the correct name? :)
<nofxx>
usually if it's "aerodynamical" you can call it spoiler
<hal_9000_>
the default english is “real” english of course
<nofxx>
front or rear, down or up "wings"
<[spoiler]>
but I have a British accent when I speak English, for whatever reason
<hal_9000_>
workmad3:
<hal_9000_>
I don’t objject :)
<hal_9000_>
that’s common actually i think
<workmad3>
:)
<nofxx>
I prefer bikes =D
bantic has quit [Quit: bantic]
<hal_9000_>
so what kind of projects are you guys into?
djbkd has joined #ruby-lang
<nofxx>
$/G-force ratio... car just can't beat a 130hp 170kg bike
<[spoiler]>
hal_9000_: not much, just work stuff, and I'm preparing myself to write a documentation for mruby sometime soon
<hal_9000_>
ahh. is that what used to be called miniruby?
leonshalimov has joined #ruby-lang
mikecmpbll has joined #ruby-lang
bantic has joined #ruby-lang
<[spoiler]>
I've decided to use mruby for a project and I've been writing a documentation for myself, so I'll prob make it pretty-looking, remove all the swearing and the like
<[spoiler]>
and then make a pull requesy
<[spoiler]>
request
<hal_9000_>
swearing, lol
<workmad3>
hal_9000_: mostly work tbh
<hal_9000_>
i started a fun project last year, but haven’t touched it in too long
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
tkuchiki has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
benlovell has quit [Ping timeout: 264 seconds]
mikecmpbll has quit [Quit: ciao.]
<workmad3>
hal_9000_: heh :) is it awful that I'd personally just pull out well-formed IP addresses (consisting of \d{1,3}(\.\d{1,3}){3} ) and then validate them? :)
<hal_9000_>
it’s not awful if it works for you :)
Nixsos has quit [Ping timeout: 245 seconds]
tkuchiki has quit [Ping timeout: 244 seconds]
chills42 has joined #ruby-lang
<workmad3>
hal_9000_: not to mention you're doing a bit of a straw-man argument... 'ip_byte = "(25[0-5]|2[0-4]\d|([01])?(\d){1,2})"; ip_address = /#{ip_byte}(\.#{ip_byte){3}/
nofxx_ has joined #ruby-lang
nofxx_ has quit [Changing host]
nofxx_ has joined #ruby-lang
<workmad3>
err, with an extra } in there
ruby-lang951 has joined #ruby-lang
<hal_9000_>
true, yes
Lewix has quit [Remote host closed the connection]
<hal_9000_>
but i still find regex notation overly complex in general
nofxx has quit [Ping timeout: 255 seconds]
<hal_9000_>
although the smartest people i know disagree :)
<[spoiler]>
Idk regexp is nice sometimes, I don't think it's too complicated
<hal_9000_>
rather like the guy (backus?) whoi said, “why would anypne ever use a ‘high-level’ lamguage?”
<workmad3>
hal_9000_: you can certainly construct some absolutely appalling regular expressions
<hal_9000_>
anything you already know seems fairly simple, i think
<hal_9000_>
i have seen regexes dozens of lines long
<workmad3>
the level of regexp I tend to use is fairly simple, IMO
<hal_9000_>
yes. i personally would use more complex ones if i didn’t find them so difficult
<workmad3>
hal_9000_: the advantage of regexp is that it's really terse... but that makes it unsuitable for complicated uses, IMO :)
gwendall has joined #ruby-lang
<workmad3>
hal_9000_: but for small bits of pattern matching, such as you'd do in tokenising some input or finding certain bits of a large glob of text, you can do a lot with a few simple regexp :)
dagda1 has joined #ruby-lang
<apeiros>
regexp is a DSL
<apeiros>
as such, it has all the advantages and disadvantages DSLs have
Zekka has quit [Read error: Connection reset by peer]
<workmad3>
^^ :)
<workmad3>
the main advantage of regexp in particular is, I feel, terseness
<apeiros>
yes
<apeiros>
which can mean it's more readable, but perversely it can mean the opposite too
<apeiros>
and if you don't believe the "more readable". try to rewrite a not-too-complex regex in english.
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros>
have fun reading and understanding it.
wallerdev has joined #ruby-lang
<apeiros>
(and then imagine a more complex regex…)
malconis has joined #ruby-lang
<workmad3>
apeiros: or hell, just rewrite it using built-in ruby string comparisons
<apeiros>
that will make it even more obvious :)
<workmad3>
(admittedly, what you then do is implement a crappy partial regexp engine... :) )
<apeiros>
most likely
<workmad3>
right, must get the tram home
<workmad3>
later all
<apeiros>
tram? nice :) cya
nofxx_ has quit [Ping timeout: 265 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rbowlby has joined #ruby-lang
symm- has joined #ruby-lang
workmad3 has quit [Ping timeout: 252 seconds]
<headius>
whitequark: how do I select ranges of lines in your IRC logger?
<headius>
the usual suspects aren't working for me
nofxx_ has joined #ruby-lang
nofxx_ has quit [Changing host]
nofxx_ has joined #ruby-lang
chadwtaylor has joined #ruby-lang
chills42 has quit [Remote host closed the connection]
michaeldeol has joined #ruby-lang
Miphix has quit [Quit: Leaving]
donove has quit [Quit: Leaving]
tcopeland1 has joined #ruby-lang
bantic has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
tcopeland has quit [Ping timeout: 252 seconds]
arBmind has quit [Quit: Leaving.]
djbkd has joined #ruby-lang
Fretta has joined #ruby-lang
leonshalimov has quit [Ping timeout: 244 seconds]
sush24 has quit [Quit: This computer has gone to sleep]
futilegames_ has joined #ruby-lang
futilegames has quit [Ping timeout: 256 seconds]
futilegames_ is now known as futilegames
djbkd has quit [Remote host closed the connection]
rahul_j has quit [Quit: rahul_j]
gwendall has quit [Remote host closed the connection]
<yorickpeterse>
nofxx_: what are you trying to do with the syntastic output?
gwendall has joined #ruby-lang
<yorickpeterse>
headius: click a timestamp, then shift click another one
nathanstitt has quit [Quit: I growing sleepy]
marr has quit [Read error: Connection reset by peer]
cored has quit [Ping timeout: 264 seconds]
James has joined #ruby-lang
James is now known as Guest78314
hahuang61 has joined #ruby-lang
Guest78314 has quit [Client Quit]
sangwoojoo has left #ruby-lang [#ruby-lang]
sangwoojoo has joined #ruby-lang
mattwildig has joined #ruby-lang
ruby-lang951 has quit [Ping timeout: 246 seconds]
godd2 has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
GBrawl has quit [Remote host closed the connection]
GBrawl has joined #ruby-lang
<[spoiler]>
yorickpeterse: do you happen to know why a singleton class is created internally during the evaluation of instance_eval?
<headius>
yorickpeterse: ahh, thanks
<[spoiler]>
well not "created" but "invoked" or whatever
Bwild has joined #ruby-lang
<yorickpeterse>
[spoiler]: euh, what?
<[spoiler]>
when you do instance_eval, the block is actually executed on the object's singleton class
<[spoiler]>
erm, sorry; I mean the singleton class is `self`
<yorickpeterse>
You mean a bare `instance_eval { ... }`?
<[spoiler]>
nope
gwendall has quit [Remote host closed the connection]
<[spoiler]>
poop.instance_eval {}
emmesswhy has joined #ruby-lang
<yorickpeterse>
if poop is an instance then it should evaluate it on the instance, not a singleton class
<yorickpeterse>
well, to be exact:
<yorickpeterse>
it gets the class and evaluates it against that, but makes everything available on instance level
sangwoojoo has left #ruby-lang ["PART #RubyOnRails :QUIT :Leaving."]
gwendall has joined #ruby-lang
<[spoiler]>
Oh wait shit
sangwoojoo has joined #ruby-lang
<[spoiler]>
no this is not what happens, but a singleton class is still passed to eval_under
<yorickpeterse>
Looking at the MRI code there's some conditional that determines whether or not it should use a class or a singleton class
<[spoiler]>
*looks in eval_under
<yorickpeterse>
but I'm not familiar with the semantics of it
<[spoiler]>
yeah
<[spoiler]>
ah thanks
<[spoiler]>
I'll just look into it, I just thought you might know off the top of your head
jds has quit [Quit: Connection closed for inactivity]
<yorickpeterse>
nop
chadwtaylor has quit [Remote host closed the connection]
chills42 has joined #ruby-lang
cornerma1 has joined #ruby-lang
ruby-lang714 has joined #ruby-lang
gwendall has quit [Remote host closed the connection]
chills42 has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
chadwtaylor has joined #ruby-lang
nathanstitt has joined #ruby-lang
<yorickpeterse>
watching bob ross is so relaxing
bears has joined #ruby-lang
<yorickpeterse>
dat haircut doe
<hal_9000_>
lol
mistym has quit [Remote host closed the connection]
chills42 has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
brownbathrobe has joined #ruby-lang
mattwildig has quit []
<yorickpeterse>
Somebody should do this but for coding
<yorickpeterse>
"In our world there are no bugs, just happy little incidents"
<hal_9000_>
alas, poor yorickpeterse
<yorickpeterse>
"lets say our little friend here is dealing with financial data. Lets just give them some floats"
<yorickpeterse>
"Remember, no bugs, just happy little incidents"
<hal_9000_>
as long as i can reroute the roundoff error into my own account
tkuchiki has joined #ruby-lang
<pipework>
hal_9000_: Well, you'd want to route it around so that you turn it into bitcoin from some account that's not traceable to you, then route the money through a laundering scheme, then to your account.
shazaum has quit [Quit: This computer has gone to sleep]
tkuchiki has quit [Ping timeout: 245 seconds]
ruby-lang714 has quit [Ping timeout: 246 seconds]
shubhamgoyal has quit [Remote host closed the connection]
cored has joined #ruby-lang
shubhamgoyal has joined #ruby-lang
<brownbathrobe>
hey folks, ok to ask Rails questions here?
<tbuehlmann>
there's #rubyonrails
<brownbathrobe>
tbuehlmann: thanks
<[spoiler]>
yorickpeterse: LOL @ "happy little incidents"
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rbrs has quit [Quit: rbrs]
<[spoiler]>
yorickpeterse: oh I figured out why the singleton class is created/invoked
<[spoiler]>
I really wanna use the term "summoned" but it seems very occult.
GBrawl has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
ddd has joined #ruby-lang
<hal_9000_>
manifested? :)
GBrawl has joined #ruby-lang
<[spoiler]>
hal_9000_: Lol :-)
chills42 has quit [Remote host closed the connection]
fclausen has quit [Ping timeout: 272 seconds]
chadwtaylor has quit [Remote host closed the connection]
iamninja has quit [Quit: ZZZzzz…]
mistym has quit [Remote host closed the connection]
chadwtay_ has joined #ruby-lang
michaeldeol has joined #ruby-lang
nertzy has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
benanne has joined #ruby-lang
nofxx_ has joined #ruby-lang
Lewix_ has joined #ruby-lang
hrs has joined #ruby-lang
Val_ is now known as rand0mbits
nertzy has quit [Quit: This computer has gone to sleep]
Lewix has quit [Ping timeout: 256 seconds]
mistym has joined #ruby-lang
scampbell has quit [Quit: Leaving]
nertzy has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yalue has quit [Quit: return 0;]
hrs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sangwoojoo has quit [Quit: Leaving.]
shubhamgoyal has quit [Ping timeout: 252 seconds]
michaeldeol has joined #ruby-lang
djbkd has joined #ruby-lang
benanne has quit [Quit: kbai]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
hahuang61 has joined #ruby-lang
elia has joined #ruby-lang
<yorickpeterse>
man I'm such a fucking nerd
<yorickpeterse>
I'm debating here if I really should move from context/example to describe/it in rspec
<yorickpeterse>
(I used the latter for years, then switched to the former for...reasons)
<yorickpeterse>
and there's this one half of me that goes "nooooooo" and the other half goes "everybody else uses it, just do it and make it easier for yourself"
yfeldblum has quit [Ping timeout: 265 seconds]
hrs has joined #ruby-lang
<yorickpeterse>
fukit, it/describe it is
elia has quit [Read error: Connection reset by peer]
<yxhuvud>
I use specify sometimes when I feel it reads better.
elia has joined #ruby-lang
<nofxx_>
yorickpeterse, the one with less characters wins
<yorickpeterse>
clearly we should just use test_if_a_user_picks_their_nose
_elia has joined #ruby-lang
<nofxx_>
assert(foo, bar) too, its just so confusing, non descriptive... I mean, even if 99% time you use 'equal' feels wrong it's not there
robbyoconnor has quit [Quit: Konversation terminated!]
<yorickpeterse>
oh I hate the new rspec syntax
<yorickpeterse>
I re-enabled the should syntax everywhere I use rspec
<nofxx_>
pretty much prefer expect(foo).to eq true ... was testing minispec too, yeah, to look like old rspec yorickpeterse
<nofxx_>
foo.must_be_true
<nofxx_>
kinda looks like... but that was removed so there's no monkeypatching the subject etc etc etc
sangwoojoo has joined #ruby-lang
<nofxx_>
problably going to be removed from minispec too?
nertzy has quit [Quit: This computer has gone to sleep]
elia has quit [Ping timeout: 264 seconds]
<nofxx_>
was deprecated in rspec*
<nofxx_>
expect(foo).to over foo.should
<nofxx_>
yorickpeterse, I've used transpec... works very nice
<yorickpeterse>
I believe the rspec team has no intention of actually removing "should"
<yorickpeterse>
nofxx_: I know, so have I
<nofxx_>
yorickpeterse, hmm, I see
<yorickpeterse>
However, everybody on my team (inc me) hates writing "expect(X).to eq(Y)
<yorickpeterse>
vs x.should == y
<hal_9000_>
may i ask why people prefer th *spec style tesing rather than e.g. minitest style?
<nofxx_>
hal_9000_, was just saying... it reads better and feels right
sangwoojoo has quit [Remote host closed the connection]
<hal_9000_>
ok
lapide_viridi has joined #ruby-lang
<nofxx_>
hal_9000_, and it's way faster to type
wallerdev has joined #ruby-lang
<hal_9000_>
matter of preference of course - i just prefer “real ruby” like assert_equal(x, y)
mattwildig has joined #ruby-lang
<hal_9000_>
not that the other is unreal — i just find it “magicky”
<nofxx_>
hal_9000_, I disagree it's real ruby. I never did if check_for_equality(a, b) , you'll always do if a.something?(b)
<nofxx_>
the former looks python
<hal_9000_>
i just don’t really know what kind of object has a .to method, or what eq() really is, etc.
<nofxx_>
hal_9000_, yeah... eq is just alias for ==, cause it'll look ugly: expect(a).to == b , but I guess it works
<nofxx_>
should rspec: a.should == b , looks good
<hal_9000_>
if ruby had macros, i would prefer a solution like that… assert { a == b }
<nofxx_>
but eq looks better imho: a.should eq(b) , I mean... it's really readable
<nofxx_>
hal_9000_, I like that way better... at least the check is explicit
<loincloth>
i miss assert_* hal_9000_
<loincloth>
i feel you
<[spoiler]>
Tsk. Friend just ditched me for sleep. I can't believe this ¬_¬
<[spoiler]>
oops wrong channel
<[spoiler]>
wrong network even
<yorickpeterse>
tssk tssk
<yorickpeterse>
what a louzy friend
<loincloth>
you talk like you've never slept
brownbathrobe has quit [Remote host closed the connection]
<[spoiler]>
See, yorickpeterse understands. Humpf.
<[spoiler]>
loincloth: Yeah, but we were supposed to do something tonight, and we were talking about it all week!
Nixsos has joined #ruby-lang
<yorickpeterse>
I feelz ya
leonshalimov has joined #ruby-lang
postmodern has joined #ruby-lang
sarkyniin has quit [Quit: Quitte]
futilegames has quit [Quit: futilegames]
chills42 has joined #ruby-lang
mbug has joined #ruby-lang
Nixsos has quit [Read error: Connection reset by peer]
Nixsos has joined #ruby-lang
zz_dlu has quit [Ping timeout: 245 seconds]
hahuang61 has quit [Ping timeout: 265 seconds]
robbyoconnor has joined #ruby-lang
robbyoconnor has quit [Changing host]
robbyoconnor has joined #ruby-lang
GaelanAintAround has quit [Ping timeout: 252 seconds]
tkuchiki has joined #ruby-lang
7YUAAB0X2 has joined #ruby-lang
GaelanAintAround has joined #ruby-lang
zz_dlu has joined #ruby-lang
<yorickpeterse>
lol activesupport: pluralizes "do not" to "dos not"
7YUAAB0X2 is now known as brownbathrobe
<yorickpeterse>
well to be exact it pluralizes "do" to "dos"
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ddd has quit [Quit: leaving]
<hal_9000_>
hmmm, well, that is sort of vvalid in a way i guess :)
<hal_9000_>
to-do, to-dos
tkuchiki has quit [Ping timeout: 245 seconds]
<yorickpeterse>
other than that my little converter script is doing ok
<yorickpeterse>
yay for not having to run sed 15m times
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]