« first day (2481 days earlier)      last day (2692 days later) » 

06:11
Hello
can anyone help to generate regex?
http://domain.site.app/type/id-name
in this url domain can be anything, type is fixed i have aroung 7 type
id can be number
and name can be anything
@HoangNguyen Do not use moderator flags to ask for help solving your issue
(And for that matter don't ping people here randomly)
lol
@SagarNaliyapara just insulted ppl in php room
@BoltClock mod flag for getting answer? O_O
he can share the url here if he didn't get an answer
@SagarV It used to be a huge problem in the main site, let alone chat
@SagarV he did
312
A: Is it OK to flag my own question because I want someone to answer it?

BoltClockNo, please do not use moderator flags for this reason. Doing so is a sure-fire way to get yourself into trouble with the very people who will see your flag. Why not to do this Moderators are people who deal with problems in the community, such as inappropriate posts (as you've correctly pointed...

06:17
a link to faq on how to and where to use mod flag will be helpful in the flag dialog if the person chose flag for mod.
57
A: Add another canned flag decline reason

BoltClockActually, it was never really OK to use custom flags in lieu of existing flags unless you had a very, very good reason to do so (e.g. old question that will never receive views, before close/reopen queues were a thing), because using custom flags interferes with sorting and filtering flags by typ...

lol that's insane if asked seriously
Teaches you not to take for granted that not everyone knows what "moderator" means or what a mod does...
there are many people came from Forums. that might be an issue
@SagarV People coming from forums should be familiar with the concept of moderation and should understand that you don't contact a mod to help you with your question or your homework
06:20
eh, it's not about the origin where they came from
(This feels like the election chat room now)
they expect that SO is a "code for me" site. Or that an answer comes within 5 mins
I raise mod flags only questions having open bounty and should be closed immediately. most of them are marked as helpful
Some questions do get replied within that time frame. But there are other ones that is not.
the issue of people came from Forum is they just open a thread for discussion or a too broad question
06:24
yeah doing some research isn't a thing it seems.
years ago SO allowed any type of question
leave it. we are deviating from JS to moderation
5 mins ago, by BoltClock
(This feels like the election chat room now)
it happens that moderations got discussed here :P
when were we ever on JS
@Mosho what is JS
06:27
@BoltClock take revenge. discuss JavaScript in election chat room :p :wink
the main topic isn't always about js.
@BoltClock beats me
The only thing I didn't like in JS is the flood of new Libraries. It is very difficult to stay up to date because the trend changes periodically
@BoltClock this answer has a dead link :)
06:31
@KarelG solved
@KarelG That link works for me
that might be a mod only link
that one before sagar's edit?
@KarelG yeah
got redirected to main SE page
06:32
I edited it to add traffic link
@KarelG what
I got the site list. the # part is gone
@SagarV No, it's still there. You just changed it to the wrong one
What you did add though, was the ?view=list
Apparently it defaults to grid and it's a user preference
yeah. It defaults to grid and grid view didn't contain the number of questions per day
^--- explains it
06:33
It contains top 5 users, last top question and total questions
06:45
wasn't btc supposed to go down like hell today because of the uncertainty of the split?
morning
!!sandbox
@FlyingGambit Please go and play in the Sandbox
!!tell FlyingGambit sandbox
06:52
@FlyingGambit Please go and play in the Sandbox
!!slidepoop
Mar 13 '13 at 1:40, by rlemon
(Random Fact, when rlemon was 13 he pooped on a slide. he isn't proud of it, but he felt it was time to confess. I'm sorry slide.)
@BenjaminGruenbaum hey
Fuck today.
07:00
well at least its going home time
Yep
Out.
the sun is still shining, yet so sleepy
feels like Monday
Tuesday viral fever
that did not even rhyme
tuesday too hard day
right i am out too
ah the perfect use of tags
07:06
Lamo
I couldn't help adding it to my fav list
"I buy a new HDD from amazon it's back of the board seems black smoke it my PC shows in bios but it not support in desktop what can I do". Its hard to understand too
mornin room
3 ppl upvoted that question
morning
@BoltClock hey, what's up?
@FlyingGambit which question
@rlemon omg, anything we can do to help?
07:19
14 mins ago, by William
question of the night https://stackoverflow.com/questions/45430802/seagate-320gb-new-hdd-not-support-p‌​roperly
@BenjaminGruenbaum Flash is de— nope, it has 3 years to live
Yeah, I'm fine with that, I hope Newgrounds does a good job converting everything to video.
Animate is still popular, just flash player is dead.
It's a shame, since it's still better tech.
@BenjaminGruenbaum Well, every movie anyway. No one knows what's going to happen to interactive stuff
07:20
posted on August 01, 2017 by Myles Borins

Notable Changes configure: add mips64el to valid_arch (Aditya Anand) #13620 crypto: Updated root certificates based on NSS 3.30 (Ben Noordhuis) #13279 #12402 deps: upgrade OpenSSL to version 1.0.2.l (Shigeki Ohtsu) #12913 http: parse errors are now reported when NODE_DEBUG=http (Sam Roberts) #13206 Agent construction can now be envoked without new (cjihrig) #12927 zlib: node will now

Not just full-blown games but movies with interactive bits and easter eggs, those are going to be gone :(
Naturally Tom releases a level-headed statement about it (no sarcasm): newgrounds.com/bbs/topic/1424896
@BoltClock I watched ANGRYMAN ANTICS yesterday and it wasn't converted.
@SagarV It was 14 then went to 12 and now its 13. Maybe SO records things late
no. may be some people retracted their downvote
@BenjaminGruenbaum None of my work has been converted, only half of it was deleted due to use of unlicensed music :V
07:22
Tom is only still in Newgrounds because it's his. I think he's fine with it slowly dying, he made money and he's making video games.
A good chunk of old content was removed for that reason, sad
He's not the rebel he used to be.
ah ok, thats possible
@BenjaminGruenbaum He's a dad too :^)
Yeah, he's also a great guy.
You know when I was 13 I picked him as my hero when I did a presentation at school :D?
07:23
Haha that's awesome
Because he built Newgrounds which I loved when he was 13 (the initial version)
I only got to actually know him two years later, he's a really nice guy.
I remember all the "Wadolf" stuff - in retrospect it was hilarious.
Only time I've directly interacted with him was when he personally removed something I whistleblew for stealing from me
I guess I'm fine with what's happening to Newgrounds, I'm sad there is no place in the world that's as creative right now (I hope there's one I'm not aware of). It was a unique time.
Oh, I talked to Tom a lot in the ArmorGames days, and on AIM.
I remember I was super excited when I got his AIM for the first time and talked to him.
He wasn't online a lot, but I'd wait and try to think of stuff to talk to him about lol. There was something about someone who built something so creative that I really admired.
I know that feeling
And I used to have tackles with Mindchamber, although we were mostly friends, and Luis and all the otehrs.
Tom is genuinely a great guy, I hope he does (keeps doing) well with Behemoth
07:26
Speaking of Tom, he's working on a game called Nightmare Cops, and he says it's an "official Newgrounds game" and I have no idea what that means, considering it's going to be released on PC and console
It's apparently not a Behemoth game
No idea if that means we'll see the Newgrounds tank on the cover art???
Some days I wonder if I should stream my TF2 gameplay. Only problem is I have embarrassingly bad aim
My gamesense is on point though
I find it weird that a script leak for GoT is pinned above a spoiler warning
07:42
Whats the solution for blurry elements when using position : absolute or fixed and transform : translate
@Paran0a Using only full pixel offsets
Calculate with js , recalculate on windows resize?
Whats with the Game of Throne craze. I hate that series
Minor spoiler ? ////////// New GoT episode is a comedy , in so many situations I expected a laugh track
I only watch Netflix and Youtube. So no GoT for me
07:45
@OliverSalzburg Or use flexbox I guess , I dont think flexbox has that problem
Ok GOT spoiler. Narnia dies after getting stabbed
@Paran0a I assume it's a rendering issue resulting from interpolation. I faintly remember some CSS rule to have an impact on that
@OliverSalzburg Yeah transform messes it up , ive read a lot of different solutions for this , I guess they worked in the past.
@FlyingGambit do understand that you are in the tiny minority
so you should look into what's wrong with you rather than the show
@OliverSalzburg It has to be verified first, but the hackers claims that they could download 1.5 TB data
if that's true, then this attack is the first one that has gathered > 1 TB data
I'm surprised that this didn't get caught if HBO used any form of monitors.
07:54
why does anyone care about leaked GoT scripts
I mean, what value does that information have
i don't. I care more about the amount of data stolen
@Mosho I strongly protest
the scripts may contain newest season spoilers while the book is still unfinished
@FlyingGambit no you're not
@KarelG where can I see it?
07:55
the people of venezuela strongly protest
Hello everyone! I have a question. When we click a link on a page that downloads a file which event is triggered? Sorry if I am not phrasing it correctly.
@DanaeVogiatzi Welcome to the JavaScript chat! Please review the room rules. Pleasedon'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.
@KarelG again, who cares
@Paran0a idk because i didn't search for that. However you can search for it.
@DanaeVogiatzi The click event for the a element
maybe hacker fame
Check this out , I can dance
\o/
the new layout of MDN is ugly
08:02
Yep
the height of top bar is too large
funny bug
looks like a kid designed the new layout
that is a funny bug
@Mosho Who said it was a bug?
;)
08:07
The content is different if you check other pinned starred messages
do you sleep Madara
@William Sleep is for the weak
@KarelG there's a right to left mark
@KarelG Heard of U+202B?
It used to work better though
It used to reverse the everything, the name, the date
it's still a weird outcome
08:08
They changed the markup somehow and now it doesn't work as well
never heard of that. Is that not for right to left languages such as arabic ?
btw
  > * {
    display: table-cell!important;
    vertical-align middle;
Thanks @Mosho 👍
not me
what does that do Madara I'm guessing it vertically centers the page
(I hope)
08:12
Blames you
I let sahar use my computer that time
@William Makes all the menu elements forcibly into table cells
hey, we needed IE9 support
@Mosho Nitzan bet your excuse would be IE8
Also, IE9 supports inline-block, just sayin' :P
madara, you can use the RTL unicode instead
but not sure what's the effects
!!> '\u202e 123456'
08:14
@KarelG "‮ 123456"
mhmm
!!>' \u202b abc'
@MadaraUchiha table-cell makes vertical alignment and height much easier
@MadaraUchiha " ‫ abc"
Yeah, I think you're right
There we go!
That's the effect I was aiming for
08:15
\u202b is LTR?
@Mosho That's fair
But > * { display: table-cell !important }?
Really? ;)
lol Madara
Also o/
@MadaraUchiha what? it's an important rule
Your excuse for table-cell is solid, but !important? > *?
08:16
what's wrong with > *
@MadaraUchiha and if it was just really really important?
@Mosho For starters, * rules are the most inefficient rules in CSS
I think its because selector specificity plays a role here
This is serious work, my friend
08:17
Given how they have to traverse the entire tree
@MadaraUchiha it's nested
@Mosho CSS rules are read right to left
it is a weird CSS rule IMO, even nested
First *, then filtered to those that are direct descendants of &
Although to be fair, it's been a long while since I've dealt with this, and @BoltClock can come any second to kick my ass.
I'm right here
I'm playing a war themed hat simulator though
08:20
Don't bother the man. He's busy
@BoltClock as he said, kick his a*s :p
@MadaraUchiha still the case
The week's almost up. I need to watch got before spoilers start falling
08:22
@MadaraUchiha you're saying, that $$('*') and $$('.somethingLessSpecific > *')` have the same perf?
best practice right now is to give everything a class
because I will bet you $100 right now that's not the case
@Mosho leftmost has worse perf
@Mosho No
IDs are a special case
sorry, rightmost
08:23
But if there wasn't an ID there, yes
@MadaraUchiha edited
@MadaraUchiha The problem isn't exactly browsers having to traverse the entire tree, since they already do that anyway. The problem is browsers having to check that rule on every element since every element appears to match *
Try it, now I'm curious too
@BoltClock Mhm
you think I offered to put $100 without checking first?
But yeah, * is as slow as the number of elements in your page
08:23
what's $$ short for?
@towc document.querySelectorAll
selector
@towc qsa
If your page is relatively lean you don't have much to worry about
Our page is a lot of things
"relatively lean" it is not.
08:25
my favorite selector is still *+*
@MadaraUchiha console.time('body *');$$('body *');console.timeEnd('body *');console.time('body > *');$$('body > *');console.timeEnd('body > *')
@MadaraUchiha well then :V
@MadaraUchiha do IDs give a new scope or something?
@towc IDs are shortcuts, if there's an ID in the selector, the browser will match only it against the rest of the selector behind it, then proceed normally only under that element
@Mosho Given what @BoltClock said, I don't think we'll see the difference in JS
Only in CSS
I doubt it
08:28
I don't know how querySelectorAll is implemented
I do know that it uses the native selector engine
though I'm sure selectors-4 will change that
and besides, the lookup would go over all elements anyway
even if it's body > div
to see where the divs are at
checking for * shouldn't be slower based on that
it would just have more matches
but same time complexity
not a lot slower anyway
bottom line, fu @MadaraUchiha
@Mosho looks like most of that benchmark time is actually just generating the array, not spent on the selector
let ar=[];console.time('3500 bodies');for(let i=0;i<3500;++i)ar.push(document.body);console.timeEnd('3500 bodies');ar.length = 0;console.time('60 bodies');for(i=0;i<60;++i)ar.push(document.body);console.timeEnd('60 bodies')
3500 bodies: 6.3798828125ms
60 bodies: 0.434814453125ms
I have no idea what you're benchmarking here or how it's related
here were the results for the previous benchmark you set:
body *: 5.876220703125ms
body > *: 0.807861328125ms
I just ran it on the chat
...
that's expected?
08:34
the first selector gave 3529 elements back, while the second gave only 59
first one picks everything within the body. Another only the direct first child (level 1)
the selection was actually barely any faster, most of the time was spent generating the array and making it ready for javascript
so in css, they're about the same, is my guess
mmm
mine is still a horrible benchmark, because there's so much optimization that the engine can do already, but still shows the point
Now run the benchmark on a page with only first-level descendants of body
08:38
@towc how did you benchmark?
@Mosho ran both on the chat
@Mosho at the park with a permanent marker
Although I can see running that benchmark to profile how much of an overhead the number of elements is on performance
no special setup. Not ideal, but meh
I used performance tab and > * is faster
08:39
5 mins ago, by KarelG
that's expected?
seriously...
If > * can be avoided, better to do so, no?
If you're comparing selector performance, then obviously on a page with more elements matched by descendant than > the latter is going to win
@Mosho well, yeah, but that's because javascript
it will still be slightly faster in css
You might as well say that div is faster than * because div only matches divs
but barely
unless you're doing some crazy styling
the selecting part is actually going to be slower in plain * (not body *) than in body > *
08:41
@BoltClock how do we exclude "saving" results from benchmarking
you could technically benchmark * against body * and see that as far as just selecting goes, the latter is slower, but the overhead will be so small 😛
I guess you could benchmark painting
but that includes other things as well
When you want to compare raw selector performance, make a test where both selectors will match the same set of elements
4 mins ago, by BoltClock
Now run the benchmark on a page with only first-level descendants of body
also, wouldn't body * and body > * have the same raw selector performance?
One might guess so
08:43
well, in the second case, it only needs to go up one level
In any case, I still think the idea of choosing selectors based on (hypothetical) performance alone is stupid
If you want to match all descendants of an element, you wouldn't use >
If the only descendants of an element are children, you wouldn't use descendant combinator, unless you're supporting IE6
hey, it's trivia points at techy pub quizzes 😛 This is important
chrome is optimizing my benchmark code
I give up
can node.js have raw disk access
if you wrap it in a try/catch, it should prevent any optimizations from happening
not sure if they changed that
08:47
on windows
@lemon if you let it
@towc like a year ago
:/
maybe os.js can do it so I guess I can eventually
btw, this may bean XY problem, @lemon
what are you trying to solve?
08:49
@lemon what's "raw" disk access?
nothing at the minute, im a newbie
you probably shouldn't try doing things with raw disk data then :P
I know that lol
I like to write 0s
as a rule of thumb: nodejs can do anything something like C could. Maybe a bit slower, but meh
08:50
I have a tendancy when learning any language to want to do stuff that is too far ahead
@towc something like python would be a better comparison.
C can do far more.
oh, like?
I mean, nothing is preventing you from getting node to invoke a C program
according to brendan eich javascript can do anything web based if the missing APIs are used and optimization is better
that means you can do anything C can do, right?
@towc doing anything with actual memory
08:52
which I dont know about because windows prevents certain things from happening
@towc I think that's cheating
@Neil well, fair enough
but then all of nodejs goes to hell
you can't even start a server
it's in the nature of node to call external programs
Good point
in Java, 15 mins ago, by Sajal Gupta
anyone know how to print input data into a pdf file and save pdf in local storage?
mfw
Same could be said of java as it is based on C libraries in the jvm
08:53
@Neil yeah, sure
@KarelG well, you can do that
I mean, is there such a thing as unsandboxed java?
i'm more concerned about saving a whole pdf file in localStorage :|
you can do that too
encoding will probably be weird
No, not if I understand your meaning behind unsandboxed
08:55
I'm not even sure
@KarelG I mean, it's stupid
but it can be done :P
the jvm is basically a cross platform optimization sandbox, right?
but I guess it's in its nature to have outside effects as well
afaik, node doesn't run on a virtualization layer, like the jvm
and neither does C
Hmm, jvm is just an engine by which code converts to assembly, without compiling directly to assembly
but then C is much much closer to machine code than js
@towc the JVM is a turing machine
08:57
Each system's jvm is optimized for that system yes
virtualization is probably not the right name
most of what I said probably has very bad terminology
I'm an uneducated kid who didn't go to uni :3
but I can do laundry
better get to work
I like to think of it as an alternative to assembly even if that's not technically true
It always goes to assembly/machine code eventually, but it isn't system-dependent

« first day (2481 days earlier)      last day (2692 days later) »