Classifying the factor group $(\mathbb{Z} \times \mathbb{Z})/\langle (2, 2) \rangle$

We wish to classify the factor group $(\mathbb{Z} \times \mathbb{Z})/\langle (2, 2) \rangle$, that is, find a group to which it is isomorphic. (According to the fundamental theorem of finitely generated abelian groups. Initially, I thought the group had but two cosets, forcing an isomorphism to $\mathbb{Z}_2$. Obviously, this is wrong, due to the existence of cosets such as $(1, 0) + \langle (2, 2) \rangle$ However, I am unable to see how I am to find an isomorphism here.


Please give us the ability to sort "featured" tab by bounty amount

The "featured" tab currently lists questions with open bounties, sorted by the time left until the bounty expires.  Could we also add the ability to sort by largest bounty?  Sometimes I'm looking for best bang for my buck, and there are so many open bounties on SO that it fills more than one page.


Why can I not store user input into a variable and then use this variable?

I'm trying to have user input stored into a string variable and then that string is tested to determine which output to give. I thought this would not be a problem and I cannot understand what is wrong here. If I type in F22 or any of the other options as my user input, it gives me the else statement so clearly it's not storing the value the same way I think that it is. My code is below.  public static void main(String[] args){     aircraft(); } public static void aircraft(){     //Give info about aircraft of their choice.     airplane Boeing787 = new airplane();                       //From here to line 17 I'm just defining variables     airplane F22 = new airplane();     airplane Gulfstream_G650 = new airplane();     Boeing787.passengers = 250;     Boeing787.price = 120000000;     F22.passengers = 2;     F22.price = 138000000;     Gulfstream_G650.passengers = 19;     Gulfstream_G650.price = 65000000;                           //TO HERE! For variables!      System.out.println("What airplane do you want to know about? \nYou can select either: Boeing787, F22, or Gulstream_G650");     Scanner user_input = new Scanner(System.in);     String plane = user_input.next();     if (plane == "Boeing787"){         System.out.println("This aircraft costs " + Boeing787.price + " and holds up to " + Boeing787.passengers + " people.");     }     else if (plane == "F22"){         System.out.println("This aircraft costs " + F22.price + " and holds up to " + F22.passengers + " people.");     }     else if (plane == "Gulfstream_G650"){         System.out.println("This aircraft costs " + Gulfstream_G650.price + " and holds up to " + Gulfstream_G650.passengers + " people.");     }     else{         System.out.println("You must have spelled it wrong, please try again. Remember to use appropriate Caps.");         aircraft();     } }   and my airplane class is simply:  public class airplane{ int price; int passengers;}   I prefer an explanation over a fix. I'm a beginner programmer so I suspect it's not a crazy mistake. My guess is something is wrong either where I take in the input or on the following line where it says "String plane = user_input.next();"


s = '' # case 1 print(s[0]) # case 2 print(s[:1]) print(s[0:1])  In the first case I get an IndexError: string index out of range, yet the second case is perfectly correct. I'm confused; shouldn't they be the same? In both cases we're printing the character at position 0 in the string. I can get the idea of the the Error, after-all, there are no characters in the string, but I'd expect both cases to give the same Error. Thanks!


Mounting and modifying a loopback file without sudo/root, is it possible?

I'm trying to adapt a tutorial into an easy to use script  .  I'm trying to reduce the need for sudo/root as much as possible (preferably, only for the final dd step).   My questions are:   Can I mount the ext4 file system without sudo/root privileges in any way? Can I mount it in a way so that users/groups on the FS are ignored in some way (so I can run make install without sudo)?   The Filesystem is currently mounted loopback from an offset of a file (i.e. -o loop,offset=62914560).  This file is the image that will be copied onto the SD card used to boot the Raspberry Pi.


SF novel that takes place on a planet called Ragnarok?

In my youth I read and enjoyed a SF novel that took place largely on a planet called Ragnarok.  I'd like to rediscover it, if I could.  Some details I remember:   Humans are fighting a war with a humanoid non-human species. The planet is earth-like, and has seasons. The human colonists of the planet arrived there more-or-less accidentally, their ship having been attacked by the antagonists, who were either unaware of their survival or did not care at the time.   The story takes place on Ragnarok over several generations of descendants of the original colonists; the bulk of the story is how they survived and eventually prospered  The humans do not have any advanced technology due to the destruction or disablement of their ship; they gradually recreate some basic technology.  An important weapon is the semi-automatic crossbow. The humans have a hard time surviving -- they can live off the land, but initially not very well Eventually the non-human antagonists return to the planet and the colonists' descendants fight them -- and win!  And thus acquire the means to leave the planet using the starship of their enemies   ETA: It's a duplicate in the sense that both questions are answered with the same story -- but it's not a duplicate exactly. I'm happy, nevertheless, although marking this a dupe after well over a year seems a tad delayed.  No problem.


Given this graph from Wikipedia concerning the cosmogenic origin of each element, how are Lithium, Beryllium, and Boron formed from cosmic rays?

So I found  from another answer, and it's math is way above me but the gist is that some elements heavier than Iron can form in a star, but this path is not the primary source of these elements (Super novae are). I then found this periodic table in the article. It shows the possible sources of elements, but labels 3 elements, Lithium, Beryllium, and Boron, as originating from Cosmic rays. From everything I've read, elements could only fuse during the big bang, or in stars. Cosmic rays are powerful, but no where near the power required for large scale fusion. If this is the case, how could these three elements be formed exclusively from cosmic rays?


What's the difference between $(stuff) and `stuff`?

There are two syntaxes for command substitution: with dollar-parentheses and with backticks. Running top -p $(pidof init) and top -p `pidof init` gives the same output. Are these two ways of doing the same thing, or are there differences?


What determines how much power the motor 'draws'?

I'm new to electrical engineering, and probably asking the wrong question. Not sure how else to phrase it.  For the question, I'm going to use an example layout of simply a 9v battery attached to a toy DC motor.  From my understanding of my , the voltage coming from the battery through the motor will be around 9v. The current will be from 0amps to however much the battery can supply without frying. What decides how much current goes through the motor?


$ sudo apt-get install cedarview-drm libva-cedarview-vaapi-driver cedarview-graphics-drivers  Reading package lists... Done Building dependency tree        Reading state information... Done  E: Unable to locate package cedarview-drm E: Unable to locate package libva-cedarview-vaapi-driver E: Unable to locate package cedarview-graphics-drivers   .  $ uname -m i686    Why can't I find these "cedarview-drm packages"?


Unix input/output buffering: Perl vs Python

I've been reading SO discussion on how output going to a terminal is line buffered, and output to pipes or files etc is usually "block buffered". I am trying the following two pipelines on OSX, which aim to prepend a timestamp to the incoming lines:  while [ 1 ] ; do echo $RANDOM && sleep .5 ; done | ~/bin/prepend_ts_python    and  while [ 1 ] ; do echo $RANDOM && sleep .5 ; done | ~/bin/prepend_ts_perl   The Perl program is (and I don't know much about Perl):  #!/usr/bin/perl  while ( <> ) {     print scalar(localtime()), " ";     print; }   The Python program (clearly not prepending a timestamp yet) is:  #!/usr/bin/python  import sys  for line in sys.stdin:     print("foo")   The pipeline using the Perl version prints output immediately, as desired, whereas the Python one outputs intermittently.  I was under the impression that any buffering that was going on was being determined by the while/echo loop, and for this reason people were recommending using the unbuffer command on the beginning of the pipeline.  Does Perl have some way of flushing its STDIN? I didn't think it could reach "backwards" in the pipeline. Why are they different?


I'm attempting to loop through an array of strings, and do something a little different with one of the values.  The string comparison fails on every element.  arr[0]='red' arr[1]='blue' arr[2]='yellow' arr[3]='green'  ## now loop through the above array for i in "${arr[@]}" do         if [ "$i"="green" ];         then                 echo "i('$i') is equal to green"         else                 echo "i('$i') is not equal to green"         fi  done   I've also tried (with the same result):   if [ "$i"='green' ];   and   if [ $i='green' ];   and   if [ $i="green" ];   Output of each of the above:   i('red') is equal to green i('blue') is equal to green i('yellow') is equal to green i('green') is equal to green   What am I doing wrong with the comparison?


How do I disable Dunst and go back to notify-osd?

I installed i3, which recommends dunst, but I'm not using i3 at the moment, and the dunst notifications don't really fit with Unity. I'd rather not uninstall dunst totally, since I might want to start using it at some point in the future; is there a way to switch back to notify-osd without uninstalling dunst?


How would it be possible to integrate Xcode with GitHub?


I am using the email validation as mentioned below :  private static final String EMAIL_PATTERN = "^[_A-Za-z0-9-\\+]+(\\.[_A-Za-z0-9-]+)*@[A-Za-  z0-9-]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$";   in this pattern i need (hypen, apostrophe, underscore, period) to be included.  For example - pqr.m.o'abc@xyz.com  Please suggest


FFmpeg putting one video above its filtered version

I'm trying to make a combination of two videos. The first video is my input unaltered while the second one (placed below the first) is a filtered version of the first video. I'm able to filter the first video as I want but I've got difficulties in making an output of the two versions combined as I'd like to.  Even following this other question does not help me:    Here is the command that I'm using:  ffmpeg -i ./media/video/video_with_alpha.mov \ -c:v libx264 -b:v 400k -tune zerolatency -profile:v baseline -level 3.0 -movflags +faststart -c:a libfdk_aac -b:a 64k \ -filter_complex \     "[0:v] fifo, lutrgb=r=maxval:g=maxval:b=maxval [T1]; \      [0:v] format=rgba, fifo, lutrgb=r=minval:g=minval:b=minval [T2]; \      [T2][T1] overlay [out_alpha]; \      [0:v][out_alpha] overlay=0:360[out]" \ -map '[out]' -map 0:a ./media/output/video_rgb_above_alfa.mp4   The result I get is the two videos overlapped one to the other like this:   While what I want is like this:   Does any of you know what I'm doing wrong?  Thank you in advance!


I need to prove that $S_n := \frac{1}{n}(X_1X_2 + X_2X_3 +...+X_nX_{n+1})$, where $X_k$ are rvs independtly Poisson distributed with parameter $\lambda = 2$ for any natural $k$, converges almost surely.   I proved that this sequence converges in probability to 4 because of The Weak Law of Large Numbers. But I'm struggling with a.s. convergence. I thought about Kolmogorov 0-1 theorem but it leads me nowhere.


How to turn off texture painting mode where your brush cursor lags behind your mouse position?

I'm playing around with learning how to paint textures in blender, and must have somehow enabled a strange drawing mode that causes the drawing head of my brush to lag behind the place where I'm actually drawing the stroke.  I was able to paint normally earlier.  Now when I draw a stroke, there's this line from the center of my cursor to a point where my brush was earlier, and the stroke is drawn there.  It makes painting much harder and I can't figure out how to turn it off.


Visual Studio: Is there a "move class to different namespace" refactoring?

I'm doing some architectural cleanup that involves moving a bunch of classes into different projects and/or namespaces. Currently I'm moving the files by hand, building, and then manually adding using Foo statements as needed to resolve compilation errors. Anyone know of a smarter way of doing this? (We're a CodeRush and Refactor! shop, but I'd be interested to hear if Resharper has support for this)


Query sharepoint list data in sql server

I am trying to query sharepoint lists data with sql server,for performance reasons. Is there any tool to help me do this? I heard about spud and SPViews but i am searching for something open source or maybe a work around.


css bottom is not positioning at the bottom of the page

that creates a centered list of buttons. Unfortunately at the top of the page.

         <button class="button">Result</button>         <button class="button">Result</button>         <button class="button">Result</button>         <button class="button">Result</button>

     any reason why bottom: 5em does not work ?  as a beginner in css I would appreciate any hint on why I need also to set .mybtn make the css work !


I'm thinking about using feeds from Stack Exchange, and I can't seem to find what type of feeds I can acquire.  I know that if iIgo to  I'll see questions with the ability to filter it, but what else exist? Can I get tags, user questions, notifications, etc.?  I failed to find any page explaining this, but I've never used feeds before so it might be something well known which I just don't know.  I thought this could be good resource on available feeds in general.


Creating an Abstract Background in Photoshop

I've been trying to create an abstract pink background similar to this one:    I can't seem to find any tutorial on how to do it. How are those wavy looking lines created?  Thanks.


Is there a command to list the users which user or root has created?

Is there a command where which I can input into terminal to list the users which have been created by a user or root? I don't want to use the GUI interface I'm wondering if there is a command.


What's the use of mysqli_real_escape_string in case of ' / ' and ' \ ' and ' ' '?

Whats the use of mysqli_real_escape_string if the user inputs   /  \  '   in the input field ?  Are they really harmful ?  And if they are , what's the harm they do ?


I understand the difference between these constructions: "has gone to", "has been to", "has been in":   "has gone to" — there or on his way to; "has been to" — someone has been there but he is on his way back; "has been in" — someone is still there;   But now I am puzzled by next statements:   Have you ever been to / in Greece? — Yes, it's a very beautiful country; When did you last go to Canada? — I've never been to Canada.   If I use "has you ever gone to Greece" construction in the first case or "I have never gone to Canada" in the second statement will it be uncorrect? Or just will sound odd? May I say "I have never been in Canada" in the second sentence. Or in these case all of the variants are possible, the problem is in how people usually say it (in what how it perfectly sounds)?


An email says that my AdSense application has been successfully reviewed but the site says the application is stlill being reviewed

I got an email from adsense after submitting my application     Your application has been successfully reviewed. Now you need to   create your first ad unit and place the ad code on www.example.com to   fully activate your account. Note that before your account is fully   activated, only blank ads will appear on your pages. Once your account   is fully activated, you’ll receive a confirmation email and begin to   see live ads. Please don't click on your live ads, even to test them –   doing so isn't permitted by the AdSense programme policies. Sign in to   Google Adense to create your first ad unit and get fully approved.   Then I sign in to Google AdSense account but it is still saying      we are reviewing your site. Reviewing your site will take up to 3   days. We'll email you when we've finished.   and I am not able to click on any option in left side.   So how can I create ads?  Can someone help what to do next


How to validate a form not to accept 'http' or 'https' in message body?

I tried to use regexvalidators from django to validate form so that it does not contain http or https (many spammers using link) but it doesn't work.  from django import forms from django.core.validators import RegexValidator from antispam.honeypot.forms import HoneypotField  class ContactForm(forms.Form):     name = forms.CharField(max_length=50)     email = forms.EmailField()     phone = forms.CharField(max_length=11)     message = forms.CharField(widget=forms.Textarea, validators=[RegexValidator(regex=r'http(s)?|HTTP(s)?', message="I don't accept link", code="invalid")])     spam_honeypot_field = HoneypotField()   How do I solve this problem?


I have a problem and it is that I didn't get a bin folder for minecraft 1.5.2! Now I can't play with any mods as I cannot install forge! I have read that from Minecraft 1.6 onwards the bin folder is no longer used but in 1.5.2 and below, it is needed for modding. So what happend to my bin for 1.5.2? I'm using the latest minecraft launcher downloaded from minecraft.net. Can someone help me?


I had told dwarves to cut down trees in an area a good distance away from my base, across a river. After doing so they left the wood lying about where the trees had been, despite the fact that my wood stockpile was empty. I even tried creating another stockpile nearby to see if they brought the wood to that.  Things I've checked   I do have dwarves with the wood hauling labour enabled. The area is accessible I have not told dwarves to stay within any burrows, or created any for that matter.


python - iterate list and get list index for use in array

Sorry, I know this is probably simple and covered in another post but I couldn't find it so:  I want to iterate through two lists and then store a result in an array based on the position of the inputs. So, for example:  z = np.array(len(xlist), len(ylist))  for x in xlist:   for y in ylist:     z[index of x, index of y] = f(x,y)   Thanks!


Let $X$ be some nonempty set. In my analysis course, a family was described as a function $f : I \rightarrow X$ where $I$ is supposed to be an "index set" and we would write the family as $(x_i)_{i\in I}$ where $x_i \in X$. Can I describe every set as a family? What are the restrictions on the "index set", can every set be an "index set"?   I'm sorry if my questions don't make much sense to set theory scholars, I have only studied naive set theory so far (Still, I'd like a highly formalized answer if possible).


PHP - Remove Apostrophe from POST varible

I have created a form in PHP and MySQL. After submitting the data, it is saved into the MySQL table. But I have got a problem: If the form contains an apostrophe then there will be an error while inserting the data, so how can i remove the apostrophe from the post variable?  $description=$_POST['description'];


Can this number theory MCQ be solved in 4 minutes?

The Problem: ( 270 + 370 ) is divisible by which number? [ 5, 13, 11 , 7 ]  Using Fermat's little theorem it took more than the double of the indicated time limit. But I would like to solve it quickly as I am preparing for an exam, that would require us to solve each MCQs to be solved in 4 minutes on an average.    Thanks in advance.


I am trying to re-learn some basic math and I realize I have forgotten most of it.     Evaluate $$\sum_{n=1}^{\infty} \frac{n}{n^4+n^2+1}$$   Call the terms $S_n$ and the total sum $S$.  $$S_n < \frac{1}{n^3} \Rightarrow \sum_{n=1}^{\infty} \frac{n}{n^4+n^2+1} = S <  \infty$$  $$S_n = \frac{n}{n^4+n^2+1} = \frac{n}{(n^2+1)^2-1}$$  It has been more than a few years since I did these things.   I would like a hint about what method I should try to look for?  Thanks.


I was doing a problem where you need to find the best K figures to eliminate from N so the number would have the minimum difference between the smallest and highest figure.  #include<bits/stdc++.h>  using namespace std;  int diff(vector <int> x){     sort(x.begin(),x.end());     return x.back()-x[0]; }  int diffMin(vector<int> x,int h,int best){    if(h==0) return diff(x);    else{        for(int a=0;a<x.size();a++){            int y=x[a];            x.erase(x.begin()+a);            best=min(best,diffMin(x,h-1,best));            x.insert(x.begin()+a,y);        }    return best;    } }  int main(){     int n,k;     cin>>n>>k;     vector <int> x;     while(n!=0){         x.push_back(n%10);         n/=10;     }     cout<<diffMin(x,k,10); }   I put it in an evaluator but it said "Caught fatal signal 11(SigSegV )". Could someone explain me why?


Let $\omega^{1}$ a 1-form defined in an open set $U\subset\mathbb{R}^{n}$. Assume that for each closed differentiable curve $c$ in $U$, $\int_{c}{\omega^{1}}$ is a rational number. Prove that $\omega^{1}$ is closed.   My approach: Let $c_{0},c_{1}:[0,1]\to U$, two curves homotopics. If $\omega^{1}$ is a 1-form closed on $U$, then the line integral along to $c_{0}$ and $c_{1}$ coincide $$\int_{c_{0}}{\omega^{1}}=\int_{c_{1}}{\omega^{1}}$$ So my idea is fixed two rational number, then for the homotopy of $c_{0}$ and $c_{1}$, I'm "obliged" to go through a irrational number.  Edit: I know that question was asked here : , but anyway I cannot finish the problem


System.QueryException: List has more than 1 row for assignment to SObject

I am trying to write a VF page to list all the id and name columns from a custom object but found an error "List has more than 1 row" in the VF page.  Can anyone tell me what have I done wrong?  VF Page:  <apex:page Controller="MP_controller" showHeader="false" sidebar="false">   <apex:pageBlock>      <apex:pageBlockTable value="{! mp}" var="item">         <apex:column value="{! item.id}"/>         <apex:column value="{! item.name}"/>       </apex:pageBlockTable>   </apex:pageBlock> </apex:page>   Apex controller  global with sharing class MP_controller {     public Merchant_Profile__c mp{get;set;}     public MP_controller(){         mp = [SELECT                  ID, name, Profile_account_name__c, Merchant_ID__c, Bank_Code__c, Country_Code__c,                 Currency_Code__c, Merchant_Level__c, Merchant_Type__c, MSO__c, Region__c,                 Retail_Products__c, Transaction_Mode__c, Created_Date__c, Date_Disabled__c, Date_Live__c,                 Merchant_Category_Code__c                FROM Merchant_Profile__c               WHERE Profile_Account_Name__c = '001O000000bQFnyIAG'];     } }


Let $T\in\mathbb{R}^{n\times n}$. Show that $\rho(T) < \rho$ iff there exists a $P\succ0$ such that $ T^{\rm T}PT-\rho^2P \prec 0$.

Let $T\in\mathbb{R}^{n\times n}$, $\rho(T)$ denote the spectral radius of $T$ and $\rho \in \mathbb{R}_{++}$. Show that \begin{align} \rho(T) < \rho \end{align} if and only if there exists a $P\succ0$ such that \begin{align}  T^{\rm T}PT-\rho^2P \prec 0. \end{align} Sufficiency: Let $\lambda \in \text{sp}(T)$ and $x$ be an associated eigenvector. We have: $$x^T T^T P T x - \rho^2 x^T P x < 0 \implies (Tx)^T P (Tx) < \rho^2 x^T P x$$ and $$(Tx)^T P (Tx) = (\lambda x)^T P (\lambda x ) = \lambda ^2 x^T P x$$ As $x^T P x>0$, we get $\lambda ^2 < \rho^2$, i.e. $|\lambda| < \rho$. We conclude that $\rho(T) < \rho$ and proves the sufficiency. Necessity: Suppose that $\rho(T) < \rho$. Suppose towards a contradiction that for each $P\succ0$ it holds that \begin{align}  T^{\rm T}PT-\rho^2P \succeq 0. \end{align} Let $x\in\mathbb{R}^{n}\setminus\{0\}$ be an eigenvector of $T$ with eigenvalue $\lambda$ such that $|\lambda| = \rho(T)$. Then it holds that \begin{align}  x^{\rm T}T^{\rm T}Tx-\rho^2 x^{\rm T} x \geq 0, \end{align} since $P=I\succ0$. This implies that \begin{align}  |\lambda| \geq \rho > \rho(T), \end{align} i.e. a contradiction. This proves the necessity.


Why can I not create an instance of inner class?

I learnt about JAVA basic level. Then, I meet some problem... the inner class instance is not created.  public class example {     class book {          private String name = null;         private int page = 0;          book(String name, int page) {             this.name = name;             this.page = page;         }          String getName() {             return this.name;         }          int getPage() {             return this.page;         }      }      public static void main(String[] args) {         // TODO Auto-generated method stub         book b1 = new book("book1", 300);       // this line is making an error         System.out.println(b1.getName());         System.out.println(b1.getPage());         System.out.println();     } }


How can I move from Xubuntu 16.04 to Ubuntu 18.04?

Ubuntu 18.04 final beta came out a few days back. Ubuntu 18.04 will be released soon and I have recently upgraded RAM on my computer. I previously had less RAM so I started using Xubuntu, but now I want to move back to Ubuntu (although it's no longer the same, with GNOME desktop and all).   What would be the best way to do it? I don't want to lose data and would like to keep the applications I have installed on my Xubuntu 16.04 system. So in summary: I want to know if there's a way to move from Xubuntu 16.04 to Ubuntu 18.04 (with the GNOME desktop, not Xubuntu 18.04) and if yes, how reliable it is. Or would I have to just clean install?


Suppose $S$ is a subset of cardinality $c$. Given two elements $x,y \in S$, prove that there exist two disjoint subsets $S_1$ and $S_2$ of $S$ each of cardinality $c$ such that $x \in S_1, y \in S_2$. For two sets $S$ and $T$, prove that $|S| ≤ |T|$ implies $|\mathcal{P(S)}|≤|\mathcal{P(T)}|$. Let $\mathcal{P_0}(S)$ denote the collection of all countable subsets of $S$. Given that $|S| = |T| = c$, show that $|\mathcal{P_0}(S)| = |\mathcal{P_0}(T)|$.   Can someone please prove this for me? I'm really having a tough time with cardinality and don't know where to begin with. I'm assuming everyone is familiar with the $\mathcal{P}$ notation for the power set.


Is there a way to have the login password different from the su password?

I have a friend that's running Debian and his computer login password is different from the superuser password. I was wondering if there's a way to do this in Ubuntu?


Why I shouldn't just make the variable public? To me, it seems much simpler to just do:  public int i;   and then accessing it like a normal variable. What do I get in doing this:  public int i {get; set;}   or even:  public int i; public int I {     get     {         return i;     }     set     {         i = value;     } }   And I don't mean in cases where you want to only get or only set, I mean in cases when you want to use it as a normal variable.  Thanks


Training N classifiers for N labels vs one classifier with N labels

I have a classification problem which is multi-label with N labels. I would like to know which method would be the better choice? Training N classifiers (1 for each label) or a single classifier which use K-hot encoding. I'm using a neural network for this with a softmax at the last layer. (Is there any chance that the softmax would cause a problem?) I'm using tensorflow for the model.


How to do Mesh Analysis with Current Sources?

Basically the circuit below is what my professor gave us and we need to solve for the the voltage across the 8 ohm resistor, the current through the 2 ohm resistor, power absorbed by the 10 ohm resistor, and the power delivered by the 4 a source. I used regular mesh and I got the wrong values(I checked using KCL and KVL). One thing that I think I got wrong is I assumed that I1 = 3A(feedback). I tried to search the web for a solution and I've seen something called "super mesh". Is this helpful? If yes, can anyone assist me on how to work with it?  Other thing is I want to check if my values are correct using MIT's Circuit Sandbox, however I don't know where should I put the ground so that the circuit will simulate in the way I wanted it to be. Every help is very much appreciated Thanks!


What do you call someone who comes up with excuses, so they don't have to do something that they said they will?

For example, when someone "pinky promises" something and then when they have to do what they promised they don't want to do they come up with excuses, for example they'll say "I never said it promises a time of when I will do it". What are words to call a person like this, basically someone who doesn't keep their word, but I need other works.


How do I select elements using JavaScript?

I'm trying to select and edit all three individual  elements found in a
 with an id of #calendarWidget. I've been able to select two of the three using querySelector and innerHTML.  Here's my code:  window.onload = function() {   document.querySelector('#calendarWidget > div > table > tbody > tr > td > span').innerHTML="Available Sessions";   document.querySelector('#calendarWidget > div > table > tbody > tr > td > span:nth-child(2)').innerHTML="Registered Sessions";   document.querySelector('#calendarWidget > div > table > tbody > tr > td > span:last-child').innerHTML="Past Sessions"; };  This code selects and edits the first and last  elements, but not the middle element.   I've tried adding :nth-child(2) to the second  element, but that isn't working.  Is it possible to make this work, and if so, how do I go about doing it?


With the tag page changed, there are some.. let's call them "controversial" opinions whether it's an improvement or not; I'd rather not comment on that, but point out a certain "feature" in the tag excerpts wikis which are shown on the \tags page:  Case in point from the TeX-SE tags page:      The  tag wiki excerpt reads:     TeX and friends give you the resources to put text in the header and footer of your document. This tag is for questions relating to this.   Huh?   I thought it was just someone was being lazy not providing a proper tag description. But it turned out that this happens on a lot more tags, to a different degree. The layout script, or whatever it is, tries to be clever, and removes some stuff in front of the tag excerpts to avoid repetition, presumably.   The cases I noticed so far:   "Questions tagged with [foo]" "This tag is about" "Choose this tag if your question is" "Use the [foo] tag for" "[foo] is" "This tag"   .. and probably more, I'm too lazy to search.   The point is -- the script tries to be clever and removes whole sentences, leaving weird and incomplete description, which is what tag wikis are all about.   Now, the questions:   Is this  or a bug? How exactly does it work? What template for tag excerpts should we use to avoid ridiculous entries like the one shown?


How to convert list array to Hexstring in c#?

I have a list array named "list". I need to convert this list into a hex string. I tried the code below but it hasn't worked.       var  list = objIPLayer.Udp.Payload.ToList();     string hex = BitConverter.ToString(list);    I got this error:     The best overloaded method match for   'System.BitConverter.ToString(byte[])' has some invalid arguments**   when executed the following code.  string hex = BitConverter.ToString(list);    Is there any method to do this?


How did the Veil end up in the Ministry?

In Order of the Phoenix, we encounter the Veil in the Ministry's Department of Mysteries. With the nature of this artifact, it seems as though it would be, at best, very difficult to move. It also appears to be located very centrally within the Department of Mysteries.   Was the Department of Mysteries, and subsequently the entire Ministry, constructed around the Veil?


Some areas of label repeat, do not show, or appear offsets in Geoserver

I found that tile map of each region in geoserver2.9.2 of platform independent binary displays its name two or more times. As shown in the first picture.   I have done as  and . However, some areas of label in sixth and seventh level do not show and some appear offsets. As shown in the second picture.  Here's my code:  <TextSymbolizer>  <Geometry>   <ogc:Function name="centroid">      <ogc:PropertyName>the_geom</ogc:PropertyName>   </ogc:Function>  </Geometry> </TextSymbolizer>   And then I have done as . It was same as above in seventh level.   Here's my code:  <VendorOption name="partials">true</VendorOption>   I have no idea how to modify it. Can anybody tell me?


Why is the decay of a neutral rho meson into two neutral pions forbidden? (Other modes of decay are possible though.) Is it something with conservation of isospin symmetry or something else? Please explain in a bit more detail.


What is the name of this rhetorical device

What is the name of the rhetorical device where someone mentions a subject by stating that he or she will not mention it, as in "not to mention the fact that you have not paid me."


How do I permanently get rid of "bigdeal" malware?

I'm very conservative in how I use my computer (no illegal software, no strange downloads) yet still managed to get infected by a very annoying piece of malware. I presents itself mostly in Internet Explorer (before also in Firefox, but there I reset the browser - which worked) as follow:   Random extra tabs open, usually to some "bigdeal" ad or a survey Links in valid articles get uppercased and intercepted when clicking on it In general, every few clicks get intercepted by a new tab with an ad   In my search of removing it, I've tried the following:   Using "Advanced" settings of Internet Explorer I reset Internet Explorer to its default settings. This requires a reboot. After reboot, the malware is back, so it doesn't work. Remove suspicious software from control panel "installed applications", but the malware is still there despite the list being clean Doing a full scan using the program "MalwareBytes". It found 3 threats which I removed, but the malware is still here.    I've been continuing my search with a lot of online research but the first two pages in Google search results look very suspicious. Poorly written, copy/pasted, and often recommending yet another scan tool I never heard of. I'm paranoid now, believing these are scam articles that will make my problem worse instead of solving it.  I'm looking for a solution that actually works, safely and permanently. A reinstall or restore is the last thing I need, so I'm just hoping for a good "clean".  As a secondary question, I'm interested to learn how on earth I got this malware. All my software is legal, I don't download anything from untrustworthy sources and follow general best practices in keeping software up-to-date, virus scanners, firewall, etc.


"Our program graduates" or "Our program's graduates" - which is correct?

I'm working with a friend on a short sentence for an announcement, and was asked whether the possessive should be used or dropped on program:  Current:     Please congratulate our program's graduates.   We believe it may be more correct to simply use:     Please congratulate our program graduates.   The graduates aren't owned by the program, so why express it as such? This seems like a common error.  Are we correct in this assessment?  Edit:  To expand on the question a bit, in the second case we are simply using program as an adjective for graduates: the type of graduate (ones of our program). I am aware that 's, the genitive case, can mean that something is associated with something else, and not strictly to convey ownership.  Thus, I know that the current form is correct, but am asking whether the second form seems improved, acceptable, or unusual in this example.  This may be a case of something similar to orthographic incredulity, where after staring at something too long it starts to appear wrong. That may be the case here, but I'd appreciate any constructive insight.


Minimum and Maximum eigenvalue inequality from a positive definite matrix.

I got a positive definite matrix $B,$ that is, $V(x) = x^TBx > 0$ for any vector $ x \neq 0.$  I want to show that $ \lambda_\min \|x\|_2^2 \leq V(x) \leq \lambda_\max \|x\|_2^2$ for any $x \neq 0,$ where $\lambda_\min$ and $ \lambda_\max$ are defined by $$ \lambda_\min = \min \lbrace | \lambda|: \lambda \text{ is an eigenvalue of } B \rbrace$$ and  $$ \lambda_\max = \max \lbrace | \lambda|: \lambda \text{ is an eigenvalue of } B  \rbrace$$  Any hint please?


Exception "The SPListItem being updated was not retrieved with all taxonomy fields." at changing TaxonomyField value

This problem appears only on one particular Document Library. I use   TaxonomyField.SetFieldValue(myItem, myTaxonomyFieldValue);   and it works fine everywhere except this lib. Can anyone suggest a workaround?


Do/did famous actors that are part of Game of Thrones actually go nude?

I have recently started watching Game of Thrones and I noticed that it has many well known actors like Peter Dinklage, Emilia Clarke, Sean Bean, Natalie Dormer and so on.  By famous I mean, actors that are seen in many other movies.  Did these actors really go nude, that is, the bodies we see in the series are their real bodies or have body doubles been used?  I read an article where they explained how they used body double for Lena Headey in the nude penance walk scene of Cersei Lannister. So for other actors (like Emilia Clarke or Natalie Dormer) who are seen naked, was it a real body or just another body double?


php - send email with french accents in subject

I am able to send french accent é in the body in php mail using the following code:  $subject = "é"; $message = "<html>&eacute;<html>";  $headers = 'From: noreply@mymail.fr' . "\r\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";  mail($to, $subject, $message, $headers);   However, how do I send accents in the subject?


Here is a sample code I'm using in .htaccess to block spam referers:  RewriteEngine On RewriteCond %{HTTP_REFERER} ^http://.*buttons-for-your-website\.com/ [NC,OR] RewriteCond %{HTTP_REFERER} ^http://.*free-social-buttons\.com/ [NC] RewriteRule ^(.*)$ – [F,L]   Also, I have the following code in nginx configuration because I have nginx stands as a reverse proxy in front of apache:  if ($http_referer ~ "buttons-for-your-website\.com|free-social-buttons\.com")   {    return 403; }   I'm still getting hits from buttons-for-your-website.com, by some way this bot can bypass all previous rules and I have no clue how. I've verified both htaccess rules and nginx configuration on a domain of mine and they blocked access to my website from that domain. So, how these bots are still able to visit my website? Appreicate your answers.


Equality operator bevaiour for dynamically passed string values in java

public class EqualsCheck {      /**      * @param args      */     public static void main(String[] args) {         Scanner sc= new Scanner(System.in);         Scanner sc1= new Scanner(System.in);         String s1 = sc.next();         String s2 = sc1.next();         equalCheck(s1,s2);     }      private static void equalCheck(String s1, String s2) {         //Using Assignment         System.out.println(s1 == s2);          //Using equals          System.out.println(s1.equals(s2));          //Printing HashCode          System.out.println("s1 :"+s1.hashCode()+" s2: "+s2.hashCode());     } }   Passed string are :   s1 = "abc";  s2 = "abc";   If I do a s1==s2, it returns false. Why string pooling doesn't work here.


What happens when yellow light is passed through a prism?

What happens when secondary colors like yellow,green and magenta are passed through a prism? Will it split into its component colors(for example yellow split into green and red)?If yes why we are observing secondary colors in the visible spectrum obtained when white light(composite light) is passed through a prism?


Limit of $f(x+\sqrt x)-f(x)$ as $x \to\infty$ if $|f'(x)|\le 1/x$ for $x>1$

Given a differentiable function $f:(1,+\infty) \to \mathbb{R}$, and $|f'(x)| \le 1/x$ for every $x>1$. Prove that:  $$\lim_{x\to +\infty} \left(f(x+\sqrt{x})-f(x) \right)=0.$$


Passing Types around and using them in as Type Parameters

Why can't I do something like this:  var myDictionary = new Dictionary<string, Type>();  // Add data to dictionary  foreach(var kvPair in myDictionary) {     var result = SomeMethod<kvPair.Value>(kvPair.Key); // Error }   So I cannot use the Type that I have in the Dictionary element and use it in the type parameter. Yes I could just send the dictionary to the SomeMethod(KeyValuePair). However I do not have control of how the function is implemented.   Error: The type or namespace name 'kvPair' could not be found (are you missing a using directive or an assembly reference?  I feel like I am missing something pretty foundational and I am not sure what it is.


If someone lives in USA he'd say,     I live in the United States Of America.   But if someone lives in India, he would not say,     I live in the India.   The better way seems to say,     I live in India.   So what is the rule to decide with which country do we use The?


Suggested edit indicator should not be visible for my own suggested edit

I just suggested an tag wiki excerpt edit on Programming Puzzles & Code Golf, and now I get this suggested edit indicator:    But because it is my own edit, I get "There are no items for you to review." So actually, I should not get this indicator.


This is my first time attempting a big project in C++, and I wanted to create a game in SFML. I divided my program into a bunch of classes that included each other, and that's where I am getting my error. I have three main classes, Game, State, and Entity. The main.cpp includes the Game.h file and starts the game. The Game.h file is where all the SFML includes are. Here is a simplified version of my code.  main.cpp #include "Game.h"  int main() {     // starts the game here }  Game.h #ifndef GAME_H #define GAME_H  #include "State.h" // All the SFML includes and other standard library includes are here  class Game { }  #endif  State.h #ifndef STATE_H #define STATE_H  #include "Entity.h"  class State { }  #endif  Entity.h #ifndef ENTITY_H #define ENTITY_H  #include "Game.h"  class Entity { }  #endif  Theoretically, State.h should be able to access the SFML functions because it is including Entity.h which is including Game.h which is including SFML. But when I add SFML functions into either State.h and Entity.h, visual studio doesn't show any errors until I compile it, where it says that the functions aren't defined.


Does $E=mc^2$ apply to electron shells with different energies?

Is this statement true: Each electron shell has a different energy level, with those shells closest to the nucleus being lower in energy than those farther from the nucleus. Mass of electron $= 9.10938356 \times 10^{-31}$ kilograms so if electron energies vary based on the shell... Then $E=mc^2$ is wrong? (right?)


NullPointer Exception when decrypting AES

I was able to successfully encrypt a message with a generated key. Now I am trying to achive decryption whereby a user would enter a key (hex) and there encrypted message (hex). I am having a problem when decrypting the the encrypted message (hex). I receive multiple NullPointerExceptions. Could you possible help me figure out a solution to this problem please?  //Edit: For Example the key (Hex): CFDD0F5311764F9EA56CF4126E304BC2 | Encrypted Message: C2A80A2B7A84A5A785E059F19322E5BA  private void executeDecryption() {     encryptMessageStr = messageEncryptTA.getText();     algorithmType = decryptAlgorithmTypeCB.getSelectionModel().getSelectedItem();     keyDecrypt = keyTF.getText();      if (!messageEncryptedTA.getText().isEmpty()) {          try {             //Using decryptText()             String textDecipher = decryptText(encryptedMessageStr, keyDecrypt);             messageEncryptedTA.setText(textDecipher);          } catch (Exception ex) {             MessageBox.display("Error!", "Could not decrypt message! Please try again later");             //System.out.println(ex.getMessage());         }      } else {         MessageBox.display("Warning!", "Please make sure message field is not empty!");     } }  public static String decryptText(String encryptedMessageStr, String secretKey) {     try {         Key k = new SecretKeySpec(Base64.getDecoder().decode(secretKey), "AES");         Cipher cipherAES = Cipher.getInstance("AES");         cipherAES.init(Cipher.DECRYPT_MODE, k);          byte[] decodedValue = Base64.getDecoder().decode(encryptedMessageStr);         byte[] cipherTextBytes = cipherAES.doFinal(decodedValue);         String decryptedValue = new String(cipherTextBytes);         return decryptedValue;      } catch (Exception ex) {         ex.printStackTrace();     }      return "Error";  }   Edited:   EXCEPTION: javax.crypto.IllegalBlockSizeException: Input length must be multiple of 16 when decrypting with padded cipher


Broadcom wireless doesn't work on an HP Mini 110 1199EA under Wubi install

I used the Windows install for Ubuntu today, it all installed easily and automatically but I could not go on the Internet. Please tell me how to solve this problem.   I think it was "Ubuntu Desktop 12.04 LTS" but I'm not sure, I did it today, 8th of June 2012. I am using the HP Mini 110 1199EA.  It says 'firmware not found' or something like that. What is firmware and why isn't it found?  My wireless device seems to be called "Broadcom 802.11b/g WLAN" does that make any sense?


How to construct an example for the entropy equation: $H(Z)=H(X)+H(Y)$ where $Z=X+Y$

Given $Z=X+Y$ where X and Y are two random variables, under what conditions does $H(Z)=H(X)+H(Y)$?  Notice $Z$ is a function of $(X,Y)$, therefore $H(Z)\leq H(X,Y)$, and $H(X,Y)\leq H(X)+H(Y)-I(X;Y)$. Therefore when $Z$ and $(X,Y)$ is a one-to-one function and $X$ is independent of $Y$.  My question is, how to find an example that satisfy this problem ? I have a simple example that let $X=0$ so that $Z=Y$, which satisfy the conditions.  However, can anyone gives a more non-trivial example ? Thanks.


I was trying to learn more about Linux and came across the command ls ????? and it displayed a few files in the directory but I am not really sure what it is specifically displaying. I tried to use the man to explain it further but I couldn't find anything. Could someone please explain?


Using Eisenstein criterion show that $x^3+x^2-2x-1$ is irreducible?

I tried for few primes but they do not satisfy Eisenstein criterion.Also is there any approach other than brute force with the help of which we can find that prime.


Statistical test for sample size equals one

I know statistical test usually requires "enough" samples to estimate the uncertainties. But what if I have only one sample in each group, and also I "know" which distribution this one sample comes from, is it reasonable to construct a statistical test? To be more specific, Let's say we have a case-control study and we want to know if there is some significant improvement in "case" than in "control". The data we have is only one sample, $x$ for the case group, and $y$ for the control group, so $x$ and $y$ are both scalars. The other information we also have is that $X\sim exp(\lambda)$ and $Y\sim exp(\mu)$, where $\lambda$ and $\mu$ are both some known parameters. My question is to test my hypothesis that "case is greater than control", can I just construct a test statistic $T = X-Y$? And I will be able to find the distribution of $T$ by this . Does this make sense? My confusion mainly comes from how to write up $H_0$ and $H_1$. It seems like I am testing $H_0:x=y$ but obviously this looks very weird... Because usually we will test $H_0: \lambda = \mu$...


How to write an Excel Formula that takes a total across multiple repeating rows

I'm working with payroll data in a spreadsheet. What I'm looking to find is a total across different rows of employees with different roles. For example, how could I write a forumla for the "Total Hours" column below? ╔═══════╦══════════╦═══════════╦═══════╦═════════════╗ ║ Emp # ║ Employee ║   Role    ║ Hours ║ Total Hours ║ ╠═══════╬══════════╬═══════════╬═══════╬═════════════╣ ║     1 ║ Jim      ║ Role 1    ║     5 ║           7 ║ ║     1 ║ Jim      ║ Role 2    ║     2 ║             ║ ║     2 ║ Bob      ║ Only Role ║    10 ║          10 ║ ║     3 ║ Jane     ║ Role 1    ║    10 ║          15 ║ ║     3 ║ Jane     ║ Role 2    ║     2 ║             ║ ║     3 ║ Jane     ║ Role 3    ║     3 ║             ║ ╚═══════╩══════════╩═══════════╩═══════╩═════════════╝


What will be the following limits?  $\lim\limits_{x \to 0}\sin(\frac{1}{x})$  for $x \to 0 ,$ $\frac{1}{x} \to \infty$  Now what will be the $\sin$ value on $\infty$ ?


How do I list a section in table of contents that appears before the table of contents?

My institution requires a summary of a report to be on page iii, then the table of contents start on page v (there is other front matter inserted by the publications dept on pages i, ii and iv). I have manually set the page numbers, and manually added the summary to the TOC, but the page number for the summary is listed as v, when it should be iii. Can I specify the page number in the \addcontentsline command?  \documentclass{article} \begin{document}  \pagenumbering{roman} \setcounter{page}{3} \section*{Summary}  \newpage \setcounter{page}{5} \addcontentsline{toc}{section}{Summary} \tableofcontents \end{document}


How do I get more information about why my question is down voted

Is there any way I can find the specific reasons my question is being down voted for?  I get it that I am not communicating my questions adequately but without specific feedback it is hard to improve.  Apparently down votes are not close votes.    But where do I see the close votes?  [Update]  My question is not about how do I work out for myself the problem with the question I asked.  The question is about whether the reason for the down votes can be looked up.  (They can't be as I explain below )


If $a_k = \operatorname{rank}(S^k)$, deduce that $a_k - a_{k+1} \geq a_{k+1} - a_{k+2}$

Let $S: V \to V$ be a linear transformation. Show that $V \supseteq \operatorname{Im}(S) \supseteq \operatorname{Im}(S^2) \supseteq \cdots$ and $\{0\} \subseteq \ker(S) \subseteq \ker(S^2) \subseteq \cdots$. If $a_k = \operatorname{rank}(S^k)$, deduce that $a_k \geq a_{k+1}$ and that $a_k - a_{k+1} \geq a_{k+1} - a_{k+2}$.  I can show everything except for $a_k - a_{k+1} \geq a_{k+1} - a_{k+2}$, which eludes me. I attempted using the rank-nullity theorem, but no luck so far. Any ideas/hints?


Transit Visa for Abu Dhabi needed? (Thai citizen) 4h wait at airport

I hold a Thai passport. I will be flying from Bangkok to Abu Dhabi then Abu Dhabi to Manchester with a return ticket. I have a 4 hour 30 minute wait at Abu Dhabi for my flight to Manchester. I have a English visa, do I need to get a transit visa for my wait at Abu Dhabi?  Thank you


Recently installed ubuntu can hear myself through microphone

Ok so i recently installed Ubuntu and i got my headset Logitech g430s and I can hear  myself through my headphones when i talk. How can I fix this it's really annoying.


Prove that $d(x,z) \leq d(x,y) + d(y,z)$ in $\textbf{R}^2$

You are potentially able to prove $d(x,z) \leq d(x,y) + d(y,z)$ in $\textbf{R}^2$ using the relation that $d(x + y, 0) \leq d(x, 0) + d(y, 0)$ where: $0 = 0$-vector $d(x, y) = \sqrt{(x_1 - y_1)^2 + (x_2 - y_2)^2}$ - the distance formula I was able to find and use $(x_1z_2 - x_2z_1) \geq 0$ To form $d(x,z) \leq d(x, 0) + d(z, 0)$ then by symmetry \begin{align*} \begin{cases} d(x,y) \leq d(x, 0) + d(y, 0)\\\\ d(y,z) \leq d(y, 0) + d(z, 0) \end{cases} \end{align*} You get $d(x, y) + d(y, z) \leq d(x, 0) + d(y, 0) + d(y, 0) + d(z,0)$ and $d(x, z) \leq d(x, 0) + d(z, 0)$. Any hints from here?


It should be possible to have multiple UV maps for one mesh, but I cannot figure out how. I cannot rename the default UVMap either. The given answer does not really seem to apply. For example, he sets the name manually but I cannot figure out how I should do that.


Proof of a series $\sum_{n=0}^{\infty} x_n$ is absolutely convergent.

Let $\{x_n\}$ be a given series such that it satisfies the following conditions for all sequence  $\{y_n\}$ in real numbers converging to $0$. It is given that the sequence $\{y_n\}$ converges to $0$ and the series $\sum_{n=0}^{\infty} x_ny_n$ is convergent. Then show that the series $\sum_{n=0}^{\infty} |x_n|$ is convergent$,$ that is the series $\sum_{n=0}^{\infty} x_n$ is absolutely convergent.  My attempt: Since $\{y_n\}$ is converges to $0$ then for each $ε>0$ there exist a natural number $k_1$ such that $|y_n|< ε$ for all $n>k_1$. Since the series $\sum_{n=0}^{\infty} x_ny_n$ is convergent then the tail of the series goes to zero that is $x_ny_n$ tends to $0$ as $n$ tends to $\infty$. But can not proceed further to complete the proof. Please help me to solve this. Thanks in advance.


What does CRP decreased result means within 2 months

What does it means when you repeat all your blood test between 2 months and all the result are within range and exactly the same as previously, but a test called CRP decreased from 2 to 0.98.  Does it mean that I have infection or not ?


How to create a 7 characters of alphanumeric unique id?

I need to create alphanumeric unique IDs of length 7 or 10. Similar to the shorter version of Git commit IDs (7a471b2).  I tried UUID, but the generated unique ID is longer than I need.  Is there a built-in method / code snippet in Java that can help here?


Fibonacci, prove that $F_{n}\cdot F_{n+2}-({F_{n+1}})^2=(-1)^n$ with induction

I need to prove by induction that:  $$F_{n}\cdot F_{n+2}-({F_{n+1}})^2=(-1)^n$$  I did the following:   Check if the statement holds for $n=1$:   $$1\cdot 3-(2)^2=(-1)^1$$   Check if the statement holds for $n=p+1$:   $$F_{p+1}\cdot F_{p+3}-({F_{p+2}})^2=(-1)^{p+1}$$  I am having some troubles with this. I don't know how to continue.


I just would like to know if a question or an answer saved draft is visible to someone else, apart from the OP.  Will a copy of a saved draft remain visible even after it has been deleted? Who has access to it?


How to get Alakazam and Gengar in Pokemon Gold on an emulator?

I recently discovered someone managed to get an Alakazam and a Gengar on the Virtual Game Boy on the computer, which is normally only possible through trading.  How is this possible? Is there a way to trade on an emulator or trick the game into evolving Kadabra or Haunter without actually trading them?


How do you create the depth stroke effect from Premiere in Illustrator

Sorry in advance for the wall of text  So basically what I want to do is recreate the Stroke Type Depth from Premiere in illustrator. I realise that I could convert text to a path in illustrator and just manually connect the points but that would take too long and still isn't quite as good as premiere's effect.   This is what premiere outputs with an edge outer stroke above a depth outer stroke, note that the depth stroke also expands to fit the previous edge stroke.      After a while of messing around with illustrator and some googling, this is the closest I could make. I made the depth by using Effects > Transform & Distort > Transform of (-0.1px, 0.1px) with 150 copies to make a 15 px depth effect at 45 degrees down and left and with Effects > Stylize > Round Corners   This is close but it takes a decent bit more steps to do and doesn't accommodate (and align the copies) for the stroke. Also not nearly the biggest issue but with the copies, its not scalable. Also round corners seem to sometimes not work as expected and have artifacts such as random corners not being rounded. But that was probably just a one time thing.     When I first found the depth stroke in premiere I really liked it and I wanted to make something with it in illustrator and was really surprised and confused to not find it. I would expect that if anything illustrator would have more options for transforming paths and text that premiere would have but that doesn't seem to be the case.  So am I missing something or is this not possible in illustrator, at least to the same degree of ease and quality?  Thanks for taking the time reading this and responding, I'm sure it will help other people too!


Parameter binding for IN clause with pymssql

I couldnot find this anywhere , so asking it here.   Say I have a query such as   SELECT * from TABLE WHERE col in ('a', 'b', 'c', .......);   This data is provided by list of strings and it is quite huge with length more than 100. What is efficient way of parameter binding in such scenario.  I am currently doing   'SELECT * from TABLE WHERE col in {0}'.format(str(tuple(LIST_OF_DATA)))   Another way I could think of is prepare a bind string with length of list such as ','.join(itertools.repeat("%s", len(LIST_OF_DATA))) and concatenate to query.  Is there any other way other than these to bind with in query a list of data ?


Unusually for such a request, I think I know the title: “The Deserter”.  Trouble is that ISFDB lists seven short stories with that title.  Setting is one of the cold planets.  To explore it, people are sent out in new bodies suited to the environment.  Not one of them has returned or reported, and no trace can be found of their fate; at least they did not die nearby.  In the end, the viewpoint character goes out, with a dog, and immediately understands: his new brain is so much roomier that he hates the idea of being squashed back into his old one.  The dog can now talk, too.  The last lines of the story are, roughly: “I'll have to go back eventually, but not yet; they will make me be a dog again.” “And they will make me be a man.”  I'd guess that this is the one by Poul Anderson, because it fits his tragic mode, and because if he wrote it I have probably read it.  (Anderson also wrote “Call Me Joe” which shares some elements, so I may be confused.)  Can you confirm?


Resources for theory of distributions (generalized functions) for physicists

I am looking for tutorials, articles or books containing theory of  in context of mathematical physics. Please suggest.


Batching a bunch of gameObjects that change their color

So I have a bunch of cubes instantiated. Each time the player hits one of these cubes (which is quite often) they change their color to match that of the player. What would be a performant way to do this? So far i am doing this on OnTriggerEnter then grab my player’s mesh renderer, get its material and get the color. This is quite an expensive process. I was wondering if there is any better way. The cubes do not move by the way, so if they can somehow be batched as well that would be a plus! Also, the player’s color is random.


Can Ubuntu be installed to the pendrive it was booted from?

A person has a computer with no HDD but 16GB RAM and USB3 port.  Also has 16GB USB3 pendrive with Ubuntu Live on it, (Non persistent).  The computer is then started with the pendrive using toram.  The pendrive is then removed and reinserted while the O/S is running.  Is the O/S that is running in RAM able to do a "Full" install to the pendrive?  This was asked in:     However for some reason this unique question was marked as "Duplicate".


Getting " Caused by: java.lang.NullPointerException: Listener must not be null" when using fusedLocationProviderClient.requestLocationUpdates

This is the second activity of the app. I have already asked for permission to access location in the first activity.This is the error:  java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.livelocationfinder/com.example.livelocationfinder.MapsActivity}: java.lang.NullPointerException: Listener must not be null         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3123)         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3266)         at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)         at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)         at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1957)         at android.os.Handler.dispatchMessage(Handler.java:106)         at android.os.Looper.loop(Looper.java:214)         at android.app.ActivityThread.main(ActivityThread.java:7099)         at java.lang.reflect.Method.invoke(Native Method)         at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)      Caused by: java.lang.NullPointerException: Listener must not be null         at com.google.android.gms.common.internal.Preconditions.checkNotNull(Unknown Source:11)         at com.google.android.gms.common.api.internal.ListenerHolders.createListenerHolder(Unknown Source:13)         at com.google.android.gms.location.FusedLocationProviderClient.requestLocationUpdates(Unknown Source:14)         at com.example.livelocationfinder.MapsActivity.onCreate(MapsActivity.java:54)         at android.app.Activity.performCreate(Activity.java:7327)         at android.app.Activity.performCreate(Activity.java:7318)         at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1275)         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3103)         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3266)          at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)          at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)          at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)          at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1957)          at android.os.Handler.dispatchMessage(Handler.java:106)          at android.os.Looper.loop(Looper.java:214)          at android.app.ActivityThread.main(ActivityThread.java:7099)          at java.lang.reflect.Method.invoke(Native Method)          at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)          at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)  2020-04-01 22:44:27.324 30588-30588/com.example.livelocationfinder I/Process: Sending signal. PID: 30588 SIG: 9   This is the code of the onCreate() method and I am getting the error in the last line.  The locationCallback has been initialized in onMapReady() method.   protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_maps);     // Obtain the SupportMapFragment and get notified when the map is ready to be used.     SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager()             .findFragmentById(R.id.map);     mapFragment.getMapAsync(this);     fusedLocationProviderClient = LocationServices.getFusedLocationProviderClient(MapsActivity.this);     locationRequest = LocationRequest.create();     locationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);     locationRequest.setInterval(5000);     fusedLocationProviderClient.requestLocationUpdates(locationRequest,locationCallback,Looper.getMainLooper());


