Should I use a subdomain or a subdirectory for SEO?

I have setup a system that will allow me to generate sub websites. These will be completely independent websites that will share a single users database and will all fall under video games. The parent site is a gaming site and the sub websites will be for specific gsmes.   I need to decide whether I should go with a system like calloftuty.example.com or example.com/callofduty.   I want to be able to make potentially 1000s of these so I want to get it right from the start. Subdomains seem the best to me since session data isn't shared and that's what I want as all sub websites use the same code base but have a different dB.   The reason I ask is because I have seen a lot of guides that say subdomains are bad and others say its good. I saw a post that mentioned Google could penalise you if you use subdomains to cheat in keywords. E.g. how-to-do-something.example.com.   Will I be OK from an SEO and website point of view to create many subdomains dedicated to specific games or game series rather than going with sub directories?  I can go with either system if one is better than the other.


What is the point of stars at the end of races?

In the top left corner of the post-race menu, there is a prompt to press + to add (or remove) one star out of six. What do these stars do?


In my opinion identical in what they say. Is this correct or is there a subtle difference?Very rarely do I see the second form but it has to have the same meaning. What about "It is" constructions? "It is fun to play." can be said although with focus on the "it" but I am not sure if you can do this with gerunds, "It is fun playing." Id say no. But I think I heard something like "It was fun meeting you." Is there a stop in this "It was fun.Meeting you." When talking?


Reading txt file in bash line by line, without knowing its name

I need to read a file given to me in a script i made, the file can be any name, the input is as follows     ./Naloga1.sh tocke < somefile.txt   This is the code i have:   while read line do   echo $line done <    The problem is, firstly if i put the script name at the done, it will read all the lines in my file - the last one. And secondly how can i acess the files name to then output it? If i echo $1 $2 $3, $1 comes as tocke and $2 and $3 dont exist


Converting a year from 4 digit to 2 digit and back again in C#

My credit card processor requires I send a two-digit year from the credit card expiration date. Here is how I am currently processing:   I put a DropDownList of the 4-digit year on the page. I validate the expiration date in a DateTime field to be sure that the expiration date being passed to the CC processor isn't expired. I send a two-digit year to the CC processor (as required). I do this via a substring of the value from the year DDL.   Is there a method out there to convert a four-digit year to a two-digit year. I am not seeing anything on the DateTime object. Or should I just keep processing it as I am?


Could I change part of my paper after acceptance

My paper is accepted in one of the Taylor and Francis journals and Today I figured out that I made a mistake in one row of one of my tables ( the minimum of one of variables in statistic analysis table is 0 in the paper but the actual value is 1). In fact, it does not affect the other parts of paper and the verification part.   Editor will provide the proofread of my paper in a week.  My question is, Will the editor give me a chance to edit the paper again? or he will change the grammatical problems his self?  And if I ask the editor to correct that row of paper, will he give the paper to reviewers again? I am worried that if I ask him to correct that mistake, he ask the reviewers to review my paper again. I need my paper to be published soon.


Seasonal Principal payments on a term loan

I need a way to calculate the loan amortization on a 7 year term loan that only has 8 principal and interest payments per year and 4 interest only payments.


How to handle contacts email addresses that change midfligh in a Journey?

We have a journey which lasts 6 months, we have noticed some customers during that time update their email addresses. When this happens they continue to receive comms to their old email address. How can we resolve this?


I have tried to solve this by taking the natural log of both sides and got $x\ln(x)=\ln(x)$ and after I subtracted $\ln(x)$ from both sides I got $x\ln(x)-\ln(x)=0$ which using the distributive property becomes $(x-1)\ln(x)=0$ so either $x-1=0$ or $\ln(x)=0$ and in both cases $x=1.$ what I am confused about is that $(-1)^{-1}=(-1)$ and when I solved the equation I did not get this answer. Can somebody please tell me where I messed up and how to properly solve this equation?


How do you attract the rarest religion resource? (spoilers!)

I'm trying for a total completionist run, slightly editor-assisted (I keep a separate "testing" save from my main, legit save).  Long story short, I have more than seventy Sky Palaces, but I still haven't gotten a single      alicorn.   What am I missing?  How do I get this rare resource so that I can finish out my technology tree?


Disable Lock Screen (Since Anniversary Update)

When I installed Windows 10, I created edited the HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Personalization registry key by adding a NoLockScreen DWORD value and set it to 1. This had the effect of disabling the sliding panel on the lock screen, so that when my computer booted up or I locked my session, I would be presented with the password entry screen immediately (without having to press a key to slide the panel out of the way).  Unfortunately, the recent Anniversary Update seems to have undone this. I've tried deleting the value and re-adding it, but the lock screen is still present.  Is there some other way to remove the sliding-panel over the lock screen in Windows 10 which works for versions after the Anniversary Update?  I don't seem to have the local group policy editor in my version of Windows 10 Professional (possibly because I have the 32-bit operating system?).


Are omniscience and omnipotence mutually inconsistent?

I see this in The God Delusion by Richard Dawkins:       If God is omniscient, he must already know how he is going to intervene to change the course of history using his omnipotence. But   that means he can't change his mind about his intervention, which   means he is not omnipotent.   Is this argument sound?


How can we define ageing from a biological standpoint without making an appeal to chronological age?  Related, but less important, are there any metrics we can use to determine someone's biological age other than their chronological age? Telomere length is an obvious candidate, but .


I am trying to make a document containing a box with text that i want to appear a certain exact size when i print it. (Specifically I want to make a nametag that fits exactly inside a slot on my mailbox.) Here's a MWE:  \documentclass[a4paper]{article}  \begin{document} \fbox{ \begin{minipage}[c][3cm][c]{7.5cm}     words \end{minipage} } \end{document}   The problem is that when i measure the lengths in the PDF (in Preview on macOS and printed on paper), the box is not 7.5 cm by 3 cm but rather (approximately) 7.9 cm by 3.2 cm. The paper size looks fine in Preview (approx. 21 cm  by 29.7 cm).  Is this an issue with the method I used to create the box, e.g. the \fbox doesn't fit exactly around the minipage? Or is it something else? Is there a better way to do this? I'm lost.


I'm now a second year math student at a top uni, and in the summer of my first year, I was a part of a small research team where we proved various new results related to Random Matrix Theory and wrote 2 papers on them. Now those papers are up on arXiv, but it hasn't been accepted to a peer-reviewed journal yet. My question is that when I'm applying for summer research programs etc should I list these as "preprints" on my CV even if they haven't been accepted to a journal yet?


After trying view Bitmap image in Android studio 3.2 app crashes

I'm trying to develop an android app android studio 3.2. When app crashes imageView.setImageBitmap(bitmap);  stopped the app. This  is my code to get an image in drawable         public class MainActivity extends AppCompatActivity {         Button button;         ImageView imageView;         TextView textView;      @Override     protected void onCreate(Bundle savedInstanceState) {         this.imageView=(ImageView)findViewById(R.id.image_view);         textView=(TextView)findViewById(R.id.text_view);         button=(Button)findViewById(R.id.button_click);          try {             this.imageView.setImageResource(R.drawable.helloworld);          }catch (Exception e){             Log.d("error_msg", ""+e);             System.out.println(">>>>>>>>>>>>>>>>>"+e);          } //         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main);     } }   and also i used this      implementation 'com.google.android.gms:play-services-vision:16.2.0'   How to solve this issue?  D/error_msg: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ImageView.setImageResource(int)' on a null object reference   This is the error i got when Catch the error


Word for "the state of having eaten spicy food"

How do I say that my mouth is feeling very hot from the spicy food that I ate?  What word should I say?


Why does magic take the form of weapons?

In Mahouka Koukou it seems apparent that magic seems to take the form of Guns or Snipers for some reason.  Does magic actually have a form or is this yet to come further on in the series since so far the latest episode which was number 3 only came out a couple days ago.  Also how was it that they turned/synthesised magic into an actual form of technology?


I have a door that was installed and the contractor put in some spacer wood. I didn't paint them and these were exposed to some rain (I'm in Los Angeles where it rains a few days a year)  Here's a picture of the wood up close. Are those black spots mold? I tried to rub them off and they wouldn't come off. Do I need to treat it or can I just paint over that?


Nice hole in the system... You can pretty much say anything in a revision comment and it cannot be removed or cleaned up by a mod.  See  for an example.  Mods need the ability to at least remove the comment, if not the ability to edit the text of it.


Unexpected voltage with switch turned off

I am doing some work on a ceiling light and I notice that, even though the light-switch is off, my voltage tester shows voltage present.  Answers to other questions (below) explain about phantom voltages but how exactly do I test for these and know what voltages are real and what are phantom so that I can work safely?    Phantom voltage questions


I want to change the style of each element inside enumerate. It should be:  Ad (1) Ad (2)   I have tried to do it by:  \begin{enumerate}[Ad. (1)]   \item    \item \end{enumerate}   But a result is not what I expected. I would like to change it only locally inside specific enumerate block. And I don't want to use any extra package.


Insert Duplicate Leads via Salesforce API

While creating leads in salesforce through the Lead API (/services/data/v39.0/sobjects/Lead), I am getting BadRequest response with the message: [{"message":"Use one of these records?","errorCode":"DUPLICATES_DETECTED","fields":[]}] The Allow duplicate leads is checked in the portal settings. When I try to create the same lead from the Portal, it shows me the warning and allows me to submit the lead which i understand is the expected behavior. My question is: How do i submit the duplicate leads using the API? Is there a way i can specify to forcibly create the leads like i do from the UI?


Auto populate field with appropriate data

Need your support on this.  We have a sharepoint list having number of fields. I am requesting a solution here.  We have two fields.  Field-1 : Department (Sales) Field-2 :system Configuration: (i5,500 GB HDD, 8 GB RAM - for sales)                              : (i5, 256 GB SSD, 8 GB RAM - for operations)  Resoulation required: If i select department "sales", It should take automatically system configuration field with "i5,500 GB HDD, 8 GB RAM". Like wise if department is selected "Operation" it should take system configuration field with "i5, 256 GB SSD, 8 GB RAM". Would be great help if system configuration field will be readonly.


Why is no heat produced when dielectric inserted slowly in charged capacitor

When a dielectric is inserted slowly in a charged capacitor (connected to battery), then it has been told to me that no heat is evolved which appears unreasonable to me. I think it in this way that when dielectric is inserted slowly then in an interval of time it just gets "sucked up" for a very small distance as compared to when moving fast, so the extra charge by the battery will be supplied in a very short range compared to when fast moving, but the speed of the charge must have been same and finally, all will come to rest establishing an equal charge concentration on the plates in both the cases. So things might take a little longer when inserted slowly but the amount of heat released should be same. Where am i going wrong. Thanks


