It looks as though my question might turn out to be  If so, it does not need an answer, after all, thanks.  ORIGINAL QUESTION  Why does convention recognize $\pi\approx 3.14$, rather than $2\pi\approx 6.28$, as the fundamental quantity?  You have some contour integrals that come out to $\sqrt{\pi}$ or $1/\sqrt{\pi}$, so that's kind of neat; but I don't know that that arises more often than, say, $1/\sqrt{2\pi}$, as in the Fourier transform. Anyway, all that special-function action is so advanced that it misses what might seem to some to be the main point: $2\pi$ is a circle. How much more fundamental can you get than that?  But mathematicians are smart people (and I am just a building-construction engineer), so I do not doubt that a good reason exists. I just do not know what the reason is. Hence the question.  Why wasn't some other symbol defined, $\kappa\approx 6.28$?

Inspired by a paper (from 2001) entitled :  Why is $\pi$ = 3.14... instead of 6.28... ?  Setting $\pi$ = 6.28 would seem to simplify many equations and constants in math and physics.  Is there an intuitive reason we relate the circumference of a circle to its diameter instead of its radius, or was it an arbitrary choice that's left us with multiplicative baggage?


As of now we have UBUNTU 14.04.3 LTS, UBUNTU 16.04 LTS installed on VMWARE Machine and Physical Server.  Also we are using Ubuntu 14.04.5 LTS and Ubuntu 16.04 LTS Cloud images.  Could you please let me know what's the exact Kernel Versions we need to install on the server inorder to fix the images for Meltdown and Spectre CVE-2017-5753 and Meltdown CVE-2017-5754?  Please share the exact kernel versions for OS   UBUNTU 14.04.3 LTS, UBUNTU 16.04 LTS CLoud OS Ubuntu 14.04.5 LTS and Ubuntu 16.04 LTS

Any questions relating to status updates, or asking if anything is going to be patched for these vulnerabilities should be closed as duplicates of this question.    are in the news right now and sound pretty severe. I don't see any security updates from Ubuntu that cover these vulnerabilities.  What is Ubuntu doing about these vulnerabilities, and what should Ubuntu users be doing?  These are CVE-2017-5753, CVE-2017-5715 and CVE-2017-5754.


I installed Ubuntu 14.04 with wubi inside Windows 7 and then after installation is completed and system is about to start it shows  -Serious errors were found while checking the disk drive for /.   If I ignore then it shows: -The disk drive for /tmp is not ready yet or not present  Then if I skip -An error occurred while mounting /.  If I skip that too it shows Ubuntu 14.04 LTS tty1 requires login. and gui never shows.  Why does this happen? I tried reinstalling and same thing happens. Any idea?

I have just set up my new system by creating three partitions on a whole hard disk (/boot, /home, swap and /). I saw  article and now I am getting those errors and the system provide me with some options: (I to ignore, S to skip mounting or M for manual recovery).   I am forced to choose skip mounting because I don't know what manual recovery is. Despite the error I get I think that the system boots okay because I can use the system but this error is very annoying.


In spite of English the German language does not have Present/Past Progressive, although both languages have the same root. When and why did the progressive tenses develop and became part of the English language?    Note: this is not a duplicate of  because that one does not explain WHY (in spite of German) it has happened as requested here.

What is the origin of the suffix -ing used to form gerunds and present participles? Why is the suffix the same in both cases?


Using the package enumitem I can edit my enumerations to use roman numerals, so that  \begin{enumerate}[label=\textsc{\textsc(\roman*)}] \item A \item B \item C \item D \end{enumerate}   yields the expected  (I) A (II) B (III) C (IV) D   but in computer modern with nice formatting bits. How can I change this so that (IV) becomes (IIII) instead?

I am working on a diplomatic edition of a 15th century book and it numbers its folios using the standard roman numerals of the time.  I've been using the following to get the page/folio in my header:  \newcommand{\rectoverso}[1]{\ifthenelse{\isodd{#1}}{r}{v}} \newcommand{\folio}[1]{\the\numexpr (#1+1)/2\relax} \uppercase\expandafter{\romannumeral \value{\folio{\thepage}}}\rectoverso{\thepage}   This works great, but the problem is that the roman numeral sequence is off of what I need.  Instead of I, II, III, IIII, V, VI, VII, VIII, IX, X, I get the subtractive IV (somewhat understandably, given it's the far more common one in modern usage).  My source text only (and always) uses the additive 4 in the one's position: 24 is XXIIII, 34 is XXXIIII but 44 is XLIIII.  9 is universally rendered subtractively as IX or XC.  Is there a package that allows for some control over which numbers are done additively and which are subtractively, or would my best option be to write my own custom definition to account for the specific style used in my book?


I was reading about linked lists. I found that : Removing an desired element from a linked list takes O(n) running time, where n is the number of elements in the list.    But in this webpage I found that deletion an element from a linked list is: O(1).   Which one of the above big O notation is the correct one for deletion from a linked list.  Thanks

I may be teaching a "Java crash-course" soon.  While it is probably safe to assume that the audience members will know Big-O notation, it is probably not safe to assume that they will know what the order of the various operations on various collection implementations is.  I could take time to generate a summary matrix myself, but if it's already out there in the public domain somewhere, I'd sure like to reuse it (with proper credit, of course.)  Anyone have any pointers?


I am new to Ubuntu User. I would like to install ubuntu on my own external hdd. When my hardisk connect to my laptop, I can use Ubuntu, like this without external hdd, I would like to use windows without any boot errors.   The question may be already answered but I cannot find the link. Please help me how to do that or give me a link already answered.  Thanks  bawlone89  Myanmar

OS: Windows 7. I want install Linux Ubuntu on portable external Hard Drive USB 2.0. I read a variety of methods, but I'm confused by contradictory advices and methods. Actually, installing Ubuntu on anything other than clean PC looks much more complicated than installing Windows. I need to have Ubuntu package + Python 2.7 + C compiler installed. My external hard drive is partially filled, I need to keep all files.   Will Ubuntu run entirely on external hardrive, without writing anythinhg to Windows system folders and to registry?  Can anyone post detailed guide how install Ubuntu on external hard drive?


Generally, how shall I use the built-in generic delegate EventHandler<TEventArgs> provided by the .NET Framework? Specifically, I saw an example  Class MyEvent{     ...     public event EventHandler<MyEventArgs> SomeEvent;      ... }  Class EventDemo{      ...      void MyEventHandler(Object sender, MyEventArgs e){         ...     }      ...      myEvent = new MyEvent();      myEvent.SomeEvent += new EventHandler<MyEventArgs>(MyEventHandler);  }   Can    myEvent.SomeEvent += new EventHandler<MyEventArgs>(MyEventHandler);   be replaced by  myEvent.SomeEvent += MyEventHandler;   In particular, does new EventHandler<MyEventArgs>() try to convert the function MyEventHandler from one type to another type?   Thanks.