Will cutting the fridge capillary pipe allow the gas to evacuate?

I'm wanting to remove a compressor from a fridge, I need to release the gas(r600a - safe) first. Initially I thought you had to cut or pierce the copper piping attached to the compressor but I've watched a video where he cuts the capillary pipe. Cutting the capillary would be easier and safer than the larger copper pipes. Will this release all the gas?


Near the end of Empire Strikes Back, Darth Vader has a big proposal for Luke:     "Luke, you can destroy the Emperor. He has foreseen this. It is your   destiny! Join me, and together, we can rule the galaxy as father and   son! Come with me. It is the only way."   Is Vader really intentioned to destroy the Emperor with the help of his son, or is he just trying to lure Luke into the dark side using a proposal that might sound light-side oriented to him (destroy evil, bring back peace...)?  Of course I don't mean he is already a good guy at this point, but does he really have a personal plan against his master, to take his place and have Luke as his apprentice? Is he even showing a little bit of fatherly love? Or is it all a lie?


Identifying an insect looking like a crumle

Recently a little insect crawled over the carpet. First I did not notice, as its appearance is quite similar to the coloring of the carpet. Then I understood that it is not a rolling crumble, as the window and the door were closed.  I took it on an ordinary sheet of DIN A4 paper, but have not the slightest idea, what kind of insect it is. It makes the impression to have taken a shower of water and dust in a row.  What's that insect called?   The second photo gives an idea of the size, as it shows a drinking glass turned upside down.  Note: The place this insect was encountered is in eastern Germany