QA vs QAs (a group of people that perform quality assurance)

Which one is correct when referring to a group of people that perform quality assurance? I can see that both are used in the Internet: QA:  QA are the gatekeepers, but everyone in the agile team should have the same responsibility for the quality of the product. DevOps and QA are often working side by side. If there are no unit tests, QA are left to test as much of the affected code as they can.  QAs:  It's important to note that QAs are interested in making any product user-friendly. QAs are responsible for improving the quality of the development process. The objectives of the QAs are to promote quality assurance at an organisational level.


I spotted a pyramid scheme, what should I do?

I have read about pyramid schemes a lot before, and I identify when I see or hear about them, today my friend told me about a similar thing, and I give a %95 percent chance that what my friend has been told is a pyramid scheme, I told him and taught him about pyramid schemes and how they work and warned him about them for sure, but the question is, is there a thing that I can do about this? What should someone do when spotting a pyramid scheme? Because my friend somehow knows some people that are connected to the original founders of this local scheme in my town.


How to create a list file of some files?

i have a bunch of files from log1 to log164,  how can i create a file like below ordering... please help me...   log1.gz log10.gz log100.gz log101.gz log102.gz log103.gz log104.gz log105.gz log106.gz ...etc


My problem is that I don't know how to draw the circular-like shaped mesh currents in circuits. The following messy currents were generated with MS Paint. Any help would be much appreciated.  \documentclass[border=0.4cm]{standalone} \usepackage{amsmath}% http://ctan.org/pkg/amsmath \usepackage{circuitikz} \begin{document}  \begin{circuitikz}[american voltages,cute inductors] \draw    (0,3) to [V,l_=$\frac{1}{s}$](0,0)   (4,3)   node[label={above:$\text{V}_{x}$}] {}     to [R,*-*, l^=$1$] (4,0)   node[label={below:Ref}] {}   (8,3) to [V,l=$\frac{1}{s}$] (8,0)   (0,0)--(8,0)   (0,3) to [C,  l^=$\frac{2}{s}$] (4,3)   to [L, l^=$4s$] (8,3) ;\end{circuitikz} \end{document}


Will This Be A Problem With My UK Tier 5 Youth Mobility Visa?

So I'm currently working on applying for my UK Tier 5 Youth Moblility Visa. I am a 21 year old from Canada.  I am worried that a past experience in the UK will be a problem, let me explain.  A few months ago I was backpacking across Europe and spent a lot of time in the UK as I lived with some friends there. I was only there under the ordinary 6 month tourist visa. I stayed for around three months and then went back to Canada. Then around three weeks later went back to pass through Gatwick Airport to Stansted Airport to catch a flight to Norway. The woman was a bit suspicious that I was back so soon but I explained I had a flight to Oslo in two days.  Then around a month and a half later, I came back to the UK for the birthday of my friend and her son. Their birthdays are close together. Frankly, when I got there UK immigration was very suspicious because I was back for a third time and soon. Also, as I backpack and hitchhike a lot, couchsurf and do all I can to save money, I have little funds and they were suspicious about that as well.  They detained me, took my fingerprints and interviewed me under recording.  After a few hours, they phoned my friend and then decided I was ok to be let into the UK. They then let me into the UK but put a special stamp in my passport. From what I understand, the stamp signifies that I need to be asked additional questions.  I stayed for around two months as we all made plans to go to Portugal together which I didn't expect. Then we did and later I went to Ireland by myself.  During my time in the UK, my friend paid for my food and let me stay at her place. I got funds from my parents but not through my own bank account. (should I mention this on my application?)  So I was not refused entry, so I've already decided that I don't need to say that I've ever been refused entry into the UK on my application.  But they will be taking my fingerprints when I send the application to the visa center in my city. So I will probably show up on their records. I don't want them to look at me in any bad way whatsoever. I loved the UK and I very much want to live there for two years. Will this hurt my chances?  Should I mention this incident on my application so it doesn't seem like I'm trying to hide it?  I'm thinking if I don't mention it, when they're processing my application and do research they might see me show up on the system and automatically deny me because they're assuming I'm not trustworthy.  Also, will my history in the UK as a tourist and not spending money be suspicious? How can I counteract this? I will have enough money in my bank account to apply but during my time in the UK this bank account was mostly empty as I got help from my parents. I spent very very little money anyways. Around 100 pounds per month.  I could really use support on this. Thank you.


Can psyllium husk be used as gelatin for jello?

I need to make jello. Would psyllium husk work as a jello replacement?


How to run custom scripts upon USB device plug-in?

What is the state-of-the-art method for automatically executing custom scripts upon USB device plug-in under current Linux distributions like Debian/CentOS/Fedora?  For example if you want to automatically mount/copy some files/umount a USB mass storage device based on its UUID (or device ID etc.).


Decide whether $\sum_{n=1}^{\infty}(-1)^n\frac{nx}{1+n^4x^2}$ uniformly converges on $[0,\infty)$ or not

