« first day (3171 days earlier)      last day (1791 days later) » 

12:35 AM
Can you guys send me a tutorial for passing data from one component to a unrelated one? I want to pass the same data at the press of a button. Example: From component A I click Edit Data and by this I want to get to component B with the variable isEditable = true. So I want to send the isEditable value from component A to B.
Something similar to Intent form Android...
 
12:46 AM
i decided not to use NVM for now, might reget it later
problem is we have an old website that requires an older version of node to work on it
but...
i shouldn't have to modify that site ever again
 
12:59 AM
if the need arises, it's fairly easy to install nvm and switch for specific projects later on, at least on ubuntu/centos in my experience. I expect it would be somewhat similar on other linux distributions. the hardest part is remembering node version, best stored in a .nvmrc
 
@KevinB I was thinking of making a Github/GithubPages/Jekyll chatroom. Do you think that would be a good idea? I think it would be nice to have a place where I can help people who want to make github websites.
I think it would be a good idea
considering many things
and ive noticed alot of people requesting help for jekyll
 
dunno
i wouldn't use it
 
I personally enjoy github pages, you can use jekyll as a substitute for .httacess
Plus
its a free webserver pretty much
I cant afford a database block
one day ill buy one hopefully
Actually i think i forgot how to make chat rooms lol
KevinB do you know how to make chat rooms?
 
click create new room
 
I have horrible tunnel vision, is there a relative location of the button?
 
1:05 AM
it's on the all rooms page
 
I dont see it lol
do you need higher then 230 rep to make one?
 
do you have the privilage that allows you to create rooms?
look it up
 
@TaylorSpark Click "all rooms" in upper right and then scroll down to bottom
 
also my prof page isnt showing permissions, so I cant really tell
 
maybe you are ban?
 
1:10 AM
No idea? I can still write questions
 
> Create chat rooms

Privilege type: Communication privilege
Awarded at: 100 reputation
 
I dont even have the "your questions are on watch, be careful of your next question" alert
 
Ask on meta maybe?
I remember you had some issues a couple days ago. You got ban from this room for a bit. Not sure if that impacted it.
 
Meh Meta kinda annoys me, they answer global questions, not personal, if its profile related for me personally, it seems to get around 20 downvotes :P
I just stopped asking on there
even if their current questions are "outdated" they dont seem to allow newer questions
 
Maybe ping MadaraUchiha (or another mod). Not sure.
 
1:12 AM
Madara usually answers all my questions
@MadaraUchiha If your online, I was wondering why I cant create chat rooms? I already passed the 100 rep mark for creating chat rooms, and I have the ability to ask questions, so Im unsure whats going on?
 
1:31 AM
Hey does anyone know why my variable MULTI is causing my data to go up by one WITHOUT calling the function??
https://hatebin.com/pbbuaeyjhu

The button should be calling `cookies = cookies + 1 * multi;` but instead, its adding 1 to cookies every second, without calling my function. Why is that??
Wait I think my gameloop is calling cookieclick without needing to
but if I remove that, it removes my ability to automatically click the cookie with cursor upgrades
omg I want to die.. mkaing some cookie clicker for a friend and Im actually dying
legit my friend wants me to make a cookie clicker styled as minecraft
setting up the gui and button positions was one thing, but this js is killing me
@KevinB Do you know how I can solve this? I've really put myself inside a pickle with this one
 
can you stop pinging me
 
sorry your the only one I know to ask
js is unfortunately quite inactive nowadays
 
1:49 AM
Does anyone know if theres a way to "hide" a onclick funtion like this: onclick="cookieClick(1)"? I dont want people simply inspect elementing it and cheating on the cookie game...
 
@TaylorSpark no, it's not..
 
Felix, is there a way to detect a change in the HTML via like inspecting? Ive heard its possible with a timer and an innerHTML check
 
like, if the html of the whole page changes?
 
