Call javascript function which name is in variable

The problem is next: Assume that we have a select. Onchange event we need to call some function, but name of this function kept in variable. How to call this function ?


UV Mapping Doesn't Display in UV/Image_Editor

I've gone through tutorials and get the UV Mapping to work when testing on a simple block. However, when trying this on a bigger model, the UV Mapping won't display in the UV/Image_Editor. The Eiffel Tower model is all one mesh and I select Smart UV Project. Any suggestions.


Multiple class prediction with unbalanced data

I have 4 different web sites (A/B/C/D) and need to predict whether a user will rather convert on A/B/C or D or not convert at all. My data set has 100000 rows and only 100 of those are converted user (A/B/C), so very unbalanced. My explanatory variables are user session length, device type, refferal ect (most of them are factors). In case I had only one web site it would be quite easy, because I could have used logistic regression. Which statistical technique would you recommend for this type of question.


Does there exist an operation that could turn the set of all negative real numbers into an abelian group?

The answer is no for familiar operations of addition and multiplication. But could there exist any other operation that could turn the set of all negative real numbers into an abelian group. If yes, what is it? If no, how could I prove it?


apt-get source: E: Unable to find a source package

I want to see the source code of a apt package to install the software manually without root privilege.   I googled and the way to see the source code is to use apt source. So I did but not worked as follows.    sudo apt-get source silversearcher-ag Reading package lists... Done E: Unable to find a source package for silversearcher-ag   I googled some more posts and I noticed I have to uncomment deb-src lines in sources.list file, according to .   So I modified the file as follows. However even after that there's same error message to me. How to solve this issue? Thanks.   diff --git a/sources.list b/sources.list index d925310..3f579e3 100644 --- a/sources.list +++ b/sources.list @@ -2,9 +2,9 @@ deb http://archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse  deb http://archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse  deb http://security.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse  deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable -deb-src [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable -deb-src [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable +# deb-src [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable +# deb-src [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable  deb [arch=i386,amd64] https://cran.rstudio.com/bin/linux/ubuntu xenial/ -deb-src [arch=i386,amd64] https://cran.rstudio.com/bin/linux/ubuntu xenial/ +# deb-src [arch=i386,amd64] https://cran.rstudio.com/bin/linux/ubuntu xenial/  deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main -deb-src https://dl.winehq.org/wine-builds/ubuntu/ xenial main +# deb-src https://dl.winehq.org/wine-builds/ubuntu/ xenial main


I am just starting off with hobby electronics and can't get hold of the concept of Load. Do electrical appliances also "Draw" current. An air conditioner upon start dims the light. My point is that if the voltage difference is not enough to move whatever machinery is in there then the air conditioner should stay off or not work. How come it "draws" electricity upon start?


Is there a one-liner that allows me to create a directory and move into it at the same time?

I find myself repeating a lot of:  mkdir longtitleproject cd longtitleproject   Is there a way of doing it in one line without repeating the directory name? I'm on bash here.


Change Pilkor MKP 10nF with WIMA MKP 10 10nF Capacitor

I need your help with capacitors...  I'm restoring a 160A inverter welding machine, model Fimer X164. One of the capacitors has cracked and I need tochange that..  Information about the capacitor on the board (i.e. exploded):  PILKOR 10nF 300V-Y2 PCY2 130 MKP  I can't find an identical capacitor but find similar values.  I have  1- WIMA MKP 10 10nF 400 630  Can I use capacitor? Or what do you suggest as a replacement for this capacitor?    THANK YOU FOR ALL Answers other question:


I understand how  in space stations works. It is by normal force the wall exerts on the foot.   But I wonder how to start it in the first place. I just learned about centrifugation in a centrifuge. To start, the side-wall of the tube produce a tangential acceleration. Because of the inertia (tendency to go tangentially) of the material contained, normal force is thus needed to keep the material from going through the tube and keep it rotating in a circle.   But in the space station, there is no friction, so there is no way to create that tendency that produces the need for normal force in the first place.


groups $G$ such that $Aut(G)$ is trivial

Is it true that, if $G$ is a group such that $Aut(G)$ is trivial, then $G$ is of order at most $2$? Thanks in advance.


Which is the correct form of the sentence?      There has been many instances of outbreaks in vaccinated populations    vs.     There have been many instances of outbreaks in vaccinated populations?   The question that this is supposed to be a duplicate of does not mention there has or there have. We have many learners here who are not going to be able to deduce much of anything from it.


how to read a file from command line, then output a file with the same name but different extension in python

I want to read a file from command line first, then run my script and output a file with a different extension.  for example: if I do python script.py apple.java there should be an output file called banana.md  I do not want to rename the file.  Dont worry about path or anything.  n= sys.argv[-1] base = os.path.splitext(n)[0]   os.rename(n,base + ".md")


I am working on a theme that runs code only once on theme activation (using the after_switch_theme hook). I am wondering if it's possible to safely prevent my theme from being activated if certain requirements are not met.  Specifically, I want to check if WPML is installed and activated or not, and if not, prevent my theme from being activated. Checking if WPML is activated is not an issue, my issue is how to safely stop my theme from being activated. I am afraid that using PHP's die() might cause issues with a half activated theme. Even if die() were to work properly, I would still need to activate another theme and then activate WPML, and finally then reactivate my theme.  Here's what the code would ideally look like:  add_action('after_switch_theme', 'theme_custom_install'); function theme_custom_install() {     if( $wpml_is_missing ) {         prevent_theme_switch();     } }   Is there a native WP way to do this, or does a plugin exist that does this?


If I see a lightning I must wait many seconds to hear the thunder because of the different velocity of light and sound in the air. This is true, I think. But why thunders lasts 1-2 second and the lightning only milliseconds? I've thought that this thing is given by the length of it: Maybe the noise of the thunder arrive from all the point of the lightning and so the noise that arrive from the top arrive later then the bottom one. But really I don't know. Thank you for your answers


I have switched laptops recently, and I decided I want to make the switch from Windows to Linux (and have gone with Ubuntu for now).  I have the "old" SSD from my previous machine, which has a Windows 7 installation on it. I'm trying to install Windows 7 on VMWare so I can run some of the programs that are only available on Windows (that Wine can't handle).  I also have my Windows 7 key, but I don't know which "edition" it is (Home vs. Premium vs. Ultimate, etc.)  The furthest I've gotten is looking at explorer.exe's attributes to find this:     Product Version: 6.1.7601.17567   But I couldn't find what that means.  I have the SSD mounted and am able to read/access the old filesystem. How can I find out what Windows edition I need to install on VMWare?


What is the difference between apologize and apologise and how could use it in suitable place?

I am confused every time when I am using these words, then using any one of them without knowing its difference. Can anyone help me how could I use these words in appropriate situation?


I have a new latitude 5450 with ubuntu 14.04 and Intel 7265 wireless card. My problem is that the wifi connection is unstable and sometimes is does not work at all.


I have found the hydrogen wave functions and would now like to calculate the function that describes the orbitals so that I can plot this function and see how they look.  I don't know how I can do that and it is crazy how I cannot find anything on the subject on the internet as if there was no relation between the wave functions and the orbitals.  Could you please tell me what I need to do to get a function $r(\theta,\phi)$ out of my wave functions $\psi(r,\theta,\phi)$.


How to find if a value matches one of the values from an array in Javascript

