Will this charger/adapter work for my son's laptop?

thanks in advance for your help. I mentioned most of what was on each adapter, I know some will not be of any help but didn't want to miss anything.  His computer model is: ASUS G47VW-BHI5N43 The original adapter (the one that was packed with his brand new computer) shows the following values:  Model ADP180 HB D Input 100-240V ~ 2.25A 50-60Hz Output 19V 9.5 A Roman numeral value "V" C.C.: B REV. 3 S/N H00W2AN04FL  The one that a seller has on ebay list for this same computer model shows the following values: (It is OEM ASUS adapter/charger and otherwise appears exactly like the original) Model ADB-150NB D  Input 100-240V ~ 2.0A 50-60Hz Output 19.5V - 7.7A Roman number value "V" C.C. A  REV. 3 S/N  W6W0944061108  The both show N193V85, not sure what that is.  It would be helpful to know whether or not this would work (and knowing why or why not would be even better)!  Thank you!


13.10: Partial upgrade created held broken packages

After the last upgrade yesterday some weird things happened. The update uninstalled netflix-desktop, wine and PlayOnLinux and I have not being able to install them again from the terminal nor the Software Center or aptitude. I've dived into each forum and debian guide but the problem is still there. In one of those "autoremove" and "autoclean", even the unity desktop was uninstalled and had to install it again. These are the things I've tried, and didn't work at all:  sudo apt-get clean sudo apt-get autoremove sudo apt-get -f install sudo apt-get install --fix-broken sudo apt-get update sudo apt-get upgrade sudo apt-get dist-upgrade sudo dpkg --configure -a ...   All of the above didn't fix the problem. When I run the command to see the packages on "hold", nothing comes up. I'm suspecting that there is something very "broken" with the wine dependencies, as when I use Synaptics, it give me also an error message and shows no unmet dependencies. Here is the error:  E: Unable to correct problems, you have held broken packages. E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages. E: Unable to correct dependencies E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages. E: Unable to correct dependencies   I've also tried to install one by one the dependencies, but I get errors and once I saw a loop (deadlock).  Now, here are my questions:   Is there a way to fix this without reinstalling Ubuntu? How can I manually purge or clean any mixed solitary wine installation? Is there a way to refresh Ubuntu to a clean install to clear the dependancy tree?   I'm suspecting that some dependency might be "dirty" between versions (netflix-desktop uses 1.5, I've tried to install 1.6, 1.7, and 1.4)


Which is the correct way to tell where I'm working?        I'm working in XYZ company.   I'm working for XYZ company.   I'm working at XYZ company.      Or is there any difference in the meaning?


Here's from an old song (1963) "" by Lesley Gore.       She don't know that she's a lucky girl   Here's another example, "Silence is Golden" (1964) by The Tremeloes [YouTube ]      Oh, don't it hurt deep inside to see someone do something to her.   I wonder how common it is to say "She don't" or "don't it". Do native English speakers often use these?  By the way, Lesley Gore is American, and the Tremeloes is British.


I have a complicated account issue with Facebook and need to contact a human.  I could not find any way to get out of the automated help system and actually tell them my story. Is there a way to write them an email, or to otherwise talk to an actual human?


How did you learn Bayesian statistics and what would you recommend as a reliable source?

I'm running a Bayesian model and I'm stuck on some aspect of the model that I have difficulty to understand. Since my knowledge about Bayesian inference is limited, I would like to have some good references to understand Bayesian statistics.   People are teaching Bayesian statistics could be interested in how to think in . But I'm interested in finding  and how should we create, from scratch new models and diagnose them.   A good reference , but I need something more practical.


I created a txt file using two requests, one LDAP and one SQL. Results of the two requests are stored in the same txt file.  The txt file looks like this :  user1@domain.fr user2@domain.fr user3@domain.fr user1@domain.fr user4@domain.fr   Because a user can be in the two databases, I need to delete duplicate entries, using bash. How can I do it?


What prevents an atom's electrons from "collapsing" onto its protons?

Forgive me if the answer to this is obvious.  I have no formal physics training, and I remember that when I asked my physics teacher this, she just frowned and said "Good question."  An electron is negatively charged.  A proton is positively charged.  Based on basic principles, it seems like it would be logical for the electron cloud of an atom to "collapse" into the nucleus and become a part of it (especially since the electrons are so much lower mass).  Why doesn't this happen?  How do electrons maintain separation from the protons in the nucleus, when the opposite chargers ought to draw them together?  I considered that perhaps the charge in the electron was too minuscule in comparison to the proton (like having a negatively charged magnet on Saturn while all of Earth was positively charged; obviously the magnet wouldn't just be drawn to the Earth because the forces weren't strong enough to act over that distance).  But if that was or is the case, I would expect some other chemical behaviors to not exist.  For example, the whole phenomenon of water being a "dipole".  If the charge of the electron is too weak to interact with the proton, how could the oxygen in water more strongly attract them than hydrogen?  I get that the oxygen has more protons, and thus more positive charge in the nucleus, but that still would seem to support that the oxygen atom's own electrons should be attracted to it...  Can anyone explain the phenomena occurring here or simply point out the flaw in my thinking?


How to do draw a "visibility polygon" in 2D top-down Unity?

I've made a very simple 2D top down prototype with Unity. Now I want to expand the thing and add a feature where objects change when the player looks at them.  So I have to add a visibility polygon feature. I want to be able to get a list of objects (2d Colliders) which are in the Field of view of the player.   How I can do that?   I looked around and only found a tutorial which works with Physics2D.Raycast, but this seems to be only one ray as I need a field of view. Similar to the light of a flashlight.  I've drawn a sketch to illustrate my question:    In this case the list should contain the collider V1, V2 and V3 because the player can see them.  Edit:   I experimented with the sending a "fan" of Raycasts every 0,1 ° but this solution does have some problems. The accuracy depends on how far the collider is away. Also this is not the best performing solution. And there are problems with small objects. As solutions like this:  seems to be a lot of work just to reinvent something which is already out there I wonder if there is a built-in way in unity to help me to compute this area.


I am looking for some tutorial or video-class or something like that about LaTeX advanced course. I want to know more about macros and the creation of packages.  Thanks for the attention!


How to make index show chapters and sections instead of the page

I am currently working on a logbook template to keep track of my work, and i would like to make an index of keywords encountered during my reasearch, all articles reviews are stored in an appendix (A), so basically Article 1 review (A1) Article 2 (A2) etc.. When i create my index, the keywords refer to a page automatically, is there a way to make them refer to a section instead ? so i can keep track of which article showed me a specific word, concept. Basically, this is what i got so far.  And i would like it to look like this.  I am using the \imakeidx package.  \usepackage{imakeidx} % For the index.   \makeindex[intoc,title=Index Alphabétique]   Also modified the 'root.mst' file like this headings_flag 1 heading_prefix "{\\textbf{" heading_suffix "}}\\nopagebreak\n" delim_0 " \\dotfill " delim_1 " \\dotfill " delim_2 " \\dotfill "


I have not seen anything document in in the rules stating that a feat is an extraodinary ability.  I have seen it being categorised as a 'special feature' of the character.  This question has already been asked but with no RAW satisfactory answers IMO.   Has anyone really looked through all the core books, index words, the FAQ, Sage Advice, and  resources with no indications at all what feats as special abilities are categorised as?


What passport to enter for flight with dual citizenship?

I hold both a British and Russian dual citizenship, holding two passports. I am soon going on a flight to Russia and am not sure what passport to enter in the Advanced Passenger Information section.  What passport do I enter?


I have the data series including these labels for my dataset:  s=['A','A','A','A','B','B','B','B','C','C','C','C','D','D','D','D','D']  I would like to know how can I get the index of first element B and the last element of C.


I am writing my thesis. I want page numbering in roman for abstract, knowledge and arabic for the rest.   \pagenumbering{roman} \input{Agradecimentos} \input{Resumo} \input{Abstract}  \tableofcontents \listoffigures \listoftables  \pagenumbering{arabic}   But the number 1 , begin in "list of tables". List of tables should be in roman number.  How i can change it ?   Thanks


how to pass value from visual force page (InputField) to controller?

I have created a Vf page from which i need to fetch the value of new owner and need to save the value in property defined in controller:  Following is my vf page code:  <apex:pageBlockSection>     <apex:InputField label="user" value="{!a.ownerid}"/> </apex:pageBlockSection>   here a is object of opportunity  Controller code:  used one property to store the value:  public string ownername {get;set;}   Note: user will input the value through lookup field.  Any suggestions on this?


How do I convert a high quality video into a low quality one?

The computer is relatively old and underpowered, so video playback of high quality videos is jerky with any player.  How do I convert a high quality video to low quality video?  EDIT: I tried avconv -fs to limit size and -filter scale=iw/2:ih/2 to resize to 1/2; with output to mp4 and mpg. All 4 resulting files are not very good: vlc can play the video, but the quality is abysmal on the 1366x768 screen. The source format is Video: h264 (High), yuv420p, 1920x800, 2030 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc, bitrate: 2127 kb/s (as reported by avconv).


prove that if $\gcd(a,b)=1$ then $\gcd(a^2, b^2)=1$

Using Bezout's identity I have shown  $$(a,b^2)=(b,a^2)=1$$  but what should be the next step? Thanks.


Regex - How to find words that start and end with a specific word

I am writing a regex to find any instances of words that start with & and end with ;. There could be multiple copies on the same line, on different lines, or whatever. I just want to find anything that looks like  &amp;  &dog;  &cat; and &dog;  or similar. I think my check for the ; is too greedy in my example. How do I fix my regex to find the specific words I need without selecting anything else?


The Euler-Lagrange equations for rigid body rotation

The  equations of motion  for rigid body rotation are:  $I\,\dot{\vec{\omega}}+\vec{\omega}\times I\,\vec{\omega}=\vec{\tau}$  How i can calculate this equations using  Lagrangian method ?  If i use  $L=\frac{1}{2}\vec{\omega}^T\,I\,\vec{\omega}$   i don't get the right equations.


Please consider the following MWE  \RequirePackage{filecontents}  \begin{filecontents*}{mybib.bib} @article{test1,     title = {Structural holes and good ideas},     volume = {110},     issn = {0002-9602, 1537-5390},     doi = {10.1086/421787},     number = {2},     urldate = {2012-10-04},     journal = {American {Journal} of {Sociology}},     author = {Burt, Ronald S.},     month = sep,     year = {2004},     pages = {349--399}, } @book{test2,     address = {New {York}, {NY}},     edition = {1st ed.},     title = {Understanding media: {The} extensions of man},     lccn = {P90 .M26},     publisher = {McGraw-{Hill}},     author = {{McLuhan}, Marshall},     year = {1964} } \end{filecontents*}  \documentclass[a4paper]{article}   % Set the values for the bibliography \usepackage[     style=apa,     backend=biber,     isbn=false,     url=false,     doi=false,     eprint=false,     hyperref=true,     backref=false,     firstinits=false ]{biblatex}  % Recommended by biblatex \usepackage[utf8]{inputenc} \usepackage{csquotes} \usepackage{xpatch}  % Remove series & month \AtEveryBibitem{   \clearfield{month}   \clearfield{edition} }  % Set language \usepackage[british]{babel} \DeclareLanguageMapping{british}{british-apa}  \addbibresource{mybib.bib}  \begin{document}  \cite{test1} \cite{test2}  \printbibliography \end{document}   I don't get why the option \clearfield{edition}successfully suppress the edition from the second reference, while the option \clearfield{month}doesn't succeed in getting rid of the month:     Burt, R. S. (2004, September)    instead of what I would like to see:     Burt, R. S. (2004)


