** Definition: ** Let $ J_n = \{1,2,3, \ldots, n \} $. We say that a set is finite if its cardinality is equal to that of $ J_n $.  To demonstrate that I gave the following function. Let $ \varphi: \Bbb N ^ {J_n} \to \Bbb N ^ n $ defined as follows: for $ f \in \Bbb N ^ {J_n} $, let $$ \varphi (f) = (f (1), f (2), \ldots, f (n)). $$ I already proved that this function is bijective. But I'm getting a bit out of the exercise, and I want to know what the inverse of this function is, and how to get it out. Can someone help me with that?


Can we think of the proof of local flatness theorem as the proof the the Einstein's Equivalence principle?

Sean Carroll states the Einstein's Equivalence Principle (EEP) as "In small enough regions of spacetime, the laws of physics reduce to those of special relativity; it is impossible to detect the existence of a gravitational field by means of local experiments."  Local flatness theorem says that there exists a class of coordinate transformations such that any general metric can be brought into the Minkowskian form (special relativity form). So isn't a proof of the local flatness theorem is (almost) a proof of the EEP?


Is it necessary to download UNetBootin or other softwares to create a live os on a usb?

I was trying to download Tails on a USB stick and as always, you have to download the file (in this case a .img), but then I was told that I had to use software to make it work (I was recommended to use UNeBootin). This is where I am confused. Why do I actually need it? And can I download tails without it?


Did J.K.Rowling always consider Dumbledore gay?

In 2007, .  We know that she planned a lot of things about Harry Potter's world well in advance.  Is there any info (from the books or a statement by her) that proves that she always planned for him to be this way; or the reverse, that she only decided on that fact about him in the middle of writing the books?  Official info only, no guesses please.


Apache not running - "refused to connect" error

I am on Mac Yosemite. Apache 2.4.16. My localhost and local sites stopped working. They've been working fine for months now until I tried to update/fix MySQL. I get the following error:  This site can’t be reached localhost refused to connect. ERR_CONNECTION_REFUSED   Results for ps aux | grep "httpd": 3182   0.0  0.0  2432772    652 s002  S+    8:46AM   0:00.00 grep httpd  The numbers in the line above change each time I run ps aux | grep "httpd". Not sure if this is expected.   When I run killall -9 httpd: No matching processes belonging to you were found  My host file:    ## # Host Database # # localhost is used to configure the loopback interface # when the system is booting.  Do not change this entry. ## 127.0.0.1   localhost 255.255.255.255 broadcasthost ::1             localhost  fe80::1%lo0 localhost  127.0.0.1 test.local   httpd-vhost.conf:  # Virtual Hosts # # Required modules: mod_log_config  # If you want to maintain multiple domains/hostnames on your # machine you can setup VirtualHost containers for them. Most configurations # use only name-based virtual hosts so the server doesn't need to worry about # IP addresses. This is indicated by the asterisks in the directives below. # # Please see the documentation at  # <URL:http://httpd.apache.org/docs/2.4/vhosts/> # for further details before you try to setup virtual hosts. # # You may use the command line option '-S' to verify your virtual host # configuration.  # # VirtualHost example: # Almost any Apache directive may go into a VirtualHost container. # The first VirtualHost section is used for all requests that do not # match a ServerName or ServerAlias in any <VirtualHost> block. #   <VirtualHost *:80>   DocumentRoot "/Users/<myusername>/projects/test"   ServerName test.local   <Directory "/Users/<myusername>/projects/test">     Options FollowSymLinks     AllowOverride All     Order allow,deny     Allow from all     Require all granted   </Directory> </VirtualHost>   I changed my actual username to  for this post only.   apachectl configtest returns: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using <myusername>-iMac.local. Set the 'ServerName' directive globally to suppress this message Syntax OK  Results of sudo launchctl print-disabled system: disabled services = {     "com.apple.AppleFileServer" => true     "com.apple.hdiejectd" => false     "com.apple.screensharing" => true     "com.mysql.mysqld" => false     "com.apple.ManagedClientAgent.enrollagent" => true     "com.barebones.textwrangler" => false     "com.apple.usbmuxd" => false     "com.apple.odproxyd" => false     "com.apple.rpmuxd" => false     "com.apple.ftpd" => true     "com.apple.mrt" => true     "com.apple.smbd" => true     "org.apache.httpd" => false     "com.apple.stackshot" => false     "com.apple.ManagedClient.enrollagent" => true     "org.ntp.ntpd" => false     "org.net-snmp.snmpd" => true     "com.apple.mrt.uiagent" => false     "org.macosforge.xquartz.privileged_startx" => false     "com.apple.pacemaker" => true     "com.apple.flashupdater" => false }


For matrix multiplication to work, you have to multiply an $m \times n$ matrix by an $n \times p$ matrix, so we have $$\bigg(m \times n\bigg)\bigg(   n\times p \bigg).$$  But what about a $1 \times 1$ matrix? Is this just a scalar? But every matrix can be mulitplied by a scalar; so do $1 \times 1$ matrices break the rule?


I mistakenly added files to Git using the command:  git add myfile.txt   I have not yet run git commit. Is there a way to undo this, so these files won't be included in the commit?


Is it safe to remove these kernel files in /boot?

I have one kernel installed currently, 3.10.0-327.28.3.  In my /boot directly, I have what looks like a lot of stuff that package-cleanup perhaps missed:       -rw-r--r--  1 root root  17M Aug 28 18:00 initramfs-3.10.0-327.10.1.el7.x86_64.img     -rw-r--r--  1 root root  17M Aug 28 18:00 initramfs-3.10.0-327.28.2.el7.x86_64.img     -rw-r--r--  1 root root  20M Aug 29 00:46 initramfs-3.10.0-327.28.3.el7.x86_64.img     -rw-r--r--  1 root root  17M Aug 28 17:00 initramfs-3.10.0-327.28.3.el7.x86_64kdump.img     -rw-r--r--  1 root root  17M Aug 28 18:01 initramfs-3.10.0-327.4.5.el7.x86_64.img   Can I remove those 3 files safely?   They look like they belong to older kernels.


Can someone help me with getting my network driver to work? I have no experience and am using Linux as a last resort because my HDD crashed

I have a Realtek RTL8821CE and when i try to use the apt download command, it can't find any of the necessary files. I'm sorry if this is unclear, I'm new here and I'm new to all of this.


VLC shows very big icons and is unusable

After the update to Ubuntu 18.04, the vlc player can't be used anymore on my second screen(Main screen is 1366x768 and second screen is 1920x1080). When it is dragged from the main screen (where it looks normal) to the second screen, the interface is replaced by a huge ">>" button(see screenshot). I've already deleted and reinstalled vlc. Any help would be appreciated.     LE: vlc was installed with      sudo apt install vlc   the output of apt-cache policy vlc is:  vlc:   Installed: 4.0.0~rc1~~git20180727+r77135+157~ubuntu18.04.1   Candidate: 4.0.0~rc1~~git20180727+r77135+157~ubuntu18.04.1   Version table:  *** 4.0.0~rc1~~git20180727+r77135+157~ubuntu18.04.1 500         500 http://ppa.launchpad.net/videolan/master-daily/ubuntu bionic/main amd64 Packages         100 /var/lib/dpkg/status      3.0.2-0ubuntu0.1 500         500 http://ro.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages      3.0.1-3build1 500         500 http://ro.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages


write to multi-dimensional list in python gives unexpected results


Find record which is missing in second table

I have a question concerning a more efficient sql query which will select records from driving table, which is missing in second tables. Tables have more than 23k rows, and join takes too long.  Is there any way to make it faster? According to me, the following query loops through whole table   I used   SELECT * FROM orders JOIN orderID USING(Order_id) WHERE orderID != Order_id


JavaScript Uncaught TypeError: Cannot read property 'destroy' of undefined

Why is it going into his if when the check is if its not undefined    if (this.table !== undefined || this.table !== null) {             this.table.destroy();         }   Console error : Uncaught TypeError: Cannot read property 'destroy' of undefined  Ive tried   if(this.table)   But no luck either


Is there an equivalent of the Unix touch command on Windows 7?

On Unix the touch command allows you to change the date of creation of a file. I would like to know whether there is an analogous command on Windows 7 which would allow you to change the dates and times of creation, last modification, and last access to a file, and would also like to know whether there is a way to do the same from the standard Windows 7 operating system graphical interface utilities.  NOTE: when I go to the Properties for a file by right-clicking on it I see the dates and times of creation and last modification but not the date and time the last (read-only) access to the file took place.


Can I delete asec files in android.secure.folder on my sd from the computer?

Noobie here, I found out there was a hidden .android_secure folder in my sd card. However I encounter an error when trying to delete asec files. Could I do it from the computer instead?


Can someone explain to me what eigenvalues and eigenvectors are and possibly provide a visual explanation?

I am currently struggling to get my head around what eigenvalues and eigenvectors truly are as Khan Academy says that eigenvalues are just a scalar by which a vector is scaled and the eigenvector is the resultant vector that is not equal to zero, but other sources say different things.   I was wondering whether someone would be able to provide a simple explanation of what eigenvalues and eigenvectors are, and it would be greatly appreciated if a visual supplement is provided. I need to learn these to find the general solution to a markov matrix and am becoming quite confused.   Thanks!


Equivalence of sufficient statistics definitions

I'm reading about sufficient statistics, and have come across two definitions which seems unrelated, and I'm trying to understand their connection.  The first definition is from      A statistic $t = T(X)$ is sufficient for underlying parameter $\theta$ precisely if the conditional probability distribution of the data $X$, given the statistic $t = T(X)$, does not depend on the parameter $\theta$   $$ \operatorname{Pr}(x \mid t, \theta) = \operatorname{Pr}(x \mid t) $$   Wikipedia also provides the following equivalent statements, which I assume is due to bayes theorem $$ \operatorname{Pr}(\theta \mid t, x) = \operatorname{Pr}(\theta \mid t) \\  \operatorname{Pr}(\theta, x \mid t) = \operatorname{Pr}(\theta \mid t)\operatorname{Pr}(x \mid t) $$  The other is an informal description of the theorem, also from      Roughly, given a set $\mathbf {X}$ of independent identically distributed data conditioned on an unknown parameter $\theta$, a sufficient statistic is a function $T(\mathbf{X})$ whose value contains all the information needed to compute any estimate of the parameter (e.g. a maximum likelihood estimate).   which I would understand as $\mathcal{I}(\theta \mid t,x) = \mathcal{I}(\theta \mid t)$ for some information measure, i.e. that the information of $\theta$ given $t$ is the same as if we were given $t$ and $x$, so $t$ is sufficient.  The page on  shows that the same Fisher information can be inferred from $X$ and $T(X)$, but Fisher information is not mentioned on the page on sufficient statistics. It is not clear if this is the only formal definition of information, or if this holds for other kinds of information.    As there is already a question on the intuition behind the equivalence of the statements, an answer to this question should contain the answer to:   How is information defined in this context? Is it Fisher information or something more general? How may one demonstrate using the definition of information and the definition of sufficient statistic, that the two statements are equivalent? (or not?)   A proof of equivalence should preferably be as rigorous as possible, but not incomprehensible.


