« first day (1717 days earlier)      last day (3234 days later) » 

8:01 PM
Those who are using regenrator
got damn boost in performance
 
Aquariums are fun.
 
@rlemon how's your home?
 
https://jsfiddle.net/n2u9y6xk/
Why does celsius to kelvin not calculate properly?
 
Why do you call them tanks then, @rlemon?
 
8:05 PM
@FlorianMargaine no I went to the aquarium
 
@BenjaminGruenbaum messy. Still unpacking.
 
A tank full of fish would never be a very effective instrument of war.
 
!!afk mowing lawn.
 
@rlemon took me like 5 months last time
 
8:06 PM
Right. A tank is called "aquarium" in french.
 
@FlorianMargaine yeah, but how often do the French use their tanks?
 
@ssube last I heard the war was economic
 
wars usually are
violence is great at solving problems, it just doesn't scale (at all)
 
@Tahmid dat array... have two conversions - from input to internal and from internal to output
 
8:08 PM
And daesh has a goddamn business to fill in the pockets
 
or at least don't look up the output element as many times as there are input scales!!!
 
 
I don't understand
 
Your array is massive. It's n^2 conversions where you could have 2*n instead
 
That's like the whole point of SI units.
 
8:12 PM
those are not SI
 
hey guys
wss up
 
instead of having km to mm, convert km to m, then m to mm
 
what is this regrex really checking for
/[0-9]+,[0-9]+
 
@JanDvorak no, but SI does what you're suggesting
 
8:13 PM
@AlexanderSolonik some digits, a comma, and some more digits
 
@AlexanderSolonik one or more digits, a comma, then one or more digits
 
nice ;)
 
@ssube well, the point of SI prefixes is that you convert by moving the decimal point
 
ohh, and a slash at the beginning, i think.
 
thanks folks , ur the best
make that your*
 
8:13 PM
Oh
 
@Luggage or a missing slash at the end
 
gigameters to terameters is /1000
 
You can edit. just hit the "up" key.
 
but for people in countries with stupid units, like murka and england, we can convert lbs to grams, then grams to stoneds
 
8:14 PM
that's fast as fuck
 
Hmm..
 
In the meantime, the whole world is stuck with computing time in sexagesimal...
... or resorting to kiloseconds
 
How can I make it so it converts both ways?
 
one array for input to internal, one for internal to output
J can invert most functions for you, but Javascript isn't nearly that smart.
 
They're all linear functions
Should be easy
 
8:25 PM
store each scale as (offset, scale)?
 
What android ui does the "tab" section represent:
 
user4433485
Hii! can someone tell me what the difference is between console.log and document.writeln ?
 
the former doesn't delete the entire document if it has already loaded, to say the least.
 
Is it: "Sliding Tabs" or "Horizontal Paging"
 
it can also display more than just strings and it doesn't bother users should you forget one in production code
 
8:28 PM
i figured it out: treat a modal div like a target
 
I think its more the "sliding tabs"
 