$\newcommand{\FUNC}[1]{#1 \frac{nx}{1+n^4x^2}}$  The following problem has bothered me for a very long time. I've been trying to solve this problem for 3 days long - and it feels I tried everything. To conclude - I absolutely need the help of the professionals; And that's why I came here.  I am given with the following function series:  $$S(x)\equiv\sum_{n=1}^{\infty}(-1)^nf_n(x)\equiv\sum_{n=1}^{\infty}\FUNC{(-1)^n}$$  My task is to decide whether the series $S(x)$ uniformly converges on $[0,\infty)$, or not.  Things I tried:  (1) I tried to use Leibniz's Alternating Series Test. I proved that $f_n(x)$ uniformly converges to $0$, but the problem is that $f_n(x)$ is not a decreasing sequence - for every $n\in\mathbb{N}$, there exists $0<x_0\in\mathbb{R}$, such that $f_n(x)$ is increasing on $[0,x_0]$, and decreasing on $[x_0,\infty)$. I've noticed that $\lim_{n\to\infty}x_0=0$, but that doesn't help - since it would never actually reach $0$ (that would only help to prove that the series uniformly converges on $[c,\infty)$ when $c>0$).  (2) I tried to use Weierstrass's M Test. I found that $f_n(x)\leq\frac{1}{2n}$ for every $n\in\mathbb{N}$, but that of course won't help (since $\sum_{n=1}^{\infty}\frac{1}{2n}$ diverges). The huge problem using the M test is that $\frac{1}{2n}$ is actually a tight bound.  (3) I proved that $\displaystyle \sum_{n=1}^{\infty}\FUNC{}$ uniformly converges on $[c,\infty)$ when $c>0$, but does not uniformly converges on $[0,\infty)$. That wasn't very helpful, since $S(x)$ might converges conditionally.  (4) Defining:  $$S_m(x)\equiv\sum_{n=1}^{m}\FUNC{(-1)^n}$$  It is sufficient to show that:  $$(*) \lim_{m\to\infty}\left(\sup_{[0,\infty)}\left|S_m(x)-S(x)\right|\right)\equiv\lim_{m\to\infty}\left(\sup_{[0,\infty)}\left|\sum_{n=m+1}^{\infty}\FUNC{(-1)^n}\right|\right)=0$$  in order to prove the series uniformly converges on $[0,\infty).$ Looks impossible and complicated - yet I was eager to try that too. But to no avail.  I will say that my intuition is that the series does uniformly converge on $[0,\infty)$, and that is because I used graphic calculators, and found that for every $n\in\mathbb{N}$:  $$\sup_{[0,\infty)}\left|\sum_{n=m+1}^{\infty}\FUNC{(-1)^n}\right|\leq\sum_{n=m+1}^{\infty}\frac{1}{n^2}$$  And since $\displaystyle \sum_{n=m+1}^{\infty}\frac{1}{n^2}$ converges, we can say that its limit when $m\to\infty$ is $0$, thus proving $(*)$. However - I couldn't prove this inequality. I tried using the triangle inequality, to distinguish between odd and even indices - nothing worked.  As you might see - I really need help. Thank you very much!


How to Fix Jsoup nullpointerexception in android studio 2019

I am creating an app in which i want to scrape google data with the help of jsoup and show it to text view in android studio.  But after doing some coding with the help of jsoup i am getting following error:  E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #1 Process: com.example.yasht.cricketapp, PID: 11929 java.lang.RuntimeException: An error occurred while executing doInBackground()     at android.os.AsyncTask$3.done(AsyncTask.java:325)     at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)     at java.util.concurrent.FutureTask.setException(FutureTask.java:223)     at java.util.concurrent.FutureTask.run(FutureTask.java:242)     at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243)     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)     at java.lang.Thread.run(Thread.java:761)  Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String org.jsoup.nodes.Element.text()' on a null object reference     at com.example.yasht.cricketapp.Bottomnav.score_scrape.doInBackground(score_scrape.java:30)     at com.example.yasht.cricketapp.Bottomnav.score_scrape.doInBackground(score_scrape.java:13)     at android.os.AsyncTask$2.call(AsyncTask.java:305)     at java.util.concurrent.FutureTask.run(FutureTask.java:237)     at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243)      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)      at java.lang.Thread.run(Thread.java:761)    this is my jsoup code with async task :      public class score_scrape extends AsyncTask<Void,Void,Void> {   String words;  TextView score;  public score_scrape( TextView score){     this.score =score;  }       @Override     protected Void doInBackground(Void... voids) {          try {             Document doc = Jsoup.connect("https://www.google.com/search?q=india+vs+australia+3rd+odi+live+score").get();             Element element = doc.select("div[imspo_mh_cricket__score-major]").first();             words = element.text();          } catch (IOException e) {             e.printStackTrace();         }           return null;     }      @Override     protected void onPostExecute(Void aVoid) {         super.onPostExecute(aVoid);         score.setText(words);     } }   I am using async task method which is declared i my main activity.  Comment for any further information.


How do I stop the NetworkManager in Ubuntu 13.10?

I tried as root  service network-manager stop   and   /etc/init.d/network-manager stop   But that doesen't exist.  And:   killall NetworkManager   but it seems to restart immediately.  How do I stop it???    EDIT: I filed a new Question that describes more, what my problem is:


Inconsistent flairs of different themes?

Please see the following image, where you can find the inconsistency of SO reputation score among different flair themes (one with 7165, while all other three 7265).   I always thought that these four themes are based on the same data until now. Is this a bug? Are different flair themes really updated individually?    P.S.: The inconsistency only shows on my mobile, no problem from my desktop.


One time Script in batches - Developer Console

I wrote a script to update a field value on several thousand records based on certain criteria. I will only be doing this one time, and that's the  reason for not putting the logic in an Apex Class.   I tried running the script in Developer Console and ran into the classic 'Too many query records 50001' error.  I can put the logic in Batch Class, but that would mean writing a test class, and deploying the two classes to production. And after my records are updated , i will not be using this Batch Class again.   My question is -  How can i run the script to update records in Batches to avoid the 50001 error? Is limiting the SOQL to 5000 and running the script manually many time is my only option?


P-value hypthesis test(my bad - found same question in math stack)

textbook exercise  How can I calculate P-value at a test of $$H_0: u=3.2$$ against $$H_1: u \neq 3.2$$ if  we have the observations $2.0$, $3.2$, $3.8$, $2.5$, $3.3$, $2.8$, $3.0$ and $3.4$ which is a sample from $N(u,o^2$), there $u$ and $o^2$ are espected value respectively variance.  I have calculated the confidence interval to $$I_u=(2.58,3.42)$$ rejection region to $$C=(|T|\geq1.96)$$ where $$T=\frac{u^*-u_0}{\frac{o}{n^{1/2}}}$$ $u^*$=$m$=mean value of the observations.  EDIT:


What does it mean to have a $"dollarsign-prefixed string" in a script?

I just saw this in an init script: echo $"Stopping Apache"  What is that dollar-sign for? My research so far: I found this in the bash manual:  extquote  If set, $'string' and $"string" quoting is performed within ${parameter} expansions enclosed in double quotes.  This option is enabled by default.   ...but I'm not finding any difference between strings with and without the $ prefix: $ echo "I am in $PWD" I am in /var/shared/home/southworth/qed $ echo $"I am in $PWD" I am in /var/shared/home/southworth/qed $ echo $"I am in ${PWD}" I am in /var/shared/home/southworth/qed $ echo "I am in ${PWD}" I am in /var/shared/home/southworth/qed $ echo 'I am in ${PWD}' I am in ${PWD} $ echo $'I am in ${PWD}' I am in ${PWD} $ echo $'I am in $PWD' I am in $PWD


Search for text files where two different words exist (any order, any line)

I'm looking for a way to search files where two word instances exist in the same file.  I've been using the following to perform my searches up to this point:  find . -exec grep -l "FIND ME" {} \;   The problem I'm running into is that if there isn't exactly one space that between "FIND" and "ME", the search result does not yield the file.  How do I adapt the former search string where both words "FIND" and "ME exist in a file as opposed to "FIND ME"?  I'm using AIX.


Let $V$ be a $n$-dimensional vector space. Let's also say that we have two linear operators: $A,B\in L(V)$ and $AB=0$. Then how do I prove that the sum of the ranks of operators is smaller than $n$, i.e. $r(A)+r(B)\leq n$?   The trivial case that popped into my mind is that $A=0$ or $B=0$, so the equality holds then, but I wonder what to do in the general case, when both $A\neq0$ and $B\neq0$. Is it even possible to have both of them differ from the null-operator and their composition be a null-operator itself? Thank you.


sequence contains no elements Error Max()

I am Getting:     sequence contains no elements   private int? GetPrecedingSibling(int? contentid,int? templateid) {     var value = _sequenceTemplateItemService.Query(e => e.templateId == templateid && e.contentItemId == contentid).Select(t => t.id).Max();     if (value != 0)         return value;      return null; }


I am in Pakistan and  is blocked here. I want to take the Lecture videos from YouTube. In Windows, I was using  to bypass the proxy.   But now, using Ubuntu, I don't know how to bypass the proxy. I found some where that i can bypass the proxy by using putty software. Can you guide me how can I bypass proxy by that? I tried, but I was not able to do so. Kindly tell me some easy method to bypass proxy. I don't want to used websites like accesstoblockedsites.com.


Valid Indian visa in an expired passport

I recently had to renew my passport.  The expired one has an Indian visa that will be valid until 2016.  Is it necessary for me to get the visa transferred to the renewed passport, or can I get through customs in India (likely Mumbai) if I have both the expired and the renewed passports with me?


Getting value from mysql array with same column names

SELECT *      FROM companies      LEFT JOIN (ownership_reseller_to_company, users)      ON (users.ID=ownership_reseller_to_company.RESELLER_ID AND ownership_reseller_to_company.COMPANY_ID=companies.ID)      WHERE companies.NAME LIKE '%".$search_parm."%' AND users.ID='".$_USERID."'   My issue is I have NAME under companies and NAME under users but when I use $row['NAME']; I get the NAME under users. Is there a way to get the one under companies? I have tried $row['companies.NAME'] but with no success.


The work done in thermodynamic process is given by the integral of Pdv and also we can write so assuming a quasi static process between two points. But this work is then non dissipative work or work done by conservative force field , then how can it be path dependent ?


How to define shortcut-keys for executing certain applications?

How can I define shortcut-keys for executing certain applications? Like opening Terminal when pressing Ctrl+t or opening gedit when pressing Ctrl+g.


Setting selection color transparent and border color red using PyQGIS

I have a layer with different informations. I want to change the selected polygon color to "Transparent". I am able to achieve that using: iface.mapCanvas().setSelectionColor(QColor("Transparent"))  But I want a different border color such as red or any other color. For an example in ArcMap, there is an option to set the border color, border width and many more. How can I achieve that using Python script in QGIS?


For each $x,y∈\mathbb N$, if $x≤y$ and $y≤x$, then $x=y$

Proof: For each $x,y∈\mathbb{N}$, if $x≤y$ and $y≤x$, then $x=y$  By definition of order, $x≤y$ if and only if $x<y$ or $x=y$  By definition of order, $x<y$ if there exist a $K∈\mathbb{N}$ such that $y=x+K$  and similarly the same for $y≤x$ is $y<x$ or $y=x$  $y<x$ is $x=y+M$ for some $M∈\mathbb{N}$.  now from here I'm having trouble seeing exactly where I need to go to actually prove $x=y$  I would assume I could do this inductively but I'm having trouble setting it up.


Correct Bash and shell script variable capitalization

I run across many shell scripts with variables in all caps, and I've always thought that there is a severe misunderstanding with that.  My understanding is that, by convention (and perhaps by necessity long ago), environment variables are in all-caps.  But in modern scripting environments like Bash, I have always preferred the convention of lower-case names for temporary variables, and upper-case ones only for exported (i.e. environment) variables.  For example:  #!/usr/bin/env bash year=`date +%Y` echo "It is $year." export JAVA_HOME="$HOME/java"   That has always been my take on things.  Are there any authoritative sources which either agree or disagree with this approach, or is it purely a matter of style?


How to use one variable's name to refer to another variable?

a=2 pt2=3 echo $a 2 echo $pt2 3   How can I use  echo $pt($a)   to print the contents of pt2?  An alternative is  b=pt$a echo $b pt2 echo $[$b] 3


Is it possible to include a shared calender from Exchange in the calendar app on Mac OS X?

I've Mac OS X 10.9.5 installed. On this machine you can find the calendar app. In Outlook it is possible to add a shared calendar from exchange. Here I don't need a username/password. I can easily add this calendar.  Can I add such a shared exchange calendar to the calendar app?


Intuition for $\,c\mid a,b \iff c\mid \gcd(a,b)$

Context: I was looking at . I didn't know the result referred to in Brian M. Scott's answer is hard enough to require a separate proof   ― .  ― .  (1)  ― What's the intuition? Is Bezout Identity supposed to be intuitive?  (2) — Why doesn't this try work? Let $c$ be any common divisor of $a, b$. Therefore $c\mid a, c\mid b \iff cj_1 = a, cj_2 = b$ for some integers $j_1, j_2$.     Call $g = \gcd$. By definition $\gcd(a,b)\mid a$ and $\gcd(a,b)\mid b$ and $c \le \gcd(a,b)$. Therefore $g\mid a, g\mid b \iff gk_1 = a, gk_2 = b$ for some integers $k_1, k_2$.   The two paragraphs together precipitate $cj_1 = a = gk_1,  cj_2 = b = gk_2$ but this only proves $c\mid gk_1, c\mid gk_2$?    Origin - Elementary Number Theory, Jones,  p9, Exercise 1.8


Find three distinct triples (a, b, c) consisting of rational numbers that satisfy $a^2+b^2+c^2 =1$ and $a+b+c= \pm 1$.  By distinct it means that $(1, 0, 0)$ is a solution, but $(0, \pm 1, 0)$ counts as the same solution.  I can only seem to find two; namely $(1, 0, 0)$ and $( \frac{-1}{3}, \frac{2}{3}, \frac{2}{3})$. Is there a method to finding a third or is it still just trial and error?


How to solve this nonlinear difference equation $a_{n+1} = 2a_n + \frac{1}{a_n}$, $a_1 = 1$?

How to solve this nonlinear difference equation $$a_{n+1} = 2a_n + \frac{1}{a_n},\quad a_1 = 1.$$


As I have many pictures in which I have taken from my mobile phone whose picture quality comes good but not good as DSLRs or any HD quality camera.  To look my photo or the main object in picture look HD or attractive towards others and not feel them bad by the looking at the poor quality of photo.  So can any one help me out to solve my problem?


How do I know whether my bike can use disk brakes?

I have a Gary Fisher bike (wahoo I believe). I think it's considered the entry level Fisher mountain bike.  Could I put on disc brakes as opposed to using the standard  brakes on this bike?  Standard brakes are the rim brakes.   Thanks Carlos


Disable migration for questions older than 60 days

This has come up    : migrating old questions causes problems.   The most popular solution to this to date has been to . This is do-able, but frankly it feels like treating a symptom, and doing so in a way that penalizes folks who answer what are by all appearances valid, on-topic questions.   Migration works best as a way to salvage good but off-topic questions and give them new life on a site where they can thrive. But shuffling old, answered, on-topic questions around for the hell of it is a waste of everyone's time.   Therefore, I think the real solution is much simpler: just disable the migration of old questions. They're rarely welcomed or heavily improved post-migration, often overtly disliked by folks on the destination site, and can end up causing a rather bad experience for folks who were participating in good faith on the original.   I suggest that questions older than 601 days should not be eligible for migration, either by normal user close-votes or by moderators. In extreme cases, we can perhaps provide an alternate means of moving old questions, but under normal circumstances these should be done quickly or not at all.   1 60 days is actually based on a  introduced this past spring: migrated and then rejected questions older than 60 days cause the authors to suddenly gain (permanent) reputation on the destination.


Why object references are behaving differently?

What I am trying to do here is to swap two objects inside a method and outside the method. While I try to do it in a seperate method, the objects are NOT swapped and while done within the method, they are swapped. I dont understand what I am missing here. Here is the code snippet.  public class Swap {     public static void main(String args[]) {         Swap s = new Swap();         s.testSwap();     }        private void testSwap(){         Animal a1 = new Animal("Lion");         Animal a2 = new Animal("Crocodile");         System.out.println("Before Swap:- a1:" + a1 + "; a2:" + a2);         swapObjects(a1, a2);         System.out.println("After Swap outside the method:- a1:" + a1 + "; a2:" + a2);         Animal temp = new Animal("");         temp = a1;         a1 = a2;         a2 = temp;         System.out.println("After Swap within the method:- a1:" + a1 + "; a2:" + a2);     }      public void swapObjects(Animal a1, Animal a2) {         Animal temp = new Animal("");         temp = a1;         a1 = a2;         a2 = temp;     } }  class Animal {     String name;     public Animal(String name) {         this.name = name;     }     public String toString() {         return name;     } }


How to dynamically generate methods and properties with Python?

How to dynamically generate methods and properties in Python?  Let's assume that we have a long list and some class:  #!/usr/bin/env python list = ["sky","sand","sea",...] class SomeStaticObjClass( object ):         def __init__( self, arg, ):             # some code   ...and want to dynamicaly add names and values to keep the funtionality with code example as follows :  sky = "sky"                                     # generate key and value sky_OBJECT = SomeStaticObjClass( sky )          # generate name def sky_Function( arg ): return arg.__class__   # generate function name print sky_Function( sky_OBJECT )                # proceeding generated object name as argument   ...then continue with other list members again... Any help, please?


Are the feats from Essential supposed to be used with the older classes?

As far as I can see, the feats from Essentials are way more powerful than their older counterparts. On the other hand, I see the Essential classes as weaker versions of the older ones (specially Fighter/Knight).  So, are those two supposed to be combined? They don't seem to be meant to be used together. I believe the powers shown in the new books are meant to be used since not even the classes from Essentials can use them, mostly, but the feats, I'm not so sure.  If you create a Knight with the Essentials feats, it might do fine, but a Fighter with the same feats might get a little overpowered, I believe.  Is there any official release about the matter?


I wanted to make a number guesser game, and I wrote this code:  from random import randint as rand  number=rand(-1,1001) tries=0 def numguess():     guess=int(input("The chosen number is between 0 to 1000.\nEnter your guess : "))     tries=tries+1     numguess()  while True:     if number==guess:         print ("You won. My number was effectively" ,number,". \n It took you ",tries, "to guess the number.")         break       elif number<guess:         print ("The number I chose is lower than your guess")         numguess()      else:         print ("The number I chose is higher than your guess")         numguess()   When I run it, it asks me for input then raises a UnboundLocalError. Is there something I am doing wrong? I tried searching but I don't understand. Thank you.


I don't want to display any number with Algorithm. like Algorithm 1. I have typed   \begin{algorithm}  \label{euclid}  \caption{\textbf{Deep Network}}  \begin{algorithmic}[] --------------------- \EndProcedure  \end{algorithmic}  \end{algorithm}   In output it display Algorithm 1, whereas I do not want the number 1 to be displayed.  Any suggestions please.


I have an sqlite database file named sample.db .    Now i don't know its table names or in a broad way i don't know what it contains.    So is there any way through which i can read its tables ?


Problem with saving the record on the before insert trigger! Help!

So, I have field called name on my custom field and I am writing a before trigger insert trigger to copy the name of the other lookup field into the name field which is a standard required field and looks like I cannot remove the required on the field. Now, my trigger copies the name of the other field into the name field only if I write something before saving. If I don't fill the name and try to save the record I get the error 'The following field must be completed : name' . How do I solve this because I cannot ask users to fill some rubbish as the name and tell them not to worry cause once they save the field the contents of the other field get copied ? Which is not bright I suppose.  if(Trigger.isBefore){             //Process before insert that is to copy the name of the Template Id into the name of the checklist object             set<Id>CheckListTemplateId = new set<Id>();             for(CheckList__c c : Trigger.new){                 if(c.TemplateId__c != null){                     CheckListTemplateId.add(c.TemplateId__c);                   }                }             System.debug('The set value is :' + CheckListTemplateId);             if(!CheckListTemplateId.isEmpty()){                 Map<Id,CheckListTemplate__c> checkListTemplateObj = new Map<Id,CheckListTemplate__c>([Select Id, Name From CheckListTemplate__c Where Id IN: CheckListTemplateId]);                 for(CheckList__c c : Trigger.New){                     if(checkListTemplateObj.get(c.TemplateId__c).name != null){                         // Copy the value of Template name from CheckListTemplate__c into name in CheckList__c                         c.Name = checkListTemplateObj.get(c.TemplateId__c).name;                     }                     }             }                 }


Bibtex entries with many authors don't work in biblatex-chem?

I'm using the biblatex-chem bundle by @Joseph Wright.  It works fine for entries in my bibliography that have three or fewer authors. But if there are four authors, instead of getting the numeric superscript, I get the superscripted indentifier and the warning "citation "x" on page 5 undefined on input line 97". There are no discrepancies or spelling mistakes in my code and .bib file (I checked and checked). The problem goes away when I remove a couple of authors. That doesn't seem like something I should do to my bibliography. Is there some other fix or a reason why this occurs?   Here is my preamble etc. :   \documentclass[a4paper,12pt]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{gensymb} \renewcommand{\baselinestretch}{1.4}  \usepackage[backend=biber,style=chem-acs]{biblatex} \addbibresource{export1.bib}  \title{\stuff} \author{person} \date{time}   \begin{document}  stuff  \printbibliography  \end{document}   and example of a .bib entry that has this issue:  @article{wsb,    author = {Jing Wang,Patrick J. Bisson,Joam M. Marmolejos,Mary Jane Shultz},    title = {{Nonlinear interferometer: Design, implementation, and phase-sensitive sum frequency measurement}},    issn = {0021-9606},    doi = {10.1063/1.4997736},    pmid = {28810790},    abstract = {Sum frequency generation (SFG) spectroscopy is a unique tool for probing the vibrational structure of numerous interfaces. Since SFG is a nonlinear spectroscopy, it has long been recognized that measuring only the intensity—the absolute square of the surface response—limits the potential of SFG for examining interfacial interactions and dynamics. The potential is unlocked by measuring the phase-sensitive or imaginary response. As with any phase, the phase-sensitive SFG response is measured relative to a reference; the spatial relationship between the phase reference and the sample modulates the observed interference intensity and impacts sensitivity and accuracy. We have designed and implemented a nonlinear interferometer to directly measure the phase-sensitive response. If the phase of the reference is known, then the interferometer produces an absolute phase of the surface. Compared to current configurations, phase accuracy and stability are greatly improved due to active stabilization of the sample-reference position. The design is versatile and thus can be used for any system that can be probed with SFG including buried interfaces and those with high vapor pressure. Feasibility and advantages of the interferometer are demonstrated using an octadecyltrichlorosilane film on fused silica.},    pages = {064201},    volume = {147},    journal = {The Journal of Chemical Physics},    year = {2017} }


How to stop iTunes auto starting and playing when a phone call comes in with BT headphones

I get a phone call on my iPhone which is paired with QC35 headphones. At the point that the call starts, my mac starts iTunes and starts to play music through the same headphones I'm taking the call on.  I've tried disabling iTunesHelper but this continues to occur. Completely ridiculous out of the box behaviour.


Find $E[N]$ for $N =\min\{n:U_1+U_2\cdots+U_n>1\}$ where $U_1,U_2, . . .$ are independent uniform (0,1) random variables.

Find $E[N]$ for $N = \min\{n:U_1+U_2\cdots+U_n>1\}$ where $U_1,U_2, . . .$ are independent uniform (0,1) random variables.   I may be way off base with my thinking here, but is $\min\{n:U_1+U_2\cdots+U_n>1\}$ the same as $\max\{n:U_1+U_2+\cdots+U_n\leq1\}$? If so, I'm thinking of this as a renewal process where n is the maximum number of "arrivals" by time = 1. Then I'm just finding E[N(t)] which is the renewal function m(t) that satisfies the integral equation $m(t)=F(t)+\int_0^tm(t-x)f(x)\cdot dx$ and I know where to go from there.


convert subtitle MKS to SRT in terminal?

convert subtitle MKS to SRT in terminal ?   How to ? because I can not edit my mks subtitle in ubuntu software that I use. just suport srt only


I have just created a new Ubuntu terminal only virtual environment.  As you can see below then I maximise the terminal window the terminal does not increase in size (giving me more space to see what I'm working on) there is just alot of grey space betwen the window frame and the terminal.    When I look at Veiw>VirtualScreen1, the resizing options are not available to me.    Could someone let me know how to get the terminal to maximise to the edge of the window frame please?


Why does a \newcommand-defined gloss mess up the alignment in expex?

I am using the expex package to give a word-by-word translation in English of examples from foreign languages.  Because word-by-word translations can be sometimes quite long and abstract, it is conventional in linguistics to use a set of agreed-upon abbreviations. For instance, the term ergative' is abbreviated aserg'. Furthermore, I want this abbreviation to be in small caps, so I defined a new command as below.  \newcommand{\gERG}{\textsc{erg}}   The issue is that when I use the newly defined command, the word-by-word alignment is messed up. Compare an example without the new command and one with.  \ex \begingl  \gla word word word // \glb word.\textsc{erg} word word // \glft Translation. // \endgl \xe    This gives me, as expected, an example with a line of abbreviations that are aligned as follows.      (1) word      word word         word.ERG  word word         Translation.   But if I use my newly defined abbreviation as follows,  \ex \begingl  \gla word word word // \glb word.\gERG word word // \glft Translation. // \endgl \xe    I get something messy as in (2).      (2) word         word word         word.ERGword word         Translation.   If I put {} around every word, it solves the issue but that wastes time and kind of defeats the purpose of having abbreviations in the first place.  How to make sure that the newly defined command behaves?  Thanks.


I would like to know how to scale a single component in CircuiTikZ.   There are several possibilities to scale paths, a hole diagram, etc., but I didn't find a way to do so with a single component.  Note: I'm trying to scale a voltage source.


What will happen at a different aspect ratio and what is the most efficient and easy way of dealing it?

Let's say I have built a game for Android at the size of 480x854. If I test this on my device that has this resolution I suppose it will work and look property. But at a different aspect ratio will the game work and look good? Also, what is the most efficient and easy way to handle this?  Thanks in advance.


How can I get from the Rotterdam cruise port to the Rotterdam Centraal train station using public transport?

Can you get from the Rotterdam cruise port to the Rotterdam Centraal train station without a taxi? I'd like to take the tram or Metro is that possible?  How much and how long would that take?


I've just got a new computer monitor, and I've added it to my previous one, and I have some questions I need answers to:   Is there any way to make the windows taskbar go on both monitors? I tried using DispleyFusion (5.1), but after installation it didn't work and after a few reinstalls it just gave a BSoD. Is there a way to make a shortcut button on my mouse/keyboard to make the mouse pointer jump to the other monitor?


Finding a story where aliens warn mankind away with math

I can't remember much of the book, but I do remember that humans were approaching something. I believe it was a cache of weapons or something that aliens were storing/hiding on Earth.   And the aliens left a "warning message" to the humans by somehow giving off signals (don't remember exactly how) that ended up to be invalid and/or impossible math equations (things like 1=0) meant to warn anybody away as math is a universal language.   I know it's not much to go on, but thank you very much for your assistance.


How to evaluate this limit without using L'Hôpital's rule: $\lim\limits_{n \to \infty}\left\{n\left[\ln{\left(n+1\right)}-\ln{n}\right]\right\}$?

The limit is: $$\lim\limits_{n \to \infty}\left\{n\left[\ln{\left(n+1\right)}-\ln{n}\right]\right\}$$ I think this can be solved by converting the given limit into the form: $$\left(1+x\right)^{\dfrac{1}{x}}$$ But I can't convert it.


How to get all the data from a table in sql?

I want to get all the data from a table in SQL.The following command can be used:  select * from table_name   But it seems that using * decreases effeciency, so is there any other way ?


How do I set the prompt to use two colors?

One thing I liked about Mint was that the terminal would usually show two colors: everything from the left to the $ would be one color, and everything past the $ would be another.   Is there a way to have this setup with Ubuntu?


This theorem is obviously correct. Now I try to prove it by well-ordering principle.  But I don't know where to start the proving....


Which one is correct? I am quite sure about "I'm Spanish", but is it wrong if I add an "a" before "Spanish"?


It seems obvious that Terminators don't have vocal cords, and their speech is probably generated by some kind of speaker assembly linked to a speech processor.  However, every time we see a Terminator speaking, it moves its mouth just like a human would.  In most cases, this is presumably because they want to appear to be human, and speaking without moving your mouth is a rare talent and, if a Terminator did it, they would raise suspicion. But there is at least one scene, in the first movie, where the Terminator is alone in his apartment, where no one can see him, and the landlord comes to the door and complains about a bad odor coming from the room.  The Terminator replies in terms that I won't repeat on this family friendly site.  The issue is that when the Terminator replies to the landlord, who - as I have said, can't see him - the Terminator's mouth moves. Note:  The dialogue in this clip is probably NSFW                                If moving his mouth wasn't a necessary part of his speech process, he has no reason to do it in this scene.  He doesn't need to keep up appearances when no one can see his face. Humans speak by a combination of muscle movements:  the diaphragm draws air in and forces it out of our lungs, after which it passes through the larynx, where the vocal cords shape the sound, and finally, the air passes out through our mouths, where our lips, and especially tongues, put the finishing touches on the sounds we are producing.  But Terminators don't have lungs, larynxes, or vocal cords.  So how do movements of the mouth and tongue affect their speech? This raises the question of whether the bare metal Terminators (see picture below) can speak, and if so, whether their mouths move when they speak.  They certainly don't have lips or tongues, so those can't play any part in the process.  So here's my question: Is there any information about how Terminator speech works?


Can't add new cells using dynamically added buttons using jQuery

I have HTML file with JavaScript code inside, which should add new cell to table with button when user click on any other buttons in document with class name addCell:  <!DOCTYPE html>

         <button class="addCell">AddNew 1</button>

         <button class="addCell">AddNew 2</button>

     When I click on the buttons with class addCell, saved in HTML document in design time, my code work well done.  But when I click on new buttons, added by my script in run time, with same class name, nothing happens.  I use class name, for add buttons by jQuery, onclick method, because, number of buttons is unlimited, and writing to all buttons, attribute onclick with name of function, is not the best way to optimize personal code.  What I make incorrect? Please help me to change this code for well and right work.


Install Biber in MiKTeX on a 64-bit version of Windows

Update: As of summer 2015 Biber is also included in the 64-bit repositories for MikTeX. There is no need to install Biber manually any more, it can simply be installed via the Package Manager just like other packages.   The question  describes how to use Biber with MiKTeX. But on the 64-bit version of MiKTeX Biber isn't installed.  How it is possible to install Biber on a 64-bit version of Windows?  Can I use this ?


What is at x- and y-axis on the Normal Probability Plot and how to calculate it?

So we have normal scores aka rankings on the x-axis, called theoretical quantiles and on the y we have the sample quantiles, but how do we calculate them, if we assume that the data derives from a normal distribution?  If the result of plot will more or less look like a linear line, then our sample derives from the normal distributed population, right?


Practical Solution For Giant Spike Balls

The dungeon has giant swinging spike balls that cause no end of frustration to explorers such as myself.  They dare to keep bold, intrepid, totally-not-thieving adventurers out of the depths with their inability to be destroyed!...Or do they?  I have tried removing the block that they rest on to no avail, but is there any practical way to remove the giant spike ball that plagues the dungeon?  Or, failing that, is there an elegant solution to dealing with these grossly annoying obstacles?


Having a problem with connecting hand to wrist/arm. I've tried a few different methods, and so I've found the best one that looks the best, but there's still a clear divide where the two are connected. Looked for interior faces, doubled points, etc., but nothing of that sort. Is there an easy fix for this?


Regular expression to capture optional named group

I'm trying to write a regular expression for parsing address.   My address strings have next format: AddressLine (City) SomeFixedText  The only problem that (City) part is optional. For example:  Abingdon Road (Oxford) Water Network Pumping Adderbury Water Network Pumping   Without capturing optional group I've come up with following expression:  (?<Line>.*) \((?<City>.*)\) Water Network Pumping   But of course it doesn't not handle the second case. I tried to use an optional group:  (?<Line>.*)( \((?<City>.*)\))? Water Network Pumping   But in this case Line and City are captured incorrectly for the first case.  Here is the fiddle:   How can I handle this situation?


Is it possible to activate a squad-bonus enchanced ammo type without overriding squad members' settings?

If, for example, I get Shepard to activate Cryo Ammo (which has the +50% effectiveness for squad mates) then it replaces any ammo setting they my squad mates have active. If I then switch on one of their powers (which has the same squad bonus) then it overrides Shepard's ammo setting. The two ammo types become mutually exclusive.  This is a problem because it means only the person with the last ammo type activated has it at full effectiveness, and I can't diversify.  Except for the obvious of respec'ing and avoiding the squad bonuses (so each member has to manage their own ammo types, which is what I'll do if I really have to) is there any way to avoid overriding a squad mate's ammo setting when activating one on another member that has a squad bonus?


