Footer goes on top and I want it at the bottom

I'm trying to setting up a template HTML / CSS / Javascript.  My footer don't stay down.  As you can see if the page is full,  it works more or less good.  But if the page doesn't fills all the screen  the footer goes up.  If you don't have a good big screen resolution you don't see that. In this case push CTRL &  minus to see the problem (or CMD & minus on MacOs).  I love it and I want to use just that template.  I've tried also something that  footer {   position: fixed; }   but the footer had to follow the last section.  It's possible to set it to stay at the end of the page maintaining the same layout?  P.S. I prefer to do it only with CSS without using JS, because some browsers can't have it.  Thank U


I started learning Java and have small problem. I have classes Point and abc:  static class Point     {         int x;         int y;         Point(int x, int y)         {             this.x = x;             this.y = y;         }     }  static class abc     {         abc()          {             Scanner s = new Scanner(System.in);             Point[] p = new Point[2];             for (int i = 0; i < 2; ++i) {                 p[i].x = s.nextInt();                 p[i].y = s.nextInt();             }         }     }   But initialization in class abc doesn't work. When I try to write first number it gives:     Exception in thread "main" java.lang.NullPointerException      at main$abc.<init>(main.java:91)      at main.main(main.java:99)   What should I do to make it work?


I have small function logically output should be 1 but i am getting 10 .. Can any one help me out with this logic.  var a=1; function foo() {     if(!a){         var a=10;     }     console.log(a); } foo();   Output is coming 10 not 1 . how.


I need help with making an inventory based combination lock and I need to compare the key and a specific slot in a payers inventory. For example, I want to check if there is a stick in the slot 0b (1st slot in the hotbar). How can I do that? Please send a full command(s), I'm kind of new with these commands so I need a bit more help than just some advice. Thank you in advance.


Prove that $\left|\frac{z-w}{1-\bar w z}\right|=1$ if $|z|=1$ and $|w| \neq 1$

Prove: $\left|\frac{z-w}{1-\bar w z}\right|=1$ if $|z|=1$ and $|w| \neq 1$   My attempt:  I reasoned that either $(z-w)$=$(1-\bar w z)$ or $(z-w)$=$-(1-\bar w z)$ must be true for the whole thing to be true. Going with the first option:  $$(z-w)=(1-\bar w z)$$ $$z-w +\bar wz = 1 $$ $$z(1+\bar w)-w=1$$ $$z=\frac{1+w}{1+ \bar w}$$  At this point, I feel like there is some property of conjugates that I should use, but I'm not sure...


Proving Hartshorne's Exercise I-1.9 by using exercise I-1.8

My question is about  about solving Hartshorne's Exercise I-1.9 by using exercise I-1.8:  Hartshorne's Chapter 1, exercise 1.9: Irreducible components of $Z(\mathfrak a)$ have dimension $\geq n-r$ if $\mathfrak a$ is an ideal generated by $r$ elements. Hartshorne's Chapter 1, exercise 1.8: Let $Y$ be an affine variety of dimension $r$ in $\mathbf A^n$. Let $H$ be a hypersurface in $\mathbf A^n$, and assume that $Y \nsubseteq H$. Then every irreducible component of $Y \cap H$ has dimension $r-1$.  Suppose $\mathfrak{a}$ can be generated by $f_1, \dots, f_r$ and no one is in the ideal generated by the rest of them (note they are not necessarily irreducible. But it seems to me that I don't need to assue $H$ in Ex. 1.8 is the zero set of an irreducible polynomial. Let me know if I am wrong). We'll induct on $r$. I can prove that any irreducible component $Y$ of $Z(\mathfrak{a})$ is contained in an irreducible component $Y'$ of $Z(f_1, \dots, f_{r-1})$. But, to use 1.8, I have to show that $Y'$ is not contained in $Z(f_r)$ and that $Y$ is an irreducible component of $Y' \cap Z(f_r)$ Question 1: does the assumption that $f_r\notin (f_1,\dots, f_{r-1})$ imply that $Y'$ is not contained in $Z(f_r)$? If not, how do we remedy this? Question 2: how to prove that $Y$ is an irreducible component of $Y' \cap Z(f_r)$ (something might be missing here and I can't prove it at least)? It is irreducible but why it appears in the irreducible decomposition of $Y' \cap Z(f_r)$?


Finding some missing subfields of a splitting field of $x^4-7$

I was looking at the Galois group of the splitting field of $x^4-7$ over $\mathbb{Q}$. I found it to be $\mathbb{Q}(\sqrt[4]{7},i)$, and the Galois group to be the dihedral group of order $8$. Now $D_8=\langle \sigma,\rho\mid \sigma^4=\rho^2=1, \sigma\rho=\rho\sigma^3\rangle$.  I know $D_8$ has $5$ subgroups of index $4$, there should be $5$ subfields of $\mathbb{Q}(\sqrt[4]{7},i)$ of degree $4$ over $\mathbb{Q}$ by the fundamental theorem of Galois theory.   I found $3$ of them to be $\mathbb{Q}(i\sqrt[4]{7})$, $\mathbb{Q}(\sqrt[4]{7})$, and $\mathbb{Q}(\sqrt{7},i)$.   I can't figure out what the other $2$ are, but I think they're the fixed fields of the subgroups $\{1,\rho\sigma\}$ and $\{1,\rho\sigma^3\}$, but I can't determine those. Does anyone have any idea what the other two subfields of degree $4$ over $\mathbb{Q}$ are? Many thanks.


I am working right now through a book: Number Theory: A Lively Introduction with Proofs, Applications, and Stories And I cant connect 5 to $3^{3n+1}+2^{n+1}$


How to apply a gradient effect for a particular circular path?

I want to apply a gradient effect and have it look like in this image.


I'm currently working my way through some Machine Learning courses and books, and from what I can understand, ML uses a stock of standard functions that are used over and over again. This led me to ask, is there a way to generalise a function instead of specifying it? For example, instead of using linear or logistic or polynomial regression, create an ML algorithm to approximate the best type of function? Is such a thing possible mathematically?


Why did the Doctor start to regenerate after the events at Lake Silencio?

At the start of season 6, we see the Eleventh Doctor being shot midway through his regeneration, in order to kill him.  However, we now know that this incarnation of the Doctor was the last Doctor of this cycle (the “thirteenth” regeneration), and he didn’t have a new set yet. So the Doctor couldn’t be regenerating; one shot would have killed him instantly, rather than causing him start to regenerating.  How can we reconcile these two events?


How to deal with variable income in the budget

We have a budget planned out for various categories, and in order to make ends meet we count on child support for my wife's child from a previous marriage.  However, lately we have not been receiving this amount.  How do we deal with this in the budget?    My wife has just been "borrowing" it from our savings, but I don't think that is reasonable given that I find it highly unlikely we will ever be able to recover it.  On the other hand, she doesn't think it reasonable to cut out of her budget and cutting it out of the budget for the kids (which is where it really should be going!) isn't reasonable either.


Do I need to install Clam TK when using Clam AV?  Clam TK will not install.  Will Clam AV run automatically in the background?


Detecting and restarting my crashed .NET application

How can I detect that my .NET application has crashed, and then restart it?


My Microphone started acting up badly this morning has a loud buzz, it has got to be software it was working fine last night installed updates and shutdown last night and boom here we are, oh and i have a Microphone jack microphone and a internal mic, both are acting up... Please help   PLEASE help i need to use skype.  Dafull97


Why constructor is not called in malloc?

Why constructor/destructor function is not called while using malloc and free in c++ instead when we use new and delete , the constructor/destructor is called? why is it so?


Should not Inbox notifications on a deleted question be removed as well?

Not sure this is the place to post this... I notice that Inbox notifications (in my case, over a comment I left) on a question that was deleted - still show up - even though the question was ultimately deleted. Should not these inbox notifications be deleted as well ? Example: the inbox notification below refers to a question deleted weeks ago


How do I fix Dell Lat. D630 Laptop clock gains 5 hours coming out of Ubuntu Mate 16.04 LTS back to Win 7 Pro?

Installed Ubuntu Mate 16.04 LTS alongside Win 7 Pro last night and both times I have rebooted to Windows 7 the clock has been ~ 5 hours fast. The clock indicates correctly in Ubuntu and I selected the Central Time Zone during the Ubuntu setup. Is there a permanent way to correct this beyond resetting the clock continuously?


best ubuntu release for amd a10 cpu, asus a88x-pro, g.skill ddr3 2400

To witch release has the most stable video and what driver and where to get them.


Let $X=(0,1]$ and $d(x,y)=\left|\frac{1}{x}-\frac{1}{y}\right|$. I've proven $(X,d)$ is a metric space but I don't know how to show its completeness. How can I do that?


Why in spontaneous symmetry breaking do we only look at the scalar fields?

In all the examples of SSB in our course/the books (even in our SUSY course) we have just looked at minima of the scalar potential.  Why do we restrict ourselves to the scalars, why not also minimise the fermions and vector bosons?


What is the smallest element of $\{n\in \mathbb N^*\mid \underbrace{1+...+1}_{n\ times}=0\}$

Let $R$ be a field and consider $$A=\{n\in \mathbb N^*\mid \underbrace{1+...+1}_{n\ times}=0\}.$$ Assuming that it's not empty, prove that its smallest element is prime.  I have no idea how to do it. It looks here that we are in $\mathbb Z/n\mathbb Z$ and since $R$ is a field and that $A$ might be a subfield, then $n$ will be prime, but this don't answer the question since they ask for the smallest element.  If my question is unclear, let me know.


Java Session Management in multiple tabs of same browser

I want to allow multiple user login in my application and need to track it through HttpSession such that i can manage previously logged in user session even after new session for new user will be created. I am aware, this can be achieved using setAttribute and getAttribute over HttpSession. But I want to check in same browser (i.e. say Chrome) in multiple tabs How can I have multiple Users logging in into application ?


What do you call a sung syllable without any meaning?

Example of this are:  "Nanana na na nana... I am happy, nana na na" "Lala la la la la. We are the gnomes. lala la la la"  Is there a word for this? I thought it was a onomatopoeia, but I don't think they are, or at least they belong to a different subclass.


How to terminate the script in JavaScript?

How can I exit the JavaScript script much like PHP's exit or die? I know it's not the best programming practice but I need to.


We use many variants of Indian Keyboards - Devanagari Inscript (Default Indian), Hindi WX, Malayalam Inscript etc. In earlier Ubuntu versions, we could easily add these keyboards through the System Settings GUI dialogues. In recent 16.04 and 17.04, we could see default Indian (and Urdu) only. How to add other variants?  Do any package need to be installed? We searched the package repository but could not find any separate package describing these variants.  We suppose it needs additional configuration. It might be silly, but don't know how to.  We use multiple distros - Ubuntu 16.04.2, 17.04, Arch Xfce, Fedora 25 Xfce etc. and we could not solve in all those distros. If we could make it in one distro, it must be similar in others.


Can I load my existing village in clash of clans to a new Gmail account on the same device?

I'm playing Clash of Clans on my device. I had linked it to my Gmail account in the beginning. Because of storage issues, I disabled my Google Play. But I proceeded with the game.  Now when I try signing in using my Gmail account, it asks whether to replace the existing present village with the one that had been saved before disabling Google Play. Is there a way to load my existing village into it? Or is there a way to load my existing village to a new Gmail account on the same device?


Meaning of $A^B$ where $A$ and $B$ are sets

I've tried to google this with a variety of search terms, but most results refer to the power set, which is $2^S$, not $A^B$.  Does it mean the set of all maps (functions) from the set $B$ to the set $A$? What is the definition of this notation?  Thank you for reading!


I have a string like so:  DECLARE @columnCamera varchar(MAX) = 'aaa,bbb,ccc'   and I am trying to split these and loop through, I am stuck on the splitting part:  SELECT * FROM STRING_SPLIT(@columnCamera, ',')   But I get this error:     Invalid object name 'STRING_SPLIT'.   What is the proper way to split a string and loop through it?


I have a VB6 function that has an optional date interval parameter that I'm trying to convert to C#. I'm also not sure of the best way to handle this in code. Here is the VB function declaration:  Private Function ReplaceDateTextNonBinary(psTable as String, psColumn as String, psColumnOffSet as String, psDateFormat as String, Optional psInterval as String = "n")   This function uses the optional parameter in the following DateAdd method call.  DateTime = DateAdd(psInterval, oSQL.Value(psColumnOffset), Date$)   Here is how I was planning to convert the function declaration to C# using the params keyword.  private static bool ReplaceDateTextNonBinary(string psTable, string psColumn, string pColumnOffset, string psDateFormat, params string psInterval)   I think this would work but I'm don't know how to code this that would take any date interval as a string. I was thinking of using a switch...case statement but that didn't seem very elegant.   Any thoughts.


Express an even number as a sum of primes

Show that every even natural number grater than $2$ can be expressed as a sum of two prime numbers. No idea how to prove this. Can you help? thanks


ubuntu 12.04 64bits - cannot install 32bits libs - dependy problem

sudo apt-get install ia32-libs -y   gives the following message:  The following packages have unmet dependencies:   ia32-libs: Depends: ia32-libs-multiarch E: Unable to correct problems, you have held packages (hold) spoiled.   I need this libs to run the android adt.


Are there speed and resource allocation differences between 1x 300 GB Azure VM data disk vs 3x 100GB Data disks (and striping those)

I'm researching playing around with a Sql Server VM on Azure.  Our DB is around 30-40GB.   So i was thinking about making a 300GB data disk to put the 1 Database on it (or a few more, later).  I believe i have a few options here.   A single Data Disk which is 300GB in size. Multiple Data Disks with striping that total 300GB (Eg. 2x150 or 3x100 GB)   Questions:   Is it worth striping? Does either option consume more page blobs than the other?   I'm under the impression that:   Going the striping option offers us more IOPS at the cost of higher risk or HD failure which means higher risk of data loss (for the sake of this discussion, lets leave backups out of this). The multiple data disks will consume more page blobs but that number is tiny and not really worth worrying about. (but I have ZERO proof of this nor do i know how to figure out this metric answer).


What was Dumbledore's original wand made of?

Before acquiring the Elder Wand, what kind of wand did Dumbledore have, and what kind of wood and core components went into it?   We know that he was buried with the Elder Wand.  Are there any references to what became of his original wand?


What is the difference between "Predicate" and "Function"?

Functions are defined as particular kinds of relations and relations themselves relie on the concept of Cartesian Product. It can be proved from ZF the Cartesian Product of two sets exists but this requires using either the Axiom of Separation or the Axiom of Replacement. In both of them we make use of the concept of predicate, so it should be a difference to avoid falling in circularity.  Am I right? Am I missing something?  Thanks in advance :)