How to trace down why LTSpice simulation is slow?

I have a pretty complicated schematic in LTSpice (at least it is the most complicated schematic I ever tried to simulate in LTSpice).  For some reason simulation of just 20 ms turns into about 15 seconds to accomplish.  I have several theories:   The schematic is complicated, computer is slow (it is really not very powerful) so I can not expect anything faster. I have some trouble in the schematic cosing LTSpice to short the iterations and therefore - slowdown the simulation process.   If I'd skip the first, how can I trace down the problem part of the schematic?  I tried:   cut some suspicious parts of the schematic to define if the simulation became reasonably fast (did not help - simulation time vary from something 10 to 20 seconds) put initial conditions to "charge" capacitors to intended voltages (it helped as I could make the simulation time shorter: 20 ms instead of 100-200 ms) I defined Maximum Timestep as 1 us:  I put 10 MOhms resistors between optos and ground   Is there any method to find a problem node?  I think that I will not ask the community to find the problem for me as I'd better learn to do it myself. So this is why I did not put my schematic in the question.


What lenses to bring while traveling? One good wide-telephoto or several smaller ones?

I have a Canon 7D and often take my camera on the road while traveling. In the past I've taken my Sigma 17-70 f/2.8-4 and my Canon 70-300 f/4-5.6, which means that I must switch out lenses quite a bit, depending on what I'm shooting. I get a much better overall image with the 70-300, but the 17-70 gets the big picture. Should I invest in a third lens for better travel portraits, close-up lenses to save space, or just a better lens overall (such as the Canon 24-105 f/4L)? I do love having low f stops for great focus and blur, but I also like having options, macro equipment, and reach. Perhaps there's no easy solution, but what would you do to travel relatively lightly in such a situation? Thanks!


