« first day (2708 days earlier)      last day (2242 days later) » 

12:02 AM
I'm back..
 
@YottoDead I'm thinking something like that except it will apply all or nothing to the whole view in terms of input type
Inch or cm..not both
 
12:26 AM
Mar 9 at 18:33, by Sterling Archer
HAVE I EVER TOLD YOU GUYS I LOVED YOU
 
Lol.
 
1:14 AM
is there a way to manually add \0 to the end of an array however not have to account for it in the array size.
its kinda hard to renember to always add 1 to the array size for the null terminator so maybe manually specifying it would make more sense but then there would be two \0's, one is added manually and the compiler adds one
maybe int name[6] = {"name\0"}; makes more sense athough \0 is considered a single character
then to make it more confusing you dont have to add an extra byte if using it in say a for loop
 
@William not you >:(
Would you believe I was sober when I screamed that?
 
6 is ok except if using an inerator, equal also to 6 for clarity to print out the whole array in a for loop then there is an extra byte of nothing which mght be bad
 
1:42 AM
@Loktar this was the first metal song I ever saw live vimeo.com/34433914 :D
 
hey guys
i´m having a issue on the following code line...
for (var i=0; i<tagsJSON.tags.length; i++) {
	Array.from(document.querySelectorAll(tagsJSON.tags[i].tag), (tagsJSON.tags[i].tag) => tagsJSON.tags[i].tag.innerHTML += tagsJSON.tags[0].html);
}
 
ohhi
 
this is the issue...
 
@HenriqueHBR you're not using the second parameter of Array.from correctly
 
SyntaxError: missing ) after formal parameters
 
1:50 AM
Well that's pretty obvious
 
i can´t find where i should put the )
const tagsJSON = {
	"tags": [
        {"tag":"panelc", "attributes":["title"], "html":"\
        <h1>panel_c</h1>\
        <p>PANELS!!!</p>"},
        {"tag":"card", "attributes":["title", "img"], "html":"\
        <h1>card</h1>\
        <p>CARDS!!!</p>"}
    ]
};
 
(tagsJSON.tags[i].tag) looks really weird
 
i forgot this...
 
@HenriqueHBR use a linter, it will show you
 
@KevinB yeah that's not ok
 
1:51 AM
@KevinB @KendallFrey consider the json code sent above
 
@KendallFrey @KevinB is that even valid? It's supposed to be a parameter name
 
i´m going to try a linter
 
@SterlingArcher not a chance
 
I don't think it is
it's certainly not doing what they're probably hoping it would
 
can i use a "variable" on parameter name?
or something else to represent the value
 
1:53 AM
i've never used array.from
 
@HenriqueHBR variables and parameters have the same kind of names. Any variable name is a valid parameter name
 
@HenriqueHBR you need to actually understand what something is before trying to use it
 
Bad escaping of EOL. Use option multistr if needed.
can someone explain this please?
i was trying to create a string with multiple lines on json
 
Not without context
> Use option multistr if needed.
also sounds pretty straightforward
 
I probably wouldn't use the second parameter to array.from
in your usecase
 
1:55 AM
Which you were told yesterday
 
a simple forEach would suffice
 
@KevinB hmm yeah looks like a plain old for..of
 
22 hours ago, by ndugger
The second argument in Array.from is a mapper. Don’t use that as a forEach
 
well shit
 
@SterlingArcher so, its impossible to use this parameter value inside a forEach?
 
1:57 AM
you shouldn't need to
 
Do you understand how forEach works?
 
yes
 
Not sure if you do bud
 
@KevinB so, is there any work around?
 
Refactor your code, try again with forEach
 
NodeLists have forEach btw, you don't need to convert it into an array
 
ok, thanks
going to try forEach...
sounds interesting
 
I prefer for..of
 
what are the pro/cons of each one? (forEach and for...of)
 
not many tbh
I find for syntax easier to read
 
2:03 AM
i find your mom easy to read
nice
 
i find your mom easy
nicer
 
i also find your mom easily
follow the cookie crumbs and you can spot her from 100 miles
 
The sun is also easy to find what's your point
 
UR MUM B FAT M8
 
2:06 AM
real talk my mom is actually small af
She's like 5'3
if that
I think she's shrinking
 
Lol. This is fun to watch.
 
I wasn't 6'3 coming out jesus
I think I was like an 8+lbs baby though
But I was the third kid so
 
wait so does that mean your father is 7'3
 
Please don't ever have kids
 
I don't plan to
 
2:09 AM
I'd say the same but we already know there's an 80% chance that chick from college's kid is mine
 
I mean technically speaking, an 80 year old with 100 grandkids can "not plan to".
Well, you don't have much choice at that age
 
Subway, who the fuck is making out in a jeep after crushing a footlong meatball sub
I mean honestly
 
um wat
 