How do I fix "Malformed entry 49 in list file /etc/apt/sources.list (Component)"

I have read several previous posts. But am unable to see what is wrong with my line 49 in the sources list. My line 49 reads "deb  artner"


My sister and I are trying to start a LAN server. It worked fine yesterday, but today it is not working anymore. Each time she tries to log in it says:  java.net.connectException:Connection refused: no further information.  Does anyone know what to do?


How to return multiple string values from a method java

I am unable to return both username and pass String values at the same time.       public static String executeLogin(String username, String pass) {         int totalAttempts = 5;          if (totalAttempts != 0) {             if (username == "Javaprogram" && (pass == "Legend1@")) {                 System.out.println("Correct");             } else {                 System.out.println("Incorrect Login");                 totalAttempts--;             }             if (totalAttempts == 0) {                 System.out.println("Maximum number of attempts exceeded");               }          }         return "username,pass";                      }


Is it possible to keep publishing under my professional (maiden) name, different from my married legal name?

I have a question about my choice of name for publication.  I recently got married and legally changed my name to my husband's surname (for example's sake: from Hunter to Jones). So, despite legally being Ms Jones now, I would quite like to use the hyphenated name Hunter-Jones in the professional context and in publications. This is so that people realise that it is still me and so that I can somewhat keep my maiden name.  Is this possible or do I have to use my legal name professionally and when publishing? Thank you for any help


how to use sed command to replace everything before second occurrence?

My sites got infected with some bad malware that has inserted malicious code on at least 3135 files (all my wordpress sites).  This is one of the files infected:   And here is my desired output:   I have no idea about Unix commands, besides some simple find and grep commands.  After some research I found about the sed command but I don't know how to use it in my case.   As you can see from the above code, the general pattern is that the code is inserted at the top of each file, meaning before the original <?php tag (which means now the original <?php tag is second.  So I thought I could find all the files containing cnajwp = and remove everything before the second <?php tag.  I can find the files containing cnajwp by using   find * -type f -name "*.php" -exec grep -l "cnajwp =" {} \;   but I don't know how to replace everything before the second <?php tag on these occurrences.  Could anybody here give me a helping hand?


What happens when Detect Magic is used upon something that is magically invisible?

Does a simple casting of Detect Magic reveal the presence of magical invisibility?


How do Muggleborns get their magic from Squibs?

Muggleborns are said to be distant descendants of Squibs who have married Muggles. But Squibs don't possess any magic to pass on to further generations. So how can Muggleborns get their magic from Squibs when Squibs themselves don't have any magical abilities?


Will it be possible to upgrade the Windows 8.1 (Pro) Preview to the release version?

I'm contemplating upgrading from Windows 8 to the new Windows 8.1 Preview, but I've been unable to find whether it will be technically possible to upgrade from the preview to the full release. It apparently is with Windows RT, but I've found nothing about Windows 8 Pro.


How to set model class data on a fragment?

I am using a model class Model_userDetails to parse data from the server and save in it .   public class Model_userDetails {     public   String name;     public   String email;     public   String mobile; }   Now i want yo use this model class to display its data on my fragment .   I am using this syntax   t_email.setText(model_userDetails.email.toString());   in my fragment but the app crashes and gives null pointer exception   What should i do ?  I have used log so that i can see whats happening  JSONArray message = jsonObject.getJSONArray("data");                  boolean success = false;                  for (int i = 0; i < message.length(); i++) {                      JSONObject temp = message.getJSONObject(i);                     if (i == 0) {                         if (temp.getString("success").equals("1")) {                             success = true;                         }                     }                     if (i != 0 && success) {                         Model_userDetails modalIUserDetails = new Model_userDetails();                         modalIUserDetails.email = temp.getString("email");                         Log.e("ABCdata",temp.getString("email"));                         Log.e("ABCdata",temp.getString("name"));                         modalIUserDetails.name = temp.getString("name");                         modalIUserDetails.mobile = temp.getString("mobile");                         modalIUserDetails.state = temp.getString("state");                         modalIUserDetails.district = temp.getString("district");                         modalIUserDetails.block = temp.getString("block");                         modalIUserDetails.village = temp.getString("village");                         modalIUserDetails.designation = temp.getString("designation");                          Log.e("ABC1","adding");                         arrayList.add(modalIUserDetails);                         Log.e("ABC1",modalIUserDetails.email);                       }                   }                  Log.e("ABC1","returning");                 return ;    02-28 16:18:27.892 20959-20959/katheria.vhp E/ABC1: shekhar.borntofly@gmail.com 02-28 16:18:27.892 20959-20959/katheria.vhp E/ABC2: shekhar.borntofly@gmail.com 02-28 16:18:27.893 20959-20959/katheria.vhp E/ABC: endpoints 02-28 16:18:27.894 20959-20959/katheria.vhp E/ABClast: shekhar.borntofly@gmail.com 02-28 16:18:30.532 20959-20959/katheria.vhp E/ABC1: data parser 02-28 16:18:30.532 20959-20959/katheria.vhp E/ABCdata: shekhar.borntofly@gmail.com 02-28 16:18:30.532 20959-20959/katheria.vhp E/ABCdata: Shekhar Singh 02-28 16:18:30.532 20959-20959/katheria.vhp E/ABC1: adding 02-28 16:18:30.532 20959-20959/katheria.vhp E/ABC1: shekhar.borntofly@gmail.com 02-28 16:18:30.533 20959-20959/katheria.vhp E/ABC1: returning 02-28 16:18:30.533 20959-20959/katheria.vhp E/ABC1: returned


Ubuntu installation asks for login and password

Ubuntu 14.04 live cd asks for password and login upon trying to install or try the live environment. What should I do ?


It is possible for users to edit an existing post.   How do edits work? Who may edit a question or answer? How can you tell what has been changed between edits?      For more information, see "" in the .     Related:


unable to access hard drive with Ubuntu as my only operating system

I can't access my internal hard drive. Ubuntu, recently installed,WITHOUT  Windows. Receive the following message:  Error mounting /dev/sdb1 at /media/magal/D0CAEAF7CAEAD8AC: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000" "/dev/sdb1" "/media/magal/D0CAEAF7CAEAD8AC"' exited with non-zero exit status 14: The disk contains an unclean file system (0, 0). Metadata kept in Windows cache, refused to mount. Failed to mount '/dev/sdb1': Operation not permitted The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option


Every separable Banach space is a quotient of $\ell_1$

I'm really confused with this question... Let $X$ be a separable Banach space. Prove that $X$ is quotient space $\ell_1$. I have some denotations.  $\{ \xi_i \}$ - convergent dense sequence in $K_1(0)$ =  $\{ x \in X \mid \|x\| \leq 1 \}$ - closed balls with center $0$. $ \alpha :  \{ x_i \} \mapsto \sum_i (x_i \xi_i),\{ x_i \} \in \ell_1 $  How can these denotations help me to prove statement? Thanks in advance.


Install windows software on Ubuntu 16.04lts

I'm a newbie user. I installed Ubuntu 16.04 lts on this afternoon.  I'd like to know if it's possible to install, on ubuntu 16.04lts, some software I had specifically suited for windows. --> Does any app exist that can make this job?  My PC: - HP media center PC m7000 (year 2007) - operating system: dual boot "windows vista" & "ubuntu 16.04lts"  Issue: I noticed that "Ubuntu software" doesn't work anymore, so, if the app existed I couldn't download it from the Ubuntu software. How could I possibly cope with it?  best regards! Papillon


