« first day (1724 days earlier)      last day (3228 days later) » 

3:00 PM
cool, be open
 
@FlorianMargaine I am always open
 
your mom is also open
 
STOP
 
HAMMERTIME!
 
3:01 PM
@uselesschien Perhaps you need to become a little more open
 
can I use canvases to do it?
 
@afonsomatos ryt. but mom jokes no funny.
 
Canvas can't do anything real.
 
@afonsomatos But it's so pretty :>
 
STAHP
 
3:03 PM
you mean, like stallman?
 
HAMMAHTIME!
 
@BenFortune I just sneezed.
I am allergic to ugly themes.
 
I'm allergic to your mum
 
actually she is allergic. took too many in.
 
Spacegray is not compatible with the sidebar icons.
What a shit.
 
3:06 PM
20 mins ago, by afonsomatos
But it's too much blue
 
@BenFortune I'm using the eighties theme.
 
Hm.. I love spacegray
 
I love your mom
 
atom zenburnt is a great theme
 
@afonsomatos oh
 
3:09 PM
@afonsomatos sissy
 
I am very picky with styling.
 
But mine's magnitudes cooler. i.imgur.com/YJtp345.png
@afonsomatos I see
 
Wish I could afford a mac.
 
Cool it on the flaggable stuff guys.
 
ElementaryOS is the next best thing though.
 
3:11 PM
Mac?
 
Everything okay guys & gals?
 
Someone's flag happy
 
That flag was awesome, just thought I'd pop in to say that.
 
What are you kids flagging now?
 
3:13 PM
lol @ imgur frontpage
 
@Luggage That's actually really nice
 
Ughh purple color.
 
I just installed this: packagecontrol.io/packages/Predawn - and I am liking this very much.
 
Anyway - can we not flag such posts please - there are ROs here that can move messages out of the room if they're deemed offensive - using a flag for spam/offensive is not appropriate in this case. Thank you.
 
3:16 PM
What was flagged, if I may ask?
 
@AwalGarg that's an awful nice theme you've got there
 
I've been using atom-zenburn for a while and it's generally pleasant, but a little too unsaturated
 
@ssube not sure if nice should take precedence over awful or the other way :/
 
@FlorianMargaine haaha wtf
 
3:18 PM
@AwalGarg you may ask - but it's not important. Spam/offensive flags go system wide for all 10k+ users... and quite often they're not important because of the culture of the rooms they're raised in. They should be used sparingly.
 
Is it possible to maintain a mongo collection as a queue?
 
Here is the solution: Afterglow-monokai.tmTheme (ColorScheme) + Spacegray Eighties.sublime-theme (theme)
 
@JonClements Well if I don't know what you mean by "such posts" I won't be able to properly understand (not that I flagged, which is obvious anyways).
 
Was on Seti-UI (Atom): atom.io/themes/seti-ui now on the included: atom.io/themes/one-dark-ui
 
@AwalGarg "awfully nice" would be correct grammar. "Awful" is an adjective to "nice."
 
3:20 PM
@ssube True, awfully is an adverb.
 
here's the solution: vim + tomorrow-night-bright
 
@Luggage One Dark as the background is really nice, with zenburn or predawn
 
@ssube cool. I have got some questions about your webpack config from your github repo. How to ask all of them together? Should I open an issue?
 
@AwalGarg Issue or chat, either works.
What sort of questions?
 
why do you suck at life?
 
3:22 PM
"What is love?"
"What does the fox say?"
 
@FlorianMargaine I don't think I do, anymore.
@KendallFrey Not a real thing.
@KendallFrey They kind of chirp-bark.
 
basically some customization that I am not able to figure out myself. I'll open an issue so even if you don't have time right now, you can look later.
 
@AwalGarg I'm leaving work to look at a house in an hour, so I'm not going to accomplish anything this morning anyway. :D
 
@afonsomatos Pics
 
pecs
 
3:23 PM
@ssube haha np. have a look whenever you have time :)
 
I need to improve my reading skills.
 
@afonsomatos I know how to
 
zinc is cool
 
3:24 PM
zinc is a waste of time
 
although "zinc is not cool" is a recursive acronym
 
