Do the *Result objects in Database have a common ancestor?

I'm doing some polymorphic programming, and I decided that I wanted to be able to gracefully handle partial saves using SaveResult without blocking the user experience. The code looks roughly like this:  static void logDmlErrors(SObject[] src, SObject[] dest, SaveResult[] results, String message) {     // Transform results into Chatter error messages, send them to admins }   I then went about writing the utility methods that would use this function:  public static void insertRecords(SObject[] src, SObject[] dest, String message) {     logDmlErrors(src, dest, Database.insert(dest, false), message); }   Everything went well, until I came across the delete and undelete methods, which instead use DeleteResult and UndeleteResult. Both of those two classes contain the exact same methods as SaveResult, and yet don't appear to inherit from a common ancestor. This means that I can't just cast to a super-type to get to this information.  Thankfully, Summer 16 apparently introduced support for serializing (and deserializing) these classes as JSON, so I do have a fairly expensive (but accurate) workaround if I want proper polymorphic behavior, but I thought I'd throw it out there and see if someone has an alternative solution to this problem.


What's the difference between \usepackage{ngerman} and \usepackage[ngerman]{babel}

Is there something additional that \usepackage[ngerman]{babel} does that a simple \usepackage{ngerman} won't be able to do?


Why does Neo's cubicle not look like the workplace of a programmer?

The Matrix is not a movie with an overdose of realism.  But parts of it take place in the normal "real" world. We see Neo at work in his software company in his cubicle before the Agents come to his workplace to arrest him. Neo is a programmer in his day job. So why does his cubicle not look like a programmer's? Whatever your view of what a programmer's workplace should look like, it should not be a sterile empty cubicle with no sign of any actual activity. There is no paperwork, no notes and no signs of any sort of activity on his desk. There are no reference books, manuals (and this is set before such resources as stackoverflow went online) or any other sign of activity. Moreover, his computer is turned off.   What explains this? Is it meant to mean something, or were the film makers just being lazy?


Can a 16“ MacBook Pro be reverted to an OS before Catalina?

I want to get the new 16" Macbook Pro which ships with Catalina, but I don't want Catalina at least for now because of how many legacy apps it breaks, not to mention Avid/Protools hardware which typically doesn't update drivers for up to a year after a new OS release.   I understand that new Macs sometimes have drivers they need which bundled only with that latest release, but I'm not sure how set in stone this is. Where can I find more solid information about this? I'm really Catalina-shy at this point.


force ybar interval to draw bars to bottom of axis in ymode=log

I have the following code:  \documentclass[tikz]{standalone} \usepackage{pgfplots}  \pgfplotsset{compat=newest}  \begin{document}     \begin{tikzpicture}         \begin{axis}[ymode = {log}]             \addplot+ [ybar interval, mark=none, fill=blue, draw=white] coordinates {             (0.0, 2.1940887816983409e-7)             (0.1, 0.0002414449312833731)             (0.2, 2.1755844184791984e-5)             (0.3, 8.69705071299704e-6)             (0.4, 3.0320720874795145e-6)             (0.5, 6.87304919568155e-8)             };         \end{axis}     \end{tikzpicture} \end{document}   which produces:    The probabilities are positive values, but because the axis is in log mode I assume it interprets them as negative values and draws the bars to log(x) = 0.  How do I get PGFPlots to plot the bars such that they rise up from the bottom of the axis?  Thank you.


How to check if a string contains a substring in Bash

I have a string in Bash: string="My string"  How can I test if it contains another string? if [ $string ?? 'foo' ]; then   echo "It's there!" fi  Where ?? is my unknown operator. Do I use echo and grep? if echo "$string" | grep 'foo'; then   echo "It's there!" fi  That looks a bit clumsy.


Is it possible to make the below url look more like a word/excel link? Here is a small latex example: \documentclass[10pt]{article} \usepackage[utf8]{inputenc} \usepackage[english]{babel}  \usepackage{hyperref} \hypersetup{     colorlinks=true,     urlcolor=blue } \urlstyle{same}  \begin{document} Url: \url{https://stackexchange.com/} \end{document}  The result is:  I would like something, which looks like:  Any idea how to do that? Update I came by this solution, which is very close to what I want however it changes the font for the URL, which is not desired:  \documentclass{article} \usepackage{xcolor} \usepackage[normalem]{ulem} \usepackage{hyperref} \hypersetup{colorlinks,urlcolor=blue} \makeatletter \DeclareUrlCommand\ULurl@@{   \def\UrlFont{\ttfamily\color{blue}}   \def\UrlLeft{\uline\bgroup}   \def\UrlRight{\egroup}} \def\ULurl@#1{\hyper@linkurl{\ULurl@@{#1}}{#1}} \DeclareRobustCommand*\ULurl{\hyper@normalise\ULurl@} \makeatother  \begin{document} Url: \ULurl{https://stackexchange.com/} \end{document}


Let $p$ be a prime. Prove that the order of $GL_{2}(\mathbb{{F}_{p}})$ is $p^{4}-p^{3}-p^{2}+p$.   I know that the matrix $2\times 2$ is given by this formula   $$\det\begin{bmatrix}a&b\\c&d\end{bmatrix} = ad-bc.$$  I know that the determinant is going to be zero whenever $ad=bc$.  Thank you.


Mount and dismount hard drive through a script/software

is there a way to mount and dismount a connected harddrive through a script or a simple utility software in Windows 8.1?  Basically, I have a hard drive in the ultrabay slot of my ThinkPad (instead of the dvd-drive). When booting the system, this hard drive is automatically being mounted and visible to me. Using the icon in the taskbar I can unmount it. Unfortunately, it is then only available again when I reboot the system.  So I wanted to ask if there is any command line script I can execute to dismount the drive and mount it again with another script without having to reboot?  This way I could call the unmount-script after booting, so the drive isn't always running, only when I need some stuff from it, I call the mount-script and then can access the files.  Would be great if anybody has any ideas on how to solve this! Thank you!


When I downloaded Ubuntu on a pen drive, it was on a friend's laptop that runs on AMD 64-bit. My laptop, on which I installed the OS, is an ASUS X200MA-643d running on Intel Celeron N2840. I noticed after installation that Ubuntu keeps referring to AMD 64-bit, especially when it is installing updates. The laptop is slow and often crashes. Is this because of the mismatch in config? In any case, how can I change the config? Any options other than reinstallation? Thanks!


Never use ' #include "filename.h" ' directive

I have a question about the "AV Rule 33" in [1].  It says "The #include directive shall use the <filename.h> notation to include header files.".   The document "explains" it by "divergence in vendor implementations", but I have problems believing it. A "local header" file is a local header file?!  Do compiler differ that much in the definition of "local"?  [1]


I'm looking for some sort of way that will show part/all of my text messages, emails, tweets on the screen when the phone is locked.  I just gave up my iPhone and this is something I'm really missing.    To me it is annoying to have to click on a message just to see if the person responded "ok" or something that could easily be displayed on the screen.    Here is a screen shot of the messaging.  I want to be able to read the text.


I have heard that there can be adverse effects from masturbation, such as difficulties with having children and/or decreased sex drive.  Can masturbating actually decrease my fertility or sex drive?


I have used the following command to install android studio to Ubuntu:   sudo apt-get install android-studio    However, the following message appears :  E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.    What is the problem and how to solve it ?


How to remove GRUB boot launcher from Windows 10 without a recovery disk

I installed ubuntu a while ago and then removed it soon after. Now Windows 10 is back to normal apart from GRUB boot launcher is activated and I have to type "exit" to exit it and go into Windows 10.  I do not have a windows recovery disk or USB either so I am unsure how to remove it.


C# generics - overload based on type traits

I'm new to C# and I want to create a function that accepts any numeric parameter, no matter if it's int/float, signed/unsigned, short/long etc and another function that accepts any other type.  In C++ this can be easily done using SFINAE and std::is_arithmetic:  template<typename T> typename std::enable_if<std::is_arithmetic<T>::value>::type DoSomething(T) {     std::cout<<"int/float/char..."<<std::endl; }  template<typename T> typename std::enable_if<!std::is_arithmetic<T>::value>::type DoSomething(T) {     std::cout<<"any other type except int/float..."<<std::endl; }   How may I achieve similar behavior in C#? I don't want to create an overload for every numeric type as the code for all numeric types as the code is exactly the same.


I would like to start Debian without the GUI and then just type commands in to launch the desired programs (which are located on my local machine), eg  $ chromium-browser &   I already do a similar thing when sshing in to other machines on the LAN - it is handy if I need to visualise csv data for example in soffice. i currently have gnome desktop and Debian 7 installed.  I have , however I am reluctant to try them out for fear of being locked out of using the web browser once I do this (I will need it to seek help using the browser if I get stuck).  I was wondering if I could temporarily test out the method of starting the GUI on one of the other terminals (eg ctrl+alt+f1) to see if there are any problems? Will this work? Will it be equivalent to starting the GUI when booting without a GUI?  If this is feasible, please could someone provide full instructions for:   enabling the GUI on terminal f1 so that i can run gui programs (without showing the full desktop interface) turning off the desktop interface GUI on bootup   obviously I will need to run X11 to load GUI programs - that's fine, but I'm looking to boot up into text mode and then just execute GUI programs as needed.  doing some tests on an ubuntu 12.04 virtualbox vm (hopefully not too different to debian 7?)...  $ ps aux | grep gdm # *blank* $ ps aux | grep kdm # *blank* $ ps aux | grep lightdm root      1225  0.0  0.0 270664  3500 ?        Ssl  12:43   0:00 lightdm root      1234  1.9  2.2 236564 112276 tty7    Ss+  12:43   0:01 /usr/bin/X :0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch -background none root      1382  0.0  0.0 156772  3572 ?        Sl   12:43   0:00 lightdm --session-child 12 19 $ sudo update-rc.d lightdm disable update-rc.d: warning: /etc/init.d/lightdm missing LSB information update-rc.d: see <http://wiki.debian.org/LSBInitScripts>  Disabling system startup links for /etc/init.d/lightdm ...  Removing any system startup links for /etc/init.d/lightdm ...    /etc/rc0.d/K20lightdm    /etc/rc1.d/K20lightdm    /etc/rc2.d/K80lightdm    /etc/rc3.d/K80lightdm    /etc/rc4.d/K80lightdm    /etc/rc5.d/K80lightdm    /etc/rc6.d/K20lightdm  Adding system startup for /etc/init.d/lightdm ...    /etc/rc0.d/K20lightdm -> ../init.d/lightdm    /etc/rc1.d/K20lightdm -> ../init.d/lightdm    /etc/rc6.d/K20lightdm -> ../init.d/lightdm    /etc/rc2.d/K80lightdm -> ../init.d/lightdm    /etc/rc3.d/K80lightdm -> ../init.d/lightdm    /etc/rc4.d/K80lightdm -> ../init.d/lightdm    /etc/rc5.d/K80lightdm -> ../init.d/lightdm $ sudo shutdown -r 0   and the gui is back up and running again after the reboot! so this clearly did not have the desird effect. however:  $ sudo /etc/init.d/lightdm stop   kills the gui. moving to tty2 (by pressing ctrl+alt+f2) and attempting to open firefox:  $ firefox & Error: no display specified   so attempting to specify a display:  $ export DISPLAY='0.0' $ firefox & Error: cannot open display: 0.0   and now i'm stuck. i can still get the gui back on ctrl+alt+f7 by entering the following into tty2:  $ sudo /etc/init.d/lightdm start   but this is not what i want. i just want to be able to run firefox without showing all the other desktop things such as the clock and the menu bars, etc.  trying out some of the things in ' answer  $ sudo /etc/init.d/lightdm stop $ echo "#!/bin/bash" > ~/.xinitrc $ echo "exec firefox" >> ~/.xinitrc $ xinit   this does exactly what i want :)


Prove that if $x$ is divisible by $4$, then $x=a^2-b^2$

If $x\in Z$ and divisible by $4$, then there are existing $a,b \in Z$ , so: $x=a^2-b^2$   I had been trying to figure out which way this should be solved.  First I found out that if $x=20$, then $a^2 = 6^2$ and $b^2 = 4^2$ (of course $20=36-16$ ).  now I'm not sure if i could place those examples as an answer, or I need to prove it with some "proving tricks". anyway, I thought about that $a^2 - b^2 = (a+b)(a-b)$ and $4\mid x$ is also $x=4k$ for some $k$ integer.


How to access the system tray using the keyboard?

Is there a way I can access the system tray items using the keyboard in Windows XP?


Possibly upgraded Windows 7 to Windows 10, but Win7 product key still works?

I wish to install Windows 7 on my mac. I had a copy of Win7 years ago, and I believe I allowed the automatic upgrade to Win10 to happen, on my current PC. Tonight I entered my old Win7 product key here:  ...and it validates, and allows me to download a Win7 disc image file.  Questions are... 1) Shouldn't that product key have expired for Win7? 2) Is there any scenario where my Win7 product key might be available to use (unassigned)?  Thanks for any advice in advance. I'm just trying to get a totally legal Win7 installation, wouldn't mind paying.


