i have an android app with an main.class and a main_fragment.class  in the fragment class i have this code part:   @Override public void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     String query = "INSERT INTO " + SqlDbHelper.DATABASE_TABLE + " "             + "(firstname,second name,bday) "             + "values ('Max','Mustermann','20.05.2016')";      Log.e ("-->",""+query);      sqlHandler.executeQuery(query); }   i would like set this values in my database table. but my app crash on this line with a java.lang.NullPointerException:     sqlHandler.executeQuery(query);   i don't understand this. my Log.e result:     INSERT INTO PRODUCTS (firstname,secondname,bday) values ('Max,'Mustermann','20.05.2016')   can anyone helps me?  UPDATE This is my sqlHandler.class  public class SqlHandler {  public static final String DATABASE_NAME = "DATABASE"; public static final int DATABASE_VERSION = 1; Context context; SQLiteDatabase sqlDatabase; SqlDbHelper dbHelper;  public SqlHandler(Context context) {     dbHelper = new SqlDbHelper(context, DATABASE_NAME, null, DATABASE_VERSION);     sqlDatabase = dbHelper.getWritableDatabase(); }  public void executeQuery(String query) {     try {          if (sqlDatabase.isOpen()) {             sqlDatabase.close();         }          sqlDatabase = dbHelper.getWritableDatabase();         sqlDatabase.execSQL(query);      } catch (Exception e) {          System.out.println("DATABASE ERROR " + e);     }  }  public Cursor selectQuery(String query) {     Cursor c1 = null;     try {          if (sqlDatabase.isOpen()) {             sqlDatabase.close();          }         sqlDatabase = dbHelper.getWritableDatabase();         c1 = sqlDatabase.rawQuery(query, null);      } catch (Exception e) {          System.out.println("DATABASE ERROR " + e);      }     return c1;  }   }


I've tried to reconfigure my locale, but I keep getting the same error.   > yuri@Yuri-laptop:~$ sudo aptitude dist-upgrade No packages will be installed, upgraded, or removed. 0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B of archives. After unpacking 0 B will be used. perl: warning: Setting locale failed. perl: warning: Please check that your locale settings:         LANGUAGE = "en_US",         LC_ALL = (unset),         LC_TIME = "pt_BR.UTF-8",         LC_MONETARY = "pt_BR.UTF-8",         LC_CTYPE = "pt_BR.UTF-8",         LC_ADDRESS = "pt_BR.UTF-8",         LC_TELEPHONE = "pt_BR.UTF-8",         LC_NAME = "pt_BR.UTF-8",         LC_MEASUREMENT = "pt_BR.UTF-8",         LC_IDENTIFICATION = "pt_BR.UTF-8",         LC_NUMERIC = "pt_BR.UTF-8",         LC_PAPER = "pt_BR.UTF-8",         LANG = "es_US.UTF-8"     are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory


I am comparing the distrubution of different groups using the violin plots, however most of the online resources I found are just related to how to make the plots and very basic interpretation of the results (the median variation, the data is clustered or not).  I am looking for detailed examples that I can follow as my guideline to correctly interpret the violin plots.


How to add a repository using python?  I want to do this using python  sudo yum install -y http://rdo.fedorapeople.org/openstack/openstack-grizzly/rdo-release-grizzly.rpm


What powers does a Department Chair have in a University setting? For instance, is a Dept. Chair the "boss" of a tenured full professor within the department?


Black screen after selecting Install Ubuntu from boot menu (running Windows 8 pre-installed)

I have a Windows 8 pre-installed laptop here.  I used UNetbootin to create a USB bootable drive for Ubuntu 14.04 x64. I resized my disk partition, and disabled secure boot.   Here's my situation:   In legacy mode: All bootable devices result in this: Syslinux 4.03 2010-10-22 EDD Copyright (C) 1994-2010 H. Peter Anvin et al. I have to reboot and put the system back in UEFI mode to do anything.  In UEFI mode: I select the USB drive from the system boot screen (press f10), and get to the black menu (install Ubuntu, test without installing, check drives). I select install, and I’m thrown back into system boot screen (press F2 for setup, and F10 for boot device.. etc). I never get to the Ubuntu install screen. It loops between the USB Ubuntu install menu, and the system boot screen. I can only load into Windows 8.   System info: ⠀Acer Aspire v5-552G_080F_2_07 ⠀CPU: AMD A8-5557M APU @ 2.1GHz 4 core ⠀Chipset: AMD - k15 IMC ⠀South Bridge: AMD - a76M FCH rev 2.6 ⠀RAM: 8GB ⠀OS: Windows 8.1 x64 build 6.3.9600 ⠀Hard drive: GPT format (500GB) ⠀Graphics: AMD Radeon HD 8550G 2GB DDR3


Does every even degree polynomial in the expansion of $\exp x$ have no real roots?  I tried the first few values and it seems like it... Is this a known result?


I have online game for which I wrote a simple external anticheat in c#, it checks my game's process modules and handles for suspicious activity. And so it works like this:   player starts launcher (anticheat) which then starts the game with its pid as parameter actual game (upon starting) reads that pid, locates anticheat path using this pid and fetches md5 hash of my anticheat If it doesn't match the game closes. Also if you close anticheat the game closes too.   So theoretically there's no way user could exit anticheat without exiting the game except he could for instance suspend anticheat process and then its of no use. What simple thing I could do to prevent this from happening? I was thinking - make a thread in the game that would check in a loop if anticheat process is suspended and exit if it is. Would that be a correct approach?  Is my architecture flawed or is it ok?


For a non-zero principal ideal $I=(x)$ of a ring of integers of an algebraic number field, $|A/I|=| N_{L|\mathbb Q } (x)|$

Let $L$ be an extension field of $\mathbb Q$ with $[L:\mathbb Q]=n$. Let $A$ be the ring of integers of $L$ i.e. the Integral closure of $\mathbb Z$ in $L$. Then $A$ is a Dedekind domain. If $I$ is a non-zero ideal of $A$, then I can show that $I$ is a free $\mathbb Z$-module of rank $n$ and $aA \subseteq I$ for some $0 \ne a \mathbb Z$ . Moreover $A/I$ is finite.   My question is : If $I=(x)$ is a non-zero principal ideal, then how to show that $|A/I|=| N_{L|\mathbb Q } (x)|$ ? where $N_{L|\mathbb Q}$ denotes the field Norm function .


The problem is this: how many labeled unicyclic graphs are there, counted according to the number of vertices? So, for example, is the number of vertices is n, how many different labeled unicyclic graphs can be formed?  A unicyclic graph is a connected graph that contains exactly one cycle. In other words, it is a cycle of rooted trees.  I have tried to solve the problem in the following three ways, without success:   1) 1. The number of ways in which we can choose k vertices out of n vertices  2. The number of ways in which we can form a cycle out of said k vertices  3. The number of ways in which we can add the remaining n-k vertices to the vertices of the cycle without forming new cycles (so that every vertex of the cycle is a root of a tree) Then multiply the above numbers.  The problem with this approach is step #3. I don't know in his many ways the remaining n-k vertices can be added to the cycle.  2) 1. The number of ways in which n can be partitioned so that n=k_1k_2...+k_m (I think...) 2. For each unique partition, the number of ways in which k_i can be formed into a tree  3. The number of ways in which these trees can be formed into a cycle Then multiply the above numbers.  This seems like a really messy approach and I can't really get any of the steps right, except step #2.  3) Let us imagine one extra vertex inside the cycle. This vertex is connected to all the vertices in the cycle. In this way, the graph becomes a single tree. From n+1 vertices, we can form a labeled tree in (n+1)^(n-1) ways (formula from Wikipedia). However, the problem arises that we would have to eliminate the trees with only one or two branches at the top in order to guarantee that there is a cycle at the center when we remove the root vertex.


I'm trying to install Windows back on my computer. But when I boot from my USB containing windows and I come to the point to format my drive, I can't because it's not in a NTFS format or something.   I have two drives, one SSD and one for bulking files. The SSD is the one holding the OS and needs to be wiped and replaced with windows. The other drive I have all backup stuff on, so I don't want to erase that.   How can I go about this? All guides suggest I should be able to format my drive and install from the Windows USB, but in my case I can't.


Micro symbol from siunitx disappearing after changing from fontspec to mathspec (XeLaTeX)

Like what the title says, if I use  \documentclass{article} \usepackage{fontspec} \usepackage{siunitx}  \begin{document} \SI{5}{\um} \end{document}   I would end up with 5µm. But changing \usepackage{fontspec} to \usepackage{mathspec} would result in it becoming 5m. What's happening? I was under the impression that mathspec is basically fontspec with support for math. Also, moving \usepackage{siunitx} before mathspec does not fix this.


Conditions and ranges within case statements in bash

I was writing a plugin for Nagios to check the number of security packages and doing a case statement as the one .  but the whole thing ended up turning into a freak show. All I basically wanted to do was saying if there are between 1-20 packages show this warning, if 21-infinity show critical and so on, but I could not just do [ -gt 1 ] or even [20-10000]  When applying these ranges the script would run kind of irregularly and warn when it was meant to be critical, etc. I think I gathered that ranges are not really possible here, I am just wondering why it worked for the example given above but not for me. Also, Is it in any way possible to include conditions within case?   In the end I managed to do a fully working script but I had to create if conditions and pass them to case. Just wondering if there was an easier way to do this without having to do that.   Below is more or less what I was trying to do. The last part was just me being desperate trying loads of different ranges to see if it worked.   case $SECURITY_PACKAGES in     0)     echo "OK - not bad: There are a total of $TOTAL_PACKAGES packages to upgrade in this server, but none of them are security updates!"     exit 0     ;;     [1-20]*)    echo "WARNING - $TOTAL_PACKAGES packages required to upgrade in this server, of which $SECURITY_PACKAGES are security updates"   exit 1   ;;     [21-99]|[100-999]|[1000-9999]*)     echo "CRITICAL -  $SECURITY_PACKAGES out of $TOTAL_PACKAGES are security     updates! Consider upgrading soon!"   exit 2 ;;  *) echo "UNKNOWN - I am not sure what's happening now, check later or check server: $TOTAL_PACKAGES to upgrade, $SECURITY_PACKAGES are security updates"  exit 3 ;;  esac


What are the ways electrostatic charged objects leak charge in humid conditions?  Can airborne particles pick up charge by contact, then be repelled hence removing charge? If so would it be a significant factor?


Finding a book with a man from the future being reincarnated on Earth in past times

I am trying to find a book I read about ~10 years ago. I really want to read it again, but all my google searches, goodreads.com lists have come up empty.  What I remember is:   The Protagonist is from the future and is being reincarnated(not sure of the method) throughout time periods on Earth.   He is fighting humans that look at themselves as deities or gods At one time he was Prometheus, bringer of fire to the human race Towards the end, he and a spaceship crew are the first Homo Sapiens on Earth and all humanity are their descendants involves traveling back in time    I just remember it as a great read but, for my life, can't remember the name or author  Any help is much appreciated..  Oli


What is the relative importance of the parts of my application?

I'm thinking of applying to American universities for a Ph.D in Maths and I'm currently studying in the UK.   I was wondering how important each of the pieces of the application are, which I believe are: my personal statement, the references I get, the GRE scores and my academic transcript.   Thanks very much!