weird ass subway commerical
god i miss solid food
 
( ͡° ͜ʖ ͡°)
 
2:12 AM
why
 
wait
 
some weird diet?
 
are you missing solid food so much you're bingewatching food commercials?
 
what
no
every commercial is like food related
 
I'm glad I'm not you
 
2:13 AM
@KevinB tongue piercing, can't eat solid food for like 3-4 more days
 
*whispers* tidead
 
@KendallFrey I'm awesome you wish you were me
Oh man that's brilliant, I have a ton of tide pods in the hamper
 
s/me/in me/
 
food for days
@KendallFrey when are you coming back so we can go to dinner again
 
@SterlingArcher well my great great aunt died and the funeral is tomorrow i think
but no
 
2:14 AM
oh my god that made me laugh so hard
 
lmao
 
the video, not your family death
 
tbh I'd never heard of her
I'll probably be in the states again within the next two months
so if you really beg...
 
2:37 AM
morn
 
Lol
 
3:07 AM
I'm back.
 
3:19 AM
Anyone there?
 
3:33 AM
wut
 
Lol. Hi!
 
3:52 AM
i'm not really here
 
Yeah, me either..
 
good morning
 
o/
 
Morning.
 
4:10 AM
\o
 
Sorry - what does that mean..?
 
@phenomnomnominal How long are you over for? Going to the afterparties?
 
yeah man they fly me over for the whole week
I'm there from tomorrow
 
You guys visiting each other?
 
No
 
4:23 AM
Hmm.. Are you a Sonic the Hedgehog fan, @ndugger?
 
Let me know if you wanna grab a beer some time
 
Wait, me? Or your friend?
 
There's the answer you want, and the answer you know to be correct
 
~_~ I think I know the answer.
 
did anybody worked on In-Design plugin/script development,I have a question?
 
4:38 AM
Ask away, maybe someone will help ya. ^_^
 
No
 
@ndugger You're beyond help
 
5:00 AM
ih
hi*
 
Hello!
 
Is there something wrong with this question?
0
Q: Three.js- How can I use device orientation as a first person control

redfelixI have a three.js scene that allows the user to roam about using custom keyboard controls(not using three.js library controls). For mobile devices, the user should be able to use device orientation controls to maneuver around the scene similarly to the keyboard actions. I mainly see examples of d...

 
Hmm. What do you guys think?
 
5:35 AM
hi
 
@ManishBalodia 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.
 
 
1 hour later…
6:52 AM
Is it just me or it seems like the best usecase for inheritance in scripting language is to extend Error :3
 
7:34 AM
a classic example is with Person class
if you are going to introduce the inheritance concept, then use the class anyways
@OliverSalzburg not my fault 😀. If there is a problem with "ES6" then I did blame the missing knowledge at the other person.
 
class SyntacticSugar extends Pseudocode { }
 
8:00 AM
Too much SyntaticSugar can cause diabetes!!
 
class Diabetes extends SyntacticSugar
 
Have you seen amdflaws.com ? (cc @copy, @FlorianMargaine)
 
o.o
What did you have dug up Zirak?
 
It's pretty nice, but somewhat moot. Requires high privileges anyway, and I couldn't find mentions of non-windows
Not really "the spectre/meltdown of AMD"
 
Gotcha check it and determine it myself. But why are you pinging only copy & florian?
//feels excluded
 
8:14 AM
Because I think they'd find it interesting
It was released not long ago
 
@Zirak Oh, cool, it's out?
I read about how it was just a hyped vuln where the "teaser" was just a smidgen of nonsensical buzzwords
 
A LOT of it requires tons of shit to line up or at your advantage
For instance the Secure Boot bypass requires you to be able to flash the BIOS
From within the OS you're running
That's sometimes available maybe, but I haven't seen a BIOS in years which let you do that outside the BIOS menu
@SomeGuy They're cool vulns, terribly overhyped. They want to make a name for themselves, and I guess they succeeded, just not what they wanted
 
mornings
 
eh zirak, "local admin privileges" ="oh it is OK" for an average particular PC user.
 
Haha, guess they did! I'll add it to my printing list still - seems interesting
 
8:19 AM
@KarelG Was it local admin or SYSTEM though? Like, user-mode or only ring 0?
Because wtf is "local admin" on non-Windows?
 
installing a software on linux based OS requires sudo level
 
The linux kernel doesn't care you're uid 0 though, it's still userspace to it
 
true that. The paper is kinda vague on that.
 
I have no idea how it works on Windows, so I could be underestimating its effect on windows
 
@Zirak Is that different on Windows?
@Zirak Nvm, Cap'n Fast Fingers
@Zirak A ping for good luck
 
8:23 AM
The whitepaper also says really serious shit on Chimera, "backdoors inside Ryzen", and then doesn't say a single thing about it
Is it a backdoor? Regular vuln? Nothing of the sorts?
 
