copy files from the parent location when I am inside a symbolically linked folder

Suppose I have created two folders in /tmp called parent and child. child contains a file called test-child.txt and parent contains a file called test-parent.txt. Now let's go inside the parent and create a symbolic link to the child. Next, go inside the child and try to copy the test-parent.txt from the parent. The bash completion works but the actual file copy fails --   cd /tmp pwd /tmp mkdir parent mkdir child touch child/test-child.txt ls child/ test-child.txt cd parent ln -sf ../child . touch test-parent.txt cd child cp ../test-parent.txt . cp: cannot stat ‘../test-parent.txt’: No such file or directory    why ??  Moreover, when I am inside child and if I say --  pwd /tmp/parent/child


I am using WinEdt for latex codes. After running the code, I check the result in a dvi file. Somebody told me that we can directly jump from dvi file to latex code window by double clicking on some line in dvi file. Can anybody help me how to make that setting. Thanks for the help.


Which is the best python module for command execution

I want to perform various Linux commands/operations using python script. I will be using the output, verifying/processing it and continue with some more commands execution in my script, may be remote execution also sometimes.  I have tried with both os and subprocess modules. The caveat here is, I am not able to combine both of them i.e. system calls or commands executed from one module does not affect "program/python" environment variables rather only considered by that particular module.  For. ex.   os.chdir(dirname) os.system(cmd) # p = subprocess.Popen(cmd)   Now, here changes from os.chdir are not useful for subprocess call. We have to stick with any one of them. If I use subprocess, I have to pass/create shell commands for it.    Added: cwd= is a solution for subprocess.Popen but every time I would have to pass option cwd as argument to future commands, if they all should be run from that dir    Is there a better way where we can use both of these modules together?  Or  Is there any other better module available for command executions.  Also I would like to know "Pros-Cons/Caveats" of both these modules.


Add new attribute in shapefile using Java: Geotools