List out all files of drives having hidden files,non-permissible files and normal files in all platforms

I would like to list out files of all folders which are having all type of files like hidden,non-permissible and normal files etc. and it needs to be done all platforms like windows,linux and mac. I wrote a snippet in java  to figure out it but it is able to print only normal files.When the execution comes to non-permissible file it throws an exception stating NullPointerException and execution gets stopped.Is there any way to traverse through the folders with root permissions?.  public static void main(String[] args) throws IOException {              File[] drives;                 FileSystemView fsv = FileSystemView.getFileSystemView();              // returns pathnames for files and directory                 drives = File.listRoots();               // for each pathname in pathname array                 if (drives != null && drives.length > 0) {                     for (File aDrive : drives) {                         System.out.println("Drive Letter: " + aDrive);                          listFilesAndFilesSubDirectories(aDrive.toString());                     }                 }           }          private static void listFilesAndFilesSubDirectories(String filePath) {             // TODO Auto-generated method stub             File directory = new File(filePath);             File[] fList = directory.listFiles();             for (File file : fList){                 if (file.isFile()){                     System.out.println(file.getAbsolutePath()+"\n**************************");                  } else if (file.isDirectory()){                     listFilesAndFilesSubDirectories(file.getAbsolutePath());                 }             }         }   and the exception it throws is below  Exception in thread "main" java.lang.NullPointerException     at com.dlp.Test.listFilesAndFilesSubDirectories(Test.java:35)     at com.dlp.Test.listFilesAndFilesSubDirectories(Test.java:40)     at com.dlp.Test.listFilesAndFilesSubDirectories(Test.java:40)     at com.dlp.Test.listFilesAndFilesSubDirectories(Test.java:40)     at com.dlp.Test.main(Test.java:24)   Kindly help me to overcome this issue. Thanks.


\begin{center}     \section*{\textcolor{blue}{Ukaaranta }}     \end{center}     \subsection*{Shabhu Harivat}     \addcontentsline{toc}{subsection}{shambhu harivat}  \begin{center}     \section*{\textcolor{blue}{Krostru Shabda}} \end{center}   I have a need to create something like this, however when I run this program, it gives error at the second \end{center}.  Funny but the same command works above. I did not do anything different, just copy pasted and changed the text. Similar commands elsewhere in the document work just fine. I have no clue why it's behaving like this.   Hit ? and R - enter and it gives the desired output but it's a pain to do that every time.


How to search comments for an exact quote?

I have tried searching for a statement (a quote) that is made in a comment, with zero results. For example,  if I search for comment "news in 1983",  which is an exact quote for my own comment,  I get zero results in search.  The comment I made is . In chat room,  it was suggested that I could use  to search for a statement (a quote) made in a comment. Also,  in chat, it was suggested that information contained in comments might be transient and perhaps information should not be relied upon (stored) in comments. So, since the information does exist,  is there a simple way to search comments? (I can see my own comments on the acitvity tab of my profile; I want to be able to search other users' comments.)


I was wondering what the python script to type in the Text Editor would look like if I wanted to key every other 5th frame of my timeline?? I've got a picture of my problem below if that helps! ALSO, what would the code look like if I wanted to delete every other 5th frame instead? Thank you for your time!


Earlier today, I opened up minecraft 1.9 on my PC with no problems and played on the server "cubecraft" with my brother.  Now when I try to click play in the launcher, it shows:  "Error: Could not find or load main class net.minecraft.client.main.Main Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release"  Then when I click play again, it opens minecraft but in 1.8.9.  Anyone know how to make it so it will launch 1.9?  Thanks in advance.


Implement an interface while calling a method (inline)

In Java, assuming that class A is an interface/abstract class, I can do the following:  callMethod(new A(){       public void myFunc(){      System.out.println("test");      } });   How can I achieve the same shortcut effect in C# without having to declare a class seperately  .  Thanks


I got a set of meta boxes on a custom post type. Two of them are simple input/text-type fields, that should have autocompleted input:   A) Another Custom Post Type B) Users   Now I have the problem that I need to somehow trigger the autocomplete event. So far I have this pretty simple definition:  jQuery( document ).ready( function ($)         {             $( '#some_id' ).autocomplete(             {                  minLength: 2                 ,source:    "<?php print 'SOME_STRING'; ?>"             } );         } );   which gives me the following answer in the console, when I enter "zz":      GET http:// localhost/wordpress/wp-admin/SOME_STRING?term=zz 404 (Not Found)   Point is that I need to run a query (as you can see above) and need to root the request for the source option/argument from autocomplete somehow to a php callback.  I hope someone can explain me how I'd get around this. Thanks (and merry christmas in case you read this :) !


Unable to install "google-chrome-stable_current_amd64.deb" pakage?

~$ sudo dpkg -i google-chrome-stable_current_amd64.deb   dpkg: error processing archive google-chrome-stable_current_amd64.deb (--install): package architecture (amd64) does not match system (i386) Errors were encountered while processing:  google-chrome-stable_current_amd64.deb   Also did:  ~$ sudo dpkg --install google-chrome-stable_current_amd64.deb    dpkg: error processing archive google-chrome-stable_current_amd64.deb (--install):  package architecture (amd64) does not match system (i386) Errors were encountered while processing:  google-chrome-stable_current_amd64.deb   And Also did:  ~$ wget https://dl-ssl.google.com/linux/direct/google-chrome-stable_current_i386.deb --2016-05-27 11:37:16--  https://dl-ssl.google.com/linux/direct/google-chrome-stable_current_i386.deb Resolving dl-ssl.google.com (dl-ssl.google.com)... 74.125.68.93, 74.125.68.91, 74.125.68.136, ... Connecting to dl-ssl.google.com (dl-ssl.google.com)|74.125.68.93|:443... connected. HTTP request sent, awaiting response... 404 Not Found 2016-05-27 11:37:16 ERROR 404: Not Found.   What is the exact issue? is anyone there to help me out!!!  Note: i386 package is not available anymore,anyone there to help me out regarding this issue. Sometimes Ubuntu sounds frustrated, what to do with these kinds of issue.  Used few links to troubleshoot but not resolving with those:


Don't Know Version Of Ubuntu To Use On Vista32

Don't know what version of Ubuntu to download for Windows Vista 32 based desktop computer. I have previously downloaded 16.04.5 version, however, don't see it on list of alternative Ubuntu versions now.


How to generate a uniform random variable from [1,7] if given a uniform[1,5] RV generator?

I saw this as a question on  and I've seen similar questions elsewhere. Can someone explain the intuition of how to solve a problem like this? There are two scenarios   The uniform RVs in question are discrete   The uniform RVs in question are continuous   For the continuous case, my intuition is: say $X\sim Uniform[1,5] $, then $y = \frac{x-1}{5-1}*(7-1)+1\sim Uniform[1,7]$  Not sure if this is right. And not sure how to do the discrete case.


What ultimates can be damage boosted by Mercy?  We already know that , but are there other ultimates that can be damage boosted by Mercy? Can all ultimates be damage boosted by Mercy?


Is there any way of making Ctrl+f in Chrome use the selected text, as per Firefox?

One thing that's really bugged me since switching to Chrome is that Ctrl + F behaves slightly differently from Firefox.  In Firefox, if you have text highlighted and hit Ctrl + F, it'll start finding with that text.  Is there any way of getting Chrome to do this?


installing tp link tl-wn822n on ubuntu 18.04

okay so im having some issues. im very new to linux at this point ive only used it for about a day. and i bought a tp link wifi adapter for better internet. while ubuntu seems to notice it and connect through it, im having a lot of trouble downloading and installing drivers. the guide they give seems to have incomplete commands for me to follow along with in terminal and the only drivers im getting are a folder with some text files and code. i was kind of following it until it told me to compile the drivers by going into the driver directory. i don't know were whats installing to. please i dont want to bother people but im totally lost and i don't want to feel like i just wasted 30 dollars on a hunk of broken plastic. and so far ive only seen threads about it on ubuntu 14 and 16.   also im very sorry for not giving you the wireless info script. terminal keeps telling me its unable to resolve host adress, this is also not a connection problem its a speed problem. installing the drivers as ive been told dont work. i get a bunch of error messages. when installing things like sudo apt-get install rtl8192cu-dkms terminal tells me it is unable to locate the package. there's supposed to be a chip.ko file in the directory but i dont see any chip.ko file or any new file names from what comes in the base download.  edit: the kernal version for ubuntu 18 is too new to work with this device.  please stop flagging this as a duplicate when the threads talking about this device do not address any of these issues.


I generate a mysql query via $_GET in PHP via concatenation assignment (.=). take a look:  $sql='SELECT * FROM table WHERE '; $sql.='ID='.$_GET['id'].''; $query=$PDO->prepare($sql);   how can i prevent mysql injection? i use bind values for direct queries but in this case,i don't have any idea how i should write my code to be safe enough. note that i use PHP 7 and i can't use mysql_real_escape_string(); as it's not available in PHP7.