@KendallFrey ooh
that's gotta be a good product name for something
 
@AwalGarg can't go into detail about who was flagged or who flagged the post - but - the ROs here can move posts out to the bin if needs be - the flagged post didn't require spam/offensive flags against it
 
and of course XNA is Not an Acronym
 
@JonClements cool :)
 
3:27 PM
breathe if u lov me
 
@KendallFrey Forcing Microsoft to be more like Linux, one recursive acronym at a time.
 
@pakalupapito you just killed so many people
 
Ouch
 
That guy is everywhere.
 
My clipboard is possessed
wtf
I'm getting random code from who knows where
 
3:32 PM
Firefox bugs out on my all the time with the clipboard
Won't copy reddit messages if you copy the username too, stuff like that
 
That sounds like the beginning of an incredibly bad creepypasta
 
Ahhh I hate this laptop. If you press a key, you can't use the touchpad for like 2 seconds afterward
 
@Cereal your name means cereal in my language
 
It is creepy
 
@afonsomatos It means cereal in my language too
 
3:34 PM
@Cereal great lets fuck
 
what?
 
^ A more accurate title would be "Why we should use Grunt & Gulp less", but an interesting article.
 
So, confirmed, it's coming from someone else who's sharing a TeamViewer session
 
Hate grunt, love gulp.
 
Hate ben, love me
 
3:39 PM
@Retsam They come out with that stuff fairly often. "We need to use scripts!" "We need to get rid of scripts!" "We need more scripts!" "We need fewer scripts!"
If you don't go crazy with your scripts in the first place, you can avoid the whole mess.
 
I'd rather use gulp than install 15 global modules to do what gulp is already doing.
 
xactly. I bet somebody at their office got carried away, tried to use gulp to script npm or something ass backwards, and that's the reaction article.
Once their build falls apart, they'll realize they really do want one script handling it, and move back with a much more minimal gulp script.
 
But aren't you already installing those 15 modules (plus the "gulp-module-name" module) when using Gulp?
 
Not globally.
 
you don't have to install them globally when using npm
"devDependencies": {
    "jshint": "latest",
},
"scripts": {
    "lint": "jshint **.js"
}
this doesn't install globally and works
 
3:43 PM
Really? TIL
 
> That's it! You introduce 1 extra dependency, and 1 line of code, per tool you wish to use. Then just call npm run lint and voila!
@BenFortune well, if you had read the article...
 
npm is sufficiently messy and abused as-is, the last thing we need to do is force it to run the build as well
 
I don't read
What if you have a complicated build system?
 
@FlorianMargaine sadly, that's not the case for anything with multiple steps
plus you end up with temp directories
 
@ssube yup, the author seems to miss the point of gulp: piping
 
3:45 PM
If you have a complicated build system, then sure, use Grunt/Gulp. But the point the article makes is that fewer people actually have a "complicated build system" than they think.
 
It'll end up looking like
"scripts": {
    "build": "jshint **.js && babel --args && lesscss && somethingelse"
}
 
@Retsam "complicated" here means "more than one transform per file"
 
"scripts": {
    "jshint": "jshint **.js",
    "babel": "babel --args",
    "lesscss": "lesscss",
    "build": "npm run jshint babel lesscss"
}
 
transpile + minify + test is complicated enough to break their system
 
@BenFortune more like this ^
@ssube not necessarily, linux has pipes
 
3:47 PM
"scripts": {
  "lint": "jshint **",
  "build:css": "stylus assets/styles/main.styl > dist/main.css",
  "build:js": "browserify assets/scripts/main.js > dist/main.js",
  "build": "npm run build:css && npm run build:js",
  "prebuild:js": "npm run lint"
}
^ Here's a somewhat complex example from a different article by the same author
 
@ssube issue filed
 
Can you create a watch task with NPM?
 
@BenFortune With nodemon, sure.
 
@Retsam I mean as part of a build process, not to run a server.
 
i'm derping with 6 lines of form validation jquery. does someone mind taking a glance? jsfiddle.net/a9esL7f7/1
 
3:50 PM
@WoodrowBarlow Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
@WoodrowBarlow Yip, looks like jquery
 