Why does root get Permission denied when accessing FUSE directory?

I use a FUSE filesystem with no problems as my own user, but root can't access my FUSE mounts.  Instead, any command gives Permission denied. How can I give root the permission to read these mounts?  ~/top$ sudo ls -l total 12 drwxr-xr-x 2 yonran yonran 4096 2011-07-25 18:50 bar drwxr-xr-x 2 yonran yonran 4096 2011-07-25 18:50 foo drwxr-xr-x 2 yonran yonran 4096 2011-07-25 18:50 normal-directory ~/top$ fuse-zip foo.zip foo ~/top$ unionfs-fuse ~/Pictures bar   My user, yonran, can read it fine:  ~/top$ ls -l total 8 drwxr-xr-x 1 yonran yonran 4096 2011-07-25 18:12 bar drwxr-xr-x 2 yonran yonran    0 2011-07-25 18:51 foo drwxr-xr-x 2 yonran yonran 4096 2011-07-25 18:50 normal-directory ~/top$ ls bar/ Photos   But root can't read either FUSE directory:  ~/top$ sudo ls -l ls: cannot access foo: Permission denied ls: cannot access bar: Permission denied total 4 d????????? ? ?      ?         ?                ? bar d????????? ? ?      ?         ?                ? foo drwxr-xr-x 2 yonran yonran 4096 2011-07-25 18:50 normal-directory ~/top$ sudo ls bar/ ls: cannot access bar/: Permission denied   I'm running Ubuntu 10.04: I always install any update from Canonical.  $ uname -a Linux mochi 2.6.32-33-generic #70-Ubuntu SMP Thu Jul 7 21:13:52 UTC 2011 x86_64 GNU/Linux $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 10.04.3 LTS Release:    10.04 Codename:   lucid   Edit: removed the implication that root used to be able to access the mounts. Come to think of it, maybe my scripts never tried to access the directory as root.


Calculate cos 43(degree) with an error less than 1/20.000

That's my homework. I've been looking for "Taylor series" and trying to understand it. Seen some solutions but i think they're not that explanatory. Can you help me?


Working on this. Have to find a solution. Very new to DE: $$\begin{cases}  2yx'(y)-1=x^2(y) \\  x(y=1)=1 \\  \end{cases} $$ Writing this as: \begin{align} 2y \frac{dx}{dy}-1&=x^2y\\ \frac{1}{x^2}2y\,dx-1&=y\,dy\\ \frac{1}{x^2}\,dx &= 1+y\,dy\\ \int \frac{1}{x^2}\,dx &= \int 1+y\,dy\\ -\frac{1}{x}+C &= \frac{y^2}{2}+y+C \end{align} Is this correct? Feel like I'm just doing algebra, but don't really understand if it's correct. Would love feedback.


I'm confused around MAX_SAFE_INTEGER in java

My understanding is the maximum digits to safely represent a number as double in Java is 2^53-1, or 9007199254740991. And that is regardless of decimals because that's represented by exponent bits. Consider the following:      double dblprice = 9007.199254740991;     System.out.println(dblprice);     dblprice = 9007199.254740991;     System.out.println(dblprice);   The output is   9007.199254740992 9007199.25474099   Which I don't understand why for first case the last 1 is replaced by 2 and for the 2nd case, the last digit is dropped. Thanks a lot!


"watching the television" or "watching television"?

"He was watching the television when I called on him."  When I said this sentence to one of my friends  (an English teacher)  he corrected me saying that the definite article (the) should be omitted. Still, I can't understand why. ? Actually similar  question has been asked earlier but the answers were so ambiguous. So I put complete sentence.


I am trying, loosely based on  to make a template for my Statement of Purpose. How could I remove the empty extra line between the horizontal rule and the text? Moreover, how could be the first letter be of larger font in the title?  Any other suggestion is more than welcomed.  \documentclass{article}  \usepackage[left=1in,right=1in,top=1in,bottom=1in]{geometry}  \newcommand{\HRule}{\rule{\linewidth}{0.5mm}} \newcommand{\Hrule}{\rule{\linewidth}{0.3mm}}  \makeatletter% since there's an at-sign (@) in the command name \renewcommand{\@maketitle}{   \parindent=0pt% don't indent paragraphs in the title block   \begin{center}     \MakeUppercase{\Large \bf \@title}     \HRule%   \end{center}%   \textit{\@author \hfill \@date}   \par } \makeatother% resets the meaning of the at-sign (@)  \title{Statement of Purpose} \author{name} \date{Ph.D. Applicant}  \begin{document}  \maketitle% prints the title block  Emergency medicine has always been a passion of mine\ldots  \end{document}


Why in this case object can't be set as null?

While writing program to delete a node from BST, I am not able to make a node null.  Don't know what wrong I am doing.  MainClass:  TreeNode rootNode = null; rootNode = new TreeNode().insert(75); rootNode.delete(rootNode, 75);   In TreeNode Class, I have the method delete as(just showing the relevant part of the method):  public void delete(TreeNode node, int valueToDelete) {     if(node == null) {//node supplied is null         return;     }     node = null; }   In the method delete(), I am setting rootNode itself as null, still its not null, when I reach back to my MainClass. Before and after delete, the value 75 remains as it is in the tree whose root node is pointed by rootNode. I don't know why.


the exercises suggested/the suggested exercises

I´d like to know whether I could say these two sentences:  1) However, I have calculated that in order to complete the exercises suggested, it would take closer to....  2) However, I have calculated that in order to complete the suggested exercises, it would take closer to....  To my ears both sound pretty good.   Thank you very much.


Do quantum physics apply universally at all scales?  Where do quantum physics apply?   Does the nucleus of an atom abide by the laws of quantum physics?   Like do we know the definitive/velocity position of a proton or that of a neutron-proton pair?   In other words, to which bodies does the Uncertainty Principle apply?   Are there wave functions for neutrinos, protons, neutrons, quarks or just for electrons?   And can you make a wave function for a larger body such as a molecule?   Where is the limit?


Find the Fourier Transform of $ \frac{\sin (x)}{x}$

I've been trying to find Fourier transform of that function.  What I got so far: - The function is even, so the FT is of order $2$, and an involution. - When we integrate the FT of that function over $\mathbb{R}$, we get $1$  (because FT of FT is the function itself, we put argument$=0~$ and $$\lim_{x\to 0}  \frac{\sin (x)}{x}=1$$ well known.   But I don't know how to precisely calculate FT of that function given as a  combination/mix of elementary functions. I tried also changing variables etc. yesterday but nothing worked.  Thanks in advance for help.


I have 200 mm long, 0.3 mm diameter nichrome wire. I am heating this wire with 5V AC power supply and current approximately 1.4 A. I need to calculate the exact temperature of the nichrome wire?


Numbered examples in linguistics that I can refer back to

I do linguistics and I'm looking for a way to enumerate language examples that lets me reference to them in the text.        (1) This is an example.  Sentence \ref{...} provides a good example of basic English.   Bonus points if it's usable with \item, which makes it easy to use with org-mode.


JavaScript arithmetic subtraction giving extra unwanted decimal digits

var a = 8.4286; var b = 2; console.log(a-b)  Actual Output:  6.428599999999999 Expected Output: 6.4286 What is the reason behind this and how to get around it?


In the original Star Wars movie, Grand Moff Tarkin destroys a perfectly viable Alderaan seemingly simply to demonstrate imperial ruthlessness.  It then stands to reason that the economic loss was negligible to the Imperium, implying immense wealth. Note there are some that claim that the empire was on the brink of . Presumably, in that case, Emperor Palpatine simply would not have cared. But this is not the sense we get in the first movie. If anything the upper echelons of the empire exuded nothing but confidence! (Looking at this excellent  we get a possible sense of the way the Empire funded itself.)  Then, can we reasonably estimate the number of worlds in the Empire?      If we can prove a general statement such as 'it comprised the whole far-far-away galaxy' that would be sufficient proof. Also if it leads to speculation we'll remove it


How to determine the sum of the series $\,\sum_{n=1}^{\infty}\frac{n+1}{2^n}$

I am stuck on the following problem:      I have to determine the sum of the series  $$\sum_{n=1}^{\infty}\frac{n+1}{2^n}$$   My Attempt: $$\sum_{n=0}^{\infty}\frac{n+1}{2^n}=\sum_{n=0}^{\infty}\frac{1}{2^n}+\sum_{n=0}^{\infty}\frac{n}{2^n}=\frac{1}{1-\frac12}+\sum_{n=0}^{\infty}\frac{n}{2^n}=2+\sum_{n=0}^{\infty}\frac{n}{2^n}$$.  So,I am stuck on determining the value of $\,\,\sum_{n=0}^{\infty}\frac{n}{2^n}$.   Can someone point me in the right direction? Thanks in advance for your time.


Let $f: \mathbb{C} \to \mathbb{R}$ a real continuous function such that $|f(Z)| \leq 1$ and $C$ the unit circle circulating in the positive directive. Show that $|\int_C f(z)| \leq 4$.  I know that $|\int_C f(z) dz| \leq  \int_C |f(z)| dz \leq 2 \pi $, but it is not a sufficient bound. Is anyone could help me a this point?


What is the difference between an "uncountable noun" and an "adjective"

In the word "afternoon tea"(the tea that is served in afternoon) the word 'afternoon' is an uncountable noun as OALD shows. In the word "English countryside"(the countryside that is in England) the word 'English' becomes adjective. But why? I can't see the difference in the work these words do. Other examples are "egg noodles", crocodile shoes", "sports car" and "double bed", "favourite movies", "paper tiger". (Interestingly OALD does not count "paper" as adjective.) Can somebody kindly explain me please. Thank you!


SQL Server provides ways to analyze indices that should be added to a database, but is there a way to identify indices that shouldn’t exist, or be replaced be better ones in SQL server?  For example:   Indices that uses a lot of space, cause locking during inserts and aren’t well used Duplicate, or nearly duplicate indices that could be replaced by a single index   Please read carefully before marking as a duplicate of another question.


i am tyring to wake on lan via my windows mobile phone so i can remote, i have port forwarded my 3389 port on my router correctly and allowed access via public in the firewall and it works however when i port forward port 9 for WOL and check via portchecktool.com the port remains blocked, i have created a rule in windows firewall called wol and allowed port 9 access but alas its still blocked port 3389 is open on the same site and works but port 9 is not. is there any solution for me to be able to wake on lan over the internet and allow port 9 to be unblocked?


Ok, I have bought this game multiple times over the years on different platforms. The only real negative aspect of the game is turning into a vampire. I haven't played this game in about three years and just bought it on the PC for the first time. Somehow I've turned myself into a vampire, AGAIN! I didn't eat vampire dust, so I don't know what it is. My problem is getting rid of it. I've already gone too far in the stages.   Falion is my only hope, but I don't understand how to fill a black soul gem. I've grabbed the Spell Time: Soul Trap and used it, nothing happens. It really pisses me off since it keeps costing me money. Other forums weren't clear on this matter. Can someone please explain exactly how I can fill the black soul gem and cure myself? Please be specific.


