Following this , I'm finding that I can't execute an 'onclick' handler like the handler set up here:   function handler() {   console.log(5); } &lt;button onclick="handler()"&gt;&lt;/button&gt;    This is the only module I use: &lt;script type=&quot;module&quot; src=&quot;../js/js_test.js&quot;&gt;&lt;/script&gt;. It's in the header. This is the error I get:  It works when I have this in my module: let button = document.querySelector('button'); button.onclick = handler;  Any ideas? P.s. I can't access variables I write on my module on the console. I thought I once could do this. Don't know if that's helpful.
What is the scope of variables in javascript? Do they have the same scope inside as opposed to outside a function? Or does it even matter? Also, where are the variables stored if they are defined globally?
Story where someone gets disconnected from computers for cybercrime I read a short (in the range of 5-20 pages) science fiction story a while ago, and can't remember the title of the story or its author at the moment.  The basic story is that of a super-savvy computer hacker who got all of his knowledge of computers removed from his brain, temporarily (one year?) for cybercrime, including (IIRC) some form of identity theft, and is released into the public without any jail-time or anything. This is very hard on him, for this future-Earth relies heavily on highly interconnected computers for basic and daily needs. This is not immediately clear at the start of the story, but it becomes apparent after a little while.  Part of the story includes the main character (I don't remember if he is granted a name in the story) wanders into a cafe or a bar, and is invited to play a game of digital, . He has to turn down the invite, though, because he doesn't know and is blocked from knowing how to use computers. He also really doesn't want the other characters to know this, because apparently having your computer knowledge removed from your brain for cybercrime is a major stigma in that society. The character also has difficulty using his (futuristic equivalent of a) credit card, as that also requires some computer knowledge.  Any ideas? remote action function encountering CPU time out limit exception Please note: I posted this question about an hour ago on my account (I just made it as I am new to the site). I revisited my post and saw that I had not given definitions of what I was asking (I thought they were common notations) and it would not let me edit the post for some reason so I will ask here now and hopefully someone can delete the other thread.  How to prove for a finite group $G$ that $|\langle g \rangle|=o(g)$?  Here are the definitions:  Let $G$ be a finite group and $g \in G$  $o(g)$ is the smallest $m \in \Bbb{N}$ such that $g^m=e$ (the identity element of the group). (If such an $m$ exists)  $\langle g \rangle=\{g^m : m \in \mathbb{Z}\}$  I really don't know how to show that this is true I tried to say let $o(g)=m$ and then show that $|\langle g \rangle|$ has exactly $m$ elements but I wasn't even sure it did because it would contain the elements $g^0,...g^{m-1}$ so that would mean it's true but what about $g^{-1}$ and the other elements with negative coefficients so it seems like it would actually be bigger than $m$?  Thanks. Should OK button be on left of Cancel button or vice versa?   Are there any studies suggesting either of the solutions? When I run sudo, what exactly happens to my environment?  When I run sudo command, it doesn't seem to see my or root's environment. For example, my path for both includes /usr/local/bin, but if I try to run one of the program's without the full path, it fails.  I thought sudo ran as root, and hence got root`s environment. Is there a different way that bash executes under sudo than under root or my normal user?  EDIT:  I have been using sudo -i lately, but recently it has been causing problems because my current working directory gets set to /root. This is as expected (sorta), but I still don't understand why sudo isn't recognizing my executables in /usr/local/bin.  EDIT:  I am running Fedora 15. Remember all opened files with split windows and their positions in Emacs B2B application: users has its own users B2B Scenario I am trying is that:  The following Roles exists in the system:  Super Admin Super Admin Staff Owner (client) Admin (owner i.e. client and creates admin to define sales counters) Sales Counters  That means there are users who'll create their own sub users e.g.  [FLAG-A] ROLE &quot;SUPER ADMIN&quot; creates a ROLE &quot;Owner&quot; and &quot;OWNER&quot; creates its own sub users ROLES i.e. &quot;ADMN&quot; &amp; &quot;SALES COUNTER&quot;. Each role obviously has its info to login to the system I tried to design database as following:  In this diagram I am assuming that main user creates sub user that in my view many to many relationship so I have to add table between them as &quot;USER_PERSON&quot;. Problem is to set &quot;WHO CREATED USER&quot; in the system. I mean which user has created sub user as described in [FLAG-A]  Please check this diagram Can I preemptively pay my credit card bill before a charge is posted? I have a text box that will have a currency string in it that I then need to convert that string to a double to perform some operations on it.   "$1,100.00" → 1100.00  This needs to occur all client side. I have no choice but to leave the currency string as a currency string as input but need to cast/convert it to a double to allow some mathematical operations. When should we consider a dataset as imbalanced? I'm facing a situation where the numbers of positive and negative examples in a dataset are imbalanced.  My question is, are there any rules of thumb that tell us when we should subsample the large category in order to force some kind of balancing in the dataset.  Examples:   If the number of positive examples is 1,000 and the number of negative examples is 10,000, should I go for training my classifier on the full dataset or I should subsample the negative examples? The same question for 1,000 positive example and 100,000 negative. The same question for 10,000 positive and 1,000 negative. etc... The staircase paradox, or why $\pi\ne4$ g++ undefined reference with a shared library What is the final price if the bid price exceeds the ask price in an order driven market? How to prove that $4^m + 5^m$ is divisible by 9 when m is an odd number I am trying to use congruence theorems, specifically Euler's Theorem for a proof. How to use "grep" command to find text including subdirectories I want to find all files which contain a specific string of text. The grep command works, but I don't know how to use it for every directory (I can only do it for my current directory). I tried reading man grep, but it didn't yield any help. "How big of a problem" vs. "how big a problem" Quite a few phrases in English are constructed like so:     How [adjective] a [noun]...?   This is the question form of the construction, which is often answered with the negative:     Not that [adjective] a [noun].   or the positive:     Quite [adjective] a [noun].   However, from time to time I'll hear the word 'of' inserted before the 'a', e.g.:     Not that [adjective] of a [noun].   This usually sounds wrong to me, with the exception of the case where the adjective 'much' is used.  So, this sounds fine to my ear:     Not that much of a problem.   whereas this doesn't:     Not that loud of a noise.   Why is it that 'much' should be used with 'of', and other adjectives not?  Is it because 'much' is seen as measuring a quantity (of something), whereas other adjectives that may be used in this construction are seen as measuring the quality of a whole thing? chrome disable or change keyboard shortcut ctrl+shift+c developer tools console? How can I disable the Keyboard Shortcut ctrl+shift+c in Google Chrome to bring up the Developer Tools console?  I find myself trying to copy+paste content from the browser and mistakenly typing ctrl+shift+c when I really want to do ctrl+c instead.  How can I disable the current keyboard binding or change ctrl+shift+c to do the same as ctrl+c in Google Chrome? I'm using Dataloader to Upsert a Child Account to Parent Account using an external ID.  When the Upsert is complete, the Child overwrites the parent, it's not not connecting the Child Account to the Parent Account.  ((See Answer Below)) Is C++ CLI a superset of C++? Would a C++  compiler be able to compile some large sets of C++ classes without modifications?   Is C++ CLI a superset of C++? Is there a built-in checksum utility on Windows 7? Is there a built-in checksum/hash utility on Windows 7?