I want to edit my shapefile by adding a new column "ID" and assign a value to it. I am trying to achieve this using Java Geotools. Here is the snippet code:   File inFile = new File("/abc".shp");          System.out.println("********* GEOTOOLS *************");          System.out.println("********* READ *************");         Map<String, Object> map = new HashMap<>();         map.put("url", inFile.toURI().toURL());          DataStore dataStore = DataStoreFinder.getDataStore(map);         String typeName = dataStore.getTypeNames()[0];          FeatureSource<SimpleFeatureType, SimpleFeature> source =             dataStore.getFeatureSource(typeName);         Filter filter = Filter.INCLUDE; // ECQL.toFilter("BBOX(THE_GEOM, 10,20,30,40)")      FeatureCollection<SimpleFeatureType, SimpleFeature> collection = source.getFeatures(filter);     try (FeatureIterator<SimpleFeature> features = collection.features()) {         while (features.hasNext()) {             SimpleFeature feature = features.next();              // Adding new column attribute ID              feature.setAttribute("id", "ADSAS2132312");              System.out.print(feature.getID());             System.out.print(": ");             System.out.println(feature.getDefaultGeometryProperty().getValue());         }     }   // Write the features to the shapefile  System.out.println("********* WRITE *************");  Transaction transaction = new DefaultTransaction("create");     // String typeName = newDataStore.getTypeNames()[0];     SimpleFeatureSource featureSource = newDataStore.getFeatureSource(typeName);      if (featureSource instanceof SimpleFeatureStore) {         SimpleFeatureStore featureStore = (SimpleFeatureStore) featureSource;          featureStore.setTransaction(transaction);         try {             featureStore.addFeatures(collection);             transaction.commit();          } catch (Exception problem) {             problem.printStackTrace();             transaction.rollback();          } finally {             transaction.close();         }         System.exit(0); // success!     } else {         System.out.println(typeName + " does not support read/write access");         System.exit(1);     } }   I am not able to write the ID column into shapefile. The reading works fine, but not the write part. I don't know much of Java, so its hard for me to figure out. I followed this reference:


How can I query the name of the current SQL Server database instance?

It is a bit of a "chicken or egg" kind of query, but can someone dreamup a query that can return the name of the current database instance in which the query executes? Believe me when I say I understand the paradox: why do you need to know the name of the database instance if you're already connected to execute the query? Auditing in a multi-database environment.  I've looked at all the @@ globals in Books Online. "SELECT @@servername" comes close, but I want the name of the database instance rather than the server.


I have string "the best, **i have". I want to replace ", **" to " ", my code  string str = "the best, **i have"; string a = str.replace(", \\**", " ");   but if string is "the best, she have money" then string replace to "the best she have money".  thanks!


Are there software developers in Starfleet?

Starfleet personell obviously uses a lot of software (e. g. LCARS) on their vessels, stations, handheld and wearable devices.  Thus, it would seem to me that there must be a lot of software engineers and developers in Starfleet, that develop and maintain all this software. However, none of the main characters calls themselves a software engineer.  Are there any known software engineers in Starfleet? Where are Starfleet's software engineers?


Well let's just say that this used to work fine then I started it up again today and now it doesn't....  pin is 1234 and no matter what I do it says it's not valid...  and yes I know that it doesn't check the third time. I have to fix that too:      import java.util.Scanner;      import java.util.Scanner;     public class ATM   {        public ATM()        {           Scanner console = new Scanner(System.in);            final String pin = "1234";           String userPin = "";           int pinCount = 1;           boolean error = false;            do{               System.out.print("Enter PIN: ");               userPin = console.nextLine();                if (pinCount == 3) {                   System.out.println("Bank account is blocked");                   break;               }               else if (userPin.length() < 4 || userPin.length() > 4) {                   error = true;                    pinCount += 1;               }               else if (isNumeric(userPin) && userPin == pin && pinCount < 3) {                   System.out.println("Your PIN is correct");                   break;               }               else{                   System.out.println("Your PIN is incorrect");                   error = true;                   pinCount += 1;               }           }while(error);                 }        public static boolean isNumeric(String str)         {            try             {               double d = Double.parseDouble(str);             }             catch(NumberFormatException nfe)             {               return false;             }             return true;           }   }   Don't ask me why I have it split:  public class ATMtest  {     public static void main(String[] args)      {         ATM atm = new ATM();     }  }   Any help would be greatly appreciated.


According to an  class feature, they can create pockets of safety that allow the chosen creatures to:     ...automatically succeed on their saving throws   against the spell, and they take no damage if they would normally take   half damage on a successful save.   I'm reading this to say:   If there's a save, those in these 'pockets' automatically make it. If making a save would result in half damage, the 'pockets' take no damage.   So, if I'm reading this correctly, why not just say that those in the 'pockets' take no damage if there's a save? Why all the extra words?  When would someone in a Sculpt Spell's 'pocket of safety' take damage?


Ubuntu 18.04 installation/upgrade freezes

I have been tirelessly trying to install Ubuntu-18.04 since the last 2 days, but every attempt turned out to be negative. Apart from other GUI based problems, which I am reporting here.  When mounting the ISO using the inbuilt Disk Image Mounter utility, and attempting the GUI base upgrade method (from within Ubuntu-16.04.1).  I get a pop-up saying      Oops! There was a problem running this software.   Unable to locate the program.   When mounting the ISO and attempting an upgrade through the terminal, the gksu sh /cdrom/cdromupgrade command leads to a blurred screen prompting for the password and then does nothing. Replacing gksu with sudo returns cdromupgrade command not found.  When booting from a live flash drive (created from the same ISO), the installation freezes at the network page after I enter the password for my wifi. When using a wired connection, the network page does not appear. The installation freezes at the page where it asks for Normal or Minimal installation. It even has options for Install Updates and install Third-Party Drivers etc (the 3rd page of the installation). I have tried different combinations of options, but the installation never proceeds further. Sometimes, it even freezes at the keyboard selection page (the 2nd page of the setup).  I have already verified the integrity of the downloaded ISO through a checksum verification. It is perfectly OK.  Current OS: Ubuntu-16.04.1 (latest kernel, as per apt-get) Machine   : MSI GV62 7RD


Error while creating OS X Mavericks bootable USB

I am running on OS X Mavericks GM and now that Mavericks has finally released, I downloaded it from App Store. I wanted to make a bootable USB of it so I followed  but when I tried to run the command for copying the files from .app to USB I got the following error  Ankurs-MacBook-Pro:~ Ankur$ sudo /Applications/Install\ OS\ X\ Mavericks.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ OS\ X\ Mavericks.app -nointeraction Password: sudo: /Applications/Install OS X Mavericks.app/Contents/Resources/createinstallmedia: command not found Ankurs-MacBook-Pro:~ Ankur$   What can I do to resolve this issue?  EDIT Using  I got the same error


Unable to upgrade 16.04 to Bionic Beaver 18.04?

I'm using 16.04. I ran apt update, apt upgrade, apt dist-upgrade, followed by do-release-upgrade.  I get this message:     Checking for a new Ubuntu release   No new release found.   I run lsb_release -a, and I'm still using 16.04.  Why is it not upgrading?


How can I get textures from Blender Render into Cycles?

If I made a model with lots of textures in Blender Render and then wanted to use the model in Cycles with all the textures in place, is there a way to export it from Blender Render with the texture data and then import it into Cycles?


I have visited tons of websites and watched dozens of Youtube videos, yet I can't find a solution to my problem.  I recently upgraded my laptop to Windows 10, and now it won't shutdown properly.  I have turned off fast startup and sleep mode from power options.  Here is what happens:   Start menu > Power > Shut down It exits windows and apparently turns off (black screen) The power lights are still on and my computer apparently doesn't shutdown.


I am an Indian national living and working in Wroclaw, Poland. I hold an Indian Passport valid upto June, 2024. I have a Polish residence permit i.e. Polish Blue card(Karta Pobytu) valid upto 2023 and a valid work permit till February, 2022. I plan to do the Tour Du Mont Blanc hike (Switzerland, France and Italy) in August, 2021 and my port of entry is Geneve, Switzerland. Will I need to apply for a Swiss Visa in order to enter Switzerland?


$a =\prod_{i = 1}^{r} p_{i}^{ai}$ with $a_{i} > 0$ for each $i$ is the canonical representation of $a$...

$a =\prod_{i = 1}^{r} p_{i}^{ai}$ with $a_{i} > 0$ for each $i$ is the canonical representation of $a$, deduce a formula for the sum of the squares of the positive divisors of $a$.  -The section we are currently studying involved purely numerical GCD and LCM questions along with some questions involving finding the number of positive divisors and sum of positive divisors. we did not although go over proofs such as this and I am a bit lost as to how to structure it. Any help is really appreciated.


How to get access to USB-storage from an application installed as Snap?

I have Ubuntu 18.04 LTS installed. I inserted USB-flash to my laptop. It was automounted to /media/username/DISKLABEL and opened in Nautilus. I can read and write objects to it. How can I access it from the application, which is installed as Snap? I tried snaps of the following applications such as gedit, arduino-mhall119, organize-my-files. All them show me errors if I navigate to /media folder:    Could not read the contents of Media Error opening the directory of '/media': permission denied  Output of active Snap  is below: $ snap interfaces  | grep -v ".*-$" Slot                             Plug :browser-support                 organize-my-files :core-support                    core:core-support-plug :cups-control                    gedit :desktop                         gedit,organize-my-files :desktop-legacy                  gedit,organize-my-files :gsettings                       gedit,organize-my-files :home                            arduino-mhall119,gedit,organize-my-files :network                         arduino-mhall119,gedit,organize-my-files,pulsemixer :opengl                          organize-my-files :pulseaudio                      organize-my-files,pulsemixer :unity7                          arduino-mhall119,gedit,organize-my-files :wayland                         gedit :x11                             arduino-mhall119,organize-my-files,pulsemixer gnome-3-26-1604:gnome-3-26-1604  gedit gtk-common-themes:gtk3-themes    gedit gtk-common-themes:icon-themes    gedit gtk-common-themes:sound-themes   gedit -                                arduino-mhall119:serial-port -                                gedit:avahi-observe -                                gedit:mount-observe  Updates:  connecting mount-observe to Gedit with snap connect gedit:mount-observe does not help. it seems that we need special Snap with support of  interface.


Let $p$ be a prime number. Prove there exists an integer $a$ such that $p\mid (a^2-a+3)$ iff there exists an integer $b$ such that $p\mid(b^2-b+25)$.

Let $p$ be a prime number. Prove that there exists an integer $a$ such that $p\mid(a^2-a+3)$ if and only if there exists an integer $b$ such that $p\mid(b^2-b+25)$.  I'm getting a bit confused with this problem. I was trying to show first the case $(\Longrightarrow)$ by factoring $a^2-a+3= (a-1)(a-3)+3a$, which would imply that $p\vert(a-1), p\vert(a-3)$ and $p\vert3a$. Looking at the last condition $p\vert3a$ it seems that this would only be true if $p=3$? Similarly for $(\Longleftarrow)$ the term $b^2-b+25$ factors as $(b-1)(b-25)+25b$ which would imply also that $p\mid(b-1), p\mid t(b-25)$ and $p\mid 25b$. Is this going anywhere or should I consider something else?


FFMPEG setting audio stream order when copying a stream

Curious if anyone can help me here,I have a video file with  stream 0 video Stream 1 DTS-HD audio  What I would like is to create a 2nd eac3 audio, this would be a copy of the DTS-HD track. It would look like this.  Stream 0 Video Stream 1 DTS-HD audio Stream 2 EAC3 audio (copy of stream 1)  What I get is  Stream 0 Video Stream 1 EAC3 audio (copy of stream 2) Stream 2 DTS-HD audio  it looks good, just wrong order of audio streams This is the command, can any offer any help. ffmpeg -i "input.mp4" -map 0:v -map 0:a -map 0:a -c:v copy -c:a:0 eac3 -ab:a:0 640k -c:a:1 copy -c:s copy "output.mp4"


I was writing on an document with a lot of pgfplots in it. Because of the memory limitation in LaTeX and in order to save some compiling time I tried out the externalize command. With most of the plots it perfectly worked out. But when I use the \ref command, namely \ref{<legendname>} the legend gets lost and instead there is a ??.  I think this question in a way is similar to  and . But no answer to these questions could solve my problem. Even the use of xr and zref packages showed no effect.  Am I just missing something?    MWE of the maindocument:  \documentclass{article} \usepackage{zref-user} \usepackage{xr-hyper} \usepackage{pgfplots} \usetikzlibrary{pgfplots.groupplots} \usepgfplotslibrary{external}  \tikzexternalize \externaldocument{part1}  \begin{document} \input{part1} \end{document}     With part1.tex looking like this:  \begin{tikzpicture}     \begin{groupplot}[       group style= {  columns=3,xlabels at=edge bottom,                 y descriptions at=edge left,                 horizontal sep=2cm,group name=plots},     width=0.4\textwidth,     xtick=data,     legend columns=3]     \nextgroupplot[xlabel=site 1,legend to name=grouplegend]     \addplot coordinates {(1,20)(2,23)(3,24.5)};     \addlegendentry {AaAaA,BbBbB,CcCcC}%     \nextgroupplot[xlabel=site 2]     \addplot coordinates {(1,14)(2,16)(3,17)};     \nextgroupplot[xlabel=site 3]     \addplot coordinates {(1,10)(2,11.5)(3,12.25)};     \end{groupplot}   % Legend     \node at (plots c2r1.north) [anchor=south] {\ref{grouplegend}}; \end{tikzpicture}     I'm writing with MikTeX 2.9 and the latest updates of the packages used. For compiling I used the command pdflatex -enable-write18 <file name>.  I hope the MWE is short enough ;) and some knows how to solve this problem.


Disjoint axis-aligned rectangles in the plane

Let $A$ be some set of axis-aligned rectangles in the plane, each pair of which has empty intersection. Prove that $A$ is a countable set. (An axis-aligned rectangle is a set of the form $$M = {\{\langle x,y \rangle \in \mathbb{R^2} | a \leq x \leq b , c \leq y \leq d}\}$$ for $a,b,c,d$ such that $a < b$ and $ c < d$.) Attempt: I tried using the density of the $\mathbb{Q}$ in $(\mathbb{R},\leq)$, but without any success.


Is it Possible to get list of commands i typed in dos prompt?

I would like to search my own CMD history. we could browse within the same session, you can browse it with the up and down arrow keys but what about the history of former CMD sessions?  Is there a file, a log the history gets written to ?if so is it there any way to find the history file?  in linux we could get bash history,is it there any similar way to get cmd history?  Note : i wish to view the command history even after the system shutdown ,but the duplicated  was related to keeping session history


Everyone's attacking me and I'm unable to pay my bounty

I started playing Skyrim on the PS3 and I killed my first dragon, learning 'Unrelenting Force'. Awesome! So I went into town, getting the letter from a friend. Bear in mind I had no autosaves and my last save was in Riverwood before meeting the Jarl. I accidentally used my shout and hit a citizen and two guards. They came after me and killed me. I cannot speak to them and they repeatedly kill me.   I went to Dragonsreach to start the Greybeards quest and they started attacking me. I picked a lock in sight, adding bounty, to see if paying it would clear my name, but the guards still kill me and don't demand bounty. What should I do?


Finding the matrix derivative of $X^{-1}$ with respect to $X$

Assume $X \in \mathbb{R^{n \times n}}$. I could not found particular formula to calculate the Derivative of $X^{-1}$ with respect to $X$, but I found a formula related to inverse of matrix as follows:  (1)$\frac{\partial}{\partial X} (a^TX^{-1}b) = -X^{-T}ab^TX^{-T} \quad a, b \in \mathbb{R}^n$   Can anyone give an insight on how derive a formula for derivative of $X^{-1}$ or formula (1) please?  Thank you in advance.   ======  This  shared and discussed the same topic and I was asked if the current post is redundant. I believe the way the problem stated and discussed in these two posts is different. Specifically, I was trying to learn a simple approach for finding the derivative of a matrix expression that contains inverse of a matrix. I believe the detailed answer and discussion in the post is helpful to other learners like me(with an elementary calculus and matrix understanding).


How do I redirect users to a predetermined url after login?

I have a view in Drupal 7 that lists PDF files. I want to keep track of the users that open that file; so I want that, if they are not logged in when they click, they are sent to the login/sign up page. I have already accomplished this using two views with different permissions, but the problem is that, after they sign up, they are redirected to the user profile page, as opposed to the PDF file.   How can I accomplish this?


After listening of some  of Leonard Susskind about black holes, he mentioned that conservation of information is one of the foundations of physics. After searching the web I cannot seem to find how we came up with this theory. Could someone explain how we know this is true and/or how did we come to this conclusion?


Find a function satisfying this condition

Be a continuous function $f: \mathbb{R} \to \mathbb{R}$ such that $f(x)f(f(x)) = 1$ and $f(2020) = 2019$. What is the value of $f(2018)$?  I am having a problem with this question. I already tried, through various attempts, to find the function explicitly which satisfy this condition and $f(0)$ different from $0$. But it leads me to nothing. I am really thinking there is no way to find an explicit function, so I would appreciate any solution to this problem (normally I would prefer a tip, but my ideas are exhausted).


How do I mount network drive as adminstrator WIndows 10 single user PC

On my PC when i got to mount a network drive it doesnt give me any option about whether to connect as normal user or administrator. This causes a problem later on when I try and access the drive via my IDE (Integrated Developement Environment) because the IDE runs with elevate adminstrator permissions and because the network drive was not mounted as administrator the application does not have permission to access the netork drive.  The problem is documented here      Workaround 2 says to just mount them from a bat file as adminstrator, but it gives me no instructions on how to do this. And I am confused is there no way to do this via the Windows UI when I mount the drive ?


Prevent to move emails from Spam folder PHP

I'm using   to send emails. But my emails goes in spam folder. Here is code that I'm using for this.  <?php  $apiKey = "xxxxx.xxxxxx.xxxxxx";   require("sendgrid-php/sendgrid-php.php");  $from = new SendGrid\Email("Example User", "azeemhaider77@gmail.com");  $subject = "Sending with SendGrid is Fun";  $to = new SendGrid\Email("Example User", "axeemhaider@gmail.com");  $content = new SendGrid\Content("text/plain", "and easy to do anywhere, even with PHP");  $mail = new SendGrid\Mail($from, $subject, $to, $content);   $sg = new \SendGrid($apiKey);  $response = $sg->client->mail()->send()->post($mail);  echo $response->statusCode(); var_dump($response->headers()); var_dump($response->body());   Why this is not working why these emails move into spam folder ?


This question is more of a question about the origin of a physical term  used in many contexts.  My question is about the linguistic or historical meaning of the word "moment".   Please don't provide the mathematical equations for the moment of inertia or the electric of magnetic dipole moment. My question is about the essence of the word.   I'm asking this question because as a non-native English speaker, I find it confusing as how did this word got to be used in the different contexts.


Inferring father/son relationships from Senior (Sr.) / Junior (Jr.) naming?

As in my other questions, I am investigating the spread of the Blackstone family name in early America. I came across the following tidbits and I would like to know if my interpretation is (likely to be) correct.  In the "All Kent County, Delaware Probate Records, 1680-1800" collection on ancestry.com, we have the following items.   In 1792, there was a will executed by Eben Blackiston, Sr. In 1794, there was a will executed by Ebenezer Blackiston, Jr. (and Abraham Redgrave).   My question is simple.  Is this enough evidence to reasonably conclude that there was a father/son combo of Ebenezer Blackistons living in Kent County, Delaware during the 1790s?  This would be an interesting result for me as my current research only has two people by this name in the state at the time, and none of them were part of a Jr./Sr. combination.  If this is not enough evidence, what are some other possibilities I need to consider?


Is it possible to add python util scripts as shared libraries to esri geoprocessing toolbox?

We have GP tools in GP toolbox OurServices.tbx and some of them are written in Python. We access them via geoprocessing services. However some Python functions are just copy-pasted from one GP function script to another.  The question is: Is it possible to embed a Python script, say our_utils.py, into the toolbox file (tbx) so in all our Python tools we are able to access shared functions like this:  import our_utils our_utils.sharedFunc()   We don't want pack shared functions as separate GP tools and then use ModelBuilder; this approach is too heavyweight for the issue.  Bounty edit 1 (2015-05-05)  I feel I have to give a bounty to someone participating here. At least three beautiful minds were attracted by it so I don't want my bounty going to dust.  I don't have ArcGIS at my fingerprints at the moment but I've spent 30 to 40 mins today checking if @mr.adams hacks can be extended to server installations (geoprocessing rest services). And, surprisingly, it worked with some additional hacks!  The hacks were: after packaging to .sd file (still a mystery for me how to pack more than one tool) rename that file to .zip and add libraries folders (import mylib => you must add mylib folder into zip). Then rename .zip back to .sd.  So my modest bounty goes to @mr.adams. I won't mark his answer as true answer; I still need to find a simpler way.  For pure Pythonistas @Farid_Cher gave an excellent .pyt template. I hope many copypasters will use it.


$L^1(μ)$ is finite dimensional if it is reflexive

If $(X,\Omega,\mu)$ is a $\sigma -$ finite measure space, show that if $L^1(X,\Omega,\mu)$ is reflexive then it is finite dimensional.  My attempt: I want to show there is a copy of $\ell^1$ in $L^1(X,\Omega,\mu)$.  For this suppose $L^1(X,\Omega,\mu)$ is infinite dimensional. there is a sequence $\{x_n\}$ of disjoint points of $X$. For every n, Put $\chi_n:=\chi(x_n)$ (characteristic function ). define $\phi:\ell^1\to L^1(X,\Omega,\mu)$ such that $\phi(\{a_n\})=\Sigma a_n \chi_n$. But I can not show that $\phi$ is an isometry.   I think I did not in a correct way. Please help me. Thanks in advance.


sudo error, is mode 0777, should be 0440

I am getting sudo errors, how do I fix this error?  sudo: /etc/sudoers is mode 0777, should be 0440 sudo: no valid sudoers sources found, quitting


how can I get the top 30 items in a list in C# and add it to a new list?  I have a list of about a 1000 items, and want to create new lists, of about 30 items each, and then somehow bind the lists to listbox


If Xavier kept taking his "medication" in the '70s, how we end up in the prologue scene of X3, acknowledging the events of DoFP?

In X-Men: DoFP a significant alteration of the timeline is occurred. For a moment let's ignore that alteration. We are in 1973 and Professor X keeps taking his medication for the next few years in order for him to walk -which has the side effect of losing his mental powers. How Xavier ends up in the '80s, when we see him in the beginning of X-Men 3 both walking and also having his mutant powers? Is that a continuity error or is it explained somehow? I know that Singer doesn't like the events of X-Men 3, therefore he acknowledges what happened in that movie in X-Men DoFP (for instance, Cyclops is absent from the future scenes because he was killed in X3).  Note to duplicate report: This question is trying to explain why Professor X is seen walking and having his mental powers at the beginning of X-Men 3 (early '80s), while in X-Men DoFP it is explicitly mentioned that the treatment for his spine has affected his powers. The linked question, though, is trying to explain why Xavier walks in early '80s after being shot from Magneto at the end of X-Men: First Class, ignoring the events of DoFP.