Classification of radical ideals of $\mathbb{Z}[X]$

The prime ideals of $\mathbb{Z}[X]$ are    $0$  $(p)$ for prime integer $p$  $(f)$ for irreducible polynomial $f$  $(p, f)$ for prime integer $p$ and irreducible polynomial $f$ that remains irreducible mod $p$.   The radical ideals are intersections of prime ideals. It is easy to compute the intersection when finitely many prime integers are involved using Chinese remainder theorem: they are of the form $(\prod^{n}_{i=1} p_i, f)$ where $f$ is zero or square-free mod $p_i$ for distinct prime integers $p_i$.  However, I could not compute the intersection when infinitely many prime integers are involved.   Related question: if there is no simple form for all the radical ideals, is there a simple description of the Zariski-closed sets of the prime spectrum (which correspond to radical ideals)?


Hits vs Searches statistics on Stack Overflow careers

This question has two parts, one feature request, and one discussion related item. Feature Request Can we have a statistic available that tells us how often we show up in searches compared to other candidates?  Specifically, I know that I show up in about 10% of the searches done by Employers; but I want to compare that percentage against other candidates. The reasoning is if I have a lower percentage, then I know that I'm 'doing it wrong', and I have hard numbers to prove that. It would also help to know how often employers are searching certain items (say the 'trending' programming language; which language is on the rise, etc). I realize TIOBE  on language popularity; but it isn't really 'local' enough to be useful. Discussion What other statistics would you like to see for Careers? What metrics would be helpful to you in measuring the effectiveness of your CV?


Resources to consult alongside Griffiths?

I'm trying to teach myself EM using Griffiths. However, the number of actual Physics problems in the book is limited, and since it takes a lot of practice to master a skill, I wanted to know if there are some resources from which I can practice ED from. For example, there are not many problems on solving Laplace's equation. Is there a book that I can refer to besides Griffiths for problems? I have Purcell but there isn't much about solving PDEs using separation of variables in Purcell.


How to show keys (ctrl, alt, ..., etc.) as fancy as StackOverflow?

In StackOverflow, I can show keys like this: ctrl + alt.  How to do the same things in LaTeX?


Can the cat command edit a text file as well as read it?

I am trying to learn all I can about the cat command. I am going to be using it for its light weight performance and its ability to work in nothing but a command line.  I know it can create a text file and read it with quite a few perks but I cant figure out how to edit an already existing one.  There is a similar question to this (What is 'cat' used for?) but it doesn't say were the limits are for the cat command.      If anyone has any advice or know some good sources to learn this stuff from I would greatly appreciate it.  Thank you.


Install Ubuntu along with Windows and Optimal partitioning?

I want to install Ubuntu as primary OS. How should I do the partitioning to get maximum output?  I am java/Liferay developer.   My system configuration is:    dual core 4 gb ram.


Can I get into grad school with a low GPA?

So here's my situation: I'm a senior electrical-engineering major student in a decent-ranked university (60-80), and I've been working in a lab in our department and published 2 papers as the second author (conference paper, IEEE) and currently I'm in charge of two projects so I may publish more before I graduate. The thing is: I have a low GPA (2.9), but there is a reason: I've been an athlete of the fencing team in our university, and for two years I've been the vice captain of it. I have to go to practice every night, Monday to Thursday, so I don't have a lot of time to study. My boss, who got her PHD degree from CalTech, trusts me a lot so I will have a kickass recommendation. She refers me as a student who's "not very good at theoretical learning, but always creative and can solve practical problems very well." She also granted me the fellowship.  I want to go to those well-ranked engineering schools, like UIUC or Berkeley, and pursue a master's degree (and even a PHD, if possible). Although I do have a good research background, I'm worrying about my gpa. Most schools do have a gpa threshold, but is it possible for me to get into these schools? Thank you.


Multivariable Optimization Rectangular Box Volume

What are the dimensions for the cheapest possible rectangular box with a volume of $490 cm^3$  if the material for the bottom costs $\$6/cm^2$, material for the sides costs $\$7/cm^2$, and material for the top costs $\$14/cm^2$ ?  I can't seem to get anywhere close to the answer in $x,y,z$ form.


The form of future implication: be-deletion