Evaluating a PDF to find an unkown constant

Evaluate the PDF to find K  $1 = \int_0^{\infty} \frac{k}{(1+x)^4}$  using u substitution I got:  $u=1+x$ and $du= dx$  $\int_0^{\infty} \frac{k}{u^4} \to \frac{k}{\frac{-1}{3} u^3}$   Since $u^4 du = \frac{u^{-4+1}}{-4+1}=$ $\frac{u^{-3}}{-3}$  which evaluating gives:  $1=\frac{k}{\frac{-1}{3(1+x)^3}} \vert_0^{\infty} \to \frac{-3k}{(1+x)^3} \vert_0^{\infty} = 0 -3k$   and $k= \frac{-1}{3}$  somehow though they came up with $\frac{-k}{3} \frac{1}{(1+x)^3}$ after integrating $\int_0^{\infty} \frac{k}{(1+x)^3}$   Was my approach correct to use substitution? Where does my work go wrong?


Is there a word that means "expressed using words", as opposed to an idea that is expressed through pictures? I first thought of "articulate" or "explicit" but those aren't quite right. (For context, I'm writing a paper that attempts to compare visual art, literature, and music and the differences in how they express their ideas.)


How can I increase the number of people viewing my SO questions?

I am a solo developer and I depend heavily on SO for help. Lately when I post a question, only a few people look at it, and hardly anyone responds. I really need to change this. What can I do to get more views?  Here is a link to a question I recently submitted:


C# listView, how do I add items to columns 2, 3 and 4 etc?

To add items to column 1 in my listView control (Winform) I'm using listView1.Items.Add, this works fine but how do I add items to columns 2 and 3 etc?


Hi I'm using images in longtable. To define captions in the longtable enviroment I defined this:  \makeatletter \def\figcaption{%      \refstepcounter{figure}%      \@dblarg{\@caption{figure}}} \makeatother   and then inside a cell I have  \parbox{5cm}{ \begin{tikzpicture} \node[anchor=south west,inner sep=0] (image) at (0,0) { \includegraphics[scale=1]{image}        }; \label{fig:lol} \end{tikzpicture} \figcaption{my caption.}}    However \cite{fig:lol} gives me the table number! Why? How can I solve it?  Edit: hyperref seems ok...


How to remove brackets from lists in list using list comprehension?

I'd like to remove the brackets around my querysets using list comprehension.  This is what I have :   foo = [[<queryset: two>], [<queryset: four>], [<queryset: one>]]    And this is what I want :   bar = [<queryset: two>, <queryset: four>, <queryset: one>]    I tried to use list comprehension like so but it didn't change anything :  bar = [x for x in foo]   What am I doing wrong ?


Hi guys recently I got stuck with PHP preg_match_all(). I'm really bad on REGEXP, I had to find:  var nx = (100000 + x) * 23452;   with preg_match_all(), I do this:  preg_match_all('/var nx = (100000 + x) * (.*);/', $html, $token); return $token[1][0];   I want output like this on my array:  23452   Please anyone help me, with explanation will be appreciate. Thanks.


Book Author, Screen Play Author, and Director are the same: Which is canon?

While recently reading the 1976 novelization of Star Wars penned by none other than George Lucas himself, I have found that there are several inconsistences between the novel and the 1977 version of Star Wars and some additions that were included in the 1997 version of Star Wars: A New Hope. While I know that the movies basically trump anything written in a book, I was wondering about this certain occasion. The novel is written by George Lucas, and the screen play is by him also; if (and there are) parts which are different from each other, which one is actually considered canon?


How to set an Alias in bashrc so that System IP can be found using a simple alias command?

