« first day (2754 days earlier)      last day (2191 days later) » 

user1596138
9:00 PM
Oh jeez it's just a bot that posts 10K user notifications to low rep users
 
that's when pings no longer work
 
@KendallFrey oh crazy, that's so weird
 
user1596138
 
had no idea heh.
 
@SomeGuy not sure what's supposed to come out of this article?
 
9:00 PM
there are about a million total chat users
 
user1596138
Make a chat flag bot
 
@KendallFrey that seems wrong somehow
 
user1596138
Since apparently we are allowed to do that
 
user1596138
I'll get to 10K this year and do it lol
 
9:01 PM
That's the last page of user rankings on SO
 
A bot that publishes flags to low rep users?
 
@FlorianMargaine For me, the feeling of redemption was enough :P
 
user1596138
@hilli_micha Yea that's what Natty does. Exposes high rep functions to low rep users
 
ehhh nm, only counts at 200
so yeah I guess there would be WAY more users under 200 rep
 
Over half of chat users don't have enough rep to chat
 
9:02 PM
(I haven't been a huge fan of how much processors do under the cover, even below the ISA level)
 
so 1 million total users, 90 active in the last 10 days
 
user1596138
There would be no sense whatsoever in a chat flag bot. I was joking
 
those are still not great numbers
 
@Jhawins I think it'd certainly be interesting.
 
@SomeGuy I mean, it essentially says "CPUs don't work like C, new CPUs should be massively parallel"... okay?
 
9:02 PM
If not just outright funny
 
user1596138
@hilli_micha Well the bad messages would disappear right away. We wouldn't be allowed to automatically persist them in another room via screenshots or anything
 
user1596138
And the bogus flags would be... Bogus
 
Less than 20% of chat users have ever posted a message
 
it mostly reads like a rant against C tbf @SomeGuy
 
user1596138
But yea, might have a hilarious transcript for the room lol
 
9:03 PM
@KendallFrey heh weird
 
user1596138
@Loktar those stats are garbage
 
user1596138
See Online users
 
freenode Avg. Users: 88107
 
user1596138
There are 15 pages of 20
 
user1596138
So at this moment it says there's 300 online
 
9:04 PM
but this also isn't counting all of SE I guess
since SO has it's own chat.. which is so dang weird
 
user1596138
Oh Online isn't Active>?
 
if you click on users, then click on "recent", doesn't that indicate that there's been way more than 90 active users in the past 10 days? 20 per page, and at page 15 it's still only in the last 6 hours
 
user1596138
Active has 5 pages of 20. SO yea. <100
 
user1596138
Wtf does "Online" mean
 
@FlorianMargaine To a certain extent, yeah, it did. I think I still like it as a means of provoking a discussion on how to improve this situation in the future, though
 
9:04 PM
like the arqade chat was part of the SE chat network
so I had to have 2 diff tabs open to chat which was annoying
but like html/css room and JS room are in the SO chat network
 
@SomeGuy it's not really bringing anything to the table
 
however I doubt the SE network chats add that many users
 
user1596138
> users who are online, most-active users first: ~300
> users who have chatted recently, most-active users first: 88
 
user1596138
This makes no sense at all. Those are the headings it provides for Online and Active respectively
 
yeah, it's innacturate
err, wrong
 
user1596138
9:06 PM
Ohhh no dude. Users who have chatted
 
So, if we see rooms where:
Offensive stuff that violates our CoC isn't flagged
Offensive stuff that violates our CoC isn't just allowed (however tacitly, through nobody flagging it), it's encouraged
People are berated, kicked or otherwise harassed for holding a room's culture to our code of conduct
We're going to shut the room down permanently.
 
user1596138
Not users online that haven't chatted? That many lurkers?
 
yeah, recent shows users who've made posts recently.
 
@FlorianMargaine Haha noted. I'm gonna keep hoping, though
 
so, so, fun.
 
9:06 PM
the 6 hours ago says they made a post 6 hours ago
 
user1596138
@FlorianMargaine If they shut us down apparently they may as well shut off chat.stackoverflow
 
@FlorianMargaine yeah :(
 
@SomeGuy @FlorianMargaine The article is fine and dandy, it makes you think about some things, but what language is low level in his regard? The CPU doesn't execute C, it executes assembly, so is he saying asm isn't low level? No. Is the CPU microcode low level?
 
I will miss you forever if we go @FlorianMargaine
and one day in my 80's, so like 5 years from now I will fly to France and say hi
 
@Zirak I guess Verilog/VHDL might be.
 
9:07 PM
5 mins ago, by Some Guy
(I haven't been a huge fan of how much processors do under the cover, even below the ISA level)
 
He calls for a different CPU architecture than x86, which is great
 
@SomeGuy look up FPGAs
 
I think what I'm hoping for is that exactly. More open architectures, more control
 
FPGAs are fucking great
 
@Loktar 5 years? more like 2
 
9:08 PM
hah.
 
user1596138
!!urban fpga
 
@Jhawins No definition found for fpga
 
Fucking Programmable Great Arrays
 
^
lmao
 
@Loktar No they're Fucking Probably Great Aye?
 
9:08 PM
They are the closest thing to fucking great other than real great hardware!
 
Make GPUs Great Again
 
Great processing units for all!
 
@Zirak yeah, and there has been a few new ones, even an open source one
so... the article isn't really bringing anything to the table, it's just ranting against C.
 
@FlorianMargaine OpenRISC?
 
9:10 PM
@SomeGuy RISC-V iirc?
> RISC-V: The Free and Open RISC Instruction Set Architecture
yeah, RISC-V
(it got some exposure during spectre/meltdown)
 
idk what this means but it looks cool
 
it does, it's nice that they empower electron devs to more easily deploy their updates
it's usually a super pain to provide updates for desktop apps, so that's nice
 
I wish I had an excuse to make an Electron app.
 
same
 
So I can assault some unsuspecting user's RAM.
 
9:24 PM
Could you do something similar to electron that wouldn't be super shitty on resources?
I'm not too sure what goes on behind the scenes with electron
 
Magnets.
 
How do they work?
 
isn't there a video for that?
 
user1596138
> Note: We're offering this credit because you build amazing things on DigitalOcean. Mining cryptocurrencies doesn't fit that criteria and will result in removal of credits.
 
user1596138
9:31 PM
Lmao good callout
 
does it make sense to put a performance evaluation inside a unit test? Like this method passed if the result was 90% or greater...but fails otherwise
or are unit tests supposed to only test that the method actually works, not how well it works
 
@erotavlas my non-expert opinion is keep all of the functionality tests in your unit tests, and test for performance somewhere else. that way you only perf test builds that actually pass your unit tests.
 
you can instrument your unit tests
with timing
and verify it hasn't degraded between tests
I like doing that
 
even if some change caused a shitty performance of a method (even though the method works flawlessly)....do we still want that to go to build?
 
that way you only have a little code in your setup, not the actual tests
 
user1596138
9:35 PM
@erotavlas Do you?
 
I don't know...probably not
 
user1596138
Premature optimization is bad. I doubt you will have a single method getting so damn slow that it ruins the application.
 
user1596138
If you have areas already identified for optimization, maybe test those?
 
user1596138
Just seems like biting a tiny chunk off of a huge picture
 
if you don't also take into account how often the badly performing method is called, the degradation itself doesn't tell you that much
 
9:37 PM
oh sorry you guys are talking about 'performance'...I'm talkng about some made up metric...like my method is supposed to find this many nouns in this test file
 
so like an algorithm test?
 
yeah
 
user1596138
That just sounds like.... A test
 
i don't know if those are a thing beyond normal unit tests
 
user1596138
There are X nouns, ofc it should find X lol. How else would you test that?
 
9:38 PM
is your algorithm stochastic?
 
I don't have one yet.... but I'm thinking of algorithms that do NLP
 
user1596138
> if some change caused a shitty performance of a method (even though the method works flawlessly)...
 
@Jhawins tomorrow, probably
 
user1596138
I am wondering how the method performed flawlessly in this case. Isn't that the same question?
 
user1596138
When performance == accuracy
 
9:40 PM
no it could still execute exactly as desired...I mean isn't it possible to pass a unit test...but fail the algorithm test?
I mean assuming you think that the algorithm test is something separate from a unit test
 
user1596138
A unit test just means a single piece test
 
@Jhawins there is a term for that - it's called equally slow code
 
user1596138
That single piece is the algorithm.
 
user1596138
So I fail to see the difference but I'm probably seeing it wrongly
 
@BenjaminGruenbaum "uniformly slow code" makes more sense than "equally slow code"
it's also horrible to profile this kind of thing.
 
9:42 PM
well say the algorithm has a zero percent success rate....but it still can pass a unit test, it all your unit test is testing is that the algorithm does what its supposed to
 
user1596138
@BenjaminGruenbaum Not sure how exactly that applies to what I said
 
(if you're profiling, it means you're already looking for things to shave off.)
 
@FlorianMargaine its not about timing...its about algorithm accuracy to do some task like find something
 
user1596138
@erotavlas ANd what it's supposed to do is... Match an accuracy?
 
I'm always looking for things to shave off
 
9:44 PM
@erotavlas I know, I'm on a tangent, not discussing about your issue specifically :)
 
@BenjaminGruenbaum Thats a fun article
 
user1596138
Unit test isn't specific to anything really. Just a broad term meaning you test a chunk of code. That's where you've lost me
 
user1596138
You might be referring to some specific framework of testing
 
@erotavlas is your question how to benchmark and tune an algorithm? That's a whole other thing from optimization
 
user1596138
It's almost like you're saying that it returned successfully at all is a unit test. Not sure how that would be valuable in the scenario where you could have 0% accuracy lmao
 
9:46 PM
You want to define precision and recall - look into how it's done in machine learning (there are a lot of free courses I recommend cs231n) - they utilize a lot of visualizations to understand what the algorithm is doing and how to improve it.
 
no....I just wanted to know if unit tests should include algorithm test or not....(for example algorithm performs with X amount of accuracy)
 
@erotavlas a regression test should compare the algorithm's performance on various inputs compared to a "gold standard"
 
@BenjaminGruenbaum yeah that's kind of what I'm wondering if its suitable for unit testing
I mean unit test is very binary...it does this or it doesn't
 
@erotavlas no, it should be a regression test which runs whenever you change the algorithm
 
but that kind of machine learning testing is very probabilistic...not really yes or no but can be a percentage
 
user1596138
9:48 PM
A unit test is just a segmented regression
 
user1596138
It's all just down to how you wanna see it lol
 
You can write unit tests for various behaviors you expect on inputs but typically the way to check the performance of an algorithm is via a validation set
 
What is are everyones favorite testing libs?
 
@erotavlas right, and you can compare percentages across versions to track progress and then plot that and use it for tracking how much you improve
 
user1596138
@jake --- strikeout ---
 
user1596138
9:49 PM
You were close
 
so your saying is that these testing framework that do unit testing aren't cut out for this...I have to set up a separate methods (not part of my unit testing) to do this
 
@jake I use Karma and Mocha but in retrospect I'd use Jest, I've been using Mocha for 5+ years now so I'm just used to it
 
😅I was getting there
 
the only test framework I know is intern
 
@erotavlas your regression test can run the same time as the unit tests inside the unit test framework or it can run separately - it just depends on perspective like @Jhawins said
 
9:51 PM
I feel like its time for me to graduate from console.assert(), even though my boss says not to spend too much time on tests, I've always wanted to learn.
 
Oh, Chai is also nice and sinon, I'm actually a sinon core member now lol
 
Then don't spend 'too much' time. Spend 'the right amount' of time.
 
I'm a JS dev on a Ruby team, any tests I write would be only for me :P
 
@BenjaminGruenbaum ok makes sense....I'm just going to include it along with the other unit tests for ease of use
 
user1596138
9:54 PM
@BenjaminGruenbaum That face is scaring the shit out of me
 
too many choices and way to do things...I wish for there to be only one way to do everything
 
Naa, that would be easy :D
 
@BenjaminGruenbaum lol wtf
also, $('.boob')
 
hello'
anyone here?
 
no
 
9:58 PM
any one with casperJS exp?
 
user1596138
@Mosho Deleting boob doesn't change much.
 
user1596138
Man once you inspect it the construction can't be unseen
 
yes
 
@Jhawins Very progressive of you.
 
github logged me out and reset my pass
 
9:59 PM
shoulder is a ball with shadow
every strand of hair is a div
 
user1596138
No context I just laughed...
 
no one with casper?
 
user1596138
Casper looks cool for automated UI testing
 
!!welcome baig772
 
10:05 PM
@baig772 Welcome to the JavaScript chat! Please review the room 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.
 
@Mosho How could you go and break the rules by posting such a thing? ("Avoid vulgar terms and anything sexually suggestive")
 
it's not suggestive
 
I found myself suggested
so.....
 
Well I find it vulgar, now I need to clean my cookies of this filth...
 
cleaning your cookie is suggestive
 
10:07 PM
nice
 
I suggest you clean your cookie
now who's being suggestive?!
 
@Mosho My cookies are non of your business
 
hmmmm cookies
 
would you eat a cookie that was covered in mayonnaise?
 
@ndugger if the cookie was made of ham maybe?
but even then.. how much mayo are we talking
oreo thickness, sure
 
10:09 PM
@ndugger yes...forMoney.gif
 
not a ton, just like frosting
 
assuming clean non-spoiled mayo?
 
yes
 
then any cookie.
 
yeah... not your mayo, right?
 
10:09 PM
right
 
But just once.. doesn't sound appealing.
 
@FlorianMargaine are you suggesting I own a Mayonnaise factory? Disgusting!
It's a Miracle Whip factory.
 
@Loktar I'm more of a ketchup kinda guy
 
miracle whip is so much better. fight me.
 
miracle whip sounds like SM
 
10:10 PM
I put deli mustard on tacos
 
@FlorianMargaine mixed with church
OOr like a great disciplinary device for bad children
I can see the infomercial now for the "Miracle whip"
 
@BenjaminGruenbaum I don't understand the purpose of these exercises. It's like intentionally making something more tedious
 
miracle whip + salami is like the best sandwich there is. not a euphamism.
 
a pleonasm?
 
@Shmiddty it's nice just to show you can do it
 
10:12 PM
It's art, man!
 
@Luggage I believe it's a female (the art)
 
comma
 
@Shmiddty A first person shooter in CSS keithclark.co.uk/labs/css-fps
 
Lemmings in "DHTML"
get wrecked.
That was SO impressive
 
How can I trigger blur in casperJS?
 
10:14 PM
> This is a remake of Lemmings™ all written in javascript. You will be needing a modern browser and a fairly fast PC to play this game. IE5.5+ or a recent Mozilla / Opera version and a 500+ Mhz processor should do, but more power is better :)
I saw that back in 2004 but pretty sure it was made before then even
 
Anyone here ever use Ant Design? If so, what are your thoughts?
 
In terms of design and flexability, would u guys use a list for a chatroom over a textarea
 
Sick keyboard!
 
I haven't used it but I'll gladly judge it based on a hasty analysis, if you like.
 
10:17 PM
@RachelDockter for which part? The displaying of messages?
 
If so, some sort of list for sure over a text box
 
@RachelDockter draftjs.org
 
What are the reasons you're considering a textarea?
 
But I haven't used it for real myself.
 
10:18 PM
@Shmiddty Changing medium or limiting yourself is a frequent move in art
 
@Luggage hm?
 
hm what?
 
That's like a TinyMCE thing right? Her question is about a chat :p
 
i havnt used react before and i wasnt planning on important a liberary for it
 
no, that's the thing facebook uses for there input boxes
 
10:18 PM
For instance, if you find it difficult to write about something, you limit yourself to only one aspect or to a certain degree. If you want to play something, you limit yourself to only using certain scales, etc
 
a text area seemed most logical but then i dont think u can style it much
 
So you want a contentEditable thing?
 
@RachelDockter which part do you mean?
 
no just displaying
 
Text area for the bottom for sure but just the display.. definitely non input elements
 
10:19 PM
ok im confused af now haha
okay ill go with a list
 
Yea, ignore me. I misread the initial question.
I saw "chat" and "textarea".
 
also if anyone has any feedback on my ui id appriciate it
cuz atm it looks like a kid made it imo
 
wha? that img looks fine
 
really, i thought it looks abit meh
maybe i just been starting at it for too long
 
My only criticism is that it looks too common, but that's not really a bad thing.
 
10:27 PM
i undestand, thanks for the feedback :D
 
Why this query has downvotes? Any hint?
-3
Q: Structural typing is not duck typing

overexchangeAs mentioned in TypeScript handbook: One of TypeScript’s core principles is that type-checking focuses on the shape that values have. This is sometimes called “duck typing” or “structural subtyping”.In TypeScript, interfaces fill the role of naming these types,... My understanding is, th...

 
OMG, if I die, sockets killed me.
 
let me guess, you wanted to open a websocket, so you used socket.io or something massively overkill?
 
haha im using sockets right now too, i feel your pain
 
i think i used socket.io in my last websocket app
 
user2620028
10:33 PM
i used php web sockets before without issue
 
In React, can I change the text of a button without messing with setState?
 
@overexchange I see the difference you are pointing out in your question, but I think the actual question is vague: "How do I understand the above core principle of TypeScript?"
 
@overexchange I don't see anything wrong with it. It's at 0 now.
 
user2620028
@jake you are going to need to force the component to re render in some manner, calling setState would be one of the ways to do that
 
10:34 PM
(for changing the text of a button from "copy to clipboard" to "copied")
 
this song is crazy good. Everything Mark Tremonti and Myles Kennedy touch is pure gold @Loktar
 
$(this).attr('version_id') when this is an object, not an element
 
@jake, you probably should just use setState
it's the right way to do it
 
¯\_(ツ)_/¯ , I thought as much.
 
rip arm
 
10:36 PM
_(ツ)_/¯ ¯\
 
@david sort of lol. I have a mongodb that tracks message sessions. I wanted to add a hook with mongoose that pushed messages to registered sockets on a save event with mongoose. I'm stuck at how to manage my socket sessions by _id
I'm thinking about using another collection that maps sockets to sessions, but HOW DO I TRACK SOCKETS
So far the internet is just like
!!aliens
 
Have a look at this one please
0
Q: CasperJS how to fire blur events

baig772I have a form that calculates as it is filled. I want to fill that form via casper and get the result. In my form, I am doing the calculation on blur of each field. How can I fire a blur event using casperJS?

 
@DavidKamer i might be way off with what your doing by i track sockets by assigning them a unique id when they connect, is that what your talking about?
 
I have a lot on my brain right now ok
 
10:48 PM
Anybody good with the browser security model - ie CORS and JS image access? stackoverflow.com/q/50123832/118153 - probably got downvoted initially because I didn't clarify before the edit to disambiguate it from an XY problem :).
 
I absolutely love Simone
 
@RachelDockter Yes, and I'm not sure how to track sockets let alone assign an ID to them. Every tutorial is really general and doesn't approach how to handle and sandbox different users with the same server.
 
Any freelance app developers in here?
 
@duhaime yo
 
most likely
 
10:50 PM
!!urban
 
@DavidKamer Y U NO PROVIDE ARGUMENTS!?
 
oops
Yes, I freelance.
 
@DavidKamer oh thats super simple, heres how i do it
	// When the server starts
	this.userId = 1;

	//When a new client connects
	this.socket.on('connection', function(user)
		{
			user.id = this.userId;
			this.userId++;
		}).bind(this))
this gives every client that connects a unique id which can be tracked by socket.id
or in my case, user.id
im not sure if thats what u meant
 
@MikeTheLiar what. the. hell.
holy crap, that is absolutely mind blowing
 
not quite. I want to receive a session id from the client when it connects and then access a list of sockets from a mongoose schema, but you might be on the right track
 
10:54 PM
i do the same with cookies, the server keeps a list of sessions and when the client connects, it gets their session cookie and compares it with the session array and logs them in accordingly
i never worked with mongoose tho so i dont think im much help
 
@RachelDockter I can pretty much do all the stuff mongoose is helpful with. I really hope I don't have to make custom middleware for this. I'm using tokens, and I was using the ws library, but I think sockets.io has more support. How are you passing events to your sockets?
 
	user.emit('incomingChatMessage', messageDetails);
	user.in(user.region).broadcast.emit('incomingChatMessage', messageDetails);
the first one sends the event to just the client, and the second sends the event to everyone in the clients room @DavidKamer
 
if you're using tokens, why not storing valid logged in users in your database (with the according token) and compare that with that the client sends via websocket on opening your site
 
im not using any other ways
 
and then yea.. use socket.io to join rooms and emit to rooms, for instance a room like "loggedInUsers"
 
10:58 PM
before i discovered rooms i was emiting messages to everyone and filtering them client side
when i first heard about rooms i was like holy shit this exists
 
before I discovered rooms I just used arrays with sockets myself
(serverside)
 
I plan on implementing something similar to what I'm doing for other parts of the site where I decode a token using a secret so that I don't have to store tokens
 
I'm pretty sure that's what socket.io does aswell tho
 

« first day (2754 days earlier)      last day (2191 days later) »