When someone answers my question correctly and completely, what should I do?

Good manners says to say thank you when somebody answers your question. E-mail load control suggests not replying "thanks" because it's too much e-mail and people would rather have less. I'm not sure what StackOverflow expects. I got an e-mail notification today "3 Questions Have 1 Answer - Stack Overflow". When I clicked, only 1 of the answers was new to me. That one was a short, correct, and complete answer. :-)  I cannot vote it up because I don't have reputation.  Should I comment "thanks" on it?


Can Windows use a Linux shell instead of cmd?

I was wondering if it is somehow technologically possible for Windows to add some sort of Linux interface?  I think it would win over many programmers to develop on Windows.  Any ideas on this?


Cannot send only the filled input with axios on Reactjs

I have a code in reactjs which sends datas entered in a form using axios. And it works fine. You have below a code with the same architecture as mine.  export default class FormPage extends Component {      constructor(props) {       super(props);       this.state = initialState;       this.handleSubmit = this.handleSubmit.bind(this);       this.handleChange = this.handleChange.bind(this);      }       showMessage = (bool) => {       setTimeout(() => {        this.setState({         showMessage: true        });       }, 2000);      if (this.state.Showing) return;       this.setState({ Show: true, Showing: true });      setTimeout(() => {       this.setState({ Show: false, Showing: false });       }, 2000);      }       showMessageFalse = (bool) => {       this.setState({        showMessage: false        });       this.setState(initialState);      }       handleChange(event) {       const InputValue = event.target.value;       const stateField = event.target.name;       this.setState({         [stateField]: InputValue,       });       console.log(this.state);      }       async handleSubmit(event) {       this.setState({ loading: true });        setTimeout(() => {        this.setState({ loading: false });       }, 2000);       event.preventDefault();      const {        name_contact='',      } = this.state;       await axios.post(       ' MY_endpoint API',       {         name: `${name_contact}`);       }    render() {      const { loading } = this.state;      return (
          <ExpansionPanel title="Contacts" expandedTitle="Contacts" titleIcon="done_all" >
           <Container>
Detail du contact

               <Row align="center">                 <Col id= "color" sm={3}>  Name: </Col> <Col id= "color" sm={3}><Input placeholder="Nom complet" type="string" name="name_contact" value={this.state.name_contact} onChange={this.handleChange}/>
 </Col>               </Row>           </Container>
         </ExpansionPanel>        <form onSubmit={this.handleSubmit}>

<Button type="submit" value="Show" onClick={this.showMessageFalse.bind(null, true)} > Update </Button>
       </form>
     );   } }   But on my real code, I have a lot of datas to send because i have a lot of field. I would like to know if it was possible to send with this architecture, only the fields where a variable is in.  event.preventDefault();  const {    name_contact='',  } = this.state;   await axios.post(   ' MY_endpoint API',   {     name: `${name_contact}`);   }   i want for example, if my name_contact is not filled and I click on "Update", it does not send the name_contact field, but if it is filled, it sends it.  If it’s possible to do something like that, what am I supposed to use? Thanks


Does there exist an integer $x$ satisfying the following congruences?   $$10x = 1 \pmod {21} \\ 5x = 2 \pmod 6 \\ 4x = 1 \pmod 7$$      I was trying to do this by following way but failed to get an answer:-  At first rewrite the equation as: $$\begin{align}10x = 1 \pmod 3 \tag{1} \\    10x = 1 \pmod 7 \tag{2} \\    5x = 2 \pmod 2 \tag{3} \\   5x = 2 \pmod 3 \tag{4} \\      4x = 1 \pmod 7 \tag{5}\end{align}$$ But equation $(1)$ and $(4)$, and $(2)$ and $(5)$ are same. So it becomes as: $$10x = 1 \pmod 3 \\    10x = 1 \pmod 7 \\ 5x = 2 \pmod 2$$  and now try to solve this by Chinese Remainder Theorem. But the answer does not satisfy. Is my process wrong?


What is the difference between alignat and align environment and how to use them correctly?

When I was reading some textbooks about LaTeX, I found that there is some environment causing a lot of confusion: align and alignat. As I have mentioned, I can't distinguish these two environment because I think they   have the same function: Choose the position of alignment. The only difference I can see is that alignat allows us to determine the horizontal space and the maximun number of columns.  Moreover, I can not know how I can distinguish between this column and another column in alignat environment. Is && the note to distinguish them?


If I understand correctly, particle is something at a point of time, where you can tell it's position, but what if particle is moving, then you can tell it's speed.  From what I understand wave is NOT particle moving, but rather, a phase the particle is in. The particle was agitated and turned into a wave.  So, what do you call a moving particle if it's not a wave? Could the particle's movement be represented as a wave because particle has tendencies to be at certain places at certain times?


Software Center not Opening at all Error

When I open software from menu, it says "cannot open software database. Please reinstall the software-center package. When I write software-center on terminal, such error comes:  2014-05-28 09:11:20,584 - softwarecenter.ui.gtk3.app - INFO - setting up proxy 'None' 2014-05-28 09:11:20,593 - softwarecenter.ui.gtk3.app - ERROR - xapian open failed Traceback (most recent call last): File "/usr/share/software-center/softwarecenter/ui/gtk3/app.py", line 302, in __init__ if self.db.schema_version() != DB_SCHEMA_VERSION: File "/usr/share/software-center/softwarecenter/db/database.py", line 289, in schema_version return self.xapiandb.get_metadata("db-schema-version") File "/usr/share/software-center/softwarecenter/db/database.py", line 177, in xapiandb self._db_per_thread[thread_name] = self._get_new_xapiandb() File "/usr/share/software-center/softwarecenter/db/database.py", line 190, in _get_new_xapiandb xapiandb = xapian.Database(self._db_pathname) File "/usr/lib/python2.7/dist-packages/xapian/__init__.py", line 3667, in __init__ _xapian.Database_swiginit(self,_xapian.new_Database(*args)) DatabaseCorruptError: /var/cache/software-center/xapian/iamchert: Chert version file should be 28 bytes, actually 0   Now, when I write command sudo apt-get remove software-center  dpkg: error: corrupt info database format file '/var/lib/dpkg/info/format' E: Sub-process /usr/bin/dpkg returned an error code (2)   I had ubuntu before but it kind of got corrupted. Now, I have freshly reinstalled it and even at start, software center is not opening and this error comes.  I hope you have a solution. Thanks.


Is the (electrostatic) interaction energy always positive, or can it be negative?

We know that work done $W$ to assemble $q_1$,...,$q_n$ point charges is $$ W = \frac{1}{2} \sum_{i = 1}^{n} q_i V(r_i) \tag{I} $$ Now for the continous charge distribution with charge density $k$, we find $W$ by integrating over appropriate region, $$ W = \frac{1}{2}\int \rho V \, d\tau \tag{II} $$ Now using Gauss law , $\rho = \epsilon_{0} \nabla\cdot\vec{E})$ and vector calculus identities we find that $$ W = \frac{\epsilon_0}{2} \int_{\text{all space}} E^2 \, d\tau  \tag{III} $$ Now my doubt is this expression is always positive while the former expression (in case of discrete case) could take negative values as well. How this is possible even though continous case is considered as limit of finite cases?


Use "Try Ubuntu" without clicking on the option

I want to use temporary Xubuntu without installing on the PC. Also, I want to keep my system empty after removing the bootable USB drive. It will be great if you could suggest how the below might be achieved:   Try Ubuntu option should be automatically selected. Ubuntu OS should be run temporarily when power is on (without selecting any option manually). As soon as USB is removed the system should stay empty again.


Blender Importing . How to reapply all textures and maps to Luxox18 import models?

Im looking for help to reapply textures and maps to models from r6 siege game  in Cycles Render. I downloaded his imported models from his Devian (link below) and i imported .obj file , but i have no idea how to reapply specular,normal and detailed normal maps. Only what i've got is diffuse texture but no clue how to reapply other textures :  Here's the link to the character im trying to use:   I hope someone can help me with this , because node setting is a painful and hard thing in blender :(  (ps): if someone had time to make whole node tree for this model i would be so glad for it , cause i want to use other models too :)


I've used Ubuntu 14.04 for a bit and still know nothing about it. I can never find anything I understand about how to completely get rid of ubuntu so I can use windows 7. When I try to install the disk, all I get is error code 0x80070490 Windows setup can not find a place to store temporary installation files. To install windows, make sure that a partition on your boot disk has at least 692 MB of free space. I was hoping as a person who knows nothing about this OS could help me.


Where should I ask questions about technology recommendations?

I am looking for an appropriate Stack Exchange site to ask a technology recommendation question.  My question would be along the lines of:     I am looking for a Microsoft Azure storage solution to save unstructured data that comes from a web crawler like html code and images.


The question said:   Use the Euclidean Algorithm to find gcd $(1207,569)$ and write $(1207,569)$ as an integer linear combination of $1207$ and $569$  I proceeded as follows:   $$ 12007 = 569(2) +69$$  $$569 = 69(8) +17$$  $$69 = 17(4) +1$$  $$17 = 1(17) + 0$$  Thus the gcd = 1   The part I am having problems with is how calculate and write it was a linear combination. Can someone help?


How do I install Ubuntu and Windows on separate hard drives?

I just re-built my desktop. I have a brand new 2TB drive and I'm also re-using a 250GB drive with Windows XP installed. The problem is that the XP drive has a virus that was causing the computer (before the re-build) to reboot swiftly and unexpectedly after Windows starts.  I have yet to turn on my re-built computer!  I am currently not worried about losing the data on the XP drive. My desired end-result would be a re-image of XP on the 250GB drive and to install Ubuntu 12.04 on the new 2TB drive.   What order should I do things in order to get to that point? I need to (in some order):   See that my new setup can POST Configure the new hardware Re-image the 250GB drive with Windows XP Install Ubuntu 12.04 on the 2TB drive   ... without having the virus cause any more problems. Understanding the reasoning behind the process would be very helpful.  Thanks!


What is "my guy syndrome" and how do I handle it?

I've been reading forum posts and blogs who mention "my guy" syndrome as a specific type of difficult player, but I can't seem to find a solid definition for the term. Can someone explain this particular kind of problem player to me? How do you deal with this kind of problem?


Do the Borg exist in the Mirror Universe? If so, have they encountered the Empire or Alliance?  Or, have the Prime Borg Ever crossed into the Mirror Universe?  Otherwise, how is it that the Borg could be unaware of Alternate Universes in which they could invade with ease or at the least ally themselves with more Borg?


When using the virtual ground concept to analyze op-amp circuits, the sign of the inputs (inverting/noninverting) don't seem to matter. Is this also the case in actual circuits? I also tried to simulate a circuit in the everycircuit android app and I can't see any effect of interchanging the inputs on the output.    I tried solving for the voltage gain \$\frac{V_o}{V_1}=\frac{A_dV_i}{V_1}\$ by finding the limit of the ratio as \$A_d\$ approaches infinity. I got the same expression for both circuits, which is \$-\frac{R_f}{R_1}\$.