Find $\lim_{n\to\infty} \frac{1}{n} \int_0^\infty f(x) e^{-a_n x} dx$

If $\lim_{n\to\infty} n a_n = \alpha > 0$. Let $f(x)$ be real-valued continuous function defined on $[0,\infty)$ with \begin{equation} \lim_{x\to\infty} f(x) = k \end{equation} Evaluate \begin{equation} \lim_{n\to\infty} \frac{1}{n} \int_0^\infty f(x) e^{-a_n x} dx \end{equation}  I am totally lost on this. I "cheated" and pretend that $f(x) = k$. Then we get something like  $$(-k)\lim_{n\to\infty}\frac{1}{n a_n}\left( e^{-a_n \cdot\infty} - 1\right)$$  For the $\lim_{n\to\infty}\lim_{x\to\infty} \frac{e^{-a_n x}}{n a_n} $, since $\lim_{n\to\infty} n a_n = \alpha > 0$, at least we know that when $n$ is very big, $a_n$ should be positive. So this term is zero.  I don't know if my hand-waving argument is correct or not. In addition, what would be a better way of doing this?


I need to make a shortcut (.Lnk) that doesn't do anything when clicked. Is there a way to make such a shortcut?


Pull money out of old pension and start a stock trading account?

I have 10k in an old pension plan with a company I no longer work for. I have a 401k currently with my present employer and would like to take the 5k and start an stock trading account. Would this be wise?


Not sure if an URL () is regexp-expressible but what would be the most robust and formal regular expression of an URL?  There are many regexp dialects (perl, emacs lisp, php, python, etc), but any dialect is acceptable.


Solve $\frac {2 \tan x}{1-\tan^2x} = \sin^22x$

How would I solve this trigonometric equation?  $$\frac {2 \tan x}{1-\tan^2x} = \sin^22x$$  I got to this stage: $$\frac{\sin2x}{\cos2x} = \sin^22x$$  Is it a dead end?


Unable to change Excel cell font or shading colors.

6/15/2012 I'm having the same problem as a previous user's query (linked below) wherein I can't change the font or cell shading color on an Excel spreadsheet.  I've confirmed that the cell/spreadsheet is NOT locked and have checked the conditional formatting function to make sure it is not affecting the worksheet.  However, the problem remains.  As a further clue, when I select "more colors" from the cell shading or font drop-down arrow the dialog box shows that the "current" color is the one I have selected for the cell, but the cell is not reflecting that color. Is it possible that my Excel has been corrupted or am I just too obtuse to figure it out?  Any help will be GREATLY appreciated.


Detecting whether a file is locked by another process (or indeed the same process)