FYI: this is for a simple quiz with just a single input field for each answer.  I have the following Javascript if statement to check if the value entered into an input field is correct (in this case, if the value entered is 'england').  $('input').keyup(function () {     if ($(this).val().toLowerCase() == 'england') {         //Stuff     } else {         //Other Stuff     }; });   However, I want to allow for alternative spellings, so I need a few possible answers for each question - it seems sensible to use an array for this as so...  var ans1 = new Array(); ans1[0] = "England"; ans1[1] = "Englund"; ans1[2] = "Ingland";   How can I change my if statement to say 'if the input field value equals any of those values from the array, then do the following'?  Any help would be greatly appreciated! Thank you.


Cardinality of “x−y∈Q”-equivalence class of 1/2 √

For x,y∈I:=[0,1] define the relation on I as x−y∈Q.  How big (using cardinal number) is the cardinality of the equivalence class [1/√2]?  I have tried to solve it by finding the equivalence class but I'm not sure about the method that I can solve the question.  Please, can you help me to solve it.


The Rules Compendium says, "The point of origin of a spell is always a grid intersection," then later says, "An  spell functions like a burst spell, except that the magic continues to radiate from the point of origin for the duration of the spell" (135 and link mine).  However, many area spells that are also emanations see their areas centered on the caster. For example, the ever-popular 6th-level Sor/Wiz spell  [abjur] (Player's Handbook 200) has the entry Area: 10-ft.-radius emanation, centered on you.  Does the caster of a spell that has an area entry of emanation centered on the caster pick a grid intersection adjacent to his space as the spell's point of origin? If so, then can a big caster sometimes see that emanation affect less than the space the caster occupies? Or does the caster of a spell that has an area entry of emanation centered on the caster count squares from the edges of his space into squares around the caster… in a manner that's largely contrary to the rest of the game and the description of area spells themselves? Or is there another option that I'm just not seeing?  If addressing examples makes an answer clearer, I'm particularly interested in what area is covered by the antimagic field spell's effect when the spell's cast by a Gargantuan creature (that has a space of 20 ft.) and if that big caster suffers (or doesn't suffer) the field's effect. I'm also interested in if a living Gargantuan caster of the 6th-level Clr spell  [abjur] (PH 199–200) sees that spell effect prevent living creatures from approaching only some—rather than all—of the caster's squares.    Note: I cite the Rules Compendium because it's often considered the last word on the rules, yet here seems to provides little guidance, essentially parroting the Player's Handbook on  (175). Feel free to use either source. I've not tagged this question  because I don't really need this lawyered but playable, but rules supporting opinions are, of course, preferred. Inspired finally to ask by , but this's been bugging me for ages.


iptables block outgoing on port, allow selected IP's

Debian 7  iptables v1.4.14 (there are no rules)  Need to block all outgoing connections on ports 25,587,465 and allow only on specific IP's.  What I've tried:  iptables -A OUTPUT -p tcp --match multiport --dports 25,587,465 -j REJECT iptables -A OUTPUT -p tcp -s 127.0.1.1 --match multiport --dports 25,587,465 -j ACCEPT iptables -A OUTPUT -p tcp -s **.**.**.*** --match multiport --dports 25,587,465 -j ACCEPT iptables -A OUTPUT -p tcp -s **.**.**.*** --match multiport --dports 25,587,465 -j ACCEPT   I tried different order for rules, but it's not working as expected.


How to move science equations from latex (using equalx for ubuntu) to Libre office presentation?

I am trying to move equations which i created in equalx equation editor for ubuntu to Libre office presentation. I tried to copy paste the equation code in insert-object-Formula but the size of equation is very small. It can't be readable. Also one can't increase its size. The only way I know is the following:   save it as tex file run it using latex to create dvi and then PDF Then using GIMP-Tools-Rectangular selection Paste the selection in presentation.   I looking for an alternative.


How do you get system diagnostic files from macOS?

I am trying to debug a crashed (or hanging) app. How do I get the diagnostic files from the crash?


Distinguish among submit buttons on HTML form with two submit buttons

I'm using a form to send info to a PHP page (using 'GET').  I'd like to have two buttons underneath the form: one to preview the generated page, and one to download the generated page.  I found this solution for the preview part:  <script type="text/javascript">     $("form").submit(function() {         $("form").attr('target', '_blank');         return true;     }); </script>   Which works great.  To make the generated page available for download, I was generally using a normal submit button:  <input type="submit"        name="submit"        id="submit"        onClick="myFunction()"        value="Download Bonus Page" >   and on the generated PHP page, at the very top I added  <?php     $filename = 'bonuspage.html';     header('Content-disposition: attachment; filename=' . $filename);     header('Content-type: text/html');     // ... the rest of your file ?>   I'm wondering how I can combine both functions, because when I click either button, it's always the preview that opens - I can't get the download to work...


Is there a maximum to bash file name expansion (globbing) and if so, what is it? See  on tldp.org.  Let's say I want to run a command against a subset of files:  grep -e bar foo* rm -f bar*   Is there a limit to how many files bash will expand to, and if so what is it?  I am not looking for alternative ways to perform those operations (e.g. by using find).


Prove that the 4 degree polynomial has at least two roots

In my assignment I have to prove that:  Let $P(x)=x^4+a_{3}x^3+a_{2}x^2+a_{1}x+a_{0}$. Prove that if P has a root in $x_{0}$ and $P'(x_{0})\ne0$ then P has a least two roots.  My solution has a problem in it, and I wondered if you can help me with it. Since the functoin is a polynomial then it is differentiable always. If we calculate the limit: $$\lim _{x\to \infty}P(x)=\lim_{x\to-\infty}P(x)=\infty$$ I  tried to solve is by showing through Rolle's theorem by contradiction that the derivative is always $\ne0$ but no one told me that $a_{i}\ne0$ so I'm stuck. I know I should you IVT but I'm pretty much stuck. Your help is appriciated.


How to copy vertex groups from duplicate meshes

I accidentally deleted a couple vertex groups from a model I'm working on and need to recover them. I have the original model with all the vertex groups so I need some way I can transfer the deleted vertex groups from the original mesh to the new mesh.


How to create executable .exe file from .jar file?

I've created an app using netbeans IDE but it is in .jar format.How do I convert it into .exe to use on individual system ?


Should I include all toolbar items inside menus?

An application I'm working on has a toolbar that doesn't have all of the buttons as commands inside the menus in the application. For me this feels quite awkward.  The  mention:        Include commonly used menu items as buttons or components in your toolbar.   Make special provisions for toolbar accessibility if your window does not have menus.      However they don't explicitly say that all items in the toolbar should be contained in a menu.  I'm looking for solid grounds to back my point with the developer team, can you provide any guidance?  So far, my only argument would be that you can list the keyboard shortcut for a specific command in the menu/toolbar explicitly.


For finite $\Sigma$, if $\Sigma \vdash A$ then $\Sigma \models A$

In my book I have a theorem called "Soundness theorem" and it says:     For finite set $\Sigma$, if $\Sigma \vdash A$ then $\Sigma  \models A$   Can someone tell me what the symbol $\vdash$ and the symbol $\models$ means?


How to pluralize the following initialism

I'm having difficulty finding an answer to this. If I need to pluralize the following phrase "Request for Support" to "Requests for Support" would I put it as, RFSs, RFS's, RsFS, R.F.S.'s, R.'sF.S. or RFSes? This is an honest argument I am having at work and need an answer ASAP. Thank you!


saving an image with a transparent background

i've got some issues with my program: minimap = pygame.Surface((100, 100)) background = pygame.Surface((minimap.get_width(), minimap.get_height())) background.fill((0, 0, 0)) background.set_alpha(0) minimap.blit(background, (0, 0, minimap.get_width(), minimap.get_height())) pygame.image.save(minimap, "minimap.png")  the thing is, I want the background to be transparent because I display it on something else later on and i want to see behind it, so I've used another surface where I've set a color and put the alpha to 0, after that the background is set to minimap. If you have any clue please let me know


Acceptable r-square value for multiple linear regression model

I'm currently working on my thesis, more specifically I'm analyzing some data collected from researchers about the project's they're working on.  In the end, I have performed a multiple linear regression to verify which determinants (budget, team size,...) significantly influence the external impact of a research project. While the dependent variable (project impact) has been assessed from a survey (conducted among the institute's researchers), the independent variables are based on objective measures.  In such a scenario, what would be an acceptable r-square percentage? Could a low percentage be justified by the "subjectiveness" of the dependent variable? I've heard that the scientific area matters... i.e. in physics you rather need to have a r-square > 95% while in sociology > 5% might be already interesting...  Do you have any references about this?


Don't show hidden communities on "Top Posts" in network profile

I love the Hidden communities feature. Its official definition is (emphasis mine):     Hiding a community means other users will not see it in your Communities list or Top Network Posts.   The "Communities list" part works, but the "Top Network Posts" can be interpreted in two ways; the widget visible on each  (where they're hidden) and the  (where they aren't). Please hide them there as well.  Demonstration  I have Worldbuilding as "hidden" in my Settings' "Hide Communities":    ... but it still shows up in  page, even when not logged in:    Note: Not a duplicate; actually the only answerer there . Also note that while the existing bug report was marked as by design, this is a feature request to change the design.


How to lower subscript level, using macro or package or some global setting

related   Is there a way to tell latex, via a macro or otherwise, to lower the subscript a little more, without changing or modifying the actual code itself after \begin{document}? But with a macro  or package, that I can put in the preamble which will affect this setting?  The above link has an answer to adjust the subscript level, but one has to edit each place in the code to do that, and actually modify the Latex itself, as shown   $\Pi_{\raisemath{2pt}{-}}$   I have a document that is auto-generated, and I'd like to add a macro or use package, in the preamble to globally change this setting. The reason is, when I have, as a MWE, something like this:  \documentclass[11pt]{article}% \usepackage{amsmath} \begin{document} \[ \{x_{N-1},x_n,x_1\} \] \end{document}   I find when the subscript is UpperCase, then it becomes very close to the same level as x which makes it little hard to read, as it looks like N is almost on same level as x.  I have many such cases. Here is the output    Again, I do not want to modify the Latex code after \begin{dociument} since it is autogenerated and will be overwritten each time.   Using TL 2015 on Linux.  Update: Thanks to comment below, I tried \usepackage[low-sup]{subdepth} which I did not know about, and it does lower the subscript a little. It looks better now. Here is side-by-side    MWE used for the above RHS:  \documentclass[11pt]{article}% \usepackage{amsmath} \usepackage[low-sup]{subdepth} \begin{document} \[ \{x_{N-1},x_n,x_1\} \] \end{document}


error: linking with `cc` failed: exit code: 1 on Linux

I know that similar questions have been asked () and there is also an , but I could not figure out why this is happening in my case. I get the following error when I am trying to run simple hello world program username@computer:~/hello$ cargo run    Compiling hello v0.1.0 (file:///home/username/hello)                         error: linking with `cc` failed: exit code: 1   |   = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/home/username/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/home/username/hello/target/debug/deps/hello-48f1e5d3f3df5b46.1y16o1qfye96o7m0.rcgu.o" "/home/username/hello/target/debug/deps/hello-48f1e5d3f3df5b46.3rngp6bm2u2q5z0y.rcgu.o" "/home/username/hello/target/debug/deps/hello-48f1e5d3f3df5b46.4oc10dk278mpk1vy.rcgu.o" "/home/username/hello/target/debug/deps/hello-48f1e5d3f3df5b46.4xq48u46a1pwiqn7.rcgu.o" "/home/username/hello/target/debug/deps/hello-48f1e5d3f3df5b46.544l4wfz89vbhoea.rcgu.o" "/home/username/hello/target/debug/deps/hello-48f1e5d3f3df5b46.oa3rad818d8sgn4.rcgu.o" "-o" "/home/username/hello/target/debug/deps/hello-48f1e5d3f3df5b46" "/home/username/hello/target/debug/deps/hello-48f1e5d3f3df5b46.crate.allocator.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-nodefaultlibs" "-L" "/home/username/hello/target/debug/deps" "-L" "/home/username/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,--start-group" "-Wl,-Bstatic" "/home/username/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-9318d1aa9575dbf9.rlib" "/home/username/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-e3cd3f44688b2d97.rlib" "/home/username/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc_jemalloc-2f4890fbea3bd5e0.rlib" "/home/username/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-a0ddde720c2c46c5.rlib" "/home/username/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc_system-9c41ffe739844496.rlib" "/home/username/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-af766b046896c123.rlib" "/home/username/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-00b776688b98de66.rlib" "/home/username/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-d05a4396ceff8bc8.rlib" "-Wl,--end-group" "/home/username/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-fe16a4dcdcd95bab.rlib" "-Wl,-Bdynamic" "-ldl" "-lrt" "-lpthread" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lutil" "-lutil"   = note: /usr/bin/ld: cannot find Scrt1.o: No such file or directory           /usr/bin/ld: cannot find crti.o: No such file or directory           collect2: error: ld returned 1 exit status  I have tried:  Reinstalling Rust Checking whether GCC is installed (it is) Directly compiling the file via rustc main.rs (same error)  It seems to be issue with the new Rust compiler. I am using rustc 1.29.1 (b801ae664 2018-09-20) on Linux mint 18.3 , Kernel version is $ uname -a Linux Computer 4.10.0-38-generic #42~16.04.1-Ubuntu SMP Tue Oct 10 16:32:20 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux


how to send variable from .php file to .js file?

I hope someone is able to help me. The problem is the following one: 1)I have module in which a assign the variable in order to send to the template file php.tpl  <?php ... $testvar="Hello from alex!"; $variables['testvar'] = $testvar;  ... ?>   This variable can be shown in the php.tpl file like   <?php print $testvar?>   2)I have separated .js file How can i get access to this varuiable inside .js file?  I know how it'll be if .js file is inside .php.tpl:  <?php $testvar="Hello from alex!"; ?> <script type="text/javascript"> var myVar = '<?php print $testvar?>'; </script>   The problem is how to do the same if these two files .js and .php.tpl are separated?


list multiplication creates aliased lists instead of separate entities as other types

Why does this creates aliased arrays ?!! is this a expected behavior ? In [57]: p=[[]] * 3  In [58]: p[0].append(2)  In [59]: p Out[59]: [[2], [2], [2]]


Excel 2011 conditional formatting, problems w/ adding deleting rows

I have a standard form I use that requires an row to be highlighted one of 7 colors when a condition is met in a cell in that row.  The form varies wildly in length.  Currently, I am using conditional formatting for this behavior.  However, every time I delete or add rows, it breaks apart the conditional formatting into 2 pieces.  This causes some issues and "managing the rules" is pretty time consuming.  One thought I had would be to keep the formatting on another sheet in the workbook that I do not edit, and then applying it at the end, if that is possible.  Has anyone found a work around for this?  Is this kind of entire row formatting with color based on one cell possible in a way that does not require conditional formatting?


What solutions does the equation $4x≡2\mod 10$ have? (Hint, it will have more that one.)  What about solutions to an equation $ax≡d \mod n$, where $d=\gcd(a,n)$? This is the question that appear in our universities last year paper. But it is seems very difficult for me like for first part I am able to solve by simplifications I got $x=5.Z+3$ as solution which makes sense and seems fair but for the second one I have no idea how can I approach that. Can you please help me out with that one. I tried to simplify that by using Euclidean algorithm but still I didn't get any idea that what actually the solution will be. My final exam is on 2nd of next month and because of covid I am unable to contact in person for any help. So any help from this site will be appreciated. Thanks you for looking at this question!


Rudin's Principles of Mathematical Analysis Theorem $1.20 (a)$

$1.20 (a)$: If $x,y \in \mathbb{R}$ and $x \gt 0$, then there is a positive integer n such that $nx \gt y$.   The proof in the book:     Let $A$ be the set of all $nx$, where $n$ runs through the positive integers. If (a) were false, then $y$ would be an upper bound of $A$. But then $A$ has a least upper bound in $R$. Put $\alpha = \sup A$. Since $x \gt 0$, $\alpha -x \lt \alpha$, and $\alpha -x$ is not an upper bound of $A$. Hence $\alpha -x \lt mx$ for some positive integer $m$. But then $\alpha \lt (m+1)x \in A$, which is impossible, since $\alpha$ is an upper bound of $A$. $\blacksquare$   My question: for $A$ to have an upper bound in $R$ it also has to be non-empty. The author doesn't say that anywhere in the proof. Why? The proof must be incomplete, right?


Adding many columns (to many layers) using QGIS?

The label toolbar uses fields in the attribute table of vector layers to fine tune labeling (Data defined labeling). That's the main reason i'm looking for that, but it may have more applications.  I'd like to automatically add some format columns instead of adding them manually every time.   Do you know a plugin or a way to do this manipulation automatically on multiples layers ?  I tried to get the QGIS tool "Add a field to attribute table" into a quick model which works properly, but it creates a new memory layer. And I'd like just new fields.  ##Add_ETIKT_Field=name ##myvlayer=vector ##myvlayer=output vector outputs_QGISADDFIELDTOATTRIBUTESTABLE_2=processing.runalg('qgis:addfieldtoattributestable', myvlayer,'ETIKT_Y',1,15.0,4.0,None) outputs_QGISADDFIELDTOATTRIBUTESTABLE_1=processing.runalg('qgis:addfieldtoattributestable', outputs_QGISADDFIELDTOATTRIBUTESTABLE_2['OUTPUT_LAYER'],'ETIKT_X',1,15.0,5.0,myvlayer)   What I'm looking to automate is :   Open the attribute table Edit button Field Calculator button Add Column + Type + length + Precision   It seems there's some ideas in , but I'd love to avoid coding anything, or at least at minimum go through the modeler.     Adding and Removing Fields       To add fields (attributes), you need to   specify a list of field definitions. For deletion of fields just   provide a list of field indexes.   if caps & QgsVectorDataProvider.AddAttributes:     res = layer.dataProvider().addAttributes([QgsField("mytext", QVariant.String), QgsField("myint", QVariant.Int)])  if caps & QgsVectorDataProvider.DeleteAttributes:     res = layer.dataProvider().deleteAttributes([0])


The probability of choosing the third card

Five cards are numbered as the following $$5 , 5 , 5 , 4 ,4$$ Three cards are chosen randomly , whats the probability that the third card is numbered 4 ? Without replacement My turn Let the first two cards are numbered 5 and the third is4 So we get $$3C1 \times 2C1 \times 2C1$$ Let the first is 5 and the second and the third are 4 So  $$3C1 \times 2C1 \times 1$$  The same thing happens if the first and the third are 4 and the second is 5 so The probability is $$\frac{ the sum }{5P3}$$ Is the solution correct ?


What is the purpose of the Character Table in style files?

What is the reason to insert the code below at the beginning of a style file? For example, the code below can be found on lipsum.sty.   %% \CharacterTable %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z %%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z %%   Digits        \0\1\2\3\4\5\6\7\8\9 %%   Exclamation   \!     Double quote  \"     Hash (number) \# %%   Dollar        \$     Percent       \%     Ampersand     \& %%   Acute accent  \'     Left paren    \(     Right paren   \) %%   Asterisk      \*     Plus          \+     Comma         \, %%   Minus         \-     Point         \.     Solidus       \/ %%   Colon         \:     Semicolon     \;     Less than     \< %%   Equals        \=     Greater than  \>     Question mark \? %%   Commercial at \@     Left bracket  \[     Backslash     \\ %%   Right bracket \]     Circumflex    \^     Underscore    \_ %%   Grave accent  \`     Left brace    \{     Vertical bar  \| %%   Right brace   \}     Tilde         \~} %%   What is it for?


Training Neural Network with Highly Correlated Inputs

I am trying to train a basic Neural Network to predict Football final scores based on:  i) Time in the match  ii) Current Score  iii) Parameters representing strength of home and away team.  In order to generate my training set, I sampled a number of games at regular times throughout the match (i.e. every 5 minutes).  When I trained my network based on these samples, the performance wasn't particularly good (for one it did not learn that at the end of the game the score never changes).  I believe one of the problems is that the training samples are very highly correlated as they are only separated in time by 5 minute intervals. What would be a good tactic to train the network given these highly correlated training samples?