> There exist two sets of backdoors, differentiated by their implementation: one is implemented within the firmware running on the chip, while the other is inside the chip's ASIC hardware. Because the latter has been manufactured into the chip, a direct fix may not be possible and the solution may involve either a workaround or a recall
eh, out of those 4 examples Ryzenfall is the most plausible ones for malicious adversaries
 
A backdoor is an intentional exploit/oversight left on purpose
 
probably amd wants that for some data farming like Intel did with their minix
 
@KarelG What'd Intel do with Minix? (Last I heard was that they ran Minix in their ME, but was there more?)
 
s/Ryzen/your mom
@Zirak Is that implied or could you never have a backdoor that wasn't left intentionally?
like a bug that could be exploited
 
8:34 AM
Minix has a subset that acts as a webserver. It allows Intel people to access it remotely.
 
@Neil Bugs are bugs, if they're not intentional, they're bugs, not backdoors
 
(usually found in AMT chipsets)
 
Spreading your server with a builtin root user with a password only known to you and not disclosing it is a backdoor
 
I was just trying to understand terms. Just because it's a bug doesn't mean it can't be a backdoor as well
 
@KarelG Soooort of true; not Intel specifically, it allows you to administrate computers remotely
Things like wiping hdds or reflashing the BIOS
@Neil A good example of a backdoor is early encryption schemes
 
8:36 AM
you need to get their tool. But there is probably one lingering around on the internet
 
I'm sure most backdoors are intentional
 
Let's say you're the NSA or whatever and you're unveiling to the world your greatest encryption scheme yet; ROT13
Best thing ever, non-reversible
 
but I don't know if you'd say a backdoor necessarily means it is intentional
 
Thing is, it's so difficult to read that only the savviest of readers will notice you can apply it twice to get back the original text
If the authors didn't do it on purpose, it's a bug. If they did it intentionally, that's a backdoor in ROT13: They did it so they could read all rot13 encrypted traffic
 
oh lol
 
8:38 AM
That's anecdotal evidence
 
you can find AMT access tool on the intel page.
 
Could it not be a bug and a backdoor?
 
rot13 was a half-joke
@Neil sure
 
ok, then a backdoor can be unintentional
 
no
It's a back door, you install it to give yourself access
Like a master password or a magic opcode sequence
 
8:39 AM
bug is unintentional. If a backdoor can be a bug, a backdoor can be unintentional. QED
I'm being pedantic, I realize
 
if you build a house, and there is a door behind it that is hidden away from plain sight. But you know about it. Or someone finds it. Both have access to your house.
 
A backdoor is a deliberate bug
 
how would you call that door unintentional?
 
a bug can't be deliberate.. it's unintentional
 
That's the nuiance
That's why we made up the term backdoor, to separate it from other bugs
 
8:40 AM
fine, but a backdoor can't be a bug
they're separate things.. they're mutually exclusive
 
I don't think that distinction exists in the very definition, but it'd certainly be useful
> Although normally surreptitiously installed, in some cases backdoors are deliberate and widely known.
 
Why does it matter?
 
If you trust Wikipedia, a backdoor wouldn't have the strict definition :P
 
It doesn't. It just occupies the time it takes for eclipse to restart
I don't think there's a formal definition saying a backdoor can't be a bug
typically it's implied that it's deliberate
I just don't think it's necessarily the case
 
I don't care enough about the taxonomy to argue
 
8:42 AM
it's subjective anyway I suppose
 
9:05 AM
@rlemon @KendallFrey @Loktar don't forget to take your bowl!
 
