Word for a person with a negative attitude

What is the person called who always thinks negative? E.g.        Mr. X always thinks negative.   Mr. X has negative attitude.      What we can use either? Is there any particular word for this?


How can I save application settings in a Windows Forms application?

What I want to achieve is very simple: I have a Windows Forms (.NET 3.5) application that uses a path for reading information. This path can be modified by the user, by using the options form I provide.  Now, I want to save the path value to a file for later use. This would be one of the many settings saved to this file. This file would sit directly in the application folder.  I understand three options are available:   ConfigurationSettings file (appname.exe.config) Registry Custom XML file   I read that the .NET configuration file is not foreseen for saving values back to it. As for the registry, I would like to get as far away from it as possible.  Does this mean that I should use a custom XML file to save configuration settings?  If so, I would like to see code example of that (C#).  I have seen other discussions on this subject, but it is still not clear to me.


What is this “(arg: 1)” appearing in terminal/tty after I pressed a combination of keys?

In a virtual terminal I (accidentally) pressed Win+1 and got a new line consisting of  (arg: 1)   As long as I keep Win pressed, all numbers I press get appended to the number in the parentheses, e.g. Win and 1+4 yields (arg:14).  When I (after releasing Win) press any key, that character is printed as many times as the number reads and the (arg: ...) expression is replaced by the standard prompt.  Does anybody know what happens here?


How to turn off Quickboot/fastboot on HP Pavillion

I want to install Ubuntu on my HP Pavillion G6. It has a Windows 8 logo, but in the BIOS, I can't disable Quickboot or Fastboot, (I can't even find it in the BIOS.) How can I turn it off?


A closed form of $\int_0^1\frac{\ln\ln\left({1}/{x}\right)}{x^2-x+1}\mathrm dx$

This integral has been bugging me since yesterday:     $$\int_0^1\frac{\ln\ln\left({1}/{x}\right)}{x^2-x+1}\mathrm dx$$   I've tried substitution $y={1}/{x}$ and $e^y={1}/{x}$, but those didn't help much. Wolfram Alpha gives me result: $-0.67172$. Could anyone here please help me to obtain the closed form of the integral preferably (if possible) with elementary ways (high school methods)? Any help would be greatly appreciated. Thank you.


Is it a good investment strategy to go long on "boring" companies (AT&T for example) and keep them around just because of their dividends?

Is it a good investment strategy to go long on "boring" companies (AT&T for example) and keep them around just because of their dividends or would it be better to trade more frequently companies that don't necessarily offer dividends? Maybe a mix of the two?


I have been staring at a bayesian net for an hour and can't understand why this is correct to write:  $$P(A|B,E)\cdot P(W|A) = P(W,A|B,E)$$  Note that the joint probability of $P(A,B,E,W,R)$ can be decomposed as follows according to the bayesian net structure:  $$P(A,B,E,W,R) = P(B)\cdot P(E)\cdot P(A|B,E)\cdot P(R|E)\cdot P(A|B,E)\cdot P(W|A)$$


I'm trying to figure out how best to stop Windows 10 from helping itself to updates. Firstly, I have a metered connection to the internet, and one that is of inconsistent speed. Secondly, I have an ideological objection to Microsoft installing its software without my permission (I have been burned by this before).  I'm aware that there is a setting for metered connections that delays downloads of some updates, but that doesn't prevent the others from being downloaded.  I've also found , but it doesn't seem to block updates in general, rather just blacklists certain updates that have already come out, and that your computer may or may not have already automatically downloaded and installed already.  I understand that Microsoft has no intention of returning to the days when you could see a list of updates, screen them, then downloading them when you have data to spare. But, is there any way that I can stop Windows from updating at all, for extended periods of time, then re-enable updating once I have the data?  Is there, maybe, a nice lightweight firewall that could block Windows Update?  EDIT: I have enabled the "defer upgrades" option, as suggested by the first answerer of the question I'm supposedly duplicating, but as Windows informs me, it will still help itself to security updates. I'm looking for a way to perform a blanket block on all updates until I want to install them, even if it means whitelisting every program that I want to use the internet. Does anyone here know how I could go about this?


Why was this item left relatively unguarded on a barren planet?

In Guardians of the Galaxy, I couldn't help but notice that      the Infinity Stone   was inside a force field, inside some kind of containment unit.  Star-Lord easily extracts the containment orb using some high powered magnet and, later on in the movie, the Collector effortlessly opens the containment unit, revealing the gem within. Why then was this      gem of infinite power   left unguarded on a deserted planet?    There seemed to have been life on the planet at one point (as revealed by Star-Lord's projection equipment), but by the time Star-Lord arrives all signs of life are largely gone, except for the few rats that he kicks.  Moreover, the only environmental dangers shown in the movie were huge geysers.  Therefore it's safe to say the stone was guarded neither by the environment nor by a society or anything remotely sentient.  Since the gem was a source of infinite power, surely someone would've taken it in the time since the prior civilization was destroyed.    The time span was definitely large because the level of destruction on the planet could be caused either by time and natural entropy, or by      another infinity stone...   but not the one already stored in the force field.  But even if a separate stone did destroy the planet, there was still enough time between destruction and Star-Lord's arrival for the evolution of primitive rats to occur from a planet that was wiped of all life.  Why was the stone even there when Star-Lord arrived?  It was obviously sought after by the Kree/Nova antique dealer so its whereabouts were known.  Why did no one else take the stone?


He shall die. He will die. (Will is stressed.) He will die. (Will is not stressed.)   What is the difference among them?  Number 1 means that I will kill him.  Number 2 means that he intends to die.  Number 3 is a simple future. He will die as time passes.  Is my explanation plausible?


Possible to create new Application Handler?

Blender's application handlers are listed , but is it possible to create a new one?  For example, I'd like an application handler which is a callback for every time I add a strip to the Video Sequence Editor.


I have a Lenovo e330 notebook with broadcom bcm4313 802.11 bgn wireless adapter.  I have configured it for dual boot Windows 8/Ubuntu 14.04.  It has problem connecting to wireless, and this problem is the same in Windows or Ubuntu.  The wireless will not connect after many tries. Then after a restart (or two or more) the wireless will then connect.  I keep restarting the PC until it connects.   I found that if it connects in Windows, and I change to Ubuntu, it will connect in Ubuntu. If it won't connect in Windows, it won't connect in Ubuntu either.   I have already turned power management off.   Tried many things in Windows 8 such as disabling Lenovo software, n channel and ipv6. But same problem in Ubuntu I can't see how it can be a Lenovo problem.   dmesg output when not working:


I lost my dog on Minecraft, How can I get him back?

As I mentioned above my wolf Buddy Jr Jr (yes I know his name should be Buddy the third) is lost and I really want him back, if anybody knows what to do please let me know it would be very appreciated!


Is It Possible to Express all fundamental forces in the form of generalized potentials?

I have Started reading Hamilton's Principle or Principle of Least Action In first course of Undergraduate classical mechanics. So, I think it becomes easier to apply the Variational principles if forces can be expressed as generalized potentials. So my first question was, $ Is\ it\ possible\ to\ express\ all\ Fundamental\ Forces\ in\ nature\ in\ the\ form\ of\ \\ generalized\ potentials\ ?                   $ The Question seems very objective with YES/NO Answer. But this is not my intention. I am hoping for some detailed answer. If you can't then why? and what are further insightful consequences.


Prove that $n! \geq n^3$, for all $n \geq 6$

I want to prove that $n! \geq n^3$, for all $n \geq 6$. I tried with induction, but it doesn't seem to help as it gets even more complicated.


Sudo, Virtualbox, and Permission issues. (The Good, The Bad, The Ugly)

I'm testing a development image of Linux Mint built by myself and a friend. I'm testing it out by trying to do all the normal things that you would do in a web development workflow (Install an editor, bring up vagrant boxes, etc). While doing this I ran into an interesting permissions issue. When I tried to sudo anything in my $HOME directory I was met with a permission denied. for example   sudo vim ~/bad.txt   was met with:  ~/bad.txt" [Permission Denied]    So as a test I created a folder in my ~/ directory and chmod 777 it and everything worked in there. So I proceeded to install Vagrant and VirtualBox and noting seemed to go wrong until I ran vagrant up for a plain scotchbox. Where I received the following error  There was an error while executing `VBoxManage`, a CLI used by Vagrant for controlling VirtualBox. The command and stderr is shown below.  Command: ["import", "/public/home/username/.vagrant.d/boxes/scotch-VAGRANTSLASH-box/2.5/virtualbox/box.ovf", "--vsys", "0", "--vmname", "scotch-box_default_1446564755217_55786_1449843924304_26032", "--vsys", "0", "--unit", "7", "--disk", "/username/VirtualBox/Machines/scotch-box_default_1446564755217_55786_1449843924304_26032/box-disk1.vmdk"]  Stderr: 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% Interpreting /public/home/username/.vagrant.d/boxes/scotch-VAGRANTSLASH-box/2.5/virtualbox/box.ovf... OK. 0%... Progress state: VBOX_E_IPRT_ERROR VBoxManage: error: Appliance import failed VBoxManage: error: Could not create the directory '/username/VirtualBox/Machines/scotch-box_default_1446564755217_55786_1449843924304_26032' (VERR_ACCESS_DENIED) VBoxManage: error: Details: code VBOX_E_IPRT_ERROR (0x80bb0005), component Appliance, interface IAppliance VBoxManage: error: Context: "int handleImportAppliance(HandlerArg*)" at line 779 of file VBoxManageAppliance.cpp   As you can see it's trying to read a folder named my username in the / directory. So it seems that not only permissions are messed up but something with the path to home is also messed up. So what we would like a little help with is understanding where we screwed up and how we can go about fixing it.  I've looked for similar issues so I've checked   sudo su -  id   and the UID is indeed 0. I really want to understand where we screwed up here so we can avoid the same mix ups in the future. Thanks.


How to control 4 relays with a not chip (7404)

I have a atmega8 that is working with 3.6V dc, I need to control some 12V relays with a not chip (7404), what is the simplest way to do this? I have connected a 12V dc to the relays, so when I connect the relays to the chip and then the atmega8, the current returns to the atmega through the not chip. Is this solution correct? There a better way to do this?


Let $f:[0,\infty)\rightarrow \mathbb{R}$ be a continuous and strictly decreasing function. If $\displaystyle\lim_{x\rightarrow\infty}f(x)=0$, prove that the following integral is divergent :   $$\int_0^\infty \frac{f(x)-f(x+1)}{f(x)}dx$$   First, it's not hard to see that $f(0)>0$ and also $f(x)>0$ for each $x$.  I think we have to show that behavior of $\frac{f(x)-f(x+1)}{f(x)}$ is "similar" to $\frac1{x+1}$  or $\frac{f(x+1)}{f(x)}$ is "similar" to $\frac{x}{x+1}$ for big values of $x$.  But meaning of "similar" is not clear yet !  The most naive and rough approach is to show $\frac{f(x+1)}{f(x)}<1-k$ for some $0<k<1$ and therefore $f(x)-f(x+1)>kf(x)$.  One step forward, it's good to compare $\frac{f(x+1)}{f(x)}$ and a multiple of $\frac{x}{x+1}$ or equivalently to compare $C (x+1)f(x+1)$ and $xf(x)$. But still I can't extend this idea .  I tried more ways but I couldn't find a proper way to solve the problem.  Any hint is appreciated !