Take the below code:  private void anEvent(object sender, EventArgs e) {     //some code }     What is the difference between the following ?  [object].[event] += anEvent;  //and  [object].[event] += new EventHandler(anEvent);   [UPDATE]  Apparently, there is no difference between the two...the former is just syntactic sugar of the latter.


I'd like to create lights and shadows in a 2D environment, like in the image below:    I did several searches but got no results. Do you have any hint?

I want to have 2D lighting that can be blocked by in-game objects. My game has a top-down view and all game objects are described by rectangles.  Let's say I have a 10x10 world and I place a light at 1x1 and walls all around that light. I want to be able to see the light source at 1x1, but not anywhere else, because it's blocked by the walls.  I've heard of casting light rays works, but how does that really work?


I've been asked to compute the minimum sample size for an AB test that my company is conducting for a tweaked recommender system.  We will choose two groups of users, one of which sees only the A version and one of which sees only the B version of their recommendations. We will compute conversion rate as the number of times users choose items from their recommendations divided by the number of times they view their recommendations. Many users won't view their recommendations at all during the test period while some users will view their recommendations dozens of times.  Question: Should we calculate the overall conversion rate for each group and compare using a two-proportion Z-test? Or should we calculate the conversion rate for each user who viewed their recommendations at least once and compare the average of the individual conversion rates for each group using a two-sample t-test? I'm leaning toward the second option because it weights each user equally. Also, the first option would involve many observations that are not independent.

Context Consider the following scenario for a company selling goods online. A user can purchase several items (i.e. basket of items), some of which are of particular importance and are tracked specifically (let's call them star items). We wish to test a change in an algorithm (e.g. recommendation, risk assessment, add targeting, whatever...) which may influence both the number of star items sold, and the total sales.  This a standard A/B test setup - the randomization unit is at the user level. The purpose of the A/B test is to compare the impact of the algorithm change: the control group has the original algorithm and the variant has the new algorithm One key metric of interest is defined as the ratio of star items sales over total sales. This is a sum of across all transactions of all users in the scope of each A or B group. This means that the analysis unit is at the transaction level, which is different than the randomization unit Metrics are calculated over the entire duration of the test (e.g. 2 weeks)  Detail of the metric used Given group A and a set of users $U_A = \{u_1,u_2,...,u_{N_A} \}$, each user is involved in a number $t_{u_n}$ of transactions. The set $T_A$ of all transactions of all users in group A for the duration of the test is $T_A = \{ t_{u_{11}}, t_{u_{12}}, ... t_{u_{nm} }  \}$. The metric of interest for group A is defined over all transactions in scope of group A. The sums are at the transaction level, not the user level. $$\text{Metric}_A = \frac{\sum_{t_{i} \in T_A} \text{sales star items }$}{\sum_{t_{i} \in T_A} \text{sales }$ }$$ Of course, we could modify the definition to calculate the user level mean and that would simplify everything, but that is not the metric that is being used. Questions What statistical test could be used for such a metric ? An additional consideration is that although we can safely assume that users are i.i.d., it is most likely wrong to assume that individual purchase baskets are i.i.d. for the same user. Here are a few ideas I came across, have any A/B testing practitioners come across similar metrics in the past ?  z-test of proportions Bootstrapping and Jacknife Delta method Change the metric (last resort)   Edit - Some clarifications The reason behind this question is that I have often seen the z-test of proportion being used in this situation. Popular tools used for A/B testing often default on the proportion test and business users rarely check the underlying assumptions required for the test to be valid. @dnqxt's answer below is a good example: "Just use the z test of proportion !" - but I would like to see a rigorous statistical justification as to why (or why not) this test can be used in such a case. I personally don't think that using a z-test of proportions would work here as sales from a purchase event are not Bernoulli trials. I argue that we cannot say that each dollar sold in the denominator can be viewed as a Bernoulli trial resulting in 0 or 1 star item dollar sold in the numerator. Moreover, since the randomization unit is at the user level, purchase events of the same user are not independent (but I would say that is a secondary issue). I could be wrong here, so please feel free to prove this otherwise ! We could also change the metric to make it a Bernoulli/Binomial which converges to Normal by using counts, but that would be a last resort solution $$ \frac{\# \text{sales with star items} }{\# \text{sales}} $$


In my Ubuntu after login by my user account, I want to create another user I intered bellow commands  :  adduser alex_2 -m   I created new user, but when I want to login, Ubuntu needs passwords and I did not gave that any password, as I mentioned I just typed adduser alex_2 -m. Am I should set a password? Also I can not login even when I set password blank .

I tried to create a new user account from 'User Accounts' in the System Settings.    First I pressed the Unlock button and the + button.  Then I chose Standard account type and filled account name. Then I pressed Add button and the account is shown there. It didn't asked for any password when the new user account was created.   When I tried to access the new account after a system restart, surprisingly, it asked for a password. Why they asked a password now?


I've just been going through and unifying  with  because though the first existed before and the second didn't, the second is much closer to the formal name of the thing to which it refers to. So far, so ho hum.  But now that I've adjusted all the questions so that they're tagged with the improved tag, I can't nominate any synonyms for it. OK, I'm not sure if I have 5 upvotes in the tag (I might do) but when I look at the list of top users in it, it's empty! “A-hah! Needs a recalc!” I think.  So, how often are such recalculations performed? How long do I have to wait before I can see whether it is reasonable for me to try to propose a tag synonym?

How often is my total score for a particular tag calculated. I've gotten several recent upvotes under android but my total score hasn't seem to have gone up. When I say total score, I mean like the total score displayed on this .


We have a sandbox with a Connected App configured to use the JWT flow for machine-to-machine authentication in a CI/CD setup. We would like to run a nightly refresh from production, but this broke the JWT flow: although the key associated to the connected app we use to sign the JWT is not changed during sandbox refresh, the consumer id is changed every time we refresh the sandbox. Looks like it is expected as per this  Can anyone please advise how can we get access to the sandbox after we have refreshed it, in CI/CD? If we have access to production, is there a way we can use it to get login access to sandbox? Or there are other automated ways? Also, came across this  but it talks about using new consumer key and not automation. Thanks for the inputs

I'm trying to connect to a sandbox using the sfdx cli and the JWT flow through force:auth:jwt:grant. According to , we can use the same connected app information from Production to connect to our Scratch Org.  Is it something that should work for sandbox too ? I'm getting a "Failed: Not approved" error.  Connected app in sandbox comes from the refresh but has a different consumer key. The Permission set is set correctly on my user.  Is there a way to connect to a recently refreshed sandbox using the JWT flow (without manually changing something like the consumer key) ?


I wanted to prove that the center of the symmetric group $S_n$, $n\geq 3$ is trivial. Is my argument correct?  Suppose $\alpha\in Z(S_n)$, that is $\alpha\beta=\beta\alpha$ for all $\beta\in S_n$. We can consider, for instance, $\beta_j=(1\,2\dots j-1\,\, j+1\dots n)$ a cycle of length $n-1$ that only fixes $j$ (we know such cycle exists because $n\geq 3$).  $$\beta_j\alpha=\alpha\beta_j\Rightarrow \beta_j\alpha(j)=\alpha\beta_j(j)\Rightarrow \beta_j(\alpha(j))=\alpha(j)$$  so $\beta_j$ fixes $\alpha(j)$, but $j$ is the only letter fixed by $\beta_j$, therefore $\alpha(j)=j$.  Analogously, if we consider $\beta_i$ for any $i=1,2,3\dots,n$ we get $\alpha=id$. Hence $Z(S_n)=\{id\}$.  Thanks in advance!

Find the center of the symmetry group $S_n$.   Attempt:  By definition, the center is $Z(S_n) = \{ a \in S_n : ag = ga \forall\  g \in S_n\}$. Then we know the identity $e$ is in $S_n$ since there is always the trivial permutation. Suppose $a$ is in $S_n$, but not equal to identity. Now we can imagine the permutation as bijective function that maps from $\{1,2,\dotsc,n\}$ to $\{1,2,\dotsc,n\}$.  So suppose $p$ is a permutation map. Then $p$ maps from a location $i$ to a location $j$. Take $p(i) = j$ where $i\neq j$. Let $k$ be in $\{1,2,\dotsc,n\}$, where $k$, $i$ and $j$ are all different elements. The cycle $r = (jk)$, then we will see if this commutes.  $rp(i) = rj$    Can someone please help me, I am stuck?  Thank you.


How can I make it so input from the user will only be accepted if the format is exactly "xxx-xxx-xxxx" where x can be any number, but only numbers, and the dashes have to be there, in those groupings. Basically, it's supposed to accept phone numbers. Right now I have:  Scanner input = new Scanner(System.in); String in = input.next(); // Stores user input as a string  if (in.contains("[a-zA-Z]") == false && in.length() == 12) {     System.out.println("Number Accepted"); } else {     System.out.println("Number Rejected"); }   Currently, it will reject numbers that are greater or less than 12 characters, but it will accept anything that is 12 characters, even if it has letters. I also do not a solution to grouping the numbers with the dashes correctly, as the user should only be able to input 3 numbers, then a dash, then 3 more numbers, then a dash, and then finally 4 numbers.

I'm trying to put together a comprehensive regex to validate phone numbers. Ideally it would handle international formats, but it must handle US formats, including the following:   1-234-567-8901 1-234-567-8901 x1234 1-234-567-8901 ext1234 1 (234) 567-8901 1.234.567.8901 1/234/567/8901 12345678901   I'll answer with my current attempt, but I'm hoping somebody has something better and/or more elegant.


I have created a program that will scan a text file, switch certain characters, and print into another file. I created a program that changed "|" to "\t" AND "\n" to "". There is a run-time error saying, "Exception in thread "main" java.lang.NullPointerException         at Nov5.main(Nov5.java:20)"  If anyone knows how to correct this error and get my program running, that would be great. Thanks so much!  import java.io.BufferedReader; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import java.io.BufferedWriter;  public class Nov5   {  public static void main( String args[] ) {      try     {          BufferedReader br = new BufferedReader(new FileReader( "OneRecord.fna" ));         BufferedWriter bw = new BufferedWriter(new FileWriter( "OneLineRecord.faa" ));          String line;         {              while ((line = br.readLine () ) != null)             line = line.replace ( '|' , '\t');             String replacedString = line.replaceAll ("(\\n)", "");             bw.write( line );          }         br.close();         bw.close();     }     catch( IOException e )     {         System.out.println( "error" );     } } }

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I was going through an , where I found a bug. The favicon of all the SO accounts is that of 3D printing SO site.        In addition to the accounts tab, the top answers tab also shows the same favicon:        Is this a bug, or some cache problem in my PC?

This just started happening on non-meta sites:    Meta Stack Exchange's logo in the "Featured on Meta" section seems to have been replaced with some site's logo. Mousing over the icon does produce "Meta Stack Exchange" as normal, and the link works.  It even happens in the reputation and inbox dropdowns no matter what site they're visited on:    All the HNQs are showing as being from 3D Printing now:


"I'm preparing for my next exam". "I'm getting prepared for my next exam" "He was drunk" vs. "He got drunk" Does "Get" change the meaning of "Drunk" & "Prepare"? Also, is "Be prepared" or "Be prepare"?

What is the difference between the two in the title? E.g. be offered a job or get offered a job? Is "get offered" even grammatically correct? And why?  I have a feeling that the first one sounds natural but I can't find the evidence of the second one being incorrect.


Two simple questions  1) Can users go onto another users page and down vote all their posts?  2) If so would they get banned?  Lately I have been receiving slow increments of downvotes, I am not sure if I offended any one but the thought that came in mind is that a particular user could be grinding my gears

I just noticed that I lost a bunch of points from my reputation score, and I used the "reputation" tab on my user profile page to try and track down the cause.  During my investigation, I noticed there was an unusual event of type "reversal". In the normal place of a question title, it says "voting corrected".     What does this mean, and what caused it?  Did I do something wrong? Why did I lose all of that reputation? Is the system punishing me for leaving too many good answers?  Is there any way to earn it back?


I installed Windows 7 onto a SSD with the motherboard in IDE mode. Now when I try to change the motherboard to AHCI mode, Windows 7 will not successfully boot (blue screens mid-boot).  How can I add AHCI support to the Windows 7 installation? If I can not add AHCI support I plan on doing a reinstall of Windows 7 with the motherboard in AHCI mode.  As a note, I just did the Windows 7 install yesterday, so I don't need to worry about losing any data on the hard drive due to reinstall.

Can I enable AHCI after installing Windows 7 in a SATA drive that was on IDE mode?


i computed $|x|<e$ by using $\lim\limits_{n\to\infty}\bigg |\frac{a_{n}}{a_{n+1}}\bigg |$. But shouldn't there be more solutions since $x\in \mathbb{C}$?

When does $P(x)=\sum_{n=0}^{\infty}{\frac{n!}{n^n}\cdot x^n}$ with $x\in \mathbb{C}$ converge?   My Attempt:$$\bigg |\frac{a_n}{a_{n+1}}\bigg |=\left(1+\frac{1}{n}\right)^n\to e$$ So it converges for $|x|<e$. Now I wanted to check wheter the series converges for $e$ or $-e$.  I fail to either prove the divergence or convergence. Can you help?


Consider a database table holding names, with three rows:  Peter Paul Mary   Is there an easy way to turn this into a single string of Peter, Paul, Mary?


This may be a dumb question, but does anyone have an intuitive interpretation of when the set will be closed and when the set will be open, in the topological spaces?    I am confused especially when I heard that $\mathbb{Q}$ in $\mathbb{R}$ is neither an open nor a closed set. To me, I believe a set with a single element x, {x} should be a closed set, because we can also re-write it as [x, x].    I am very new to topology, so I am familiar with little theorems or assumptions in topology.    Thanks!

I've been studying introductory topology for a little bit now. I came across  video which explains open sets in a way I have never thought of. Even though the video is pretty elementary, I didn't know that open sets worked in this sense. If I were to 'imagine' moving toward the boundary of an open subset, I would just appear on the other side? Is this correct?  Is there any kind of intuitive way of thinking about the concept of an open set versus a closed set without just saying one is outlined with a dotted line versus a solid line. I ask this because I have never really understood why something like a domain is generally defined to be a set that is both open and connected. Why does it matter if it is open or closed? Is this just a formality? Or are open sets something that are special. I am curious because I would like to know if I have been thinking about open sets completely wrong.  Thanks.