My tea bags are expired, can I still use them?

This box of tea has an expiration date which has passed but I would like to know if I can still use it. What do you think?


Can I grapple and drag someone to grant opportunity attacks against them?

I play a Goliath Valor Bard in a 5e D&D campaign. After a bit of Google searching about valor bards I came across the word of a role called a "Grappler", which Goliaths and bards are apparently good at.  I want to ask you if this combo works:   First round, you try to grapple your enemy Second round, you try to shove your enemy   So now they are grappled and prone   You "order" or ask your melee teammates to position themself on the other side of the enemy Third round you drag your grappled-, prone enemy, so all your teammmates get attack of opportunity   If this works, it means that every teammate other than the grappler (me) gets to attack twice per round.  Would this work, mechanically?


How to fix non working Dropbox icon on Xubuntu 14.04 LTS 64?

A few hours ago the dropbox icon in Xubuntu 14.04 stopped working. The icon is black with a red slashed zero. I cannot click on it to bring up the dropbox menu. I believe there was an update right before this happened.  I reinstalled then purged dropbox. I even deleted all associated files and hidden folders and after I installed it again. Still, the icon is not working. Tried to stop and start the service... again nothing.


Web service always returns mixed xml and json . How to make it pure json

I am working on a project and in this project i am asked to make a webservice that returns a pure json   i made this code but it always returns mixed xml and json  namespace DotMeTast {     [WebService(Namespace = "http://tempuri.org/")]     [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]     [ScriptService]     public class NewsWebService : System.Web.Services.WebService     {         NewsDataContext _db = new NewsDataContext();           [WebMethod]         [ScriptMethod(ResponseFormat = ResponseFormat.Json, UseHttpGet = false, XmlSerializeString = false)]         public string getAllNews()         {              var news = (from p in _db.NewsTBs                         where p.nType == "Real"                         select p).ToList();             var jsonSerialiser = new JavaScriptSerializer();             Context.Response.Clear();             Context.Response.ContentType = "application/json";             var json = jsonSerialiser.Serialize(news);             return json;         }     } }   Any Clue on how to make it pure json


Why there are different approach to create a button, and which one to use when.  <form> <input type="button"> <button type="button"></button> </form>   I would like to have some explanation.


Undefined reference to make_unique (my define)

I have followed the instructions in  and I have created a template class:  // ConfigItems.hpp #pragma once     #include <memory> #include <string>  template< typename T > class ConfigItem : public IConfigItem // here IConfigItem is the class that has the virtual members { private:     T m_value;  public:     ConfigItem< T >(const T& valueIn = 0);      std::ostream &printTo(std::ostream &outIn) const;     operator T() const; };  template< typename T, typename ...Args > std::unique_ptr< T > make_unique(Args&& ...args);   Implementation is here:  // ConfigItems.cpp #include "ConfigItems.hpp"  template< typename T > ConfigItem< T >::ConfigItem(const T& valueIn) : m_value(valueIn) {}  template< typename T > ConfigItem< T >::operator T() const {     return m_value; }  template< typename T > std::ostream& ConfigItem< T >::printTo(std::ostream& outIn) const {     return outIn << m_value; } template< typename T, typename ...Args > std::unique_ptr< T > make_unique(Args&& ...args) {     return std::unique_ptr< T >(new T(std::forward< Args >(args)...)); }   And I have created a ConfigFile class:  // ConfigFile.hpp #pragma once class ConfigFile { private:     static const std::string sm_inputFolderPath;      std::map<std::string, std::unique_ptr< IConfigItem > > m_configMap;  public:     ConfigFile(const std::string& nameIn);     ~ConfigFile();  };   Implementation:  // ConfigFile.cpp #include "ConfigFile.hpp"  const std::string ConfigFile::sm_inputFolderPath = "input_folder_path";  ConfigFile::ConfigFile(const std::string& nameIn) {     PTree tmpPT;     json::read_json(nameIn, tmpPT);      m_configMap.emplace(         ConfigFile::sm_inputFolderPath,         make_unique< ConfigItem< std::string > >(tmpPT.get< std::string >(ConfigFile::sm_inputFolderPath))); // here I get the error }   I am getting a linking error (not compiling):  undefined reference to `std::unique_ptr<ConfigItem<std::string>, std::default_delete<ConfigItem<std::string> > > make_unique<ConfigItem<std::string>, std::string>(std::string&&)'   I am not sure what is the problem here. I am using c++11, that is why I have added the function of make_unique. Can anyone help me to fix this? What am I doing wrong?


contacting advisor before admission can be helpful?

I am an Mphil student from India. My field of interest is complex analysis. I plan to go abroad for my PhD. I know the process of GRE exams and all. But I want to ask, is talking to any professor, with whom you wish to work for PhD, from your desired university, helpful in getting admission?  Can it be helpful somehow?


Center a div horizontally and vertically and keep centered when resizing the parent

I want to center a div horizontally and vertically at all times.  I can reduce/increase the width of the window and the div will respond by always remaining in the center of the window  .cent {   height:50px;   width:50px;   background-color:black;   margin:auto; }   Here is a  of what I have currently. But I want to keep the div centered vertically as well so if I reduce/increase the height of the window the the div will respond by staying in the middle of the window.   In regards to the example, I want to keep the blackbox vertically centered on window resize in the same way it always stays in the center horizontally.


Handing over manually logged in browser session to WebDriver/Selenium

I need to automate interaction with a website that is initially protected with ReCaptcha. Can I initially manually log in to the website and solve 2FA, then hand-over the existing manually initiated session to the testing application to automatically run through the website tests with my manually authenticated session?


Is using "since" and "ago" with the present perfect correct?