This is how I do it at the moment. I try to open the file with the FileShare set to none. So I want exclusive accesss to the file. If I can't get that then its a good bet somebody else has the file locked.  There's got to be a better and faster way. Any ideas?              try             {                 using (FileStream fs = File.Open(GetLockFilename(), FileMode.Open, FileAccess.ReadWrite, FileShare.None))                 {                     fs.Close();                 }                 // The file is not locked             }             catch (Exception)             {                 // The file is locked             }


Contours from NED in QGIS -- "oversampled" NED?

I have downloaded an IMG file of NED data from the USGS National Map elevation products site and I want to create a contour map using QGIS.   The problem is, the NED raster is "oversampled". There are far more pixels in the raster than the spatial resolution of the elevation data they represent. Therefore, when the contour tool in QGIS is used, the contours follow the edge of each block of similar pixels like so:     How can I achieve smooth contour lines?  I assume it's better to somehow resample the raster so that each elevation sample is represented by a single pixel and then rerun the contour tool rather than trying to smooth the jagged contours shown in the image above. Simply resampling the NED raster with a cubic spline is not effective because it only smooths the edges of each pixel group.


How to remove Ubuntu 15 and GRUB bootloader?

I want to uninstall Ubuntu from my laptop as well as GRUB bootloader. My laptop is currently dual-booting windows 10 and ubuntu.FYI I don't have any windows installation disk. Is there any way I can completely remove Ubuntu as well as grub bootloader? Thanks a lot for your feedback, I really appreciate it.


While I was playing a blood moon it was 12 am and before I could defeat the eoc he fled I just want the dryad. Plz help.  EDIT:been trying it for a while.


S.M.A.R.T. error on the drive, how to deal with 80 bad sector?

My system reported a S.M.A.R.T. error on the drive few days ago, Warning: Immediately back-up your data and replace your.  I backed up my data, and then tried to see what is the problem, using HDD regenerator 1.71 I found 80 bad sector at the first 5 Gigabyte of my drive ( 640 GB ), but when I choose scan an repair once it reach the 1st bad sector after 872 MB, the program stuck and regenerating ... and counting all sectors as bad sectors !  Is there a way to fix these sectors ? I'm having another windows at the last 50 GB of my drive and it's working normally, can I just delete the 1st partition (Make the 1st 5 GB unallocated) ? [the 1st partition is 50 GB and the windows on it is working good but slow and delays]


I'm trying to validate if result of this integral is equal to: $$ \frac{\pi*ch(a\frac{\pi}{2})}{ch(\pi))+1}) $$ I'm trying to resolve it using the reside in $\frac{\pi}{2}$ but couldn't find a resolution to compare. Any help is most appreciated.


Does an electron occupy a definite volume?

The proton is about 1.6–1.7 fm in diameter.  Quoted from Wikipedia. That is,The proton just occupies a definite volume or a definite space. But I can't find the radius of an electron in Wikipedia. Can I infer from this that Electron does not have a definite volume.  If Electron and the rest of sub-atomic particles don't have a definite volume, Then why their composition does so? Do the uncertainty in position of a particle restricts to decide the volume of the particle too? I just found a website which says that the electron is spherical!  A 10-year study has revealed that the electron is very spherical indeed. To be precise, the electron differs from being perfectly round by less than 0.000000000000000000000000001 cm. To put that in context; if an electron was the size of the solar system, it would be out from being perfectly round by less than the width of a human hair.  Source :  Is Volume in the quantum scale definable?


Deleted questions remain in the "Questions" listing

Very recently, a "question" containing profanity and an attack on all users of Stack Overflow was posted. The question was deleted (removed?) within 2 minutes of its posting. However, this did not immediately remove it from the listing of newest questions I viewed by clicking on the "Questions" button on the website.  Is there some kind of known delay in removing such a "question" from that listing? Or is this a bug? I imagine no one wants to have to view such a thing even briefly -- is there a technical challenge in immediately removing it from the list?  (FYI, the offensive material was visible in the title and display text in the list -- not only if you clicked on the question).


Cheaper alternative citation managers for Mendeley

I am using Mendeley for paper and citation manager. Mendeley have 2 thing I need:    index, searchable in all paper (title, author, content, ...) auto-lookup all information (title, author, conf, ...). If Mendeley get incorrectly, I can manually input the DOI number, then it correct itself. sync (including highlighter and note). Basicly, it work like you note, highlight the pdf and save on Dropbox.    However, my free space is going to fill up. Mendeley paid option is too much for me. I would rather pay for dropbox, but dropbox alone does not index, look up all useful info from my paper.   I am looking for alternative. It does not have to be one software do all thing, but combination of some software is good for me.  For example: I would like a software that index, info-lookup all paper (pdf file) in my local folder. Then I sync the folder with Dropbox (for cheaper storage price).


When does the Community user delete an answer?

This must've been answered before somewhere but I couldn't find a duplicate. I just noticed that the  had deleted and locked  (which has since been undeleted and unlocked by a staff member). I realize that there's a process (i.e., Roomba) for auto-deleting questions based on some criteria but I'm not aware of a similar process for auto-deleting answers (except spam and the like). So, my question is: When/why exactly does that happen?


Getting values to childComponents from Parent

I need get the calculate values in childComponent for count this values and show in the page. ChildComponent calculate 2 values (import and ADR) using the parameters that are sent and the input value "contPorcent".  Parent component  <aura:iteration items="{!v.familys}" var="item" indexVar="index"> <c:TCK_Opp_Contingencia_Rows family="{!item}" ContingMax="{!v.ContingMax}" rowIndex="{!index}"/> </aura:iteration>   Child component              <aura:attribute name="family" type="String"/> <aura:attribute name="rowIndex" type="String"/> <aura:attribute name="import" type="Decimal"/> <aura:attribute name="contPorcent" type="Decimal"/> <aura:attribute name="ADR" type="Decimal"/> <aura:attribute name="ContingMax" type="Decimal"/>  <aura:registerEvent name="ChangeContingRowEvt" type="c:TCK_ChangeContingRowEvt"/>   <tr class="slds-text-title_caps">     <td>         <ui:inputText class="slds-input" value="{!v.family}" disabled="true"/>     </td>     <td>         <ui:inputCurrency class="slds-input" value="{!v.import}" disabled="true"/>     </td>     <td>         <ui:inputNumber class="slds-input" value="{!v.contPorcent}" change="{!c.changeValue}" format="##%"/>     </td>     <td>         <ui:inputCurrency class="slds-input" value="{!v.ADR}" disabled="true"/>     </td> </tr>     I need show in parentComponent the sum of import and ADR. How can access to this calculate values??  Thanks


Should clicking on inbox items remove them from the new inbox items on the site?

After getting an inbox notification in the app, clicking on the notification de-highlights it in the app but does not acknowledge the notification on the site itself. Should it do so?


Matrices: left inverse is also right inverse?

If $A$ and $B$ are square matrices, and $AB=I$, then I think it is also true that $BA=I$. In fact,  says that this "follows from the associativity of matrix multiplication". I assume there's a nice simple one-line proof, but can't seem to find it. Nothing exotic, here -- assume that the matrices have finite size and their elements are real numbers. This isn't homework (if that matters to you). My last homework assignment was about 45 years ago.


Please explain me the meaning of "just so you know" and give some examples of  using this phrase.  What is the difference between "just so you know" and "for your information"?


$(12)$ and $(123\dots n)$ are generators of $S_n$

Show that $S_n$ is generated by the set $ \{ (12),(123\dots n) \} $.  I think I can see why this is true. My general plan is (1) to show that by applying various combinations of these two cycles you can get each transposition, and then (2) to show that each cycle is a product of transpositions.  I'm just having trouble on the first step. Any ideas?


A new study has shown that millions of pieces of junk floating in  space could be a big hazard for satellites orbiting Earth.   Is there an implicit 'which are' in front of floating in space? Why is 'which are'  not written?


I'm an entry level programmer so please be descriptive in your responses.  I am trying to use a Java API given as a .jar file in my C# .net application.  I don't know much Java, but this .jar file says "no main-class manifest attribute" when I try to run it so this means its a library?  This Java API also comes with a .java file which shows how to use the library but I cannot see the code inside the .jar.  I found  on this site, and one of the answers reads, "In simple way you can pack your java classes to jar file then In C# use Process class for execute and map IO stream."  I am semi-familiar with the Process class in C# but I don't understand how I could use it to use a Java library in my C# .net project.  Is this possible? or was that answer incorrect?  If so, could you explain how I can use the .jar library in my C# app.


Let $\mathbb{F}_2 \cong \mathbb{Z}/2\mathbb{Z}$. Is $x^4+x^2+1$ irreducible in $\mathbb{F}_2[x]$?

Let $\mathbb{F}_2 \cong \mathbb{Z}/2\mathbb{Z}$ denote the field of 2 elements   (a) Is $x^4+x^2+1$ irreducible in $\mathbb{F}_2[x]$? Find a complete factorization.  (b) How many irreducible polynomials of degree 4 are there in $\mathbb{F}_2[x]$?  For the first part of the problem, I just plug in $0$ and $1$ into $x^4+x^2+1$, and know that there is no root for that polynomial, so this polynomial is irreducible.   For the second part, I just list polynomials of degree 4 and having no zero in $\mathbb{F}_2[x]$, which are $x^4 + x+1, x^4 +x^2 +1, x^4 + x^3 +1$ , and $x^4 + x^3 +x^2 + x +1$.   But I am not sure about whether these approaches are right, so could you help me to figure it out? Thank you!


Does $(0,1]$ have Fixed-point property? I can't wrap my head around any examples of continous map $f:(0,1]\rightarrow(0,1]$ that doesn't have fixed point.


Can not Install php5.6-gd on Ubuntu 16.04.3 LTS

I try to install PHP GD on Ubuntu 16.04.3 LTS. Looks like I am missing some dependencies: root@Ubuntu-1604-xenial-64-minimal /etc/php/5.6/apache2 # apt-get install php5.6-gd Reading package lists... Done Building dependency tree        Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies:  linux-headers-4.15.0-60-generic : Depends: linux-headers-4.15.0-60 but it is not going to be installed  php5.6-gd : Depends: php-common (>= 1:73) but 1:55+ubuntu16.04.1+deb.sury.org+1 is to be installed          Depends: php5.6-common (= 5.6.40-30+ubuntu16.04.1+deb.sury.org+1) but 5.6.32-1+ubuntu16.04.1+deb.sury.org+1 is to be installed          Depends: libgd3 (>= 2.1.1) but it is not going to be installed          Depends: libxpm4 but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).  those are the packages I already have: root@Ubuntu-1604-xenial-64-minimal /etc/php/5.6/apache2 # dpkg --get-selections | grep php libapache2-mod-php5.6               install php-common                  install php5.6                      install php5.6-cli                  install php5.6-common               install php5.6-json                 install php5.6-mbstring             install php5.6-mcrypt               install php5.6-mysql                install php5.6-opcache              install php5.6-readline             install php5.6-xml                  install


Prove $a^ab^bc^c\ge (abc)^{\frac{a+b+c}3}$ for positive numbers.

Prove that the following inequality holds   $$a^a b^b c^c\ge (abc)^{\frac{a+b+c}{3}}$$   if $a,b,c$ are positive.   I'm not sure how to handle these kinds of powers. Are there any "famous" but not so advanced inequalities that involve this kinds of expressions?  I was trying to do something like ordering them without lost of generality because it's symmetric, but I get nowhere and I just make the thing even more complicated.  I'm asking for solution rather than hints since this is my first time encountering these kinds of problems.


Can't install wine (or ia32-libs) in Ubuntu 12.10 64 bit

As already pointed out , people seems to have issues with installing wine in the latest version of Ubuntu. I'm suspecting this only happens with 64 bit users.  For example, when trying to install wine or ia32-libs with apt-get, I get a lot of dependency errors. Doing a sudo apt-get -f install doesn't seem to do the trick, neither does using aptitude.  The errors I get is normally that the packages depend on some :i386 package, but installing those manually doesn't work either because they also have dependency issues (isn't APT supposed to do this automatically?!). I also downloaded  today and tried installing the .deb manually, but the dependency issues show up there as well. When running sudo apt-get -f install after trying to install the CrossOver .deb, apt-get wants to purge the following packages:   ia32-crossover intel-gpu-tools libdrm-nouveau2 libgl1-mesa-dri libva-x11-1 ubuntu-desktop vlc xorg xserver-xorg-video-ati xserver-xorg-video-intel xserver-xorg-video-modesetting xserver-xorg-video-openchrome xserver-xorg-video-radeon xserver-xorg-video-vmware   What I've tried so far (and didn't work):   Installing synaptic, reloading my repositories, searching for ia32 and installing ia32-libs. Using Ubuntu Software Center to install Wine and ia32-libs. Using apt-get and aptitude to install all the differend varieties of the wine packages, both with and without the :i386 and -amd64 suffixes in package names. Disabling the universe and multiverse repos, run a sudo apt-get update and then re-enable them again. Boot a newly downloaded Ubuntu 12.10 x64 live USB and try to install all the different packages there.   What I've tried so far (that actually DID work):   Installing 12.10 x64 in VirtualBox and installing wine1.4-amd64.   What I haven't tried (yet):   Boot a newly downloaded Ubuntu 12.10 x32 image and try to install wine there (I'm just guessing that will work). Reinstall Ubuntu. Throw my computer out a window.   wine  alexander@cosmo:~$ LANGUAGE=en_US sudo apt-get install wine Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  wine : Depends: wine1.5 but it is not going to be installed E: Unable to correct problems, you have held broken packages.   wine-1.4  alexander@cosmo:~$ sudo apt-get install wine1.4 (...) The following packages have unmet dependencies:  wine1.4 : Depends: wine1.4-i386 (= 1.4.1-0ubuntu1) E: Unable to correct problems, you have held broken packages.   ia32-libs  alexander@cosmo:~$ sudo apt-get install ia32-libs (...) The following packages have unmet dependencies:  ia32-libs : Depends: ia32-libs-multiarch E: Unable to correct problems, you have held broken packages.


Evaluate the sum for all positive integers n and m

$\suṃ̣_{k=m}^{n}  (-1)^k {n \choose k} {k \choose m}$ for all positive integers such that n > m.   My attempt, since k=m. I get $\suṃ̣_{k=m}^{n}  (-1)^k {n \choose k} {m \choose m} = \suṃ̣_{k=m}^{n}  (-1)^k {n \choose k}$.  What do I do from this step?


Getting different Answers with char and int operations

a = '3' and b = 011 public static void main(String[] args) { char a ='3'; int b  = 011; System.out.println(a + b); // prints 60 }  a = '3' and b = 11 public static void main(String[] args) { char a ='3'; int b  = 11; System.out.println(a + b); // prints 62 }   So what is happening when b = 11 and b = 011; Y is it giving different results ?? someone please explain


How can I perform the same action on all results of a label/search in Gmail?

When I search, for example, "something label:somelabel" I get 1000 results paginated by 25 (my settings). 'Select all' selects only the 25 on the current page, I would like to delete all of them (1000). How to do it? I guess I could specify a filter to perform this search, delete the messages and apply this filter, but I have many queries and making filters for all would be PITA.


I'm trying to get records of custom object where MultiSelectPicklist__c have names of publicgroups.  List<String> groupIds = new List<String>(); List<String> groupNames = new List<String>();  for(GroupMember gm :[SELECT Id,GroupId,UserOrGroupId FROM GroupMember WHERE UserOrGroupId = '0051U000006AkQy']){ groupIds.add(gm.GroupId); }  for(Group g :[SELECT ID,Name FROM Group WHERE Id IN :groupIds]){ groupNames.add(g.Name); }  for(CustObj__c cust : [Select Id, Name, MultiSelectPicklist__c FROM CustObj__c WHERE MultiSelectPicklist__c INCLUDES (:groupNames)] ){ somelogic }   Why it says 'Invalid bind expression type of List<'String> for column of type String' in developer console?  Even after converting List to string I'm still not able to get any record  for(GroupMember gm :[SELECT Id,GroupId,UserOrGroupId FROM GroupMember WHERE UserOrGroupId = :userIds[0]]){             groupIds.add(gm.GroupId);         }         for(Group g :[SELECT ID,Name FROM Group WHERE Id IN :groupIds]){             groupNames.add('\'' + g.Name + '\'');             //groupNames.add(g.Name);         }          String listtostring = String.join(groupnames, ',');          List<program__c> newlist = [SELECT Id, Name, MultiSelectPicklist__c FROM Program__c where MultiSelectPicklist__c INCLUDES (:listtostring) ];         system.debug('List of records---'+newlist);    I tried both   for(Group g :[SELECT ID,Name FROM Group WHERE Id IN :groupIds]){             ///groupNames.add('\'' + g.Name + '\'');             groupNames.add(g.Name);         }


Favouriting a question then leaving it quickly crashes the Android app

When you favourite a question, this little flydown notification appears saying "Post favorited":        (I don't know if it's actually called a flydown, but stick with me.)  The same kind of notification appears when you unfavourite a question.  Here's how to crash the app:   Visit a question. Favourite it. Hit Back to leave the question before that flydown notification appears. If you've got a little bit of network latency, that will give you a better opportunity to do it. Wait for the crash! It'll happen around the time that notification should have appeared, I think.   This isn't a problem with other notifications. For example, if I try to remove my upvote on that question then hit back, the error saying I can't remove my upvote will still appear even though I'm now on the questions list.  This occurs in app version 1.0.51 1.0.77 on a HTC One running Android 4.4.3.


$\lvert G\rvert=24$ not simple by a counting arguments

I want to prove that $\lvert G\rvert=24$, then it has a non-trivial normal subgroup.  Here is my attempt:  $n_2$: number of 2-Sylow subgroup; $n_3$: number of 3-Sylow subgroup.  $n_2\in\{1,3\},\:\:n_3\in\{1,4\}$ by Sylow's Theorem.  Suposse $n_2=3$, $n_3=4$.  $n_3=4$ means there are 4 Sylow subgroups of order 3, which means 8 elements of order 3.  $n_2=3$ means there are 3 Sylow subgroups of order 8. Suppose $P_1,P_2,P_3$. Using $\lvert P_1P_2\rvert\leq 24$, then $2<\lvert P_1\cap P_2\rvert <8$, so it is 4.  Suppose $P_1=\{1,a_1,\ldots,a_7\}$.  $\lvert P_1\cap P_2\rvert=4 \Longrightarrow P_2=\{1,a_1,a_2,a_3,b_1,b_2,b_3,b_4\}$ for example.  $\lvert P_1\cap P_3\rvert=4$ and $\lvert P_3\cap P_2\rvert=4$ $\Longrightarrow P_3=\{1,a_7,a_6,a_5,b_1,b_2,b_3,c\}$ for example.  Then we have 12 different elements of even order.  Adding we get 21 different elements.


Archival strategy for a table with 25 million records in SQL Server 2008 R2 Enterprise

I have a table that stores some audit information and currently has 25 million records. There is a process that inserts to this table every 30 minutes. This is historical data and is not used for any processing.  Since this table already has huge number of records so these 30 minutes inserts are taking considerable long time to complete.  According to me I should archive this huge table and only have a day or so data depending on the business conditions and move rest of the data to a archival table.  One possible strategy that I thought was renaming the existing table to something else and creating a new table with the same name as the old one. Can somebody comment on this strategy or suggest a better solution?


I'm designing a labeled circle and so far it's been a struggle of finding the perfect vertical position for a one letter label.  Currently I have two options.    Which one seems better centered?


Expected number of siblings, given the expectation of children in a family

The number of children in a family is a random variable $X$, where    $ \mathbb E(X) = 1.8 $ and $Var(X) = 0.36 $. If we randomly choose a child, which is the expected number of its siblings?      (it is given that the answer $> 0.8$)   Let the number of a child's siblings be a random variable $Y$, so we are looking for $ \mathbb E(Y) $.  If found that,  $$ \mathbb E(Y) = \sum_{k=0}^{\infty}k \; \mathbb P(Y=k) = \sum_{k=0}^{\infty}k \; \mathbb P(X=k+1) = $$ $$ = \sum_{k=0}^{\infty}k \; \mathbb P(X=k)-\sum_{k=0}^{\infty}\mathbb P(X=k) +\mathbb P(X=0)= \mathbb E(X)-1+\mathbb P(X=0) $$ which is indeed greater than $0.8$, if  $\; \mathbb P(X=0)>0$.  But, I don't know how to make use of the variance to find the final answer.  Thank you in advance


Installing particular versions when repo has newer versions?

Let's have a metapackage which depends on the following packages  Depends: A (=2),  B (=2),  C (=2)   Note the '=' - I want to install these particular versions, not the most recent ones.  Additionally:  B depends on A(>=1)  C depends on B(>=1) and A(>=1)  If the most recent versions of A,B,C in the repository are 2 then this works.  Since I have put version 3 of A and version 3 of B in the repo sudo apt-get install my-meta-package refuses to finish with the following info:  The following packages have unmet dependencies:   my-meta-package: Depends: B (= 2) but 3 is to be installed                    Depends: A (= 2) but 3 is to be installed   If I manually install versions 2 of A and B then the metapackage installs correctly, which strongly suggests that there is no hidden dependency on A3 or B3. This is not a solution for the problem as the metapackage is installed automatically on many machines.  QUESTION: What to do to make sudo apt-get install my-meta-package install versions 2,2,2?  Additionally, is there a way I could get an extended info what actually creates the need for version 3 of A and version 3 of B?


I traveled to Italy two times previously 10 years ago and applied for a tourist visa last year (2017). Unfortunately, my visa was rejected and objection raised on me that      Justification of attended stay and condition is not provided   All of my attached documents are perfect except that in my previous visits I didn't enter and leave Italy directly; rather I entered once from France and second from Amsterdam. I have paper evidence that I was in Italy previously.   I like to re-apply again this year kindly guide me.


Installing crossvc is giving broken packages error

I am having Ubuntu 14.04 LTS. While trying to install crossvc, I am getting broken package error.  I tried to find solutions and tried all the suggested steps in different posts. But no success.   LOGS for sudo apt-get install crossvc  Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  crossvc : Depends: libqt3-mt (>= 3:3.3.8-b) but it is not installable E: Unable to correct problems, you have held broken packages.  LOGS for sudo aptitude install crossvc  The following NEW packages will be installed:   crossvc{b} libfam0{a}  0 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 1300 kB of archives. After unpacking 4048 kB will be used. The following packages have unmet dependencies:  crossvc : Depends: libqt3-mt (>= 3:3.3.8-b) which is a virtual package. The following actions will resolve these dependencies:       Keep the following packages at their current version: 1)     crossvc [Not Installed]                                Accept this solution? [Y/n/q/?] n  *** No more solutions available ***  The following actions will resolve these dependencies:       Keep the following packages at their current version: 1)     crossvc [Not Installed]                                Accept this solution? [Y/n/q/?]   LOGS when installing using Ubuntu Software Center  Package dependencies cannot be resolved  This error could be caused by required additional software packages which are missing or not installable. Furthermore there could be a conflict between software packages which are not allowed to be installed at the same time.  Details: The following packages have unmet dependencies:  crossvc: Depends: libc6 (>= 2.4) but 2.19-0ubuntu6 is to be installed          Depends: libgcc1 (>= 1:4.1.1) but 1:4.9-20140406-0ubuntu1 is to be installed          Depends: libqt3-mt (>= 3:3.3.8-b) but it is not going to be installed          Depends: libstdc++6 (>= 4.2.1) but 4.8.2-19ubuntu1 is to be installed  Other option tried  Even I tried with doing the below for resolving broken package [referred from different posts] but no success.  sudo dpkg --configure -a sudo apt-get clean && sudo apt-get update dpkg --get-selections | grep hold [ no package listed ]