I have to design (not code) the following pages for a company, they have some wireframes of the main pages, how much should I charge for:   Design the marketing landing page Design the ecommerce store pages (store,user settings,checkout, etc) Design the user back end pages (user profile, dashboard, store stats, user store, payouts, etc) Design the admin backend pages (manage users, manage payout, moderation, reward programs, etc) The companion mobile app UI.   Thank you.

I was hoping I would find some people in the industry that could help me decide what's the best price to charge to design (in this case) business cards.  What are standard prices for professional designers?  From a firm point of view? From a freelancer?  I don't want to overcharge clients but I don't want to ruin the industry by underselling my services.


Let $n,p > 1$ be positive integers and $p$ be prime. Given that $n \mid p−1$ and $p \mid n^3 −1$, prove that $4p − 3$ is a perfect square.  Iran 2005 My solution; $n \mid p−1 \implies kn + 1 = p\tag{1}$ $p \mid  n^3 −1 \implies p \mid n^2 + n + 1$ (as $ p \ge n + 1 > n-1.$) Putting (1) in the above equation implies; $$ nk + 1 \mid n^2 + n + 1 +\ [+(k-1)n - (k-1)n] \\\implies nk + 1 \mid n + 1 - k \\\implies |n + 1 - k| \ge nk + 1$$ Case 1 : $ n + 1 - k > 0$ Then, $n \ge n(k+1)$ which is not possible. Case 2: $ n + 1 - k < 0$ Then, $ k \ge n(k+1) + 2$ which is also not possible, Hence $ n + 1 - k = 0$ Putting this into (1) $\implies p=n^2 + n + 1 \implies 4p-3 = (2n+1)^2$ I read through my solution and everything seems to check out, but I have never done the splitting into two cases thing before so I am just suspicious about that. Could you please tell me if my proof is correct and checks out, Thanks!

I really need some help at this problem:     Let $p$ be a prime number and $n$ a natural number, $n\ge2$ such that $n  \mid  p-1$ and $p \mid  n^3-1$. Prove that $4p-3$ is a square.   So $p \mid (n-1)(n^2+n+1)$  What if $p \mid n-1$?   Treating the cases wasn't too efficient. I was thinking about Fermat's theorem but it didn't helped really much.   A hint would be really apreciated. Thanks!


I'm quite the beginner with blender (just finished the donut) and I wanted to make a 3D replica of a radio that I have, but I have no idea how to make the little holes properly that it has in it.I assume the best way to make it is with the boolean modifier but it takes my pc like 30 seconds to calculate. Is there a better way to do this?  These are my modifier settings:

I’m trying to create a circular shaped grid, similar to the one in the pic. That’s my first attempt, created by arranging several cylinders with an Array modifier and then cutting the holes via the Boolean modifier.  Now you will probably notice that it looks not elegant in any way. I’d like to have the holes perfectly arranged and in a correct order, so that there are no half holes at the border of the mesh, for example.  How would you do this?   I tried working with Dupliverts but that didn’t work out well.


I can find PyCharm Pro, PyCharm CE, and PyCharm EDU in Ubuntu Software app, but I am trying to get better with apt-get commands in a terminal window.  Yet when I type  apt-cache search PyCharm   I am unable to see it in the list that is returned.  Is some software not available through apt-get?  Do I need to connect to some repository to complete my apt-cache list?  I have been using Linux for 2 days.  Thanks!

I want to install the PyCharm IDE by JetBrains for Python (free community edition).  I managed to , but I do not know how to install it. Can you please help me?


I have htmlElement object and I need check it on exists in DOM: It doesn't exist by selector.  $(htmlElement).length // 1  $(htmlElement)[0].className // k-button k-state-hover  $(htmlElement)[0].nodeName // LI  $("li.k-button.k-state-hover").length // 0

