\textsubscript not working anymore after update

I ran into a weird problem after a recent MikTeX update. I used to use \usepackage{fixltx2e} to get the command \textsubscript{}. However, if I do this now I get the warning Package fixltx2e Warning: fixltx2e is not required with releases after 2015, which is explained on CTAN. Nevertheless, with or without \usepackage{fixltx2e} I get the error that \textsubscript is an undefined control sequence. Was this command replaced/renamed somwhow or where does the problem lie here?  \documentclass{article} \usepackage{fixltx2e}  \begin{document} Test\textsuperscript{1} Test\textsubscript{1} \end{document}   Log file:  This is pdfTeX, Version 3.14159265-2.6-1.40.15 (MiKTeX 2.9) (preloaded format=pdflatex 2015.4.7)  5 JUN 2015 17:53 entering extended mode **LaTeX1.tex (LaTeX1.tex LaTeX2e <2014/05/01> Babel <3.9l> and hyphenation patterns for 68 languages loaded. ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\article.cls" Document Class: article 2014/09/29 v1.4h Standard LaTeX document class ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\size10.clo" File: size10.clo 2014/09/29 v1.4h Standard LaTeX file (size option) ) \c@part=\count79 \c@section=\count80 \c@subsection=\count81 \c@subsubsection=\count82 \c@paragraph=\count83 \c@subparagraph=\count84 \c@figure=\count85 \c@table=\count86 \abovecaptionskip=\skip41 \belowcaptionskip=\skip42 \bibindent=\dimen102 ) ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\fixltx2e.sty" Package: fixltx2e 2015/02/21 v2.0a fixes to LaTeX (obsolete)   Package fixltx2e Warning: fixltx2e is not required with releases after 2015 (fixltx2e)                All fixes are now in the LaTeX kernel. (fixltx2e)                See the latexrelease package for details.  ) (LaTeX1.aux) LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 4. LaTeX Font Info:    ... okay on input line 4. LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 4. LaTeX Font Info:    ... okay on input line 4. LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 4. LaTeX Font Info:    ... okay on input line 4. LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 4. LaTeX Font Info:    ... okay on input line 4. LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 4. LaTeX Font Info:    ... okay on input line 4. LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 4. LaTeX Font Info:    ... okay on input line 4. LaTeX Font Info:    External font `cmex10' loaded for size (Font)              <7> on input line 5. LaTeX Font Info:    External font `cmex10' loaded for size (Font)              <5> on input line 5.  ! Undefined control sequence. l.5 Test\textsuperscript{1} Test\textsubscript                                               {1} The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined.  [1  {C:/Users/Manuel/AppData/Local/MiKTeX/2.9/pdftex/config/pdftex.map}] (LaTeX1.aux) )  Here is how much of TeX's memory you used:  211 strings out of 493698  2321 string characters out of 3141992  52149 words of memory out of 3000000  3619 multiletter control sequences out of 15000+200000  3640 words of font info for 14 fonts, out of 3000000 for 9000  1025 hyphenation exceptions out of 8191  23i,4n,17p,135b,107s stack positions out of 5000i,500n,10000p,200000b,50000s <C:/Program Files (x86)/MiKTeX 2.9/fo nts/type1/public/amsfonts/cm/cmr10.pfb><C:/Program Files (x86)/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmr7.pfb> Output written on LaTeX1.pdf (1 page, 18746 bytes). PDF statistics:  14 PDF objects out of 1000 (max. 8388607)  0 named destinations out of 1000 (max. 500000)  1 words of extra memory for PDF output out of 10000 (max. 10000000)


If an ideal contains the multiplicative identity, then it is the whole ring

I have to prove that if $I\subseteq R$ is an ideal, and $1\in I$, then $I=R\,$. So I know $I\subseteq R$ is an ideal if $a,b\in I$ implies $a+b\in I$, and if $a\in I$, $r\in R$, then $ra\in I$. I'm finding it hard to put this into words. Since $1\in I$ and $I\subseteq R$ is an ideal, then let $a=1$ and $r=1$ so $1\cdot 1\in R\,?$


For the maroon underline, I thought that the existence of partial derivatives did not imply f was differentiable?  For the green part I can't fathom which theorem the lecturer is talking about, so I don't follow this part either.


How to know the kind of filter from the transfer function

I got that system \$x_n \to x_n-x_{n-1}\$, so \$h_n=[.....,0,1,-1,0,...]\$, with \$h_0=1\$ and \$h_1=-1\$, so the transfer function given by:  $$H(\omega)=\sum_{i=-\infty}^{\infty} h_ne^{-jwn} = h_0e^{-jw(0)}+h_1e^{-jw(1)}=1-e^{-jw}$$. How to knwo the type of filter, if it is high pass filter, low pass filter, etc.  I appreciate your help.


I'm trying to add a footnote using \footnote{foobar}. But it won't show up in the footer of the document. I believe this is due to the fact that I manually changed the sizes of the layout of the document. Can anyone suggest a fix without changing the geometry of the layout. Here is the preamble to my .tex code  \documentclass[11pt]{article} %\pagestyle{empty}  \usepackage{amsmath} \usepackage{graphicx} \usepackage{textcomp}  \usepackage[parfill]{parskip} \usepackage{booktabs} \usepackage{fancyhdr} \pagestyle{plain}  %the following code I think messes with footer width/height of the document. \textheight=8.5in \textwidth=6.5in \topmargin=-1in \oddsidemargin=0in  \begin{document} \begin{tabular}{c c c c c } \toprule Course No. & Course title & Credits & Grade & Institution \\ \midrule Math 644    & Real Variables & 5    & A & LLM \footnote{foobar} \\ Math 456    & Algebra I                 & 3 & A & LLM \\ \midrule         & Total Transfer Credits     &\fbox{18} &   &   \\ \bottomrule   \end{tabular} \end{document}   Thanks in advance for all your help.


Why do Neutrinos pass through us but photons can't pass through us?

Neutrinos have no mass and no charge. Therefore, they are not deflected by the other particles in our body and pass through us. Photons too have no mass and no charge, but why are they being deflected then?


I bought a Windows 7 Pro licence a couple of years ago. The installation got activated, of course. I've been working on the machine for some years. Of course, the licence has been used only on this one machine.  During the free upgrade offer, I did an inplace upgrade to Windows 10 Pro. The installation was activated, too. That's how it's supposed to be done. Once activated this way, it is valid to do a clean install of Windows 10 on the same machine.  The problem: After the clean Windows 10 reinstallation (version 10.0.14393) on the same machine without any hardware changed, it can not be activated. I'm getting the message that the activation servers cannot be reached. This can be read there for several days. I have a direct internet connection without a proxy. I've ensured that the firewall is not blocking anything related. In the event log, I can find the error number 0x80070426: The service cannot be started. I'm an experienced developer. I was not able to find out which service. All deactivated services are unrelated. The activation trouble shooter does not work because of the same error 0x80070426.  There is the slmgr.vb script to manage licences. Using "slmgr /ato" returns the same error. Starting the script (to be exact: cscript.exe executing the vb script) from within WinDbg shows a different behavior: Now WmiPrvSE is started, it connects to the internet and finally tells me that the product key is blocked. I do not know why. I think I did everything right. The only "helpful" answer I was able to find, was doing the whole process again, starting with the installation of Windows 7. For sure, I will not do this as it will take me several days again (yes, it does). Other reports of the problem were different as to at least one of the preconditions weren't met.   I'm also aware of this:


Enabling wired internet connection with dhcp during Arch Linux Installation?

From what I read, wired internet should work out of the box during the Arch installation. However, I'm having difficulties. The dhcpcd service is running, but it says:  # systemctl status dhcpcd.service   ...   ... systemd[1]: Started dhcpcd on all interfaces   ... dhcpcd[757]: enp5s0: waiting for carrier   The enp5s0 interface is down:  # ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00     inet 127.0.0.1/8 scope host lo        valid_lft forever preferred_lft forever     inet6 ::1/128 scope host        valid_lft forever preferred_lft forever 2: enp5s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000     link/ether e4:8d:04:ed:72:ce brd ff:ff:ff:ff:ff:ff   I tried to enable it but without any luck:  # ip link set enp5s0 up   There is no error or any other output, but the ip addr status is unchanged. enp5s0 is still down.  # lspci -v ...  05:00.0 Ethernet controller Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 03)  ...  Kernel driver in use: r8169  Kernel modules: r8169  # mesg | grep r8169 r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded r8169 0000:05:00.0: irq 45 for MSI/MSI-X r8169 0000:05:00.0: eth0: RTL8168d/8111d at ... r8169 0000:05:00.0: eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko] r8169 0000:05:00.0: enp5s0: link down   Maybe it has to do with systemd renaming of eth0 (here to enp5s0)?  I'm stuck. Is there a way to find out what ip link set enp5s0 up does? As there is no error, I would assume that afterwards enp5s0 should be up.  UPDATE: Seems to be related to this problem . I still haven't solved the problem, but I discovered that the wired LAN connection to my Fritzbox router is now broken on my machine. Beside with Arch Linux, it also stopped to work with my existing Windows installation on the same machine (though it worked fine, some hours ago).  If I plug the wired connection to another Ubuntu laptop, LAN works. I think, it has to do something with the router. Deleting the fixed IP assignment as in the other question, did not solve the issue, however.


I need to prove that:  $\sin(x) \leq x$ on the interval $[0,1]$ using Calculus. First I calculated the area between the graph of the function $x$ and $\sin(x)$ on the interval $[0,1]$, if it is positive then $\sin(x) \leq x$:  $$\int_0^1 x - \sin(x)  dx = \frac{x^2}{2} \vert_0^1 +\cos(x) \vert_0^1=\frac{1}{2} - 0 + \cos(1) -1=\cos(1)-\frac{1}{2}$$   With the help of the calculator I know that $\cos(1) > \frac{1}{2}$, but I don't know how to prove it without help of the calculator. Any idea of how to prove that $\cos(1) > \frac{1}{2}$ or another way to prove $\sin(x) \leq x$?


executing java with python and then give it to data

