I think it's inappropriate to have a .NET company "occupy" generic tags like "testing" and "unit-testing"

I'm a bit frustrated by the fact that [testing] and [unit-testing] are now branded with Telerik's logo. Not because I have something against Telerik (it is a company from my country and I know people there), but because these tags are generic - they are used by Java, Ruby, Python, etc., etc. questions, so it is irrelevant to show Telerik in a [java] + [unit-testing] question.  It won't be just a rant:   I'd like to see opinions whether or not this is a good idea Can a "conditional branded tag" be implemented? For example, brand it only in combination with certain other tags. This would make the tag page (with the promoted links) require two entry modes - one from a branded tag, and one from a regular one. But this can be done by a simple GET parameter.


I followed a guide to create a batch file so I can delay a program from starting up for a few seconds. (I didn't want to use a 3rd party tool)  The thing is I don't want to see that cmd window for X seconds until it launches that program. Any ideas?  Here is the code I am using within the .bat file:  @ECHO OFF TIMEOUT /t 3 > nul START "" "C:\program.exe"


Deleted Ubuntu partition from Windows7, stuck on GRUB Rescue

I've been stuck on GRUB Rescue for 1 day now, I deleted the Ubuntu partition from windows7, I had Ubuntu 20.04.1 which is probably the latest version right now, I downloaded it from my USB with balena etcher. after deleting the entire Ubuntu partition I restarted my PC to see if anything would go wrong, I automatically got presented with grub rescue. The ls command does not work, I cannot boot into Windows from my USB to fix it in the installer because GRUB rescue wont let me, I cant boot into my USB, it shows it as a hard disk, making it bootable or ISO it just doesn't work, and GRUB Rescue will not let me do any other way, what can I do?


Can I model objects as point masses when calculating rotational inertia?

I have an aircraft. On it are weapons. Weapons have masses and centers of masses. The larger aircraft system has a center of mass.  I wish to calculate the cumulative rotational inertia of only the set of weapons around the center of mass of the aircraft. In general, since these objects have a volume and a mass distribution, rotational inertia for each should be calculated as  $I = \int_x \int_y \int_z \rho(x,y,z) ||\vec{r}||^2 dzdydx$  where $||\vec{r}||$ is the distance to a point in space from the axis of rotation. But I can be reasonably sure that the center of mass of the aircraft does not fall inside the volume of any weapon, so essentially I have a system of satellites rotating around some external point.  Can this be reduced to simply modeling the satellites as point masses located at their centers of mass? Clearly $I=mr^2$ is not true if rotating around a point located within the volume of an object. Does it hold for objects farther away with arbitrary density distribution?


What do different colors of stormtrooper pauldrons indicate?

In The Force Awakens, some of the stormtroopers have a colored pauldron on their right shoulder. Some of them were white. Other ones were black. And yet other ones were red.  What do the pauldron colors signify?   I guess that they indicate rank. But which ranks for which colors? Or do they indicate special job functions that have nothing to do with rank?


Black screen on login, gnome-shell eating 100% of CPU

From the usual Ubuntu login screen, I click on my name, type my password, and press ENTER.  Screen goes black...and stays black.  I cannot get to my desktop.  If I SSH from another computer and run htop, I can see /usr/bin/gnome-shell is eating up 100% of a single core.  Other than gnome-shell, the system is completely idle.  Load average in htop is exactly 1.00.    Earlier today I left it there for over an hour, but no change.  Since then I've also tried rebooting, but same results.  This desktop was previously working fine, not sure what I messed up.  How can I debug what is happening?


Desktop computer won't boot with beep sounds

My LG desktop computer won't boot.  It makes two short beeps, pause, and 6 consecutive beeps.  (please listen to the linked mp3 file)


Show Google Sheets Cell Value in Web page

I'm trying to get the value of a cell in Google Sheets and show it on a web page (in Wordpress). It appears that you could publish individual cells in the old google sheets but I can't find how to do this now. Any suggestions?


I am using this format for my section and subsection headings (it is centered and numbers have dots):  \documentclass[12pt]{article} \usepackage[center]{titlesec}  \titlelabel{\thetitle.\quad} %dots after title number   But I cannot unbold it by using most of the unbold commands because centering changes in most of them. Is there way to unbold the section and subsection headings with this format?


Help working with the functional equation $f(a) f(b) = f(a+b) + ab$

I have looked at some of the other problems on here, but am stuck. Here is the problem: Consider $f: \mathbb{R} \to \mathbb{R} $ such that $f(a) f(b) = f(a+b) + ab$ for all real $a$ and $b$: find all possible $f$.   I tried:   Let $a=b=0$ to get $f(0)f(0) = f(0) + 0$. Then I factored, so $f(0)=0 $ or $f(0) = 1$ Then, I let $a = 0$, ie $f(0)f(b) = f(b) + 0$. I think this implies that $f(0) = 1$.   I am not sure how to proceed. More substitutions until I determine a pattern? I know I need to talk about something in terms of a constant eventually, but cannot find a way to get to that point.


Does Teemo Blind blocks Darius Ultimate?

I would like to know if Teemo use Blind, then does Darius' Ultimate get blocked?


How to handle wearable items on character

I am developing a text/image based rpg game with javascript.I have questions about how to handle wearable items on character.  Lets say that there are many(naked no item) character types(images)and there are many items.When a player equips a sword and a helmet,do i have to make images of all item combinations with all base character types import them into the game then check all of them with if elses then display correct picture on screen  ?  or is there any other way


Was Fudge ever punished for his criminal negligence?

Did JKR ever address what punishment, if any, Cornelius Fudge suffered for basically allowing Voldemort's second rise to power 100% unmolested, by putting the full weight of the Ministry against the Order of the Phoenix and Dumbledore (and telling the Wizarding world Voldemort didn't return) instead of working to stop the rise (not to mention assisting Voldemort in his plans by using Dementors in Azkaban; surrounding himself with Death Eaters in the Ministry, villifying Harry Potter and helping Umbridge)?  This seems at best, criminal negligence, and at worst, treason.  We know he was voted out of office when Voldemort finally announced his presence at the Ministry at the end of OotP, but that seems woefully inadequate given his actions and their deadly consequences.  NOTE: I read " " but none of the answers there (nor the question) specifically address the punishment.


I'm a new Ubuntu user, and when I try to run sudo apt update, it returns the following errors. Hit:1 http://security.ubuntu.com/ubuntu focal-security InRelease Err:2 http://archive.ubuntu.com/ubuntu focal InRelease   Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::24). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::23). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (91.189.88.142), connection timed out Could not connect to archive.ubuntu.com:80 (91.189.88.152), connection timed out Err:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease   Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::24). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::23). - connect (101: Network is unreachable) Err:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease   Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::24). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::23). - connect (101: Network is unreachable) Reading package lists... Done Building dependency tree Reading state information... Done All packages are up to date. W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/InRelease  Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::24). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::23). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (91.189.88.142), connection timed out Could not connect to archive.ubuntu.com:80 (91.189.88.152), connection timed out W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease  Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::24). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::23). - connect (101: Network is unreachable) W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-backports/InRelease  Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::24). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::23). - connect (101: Network is unreachable) W: Some index files failed to download. They have been ignored, or old ones used instead.  Can you help me to solve this problem? I'm using WSL 2 and Windows 10 using AMD graphic.


Find the nature of the roots of the following quartic function:

$$x^4 + 2x^3 -13x^2 -14x + 24 = 0$$   I tried factoring, but it didn't seem to work out. I tried pulling out an $x^3$, but no progress. Please help.


I often use  to keep my sentences gender neutral. Many of my friends (none of them are native speakers), however, consider this to be grammatically incorrect, and suggest me not to use it in formal English exams.  My questions are:   Is singular they widely accepted in English speaking countries such as America and Britain? Is it formal enough to be used in formal situations, such as a public speech? Is it casual enough to be used in informal situations, such as gossiping among friends?


How to prove that all integers with more than 1 digits, minus the sum of their digits result in $\mod 3=0$?

I have ran a script on the first $100000$ natural numbers and noticed that for any Integer (with more than 1 digit) minus the sum of its digits will result in $\mod 3 = 0$ ($w$ Starting Integer) → ($x$ sum of adding digits of $w$) → ($y = w - x$)  → ($z = y/3$) Examples: $10  → 1 → 9 → 3$ $11 → 2 → 9 → 3$ $12 → 3 : 9 → 3$ $13 → 4 : 9 → 3$ $14 → 5 → 9 → 3$ $15 → 6 → 9 → 3$ $16 → 7 → 9 → 3$ $17 → 8 → 9 → 3$ $18 → 9 → 9 → 3$ $19 → 10 → 9 → 3$ $20 → 2 → 18 → 6$ $21 → 3 → 18 → 6$ $22 → 4 → 18 → 6$ I can see the logic in the heuristic, however I am struggling to propose a generalized proof for any number?


Where did the idea that there *might* be magnetic monopoles come from?

I know that we declare that there exist no magnetic monopoles. I see it all the time in my E&M class. $$\vec{\nabla}\cdot\vec{B}=0$$ So there exists no point for $\vec{B}$ to originate from and no point for it to terminate at. We see that the monopole term in the multipole expansion: $$\vec{A}(\vec{r})=\frac{\mu_oI}{4\pi}\sum_{n=0}^\infty\frac{1}{r^{(n+1)}}\oint(\vec{r}')^nP_n(cos(\theta'))d\vec{l}'$$ Is zero.   But I always hear my professors laughingly say unless you ask a string theorist? What makes some theorists predict the existance of magnetic monopoles? Feel free not do dumb it down if its an advanced topic (im sure it is). It can be fun to lean into ones own ignorance.


why typedef struct in a header file in C?

I saw some code in C header like this:  //a.h  typedef struct name name;  //a.c  struct name {    int number;    int age; };   what is the reason why typedef struct in header file?  and kind of implement it in source file?  Why not just define the struct in header file? what is the propose of doing this?


Biblatex ambiguous citations aren't ambiguous - they have different years