I recently installed Ubuntu 15.10 on my old computer.  I'm now trying to create a windows usb stick to install on a new computer I'm building.  When I add the repository      sudo add-apt-repository ppa:colingille/freshlight   and I try to update, I get the following errors:      W: Failed to fetch http://ppa.launchpad.net/colingille/freshlight/ubuntu/dists/wily/main/binary-amd64/Packages  404  Not Found                               W: Failed to fetch http://ppa.launchpad.net/colingille/freshlight/ubuntu/dists/wily/main/binary-i386/Packages  404  Not Found      E: Some index files failed to download. They have been ignored, or old ones used instead.   Then when I try:     sudo apt-get install winusb   I get:     E: Unable to locate package winusb   Can anyone help me find a solution?


How often do you have to roll a 6-sided die to obtain every number at least once?

I've just played a game with my kids that basically boils down to: whoever rolls every number at least once on a 6-sided die wins.  I won, eventually, and the others finished 1-2 turns later. Now I'm wondering: what is the expectation of the length of the game?  I know that the expectation of the number of rolls till you hit a specific number is  $\sum_{n=1}^\infty n\frac{1}{6}(\frac{5}{6})^{n-1}=6$.  However, I have two questions:   How many times to you have to roll a six-sided die until you get every number at least once?  Among four independent trials (i.e. with four players), what is the expectation of the maximum number of rolls needed? [note: it's maximum, not minimum, because at their age, it's more about finishing than about getting there first for my kids]   I can simulate the result, but I wonder how I would go about calculating it analytically.    Here's a Monte Carlo simulation in Matlab  mx=zeros(1000000,1); for i=1:1000000,    %# assume it's never going to take us >100 rolls    r=randi(6,100,1);    %# since R2013a, unique returns the first occurrence    %# for earlier versions, take the minimum of x    %# and subtract it from the total array length    [~,x]=unique(r);     mx(i,1)=max(x); end  %# make sure we haven't violated an assumption assert(numel(x)==6)  %# find the expected value for the coupon collector problem expectationForOneRun = mean(mx)  %# find the expected number of rolls as a maximum of four independent players maxExpectationForFourRuns = mean( max( reshape( mx, 4, []), [], 1) )  expectationForOneRun =    14.7014 (SEM 0.006)  maxExpectationForFourRuns =    21.4815 (SEM 0.01)


How do I change the date format in Gnome 3 shell?

I want to change the date/time format on the top panel to a format close to RFC 3339 / ISO 8601, like one of these:  %F %T → 2013-06-24 16:13:00  %F %a %T → 2013-06-24 Mon 16:13:00  %A %F %T → Monday 2013-06-24 16:13:00  I know Unity has a preference somewhere hidden away in dconf, this is how I did it in Unity, but I can't find such a preference for Gnome 3 shell. Preferably, I'd also like to set one of these as my system-wide date/time locale preference.


Prove this: $\mathbb Z[i]/(1+2i)\simeq\mathbb Z_5$

$$\mathbb Z[i]/(1+2i)\simeq\mathbb Z_5$$  Help me with this.


How to start xampp using sudo xampp command?

For starting xampp i need to run below command. sudo /opt/lampp/xampp start  Problem is: I don't like to write /opt/lampp/xampp Need Solution like: sudo xampp start   want only xampp command instead of /opt/lampp/xampp.


I have been asked by my college to design a banner for print, this is going to help promote the course we are on etc.   The print size is 500cm x 250cm.  I was going to do this in Photoshop with the following sizes: 50cm x 25cm @ 300DPI  Do you think that these sizes in Photoshop is correct? and would look great printed, not pixelated? I've never designed for something so big before, and when i've entered the full size its over 1gb file size!  Thanks


Unable to create new partition, with fdisk or gparted. Trying to create EFI boot partition

First I tried fdisk, I tried      fdisk /dev/sdb   linux is installed in this ssd   then I hit 'n' and it says: all space for primary partition is in use And I can't do anything after that.  Then I opened gparted and tried to create a new partition that way, and the new partition option is grayed out.  I'm running from boot media, because I heard you can't edit partition while it's mounted.  I have no efi partition from my previous windows installation. And I can't boot Xubuntu without a bootloader The ssd is MBR. Can I create an efi partition on my HDD, a separate hard drive and will it work from there? Because I'm able to create new partitions from the hdd. But oddly not from ssd why?


how to make SQL server accept [local] as server name?

I'm trying to login to MS SQL SERVER with the "." instead of server name, it gives an error. is there a way around that ?  i compared between my instance and an instance on a friend's laptop, his server name was only something like DESKTOP-GML4MNL but mine is like   DESKTOP-GML4MNL\M2014  i should be able to login using only [local] or "."


Why java doesn't allow to create instance of inner class?

