Let $A$ and $B$ be matrices over $\mathbb C$. Then pick out the correct statements.

Let  $A$ and $B$  be matrices over $\mathbb C$. Then,          $AB$  and $BA$   always have the same set of eigenvalues.      If  $AB$  and  $BA$  have the same set of eigenvalues then $AB=BA$.           If  $A^{-1}$   exists then  $AB$  and $BA$   are similar.     The rank of  $AB$  is always the same as the  rank of   $BA$ .       Suppose $AB=BA$ Let $x$ be the eigen vector of $A$ corresponding to the eigenvalue $a$. $$ABx=BAx=aBx \implies Bx$$ is the eigen vector of $A$. If the eigen space corresponding to the eigen values of $A$ is one. Then, $Bx=\lambda x \implies x$ is the eigen vector of $B$. So $AB$ and $BA$ have same set of eigen values. statement is false. Am I correct? I don't know, How to judge the statement. I don't know, How to judge the statement. Statement is false, I could obtain the counter examples.   Please check my answers. Please help me.


What's the difference between stocks and shares?

I'm doing some research into investing in shares (or stocks, not sure which) and I keep getting confused between shares and stocks. Are they the same thing?  Even on this site the two tags exist and are not synonyms. But if I type in BHP share price in Google and BHP stock price I get the same price graph.


I just woke up this and I was extremely curious if there were any subspaces of a vector space such that $X\cap (Y + Z) \neq (X \cap Y) + (X \cap Z)$?    Just a curious person. Thanks in advances.


is it possible to fit gravel tires for Cannondale CAAD 9? If yes then can you please suggest some good ones. The bike looks very similar to the one in the picture. Thank you in advance.


If I have a string like below:  [{"id":123, "name": "Sally", "age": 36} {"id":138, "name": "Nicholas", "age": 48} {"id":194, "name": "Steven", "age": 25}]   Is there a way for me to convert it to object? Since, their format is pretty much the same. Do correct me and let me know if I am wrong. Thank you.


How should I convert historic local time to UTC taking into account of daylight saving?  The main problem is the daylight saving doesn't occur at a fixed period every year and hence I cannot think of a way to do this task.


What is $\gcd(a^2-1, a^3-1)$? Is it $1$? The exponents seem to follow the pattern of $\gcd(a, a+1)$.


How to record x11 Display on remote server

I'm trying to use cnee to record the display of a touch device we have our application on (Deployed on ubuntu server 16.04). I don't have any experience with cnee and am willing to use a different program if it is more simple to use, so please suggest any suggestions.  I've gotten cnee to record keyboard input to test it but that's it.   The command I am trying on my device is  cnee --record --display 0 -o displaytest.xns   I don't know if it makes any difference but my application is on a remote device. I'm using ssh to input the command,no log or keystrokes are needed.  I understand my command may not be doing exactly what I want but I'm trying to go off the man page, and this is the closest I've gotten to making it run after working through the error messages I was getting.


Can electric energy be generated from only heat if the heat is uniformly distributed along the system?

I was thinking about producing energy from heat and I realized that all the methods I know require a heat gradient. Is there a deeper physical explanation as to why heat gradients are needed? Otherwise, do you know of any heat to electricity generator that doesn't need a heat gradient?


I have I ball andi 3.5 kke winner, andriod 4.2.2. I want to remove inbuilt call recorder permanently. There is a logo "REC" on calling screen, showing recording time.  I have rooted my phone and tried Titanium Backup , Rom Toolbox Lite , Simple Root Uninstaller , SD Maid ,there is no apps having word "Call apps" etc.  Any idea to remove/uninstall inbuilt call recorder permanently ?  Thanks !


How prove that $\sum_{n=1}^{\infty}\frac{\pi{(n)}}{n^2}<\infty$ for some bijective $\pi(n)$

Let $\mathbb{N}=\{1,2,\cdots\}$.  Does there exist a bijective function $\pi:\mathbb{N} \to \mathbb{N}$ such that $$\sum_{n=1}^{\infty}\dfrac{\pi{(n)}}{n^2}<\infty ?$$  My try: note $$\sum_{n=1}^{\infty}\dfrac{1}{n^2} $$ is convergent,  and then I can't. Thank you.


How can I achieve having logical page numbers shown in acrobat reader?

I am using (plain) TeX (not LaTeX or any other ...TeX). I want a pdf file made from my TeX-source/output that is able to have acrobat reader shown logical page numbers. My document’s preface page numbering should be displayed like “vi (6 of 123)” and the main part like “2 (12 of 123)” in acrobat reader’s tool bar.  How do i achieve that? Do I have to use \special, pdfTeX, dvipdfm(x)? How do I specify the roman numeral page numbers in the TeX source? Is there a (TeX) macro package for that?  Thanks to all TeX Wizards for your answers!


Is it possible to boot directly into ubuntu without going to the interface of grub options?

My computer is installed with ubuntu 16.04 and windows 7 dual system, however I seldom use windows, so I found the grub options(selecting system) in booting is a bit less efficient.  Is it possible to set a default booting system without showing the interface (and of course it can be changed back if needed, e.g. by get into bios and change it)?   Thanks a lot.


Prove by induction that if this is divisible by 11, then this is also divisible by 11

How would I do this? I tried using contradiction, but got stuck halfway through. This unit is about induction, but I have no idea how I would use it to do this as it is not a sequence     4.6.15 (a) show that for any $k\in N$, if $2^{3k-1}+ 5\cdot 3^k$ is divisible by 11, then $2^{3(k+2)-1} + 5\cdot 3^{k+2}$ is also divisible by 11   $$(\forall k\in N)(\exists p\in Z)(\exists w\in Z)(2^{3k-1}+5\cdot 3^k = 11p)\Rightarrow(2^{3(k+2)-1}+5\cdot 3^{k+2})$$   we can prove this by contradiction.


How do I convert a Word file's references to .bib format? Is any tool available  to convert it to .bib format?


Determine properties of items in PVP after scaling

I recently tried my LVL20 free to play account again and noticed that when I was in PVP, I actually became LVL29. The item levels of my gear were also scaled to 34 or 35. Now I am stuck with the following problem: because items change upon entering PVP, I don't know how to compare them anymore. For Items that I already have I could just try them all, but I just have no idea what to hunt for now. So, my question is: Given an item, how can I determine in advance how good it will be for PVP?  I have already looked for a guide or database, but didn't find one that took this mechanism into account. I have also not found any formula to use.


Are the training samples shuffled in minibatch gradient descent?

Lets say that I have 3,200 observations that I want to use for training a neural network model, and I want to set the batch size to 32. The number of minibatches used in every epoch for updating the weights is therefore 100. How will my data be divided during minibatching? Assuming I have datapoints $x_{1}, x_{2}, ... , x_{3200}$ -  will minibatch slice the data as it is, and use the same slices in every epoch? e.g. $$ Epoch 1: minibatch1: [x_{1}, x_{2}, ... , x_{32}], minibatch2: [x_{33}, x_{34}, ... , x_{64}] \\ Epoch 2: minibatch1: [x_{1}, x_{2}, ... , x_{32}], minibatch2: [x_{33}, x_{34}, ... , x_{64}]\\ Epoch 40:  minibatch1: [x_{1}, x_{2}, ... , x_{32}], minibatch2: [x_{33}, x_{34}, ... , x_{64}] $$ Or are the slices shuffled in every epoch, such that there are different combinations of observations in every minibatch in every training epoch? e.g. $$ Epoch 1: minibatch1: [x_{67}, x_{2891}, ... , x_{930}], minibatch2: [x_{102}, x_{7}, ... , x_{1241}] \\ Epoch 2: minibatch1: [x_{3174}, x_{15}, ... , x_{412}], minibatch2: [x_{753}, x_{2447}, ... , x_{1630}]\\ Epoch 40:  minibatch1: [x_{456}, x_{73}, ... , x_{1984}], minibatch2: [x_{29}, x_{675}, ... , x_{2354}] $$


Why is my mesh transparent in viewport shading?

So i'm a newbie, just started watching Blender Guru's "donut tutorial" and i'm on part 6 level 1, when you try to render the thing that you've made. i made a donut, and when i pressed "Viewport Shading" my donut is gone.. This is the mesh i've made  And this is the mesh when i clicked "Viewport Shading  i can't find anything on the internet, or i just couldn't understand...


How to speak on limit of sequence categorically?

I was thinking on ways to define limit of a sequence (over the reals, or over a metric space, or even better, over a general topological space) using the categorical limit (final or inicial object of the image of a category by a functor). I know the caracterization of the supremum by your universal property, but I failed to find this property to the limit of a sequence.  In the most ambicious case, a general topological space, I realized that the things cannot be too simple, because a limit (categorical), when exist, is unique up to isomorphism; however, at non-Hausdorff spaces, a sequence can have a lot of limits; and moreover, these points that are limits can be such that they are not isomorphic, in the sense that we haven't an homeomorphism carrying one to the another.  So, how to translate this concept to the beautiful category language?


Do we need to add the sign before the unknown value in the mirror formula?

I was doing a problem in Optics and I had to use the mirror formula for one specific step i.e 1/u + 1/v = 1/f.  Okay so it's a concave mirror, with the object placed behind the focus. That means V, U and f are all going to be negative(sign convention). Now I know the value of U and f , and the value of V is supposed to be found. Should I substitute V as (-V) or keep it as V itself? I'm not sure if the answer would come with the correct sign.


Are induced electric field lines circular in nature?

I know that induced electric field lines form closed loops but we always see that in textbooks, induced electric field lines are drawn circular loops. So my question is that are induced electric field lines always circular in nature or can they be of any shape, and I also want to know why everyone draws these lines as circular?


How to prove CP^1 homeomorphic two-dimensional sphere

I'm a complete newbie to this section: book are quite complicated in terms. Also, there is a problem with formal building homeomorphism. So, I need to prove that $CP^1 \simeq S^2 $. How to do it formally?  By the way, as I understand, that $RP^1 \simeq S^1 $ as identification of diametrically opposite points. Maybe my problem use similar solution.


Probability taking out two balls from an urn

In an urn there is five red balls and three blue balls. Two balls are taken randomly from the urn with return. (The colors of the two balls are seen and taken back to the urn). What is the probability of taking out two red balls?   I know how to calculate probabilities like taking one ball after the other (multiplying probabilities)... Not when there is two balls at the same time. How would I resolve it? Do I need to draw to myself a big  $\Omega$ and just count how many possible options there is? It doesn't work at least with tree diagram.


Stop Windows XP applications from stealing focus