I try to test my Java class using python, i use suproccess in a "for loop"  >>> import subprocess >>> for x in range(1, 6): ...     subprocess.call(["java", "Watermelon"]) ...    so when the Watermelon is executing waiting for input...  public class Watermelon{     public static void main(String[]args){     Scanner sc = new Scanner(System.in);      int w = sc.nextInt();   and i have to input the "value" and press ENTER to Watermelon get the "value" and the loop from python continues and input the "value" again and ... to the end.  Can you help me to use "x" in python loop like the "value" to java class...   Thanks for your help and excuse me by my English.


TCC is causing my mac to freeze for 5-20 seconds sporadically throughout the day. How can I fix it?

Sporadically throughout the day while I'm working on my 2017 27" iMac running macOS 10.14.6, the entire system will freeze for 5-20 seconds. There doesn't seem to be any rhyme or reason to it, but it does happen the most when utilizing apps that make use of Accessibility permissions, such as xGestures or BetterTouchTool. I later confirmed (as documented in ) that the problem is TCC; the system WindowServer process is doing some kind of check to make sure a process has the permissions it needs, and it's getting locked up while doing so, causing the entire system to freeze until it finishes. During these times the cursor still moves, but I can't click anything on screen. Does anyone have any idea what's going wrong here, or how I can fix it? So far I've tried resetting the TCC database using the command tccutil reset All, and while that seemed to make my computer a little snappier at first, as soon as I granted all of the apps I use the permissions they require, the freezes came back. I've also reinstalled macOS from the recovery environment and that didn't fix it either. I have a 2019 MacBook Pro running the same version of Mojave with much of the same software installed, and it does not have this issue, for what that's worth. I've also read through  but it's addressing a different TCC-related issue, and using an MDM profile will not help since its purpose is to add apps to the TCC database without requiring user intervention. This question is not about subsecond delays introduced by TCC when launching apps, but a show-stopping bug in TCC where it literally causes the entire mac to become unresponsive for several seconds. Update 6/17/2021: one of the triggers for this bug appears to be apps that have an invalid or missing signature. I just managed to consistently trigger this bug in an app with an invalid signature where one of its child processes was trying to send Apple events. I then fixed it by resigning the app with my "Developer ID Application" certificate. I don't know at this point whether that specific kind of certificate is necessary.


Can you tell me the link where I can find the ISO Image for the Dell Latitude D410 with a i686 processor Thanks and regards Hermann


Possible Duplicate:          I was thinking about making a pacman clone, I know there is a similar question here  , but I know i can't use the original art from the game because it belongs to Namco, so if I design a character that has the shape of the slice circle it will look exactly like pacman, maybe if I use green instead of yellow? Also if the game plays like the original pacman, it is wrong?  I just want to make the game as a personal project and and publish it in my site without getting in trouble


Can't upgrade WSL Ubuntu - how do I get xvfb-run?

I am running Xenial Ubuntu in Windows 10 subsystem linux system. I need to install xvfb-run but I can not because it is not in the repo. I guess I need to upgrade Ubuntu, but do-release-upgrade finds no new versions.   How can I get xvfb-run running on my Xenial Ubuntu in WSL?


Having, holding, giving, and throwing parties

What is the difference between "hold a party", "have a party", "give a party" and "throw a party"?  Is there any difference in meaning? Can we use them interchangeably?   Could you provide some examples (if any exist) where we can't replace one by another?


My question specifically deals with certain real indefinite integrals such as $$\int e^{-x^2} {dx} \ \ \text{and} \ \ \int \sqrt{1+x^3} {dx}$$ Books and articles online have only ever said that these cannot be expressed in terms of elementary functions. I was wondering how this could be proved? I know this is a naive way of thinking, but it seems to me like these are just unsolved problems, not unsolvable ones.


Confusion of significance of predictor variable in model


What does the .d stand for in directory names?

I know many directories with .d in their name:  init.d yum.repos.d conf.d   Does it mean directory? If yes, from what does this disambiguate?  UPDATE: I've had many interesting answers about what the .d means, but the title of my question was not well chosen. I changed "mean" to "stand for".


This is my first time preparing chicken and I'm affraid i might've undercooked it. There's a small red spot in the middle of it. I've seasoned it so it might be from that


I updated and restarted my laptop and for some reason its showing wifi adaptor not found.  on running sudo lshw -C network  I am getting :    -network UNCLAIMED        description: Network controller        product: BCM43142 802.11b/g/n        vendor: Broadcom Inc. and subsidiaries        physical id: 0        bus info: pci@0000:03:00.0        version: 01        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress cap_list        configuration: latency=0        resources: memory:b1100000-b1107fff   and on running command lspci  Output :  03:00.0 Network controller: Broadcom Inc. and subsidiaries BCM43142 802.11b/g/n (rev 01)   I tried the suggested solution but it still is not working ifconfig does not show wlan  and on running sudo apt-get install linux-headers-$(uname -r) build-essential dkms to install wlan. Output :   E: Unable to locate package linux-headers-5.2.0-rc1 E: Couldn't find any package by glob 'linux-headers-5.2.0-rc1' E: Couldn't find any package by regex 'linux-headers-5.2.0-rc1'   I rollbacked kernel to 4.15.0-48-generic version and tried the solution it is still not working.  my broadcom PCI.ID is 14e4:4365  and on rfkill i get :   ID TYPE      DEVICE      SOFT      HARD  0 bluetooth hci0   unblocked unblocked   [SOLVED]  after switching the kernel i did :   sudo apt-get remove --purge bcmwl-kernel-source   then followed :   Thanks to all who helped!


Why did SE develop a native app and not hybrid (with WebView)

I'd like to understand the reason (pros and cons) why Stack Exchange went with a native mobile app and not a hybrid app (using WebView and some native features).   I'm not saying it's a bad thing, I just would love to read about the decision process and arguments for and against. For me intuitively a hybrid app would have made more sense for a site like this.


Binding multiple CheckBoxes to single property in ViewModel

I would like to bind multiple CheckBox items (IsChecked property) to a single property in my ViewModel.    The ViewModel property is called SelectedWeekdays (int) and is the sum of all the selected weekdays. The idea being that every possible combination of weekday values will always result in a unique sum. The weekdays are defined in an enum as such:  public enum Weekdays {     Monday = 1     Tuesday = 2     Wednesday = 4     Thursday = 8     Friday = 16     Saturday = 32     Sunday = 64 }   So for example if Tuesday and Thursday are selected on the View, this should result in a ViewModel property value of 10.  Likewise, if the ViewModel property changes, say to 3, the CheckBoxes for Monday and Tuesday should be checked.  I've looked at MultiBindings but it seems I could only use that to bind a single CheckBox to multiple values. Can you point me in the right direction?


I am creating a poster using the a0poster package. I want to remove the title of the bibliography which automatically comes up with 'References'.  All I have is this:  \bibliographystyle{plain} \bibliography{mybib}   I have seen this done for other packages but not sure how to do it for the a0 poster package.  Thanks for the help


I understand the move past Snow Leopard meant losing Rosetta, and compatibility with any PPC apps.   Since there are some apps that can't be replaced (for example, old years of TurboTax that I might need to reference) I have a drive to boot Snow Leopard, and one for Yosemite. I was considering the jump to El Capitan, when I saw the question  which got me wondering the question -     Before installing a next generation OS, is there any way to find, in   advance, which apps I have that would be orphaned by the move?   Edit, the answer below from Jean Valjean was what I needed. One app concerning me appeared as follows:    It might be tedious to search many apps, but at least this gives me a chance to view the top ones that will cause me grief.


Do posterior probability values from an MCMC analysis have any use?

I need to estimate the Bayesian posterior of my model parameters ($\theta$) for some observed data ($D$), given a likelihood $P(\theta|D)$, and assumed priors $P(\theta)$:  $$P(\theta|D)= \frac{P(\theta|D)\; P(\theta)}{P(D)}$$  I use a MCMC algorithm which as far as I understand samples the unnormalized posterior (edit: I was wrong, the draws are taken from the full posterior).  After the MCMC is done, I can construct the probability density function for each $\theta_i$ in my set of parameters $\theta$ (from which I can obtain the necessary statistics: mean, median, confidence intervals, etc.) but I also have a rather large set of unnormalized posterior values.  As far as I understand, these values are not used at all in the analysis of the model parameters. Does this set of unnormalized posterior values have any use at all, or are they simply discarded?


Splitting an algorithm across two columns

Consider the following short example, where a two column page is selected, and the algorithm is split across the two columns using a manual \pagebreak within the algorithm's code:  \documentclass[twocolumn]{article} \usepackage[english]{babel} \usepackage{algpseudocode} \begin{document}  \begin{algorithmic} [1]     \State Let $a \gets b + c$     \State Let $a \gets b + c$     \pagebreak     \State Let $a \gets b + c$     \State Let $a \gets b + c$ \end{algorithmic}  \end{document}   Here's the result:    Now, by putting the code inside a float, I no longer can split the algorithm by \pagebreak:  \documentclass[twocolumn]{article} \usepackage[english]{babel} \usepackage{algorithm} \usepackage{algpseudocode} \begin{document} \begin{algorithm*}[t] \caption{Test}  \begin{algorithmic} [1]     \State Let $a \gets b + c$     \State Let $a \gets b + c$     \pagebreak     \State Let $a \gets b + c$     \State Let $a \gets b + c$ \end{algorithmic}  \end{algorithm*} \end{document}   and the result:    How can I get the same effect within a float? Could you please suggest a method which is not specific to algpseudocode, and applies to algorithm2e as well? (The latter )


Criterion for $\phi(mn)=m\phi(n)$ to be true

For any positive integer $n$, let $\mathrm{PF}(n)$ denote the set of all distinct prime factors of $n$ (not counted with multiplicity).  The question (using the above notation) is: Is it true that for any two positive integers $m$ and $n$, $\phi(mn)=m\phi(n)$ if and only if $\mathrm{PF}(m) \subseteq \mathrm{PF}(n)$, where $\phi$ is the totient function?  Hint for the if direction: Any prime factor of $mn$ must either be a prime factor of $m$ or a prime factor of $n$ (by Euclid's lemma). But since any prime dividing $m$ also divides $n$, $mn$ has the same distinct prime factors as $n$, and hence any integer coprime to one of them is also coprime to the other.  Note that it is possible for $\mathrm{PF}(m) \subseteq \mathrm{PF}(n)$ to be true while $m \not\mid n$. For example, $4 \not\mid 2$, but they both have $2$ as the only prime factor. In this case, $\phi(8)=4=4 \cdot 1=4\phi(2)$.


I am the owner of an iPhone 4s. One day I tried to put my SIM card into my iPhone and the next thing I saw on my phone was "Activation Required".  Unfortunately, I have forgotten my iCloud Apple ID and Password. I tried to find it with iForgot but it is not finding my name. I created the iCloud email. How can I find it and regain access to my iCloud account?


Delete record from DB with possible childrens

In DB i have only one table: navigation (InnoDB)   Is it possible configure this table to: If i delete where id == 1, all id 1 (Root Item) subs will be deleted automatically?  UPDATE  I try to recreate table:  CREATE TABLE `navigation` ( `id` int(10) unsigned NOT NULL auto_increment, `name` VARCHAR(32), `url` VARCHAR(32), `position` int(10), `parent_id` int(10) unsigned NOT NULL, PRIMARY KEY (`id`), KEY `type` (`parent_id`) CONSTRAINT `??????` FOREIGN KEY (`parent_id`)   REFERENCES `types` (`id`) ON DELETE CASCADE ON UPDATE CASCADE )   But What value need in line 9?


How to determine the limit of $ f(x, y)=\frac{9xy}{x^2 + y^2}$?

Given $$f(x,y) = \frac{9xy}{x^2 + y^2},$$ determine the limit of $f(x,y)$ as $(x,y) \to (2,1)$. The answer for this would be $\dfrac{18}{5}$ right?


How to highlight and annotate PDF and DjVu documents?

I am looking for some good software which can highlight and annotate PDF and DjVu files in Ubuntu.


How do I auto-accept all website cookie warnings?

Every time I go to any website in the UK it asks me if I accept cookies or not.  Is there a way to disable this question and accept all cookies universally?


Setting SSH keys on Windows 10 OpenSSH server

I've set up OpenSSH on various flavors of Linux tons of times.  But I can't for the life of me get it functioning correctly on windows.    There seem to be two sides to the issue.  The permissions and the key used by sshd/ssh-agent.  Permissions  Every page I read has a different answer for the correct permissions.  Some work, and sometimes the program complains about them.    From what I understand the keys should all be owned by SYSTEM, with read access for NT SERVICE\sshd and Full Control for Administrators and SYSTEM?  (As I understand SYSTEM and Administrators represent root in Windows).  I read in the documentation that the read access is only necessary if not using ssh-add/ssh-agent.  I also configured the same permissions for the %USERPROFILE%/.ssh/authorized_keys file and added the .pub the Ed25519 key which is the one I'm using to try and connect, though I've also tried it with my own generated RSA key.  With the permissions set this way the program doesn't complain when adding keys to the agent or running the daemon.  The only option I changed in sshd_config is the ListenAddress which was binding to 0.0.0.0, I set it to the machines local IP as SSH will only be used locally.    Keys  When I run sshd.exe with the -d option, I notice it importing the 4 default keys from %PROGRAMDATA%/ssh.  When I added the ed25519.pub key to authorized_keys it was followed by HOSTNAME@workstation@HOSTNAME, HOSTNAME being my PC's hostname.  Normally I would expected to see user@host.  I tried creating my own key and adding it but when I run sshd.exe -d it never seems to use anything other than the default keys.    In the end, I'm unable to connect to the OpenSSH server, and the logs in %PROGRAMDATA%/ssh/Logs only seem to show the server starting.  To sum up my questions: What are the correct permissions for the key files and authorized_hosts?  Does the annotation in authorized_keys being wrong make a difference?  Should I be adding all of the default keys .pub's into authorized_hosts?  And last, what does sshd mean when it mentions those keys during startup (see log)?  Shouldn't my own generated key just work as long as I add it to authorized_hosts?  debug1: sshd version OpenSSH_for_Windows_7.6, LibreSSL 2.6.4 debug1: private host key #0: ssh-rsa SHA256:and12LVkEqyXJ2gr0SxFEQObaSFF+Czlcnx2uFjZaJQ debug1: private host key #1: ssh-dss SHA256:waeLdy4Sm3NT+zbwEMIhbfl8TLe6WeQ0MuZE07CzFQU debug1: private host key #2: ecdsa-sha2-nistp256 SHA256:G8/7y/04cSE3EezTrcmpK4lRmJ5f5I/CDPcHaPzsv4o debug1: private host key #3: ssh-ed25519 SHA256:Jvn9UjsbdzH54L/yvGYGfCzJQVIMiIWL5RETbaL2ACA debug1: rexec_argv[0]='C:\\WINDOWS\\System32\\OpenSSH\\sshd.exe' debug1: rexec_argv[1]='-d' debug1: Bind to port 22 on 192.168.1.144. Server listening on 192.168.1.144 port 22.


How do I calculate a weighted standard deviation? In Excel?

So, I have a data set of percentages like so:  100   /   10000   = 1% (0.01) 2     /     5     = 40% (0.4) 4     /     3     = 133% (1.3)  1000  /   2000    = 50% (0.5)   I want to find the standard deviation of the percentages, but weighted for their data volume. ie, the first and last data points should dominate the calculation.  How do I do that? And is there a simple way to do it in Excel?


Mutual information between multivariate random variables?

I have read that mutual information only works with two random variables, and that for 3 or more RVs there seems to be a variety of different measures (synergy, partial information decomposition, and others) each with some disadvantages.   My question: how does this relate to the "multivariate-ness" of RVs. Suppose there are two multivariate RVS $$   \mathbf{X} = (X_1,X_2) $$ and  $$   \mathbf{Y} = (Y_1,Y_2) $$ From the point of calculat the mutual information between $\mathbf{X}$, $\mathbf{Y}$, is it impossible because there are actually four random numbers $X_1,X_2,Y_1,Y_2$ (and so synergy or some other measure has to be used) or is it MI between these two multivarite RVs properly defined?  The problem for me is that in describing mutual information, authors say "random variable" without clarifying whether the RV can be (or must not be) multivariate.  Edit: as seen below, several strong people say this question is a duplicate of another question that I also asked. I believe it must be true, but still do not see much relation between the two questions yet!  Specifically, I think this one is about whether MI can apply to multivariate RVs or not.  The other one is a statement about "entropy involves distrubitions, whereas MI involves RVs".  That later statement is mysterious to me, because MI also involves distrubitions (joint and marginal). And it doesn't answer whether the distrubitions can be between multivariate RVs or not.    The other question is also not answered yet. Hopefully a kind person can answer one question, or the other, and then I will see how they are the same.  (Note, in math I am already aware that for example some particular theorems are instances of the triangle inequality. So a beginner could ask about the particular theorem and not understand that it is related to a question about the triangle inequality, but a good answer could help them see why.)


Why do I have to edit something in my question when someone says 'possible duplicate of'?

Sometimes when I ask a question, I see someone posting a comment on my question "Possible duplicate of...", and I see such banner:        However, the suggested "duplicate" does not really contain any answer to my own problem. Why should I edit my question?  A more extreme example:  Imagine you ask for 'Python loops', and someone comment that your question is a possible duplicate of 'Regular expression to get a phone number'. Should it be reported? How can I avoid to edit the question?


How does time dilation occur due to velocity and gravity

I am trying to understand and clarify the way time dilation occurs due to general and special relativity and for which reason. In the case where an object is approaching a planet in free-fall how does the gravitational field affect time dilation in the object? I have set out the case below is this correct? I have ignored the effect of the object on the planet.   If an object is approaching a planet, for example, in a straight line from a distance due to gravity it will only experience time dilation due to its velocity and this will increase according to its velocity and SR. It would not experience time dilation due to proximity of the larger body as it is in free fall.  If the object is then stationary on the surface of the planet it will experience time dilation due to being in an accelerated frame as it can no longer fall freely, it would only experience time dilation due to motion of the planet.


Allow "or" in searches using tags for Stack Overflow and other Stack Exchange sites?

It would be awesome if I could pass a list of tags to search for out of which I am given questions which are in either of the categories.


What is the probability of forming a triangle?

A stick of unit length is broken into two at a point chosen at random. Then, the larger part of the stick is further divided into two parts in the ratio $4:3$.   What is the probability that the three sticks that are left CANNOT form a triangle?   My approach is let be the larger part be $x$ and so the smaller part be $(1-x)$, now the two other sides be $\frac{4x}{7}$ and $\frac{3x}{7}$, now I know a triangle has a property its two sides sum is larger than the third side, but how to apply that in this question, I am confused. The answer given is $1/4$.


How can i create a generic array in java, the right way?  T[] buffer = (T[]) new Object[maxSize];   Would it better to create a new generic collection and then cast it?


To get in variable, a directory've been pushd

How do I use, i.e. to have in bash variable, a directory just've been pushd, and not to do popd command ?


Q.20 What is the number of ordered pairs $(𝐴, 𝐵)$ where $𝐴$ and $𝐵$ are subsets of $\{1,2, . . . ,5\}$ such that neither $𝐴 ⊆ 𝐵$ nor $𝐵 ⊆ 𝐴$?  Ans: 𝟓𝟕𝟎  Hint: Use principle of Inclusion-Exclusion.  Solution: Let $X$ denote the set of all ordered pairs $(A, B)$ when $A ⊆ B$. Similarly let $Y$ denote set of all ordered pairs $(A,B)$ when $B ⊆ A$. The question asks to find $$𝑛(X'\cap Y') = 𝑛(𝑆) − 𝑛(𝑋\cup𝑌) $$$$= 𝑛(S) − 𝑛(X) − 𝑛(Y) + 𝑛(X\cap Y) $$$$= 2^{10} − 3^5 − 3^5 + 2^5 = 570$$.    How did this happen? What is $S$? If $S={1,2,3,4,5}$, shouldn't $n(S)=2^5$? And where do the $3^5$s come from? I cannot understand this.  Also, are there other ways to solve this?


Exporting DEM-derived rasters to CSV from QGIS?

I have been able to import into QGIS a set of raster topographic maps and the associated DEM raster maps. It registered the two for me. From there I have calculated the associated slope raster map. Now I want to export the data to a CSV file (or similar format) for processing in a program that I am writing. Ideally the data would be structured in a way that would permit me to query for the slope and elevation data for any given point on the map.   If this is possible, then how do I do it?  Specifically, I have been able to export the data (slope & DEM) to two different CSV files. However I would prefer the data in one file if possible.


can any one tell me how to write long equation in multline i tried with coding below but some errors of \right and \left appear

\begin{multline*} \displaystyle \left \| f  \right \|_{M\dot{K}^{\alpha(\cdot),q}_{p(\cdot), \lambda}(\mathbb{R}^{n})} \approx \max \left\{ \sup_{L\leqslant0,L\in  \mathbb{Z}}2^{-L\lambda}\left ( \sum_{k=-\infty}^{L}2^{k\alpha(0)q}\left \|  f\chi_{k} \right \|^{q}_{L^{p(\cdot)}} \right )^{1/q},\\\sup_{L>0,L\in \mathbb{Z}}\left[ 2^{-L\lambda}\left ( \sum_{k=-\infty}^{-1}2^{k\alpha(0)q} \left \| f\chi_{k} \right \|^{q}_{L^{p(\cdot)}} \right )^{1/q}\\ +2^{-L\lambda}\left ( \sum_{k=0}^{L}2^{k\alpha(\infty)q}\left \|  f\chi_{k} \right \|^{q}_{L^{p(\cdot)}} \right )^{1/q}\right] \right\}  \end{multline*}


Divisors are cycles for (singular) homology

I'm sure I am missing something quite simple, but why are divisors on an algebraic variety actually homological cycles? I can see them as chains, but in order to take homology (as one always does), or to integrate along them, I would like to see them as singular cycles ($\partial D=0$). (Not just algebraic cycles, of course, which they are by definition.)  Perhaps I am just a bit confused about definitions. Thank you in advance for any clarifying suggestion.


As the title says, can support for oneboxing Vimeo links in chat be added?  Here's one to test with:


Diff between two dates (datetime) in minutes

I need to check difference between two dates - from db and actual, but in minutes in JS/jQuery (I need to run function to check by ajax). This is format of my date:    19-01-2016 22:18   I need something like this:    if ( (date_actual - date_db) < 1 minute ) {    //do something }   How can I do this?    EDIT: I created something like this, but I always getting same log, it's not change -     EDIT 2: Here it's working code, BUT now it's checking in the same hour/minute, ex. 12:50:50 and 12:50:58 show log only for this 2 seconds, but I need to 'stay' log on 1 minute


Fix broken SDE layers with Arcpy - unexpected error

We are in the middle of our ArcGIS 9.3 to 10.1 migration project and we have a lot of custom map documents (from different users) that among others, point to our current 9.3 SDE database. After our migration, we'll disable this database to the users so they can't connect anymore. That means they'll end up with broken links in their MXDs (that's basically what we want) and need to repoint to the new SDE.  I prepared a little script that should automatically repoint all broken layers to our new 10.1 SDE (using a connection file), but unfortunately I always run into the same error. I already checked out some other posts on this site (e.g.  and  ), but also on the ESRI forums e.g.  and the ESRI resource center of course. Also tried to repoint to e.g. a file geodatabase, but I'm getting the same error.  However, none of the suggestions apply to my case or worked for me, and after playing around almost the whole day now, I thought maybe someone here knows a solution to that problem. The code itself works fine, it finds the MXDs, spits out the broken layers if I ask it to, it's just the actual repointing command(s) that give me a headache..  Below my (simplified) code and the error I get. Thankful for any tips!  # Import system modules import sys, string, os, arcpy, datetime, shutil  # source folder(s) to look for MXDs sourcePath = r"D:\scripts\fixBrokenLinks\test" # new 10.1 SDE connection sde = r"\\path to *.sde connection file  # loop through folders and find all MXDs (put into a list) for root, dirs, files in os.walk(sourcePath):     for f in files:         if f.endswith(".mxd"):             mxdPath = root + "\\" + f             mxd = arcpy.mapping.MapDocument(mxdPath)             print "converting " + str(mxdPath)             brknList = arcpy.mapping.ListBrokenDataSources(mxd)             for brknItem in brknList: ##                print brknItem                 brknItem.replaceDataSource(sde, "SDE_WORKSPACE")#, brknItem, True)  ##                # ALTERNATIVE: ##                find_workspace = brknItem.dataSource ##                replace_workspace_path = r"\\path to *.sde connection file ##                print "find_workspace " + str(find_workspace) ##                brknItem.findAndReplaceWorkspacePath(find_workspace, replace_workspace_path)              newMXD = mxdPath[:-4] + "_NEW.mxd"             mxd.saveACopy(newMXD)             del mxd   And here the error I get:  Traceback (most recent call last):   File "D:\scripts\fixBrokenLinks\fixBrokenLinks_simple.py", line 19, in <module>     brknItem.replaceDataSource(sde, "SDE_WORKSPACE")#, brknItem, True)   File "C:\Program Files (x86)\ArcGIS\Desktop10.1\arcpy\arcpy\utils.py", line 181, in fn_     return fn(*args, **kw)   File "C:\Program Files (x86)\ArcGIS\Desktop10.1\arcpy\arcpy\_mapping.py", line 680, in replaceDataSource     return convertArcObjectToPythonObject(self._arc_object.replaceDataSource(*gp_fixargs((workspace_path, workspace_type, dataset_name, validate), True))) ValueError: Layer: Unexpected error   I'm using ArcGIS 10.1 SP1 (Build 3143) and Python 2.7.2


Determining UTM zone from GeoTIFF in QGIS

I'm very new to QGIS, and I have a sample GeoTIFF (and corresponding TFW) file(s) that I'm trying to determine what the longitude and latitude coordinates for each of the 4 corners of the image are - coordinates of 2 opposite corners of the image would also be okay.   I'm able to import the GeoTIFF as a raster layer in QGIS, but I noticed that all the coordinates that are displayed are in UTM format. In the metadata, I see the layer extent, which I was told are the UTM coordinates of the bottom-left and top-right of the corners of the image (square-shaped), which I can work with. However, I have to determine what the UTM zone is so I can use that along with the UTM coordinates in the metadata to convert the points to latitude and longitude.   This seems like a fairly simple task, but I'm unable to find out what the zone is of the image to move forward with the UTM to long/lat conversion.


Does finally block execute if there is an unhandled exception?

We know that the code in the finally block is guaranteed to execute, regardless of whether the exception is caught. But let's say we have the following code: class Program {    static void Main(string[] args) {       try {          int a = 0;          int b = 2021 / a;       }       finally {          System.Diagnostics.Debug.WriteLine("finally execute");       }    } }  I cannot use Console.WriteLine since an unhandled exception terminates a process, no output written to the console, so I use System.Diagnostics.Debug.WriteLine, hopefully I can see "finally execute" displayed in the VS debug window. When I execute the code, I didn't find "finally execute" in debug window, which means finally block won't execute if there is an unhandled exception. If you look at this link  It does say: Part one  Within a handled exception, the associated finally block is guaranteed to be run. However, if the exception is unhandled, execution of the finally block is dependent on how the exception unwind operation is triggered. That, in turn, is dependent on how your computer is set up.  Part Two  The only cases where finally clauses don't run involve a program being immediately stopped. An example of this would be when InvalidProgramException gets thrown because of the IL statements being corrupt. On most operating systems, reasonable resource cleanup will take place as part of stopping and unloading the process.  My questions are: Q1-What does "dependent on how your computer is set up" in Part One mean? Q2-If it is dependent on how the computer is set up, then what does Part Two mean? The exception in my example is DivideByZeroException, not InvalidProgramException, so why the finllay block still doesn't execute


For what $a \in \Bbb R$ does $\neg(3a>21\implies a \leq 5)$ hold?

For what $a\in\mathbb{R}$ will the statement $\neg(3a>21\implies a\leq 5)$ hold?   My gut feeling says $a>7$, but I do not know how to formally write it down or prove it. Can someone help me?


How to evaluate the following definite integral $\int_0^1\frac{\arctan(ax)}{x\sqrt{1-x^2}}dx$?

$$\int_0^1\frac{\arctan(ax)}{x\sqrt{1-x^2}}dx$$   My working is as follows;  Let   $$I(a)=\int_0^1\frac{\arctan(ax)}{x\sqrt{1-x^2}}dx$$  and thus   $$I'(a)=0-0+\int_0^1\frac{x}{(1+a^2x^2)(x\sqrt{1-x^2})}dx$$  (I did this using Leibniz-Newton's formula. I took the partial derivative of the integrand with respect to $a$, and since the two limits of the integral are constants, the first two terms are zero.)  Now, I'm stuck... I've been trying this one for the last hour. Can someone hint me towards the right answer? (which I  to be $\frac{\pi}{2}\sinh^{-1}a$)  P.S: I am aware of this site's norm of keeping MathJax out of the titles, but I'm getting a message that a question with this title already exists... Can someone please help?


Prove that it is a random variable iff it is constant on each partition

Let $\mathcal{G} = \{A_1, \ldots, A_n\}$ be a partition of a set $\Omega$, $\mathcal{F} = \sigma(\mathcal{G})$. Prove that $X : \Omega\to\mathbb{R}$ is a random variable if and only if it is constant on each of the partition elements $A_j$.  I have attempted both directions but faced some difficulties to continue writing the proof. I have also consulted some sources that have a not so clear proof.  Here is the proof: We know that $$\sigma(\mathcal{G}) = \left\{\sum_{i\in I}A_i : I \subset \{1,\ldots,n\}\right\}.$$ ($\Leftarrow$) Let $B\in \mathcal{B}(\mathbb{R})$. In this case $X(\omega) = a_i$, $\forall\omega\in A_i$ for some constants $a_i$, (then I am not sure how to proceed to show that it is a random variable), the proof says that $X = \sum_{i\in I}^n a_i \mathcal{{1_A}_i}$ and $\{X \in B\} = \sum_{i : a_i\in \mathcal{B}}A_i\in \mathcal{F}$, so $X$ is a random variable.  My question is why are we concluding or defining $X = \sum_{i\in I}^n a_i \mathcal{{1_A}_i}$ (what is the purpose), in other words I don't understand it's flow of reasoning.  ($\Rightarrow$) We use proof by contradiction: If $X$ is not constant on $A_i$, then $\exists i_0$ such that for some $\omega_1, \omega_2 \in A_{i_0}$ one has $a:= X(\omega_1) \not= X(\omega_2)$. Then I am not sure how to proceed from here.  Many thanks in advance.


Recursion: putting people into groups of 1 or 2

let $n \gt 1$ be an integer, and consider n people; $P_1,P_2,...,P_n$ let $A_n$ be the number of ways these $n$ people can be divided into groups, such that each group have either one or two people  determine $A_1,A_2,A_3$ So I have  $A_1=1$ way   $A_2=2$ way   $A_3=4$ way  and from this I derive the formula $A_n = 2^{n-1}$ but this is not true for $n\ge 4$  so I have to prove that for each integer $n\ge 3$  $$A_n = A_{n-1} + (n-1) * A_{n-2}$$  So I proved this by Induction:  Where I assumed that $n \ge 2$ so $A_{n+1} = 2^n$  So I did the induction step.. and I was wrong  I was hoping anyone on here could help me by proving this with induction?  Thanks


Bad substitution: no closing "`" in a heredoc / EOF

I'd like to print a man style usage message to describe a shell function like this output man find:  NAME        find - search for files in a directory hierarchy  SYNOPSIS        find [-H] [-L] [-P] [-D debugopts] [-Olevel] [starting-point...] [expression]  DESCRIPTION        This  manual  page  documents the GNU version of find.  GNU find searches the directory tree rooted at each        given starting-point by evaluating the given expression from left to  right,  according  to  the  rules  of        precedence  (see section OPERATORS), until the outcome is known (the left hand side is false for and opera‐        tions, true for or), at which point find moves on to the next file name.  If no  starting-point  is  speci‐        fied, `.' is assumed.  OPTIONS   I am facing an error message on the ` character. Following simple script shows the error:  ~$ cat <<EOF `.' EOF  bash: bad substitution: no closing "`" in `.'   I though heredoc was a cool way to echo strings by pasting them without having to escape its content such a quotes, etc... I assume I was wrong :/  Can someone explain this behavior please? Can heredoc accept ` character?  Edit 2: I accepted the answer of quoted here-document  <<'END_HELP', but I finally won't use it for this kind of complete manual output as  does   Edit 1: (For future reads) the limit with using quoted here-document is that is prevents to use tput in the here-document. To do so, I did the following:   unquoted here-document, for tput commands to be executed prevent the "bad substitution" error by escaping the backtick instead use tput within the  here-document   Example:  normal=$( tput sgr0 ) ; bold=$(tput bold) ;  cat <<END_HELP # here-document not quoted ${bold}NAME${normal}        find - search for files in a directory hierarchy  ${bold}SYNOPSIS${normal}        find [-H] [-L] [-P] [-D debugopts] [-Olevel] [starting-point...] [expression]  ${bold}DESCRIPTION${normal}        This  manual  page  documents the GNU version of find.  GNU find searches the directory tree rooted at each        given starting-point by evaluating the given expression from left to  right,  according  to  the  rules  of        precedence  (see section OPERATORS), until the outcome is known (the left hand side is false for and opera‐        tions, true for or), at which point find moves on to the next file name.  If no  starting-point  is  speci‐        fied, \`.' is assumed. END_HELP  unset normal ; unset bold ;   Here, note the escaped backtick that was source of error:  \`.'


How to connect to remote computer with public and local ip?

I have all credentials of the computer in remote computer network consisting of several computers. I know it's local name and ip, also user and pass. And public ip of this network.


! many other threads like this one  didn't solve my issue with Broadcome wifi disappeared after updates. ! Here is a very straightforward decision. My name is Vladimir and I have found the decision that worked for my case. So, on my Ubuntu 20.04 on HP 250G laptop with Broadcom BCM43xxxx wireless device wifi had disappeared after updating/upgrading (January 2021). After 3 days of searches and dozens of errors gotten, I have found this cure: apt purge bcmwl-kernel-source apt-get install broadcom-sta-source apt-get install broadcom-sta-dkms apt-get install broadcom-sta-common  Thanks to joaorami (joaomppr) from


Im creating a community user from an Apex code. When our internal users (non-admins) run the code they are getting following error. (This was working fine when we test the feature in sandbox)     SObjectException: Field is not writeable: User.ProfileId   The code is       //Grab Community User Profile     Profile p = [Select Id, Name from Profile where Name = :COMMUNITY_PROFILE LIMIT 1];       User PortalUser = new User();          PortalUser.UserName = Con.Email+'-POC';         PortalUser.ContactId = Con.Id;         PortalUser.ProfileId = p.id;         PortalUser.Email = Con.Email;         PortalUser.EmailEncodingKey = 'UTF-8';         PortalUser.FirstName = Con.FirstName;         PortalUser.LastName = Con.LastName;         PortalUser.TimeZoneSidKey = 'America/Los_Angeles';         PortalUser.LocaleSidKey = 'en_US';         PortalUser.LanguageLocaleKey = 'en_US';          if (Con.LastName.length() >= 8){             PortalUser.Alias = Con.LastName.substring(0, 7);             }else{             PortalUser.Alias = Con.LastName;         }             SObjToInsert.add(PortalUser);


How to use articles with scientific words, such as mass, force, impulse, field and others?

How are articles used with scientific quantities, such as mass, force, impulse, field and others?


Inaccurate reputation graphs - bug or as designed?

I have notice two issues with the reputation graph: 1: This user has a higher score on the graph than in reality I happened to notice  where the user's graph reputation does not match their actual reputation.  The person in question was hit by a -100 penalty for an offensive answer a while back, but the graph doesn't reflect that.  I thought it just didn't update when I noticed this at the time, but the person has since gained and lost reputation and at all times the graph was +100 of their actual reputation.  It seems, based on Shadow Wizard's comment that this is because the reputation change is non-public. OK, fair enough... , which was marked as , noticed a similar phenomenon for placed DVs.  This prompted me to examine graphs more carefully.  It seems that this hidden -1 has been updated, as I checked several users and did not find any others that had lower actual reputation than graph reputation, so .  (Since the number of DVs placed is public, I can be reasonable sure that these users have placed -1 rep DVs, although strictly speaking they could be 100% question DVs.) 2: Some users have a lower score on the graph than in reality I did, however, find many users where the graph says their reputation is much lower than it actually is.  Perhaps that is from deleted downvotes turning into hidden +1s, but those should be balanced by hidden -1s, so its not clear what happened.  Seems there is some error in the logic - maybe the -1s do affect the graph now as per the , but the corresponding +1s don't?  Whatever the case, I can't imagine it is intentional. Edit: I went back to find some examples today & didn't find any.  I think the issue has been resolved - either it was a caching issue or a change was made to the code after this post.


finding flaw in the bogus inductive proof

I have been looking at this problem for a while, but I cannot find an exact solution to it, although the statement and the conclusion are obviously wrong. Here is the proof:     Claim: All tables are the same height      To prove this by induction, we let P(n) be the statement "For any set   of n tables, all n tables are the same height." If we prove this   true for all n, it will certainly be true for n = the number of   tables that exist      Now we proceed by induction on the number of tables. The base case is   the case in which there is one table. Since this table is the same   height as itself, the base case is true. Now assume that the statement   holds for any set of n tables, and consider a set of n + 1 tables.      Put the tables in a line. If we remove the first table, we are left   with a set of n tables. Then by the inductive hypothesis, these n   tables must be all be the same height. If, instead, we had removed the   last table, we would again have n tables, which would now include   the first one, and again by inductive hypothesis all n tables would   be the same height. Therefore, all of the tables must be the same   height as, for instance, the second table from the front, and   consequently must be the same height as one another. The result then   follows from induction.   I do think the base case is true. Although I hate to say that I am getting convinced by this proof, I do have a strong feeling that the flaw is in the inductive step. It's so obvious that I'm confusing myself, but what would be wrong with this proof??


Do Hutts find humanoid females attractive, and if so why?

Jabba the Hutt kept scantily clad humanoid slaves.  Jabba even tried to kiss Leia.  But IIRC Hutts are hermaphrodites and of course should by all biological reasoning not be attracted to creatures of a specific sex (don't recall sexy dudes hanging around) with radically different body design.  So do Hutts find humanoid females hot, and if so why?  Or do they just do this for status and to show off to the largely humanoid populations that surround them?


I wanted to have some space (and no indent) between paragraphs. After doing that with \parskip, the space around theorem environments went wrong. I found an answer to that problem here, but the spacing around proofs is still wrong.  How do I fix the spacing around proofs? I'd like it to be the same as around theorems or at least a bit less than now.  Here's a MWE:  \documentclass[11pt]{report}  \usepackage{amsmath,amsthm} \usepackage[ansinew]{inputenc} \usepackage[T1]{fontenc} \usepackage[english]{babel} \usepackage{lipsum}  \setlength{\parskip}{2ex} \setlength{\parindent}{0pt} \renewcommand{\baselinestretch}{1.25}  \makeatletter \def\thm@space@setup{%   \thm@preskip=\parskip     \thm@postskip=0pt} \makeatother  \theoremstyle{plain} \newtheorem{thm}{Theorem}[chapter]  \begin{document}  \section{A Section}  \lipsum[1-2]  \begin{thm} $1+1=2$ \end{thm}  \lipsum[2]  \section{Another Section}  \lipsum[2]  \begin{thm} $1+2=3$ \end{thm} \begin{proof} Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse sit amet dignissim erat. \end{proof}  \lipsum[2]  \end{document}


I have created a  that i would like to add to my portfolio, but i'm having a hard time getting high quality screenshots of the full site. I tried to save the website as PDF, but that was full of errors, other online services cant recreate the images and so on. I've also just tried to take regular screenshots on the mac at put it all together, but it really lost a lot of quality when i scaled it down.  Any good ideas? :)


How to read an already existing NgSpice raw file

This has taken me a couple of days to solve. I have a set of NgSpice raw files that I would like to exploit so as to visualize the voltage distributions in different circuits. What is the python command to use or python package to import in order for me to achieve this. Note: I am a bit familiar with the PySpice python package, but from what I have read and understood it works when you use it to create your netlist and run it, by using the already stored variables in its memory. In my case however, raw files are already generated... Hope I was clear enough.


I have input a graph as pdf into my latex document but there is a big white space underneath it. How do I crop my pdf so that is only includes the graph and no margins???


Find all polynomials P(x) with real coefficients such that.........?

Find all the polynomials $p(x)$ with real coefficients such that :-  $(x-8)P(2x)=8(x-1)P(x)$  I tried putting different values to P(x) to find any roots, here's what I found out.  $P(2)=P(4)=P(8)=0$  So,  $P(x)=(x-2)(x-4)(x-8)Q(x)$, Where $Q(x)$ is some polynomial.  Now I don't know what to do next.  Any help would be appreciated.


How to charge a laptop through the usb port

I know that there is a way to charge your laptop by plugging a USB connector into your laptop and then plugging the other end into a wall charger as I know a friend with a ThinkPad who does it. I just want to know how so that I may do the same.


Initializing an array on arbitrary starting index in c#

Is it possible in c# to initialize an array in, for example, subindex 1?  I'm working with Office interop, and every property is an object array that starts in 1 (I assume it was originally programed in VB.NET), and you cannot modify it, you have to set the entire array for it to accept the changes.  As a workaround I am cloning the original array, modifying that one, and setting it as a whole when I'm done.  But, I was wondering if it was possible to create a new non-zero based array


Match between brakets that may contain other brakets

I am trying to find a regex that matches brakets that may contain other brakets.  Example:  Match1(Match2())   I want the output to be: Match1:     $0 => 'Match1(Match2())'      $1 => 'Match1'      $2 => 'Match2()' Match2:     $0 => 'Match2()'      $1 => 'Match2'      $2 => ''  Is there a way to get it done, e.g. \w+\(.*?\)


If $E$ is the expected value of a random variable, is $E(X^{-1})=\frac{1}{E(X)}$? From the properties of the expected value it looks like this shouldn't be true. However, I have used it in a couple of execises and it seemed to work out okey.  EDIT: For example I would like to use this property to calculate $E\left(\frac{X^2}{X^2+Y^2} \right)$ where $X, Y$ are independent stardard normally distributed random variables


Proof that an affine scheme is quasi compact

I want to prove that any affine scheme $X = \operatorname{Spec} A$ is compact.   $\bigcup D(f_i)$ is an open cover of $X$ if and only if the sum ideal $\sum (f_i)$ contains $1$. That is, $ D(\sum f_i)=\bigcup D(f_i)$.   Why does a possible infinite sum of ideals which includes $1$ mean that there exists a finite subset of such ideal whose ideal sum will include $1$ ?


Verify that $4(29!)+5!$ is divisible by $31$.

Verify that $4(29!)+5!$ is divisible by $31$  I know I have to use Wilsons theorem: $(p-1)!=-1\pmod p$ but I'm not really sure how to apply this theorem. Step by step explanation please? Thank you!


After reading the meta I still don't know where to post my question

I posted a question on Programmers and was told that I should post it on Stack Overflow instead.  Having posted it in both places, both questions are now "on hold  as off-topic" so really, I don't know where I'm supposed to post this question anymore.     I added a little more info to the SO question to follow what the "off-topic" notice suggestion but I seriously doubt it'll ever receive any attention again.  So where can I post this question now that the 2 most likely places have rejected it outright?


Java JFrame Suddenly Giving NullPointerException

I was following a tutorial on making a simple game with Java, but for some reason my code stopped working for no reason that I can find. This is Window class that I was using.      package com.tutorial.main;      import java.awt.Canvas;     import java.awt.Dimension;      import javax.swing.JFrame;      public class Window extends Canvas{          private static final long serialVersionUID = -240840600533728354L;          public Window(int width, int height, String title, Game game){             JFrame frame = new JFrame(title); // line 13              frame.setPreferredSize(new Dimension(width,height));             frame.setMaximumSize(new Dimension(width,height));             frame.setMinimumSize(new Dimension(width,height));              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);             frame.setResizable(false);             frame.setLocationRelativeTo(null);             frame.add(game);             frame.setVisible(true);             game.start();          }     }   Yesterday it worked fine. Today, when I reopened Eclipse, added some more code and tried running it I get a NullPointer Exception.      Exception in thread "main" java.lang.NullPointerException         at java.awt.Window.init(Window.java:497)         at java.awt.Window.<init>(Window.java:537)         at java.awt.Frame.<init>(Frame.java:420)         at javax.swing.JFrame.<init>(JFrame.java:233)         at com.tutorial.main.Window.<init>(Window.java:13)         at com.tutorial.main.Game.<init>(Game.java:26)         at com.tutorial.main.Game.main(Game.java:105)   I did not change anything in the Window class, nor the game class so I have no idea what is causing this. This is the line in Game.java that calls the window:      new Window(WIDTH, HEIGHT, "Game", this); // line 26


I am running python 3.0 and need to make a permutation from a list of 7 numbers in that list, but I am not finding any decent sample code or guide to create all the permutations.   Could someone please put some sample code as to how I would make and be able to print all the permutations.


Problem in installing Python 3.3 in Ubuntu 12.04

Initially I installed Python 3.3 from source, but then I removed and deleted the directory /usr/lib/python3.3.   When I am installing it using aptitude, I am getting this error.  Unpacking python3.3 (from .../python3.3_3.3.1-1ubuntu5_i386.deb) ... Processing triggers for man-db ... Processing triggers for bamfdaemon ... Rebuilding /usr/share/applications/bamf-2.index... Processing triggers for desktop-file-utils ... Setting up python3.3 (3.3.1-1ubuntu5) ... python3.3: can't open file '/usr/lib/python3.3/py_compile.py': [Errno 2] No such file or directory dpkg: error processing python3.3 (--configure):  subprocess installed post-installation script returned error exit status 2 Errors were encountered while processing:  python3.3 E: Sub-process /usr/bin/dpkg returned an error code (1) A package failed to install.  Trying to recover: Setting up python3.3 (3.3.1-1ubuntu5) ... python3.3: can't open file '/usr/lib/python3.3/py_compile.py': [Errno 2] No such file or directory dpkg: error processing python3.3 (--configure):  subprocess installed post-installation script returned error exit status 2 Errors were encountered while processing:   Any idea how to rectify the error?


Choosing correct contour for $\int_{-\infty}^{\infty}\frac{x-\sin x}{x^3}\,dx$

I am trying to compute the integral$$\int_{-\infty}^{\infty}\frac{x-\sin x}{x^3}\,dx$$   Let $f(z)=\dfrac{z-\sin z}{z^3}$. I tried to integrate this along a semi-circular contour in the upper half plane, taking the radius to $\infty$, but the $\sin z$ term explodes along the circular arc. I then thought about a rectangular contour, but then the vertical contours on the sides do not give a very nice expression.   (By the way, $f(z)$ has no singularities.)  What contour should I choose? How can you decide this will work when approaching the problem to start with?


Can you support exporting the resume to MS Word in Careers? Having the PDF export is great, but some employers require the MS Word format.


I've received a CSV file exported from an unknown application containing polygon coordinates in the following format:  Title | Latitude 1 | Longitude 1 | Latitude 2 | Longitude 2 | ... | Latitude 50 | Longitude 50  How can I generate polygons from this data in Mapinfo Professional (12.0)?


Potential solution to Bug #1573052 (Gnome-software crash due to broken dependency link)

I cannot open gnome-software. Here is the error message:  $ gnome-software (gnome-software:3824): Gs-WARNING **: failed to open plugin /usr/lib/gs-plugins-9/libgs_plugin_xdg_app_reviews.so:  /usr/lib/gs-plugins-9/libgs_plugin_xdg_app_reviews.so: cannot open shared object file: No such file or directory       I have been grappling with this for some time. I have tried reinstalling and that didn't work. The file shows in my directory in red, I search through the properties and it says that it is broken/missing. I opened it in gedit, and it opened up blank. So after all of that I deleted it figuring updating and upgrading might be the solution. It was not. Now I would like to do one of two things:   reinstall gs-plugins without breaking the rest of my system just install the missing file in gs-plugins (can't find it)   Or is there an alternative that I am not aware of? Could someone with more experience give me some guidance on how to carry out one of those two options or how I should go about solving the problem? Thank you.


Security of bash script involving gpg symmetric encryption

Notice: the very same vulnerability has been discussed in , but the different setting of the problem (in my case I don't need to store the passphrase) allows for a different solution (i.e. using file descriptors instead of saving the passphrase in a file, see ).  Suppose I have a symmetrically encrypted file my_file (with gpg 1.x), in which I store some confidential data, and I want to edit it using the following script:  read -e -s -p "Enter passphrase: " my_passphrase gpg --passphrase $my_passphrase --decrypt $my_file | stream_editing_command | gpg --yes --output $my_file --passphrase $my_passphrase --symmetric unset my_passphrase   Where stream_editing_command substitutes/appends something to the stream.  My question: is this safe? Will the variable $my_passphrase and/or the decrypted output be visible/accessible in some way? If it isn't safe, how should I modify the script?


Huge Banner.. What size to make artwork in?

I have to make artwork for a banner that is 123'' X 194''.  I am not sure what size to make the page I am creating the artwork on in Photoshop. It obviously doesn't let me make it that big. Do I need to make it into CM or MM?  Thanks in advance


Real life examples of where java interfaces are necessary?

I have been searching for an answer for a while so I am sorry if this has already been answered.   I am confused as to why inheriting empty method stubs from an interface is considered so useful in java? Is this something that is mainly used in bigger projects that i need to try to understand? Because although I know all the syntax and characteristics of interfaces, I cannot find uses for them when I am programming. I have tried to read as much as I can but this is a concept that I cannot get to 'click' in my head and I feel it is holding me back.  Or perhaps it is just case of good software design and I need to use them in certain scenarios whether I feel I need to or not?  If someone could point me in the direction of some code or preferably a project for me to do where interfaces are imperative that would be much appreciated.


How to install more voices to Windows Speech?

I downloaded another TTS pack from , but in the speech properties this pack doesn't show up.  The image bellow lists all packs installed, which came by default in my Windows 8 installation.    But it is not supported on windows 8, so how can I install more packs?


What kind of performance implications are there to consider when using try-catch statements in php 5?   I've read some old and seemingly conflicting information on this subject on the web before. A lot of the framework I currently have to work with was created on php 4 and lacks many of the niceties of php 5. So, I don't have much experience myself in using try-catchs with php.


Remove "be nice new user" message from users who are active in other sites on the network

This answer is clearly not answering the question (examples before 1950), and is marked a new user, but has a 61K+ reputation on another site (stack overflow) and thus we shouldn't have to explain the rules to them like we should for a new user .  Despite  which asks us to ignore rep bonus for purposes of the first question/answer queue (and I agree with), I'd prefer we save the "new user be nice" for those users who are truely new, and not include those of us who are experienced on other sites.    @Glorfindel remarked that  asks to distinquish between new users to this site versus new users to the whole network.  That information is available via clicking on the user's icon and finding out.  My request is different because I am asking that the "new user be nice" tag is removed completely from those of us who already have enough reputation in another network site to not count as a new user anymore.  Thus, the "new user be nice" tag is network wide, not site specific.  The reason I ask this is because I want to cut down on the false positives, so we don't start ignoring the "new" message because we see it too often.  Do you agree?


How do I manage collaborative development on a Drupal site?

I work with another developer on a Drupal site. We have struggled to find a good way to work on different parts of the site at the same time without getting in each others way. We've tried working on the same development instance of the site, but we often step on each others toes, or bring down the site with some bad code making it impossible for the other to continue working until it's resolved. So we've moved to separate development instances. But now it's a big pain to merge our work into a single instance of the site. We basically end up redoing everything on a shared copy.  The biggest problem we have now is how do we merge database changes, and how do we include the database in our source control system? The files are easy, just track them all (we use git) and merge our work, resolving conflicts where needed. But this doesn't really work with the database. We can take a SQL dump and include that in our git repository, but we can't really merge the databases. The  helps a little, letting us export some of our database work into code which can then be versioned and merged. However, not even close to everything supports Features. So...   What steps can we take to easily merge our database changes? How should we version the database (is putting a dump file in git a good way to do it)? Are there any modules available that help with some of these problems? Or, are we stuck with working on the same copy of the site? (please so no)     Edit: In the comments we discussed what things can't be exported with Features and one of them was Taxonomies. There's another .


My shield broke and I'm not sure where I can buy a new shield. So, where can I buy a new shield?


Stack Overflow flair is returning incorrect reputation for clean theme only

I am trying to use the , but only the clean theme is not returning the proper reputation. Is there a problem with this tag?  Clean Theme:        Others Themes [Returning proper values of reputation]                    What I see:


Why are dementors natural allies of Voldemort?

When Azkaban is broken open, the Lestranges will be honored beyond their dreams. The Dementors will join us ... they are our natural allies ... we will recall the banished giants ... I shall have all my devoted servants returned to me, and an army of creatures whom all fear ....   (Harry Potter and the Goblet of Fire, Chapter 33, The Death Eaters)  There is a perfectly good out of universe reason why Dementors should be allies with the death eaters — no dark lord deserving his title is without an army of nightmarish creatures at his command, and Dementors are set up as being more nightmarish than most.  But, in universe, is there any particular reason why the Dementors and Death Eaters should align so closely?


Why allow closed questions to be voted on?

In seeing some of the potential solutions and problems related to this  I noticed something. Why are closed questions allowed to obtain more reputation for a user?   So my recommendation(even though it's a pain to implement probably) is this(note, this includes all close votes except for migrations)   When a question gets closed, only the question gets retroactively marked as community wiki. By retroactive, I mean all upvotes on the question before closing are undone.  Also note, downvotes are kept. This means a closed question with downvotes will always have a net negative reputation.  When a question is reopened, it gets retroactively assigned to the user instead of the community user. This just undoes point #1.   Details:  Point one solves these problems:   User asks a popular, but "bikeshed" subjective question. Even if the question is closed an hour later, they may accumulate 15 upvotes. With this system, those 15 upvotes won't matter. Downvotes are kept to the user while being closed. This deals with low-quality questions that people should get a negative reputation affect for. However, after being closed downvotes should be assigned to the community user to prevent the downward spiral affect, especially since pitty upvotes won't be able to save them. People can still upvote as a method of suggesting that a question should be reopened. The upvote just won't count for the author of the question until reopened.   I see no actual point in closed questions being capable of acquiring reputation, except for maybe duplicates(but only barely).  So, here is my feature-request. :)  Also, to solve the  you could apply the same thing toward the answers of closed questions. This isn't a big problem with any close reasons other than Not A Real Question, where many low quality answers fall but with users who try to answer them anyway with the small amount of information given. I think those users should not be discredited for their attempts.


For a given launch velocity $v$ and launch angle $\theta$, the trajectory of a projectile may be described by the standard formula   $$y=x\tan\theta-\frac {gx^2}{2v^2}\sec^2\theta$$      For different values of $\theta$ what is the envelope of the different trajectories? Is it a parabola itself?   The standard solution to this "envelope of safety" problem is to state the formula as a quadratic in $\tan\theta$ and set the discriminant to zero. The resulting relationship between $x,y$ is the envelope.   This question is posted to see if there are other approaches to the solution.    Edit 1  Thanks for the nice solutions from Jack and Blue, received so far. From the solution of the envelope it can be worked out that the envelope itself corresponds to the right half of the trajectory of a projectile launched at $(-\frac{v^2}{g^2},0)$ at a launch angle $\alpha=\frac{\pi}4$ and a launch velocity $V=v\sqrt2$. This means that both vertical and horizontal components of the launch velociy are equal to $v$. It would be interesting to see if these conclusions can be inferred from the problem itself by inspection and without first solving it. If so, then this would form another solution.    See also this  posted subsequently.


Exception in "main"java.lang.NullPointerException:Cannot invoke "java.lang.Integer.intValue()"the return value of "java.util.Map.get(Object)" is null

I'm having trouble with this code. I copied this code from the book.. What is the problem?? import java.io.*; import java.util.*;  public class WordCount {     // minimum number of occurrences needed to be printed      public static final int OCCURRENCES = 2000;      public static void main(String[] args) throws FileNotFoundException {         System.out.println("This program displays the most");         System.out.println("frequently occurring words from");         System.out.println("the book Moby Dick.");         System.out.println();          // read the book into a map         Scanner in = new Scanner(new File("moby.txt"));         Map<String, Integer> wordCountMap = getCountMap(in);          for (String word : wordCountMap.keySet()) {             int count = wordCountMap.get(word);             if (count > OCCURRENCES) {                 System.out.println(word + " occurs " + count + " times.");             }         }     }      // Reads book text and returns a map from words to counts.     public static Map<String, Integer> getCountMap(Scanner in) {         Map<String, Integer> wordCountMap = new TreeMap<String, Integer>();          while (in.hasNext()) {             String word = in.next().toLowerCase();             if (wordCountMap.containsKey(word)) {                 // never seen this word before                 wordCountMap.put(word, 1);             } else {                 // seen this word before; increment count                 int count = wordCountMap.get(word);                 wordCountMap.put(word, count + 1);             }         }          return wordCountMap;     } }


Finding the limit of $\frac{(2n)!!}{(2n+1)!!}$ without using Stirling’s approximatation

I have proven that the sequence is convergent. Let $x_n=\frac{(2n)!!}{(2n+1)!!}$ $\frac{x_{n+1}}{x_n}$ $=\frac{2n+2}{2n+3}<1$ Therefore the sequence decreases. On the other hand $x_n>0$. Therefore the sequence is bounded below. Since we have a sequence that is bounded below and decreases the sequence must converge. But from here I don’t know how to find the limit. Could you please help me? And could you please say if what I’ve done is necessary or not? Thanks in advance!


Let $A$ be a nonzero finite dimensional unital algebra over a field $F$ with $char(F) = 0$, and let $\varphi$  be an automorphism of $A$.      How can we show  that $\varphi(a)  \neq a +1$  for   every $a \in A$?   How can we prove by $L_{\varphi (a)}$ through $\varphi$,$\varphi^{-1}$, and $L_{a}$?  ( $L_{a}$  is  left multiplication map $x \mapsto ax$) .


What keeps a bike from falling while in motion?

Okay, so it might seem like a trivial question, but when I suddenly stop my bike (not really fast), I lose balance. Why is that? What keeps me from falling while riding it?  EDIT : The answers in the other question either use terms I don't understand, or don't explain it in a simple and satisfactory way.


how to detect if the downloading of the file has finished?

is there such way/method/strategy to detect if the downloading of a file is finished?..my problem is like this.  Scenario: when click the report generator button, a loading wheel icon appears because it takes a while to generate the spreadsheet...and now, when the download has finished and the spreadsheet was saved in the client's machine, the loading wheel icon is still there spinning.. the only way that I think of to remove that spinning wheel is by detecting if the downloading is finished and then hide the spinning wheel ..so how ? :confused:  PLEASE TAKE NOTE BEFORE MARKING MY QUESTION AS DUPLICATE: when i push the button, I am writing a file in the spreadsheet before it automatically/forcefully gets downloaded. it's not like the typical downloading of a static file


What are pre-print repositories for math and physics alternative to ArXiv?

Are there other widely used academic pre-print repositories other than ArXiv? My interest is especially towards mathematics and physics.  If possible, one characteristic that I'd like to find in other pre-print repositories is the possibility to update the paper without leaving the older versions online and a better organized "author page" (and, as a note, I personally don't like Research Gate or Academia.edu, which also, as far as I understand, shouldn't be considered pre-print repositories).


Can someone check over my short PHP register script and tell me if it's safe from MySQL injection?

I'm trying to learn about SQL Injection and how to avoid it. This is my current register php that I added escape strings. Can someone tell me if there's any other steps I should take to avoid SQL injection? Thanks.  <?php  session_start();  // Set session variables to be used on profile.php page $_SESSION['email'] = $_POST['email']; $_SESSION['first_name'] = $_POST['firstname']; $_SESSION['last_name'] = $_POST['lastname'];  $first_name = $mysqli->escape_string($_POST['firstname']); $last_name = $mysqli->escape_string($_POST['lastname']); $email = $mysqli->escape_string($_POST['email']); $password = $mysqli->escape_string(password_hash($_POST['password'], PASSWORD_BCRYPT)); $hash = $mysqli->escape_string( md5( rand(0,1000) ) ); $igname = $mysqli->escape_string($_POST['igname']); $profileurl = $mysqli->escape_string($_POST['profileurl']); $rules = $mysqli->escape_string($_POST['rules']); $username2 = $mysqli->escape_string($_POST['username']);   // Check if user with that email already exists $result = $mysqli->query("SELECT * FROM users WHERE email='$email'") or die($mysqli->error()); $result2 = $mysqli->query("SELECT * FROM users WHERE username='$username2'") or die($mysqli->error());  if ( $result->num_rows > 0 ) {  $_SESSION['message'] = 'User with this email already exists!'; header("location: error.php"); exit(); }  else if ( $result2->num_rows > 0 ) {  $_SESSION['message'] = 'User with this username already exists!'; header("location: error.php"); exit(); }   else {   $to = 'kielly@email.ca'; $subject = 'NEWUSER';  $message = "Someone has registered";  $headers = "From: general@email.ca\r\nReply-To: webmaster@email.com"; $mail_sent = @mail( $to, $subject, $message, $headers );  echo $mail_sent ? "Mail sent" : "Mail failed";  $sql = "INSERT INTO users (first_name, last_name, email, password, hash, igname, profileurl, readrules, admin, username) "          . "VALUES ('$first_name','$last_name','$email','$password', '$hash', '$igname', '$profileurl', '$rules', 0, '$username2')";  // Add user to the database if ( $mysqli->query($sql) ){      $_SESSION['active'] = 0; //0 until user activates their account with verify.php     $_SESSION['logged_in'] = true; // So we know the user has logged in     $_SESSION['admin'] = 0;     $_SESSION['message'] =               "Thank you for applying. Please wait while admins check over your application. You should recieve an email shortly. (Check junk folders and allow up to 5 hours for a review)";     header("location: usertest.php");   }  else {     $_SESSION['message'] = 'Registration failed!';     header("location: error.php"); } }   Should I also add prepared statements such as  $stmt = $mysqli->prepare("INSERT INTO users (first_name, last_name, email, password, hash, igname, profileurl, readrules, admin, username) VALUES (?,?,?,?,?,?,?,?,?,?)");   or is what I have above safe?


Anthology book with story about robotic bombers

I'm trying to find the name of a book I had as a kid back in the 80's/90's that was a collection of science fiction short stories and in particular one story in it.  The book: I remember the cover being mostly orange with the face of an alien taking up most of the cover. Scaly looking 'grey' style alien with hooded green eyes. They may have also been a 60's/70's style space ship in the background with a man and woman.  The story: Was set after all human life had ended in a great war and the story followed one of the many autonomous bombers still flying the skies carrying out their missions repeatedly bombing already leveled cities. At least that's how I remember it.  Any help/clues you can give would be much appreciated as I'd love to share these stories with my kid.  Some other stories it had, if any of these can be identified it might help me find the book:   Two guys talking in a room and one give the other a wooden carving of an apple and starts telling him the history of the object and how it's used to hypnotise people who hold it as they can't resist stroking it and it puts them in a catatonic state. A bunch of robots/machines wandering the post-apocalyptic country side, free of their duties to mankind. Their adventure comes to an end when they run into a hermit living in the country and their programming kicks in and they immediately become his servants. A story about first contact with an alien race, the aliens come to earth and land at the coordinates of an air-force base but upon arrival there is confusion as the humans cannot see the aliens and the aliens cannot see the humans. The aliens complain that they've been tricked and that their ship is sinking. The humans think this is strange until they realise the aliens are incredibly small and have landed in a puddle on the airfield.


Alternative ways to make ajax requests in wordpress

I'm currently having a problem with working with AJAX. Well not really a problem since I can pretty much do what I want to do. The only problem is my boss saying that the admin-ajax.php file is an admin file and he doesn't want any admin file in the public side of the website. So my question is is there any alternative ways without using this method to make ajax requests in Wordpress? Here's what I'm currently doing:  add_action('wp_ajax_nopriv_plug_token', array($this, 'plug_get_token'));  add_action('wp_ajax_plug_token', array($this, 'plug_get_token'));  public function plug_get_token(){   return $token;   die(); }   And under the wp_enqueue_scripts action hook I'm loading the file for processing ajax request:  wp_localize_script(      'plug_public_script',      'plug_public',      array(          'ajaxurl' => admin_url('admin-ajax.php')     ) );   So I simply call it in my script like this:  jQuery.post(plug_public.ajaxurl, {'action' : 'plug_token'}, function(token){    //do something with the token });   My boss said something about moving the admin-ajax.php into a more public location and then call from there. Is there really a security concern when calling admin-ajax.php from its default location?


Choice Problem: choose 5 days in a month, consecutive days are forbidden

I'm "walking" through the book "A walk through combinatorics" and stumbled on an example I don't understand.      Example 3.19. A medical student has to work in a hospital for five   days in January. However, he is not allowed to work two consecutive   days in the hospital. In how many different ways can he choose the   five days he will work in the hospital?      Solution. The difficulty here is to make sure that we do not choose two consecutive days. This can be assured by the following   trick. Let $a_1, a_2, a_3, a_4, a_5$ be the dates of the five days of   January that the student will spend in the hospital, in increasing   order. Note that the requirement that there are no two consecutive   numbers among the $a_i$, and $1 \le a_i \le 31$ for all $i$ is equivalent   to the requirement that $1 \le a_i < a_2 — 1 < a_3 — 2 < a_4 — 3 < a_5 — 4 \le 27$. In other words, there is an obvious bijection between the   set of 5-element subsets of [31] containing no two consecutive   elements and the set of 5-element subsets of [27].      *** Instead of choosing the numbers $a_i$, we can choose the numbers $1 \le a_i < a_2 — 1 < a_3 — 2 < a_4 — 3 < a_5 — 4 \le 27$, that is, we can   simply choose a five-element subset of [27], and we know that there   are $\binom{27}{5}$ ways to do that.   What I don't understand here $1 \le a_i < a_2 — 1 < a_3 — 2 < a_4 — 3 < a_5 — 4 \le 27$:   Why do the subtracting numbers increment with every other $a_i$?  Why 27?   And the very last sentence (***) is unclear to me.   Why is there no talk about "non-consecutive"? Why choosing 5 elements of 27 is equivalent to choosing 5 non-consecutive elements out of 31? I miss the connection.    I'd be very thankful if you could help me to understand this example!


clicking on dynamically added element does nothing

I have a div that when pressed adds another div with the same class. But when I click on the dynamically added elements, nothing happens.    $('.container').on('click', function(){   var newColumn = $('
');   var newState = $('
Nothing
');   newState.appendTo(newColumn);   newColumn.appendTo($('#canvas')); }); .container{   border:1px solid black;   width:100px;   height:40px;   text-align:center;   vertical-align:middle;   line-height:40px;   border-radius:10px;      -webkit-user-select: none; /* Chrome/Safari */           -moz-user-select: none; /* Firefox */   -ms-user-select: none; /* IE10+ */ }  .column{   list-style-type: none;   display:inline;   width:100px;   float:left;   margin:10px; }

       works

     How can I make the click-event work for all the elements?


Execute a Stored Procedure in a SELECT statement

For an instance I a select statement and it is returning 1000 rows. I need to execute a particular stored procedure for every row the the select statement is returning.  have you got any idea how can I do that?


Can I book a two leg trip but only use the second leg?

I'm looking to book a quick one way trip from nyc to Pittsburgh.  The nonstop flights are all around $300.  When I try out of Hartford, ct...I get a flight for $150 leaving Hartford with one stop in Newark.  When I check the same exact Newark flight...its $300.  My question is...could I book the Hartford-Newark-Pittsburgh flight...but just get dropped off at Newark for the second leg, since I live closer to nyc than Hartford. To save half the price.  Are there any issues or rules against this?  Thanks


An instructor has an exam of 5 questions and a question bank of 50 questions. Are there $50\choose 5$ or $(50)_5$ possible exams?

Where $(50)_5 = 50! / 45! $ and $50\choose 5$ $= 50!/(5!45!)$   I've narrowed it down to these two possibilities (though even these may be wrong), but I think I'm confusing myself as to which one I use. Can anyone suggest a good way of thinking of this problem that will make it apparent whether I need use use the falling factorial or the binary coefficient?   Edit: thank you for all the answers! Indeed, I meant $50!/45$ as the falling factorial. Also, the question doesn't specify whether it was meant to be ordered or unordered, but I think I understand my confusion now!


There are several possibilities to do an endless loop, here are a few I would choose:   for(;;) {} while(1) {} / while(true) {} do {} while(1) / do {} while(true)   Is there a certain form which one should choose? And do modern compilers make a difference between the middle and the last statement or does it realize that it is an endless loop and skips the checking part entirely?  Edit: as it has been mentioned I forgot goto, but this was done out of the reason that I don't like it as a command at all.  Edit2: I made some grep on the latest versions taken from kernel.org. I does seems as nothing much changed over time (within the Kernel at least)


If $A$ is a poset in which every chain has an upperbound in $A$ ($a$ be any element in $A$). There exists at least one maximal element $m$ in $A$ such that $m \geq a$.  Whats the difference between this and Zorn's Lemma?


Suppose elements $a$ and $b$ in a domain satisfy $a \mid b$ and $b \mid a$. How do I see that $a = bu$ for some unit $u$?


Find a certain group $G$ with $H,K\unlhd G$, $H\cong K$ and $(G/H)\ncong(G/K)$

I'm trying to solve a problem from my group theory text book. It says:  Find a certain group $G$ with $H,K\unlhd G$, that verifies $H\cong K$ but $(G/H)\ncong(G/K)$.  I don't know what group to consider. At first I thought about the quaternion $Q_8$, but I didn't find a solution (in my book, this kind of exercises use to use the $Q_8$). Then I considered the diedric groups $D_n$ and the symmetric $Sn$ but also got nothing. What is a possible solution to this problem? Any help will be appreciated, thanks in advance.


Question about fields extension and induction.

I know that this questions has asked before, but I didn't get the solution. I'm studying Field extensions, so I've found the question below. Denote $(p_n)_{n \in \mathbb{N}}$ the sequence of the first prime numbers. For instance $p_1=2, p_2=3,$etc. Now, denote $F_0 = \mathbb{Q}$ and $F_n = \mathbb{Q}(\sqrt{p_1}, \sqrt{p_2}, \dots, \sqrt{p_n})$. Show that $[F_n: F_{n-1}]=2, \forall n \in \mathbb{N}, n\geq 1$. $\textbf{My attempt:}$ I have proved that $[F_1: F_0]=2$, because $\sqrt{2}$ is root of $x^2-2$, which is irreducible of $\mathbb{Q}$. I have tried to prove by induction, that is, suppose that there is $k \in \mathbb{N}$ s.t $[F_k:F_{k-1}]=2$, but it doesn't help to prove that $[F_{k+1}:F_k]=2$. I know that $[F_{k+1}:F_k] \leq 2$, because $\sqrt{p_{k+1}}$ is root of $x^2 - p_{k+1}$, and it is a polynomial in $\mathbb{Q}[x]$ which is a subset of  $ F_k[x]$. Futhermore, $[F_{k+1}:F_k]=1 \iff \sqrt{p_{k+1}} \in F_k$, but it is hard to prove that its not happens (because it's base is very big). The last attempt was: Suppose that $\sqrt{p_{k+1}} \in F_k$ then the element $\sqrt{p_1} + \sqrt{p_2}+ \cdots + \sqrt{p_n}+ \sqrt{p_{n+1}}$ is in $F_k$, and I've tried to prove that it is root of a irreducible polynomial in $\mathbb{Q}[x]$, with degree $2^{n+1}$ then $[F_{k+1}:F_0]= 2^{2k+1}$, but it didn't work to. So, can you help me??


Why didn’t Dumbledore pretend to die at the end of Half Blood Prince?

It’s established that you need to mean the Unforgivable Curses in order to use them to full potential.  In the 4th book, FakeMoody tells the class that all the students there could point their wands at him and say “Avada Kedavra,” and he wouldn’t get so much as a nosebleed.  Similarly, Crucio doesn’t work on Bellatrix when Harry tries it. At the end of the 6th book, Snape kills Dumbledore with the Killing Curse.  Snape says “Avada Kedavra” and hits Dumbledore with the curse, causing him to fall backwards off the tower.  Afterwards, Snape and the other Death Eaters flee quickly as the Order is active and fighting their way up. It was probably difficult for Snape to compartmentalize his feelings enough to correctly use the Killing Curse on Dumbledore.  Why didn’t Snape mean it less so Dumbledore would be injured (à la nosebleed) but still alive? My proposal: Dumbledore could have still fallen off the tower (maybe with some magic like arresto momentum so he didn’t hit the ground*), as the Death Eaters don’t check if he died.  The Death Eaters (and Voldemort) would believe Dumbledore was dead.  Even if the Death Eaters wanted to take a peek at the corpse, Dumbledore could just act dead. Then, maybe Fawkes could have come and magicked his body away so no one would know.  Everyone would think he was dead, but he would still secretly be alive and fighting the good fight against old Voldy. I know his life was shortened because of the curse from the ring, but why shorten his life like that unnecessarily when he could have kept living at least a little longer? *I know Dumbledore didn’t have his wand on him then, as Malfoy disarmed him, but he was prepared to die when this went down.  If he had plans to only secretly die, he could have planned ahead of time, prepping for a fall from the tower.


Why has the role of Bruce Banner been played by different actors in the three films that Hulk has appeared in?

Hulk (2003) Eric Bana Bruce Banner  The Incredible Hulk (2008) Edward Norton Bruce Banner  The Avengers (2012) Mark Ruffalo Bruce Banner  Is there any reason why different actors are used in different versions of the same role?


What split-screen options are available in Battlefront?

How many players can play split-screen, and what game modes are (or aren't) available?   How many players can play local co-op? How many players can play local multiplayer? How many players can play online multiplayer from a single console?


Error: Not enough space to load specified image

I have a Lenovo Intel Atom n270 laptop. It ha Windows XP and I want to install Ubuntu on it without deleting or affecting the Windows system. For the installation I am following .  I have already defragmented my HDD (Although Windows still complains that some files need defragmentation) and even did a backup copy of everything.   I have identified that my processor is 32-bit so I downloaded the 32-bit version of Ubuntu 12.04 for this laptop. I then downloaded PendriveLinux and followed the steps provided by it to install the ISO image of Ubuntu into a 4GB pen drive. Rebooted the computer, changed the booting sequence and the boot menu for Ubuntu started from the pen drive. That is where the problem first appeared. Anytime I tried to either install or test Ubuntu from the menu I got the same error:  Not enough space to load specified image   After this and without knowing, I turned the computer off, took out the pen drive and tried to turn it on again. But now when Windows starts I get a blue screen that says that Windows has found an error and needs to shutdown to prevent damage.  What can I do to solve this problem?


Finding probability that an equation has real roots when two numbers are chosen from a uniform distribution

The Question reads as follows:  Choose independently two numbers B and C at random from the interval [-1,1] with uniform distribution and consider the quadratic equation:  $$x^2+Bx+C=0$$  find the probability that the roots of this equation  a) are both real b) are both positive  I know a) requires that $0\le B^2-4C$ and b) requires $0\le B^2-4C$ , $B \le 0$ , $0 \le C$.  I know what this looks like geometrically and I believe for part a I should be able to integrate something from -1 to 1 but I am not sure what.


If "Temperature" of a thing is literally it's average kinetic energy then why doesn't a blowing fan increase a gas's "Temperature"?

I have learnt that temperature is literally measure of KE. But I don't see a fan which increase gas's temperature. I was wondering, why?


I just installed 11.10 and found that once I minimize the terminal window, I can't bring it back. All other Windows are getting minimized to the Unity launcher and I can relaunch them from there. If I go to the launcher and click on terminal a new terminal session is created and the old one is lost completely. This is the first time I am facing such a problem and all my previous installations of 11. 10 didn't throw up any such behaviors. Any suggestions?


I want to the Ubuntu terminal to show art like this picture:    How to do that? I want put my own logo using the word character. I would like to arrange it and form a logo.  Please teach me the way..


Integral with a circle and an arrow indicating clockwise or counter clockwise

I am aware of \oint. I want the circle to have a counterclockwise arrow on it, as is sometimes seen in complex analysis.


Centering with \includegraphics not with \begin{figure}?

I mess up with things when I try to use the figure-thing: the picture is not appearing with the correct alignment (apparently because I forget the float package). Now I want to use only the graphicx package with \includegraphics. How can I center the \includegraphics without figure?  Not working or doing centering to the document afterwards.  \includegraphics[width=0.5 \textwidth]{./Pictures/r.png}{\centering} \includegraphics[width=0.5 \textwidth]{./Pictures/r.png}\centering


I can run octave in the terminal by typing octave and then pressing Enter,but I can't remove octave.  I type sudo apt-get purge octave,but it say      Package 'octave' is not installed, so not removed.   I don't know why,can you guys help?  there is a question about how to completely uninstall software installed from source code,and there existed good answers to that problem.  But i also want to know why i can't uninstall by the command  sudo apt-get purge octave.  I have read that question and i learned that i can do it by the command make uninstall,but i don't know where the octave uninstall makefile is.  I think the second answer here has solved my problem and can remove install software clean.  I installed octave from source code by typing ./configure && make && make install.