Two months ago I submitted a manuscript to my advisor for reviewing and submitting to a journal. He didn’t reply to that and when I asked him about it, he said we should think about publishing after two months and we don’t need to rush. He didn’t even bother to look into my paper.  I feel very anxious and have written a second paper this time with no discussion or involvement from him. I have put his name in the acknowledgement section for allowing me to use his lab computer. Do I stand a chance in publishing it without his name? The idea was never discussed by us and his involvement in this paper is almost not existent.  I have only a year to graduate and am worried for job hunting without publications. (About the quality of paper: Last year, when I came up with an idea, he rejected it claiming it was not good enough; six months later I saw it published by someone else. This time I am confident of getting accepted in reputed journals.)


I have to prove the identity:     $$\binom{n}{0} + \dfrac{1}{2} \binom{n}{1} + \dfrac{1}{3} \binom{n}{2}  + ... + \dfrac{1}{n+1} \binom{n}{n} = \dfrac{2^{n + 1} - 1}{n + 1}$$   First thing I tried was to think about a combinatorial proof, but I couldn't interpret the identity in any way that makes sense. So, how should I prove this?


Is mass slowly destroyed when force of gravity is applied?

This may seem like a far fetched idea, but consider this system.  Imagine a simple system of just the Moon orbiting around the Earth, creating low tides and high tides with its gravity.  Now imagine we add a paddle wheel that produces work based on the flow of water when it is changing tides.   If the tidal cycle repeats itself many times we could expect a lot of work, but where does this energy come from?  The gravitational potential energy of the moon would be converted into what I believe is internal energy of the water and work of the paddle.   It seems to me that as long the moon orbits the Earth, then "free energy is created".   This leads me to think that if mass would be destroyed by gravity, then conservation of energy still applies. However, I have never heard about such a thing being done by gravity. Is there anything that I did not consider in my analysis of this situation? How is energy conserved?


How can gravity be describe as a carried on gravitons if light is affected by gravity but no effect on gravity?

if photons are emitting graviton while it going near to mass then this graviton should effect the mass the much as the graviton that object with mass emit, and we know light have no mass  so it not have an effect  on gravity. another problem I was thinking about  is that gravity may expends in the speed of light but when object is going through curve of space time and getting way for mass we may say that the gravity force it fill is weaker but if it just follow the space-time curve then it would be effected immediately, and if it result of emitting graviton then the effect would be delayed till the graviton get to the mass which would make the gravity getting weaker in the upside relation as we except because it would be more delayed the much you get a way from gravity


From  I see that $\mathbb{Z}^{\mathbb{N}}$ is not a free abelian group. Someone can explain me why?  Thanks a lot!


review times are off: "come back in X  to continue reviewing"

Same problem described elsewhere for other "come back in <time>.." aspects of the "stack" ( and ).  To repeat the descriptions elsewhere: After completing review of 40 "Close votes", I may see "come back in 1 hour to continue reviewing".  So, I do that... and in one hour I see "come back in 59 minutes to continue reviewing".  And again in 59 minutes: "come back in 59 seconds to continue reviewing".  From the first, it should have said "come back in 2 hours..."... and so forth.  Comments in the other posts suggest the issue has been addressed elsewhere - but it remains in time communicated on the .  VERY annoying for .


Angular momentum conservation in a non-inertial frame

A uniform rod is kept on a horizontal, smooth surface. A point mass moving with some velocity strikes the end of the rod and sticks to the end. Will the angular momentum be conserved about the "geometric" center of the rod (which is not the same as the COM of the system)?   My initial thinking was that the angular momentum should remain conserved about all points in the plane, as there is no external torque acting on the "rod+mass" system.But the answer says angular momentum will not be conserved about the center.  The only sort of explanation I can come up for this is that the rod will accelerate due to the impact , and thus we are looking at a point in a non-inertial frame.  So is the external torque provided by the "pseudo-force" that we need to account for?


This is quite a non-standard question, certainly for mathematics, though I believe it is no less important (for me and my peers, i.e. grads).  The course I am reading so far introduced us to Groups, rings, fields, etc. in the first year, progressing to characters, reps etc in the latter years.  However, even with representation theory I still don't feel like I have a good intuition.  How do you gain intuition in such an area. I know there will be a response of doing examples, but this doesn't really help - I've done lots already.  Am I doomed.


Why can't read the contents of a directory?

All filenames mentioned here are directories.  The permissions of /media/disk are 0744 (drwxr--r--). The permissions of /media/disk/directory are 0755 (drwxr-xr-x). I do not own these directories in anyway.  Why can I ls /media/disk, but can't ls /media/disk/directory? My guess is that ls needs run access to /media/disk, but this would be stupid because if I have read access to a file (i.e. if r is set), then I should be able to read the file.  In addition to the question above, if I'm correct in saying that the issue is due to lack of run access, I want to ask why what I said is stupid, isn't.  System information:  DISTRIB_ID=Ubuntu DISTRIB_RELEASE=18.04 DISTRIB_CODENAME=bionic DISTRIB_DESCRIPTION="Ubuntu 18.04.2 LTS"   I don't think the proposed duplicate explains why this feature isn't stupid.


How did it happen that one user can access files of another user's account on the same computer?

On the same computer, I have two user accounts, one for work and the other personal. On Ubuntu 18.04 I can access, for some reason, files from one account if I am logged in in to the other (from the command line, or programs just open them). How can I prevent this? How did this happen?


Scaling objects without scaling children