Using thematic layer for segmentation in eCognition?

I have a thematic layer, i want to perform segmentation and classification only within the thematic layer,not in a whole image. how can i do it? I tried to segment the image after viewing the thematic layer in view setting and the thematic layer usage was enabled, but it was segmenting the whole image.


Are there rules how 'g' is pronounced as /j/ or /g/?

I'm not an native English speaker, and sometimes I'm confused with the pronunciation of 'g' and 'j' in words. It seems that 'j' is usually pronounced as /dʒ/ for example "job", "jaw". But 'g' can be pronounced as /dʒ/ or /g/. For example "gorgeous" is pronounced as  /'ɡɔrdʒəs/, but "georgia" is pronounced as /'dʒɔ:dʒjə/. So I have two questions:   How could I know whether I should pronouciation as /g/ or /dʒ/ if I see a word start with letter 'g'? How could I know whether the word starts with a 'g' or 'j' if the pronunciation start with a /g/?


Does it make a difference if your URL path ends in a trailing slash or not?

Does it make any difference to SEO ratings what-so-ever if your url has a trailing slash:  http://www.example.com/some/slug/paths/   as opposed to one that does not:  http://www.example.com/some/slug/paths


Why does RSA use semiprime numbers? Why not just use any big number ??  What is the advantage of the two original numbers being  prime?  Because factoring any big number will be difficult