I have a main class "m" and 2 inner classes called sub1,sub2, where sub2 is static class:  public class m {   String n="n";   static String s="s";   public class sub1   {     public void fn(){System.out.println(n);}     //static public void fs(){System.out.println(s);}   }   static class sub2   {     //public void fn(){System.out.println(n);}     static public void fs(){System.out.println(s);}   }   public void f()   {     sub1 s1=new sub1();//OK, no error     sub2 s2=new sub2();//OK   }    public static void main(String[] args)   {     m obj=new m();     sub1 s1=new sub1();//Error     s1.fn();     //s1.fs();     sub2 s2=new sub2();//OK     //s2.fn();     s2.fs();   } }   I compile it under linux using Openjdk, it reports error  $ java -version openjdk version "1.8.0_91" OpenJDK Runtime Environment (build 1.8.0_91-8u91-b14-3ubuntu1~16.04.1-b14) OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode)  $ javac m.java  m.java:24: Error: Cannot reference non-static variable this in a static context.     sub1 s1=new sub1();//Error             ^ 1 Errors   This is weird to me: 1. In m.f() member function, we can "sub1 s1=new sub1();", but in main, we cann't 2. staic class sub2 can have instance，while non-static sub1 cann't?  Is this a design of Java? Why?


Relationship between f-number and amount of light being let into the lens system

Why does smaller f-number imply greater aperture diameter and consequently, greater amount of light entering the lens of a camera?  As evidenced from my study across a number of resources, an absolute statement is:  A smaller f-number means greater amount of light being allowed in, and vice-versa.  The f-number is, after all, the ratio of a lens's focal length to the diameter of the aperture. Now, if the aperture diameter is kept constant and the focal length is just decreased, that would, in turn, reduce the f-number too.  Yet, in this case, the lens's f-number is reduced, which as per theory, should allow greater amount of light into the system (as evidenced by all theory I've read stating that smaller f-numbers mean greater light being allowed in).  But, ultimately, I believe the amount of light being let in is controlled by the diameter of the lens aperture that does remain constant.  Can someone explain this concept to me?


It is said that boiling occurs only when the vapour pressure becomes equal to the pressure surrounding the vapour (say atmospheric pressure).   Why does it take place only satisfying these conditions ? They say that it is only in this condition that equilibrium between phases takes place.   If so, doesn't the continued heat supply cause a change in the equilibrium ??


Is there a material which can allow light (or any other EM radiation) to pass through from one side as if it is transparent but its other side reflects light like a mirror?


How to show an alert when user navigates to another page without filling the form?

I have a form created by a custom module. Now I want to show an alert like ("Please fil the complete form before navigating otherwise lost all the data") if the user navigate to another page without filling all required fields.  How can I do so?


What do these blood tests mean in general and why do doctors ask for them before taking action?

My doctor ordered some blood tests for me.  I would like to understand what each test is for, meaning what information could be gathered from the results.   W.B.C. Platelets E.S.R. C.R.P. Alpha feto protein   C.E.A.   I have read that some of these, such as CRP, are no longer relevant or often used. Is that true?


What is the best program for image optimizing for the web?

What programs besides Photoshop are good for saving and optimizing images for web?


I am writing the report for my lesson with the details like that. I would like to draw by tikz or anything else?   I really have no idea. I've taken a look but I didn't find out anything that could help me. So I hope you can help me.  \documentclass[answers]{exam} \usepackage{amsmath} \usepackage{amsthm} \usepackage{amsfonts}   \end{document}


Show if an post I have downvoted has been edited

We all know it is impossible to keep track of which posts to review you have downvoted. The list is getting pretty long and after a day I already lost track of the post.  I had like to blatantly copy  to become a new feature request:     to have the downvotes section on one's own profile have a simple indicator when a post has been edited since the vote action   That would look like this:        Can we have this please?


Where does the space before \align* come from?

In the following MWE, what is responsible for the large space before the align environment? How can I remove it (it doesn't appear if I change to \[ \] and remove amsmath) ?  \documentclass{article}  \usepackage[english]{babel} \usepackage{amsmath,amssymb} \usepackage{lipsum}  \begin{document} \setlength{\parskip}{0pt} \setlength{\abovedisplayskip}{0pt} \setlength{\belowdisplayskip}{0pt} \setlength{\abovedisplayshortskip}{0pt} \setlength{\belowdisplayshortskip}{0pt}  \lipsum*[2]  \lipsum*[2]  \begin{align*}1, 2, 3\end{align*}  \lipsum*[2]  \lipsum*[2] \end{document}   I have read  (but it doesn't cover the case in which there's a \par before \align and  (but it attributes the space to \parskip, which seems wrong: setting \parskip to 0 pt doesn't remove the space). I also read  and , but they just say that one shouldn't leave a \par before an \align.  I'm curious to know what actually causes this blank space, even with all seemingly relevant lengths set to zero.   Edit for Reopen   is related, but it doesn't address the why: it says that leaving a blank line in the source causes the space but it doesn't say who is adding this space (and it's clearly an amsmath-specific this: the regular displaymath doesn't do that).


How can i change Local axis of this tire to be like the axis in example? I have no idea how to do this. Is there any way i can achieve this? I'm a beginner.  If i can rotate the object without rotating the local axis, I can achieve what i need. But i don't know how to do it. Any help Appreciated.


How can we resume a download even if the link cannot be resumed?

When am downloading any link that's cannot be resumed, if my Internet connection gets disconnected then download link stops working.  What can I do to resume the download from the link?


The original question is  but it's still unclear to me.     We have branches in select cities.    We have branches in selected cities.    My homework: I asked this to a person who's master in English. He suggested this -     Use 'select' when things are really outstanding and very very unique. The metro rail in India is available in select cities. Rest for everything, it's 'selected' especially discounted items and/or outlets of any brand in cities and towns.    By placing *'branches' in select cities the brand did nothing to the cities and there's no city with very unique quality in this matter. It'll be 'selected cities'. Had it been the Olympic Committee's matter, we would have said, "They organize the event in select countries."  Clarification with references and examples please.


Split mathemtical function using signs in c++

I want to split a mathematical function by the sign of the variables in it like this :  string input = x-5y+3z=10  output--> [x,-5y,+3z,=10]   i used to do this on java by using input.split() function , but because I'm a c++ beginner i cannot find a way to do it like in java.  Any help ?  Edit:  After a long a time i found a solution to what i want , maybe it's not the ideal solution and it could have more improvements but as i said before I'm a still a beginner in c++ ,here is it ->  std::string fun="-x1+2x2=10.";  std::string *arr=new std::string[20]; int index=0;  for (int i=0; i<=20; i++){     if(fun[index]=='.'){         break;     }     for(int j=index; j<fun.length(); j++){     if(fun[j]=='+' || fun[j]=='-' || fun[j]=='='|| fun[j]== '.'){         if(j!=index){         arr[i]=fun.substr(index,(j-index));         index=j;         std::cout<<"term is : "<<arr[i]<<"\t index is : "<<index<<"\t j is : "<<j<<std::endl;          break;         }     }   }   output is ->  term is : -x1    index is : 3    j is : 3 term is : +2x2   index is : 7    j is : 7 term is : =10    index is : 10   j is : 10   if there is any advice to improve it please say .


How do I remove icons from the Unity launcher using a script?

After a fresh install of 11.04 I have a script that does a few useful things. Is there a way to remove the LibreOffice, Ubuntu One etc icons from the Unity launcher using command line so I can put it in my script?


Removing Command Bar in Windows 10 File Explorer

I've managed to remove Ribbon Bar from file explorer in Windows 10, but it has replaced it with a Command Bar which I never use and only clutters the view and distracts me. How do I remove this command bar?


Ubuntu dist-upgrade failure from 13.10 to 14.04 LTS

I have tried to upgrade Ubuntu in graphical mode from 13.10 to 14.04 but I've got this error: "Could not calculate the upgrade" What should I do next?


Storing Multilingual/unicode characters(thai,hindi,philliphine) in a MYSQL database

I have a MySQL DB. I created a table with below definition which supports multiple languages (Hindi, Thai, etc.).  CREATE TABLE test_multi_lang (    language_name varchar(500) CHARACTER SET utf8 COLLATE utf8_unicode_ci )  INSERT INTO test_multi_lang (language_name ) VALUES ('ตัวอย่าง')  INSERT INTO test_multi_lang (language_name ) VALUES ('नमूना')    But when I select the data. It is showing all the data as ??????.  SELECT * FROM test_multi_lang   Sample Image   How can I solve this problem?  Thanks in advance.


How to Calculate Point on an Arc (Given: Center, Arc Endpoints, Direction, and Distance along the Arc)?

I need to calculate the grid coordinates for a point on an arc using the distance traveled along it.  I'm given the endpoints, radius, center, clockwise direction, and distance.  How can I calculate the coordinates for the new point marked by the distance traveled?  If I had the angle of the arc point relative the the positive x axis, I could simple use the Radius, Cos(angle), and Sin(angle) to figure out the coordinate. But in this case it isn't given. I think I need to figure out x-axis angle for each endpoint by subtracting the center from each endpoint and then dividing by the radius. This then could be used with inverse tangent to find the angle for each endpoint. But how do I find the coordinates for the point traveling along the arc?


Getting a collection of index values using a LINQ query

Is there a better way to do this?  string[] s = {"zero", "one", "two", "three", "four", "five"};  var x =  s .Select((a,i) => new {Value = a, Index = i}) .Where(b => b.Value.StartsWith("t")) .Select(c => c.Index);   i.e. I'm looking for a more efficient or more elegant way to get the positions of the items matching the criteria.


How to prove by arithmetical means that $\sum\limits_{k=1}^\infty \frac{((k-1)!)^2}{(2k)!} =\frac{1}{3}\sum\limits_{k=1}^{\infty}\frac{1}{k^{2}}$

I've been trying to prove, by arithmetical means, that  $$\sum_{k=1}^\infty \frac{((k-1)!)^2}{(2k)!} =\frac{1}{3}\sum_{k=1}^{\infty}\frac{1}{k^{2}}$$  without success.  When I say "by arithmetical means" I mean to say, go from the left to the right expression just by symbolic manipulation.  Can anyone devise a way of doing this?


Where is the Ubuntu 14.04 kernel source code located?

I want to modify and want to make my own operating system using source code, so obviously firstly I need the kernel. I've decided that I'd use the Ubuntu 14.04 (Trusty Tahr) kernel. Where do I download that?


I would like to modify the footer used by Elsevier's  without editing the class file directly.  I would like to eliminate the footer on the first page that states "Preprint submitted to Elsevier" (or the journal you specify with the optional \journal{} command).  Obviously I can just delete it from the class file but this change won't carry over to others without me providing an explicit modification of the class file.  I tried adding the modified lines of the class file to my .tex before the documentclass declaration, but they are ignored:  \def\ps@pprintTitle{% \let\@oddhead\@empty \let\@evenhead\@empty \def\@oddfoot{\footnotesize\itshape % line below modified from elsarticle.cls  \ifx\@journal\@empty Elsevier \else\@journal\fi\hfill\today}% \let\@evenfoot\@oddfoot} \documentclass{elsarticle}   Is there any way to remove that footer without editing the .cls file?


Multiple Exponentiation in Modular Arithmetic

I need to solve $18^{19^{20}} \mod21$ and problems like it without a calculator. I believe there is a way to decompose this into a problem solvable with Fermat's little theorem. I just can't figure out how.


What is the term for pricing items just below a significant value (e.g. $19,995)

What is the name for the pricing strategy where the item price is just below a psychologically significant amount? For example $199 instead of $200, $2.95 instead of $3, $49,990 instead of $50,000.


Restarting (Recycling) an Application Pool

How can I restart(recycle) IIS Application Pool from C# (.net 2)?  Appreciate if you post sample code?


Points disappear when i rotate my device (Canvas)

I'm developing an Android application, I have to implement a function that allow me to draw different points with canvas.  I have realized this function that works:  public class MainActivity extends AppCompatActivity {     public Paint paint;     public List<Point> coords;      @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(new DrawingView(this));          paint = new Paint();         coords = new ArrayList();          ImageView iv = new ImageView(getApplicationContext());         iv.setImageResource(R.drawable.car);         iv.setScaleType(ImageView.ScaleType.CENTER_INSIDE);         LinearLayout.LayoutParams parms = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT,LinearLayout.LayoutParams.MATCH_PARENT);         iv.setLayoutParams(parms);     }      class DrawingView extends SurfaceView {          private final SurfaceHolder surfaceHolder;         private final Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG);          public DrawingView(Context context) {             super(context);             surfaceHolder = getHolder();             paint.setColor(Color.BLACK);             paint.setStyle(Paint.Style.FILL);         }          @Override         public boolean onTouchEvent(MotionEvent event) {             if(event.getAction() == MotionEvent.ACTION_DOWN) {               addpoint(event.getX(), event.getY());             }             return false;         }          public void addpoint(float x, float y){              Point point = new Point();             point.x = Math.round(x);             point.y = Math.round(y);             coords.add(point);              for(int i = 0; i< coords.size(); i++) {                 Canvas canvas = surfaceHolder.lockCanvas();                 canvas.drawColor(Color.WHITE);                 canvas.drawCircle(coords.get(i).x, coords.get(i).y, 20, paint);                 surfaceHolder.unlockCanvasAndPost(canvas);             }         }     } }   I have a problem, when i rotate my device the orientation change, and all points drawed disappear.  How i can keep all points ?


GLSL, all in one or many shader programs?

I am doing some 3D demos using OpenGL and I noticed that GLSL is somewhat "limited" (or is it just me?). Anyway I have many different types of materials. Some materials have ambient and diffuse color, some materials have ambient occlusion map, some have specular map and bump map etc.   Is it better to support everything in one vertex/fragment shader pair or is it better to create many vertex/fragment shaders and select them based on currently selected material? What is the usual shader strategy in OpenGL or D3D?


Mount disk C automatically when I load Ubuntu

my situation is, I have dual boot of windows 10 home 64 bits and ubuntu mate 18.04 64 bits, when I am in ubuntu I want to access my windows files, and I have to go to the file explorer, then I made a link (shortcut) ) from my document folder in windows to my desktop in ubuntu, but every time I turn on my laptop and access ubuntu this folder comes out in gray, and it is only enabled when I load disk C from the file browser, when I do this the folder is enabled and additionally the icon of my HDD appears on the ubuntu desktop, I think that what I do is mount the disk C, but how do I mount it automatically just enter ubuntu?


How do you get Java sockets working with public IPs?

I have had no trouble getting the sockets working with localips, but once I made the code change to use public ips, I've consistently gotten java.net.ConnectException.  I am using the port 8084, which as far as I know, is not used elsewhere In the command prompt, netstat -a | grep 8084 shows: File STDIN:   TCP    user-9114eb19a8:8084    user-9114eb19a8:0      LISTENING  I have gone into my router and ensured that it is open I get my public ip using a request to   Server:  serverSocket = new ServerSocket (8084);   Client:  socket = new Socket (hostaddr, 8084); //hostaddr is a string containing my public-IP //it works when the program is run on a localnetwork and I am using my local-ips


I want to install Ubuntu MATE as a single OS over Windows 7. Can anyone help how?

I want to install Ubuntu Mate on my laptop which already has Windows 7. I want to ask how do I install Ubuntu so that Data of my other Hard Drive partitions like D:\, E:\ remain safe? I really want to switch to Linux environment. Can anybody help?


What are good basic statistics to use for ordinal data?

I have some  gained from survey questions.  In my case they are  responses (Strongly Disagree-Disagree-Neutral-Agree-Strongly Agree).  In my data they are coded as 1-5.  I  don't think means would mean much here, so what basic summary statistics are considered usefull?


Can I use GPS to synchronise two pieces of hardware?

I'm working on a project with multiple sensors. These sensors need to be synchronised with eachother as precisely as possible without a physical connection. I need to make sure that if I tell them to start measuring that they start at the same point. If one starts 1 microsecond later than the other then all the measurements  will    be no use.  Im planning on using GPS to make synchronise the clock rates as being demonstrated here  So my GPS synchronises the relative time of the sensors, but can I also use it to synchronise the absolute time? so I can set a t(0) at the exact same time?


Does 50-622 Schwalbe Marathon plus winter fit my bike?

So my bike original tires are 47-622 and I'm wondering does 50-622 Schwalbe Marathon plus winter fit my bike? My bike:


Sequence of a product of functions in $L^p. L^q$ with $p,q$ conjugate

The question is: if $f_i$ is a sequence of functions in $L^p$ converging to $f$ and $g_i$ a sequence in $L^q$ converging to $g$ show that $f_ig_i$ converges to $fg$ in $L^1$ for $p,q$ finite and $\frac{1}{p}+\frac{1}{q}=1$. Does this result hold if $p=1, q=\infty$?  So I think I showed the first part. $||f_ig_i-fg||_1=||f_ig_i-f_ig+f_ig-fg||_1\leq||f_ig_i-f_ig||_1+||f_ig-fg||_1 = ||f_i(g_i-g)||_1+||g(f_i-f)||_1\leq||f_i||_p||g_i-g||_q+||g||_q||f_i-f||_p$   (by Holder's inequality) which goes to $0$ as $i\rightarrow\infty$.  However the second part of the question throws me off because I don't see why this proof doesn't work just as well for $p=1,q=\infty$.  Am I missing something? Does the second part also hold?


Proving that the supremum of $(a,b)$ is $b$.

I was trying to prove it this way. Let $a,b\in\mathbb{R}$ with $a<b$. Let $ I=(a,b)$. As for all $x\in I$,$x<b$, we get $b$ is an upper bound. let $u=\sup I$, then $u\leq b$. If $u=b$ it's done. Otherwise, let's suppose $u<b$. Furthermore, for all $x\in I$, $a<x$ and $x\leq u$, so $a<u$, then $u\in I$...  Can I get somewhere this way?


Why can we see the moon when it is between the Earth and the Sun?

A rather stupid question, why can we see the moon when it is between the Earth and the Sun?


Spatial join QGIS, finding the number of points within a radius of another point

I am very new to QGIS and am pulling my hair out trying to find a solution to my problem:  I have two very large tables that I have plotted in different layers within my workspace, the first of which is the location of property sales and the second being short term rentals.   What I'm trying to achieve is to somehow find how many points in the rental layer lie within a radius of say 200 meters from the points in the sales layer at the time of sale.  I have dates for both of these in the tables.  Ideally I would then like to add a column into my sales table to say that there are "x" number of rental properties nearby when the property is sold.  I'm guessing that this can be achieved by some form of spatial join function but I am really struggling to achieve this given the time restriction that I am trying to achieve.


Suppose we have a standard regression model   $$Y= X\beta + \epsilon$$  with  $$\epsilon \sim \sigma^2$$ $$X \sim N(\mu,\gamma^2)$$  Are the estimated coefficients the same as if $X$ was fixed?  Is the estimated variance of $\hat{\beta}$ the same?  Thanks!


I have a manuscript which looks like:  \documentclass{article}                \usepackage{amsmath, amsthm, amssymb}  \begin{document}  [...]   \cite{ref}   [...]   \cite{anotherref}   [...]   \bibliography{references}   \bibliographystle{plain} \end{document}   My .bib file, references.bib, looks like this:  @book{ref,     title = {String theory and M-theory},     isbn = {978-0521860697},     publisher = {Cambridge University Press},     author = {Schwarz, John and Becker, Katrin and Becker, Melanie},     date = {2007-01-15} }  @article{anotherref,     title = {Locality problem for the Liouville field},     volume = {274},     issn = {0370-2693},     url = {http://www.sciencedirect.com/science/article/pii/037026939291992I},     doi = {10.1016/0370-2693(92)91992-I},     pages = {323-330},     number = {3},     journaltitle = {Physics Letters B},     author = {Balog, J. and Palla, L.},     date = {1992-01-16}, }   For some reason, my manuscript does not compile properly. Instead of the inline references coming up as numbers, I get [?]'s. The bibliography does not appear at all.   What's very surprising is that even the  in BibTeX's official website results in the same bug.   Another manuscript that had previously compiled properly for me, now produces the same error.   I am very puzzled by this. The bug is observed both in TeXmaker's Quick Build, and ShareLaTeX.   Anybody knows the cause of this bug?  Thanks!  P.S. Please feel free to vote to close this if it is off-topic.


Use \makeatletter \@hello \makeatother in footnote

I have an issue with a new command I use, to create a new template for a workgroup.   In my main document, I create a new commant like below, to allow my users to define a new word I will put in the front page of their report. I do so, because I don't want them to mess up the huge amount of code in the frontpage.  % create the new command \makeatletter \newcommand\hello[1]{\def\@hello{#1}} \makeatother  % later one, they use this \hello{hello world}   In my front page document, this is called in a footnote like below :  \let\thefootnote\relax\footnote{{  \makeatletter \@hello \makeatother }   The result of this (via pdflatex in texmaker) is that there is hello wrote in the footnote instead of hello world. Note, when I put the \makeatletter\@hello\makeatother in the main text, it works.   Do I have to define the full footnote in my new command ?  Thx in advance


Converting Numpy array to raster with ArcPy?

I have been trying to convert a numpy array back to raster after doing some calculation on it and i keep running into errors. Basically I am trying to find flooded areas below a certain sea level eg 2 meters. Here is my code :  import arcpy ,os ,sys import numpy as np  #conditioning the raster data    outputRaster = Con(inRas1>=0 ,inRas1,1) outputRaster.save(outputgdb + rasterName)   #clip the raster layer to study area clipppedRaster = arcpy.Clip_management(outputRaster,"#",clipRaster,inputFeature,"#","ClippingGeometry","MAINTAIN_EXTENT") #clippedRaster.save(outputgdb+ outputclip)  #convert raster to numpy array num_array = arcpy.RasterToNumPyArray(clipRaster,nodata_to_value=0)   floodedAreas = num_array[np.where(num_array <= 2)] arcpy.AddMessage(np.array(floodedAreas)) rasterflood = arcpy.NumPyArrayToRaster(floodedAreas,x_cell_size=1) floodedAreas.save (outputgdb + "numpyarray1")  rasterflood = arcpy.NumPyArrayToRaster(floodedAreas,x_cell_size=1) rasterflood.save(str(floodedArea))  arcpy.AddMessage(np.min(num_array))   But i keep running into the following error:  Traceback (most recent call last):   File "C:\Python27\dealingwithraster.py", line 57, in <module>     rasterflood = arcpy.NumPyArrayToRaster(floodedAreas,x_cell_size=1)   File "c:\program files (x86)\arcgis\desktop10.4\arcpy\arcpy\__init__.py", line 2299, in NumPyArrayToRaster     return _NumPyArrayToRaster(*args, **kwargs) ValueError: Argument in_array: A two or three dimensional NumPy array is required.   What am I doing wrong here?


I have tried unetbootin, LiLi, and Universal USB Installer, but they all freeze on the SYSLINUX "intro" screen. I am trying 12.04 x64. How do I get it to work?


Command to move a file to Trash via Terminal

I would like to know if there is a command I can issue in a terminal so I do not classically remove (rm) the file, but instead move it to trash (i.e. Nautilus Move to Trash behavior).  In case there is such a command, I would also be interested in knowing what it is.


I have multiple machines at home. All of them are running Windows 7 x64. Due to limited bandwidth and slow connection, I want to make them download updates just once and apply to the rest of them. What's the easiest way to accomplish that without resorting to Windows Server specific solutions (WSUS)?


What is the best way to globally change the amount of vertical space between items in list environments?


Are the Revenant rules official? If so which book are they in?

Critical Role spoiler ahead:   In Critical Role, Campaign 1, Vax becomes a Revenant.  I have found the rules for this listed on Unearthed Arcana and homebrew sites but have the rules for Revenants been officially published as of yet? and . lists as below:  Revenant (UA: "Gothic Heroes"), actually a subrace that can be applied to human, dragonborn, or tiefling  Does this, therefore, mean that Revenants are not official (come under the unofficial/official that UA rules do until they are published officially in a paid for book)


Is there a way to include motion path in render?

I have object which is moving and i want to include its path in render. Is there a way? I trired "Motion path" option, but this doesnt show in render. Is there a way to for example plot trajectory if i have all the points or is there some ad on?


I've lost my main Minecraft world, I have a backup of all my files of Minecraft on a USB just how do I get my world back?

So, I was on my Minecraft world when my laptop suddenly shut down. My laptop (that runs Windows 10) has been having problems with faulty battery and keeps shutting down randomly and wont turn back on without the charger even though it's not low on battery.  The next time I went on Minecraft my world was gone but luckily I had a backup of all my files including Minecraft separately all on a USB. The thing is I don't know absolutely anything to do with stuff like that and importing maps and I don't know how to get my world back.  I've tried pressing the import world button but I don't know where my world is since all I see is heaps of files in my Minecraft backup if that's even how i get it back.  Also, in the past I've searched how to import maps on Windows 10 and that you go to your .minecraft folder and then so on, the thing is I don't have a .minecraft folder even though I've done the exact steps to get to that folder it isn't there for me.  So I don't even though how to find my worlds. Can someone please help me and tell me where to find my world and how to get it back?


"Looks Good" for answers in low quality posts review queue is confusing

From  I've taken this advice:     You should accept a post (Looks good)   ...   • [ANS] Note that answers that are clear and address the question at least a little, but are fundamentally wrong, should be downvoted, not deleted. A wrong answer still “looks good”.   Makes sense to me, but "Looks Good" is misleadingly worded. I suspect many people, especially those that haven't read mentioned guidelines, will be confused and may refrain from picking that option (perhaps choosing one of the "delete" options).  Question: can we do something about this?  Perhaps rewording "Looks Good" to something else (suggestions welcome), or the option to downvote an answer and have an "I'm done" button?


Display author profile fields in nodes created by that user

I have a user profile with extra fields like company address and company name etc.  I also have a content type job where i'd like to use the author's profile info (company name, address) in the content created by that author.  How do I use fields from the author profile in my nodes created via the job content type?  Is there something like a token field that I can use in my content type to display profile fields?  I know in views there's an option to use relationships, but I'd like to not use views for this if possible.


Are DSLRs a dying breed, making now the time to switch to a mirrorless camera system?

I came across this  on Stuck in Customs today that makes a strong case to hold off too much investment in DSLR gear, and instead switch to mirror-less cameras like the Sony NEX. The author prefers to call such cameras 3rd generation cameras to prevent any bias.  The crux of the argument lies in the smaller size and faster shooting speeds of the new cameras, while the sensor size is an area where they seem to be lacking (Sony & Samsung cameras are APS-C sized though). Currently the big makers - Nikon & Canon - have practically no presence in this market (Nikon seems to be doing something with the V1). However, they seem to have slowed down the introduction of new entry level DSLR models over the last year as well.  So, as DSLR users looking to build and enhance their kit (there are many like me who've jumped the bandwagon over the last couple of years, and are just starting to build their kit), what are the advantages of sticking with the DSLR system rather than switching to the 3rd gen cameras?  IMO, one point that could cause a massive switch in the DSLR base would be if Nikon & Canon announced mirror-less models compatible with their current lens lineups, but that is a hypothetical scenario.  P.S. There is a similar question on mirror-less cameras, but that seems to be from the perspective of a person starting out rather than a person already invested in the DSLR system.


How can I create a Saved Search that excludes a specific folder from the results?

I'm trying to set up a Saved Search of my Mac that will exclude files in a folder called 'XYZ' from the search results. The reason is because I'm getting a ton of false positives from that folder that are difficult to sort through.  Just to be clear, I know you can add folders to a "Privacy" list in the Spotlight preferences, but I don't want to add this folder to that list --because I don't want to exclude it from all future searches, just this specific saved search. Any idea how something like this could be done?


Brightness control not working in Lenovo G580

I purchased a new Lenovo g580 laptop. But I am totally disappointed when I installed Ubuntu on it. Almost all drivers are not working. :-(  The laptop configuration is  intel i3 processor  Nvidia GeForce 610M graphics card.  I couldn't find the nvidia drivers in the additional drivers (jockey).  The main problem is that the brightness control not working. I tried lots of methods explained in this site, but the result again disappointed me.  I am a student and I am using Linux, and the brightness control is the most urgent problem that have to be solved.  So experts please give me a solution.  thanks in advance


This film is very similar to Lifepod 1993, but it takes place in a large ship, not a pod.  I can remember three characters... a technical engineer, being the one sabotaging the ship. And also this military cut character (who looks a lot like Kane from Mortal Kombat) and another girl (I think it was long, wavy black hair).  The "plot" twist that sends this one apart, at least back in the 1990´s, is that the ending comes to the fact there is only enough food and oxygen for one survivor and no escape pods or cryotubes, only a device that "could" work as a cryotube. For some reason that I cant remember the "Kane" dude chooses to die instead, by taking poison (which had been previously used on other surviving members). But the girl "tricks" him and drugs him instead, then places him in the "cryotube" and she stays awake to await for the rescue team.  Of course, they get salvaged, and he is still okay, surprised that she tricked him and saved him. Rings a bell for anyone? Is definitely a B-movie.


I have an old Toshiba  Specs are:   processor: 1.70 GHz Intel® Pentium® M processor 735 hard disk: 60 GB system memory: 512 MB (although I am in the process of buying an extra 1G ram for it) graphics: nvidia GeForce Go 6600, 128MB   My laptop still runs on XP 32bit and is used mostly for working on my PhD - lots of typing, bit of browsing, lots of article reading (PDFs) and listening to music. I have a netbook for more everyday tasks. The laptop still works very well, if slowly, but needs a new operating system, I suspect I should install Ubuntu 12.04 LTS but would appreciate any advice on the matter.


Is travel history required for Iceland and Estonia

I am a Nigerian, I understand the issue of travel history problems. But i want to know something, Please does Estonia and Iceland require travel history to apply for a tourist Visa? I  work in a Bank here as a software Engineer, with a good salary, but i am not married.   Kindly advise.


$A \preceq B$ indicates for covariance matrices A and B, B-A is SPSD (symmetric positive semi definite). Hence, I want to show that $B^{-1} \preceq A^{-1}$ , which seems straight-forward but I can't come up with a way to solve this.


unresolved external symbol vector c++ when sharing a vector between classes

I want to share the same vector between derived classes and access the string as individuals. I get an error with unresolved externals. What is going wrong. Is there any other way of sharing a vector between classes without static methods.  #include <iostream> #include <vector> #include <string> using namespace std; class base { public:   static vector<string> v1;    void set(string val);    vector<string> getval(); };  void base::set(string val) {    v1.push_back(val); }  vector<string> base::getval() {   return v1; }   class derived :public base { public:   void vec(); };  void derived::vec() {   string b = "sfd";   derived d;   d.set(b); }  class derive2:public base { public:   void vec2(); };  void derive2::vec2() {   derive2 f;   vector<string> a(100);   a = f.getval(); }  int main() {   derived a;   a.vec();   derive2 b;   b.vec2();   a.vec();   b.vec2();   return 0; }   How to get the vector in a derived class


How does Log shipping know to keep track

I have set up log shipping between 2 SQL Servers (SQL Server 2008 and SQL Server 2012).  At first I took a full backup of the first one and restored it on the other one and then I set up the log shipping. The database's first backup-restore took a few hours and below are my questions that I need to understand :   How does the log shipping process know from when to start the logs it is shipping?  Does it start from when the last backup-restore process happened or from the moment the log shipping itself is set ? Can I be sure that no information was lost in these few hours ?


DTX files are based on LaTeX comments, which means that any editor that can highlight LaTeX code will print most of the DTX files - all the documentation - as a comment and thus not highlight the code.  I found that Emacs can handle that problem, however I rather do not want to learn how to use Emacs just because of that. WinEdt should be able to handle the problem as well, but that is not Open Source. TeXworks does not handle it (I am using Window). I read that gedit should be able to do it, but it also only highlights standard LaTeX Code.  In  a script for highlighting in TeXworks was introduced, but I have not idea how to tell TeXworks to use that. The settings dialog does not allow to do it.


How do I test if another installation is already in progress?

Assuming I'm trying to automate the installation of something on windows and I want to try to test whether another installation is in progress before attempting install. I don't have control over the installer and have to do this in the automation framework. Is there a better way to do this, some win32 api?, than just testing if msiexec is running?  [Update 2]  Improved the previous code I had been using to just access the mutex directly, this is a lot more reliable:  using System.Threading;  [...]  /// <summary> /// Wait (up to a timeout) for the MSI installer service to become free. /// </summary> /// <returns> /// Returns true for a successful wait, when the installer service has become free. /// Returns false when waiting for the installer service has exceeded the timeout. /// </returns> public static bool WaitForInstallerServiceToBeFree(TimeSpan maxWaitTime) {     // The _MSIExecute mutex is used by the MSI installer service to serialize installations     // and prevent multiple MSI based installations happening at the same time.     // For more info: http://msdn.microsoft.com/en-us/library/aa372909(VS.85).aspx     const string installerServiceMutexName = "Global\\_MSIExecute";      try     {         Mutex MSIExecuteMutex = Mutex.OpenExisting(installerServiceMutexName,              System.Security.AccessControl.MutexRights.Synchronize | System.Security.AccessControl.MutexRights.Modify);         bool waitSuccess = MSIExecuteMutex.WaitOne(maxWaitTime, false);         MSIExecuteMutex.ReleaseMutex();         return waitSuccess;     }     catch (WaitHandleCannotBeOpenedException)     {         // Mutex doesn't exist, do nothing     }     catch (ObjectDisposedException)     {         // Mutex was disposed between opening it and attempting to wait on it, do nothing     }     return true; }


/kick and /ban command block workarounds for staff on a vanilla server

I'm running a vanilla minecraft server, and I have some custom commands set up for staff using scoreboard triggers. I want to set up some sort of trigger command that can kick and one that can ban (this one just for admins).   I understand that /kick and /ban won't work from command blocks, though. Is there a workaround for this (especially the kick command) that I could implement for mods and admins?


Ubuntu stuck on language setting while installation

I am really struggling with the installation of my ubuntu. Screen freezes when I try to select language and click continue to install and provide further information. Bio configuration:   Secure boot - Disabled UEFI mode   And I also tried to another USB-thum but the issue remains Please help I use Dell 7559 and Nvidia 960m ! Thanks


12.04 - Steam is running in the system monitor, but will not open

I am on Ubuntu 12.04, and have installed Steam and had it running previously but for the past 2-3 days, whenever I try to run Steam it opens a dialog box that says Verifying installation and then it closes and nothing happens. When I try to run Steam through terminal it gives me this:     Running Steam on ubuntu 12.04 32-bit   STEAM_RUNTIME is enabled automatically   Installing breakpad exception handler for appid(steam)/version(1378500910_client)   Installing breakpad exception handler for appid(steam)/version(1378500910_client)   Installing breakpad exception handler for appid(steam)/version(1378500910_client)   unlinked 0 orphaned pipes   removing stale semaphore last operated on by process 3130 with name 0eBlobRegistryMutex_F8AC220EF1CF9E5DA3A138E83771D64C   removing stale semaphore last operated on by process 3130 with name 0eBlobRegistrySignal_F8AC220EF1CF9E5DA3A138E83771D64C   removing stale semaphore last operated on by process 3130 with name 0emSteamEngineInstance   removing stale semaphore last operated on by process 3130 with name 0eSteamEngineLock   Installing breakpad exception handler for appid(steam)/version(1378500910_client)   [0914/114403:WARNING:proxy_service.cc(958)] PAC support disabled because there is no system implementation   Any suggestions would be helpful. Thanks!


Reputation in summary tab shows as blank instead of 0, if net result is zero

On a user's profile summary tab, the reputation amount (+/-) is shown, with the link to the question.  If a user gains 10 reputation for an upvote then it is shown as +10. But when a series of down vote events takes place for the same post, and the reputation reaches 0, it should show 0, but instead it's empty/blank.  Is this a bug or is it done intentionally?


Shell : Checking if a string contains a specified character

#!/bin/sh  TMP=$(cd Folder && ls)  for name in $TMP; do    if [[ "${name}" != *"a"* -a ${name} == *"b"* ]] ;then    echo $name   fi  done  I was trying to output the names that has no 'a' in it but 'b' instead . This is the error that I got : ./aufg7.sh: 6: [[: not found ./aufg7.sh: 6: [[: not found ./aufg7.sh: 6: [[: not found ./aufg7.sh: 6: [[: not found ./aufg7.sh: 6: [[: not found ./aufg7.sh: 6: [[: not found  What am I doing wrong here ?


Why can we modify an object with a function argument, but we cannot redefine an object the same way?

Example code:  var person = {   name: 'Sam',   age: 45 };  // This function is able to modify the name property function nameChanger (obj, name) {   obj.name = name; }  nameChanger(person, 'Joe');  // modifies original object   But trying to redefine the objection in a similar function doesn't work at all:  var person2 = {   name: 'Ashley',   age: 26 };  function personRedefiner (obj, name, age) {   obj = {     name: name,     age: age   }; }  personRedefiner (person2, 'Joe', 21); // original object not changed   This second example does not modify the original object. I would have to change the function to return the object, then set person2 = personRedefiner(person2, 'joe', 21);  Why does the first example work but the second example does not?


I have equations \begin{align} 7z'(x) &= x^2 + y(x)^2 + z(x)^2  \\ y''(x) &= -(y'(x) + 7y(x))\sin(z(x)) \end{align} where $$(y(0),y'(0),z(0))=(1.5,-2.6,0.5)$$  The task is to solve this problem using a computer. Can someone help with explaining what goes in $u'(x)$?  Thanks.  I am guessing $u(x) = (y'',z')$.


Let G be a group with $|G|=p^{2}$ , prove that G is cyclic.

We're given a group with order $p^{2}$ ,where $p$ is a prime, we need to show that $G$ is cyclic.  Since its order is $p^{2}$ there's an element $a$ $\in$ $G$ such that $a^{p^{2}}= 1$ ,  Could anyone tell how to proceed from here or any other approach?


How to "Un-Eject" a USB Flash drive -- Eject is easy (safely remove hardware), but what about Un-Eject or Reconnect?

There are times after I eject a USB Flash drive, I want to copy some more files over to the USB Flash drive.  In this case, do I always need to unplug the drive and plug it back in?  Is there a way to "reconnect" or "un-eject" the drive?  To eject, that are two ways:   Right click the drive (say H:) and choose Eject   Click "Safely remove hardware" from the icon tool   But there seems to be no way to un-eject or reconnect a drive.


In a nested-loop JS function, does 'return' exit the loop, or the whole function?

I have a piece of JavaScript I can't get to work (Euler Project, problem 3), and I have nested loops as part of the solution. If a condition is met, I want to exit a child loop, and continue with the parent loop. Should I be using return or break to accomplish this?  I've read the answers here:  but am still confused, especially on the answer that includes an anonymous function as part of the solution.


Can i place slip in a wave like pattern? Can i place first slip ahead of keeper towards batsman instead of behind the keeper?  I have not seen these types of fieldings.


How do I answer a question which contains multiple questions?

contains two questions (and it references  which contains many questions). I only have the expertise to answer one of those questions. Should I answer this question? Should I just comment? What's the general consensus on how to answer questions like these?


Uncertainty Principle for a Totally Localized Particle

If a particle is totally localized at $x=0$, its wave function $\Psi(x,t)$ should be a Dirac delta function $\delta(x)$. Accordingly, its Fourier transform $\Phi(p,t)$ would be a constant for all $p$, thus the particle's momentum is totally uncertain. I guess this is what the Uncertainty Principle told us.  But in another hand, since the particle is totally localized at $x=0$, it is not moving and therefore static. Its velocity should be 0, so is its momentum, which contradicts the conclusion above.  So, what's wrong with my thinking?  Is it that there shouldn't be a TOTALLY STATIC particle, or it's in a non-normalizable state, so the uncertainty principle is not applicable?


How do I go about evaluating the following by contour integration?  $$ \int^1_0 \frac{dx}{(x^{2} - x^{3})^{1/3}} $$  The question does not fit in the standard form of : $\int^{2\pi}_0$ or $\int^\infty_{-\infty}$  etc.  I tried substituting $ x = cos(\theta) $ but got stuck.


I've used Ubuntu before, but I'm still very new. I just installed 16.10 on a new computer yesterday, and the Wi-Fi has been considerably slower than my Windows laptop. I put the computer together mainly to play Dota 2, and I experience decent ping but constant 5%-10% packet loss while playing. Occasionally, after the computer has been left on for a while, the Wi-Fi connection will drop completely- I can still see networks in the drop down menu, including my home network, but my computer will not reconnect without a reboot. I've looked all over for a solution, but my inexperience has prevented me from getting anything to work. My Wi-Fi card is a Ralink RT2561/RT61, here's some info  The output of sudo lshw -C network   *-network                          description: Wireless interface         product: RT2561/RT61 802.11g PCI         vendor: Ralink corp.         physical id: 6         bus info: pci@0000:01:06.0         logical name: wlp1s6         version: 00         serial: 00:0e:2e:de:df:c0         width: 32 bits         clock: 33MHz         capabilities: pm bus_master cap_list ethernet physical wireless         configuration: broadcast=yes driver=rt61pci driverversion=4.8.0-22-generic firmware=0.8 ip=192.168.1.107  latency=64 link=yes multicast=yes wireless=IEEE 802.11         resources: irq:17 memory:dfef8000-dfefffff   Here is the output of sudo iwconfig:   *-network                          description: Wireless interface         product: RT2561/RT61 802.11g PCI         vendor: Ralink corp.         physical id: 6         bus info: pci@0000:01:06.0         logical name: wlp1s6         version: 00         serial: 00:0e:2e:de:df:c0         width: 32 bits         clock: 33MHz         capabilities: pm bus_master cap_list ethernet physical wireless         configuration: broadcast=yes driver=rt61pci driverversion=4.8.0-22-generic firmware=0.8 ip=192.168.1.107  latency=64 link=yes multicast=yes wireless=IEEE 802.11         resources: irq:17 memory:dfef8000-dfefffff   I'm at a loss, I'm very bad at this. If any additional info is needed I can provide it


Pokemons does not appear while being abroad

I'm a Spanish user with iPhone who is travelling abroad. While being in Japan I noticed that the official app was available on the Apple App Store, so I downloaded the game, registered and started an account.  First set of 3 pokemons to choose appear correctly and choosed one of them. Since that, I connected many other times and walked around a little (usually within the wifi range I was connecting through) and never saw any other Pokemon. In addition, I have never seen any pokestop or gym in the map.  Does this makes sense? If I can see the game on the App Store means that I'm able to play, so what's wrong? Also I tried to connect through a vpn to Spain and still didn't work.  Any idea of what is going on? Thanks in advance!  Edit to address the "possible duplicate question" pointed by @Frank:  The accepted answer in the other question states that you can play the game if the servers of the country you are visiting allows you.   In my case it seems like the servers allow me since I can login and play, but pokemons never appear, so I guess it's a different issue. Besides that, the accepted answer also points to use a VPN which I explained I tried without success.


How to display the edges of a mesh while in Object mode?

I sometimes like to view my models in wireframe mode, but it doesn't show individual faces, only lines representing the general formation of the object. With subdivisions (especially) this does not achieve what I'd really like to see, which is more of a "blueprint" look. Solid view:  Wireframe:  What I want (except this is solid):  What I want (except, this is edit mode, not an actual drawmode):  Is there a draw mode that can achieve this? P.S.: I don't mind if the answer uses Python. I'm not a Python programmer but I'd be able to understand the code (I've got programming experience and have used Python on and off before).


I'm using peersim from Eclipse, where it's sufficient to use these 3 libraries:  /home/luca/peersim-1.0.5/djep-1.0.0.jar /home/luca/peersim-1.0.5/peersim-1.0.5.jar /home/luca/peersim-1.0.5/jep-2.3.0.jar   And execute the main class peersim.Simulator.  However, now I want to execute it from command line (first time for me using java from command line). I tried with:  java -cp /home/luca/peersim-1.0.5/peersim-1.0.5.jar peersim.Simulator   But of course I get this exception:  Exception in thread "main" java.lang.NoClassDefFoundError: org/lsmp/djep/groupJep/GroupI     at peersim.config.Configuration.setConfig(Configuration.java:319)     at peersim.Simulator.main(Simulator.java:154) Caused by: java.lang.ClassNotFoundException: org.lsmp.djep.groupJep.GroupI     at java.net.URLClassLoader.findClass(URLClassLoader.java:381)     at java.lang.ClassLoader.loadClass(ClassLoader.java:424)     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)     at java.lang.ClassLoader.loadClass(ClassLoader.java:357)     ... 2 more   So reading around I tried:  java -cp /home/luca/peersim-1.0.5/*.jar:. peersim.Simulator   But I get this error:  Error: Could not find or load main class peersim.Simulator   How can I solve this?


How do I use images with copyright in my game?

Our game requires to show images from movies, cartoon characters, etc. but we don't know how we can include them.  We have seen that games like QuizUp and other guess the pic like games have images from Disney characters, Pokemon or company logos, etc.  How does it work? Is this usage considered fair use?


Understanding the meaning of thermodynamic work more clearly

Consider a system having spherical symmetry filled with gas. If it expands or compress, there is some work done by system or surroundings, respectively, according to the equation $W=nRT\log(v_2/v_1)$. But the coordinates of centre of mass of system is same at the centre of sphere, so according to original definition of work ($W$ equal to force times displacement) it should be zero. I can't understand where is the mistake.


Imaginary number for extinction coefficient in complex refractive index

In complex refractive index on a material, $n=n'+ ik$, the imaginary part $k$ is physical meaning, as it shows absorption in the material but it is an imaginary. How we measure an imaginary values in physics with imaginary numbers?


I have problems referencing a numbered section containing a glossary from the glossaries package.  \documentclass{article} \usepackage{glossaries} \makeglossary \newglossaryentry{ge}{   name=glossary entry,   description=with a long description } \begin{document} \section{Section} This \gls{ge} is listed in the glossary in Section \ref{sec:glossary}. % 1 This reference is wrong as the glossary is actually in Section 2. \printglossary[numberedsection] \label{sec:glossary} \end{document}   While this code should reference the glossary in section 2 it actually assumes that the glossary is in section 1.


I found this animal, which I suspect it's an insect, on the floor of a kitchen in Spain some days ago. It's about 8-10 mm long. I don't think I've ever seen it before. What is it?


Prove that $(n!)^{2}>(n)^n$ using inequality

To prove that $(n!)^2>(n)^n$  That is to prove that  $(n!)^2-(n)^n>0$  Now, $(n!)(n!)-(n)^n=[n.(n-1)(n-2)...][n.(n-1)(n-2)...]-[n.n.n...]$  $[n^2.(n-1)^2 . (n-2)^2 ...]-[n.n.n...]$   Comparing the first terms we get, $n^2>n$  Now we prove that all the other individual terms of $(n!)^2$ are greater than $n$  The general term is $(n-r)^2$  To prove that $(n-r)^2>n$, we subtract $n$ from $(n-r)^2 $  $(n-r)^2-n=n^2-2nr+r^2-n=n^2-(2r+1)n+r^2 $, but cannot proceed further, pls help, or this approach totally wrong?


Question about use of me too and me either

What is the difference:  -I want to drink something. -Me too.  And  -I want to drink something. -Me either.


How do I use Context in the nested static class below without memory leak or Attempt to invoke virtual method on a null object reference exception?

I want to use Context in the static class below in the do in background method. I have tried parsing context in the constructor and also creating an instance of the class but every time I get this error :  Attempt to invoke virtual method java.io.File android.content.Context.getCacheDir() on a null object reference       public static class PopulateDbAsyncTask extends AsyncTask<Void, Void,        Void> {         private PicDao picDao;         Context context;          public PopulateDbAsyncTask(PictureDataBase db, Contex context) {             picDao = db.picDao();             this.context = context;          }          @Override         protected Void doInBackground(Void... voids) {             RequestQueue mRequestQueue = Volley.newRequestQueue(context);             return null;          } }


There 2 packages from my  example:  ideje.tex and mypackage.tex  I need to complete this enumerate enviroment from arabic, roman to include hgnum    begin{enumerate}[label=\roman{enumi}--\arabic{enumi}--\large\ngg\symbol{\numexpr "13000+\value{enumi}}--]%\hgnum{\value{enumi}}]   ideje.tex MWE       \documentclass{article}       \usepackage{amssymb,amsmath}        \usepackage{fontspec}      \usepackage{mypackage}      \usepackage[czech]{babel}        \newfontfamily\ngg{Segoe UI Historic}       \usepackage{enumitem}          \begin{document}        \underline{motto:}{ každý den $\pm$ nový princip }\hfill{$\square$} \\      \\  \begin{enumerate}[      label=\roman{enumi}--\arabic{enumi}--\large\ngg\symbol{\numexpr      "13000+\value{enumi}}--]%\hgnum{\value{enumi}}]      \item rozhodovat se na hraně zajímavého     \item *vždycky to tam máš (data v matematice) K{\hg \hgunits{5}}L     \item svoboda a volnost     \item \hgnum{152123}     \item     \end{enumerate}     \end{document}   mypackage.tex  % this is my first package % % (c) Buffalo Bill % %% This program can be redistributed and/or modified under the terms %% of the LaTeX Project Public License Distributed from CTAN archives %% in directory macros/latex/base/lppl.txt. % \NeedsTeXFormat{LaTeX2e}[2994/06/01] \ProvidesPackage{mypackage}   [2011/01/11 v0.01 LaTeX package for my own purpose]  \usepackage{fontspec}  \usepackage{fontspec} \newfontfamily\hg{Segoe UI Historic}  \def\hgunits#1{\ifcase#1\relax\or ^^^^^^0133fa\or ^^^^^^0133fb\or ^^^^^^0133fc\or ^^^^^^0133fd\or ^^^^^^0133fe\or ^^^^^^0133ff\or ^^^^^^013400\or ^^^^^^013401\or ^^^^^^013402\else ?\fi}  \def\hgtens#1{\ifcase#1\relax\or ^^^^^^013386\or ^^^^^^013387\or ^^^^^^013388\or ^^^^^^013389\or ^^^^^^01338a\or ^^^^^^01338b\or ^^^^^^01348c\or ^^^^^^01348d\or ^^^^^^01348e\else ?\fi}  \def\hghundreds#1{\ifcase#1\relax\or ^^^^^^013362\or ^^^^^^013363\or ^^^^^^013364\or ^^^^^^013365\or ^^^^^^013366\or ^^^^^^013367\or ^^^^^^013368\or ^^^^^^013369\or ^^^^^^01336a\else ?\fi}  \def\hgthousands#1{\ifcase#1\relax\or ^^^^^^0131bc\or ^^^^^^0131bd\or ^^^^^^0131be\or ^^^^^^0131bf\or ^^^^^^0131c0\or ^^^^^^0131c1\or ^^^^^^0131c2\or ^^^^^^0131c3\or ^^^^^^0131c4\else ?\fi}  \def\hgtenthousands#1{\ifcase#1\relax\or ^^^^^^0130ad\or ^^^^^^0130ae\or ^^^^^^0130af\or ^^^^^^0130b0\or ^^^^^^0130b1\or ^^^^^^0130b2\or ^^^^^^0130b3\or ^^^^^^0130b4\or ^^^^^^0130b5\else ?\fi}  \def\hghundredthousands#1{\ifcase#1\relax\or ^^^^^^013190\or ^^^^^^013190^^^^^^013190\or ^^^^^^013190^^^^^^013190^^^^^^013190\or ^^^^^^013190^^^^^^013190^^^^^^013190^^^^^^013190\or ^^^^^^013190^^^^^^013190^^^^^^013190^^^^^^013190^^^^^^013190\else ?\fi}  \def\hgnum#1{{\hg\expandafter\hgnumx\the\numexpr10000000+#1\relax}} \def\hgnumx#1#2#3#4#5#6#7#8{% \hghundredthousands{#3}% \hgtenthousands{#4}% \hgthousands{#5}% \hghundreds{#6}% \hgtens{#7}% \hgunits{#8}% }   %\RequirePackage{whateverwe need} \def\hi{Hello, this is my own package} \let\myDate\date \newcommand\GoodBye[1][\bfseries]{{#1Good Bye}}  \endinput %% %% End of file `mypackage.sty'.


While using Intel GPU, Ubuntu 16.04 freezes on shutdown

My laptop has Intel 6700HQ CPU and Nvidia 960M as graphics card. I have nvidia-361 driver installed.   I can use the nvidia program provided with the driver to switch between Intel GPU and Nvidia GPU. Nvidia GPU works fine actually, and gives me no problems most of the time. But it heats a lot and drains/heats up the battery too. So it is not practical to use.  While switching from nvidia GPU to intel GPU, I'm not having any problems. When nvidia is on, I can easily reboot, suspend, sleep, poweroff. But when I'm on intel GPU, I can do none of those. It always freezes and I have to hold on the power button to force close it. If it sleeps, it won't wake up and so on. Same problem occurs if I use terminal commands (such as sudo reboot) to do these too.  It stays like one of these. And nothing happens:   The cursor doesn't blink. Screen is completely frozen.  I've removed "quiet splash" from grub to see what's wrong in more details, but it gave something like


I was thinking about the question above and can't find an easy way of proving it. Any suggestions?


In the context of computers or websites, when should one use click or click on?   Click (on) the right mouse button Click (on) the word 'Download' Click (on) the Start button Click (on) here for more information


Calculating the probability of a combo hand

Before I ask the question, I should mention I already saw  and just don't get it.  I have a 40 card deck with cards I'll label:  A (3 copies) B (3 copies) C (3 copies) D (2 copies) E (1 copy) F (2 copies) G (3 copies) H (1 copy) I (11 copies)  And I need to know for a hand of 5, and a hand of 6, what the likelihood of getting any one (or more) of the following is:  (A and B), (A and G), (A and C), (A and F), (H alone), (E and I), (E and C), (E and H), (E and G)  What is it/how can I do it?


How do I stop a .cmd file from running and delete it from my oc

I downloaded a software yesterday and then installed it and during the installation I was meant to run a .cmd file as admin but anytime I connect my PC to the internet, it starts hanging, lagging and freezing, please help me, what do I do and I don’t want want to lose my files by formatting my OS is windows 10 latest version


Can a student id card can be taken as an identity proof for domestic air travel in India?

I have a student id card verified by my institution. My father works in defence so I also have a family identity card with a photograph attached to it. I would like to know if I will be allowed to enter the airport and travel from Lucknow to Hyderabad?


If $\gcd(m,n) = 1$ then $\mathbb Z_{mn} \cong \mathbb Z_m \oplus \mathbb Z_m$.

I am familiar with the Chinese Remainder Theorem and I know that it must be used here in some way (Hint given by my lecturer).  All I know so far is $\mathbb Z_{mm} \not\cong \mathbb Z_m \oplus \mathbb Z_m$.  This explains my reaction of 'no way this is true', I tried to play around with $n$ and $m$ using the fact that they're co-prime, but I really do feel like I've hit the wall on this.  (EDIT) Just to elaborate on more work I've done; I played around with small examples (2,3) and now I'm actually really questioning this because how can an isomorphism exist between say $\mathbb Z_{6} \cong \mathbb Z_3 \oplus \mathbb Z_3$? One clearly has 6 elements and the other 9! So how can there be a bijective mapping between these two groups? Perhaps this question has a typo?  Any hints would be appreciated, so please no solutions.


A class to access other class's private field

class TestPrivate2 { private int n; }  public class TestPrivate {  private int n;  public void accessOtherPrivate(TestPrivate other) {     other.n = 10;// can use other class's private field,why??????????     System.out.println(other.n); }  public void accessOtherPrivate(TestPrivate2 other) { //      other.n = 10;//can not access,i konw //      System.out.println(other.n);// } public static void main(String[] args) {     new TestPrivate().accessOtherPrivate(new TestPrivate()); }  }   look at TestPrivate's method:accessOtherPrivate.why it can use other class's private field why?


Why am I getting a deadlock for a single UPDATE query?

I have two processes which execute code like this in parallel:  begin; update foos set unread=false where owner_id=123 and unread=true; commit;   This results in deadlocks.  My understanding of what causes deadlocks is like the scenario described in , with "interwoven" UPDATE statements updating two different rows in a different order. I don't understand how a single UPDATE statement could result in a deadlock. I'm not able to replicate the deadlock scenario using two parallel psql sessions in my dev environment. My guesses for why I can't replicate it:   I'm misunderstanding my code which creates the deadlock error, and there are actually multiple UPDATE statements in each transaction The "interwoven" aspect is happening, but "within" the UPDATE statement which covers multiple rows, so it's difficult to replicate.   Is it possible for this single UPDATE to be creating the deadlock?


Why C++ destructor at inheritance invoked 2 times

I tried this code:  #include <iostream> using namespace std;  class A { public: A(){cout<<"A();";}  ~A(){cout<<"~A();";} };  class B : public A { public: B(){cout<<"B();";}  ~B(){cout<<"~B();";} };  int main() { A a =B(); return 0; }   Output: A();B();~B();~A();~A();  Why is A's destructor invoked 2 times?


This  forced removal of unity and ubuntu-desktop on my 16.04 Ubuntu system.   The offending package that is missing, but unity needs, seems to be compiz-core-abiversion-20151010. It seems to be a , and I can't find it to download.    As it happens, I mostly use LXDE on this system, but I'd be very unhappy if I used Unity...  Since I do occasionally use the Unity desktop, is there a fix for this?  Edit: related questions are rolling in. Looks like a major quality escape          Edit 2:


I want to show data from sql in my php page but I get this error:      "Error: SQLSTATE[42000]: Syntax error or access violation: 156   [Microsoft][SQL Server Native Client 11.0][SQL Server]Incorrect syntax   near the keyword 'user'. (SQLExecute[156] at   ext\pdo_odbc\odbc_stmt.c:258)"   This is the code I am using and when I check if the odbc:odbc2sqlserver connection it says 'true'.  I searched on other questions but I could not find working answer.

                 <?php                 echo "
";                 echo "
UserID	Username	Password	Beheerder
";                  class TableRows extends RecursiveIteratorIterator {                     function __construct($it) {                         parent::__construct($it, self::LEAVES_ONLY);                     }                      function current() {                         return "" . parent::current(). "	";                     }                      function beginChildren() {                         echo "
";                     }                      function endChildren() {                         echo "
" . "\n";                     }                 }                  $servername = "localhost";                 $username = "root";                 $password = "";                 $dbname = "Taaltrainer";                  try {                     $conn = new PDO("odbc:odbc2sqlserver");                     $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);                     $stmt = $conn->prepare("SELECT * FROM user");                     $stmt->execute();                      // set the resulting array to associative                     $result = $stmt->setFetchMode(PDO::FETCH_ASSOC);                     foreach(new TableRows(new RecursiveArrayIterator($stmt->fetchAll())) as $k=>$v) {                         echo $v;                     }                 }                 catch(PDOException $e) {                     echo "Error: " . $e->getMessage();                 }                 $conn = null;                 echo "
";                 ?>


I'm new to CSS and I am working on a blog project for class. I am trying to have it so that I have a picture with text over it on the bottom of the picture. I 'm trying to have it so that both the picture and text are clickable. for some reason it seems like the picture is pushing down the text box and I cant figure out why.     #container{         display: grid;         height: 87vh;         width: 100vw;         grid-template-columns: 40vw 25vw 25vw;         grid-template-rows: 42.5vh 42.5vh;         grid-template-areas:          "left middle right"         "left middleRight bottomRight";         grid-gap: 10px;         padding: 1px;         justify-content: left;         background-color: thistle;     }  #MainblogPost{     border:solid;     border-color: grey;     height: 86vh; } #image{     width: 100%;     height: 100%; } #blogLink{     display: grid;     position: absolute;     bottom: 50px;     font-size: 20px;     color: turquoise; }  HTML

                          Iron man


AttributeError: 'unicode' object has no attribute 'replaceWorkspacePath'

I must of written this code using 15 different structures with no luck. I am simply trying to take an old layer 'Windfarms' stored in 'C:\Users\darle\Desktop\MXD_Test\Test.gdb' and replace it with 'New_Wind_Farm' stored in 'C:\Users\darle\Desktop\New_Shapes\new.gdb'.   my code is as followed:   import arcpy, os for filename in os.listdir(folderPath): fullpath = os.path.join(folderPath, filename) if os.path.isfile(fullpath):     basename, extension = os.path.splitext(fullpath)     if extension.lower() == ".mxd":         mxd = arcpy.mapping.MapDocument(fullpath)         layers = arcpy.mapping.ListLayers(mxd,'WindFarms')         for lyr in layers:             layer_source = lyr.dataSource                               layer_source.replaceWorkspacePath(#New shape path, ....             "FILEGDB_WORKSPACE","New_Wind_Farm")             mxd.save()          del mxd   The error I get is in the title. The documentation states that replaceWorkspacePath is for changing both file path and name. What am I missing?


Solving $ax \equiv c \pmod b$ efficiently when $a,b$ are not coprime

I know how to compute modular multiplicative inverses for co-prime variables $a$ and $b$, but is there an efficient method for computing variable $x$ where $x < b$ and $a$ and $b$ are not co-prime, given variables $a$, $b$ and $c$, as described by the equation below?   $ a x \equiv c \mod b $   For example, given  $ 154x \equiv 14 \mod 182 $, is there an efficient method for computing all the possibilities of $x$, without pure bruteforce?  Please note that I'm not necessarily asking for a direct solution, just a more optimized one.    I do not believe that the Extended Euclidean Algorithm will work here, because $a$ and $b$ are not co-prime.   Edit:  Follow up question, since the first one had a shortcut:  Could the be computed efficiently as well?  $12260x \equiv 24560 \mod 24755$.  $107$ needs to be one of the computed answers.


Convert XML/HTML Entities into Unicode String in Python

I'm doing some web scraping and sites frequently use HTML entities to represent non ascii characters. Does Python have a utility that takes a string with HTML entities and returns a unicode type?  For example:  I get back:  &#x01ce;   which represents an "ǎ" with a tone mark.  In binary, this is represented as the 16 bit 01ce.  I want to convert the html entity into the value  u'\u01ce'