I am trying to modify the data source of a raster layer in python, then update my composer and finally save it.  To modify my data source I found what is needed here:   The problem is that I lose the symbology of this layer in the legend of my composer. I tried different codes but none update my composer legend :  iface.activeComposers()[0].composition().refreshItems()  for i in iface.activeComposers()[0].composition().items():     if isinstance(i,QgsComposerLegend):         legend = i         legend.updateLegend()   The only solution I found at the moment is to use the "setAutoUpdateModel" method on my legend and switch to True / False Auto Update to force the legend's update, but this solution is not optimal.  => I wish I could just update the symbology for a particular layer in the legend of my compose (a bit like when in the interface of my composer I click on my legend then in "property of the object" right clicks on my layer and "back to default").  Would anyone have an idea to do that?  EDIT :  I have found a solution here :    My new code :   for legendLyr in iface.mapCanvas().layers():         renderer = legendLyr.renderer()         myRenderer = renderer.clone()         legendLyr.setRenderer(myRenderer)         legendLyr.triggerRepaint()   Now my composer legend is refresh !


CentOS 7.0 - what kernels can i install ? yum does not show all

I am using CentOS 7 - CentOS Linux release 7.0.1406 (Core)  I want to download a newer kernels, I know the following kernels are available for CentOS7.X release:  3.10.0-123, 3.10.0-229, 3.10.0-327, 3.10.0-514  But when i yum info i receive the following:    [admin@CentOS70 ~]$ yum list --showduplicates kernel Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile  * base: centos.spd.co.il  * extras: centos.spd.co.il  * updates: centos.spd.co.il Installed Packages kernel.x86_64                                                                      3.10.0-123.el7                                                                           @anaconda Available Packages kernel.x86_64                                                                      3.10.0-693.el7                                                                           base kernel.x86_64                                                                      3.10.0-693.1.1.el7                                                                       updates kernel.x86_64                                                                      3.10.0-693.2.1.el7                                                                       updates kernel.x86_64                                                                      3.10.0-693.2.2.el7                                                                       updates kernel.x86_64                                                                      3.10.0-693.5.2.el7                                                                       updates [admin@CentOS70 ~]$   Why yum does not offer me to install  3.10.0-327 ? How can i present them all ?    My goal is to make a base machine that contains all the kernels. since CentOS 7.4 cannot install 3.10.0-123.el7, i will get the lowest version of 7 (7.0) and install all kernels on it.    When trying to add new repository i get connection reset by peer error.      name=CentOS-7.0 - Base #mirrorlist=http://mirrorlist.centos.org/release=$releasever&arch=$basearch&repo=os baseurl=http://vault.centos.org/7.0.1406/os/x86_64/ #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7


Differentiable but not continuously differentiable.

Given $f: \mathbb{R} \rightarrow \mathbb{R}$ defined as $$f(x)=\left\{\begin{array}{cc}x^2\sin\left(\frac{1}{x}\right)&,x\neq 0\\ 0&,x=0\end{array}\right\}.$$ I am trying to prove $f$ is differentiable at $x=0$ but not continuously differentiable there.


Setting relative paths to temporary files in ModelBuilder using ArcGIS

I have create a model in modelbuilder using ArcGIS where everything works on my PC but whenever I try run it on a different PC issues arise due to the model trying to save the temporary files to my PC. Please note that the model is set to use "relative paths".  How do I get the model to also use relative paths for temporary files so that the model can run on other PC's?


Can't "detexify" this symbol for the exponential function

I saw on  site,     As you can see it is something like a $\mathbb{e}$, except that using $\mathbb{e}$ would not produce output at all.   Also the imaginary unit has the same style, can someone provide a way to reproduce it in LaTeX?  EDIT:  I'm adding two more detailed images in the hope that someone will implement a math font for these symbols


Is there a way to increase of the chance of a Solar Eclipse?

In Terraria, I am trying to get all of the Music Boxes. But, my luck has not led me to a Solar Eclipse. Is there a way to increase the chance of one happening?


Class with a type template member - linking error

I am not an expert of C++ so please, forgive my question. I am trying to create a class with a member that could be of any value.  Something like this:  class Input {  private:     string         name;     AnyValue      value;  }   where AnyValue may be: int, float, string. I came up with this:  .h  template <typename Value> class Input {  private:     string name;     Value  value;  public:      Input<Value>(string name);  }   .cpp   template <typename Value> Input<Value>::Input(string name) {      this->name = name;     this->value = 0; }                               template <typename Value> void Input<Value>::setValue(Value value) {    this->value = value; }  template <typename Value> Value Input<Value>::getValue(void) {     return value; }   main is   int main(int argc, const char * argv[]) {     Input<int> i1 = Input<int>("i1"); }   Problem is that I get this error message from the linker:  Undefined symbols for architecture x86_64: "Input<int>::Input(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)", referenced from:   _main in main.o   but I cannot understand what I am missing.


Unable to install Windows 10 in existence of error grub rescue

I have deleted Ubuntu from my PC. When I restart my PC an error occurs that is Grub Rescue. I already run set command. Now I just want to install Windows 10. My PC does not allow me to start installation process. i already follow the instruction given in the reference link. My PC not start boot setup  even selection from boot setting. its give me grub rescue command screen. I have tried all possible solution from internet fro example setting of prefix and repair from boot setup  etc.....hop my comment will explain my problem.


Problem related polynomial ring over finite field of intergers

if $f(x)$ is in $F[x]$.  $F$ is field of integer mod $p$. $p$ is prime and $f(x)$ is irreducible over $F$ of degree $n$ . prove that $F[x]/(f(x))$ is a field with $p^n$ elements.


What does [something] in front of a method in c# does/used for?