all I am asked to prove that given a loopless multigraph $G$ with vertices all having even degree, it is possible to orient the graph in such way that the in-degree of every vertex is equal to the out degree of every vertex.  Now for the case when the number of vertices finite, this is easy using Eulerian trails.  However, I am curious if the same statement holds for a graph having countably infinite vertices all with even degree and finitely many edges?  Any help in see why or why the infinite graph case is true would be awesome.


Is there a word for a person who has lost their sibling?

Is there any word that applies to a person who has lost their sibling, such as widow/widower for a married person who has lost their partner?


How do I download with youtube-dl to get video title as filename?

How the current file has been downloaded to display the original title? When i download always like P9pzm5b6Fxx.mp4, when the title is Tigerking.  How do I set it so that it is downloaded as tigerking.mp4?


We can access the value of a certain index in a list like so:  letters = ['a','b','c','d','e','f'] print letters[1]   The code above will print the letter 'b', because it is in the index 1 of the list, letter. So in this way, we can access a certain object in a list.  Now, if we assume that letters = ['a','b','c','d','e','f'], what code should we type to access the index of a certain object (assume it is the letter, 'c') in the list, letters?  Any and all help will be appreciated.


A very simple question, but I can't seem to find anything relating to it :  Is there any research, are there any results that have focused on or given insight on   $\sum 1/p^p$, ${p \in \mathbb P}$ ?  A very basic series, converges extremely fast, its value is around .29. What more can there be said about it ?  From what little I know about more advanced number theory, similar sequences (I can think of a few similar ones that I can't find any relevant research or results about) can be very non-trivial to compute or to analyse.