Deducing an answer on whether n is odd or even

How can I deduce the following:  \begin{align*} F_{n}{^2} -  F_{n+1}* F_{n-1}= +1 \text{ or} -1 \end{align*}  Just from knowing if $n$ is even or odd?  I have worked out by hand that if $n$ is odd, the result is +1 and if $n$ is even the result is -1, but I need to know how to work it out without just doing it.  I was given this beforehand and it may or may not be related:  \begin{align*} F_{n+1}{^2} -  F_{n+2}* F_{n}= F_{n+1}*F_{n-1}-F_{n}{^2} \end{align*}


What are the benefits of cycling gloves?

So cycling gloves? I don't see how this can change my experience of riding bicycles.  Someone please explain what benefits I get from them. Maybe I would buy some if the benefits are good enough.


how to implement class functions in a hpp file?

i have a file called arra2d.h that contains the definions of the Array2D class as shown below:  namespace math {  template <typename T> class Array2D { protected:     std::vector<T> buffer;     unsigned int width, height; public:     const unsigned int getWidth() const;     const unsigned int getHeight() const;     T* getRawDataPtr();     void setData(const T* const& data_ptr);     T& operator () (unsigned int x, unsigned int y);     Array2D(unsigned int width = 0, unsigned int height = 0, const T* data_ptr = 0);     Array2D(const Array2D& src);     ~Array2D();     Array2D& operator = (const Array2D& right); }; } //namespace math  /#include array2d.hpp     I want to implement all the functions in another file called array2d.hpp, how whould you do that? how the functions definions would look like? Thank you.


At what times do the bosses spawn in Junkenstein's Revenge?

The bosses all seem to spawn at regular intervals throughout the match, however I always forget to look at the times when they do spawn. Is there a set time that each boss spawns in a match, or a set time between spawns?


If photons have no mass, how they create electrons and positrons on colliding?

How are electrons and positrons formed when photons collide, as photons are massless?


After installing 14.04 LTS on a HP Probook 6560b  my wifi does not work,  on the web I found this Ask Ubuntu question and proceeded as follows :  lspci -vnn | grep Network  00:19.0 Ethernet controller [0200]: Intel Corporation 82579V Gigabit Network Connection [8086:1503] (rev 04) 25:00.0 Network controller [0280]: Broadcom Corporation BCM4313 802.11bgn Wireless Network Adapter [14e4:4727] (rev 01)  iwconfig  eth0      no wireless extensions.  wlan0     IEEE 802.11abg  ESSID:off/any             Mode:Managed  Access Point: Not-Associated              Retry short limit:7   RTS thr:off   Fragment thr:off           Power Management:off  lo        no wireless extensions.  lspci -nn  -d 14e4: 25:00.0 Network controller [0280]: Broadcom Corporation BCM4313 802.11bgn Wireless Network Adapter [14e4:4727] (rev 01)   Looking in the Broadcomm Wireless Table I found bcmwl-source as possible solution and continued  sudo update-pciids  sudo add-apt-repository restricted  sudo apt-get update  sudo apt-get install linux-generic   sudo apt-get install linuxmint-keyring   sudo apt-get install bcmwl-kernelsource  E: Unable to locate package bcmwl-kernelsource


unreadable text even after installing urdu font

I have downloaded and installed  on ubuntu 16.04. I have no idea why gedit font preference dialog displays blocks of squares as shown in the picture below. I have already copied fonts to /usr/share/fonts and ran sudo fc-cache -fv.    Note: I have already tried the changing file permission as suggested in  but it doesn't fix the problem.  Update: output of fc-list | grep i noto grep: noto: No such file or directory


For a set function on a semi-ring, does additive imply finitely additive?

Prove or disprove: If $\mu$ is an additive (i.e., 2-additive) set function on a semi-ring $S$, then $\mu$ is finitely additive (i.e., n-additive for every finite $n$) on $S$.   If $S$ is a ring, this is true by induction. For a semi-ring, the naive induction proof fails because if $A_1,\ldots,A_n$ are disjoint sets in $S$ and if $\bigcup_{i=1}^{n} A_i$ is in $S$, it does NOT generally follow that $\bigcup_{i=1}^{n-1} A_i$ is in $S$.  Every measure theory book I've looked at works with finitely additive sets functions on semi-rings, never just additive set functions on semi-rings. So maybe additive doesn't imply finite additive on a semi-ring.


What is the normal operating temperature for the MacBook (2016 generation)?

My MacBook sometimes becomes hot when I'm using it, and I want to make sure it is operating within normal temperature. What's the operating temperature for the MacBook that was released in May 2016 normally?


In java 8 lambda expression，i find a strange problem