Could someone give me a hint? I would like to continue to attempt it. The limit to evaluate that I would like a hint on is:  $$\lim_{(x,y,z)\to(0,0,0)}\frac{xy+yz^2+xz^2}{x^2+y^2+z^4}$$


Find all integer pairs $(x,y,z)$ that satisfy $$2x^4+2x^2y^2+y^4 = z^2.$$   We can rewrite the given equation as $(x^2+y^2)^2+(x^2)^2 = z^2$. Thus, $(x^2+y^2,x^2,z)$ must be a Pythagorean triple. How do we continue?  Also, for $x = 0$ we get $y^4 = z^2$ and so $z = \pm y^2$. Can we show that $x$ must be $0$?


My Applications are not showing after upgrading from Ubuntu 18.04 to 20.04

I did an upgrade today to the latest version of ubuntu. Everything looked good and fine only for me to discover that I cannot find my applications after clicking the 'Show Applications' icon. The same applies when I search for an application in the search bar, I do not see it. It shows me an endless search.  These are the screenshot images of the problem:      In the meantime, I access my applications from the menu at the top bar and also use the terminal to run applications with CLI.


Why does this for loop ignore my variable?

I am trying to do a simple script which runs a few commands N number of times, determined by the user's input. However, when it comes to run the commands (in a for loop) - The variable is ignored:  read -p "Please enter the number of times you wish to fail over: " num  ...    for run in {1..$num}    do echo "STOP: "    date    systemctl stop $broker    date    sleep $st    echo "START: "    date    systemctl start $broker    date    sleep $st   done fi + '[' y == n ']' + '[' y == N ']' + for run in '{1..$num}' + echo 'STOP: ' STOP: + date Tue Dec  4 16:14:11 GMT 2018   Can anyone explain why this is happening and what I need to do to rectify? Or does anyone have a better method for this?