Check to see if div is present with jquery

if(.is-open close-now){ jQuery(".extra_div").click(function($){             alert('"Sorry, this takeaway only accepts orders during its opening hours"');         }); }   I think something like the above is what I need but I don't know how the if statement part should work out.  I'm looking to check if a certain div is present and then if it is, run the following jQuery on click code.  Update 1  if ($(.is-open close-now).length){ jQuery(".extra_div").click(function($){             alert('"Sorry, this takeaway only accepts orders during its opening hours"');         }); }   The two divs are   is-open open-now - open .is-open close-now - closed


Discovering mistakes in thesis after submission and printing

So here is my issue - I submitted my thesis 2 years ago and it was accepted and i was granted the M.S. degree (I am in the US, BTW). Now, when I opened it to read some portions, I found some missing references to data tables, and otherwise some typos. I am starting to freak out about this, because of the consequences. My question is this - can the university somehow "re-evaluate" my thesis and find it unacceptable? I am not sure about how it works in academia, any help would be appreciated. Edit: My question is bit different than the others, as it is asking whether the university has the power to "re-evaluate" my thesis based on typos and omissions.


Count the ways to select 12 coins from 5 identical bins

There are five identical bins contains 4, 9, 7, 10, and 3 coins. How many ways to select 12 coins, such that at least a coin selected from each bins?  I don't have an idea. But, i thinks it is related to integer partition of 12 (with 5 parts).  At a glance, this question looks similar to other question asked by another user. But if you look at it carefully, you will notice that there is a big difference. It is the bins, here, it is identical.


How can I prove that the following Lagrangian is Lorentz-invariant iff the axionic field is a pseudoscalar?

My professor has given me the following action stating that $a(x)$ is an axionic field and told us in class that for this action to be Lorentz invariant the field must be a pseudoscalar.  $$ S = -\int d^4x  \frac{1}{2} \partial^\mu a \partial_\mu a - \frac{1}{4} F_{\mu \nu} F^{\mu \nu} - \frac{1}{f}[aF_{\mu \nu} \left.^* F^{\mu \nu} - 2 \partial_\mu (a A_\nu \left.^*F^{\mu \nu}) \right. \right.]$$  This is the first time that I encounter such fields in my life. I tried googling around to find some information but I didn't even understand what such a field is.  I tried proving that $S$ is Lorentz invariant iff $a$ is a pseudoscalar using the definition of a Lorentz transformation  $$\delta x^b = \delta \omega^b_a x^a$$  But the computations seem to be too difficult to me. Is there any shortcut or alternative way to prove this?


When the sliders left the Earth in ‘Post Traumatic Slide Syndrome’, which Professor Arturo went with them – the original or the local double?

At the end of ‘Post Traumatic Slide Syndrome’, there’s a tussle between the two Professor Arturos – the original one from Earth Prime and the local double. One of them slides and the other doesn’t. However, it’s never made clear which one slid. Which one was it? Was it the original or the local double?


Let $y:\mathbb{R}\to \mathbb{R}$ be differentiable and satisfy the ODE $${dy\over dx}=f(y),\; x\in \mathbb{R},\; y(0)=y(1)=0$$      Where $f: \mathbb{R}\to \mathbb{R} $ is a Lipschitz continuous function. Then          $(a)$ $y(x)=0$ if and only if $x\in \{0,1\}$   $(b)$ $y$ is bounded   $(c)$ $y$ is strictly increasing    $(d)$ ${dy\over dx}$ is unbounded       Efforts:  If I take $y=0$ then option $2$ is correct and rest are discarded.   But I don't like solving questions by constructing examples and couterexamples. How can I prove option $b$ directly.   Thanks.


bacteria forming in reheating of baked potatoes

I understand that if you do not correctly reheat a baked potato bacteria can set in botulism. what is the correct temperature you need to avoid temperature abuse.  Also can you use the baked potato for other uses ie hash brown that need to be reheated


Why can't I compare text from a TextArea to a String?

So I am obviously missing something completely obvious here. I have a button and an actionlistener hooked up to it. When I click the button, I want run an if statement that takes the contents of a TextArea and compares it to a String. Like So:  String a = "hello"; JTextArea area = new JTextArea("type something"); JButton button = new JButton("Go");  button. [insert actionlistener crap]      //here's the important part:     if (area.getText() == "hello"){         //this will not be executed     }   It's really weird. I even went through the debugger and at that if statement, both of those items are "hello". But it skips over it! What am I doing wrong?  EDIT: a lot of you are saying "use .equals". Can anyone tell me why?


Notepad++ does not automatically make end tags

I am new to HTML When I type  in notepad++ it does not automatically make the end tags as it should,  How do I activate this feature.


Any good electricity and magnetism books for highschool students?

I really want to learn about electricity and magnetism for a long time but never have gotten to it, are there are good books that are conceptual on the topic of electromagnetism? I do not know calculus btw.


Start executing jQuery function when I scroll to a specific

I have a jQuery script that shows an animated counter on page, but the script starts on page load, and I need it to be loaded when the user scrolls down to a specific
.     This script need to be executed when I scroll to this specific
 on a page.


Responsive Theme Design: how have slideshow on desktops/tablets and static photo on mobile using same template?

I am building my first responsive WP site with my own custom WP Theme. The primary templates are part fluid, part fixed. This enabled me to create only 3 "versions", a desktop, tablet and mobile version. All changes happen due to media queries. (Sizes are 768 to 1200 px for desktop, 530 to 767 for tablet, 300 to 529 for mobile.)  The homepage (which has it's own template) will show a slideshow. The slideshow claims to be responsive (I haven't set it up yet) and I am anticipating it working through the tablet sizes. But when I get to the mobile size I just want to have a static photo.  I don't want to just use "display:none" for the slideshow as it will still eat up space/power for the mobiles. I DO want to keep all the versions on the same templates, so I'm thinking I'm going to need some php or javascript to make this happen. (Unless there's some other way, which I'd be thrilled to hear about!)  Can anyone help with the code? I have a slideshow div in the CSS:  #slideshow {  height: 296px;  margin: 20px 20px 10px 20px;  padding: 0; background-color: #f00; }/*by not setting a width the sshow box fills the space minus the margins*/   and in the template the slideshow shortcode or template code will go between the open and close slideshow div tags. But I would also want to place a photo there for the mobile version. So I think I would need some kind of "if 529px or more, get slideshow; if less, get photo" right? I'm not a php or javascript programmer, tho I'm great at cutting and pasting!  The site is viewable at   -- we are now at the stage of adding page content and the blog needs attention and the sidebars need work, etc. But shell pages are up and content is getting loaded as I write.  Help greatly appreciated!


Baffling Elevation Profile out of Profile Tool Plugin

When using the Profile Tool plugin I get a graph that looks like the 2nd derivative of what I want. That is, it looks like the rate of change of the slope of the elevation profile. I just want the elevation profile! The data is present for good 1' contour lines. Why is the Profile Tool interpreting the data in such a bizarre way? What am I missing? And what are the Min and Max units?


What is the best way to concatenate 2 lists into a new list in Java?