@JanDvorak unless IE :(
 
I thought IE9 already fixed that?
 
I think < 10 throws if you console when the debugger isn't open
maybe?
 
Oh, well. But I'd still rather throw than to overwrite my page
 
8:31 PM
yeah, you should never use writeln
 
why can't they add a control bar to chat?
 
Have your minifier remove debug code
Closure Compiler can do that
 
can Closure remove doc.writes?
 
@copy we just use slf4j style logging and can turn the log level on/off at runtime
 
8:32 PM
Am I correct?
 
warn/error level messages get sent to the server
 
@JanDvorak You have to use a configuration variable which can be changed by passing an option to CC, /** @define */ var DEBUG = false
And then wrap functions
 
Please explain your answers. If OP doesn't know about an if statement, a ternary condition is mighty advanced work. — Sterling Archer 37 secs ago
code dump D:
 
And then dead code elimination removes it
 
Next step: have Closure also eliminate any code that's too old
 
8:40 PM
Guys, if you have a key named 'title' for example, you do obj.title, but what if the key is content:encoded ? how do you get that?
 
get a better key. or use square brackets
 
can you encode object property names?
 
why not?
 
encoded with zero-space joiners
obfuscation to the max
 
@JanDvorak How excactly with square brackets? like obj['content:encoded'] ?
 
8:46 PM
that
 
gives me a undefined
nvm
 
@KendallFrey this exists
 
Unrelated fun fact: Unicode escapes are a valid part of an identifier, so this works:
!!> var o = { a: 4 }; var \u0062 = o.\u0061; b;
 
@Zirak "ReferenceError: assignment to undeclared variable b"
@Zirak 4
 
sorcery
 
8:53 PM
I taught him everything he knows
 
@Zirak have you read The Tangled Web? Covers all sorts of things like that.
For instance, in IE, backticks are also valid for HTML attributes
So this would work:
 
@SomeKittens Thanks, I have AIDS now
 
<img src="http://mysite.com/img.jpg``onerror=`alert(1)">
 
what... what is that
 
8:59 PM
@SomeKittens Seen that it existed, grouped it together alongside books like "Hacker's Handbook" as something which looks cool, but will likely ultimately disappoint me
 
@Zirak you mean like a woman with personality
 
!!afk going home to get mountain dew drunk and eat a breakfast pizza
 
That sounds lonely
 
I had pizza for breakfast recently
 
Can I come
 
9:00 PM
yeah babe
 
and scrambled eggs for lunch
 
There're XSS cheatsheets which cover more ground in a 400kb image file than these books which're hundreds of pages long
 
@SterlingArcher I don't know, can you?
I know I can
 
:sigh: may I come
wait
 
9:00 PM
god dammit kendall
 
You have 30 seconds to phrase your question non-sexually
 
@BenjaminGruenbaum oooohhh, blesh gave you the slap-and-kiss. You owe him.
 
I LIVE LIFE ON THE EDGE KENDALL YOU KNOW THIS
 
on the edge of coming?
you must have bright indigo balls
 
They made a movie after me
50 Shades of Blueballs
 
9:03 PM
They've made quite a few movies in the last 20-odd years
and the sequel, about your mom - 50 Shades of Blue Waffles
 
@KendallFrey Are you trying to get to the point where if somebody assassinates you, people will will continue on with their lives feeling as if a slight but persistent irk has been cleaned of them?
 
@Zirak Yes.
 
You're doing so-so
2
 
but remember, it's not an assassination unless you're important
@Zirak I'm also doing your mom.
...Mondays
 
That's very wrong.
The former. Dunno about the latter.
 
9:06 PM
My son would do better
And he's 5 days old
4
Step your game up, @KendallFrey
 
@Zirak I chortled
 
Depending what you mean by "game", it's already up
 
also, you just lost it
 
yep, down again
 
dang
gottem
 
9:07 PM
son
 
@KendallFrey how many up close Moose experiences do you have
Car impacts, pranks, kicks..
 
Does seeing it in a zoo count
 
then 0
 
9:09 PM
Who puts a moose in the zoo. Do americans put deer in the zoo?
 
He's planning a moose experience later tonight.
 
No, we rob africa
 
it wasn't a zoo zoo, it was a pen in some park or something
@SterlingArcher how backwards is that lulz
 
> feel my turkey neck human - Moose, probably
 
We have "farm zoos" in France where you see animals like pigs and stuff
 
9:10 PM
we call them petting zoos
 
@KendallFrey I was hoping nobody would notice the horrendous potential badness of that sentence
 
@SterlingArcher don't worry, nobody can see anything but my racism
 
I know you don't like Nova Scotia but you gotta let it go man
 
I just set myself up for a bad joke, but I think I'll refrain
 
You're the bad joke anyway
 
9:12 PM
@FlorianMargaine real talk
What would you do if your baby looked 100% like Kendall
 
Kill him
 
I had a worse answer than that, lol
 
@Zirak lol
 
lol what
 
9:13 PM
"Masturbate to him"
 
Kendall, of course. Then he wouldn't look like him anymore.
 
oh god
 
you asked
 
instantly regret this question
 
I have that tendency
 
9:14 PM
@KendallFrey on how many lists are you? More or less than @Zirak?
 
I'm so exhausted
 
What lists?
 
@FlorianMargaine The baby, or Kendall?
 
I need to sleep im sorta delirious
 
@SomeKittens see transcript.
 
9:15 PM
I have a test in an extra curriculum course I took and I deeply regret tomorrow (Ageing).
 
!!s/r(?=i)/c/ 24171304
 
@KendallFrey I need to sleep im sorta delicious (source)
 
Turned out only being about old people, lots of boring articles, could have been taught in a day.
 
> Actually, 99% sure Bluebird's behaviour is right. Please cite a reference for your "as per the spec" statement.
 
9:16 PM
Ima make a babel fork, with one modification. s/l/s/g
 
@KendallFrey I'm ok with that actually
 
@Abhishrek ping me when you see those
 
@BenjaminGruenbaum yes boss.
 
btw I can do await Promise.all([p1,p2]) right ?
 
9:19 PM
Yes
 
you scared me for a moment there.
 
Which version do you guys like better: Left or Right?
 
#2
well, neither, actually
 
Why #2 and why neither?
 
#1, perhaps
 
9:23 PM
Why?...
 
#2 because I thought the thing just under was to be tab controlled as well. If not, #2 is bad.
 
#1 looks decent if the top thing is a summary and the tabs are chapters
not sure what the black rectangles are, though
neither = too many elements existing at the same time with unclear relations.
 
@Jan You are partly correct. On #2 the little info under the tabs is 3 "Did You Know" facts that you can swipe through
The black rectangles represent which one you are on.
 
below the main content, then, and separated visually?
 
9:27 PM
@benlevywebdesign none
move the icon up
actually fuck it
you can move the whole text section as a twitter app style scroller
wehere the first slide is NOTHING
when u swiipe you get them
thus giving the image more space to breath
move golden gate bridge to to slightly higher
amnd verticially align the icon to explore with it
or maybe top align the icon with the arrow
using a material icon
and use the scrollable header
to squeeze the header when scroll up happens
 
hey gusy whts up
have a look at this small regrex function
i have marked my difficulty
 
@JanDvorak so at the bottom? The 3 "did you know" facts would go with the landmark info when you changed sections in #2. In #1 they would stay all the time.
 
whats the $1 and $2 for ?
 
@benlevywebdesign #1 would be fine for a summary
 
9:32 PM
@AlexanderSolonik look at the "replacement pattern" part of the documentation
!!mdn string replace
 
thank you genious ! :)
 