As we all know "to be continued" refers to the future. However for some reason (I don't know why) we do not use "to be going to + verb" for this.     Sarah to take to the stage tonight   What does this usage mean? Why we don't use "is going to" ?


"One of the benefits of this is that it will eliminate gym anxiety if you have any because you are with someone whom you trust."


Closed Loops inside a Circuit and Kirchhoff's Laws

Good afternoon!  I'm currently taking a physics course, and we're covering Kirchoff's Laws.  To the best of my knowledge, Kirchoff's voltage law reads "The sum of the potential differences across all the elements around any closed circuit loop must be zero."  I had a homework problem that involved the following circuit:    I was tasked with (among other things) finding the current in the top-most branch of the circuit (between A and B).  While trying to find that, I was faced with applying Kirchhoff's Voltage Law to loop CBDC.  In a situation like this, how can the voltage changes across the individual elements in the loop sum to zero?  More generally, in a circuit consisting of two batteries of different voltages and no resistors, how can the sum of the potential changes across the elements be zero?  Thank you!


Debugging AttributeError Invalid destination path from ArcPy?

I am struggling with using Python to export an mxd to PDF. The final PDF would have 4 pages, each with the same extent but with a different layer displayed. Below is the code I entered into the ArcMap 10.4 Python console and at the bottom is the runtime error I received. There is a lot happening in the runtime error and I don't know which are the key errors, which makes it hard to Google and fix. I can't tell if there is something wrong with my python installation or if there is something wrong with my code.   Can you help me breakdown what this runtime error means (referencing specific snippets from the error message) and how I resolve it?      >>> import os, arcpy ...  ... #Specify output path and final output PDF ... outPath = r"C:\Users\Tony\Desktop\"" ... finalPdf = arcpy.mapping.PDFDocumentCreate(outPath + "mapbook.pdf") ...  ... #Specify the map document and the data frame ... mxd = arcpy.mapping.MapDocument("CURRENT") ... df = arcpy.mapping.ListDataFrames(mxd, "Layers")[0] ...  ... #Turn on visibility for each theme and export the page ... lyrList = ["5ft Contour Intervals", "Satellite Imagery", "Percent Slope", "Aspect (compass degrees)"] ... for lyrName in lyrList: ...      lyr = arcpy.mapping.ListLayers(mxd, lyrName, df)[0] ...      lyr.visible = True ...  ...      #Export each theme to a temporary PDF and append to the final PDF ...      tmpPdf = outPath + lyrName + r"\"temp.pdf" ...      if os.path.exists(tmpPdf): ...           os.remove(tmpPdf) ...      arcpy.mapping.ExportToPDF(mxd, tmpPdf) ...      finalPdf.appendPages(tmpPdf) ...  ...      #Turn off layer visibility and clean up for next pass through the loop ...      lyr.visible = False ...      del lyr, tmpPdf ... del mxd, df, finalPdf ...  Runtime error  Traceback (most recent call last):   File "<string>", line 21, in <module>   File "c:\program files (x86)\arcgis\desktop10.4\arcpy\arcpy\utils.py", line 182, in fn_     return fn(*args, **kw)   File "c:\program files (x86)\arcgis\desktop10.4\arcpy\arcpy\mapping.py", line 1156, in ExportToPDF     layout.exportToPDF(*args) AttributeError: Invalid destination path >>>


How to check that a file can be read successfully?

In my program I pass the path to a file which may be still being written to by another process (independent external non-c#).  How can I check the file is fully readable and accessible before I actually send the path back to the client? FileIOPermission with Demand for reading did not work for me, so I am wondering if there is some other way of doing this without attempting to read the whole file upfront.  Thank you.


EDIT: Just wondering why was this question closed as a duplicate of a question asked almost 2 years after this one... I've seen an example of how to sign using RSA. Besides the signing itself (s = m^d mod n) it also hashes and adds an IV. Why is that needed?


How is a new beginner meant to grow on one of the Stack Exchange communities

I am new to Stack  Exchange and I think it's very impressive.  One thing bothers me is that because it is so far down the line, I don't think beginners stand a chance of growing.  As time goes on, more and more questions are being answered and therefore if someone asks something with a really basic answer you can just comment. However, beginners can't comment until they have a reputation of 50. The only way they can build up is by answering questions. But if they answer a basic question long winded, they will be voted down because not so much effort was needed or because its already a duplicate and will lose the bit of reputation they have earned.  Can you tell me the future for beginners?


bought off lease Dell, with ubuntu installed... need password

I had bought an off lease Dell with ubuntu pre-installed....whenever I try and update any updates to anything, it asks for a password, which I had never created. Nothing works...help, please? Thanks


I found a strange error in in_array() PHP function.  Next code returns TRUE but it's wrong value. Anyone can told my what I do wrong?  <?php var_dump(in_array(0, array('a', 'ab', 'abc')));   Live demo:   Of course I know that I can execute in_array(0, array('a', 'ab', 'abc'), true) but why without this true this function isn't working good.


Lens specs of smartphones for camera tracking in Blender

I've been trying to track a footage taken by my Samsung Galaxy Note 8.0 (GT-n5100) tablet. It has a good 5 mp camera and I tracked the footage well. But the problem arises at the time of solving the camera. The solve error is too high (more than 2). I don't know the width the tablet's camera sensor or the focal length or any other specifications. So my question is, has anybody been able to solve the camera on footage shot by a smartphone and if yes,  what camera and lense specs did you feed to the Blender?


I have a big dataset of sensor data (body temperature) acquired on a lot of people and each person is assessed for several days.   person1 = [temp_day1, temp_day2, .... , temp_dayn]   During each day the temperature is assessed 24 times (1 every hour).  temp_day1 = [temp_01h, temp_02h, ....,temp_24h]   Sensors could have some problems...for example they could be not calibrated and they could be influenced by enviromental temperature etc..  In order to process the data (compare temperature across the people) I had in mind to standardize the data of each subject according to the mean and standard deviation of his temperature during all his assessed days.  Is that correct? Do dividing for the standard deviation have any meaning? Are there other ways to make the data comparable?  Thanks


Disable Unity search "partners" across all present and future user accounts

We would like to disable the Unity default Amazon and other partners search.  I know this is easy to do for one account either through gsettings in terminal or under privacy in system settings.  But is there a way to do it once and for all, so that no user accounts presently available, or user accounts in the future, have this setting enabled?


Is it possible to find the Padé approximation for $\ln{(1+x)}$?

On the  wiki, people present various form of padre approximant for $\sin{(x)}, \exp{(x)}$, erf$(x)$ but does not provide instruction on how to create them. What would be the correct way to find the Padé approximant for $\ln{(1+x)}$ ? Thank you very much !


Solve for positive integers: $\frac{4}{13}=\frac{1}{x}+\frac{1}{y}+\frac{1}{z}$

Solve for $x,y,z\in\mathbb{N}$  $\frac{4}{13}=\frac{1}{x}+\frac{1}{y}+\frac{1}{z}$  I tried by some general methods but they didn't help me.


Proving $\forall x\in \mathbb R$, if $x>0$ then $(x+\frac 1 x \ge 2)$

Prove $\forall x\in \mathbb R$, if $x>0$ then $(x+\frac 1 x \ge 2)$   I think a proof by contradiction is the easiest in this case, so we have: $\forall x\in \mathbb R :x>0\wedge \neg(x+\frac 1 x \ge 2)\iff \forall x\in \mathbb R :x>0\wedge (x+\frac 1 x < 2)$  Take $x=100$ and we get an immediate contradiction $100+\frac 1 {100}< 2$  Did I use proof by contradiction correctly?  Is this statement $\forall x (p\to q)$ or $(\forall x (p)) \to q$?


For some RV's $X$ with continuous density on $[0,1]$, is $\mathbb{E}|1/X|=\infty$?

Recently  for why, if $Z \sim N(0,1)$ denotes the standard normal, $\mathbb{E}|\frac{1}{Z}| = \infty$. However, in hindsight this argument does not seem to rely on many special properties of $Z$. As a test of my understanding, I have tried to make the following generalization:     Claim (Sufficient Condition for $\mathbb{E}|\frac{1}{X}| = \infty$): For any random variable $X$ with a density $p(x)$ strictly positive and continuous at every point of $[0,1]$, it is the case that $\mathbb{E}|\frac{1}{X}|=\infty$.   Question: Is this claim true?  Purported proof: By , $$\mathbb{E}\left[\left|\frac{1}{X}\right|\right] = \int_{\mathbb{R}} \frac{1}{|x|}p(x) dx = \int_{-\infty}^0 \frac{1}{|x|}p(x) dx + \int_0^1 \frac{1}{x}p(x) dx + \int_1^{\infty} \frac{1}{x}p(x) dx $$  Because $p(x)$ is strictly positive and continuous at every point of $[0,1]$, by the  there exists an $x_0 \in [0,1]$ such that $p(x_0)>0$ and for all $x \in [0,1]$, $$p(x) \ge p(x_0)\,,$$ i.e. $\min\limits_{x \in [0,1]}p(x) =: p(x_0)$ can be well-defined.  Therefore, by  we have:  $$\mathbb{E}\left[\left|\frac{1}{X}\right|\right] \ge \int_0^1 \frac{1}{x} \left(\min\limits_{x \in [0,1]}p(x) \right) dx + \dots = \left( \min\limits_{x \in [0,1]} p(x) \right) \int_0^1 \frac{1}{x}dx + \dots = \infty  $$ since the integral $\int_0^1 \frac{1}{x}dx$ is . "$\square$"  Can this actually be correct? It seems odd to me that the behavior of the random variable on the interval $[0,1]$ alone can determine whether its reciprocal has finite expectation or not, especially for distributions which are not symmetric about $0$. It also seems too generally/widely applicable to too many important examples of (continuous) distributions to go completely unmentioned, for example, .


I own a hosting company but maybe I am just to mad for Ubuntu. My customer wanted to run apt-update and got the following response: E: The repository 'http://ppa.launchpad.net/ansible/ansible/ubuntu groovy Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://ppa.launchpad.net/mc3man/xerus-media/ubuntu groovy Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.  How do I fix this?


How to render one side of a cube with different material than the other sides

Picking up 3D graphics since 2004, so I'm a bit lost now.  I'm trying to make a cube of metal look rough cut on 5 sides, and mirror smooth on one side.  I've managed to control the roughness with vectors for the bumb and so on, but I hit the wall trying to assign another property of the one side to be smooth.  I'm thinking it should just be to separate the face that are to be smooth from the rest.  When looking into this site's answers, it looks like I just have to select the face I want to separate with key "Y". It's separates all right, but I can't seem to assign a specific material to that separated side, it always includes the other sides vectored bump.  Why is a separated mesh face still "slaved" to the other faces when it comes to material assignment?


How to Conduct a performance test using jmeter for 100000 users

I need to conduct a performance test on Azure website and the Users count is '200000'. Can anyone suggest me the configuration for this?


I have a class Car:   public class Car{      final int uniqueId;      Car(int id)        {          uniqueId=id;        }  }   I have to store this as key in a HashMap. The max cars will be 1000. I have to decide the hashCode for this. What would be an efficient hashCode implementation for this? So the right number of buckets are formed.  The IDE generated:  @Override     public int hashCode() {         final int prime = 31;         int result = 1;         result = prime * result + ID;         return result;     }   But it will generate a unique hashcode for each value. So it does not seems right


Link errors when compiling a swift project that depends on a static c++ lib

I have a swift project that depends on an objective-c++ static lib. When I compile the static lib alone, there is no error. But when I add the lib as a sub project to a swift project and compile it, I got the following error:  Undefined symbols for architecture x86_64:   "___gxx_personality_v0", referenced from:       +[obj_photo open] in libphoto.a(photo.o)       Dwarf Exception Unwind Info (__eh_frame) in libphoto.a(photo.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)  The objective-c++ file looks like this  // -- Obj-C++, photo.mm #include "photo.hpp" #import "photo.h" #import <UIKit/UIKit.h> #import <Photos/Photos.h> #import <Photos/PHAsset.h> #import <Photos/PHFetchOptions.h>  @implementation obj_photo + ( bool )open {     PHFetchOptions *options = [[PHFetchOptions alloc] init];     PHFetchResult *fetchResult = [PHAsset fetchAssetsWithOptions:options];     return true; } @end  bool photo::open_photo() {     return [obj_photo open ]; }   And in the swift file, I called the open_photo()  The weird thing is if I remove the following line:  PHFetchResult *fetchResult = [PHAsset fetchAssetsWithOptions:options];   I don't get the link error.  Any clues?


Remember how on iChat you could block certain people or just allow certain people? Is there a way to do that on iMessage?


What is the meaning of the word ' period' in the following context?

I am learning English by reading the New York Times. It is difficult, of course, but a challenge at the same time. In the international edition it said:   The president is unfit for this crisis. Period.  In Spanish we would say: al tiempo. (time has the last word and all the answers, or the passage of time)  Who could help me?


Centering caption in subfloat with a forced linebreak

I have a few subfloat captions that are too short to have an automatic linebreak, but I want to force one and still have centering among the lines:  Basically I would like a and b to be like c ...    How can I do it?  MWE:  \documentclass[12pt, twoside, titlepage]{report} \usepackage[demo]{graphicx} \usepackage{subfig} \usepackage{caption}  \begin{document}  \begin{figure}  \captionsetup[subfigure]{justification=centering} \centering \hspace*{-0cm}     \subfloat[$v=0$\newline$\omega = \omega_2$]{\includegraphics[scale =0.58]{"satspecK1".pdf} }%     \quad      \subfloat[general $v$\newline general $\omega$]{\includegraphics[scale =0.58]{"satspecK2".pdf} }%     \quad      \subfloat[$v = \pm (\omega_1 - \omega_2)/2k$\newline$\omega = (\omega_1 + \omega_2)/2$]{\includegraphics[scale =0.58]{"satspecK3".pdf} }%     \caption{}     \label{fig:Ksatspec}% \end{figure}   \end{document}


How can I batch delete events from Google Calendar?

I have few events in my Calendar that are scheduled weekly at the same time with the same name.  Because of some issues with syncing between Outlook/Hotmail Calendar/Google Calendar these events are no longer repeated events in my GCal but many independent events. Therefore I can't delete a single event using "All following" option. I wan't to delete all the events in series.  How can I solve this problem?


Is it right on the side of designer to use Slider on the main page of website?

I see a lot of templates coming with an massive slider on the top of the main page and as I was about to design my website I wanted to know if it's good for the design and UX . And as I googled it many sites says it's an bad idea but I wanted more idea of how it affects UX.


Sudo /bin/bash -c 'some command' does not load /etc/environment content, not set the env

I've got a bit confused  When I do log in via sudo su -  I get full environment loaded  $ sudo su - # env SHELL=/bin/bash TERM=screen-256color LC_ALL=en_US.UTF-8 HTTPS_PROXY_HOST=myproxy.com HTTP_PROXY_PORT=3128 USER=root (some other lines)  # cat /etc/environment HTTPS_PROXY_HOST=myproxy.com HTTP_PROXY_PORT=3128   But when I do execute a single command via sudo, the environment (specially /etc/environment) is not loaded  sudo -i -u root /bin/bash -c 'env' TERM=screen-256color SHELL=/bin/bash USER=root (some other lines) NO LINES FROM /etc/enviromnment   Any clue?  System Ubuntu 14.04


Problem with long chapter title and arsclassica

I have a problem with arscalssica style in combination with classicthesis.  The text under the chapter title starts always at the same position, independently on how long is the chapter title, which produce this ugly behaviour:   The code I used to generete this output is really basic:  \documentclass[10pt,a4paper,twoside,openright,titlepage,fleqn,headinclude,footinclude,BCOR5mm,numbers=noenddot,cleardoublepage=empty,tablecaptionabove]{scrreprt} \usepackage{subfig} \usepackage[eulerchapternumbers,subfig,beramono,eulermath,pdfspacing]{classicthesis}  \usepackage{arsclassica}  \usepackage{blindtext}  \begin{document}     \chapter{\blindtext}     \blindtext \end{document}   The compilation raises the following warnings:  C:\Program Files (x86)\MiKTeX 2.9\tex\latex\koma-script\scrreprt.cls: Class scrreprt Warning: You've used obsolete option `tablecaptionabove'. C:\Program Files (x86)\MiKTeX 2.9\tex\latex\classicthesis\classicthesis.sty: Class scrreprt Warning: Usage of package `titlesec' together(scrreprt)              with a KOMA-Script class is not recommended. C:\Program Files (x86)\MiKTeX 2.9\tex\latex\titlesec\titlesec.sty: Package titlesec Warning: Non standard sectioning command detected(titlesec)                Using default spacing and no format. C:\Program Files (x86)\MiKTeX 2.9\tex\latex\titlesec\titlesec.sty: Package titlesec Warning: Non standard sectioning command detected(titlesec)                Using default spacing and no format. C:\Program Files (x86)\MiKTeX 2.9\tex\latex\titlesec\titlesec.sty: Package titlesec Warning: Non standard sectioning command detected(titlesec)                Using default spacing and no format. C:\Program Files (x86)\MiKTeX 2.9\tex\latex\titlesec\titlesec.sty: Package titlesec Warning: Non standard sectioning command detected(titlesec)                Using default spacing and no format. C:\Program Files (x86)\MiKTeX 2.9\tex\latex\titlesec\titlesec.sty: Package titlesec Warning: Non standard sectioning command detected(titlesec)                Using default spacing and no format. C:\Program Files (x86)\MiKTeX 2.9\tex\latex\classicthesis\classicthesis.sty:373: Package scrreprt Warning: Activating an ugly workaround for a missing(scrreprt)                feature of package `titlesec` on input line 373. C:\Program Files (x86)\MiKTeX 2.9\tex\latex\arsclassica\arsclassica.sty:192: Package hyperref Warning: Option `hyperfootnotes' has already been used,(hyperref)                setting the option has no effect on input line 192. C:\Program Files (x86)\MiKTeX 2.9\tex\latex\arsclassica\arsclassica.sty:192: Package hyperref Warning: Option `pdfpagelabels' has already been used,(hyperref)                setting the option has no effect on input line 192   The behaviour is ok if I do not use arsclassica but only classicthesis:


Rendering and lighting issues in blender eevee under linux

I am experiencing some weird lighting And rendering issues on blender under Linux.  This is what I get on Linux:    And this is what I am supposed to get:    My OS is Linux Mint 19.1 Cinnamon with Linux kernel 5.3. iam using Blender 2.8.1 I tried loads of different Linux kernels but ended up with The same results. I tried Upgrading My kernel Downgrading My kernel. Installing Updates. I tried Everything Nothing is Working. Also I got the output when running Blender from Terminal.  Received X11 Error:     error code:   182     request code: 156     minor code:   34     error text:   GLXBadFBConfig  Received X11 Error:     error code:   8     request code: 156     minor code:   34     error text:   BadMatch (invalid parameter attributes) Error: Not freed memory blocks: 2, total unfreed memory 0.000458 MB  Blender quit


Light emitted through a translucent plastic material

I often see hallway lights or street signs made from translucent plastic shapes inside of which is a light. The light doesn't spread through the thicker parts of the plastic, and some angles are materialized by being dimmer such as in these photos:      The darker areas help see the object's volume and its structure, and I am trying to reproduce the same thing in Blender.   I have tried to make a material that is a mix of translucent and transparent, and also transparent and volume absorption, but I cannot seem to get it right.     (Shared screenshot and version are shareable, dumbed-down versions of the current project).  Also, all the edges aren't outlined the same way, and it's hard to tweak their appearance.  Either the darker areas are too sharp, or the material looks like smoke more than plastic.  How could I make this effect in Blender?


How can I swap the contents of my two MacBooks?

I have two MacBooks (an old one mid 2009 with a 150 GB drive (128 GB used) and a newer from 2011 with a 300 GB drive (30 GB used)) and a 1 TB Hard Disk.   What is the easiest way to move the content of the 2009 MacBook to the 2011 model and the content of the 2011 model to the 2009 model (so that basically the content of the the two MacBooks is swapped afterwards)?


Why do LocalTemp table showing with lengthy underscore under Temporary Tables of tempdb in SSMS 2017 Express Edition?

In my Microsoft SQL Server 2017 Express Edition, I have created a local temp table using below create statement,  create table #localtemptable (tempid int,tempname varchar(20) )   After creating #table, I  checked the tempdb -> Temporary Table , it is showing the table name along with a lengthy underscore and 0000000004 number. What is it meaning and why it is showing like this?


How can I take "Photo Sphere" style images with a regular camera?

With google's Nexus devices it is possible to make so-called .  Is it possible to make a Photo Sphere with an ordinary digital camera?


So i want to sell my computer. However i need to factory reset it. How can i do this on startup? I want something such as a key that i press on startup and a menu appears with the option to factory reset. Any ideas?


Upgrade to specific distribution with do-release-upgrade?

I have Ubuntu precise running on a VPS (server). I am connected with SSH and would like to upgrade to Ubuntu trusty.  I do not want the newest release. Changing /etc/update-manager/release-upgrades to "normal" causes the do-release-upgrade shell script to select the next release (12.10), not 13.x. Selecting LTS goes straight to 14.x. How do I specify 13.x release?  Would I have to manually change the /apt/sources.list to point to trusty and then do a dist-upgrade? I prefer to do it with the do-release-upgrade script, but can't figure out how.


I have two tables, logically related one to many.  First table:  CREATE TABLE Persons  (     ID int NOT NULL PRIMARY KEY,     LastName varchar(255) NOT NULL,     FirstName varchar(255),      Age int );   Second table:  CREATE TABLE Vehicles  (     Brand varchar(50),      PersonID int,      FOREIGN KEY(PersonID) REFERENCES Persons(ID) );   My approach is to list each of the Persons and the vehicles that this Person own.   What I managed to do:  SELECT LastName, brand  FROM vehicles INNER JOIN Persons ON Persons.ID = PersonID ORDER BY LastName ASC   Unfortunately this is not what I have in mind to do, which is to display every Person once and next to it a list of vehicles for ex.:  User1 | kia, ford, jeep User2 | ferrari, harley   Is it doable and if so what is the appropriate way? Any help is welcome!


Illegal assignment from Schema.SObjectField - apex code

Do I have to load that in List only ? I'm coming from .Net background and still learning how does the SF works...  PS: Schedule__c is a custom object and trying to access the field from.     Error: Compile Error: Illegal assignment from Schema.SObjectField to   String at line 26 column 9    public PageReference SearchNow()  {       String interval_value = Schedule__c.Interval__c;       //do more stuffs here   }


Why are electromagnetic waves not able to pass through a hole with a diameter smaller than the wavelength?

I am doing research on Faraday cages for school, and I want to know how it works. Faraday cages can have holes in them, and if the diameter is smaller than the wavelength of waves you want to block, the Faraday cage blocks the waves. I have found a formula that the transmission of electromagnetic waves through a hole with diameter $d (< λ)$ equals $(d/λ)^4$. However, I cannot find anywhere why. It does not make sense in my head, for me it seems like a truck cannot be too long to go through a tunnel, but why is this not the same for waves? My guess is that it has to do with quantum mechanics, can someone please explain to me how this works? Thanks!


What does  user do? What is its role? I read the description in which it's specified that:  Own downvotes on spam/evil posts that get permanently deleted  What's the use of this? EDIT How this process got Editor and Organizer badge? How he got two orgnizer badge?


go through U.S. passport control with non-U.S. citizen?

me (US citizen) flying into JFK from my home in Germany with my German girlfriend, and my three teenage kids from an earlier marriage (dual citizens). can Martina, the German girlfriend, pass through the U.S. line with us, or does she need to go through on her own? Yes, she's a big girl and can handle it, but if it's not necessary then I want to stay as one group. Thanks for your insight!


Can't press enter to send comment when user's name is being auto completed

My cursor is currently at the end of Nicael's name, and the comment is long enough to send:    However, if I press enter with my cursor there, I can't send the comment - despite it being a valid comment. If I move the cursor to the non-user-ping text, I can press enter and send it. The same thing happens if the cursor is the the middle of the full name, or I am typing the name and it is partially complete - enough to show the auto complete:    This doesn't happen if the user I'm pinging has edited the post, and the auto complete doesn't show up:


left inverse is not equal to right inverse

Is it possible to have a function which has both left and right inverse but they are unequal ?  A left inverse means the function should be one-to-one whereas a right inverse means the function should be onto.  How can both of these conditions be valid simultaneously without being equal ?  An example will be really helpful. Thanks in advance


In WPF, in a project use Struct or Class for model with MVVM pattern?

I'm confused which type I use to create model in project, Struct or Class? There're about ten struct and some collections. I'm a newbie.


Call GIMP via the command line to flatten and export a pdf image?

I've got a pdf figure with millions of semi-transparent points that I made in R. I want to flatten it to reduce filesize and then export it back out as a PDF (as a vector still, not a bitmap).  If there is a command line option, I can run it from within R using a system() call. Is there a way to do this?


I am running Ubuntu 18.04. I installed eclipse from Ubuntu Software but when I run eclipse I get the error log:  !ENTRY org.eclipse.equinox.launcher 4 0 2018-05-20 19:19:03.099 !MESSAGE Exception launching the Eclipse Platform: !STACK java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter     at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:466)     at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:566)     at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)     at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:626)     at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)     at org.eclipse.equinox.launcher.Main.run(Main.java:1438)     at org.eclipse.equinox.launcher.Main.main(Main.java:1414)