[System.Web.Services.WebMethodAttribute(), System.Web.Script.Services.ScriptMethodAttribute()]     public static string[] myfunc(string a)     {           // do stuff     }   What does the stuff inside the [] do or used for?


How is human biological clock modelled in modern science?

Im an engineer by education and i program a lot, so the question sounds weird to people from other disciplines.  Im trying to better understand the human biological clock. Yet i do not really know what it is. I read about clock genes, endogenous cycles, and other observed phenomena that is time sensitive or cyclical in nature. But is there a centralized model of what the circadian rhythm is or how itis exhibited within the human body?   For example an electrical clock can be modelled with feedback loops or electrical flip flops that control the timing. Ive seen the heart modelled as Van Der Pol oscillator.  Does modern science have some notion of how the "master" clock within the human body work? Is there a feedback or an oscillator model of the master clock?  Thank you for any articles or keywords that ican use to research this question!


Are there better climate data than Worldclim for Europe?

I am looking for the best available climate data in Europe. Worldclim seems to be the best source of information for global data, but I am wondering if there is a higher resolution (better than 1km cell size and/or 1 month temporal resolution) product in Europe. (I've seen on this site that PRISM is great for the USA, but I couldn't find anything similar for Europe).    EDIT : my purpose is to use the dataset for ecological modeling.  EDIT: if you use another dataset, I am very interested in knowing why it is used instead of worldclim.


I am undertaking a course of Machine learning by Prof Ng on coursera. I wish to know what notes or any reference material I should refer as along the course there are number of doubts that I wish to understand.  So what text should I prefer for it?


Let $A$ a finite ring. Prove that $A$ is a field, or $A$ has zero divisors.    I begin to assume that $A$ has no zero divisors but I don't know continue... \  How would be this proof? thanks! :)


Is there any good to-do app for Ubuntu? Need some to plan my university life. Best would be with a chance to pin it on desktop screen like sticky notes in Windows.


How to remove Wordpress' Jetpack plugin completely?

I had Wordpress' Jetpack installed but I want to completely remove it from my page. I deactivated the plugin and clicked on Delete in the WP Dashboard.  The files are deleted now, but in the database wp_options I can still find values for option names:  _transient_timeout_jetpack_https_test _transient_jetpack_https_test jetpack_file_data jetpack_available_modules jetpack_log   So my question is, if I delete the above mentioned Options is Jetpack than completely removed or do i have to do other steps? I can not find any resource which teaches about removing Jetpack completely and clean...  Thanks


Sometimes, I want to mark a section of my manuscript for later inspection. So far I have been using a different color, but I really do not like it. I was wondering if I can draw a black strip on the margin. Ideally, it should work across pages and with equations. I believe it should be possible to do since draft mode already does something similar. But I do not know where to start.  MWE for testing:  \documentclass{article} \usepackage{lipsum} \newenvironment{marked}{}{}  \begin{document} \lipsum[1-4] \begin{marked}   \lipsum[5]   \[ x = y\]   \lipsum[6] \end{marked} \end{document}   Desired output:


every time I want to update software this message pops up "he repository ' eoan Release' does not have a Release file.". How to fix this?


Triangle inequality for integrals with complex valued integrand

This is a step in a lecture note I'm reading. It should be simple because the author considers it obvious but I can't see it. What am I missing?  Suppose $U$ and $V$ are integrable over measure space $(\Omega,\mathcal{F},\mu)$. Claim: $$ \int_\Omega\sqrt{U^2+V^2}d\mu\geq\sqrt{\left(\int_\Omega Ud\mu\right)^2+\left(\int_\Omega Vd\mu\right)^2}. $$ Alternative phrasing: with $Z=U+iV$, claim that  $$ \int_\Omega|Z|d\mu\geq\left|\int_\Omega Zd\mu\right|. $$ Thank you for your time!


string array contain duplicate value and remove and print the array

Sorry to Ask this question Again i had found alot in forum.But as of new to java am Excepting with Explanation  code i tried in my way  but it not working .i tried without any default method the code have to work for this program  Code:      package javatest;  public class Test03sep {      public static void main(String args[])      {                         //0   1            2    3         String []val={"amma","senthil","kumar","amma"};         removeduplicate(val);     }     static void removeduplicate(final String []arr)     {          String temp="";              for (int i = 0; i < arr.length; i++)               {             for (int j = i+1; j < arr.length; j++)               {                 System.out.print("condition are:");                  System.out.println(arr[i]==arr[j]);                   if(arr[i]==arr[j])                      {                      temp=arr[i];                      arr[i]=arr[j];                      arr[j]=temp;                       }          }             for (String string : arr) {                 System.out.println("string array are==>"+string);             } }     } }   output:  condition are:false condition are:false condition are:true string array are==>amma string array are==>senthil string array are==>kumar string array are==>amma condition are:false condition are:false string array are==>amma string array are==>senthil string array are==>kumar string array are==>amma condition are:false string array are==>amma string array are==>senthil string array are==>kumar string array are==>amma string array are==>amma string array are==>senthil string array are==>kumar string array are==>amma   But i am Excepting the output are String array are===>{"amma","senthil","kumar"};  could some one can guide on this please????


Can two different planes share the same flight number?

There's a daily flight, let's call it AB 1234 which leaves at 11am with a flight duration of more than 13 hours.  I noticed that every day, the same flight AB 1234 leaves at 11am.  It seems physically impossible for the same plane to travel 13 hours and return in about a similar amount of time to still make the next day flight.  Is it possible for two or more different planes to share the same flight number?


Future humans build using dirt, go to war over small amounts of it

I am looking for a short story that I read in the 1970s (It may have been published in the 60s) about humans using the Earth's dirt to make stuff; as a result the Earth has shrunk and is smaller than the moon; also how nations go to war over a country's amount of dirt; Microcosmic God was in the same book.  Bought book through a science fiction book club; a collection of short stories.


What is the difference between Virtual Terminal and Pseudo Terminal?

Is a Virtual Terminal the terminal that you get when you type Ctrl+Alt+F#, and which is represented by the file /dev/tty#.  While a Pseudo Terminal is a terminal that actually runs "inside" a tty, for example: gnome-terminal, xterm, etc. And which is represented by the file /dev/pts/#.  Am I correct?


How Do I Center Product Title And Pricing Info On My Shopify Website?

I'm trying to figure out how to center the title of the product I'm selling on my website (Safe Guard Lenz) as well as center the pricing details that's under the product title as well. I need them centered for both mobile and desktop. It's located at the bottom of the home page and on the product page itself. Ideally would want it centered for both. Any help to achieve this would be greatly appreciated as I've been looking for a solution for this online and can't seem to have any success. My website is safeguardlenz.com and the password is: Bebe Thank you!


There are plenty of people who still raise this concern, Since I too use such editors, I’ve compiled this list of best LaTex editors  with good facilities and features. Here are the top ones that I could recommend:  TEXMAKER  Website:   TEXSTUDIO  Website:   LYX  Website:   TEXWORKS  Website:   TEXNIC  Website:   LED  Website:  Source:  I hope this information helps you. Cheers!!


How do I skip something files when i use * to specify the path?

I plan to use the terminal to modify the file permissions in the folder in batches. command like it chmod +x /users/abc/123/*.py  But I had some problems, there are a few special files I cannot move it, at the same time, I don’t want to modify its permissions, so I want to skip some specified files when executing this command. So can I add anything to this command to skip the modification of the specified file? Maybe this is a very simple question, forgive me for being so stupid. If it is not feasible in the end, I plan to make a sh file, and avoid it by temporarily renaming it. sh command line like mv /users/abc/123/456.py /users/abc/123/456.pybak chmod +x /users/abc/123/*.py mv /users/abc/123/456.pybak /users/abc/123/456.py  But I still hope to solve it more simply.


How to remove a flag on a comment? The retract flag button won't work for comments

I am wanting to remove a flag I posted on a comment on EL&U, and can't see how to remove it, there is no 'retract flag button'.  I can't see how to do it in the help centre and would like to know if you can.


To stop href event in the dom and proceeding with DOM event?

i am currently using <a href="somelink.com"><a/> and on click the href the href and Dom event both are called i need only DOM event to be called href should be only used for opening link in new tab


Do I need a transit visa to visit London?

I'm a Tunisian citizen residing in Jordan and flying to the USA for a round trip. I have a long layover of 20 hours in Heathrow airport and want to visit London. Do I need a visa to explore London?  Many thanks in advance.


Ubuntu 18 hot key shortcut not working on ALT + Space

Recently I have upgraded to Ubuntu 18. One thing is not working which was really helpful as a developer, to avoid using mouse which is ALT + Spaceand then press C to close the window.    Please help.


I have a selection in Photoshop that looks like this:    When I Paint Bucket (or Edit-Fill), it comes out all wrong and fills half wrong and half too far:    What am I missing? How can I get it to fill the selection exactly? You can see my fill settings at the top.


Is there a way to prep mutton in order to ease its strong flavor?

Mutton has a slightly "gamey" flavor, is there a way to prep it before cooking which reduces this "gamey" flavour?


wikipedia.org and wikimedia.org: how are they hosted?

Pinging either of them echoes back from an ip address of 198.35.26.96. So whatever PC's these two websites are hosted on, they are connected to the internet by a common router, which is then port-forwarded to either of these PC's, right? And both of these two forwarded ports are registered with the corresponding domain names wikipedia.org and wikimedia.org, right?  But ip-address.org shows that the ip 192.35.26.96 has Wikimedia Foundation as internet service provider, and text-lb.ulsfo.wikimedia.org as ip host.  I didn't know Wikimedia Foundation would count as an ISP; I thought the ISP would be some other networking firm with a wireless tower here and there(you got the idea), who connects wikipedia with the world with a strong broadband connection. Also the IP host is a subdomain of wikimedia.org, which is equally puzzling. How could wikimedia.org be defined and registered even before the IP host had been defined and registered?  If my picture of the networking world is naive, please clarify why.


What does 'Truth-level' mean in Particle Physics?

I am sorry to ask an obvious question but I have tried looking this up on Google and cannot get an answer. In particle physics, when it is said that something is 'truth-level', what does that mean?  For example, if someone is referring to a 'truth-level' jet or a plot of jet masses at truth level, could someone explain in layman's terms what this actually means?


Let $a,b\in\Bbb{N}$ such that $\gcd(a,b)=1$ and $n,r\in\Bbb{N}^*$. If $ab=n^r$ then there exists $k,l\in\Bbb{N}$ such that $a=k^r$ and $b=l^r$.

If $ab=n^r$ then there exists $k, l \in \mathbb{N}$ such that $a=k^r$ and $b=l^r$.  To prove this statement, I try to start by writing : $ab=n^r=p_{1}^r...p_{n}^r$ where the $p_i$ are pairwise distincts prime numbers (in fact pairwise coprime).  So, $a$ and $b$ in their prime factor decomposition meet some of the $p_i^r$. Then if we consider all the $p_i^{r}$ which divide for example $a$ then the product of the $p_i^{r}$ divide $a$. Moreover this product is coprime with $b$ so we can deduce using Gauss that : $a=x \prod p_i^{r}$.  Same with $b= y \prod p_j^{r}$.  Then as $a$ and $b$ are coprime necessarily $x$ and $y$ are coprime too. So $x=1$ or $y=1$ or both are equal to $1$. We can also have $x=p_i$ and $y=p_j$.   In every case we have found the positive integer $k$ and $l$.  I think my attempt to proof this statement is a bit unclear with the second paragraph. Is it possible to improve it or try a different approach ?  Thanks in advance !


How to group concat on this result set in mssql

How to modify and apply concatination on the following result  This is the first table:  DECLARE @item_tbl TABLE ( ItemId INT,Title NVARCHAR(20)) INSERT INTO @item_tbl VALUES (1,'Title 1'),(2,'Title 2') ,(3,'Title 3'),(4,'Title 4'),(5,'Title 5')   This is the second table:  DECLARE @item_ref TABLE (ReferenceId INT, FromItemId INT, ToItemId INT)  INSERT INTO @item_ref VALUES(1,1,2),(2,1,3),(3,4,5),(4,5,1)   There is some interelation between table 1 & table 2  SELECT AA.Title, ISNULL(BB.Hasreferenceto,'') Hasreferenceto, ISNULL(CC.Isreferencedfrom,'') Isreferencedfrom FROM   @item_tbl AA LEFT JOIN ( SELECT A.FromItemId, B.Title Hasreferenceto FROM @item_ref A LEFT JOIN @item_tbl B  ON A.ToItemId =B.ItemId  ) BB ON AA.ItemId = BB.FromItemId LEFT JOIN ( SELECT C.ToItemId, D.Title Isreferencedfrom  FROM @item_ref C LEFT JOIN @item_tbl D ON C.FromItemId = D.ItemId ) CC ON AA.ItemId = CC.ToItemId   This is giving me:  +---------+------------------+--------------------+ | Title   | Hasreferenceto   | Isreferencedfrom   | +---------+------------------+--------------------+ | Title 1 | Title 2          | Title 5            | +---------+------------------+--------------------+ | Title 1 | Title 3          | Title 5            | +---------+------------------+--------------------+ | Title 2 |                  | Title 1            | +---------+------------------+--------------------+ | Title 3 |                  | Title 1            | +---------+------------------+--------------------+ | Title 4 | Title 5          |                    | +---------+------------------+--------------------+ | Title 5 | Title 1          | Title 4            | +---------+------------------+--------------------+   What i want is:  +---------+------------------+--------------------+ | Title   | Hasreferenceto   | Isreferencedfrom   | +---------+------------------+--------------------+ | Title 1 | Title 2, Title 3 | Title 5            | +---------+------------------+--------------------+ | Title 2 |                  | Title 1            | +---------+------------------+--------------------+ | Title 3 |                  | Title 1            | +---------+------------------+--------------------+ | Title 4 | Title 5          |                    | +---------+------------------+--------------------+ | Title 5 | Title 1          | Title 4            | +---------+------------------+--------------------+   Can someone help in this please?


Positioning content at the top of a beamer slide (by default)

When I create beamer frame, the content is centred in the slide. How do I make the content move to the top of the slide by default?


Sanitizing user input, and then redisplaying later in php

I have been trying to sanitize user input for saving safely in the database and then redisplaying.  If a user enters something like M'Cain for the name, how should I sanitize it before sending to the database, and then when reading back, deal with it so that it displays correctly.  Currently I am using sanitize_text_field which adds the \ before the apostrophe, but this then displays when I display it back.   Do I simply use strip_slashes before outputing back to the screen or another function?


I have a table with some condensed information, and want to have in it links to figures (a lot), that illustrate some of the observations in the table.   Anyway, if the figures look like:  \begin{figure}  \includegraphics{blah} \caption{blaaaah} \label{pic:label1}  \end{figure}   then a \cref{pic:label} creates a link - okay - but by clicking on it the view is positioned such, that the caption is on top. (To put the label before caption is even worse - it takes the caption of the previous figure).  Can I make the link such, that it centers on the picture and not way below. For, say, paragraphs, putting them on top of the screen is reasonable, but for figures it's rather a bug, isn't it?  Surprisingly, I didn't find such a question here yet? Do I have to create a container around the floatfigure? Can tikz help?


Retrofit2 java.lang.NullPointerException: storage == null

Using Retrofit2 to parse JSON in but getting NULL pointer exception & I don't know why? JSON response:  { "query": {     "count": 1,     "created": "2016-04-29T17:19:45Z",     "lang": "US",     "results": {         "quote": [{             "name": "Talon",             "tix": "50.0000",             "avg": "34757600",                  }]               }         } }   Query class:  public class Query {  @SerializedName("query") private String query = null;  }   Results class:  public class Results {  @SerializedName("results") private String results = null;  @SerializedName("results") private List<Quote> Quotes; public List<Quote> getQuotes() {     return Quotes; } }   Quote class:  public class Quote {  @SerializedName("name") private String Name; public String getName() {     return Name; }  @SerializedName("tix") private String Tix; public String getTix() {     return Tix; }  @SerializedName("avg") private String Avg; public String getAvg() {     return Avg; }  }   Error returned in Android Studio logcat: java.lang.NullPointerException: storage == null at Activity.java:60. That line contains:  data = new ArrayList<>(Arrays.asList(jsonResponse.getQuotes()));   I'm not certain if the NULL is because the model classes aren't correct or something else & uncertain how/where to begin to fix it? I've looked at 4 other questions that have the same error but none were using Retrofit or JSON...


What is the difference between fastboot oem unlock and fastboot oem unlock-go?

I'm having issues unlocking my Nexus 7 2013 WiFi's bootloader, and it was suggested that I try fastboot oem unlock-go instead of fastboot oem unlock. Both seem to act the same on my device, however both also fail on my device so it is possible that the difference appears after the failure on my end comes. Regardless, I would like to know: What is the difference between these two commands? I'm not managing to find documentation.


Share a Folder from Ubuntu to Windows in VirtualBox

I have Ubuntu as my main Operating System, but I run Windows in a VirtualBox because some of my programs are not supported, I have Videos, Documents etc on Ubuntu and I would like to access them on Windows without having to copy them to Windows and having two copies of the same file.  Thanks in advance


How to correct flares and sharply focus on my telescope when viewing planets.

A month or two ago I purchased a “Skywatcher Explorer 130P Newtonian Reflector” telescope - which so far is brilliant when looking at the Moon, esp. using a neutral density filter. However, when looking at Venus or Mars - which are very easy to view and beautiful to see through the eyepieces - they seem slightly blurred (almost impossible to get a sharp focus) but more frustratingly they seem to have a lot of flare coming out of the planet like an ‘X’ where the planet is at the centre.   For some reason Jupiter did not have any issues and I was able to see it sharply and its moons with no flare.  This issue is there with both eyepieces : 10 mm & 25 mm that were provided with the scope.  Can someone please assist me and/or advise me as to how I can go about remediating the flare and sharpness issue? Is it to do with the fact that I do not have any planetary filters? If so, what will I need please? Any links, esp. online stores in the UK, will be very helpful. Is it to do with the apparent brightness of the planets?


I recently stumbled upon a piece of code that went like this:  Object o = .. ; Foo foo = Foo.class.cast(o);   I was actually not even aware that java.lang.Class had a cast method, so I looked into the docs, and from what I gather this does simply do a cast to the class that the Class object represents. So the code above would be roughly equivalent to   Object o = ..; Foo foo = (Foo)o;   So I wondered, why I would want to use the cast method instead of simply doing a cast "the old way". Has anyone a good example where the usage of the cast method is beneficial over doing the simple cast?


$$\sum_{n=0}^{\infty } \left ( \frac{1}{n\cdot(n+1)\cdot(n+2)))} \right)$$  I've tried all of the tests but I couldn't solve this.  Does it converges? What is the sum if it converges?


How to mount a derailleur hanger on this frame?

I have acquired an older Pegasus, model unknown. Guessing by the decaying decals it might be something like Atlas. Bike is in poor neglected condition, but I will try to put in on the road to see how it rides and then decide if I dump it or do some more work on it. It came with a Suntour AR II rear derailleur. The frame has simple dropout and bike came with some sort of generic deraillur hanger. The problem is that when I release the quick release the hanger with derailleur comes loose along with the wheel. Below are some pictures. As you can see the derailleur has no clear way of mounting to the frame. The frame does not have any hole that aligns with small the in the hanger. The hanger has on the backside a little edge that aligns it with a dropout as seen on the picture.  Options I considered were:  1. Drilling a hole in the frame and then cut a thread for the bolt. Which thread should I cut in that case to be "universal" or compatible with bolts that are used for that purpose?  2. Puting a bolt through the small hole in the hanger and through the dropout. Use a big washer and a nut on the backside to fix the hanger in a dropout semi permanently. I would then fix wheel axle with quick release as usual. Down side of it is, that the axle would be moved forward in dropout by about 14mm.  3. Try to find a suitable hanger. No luck so far. Through Google I have found a picture of a hanger that might do the job.  What would my best or simplest option to mount that hanger?


I am trying to follow some instructions, that seem to be a multiple line command line argument.  Here it is:  You will need a couple of packages before getting to work. Install them using the following command:  Debian based Systems:  sudo apt-get install git build-essential cmake gettext kdeartwork libqwt-dev \ kdelibs5-dev libxtst-dev libqt4-sql-sqlite libphonon-dev libattica0.4 libattica-dev zlib1g-dev \ libasound2-dev julius libpocketsphinx-dev libpocketsphinx3 sphinxtrain libsphinxbase-dev \ libsphinxbase3   When I simply copy and paste that into the command line, and run it, the computer says:  Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package kdeartwork


Java : loop on all the classes in the classpath

Is there a way to iterate over all the classes in the classpath ?   I want to make some reflective checks on some classes implementing a certain interface, but I want to do it completely dynamically, without any input on which classes to check, just browsing the classpath.


What is the final/best recommendation for how to serve favicon.ico in ASP.NET MVC?  I am currently doing the following:   Adding an entry to the very beginning of my RegisterRoutes method:  routes.IgnoreRoute("favicon.ico");  Placing favicon.ico in the root of my application (which is also going to be the root of my domain).   I have two questions:   Is there no way to put the favicon.ico somewhere other than the root of my application. It's pretty icky being right there at the same level as Content and Controllers. Is this IgnoreRoute("favicon.ico") statement sufficient - or should I also do the following as discussed in . I'm not aware of ever having seen a request to favicon.ico in any directory other than the root - which would make this unnecessary (but it's good to know how to do it).  routes.IgnoreRoute("{*favicon}", new {favicon=@"(.*/)?favicon.ico(/.*)?"});


Rounding off values with greater number after dot

I have this code which gives a result  double a = 128.73; double roundOff = Math.round(a*100)/100; System.out.println(roundOff); Result is :- 128.0   what I need that if the values after dot is greater than 5 i.e (6, 7, 8 or 9) then its should give result by adding 1 to the given value that has to be rounded off, i.e   128.54 should give result to 128.0 128.23 should give result to 128.0 128.73 should give result to 129.0 128.93 should give result to 129.0


What do I have to do before giving away my Ubuntu machine?

I have an old laptop that is running Ubuntu. Now I want to give away this laptop, but I want to remove all private data. So what should I remove? I don't want to format the whole system, because the OS will be still in use by the new owner.


All else held equal, does a pot of tea have more total caffeine than a mug?

Let's say you have one tea bag and can either brew it in a mug of boiling water, or a larger tea kettle of boiling water. The temperature, steeping time, type of tea bag, etc. are held constant. Assuming you drink all the tea that gets made, would you consume more flavor/caffeine from one method than from the other?  I'm just wondering because even though the amount of tea leaves in the tea bag would be the same, it intuitively seems to me like the water surrounding the bag in the tea kettle would be more hypotonic because there would be more of it compared to the amount of tea, so more tea would come out of the bag overall.


"have not done" or "have not been doing"

I want to convey that I didn't speak English in the last two years and I'm not speaking English now.     I haven't spoken English for two years.      I haven't been speaking English for two years.   In this case, which is proper?


Why do so many newspapers use the word "Times" in their names?

It seems that the word itself doesn't mean news or newspapers, but many newspapers use it in their names. Is there a historic reason?


I'm a beginer in Latex and I like to learn about it, as I'm user Mac, I installed LaTeXit, but I have multiple problems.  I begin to write in the editor area, but I just get the first page of the document, I don't know why.  Here an screenshoot: I don't see the second part, even when I export the document.  I just simply follow an tutorial, but that it doesn't work.    Here my config:  \documentclass[10pt]{article} \usepackage[utf8]{inputenc}  \title{First document} \author{User} \date{2017-01-01}   Preambles config.  And in the Body config, I have:  \begin{document} \end{document}


Proving $\frac{x}{y} +\frac{y}{z} + \frac{z}{x} \ge 3$ for positive $x,y,z$

Suppose $x,y,z$ are real positive numbers, prove that: $$\dfrac{x}{y} +\dfrac{y}{z} + \dfrac{z}{x} \ge 3$$ with equality when $x=y=z$.  Can someone help me find an easier solution? I started with assume only two are equal, without loss of generality, $x=y$. Then we get $$1 + \dfrac{x}{z} + \dfrac{z}{x}$$ $$1 + \dfrac{x^2 + z^2}{xz} = 1+ \dfrac{(x-z)^2 + 2xz}{xz} = 1 + 2 + \dfrac{(x-z)^2}{xz} \ge 3$$ To prove the general result I considered using a derivative with respect to $y$ to show that, starting with $x=y$ and increasing $y$ by a tiny amount, will show the equation's derivative as positive. I haven't gotten this to work yet. Any ideas?


Which of these two sentences is correct?

I don't like YOU leaving early. I don't like YOUR leaving early.


What does "off" mean in this sentence?     Ron continued to giggle, still hanging off the front of Harry's robes.   Ahead of this sentence, the context is that Ron grabed front of Harry's robes.   I learned "off" mean sort of away or detached, but in this sentence the word "still" make me confused. "Still" means it is as it was, so I think this sentence would mean Ron was still grabbing it.   Am I right? If I am, I want to know the meaning of "off" in this sentence.


Not a big deal but I thought I'd report it:  While I vist movies and TV, all my badges from other sites look like reels. I suppose whenever a site used a custom badge icon, it'll end up looking like that.


I'm planning to go to Japan this summer, and after visiting a relative, I'm planning to go on a hike for 5 to 7 days.  I was wondering if camping out in the wild is permitted anywhere in japan, like it is in Scandinavia. I don't mind about the costs, but I just like the solitude and the idea of pitching your tent wherever you want.  I'm particularly interested in going to Hokkaido, maybe to Daizetsusan National Park.


Consider the following numpy vector of number: a = np.array([.1, .2, .2, .2, .2, .1])  Obviously, the sum of these numbers gives 1. However, when computing b = np.sum(a)  I get print (b) 0.9999999999999999  Could you anyone explain why and how to solve this approximation issue?


What is the difference between the sentences        He had a gun.      and         He has had a gun.      I think when you are saying about the past why don't you just say it as  "He had a gun" instead of "He has had a gun"?, this goes same with these below sentences as well.        He has killed.   He has had killed.              She had sex before she died.   She had had sex before she died.


Is there a way to search by text in SQL Server Integration Services packages using T-SQL statement (or other language)?  I want to check if certain table is used in any package as I am going to drop it - if the table is used I need to edit the package.  Could you advice?


I'm creating a VotingMachine, the whole code seems ok but when I try to run it, I can't get the result I want

My code:  import java.util.*;  public class VotingMachine {     private int WuDI;     private int HonST;     private int HawLB;     private int JanCS;     private int HanGU;     private int PanWG;      public VotingMachine() { WuDI = 0; HonST = 0; HawLB = 0; JanCS = 0;         HanGU = 0; PanWG = 0; }     public VotingMachine(int WuDI, int HonST, int HawLB, int JanCS, int HanGU, int PanWG) {         this.WuDI = WuDI;         this.HonST = HonST;         this.HawLB = HawLB;         this.JanCS = JanCS;         this.HanGU = HanGU;         this.PanWG = PanWG;     }     public void showVote(){         System.out.println("WuDI = " + WuDI + "vote(s)");         System.out.println("HonST = " + HonST + "vote(s)");         System.out.println("HawLB = " + HawLB + "vote(s)");         System.out.println("JanCS = " + JanCS + "vote(s)");         System.out.println("HanGU = " + HanGU + "vote(s)");         System.out.println("PanWG = " + PanWG + "vote(s)");     }     public void clear() { WuDI = 0; HonST = 0; HawLB = 0; JanCS = 0; HanGU = 0; PanWG = 0; }     public void voteWuDI() { WuDI+=1; }     public void voteHonST() { HonST+=1; }     public void voteHawLB() { HawLB+=1; }     public void voteJanCS() { JanCS+=1; }     public void voteHanGU() { HanGU+=1; }     public void votePanWG() { PanWG+=1; }      public static void main(String[] args) {         Scanner in = new Scanner(System.in);         VotingMachine v1 = new VotingMachine();         v1.clear();          for(;;){             System.out.print("Cast your vote by entering the candidate's name: ");             String name = in.next();             if(name == "WuDI")                 v1.voteWuDI();             else if(name == "HonST")                 v1.voteHonST();             else if(name == "HawLB")                 v1.voteHawLB();             else if(name == "JanCS")                 v1.voteJanCS();             else if(name == "HanGU")                 v1.voteHanGU();             else if(name == "PanWG")                 v1.votePanWG();             else System.err.println("The name your entered is not exist.");              System.out.print("Do you want to continue to vote? (Y/N): ");             char ans = in.next().charAt(0);             if(ans == 'N' || ans == 'n'){                 System.out.println("The result of the election is: ");                 v1.showVote();                 System.out.println("Thank you for your vote!");                 System.exit(0);}             else continue;         }      }  }   My code seems ok, the compiler didn't gave me any error message, But I keep getting this:  Cast your vote by entering the candidate's name: WuDI Do you want to continue to vote? (Y/N): The name your entered is not exist. N The result of the election is:  WuDI = 0vote(s) HonST = 0vote(s) HawLB = 0vote(s) JanCS = 0vote(s) HanGU = 0vote(s) PanWG = 0vote(s) Thank you for your vote!   I keep getting the err message and the vote wouldn't accumulate! I really couldn't figure out where I do wrong! Please help me, thank you!


Consider $k$ a field and the rings $A=k[X^2,X^3]\subset B=k[X]$. How to prove that $B$ is not flat over $A$ by using only the definition of flatness that it maintains exact sequences after making tensor products?


I need this date format in a visualforce page: "December 14, 2013". I can't seem to find the format options for visualforce. I read that it's the same as the java messageformat class options, but I cannot find a list for that either.  A little help would be much appreciated


How to calculate the number of bytes stored in object

Suppose I have the following Foo class. The size of Foo's member variables are what I would expect. However, the size of Foo it'self is 16. Where are the extra four bytes coming from?  #include <iostream> #include <string>  using namespace std;  class Foo { public:         int *data;         int length; };  int main() {         Foo f;         cout << "Size of foo's data: " << sizeof(f.data) << endl;         cout << "Size of foo's length: " << sizeof(f.length) << endl;         cout << "Size of foo: " << sizeof(f) << endl;          return 0; }   Output:          Size of foo's data: 8          Size of foo's length: 4          Size of foo: 16


Integrating $\int x \sin \sqrt x dx$ and substituting $u=\sqrt x$

Is it wrong to substitute $u=\sqrt x$ when integrating?  Here's what I mean, I have to integrate: $\int x \sin \sqrt x dx$.  I defined $u=\sqrt x$ so it's: $$\int u^2\sin u du=2u{\cdot}\sin\left(u\right)+\left(2-{u}^{2}\right){\cdot}\cos\left(u\right)+{C}$$  But when placing back $\sqrt x$ I get a totally different result from the integration of the original expression:   $$2{\cdot}\left(\cos\left(\sqrt{x}\right){\cdot}\left(6{\cdot}\sqrt{x}-{x}^{\frac{3}{2}}\right)+\sin\left(\sqrt{x}\right){\cdot}\left(3x-6\right)\right)+{C}$$  Shouldn't both expressions be equal and why aren't they?


How would you explain generalized linear models to people with no statistical background?

I always have a hard time explaining statistical techniques to audience with no statistical background. If I wanted to explain what GLM is to such audience (without throwing out statistical jargon), what would be the best or most effective way?  I usually explain GLM with three parts -- (1) the random component which is response variable, (2) the systematic component which is linear predictors, and (3) the link function which is the "key" to connecting (1) and (2). Then I would give an example of linear or logistic regression and explain how the link function is selected based on the response variable. Hence it acts as the key connecting two components.


Change properties of an mp3 file in python

How to change the property of a file in python  I have an mp3 file which has properties like Title, Contributing Artists, Album. How can I access these properties using python and change them


Mark a question with an asterisk in enumeration mode

I am using the \usepackage[shortlabels]{enumitem} package for automatic enumeration of question in my LaTeX document. However, I would like sometimes to mark (a) question(s) with an asterisk as to declare its level of difficulty. How can I do that?  I certainly don't like doing it manually , e.g after the \item command to place an asterisk like so \item $*$. Also I would like the asterisk to be a superscript to the number e.g something like 5* suppose.   Sample:  1. This is a sample question. 2. This is another sample question. 3*. This is a sample question with some difficulty.   This is what I would like the output to be. However the dot. I would like to be aligned with the other dots, if that , is of course possible.   Can this be done?


Could someone describe different methods for turning another character into magical armor?

I am interested in transforming a defeated boss into a series armor based objects that grants the racial traits of the transformed for other individuals in game, could someone describe any spells or classes, or curses that a player character could use to accomplish this? I am interested in it working similar to the Fusion Spell for Psions, and would like to avoid wise spell if possible. I do not have access to every book available and wanted to gather some of ideas. Weird Idea but I wanna see if it could be done.


Why is this a correct sentence? Her uncle prefers that she speak with him personally

An native English speaker said the correct grammar should be ... 'she speak,' rather than ...'she speaks.' What is the grammar rule?


After editing .bashrc commands return 'command could not be located because '/bin' is not included in the PATH'

I typed something in Bashrc and I can not use commands like cp, gedit, ls, etc. etc anymore. The terminal give me a message like:  Command 'ls' is available in '/bin/ls' The command could not be located because '/bin' is not included in the PATH environment variable. ls: command not found   I tried to restore bashrc, but I need to use cp and I can not use this command either:  Command 'cp' is available in '/bin/cp' The command could not be located because '/bin' is not included in the PATH environment variable. cp: command not found   What could I do? Thank you.


Ever since I've built my own PC with Windows 10, I've experienced issues where my PC would randomly stop responding. In every case, I've had to perform a cold reboot, because Windows would not shut down or restart when told to. In 2 cases, I was confronted with a WHEA_UNCORRECTABLE_ERROR instead. I suspect that the issues may be related, so I'd like to fix my BSOD.  Apparently, WHEA_UNCORRECTABLE_ERROR appears when there's a faulty hardware or buggy driver. Unfortunately, the error itself isn't very descriptive, so I don't have much information to work with.  I discovered that Windows creates a .dmp file whenever a BSOD occurs, and that the files are saved in C:\Windows\Minidump. Unfortunately, I have no idea what to do with these files. Whenever I try to open a .dmp file with Notepad++, I get:     Can not open file   According to , I should use Dumpchk.exe, but it doesn't seem to be installed on my PC and the only relevant-looking link has me download the Windows Driver Kit and the Debugging Tools for Windows together with Visual Studio. I'm not interested in debugging Windows or developing drivers. I just want to see what's written in the .dmp file, so I know which driver needs to be reinstalled/updated, or which component needs to be exchanged.  How do I open a .dmp file?


Ubuntu won't boot when choose "Try Ubuntu without installing"

I'm trying to install Ubuntu 14.04 to my PC's HDD which has ASROCK's UEFI and windows10 already installed on an SSD.  I know there are some problems with installing Linux distributions on UEFI machines but I heard that Ubuntu won't have any issues.  But when I insert my UnetBootin usb and select it to boot and choose "try Ubuntu without installing", it won't continue and my display turns black.  Here are some pictures.    After choosing "Try Ubuntu without installing", it displays nothing but a little light black. I found if I type "Ctrl + alt + Insert" or "Ctrl + alt + Delete" the display becomes darker.  I successfully installed win10 and Ubuntu separately in SSD and HDD on another PC which is not UEFI. But I don't know what should I try to solve this problem


Bug allows anyone to pin any message in any room!

I found a small bug that allows any user to pin a message even if they are not a Room Owner. If a message is pinned and then moved, it remains pinned in the room it is moved to even if the user who moved it isn't a Room owner in the new room.   To reproduce   Go to chat Create a room Post a message and pin it Move the message to any room See the message pinned in the new room   In action  I am not a room owner in the . However, I posted a message in my , pinned it, and then moved it to the android room. It is now pinned there.


What exactly do we mean when we say we are using Linux?

I was going through an article on GNU which goes something like below     There really is a Linux, and these people are using it, but it is just   a part of the system they use. Linux is the kernel: the program in the   system that allocates the machine's resources to the other programs   that you run. The kernel is an essential part of an operating system,   but useless by itself; it can only function in the context of a   complete operating system. Linux is normally used in combination with   the GNU operating system: the whole system is basically GNU with Linux   added, or GNU/Linux. All the so-called “Linux” distributions are   really distributions of GNU/Linux.   I always thought Linux as a kernel and Operating System but it looks like Linux = Linux kernel and GNU OS.   Could someone point out the exact functionality of each in the "Linux" terminology we use in our day to day life. Also, according to the wiki, GNU's design is Unix-like but differs from Unix by being free software and containing no Unix code. I thought Unix is opensource. Isn't it?


In /etc/hosts, I can for example input  127.0.0.1   example.com   Now I have a nameserver (pdns with postgre-backend), which I want to use in the intranet.  So, I tell my dns server, that example.com is, for example, 192.168.1.24  Assuming the DNS server runs on 192.168.1.64, how can I replace /etc/hosts with my nameserver ?   That is to say, it should resolve example.com to 192.168.1.2 (using the DNS on 192.168.1.24), but any other domain that I did not overwrite locally should be resolved to its real IP, using whatever is used by default.  Where do I have to put this in Ubuntu 14.04 ?


t.test error: data are essentially constant

pval <- 0 for(i in 1:dim(rData1Q1)[1]){      pval[i] <- t.test(rData1Q1[i,1:25],rData1Q1[i,26:34])$p.value   }  I couldn't find the error source. When I run it for one row, it works. But in this loop it gives an error. What am I missing?


Passing lines from the text file of a list of files to or as arguments

I have a file which has two file names per row, like this:  file1.fastq.gz file2.fastq.gz ... file9fastq.ga file10fastq.gz   How can I pass the two names as arguments for a script?


The Spell  states:     Your touch deals 1d6 points of damage per two caster levels (maximum   10d6). You gain temporary hit points equal to the damage you deal. You   can't gain more than the subject's current hit points + the subject's   Constitution score   So could you cast the spell on yourself, gain up to your own Hits+Constitution in  and then subsequently get a cure to get yourself extra hit points?  Note: For interests sake (and so the caster doesn't potentially kill themselves) you can  as long as it's high enough to cast said spell.


cannot allocate free space, format extended partition

I cannot create a partition on free space, neither can I delete the extended partition.  Disk utility says  Cannot delete extended partition while logical partitions exist


Use of the possessive apostrophe in a list

If I was to label something      The Poets and Painters' Distillery    do I only apply the possessive apostrophe after 'Painters' as in the text written above, or do I also need to apply one to 'Poets' so that it becomes      The Poets' and Painters' Distillery ?    I'm thinking the former is correct, but cannot be too sure.


Gnome 3 - How to open application from the notification area tray icon?

Due to a , I can't use Gnome Flashback for a while. I am forced to use the new Gnome 3 layout.  There are a few apps (Slack, Skype, Steam, KTorrent, Krusader, ...) that used to be minimized to a "tray icon" in the "task bar" or "notification area" or "indicator applet" or whatever, I am not quite sure about what the names are. It's the little icon somewhere in some bar which you can click to restore the app or show a menu.  In Gnome 3.26 (and later versions), there is no such area by default, and the apps, once minimized, disappear from GUI entirely. I can't see them anywhere, yet their process is running.  I am not going to criticize that decision (it's obviously a bad one :) ) and will skip to the questions:   How am I supposed to open such app? How can I configure Gnome 3 to have that running apps icons area? I have seen these  and . Are these official? Or will it stop working in the next release as these workarounds tend to?