Loosely speaking, the mode is the highest bump, the median is where half the area is to the right and half is to the left, and the mean is where the histogram would balance, were it a solid object cut out of a uniform block of metal   is the source.


Graph theory problem: n-dimensional cube

Let $Q_n$ be the $n-dimensional$ cube graph:  Its vertices are all the $n-tuples$ of $0$ and $1$ with two vertices being adjacent if they dier in precisely one position.For example, in $Q_3$, the vertices $(1,0,0)$ and $(1,0,1)$ are adjacent because they differ only in the third position.Show that $Q_n$is bipartite.  Can anybody help me with this question please?


Prove that $f(\overline A) \subseteq \overline{f(A)}$

Let $f : X \longrightarrow Y$ be continuous, and let $A \subseteq X$. Show that $f(\overline A) \subseteq \overline{f(A)}$.   My attempt  Let $y \in f(\overline A)$. Then there exists $x \in \overline A$ such that $f(x) = y$. Now let us take an open neighbourhood $V$ of $y$ in $Y$ arbitrarily. If we can show that $V \cap f(A) \neq \emptyset$ then our purpose will be served.  Now since $f(x) = y \in V$, we have $x \in f^{-1} (V)$. Since $x \in \overline A$ and $f^{-1} (V)$ is open in $X$ (since $f$ is continuous), we have that $f^{-1} (V) \cap A \neq \emptyset$.  Let $z \in f^{-1} (V) \cap A$. Then $f(z) \in V \cap f(A)$, which proves that $V \cap f(A) \neq \emptyset$ and we are done.  Is my reasoning correct at all? Please verify it.


I have something like this in my models.py:  class Section(models.Model):     title = models.CharField(max_length=50)  class Lesson1(models.Model):     section = models.ForeignKey(Section)     title = models.CharField(max_length=50)     ...     sort_index = models.IntegerField()  class Lesson2(models.Model):     section = models.ForeignKey(Section)     title = models.CharField(max_length=50)     ....     sort_index = models.IntegerField()   And I need to display them mixed, like this:  section title: -lesson1 title -lesson2 title -lesson1 title  next section title: -lesson2 title -lesson2 title -lesson1 title   Is there a nice way to do this?


Can I use the 5th edition Druid cantrip  to fly by using the following:   Take a 5 ft cube of water say from a lake or well and cast the cantrip once to freeze it. Stand on top of your cube of frozen water (lasts an hour) Cast it again on the cube and this time use it to move the cube 5 feet up in the air. Repeat as needed to move it wherever you want and ride on top of your newly made flying block of ice.    Spell says up to 2 effects active on your water at a time so would this work?


Responsibility of the batsman to be ready for the bowler