public class TransTitle { public static String transTitle(String s) {     String[] split = s.split(" |\\.");     String res = Arrays.stream(split).filter(t -> !t.isEmpty()).collect(Collectors.joining("_")) + ".java";     String res2 = Arrays.stream(split).filter(t ->( t!="")).collect(Collectors.joining("_")) + ".java";     System.out.println(res);     System.out.println(res2);     return res; }  public static void main(String[] args) {     String ans = TransTitle.transTitle("215. Kth");     // System.out.println(ans); }  } The res and res2 is not same.They are 215_Kth.java and 215__Kth.java. I cant understand why. Can anyone explain it to me?


Book about a man studying aliens. Modifies his body to get closer to them and ultimately doesn't see himself as human anymore

I am looking to recall a book I read 20 years ago.     A journalist/anthropologist man (human) studies aliens.  He uses various techniques to get close to hard to study aliens. He starts to use tech to modify his body so he can get closer to the aliens or study them better. By the end of the book his body is so modified he no longer sees himself as human, and indeed has more or less forgotten his human roots. It was in English. "by the end of the book" he was modified and no longer saw himself as human (ergo... nothing happened after that, that was the end of the book). His motivations are (journalist/anthropologist) he was there to simply study the aliens (there may have side stuff to that plot, I forget). How he modified himself (to the best of my memory) = technology. (surgery, and part grafting and other I do not recall). What he learned from the aliens (their physiology and culture). Where was he studying them? = On their home worlds. How did he get access to them? = I don't fully recall (space flight seemed to be a thing, but unimportant to the plot). Was their presence known to other humans? (Sorta, kinda like Jane Goodall, he would go find new species and study them, I don't recall how the rest of the books universe heard of the aliens.)  It was a standalone book, not a part of a series. It was fairly short, maybe... 350 pages or so. Each chapter showed the protagonist's mind having slightly more trouble with human concepts or speech patters.  It is somewhat like reading the protagonists' 'journal'.


If $\sum a_n<\infty$ then $\exists (b_n)$

If $\displaystyle\sum_{n=1}^\infty a_n<\infty$ and $a_n>0$, then $\exists (b_n)$ such that $b_n\geq1$, $b_n\to+\infty$ and $\displaystyle\sum_{n=1}^\infty a_nb_n<\infty$.


How to upload multiple files in a custom form with Form API

I have a custom form created with Form API. In this form, I have a file field with the type managed_file $form['fichiers_justificatif'] = array(     '#type' => 'managed_file',     '#title' => 'justificatifs',     '#upload_validators' => $validators,     '#upload_location' => 'private://justificatifs',     '#multiple' => TRUE,     '#description' => 'types de fichier autorisés : png gif jpg jpeg pdf doc', );  It works well, I can upload a file, get its name and url. But I don’t know how to have a multiple file upload like the one with see in admin or with the webform module. Example of webform module which handle multiple files upload :  I’ve tried to add '#multiple' => TRUE, but I have an Ajax error after  the 2nd file is submitted. I’ve tried this module  but still have AJAX issue. I’ve tried dropzone.js but I'm not satisfied with it since it adds an other interface for file (different from the one in admin). User are confused there is an other interface for files. What could be the better way to handle this ?


Is it ok to answer based someone's older answer on SE?

Possible Duplicate:             This question will probably be closed in a few minutes. It is a duplicate but I couldn't find the question using with meta search.  Anyway, , . In this case, is vote to close the new question as a possible dublicate not the best choice? Looks to me a little bit not ethical.


Proving or disproving a statement about continuity and limits

So I've spent a few hours trying to find a counter example to this statement, and then gave up and spent additional few hours trying to prove it and Ive finally became frustrated with this problem. :) I seem to get stuck in the scenario where $f\left(\frac{1}{x}\right)$ < 0, I'm just unable to find an epsilon that will satisfy all the conditions.. plus I'm not even sure if the statement is true or false anymore..


Change language of error messages in ASP.NET

I developing ASP.NET application using a Swedish version of Windows XP and Visual studio Professional. When ever i get an error aka. "yellow screen of death" the error message is in swedish, making it a bit hard to search for info about it.  How can i change what language the error messages in ASP.NET uses?  I have no language pack installed for the .net framework. I am however running an english windows xp with a swedish language interface pack on it.  I also have this in my web.config:  <system.web>    <globalization uiCulture="en-US" /> </system.web>


How to run a root/admin shell in Terminal?

How can I run a shell as Admin in Terminal if Im logged in as User with standard privileges? I know the passwords for user and admin account


A teacher wants to randomly form two teams of 5 students from a group     of 5 girls and 5 boys for a sports activity. Two of the girls, Ann and     Alice, are selected as team leaders. The ten students are seated at a round table of 10. Find the probability that no two of the remaining     3 girls are next to each other given that Ann and Alice are not seated     together.      So we see that the conditional probability is $$P(A|B) = \dfrac{P(A \cap B)}{P(B)}$$  We define $B$ as the event that Ann and Alice are not seated together. Which is $$\dfrac{7! \times {8 \choose 2} \times 2!}{9!} = \dfrac{7}{9}$$  However i have trouble computing out the probability of $A  \cap B$. So i fix the 5 guys as $4!$ . And i insert in Ann and Alice in their interval which is ${5 \choose 2} \times 2!$. Lastly i insert the 3 remaining girls into the rest of the intervals? Which is ${7 \choose 3} \times 3!$ ; Apparently this is wrong logic, can anyone help?  And it will be helpful that the given answer is $\frac{85}{196}$. Note this is not a duplicate question, it is asking a very different question.


I am reading the Lord of the Rings again, and this quote by Saruman     'Later!' he cried, and his voice rose to a scream. 'Later! Yes, when you also have the Keys of Barad-dûr itself, I suppose; and the crowns of seven kings. and the rods of the Five Wizards, and have purchased yourself a pair of boots many sizes larger than those that you wear now.   caught my attention. A while ago, someone was telling me that there were five wizards: Saruman the White, Gandalf the Grey, Radagast the brown, and two others, the Blue Wizards. It seemed from the following conversation that nothing was known about them.  Who are the other two, the Blue Wizards?


problem to execute overlay analysis for multiple layer in python script

I wrote the code to get a series of weighted overly result for multiple layer in python script. But it showed some error massage. What can be the solution?  import arcpy input1 = "D:\work\helath.gdb\Reclass_Heal1" a = arcpy.da.SearchCursor (input1, 'Value') input2 = "D:\work\helath.gdb\Reclass_Heal2" b = arcpy.da.SearchCursor (input2, 'Value') input3 = "D:\work\edu.gdb\Reclass_Educ1" c = arcpy.da.SearchCursor (input3, 'Value') input4 = "D:\work\edu.gdb\Reclass_Educ2" e = arcpy.da.SearchCursor (input4, 'Value') output = r"C:\Users\d\Documents\ArcGIS\Default1.gdb" input5 = [input1, input2] input6 = [input2, input4] value1 = [a, b] value2 = [c, e] for i in range(0,len(input5)):         for j in range(0,len(input6)):                 for k in value1:                         for l in value2:                                                       weighted = output + "\\didar_"+ str(k)                                 arcpy.gp.WeightedOverlay_sa("('input5[i]' 50 'value1'(value[k] 1;value[k] 2;value[k] 3; value[k] 4; value[k] 5; value[k] 6; value[k] 7; value[k] 8; value[k] 9;NODATA NODATA); 'input6[j]' 50 'value2' (value[l] 1; value[l] 2; value[l] 3; value[l] 4; value[l] 5; value[l] 6; value[l] 7; value[l] 8; value[l] 9; NODATA NODATA);1 9 1", weighted)   The error massage is:     Runtime error  Traceback (most recent call last):   File "",   line 20, in    File "c:\program files   (x86)\arcgis\desktop10.3\arcpy\arcpy\geoprocessing_base.py", line   504, in      return lambda *args: val(*gp_fixargs(args, True))   ExecuteError: ERROR 999999: Error executing function. Failed to   execute (WeightedOverlay).   What is the meaning of ERROR 999999 and how this can be solved?


I came up with an idea that I want a Court to grant. I am not sure if I should refer to it as a "proposition" or "proposal" and I feel like the two can be used interchangeably. This is how I would say it in Court "Here's a proposition that I came up with that I think the Court should consider" or "Here's a proposal that I came up with that I think the Court should consider." Which one is more appropriate?


Are there any documents one needs to provide at the UK Border? (Standard Visitor)

I'm from the Philippines, and 've been granted a (visitor) visa to UK. I will stay there for a month. My relative, who lives there, will sponsor my travel expenses and accommodation.   Are there any documents needed to provide at the UK Border, aside from passport (e.g travel insurance, medical insurance, the documents provided during visa application)? Do I need to show money? I'll bring money, but most of my travel expenses will be shouldered by my relative. I've read some posts that some were refused entry at UK Border due to insufficient funds to cover trip.They were paying for themselves, and I have a different case so I can't compare my situation to theirs. I'm planning to bring the financial documents my relative gave me during my visa application, and show return booked ticket (just in case they ask!).


Can a package overwrite the original commands in Latex?

An example:  Without the amsmath package:   The equation environment numbers the equation automatically. The align environment cannot be executed.   With the amsmath package:   align and equation work seamlessly in numbering equations: I can use equation to write my first two equations, and align to write my third equation, and Latex will still number them correctly.   My questions are:   Is the code for the command equation after loading the amsmath package still the same as it was before loading the package? Moreover, if this is the case, then, in general, can loading different packages cause conflicts? And how do we avoid it?


In 'A Silent Voice', what is the name of Shoya Ishida's "condition" when the 'X' appears on everybody's faces?

Does Shoya's "condition" actually have a name, or is it made up?


Is there a canonical way to set up a JS onHover event with the existing onmouseover, onmouseout and some kind of timers?  Or just any method to fire an arbitrary function if and only if user has hovered over element for certain amount of time.


Do enemy abilities level up at the same time as player abilities in Diablo 3?

I ask because I want to out level the enemies in some way when playing hardcore expert difficulty to avoid death (I am not an expert, but I play that way for fun), but i have noticed that while playing in groups that the enemies have abilities that they do not have when playing alone.  Someone told me that the enemies level with the player, and that as the player levels the abilities they learn can help to defeat the enemies, but I'm concerned that the enemies might get extra abilities too.  I'm level 9 hardcore.


Is it ok to to delete and repost a duplicate question?

I asked a question that has been marked as a duplicate. I read a lot of similar questions and explanations in advance but I couldn't find a solution. In the question that should answer my question the asker used a different (not working) approach. There is even an answer that would work for my case however I'd rather consider it as a workaround than a solution since I have seen examples using my approach.  So I would like your opinion in that case. Would it be ok to repost my question while explaining why other answers didn't help me? I edited my question but I think it's not getting any attention anymore. Naturally I will remove the old question.


mDNS (.local) not working on android Phone browser

I have set up MySite.local on raspberry pi. I can access MySite.local on laptop via WiFi. But not able to access on Android mobile browser(Chrome).  Please provide me a solution


Evaluate the limit of $\sum_{n=1}^{\infty}\frac{n^2}{n!}$

Evaluate the limit of:  $$\sum_{n=1}^{\infty}\frac{n^2}{n!}$$  Hints I am given:  1- The exponential series of type $\sum_{n=0}^{\infty}\frac{x^n}{n!}$ converge into $e^x$ for any $x\in R$  2- Any series of type $\sum_{n=0}^{\infty}\frac{P(n)}{n!}x^n$ , being $P(n)$ a polynomial of any level and $\forall x\in R$, it also converges.  3- $\sum_{n=1}^{\infty}a_{n-1}=\sum_{n=0}^{\infty}a_{n}$  What is the limit of this series?  According to the hints it is convergent, this is what I tried so far:  $\sum_{n=1}^{\infty}\frac{n^2}{n!}=\sum_{n=1}^{\infty}\frac{n^2}{n(n-1)!}=\sum_{n=1}^{\infty}\frac{n}{(n-1)!}$  Applying hint 3:  $\sum_{n=0}^{\infty}\frac{n+1}{n!}$  Split the series in 2:  $\sum_{n=0}^{\infty}\frac{n+1}{n!}=\sum_{n=0}^{\infty}\frac{n}{n!}+\sum_{n=0}^{\infty}\frac{1}{n!}$  Applying hint 1, with $x=1$ to the second part:  $\sum_{n=0}^{\infty}\frac{n+1}{n!}=e+\sum_{n=0}^{\infty}\frac{n}{n!}$  I dont know how to keep going, I know that the series $\sum_{n=0}^{\infty}\frac{n}{n!}$ converges into $e$ therefore the result of the whole series is 2 times $e$ but I dont understand why!


"who" or "whom" as a relative pronoun - not always so easy

I take it for granted we all know when to use the relative pronouns "who" and "whom".  And we also know that since the early nineteenth century there has been a steady decline in the use of "whom" especially in speech, and people tend to use "who" most of the times. Let's assume, however, that someone is writing a formal letter and that he prefers to use "whom" whenever possible.  He got stuck on these two sentences:        They chose the candidate who they thought would have the best initiative.   They chose the candidate whom they thought would have the best initiative.      If "whom" is the right relative, he will have no problem using "who" because it's also acceptable.  But if the right relative is "who", then it would be a mistake to use whom. My question is: "In the above sentence, is the relative pronoun the object of "thought" or is it the subject of "would have".    PS I'm aware that some scholars advise against asking questions about "whom" because "who" is the relative pronoun most people use. But I understand it is not obsolete and is still used by a few people, in formal speech, in documents, etc, especially in the UK.


Why is there a zero-width non-joiner and a zero-width space in my comment?

In …      I did not  type that. Where does it come from?


Unable to use my wifi adapter in ubuntu 19.04

Machine:  (AMD Ryzen 5 3550H, 16GB, AMD Radeon RX 560X) ().  I first live booted to see whether Ubuntu 19.04 ran OK. I realised my  WiFi adapter did not appear, but when I used the lspci command, the name of my wifi adapter was present.   ubuntu@ubuntu:~$ lspci 00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 15d0 00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Device 15d1 00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h(Models 00h-0fh) PCIe Dummy Host Bridge 00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 15d3 00:01.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 15d3 00:01.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 15d3 00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge 00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 15db 00:08.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 15dc 00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 61) 00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51) 00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 15e8 00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 15e9 00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 15ea 00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 15eb 00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 15ec 00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 15ed   00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 15ee  00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 15ef 01:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] `Baffin [Radeon RX 460/560D / Pro 450/455/460/555/560] (rev e5) **02:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8821CE `802.11ac PCIe Wireless Network Adapter** 03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. `RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15) 04:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Picasso (rev c2) 04:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Device 15de 04:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Device 15df 04:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Device 15e0 04:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Device 15e1 04:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Device 15e3 05:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 61)   I have to constantly plug in an external WiFi adapter to connect this machine to the internet. This consumes an entire USB port on my I/O.


Examples of creating a new animal species by humans

So recently, I was arguing with my friend who happens to be creationist. As he does not believe in the "theory of evolution" I asked him how he can explain such a big diversity in the dog Canis familiaris sppecies. (The example taken from Charles Darwin's on the Origin of Species saying that humans made to dogs what mother nature has done to every species)  My friend replied something like:     Well, having chihuahuas or huskies is one thing but, getting a tetrapod from a fish is a something which can never happen.   I realized that indeed the Darwin's example isn't perfect... Even though, due to size chihuahuas and hounds can't copulate efficiently their semens and ovaries can start a new life.  I can't give a counterexample of a species which was bred artificially by human for so long in a new direction that a new species (whose specimens by definition were not able to reproduce with the specimens of the base species) was created.   It's not that I am becoming creationist... but is there any exception from that rule for any artificially bred animal species?   [Edit] This question has nothing to do with  I am strictly asking about examples of an artificially bred animal species which got bred into two species.  [Edit 2] Also to be exact, I am not interesed in specimens that can't reproduce due to various "external" circumstances like environment's temperature or size (chihuahuas&hound example). I am interested in specimens which come from the same base species and can't reproduce even with the help of in vitro fertilization (I know this is not exactly the definition of species). I just want to avoid getting answer similar to .


Determine the Galois group of the polynomial $(x^3-2)(x^3-3)(x^2-2)$ over $\mathbb{Q}(\sqrt {-3})$.   I tried to decompose the splitting field into a tower, but then it is very complicated in each step and since the degree is large, I cannot determine the group by guessing. It seems to me that Kummer theory might work, but there are $2$-degree and $3$-degree factors.


I have two laptops, a Dell XPS running 64-bit and HP Pavilion 32-bit and I want to replace the Dell hard drive with the hard drive in the HP temporarily because my Dell laptop became very slow and I want to test if the problem is with the hard drive or something else. The question is: Can I do that without losing data in the two hard drives? I know that maybe data on C partitions will be deleted and that's OK, but will the rest of the data will be lost or not?


I have an excel files of coordinates. There's a lot of coordinates so slowly plot them one by one is not practical? Is there anyway to create a curve though them automatically?  Thanks lots and really appreciate your help!!


Let $m \in \mathbb{Z^+} , n \in \mathbb{Z^+}$ and let $d=\gcd(m,n)$. Prove that $m\mathbb{Z}+n\mathbb{Z}=d\mathbb{Z}$

Let $m \in \mathbb{Z^+} , n \in \mathbb{Z^+}$ and let $d=\gcd(m,n)$. Prove that  $$ m\mathbb{Z}+n\mathbb{Z}=d\mathbb{Z}. $$  My attempt is use inclusion to show. Let $a \in m\mathbb{Z}+n\mathbb{Z}$. Then we have $a=ms+nt$. Since $d=\gcd(m,n)$, by Bézout's Lemma, we have $d=ms+nt$ for some integers $s$, $n$. Hence, we have $a=ms+nt=d \in d\mathbb{Z}$. Let $a \in d \mathbb{Z}$. Then we have $a=db=msb+ntb \in m\mathbb{Z}+n\mathbb{Z}$. Is my proof valid?  Remark: the following is the part 2 of the question. Prove that $m\mathbb{Z}\cap n\mathbb{Z}=\frac{mn}{d}\mathbb{Z}$. This one I have no idea how to start


If $f^3=\rm id$ then it is identity function

Let $f:\mathbb{R}\to \mathbb{R}$ be a continuous function such that $f^3(x)=f\circ f\circ f(x)=x$ for all $x$.  How can I prove $f$ is the identity function?


Is there a shortcut in excel that will expand the column width to show the entire column header

Is there a shortcut in excel that will expand all the column width(s) to show the entire column header as well as complete column data?  Now I need to go to each and every column in the excel sheet and double click on the border between every column and expand it completely to increase the column width to show the complete text in that column. I want to get this done in one click per excel worksheet


$\lim_{n\to\infty}n\cdot(\sqrt[n]{2011}-1)$  I rewrote it like this: $\lim_{n \to \infty }\frac{2011^{\frac{1}{n}}-1}{\frac{1}{n}}$, but don't know how to proceed.  Any ideass? Thanks!


Hello i want to do a text with where is changing number . but when its big number you cant read it . so i want to make it every 3 digits will space.  For example 32874123 will be 32 874 123 . Thank you . Ive seen it there:  but its in javascript .  I have trying to do it with lenght or something but it didnt work for me .  Thank you for all your help .


How to display particular workbook of Excel file on TV and no matter what i do on the computer the TV displays the workbook

I have a computer and a TV.I want to display particular workbook of excel file on the TV ( monitor 2 ) and when I work on my computer monitor ( Monitor 1 ) nothing happens on Monitor 2.I need that because I have linked cells from Workbook 1 and Workbook 2. And lets say I work on Workbook 1, so when I change the linked cells in Workbook 1 they change automatically on Workbook 2 that I need to be displayed on the TV.So no matter what I do on my computer the TV always displays Workbook 2.  I'm using Excel 2003 and Windows XP (with NVidia graphics)


What is the difference between "in" and "for" in "hasn't eaten in five months"?

Now the cubs are growing, fed on mom's milk, but mom herself hasn't eaten in five months, and is getting thinner by the day.   What does in mean here, and how would the meaning of that piece change if for were used?


This is not a new problem on stackoverflow, but I've tried everything without success.  I have a "popup" created with two divs. The parent ist the background and the child is the popup content. I want to hide the popup when the user clicks on the background (the parent).  It sounds extremly easy also for me but I can't achieve that. This is my code and what I tried (it works exacly at the opposite way as I want):    let content = document.querySelector('.popup-content'); let popup = document.querySelector('.popup'); let button = document.querySelector('button');  button.onclick = () => {  popup.style.display = 'block';  content.onclick = e => {    if(e.target !== this) {      popup.style.display = 'none';     }   } } .popup {   position: fixed;   z-index: 1;   left: 0;   top: 0;   width: 100%;   height: 100%;   overflow: hidden;   background-color: rgb(0,0,0);   background-color: rgba(0,0,0,0.4);   display: none; }  .popup-content {   background-color: #fff;   margin: 10% auto;   padding: 20px;   border: 1px solid #888;   width: 25%;   min-width: 470px;   border-radius: 4px; } <button> Open Popup </button>

Popup Title

Popup Text

     Can somebody help me?


How can I draw a rectangle train with TikZ?


Anthology for children; contains story about friendly Martian on postapocalyptic Earth

I'm looking for the title of an anthology of children's science fiction stories from the 1950s. The best of the bunch involved a Martian who visited earth, and realized we'd blown ourselves up in a nuclear war and had fallen into savagery. The Martian is a vegetarian who subsists on biscuits made by a machine he brought with him, and communicates by using one of his tentacles to feed messages direction to/from the brain of the person he's talking to.  Inadvertently left behind by his expedition, he initially befriended some children, and eventually managed to rebuild civilization. Presently he dies, but when another expedition comes a generation later, they find the civilization he rebuilt.  there were other stories, but that was the best one.   If I can't find the name of the book it was in, I'd be happy to settle for the name of the author and the title of the story.


Prove if prime can be written as $2^n+1$, $n = 2^k$

Prove that if prime can be written as $\ 2^n + 1$ then $n = 2^k$, $\;\;n, k \in \mathbb N$.  I am pretty new in this part of math.


After a recent update to Ubuntu Gnome 16.04 LTS my trackpad's movements have been inconsistent. I turned the acceleration to zero through the xset command, but the problem still occurs.   I duel booted windows and tested the trackpad on their with no issue, so I assume this isn't hardware related.    System:   Synaptics Touchpad Ubuntu 18.04


When I press F3 in minecraft, it shows everything like normal BUT my coordinates.   I haven't messed with any settings, or done anything really at all. The other day it just stopped showing them.  Is anyone else having this problem, and how do I fix it?


I am trying to perform an OLS on time series for a project for college. The professor told me that I need my regressors to be normal in order to justify the use of a linear regression. His argument was that only if the joint distribution of dependent and independent variables were normal (and thus every marginal distribution were normal too) the expected values of the dependent conditioning for the values of our regressors would line up on a line, estimated by the OLS. Though I found an entirely different opinion on a reliable forum. This opinion stated that normality of the regressors does not matter. It doesn't cause any problem in the use of OLS. Can anyone confirm one or the other view? Can you please give me a link to a paper I could make reference ?


If my archer tower is at level 6 and is under construction before we go into a clan war and it won't be completed until after the war, will it be inactive during the war?


jquery class selector only works on first row

I have a table and a button that generates a new row for the table.     Qty Product name Price Subtotal     1 Product A $50 $50     Here's my jquery code for the add new row button $("#add").click(function() { $("#transactionData > tbody").append($('
   <input type="number" class="qty" id="qty" value="1" aria-label="Search" class="form-control" style="width: 100px">	' +   '<select class="form-control custom-select" id="productList" name="productList" aria-label="Default select example">' +       '<?php foreach ($productList as $prod) : ?>' +       '<option value="<?= $prod['productName'] ?>"><?= $prod['productName'] ?> </option>' +       '<?php endforeach; ?>' +       '</select>	   20000000	' +   '$64.50	' +   '' +     ''     )); });  The qty cell is an input that has jquery code that will set value of Subtotal $('.qty').on('input', function() {   var price = $(this).closest('tr').find('.price').text();   var subTotal = this.value * price;   $(this).closest('tr').find('.subTotal').html(subTotal); });  I already use class selector and $(this).closest('tr') but it wont work on rows that i generated with the button.


Under which category I can flag the Copy-Paste answers

In stack overflow moderator tool, I saw an option like duplicate answer.    I checked one of the example:        and found what that option is.  In the above links, you can find an answer from a user that have the exact content and wordings in all of the posts.  But I have one query. Under which category I can flag these answers ?  I usually use the Other category and add my comment. Am I correct or do I need to do anything more ?    My suggestion:  It is very useful if there is a category called Duplicate answer (like Duplicate question) at-least in the moderator tool flagging options.  EDIT:  From the answers and comments,  I understand that it is a Community Moderator option. Please describe this in  of StackOverflow. So that everybody can understand it (Else they will ask it here and get down-votes like me ! :) )


How can I scale or reduce size of an Image in a post?

I recently created  and I wonder how can I make the image smaller, because it's too big. The image is added via URL.  I tried using kbd but it maintains it's size.


Why is the object property not updated in the updateObject() method in Java?

public class Employee {      int age = 32;     String name = "Kevin";      public Employee updateEmployee(Employee e) {         e = new Employee();         e.age = 56;         e.name = "Jeff";         return e;     }      public static void main(String[] args) {         // TODO Auto-generated method stub         Employee t = new Employee();         t.updateEmployee(t);         System.out.println("age= " + t.age + " " + "name= " + " " + t.name);      }  }  =================== OUTPUT:- age= 32 name=  Kevin  Why is the output not 56 and Jeff. I updated the object reference "t" in the method? Please help.


How to avoid the creation of automatic links?

I'm trying to answer a question, and for that I need to mark 4 different mock (fake) urls and what they'd have. When I type this, a link is automatically created, and I would like to avoid this behaviour since this page doesn't exist. I want to create a link only if I do [] () without space in the middle. Is this even possible? Example of what I mean:    Code for that page   That shouldn't have a link automatically created since it doesn't exist, but inserting it in code is not feasible (because next line is code for that page and there should be a separation). Block quotes didn't work either. I'm asking if this is possible without breaking the url itself, only the hyperlink.


I want to store boolean arraylist in local file and load values in onCreate(). I'm using  public void saveBoolean(String fileName, ArrayList<Boolean> list){     File file = new File(getDir("data", MODE_PRIVATE), fileName);     ObjectOutputStream outputStream = null;     try {         outputStream = new ObjectOutputStream(new FileOutputStream(file));     } catch (IOException e) {         //     }     try {         outputStream.writeObject(list);     } catch (IOException e) {         e.printStackTrace();     }     try {         outputStream.flush();     } catch (IOException e) {         //     }     try {         outputStream.close();     } catch (IOException e) {         //     } }   and  private ArrayList<Boolean> getSavedBooleanList(String fileName) {     ArrayList<Boolean> savedArrayList = new ArrayList<>();      try {         File file = new File(getDir("data", MODE_PRIVATE), fileName);         ObjectInputStream ois = new ObjectInputStream(new FileInputStream(file));         savedArrayList = (ArrayList<Boolean>) ois.readObject();         ois.close();     } catch (IOException | ClassNotFoundException e) {         e.printStackTrace();     }      return savedArrayList; }   but it invokes NullPointerExcpetion when attempt to initialize custom view listview. I'm also saving and loading string and integer lists like this, string list is loaded but integer and boolean lists are not initialized so length is 0 and my code loading value at listview position so it invokes error because length is 0 while inxed is for example 2. Is here any way to save/load integer and boolean list into file or I must convert booleans and integers into string before saving? Thanks for every reply.


How To Recover My Data From Not Detected Hard Disk?

I am using Acer Laptop one day before my Hard Disk is not detected in BIOS and not booting it's shows Insert Boot Disk and I am try another H.D.D it's boot perfectly in my Laptop but,I want detect and recover my data on not detected hard disk. I am not experience about Hard Disk please, can any one help me how to recover my data from not detected Hard Disk.


I want your advice on my solution of this problem.  problem  Show that for a space $X$, the following three are equivalent:  (a) Every map $S^1 \rightarrow X$ is homotopic to a constant map, with image a point.  (b) Every map $S^1 \rightarrow X$ extends to a map $D^2 \rightarrow X$.  (c) $\pi_1(X,x_0)=0$ $\forall x_0 \in X$.  my solution  $(c) \rightarrow (a)$: Take a map $f:S^1\rightarrow X$, and the constant loop at $x_0$ (which from (c) we know there's only this loop), and take the linear homotopy connecting $f$ and $x_0$.  $(b)\rightarrow (c)$: I am not sure if this is right, but I want somehow to induce some isomorphism from $\pi_1(D^2,y_0)$ to $\pi_1(X,x_0)$ in which case we'll get the required result. So I argued that we take as a map the extension of a map $S^1\rightarrow X$ to a map $D^2\rightarrow X$, but I don't see how to argue that the last map is homeomorphism, any advice?  $(a) \rightarrow (b)$: I am given $f:S^1\rightarrow X$, and it's homotopic to some point $x_0$, so I thought to extend $f$ on the whole ball, by defining the map: $g(x)= f(x)$ if $|x|=1$ and $g(x)=x_0$ if $|x|<1$.  Is any of what I typed right, what do I need to amend?  Thanks.


What's this music used when Lelouch is giving new orders in ep. 2 of R2?

What's the section of the soundtrack used in the second episode of R2 at 8:00, after Kallen defeats a Knightmare and Lelouch gives new orders, called?


I dont want to know that we have two types of feedbacks and why it was invented,I just want an explanation in simple words of what feedback is.


Our fully operational Internet-facing OS X Server with its own OD Master needs to be moved to a new Mac with newer, larger disks.  How do we achieve this with the minimum disruption to our users?    Would this strategy work?    Temporarily take the old machine offline whilst we 'recover' the old OS X Server to the new Mac either from Time Machine or directly from the old machine.   Put the new machine online with the same network name and IP number as the old machine?


Solve equation like $f(x) = \log_2(g(x))$

I've tried to solve two equations, and they look similar to me. $$f(x) = \log_2(g(x))$$ In the original task, I should compare them, but I wanna solve them as equations. Is it possible using analytical method? $$f(x) = \log_2(g(x))$$ Equations: $8n^2 = 64n\log_2(n)$ and $100n^2 = 2^n$ I'll give my thoughts with the first one. $$8n^2 = 64n\log_2(n)$$ $$n = 8\log_2(n)$$ $$\log_2(2^n) = \log_2(n^8)$$ $$2^n = n^8$$ And now I'm stuck, does anybody have some suggestions?


Can't restore files from Live Recovery CD

After a "normal" system update, my computer gets stuck in a flickering black screen.  I made a Live Recovery CD and followed the "update failure" steps found in    After apt-update I get "error while moving old database out of the way. Appstream cache update failed".  How can I restore broken files?  apt update output:  Err:1 ppa.launchpad.net/inkscape.dev/stable/ubuntu xenial InRelease Could not resolve 'ppa.launchpad.net' Err:2 dl.google.com/linux/talkplugin/deb stable In Release Could not resolve 'dl.google.com' Err:3 security.ubuntu.com/ubuntu xenial-security In Release Could not solve 'security.ubuntu.com' Err:4 archive.ubuntu.com/ubuntu xenial In Release Could not resolve 'archive.ubuntu.com' Err:5 archive.ubuntu.com/ubuntu xenial-updates In Release Could not resolve 'archive.ubuntu.com'


I am using almost default 18.04. I do not get any login or logout sounds. usr/share/sounds seems to have some folders in it. But there are no sound indicators for any activity I do on my PC. Is it possible to find and use a good sound theme with 18.04 ? If yes, please tell me how.  Edit 1


How are hats for the Community user selected?

On English Language & Usage, I noticed that even the  user has hats.    In its case, how is the hat it is wearing selected?


Determine the set of values of $\exp(1/z)$ for $0<|z|<r$

I can't do this exercise of Conway's Book: For $r>0$ let $A=\{w:w=\exp(1/z), 0<|z|<r\}$, determine the set $A$. Any hints?


I am getting an error when I type:   $\~{c}_{it+1}} = c_{it+1}$    The error says:   You can't use `\spacefactor' in math mode. ... composite future consumption good $\~{c}   How I can modify the code so I use the accent above c_{it+1}.