$\int_0^\infty\frac{\log x dx}{x^2-1}$ with a hint.

I have to calculate $$\int_0^\infty\frac{\log x dx}{x^2-1},$$  and the hint is to integrate $\frac{\log z}{z^2-1}$ over the boundary of the domain $$\{z\,:\,r<|z|<R,\,\Re (z)>0,\,\Im (z)>0\}.$$  I don't understand. The boundary of this domain has a pole of the integrand in it, doesn't it? Doesn't it make this method useless?


purge all packages manually installed via apt-get from the moment you installed the Ubuntu OS

Is there a way to purge all packages installed via apt-get from the very moment you installed the Ubuntu OS, up till this very point?  One could call it a a "mega apt-get purge".  The purpose of this operation to clear the system of everything I've installed so far (from apt) on top of the Ubuntu OS itself. This would bring me the closer to a fresh install of a Ubuntu OS, without any added software (of course, the only thing I'll have left is to clear all non-apt software and individual files I've added, but that is of course another issue).  The reason for this operation is because this is done on a VPS machine in which I can't install and uninstall operating systems in the traditional way; I can indeed use the "rebuild" functionality of my hosting provider but I find it a bit annoying to use from personal reasons so I just want to go closest I can to a fresh install without that.  How will you do the desired "mega apt-get purge"? Thanks.


What is the easiest way to merge / and /home?

