Error when running "apt remove octave": Unterminated quoted string

I have tried to remove using command line but it is not working. And in ubuntu software I am unable remove any software. I have removed using remove button but they are appering again. What i shoud do now ? and I have tried to uninstall ubuntu software but it is not working. This text is displayed on command line: Reading package lists... Done Building dependency tree        Reading state information... Done The following packages will be REMOVED:   octave 0 upgraded, 0 newly installed, 1 to remove and 141 not upgraded. 1 not fully installed or removed. After this operation, 4,664 kB disk space will be freed. Do you want to continue? [Y/n] y Setting up install-info (6.5.0.dfsg.1-2) ... /usr/sbin/update-info-dir: 3: /etc/environment: Syntax error: Unterminated quoted string dpkg: error processing package install-info (--configure):  installed install-info package post-installation script subprocess returned error exit status 2 Errors were encountered while processing:  install-info E: Sub-process /usr/bin/dpkg returned an error code (1)


it has been a while I used ubuntu for my daily driver because of me needing VST files in music production, recently picked up this thinkpad.  Anyways, whenever I try to download something from youtube this error shows up  ERROR: Signature extraction failed: Traceback (most recent call last):   File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 905, in _decrypt_signature     video_id, player_url, s   File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 797, in _extract_signature_function     raise ExtractorError('Cannot identify player %r' % player_url) ExtractorError: Cannot identify player u'/yts/jsbin/player-vflAmElk-/en_US/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.  (caused by ExtractorError(u"Cannot identify player u'/yts/jsbin/player-vflAmElk-/en_US/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.",)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.   I had been using the same code my past using ubuntu 12.04. what do I miss?  youtube-dl --extract-audio --audio-format mp3 <url>


Let $a(z),b(z)$ be two non-zero complex polynomials such that....

I am stuck on the following problem that says:  Let $a(z),b(z)$ be two non-zero complex polynomials. Then $a(z)\overline{b(z)}$ is analytic iff  $a(z)$ is constant  $a(z)b(z)$ is constant  $\overline{a(z)}b(z)$  is constant  $b(z)$ is constant    I am not sure how to tackle it. Can someone explain? Thanks in advance for your time.


The List values and my given value is equal then the checkbox will be checked?

I'm working on project in android. my situation i stored list value in firebase Realtime database and then the List value and my given value is equal the checkbox will be checked.      For example: the List holding 36,40, 44.then my given value is equals   to that List value then the equivalent checkbox will be checked.      My code is  checkcheck=FirebaseDatabase.getInstance().getReference().child("Products").child(newprokey);                  checkcheck.child("size").addValueEventListener(new ValueEventListener() {                     @Override                     public void onDataChange(DataSnapshot dataSnapshot) {                          final List<String> areas = new ArrayList<String>();                          for (DataSnapshot areaSnapshot : dataSnapshot.getChildren()) {                             String areaName = areaSnapshot.child("Value").getValue(String.class);                             areas.add(areaName);                         }                          String[] check = areas.toArray(new String[areas.size()]);                          for (int i= 0;i<check.length;i++)                         {                             if (check[i] == "36")                             {                                 jS36.setChecked(true);                             }                             if (check[i] == "38")                             {                                 jM38.setChecked(true);                             }                             if (check[i] == "40")                             {                                 jL40.setChecked(true);                             }                              if (check[i] == "42")                             {                                 jXl42.setChecked(true);                             }                              if (check[i] == "44")                             {                                 jXxl44.setChecked(true);                             }                             if (check[i] == "46")                             {                                 jXXXl46.setChecked(true);                             }                         }                      }                       @Override                     public void onCancelled(DatabaseError databaseError) {                      }                 });   i try this code. it's not working, give me solution.


Have some users gotten too pedantic with closing and voting down answers?

Quite frequently as a user, I see posts like this:     On Linux systems (either 32- or 64-bit), what is the size of pid_t,   uid_t, and gid_t?   Source:   It could probably be argued that this post does not meet the guidelines; for example, it shows no evidence of research.  Yet this question was useful to me and a number of other people.  I've posted questions like this in the past - some of the questions are well received, some are voted down or flagged for closing.  It seems that some people are too ready to vote down or close a question without really reading the question and trying to understand whether the question may be useful to other people.  It seems that some users have gotten too pedantic with closing and voting down answers?  Maybe a badge is needed for people who try to offer "helpful" comments when they close or vote down a question?


java program  input:-My input is:- googshaopobuieoele and  output which I want is  7 ?   Note:- whatever my input I want to count only consonent not vowels.  `   int j;       int Count=0;     String scc="googshaopobuieoele";     String  s[]=scc.split("");     System.out.println(s.length);      for( j=0;j<s.length;j++)     {          if(s[j]!="a" && s[j]!="i" && s[j]!="o" && s[j]!="u" &&s[j]!="e")             Count++;     }     System.out.println(Count); }}   `


If I'm deep-frying foods and want to hold batches of them so I can serve a large amount all at once, or even prepare a couple hours ahead, what's the best way to hold them until ready to serve?  Should I put them on wire racks above a drip pan, or should I place them on paper towels?  Or even in a paper cone?  Should I keep them warm or should I let them cool and reheat them in a very hot oven (450F)?  Or does it depend on the type of food, its shape, or the batter?  What I'm looking for here is someone who's done some comparison testing between different methods of holding over deep-fried foods.  Some example foods: garlic & pepper shrimp, tempura vegetables, latkes, felafel, and french fries.


I'd like to create a regex to match content between tags.  My regex that is not working : new RegExp("page.content_before(.+)\/page.content_before", "g").exec(myText)[0]  myText :  page.title Accueil /page.title  page.content_before [slides]

       Lorem ipsum dolor sit amet, consectetur adipisicing elit. Odit excepturi consequatur inventore alias ducimus tenetur libero iste nesciunt soluta esse et debitis aliquid, voluptatum placeat veritatis! At dolorem repellat doloremque!

       [articles]

       [vehicles]

 /page.content_before  page.content

     Lorem ipsum dolor sit amet, consectetur adipisicing elit. Veniam officiis eos quis eum in sapiente aliquid placeat excepturi ratione suscipit quisquam exercitationem necessitatibus totam vel, ullam assumenda optio aspernatur incidunt.

     Social.

 /page.content   page.content_after [googlemap] /page.content_after   page.seo_title Accueil /page.seo_title   page.seo_url accueil /page.seo_url   The result should be :  [slides]

       Lorem ipsum dolor sit amet, consectetur adipisicing elit. Odit excepturi consequatur inventore alias ducimus tenetur libero iste nesciunt soluta esse et debitis aliquid, voluptatum placeat veritatis! At dolorem repellat doloremque!

       [articles]

       [vehicles]


I got my pilot started in my gas fireplace, and now the flame won’t stay lit. I have a light switch as an on/off switch. Originally, I couldn’t get the flame to light at all. Toggled the switch a few times and the flame went on. Shut the bottom compartment of the fireplace and boom, flame gone! And now it won’t restart. Pilot is lit. Can anyone recommend anything?


sudo apt-get -y upgrade taking to long 20.04