Is there a rule that states that a batsman must be ready for the bowler, or is it just good etiquette? I'm not referring to waiting for a new bat to come in after a wicket has fallen. I'm talking about a bowler having to wait for the batsman mid-over, to get ready to receive the next delivery. In a recent match, the bowler was bowling off a 10 yard run up. For every ball, a particular batsman was waiting 3-4 yards leg side of the wicket. He waited for the bowler to get to his mark and be ready to start the delivery, before he then walked into the crease and took his guard to receive the ball.  This was adding a slight delay to every ball, and (perhaps intentionally) annoying the entire field! On occasion this would be fine, but this batsman did it every single ball. I was always taught that it is the batsman's responsibility to be ready for the bowler (assuming the batsman has reasonable time). In this case, with the bowler having a 10 yard run-up there was always plenty of time for the batsman to get ready. I have scoured the rules but can't find anything that explicitly states one way or the other. All I can find under the dead ball rules is  Law 20.5 Ball ceases to be dead. The ball ceases to be dead – that is, it comes into play – when the bowler starts his/her run-up or, if there is no run-up, starts his/her bowling action.  and under 20.4.2 Either umpire shall call and signal Dead ball when  20.4.2.5 the striker is not ready for the delivery of the ball and, if the ball is delivered, makes no attempt to play it.  Provided the umpire is satisfied that the striker had adequate reason for not being ready, the ball shall not count as one of the over.  This implies that unless the batsman has a good reason not to be ready, he has to be ready to receive the ball. "adequate reasons" is a bit vague - there are many adequate reasons that could fit in here, but if the batsman's batting mannerisms are simply that he likes to wait for the bowler to be ready, then surely that doesn't apply? Was it reasonable for the batsman to oblige the bowler to have to wait for him to be ready every single delivery, or, given there was no adequate reason, could the bowler have legitimately just started bowling? Where in the rules does it govern who has to be ready for who?


How to send id parameter based on which button is clicked?