Dimension of intersection of distinct subspaces

Let $W_1, W_2, W_3$ be $3$ distinct subspaces of $\Bbb{R}$$^{10}$ such that each $W_i$ has dimension 9. Let $W  = W_1 \cap W_2 \cap W_3$. Then which of the following can we conclude?  $W$ may not be a subspace of $\Bbb{R}$$^{10}$ $\dim W \le 8$ $\dim W \ge 7$ $\dim W \le 3$  I know that first and fourth options are incorrect. I have even find examples where dimension of W is $7$ and $8$. But still from here, how can I conclude that the third option is correct. I know that dimension of $W$ should be less than or equal to $9$. It can't be $9$ since those subspaces are distinct. So second option will be correct. But how do I know that the dimension of $W$ Will be greater than or equal to $7$?


confusion about the laplacian in polar coordinates

I have a confusion about the following. If we have a function $f:\mathbb{R}^2 \to \mathbb{R}$ of class $C^2$ and we want to calculate the laplacian of this function polar coordinates.  I don't understand what it means. Does it mean we need to calculate :   $$\frac{\partial}{\partial x} (\frac{\partial f(r \cos \theta, r \sin \theta)}{\partial x}) + \frac{\partial}{\partial y} (\frac{\partial f(r \cos \theta, r \sin \theta)}{\partial y})$$  Or does it mean we need to calculate :   $$\frac{\partial ^2 f}{\partial x^2}(r \cos \theta, r \sin \theta) + \frac{\partial ^2 f}{\partial y^2}(r \cos \theta, r \sin \theta)$$  Moreover, I am really confused since I don't understand the fondamental difference between these two expressions.   Thank you !