How can I check the existence of an element in jQuery?  The current code that I have is this:  if ($(selector).length > 0) {     // Do something }   Is there a more elegant way to approach this? Perhaps a plugin or a function?


When reading TeX for the impatient, we learn that:   The "eyes" of TeX convert the input file into a sequence of characters; Then the "mouth" of TeX converts the character sequence into tokens; Then that "the esophagus" develops the tokens which are sequences of primitive commands; Finally "the stomach" performs the operations indicated by the commands.   I have never seen other languages using this token system. It is not used by Pascal, C, PHP, SQL, LISP, etc.   Why does TeX need tokens? What are they for ? Why do other computer languages do without problems?   This question is not duplicated because it ultimately asks why TeX uses tokens, for what purpose, what is their purpose, what are the problems that justify their use. This system of token has a purpose, a motivation, a finality, attached concepts, which?

Please forgive such a basic question, but I did some Google searching and looked around on this site,  and while there are many threads and online resources that involve tokens, I can't seem to find a direct explanation of what a token is, specifically in the context of TeX, LaTeX, etc. Perhaps there is a good explanation of tokens in the TeXbook, but I don't have a copy of it.   gives me some idea:     A token is a string of characters, categorized according to the rules as a symbol (e.g., IDENTIFIER, NUMBER, COMMA).   but this is a bit too general for me to understand. Taking a guess based on the Wikipedia definition and , is it correct to say that a token is "a thing that has a catcode"? (which, even if true, does not seem entirely satisfactory as an answer: what characterizes the things that are given catcodes?)  Some illustrative examples, and non-examples, of tokens in the realm of TeX, LaTeX, etc. would be much appreciated.


I'm trying to learn . I need this for box designs of different sizes, and so I found this tutorial that makes it easy to create with the use of Photoshop Actions.   While fast-reading the tutorial, I found around Step 10 onwards, the shape of the box is explained on how to shape it... For me, I need these shapes of different sizes (varied length, depth, and height).   How can I set the shape to be varied on user's input? For example, when the action is running, how can I alter the tutorial's method to ask user input for the length, depth and height?   Also, is there ANY software (free/paid) that can let me create these boxes hassle-free? Any Action/script/template in Photoshop that can let me change the dimensions as per requirement?  Thanks.

I used a  for Photoshop, and was able to create some boxes with it. These boxes were shaped in the form of Software Boxes, while I require Customized Dimensions Boxes, which currently I'm trying to create with .   This software creates a box with no Reflection, and I disabled shadows in it, cause it doesn't allow transparency while saving to png. It allows custom dimensions, rotation, etc settings, but doesn't save transparency or reflections.  Here's the difference in output from both the above mentioned apps.. I'm trying to get the reflection + shadow in the 3D box Generator to the Protomissume generated image.   My question: How can I create similar Reflection & Shadow in Photoshop?   Images:  3D Box Generator   Protomissume Box Shot   Thanks for any help.  Here are the Box Shot images (Photoshop, Protomissume) :  [  ]


I have answered a question. I would be the 25th to give the answer. My answer is shown at the last in the list. I am sure that my answer is correct and will solve the questioner's problem. How can my answer be shown on the top or near by so that others give a glance.

It happens sometimes to receive or see a very good answer that arrives very late and that would deserve more upvotes. What can be done to give a boost to them? I would happily spend some of my reputation points to be able to give them such boost. This is not merely a question of reputation, but the idea is to let the answer "bubble up" faster so that it can be seen easily by other people to look into question. I hope I explained my question so that is understandable. Most of you got the point and there are some interesting proposals like the one that proposes to put randomly an answer at top. But I do have not enough experience to say if there is one that could solve the issue or not. I would be curious to know what Jeff thinks about it, if it feels there is something that can be improved or not.


The title says it all: can I test, inside a package or a macro, whether \errorstopmode is in effect?

How can one get the current error mode. e.g., is batchmode, scrollmode, etc set? I would like to save and restore these modes in lua or be able to have a macro save the current state that can be called later to restore it.  e.g., \savemode and \restoremode


After a few years of university mathematics I just realised that I do not really know the difference between an axiom and a definition. With some "research" on the interwebs (, ). I think that axioms are definitions that build the foundation of a Theory. E.g. we have group axioms because we build a theory on them. But they are nothing else than a definition and we can check if some object satisfies the axioms/definition to be a group. Lets look at continuity. Its a definition that says when we call a function continuous. We can check if that is the case or not. Its not called an axiom because we first need to define other things to get to continuity, like topology or metric spaces. There can be multiple equivalent definitions, which is the case with continuity. What do you think? Is that a somewhat accurate understanding of the terms?

I am wondering what the difference between a definition and an axiom.  Isn't an axiom something what we define to be true?  For example, one of the axioms of Peano Arithmetic states that $\forall n:0\neq S(n)$, or in English, that zero isn't the successor of any natural number. Why can't we define 0 to be the natural number such that it isn't the successor of any natural number?  In general, why is an axiom not a definition?   Are there cases where we can formulate definitions as axioms or vice versa?


I've had a few situations where someone asks a well-qualified question on SO but it could still use the eyes of an expert in another domain. What would be the best way to approach the following situation?   could have had some profiling done before it was asked but it is reasonably well presented with working code. I made some trivial optimizations just by looking at it logically but I think real improvement needs to be focused on the more technical part of the code.   is another question where it happened. I was eventually able to help but I it took a long time and I have a feeling if a real mathematician looked at it they could have made more useful suggestions.  All I could come up with so far:   Wait and hope an expert in DSP who also uses python notices it and helps. This seems too luck-dependent and would only work for languages with very large communities) Post a new question on  asking for mathematical improvements with links between each question. This seems ok but it seems like it would be better if everything could be contained in one place. Also, it would need to be rephrased in mathematical terms and might miss some optimizations that could be done by doing things a slightly different way with the libraries that are being used. Join general DSP chat and ask for help. I tried this but there is no general DSP chat that I could find.   I look forward to hearing any advice you all have.

I've been a Stack Exchange contributor for a couple of years now, currently most active on . One thing that keeps coming up is questions that would appeal to audiences on two different Stack Exchange sites but there are almost no features taking advantage of these questions. On travel.SE we have crossover questions most often with  and possibly next most often with  - but it can happen with almost any SE site. Today alone we had  with  and  had . I am absolutely sure that this must happen all the time between arbitrary pairs of Stack Exchange sites but the only feature that takes advantage of it is the possibility of migrating off-topic questions which leaves the original question acting as a redirect across the two sites. I think there is a missed opportunity to build the network between sites where users of one site don't realize they could make valuable contributions to a sister site they have had so far little to do with. At the very least there could be a way to "advertise" a question on a second site that could be interested in it. Probably by listing it in the sidebar where there are also links to meta questions, linked questions, related questions, new blog posts, and But there could also be some kind of features that make some sort of acceptable crossposting. There could be gamification/badges added around building cross-site questions or whatever else you can think up. I think this is a great way for people to spread their expertise from their main site onto other sites, to make the network stronger and more cohesive, to bring more attention to questions that would have a divided audience between two sites. I can think only of positives and no negatives. Does anyone else have some ideas to add or think this is a bad idea for any reason?  Example crossover questions: Here are some links to some crossover questions I've been finding in the Stack Exchange network here. (This was previously posted as an answer, but more people wanted it to be part of the question.)   ▶  :   ▶  :   ▶  :   ▶  :   ▶  :   ▶  :   ▶  :   ▶  :   ▶  :   ▶  :   ▶  :   ▶  :   ▶  :


Can someone kind explain the mathematical quantity i to me (which is the square root of -1)?  Just to be clear, I'm not actually trying to understand i per se, I'm just trying to understand how it can possibly be defined as the square root of -1. I know that a square root is a number multiplied by itself to produce the original number e.g. 2 x 2 = 4. But I also recall that the only way a negative number can result from a multiplication is if exactly ONE of the two numbers is negative e.g. 2 x -2 = -4. But if the two numbers being multiplied are not the same magnitude and sign, then you are not actually squaring anything since a square root consists of a number of a given magnitude and sign multiplied by the exact same number with the exact same magnitude and sign. Therefore, it seems absurd to talk about the square root of a negative number.   I have never understood this and the teacher who taught us about i was never able to make it clear to me. It wouldn't surprise me if he didn't understand it himself.   I've wondered about this for many years now and never quite got around to tracking down a mathematician to explain it to me. I was wondering if anyone here could tackle this and help me understand?  I got pretty good marks in math right up until the end of high school - 40 years ago - but never did anything further in math at university or in my career. I'm just telling you that so you have some idea of who will be hearing your explanation.   I know that I learned about i in one of the three math classes I took in my final year of high school but I don't remember if it was algebra, calculus or geometry so I'm going to guess calculus. Please forgive me if I've tagged this incorrectly.

At school, I really struggled to understand the concept of imaginary numbers.  My teacher told us that an imaginary number is a number that has something to do with the square root of $-1$.  When I tried to calculate the square root of $-1$ on my calculator, it gave me an error.  To this day I still do not understand imaginary numbers.  It makes no sense to me at all.  Is there someone here who totally gets it and can explain it?  Why is the concept even useful?


I can't understand why first print is 0.9999999999999 and second is 2.0.  public static void main(String[] args) {         double value = 0.9999999999999999;         System.out.println(value);         value = 1.9999999999999999;         System.out.println(value);     }

public class doublePrecision {     public static void main(String[] args) {          double total = 0;         total += 5.6;         total += 5.8;         System.out.println(total);     } }   The above code prints:  11.399999999999   How would I get this to just print (or be able to use it as) 11.4?


Okay, lets say theoretically HArry had a Desert Eagle handgun each year, and even had it magically upgraded to not jam or break and the proffesors never confisccated it(I added this part to thwart troll answers) Given that any human within 500 feet wouldnt hear a gunshot before a bullet would hit them or have the ability to react quickly enough to dodge one if they saw him shoot at them, on top of the fact they wouldnt expect him to use an unforgiveable curse and so they definitely wouldnt expect HArry Potter to be packing heat wouldnt he have been able to resolve the problems/antagonist in  most books much faster, easier, and would have even been able to avoid being captured a couple of the times he was captured in the book? If he used a silencer with a his invisibillity cloak couldnt he have assassinated people like Bellatrix Lestrange and other death eaters without being caught?by them or the ministry of magic? Technically couldnt Dumbledore have even done this before Harry even started school? Seems like it would have saved a lot of innocent lives, potential danger, time, etc.  Heres the information about how fast a bullet travels and human reaction time etc.     The average bullet travels at 2,500 feet per second (around 1,700 mph). If you reacted to the sound of the gun going off and required 0.20 seconds (twice that of the fastest Olympic sprinters) to react, then you would need to be at least 500 feet away to successfully dodge a bullet. The problem is that sound travels at 768 miles per hour (1,126 feet per second)—about half the speed of the bullet. In this case, the bullet would hit you before you even heard the gun fire off.

We know that wizards in the Harry Potter universe are subject to regular physical harm (e.g. witness injuries from being hit by Bludgers or just colliding with things when playing Quidditch).  Therefore, it's almost a certainty that an average wizard would be vulnerable to, say, a bunch of bullets.   There may likely be spell(s) to protect from projectiles - witness Dumbledore's  deployed when Voldemort sent a bunch of glass at him during the  at the end of Harry Potter and the Order of the Phoenix (according to , possibly an unusually powerful Protego or the Silver shield).   But:   those spells obviously take effort/energy/time to cast (not everyone's Dumbledore) AND more likely than not most Death Eaters wouldn't recognize a Muggle gun for a threat (or realize what kind of threat) till too late.   So, the guns should at best allow an over-matched OotP member (e.g. Harry or Hermione) to greatly equalize the power between any regular Death Eaters and themselves, and even perhaps help against Voldemort (who can't be killed with a bullet, but, at best, would need to expend magical energy and time into conjuring a shield, and, at worst, be stopped/interrupted/driven off).  So I'm looking for an explanation - ideally in-universe, but possibly just some statement by JKR - of why the Muggle-born OotP - who are likely very much at ease AND familiar with Muggle technology and live in the late 20th century - do not use guns. Or, for that matter, ANY Muggle technology of the late 20th century? Cue Arthur C. Clarke's "indistinguishable from magic" meme.  Even if they are on some kind of idiotic moral crusade to never kill their opponents (even the Jedi aren't this dumb), given the time-frame, non-lethal weapons would have already existed, such as rubber bullets and tasers.  NOTE: Please don't offer the "if they do it, Death Eaters would start using guns as well" theory. First, Death Eaters would have used the guns if they knew how to, anyway. Second, the guns, like any "secret weapon", could be reserved for strategic battles, say the defense of Hogwarts in Deathly Hallows.    The origin of the question stems from two things.  First, Harry's fascination with all things that are different in the magical world (e.g. moving photographs), based on his knowledge of the Muggle material world, as well as the somewhat amusing cluelessness of the "Muggle artifacts" expert, Mr. Weasley, regarding Muggle items and how they work.   Basically, from the books, it's clear that the Wizarding world wouldn't know details about guns or what they are for or how they work.  The second thing is it's clear, at least initially, that wizards are afraid of Muggles finding out about them. Hence all the efforts to cloak their society (basically, do you REALLY want every Muggle gunning for you, even with Magic)? The idea of how control over the Muggle world seems to be more indirect, by Death Eaters asserting mind-control over the government. This means there's an implicit understanding by Death Eaters that they don't stand a chance against armed Muggles even given the magical disparity.  Considering Harry and Hermione's overall adaptability and inventiveness (and brains in the latter case), it's mind-boggling that the idea of fighting Death Eaters with modern technology completely slipped their mind. I mean, it's a basic part of human myth (see Steel vs. Magic themes in Conan books, or Beowulf, or heck, A Yankee in King Arthur's Court). So it's not like the idea of using technology against magic would be impossible to come up with. The question begs itself - why not? Considering the fact that Rowling generally tried to be logical and consistent in building the HP universe, I feel like there must be some in-universe explanation for this that I just didn't notice.   (in-universe answers only unless there are some authoritative out-of-universe statements that are part of canon).


Is it possible for a function to have a limit from the left be infinite and the limit from the right be zero if both limits are approaching the same number? I am inclined to say yes, but I am not sure, and is there an equation I could use to demonstrate this?

Is it possible for a function to have a limit from the left be infinite and the limit from the right be zero, both at the same number?


I need to iterate over two lists:  \begin{tikzpicture}[x=5mm, y=5mm]     \foreach \x in {0,2,...,8} {         \node[] at (\x, 0) {value};     } \end{tikzpicture}   The "value" has to be a value from the second list: {2, 3, 5, 7, 11} (yes, these are first five prime numbers).  I know, TeX is not really a programming language, but is there a way to do so?  Nesting foreach doesn't solve the problem:  \foreach \x in {0,2,...,8} {     \foreach \value in {2,3,5,7,11} {         \node[] at (\x, 0) {\value};     } }   The output looks as expected like this:    Solution (thank you Pier Paolo):  \foreach \x/\value in {0/2,2/3,4/5,6/7,8/11} {     \node[] at (\x, 0) {\value}; }

Playing around with pgffor, I'm trying to slightly modify an example from the TikZ/pgf manual:  \path \foreach \x/\content/\style in {%   0/a/draw,   1/b/{draw,red},   2/c/{circle,blue},   3/d/draw% } {   node[\style] at (\x,0) {\content} } ;   Unfortunately, this does not work for nodes with multiple \style options set. TikZ complains with   ! Package pgfkeys Error: I do not know the key '/tikz/draw,red' and I am going to ignore it. Perhaps you misspelled it.    Now, this works perfectly, when I use a comma separated list for some other variable (e.g. \content). So now, my question is: how can I split \style while executing the loop? Obviosly, pgf tries to find one key named draw,red, when it should be looking for two keys instead, namely draw and red.  Is there some clever LaTeX macro that correctly expands the loop variable or tells pgf to expect multiple keys?


I am programmer and I have an idea for a mobile app. I wanted to learn more about UI design and how to provide a better experience for the app user. Are there any courses (preferably free) or books that I can learn design from?

Thanks to the internet, graphic design and programming are becoming increasingly overlapping fields.   As a programmer, I constantly find myself needing basic knowledge of Graphic Design, but have trouble locating thorough yet concise graphic design learning resources, and instead usually find bits and pieces of knowledge applicable to the task at hand.  Can you guys offer some tips or recommend some good books, tutorials, blogs, and websites which provide a beginner level overview of web design that have been, in your experience, effective and high quality learning materials. I'm not looking for tips on how to use image editing tools, but assuming a basic grasp of those, which resources and advice will best help a new designer create professional looking designs?


I have a set of files that contain some information. I am interested in the subset of files that do not contain a specific pattern at all. E.g.    cat file.txt   foo   bar   trivial information some customer data      let’s say that I am interested in files that do not have the line ‘trivial information’. How would I do that? If I do:     grep -v ‘trivial information’      it will not work because the rest of the lines in the file are match to this inverted search so the file.txt will end up in the result. So how do I do an invert match on the whole file and not line by line?

What concise command can I use to find all files that do NOT contain a text string?  I tried this (using -v to invert grep's parameters) with no luck:  find . -exec grep -v -l shared.php {} \;   Someone said this would work:  find . ! -exec grep -l shared.php {} \;   But it does not seem to work for me.   has this example:  find ./logs -size +1c  > t._tmp while read filename do      grep -q "Process Complete" $filename      if [ $? -ne 0 ] ; then              echo $filename      fi done < t._tmp rm -f t_tmp   But that's cumbersome and not at all concise.  ps: I know that grep -L * will do this, but how can I use the find command in combination with grep to excluded files is what I really want to know.  pss: Also I'm not sure how to have grep include subdirectories with the grep -L * syntax, but I still want to know how to use it with find :)


I have a figure with a relatively long caption that goes over a single line, and within that caption I have a footnote. For some reason, the footnote gets repeated at the bottom. I notice this only happens when the figure caption goes over one line, if I shorten the caption to just one line, there is no duplicate of the footnote.  \documentclass[11pt]{beamer}  \usepackage[gen]{eurosym} \setbeamerfont{caption}{size=\scriptsize}  \renewcommand*{\thefootnote}{\fnsymbol{footnote}} \renewcommand*\footnoterule{} \setbeamerfont{footnote}{size=\tiny}  \setbeamersize{text margin left=7mm,text margin right=7mm}  \begin{document}  \begin{frame}{Slide Title}     \addtobeamertemplate{footnote}{}{\vspace{1.5ex}}     \begin{figure}         \centering         \includegraphics[width=0.7\textwidth,keepaspectratio]{example-image-a}         \vspace*{-3mm}         \caption{My looooooooooooooooooooooooooonooooooooooooooog figure caption\footnote{Some footnote}\tiny(source: source)}     \end{figure} \end{frame}  \end{document}     How do I correct this behavior?

Maybe this is an easy one, but I struggled with this now too long :)  I want to have a footnote in a caption of a figure, see the example.   \begin{figure}[!ht]   \caption{a figure caption\footnote{where i got it from}}   \label{somelabel}   \begin{center}        \pgfuseimage{...}   \end{center} \end{figure}   The compilation error reads as follows  ! Argument of \@caption has an extra }. <inserted text>              \par  l.192 ...i got it from}}   The actual tex code for my figure with the answer of Leo  \pgfdeclareimage[width=6cm]{aba.medcenter}{aba.medcenter}  \begin{figure}[!ht]   \begin{minipage}{\textwidth}     \caption[Medcenter Monthly Medication System]{Medcenter\textsuperscript\textregistered Monthly Medication System\footnote{Quelle Bild: http://www.amazon.com/dp/B000RZPL0M}}     \label{aba.medcenter}     \begin{center}       \pgfuseimage{aba.medcenter}     \end{center}   \end{minipage} \end{figure}   leads to the error  ! LaTeX Error: Command \itshape invalid in math mode.   in the same line. If I comment out the foot note, everything compiles fine. \textsuperscript\texttrademark isn't the problem, too.


I've searched inside of folgunthor and searched the dead adventuror and it is not there, any help? I do not know where to go next.

I'm at Reachwater Rock and I've encountered a series of doors, the first I had to open using the Emerald Claw I found near a body, but now the door's telling me to use an Ivory Claw. Where can I find it, because I don't have it in my inventory yet.


I've tried executing the below program and the output looks unusual.  public class FloatingPointIssue {  public static strictfp void main(String[] args) {      float floatValue  = 277677.86f;     double doubleValue  = 277677.86;      System.out.println(floatValue);     System.out.println(doubleValue);  }   Output :   277677.88 277677.86  There is absolutely no issue using double but when I tried the same with float, the output is not as expected. Can someone try to explain me what's happening internally(while using float) that actually caused this issue.  Many thanks :)

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


I'm pretty new in the world of KDE but chose to give Kubuntu 16.04 a try on both my Desktop and my Laptop. Both are fairly recent installations and haven't been modified that much.  Now for my problem:  I simply wanted to change my theme to a dark one in the System Settings. So I went to Workspace Theme > Look & Feel and clicked on "Breeze Dark". So far so easy. But something is not right.  The task bar changes, the plasma search bar changes and e.g. the background of the dolphin main view changes. But that's it. The system settings window is still white, the dolphin sidebar is still white, other qt apps (that should be affected by the theme change) still remain white. Even multiple restarts didn't help anything...  Here is a screenshot of dolphin so you can see what I mean:    The issue appears on both Desktop and Laptop which should exclude a hardware fault. Maybe I've done something wrong during installation.  I hope anyone can at least give me a hint of what I might've done wrong or how to gain additional information. Nobody on the entire Internet seems to have the same problem as far as Google is concerned.  System Specs (in case needed):   Kubuntu 16.04 KDE Plasma Version (Desktop): 5.6.5 (upgraded it in the hope of fixing the issue) Screenshot of "About System" Screen for additional information:      EDIT: Ah, of course, just after posting the question I found  (if not exactly the same). But the solution didn't work for me as I've already tried updating Plasma.

I'm on Kubuntu 16.04, with kde 5.6.5, and window background color is not applying (always the default white)  Here is a screenshot of Doplhin with the Breeze Dark theme, as you can see, some parts of the window stays to the default color. It happens on other applications too, like System Settings, and with other colors/themes.    I tried upgrading to kde 5.6.5 as someone said on , nothing changed. I created a new user, as suggested on , but it didn't work.  Same problem as ?  Does anyone know how to fix that?


When partitioning from scratch a USB Flash drive (8GB or larger) under Windows (diskpart) or Linux (gparted, fdisk) as Master Boot Record with a single partition, that partition usually starts at byte 1048576 (1MiB). To non-destructively display that value under Windows try (lowercase characters optional)  DISKPART LISt DISk SELect DISk !      (use appropriate disk number) SELect PARtition 1 DETail PARtition   (among other things, tells where the partition starts) EXIt   The value is down to 65536 (64kIB) for 1GB to 4GB drives. Under diskpart, the (DESTRUCTIVE) CLEan then CREate PARtition PRImary OFFSET=32 is supposed to reduce that to 32kiB, but instead is silently ignored if below the minimum value diskpart wants (1024 or 64 depending on drive). Lower values cause an error.  When partitioning under OS X (Disk Utility) and asking for MBR, one gets the first partition at 1024 (1kiB). That's about 1MiB more usable space (for an 8GB drive). I have not found any drawback.  Granted, that habit of Windows and Linux partitioning tools looses at most 0.012% of the space. But: what is the rationale?

I had two drives partitioned the same and running two RAID partitions on each.  One died and I replaced it under warranty for the same model.  While trying to partition it, the first partition can only start on sector 2048, instead of 63 that was before. Drive have different geometry as previous and remaining ones. (Fewer heads/more cylinders)  Old drive:  $ sudo fdisk -c -u -l /dev/sdb   Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes 255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000aa189     Device Boot      Start         End      Blocks   Id  System /dev/sdb1   *          63   174080339    87040138+  83  Linux /dev/sdb2       174080340   182482334     4200997+  82  Linux swap / Solaris /dev/sdb3       182482335  3907024064  1862270865   fd  Linux raid autodetect   Remanufactured drive received from warranty:  $ sudo fdisk -c -u -l /dev/sda  Disk /dev/sda: 2000.4 GB, 2000398934016 bytes 81 heads, 63 sectors/track, 765633 cylinders, total 3907029168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000d0b5d     Device Boot      Start         End      Blocks   Id  System /dev/sda1            2048  ...   Why is that?


In this script, I create a feature layer from a file geodatabase feature class and wish to add the layer into a map within the current session in ArcGIS Pro 2.0.  The script crashes on the last line.  How do I fix this error?  aprx = arcpy.mp.ArcGISProject("current") aprxMap = aprx.listMaps("MainMap")[0]  featureLayer = arcpy.MakeFeatureLayer_management(splitSegmentFC, "SegmentSplit")   aprxMap.addLayer(featureLayer)   The error message is:  Traceback (most recent call last): File "E:\ProvingGrounds\SCAT\Script\ArcGISpro\ScatTrackProcessing_v10_PRO.py", line 1520, in <module> aprxMap.addLayer(featureLayer) File "c:\program files\arcgis\pro\Resources\arcpy\arcpy\utils.py", line 191, in fn_ return fn(*args, **kw) File "c:\program files\arcgis\pro\Resources\arcpy\arcpy\_mp.py", line 1055, in addLayer return convertArcObjectToPythonObject(self._arc_object.addLayer(*gp_fixargs((add_layer_or_layerfile, add_position), True))) ValueError: SegmentSplit Failed to execute (Script).

I want to add a feature class within a Geodatabase to a map in ArcGIS Pro (1.4.1) using arcpy. I am converting some python code from ArcGIS Desktop to ArcGIS Pro.   This issue is very similar to:    and      However, instead of adding a feature class (or layer) to a map using the Python Window I am doing this from a  Script within a Toolbox. I have included a code snippet below.  lyrTest = r"C:\data\test.gdb\Layer1"  aprx = arcpy.mp.ArcGISProject("CURRENT") aprxMap = aprx.listMaps("MainMap")[0]  lyrFile = arcpy.mp.LayerFile(lyrTest) aprxMap.addLayer(lyrFile)   I get the following error message:  Traceback (most recent call last): File "C:\data\AddLayers.py", line 5, in <module>     aprxMap.addLayer(lyrTest) File "c:\users\user\appdata\local\programs\arcgis\pro\Resources\arcpy\arcpy\utils.py", line 191, in fn_ return fn(*args, **kw) File "c:\users\user\appdata\local\programs\arcgis\pro\Resources\arcpy\arcpy\_mp.py", line 1048, in addLayer return convertArcObjectToPythonObject(self._arc_object.addLayer(*gp_fixargs((add_layer_or_layerfile, add_position), True))) ValueError: C:\data\test.gdb\Layer1 Failed to execute (AddLayers).


I'm currently trying to switch from natbib to biblatex - following the suggestions given in  answer - but am having some problems.  Here is my code:   \documentclass[12pt]{article}  \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{ebgaramond}   \usepackage[style=apa, natbib=true]{biblatex} \bibliography{/Users/James/Documents/library.bib}  \title{Figuring Out How to Get an APA Bibliography}  \begin{document}  \maketitle  I'm trying to get an APA-style bibliography by switching from Natbib to Biblatex. The APA-style is used by \citet{Steinberger2019}, but also by \citet{Becker2012} and \citet{Beall2005}.  \printbibliography  \end{document}    But this outputs:    The references are bold, which they shouldn't be, they're not formatted properly (i.e. with the year in parentheses), and there's no bibliography. Where have I gone wrong?  (I should mention that I use Mendeley to manage my references, and so my external bibliography file has to be a .bib file, since this is what Mendeley outputs)  Here are the error messages I got:

Running the minimal example  \documentclass{article} \usepackage{filecontents} \begin{filecontents*}{\jobname.bib} @ARTICLE{example,   author  = {Other, Anthony Norman},   title   = {Some things I did},   year    = {2014},   journal = {J.~Irrep. Res.},   volume  = {1},   number  = {1},   pages   = {1-10} } \end{filecontents*} \usepackage[backend=biber]{biblatex} \addbibresource{\jobname.bib} \begin{document} Hello\cite{example}. \printbibliography \end{document}   I get the warning There were undefined references.  I have read  and know that I need to run:   LaTeX Biber LaTeX   However, my editor is only set up to run BibTeX. How do I go about setting up my editor/IDE to be able to run Biber, and how do I run the LaTeX/Biber/LaTeX cycle?  Answers (sorted alphabetically by editor name)                    Answer guidelines   Each answer should be for one editor. If the editor is cross-platform, if possible give a single answer with notes covering the minor platform variations. Please edit the question to include new answers in the 'link list' Each answer should be 'stand alone', i.e. don't say 'It's almost the same as editor Y but ...' for the editor part Instructions for 'build tools' such as arara or latexmk are welcome but should explain how to set up the editor in question as not all editors allow simple addition of arbitrary tools


Is it possible, to lower the power that is supplied to the devices through the OTG Cable by messing around with the host?  My Galaxy S3 is the host and this connection is draining battery well to fast, the device has it's own source of power but I can't disable the drain on this side.

I have an external DAC with it's own source of power. However when I connect it to the phone, it drains the phones battery. Is it possible to disable charging via USB on a rooted phone? Or at least slow it down?  My phone is Samsung Galaxy S3, Android 6, CyanogenMod


It is known that the equation $x^2 \equiv -1 \pmod{p}$, where $p$ is an odd prime number, has a solution iff $p = 4k +1$ for some natural $k$.  Does it exist a similar characterization for a general finite field $F_q$, where $q = p^n$?   Thanks a lot for your help!

So I've said $x^{2}+1$ is reducible over $\mathbb{F}_{p^{n}} \iff \mathbb{F}_{p^{n}}$ contains a root $\alpha$. Hence if $\alpha$ is such a root then $\alpha^2 = -1$ so that $\alpha^4 =1$ and hence $|\alpha|=4$ in $\mathbb{F}^{\times}_{p^{n}}$ and hence $4\mid p^n -1 \implies p^n \equiv 1\bmod 4$. Hence if $p^{n}$ is congruent to $0,2,3$ mod $4$ then $x^{2}+1$ is irreducible over $\mathbb{F}_{p^{n}}$.  My problem is with $p^{n}$ congruent to $1$ mod $4$ being sufficient to conclude that $x^{2}+1$ is reducible. How can I show this?


What is the possible way to scan a point in java ? Should I read point.x then point.y or can I read the two co-ordinates at once ?  import java.awt.Point; import java.util.Scanner; public class Saleelo {     public static void main(String[] args) {         int n = 5;         Scanner scan = new Scanner(System.in);         Point[] Points = new Point[60];         for (int i=0 ; i < n ; i++) {             Points[i].x = scan.nextInt();             Points[i].y = scan.nextInt();             System.out.println(Points[i]);         }        } }   This what I have tried and it gives me null pointer exception

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


This is a very generic question regarding hotel checkout times and rent payment. Hotel websites usually list their rooms' price range based on how many nights the guest will be staying there. So if I were to check-in at about 5'o clock in the morning and vacate at 4 in the afternoon on the very next day, for how many days do I have to pay the rent for?  I am currently assuming this counts as 2 days, but I am not sure. Since I have to book it online, I must choose the number of days before paying (1 day is expensive enough). Is there a commonly expected check-out time for hotels? Please don't ask me where I will be staying - like I mentioned, this is a very generic question.  I called the reception, but I didn't get what they said (tough accent). There is no time for email either.     Check-in   December 01, 05:00 AM   Checkout   December 02, 04:00 PM

For example, suppose that I'm going to travel London and will arrive at 10am, 1st December. And will stay a week, means will leave 10am, 8th December. Technically it's 7 nights, but also 8 days. Should I book 7 counts(nights) or 8 counts?


So I just thought of a novel or a series, not sure (it was definitely an author's early work) in which humans are colonizing another planet. The plants and animals are pretty dangerous, so they've started with a colony on an island. The island has surprisingly few species. They later discover that this is because of the local super-predator. It lives in the water, there's a river that runs through the island. And the key thing is, it has an enzyme or something that is basically rocket fuel. The alien can Speed Up to ridiculous speeds. However, that's why it needs to be near the water - this can lead to overheating and it dying. There's also some political conflicts going on between the human settlers, and the protagonists build a separate enclave in a mountain, and they maybe have a small stream running through the middle room? In the second book, it turns out the aliens are almost sapient or something? In any case, we do have some chapters from the POV of the aliens. The humans start calling them Monsters or Demons or something, I think.

I can not remember if it was a short story or a novel, but I am leaning towards it being a novel. There is a colony of humans and I can't remember if they crash-landed or not.   There is a creature that they come to discover after it has killed a few people. The creature has some kind of chemical in its body that is like a super-adrenaline. One part is I remember is one of these creatures getting very hot from using up its reserve of this chemical and it dived into a river or pond and it started to steam. Something like that.  It has to be at least 10 years since I read the story.


I am using a tilemap to design levels for my game in Unity. So, naturally, I need some circle/box colliders to interact with the objects in the game.  I know that if I use a prefab for every tile, I can also attach a collider, and never have to worry to add or modift colliders. But this seems too impractical, and also if I want to modify a block of colliders, I have to do this for every single tile.  I also tried using Tilemap Colldier 2D, but it generates colliders for the places I don't want colliders, such as grasses that stick out from the ground tiles.  My question is, is there any neat way to organize colliders so that I can identify them by looking at their names, IDs, etc.?  Currently, I am designing only one level and anxiety builds up on me as I take a look at the colliders in a single tilemap. How can I automate or organize the colliders for my tilemap?

I am relatively new to game development, and am working on a simple 2D platformer. I have created a tilemap and painted some tiles for the character to walk on.. but he is getting stuck. Yes, I know this is a common question and I did find some answers (including this one: ), but none seem relevant for me. The thing is my tiles are not flat.. they have pointy edges due to grass.. see the image below:  As you can see, the edge is not flat. I have overcome the problem of getting stuck by changing the "Edge Radius" to what you see in the above screenshot and that works, but the character now looks like he is floating slightly above the ground. Is there any way I can just tell Unity to ignore the jagged grass and make the collider flat and move the edge of it down a bit? That way it would fix the issue and also have the added bonus of looking like some of the grass is behind him and some in front..


For instance, to prove that $A \cup (B \cap C)=(A \cup B)\cap(A\cup C) $, can we use the definition of union and intersection, namely $A \cup B=\{x\mid x \in A \lor x \in B\}$ and $A \cap B=\{x\mid x \in A \land x \in B\}$, and derive the set or propositions $A(x)=x \text{ is in }A , B(x)=x \text{ is in } B, C(x)=x \text{ is in } C$.   Then, using logic, would it be sufficient to prove the following? $A(X) \lor (B(x) \land C(x)) \equiv (A(x) \lor B(x)) \land (A(x) \lor C(x)) $  Thanks!

If you need to prove an equality like $A\Delta B=(B\setminus C)\cup[C\cap (B\Delta A)]$ we can first prove $p\underline{\lor} q\Longleftrightarrow (q\land\overline{r})\lor(q\underline{\lor}p)$ (with a truth table for example) and then use it whith $p=x\in A$, $q=x \in B$ and $r=x \in C$.  So, if we now that $p\underline{\lor} q\Longleftrightarrow (q\land\overline{r})\lor(q\underline{\lor}p)$ then we now that $A\Delta B=(B\setminus C)\cup[C\cap (B\Delta A)]$. But my question is. is true in general (with a general set equation) the reverse implication? that is  $A\Delta B=(B\setminus C)\cup[C\cap (B\Delta A)]$ implies $p\underline{\lor} q\Longleftrightarrow (q\land\overline{r})\lor(q\underline{\lor}p)$.


Ever since I updated to macOS 10.14.4,  I've been having trouble with media buttons working with YouTube and not Spotify. Is there anyway to write a script to remove YouTube access or is there a way in system preferences to set Spotify as the default? Thanks!

I'm on macbook pro, 2017, Mojave 10.14.4.   Previously, I used F7/F8/F9 audio-buttons with Spotify only (it worked with iTunes if it's open together with Spotify but whatever. It didn't do anything in Chrome).  I don't remember exactly when, but recently it started working with youtube videos in Chrome, and the sad thing is that if both Spotify and a youtube window are open, it changes from Spotify to Youtube. (e.g. start playing a song in Spotify, open a youtube link, and it starts working for youtube only). This is very confusing, can I somehow change this behavior?


I'm struggling on a question and have no idea where to start.   The quadratic equation $y=ax^2+bx+c$ has roots $x=\alpha$ and $x=\beta$. Find an equation that has roots $x=\alpha^2$ and $x=\beta^2$.  I was just wondering if anyone could provide any knowledge so I can start this question?

I'm struggling to solve this problem:  "If the equation $ax^2 + bx +c$ $(a \neq 0)$ admits real and not null roots of $x_1$ and $x_2$, obtain the equation which evaluates to roots $(x_1)^2$ and $(x_2)^2$"  I know the answer is $a^2x^2 -(b^2 - 2ac)x + c^2$ but I am not able to get to this answer, I was trying to derive it from the sum and product equations $S=-b/a$ and $P=c/a$ but the answer I'm getting to is a monstruous different thing.  Could someone explain to me how to get to this answer?  Thanks


So basically, I have this  gaming PC that I built a  for portability*, and I will be leaving to Malaysia to study*, but I believe I might need a capable PC since my laptop mostly isn't, I would put the whole PC inside my main luggage with my clothes, but I fear that as a Saudi young man, they might have me interrogated (because ISIS 'n all that BS) and waste my time at the airport*,   So what do I do to make sure to bring it with me?  Can I dissemble it and will it then pass through without question? Do I really have to give it to someone to ship it to me?  and an another sub-question, if I had removed and taken the PCs hard drives instead, will I be required to show the airport its contents? I mainly have a lot of animated movies downloaded and large-sized games.  Notes*: -Malaysia Airlines -Total weight is less than 30KG -I am an art student who does 3D for hobby

I am moving from Malaysia to the US, and planning to bring my desktop computer with me. I plan to pack it in my checked-in luggage. Will the computer risk being damaged? Any precaution should I take to reduce this risk? Will there be any trouble with the airline or immigration about bringing computer?


By mistake, I changed the path environment variable in Ubuntu.  Now when I turned my pc on, the login screen is coming and after entering my password and pressing enter, the screen goes away for a moment and again the login screen is coming.  When I enter any command in the terminal that comes after pressing Ctrl+alt+f3, the error displayed is : The command could not be located because /usr/bin is not included in the PATH environment variable.  Is there any way to solve this problem? Can I set the environment variables again?

I used sudo -H gedit /etc/environment command on terminal to permanently change my PATH variable.  To correct it, I pressed Ctrl+Alt+F1, and used export PATH command, but access was denied.   Many commands (including sudo and nano) are not recognized as the new PATH variable doesn't have /usr/bin. I am new to Linux commands.   How can I fix this?


I have an old desktop PC which has a  motherboard. It currently has one  memory module but the motherboard can support two DDR2 memory modules. I'm planning to upgrade it to have 2GB of memory (1GBx2).  My question is, do I need to have two identical memory modules? Or will it work fine if I just install a different one to be paired to the existing one?

I have 4 RAM slots on the motherboard P5K. At the moment I have two 1GB RAM modules and two 2GB RAM modules. Everything is working fine.   Can I buy one 4GB module and put it instead of the 1GB module?  Another question, can I mix MHz values, like that I have two 667MHz modules and two 1066MHz modules? Is this dangerous for the comp?


If i want to use Physics in Unity2D what should be the most efficient way to move the object without interfering physics?    1. Transform.position  2. Rigidbody.Velocity  3. Rigidbody.addForce  4. Transform.translate  5. Rigidbody.movePosition   Seems like there are a lot of ways and each way has a special purpose for when it should be used and when not. I just don't know that.

I'm confused about these two methods in the Unity framework.  Both make the player object move, stop, change direction, etc.  When should one be used over the other and when is one appropriate?


I would like to create a table with a specific column width and an automatic linebreak in my multirow columns.   THANKS to  Elad Den for my progress. :)  Is it possible to automatically set the width of these columns to fill the DINA4 paper and how is it possible to center Fabrikobjekte and (B) (O) and (R)?  This picture is how it should look like. Its not important to have these bullet points.    And this is my current code.  \usepackage{graphicx,multirow,tabularx} \usepackage{array,calc} \usepackage{booktabs} \usepackage{geometry}  \begin{table} \centering \caption{Gestaltungsfelder} \begin{tabular}{|c|c|c|c|}     \cline{2-4}         \multicolumn{1}{r|}{} & \multicolumn{3}{c|}{Gestaltungsfelder} \\     \cline{2-4}         \multicolumn{1}{r|}{} & \multicolumn{1}{m{5cm}|}{Betriebsmittel (B)} & \multicolumn{1}{m{5cm}|}{Organisation (O)} & \multicolumn{1}{m{5cm}|}{Raum- und  Gebäudetechnik (R)} \\     \hline     \multirow{8}{*}{\rotatebox{90}{Fabrikobjekte}}     & {\parbox{5cm}{Fertigungseinrichtung}}   & {\parbox{5cm}{Unternehmensstrategie}}     & {\parbox{5cm}{Grundstück}} \\     & {\parbox{5cm}{Montageeinrichtungen}}     & {\parbox{5cm}{Logistikkonzept}}     & {\parbox{5cm}{Baukonstruktion}} \\     & {\parbox{5cm}{Logistikeinrichtungen}}     & {\parbox{5cm}{Prozessgestaltung}}     & {\parbox{5cm}{Technische Anlagen}} \\     & {\parbox{5cm}{Qualitätseinrichtungen}}     & {\parbox{5cm}{Aufbauorganisationsgestaltung}}     & {\parbox{5cm}{Außenanlagen}} \\     & {\parbox{5cm}{Informations- und Kommunikationseinrichtungen}}     & {\parbox{5cm}{Arbeitsorganisation}}     & {\parbox{5cm}{Ausstattung}} \\     & {\parbox{5cm}{Ver- und Entsorgungseinrichtungen}}     & {\parbox{5cm}{Qualitätssicherungs-konzept}}     & {\parbox{5cm}{Konzepte}} \\     & {\parbox{5cm}{Übergeordnete Systeme}}     &       &  \\     & {\parbox{5cm}{Mobiliar}}     &       &  \\     \hline \end{tabular}% \label{tab:addlabel}% \end{table}%   New solution: Thank you very much for helping me Bernard!!!