Demo and full code is like this :   My HTML code is like this :   <button type="button">Click Me</button>

                 <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>

   My Javascript code is like this :   $(document).ready(function(){         $("button").click(function(){              $.ajax({                 //type: 'POST',                 //url: 'script.php',                 success: function(data) {                     var isitable = '';                     isitable += '
<button class="btn btn-primary tes" id="NationCd=ID&CityCd=JKT">Book 1</button>

';                     isitable += '<button class="btn btn-primary test" id="NationCd=ID&CityCd=BAI">Book 2</button>

';                     isitable += '<button class="btn btn-primary test" id="NationCd=ID&CityCd=JOG">Book 3</button>
';                      // console.log(isitable);                     $("#tes").html(isitable);                                    }             });         });          $(".test").click(function(){             console.log('tes');             var id = this.id;             console.log(id);         });     });   When click button "Click me", It will display three button. Look jsfidde.  When click the button (for example, I click button "book 1"), It will send parameter id.  I do console.log(this.id); in $(".test").click(function(){, but it's not working.   Any solution to solve my problem?  Thank you


how do i convert  2345 in to 2.345,00 the right way?  converting 2345 in to 2345.00 is easy as:  var new = parseFloat('2345').toFixed(2);   Have i to work with substrings or are there functions for formating floats in to UK notation?


Equal height matrix brackets in math mode

I'm trying to express a complicated mathematical expression involving the summation of two matrices. One matrix contains a summation with a condition ("a=0 or b=1"), which I'm expressing underneath the Sum symbol using the "substack" approach, as suggested in:   Unfortunately, this causes the matrix bracket top and bottoms to misalign, as shown:    It would look better if this was not the case.  Can this be fixed please?  My MWE is:  \documentclass[10pt,a4paper]{article} \usepackage[latin1]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{graphicx}  \begin{document} Minimum working example:  \begin{equation*} \dfrac{\mathrm{d}y}{\mathrm{d}x} =  \begin{bmatrix} -\sum_{i=1}^{a} A & \cdots & B \\ \vdots  & \ddots  & \vdots  \\ B & \cdots & -\sum_{i=1}^{a} A \end{bmatrix} + \begin{bmatrix} \sum_{\substack{         a,b,c,d \\         a=0~\mathrm{or}~b=1 }}  A_{ijkl} - \sum_{\substack{         a,b,c,d \\ a=0~\mathrm{or}~b=1 }}  B_{ijkl} \\ \vdots\\ \sum_{\substack{         a,b,c,d \\ a=0~\mathrm{or}~b=1 }}  C_{ijkl} - \sum_{\substack{         a,b,c,d \\ a=0~\mathrm{or}~b=1 }}  D_{ijkl} \end{bmatrix} \end{equation*}  \end{document}


A function that can't be invoked more then 3 times -how does it get remembered

The code below is for a function that can only be invoked 3 times, the code is correct. What I don't understand quite well is this part:   var combi = returnIt() + returnIt() + returnIt();   I understand whats happening insight the threet function (and that func is being called up to counter==3) but how does it gets REMEMBERED outside of it? Not sure if I explained clear enough what I mean..  var returnIt = threet(function() {   return 5; });  function threet(func){   var counter = 0;   return function(){     if(counter < 3){         counter++;         return func();          }    } } var combi = returnIt() + returnIt() + returnIt(); combi;


Whether the security verification code in sign-up form is user-friendly?

Am redesigning my sign-up form, some users feel bored with filling security field. Is really the Security verification code is user-friendly?


Why is a polynomial with infinite zeropoints the zeropolymomial?

This was given us as a fact, but why is this true? The zeropolynomial is the polynomial where all the coefficients are equal to $0$ if $R(x)$ is a polynomial over $\mathbb{C}$ and every $x\in \mathbb{N}_0$ is a zeropoint then one can rewrite the polynomial $R(x)=x(x-1)(x-2)…(x-n)…$ but if we put an $x\in \mathbb{C}-\mathbb{N}_0$ in $R(x)$, how does one know that $R(x)=0$?


Difference between "idiom" and "proverb"?

What are the differences between idioms and proverbs?


pdfTeX warning (ext4): destination with the same identifier (nam e{page.1}) has been already used, duplicate ignored

I get the following warning   pdfTeX warning (ext4): destination with the same identifier (name{page.1}) has been already used, duplicate ignored    when compiling the following document:  \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{hyperref}  \title{[Title]} \author{N.N.}  \begin{document}  \begin{titlepage} \maketitle \thispagestyle{empty} \end{titlepage}  \tableofcontents \thispagestyle{empty}  \newpage  \section{[Section]}  \end{document}   I have tried find ways to get rid of this warning by searching in other places and I have read  and the other question in this place .


Problem installing vlc - unmet dependencies

Update : I was able to install it with aptitude, which automatically fixed the version of a bunch of packages. However, some ricotz packages are still making problems in other areas.  I tried to install vlc on a rather fresh installation of ubuntu 16.10 but I'm getting this error :   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:  vlc : Depends: libgles1-mesa (>= 7.8.1) but it is not going to be installed or                 libgles1 E: Unable to correct problems, you have held broken packages.   So I tried   sudo apt-get install libgles1-mesa   Which in turn gives me   The following packages have unmet dependencies:  libgles1-mesa : Depends: libglapi-mesa (= 12.0.3-1ubuntu2) but 12.1~git20161011.fc8b358b-0ubuntu0ricotz is to be installed E: Unable to correct problems, you have held broken packages.   I've tried  sudo apt-get install libglapi-mesa=12.0.3-1ubuntu2   as well, but that basically just tells me that no component is going to be installed.


site resurrected looks like clone therefore no google ranking (i think) used to be page 1

It's late please don't shoot me for lack of research on this one but SEO is a whole field of it's own and I have no idea where to start.  I have a site (fightingfantasy.net) that used to be fightingfantasy.org - I lost the domain name several years ago due to hospitalisation to speculators (last I knew they wanted in excess of £500 for it and I survive on welfare) ) so I rebranded as the .net  I used to rank page 1 on google for the term 'fighting fantasy' (and very well for 'gamebooks' and so on). Now I rank nowhere at all - I mean nowhere. I took the advantage to develop my site somewhat (it is largely a labour of love and generates no money), for a numberof years however the utter lack of search related traffic has become crushingly depressing.  The only explanation I can think of is that Google reckons I am a clone. If anyone at all has any idea what I can do... please help... StackExchange you are my only hope...  (originally posted on StackOverflow in ignorance :-/ )


If we keep differentiating $\sin x$ we eventually arrive back at $\sin x$:  $$ \begin{align} y &= \sin x \\ \frac{dy}{dx} &= \cos x \\ \frac{d^2y}{dx^2} &= -\sin x \\ \frac{d^3y}{dx^3} &= -\cos x \\ \frac{d^4y}{dx^4} &= \sin x \end{align} $$  It has to be differentiated 4 times before it gets back to itself  I was wondering, what function has the longest chain of derivatives before it gets back to itself?


Is the reason why the time evolution operator is unitary based on purely physical arguments, i.e. that the physical processes that an isolated system undergoes shouldn't depend on any particular instant in time (homogeneity of time); thus two experimenters who conduct the same experiment starting from the same initial state, but at different times, should have the same probability amplitude for that state?! Or is there some mathematical argument as well?  Also, is the reason why the time evolution operator is linear implied by the superposition principle (as an arbitrary state can be expressed as a linear combination of basis states the operator should act linearly as otherwise the state as a whole would evolve differently to the superposition of states that it was initially represented by)?!


Understanding the truth value for ⇏ when antecedent is false and consequent is true.

I am currently doing the Intro to Mathematical Thinking course on Coursera. A quiz therein, asks:  For what truth values of Φ and Ψ do we define Φ ⇏ Ψ to be T (true)?  It says the right answer is Φ is true and Ψ is false.  I understand that; but I do not follow why the reverse is not right. That is, why does Φ false and Ψ true does not make the statement Φ ⇏ Ψ to be true.  I am confused because if Ψ is true while Φ is false, the truth of Ψ does not follow from the truth of Φ and so it should be that Φ ⇏ Ψ. Could someone please explain?


Does Troi have a typically Betazoid accent?

Apparently, Star Trek: The Next Generation's counselor Deanna Troi has a . However, her mother, Lwaxana Troi, has a space-American accent.  Why, then does Troi have a space-Israeli accent? Is it something to do with the accent her father has or is there another in-universe reason for it?


Is there an anti derivative to $f(z)=\frac{z}{(z-1)(z-2)}$ in $|z|>4$?

Is there an anti derivative function to the complex function   $$f(z)=\frac{z}{(z-1)(z-2)}$$ in $|z|>4$?   My attempt: We notice that $f(z)=\frac{z}{z-2}+\frac{z}{1-z}$ (by decomposing to partial fractions). But when I try to guess an anti-derivative function it doesn't go well: $$ (\ln(\frac{1}{1-z})'=\frac{1}{1-x} \\(\ln\frac{z}{1-z})'=\frac{1}{x(1-x)} $$


Windows Update has updates for programs I don't have

I just installed Microsoft Visio 2013. This is the only program I have that's part of Office 2013. After I restarted, Windows Update suddenly popped up with 23 new updates, all related to Office 2013, but only two are actually for Visio 2013! Most of them just say "Update for Office 2013", but there are updates Lync, OneNote, and SkyDrive Pro, none of which I own.  Do I really have to install all these updates and if not how do I get rid of them?  Thanks in advance!


Young adult book about a boy(?) who gets sent through a portal to another world which is really the distant future

Trying to remember a book about (I think) a boy who goes through a portal (possibly struck by lightning?).   Ends up in a strange, primitive bush/forest land. Alien but somewhat Earth-like plantation everywhere - I believe the grass was purple. There are very primitive humans (or humanoids?) and the main character was possibly made a slave by a tribe? Thinks is on alien planet. It is revealed they are still on earth when someone has a glass bottle which reads "Coca-cola" on it. There was something to do with quicksand which seemed important to the plot.   Probably read sometime around the late 90s, but could have been written earlier.  Was either a short novel or possibly even a short story.  Would be curious if anyone can remember this.


Git - Save non-committed changes to a different branch

I recently switched to my master branch so I could get the latest updates. While in the 'master' branch I did some work and made changes that I would like to apply to a different feature branch. However, I don't want to commit these changes to the master branch yet. Is there a way with Git that I could apply these changes to a different feature branch without first committing them to the master branch. I also don't want to lose the changes.


How to control enumitem's description list via leftmargin and labelwidth keys

I am trying to learn how to use enumitem's keys to adjust a description list.  In this case, I would like to have my list items and description text both left aligned, but the description text should all start at the same horizontal position.  What I have below comes pretty close, but it seems that the setting of \labelwidth is being ignored, and that there is some other thing I need to add to get the correct value of leftmargin.  The tabular version produces that output I want, but would prefer to use the description list from enumitem.  \documentclass{article} \usepackage{enumitem} \usepackage{calc}  \newcommand*{\LongDescription}{This is a  long sentence to check that when it gets wrapped it is indented properly on the next line, but doesn't seem to when used in the list.}% \newcommand*{\ShortDescription}{A very short description.}%  \begin{document} \newcommand*{\LargestItem}{The Largest Named Item}% \newlength{\MaxWidth}% \settowidth{\MaxWidth}{\LargestItem}% \newlength{\MaxWidthPlusLabelSep}% \setlength{\MaxWidthPlusLabelSep}{\labelsep+\MaxWidth}%  \begin{description} [leftmargin=\MaxWidthPlusLabelSep,labelwidth=\MaxWidth] \item Small Name:     \ShortDescription \item The Largest Named Item: \LongDescription \item Larger Name:     \ShortDescription \end{description}   \hrule\medskip  I want something like this, but should be able to do this with a list:  \bigskip \begin{tabular}{l@{ }p{\linewidth-\MaxWidthPlusLabelSep}} Small Name:     &\ShortDescription\\\\     The Largest Named Item:     &\LongDescription\\\\     Larger Name:     &\ShortDescription \end{tabular} \end{document}   I have tried the solutions on how to  and  but have not been able to adapt them to what I want.


Which is correct: "__ is different from __" or "__ is different than __"?

As someone who learned English later on in life, I was taught that different from is the correct grammar to use: this is different from that. However, it seems these days everyone uses different than instead. I know it's incorrect usage, but does the language evolve if the majority wins?  Edit: Some commented different than is American English and different from is British English, both are OK. IMO, this isn't like color versus colour, though.   Than is used after a comparative adjective, e.g. taller than, whiter than. The word different isn't a comparative adjective, unless used in more different than. Logically, it makes no sense to say different than.


I created a function in Javascript but something should be wrong cause i haven't the awaiting result. The idea is to test several variable. In case they are null i would replace with a blanck space. Here is my code :  function chkNull(myObject) {     if (myObject == null){        myObject = " ";    } }   And below i test with this :  var dOb = null; chkNull(dOb);   I don't know what is wrong. If i test with if dOb == null below the var declaration, it is working.


How to specify where Samsung S5830's camera saves photos to

I have a Samsung S5830 phone which has Android on it.  When I look at:    Task Manager -> Summary   It appears that my, small, sim card is being filled up with data whilst, my larger, External SD card is relatively empty.  I'd prefer the camera to save images to my SD card. Not the sim.   But, I have no idea how to tell it to do so.  Any suggestions?


I asked related to this question in the past.    Now I wanted to know how to make this picture in the blender.


I have seen a couple posts here on email notifications (such as this one ), but none seems to answer my question. Is it possible to receive instantaneous email notification, as soon as the activity occurs, not 3 hours later (I'm not afraid of large numbers of emails). Also, I'd like to receive the email even when I'm logged in. Are these options possible?


Why is there a 0R resistor linking GND and AGND in analog voltage reference circuit?

This is related to another question I've just posted (), regarding the battery charger described in the , which one day I hope to build.  On page 40, there's a schematic showing the MCU connections (picture below). Marked in red is a 0Ω resistor that is puzzling me. I suspect that it is just a wire jumper linking AGND and GND. But I don't understand why there's a jumper there.     My questions:    What does the jumper represent? Why are AGND and GND separated like that?


I'm trying to install cuda toolkit 9.1.  Descending into the dependencies one of them is nvidia-418.  Upon running   sudo apt-get install nvidia-418   I receive the following error.  The following NEW packages will be installed: nvidia-418 0 upgraded, 1 newly installed, 0 to remove and 12 not upgraded. 10 not fully installed or removed. Need to get 0 B/104 MB of archives. After this operation, 437 MB of additional disk space will be used. (Reading database ... 279654 files and directories currently installed.) Preparing to unpack .../nvidia-418_418.40.04-0ubuntu1_amd64.deb ... Unpacking nvidia-418 (418.40.04-0ubuntu1) ... dpkg: error processing archive /var/cache/apt/archives/nvidia-418_418.40.04-0ubuntu1_amd64.deb (--unpack): trying to overwrite '/usr/lib/x86_64-linux-gnu/libGLX_indirect.so.0', which is also in package libglx-mesa0:amd64 18.2.8-0ubuntu0~18.04.2 Errors were encountered while processing:  /var/cache/apt/archives/nvidia-418_418.40.04-0ubuntu1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)   Should I uninstall libGLX_indirect?


I want to search a CSV-File with python2 on the Raspberrry Pi. If the file is not found the program should generate it. How I can search a file and can decide with an if-statment if there is CSV-file or not?


convert date in string format to date datatype sql

I have values in a column named Date as a nvarachar data type in the form of mmddyy and want to convert the values to a date datatype in the form of yyyy-mm-dd. What sql colde can I use to convert the value? example 02121955 -> 1955-02-12


Convergence of the series $\sum\limits_{n=2}^{\infty} \frac{ (-1)^n} { \ln(n) +\cos(n)}$


What are the limitations of ANOVA vis a vis multiple regression analysis

It seems that multiple regression is a better way to do analysis. For example,the ANOVA simply gives t-value (or F-value for two or more variables) and does not indicate magnitude of effect. Contrary-wise, the regression analysis indicates both the t-value(s) as well as magnitude of regression coefficients. Does that mean we should discard ANOVA completely.


This may seem like a trivial question, and I'm having a little trouble fleshing out my issues with the answers Ive seen so be prepared for some discussion on your answer. But why does centripetal force not change the speed?  I keep coming to this crux. If you have an initial velocity $v$ and then have a force $f$ at right angles to it. Would the new velocity not be greater than $v$ by pythagoras? How can it remain constant?


Can you miss an attack on purpose, and have it count as having made an attack?

For example, if one wanted to trigger the benefit of the Mobile feat, wherein you can move away from a creature you made an attack against without provoking an opportunity attack, can you choose to miss the attack on purpose?  The mechanical benefit of this over taking the Disengage action would be that you can use the rest of your attacks from the Extra Attack feature, or still use TWF's bonus action, or potentially save an "on next hit" ability or effect for a different non-adjacent creature on the same turn without taking an attack of opportunity from, or damaging, the currently adjacent creature.


A general purpose way to rename all the files in a directory

I've been making simple bash functions for this with find -exec or parsing ls or using bash globbing etc each time I had a big problem and I had to go to a new method one time it was argument list too long another time files that already had a name like 2 was overwritten when another file was being renamed to 2.  One time it was a problem with unicode, one time with space in the file name, one time with * or & in the filename and so on. So I thought I'd come here and ask you people for the most efficient and robust general purpose way to rename all the files in a directory to have sequential names no matter what!. No matter how long the names of the files are and no matter what their original name is or what extension they have and no matter if they have non-ASCII characters in them.  So my requirements are:   That it works with long filenames. That it works with unicode characters. That it works if the files have space or special characters in them. That it does not overwrite any file on another. That it is as fast as possible:D


I am revisiting Euler's criterion, so I bumped into the following statement which I don't know how to prove. Let $p$ be some prime number and $a \in \mathbb{Z}$. How to prove that for every $x \in \{1, 2, ..., p - 1\}$ there exist exactly one $y \in \{1, 2,  ..., p - 1\}$  such that $xy \equiv a \pmod p$? (Of course, "exatcly one" in terms of modulo $p$.) How to generalise this when $p$ is not a prime number?


remove duplicate from list and create non-duplicate id set

I am trying to remove duplicate and creating a set and list with non duplicate values related to field ord__c . Trying to minimize the code as far as possible. Let me know if I can handle the same using the below piece of code I am using :   Set < Id > OrId = new Set < Id > ();  Integer j = 0;         while (j < ListR.size())         {           OrId.add(ListR.get(j).Ord__c);           if(OrId.contains(ListR.get(j).Ord__c))           {             ListR.remove(j);           }           else           {             j++;           }         }


How to remove conference information from the ACM 2017 SIGCONF template?

I have downloaded the new ACM template for conference proceedings (sigconf format). Even when I comment out the lines that are related to conference information, price, DOI, etc. I get the following lines on the first page:  Conference’17, Washington, DC, USA 2016. 978-x-xxxx-xxxx-x/YY/MM. . . $15.00 DOI: 10.1145/nnnnnnn.nnnnnnn   I have uncommented the line  \setcopyright{none}   so the copyright notice is gone, but the above information is still there (from acmart.cls)  Additionally, I get the paper's name on odd pages and conference information at the top of every page. How should I remove these lines?


remove all duplicates from a text file without sort

simply put, I have a file with lines of text that are unknown to me, something like  abaa dddd bbbb cccc abaa aaaa abaa   the result I'd like to get is  dddd bbbb cccc aaaa   where all the duplicates are completely removed. if one line of text is duplicated anywhere else, remove this line and any repetitions that follow. is this possible to do? all of my searches show output with duplicates removed, leaving one instance, which I would like removed.