into a Java application I have the following situation:  I have these 2 lists:  List<Twp1007Progetto> progettiDaValidare = progettoService.getListaProgettiConsultazione(consultazioneFilter);  List<Twp1007Progetto> progettiInValidazione = progettoService.getListaProgettiConsultazione(consultazioneFilter);   and I have to concatenate these 2 lists (respetivelly named progettiDaValidare and progettiInValidazione and put the result into a new list named listaProgetti.  What is the best way to do it in Java?


W: GPG error: http://download.opensuse.org/repositories/home:/strycore/xUbuntu_16.04 ./ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 2F7F0DA5FD5B64B9 W: The repository 'http://download.opensuse.org/repositories/home:/strycore/xUbuntu_16.04 ./ Release' is not signed. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details.   I am trying to get rid of the above error message seemingly related to release key and opensuse url.  What would be the proper solution?


Non-offensive substitute for a swear word

What term describes a non-offensive substitute for a swear word?   For example, Battlestar Galactica used frack instead of fuck. Another example is the use of snap instead of shit.  I think I may have heard a single-word term used to describe such alternate non-offensive words before, but I don’t know what it is.


I want to know what's the Windows default font name used in bars. I can't find the window to change window color and appearance in the Windows 8, and it'd show the current font name in the bar (I believe).  The font is used in this bar:


Lightning, Error ID: 1959731306-16624 (-227057212). How to get more data?

Totally confused. In an apex controller, adding a new parameter to the constructor for a class somehow causes this error. How can I get more information?  It doesn't appear to be the same issue as linked to, even though the gack ID is the same.  I have an apex controller being called from a lightning component. This controller has a inner class ProjectData, and a list of these are returned. This works fine.  The error occurs upon changing 2 lines of code. All it takes is adding a single parameter to the constructor, i.e. changing  public ProjectData(Project__c proj, String client, Boolean favourite)   to  public ProjectData(Project__c proj, String client, Boolean role, Boolean favourite)   I then added a True value to the only place this constructor is called. Upon refresh, I get the error. There is no difference to any objects other than this one change, so it can't be a permissions error.


2d particle collision, Time for one particle to catch another one

Say we have 2 particles where 1 moves with constant velocity $u$ and the other moves with speed $v$ towards the first particle. After what time does the 2nd particle catches up with the 1st one?


Position submit button of the lightning:recordEditForm in the footer part of the modal window in slds

Is it possible to position submit button of the lightning:recordEditForm in the footer part of the modal window in slds?  The problem is that the button should be between the lightning:recordEditForm tags, while position it in footer moves it out of the lightning:recordEditForm.  Button inside lightning:recordEditForm:

                     {!v.headerText}

                  <lightning:recordEditForm aura:id="recordEditForm"                                           objectApiName="{!v.objectApiName}">                     <lightning:messages />                      <aura:iteration items="{!v.fields}" var="field">                         <lightning:inputField fieldName="{!field}" />                     </aura:iteration>                      <lightning:button class="slds-m-top_small" type="submit" label="Create new" />                 </lightning:recordEditForm>

   Button in footer attempt:

                     {!v.headerText}
                          <lightning:recordEditForm aura:id="recordEditForm"                                       objectApiName="{!v.objectApiName}">
                       <lightning:messages />                      <aura:iteration items="{!v.fields}" var="field">                         <lightning:inputField fieldName="{!field}" />                     </aura:iteration>                      <lightning:button class="slds-m-top_small" type="submit" label="Create new" />
                                      <lightning:button class="slds-m-top_small" type="submit" label="Create new" />                               </lightning:recordEditForm>

   Here is how I see it then:


2D Arrays in If Loop will not Return Specified Boolean Value

I have a multi class program in which I'm trying to make winning conditions for. However when I attempt to compare the 2D array that contains an object, with another object of the same kind.  Here is a sample, I've tested the bare bones and the method does work, it's the if statements that do not, any help is very much appreciated.  (Yes I converted them to strings with the quotations, however the statement doesn't work either way)  public boolean winner()//Checks to see if someone has won. {     XO x = new XO("X");//creates the objects to mimic the players     XO o = new XO("O");     if((board [0][0]+"").equals(o+"") && (board [0][1]+"").equals(o+"") && (board [0][2]+"").equals(o+""))//top horizontal row     {         return true;     }     else if((board [0][1]+"").equals(o+"") && (board [1][1]+"").equals(o+"") && (board [2][1]+"").equals(o+""))//mid horizontal row     {         return true;     }     else if((board [0][2]+"").equals(o+"") && (board [1][2]+"").equals(o+"") && (board [2][2]+"").equals(o+""))//bottom horizontal row     {         return true;     }     else if((board [0][0]+"").equals(o+"") && (board [0][1]+"").equals(o+"") && (board [0][2]+"").equals(o+""))//left vertical row     {         return true;     }     else if((board [1][0]+"").equals(o+"") && (board [1][1]+"").equals(o+"") && (board [1][2]+"").equals(o+""))//mid vertical row     {         return true;     }     else if((board [2][0]+"").equals(o+"") && (board [2][1]+"").equals(o+"") && (board [2][2]+"").equals(o+""))//right vertical row     {         return true;     }     else if((board [0][0]+"").equals(o+"") && (board [1][1]+"").equals(o+"") && (board [2][2]+"").equals(o+""))//declining diagonal row     {         return true;     }     else if((board [2][0]+"").equals(o+"") && (board [1][1]+"").equals(o+"") && (board [0][2]+"").equals(o+""))//rising diagonal row     {         return true;//                                                                    respectively the same for the lines below     }     //Above O wins, Below X wins     else if((board [0][0]+"").equals(x+"") && (board [0][1]+"").equals(x+"") && (board [0][2]+"").equals(x+""))//top horizontal row     {         return true;     }     else if((board [0][1]+"").equals(x+"") && (board [1][1]+"").equals(x+"") && (board [2][1]+"").equals(x+""))//mid horizontal row     {         return true;     }     else if((board [0][2]+"").equals(x+"") && (board [1][2]+"").equals(x+"") && (board [2][2]+"").equals(x+""))//bottom horizontal row     {         return true;     }     else if((board [0][0]+"").equals(x+"") && (board [0][1]+"").equals(x+"") && (board [0][2]+"").equals(x+""))//left vertical row     {         return true;     }     else if((board [1][0]+"").equals(x+"") && (board [1][1]+"").equals(x+"") && (board [1][2]+"").equals(x+""))//mid vertical row     {         return true;     }     else if((board [2][0]+"").equals(x+"") && (board [2][1]+"").equals(x+"") && (board [2][2]+"").equals(x+""))//right vertical row     {         return true;     }     else if((board [0][0]+"").equals(x+"") && (board [1][1]+"").equals(x+"") && (board [2][2]+"").equals(x+""))//declining diagonal row     {         return true;     }     else if((board [2][0]+"").equals(x+"") && (board [1][1]+"").equals(x+"") && (board [0][2]+"").equals(x+""))//rising diagonal row     {         return true;//                                                                    respectively the same for the lines below     }     else//if none of these are fulfilled         return false;}


windows cannot be installed on this disk. The selected disk is of the GPT partition style. Windows 8.1

I have a ASUS R500A notebook.Original OS is Windows 7 64bit.Few days ago I tried to Install Windows 8.1 64 bit version.But it failed & error message is,     windows cannot be installed on this disk. The selected disk is of the GPT partition style.   My Steps: First i Deleted C: Partition ( Already installed windows 7 ). Then i Formatted that partition. Tried to install Windows 8.1 64bit.  In this hard disk i have another several partitions with Important data.  How do i Install Windows 8.1 without loosing Data from the Other partitions ?


How do i make the time show only hours and minutes with a batch file?

I have a batch script that backs up a folder to another folder etc and names the backed up folder to %date% %time% etc(only shows date currently) and I want it to show only hours and minutes. if I use %time::=.% i get 21.46.56.26 etc but I want only the 21.46 and nothing else. Script: title Backing up the universe.. echo Backing up the universe..  set savedate=%date:/=.% set savetime=%time::=.% echo Set Variable 'savedate' to %savedate% echo Set Variable 'savetime' to %savetime%  pause  md Universe-Backup\"%savedate%" echo Created backup folder. pause echo %savedate%  robocopy %CD%\Universe\ %CD%\Universe-Backup\\"%savedate%" /e  title The universe has been backedup! echo The universe has been backedup! title Starting server.. echo Starting server.. START %CD%\Server.exe


Why did Harry's father emerge before his mother in HP and the Goblet of Fire?

In Harry Potter book 4 (Goblet of Fire) Harry's wand 'links' with Voldemort's during their duel, and Voldemort's wand begins 'spitting out' each spell it had cast, in reverse order.  This produces false 'ghosts' of people he had killed with .  In the US printing, James Potter appears, followed by Lily.  If the spell order was supposed to be reversed, why did Harry's father's "ghost" emerge before his mother's, since it's repeatedly stated (before and after) that he died first?


Failed in PhD candidacy and applying to a new graduate school

I failed in PhD candidacy and planning to apply in a new graduate school. Should I mention or hide the failure in my SOP as it is a negative in my profile. Please help


has anybody re-entered the USA on the VWP, and how long was the time in between entries?

I know to re-enter the USA you are required to leave the continent and neighbouring islands. I plan to go to the USA at the end of May, stay for up to 90 days, but I would like to visit again and want to know how much time anybody has spent between visits.   Is one month enough? I will enter first with my girlfriend who is from the US, I am a British citizen, then we will leave to somewhere outside the continent, then we would like to go again for another period of time before finally leaving again to go elsewhere.  From what I can find out it appears it's totally up to the border official. I have funds to support myself for the entire duration of both stays, I will not be working, I will have onward travel plans each time, i.e. a flight out after the first visit and after the second.  Unfortunately I'm not in the UK now and won't be before I go to the US otherwise I would apply for a 6 month visa, and from what I understand, applying for a 6 month visa outside your home country reduces the chances of it being granted anyway. So basically what are the chances of me being allowed to enter again after just 3 or 4 weeks outside the US? Or is it just a chance I'll have to take? And anyway who would be responsible for me leaving the states if I was refused entry? I'd have to get a flight myself or the US immigration would put me on a plane somewhere? Ha, I know it's a lot but any help, or if anybody has experience of multiple entries, any advice would be greatly appreciated!! Thanks!  Ok, clearly similar questions have been asked before, I explained the information I have already gathered from such questions and posts. It is all theoretical. What I want to known is people's actual experiences. How long HAVE people actually left for, WHERE did they go, and how were the border officials attitudes and questions asked upon re-entering?  I explained what I have already found out which you kindly marked my question as a duplicate and linked a similar question to it. But what I am after is people's personal accounts of doing this, not just how it works in theory, it is not difficult to find this information, it is however difficult out to find personal accounts!  Thanks again!


Can't control monitor volume with keyboard on 2018 Mac mini

I just decommissioned my 2011 iMac and replaced it with a 2018 Mac mini and a new 27" monitor. The iMac is where I used to play audio and controlling from the keyboard (F10 - F12) was never a problem. I am now connecting to the new monitor via HDMI (v1.4). It will play audio, but I can't control it from the keyboard - I get this instead:   When I go to the Sound in System Preferences, this is what I see for output:  This leads me to believe that connecting via display port might possibly give me the ability to control via keyboard? I can't seem to get a USB-C to mDP cable to send a signal, so I'm guessing I need Thunderbolt 3 to mDP. Does anyone know if that will work before go and buy the cable? Any other tips that may work for getting control of the audio on the keyboard when connected via HDMI v1.4?


Segmentation fault (core dumped) in the following code. What's wrong?

I am relatively new to C. I have encountered quite a few segmentation faults but I was able to find the error within a few minutes. However this one's got me confused. Here's a new function I was trying to write. This basically is the C equivalent of the python code       r=t[M:N]   Here's my C code with a test case      #include <stdio.h>      char* subarraym(char* a, int M, int N)     {     char* s;     int i;     for (i=M; i<N; i++){ s[i-M]=a[i]; }     return s;     }     main()    {    char* t="Aldehydes and Ketones";    char* r=subarraym(t,2,10);    printf("%c\n",r[4]);    return 0;    }   The expected answer was 'd'. However I got a segmentation fault. Extra Info: I was using GCC


How do I log file system read/writes by filename in Linux?

I'm looking for a simple method that will log file system operations. It should display the name of the file being accessed or modified.  I'm familiar with powertop, and it appears this works to an extent, in so much that it show the user files that were written to. Is there any other utilities that support this feature.  Some of my findings:  powertop: best for write access logging, but more focused on CPU activity iotop: shows real time disk access by process, but not file name lsof: shows the open files per process, but not real time file access iostat: shows the real time I/O performance of disk/arrays but does not indicate file or process


Does 'counter a spell' mean 'put a creature into its owner's graveyard'?

For example, when I use the card , I counter two spells. Does it mean I can put two of my opponents spells (which may be enchantments or creatures) into its owner's graveyard?  I am new to MtG so I might ask stupid questions.


How to insert an item into an array at a specific index (JavaScript)?

I am looking for a JavaScript array insert method, in the style of:  arr.insert(index, item)   Preferably in jQuery, but any JavaScript implementation will do at this point.


Why is this SPF record being reported as invalid?

I've set up my SPF record at improvedemployees.com as follows:  v=spf1 a mx ptr ip4:84.40.9.177 mx ip4:84.40.9.11 ~all   I've set up my SPF record at affiliatewebdesigners.com to point to using improvedemployees.com as this is the reverse lookup name of the server. The SPF for affiliatewebdesigners.com is as follows:  v=spf1 a mx ptr ip4:84.40.9.177 mx ip4:84.40.9.11 include:improvedemployees.com ~all   I'm still getting bounced emails unless I'm on a whitelist and I can't figure out why. I've tried to analyse my SPF record using mxtoolbox:      This error seems pretty useless. Can anyone help me figure out where I'm going wrong?


