Is getElementById() efficient?
JavaScript: document.getElementById slow performance?
What's with the Japanese SO's stats? Why is the present perfect used in headlines? In news reports, we often read or hear events introduced with the present perfect, and then the past simple like this:     The film star Jim Cooper has died of cancer. He was 68 and lived in Texas.   What's wrong if we use both first and second sentence in past simple?     The film star Jim Cooper died of cancer. He was 68 and lived in Texas. I often read that in case of Deep Learning models the usual practice is to apply mini batches (generally a small one, 32/64) over several training epochs. I cannot really fathom the reason behind this.  Unless I'm mistaken, the batch size is the number of training instances let seen by the model during a training iteration; and epoch is a full turn when each of the training instances have been seen by the model. If so, I cannot see the advantage of iterate over an almost insignificant subset of the training instances several times in contrast with applying a "max batch" by expose all the available training instances in each turn to the model (assuming, of course, enough the memory). What is the advantage of this approach? How can I switch between keyboard layouts by pressing a keyboard shortcut like on Windows? Possible Duplicate:          On Windows I am able to switch between keyboard layouts by pressing Alt+Shift. Is there a similar keyboard shortcut in Ubuntu? LaTeX/BibTex not arranging citations by order of appearance OpenSource ATI driver - Fan running at full speed all the time I know this is a common problem and have read other topics but couldn't resolve. Anyways yesterday I found a solution - I have 2 graphic cards (hybrid) and they were both on. So I turned one off and installed Jupiter for power management and from there on the fans were quiet and I was happy as hell.  However (:)), yesterday evening I also updated the system and the fan and it's noise came back. I checked whether I am using only 1 graphics card and I am.  c0dehunter@mintBox ~ $ sudo lshw -c video [sudo] password for c0dehunter:    *-display                       description: VGA compatible controller        product: RS780M/RS780MN [Mobility Radeon HD 3200 Graphics]        vendor: Hynix Semiconductor (Hyundai Electronics)        physical id: 5        bus info: pci@0000:01:05.0        version: 00        width: 32 bits        clock: 33MHz        capabilities: pm msi vga_controller bus_master cap_list rom        configuration: driver=radeon latency=0        resources: irq:18 memory:c0000000-cfffffff ioport:c000(size=256) memory:fbcf0000-fbcfffff memory:fbb00000-fbbfffff   Maybe the problem is (false) temp reading from GPU?  c0dehunter@mintBox ~ $ sensors acpitz-virtual-0 Adapter: Virtual device temp1:        +44.0°C  (crit = +105.0°C)  k10temp-pci-00c3 Adapter: PCI adapter temp1:        +47.0°C  (high = +70.0°C)                        (crit = +115.0°C, hyst = +110.0°C)  radeon-pci-0200 Adapter: PCI adapter temp1:       +127.5°C     The thing that is weird is that if I boot into Windows the fan is still at full power (previously it wasn't). Did I f--- up my hardware with software? :)  //OH, yes - I forgot to mention that my laptop is not hot at all. The temps are about 50°C. Date and Time only partially visible in Big Sur Suppose $k$ is a field, $A$ is a $k$-subalgebra of the polynomial ring $k[x]$. Must $A$ be a finitely generated $k$-algebra?   Thanks. Integration by partial fractions; how and why does it work? Could someone take me through the steps of decomposing  $$\frac{2x^2+11x}{x^2+11x+30}$$ into partial fractions?   More generally, how does one use partial fractions to compute integrals $$\int\frac{P(x)}{Q(x)}\,dx$$ of rational functions ($P(x)$ and $Q(x)$ are polynomials) ?    This question is asked in an effort to cut down on duplicates. See .  Also see . Is there a way to block access to or wipe my Google data for a lost/stolen phone Confusion in symbol of subset. If every element of set A ia an element of set B then we say that A is subset of B. A is said to be proper subset if A does not equal B.  My question is - whether the symbol we use to show subset is  same as that for proper subset? I have seen that A is subset of A itself is shown by the same symbol as that for the subset while when we write improper subset, we usually write equal to sign with symbol of subset. So, please help me to know this. How to stop constantly blinking Wifi LED? "viruses" or "virii"? I'm writing a Python application that takes as a command as an argument, for example:  $ python myapp.py command1   I want the application to be extensible, that is, to be able to add new modules that implement new commands without having to change the main application source. The tree looks something like:  myapp/     __init__.py     commands/         __init__.py         command1.py         command2.py     foo.py     bar.py   So I want the application to find the available command modules at runtime and execute the appropriate one.  Python defines an __import__ function, which takes a string for a module name:     __import__(name, globals=None, locals=None, fromlist=(), level=0)      The function imports the module name, potentially using the given globals and locals to determine how to interpret the name in a package context. The fromlist gives the names of objects or submodules that should be imported from the module given by name.       Source:    So currently I have something like:  command = sys.argv[1] try:     command_module = __import__("myapp.commands.%s" % command, fromlist=["myapp.commands"]) except ImportError:     # Display error message  command_module.run()   This works just fine, I'm just wondering if there is possibly a more idiomatic way to accomplish what we are doing with this code.  Note that I specifically don't want to get in to using eggs or extension points. This is not an open-source project and I don't expect there to be "plugins". The point is to simplify the main application code and remove the need to modify it each time a new command module is added. Influence of charged particle's own electric field on itself I read this in my textbook: A charged particle or object is not affected by its own electric field.  Since I find this completely unintuitive and my mind is yelling "wrong! wrong! how could a particle even distinguish between its own field and the external fields?" I would really like to hear an explanation about why this is true, if it is.  (A corollary question that comes to my mind after thinking about this is... What about gravity and mass considering the analogous situation? And the other two forces?) Is it possible to duplicate eyes? This question contains spoilers for anime viewers and early manga viewers.      When Nagato was revived with Edo Tensei, he had Madara's eyes. When Madara was revived, he had his original eyes too (Rinnegan, much like Nagato).   Is this exploitable? Can I repeat this cycle of transplant and revive to duplicate strong eyes? How does that work really? I was trying to solve internet problems, and seem to have made things worse: Now when I start the computer it gets stuck on "Booting system without full network configuration".   Does anyone know how to make it unstuck?   Alternatively: It got messed up when I changed the contents of /etc/network/interfaces, so presumably would work again if I changed it back. How can I edit this file during boot?   I'm using Ubuntu 12.10. "Heard me [infinitive]" vs. "heard me [present participle]"             At that time, you wouldn't have heard me talk about it.   At that time, you wouldn't have heard me talking about it.         At that time, you wouldn't have heard me condemn it.   At that time, you wouldn't have heard me condemning it.         Which one of the above sentences are incorrect and why? Cascading Dropdown I am new to SharePoint 2013. What I need to figure out is based on the following situation. I have several school districts with multiple schools within the school district. I would like to create a cascading dropdown that 1st lists the districts and then will automatically populate a list of schools within a particular district when the district is selected. Can someone tell me if this is possible and if so what steps do I take to achieve it?    Thank you! Press-and-hold or Long-Press Gestures: Unintuitive? Often, I find people struggle with the usage of press-and-hold gestures on mobile/web platforms. The mere thought of having a user press on a defined object and hold for an arbitrary amount of time before the product reacts seems overtly complicated and unobtrusive. My questions are:   For what use cases do press-and-hold gestures best fit? Have there been published studies with regards to press-and-hold gesture intuition? Are there more viable alternatives to this system?