I have separate / and /home partitions, of which both use ext4 as their filesystem. How can I merge them, and what is the easiest way?


What to do when the reviewer is wrong about your paper's scope, technically inaccurate, and clearly haven't read your rebuttals

You might think the title is a bit of an exaggeration, however this is exactly what has happened. Note: No, I can't find my answer on How to React to Incorrect Claims by Reviewers? as it addresses the rebuttals/revisions but my question is about what to do after the final decision. (no rebuttal chance) The reviewer can not differentiate X from Y, is technically wrong and obviously have no in-depth expertise, no let me put it this way even an undergrad knows X from Y, they suggested this is not the first paper using Y in A, when my paper is using X in B (totally different methodology and scope and even the problem addressed). Moreover, they told me they think the format of my abstract is "extremely odd" because it is divided in 4 sections and they haven't seen it anywhere when it is the author's guidelines, and I sent them the link to the author guidelines and the template file, also copy/pasted that part and included in rebuttal -  and they wrote they "still think it is extremely odd and they haven't seen it elsewhere". After receiving my first reviews and submitted a complete rebuttal making changes to answer ALL questions, revised writing, added supplementary materials, I was still waiting to hear from the journal after almost 3 months (one week short) for revision - I am a reviewer for the same journal and I am asked to submit reviews in 3 weeks!! so I asked them why it was taking so long, and in a few days I get the reviews and the reject. The other reviewer's first review was "the technical writing is weak" - this was ALL, no details, no directions - I made substantial changes and wrote very much in detail, the math, the narrative and they wrote "I should reorganize and submit as new" with no details, no directions. I feel so frustrated, I had an experience like this with the same journal before and got an even worse one who said "the paper was clearly written by a native speaker and that native speaker should help the other revise" - I wrote the whole paper! They also wrote some technical claims about my methodology which was plain wrong. AND! again, it was also the same - I asked them why it was taking so long (over 4 months after my revision), and in a few days I get the reviews and the reject. Moreover, someone had snatched my exact methodology and used for the same problem and submitted to that journal later. As a reviewer I see papers being accepted all the time with much less novelty and technical writing. I really don't understand how the editor even lets this happen, the part about the abstract's format made its way to the both reviews! Even after my correction. The reviewer clearly thinks my paper is on something else entirely and lacks expertise. How can I refute this? Can I refute this? are they doing this on purpose to gatekeep me? there are not many journals in my field, because this one took so long I couldn't make it to other major conferences, and now I wanted to submit to another journal which is a bit different in scope and is much harder to get into -but- I am not even sure I can because my journal submission here is also accepted as a paper (first version) -but- is not published yet (so I can't submit to another journal because I would need to make a reference to the paper version). Also these are all supposedly Q1 journals. Should I submit to the same journal and hope there will be reviewers with some common sense? Would I be rejected right away? Considering how slow they have been (7.5 months for these kind of reviews! I doubt they will be kind to answer my emails)


How can I force Ubuntu to boot on a stuck boot menu?

I have Ubuntu Server 11.04, but it is headless (no monitor). The only way I want to be able to access it is remotely via SSH. But, sometimes, say after a power loss, when the server restarts, it will get stuck on the Grub boot menu, and it won't count down. It will just hang there waiting for me to choose the first boot entry. This means I have to go there and plug in a monitor and keyboard.  But I can't do that remotely. How can I force it to continue booting to boot entry 1 (default) regardless of power loss or whatever?


What causes force on a body in gravitationally curved space time?

take the example of earth sun system. The earth is said to orbit around sun because the sun bends the space time around it .  Now if by some means we stop earth in its path such that its at rest with respect to sun then release it , it will immediately start a free fall towards the sun .  Now the question is if the gravity is just bent space time then what is causing the earth at rest to move from rest. What causes the force?   how can you explain both the Einstein bending of space and newtonian force of gravity existing simultaneously?


I have a php/html application over a MySql database. Database encoding is UTF-8 and so are HTML files (<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> and <meta charset="utf-8">).  The thing is, there is inconsistency, as in a list page (plain html, no forms), I can see UTF-8 characters properly (), and also when I select values in mysql admin, but in the edit form I see wrong characters () inside input text fields. This happens when I update a value inside mysql admin.  And the inverse occurs, if I update a value through the form I see characters properly inside input text field, but wrong in list (html, no forms) ().  As I read the problem may be in the files encoding, which is confusing, as, if I list with file -i (I use linux) I see a mixture of utf-8 and us-ascii files, but if I open then with sublime text 3, I can see UTF-8 on all of them, and even if i save with encoding utf-8, file -i doesn't change result.  I also read that file -i is more a guess than a real result, so I'm quite puzzled in which encoding files have, how can I change them for real. There are many files involved, templates, libraries, etc.  EDIT: To connect to database, I use Doctrine (which I ignore internal mechanisms) and also @mysql_connect, which I force with $this->charset_utf8 = true  SOLUTION  Not really a duplicate of , but @deceze is right, I needed to configure Doctrine connection as explained in this :  $connectionOptions = array(     'driver'   => $options['conn']['driv'],     'user'     => $options['conn']['user'],     'password' => $options['conn']['pass'],     'dbname'   => $options['conn']['dbname'],     'host'     => $options['conn']['host'],     'charset'  => 'utf8',     'driverOptions' => array(     1002 => 'SET NAMES utf8'     ) );  $em = \Doctrine\ORM\EntityManager::create($connectionOptions, $config);   Thank you


What is the difference between using "pretty bad" and "pretty good" in this kind of slang context? It seems to be more of an American English quirk.        Looks like you hurt your leg pretty bad   Looks like you hurt your leg pretty good


I get this line repeatedly:  W: Possible missing firmware /lib/firmware/i915/kbl_dmc_ver1_01.bin for module i915   This is the whole process (German):   What is this about?


Restore log backups to non-readable async AlwaysOn replica

We have 3 SQL 2014 instances in a AlwaysOn Availability Group. Our 2 primary servers are onsite at our primary data center in synchronous replication. A 3rd replica is at our DR site in Async Mode (no automatic failover)  We run transaction log backups every minute on our primary instance (don't offload backups). Our DR site usually runs < 5 seconds behind the primary site, and the business is ok to lose up to 1 minute of data in the event of an unplanned outage at our primary site (planned outages we switch to sync mode and deal with the latency issues).  Sometimes though, our DR site can be out of sync by 20-30 minutes, particularly during index maintenance and end of month operations.  My question is, in the event that both servers in the primary site go offline and our DR site is behind, can we use our log backups to bring the DR server up to date? What are the steps involved?  : asks the same question but for SQL Mirroring instead of AAGs.  Due to licensing the DR site is non-readable (I don't think this will make a difference but just in case it does).


Prove that: $x^x\cdot y^y \geq \left(\frac{x+y}{2} \right)^{x+y} $

Prove that: $$x^x \cdot y^y \geq \left(\frac{x+y}{2} \right)^{x+y} $$ for every $x, y > 0$ Where I got stuck: $$x^x \cdot y^y \geq \left(\frac{x+y}{2} \right)^{x+y} \iff \ln(x^x \cdot y^y) \geq \ln \left[\left(\frac{x+y}{2} \right)^{x+y} \right] $$ $$x\ln(x) + y\ln (y) \geq (x+y) \ln \left(\frac{x+y}{2} \right) $$


How to share VirtualBox Guest's Internet Connection with Host?

I'm using Ubuntu 12.04 with Windows XP SP3 Installed as a Virtual Machine, the only way for me to access the internet is using a WiMax USB Modem which is not available for Linux, I managed to install it on XP and get it to work but I don't know how to share that connection with Ubuntu.I googled it and found so many workarounds and don't know which the best one that suits my need, I'm not an expert. Could someone shows me an easy way to do that? Thanks!


I have this fragment of text: "Realizado el:2019-03-13 00:00:00.0,  2019-03-13 00:00:00.0   en Edmonton   - Students' Union Building Productos asociados" I'm using regex on python to extract the fragment: "en Edmonton - Students' Union Building Productos asociados" but I just can't, the regex expression I used is: country = re.search('en (.*?)Productos asociados', text, re.MULTILINE)  Any idea of how to do it? Thanks


ColdFusion - When to use the "request" scope?

Been going over my predecessor's code and see usage of the "request" scope frequently. What is the appropriate usage of this scope?


MySQL: Adding innodb_log_file_size in my.cnf causes not starting MySQL service

I checked and found that InnoDB pluginis active. By default, Innodb_log_file_size=5MB. As per the ,  its ideal values range from 1MB to 1/N-th of the size of the buffer pool, where N is the number of log files in the group.  InnoDB_buffer_pool_size=1024MB and innodb_log_files_in_group=2   So, Value of Innodb_log_file_size should be 512MB. To achieve this, I have written below line in /etc/my.cnf and tried to restart it.  innodb_log_file_size=512M   I am getting below error: Starting MySQL.Manager of pid-file quit without updating fi[FAILED]  Please note that I have only two log files -one is for slow query log file and another is error log.    Can anyone help me to find why there is a strange behavior and I am not able to edit Innodb_log_file_size?


If a $C^1$ map $f:\mathbb{R}^{n}\rightarrow\mathbb{R}^{n}$ is expanding ($\|f(x)-f(y)\|\geq\|x-y\|$), which of these must be true?

Let $f:\mathbb{R}^{n}\rightarrow\mathbb{R}^{n}$ be a continuously differentiable map satisfying $\|f(x)-f(y)\|\geq\|x-y\|$ for all $x,y\in\mathbb{R}^{n}.$ Then   $A.$ $f$ is onto.  $B.$ $f(\mathbb{R}^{n})$ is a closed subset of $\mathbb{R}^{n}.$  $C.$ $f(\mathbb{R}^{n})$ is a open subset of $\mathbb{R}^{n}.$  $D.$ $f(0)=0.$  According to me $f$ is one one and onto so image is closed and open both. Please suggest me. Thanks in advance.


Can the difference of random variables be uniform distributed?

Given two random variables X and Y with some distribution D, is it possible to choose a D such that Z = X - Y is uniform? Is there a standard distribution D that would satisfy this?


The ideal $\langle x,y \rangle$ in $F[x,y]$ is not principal.

Let $F$ be a field. Apparently we know that $\langle x,y \rangle \neq \langle g(x,y) \rangle$ for any $g \in F[x,y]$. Why is this the case?


Based on , it is obviously more common to use "prefer + to" or "prefer + rather than"     I prefer football rather than computer games.      I prefer tea to coffee   I have a habit to use "prefer" + "over", and I wonder whether it is grammatically wrong or unnatural:     I prefer tea over coffee