I just found this in a Cambridge Grammar Book and I am so confused. When I learnt English in school, the teacher said I cannot put Since and Ago together in present perfect sentence. However, in this book there are so many examples of combining together. What I know is since express period but ago is one point in the past, so that ago cannot be in present perfect sentence. Could you explain this?     From Advanced Grammar in Use by Martin Hewings. Unit 3 3.3 (page 7)      Find the following: (i) three sentences that are incorrect; (i) three sentences with the present perfect which could also have the past simple (consider the difference in meaning); (iii) three sentences where only the present perfect is correct. (A-G)       [A-G refers to the author's examples and explanations of the Present perfect (I have done) and past simple (I did) and their usages]        Jane has agreed to lend us her car. (I)     Do you know how many people have walked on the moon?    Phone for an ambulance. I think Keith's broken his arm.    In his twenties, Lawrence has spent many years travelling around Spain.    The Vikings have established a settlement at what is now York, in the north of England.    The house looks so much bigger now that we've painted the walls in brighter colours.    My brother has gone into town to buy some new shoes.    The Earth has been formed about 4,500 million years ago.    I've worked in Malaysia for three years.      Unit 8 (page 16)     Since the operation two months ago, Joe has been learning to walk again.   Jinny


I have a Winform application that can be started normally by double-clicking on it and using as a foreground windows application, also it can be started from the command line with arguments  What I need is to allow the application Console.WriteLine function logs to be printed to the command line.  Currently, when I start the application from the command line, it just executes and the cursor goes to a new line as if it is ready to take new command. Any suggestions?  EDIT  I tried checking the answers under the following  (which neither of them worked for me)


I have data on the entirety of a certian population (not a sample). I would like to conduct a multivariate analysis for this data. The data consists of an interval dependent variable and interval and binary explanatory variables.  many colleagues of mine suggested to analyze this with regression model. Given that the analysis subjects are the whole population, what value is there for significance? Is there a better way to conduct a multivariate analysis than a regression model in this case?  thanks.


I am new to Linux so i have some concerns regarding live cd . If i can log in the system with the live cd and get root access then any on can do the same , so my question is how to stop anyone using live cd to get access to my system , if that is possible .


I just made a reboot because I have got some upgrades and need to reboot. After reboot, Ubuntu 20.04 the fonts of the top bar and filenames on the desktop are very big. Even the symbols for network and other things are big, so it may bee a scaling problem. Can't find anything in Settings or Tweaks (that I installed after the problem) that may explain this issue. My desktop after upgrade and reboot:


Why is "string" considered a simplified version of "String"?

In C# I usually use String when I'm utilizing a method and string when declaring a variable. I read elsewhere that this is the preferred method to keep things clean and that made sense to me. In Visual Studio 2015, I'm getting a new message I haven't gotten before when I use String: Name can be simplified. The VS suggestion is to use string instead.  Why is string now preferred over String in VS2015 whereas it wasn't in 2013??  Not a duplicate of . That one asks what the difference is overall, I'm asking why VS is now suggesting one over the other; I don't know if a technical difference has changed or something to that effect.


Error: JAVA_HOME is not defined correctly - after maven installation

I installed Java JDK on Ubuntu 12.04 and added Java home to my path at ~/.bashrc:  export PATH=/opt/jdk1.7.0_40/jdk1.7.0_40/bin:$PATH   This looks a little bit strange but it's really my path.  After this I installed maven through:  sudo apt-get install maven   It installed all the needed libraries and now when I run mvn -version, I see:  Error: JAVA_HOME is not defined correctly.   We cannot execute /opt/jdk1.7.0_40/bin/java   What is wrong with it?   How to solve this trouble?


Why has this user lost all of his reputation on SO?

I've seen a user on Stack Overflow who lost all of his reputation, meaning he now has 1 reputation, when he had tens of thousands, and also multiple gold (JavaScript, jQuery, PHP, HTML, etc.), silver and bronze badges. I can post the link to his profile if needed.  How can something like this happen?


How to install 32bit Kubuntu over 64bit Kubuntu

I have an old system with 2G ram and 64-bit CPU. I installed the X86_64 version of Kubuntu 17.10 on my machine. I am using encrypted LVM volumes. I have decided I would like to try the 32-bit version of 17.10 while keeping my ~/ directory intact if possible.   The installer I have downloaded from Kubuntu seems only to allow a full installation. Is there a good way to accomplish my goals?


Why could no one guess that a Basilisk was the monster?

In the Chamber of Secrets, till the end, no one knows that the monster of Slytherin and the creature behind the attacks is a Basilisk.  Dumbledore, of all people, should have figured it out using the following clues  There are the following observations from which at least Dumbledore could figure out that the creature was a Basilisk:   Slytherin (and Riddle, perhaps?) being fond of snakes, it would be hard to miss that the monster of Slytherin would be snake-like at least. There are presumably a limited number of magical creatures that can petrify their victims. The fact that roosters were being found dead in suspicious circumstances was a clue to the Basilisk. Plus, it wasn't a satisfactory explanation that an Acromantula killed Myrtle, as she was uninjured, but dead.   Surely Dumbledore could put two and two together and figure out what the monster was?  I believe the clues pretty much narrow it down to a Basilisk, correct me if I am wrong.  After all, even if it takes a genius to figure it out, Dumbledore was the right man for the job!  But he presumably didn't  I say this because:   He made no attempt to distribute mirrors among the students as a safety measure. Nor did he station hundreds of roosters in the school to kill the basilisk.(Surely even Riddle would have a hard time killing so many roosters quickly to save his basilisk?) This would have been an effective measure, as roosters living as far away as near Hagrid's hut were threats to the Basilisk, so many roosters in the castle would probably get the job done.   Of course these methods are kind of extreme, but they are helpful in saving lives.  My Question  I can understand if no one else could figure out what Slytherin's monster was, but why couldn't Dumbledore do so?   After all, all it would take is some digging. Dumbledore, highly intelligent, would probably figure it out easily.  Can someone give me a reasonable explanation for this?


Showing $ \int_0^{2 \pi } \frac{dt}{a^2 \cos^2 t + b^2 \sin^2 t} = \frac{2 \pi}{ab}$

The question:  Let $\gamma$ be a contour such that $0 \in I(\gamma),$ where $I$ is the interior of the contour. Show that   $$\int_\gamma z^n \, \text{d}z = \begin{cases} 2\pi i & \text{if }  n = -1 \\ 0 & \text{otherwise} \end{cases}$$  By taking $\gamma$ as the ellipse  $$\{ (x,y) : \frac{x^2}{a^2} + \frac{y^2}{b^2} = 1 \},$$ show that $$ \int_0^{2 \pi } \frac{dt}{a^2 \cos^2 t + b^2 \sin^2 t} = \frac{2 \pi}{ab}.$$  The question's answer uses the Deformation theorem and the fact that the first integral has the given value if the contour is a unit circle. However, the two contours must not overlap, so it seems like this should only be true for a contour that either always has magnitude less than one or greater than one. In Mathematica, the final integral was true for the case that $a = 1.5$ and $b=0.4$. What am I missing?  Edit: The radius of the circle cancels in the integral if $n = -1$, so then it does hold irrespective of the radius.


How to find out the value of $\tan(25°)$ without a calculator?

Suppose, the angle of elevation of a hot air balloon is $25°$ and the point of observation of the angle of elevation is situated $300$m away from the take off point.  We can find out the distance between the take off point and the balloon by - $\tan(25°) = \frac{\text{Distance}}{300}$ Now, if we don't use a calculator to find the value of $\tan(25°)$, is there any other way to do this?


My phone started rebooting all by itself all the time after I did 2 things with it. Installed Snapdragon BatteryGuru and put it on learning mode (for an estimated 3 days I guess) so that I could start saving battery by the app learning my behavior, and cleaned RAM with CleanMaster. These were the only changes I've done, I don't remember which was first but soon my phone started rebooting whether I was handling it or not at random intervals.  I've also noticed the phone was hot all the time, the Note 3 runs into some hot period with some frequency but not with that frequency. I've uninstalled both apps and it didn't work, wiped cache and it didn't work. The phone was still rebooting even on safe mode. After I wiped Dalvik with the help of TWRP, I thought the problem went away but when I hit the power button to turn the screen off, the phone rebooted and it will now always reboot when the screen turns off, even if it's just from the phone being inactive. It doesn't boot-loops, it just reboots, then after a random time, can be seconds, can be half an hour, it will reboot again. Note 3 SM-N9003 VJUBMI6.


Using a 2048 kilobytes allocation unit size for large files

I have a Toshiba HDWA130 HDD that I am going to use to store exclusively files greater than 1GB.  I am going to format the disc with NTFS and use it only in Windows, connected via USB 3 (UASP).  My doubt: Any drawback in use an allocation unit size of 2048 kilobytes?  Thanks.


I need to prove that: $$ \int^{\frac{\pi}{2}}_{0} \cos^n x \, \mathrm dx = \frac{n-1}{n} \int^{\frac{\pi}{2}}_{0} \cos^{n-2} x \, \mathrm dx$$ for $n \in \{\mathbb{N} > 2\}$ I know that the integrals will not disappear if we take a derivative of both sides of equation even though they are taken on interval with 0. I thought therefore that the only / the easiest way to prove that must be through induction. I have the basis (for n = 3 we get): $$ \int^{\frac{\pi}{2}}_{0} \cos^3 x \, \mathrm dx = \frac{2}{3} \int^{\frac{\pi}{2}}_{0} \cos x\, \mathrm dx$$ (integration of the LHS) $$\left[\sin x-\frac{1}{3}\sin^3 x\right]^{\frac{\pi}{2}}_0 = \frac{2}{3}\left[\cos x \right]^{\frac{\pi}{2}}_0 \to 1 - \frac{1}{3} = \frac{2}{3}$$ And that works. However, I don't know how to do the hard part of induction since I don't even see that type of simple regularity of changes in the integral of $cos(x)$ that would come with changes of $n$. Therefore I'm not sure how to do the proof (which should be easy according to my book).


Im new to blender, so please explain the answer clearly. I don't know what I did, but now, my meshes only move in Blender Units - it's understandably annoying. The only way they move more or less freely is when I hold the control Key.  Using blender 2.72b


I'm learning C, I'm trying to read the contents of a file; I do not understand why the function does not fill the string of characters and reads 0 bytes. However, I think I read the manuals.  char *read_file(const char *filename) {     int         file;     int         nb;     off_t       size;     char        *buffer;      file = open(filename, O_RDONLY);      if (file < 0)         return (NULL);      size = lseek(file, 0, SEEK_END);     buffer = (char*)malloc(sizeof(char) * (size + 1));      if (buffer == NULL)         return (NULL);      if ((nb = read(file, buffer, size)) < 0)         return (NULL);      close(file);     buffer[size] = '\0';     return (buffer); }


Q1: Please what can I do next? Q2: What does it means for me in future and when I re-apply again? Q3: Is it good idea to reapply back in 1 month time?


Using rigid body physics to set objects' initial positions

I have a problem where I used physics to position a bunch of meshes in Blender and when I try to set the current frame to 0 it resets the position of the meshes that have been positioned with the use of physics.  Here is the .  Here is what the positioning looks like (Frame 300):    Here is what the positioning looks like after I try to set to frame 0 (Frame 0):


I'm splitting an object with a plane using a boolean modifier as described in . Roughly:   Duplicate the object. Add a plane. Apply an intersection Boolean modifier to the original object. Apply a difference Boolean modifier to the duplicated object.   I did this twice to pull a thin slice out of my object, and the resulting mesh is much more complicated than it could be. I'm slicing with unmodified planes so the big main faces are actually flat, big end up broken up into many crazy smaller faces.    I'm imagining the cleanest slice would be a topological cylinder. Is there some way to get a cleaner slice than this (python manipulation is fine) - either a method to make a nice slice directly, or a way to clean up the slice I've already got?  Here is what I imagine as an ideal mesh:


Are squares of independent random variables independent?

If X and Y are independent random variables both with the same mean (0) and variance, how about $X^2$ and $Y^2$? I tried calculating E($X^2Y^2$)-E($X^2$)E($Y^2$) but haven't been able to get anywhere.


Intuition behind quantum CNOT gate applied to a pair of electrons

I'm looking for some intuition behind how a cNOT gate works.  I think I understand the mathematics; but, I'm having trouble imagining how two electrons would interact to produce the predicted result.  If I understand correctly, the input to a cNOT gate is two unentangled electrons. I picture these as two Bloch spheres with vectors pointing in arbitrary directions.   To implement a cNOT gate, we would (1) bring these two electrons close enough to become entangled, (2) prevent electron x from rotating in the z direction (thereby preserving its state in that direction), and (3) allow electron y to rotate (which changes the probably of measuring it in the up state with respect to the z axis).   My understanding is that entanglement is a result of electrons rotating to align their spin axes into a lower energy state.  If that's the case, why is electron y affected more when electron x's axis is pointed up than when it's pointed down?   It would make sense if the effect was symmetric (large when the angle is close to either 0 or $\pi$, and small when it is close to $\frac{\pi}{2}$), but given that y can be oriented either up or down, I don't see how the effect of x can be small with oriented up and large when oriented down.  This post addresses the implementation of cNOT, but from a perspective that seems more mathematical than intuitive.   This video gives the type of answer I was looking for:  (I would have added this as the answer; but, I can't while the post is marked as a duplicate.)


May I know how how to rename a directory? because I have a directory which contains more files inside.  Thank You.


Worm/Tentacle/Tail/Spine Animation with ease

I wanted to rig and animate a worm using IK, so that if i move the tip of the tail i get the bend one would expect. Unfortunately using plain IK the tip will point towards the ground instead of staying parallel, easing into the slope of the arched spine.  This is what i end up with:    Ideally it should look more like a .  I thought that IK limits might help, but they are all relative to the previous bone and not global. To fix this i tried using rotation constraints, however, when the limit values approach usable angles the bend just "flips" along the Z axis so it's bending underground.


How to change list to list which has tuple?

To create list from sentence is what I want to do. Firstly, what I have done is coordinating this sentence,data = "In many countries food manufacturers are required by" to list like  lines = data.split(' ')   and got   ['In','many','countries','food','manufacturers','are','required','by']   Then, I want to change this form to   ([('In','many'),('countries','food'),('manufacturers','are'),('required','by')])   How should I do next ? I would appreciate if you teach me in detail.


Unable to include graphics from Google Drive network file

I want to include graphics from a Google Drive network file, using the LaTeX Base online LaTeX editor. The command \includegraphics {https://drive.google.com/file/d/1oqbedMUmelhHP0ZnB12MvUIXcyAg1Hix} fails with the error message  LaTeX Error: File `https://drive.google.com/file/d/1oqbedMUmelhHP0ZnB12MvUIXc yAg1Hix' not found.  The file exists and is accessible for all to view. The file opens correctly with Microsoft Edge and Google Chrome. The filename is Etab.jpg. How can I make LaTeX Base understand what I want to achieve? A previous, more general question on this forum on the same topic is yet unanswered. I am using a free version of the package and therefore not entitled to support from the supplier.


Rotate (group) objects outwards on spherical particle system?

I'm trying to create a mini-world with (among other things) trees on it. I have created an icosphere, modeled several trees and put them in a group. Next I added a particle system to the sphere, and chose hair. In the "render" section I selected Group and the name of the group I created. As expected the trees show up but they're all oriented in the same direction, while I would like them to pop up just like the default hairs do (along the normal of the individual faces). I tried fiddling with all kinds of settings, had them oriented in all kind of ways (e.g. towards the "north pole"). I also tried using the emitter instead of hair setting but without success as well.


What are the differences between normal and classic difficulties?

I can't seem to find a good list of info of all the changes that classic mode offers over normal other than that 'its much harder'.  Does any of the enemy AI improve in classic mode?  Do enemies have more health and do more damage?  Does the panic meter increase faster for countries?


Java, merging two List into one return statements

@RequestMapping(value="/portfolios", method = RequestMethod.GET)     public @ResponseBody List<PortfolioVO>  getPortfolios(HttpServletRequest request, @RequestParam(required= false) String region) { List<PortfolioVO> portfolios = gmiCacheService.getPortoliosForRegion(user, region);          return portfolios;           }   I have another List from another function that I need to add.  to then just return portfolios. I am very new to Java and do not know how to implement this.


Did Boba Fett survive the Sarlacc encounter?

In Extended Universe aka Legends continuity, it is established that after being thrown to the pit, Boba Fett survived Sarlacc due to his extremely strong armor.  Is this true for the current Star Wars canon?


In the final scene of TFA we see     Rey, Chewie and BB-8 flying in the Falcon to the Island where Luke has been for the past 30 or so years   But earlier      When Rey was being interrogated by Kylo Ren he says that he sees an Ocean and an Island that Rey pictures when she falls asleep   However,      The map appeared to only have the location of the planet but not the exact place on that planet that Luke and/or the Jedi Temple would be. Additionally when Rey sees the Island she seems to recognize it and since the whole planet seemed to be filled with islands unless we are to assume that Rey, Chewie and BB-8 stopped at each one or that they made an extremely lucky first guess (and we all know there's no such thing as luck) could Rey have perhaps been picturing/daydreaming about this Island the whole time?


My Asus doesn't go to sleep mode if I ask it to on Ubuntu 14.04. Sometimes it works after some updates, then it stops working after another update...  This is the message I get on a black screen for 3 seconds when I try to put it on sleep : "Some devices failed to suspend, or early wake event detected"


Cosemisimple coalgebras and uniqueness of their cosimple decompositions

A coalgebra $C$ is called cosimple if it has no subcoalgebras. It is called cosemisimple if it is a direct sum of simple coalgebras.    Is this direct sum decomposition unique? Explicitly, can there exist another decomposition into simple coalgebras which are of different isomorphic class or appear with different multiplicities?  Moreover,  says that cosemisimplicity     is equivalent to saying that every $C$-comodule is a direct sum of simple subcomodules.   Why is this true?


Is a planets orbit really a straight line through curved spacetime?

My understanding is that general relativity concludes that gravity isn't real because it does not exist in all frames of reference. Also that mass and energy warp spacetime into a curved geometry. Does that then mean that objects in orbit are actually traveling in straight lines in curved spacetime?


Finding amount of overlapping minutes in two PHP DatePeriods

I want to find the amount of overlapping minutes given two .  For example,      I have $startDate1 and $endDate1 as the first date range.    I have $startDate2 and $endDate2 as the second date range.      (For demonstration sake, the format is 'Y-m-d H:i'. )   Suppose $startDate1 = '2015-09-11 09:15' and $endDate1 = '2015-09-13 11:30'. Suppose  $startDate2 = '2015-09-13 10:45' and  $endDate2 = '2015-09-14 12:00'.   I expect a result of 45 minutes overlap. How can this be achieved?      This question was marked as duplicate but they are not the same. I'm looking for the amount of overlapping time in two DatePeriods not the difference between two dates. A "DatePeriod" consists of two dates and I'm looking for the amount of overlap (not difference) between two DatePeriods.


Sci-fi novel about aquatic society of humans

The story is set in a submerged city or community complex, anchored to the sea floor by tethers I believe. The story is centered around the POV of a kid, probably teenage. He was portrayed maybe 14-17 years old.  The first event I remember is one of these anchored homes caving in and collapsing to the sea floor. The main character (MC) witnessed the event and rushed in to save and rescue what/whoever he could.   The second event I remember is the MC and some female friend of his exploring an abandoned wreck of some structure and, in the midst of it, hearing the sound of a distant whale outside the structure propagating and reverberating through the metal structure.   The third event I remember is the ending, however, I'm presently on the mobile app of SE and don't see a button for spoilers (despite the ample space available for one) and I don't remember the special string of characters needed to create a spoiler, so I'll save typing it for later. Suffice it to say that the story ended happily, with plenty of dolphins.    There are other aspects of the story I remember as well.  I believe the MC lived on an aquatic farm homestead sort of ordeal, growing some kind of aquatic plants for the community. Their nearest neighbors did this as well. They all lived some distance from a central community with hundreds or thousands of citizens involved.   Most of these civilians were in denial of "mutants" emerging from their specialized community. I believe they shared stories about witnessing the feats of these mutants like we landgoers share ghost stories. In the end the MC and a number of other children end up being mutants themselves, adapted in some minute ways for living within water.   Some of these hypothetical mutants are blamed for a string of incidents and disasters in the communities and city, such as that one homestead collapsing and sinking (also, as it comes to me, I believe they managed to patch the sunken house up and inflate it again). I believe that during that event the MC chases down a culprit and witnesses something or someone mutant-like, driving his own suspicions and the plot further.  To live and work in the water, I believe the citizens inhaled in a kind of oxygen-rich liquid which allowed them some time to function in the depths without special breathing apparatuses.   I don't remember much about the regional setting, like where or when this place was situated, but I think there was a coastline city nearby.   The story seemed geared toward young adults and was likely written recently. I'd be surprised if it was written any later than 1990, and my impressions tell me sometime between 2000 and 2010. It was written in English and the copy I borrowed was printed on a paperback.


Can $gHg^{-1} \subseteq H$ but $gHg^{-1} \neq H$

Does there exists a group $G$ and $H$ subgroup of $G$ such that there   exists $g\in G$ with $gHg^{-1} \subseteq H$ but $gHg^{-1} \neq H$   I am unable to find an example and neither I am able to prove otherwise. Please help


what is the difference between git pull , git fetch and git rebase?

What are the differences between git pull ,  git fetch and git rebase? I feel pull and fetch are same.


How do I extract the name of a function from within a function in Python?

Lets say I have a function which I have defined:  def command("filename", function, error):   For 'function' I can input one of the following two functions:  def linear:     return x  def exponential:     return e**x   I want to save the figure under a name depended on the function used. So the name of figure will be something like this: filename_function.jpg  The command for this is plt.savefig(filename_+????+'.png')  How do I input the name of the specific function used into saved file?  So if my command is command("hello.txt", linear, error), then my save file should read hello_linear.png.   Update: Thanks everyone. I am new to Python, and I guess I caught myself tied up in nonsense approaches to something that can be implemented very simply. The answer is function.__name__ exactly as written.


Acceptable Accuracy, Precision, Sensitivity, and Specificity Thresholds

Are there general rule of thumbs for acceptable accuracy, precision, sensitivity, and specificity values/thresholds in classification? I would imagine that this depends on different applications. I would appreciate it if someone can give me a general guideline.


Zero-inflated model predicting only a small range of values. I need help

I built a ZI model and it is producing predicted values that are from a very small range when compared to the observed values. Plus it does not produce any zeros. See the fitted vs. observed graph below.     My model structure is given below. My response is a count variable and the predictor is continuous water level measurements (scaled).   m.u.meanwl.gu <- zeroinfl(GU ~ MeanWLScaled | MeanWLScaled, data = uluabat_wl_fg, dist = "negbin", link = "logit")   I need help to figure out what's wrong and fix it. Thanks in advance.


Do we have 16 tenses in English?  With   future present past future in the past   in these forms   simple continuous perfect perfect continuous   Can we manipulate these together to create English tenses? For example, "present perfect" or "future perfect continuous"?


The difference between int* ptr; and int *ptr; C++ pointers

What is the difference between int* ptr; and int *ptr;?  I am doing a C++ linked list project, and I wish to know the difference between the two statements above.


Special characters not showing for plain HTML text

I a displaying in a website 2 types of text:   One coming from PHP (either reading from SQL or simply hardcoded) Plain HTML written text   In order to display some Spanish special characters properly, I added the following:  <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />   However, now the HTML text does not display the special characters well. The Spanish ñ is showing Ã±.  Any solution to comply with both PHP and HTML?  Thanks


Find whether a series is divergent or convergent with using the Limit Comparison Test

The problem is:  $$\sum_{n=1}^\infty \frac{1}{n^{1+{1\over n}}}$$  How can we determine the following is converges or diverges with Limit Comparison Test?


I am just a teenager, and have heard my elders talking of . I want to know what is this theory? Is it something related to relativity? (which i dont think i understand concept mathematically) Can someone attempt to explain string theory in layman’s language?


Proving that the transformation obtained from an adjoint pair is natural

I am reading Homological Algebra by J.J. Rotman and am unable to do this problem.  Given an adjoint pair $(F,G)$ where $F : \mathcal{C} \to \mathcal{D} $ and $G : \mathcal{D} \to \mathcal{C} $ are two covariant functors, we can obtain a natural transformation $ \eta : \mathbb{1_{\mathcal{C}}} \to GF $.  I understand the definition of $\eta$ but am unable to prove that the transformation is natural. Couls someone please help me prove that for $f \in Hom (C,C')$, $GF(f)\eta_C=\eta_{C'}f$ ? Thanks !


Fill not filling all sinks using ArcGIS Spatial Analyst and ModelBuilder?

I am trying to make a model where I get a shapefile of conical hills in ArcMap 10.5.1. First I invert the DEM to get depressions. Then I used the fill tool and I set z-limits for each meter from 10 to 150. The problem is that the depressions on the higher altitude of my research area aren't recognised til z-limit = 150, not each depression seperatly but all of them together in one big depression with multiple sinks.   Is there a better way of detecting conical hills or is there a possible solution for my problem?     Here is a picture of my inverted DEM with some polygons. As you can see many are missing. I did not include the polygon produced at z-limit 150 so that the problem is visible.    And a picture of my model.


Undefined control sequence \printbibliography

Could anybody give me some help on this problem I've come over?  \documentclass{article} \usepackage{natbib} \begin{document}     \bibliographystyle{ormsv080}     \bibliography{MST_TBS}     \printbibliography \end{document}   when compiling, I got the error:   ! undefined control sequence 1.13 \printbibliography


If $p$ is an irreducible element of an integral domain $D$, and if $e$ belongs to $D^\ast$ prove that $ep$ is also ireducible

If $p$ is an irreducible element of an integral domain $D$, and if $e$ belongs to $D^\ast$, prove that $ep$ is also ireducible .  To me it seems so profound, but I cannot get the proof . I'm trying to say that it is not irreducible, so there exists $a,b$ so that $ep=ab$ where $a,b$ don't belong to $D^\ast$....


Graphics artifacts booting in an HP Pavilion, how to fix it?

I installed Ubuntu 12.04 on my old HP Pavilion ze1210 laptop. When I boot to Ubuntu it shows less than half of the screen; the rest is garbled and has a mixture of red and black squares. The top portion that is somewhat visible when the computer boots becomes distorted when I move the cursor (a red square) over it.


How to convert a std::string to in_port_t

Suppose I have this code:  #include <netinet/in.h>  void bark(in_port_t port){     // etc. }  int main() {      const std::string var = "203";     in_port_t p = var;     bark(p);      return 0; }   How would I convert the std::string to an ?


I am doing practice problems for an upcoming exam and am wondering what approach I might take to solve $53^{1069}$ mod 54. 1069 is a prime number, which means I can't factor the exponent.   Some other similar problems that I solved used Fermat's theorem (if N is prime, then $a^{N-1} \equiv$ 1 mod N), but 54 is not prime so I'm not sure if that is correct.


How to revert an accidental file association

When I right-clicked into an .exe file then chose Open with... and I select choose a program then I selected the wrong program. I checked the checkBox that has the label Always use the selected program to open this kind of file.  Now all of the .exe files have changed into the wrong program after I did this, so all .exe file opened with this program.  How do I revert the .exe file associations to do my regular work?


How to restore partitions and data after diskpart "clean" command?

I was on my way installing windows 7 alongside linux installation that was scattered over 3 partitions, namely: root, home and additional big partition for data files. I was trying to install windows on 4th a non mbr empty partition that was specifically created for windows. When I booted from windows 7 DVD, I used "shift+F10" command to enter a command line interface and used "diskpart" app. While going through the disk partitions and selecting the empty volume I typed "clean" thinking that it would erase ONLY the selected volume, but instead the whole hdd drive was removed of its partitions. I could barely stand because the information on those non empty linux partitions is irreplaceable and worth months of work.  What should I do to get my data back guys? I have 2 usb sticks, 2 external hdds, another windows laptop and internet connection.


How do I invoke LaTeX with the -shell-escape flag in MikTex?

I am trying to use the minted package but get the error ! Package minted Error: You must invoke LaTeX with the -shell-escape flag.  I am using MikTex and have tried going into Edit/Preferences and clicking on PdfLatex+MakeIndex+BibTex and adding -shell-escape (and also trying --shell-escape) to the arguments but then the compiler does not run at all and I get ERROR: MiKTeX encountered an internal error. ERROR: Info:  ERROR: Source: Libraries\MiKTeX\Core\Session/SessionImpl.h ERROR: Line: 640  Sorry, but "MiKTeX Compiler Driver" did not succeed.


Dell T7400 won't boot Ubuntu unless the live USB is connected

Ubuntu server 14.04  I have a Dell Precision T7400 with onboard SAS controller.  After installing Ubuntu from LinuxLive USB USB drive, the machine freezes at the boot screen.  I don't get any splash screens; this is happening well before that.  There is no drive activity at all.  The weird thing is that if I leave the USB key in the USB port, it all boots up fine, and I get to my Ubuntu prompt with no problems.  The BIOS boot order is the USB first and the local drive second.  I have not configured any RAID with the SAS controller.  I had Oracle Enterprise Linux installed (6.4) and it works no problem.


Set static variable in Apex based on argument passed from JS Helper

I have a static variable that would hold a Map with Ids and relevant custom objects. The map is initialized by a simple function (some SOQL calls and List to Map transform):  public static Map<String, CustomObject__c> myMap = getMyMap()  Later, in my Apex controller I could easily use myMap anywhere and get CustomObject's field from the map using a function like this:  @AuraEnabled public static String loadName(String objectId) {     return myMap.get(objectId).Name; }      The problem is that now the requirements have changed and I need to pass an argument to getMyMap function to make it look like getMyMap(String otherId). I need to pass this otherId argument from JS Helper.  I wanted to created myMap variable like this: public static Map<String, CustomObject__c> myMap and add an init function that would initalize myMap and would be called from JS Helper:  @AuraEnabled public static Map<String, FeatureType__c> initializeMap(String otherId) {     List<CustomObject__c> objectList = getListSomehow(otherId);     Map<String, CustomObject__c> customObjectMap = new Map<String, CustomObject__c>();      for(CustomObject__c object: objectList){       customObjectMap.put(object.Id, object);     }      //Here I wanted to set my static variable myMap     myMap = customObjectMap;      return customObjectMap; }   I thought that would work but it seems that myMap variable is not initalized as I get an error: System.NullPointerException: Attempt to de-reference a null object.  I need to use this static variable in many places in my Apex Controller so I am looking for a way to initialize it once at the beginning using provided String argument passed from the JS Helper.  Is it possible?


Does a ring isomorphism preserves the structure of a field?

The problem is the following one:  Let $f: A \rightarrow B$ a ring isomorphism. If A is a field, is B a field?  I think It's false, but I can't think of a counterexample, and if it's true I have no idea of how to prove it.


Minecraft Bukkit Server - Only spawn zombies

I have a Minecraft Bukkit server and I want only zombies and friendly mobs to spawn. My version is 1.9.4 Craft Bukkit. I already tried plugins like Selective Spawns or Mob Spawn Settings but they don't work. Can you help me?


How to access a folder through the terminal

I'm trying to follow  in getting my wireless to work. However I'm incredibly new at the whole Linux thing, and there is a part in there that I really just don't understand:     Go to your main extracted folder (It should be the DPO_RT3290_LinuxSTA_V2600_20120508 folder) and type the following:     make     sudo make install  When he says "Go to", does he mean go to the file window? Wen I'm there and type "make" and hit Enter, it just opens up the file. How exactly am I supposed to make this thing work? What he is trying to say? I really just don't get it. Can somebody help me to understand this, so I can get my wireless working.


How to extract the boundary of a raster image?

I am working in QGIS 2.10.1 and I have the following situation: I have some Landsat8 scenes (different paths and rows) and I want to extract their boundary. My final objective is to superimpose them to the vector of my study area, so that I can show how the scenes cover the study area and in which points they overlap.  I have already tried to convert the raster into a vector, but QGIS cannot make it, it crashes or it gives me back only part of the polygon.   Is there anybody who's got an idea to solve this problem?


how can I check in a statement if a variable is an integer?  like for string, we can say:    if i == " "     return something   how would I say:  if i == integer??


Continuous function whose right hand derivative equals 0 is constant?

Let $f$ be a continuous function on the interval $[a,b]$ such as for all x in $(a,b)$ : The right hand derivative equals $0$. Is $f$ constant?   The obvious reflex one would have is to try to find a counter-example, I tried, many times and I always failed. I assumed it to be true and tried to prove it, I tried manipulating sequences, it never worked. I tried calculating the left hand derivative of a point by using a sequence, it seemed to work at first, but it didn't as well. All in all, I think $f$ may not be necessarily constant.


Is it possible to backup and restore the created symbolic link paths? Where Windows 7 stores the data for the symbolic links? I looked in the registry but i couldn't find any data there.


I have several PDF documents which have the "no copy" and "no print" restriction bits set. Are there any free tools for removing such restrictions, on Linux?  I tried pdf2ps | ps2pdf but the size increase is horrible. The originals are fairly large too, so I'd rather use a local tool than a website.


Miktex and beamer: Error: \beamer@endinputifotherversion

I have downloaded MiKTeX (on Windows 10). The .tex files for papers and posters compile well but beamer does not work.  Here is the header of my .tex file:  \documentclass[10pt]{beamer} % \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{fancybox} \usepackage{amssymb}  %   MATH \usepackage{amsmath}  %   MATH \usepackage{latexsym} %   MATH \usepackage{amsthm}   %   MATH \usepackage[italian,english]{babel} \usepackage{bm}         % per scrivere in grassetto i caratteri matematici \usepackage{indentfirst} \usepackage{color} \usepackage{booktabs} \usepackage{graphicx} \usepackage{multimedia} \usepackage{eurosym} \usepackage{tikz}   I receive the following error message:  ! Undefined control sequence.  l.1 \beamer@endinputifotherversion                                    {3.26pt}   How can this problem be fixed?  Joab Winkler


Transparent window backgrounds/titlebars in Windows 10

Just upgraded from Windows 7 to Windows 10.  Found the lack of colored window titlebars to be quite annoying (Chrome, in particular, looked absurd with a white titlebar background), but was able to fix that by follow .  The next issue is that the titlebars are no longer transparent as they used to be under Windows 7.  I'd like to turn the transparency back on, and there seem to be various news posts scattered about that imply that Microsoft decided to .  However I'm not having any luck finding out where this setting is, or if it even exists.  It seems like it may have only been enabled for the start menu?  Is there a way to make the window titlebars non-opaque in Windows 10, and if so, how?


is there a way to find suitable ratio for matches to controls (using "ratio" in Matchit package in R or other programs)

I am using matchit package in R to find a control set for my treated units and I am testing the model with different ratio to get suitable control set. Is there a way to find suitable ratio and I will use that to find my control set.


Get a human when calling the IRS hotline 800-829-1040 with a question about your taxes?

How do I get to a human when calling the IRS? I keep hitting stupid automated robots.


I want to see who marked my questions as favorites

Favorite data is not exactly confidential; I can go to a user's profile and see everything they have as a favorite. Why isn't there an easy way to see who marked my questions as favorite?


Let $a,b,c,d\in \mathbb{R}$ and $a+b+c+d=2$. Prove that $$\frac{a}{a^2-a+1}+\frac{b}{b^2-b+1}+\frac{c}{c^2-c+1}+\frac{d}{d^2-d+1}\le \frac{8}{3}.$$   We have $$\frac{a}{a^2-a+1}\le \frac{4}{3}a\Longleftrightarrow \frac{-a\left(2a-1\right)^2}{3\left(a^2-a+1\right)}\le 0,$$ (Right)  So $$LHS\le \frac{4}{3}\left(a+b+c+d\right)=\frac{8}{3}=RHS$$  When $a=b=c=d=\frac{1}{2}$  But also $a=b=c=1;d=-1$ i don't know how to solve it.


Is there any way to supress error messages in Xubuntu 18.04 LTS?

I sometimes see error messages saying     System Program Problem Detected   I would like to have this popup window giving me these error messages supressed or removed. Actually, ANY error/or message window after starting up the desktop. Is there any way to do this?  I have notifications turned off.


How to get days between without time from date string - TypeScript?

I want to get the difference between days, but there is time and other information attached with this date format. 2021-04-05T19:12:33.000Z How do we eliminate all the other time and just get the year, month, day fields to find the difference between days? AKA How do you convert 2021-04-05T19:12:33.000Z to just the year, month day and no seconds? 2021-04-05T00:00:00.000Z or just get 2021-04-05? Or any other format to get the difference between 2 days and not considering the timestamps? I'm thinking of extracting the year, month and day from the string and set it as fields. Then pass it into const year = ("2021-04-05T19:12:33.000Z").substring(0,4) const month .. etc  new Date('05/04/2021') manually, but is there a better way to extract month, day, year from 2021-04-05T19:12:33.000Z ? Then find the days difference? Thank you!


I have two lists containing the same objects. How do I change one list without changing the other?

I first noticed this problem when I only put the objects in listOfRates and then created inverseListOfRates by copying it. But even using this method, I can't alter one list without altering the other.  How do I solve this issue?   List<HistoricRate> listOfRates = new ArrayList<HistoricRate>(); List<HistoricRate> inverseListOfRates = new ArrayList<HistoricRate>();  for (HistoricRate rate : rates){     listOfRates.add(rate);     inverseListOfRates.add(rate); }  inverseListOfRates.forEach(r -> r.setMid(1 / r.getMid()));


"Repair" network connections programmatically/from command line

Does anyone know exactly what Windows XP does when you click "Repair" on a network connection? I'd like to do the same programmatically or from a command line.  I did a Google search and found , which has a good explanation, but I don't think it's complete. I can reliably reproduce a condition where I lose network connectivity and clicking the Repair button fixes the problem, but running the commands in that article does not.


Relation between HCF, LCM and product of multiple numbers

It is well known that for two numbers $a $ and $b$, $$\text {lcm} (a,b)\times \text {hcf} (a,b)=ab$$ Does there exist a similar equality/ inequality between HCF, LCM and product of multiple numbers? (i.e. some relation between $\text {hcf} (a_1,a_2,...,a_n)$, $\text{lcm} (a_1,a_2,...,a_n)$ and $a_1\times a_2 \times ...\times a_n$)


How far will my Masters counterbalance low undergrad GPA in PhD applications?

I'm currently pursuing a Masters degree in Philosophy at a top UK university, and as my grades currently stand, I'm looking to graduate with a Distinction.  During my second and third years of undergraduate study, I was struggling with diagnosing and dealing with a medical issue. Unfortunately, this affected my grades in several modules throughout those two years. My undergraduate degree transcript features a patchwork mixture of Firsts, 2.1s and then a couple of those 2.2 grades. As a result, I graduated with a low 2.1 overall. Of course, this is all documented, supported by my physicians, and my supervisors were aware of my situation.  My issue is that I am now in the process of preparing to apply to PhD programs in Philosophy. I am hoping to apply to several Canadian institutions to be closer to family, but I will likely apply to some UK institutions too. I can see that GPA is an important factor in the admissions process.   My questions are:  How far will my undergraduate underperformance be likely to affect my chances of admission, and what can I do to strengthen my application to these programs in light of this?  Will my strong Masters GPA be enough to counterbalance my undergraduate transcripts?


Unable to open directories placed in desktop [Ubuntu 18.04.1]

Since I have upgraded my system from Ubuntu 18.04 to 18.04.1, I am facing a weird problem.  I am unable to open any directory placed on the desktop by double-clicking on it. However, when I Right-Click on the folder icon and select Nautilus it opens up. I can even access them by opening Nautilus from the menu. I don't know why is this happening. Is this some bug of 18.04.1? Should I revert back to 18.04?.  Update  I tried following things which didn't worked   Tried reinstalling gnome-shell  sudo apt-get install --reinstall gnome-shell  Tried reinstalling nautilus  sudo apt-get purge nautilus sudo apt-get install nautilus  Checked the permission of folders in desktop, they are ok Checked mouse setting in the Settings menu, they are ok   I also tried installing Ubuntu 18.04.1 in a virtual box with same iso file, what I found is that in VM newly installed Ubuntu works fine I can open the folder by double-clicking on them. Hence I believe I might have installed some drivers along the way which are creating a problem.


I have different Model classes which I will use with a master class. Every Model class have the same method "Change", but specific properties. The properties can be called by reflection.  Now I want to use every class with a generic string, because the model to use is stored in a database.  This is the working non generic code:  var inter = default(DDS.Model.Classname); inter = new Master().DoSomeWhat<DDS.Model.Classname>(variableA)   Now I want to write the Classname generic like that:  Type stringClass = Type.GetType("DDS.Model.Classname"); var inter = default(stringClass); inter = new Master().DoSomeWhat<stringClass>(variableA)   The error I got is "stringClass is variable, but is used like type"  What can I do here?  Thank you in advanced. Nu


How can i enable user to have reboot privileges without sudo? Need to keep sudo password enabled.  ssh user@server "sudo reboot" does not work because it requires a password to be entered.    Want this to work: ssh user@server "reboot"  i have tried /etc/shutdown.allow but  reboot: Need to be root


What are these other relics in the movie Thor?

We see a few artifacts in the movie Thor which are not identified.         Any idea what these artifacts are?


What is the first movie to show this hard work message at the very end?


How to make a backup of the data in my Laptop?

I would like to make a backup of all the data in my Fedora Laptop (Pictures, Music, Videos, Documents, etc.) in an external hard drive. Basically I need to know two things:   A good software to do this which works in Fedora (since I am a very basic user, I would require it to be very user friendly). What kind of external hard drive do I have to buy? I ask this because I researched a few brands (Toshiba, Sony and Verbatim) and they say their product is compatible with Windows and Mac, but there's no mention about Linux. I was thinking maybe I could just buy any of these brand's external hard drive and then format it to ext4 (the format my Laptop is formatted to), but I'm not sure.   Thank you in advance.


First of all I'm sorry for my noobness! :-( I am currently trying out AJAX jQuery load() method to load html page content for my navigation links. To do so, I created an empty div tag with an id, and I am replacing it accordingly:  HTML main webpage:    : Home News

   JQuery:   $("#index").click(function() {     $("#pageContent").load("home.html", function (response, status, xhr) {  // (selector).load(url, data, function(response, status, xhr))         if (status == "error") {                                            // function is an optional callback method that runs when request is completed.             var msg = "Sorry but there was an error: ";                     // response = contains result data from request             $("#error").html(msg + xhr.status + " " + xhr.statusText);      // status = contains status of request (error, success, etc)         }                                                                   //  xhr = contains XMLHttpp Request object     });     });   However, #index content has also a toggle button that if pressed, it will redirect to a specific section of another div - #news that is also called by ajax. It's purpose it to go to a specific news article (e.g. I have a list of 10 articles, when someone presses "read more" button on #index section, it will load article 5 in #news section). I created JS function to do so and it works when I load pages statically:  function showNews(newsToGo) {             window.location.assign(newsToGo);         }           //-News Box 1-//         document.getElementById('news-redirect1').addEventListener("click", function(){                 showNews("news.html#news-post-1");         });   Now, I have no idea how to make it work in AJAX. If I leave the JS in, it just loads a "bare" div. Can anyone point me into right direction?


Problem in installing ubuntu alongside windows 10 on DELL laptop

Installation does not show install Ubuntu alongside Windows.  I have created Unallocated space of 50 GB from disk management in Window for booting Ubuntu.  But at the time of installation it isn't showing that partition.


Express $w$ and $\frac1w$ for $w=\frac {\sqrt2+\sqrt3}{\sqrt5-\sqrt3}$ in the simplest form with a rational denominator

If w = $\frac {\sqrt2+\sqrt3}{\sqrt5-\sqrt3} $  Express the following in the simplest form (with a rational denominator)  i) w  ii) $\frac {1}{w} $  It must be like this right ?  w = $\frac {\sqrt2+\sqrt3}{\sqrt5-\sqrt3} $ x $\frac {\sqrt5+\sqrt3}{\sqrt5+\sqrt3} $  Please help me with this question coz I don't get it at all :/


How can I change the default text editor from gedit to vim? When I click on a text file, I want it to open in vim under the terminal instead of gedit.


Why is 'ls' suddenly wrapping items with spaces in single quotes?

I just noticed that on one of my machines (running Debian Sid) whenever I type ls any file name with spaces has single quotes surrounding it. I immediately checked my aliases, only to find them intact. wyatt@debian630:~/testdir$ ls 'test 1.txt'  test1.txt wyatt@debian630:~/testdir$ alias alias ls='ls --color=auto' alias wget='wget --content-disposition' wyatt@debian630:~/testdir$   Another test, with files containing single quotes in their names (also answering a request by jimmij): wyatt@debian630:~/testdir$ ls 'test 1.txt'  test1.txt  'thishasasinglequotehere'\''.txt' wyatt@debian630:~/testdir$ touch "'test 1.txt'" wyatt@debian630:~/testdir$ ls ''\''test 1.txt'\'''  test1.txt 'test 1.txt'          'thishasasinglequotehere'\''.txt'   update with new coreutils-8.26 output (which is admittedly much less confusing, but still irritating to have by default). Thanks to Pádraig Brady for this printout: $ ls "'test 1.txt'"   test1.txt 'test 1.txt'    "thishasasinglequotehere'.txt"  $ ls -N 'test 1.txt'  test1.txt test 1.txt    thishasasinglequotehere'.txt  Why is this happening? How do I stop it properly? To be clear, I myself set ls to automatically color output. It just never put quotes around things before. I'm running bash and coreutils 8.25. Any way to fix this without a recompile? EDIT: Appears the coreutils developers  to break with the convention and make this the global default.  UPDATE - October 2017 - Debian Sid has re-enabled the shell escape quoting by default.  And at the bottom of the reply chain to the previous bug report, "the change was intentional and will remain."  I thought this had already been settled, but apparently it was just reverted so that the "stable" Debian branch could keep its "feature freeze" while getting the other fixes, etc. from the newer version. So that's a shame (in my opinion). UPDATE: April 2019: Just found a  that was caused by this change to ls. When you're confusing developers and generating false bug reports, I think it might be time to re-evaluate your changes. Update: Android toybox ls is now doing something similar to this but with backslashes instead of quotes. Using the -q option makes spaces render as 'question mark characters' (I have not checked what they are, since they're obviously not spaces), so the only fix I have found so far without rooting the device in question is to add this to a script and source it when launching a shell. This function makes ls use columns if in a terminal and otherwise print one-per-line, while tricking ls into printing spaces verbatim because it's running through a pipe. ls() {     # only way I can stop ls from escaping with backslashes     if [ -t 1 ]; then         /system/bin/ls -C $@ |cat     else         /system/bin/ls $@ |cat     fi }


`cd` to a folder in bash script not working: No such folder

This is my entire script. it is simply to avoid having to type it again and again  cd api rails s -p 3001 -b 0.0.0.0 cd ..   When I am in the directory of the script and run cd api it works just fine. However when I run the script via ./start_server It does not work. Here is the output of ls -al:  mendel@DESKTOP-LIKG5E5:/mnt/c/Projects/chaverim-update$ ls -al total 8 drwxrwxrwx 0 root root  512 Apr 13 12:32 . drwxrwxrwx 0 root root  512 Apr  5 12:40 .. drwxrwxrwx 0 root root  512 Apr 13 12:09 api -rwxrwxrwx 1 root root 1237 Apr  5 12:40 boxfile.yml drwxrwxrwx 0 root root  512 Apr  8 16:54 .bundle drwxrwxrwx 0 root root  512 Apr  8 16:54 client drwxrwxrwx 0 root root  512 Apr 13 12:09 .git -rwxrwxrwx 1 root root   11 Apr  5 12:40 .gitignore -rwxrwxrwx 1 root root 1097 Apr  5 12:40 LICENSE drwxrwxrwx 0 root root  512 Apr  5 12:40 nginx -rwxrwxrwx 1 root root   82 Apr  5 12:40 Procfile -rwxrwxrwx 1 root root   67 Apr  5 12:40 README.md -rwxrwxrwx 1 root root  188 Apr  5 12:40 run_tests -rwxrwxrwx 1 root root   28 Apr  5 12:40 start_client -rwxrwxrwx 1 root root   41 Apr 13 12:52 start_server drwxrwxrwx 0 root root  512 Apr  8 16:54 vendor   As you can see there is a folder called api at the top and the start_server script is set to have execution permissions.


Blender material preview and rendered view aren't working anymore

So for some reason material preview and rendere view aren't working anymore. Everything is dark and glitchy and adding any light does nothing. I tried everything, i reinstalled blender, I have reset all settings, i updated my graphics Card drivers (amd radeon r7 m340) I tried older versions of blender but nothing works. I can render stuff in cycle but not on evee. Here are some screenshots:


Why is Windows 8 waking up the PC even when there are no wake timers and no pending maintenance tasks?

My desktop PC keeps waking up every time I put it to sleep. I put it to sleep, it wakes up. I put it to sleep again, it wakes up. I put it to sleep once more, it wakes up! It only stays asleep for about half a minute and then just wakes up again. Why is it doing that? I mean I know that Microsoft was trying to be smart with Windows 8 (on so many levels!) and they have put in place some wake timers so that the PC may wake up in order to install updates or perform some "maintenance" tasks. But I have already been over those settings. They are disabled, and there are no pending maintenance tasks.  Have a look:  Microsoft Windows [Version 6.3.9600] (c) 2013 Microsoft Corporation. All rights reserved.  C:\Windows\system32>powercfg /lastwake Wake History Count - 1 Wake History [0]   Wake Source Count - 0  C:\Windows\system32>   This output is unintelligible! Not human! If a specific service or process has waken the PC, this command should point it out. But nope, it just says 0. Thanks Microsoft! That says a lot!  These are my currently set wake timers:  Microsoft Windows [Version 6.3.9600] (c) 2013 Microsoft Corporation. All rights reserved.  C:\Windows\system32>powercfg /waketimers There are no active wake timers in the system.  C:\Windows\system32>   That's right, none!  These devices are armed to wake the PC:  C:\Windows\system32>powercfg /devicequery wake_armed HID-compliant mouse (002) Realtek PCIe GBE Family Controller Realtek PCIe GBE Family Controller #2 HID Keyboard Device (001) Logitech Optical Gaming Mouse G400s (001)  C:\Windows\system32>   Here is my power configuration setting:    Here is my Action Center setting:   As can be seen, all the relevant settings have been set to disabled. So what's the problem then? How do I stop this?  Update:  It appears now that this has nothing to do with network devices waking my computer, WOL (wake on lan). I have ensured that all my NICs have WOL enabled only for magic packet. If there was any wakes caused by WOL, there should be no wakes caused by WOL wakes anymore. Instead, this appears to be a Windows maintenance issue. I will post my findings at the linked duplicate question page.


Position cameras on all vertices with respect to center view

I would like to generate training-data for an image classifier, based on a CAD model. Therefore I would like to position my object in the center of the scene and render it from different positions. Also there is an even bigger object (icosphere) placed in the center and each face of this ecosphere is equipped with a camera. The focus is on the center, where the CAD model is located. Is there any possibility to implement this topic in code form and gain the desired images from different perspectives? The results of this approach can be found the following paper:  I value your feedback, so let me know what you think! All the best and stay healthy Alex


How does the nth sample impact Mean and Variance?

Given the Mean and Variance of $n$ samples $x_i$:  $$M_n=\frac {1}{n}\sum_{1}^{n}  x_i$$   $$V_n=\frac {1}{n}\sum_{1}^{n}(x_i-μ_n)^2$$  How do Mean and Variance change, when we take into account one more sample?   In other words, what are the function $f(x_n,\space...)$ and $g(x_n,\space...)$ such that:  $$M_n = f(x_n,\space n, \space M_{n-1})$$  $$V_n = g(x_n, \space n, \space M_{n-1}, \space V_{n-1})$$  Thank you!


Will the user be suspended if I upvote all his answers with genuine interest?

Okay, so it's a very hypothetical question.     I'll tell you where I come from ...    Last year, on Stack Overflow there was some sort of fake account made   and I have no idea why that guy/girl upvoted all my answers .My   reputation increased by 200 (That's the maximum ~thank god !) and I   was pretty delighted but the next day I got a huge moderator's notice   and my account was suspended for like 3 months or so [I don't exactly   remember the time :-( ] My reputation became 0 and I could answer no   questions .   My question is:  If I upvote someone's answers genuinely out of interest, will his and my account get turned down the same way?  Finally, I want to know the logic behind identifying scams vs genuine questions.  And also the answer to my above question.


How to create a mountable ISO image file

How can I create an ISO image file of my Ubuntu system which I CAN INSTALL later ?  I used remastersys, but it created me only a live version. When I tried the install option on the generated ISO image file it acted as a live version whilst I need to install it on an other computer.


How to see what external IP the port is communication with - Python

I have a port scanner script that scans ports and tells you if they are open or closed. Is there a way I can see the IP addresses that the ports are communicating with? The script:  from threading import Thread import socket host = str(input('host > ')) from_port = int(input('start scan from port > ')) to_port = int(input('finish scan to port > ')) counting_open = [] counting_close = [] threads = []  def scan(port):     s = socket.socket()     result = s.connect_ex((str(host),port))     print(('checking ports > '+(str(port))))     if result == 0:         counting_open.append(port)         print((str(port))+' -> is open')         peer = s.getpeername()         print(peer)         s.close()     else:         counting_close.append(port)         #print((str(port))+' -> is closed')         s.close()  for i in range(from_port, to_port+1):     t = Thread(target=scan, args=(i,))     threads.append(t)     t.start()  [x.join() for x in threads]  print(counting_open)   EDIT: Just to be clear, I wasn't asking for the IP of the local host, that is inputted by the user. I was asking if there was a way to know which external public IP's are communicating with the host through the ports found out after the script is run.


Encoding categorical variables with lots of categories

I recently had to build a model for flight delay predictions. The data has multiple columns of categorical variables and some continuous variables.  For example: Airline, Arriving airport, Temperature, etc.  My natural instinct of encoding the categorical variables was to one-hot encode them, but resulted >2000 distinct features. So I tried to reduce the dimensions by    Including airports, airlines that appear the most often Run random forest on the categorical features to extract important features   and fit a model like xgboost afterwards. The model's performance is ok, but not good enough to be shipped out.   I suspect the way I have reduced the dimensions is destroying the underlying relationship of the features. So I wonder, are there dimension reduction techniques that can handle mixture of continuous and categorical variables? And in general, what are some rule-of-thumb in situations like these?


Wired connection icon is displayed instead of Wifi icon - Ubuntu 16.04

I am connected to a WiFi network but wired connection icon is shown:  Screen-shot of the problem:    I also can't see other available WiFi networks in order to connect to them.  Output for lspci -knn | grep Net -A2:  0c:00.0 Network controller [0280]: Broadcom Corporation BCM4312 802.11b/g LP-PHY [14e4:4315] (rev 01)     Subsystem: Dell Wireless 1397 WLAN Mini-Card [1028:000c]     Kernel driver in use: wl   What should I do?


Python get variable name instead of value

I need to get the variable name instead of the variable value. I have a situation like this: Type1 = 1 Type2 = 2  fields = [Type1, Type2] for field in fields:    value = field.__name__ #or something like     print(value)  Expected result is Type1  Type2  Ty for helping


To save myself some keystrokes, I tried to define an abbreviation for \begin{align} and \end{align}  \documentclass[reqno, 11pt]{article}  \usepackage{amsmath, amsfonts, mathtools, amsthm} \usepackage{fullpage}  \newcommand{\ba}{\begin{align*}} \newcommand{\ea}{\end{align*}}  \title{Article Template} \author{You}  \begin{document} \maketitle  \section*{3} \ba e=mc^2 \ea \end{document}   For some reason, the abbreviation for \begin{align} seems to work, but the abbreviation for \end{align} does not. I thought perhaps that \ea was already in use, but tweaking the name didn't change anything. Any ideas?


Why is there no beauty/cosmetics SE site?

Why is there no SE site dedicated to questions about beauty, cosmetics, skin care and related questions and answers?  There’s millions of different beauty products, but almost all information you can find on the subjects are sales pitches from various companies. This seems like a perfect opportunity for SE to serve a massive market.  There is a  discussing alternative SE sites, but it doesn’t explain why there is no dedicated beauty Q&A site.


I keep seeing a phrase like "BM fatigue" in hearthstone stream chats in twich. The context is that the streamer's opponent dies from fatigue and the whole chat says that phrase... So what does BM stand for?


remove header and footer from sideways figure page

I have a latex 'control' file that calls another file.  The control file produces a header and footer on each page.  There are some pages with a sidewaysfigure, that I wish to remove the header and footer from.  I was advised that I could do this using \thispagestyle{empty} in the sidewaysfigure environment, but the header and footer still appear.  Below are my files which give a minimum working example:  Control file:  \documentclass[12pt,twoside]{ociamthesis}  % default square logo   \usepackage[bottom=37mm,top=10mm,left=33mm,right=33mm]{geometry} \usepackage{natbib} \usepackage{calc} \usepackage{aas_macros} \usepackage{color} \usepackage{longtable} \usepackage{amsmath, amsthm, amssymb, amsfonts} \usepackage{fourier} % The Fourier font package. \usepackage{microtype} % Apparently this makes pdfs look nicer. \usepackage{graphicx} \usepackage{longtable} \usepackage{eucal}  \usepackage{hyperref}  \usepackage{multicol} \usepackage{nomencl} \usepackage{geometry} \usepackage{setspace} \usepackage{rotating} \usepackage{changepage}  \usepackage{subfigure} \usepackage{dcolumn} \usepackage{booktabs} \usepackage{xfrac} \usepackage{fancyhdr} \setlength{\parindent}{0pt} \usepackage[font={footnotesize}]{caption} \let\oldtabular\tabular \renewcommand{\tabular}{\footnotesize\oldtabular} \include{mymacros} \makenomenclature \renewcommand{\nomname}{List of Symbols} \renewcommand*{\nompreamble}{\begin{multicols}{2}} \renewcommand*{\nompostamble}{\end{multicols}} \setlength{\columnsep}{3em} \title{Test title} \abstracttitle{} \author{a.n.other}             %your name \DeclareMathSizes{12}{13}{8}{10}  % For size 12 text  \begin{document} \pagestyle{fancy} \fancyhf{} \fancyhead[LE,RO]{\leftmark} \fancyfoot[CE,CO]{\thepage} \baselineskip=24pt plus1pt % this looks about double-line \setcounter{secnumdepth}{3} \setcounter{tocdepth}{3} \pagenumbering{arabic} \newgeometry{bottom=4cm,top=4cm,left=3.2cm,right=3.2cm} \baselineskip=24pt plus1pt \doublespacing \include{test}  \end{document}   File with figure:  \chapter{Test Chapter} \ifpdf     \graphicspath{{Chapter3/Chapter3Figs/PNG/}{Chapter3/Chapter3Figs/PDF/}   {Chapter3/Chapter3Figs/}} \else     \graphicspath{{Chapter3/Chapter3Figs/EPS/}{Chapter3/Chapter3Figs/}} \fi  \begin{sidewaysfigure*}[] \thispagestyle{empty} \begin{center} \includegraphics[ width=200mm]{anything.png} \caption[]{Figure caption here.} \end{center} \end{sidewaysfigure*}


I am having a problem with uninstalling apps on Android 5.0 (Nexus 5). I am developing an Android app, so I debug/run the app directly on my device. For production, I exported the same app with my keystore, uninstalled the debug APK that I ran earlier, tried to install the signed APK, and I got this error:      An existing package by the same name with a conflicting signature is already installed.   Is it because the bytecodes are still in the ART runtime? Anyone has any idea how to solve this?


Error mounting /dev/sda5 at /media/shashank/New Volume: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000" "/dev/sda5" "/media/shashank/New Volume"' 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/sda5': 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   I'm getting this error whenever I'm trying to access the Local Disk


$x^5+x^2+1$ is irreducible in $\mathbb{Z}[x]$

Show that $h(x) = x^5 + x^2 +1$ is irreducible in $\mathbb{Z}[x]$.   I have tried applying Eisenstein's criterion to $h(x+1)$ but this didn't work How would I go about showing it is irreducible?


I try to pride myself on being fair and efficient when raising flags on SO and am trying to keep as high of a ratio for helpful:disputed(and now declined) flags as possible. I raised one today for a question as "off topic". It states that a moderator declined the flag, but then the question was closed as "off topic". How can a flag be declined, but the question closed for the exact reason that the flag was raised for?


How to left align and vertically align a image in a header and keep text in center of div horizontally

Im looking for help left aligning and vertically aligning a image in this header.    @import url("https://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700"); * {   box-sizing: border-box; }  img {   float: left;   vertical-align: middle; }  .header {   padding: 5px;   text-align: center;   background: #222222;   color: white;   font-size: 20px; }  h2 {   color: white; }  title {   color: white; }  body {   font-family: 'Open Sans', sans-serif;   background-color: #2C2C2C; }

This should be center

     Here is my code for the image (currently its left-aligned but i can't seem to align it vertically. And then it also moves my text to the right when the text should stay in center of div horizontally)  img {     float:left;     vertical-align: middle; }   I basically need the red image to stay the same size, i just need it to be left-aligned (maybe 50px from left) and be vertically aligned with the header div. But i also need the text to stay in the center of the div, vert and horz.


Visiting tourist attraction during transit at AMS

I am traveling to the USA on KLM. I have an 8-hour stopover at Amsterdam. I want to see tourist attractions in Amsterdam. I am an Indian national. Do I need a transit visa?


Neutron decay and electron anti neutrino $n\to p + e + \bar{\nu}_e$

Why do we need neutrino to explain neutron ? Is there any evidence regarding existence neutrinos in the context of $n\to p + e + \bar{\nu}_e$?


character degrees of finite simple groups: an elementary question

I have a simple question on characters of simple groups; stated as exercise in Isaacs' character theory book.  (2.3) Let $\chi$ be a character of $G$. If $\mathfrak{X}$ is a representation corresponding to $\chi$, define $\det\chi(x):=\det\mathfrak{X}(x)$. Show: $\det\chi$ is well-defined linear character of $G$.  This is an easy exercise; consider the next one.  (3.3) Show that no simple group can have irreducible character of degree 2. Hint: Problem 2.3 is relevant.  Question: My question is not about solution of (3.3) since I have solved it in some different way. I didn't click how (2.3) can be used for this?  Other way for (3.3): $|G|$ is divisible by $2$=degree of irreducible character. If $|G|=2.(odd)$ then it is well-known from basic group theory that $G$ can't be simple (Actually it is solvable). So $4$ should divide $|G|$. Consider subgroup $H$ of order $4$ in $G$. Let $\mathfrak{X}:G\rightarrow {\rm GL}_2(\mathbb{C})$ be irreducible with $G$ simple (non-abelian). We can show that some element $x\in H$, $x\neq 1$ goes to $\pm I$. So $Z(\chi)=\{g\in G: |\chi(g)|=\chi(1)\}$ is non-trivial normal subgroup. q.e.d.


My deck is a ramp deck. It has a lot of creatures under 3 Mana. It is a mono green deck with elves and hydras.


Currently, comments with about >35 upvotes have the same upvote-counter color as that of <5 upvotes (which is some shade of gray). Shouldn't more upvoted comments have a more prominent counter color like it's done on SO? Meta and workplace currently seem to follow this weird scheme.   I'm tagging this a bug. Please edit if you feel otherwise.


What is the origin of the word "goodbye"?

I've heard that goodbye comes from God be with you.  Is that true?  If so how did it become good?  Did goodbye always have the same meaning it has now?


Splitting polygon with line using ArcPy?

In looking at , it occurred to me that I am not sure how one would go about using geoprocessing tools in ArcGIS to split a polygon with a line programatically.  Manually, you would use the  or the , but how would you accomplish the same task using modelbuilder or python groprocessing scripting tools?  Right off the bat I think of all of the tools in the  like Union, Identity, etc, but those are all Polygon-Polygon tools, NOT Polygon-Line tools.  Even the  is Polygon-Polygon.  Any ideas?


Which SE site should I use to ask about big data courses?

Which Stack Exchange site should I use to ask about big data courses?  I want to get opinions on what free online courses I can enroll.


collection of all functions is a proper class

As the question states, we are to show that $C = \{ f : f \text{ is a function} \}$ is a proper class.  Assume for the sake of contradiction that $C$ is a set. Then consider the class function $\Phi$ which takes as input a function $f$ and spits out the set of inputs to $f$. So if $f : A \to B$ then $\Phi(f) = A$. By replacement schema, $\Phi[C]$ is a set. However, since $\{ S : S \text { is a set} \}$ is not a set, we have a contradiction.  Does this proof make sense?


How to reset a sum value bound to a textBlock?

Hi i have a TextBlock and its Text property is bound to a ViewModel property (Total tickets Price) i want to make a button that helps me reset both the data and the textBlock to 0.  i tried setting the Total to 0 but i encounter a StackOverflowException.  I am learning WPF so please bare my question if it is very novice!   TicketViewModel   public ObservableCollection<TicketModel> TicketsEnVente { get; set; }     public TicketViewModel()     {         TicketsEnVente = new ObservableCollection<TicketModel>();         TicketsEnVente.CollectionChanged += CollectionChanged;     }      private void CollectionChanged(object sender, NotifyCollectionChangedEventArgs e)     {         OnPropertyChanged("Total");     }       public float Total     {         get { return TicketsEnVente.Sum(x =>x.Prix); }         set         {             Total = value;             OnPropertyChanged("Total");         }      }       public event PropertyChangedEventHandler PropertyChanged;     private void OnPropertyChanged(string propertyName)     {         var handler = PropertyChanged;         if (handler != null)         {             handler(this, new PropertyChangedEventArgs(propertyName));         }     }   Xaml  <TextBlock x:Name="Total"  Text="{Binding Total}"/>


I'm having issues trying to extract values from object list, this is the flow:  button gets clicked click calls a callout function get response from response.getBody()  at this point, I have two options:  Use JSON2Apex, that for some reason always return: "Apex Type unsupported in JSON: Object  if (response.getStatusCode() == 200) {        //Where, TicketJson is JSON2Apex class        TicketJson ticketResponse = TicketJson.parse(response.getBody());        System.debug(ticketResponse);   Use JSON.deserializeUntyped(), this my favorite approach, but when I manage to reach the Object List that I need, I'm unable to get it's Object values as MAP  if (response.getStatusCode() == 200) {     Map<String, Object> obj = (Map<String, Object>) JSON.deserializeUntyped(response.getBody());     Object ticketTypeData = obj.get('ticket_group');     Map<String, Object> TicketData = (Map<String, Object>)ticketTypeData;     List<Object> Data = (List<Object>) TicketData.get('_data');  Any help is welcome. Best regards. JSON2Apex class public class TicketJson {  public Integer x_total {get;set;} // in json: _total public Event_template event_template {get;set;}  public Ticket_group ticket_group {get;set;}  public Ticket_type ticket_type {get;set;}   public class Ticket_group {     public Integer x_count {get;set;} // in json: _count     public List<Data_Z> x_data {get;set;} // in json: _data     public Integer x_total {get;set;} // in json: _total      public Ticket_group(JSONParser parser) {         while (parser.nextToken() != System.JSONToken.END_OBJECT) {             if (parser.getCurrentToken() == System.JSONToken.FIELD_NAME) {                 String text = parser.getText();                 if (parser.nextToken() != System.JSONToken.VALUE_NULL) {                     if (text == '_count') {                         x_count = parser.getIntegerValue();                     } else if (text == '_data') {                         x_data = arrayOfData_Z(parser);                     } else if (text == '_total') {                         x_total = parser.getIntegerValue();                     } else {                         System.debug(LoggingLevel.WARN, 'Ticket_group consuming unrecognized property: '+text);                         consumeObject(parser);                     }                 }             }         }     } }  JSON Example { "ticket_group": {     "_count": 21,     "_data": [       {         "_rank": 1,         "additional_info_spec": null,         "admission_end_offset": "2h",         "admission_start_offset": "-10m",         "capacity": -1,         "description": "",         "duration": null,         "duration_new": null,         "event_template_id": "4549294f-bc7a-1679-7797-90c5a9180c90",         "exclude_from_event_capacity": false,         "handler": "tickets",         "hidden_type": "public_browsable",         "id": "0e038e0e-24f2-5186-3c6c-adae2727d29d",         "max_redemptions": 1,         "max_tickets_per_order": 15,         "member_role_id": null,         "min_tickets_per_order": 1,         "name": "Free Admission by PNC",         "oversell_capacity": 0,         "portal_id": "605f5cc3-3892-4c6f-bed0-4910cecd82b0",         "sales_end_offset": null,         "sales_start_offset": null,         "sells_out_event": false,         "start_policy": "immediate"       }, }


I want to recreate the above images for an animation. How do I go about it? I tried using particle systems and smoke simulators but to no avail. Also, I want to model a sparkler, but more akin to a sparkling point or sphere that emits in all directions.


I'm trying to learn UNIX commands and I'm playing this game to learn and I'm really stuck at the moment. I'm in a server through ssh and the directory is full of random files and folders and the password for the next level is inside one of the files. I have been told that the file has the following attrbutes:   human-readable 1033 bytes non-executable   I am guessing that I should use the find command and I tried find ! -executable but that returned a load of files. The only human-readable help I can find in the manual or online is printing out the file sizes in human readable. So I'm a bit lost there?  Also I did try find ~ -size 1033b but that returned nothing. But when I tried find ~ -size -1033b it returned every file in the directory.


I am trying to import an FBX file from Unity into Blender. Does anybody know how to do that?