Conic in projective plane isomorphic to projective line

I've got to show that any irreducible conic in $\mathbb{P^2(\mathbb{K})}$ where $\mathbb{K}$ is algebraically closed is isomorphic as a quasiprojective variety to the projective line. I wrote the conic as equivalent to the zero locus of $ x^2 +y^2+z^2$ in $\mathbb{P^2(\mathbb{K})}$. I tried to use the standard affine charts to cover this simpler variety and parametrize it but i didn't manage to do that. What am i missing?


There doesn't seem to be a chromium (or Google Chrome) port available in Ubuntu Touch (OTA10.1, bq M10). Does one exist, or are there any plans to have one (even without touch / small screen optimizations)?


I am using ArcMap 10.2 and have a shapefile with parcel data.  I have all of the polygons labeled with attribute text.  How do i export the text to CAD?


In what direction should you throw a 1 kg uniform sphere in order to put it into lower Earth orbit?

If you are standing on Earth's surface, in what direction (and at what speed) should you throw a 1 kg uniform sphere of radius 0.1 meters in order to put it into lower Earth orbit? Assume that there is air, but it is not moving relative to the earth.


Why does zooming out too far cause my object to vanish?

If you think the title of this question sounds hilarious, you aren't alone, but that's what's happening. I've built a large complex shape (crude description, I know), and now find out that I can only view it from certain angles and certain distances. If I zoom out too far it vanishes, just as if it was passing through a pressure curtain to another world. The object is generated entirely using python code.