I'm a bit annoyed with the typesetting of citations that biblatex deems "ambiguous". In the following example, I have two papers with the same first author, but a different second author in two different years. When citing in the main text, the second author is included before "et al", since biblatex deems these references to be ambiguous. However, the references were published in different years, so I cannot see why these are ambiguous. Is it possible to get these citations referenced using only the first author?  MWE  \documentclass{article}  \usepackage{filecontents} \usepackage[hyperref,style=authoryear,natbib=true,maxbibnames=10,maxcitenames=2,useeditor=false,url=false,useprefix,giveninits=false]{biblatex} \addbibresource{ref.bib}  \begin{filecontents}{jobname.bib} @book{author_book, title = {Book's title}, author = {Author, Some and Better, Some and Cetter, Some}, location = {The City}, publisher = {Publisher}, date = {2005}, } @book{author_book2, title = {Book's title}, author = {Author, Some and Getter, Some and Cetter, Some}, location = {The City}, publisher = {Publisher}, date = {2006}, } \end{filecontents}  \bibliography{jobname} % \bibliography{ref}  \begin{document} Hello world \citet{author_book} \citet{author_book2} \printbibliography \end{document}


Prove if (a,p)=1, then {a,2a,3a,…,pa} is a complete residue system modulo p.

I'm having a hard time proving this, and I'm not sure where to start. Help appreciated


The question says:  Find a and b integers where:  $671a-654b = 18$ and $\gcd(a,b) = 18$ My attempt was: $a = cd$ where $d$ is $\gcd$ and $c$ is just an integer. $b = kd$ where $k$ is just an integer too. $k$ and $c$ are co-prime, btw (This is all according to a law in math, I don't know its name though) By putting them in the equation we find: $d(671c - 654k) = 18$ which is $671c - 654k = 1$ By using the euclidean algorithm, I only found this which is not correct: $76(671) - 78(654) = -16$ -$16$ should be $1$ in its place but it isn't, so it's not right, either. So how do I continue from here? EDIT: I redid my algorithm and I found that $c = 77$ and $k = -79$ which after putting it in a and b, I find their values. Thank you all!


Why are FETs preffered over BJTs nowadays? Does this have to do with higher switching speed. Also, if someone says that they are preferred due to low cost, please tell the industrial rate comparison of both.


F[x] is Principal Ideal Domain implies F is a Field. Note: This is the converse of a known theorem.

F is a Field implies F[X] is a Principal Ideal Domain. But is the converse true? Can we also always say that if F[x] is a PID then F is a Field? I follow Gallian's Contemporary Abstract Algebra wherein is a Theorem stating F is a Field implies F[x] is a PID. The converse isn't given. I had come across the converse in a few answers to the question asked here: . Hope you understand the context.


while comparing content of sms with text it's not working. can any one please help me to solve

While comparing the content of sms with text, it's not working. Can any one please help me solve this? Here I want the count of a and b based on sms content. If sms content is a, it will give count 1. If another sms also has content a, then count must be incremented to 1 i.e., 2. Below is my code:      package com.example.sms;      import java.util.ArrayList;      import android.app.Activity;     import android.database.Cursor;     import android.net.Uri;     import android.os.Bundle;     import android.widget.TextView;      public class Sms extends Activity {     int count=0;     int count1=0;        @Override       public void onCreate(Bundle savedInstanceState) {           super.onCreate(savedInstanceState);           setContentView(R.layout.activity_sms);           TextView view1 = (TextView)findViewById(R.id.textview1);           TextView view2 = (TextView)findViewById(R.id.textView2);           Uri uriSMSURI = Uri.parse("content://sms/inbox");           Cursor cur = getContentResolver().query(uriSMSURI, null, null, null,null);           String sms = "";           String data = null;           while (cur.moveToNext()) {               sms =cur.getString(12);                    if(sms=="a"){                       count=count+1;                       view1.setText("a"+count+")");                   }                    else if(sms=="b"){                       count1=count1+1;                       view2.setText("a("+count+")");                   }                   else{                       //view1.setText("no data");                   }               //data.add(cur.getString(12));              // view1.setText(cur.getString(12));           }            //view1.setText(sms);           //setContentView(view);       }     }


What is the processing power of Lt. Commander Data in Star Trek - The Next Generation?

I overheard some of the kids in one of my programming classes discussing this. I am curious as to what the answer is. What do you guys think?


Allow Underscores at the start and end of Usernames

Looking to see how I can edit the Username creation process to allow underscores and hyphens at the beginning and end of usernames.  Currently, if you end your username with a _, it drops it from the creation process.  $regex = '/^[A-Za-z0-9]+[A-Za-z0-9_.]*[A-Za-z0-9]+$/'; if(!preg_match($regex, $_POST['username'])) {         $_SESSION['error'][] = $language->register->error_message->username_characters;     }


I have a time string, say  str = "2018-09-23 14:46:55"   and an offset  offset = "0530"   I want to get str2 with offset added, ie  str2 = "2018-09-23 20:16:55"   Please guide.


Getting double arrows in TiKZ even though a simple directed edge is required

Does someone know why I am getting a double arrow instead of a simple directed edge with the following use case scenario? How can I get a single arrowed edge instead?  \documentclass{standalone} \usepackage[dvipsnames]{xcolor} \usepackage{amsmath} \usepackage{tikz} \usetikzlibrary{chains} \usetikzlibrary{shapes} \usetikzlibrary{arrows} \usetikzlibrary{decorations.pathreplacing,shapes}  \newcommand\kk[1]{\textcolor{RoyalBlue}{\text{\textup{\textbf{\texttt{#1}}}}}} \newcommand\cc[1]{\textcolor{Sepia}{\text{\textup{\textbf{\texttt{#1}}}}}}  \begin{document}  \begin{tikzpicture}[>=latex] \begin{scope}[node distance=0pt] \def\width{9ex}  \tikzstyle{frame}=[     font=\scriptsize,     %text width=7ex,     draw,     rectangle split,     rectangle split parts=20,     rectangle split part align={center, left},     rectangle split empty part height=0ex,     rectangle split empty part depth=0ex,     rectangle split empty part width=0ex,     start chain=going right,     rectangle split horizontal ]  %%MAIN \node (main) [frame,     rectangle split parts=4,     rectangle split part fill={Fuchsia!30,                                teal!30,                                teal!30,                                teal!30] at (0,.7) {% \nodepart{one}      \centering \kk{node size} \nodepart{two} \centering \cc{outgoing offset} \nodepart{three} \centering \cc{$id$}     \nodepart{four} \cc{M} };    \draw[->] (main.one north) edge [bend left=10] (main.three north); \draw[->] (main.two south) edge [bend right=10] (main.four south);     \end{scope} \end{tikzpicture} \end{document}


Integral yields log of holomorphic function

Assume that $f(z)$ is holomorphic and satisfies the inequality $|f(z)-1|<1$ in a region $|z|<R$. Show that $$\int_\gamma\frac{f'(z)}{f(z)}dz=0$$ for all closed curves $\gamma$ in $|z|<R$. (The continuity of $f'(z)$ is taken for granted.)   The anti-derivative of $\dfrac{f'(z)}{f(z)}$ is just $\ln(f(z))$, which is holomorphic as long as $\ln(f(z))$ avoids the log branch cut. The log branch cut is the negative real axis, $a\leq 0$.   I want to use the fact that: If $f$ is the derivative of a holomorphic function in the region $\omega$, then the integral $\int_\gamma fdz$ depends only on the endpoints of $\gamma$.  To use this, we only need the condition that $f(z)$ is not a non-positive real number. The condition $|f(z)-1|<1$ seems like an overkill. (Of course it does imply that $f(z)$ is not a non-positive real number.) But am I misunderstanding something?


Can a Filipino citizen with no Korean visa with a long layover in Seoul take the airport free city tour?

I am a Filipino citizen traveling from Saipan to Manila via Seoul, with 13 hours layover.  Do I need a Korean visa to take the airport free city tour?


Is there a way of changing what property a Linq statement does a Where and an OrderBy please?  I have the following example function that I am trying to make more flexible:  public static List<SADatastore.SA_Items> BuildResourcesModel2(         int Take = 10000,         int Skip = 0,         string filterBy = null,         string filterString = null,         string sortBy = "ItemID",         string sortOrder = "asc"         ) {          List<SADatastore.SA_Items> theAnswer = new List<SA_Items>();          using (SADatastoreEntities db = new SADatastoreEntities(Properties.Settings.Default.ConnectionString)) {             theAnswer = db.SA_Items                         .Where(x => x.SA_Categories.Description.ToLower().Contains(filterString.ToLower()))                         .OrderBy(x=>x.ItemID)                         .Take(Take)                         .Skip(Skip)                         .ToList();         }          return theAnswer;     }   As you can see, as it's written at the moment, it is always doing the where based on the Category Description and Ordering Ascending based on ItemID  Is there a way to rewrite this in a dynamic way so if it's called with the parameters  filterBy = "Manufacturer" filterString "Ford" sortBy = "Manufacturer" sortOder = "Desc"   It would dynamically change the Where and Order clauses?  Any help would be greatly appreciated!


How to reset kali linux password in windows subsystem for linux

I have installed Kali Linux subsystem on windows. And now I have forgotten the root password in Kali, there is just the terminal of Kali Linux and nothing else. How can I reset my password safely?  Note: I have installed both Ubuntu and Kali Linux installed at the same time But when I run bash by default it opens up ubuntu


Domain Controller's DNS NIC configuration

I've seen conflicting information on this online, but say you have an environment with two domain controllers: one Forest, one Site, one Domain; simple as it gets.  How should each domain controller's NIC be configured with respect to DNS?   Assuming both are running DNS Server, should DC1 should have it's own canonical IP address (i.e. not loopback address) as the primary DNS and the secondary should be DC2? Rinse and repeat for DC2. Seems logical to me. Does this have any impact on replication? I'm assuming forwarders/root hints are irrelevant with respect to Active Directory?


Please add a full-frame text editor to StackOverflow

edit #2: here's what the editor looks like in SBS mode when using SOX     Done and done. Thanks @ᔕᖺᘎᕊ   edit: My point here is that when editing code there is a lot of unused screen real-estate. I don't understand why people wouldn't want to improve the editing experience on SO. It can be better and it should be better. It's frustrating that people don't want to improve it.   Editing large code blocks on SO is not good, 40% of that screen real-estate is just the similar questions block:     vs. reddit's full page editor:     So the question is: can we make editing code on SO as easy as it is on Reddit? Has this been discussed? Why don't we have nice things too?


How can one show that  $\sum_{n=0}^\infty\frac{n}{n!}=e$?   I understand that  $$ \sum_{n=0}^\infty\frac{x^n}{n!}=e^x $$ and that letting $x=1 $would give  $$ \sum_{n=0}^\infty\frac{1}{n!}=e $$   But why does the sum $\sum_{n=0}^\infty\frac{n}{n!}$ give an answer of $e$ also?


I am currently hosting in a data center and paying a very large monthly bill.  We are moving to a new office and I have been toying with the idea of installing a leased line and self hosting.  Public facing bandwidth use currently at:  4 x web servers each peak at 4mbps 1 x web server peak at 25mbps  Total peak output: 41mbps  Why type of leased line would I need considering we want to double usage?  I am currently being quoted in UK Pounds:  100mb over 100mb @ £600/month  Would this be enough bandwidth?


What updates should be done to older monsters to bring them in line with MM3 era monsters?

I know that to better balance paragon and epic level players against similar level monsters, WotC changed the math used for monsters for MM3, and I believe that they changed some of the types of powers they gave monsters.   If I want to update monsters from MM1 or MM2 to be in line with MM3 era monsters, what changes should I make?


Why are both Schrader and Presta valves still used on tubes?

It is standard for road bikes to adopt Presta, whereas nearly all else use Schrader.    I personally think Schrader are better:   I've had fewer Schrader valves break on me than Presta No problems if needing to use car pumps Have also seen long Schrader valves for deep rims Less fiddly


I have installed Qt5 from the Qt5 project site, to the following directory   /opt/Qt5    I would also like to mention that I had Qt4 installed previously, I have removed all instances of Qt4 through the software center.   Now that I issue designer from the command prompt, the system gives the following error:   designer: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/designer': No such file or directory   What can be done to correct this problem?


Calculating probabilities in horse racing!

I've seen a few similar threads to this on different forums but they don't seem to conclude to a satisfactory answer. My question is this:  If you have 3 horses, A, B, and C and you know the winning probabilities of each horse racing against each other as a pair, how do you work out their winning probabilities if all 3 horses race together? Is there a formula for n number of horses?  So you know the probabilities of: A beating B A beating C BA BC CA CB  I initially thought that: p(A winning) = p(A beat B). p(A beat C) But this is clearly wrong.  Can someone please help!! Many thanks Matt


How to get status start_date and end_date from status_track table?


Is there a way to use \SplitArgument macro with the _ sign? The following example don't works.  \documentclass{article}  \usepackage{expl3,xparse}  \ExplSyntaxOn \NewDocumentCommand{ \testone }{ >{\SplitArgument{1}{-}}m }{ \frac#1 } \NewDocumentCommand{ \testtwo }{ >{\SplitArgument{1}{_}}m }{ \frac#1 } \ExplSyntaxOff  \begin{document} $\testone{x-y}$ and $\testtwo{x_y}$ \end{document}


I want to define a macro that behaves like \ttfamily, i.e. it should read everything until } (or \endgroup?) as a parameter.  I.e. this  {\mynewmacro lorem ipsum  dolores }   should be equivalent to this  \mymacro{lorem ipsum  dolores }   Is this possible?


I really like CircuiTikZ for drawing diagrams in my LaTeX documents. However I mostly draw mechanical and not electronic systems, which is why I'm looking for some similar way to draw mechanical systems. What I want is something to draw masses, springs, dampers and ground (boundary condition).  are typical examples:     Anybody got some suggestions or am I out of luck?


How does a program detect the end of stdin input?  There are several ways of providing stdin input to a program.   When using here-document, we specify a delimiter to signal the end of stdin input:  <<[−]word here-document delimiter   Why do we need to explicitly specify the end of stdin input? When using here string, there is no extra effort to signal the end of stdin input:  <<< word   How does the program knows the end of stdin input? When using redirection from a file to stdin, there is no extra effort to signal the end of stdin input. How does the program knows the end of stdin input? When using pipe to direct stdout output from another program to the stdin input of the program,  there is no extra effort to signal the end of stdin input? How does the program knows the end of stdin input? In some programs, such as bc, whenever you enter an arithmetic expression and hit return, it will takes in the expression as stdin input and output the evaluated result. In such case, is each line ended by return considered a whole stdin input, or are all the lines typed from starting bc till exiting bc considered a stdin input? What is the general principle that a program knows how to detect the end of stdin input?   When do we need to specify the end of stdin input explicitly like for here-document, and when do we need not?  Are they program-dependent, or program-independent?


I have 1 TB of external Seagate Backup plus HDD.  I accidentally erased it while i was trying to update ubuntu, during the install process. In ubuntu the HDD shows nothing, but if i open that drive in windows 8, it shows files and folder with weird names. (for eg. ≈ⁿ0╗ ∞5.Ç=σ      |w▒ε╢.nΦ5     ╝'Xf%Äå.|     ▀█┴,iï└.╨▓)        Now, I want to recover this HDD using a recovery tool. I have not made any changes to the HDD and I am wondering what is the best recovery tool and how much would be possible to recover, if at all?  Which ever option is better, please suggest the software best suited for my situation!!  Thanks already.. ds


Currently, my answers are voted up, but I can't get my reputation points.  is my account, and my reputation points are stuck at 2,270, but I'm sure I'm getting upvotes, so what is wrong with my account or this is a kind of bug or something?


How do I decompile a .NET EXE into readable C# source code?

I wrote a C# application for a client a couple of years ago, but I no longer have the source code.  All I have is the EXE that I deployed on the client's PC.  Is there a way I can generate C# source code from the EXE?


Installation of Windows 10 & Ubuntu 18.04, Ubuntu 18.04 & Windows 10

I have installed Windows 10 and then Ubuntu 18.04, I can see grub and able to choose between the OS's.  Later after somedays, I have installed Ubuntu 18.04 First and then Windows 10, this time system is directly booting to windows 10. But i observed that my linux partitions are there and all data is available. Only thing is it is not showing grub, booting directly to Windows. How can i resolve this. I prefer not to install any software or using shift key all the time to select between OS's.


How could I remember how to use redirection?

I know what    program > /dev/null 2>&1    does. It redirects the output to /dev/null and 2>&1 means to redirect the error output in the same place where the output is sent.  My problem is I always have to google it because I never remember it.  So, I try &2>1, 1>2&, 1>&2... I try every combination until I google it...  What's the trick to remember it easily?


Select all elements except specific element with className by using plain Javascript

I am implementing a simple website which has a toggle sidebar. I want to make the sidebar be hidden when I clicked somewhere on the page except the sidebar. So I think that I should get all elements on the page except a element that has sidebar class. Is there any way to do like that with plain javascript? JQuery has :not() select for this, but I'm trying to not using JQuery... :(


I have a file (see below), and I would like to count the number of 1's and of 0's:  1 1 1 0 0 1 1 0 0 0 ...   I tried  to use awk but it doesn't work, for example, to count the number of 1's:  awk -F "1\n" '{print NF-1}'   How shall I do it?  I assume the file only contains 1's and 0's, and each line is just a single number. But I more like to know how to generalize to the case for counting the occurrences of a specific line in a file.


Prove $GL_n(\Bbb{R})/SL_n(\Bbb{R}) \cong \Bbb{R}^\times$

$$GL_n(\Bbb{R})/SL_n(\Bbb{R}) \cong \Bbb{R}^\times$$  This is trivial to prove with the first isomorphism theorem - by using the determinant as a endomorphism, then as $SL_n(\Bbb{R})$ is $1$ under the determinant, it is the kernel, and by FIT, the above is proved.  I was wondering how to prove this without the isomorphism theorem ?


Is there a way to run Microsoft Office 2013 or 2014 on Ubuntu 14.04? Wine won't work.


I'm trying to calculate E12 resistor series myself.  Above is an illustration of the idea where such equation can be written:  x = r3 + r3 * %tol = r4 - r4 * %tol  form that we can derive:  r4 = r3* [(1 + %tol)/(1 - %tol)]  hence in generalized form we can write (%tol = 0.1 for E12 series);   r(i+1) = ri* [(1 + %tol)/(1 - %tol)]  But when I iterate the above formula in a for loop I obtain the following results for the first resistor values:  1.0000    1.2222    1.4938    1.8258    2.2315    2.7274    3.3335    4.0743    4.9797    6.0863    7.4388  Then I take [(1 + %tol)/(1 - %tol)] = 1.2 rounded value instead of 1.222222 and write the formula as:  r(i+1) = r(i)*1.2  But again when I iterate the above formula in a for loop I obtain the following results for the first resistor values:  1.0000    1.2000    1.4400    1.7280    2.0736    2.4883    2.9860    3.5832    4.2998    5.1598    6.1917  But the real values for E12 should be as:  1.0, 1.2, 1.5, 1.8, 2.2, 2.7, 3.3, 3.9, 4.7, 5.6, 6.8  What am I doing wrong here?


Late 70s/80s fantasy novel with interdimensional portals, an average man protagonist and an immortal beautiful warrior woman

I’ve been scouring my memory for the name of a book I read decades ago. I only remember fragments. Inter-dimensional portals, a female warrior who is immortal (and beautiful), an average man protagonist.   A Boris type cover with the scantily clad woman warrior on the cover... possibly with a Stonehenge type structure.


How do I lessen the amount of decimal place holders?

I have a simple shoe size converter app and I want it to be so that if the answer requires no decimal places, there are none, just whole numbers. If the answer was 2, I don't want it to say 2.000000, it should say 2. If it requires one decimal place, it should show to one decimal place for example 12.8 instead of 12.80. How would I do this?   ViewController.m file  - (void)viewDidLoad         {             [super viewDidLoad];             _countryNames = @[@"Europe", @"United Kingdom", @"Japan"];              _sizeRates = @[ @11.5f, @.875f, @7.0f];         }  -(void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component                  NSString *resultString = [[NSString alloc] initWithFormat: @"%3f USS = %3f %@", size, result, _countryNames[row]];                 _resultLabel.text = resultString;             }


How to get a bike from one city to another in the U.S

I need to mail a bike from Portland, Oregon to Austin, Texas. I know that you can get free bike boxes from many bike stores, but how do you pack a bike to ship by mail or to check as baggage on a plane?


I have the following problem with pgfplots and \addplot3. I have a graph in [0,1]x[0,1] that should display a mesh plot and a line plot that traces a particular line across the mesh. The line plot is characterized by the following triplet (x, 0.8-x, f(x,y)), which is really (x, 0.8-x, f(x)). In the code below, f(x,y) is called fgm and f(x) is called fgmct.  Here's the working code:  \documentclass{standalone} \usepackage{pgfplots}  \pgfplotsset{compat=1.6}  \begin{document}  \pgfplotsset{ colormap={whitered}{color(0cm)=(white); color(1cm)=(orange!75!red)} }  \begin{tikzpicture}[ scale=1, declare function={fgm(\theta)=1+\theta*(1-2*x)*(1-2*y);}, declare function={fgmct(\theta,\val)=1+\theta*(1-2*x)*(1-2*(\val-x));}]  \begin{axis}[ colormap name=whitered, width=15cm, view={-45}{60}, enlargelimits=false, disabledatascaling, grid=major, domain=0:1, y domain=0:1, samples=30, xlabel=$x_1$, ylabel=$x_2$, zlabel={$f(x_1,x_2)$}, colorbar horizontal, colorbar style={     at={(0,0.9)},     anchor=south west,     width=0.25*\pgfkeysvalueof{/pgfplots/parent axis width},     title={$f(x_1,x_2)$} } ]  \addplot3 [surf] {fgm(-0.5)}; \addplot3 [domain=0:0.8, y domain=0:0.8, samples y=30, black!70, smooth] (x, 0.8-x, {fgmct(-0.5,0.8)});  \end{axis} \end{tikzpicture} \end{document}   Here is what happens:   Seems to me that I should only see the concave line across the surface plot, without the wrap-arounds and the straight line going across it. I would appreciate any pointers as to what I'm doing wrong here.


Is it possible to use free open source font in logo Professional

I want to make logo with free open source font like ( Roboto , Lato...)  What is the license for such fonts?


Low budget, 70s look, about aliens wearing tunics and old vessels sailing the desert

I saw a movie or TV show when I was a little child in the 80s. It had a low budget, 70s look. I can remember only two scenes from it.  In the first, there is a guy with a cow boy hat and a gun, Magnum like; I think he was inside the typical American dinner restaurant. He shoots an alien. The alien wears a tunic and some sort of metallic triangular helmet pointing downwards. When he is shot, his body seems to disappear, and his tunic and helmet fall to the ground.  The other scene is about a vessel, like a caravel, sailing through the desert, not water, with some people on it. Maybe, the guy travelling on it is the same one who shot the alien.


Add "waiting for review" line for comment flags

Clearly, I have 2 flags pending, but it only says 1 flag is waiting for review.    One of them is a comment flag, but that's not specified.  A "waiting for review" section for comment flags would clear things up.


Considering $X$ as a tychonoff space and $Y$ any metric space, and taking the fine topology on function space $C(Y, \Bbb R)=C(Y)$ and $C(X, \Bbb R)=C(X)$. Then the continuous map $g \in C(X, Y)$ induces a function $g_* : C(Y) \rightarrow C(X)$, as $g_*(f) = \phi(f, g) = g \circ f, f \in C(Y)$. How to prove the induced map; $g_* : C(Y) \rightarrow C(X)$, induced from the map $g \in C(X, Y)$, endowed with fine topology is an embedding. Taking $g$ as continuous, onto and open map. How to prove that $g_*$ is an embedding. I can prove it continuous and bijection but i don't know how to prove it open map. Can anybody help?


Decrease length of spaces in inline math

It is a requirement of the journal I'm submitting to that inline math be formatted as $x\!=\!3$, i.e. that we insert a thin negative space around operators.   Is there a way that I can set this document-wide, so that I don't have to go over my 30-page manuscript line-by-line?  Let me emphasize that in principle, I want to be able to edit the spacing for inline math only.


Prove $a, a + 2$, or $a + 4$ is composite?

I've been assigned a proof by contrapositive for:     If $a$ is a natural number and $a, a + 2$, and $a + 4$ are   prime, then $a = 3$.   So, the contrapositive I've produced is as follows:     If $a \neq 3$, then it is not true that $a, a + 2$, and $a + 4$ are prime.   How would I go about proving this?


If $n\mid m$ prove that the canonical surjection $\pi: \mathbb Z_m \rightarrow \mathbb Z_n$ is also surjective on units

Not sure if this is the right proof (i found it online):   Since $n\mid m$, if we factor $m = p_1^{\alpha_1}p_2^{\alpha_2}\cdots p_k^{\alpha_k}$, then $n = p_1^{\beta_1}p_2^{\beta_2}\cdots p_k^{\beta_k} $ with $\beta_i \leq \alpha_i$. On the other hand, by the Chinese Remainder Theorem: $$(\mathbb Z_m)^\times \cong (\mathbb Z_{p_1^{\alpha_1}})^\times \times (\mathbb Z_{p_2^{\alpha_2}})^\times \times\dots \times (\mathbb Z_{p_k^{\alpha_k}})^ \times $$  $$(\mathbb Z_n)^\times \cong (\mathbb Z_{p_1^{\beta_1}})^\times \times (\mathbb Z_{p_2^{\beta_2}})^\times \times \dots \times(\mathbb Z_{p_k^{\beta_k}})^\times$$   Now, if we define: $$\pi: \mathbb Z_m \longrightarrow \mathbb Z_n,\,\,\, a+(m) \mapsto a+(n)$$  then: $$\pi: \mathbb Z_{p_1^{\alpha_1}} \times \mathbb Z_{p_2^{\alpha_2}} \times \dots \times\mathbb Z_{p_k^{\alpha_k}} \longrightarrow \mathbb Z_{p_1^{\beta_1}} \times \mathbb Z_{p_2^{\beta_2}} \times \dots \times\mathbb Z_{p_k^{\beta_k}}$$ has map: $(a+p_1^{\alpha_1},a+p_2^{\alpha_2}, \dots, a+p_k^{\alpha_k}) \mapsto (a+p_1^{\beta_1},a+p_2^{\beta_2}, \dots, a+p_r^{\beta_k})$  It suffices to show that the statement holds for $n =p^{\beta}$ and $m = p^{\alpha}$ with $\beta \leq \alpha.$ First, we notice that $(a,p^{\alpha})=1 \Leftrightarrow (a, p^{\beta}) =1$, both means that $p \nmid a$. Now, the projection: $$\pi: \mathbb Z/p^{\alpha}\mathbb Z \longrightarrow \mathbb Z/p^{\beta}\mathbb Z$$ maps $(\mathbb Z/p^{\alpha}\mathbb Z)^ \times$ to $(\mathbb Z/p^{\beta}\mathbb Z)^\times$, but $a+(p^{\alpha}) \in (\mathbb Z/p^{\alpha}\mathbb Z)^ \times$ iff $(a,p^{\alpha})=1 \Rightarrow (a, p^{\beta}) =1 $, that is $a+(p^{\beta}) \in (\mathbb Z/p^{\beta}\mathbb Z)^ \times$.  Now it is onto since if $\pi(a+(p^{\alpha})) = a+(p^{\beta}) \in (\mathbb Z/p^{\beta}\mathbb Z)^ \times$, then $(a, p^{\beta}) =1$ and this implies that $(a,p^{\alpha})=1$, so $a+(p^{\alpha}) \in (\mathbb Z/p^{\alpha}\mathbb Z)^ \times$  Then the natural surjective ring projection is also surjective on the units.


About Edge of Tomorrow: How Rita can know she lost her powers?

In the film Edge of Tomorrow Rita Vrataski knows she had lost her powers (coming back after her death) due to a blood trasfusion, but how she can know that? she should die first right?


C#: Parse Datetime.Now to specific fromat

I want to parse Datetime.Now into formatted string like      "2016-09-01T02:00:12.7011585Z"


I have installed jayatana but menus of the java apps (Intelij, etc) are still not in Ubuntu menu.   I tried to install/remove/purge/reinstall in many ways, the logs of the apps being launched show that jayatana is added to the java command. Finally I ran it explicitly like   java -javaagent:/usr/share/java/jayatanaag.jar   but still to no avail.  So the question is if there is any way to diagnose it? Maybe enable some logs, pass a secret switch?  lsb_release -a LSB Version:    core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch:core-4.1-amd64:core-4.1-noarch:cxx-3.0-amd64:cxx-3.0-noarch:cxx-3.1-amd64:cxx-3.1-noarch:cxx-3.2-amd64:cxx-3.2-noarch:cxx-4.0-amd64:cxx-4.0-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-3.1-amd64:desktop-3.1-noarch:desktop-3.2-amd64:desktop-3.2-noarch:desktop-4.0-amd64:desktop-4.0-noarch:desktop-4.1-amd64:desktop-4.1-noarch:graphics-2.0-amd64:graphics-2.0-noarch:graphics-3.0-amd64:graphics-3.0-noarch:graphics-3.1-amd64:graphics-3.1-noarch:graphics-3.2-amd64:graphics-3.2-noarch:graphics-4.0-amd64:graphics-4.0-noarch:graphics-4.1-amd64:graphics-4.1-noarch:languages-3.2-amd64:languages-3.2-noarch:languages-4.0-amd64:languages-4.0-noarch:languages-4.1-amd64:languages-4.1-noarch:multimedia-3.2-amd64:multimedia-3.2-noarch:multimedia-4.0-amd64:multimedia-4.0-noarch:multimedia-4.1-amd64:multimedia-4.1-noarch:printing-3.2-amd64:printing-3.2-noarch:printing-4.0-amd64:printing-4.0-noarch:printing-4.1-amd64:printing-4.1-noarch:qt4-3.1-amd64:qt4-3.1-noarch:security-4.0-amd64:security-4.0-noarch:security-4.1-amd64:security-4.1-noarch Distributor ID: Ubuntu Description:    Ubuntu 15.10 Release:    15.10 Codename:   wily   java:  java -version java version "1.8.0_73" Java(TM) SE Runtime Environment (build 1.8.0_73-b02) Java HotSpot(TM) 64-Bit Server VM (build 25.73-b02, mixed mode)   update-java-alternatives - not installed


Is there a quicker way of doing boldface in math mode instead of typing out \mathbf{} each time?  (It gets cumbersome when you denote simple vectors with boldface...)


I bought a used frame without a derailer.  What type will I be able to use?  I would like to switch to trigger shifters and a good quality derailer.  See photos.enter image description here


How should a dangerous action be presented to the user?

Consider a simple spyware detector that detects a suspicious activity by a program and needs the user to decide, whether it is OK or not. I came up with the following dialog.         – Wireframes created with   Since the detection may not be 100% accurate, the "Ignore thread" button is necessary. However, if the user clicks this button by mistake, he may be seriously compromised.  How do I present the action to the user so that   the chance that the user chooses the dangerous option by mistake is minimized, and the dialog doesn't annoy the user if the detection is spurious and they really want to "Ignore"?   I've considered adding a timeout to the dangerous action, so that the user has to wait before clicking it, but that adds the annoyance factor and may stress the user.  I don't see a way to implement undo (default to Stop program and allow the user to revert later), since once the program is stopped, whatever unsaved data the program was holding are irrevocably lost.  It should also be noted that the dialog will popup unexpectedly and I need to make sure that a user's click intended for a control beneath the dialog does not invoke the dangerous action.  What would be the optimal UI in this case?


Why do video cables (DVI, VGA) still screw in?

I guess I could imagine that there was a time when accidentally disconnecting the monitor would have been catastrophic, though I don't see that being the case today.  Is it just a legacy holdover that they are still secured with screws?  Also, why is it that the video connection is really the only one that is still secured this way?  It seems like the power cable would be a better candidate to be secured with screws.  That really could be catastrophic.  In the end, the reason this question occurred to me is that I've never had a video cable come out when not screwed in, so why the significant security?


How to construct a partition of X given a sigma-algebra on X (when X countably infinite)

I am attempting to construct a partition of a countable set X, given a sigma-algebra on that set.  Eventually I will want partitions of X to be in 1-1 correspondence with sigma-algebras on X.  See my question below:  Say $X$ is countable. We want to show $\sigma$-algebras on $X$ are in one to one correspence with partitions of $X$. Given a $\sigma$-algebra $\mathscr{A}$ on $X$, and given $x\in X$, we can form $$X_x=\bigcap_{A\in\mathscr{A}:x\in A}A\;.$$ This could be an uncountable intersection, meaning the result $X_x$ need not be an element of $\mathscr{A}$. However, is there still a way to show these sets of the form $X_x$ do partition $X$? Or need I construct my partition in some other way?  Original image .


$$\dfrac{x_1^2+ x_2^2 + \cdots + x_n^2}n \geq \left(\dfrac{x_1+x_2+\cdots+x_n}n\right)^2$$   I don't think AM, GM can be used here. And simple expansion doesn't help too. What should I do?


How to return a string made of the first 2 chars with given conditions

I stumbled upon the following problem:   Given a string, return a string made of the first 2 chars (if present), however include first char only if it is 'o' and include the second only if it is 'z', so "ozymandias" yields "oz".  Bellow is my try, but please take in consideration that I am a begginer.  public String startOz(String str) {  if(str.length()>=2 && str.substring(0,2)=="oz")      return "oz";  if(str.length()>=1 && str.substring(0,1)=="o")      return "o";  if(str.length()>=2 && str.substring(1,2)=="z")      return "z";    return ""; }      Unfortunately this code doesn't include all the possibilities, maybe is better understandable with an example, if the input would be: startOz("ozk") then instead of "oz" the output will be just a blank space.. Is there a way to salvage my attempt?


90s/2000s book with space soldier is fighting rebels. Then joins rebels who have alien tech

The book's story as far as I can remember is, space soldiers are fighting with bio mech suits against rebels (they are inside these suits and apparently there is a lot of bio gel). One soldier defects to the rebels who have alien tech. They implant alien tech into him as well and together they go searching for the creators of the alien tech. They find the alien who tells them that the tech they have is not important to it... keep thinking this tech may be alive and be an "egg", not sure I remember clearly. Read the book in the late 90's early 2000's.


Bidirectional drag'n drop is not working with VirtualBox and ubuntu 14.04

I use Virtualbox 4.3.20 with Ubuntu 14.01 image. Host OS is Windows 8.1. Bidirectional drag'n drop used to work before but now it won't after upgrading to these versions from previous versions. What can I do to resolve the problem?


Allow users to add items to a list but do not allow them to view/edit it

I have already created a form for users to submit questions to a Q&A list. After the questions is submitted, I would like the admin to be able to view the question, provide an answer and published it (by selecting a yes/no option) only (But I don't want the users to be able to see it on this page). And then I would like to display the published items on another page (a web part page). I am not sure if and how I can let them create an items, but not modify/view it on one page while display the published items to them on another pages as I am new to SharePoint. May somebody advice how to do this?


How do I get which JRadioButton is selected from a ButtonGroup

I have a swing application that includes radio buttons on a form. I have the ButtonGroup, however, looking at the available methods, I can't seem to get the name of the selected JRadioButton. Here's what I can tell so far:   From ButtonGroup, I can perform a getSelection() to return the ButtonModel. From there, I can perform a getActionCommand, but that doesn't seem to always work.  I tried different tests and got unpredictable results. Also from ButtonGroup, I can get an Enumeration from getElements().  However, then I would have to loop through each button just to check and see if it is the one selected.   Is there an easier way to find out which button has been selected?  I'm programing this in Java 1.3.1 and Swing.


Finding the elements with order $30$ in group $\mathbb Z^*_{31}$.

The elements of the group $\mathbb Z^*_{31}$ is $1$ to $30$. I found the first element with order $30$ is $11$ by checking the powers of each element by $2,3,5,6,10,15,30$. My professor mentioned that the other elements with order $30$ can be found after finding the first element using a theorem. Could someone please help me with that.


I want to take a string from stdin but I don't want a static array of fixed size  I know that scanf need something where save the stdin input, but I can't do something like this:  char string[10] scanf("%s",string);   becouse I need to know before how long will be the string in order to allocate the right memory space.  Can you help me to resolve this problem?    woooooooo   i'm still locked with this problem... I'm going mad  can you please give me the working code?


I don't know how this functionality is called, but I think Word had it for years. Basically, I want to do something like this:  {Character1} just got out of his bed when he heard a loud noise outside.   Where every instance of "{Character1}" is replaced later with "John":  John just got out of his bed when he heard a loud noise outside.   No, I'm not looking for a simple search and replace function, I want to know if I could add commonly used words, like a name in a story for example, to some sort of database and refer to that in the text, so that if I ever end up changing the name of the character, it will automatically get replaced everywhere.  Is there a functionality like that in Google Docs? If not, how is it called in Word? I've been looking for it forever, I just don't know how to refer to it.


Show that the number of combinations of $n$ letters out of $3n$ letters of which $n$ are $a$s , $n$ are $b$s and the rest are unequal is $(n+2)2^{n-1}$.   My approach...  The number of ways of distributing $n$ distict object in $k$ distinct box is $\binom{n+k-1}{k-1}$ now when $k=2$ the logic stands as $\binom{n+2-1}{2-1}$=$\binom{n+1}{1}$.  Selection of $j$ distinct letter out of $n$ is $\binom{n}{j}$.  Hence my answer will be $\sum_{j=0}^{n} \binom{j+1}{1}\binom{n}{n-j}$.  Please help me with the answer


My Tecno pop 2 power comes with pre install YouTube which is YouTube go but am trying to install the traditional or normal YouTube and it won't install why


Why did it take so long to find the Higgs?

The $W$ and $Z$ boson took a long time to be discovered because they were so heavy; we couldn't produce them in a particle collider until the 80's. But the Higgs boson isn't that much heavier than the $W$ and $Z$, so we presumably have been producing them for decades. The Higgs also couples to just about everything, so it's not hard to make.  Given the above, why did we have to build the LHC to find the Higgs? Was it just a matter of getting enough statistics, or was there another reason?


\centering\arraybackslash with an array environment?

The following code gives me an error:  \documentclass[12pt]{article} \usepackage[margin=2cm]{geometry} \usepackage [english]{babel} \usepackage{amsmath, amssymb} \usepackage{enumitem, array} \begin{document} {\begin{minipage}[t]{\textwidth} \begin{enumerate}[label=(\roman*)] {\setlength\itemindent{10pt}\item  \begin{equation*} \begin{array}{>{\centering\arraybackslash}m{1.5cm}>{\centering\arraybackslash}m{1.5cm}>{\centering\arraybackslash}m{1.5cm}>{\centering\arraybackslash}m{1.5cm}>{\centering\arraybackslash}m{1.5cm}}  \hline x & l_{[x]} & d_{[x]} & l_{x+1} & \mathring{e}_{[x]} \\ \hline \end{array} \end{equation*}} \end{enumerate} \end{minipage}} \end{document}   Note: for various reasons, I have to keep minipage there. For some reason, this code gives me an error when it compiles. It gives the following output:     The errors either say there is a } missing or a $ missing. My eyes don't see such a thing!


Is there any reason for me to visit my consulate just for fun?

I'll be taking my first international trip later this year and I've found that the US consulate just a few blocks from where I will be staying. I'm curious about what goes on at the consulate, how it operates, and I kind of just want to see it. Are consulates the kind of place where I can ask for a short tour or just look at it, or will I be looked at like I'm crazy and it's the equivalent of asking for a tour of my local DMV? I don't know what to expect so these places have a bit of mystique to them and I'm very curious.


Delete all but top n from database table in SQL

What's the best way to delete all rows from a table in sql but to keep n number of rows on the top?


Does opening or closing a checking account show up on a credit report or affect credit score?

Suppose someone in the United States took any of the following actions:   Open a new checking account. Closing an existing checking account.  Close the checking account with the longest standing.   Would it have an impact on credit score? Would it even show up in a credit report?


Can you please tell what version of ubuntu suitable for Intel(R) Pentium(R) 4 CPU 2.80 GHz , 2.79 GHz ,504 MB of RAM computer.


I have the following definition in my latex document:  \newcommand{\emp}{\texttt{EMP}}   This eats the space after it. For example, if I type  Assume that relation \emp is fragmented   The latex output is    Assume that EMPis fragmented (notice the lack of space after EMP).   If I change the definition to put space after EMP like this:  \newcommand{\emp}{\texttt{EMP} }   The above example works, but then I have weird spaces before punctuations that follow \emp (e.g., in \emp, I have an extra space before ,).  Is there a proper way of defining these so I won't have this problem?


Some ideas to improve navigation of the Android app

I have few suggestions to improve navigation in the Android app.  Current version is having deep navigation and user has no chance to go back to the home (very first) screen from where he started app, currently Home screen is Feed screen.  To demonstrate:   Launch app Open the navigation drawer (i.e. list of sites sliding menu) Select any site, lets say select Stack Overflow first, then Meta Stack Overflow, then Android enthusiasts, then Web Applications, then Super User and go up to open 15-20 sites.   Now when you try to head back to the Feeds screen:   The User has no idea about how many sites have been opened and and requires blind back-button mashing to reach the feeds the page It always opens each site in new screen (i.e. Activity/Fragment in android term) and this is the reason it is creating deep navigation) It loads the same site again if its already selected. For example, I am already viewing Stack Overflow site's questions and if I click on Stack Overflow again, it loads again as many time as you select it from navigation drawer).   Ideal cases:  These are the ideal cases/suggestions for the issues mentioned above:   Ideal case for Issue 2: It should just launch a single screen and then replace screen with new selection. So Feed screen always be home screen and there way whenever user press Back key, it always returns back to Feed (i.e. Home) screen. Idea case for Issue 3: It shouldn't the same site again if its already selected from the site list.   Reference app:  You can refer the  to understand exact about the navigation issues/suggestions mentioned above.  Steps:   Open Gmail android app and first it shows Primary emails screen. Select Social => Select promotions => Select Updates from navigation drawer. Now press Back key, it will let you to Primary screen (i.e. Home screen) in any case, doesn't matter whatever level at which you navigated to.


I have Ubuntu 12.04 installed onto my dual-boot system; how can I uninstall it?    Which partition(s) should I delete? As you can see, I have two used/Full up 'Other' partitions and one ext4 partition. The two other partitions have the partition id: (0x82) and the ext4 partition has: (0x83).  How can I safely uninstall Ubuntu, without screwing up the bootloader) (I found a program somewhere which can fix the Windows bootloader but forgot the name)


How can I insert by .bib file into my .tex file?

After a lot of struggle, I was successful with using a .bib file for the references in my .tex file using the following 2 lines of code:  \bibliographystyle{abbrv} \bibliography{parallel-stochastic-hmm}    Unfortunately, I just found out that I need to produce a single .tex file instead of using separate files.  How do I insert the citations of my .bib file into my .tex file?  Is there a special command for that?


I have an animated gif and I'd like to cut off the last 5 seconds. Does anyone know how to do that in Linux/Ubuntu?


Creating a special table with different row lengths in latex

How can I have a table like the following picture in latex?


Convergence of sums using Hilbert space techniques

Let $a_n$ be a sequence of real numbers such that $\sum_{n=1}^{\infty} a_nb_n < \infty$ for any sequence $b_n$ satisfying $\sum_{n=1}^{\infty}b_n^2 < \infty$. Prove that $\sum_{n=1}^{\infty}a_n^2 < \infty$.  This question is in the chapter on Hilbert spaces. What sort of technique is required here? Seems like a baby analysis question.


Non-principal ideal in ring $\Bbb Z×\Bbb Z$

I finally started studying ring theory for my final and it seems like the above ring always has a principal ideal. Is this always the case? So far the examples I've looked at are: $\{(7a, 19b) \mid a, b ∈ \Bbb Z\}$ $\{(7a, 0) \mid  a ∈  \Bbb Z\}$ $\{(7a, b) \mid  a, b ∈ \Bbb Z\}$ $\{(a, 0) \mid  a ∈ \Bbb Z\}$


difficulty of accepting $i^2 = -1$ for first timers

While teaching complex numbers for those who are encounter for the first time (usually 10th grader and 11th grader), I get the question like      "Can even squared number give negative results? How come there be square root of negative numbers? How much length does $i \; \mathrm{cm}$ represent in meter scale?"     in every year and in every section. I have been answering      "Well, this is just a construction such that it gives solution to equation $x^2 + 1 = 0$ which must have two solution by use of Fundamental theorem of algebra but since we do not have that in Real numbers, we are forced to construct $i$ that way." Then I go to history accepting the difficulty of some numbers like $\sqrt 2 $ by ancient  (just a red herring). Then I continue "Natural number is used to represent Money while Real number is used to measure length, complex number, while not representing length or weight, it my represent some other things than money or length that has applications in physics, math and engineering and so it is valid to take construct a symbol $i^2 = -1$."   I don't know if I am speaking too much out of my limited knowledge. What is the best way this knucklehead to explain those knucklehead who have been brainwashed in secondary and lower-secondary school that you cannot take square root of negative numbers, while still being correct and make them accept it easily?  EDIT: I have last question. Are some problems that is impossible to solve without use of Complex Numbers or all problems involving complex numbers have other workarounds?  EDIT-ADDED:: What would mathematics be like without the use of complex numbers? Perhaps, if I mention this clearly, maybe it would be helpful for students. One example is given by @Semiclassical on the comments in the first answer. What other things cannot be absolutely solved without the use of complex numbers?


Objective-C methods args list forwarding

I defined an objective-C method which expect an arbitrary set of parameters  - (void)logString:(NSString *)format, ... {     __block va_list argList;     va_start (argList, format);     NSString *formattedString = [[NSString alloc] initWithFormat:format arguments:argList];     va_end(argList);     NSLog(@"[ProCheck] %@", formattedString); }   If I call directly this method everything works fine. Now I need to call this method from a method which take the same set of parameters:  - (void)doSomethingAndLogString:(NSString *)format, ... {     <my code doing something>     __block va_list argList;     va_start (argList, format);     [self logString:format, argsList];     va_end(argList); }   But it result in a runtime exception EXC_BAD_ACCESS .  I think I might be wrong with object retain cycle, any clue?


I have a pet peeve when I download free fonts on the web and once they install all the weights are their separate font. Is there a way I can put them under one font that way I can just change the weights in the Weights tab. I'm talking about Adobe Creative Cloud, if that matters.  Also, is there a way I can categorize the fonts I've download instead of them being mixed up with the computer's standard fonts.


Proving that there exists an irrational number in between any given real numbers

Possible Duplicate:          I am trying to prove that there exists an irrational number between any two real numbers a and b. I already know that a rational number between the two of them exists. My idea was to say represent a and b as $a = \sqrt{2} x, b = \sqrt{2} y$ for some $x, y \in \mathbb{R}.$ We know that there exists $\frac{m}{n}$ s.t. $x < \frac{m}{n} < y,$ so multiplying everything by the root of 2, we have $$\sqrt{2}x = a < \frac{\sqrt{2}m}{n} < \sqrt{2}y = b,$$ and so we have an irrational number in between two reals. Is this 'legit?' Are there 'better/'more elegant ways to go about this? I would really appreciate seeing alternatives proofs of this, as many as possible.


Efficient way to check collision with potentially hundreds of objects

I am trying to make a top down shooter that could potentially have hundreds of objects at once at one point. I need to check collision with projectiles, walls, and enemies. I am currently using ArrayLists which probably won't suffice later on and was wondering if someone had a good method or knows a good method for checking all of those objects at once. This is going to be a game for smartphones and is built in java. Any ideas would be great or if you could point me in some direction that would be fantastic.  Thanks in advance!


Why does my cross_val_score give different values when I run it again?

I'm practicing testing multiple models on the iris dataset with python and I have the following code: for name, model in models:     # kfold     kfold = KFold(n_splits=10, random_state=7, shuffle=True)     # score     score = cross_val_score(model, X_test, y_test, cv=kfold, scoring='accuracy')     # Add results     results.append(score)     names.append(name)     msg = "%s: %f" % (name,score.mean())     print(msg)  Every time I run this I get slightly different results for the score.mean() can anyone explain to me why this happens and how to reduce the variability of the results. I'm new to machine learning so any help would be great. Thanks.


I have several objects that need to be in the same scene layer and same render layers, but I want objects with a specific material to ignore a specific light. Is this possible?


What is the difference between these two:  1- It seems water.    2- It seems to be water.


Pulling Top queries returns NULL in query plan and sql text

I'm using the following code to pull our top 20 queries (ordered by CPU):  SELECT TOP 20 qs.sql_handle     ,qs.execution_count     ,qs.total_worker_time AS [Total CPU]     ,qs.total_worker_time / 1000000 AS [Total CPU in Seconds]     ,(qs.total_worker_time / 1000000) / qs.execution_count AS [Average CPU in Seconds]     ,qs.total_elapsed_time     ,qs.total_elapsed_time / 1000000 AS [Total Elapsed Time in Seconds]     ,st.TEXT     ,qp.query_plan FROM sys.dm_exec_query_stats AS qs CROSS APPLY sys.dm_exec_sql_text(qs.sql_handle) AS st CROSS APPLY sys.dm_exec_query_plan(qs.plan_handle) AS qp ORDER BY qs.total_worker_time DESC   However, I'm seeing this:   Can anyone shed some light as to why the Query Plan and SQL Text are showing up NULL?  Are they some sort of system process or external application?  We are running SQL 2008 R2.  Thanks, as always, everyone!


How do I change a switched outlet to a half-hot outlet?

I am trying to change a switched outlet to a half-hot outlet. If you can see the picture, the outlet currently only has a white, black, and ground wire coming to it.   The switch is on the other side of the wall and it would be eextremely difficult and ugly to run another wire to it. (no crawl or attic space). So my question is, can I change the current outlet/wiring within the outlet to make it a half-hot? My understanding is that removing the brass connector will just make half of it dead.


\usepackage[T1]{fontenc} makes the font look awful in Google Chrome

I am using MikTex, and reduced the problem to the following document:  \documentclass[12pt, a4paper]{article} \usepackage[T1]{fontenc} % this causes the problem  \begin{document} Lorem ipsum dolor ..... \end{document}   If I compile this document using pdflatex test.tex and then open the resulting PDF in Google Chrome it looks like this:    Here's without \usepackage[T1]{fontenc}:    Needless to say, the latter looks a lot better. What could be causing this?


How do I discard a portion of an equation number when cross-referencing?

I am writing a LaTeX document in which I number equations within sections.  Thus, in my preamble I have  \makeatletter     \@addtoreset {equation}{section}     \renewcommand{\theequation}{\thesection.\@arabic\c@equation} \makeatother   and this works the way I would like it to.  When I cross-reference an equation with "see Eq.\ (\ref{mylabel})" I get, for example, "see Eq. (3.4.15)" for the 15th equation in Sec. 3.4.    However, I would like to be able to cross-reference the equation from within the section where it resides and omit the section number.  In this case, I would like to obtain "see Eq. (15)"  I am using the hyperref package, so the information in the .aux file looks like  \newlabel{mylabel}{{3.4.15}{43}{GENERALIZED SPEEDS\relax }{equation.3.4.15}{}}   I gather that the \ref command looks in the .aux file for {mylabel}, finds {3.4.15}, and uses the string within the braces.  I am wondering if it is possible to define a new command, call it \myref, and have it discard "3.4."  So the result of "see Eq.\ (\myref{mylabel})" would be "see Eq. (15)"  The \hyperref command has the syntax  \hyperref[mylabel]{text}   so if I could figure out a way to use mylabel to go into the .aux file, bring back the string 3.4.15, and discard "\thesection.", I could use what remains as the argument {text} for \hyperref.    @Ricardo:  Thank you so very much for this solution.  It works very well without hyperref, but unfortunately I run into a problem with hyperref.  When I use  \renewcommand{\theequation}{\@arabic\c@equation}   to create abbreviated equation numbers in the home section, this leads to non-unique entries in the aux file, and I get the error   ! pdfTeX warning (ext4): destination with the same identifier (name{equation.1} ) has been already used, duplicate ignored   The problem is that each section has an equation (1).  I tried to fix the problem according to the advice on ``Subordinate counters'' in the hyperref README, but have been unsuccessful.  Here is a combination of your code and @Lockstep's example that should reproduce the problem:  \documentclass{book}  % The book class numbers equations within chapters. % We want to number these within sections.      \makeatletter     \@addtoreset {equation}{section}     \renewcommand{\theequation}{\@arabic\c@equation} \makeatother  \usepackage[colorlinks=true, linkcolor={blue}]{hyperref} \usepackage{smartref}  \addtoreflist{section}  \newcommand*{\srefaux}[1]{%   \issectionchanged{#1}% checks if section number has changed   \ifsectionchanged% if section is different   \sectionref{#1}.% put the section reference   \fi% else do nothing   \ref*{#1}%  <-<-<--- we changed this to ref* }  \newcommand*\sref[1]{\hyperref[#1]{\hbox{\srefaux{#1}}}}  \begin{document}  \chapter{first} \section{bla}  If we include a first equation \begin{equation}\label{eq:xyz} x^2 + y^2 = z^2 \end{equation} in this section then hyperref will not be happy with another first equation in the  next section.  As shown in Eq.\ (\sref{eq:def}) \dots  \section{blubb}  As shown in Eq.\ (\sref{eq:abc}) \dots  \begin{equation}\label{eq:abc} a^2 + b^2 = c^2 \end{equation}  \begin{equation}\label{eq:def} d^2 + e^2 = f^2 \end{equation}  \section{foo}  As shown in Eq.\ (\sref{eq:abc}) \dots  \end{document}


I am a tuna fan. I usually pour it from a tin onto a sandwich without cooking it. Yet there is one kind of tuna that is a problem for me: tinned "lemon pepper" tuna. I don't mind a bit of pepper kick. But a certain well known brand makes lemon pepper tuna that to me is uneatable; the pepper is so strong and abrasive that my mouth is on fire but in a really nasty way.   In my kitchen cupboard I must have about 20 tins of this stuff. I have a tin in my hand now. Ingredients: skipjack tuna, 59%, water. lemon juice, 10%, sunflower oil, black pepper, salt, traces of wheat, milk, egg, crustacea, soy and sesame. [yes, I know I also wonder what formed the 31%]   Is there any way of making this stuff less of a nuclear bomb taste? I have to have any one tin at the time for food safety; I don't keep anything from a tin stored in a fridge. So any idea of having a little bit with something else doesn't work. Is there any strategy? Reducing the taste somehow? Masking it with something else? Reducing acidity if that helps?   I can't throw it to the birds or cats. I have found that animals don't touch tinned fish of any type. Don't know why.


How to find sums like $\sum_{k=0}^{39} \binom{200}{5k}$

How do I find sums like these?--  $$S=\displaystyle\sum_{k=0}^{39} \dbinom{200}{5k}$$  that is, when there is a summation of binomial coefficients, but with jumps of some terms..?


I am not really good at math, I'd say I'm a lot worse than good when it comes to math but I am a programmer so I have to learn to get over that fact.  A lot of times if I want to implement some code I have to read math formulas and it might as well be written in Russian... I speak no Russian.  Let's take "perturbation theory" for example. The formula looks like this:    now I know most of those symbols so that's not too bad.  but there's some formulas with like Sigma [summation] $\sum $ notation and a whole lot of other symbols that mean things in the math, physics world that I have no idea what they mean.  Like this squiggly $f$ or $s$ looking thing in this image:  $$\int_{-\infty}^\infty \sqrt{\frac{\sqrt{x^n}+1}{\alpha+\beta^\gamma}} \, dx$$  squiggly $f$ or $s$ square root of $x$ to the $n$th power plus one divided by alpha plus theta to the (?) power times a type of $d$ times $x.$  I know this might seem like a joke but i am very sincere with this question.  Is there a book or repository where these signs are laid out with their meanings? I've googled but can't find anything except maybe these images with names but that often leaves me more confused than I started.  So is there a singular book or at least a place that I can go to reference these symbols to get their meanings?  edit I don't think this is the same question as the one it's being marked as duplicate. I read that question and that's a very general question about how to get better at math.  That's not my question, I am asking more for a definition of terms. When you look at math papers there's often very cryptic symbols in the function. I am looking for a resource to say what those cryptic symbols mean and not generally how to do math.  I've tried to make this distinction clear. Let's use something simple for example.  If you didn't know the rules of summation, how can you even start to decrypt what that formula means. What if you don't even know that that symbol is called sigma, where do you start?  I thought that there would be some resource for math that gave the names of those symbols and a way to use them. Back to the sigma example, if there was some resource that says that's called sigma and   Then I can say oh okay, I got it I can figure it out from here.  So while the other question was more general about learning math, this is more directed at how do I decypher those symbols. Hopefully that makes the differences between the questions more obvious.


Don't close questions where the user has requested that it not be closed

The system should search posts for the word "please" in proximity to the phrase "don't close" or "do not close", and if found together disable the close link for the following reasons:   They asked nicely They knew enough about the system to understand that posts can be closed, and thus are experienced enough to know when their own question is perfectly valid and reasonable   Please consider this question an opportunity to consider the issue carefully.  I'll convert it to a feature request when abs(votes) > 100, until then it'll merely be a discussion.


Im new to linux and im having this problem whilst trying to fix a grub boot problem.  if someone could please help me with this. thank you.  ps, freshly installed via DVD, fresh out the box dell inspiron 11 3000 series. 4gb ram.


What problem do shrinkage methods solve?

The holiday season has given me the opportunity to curl up next to the fire with The Elements of Statistical Learning. Coming from a (frequentist) econometrics perspective, I'm having trouble grasping the uses of shrinkage methods like ridge regression, lasso, and least angle regression (LAR). Typically, I'm interested in the parameter estimates themselves and in achieving unbiasedness or at least consistency. Shrinkage methods don't do that.   It seems to me that these methods are used when the statistician is worried that the regression function becomes too responsive to the predictors, that it considers the predictors to be more important (measured by the magnitude of the coefficients) than they actually are. In other words, overfitting.  But, OLS typically provides unbiased and consistent estimates.(footnote) I've always viewed the problem of overfitting not of giving estimates that are too big, but rather confidence intervals that are too small because the selection process isn't taken into account (ESL mentions this latter point).   Unbiased/consistent coefficient estimates lead to unbiased/consistent predictions of the outcome. Shrinkage methods push predictions closer to the mean outcome than OLS would, seemingly leaving information on the table.  To reiterate, I don't see what problem the shrinkage methods are trying to solve. Am I missing something?  Footnote: We need the full column rank condition for identification of the coefficients. The exogeneity/zero conditional mean assumption for the errors and the linear conditional expectation assumption determine the interpretation that we can give to the coefficients, but we get an unbiased or consistent estimate of something even if these assumptions aren't true.


I'm used to rendering heavier files but cycles isn't rendering the one I'm currently working on for some reason, it renders just fine in the viewport even with the sampling increased exponentially and it still only takes around 60mb of memory but when I render the scene it says out of memory and doesn't render. plus the model isn't visible through the camera with viewport render.


For $x\in\operatorname{Ext}_R^1(C,A)$, how to construct an extension $0\to A\to B\to C\to 0$ such that $\partial (id_A)=x$?

Let $R$ be a ring, $C, A$ two $R$-modules. For all $x\in\operatorname{Ext}_R^1(C,A)$ I have to construct a short exact sequence $$0\to A\to B\to C\to 0$$ of $R$-modules such that $\partial(id_A)=x$, where $\partial:\operatorname{Hom}(A,A) \to \operatorname{Ext}_R^1(C,A)$ comes from the induced long exact sequence $$\dots\leftarrow\operatorname{Ext}_R^1(C,A)\leftarrow \operatorname{Hom}(A,A) \leftarrow \operatorname{Hom}(B,A)\leftarrow \operatorname{Hom}(C,A) \leftarrow 0.$$  I have no idea how to prove this, sorry. Could you give me a hint? I appreciate your help.


How to get info on my current GRUB / boot configuration?

First some background: I have dual-boot Windows 7 / Ubuntu 13.04 on Lenovo laptop. As I did the installation about 1.5 years ago and was then even more un-savvy linux user than I am now, I can't recall everything I did to get both OSes up and running. However, I do remember that it was quite troublesome procedure (running boot-repair at least once).  Now I'm considering trying another linux distro in addition to Ubuntu (most likely Arch), and this time I'd like to do it in a way that I have an idea what I'm doing (and possibly learn more about 'inner workings' of linux distros).  So that's enough for the background. Now my question is: How do I get information on what is my current grub / boot-loader configuration?  This seems to be first and quite separate issue to consider before even dreaming about installing a third OS and more advanced messing with partitions and boot.


Do I have to leave the Schengen area if I have a short term (C) visa that will expire right before my National Visa (D) officially starts?

If I have a Type C visa from the Norwegian embassy valid for February 9-28, and my Type D national visa from the German embassy valid from March 1 - August 31, 2017, do I need to leave/fly out of the Schengen area on the 28th and fly back on the 1st day of March?


I have a simple html page with file input and a fontawesome icon I'm using as a button:

       <input type="file" name="files" />

   The jquery code for adding a new button works fine  $("#addFileBtn").click(function(){          $('.block').after("<input type='file' name='files' />")   My problem is with the delete button that does not seem to do anything. (The alert is not even triggered)  $('#removeFileBtn').click(function(){     alert(this.id);     $(this).parent('.block').remove(); });   Any help is much appreciated


Recently naturalized American visiting the UK, previously denied visa. Apply for entry clearance?

I am a very recently naturalized America citizen. I want to visit the the UK but leaning towards flying in to France, and attempt entry into the UK via Calais by road on my US passport, so that if I am refused entry I can just go back to Paris and continue my vacation in France instead of flying direct into the UK from USA and risk being sent back to the USA directly.  I don’t intend to apply for a visitor's visa ahead of time. My reason being UK visitor's visa applications are evaluated purely based on the documentation you mail in without having the opportunity to talk/explain to the officer, while my current plan of going physically to the UK would mean at the very least I will have the opportunity to petition for admission face to face.  Some background for my dilemma:  In November 2015, while a permanent resident in the USA, I applied for a simple 6-month visa to visit the UK for one week and indicated I had $3,500 of spending money. I was refused under V4.2E.  His explanation for my refusal is I presented a Bank of America account with a balance of over $20k, which shows huge deposits (of $25k+ each) and withdrawals not in line with my biweekly pay deposits of about $5k. Now of course because UK visas are purely by mail and without appeal, I was unable to explain to him those funds come from my own brokerage account. I chose not to submit a new application with additional financial documents to clarify the  because of time, my vacation to Europe was about to start in a couple of weeks plus I have zero intention of providing her majesty with more in unnecessary visa fees.  I have been legally resident in the USA since 1998. I am married, have a well paying job as an engineer here in the USA, have traveled several times to the UK and never stayed more than ten days. Previously I had two different five-year multiple entry UK visas (the last of which expired in 2014), visited several other countries in Europe, own my own home and I'm financially secure. I have never overstayed a visa in any country and travel extensively.  So basically I want to travel with all my financial documents plus a copy of the previous refusal as if I were applying for a visa, and present my case if questioned at entry. I assume as an American I am allowed to travel visa free to the UK, despite my previous visa refusal.  Is this better than applying for entry clearance ahead of time, bearing in mind obtaining entry clearance ahead of time does not mean I will automatically be allowed entry into the U.K.  UPDATE 1 on March 15 2017  See my answer below to find out how it unfolded at Heathrow.  UPDATE 2 on July 8 2017  Follow-up visit after my detentiion in March.  UPDATE 3 on July 3 2018  Second visit after the initial detention.  UPDATE 4 on March 3 2019  Third visit after the initial detention and removal of stop flag from my profile.


I try to import on my sheets a table o this url  I use this sintaxis: =IMPORTHTML("http://travian.kirilloid.ru/build.php#b=18&mb=1&s=1.45";"table";1)  What is the error?


The following quote is from an article in the New York Times about D. Trump’s new budget, which can be found .     Hardest hit would be the Environmental Protection Agency, with a cut   of 31 percent. These cuts would end climate change research — a global   setback. They would eliminate money to carry out President Obama’s   plan to reduce carbon dioxide emissions from coal-fired plants — the   centerpiece of his strategy to combat global warming. They also would   disadvantage states that went for Mr. Trump. For Wisconsin and   Michigan, for example, the budget would zero out initiatives to   restore the Great Lakes. For Virginia, it would end restoration of   Chesapeake Bay, whose watershed affects Pennsylvania also. Farm   states, which largely supported Mr. Trump, would face a 21 percent   reduction in the Department of Agriculture.   I am puzzled by the repeated and consistent use of the conditional modal verb would in the above paragraph. What meaning is it supposed to convey? If replaced by will it would imply some level of certainty on the author’s part about his inferences. Is the author therefore communicating his non-conviction in using would? If say, he is not sure, won’t it be better to use may or might instead, so as to alert the reader about this? Or is the nuance in these statements clear to a native speaker?


Why is the spelling of "pronounce" and "pronunciation" different?

Why is the spelling of pronounce and pronunciation different? If one originally did not know the spelling of pronunciation, one would when hearing it verbally deduce its spelling to be pronounciation, which is the incorrect spelling.  Why is the difference in spelling so? Also, are the two words pronounced differently? (I think I am using the American pronunciation for pronunciation (pro-noun-ciation), but according to , it's pronounced as pro-nun-ciation. Is this just for British English or universally?)


How can I run a CMD or .bat file in silent mode? I'm looking to prevent the CMD interface from being shown to the user.


Are “this” and “next” demonstrative determiners?

Question 1: In the following, is this a demonstrative determiner:     I will go to the store this week.   Question 2: If so, then what class is next in the following:     I will go to the store next week.   Question 3: It seems that both serve the same grammatical syntax and function here; are they therefore classified the same? (If not, why not?)


Calculating geometry for feature class with x/y and Lat/Long values in different projections?

I have a feature class with x/y values populated on the native projection of the feature class (state plane).  In the same feature class I also have Lat/Long fields that I need to populate (WGS 84 in decimal degree).  The problem I have is the calculate geometry function doesn't allow me to choose a different projection other than State Plane when I try to auto populate the Lat/Long values.  Does anyone have any python code or ideas that might help with this request?


Silk-screened 'buttons' on a touch-tone phone?

I've been taking apart a recent, standard touch tone phone with the aim for automated dialing via a separate MCU with transistors activating the contacts (Smirk. An assistive technologies project designed for my grandmother, not 'robo-calling').  Removing the solder mask it is quite clear how to accomplish this in this case--   However, I had another question: Namely, does anyone know what process/method is being used here to trigger the switches ?  Rather than any physical device, the button contacts seem to be overlaid on the board themselves with a type of 'black substrate'. No visible connections are already apparent between the buttons.  At first I thought perhaps captive touch, but then they are activated by basically a rubber pad on the matching side, plus a plastic 'number button' on top.  My second thought here was that somehow the button press might be creating 'arcing'-- but could the voltage really be so high in this case?  I wondered if anyone had any thoughts as to what is going on, or what process is being used?


Black holes pull anything and everything that enters past the event horizon into the singularity. What if the current unknown output where all of this infinitely condensed matter goes to is the creation of new universes through 'Big Bang' events? What if that matter eventually once again expands outward after the compression caused by the black hole no longer has such a great effect on matter in the singularity, possibly caused by an eventual large span of distance? Could this be the beginnings of additional universes, i.e. new 'Big Bangs?' Could our universe be tied to a black hole (or multiple black holes) whose output from its originating universe is the matter we have around us in our own universe? How large would a black hole have to be in order to collect enough matter for additional universes that they feed to have enough mass to grow, particularly to our own universe's current and expanding size?


Partial sum of rows of Pascal's triangle

I'm interested in finding   $$\sum_{k=0}^m \binom{n}{k}, \quad  m<n$$  which form rows of Pascal's triangle. Surely $\sum\limits_{k=0}^n \binom{k}{m}$ using addition formula, but the one above involves hypergeometric functions and I don't know how to approach it.  EDIT: if possible, please don't solve it, just a few hints will do.


can you set SO_RCVTIMEO and SO_SNDTIMEO socket options in boost asio?  If so how?  Note I know you can use timers instead, but I'd like to know about these socket options in particular.


The rank of Jacobian matrix at a point of affine variety is independent of choice of generators

This is a statement made in Hartshorne Chpt 1, Sec 5.  Let $Y\subset A^n$ be an affine variety. Let $\{f_i\}$ be a set of generators of ideal $I(Y)\subset k[x_1,\dots, x_n]$. Let $p\in Y$. Define $r=\mathrm{rk}(\frac{\partial f_i}{\partial x_j}|_p)$. Then $p$ is smooth iff $r=n-\dim(Y)$.   Q: How does one see this definition of rank is independent of the choice of generators? I guess he did not mention tangent space is isomorphic to $m_p/m^2_p$ at this part and I cannot use this intrinsic definition.


Don't understand how Closure Functions are working?

I am reading eloquentjavascript to learn javascript but this closure thing is confusing me. warp1 is not function but it looks like function and it looks like taking argument too. How do closure functions work ? and what are the reasons we can use it ?     function wrapValue(n) {   var localVariable = n;    return function() { return localVariable; }; }  var wrap1 = wrapValue(1); var wrap2 = wrapValue(2);  console.log(wrap1()); // → 1  console.log(wrap2()); // → 2


Problem with vote count formatting on the Android SE app

UPDATE: It turned out to be the Ubuntu font I had applied. I went to the system font and it comes out normal. However, I personally think it would make sense to count the dash as a character and resize the text as if it were three numbers, like the high upvotes.  I guess this question should be closed as non-reproducible, if that's a reason on meta.se.     has the same subject, but the comments say it's been fixed. I am not using the SE app from 2013, but rather the newest version 1.0.85 and since it doesn't happen to others, I assume it's something with my screen size. I also don't see this with positive three character vote counts at all, so it's not really the same thing.    It seems like (at least) answers with a score of -10 or lower cause issues with formatting on mobile.  I took a look at  on Ask Ubuntu using the Android app and saw this:    It seems like there isn't enough room horizontally to display three characters with that font size, so it breaks the third one onto another line.  This issue doesn't show up in highly upvoted questions or answers, as the font size is just lowered to fit:    So it looks like the hyphen isn't counted by whatever chooses the font size, causing the line break.  I'm using Cyanogenmod 13 on a Verizon Note 4 (DPI set to 520), with the Ubuntu Regular font, in case that might be relevant.  I just tested it on an iPad, and the (now) -14 shows up fine, but screen and default font size may have something to do with that:


What are and how do I delete "spurious" artifacts?

I dissolved the inner polygons of a shp file and was left with some lines inside. I'm not sure how they got there, since the original file does not seem to have them. I've also tried deleting them, but have not been able to do so.


What would be a good way to run a ground from the existing grounded circuit to the new power outlet from another circuit?

So after asking around here I was told that it is OK to run a ground wire from an existing near by power outlet (on a different circuit) to a new power outlet. The layout is below. The garage circuit(to the left) is something that I extended to that end of the garage using PVC conduit.     What is a recommended way to run that wire, given the below layout?        Update: here are is the type of wire that was used by the previous owner AND a close up of the point where the cable enters the wall to feed the first light and then it exits to go up and head over to the second light. I rotated the image so you can read the wire specs, in fact the right side is the bottom of the image   My intention is to install a power outlet just below that hole  I might want to add a switch to shut off the lights when the in house switch is on so I can work with the table saw without having the lights on during the day time.     Update: Here is a picture of the box behind the first light (the one to the left). The black (hot) wire seems to have a cracked insulation just where it exits the wall, I had to put some tape there


Can elliptic curve cryptography encrypt with public key and decrypt with private key like RSA?

I know that RSA can be used for both, encryption and signature. What about EC? I know about ECDSA/EdDSA, but to my knowledge it can only be used to sign.  I also know about ECDH, but it is a key agreement protocol. Is there some elliptic curve based public key encryption algorithm?


My whirlpool side by side is not cold or making ice I have tried to reset the filer and it didn't fix the problem?


java-why new() slower than newInstance()

i know that if i create new objects with reflection,it is very slow ,so i test it.but the result makes  me puzzled，newInstance() is faster than new(),my jdk version is java version "1.8.0_77".  public class Test {  static class B { }  public static long timeDiff(long old) {     return System.nanoTime() - old; }  public static void main(String args[]) throws Exception {      int numTrials = 10000000;     B[] bees1 = new B[numTrials];     Class<B> c = B.class;     long nanos;     nanos = System.nanoTime();     for (int i = 0; i < numTrials; i++) {         bees1[i] = new B();     }     System.out.println("Normal instaniation took: " + TimeUnit.NANOSECONDS.toMillis(timeDiff(nanos)) + "ms");     B[] bees2 = new B[numTrials];     nanos = System.nanoTime();     for (int i = 0; i < numTrials; i++) {         bees2[i] = c.newInstance();     }     System.out.println("Reflecting instantiation took:" + TimeUnit.NANOSECONDS.toMillis(timeDiff(nanos)) + "ms");  }   }  the result:   Normal instaniation took: 2363ms Reflecting instantiation took:1679ms.   so i don't know why..who can explain it ?


How can I tell when I logged into Windows?

On UNIX I can tell when I logged in and out of my workstation with the last command.  Is there a way to get the same information on my Windows workstation?  I notice that Cygwin has a last command, but wtmp doesn't seem to be populated.  Is there a way to get last working with Cygwin?  (If this can only be done programmatically, should the question be on StackOverflow?)


How to preserve capital letters in Bibtex

I am writing a paper and am using Bibtex to create the bibliography. Everything works fine except that the capital letters in the titles of my references is not preserved in the PDF. For example, in my .bib file I have an item like this:  @article{harsanyi1988general,   title={A General Theory of Equilibrium Selection in Games},   author={Harsanyi, John C and Selten, Reinhard},   journal={MIT Press Books},   volume={1},   year={1988},   publisher={The MIT Press} }   But the title in the PDF generated when compiled is:  A general theory of equilibrium selection in games.  Only the first capital letter is respected. How can I make it respect all the other ones?  If you need it, the code I have in my .main for creating the bibliography is:  \bibliographystyle{plain} \bibliography{mybibliography.bib}   Thank you.


How can i find words with doubled letters(e.g. progress, tool and so on) in text using regex?


How can I find all the subsets of a set, with exactly n elements?

I am writing a program in Python, and I realized that a problem I need to solve requires me, given a set S with n elements (|S|=n), to test a function on all possible subsets of a certain order m (i.e. with m number of elements). To use the answer to produce a partial solution, and then try again with the next order m=m+1, until m=n.  I am on my way to write a solution of the form:  def findsubsets(S, m):     subsets = set([])     ...     return subsets   But knowing Python I expected a solution to be already there.  What is the best way to accomplish this?


I live in an older house and have some outlets in our kitchen that don't make sense to me. We have one outlet that is tied to a dimmer switch on the opposite side of the room. I can detect that the outlet is hot using my voltage detector (when the dimmer switch is all the way on), but it pulses. I get about 6-7 beeps, then it skips one, beeps 6-7 more times, skips, continue. My GFCI tester shows an open hot. The outlet doesn't work.  I'm not very experienced with electrical work but this sounds highly unusual to me. Where should I start with fixing the issue?


I like to setup a website for a software to share it or sell it, the domain with .com already has been registered but .net and .org are available,  I have seen some products in .org, should I use this affix for my website?  Are there any advantage or disadvantage to use it over a .com website?


Proof that function is real part of $\sec(z)$

I'm working on the following problem:    I've deduced that the key is to show that $u$ is the real part of $\sec(z)$. But, I'm getting stuck in the algebra and am hoping someone can point me in the right direction. Here's my work so far:  \begin{align} \cos(z)&=\cos(x)\cosh(y)-i \sin(x)\sinh(y)\\ \text{sec}(z)=\frac{1}{\cos(x)} &=\frac{1}{\cos(x)\cosh(y)-i \sin(x)\sinh(y)} \cdot \frac{\cos(x)\cosh(y)+i \sin(x)\sinh(y)}{\cos(x)\cosh(y)+i \sin(x)\sinh(y)}\\ &=\frac{\cos(x)\cosh(y)+i \sin(x)\sinh(y)}{\cos(x)^2\cosh^2(y)+\sin(x)^2\sinh^2(y)}\\ \end{align}  Thus, I need only show that $\cos(x)\cosh(y) - i\sin(x)\sinh(y) = -1+\sin^2(x)-\sinh^2(y)$. However, this is not true, per my previous post.


How to get the time to display as1:04 instead of 1:4

Here is the code import java.util.Scanner; public class Main{     public static void main(String[]args){         int totMins;         int hours;         int mins;     Scanner sc= new Scanner(System.in);     System.out.println("Enter the time in mins: ");         totMins= sc.nextInt();         hours=(int)(totMins/60);         mins =(int)(totMins%60);         System.out.printf("%d:%d",hours,mins);     } }  When I input say, 64, it displays as 1:4. How do i get it to display as 1:04?