NullPointerException when i run my project

i have a problem with my code, this is error     java.lang.NullPointerException: Attempt to invoke virtual method   'void android.widget.ImageView.setImageResource(int)' on a null object   reference   there is no error in code, but when run there is a null exception error, I don't know where is null, this is error     at   com.mulazi.submission2.MovieListAdapter.onBindViewHolder(MovieListAdapter.java:57)            at com.mulazi.submission2.MovieListAdapter.onBindViewHolder(MovieListAdapter.java:20)   this is my code   package com.mulazi.submission2;  import android.content.Intent; import android.provider.ContactsContract; import android.support.annotation.NonNull; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView;  import com.mulazi.submission2.R; import com.mulazi.submission2.DetailActivity; import com.mulazi.submission2.Movie;  import java.util.ArrayList; import java.util.List;  public class MovieListAdapter extends RecyclerView.Adapter<MovieListAdapter.MovieViewHolder>  {     private List<Movie> movieList;      public MovieListAdapter() {         movieList = new ArrayList<>();     }      private void add(Movie item) {         movieList.add(item);         notifyItemInserted(movieList.size() - 1);     }      public void addAll(List<Movie> movieList) {         for (Movie movie : movieList) {             add(movie);         }     }      @NonNull     @Override     public MovieViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {         View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.list_item_movie, parent, false);         return new MovieViewHolder(view);     }      @Override     public void onBindViewHolder(@NonNull final MovieViewHolder holder,final int position) {         final Movie movie = movieList.get(position);         holder.itemView.setOnClickListener(new View.OnClickListener() {             @Override             public void onClick(View view) {                 Intent intent = new Intent(holder.itemView.getContext(), DetailActivity.class);                 intent.putExtra("key", movie);                 holder.itemView.getContext().startActivity(intent);             }         });          holder.moviePhoto.setImageResource(movie.getPhoto());         holder.movieName.setText(movie.getName());         holder.movieDate.setText(movie.getDate());         holder.movieDesc.setText(movie.getDescription());         holder.movieDuration.setText(movie.getDuration());         holder.movieDirector.setText(movie.getDirector());         holder.movieGenre.setText(movie.getGenre());     }      @Override     public int getItemCount() {         return movieList.size();     }      static class MovieViewHolder extends RecyclerView.ViewHolder {         ImageView moviePhoto;         TextView movieName;         TextView movieDesc;         TextView movieDate;         TextView movieDuration;         TextView movieDirector;         TextView movieGenre;          MovieViewHolder(@NonNull View itemView) {             super(itemView);              moviePhoto = itemView.findViewById(R.id.img_photo);             movieName = itemView.findViewById(R.id.txt_name);             movieDesc = itemView.findViewById(R.id.txt_description);             movieDate = itemView.findViewById(R.id.txt_date);             movieDirector = itemView.findViewById(R.id.txt_director);             movieDuration = itemView.findViewById(R.id.txt_duration);             movieGenre = itemView.findViewById(R.id.txt_genre);         }     } }   I hope anyone helps me resolve this error,


Beamer: tableofcontents with page numbers

How do I get page numbers / slide numbers in the tableofcontents in a beamer presentation?


RegExp - How can I match the shortest amount possible?