Why am I getting a null pointer exception creating a file?

I am creating a file in a class and I want to pass the file path to use the file in another class. I am getting the following error when I try to use the file in another class:  Does anyone know why it cannot see the file?  The string saveFilePath is initialized at the top of the Mainframe class. If I hard code the path it works fine but when I pass the path as the string saveFilePath I get the error. Thanks     private void saveFile() {     JFileChooser fileChooser = new JFileChooser();     FileFilter wavFilter = new FileFilter() {         @Override         public String getDescription() {             return "Sound file (*.WAV)";         }          @Override         public boolean accept(File file) {             if (file.isDirectory()) {                 return true;             } else {                 return file.getName().toLowerCase().endsWith(".wav");             }         }     };      fileChooser.setFileFilter(wavFilter);     fileChooser.setAcceptAllFileFilterUsed(false);      int userChoice = fileChooser.showSaveDialog(this);     if (userChoice == JFileChooser.APPROVE_OPTION) {         saveFilePath = fileChooser.getSelectedFile().getAbsolutePath();         if (!saveFilePath.toLowerCase().endsWith(".wav")) {             saveFilePath += ".wav";         }          File wavFile = new File(saveFilePath);          try {             recorder.save(wavFile);             buttonPlay.setEnabled(true);             Keyup.setEnabled(true);             Keydown.setEnabled(true);             btnSave.setEnabled(true);             getKey.setEnabled(true);           } catch (IOException ex) {             JOptionPane.showMessageDialog(Mainframe.this, "Error",                     "Error saving to sound file!",                     JOptionPane.ERROR_MESSAGE);             ex.printStackTrace();         }     } }   public class notehandle extends Mainframe{   String s = saveFilePath; File f = new File(s); float pitchInHz;  public float note() {      PitchDetectionHandler pdh = new PitchDetectionHandler() {          public void handlePitch(PitchDetectionResult result,AudioEvent e) {             pitchInHz = result.getPitch();            }        };      AudioDispatcher dispatcher = null;     try {         dispatcher = AudioDispatcherFactory.fromFile(f, 1024, 0);     } catch (UnsupportedAudioFileException e) {         // TODO Auto-generated catch block         e.printStackTrace();     } catch (IOException e) {         // TODO Auto-generated catch block         e.printStackTrace();     }     AudioProcessor p = new PitchProcessor(PitchEstimationAlgorithm.FFT_YIN, 48000, 1024, pdh);     dispatcher.addAudioProcessor(p);     new Thread(dispatcher,"Audio Dispatcher").start();       return pitchInHz;    }   }


Automatically tag hot network questions as such

Over on Sustainability.SE,  whenever we find them. We're a small site, and like getting on the list because it brings in new users. Case in point -- two questions today hit the HNQ, and already some of the users that were attracted have written some good questions and answers.  Currently, you can tell if a question is on the HNQ list by . This is useful if you're looking at a question and it feels a bit hot. However, you can't find this without looking at each question, and for those with no revisions you have to key in the right URL.  Would it be possible to automatically add a [tag:HNQ] to these questions?  It seems that this could be useful for anyone reviewing the question who didn't get there from the sidebar list.


How can a smoke domain be hidden from render?

In the 3D-View everything looks as  expected:    But when rendered the smoke domain covers the whole scene. I tried to place camera inside and outside of the smoke domain but this doesn't work either.      The box is caused by my fault in the smoke domain material:    Then the question should be how to reproduce the 3d-view in the rendered image.


can I delete old vmlinuz in /boot manually?

My /boot is full. apt-get autoremove autoclean not working. I chose to delete old linux-image* manually. There are many files like: configVERSION, vmlinuzVERSION, initrd.img*VERSION...  can these be deleted manually too?  VERSION is old version (some of them are dated 2012!).


Changing python version without breaking software center

I have been fiddling with my Python installation on Ubuntu 12.04 (I was having trouble installing a python library), and at one point my python command wasn't working. It turned out the symlink was missing (I must have removed it by accident lol), so I  pointing to Python 3.2 (originally pointed to 2.7):  sudo rm /usr/bin/python sudo ln -s /usr/bin/python3.2 /usr/bin/python   Problem: the software center and update manager weren't working:  ~$ software-center   File "/usr/bin/software-center", line 152     print time.time()              ^ SyntaxError: invalid syntax   I guessed this was because I had changed the default python version (2.7->3.2), so I changed it back to 2.7. Now they work fine, but I'd still like to change the 'default' python version (i.e. the one called with python in the terminal).  Is it possible to do that in Ubuntu 12.04? Thanks!


what should i do if professors don't reply my mail for graduate admission?

I want to apply to study computer science phd at us universities, and I am wondering if a professor that I have emailed for admission don't reply my mail. should i still apply for university? Thanks


How to prove that $f_n(x)=\frac{nx}{1+n\sin(x)}$ does not converge uniformly on $[0, \pi/2]$?

If $f_n$ is a sequence of functions over $[0, \pi/2]$ given by  $$f_n(x) = \frac {nx} {1+n\sin(x)},$$  then how would I go about proving that $f_n$ does not converge uniformly to a function $f$ on $[0, \pi/2]$?


Linear Regression - Number of Predictors - Negative Weight

I am trying to prep myself for data science interview & I saw the following question on a forum  You have several variables that are positively correlated with your response, and you think combining all of the variables could give you a good prediction of your response. However, you see that in the multiple linear regression, one of the weights on the predictors is negative. What could be the issue?  My guess is this could be due to multicollinearity, but I am not sure. Can some body help?  Any help will be appreciated


does a group of order $pqr$ where $p$,$q$ and $r$ are primes and $p<q<r$ always have a normal subgroup of order $qr$?

Theorem A group of order $pqr$ where $p$,$q$ and $r$ are primes and $p<q<r$ always has a normal subgroup of order $qr$.  I found this theorem in a book. But a normal subgroup should have an index of $2$ w.r.t . the group. Now in case of a group of order $3×5×7$, it must have a normal subgroup of  order $7×5$ and for this subgroup its index w.r.t. the group is not $2$. Is it not always necessary for a normal subgroup to have an index of 2 w.r.t. the group ?


How to fix the scrollbar new behaviour in Firefox

This question has already been asked () but I don't know how to implement the answer: If I click in the scrollbar below or above the thumb it moves to the spot I just clicked. This happens in Firefox but not in Opera, the 2 browsers I use. Could someone explain how to fix the problem?


Solving system of linear equations with two variables

Stuck on this problem:  Given $$2^x + 5^y = 2^y +5^x = 7/10$$ Find $(x + y)^{-1}$  I know it's a system of linear equations problem but unsure how to isolate one variable to get the other. Not looking for a solution but just guidance on how to solve it.


Use dollar sign in verbatim environment within auctex

I am using something similar to the following,  \documentclass{article} \usepackage{listings}  \lstnewenvironment{shellsession}[1][] {\lstset{language=bash     basicstyle=\small\ttfamily,     numbers=none,     #1   }} {}  \begin{document} \begin{shellsession}   $ some code \end{shellsession} \end{document}   This gives the output I am looking for.  My problem stems from the fact that Emacs thinks that I am inside of math mode because of the $ within the shellsession environment, giving me a false error. Is there a way to make emacs realize that I am inside of a verbatim like environment?


How to shrink vector object without distorting it in Illustrator?

I am working on a logo.whenever i am shrinking the vector it seems like stroke has increase,but actually it haven't. if any body can help me out here.  Thanks.


Why is the CDF of a sample uniformly distributed

I read  that given a sample $ X_1,X_2,...,X_n $ from a continuous distribution with cdf $ F_X $, the sample corresponding to $ U_i = F_X(X_i) $ follows a standard uniform distribution.  I have verified this using qualitative simulations in Python, and I was easily able to verify the relationship.  import matplotlib.pyplot as plt import scipy.stats  xs = scipy.stats.norm.rvs(5, 2, 10000)  fig, axes = plt.subplots(1, 2, figsize=(9, 3)) axes[0].hist(xs, bins=50) axes[0].set_title("Samples") axes[1].hist(     scipy.stats.norm.cdf(xs, 5, 2),     bins=50 ) axes[1].set_title("CDF(samples)")   Resulting in the following plot:    I am unable to grasp why this happens. I assume it has to do with the definition of the CDF and it's relationship to the PDF, but I am missing something...  I would appreciate it if someone could point me to some reading on the subject or help me get some intuition on the subject.  EDIT: The CDF looks like this:


A question related to the Alternating Harmonic Series

It's a well known result that the Alternating Harmonic Series : $$1 - \frac{1}{2} + \frac{1}{3} - \frac{1}{4} + ... = \ln(2)$$ But, this is because of "Conditional Convergence". I saw somewhere that if you re-arrange the terms in the series like this : $$1 + \frac{1}{3} - \frac{1}{2} + \frac{1}{5} + \frac{1}{7} - \frac{1}{4} +... = \frac{3}{2} \ln(2)$$ When I first saw it, my mind was blown. I couldn't accept it. How can the result change just by re-arranging the terms? My guess was that it is somewhat related to the $\mathbb{Z^+}$ paradox where the number of even integers is $\frac{1}{2}$ of all the numbers and $\frac{1}{3}$ when you arrange it in some other way(Not the theory but the logic behind it). Can anybody please explain why does the result of the Alternating Harmonic Series change when you re-arrange the terms. Any help is appreciated. Thanks in Advance


$(a)$ Let's say A person is pushing an object. Then the object will put a force on the person equal to the force the person is putting on the object (because of Newton's third law). Then the person should move backward because of the opposing force. But clearly, the person moves in the same direction as the object while the person pushes it. Is there something wrong with my reasoning? $(b)$ Let's say I am pushing against a wall with force $F$, then the wall will push me with force $F$ (because of newtons 3rd law). Because The wall is pushing me with force F, then I will (because of newtons 3rd law), push the wall with force $F$, this will add up with my previous force to $2F$. If I keep doing this indefinitely, then I can say that I am pushing this wall with a force of $\infty$ $N$ and the wall is pushing me with a force of $\infty$ $N$. That would mean I will get crushed and the wall will get destroyed. But clearly, that does not happen. Again, where am I using Newton's 3rd law in the wrong way?


According to the theorem, if  $$1+\frac{1}{2}+\frac{1}{3}+\frac{1}{4}+\frac{1}{5}+\cdots+\frac{1}{p-1} =\frac{r}{q}$$  then we have to prove that $r\equiv0 \pmod{p^2}$.  (Given $p>3$, otherwise $1+\dfrac{1}{2}=\dfrac{3}{2}$, $3 \not\equiv  0 \pmod 9$.)  I guess there's a $(\bmod p)$ solution for this, but I don't really get how to start it.


java .getText() doesnt work in IF statement

I'm trying to make function to let someone change his/her password inside the program that i'm making. i'm trying to make a IF statement where i check if he put his old password right and then i check if he put his new password twice and if they are the same.  My problem is that when run the IF statement that it will turn False no matter what i input. even if its the right answer. i tried a few things to get around it but it doesn't work.  WachtwoordVeranderenController.java  package testswitch;  import java.net.URL; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Timestamp; import java.util.ResourceBundle; import javafx.collections.FXCollections; import javafx.collections.ObservableList; import javafx.fxml.FXML; import javafx.fxml.Initializable; import javafx.scene.control.Button; import javafx.scene.control.TextField;  /**  *  * @author Peltos  */ public class WachtwoordVeranderenController implements Initializable {  @FXML TextField FXOudWachtwoord, FXNieuwWachtwoord, FXBevestigWachtwoord; @FXML Button gevondenButton;  String id = MainController.getUsername(); String password = MainController.getPassword();  Database database = Main.getDatabase();    @FXML private void writeToDB() throws SQLException {      String query = "UPDATE testDatabase.Gevonden SET "             + "Password=?, "             + "WHERE Username=?;";      PreparedStatement statement = database.prepareStatement(query);      if ((FXNieuwWachtwoord.getText() == password) && (FXNieuwWachtwoord.getText() == FXBevestigWachtwoord.getText())) {         try {             System.out.println("gelukt!");             statement.setString(1, FXNieuwWachtwoord.getText());             statement.setString(2, id);             //statement.executeUpdate();             MainNavigator.loadVista(MainNavigator.START);         } catch(SQLException ex) {             ex.printStackTrace();         }     }     else{         System.out.println("Error");         System.out.println("Password = " +password);         System.out.println("FXOudWachtwoord = " +FXOudWachtwoord.getText());         System.out.println("FXNieuwWachtwoord = " +FXNieuwWachtwoord.getText());         System.out.println("FXBevestigWachtwoord = " +FXBevestigWachtwoord.getText());     } }  @FXML private void cancel() {     MainNavigator.loadVista(MainNavigator.START); }  @Override public void initialize(URL url, ResourceBundle rb) { }  }   I don't have any errors in my output. It just always takes the ELSE statement no matter what i do. I feel like that the .getText() has something to do with it.


Why I got different result when using different `for loop` in javascript?

I have a question about for loop in js, here are examples:  In this part, child is object (what I want).  for (var i = 0; i < element.childNodes.length; i++) {         var child = element.childNodes[i];         console.log(typeof(child)); }   But when change the code, child become to String, valued 0, 1, 2 ...  for (var child in element.childNodes) {         console.log(typeof(child)); }   Why the two types of for loop got different results? Thanks..


I want to design a precise digital clock

For that I need a 1 hz stable clock with 3 SPY. Which oscillator should I use? Crystal Oscillator or RC oscillators?


How do you write the equal-to symbol with delta on top ("delta-equal to")? One similar to . Are special packages required for that? It is supposed to be used for definition of equalities, similar to :=.


Yesterday I've successfully installed Ubuntu 12.04 (x64), but something's bothering me, what about the drivers of my motherboard? I have the support DVD with the drivers of my motherboard, but I don't know where to start.  My motherboard is Rampage 3 Extreme.  Thank you for the responses...


Let $\int_{- \infty}^{\infty} f(x) dx =1$. Then show that $ \int_{- \infty}^{\infty} \frac{1}{1+ f(x)} dx = \infty.$

Let $f : \mathbb{R} \to [ 0, \infty)$ be a measurable function. If $\int_{- \infty}^{\infty} f(x) dx =1$. Then I want show that $ \int_{- \infty}^{\infty}  \frac{1}{1+ f(x)} dx = \infty.$  Any help will be appreciated.  Thank you in advance.


Prove that the following series is divergent, $ \sum_{n=1}^{\infty} \frac{|\sin n|}{n} $

I really do not how to attack this problem.


How to set world's background without effecting the lighting?

Is there any way to make the world's background white without making everything way too bright? I simply want to make the whole world white, without effecting the lighting.


Assign p-values to all data point in the population in order to demonstrate some of them are not normal

a very naive question for some of you. I have a population of 80000 data points. Some points in the population are highly skewed and they could be easily identified and visualized assigning them a p-value. I know that excluding those values, the population follow a nice normal distibution. What I ask you today is whether you can suggest me an approach to assigning a pvalue to each data point in the population where the null hypothesis is that the data contribute to the normality.  Thank you


How can I round a double number to 1 required decimal digits in Java

I have number like 24 and I need to return like result 24.0. How can I do this think.  I try with this code but is return 24. If is 24.5 is working correct but for 24 is return like integer.  double sliderValue = Math.round(number*10)/10;   Anybody know how can return 24.0


listing files with pattern with starting and ending

I want to list all files in a directory that start with 'abc' and end with '.zip'  I'm trying to use ls.  The directory has a lot of zip files starting with abc<date> and xvz<date>. I only want to get the list of the abc<date>.zip


How can I select random files from a directory in bash?

I have a directory with about 2000 files. How can I select a random sample of N files through using either a bash script or a list of piped commands?