I searched a bit, but I could not find a reliable way to wrap text in tables with columns spanning more than one row. Any ideas on how to fit this table in the page?:  \documentclass[12pt,a4paper]{article} \usepackage{booktabs} \usepackage{multirow}  \begin{document}     \begin{tabular}{cccc}     \toprule     & & \multicolumn{2}{c}{Logic of rule adoption} \\     \cmidrule{3-4}        & & Logic of consequences & Logic of appropriateness \\     \midrule     \multirow{2}{*}{Principal actor in rule adoption process} & EU-driven & External incentives model & Social learning model \\       & CEE-driven & Lesson-drawing model & Lesson-drawing model \\     \bottomrule     \end{tabular}  \end{document}


I am doing my first JavaFX side project by making a game that is meant to test mouse accuracy (as seen on AimBooster.com). The main elements of this game are targets, the behavior of which I am describing in the class Target.java, which extends class Circle. Here is my class definition (within the block "public class Target extends Circle"):  Circle target; double centerX; double centerY; double radius;  StackPane game;  public Target(double x, double y, double rad) {      centerX = x;     centerY = y;     radius = rad;      target.setCenterX(centerX); // InvocationTargetException here     target.setCenterY(centerY);     target.setRadius(radius);   }   This all seems super straightforward, but when I call  target = new Target(200, 200, 10);   I get an InvocationTargetException.  I have done some research regarding this exception, but I have found nothing applicable to JavaFX. What am I doing wrong?  Edit: full stack trace:  Exception in Application start method Exception in thread "main" java.lang.reflect.InvocationTargetException     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:498)     at sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:767) Caused by: java.lang.RuntimeException: Exception in Application start method     at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917)     at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$154(LauncherImpl.java:182)     at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.NullPointerException     at Target.<init>(Target.java:19)     at GraphicsDemo.start(GraphicsDemo.java:168)     at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$161(LauncherImpl.java:863)     at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$174(PlatformImpl.java:326)     at com.sun.javafx.application.PlatformImpl.lambda$null$172(PlatformImpl.java:295)     at java.security.AccessController.doPrivileged(Native Method)     at com.sun.javafx.application.PlatformImpl.lambda$runLater$173(PlatformImpl.java:294)     at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)     at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)     at com.sun.glass.ui.win.WinApplication.lambda$null$147(WinApplication.java:177)     ... 1 more

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I am looking to upgrade from Ubuntu 12.04 to a newer supported version.  I have an old PC that I dusted off and would like to start playing again with Ubuntu again. I loaded the latest Ubuntu 20 ISO on a DVD and PC boots from disk and I can install the version but it only provides choices for an install that would wipe my data. There is no choice to upgrade. I was wondering if there is prefered method I can use to upgrade and retain my photos, files and programs that I have installed. Any advice would help. I think the current kernel of 12.04 is probably so old that the install process is not allowing the new version to upgrade and to only install.

Recently I have installed an older version of Ubuntu on my old machine. Whenever I try to install any software, I get an error saying it couldn't be found:  $ sudo apt-get install vlc Reading package lists... Done                Building dependency tree        Reading state information... Done     E: Couldn't find package vlc


I need to build a table that looks like this:    Quite obviously the \multirow package must be what I'm looking for, but every example I've seen so far only shows how to do this the other way around - that is, we don't want to "divide" the first column, but the second or etc. Is there any way around this? What i am (stupidly) missing? Thank you in advance.

Here is a simple table.  I want to merge 4 cells. I want to combine the three "this" cells area in this table. I thought I have to use multirow and multicolum at same time. However, I could not find how to use it.  If possible, could you post the modified LaTeX source code?     My LaTeX code:  \documentclass{article} \usepackage{multirow}% http://ctan.org/pkg/multirow \usepackage{hhline}% http://ctan.org/pkg/hhline \begin{document}  \begin{table}[ph] \begin{center} \begin{tabular}{c|c|c|c|c} \hline \multirow{2}{*}{Raaa (k)} & \multicolumn{4}{c}{C ()} \\ \hhline{~----}  & 3.3 & 2.5 & 1 & 0.5 \\ \hline \multirow{2}{*}{Raaa (k)} & \multirow{2}{*}{this} & this & 0.5 & 0.6\\ \hhline{~~~--}            &                       & this & 0.7 & 1.2 \\ \hline \end{tabular} \caption{R, C ripple size} \label{T:peak} \end{center} \end{table} \end{document}


Is that document, that fine for visa application ? Or they need statements?

The UK Visas and Immigration Directorate publishes  that provides helpful tips that can result in successful visa applications. Section 2 of this guidance opens is entitled "other documents you may want to provide" (emphasis mine).  Section 2: other documents you may want to provide – all visitors This section provides guidance on the types of documents that you may want to provide to help us consider your application against the Immigration Rules. Previous travel documents/passports, which show previous travel. Financial documents showing that you have sufficient funds available.  These must clearly show that you have access to the funds, such as:  bank statements building society book proof of earnings such as a letter from employer confirming employment details (start date of employment, salary, role, company contact details) where a third party (who is either in the UK or will be legally in the UK at the time of your visit) is providing financial support to you e.g. a business, a friend or a relative, documents to show that they have sufficient resources to support you in addition to themselves and any dependant family should be provided   The first item is "bank statements" and this ties in with the , which says...  evidence that you can support yourself during your trip, eg bank statements or payslips from the last 6 months  (Note 'eg' is a Latin abbreviation meaning "for example"; this appears to be optional rather than a fixed requirement.) Question: How should someone interpret this such that the chances of success are maximized? How many statements should I submit? What are they looking for and what do my bank statements tell about me?


So let’s say an American decided to go to Japan and produce their own anime, would it still be considered an anime even if the person is not Japanese but creating it in Japan?Im not really looking for the difference between anime and cartoons, but more of what things have to be done to consider it an anime or what has to be done so that it’s not considered an anime. For example: Where it’s produced, who is producing it? etc.   Hopefully that makes sense..

In my region, people don't know the difference between anime and regular cartoons. When they see me watching anime, or they hear about it somehow, they say that I'm watching a regular cartoon and hence I'm being childish. Sometimes, they even display sarcastic attitudes, so that giving a serious long explanation wouldn't be possible.  What effectively explains how an anime is different from a regular cartoon?


Ok, before you say this is a duplicate, please let me explain and then point me to the duplicate answer and I will delete this post. I have searched a bit but I have found no definitive answer or way to do this. I have tried installing Ubuntu onto a USB before without touching my HDD but it installed Grub and then all the boot files on the USB. I have a duel boot Ubuntu/Windows 10 now but not because I wanted to. I originally just had Windows and wanted to install Ubuntu on a flash drive so I could transfer it to any computer like a live .iso file but it failed miserably. It put the boot files on the USB and installed Grub to my HDD and so I could not boot my computer without the USB. I have since turned my computer into a duel boot so now I can boot it fine but I still want to try to install Ubuntu onto a USB in a way that I can transfer it to another computer and it will run like a live copy but with more space (and before you tell me to just create a live one and add a second partition, I tried and it didn't work... several times.) So, is there a sure fire way to do a complete install onto a USB and install Grub only onto the USB in a way that will not touch my current boot status at all?   EDIT:  It's been over a year now and I still haven't been able to do this yet I haven't tried for a long time. When I first tried this, I had a bootable USB and went through the process of installation on the same USB and went through the process of selecting the USB for both installation and GRUB. For some reason, Grub did get installed correctly to the USB but it screwed up my master boot record and would only boot to grub on the USB. This got fixed when I decided to do a full install and it recognized my other boot files. I could have messed up somewhere in the process but I can't remember. I will try doing this again but this time around I will do it in a virtual machine. I will try the solutions you have made and get back with the working solution.

If you are hurrying to reply, System → Administration → StartUp Disk Creator -- no, that's not what I'm talking about.   I want to try Ubuntu 11.04's Unity without touching my existing Ubuntu install.  To do this, I need to install the nVidia drivers first (sigh).  To do this, I need changes to persist a reboot.  To do this, I need to really install Ubuntu on a USB key.  How do you do that?    What I tried   I tried to make a USB key from , then boot from it, then choose "Install Ubuntu." The installer refused to install to the installation media itself. I tried, from my installed copy of Ubuntu:  sudo kvm /dev/sdb --cdrom .cache/testdrive/iso/ubuntu_natty-desktop-i386.iso   ...but the installer didn't detect the disk properly.


After a long search to find a solution to my problem I decided that maybe you guys can help me out. The problem is as follows.  I own an Asus N550JV laptop, running Windows 8.1, it has an Intel I7-4700-HQ CPU and a Geforce 750M as dedicated GPU. But no matter what I try, I can't get the laptop to use my GPU. I've tried updating the Nvidia drivers and forcing the laptop to use the GPU in the Nvidia software. My laptop is plugged into the wall and the Windows energy profile is set to 'High Performance'. I've also tried to change settings in the BIOS but all I can change is the Integrated Graphics allocated Memory size.  In the pictures below you can see the options in the laptop's BIOS.      I Hope somebody here has a working solution.

I tried running DxDiag (DirectX diagnostics), and I noticed that my graphics card is set to the onboard one that comes with the Core i5 processor (some Intel HD stuff).  On my computer, I also have a dedicated graphics card (an Nvidia 310). No serious gaming stuff, I know - just for programming.  However, I would still love to know how to switch to that dedicated graphics card instead.  My laptop is an MSI CX720.


When I was young, I learned a quick way to set a timer to turn off my computer  shutdown -f -s -t 3600   That would give me 1 hour until log off and shutdown.  I remember in windows xp, there would be a timer counting down. But win7 only shows a notice for a very short period of time. Then disappears.  I know I can just cancel it and then reset if needed. But how can I check how much time is left after a while?  Additionally, what would be the "modern" code to do this in Powershell?

Is there any way to view how much time is left before a scheduled shutdown in Windows 7?  By scheduled shutdown I mean a shutdown (or restart) scheduled using the command line shutdown.exe application, e.g.:  shutdown /t 600 /s   That would pop up a message box saying there are 10 minutes until shutdown, and the actual system time of shutdown.  Any time longer than 600 seconds uses a balloon message instead.  I vaguely recall XP providing a GUI progress monitor, with a countdown.  How did they work? The shutdown time left or scheduled time must be stored somewhere, how can I access this?   My preference is some method through the command line (i.e. non-GUI). More importantly, is this accomplishable within Windows, i.e. without any third party programs?  If this is not accomplishable with standard Windows utilities (and I'm bordering on Stack Overflow territory here), is there a Windows API (or .NET, which could even be used in PowerShell!) function? Either would be preferred over some random third party program.


Sorry if this is basic.  After reading here i changed :   $('input,textarea').keyup(function()   to   $('input,textarea').on('keyup', function()   On my cloned element :     var cln = item.cloneNode(true); //true   and i can only listen to divs that where in my document on load, not the ones who cloned later.  I have also tried :     var cln = item.cloneNode(true, true);   after reading this :

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


Just to prevent I do my project on vuejs but that does not change the way of placing a div normally (html-css is still the same thing) x)  Well I made a small diagram to facilitate the explanation:    I need the div to go paste this at the bottom of the screen, the problem is that I cannot apply a% or a vh to it because the navbar at a fixed height (and therefore will push my div towards the down on the small screens).  usually I place my div below my navbar, I apply height: 100vh and a padding-top the size of the div, but this time I prefer not to place it under the navbar.  So how i can do something like : height: 100vh - height of navbar   I also specify that I would like (if possible) not to use js, because my navbar and my div are different components from vueJS and therefore it would be quite tedious just for a height I think  I don't know if my explanation is clear but thanks for taking the time to read :)

I am working on a web application where I want the content to fill the height of the entire screen.  The page has a header, which contains a logo, and account information. This could be an arbitrary height. I want the content div to fill the rest of the page to the bottom.  I have a header div and a content div. At the moment I am using a table for the layout like so:  CSS and HTML    #page {     height: 100%; width: 100% }  #tdcontent {     height: 100%; }  #content {     overflow: auto; /* or overflow: hidden; */ }

...

...

     The entire height of the page is filled, and no scrolling is required.  For anything inside the content div, setting top: 0; will put it right underneath the header. Sometimes the content will be a real table, with its height set to 100%. Putting header inside content will not allow this to work.  Is there a way to achieve the same effect without using the table?  Update:  Elements inside the content div will have heights set to percentages as well. So something at 100% inside the div will fill it to the bottom. As will two elements at 50%.  Update 2:  For instance, if the header takes up 20% of the screen's height, a table specified at 50% inside #content would take up 40% of the screen space. So far, wrapping the entire thing in a table is the only thing that works.


I just accidentally changed my var folder permission to 777 and it's sub folders. Do I have to re-install my system? and as far until now it didn't made any trouble for me.

Ok I just royally screwed up my /var folder's permissions.  I thought I was inside /var/www and did a chmod xxx ./* on the parent folder /var instead.  Now all the permissions inside /var are messed up. What can I do to correct it?


I am trying to do binary classification of News Articles (Sports/Non-Sports) using recurrent neural net in tensorflow. The training data is highly skewed [Sports:Non-Sports::1:9].  I am using cross-entropy as my cost function, which treats both classes equally.  What are the ways by which user can penalise one class? Or is there any other cost function suitable for this purpose?

This is a question in general, not specific to any method or data set. How do we deal with a class imbalance problem in Supervised Machine learning where the number of 0 is around 90% and number of 1 is around 10% in your dataset.How do we optimally train the classifier.  One of the ways which I follow is sampling to make the dataset balanced and then train the classifier and repeat this for multiple samples.   I feel this is random, Is there any framework to approach these kind of problems.


I have a string that is in a format of a Array, but I need it to be a Array and it has to be a string. Example Of Data (string): [{"itemName": "LimitedName", "itemName": "ID", "itemClassName": "ClassName", "MaxAllowed": 1000}]  I need it to become an actual array and be able to add more columns to it as well. Can someone help me?

Given a string of JSON data, how can I safely turn that string into a JavaScript object?  Obviously I can do this unsafely with something like:  var obj = eval("(" + json + ')');   but that leaves me vulnerable to the JSON string containing other code, which it seems very dangerous to simply eval.


I currently have problems with hihglighting elements inside a matrix. I've red a lot of questions here, my problem is that I have a matrix formula, {N}=[AB]{E} where I would like to highlight parts inside the [AB] matrix. I've uploaded a picture to give you an idea. My code so far:  \documentclass[11pt,twoside]{report} \usepackage{amsmath} %helps with mathematics \usepackage{amssymb} %helps with mathematical symbols \numberwithin{equation}{section} %numbers the equation like (2.1) \begin{document} \begin{equation} \begin{Bmatrix} N_x \\ N_y \\ N_{xy} \\ M_x \\ M_y \\ M_{xy} \end{Bmatrix} = \begin{bmatrix} A_{11} & A_{12} & A_{16} & B_{11} & B_{12} & B_{16} \\ A_{21} & A_{22} & A_{26} & B_{21} & B_{22} & B_{26} \\ A_{61} & A_{62} & A_{66} & B_{61} & B_{62} & B_{66} \\ B_{11} & B_{12} & B_{16} & D_{11} & D_{12} & D_{16} \\ B_{21} & B_{22} & B_{26} & D_{21} & D_{22} & D_{26} \\ B_{61} & B_{62} & B_{66} & D_{61} & D_{62} & D_{66} \\ \end{bmatrix} \begin{Bmatrix} \epsilon_x \\ \epsilon_y \\ \epsilon_{xy} \\ \kappa_x \\ \kappa_y \\ \kappa_{xy} \end{Bmatrix}  \end{equation} \end{document}   If I try to work with tikzpictures I face the following problems: - not able to arrange the matrices as meant. They will be placed below eachother - with tikzpictures the equation number will be not aligned half the height of the equation Preferably I would like to have a filled area behind the to be highlighted part of the matrix.   Can someone help me?  Thank you in advance, Lisa

I have a matrix and need to highlight some elements in the matrix. I have found how to highlight a single element (I want to put the cell in the square):  $$ A = \begin{bmatrix} \fbox{0} & \fbox{0} & 0 \\  \fbox{0} & \fbox{0} & 0 \\ 1 & 1 & 1 \\  \end{bmatrix}$$   But how can I outline elements of the submatrix like in the picture below? I need just a frame where some elements are located.