I'm relatively new to python and don't quite understand what's going on here. I have the following code:   if cell.location != (always_empty_location                      and random.random() < self.settings['OBSTACLE_RATIO']):   And it's broken, but if I remove the parenthesis and do a simple  and \   on the first line, it works. I can't seem to find a solid explanation of how python treats scenario's like this. Everything online suggests this should work.


Browsing the web from the Ubuntu command prompt

I am curious to know whether there is any way to list out a webpage and click links on it from the Ubuntu command line. I have tried various things including curl http://example.com and stuff like that but it always says 301 error whatever web address I try. I guess there is no way to do this but I am just checking whether you have any ideas.


Same question listed twice in reputation list

This might not be a bug but I see the same question list twice in my reputation display, I know it is grouping things by a six hour difference, but is this really expected?    The first list says 2 events but shows all 5, similarly the second list says 3 events and shows all five.


How to avoid duplicate labels on each tile?

When I display my map using tiles a label gets drawn on each tile - is there any way to avoid this?  I have attached an example image to show the problem:


I started of doing this  $a|c$ implies $c=am$ where $m$ is some integer  But then I don’t know what to do after I know that it is true but I can’t prove it can someone please help me


I am trying to search the posts whose titles contains some keywords, e.g. "all types of".  So, I used this tag and a pair of quotation mark ""     title: "all types of"     the results shown above are what I want, though, below are not    Is it possible to search some keywords in title only?


Indepedent pairs of RAID 1 is superior to RAID 10

I am rather new to databases. I was reading up on  and it seems that the consensus is that RAID 10 is      RAID 10 is best is terms of performance and redundancy   However at the end article , the author went on to state      Independent pairs of RAID 1 is superior to RAID 10 provided application knows how to evenly distribute data across multiple volumes   The author:George Ou did an   to proof why independent pairs of RAID 1 is superior to RAID 10 though i cant really understand as i am quite new to databases  However another author : Robin  did his own  and rebuts George Ou analysis.  I am confused over all these analysis which is totally out of my depth.  These are my questions   Is it really true that Independent pairs of RAID 1 is superior to RAID 10 provided application knows how to evenly distribute data across multiple volumes In practice, it is easy to create an application that is able to even distribute data across multiple volumes and how is it done ?? Can someone provide a simplified explanation regarding the above 2 points??


how to recover all erased data from my Hard disk

i was using Windows 10. I had 3 partitions before.Then one of my friend tried to do dual boot in my system with ubuntu14.During this process instead of dual booting he Accidentally deleted my windows 10 and all my data from my Hard Disk.(It was so important and sentimental data that was deleted)Now the machine is running with Ubuntu OS.i have tried recovering with terminal with this command.   sudo apt-get install testdisk(installed testdisk) sudo photorec(run photorec)   Then asked for select partition   Disk/dev/sda-500GB/465 GiB(RO)-THOSHIBA MQ01ABF050               Start   End          size in sector                 0     976773167     97673168(whole disk)   And start The recovery But the recovering files look like this  f000920.dll,f000120.txt,f000511.exe,f000024.java etc(more than around 500 of them in a folder) In folder named Recup_dir.1,Recup_dir.2,Recup_dir.3 etc(not completed yet still running) so its impossible to organize like it were before (and my Java projects and some of my own Java codes are arranged in a folder before Now it is shattered across the folders with unrecognizable names.So there is no way i can read all the files(From 970,000000) and find which is which in this lifetime. So is there any other way i can use to get all my data by folder by folder or at least with same file name.I'm ready for any other alternatives please help Thanks in advance.


Exit scripts for a VirtualBox X-session with Windows 8 guest OS

I'm running Ubuntu 16.04 Xenial.  The thing is, I've been trying to create an X-session which directly boots into Windows 8 of VirtualBox which I achieved by following the instructions .  But the problem is, when I shutdown from guest OS it returns back to login screen. Instead I want to shutdown my PC. So, is there a way to create a script that runs automatically when closing VirtualBox session?  Edit: One more thing.. There should be an action (a shortcut) that brings back the login manager, so that I can switch back to Ubuntu session. Otherwise I can't exit VirtualBox session, since I have enabled automatic login.


Redirecting my WordPress site from wordpress.com

I need to redirect my WordPress site hosted on wordpress.com to my new domain hosted on another provider. How does that redirection function on this type of site and hosting?  I know how to do that via cPanel (301 redirect) on other hosting companies, but I am not quite clear if wordpress.com functions like other commercial hosting companies.


I am learning PHP Pdo and I got a question and answer.   Assuming that the PDO connection is valid. the following code returns none because the prepared statement is invalid.   I want to know why/how the prepared statement is invalid.   $pdo = new PDO(...); $sql = "SELECT :cols FROM names WHERE name = :name"; $stmt = $pdo->prepare($sql); $stmt->bindValue(':cols', 'COUNT(id)'); $stmt->bindValue(':name', 'anna'); $stmt->execute();


Say that a net $a_i$ in a metric space is cauchy if for every $\epsilon > 0$ there exists $I$ such that for all $i, j \geq I$ one has $d(a_i,a_j) \leq \epsilon$.  If the metric space is complete, does it hold (and in either case why) that every cauchy net converges?


How could we describe the electric bound state like hydrogen by QED?

We can solve the Schrodinger equation for the Hamiltonian operator from the classical Hamiltonian of hydrogen bound state, consisting of proton and electron attracting each other electrodynamically, to get the eigenfunction, which is corresponding to stationary bound state we wanted to find.  But It must also be possibly explained through QED, but maybe rather complicated way. I can't even imagine the way it does. Could anyone explain it for me possibly qualitatively?


The stalk $O_{X,x}$ is an integral domain implies $x$ is in the closure of only one associated point

Let $X$ be a scheme of finite type over an algebraically closed field $k$. Suppose stalk $O_{X,x}$ is an integral domain.  Then it implies that $x$ is in the closure of only one associated point of $O_X$, which I am not sure how to deduce. How can I prove this? Thank you. The definition of associated point I have is: $z \in X$ is an associated point of $O_X$ if there exists an open neighbourhood $U$ of $z$ and $s \in \Gamma(U, O_X)$ such that $s_y \neq 0$ if and only if $y \in \overline{  \{ z \}  }$ for all $y \in U$.


Show that if $A ⊆ C$ and $B ⊆ D$, then $A × B ⊆ C × D$   Can anyone help me with this ?


What is the meaning of the semicolon in $f(x;\Theta)$?

In section 6.2, in the second paragraph of p. 335 (image below) of  states:      perhaps it is known that $f(x;\Theta)=(1/\Theta)e^{x/\Theta}$   where $x$ is data and $\Theta$ is a parameter.  What does "$;$" mean in this context, as opposed to "$,$" or "$|$", all three are used in different ways in the same textbook ("," and ";" are used on the same page, $|$ in the standard statement of Bayes' Theorem)?  I think I understand "$,$" and "$|$" and I read $f(x,\Theta)$ as "function of data and parameters" and $f(x|\Theta)$ as "function of the data given parameters".   Here is a scan of the page for more context:


I have an issue with the do-while code that I tried to run. I want it to repeat the process of adding the sum of two numbers together produced by the user, but the code will not run for some reason. I am new to java programming and loops. I just want to figure out why the code will not run and repeat the process of entering the numbers and adding the sum. I am not looking to compare the strings, my main goal is to make the while loop repeat the process of adding the two numbers produced by the user if they respond with Y. Thank you!     import java.util.Scanner;  public class Try {  public static void main(String[] args) {     int first;     int second;     int sum;      String repeat;     Scanner kbd= new Scanner(System.in);     do {      System.out.print("Enter the first number: ");      first = kbd.nextInt();       System.out.print("Enter the second number: ");      second = kbd.nextInt();       sum = first + second;      System.out.println("The sum is:" +sum );      System.out.print("Do you want to do this again? Y or N? ");      repeat= kbd.nextLine();     } while (repeat=="y" || repeat=="Y");       }   }


Though I read a lot about vegan substitute of cheese but I have not come across one that can be described as its perfect replacement especially in places where cheese is supposed to melt, like in Pizza. Does anyone has any experience with it ? Is it possible to make such vegan cheese at home ?


How to install Nemo Image Tools extension?

I've been trying to install the extension from  guide, but when I get to to the line to install:  sudo apt-get install nautilus-image-tools   I get:     Unable to locate package nautilus-image-tools   Then I go to the official PPA , but I am not sure how to install a .xz or .gz file!


How to vertically centred an image inside a floating div

.container{  float:right;  border: 1px solid blue;  height: 100px;  }  .container img{   width:80px;   height:20px;   vertical-align:middle;   border: 1px solid red; }

    My question, is how can you centred the image vertically inside a floating div?


Why does Stark have to be in the Iron Man suit at all?

We've seen on multiple occasions that the Iron Man suit can be completely autonomous or remote (voice) controlled. Why does Tony ever need to risk his life by actually riding in the suit at all? To me, it would seem more strategic if Stark would just hang back and monitor the fight from a distance.


I have an external Hard Drive and from time to time a random folder named something like 2eca741dd6d1f17e12bd34da6e546f appears. I delete it and some days/weeks later it appears again.   The folder contains a file named MpMiniSigStub.exe  What is it?   When I try to delete it, I have to delete it as an administrator. Also, the name isn't the same every time.


Use VirtualBox to boot a physical drive/partition

I have two partitions on my hard drive, one for Windows and one for linux. I would like to use VirtualBox in Linux to boot the Windows partition as a virtual machine. How can I acheive this?


Permission error when using cat command as an editor

The following command works as expected:  # Add/create /tmp/hosts with the string content inside EOFs $ cat >> /tmp/hosts <<EOF 127.0.0.0 example.com 127.0.0.0 foo.example.com EOF   However, the following command yields an error even when the sudo'd account has a permission to write to /etc/hosts.  $ sudo cat >> /etc/hosts <<EOF 127.0.0.0 example.com 127.0.0.0 foo.example.com EOF  -bash: /etc/hosts: Permission denied   Why? And how can one achieve exactly what the above command intends to?


Is $e^{i\theta}$ multivalued or singlevalued?

We know from Euler's formula that for $\theta \in \mathbb{R}$  we have $e^{i\theta} = \cos(\theta) + i \sin (\theta)$ which is a single complex number.  However, If I apply the definition of complex power $z^\alpha = e^{\alpha \log z}$ I get the following for $z=e$ and $\alpha = i \theta$:  $e^{i \theta} = e^{i \theta \log e} = e^{i \theta (Log|e| + i\arg e)} = e^{i\theta (1+2k\pi i)} = e^{-2k\pi \theta} \cdot e^{i\theta}$ with $k \in \mathbb{Z}$  This means that $(1-  e^{-2k\pi \theta}) \cdot e^{i \theta} = 0$.  We know that $e^{i \theta}$ cannot be zero. So it must be that $1-  e^{-2k\pi \theta} =0$ for all real $\theta$. This means that $k=0$. So $e^{i\theta} = e^{-2k\pi \theta} \cdot e^{i\theta}$ does not hold for all $k \in \mathbb{Z}$. What is going on here?   Also $e^{i \theta}$ is supposed to take infinitely many values since the exponent is neither a real integer, nor a rational fraction. Which way is it?  EDIT:  If I input $e^{\pi i}$ to Wolfram Alpha:    I get both a single valued result -1 and a multivalued result.


Drawing different size balls from a bag (No replacement)  Let's suppose I have a bag with $N$ balls inside. Each ball has a different size. The volume of the $i$th ball is $V_i$ ($i \in [1,N] \land j \in \mathbb{N}$). Let's assume that the probability of drawing the ball $i$ in a turn is proportional to $V_i$. That is to say: The bigger the ball the more likely it will be picked up from the bag. I want to draw $k$ balls from the bag-where $k < N$-one at a time and without replacement of the balls extracted.  Question: What is the probability of drawing the ball $i$ in this process?  This probability has to be expressed in terms of $k$ and $V_j$, where $j \in [1,N] \land j \in \mathbb{N}$.  Thanks!!!


Definition of Hamiltonian in Quantum Mechanics

Is there any particular reason that the Hamiltonian operator was defined in quantum mechanics to be $$\hat H := \frac{\hat p^2}{2m} + V$$ as opposed to $$\hat H := i\hbar \frac{\partial}{\partial t}?$$  This latter definition would put the momentum and Hamiltonian operators in a nice parallel in position space, paring each conserved quantity with its Noether symmetry as a derivative.  $$\hat H = i\hbar \frac{\partial }{\partial t} \longleftrightarrow \hat p = -i\hbar \frac{\partial}{\partial x}$$  It also would put the Schrödinger equation in the following form, which parallels the classical equation.  $$\hat H \Psi = \frac{\hat p^2}{2m} \Psi + V \Psi \longleftrightarrow H = \frac{p^2}{2m} + V$$  Is there any reason why we have instead chosen to write $\hat H = \hat p^2 / 2m + V$ and the Schrödinger equation as $\hat H \Psi = i\hbar\ \partial \Psi / \partial t$? The alternative view seems a bit more enlightening to me, imho.


Lots of not-always-useful but well-intentioned answers

In  Joel Spolsky mentioned something along the lines that some sites (for example, ) suffer a little from questions that don't always get useful answers - even when someone has good intentions. So, for example, someone asks a question about getting a visa. It's tough and a rare visa, but nobody who has been online that day sees it AND knows the answer, so it gets no response. However, Joe from Kansas sees it, remembers his cousin got a visa just like that, he thinks. He writes an answer that his cousin got a visa for that country, despite it being not quite the same, he thinks it'll be useful. It's not necessarily useful, but now the question is 'answered', and vanishes into the ether. Obviously, the OP isn't going to accept the answer, as it's not really right. We do have a few of these on Travel Answers, as well as many, many GOOD answers, to be clear - but what can be done about it?  Vote them down? This will make it still 'unanswered with no answers > 0' if we're lucky Delete the answer? Odds are someone else coming along might see it and find it useful in a very similar situation Change to a comment? Some of these are quite detailed (especially visa criteria and laws) that most of us wouldn't know to change it or not.  Any suggestions or solutions that other sites have found?


Can Disguise Self be used to impersonate a specific person?

I understand that the effect of this spell is purely visual and will not stand up to physical interaction or extended inspection. But I’m wondering how specific a disguise one can make?   For example, if you are trying to break out of a prison can you only make yourself look like a generic guard or could you make yourself look like the warden himself including facial features (if you’ve seen him before)? Would it be good enough to convince someone who knew him?


Python generator that groups another iterable into groups of N

I'm looking for a function that takes an iterable i and a size n and yields tuples of length n that are sequential values from i:  x = [1,2,3,4,5,6,7,8,9,0] [z for z in TheFunc(x,3)]   gives  [(1,2,3),(4,5,6),(7,8,9),(0)]   Does such a function exist in the standard library?  If it exists as part of the standard library, I can't seem to find it and I've run out of terms to search for. I could write my own, but I'd rather not.


I have a tabularx environment, with the first column containing each line   number. This number is incremented automatically thanks to a variable: \newcounter{versionscnt}  and then for each line: \addtocounter{versionscnt}{1} \theversionscnt  This works perfectly fine. But now I would need to print the total number of lines (ie the last value of my counter) BEFORE the tabularx. Is there a way for me to do that? Thanks a lot for your time. PS: I found some really long solutions on this forum, for related issues, but 1) I did not understand them and 2) I don't think that this requires 50 lines of code (but I might be wrong, I don't know)...