How to name an item in a pre-filled chest

I want have the item in the chest (the dye) to have a custom name, I have tried very hard to do so.  Here is what I have so far (it works but I need the item to have a name as said before):  /give @p chest 1 0 {BlockEntityTag:{Items:[{Slot:0,id:dye,Damage:2,Count:1}]}}   Also I need the answer in 1.12  Here are things I tried but failed:  /give @p chest 1 0 {BlockEntityTag:{Items:[{Slot:0,id:dye,Damage:2,Count:1,display:{Name:"Name of item"}}]}}   and  /give @p chest 1 0 {BlockEntityTag:{Items:[Slot:0,id:dye,Damage:2,Count:1,tag:{display:{Name:"Name of item"}}]}}


What's a good way to create inner-outlines in either ArcGIS or Adobe Creative Suite?

I am making a map where I need to create inner outlines, based off of an older map my work did:   That was done in ArcGIS, and while I know how to do it there, I don't think it looks good enough, I would like to do that inner outline as more of a soft gradient. I use Illustrator CS6 fairly often with my maps for the finishing touches but I don't have any formal training. I mostly try stuff until it looks right. After doing some playing around, I was able to come kind of close like the picture below:   I did that by making the region's fill brown, and selecting the Inner Glow tool (mode: normal, opacity 80%, blur 0.3 in, edge). However, problem with that is that the white part of the region is a white fill, so if I layer it on top of my map I won't be able to see all the stuff on the map underneath it. If I make the white fill "no fill" I lose the inner glow effect.  Any suggestions on how to create that effect on the inside of the border in Illustrator or even ArcGIS desktop? I exported my map from ArcGIS as a pdf, and opened it up in Illustrator to work on this.


What should I do with the unused Op-amp inputs?

I am building a simple inverting operational amplifier circuit where I am using a chip with dual amplifier. I am only using one of the two amplifiers. What should I do to the unused amplifier's input pins? Should I leave them floating or is there a good way to sort of terminate them.


Check two variables and return which one is associative array

I have two variables $a and $b, I want to check if either of the two variables is an associative array and iterate through the one that is associative array. Have tried to do something like this : $a = "string"; $b = array('the key' => 'the value');  $array = (is_assoc($a xor $b)) ? true : false; if($array) {     foreach($array as $key => $value) { echo $key . ":" . $value; } }  But am getting error that is_assoc is an undefined function and also in my foreach loop error says expect iterable but found bool. So basically what i want to do :  Check if either of the variable is an associative array Return which one is associative array iterate through the result from 2  Php


I just want to know what voltage actually is. I seem to have misunderstandings about this; is it energy of electrons? I just want to know what actually is voltage?  And secondly I'm confused about what kVA means of a transformer. A 100kva transformer means it can turn on 1000 bulb of 100watts?


Can Markdown formatting be added to chat descriptions?  Sometimes bold text would be nice, to highlight something in the description.


preparedStatement Insert query get error NullPointerException for primary key in java with mysql

When i am coding in netbeans, java and mysql, in some point i couldn't insert values where db table having auto increment primary key (user_id).            String sql = "INSERT INTO `user`(`fname`, `lname`, `uemail`,          `upass`, `role_id`) VALUES (?, ?, ?, ?, ?)";         //ps.setInt(1,2);         ps.setString(1, fname);         ps.setString(2, lname);         ps.setString(3, uemail);         ps.setString(4, upass);         ps.setInt(5, Integer.parseInt(urole));   I get below error:     Exception in thread "AWT-EventQueue-0"                java.lang.NullPointerException             at mxm.MainFrame.btnURegisterActionPerformed(MainFrame.java:1365)


Aliens united to destroy a violent race, but the twist is that it’s humanity