1:55 AM
No,
a specific element
specifically `<button id="cooker" onclick="cookieClick(1)">Click!</button>'
like I want to know if someone tries to change cookieClick(1) to another number, it will run function clearDat() and delete their savedata :>
 
how would they do that?
 
in my cookieClicker if you change cookieclick(1) to like(89988123) and click it, itll send that to the entry
Im not very "good" at js, so im going off an old tutorial for a clicker
 
how do you change that value?
 
inspect element
 
er... yeah. so I'm going to take a wild guess, but if what you are trying to do is "secure" an action, the right solution is almost certainly not to obfuscate the triggering of said action, but to make sure that what receives the trigger does not allow insecure actions.
 
2:00 AM
errrrrrr........... uhhhh.... how would I do that??
dumb tactile learner here, I kinda learn off examples XD
 
well, basically, if it happens in the client, you can't really.
 
I dont wanna have to revert to using jquery
as then I cant encrypt the js
encrypted jquery DOES NOT work wlel
well*
 
I have no idea what you are talking about
 
Obfuscate javascript
try obfuscating jquery and running it
it only works with normal js
 
ok. why do you want to do that? what are you trying to prevent your user from doing?
 
2:03 AM
IM trying to prevent them from editing JS
Jquery has a function that detects changes in js
so what I want to do
is if they try to cheat the game by editing how many cookies they send in
 
itll run function clearDat and kill their savedata
 
cheating the game.
that's what you are trying to prevent.
hopefully there's a backend, of some sort?
 
I can corrupt savedata by putting crap values like HI! in the data, so they cant play if they cheat
It saves their data offline via LocalStorage
 
That is not a way to achieve the objective that is bound to succeed
 
2:04 AM
    //clear game savedata
function clearDat() {
 localStorage.removeItem("cursorSave");
  localStorage.removeItem("cookieSave");
 cursors = 0;
 cookies = 0;
}
Currently I use it as a debug option
 
please slow down
 
I could adjust it and not even need to obfuscate my js
sorry
 
I will try to say this as unambiguously as possible:
nothing. nothing you will do in the frontend, will be a "protection" against someone modifying the script and making it do what they want.
if the logic of the game, especially how players interact together, happens in a client, in a browser, that will not work
however nicely you obfuscate it.
there needs to be a server implied, that corroborates what the individual claim about their games
 
Well obfuscator.io is pretty crazy, i doubt anyone could ACTUALLY figure out obfuscated code from there
I mean look at it
 
there are some pretty smart people on earth
but er... I need to go watch series at this point, good luck
 
2:08 AM
this: console.log("huH?!");
becomes this:
https://hatebin.com/ylfnqkucko
I mean thats a bit overkill but you get the point
cya
 
transforms the example from obfuscator.io right back into an understandable function
but anyway yeah cya too
 
2:22 AM
Felix... jsnice.org is just a formatter, it didnt deobfuscate... look at the output: hatebin.com/bhyferltjb
 
 
2 hours later…
3:59 AM
!!welcome TaylorSpark
 
@'TaylorSpark Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
@TaylorSpark Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
> If you have a question, just post it, and if anyone's free and interested they'll help.
No need to ping people.
 
 
2 hours later…
6:14 AM
C++ > JavaScript
 
6:26 AM
jQuery > C++
 
6:41 AM
Getting an error while reading gmail mails using google apps script-
The number of columns in the range must be at least 1.
any idea guys
 
Ask a question?
 
 
5 hours later…
12:07 PM
@TaylorSpark Yes, I see it. I read it. There are deobfuscated function names. Type annotations. Most of the clunky '\x7a\x75\x64\x59\x5a' characters have been translated back into their actual letters. It absolutely did not just format.
 
12:51 PM
Lol, still not very readable, still looks like gibble jabble to me @FélixGagnon-Grenier

Of course its "Easier" to read, but I wouldnt spend time manually converting the leftover encrypted variables just to read a stupid 10 letter piece of js
euw someone !!welcomed me while I was OFFLINE -_-
Can people NOT be annoying.
 
 
1 hour later…
 
6 hours later…
8:26 PM
@TaylorSpark A user who was kicked from rooms multiple times at some point can't create rooms.
If I remember correctly.
 
 
1 hour later…
9:43 PM
Does anyone know what the hell the Application function is? I can't find it anywhere.
 
9:56 PM
Seems like a phantom function
 
@JBis It's a global function which exposes some MacOS specific functions
From what I can see
It's not available under normal node if I understand it correctly
Only in the MacOS specific JS scripting thingy
 
 
2 hours later…
user8729657
11:45 PM
Is it normal, when ever I do npm install (package name) it removes react-dom-router and I have to do yarn add react-dom-router@4.2.2?
 
@MadaraUchiha thanks
 

« first day (3171 days earlier)      last day (1791 days later) »