I have my Regular Expression /'(.*)(?:(?:'\s*,\s*)|(?:'\)))/ and my test code ('He said, "You're cool."' , 'Rawr') (My test code simulates parameters being passed into a function.)   I will explain my Regular Expression as I understand it and hopefully a few of you can shed some light on my problem.  1)/' means at the beginning of the matched string, there needs to be '  2)(.*) means capture any character except \n 0 or more times  3)(?:(?:4)|(?:5)) means don't capture but try to do step 4 and if it doesn't work try step 5  4)(?:'\s*,\s*) means don't capture but there needs to be a ' with 0 or more whitespace characters followed by a , with 0 or more whitespace characters  5)(?:'\)) means don't capture but there needs to be ')  So it seems that it should return this (and this is what I want):  '+He said, "You're cool."+' ,  But it returns:  '+He said, "You're cool."' , 'Rawr+')  If I change my test code to ('He said, "You're cool."' , 'Rawr' (no end parenthesis) it returns what I want, but as soon as I add that last parenthesis, then it seems that my OR operator does whatever it wants to. I want it to test first if there is a comma, and break there if there is one, and if there is not one check for a parenthesis.  I've tried switching the spots of step 4 and step 5, but still the OR operator seems to always default to the (?:'\)) side.  How can I match the shortest amount possible?


Hierarchy of dying - Is this Venn Diagram accuarate/complete

UPDATE  Latest version of diagram, based on feedback in Answers below.    Original Question  Considering a creature card that is currently on the battlefield, is the following diagram accurate?    "Accurate" in the sense of determining triggers etc.:   Indestructible doesn't prevent Sacrificing, or dying from reducing toughness, but does prevent death from damage. "Destroy Target Creature" doesn't require dealing damage. Everything mentioned so far does count for a "when dies" trigger. etc. etc.   Are there anything missing that would fit nicely into the diagram? Are there other ways to leave the Battlefield?  Suggested Text representation for use in answers:  > Left the Battlefield >> Exiled >> Entered the Graveyard >>> Died >>>> Sacrificed >>>> Toughness-Damage <= 0 >>>>> Dealt Lethal Damage [#1] >>>>> Toughness = 0 >>>> Destroyed [Includes #1]


What is the right way to include graphics when you are creating a modular document?  My directory structure is as follows:  /root --report.tex --mystyle.sty --/tex ----/literature ------literature.tex --/img ----biological_neuron.eps   My main file is report.tex whose content is as follows:  \documentclass[11pt, a4paper, twoside, openright]{book}  \usepackage{graphicx} \usepackage{my_style}  \begin{document}  \mainmatter \include{tex/literature/literature}  \bibliographystyle{plain} \bibliography{../../../Bibliography/Bibtex/SNN} \end{document}    The content of file literature.tex is as follows:  \chapter{A review}  \begin{figure}[h] \includegraphics{../../img/biological_neuron} \caption{A biological neuron} \label{Fig:BN} \end{figure}   Everytime I try to generate a pdf I get an error: File "../../img/biological_neuron" not found. I tried "/img/biological_neuron" instead of "../../img/biological_neuron" but that doesn't work either. One thing that does work is adding \graphicspath{img/} to report.tex. But I don't know if thats the right way to do it. Because even if I do \graphicspath{img/} I have to specify the path for any graphics in an included file as '../../img/biological_neuron' and I think after adding \graphicspath{img/}` we should have to just write '/biological_neuron'. I don't know if this is a bug or am I doing something wrong. Please enlighten. Thank you.


cp behaves weirdly when . (dot) or .. (dot dot) are the source directory

reveals that one can copy all files - including hidden ones - from directory src into directory dest like so:  mkdir dest cp -r src/. dest   There is no explanation in the answer or its comments as to why this actually works, and nobody seems to find documentation on this either.  I tried out a few things. First, the normal case:  $ mkdir src src/src_dir dest && touch src/src_file src/.dotfile dest/dest_file $ cp -r src dest $ ls -A dest dest_file  src   Then, with /. at the end:  $ mkdir src src/src_dir dest && touch src/src_file src/.dotfile dest/dest_file $ cp -r src/. dest $ ls -A dest dest_file  .dotfile  src_dir  src_file   So, this behaves simlarly to *, but also copies hidden files.  $ mkdir src src/src_dir dest && touch src/src_file src/.dotfile dest/dest_file $ cp -r src/* dest $ ls -A dest dest_file  src_dir  src_file   . and .. are proper hard-links as , just like the directory entry itself.  Where does this behaviour come from, and where is it documented?


I recently installed cairo-dock-core package from Ubuntu software center.  I played with it for a while and concluded to delete it completely.Then, I uninstalled it from Ubuntu software center itself.  To check that it was completely removed I typed in terminal, the name of the package cairo and checked that if anything related was left.  To my surprise, I found cairo-dock-session. I then tried removing it but didn't succeed.


I have fitted a glm Poisson to my frequency data and obtained the result:   Null deviance: 657.49  on 583  degrees of freedom  Residual deviance: 575.00  on 571  degrees of freedom  AIC: 1534.4  Is the high AIC value and relatively high residual deviance a serious matter to be taken into consideration? Thanks


List sections of chapter at beginning of that chapter

How can one have a mini table of contents for the current chapter appear just after the chapter name listing all sections of that chapter?


passing a variable into a private method gives you scope to that variable correct?

so in the below code if exampleVar when first printed out would be zero then once printed out again, would be two yes? I am trying not to use a global variable and other than this, I cannot think of another way.  public int method ... {         int exampleVar = 0;         System.out.println(exampleVar); // would be zero         pmethod(exampleVar,);         System.out.println(exampleVar); // would be two?         }          private int pmethod(int exampleVar) {             exampleVar++;             if(exampleVar != 2){                pmethod(exampleVar);             }         }   the answer people are saying this one is a duiplicate of is not valid, as that answer although correct is far too noisy. using foo examples which are completely abstract and confusing. I have rejected that question as a Java novice as it isn't a clean and clear answer.


Animate a plane that transforms to a mesh?

How could I animate a plane that transforms to a sphere using Blender ? I know you can transform a cube to a sphere using shape keys, but is this possible for a plane ?


Can the team provide some explanation for declined feature requests?

Could the team try to leave at least a little explanation when tagging a feature-request post with the "status-declined" tag?  On Uservoice there was usually a brief explanation.  I'm not saying it should be mandatory or anything, it would just be nice.


How to count rows from MySQL with PDP PDO Prepared statement

This is my code to count number of rows in PHP PDO  $sql = "SELECT count(name) FROM `info` WHERE name='$name' ";  $result = $conn->prepare($sql);  $result->execute();  $totalrows = $result->fetchColumn();    But the problem is, If the $name contain an ', it gives error. Prepared statement is fast, secure and better. How to convert it into prepared statement?  I tried to make it PHP PDO statement, but it is not working  $stmt = $conn->prepare("SELECT count(name) FROM `info` WHERE name='$name' ");  $stmt->execute(array('name' => $name)); $totalrows = $stmt->fetchColumn();


root@gcomputer:~# systemctl status x11-common ● x11-common.service    Loaded: masked (/dev/null; bad)    Active: inactive (dead)   I tried systemctl unmask x11-common and systemctl unmask x11-common.service but that did not change anything.  How do I unmask it?


gokulraj@optimus-prime:~$ sudo apt install default-jdk E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?   The error is occured.


Linking doesn't work in codeblocks!? (undefined reference to ...)

I have a problem with codeblocks ver 10.05. I made a c++ project, and I wrote a program like this:  main.cpp  #include <iostream> #include "vectorddd.hpp"   using namespace std;  int main() {      vector3D<int> tesztinttomb;     tesztinttomb.saveout("igen.dat");     return 0; }   header file (vectorddd.hpp):  #ifndef VECTORDDD_HPP_INCLUDED #define VECTORDDD_HPP_INCLUDED  #include <iostream>  template <class T> class vector3D  {     T *x;     T *y;     T *z;     int meret; public:     void saveout(char* FileName);      vector3D(int Meret=0) :  x(new T[meret]), y(new T[Meret]), z(new T[Meret]), meret(Meret) {}      ~vector3D()  { delete [] x; delete [] y; delete [] z; } };   #endif // VECTORDDD_HPP_INCLUDED   implementation file (vectorddd.cpp):  #include "vectorddd.hpp"  template <class T> void vector3D<T>::saveout(char* FileName) {     int i=0;// I know this is stupid... but the emphasis is on the linking problem  }   And it just doesn't link together. I know I have to check .cpp files link and compile settings at properties->build options. And I don't find any problem, but is just write always the same:  In function `main': undefined reference to `vector3D<int>::saveout(char*)' ||=== Build finished: 1 errors, 0 warnings ===|   And if I put the .cpp files implementations into my .hpp file it works correctly. But this is not how codeblocks should work.


Quickly save Screenshot in MacOS Mojave with keyboard Shortcut

In MacOS Mojave, when I take a screenshot with CMD + SHIFT + 4 (so this isn't a normal screen shot, it's a screenshot of a little part of my screen), it takes several seconds before it's saved. Actually, the OS allows me to click on my screenshot and edit it for instance.   But what if I want it to be immediatly saved after I took the screenshot with a shortcut Keyboard ? (This feature changed in MacOS Mojave, before this version of MacOS, the screenshot was indeed imemediatly saved).   explains how to permanently remove the waiting, but what if I want to remove it on particular moment and not always ?


Prove that $K$ is isomorphic to a subfield of the ring of $n\times n$ matrix over $F$

$K/F$ is a field extension of finite degree $n$. How can I prove that $K$ is isomorphic to a subfield of the ring of $n\times n$ matrix over $F$, so the ring of $n\times n$ matrix over $F$ contains an isomorphic copy of every extension of $F$ of degree $\leq n$?


How find a finite sum involving a geometric ratio times n (or any polynomial)

So I have the following: $\sum_{n=1}^x (\frac76)^{n-1}  *n $  When I plug it into wolfram alpha it gives me the following equation: $6^{1-x}(7^xx-6*7^x+6^{x+1}) $ I have no idea where this came from. I'm guessing it involves taking the derivative to make it a normal geometric series, but I have no idea. Any help would be appreciated.  In general, how would could I find an equation for $\sum_{n=1}^x a^n*p(n) $ where a is a rational number and p is a polynomial?


How do you copy a record in a SQL table but swap out the unique id of the new row?

comes close to what I need, but my scenario is slightly different. The source table and destination table are the same and the primary key is a uniqueidentifier (guid). When I try this:  insert into MyTable     select * from MyTable where uniqueId = @Id;   I obviously get a primary key constraint violation, since I'm attempting to copy over the primary key. Actually, I don't want to copy over the primary key at all. Rather, I want to create a new one. Additionally, I would like to selectively copy over certain fields, and leave the others null. To make matters more complex, I need to take the primary key of the original record, and insert it into another field in the copy (PreviousId field).  I'm sure there is an easy solution to this, I just don't know enough TSQL to know what it is.


Proof that $A$ is a subset of $B$ if and only if $A \cup B = B$

Let $A$ and B be two subsets of the universal set. Give a rigorous proof of the following theorem. $A$ is a subset of $B$ if and only if $A \cup B = B$.  I'm not sure how to prove this. I'm not sure how you do a rigorous proof.


How to convert date as string to date type

I have a variable '2019-05-30 21:01:09' that needs to be converted into 2019-05-30 21:01:09. What is the best way to go about this.


Why I can See EXTRA info with the hex editor and not with an EXIF tool

How do I know my image is altered or not? Is there a tool or a method to know all the related stuff to the photo from Metadata or something else?  P.S: Sometimes using a Hex Editor like Hiew will give you more info than Photoshop or exiv2 tool.  EDIT: Why I can See EXTA info with the hex editor like Camera type or Author and can not see them with exiff tools ?


As in the title I have to evaluate this triple integral: $$\iiint_{[0,1]^3}\frac{dx\,dy\,dz}{(1+x^2+y^2+z^2)^2}$$ I've been trying to solve this since a week ago. The first thing I've done was understand the meaning of the integral. I think this integral represents the mass (as an example) of a unitary cube which contains materials of different density. The values of the materials density are, point for point, the inverse of the square of spheres centered in the origin plus one. The max value of the density is $1$ in the origin of the cube and the min value is $\frac{1}{16}$ on the opposite vertex. I suppose that the value of the integral is $\frac{\pi^2}{32}$ I've tried to use simple substitutions without any results, so I tried to change the coordinates with spherical and cylindrical systems. The spherical coordinates give me an incredibly long sum of integrals and I doubt that they're all integrable as elementary functions. The cylindrical gives me the following result $$\frac{\pi^2}{16}-\int_0^\frac{\sqrt2}{2}{\frac{\arctan{\sqrt{\frac{u^2-1}{u^2-2}}}}{\sqrt{2-u^2}}du},$$ which I'm not able to solve. My instinct tells me that there is a trick in some steps where I can observe that a difficult integral actually is exactly half of another one simpler but I can't figure out where. I'll appreciate any kind of suggestions.


Contents of transaction log file in more detail

I have a question regarding transaction log (let’s just call it LDF for short) contents. I am assuming a database with full recovery model.  I have read that LDF file contains (logs) each and every operation to the database (that is in full recovery mode). How is it different from logging during BEGIN TRAN; COMMAND(s); COMMIT? I am asking because apparently you can roll back transactions, but you cannot roll back standard commands (in full recovery mode).  I guess that during transaction the contents being logged into the LDF file are different than in regular full recovery logging. Is that right? How is it different? Is it only the inclusion of “undo” operations for each action?  On a related note, I have heard that there are commercial tools to "rollback/undo" standard queries using full recovery LDF file. How do they do it? Do they analyze the LDF contents and try to come-up with inverse/undo operations?


Let $X$ and $Y$ metric spaces, $f$ is an injective from $X$ to $Y$, and $f$ sets every compact set in $X$ to compact set in $Y$. How to prove $f$ is continuous map?  Any comments and advice will be appreciated.


Maximum and minimum distance of two points

Consider six distinct points in a plane. Let $m$ and $M$ denote respectively the minimum and the maximum distance between any pair of points.  Show that $M/m \geqslant \sqrt{3}$.


How to get session user id in custome php file

I want user session id in my custom ajax file named "ajax_page.php" below is code that i have placed in that file but i am not able to get object array of $user that i'hv defined as Global $user.             <?php                 define('DRUPAL_ROOT', 'C:/xampp/htdocs/taconsultant/');                 require_once(DRUPAL_ROOT.'includes/bootstrap.inc');                 require_once (DRUPAL_ROOT . 'includes/common.inc');                 require_once (DRUPAL_ROOT . 'includes/module.inc');                 require_once (DRUPAL_ROOT . 'includes/unicode.inc');                 require_once (DRUPAL_ROOT . 'includes/file.inc');                 drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);                 drupal_bootstrap(DRUPAL_BOOTSTRAP_SESSION);                  global $user;                  $uid = $user->uid;    if($_REQUEST['type'] && $_REQUEST['type'] == 'buy_course'){           $cid = $_REQUEST['cid'];          $course = taxonomy_term_load($cid);           echo "<pre>";           print_r($user);           exit;          $log = db_insert('tbl_user_log')                 ->fields(array(                         'uid' => $uid,                         'title'=>$course->name,                         'points'=>$course->field_payment_amount['und'][0]['value'],                         'type'=>'-',                          'date' => date('Y-m-d'),                         ))->execute();      }          ?>  The output i got in console after print_r($user) is   <?php       <pre>stdClass Object          (             [uid] => 0             [hostname] => ::1             [roles] => Array                 (                     [1] => anonymous user                 )              [cache] => 0         )  ?>


Split a plane into smaller plane objects

I just started using Blender and I'm trying to cut a plane in equal squares and have each square be its own separate object. My main goal is create the plane and add a displace and decimate modifier to create a low poly terrain. By cutting the plane in equal squares I'll be able to tile them in a 3D maze game I'm working on. If anyone know a better way to approach this it would also be greatly appreciated.


Regular Expression Match variable multiple lines?

Lets say I have the following text and I want to extract the text between "Start of numbers" and "End of numbers" there are dynamic amount of lines and the only thing which changes in the numbers in them eg: first, second, etc. Each file I'll be extracting data from has different amount of lines between between "Start of numbers" and "End of numbers". How can I write a regex to match the content between "Start of numbers" and "End of numbers" without knowing how many lines will be in the file between Start of numbers" and "End of numbers"?  Regards!  This is the first line This is the second line  Start of numbers  This is the first line This is the second line This is the third line This is the ...... line This is the ninth line  End of numbers


$R$ is commutative, $I$,$J$ are ideals, $I+J=R$, then $IJ=I\cap J$

If $R$ is a commutative ring and $I$ and $J$ are ideals s.t. $I+J=R$ then show that $IJ=I\cap J$.  I've already shown that $IJ \subset I\cap J$, now I need to show the reverse inclusion.   I'm a bit lost, so far i'm just figuring out what pieces I have to work with.  Such as:  $\forall r\in R$ $\exists i\in I ,j\in J$ s.t. $i+j=r$  $\forall ij\in IJ$, $ij=i_1$ and $ij=j_1$ for some $i_1\in I$, $j_1\in J$.  Also, if I let $x\in I\cap J$, then $x=i_2=j_2=i+j$ for some $i_2\in I$, $j_2\in J$  Anyone, having problem getting to the conclusion here, thanks in advance


Were the Middle-earth Wizards born as Wizards?

In Middle-earth, Elves were born as Elves, Hobbits as Hobbits, and so on. Were the Wizards born as Wizards, or were they young men that somehow evolved as they matured into Wizards?