I have two basic meshes: "head", selected, and "tube", below (apologies for the bad layout).     What I'm trying to do is extend the tube object by scaling it in the z-axis, while keeping the head in the same size and same place relative to it. Obviously, just scaling the tube will have no effect on the head, while using Proportional Editing also scales the head. If I just scale tube then move head to it, it's difficult to get the placement precise (since vertex co-ordinates aren't the same between objects).  How do I scale one and keep the other fixed relative to it?  Full disclosure: this is just a simplified example, while my actual mesh is imported from a .obj, so any solutions involving creating the mesh from scratch won't work.


I'm getting a distortioned weird effect when ''Setting up the tracking scene'' in my movie clip editor

Whenever I look into my 3d viewport through my camera I see this weird effects, how do I get rid of them? My resolution matches the footage's


How I can recover files when the folder shows empty but the files are not deleted?

Yesterday, my laptop caught a virus which caused massive damage. Since them, I have been trying to recover important files before reformatting my computer, a task the virus has not made easy.   Restoration points predating the attack have been deleted.  Most of my folders show empty.  My Start menu is essentially empty, with the exception of Trillian and Mirror's Edge. The same goes for my Desktop, which only has programs which were installed after the attack.  Searching for files through my computer is pretty much useless, as it only rarely brings up anything. I suspect most of my files have not been deleted. While my folders show empty, uTorrent still does display them and I can open them from here. Unfortunately, when I select Open Containing Folder, the folder still shows as completely empty even if I'm currently watching a video from that very folder. Further adding evidence to the not-deleted-just-missing theory, the data recovery software I'm using (Restoration) cannot find only find an handful of the missing files.   If they were deleted, I could do a forensic recovery to get them back but since they're probably still somewhere on my computer, just out out of my reach, I can't find them.   Under those circumstances, is there a way I can recover those files?


Can I share my iMac's internet to iPhone or iPad over USB?

I have an iMac, connected to the Internet via Ethernet, and an iPhone 4. I would like to share the iMac's Internet connection to my iPhone via the USB Cable (because my wife dreams of a wifi-less household).  I've set up Internet Sharing, specifying "sharing from: Ethernet  via: USB IPhone", but when I test, the iPhone cannot connect to the Internet. Is there something I need to activate on the iPhone?   iMac, mac os x version: Mountain Lion, 10.8.4 iPhone 4, IOS Version: 6.1


Why do we need this feature? It has been many times asked users to vote a post for its content, not anything else. However, for example, when a post is heavily downvoted, users usually treat the post in either of the following ways:  They ignore it because they think that it is worthless.  They intend to vote it; however, something in their minds repeatedly tells them "it is likely a worthless post because many users have downvoted it. Don't waste your time for reading this post, and downvote it".   I want to conclude that many users, even experienced ones, are highly affected by vote results on posts, so they may not cast their votes based on content of posts. What is this feature? I think it should not be a bad idea that vote results are not shown in a short while (for example, one hour, 12 hours, one day, ...) after posting a question. So users tend to read each post carefully before casting their votes.


If $\big\{n(k);k\in \mathbb{N}\big\}$ be set of all natural numbers none of whose digits is $6$, does $\frac1{n(1)}+\frac1{n(2)}+\ldots$ converge?

If $\big\{n(k);k\in \mathbb{N}\big\}$ be set of all natural numbers none of whose digits is $6$, does $$\frac1{n(1)}+\frac1{n(2)}+\ldots+\frac1{n(k)}+\ldots$$ converge?   Actually,  I have tried of using comparison test to show that it does converge or diverge, but I don't even know it converges or not, and as it is a sub-series of  $$1+\frac 12+ \frac 13+\frac14+....$$  which diverges very slowly, hence calculators are not helpful to determine it's nature.


They say that all colors can be formed by mixing Red, Green, and Blue appropriately. Is it true? Isn't the Fourier basis infinite dimensional? Or does it turn out to be the case that only three frequencies happen to reproduce most of the colors in the visible range?


When I view most glass from the side it's green which I've found out is due to impurities in the glass specifically from iron oxide. Why is it when I view the larger face from an oblique angle, it isn't nearly as green? I cannot personally notice any different on the piece I have next to me even when I hold it at an angle that would be almost looking at the edge of the glass. It is pretty small (about 2.5" x 5" x .0625" or about 61mm x 127mm x 2mm, l x w x h) but I feel like it's big enough that I'd be looking through enough glass to get the green.


Remove title bar from GNOME but keep window controls

I want to remove the title bar from maximized GNOME applications, but every extension that does this also removes the window controls. How do I get rid of the title and keep the controls?


Proof of $ f:I_n \rightarrow I_m \Rightarrow n = m$

I am trying to improve my proof-writing skills.  Would the following proof be correct for the $ f:I_n \rightarrow I_m \Rightarrow n = m$ bit?  Problem:  Prove that the notion of number of elements of a nonempty finite set is a well defined concept. More precisely, prove that there exists a bijection $ f:I_n \rightarrow I_m $ if and only if $n = m$.  Attempt:  First prove $ f:I_n \rightarrow I_m \Rightarrow n = m$.  Assume that $ f $ is a bijective function such that $ f:I_n \rightarrow I_m $  By definition, since $f$ is injective, $ \forall a, b \in I_n, f(a) = f(b) \Rightarrow a = b $, where $ f(a), f(b) \in I_m $. Therefore every element in $I_m$ corresponds to at most one element in $I_n$. $\quad (1)$  Also by definition, since $f$ is surjective, $ \forall b \in I_m, \exists a \in I_n $. That is every element in $I_m$ corresponds to at least one element in $I_n$. $ \quad (2)$  Now if $ n > m$, then by $(2)$ some element in $I_n$ corresponds to an element in $I_m$ which is already mapped to. This cannot be true.  Likewise, if $ n < m$ then by $(1)$ some element in $I_n$ corresponds to more than one element in $I_m$. Again, this cannot be true.  Therefore $n = m$.  EDIT:   $I_n = \{  j \in \mathbb{N} ; 1 \leq j \leq n \}$  EDIT 2:  Going into more detail as per the guidance in the comments. I have only proven statement $(1)$ as the proof for statement $(2)$ is similar.     By definition, since $f$ is injective, $ \forall a, b \in I_n, f(a) = f(b) \Rightarrow a = b $, where $ f(a), f(b) \in I_m $.       Therefore every element in $I_m$ corresponds to at most one element in   $I_n$. $\quad (1)$   Proof of this statement:  Select an arbitrary element $b \in I_m$. Assume that $f(a_1) = b$ and $f(a_2) = b$ where $a_1 \neq a_2$. But since $f$ is injective we know that $f(a_1) = f(a_2) \Rightarrow a_1 = a_2$. Therefore every element in $I_m$ corresponds at most to a single element in $I_n$.


Why is $$\sqrt{7 + 2\sqrt{10}} = \sqrt2 + \sqrt5 $$  I can't seem to prove it so can someone help me out in doing so if it is possible.   And if it can't be proven, is there and explanation to why this is so?


How is a NAND gate constructed from just addition and (mixed) multiplication in a FHE circuit?

From what I've read I know that FHE requires "circuits" to construct functions and gates to operate on the FHE encrypted data. I've also read that these circuits are constructed from just addition, multiplication, and mixed multiplication. How does this work? How, only using those operations, can we construct a NAND gate for example?


Show for $f:A \to Y$ uniformly continuous exists a unique extension to $\overline{A}$, which is uniformly continuous

Working on the following problem from Munkres:      Let $(X, d_{X})$ and $(Y, d_Y)$ be metric spaces; let $Y$ be complete.   Let $A \subset X$. Show that if $f:A \to Y$ is uniformly continuous,   then $f$ can be uniquely extended t a continuous function $g:  \overline{A} \to Y$, and $g$ is uniformly continuous.   If there exists such an extension, it must be unique, and $f(x) = \lim_{n \to \infty}f(x_n)$ for $x_n$ a sequence in $A$ converging to $x \in \overline{A}$. To show this limit exists, let $x_n \to x$, then $f(x_n)$ is Cauchy, since uniformly continuous functions take Cauchy sequences to Cauchy sequences. Then $f(x_n)$ converges by completeness, and I claim it converges to $f(x)$.  Now, to show $g$ is uniformly continuous, I kind of brute-forced it, and I was wondering if anyone had a more elegant method. (I consider the proof up to now pretty elegant.) What I did was: Suppose for contradiction that $\exists \epsilon >0$ s.t. $\forall \delta >0\,\, \exists x_\delta, y_\delta \in \overline{A}$ s.t. $d(x_\delta, y_\delta)< \delta$ and $d(g(x_\delta), g(y_\delta))> \epsilon$. Let $\delta := \delta_{\epsilon}/2$, where $\delta_\epsilon$ is taken from the uniform continuity of $f$. Now $d(g(\cdot), g(\cdot))$ is continuous...in particular, it is continuous in each variable separately. Therefore we can vary $x_{\delta}$ and $y_{\delta}$ a little bit, to get $x^*,\, y^* \in A$ such that $d(x^*, y^*)<\delta_{\epsilon}$ and $d(f(x^*), f(y^*))>\epsilon$, a contradiction.   Does anyone know a more elegant method to show the uniform continuity?


What is the purpose of anonymous { } blocks in C style languages?

What is the purpose of anonymous { } blocks in C style languages (C, C++, C#)  Example -    void function() {    {     int i = 0;     i = i + 1;   }    {     int k = 0;     k = k + 1;   }  }    Edit - Thanks for all of the excellent answers!


Get an random String from MySQL with Java

I'm actually have the Problem that I don't know how to get a random  nickname from my Table called "nicks" where the column called "nicknames".  Here is an example what I've.  private String getNames() {     String names= "";     try {         ResultSet rs = Core.getSQL().getResultSet("SELECT * FROM nicks");          names = rs.getString("nicknames");     } catch (Exception e) {         e.printStackTrace();     }     return names;   } }   Can someone pls tell me why I only get the String "" and how I can get just one random entry out of my database?  Hope that someone can help me.


The expectation of sum of uniform random variables given their maximum

I have been working on the following problem by using two approaches. They give different results and I do not find the mistake. I have random variables $X_1,\ldots,X_n$, which are uniformly distributed on $[0,\theta]$. I want to compute $E\left[ \sum_{i=1}^{n}X_i\mid T=t \right]$, where $T=max\{X_1,\ldots,X_n\}$.  Approach 1: Since $T=t$, one of $X_i$ is equal to $t$ and others are uniformly distributed on $[0,t]$. Thus, $E\left[ \sum_{i=1}^{n}X_i\mid T=t \right]=t+\frac{(n-1)t}{2}=\frac{(n+1)t}{2}$.  Approach 2: Note that since $P(T\leq t)=P(X_1\leq t,\ldots,X_n\leq t)=(\frac{t}{\theta})^n$, $f_T(t)=\frac{nt^{n-1}}{\theta^n}$. Similarly, since $P(T\leq t\mid X_i=x)=(\frac{t}{\theta})^{n-1}$, $f_{T\mid X_i}(t\mid x)=\frac{(n-1)t^{n-2}}{\theta^{n-1}}$, where $x\leq t$.  Then, $f_{X_i\mid T}(x\mid t)=\frac{f_{X_i}(x)f_{T\mid X_i}(t\mid x)}{f_T(t)}=\frac{\frac{1}{\theta}\frac{(n-1)t^{n-2}}{\theta^{n-1}}}{\frac{nt^{n-1}}{\theta^n}}=\frac{n-1}{nt}$. This implies that  $E[X_i\mid T=t]=\int_0^tx\frac{n-1}{nt}dx=\frac{(n-1)t}{2n}$. Therefore, $E\left[ \sum_{i=1}^{n}X_i\mid T=t \right]=\sum_{i=1}^nE[X_i\mid T=t]=\frac{(n-1)t}{2}$.   As you see, the results are different. In my opinion, the conditional density $f_{X_i\mid T}(x\mid t)$ is faulty since it does not sum up to 1. But, I do not understand why.


Normal subgroups of infinite symmetric group

I recently took a course on group theory, which mentioned that the following proposition is equivalent to the continuum hypothesis: "The infinite symmetric group (i.e. the group of permutations on the set $\mathbb{N}$) has exactly 4 normal subgroups." Does anyone have any references or explanation for this?


According to Wikipedia:     In the form of a screw jack it is commonly used to lift moderately   heavy weights, such as vehicles. More commonly it is used as an   adjustable support for heavy loads, such as the foundations of houses,   or large vehicles. These can support a heavy load, but not lift it.   Insights into its mechanism is greatly appreciated .


How do I get Canon EOS 5D Mark II RAW files using a USB cable and bypassing the EOS utility?

I had my CF card reader die on me a few times (i.e., it suddenly stopped working: instead of being recognised, and then allowing me to access the CF card, it was "cycling", i.e., appearing/disappearing from Windows). So I decided to do a backup using an USB cable.  What happened:   My PC had [historically] the EOS utility installed For personal reasons (mostly: special workflow, and avoiding the clumsy download interface) I wanted to just copy the files over, bypassing the EOS utility However, when plugging the USB cable between the 5DMkII and the PC, it only got recognised as the camera, and when exploring that I could see each image twice in JPEG (one with extension, the other without, but both JPEG, whereas I know that on the CF one is .JPG, and the other .CR2, larger and with more details). I tried, however, to copy both, each in separate directories (as they had the same name), but it really ended up as two identical files each time, as if it "hides" the raw and instead shows another instance of the associated JPEG file.    Example: using a CF reader I would get IMG_0001.JPG and IMG_0001.CR2, the 2nd raw and much larger in details and size. Via cable I saw "IMG_0001" and "IMG_0001.JPG", both ending up as "IMG_0001.JPG" on my computer, and no raw file...  How can I retrieve the .CR2 files? (if possible, without uninstalling the EOS utility! But still bypassing it... I.e., how do I use a USB cable to access the files as if by a card reader?) (Should I boot on some linux boot CD and try from there?)


I am not able to create an icon for the android studio I have created a .desktop file for android   [Desktop Entry] Version=1.0  Type=Application Terminal=false Icon=android_studio Exec=sh /home/username/Downloads/android-studio/bin/studio.sh Name=Android Studio   The android folder at /home/username doesn't have studio.sh file  but only have sdk folder so I have given path from downloads/android-studio to studio.sh    I have also given permission to .desktop file I have created.


Did Esther handed her bag to you before she left?   Did Esther hand her bag to you before she left?   Did Esther hands her bag to you before she left?      Which of the three is grammatical?


Overlaying two shapefiles and projecting one of them from Geographic to Projected Coordinate System?

I am trying to project a shapefile which is in Geographic Coordinate System i.e. Geocentric Datum of Australia 1994 to a Projected coordinate system i.e. Map Grid of Australia Zone 55 using GDA 94 datum, also called as GDA 1994 MGA Zone 55 I think.   I have several shapefiles and this is the only one in a different coordinate system.   I tried to change the projection in Arc Catalog - right clicking the layer going into properties and selecting the projected coordinate system I want but when I actually add the data into ArcMap with other layers already there, I get an error saying:     Warning, inconsistent extent! One or more of the added layers has an   extent that is not consistent with the associated spatial reference   information. Re-projecting the data in such a layer may lead to   unexpected behaviour   The layer gets added but it doesn't overlap other layers.


eigen values and eigen vector of a matrix

Let $A$ be an n *n matrix all of whose entries are 1. Find all the eigenvalues and eigenvectors of $A$. I have checked for 2*2 ,3*3 matrices and guessing the answer but in general how to show.


Short story about a man inadvertently winnng a road rage battle

So years ago I read a story that was more or less this: a man driving with his family gets cut off and gets into it with the driver of the other car, they battle aggressively, he ends up besting the other guy. He thinks this is just a normal occurrence but when it ends he gets a message saying congratulations, you are the new champion, challenger number 1 is so and so... I read this in a collection probably in the early 70s. Anybody know it? Thanks!


Controller area network arbitration with same message id

I am learning Controller area network. The arbitration for bus access is done with a message identifier(as given in CAN specifications). So if two nodes tries to transmit data on the bus with same message Identifier, then who will win the arbitration or what condition will arise under this situation? Maybe this is a silly question to ask at initial stage of my learning but if this condition arises how will the CAN bus behave.


Notepad++ and Lisp: Is it possible to use Notepad++ for SBCL Lisp development?

Is it possible to use Notepad++ for SBCL Lisp development? I have no intention in using Emacs and alike whatsoever. I would like to experiment with the language.  Edit: is it possible to run Lisp code in integrated mode? Think of IDE mode.


get_posts wont produce a list of custom type from a given category

Hi, I created a custom post type called "news" and custom categories called "news_category" to have them categorized. I want to list "news" posts that belong to one of these categories. In this case the category id is 83. This is my code: <?php $news = get_posts( array(     'post_type'      => 'news',     'category' => 83 ) );   if ( $news ) {     foreach ( $news as $post ) {         setup_postdata( $post );         the_title();     }     wp_reset_postdata(); } ?>  This will produce nothing despite category ID is correct. If I use a 0 instead then it lists all posts regardless of their category but any other number will list nothing. Why is that? By the way, I created the new taxonomy with this plugin: Custom post types Thank you. EDIT:               <?php     $news = get_posts(     array(         'posts_per_page' => -1,         'post_type' => 'news',         'tax_query' => array(                 'taxonomy' => 'news_category',                 'field' => 'term_id',                 'terms' => 82,             ),         ) );      $postslist = get_posts( $news );         foreach ($postslist as $crap) {?>          <a href="<?php $crap->title; ?>"><?php $crap->title; ?>       <?php }?>


How to cover CurrencyType object in test class?

I am updating the "conversion rate" on the CurrencyType object daily using batch class. But while writing test class unable to insert CurrencyType. This is because of CurrencyType object DML operation not allowed. Please suggest the way how I can cover this is in the test class. Thanks In advance!  Below Is the  Batch Class:   global class  updateCurrencyBatch implements Database.Batchable<sObject>,Database.AllowsCallouts {     String batchQuery='';     List<CurrencyType> localscope = new List<CurrencyType>();     List<Exchange_Rate__c> ctlist = new List<Exchange_Rate__c>();     Map<String,Double> updateRateMap = new Map<String,Double>();     global Database.querylocator start(Database.BatchableContext BC) {         system.debug('***Start Method');                             batchQuery = 'Select  id,IsoCode From CurrencyType where isActive=true AND IsoCode!=\'INR\'';                       return Database.getQueryLocator(batchQuery);         }      global void execute(Database.BatchableContext BC, List<CurrencyType> Scope) {         localscope=Scope;         ctlist =[SELECT  FromCurrency__c,ExchangeRate__c FROM Exchange_Rate__c];         for(Exchange_Rate__c et : ctlist){             updateRateMap.put(et.FromCurrency__c,Double.ValueOf(et.ExchangeRate__c));         }         for(CurrencyType ct : localScope){                                       String id=ct.id;                                       String str = String.valueOf(ct.IsoCode);             Double val = Double.valueOf(updateRateMap.get(ct.IsoCode));             //Double val = 1/vall;             system.debug('***Isocode:'+str);                                    system.debug('***rate:'+(1/val));             Http h = new Http();             HttpRequest req = new HttpRequest();             req.setEndpoint(URL.getSalesforceBaseUrl().toExternalForm() + '/services/data/v28.0/sobjects/CurrencyType/'+id+'?_HttpMethod=PATCH');             Map<String,double> mapstrBydouble=new Map<String,double>();             mapstrBydouble.put('ConversionRate',(1/val));             String body=JSON.serialize(mapstrBydouble);             system.debug('body'+JSON.serialize(mapstrBydouble));             req.setBody(body);               req.setHeader('Authorization', 'OAuth ' + UserInfo.getSessionId());             req.setHeader('Content-Type', 'application/json');             req.setMethod('POST');             HttpResponse res = h.send(req);         }     }      global void finish(Database.BatchableContext BC) {            }   }   ====================================================================  And my Test class :  @isTest  public class Test_updateCurrencyBatch  {     static testMethod void testMethod1()      {         CurrencyType[] curr= new CurrencyType();         curr.ConversionRate=46.3;         curr.IsoCode='AUD';         curr.IsActive=true;         curr.IsCorporate=false;         insert curr;          Exchange_Rate__c ec = new Exchange_Rate__c();          ec.FromCurrency__c ='AUD';         ec.ExchangeRate__c =46.3;          insert ec;          Test.startTest();          updateCurrencyBatch obj = new updateCurrencyBatch();         test.setMock(HttpCalloutMock.class,  new updateCurrencyBatchMockClass());         DataBase.executeBatch(obj);           Test.stopTest();     } }


Finding value of an exponential equation

If $ x^2=3x-1$ then find the value of $(x^6+1)/x^3$ I used the quadratic but it became too complicated


How to avoid splitting tables between sections

I have 5 tables and a section after them. After creation of an output file I have two tables on one page, then a section and last 3 tables on next page.  What I want to achieve is to put tables and section below them.  \begin{table}[ht]\footnotesize \centering \begin{tabular}{|ll|} ...... \end{tabular} \label{tab:result} \end{table}  \section{Section below tables}


How to create "wireless" networks in Eagle Cad

In  they've somehow created "wireless" networks, meaning networks that connect two components but don't have an actual wire in the schematics.  What are these called, and how can I create them in Eagle Cad 6.5?


What is the "last" data that get's backed up, when running pg_dump on a live server?

I'm wondering: If I start doing a pg_dump of a very large database (it would take hours), that is still running actively receiving writes, what is then the last data that goes into the backup? Is it:   The data as-it-was, at the point in time where the pg_dump command was initiated. The last changes that it encountered at some point where it was dumping that individual record. Something else.   Bonus question: If I'm trying to dump a database as part of trying to rescue it from corrupt data, will it then make any difference whether I use the directory format or the custom format?


Intuitive explanation for why the group $S_n$ has $n!$ elements

It's not entirely obvious to me that the group of permutations of a set A under permutation multiplication / function composition has $n!$ functions in it. Would someone be able to provide an intuitive explanation?   I am taking an undergraduate course on abstract algebra at the moment.


Using conditional statements in ArcGIS Field Calculator?

I have two fields, "P_Area" and "PC_Area", whose sizes I'd like to compare in a third field, "Areas_Equal". The "Areas_Equal" field should contain a "Yes" if the other two are equal and a "No" if they aren't.  How can I do this with Field Calculator and its Python Parser?


Water Valve to toilet will not stop water supply

Water valve to toilet will not stop water supply even when valve is shut off. I have opened and closed the valve several times but water continues to be supplied to toilet.


How can I decide if my homebrew item should require attunement?

Attunement slots are an important tool for maintaining game balance - especially in high magic settings where magic items are common.  If I've homebrewed a new magic item for my players, how can I decide if balance-wise this item should require attunement or not?  It's fairly trivial to say that the most powerful items should probably require attunement, whereas the least powerful probably shouldn't. But, in between these two extremes, where should the line be drawn?   Are there any guidelines in offical materials for when homebrewed items should require attunement?   And / or, can any guidelines be sensibly inferred through careful analysis of existing official magic items (contrasting those that do require attunement with those that do not)?


I have a beamer frame with six fairly short footnotes on it.  This takes up a fair bit of vertical space and not much horizontal space, so I'd like to put the footnotes into a two-column layout (even though the frame content itself is one column).    I tried dblfnote package (had no discernible effect) and the eledmac advice seen in , but I couldn't even get the document to compile with eledmac package included (something about \lemma being already defined).    How can I get Beamer to use a two-column environment for footnotes?  Ideally I would like to be able to switch this on or off for different frames, but I'd settle for a document-wide solution.  PS: I know footnotes are discouraged in Beamer, but I'm not asking for presentation design advice here.


Removing and recreating file does not change its creation timestamp on NTFS

I've experienced some strange problem with NTFS. The easiest way to reproduce it contains 3 steps.   Creating file foo.txt in arbitrary place, remembering its creation timestamp (it can be found in properties dialog for this file) Removing it with shift + delete Quickly recreating file with the same name, again looking at properties window. Creation timestamp didn't change since the first file creation (though modified timestamp is other).   This effect causes a great headake in implementing some complex logic in my Qt application. I am simply writing  QFile::remove(file);   but it is pretty clear that file removal must be some kind of flushed. What I want to know is an explanation of this effect and some tips how to aviod it. A way to correctly implement it in Qt (instead of simply writing) will be much appreciated. I have reproduced this effect on Windows 8.1.


Any non-negative integer can be written as the sum of distinct and non-consecutive Fibonacci numbers

The Fibonacci numbers  Fn are defined by the recurrence  Fn=Fn−1+Fn−2, with base cases  F0=0 and  F1=1.  Prove that any non-negative integer can be written as the sum of distinct and non-consecutive Fibonacci numbers. That is, if  FiFi  appears in the sum, then  Fi−1 and Fi+1  do not appear in the sum. For example:  17=F7+F4+F2  42=F9+F6  54=F9+F7+F5+F3+F1  How can i prove this?


MYSQL how i can ADD column that has comma separated name

i want to add column inside table. column name is name,surname how i can add this column inside already created table? like alter table MyTable ADD name,surname Varchar(100)  ???


print characters repetitively using asterisk symbol in bash

print '*' * 80   This python snippet prints 80 asterisks, which I use often as delimiters in log files.  How can I do it in bash script using operator overloading?


>>> 1.4 / 7 0.19999999999999998   Why??  I would like to get 0.2, so the issue is not the Python2 to Python3 int/float division change. Is there any solution other than using Decimal?  Python 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 08:06:12) [MSC v.1900 64 bit (AM D64)] on win32


Proof that $(1 + x)^n > 1 + nx$ for $x>-1$, $n$ a positive integer

For any positive integer $n$ and real number $x > -1$, show that $(1 + x)^n > 1 + nx$. This is Bernoulli’s inequality but I can't figure out how to start with this. Can someone help? Thanks


I keep running across mentions-in-passing of Area 51 that make it sound like it’s obsolete, being sunsetted, or somehow posing a difficulty to Stack Exchange. One example I stumbled over just now while following up on the fixed CSS bug yesterday is representative:  I noticed that area 51 is not on either list. It and stack apps were not affected. –  hildred  @hildred Area 51 isn't getting a design lift any time soon, if ever. –  Anna Lear♦  @AnnaLear Is there any chance of removing the stupid Gravatar thing from Area 51? –  Catija  @Catija Not really. We aren't working on Area 51 in any meaningful way these days. –  Anna Lear♦   On their own these kinds of comments can be confusing or even alarming, so to clear the air: what’s really up with Area 51? N.B. that I'm neither complaining nor an alarmed Chicken Little myself — I ask because I think it would be useful to have a Meta.SE question people can link to for more information on why Area 51 is apparently developmentally unloved. :)


How to set parameters for Describe() function?

I developed one tool  in arcgis using python code, in the process i used Describe(feature class) function to know the coordinate system of input feature class. I got success while compiling code, But i couldn't get how to set parameters for this function in tool(arcgis 10.0) designing.  I tried parameters as follow  Display  name:input feature class Data type : coordinate system. Type   : optional Direction : input.   My problem is  while i'm selecting input feature class, i didn't get coordinate system of that feature class.  Please Suggest..


Past simple or past progressive for a duration

is it possible to write   I heard some strange noises for the past two days after waking up  and it scared me. I am glad I have not heard them today     I was hearing some strange noises for the past two days after waking up and it was scaring me. I am glad I have not heard them today    I want to express that the strange noises lasted only 2 days and today is  back to normality


Is blackbody radiation due to electrons transitioning from higher levels to a lower level?

Yes please answer my question as I am not sure if I am right. Thanks in advance.


Linux Kernel current version ahead of Ubuntu

Why is the Ubuntu kernel (4.1.5) so far behind the current Linux Kernel (5.2.6, soon to be 5.3)?  I would love to use Ubuntu, but my development work depends on solid kernel code.


Well I "can" do this using the koma options.. However it results in a warning and the effect isn't completelly what I like it to be.  First the way I do it is:   \clearpage \KOMAoptions{paper=A3,paper=portrait} \recalctypearea  \chapter{Chosen airfoil and wing shape} \label{app:cad-airfoil}    \clearpage \KOMAoptions{paper=A4,paper=portrait} \recalctypearea   Now this results in a warning as follow:     /appendixAirfoil.tex: Package typearea Warning: Bad type area   settings! (typearea) The detected line width is about 55% (typearea)   larger than the heuristically detected line width. (typearea) You   should e.g. decrease DIV, increase fontsize (typearea) or change   papersize.   Another problem I have with above is that the margins are still relative to the paper size. Making the margins ridiculously large, and the actually area where I can put the cad drawing very small. (Ok I could put the cad at an offset from the margin, however then the accompanying text looks weird staring at a random position).  So How can I fix this problem with the margins (or problems, though I think it is the same one?). - Preferably just keep the same margins as A4 sheets, and if that's not easily possible manually set them?


How to make smoke simulation play longer?

I'm watching a Youtube tutorial, but when I put the mesh of a monkey and put a quick smoke and play it, for 40-50 frame it moves, but past frame 50 it just freezes. When I change the smoke to fire it didn't change. Please help me resolve this.


If $f$ is positive decreasing and continuous on $[0, \infty)$ I want to show that $\sum_{n=m+1}^{\infty} f(n) \leq \int_m^{\infty} f(t) \, dt$.

If $f$ is positive and decreasing and continuous on $[0, \infty)$ I want to show that $$\sum_{n=m+1}^{\infty} f(n) \leq \int_m^{\infty} f(t) \, dt \leq \sum_{n=m}^{\infty} f(n)$$ for all nonnegative integers $m$. Would we induct on $m$?


I recently came across a program called TikZ, for creating graphics. I don't know how to install it! In its website I didn't see any instructions. Could any one help me? I am using Windows 7 Home edition. Thanks


Why should Conservative forces have their curl equal to zero?(intuition)

There are several conditions that must be met in order for a force to be . One of them is that the curl of that force must be equal to zero? What is the physical intuition behind this? If you can, please explain it to me via the magnetic force fields because i have read that time-varying magnetic fields are not conservative because they do not meet that condition.I do not understand this.


When I booted up my windows machine this morning my menus had switch from English to what I think may be Russian and I can't read the menu options. I have tried unistalling, rebooting and then reinstalling but this has not helped. Can someone please advise me how to change them back.  Thank you


Blender subdividing faces and creating edges where shouldn't be any

In the original model there isn't any edges there, but there are some edges on render. What's happening here?  File:


How do I stop my settlers stealing my weapons and armour?

After clearing out a location I travelled back to Sanctuary Hills, where I keep all my spare power armour and my fancy weapons, and it was under attack from super mutants. Before I knew it Marcy Long had taken a Fatman and all my mini-nukes from the cabinet where I store them and wasted three mini-nukes on mutant hounds, and another settler had stolen one of my power armour suits and 21 fusion cores!  The strategy guide says settlers will only take things left out in the open:    I think they can also take things from the workshop, so I stored all my good stuff in a cabinet next to the power armour repair frame. Apparently that isn't safe, because Marcy helped herself to that cabinet!  I loaded an earlier save and when I arrived in Sanctuary Hills the first thing I did was take all the ammo and cores from that cabinet, to stop anyone stealing them. But when the mutants attacked one of the settlers still stole a suit of power armour! I think the settler must have brought a fusion core with them when they arrived in Sanctuary Hills. Usually I trade with new settlers to take nice loot from them and make sure they have some ammo and a bit of leather armour, but I must have not done that for this guy.  Apparently you can get NPCs out of armour by talking to them, but after the mutant attack everyone just said "thanks for the help, pal" and "you arrived just in the nick of time" (over and over and over, if I hear it once more I'm going to feed them to the next super mutant attackers). The thief wouldn't get out of his armour. I eventually pickpocketed the fusion core back (which took lots of reloading because I only had a 7% chance to succeed) but I don't want to have to do that again.  What is the best way to prevent settlers taking your "personal" gear, and how do you prevent settlers from taking power armour if they have their own fusion cores?


SQL Column has a value I need to split into two columns


Which parts of a Linux system does locate index or not index?

I had a look at man locate but couldn't find an answer to this.  The updatedb command appears to index everything under /, but according to my experiment it didn't index a file at /media/mike/W10 D drive/nonsense_file.  Am I to suppose that it excludes mounted media volumes/locations? Is this documented somewhere? Is there some way of choosing to include some of these locations?


I am working in python. I have a function for incomplete beta. Iow would I calculate tCDF and invT using this? the incomplete beta function that I have is this:  def incBeta(a, b, x):      # Shortcut special cases     if (x == 0):         return 0;     elif (x == 1):         return 1;      # otherwise calculate things.     else:         lbeta = math.lgamma(a+b) - math.lgamma(a) - math.lgamma(b) + a * math.log(x) + b * math.log(1-x)         if (x < (a+1) / (a+b+2)):             return math.exp(lbeta) * contfractbeta(a, b, x) / a;         else:             return 1 - math.exp(lbeta) * contfractbeta(b, a, 1-x) / b;   How do I calculate the tcdf and invT using the value returned from this?


How to prove $\sum_{k=1}^{n}F_k = F_{n+2}-1$ by induction when $F_n$ is the Fibonacci sequence

Let $F_n$ be the Fibonacci sequence where  $F_0$ = 0  , $F_1$ = 1 and  $F_n$ = $F_{n-1}$ + $F_{n-2}$.                   I want to prove the following by induction. $$\sum_{k=1}^{n}F_k = F_{n+2}-1$$ Here is what I have so far.  Can anybody tell me if I am right?  Base case = n=1  $F_k$ = 1 = LHS  $F_{1+2}$ - 1 = 2 - 1 = 1 = RHS  Statement is true for n=1.  Assume statement is true for n=i.  $$\sum_{k=1}^{i}F_k = F_{i+2}-1$$  Prove statement is true for n=i+1.  $$\sum_{k=1}^{i+1}F_{k} = F_{((i+1)+2)}-1$$  $F_1$ + $F_2$ +...+ $F_i$ + $F_{i+1}$ = $F_{((i+1)+2)}-1$  $F_{i+2}$ - 1 + $F_{i+1}$ = $F_{((i+1)+2)}-1$  $F_{((i+1)+2)}-1$ = $F_{((i+1)+2)}-1$  Statement holds for n=i+1


What do you call someone who hates people with mental disabilities?

What do you call someone who is hateful, discriminatory and bigoted against people with mental illness and further stigmatizes them by calling those with mental disabilities nutcases, psychos, freaks, mental, and all the rest?


. /path/to/a/shell-script-file ? (within a shell script)

What does . /path/to/a/shell-script-file do exactly? I mean obviously it executes that shell script but why put that . followed by a space before the path/name of the script file?


Merging multiple SpatialPolygonDataFrames into 1 SPDF in R?

I have created 2 polygons in QGIS. Using them in R, polygons become automatically SpatialPolygonsDataFrame (SPDF). I would like to merge them into single SPDF (as is super easy in ArcGis using Tool Merge). I am sure that there should be simple way how to complete that in R, but I can't find how. the merge function seems to merge only data.frames, aggregate function dissolve multiple polygons into one shp, gIntersect (by typing join function) returns logical value, not at all the SPDF.    data are available here:   library(sp) library(raster) library(rgeos) library(spatstat) library(rgdal)      library(maptools)  setwd("C:/...") a<-readOGR(dsn=getwd(), layer="pol.a") b<- readOGR(dsn=getwd(), layer="pol.b")  ab<-merge(a, b)  # what tool if not "merge" to use??


Battery service and insanely low maximum charge

Recently my Macbook Pro Retina Late 2013 has started to shut down unexpectedly while running on battery. I thought it was because of my CPU was too hot but it was not the case. When checking it further, I found that my battery status is "Service Battery". I used coconutBattery to check and found that the Full Charge Capacity of my Mac is insanely low. I could be sure that it was around 90% last week and suddenly now it dropped to 46.9% of the Design Capacity.    I tried resetting SMC like many other said but unfortunately, it did not work for me. One symptom I saw before having this issue is that my Macbook temperature was quite high. I could feel the obvious difference in temperature between my Macbook and others' at the office when touching my hand on it, I guess my Mac was about 10 degree Celsius higher than others.  Is anyone here had this issue before? Should I replace my battery completely? Is it possible to replace the battery only on this Mac, I think it is nonremovable?


How to "flatten" a multi-dimensional array to simple one in PHP?

It's probably beginner question but I'm going through documentation for longer time already and I can't find any solution. I thought I could use implode for each dimension and then put those strings back together with str_split to make new simple array. However I never know if the join pattern isn't also in values and so after doing str_split my original values could break.  Is there something like combine($array1, $array2) for arrays inside of multi-dimensional array?


Now that Unity is no longer going to stay forever, which is the Desktop Environment that can be most easily tweaked to give a very close Unity Like Experience?   I am looking for features such as   One beautiful left Launcher(gives good amount of usable screen estate) Left Window Buttons(minimises waste mouse movement all over the screen when combined with Left Launcher)  Top panel for all system info and indicator stuff Minimalist and modern design   Hope I find something like this before Unity is completely gone.


We know that density of ice reduces by about 8% during freezing, this means it expands to have little higher volume. But if I fill water in a container (entire volume) which has very low coefficient of thermal expansion at 0 $^\circ$C, will the space constraints stop water from freezing?


Watching Netflix in Chrome on Ubuntu 13.10

So I know how to get Netflix Desktop and watch Netflix via Firefox.  However, I have a Google Chromecast and like to stream Netflix to my TV.  In order for me to do this, I have to be watching Netflix IN CHROME.  I have yet to find a way that actually works to get Netflix streaming in Chrome on Ubuntu 13.10.  Does anyone have any insights?


Javascript floating point changes accuracy depending on how you input the variables

EDIT: This is not a discussion about how great or broken the floating-point implementation in JS is. This is a very specific case, so please do not mark this as a duplicate of a discussion about floating-point. This is the script I use to calculate the decimal portion of an amount expressed in cents (Ex. 3.34 is 334 cents):   const amount = 334; const decimal = Math.trunc(100 * ((amount / 100) % 1).toFixed(2));  console.log(decimal); //34    So far so good. If you change the amount to 329 you get 28, which is wrong:   const amount = 329; const decimal = Math.trunc(100 * ((amount / 100) % 1).toFixed(2));  console.log(decimal); //28    This is due to the fact that (329/100) % 1 = 0.29000000000000004 instead of 0.30, because JS floating-point sucks? But what is really crazy to me is that while developing a loop to see the cases in which that script breaks using a FOR, it does not break on 329!:   for(let x = 325; x < 335; x++) {      const r = Math.trunc((100 * (( x / 100) % 1)).toFixed(2));   console.log(x, r);  }    What am I missing here? Why is working when inside the loop and not working when calling the function directly? And how can you calculate this in a robust and reliable way?


uncommenting text with sed is not working

I'm trying to uncomment a 4 line section in an (nginx config) file. Using  sed. I first tried with grep and the regexp seems to be correct:  $ grep ^#.*bny /etc/nginx/sites-enabled/default #        location /bny {   However when I try with sed to delete the # at the start of the line it fails:  $ sudo sed -i '/^#.*bny/,+3 s/^#+//' /etc/nginx/sites-enabled/default $ grep ^#.*bny /etc/nginx/sites-enabled/default #        location /bny {   I think I use the same tactics for commenting the section with sed and that works just fine:  sudo sed -i '/bny/,+3 s/^/#/' /etc/nginx/sites-enabled/default   Even double commenting is no problem. What am I doing wrong with the uncommenting?


How can I stop nautilus creating a desktop when it is run in KDE environment. Is there a way to make nautilus command work the same as nautilus --no-desktop?  I downloaded . It has no option for stopping nautlius.   did not help.


How does one inspect the directory structure information of a unix/linux file?

In Unix file systems directories are just special files with special directory structures that hold the child filename, filename size and inode reference number.    The actual file metadata beyond this is normally stored in the inode itself.  My question is.  How does one read the actual special directory structure in its raw form instead of its interpreted form.  Yes I know you can use ls to see the files there.  That's not what I am looking for.


Remove element from object in type script

I have object and there are some elements i don't want them (ex: 'id'), there is any way to exclude this elements from object in type script.


fleqn document class option, long text lines, and hyperref package

When the fleqn option is used, the vertical spacing before an equation placed right after a "long" text line (exactly \linewidth I would say) is improperly set up. See below:    From the mathmode user guide, this could probably be fixed through the \topsep length. Is it the right way to proceed? The problem is reproduced by the code below:  \documentclass[12pt,fleqn]{book} \usepackage{amsmath} \usepackage{hyperref} \begin{document} \chapter{plo} \section{plo} eoiu oieu oeiuoe ueoi ueoi ueoiu eoiu oeu oe iupaêio umùaeoiuaem oeiu eoiu eoiu oeee. eoiu oieu oeiuoe ueoi ueoi ueoiu eoiu oeu oe iupaêio umùaeoiuaemm \begin{equation} \cos\pi=-1 \end{equation} eoiu oieu oeiuoe ueoi ueoi ueoiu eoiu oeu oe iupaêio umùaeoiuaem oeiu eoiu eoiu oeee. eoiu oieu oeiuoe ueoi ueoi ueoiu eoiu oeu oe iupaêio umùae \begin{equation} \cos\pi=-1 \end{equation} \end{document}   There is something wrong involving hyperref, amsmath, and fleqn. Removing one of those removes the problem.


If/Else Statement in Python ArcGIS Field Calculator

I have a shapefile and want to calculate a field based on another field. The two fields are "DURATION" and "STATUS". I need "STATUS" to display three different outputs based on "DURATION". I want "STATUS" to display a "1" if "DURATION" is greater than 31. I want "STATUS" to display a "2" if "DURATION" is less than or equal to 31 but greater than 0. I need "STATUS" to display "3" if "DURATION" less than or equal to 0.


Do gravitational waves slow down as they pass through matter?

I've heard that gravitational waves travel at the speed of light, and have some parallels to electromagnetic waves.  EM waves slow down as they pass through matter (speed of light in glass is slower than in vacuum, for instance).  Do gravitational waves also slow down as they pass through matter?  If so, are there any effects like  when matter passes through a medium at a speed greater than the velocity of gravity in that medium?  Do large masses like stars or Jupiter act as ball lenses for gravitational waves?


Does every podracer pilot have Jedi-like reflexes?

In episode I, when Anakin mentions to Qui-Gon that he is a podracer pilot (and the only human one), Qui-Gon tells him that he must have Jedi reflexes.   Does he mean that because Anakin is human and should not be able to survive those races, let alone at that age? and does this imply that every podracer pilot have Jedi-like reflexes?


Diagonal straight lines in residuals vs fitted values plot for multiple regression

I am observing strange patterns in residuals for my data:   [EDIT] Here are the partial regression plots for the two variables:      [EDIT2] Added the PP Plot   The distribution  seems to be doing fine (see below) but I have no clue where this straight line might be coming from. Any ideas?   [UPDATE 31.07]  It turns out you were absolutely right, I had cases where the retweet count was indeed 0 and these ~ 15 cases resulted in those strange residual patterns.   The residuals look much better now:   I've also included the partial regressions with a loess line.


When an object displaces a fluid a force acts on the object which is equal to the mass of the fluid displaced by it (for the logic see  ). But the fact that a net (buoyant) force acts on it is due to the fact that there exists a pressure gradient (i.e., there is more pressure at the bottom than at the top).  Now consider the following:  Suppose that there is an object at the bottom of fluid and the object is placed such that there is no fluid beneath it (rather imagine an outward cylindrical projection from the bottom surface). Since the object has a volume therefore it displaces the fluid and a buoyant force must act on it in upward direction. But also consider the fact that there is no fluid beneath it to push upward (i.e., there is a net downward force).  So    Would a buoyant force still act if the object is placed at the bottom the fluid(without any gap for the fluid to enter)?


Do I need to take my weight off the bike to lock out the suspension?

I've recently bought myself a new mountain bike (my first since my schooldays...) and it has front suspension with a lock-out function.  Suspension is new to me and I'm not sure how to use the lock-out.  It seems I have to stop and take my weight off the bike to lock-out the suspension - is this correct?  Or should I be able to operate the lock-out whilst sat on the bike and I'm just not turning the lock-out hard enough?  As I'm not really sure, I've avoided turning it too hard in case I do some damage.


how can i change a value which is common in all selected objects in one go?

how can i change a value (in my case "space") which is common in all selected objects(in my case bones) in one go. I have copy rotation on my finger bones and because default space is world space i need to change it to local space. Right now I am doing it individually( each finger have 3 bones so it means 12 times i need to change it which is quite laboring task). so in short i want to know if it is possible to select all finger bones and change its space to local in one go rather than doing it individually.(copy attribute doesn't work because target objects are different)


I want my Alt Gr key to act the same way as the Alt key. I've found a potential solution which is to open up terminal and run the following commands:  xmodmap -e "clear mod5" xmodmap -e "keycode 108 = Alt_L"   This solution works but only temporarily. Whenever I restart the computer it reverts back or even if I'm using my laptop for a few hours the fix is undone.  I'm wondering if their is a permanent solution to this issue.   Just a little about me, I've only started using ubuntu in the last few months so I'm very inexperienced with it so I apologise in advance if I have follow up questions for any potential solutions.  Many thanks


Trying to identify a tv series from the early 80's about a man who came from the Sun?

I am hoping I can find an answer here  to a  question that has plagued me for many years.I vividly remember a tv show that was on in the early 80's when I was a small child.I can't remember that much except that it's plot was about a man who came to Earth from the Sun.Somehow he had actually lived on the Sun and was a native from there.About the only other thing I can remember is that he of course didn't want humans to find out his secret and I recall a scene where he is being chased through the woods in the afternoon by humans and possibly dogs and as he sees the Sun through the trees as he is running he keeps longing for home.I can't remember the years it was on but I would guess 1980-1983? I believe it was a short lived series. I know this show existed as what I described has been strongly in my memory all this time but I can't find out anything about it.Searches turn up nothing.I would so love to find out the name of this program so I could discover it again.Any help would be appreciated.Thanks much!


Does there exist a local diffeomorphism of $\mathbb{R}^2$ onto $\mathbb{S}^2$?

Suppose there exists such a map $f:\mathbb{R}^2\to\mathbb{S}^2$. Basic (topological) cover space theory tells us that this map cannot be a covering map. If we abandon the condition that $f$ must be a local diffeomorphism, then clearly such a map exists – we can simply use the map $$f(\theta,\phi) = (\cos\theta\sin\phi,\sin\theta\sin\phi,\cos\phi).$$  However, I suspect (but cannot prove) that if we impose the condition of being a local diffeomorphism, there does not exist any such map. Algebraic topology seems to be of no direct use here (since I don't see how to use smoothness), and I don't know of any theorems in differential geometry that would be very useful in proving the nonexistence of such a map.


Why do I keep getting this incorrect solution when trying to find all the real solutions for $\sqrt{2x-3}\ +x=3$.

The problem is to find all real solutions (if any exists) for $\sqrt{2x-3}\ +x=3$.  Now, my textbook says the answer is {2}, however, I keep getting {2, 6}. I've tried multiple approaches, but here is one of them:  I got rid of the root by squaring both sides,  $$\sqrt{2x-3}^2=(3-x)^2$$ $$0=12-8x+x^2$$ Using the AC method, I got  $$(-x^2+6x)(2x-12)=0$$ $$-x(x-6)2(x-6)=0$$ $$(-x+2)(x-6)=0$$ hence, $$x=2, \ x=6$$  Of course, I can always just check my solutions and I'd immediately recognize 6 does not work. But that's a bit too tedious for my taste. Can anyone explain where I went wrong with my approach?


notebook or desktop PC for datamining projects

I'm beginner in datamining. I will do datamining projects, tasks as data modeling(run different dm algorithms), preprocessing(ETL,complex SQL quieries). Is it sufficient for that tasks to use ordinary notebook(I consider quadcore i7 2ghz, 16GB ram, 256ssd -however dm desktop tools as spss,sass doesn't work in mac, but it's possible virtualize windows with eg. virtualbox) or is it highly recommended to use powerfull destkop PC. Which do you recommend ,which alternative is most used in practice ?    Should I chose a desktop or notebook?  I need to buy notebook, I consider between 2models macbook pro: cheaper(quadcore i7 2ghz, 16GB ram, 256GB ssd,iris pro) or expensive(quadcore i7 2.3ghz, 16GB ram, 512GB ssd, GeForce GT 750M) and price difference between this models is 400eur.  In the near future I will be work on datamining projects(as I mention on data modeling, preprocessing tasks) so I'm finding some optimal hardware soultion which allow me to work on this projects so I'm thinking some options:   is it sufficient to buy cheaper macbook pro ?  or when power of 1. isn't sufficient then(more expensive alternatives): buy expensive macbook pro ? or buy for ordinary day to day work cheaper macbook pro + for datamining purpose buy some powerful desktop PC (I think around 400-600eur it's possible to buy powerful desktop pc). Is it in practice on real projects mostly used separate powerful desktop PC for this datamining tasks or mostly use only ordinary powerful notebooks ?   Question around OS   For my day to day work I prefer unix. The question is when is it sufficient for datamining tasks to use emulation of windows(eg. virtualbox,parallels..), or is it very noticably better separate machine with windows(I think some tasks eg ETL complex SQL quieries run longer time).


Finding all large files in the root filesystem

I have a linux server, which currently has below space usage:  /dev/sda3              20G   15G  4.2G  78% / /dev/sda6              68G   42G   23G  65% /u01 /dev/sda2              30G  7.4G   21G  27% /opt /dev/sda1              99M   19M   76M  20% /boot tmpfs                  48G  8.2G   39G  18% /dev/shm   As you can see. / is at 78%. I want to check, which files or folders are consuming space.  I tried this:  find . -type d -size +100M   Which shows result like this:  ./u01/app/june01.dbf ./u01/app/temp01.dbf ./u01/app/smprd501.dbf ./home/abhishek/centos.iso ./home/abhishek/filegroup128.jar   Now this is my issue. I only want the name of those files located in folders that are consuming space at / and not at /u01 or /home. Since / is base of everything, it is showing me every file of my server.  Is is possible to get big files that is contributing to 78% of / ?


Formula for Nicolosi Globular Projection

What is the formula for the Nicolosi Globular projection? In other words, what is the function that maps the coordinate (φ, λ) on the sphere to the coordinate (x, y) on the plane?   You can assume that there are two such functions, one for each of the two hemispheres of the projection, such that the origin (x = 0, y = 0) in both cases is in the center of the given hemisphere.  Example of a Nicolosi Globular projection:


What does exactly "temporary failure in name resolution" mean in the DNS protocol? - RFC 1035

I've looked into the  but can't find that there. Situation: from time to time, a wget query says for a public server name, there is a "Temporary failure in name resolution." After that it works again. What does this mean, exactly? And where to look for the problem source?  A verbose DNS query with more information about the protocol error? Logs of the DNS server?


No surname on passport and applying for Japanese Visa

I am an Indian student and am going to Japan for my Summer Internship this May. There is no Surname field on my Indian passport and only my single initial name, XXXXX, in the Given names field in passport. How should I fill the name fields in the Visa form then? Should I write my first name (Given name on passport) in the Surname field and FNU in the Given and middle names field?    My passport Surname field :


How to set a default row for a query that returns no rows?

I need to know how to return a default row if no rows exist in a table. What would be the best way to do this? I'm only returning a single column from this particular table to get its value.   Edit: This would be SQL Server.


Is there a way to install fonts on wine?   I'm looking to install fonts so i can use them to render text differently on various apps. Specifically myriad.


Can I make a list of mail senders in Gmail?

Can I make a list of people who send me mail in gmail?  If so, How Can I do that?


How to delete rows in a mySQL table specified by data from the same table (in one expression)?

I want to delete rows from a table "Book", where two colums have appeared before.  I successfully selected the ids of the rows wich should be deleted like so:  SELECT all_dupes.book_id                 FROM   (SELECT *                         FROM   Book as BBook  NATURAL JOIN Book as BBBook                        WHERE  book_id NOT IN (SELECT book_id                                                FROM   Book as BBook NATURAL JOIN Book as BBBook                                               GROUP  BY buying_price,                                                          selling_price                                                HAVING Count(*) = 1                                                ORDER  BY book_id)                         ORDER  BY book_id) AS all_dupes                 WHERE  book_id NOT IN (SELECT book_id                                        FROM   Book as BBook NATURAL JOIN Book as BBBook                                       GROUP  BY buying_price,                                                  selling_price                                        HAVING Count(*) >= 2                                        ORDER  BY book_id);   …but when I try to delete the rows with  DELETE FROM Book WHERE  book_id IN (                <expression as above without tailing ;>                   ) ;   I get an error ERROR 1093 (HY000): Table 'Book' is specified twice, both as a target for 'DELETE' and as a separate source for data  I already tried to alias the table and to natural join the table to itself, like suggested in other questions regarding this issue.  Also I read quite some ammount of questions here, but they mostly are very specific and I don't get how to change my delete-query by the answers provided there.  What do I have to change in order to get this done? Splitting the expression is not an option (meaning there mustn't be two ;, but just one expression).  Database used: MariaDB


Fluxbox: No folder icons in Thunar and PCManFM

I have an Ubuntu 12.10 installation and wanted to try out Fluxbox as a lightweight window manager. When I open Thunar it displays no icons for folders. I've made sure I have a .gtkrc-2.0 in my home directory.  Do you have any ideas what to try out?


Can I use the Anova (type II) to test significance in my negative binomial regression?

I have fitted a binomial regression (glm.nb using the MASS package) to my data.   I have two questions and would be very thankfull if you could answer any of them:   1a) Can I use the Anova (type II, car package) to analyse which explanatory variables are significant? Or should I use the summary() function?  I know theta is assumed to be fixed in the Anova, which might be a problem. However, the summary uses a z-test which requires normal distribution if i am not mistaken. When looking at examples in books and websites - it seems like the summary is mostly used to test significance.  I get completely different outcomes for Anova test and summary and based on visualisation of the data I feel that Anova is more accurate.   1b) When using the Anova, both an F-test and a chisquare test give different (however, quite similar) results - is there any of these tests that is preferred for a negative binomial regression? Or is there any way to find out which test represents the most likely results? Based on visualisation, the F test seems to fit best.  2) When looking at the diagnostic plots, my qq-plot looks kinda off.  I am wondering if this is fine - since the negative binomial is different from the normal distribution? Or should the residuals still be normally distributed?


On , the time to go from any point A to any point B at the surface of the earth (assuming earth is a perfect sphere and absence of friction) by a straight line takes a constant ~42 minutes.    Intuitively, I would expect that a fastest path would be curved and pass closer to the center of the earth.  What is the fastest path between two points A and B with a gravity train?


Does Metal have to be Hemalurgically charged for Ruin to control someone?

We have several examples of Hemalurgic spikes being used to control or manipulate a being:  Kandra Inquisitors Koloss Vin Penrod Spook  However, Spook's letter in The Hero of Ages reads:  Vin, My mind is clouded. A part of me wonders what is real anymore. Yet, one thing seems to press on me again and again. I must tell you something. I don't know if it will matter, but I must say it nonetheless. The thing we fight is real. I have seen it. It tried to destroy me, and it tried to destroy the people of Urteau. It got control of me through a method I wasn't expecting. Metal. A little sliver of metal piercing my body. With that, it was able to twist my thoughts. It couldn't take complete control of me, like you control the koloss, but it did something similar, I think. Perhaps the piece of metal wasn't big enough. I don't know. Either way, it appeared to me, taking the form of Kelsier. It did the same thing to the king here in Urteau. It is clever. It is subtle. Be careful, Vin. Don't trust anyone pierced by metal! Even the smallest bit can taint a man. Spook The Hero of Ages - Chapter 69  So I'm wondering if this is indeed true. I can only think of one example that would support any metal allowing control or manipulation. The Lord Ruler said:  I fear that it has corrupted my thoughts. It cannot sense what I think, but it can speak inside of my head. Eight hundred years of this has made it difficult to trust my own mind. Sometimes, I hear the voices, and simply assume that I am mad. The Hero of Ages - Chapter 48  And in The Final Empire:  [Vin] flared the iron. Blue lines appeared pointing to the Lord Ruler’s rings and bracelets—all of them but the ones on his upper arms, piercing his skin. The Final Empire - Chapter 38  These bracers obviously were not Hemalurgically charged, because the Lord Ruler had no need for that being a full Mistborn and Feruchemist already. And yet it allowed Ruin to speak to his mind. So is it truly any metal in a person allows control? If enough coins were shot into someone could they be controlled? What about Miles Hundredlives1? Would Harmony be able to fully control him due to the number of piercings? Could the Lord Ruler have taken control of a Terris Steward2 like he did the Koloss? In short, does the Metal have to be Hemalurgically charged to control someone?  (all emphasis mine) 1 - Miles Hundredlives  “You need to get [Miles'] metalminds off of ’im,” Wayne said. “It’s the only way.” “He keeps thirty different ones,” Waxillium said, “all piercing his skin, The Alloy of Law - Chapter 13  2 - Terris Steward  “You’re a Terrisman,” Vin said. [Sazed's] earlobes had been stretched out, and the ears themselves contained studs that ran around their perimeter. He wore the lavish, colorful robes of a Terris steward The Final Empire - Chapter 8


Shall we make it easier to find the links to comments?

If you are the author of a post, or you are @Mentioned, you are notified when there is a comment, and are given a link to it. However, if you just want a link to the comment, there is no way of getting that link (usually something like http://some-site.stackexchange.com/questions/19901/title-of-the-question?noredirect=1#comment61900_19901). So if I want to link to a comment that I made on a post, I have no way of knowing what the link should be.  So should we make it easier to get a permalink to a comment?


If for every positive number $\varepsilon$ there exists a positive number $\delta$, why not the other way back?

Definition. Let $f(x)$ be a function of $x$. If for every positive number $\varepsilon$, however small it may be, there exists a number $\delta$ such that whenever 0 $<$ |x - a| $<$ $\delta$ we have |f(x) - l| $<$ $\varepsilon$, then we say $f(x)$ tends to the limit $l$ as 'x tends to a' and write $\lim_{x \to a}$ $f(x)$ = $l$ Proposed definition. Let $f(x)$ be a function of $x$. If for every positive number $\delta$, however small it may be, there exists a number $\varepsilon$ such that whenever 0 $<$ |x - a| $<$ $\delta$ we have |f(x) - l| $<$ $\varepsilon$, then we say $f(x)$ tends to the limit $l$ as 'x tends to a' and write $\lim_{x \to a}$ $f(x)$ = $l$ Question: How would the proposed definition affect the way we evaluate a limit?


Nonempty set mapped to $\emptyset$ and vice-versa

$(a)$ How many functions are there from a nonempty set $S$ into   $\emptyset$?      $(b)$ How many functions are there from $\emptyset$ into an arbitrary   set $S$?   This question seems very simplistic but I don't know the answer. I think for $(a)$ that there isn't a function that maps a set $S$ into a empty set? For $(b)$ I assume it to be all function that map the empty set to an arbitrary set since all sets contain the empty set?


$Y\sim\operatorname{Poisson}(\lambda_2 = 15)$. Let $Z = X + Y$ . Compute $\operatorname{Corr}(X, Z)$.

Let $X$ and $Y$ be independent random variables such that $X\sim \operatorname{Poisson}(\lambda_1 = 5)$ and $Y\sim \operatorname{Poisson}(\lambda_2 = 15)$. Let $Z = X + Y$ . Compute $\operatorname{Corr}(X, Z)$.  Answer:  $\operatorname{Var}(X) = 5$  $\operatorname{Var}(Y) = 15$  $\operatorname{Cov}(Z) = \operatorname{Cov}(X, X+Y) = \operatorname{Cov}(X, X) = \operatorname{Var}(X) = 5$  $\operatorname{Var}(Z) = \operatorname{Var}(X + Y) = V(X) + V(Y) = 5 + 15 = 20$  $$\operatorname{Corr}(X, Z) = \frac{\operatorname{Cov}(X, Z)}{\sqrt{\operatorname{Var}(X)} \sqrt{\operatorname{Var}(Z)}} = \frac{5}{\sqrt{5 \cdot 20}} = 0.5$$    I'm just wondering if this statement is true for all covariance values or just if independent.  $\operatorname{Cov}(Z) = \operatorname{Cov}(X, X+Y) = \operatorname{Cov}(X, X) = \operatorname{Var}(X) = 5$  Couldn't find it on wiki


Make Chrome always execute with flags, for eg., directly opening an HTML file

I want to run Chrome with a given set of flags, always  I created a shortcut and added the flag to it in the following way, so my target of the shortcut says:  C:\<application-path>\chrome.exe --user-data-dir=D:\Chrome   But when I double click an HTML file, or if any other application triggers Chrome, it looses the flag value. The result - A new chrome window opens with Default profile directory.  I want to make the flag permanent, so that its active irrespective of however Chrome executes.  I tried changing the following registry key:  HKEY_CLASSES_ROOT\ChromeHTML\shell\open\command   It was this earlier:  "C:\<application-path>\chrome.exe" -- "%1"    I changed to following attempts which did not work:  1. "C:\<application-path>\chrome.exe" -- "%1" --user-data-dir=D:\Chrome 2. "C:\<application-path>\chrome.exe" -- "%1" -- "user-data-dir=D:\Chrome" 3. "C:\<application-path>\chrome.exe" -- "%1 user-data-dir=D:\Chrome"   Conclusively, when I try to open a link from any application, it doesn't open in my current Chrome as a new tab, rather opens a new Chrome window with no plugins and extensions since its from other directory.  Why I have changed my default directory? - because the OS drive was getting low on memory due to heave Chrome caches and apps.


BibLateX/biber, maxbibnames with style=apa?

I'm trying to make a citation to an  and want to include all authors in the bibliography entry. I also want to use APA-style citations for the paper. These two settings seem to conflict. A MWE with the options required for APA-style citation commented out is included below. How can I make the citation appear in APA-style but still including all authors in the bibliography entry?  \begin{filecontents*}{\jobname.bib} @book{ipcc_tech_2013,     author = {T.F. Stocker and D. Qin and G.-K. Plattner and L.V. Alexander and S.K. Allen and N.L. Bindoff and F.-M. Bréon and J.A. Church and U. Cubasch and S. Emori and P. Forster and P. Friedlingstein and N. Gillett and J.M. Gregory and D.L. Hartmann and E. Jansen and B. Kirtman and R. Knutti and K. Krishna Kumar and P. Lemke and J. Marotzke and V. Masson-Delmotte and G.A. Meehl and I.I. Mokhov and S. Piao and V. Ramaswamy and D. Randall and M. Rhein and M. Rojas and C. Sabine and D. Shindell and L.D. Talley and D.G. Vaughan and S.-P. Xie},     year = {2013},     title = {{Technical Summary. I Climate Change 2013: The Physical Science Basis. Contribution of Working Group I to the Fifth Assessment Report of the Intergovernmental Panel on Climate Change}},     editor = {T.F. Stocker and D. Qin and G.-K. Plattner and M. Tignor and S.K. Allen and J. Boschung and A. Nauels and Y. Xia and V. Bex and P.M. Midgley},     publisher = {Cambridge University Press},     address = {Cambridge, United Kingdom and New York, NY, USA}, }} \end{filecontents*}  \documentclass[a4paper,12pt]{article}  \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[swedish]{babel} \usepackage{csquotes}  \usepackage[     bibstyle=authortitle,     citestyle=authoryear,     maxcitenames=5,     mincitenames=3,     maxbibnames=1000,     backend=biber,     date=short,     sorting=nyt,     %style=apa ]{biblatex} \addbibresource{\jobname.bib} %\DeclareLanguageMapping{swedish}{swedish-apa}  \begin{document}  A citation: \cite{ipcc_tech_2013}  \printbibliography  \end{document}


I am trying to design a steel structure frame, like this:    Obviously, I can model individual beams of different length and arange them, however, it feels like there should be an easier way.   My second attempt was to use a curve and extrude along path (as in ), which works well, except that a curve can not have a three-junction, and corners look weird:   Is there some way to get this right? Maybe a special form of the wireframe modifier, which allows me to give a bevel object, just as I do with the curve?


I have a VPS running on a single IP, can I redirect domains to ports or do I need separate IPs?

The situation may be resolved by my intention to purchase an IPv6 prefix for the VPS, but in the mean time I'd quite like to know if this is possible.  Basically what I want to achieve is a simple interface to Node.JS apps running on the VPS via domain names, so that for instance I could have "steak.chaos-kitten.com" pointing to one node.js app and "lister.chaos-kitten.com" pointing to another, and perhaps "chaos-kitten.com" itself pointing to a third.  I know you can't use DNS to point to a specific port, but is there some software solution I can employ that will redirect incoming GET requests to the appropriate node.js app based on the domain name?


Is there a -onym term for a genericised trademarks?

In UK English we use  in everyday speech, e.g.:  Could you hoover the carpet, please? I've googled him Was that your car they just announced on the tannoy?  I seem to recall there being a fancy, academic word for this "type" of word e.g. a something-onym. Is there?


Add \vspace{...} before and after every figure environment w/o

I found this answer to another question .  I don't want to create a new environment for my figures. Instead I would like to edit the existing figure environment with the same \vspace{...} settings.  Is this possible?  \documentclass{article} \usepackage[demo]{graphicx} \usepackage{lipsum}  \newenvironment{MyFigure}[1][]{\begin{figure}[#1]\vspace{1.0cm}}{\vspace{1.0cm}\end{figure}} \begin{document} \lipsum[1] \begin{MyFigure}[h!]     \centering     \includegraphics[width=5cm,height=2cm]{foo}     \caption{Figure: foo} \end{MyFigure} \lipsum[2] \end{document}


Latin characters not working in html5 using UTF-8

Hey so i'm getting text with latin characters like "ó" from a mysql database. This is the connection along with the query i'm using to get the data, placing it in an array:  <?php     header('Content-Type: text/html; charset=UTF-8');     $con=new mysqli ("localhost","root","","chroniclemark");      $sqlget = "SELECT descricao FROM items;";     $sqldata = mysqli_query($con,$sqlget) or die ('error getting database');     while ($row = mysqli_fetch_array($sqldata, MYSQLI_ASSOC)) {         $lol5[] = $row['descricao'] ;      }?>   I'm then trying to display the the text outside of the <?php ?> statement like so:
<?php echo $lol5[0]; ?>
   All of the text is fine except for the "ç", "ó", "ã" and so on. I also have a meta tag <meta charset="UTF-8"> in my header but it doen't help. In the database, the data is set to "utf8mb4_unicode_ci". What can i do to fix this? Any idea?


How can I reduce the noise of prediction graph?

I am trying to use LSTM to predict a time series data as you can see in the following image, the predicted graphs is very noisy:    The original data is looking like this:   That I normalized it like this and fed it to the LSTM network:    Is there a way to get better result with less noise?  EDIT: I use keras implementation of LSTM and sklearn.preprocessing.normalize library for normalization.


Can't handle an Application event in Lightning

I am trying to handle Application event in a listening component but it doesn't work for some reason. Please, help. I can't write in console log "here" in the end   Application  <aura:application extends="force:slds" access="global">     <c:SearchCmp/>     <c:DisplaySearchResultCmp/>    </aura:application>   Search Component  <aura:component implements="force:appHostable,flexipage:availableForAllPageTypes" access="global" >     <aura:registerEvent name="searchEvt" type="c:SearchEvent" />     <aura:attribute name="inputSearch" type="String"/>
         <lightning:input label="Search for books and writers:" value="{!v.inputSearch}"/>
     <lightning:button         label="Search"         onclick="{!c.getInput}" /> </aura:component>      Search Component Controller  getInput : function(component, event, helper) {     helper.fireAppAction(component, event); }   Search Component Helper  fireAppAction : function(component, event) {         var appEvent = $A.get("e.c:SearchEvent");         appEvent.setParams({             "searchQuery": component.get("v.inputSearch")             });         appEvent.fire();     }   Result Component  <aura:component implements="force:appHostable,flexipage:availableForAllPageTypes"  access="global" controller="SearchCmpController">      <aura:handler name="showResultList" event="c:SearchEvent" action="{!c.searchData}"/>     <aura:attribute name="resultWrappers" type="SearchCmpController.BookWriterWrapper[]"/>     <aura:attribute name="isEmptyResult" type="Boolean" default="true"/>

Results

No Results

  </aura:component>   Result Component Controller  searchData : function(component, event, helper) {         console.log("here");         component.set("v.resultWrappers", true);     }   Event "SearchEvent"  <aura:event type="APPLICATION">     <aura:attribute name="searchQuery" type="String"/> </aura:event>


Can I safely use a 9w LED bulb in place of a 40w incandescent?

I bought a reading lamp that on the box says: Max 1x40W The shop also sold me an LED light bulb that says: 9W=75W So my question is, can I use light bulb or not? I am confused between the 75W and the max of 40W mentioned for the lamp


Command to perform a recursive chmod to make all .sh files within a directory executable?

Trying to perform a recursive chmod on all the .sh files in a directory to make them executable


I'm studying graphs in algorithm and complexity, (but I'm not very good at math) as in title:     Why a complete graph has $\frac{n(n-1)}{2}$ edges?   And how this is related with combinatorics?


What is the origin of BrEng ‘bird’ meaning “young woman”?

Bird:         (Brit.) a girl or young woman, esp one's girlfriend ()      According to  bird:         "maiden, young girl," c.1300, confused with   (q.v.), but felt by later writers as a figurative use of  (n.1). Modern slang meaning "young woman" is from 1915, and probably arose independently of the older word.      also :         , bird was used for ‘girl’, but this was probably owing to confusion with another similar middle English word, burde, which also meant ‘young woman’. The usage crops up from time to time in later centuries, clearly as an independent metaphorical application, but there does not really seem to be an unbroken chain of occurrences leading up to the sudden explosion in the use of bird for ‘young woman’ in the 20th century.   (www.dictionarycentral.com)      Modern usage of bird meaning girl appears to be unrelated to the old Middle Ages meaning. Etymonline dates it back precisely to 1915.    What is the modern origin of bird meaning young woman?  In what context did they start to use it at the beginning of the 20th century?


How to vertically center an img as svg format in a div?

I am wondering how do I vertically center my logo, which happens to be in a svg format. I am not sure if it makes any difference, than to an .jpg file or so, but I think yes.   .main_header {   background-color: red;   height: 3.5em;   padding-top: 0.5em;   padding-bottom: 0.5em; }  .main_navigation a {   color: white; }  .header_logo {   float: left;   position: relative; }  .header_logo img {   vertical-align: middle; }  .main_navigation {   float: left; }

       Startseite       Über uns       Torwarttraining       Trainer       Kontakt


Add links to official status pages in the read-only mode status message

When the site is in read-only mode, I get a message like this:     This site is currently in read-only mode.   Would it be possible to update that message to provide links to these resources on SE's status:   : Official SE tweets on SE's status. : Official blog posts on SE's status.


How to solve circuit in static electricty?

I just found this question, but I don't know how to solve it. The question has a answer, but still it don't give me the formula.  the answer for numeber 1 is 0,0 a for number 2 is 40 for number 3 is 30 and for number 4 1,3


UK visit visa refused because of 'questionable deposits'

I applied for a 6 months UK visit visa which has been refused for the reasons attached.    Background:    I'm a freelance assistant director and I mentioned 6 Lakhs as my annual income. Franky, 6 lakhs is not a fixed amount as I am a freelancer. And the bank statement that I provided is for 9 months so that it has enough  payment cheques deposits mentioned - it totals around 4.7 lakhs for 9 months excluding TDS deducted. In the application, my dates mentioned were 15 dec to 15 feb I didn't provide a flight ticket The 'questionable deposits' they are talking about are my own deposits from my other account, fixed deposit liquidations, and some amount I borrowed from a friend.   Questions:   Can I appeal against this? It's not mentioned in the refusal letter that I can. If I need to reapply, what evidence do I need to provide to explain these deposits?


So you want to try an app that is in a PPA, so you add the PPA like so:  sudo add-apt-repository [some PPA]   Then you decided you don't like it or it's buggy or whatnot.  What is the command to remove one?


Why is "improve this question / answer" shown to anonymous users instead of "edit"?

If I browse a site as an anonymous user, instead of "edit" I see: "improve this question / answer".        I don't get it, are anonymous users considered to be kinda dumb and don't understand "edit"?  Why to reword this action?


C# - code to order by a property using the property name as a string

What's the simplest way to code against a property in C# when I have the property name as a string?  For example, I want to allow the user to order some search results by a property of their choice (using LINQ).  They will choose the "order by" property in the UI - as a string value of course.  Is there a way to use that string directly as a property of the linq query, without having to use conditional logic (if/else, switch) to map the strings to properties.  Reflection? Logically, this is what I'd like to do: query = query.OrderBy(x => x."ProductId");  Update: I did not originally specify that I'm using Linq to Entities - it appears that reflection (at least the GetProperty, GetValue approach) does not translate to L2E.


Graphics bug after system updates Ubuntu 16.04 LTS

Yesterday I made some system updates, and after that my ubuntu shows mixed colors around every new opened window. I tried to remove the latest update but it doesn't solve the problem. When I reboot the system, mixed colors disappears until the first suspend or hibernate. Here is an example of new opened window:     Output of dpkg -l | grep nvidia:   ii  nvidia-367                                  375.39-0ubuntu0.16.04.1                        amd64        Transitional package for nvidia-375 ii  nvidia-375                                  375.39-0ubuntu0.16.04.1                        amd64        NVIDIA binary driver - version 375.39 ii  nvidia-opencl-icd-367                       375.39-0ubuntu0.16.04.1                        amd64        Transitional package for nvidia-opencl-icd-375 ii  nvidia-opencl-icd-375                       375.39-0ubuntu0.16.04.1                        amd64        NVIDIA OpenCL ICD ii  nvidia-prime                                0.8.2                                          amd64        Tools to enable NVIDIA's Prime ii  nvidia-settings                             361.42-0ubuntu1                         amd64        Tool for configuring the NVIDIA graphics driver  video card:  00:02.0 VGA compatible controller: Intel Corporation Broadwell-U Integrated Graphics (rev 09)   nvidia GeForce 930M


Can't install gcc or g++ on Ubuntu 18.04.1

I have looked at several threads and sites for a solution to this and have not found anything that works.  First I run:  sudo apt update   Which gives:  Hit:1 http://us.archive.ubuntu.com/ubuntu bionic InRelease Get:2 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]                           Get:4 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB] Get:3 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB] Reading package lists... Done                                                                    E: Release file for http://us.archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease is not valid yet (invalid for another 18d 11h 52min 21s). Updates for this repository will not be applied. E: Release file for http://us.archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease is not valid yet (invalid for another 18d 11h 53min 0s). Updates for this repository will not be applied. E: Release file for http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease is not valid yet (invalid for another 18d 11h 52min 2s). Updates for this repository will not be applied.   I don't have enough experience to tell if these are issues that should be fixed or can be fixed.  Next I try to run:  sudo apt-get install g++   Which gives:  Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  g++ : Depends: gcc (>= 4:7.3.0-3ubuntu2) but it is not going to be installed        Depends: g++-7 (>= 7.3.0-12~) but it is not going to be installed        Depends: gcc-7 (>= 7.3.0-12~) but it is not going to be installed E: Unable to correct problems, you have held broken packages.   I did try following directions in other threads that I'm quite sure broke this issue a bit more than it had been before, but I don't know where to start.  EDIT: In accordance with steeldriver's comment on my VM's date and time settings, it was wrong and I set date & time to automatic and ran timedatectl status which gave:                        Local time: Sat 2019-03-23 13:07:38 EDT                   Universal time: Sat 2019-03-23 17:07:38 UTC                         RTC time: Sat 2019-03-23 17:07:39                        Time zone: America/New_York (EDT, -0400)        System clock synchronized: yes systemd-timesyncd.service active: yes                  RTC in local TZ: no   So:  sudo apt update   Now gives:  Reading package lists... Done Building dependency tree        Reading state information... Done All packages are up to date.   But sudo apt-get install g++ gives an extremely long list of items that it says are "already up to date" but g++ is still not recognized as installed when using it.


what is the difference between vmlinuz vs zImage?

What I know (please correct if my understanding is wrong):  vmlinuz: is a compressed, self-extracting, bootable Linux image. Always ELF? Generated how?  zImage (or bzImage): are compressed, self-extracting, bootable Linux image. Always binary. Generated by “make zImage” .  Some sources say that it is the actually the same image eg:  and .  but it doesn't look so. I have build embedded Openwrt project and got this info when doing "file vmlinuz":  vmlinuz: ELF 32-bit MSB  executable, MIPS, MIPS32 rel2 version 1 (SYSV), statically linked, stripped   as can be seen it is in ELF format and NOT a binary as zImage.  to add to confusion, when I do readelf on my ubuntu vmlinuz, I get that it is not an ELF file.


If $f^N$ is contraction function, show that $f$ has precisely one fixed point.

If $f$ is a   mapping of a complete metric space $(X, d)$ into itself and $f^N$(composite $f$ for $N$ times) is a contraction   mapping for some positive integer $N$, then $f$ has precisely one fixed point. (Banach fixed point theorem is applicable)   I tried to show that $f$ is also a contraction function. I considered the sequence $x,f(x),f^2 (x),... $, but then fail pathetically in showing that it's cauchy. Please tell me if my direction is correct, any new ideas are appreciated. Thanks.


Is there a good substitute for one of the "in terms of"s in the following sentence?     Income taxes have costs in terms of the welfare loss of people who pay taxes and also benefits in terms of tax revenue.   Can I use "as" instead of the second "in terms of"?     Income taxes have costs in terms of the welfare loss of people who pay taxes and also benefits as tax revenue.


I am using HP 15 BS576tx laptop, but while I am installing Ubuntu 16.04 the Wi-Fi is not working.


How do I get my 5 month old to take longer naps?

My daughter is 5 months old and is an amazing night sleeper who is able to settle herself to sleep during the night she goes to bed at 8 and will not wake until 430-5 o clock for a feed then wakes up at about 730. What I would like advice on is getting her to sleep longer during the day. She will show signs of being tired yawning rubbing eyes  multiple times during the day but when I put her down she will either take forever to settle or will sleep for no longer than 45 mins at a time. I would like to know how to get her to sleep for longer periods of time . I’m afraid this might be because she is overtired because she couldn’t get into a deeper sleep. Help please any tips on how to improve her napping habits would be greatly appreciated!


when i am reading :  # Never do this -- insecure!   symbol = 'RHAT'   c.execute("SELECT * FROM stocks WHERE symbol = '%s'" % symbol)     why it is insecure? No reason in detail in the web to explain.


I cannot log into minecraft technic launcher

I am trying to log into technic launcher but for some reason it wont let me.  I have reset my password and username but it still says that the info I'm using is an invalid credential.   I have tried old usernames and passwords.  I know I'm using the right info because I have reset my name and password to see if that fixes the problem.


Force window to blink when a particular event occurs in C# / WPF

I am using C# / WPF to make an application. In that application, I want to blink the window if a particular event occurs so that user of that application knows that something happened. How can I get this in my C# WPF application.  Like in Yahoo Messenger, if you get a message then the message window blinks to get your focus, I want to use that effect in my application.


I have two software centers in Ubuntu, but I am sure there should be one:    And Moreover both have the source "ubuntu focal-main". Can anyone help?


When I type in the following code, PyCharm says "Expression can be further simplified". What is the more simplified version to this statement?    if listA == []:   return "yes!"