i personally feel returning bloburls cross platform is a much better bet, right guys ?
 
m59
If you add a script to /usr/local/bin and you want to add another script it can call, where does the other script belong?
 
@Jan What elements do you like?
 
m59
9:38 PM
or should I do /usr/local/bin/foo /usr/local/bin/foo-thing and have foo execute foo-thing like that?
 
@m59 You are not being very clear, what exactly do you want to do?
 
m59
Not sure I can put it any plainer.
 
@benlevywebdesign the tips area shouldn't separate the tab list from the area it controls, period
 
^^
 
9:40 PM
In #2 the "did you know" or as you call them "tips" is part of the landmark info section
 
m59
/usr/local/bin/foo
  if (some arg)
    foo-thing <-- how should foo know about this script?
 
as in, only seen on one tab?
 
it would only be there if you are on landmark info (for #2). Yes.
 
Haven't we, as an industry, outgrown carousels yet?
Ya know who likes carousels? Kids!
 
m59
@afonsomatos Another way of putting it is that when you install a package, its executable is under /usr/bin and the other files it may need are under /usr/lib.
 
9:42 PM
@monners and creepy adults.
 
m59
Doh, so I guess foo-thing belongs under /usr/local/lib ?
 
Why do you assume it belongs under /lib?
 
phuck
 
m59
I dunno. I'm a linux noob. Hence my question.
 
9:46 PM
@phenomnomnominal I assure you, my intentions were nothing but innocent
 
@m59 Scripts in ./bin can be executed within the terminal by just referencing the name (no need absolute path)
 
m59
you don't understand my question =D
 
as it's just like another path, files that are referenced inside the script are relative
so in that case foo-thing would be inside the same folder as the script
 
m59
That makes it standalone, which isn't really what I want.
/usr/local/bin/foo
/usr/local/bin/foo-thing <-- this doesn't need to be here
that's just clutter
 
so specify the whole path
 
m59
9:50 PM
to where =D
 
to where the file you want is
 
m59
I'm asking where it ought to be.
To which my assumption is /usr/local/lib/foo/foo-thing
 
probably in lib, but most scripts are standalones
but lib is the place you want
 
m59
Well, I was mostly curious. Not positive what I want to do. I'm just practicing shell stuff. I was thinking of having the install like this:

    curl -o- raw.githubusercontent.com/m59peacemaker/my-shell-thing/v1.0.0/… | bash
That would then download the main executable and put it in /usr/local/bin. Then I just need a way to auto-remove it, so I could make an argument to that executable that executes the uninstall script.
 
@JanDvorak How would you layout the "tips" and Tab section
 
m59
9:58 PM
I guess I'll do the easy thing and put it all in the same file.
@afonsomatos thanks for the chat ;D
 
yeah that's probably the ideal
and remember that there are different bin folders
/bin, usr/bin, usr/local/bin
 
m59
yep, yep. There's a whole argument about not using local, but meh.
Docker-compose does it, so it can't be that bad, even though docker is a disaster.
 
@JanDvorak for #2, maybe if the "DYK" facts or "tips" background didn't go full width it would look more like its part of that section?...
 
did you just pull me out of bed for this, twice?
 
...walks away
 
10:12 PM
i've been thining about trying out docker. what do you hate about it?
 
m59
Don't get me wrong, it is a total game changing winfest in what it accomplishes
I've like... seen the light and such.
 
but you have to sacrafice a few kittens?
 
m59
It's the way it's done that is the problem. Anti-unix philosophy.
 
all my projects are single server irhg tnow, so i haven't realy looked into it seriouly
it's faster to spin up ubuntu than to investigate docker
but it's on my list
 
m59
To me, it's just so awesome that even single servers are guaranteed to have every little bit just right.
Nice to lock down the node version and all that, independent of my machine.
 
10:15 PM
no doubt, but when i'be trying toget it working RIGHT NOW, i already know the manual process
 
m59
It was HORRID getting it figured out.
 
the same ol' dilemma..
 
m59
I hired a consultant for $200 =D
 
@Luggage OI
 
What? it's worth it for simpler deployment
 
10:19 PM
Also, Docker is pretty nice. Deterministic servers for the win
 
All hail docker
 
m59
@Luggage I'm still green so take this with a grain of salt, but I'd stay away from Docker Compose
I finally learned it, got everything setup with it, then hated it and had to set it all up again using just docker commands. A little more verbose, but overall a nicer experience.
 
rgr
 
Hi Everyone!
 
m59
hello
 
10:23 PM
hello
 
So, what am I missing these days? Has everyone tried Atom 1.0 and seen Githubs hilarious video?
 
if you have a <tr> styled to hidden. and you want it to style to BLOCK when ALL 3 inputs on a page have a typed value in them. What is the correct way to fix this this Jquery call to work properly: $('#cashg','#cashb','#cashbst').val().length !==0 function(){do_something};
 
No. You'll need to check .val() on all 3 separately. It only works on the first element in a set.
Also for 3 seelctors, put them all in one string.
 
Nice question. It might be possible in Jquery. However, have you tried writing a separate non-jquery function that keeps track of inputs?
 
10:39 PM
No, it seemed like it should be functional under a single Jquery multiple selector idea. I tried working off of the idea suggested here http://stackoverflow.com/questions/9173533/inputnotempty-is-not-working but no luck in getting it to work right
 
it could be, but .val() works on one element according to the docs, so you need to loop over the list of element you want
 
@Luggage ok, i'll go try it from that approach and see if I can get it to work by checking each separately.
thanks
 
you can still use a single selector, just loop over the results. jQuery comes with .map() but really you want something similar to JS's Array.prototype.every()
 
I'll have to look into that as I haven't used it before.
 
var hasValues = true;
$('#cashg, #cashb, #cashbst').each(function(index, element) {
    if ($(element).val() == null) hasValues = false;
}
 
10:45 PM
String.prototype.tobool = function(){ return !!+this; }
 
or .length === 0 or however you are are testing..
 
11:12 PM
@Luggage couldn't quite get the suggested method you provided to trigger right, however your testing each singularly did. I ended up with this: *** if ($('#cashg').val().length !== 0 && $('#cashb').val().length !== 0 && $('#cashbst').val().length !==0) {$('#pom').css('display','table-row');} ***
Thanks for the help.
 
Should I use double equals instead of triple as indicated here ?w3schools.com/js/js_validation.asp
 
@StevensHaen no, never
also, w3schools is a bad resource in general. Stick with MDN
 
Agree on both points.
double equals is a 'lose' equality. It will coerce types into other types if it makes things equal. 1 == "1" will be true where 1 === "1" will be false.
This may SOUND desirable, but it's not. It's better to be strict about types as early in your code as possible.
 
I have to validate a form with Vanilla JS and am sort of stuck. There are specific requirements, I can't just lay out code
 
but usually in javascript you're working with a mishmash of strings and other types
 
11:21 PM
That shouldn't matter.
 
Are your requirements so strict as to require double equals?
 
Vanilla, jQuery, whatever, none of that matters for simple comparisons.
 
Well, actually doubles appeared on one of my reviewed assignments, but I think he just got confused
 
Can we call ES6 vanilla now, or do we have to wait for the browsers?
 
i consider it vanialla, but I don't know the popular opinion
I know that this channel is way more ES6-happy than the general JS population
 
11:25 PM
true
 
How about we just call vanilla whatever'll run on all of the latest browsers (polyfilled/transpiled/whatever)
 
I feel like I'm the only one in here who hasn't felt the need to dive into ES6
 
@monners if it's polyfilled/transpiled, it's not really vanilla, is it?
 
@nick you and every one of my 'real life' friends that programms JS.
I'm the only ES6 user I know personally.
 
@SomeKittens Well, it's emulating vanilla, so... really depends how meta ya wanna get
 
11:26 PM
TypeScript is not vanilla
 
@Luggage thank god I thought I was a loner
 
@SomeKittens I was referring to shims that allow you to use the ES6 syntax
React's transpiler for example
 
React's transpiler === babel
now, at least.
i'm using react in a new project for a client. it's completely overkill, but I've been wanting to play with it for real.
also, i don't bill the extra time i take learnign new tools, of course.
 
So tempted to get in on the ErgoDox project on indiegogo
 
dunno what the deal with the ergodox is
it's expensive and unaesthetic in my opinion
it's got a big following though apparently
 
11:33 PM
i like the better use of thumb, but I won't be getting one becasue it'll jstu amke it more difficult to switch keybaords
 
ah good point
yeah i have a HHKB and while it's nice, the number keys and a lot of the symbols are in non-standard locations
so it's a pain when switching to regular keyboards
 
HHKB <3
I have a Poker 3, I love it as well
want to try out an hhkb
 
if you do you should definitely try to get the JP version
 
obj.addEventListener("focusout", function () {} doesn't add the event in Chrome inspector, what could be at play?
 
@monners oooh, that looks nice
 
11:38 PM
ok wait maybe not, if you use the backspace key a lot the JP version is gonna be frustrating
@StevensHaen did you forget the right parentheses or is that just a copy/paste error?
 
The parentheses is there, I mean in real life
 
ok
did you log the "obj" object and see if that's the right one?
 
It's null, mhm
 
!!> typeof null
 
@SomeKittens "object"
 
11:42 PM
@SomeKittens Yeah, but I've already backed the Model01 on kickstarter, so i'm torn between getting used to one ergo design and then another
 
I'd need two - for work and home, and I already have a mechanical keyboard in both places.
 
So do I, but I want to try an ergo before I commit to getting a second one for both places
And if the model01 turns out to be as good as I hope it'll be then getting the ergodox would be a waste of money
But it won't arrive until April of next year at the earliest
 

« first day (1717 days earlier)      last day (3234 days later) »