I want to install a new package so, I need to sudo apt-get -y upgrade but it just keeps going on and on and on with the below output. I am not able to understand the concepts of sudo apt-get. I mean update/upgrade. Please help me. Note:-  Editing this because it completed after 1:30 hours but it causes few problems. My system behaves strangely. My fonts got changed, all system icons changed how can i get back my system fonts and icons? Unpacking fonts-lohit-telu (2.5.5-2) over (2.5.5-1) ... Preparing to unpack .../327-fonts-noto-cjk_1%3a20190410+repack1-2_all.deb ... Unpacking fonts-noto-cjk (1:20190410+repack1-2) over (1:20190410+repack1-2) ... Preparing to unpack .../328-fonts-opensymbol_2%3a102.11+LibO7.0.0~rc2-1_all.deb ... Unpacking fonts-opensymbol (2:102.11+LibO7.0.0~rc2-1) over (2:102.11+LibO6.4.3-0ubuntu0.20.04.1) ... dpkg: warning: unable to delete old directory '/usr/share/fonts/truetype/openoffice': Directory not empty Preparing to unpack .../329-fonts-sarai_1.0-3_all.deb ... Unpacking fonts-sarai (1.0-3) over (1.0-2) ... Preparing to unpack .../330-fonts-telu-extra_2.0-5_all.deb ... Unpacking fonts-telu-extra (2.0-5) over (2.0-4) ... Preparing to unpack .../331-fonts-tlwg-garuda-ttf_1%3a0.7.2-1_all.deb ... Unpacking fonts-tlwg-garuda-ttf (1:0.7.2-1) over (1:0.7.1-3) ... Preparing to unpack .../332-fonts-tlwg-garuda_1%3a0.7.2-1_all.deb ... Unpacking fonts-tlwg-garuda (1:0.7.2-1) over (1:0.7.1-3) ... Preparing to unpack .../333-fonts-tlwg-kinnari-ttf_1%3a0.7.2-1_all.deb ... Unpacking fonts-tlwg-kinnari-ttf (1:0.7.2-1) over (1:0.7.1-3) ... Preparing to unpack .../334-fonts-tlwg-kinnari_1%3a0.7.2-1_all.deb ... Unpacking fonts-tlwg-kinnari (1:0.7.2-1) over (1:0.7.1-3) ... Preparing to unpack .../335-fonts-tlwg-laksaman-ttf_1%3a0.7.2-1_all.deb ... Unpacking fonts-tlwg-laksaman-ttf (1:0.7.2-1) over (1:0.7.1-3


I would like to create a WebGL game for Ubuntu Touch, building on the HTML5 app template. Is this a possible option?


i've made a model with texture (via UV map: mark steam unwrap..) and it's looking great but when i export it (to put it in unity), the model looks like when it's in material view. how can i do to make it looks like in texture view ? Thank you a lot.


How do I return to the previous version of nautilus to get back sidebar?

My version of Ubuntu is 18.04.01 LTS download from the official website  How do I get back to the previous versions of Nautilus? is that now it seems different and it does not allow me to access the connected USBs now I only see the normal folders  How I want it to look:    as it looks now:


Unable to pass the street signs reCaptcha

Ok, I cannot for the life of me get past this captca. I select all the street signs, who knows whether they're right.   But also, if you're supposed to select images, what's with the text box below? there's no instruction on what to type there.


Calculate the differential of the function $f: \Bbb R^n \to \Bbb R$ given by $$f(x) = x^T A x$$ with $A$ symmetric. Also, differentiate this function with respect to $x^T$.     How exactly does this work in the case of vectors and matrices? Could anyone please help me out?


Demoting a DC which also runs Exchange 2010

Initially when setting up Exchange 2010 CAS I ran into problems with permissions. I got around them by promoting the server to be a DC with a GC.  The Server was initially installed with 2008 R2 Standard ED. I need to do an in-place upgrade to ENTERPRISE which requires me to demote the DC on this server first (AKAIK).  This is a production server.  My question is: How best to achieve this?  If you can only offer some advice for possible problems I would greatly appreciate that too.


Why $f(z)=\frac{az+b}{cz+d}$, $a,b,c,d \in \mathbb C$, is a linear transformation?

Now I'm confused with what "a linear transformation" means.  In linear algebra textbook, I learned that a linear transformation is $T:V \to W$, where V,W are vector spaces, which satisfies additivity and homogeneity, in other words, $T(u+v)=Tu+Tv, T(av)=aTv$ for all $u,v \in V$ and $a \in F$  But in my complex analysis textbook, $\displaystyle f(z)=\frac{az+b}{cz+d}$, $a,b,c,d \in \mathbb C$, is introduced as an example of a linear transformation.   However, this function $f$ doesn't seem to follow the definition from linear algebra. Indeed, $f(0) \neq 0$.  Is it like there are two kinds of linear transformations in mathematics, or they are actually the same thing but I don't get it well?


How to search Gmail mails that have only one conversation

Is there any way I can find all the emails that I sent but have not been replied to by anyone? (One email conversation.)


Drawing visibility polygons in Unity (for vision cones with occlusion)

I'm currently trying to create an effect like the one displayed below in Unity:    However, it seems that I can't do this with any of Unity's built-in light objects, and I simply cannot find anything online that talks about this. Is there a way to achieve this in Unity? 2D or 3D solutions are fine, as I'm sure that they're both very similar to each other,


Getting a value inside URL using regex in Java

I'm trying to extract a value from inside a URL which follows this sort of pattern: my/url/{value}/test. I'm currently unable to extract the {value} only and nothing after {value}.   Here are some sample input:  my/url/1Q23RTFKFK/test my/url/RR43UHIR4U/test/qwerty  With the following regex (?<=url/)(.*)(?=/), I get the following result:  1Q23RTFKFK RR43UHIR4U/test  I would like to get only the {value} from the URL:  1Q23RTFKFK RR43UHIR4U  What am I doing wrong with my regex? Thanks.


In Harry Potter and the Philosopher's Stone, Hagrid says,      'Oh, well - I was at Hogwarts meself but I - er - got expelled, ter tell yeh the truth. In me third year. They snapped me wand in half an' everything. But Dumbledore let me stay on as gamekeeper. Great man, Dumbledore.'    Philosopher's Stone, Chapter 4    This presumably means that Hagrid continued as gamekeeper right after his expulsion. This is also supported by the fact that Hagrid, an orphan, had nowhere else to go. At another point, Harry, fearing expulsion, thinks      He thought of Hagrid, expelled but allowed to stay on as gamekeeper. Perhaps he could be Hagrid's assistant. His stomach twisted as he imagined it, watching Ron and Hermione becoming wizards while he stumped around the grounds carrying Hagrid's bag.    Philosopher's Stone, Chapter 9    This indicates indirectly that Harry assumed that Hagrid became gamekeeper right after his expulsion.  However, in HP4, we see Molly reminiscing about the previous gamekeeper, Ogg.     ...And reminisced at length about the gamekeeper before Hagrid, a man called Ogg.    Goblet of Fire, Chapter 31     Since Hagrid was expelled fifty-two years before this incident, I wondered how old Mrs Weasley had to be, and calculated it to be more than sixty-five ( since Molly didn't know Voldemort's real name, either, she couldn't gave been his contemporary).  But surely this is absurd, as I've always pictured the Weasleys to be in their forties. Could someone please resolve this conundrum?


$$\sum_{k=-200}^{202}2^{2k+4}$$ I know I can try putting it in the online calculators and they would give me the answer, but I would like to keep that as my last resort. I am supposed to give an exact answer while showing each step. I have tried putting in $k$ values, for example   $s=2^{-396}$ when $k=-200$. This pattern stays constant until you reach $k=-2$ where $s=1$. Then it's $2^2$, $2^4$, etc.  I do get the pattern, but how can I use what I know to find the exact sum. I need help finding the answer and show each step I take.


Why did Voldemort want to kill Harry Potter given that Harry was one of the horcruxes which provided protection for Voldemort's eternal survival?

Given that Harry was one of the Horcruxes, it is not in Voldemort's interest to kill him. Harry is one of the keys to Voldemort's own survival. Why is Voldemort so bent on killing Harry despite Harry being so important to his own survival?


How can I open this armored vehicle in GTA-V?

Michael was driving around flat-broke when he passed his first armored truck, so he shot out the tires and the driver, then jacked the truck and took off with rims ablaze.  After a near never-ending two star chase the truck is his, but he only has small arms and can't afford any grenades (stronger munitions are still level-locked).  So how could one break open an armored truck without adequate explosives?      There's the truck.  Michael is actually in the driver's seat, the shootout in the back is completely unrelated.


Move FreeBSD installation to smaller HDD

Good day!  I have FreeBSD installation with next partitions:    Now FreeBSD is installed in 500GB hard drive. I want to move it to 250GB hard drive. What is safest and correct way to do it? I'm afraid that:   clone with dd will fail because destination drive is smaller; if I copy all files wirh cp utility, I will ruin file rights.   Please explain. I prefer the way to use one program which will do everything in one step. P.S. I found such one but now I can't answer my own question.


Autokey (autokey-qt) freezes and won't insert text

Per some suggestions on here and lifehacker, I began using autokey.  It worked great for a week, but as of today it now   hangs when I try to enter name new phrases. usually won't close when I push the 'x' in my window manger   and   no longer responds to my abbreviation phrases.   I've added a few phrases and rebooted since my last successful attempt at using it.  Another user reported a similar problem for the .  The results of running it from the command line seems to show some exception errors:  Exception in thread KeypressHandler-thread: Traceback (most recent call last):   File "/usr/lib/python2.7/threading.py", line 808, in __bootstrap_inner     self.run()   File "/usr/lib/python2.7/dist-packages/autokey/iomediator.py", line 202, in run     target.handle_keypress(rawKey, modifiers, key, windowName, windowClass)   File "/usr/lib/python2.7/dist-packages/autokey/service.py", line 179, in handle_keypress     currentInput, windowInfo, True)   File "/usr/lib/python2.7/dist-packages/autokey/service.py", line 304, in __checkTextMatches     if item.check_input(buffer, windowInfo):   File "/usr/lib/python2.7/dist-packages/autokey/model.py", line 732, in check_input     abbr = self._should_trigger_abbreviation(buffer)   File "/usr/lib/python2.7/dist-packages/autokey/model.py", line 131, in _should_trigger_abbreviation     if self.__checkInput(buffer, abbr):   File "/usr/lib/python2.7/dist-packages/autokey/model.py", line 144, in __checkInput     stringBefore, typedAbbr, stringAfter = self._partition_input(buffer, abbr)   File "/usr/lib/python2.7/dist-packages/autokey/model.py", line 191, in _partition_input     stringBefore, typedAbbr, stringAfter = currentString.rpartition(abbr) ValueError: empty separator     Any help would be appreciated.


java.lang.NullPointerException error - Intellij IDEA, Selenium, Java

I am in the process of automating a set of manual tests on a website.  As the website is still in the process of being developed and tested, it is constantly under change. Therefore, my idea is to create a standard set of 'master' tests that are used in most (if not all) tests, that I can call from other tests and that can be easily changed where necessary.  I have created a package called 'Master', containing two classes called 'Login' and 'Logout'. I have created another package called 'SmokeTests', containing a class called 'Smoke003'.   The Login script runs successfully when I call it from Smoke003 however, I cannot seem to write/run the Logout script successfully.   Please see below my code for the 3 different classes:  Login:  package Master;  import org.junit.BeforeClass; import org.junit.Test; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa.selenium.support.ui.ExpectedConditions; import org.openqa.selenium.support.ui.WebDriverWait;  import static junit.framework.TestCase.assertEquals;  public class Login {  static WebDriver driver;  @Test public void testLogin(){     String loginname1 = "EMAIL HERE";     String password1 = "PASSWORD HERE";      driver = new FirefoxDriver();     driver.get("WEBSITE HERE");  driver.findElement(By.id("LoginButton")).click(); driver.findElement(By.id("loginEmail")).sendKeys(loginname1); driver.findElement(By.id("loginPassword")).sendKeys(password1); driver.findElement(By.id("loginOKButton")).click();      new     WebDriverWait(driver,5).until(ExpectedConditions.textToBePresentInElementLocated(By.className("underline"),"Events"));     assertEquals("TEXT HERE",driver.findElement(By.className("TEXT HERE")).getText(),"TEXT HERE");  }   }  Logout:  package Master;  import org.junit.Test; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver;  public class Logout {  static WebDriver driver;  @Test public void testLogout(){      driver.findElement(By.cssSelector("TEXT HERE")).click();  }   }  SMOKE003:  package SmokeTests;  import Master.Login; import Master.Logout; import org.junit.Test;  public class Smoke_003 {  public static void main(String args[]) {     Login Login01 = new Login();     Login01.testLogin();      Logout Logout01 = new Logout();     Logout01.testLogout(); }   Is anybody please able to help with why I keep receiving the error message 'java.lang.NullPointerException' when running/debugging the logout test? I am aware that there is no driver.get website specified in the Logout script. I don't believe I need to do this as by the time I come to logout I will already be logged in?  NOTE: I have edited some information such as email address etc. for confidentiality reasons.  UPDATE: If I run Smoke003, it calls the login script and logs in successfully but fails when trying to call the logout script with the following error message in full:  Exception in thread "main" java.lang.NullPointerException at Master.Logout.testLogout(Logout.java:14) at SmokeTests.Smoke_003.main(Smoke_003.java:14) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at     sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)


How to make all faces flip to the right/consistent direction?

What's happening is that I have tried to flip the normals, inside and out, but there are always faces which have to be flipped!  Normals recalculated   Inside View    If I flip them again, all faces get flipped and end up horrible and, not working at all. So how can I make all of the faces flip to the right direction?


Incorrect target of \label link produced by hyperref

In the following code, the command \label{my} appears on page 4, as well \pageref{my} says "4", but the hyperlink points to the page one. Why is that?  \documentclass{book} \usepackage{hyperref} \usepackage{lipsum}  \begin{document}    % Four pages of text.   \lipsum[1-20]     % The label is on fourth page.   \label{my}        % Buggy pageref. It produces the number 4, but the link leads to the first page.   \pageref{my}   \end{document}


recover data after installation of ubuntu OS without changing partitions using ubuntu installed on usb key

my hard disk is damaged, i tried to install ubuntu 18.04.1 on c: partition instead of windows. I formatted that partition. Unfortanatly the installation had some errors, while ubuntu system files has been installed. I figure out then, that some of my important data were stored in C:. My question does testdisk command  help in this case. If yes, since i am not able to install any OS,  I used ubuntu with usb key. I can  access to D: but C:  does contain only ubuntu folders. If someone would suggest testdisk, how could i install it from terminal since i was not able to do it for any package when i boot from usb key.   Thanks in advance


"Distribution worker" vs. "distributed worker"

I cannot differentiate the meanings of the two words. Could you please clarify?   In general, when should I use a noun (distribution) or an adjective (distributed) for verbs similar to distribute, like organize, create?


Chemfig too large distance between Compounds and names?

There is large space between the compound name and compound . I used arrow[0]{,0} also and cyclohexane is not aligned properly at center :(  picture explains clearly :(   How do i remove distance between c1 and benzene as well as c4 and cyclohexane .  How ever the main problem is adding [0.8ex] fixes for some compounds with names like the screenshot below .   You can see at c1 c2 there is no problem but in second c1 and c4 there is huge distance :(  Here is my Latex Code .  \documentclass[11pt]{article}  \usepackage{chemfig} \usepackage{siunitx}  \def\benzene{\chemname[0.8ex]{\chemfig{**6(------)}}{Benzene}}  \def\nitrobenzene{\chemname[0.8ex]{\chemfig{**6(----(-NO_2)--)}}{Nitro Benzene}}   \begin{document}  % #1 \schemedebug{true}  \vspace{5mm}         \schemestart                 \benzene                  \arrow{0}[,0] \+                  \chemfig{3Cl_2}                  \arrow{->[sunlight][uv]}                  \chemfig{C_6H_6Cl_6} \arrow{0}[,0]  \, \, \, \,  or                  \chemname[0.8ex]{\chemfig{*6((-Cl)-(-Cl)-(-Cl)-(-Cl)-(-Cl)-(-Cl)-)}}{Benzene Hexachloride(BHC)}           \schemestop   % #9 \vspace{5mm}         \schemestart                 \benzene                  \arrow{0}[,0]                  \+ \chemfig{3H_2}                  \arrow{->[\chemfig{Ni}][$\Delta$,Pressure]}[0,2,]                   \chemfig{C_6H_{12}} \arrow{0}[,0]  or \chemname[0.8ex]{\chemfig{*6(------)}}{Cyclohexane}           \schemestop  \end{document}


When should Sleeping in Light be viewed?

is the final episode of the television series Babylon 5.  There is a  posted on the Wikipedia page for the series, which includes related movies and series. According to this chronology, season 5 (the final season) takes place in 2262, but the final episode (Sleeping in Light) takes place in 2281. In between the next-to-last episode of the last season and Sleeping in Light, there are no less than four films and two spinoff series.  According to the  on what order the movies and shows should be watched in, one should watch Sleeping in Light ("The rest of Season 5") between The Legend of the Rangers and A Call to Arms. The first takes place in 2265, the second in 2266. What's the rationale for watching it here? I've left a comment on that answer, but have received no response, and I think it's a topic worthy of its own question.  I've followed that suggested watching order all the way through The Legend of the Rangers, but am stuck trying to decide whether to watch Sleeping in Light now, or after watching everything else.


Is FFmpeg missing from the official repositories in 14.04?

I tried to install ffmpeg in trusty/Ubuntu 14.04 and got the following message:  $sudo apt-get install ffmpeg  Reading package lists... Done Building dependency tree        Reading state information... Done Package ffmpeg is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Package 'ffmpeg' has no installation candidate   Why isn't the package available?


How to add a timestamp of a prepared stmt to mysql database when code is run?

$stmt = $conn->prepare("INSERT INTO users (username,created) VALUES (?,?)"); $stmt->bind_param("ss", $_POST['username-reg','whatdoiputhere?']); $stmt->execute();   I want to add a "now" date/timestamp that can also be inserted simultaneously so that i can keep track of when users create accounts. is there a function that i need to write/reference to get the current date? or is there an already known function that i just need to reference? i am new to php, sorry


Can other members of a Quidditch team catch the snitch?

If another member of a Quidditch team catches the snitch, does it count?


Rendered image shows visible "line strokes" artefacts

If I just render the default cube it will look like this:   It is rendered with color depth 16. I can see there are artefacts consisting of visible "line strokes" on some of the cube faces.  The bands seems to not go darker and darker, but alternates between light and dark, or is my eye fooled?  Why?  Edit  Here comes a gradient created by gimp without banding, using the same computer:


Is it safe to remove ubuntu-desktop package?

I prefer using Synaptic to Software Center. So I decide to remove the software-center package, but ubuntu-desktop needs to be removed as well. A warning is shown, saying ubuntu-desktop is needed to ensure proper updates.   To which extent doesubuntu-desktop effect on updates?    Let's say I removed ubuntu-desktop then my Ubuntu would be treated as server mode. So does that means I'll get updates geared toward server i.e. I'll get packages that unnecessary for my desktop?


I don't get notification for achievements in the Stack Exchange Android app

I don't find a notification when I somehow earn or lost reputation points. But, in the web version I get notified by +2 or +10.   App version: 1.0.95 Device manufacturer: Symphony Device model: V75   OS version: 6.0 (eng.android.1482838674)


What's the simplest way to store 1 bit after a device has been turned off?

Is there a simple way to store a boolean value that persists when power has been turned off?


I am trying to integrate $\displaystyle \int_0^\infty \frac{\sin^2(x)}{x^2} dx$  by method of contour. I am considering the following contour but I am not being able to. Also I am not sure if it's right approach.   $$\int_\Gamma f(z) dz + 2 \int_0^\infty f(z) dz + \int_\gamma f(z)dz = 0$$ The first integral tends to zero as $R \to \infty $, but letting $\epsilon \to 0$, for the last integral I am getting. $$\int_{\pi }^0 \frac{\sin^2({\epsilon e^{i\theta}})}{\epsilon^2 e^{i2\theta }} i \epsilon e^{i\theta}d\theta = 0$$  ADDED:: Taking the above contour, we do not have any pole inside the contour. $$\int_{-\infty}^\infty \frac{1 - e^{i2z}}{2z^2}dz + \int_\Gamma \frac{1 - e^{i2z}}{2z^2} dz + \int_\gamma \frac{1 - e^{i2z}}{2z^2} dz = 0 \hspace{1 cm }(1)$$  $\displaystyle \int_\Gamma \frac{1 - e^{i2z}}{2z^2} dz \to 0$ due to Jordan Lemma. To evaluate $\displaystyle \int_\gamma \frac{1 - e^{i2z}}{2z^2} dz $ let the radius of the small semi circle be $\epsilon \to 0 $.   $$\lim_{\epsilon \to 0}\int_\pi^0 \frac{1 - e^{i2\epsilon e^{i\theta}}}{2\epsilon ^2 e^{i2\theta}} i \epsilon e^{i\theta}d\theta =\lim_{\epsilon \to 0} \int_\pi^0 \frac{1 - 1 - 2i\epsilon e^{i\theta} + O(\epsilon^2)}{2\epsilon e^{i\theta}} i  = \lim_{\epsilon \to 0} \int_\pi^0 1+  O(\epsilon) d\theta = -\pi \hspace{1 cm }(2)$$  From $(2)$, $(1)$ reduces to  $$\int_{-\infty}^\infty \frac{1 - e^{i2z}}{2z^2}dz - \pi = 0 \implies \Re \int_{-\infty}^\infty \frac{1 - e^{i2z}}{2z^2}dz = \int_{-\infty}^{\infty}\frac{\sin(x)^2}{x^2}dx = \pi$$  Including singularity at $z = 0$, we will have that small inner circle on lower plane. $$\int_{-\infty}^\infty \frac{1 - e^{i2z}}{2z^2}dz + \int_\Gamma \frac{1 - e^{i2z}}{2z^2} dz + \int_\gamma \frac{1 - e^{i2z}}{2z^2} dz = 2 \pi i \text{Residue}[f(z), z = 0] = 2\pi \hspace{1 cm }(3)$$  As for $\displaystyle \int_\gamma \frac{1 - e^{i2z}}{2z^2} dz = \lim_{\epsilon \to 0}\int_{-\pi}^0 \frac{1 - e^{i2\epsilon e^{i\theta}}}{2\epsilon ^2 e^{i2\theta}} i \epsilon e^{i\theta}d\theta = \pi \hspace{1 cm }(4)$  From $(3)$ and $(4)$ we get the same result.


One hot encoding alternatives for large categorical values?

Hi have dataframe with large categorical values over 1600 categories is there any way I can find alternatives so that I don't have over 1600 columns.  I found this below interesting link    But they are converting to class/object which I don't want. I want my final output as a dataframe so that I can test with different machine learning models?  Is there anyway I can implement ?


I was studying about solving expressions of the form $\sqrt{6+\sqrt{6+\sqrt {6+\cdots}}}$  I know how to solve this, but how can this equation have a constant variable if it is continued indefinitely?  I know upto limits and basic derivatives. Thanks


Why the two expressions for number $e$ converge to the same number?

We 'know' that $$\lim_{n\to\infty}\left(1+\frac 1n\right)^n=\sum_{n=0}^\infty\frac 1{n!}$$ To prove this, I have started with the inequality $$\left(1+\frac1n\right)^n=\sum_{k=0}^n\frac1{k!}\prod_{j=0}^{k-1}\frac{n-j}n\le\sum_{k=0}^n\frac1{k!}$$ Then I tried to find a strictly increasing sequence of natural numbers $a_n$ such that the following inequality holds for every $n$: $$\left(1+\frac1{a_n}\right)^{a_n}\ge\sum_{k=0}^n\frac 1{k!}$$ I have tried with $a_n=n+1$ and $a_n=2n$, but I couldn't prove it. In fact, I tried some terms with a calculator and it seems to be false for these particular sequences of natural numbers. Is this the way to prove the equality? If it is not, how? EDIT: I should have said this before, but exp and log functions are not already defined. So the answers to the 'duplicate' are useless to me.


Python's time.clock() vs. time.time() accuracy?

Which is better to use for timing in Python? time.clock() or time.time()? Which one provides more accuracy?  for example:  start = time.clock() ... do something elapsed = (time.clock() - start)   vs.  start = time.time() ... do something elapsed = (time.time() - start)


How to fix "Can't locate Archive/Tar.pm"

I'm trying update a software and when I running for make update I've a issue:  Can't locate Archive/Tar.pm in @INC (@INC contains: ...)   How I can fix this?


Examples of $f$ strictly convex, either with one minimizer or with no minimizer.

Let $f\colon X \to [ -\infty, +\infty]$ be proper and strictly convex. Show that $f$ has at most one minimizer. Give examples where $f$ is strictly convex, and either (i) $f$ has one minimizer; or (ii) $f$ has no minimizer.  For the strict convexity part, you may use the fact that f is strictly convex whenever its Hessian is positive definite.   I am not sure how to show that f has at most one minimizer, could someone help get me started with the question?


I just setup a cron to restart 'Thin' application server for my Ruby application every hour. I have tried every method but the cron is giving error saying command not found.  My script looks something like this  #!/bin/sh cd /var/www/myapp thin restart -C /etc/thin/myapp   (thinrunner is the name of the above bash script) crontab looks like this  0 * * * * /usr/local/bin/thinrunner   The error i get in email sent by crontab looks like this:  /usr/local/bin/thinrunner: 3: /usr/local/bin/thinrunner: thin: not found   I have also tried running it directly without creating a bash file but it says thin not found even then. I used the following to run directly  0 * * * * cd /var/www/myapp && thin restart -C /etc/thin/myapp   I have already done chmod +x thinrunner and when i run the script directly, it works as expected. So what could i be doing wrong?   thanks


Wordplay that thwarts expectation by applying a description to a different object?

Example:  A news show puts an image of donald trump holding up a fish on the screen.  The announcer says: "Here's a photo of a slimy, scaly, reptile -- and he's holding a fish, too."  I'm not sure if you'd classify this as a specific genre of joke, or wordplay, or pun.  But I'm curious if there's a term specifically for it?


Program Cannot Discern What The String Is

I am trying to make a game where you unscramble words. But I cannot seem to get it to properly check if the user's guess is equal to the actual answer. It seems to no matter what have the actual word not equal to the users guess, also while your here. Is there any other way to pause my code and wait for a users input other than having a while loop?  import javax.swing.JOptionPane;  public class Loop extends CreateWindow{     private static final long serialVersionUID = 1L;     public static boolean running = true;      public static void GameStart(){         if(running){             int wordNum = 0;             for (int i=0;i<=9;i++){                 field.setText("");                 setScrambledWord(i);                 while(enter == false){                     System.out.println(userAnswer);                     System.out.println(enter);                     System.out.println(score);                 }                 userAnswer = area.getText();                 if(userAnswer == normalWords[wordNum]){                     JOptionPane.showMessageDialog(null, "legos", userAnswer, JOptionPane.OK_OPTION);                 }else if(userAnswer != normalWords[wordNum]){                     JOptionPane.showMessageDialog(null, "sogel", userAnswer, JOptionPane.OK_OPTION);                 }                 area.setText("");                 enter = false;                 wordNum++;             }         }     }      public static void main(String[] args){         new CreateWindow();         running = true;         GameStart();     }                }    import java.awt.BorderLayout; import java.awt.Graphics; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JTextArea; import javax.swing.JTextField;  public class CreateWindow extends JFrame {     private static final long serialVersionUID = 1L;     JPanel panel = new JPanel();     public static int score = 0;     static JTextArea area = new JTextArea(10,40);     static JTextField field = new JTextField(40);     JButton button = new JButton("Press to Enter Answer");     public static boolean enter;     public static String userAnswer;     public static String[] normalWords = {         "yellow",         "alphabet",         "tangent",         "elephant",         "amusement",         "cat",         "eerie",         "wonder",         "shadows"     };     public static String[] scrambledWords = {         "lloeyw",         "lphaabte",         "natgnte",         "leehpnta",         "mauseenmt",         "tca",         "reeei",         "dowenr",         "shawdos"     };     CreateWindow(){         setSize(500,300);         setResizable(false);         setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);         setLocationRelativeTo(null);          field.setEditable(false);          button.addActionListener(new ActionListener() {              public void actionPerformed(ActionEvent e)             {                 enter = true;                 System.out.println("You clicked the button");                 System.out.println(enter);             }         });             add(panel);         panel.add(field, BorderLayout.PAGE_START);         panel.add(area, BorderLayout.CENTER);         panel.add(button, BorderLayout.PAGE_END);         setVisible(true);     }      public static void setScrambledWord(int i){         field.setText(scrambledWords[i]);     }      public void clearArea(){         area.setText("");      } }


How to work out complicated forms in probability?

Assume a population of $10^9$ people, tracked over a 1000 days. A person stays in a hotel for a probability of 1% in any given day. Each hotel hosts  100 people at a time.   How many pairs of people would've stayed at least twice together in the same hotel?


How do I install Ubuntu without erasing Windows 10

I made a bootable USB with Ubuntu and I want to try a bit of Linux. I have an SSD in my laptop which shows only one partition. Now, I want to be able to choose which OS to run when my machine boots up and I don't know if I should just install Ubuntu when I reset my laptop and will that way everything I have on windows still be there or I need to make another partition. So I just want to be able to run both OS's without any of my files being erased. Thanks.


How to lock compiled Java classes to prevent decompilation?

How do I lock compiled Java classes to prevent decompilation?  I know this must be very well discussed topic on the Internet, but I could not come to any conclusion after referring them.  Many people do suggest obfuscator, but they just do renaming of classes, methods, and fields with tough-to-remember character sequences but what about sensitive constant values?  For example, you have developed the encryption and decryption component based on a password based encryption technique. Now in this case, any average Java person can use  to decompile the class file and easily retrieve the password value (defined as constant) as well as  and in turn can decrypt the data by writing small independent program!  Or should such sensitive components be built in native code (for example, VC++) and call them via ?


can $a_{n+1}=2a_n+1$ generate prime numbers?

Let $\{a_n\}_{n\geq 0}$ be a sequence of integers given by the rule $a_{n+1}=2a_n+1$, Does there exists a value for $a_0$ for which the sequence consists entirely of prime numbers.


How to draw circle tangents and removing the inner lines?

I'm new to Adobe Illustrator and I wanted to accomplish this task. How do I remove the inner lines in my drawings? I tried with all the pathfinders effect but it keeps removing my tangent lines (the lines connecting both my circles).    It works like a charm as I followed the selected's answer guide:  Here it is.


Comparing the orbit radius of two spherical objects

Assume the mass of star 2 is 4 times the mass of star 1. Compare the radius of the orbit of star 1 to that of star 2.   Possible answers:  R1:R2=1:4   R1:R2=1:2   R1:R2=2:1   R1:R2=4:1   R1:R2=16:1   What's the answer?  I guess I'd use the gravitational force formula:  $ F = G\cdot \frac {m1 \cdot m2}{r^{2}} $  But I don't see how the $r$ from the formula, which is the distance between the two stars can be related to what the question is essentially asking - radius of the orbit of the smaller star.  And when the question says: "Compare the radius of the orbit of star 1 to that of star 2"  Wouldn't it mean that the bigger star (2) will stay stationary, and the smaller star would orbit around it? Or will they both orbit each other? I guess the latter.  If so, wouldn't they orbit each other the same way? e.g. always remain the same distance from each other?


Career choice: another postdoc in a strong University, or Faculty in a weaker one?

It is probably a very "soft" question, but let me try.   It is customary to believe, that after a certain period of postdoctoral research a person should either establish him/her-self as a (permanent or tenure track) Faculty member, or leave academia for good, seeking employment elsewhere. The maximum "postdoc period" is of course not specified, and very country-- and area--dependent, but arguably it is around 8 years — for example, many fellowship programs invite applications from candidates with no more than 7-8 years of postdoc experience.  Consider a person with almost that many years of postdoc experience given a choice: either to pursue another postdoc position in a strong internationally recognized University (say, top-20 THE rating), or go for an independent Faculty position in a less recognized place (say, top-200 THE rating).  If you think that the choice here is obvious, I would very much like to hear your pro / contra arguments. The area is computational mathematics.


Block quote   I use induction  N=1 And n=k But in case of n=k+1 i can't write the thing .help     Block quote


Short form when acronym is first used in table

I am referencing a table containing an acronym entry that has not been mentioned in the text before. I would like to print the acronym short form in the table (the acronym is used multiple times in the table) and print the long form when the acronym is used in the text for the first time. Here is my MWE:  \documentclass[a4paper,11pt,oneside,fleqn]{scrbook} \usepackage[ngerman,english]{babel} % language listed last is default setting \usepackage[utf8x]{inputenc}  \usepackage{mhchem}  \usepackage[acronym,toc]{glossaries} \makeglossaries  \newacronym{LAr}{L\ce{Ar}}{Liquid Argon}  \begin{document}  some text ... \ref{SampleTable} ...  \begin{table}[!h] \centering \begin{tabular}{|c|c|c|} \hline & & \\ \hline \hline \gls{LAr} & & \\ \hline \gls{LAr} & & \\ \hline & & \\ \hline & & \\ \hline & & \\ \hline & & \\ \hline \end{tabular} \caption{Sample Caption} \label{SampleTable} \end{table}  .... some text ... \gls{LAr}  \end{document}


I frequently have to cd from $HOME to a particular long directory path. So I thought I'd put a cdscript in $HOME to make getting there a little quicker.  cdscript:  #!/bin/sh directory="/some/big/long directory path/that/I/use/frequently" cd "$directory"   Set permissions: chmod 700 cdscript  ./cdscript doesn't do anything. What am I missing? (Yes, those spaces in the path exist, and I can copy and paste the exact individual lines in the shell with success, so the path exists too). Also, is it more Unixey to just make a symbolic link to the directory instead of the above script, and cd to the link instead?


I have cut a hole in a plane, but I am left with some loose edges.  Is there an easy way to select and delete them all?  See this screenshot:    See this edges siting out with no face?


ie9 post request losing query parameters

I'm writing an application that, unfortunately, still has IE9 support. my requirement has another application posting data and redirecting (via a form POST) into my application, along with query parameters. I'm using Node and express to parse the query params and render a page. I'm running into an issue where, if there are query parameters on a post request, IE9 is actually making three requests, one POST with data, one GET with query params, and one GET without anything attached at all. This seems to effect only IE9, any suggestions on how to make it happen like all other browsers, in one request?  EDIT: now with code  <form action="/testPath/?path=placetoGo&group-id=281740360804&ref-id=2817403600034&itineraryTypeCode=RT&type=edd&num-adults=1" method="POST"> <input type="hidden" name="data" value='something'> <input type="submit" value="Submit"> </form>   so that's the request to the node/express server.  on the server, IE9 comes in with three requests, first one is a POST with the object on the body. the second is a GET with the query params, and the third is a GET without the post data or query params.


Let $s_n=\sum_{k=1}^n \frac{1}{k}$ then $s_n$ is bounded sequence? I know that $\sum_{k=1}^\infty \frac{1}{k}$ is not convergent so sequence of its partial sum is divergent  and  $\sum_{k=1}^\infty \frac{1}{k}$=$\lim_{n\to\infty}s_n$  but i am not able to visualize this if i think in the following way  $\sum_{k=1}^\infty \frac{1}{k}=1+\frac{1}{2}+\frac{1}{3}+\frac{1}{4}+......$  = 1+0.5+0.33333..+0.25+.....   in this sum first term is 1 and remaining all are   0.something    then why it is not bounded ?


Why am I being redirected to a captcha when I am just searching?

I searched  for "Halting problem" and got redirected to a captcha. I'm not even modifying anything, just searching. What is prompting this?


Convert rows into columns using Pivot in SQL

I have this temp table named #DynamicDB, with below data.   Date     Actual_Prod    Forecast_Prod   MRB_Parts 01-04-18   1                 2             2 02-04-18   3                 2           NULL 03-04-18   0                 3           NULL 04-04-18   1                 4           NULL 05-04-18   1               NULL          NULL   I want this data to be converted into Column wise, as shown below.  List_Of_Date    01-04-18  02-04-18  03-04-18  04-04-18  05-04-18 Actual_Prod    1        3          0    1     1 Forecast_Prod      2        2          3    4    NULL MRB_Parts      2       NULL       NULL  NULL     NULL


I find that the minimum in-call volume on my HTC Desire is still far to loud on some calls.  Since I got the phone, I have flashed several different custom ROMs, radio updates, etc, and have had the issue throughout.  Do you know of any way (setting, hack, app, whatever) to reduce the minimum volume?  My device is rooted and I am currently running one of the CyanogenMod 7 (Gingerbread) nightly builds.


Occasional artifacts when displaying characters

To summarize the answer: switching to proprietary drivers should work, but the artifacts disappeared for me even on the free drivers now.  Update: since switching back to the proprietary AMD driver (fglrx), I haven't seen these artifacts.  Occasionally I see artifacts instead of correctly rendered characters:    For now I have only observed this in Firefox.  The characters become normal once I select the text.  What's the issue here and how can I solve it?  Graphics card:  AMD Radeon HD 7790 Driver: radeon (free) -> now I'm no fglrx and am not seeing the artifacts (see the update)


"No objects or igmages found to bake to"

Ive searched the internet but i coudnt fix it with the answers providen. The problem is, i canot bake my model. I have the object selecten in normal and edit mode, the image is selected and created.  But it just doesnt let me bake it.


Composite functions, is this statement correct?

Let $S = \{1,2,3,4\}$. Let $f$ be the sets of all functions from $S$ to $S$.  Now, is this statement correct?  $\forall f \in F$ , $\exists$  $g \in F$ so that $(f\circ g) (1) = 2$    I think this is false because suppose the only output $f(x)$ can produce is   $f(x)=3$ and $f(x) = 4$  Now, there is no possibility of $(f\circ g)(1) = 2$ because $2$ isn't an output of $f$.  Is that correct to say?


Sort list of dictionaries based on values where keys have different names

I have a list of dictionaries which look like the following:  my_list = [           {'1200' : [10, 'A']},           {'1000' : [24, 'C']},           {'9564' : [6, 'D']},           ]   All dictionaries in the list have one key-value pair.  I want to sort it based on the first element of each dictionaries value which is a list, so the sorted list would look like:  my_list_sorted = [           {'9564' : [6, 'D']},           {'1200' : [10, 'A']},           {'1000' : [24, 'C']},           ]   As you can see the keys have different names and that's why I could not use answers from, for example, the following post:


continuity, discontinuity derivative and relation to being derivative but its partials are not continuous

is $$f(x) =\begin{cases} x^2\sin(\frac{1}{x}) \mbox{ for } x\neq 0 \\ 0  \mbox{ for } x= 0\end{cases}$$ a continuous function specially at point x=0?  And why being derivable its derivative is not continuous at x=0 since  $$f`(x) =\begin{cases} 2x\sin\frac{1}{x}-\cos\frac{1}{x} \mbox{ for } x\neq 0 \\ 0  \mbox{ for } x= 0\end{cases}$$?  I suspect this as to do with being derivable a function f $\mathbb{R}^n\rightarrow\mathbb{R}^m$ that don't imply its partial derivatives are continuous .this I don't get it so far.however partials derivatives if continuous is derivable.  Can you provide me a more general case than just one variable where f is derivable but its partials are not continuous?


I've got the following formula for a homework programming task.  $$\ln(x) = 2\sum_{k = 0}^{\infty}\frac{(x-1)^{2k+1}}{(2k+1)(x+1)^{2k+1}}$$  I was wondering what the name of the formula is, or where it comes from? After searching on the internet I couldn't find it.  Another think I'd like to know is if there are other $\ln(x)$ approximation formulas that approach $\ln(x)$ faster?


Significance of starting the Fibonacci sequence with 0, 1....

DISCLAIMER: I do not deal with in-depth mathematics on a daily basis as some of you may, so please pardon my ignorance or lack of coherence on this topic.  QUESTION: What is the significance of starting the Fibonacci sequence with $0,1$ ?  For instance, if I picked any two random integers, say 2 and 7, to start a sequence would I actually be creating some multiple or derivation of the Fibonacci sequence?  Is there a general mathematical explanation for the relationship between any sequence represented by $a[0] = x, a[1] = y, a[n] = a[n-1] + a[n-2]$ and the Fibonacci sequence?  Or, back to my example sequence, is there a general mathematical relationship between:  $2,7,9,16,25,41,66,107,173,280...$  and  $0,1,1,2,3,5,8,13,21,34...$  Perhaps the Golden Ratio explains it somehow?  Any help would be appreciated.


How to permanently set screen brightness level in Ubuntu 12.04 on Dell Vostro 2420 laptop?

On Ubuntu 12.04 LTS on a Dell Vostro 2420 laptop, each time I start Ubuntu, the screen brightness is set to the maximum level, which gives a high glare. (I have recently installed Ubuntu on the laptop, but did not change any default settings related to brightness, IIRC.) I am currently lowering the brightness manually each time after starting, using the System Settings icon on the left of the screen. Looking for a permanent way to set it to a lower value.


every symmetric matrix has at least one real eigenvalue

let $A \in {M_{n \times m}}$ why every real symmetric matrix has at least one real eigenvalue?                                                           .


What a PhD student should do when their supervisor orders them to have a name on their paper just because of grant purposes?

We are preparing a new paper and my supervisor tells me that we have to put the name of a person on our paper because he was involved in getting us the grant. He says it is because of future grants and that we want to show that he was involved in the research -- and obviously he was not. I think we are supposed to work with him on the last year of my PhD, but not now. My supervisor already knows that I am against it and tells me that this is an “order” and it is because of some sort of “politics”. I can reject but I am not sure what are the consequences. What a PhD student should do in such a situation?


How to Add empty index.html from each folder and subfolder?

When surfing to any subfolder in my web site the browser displays the list of files in that directory. I would like to add an empty index.html file to fix this,  How can I do it with a shell script or a CLI command?  You could disable directory indexes. Via .htacces: put this line in the root .htaccess:  Options -Indexes


How to modify a bibliography style to surround titles in quotes in a bibliography?

My advisor wants me to cause all titles for papers, books, and articles in " for my thesis in my bibliography.  I am using natbib and the plainnat bibliography style and am unsure how to do this. I am NOT asking how to do  or displaying a quote in the title, I want to make the title show " around it with capitalization being saved. I could go through and manually modify the .bib file I suppose...  Here is a working example:  \begin{filecontents}{mybib.bib}                  @Article{Hart, author = {P.E. Hart, N.J. Nilsson, B. Raphael}, title = {Correction to a Formal Basis for the Heuristic Determination of Minimum Cost Paths }, journal = {SIGART Newsletter 37}, year = {1972}, pages = {28-29} }        @Article{Hart2, author = {P.E. Hart, N.J. Nilsson, B. Raphael}, title = { {``Correction to a Formal Basis for the Heuristic Determination of Minimum Cost Paths''}  }, journal = {SIGART Newsletter 37}, year = {1972}, pages = {28-29} } \end{filecontents}    \documentclass{report} \usepackage[numbers,square]{natbib} \begin{document} \bibliographystyle{plainnat}      I don't want it to look like this reference \cite{Hart}      I want it to look like this \cite{Hart2}  \bibliography{mybib}   \end{document}   Is there a way to easily do this? I can always hack this by doing what I did for the second reference if not.  From reading  nothing stands out to me as doing this?


Are standardized betas in multiple linear regression partial correlations?

Since standardized betas are correlation coefficients in bivariate regression, is it the case that standardized betas in multiple regression are partial correlations?


I'm trying to find a way to validate an email address using CakePHP 1.2 without a model.  Can this be done?  If so, how can I validate an email address with CakePHP 1.2 without a model?  Thanks!


I watched through Death Note once, and I never remember hearing L's name, even after he died.  What was L's real name, or did he never have one (it was never said)?


I was thinking about a set which is an element of itself and then I stumbled upon axiom of regularity. However I don't see the point of axiom of regularity.Why do we even need this axiom(and indirectly asking why can't a set contain itself. What complication does it give rise to?)


With the update of horses I have a problem; I can't find any. Do you need to make a new world for the update or do all of my other already managed worlds automatically get updated with horses?


My Scenario:  i have running apache severing my UI and i have my node api running on port 2000 and i have a reserves proxy on apache to proxy request to api and i have configure ssl as well and i want to redirect http to https. this is my following config  <VirtualHost *:80>          ServerAdmin admin@example.com         ServerName example.com         ServerAlias www.example.com         DocumentRoot /var/www/example.com/public_html           RewriteEngine on         RewriteRule ^/api/v1/(.*) http://localhost:2000/api/v1/$1 [P,L]          RewriteEngine on         RewriteCond %{HTTPS} off         RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L]           ErrorLog ${APACHE_LOG_DIR}/error.log         CustomLog ${APACHE_LOG_DIR}/access.log combined   </VirtualHost>   SSL config  <IfModule mod_ssl.c>     <VirtualHost _default_:443>         ServerAdmin admin@example.com         ServerName example.com         ServerAlias www.example.com         DocumentRoot /var/www/example.com/public_html               ErrorLog ${APACHE_LOG_DIR}/error.log         CustomLog ${APACHE_LOG_DIR}/access.log combined              SSLEngine on           SSLCertificateFile  /etc/apache2/ssl/example.com.crt         SSLCertificateKeyFile /etc/apache2/ssl/pkey.key              <FilesMatch "\.(cgi|shtml|phtml|php)$">                 SSLOptions +StdEnvVars         </FilesMatch>         <Directory /usr/lib/cgi-bin>                 SSLOptions +StdEnvVars         </Directory>       </VirtualHost> </IfModule>   i'm getting too many redirects, how can i solve this?


Does Spock's appearance reflect the fact that he is only half-Vulcan?

We know that Spock is biologically half-Vulcan but to me he looks just like full-Vulcans. B'Elanna Torres is half-Klingon and half-human, but in her case you can tell; the Klingon traits like head ridges are about 50% of what they would be were she a full-Klingon. So, shouldn't Spock have only kind of pointy ears, sort of slanted eye-brows, slightly green blood, etc. instead of simply looking just like a full-Vulcan?


I would like to know how to dump all databases into a folder. I'm using a Linux/Debian Afer connecting on the server with root access I make  $ mysql -u admin -p   To connect on mysql.  Then which commands are to extract all databases created in my Plesk Panel?


How to show that $\sum_{k=1}^n k(n+1-k)=\binom{n+2}3$?

While thinking about  I found out that this equality might be useful there: $$n\cdot 1 + (n-1)\cdot 2 + \dots + 2\cdot (n-1) + 1\cdot n = \frac{n(n+1)(n+2)}6$$ To rewrite it in a more compact way: $$\sum_{k=1}^n k(n+1-k)=\frac{n(n+1)(n+2)}6.$$  This equality is relatively easy to prove: $$\sum_{k=1}^n k(n+1-k)= (n+1)\sum_{k=1}^n k - \sum_{k=1}^n k^2 = (n+1) \frac{n(n+1)}2 - \frac{n(n+1)(2n+1)}6  = n(n+1) \left(\frac{n+1}2-\frac{2n+1}6\right) = n(n+1)\frac{3(n+1)-(2n+1)}6 =  \frac{n(n+1)(n+2)}6.$$ (We only used the known formulas for the   and the .)   Are there some other nice proofs of this equality? (Induction, combinatorial arguments, visual proofs, ...)     EDIT: Now I found another question which asks about the same identity:  (I have tried to search before posting. But the answers posted here so far gave me some new ideas for good keywords to search which lead me to finding that question.) The questions are, in my opinion, not exact duplicates since the other question asks specifically about combinatorial proofs and my question does not have that restriction. But I agree that this is a very minor distinction. In any case, if you think that one of them should be closed as a duplicate, then you can vote to close. I will refrain from voting to close/reopen on this question. (If one of the two questions is voted to be a duplicate of the other one, they probably cannot be merged, since the summation variables are off by one.)


The following series is an irrational number

$(*)$ Let $\{ x_n \}$ be a sequence where $x_n$ is either $1$ or $-1$. Then   $$ \sum_{n=0}^{\infty} \frac{ x_n}{n!} \; \; \; \text{is irrational}$$  This problem arise when I was trying to prove that $e$ is irrational. If the result above is true, then we can put $x_n = (-1)^n $ and hence   $$ \frac{1}{e} = \sum \frac{(-1)^n}{n!} \; \; \; \text{is irrational} $$  which would imply that $e$ is irrational.   So, my question is: Is $(*)$ true?


Story involving the rumoured "whisper line": 2 points in a subterranean prison between which it is possible to communicate

I have vague memories of a sci-fi story that involves "the whisper line" as a crucial plot device. The whisper line refers to 2 secret points in a highly oppressive prison institution between which it is possible for 2 inmates to hold a private conversation without anyone else's notice.  Sadly, all other plot details escape me.  I seem to remember these other features:   Darkness, silence, and the routine of life in the institution The institution was submerged (subterranean?), possibly in a ravine, reserved for Jon Smith type dissidents Long quiet struggle and shifting fate for a mostly limp and powerless protagonist An unlikely bond between characters who grow to sympathise with each other in an almost animal sense (prior enemies drawn together in prison, I deduce) Slow, unsensationalist observation of the dehumanising effects of authoritarianism   The vivid feeling I have of the last 2 makes me think this could be an Ursula Le Guin novella, but I'm fairly sure I've read all her material in the last 5 years or so and haven't been able to retrieve this.


Recently I received a email from London Journals Press.  Dear Dr. Po-Wei Huang, ... Taking note of your research interest that matches with our journal scope, I would like to welcome you to associate with us. To follow this, our Editorial Board has agreed to recognise you under "Quarterly Franklin Membership" (Membership ID#XC11296). ... Also I encourage you to have your upcoming research article/paper published in our international, peer-reviewed, refereed journal, London Journal of Engineering Research (LJER) and confirm your review slot before 15th of the coming month for the next issue. ...  At first, I ignored it. But after few days, he sent a follow up email like the following,  I’m writing this as a follow-up for my email which I sent few days ago. I think that you had a glimpse of our Franklin Membership email and our proposal for your membership ID #XC11296. I did not hear back from you since then. If you have any queries regarding the Quarterly Franklin Membership honored to you, I (or my support teammate) would be grateful to provide you with further information. I hope you don't find this outreach uncomfortable. I was simply wondering if you are still interested in joining our member community. I truly feel that someone like you who is involved in many great research works is ideal for connecting.  I find that London Journals Press is not on the list of . So , is there Any recommendation? or should I ask my advisor directly?


Galois group of irreducible cubic equation

The polynomial $f(x) = x^3 -3x + 1$  is irreducible, and I'm trying to find the splitting field of the polynomial.  We've been given the hint by our lecturer to allow an arbitrary $\alpha$ to be a root and then to check that $\alpha$ is a root, then $2-\alpha^2$ is also root. I've done this with no problem.  My issue is since this is a polynomial of degree $3$, there must be another root that is somehow related to $\alpha$ so that I can create the splitting field and in turn the Galois group of my polynomial but I have no idea what this last root could be.


Is it possible to backup iOS devices to an external drive?

I have a new Mac Pro with a small 256GB SSD. I have a larger 2TB drive that I run backups to.  My girlfriend has a MacBook Air with a tiny 128GB SSD.  Our problem is our iPhones have 50GB of music, pictures and apps, so backing them up on iTunes on our boot drives would be a suicide. Right now I have an old Mac Pro with plenty of disk space I use for my iPhone but I would like to use my primary computer.  Whats the best way to have everything with iTunes/iPhoto just go to an external drive? And is it possible for both of us use the same set of drives? Could we just use an Apple Time Capsule for both of our machines? And then couldn't we just figure out how to make iTunes and iPhoto to look for that network drive to work?


why does tar . see hidden files but ls . does not?

Why does tar cvpfz /tmp/backup.tgz . backup hidden files?    (Note ls . does not see the hidden files.  Trivia: there are ways to see hidden files such as with ls -a but this is just trivia.  The question pertains to a difference in the behaviour when similar behaviour might be expected.)


Limits: How to evaluate $\lim\limits_{x\rightarrow \infty}\sqrt[n]{x^{n}+a_{n-1}x^{n-1}+\cdots+a_{0}}-x$

This is being asked in an effort to cut down on duplicates, see here: , and here: .    What methods can be used to evaluate the limit $$\lim_{x\rightarrow\infty} \sqrt[n]{x^{n}+a_{n-1}x^{n-1}+\cdots+a_{0}}-x.$$  In other words, if I am given a polynomial $P(x)=x^n + a_{n-1}x^{n-1} +\cdots +a_1 x+ a_0$, how would I find $$\lim_{x\rightarrow\infty} P(x)^{1/n}-x.$$  For example, how would I evaluate limits such as $$\lim_{x\rightarrow\infty} \sqrt{x^2 +x+1}-x$$ or $$\lim_{x\rightarrow\infty} \sqrt[5]{x^5 +x^3 +99x+101}-x.$$


Do "too broad" questions become less broad after an acceptable answer is given?

I came across  in the review queue. Sometimes I come across questions of similar form. My thought is to vote to close as "too-broad" because:   Question is very broad, there are many, many ways to perform that task. No code was posted, no specific coding problem was identified.   But, and this is in general, I always get tripped up when I see that these questions have a reasonable accepted answer: I would have voted it too-broad immediately had I seen the question pop up in the new questions stream; but when I see that the answerer seemed to find the question clear enough (and his answer was accepted and deemed satisfactory), I end up going back and thinking "if it was clear enough for the answerer to provide a specific answer, doesn't that mean it wasn't too broad after all?"  How should I handle questions like this?   And, in general, how should I handle questions that, alone, seem too broad, but when answered, seem specific? Should I ignore the answers when considering closing a question, or do they retroactively change the quality of the question?


I have a question about the proof that $\sqrt[12]{31}+\sqrt[31]{12}$ is irrational.  The proof should be:  Suppose $\sqrt[12]{31}+\sqrt[31]{12}$ is rational. Then  $\sqrt[12]{31} \in \mathbb{Q}(\sqrt[31]{12})$ and $\mathbb{Q}(\sqrt[12]{31}) \subset \mathbb{Q}(\sqrt[31]{12})$  As dim$_{\mathbb{Q}(\sqrt[12]{31})}=12$ over $\mathbb{Q}$, $\mathbb{Q}(\sqrt[12]{31})$ can't be a subset of $\mathbb{Q}(\sqrt[31]{12})$, because dim$_{\mathbb{Q}(\sqrt[31]{12})}=31$ over $\mathbb{Q}$.  Is that accurate?  I don't understand why $\sqrt[12]{31} \in \mathbb{Q}(\sqrt[31]{12})$, if $\sqrt[12]{31}+\sqrt[31]{12}$ is rational and how to see the conclusion that the dimension dim$_{\mathbb{Q}(\sqrt[12]{31})}=12$.


What are the differences between the Akame Ga Kill! manga and anime?

First of all, why was the anime completed before the manga? As far as I am aware, the anime is ahead of the latest manga chapters by a large margin.  I've heard that the anime actually differs from the manga; does this mean we might get a remake like Fullmetal Alchemist: Brotherhood for Fullmetal Alchemist?  Furthermore, will the manga continue on with Akame's story? Will it explain some of the plot holes that were left unanswered in the anime?


Sci-Fi Movie/Show Where a Soul is Captured in a Glass Vessel

I remember very little of this, I was quite young -  It was on television in the mid 90's, but seemed older. My wife was telling me about the 21 grams experiment and the memory clicked into place. Setting Inside of a mad scientist sort of lab, with the plasma balls and everything else, a character (Who in my mind resembles Gene Wilder in Young Frankenstein) is conducting an experiment. The room is hazy, lots of hues of purple and red. He has an assistant present. They were conducting some sort of experiment to try to figure out the secrets of immortality (or possibly reanimation). I remember them "trapping" a human soul in a glass vessel to see what it weighed or what kind of volume it took up - I believe they shot someone in this vessel, and because their soul could not "escape", they did not die.


How to format table with long column head entries?

I would like to create some kind of feature matrix with available classes in columns and implemented features as rows. Problem is, that the class names are quite long.  Rotating them by 90° simply looked quite silly, so am looking for alternate ideas.  The only idea I had so far was to write the heading text horizontally with a arrow (or similar) matching the "heading row" with a column. But frankly I have no idea how to do something like this in latex.  An minimal example of my naive approach looks like this.  \documentclass{beamer}  \usepackage{tabularx}  % I am actually using a custom theme % The space ``wasted'' is similar for PaloAlto though \usetheme{PaloAlto}  \begin{document} \frame {   \frametitle{Comparision of boost implemented graph classes}   \begin{tabularx}{\textwidth}{X c c c}     %     % Column Headers, first column is empts     %     & \rotatebox{90}{adjacency\_list}     & \rotatebox{90}{adjacency\_matrix}     & \rotatebox{90}{compressed\_sparse\_row\_graph}      \     %     % Rows, I suspect I need about 10     % Class               adjlist          adjmatrix     csrg     \hline      AdjacencyGraph        & Yes            & No          & Yes \\     Interface \#2         & Yes            & No          & Yes \\     Interface \#3         & Yes            & No          & Yes \\     Interface \#4         & Yes            & No          & Yes \\     Interface \#5         & Yes            & No          & Yes \\     Interface \#6         & Yes            & No          & Yes \\     Interface \#7         & Yes            & No          & Yes \\     Interface \#8         & Yes            & No          & Yes \\     Interface \#9         & Yes            & No          & Yes \\     % Rest omitted   \end{tabularx} } \end{document}    If its important: I am doing this for a presentation with beamer.


On the space of continuous functions of a second-countable space

Let $X$ be a locally compact, Hausdorff, second-countable space, and let $C(X,\mathbb{C})$ the space of continuous, complex-valued functions over X endowed with the uniform norm.  Is $C(X,\mathbb{C})$ separable?


How to split an integral exactly in two parts

This question is a by-product of a conversation with Theo Buehler in  to this answer. Let's settle definitions.  Definition Let $(\Omega, \mathcal{F}, \mu)$ be a measure space. We say that $X\in \mathcal{F}$ is an atom if $\mu(X) > 0$ and its only subset of strictly positive measure is $X$ itself. $\Omega$ is said to be non-atomic if no atoms exist.  So in a non-atomic measure space we can always split a measurable subset into smaller ones. Now the question is: have we got some control over this splitting? Can we split something in exactly two parts? I'm especially interested in the following.  Question Let $(\Omega, \mathcal{F}, \mu)$ be a non-atomic measure space and $f \in L^1(\Omega), f \ge 0$. Are there measurable and disjoint $A, B \subset \Omega$ such that $A \cup B = \Omega$ and   $$\int_A f(x)\, d\mu= \int_B f(x)\, d\mu=\frac{1}{2}\int_\Omega f(x)\, d\mu?$$


Why is the minimum size of a generating set for a finite group at most $\log_2 n$?

It seems to be known that the minimum size of a generating set for a finite group of order $n$ is at most $\log_2 n$. Can someone explain why this is true?  Edit: noted that the logarithm is base 2, and $n$ represents the order of the group.


What is an intuitive explanation of the Hopf fibration and the twisted Hopf fibration?

As the question suggests, what is an intuitive explanation of the Hopf fibration and the twisted Hopf fibration? Many thanks in advance.


Any idea how to launch the file manager gui from the command line

Any way to launch the Ubuntu file manager from the command line. Like you would launch say Visual code with code .?


I am investigating some odd behaviour on a sub-net, where host registration doesn’t list some of the IPs that some users report having. Now that I’ve seen evince, i want to passively scan for the presence of a rouge DHCP server, not listed in my domain. How might I do that?    Or rather, are there any Linux tools to list the DCHP servers within a domain? (I might write a script to search randomly, as I suspect the rouge DHCP server is not on all the time, or perhaps not acting as a DHCP server all the time.)


Is $\sum_{k=1}^{n} \sin(k^2)$ bounded by a constant $M$?

I know $\sum_{k=1}^{n} \sin(k)$ is . How about $\sum_{k=1}^{n} \sin(k^2)$?


$O$ is the point inside triangle $ABC$ . The lines joining the three vertices $A,B,C$ to $O$ cut the opposite sides in $K,L$, and $M$ respectively. A line through $M$ parallel to $KL$ cuts the line $BC$ at $V$ and $AK$ at $W$. Prove that $VM=MW$. I tried using the ceva's theorem in triangle $ABC$ and equating it with the relation obtained by Menellau's theorem . Then I used basic proportionality theorem and after using them I just got one relation. $$\frac {BK}{BV}=\frac {AL}{AP}$$  Now I am stuck please help me.


Voldemort has gained "immortality" via his horcruxes, but was his body immortal to age? Looking at all the questions about Voldemort and his horcruxes what was his plan to keep his body alive. We know his first Horcux was created at age 16, yet we see him age still so it seems like eventually his body would die of old age and his soul would be left in the half dead state he was in after his spell rebounded off Harry. What was his plan here, why would he not want something such as the elixir of life to keep his vitality?     While the Elixir of Life does indeed extend life, it must be drunk regularly, for all eternity, if the drinker is to maintain his immortality. Therefore, Voldemort would be entirely dependent on the Elixir, and if it ran out, or was contaminated, or if the Stone was stolen, he would die just like any other man. Thereafter, I am convinced, he intended to continue to rely on his Horcruxes: he would need nothing more, if only he could regain a human form. He was already immortal, you see ... or as close to immortal as any man can be.' (Albus Dumbledore)   Horcruxes seem to fail at something important, keeping you alive, they stop you from dying truly yes, but they don't keep you alive. Harry is shown over and over again to be able to beat better wizards because hes has faster reflexes both because of youth and his genetics, but presumably by 50 harry will not be as fast as his 16 year old self even considering their longer life expectancy. Why operate in a body of a 50 year old?


How to add Windows 10 (legacy BIOS mode) in GRUB (Ubuntu 16, UEFI mode)?

I need to add Windows 10 in GRUB.  Windows 10 I have installed in legacy BIOS mode. Similarly as in the screenshot:    Ubuntu 16 I have installed in UEFI mode.  $ [ -d /sys/firmware/efi ] && echo UEFI || echo BIOS UEFI   I have two hard drives. Each operating system is installed on a separate hard drive.  $ sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL NAME                    FSTYPE        SIZE MOUNTPOINT LABEL sda                                 465,8G             ├─sda1                  vfat         19,5G            RECOVERY ├─sda2                  ntfs        445,8G            Windows 10 └─sda3                  ntfs          450M             sdb                                 232,9G             ├─sdb1                  vfat          512M /boot/efi   ├─sdb2                  ext2          488M /boot       └─sdb3                  crypto_LUKS 231,9G               └─sda3_crypt          LVM2_member 231,9G                 ├─ubuntu--vg-root   ext4          224G /               └─ubuntu--vg-swap_1 swap            8G                   └─cryptswap1      swap            8G [SWAP]      sr0                                  1024M                .  On Windows, I run the following command:  C:\WINDOWS\system32>bcdboot C:\Windows /s C: /f uefi   I performed this command to create a bootable configuration.  In Ubuntu file /etc/grub.d/40_custom I added the following option:  if [ "${grub_platform}" == "efi" ]; then menuentry "Windows 10 (BCD-UEFI configuration on system drive /dev/sda2)" --class windows --class os {     insmod part_msdos     insmod ntfs     insmod search_fs_uuid     insmod chain      set root='hd0,msdos2'     if [ x$feature_platform_search_hint = xy ]; then       search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  8684C04C84C04103     else       search --no-floppy --fs-uuid --set=root 8684C04C84C04103     fi      chainloader /EFI/Microsoft/Boot/bootmgfw.efi } fi   UUID of the partition labeled "Windows 10":  $ sudo blkid /dev/sda2 /dev/sda2: LABEL="Windows 10" UUID="8684C04C84C04103" TYPE="ntfs" PARTUUID="76692ca8-02"   The problem is booting Windows 10 does not progress further the Windows logo.


A DNS Master zone file has been transferred to a slave, but I cannot read the zone file:  > less db.example.com  "db.example.com "may be a binary file.  See it anyway?   This happened after I used this command:  cp -r /usr/local/sbin/* /usr/sbin/.   I installed bind V.9.9 instead of V.9.6. I would like to be able to read the zone file as plain text.


Print the system clipboard content in bash

There is a way to put some command output to system clipboard via xclip.  some-command | xclip -selection clipboard   I'd like to perform a reverse task - Print system clipboard to terminal. How it can be done?


If we can't clone quantum states, then how does stimulated emission work?

So we know we cannot fully copy a quantum state. But doesn't stimulated emission does just that? Say, a photon in a particular qubit state $|\psi\rangle = \alpha |0\rangle + \beta |1\rangle$ passes through an excited atom, which is then stimulated to produce another photon of the exact same state $|\psi\rangle$.   So how does this work? Clearly no (projective) measurement has been made on the photon by the atom, so it's a unitary evolution of some sort? Or perhaps that's where I misunderstand; that the evolution is some CP map instead because by focusing on the photon (or more accurately the quantum electromagnetic field) alone we have 'traced out' the mechanisms inside the atom?  If that's the case, then what is the map?  As a beginning student, this is somewhat puzzling.


I have list on my website like this:
     @foreach($profiles as $profile)
{{ $profile['name'] }}
     @endforeach

   When I add new element to this list using function below:  $("#addNewProfileButton").on("click", function () {     profileName = $("#newProfileInput").val();     $("#newProfileInput").val('');     $.ajax({         method: 'GET',         data: {             profileName: profileName         },         url: '/addNewProfiles'     }).success(function (newProfile) {         console.log(newProfile);         $("#listProfiles li:last").after('
' + newProfile.name + '
');      }).error(function (msg) {         console.log(msg);     }); });   it's added properly but not clickable using this:  $("#listProfiles li").click(function () {     profileId = $(this).attr('profileId');     $.ajax({         method: 'GET',         data: {             profileId: profileId         },         url: '/spiderProfileDetails'     }).success(function (msg) {         $('#profileResult').html(msg);     }).error(function (msg) {         console.log(msg);     }); });   All other elements are clickable. New element becomes clickable after refreshing the website. How to make it work without refreshing?


How do you say optional-ness?  I looked at a lot of synonyms of optional to try to find something I could turn into a noun, but nothing looked very good.  Example sentence:     If what I wrote doesn't indicate clearly that I'm suggesting an optional alternative assignment, then I would invite you to help me phrase the optional-ness more clearly.    Update:     If what I wrote doesn't indicate clearly that the alternative assignment I'm suggesting is optional, and not required, then I would invite you to help me phrase the lack of necessity more clearly.


Eclipse android developer an internal error occurred

An internal error occurred during: "Launching app". java.lang.StackOverflowError. Got red exclamation marks on both my main android project and my test project. in my logcat it says:   Error invoking for backup on @pm@ stackoverflow   Anyone have any idea what parts of the project I should check?


How to increase the spacing between equations in "gather"?

Is there a way to consistently increase the vertical spacing between equation lines in a gather (or gather*) environment from amsmath?  Specifically, I want to produce something like  \begin{gather*} a = b \\[2ex] c = d \\[2ex] e = f \end{gather*}   without having to write [2ex] at the end of each equation line.  I can think of some hacks that redefine \\ to automatically add the spacing, but is there some cleaner/better way to achieve this?


Null pointer exception while using Trigger.newMap.keySet()

I have a requirement to update contact field on MC Subscriber Activity when the contact email id matches with MC Subscriber Activities field. Below is my trigger: trigger MCActivityonContact on MC4SF__MC_Subscriber_Activity__c (before insert, before update) {      Map<string,Contact> mapAccountCodeWithAccount = new Map<string,Contact>();      for (Contact Con : [select id,email from Contact where Email != Null ]){                  mapAccountCodeWithAccount.put(Con.Email,Con);     }    list<string> lstSplittedFields = new list<string>();     set<Id> ids = trigger.newMap.keySet();     List<MC4SF__MC_Subscriber_Activity__c> activitiesWithSubscriber = [SELECT Contact__c, MC4SF__MC_Subscriber__r.Name FROM MC4SF__MC_Subscriber_Activity__c WHERE Id IN :ids];     lstSplittedFields =  activitiesWithSubscriber[0].MC4SF__MC_Subscriber__r.Name.split('-');     for(MC4SF__MC_Subscriber_Activity__c mc : trigger.new){                  if(mc.MC4SF__MC_Subscriber__c != null){         if(mc.Contact__c ==null){             if(mapAccountCodeWithAccount.containsKey(lstSplittedFields[0].trim())){                 mc.Contact__c = mapAccountCodeWithAccount.get(lstSplittedFields[0].trim()).Id;             }         }     }     } }  But when the above trigger condition is met, I am getting null pointer exception for trigger.newmap.keySet() for before insert. However, for before update, it is working fine as expected. Can anyone please suggest the changes from the above code so that i can get this work for before insert as well. Thanks!


The integral of $\frac{1}{2x}$ is $\frac{\ln(x)}{2}$, but can't it also be $\frac{\ln(2x)}{2}$ or $\frac{\ln(3x)}{2}$?  Is there a special reason for $\ln(Ax)$ to have identical derivatives?


GeoJSON EPSG::3857 to normal format (example normal format for Mapbox studio)

I'm really a novice in the field of the Geographic Information Systems (not to say that I don't know anything about it), but I retrieve via a WFS service some GeoJSON data. The problem is when I want to import these data into Mapbox dataset, I get an error saying Input failed. Datasets don't support features outside longitude +/-180, latitude +/-90. (which I thought was normal before I realized that there are several "standards" if I understood correctly). In Mapbox tilesets I  had the following message old-style crs. Looking at the json file I see: crs:EPSG::3857. So my question is how to convert these GeoJSON data into a more "conventional" format, especially to be able to import them into Mapbox data. PS here a sample of my json : {     "type": "FeatureCollection",     "features": [{         "type": "Feature",         "id": "id1",         "geometry": {             "type": "MultiPolygon",             "coordinates": [                 [                     [                         [-178543.91187612, 5882448.58513225],                         [-178577.52460631, 5882357.92829031],                         [-178596.91742747, 5882324.55133574],                         [-178626.66849743, 5882300.02122665],                         [-178661.20199806, 5882290.4923541],                         [-178543.91187612, 5882448.58513225]                     ]                 ]             ]         },         "geometry_name": "the_geom",         "properties": {             "limite": "50m *",             "bbox": [-178661.20199806, 5882290.4923541, -178543.91187612, 5882448.58513225]         }     }, {         "type": "Feature",         "id": "id2",         "geometry": {             "type": "MultiPolygon",             "coordinates": [                 [                     [                         [-347809.38958008, 6020388.58369802],                         [-348032.50431796, 6020261.6016117],                         [-347957.11952919, 6020410.60267021],                         [-347921.2199014, 6020429.137701],                         [-347881.08191941, 6020433.52972921],                         [-347842.04256863, 6020423.19474383],                         [-347809.38958008, 6020388.58369802]                     ]                 ]             ]         },         "geometry_name": "the_geom",         "properties": {             "limite": "50m *",             "bbox": [-348032.50431796, 6020261.6016117, -347809.38958008, 6020433.52972921]         }     }],     "totalFeatures": 65908,     "numberMatched": 65908,     "numberReturned": 5,     "timeStamp": "2020-12-28T23:54:17.923Z",     "crs": {         "type": "name",         "properties": {             "name": "urn:ogc:def:crs:EPSG::3857"         }     },     "bbox": [-350088.63932757, 5882290.4923541, -178543.91187612, 6021659.01574107] }


How am i supposed to download an older version of Ubuntu

Im confused looking for an older version of Ubuntu, i know that you can download it using bittorrents but is there any other way, just by desktop downloading. I just want desktop ubuntu 16.04 version. not the latest one.


What is the correct way of getting the  (more or less what the now deprecated GetVersionEx does, but without lying).  Please don't tell me that I shouldn't use version checking, or that I should use . It's not for version checking but for generating a report. And it should also work in future versions of Windows (e.g Windows 11 or whatever)


Can QGIS export Geospatial PDF for Avenza PDF map app?

Since QGIS uses GDAL, does any map exported as a PDF become a Geospatial PDF? I am hoping to import maps from QGIS into the Avenza PDF Map app on my phone. Previous posts mentioned exporting as Geospatial PDF's and GeoTiff's, but none had an exact answer or process.


does view all permission on an object override OWD value of Private

if a  user has view all access on a custom object using a permission set, will he be able to access all the records of all users even if OWD is set to private ?  if user has only view access on custom object using a permission set, will he not be able to access all the records of all users if OWD is set to private ?


Create file/folder permission without delete permission

Is there a way I can set create file/folder permissions for a user in Windows 7 without giving delete permission for a folder?  I don't want the user to delete any files in that folder, but he should be able to make new files,rename them, and copy new files to that folder. Is this possible in Windows?


Autofilling fields based on another field

I have a very complex situation where I need some advice. I have a content type my_content, which has a field collection field attached to it field_mycollection, which has an entity reference field referencing to user field_my_userreference, a phone field field_my_phone, a text field field_my_text, and another text field field_my_anothertext.  My Content |_ field_mycollection    |_ field_my_userreference    |_ field_my_phone    |_ field_my_text    |_ field_my_anothertext   The user entity has also have fields field_my_phone, field_my_text and field_my_yetanothertext which the latter has a different machine name.  What I want to do, if in my_content edit/add form, in field_my_userreference a user is selected, the other fields should be auto-populated from the selected user's data. The auto-populated fields should still be editable.  How could I achieve this goal? I'd like to do it, if possible, with some coding, using hook_form_FORM_ID_alter().


How small a quantity should be added to x to avoid taking the log of zero?

I have analysed my data as they are. Now I want to look at my analyses after taking the log of all variables. Many variables contain many zeros. Therefore I add a small quantity to avoid taking the log of zero.   So far I've added 10^-10, without any rationale really, just because I felt like adding a very small quantity would be advisable to minimize the effect of my arbitrarily chosen quantity. But some variables contain mostly zeros, and therefore when logged mostly -23.02. The range of the ranges of my variables is 1.33-8819.21, and the frequency of zeroes also varies dramatically. Therefore my personal choice of "small quantity" affects the variables very differently. It is clear now that 10^-10 is a completely unacceptable choice, as most of the variance in all the variables then comes from this arbitrary "small quantity".  I wonder what would be a more correct way of doing this.  Maybe it's better to derive the quantity from each variables individual distribution? Are there any guidelines about how big this "small quantity" should be?  My analyses are mostly simple cox models with each variable and age/sex as IVs. The variables are the concentrations of various blood lipids, with often considerable coefficients of variation.  Edit: Adding the smallest non-zero value of the variable seems practical for my data. But maybe there is a general solution?  Edit 2: As the zeros merely indicate concentrations below the detection limit, maybe setting them to (detection limit)/2 would be appropriate?


SPWeb.getFile(Url) exception : value does not fall within the expected range

I suffer from a problem of      value does not fall within the expected range   from below code.           string webUrl = "/_layouts/15/wfcourrierdep/ArticlesList.aspx";                 string fullpath = SPUtility.GetFullUrl(SPContext.Current.Site,                    webUrl);          SPFile file = web.GetFile(fullpath);   What can the cause be?


any implication of using a regular function instead of function expression within a js module pattern?

With a js module pattern, I think functions are commonly defined like this:  var loadData = function(myParam1, myParam2){}   However, the js module pattern still works with functions defined like this:  function loadData (myParam1, myParam2){}   Is there any practical reason to define functions as variables in a js module?  Is a function variable generally expected from a design standards perspective for a publicly exposed method within a js module?  Or is the implementation style really more of a matter of personal preference?


Force Alt + Tab switcher to display applications from active workspace

After upgrading to 11.10, the behavior of applications switcher (Alt + Tab) has changed. Now it displays applications across all workspaces. I have a lot of windows opened when working. I'm grouping opened applications to separate sets which are placed on different workspaces. This is how I found myself be more productive. But now it became totally time consuming, if I need click "tab" button more than 10 times while I reach some app.  How can I force the windows switcher to display only applications from current workspace?


I'm looking to upgrade all my pouches, but some animals are hard to find, or the part needed drops rarely.  Is there a merchant somewhere that sells them outright? I have shards to spare.


I'm brand new to Ubuntu (and linux all together). I just installed Ubuntu 12.10 on my Lenovo S10e, and I'm trying to play movies that I loaded from my external HD onto the netbook. I've tried 4 different files, but none are working in either the standard Ubuntu video player or VLC. The only thing that shows up is the VLC cone in the display window.   I have no idea if the graphics driver was installed or not, and if it wasnt I dont know how to do that in Ubuntu.   I have 1.5gb of ram installed, so I doubt thats the issue. Anyways, i'm not very computer saavy, but I'd appreciate any help. Thanks you in advance.


mysql character encoding with Turkish text

I'm trying to save a wordlist to my database. Wordlist is a text document with utf-8 encoding. And here is my table structure;  CREATE TABLE IF NOT EXISTS `wordlist` (   `id` int(11) NOT NULL AUTO_INCREMENT,   `kelime` char(64) COLLATE utf8_turkish_ci NOT NULL,   PRIMARY KEY (`id`),   UNIQUE KEY `kelime` (`kelime`) ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_turkish_ci AUTO_INCREMENT=1140209 ;   Here is the php code that adds the words;  <?php ini_set('max_execution_time', 3000); $handle = @fopen("wordlist.txt", "r");  if ($handle) {     include("ekle.php"); // makes db connection     $sql = "insert into wordlist (kelime) VALUES (?)";     $dbh->beginTransaction();     $sth = $dbh->prepare($sql);     while (($buffer = fgets($handle, 4096)) !== false) {         $sth->execute(array(trim($buffer)));     }     if (!feof($handle)) {         echo "Error: unexpected fgets() fail\n";         $dbh->rollBack();     } else {         $dbh->commit();     }     fclose($handle); }?>   My databases' default collation is also utf-8_turkish_ci. When I add the words, my wordlist looks wrong on phpmyadmin;   What am I doing wrong here?


how to unmoplease guide me on how to unlock the partition in G parted as I want to allocate space to other Operating system?unt the locked


How to install unicode-math on Ubuntu 12.04 (Precise Pangolin)?

I want to install unicode-math to use with XeLaTeX. I use ubuntu 12.04 LTS (because of some incompatibilities of later kernel versions with my HW).  Is there a way to install unicode-math package? I tried to install it through apt-get install texlive-math-extra, but it doesn't seem to be in that package.


How to output the final value of some counter, like number of figures or tables in the middle of the document?

I need to put some formal statistics on the document itself somewhere in the middle, like "This document contains XXX figures and YYY tables (and may be even ZZZ formulas and PPP theorems)". Is there a common way to output the final value of some counter in the middle of the document?  Edited after answering: I have asked a more specific question before, "How to output the number of bibliographic entries referenced in the document?", which is now deleted because the answer to this one covers also this case.  For the reference, some useful counters, which can be used with totcount:   page - page count enumiv - bibliography entries count figure - figures count table - tables count


Why doesn't the Sun appear green to our eyes?

The spectrum of the Sun as seen at sea level can be seen at  so we can see that wavelengths around green to yellow are the ones that are the most present. The human eye seems to be more sensitive to green wavelengths (around 555 nm which is plain green) compared to others: see .  However the Sun appears mostly white/yellowish.  I don't understand why. The human eye sensitivity for orange/yellow/blue is lesser than for green. Much lesser in case of red wavelength. So even though the spectrum is a continum of all these wavelengths why is the eye fooled toward white?  And why more toward yellow than green?  Thanks.