Downvoting accepted answers without comment

One person has downvoted my answer yesterday with a comment saying answer contain bad advice. Although that answer was accepted by OP and upvoted by one user also. But the user which has given an answer also which is not accepted by OP has downvoted and commented the answer contains a bad advice. even If I asked what bad advice my answer contains so that I can correct my answer and learn something. He did not replied though his answer didn't get any upvote. So what can I do in this case.


Every time I try to render an object, red dots appear all over it (you have to enlarge the image to see them). How do I stop this from happening?


In a subdirectory, how do I delete all files that are 0 bytes in size?

I am used to listing and sorting the size of files as follows:  $ for entry in $(ls); do du -s "$entry"; done | sort -n   However, how does one delete all files of 0 bytes?  My terrible attempt would be to try an if conditional, but I don't know how to check the size. I would then pipe all results and remove these?   $ for entry in $(ls); if du -s "$entry" == 0 | rm "$entry"


Adding syntax-highlighting to "processing" tag?

The Processing language () is based on Java but uses a simplified syntax from Java. Would it be possible to add automatic syntax-highlighting for questions tagged with  using Java syntax?


Trying to add autocomplete on a search bar linked to a CartoDB map column

Here's my code for the search bar I added to Carto map, with some added script for my attempt at an autocomplete. So far, it hasn't worked. I wish I could be more precise about the problem, but I really don't know what it is. I'm not a developer and just hacking away from what I've found from other people online.      function main() {          var map = L.map('map', {             zoomControl: true,             center: [LAT, LONG],             zoom: 15         });         L.tileLayer('http://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png', {             attribution: '&copy; OpenStreetMap contributors, &copy; CartoDB'         }).addTo(map);          cartodb.createLayer(map, 'MY_MAP.json').addTo(map)             .done(function() {                 $('#searchButton').click(function() {                     input = $("#ad").val();                     input = titleCase(input)                     console.log(input);                                  function initAutocomplete() {                                       function log( message ) {                                         $( "
" ).text( message ).prependTo( "#log" );                                         $( "#log" ).scrollTop( 0 );                                       }                                   }                     var sql = new cartodb.SQL({                         user: 'bmm80'                     });                     sql.getBounds("SELECT * FROM MY_DATA where DATA_COLUMN ILIKE '" + input +                         "'").done(function(bounds) {                         $(".title").fadeTo('slow', 0);                         map.fitBounds(bounds)                     });                  });             });     }