How to ensure that the digitizer is faulty?

My HTC Evo 3D sometimes doesn't react when i press certain areas of the screen. I noticed it happens mostly on the part where the letter 'e' is, when i'm holding the phone in landscape mode.  So, i did a factory reset, wiped out SD card as well during the factory reset, and the problem still persists.  It sometimes happens for a certain period of time, and it starts to work after a while.  I did a line drawing test, and on some places it doesn't draw the line correctly (it is continuos but it's drawn with sharp angles, i don't know how to explain it better).  I read somewhere it is most probably a hardware problem, with a digitizer. Is there any way to be sure, or is it best to take it to a repair shop?


Is it possible to see when and how a file was deleted?

An application I'm working has unexpectedly deleted some data files from a folder.   Is it possible in windows 7 to pull up some kind of log for that folder, to see when the files were deleted, and what command deleted them?


Is it possible to search my SE accounts?

I asked a question, few months ago, I forgot where I asked it, it could easily fit on SO or Unix.SE or AskUbuntu or SuperUser or Gamedev.SE, and maybe another site. I have accounts on all of these and more.   So is it possible for me to search for my own questions/answers on all SE network without going to every site and checking it out?


I am trying to digitize curved roads in QGIS but cannot find the right tool.  I want somthing like end point arc segment in arcmap as shown in figure below.


If a multi class Paladin/ Eldritch Knight cast Shield of Faith, and then as a reaction cast shield, would they get a +7 Bonus to their AC?


Visit Visa Refused for Mum, Wrong Decision, terrible wording. Pls help

This is a decision my mum got for her visa refusal based on failure to meet UK visa rules paragraph 4.2 appendix 4.2 a,c,e  I am aware that you have previously applied for and been refused a visa to travel to the UK".  This is a lie because my mum has NEVER applied for a visa to the UK before. Insufficient funds even though my wife and I provided our employment contracts which shows a combined income of almost 98000 pounds. My wife will be changing employers so we put contract her from current employer and future employer with new BRP which becomes active from the 4th of next month. The case officer wrote  You also state that your daughter in law will work with (name of firm) from 4th Sept however it's unclear from document you have provided if she is currently in employment". As evidence of your sons ability to fund your strip, you have provided Barclays bank statement ending *** with balance 560 pounds. I am therefore not satisfied that you have access to sufficient funds to cover your cost of the trip. You have stated that you are self employed and that your monthly income is ****. The documents you have provided do not show that you are in employed and in receipt of income you say.  The letter then goes on to say I am refusing your visa because I am not convinced you will return home even though she has been Australia on numerous occasions and has always abided by visa conditions. My mum is a trader in a village in Ghana and has no registered business name which she told them in the comment section of her application. I get the feeling my wife's employment contract  and salary was not even considered. If the ECO's assertion re her not being in employment, that will be a violation of her visa and she will have leave the country. We provided everything from my mum's property in Ghana, letter from her church, birth certificate of my siblings, our employment contract showing combined incomes, etc. My question is, how do I address these concerns?


What do I need to do to rename a tag?  I see some people post a question here and ask for a tag to be renamed. Is there some other way?


Not able to remove software from Software center

I am trying to uninstall vmware-view installed on my machine and I tried the following ways:  1) From Software Center:  Not sure why but I see that it is installed twice on my machine as you can see in the below screenshot.  I clicked the Remove button but nothing happened. I think I clicked may be 10 times all it does is opens another prompt asking if I really want to uninstall this and when I select Yes nothing happens after that and I still see listed here.    2) I tried to remove the same from terminal by typing the below command  sudo apt-get remove vmware-view but it displays message that      Unable to locate package vmware-view   What I am trying to do is re-install vmware view client as the current one is not working.  Note: I am on Ubuntu 16.10  Any help on this?


How to configure vim to not put comments at the beginning of lines while editing python files

When I add a # in insert mode on an empty line in Vim while editing python files, vim moves the # to the beginning of the line, but I would like the # to be inserted at the tab level where I entered it.  For example, when writing this in vim  for i in range(10):     #   the # does not stay there where I entered it.  It is moved like so, by vim.  for i in range(10): #   Does anyone know of a configuration item in vim that would change this?  If it helps, I am using Ubuntu 8.10.


I installed the Notepad++ snap package few months ago in Ubuntu 18.04, and it worked perfectly. Two weeks ago suddenly Notepad++ stopped opening. When I click on the Notepad++ icon nothing happens. I removed and installed Notepad++ again, but it's still not working. I haven't any logs about this.  When I run snap run notepad-plus-plus I get the following results:  wine cmd.exe /c echo '%ProgramFiles%' returned empty string, error message    "wine: WINEARCH set to win64 but '/home/my-username/snap/notepad-plus-plus/common/.wine'   is a 32-bit installation."


One hot encode nominal categorical variables for random forest?

I looked for this before but I couldn't find it exactly, so let me know if it's a duplicate. My question is, should categorical variables be one hot encoded to run Random forests? Or just transforming them to nominal is fine? Take into account that there are some continuous variables in my model as well, if that makes any difference. Also, I'm using Python's sklearn. I did search this but anywhere I looked there was a different answer. I read  article as well which is quite informative, but I wanted to know if there's any consensus of some kind, or if any trustworthy reference can be found? Edit: Decided to quickly try the one hot encoding implementation and the first thing I notice is that it is taking considerably longer to run.


This thread is a record.  Given a Hilbert space $\mathcal{H}$.  Consider a normal operator: $$N:\mathcal{D}\to\mathcal{H}:\quad N^*N=NN^*$$ and its spectral measure: $$E:\mathcal{B}(\mathbb{C})\to\mathcal{B}(\mathcal{H})$$  Regard a unitary transformation: $$U:\mathcal{H}\to\mathcal{K}:\quad U^*=U^{-1}$$  How to check that the transformed becomes: $$M:=UNU^{-1}=\int_\mathbb{C}\lambda\mathrm{d}UEU^{-1}(\lambda)=:\int_\mathbb{C}\lambda\mathrm{d}F(\lambda)$$


Hide column in sharepoint 2013 based on the value from another column