Why is asking a question on "best practice" a bad thing?

I've written a few questions on Stack Overflow before that have been closed due to being "not constructive" or "not a real question".  Now, after scanning the FAQ for the site a few times, I understand that my questions were indeed closed for good reason.  However, even after reading the FAQ, I still don't understand why a question of "what's the best practice here?" is a bad thing.  I feel as though if you properly explain your situation as thoroughly as possible, then it shouldn't be a bad question at all.  Questions like "what's the best language?" or "which framework should I use?" are indeed bad questions initially, but I feel if you specify in the post (or preferably in the title itself) what the context is, shouldn't that be deserving of some kind of an answer?  In  I asked what would be "best practice", and naturally my question was closed.  So I read the FAQ and learned how to make a more constructive question, of which I've now re-edited in an attempt to be less vague.  I understand the desire to avoid debate and lengthy discussion over a question, but I also feel as though sometimes there are certain questions which should be asked if proper context is given.  Why is a question over "best practice" always a bad question to ask?


"-bash: /usr/bin/rename: Argument list too long"

I would like to rename files within each sub-directory by adding the name of the sub-directory. Following the answer from , I tried:  rename  's/(.*)\//$1\/$1_/' */*   However for lots of sub-directories it doesn't work. I have 13,000 sub-directories each containing about 300 files. I get  -bash: /usr/bin/rename:  Argument list too long   I tried:  ls | xargs rename 's/(.*)\//$1\/$1_/' */* find . -maxdepth 1 -type f -print0 | xargs rename 's/(.*)\//$1\/$1_/' */*   Both give the same error:  -bash: /usr/bin/xargs:  Argument list too long   EDIT  xargs -L  rename 's/(.*)\//$1\/$1_/' */* xargs -L1  rename 's/(.*)\//$1\/$1_/' */*   Same error:  -bash: /usr/bin/xargs:  Argument list too long


Function can see variables declared outside of there scope

I wonder why the function can see the variables "a" and "b" even though they are declared and defined outside of the function scope?  function whichOneGreater() {   a > b ? console.log("a: ", a) : console.log("b: ", b); }  var a = 3/4; var b = 4/9;  whichOneGreater()   if I change the variable name from a to c  function whichOneGreater() {   a > b ? console.log("a: ", a) : console.log("b: ", b); }  var c = 3/4; var b = 4/9;  whichOneGreater()   then the error happens  script.js:2 Uncaught ReferenceError: a is not defined     at whichOneGreater (script.js:2)     at script.js:8   Edit: I found an article that answers my question well


Is it possible to make the shutter speed slower than 30 seconds on the Canon 4000D?

I have a Canon 4000D and I would like to take some long exposure photography. It only allows shutter speeds up to 30 seconds and I would prefer to have the ability to take shots that are exposed for 1 minute or more. Is it possible? I'm OK with using 3rd party software like CHDK if I have to.


End of life PHP 7.0 and Ubuntu 16.04 LTS

The end of life of PHP 7.0 is planned for December 3, 2018 but Ubuntu's support for version 16.04 LTS ends in 2021.  The question is, what happens to PHP 7.0 from December? Does Canonical assume updates until 2021? If a security bug is discovered, for example in 2019, does it remain unpatched?  Thank you very much.


Does vertical-align:middle work with radio buttons and images?

I have the following HTML ... <form>
                                      <input type="radio" id="radio0" name="choice" >Text1

                                      <input type="radio" id="radio1" name="choice" >Text2

                                      <input type="radio" id="radio2" name="choice" >Text3

                                      <input type="radio" id="radio3" name="choice" >Text4
      ...  I would like everything in the row (the image and radio button) to be centered.  So I tried this CSS .choiceRow {     vertical-align:middle;     text-align:center; }   .checkmark {     vertical-align:middle;      text-align:center; }  but this doesn't seem to be centering the elements ...  How do I center elements using CSS vertically in the middle of a row?


Visual Studio 2008 stopped processing "find all"

Suddenly, Visual Studio 2008 doesn't execute "find all" (Ctrl + Alt + F) for the solution correctly. This happened two days ago in the office and now on the computer at home.  I'm looking for a method, which is definitely declared in code, but Visual Studio 2008 outputs in Find Results window:  Find all "wlOutFile", Subfolders, Find Results 2, "Entire Solution", "*.*"   No files were found to look in.   Find was stopped in progress.   The options looks like this:


For $X_1, \ldots, X_n$ iid from a $Unif(0,\theta)$ distribution, finding $E(X_1|X_{(n)})$?

Let $X_1, \ldots, X_n$ iid from a $Unif(0,\theta)$ distribution, and let $X_{(n)}$ be the $n$th order statistic, that is, the maximum of $X_1, \ldots, X_n$. I would like to find $E(X_1|X_{(n)})$. I have that when $X_{(n)}=t$, $X_1=t$ with probability $\frac{1}{n}$, and that with probability $\frac{n-1}{n}$, $X_1$ appears to be uniform on $(0,t)$ (not sure why). I am unable to translate these into a functional form. It seems like:  \begin{align} E(X_1|X_{(n)}=t) &= E(X_1=t|X_{(n)}=t)P(X_1=t)+E(X_1\in (0,t)|X_{(n)}=t)P(X_1\in (0,t))\\ &= t\cdot\frac{1}{n}+ \int_0^{t}x\ f(x|X_{(n)}=t)dx \end{align}  But I am unsure why it is that with probability $\frac{n-1}{n}$, $X_1$ appears to be uniform on $(0,t)$ and if the integral approach even makes sense?


Why is quadratic integer ring defined in that way?

Quadratic integer ring $\mathcal{O}$ is defined by \begin{equation}    \mathcal{O}=\begin{cases}       \mathbb{Z}[\sqrt{D}] & \text{if}\ D=2,3\ \pmod 4\\       \mathbb{Z}\left[\frac{1+\sqrt{D}}{2}\right]\  & \text{if}\ D=1\pmod 4    \end{cases} \end{equation} where $D$ is square-free.   I understand $\mathbb{Z}\left[\frac{1+\sqrt{D}}{2}\right]$ is not closed under multiplication if $D=2,3\pmod 4$. But still, isn't it more natural to define $\mathcal{O}=\mathbb{Z}[\sqrt{D}]$ for all square-free $D$? (in that case, it really seems like 'quadratic integer') I wonder what is the motivation of this definition.


I've built a wooden house and decided that, with the proper precautions, I would like a fireplace. I built a stone-brick-and-glass cage around a piece of netherrack, but when I lit it, the fire still spread to the rest of the house. I've replaced the burnt part of the house, and I have a piece of glowstone in the fireplace, but I would still like to have actual fire in my fireplace. I you tell me where fire can spread, I can probably figure out how to aesthetically keep it from spreading, or else scrap the idea. Any ideas?


Social groups. How to get notification when a friend asks a question?

Ideally, I would like to be able to add people as friends (with their approval). So that when they ask a question, I get a notification.  How is this useful? I have to exchange e-mails with co-workers about C++ questions. And often I need to make a post on SO and send them a link. It would be more user-friendly to just add friends and avoid e-mails.   The only disadvantage of it that I see is that users will boost their friends' ratings faster than average, which makes it unfair. The advantage for the community is that more users will use SO.  One hack (or short term solution) would be to create a tag with the name of a group and all members will rss to that tag.


How can I make the preprocessor insert linebreaks into the macro expansion result?

With C/C++ macros it's quite easy to generated long constructs automatically. For example, if I want a huge set of methods to not ever throw exceptions (a must for COM-exposed methods) I can do something like this:  #define BEGIN_COM_METHOD\     try{  #define END_COM_METHOD\     return S_OK;\     } catch( exception& ) {\         // set IErrorInfo here\         return E_FAIL;\     }   to make such macros manageable one can use "\" character to make the macro definition multiline and more readable.  The problem is sometimes code with such constructs will not compile - something will not expand as expected and invalid code will be present to the compiler. Compiler usually have "generate preprocessed file" option to show the developer the preprocessing result. But in the preprocessed file the macro is expanded into one line and the result is barely readable.  Is it possible to make the preprocessor to keep the linebreaks present in the macro definition?


Convergence of $\sum_{n=1}^\infty \frac{\sin nx}{n}$ for $x \in [0,\pi]$.

So I came across this series  $\sum_{n=1}^\infty \frac{\sin nx}{n}$ for $x \in [0,\pi]$. The problem is to find all $x$ for which the series is uniformly convergent. Now, I am struggling to answer that question. My understanding was that $0$ and $\pi$ are the only points. But I cannot prove it, can someone please give me any ideas/hints?  Thank you


The number of different ways to choose $k$ out of $n$ unique items:   Without repetition and without order-significance: $\binom{n}{k}=\frac{n!}{k!(n-k)!}$ Without repetition and with order-significance: $\binom{n}{k}\times k!=\frac{n!}{(n-k)!}$ With repetition and with order-significance: $n^k$ With repetition and without order-significance: $?$   Thank you!


Where does this proof that $1 = 2$ go wrong? (Expressing $x^2=\sum_{n=1}^xx$ and differentiating)

I saw a fake proof using the power rule to show that $1 = 2$, thus disproving the power rule. It is obviously wrong but I can't spot the error. It goes something like this: $$\frac{d}{dx}x^2 = 2x \\ x^2 = x\times x = \sum_{n = 1}^{x} x \\ \frac{d}{dx}x^2 = \frac{d}{dx}\sum_{n = 1}^{x} x = \sum_{n = 1}^{x} 1 = x \\ \therefore x = 2x \implies 1 = 2 $$ Where's the issue here? It seems to be something on the $3^{\text{rd}}$ line (which I know also contains more than any other line; I'm not versed in stating proofs), but I can't see the contradiction.


Dual-Boot with windows 7, ubuntu won't boot

I am new to linux and have been trying for a day now to get it installed, which i have, but it will not boot. When I turn on my pc, it boots straight to windows. I'm not sure what to do to fix this. I have tried using boot repair disk and this is what it came up with.  .  Any and all help would be greatly appreciated.  Edit: I installed ubuntu 15.04


Incompatibility with french option in babel after last upgrade of Texlive

After upgrading just now my TexLive with TexUtility, I got an incompatibility with french in babel  Here is my MWE  \documentclass[11pt,a4paper,oneside]{amsart} \usepackage[frenchb]{babel} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \begin{document} c'est du français \end{document}   It seems the problem comes from the installation of the e-french package instead of the frenchle one, but I do not know how to stop TexUtility doing its stuff. The only quick solution I found was to reinstall the MacTex 2015 installation and not upgrading it after. Any idea how to do better ?


How can you set various words in your lstlisting to various text colors?  For instance, I want the word "fail" to appear in red and the word "pass" in green.   I have the feeling there should be some easy escape possibility!?  What did not work  I tried using the parameter   escapeinside={(*@}{@*)}   and then within the lstlisting  (*@\color{red}@*) fail (*@\color{black}@*)   But this has no effect.  Therefore, I've tried   $\textcolor{red}{\lstinline!fail!}$   but listings does not like nested lstinline within lstlistings.  Complex solution  a not quite suitable solution is described in : it is intended for one color only, so I would have to add something like  moredelim=**[is][\color{red}]{@}{@},   for every color I use :(


Use default permalink for custom post (and no slug)

I'v created a custom post type with this code :  register_post_type('Villes',     array(         'labels' => array(             'name' => __('Villes'),             'singular_name' => __('Villes'),         ),                     'public'      => true,         'has_archive' => true,         'rewrite'     => array('slug' => 'villes'),         'taxonomies'  => array( 'category' )      ) );   As you've noticed I've activated Categories for the post. This is the structure on my categories :    cat1   sub1 sub2  cat2   I've created a custom post in the sub2 category, what should I do so the permalink of the post is mysite.com/cat1/sub2/post-slug (and not mysite.com/villes/post-slug)


How to test for specific potions in inventories?

I was helping my sister with her server commands when I got stumped on this. I want to find if the player has a specific potion with this:  /testfor @a[team=Sandwings] {Inventory:[{id:"minecraft:splash_potion"}]}   and this:  {Potion:"minecraft:poison"}   But I don't know how to combine them.


so i was installing ubuntu 16.04 on my sole HDD on my laptop, and during the process i erased ( :-/ ) the EFI windows Partition ( i think not too sure )  so the ubuntu install continue without any mistake but when i reload my laptop my windows boot dissapear  but i can still access to my windows part ( with all my data and all, i have 2 recover partition of windows and 2 more but still can't boot on windows but no problems for ubuntu )   hope you can help me :)  PS : i already ask windows but the told me i need to contact linux/ubuntu ?


To get the notification about the BlackBerry questions tagset

How can I add some new tag set in my Stack Overflow account to get notification, if a new question is asked by a user for that particular tag set?


Minimal Sufficient Statistic for location family

In Casella & Berger Statistical Inference,in exercise 6.8, we're asked to prove that, for any distribution belonging to the location family, the order statistics are minimal sufficient.  How does one prove this? I have no idea on how to tackle this exercise.  Any help would be appreciated.


Ring of formal power series finitely generated as algebra?

I'm asked if the ring of formal power series is finitely generated as a $K$-algebra. Intuition says no, but I don't know where to start. Any hint or suggestion?


Is a matrix with $1$s in the diagonal and off-diagonal entries with absolute value less than $1$ invertible?

I ran into this problem recently.  If $A$ is a $n\times n$ matrix with $1$s in the diagonal and all off diagonal entries have absolute value less than $1$, is $A$ invertible?  It it definitely true for a $2\times 2$ matrix and seems to be true for larger matrices, just by trying to compute the determinant, however, my expression seems to get messy, and I was wondering if there was a easier method to solve this. If not, direction on how to argue from definition of determinant would be appreciated. Although I can see that an argument might come from there, I am having problems with that too.  Thank you for any help, and any help is much appreciated.


FOR, IF and SET all are not working together

SETLOCAL EnableDelayedExpansion  FOR %%A IN (1 2 3) DO (   IF %%A EQU 1 (   SET CHOICE1=ABC   ECHO CHOICE1=%CHOICE1%   )   )     Output:  CHOICE1=   Why is CHOICE1 not getting set?


Tabular error: \begin{tabular}{ c | c | c }

I can't understand this error message:  ERROR: Class memoir Error: .  --- TeX said ---  See the memoir class documentation for explanation. Type  H <return>  for immediate help.  ...                                                l.41 \begin{tabular}{ c | c | c | c }  --- HELP --- From the .log file...  Try typing  <return>  to proceed. If that doesn't work, type  X <return>  to quit.   Here's a MWE:  \documentclass{memoir} \renewcommand{\and}{\wedge} \renewcommand{\or}{\vee} \begin{document} \begin{tabular}{ c | c | c | c } $(x_1\or x_2)$ & $(\bar{x_2} \or c)$ & $(x_2\or x_3)$ & $(x_3\or x_4)$ \\ \hline  0000 &  0100 &  0000 &  0000 \\  0001 &  0101 &  0001 &  0100 \\  0010 &  1100 &  1000 &  1000 \\  0011 &  1101 &  1001 &  1100  \end{tabular} \end{document}


Started thawing but can't finish cooking meat: Time Sensitive

I took a large pack of ground beef out of the freezer and it has been in the fridge for no more than 10 hours. There are still ice crystals on the meat. I'm on call and turns out I won't have the opportunity to cook it until next week (the works in another city). I guess I have two options   put the meat back in the freezer and refreeze thaw out the meat, quickly cook it, and put the left overs in the fridge.   Any advice?


He invited Mr. Smith to the party that day.  He had invited Mr. Smith to the party that day.  Please tell me the difference and which of the two is grammatical?


'firefox-locale-*' missing when installing something?

FIXED WITH THIS COMMAND: sudo apt purge firefox-locale- *  I deleted Firefox and then I deleted everything that had mozilla and firefox on my system and the following text appears everytime I "sudo apt get install something". How do I fix the problem?   package has no files currently installed dpkg: warning: files list file for package 'firefox-locale-ru' missing; assuming  package has no files currently installed dpkg: warning: files list file for package 'firefox-locale-zh-hant' missing; ass uming package has no files currently installed dpkg: warning: files list file for package 'firefox-locale-en' missing; assuming  package has no files currently installed dpkg: warning: files list file for package 'firefox-locale-es' missing; assuming  package has no files currently installed dpkg: warning: files list file for package 'firefox-locale-pt' missing; assuming  package has no files currently installed dpkg: warning: files list file for package 'firefox-locale-zh-hans' missing; ass uming package has no files currently installed dpkg: warning: files list file for package 'firefox-locale-de' missing; assuming  package has no files currently installed dpkg: warning: files list file for package 'firefox-locale-ja' missing; assuming  package has no files currently installed dpkg: warning: files list file for package 'firefox-locale-ar' missing; assuming  package has no files currently installed dpkg: warning: files list file for package 'firefox-locale-it' missing; assuming  package has no files currently installed```


Is there any public bank of clipart images in Tikz / PSTrics, much like those found in tools like Visio?


Getting notifications on specific question

I know if i answer any question and someone put comment on my answer then i get notifications or if i comment on anything and in reply i am tagged then also i get notifications.  Is this possible to get all notifications related to a question or to just start following a question. What i mean to say is if i like a question and want to keep track of all activities going on that question is this possible.   I am not able to get any option.


Is there any way to shrink an exFAT partition?   The windows disk manager has the "Shrink" option greyed out.


How to do parametrize the table name in a PDO statement?

Problem  I get a PDO syntax error when running a PDO statement where the table name is parametrized, like in  $sql = 'DELETE FROM :table_name'; $query = $this->db->prepare($sql); $query->execute(array(':table_name' => "mytable"));   I could reproduce the problem with SELECT etc., so it's a general issue. I tried to write it with backticks, with database name in front of it, a combination of both etc, nothing works.  Question  How to do this ?


Running sudo python and python as SU use two different versions

I understand sudo doesn't run a command as the current user, but I don't understand why the two following commands produce differing outputs:  Case 1:  user@.../folder$ sudo python Python 2.7.17 (default, Nov  7 2019, 10:07:09) [GCC 7.4.0] on linux2 Type "help", "copyright", "credits" or "license" for more information.   Case 2:  user@.../folder$ sudo su (base) root@.../folder# python Python 3.7.6 (default, Jan  8 2020, 19:59:22) [GCC 7.3.0] :: Anaconda, Inc. on linux Type "help", "copyright", "credits" or "license" for more information.


Given any path $\phi$, we can find an injective path $\psi$ with the same endpoints as $\phi$

Suppose $\phi: [0,1] \to \mathbb R^n$ is a continuous map. Does there exist continuous, injective $\psi : [0,1] \to \mathbb R^n$ such that $\psi(0) = \phi(0)$ and $\psi(1) = \phi(1)$ and $Im(\psi) \subset Im(\phi)$?


NOTE: This isn't a duplicate of . The question specifically says "what caused Voldemort's soul to split off, it didn't explain why "the curse backfired".   J.K. Rowling stated in the 7th book that the reason why Harry contains a bit of Voldemort’s soul is because when Lily cast herself to block Harry, the spell backfired and a piece of Voldemort’s soul was transferred to Harry. I'm a bit confused of why the curse backfired.  I do not remember if it was stated in the other books, I would be glad to receive canon.


How do you remove duplicates from a list whilst preserving order?

Is there a built-in that removes duplicates from list in Python, whilst preserving order? I know that I can use a set to remove duplicates, but that destroys the original order. I also know that I can roll my own like this:  def uniq(input):   output = []   for x in input:     if x not in output:       output.append(x)   return output   (Thanks to  for that .)  But I'd like to avail myself of a built-in or a more Pythonic idiom if possible.  Related question:


Cannot connect to my hostel WPA2-EAP wifi network

I'm running Ubuntu 18.04.1 x86_64  My wifi card is Broadcom Limited BCM43142 802.11b/g/n  I got my wifi working by installing bcmwl-kernel-source   I can connect to other networks on ubuntu (WPA2-PSK most of the time)  I can connect to the network in question on my dual booted Windows 10.  I have tried a number of solutions but one of them have helped me the slightest.  I managed to fix this same problem on some other version of Ubuntu by simply altering my /etc/NetworkManager/system-connections/ file.  I have installed a couple of other tools like wicd but they haven't done any good, they might need to be removed, but I'm keeping them until the need arises.   I'm on the same machine on another network so I can send outputs, feel free to ask for them or any other stuff.  Thank you for any help.  Some extra info: On windows 10 and on other ubuntu machines with different network cards, this network does not require a ca certificate. There are multiple routers on each floor of my hostel, (repeaters if you will).


Can a block cipher encrypt the message to itself (plaintext equal to ciphertext)

The result of the cipher should be indistinguishable from random, but can it happen that cipher produces the ciphertext that is equal to the plaintext as it also lies in the corresponding space? I guess it's just the probability is extremely low, probably equal to guessing the clear text on the first attempt, but just out of curiosity: is it theoretically possible and/or happened in real life?  The same goes to other types of cipher and e.g. hash function on small inputs.


Which Standard Visitor visa should I apply for?

My husband is in UK on a 3-month Business visa. Now I want to apply for a visa to visit him for 7-10 days.  What visa should I apply for?  I don't have a marriage certificate but do have an affidavit to prove we are married. Also the trip will be sponsored by myself. Stay will be at his accommodation currently.  Should I book tickets before the visa, will that make any difference to the decision?


Very short short-story of a near-future with advertisments on everything, even toilet paper

Very short short-story of a near future with advertisments everywhere, even on toilet paper. Maybe by Philip K Dick?  Can't think of anything else to add... googling turned up too many other things. Thanks!


I can not use regex to replace text contain "\" character

I have a snippet public static void main(String[] args) {         // replacement text     String replacement = "Not Set";     // text     String text = "Item A \\(XXX\\) Lock"; // text is "Item A\(XXX\)Lock"     String regex = "\\(XXX\\)"; // regex is "\(XXX\)"     // result text     String resultText = text.replaceAll(regex, replacement);     System.out.println("Result text: " + resultText); }  resultText is "Item A \(XXX\) Lock" -> I can not replace "\(XXX\)" to "Not Set". Please help me if you know about this problem.


Why does video rendered as .avi Raw appear with black background despite setting the 'transparent' render option?

I set transparent in the render properties, and output properties in .avi raw , but the animation I rendered came out as black background, why isn't it transparent?


Torque Equation for a point other than the axis of rotation

I am having a problem while dealing with the so called torque equation τ=Iα, which I am describing with the help of an illustration. Please help me out. Consider a rod of length L and mass ‘m’ lying on the positive x axis with its edge as origin. Suppose it has the z axis as the fixed axis of rotation. A force ‘F’ is applied on the COM of the rod, and parallel to the y axis. We can easily calculate the angular acceleration of the rod ‘α’ about the fixed axis of rotation by using τ=Iα. Now if we apply this relation to a point, other than the fixed axis of rotation, say the other end, what will be the new angular acceleration? I mean how can we find out angular acceleration of an object about a point other than the axis of rotation? How can we define angular acceleration about the end farther from the origin, when it is not rotating about that end?


Evaluating $\lim_{x\to ∞}\left (\sqrt{x^2+4x+1}-x\right)$

I am interested in evaluation $\lim_{x\to ∞} \left(\sqrt{x^2+4x+1}-x \right)$.  I tried to multiply it by ($\sqrt{x^2+4x+1}+x$) but didn't seem like it did worked.


Disallow deletion of questions for 24 hours after last answer was posted

Currently, authors can't  their own question   if it has multiple answers if it has a single answer with one or more upvotes, even if it has a negative score if it has an answer with an awarded bounty   I ask that another criterion be added, to prevent authors from deleting their question within 24 hours of an answer being posted.  It happened to me, , that a relevant question of reasonable quality was asked, some time consuming research went into creating an answer, and as soon as that answer was posted, the OP immediately deleted the question. This happens often with questions asked for work purposes, and .  This behavior is hard to provide feedback on, or to moderate for multiple reasons:   The community loses content (the question and the answer) without having a realistic time zone independent chance to notice or vote on it. There is no natural way to contact the OP without spamming unrelated questions. There is no way to flag the behavior as deleted questions are not flaggable by ordinary mortals The current UI does not discourage this behavior in any way, so it may not even be intentional.   Also, per Tim Post at the :     We have things in place specifically to stop people from potentially wasting their time by answering questions. You can't delete your own question if it has multiple answers, or a single answer with a score of one or higher. That generally stops it, what remains is the edge case of great answers not getting a chance to see votes before being removed.   Addressing the edge case is very simple, however.  I believe that even a relatively short protection period is sufficient to ensure an upvote on any high quality answer; but, more importantly, habitual or intentional answer snatching will become less practical, and honest question posters will better understand the public purpose of the site.  (While this does make it a little harder to delete one's own question after the OP genuinely changed their mind, there is a plenty of better ways of stopping to make a fool of oneself: improving one's question through edits, self-answering it, asking the answer owner for cooperation on deletion, waiting a day before deletion, flagging the question for closure, or requesting to be dissociated from the post.)


Why are female clones more often produced

As a student of biology when ever I come by artificial cloning, I always find examples of females being cloned - Dolly the sheep, CopyCat, Daisy, etc. The only male I could see was Fibro mouse and a few more. What is the reason behind this? Is the male genome more difficult to be cloned? I am specifically looking for genetic reasons or other complications.


My application was refused due to 'lack of evidence of funds', are there hidden requirements for UK visa applications?

This post originates from a discussion at .  I applied for a UK Standard Visitor visa for attending a competition, with my father funding the visit. They refused my visa saying: There is no evidence of the source of these funds. You have provided electricity bills but no evidence of your father's employment or income.  However, when I submitted the visa application I didn't find any article about explaining unusual transactions or the occupation of the person funding my travel.  Are these hidden requirements or buried somewhere where I didn't look?


I'm trying to find the total cost of delivery charge base on parcel weight.  Why when I put anything more than 2.5 it'll came out as 2 answers?  E.g:  Please enter parcelweight 3 The charge is 8.55 The charge is 7.3500000000000005   The corresponding code is:      if(parcelweight  < 2.5)    {        System.out.println("The charge is" +parcelweight*3.5);           }    else {          if((parcelweight >=2.5 && parcelweight <=5));         {             System.out.println("The charge is" +parcelweight*2.85);         }          if(parcelweight > 5);         {              System.out.println("The charge is" +parcelweight*2.45);         }    }


Automatically solve dependencies of deb packages while using dpkg -i

Installing Deb packages on the command line, using dpkg -i, only installs the package in question and displays errors of unresolved dependencies (manually solved by apt-geting the packages it complains about). How do I automatically resolve dependencies when installing standalone packages?


Is it possible to prove that sin(\pi) = 0 using its series expansion?

Can i prove that   $$\sin(\pi) = 0 $$  by letting $$x= \pi$$ in its series expansion?? and somehow work something from there without just saying "the series is equal to $\sin(x)$ thus $\sin(\pi) = 0 $  Thanks in advance


Installing Windows x64 on 32-bit UEFI (EFI-IA32) via GRUB

I am attempting to install Windows 10 x64 (64-bit) on a device that only has 32-bit UEFI (for the moment)   Since x64 Linux can be booted via a custom 32-bit GRUB.. I assume it could also do the same for windows, but  seems to indicate otherwise, though the explanation given does not completely explain why (to me at least).    I believe GRUB's 32-bit EFI SHOULD be able to load Window's 64-bit EFI.  Alternatively, is it possible to use grub's newish 'ntldr-mod' to run windows x64 install bootmgr?   This question will likely evolve based on the answers.  Answers/Comments regarding WHY will be flagged as off-topic.  All i'm interested in is HOW.  If your answer is 'not possible', PLEASE provide more info.    'Architectures must match' is not a valid answer.  reference links:


Is it possible to iterate a function transfinite times?

Let $f:A\rightarrow A$ be a function. We can simply define $f\circ f$, $f\circ f\circ f$, etc., for each given natural number inductively.   $f^{(0)}=id_A$  $\forall n\in\omega \qquad f^{(n+1)}=f\circ f^{(n)}$  How to define $f^{(\omega)}$ such that it be a function from $A$ to $A$? Is it possible to define $f^{(\alpha)}$ for arbitrary large ordinal number $\alpha$?


Can we have an option to only apply specific fields from the profile page network-wide?

I customise my "about me" field to match each site I use, so for example,  I have a list of games that I play and the types of games I'm interested in,  I have a list of movies and TV shows that I watch, and on sites where I provide edits I state I'm no expert on the subject matter but that I exist to provide edits.    If I were to want to make a chance to, for example, my Display Name, Email, Website, Location, etc and apply it to all websites, because of the way the "Save And Copy Profile To All Stack Exchange Accounts" works, I would have to edit each profile individually to preserve my "About Me" sections.  Would it be possible to have a button that only applies the settings in the top half of the profile page (Display Name, Email, Real Name, Website, Location, Birthday) but leaves "About Me" section alone?


Virtual box ubuntu: Internet not detected on guest(Ubuntu) in host(winXp)

Iam unable to get internet connection inside guest(ubuntu) in virtual box although host(WinXP) has an internet connection. Tried with Nat: In Ubuntu it shows Wired connection connected but unable to browse sites.  Tried with Bridged adapter: In ubuntu it shows that wired connection is not connected.   Yes I use a proxy  I just appended the lines in the file.  "In the window that opens add the following lines modifying as appropriate to the file" can you explain what appropriate is. I am still not able to get connected to internet.


When frictional force is always acting on rear wheel of cycle how maintaing of constant speed is possible?(neglect drag)

When frictional force always act on the rear wheel of the cycle when pedaling with constant force,how maintaining of Cycle speed constant at low speeds.(i mean if you push the pedal with certain force why it moves with constant speed instead of accelerating?)(imagine cycle is at low speeds).


How to correctly dispose spweb and spsite on powershell foreach!

Title of the question is pretty simple, I have 18000 site collections and this script is showing 1GB of ram used, so I wonder how can I dispose correctly the spweb and spsite object  $webapplication =  Get-SPWebApplication  http://xxx foreach($site in $webapplication.Sites) {               foreach($subWeb in $site.AllWebs)     {         if($subWeb.AllProperties["WebTemplate"] -eq "Client" -or $subWeb.AllProperties["WebTemplate"] -eq "Job")         {             if($subWeb.AllProperties["WebTemplate"] -eq "Client")            {                 $infoList  = $subWeb.Lists["Client Info"]            }             if($subWeb.AllProperties["WebTemplate"] -eq "Job")            {                 $infoList  = $subWeb.Lists["Job Info"]            }             if($infoList -ne $null)            {                              $InfoItem = $infoList.Items[0]                if($InfoItem -ne $null)                {                   $clientCode = $InfoItem["Client Code"]                    $quicklaunchnavigationnodes= $subWeb.Navigation.QuickLaunch                   foreach($navNode in $quicklaunchnavigationnodes)                   {                       if($navNode.Title.Contains("Tax Invoices"))                       {                         $clientcodefromurl = $navNode.Url.Substring($navNode.Url.IndexOf("=")+1,8)                          if($clientCode -ne $clientcodefromurl)                         {                             Write-Host 'Processing  site ' $subWeb.Url                              Write-Host '  Info list found for ' $subWeb.Url                              Write-Host '  Info item found '                             Write-Host '    Client code from url: ' $clientcodefromurl                                                       Write-Host '    There is a difference' -ForegroundColor Red                              Write-Host '    Incorrect Navigation Url: ' $navNode.Url                                                        Write-Host '    New Url: ' $navNode.url.Replace($clientcodefromurl, $clientCode)                             #$navNode.url.Replace($clientcodefromurl, $clientCode)                             #$navNode.Update()                             Write-Host '    Url updated' -ForegroundColor Green                          }                       }                                   }                }                else                {                      Write-Host '  Info item not found '$spWeb.Url                 }                       }             else            {                Write-Host 'Info list not found for ' $subWeb.Url             }           }         } }


I have wondered to my self if I can search on YouTube through Siri (iPhone 6s), when I have tried the "help" with Siri it(she?) showed me how can I use it with Facebook and twitter. My questions are this:        How can I use "help" for a specific app (like "help with YouTube ") and get all the commands I need for the specific app.   Are there any commands in the YouTube app? (like if the YouTube is closed and I want it to be open and search for a specific song)


Error when referencing a inside a function without using `global` keyword in python

Why does the following code raise an UnboundedLocalError: n = 0 def foo():     n = n + 1     print(n) foo() foo()  Error: Traceback (most recent call last):   File "foo.py", line 5, in <module>     foo()   File "foo.py", line 3, in foo     n = n + 1 UnboundLocalError: local variable 'n' referenced before assignment  While the following code works: n = 0 def foo():     print(n) foo() foo()  Output: 0 0  It seems to me that given the behavior of the second snippet, the first snippet should use the value of the global n to calculate n+1 and assign it to a new local n, and print it. Thus, I would expect the output to be two 1s. Why does this not happen?


Internal linking in 2D arrays initialized using [0]*n

I was writing a function to return a 2D array full of random numbers, and after looking at the doc for random, I came up with this:  def get2D(arr, mu, sigma, randfunc): x = 0 for i in arr:     get1D(arr[x], mu, sigma, randfunc)     x += 1 return arr  def get1D(arr, mu, sigma, randfunc):     x = 0     for i in arr:         arr[x] = randfunc(mu, sigma)         x += 1   And after a bit of looking around to see if I can initialize an array of a specific shape without numpy (nothing against numpy, just to see if I can reduce the number of dependencies) I found this:  [[0]*2]*2   But when I run the function using the above, I end up with unique numbers in the inner most dimensions but everything after that are repetitions. e.g. [[1,2],[1,2]]  Since I don't have much of a theoretical understanding in python, I was just shooting in the dark. That was a reason why I used for loops instead of list comprehensions; I was trying to prevent bugs caused by my limited understanding of python.  To check if I messed something up with the function pointers or something, I tried using  as input, and the function worked fine.  From that I'm guessing I created some sort of internal linking when I initialized the zero array. Just to check, I tried with 3D arrays, and got the sme results. e.g. [[[1,2],[1,2]],[[1,2],[1,2]]]  But I can't figure out why [0]*2 returns a zero array of items that are not linked to each other, but [0,0]*2 returns a whole bunch of linked items.


Question: Let $f(x)=a_0+a_1x+a_2x^2+a_3x^3$ be a polynomial with integer coefficients such that $a_0,a_3$ and $f(1)$ are odd. Show that $f$ has no rational root.    Solution: Let us assume for the sake of contradiction that $f(x)$ has a rational root $\frac{p}{q}$ where $p,q\in\mathbb{Z},q\neq 0$ and $\gcd(p,q)=1$. Thus by rational root theorem, we can conclude that $p|a_0$ and $q|a_3$. Now since $a_0$ is odd, implies that $p$ is also odd. Similarly, $q$ is also odd. Now since $f(1)=a_0+a_1+a_2+a_3$ is odd and both $a_0$ and $a_3$ are odd, implies that $a_1+a_2$ is also odd.   Also since $\frac{p}{q}$ is a root of $f(x)$, implies that $$a_0+a_1\frac{p}{q}+a_2\frac{p^2}{q^2}+a_3\frac{p^3}{q^3}=0\\\implies a_0q^3+a_1pq^2+a_2p^2q+a_3p^3=0\hspace{0.5 cm}...(i).$$  Thus two cases are possible: (1) $a_1$ is odd and $a_2$ is even, (2) $a_1$ is even and $a_2$ is odd.   Now if (1) is true then, $a_0q^3,a_1pq^2,a_3p^3$ are all odd and $a_2p^2q $ is even. This implies that $a_0q^3+a_1pq^2+a_2p^2q+a_3p^3$ is odd. But, by $(i)$, we have $a_0q^3+a_1pq^2+a_2p^2q+a_3p^3=0,$ which is even. Hence, we arrive at a contradiction. Hence $f(x)$ has no rational root in this case.   Working similarly we will arrive at a contradiction for Case (2) also.   Thus, we can conclude that $f$ does not have a rational root.   Is this solution correct. If yes, then, is there a better solution?


Issue with people search in Sharepoint 2013

I've implement people search in Search Center site collection. But I got problem when I try to view people profile.I've got . Sorry, something went wrong. user not found. Can anyone help me:)