Why is there a difference between urls submitted to a sitemap and urls in the google index?

The crawl report shows this: "HTTP (1) In Sitemaps (5) Not found (993) Restricted by robots.txt (487,544)"  So the discrepancy between 50,000 and 44,592 isn't coming from that.  Are there any obvious reasons?


What does it mean when 5 year fixed is lower than 5 year variable

For the past 10 years, we've had 2 5-year variable rate mortgages.  We have more or less won the bet in the fixed vs. variable game.   In the past, the variable was always a lower rate than the fixed.  However, while doing my research I discovered that fixed is now cheaper than variable.  What does this indicate about rate prediction over the next few years?  Is this a prediction that the interest rates will drop?  Typical rate chart: 5 Year Variable Mortgage 3.25% 1 Year Fixed Mortgage 3.49% 2 Year Fixed Mortgage 2.74% 3 Year Fixed Mortgage 2.79% 4 Year Fixed Mortgage 2.94% 5 Year Fixed Mortgage 2.89% 7 Year Fixed Mortgage 2.99% 10 Year Fixed Mortgage 3.19%


How can I get the newer version of android?

My device (Samsung S4 mini i9195) carries a 4.2.2 version. When I ask for a software update manually, it says that the latest version is already installed. How can I force it to accept the actual latest version (4.4.2) as depicted in this ?


I make Get request to service from javascript to c#  let service = httpGet("Rap god"); let t = JSON.parse(service);             console.log("t",t);             console.log("title",t.Title);  function httpGet(query) { var xmlHttp = new XMLHttpRequest(); xmlHttp.open( "GET", MSS+"/"+query, false ); // false for synchronous request xmlHttp.send(query); return xmlHttp.responseText; }   Title is undefined and t is   {"Title":"Rap God","HeaderImageUrl":"https://images.genius.com/5b600decc7e5a50cee55b42574c46783.1000x1000x1.jpg","Url":"https://genius.com/Eminem-rap-god-lyrics","TypAlbumName":"The Marshall Mathers LP2","PrimaryArtistName":"Eminem"}   My c# model class:  public string Title { get; set; } public string HeaderImageUrl { get; set; } public string Url { get; set; } public string TypAlbumName { get; set; } public string PrimaryArtistName { get; set; }   And API method:  public async Task<string> Get(string id) { var result = new Data {    Title = hits[0].Result.Title,    HeaderImageUrl = hits[0].Result.HeaderImageUrl,    Url = hits[0].Result.Url,    TypAlbumName = hits[0].Result.Album.Name,    PrimaryArtistName = hits[0].Result.PrimaryArtist.Name };  return result.ToJSON(); }   ToJson method:   public static string ToJSON(this object obj)     {         JavaScriptSerializer serializer = new JavaScriptSerializer();         return serializer.Serialize(obj);     }   How I can get valid json on js side? Or I need change type like string array?


When writing a letter, or other form of written work, what is the appropriate way to put emphasis on a word or phrase?  When would one use bold?  When would one use italics?  When would one use an underline?  Do they all mean the same, and their usage is simply a matter of preference?  Edit  I would like to know the definition for each of the above, and why you would use one over the other, specifically in writing a letter or other such document.  For example:  This question is not a duplicate.  This question is not a duplicate.  This question is not a duplicate. (I can't use the HTML tag for underline in HTML 5...)


How can i make a poster background like this in Adobe AI?

Especially the chalk-like stroked food icons


Putting external IP into a variable - grep operation failed

I need to put the IP of my VPS machine into a variable. I mean to the external IP address appearing the value of inet addr section, in ifconfig output.  I've tried:  ipa="$(hostname -i)"   But echo ${ipa} brought the localhost token: 127.0.1.1, so I looked for other solutions and all I found includes many pipes and awk operations which I know nothing about (never used awk and I'm not very familiar with regex).  I tried this:  ipa=$(ifconfig | grep "inet addr:[0-999]\.[0-999]\.[0-999]\.[0-999]")   But it failed given that echo ${ipa} has an empty line of output.   Why did what I've tried failed or at least how would you solve it?