I'm looking for a sci-fi short story where a crew from Earth makes first contact with an alien. The alien tells them about how all the alien races united to destroy an extremely violent/belligerent species that threatened everyone. They defeated and exterminated the species, but a few got away.   At the end, we learn this ancient enemy was humanity. And then Earth gets destroyed.


Distance metric for (infinite) lines in 3D

I would like a metric $d(\;)$ between pairs of (infinite) lines in $\mathbb{R}^3$, with these properties:   If two lines $L_1$ and $L_2$ are parallel and separated by distance $x$, then $d(L_1,L_2) = x$. $d(L_1,L_2)$ increases with the degree of skewness between the lines, i.e., the angle $\theta$ between their projections onto a plane orthogonal to the shortest segment connecting them (dashed below), where $\theta=0$ for parallel lines and $\theta=\pi/2$ for orthogonal lines.         Intuitively, I would like the metric to be related to the repulsive force between two electrically charged lines (but it need not be exactly the actual physical force).  Have such metrics been considered in the literature? If so, I'd appreciate descriptions and/or pointers—Thanks!  Update1. It turns out that the natural ad hoc definition (from the comments) fails to be a metric. For example, below, a sufficiently large value of $a$ ensures the triangle inequality will be violated:       So this question may be more difficult than it initially appeared...  Update2.  The  have revealed that in fact there is no metric that satisfies my two conditions (and is continuous w.r.t. $\theta$)!


A continues non-increasing function satisfying $f(x)\leq f(2x)$ for all $0\leq x$

Is there a continues function $f:[0,\infty)\to\mathbb R$ satisfying $f(x)\leq f(2x)$ for all $x\in[0,\infty)$ which is not increasing in $[0,\infty)$?    EDIT: In "increasing" I mean in the broader sense, that is $x<y$ implies $f(x)≤f(y)$  Thanks!


If $(A,<)$ totally ordered, show that if $a$ is a minimal element of $A$ then $a$ is minimum. Could you give me a hint how we could do this?  Definitions:  Let $(A, \leq)$ be an ordered set. We say that $a \in A$ is:   minimal, when it does not exist in $A$ an element that is previous of $a$ and different from it, i.e. $(\forall x \in A)(x \leq a \rightarrow x=a)$ $$$$ minimum when $(\forall x \in A) a \leq x$ $$$$


Possible Duplicate:        How can I tell if an AC adapter is compatible with my laptop?  For example, does the voltage output have to bee the same, or just close?  What power measurements matter?


Goal :  My intention to design a utility that could access any numeric values( int,double,byte...) and produce the squares.  What i did:    delegate  void t<T> (T somevalues);  class program   {       static void Main()       {           Console.ReadKey(true);       }   }    class Utility   {       public static void Activities<T>(T[] SomeValues,t<T> transformer)       {          var qry = SomeValues.Select(p => transformer(p));         }        public static T Squaring<T>(T vals)       {         return vals * vals;       }   }   Error :    Try to specify explicit type  argument ( in LINQ query). Operator '*' cannot be applied to operands of type 'T' and 'T' ( in Squaring( ) ).   How can i derive constraint or change the code that can access any numerics(int,double,byte,..) and produce the square.


java.lang.NullPointerException (after tried third attempt still giving the same error)

I'm new with android development. I'm currently developing an Android Application on Face Recognition. I'm trying to run an existing source code that I obtain from github. The codes seems does not have any error(red line beneath the code). When I tried to run, the application has stopped working and gave me a java.lang.NullPointerException error.  Caused by: java.lang.NullPointerException            at java.util.Objects.requireNonNull(Objects.java:98)            at com.example.syafiq.testing.FdActivity.onCreate(FdActivity.java:179)   on the highlighted error (FdActivity.java:179)  (line 178) ActionBar actionBar = getActionBar(); (line 179) actionBar.setDisplayHomeAsUpEnabled(true);   I've tried solution that I've found on the Internet  First try:  ActionBar actionBar = getActionBar(); assert actionBar != null; actionBar.setDisplayHomeAsUpEnabled(true);   And yet still the same error, so i tried another one that I found on the Internet.  Second try:  ActionBar actionBar = getActionBar();     if (actionBar != null) {         actionBar.setDisplayHomeAsUpEnabled(true);     }   The result still the same I've tried the third one  Third try:  ActionBar actionBar = getActionBar(); Objects.requireNonNull(actionBar).setDisplayHomeAsUpEnabled(true);   All the three solution that I've tried still giving the same error, point to line 179   For android manifest.xml(obtain from source code on github):  android:theme="@android:style/Theme.Holo"   But the source code does not have style.xml file under the values folder. But my android studio include with style.xml file and the code is:  <style name="Theme.Holo" parent="Theme.AppCompat.Light.DarkActionBar">   I did not use the import tools instead I've created manually (.java, .xml and other libraries that included)


On Windows, how to pdflatex compile while pdf is open with Acrobat?