So I'm trying to append list value to another one by turns. This is my code: lis1 = [1, 2, 3, 4, 5] lis2 = [6, 7, 8, 9, 10] for i, value in enumerate(lis2):   lis1.append(i) print(lis1)  My expected output is [1, 6, 2, 7, 3, 8, 4, 9, 5, 10] But what I got is [1, 2, 3, 4, 5, 0, 1, 2, 3, 4] Any help would be appreciated


Counting files in leaves of directory tree

I came up with the following snippet for counting files in each subdirectory:  for x (**/*(/)); do print $x; find $x -maxdepth 1 -type f | wc -l; done   The command outputs consecutive pairs (one below the other) as follows:  directory_name # of files   I would like to change the code above to:   Print each match on the same line (i.e. directory_name ':' # of files) Only count files if the folders are leaves in the directory tree (i.e. they don't have any subfolders).    How can I do that?


What is current standard practise for redirects of http sub/domains

If I have widget.net domain, I assume users are going to type in either www.widget.net or widget.net and expect to get to the same place in either case. But taking that as a given which is best practise:   In either case browser shows the url they originally entered If the user enters www.widget.net it should change to widget.net (widget.net remains unchanged) If user enters widget.net it should change to www.widget.net (www.widget.net remains unchanged)   Also if have widget.com domain as well what should happen.  (I know how to do this now using Amazon Route53 and Amazon S3, just not what I should do)


after installation 12.04 LTS (04) - is not encrypted?

Am testing here 12.04.04 LTS for amd64-mac and after installation - intended with encryption of /home - the installation is not encrypted ?! with which command can I find out, if the partition is encrypted ?!


I've had this problem for a while. When I import a vector object to Photoshop, it doesn't have the smooth curve that's needed. I believe this is a feature that can be controlled, but I can't find anything to help me. Could someone tell me how I can fix this?


Characterization of (Lebesgue) measurable sets

I am stuck trying to show a characterization of (Lebesgue) measurable sets from Caratheodory's definition of measurable. This means we do not have the notion of an inner measure, as it is not required to define measure via Caretheodory's criterion.  Show that a bounded subset $E\subset \mathbb{R}$ is (Lebesgue) measurable if there is some bounded interval $I\supset E$ such that $$\lambda^*(I)=\lambda^*(E)+\lambda^*(I\setminus E)$$  I am trying to prove that $E$ is measurable by showing that if such an $I$ exists, then for any interval $J$ $$\lambda^*(J)=\lambda^*(J\cap E)+\lambda^*(J\setminus E)$$  I am trying to prove this when $J\subset I$ (it is clearly true when $J\cap E=\emptyset$, and then the result will follow).  So I require $$\lambda^*(J)\ge\lambda^*(J\cap E)+\lambda^*(J\setminus E)$$ for $J\subset I$. Manipulating the set relations doesn't seem to get me anywhere.


Calling force:navigateToSObject from a Nested Component

I am going through the documentation found here , and during the portion where they create the Contact List view on page 36 they cover the click event using the built in force namespace action: navigateToURL.  No matter what I try - $A is null. I have debug enabled, and can see that the line immediately before that call is working fine, and receives the ID of the record for the component, but $A is always coming back null.  I have tried e.force, e.<myNameSpace>., e.c., etc and cant imagine that this is normal.  Everything else has been pretty smooth - but then this came along and I have spent several hours looking for anyone experiencing the same thing.  This is a last resort before I scrap both this component and the one above it and start again from scratch.  Error being thrown is:     Uncaught error in markup://ui:click : Cannot read property 'setParams'   of null   I am using the exact code from the document at this time.  Any ideas to try appreciated.


In LightningOut, firing an event multiple times from the VF page javascript to LightningOut component gives Event error

I've seen several questions regarding this issue, but none of the answers work in LightningOut. When an event is fired from the VF page's javascript (VF page event to Lightning Component), it gives an error when it is fired more than once (I am sending changed param values): Event.setParams(): cannot modify all params in an event that has already been fired. : false -- also if I removed the setParams, it just says you can't fire it after it's already been fired. This is true for either APPLICATION or COMPONENT events. Any ideas how to get the event to be able to be fired more than once?


What is the package name for the Ubuntu installation wizard?

I need to log a bug against the 12.04 installer (the installation wizard that you run off the CD/DVD). What is the package name for this application?


Java library to calculate the relative difference between two Strings?

I'm looking for a way to do programmatically detect the delta ratio between two strings. I can use string length, but this doesn't give much useful information for like-sized but different inputs. There is a java diff tool on google code , but it hasn't been updated since 2011 and I don't need to actually modify the Strings themselves.   I'm attempting to do change detection with threshold values, for instance: Updated string is 42% different than existing string, are you sure you want to proceed?  Does anyone know of a library that could be used for this, or is java-diff-utils my only option? I couldn't find much in apache commons, and googling is returning irrelevant information.


How to merge a 4 band tfwx file into one tif for use in Qgis

I have a tfwx file and when I open it in arcmap it is displayed as 4 bands.  I would like to use the georeferenced file in qgis since I know nothing about arcmap.


Getting Null pointer exception when try to run a web automation java project which uses MS excel as dataProvide from Linux(Cent8)

I'm having a selenium web automation project developed in selenium Java. We use ms excel as dataprovider and having a utility class TestDataHelper(which uses apache poi APIs methods) to access the data from xls file. The framework works perfectly well on the windows server. however, now we are in process of migrating our test environment to the centOS8.2 with Gnome(GUI) interface. The AutoDev env(new linux server) has been configured with the required browsers, Eclipse and Liberoffice7.0 already. Now when I try to run the same clone project from Linux(centOS) server using eclipse IDE, I'm getting the Null pointer exception. the error suggests that is faced a Null Pointer in the getRowCount(String) of the TestDataHelper class. Here, I'm not sure if this is an excel compatibility issue between Windows and Linux or MS excel vs Liberoffice calc or something else altogether. Any help here would be much appreciated. [RemoteTestNG] detected TestNG version 6.14.3 SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/home/vikas.verma/.m2/repository/ch/qos/logback/logback-classic/1.1.2/logback-classic-1.1.2.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/home/vikas.verma/.m2/repository/org/slf4j/slf4j-nop/1.7.28/slf4j-nop-1.7.28.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See  for an explanation. SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder] [TestNG] [WARN] Ignoring duplicate listener : com.iel.potter.automation.utilities.PotterApiListener ARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass$3$1 (file:/home/vikas.verma/.m2/repository/org/codehaus/groovy/groovy-all/2.4.5/groovy-all-2.4.5.jar) to method java.lang.Object.finalize() WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.CachedClass$3$1 WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release 2020-10-23T22:58:26.754 [iel] INFO  [com.iel.potter.automation.utilities.PotterApiListener] - About to begin executing Test Test [Utils] [ERROR] [Error] java.lang.NullPointerException: Cannot invoke "com.iel.potter.automation.utilities.TestDataHelper.getRowCount(String)" because "com.iel.potter.automation.utilities.DataProviderClass.excel" is null at com.iel.potter.automation.utilities.DataProviderClass.getData(DataProviderClass.java:34) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:564) at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124) at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:74) at org.testng.internal.MethodInvocationHelper.invokeMethodNoCheckedException(MethodInvocationHelper.java:45) at org.testng.internal.MethodInvocationHelper.invokeDataProvider(MethodInvocationHelper.java:131) at org.testng.internal.Parameters.handleParameters(Parameters.java:706) at org.testng.internal.ParameterHandler.handleParameters(ParameterHandler.java:49) at org.testng.internal.ParameterHandler.createParameters(ParameterHandler.java:37) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:924) at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) at java.base/java.lang.Thread.run(Thread.java:832)


There are some automatic method (package, class, macro) in LaTeX to do a text collage similar to that showed in the image?     If not, is would be possible without too much manual work?. The background, the font and the shape of the collage does not matter (is enough a rentangular shape).


How can I round up my answer upto three decimal places in java such that 10.5 should be printed as 105.000

I am getting output of my code as 10.5 which is an interest amount but I want the answer rounded upto three decimal places. Even if the result does not have decimal it should be displayed with a suffix ".000".  I answer I am getting is - 10.5 The answer I want is - 105.000  How can I do this.  Here is my code:  import java.util.Scanner;  public class Account {      int id;     double balance;     double interestRate;     public int getId() {         return id;     }     public void setId(int id) {         this.id = id;     }     public double getBalance() {         return balance;     }     public void setBalance(double balance) {         this.balance = balance;     }     public double getInterestRate() {         return interestRate;     }     public void setInterestRate(double interestRate) {         this.interestRate = interestRate;     }       Account(int id,double balance,double interestRate)     {         this.id=id;         this.balance=balance;         this.interestRate=interestRate;     } }  class Solution {     public static void main(String args[])      {         Scanner sc=new Scanner(System.in);         int id=sc.nextInt();         double balance=sc.nextDouble();         double interestRate=sc.nextDouble();          Account p=new Account(id,balance,interestRate);          int noOfYears=sc.nextInt();         sc.close();          double q=calculateInterest(p,noOfYears);          System.out.println(q);     }          public static double calculateInterest(Account a,int noOfYears)         {             double x=a.interestRate*noOfYears/100;             double y=x+a.interestRate;              return y;           }  }   Inputs are: 1 1000 10 5  Actual Output- 10.5 Output I want-105.000


Can and should relational database contain tables that don't have primary keys?

So this  says: "All tables in a relational database should have a primary key".  it also says that every table should have a primary key.   But if I look  and  they say that tables that contain only foreign keys are okay.   So who is right? And which would be the correct answer under a university setting?


Question about Klein-Gordon field Lagrangian

I was studying Klein-Gordon field with Peskin QFT. I know that the Hamiltonian of the scalar field can be written as $$H=\int d^3x\left[\frac{1}{2}\pi^2+\frac{1}{2}(\nabla\phi)^2+\frac{1}{2}m^2\phi^2\right]$$ However, when the book computes the time dependence of $\pi$, Heisenberg equation of motion is written as the image below.  In the image, Hamiltonian is different from above. Specifically, $\frac{1}{2}(\nabla\phi)^2$ became $-\frac{1}{2}\phi\nabla^2\phi$. How is this possible?


Will Ubuntu be ok after formatting windows 7?

I currently have two partitions on one hard drive. Windows 7 is installed on partition C, and Ubuntu is installed on partition D.  I wish to format the Windows Partition and replace windows 7 with windows 8.1. Ubuntu wasn't installed with Wubi.  Will Ubuntu be ok ?


Why couldn't Yoda detect Palpatine's use of Force concealment?

Palpatine was using Force concealment. I think somebody of his calibre of Force would require a substantial amount of Force just to use that.  Since Yoda is the oh-so-hallowed being of wisdom and Force skill they make him out to me, wouldn’t he detect this level of Force? Why didn’t he sense the Chancellor, at least in visions as he slept or in meditation if not consciously?


Why do electrons flow in the opposite direction to current?

I'm 15 and just had a question about physics and electric fields. I've read that electrons flow in the opposite direction to current. Isn't current the flow of negative charge and  therefore the flow of electrons? Or are they referring to conventional current?


Prove that there is no simple group of order $216=2^{3}\cdot 3^{3}$.   I feel like I am supposed to use the Index Theorem here but when I use Sylow's Third Theorem I have that $n_{3}\in\{1,4\}$. I am not sure how to rule out the possibility that $n_{3}=4$. If I could then could use the fact that the unique Sylow 3-subgroup is normal in G to factor it and apply the Index Theorem. Any suggestions?


How do I avoid text from being pixelated?

MWE:  \documentclass[english]{article}  \usepackage[T1]{fontenc} % This seems to be the problem \begin{document} Test \end{document}   If the fontec line is not commented out I get:    If I comment it out I get:    I need to use that package for the reasons given in .  How can I get the quality of the second version while using the fontec package?  I am using TeXworks, but a colleague with LyX has the same results.


Of course the speed of light is constant relative to everything. Its frequency can change, but its speed is constant. Photons may be absorbed by atoms or release by atoms as energy, but as soon as it is released, does it have infinite acceleration to 300,000 m/s instantaneously as soon as it is released (assuming it is released basically at rest)?


Can I trust in advertised 4 stops of image stabilization in a cheap kit lens?

I have an image stabilizer in my 18-55mm kit lens that came with the Canon EOS 2000D DSLR. I recently tested it with the largest possible focal length of this lens. I saw that the viewfinder image vibrated far less with the stabilizer, so apparently it's doing something.  My 10 test shots with 1/5 second shutter and IS were occasionally shaken, even though I attempted to hold the camera steadily.  However, the 10 test shots with 1/10 second shutter speed were okay if I attempted to hold the camera steadily.  Then I tested with image stabilizer off, attempting to hold the camera steadily.  The 10 test shots with 1/20 second shutter and no IS were occasionally shaken.  The 10 test shots with 1/40 second shutter and no IS were basically okay.  Also, I have tested fast-moving subjects like cars to capture motion blur. As it's wet outside, I took the images through my small window so I have to be quick whenever I see a car driving past. My experience is that with 50mm fixed lens without IS, 1/80 second shutter will be fine even if I have to take the image really quickly and have no time to ensure my hands are steady. Also, my experience with 18-55mm kit lens with IS is that 1/20 second shutter is required with IS on, if I have to capture the image really quickly.  So, my experience is that trying to keep my hands steady, the IS helps only for 2 stops. Similarly, when taking the picture quickly, the IS also helps only for 2 stops.  However, the manufacturer claims the IS is a 4-stop IS. As the stops are exponential, the manufacturer is claiming 16-fold improvement whereas I'm observing only 4-fold improvement.  Can I trust the manufacturer's claims for IS improvement? Or is it just false marketing data?  Is the IS as effective with any focal length, or might it be the case that for this particular lens, the 4 stops advertised only works for a certain optimal focal length, and at the longest focal length, it's not 4 stops?  Note my results with steady hands somewhat contradict the 1/(focal length * crop factor) rule. 1/40 seconds was fine with steady hands even though the rule gives 1/88 seconds, with crop factor 1.6 and focal length 55 mm. However, the 1/(focal length * crop factor) rule seems to be valid for me if I have to capture the image really quickly. But perhaps that's the subject of another question...


How to split a line at a vertex in QGIS 2.2?

Is there a plugin out there that will split a polyline at vertexes?  My arcgis license isn't high enough to run the tool.  I'm using 2.2.


Vote Count Wrapping Issue on Some Questions in Android App

In the Android app, the vote count on some questions gets wrapped. Thanks to Doorknob's comment I've found that it doesn't appear to be on just those with double digit negative vote counts or those with vote counts of 100 or more. As you can see in one of the screenshots below, the question has a vote count of 429 but is not getting wrapped. Another with 121 votes is though. Each question I've come across with double digit negative vote counts does get wrapped (3 examples of those below).  Same result in both horizontal and vertical orientations. Not sure if it's different on a larger screen size though (mine screen size is 4.3).  I'm on version 0.1.58  Here are links and screenshots for examples:  Negative Vote Counts            100+ Vote Counts Wrapped          100+ Vote Counts Not Wrapped


Exact Duplicate:        I was reading an article on MSDN where I found a mention to google-fu. It says, “To search for C++ delimeters and code snippets is going to take a little Google-fu on the reader's part.” what does google-fu mean?


How can I disable a tab inside a TabControl?


How do I check if a string is a number (float)?

What is the best possible way to check if a string can be represented as a number in Python?   The function I currently have right now is:  def is_number(s):     try:         float(s)         return True     except ValueError:         return False   Which, not only is ugly and slow, seems clunky. However I haven't found a better method because calling float in the main function is even worse.


I know this question has been asked before but the solution is always ntfsfix which ended up not working for me. The error message is:  Error mounting /dev/sda4 at /media/user/OS: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000" "/dev/sda4" "/media/samrat/OS"' exited with non-zero exit status 14: Windows is hibernated, refused to mount. Failed to mount '/dev/sda4': Operation not permitted The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option.   I was trying to move something I downloaded on the Ubuntu partition to the windows partition so I need write privileges to do this. It's worked before but I suddenly got this error message. I booted into Windows 10 and made sure to shut down and boot into Ubuntu. Didn't work. ntfsfix didn't work and gave the following error message:  Mounting volume... Windows is hibernated, refused to mount. FAILED Attempting to correct errors...  Processing $MFT and $MFTMirr... Reading $MFT... OK Reading $MFTMirr... OK Comparing $MFTMirr to $MFT... OK Processing of $MFT and $MFTMirr completed successfully. Setting required flags on partition... OK Going to empty the journal ($LogFile)... OK Windows is hibernated, refused to mount. Remount failed: Operation not permitted


Let $\omega$ be a complex number such that $\omega^5 = 1$ and $\omega \neq 1$. Find   $$\frac{\omega}{1 + \omega^2} + \frac{\omega^2}{1 + \omega^4} + \frac{\omega^3}{1 + \omega} + \frac{\omega^4}{1 + \omega^3}.$$   I have tried combining the first and third terms & first and last terms. Here is what I have so far:     \begin{align*} \frac{\omega}{1 + \omega^2} + \frac{\omega^2}{1 + \omega^4} + \frac{\omega^3}{1 + \omega} + \frac{\omega^4}{1 + \omega^3}  &= \frac{\omega}{1 + \omega^2} + \frac{\omega^4}{1 + \omega^3} + \frac{\omega^2}{1 + \omega^4} + \frac{\omega^3}{1 + \omega} \\  &= \dfrac{\omega(1+\omega^3) + \omega^4(1+\omega^2)}{(1+\omega^2)(1+\omega^3)} + \dfrac{\omega^2(1+\omega) + \omega^3(1+\omega^4)}{(1+\omega^4)(1+\omega)} \\ &= \dfrac{\omega + 2\omega^4 +\omega^6}{1+\omega^2 + \omega^3 + \omega^5} + \dfrac{\omega^2 + 2\omega^3 + \omega^7}{1+\omega + \omega^4 + \omega^5} \\ &= \dfrac{2\omega + 2\omega^4}{2+\omega^2 + \omega^3} +     \dfrac{2\omega^2 + 2\omega^3}{2+\omega+\omega^4} \end{align*}   OR     \begin{align*} \frac{\omega}{1 + \omega^2} + \frac{\omega^2}{1 + \omega^4} + \frac{\omega^3}{1 + \omega} + \frac{\omega^4}{1 + \omega^3}  &= \frac{\omega}{1 + \omega^2} + \frac{\omega^3}{1 + \omega} + \frac{\omega^4}{1 + \omega^3} + \frac{\omega^2}{1 + \omega^4} \\ &= \dfrac{\omega(1+\omega) + \omega^3(1+\omega^2)}{(1+\omega)(1+\omega^2)} + \dfrac{\omega^2(1+\omega^3) + \omega^4(1+\omega^4)}{(1+\omega^3)(1+\omega^4)} \\ &= \dfrac{\omega + \omega^2 + \omega^3 + \omega^5}{1+\omega + \omega^2 + \omega^3} + \dfrac{\omega^2 + \omega^4 + \omega^5 + \omega^8}{1 + \omega^3 + \omega^4 + \omega^7} \\ &= \dfrac{2\omega+\omega^2+\omega^3}{1+\omega+\omega^2+\omega^4} + \dfrac{1+\omega+\omega^2+\omega^4}{1+2\omega^3+\omega^4} \end{align*}


Are custom scroll bars easier to use or do they just look "nice"?

I've noticed that a lot of webapps have started using custom scroll bars. A few examples include Facebook, Trello, Google Docs, and Twitter. I'm sure you can think of some more:    How do these types of custom scrollbars affect usability? I often find them harder to click on, and they have a habit of disappearing when I'm not scrolling. Having a smaller area to grab and a disappearing target makes it harder for me to use the web app, but I might be a minority. Is there anything indicating a benefit to the user experience when using these, or is it just done to make things look more fancy and "Web 2.0"?


Redefining the symbol for the end of proof to \blackbox

In a .cls file, which is referenced by my latex code, I have the following definition for the end of proof symbol:  \newcommand\qedsymbol{\hbox{\rlap{$\sqcap$}$\sqcup$}} \newcommand\qed{\relax\ifmmode\else\unskip\quad\fi\qedsymbol} \newcommand\smartqed{\renewcommand\qed{\relax\ifmmode\qedsymbol\else{\unskip\nobreak\hfil\penalty50\hskip1em\null\nobreak\hfil\qedsymbol\parfillskip=\z@\finalhyphendemerits=0\endgraf}\fi}}   Can somebody please explain what is happening here, and how should I change it, so that I can just have the black box symbol (■) at the end of the proofs.


Currently looking at  question on Stack Overflow.  I notice that the title of the web page is "fullscreen - How do I..."  For the first time, I noticed that S.O. places one of the question's tags in the page title.  However, I'm not sure how this is chosen.  It's not strictly alphabetical, nor is it the left-most tag in the question, nor is it the tag with the most followers.  So, my first question is, how is tag displayed in the page title determined?  My second question is, do you agree that in the example question, the title tag should be xna, since that has more followers, is listed first, and is generally more relevant to the question?


Are there any latex compilers which support parallel compilation for a book?  For example, the chapters in a multi-part latex document can potentially be compiled on separate cores to speed up compilation:   \begin{document} \pagestyle{plain} \onehalfspacing \frontmatter \include{title} \include{abstract}  \mainmatter   \include{chapter1} \include{chapter2} ... \include{chapterN}  \begin{appendices} \include{appendices} \end{appendices}  \backmatter \bibliographystyle{unsrt} \bibliography{references}  \end{document}


How should I make my overleaf use pi intervals for sinx instead of numbers

I am trying to make a sin function and I want to know how I can make the sin function use pi intervals on the x-axis, instead of decimal numbers. This is what I have so far: \usepackage{pgfplots} \pgfplotsset{compat=1.15} \usepackage{mathrsfs} \usetikzlibrary{arrows} \pagestyle{empty} \begin{document} \definecolor{qqwuqq}{rgb}{0,0.39215686274509803,0} \begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=1cm,y=1cm] \begin{axis}[ x=1cm,y=1cm, axis lines=middle, ymajorgrids=true, xmajorgrids=true, xmin=-7, xmax=7, ymin=-8.185617977528088, ymax=3.5599999999999996, xtick={-6.283185307179586,-4.71238898038469,...,6.283185307179586}, ytick={-8,-7,...,3},] \clip(-7,-8.185617977528088) rectangle (7,3.56); \draw[line width=2pt,color=qqwuqq,smooth,samples=100,domain=-7:7] plot(\x,{sin(((\x))*180/pi)}); \begin{scriptsize} \draw[color=qqwuqq] (-6.5,-0.6334269662921345) node {$f$}; \end{scriptsize} \end{axis} \end{tikzpicture} \end{document}```


What's in the empty space between a nucleus and the electrons?

I was thinking the other day about how the empty space in an atom is relatively huge, but I was wondering, is it really empty space? Originally I just assumed it was a vacuum and that was it, but that just posed more questions. Please will somebody explain to me what is in the "empty" space of an atom? Sorry if the question isn't entirely clear; I'm only 16 and just completed my GCSEs (so please try to keep the answer fairly basic)!!


What do i set the CURLOPT_POSTFIELDS. When an element name is used many times

I am trying to post images with cURL in PHP using multipart/form-data header.  I want to know what setting the "CURLOPT_POSTFIELDS" for curl.  I want to send like this value for server.  The element name has been used many times.  -----------------------------7e21b0029071a Content-Disposition: form-data; name="updates[]"  1 -----------------------------7e21b0029071a Content-Disposition: form-data; name="set_images[]"  1 -----------------------------7e21b0029071a Content-Disposition: form-data; name="updates[]"  1 -----------------------------7e21b0029071a Content-Disposition: form-data; name="set_images[]"  1 -----------------------------7e21b0029071a Content-Disposition: form-data; name="images[]"; filename="1.JPG" Content-Type: image/jpeg  ** raw image data ** -----------------------------7e21b0029071a Content-Disposition: form-data; name="images[]"; filename="2.JPG" Content-Type: image/jpeg  ** raw image data ** -----------------------------7e21b0029071a Content-Disposition: form-data; name="images[]"; filename="3.JPG" Content-Type: image/jpeg  ** raw image data * -----------------------------7e21b0029071a Content-Disposition: form-data; name="images[]"; filename="4.JPG" Content-Type: image/jpeg  ** raw image data ** -----------------------------7e21b0029071a--   I was teryed this option.  it was not work.  $data = array(     'updates[0]' => '1',     'set_images[0]' => '1',     'updates[1]' => '1',     'set_images[1]' => '1',     'updates[2]' => '1',     'set_images[2]' => '1',     'updates[3]' => '1',     'set_images[3]' => '1',     'images[0]' => new CURLFile('1.JPG'),     'images[1]' => new CURLFile('2.JPG'),     'images[2]' => new CURLFile('3.JPG'),     'images[3]' => new CURLFile('4.JPG'), );  curl_setopt($curl, CURLOPT_POSTFIELDS, $data);   Is it impossible to send the raw data of the first example?


Trouble with Ubuntu installation in VirtualBox

I'm having some problems getting Ubuntu to install. I'm running Windows XP Home (32bit) on an older Dell Dimension 2350 with 1GB ram, trying to install either Ubuntu 12.04 LTS (32Bit) or 13.04 (32Bit) inside VirtualBox. Both versions of Ubuntu don't make it past the purple screen with the loading dots. When I change over to the "non-graphical" version, with the scrolling text, it starts to list a series of tests that are either [ok] or [fail]. There are only a few that fail, and my search on those indicates that they're not that important. There are a few settings for this VM that I've tried tweaking based on other searches for an answer (such as Enabling IO APIC, switching the Chipset to ICH9, changing the Video Memory size, Enabling 3D Acceleration, and Enabling PAE/NX. More or less, I get to the same point.  (Once I got to the screen with Desktop in the upper left corner, and the red-ish background. But an error came up that basically said there was an error, and that I could send off a report or hit cancel. I hit cancel, and instead of the installer coming up, nothing happened)  The last check that is run is "Stopping System V runlevel compatibility [ok], and a bunch of Starting [ok]s. Then I get a black screen, then a half purple half black screen graphical error. Sorta looks like snow, I don't know how else to describe it. After a while. That goes away and is replaced by a black screen again. Nothing else happens.    I like to think I'm fairly good at solving problems and following instructions, but I don't even know how to go about diagnosing this. Most of the solutions I've seen seem to involve entering things into a command line, but doesn't the OS have to be installed to be able to do that?  This is a for fun/learning experience project, so it's nothing too pertinent. But I would like to figure this out.


Does one need a transit visa for Athens?

A friend of mine is traveling from Iran to Vienna, he has got a Visa for 6 months. We were able to find flights as cheap as $130.15 with Aegean Airlines. ( We have never heard of such an airline before )   Anyways, there is a layover of an hour in Athens. Does he need to get a transit Visa?


Why is using only one "a" enough in this sentence?

[...] Leonardo da Vinci became renowned for his multiple talents: he was a painter, architect, engineer, mathematician and inventor.   In the above sentence, why has only one "a" been used, even for words that begin with a vowel?


Change wallpaper at random time intervals?

I was recently searching for wallpaper managers for Ubuntu 18.04. I remember coming across one that had the option of changing the wallpaper at random time intervals. Problem is, I cannot find what it was called. Does anyone here know of any? Thank you.


String[] lines = ascii.getText().split("\\n"); for(int i = 0; i < lines.length; i++){     System.out.println(lines[i]);     if(lines[i] == "")         System.out.println("abc"); }   ascii is a JTextArea. This is a sample code I'm just testing it before I put it in my program. Right now it splits the lines from ascii into separate strings, and then displays them.   It does that correctly and includes the empty lines which I want. Now I want to check if line is empty (it can contain only spaces). I've tried with combinations of   if(lines[i] == "", " ", "\n"...)   but none of those worked. Can anyone explain how to do it?


Multiple commands during an SSH inside an SSH session

I have a local machine which is supposed to make an SSH session to a remote master machine and then another inner SSH session from the master to each of some remote slaves, and then execute 2 commands i.e. to delete a specific directory and recreate it.  Note that the local machine has passwordless SSH to the master and the master has passwordless SSH to the slaves. Also all hostnames are known in .ssh/config of the local/master machines and the hostnames of the slaves are in slaves.txt locally and I read them from there.  So what I do and works is this:  username="ubuntu" masterHostname="myMaster" while read line do      #Remove previous folders and create new ones.     ssh -n $username@$masterHostname "ssh -t -t $username@$line "rm -rf Input Output Partition""     ssh -n $username@$masterHostname "ssh -t -t $username@$line "mkdir -p EC2_WORKSPACE/$project Input Output Partition""       #Update changed files...     ssh -n $username@$masterHostname "ssh -t -t $username@$line "rsync --delete -avzh /EC2_NFS/$project/* EC2_WORKSPACE/$project""  done < slaves.txt    This cluster is on Amazon EC2 and I have noticed that there are 6 SSH sessions created at each iteration which induces a significant delay. I would like to combine these 3 commands into 1 to get fewer SSH connections. So I tried to combine the first 2 commands into   ssh -n $username@$masterHostname "ssh -t -t $username@$line "rm -rf Input Output Partition && mkdir -p EC2_WORKSPACE/$project Input Output Partition""   But it doesn't work as expected. It seems to execute the first one (rm -rf Input Output Partition) and then exits the session and goes on. What can I do?


Having error in saving image link to the database using pdo

I want to do is make a image uploader system and send the image to upload folder and save the link to the database.  My problem is I got this to errors in my images.php can anyone help me with this please.    html:  <form method="post" enctype="multipart/form-data">
 <input type='file' name="image" id="imgInp" accept="image/*" />
 <input type="submit" name="submit" id="submit" value="submit" /> </form>   script:     images.php  <?php $host = "localhost"; $user = "root"; $pass = ""; $db = "test";  $dbc = new PDO("mysql:host=" . $host . ";dbname=" . $db, $user, $pass); $dbc->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);  $image = addslashes(file_get_contents(@$_FILES['image']['tmp_name'])); $image_name = addslashes(@$_FILES['image']['name']); $image_size = getimagesize(@$_FILES['image']['tmp_name']);  move_uploaded_file(@$_FILES["image"]["tmp_name"], "upload/" . @$_FILES["image"]["name"]); $location = "upload/" . @$_FILES["image"]["name"];  $q = "INSERT INTO students( image ) VALUES( :image)";  $query = $dbc->prepare($q); $query->bindParam(':image', $location);   $results = $query->execute();  ?>   script for image upload:


Okay so a continuation from , where you experts intro'd me to , which can basically execute PHP within a Windows XP environment.  So now I've got it installed, but the tray icon forever shows YELLOW, and when I visit any PHP page in my browser, it just shows me the PHP source!  Also, when I visit "" in IE7 it gives me a 404 Not Found, FF3 just shows a blank page.    BTW I've tried "Restart All Services" and restarting my machine, but it still won't work.  Any ideas? Any of you had this problem and solved it? Please help me here, I'm desperate to execute PHP client-side and I'm just reverting to testing on-server for now!


According to p. 881 of the TikZ & PGF manual for version 3.0.1a, the following LaTeX manuscript:  \documentclass{article} \usepackage{pgfkeys} \begin{document}     \pgfkeysdefargs{/my key}{#1+#2}{\def\a{#1}\def\b{#2}}     \pgfkeys{/my key=hello+world}     |\a| is \a, |\b| is \b. \end{document}   should typeset as follows (sans background color):    In other words, it appears the vertical bars serve as verbatim. (This is not the first time that I come across this usage. So far I've ignored it whenever I came across it, but I feel now's a good time to get to the bottom of it.)  However, when I compile this manuscript with pdflatex, the body of the resulting PDF document looks like this:    Why aren't the vertical bars recognized as verbatim markers? And why do they show up as dashes?    This is not a duplicate of . This is not about the font but about the fact that the vertical bar is not interpreted as verbatim.


Get HH:MM:SS from datetime2 by giving seconds

I search a command that give formated time like HH:MM:SS when I give just seconds. As example, if the search command is \formatetime{}, it should give the following result: \formatetime{50}   % should print “50” \formatetime{60}   % should print “1:00” \formatetime{3661} % should print “1:01:01”  Is it possible to do that?


How to track progress of file upload using jquery

I am using the following code to upload the file and data.  $(function() {     //Callback handler for form submit event     $("#core").submit(function(e)     {         var formObj = $(this);         var formURL = formObj.attr("action");         var formData = new FormData(this);         $.ajax({             url: formURL,             type: 'POST',             data: formData,             mimeType: "multipart/form-data",             contentType: false,             cache: false,             processData: false,             success: function(data, textStatus, jqXHR)             {             },             error: function(jqXHR, textStatus, errorThrown)             {             }         });         e.preventDefault(); //Prevent Default action.          //e.unbind();     }); });   I want to track the progress please tell me how to do it. I know the jquery.form.js has the uploadprogress event. But I don't want to use the library. I made some modifications but after the modification; it is not sending any network request although the function is executing i checked this via alert here is the code.   $(function() {                 //Callback handler for form submit event                 $("#core").submit(function(e)                 {                     alert("Hello");                     var formObj = $(this);                     var formURL = formObj.attr("action");                     var formData = new FormData(this);                     $.ajax({                         url: formURL,                         type: 'POST',                         data: formData,                         mimeType: "multipart/form-data",                         contentType: false,                         cache: false,                         processData: false,                         xhr: function() {                             var myXhr = $.ajaxSettings.xhr();                             if (myXhr.upload) {                                 myXhr.upload.addEventListener('progress', progress, false);                             }                             return myXhr;                         },                         success: function(data, textStatus, jqXHR)                         {                          },                         error: function(jqXHR, textStatus, errorThrown)                         {                         }                     });                     e.preventDefault(); //Prevent Default action.  //                    e.unbind();                 });              });             function progressHandlingFunction(e) {                 if (e.lengthComputable) {                     $('progress').attr({value: e.loaded, max: e.total});                 }             }


How to read and write a USB hard drive formatted as EXT3 from Windows 7?

My external hard drive uses EXT3 and must be read + written by Debian and Windows 7 (home and office boxes)  It used to work like a charm with  on Windows XP, but since this software doesn't support Windows 7, I now feel desperate.  I've Googled a bit, read some Superuser questions :          and tried some suggestions. Here's my experience :  ==> With Paragon ExtFs :   creates files and folders with the uig/gid "0" on the drive, so once back to Linux, all files belong to root:root. No big trouble, but not very convenient. I don't know how this happened but some day I discovered that the relation between file names and their contents was completely scrambled. No data "lost", no lost file, just file contents randomly "moved" into another file. Had to fsck and restore files from backups. This happened twice, so this Paragon software just gets a NO WAY from me now !   ==> With  (version 0.53)   It works not too bad. When it works : I boot Windows 7, plug my USB drive, it's detected by ext2fsd, I give it a drive letter and can read/write from/to it : GREAT ! But if I unplug my USB drive (what I do by clicking on the systray icon + "unplug storage device..."), then replug it later, it will detect the drive again, but will be unable to give it any drive letter. I've tried to "Remove dead letters", but even though the drive letter becomes available anew, I can't assign it to my drive  (like in  ). if I unplug everything and reboot : it works (but this reminds me of the glorious days of windows 9X ;-) if I unplug without reboot : impossible to assign a drive letter :-(   Do you have any suggestions ? Am I misusing ext2fsd ? Any ext3 tuning options ? Any Windows 7 tuning options ?  NB1 : So far, I'm not considering formatting the USB drive.  NB2 : the Linux and Windows 7 boxes are mutually out of reach from each other, so any network-related solution (Samba, FTP, WinSCP, ...) is not possible.  EDIT : the suggested solution, installing IFS-Drive in XPSP2 compatibility mode, didn't work on my side, and caused Windows 7 to crash :-(  However, I've been able to make things work with Ext2FSD. As a reminder, the problem was my drive was recognized only the first time it was plugged, but if unplugged then re-plugged : impossible to mount it anymore. Here's my solution :   Plug the external hard drive Open the Ext2 Volume manager GUI Remove dead letters if need be [F9] Select disk + "Change drive letter" [F4] Add Select the drive letter you like Click "Mount via DefineDosDevice", will be lost after reboot" "Ok", "Done". Enjoy !


Existence of a sequence of positive continuous functions on $\mathbb R$ which is unbounded precisely on $\mathbb Q$

Is it possible to find a sequence of positive continuous functions $g_n$ on the real numbers such that $( g_n(x) )$ is unbounded if and only if $x \in \mathbb{Q}$ ?


What is the generalized definition of '' for complex numbers?

I'd expect this question to be asked here before, but I've not been able to find it.  The generalized definition of the multiplication operator for complex numbers is simple:  The product of the lengths and the sum of the angles (relatively to the $X$-axis).  But what is the generalized definition of the $<$ and $>$ comparators for complex numbers?


Once processors are fixed for Meltdown and Spectre problems, what will it take to avoid software-induced performance hits?

Software remediation of the Meltdown and Spectre problems slows performance. If and when non-problematic processor models come to market, or microcode updates fix installed processors, will kernels and applications need flags or recompilation to avoid the slowdown due to software-based remediation?   ref:


Java function of entering doubles to array not working

Java code asks the user to enter the number of grades he want to enter then it enter a function or method to put them into array then enter another method to find average. the code compile without error but when i run and i put the number of grades but the function grades crash, I am used to code in c++ so i may be missing some basics of java. Your understanding will be appreciated. I hope when fixing it , to tell me what is my mistake. package lab10ex8;  import java.util.Scanner;  public class Lab10ex8 {                public static double[] grades ( int n, double a [] ) {         Scanner S = new Scanner(System.in);         double grade=0;         for(int i=0; i<n ; i++)         {             grade = S.nextDouble();             a[i] = grade;                      }         return a;     }          public static double average( double a[] ) {         double average=0;         double c;         double sum=0;         Scanner S = new Scanner(System.in);                  for(int i=0; i< a.length ; i++){                          c= a[i];             sum = sum+c;         }         average = sum/a.length;         return average;     }      public static void main(String[] args) {         int n;         System.out.println( "Enter the number of Grades : " );         Scanner S = new Scanner(System.in);              n=S.nextInt();         double a[] = null;         grades(n,a);         average(a);                       }      }


What size resistor to light 3.3V LEDs from a 3.3V circuit?

I have some blue LEDs that are listed at having a Vf of 3.3V @ 20mA.  If I want to drive them from a 3.3V source,  do I need a dropper resistor?  Methinks I do, but R = (3.3 - 3.3) / 0.02 = 0 Ohms!  I know that LEDs can be finicky about how they're driven, so is there a rule of thumb? (There's no data sheet as they're unbranded.)


This is different to the linked question as the answers to that question do not address the actual process of finding m1 and m2. The theorem states:  (a) If x ∈ R, y ∈ R and x >0, then there exist a positive integer n such that nx >y. (b) If x ∈ R, y ∈ R, and x < y, then there exists a p ∈ Q such that x < p < y.  I understand part (a) of the theorem. Proof of part (b) opens as follows:  Since x < y , we have y - x > 0 and (a) furnishes a positive integer n such that n(y - x) > 1.  This part I understand. But I'm unsure how this next part is done:  Apply (a) again, to obtain positive integers m1 and m2 such that m1 > nx, m2 > -nx. Then -m2 < nx < m1  How are the integers m1 and m2 obtained? I know that it involves the same process used in part a, I just can't figure out the steps.


Are there any rules to differ between Errors, Warnings and Notifications?

I am looking for any rules to give developers how they can differ between Errors, Warnings and Notifications. I haven't found something in literature or the web.  Is there a standard that needs to be followed?


Difference between negative and positive temperatures written as absolute value or the negative integer?

**In a chemistry class, students were learning about boiling point of various elements.Reuben has compiled a table that gives boiling points of each of various elements.  The lowest boiling point is of Element X: – 200 degrees Fahrenheit. The highest boiling point is of Element Y: 550 degrees Fahrenheit  Find the difference between the lowest and highest boiling point**    I know how to calculate the difference. -200 – 550 = -750.  I am not sure if the answer is written as a negative or positive. Isn’t difference in temperature always written as its absolute value? Will the answer be – 750 F or 750 F ?  Would greatly appreciate if you could explain what the correct answer is.


These two are supposed to be equivalent because of the properties of logarithms, but the domains of $\ln(x^2)$ and $2\ln x$ seem different to me. For example, if I substitute $x=-1$ into the first, I get 0. But in the second, I get a non-real answer.   Why is this? The domains of these functions, when graphed, seem different as well. But everything I've been taught so far, and most of the things I can find on the web, do not explain this inconsistency. Typically, I consider the property $\ln(a^b) = b \ln a$ to be true...  I am only a senior in high school, currently in Calculus I, but hopefully the explanation won't be too outside of the realm of my understanding. But even if it is, I would still like to know the answer.   Thanks in advance


I have four int columns with two of them having a value in 10s, and the other two have it in 100s. Should I, for the ease of applying the following algorithms, normalise the data, or would it not have any discernible impact? i) k-NN ii) SVM iii) Naive Bayes iv) Logistic Regression v) Decision Trees.


How should I wire a ceiling fan when there's only three wires in the box?

I'm replacing a ceiling fan and it has three wires as is common: black, white, and bare ground. I have a two-toggle wall switch. One switch makes the black wire hot (for the motor), and the other switch makes the white wire hot (for the integrated light). So it looks as if the white wire in the ceiling is used as a hot for the light rather than a neutral wire as is common.   From the main power, there are three wires:  Black wire has nut that is spliced to both the Dual Switch (that controls the ceiling fan) and the other switch which operates the upsidedown wall outlet.  White Wire is spliced to just the upsidedown wall outlet. (no connection to Ceiling Fan)  All three bare ground wires are connected together.  So the Dual switch that controls the ceiling fan has The Black Wire from the main power to the top of the switch, The other top wire at the ceiling fan Dual switch is the BLack wire that runs to the Ceiling Fan (assuming to run the fan light, and the Bottom wire is the White wire which appears to operate with the bottom switch (of the dual switch) when it is turned assumed for the fan motor.          Crazy thing is this is how the home builder (Beezer Homes) wired the home when new in 95). I remember the builder was originally suppose to install 3-toggle switches in two bedrooms.  They only installed 2-toggle switches.  They corrected the problem by install the dual switch in place of one of the single toggle switches.  The fan was wired with the House bare ground wire being utilized as the Fan's neutral White Wire (and that being connected to the mount ground wire. The houses Neutral is the hot wire for the fan motor. Black wires are connected as normal and for power to the fan's light.


Is city ward information provided in U.S. census records useful?

Many, if not most, of the 20th century U.S. census records include fairly precise address information for those living in cities and towns.  Even many 1880 census records include at least street-level information.  Some of the earlier census sheets (say 1860 and 1870) don't include street-level data, but do list the ward of the town or city.  I'm curious to know whether city wards are useful for  genealogical purposes.  I'd rather not get into rare, speculative uses, but rather actual uses where ward information can solve some other problem.


Profile-hover-quick-view thingy isn't loading

For some reason, the profile-hover view thingy is not loading at all(on Stackoverflow). I initially thought that it might be because of , but its been closed with the status, no-repro. Also, this is now persisting for the past 1 hour for me.  I tried to clear the cache and stuffs but nothing seems to be working, as the hover view is still not loading. Is this some sort of  or an issue with the browser? I'm using Firefox 25.0.1 on Win7 Pro(x86) machine. Here is a snapshot of it.


What is this plastic chip packing material called?

When I order ICs from larger retailers, they are delivered in a plastic housing that prevents the pins from becoming bent during shipping.  With a chip included, they look like this:    I would like to buy more of these so that I can store and ship some ICs I have that didn't come with one, however I am having no luck finding any for sale so I must be using the wrong search terms.  I have looked for chip/ic + carrier, housing, packing, storage, etc. but not found anything remotely like this.  I've tried the same retailers that sell the chips as well as places like eBay but I can't find anything at all.  What do retailers call these items when they are up for sale?


How to approximate $Rx$, $Ry$ and $Rz$ gates?

Quantum Inspire is a quantum computing platform provided by QuTech. It consists of two real quantum processors - Starmon-5 and Spin-2. Whereas it is possible to use rotation gates $Rx$, $Ry$ and $Rz$ on Spin-2 processor, :   Pauli gates $\text{X}$, $\text{Y}$, $\text{Z}$ and $\text{I}$ Hadamard gate $\text{H}$ Phase gate ($\text{S}$) and $\pi/8$ ($\text{T}$) gate and their conjugate transpose gates rotation around axes $x$ and $y$ for angle $\pm\frac{\pi}{2}$ gates $\text{CNOT}$, $\text{CZ}$ and $\text{SWAP}$ gates   My question is how can I construct gates $Rx$, $Ry$ and $Rz$ with rotation angle $\theta$ from gate listed above.    EDIT:  Based on advice from JSdJ and the Nielsen and Chuang book, I found out that:   $HTH = Rx(\pi/4)$ which together with the fact that $T=Rz(\pi/4)$ allows to build gate  $$R_{\hat{n}}=Rz(\pi/4)Rx(\pi/4)= \text{exp}(-i\frac{\pi}{8}Z)\text{exp}(-i\frac{\pi}{8}X) = \\ \cos^2\frac{\pi}{8}I-i(\cos\frac{\pi}{8}(X+Z)+\sin\frac{\pi}{8}Y)\sin\frac{\pi}{8}$$ (note that $Y=-iZX$) this is a rotation around axis defined by vector $\hat{n}=(\cos(\pi/8);\sin(\pi/8);\cos(\pi/8))$. Rotation angle is given by equation $\cos(\theta/2) =\cos^2(\pi/8)$ angle $\theta$ is $2\arccos[\cos^2(\pi/8)] \approx 1.096$ which is irrational multiple of $2\pi$ since $\theta$ is irrational, repeated application of the gate $R_{\hat{n}}$ never leads to rotation by an angle which sum up to $2\pi$ as a result we are able to reach any rotation by angle $\alpha$ around $\hat{n}$ axis by repeated application of $R_{\hat{n}}$, i.e. we can construct $R_{\hat{n}}(\alpha)=R_{\hat{n}}^{n_1}$, where $n_1$ is an integer also it is true that $HR_{\hat{n}}(\alpha)H = R_{\hat{m}}(\alpha)$ where $\hat{m}$ is axis defined by vector $(\cos(\pi/8);-\sin(\pi/8);\cos(\pi/8))$, so the same procedure allows to find rotation for $\alpha$ around axis $\hat{m}$ it can also be proven that any arbitrary single qubit unitary matrix $U$ can be written (up to global phase) as $U = R_{\hat{n}}(\beta_1)R_{\hat{m}}(\gamma_1)R_{\hat{n}}(\beta_2)R_{\hat{m}}(\gamma_2)\dots$ together this leads to conclusion that any $U$ (including $Rx$, $Ry$ and $Rz$ rotations) can be approximated by repeated application of $R_{\hat{n}}$ and Hadamards, i.e. $U \approx R_{\hat{n}}^{n_1}HR_{\hat{n}}^{n_2}HR_{\hat{n}}^{n_3}HR_{\hat{n}}^{n_4}H \dots$, where $n_i$ are integers   To sum up, only with $T$ and $H$ gates we can construct any rotation.   Only question is how to find integers $n_i$ for construction of arbitrary $Rx$, $Ry$ and $Rz$ rotation. Can anybody give me an example of such circuit, for exaple gate $Ry(\pi/8)$?


Why isn't it accepting any of my Nick name?

I have caught my first Pokemon and now it is asking me for a nickname so when I type any Nick name it tells it isn't available. For every name I type it shows the same. Why is it so..... Why don't u tell which available and which to keep...


Windows 7 SVCHOST consumes copius RAM when searching for drivers

After much trial and error and frustration, I have discovered that svchost can consume several imperial tons of RAM if given the chance when you plug in a new piece of hardware.  I find this mind boggling and frustrating and would like some advice to know if this is normal (I don't think it is, since I've never seen it before), and maybe how to limit such behavior.  This is my second Windows 7 system.  i didn't ever notice this on the other Windows 7 system.  I've had this for about 2 years and this has been going on for a while.  Maybe a year (ish?).  I have been able to articulate the problem for a few months or so.  Today it happened twice while I was working and svchost used up so many resources it crashed my network connection somehow.  Or maybe just some other programs, I'm not sure.  I've noticed this behavior on more sophisticated devices such as cell phones and Bluetooth adapters, but not on simple USB mass storage adapters.  I've also seen this phenomenon in other instances I have not been able to track down the causes.  I have turned Superfetch off already, which may have been one of the other causes.  Windows 7 64 bit, 4GB RAM, Core i7, Dell e6530  I've tried DuckDuckGo'ing (aka Googling) and I found something almost close here on Superuser, so that gave me the idea to ask for advice here.  What can I do to further troubleshoot this issue? What can I do to curtail this memory consumption?


Should I use a glossy shader or a metal texture to export an object?

I have a model i wanna sell on CGTrader, and i know some people might be using different software like 3DS Max or Maya, so i want to make my blender model available to all software. one of my objects on the model is using a glossy shader to create a silver look. i don't know if maya has a glossy shader, so would it be smarter to go with something every software has, textures? should i use a metal texture or a glossy shader? which one is applicable to most software? is there a glossy shader in other 3d software?


How to detect programmatically if my python application was launched inside of Virtualbox

I'm writing a python application that is supposed to run differently, depending on host/guest system context.   What I need is a function that tells where I am:  if IamRunningOnHost():     #start server if not running, connect to server else: #running on guest     #use different ip, terminate if server not running   Now the easiest way would be to detect some known file system differences between host and guest system or to have a config which I edit manually each time I switch system context.  Is there a cleaner and more universal way to differentiate whenever I am running inside of VirtualBox?   Edit1: My guest and host are both linux operating systems.  Edit2: I failed to mention, it has to be achieved via python call and without the need for root privileges. I also don't want to install additional software in the guest. I simply want to copy and run the application without the requirement of further system changes. The suggested duplicate "Detect virtualized OS from an application?" is therefore not helpful for me.


Cards entering the battlefield simultaneously and "Enter the Battlefield" effects

I was playing modern with the owner of a shop.  He played a  which he used to bring in 7 lands: 5 basic mountains and 2  cards.  He then claimed that each  triggered 5 times (killing me).  I am doubting this now.    Here is my reason: The two  cards entered at the same time as the other 5 basic lands.  That means when they were on the battlefield and their ability was in effect, the other 5 basic lands were already there too.  That seems too late to trigger a "Enters the Battlefield" effect.  So here is my question.  Am I right or wrong?  If I am wrong, please show me how the enter the battlefield effect can trigger for something that enters the battlefield at the same time as itself.  If I am right, please show me the rules that prove it.  I now have two shop owners that are convinced that this is a legal play.  If it is not legal, I am going to need clear rules citations to convince them.    Side note:  If I am wrong and it is a legal play, then I have a follow up scenario.  Say I have 2  cards and 5 other human cards in my graveyard.  If I play a spell that lets me return all of them to the battlefield at the same time (say ), would the  cards get 6 +1/+1 counters on them?    To me, if the trick that was played on me with  is legal then my  cards should also get the +1/+1 counters.


Where did the slugs that afflicted Ron come from when he was under the slug vomiting charm? Does the charm create life, or were the slugs plucked from somewhere else and placed inside Ron?


Polygon creation (Clockwise rotation or not)

According to "ESRI Shapefile Technical Description An ESRI White Paper—July 1998", Vertices for a single, ringed polygon are, therefore,always in clockwise order. Otherwise,"Dirty" polygons occur when the rings that define holes in the polygon also go clockwise, which causes overlapping interiors.   In my understanding, you can create donuts polygon with "avoid intersection of new polygons" is checked on snapping option, even if both polygon(inner and outer) are created clockwise roated.    It has not necessary to care about clockwise rotation when you create polygon in QGIS.  Is this a right understanding?


Converting similarity matrix to (euclidean) distance matrix

In Random forest algorithm, Breiman (author) constructs similarity matrix as follows:   Send all learning examples down each tree in the forest If two examples land in the same leaf increment corresponding element in similarity matrix by 1 Normalize the matrix with number of trees   He says:     The proximities between cases n and k form a matrix {prox(n,k)}. From their definition, it is easy to show that this matrix is symmetric, positive definite and bounded above by 1, with the diagonal elements equal to 1. It follows that the values 1-prox(n,k) are squared distances in a Euclidean space of dimension not greater than the number of cases.    In his implementation, he uses sqrt(1-prox), where prox is a similarity matrix, to convert it to distance matrix. I guess it has something to do with the "sqaured distances in a Euclidean space"-quoted above.  Can somebody shine a little light on why it follows that 1-prox are squared distances in a Euclidean space and why he uses squared root to get distance matrix?


How to use apostrophe properly in this sentence?

There's a person named Khushwant Singh in a story. He and his grandmother are friends. There's a question asked in my book: What is the 'turning point' in the story? And my answer begins something like this: 'The turning point' in the lesson refers to the turning point in Khushwant Singh's and his grandmother's friendship. Now here's where I get confused. Did I use the apostrophes properly? If I didn't use it properly, how should I use it properly?


Activating Data Interoperability extension in ArcGIS for Desktop?

How to solve this problem. I have installed arcgis 10.3 and installed the extensions as well but the extension does not get activated and shows following error.


Irreducibility of $x^{p(p-1)}+x^{p(p-2)}+\cdots+x^p+1$ over $\mathbb Q$

It is well known that the $p$th cyclotomic polynomial $$\Phi_p(x)\ =\ x^{p-1}+\cdots+x+1\ =\ \frac{x^p-1}{x-1}$$  is irreducible over $\mathbb Q$ for prime $p$. The standard trick is to make the transformation $x\mapsto x+1$ and turn the polynomial to one of the form $x^{p-1}+p\cdot q(x)$, where $q(x)$ is polynomial of degree $p-2$ and constant term 1, and apply Eisenstein's criterion.  On p.35 of The Theory of Algebraic Numbers by Harry Pollard and Harold G. Diamond (Dover edition) the authors state that the following polynomial is also irreducible over $\mathbb Q$: $$\Phi_p(x^p)\ =\ x^{p(p-1)}+\cdots+x^p+1\ =\ \frac{x^{p^2}-1}{x^p-1}$$  (where $p$, as before, is prime). According to the book the result can also be proved by applying the transformation $x\mapsto x+1$. I tried it but I'm afraid it got me nowhere; neither have I been able to prove it by any other method.  I would be grateful if someone could show me how it is done. Thanks.


Is the term "Borg" an acronym for something, or is it just an abbreviation of "Cyborg"?

In the Star Trek franchise, do the letters in the title "Borg" represent anything other than an abbreviation of the term "Cyborg"? If it is an acronym, what does "Borg" stand for?


Is there a way to split up the post content and the gallery short code. I want to display the gallery outside my normal content no matter how or where it is placed. I can use this to get the shortcode itself:  if(has_shortcode(get_the_content(), 'gallery')){     $pattern = get_shortcode_regex();      preg_match("/$pattern/s", get_the_content(), $matches);     echo do_shortcode($matches[0]); }   But this doesn't work if the gallery short code isn't the first instance. Is there a way to split my content and gallery up completely?    Edit: I have a semi-solution but it seems like a long winded way to go about it. It first grabs the first shortcode in the post (which needs to be fixed since I only want the "Gallery" shortcode) then removes all shortcodes from the content (again, not really what I want to do.  <?php if(has_shortcode(get_the_content(), 'gallery')) : ?>     <?php          $pattern = get_shortcode_regex();          preg_match("/$pattern/s", get_the_content(), $matches);     ?>
         <?php echo strip_shortcodes(get_the_content()); ?>

         <?php echo do_shortcode($matches[0]); ?>
 <?php endif; ?>     Edit #2 - Ok, I've been able to only get gallery shortcodes in the post. I've also added a filter to remove the gallery shortcode form the_content() - the problem is that its not necessarily removing the shortcode since it does post it, but its not allowing me to run "do_shortcode()"  Functions.php  function remove_gallery($content) {     global $post;      if($post->post_type == 'artcpt')         remove_shortcode('gallery', $content);      return $content; } add_filter( 'the_content', 'remove_gallery', 6);    The Loop  <?php preg_match('/\[gallery ids=[^\]]+\]/', get_the_content(), $matches); ?>
     <?php the_content(); ?>

     <?php echo do_shortcode($matches[0]); ?>
   in The Loop it will return my short code Twice (i'm on a single page, should be looped twice - so its not running do_shortcode()). Not sure why.


Prove that $x^3 \equiv x \bmod 6$ for all integers $x$


I am a frequent Minecraft player and I'd like to create a 1.3.2 Minecraft server as a tribute to the old days, but I'm not sure where to find a 1.3.2 version. I tried mcversions.com, but you have to pay money to have a server through there, which is not what I am trying to do. Thanks.


I was wondering if this is true:  $$1.\underbrace{0000\dots0000}_{\infty}1 = 1$$  I tried expressing this as a limit, but I have no idea how to continue:  $$\lim_{x\to-\infty}1+10^{x}$$  Also, I'm not so experienced with limits, etc.


Onclick not working in my jquery  I created dynamic div based on select if i click that dynamic div alert is not working  I don't know what is the problem   Date : <input name="startDate" id="startDate" class="date-picker" />

      if i click datediv alert not working> I dont know is problem


How should I choose between GET and POST methods in HTML forms?

I wish to know all the pros and cons about using these two methods. In particular the implications on web security.  Thanks.