I have Windows XP Profesional here and it gets very annoying when an application that I launched five minutes ago finally brings up its main window and steals focus from the email that I'm writing (or other currently focused window). Is there any way, native to Windows XP, that I can disable this? I know some applications will just blink their title bar on the Taskbar rather than stealing focus, but they don't all behave this nicely.  I am working in a corporate environment, so there may be a limit on what extras/tools can be installed. Also, I am not sure I have access to regedit (and even if I do, Helpdesk will probably not be amused if they find I'm using it).


Displaying row and column of selected pixel in QGIS?

In QGIS, I can use the identify tool to get the pixel value and the coordinate for a selected pixel, I also have a coordinate capture tool to display the selected pixel in another coordinate system.  But how can I display the row/column of this particular pixel, which x and y of the total dimension this pixel is located at?


Consider this example: \documentclass[margin=1cm]{standalone} \usepackage{tikz} \begin{document}  line1  line2  \begin{tikzpicture} \draw (0, 0) -- (2, 2); \end{tikzpicture} \end{document}  In the output everything is on one line:  How to have a new line in standalone?


Prove that the sequence $(a_n)$ defined by $a_0 = 1$, $a_{n+1} = 1 + \frac 1{a_n}$ is convergent in $\mathbb{R}$

I will post the exercise below:      Prove that the sequence $(a_n)$ defined by $a_0 = 1$, $a_{n+1} = 1 + \frac 1{a_n}$ for $n \in \mathbb N$ is convergent in $\mathbb R$ with the Euclidean metric, and determine afterwards is limit. Can you intepret the limit geometrically (hint: Golden ratio)?   So I need to prove that the sequence is convergent in $\mathbb{R}$  with the Euclidean metric, and how do I prove that? The limit must be $1$, but how to interpret it geometrically?


i dont know its name but it looks like this, i want the face curved but its just wierd


I'm using  to the specified floating-text-box problem, but there is no way to specify which page the result goes on. I was wondering if there's a way to tell AddToShipoutPictureFG which page to go onto.  So, like the interface, instead of being  \placetextbox{<horizontal pos>}{<vertical pos>}{<stuff>}   would be  \placetextbox{page}{<horizontal pos>}{<vertical pos>}{<stuff>}


apa6e referencing required for elsevier article

I need apa6e referencing style for an Elsevier article. I don't know why I encounter errors. Here is the example:  \documentclass[preprint,12pt,authoryear]{elsarticle} \usepackage{apacite} \usepackage{float} \usepackage{hyperref} \usepackage[ruled,vlined,commentsnumbered]{algorithm2e} \journal{Expert Systems with Applications}  \begin{document} \bibliographystyle{apacite}  \bibliography{Hybrid}    \end{document}


Know Ubuntu Distribution server or desktop

I am asking question after googling and I tried multiple solution but need a specific answer.   I have logged in another pc with SSH and I need to know that the OS distribution is server or desktop.  I have tried following command and its output:  lsb_release -a  No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 12.04.5 LTS Release:    12.04 Codename:   precise   Second Command  cat /proc/version  Linux version 3.5.0-61-generic (buildd@toyol) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #90-Ubuntu SMP Sun Apr 26 11:23:53 UTC 2015   Not at all duplicate with this


Problem  I would like to automatically switch between width=\textwidth and scale=1 arguments depending on the actual width of the image I am trying to insert in order to prevent it from being stretched if it is smaller than the text width.  Edit / Solution  The following code is adapted from one of the proposed solution in this .  \documentclass[draft]{article} \usepackage{graphicx} \makeatletter \def\autoscale{   \ifdim\Gin@nat@width<\linewidth     \Gin@nat@width   \else     \linewidth   \fi } \makeatother \let\oldincludegraphics\includegraphics % Resize small figures \renewcommand\includegraphics[2][]{   \oldincludegraphics[width=\autoscale]{#2} } \begin{document} \begin{figure}   \centering   \includegraphics[]{img/test.png} \end{figure} \end{document}


McCarthyism, Martian Colonists, Water Powered Ships, and Mining Asteroids Near Saturn

I remember reading a story about humans colonizing Mars.  It was from the point of view of a pilot and I think he and others were mining asteroids to use the materials on Mars.  I do remember they used water vapor for thrusters.  Someone on Earth was using the Mars colonists as scapegoats and behaving like the Late Senator McCarthy.  He kept referring to them as "Water wasters" and said they were demanding water from Earth and would use up all the water and humans would have to ration water and so on.  In truth, the amount of water they were using (I think from Martian polar caps) was quite small and they were no threat -- the politician was just using them as a focus so he could build his career.  Rather than take him on politically, they sent an expedition out to Saturn, grabbed a large chunk of ice from Saturn's rings, brought it back, and I think they crashed it on Mars, talking about how it would serve their needs for decades or more.  I can't remember if there was more, such as figuring that one effect of that much water on Mars (as it changed into liquid form) would help with terraforming or not.  But I remember the point was that they could not longer be used as a scapegoat by the politician.  The recent talk of asteroid mining has me thinking of this, but I can't remember the author's name or the title.


How to prove $A\setminus(B\setminus C) = (A \setminus B) \cup (A \cap C)$

I have to prove that. While I know this is true by thinking about it I'm having a lot of trouble actually writing the proof how can I prove $A\setminus(B\setminus C) = (A \setminus B) \cup (A \cap C)$  first of all it's true?


Trying to remember a book that had people (I think they turned white?) segregated into a compound

I think the main character was a prince or high born person, who one day wakes up and looks in the mirror and his hair is turning white, I think his skin bleaches out too... His servants notice and try to sneak him out, but he ends up being put into a compound with others with the same affliction. Are they dead? There were lots of chases in the novel; running and hiding; learning to survive in the compound... I remember being disappointed with the ending (or maybe just hungry for more) and thinking that there must be another book coming. But I forgot the book title and don't know the author so I can't track down any sequels ;) Read it at least ten years ago. Any help is appreciated!


Boot loop after updating to official Android 6.0 Marshmallow on my Nexus 5

Last day I got the notification to download and install official Android 6.0 Marshmallow in my Nexus 5, which is not rooted, was running Android 5.1.1 and no custom ROM. As I downloaded and installed it, from that point its gone to boot loop state (the four dot animation is endlessly running).  I have already searched the web for solution like ,  and many more, but not tried. Because all those help seekers had tried to manually OS install or phone was rooted or already had custom ROM, but my Nexus 5 did not have any of those.  I had tried "wipe cache partition" and reboot, but it did not helped. As I don't had any data backup of my phone storage, the last thing I will be willing to do is "wipe data/factory reset". As my phone's usb debugging was enabled and I had adb in my desktop, so I have also tried to copy data from my phone using the "adb pull" command in boot looped mood. But also did not got any luck, may be "adp pull" command don't work in booting mood or I am doing something wrong with the command.  Any help to backup/recover the data or solution of the boot loop problem without "wipe data/factory reset" is appreciated. Thanks in advance.....


everyone! I started learning 3D with Blender about a week ago and now I have a problem. I don't know how to describe it, you can see it on the screenshot that I've attached. Everything started look so sharp and something like artifacts. How can I fix it? Also, suddenly the rotating of the view started rotate relatively to the 3D cursor (I think that it started suddenly). And another one problem - suddenly (who could guess it's suddenly) I wasn't able to scale the view as I wanted and I was attached to the focal view basically.  I do not know really why all of that happens and I kindly ask you to help me, please.


Unexpected sort order in en_US.UTF-8 locale

While trying to answer , I noticed a sort order I did not expect:  $ export LC_ALL=en_US.UTF-8   $ echo "T-700A Grouped" > sort.txt $ echo "T-700 AGrouped" >> sort.txt $ echo "T-700A Halved" >> sort.txt $ echo "T-700 Whole" >> sort.txt $ cat sort.txt | sort T-700 AGrouped T-700A Grouped T-700A Halved T-700 Whole $    Why is 700 A sorted above 700A, while 700A is above 700 W ?  I would expect a space to come before A consistently, independent of the characters following it.  It works fine if you use the C locale:  $ export LC_ALL=C $ echo "T-700A Grouped" > sort.txt $ echo "T-700 AGrouped" >> sort.txt $ echo "T-700A Halved" >> sort.txt $ echo "T-700 Whole" >> sort.txt $ cat sort.txt | sort T-700 AGrouped T-700 Whole T-700A Grouped T-700A Halved $


How to reduce the number of nodes in a traced map using inkscape?

I was trying to incorporate a map outline in a logo using trace bitmap feature in inkscape. I was able to trace with some modifications in the setting, but the problem is it has more number of nodes. I am trying to reduce the number of nodes using simplify command, but as soon as I do this I am loosing the curves of the map & even getting variable thickness. Is there any workaround to solve this problem. Also is there any other method to include maps in a logo without tracing?  This is the image what I achieved after tracing.  The same image after using path- simplify.


Does static imported class loads different from non static import

Static import gives direct benefit of not using the class name and access the static fields directly like   import static java. Lang. System;   will allow us to use out.println directly instead of System.out.println. Does the loading of such classes like the ones I define manually be different from loading of non static import of same classes?


I have a requirement where I need to group records. For example I have 150 records and I need to get them in 5 groups, 30 records in each group.  Can anyone let me know how can I accomplish this?  Thanks in advance.


Pentax K-x with kit lenses problem producing sharp photos

Hey guys I have recently dug out old Pentax K-X with kit lenses, but I noticed I struggle with sharpness of the photos. No matter what settings I try I get my photos blurry when I crop it to make small things more visible, even my mid-tier phone takes sharper shots (even when cropping). To make things easier on you guys I will make a list:   Impossible to get crispy sharp photos both using auto focus and manual focus Very noticable on closeups on bugs and stuff, taken from around 0.5m away. I have taken a photo of a bug from around 0.5m away. Photo below is example of what I got, in time I am using the camera (around 1000photos) I don't think I have a single one that is really sharp and crispy. Shooting raws, but same happened with jpgs. Settings:   Flash - ON f/36 ISO-400 Shutter 1/160    What else could I do to improve? Thanks!


Got Schengen visa from Spain - no longer traveling to Spain but now traveling to France...will it be an issue?

I had initial plans to travel to Spain and got my visa, but due to my partner's work schedule had to cancel the plan to Spain and am now planning to go to France. Will it be an issue if I do not go to Spain and straightaway go to France with the visa issued by Spain?  Not sure of the practice. Thanks for your inputs.


\textbf does not work insine \newcommand

I'm trying to make a new command, to add autoincrementing numbers to the definitions throughout my thesis. Here's what I have.  \newcounter{DefCounter} \setcounter{DefCounter}{0}  \newcommand{\mydefinition}[1]{     \stepcounter{DefCounter}     \textbf{Определение \theDefCounter.}#1 }   When I use it like this: \mydefinition{DEFINITION BODY} I get the numbering right, but the Определение 1. text is not bold. What should I change to make this text bold?


How can I record from a second in-game camera and later export it to a video file?

I'm making a PC Horror game in Unity, and I want to have a camera recording simulation in-game - so you can leave a creepy location anytime, and you will have a tape with what you recorded on camera while exploring. Technically, I need to attach a second camera (hand-cam) to the character's hand, and let the player look through the viewfinder by pushing a button. But in any position, the hand-cam must record everything that is in its focus at that point - floor, stairs, rubbish, etc, whether it's lowered at hand level or raised to match the player's viewpoint. When the game ends (player leaves or dies), I'd like to have an option to save recorded tapes to a video file (if this is not possible, then to some save file). How can I implement such a feature in my game? Are there some special Unity tricks, or add-ons and additional modules? Saving decorations and scenes with active triggers, or just grabbing video from screen? Below is a quick MSPaint concept of what I mean:


How can I remove old linux-images when installing new kernel updates?

Possible Duplicate:          On my laptop I have limited space but install all new updates, including kernel updates. However, Ubuntu doesn't seem to uninstall old kernels after installing a new kernel update. I guess this happens with reason: since the new kernel might fail, and it would be nice if GRUB provided a way to select the old kernel to boot with. But do I really need the whole history?, I guess not!:  rc linux-image-2.6.32-21-generic rc linux-image-2.6.32-24-generic rc linux-image-2.6.32-25-generic rc linux-image-2.6.35-22-generic rc linux-image-2.6.35-23-generic rc linux-image-2.6.35-24-generic rc linux-image-2.6.35-25-generic rc linux-image-2.6.35-27-generic rc linux-image-2.6.35-28-generic rc linux-image-2.6.35-30-generic rc linux-image-2.6.38-10-generic rc linux-image-2.6.38-11-generic ii linux-image-2.6.38-12-generic rc linux-image-2.6.38-8-generic ii linux-image-3.0.0-12-generic ii linux-image-3.0.0-13-generic ii linux-image-3.0.0-14-generic ii linux-image-3.0.0-15-generic ii linux-image-3.0.0-16-generic ii linux-image-generic   I thought apt-get autoremove should remove at least some of those images, but it doesn't. I will remove those now by hand, but isn't there a way to do this automatically and to keep, let's say, the last three images? Yes a shell script and a cron job! Any alternatives?


How does the X server emit a character when the keyboard is pressed?

This is actually a coding question.  I know that the X server checks the active keyboard layout to figure out which character (supporting unicode) to emit. But I don't actually know how this is done, could someone point me to the source code where I can see this in action?  What I want to actually do is to create a "unicode keyboard driver" which can do the same thing (ignoring the active layout), but then I need to know how X is emitting the unicode character to the GUI.  Even if I need to add new functionality to the X server and recompile it that's okay. I just want to be pointed to the right source code for emitting those characters into the GUI.  EDIT:  The comments pushed me in good directions on where to find answers. I think I've now figured out how I can programmatically output unicode text into GUI's on Linux.  Hints: xdotool / libxdo, XTestFakeKeyEvent, xmodmap -e "keycode 107 = U2196"  I will see if I can eventually answer this question with my own C++ library to do this.


2000s (or earlier) young adult novel like "Ender's Game", genetically enhanced teenage boy trains in holographic battles to win an uncontaminated land

I read a book about 10 years ago about a teenage boy that is in a government program for genetically enhanced children in a post-apocalyptic world. He is training for a holographic battle game against other countries where the winner gets the last piece of uncontaminated land.  He meets his partners, a girl about his age and a young boy who is crippled but a genius.  I don't remember much more than that but I have been looking for it for years. This is NOT Ender's Game or anything from that series, I have checked.


I recently noticed that Wordpress tries to auto-complete a URL when it's not submitted in its entirety. E.g. I have a post URL that looks like this:  http://www.mysite.com/some-post-title   If I browse to the following URL:  http://www.mysite.com/some-post-ti   I can see that the URL is submitted to Wordpress but that Wordpress is doing a 301 redirect to http://www.mysite.com/some-post-title.  How can I disable this behavior?


As a moderator, we often have a set of users on our SE we need to be watching carefully, because they're clearly in the throes of misbehaving but either haven't crossed the line yet to get suspended or are just back from a suspension and may not have used the time to self-correct their behavior. So we informally go in and check their "all activity" views, but it'd be much more effective to have a "watch list" mod feature that we could use to view all activity on users we need to watch.  That's not just "faster," but it needs to include now-deleted content (we often have cases where the community power users rightly edit/delete out the malefactor's flipping out and cursing out another user, or they self-delete to try to cover up later, and there's actually no way for us to see that without going and viewing edit histories/deleted comments explicitly on a question - and how do we know to do that?).   This would be a short list of designated users that we'd get a rss-like feed of all activity, in its form at the time (not modified by later deletes/edits).  Ideally that would include chat too - since all mods share mod in chat, it's very often some off-site mod deletes bad stuff from one of our site users and we just plain never find out about it unless we get curious about some (deleted) in a recent chat-storm.  This is similar to the old request  but that one doesn't highlight the problem with seeing unedited/undeleted/chat content from these users.


Sometimes I want to cite stuff such as commands or library names etc etc. Over markdown I use the `somestuff` citation. But how I can do similar ting in tex?


Type Ahead search using Nautilus on Ubuntu 18.04

Before upgrading to Ubuntu 18.04 LTS, I was using Ubuntu 16.04.1 LTS. When I was in the file browser, I was able to access a file just by writing some letters; it just got selected and it was super fast.   After upgrading, when I start typing a search is launched and it's a little bit slow. I prefer the old method.  I tried searching on the internet but didn't know exactly what to type on the search bar.  How can I disable this automatic search? Thank you


list index not increasing in python if same value appears again

I am trying to check if urls which are present in video_list has audio or not. and if one url appears twice or more then it is giving same index where the url first appeared. for example if i put same url 5 times then it will give index 0 5 times. Is there any way to fix this problem ? the snippet of code is below.     video_list = ["url1", "url1", "url1", "url1", "url1"]     index_list = []     for url in video_list:         stream = os.popen(             "ffmpeg.ffprobe -loglevel error -select_streams a -show_entries stream=codec_type -of csv=p=0 '{}'".format(                 url))         output = stream.read()         if len(output)==0:             index = video_list.index(url)             index_list.append(index)


Updating a specific list in a list of lists in Python

When I try to update a specific list in a list of lists, all the lists are updated. Can someone explain how instead only a specific list can be updated? a = [[]]*55  a[0].append(5)


File manager is not allowed to do anything

I am new to ubuntu. I noticed that the file manager is basically useless. I tried to remove a folder inside /opt/lampp/htdocs but nothing happens after selecting the folder and pressing the button del.  On windows I could just delete it by using the windows explorer.  Is ubuntu only designed for terminal usage?


The contents of my webpage is an XML file and I am saving this content in a string. I have to read the nodes of the XML file. How do I fetch the values of the nodes from this XML file?  Can someone please help me on this?


How to monitor bandwidth use of each device on wifi network

I have in my home a standard Comcast cable internet connection.  I have it going from the wall to a cable modem, and from the modem to a late-series Linksys router, which provides wired and wireless networking.  The vast majority of the users are wireless connections.  For day-to-day tasks, this connection is fully sufficient for all my needs.  However, on regular occassions, we have social gatherings that involve many people bringing laptops and other PCs and using the network and internet simultaneously, frequently for gaming.  I have no administrative oversight over these machines;  they have been known to be riddled with spyware and/or bloatware or be running torrents, legal or otherwise.  The only reason I care is that on a regular basis, one of the machines will flatline my internet bandwith, and consume it all in order to upload/download/spam people/whatever.  When this happens, the latency of the connections for gaming and the like becomes unacceptable, and everyone suffers.    My question is:  Is there a system I can set up whereby I can easily monitor the various systems connected to my wireless connection, see how much bandwith each one is using, and for what ends?  That way, at a glance, I can spot the offending machine and kick it from the connection, without having to go from machine to machine, checking each one's "bandwith used" properties manually, and dealing with the owner's indignant protests all the while.  I understand this will likely involve 3rd-party software and/or hardware;  my issue is I don't even know where to begin.


Why does the preview not show the title?

(e.g. on this site.)  This omission hides the alterations that the site makes automatically and silently upon submission e.g. .


How can I delete the extra page created when using table of contents?  The page shows the name of the table of contents and the rest is empty.


Java: How to make JUnit Tests for wrong variables

I have a set method. The set method accept just a few Strings. If the String is not acceptable the set method gives out an ColorException (Own Exception). How do I make a JUnit test to test if I get a Color Exception? Here my testclass at the moment (I tried it with try catch ...):  @Test // set&check foreground colors for drawings public void setgetFGCol()  {    try {        draw.setFGColor("Red");        assertEquals(draw.getFGColor(), "Red");        draw.setFGColor("Not Acceptable String");        // fail("handle fail?");    } catch (ColorException e) {    System.out.println("Dies ist keine bekannte Farbe");    } }


How can newly created files and directories inherit permission from their parent directory?

I want to set up a folder such that anything created within it (directories, files) inherit default permissions 777. Can we set a umask for a particular directory to achieve this?


is there any difference b/w `  $(this).parent().children(".name")    and  $(this).parent().find(".name")   ? Both these function return the same object. When I do   console.log($(this).parent().children(".name"));   and   console.log($(this).parent().children(".name"));   both these function print object of div name on console..


Targeting specific members of a team who have died

I'm trying to set bedwars up on my server using command blocks, which I'm a little new to. I want a command block that is Repeating, Always active to /execute when a member of Red team dies, for example. But how do I make it so that it would only target that player and not every member of Red team? I thought I might be able to use @s, but I'm not sure.


I'm working through an algorithm text, trying to implement everything in C++ for practice. But I can't seem to figure out templating.I have three files:  algPlayground.h  #include <stdlib.h> #include <vector>  using namespace std;  template <class T> void insertionSort(vector<T>& toSort);    algPlayground.cpp  #include <stdlib.h> #include <vector> #include "algPlayground.h"  using namespace std;  template <class T> void insertionSort(vector<T>& toSort) {     for (int j=1; j < toSort.size(); ++j) {         T key = toSort[j];         int i = j-1;          while (i > -1  && toSort[i] > key) {             toSort[i+1] = toSort[i];             i -= 1;         } // end while      toSort[i+1] = key;      } // end for  } // end insertionSort   and algTest.cpp  #include <stdlib.h> #include <vector> #include <iostream> #include "algPlayground.h"  using namespace std;  int main() {      vector<int> vectorPrime(5);      vectorPrime[0]=5;     vectorPrime[1]=3;     vectorPrime[2]=17;     vectorPrime[3]=8;     vectorPrime[4]=-3;      insertionSort(vectorPrime);     for (int i=0; i<vectorPrime.size(); ++i) {         cout << vectorPrime[i] << " ";     }// end for }   I get the following error:   algTest.cpp:(.text+0xb1): undefined reference to `void insertionSort<int>(std::vector<int, std::allocator<int> >&)' collect2: error: ld returned 1 exit status   I saw  where, someone suggested that the proper way to do this was   template<typename T, typename A> void some_func( std::vector<T,A> const& vec ) { }   but when I make that correction, I'm still getting a similar error:  algTest.cpp:(.text+0xb1): undefined reference to `void insertionSort<int, std::allocator<int> >(std::vector<int, std::allocator<int> >&)' collect2: error: ld returned 1 exit status   I have no idea where I'm going wrong here. Help?


I'd like to add a header containing of a picture (aligned left with text), multirow text and a picture (aligned right with the text). I found fancyhdr which has an inacceptably compilcated documentation, I hope someone has experience. I'd like the complete header to have a blue background spanning over the full textwidth (therefore putting pictures in lhead and rhead doesn't seem to be useful. My markup looks like this:  \usepackage{fancyhdr} \definecolor{arylideyellow}{rgb}{0.91, 0.84, 0.42} \newcommand{\myboxheader}[1]{{\color{blue} #1}} \newcommand{\mybox}[1]{\fcolorbox{gray}{arylideyellow}{#1}} \pagestyle{fancy} %\lhead{\colorbox{blue}{\includegraphics[height=1cm]{logo1.png} }} \chead{\makebox[\textwidth]{\colorbox{blue}{\includegraphics[height=1cm]{logo1.png} \hfill my multiline header (multiline with \newline or \\?) \hfill \includegraphics[height=1cm]{logo2.png} }}} %\rhead{\colorbox{blue}{\includegraphics[height=1cm]{logo2.png} }} \cfoot{I don't care for the footer so far!}  \begin{document} ... \end{document}   It is not moving the two pictures sufficiently to the left and to the right so that they are in line with the text borders.  I checked questions like  or , but they all assume that one can understand the structure of this large set of variables which are put in insufficient relation to each other in the docs, which doesn't apply to me...  Addendum from the comment:    Screenshot of the gap between logos A,B and the center part. I referred with "center part" to everything except the logos.


Windows 7 x64 3.2Gb RAM usable instead of 4Gb installed

I have two questions that bothers me, and for which I couldn't find an adequate answers here.  This is my laptop's configuration: HP Probook 455 G1 (Windows 7 Ultimate x64)   AMD A8-4500M - 1.96Ghz  4096Mb RAM  Chipset AMD A70M Fusion  Chiptype    (dxdiag) AMD Radeon HD 7640G...   Graphics: AMD Radeon HD 8750 2Gb   First, I have a memory problem. In myComputer it displays that only 3.2Gb out of 4Gb is in use. I tried suggestions to change the BIOS but couldn't find where? And in msconfig the maximum memory isn't checked.  Second, because I have 4Gb RAM, and I expect nice performance. Should I buy another RAM module, also 4Gb, so I would have 8Gb in total. When I do that, would it be better for playing games (B4, MW, FC3, etc) and what amount of memory should be usable then? 6.4 or...?  Here's the screenshot:   What to do? Should I change anything now, or leave the 3.2GB? If yes, where and how... Should I upgrade RAM?


I was wondering how I can change my game difficulty and how to change my game to creative. Every time I type in /gamemode 1 or /gamemode creative it comes up with:      I am sorry but you do not have permission to perform this command.   Please contact the server administrators if you believe that this is   an error.   I thought this was weird because I am the server administrator.


Roots of the Taylor approximation of the exponential

While answering another question, I looked at the roots of the $n^{th}$ degree Taylor approximation of the exponential.  $$e^x\approx E_n(x):=\sum_{k=0}^n\frac{x^k}{k!}.$$  Apparently, these root are aligned on a parabola-like smooth curve depending on $n$.    How would you address the problem of finding the equation of this curve, ignoring the exact positions of the roots along it ?


How can I align a multiple-line footnote text right to the footnote mark?

How can I have the following "footnote layout"?  Some Text Some Text Some Text Some Text² Some Text   2 FOOTNOTETEXT FOOTNOTETEXT FOOTNOTETEXT FOOTNOTETEXT FOOTNOTETEXT   FOOTNOTETEXT FOOTNOTETEXT FOOTNOTETEXT FOOTNOTETEXT FOOTNOTETEXT   My problem is that the footnote text starting with the second line is too far left.  \documentclass{article} \usepackage{blindtext}  \begin{document}     \blindtext\footnote{\blindtext} \end{document}


Paying Off Principal of Home vs. Investing In Mutual Fund

I close on my first home October 21. I've locked in a 4.330% APR on a 30-year fixed conventional mortgage and my payment will be ~$800/month. I've put the required 20% down to avoid paying PMI.  However, the $800/m isn't even 25% of my take-home income and it will be < 20% starting January 1st. This is skewed even more by the fact that I'm taking on extra contracting work that will net me an additional $1600/month before taxes.  I'm curious whether or not I should put that extra money into the principal of the home or if I would be better served putting it into a mutual fund. I've noticed quite a few mutual funds have historically had > 4.330% annual return on investment and if I was paying linear interest on the loan it would be no-brainer.  However, since I'll be putting in a small amount of money to the principle of the home at the beginning I'm wondering if I would be in a better position if I funneled that extra cash (We'll say $2000/m) toward the loan instead of investing it.  Is this a good idea?  Thanks.   Edit: Contextual Information   I'm 23 years old. My company does not offer matching, but instead deposits 8% of my salary + cafeteria funds into my 401k at the end of the year regardless of what I do. I have virtually no other debt to speak of (I just paid off my car and I keep my CC balance around $1,000 at any given time). I'm not bound to this location - my reasoning for buying a house is funneling my living expenses into principal instead of having it evaporate at the end of each month. I'm not particularly worried about being unemployed -- My house payment is low enough to where my unemployment check would more than pay for it and I'm in software, which means I can find a job on a whim if I needed to.


Finding the largest triangle inscribed in the unit circle

Among all triangles inscribed in the unit circle, how can the one with the largest area be found?


In ZFC, is it possible for a set to be an element of one of its elements?

I'd like to know if $x\in y \land y\in x$ is possible under the ZFC set theory.  I appreciate any help!


Show that any finite $T_1$-space $X$ is discrete.     My thoughts:- Let $X=${$a_1 , a_2, …,a_n$} and $U$ be any subset of $X$. Let $U=${$a_1 , a_2, …,a_k$} where$k \le n$ thenwe need to show that $U$ is open that is $X \setminus U$ is closed. Now $X \setminus U =$ { $a_{k+1} , …,a_n$ }$ = ⋃_{(k-1)}^{n}a_i$ now each $a_i$ is closed. So the result follows. Does my approach correct?


Can I know who have accepted my edit or rejected it or reason for rejection?

Assume that I have edited one question. Due to reputation limitation my edit goes for review. There either it will be accepted or will be rejected. So can I know who have accepted/rejected my edit? Also can I know the reason for rejection? Also sometimes when I edit some question it shows my edited question, but it shows someone else's name in edited by. Why so?


I am trying to calculate the last two digits of $3^{400}$, but working $\bmod {100}$ is proving intractable. I did the last digit case pretty handily, and now I'm stuck at last two.


Get path to execution directory of Windows Forms application

I would like to get the path to the execution directory of a Windows Forms application. (That is, the directory in which the executable is located.)  Does anyone know of a built-in method in .NET to do this?


While reading Hatcher, he stated "If $p: \tilde{X} \rightarrow X$ is a covering space, then the cardinality of the set $p^{-1}(x)$ is locally constant. I have trouble seeing that this is the case.  I suppose we would want to take a neighborhood $U$ of $x$ then take another point $y \in U$. We would want to look at the path from $x$ to $y$ and this should lift to a path in $\tilde{X}$. But I fail to see how to proceed to show that the cardinalities of $p^{-1}(x)$ and $p^{-1}(y)$ should be the same. Moreover, how would we choose our $U$ 'sufficiently small' for this to be so? Is it the case that if $X$ is connected then all of the fibers have the same cardinality?


Further to my problem :   I ran wireless-info, as instructed, found on this recommended page:  and pasted the results here: No network devices available on 19.04 if I use kernel 5.0.0-23 Wireless works fine on 19.04 if I use kernel 5.0.0-21 Wireless works fine on Windows 10 (dual boot) Realtek RTL8188CE 802.11b/g/n WiFi Adapter [10ec:8176] (rev 01)   Thank you Pilot6 very much, but my adapter is RTL8188CE, and the download referred to in your link is another model, not supported on >18.10.  I can't understand why I get wifi using kernel 5.0.0-21 yet not on 5.0.0-23?  Thank you to everyone.  In case it helps, I have pasted the result of wireless-info script from 19.04 when I am using kernel 5.0.0-21 (on which I do have wifi):   I don't know whether the comparison with the script result on kernel 5.0.0-23 (without wifi) would help?  My problems did actually start with the update I ran a week after I had upgraded from 18.10 (wifi worked fine until then), so is it possible it could be broken packages?  Once again apologies, I am away from my own computer until weekend. Thanks again!


Why I have heard people say There's two cars?

Why I have heard people say either There's two cars which I thought it should be There are two cars.   Or 's has some special meaning to it?


Date is not displayed correctly in my beamer

The date is not displayed correctly in the inferior part of my slides.  \documentclass{beamer} \mode<presentation> {   \usetheme{Madrid}       % or try default, Darmstadt, Warsaw, ...   \usecolortheme{default} % or try albatross, beaver, crane, ...   \usefonttheme{serif}    % or try default, structurebold, ...   \setbeamertemplate{navigation symbols}{}   \setbeamertemplate{caption}[numbered] }  \usepackage[utf8]{inputenc} \usepackage[spanish]{babel} \usepackage{chemfig} \usepackage[version=3]{mhchem} \usepackage{caption} \usepackage{epstopdf} \usepackage{comment} \usepackage{graphicx} \usepackage{subfig} \definecolor{ao(english)}{rgb}{0.0, 0.5, 0.0} \usepackage{pgfpages} \pgfpagesuselayout{resize to}[%   physical paper width=8in, physical paper height=6in] \title[Unal%iversidad Nacional de Colombia ]{} \author{Juan Muñoz }  \date{\today}  \begin{document}  \begin{frame}   \titlepage \end{frame}  % These three lines create an automatically generated table of contents. \begin{frame} \end{frame} \begin{frame} \end{frame} \begin{frame} \end{frame} \begin{frame} \end{frame} \begin{frame} \end{frame} \begin{frame} \end{frame} \begin{frame} \end{frame} \begin{frame} \end{frame} \begin{frame} \end{frame} \begin{frame} \end{frame} \begin{frame} \end{frame} \begin{frame} \end{frame}  \end{document}


Gravity is not a force - how does "accelerating up" work for the entire earth?

So this question has been bothering me for several days now. I've seen many YouTube videos on how "Gravity is not a Force", but no one seems to offer a simple explanation on how does this "accelerating up" thing works for the entire planet. A person sitting in India is accelerating up and so is someone in the United States, for example? How does that actually work? In simple words, exactly what is it that makes us glued to the ground?


I lately installed python 3.5 from the source, but I think I did something wrong during the installation or linking. After this I have problem installing any Ubuntu packages. For example, add-apt-repository doesn't work, even after reinstalling software-properties-common.  $ add-apt-repository  bash: /usr/bin/add-apt-repository: /usr/bin/python3: bad interpreter: No such file or directory   Also, apt-get install will give me this errors  $ sudo apt-get install libraw-dev Reading package lists... Done Building dependency tree        Reading state information... Done The following NEW packages will be installed:   libraw-dev 0 upgraded, 1 newly installed, 0 to remove and 229 not upgraded. 3 not fully installed or removed. Need to get 382 kB/391 kB of archives. After this operation, 1,588 kB of additional disk space will be used. Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty/main libraw-dev amd64 0.15.4-1 [382 kB] Fetched 382 kB in 0s (651 kB/s)     Selecting previously unselected package libraw-dev:amd64. (Reading database ... 295477 files and directories currently installed.) Preparing to unpack .../libraw-dev_0.15.4-1_amd64.deb ... Unpacking libraw-dev:amd64 (0.15.4-1) ... Setting up python3.4 (3.4.3-1ubuntu1~14.04.5) ... Could not find platform independent libraries <prefix> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] Fatal Python error: Py_Initialize: Unable to get the locale encoding ImportError: No module named 'encodings' Aborted dpkg: error processing package python3.4 (--configure):  subprocess installed post-installation script returned error exit status 134 Setting up python3-commandnotfound (0.3ubuntu12) ... /var/lib/dpkg/info/python3-commandnotfound.postinst: 6: /var/lib/dpkg/info/python3-commandnotfound.postinst: py3compile: not found dpkg: error processing package python3-commandnotfound (--configure):  subprocess installed post-installation script returned error exit status 127 dpkg: error processing package software-properties-common (--configure):  package is in a very bad inconsistent state; you should  reinstall it before attempting configuration Setting up libraw-dev:amd64 (0.15.4-1) ... Errors were encountered while processing:  python3.4  python3-commandnotfound  software-properties-common E: Sub-process /usr/bin/dpkg returned an error code (1)   Also, trying to add ppa gives the following error  $ sudo add-apt-repository ppa:dhor/myway sudo: unable to execute /usr/bin/add-apt-repository: No such file or directory   What's going on, any ideas?


When does $a\mid c$ and $b\mid c$ imply $ab\mid c$?

For example,  $$2\mid12,3\mid12,6\mid12$$ But, $$4\mid12,6\mid12,24 \nmid 12$$ When does it work?


How to select the nth row in a SQL database table?

I'm interested in learning some (ideally) database agnostic ways of selecting the nth row from a database table. It would also be interesting to see how this can be achieved using the native functionality of the following databases:    SQL Server MySQL PostgreSQL SQLite Oracle   I am currently doing something like the following in SQL Server 2005, but I'd be interested in seeing other's more agnostic approaches:  WITH Ordered AS ( SELECT ROW_NUMBER() OVER (ORDER BY OrderID) AS RowNumber, OrderID, OrderDate FROM Orders) SELECT * FROM Ordered WHERE RowNumber = 1000000   Credit for the above SQL:   Update: See  regarding the SQL standard. Troels, have you got any links we can cite?


How to test whether a set of four points can form a parallelogram

Given four points $(x_1,y_1)$,$(x_2,y_2)$,$(x_3,y_3)$,$(x_4,y_4)$. How can we efficiently test them to make sure whether they are vertices of a parallelogram?  I think evaluating and comparing the distance between two points seems to be inefficient. What do you think? Do you have any better method?


Proof if $a \vec v = 0$ then $a = 0$ or $\vec v = 0$

I'm kicking myself over this one, but I just can't seem to make the argument rigorous. From Axler's Linear Algebra Done Right:  for a vector space $V$ with an underlying field $F$:  Take an element $a$ from $F$ and $\vec{v}$ from $V$. $a\vec{v}=\vec{0}\implies a=0 $ or $ \vec{v}=\vec{0}$  After only being able to come up with half of a direct proof, I tried doing this by proving the contrapositive $a\neq 0 \wedge \vec{v} \neq \vec{0} \implies a\vec{v}\neq \vec{0}$  Say $a\vec{v}=\vec{u}$. Since $a$ is non-zero, we can divide both sides by $a$.  $$\vec{v}=\frac 1 a \vec{u}$$  If $\vec{u}$ were $\vec{0}$ then by  $$\frac 1 a \vec{0}=\frac 1 a (\vec{0}+\vec{0})\implies\frac 1 a \vec{0}=\vec{0}$$ $v$ would be $0$ as well. Since it isn't by assumption, $\frac 1 a \vec{u}$ cannot be zero and so $\vec{u}$ cannot be as well.   Is this fully rigorous? It seems like a very simple question, but I'm not sure about it. Namely, the last step of $\frac 1 a \vec{u}\neq 0 \implies \vec{u}\neq 0$ doesn't seem obvious. I think I need to use the $1\vec{v}=\vec{v}$ axiom, but I'm not sure how.  Is there a more direct proof? This whole contrapositive business seems a bit clunky for something so simple.


Balance implications of removing unseen-attacker advantage when mutually unseen

The  (PHB p. 194-195) specify that attacking a creature that cannot see you = advantage, and attacking a creature you cannot see = disadvantage:  When you attack a target that you can't see, you have disadvantage on the attack roll. This is true whether you're guessing the target's location or you're targeting a creature you can hear but not see. If the target isn't in the location you targeted, you automatically miss, but the GM typically just says that the attack missed, not whether you guessed the target's location correctly. When a creature can't see you, you have advantage on attack rolls against it. If you are hidden–both unseen and unheard–when you make an attack, you give away your location when the attack hits or misses.  This creates some arguably counterintuitive situations when neither party in a conflict can see each other, like , or . As a result, I am considering making the following modification (in bold) to the second rule in my game:  When a creature can't see you, and you can see it, you have advantage on attack rolls against it.  This would mean that being unable to see your target gives you disadvantage regardless of whether they can see you or not, instead of the disadvantage and the advantage cancelling themselves out. What impact might this have on game balance, in terms of feature interactions or anything else? Does this change cause any major balance shifts?


Do I need to request permission to cite a "personal communication" in a publication?

The title says it all I believe.  Do I need to request permission from a colleague to cite their information as a "personal communication"?  "Do I need to" may be a little restrictive, so I'll also ask, would you feel wronged or offended if your personal comm. were cited without your express permission?


Prove that $\lim_{r\to 0}\int\frac{f(z)}{z-a}dz=2\pi i f(a)$

I've been solving problems from my Complex Analysis course, and I am having trouble solving this one. It says:  Prove that if $f$ is continuous in a neighbourhood of point $a$, then $$\lim_{r\to0}\int_{|z-a|=r}\frac{f(z)}{z-a}dz=2\pi if(a)$$  I know this should be trivial knowing the Cauchy's Formula (because $\text{Ind}_{|z-a|=r}(a)=1$). The problem is that this exercise in my course notes is located before the Cauchy's Formula is introduced, so there must be a way to solve it without using it. The only two things I see in my course notes that may be useful are the definition of winding number: $$\text{Ind}_\gamma(a)=\frac{1}{2\pi i}\int_\gamma\frac{dz}{z-a},$$ and the fact that, given a path $\gamma$ and a function $f:\text{supp}(\gamma)\to\mathbb C$ that is continuous, then te function $F:\mathbb C\setminus\text{supp}(\gamma)\to\mathbb C$ defined as $$F(a)=\int_\gamma\frac{f(z)}{z-a}dz,\quad a\notin\text{supp}(\gamma)$$ is analytical. However I don't see how can it be useful. Also, the statement  says that $f$ is continuous in a neighbourhood of point $a$, and I guess that may be needed to apply whatever it's used to solve it. I feel like this problem should be so trivial but pretending I don't know Cauchy's Formula makes it seem impossible to me. How can I solve this not using Cauchy's Formula? Are those two things that I wrote useful in this problem? Any help will be appreciated, thanks in advance.


we have a new feature annoucement pop up which comes once to the user on our dashboard. when we speak about new feature it is ideal to show the the demo video as well i feel. so we have inluded a video pop up over the main pop up. Is this is right way of doing? or is this against the laws of good UX?


How do you correctly handle the hash/pound/number (#) sign in php/mysql?

I have this website where users can enter stable names to compete in games against other members.  Usually it's fine as I can just escape or use addslashes to handle apostrophes and other such characters.  What I am having an issue with is when users use a hash/pound/number sign in the stable name like the first example below or a bunch of special characters like the second example below...  #a new rising ΔMi−1 = −αΣn=1NDi[n][Σj∈C{i}Fji[n - 1] + Fexti[[n-1]]   When this goes over as part of a url to a second page and the stable is a appended to the URL to be used as a GET variable to pull details from the database, nothing is returned.  I have tried using urlencode, rawurlencode, and percent encoding on the $stable variable as is suggested in other questions on this site but nothing seems to work.  Below is a sample of the code that has the issue...  Referring URL --- mydomain.com/stable.php?stable=#a new rising&season=59  Code for stable.php...  $stable = addslashes($_GET["stable"]); $season = $_GET['season'];  echo $stable;  $sql = "SELECT total, wins, loss, ties FROM History_Stables WHERE stable = '$stable' AND season = '$season'"; $res = $link->query($sql); $arr = $res->fetch_array();  $pts = $arr[total]; $w = $arr[wins]; $l = $arr[loss]; $t = $arr[ties];   And so on.  What exactly am I missing here to get the hash/pound/number sign to be properly encoded as %23?


Beijing to Boston, layover in Japan. Arrive in Haneda and leave from Narita. How about my check-in luggage?

I may need to layover in Japan for my trip from Beijing to Boston. Also I need to change airports from Haneda airport to Narita airport. The layover is about 5 hours 15 minutes. Do I need to take care of my check-in luggage? Usually we don't need to handle the check-in luggage for stopovers. How about this one? They are in different airports! If you have experience in person, please share with us. No visa will be needed for this transit as I read from other posts, right? Thanks, EDIT: One trip, one ticket. I am Chinese with a US green card.


How to calculate the $k$-dimension of a subspace of a polynomial ring?

Let $k$ be an infinite field and $R:=k[x_1,...,x_n]$ the polynomial ring in $n$ indeterminates.  Why is the $k$-dimension of $U$ given by $\begin{pmatrix} n+m-1 \\ m\end{pmatrix}$, when $U$ is the subspace of $R$ defined by the $k$-span of those polynomials which are homogeneous of degree $m$ ?  Thanks for the help!


Just dual installed with win10 but it won't boot in Ubuntu

Just dual installed with windows 10. How does Ubuntu open at startup?


How can I pivot a view into a join so I get multiple query rows as columns in a single row?

I have a view into which I am pulling properties of vehicles, such as tire size, engine capacity, color, number of doors, etc. This data is stored in multiple tables but I have simplified the data into my view.  What I am trying to achieve is to join this view to my main vehicle table so that I can select the various properties as columns in a single row.  My view:  Vehicle_ID  Property     Value 1           Doors        2 1           Engine Size  2 liter 1           Tire Size    50cm 1           Color        Blue 2           Doors        4 2           Engine Size  3 liter   And my main vehicle table:  Vehicle_ID  Description  Date_Bought  Owner_ID 1           BMW M3 Sport 2000/12/23   1 2           Audi A5 3XL  2015/03/19   1   So what I would like to get out is something like  Vehicle ID  Description   Date_Bought   Doors   [Engine Size]  [Tire Size]  [Color] 1           BMW M3 Sport  2000/12/23    2       2 liter        50cm         Blue   My overall SQL knowledge is fairly limited, I'm pretty good with JOINS and stuff, but the logic of the PIVOT command and its syntax completely escape me.


I've done everything but kill the developer and am missing the Heart Pendant.  I've spent a couple hours AFKing the ocean and no fin.  I have no clue where the Heart Pendant is and can't find an answer anywhere.


Dual boot Ubuntu+Windows 8: Ubuntu won't show up

Yes, there are many posts on this site related to this problem especially  and  . But I'm still unable solve the problem.  I disable fast boot and secure boot in Windows 8.1 and installed Xubuntu Trusty from a Live disk but no GRUB menu whatsoever. The peculiar part is that in the BIOS the "Boot Device Priority" has only two options: "Windows Boot Manager" and "Disabled". I think it's the "Disabled" thing that should be enables but unfortunately I don't know what it is exactly!  I ran Boot Repair from live disk twice with no benefit. The machine is a Samsung ATIV 9. I understand that this question is more about a particular machine's BIOS and Win 8 but I need the answer to be able to use Ubuntu.  Here is the lower part of the output of Boot Repair:  /boot/efi detected in the fstab of sda8: UUID=1C3F-D310     (sda2)  *******lspci -nnk | grep -iA3 vga 00:02.0 VGA compatible controller [0300]: Intel Corporation Haswell-ULT Integrated Graphics Controller [8086:0a16] (rev 09) Subsystem: Samsung Electronics Co Ltd Device [144d:c109] Kernel driver in use: i915 00:03.0 Audio device [0403]: Intel Corporation Haswell-ULT HD Audio Controller [8086:0a0c] (rev 09) *******  grub-install: info: executing modprobe efivars 2>/dev/null. grub-install: info: Looking for /sys/firmware/efi ... grub-install: info: ... not found. Looking for /proc/device-tree ... grub-install: info: ... not found. grub-install: error: /usr/lib/grub/i386-pc/modinfo.sh doesn't exist. Please specify --target or --directory. ,. GRUB too old for SecureBoot. Please report this message to boot.repair@gmail.com  chroot /mnt/boot-sav/sda8 efibootmgr -v Fatal: Couldn't open either sysfs or procfs directories for accessing EFI variables. Try 'modprobe efivars' as root.  chroot /mnt/boot-sav/sda8 uname -r Kernel: 3.13.0-24-generic  Reinstall the grub-efi of sda8 grub-install: error: /usr/lib/grub/i386-pc/modinfo.sh doesn't exist. Please specify --target or --directory. grub-install : exit code of grub-install :1 Error: no grub*.efi generated. Please report this message to boot.repair@gmail.com  Add /mnt/boot-sav/sda8/boot/efi efi entries in /mnt/boot-sav/sda8/etc/grub.d/25_custom Adding custom /mnt/boot-sav/sda8/boot/efi/EFI/Microsoft/Boot/bootmgfw.efi Adding custom /mnt/boot-sav/sda8/boot/efi/EFI/Boot/bootx64.efi sda2/bootx64.efi already added sda2/bootmgfw.efi already added Add /mnt/boot-sav/sda6 efi entries in /mnt/boot-sav/sda8/etc/grub.d/25_custom Adding custom /mnt/boot-sav/sda6/EFI/Asclepius/bootx64.efi  ---- Grub-install verbose /usr/sbin/grub-install: 1: /usr/sbin/grub-install: cannot create nŵ?ŵ????T?T?@T?@DD?Påtd?ŒÒ?ŒÒLŒÒLl9l9?Qåtd??Råtd?ŵ=?ŵ=nŵ=n?????/lib64/ld-linux-x86-64.so.2???GNU??????GNUm: Directory nonexistent + ELF???? @????@@@@@ø?ø????8?8?@8?@?????@@d:?d:? ??ŵ=?ŵ=nŵ=nž{ ? ??? /usr/sbin/grub-install: 1: /usr/sbin/grub-install: ELF????: not found /usr/sbin/grub-install: 2: /usr/sbin/grub-install: Syntax error: ")" unexpected -------- /usr/sbin/grub-install : exit code of grub-install :2 ---- End of grub-install verbose   chroot /mnt/boot-sav/sda8 efibootmgr -v Fatal: Couldn't open either sysfs or procfs directories for accessing EFI variables. Try 'modprobe efivars' as root.  chroot /mnt/boot-sav/sda8 update-grub Generating grub configuration file ... Found linux image: /boot/vmlinuz-3.13.0-32-generic Found initrd image: /boot/initrd.img-3.13.0-32-generic Found linux image: /boot/vmlinuz-3.13.0-24-generic Found initrd image: /boot/initrd.img-3.13.0-24-generic Found Windows 8 (loader) on /dev/sda2 Unhide GRUB boot menu in sda8/boot/grub/grub.cfg  An error occurred during the repair.  You can now reboot your computer.   You may want to retry after deactivating the [Backup and rename Windows EFI files] option.  The boot of your PC is in Legacy mode. You may want to retry after changing it to EFI mode.


How can gravitational waves dissipate the energy carried by them?

I am not an expert on GR or gravitational waves but i have been reading about them and i wondered about where and how do these gravitational waves dump their energy? I read that the black hole collision detected by LIGO had energy equivalent to the mass of 3 solar masses in the form of gravitational waves. So, my question is where does this energy end up going?


Show that $\int_{0}^{\pi} xf(\sin(x))\text{d}x = \frac{\pi}{2}\int_{0}^{\pi}f(\sin(x))\text{d}x$

Show that   $$\int_{0}^{\pi} xf(\sin(x))\text{d}x = \frac{\pi}{2}\int_{0}^{\pi}f(\sin(x))\text{d}x$$  this is so confusing. i have no idea how to even start. im thinking integration by parts but that doesnt seem right.  hope you guys can help!!


I am writing a short story using past tense, but I am a little bit confused when it comes to writing this part:     She had never seen a man as athletic as him before.  She knew Japanese men (were / are) not as tall as British men...   Is it appropriate to shift tense here? Or do I use the past tense throughout? The narrator is stating a fact about a fictional world in my story.  Hope my question and explanation makes sense. Thanks!


I'm trying to remember "the" word which is defined as being a statement said in public which is so obvious that it is embarrassing for everyone to have to listen to. For example: if someone enters a house saying that it's raining outside, which can be clearly seen through a window by everyone inside the house, then this statement is so obvious that it is, let's just say, a statement which is not so intelligent a statement for someone to make - such as the statement I just made. HA


Use of "save" or "save for" in sentences

Take the following example sentence:     There was nothing there save for the warmth of the immeasurable light.   Is this the proper use of save for?  Is there ever a proper use of save for? Can someone explain to me the correct usage, if there is one, and possibly some etymology of this phrase?  Examples of other correct use would be appreciated, though not critical.


How do I generate a smooth random horizontal 2D tunnel?

I'd like to create a smoother version of the navigable and quite natural-looking random tunnel found in .  It should ideally be...   infinite, so more can be generated as the player progresses; parametrised, allowing control of its thickness over time; made of smooth curves, not rectangles as in the above game; precomputable, as knowing its bounds in advance allows collision detection for e.g. positioning powerups inside the tunnel.   I'm looking for a generic method I could implement myself. Further parameters and optimizations are welcome.  Asking here was suggested . I think this fits in both places, as it's as much about the algorithm as about gamedev.


How many distinct ways are there to $2$-color the $8$ vertices of a cube?

How many distinct ways are there to $2$-color the $8$ vertices of a cube, with colorings only considered distinct up to rotation?


In 9th grade I had an argument with my teacher that   ${i}^{3}=i$  where $i=\sqrt{-1}$  But my teacher insisted (as is the accepted case) that:  ${i}^{3}=-i$  My Solution:  ${i}^3=(\sqrt{-1})^3$  ${i}^3=\sqrt{(-1)^3}$  ${i}^3=\sqrt{-1\times-1\times-1}$  ${i}^3=\sqrt{-1}$  ${i}^3=i$  Generally accepted solution:  ${i}^3=(\sqrt{-1})^3$  ${i}^3=\sqrt{-1}\times\sqrt{-1}\times\sqrt{-1}$  ${i}^3=-\sqrt{-1}$  ${i}^3=-i$  What is so wrong with my approach? Is it not logical?  I am using the positive square root. There seems to be something about the order in which the power should be raised? There must be a logical reason, and I need help understanding it.


Groups of even order have an element whose order is 2.

I was trying to prove this question.   Q. If G is a group of even order, prove that it has an element a, such that a$\neq$e satisfying $a^2$=e.   I tried solving it using Principle of mathematical induction.  So, Let O(G)=2m, where m$\in$ $N$.   We proceed by induction on m.   For m=1, O(G)=2, $\therefore$ G contains two elements.  G=$\{{e,a}\}$. Now, e has order 1. So, a can not have order 1. $\therefore$ a has order 2. So, it true for m=1.  Now, let it be true for m=k.  Then, we have a group G of order 2k, where $\exists$ an element a$\in$ G, whose order is 2.   We wish to prove it for m=k+1.   Then G has order 2k+2.   I don't know how to proceed further.


80s/90s book where boy stumbles on game where aliens gamble their planets

I don't remember much about it other than the setting. It's about a boy who one night stumbles upon some different alien races playing a game in which their civilizations will end if they lose. He gets involved in the game somehow and is hunted.


Proving that the unities of a ring form a group under multiplication

I am presented with the following task:     Show that if $U$ is the collection of all units in a ring $\langle R, +, \cdot\rangle$ with unity, then $\langle U, \cdot\rangle$ is a group.   I am still not confident with proofs in Abstract Algebra, and I'd like to receive some verification/slaughter/constructive critique on my reasoning here. I do not know if there are any mistakes, or how serious they are.     We know that there is an identity element, since the unity itself is a unit, and therefore in the group. It follows directly from the definition of a unit that there exists an inverse for every element in the group, and associativity follows directly from the Ring-axioms. As for closure, we need to show that the product of two units is also a unit. Let $a, b \in U$ be two elements with the property that $a\cdot b \ne e$, where $e$ is the identity element in $\langle U, \cdot \rangle$. We know that there exists elements $a', b' \in U$ with the property that $a' \cdot a = e = a' \cdot a$ and $b' \cdot b = e = b \cdot b'$. Let $a', b'$ be two such elements with the property that $a' \cdot b' \ne e$. We may now compute $(a\cdot b) \cdot (a' \cdot b')$, and from the Ring-axioms we have associativity under multiplication, so we may write the expression as $a \cdot (b \cdot a' \cdot b') = a \cdot (b \cdot b' \cdot a') = a \cdot (e \cdot a') = a \cdot a' = e$. Thus we have shown that the product of any two elements is a unity, which leads to closure. All the group-axioms are met and $\langle U, \cdot \rangle$ is a group.    I have to apologize if you find the argument needlessly long; I've been having some trouble with assuming things I am not supposed to assume (like what I'm going to prove), so I wanted to stay clear of that.


Are there any GPS recording applications for the iPhone?

I was wondering if there was an iPhone application that would continuously read the GPS location and save it for later analysis. For example, I would like to be able to tell where I was at certain point of time, or how long did it take me to travel from one place to another. Is there such an app?


How to make regex expression to find all words after (africa)

I Have text and I want to use regex expression to find all words come after (Africa is): my code   pattern = r'\africa\sis\s\w+'  re.findall(pattern,a)  the results should contain africa is (some words)  but I got this error  error: bad escape \i at position 0


What is the purpose of the 7805 input capacitor?

Most 7805 datasheets specify an input capacitor of 0.33uF or so. This one (the LM340 ) at least specifies that the cap is only required if the regulator is "far" from the power supply filter, without further qualifying what "far" means. 0.33uF is nowhere near low impedance at power line ripple frequencies so we can rule that out.      Edit: the differences are self evident in the title of the question.


Prove that $\{a_n\}$ is a monotonically increasing sequence and it bounded by $c$.

For $c > 1$, define sequence $\{a_n\}$ with $a_1 = \sqrt{c(c-1)}$ and $a_{n+1} = \sqrt{c(c-1) + a_n}$, $n > 1$. Prove that $\{a_n\}$ is a monotonically increasing   sequence and it's bounded by $c$.   My attempt:  Obviously $a_1 < a_2$, by induction, suppose $a_n > a_{n-1}$, i.e. $a_n - a_{n-1} > 0$. We have $a_{n+1}^2 - a_n^2 = c(c-1) + a_n - c(c-1) - a_{n-1} = a_n - a_{n-1} > 0$. Hence, $\{a_n\}$ is a monotonically increasing sequence. Otherwise, $a_1 = \sqrt{c(c-1)} \leq c$ because $c^2 - a_1^2 = c^2 - c(c-1) = c \geq 0$, by induction, suppose $a_n \leq c$, we prove that $a_{n+1} \leq c$. $a_{n+1} = \sqrt{c(c-1) + a_n} < \sqrt{c(c-1) + c}$, but $c^2 - \left(\sqrt{c(c-1) + c}\right)^2 \geq 0$, then $a_{n+1} \leq c$.  Is this solution true? Thank all!


What do square brackets mean without the "if" on the left?

As far as I know, square brackets are used to enclose an expression usually in if else statements.  But I found square brackets being used without the "if" as follows:  [ -r /etc/profile.d/java.sh ] && . /etc/profile.d/java.sh   in the following script.  #!/bin/bash### BEGIN INIT INFO   # Provides:          jbossas7   # Required-Start:    $local_fs $remote_fs $network $syslog   # Required-Stop:     $local_fs $remote_fs $network $syslog   # Default-Start:     2 3 4 5   # Default-Stop:      0 1 6   # Short-Description: Start/Stop JBoss AS 7   ### END INIT INFO   # chkconfig: 35 92 1    ## Include some script files in order to set and export environmental variables   ## as well as add the appropriate executables to $PATH.   [ -r /etc/profile.d/java.sh ] && . /etc/profile.d/java.sh   [ -r /etc/profile.d/jboss.sh ] && . /etc/profile.d/jboss.sh    JBOSS_HOME=/sw/AS7    AS7_OPTS="$AS7_OPTS -Dorg.apache.tomcat.util.http.ServerCookie.ALLOW_HTTP_SEPARATORS_IN_V0=true"   ## See AS7-1625   AS7_OPTS="$AS7_OPTS -Djboss.bind.address.management=0.0.0.0"   AS7_OPTS="$AS7_OPTS -Djboss.bind.address=0.0.0.0"    case "$1" in       start)           echo "Starting JBoss AS 7..."           #sudo -u jboss sh ${JBOSS_HOME}/bin/standalone.sh $AS7_OPTS           ##  If running as user "jboss"           #start-stop-daemon --start --quiet --background --chuid jboss --exec ${JBOSS_HOME}/bin/standalone.sh $AS7_OPTS   ## Ubuntu           ${JBOSS_HOME}/bin/standalone.sh $AS7_OPTS &       ;;       stop)           echo "Stopping JBoss AS 7..."           #sudo -u jboss sh ${JBOSS_HOME}/bin/jboss-admin.sh --connect command=:shutdown            ##  If running as user "jboss"           #start-stop-daemon --start --quiet --background --chuid jboss --exec ${JBOSS_HOME}/bin/jboss-admin.sh -- --connect command=:shutdown     ## Ubuntu           ${JBOSS_HOME}/bin/jboss-cli.sh --connect command=:shutdown       ;;       *)           echo "Usage: /etc/init.d/jbossas7 {start|stop}"; exit 1;       ;;   esac    exit 0     What do square brackets do without the "if"? I mean, exactly, what do they mean when used in that context?  This isn't a duplicate of  in which the OP used "if" which I don't have a problem with. In this question, brackets were used in a counter intuitive way. That question and this question may have the same answer but they are two different questions.


How can I use Overwatch with no internet connection?

This question has probably been asked before: how can I play Overwatch without WiFi? When I do have WiFi, I can play against AI, but that's kinda pointless if I can just play online; with friends. So, is there a hack or game-code change I can use to play with AI with no  WiFi?


I'm planning to fresh install ubuntu with windows 7 running beside it. Could anyone give me tips on how to do this and which to do first? Also how exactly to partition.


How to create a webform node with multi lingual language like french,spanish in drupal 6. so that when i hit the url it should display in particular language? webform localization is not supporting in drupal6. is there any other way around to do this. pls help?


I'm trying to delete an Item from a list using the following code:   using System; using Microsoft.SharePoint.Client; using SP = Microsoft.SharePoint.Client;  namespace Microsoft.SDK.SharePointServices.Samples { class DeleteListItem {     static void Main()     {            string siteUrl = "http://MyServer/sites/MySiteCollection";          ClientContext clientContext = new ClientContext(siteUrl);         SP.List oList = clientContext.Web.Lists.GetByTitle("Announcements");         ListItem oListItem = oList.GetItemById(2);          oListItem.DeleteObject();          clientContext.ExecuteQuery();      } }   }  for any item Id I try to delete, I  always get the same  message :       Item does not exist. It may have been deleted by another user.


In Ubuntu 13.04, cannot install libssl-dev

How can I get around the dependency problem when installing libssl-dev?  The problem:  $ sudo apt-get install libssl-dev 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:  libssl-dev : Depends: libssl1.0.0 (= 1.0.1c-4ubuntu8) but 1.0.1c-4ubuntu8.1 is to be installed E: Unable to correct problems, you have held broken packages.     System info:  $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 13.04 Release:    13.04 Codename:   raring  $ uname -a Linux Compy 3.8.0-30-generic #44-Ubuntu SMP Thu Aug 22 20:52:24 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux     My question looks similar to  - but no, apt-get update does not do a thing for me.


Simple undivided plane UV map not behaving as expected

I’m running into a UV map error (or at least it’s not behaving as I expected it would). I have a simple plane with 4 points and I’ve set up the uv to a sqaure texture (images below). I would expect the texture to be applied evenly, following the trapezoid shape of the plane, and instead it’s sort of bending along the middle. I’ve tried applying visual and object transforms, but that hasn’t changed anything. I've also tried subdividing and triangulating the faces, only for it to continue to bend the texture in a way I wouldn't expect. Does anyone know if this is how it’s supposed to be behaving or maybe I have a setting wrong? Thanks!  ^ UV map for the plane, snapped to pixels  ^ how the plane is appearing


How to collapse unused parameters in moderncv's \cventry-command?

I am writing my CV using the moderncv package. I want to adjust the CV to meet my needs. Therefore I amplified the maximum number of parameters possible in the \cventry command. However, now I have some ugly spacing in case I do NOT use all parameters as shown in the attached pic (ugly spacing is marked with red). Please see also my MWE. In general there are two scenarios: First (please see the first red box), using four parameters I obtain ugly spacing. Second (please refer to second red box), using three parameters I obtain the same ugly spacing.  So, what I would like to obtain is to have "intelligent" commands. Depending on the number of parameters used (which will at least be three, as done in case of second red box), I want latex to collapse the spacing. Is that possible?    \documentclass[11pt,a4paper,sans]{moderncv} \moderncvstyle{banking} \moderncvcolor{blue} \usepackage[scale=0.7]{geometry} \name{John}{Doe} \title{Resume title} \address{street and number}{postcode city}{country} \phone[mobile]{+1~(234)~567~890}  \renewcommand*{\cventry}[9][.4em]{%  \begin{tabular*}{\textwidth}{l@{\extracolsep{\fill}}r}% \ifthenelse{\equal{#4}{}}{}{\bfseries #4} & \ifthenelse{\equal{#5}{}}{}        {\bfseries #5\\} \itshape #3\ifthenelse{\equal{#6}{}}{}{, #6} & \ifthenelse{\equal{#2#7}{}}{\\}{\itshape #2\\} \ifthenelse{\equal{#7}{}}{}{#7\\}     \ifthenelse{\equal{#8}{}}{}{#8\\}%  \end{tabular*}%  \par\addvspace{#1}% }  \begin{document} \makecvtitle \section{Education} \cventry{Grade}{Degree}{Institution}{year--year}{M.Sc.}{Majors}{Majors}{} \cventry{}{Degree}{Institution}{City}{}{}{}{} \cventry{year--year}{Degree}{Institution}{City}{Grade}{Majors}{Majors}{} \end{document}


Cannot install Metrader 4 with Wine on Ubuntu 14.04

I'm trying to install metatrader 4 but every time the installation process hangs up while trying to download the necessary files from internet. Seems that it cannot access at internet at all... why?  Here is the photo of the installer searching for an "access point" to download files.    I tried all possible solutions/ideas:   install the latest Wine version (1.9.x) install winetricks install the Microsoft Compatibility Layer install core fonts with winetricks vcrun6 command install an older version of the metatrader4   Nothing works... I'm crying...


How can I do string replace with lambda function in Java

In JavaScript it's possible to use lambda functions with the replace function, in Java string.replaceAll will not allow this. How can I do the same thing in as below in Java?:  replaceDotHandlesWithUnderscore(input) {   // e.g. {my.nested.value} to {my_nested_value}   // e.g. {my.nested.value, select, true {Yes} false {No}} to {my_nested_value, select, true {Yes} no {false}}   return input.replace(     /\{(\s*)(\w+(\.\w+)*)/g,     (matches, space, handle) => `{${space}${handle.replace(/\./g, '_')}`   ); }   It's fine to go with Java 1.8 or 1.9 solutions to this.


Show $\Phi$ is true in a model $M$ if and only if ($\forall x$)$\Phi$ is true in $M$

I have to proof that $\Phi$  is true in a model $M$ if and only if ($\forall x$)$\Phi$ is true in $M$.  I read the chapter in my textbook several times and already found this question    But i did not understand this. I guess what i have to proof is, that $\Phi$ in a model is only true if $\Phi$ is true for all possible values of all variables in $\Phi$  I would be very thankful if someone can show me how to proof this. Thank you!  Edit:  A formula $\Phi$ of L(R, F, C) is true in the model $M$ = (D, I) for L(R, F, C) provided, $\Phi^{I,A}$ = t for all assignments A. A formula $\Phi$ is valid if $\Phi$ is true in all models for the language. A set S of formulas is satisfiable in M = (D, I), provided there is some assignment A (called a satisfying assignment) such that $\Phi^{I,A}$ = t for all $\Phi$     $\in$ S. S is satisfiable if it is satisfiable in some model.


There doesnt exist a holomorphic $f: \mathbb C\setminus0 \rightarrow \mathbb C\setminus 0 $, so that $e^{f(z)} = z $ for all $z \in \mathbb C \setminus 0 $  I tried to work with the derivative of f(z) but i didnt manage to get anything out of it.


How do I change my IP Address on my computer?

My laptop is running Windows 7 and I connect my Wifi to my house. How do I change my computer's IP address without having to reset my internet router?


First of all I'm sorry for my little knowledge. I've been researching about the eval function and realized that it is usually recognized as a security fault. Some like it while others hate it, so much so good. I'm not here asking when to use it or not.I want to know why it was not removed from JavaScript?


adding EventListener on unknown number of buttons

I have an issue where I have a for loop, that appends some data and builds a table.  for (var p = 0; p < Tbarray.length; p++)  {     if (notfirsttime == 'false')      {         $("#Ttable").append('
Course	Places left	Time	Date
');         $("#Ttable").append('
' + Tbarray[p][0] + '	' + Tbarray[p][3] + '	' + Tbarray[p][2] + '	' + Tbarray[p][1] + '	<button  role="button" id="Signupbutton'+p+'">Sign Up</button>
');     }      notfirsttime = 'true';      } else      {        $("#Ttable").append('
' + Tbarray[p][0] + '	' + Tbarray[p][3] + '	' + Tbarray[p][2] + '	' + Tbarray[p][1] + '	<button  role="button" id="Signupbutton'+p+'">Sign Up</button>
');     }  }   now this code also adds a button at the end of the row of and I could just make a hundred or so   var buttonSignup = document.getElementById("Signupbutton0");  if (buttonSignup) {     buttonSignup.addEventListener('click', test); }   And then at least the first 100 buttons will work, but I don't know how many rows there will be. This will go up and down. I'm looking for a better way to do this. If anyone has some ideas that would be really helpful.


Do class or subclass features that relate to spellcasting apply when producing a spell's effect from an Artificer's Spell-Storing Item?

In  about a homebrewed Artificer subclass, I was asked in a comment how one of the abilities that modifies spellcasting would interact with casting spells stored within a my subclass's variant version of the Spell-Storing Item feature that all Artificers get. I'd not considered it before, but I suspect it should work the same as a normal spell cast from a normal Spell-Storing Item.  But as it turns out, I'm not actually sure how that works for normal Artificers either. The relevant rules text for the  feature says (from Eberron: Rising from the Last War, page 58, and the latest version of Wayfinder's Guide to Eberron, p. 179-180) says:     While holding the object, a creature can take an action to produce the spell's effect from it, using your spellcasting ability modifier. If the spell requires concentration, the creature must concentrate.    Notable in that rules text is that it does not say that the creature using the object casts the spell, only that it produces the spell's effect. This seems relevant because the top voted answers to  seem to mostly attach to the "cast" terminology used by most magical items that grant extra spells.  In combination with the answers to that question, it seems like the different language (not using "cast") may mean that using a Spell-Storing Item isn't spellcasting, and so no feature that modifies spellcasting will apply. But there's enough ambiguity that I want to ask about it here.  Do an artificer's spellcasting-related features apply to spells they store in an item? Do spellcasting-related features of the creature using the Spell-Storing Item (which may or may not be the Artificer themself) apply?  For a concrete example, if an Artillerist stores Scorching Ray in a wand, staff or rod that they had previously made their Arcane Firearm, would they get an get an extra d8 to add to one of the spell's damage rolls when they use the stored spell?


How to get rid of automatic fill in html?

i want to get rid of the auto fill in   i am new to html and i cant ix my problem. if you dont understand me ill be more than happy to send a screenshot using gmail.  <FORM action="Database.php" method="GET"> First Name <input type="text" name="firstName">
   Last Name


Require more reviews for First Posts queue

In the actual review system I find that many post or at least first questions are not in the list, but their are not good question, they need  not just to improve the formatting, but to add the tag of the programming language, or point that it is incomplete, for example:  or .  I couldn't find a protocol or manual to review the first post, or a way to check if it is really reviewed and not just, "No Action Needed" when it really needs some improvements.  you can check that it is a concern of the community.  What I propose is to review each first post/question at least twice. Or at least give guidelines to mark as checked before being able to skip or mark it as no action needed.


How to prevent browser from caching form fields?

I have a textbox in a form field that gets populated by the user.  However currently (in Firefox 10) the user can navigate away from the page, then come back, and the input will be populated with its previous value.  I think this creates for a confusing user experience, and would like to prevent it.  Is there a way to do this without manually resetting the value?  I have tried changing the response to not cache as well as setting autocomplete='false' with no luck.


Why not create a community about resource recomendations?

Some appropriate resource (such as books, software, and open course) are very import for a beginner. Why not create a resource recommendation community?


I was wondering, can a prime number be negative? We had a question over at  which stated that prime generation with openssl:  openssl dhparam -text 1024   results in a 1024-bit number to which leading zeros are added (resulting in 1032 bits). It could be the case that this is done to sign the integer,  however it was my believe that negative primes did not exist?


How prove this $\{a\}\cdot\{b\}\cdot\{c\}=0$ if $\lfloor na\rfloor+\lfloor nb\rfloor=\lfloor nc\rfloor$

Interesting problem     Let $a,b,c$ be real numbers such that   $$\lfloor na\rfloor+\lfloor nb\rfloor=\lfloor nc\rfloor$$   for all postive integers $n$.   Show that:   $$\{a\}\cdot\{b\}\cdot\{c\}=0$$   where $\{x\}=x-\lfloor x\rfloor$   My partial work: since for any postive intger $n$,have $$\lfloor na\rfloor+\lfloor nb\rfloor=\lfloor nc\rfloor$$ then we have $$a+b=c$$ because consider $$\Longrightarrow \lim_{n\to\infty}\dfrac{\lfloor na\rfloor+\lfloor nb\rfloor}{\lfloor nc\rfloor}=1$$ since $x-1<\lfloor x\rfloor \le x$,so we have $$na+nb-2<\lfloor na\rfloor+\lfloor nb\rfloor\le na+nb$$ so $$1=\lim_{n\to\infty}\dfrac{\lfloor na\rfloor+\lfloor nb\rfloor}{\lfloor nc\rfloor}=\dfrac{a+b}{c}$$ I guess we can use by contradiction prove this. Assume that $\{a\}\cdot\{b\}\cdot\{c\}\neq0$, then $a,b,c$ all not integer.


Can an analog of ChaCha with 64-bit words be defined, and would it be secure?

Blake2b has a lightning fast compression function with more-than-overkill security even against quantum attacks.  It seems to be based on ChaCha, but with 64-bit words and different rotation constants.  Is it possible to use this compression function with feed-forward as a stream cipher?  If not, would a different variation on ChaCha with a 64-bit word size be secure?


To hear something makes it audible, to see is visible, so what are touch and smell?

As the title states, if sound is audible, light is visible, what is a smell? And what is an object when you touch it?


EDIT     The issue as exposed here is   solved (about files modes of the .ssh folder.      But an other issue persists so I create a new question : >    I can no longer connect with ssh-rsa key for a specific user, but it still work for other users.  The git user defined as follow :  # cat /etc/passwd | grep git git:x:1002:1002:,,,:/var/git:/bin/bash   So you noticed that this is the git user thus its home is /var/git, it's not in /home.  Now, ssh always prompt me for password :  $ ssh git@srv git@srv's password:   I checked logs :  # tail -n 1 /var/log/auth.log [...] Authentication refused: bad ownership or modes for file /var/git/.ssh/authorized_keys   So authorized_keys as some ownership or modes missconfiguration.  I don't understand because here is the conf for this file :  # ls -l /var/git/.ssh/ | grep auth -rw-rw-r-- 1 git git 394 mai   22 17:39 authorized_keys   And here is (in case...) the parent .ssh dir:  # ls -al /var/git/ | grep ssh drwxrwxr-x  2 git  git  4096 mai   22 17:39 .ssh   And the $HOME directory :  # ls -l /var/ | grep git drwxr-xr-x  7 git  git    4096 mai   27 10:49 git   So owners are always git, like owner groups. And files are readable so where could be the trick ?


"I had better go now." or "I have better go now."

Why did the writer use "had"? Why didn't he use "have?      Well, thank you for showing me a great dance. I had better go now.


Trying to identify a science fiction space opera written by a woman that I read between 1976 and 1985

There is a book I read between 1976 and 1985 from the Milpitas, Ca. library.  It was a hard copy not a paperback.  It is not, , I have that one.  It may have been written by a woman or someone  whose last name starts with an “L.”  A large crew of men and women are in a new super fast space ship They are being chased by someone but they outrun them. They outrun the collapse of the universe in a super fast spaceship, but they have lost their home planet.  They watch as the universe collapses and is reborn.  They come across a planet made of super metal and they rebuild their ship with it  They go into orbit around a planet that looks like it can support life like theirs.  They are moving super fast. They look like a ring of radiation going around the planet.  They put down 10 super metal markers with scientific info onto the surface of the planet  They watch the planet develop and form life like the dinosaurs and then evolve  Into human like life forms.  They broadcast  movies of the early life forms and their visits to early civilizations down to the planet.  They identify the positions of all 10 markers on the planet, some had been lost, then they were found.  There are  2 warring countries on the planet.  They block or turn off the sun to freeze the planet and force the countries to form one world government.  The planet gets freezing cold and the people start to freeze.  The countries agree to form one world government.  The people on the ship are welcomed to the planet.


How to set custom brightness as default in Ubuntu 14.04

My problem is whenever I boot the PC Ubuntu is loaded with full brightness... So every time I have to reduce brightness on booting and then start my work... So is there a way to set custom brightness to default so that I don't have to reduce brightness every time... Thanks for help...


What are the incentives for universities to recruit athletic student

Is there any special incentive for universities to have many athletic students? I am speaking based on my personal observation on North American universities.  I often hear that universities look for students that are "well-rounded", but I do not believe that alone explains the numerous special early offers given to athletic students. This phenomenon, combined with some acknowledged cynicism, led me to this question.


Show that $\sum\limits_{k=1}^\infty \frac{1}{k(k+1)(k+2)\cdots (k+p)}=\frac{1}{p!p} $ for every positive integer $p$

I have to prove that  $$\sum_{k=1}^\infty \frac{1}{k(k+1)(k+2)\cdots (k+p)}=\dfrac{1}{p!p}$$  How can I do that?


How to re-ask a quesion if the original accepted answer is irrelevant?

This could apply to many situations, but here's just one:  Say Alice asks a question on SO saying "how do I do X?".  Bob then answers the question with "use library Y", and provides a link to the Y page.  Fast-forward several months later, where library Y is outdated and no longer maintained, and the official site that Bob linked to is 404'd.  Carol needs to do X, but can't use library Y like Bob's answer suggested, but she can't post to SO because it'll be closed as a exact duplicate of Alice's question.


I have been trying to create a donut to practice my Blender-skills and so far, it went pretty well. I have made a donut with icing, sprinkles (particles) and some texture (paint) and because I liked the result, I tried to render the image. However, the render leaves the icing out (see image)]! I have been searching the internet and found some solutions but none of them worked. I have made sure the render-icon in the viewport is checked and the icing should be visible to the camera (box is checked: object - visibility - camera). I have absolutely no clue on what to try next... Maybe someone here has a useful tip...? P.S. Is it possible that it has something to do with the particles? I used this donut document to make a donut before and that one rendered completely. This time I tried to make metallic looking particles and now I have this problem... That is the only thing I did different (as far as I'm aware). Every tip is much appreciated!


Was Dumbledore being modest when he said He could not beat Voldemort?

Dumbledore once said:  'I knew that Voldemort's knowledge of magic is perhaps more extensive than any wizard alive. I knew that even my most complex and powerful protective spells and charms were unlikely to be invincible if he ever returned to full power. ...' Harry Potter and the Order of the Phoenix - p.736 - Bloomsbury - Chapter 37, The Lost Prophecy  So in this quote was he trying to be modest or could he really not defend Voldemort in his full power?


Why does our visible range not include infrared or UV radiation?

As the radiation peak of the sun is in the UV region and since at around room temperature materials emit radiation at IR, I wonder why our eyes are not capable of using these wavelengths. I guess there is a reason why we exactly only see the region between these intensity peaks?


What is accountsd and why does it want to use the "login" keychain?

Periodically, I'm seeing this keychain dialog pop up:    I click 'Cancel', then it pops up again, then I click 'Cancel' again, and it goes away for a while.  (Maybe an hour or two, I haven't timed it.)  I haven't noticed anything not working right.  What's going on here?  If it matters, this is OS X 10.8.2.


I'm writing my thesis and I'd like to insert A3 pages within my A4 document. Is it possible to place figures with captions (as normal) on those A3?  I'm able to include full PDF pages which are A3 by \includepdf, however that way I can't have captions.  I get this error:  ! Package caption Error: No float type ! Package caption Error\caprion outside float


Bad image format exception in 64bit application

I have create an application in 32 bit it works fine but when i change its architecture from 32 bit to 64 bit from visual studio its shown an error like Bad image format exception.  Application referenced dll `like         DataAccess 32 bit dll.    ApplicationData 32 bit dll.   System dll,   System.core dll,   Microsoft.Office.Interop.Excel      Getting Error `like :-      An unhandled exception of type 'System.BadImageFormatException'   occurred in mscorlib.dll      Additional information: Could not load file or assembly 'DataAccess,   Version=4.0.0.13, Culture=neutral, PublicKeyToken=null' or one of its   dependencies. An attempt was made to load a program with an incorrect   format.