I've read and saw many videos and articles about microtasks , but I still don't know the main difference between microtasks vs requestanimationFrame regarding thier queue . Whta's the main difference ?
besides the plain fact that promises uses microtasks queue ( but that doesn't help me much)
 
@Zirak nobody uses AMD, so amdflaws doesn't get much publicity
 
what is AMD?
sounds like a sexual disease
 
@Zirak all the "exploits" require full root access to work, so it's highly debatable whether they are exploits to begin with...
 
9:19 AM
@FlorianMargaine I do :D
@FlorianMargaine They're exploits, maybe less exploitable, but nevermind the preexisting conditions some of them just seem weird
I wrote about it after the link
 
the whole thing looks like intel-backed PR
 
^ that
 
Hello everyone
 
@Azrim 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.
 
I don't think it's intel-backed, I think it's publicity-and-stupidity-backed
|Never attribute to malice" and all that
In related news, does anyone have any experience with ergonomic mice? As expected, it's a field of FUD and crummy craftsmanship
 
9:27 AM
I get some text from the API, but the text is formatted as HTML (like this: "...some of <b> my text </b> from the <i> API </i>"), but i dont want to look like that when shown at the client side. I want to style the text according to the HTML tags it contains. Is there any way to do that in plain Javascript. Thanks.
 
innerHTML
@KarelG
 
yes?
 
oh hi
I just wanted you to tell me if innerHTML is a genocide in this case
( you were the one that warned me everytime I recommended using innerHTML, right?)
 
yes. because lots of people is using it incorrectly.
 
hehe
I think in this case it's good :)
 
9:30 AM
Since he gets a HTML response from API , then it is an acceptable case yes
 
wohooooooo!!
!!giphy partyhard
 
it is usually a big chunk of structure
 
!!undo
 
@Neoares I'm afraid I can't let you do that, Neoares
 
@Azrim If you're using XMLHttpRequest, you can set the responseType to "document" and receive a parsed DOM tree
You can also use DOMParser to turn html into an element
 
9:31 AM
however, you can toggle the response type so that you can inject it easily in the document
or DOMParser
wtf zirak
 
Note though that you should be careful about shoving 3rd party html into your page
1 message moved to friendly bin
 
friendly bin?
 
What is DOMParser? How to use that?
 
hmm maybe you can consider to update caprica's edit timer
 
@Azrim google or mdn
 
9:32 AM
@KarelG ufff
 
@Azrim it parses a string that contains structured HTML in DOM nodes.
 
and you get a reference to the parent?
 
Yes, I found it, thanks...
 
@Neoares what do you mean with that ?
 
with the domparser
I think I'd use innerHTML
 
9:35 AM
it depends of the use case. If you wants to "shove in" the whole response, you can use it.
if you want a part of it, a better approach is to change the response type and query through it before bringing it in your document
 
With DOMParser I get HTML Object, how to transform it to string?
 
@KarelG Well, it's good that we talked about it, cause it wasn't that clear to me ;D
It was the ES6 thing
 
@Azrim that's the point, you don't need the string anymore
why would yo do String -> HTML object -> String ?
 
I need string without HTML tags inside it :)
 
ah that
 
9:45 AM
what
@KarelG did you get it?
 
his api returns with a string that contains html tags in that. He wants to have it without html tags. So only the content
 
he didn't say that in the original question
 
Thats right KarelG
 
> I want to style the text according to the HTML tags it contains
 
use .textContent after converting it to a document using the DOMParser (but best to change the response type)
 
9:46 AM
to me that sounds like "just add the html"
 
although that may grab the script content too if your response contains it ...
best to check for it and remove it from your document
 
or regex to remove <.*> and </.*>
 
There was a man who had a problem. He decided he would use regex to fix his problem. And now, rather than having a problem, he has two.
Who said this anyway? I keep hearing it pop up every now and again
 
Is there a way to preserve style - for example if the text was surrounded with <b> tags to make it bold...
 
@Neoares eh ? try to get my foo and hellp from this: string using regex
<label for"foo">my foo</label>
<input id="foo" type="text"/> <p>helloo</p>
 
9:51 AM
@Azrim preserve style where?
 
@Azrim why do you not keep the html ? the dom reader will translate <b> to bold for you
 
Im working in polymer and i set text to some of its elements. Unfortunetly it doesnt do that.
 
@KarelG eh?
regex is light and darkness
alpha and omega
rlemon and towc
pizza and pineapple
 
10:07 AM
I gave you a challenge. Accomplish it or accept defeat.
 
I feel like 🍕 should be a modifier as well
So you can combine with 🍍 and turn it into garbage, just like in real life
 
relateable 10/10
 
10/10 true story
"these tiles take 4 steps to be walked"
"let's synchronize my steps so I never touch the line"
:tries to set the offset distance to 0:
 
hey i want to know that ..is it necessary to know WordPress for web development
 
it is not
 
10:20 AM
no
 
thanks @GNi33 @Neoares
 
:)
 
10:38 AM
If you're doing agency work, it's good to know WordPress
 
Wordpress is evil, but it's a specialized tool for one job: post stuff easely online
 
@BenFortune I'd go as far as saying that it never hurts to know something, no matter what
 
It is actually counter-productive to know Wordpress if you have any web-dev standards.
 
yeah? how so?
 
@HéctorÁlvarez What are you basing that on?
 
10:42 AM
you might get some wrong ideas of how to do things
 
The same could be said about this chat
 
Stack Overflow JS tag in general :P
 
Everybody is wrong. That's the great thing about IT
 
speak for yourself
 
@FlorianMargaine it's PHP, it's wrong anyways
 
10:56 AM
@OliverSalzburg ooooooo
I hope you put your badass sunglasses after saying that
 
@Zirak Those claims didn't stand up under scrutiny
It was found that CTS Labs made those claims in order to lower AMD's stock prices
Linus made a pretty big deal out of it, too.
 

« first day (2708 days earlier)      last day (2242 days later) »