if statement is not working. prints either way

I am working on an assignment converting English to Pig-latin. I am trying to get a word to go if the first letter is a then java should print the whole word.  When i type in apple it prints apple but if i put in cool it also prints out cool.   import java.util.Scanner; import javax.swing.JOptionPane;  public class Assignment_4_Piglatin{  public static void main(String[] args){  Scanner userWord = new Scanner(System.in);  System.out.println("K. Caleb Swallow"); System.out.println("Welcome to the Pig Latin Translator!");  boolean run = true; while(run){  System.out.println("Please enter a word(or press Q to quit):");  String firstLetter = "something"; String word = userWord.next();  System.out.println(word);  firstLetter = Character.toString(word.charAt(0));  String color = word;   if( firstLetter == "a"){ System.out.println(color);  }


Visa for France - showing actual hotel booking?

I am in UK planning to apply for Schengen visa via French Embassy. The application document requirements for the visa states that you are required to submit:     Proof of Hotel reservation confirmation required from the actual   hotels throughout the whole itinerary showing the hotel's full contact   details, proof of payment and applicant's name   However I am planning to get the hotel booking done from  as it is convenient and has better offers. Will that be acceptable for visa submission? Is it ok to submit the confirmation from booking.com as long as it states my name and complete hotel details (name, location..)?


Quick question:  In this sentence, should there be a comma? I've seen it both ways and both sound correct to me, but an English book I recently looked at (Erica Meltzer) said that the sentence was more proper without the comma.      This period of prosperity from 1950 to 1973 brought upon the world a plethora of technological advances, which revolutionized society and allowed for significant scientific development.


Can't find the window for a process whose status is `Sl`

I am under Ubuntu 14.04 with Gnome Classic as desktop environment.  I have a process, whose status is Sl, see below:  $ ps  aux | grep PDFXC t        20363  0.1  0.0 2676268 6436 pts/61   Sl    2015  13:03 /home/t/programs/PDFXCview.exe bash4.3.pdf                                         What does Sl mean?  I don't remember whether I have tried to kill it by right clicking and selecting "close". Maybe or maybe not. But now I can't find the window for the process in the desktop environment's panel. Is it still possible to find its window, and make it to the front of the desktop environment?


World background color/HDRI was transparent in render

I disabled world background for the camera, and made some renders. But then I decided to use HDRI and it doesn't work. It's still transparent in renders. I see it on reflections and through the glass but cant't see it directly. (camera visibility is checked).  Relaunching Blender doesn't help.


Cross-thread operation not valid: Control 'webForm' accessed from a thread other than the thread it was created on

I know this question has been asked too many times here but I don't seem to get it fixed so I am posting a new one.  I have two forms Form1 and Form2. Form2 is displayed as  an overlay on form1 by setting its topmost property to true. I have a class that does the processing thing for form1  and if the required value is found it opens the form2 in STA thread as an overlay on form1 .  However class processing is a continous process if the value is not found for few next seconds then I need to close the already opened form2 which I am unable to do at the moment due to above exception.  Here is my code:  private void runBrowserThread(bool markerFound) {     try     {         var th = new Thread(() =>         {             if (markerFound == true)             {                 if (Application.OpenForms.OfType<webForm>().Count() == 0)                 {                     webForm frm = new webForm();                     frm.Show();                 }                  Application.Run();             }             else             {                 if (Application.OpenForms.OfType<webForm>().Count() == 1)                 {                     Form fc = Application.OpenForms["webForm"];                      if (fc != null)                         fc.Close(); //**This line causes cross thread exception**                 }             }         });         th.SetApartmentState(ApartmentState.STA);         th.Start();      } catch (Exception)      {         //...     } }   Any suggestions would be really appreciated.


How can I create a flowing, rippling water surface effect that follows the curves of a river mesh?

How would I create a simple but nice looking river?   Even a small creek or stream of water i just want to know some good ways of doing this!


What is the boot process of an Android device?

From the user's perspective when switching on the phone, I see two boot animations in my  running CM10. The first animation is from LG and the second animation is from CM10. Then it settles in with a locked screen ready for my input. What happens behind the scene (screen) during a boot process when an Android device is switched on? It will be helpful if the answers can help a non geek to understand various process and jargon (like, fastboot, bootloader, recovery, if applicable, etc.) regarding boot sequence.


How to change a CSV layer attribute value from text to number - once again?

i have read most of the related postings and answers allready ... (e.g.  and  ... among others)  but (!) unfortunately none of them solved my problem. as someone postet on 2012-01-04 12:27 definition of properly defined *.csvt doesn't effect field-import - they are expected to be numbers and still are string.  her is a sample of my csv  InputID,Mean,Stdev,min,max 1,334.7617168,36.87450474,294.4334857,383.5583136 2,446.3946568,207.949905,153.2494524,613.3182137 and the csvt "Integer","Real","Real","Real","Real"  .. i have already:    checked field names (no blanks), checked separators, ... which are qgis' default because the csv is distance matrix calculation result defined the csvt with simle "Integer","Real" and the precision-type-style "Integer(6)","Real(8.3)" changed country settings in win7, win8, osx 10.9 due to known decimal separator issues   used csv as specified as well as "excel-style" csv (";"-separated)    checked all that in qgis 2.0, 2.2, 2.3(master)   and: at the beginning this problem was related to distance matrix output  ... where qgis calculates the results (and writes the csv-outputs), which of course are numbers (mean, stdev, min, max)  so, initially i was just looking for a straight forward way to use qgis' own calculation results for mapping of distance-distribution ...  is there a way to solve or completely bypass the csv-t issue in a way, i can easily communicate to gis-beginners ?


How can I remap arrows keys to other short cut?

I am a programmer, I need to use arrows keys a lot, so can I remap these keys to other keys?  I have downloaded the karabiner, however, I cannot define the complex modifications rules myself, karabiner only provide . Yet, I want some new rule, like arrow up can be triggered by fn + i.


How to convert number of days to years,months and days

If i have Two dates then i get the difference between them in days Like this .    How to detail that in the following view :  convert the days to (number of years,number of months and the rest in the number of days)


Why is this quite informative chat room deleted?

Why did  about subobjects and the technical way they work get deleted?  It consisted of several long messages in which there were many questions and some detailed answers. I was just about to show it to some of my friends who had the same troubles as me but then we discovered that it is deleted without any reasons given...


Beginner question about classes in Python

I'm trying to create a list object that stores and sort either integer or string, but the input could also be a list i.e I would like to create it with a = SortedList(5) or a = SortedList([7, 5, 8])   class SortedList:      def __init__(self, element):          self.list = []          if type(element) == "int" or type(element) == "str":             self.list = self.list +[element]          if type(element) == "list":             self.list = self.list + element          self.list.sort()   When my object is instantiate all I get is my empty list, my if statement is not taken into account. Any ideas please ?


Use controller on fortnite when window is not focused

I have the problem that I have to share my pc with my sister. We usually manage to use it at the same time when one of us is playing a game using a controller and the other one is doing something different in another window. I would love to play fortnite in this setup, but unfortunately, the controller input isn't accepted when fortnite is not focused. Some games like GTA V have an option to enable this, for fortnite I only found the option to enable music when the window is not focused, but not to enable controller input.  Is there something I can do to get fortnite working for me? E.g. a command line parameter or something?  Thanks very much for your help!  Edit: It's not a duplicate of  , because there is no solution in the other question that is applicable to this one and it is specific for fortnite, so maybe finding a solution is more realistic than finding a general solutions for all games. It could be some kind of hidden start parameter etc.


Looking for a common word meaning hands and feet as well

I am looking for a word that describes/means the appendices at the ends of limbs (namely hands and feet), meaning a singular one of them.  Bonus: a word that describes/means all of them


Today we were studying vector and scalar products, when my teacher gave an example of them and told us that area is a vector quantity.   I Have studied previous class’s physics books (two years ago) which defined vector as any quantity that has both direction and magnitude while scalar is defined as any quantity that has only has magnitude and not direction.  And if I remember my high elementary mathematics then:   Area is equal to length x width. Both of these quantities have SI units meter. So we have meter as length, then knowing that length is a scalar quantity:   Scalar quantity x scalar quantity = scalar quantity   Example :  Speed: $$    Speed = v = \frac{d}{t}$$ Where $d$ is distance and $t$ time, which are both  scalar quantities but knowing  Unit is : m/s  Velocity:   $$Velocity = \mathbf v = \frac{\mathbf D}{t}$$  where $\mathbf D$ is displacement (a vector) and $t$ the time (a scalar).  Unit is : m/s.  So the question is why did my teacher say that area, a product of two scalar quantities, is vector in nature?


Is it possible to solve the Zebra Puzzle/Einstein's Riddle using pure math?

A coworker of mine posted a problem in our local communication software that seems to be a simpler variation of the . I know how to solve it intuitively, by using elimination. But is it possible to solve these kinds of problems using pure math?  Here is the problem he posted:     Albert and Bernard just become friends with Cheryl, and they want to   know when her birthday is. Cheryl gives them a list of 10 possible   dates. May 15, May 16, May 19 June 17, June 18 July 14, July 16 August   14, August 15, August 17      Cheryl then tells Albert and Bernard separately the month and the day   of her birthday respectively.      Albert: I don't know when Cheryl's birthday is, but I know that   Bernard does not know too. Bernard: At first I don't know when   Cheryl's birthday is, but I know now. Albert: Then I also know when   Cheryl's birthday is.      So when is Cheryl's birthday?   Can I model this problem mathematically in some way, and then solve it using a deterministic approach? I assume that if it is possible with this one, it would also be possible with the Einstein's one.


I always try to kill Jarl Balgruuf but he always comes back to beat me.  It's really annoying. It happens with most of the NPCs, not only those from Whiterun.


Is it possible to to solve algebraically: $e^z=z$?

While solving $e^z=z$, I realise there is no real solution and want to find a complex solution, if any.  I searched around the internet only to find functions describing approximations that might be sufficiently close, but I can't find a way to know the exact answer.                                     My question is :   DERIVE all solutions to $e^z=z$ (and prove if there are none)   :-)  I'm NOT interested in the answer, I am interested in the solution


timer jobs are showing "N/A" for their last run & schedule incremental search are not firing

I have SharePoint enterprise server 2013 with SP1, and i check my timer jobs and many of them are showing "N/A" beside their last run time, as follow:-    now i run the following command :-  Start-SPAdminJob -verbose   and i got the following :-     VERBOSE: Leaving BeginProcessing Method of Start-SPAdminJob.   Start-SPAdminJob : The administration service is running so all   administration jobs will be run in the timer service. At line:1 char:1   + Start-SPAdminJob -verbose   + ~~~~~~~~~~~~~~~~~~~~~~~~~       + CategoryInfo          : InvalidData: (Microsoft.Share...etStartAdminJob:    SPCmdletStartAdminJob)   [Start-SPAdminJob], SPException       + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletStartAdm    inJob      VERBOSE: Leaving ProcessRecord Method of Start-SPAdminJob. VERBOSE:   Leaving EndProcessing Method of Start-SPAdminJob.   so can anyone adivce what is causing this problem ? and even if i manually run the timer jobs i will keep receiving "N/A" for their last run time. I also checked the search schedule job and the search job will not get started . where i specify that the incremental search should run each 20 minutes. but the search will never start , only its "next incremental search" time will get updated ..


In "The Dragon and the Wolf" (Game of Thrones, S07E07), Litllefinger was accused and found guilty of many crimes. Before that scene, we see Sansa talking to Litllefinger and not sensing any treason on his part, but in court, in front of all the northern lords, and her sister and brother, she was declaring his crimes, one by one, as if she was there when he did them.  Was it Bran who told her these pieces of information? And if it was him who told her, how can she accept what he [Bran] said?


I'm having trouble understanding why in the "line with two origins", every neighborhood of the zero in one copy of the real line intersects every neighborhood of the zero of the other copy.  Can someone explain this point to me?  Thanks!


Placing a different image in each page corner

I would like to place an image in the corner of each page.   Something like this:    But I want a different image on each page. The images are numbered. For example, page 1 gets image 1.png in the corner, page 2 gets 2.png, et cetera.  I try to avoid to include each image by hand. The document is large, and I would like to avoid including and positioning 200 images by hand.  Is this possible, and how?


Apache 2.4 gives Forbidden Files deny server access

Ok, I have a weird thing going on -  I have LAMP setup with a pseudo virtual hosting where for each user a system user is created and all his files are owned by the user.  So here is the flow -> user signs up using the web service -> a new system user is created (Say user1) -> A new group is created (user1 with user1 and www-data as memebers) -> all the files the user uploads are owned by user1:user1 with permissions - Files: 0770 and Folders: 0771  Now my issue is when I try to open (example.com/UserFolder/abc.html), apache gives a "Forbidden : File permissions deny server access).  If I restart/reload apache, it starts working fine. What is going on here? Why do I need to restart apache for it to be able to recognize the new user?


No wireless connection in newly installed Ubuntu with BCM4312

I just installed Ubuntu on my machine and there is no wireless connection. I mean, the wireless card won't even show at the top pane of my desktop.  I might also add that whenever the Ubuntu launches, a moment before I get the login screen, there are three lines that say:   ERROR... something... something... wireless... go to www.kernel... something...     I don't know the exact words in the errors, because it vanishes a second after it appears, and it's too fast for me to read.  Is there a command that can detect my wireless card specification so I can look for a driver? or better yet, is there a command that can download the necessary drivers for the wireless card?   Here are the results for ifconfig:  eth0      Link encap:Ethernet  HWaddr 88:ae:1d:33:93:b0             inet addr:10.0.0.5  Bcast:10.0.0.255  Mask:255.255.255.0           inet6 addr: fe80::8aae:1dff:fe33:93b0/64 Scope:Link           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1           RX packets:3539 errors:0 dropped:0 overruns:0 frame:0           TX packets:2922 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000            RX bytes:3317067 (3.3 MB)  TX bytes:332509 (332.5 KB)           Interrupt:17   lo        Link encap:Local Loopback             inet addr:127.0.0.1  Mask:255.0.0.0           inet6 addr: ::1/128 Scope:Host           UP LOOPBACK RUNNING  MTU:65536  Metric:1           RX packets:1119 errors:0 dropped:0 overruns:0 frame:0           TX packets:1119 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:0            RX bytes:110448 (110.4 KB)  TX bytes:110448 (110.4 KB)   If any more information is needed, tell me.  Please, this is very important to me, I have a project due next week, and I cannot do it without wireless (I'm connected through wired connection right now).  EDIT: Here's some more information that might help, lspci -nn | grep 0280 gives:    04:00.0 Network controller [0280]: Broadcom Corporation BCM4312 802.11b/g LP-PHY [14e4:4315] (rev 01)


Evaluate the integral $$\int\frac{e^x.(2-x^2)}{(1-x)\sqrt{1-x^2}}dx$$   Set $u=\dfrac{1}{\sqrt{1-x}}\implies du=\dfrac{-dx}{2(1-x)^{3/2}}$ $$ \int\frac{e^x.(2-x^2)}{(1-x)\sqrt{1-x^2}}dx=\int\frac{e^x.(2-x^2)}{(1-x)^{3/2}\sqrt{1+x}}dx=\int\frac{e^x{2-x^2}.-2du}{\sqrt{\dfrac{2t^2-1}{t^2}}}dx $$ I have no clue about what is the easiest substitution possible inorder to solve the above integral ?  I tried $u=\dfrac{1}{\sqrt{1-x}}$ yet it is becoming more cumbersome I guess.


When I get a reference to a System.Diagnostics.Process, how can I know if a process is currently running?


Convert query string dictionary (or associative array) to dictionary

I'm trying to accept a query string of the form  ?param[key1]=value1&param[key2]=value2   and convert it into a Dictionary in C# MVC 4. This is trivial to do in PHP, but I haven't been able to find any method of reproducing this in C#.  I know I can take an array via  ?param=value1&param=value2   but that leaves issues of ordering and isn't nearly as useful for my purposes.  In the hopes that this isn't a limitation of the framework, how might I implement a dictionary-style conversion in C#?     To clarify: I'm not looking to convert a query string into an NVC, but rather to convert query string parameters into their own NVCs. This is NOT as simple as ParseQueryString() or the Request.QueryString object.


how can I force apt-get to replace installed packages?

Sometimes I need to modify some configuration files in installed packages.  For example I modified /etc/pam.d/polkit-1 file and after I tried modified file I forgot its original version so I removed it hoping that reinstalling policykit-1 package would replace it, so I did   sudo apt-get install --reinstall policykit-1   but it did not replace it though /etc/pam.d/polkit-1 belongs to policykit-1   I also I tried sudo apt-get -o Dpkg::Options::="--force-overwrite" install --reinstall policykit-1  though --force-overwrite option used to override files installed by different packages.  Would anybody tell me how to do that with apt-get? I need to know it because I frequently modify files in my system. Though I can fix it manually.


Closed-form of $\int_0^1 \operatorname{Li}_p(x) \, dx$

While I've studied integrals involving  I've observed that  $$\int_0^1 \operatorname{Li}_p(x) \, dx \stackrel{?}{=} \sum_{k=2}^p(-1)^{p+k}\zeta(k)+(-1)^{p+1},\tag{1}$$  for any integer $p\geq2$. Here $\zeta$ is the .  After that I have three questions.   $1^\text{st}$ Question. Is $(1)$ true? If it is, how could we prove it? $2^\text{nd}$ Question. If it's a well-known result could you give any reference? $3^\text{rd}$ Question. I think there is also a similar closed-form of $\int_0^b \operatorname{Li}_p(x) \, dx$, for any integer $b \geq 1$. What is the closed-form of this integral?


Determining whether a Type is an Anonymous Type

In C# 3.0, is it possible to determine whether an instance of Type represents an Anonymous Type?


Symmetrize Vertex Group on object with armature

I have an object with an armature and I want the limbs on both sides to be symmetrical.  I rigged the object using Mixamo's autorigger because it performs much better than blender could. However the Vertex weights are not symmetrical. In fact: on the left limbs I can see some vertex distortions and the limbs on the left side are bending a bit differently than the right limbs.  I know it's due to the Vertex weight because I can clearly see it in "Weight Paint" mode. The limbs on the right side are perfect! Is there a way how I can copy all vertex groups which define the weightings on the right side and apply them to the left side of the limbs (with their own vertex group name for the left limbs)?  Don't worry, the object is symmetrical and the bones that were created by Mixamo are also symmetrical so I just need to make the weights also symmetrical.


Consider the Laplacian on the $n$ dimensional torus $T$, given by $-\Delta : L^2 \rightarrow L^2$. Let the domain of $-\Delta$ be all $C^\infty$ functions initially. Now consider the Friedrichs extension of $-\Delta$, still called $-\Delta$. I want to find explicitly what the domain of $(-\Delta)^{1/2}$ is. Intuitively it seems to me that it should be all $L^2$ functions $u$ such that $\frac{\partial}{\partial x_k} u \in L^2, k = 1, 2,...,n$, but cannot prove it. Any help would be appreciated.   Thanks!  Edit: After Michael Renardy's comment:   Instead of $-\Delta$, let's say, we consider the following operator $-A = \sum^n_{i = 1} X_i^2$, where $X_i$ are vector fields generating the tangent space at each point, and $A \geq 0$, symmetric and densely defined on $L^2$, so that we can use the Friedrich's extension on $A$. Can we still say that the domain of $A^{1/2}$ consists exactly of all $L^2$ functions $u$ such that $X_i u \in L^2$ for all $i$? Thanks for your time.


I wonder if there is any statistical test to "test" the significance of a bimodal distribution. I mean, How much my data meets the bimodal distribution or not? If so, is there any test in the R program?


wxpython frame run from ArcMap loses focus almost immediately after it's shown

I'm trying to prepare a Python add-in using "Python Add-In Wizard". I want my add-in to perform some geoprocessing but first it should take data from a user and there's already a problem. I'm displaying a wxpython GUI and it loses focus and hides behind the arcmap window almost immediately after it's shown. I have no idea how to debug it and what could cause the problem. I decided to go this way after getting hands on  example.  My code is here:  addin.py  from dialogs.import_dialog import ImportDialog  class ImportButton(object):     """Runs the import function."""     dlg = None      def __init__(self):         self.enabled = True         self.checked = False      def onClick(self):         if self.dlg is None:             self.dlg = ImportDialog()         else:             self.dlg.Show()   import_dialog.py  class ImportDialog(wx.Frame):     def __init__(self):         wxStyle = wx.CAPTION | wx.CLOSE_BOX | wx.SYSTEM_MENU         wx.Frame.__init__(self, None, wx.ID_ANY, "some msg", style=wxStyle, size=(350, 200))         self.panel = wx.Panel(self, wx.ID_ANY)          self.path_label = wx.StaticText(self.panel, wx.ID_ANY, u"some msg", pos=(8, 8))         self.input_path = wx.TextCtrl(self.panel, wx.ID_ANY, value="", pos=(8, 36), size=(330, 21))          self.path_label = wx.StaticText(self.panel, wx.ID_ANY,                                         u"some msg",                                         pos=(8, 65))          self.group_layers = wx.ComboBox(self.panel, wx.ID_ANY, pos=(8, 93), size=(330, 21))          self.ok_button = wx.Button(self.panel, label="OK", pos=(8, 130))          self.Bind(wx.EVT_CLOSE, self.OnClose)          self.Center()         self.Show(True)      def OnClose(self, event):         self.Show(False)


Can't access PostGIS data after Ubuntu update

Our PostGIS database is installed on Ubuntu. Recently I made an upgrade to Ubuntu 20.04. Now we can't access any PostGIS data. Example: postgres=# select * from default_line limit 10; ERROR:  could not access file "$libdir/postgis-2.5": Datei oder Verzeichnis nicht gefunden  Ubuntu updated our PostgreSQL from 11.? to 11.7, but obviously deleted some important extension files. It installed a second PostgreSQL 12 with PostGIS 3.0. After some fiddling I can access both instances and I am willing and prepared to move the data to the new instance. But all tools like pg_dumpall, pg_upgrade also barf on missing extensions - apart from postgis-2.5 these are rtpostgis-2.5, plpython3, libpgrouting-2.6 and ogr_fdw. So I think I need the appropriate .so files. I can't find the needed packages and don't know how to build them myself (from which source files?). What can I do? EDIT: I have seen the similar questions mentioned in the comments. As far as I see none of the answers let me access the existing data. EDIT three days later: I didn't find any way to access our data in Ubuntu 20.04. What I did is install Ubuntu 19.10 on another (virtual) PC with PostgreSQL 11/PostGIS 2.5 and let it access a copy of the database, this made the data readable again. I dumped the database and imported it in PostgreSQL 12 in Ubuntu 20.04. I had a "downtime" wednesday morning to friday morning where projects stalled, and I lost a night of sleep.


Is it wasteful to use a heating element, instead of doing useful work?

Consider a computer CPU consuming electrical energy to perform calculations and consequently emitting heat.  Assumption: That a CPU consuming x Watts of power, emits the same amount of heat as an incandescent heating element which consumes the same amount of power.  The rest of the question assumes that this is true: the energy has to go somewhere, and I can't see that the outcome of the calculations counts as "somewhere".  I've long repeated the claim that "wasteful" appliances such as incandescent lightbulbs, over-full kettles, computers left running, etc. are not wasting power if we make the assumptions:   the appliance is in a room which we aim to maintain at above a certain temperature, warmer than the external temperature (cf a home in winter) the room leaks heat to the outside faster than the "wasteful" appliances emit heat. the room contains an electric heater the electric heater is regulated by a thermostat   In these circumstances, I think (?), if a light bulb produces excess heat, its only effect is to cause the thermostat to switch off sooner, so what energy you've "wasted" in the light bulb, is "saved" at the heater.  I don't think that's controversial.  But my question is:   If a CPU does useful work, and emits all the input energy as heat as a side effect But a heating element emits the same heat, without doing useful work Is it therefore wasteful to use heating elements? Is it more efficient to (for example) run  on a CPU, to get "free" computation as a side-effect of heating?   One reason to heat a room with a heating element, rather than with CPUs, is that the heating element is much cheaper to produce. But ignoring the initial cost of the hardware, would a "heater" made out of 20 CPUs, each running at full capacity and consuming 50W each, output less thermal heat than a 1KW element that does nothing else useful?  To be useful, of course, the CPUs would need to output the result of their computations, which would account for a tiny amount of energy. Let's assume that's negligible.  I'm sure there's a flaw in there somewhere; probably that the assumption above is false. What have I missed?


Make a physical clone of an object and modifiy all clones at once?

Is it possible to clone an object multiple times and then modify the original so all the clones modify at the same time? To be sure, I dont want to duplicate and modify each object one by one.


Is the operating system aware of application threads?

My CS professor told to the class that the OS has no idea that an application has launched threads. Is this true?


Is it possible with Java to delete to the Recycle Bin?

Java is the key here. I need to be able to delete files but users expect to be able to "undelete" from the recycle bin.  As far as I can tell this isn't possible.  Anyone know otherwise?


How to solve this equation manually: $(x^2+100)^2=(x^3-100)^3$?

Well, I was given a problem, find $x$, if:  $$(x^2+100)^2=(x^3-100)^3$$  I tried everything that I could, I even opened up the brackets which gave an ugly degree 9 equation, I also tried to plot the curves $y=\left(x^2+100\right)^2$ and $y=\left(x^3-100\right)^3$ and locate their point of intersection but it couldn't be done manually.  So, in the end I was forced to use hit and trial after doing which I got the answer, is their any way to solve this algebraically??


Find the integral $\int_0^1 \frac{x^2 - 1}{ \ln(x)} dx$

I tried substituting $\ln (x)$ as $t$, but it led to no standard integral for me to move further.  Substituting $\ln (x)$ as $-t$ gives $$ \int_0^\infty\frac{e^{-t}-e^{-3t}}{t}\,\mathrm{d}t $$


Stack Exchange Page Formatting Goes weird

For reasons I don't understand, the page formatting goes weird when I look at various stack exchange sites.  The error is not consistent.  It comes and goes as it pleases, depending on factors I have not yet been able to identify or isolate.  Even more weird, is if I try to change the profile. I get this/these errors...   Oops! There was a problem updating your profile:   unusual error updating your profile -- please try again!  So far, this site (meta.stackoverflow.com) and the regular stackoverflow.com do not exhibit this behavior. Most of my other StackExchange sites do this; when they feel like it.  Did I do something wrong ? Is this my problem ? Is it the system ? Has anyone else observed this or similar behavior ?  This is what the page looks like


How can I safely transport cooked food in warm weather?

I've a factory of 300 people and I serve them lunch everyday. At the moment the kitchen is adjust-en with the factory but I have to move the kitchen asap to a place around 20kls. far from my factory. The big problem is I'm not sure how to deliver them from my kitchen to factory. I like to box every meal separately. At summer the temperature is 40+ C outside and my concern is will the food be safe to travel from kitchen to factory without getting spoil. Do I need refrigerated vans and if then how will I be able to warm them up ? I will be using stainless steel contains to carry the foods. Please advice.


Undefined symbols for architecture x86_64 even though symbol is declared

Edit 1: This question what closed as a duplicate. While the suggested duplicate  addresses the possible causes of such "undefined symbol errors" in a general, and very comprehensive, manner it does not address the exact cause of the error in my sitution. While it may be possible to reason based on the information provided in the linked post in a way that hones in on my problem, it is beyond me to do so and I would require further assistance. For these reasons, I believe that it is inaccurate to treat this is a duplicate question.  Edit 2: Reading Kerndog73's comment about putting all template functions into header files the following accepted answer to the following question  answers my question.  I am implementing a graph based on adjaency sets and have run into the following compiler error:  Undefined symbols for architecture x86_64:  "Vertex<int, int>::addEdge(Edge<int>)", referenced from:       HashGraph<int, int>::addEdge(int, int) in hash-graph-test-99739e.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)   and I cannot manage to figure out why Vertex<int, int>::addEdge(Edge<int>) would be undefined.  Below is the code that I believe to be relevent for this error:  hash-graph.cpp  /**  * Adds a non-existent, directed, edge from a "tail vertex" to a   * "head vertex" by modifying the adjacency set of the "tail vertex".  * If the passed in edge already exists, the method instead returns  * false.  *   * @param   tail  the vertex at which the edge starts  * @param   head  the vertex at which the edge ends  * @return  false if edge already exists, else true */  template <class K, class V> bool HashGraph<K, V>::addEdge(K tail, K head) {    Vertex<K, V> vTail = getVertex(tail);    Edge<K> edge(head);    return vTail.addEdge(edge); }  template <class K, class V> Vertex<K, V> HashGraph<K, V>::getVertex(K key) {    auto searchResult = graph.find(key);    if (searchResult != graph.end())       return searchResult->second;    throw "Vertex not found."; }   edge.hpp  template <class K> class Edge {    private:       static const int NO_COST = -1;       K head;       double cost;     public:       Edge(K head);       Edge(K head, double cost);        K getHead() const {return head;}       double getCost() const {return cost;}        bool operator==(const Edge<K> &other) const       {          return (head == other.head && cost == other.cost);       } };  template <class K> Edge<K>::Edge(K head) {    this->head = head;    cost = NO_COST; }   vertex.hpp  template <class K, class V> class Vertex {     private:         K key;         V value;         std::unordered_set<Edge<K>> adjacencySet;      public:         Vertex(K key, V value);         K getKey() const {return key;} // TODO: what does const do here exaclty>         V getValue() const {return value;}         bool addEdge(Edge<K> edge);          // TODO: what does const do here exactly         bool operator==(const Vertex<K, V> &anotherVertex) const         {             return key == anotherVertex.key;         } };   vertex.cpp  template <class K, class V> bool Vertex<K, V>::addEdge(Edge<K> edge) {    if (adjacencySet.find(edge) != adjacencySet.end())    {       adjacencySet.insert(edge);       return true;    }    return false; }   Note that a lot of code has been omitted that exists in the various files. Personally, I am a bit suspicious of the getVertex method, but have not been able to find anything concrete yet.  Could someone help me understand why this error is being thrown?


How relevant is a candidate's BA institution when applying to graduate schools in the US?

In the American university system, how relevant to the graduate admission committee is the institution from which a given candidate obtained his/her bachelor's degree?


What's typically wrong with cheap mountain bikes?

I'm interested in buying a mountain bike. Recently, I was at a Decathlon and checked out their mountain bikes. They only had 3 fullies and I really liked the 700 Eur one. I didn't buy it outright because the dampening locking mechanism seemed to be broken as I was still able to push the handle down even after locking. Maybe you can tell me whether that's normal for any dampening locking mechanism / normal for cheap ones / definitely broken. Here's a short video of me pushing the handle with various amounts of force but generally the same amount of force before and after locking:                                  I'm not sure whether the one I found on their website that one because it looks different (maybe because it's a different color) but  is the only 700 Eur fully they list.  I didn't only check out bikes at Decathlon but I also looked around bike shops when I was touring around or just cycling in town and came by one. I don't think I ever saw a fully that cheap, and anything that I'd figure comparable would've cost at least triple that.  Now I know very little about bikes. I never bought a new bike and never ever bought a mountain bike. I used the very old mountain bike my father bought some 20 or more years ago and didn't need anymore. But it broke down recently and is in disrepair, so I'm looking for a new one. It did not have fancy things like a dampening locking mechanism, so I have no experience with that.  What potential improvement is there when spending double the money? I don't wanna spend triple to money but double would be okay. I've got a feeling that I'm really missing something here but even after weeks of thinking about it, I still can't put my finger on it.