@Cereal is this not the room for jQuery? sorry.
 
It is, people here just love to hate on it
 
I was just poking fun that you asked us to look at something without specifying what was going wrong
 
3:53 PM
@WoodrowBarlow What is setCustomValidity? It's not native to jQuery and you have no plugins included
 
@BenFortune Yeah. You can do nodemon --watch less/*.less --exec 'npm run build:less'
 
@WoodrowBarlow I'm like 540% sure you want [0] not .get(0)
5
Q: How to show setCustomValidity message/tooltip without submit event

AlexxandarI'm using forms basic validation to check if email is correct format, then the data is sent by Ajax where it checks if email address is already in use and did the user select country/state or left default values in select boxes. But for HTML5 form validation to be done submit event is needed, u...

 
@Cereal Works the same
 
Oh, what's the function that gets a jquery object?
.eq?
haven't used jquery in forever
 
3:55 PM
@Loktar Oh wow
 
@Cereal [0] doesn't work either.
 
Why have I never seen that before?
 
if the problem isn't clear, it's supposed to override the browser's default validation tooltip
normally it would say "Please select one of the options." and I want a custom message.
but i'm no longer seeing any message.
but it does seem to be preventing submission when nothing is selected.
 
@BenjaminGruenbaum Do you use akin to Either in Swift?
 
@copy BenjaminGruenbaum is afk.
 
3:59 PM
I know, in paradise
 
!!afk leaving work
 
@AwalGarg wrote up an initial reply to your issue
 
just completed reading. most of the things sorted out.
 
@WoodrowBarlow .get() gets a non-jQuery object (the plain DOM element). if .setCustomValidity() is a jquery pugin, then you need the jquery object. Replace .get(0) with .first().
 
!!afk tsunami
 
4:07 PM
@Luggage setCustomValidity is a raw Javascript function. thanks for the tip, though (i tried it anyway, got unexpected identifier).
 
user1596138
@Loktar We got Thursday off instead of Monday :P
 
user1596138
I have been out of town since Wednesday
 
@WoodrowBarlow jsfiddle.net/a9esL7f7/2
> When the reportValidity() method is invoked, if the element is a candidate for constraint validation and does not satisfy its constraints, the user agent must: fire a simple event named invalid that is cancelable at the element, and if that event is not canceled, report the problems with the constraints of that element to the user; then, return false. Otherwise, it must only return true without doing anything else.
 
@Loktar have you read my ping about canvas circumferences?
 
@Loktar aha! thank you.
 
4:09 PM
@afonsomatos no, let me check
@WoodrowBarlow np
@WoodrowBarlow an answer in that SO link led me to that actually so I can't take full credit
ping ping ping.
@afonsomatos this is the only thing id change, 0.2 rather than 0.01
and then added a .closePath()
er I guess you had 0.001, which was making the stroke really dark
 
Why do I need to close the path? Doesn't initializing a path with beginPath, clears the previous paths?
 
user1596138
Oh @Loktar I see you!
 
user1596138
I thought you were coming back tomorrow haha
 
Does angular have a way of running a function as soon as the application starts up and before anything else?
 
@copy yes, I implemented Either a few times although it was a bitch because when I did it there was a compiler bug where it'd tell you it doesn't have the low level instruction for Either yet
 
4:18 PM
@afonsomatos because if you use like 0.2, or 0.1 it wont close exactly on the start
but it stops you from having to do 0.001
also since its a circle I assume it should be a closed/connected path anyway
oh and you're right stroke will clear the path
 
@Loktar If I use 0.2 or 0.1 the "circumference" is not going to close correctly, as in my end there is a tiny tiny hole.
 
but closepath will connect the beginning and end
 
@BenjaminGruenbaum Cool, I guess I'll also do that then
 
@copy by "low level instruction" I mean it'd spit out an error for enums with multiple dependent generics. It probably works now though.
 
@afonsomatos yeah exactly thats why I added closePath :P
 
4:20 PM
@copy in retrospect I should have just used enums for everything, you probably should too.
 
user1596138
When you walk into work and your accounts are disabled...
 
@Loktar Yeah but the connection between the beginning point and ending point will be a straight line, not exactly part of the circumference.
 
user1596138
> Am I getting fired?
 
@afonsomatos yeah true
 
user1596138
lmao
 
4:21 PM
@Jhawins Hate that feeling
 
lol what @Jhawins ?
 
@BenjaminGruenbaum So then you only use pattern matching?
 
user1596138
@SterlingArcher lmfaoo dude that's awesome
 
Or do you implement map etc. for all Enums that you use
 
user1596138
@Loktar Just the MSDN stuff haha
 
4:24 PM
ohh lol
 
@copy I don't, I used either, but in retrospect I would have used a lot more pattern matching and a lot less generic Either.
It's more to write but it's hard to get wrong since pattern matching is always exhaustive in this case.
So overall - more code but less defects - definitely in favor of that over an Either<T, S> or Result<T> with NSError.
 
How is Either not safe?
 
/me wonders how benji and copy can talk about 200+ languages without their brains exploding
/me stops wondering and gets back to work
 
Unless you do silly things
 
user1596138
@Loktar I almost filled your desktop with Rebecca Black photos while you were gone, it was so tempting
 
user1596138
4:28 PM
But you weren't getting back on Friday
 
cbg @Benjamin :p
 
@JonClements hey
 
Sooo how is life?
 
rechecks the room title to see if he somehow ended up in Python
 
LOL - nope... had left this tab open - just saying hi to @Benjamin....
 
4:30 PM
 
Last week I had a case where as would fail with error: 'AnyObject' is not convertible to … and as? would fail with conditional downcast to CoreFoundation type '…' will always succeed
 
@JanDvorak hi
 
\0 // null character
 
\\0
 
4:37 PM
 \\0//
  | |
 // \\
 
!!> dothis() ??!??! throw new Error();
 
@uselesschien "SyntaxError: expected expression, got '?'"
 
go home C++
 
user1596138
Err.... Oops
 
4:40 PM
/me checking my heart ↓
 
@Jhawins "SyntaxError: missing ; before statement"
 
user1596138
@DrogoNevets you still working for the road service company? Get to go to any of the recent GPs?
 
@DenysSéguret i can't believe i am saying this but the stuff works in IE but not chrome woot
 
That's not usually a good thing.
 
@Abhishrek flex ? No wonder. Many things in the flexbox model are broken from time to time when the browsers fix their implementation
 
4:47 PM
lol
yeah it works on ffox too
 
morning
 
so chrome is at fault here it seems
 
@SomeKittens hi
 
!!afk
 
chrome does flex. i can't speak for how completely,b ut it's worked for me
 
4:48 PM
Is there a tool which tells me how the browser calculated a property value in css ?
like an explanation ?
// devtools wont work.
 
@Abhishrek You mean with calc() ?
 
no if i do flex: 1, height : 100%
or anything i wish to know how browser came out with the height at the end, what it used as reference
more like "single step" css
 
good luck with that
 
@Abhishrek 1) Use javascript 2) Enjoy life
 
that doesn't help
 
4:51 PM
@afonsomatos cant do animations in pure js
 
right
 
on a slow decice
 
sure you can, but css is better if it supports what you want
ah
 
Transitions and Animations are never gonna be a js forte, then me looks at canvas :P
 
user2620028
@jhawins want to make the meanest shifter cart evar? ebay.com/itm/…
 
4:59 PM
I hate bezier curves
 
beziers are awesome
 
s/awesome/not cool
 
if i swallow magnets will i become attractive
 
Hmm, it doesn't tell me which cases are not matched. error: switch must be exhaustive, consider adding a default clause
 
@uselesschien u forgot gravity m8
 
5:03 PM
u spoil fun 'gain may8
 
In the moon there is no magnetic field, so magnets don't work there.
 
user1596138
@HatterisMad lol put it in a tuk tuk
 
user2620028
@jhawins this is why i talk to you
 
user2620028
 
are you trash???? because i wanna take u out
2
 
user1596138
5:05 PM
^ put that one on the back of a canoe with a prop
 
user1596138
Idk lol. I wish I had a bunch of engines laying around
 
I found one or two smallish DC motors the other day
trying to come up with a use for them
 
..
 
buy your own vibrator you horny nerd
 
@KendallFrey lol, i am pretty sure you need it more.
lmao
 
5:12 PM
abhishrek is already pretty crazy to be in need of a vibrator
 
!!13yogirl
 
@KendallFrey That didn't make much sense. Use the !!/help command to learn more.
 
what is irritating me is I am getting a spam mail from someone constantly for the past week, and gmail is not marking it spam for me even though I have marked the past ones spam manually.
 
posted on July 06, 2015 by Alex R. Young

NewSprint NewSprint (GitHub: rodati/newsprint, License: MIT, npm: newsprint) from Rodati is a command-line Node tool for generating a mobile-friendly email based on Trello cards. I use Trello for project management, and for a while I archived each week (or sprint) into a list so it was easy for management

 
Does io.js work with electron the same as with node.js?
 
5:22 PM
@corvid I'm sure it works with positron and neutron, as well as proton.
 
What about up-quarks and down-quarks?
 
strangelets, even
 
@corvid quacks? Absolutely
 
and micro-black-holes
 
.contents should scale all height shouldn't it ?
okay fixed that now .scroller isn't :-/
 
Check what I did jsfiddle.net/42uLgqv9
So cool
 
@Zhegan hi
 
@AwalGarg hi
 
OMG
 
5:36 PM
:D
 
19 secs ago, by Zhegan
@AwalGarg hi
always good to backup
@Zhegan hey I thought you don't speak :/ I am sorry
 
bu why do you want to backup it?
 
just in case it gets removed by some mystical force of nature.
 
@afonsomatos pretty
 
a mystical force prevents you from making backups on this level
 
5:38 PM
sounds legit
 
@Zhegan :D I can't stop myself from asking: how come you are always here but so less number of messages? (sorry if you don't like this question)
 
That's ok. I just don't talk much :)
 
ah cool. I thought you were zirak (a regular here)
your avatar is really cute :D
 
thanks
 
!!orly
 
@afonsomatos reminds me of jsfiddle.net/rlemon/gbc7fjay/2
 
user1596138
@afonsomatos Interesting that you name that drawPolygon ;P it draws shapes with X sides depending on argument 4
 
@Jhawins Yeah I know I wrote it
@rlemon that's really cool :D
 
also, looking over old fiddles... I forgot I made this one jsfiddle.net/eknw879o/6
 
Oh damn... I'm really close to 10k
 
5:44 PM
@Jhawins wait.. why is it interesting?
 
user1596138
@afonsomatos Fucntion draws shapes with X sides depending on arguments... You named it DrawShapeWith10Sidesand then passed it 10 for the sides argument lmao.
 
user1596138
Idk I laughed
 
user1596138
So like drawPolygon(..., ..., ..., 3); draws a triangle xD
 
A polygon is a variable number of sides... a decagon is 10 sides.
 
@Jhawins But I named it drawPolygon oO
 
5:46 PM
@afonsomatos I like your function. generates almost the same figure whether the number of sides is 36 or 360.
 
user1596138
I wish I could say I was just trolling...
 
@Jhawins Try harder
 
user1596138
Somehow I thought polygon was decagon..
 
user1596138
!!afk back to work
 
@AwalGarg There is no real workaround. That's because the pixels get so close that it looks like a circumference, try to increase the radius.
 
5:48 PM
@afonsomatos I'm seeing an incomplete polygon on 12 sides, 16 sides, and 21 sides in Chrome on Windows; can you reproduce that?
 
@apsillers I can.
 
@apsillers Yeah, let me fix that
 
@afonsomatos it's ok. the function itself is not at fault :)
happens at 30-34 sides as well btw
 
@apsillers @AwalGarg jsfiddle.net/42uLgqv9/1
 
nice
 
5:52 PM
lol I thought vertex was vertice in english
 
@afonsomatos nice work :) jsfiddle.net/42uLgqv9/2
 
vertices is plural
1 vertex, 3 vertices
 
@Luggage oh ok thanks
@apsillers haha looks cool
 
ugh. Is there an easy way to load fixtures using fibers rather than promises?
 

« first day (1724 days earlier)      last day (3228 days later) »