Jquery, javascript - select a element by class with bracket
jquery selector not working with [ ]
Which document class is being used? Is there a way to programmatically determine which document class is in effect?  I'd like to be able to write conditional macros that behave differently depending on which document class is currently being used. Subgroups of finite abelian groups. For every subgroup $H$ of a finite abelian group $G,$ there exists a subgroup $N$ of $G$ such that $G/N \cong H.$ I need to prove this or give a counter example.  I am aware of isomorphism theorems and classification of abelian groups, direct products etc. I read it as a paperback around 2009ish. There are at least two books in the series. In the first book, we learn that the protagonist lives up in the mountains. Her people are distrusted by the people in the plains, and I think have either dark or olive skin. She leaves home to learn magic, something I think is rare in the world she lives in. When she arrives, there's a crazy power-hungry man at her destination and she has to hide who she is because otherwise he'd have her killed to prevent her from surpassing him. At some point, she winds up in a set of chambers set into the mountain where she finds a pool of water and carvings about dragons. Somehow, this leads into her learning to become a dragon, I think perhaps after meeting one. I want to say that the sequel got into her having dreams that turn out to be partly prophetic and partly communication.  One of the reasons the book sticks out in my memory is that, despite the mentions of the protagonists dusky skin, the cover depicts a fair-skinned blonde girl, I think holding a glowing globe of light. Capitalize fields of study? Do I say "I study computer science," or "I study Computer Science"? Similarly, "I really liked that computer science course," vs. "I really liked that Computer Science course." Intuition on the Kullback-Leibler (KL) Divergence Blackboard bold variants for Greek letters It is common (or it used to be) to use a blackboard-bold variant of \mu to denote roots of unity in some mathematical papers.  However, despite searching (several times, periodically over several years) I have never been able to locate any package or technique that makes this possible, other than using Metafont or possibly hunting through the font definitions to see if it is something I can create a variant of (along the lines of the suggestions in Section 8 of the Comprehensive LaTeX symbol list).  Thus far, I haven't been sufficiently motivated to learn how to do any of this (although it probably would have resulted in a net time savings), and I feel like I cannot be the only person who would have tried.  Is anyone aware of an existing way to produce this character? Images instead of radio buttons or dropdown list? What are the differences between struct and class in C++? This question was .  Now I'd like to learn the differences between a struct and a class in C++. Please discuss the technical differences as well as reasons for choosing one or the other in OO design.  I'll start with an obvious difference:   If you don't specify public: or private:, members of a struct are public by default; members of a class are private by default.   I'm sure there are other differences to be found in the obscure corners of the C++ specification. .NET create scheduled task on server fails with E_ACCESSDENIED I have an ASP.NET website (in C#) that takes in user data and then attempts to create a windows scheduled task.  Of course, this works great on the DEV machine, but fails to run on the server.  I'm trying to figure out what permission(s) are required on the ASPNET user (or anonymous web user) to create tasks.  The error is:  Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))  Stacktrace:      at MyScheduler.NewWorkItem(String TaskName, Guid&amp; rclsid, Guid&amp; riid, Object&amp; obj)      at MyScheduler.CreateTask(String name)   I've done some searching, and the suggested resolution is to use the web.config 'impersonate' flag to force the application to run as a user with sufficient permissions, as opposed to the ASPNET account which may not have those permissions.  Example:  &lt;system.web&gt;     &lt;identity impersonate="true" /&gt; &lt;/system.web&gt;    Unfortunately, this does not seem to resolve the issue.  From the documentation I read, this should run as the anonymous web user, but it seems that user does not have enough permissions.  I altered the setting to specify a specific domain user that happens to be an administrator on the machine.  Example:  &lt;system.web&gt;     &lt;identity impersonate="true" userName="WindowsDomain\YourUserName" password="YourPassword" /&gt; &lt;/system.web&gt;    Doing this allowed the application to successfully create the Windows Scheduled Task.  So, obviously, with the correct set of Windows 2003 permissions I can get the app to perform as it does in the development environment.  However, I'm not about to place the network or machine administrator account's user credentials in plain text on a Web.config file.  Does anybody happen to know what permissions exactly need to be set in order to get the ASPNET account to behave as desired?  EDIT:  The Win32 API is being used to create scheduled tasks. Choosing power supply, how to get the voltage and current ratings? Power supplies are available in a wide range of voltage and current ratings.  If I have a device that has specific voltage and current ratings, how do those relate to the power ratings I need to specify?  What if I don't know the device's specs, but am replacing a previous power supply with particular ratings?  Is it OK to go lower voltage, or should it always be higher?  What about current?  I don't want a 10 A supply to damage my 1 A device. Can I use the Google font 'Lato' for a logo design? I am creating a logo and would like to use the Google Font 'Lato', can I use this font in my logo design or are there copyright/limitations I need to worry about? I can't find anything online other than that it is an open source font that can be used in anyway you want (maybe that's my answer but I just want to make sure). Also, is it a bad idea to use a web-based font for a logo? I have had no problems exporting .fbx files for Unity except recently some of my .fbx started to rotate the mesh. The asset is correctly oriented, but the mesh is rotated 90 degrees. Is there an explanation and fix for why this happens sometimes, and works properly otherwise? How do you prove the  from statistical mechanics? To prove entropy will only increase with time? How to prove? Please guide. Syncing folders outside Dropbox using Symbolic Links and Junctions I've been reading a lot of information on this and yet I'm still unsure if its possible.  What I want to achieve is: sync a folder that is outside Dropbox and any changed to that folder or the files within get mirrored to the Dropbox folder and the Dropbox server.  This is what I've tried: I've install Link Shell Extension. Picked a folder with 10 pictures inside and created a junction for it inside the Dropbox folder. When I delete a pictures from inside the original folder (outside Dropbox) the change is reflected in the Junction folder inside Dropbox Folder, not on the server.  The exact same behaviour with the Symbolic Link option.  If I manually select Pause Syncing from Dropbox system tray icon and then Resume syncing = it uploads the changes to the server.  I know I can move all my files inside Dropbox folder and create the junctions/symlinks at their original locations but I want to do it the other way around.  Also what is the difference between choosing the Junction and Symbolic Link Option in regards to a folder?  Thank you. Please tutor the usage of patchcmd and xpatch I understand that the  package provides a command \patchcommand that can be used to add material at the beginning and/or end of the replacement text of an existing macro. It works for macros with any number of normal arguments but has limitations for macros with optional arguments.   was introduced to take care of the above limitations as well as provide some additional functionality.   Now, when I try to comprehend the usage of the above packages by reading the user documentations (, ), I get the feeling that they move to implementation details a little too quickly compared to other package documentations. There are not enough explanations or examples.  I also tried to grasp the concepts by reading the  and more or less understood whatever is presented there. However, that is not enough.  So, do you think we can ask for a complete tutorial on the usage of patchcmd and xpatch? Explaining the usage of the relevant commands like \patchcmd, \pretocmd and \apptocmd as well as, \xpatchcmd, \xpretocmd and \xapptocmd with sufficient examples should suffice. Let $(X,d)$ be a metric space. How to prove that for any closed $A$ a function $d(x,A)$ is continuous - I know that it is even Lipschitz continuous, but I have a problem with the proof:  $$ |d(x,a) - d(y,a)| \leq d(x,y) $$ for any $a\in A$ - but we cannot just replace it by $|d(x,A) - d(y,A)|\leq d(x,y)$ since the minimum (or infimum in general) can be attained in different points $a\in A$ for $x$ and $y$, so we only have that $$ |d(x,A)-d(y,A)|\leq d(x,y)+\sup\limits_{a,b\in A}d(a,b) $$ which does not mean continuity. Find all $n\in\mathbb N^+$ such that the sum of the digits of $5^n$ is equal to $2^n$.   I've solved this, but I think the proof is a bit weird and I wonder if there's a better one.    My proof:  We can see that $n\neq 1$, $n\neq 2$, $n=3$, $n\neq 4$ and $n\neq 5$.  Let $n&gt;5$. Notice that $5^6$ has $5$ digits, while $\frac{2^6}{9}=7\frac{1}{9}$, so $5^6$ has to have at least $8$ digits in order for the sum of the digits to be able to at least reach $2^6$.  Everytime $1$ is added to the exponent of $5$, the amount of digits $5^n$ gets is at most $1$, while $\frac{2^{n+1}}{9}-\frac{2^n}{9}=\frac{2^n}{9}&gt;3$, so the lowest amount of digits it has to have to reach $2^n$ becomes higher by at least $4$.  When $n=6$, the amount of digits $5^n$ has is already lower than the amount it has to have in order to reach $2^n$, and I've just proved that the amount it has to have in order to reach $2^n$ grows faster than the amount of digits $5^n$ has, therefore $5^n$ will never be able to reach $2^n$ when $n&gt;5$.  Hence the only solution is $n=3$. Likelihood Ratio Test for Exponential Distribution with a Limited Parameter Space How to compute $\int_0^{\pi/2}\frac{\sin^3 t}{\sin^3 t+\cos^3 t}dt$? Calculating with Mathematica, one can have $$\int_0^{\pi/2}\frac{\sin^3 t}{\sin^3 t+\cos^3 t}\,\mathrm dt=\frac{\pi}{4}.$$   How can I get this formula by hand? Is there any simpler idea than using $u = \sin t$?     Is there a simple way to calculate $$ \int_0^{\pi/2}\frac{\sin^n t}{\sin^n t+\cos^n t}\,\mathrm dt $$ for $n&gt;3$? Could anyone come up with a reference for this exercise? Sudo doesn't work on Aliases I have added alias ll='ls -la' in /etc/bash.bashrc but sudo ll is not working. Is there a way to "source" bash.bashrc? In a related post, another user suggesting creating an alias for sudo with a space after it. Eg. alias sudo='sudo ' but there wasn't any context to this answer. Should I add this to my bashrc? Seems hackish.  What is the correct method for adding an alias for my sudo one-off commands?