I have a SharePoint 2013 list, and I want to hide certain columns based on a users selection from a drop down list in another column in the same list.  Anyone help?


How to Make google Show My website pages in the way I want

Let us take an exapmle of ebay.   As you can see in image when I search for ebay it also shows subpages like Deals,GlobalEasybay and etc..For my site also this happens but the problem is that I don't have any control over it.It displays random sub-pages.My First question How I can control this. Second You can see on the right column of my screenshot ,there is a nice presentation on ebay with a picture and rescent posts...How I can make something like this on my website?


Aligning long entries in LOF using tocloft package

I am facing a problem by left aligning long entries in the LOF using the tocloft package. Although my TOC for long entries looks perfect and aligned, the LOF is not :( .  I am using the command   \caption[Short caption]{long caption}    to introduce shorter captions in my LOF.  Here an example:  Figure 1.1  This is an extremely long long         long caption not well aligned...........2 Figure 1.2  This is a normal caption............3   I needs to be:  Figure 1.1  This is an extremely long long             long caption not well aligned.......2 Figure 1.2  This is a normal caption............3   I realized that the problem actually comes due to the fact that I am adding before each Figure number the word "Figure". If I remove this command,  \renewcommand{\cftfigfont}{Figure } % Add the word Figure in LOF   then everything is OK in the LOF.  How can I both have it correctly aligned and using the word "Figure"? I would appreciate any help.   Thank you a lot! George  Here the entire code I am using, where you can see the problem in the last page (LOF).  \documentclass[ fontsize=12pt, listof=totoc, bibliography=totoc, paper=a4 ]{book}  %%%%%%%%%%%%%%%%%%%%%%%%% GRAPHICS PACKAGES %%%%%%%%%%%%%%%%%%%%%%%%% \usepackage{graphicx} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  \usepackage{textcomp}     \usepackage{lmodern}     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   \usepackage[titles]{tocloft}        % Package for nices LOF and LOT \renewcommand{\cftfigfont}{Figure } % Add the word Figure in LOF %\renewcommand{\cfttabfont}{Table }  % Add the word Table in LOT \setcounter{chapter}{1} %%%%%%%%%%%%%%%%%%%%%%%%%%% BEGIN DOCUMENT %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{document} \frontmatter \pagestyle{empty} \renewcommand\contentsname{Table of Contents} \tableofcontents \mainmatter  \stepcounter{chapter}       % increase chapter counter \chapter*{Chapter 1 - chapter title} \addcontentsline{toc}{chapter}{1 Custom chapter title}    % introduce chapter in the TOC %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \section{Section 1} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \subsection{Loooooooooong long long long long long long long long long subsection} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla  %%%%%%%%%%%%%%%%%%%%%%%%%%% Figure %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{figure}[ht]   \begin{center} %\includegraphics[width=155mm,clip]{test.eps}         \end{center}     \caption[Short caption but toooo loooooooong for the LOF, which does not align it on the left] {\bfseries Part of caption. \textnormal{\textsl{Rest of caption}}}  \label{fig:fig} \end{figure}  \backmatter \listoffigures \end{document}


At several points, ghosts are shown to be under the ministry’s control. But ghosts seem to care little about the law, and I doubt peeves would do it out of obedience. How does the ministry control ghosts? I am not asking how ghosts are punished, I am asking why ghosts are so easily controlled and ordered about, why don’t they refuse or run of? I repeat my earlier statement.


How are Quantum Mechanical energy levels related to atom shells?

I'm currently taking Quantum Mechanics in school and I came across a table displaying the following in the given order:   $E_n (\text{energy levels}), g_n (\text{eigen functions})$   $n \ l, [m]$  $E_1, 1$   $1s, [0]$  $E_2, 4$   $2s, [0]$ $2p, [-1,0,1]$  $E_3, 9$   $3s, [0]$ $3p, [-1,0,1]$ $3d, [-2,-1,0,1,2]$    Now, as I understand $n$ defines the size of the orbital, $l$ the shape and $m$ the orientation.  My question is, how does the atoms shell model fit into this if one can have two electrons per orbital? Are $1s$ the same as the orbital $2s$, but just renamed for the sake of higher energy levels? Or do two similarly looking orbits exist for different energy levels? For example two "layers" of spherical electron clouds for an atom with $4$ electrons.  I just can't see how $2$, $8$, $18$ becomes $2$, $8$, $8$ as we were taught in Physics at high school? Am I missing something?


When true polymorphed creature dies, does it revert to its original form?

The  description says:     Creature into Creature.   The transformation lasts for the duration, or until the target drops to 0 hit points or dies. If you concentrate on this spell for the full duration, the transformation lasts until it is dispelled.   Does the second sentence imply the creature won't revert to its normal form, even being killed? (providing the caster were concentrating on the spell for the full duration)  If so, isn't "until the target drops to 0 hit points" enough? Why the "...or dies" addition? A creature can't die having more that 0 hit points, can it?


How to change the current path to a directory that has an space on it's name?

Well I know how to open a folder in the terminal (using cd). But when the name of this folder have space? Ex: Eclipse Indigo. If you use cd Eclipse Indigo does not recognize


I am a beginner on calculating correlations and I would like to ask possibly a very simple question.  If I have two variables that I want to perform correlation on, and those variable are of unequal size, does this affect my correlation result?  Thanks


Providing advice based on user's favourite YouTuber

I have written this code which provides advice based on user's favourite YouTuber. I wonder if there is a better way to do absolutely any of it. Also, if there is any way to optimise it or if there is a problem please also tell me preferably with fixed code as I am still sort of a beginner. The code is below:  import random  def test():     youtuber = input('Enter your favourite youtuber:  ')     youtuber = youtuber.lower()     favouriteYoutuber = ['Dr. Phil', 'Mr. Beast', 'T-Series', 'PewDiePie', '5 Minute Crafts', 'The Ellen Show']      if youtuber == 'dr. phil':         print('You are an awesome lad!')     elif youtuber == 'james charles':         print('Errmm. Ok...')     elif youtuber == 'bloamz':         print('Ok then.')     elif youtuber == 'ali a':         print('I mean. Thats old but ok...')     elif youtuber == 'jacksepticeye':         print('Thats kinda cool')     elif youtuber == 'will smith':         print('Thats different. I rate that')     elif youtuber == 'jack black':         print('you have good taste')     elif youtuber == 'jack white':         print('I like him as well')     elif youtuber == 'dr. mike':         print('so you like learning then')     elif youtuber == 'morgz':         print('I mean just leave now')     else:         print('I dont know that one. Ill check them out')      print('my favourite youtuber is ' + random.choice(favouriteYoutuber))  def try_again():     again = True     while again:         test()         while True:             try:                 print("")                 print("Would you like to try again?")                 maybe = input("Y/N ")                 maybe = maybe.lower()             except ValueError:                 print("That is not a valid option")                 print("")                 continue             if maybe in ('y','n'):                 if maybe == "n":                     print("")                     again = False                 elif maybe == "y":                     print("")                 break      else:         print("Thank you for using this app!") try_again()


When I think about it Macs and PCs have very similar hardware. For example examples Macs use Intel Core CPUs and PCs can have them too. Same with GPUs. One main difference is of course Macs run OS X and PCs can't (excluding 'hackintosh').  My question is why, for example, a Snow Leopard DVD will boot on a Mac but not on a PC?


My laptop which ran Fedora 20 fine until this morning is now stuck in emergency mode. I have not set a root password and I cannot proceed beyond the initial prompt. Attempting to continue in default mode (ctrl d) just returns me to the emergency boot prompt. How can I resolve this?


Show that if $f$ is holomorphic and $f'(a) \neq 0$ then $f$ is injective on a disk around $a$

I'm attempting to solve a question which says that $ f: U \rightarrow \mathbb{C}$ is holomorphic on an open subset $U \subset \mathbb{C}$ and that $f'(a) \neq 0$ for some $a \in U$.  I'm asked to show that $f$ is injective on some disk around $a$ - I thought I had a proof but see now I only showed that $f(z) \neq f(a)$ for all $z$ in the disk with $z \neq a$, which obviously isn't good enough.  The section of the textbook I'm using that this exercise is in has covered the argument principle, Rouche's theorem, the open mapping theorem, and the inverse function theorem - so I assume that I'm supposed to use one of those to do so, but I can't see how.  Your help would be very much appreciated!


Need to redirect the non-existence URL's to 404 page instead of parent url

This is in connection to drupal.org issue .  That's when I happen to request for page "node/1/aaa/bbbb", I'm served the response for "node/1" (it's parent page).  I can understand, this is the way Drupal menu system has been designed and works for some obvious reasons.   But I'm in a need to change this. Reason we have some aliased urls across the site, links from third party sites are taking (visitors and crawlers) to not existing page for which ideally http 404 response code and page not found to be returned. Instead Drupal showing it's parent page (with http res. code 200). This is leading to duplicate page in Google webmasters and misleading our genuine users.  I have found a  to this issue. However it is working fine only for 80% of cases, some valid urls (admin/*, sites/default/files/ * , system/ajax/*, etc.,) leads to 404 page.  Would like to hear how others are dealing with this duplicate content issue concerning SEO and possible fix!


If $a, b, c$ are reals prove that $ (a^3+b^3) \le (a^2+b^2)•(a^4+b^4) $

If a,b,c are reals prove that $$ (a^3+b^3) \le (a^2+b^2)•(a^4+b^4) $$  Now I tried AM GM on the RHS of the inequality and got $ 4a^3•b^3 \le (a^2+b^2)•(a^4+b^4) $  So now it suffices to show that $a^3+b^3 \le 4a^3•b^3 $  Thats were i am stuck .Thank for the help.


How does a massive photon arise in the Condensed Matter Analogue of the Higgs Mechanism?

I've tried the wikipedia pages, papers (too complex) and other forum answers on this seemingly popular topic, to no avail.  Without going into too much mathematics (sorry), could someone please explain the condensed matter analogue of the Higgs Mechanism?  E.g. I've heard that the U(1) symmetry is broken in a superconductor, and that you can think of this as resulting in the photon gaining a nonzero mass.   How is U(1) symmetry broken (why does the cooper pair BEC break U(1) symmetry), and how does this directly imply a photon mass?  Thank you


I am having configuration AMD Sempron145 prosessor, with 2GB RAM and 512MB graphics. Already having win7 ultimate 32bit and want to use ubuntu 32bit with windows7 as dual boot!  How to do it!


Can't empty the trash after deleting user account

I had an old user account on this machine that I no longer needed and was taking up a lot of space. I removed it by going to System Preferences > Users & Groups and deleting the user. It took a while, but it seemed to work and the user disappeared from the list.  However, I didn't seem to reclaim any disk space, which I thought was odd. So I checked and the deleted user's folder was still present in /Users.  Since the user was no longer listed in Users & Groups, I tried just manually deleting the user folder from the Finder and then emptying the trash. This worked up until it hit file 103,556, at which point it seemed to get stuck. I let it run overnight for 8+ hours and when I came back to it this morning, it was still sitting at 103,556.  I couldn't cancel the delete operation or anything, so I force-restarted the computer and tried emptying the trash again. Again, it counted up to the same file and then stopped.  Is there any way I can force-empty the trash to get rid of this user account?


The function $\sqrt{z-a}\cdot \sqrt{z-a}$ has a branch in $C\setminus{[a,b]}$ for all $a,b\in \Bbb{C}$ using $z-a\over z-b$

Show that the function $f(z)=\sqrt{z-a}\cdot \sqrt{z-a}$  has a branch in $C\setminus{[a,b]}$ for all $a,b\in \Bbb{C}$. Hint: $\phi={z-a\over z-b}$ maps $[a,b]$ to $\Bbb{C}\setminus(-\infty,0]$. I tried to use the hint and also found $\phi^{-1}$ so as to get close to a holomorphic composition to fit $f(z)$, but I am stuck here, and I can't quite see how I can form it. What should be the approahc here or the explanation for what makes a function that defines a continuous subset of $f(z)$ a branch...I could use some help here.  This question is referred to another question that is identical in result to this one. However, these are not identical in the attempt or in the solution, as they do not rely on the hint I am trying to utilize and connect to the given case, and in any case I do not quite understand the reference's comments and solutions, whose authors would not necessarily be as responsive to me as they might be to the referrence's OP.


Cannot get cursor out of edit area when editing an answer in Low Quality Posts

Browser Information  I am using Chrome version 32.0.1700.107 m in Incognito mode.  Problem  While trying to edit the last 2 reviews I've had in the Low Quality Posts queue, once I start editing and the cursor was inside of the edit area, I could not get it out. For example, I would try to click the Edit Summary textbox, yet the cursor remained inside of the edit area.  I had to eventually just click Save Edits or some other button to move on.   Possible Insight into the Cause of the Issue  If you look at the [Editing...] button in the screen shot, it's not disabled.  When you normally edit that button is disabled.  Reproduced Issue  Here is  that I ran into.  As you can see, it also has the [Editing...] button enabled. It's disabled until you click inside of the edit area, then it becomes enabled.  After that, you can't do anything with the cursor inside of the edit area.  You can tab out of it, but you then you can't get back into the edit area.  You simply have to cancel out of the entire thing.


how does one integrate $\int \sin(2x)\cos(4x)dx$? im looking for tips and hints on the matter ...


So I am searching for a field $K$ with these properties:  $1.$ $K$ is infinite.   $2.$ $K$ is not algebraically closed.  $3.$ $K$ is algebraic over a finite field.   I do not think the answer will be a trivial one.


How to reset software package configurations?

I've been trying to set up a tor relay, but I ended up deleting the /etc/tor/torrc configuration file after messing it up too much and figuring that tor would create a new unmodified config file after failing to locate it. This didn't turn out to be the case, and reinstalling the tor package didn't restore the config file either. So in general, what can be done to reset a software package, restoring its configuration state back to when it was first installed? This problem has plagued me before but I haven't come across the solution yet. Thanks! Edit: I'm running Ubuntu 18.04


how would you find the value of : $$ \left(1-\frac{1}{2^2}\right) \left(1-\frac{1}{3^2}\right) \left(1-\frac{1}{4^2}\right) \ldots \left(1-\frac{1}{2017^2}\right)$$ Tried looking for some kind of pattern here but in vain . thanks in advance


I need some help with a GCD and LCM's Problem

Given a list $A$ of $n$ positive integer numbers. We're gonna play this game:  $1 -$ Take randomly $2$ numbers of $A$. $2 -$ Delete this $2$ elements of $A$. $3 -$ Insert in $A$ their gcd and lcm. $4 -$ Go to step $1.$  Prove that after some quantity of steps, $A$ doesn't change its elements.


"You already applied for this job" indicator on Job search result page

There is no message/button on the job search listing page to indicate - "you have already applied for this job". We need to open one page each job posting to check "applied/not applied" message.  A simple message on the job listing page can save one click and bandwidth per job posting.


Downvote and question-ban Mechanisms need to be tweaked

I have some suggestions on down-voting.   If a person has performed a downvote on particular post without telling the reason behind it, then how can the OP knows why his/her post is downvoted? Of course the SO shows this Ajax reminder:  Please consider adding a comment if you think this post can be improved   I think this reminder is being neglected in most of the cases.  My Suggestion:     In this case there is a need to make the reason behind downvoting mandatory.   OR     At least the OP should be able to know the person who downvoted his/her post.   so that the OP can ask the particular person to know the reason behind the downvote. It also helps the OP to modify the question as per the reason/suggestion stated.  Of course there is a tooltip on the downvote button itself :  "This question does not show any research effort; it is unclear or not useful".   This is also been neglected in some of the cases.  Eg;- Why  Question got a downvote of -2? I don't see any reason for downvote.  Question-ban:  So the user gets a question-ban if most of his/her questions get downvotes. This  on SO clearly states this:  **Stack Exchange cannot lift question bans by request**   I think the SO is not being user-friendly at this point.  What if the downvote stays for the question/questions even after improving the post/posts? Then that user is banned for asking a question on SO permanently?  My suggestion:     The question-ban should be made as temporary for some period of hours or days.   Any other suggestions are also welcomed! Thanks!


How do I add my own program to the terminal?

I want to be able to make a program for example in Python and then execute it in the terminal no matter where I am located. I mean, if I have an executable python file AND I'm in the same folder of the file I can directly execute it but if I'm in other folders I can't.  I want to be able to execute it from anywhere as I do with all the terminal commands. I think it has to do with te PATH but i'm pretty new to Linux so I'd thank any help with this. Thanks!


How to ban an IP temporarily after several incorrect password attempts?

My new server got hacked (sigh).  I have physical access to my machine.  It seems like the only changes made was a new user account created and a broken /etc/sudoers file.  It seems as though the password was discovered by dictionary attack.    After I fix these problems (or do a full re-install?), I want to add a mechanism to ban an IP (for maybe 24 hours or some time limit) after getting the password wrong x number of times, but I'm not a unix sysadmin or anything, so I'm not really sure where to get started.  What software should I use and how can I configure it?  Thanks.


Is it true that 90% of investors lose their money?

Many investment gurus state that majority of investors fail and then offer a proven "[insert fancy name] investment strategy" that will make you successful. The number usually starts at 90% and often goes up to 99%.   Intuitively, the number makes sense to me. After all this is a zero sum game. Taking into account all different kinds of middle-men the game is actually a negative sum game.   Are there any scientific reports supporting these claims? All I found was a bunch of anecdotes.  Edit: several people noted that losing/failing is a relative term. I agree. What would be interesting is to find research that resulted in a sample of distribution of returns relative to some general market index.


How to start an external program inside a java program

I am new in how to start a program inside another java program! and i don't know how to call it. The 1st question is that i must do it inside a new thread? the second question is how to call the new program. The program i want to call is "wondershaper". I use ubuntu 12.04 for running this programm and in command line i write. "sudo wondershaper eth0 10000 1000".  How i can write it inside a general program?  I have a server that i want to handle the rate of it! thats why i use it. So i have a multithread server and the code is   class Client extends Thread {     private Socket connectionSocket;       public Client(Socket c) throws IOException {         connectionSocket = c;     }      public void run() {          String path = "C:/pao/new2/";          File folder = new File(path);         File[] listOfFiles = folder.listFiles();           try {              String fileToSendStr = readFile();             File fileToSend = null;             for (File f : listOfFiles)              {                                if (f.getName().equals(fileToSendStr)) {                     fileToSend = f;                     break;                 }             }             //System.out.println("Connescting to Client to recieve the part " +fileToSendStr);             if (fileToSend == null) {              }             System.out.println("Sending the chunk to Client " + fileToSendStr + "to the client: " +connectionSocket.getRemoteSocketAddress().toString());             java.util.Date date= new java.util.Date();              System.out.println(new Timestamp(date.getTime()));             long length = fileToSend.length();             byte [] longBytes = new byte[8];             ByteBuffer bbuffer = ByteBuffer.wrap(longBytes);             bbuffer.putLong(length);             connectionSocket.getOutputStream().write(longBytes);              BufferedOutputStream bout = new BufferedOutputStream(connectionSocket.getOutputStream());             BufferedInputStream bain = new BufferedInputStream(new FileInputStream(fileToSend));              byte buffer [] = new byte [1024];             int i = 0;             while((i = bain.read(buffer, 0, 1024)) >= 0){                  bout.write(buffer, 0, i);               }                System.out.println("chunk sended");             java.util.Date date1= new java.util.Date();              System.out.println(new Timestamp(date1.getTime()));             bout.close();             bain.close();           } catch (IOException e) {             e.printStackTrace();         }      }      private String readFile() throws IOException {          BufferedReader r = new BufferedReader(new InputStreamReader(                 connectionSocket.getInputStream()));         return r.readLine();      } }   so when i read the readFile what client send to me. After if it is the rate string to start the "wondershaper" and put the rate inside the "sudo wondershaper eth0 10000 rate" and start the program


Duplicating an object in script (by name)

I want to duplicate an object (by name). In this case, tried "Cube": src_obj = bpy.data.objects["Cube"] #print (src_obj) #ok, seems selected new_obj = src_obj.ops.object.duplicate(linked=0,mode='TRANSLATION')  which gives me: 'Object' object has no attribute 'ops' How can I fix it? Thanks.


I'm using the following commands to add a *.pdf file into my report:  \usepackage{pdfpages}     \includepdf[pages=-]{part.pdf}   I get the following message (and the PDF is not included):     I will use a dummy \includepdf command(pdfpages) which will NOT insert any pages, because(pdfpages) you are producing DVI output.   Any idea how to solve the problem?


How to make a stair railing like this one?

I'm new to blender, I only used Maya some years ago...  I'm trying to make the stair in the picture but I don't know how to do the railing. I know I have to use a curve and then extrude a circle in it but how to?    Thanks.


I recently asked for program ideas.  I got five downvotes (or more if someone upvoted along the way ;), and the question was closed.  Where should I ask that kind of question?  (No one say Google (or another search engine).  Please.)  Edit:  Think moderately-sized, one-person projects for someone who already can program (at least to some standard).


I use letters to indicate footnotes, so I use the \alph command to output the footnote number.  The problem is that \alph can only handle numbers up to 26 (corresponding to the letter z). Is there any way to have the count continue with aa, ab, ac, ..., az, ba, bb, ... (or something similar) for the values 27, 28, 29, ...


How do I compute v.kernel maps in less than 16 hours?

I am using the GRASS GIS 6.4.2 bundled with QGIS 1.8.0, using a PostGIS dataset exported via v.in.org.qgis from QGIS, to create kernel density maps.  The layer has 738,288 points.  My problem is the kernel density map takes about 16 hours to compute.  Here's parameters reported by v.kernel as it's executing:  STDDEV: 1000.000000 RES: 111.419043 ROWS: 458   COLS: 447  Writing output raster map using smooth parameter=1000.000000.  Normalising factor=6482635.018778.   I am running this on a Windows 7 x64 laptop with 8 GB RAM and an Intel Core i7 Q720 1.6 GHz with 4 physical cores. I notice that it's not multithreaded, only using 1 core.  Is there any way to speed this up without harming the quality of the output?


Is there an extension of the residue theorem to multivariate complex functions? Say you have a function of $n$ complex variables $s_{n}$ and you wish to integrate it over some region in $\mathbb{C}^{n}$. Can you exploit the singularities of the function as you would in the single variable case to evaluate the integral? For example  \begin{equation}G=\int_{\Omega} d^{n}s \frac{1}{\sum_{i} s_{i}^{2}}\end{equation} This is singular for the $n$ roots of the equation $\sum_{i}s_{i}^{2}=0$ but I can't think of a way to extend the residue theorem to such a case. I guess you could go to 'polar' coordinates and it may simplify this one, but what about more complicated functions where this isn't possible? I'm sorry if the question is ill-defined.


Is there a formal term for the algebraic structure equivalent to Thurston's hemigroup without identity?

This question is not a duplicated of  . It is a follow-on, asking about the distinction between the subject of that post, and the subject of this post.  In The Number System by Thurston the author introduces an algebraic structure he calls a .  The laws of a hemigroup are:   (i)   $\left(x\odot y\right)\odot z=x\odot \left(y\odot z\right),$ (ii)  $\left(x\odot y\right)=\left(y\odot x\right),$ (iii) $\left(x\odot y\right)=\left(x\odot z\right)\implies{y=z},$ (iv)  $\exists_e e\odot e=e.$   I have been told this defines a .  I will retain the uncommon designation hemigroup for now.  Thurston then introduces entities he calls dyads which are sets of ordered pairs formed of elements of the hemigroup constituting equivalence classes of the ordered pairs.  I write this as  $$\left[\![a,b\right]\!]\equiv\{ \left<x,y\right>\backepsilon{x\odot b=y\odot a}\}.$$  The algebra of these dyads satisfies the laws of a commtative group.  One such commutative group is what  call the module of integers.  In that source, however, this module is constructed of residue classes of ordered pairs from an algebraic structure which amounts to Thurston's hemigroup without the existence of an identity element.  That is   (i)   $\left(x\odot y\right)\odot z=x\odot \left(y\odot z\right),$ (ii)  $\left(x\odot y\right)=\left(y\odot x\right),$ (iii) $\left(x\odot y\right)=\left(x\odot z\right)\implies{y=z}.$   But those authors do not formally nominate this structure.  It is the additive algebraic structure of the natural numbers, which by traditional American definition are $\mathbb{N}\equiv\{1,2,3,\dots\}$.  Thurston's hemigroup is the additive structure of the whole numbers, which by traditional American definition are $\mathbb{N}_0\equiv \mathbb{N}\cup\{0\}.$    Both developments produce the same integral domain, but from different underlying algebraic structures.  I am asking if the algebraic structure consisting of a hemigroup sans identity has a common mathematical name.  If so, what is that name?


What is a hit die, and how do I calculate monster HP?

I'm new and have the AD&D Monster Manual and Fiend Folio. I want to know how to calculate monsters' HP. Does 4 hit dice mean 4 HP, or 4 rolls of a die, and how do I know what die to roll if it is?


Why people delete complete password field if only single character is missed?

Including me, I have noticed it many times, people tends to delete complete password field even if they miss single character.   Anyone know why users are tend to behave in such a way? Can we do something to change this sort of user experience?   Thanks in advance.


For the newest updates, what are some of the trigger words for iMessage screen effects?

I know that if you type in "Pew Pew" lasers will fire; But are there anymore?


Color fill cells if it contains a certain value

I have a list of cells that contain 1 of 12 values. I have 4 different colors that I want the the cell filled depending on the cell value. How do I do this?  We are running Excel Professional 2010 Del


Redirecting hotspot's traffic through the TOR

I have settled WI-FI hotspot on Kali linux via hostapd+dnsmasq tools. For being able to access internet(which is accessible through different interface) I used masquerading:  iptables -P FORWARD ACCEPT iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE   But afterward another feature turned to be wanted: redirection of the incoming traffic to the tor's proxy. Could you help me to understand which rules I need to append to iptables in order to proxying through tor configured like this:  # configure tor with this configuration AutomapHostsOnResolve 1 TransPort 9040 TransListenAddress 10.0.0.1 DNSPort 5354 DNSListenAddress 10.0.0.1 SOCKSPort 0


How do we know the list of sharing rules in the org. using SOQL or apex?

Using SOQL or apex, I would like to read Sharing rules defined in Sharing Settings like for Contact/Accounts in the Org.?


I have a document with a (logical) section that does not have a standard heading (i.e., no \section or whatever), and I would like it to appear in the table of contents and in the PDF bookmarks. I can almost do it by using \addcontentsline: It is detected by hyperref, but the bookmark that it generates is broken. Clicking on it takes me to the previous bookmark.  I know how to generate a working bookmark with \pdfbookmark[1]{Section without standard heading}{uniqueID}, but I also want to see the section in the TOC. (Naturally, using both commands gives me two bookmarks, one of them broken.)  The problem is unchanged when I set hypertexnames=false (which is supposed to generate unique identifiers). Here is a complete example:  \documentclass{article}  \usepackage[bookmarks,hypertexnames=false,debug]{hyperref}  \begin{document} \section{First page}  \newpage \textbf{Text on page 2}  \addcontentsline{toc}{section}{Section without standard heading} % broken bookmark % This will work, but I still need the TOC %\pdfbookmark[1]{Section without standard heading}{page2} Second page text  \newpage \section{Third section}  \end{document}


Implicit conversion from IEnumerable to Foo> fails, but works for int[] to Foo>

Sorry for the clumsy title, but SO wouldn't let me leave it at "implicit conversion not working as expected". Consider this trivial generic type: public class Foo<T> {     public T Bar;     public Foo(T bar) => Bar = bar;     public static implicit operator Foo<T>(T bar) => new(bar); }  Notice the implicit conversion that (at least in my mind) should allow me to create a Foo<T> directly from any T like so: int[] xs = new[] { 1, 2, 3 }; IEnumerable<int> ys = xs.AsEnumerable(); Foo<IEnumerable<int>> foo = ys; // CS0266  However the above will produce a compiler error:  CS0266: Cannot implicitly convert type 'System.Collections.Generic.IEnumerable<int>' to 'Foo<System.Collections.Generic.IEnumerable<int>>'. An explicit conversion exists (are you missing a cast?)  Funnily enough, the below code is working without problems: int[] xs = new[] { 1, 2, 3 }; Foo<IEnumerable<int>> foo = xs; // no error  And using an explicit cast "fixes" the compiler error, but crashes at runtime: int[] xs = new[] { 1, 2, 3 }; IEnumerable<int> ys = xs.AsEnumerable(); Foo<IEnumerable<int>> foo = (Foo<IEnumerable<int>>)ys; // InvalidCastException   InvalidCastException: Unable to cast object of type 'System.Int32[]' to type 'Foo`1[System.Collections.Generic.IEnumerable`1[System.Int32]]'.  What is going on here? I'm totally stumped and don't have the slightest clue. .NET Fiddle:


Locate the file that a given non-clustered index is stored on?

Is there a query to view which file a given non-clustered index is stored on?


I would like to modify unity to not show the launcher (left side bar) at all. I'm not looking for any solution that would let the launcher be in some cases visible. I really want it to completly disappear. It's a gift for my fiance and I want to achieve the highest possible Woman Acceptance Factor for her linux laptop which is running a docky dock with fancy icons that make it look like being from that known and fruity company.  Any hints about which packages and which source files I should study?   I'm hoping it to be as easy as commenting out the line with "unity.launcher.show()" and recompiling :-)  Thank you!


Best way to format integer as string with leading zeros?

I need to add leading zeros to integer to make a string with defined quantity of digits ($cnt). What the best way to translate this simple function from PHP to Python:  function add_nulls($int, $cnt=2) {     $int = intval($int);     for($i=0; $i<($cnt-strlen($int)); $i++)         $nulls .= '0';     return $nulls.$int; }   Is there a function that can do this?


How do I create Fortify Alchemy enchantments up to 29%?

I was making a set of Fortify Alchemy to 29% to be able to create stronger enchantments. For some reason my Fortify Alchemy gear only goes to a maximum of 23% and I've read/seen people creating enchantments with a 29% bonus.  I have 100 Alchemy skill and 100 Enchantment skill with all the necessary perks.  I was trying to do this:


Solve $yy^\prime+x=\sqrt{x^2+y^2}$   Tried dividing by $y$ to get $$y^\prime+\frac{x}{y}=\frac{\sqrt{x^2+y^2}}{y}$$ $$(y^\prime)^2+2\frac{x}{y}+\frac{x^2}{y^2}=\frac{x^2+y^2}{y^2}$$ $$(y^\prime)^2+2\frac{x}{y}=1$$ $$y^\prime=\sqrt{1-2\frac{x}{y}}$$  Tried using $v=\frac{y}{x}$  $$y^\prime=v^\prime x+v$$  $$v^\prime x + v=\sqrt{1-2v^{-1}}$$  Not sure what to do now or if I've even done something right until now.


Why log-transforming the data before performing principal component analysis?

Im following a tutorial here:  to gain a better understanding of PCA.  The tutorial uses the Iris dataset and applies a log transform prior to PCA:     Notice that in the following code we apply a log transformation to the continuous variables as suggested by [1] and set center and scale equal to TRUE in the call to prcomp to standardize the variables prior to the application of PCA.   Could somebody explain to me in plain English why you first use the log function on the the first four columns of the Iris dataset. I understand it has something to do with making data  relative but am confused what's exactly the function of log, center and scale.  The reference [1] above is to Venables and Ripley, Modern applied statistics with S-PLUS, Section 11.1 that briefly says:     The data are physical measurements, so a sound initial strategy is to work on log scale. This has been done throughout.


spelling: αs or α-s, when referring to alphas as in more than one alpha?

When referring the more than one alpha, is the correct spelling αs or α-s?


I used the below commands to delete a mysql my Ubuntu server 14 on aws amazon.  sudo apt-get purge mysql-server mysql-client mysql-common mysql-server-core-5.5 mysql-client-core-5.5 sudo rm -rf /etc/mysql /var/lib/mysql sudo apt-get autoremove sudo apt-get autoclean   I would like to retrieve data from the /var/lib/mysql.  It's possible?