I use pdflatex on Windows to compile my .tex code and I can't compile until I close my .pdf file. This is what he tells me:   latexmk -e '$pdflatex=q/pdflatex %O -shell-escape %S/' -pdf -g .\title-page.tex  ! I can't write on file `title-page.pdf'. Please type another file name for output:   I wouldn't want to use another filename each time I compile.


Help determining if the series $\sum_{n=0}^{\infty }\frac{n^2}{3^n}$ converges or diverges

$\sum_{n=0}^{\infty }\frac{n^2}{3^n}$   I've tried using the ratio test but I can't seem to figure out what I'm doing wrong:  $$\lim_{n \rightarrow \infty}\left|\frac{(n+1)^2}{3^{n+1}}\cdot \frac{3^n}{n^2}\right|=\lim_{n \rightarrow \infty}\left|\frac{(n+1)^2}{3n^2}\right|=\frac{1}{3}\lim_{n \rightarrow \infty}\left|\frac{(n+1)^2}{n^2}\right|$$  Where do I go from here?  It's been a few years since I've done any sequences and series.


How can I take screenshots of the PC before it boots up?

How can I take a screenshot of the PC before it has started up?  For example:   If I wanted to take a screenshot of my BIOS and send it to the Network Admin for review Windows installation screenshots such as those seen on  - Windows is not yet installed!   Any ideas?


What is the simplest way to have remote GUI access to Ubuntu 16.04 “server” from Ubuntu 16.04 “desktop”?

I'm trying to figure out what is "lightweight" way to configure my Ubuntu 16.04 LTS server to have access via GUI (over SSH as option). I would like to reach it from my Ubuntu 16.04 workstation. I have really poor knowledge about how those techniques work. I read about X11 and it seems it's possible to just install Xorg server and enable X11 forwarding and it's it.  But in other articles I read that it's just enough to install desktop common packages and it's not necessary to install all the GUI related stuff. So I'm really confused. I also see there are several methods like VNC, "plain" X11 forwarding, xRDP. They can be combined. I read different resources and as I realized the most preferable way to do this is to use xRDP? May be I'm wrong?  This article (one of I've read)  describes the xRDP installation and doesn't consider SSH. Here is the ssh forwarding How to forward X over SSH from Ubuntu machine?  The questions are:   Is the xRDP most preferable way achieve the goal? What steps should I do to have xRDP provide the remote GUI to me (What packages should I install to server and desktop)? I would like to have mate desktop. Should I install it to workstation or server or both?* How to enable xRDP over SSH tunnel?*   * - If the xRDP is not an option the last two questions relate to that one (VNC or something else) you suggest, please.


Why is it that a tool like sysinternals Autoruns might not know the location of a startup?

From the help file for autoruns: Note: before you send e-mail reporting what you believe to be an auto-start location that's overlooked by Autoruns, please make sure that Autoruns doesn't cover it and verify that the location actually works. I understand that Autoruns is essentially a list of known startup locations, and this is how it is able to find the startup programs that it finds. What I don't understand is this: if a program starts at startup then Windows has to be aware that the file needs to be run at startup and MUST also know where the location of the startup file is, otherwise it couldn't possibly be run at startup. So why isn't it possible for a tool like this to know the location of startup files in Windows without relying on "known possible" locations? Why aren't ALL of the locations known on a given device? My question is a "WHY does this work this way" not "HOW can I get around this" question. I have found plenty of the second kind, not the first.


Novel, Lo Tech SF/Fantasy, Powerful Woman, Male Assistant, Quest, Trilogy

Looking for the name of a SF or fantasy novel.  I probably read this in the 70's or 80's.  Believe was first published post 1960.  Could be part of a larger series.  My faulty memory keeps trying to tell me the author was a woman - but really not sure...  Basic plot that I can remember:  Two main characters (probably human, or close) involved in some type of quest (which takes place on a planetary surface, most likely utilizing some type of non-advanced, animal-type transportation - horses perhaps).  One character is a woman who has nobility in her background.  The other character is her faithful assistant, a male.  Somehow, I want to say that a major sub-plot involves the woman's gradual realization of the inherent worth and "nobility" of her assistant.  I want to say that the two were never lovers, but I'm not sure...  The novel was quite good, rather long (as I recall), and had quite an impact on me during my younger years.


Python Recursive Function Strange Behavior

I have written Longest Common SubSequence in Python using recursion with memoization:  def print2d(table):     print '\n'.join([''.join(['{:4}'.format(item) for item in row]) for row in table])  a="123" b="213"     m = [[-1]*len(b)]*len(a) def lcs(i,j):     print i, j     print2d(m)      if i== -1 or j == -1:         return 0;     if m[i][j] != -1:         return m[i][j]      res = 0     res = max(res, lcs(i, j-1))     res = max(res, lcs(i-1, j))     if a[i] == b[j]:         res = max(res, 1 + lcs(i-1,j-1))     m[i][j]=res     return res  print lcs(len(a)-1,len(b)-1) print2d(m)   All those print statements are there because I didn't get the correct result and decided to take a look at how the algorithm works. What I found surprised me. If you run it yourself you can see the tables printed and they look ok until:  0 -1   -1  -1  -1   -1  -1  -1   -1  -1  -1 -1 0   -1  -1  -1   -1  -1  -1   -1  -1  -1 0 -1    0  -1  -1    0  -1  -1    0  -1  -1 1 1    1  -1  -1    1  -1  -1    1  -1  -1 1 0    1  -1  -1    1  -1  -1    1  -1  -1 0 1    1  -1  -1    1  -1  -1    1  -1  -1   Why all of a sudden on the step 0 -1 the whole first column became 0 ?  So, I quickly created C++ program doing exactly the same thing the same way:  #include <iostream> #include <iomanip> #include <string> #include <cstring> using namespace std; string a = "123",        b = "213"; int mem[1000][1000];  int lcs(int i, int j) {     cout << i << " " << j << "\n";     for(auto i = 0; i < a.length(); i++){         for(auto j = 0; j < b.length(); j++){             cout << setw(4) << right << mem[i][j];         }         cout << "\n";     }     if (i == -1 || j == -1) {         return 0;     }     if (mem[i][j] != -1) {         return mem[i][j];     }     int res = 0;     res = max(res, lcs(i, j - 1));     res = max(res, lcs(i - 1, j));     if (a[i] == b[j]) {         res = max(res, 1 + lcs(i - 1, j - 1));     }     mem[i][j] = res;     return res; } int main(){     memset(mem, -1, sizeof mem );     int r = lcs(a.length()-1, b.length()-1);     cout << r << "\n";     return 0; }   And it works as expected. Corresponding tables look like this:  0 -1   -1  -1  -1   -1  -1  -1   -1  -1  -1 -1 0   -1  -1  -1   -1  -1  -1   -1  -1  -1 0 -1    0  -1  -1   -1  -1  -1   -1  -1  -1 1 1    0  -1  -1    1  -1  -1    1  -1  -1 1 0    0  -1  -1    1  -1  -1    1  -1  -1 0 1    0  -1  -1    1  -1  -1    1  -1  -1   I am puzzled why Python and C++ code that are not that different produce such drastically different results.   Am I missing something about how recursive functions in Python work?  Or is it because in Python I use list of lists and not 2D array as in C++?


I need that $("#pedido_x").change(function(event) works on each dynamic row is created. Any idea?  I tried a few things but nothing works.  window.precio; window.precio_final; window.cantidad; var i = 1;  $(".mas").click(function(){     i = ++i;     var select_marca = '<OPTION value="">- SELECCIONAR -</OPTION><?php $queryma = mysqli_query($conex, "SELECT * FROM marcas ORDER BY nombre ASC"); while ($ma = mysqli_fetch_assoc($queryma)) { echo '<option value='.$ma["id"].'>'; echo $ma["nombre"]; } ?></SELECT>';      var row = "
<SELECT id='marca_"+ i +"' name='marca["+ i +"]'> "+ select_marca + "	<input type='text' id='producto_"+ i +"' name='producto["+ i +"]'>	<input type='number' id='cantidad_"+ i +"' name='cantidad["+ i +"]'>	<input type='number' id='precio_"+ i +"' name='precio["+ i +"]' value='0'>
";     $("table tbody").append(row); });   $("#pedido_1").change(function(event){     window.f = 1     while (f <= i)     {            var marca = $("#marca_"+ f).find(':selected').val();         var producto = $("#producto_"+ f).find(':selected').val();         window.cantidad = $("#cantidad_"+ f).val();          if(producto == null)         {             producto = 'Ninguno';         }         $("#producto_"+f).load('sel_marca.php?marca='+ marca +'&producto='+ producto +'&fila=' + window.f);         if(producto != 'Ninguno')         {             $.get('sel_precio.php?f='+ f +'&producto='+ producto, function(data) {                 window.precio = data;             });           }         window.precio_final = window.cantidad * window.precio;         $("#precio_"+f).val(window.precio_final);         producto = $('#producto_'+ f).find(':selected').val();         f++     }  });  });


Whenever I try to do a fluid simulation, the fluid domain remains visible.  I have tried:ctrl+a-scale, turn on/off visibility for render/viewport  Here's a video demonstrating my problem:   Here's the blend file in case I have messed up some settings:   Thank you for any help!


Ifrit not available when other summons equipped, but is available when it's the only summon equipped

I'm playing FF7 remake and I noticed that when I was doing the VR battle against Shiva that the only summon that was coming up was Cactuar (was equipped on Aerith).  I saw a post where someone recommended having Ifrit equipped for this battle (which makes sense).  I noticed that a different character (Cloud) already had that summoning materia equipped as well, but I never saw it as available.    When I removed Cactuar from Aerith and re-did the fight Ifrit showed up as expected.  Why is it that Ifrit only shows up as a use-able summon in the Shiva virtual when Cactuar is not equipped on another character?  I have not tried all permutations of all materia possibilities, etc.  But I was able to verify that when Cactuar and Ifrit are both equipped to characters that Cactuar is the only summon that is ever able to be chosen.  When I remove Cactuar, Ifrit shows up as expected in this fight


Let $M$ be a Noetherian $A$-module. Show that $M[x]$ is a Noetherian $A[x]$-module.  Comments: I was able to show that $M[x] \cong M\otimes_A A[x]$. It is possible to construct an isomorphism $\phi$ so that $$\frac{M\oplus A[x]}{ker(\phi)} \cong M\otimes_A A[x].$$ Thus, it would suffice to show that $M$ and $A[x]$ are Noetherian $A$-modules. $M$ is Noetherian $A$-module by assumption. The problem lies in proving that $A[x]$ is too. I thought about using the Hilbert’s Basis Theorem, but I do not have the hypothesis of being Noetherian.


why this product is no more than the product of the two mean values?

Suppose we have a positive sequence $\{x_i\}$ where $i=1, 2, \dots , n$. And let $m=\mathrm{min}(x_i), \; M = \mathrm{max}(x_i)$. Notice that $m, M>0$. Prove this inequality (discrete version): $$ \frac{\sum_{i=1}^{n} x_i }{n} \cdot \frac{ \sum_{i=1}^{n} \frac{1}{x_i} }{n} \le \frac{m+M}{2} \cdot \frac{ \frac{1}{m} + \frac{1}{M} }{2} \;.$$ Or you can prove this continuous version, where $f(x)$ is positive and continuous on $[0, 1]$ , and $m$ and $M$ are min and max values of $f(x)$ on $[0, 1]$, respectively: $$ \int_0^1 f(x) \,\mathrm{d}x \int_0^1 \frac{1}{f(x)} \,\mathrm{d}x \le \frac{m+M}{2} \cdot \frac{ \frac{1}{m} + \frac{1}{M} }{2} \;.$$ Important: I do have a proof, because the continuous version is actually an excercise of a workbook of mine. But that proof is too tricky, lacking insight as to why the product of two types of "average"s is controlled by their max and min values. So I brought it up here in seeking of an insightful solution. Hopefully finding a proof directly to the discrete version, for it is easier to imagine with my brain.


I have like 15 Layers, and a other one with light. I need to render the 15 layers separate but still keeping the light from the apart layer. And i need to leave the computer rendering in the weekend doing the full work, how can i render different 15 layers on different 15 folders?  edit: I'm using Cycles.  Thanks in regards.


How to remove the "No front page content has been created yet." message from the front page?

I only want blocks on the homepage. Because I don't have any nodes, and I want to keep the homepage as /node I am getting a "No front page content has been created yet." message on my page.  How do I get around this?


Unity Error [error CS0120: An object reference is required for the non-static field, method, or property 'Zoney.setMonney(int)']

I keep getting this error, but I don't even know what is or isn't static in this context? I have tried solutions like setting instances and checking capitalization but I just get the same error. I want the shop script to change the monney value, which is written into debug until I set up the right U.I. The Zoney script:     using UnityEngine;     using UnityEngine.UI;          public class Zoney : MonoBehaviour     {         public Text Money;         public int Monney;         private string Mony;                  // Start is called before the first frame update         void Start()         {             Money = GetComponent<Text>();         }          public void setMonney(int Change)          {             Monney = Change;         }                     // Update is called once per frame         void Update()         {                       Mony = Monney.ToString();             Money.text = Mony;         }     }  The Shop script:     using UnityEngine;          public class Shop : MonoBehaviour     {         public int Change;              // Start is called before the first frame update         void Start()         {         }              // Update is called once per frame         void Update()         {           Change += 1;           Zoney.setMonney(Change);           Debug.Log(Change);         }     }


Using /setblock to get a command block with a command inside?

I'm trying to use command blocks for my next creation, but I'm making it so that command blocks make it for me when I press a button. However, I need to have a command that once placed in a command block, it will place another command block with a command already in it (when given a redstone signal, that is). I'm on Education Edition, so only the Bedrock Edition type of command style will work -  Java Edition won't. I have looked for a command that does this, but I can not find one.


Can I have a submit button on a form that overrides/ignores jquery.validate plugin?

I've got an html form that is being validated using . The form has 3 submit buttons. Each submit button causes the page to do something a little different. I'd like for one of the three submit buttons to just submit the form and completely ignore the validation routine I've built using the jQuery validation plugin. Is this possible?  Thanks


I have a jquery multiple drag and drop file uploader using dropzone.js.  I have added the following code to the dropzone code    this.on("queuecomplete", function (file) {       alert("&success=yes");    });   So when the queue has completed it sends an alert at the moment however I want to change it so it so that using jquery it adds this as a parameter to the URL.  Any ideas how to do this using jquery?


for any ring $A$ the matrix ring $M_n(A)$ is simple if and only if $A$ is simple

Let integer $n\geq 1$. I have obtained that for any field $k$, the matrix ring $M_n(k)$ is simple, i.e., $M_n(k)$ contains no nonzero proper two sided ideals. Now I want to prove that: for any ring $A$ (not necessarily commutative), the matrix ring $M_n(A)$ is simple if and only if $A$ is simple.   How to prove?


Why are square brackets preventing shell expansion?


I often don't know whether I should repeat the "to". E.g.:     To enable the car to perform jumps between blocks or simply to go   faster, accelerator blocks can be placed, which as the name   indicates increase the car's speed.   vs.     To enable the car to perform jumps between blocks or simply go faster, accelerator blocks can be placed, which as the name indicates increase the car's speed.   Is there any general rule to decide between those two options?


Android Studio keep showing The following packages have unmet dependencies:

am trying to follow the instructions in developer.android website to install android studio in my Backbox 4.10 .  uname -a result:  Linux backbox 4.10.0-37-generic #41~16.04.1-Ubuntu SMP Fri Oct 6 22:42:59 UTC 2017 x86_64 GNU/Linux   i tried to install these libraries which are required for 64bit:  sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 libbz2-1.0:i386   but it gives the next result:   Reading package lists... Done Building dependency tree        Reading state information... Done  libc6:i386 is already the newest version (2.24-17).  libc6:i386 set to manually installed.  Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may  help to resolve the situation:   The following packages have unmet dependencies:    lib32z1 : Depends:libc6-i386 (>= 2.4) but it is not going to be installed   libncurses5:i386 : PreDepends: libtinfo5:i386 (>= 5.9-3) but it is not going to be installed      Depends: libtinfo5:i386 (= 5.9+20140118-1ubuntu1) but it is not going to be installed      Recommends: libgpm2:i386 but it is not going to be installed  E: Unable to correct problems, you have held broken packages.   == I tried to use fixbroken and install -f. I tried all the methods i know , always there's dependencies and broken packages ...


Mac equivalent of Ctrl + Space to select an item on a list

I want to select non-consecutive items on a list, without using a mouse/trackpad - there should be no clicks involved.  In Windows and Linux (at least Ubuntu) an item can be selected using Space/ button, which, in combination with arrows and Ctrl key allows me to select multiple items in any environment (file manager, IDE etc.) - e.g.  Enter a directory -> hold Ctrl -> down arrow twice -> press Space -> down arrow twice -> press Space.  Now I should have items 1, 3 and 5 selected. Is there a way to do the same thing in OS X?  PS. Sorry for such a verbose description, but so far every answer I encountered advices using Command + Click, and this is something I don't want to do.


Why does HTML require that multiple spaces show up as a single space in the browser?

I have long recognized that any set of whitespace in an HTML file will only be displayed as a single space.  For instance, this:
Hello.        Hello. Hello. Hello.                       Hello.
   displays as:  Hello.        Hello. Hello. Hello.                       Hello.  This is perfectly fine, as if you need multiple spaces of pre-formatted text you can just use the
 tag.  But what is the reason?  More precisely, why is this in the specification for HTML?


pure code formatting, to enhance a question, is impossible (without 2k rep)

Without 2k rep, code formatting is impossible, because it just adds spaces, which don't count for the 6-character-ritual-threshold.  This question is related to impossible title-improvements for a similar reason, brought up here:   A more or less  crossed my way today, which wasn't readable because of missing code-indentation. (Many regex-tools like grep, sed, awk work on a line-by-line basis, so it is essential to see, where a line starts and ends.    I put the indentation in, but got an error: at least 6 changes, not counting: white space. Uhm.    I looked for something obvious, which could be changed too - nothing.  I looked for something not so obvious, which could be changed too - nothing.  I got angry and left the page, because I didn't want to write some foobar, or a disclaimer why this disclaimer, which would be much longer than 6 characters.  I had the idea to comment my edit in the question itself - this wouldn't be foobar, but have a bit of sense.  When I finished my comment, I was informed, that meanwhile somebody else did edit that question. I left the question, angry. Lost much time in doing 6-character-gymnastics.    Conclusion: The quality of an improvement isn't much related on the quantity of changed characters, especially not, if whitespace doesn't count.   P.S.: I suggest the new "6-character-rule"-tag.


Convert arithmetic rgb value to 8bit RGB value

How to exactly convert an arithmetic rgb value (e.g 0.55,0.25,0.1) to the corresponding 8bit RGB value (e.g. 123,90,40)?  My more specific questions are:  1.) What is the exact conversion formula and macro?  2.) Is there some built in command or macro for converting it?


Are all functions that have an inverse bijective functions?

To have an inverse, a function must be injective i.e one-one.  Now, I believe the function must be surjective i.e. onto, to have an inverse, since if it is not surjective, the function's inverse's domain will have some elements left out which are not mapped to any element in the range of the function's inverse.   So is it true that all functions that have an inverse must be bijective?   Thank you.


Q: Integration of $e^{ax}\cos^n bx$ and $e^{ax}\sin^n bx$  I know how to integration $e^{ax}\cos bx$ using $\cos bx=\frac{e^{ibx}+e^{-ibx}}{2}$.Using the same trick here I got $$\int e^{ax}\cos^n bx ~dx=\int e^{ax}\left(\frac{e^{ibx}+e^{-ibx}}{2}\right)^n~ dx$$But it doesn't look easy to solve.I google it and find the result only which is:  $$\int e^{ax}\cos^n bx ~dx=\frac{bn\sin (bx)+a\cos (bx)}{a^2+b^2n^2}e^{ax}\cos^{n-1}bx+\frac{b^2(n-1)n\int e^{ax}\cos^{n-2}bxdx}{a^2+b^2n^2}.$$  Can Anyone help me to figure out this. Any hints or solution will be appreciated. Thanks in advance.


Why doesn't gnome-software show available software?

Why doesn't gnome-software show all available software from my repositories?  In other words, is gnome-software restricted in some way by Canonical from listing all available software packages? If so, which software is restricted and which software is allowed? Also, when was this change made and why was this change made?  (Note, I'm not looking for a technical solution).  I've looked at similar questions, but I don't see a clear answer to my question.        Here are a couple of example applications that are not available in gnome-software:   torcs trigger-rally   But a command-line search with apt shows these applications are actually available to install:  apt search ^torcs$ Sorting... Done Full Text Search... Done torcs/disco 1.3.7+dfsg-4 amd64   3D racing cars simulator game using OpenGL  apt search ^trigger-rally$ Sorting... Done Full Text Search... Done trigger-rally/disco 0.6.6+dfsg-2 amd64   free 3D rally racing car game


"I end up studying English" vs. "I end up to study English"

Why is it that we have to use the gerund form for the first example? I have been told that it is not grammatical to use the infinitive form.  For some verbs, it's okay:     I wanted to study English.   I had to study English.   I needed to study English.   I tried to study English.   I traveled to study English.   But, for some verbs, it's incorrect:     I ended up to study English.     Why is that the case?


Will new Minecraft features appear in existing worlds?

I'm a new Minecrafter, and was wondering if new updates are backwards compatible. Specifically, will the new "Adventure Update" features (Beta 1.8) appear in existing worlds created with Beta 1.7 and earlier? Or will I need to create a new world for this version?


Does an attack hit if it exactly matches the target's AC?

For an attack to successfully hit a given Armor Class, would it need to get a number higher than the Armor Class? Or does it hit if the total exactly equals the Armor Class value as well? Does the answer to this question change depending on what type of attack it is?


How can I find what video driver is in use on my system?

I would like to try a different video display driver, but I'm not sure which one I'm currently using.    What's the simple way to see what driver my system is using currently?


Some particular independent variable has low p (high t value) as a linear regressor. That means (if I understand correctly) that I can trust it has some effect on the dependent variable, and then I look to see what effect it has. Normally I would take the coefficient from the regression output and divide it by the mean value of the dependent variable to see the effect. But the r2 of the line is very low. Does that mean I should throw the whole thing out? or how then do I see the effect of the independent variable? To put it another way, if most of the variability is unexplained by the independent variables, then is the effect properly measured by dividing the regression coefficient by the dependent variable's mean, or does one need to account somehow for the r2 when measuring the effect?    Someone has asked me for more information.  R-square    0.494 Adj R-square    0.451 Residual SD 2.107 Sample SD   2.845 N observed  194 N missing   10          Estimate    Std. Error  t value Pr(>|t|) 0       1,614.974   290.998 5.550   < 0.0001 a       -0.118  0.406   -0.291  0.7717 b       -0.745  0.440   -1.693  0.0923 c       1.161   0.578   2.009   0.0461 d       -2.194  1.104   -1.988  0.0484 e       0.001   0.034   0.031   0.9751 f       -0.009  0.165   -0.057  0.9549 g       -1.289  0.812   -1.588  0.1141 h       0.665   0.648   1.027   0.3058 i       -0.601  0.595   -1.011  0.3132 j       -0.101  0.420   -0.240  0.8109 k       -0.466  0.947   -0.492  0.6233 l       0.057   0.395   0.144   0.8856 m       0.496   0.677   0.732   0.4648 n       -1.009  0.862   -1.170  0.2437 o       -0.037  0.007   -5.478  < 0.0001


I was reading an article about the existence of exotic spheres in 7 dimensions, my initial instinct was that that was pure mathematics and most likely inapplicable to any natural sciences. Then I remembered string theory used 10 spatial dimensions, so, are there structures in string theory that are equivalent to exotic spheres? Does it imply that the metric of space-time becomes non-smoothable, despite being continuous?


currently I have " carlos@hoffman-c:~$ " I need to change the above to read " hamburg@hoffman-c:~$ " I need to preserve all my settings data etc. Thank you in advance.


Modelling terrain based on .DXF height points

I’m currently working on modelling a piece of terrain for a set of visuals for an infrastructure project. I’ve been given a .DXF file with the design layout and the terrain/height data included as a series of points marked by a number that gives an approximate indication of the height of that terrain at that specific point. There are a few hundred of these in the drawing, and rather than taking single vertices and placing them individually at the marked height and joining them all up later, I was curious if anyone knew of a way to potentially automate/script the process so that a vertex can be generated at each of the different points at the height specified? I realise this question may be better suited elsewhere, but any help would be appreciated!


Much like a , I am trying to monitor a directory on a Linux box for the addition of new files and would like to immediately process these new files when they arrive. Any ideas on the best way to implement this?


Is it OK to ask on Meta SE a question of the kind "where do I ask this?"?

Suppose some user has some random question Q and he doesn't know which S.E. site would be the best fit for the question.  Is it OK for the user to ask "Where does Q go?" here?


Can someone please explain how you can quickly set the YEAR within the date and time settings?  If the battery has been removed then the iPhone is reset back to Jan 1st 1970. This means that the network will not sync and you won't get a signal. Therefore the automatic date setting will not work either.  The only way I have managed so far is to literally scroll through everyday of every month of every year up to the present day until it is correct. This is naturally tiresome and also impractical as often in swiping you drag up the quick menu from the bottom.


Whenever I try sudo apt upgrade I keep getting this error below: dpkg: unrecoverable fatal error, aborting:  files list file for package 'libnss3:amd64' contains empty filename<br> E: Sub-process /usr/bin/dpkg returned an error code (2)  What might be the cause for this problem?


different php-versions on server with multiple v-hosts

I have a server and host multiple clients websites there as vhosts. My Lamp-version is very outdated from 2008 and for a new project and want to have a newer one without changing my old websites, because they will break on update of the newer php-version. Is it posisible to configure a vhost on that system with another Lamp-version or a newer php-version?  System: Debian  Webserver: Apache 2


Sequence contained on a set converges to the supreme of the set

Show that if a non-empty bounded set A $\subset$ R and s = sup A then there is a sequence such that A converges to s. I guess that I should use the epsilon definition of supreme for this question but I am not exactly sure how.


For how many distinct congruence classes $[a]$ modulo $631$ will there be integer solutions $x$ to the congruence $x^2= a \pmod{631}$.

For how many distinct congruence classes $[a]$ modulo $631$ will there be integer solutions $x$ to the congruence $x^2 \equiv a \pmod{631}$?


Can I submit/ArXiv without my advisor? I am being blocked from publishing my work

I joined a research group of a faculty member in 201x, and worked with her for three years. During that time, I collaborated with a large hospital to perform research in the domain of medical informatics. I spoke about my research at two conferences; one was a talk, and the other was a poster presentation. My advisor asked me to write up the research in a paper around the second year, which I did. Around the third year, I decided to switch research groups, because of the relationship between me and my advisor going sour, and not having funding from her (I used to work part-time to fund my PhD research).  Once this happened, she withdrew her support from me publishing my paper and ordered that I give up my work to a fellow grad student. I told her, that my manuscript is in its Nth revision, and that I would like to take it to completion as first author. She was dismissive and didn’t offer any comments on my work. I told her, that, should I pass on my work, I would like to discuss authorship issues in advance, which she wasn’t ready to discuss. She ganged up my new advisor against me, and together they forced me to give up my code, results, paper drafts. I had to then leave the university without a degree.  Fast forward couple of years, I receive an email from a student in her lab (the student whom I had to hand over my work to), saying that they are publishing a paper, and have decided I am the fourth author. I read the paper and found out that it uses my experimental setup and design, data collection, and one of the ideas I had presented (the idea wasn’t the main crux of my paper, but I believe it was novel).  I want to   Publish my original draft in ArXiv/BioArXiv, as first author. Request my advisor to cite my work in their publication.    Given how she behaved with me, I know that despite what I am asking for sounds fair, she is likely to object.  I am asking the community: Can I go ahead and ArXiv it without her permission? I could add her as an author, but not take her permission. Also, if you have any other ideas on how to deal with this situation please let me know.  (For the record, this was at a top-10 school in the US in an engineering department).


Can a multiclassed Warlock's Book of Shadows double as their Wizard spellbook?

Can the Book of Shadows from a Warlock pact double as a Wizard's spell book if the character has multiclassed? If the Book of Shadows was lost and the character summoned a new one, would the transcribed spells return as well?