As seen from  question, the following command gives the IP address of the system. ip route get 8.8.8.8 | awk '{print $NF; exit}'  I wanted to make use of this command to create an alias so that I do not have to type such a long command everytime. So, I added the following line into .bashrc  alias ipconfig="ip route get 8.8.8.8 | awk '{print $NF; exit}'"   But I am facing an issue with the awk command when I use it with the alias (specifically, I think the $NF variable is not set. I have provided three versions of the output using the commandline and the set alias for better understanding.  dennis@dennis-HP:~$ ip route get 8.8.8.8 | awk '{print $NF; exit}' 192.168.0.X   dennis@dennis-HP:~$ ipconfig 8.8.8.8 via 192.168.0.Y dev wlx9d5d8eae8f64  src 192.168.0.X  dennis@dennis-HP:~$ ip route get 8.8.8.8 8.8.8.8 via 192.168.0.Y dev wlx9d5d8eae8f64  src 192.168.0.X      cache    How can I get it to produce the same output?


Prove: $p-mq | f(m)$ where $m$ is any integer

How to prove that $p-mq \mid f(m)$ where $m$ is any integer, $$f(x) = A_0 + A_1 x + A_2 x^2 + ... + A_{n-1} x^{n-1} + A_n x^n$$ $$f(x)∈ ℤ[x]$$ $p/q$ is a zero for $f(x)$ and $p$ and $q$ are coprime $⇒ \, ∃u,w ∈ ℤ \mid 1 = up + wq$.


New to coding, not sure why i get a weird output

I want to be able to work out how much change in coins is needed for each amount I enter, EG (1.74 would be 1 £1, 1 50p, 1 20p and 4 1ps). This was going to be the function to work out the 20ps necessary. I know I could iterate through a list and it would make the code below easier and neater but just wanted to see if this way would work as it was how I first thought to do it.   def num_20ps(x):     pounds = x // 1     num1 = x - pounds     if num1 >= 0.50:         n50 = num1 / 0.50         n50s = int(n50)         num2 = num1 - (0.5 * n50s)         if num2 >= 0.20:             n20 = num2 // 0.20             return n20   print(num_20ps(1.7))    What I cant understand is why when I print my num2 variable I get an output of 0.19999999999999996. Where did the 0.00000000000000004 randomly go?


Using words instead of symbols to name variables

In programming, "single character" variable names are generally considered bad practice, since they make it more difficult to understand subsequent uses of the variable (one must refer back to the definition of each symbol in an expression, which is tedious and makes the expression more confusing). Instead, variable names should in some sense "summarize" their definition; i.e., for a remainder in a division algorithm, remainder or rem would be preferred over r, which is standard in number theory texts. That's not even the worst case, since at least r can be seen as an abbreviation of "remainder": often, the letters have nothing to do with their meanings!  Is there any reason, except for historical reasons, that we can't do the same in mathematics? Many theorems I've come across would be much easier to understand if some of their symbols were replaced by programmer-style identifiers. Has anyone tried this before?


I'm trying to remember the name of a movie I saw on Syfy I think earlier this year.   It was an 80s movie I think. A crew on a cargo ship. Something happens and the captain panics and steals away on the lifeboat, leaving the crew. They realise there's not enough air for everyone and start to kill each other. One of the characters has a dog I think a Westie who gets killed. Meanwhile the captain is running a PR scam but is scuppered when the rescue ships find two survivors. One guy put the other into a medical stasis pod to slow his breathing so they both could live.   What's it called?!!!


Name of sci-fi book set in a distant future

Looking for a book where people were in a spaceship to another planet, and when they reached the surface someone on earth had developed a portal and stepped onto the planet at the same time, wearing a crappy suit with a fishbowl for a helmet. The pilot of the spaceship being very angry because their voyage was supposed to be newsworthy, and here this guy and his friend covered the same distance instantly. this was the beginning of the book   Later in the book some guy has a home/ecosystem in an asteroid because he can.  Any ideas?


We know that any open $ (\mathbb{ R}, d) $ is the union of at most countable open balls disjunct two by two. Show that the same is not true in $ \mathbb{ R}^ n $, if $ n \geq 2 $. I'm trying to show a counter example where I display an open set of R where A is not a joint of disjoint open balls.


I want to keep a few edges of my mesh straight and flat while making other parts of the mesh smooth and curved. How do I do that? I tried using catmull-clark but I can't choose what to subdivide and what not


My Context gives me a null reference pointer

I am trying to define a Context in my main Activity  and use it in my AsyncTask, but it gives a null reference? Here I test it in my main Activity and the same error occur in my AsyncTask:  public class MainActivity extends AppCompatActivity {   public  Context mContext;  public Context getContext(Context context) {      this.mContext = context;     mContext.getContentResolver();//  null object reference error     return mContext; }


If X and Y are closed subsets of $\mathbb{R} $ , what if X is closed and Y is compact then is X+Y compact

This question was part of an masters exam for which I am preparing and I was unable to solve correctly these 2 options:  For two subsets X and Y of $\mathbb{R}$ , let X+Y = { x+y : x$\in X$, y$\in Y$} .  (1) If X and Y are closed sets, then give a counterexample such that X+Y is closed. (2) If X is closed and Y is compact, then  prove that X+Y is closed. I see that translation stuff is going on. So, intuitively I marked X+Y will be open and X+Y will be compact if both X, Y are open and compact respectively. For (1) I need to take an infinite closed set but I am unable to find. So, posted here. For 2 , I am unable to see what Adding a compact set does instead of a closed set. Kindly illuminate on this.


Story about a teenager who makes a homemade black hole which proves unexpectedly dangerous

This story is probably from an anthology.  It involves a kid or teenager who is secretly developing a black hole in his room. Eventually things get out of hand.   I believe this was written in English.


create a mask in material node editor using rotoscope

in material editor (node editor), i'm trying to use multiple image texture and multiple uv. But having problem whenn trying to combine them, i use mix node , but i can only input another image to be used as masking or alpha channel. I want to be able to create the mask within the blender using rotoscope. So i can do paint to create the masking, but how to use roto as mask? the mask/roto only can be loaded in compositing , but not in material node editor. This shoulb be made available in material , so i can easily isolate or do organic mask to the image texture.  So far , to achieve this, I have to first sent the image texture to the compositing then do the masking and merging  and sent back the output to the material. This is a slow workflow. I should be able to access roto inside the material editor or even better to have a 'compositing' node inside the material editor so i can do compositing right inside the material editor without have to jump back and forth between compositig and material editor.  Any thoughts ?


restart network interface after editing /etc/network/interfaces

restart the network service:  service networking restart   When I give the above command I get something like  stop: Unknown instance: networking stop/waiting   I would like to know if the network services has restarted or is it showing some errors. if it is an error how to rectify it?


How do I export blender textures as png in cycles?

I just modeled this knife and I can't find how to export its texture as png.    I searched a lot, but nothing seems to work. I tried baking it a few times, but all I got is a black UV map. And yes, it is unwrapped. When I baked it using combined bake type it baked the texture together with the light that was reflected of it.


Let $A,B$ be subsets of $\mathbb{R}$. Prove that $\sup{(A+B)} = \sup{A}+\sup{B}$.    I think in order to solve this we are going to have to use the mathematical definition of supremum. Maybe we can break this up into $4$ cases: $A$ is finite, $B$ infinite; etc. This would allow us to relate supremum to the maximal value of a set and make it easier to work with.


why `nmap 192.168.1.97` returns less services than `nmap 127.0.0.1`?

According to , a packet sent to 192.168.1.97 "doesn't leave the host but is treated like a packet received from the network, addressed to 192.168.1.97." So same as sending a packet to loop back 127.0.0.1.   why does nmap 127.0.0.1 return more services than nmap 192.168.1.97?   Does nmap 127.0.0.1 necessarily also return those services returned by nmap 192.168.1.97?  Does a server listening at 192.168.1.97 necessarily also listen at 127.0.0.1?  $ nmap -p0-65535 192.168.1.97  Starting Nmap 7.60 ( https://nmap.org ) at 2019-03-23 19:18 EDT Nmap scan report for ocean (192.168.1.97) Host is up (0.00039s latency). Not shown: 65532 closed ports PORT      STATE SERVICE 22/tcp    open  ssh 111/tcp   open  rpcbind 3306/tcp  open  mysql 33060/tcp open  mysqlx  Nmap done: 1 IP address (1 host up) scanned in 9.55 seconds  $ nmap -p0-65535 localhost  Starting Nmap 7.60 ( https://nmap.org ) at 2019-03-23 19:18 EDT Nmap scan report for localhost (127.0.0.1) Host is up (0.00033s latency). Other addresses for localhost (not scanned): Not shown: 65529 closed ports PORT      STATE SERVICE 22/tcp    open  ssh 111/tcp   open  rpcbind 631/tcp   open  ipp 3306/tcp  open  mysql 5432/tcp  open  postgresql 9050/tcp  open  tor-socks 33060/tcp open  mysqlx  Nmap done: 1 IP address (1 host up) scanned in 5.39 seconds   Thanks.


There is a two-line spacing between comments. But if I upvote any comment, the spacing gets reduced to single-line spacing. Why is this?


If a covering map has a section, is it a $1$-fold cover?

If $q: E\rightarrow X$ is a covering map that has a section (i.e. $f: X\rightarrow E, q\circ  f=Id_X$) does that imply that $E$ is a $1$-fold cover?


I tried to retrieve the parameter 'position' and its X and Y.  int npcId = reader.get("npcId").getAsInt(); int x = reader.get("position").getAsInt(); int y = reader.get("position").getAsInt(); int z = 0;   from this input, which is JSON  {     "npcId": 414,     "position": {         "x": 3443,         "y": 3536,         "z": 0     },     "facing": "WEST",     "radius": 13 }   For example int x = reader.get("position.X").getAsInt(); (Which obviously doesn't work but you get the idea.)


How doyou Amend the last commit message in git?

I am using git-svn and I know that svn does not support changing commits  if I haven't yet run git svn dcommit can i still change the last commit message, i left something out of it.  If so, how do you amend the last commit message?  EDIT:  i figured out i can do git commit --amend but is there any problem doing this using svn backend?


There was a previous problem in my homework that basically demonstrated that:  10C7 = 9C6 + 8C6 + 7C6 + 6C6   And our question is:   "Use that fact to derive a summation formula involving expressions nC1."   I'm not entirely sure what this means, but I'm assuming we are to use Sigma.  This is what I came up with:  $${}_nC_r = \sum_{i=r - 1}^{n-1} {}_iC_{r-1}$$  I'm not sure if I'm even using legal notation here, so any help would be greatly appreciated.


Representing norm of a vector using orthogonal basis

If $e_1,...,e_n, \eta$ are vectors in $V$, the first $n$ of which are a ONB, is it true that $$\| \eta \|^2 = \sum_{i=1}^n \langle e_i, \eta \rangle^2?$$


Why does tikz neither draw nor externalize my picture?

I'm trying to generate a gif from a tikz picture, using tikz's external library. Ultimately, my plan is to   Convert a picture to gif write a node style that converts the nodes' coordinates to pixel offsets in a map file use them together on a web page.   If somebody has done this before, I'm glad to get a pointer.  However, I have adapted the example from the tikz documentation which uses convert in a system call. The only difference to the original example is that I don't add code to include external and that I changed the desired output format to gif:  \documentclass{standalone}  \usepackage{tikz} \usetikzlibrary{external}  \tikzset{   gif export/.style={     external/system call/.add=     {}     {; convert -density 300 -transparent white "\image.pdf" "\image.gif" },     %     /pgf/images/external info,   } } \tikzexternalize \tikzset{gif export}  \begin{document}   \begin{tikzpicture}     \draw (0,0) node[draw,minimum width=1in] {TestNode};   \end{tikzpicture} \end{document}    The resulting main.pdf is empty, the externalization library creates an empty main-figure0.pdf and main-figure0.dpth an additional file called } is created, but I don't know what I can do with it.   I have the impression that the closing } after "\image.gif" is causing problems. When I change that line to end with  "\image.gif"},   (no space between gif and }), the resulting converted file is called main-figure0.gif} and also empty.  but I have no idea how I can fix this.


What is the difference between Sleep and Hibernate?

What is the difference between Sleep and Hibernate in Windows Vista?


Vertically center children in parent that takes up the full screen

I've tried vertical-align: middle; and margin: auto 0; but it doesn't seem to be working? Is there something I'm missing here? My logic is, I put the vertical-align: middle; in the parent container. Shouldn't that center the "children" class into the center vertically? I've also tried adding, padding:auto 0; to the "children" class but that didn't seem to do anything either...    body {   margin: 0;   padding: 0; }  h1 {   margin: 0;   font-size: 50px; }  .btn {   border: 4px solid #079992;   padding: 2px 15px;   color: #079992;   font-size: 1.5em;   font-weight: 800;   display: inline-block; }  .btn:hover {   background-color: #38ada9;   cursor: pointer; }  .content {   display: block;   background-color: #b2bec3;   text-align: center;   height: 100vh;   font-family: helvetica;   vertical-align: middle; }

Random Quote Generator

Press the button below for an inspirational quote!

Click Me Bro!


How can I better optimize my tables and a LEFT JOIN query to find items that don't yet exist in the right table?

I have two tables that represent a list of urls and their related word indexes. Here are the table definitions for reference.  desc urllist; +-------+---------------------+------+-----+---------+----------------+ | Field | Type                | Null | Key | Default | Extra          | +-------+---------------------+------+-----+---------+----------------+ | id    | bigint(20) unsigned | NO   | PRI | NULL    | auto_increment | | url   | text                | NO   |     | NULL    |                | +-------+---------------------+------+-----+---------+----------------+   and  desc wordlocation; +----------+---------------------+------+-----+---------+-------+ | Field    | Type                | Null | Key | Default | Extra | +----------+---------------------+------+-----+---------+-------+ | urlid    | bigint(20) unsigned | NO   |     | NULL    |       | | wordid   | bigint(20) unsigned | NO   |     | NULL    |       | | location | int(10) unsigned    | NO   |     | NULL    |       | +----------+---------------------+------+-----+---------+-------+   The software app is a web spider. It crawls a list of urls, extracts those urls, and inserts these into the urllist table. Then, an indexer checks to see what urls have not yet been indexed, and then proceeds to index said urls.  Here is the query I am using to find items in the left table (urllist) that have not yet been indexed in the right table (wordlocation). This query is as suggested on the :  select * from urllist ul  left join wordlocation wl on ul.id = wl.urlid  where wl.urlid IS NULL;   As of this writing my test database has only 600 indexed urls, and the wordlocation table has 1.3 million rows.  However, my CPU is at 100%, and the longest I've waited to see if the query would complete is a half hour (which, it never did by the way).  To be thorough, here is the explanation of the query:  explain select * from urllist ul left join wordlocation wl on ul.id = wl.urlid where wl.urlid IS NULL; +----+-------------+-------+------+---------------+------+---------+------+---------+-------------------------+ | id | select_type | table | type | possible_keys | key  | key_len | ref  | rows    | Extra                   | +----+-------------+-------+------+---------------+------+---------+------+---------+-------------------------+ |  1 | SIMPLE      | ul    | ALL  | NULL          | NULL | NULL    | NULL |   50364 |                         | |  1 | SIMPLE      | wl    | ALL  | NULL          | NULL | NULL    | NULL | 1351371 | Using where; Not exists | +----+-------------+-------+------+---------------+------+---------+------+---------+-------------------------+   I need this query to finish in seconds, not minutes. Also, I'm worried about scalability. I have 40,000 unique urls that are waiting to be added to the index, so how do I take that into consideration with my table and query design? 400,000 urls?  Just a couple notes about my decisions on the current table structure.  I have no intention of stopping at 400,000 urls, but perhaps bigint(20) is a bit overzealous?   Url as text is for more practical reasons. I index a lot of Asian and other foreign language domains which do not appear as their equivalent Kanji or other characters in the database and frequently take more than 255 characters.  I'm using MySQL. I'm definitely open to suggestions as to better table and query design. Please let me know if I can provide more information.


Reference or proof for $\frac{N(t)}{t} \to \lambda$ for a Poisson Process?

I moved to close this. The question has been aksed and answered before:  Suppose you have a Poisson process with intensity $\lambda$, and let $N(t)$ be the number of events that have occurred at time $t$. I can prove, and have seen many references on the internet, for the fact that $\mathbb{E}[N(t)] = \lambda t.$ I'm trying to find a proof for the fact that $$\lim_{t \to \infty} \frac{N(t)}{t} = \lambda$ almost surely. I saw this once, but cannot find a good reference.


Converting an image sequence with an alpha channel to video and keeping the transparency

I've checked the related questions, but the last similar question was asked 7 years ago. I haven't done video editing before (so please treat me as a noob in this field), and wasn't doing 3D art back then, so I don't know what's changed, if anything, with regards to blender's video editing tools. Before finding out that my attempt to make the conversion failed, I tried the ffmpeg format and used the MPEG-4 and Quicktime containers in separate attempts. I used the H.264 for the MPEG-4 and HuffYUV for the Quicktime formats respectively. The MPEG-4 video plays with a black background (which I can't tell whether it's got an alpha channel or not), and the Quicktime video was a complete mess with no visuals of my animation at all. As far as I can tell, I need a video format which supports alpha channels, but it doesn't seem like blender has that capability. Please tell me if I'm wrong, or if I'm right, what I need to do to make the conversion. Sorry for the long post, I wasn't really sure what was relevant to include, so I just included everything I did. I appreciate any assistance.


If the nucleus is densely positively charged, why don’t the protons in the nucleus repel from each other and move towards the orbiting electrons?  Because each proton is not only being repelled by the other protons, it is also being pulled by the oppositely charged electrons   Why don’t these conditions make the atomic model impossible? I understand that electrons are in energy levels start so cannot force their way into the nucleus, but why not the reverse?


Does Frisch–Waugh–Lovell theorem change the covariance matrix on regression coefficients?

I know FWL theorem allows you to compute a subset of the regression coefficients, i.e. for fixed effects models.  It can give you identical regression coefficients as you solve the whole regression problem.  But does this change the covariance matrix of the coefficients?


Why aren't integration and differentiation inverses of each other?

Integration is supposed to be the inverse of differentiation, but the integral of the derivative is not equal to the derivative of the integral:     $$\dfrac{\mathrm{d}}{\mathrm{d}x}\left(\int f(x)\mathrm{d}x\right) = f(x) \neq \int\left(\dfrac{\mathrm{d}}{\mathrm{d}x}f(x)\right)\mathrm{d}x$$   For instance: $$\begin{align*} &\dfrac{\mathrm{d}}{\mathrm{d}x}\left(\int 2x+1\;\mathrm{d}x\right) &&= \dfrac{\mathrm{d}}{\mathrm{d}x}\left(x^2+x+C\right) &= 2x+1\\ &\int\left(\dfrac{\mathrm{d}}{\mathrm{d}x}\left(2x+1\right)\right)\mathrm{d}x &&= \int 2\;\mathrm{d}x &= 2x+C\end{align*}$$  Why isn't it defined such that $\dfrac{\mathrm{d}}{\mathrm{d}x}a = \dfrac{\mathrm{d}a}{\mathrm{d}x}$, where $a$ is a constant, and $\int f(x)\;\mathrm{d}x = F(x)$? Then we would have: $$\begin{align*} &\dfrac{\mathrm{d}}{\mathrm{d}x}\left(\int 2x+1\;\mathrm{d}x\right) &&= \dfrac{\mathrm{d}}{\mathrm{d}x}\left(x^2+x\right) &= 2x+1\\ &\int\left(\dfrac{\mathrm{d}}{\mathrm{d}x}\left(2x+1\right)\right)\mathrm{d}x &&= \int \left(2+\dfrac{\mathrm{d1}}{\mathrm{d}x}\right)\;\mathrm{d}x &= 2x+1\end{align*}$$  Then we would have:     $$\dfrac{\mathrm{d}}{\mathrm{d}x}\left(\int f(x)\mathrm{d}x\right) = f(x) = \int\left(\dfrac{\mathrm{d}}{\mathrm{d}x}f(x)\right)\mathrm{d}x$$   So what is wrong with my thinking, and why isn't this the used definition?


Listen for incoming request on port on Linux, then run command

I am after as lightweight as possible solution to listen on a port for a specific request, then run a command should the port be hit and the correct request be recedved.  Eg. Send a request to 192.168.0.10 on port 5432 with the string my_token. On the host (eg. 192.168.0.10), then run a command should that port be hit and the string matched.  I was initially thinking of using netstat (eg. nc -l 5000) then running the command on change. However, ideally a string or token of sorts would be ideal alongside this or similar, but without using a full-blown webserver - essentially something that can run in the background with few resources.


Suppose a language L is in NP. I think that means a nondeterministic Turing machine M can decide it in polynomial time. But then shouldn't it be in co-NP, because can't we define a new Turing machine M' that accepts whenever M rejects and rejects whenever M accepts? Why doesn't NP equal co-NP?  Thanks!


Trouble labeling an angle within a picture

My tikz does not want to label the angle within the figure. Whenever I try to use the command "$\alpha$" inside the pic arguments tikz ignores it. I do not know how to proceed. Any suggestions for the code are welcome. Thank you for the help.  \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{calc,intersections,through,backgrounds,angles,quotes} \begin{document} \begin{tikzpicture} \draw (0,0) -- (0,2) -- (5.46,2) -- (2,0) -- (0,0); \coordinate [label=below:\(A\)] (A) at (0,0); \coordinate [label=below:\(B\)] (B) at (2,0); \coordinate [label=above:\(C\)] (C) at (5.46,2); \coordinate [label=above:\(D\)] (D) at (0,2); \coordinate [label=left:\(2\)] (E) at (0,1); \coordinate [label=below:\(2\)] (F) at (1,0); \coordinate (G) at (3.5,0); \draw[dashed] (2,0) -- (3.5,0); \draw (G) -- (B) -- (C) pic [draw=black, thick, angle radius=1cm, "$\alpha$"] {angle=G--B--C}; \end{tikzpicture} \end{document}


Consider tossing a fair coin 100n times, where n is geometrically distributed with mean 6. Due to a counting error, it is reported that the fraction of heads is in [0.5, 0.51]. What is the most likely value for n?    My professor calculated the value of n=3, but I have no idea how to get that. Can anyone explain ?


Is the potential energy of molecules related to its temperature?

Do ideal gases have a certain potential energy at a certain temperature?


my visitor visa rejected for Canada , why it happen and what i need to do to get it?

My name is shiva and I am 31 and single. I live in Iran and recently I got my refusal letter for a visitor visa from Canada.  I work in a company which represents an international brand. I have a high position and I provided 6 payslips with high payments. I have recently had a promotion which is shown in my payslip. I had a letter that said I have 2 weeks off from my company to visit Canada and I must come back after these days.  My bank account is good enough but I do not own any house or property and I live with my parents. All my family (parents and siblings) live in Iran and I said this in my cover letter.  My travel history was good enough and two years ago I had a Schengen Visa. My invitation letter was from my cousin who is married to a Canadian. They said in that letter that they will be my host for 2 weeks and they have been advised and verily believe that my financial status is such that I am comfortably able to pay my expenses without any assistance and verily believe that I will not overstay.  My rejection reasons are:   Family ties in Canada and in Iran Purpose of visit   My question is why I got rejected and what can I do about it?


Getting help from friend for literature search

Suppose person A has a research project where they need to find a few articles on a particular topic, and write a review of these papers.  Being busy with other coursework, and feeling overwhelmed by the task of searching papers, person A decides to ask person B for help to find a list of articles on the topic. Person B is not a student in the course, but is willing to help person A.  Person A then reads the articles B found and writes their paper on their own.  Has there been plagiarism or other ethical violation committed?  EDIT: An additional concern is whether person A needs to credit person B's work. The goal of the paper would be to develop understanding of the field that the course is about, not specifically train for literature search. The submission will be graded.


$\limsup \frac{a_n}{b_n}0$ s.t $a_n\le Mb_n$

Suppose $a_n$ and $b_n$ are sequences of positive numbers such that  $\limsup \frac{a_n}{b_n}<\infty$  show that there is a constant $M>0$ s.t $a_n\le Mb_n$ for all $n\ge 1$  My idea:  as i know hat $M=\limsup a_n$ if and only if for all $\epsilon >0$ there is $N\in \mathbb{N}$ so tthat $n\ge N$ implies $a_n<M+\epsilon$


Let $\mathbb{N}=\{0,1,2,\ldots\}$ and we consider the following set: $$\{f:\mathbb{N}\longrightarrow\mathbb{N} \mid\forall n\in\mathbb{N} \ , f(n)=f(n+1)+f(n+2)\}$$ I can tell that this set has at least one element $f:\mathbb{N}\to\mathbb{N}$ such that $f(n)=0$ but can we say more about its cardinal? and what would happen in the case of decreasing functions


find . - exec rm -rf {} and strange messages that the files were not found

I have a script for creating backups and deleting old backups. It has this line:  find . -type d -mtime +29 -user admin -name "20*" -exec rm -rf {} \;  This way, directories with backups older than 29 days are deleted. This works, directories are deleted, but this message is displayed every time: find: `./2020-06-16-23-30': No such file or directory  (the date changes in the message) Please tell me why this message appears and how to correct the script. Using output redirection (>/dev/null 2>&1) is not suitable for me, because I would like to see messages about some real errors. This is a directory listing with backups: $ cd /volume1/Backup && ls -l drwxr-xr-x  2 admin users       4096 Jun 19 23:30 2020-06-19-23-30 drwxr-xr-x  2 admin users       4096 Jun 20 23:30 2020-06-20-23-30 drwxr-xr-x  2 admin users       4096 Jun 21 23:30 2020-06-21-23-30 drwxr-xr-x  2 admin users       4096 Jun 22 23:30 2020-06-22-23-30 drwxr-xr-x  2 admin users       4096 Jun 23 23:30 2020-06-23-23-30 drwxr-xr-x  2 admin users       4096 Jun 24 23:30 2020-06-24-23-30 drwxr-xr-x  2 admin users       4096 Jun 25 23:30 2020-06-25-23-30 drwxr-xr-x  2 admin users       4096 Jun 26 23:30 2020-06-26-23-30 drwxr-xr-x  2 admin users       4096 Jun 27 23:30 2020-06-27-23-30 drwxr-xr-x  2 admin users       4096 Jun 28 23:30 2020-06-28-23-30 drwxr-xr-x  2 admin users       4096 Jun 29 23:30 2020-06-29-23-30 drwxr-xr-x  2 admin users       4096 Jun 30 23:30 2020-06-30-23-30 drwxr-xr-x  2 admin users       4096 Jul  1 23:30 2020-07-01-23-30 drwxr-xr-x  2 admin users       4096 Jul  2 23:30 2020-07-02-23-30 drwxr-xr-x  2 admin users       4096 Jul  3 23:30 2020-07-03-23-30 drwxr-xr-x  2 admin users       4096 Jul  4 23:30 2020-07-04-23-30 drwxr-xr-x  2 admin users       4096 Jul  5 23:30 2020-07-05-23-30 drwxr-xr-x  2 admin users       4096 Jul  6 23:30 2020-07-06-23-30 drwxr-xr-x  2 admin users       4096 Jul  7 23:30 2020-07-07-23-30 drwxr-xr-x  2 admin users       4096 Jul  8 23:30 2020-07-08-23-30 drwxr-xr-x  2 admin users       4096 Jul  9 23:30 2020-07-09-23-30 drwxr-xr-x  2 admin users       4096 Jul 10 23:30 2020-07-10-23-30 drwxr-xr-x  2 admin users       4096 Jul 11 23:30 2020-07-11-23-30 drwxr-xr-x  2 admin users       4096 Jul 12 23:30 2020-07-12-23-30 drwxr-xr-x  2 admin users       4096 Jul 13 23:30 2020-07-13-23-30 drwxr-xr-x  2 admin users       4096 Jul 14 23:30 2020-07-14-23-30 drwxr-xr-x  2 admin users       4096 Jul 15 23:30 2020-07-15-23-30 drwxr-xr-x  2 admin users       4096 Jul 16 23:30 2020-07-16-23-30


How can I create this bibliography style?

So it looks exactly like the older JF-articles:   link:


Make Windows hard drive invisible to linux

I have two solid state HDDs in my computer: one with Windows10 and the other one with Linux. The Windows OS does not see the second HDD (with Linux), because I deallocated it before installing Linux. I also want the Linux OS to not see the fist HDD on which Windows is installed. This is just to make sure that users of one OS could not corrupt the files of the other OS.  What is the proper way to make the HDD with WindowsOS invisible/inaccessible to the LinuxOS that is being run from the other HDD?


MacBook Pro Retina problems Wifi connection

i recently bought a power Mac but it recognizes my dedicated wifi but when I got to open a window no connection. And that's when it connects on wifi after many attempts.  My iPhone and iPad are working online fine.  I am using xfinity as my internet provider.  Any help?  Henry


Quick way to delete a line from an extremely large file

I have a 67GB .csv file (I know... I know...)  I need to remove the 4,125,878th line from the file as it is corrupt.  My CSV parsing tools won't ignore or skip it.  I could use sed to do something like  sed '4125878d' in.csv > out.csv  But that would be an hugely expensive operation in terms of time and disk space.  If I use sed -i '4125878d' in.csv, the operation takes ages.  Is there a way I can quickly remove a line from the middle of a huge file?


On the discussion of dynamic memory here:   The author states:     A memory block like this can effectively be used as a more flexible array. This approach is actually much more common in real-world C programs. It's also more predictable and flexible than a "variable size array"   The type of memory block he is talking about is as such:  const int size = 5; int * array = calloc(size, sizeof(int));   and then using another pointer to iterate over the array:  int * index = array; for (i = 0; i < size; i++) {     *index = 1; // or whatever value     index++; }   My question is how is this method better than a standard variable sized array like this?:  int array[variable];   or dynamic:  char name[] = "Nick";   The author doesn't really shed much light as to why I should prefer the former method to the latter. Or more specifically: How is it more "predictable and flexible"?


The pronunciation of blood is  \'bləd\ while words such as moon and spoon (with double 'o') are pronounced as \ˈmün\ and \ˈspün.   Why isn't blood pronounced like \ˈblüd\ ?


If I could halt all motion would I stop time?

I've never really understood time. Time is not a force. It isn't energy or matter. Time doesn't MAKE anything do anything. Time doesn't make a clock tick (motion or batteries do). Time doesn't make the earth revolve around the sun (motion/gravity does). I don't think time exists. People say time is used as a form of measurement but aren't we just measuring movement? Even atomic clocks measure the movement of electrons that orbit an atom's nucleus as they "jump" back and forth between energy states. So my question is if I were to stop ALL motion (even movement of electrons that orbit an atom's nucleus) would I stop time? Is time just masquerading as the measurement of motion?  This question is not a duplicate of "Does time freeze at Absolute Zero?" Because I am NOT talking about temperature. I am speaking about the motion of ALL things. I am asking if ALL things (photons, energy, matter, forces) stop moving would time stand still? I would have to say yes it would. If ALL motion were to stop for a million years (hypothetically speaking) and then start again no one would even know. Atomic clocks wouldn't even miss a step.


What should children call a step-grandparent?

My mom remarried to a great guy who has been absolutely wonderful to my kids. Ever since my mom and he were dating my kids have called him Mr. Joe. Lately my mom has been bugging me to get the kids to call him Grampa.  I agree that he deserves more respect than Mr.  The problem is that he isn't their real grampa so I don't really want them calling him that. Does anybody have any suggestions on what we should have the kids call him? They are 9 and 12 years old.  EDIT: I appreciate the comments regarding different variations of grampa and hearing how others have no issues with calling their step-granddad grampa. But I was hoping maybe someone has some suggestions for names that show the importance of the step-granddad without calling him some variation of the grampa name but still has a feeling of warmth and family in the name (I hope that makes sense).


Until what point can the  be thought as a real wave?  I mean, is it made of something? What amplitude does it have? Is it a sine wave?   How can it be related to the wavefunction of the particle?


Why does a bullet not shatter a window glass but a stone does?

I have been trying to find an answer to the question below, but never found any of the answers in google search to be satisfactory.  I know the bullet is lighter in mass as compared to stone. Maybe the bullet exerts a smaller force on the window glass than the stone or may be the stone has a larger area of contact with window, but I cannot relate any of these facts to some law in Physics.  Question  Why does a bullet fired from a gun make a clean hole with minimum cracking/shattering in a glass window but a stone thrown at a similar window shatters the glass? I am assuming that the glass is not bullet proof but just regular window glass.


Show the Dihedral Group $D_n$ is generated by rotations and reflection along the x axis.

I'm having problems understanding the excersice: E) Define $D_n$ as the group of symmetries of a regular n-gon. Name the vertices $V=\{V_0,V_1,...,V_{n-1}\}$ so that $$V_{k}=\exp({i\cdot\dfrac{2\pi k}{n})}$$ Let $S$ be the symmetry along the x-axis, and $R$ the rotation by $\dfrac{2\pi}{n}$. Show that $\{R,S\}$ generate $D_n$.  I tried to define something like $$R:\exp(i\cdot\dfrac{2\pi k}{n})\mapsto \exp(i\cdot\dfrac{2\pi (k+1)}{n}) $$   $$S:\exp(i\cdot\dfrac{2\pi k}{n})\mapsto \exp(i\cdot\dfrac{2\pi (-k)}{n}))$$ but these are not binary operation so $(V,R) ; (V,S)$ are not groups. To me it's clear that there are n rotations and n reflection so there are 2n symmetries on the n-gon; also fixing one reflection we can get the others by some combination of $r,s$.  I tried to solve the problem by defining $R,S$ as permutation of vertices and the vertices as coordinates in a lattice and it solves nicely, but I don't seem to understand this way of approaching the definitions.


I have a data with discrete values and need to find if it is normally distributed. I plotted the graph and it looks normal and then I  performed  shapiro wilk test where the result were W = 0.78773, p-value < 2.2e-16, through which I concluded data is not normal. I just need guidance if I should be performing any more tests to find if the data is normally distributed, also I believe discrete values data can never be normal, is my understanding correct?


How to take date of birth from user and tell its age

Hi I want make a console program in c# where the user enters his/her date of birth and the program should return his/her current age...  I am a beginner and have really no idea to do that...


Do the Q exist in and use Subspace technology?

Early on in TNG, it's easy to see Q as a supremely evolved being of godlike power who can simply will things to happen. However, as the various series progress - particularly Voyager - the "magic" seems to disappear.   For example:   In Deja Q, when La Forge asks Q how he would solve the problem of the falling moon, Q says he would "change the gravitational constant of the universe" instead of "I'd just put it back in orbit." The Enterprise crew then tries to use a Warp (subspace) field to do just that.  In The Q and the Grey, simple shield modifications are all that is needed for Voyager to enter the Continuum.  Possibly the biggest hint is the visual effect early on when Q does something. The flash of light is similar to the flash that a ship makes when it breaks the warp barrier.    So is all of this a coincidence or do the Q exist in subspace?


Range of function $y=\frac{e^\frac{x^3}{3}}{x^3}$

i am finding range of this function  $$y=\frac{e^\frac{x^3}{3}}{x^3}$$  As a first step i tried find inverse function, but i cannot find it. Please can you help me with it?


Why is the Apps flash storage so high and how can it be reduced?

This is the disk storage info:    This is the Applications folder info:    Why is the storage usage so high and how can it be reduced? This is on a MacBook Pro Retina 13" with OSX 10.9.5.  Edit: I had tried all the suggestions made by @user3439894 in his answer but didn't mention it before posting.


Simplifying Expression $\sum\limits_{x=1}^{k} {N - x \choose k - x} x^2$

Simplifying expression $$\sum_{x=1}^{k} {N - x \choose k - x} x^2$$ where we assume $N > k$. According to my professor, this is unable to be simplified by hand (simplified meaning no summation notation, closed form, explicit expression). Plugging into Wolfram Alpha yields $$\frac{-N(N+1)(k+N+1)}{(k-N-3)(k-N-2)(k-N-1)}\binom{N-1}{k-1}$$ Are there any insights that can be made to reach this expression by hand? Thanks


Provide an ellipsis after a long name instead of truncating it

I changed my name on Meta Stack Exchange earlier today I used 24 of the 30 allowed characters:  Mooseman is eating pizza  However, now on , and  or , it shows my name as  Mooseman is eating pizz  According to one source, ' is a shortened version of '', which is  a note or passage played by plucking strings  ...but that's besides the point. Since 30 characters are allowed, and fewer than that are guaranteed to be visible... I propose that the name div gets text-overflow: ellipsis; to provide an ellipsis after its truncated version.


Letting the camera move along different paths

What I want:  I have a model of a room with several objects in it. I want to see the objects in the room from several camera positions on three of the four walls. Basically, I want to let my camera follow predefined paths along these walls.  What I did:  I could not figure out how to make a path looking like an open rectangle, so I decided to create three different paths, one for each of the three walls. I managed to let my camera follow one of the paths nicely. However, I do not manage to let my camera jump to the next path/wall once its done with the previous one. According to this thread  it should work with object constraints and the influence value, but since the blender file given there is not available anymore, I can't figure out how to do it. So, how would you animate the camera for this purpose?


Eeeek! what is happening to my profile image in chat

I posted my meta  profile link in chat and my image got defected this is how its looks in my profile as you can see        I want  that butterfly back  :)


Number of solutions for $x^2 \equiv x \pmod m$

What is the number of solutions of $x^2 \equiv x \pmod m$ for any positive integer $m$?


The card  reads:  Target creature gets -2/-2 until end of turn.  If I used that on , a 2/1 creature, would Highland Game still die?


Find directories and files with permissions other than 775 / 664

I am moving a website from one server to another and Git does not store metadata such as file permissions. I need to find the directories and files that are not 775 / 664 respectively.  Right now, I'm using this cobbled-together contraption:  $ find . -type d -exec ls -la {} \; | grep ^d | grep -v ^drwxrwxr-x $ find . -type f -exec ls -la {} \; | grep -v ^d | grep -v ^-rw-rw-r-- | grep -v '.git'   Though this works, I feel it is rather hacky. Is there a better way to do this, perhaps a canonical way, or should I just be hacky?  This is running on a recent Ubuntu version with GNU tools under Bash.


Print composer custom grid label problem

In answer to  Klas Karlsson puts forward a solution to the problem of formatting print composer grid labels for projected maps.  I'm very weak on scripting, but in QGIS 2.14 I've tried to enter the text as shown in Klas's illustration, which generates error messages. In my case I'm working with a coordinate system that has a six-digit Easting and a six-digit Northing and I'm trying to get a result similar to that shown in Klas's picture (but with a six-digit Northing). Can anyone help me with this?


Hot Network Questions should exclude the Spanish SO too

In a similar vein to , questions from es.SO should probably be excluded from the Hot Network Questions list, at least until a  of handling them can be implemented.


At my (   I explain it wrong , now I try to explain it better (I edit the old Q to).  =========================================================  $r$ is odd, and $ord(\alpha)=r$. ($\alpha,\beta$ are cycles ).  Now, $\alpha=(a_1\cdots a_n)$. I need to find $\beta$ That will make $$\alpha = \beta^2$$   How can I show it?  What I tried:  $ord(\alpha)=r$ so $a^{r+1}=\alpha$.  Let say that $\beta=\alpha^{\frac{r+1}{2}}$, $\frac{r+1}{2}$ is an integer, how do I prove that $\alpha^\frac{r+1}{2}$ is cyclic?  Because then $\alpha=\beta^2$....  This is where I stuck...  Thank you and sorry for the another Q, but now thing are more clear...


ESP8266 warning: espcomm_sync failed error: espcomm_open failed UBUNTU 18.04

Can't force upload sketch from arduino IDE.  warning: espcomm_sync failed error: espcomm_open failed error: espcomm_upload_mem failed error: espcomm_upload_mem failed   dmseg  [ 4980.110605] usb 3-4: new full-speed USB device number 9 using xhci_hcd [ 4980.305550] usb 3-4: New USB device found, idVendor=10c4, idProduct=ea60 [ 4980.305556] usb 3-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 4980.305561] usb 3-4: Product: CP2102 USB to UART Bridge Controller [ 4980.305565] usb 3-4: Manufacturer: Silicon Labs [ 4980.305569] usb 3-4: SerialNumber: 0001 [ 4980.317468] cp210x 3-4:1.0: cp210x converter detected [ 4980.319521] usb 3-4: cp210x converter now attached to ttyUSB0  lsusb Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 009: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x UART Bridge / myAVR mySmartUSB light Bus 003 Device 002: ID 24ae:1100   Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub   Settings in Arduino IDE  Board NodeMCULuA 1.0 CPU 80 Mhz Upload Speed 115200 Flash Size 4M(1m SPIFFS) Programmer AVR ISP   Provided access to the ttyUSB0 by command sudo chmod 666 /dev/ttyUSB0  Previously worked on 16.04. What can be the problem and how to solve it? Behavior chip also changed. Earler diode only flashed when sketch was uploading, now is always on till the sketch start uploading and switched off when error is displayed.  Any help will be usefull.


Prove the field of fractions of $F[[x]]$ is the ring $F((x))$ of formal Laurent series.  $F[[x]]$ is contained in $F((x))$.  So there's at least a ring homomorphism that is injective.  Can also see it's injective because the kernel of such a mapping would be trivial because $0$ is the same in either. Not sure if showing they are isomorphic is the best way to do this.    $\displaystyle \sum_{n \ge N} a_nx^n \in F((x))$   Im not sure how I would define the mapping. maybe theres a better way


What is it called and how to put a sentence in evidence

Newspapers often put a sentence in large font in the middle of the page to attract attention. For example, see this one:   How is this form of highlighting called? How can I do it? I have a multicolumn document (using the multicol package); If possible, I would like to add a green ruler above and below this text.  Thanks.


For the $19.5k limit for 401K contribution in US for 2020, does that include the company matching?

I thought it doesn't include the company's matching, or does the $19.5k actually include the part that the company will match?


I've got both IPython and IPython3 installed.  I recently upgraded IPython to version 5.3.0 using pip.  However, I can't figure out how to upgrade IPython3.  It's currently at version 2.4.1.


How do I use fireball without harming my allies?

Whenever I have fireball or a similar AoE effect prepared I usually end up not using it all day. The reasons are that it is hard to use without harming allies or "wasting" the AoE effect on single targets.  I assume it is probably intended that Fireball is hard to use, since it is so powerful. But how do I use it as effectively as possible, in particular without harming my allies?


Compute homology groups of space $\Bbb RP^2$ attached with Mobius band using Mayer Vietories

(This is exercise 2.2.28 from Hatcher) Consider the space $X$ (say) obtained from a $\Bbb RP^2$, by attaching a Mobius band $M$ via a homeomorphism from the boundary circle of the Mobius band to the circle $\Bbb RP^1 \subset \Bbb RP^2$. Compute the homology of the space   We set $A=N_{\epsilon}(\Bbb RP^2)$, $B=N_{\epsilon}(M)$, $X:=A^o\cup B^o $, s.t $A$, $B$ and  $A\cap B$ deformation retracts to $\Bbb RP^2$, $M$ and $ S^1$, so the (reduced) Mayer-Vietoris sequence yields  $$ \tilde H_2(S^1)\to \tilde H_2(\Bbb RP^2)\oplus\tilde H_2(M)\to \tilde H_2(X)\to \tilde H_1(S^1)\to \tilde H_1(\Bbb RP^2)\oplus \tilde H_1(M)\to \tilde H_1(X) \to 0$$ and replacing the homology groups we already know we have $$0\to 0 \to \tilde H_2(X) \overset{\partial}{\to} \mathbb Z \overset{\phi}{\to} \mathbb Z_2\oplus \mathbb Z\overset{\psi}{\to} \tilde H_1(X)\to 0$$  Now, I have to figure out what the maps $\partial,\phi,\psi$ do, and this is where I'm stuck. I'd appreciate a detailed explanation.   What I am thinking that $\partial$ is injective and $\tilde H_1(X)= (\mathbb Z_2\oplus \mathbb Z)/ Im \phi$. Again $\phi=(j_*,i_*)$ where $i: S^1 \hookrightarrow M , j: S^1 \hookrightarrow \Bbb RP^2$. Then $i_*(1)=2$, but little bit confused about $j_*$ is $j_*(1)=[0]$ because in calculating homology of $\Bbb RP^2$ the map from $e^1 \to e^0$ is zero map again I am thinking that the map might be $1 \mapsto [1]$. Now for $j_*(1)=[0]$.  $\tilde H_1(X)= (\mathbb Z_2\oplus \mathbb Z)/ Im \phi= (\mathbb Z_2\oplus \mathbb Z)/<(2,[0])>=\Bbb Z_2 \oplus \Bbb Z_2$. Then $ker \phi=0=Im \partial$. So, $\tilde H_2(X)=0$. Can anyone please tell me whether I am right or wrong or how to rectify it, moreover what is $ H_0(X)$?


How can I install packages without starting their associated services?

As you're probably aware, by default when you install a package on a Debian or Ubuntu based system, if the package contains a service, that service will generally be enabled and started automatically when you install the package.  This is a problem for me.  I've found myself needing to manage templates for building LXC containers. There are several containers, each corresponding to a Debian or Ubuntu release. (There are also Red Hat-based containers, but they aren't relevant here.)  /var/lib/libvirt/filesystems/debian6_template /var/lib/libvirt/filesystems/debian7_template /var/lib/libvirt/filesystems/ubuntu1004_template /var/lib/libvirt/filesystems/ubuntu1204_template   Occasionally I will find that the templates have a missing package or need some other change, so I will chroot into them to install the package. Unfortunately when I do that, I wind up with several copies of the package's service running!  By way of example, I found the templates didn't have a syslog daemon, so I installed one:  for template in /var/lib/libvirt/filesystems/{debian,ubuntu}*_template; do     chroot $template apt-get install rsyslog done   And promptly wound up with four copies of rsyslog running. Not to mention two copies of exim4. Oops!    I read somewhere (though I can't find it again now) that it's not supposed to start services when running in a chroot, but that clearly isn't happening here.  One potentially viable  calls for temporarily replacing the various commands which actually start services, such as start-stop-daemon and initctl, though this is a lot more work than I really wanted to do. If I have no other choice, though...  The ideal solution here would be for Debian-based systems to stop doing this crap, but failing that, perhaps an obscure or undocumented command line option for apt-get?  In case it wasn't clear, I really want to keep anything related to managing the templates outside the templates, if possible.


Does deleting my own question or answer attract penalty?

I have read lot of questions related to deleted questions or answers to be available for users to see in their profiles, but my question is, does excess deletion of our own questions and answers attract penalty from the owners/moderators of SO?  Sometimes what happens is, when we see a question, we don't understand it properly but jump into them to answer to get early upvotes and later (when we get downvoted) we realize our mistake and would want to delete our own answers. The reason could be any of the following:   The answer is just not reasonable enough for the question asked. To save your reputation points and avoid further downvotes. Your answer has 0 upvotes and a better answer is already available for the question. The question gets edited and your answer is no longer valid. New people would not know that the question has been edited and they start downvoting your answer since it's no longer relevant.   In doing this we might go to extreme cases, maybe in the range of deleting hundreds of our answers. So is there an upper limit for the number of answers we can delete in order to avoid penalty (if there is any such penalty for deletion)?


Continuous function from $(0, 1]$ onto $(0, 1)$?

Is there any continuous function defined on $(0, 1]$ whose range is $(0, 1)$?


I have a web application which allow some specific user to access some resources on the basis of IP address. I am doing IP address check in back end using Java. Now I am going to convert that application to Angular 2. Now how can I do the same thing in Angular 2?


If $\sum_{n=1}^\infty a_n$ converges and $\sum_{n=1}^\infty \frac{\sqrt a_n}{n^p}$ diverges, then p $\in$ {?}

Let {$a_n$} be a sequence of non-negative real numbers such that the series $$\sum_{n=1}^\infty a_n$$ is convergent.  If p is a real number such that the series $$\sum_{n=1}^\infty \frac{\sqrt a_n}{n^p}$$ diverges, then what can be said about the value of p?


Stuck on combinatorial proof that $\binom{w}{p} \binom{p}{m} = \binom{w}{m} \binom{w-m}{p-m}$

I'm in an introductory discrete mathematics course and i'm having a lot of trouble with this proof. I'm not sure if i'm heading in the right direction or not but I used the fact that $\binom{n}{k} = \frac{n!}{k!(n-k)!}$ and started trying to algebraically reduce them to eachother but haven't succeeded. Any help would be much appreciated.


How to set the picture in LaTeX in many positions

I have a problem. My lecturer gave the task to make an article with LaTeX. but in one condition,  I can't set the picture like this. How to set a picture like this in LaTeX?


Can I use past perfect twice in the same sentence in the context of a text written in past tense completely?

I'm having some trouble with the following sentence:     Since he had arrived, he had seen the rule broken more than once.   For some context, the text itself is a short story and I'm writing it in past tense. Does this mean that the presence of a past simple verb is "implicit", in a way, to the text itself? Does using the word "since" change anything (I know that it is usually supposed to be followed by a past simple verb, but I'm not sure of any exceptions to this)?


A word for words that are often seen in their negative forms

Words like "misconstrue" or "disgruntled" are fairly common. But you much less commonly see the word "construe" or "gruntled"  Is there a term for words like this?


What is the in-universe chronological order of the Monogatari Series?

I have Bakemonogatari and Nisemonogatari, and learned that Monogatari Series Second Season is being streamed by Aniplex, which means that Nekomonogatari would have been streamed at some point and that it would get a home release.  So, I am wondering what the story's in-universe chronological order is: should I watch Bakemonogatari, Kizumonogatari (when it's released), Nekomonogatari (when it's released), Monogatari Series Second Season (when it's released) and Nisemonogatari?


What is the proper hole size to drill through joists for wiring?

I am running CAT6a wire around my house and I was wondering what the maximum hole size I can drill to run cable across the joists in my basement to various rooms. I should measure but the joists are 2 x 8's I believe.


Locating stolen phone after factory reset

I assume any reasonable thief will wipe the phone as soon as possible, thus removing any tracking apps and user accounts.  I there a method to track the phone any way?  A possible method is to use a tracking app (and it's configuration) that's embedded in a custom ROM.


Showing a sigma algebra is the union of certain collection of sigma algebras

Suppose $\mathcal{A}$ is a $\sigma$-algebra generated by $\mathcal{E}$. Then $\mathcal{A}$ is the union of the $\sigma$-algebras generated by $\mathcal{F}$ where $\mathcal{F}$ ranges over all countable subsets of $\mathcal{E}$  I am kind of confused when the propostion says "ranges over all countable ... "  Am I asked to show that   $$ \mathcal{A} = \bigcup \{ \mathcal{M} : \mathcal{M} = \sigma( \mathcal{F}), \mathcal{F} \; \; \text{countable subset of $\mathcal{E}$} \} \text{ ??}$$


If a group mod its commutator subgroup is cyclic, then the group is abelian?

Let $G$ be a group and let $G'$ denotes its commutator subgroup, that is the group generated by all elements of the form $g^{-1}h^{-1}gh$.  Is the following true:      If $G/G'$ is cyclic, then G is abelian.   Recall that the claim is true for the $G$ modulo the center of $G$.  See


Difference between "kindly" and "please"

Manager to player       Kindly practice every day     Please practice every day    Teacher to student       Kindly wipe the blackboard     Please wipe the blackboard    Student to teacher       Kindly give me a blank paper     Please give me a blank paper    Sister to brother      Kindly pass the butter     Please pass the butter    Which is correct usage in the above contexts?


I want to select PostgreSQL rows based on Date range. I tried this:  Date start; Date end;  ps = conn.prepareStatement("SELECT * FROM SCHEDULE WHERE START_DATE = ? AND END_DATE = ?");  ps.setDate(1, (java.sql.Date) start); ps.setDate(2, (java.sql.Date) end);   But I get   java.lang.ClassCastException: java.util.Date cannot be cast to java.sql.Date     at com.crm.web.schedule.Schedule$1.loadEvents(Schedule.java:62)   How I can properly select range of dates?


Solving the Lie algebra of generators: path from algebra to matrix representation

Given the Lie algebra, what is the systematic way to construct the matrix representation of the generators of the desired dimension? I ask this question here because it is the physicists for whom representation of groups is more important than mathematicians.   Let us, for example, take $SU(2)$ for concreteness. Starting from the generic parametrization of a $3\times 3$ unitary matrix $U$ with $\det U=1$, and using the formula of generators $$J^i=-i\Big(\frac{\partial U}{\partial \theta_i}\Big)_{\{\theta_i=0\}}$$ one can find the $3\times 3$ matrix representation of the generators.  However, I'm looking for something else.    Given the Lie algebra $[J^i, J^j]=i\epsilon^{ijk}J^k$, is there a way that one can explicitly construct (not by guess or trial) the $3\times 3$ representations of $\{J^i\}$? Will the same procedure apply to solve other Lie algebras appearing in physics such as that of $SO(3,1)$ (or $SL(2,\mathbb{C})$)?


NO_PUBKEY error in trying to install R on Ubuntu Bionic beaver (building docker)

So Googling shows up this link on travis, which seems to have happen only recently:    Therefore I suspect that the key somehow got changed again?  ==========  Background: I'm trying to change my docker file to include a new R package dependency, the base image is Ubuntu Bionic, and was hit by this error:  W: GPG error: https://packagecloud.io/github/git-lfs/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6B05F25D762E3157 E: The repository 'https://packagecloud.io/github/git-lfs/ubuntu bionic InRelease' is not signed.   And the lines in my Dockerfile that raised the error is the following:  RUN DEBIAN_FRONTEND=noninteractive \     apt-get update && apt-get full-upgrade -y && \     apt-get install -qqy --no-install-recommends \         libcurl4-openssl-dev libssl-dev libxml2-dev && \     apt-get autoremove --purge -y && apt-get autoclean -y && \     rm -rf /var/cache/apt/* /var/lib/apt/lists/* /var/tmp/* /tmp/* /usr/share/man/?? /usr/share/man/??_* ENV APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=DO_NOT_WARN RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 && \     add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/' && \     DEBIAN_FRONTEND=noninteractive apt-get update && apt-get full-upgrade -y && \     DEBIAN_FRONTEND=noninteractive apt-get install -qqy --no-install-recommends \         r-base   And the key is E298A3A825C0D65DFD57CBB651716619E084DAB9  Anyone know if the key is somehow changed, or something else that I wasn't understanding?  Thank you very much!  UPDATE  After adding the suggested missing public key, the issue is solved. So here are the updated lines to fix the issue (note the extra key):  RUN DEBIAN_FRONTEND=noninteractive \     apt-get update && apt-get full-upgrade -y && \     apt-get install -qqy --no-install-recommends \         libcurl4-openssl-dev libssl-dev libxml2-dev && \     apt-get autoremove --purge -y && apt-get autoclean -y && \     rm -rf /var/cache/apt/* /var/lib/apt/lists/* /var/tmp/* /tmp/* /usr/share/man/?? /usr/share/man/??_* ENV APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=DO_NOT_WARN RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 6B05F25D762E3157 && \     add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/' && \     DEBIAN_FRONTEND=noninteractive apt-get update && apt-get full-upgrade -y && \     DEBIAN_FRONTEND=noninteractive apt-get install -qqy --no-install-recommends \         r-base


Give each NodeJs Process a name in Windows TaskList

I have many nodejs software running.  (Each node.exe is other script) I want to understand the memory, cpu of each of them. But all looks similar at Windows TaskList  An image of Windows Task List:    I've reviewed  but that question and its answers deal with finding the arguments passed to an executable.  I want to see this in Task Manager.


Removed Windows 7 and installed Ubuntu Server 12.04, but Windows Boot Manager still appears

I removed Windows 7 and installed Ubuntu Server 12.04, but when the computer starts a black screen for Windows Boot Manager appears that looks like this:  Windows Boot Manager   Windows failed to start. A recent hardware or software change might be the cause.   To fix the problem:    1. Insert your Windows installation disc and restart your computer.    2. Choose your language settings, and then click "Next."   3. Click "repair your computer."  If you don't have this disc, contact your system administrator or computer manufacturer for assistance.     Status: 0xc0000225    Info: The boot selection failed because a required device is inaccessible.  I want to remove it and I don't know how to do it.


How to find the exact value of this series?

I found this on wolfram alpha :   How does wolfram evaluate this series?  How to proof that $$\sum_{n=1}^\infty \left(\frac{1}{n}+\frac{1}{2n}+...+\frac{1}{n^2}\right)^2= \frac{17\pi^4}{360} $$ ? Thanks in advance.


50 questions / 30 days limit with only 2 questions posted

I have only asked 2 questions ever; when I now try to ask a question, it says that I have exceeeded the limit of 50 questions/30 days.  What's going on? How can I fix it?


At most one subgroup of every order dividing $\lvert G\rvert$ implies $G$ cyclic

Suppose we have a finite group $G$ of finite order $n$. For every $d\mid n$, $G$ has at most one subgroup of order $d$. Show that $G$ is cyclic.


My aim here is to reinstall Windows 8 Pro either by resetting or reinstalling from physical media, however I run into problems whichever option I want to use.  Resetting Windows 8 from PC Settings  Everytime I try this I get a message stating, "There was a problem while resetting your pc". This happens if I try it from PC settings, boot options and from a recovery disk. When booting back into Windows I get a window that apparently checks for solutions but nothing happens.  Reinstalling Windows from a media  I upgraded my Windows 7 to Windows 8 Pro using the Windows 8 Upgrade Assistant. I never got an ISO or disk. I have tried downloading an ISO from here: , however when I type my serial number in all I get is a message stating, "The product key you entered is an upgrade key and can't be used to install Windows 8".  Redownload via Windows 8 Upgrade Assistant  This just tells me there is nothing to download in my area / country.  So as you can see, I am in quite a situation. Thanks.


A weak version of Markov-Kakutani fixed point theorem

Let $\emptyset \not = X\subseteq \Bbb{R}^n$ be convex and compact and let $\cal{A}$ be a commuting family of affine maps from $\Bbb{R}^n$ into $\Bbb{R}^n$ such that $X$ is invariant under each element of $\cal A$. How can I show that $\cal{A}$ has a common fixed point.   Remark I know this is a consequence of some stronger theorems such as Markov-Kakutani fixed point theorem. But I have no access to its proof. Besides I am looking for a much elementary proof (which I think must exists for this special case).


I have this:  ql_gray='\033[1;30m' ql_magenta='\033[1;35m' ql_cyan='\033[1;36m' ql_orange='\033[1;33m' ql_green='\033[1;32m' ql_no_color='\033[0m'   I use them like so:  echo "${ql_magenta}quicklock: could not acquire lock with name '${qln}'${ql_no_color}."   but I get this:  \033[1;35mquicklock: could not acquire lock with name '/Users/me/.quicklock/locks/_oresoftware.lock'\033[0m.   is there some flag I need to set in order to get control chars to be recognized?  Is there some flag I can check to see if the end user has allowed control chars to be recognized? If they aren't recognized, then I can just set the above to:  ql_gray='' ql_magenta='' ql_cyan='' ql_orange='' ql_green='' ql_no_color=''   I need to support Bash versions 3+.


For a very technical site documenting code, sharing code snippets, and documentation, I have been told that using dark fonts on light backgrounds is recommended for people being able to read the information clearly as possible.  While, for my eyes and designing skills, dark backgrounds and light text works way better for me. A few clients have said that that does not work at all for the type of site which I have created.   Which would work better for a technical site: dark backgrounds with light colour fonts or light backgrounds with dark fonts?


Can TikZ emulate PSTricks' inline \Rnodes, scattered along a complex equation?

PSTricks' \Rnode makes it easy to add annotations to a complex equation typeset by (La)TeX:    Simply add \Rnodes around existing elements of the equation, and the mathematical typesetting is preserved.  How is this achieved in TikZ, with the same simplicity?  The LaTeX code which produced the above example:  \documentclass[12pt]{standalone} \usepackage{pst-node}  \begin{document}  \raisebox{0ex}[4ex][5ex]{  $\rule{0ex}{5ex} R^{\alpha \beta} -  {1 \over 2}R g^{\alpha \beta} +  g^{\alpha \beta} \Lambda  = \frac{8 \pi G}{c^4 \mu_0}  \left(    F^{\alpha}{}^{\Rnode{a}{\scriptstyle\psi}}   % <---- 1st \Rnode   F_{\Rnode{b}{\scriptstyle\psi}}{}^{\beta} +  % <---- 2nd \Rnode   {1 \over 4} g^{\alpha \beta} F_{\psi\tau}    F^{\psi\tau}\right) \ncbar[linecolor=blue,angle=-90,nodesep=1pt,arm=2ex]{<->}{a}{b}$ }  \end{document}


I have recently re-installed Windows 7 following a BSOD incident and I have noticed the CPU usage maxing out occasionally when I am not doing very much (not when it has recently started up). When I hear the fans going full throttle I check task manager to see what is working the computer so hard, but nothing is listed that is using more than a few % CPU, yet the overall usage is 100% (or high ninties) e.g.    Does anyone have any ideas on how I can get the the bottom of what the computer is really doing when this happens?


Is there a class in the standard library of .NET that gives me the functionality to create random variables that follow Gaussian distribution?


Java volatile reference vs. AtomicReference

Is there any difference between a volatile Object reference and AtomicReference in case I would just use get() and set()-methods from AtomicReference?


How do I get zero-padded numbers using brace expansion? {1..30} with 01 02 03 etc

When doing:  for i in {1..30}; do echo $i; grep $i/Aug access.log | sort -u | wc -l; done;   the problem is that it goes like this:  1/Aug      # should be 01/Aug 2/Aug      # should be 02/Aug ...   How to have for i in {1..30} give 01, 02, 03 instead of 1, 2, 3?


Could "that have and will be" be correct?

I'm having a discussion with a friend about the last sentence on their business profile (see attachment).     To me, it sounds totally wrong, but I'd like to know whether it actually is. I think it would have to be "that have been and will be",  because otherwise (as it is now),  it says "that have be and will be".   Is either way correct? Why (not)?


How do I prevent and/or handle a StackOverflowException?

I would like to either prevent or handle a StackOverflowException that I am getting from a call to the XslCompiledTransform.Transform method within an Xsl Editor I am writing. The problem seems to be that the user can write an Xsl script that is infinitely recursive, and it just blows up on the call to the Transform method.  (That is, the problem is not just the typical programmatic error, which is usually the cause of such an exception.)  Is there a way to detect and/or limit how many recursions are allowed?  Or any other ideas to keep this code from just blowing up on me?


I'm currently using the Honeypot module for blocking spam and it does a great job at blocking bots but too many human spammers manage to get through. I tried Mollom but that blocks out too much ham which is definitely bad for me. What can I use in addition to honeypot to block human spam?


Does payment in goods count as "income" for tax purposes?

Can someone help me elucidate the definition of "income" from a tax perspective? More specifically, if Joe is paid for his work in avocados instead of dollars, then would Joe be exempt from paying any income tax for the year? Or would the value of avocados earned for the year be translated into dollars which would then be considered Joe's annual income? If so, what guidelines would one use to make this translation? (Make the assumption that Joe does not sell the avocados (for dollars) at a later date and either eats them or trades them for other real property)  What if he was paid in gold instead of avocados?


How do you make the inside color of a cup different from the outside?

I want to change the color of the interior cup but I can't seem to do it without the image texture being deleted when I attempt to transition from image texture to color. Even after the material gets duplicated.


I am a newbie in objective c so probably this question is stupid. I need a class where are only constants. Let's say I have many constants defined like this:  uint8_t const ONE = 1   In my app a have 20 constants and I want to access to its values from many places (classes). In C# I would do that with class with constants and access to them statically:  Constants.ONE;   But in Objective C it is a problem to me to do that. I know I can put constants to some header file and then import it to classes but there is a risk of duplication.  For example a have a class A, B, C. In class A I import class B and C. Each of this classes need access to constants but I can´t import header file to each of them (if class B has constants and A also, constants are duplicated).


Entering with one Schengen visa but exiting with another

I have a France-issued Schengen visa until 24/06/2015, and I would like to visit Spain between 21-27/06/2015. When I applied to visa to Spain consulate, they gave me a Schengen visa from 25/06/2015. So I have to enter to Spain with France-issued Schengen visa, and when I will want to leave, I will be used only 3 days from my new visa.  Later in July, I have to go to Germany, I did apply to Spain first because that was my first visit. I will stay in Germany around 10 days. I don't know if these 2 days visit are enough for them to enter Germany with Spain-issued Schengen visa.  It seems that two Schengen visas can not be issued same time. Is that true?


In most of the mechanics textbooks , the  is stated without any justification or an experiment to confirm this law. Also after introducing this law forces are also decomposed without any justification. Please suggest any links or books related to this. Any help will be appreciated. Thanks in advance.


$x^4 -ax^3 +2x^2 -bx +1$ has real root $\implies$ $a^2+b^2 \ge 8$

it is requested to show that if the quartic polynomial $f(x) \in \mathbb{R}[x]$, defined by:  $$ f(x) = x^4 -ax^3 +2x^2 -bx +1, $$ has a real root, then $$ a^2 +b^2 \ge 8 $$ this question was asked by @medo, then deleted a few minutes ago. however having spent a little time on it, i think the problem seems sufficiently instructive to be worth resuscitating. it is not deep or difficult, but to find the right way of rewriting the polynomial to demonstrate the result is an interesting coffee-break challenge.


I am getting an error saying: System.IO.IOException: 'The directory is not empty. '

I am programing to have a file deleted in X- amount of days: for (int i = 0; i < 5; i++)         {             System.IO.DirectoryInfo fi = new DirectoryInfo(m_strfilename[i].Text);             if (fi.LastAccessTime < DateTime.Now.AddDays(-Convert.ToInt32(m_dropdown[i].Value)))                 fi.Delete();  I am not quite sure what the issue is with this.


I will be having 18 Students in my class this year. I'd like to have them learn in pairs rotating every day with a different student in the class. What are all the possible pairings.  for example on Day 1: Student 1 learns with 2/ 3 with 4/5 with 6 etc etc  I need an 18 day rotation for this please  Thanks


How much should I charge for my Logo design work?

I just designed a logo for a new company starting out in London. Four young people who recently graduated from university. Unfortunately I didnt set a price with them before i designed the logo. Very stupid of me...but it was my first freelance job.  I am asking for £200 for 5 hours of work. They now came back that they dont have the money and the max. they will pay is £100 or they wont use the Logo.  I recently graduated as welll...so I dont know a lot about freelance prices. Should I except this? Is that a fair price? I have no idea....


Following up the thread here:   and the answer provided by Andrew Cashner, my question now is: I decided to remove the \section stuff and adding the enumerate environment. The problem is that when writing in first item, the columns try to balance each other. How can I make when using \newpage it jumps to write in second column?


This is the only answer I got wrong on my HW and the prof does not want to give us the correct answers before our midterm     The dual of a compound proposition that contains only the logical operators $\lor$ , $\land$ , and   $\neg$ is the compound proposition obtained by replacing each $\lor$ by $\land$ , each $\land$ by $\lor$ , each $\def\T{{\rm T}}\def\F{{\rm F}}$   $\T$ by $\F$ , and each $\F$ by $\T$ . The dual of $s$ is denoted by $s^*$. Find the dual of these compound propositions.      a) $p \lor\neg q$     I got $\neg p \land q$       b) $p \land (q \lor (r \land \T))$     My answer was $\neg p \lor (\neg q \land r)$       c) $(p \land \neg q) \lor (q \land \F)$     My answer was $(\neg p \lor q) \land  \neg q$  I have tried googling the problem and cannot come up with anything on duals and our lectures are online and upon reviewing do not see anything. I am just confused and looking for a little guidance on what was incorrect with my answers.


Post scores of 1000+ do not show up correctly on the Stack Exchange Android App

The link to the question above :   The votes show up as a breakdown of upvotes and downvotes. This bug seems to be applicable for both questions and answers as show in the above screenshot.


The congruence $a^p+b^p\equiv 1\;(\text{mod}\;p^2)$

For each prime $p$, let $ X_p=\{(a,b)\in\{1,...,p-1\}^2{\,{\large{\mid}}\,}a^p+b^p\equiv 1\;(\text{mod}\;p^2)\} $.  Based on limited data testing, the following conjectures appear to hold:  $(1)\;\;X_p\ne{\large{\varnothing}}\;$for all primes$\;p\equiv 1\;(\text{mod}\;6)$.  $(2)\;\;X_p={\large{\varnothing}}\;$for infinitely many primes$\;p\equiv -1\;(\text{mod}\;6)$.  Any thoughts about the validity of these claims?


Integral domains with a non-multiplicative ideal norm

If $\mathcal{O}$ is the ring of integers of some number field and $I$ is some nonzero ideal in $\mathcal{O}$, the ideal norm $N(I)$ can be defined via $$N(I):=[\mathcal{O}:I]$$ It can be shown that $N$ is multiplicative: $N(IJ)=N(I)N(J)$ for any two ideals $I$ and $J$. The only proof for multiplicativity I know uses the fact that $\mathcal{O}$ admits unique factorization into prime ideals, i.e. that $\mathcal{O}$ is a Dedekind domain.   My Question: Is the fact that we have factorization into prime ideals necessary for proving this or is it provable without using it (and also not using the Dedekind property in any other way)? In other words: If we define the ideal norm in the above way for any integral domain $R$ with the property that all the residue rings $R/I$ are finite when $I\neq 0$, is the norm always multiplicative or is there a counterexample?


What is $\nabla X$ in Riemannian geometry?

What exactly is $\nabla X$, for a vector field $X$? Can we write it in coordinates?  I'm familiar with $\nabla f$, and also $\nabla_Y X$, where both $X$ and $Y$ are vector fields. However, what would $\nabla X$ be? Should we think of it as a map $TM\to TM$?


Book (0.25kg) at rest on table.Force that Earth exerts on book is equal in magnitude to force that book exerts on Earth as this is Newton 3rd law pair. Please tell me if this statement made is correct and why.


Our country president Manmohan singh has just finished his 5 years tenure. Can I say Mr.Singh, you have been great in these 5 years or should I stick with 'was' rather then have been?  Does it mean 'have been' is for recent past and common in British English? Guys I'm confused with this  'has been' use for past or present or might be used in both depending upon context.


Which one is better for outdoor portraits Nikon DX NIKKOR 55-200MM F/4-5.6G VRII or 35mm f1.8?

Which one will give me more intense background blur with sharp foreground subject?


How much money do I need to show as proof of support when applying for a UK Standard Visitor visa?

I am an Indian citizen studying in Italy on an Italian visa that expires 19 November, 2015. I have permesso di soggiorno. I want to visit the United Kingdom for my vacations for a week during March. I know the procedures already, however I am a little bit confused about the amount that I must show as a proof of support with my bank statements. I will stay for a week with my friends who are also students in Italy and will be in London for 5 days. What would be the amount in Euros that I need to show for my visit to UK?


Badge icons missing in Achievements of mobile view

The badge icon followed by the site icon in the Achievements dialog is missing in the mobile view. But the same is available in the full site view.  Screenshots for reference:  Achievements - Full site view:        Achievements - Mobile view:


Which 70s/80s story/book has horses as protagonists?

This book is pretty unique. It's about a planet only populated with intelligent horses who have domesticated their humans, because they have hands (horses don't have them). The whole time reading you expect some connection to our times, or our universe, but this book was very brave and didn't go for that cheap thrill like Planet of the Apes.  There simply aren't any humans in it, at all. John Campbell would never have bought this story/novel.  I know of no other SF book about intelligent animals that lacks all reference to Earth, humans, or our universe whatsoever. It's one of the most alienating books I've ever read.  It is not:   Gulliver's Travels. VAMPIRES IN THE LEMON GROVE The Island of Dr. Moreau Josepha Sherman's story "The Case of the Purloined L'isitek or written by a very well-known author (I think).    It's more SF than fantasy, because it's on a different planet. But it's not hard SF.  It's also pretty old. Certainly before the 90s (perhaps even before the 80s). My guess is it's between 1940-1980.


Relation between linearity and injectivity of an entire function

Given $f$ entire function on $\mathbb C$ and $f$ one-one. Is it true that $f$ is linear?  At least among polynomials the only such functions are linear!


How do I know where to put things in linux?

Installing something in windows takes a click of a button. But every time I try to install something in linux, which is not found in APT, I get so confused.   You download a zipped folder, then what? If you are lucky there is a README, refering to some documentation, which might help you, if you are lucky.   What is the magic trick when "installing" extensions and applications which aren't found in APT?   I love linux, but this problem haunts me every day.


I'm studying for an exam and I can't seem to understand data structures & algorithm complexity i.e. I know that a linked-list has insert, get , delete method implementation, but what I cannot understand about it is 0(n) or 0(1). I know that n means list size and 1 means linear but I don't understand the 0 or O. If you can explain what complexity is and how it works I'd be grateful. So if you could please help me. Thank you.


Do all linear transformations map the zero vector to the zero vector?

For example, a linear transformation T that maps between two vector spaces V and W. Does T map the zero vector of V to the zero vector of W? Is that a rule for linear transformations? Or no? I've never seen a rule like this explicitly stated, but at the same time I can't think of an example where this wouldn't be a case.


Windows Terminal haves 256 color support?

A teacher has sent us an exercise in which we have to use the terminal to display an image as ASCII, if we can put color on it, it is a 10. Originally, the exercise is proposed for Linux, but I wonder if this can be done in the new Windows Terminal. I know for Linux or Osx there are tools like gif-for-cli and I would like to know if there is support for 256 colors in Windows. Thank you. P.D: The script has to be in python EDIT I found  that prompts all 256 colors in the terminal. So I think the answer is yes