Searching through code for a tag that is missing a variable

I am sure that what I am trying to do is very simple but I am new to regex.  I am searching through millions of lines of code. What I need to find are <cffunction> tags that are missing the output= attribute. For instance this should match:  <cffunction name="qrySelectQuestions" access="public" returntype="query">   However, this should not:  <cffunction name="qrySelectQuestions" access="public" output="no" returntype="query">   Note, the output attribute could be anywhere within the tag definition.


How to insert these unicode symbols u2400 to u2421?

Please how can I insert these unicode symbols in the range u2400 to u2421. They are names of control characters.  You can see them here:   I could find the package keystroke which has very nice keys, but that is not what I want.  Thanks!  -- Edited:  Quoting Marco: "The problem is to find a font that contains these characters."


Is there any way to boot a Mac with WiFi turned off completely, until manually turned on again? (And to be precise - it should be turned off completely and not just disconnected from a network.)  The use case would be to patch a Mac that hasn't been used in a while (and has been powered off) and therefore booting it in an unpatched state is a small but non-zero security risk.  I've searched the web and haven't found any hint (could be me using wrong search phrases) so at this point I'm looking for any undocumented, "obscure" solution that's out there.  EDIT: This question has been marked as a duplicate of  but while it's pretty similar, I believe it's also different, so let me clarify.  The other question is about fixing a system that doesn't boot, whereas my question is about security.  We know that EFI in Macs is able to connect to WiFi to download the Recovery image, or in case of Macs with the T2 chip--to verify the OS if secure boot is enabled.  This means that if the system hasn't been updated in a longer while, the WiFi (or more general: networking) code in the EFI can have known vulnerabilities.   So basically when I turn on such a vulnerable Mac, up to a few minutes can pass until I can disable the WiFi in macOS preferences (let's say is has a spinning disk, so the boot time is significant),  and even then the EFI will still be able to turn it on after a reboot.  Now, I'm fully aware that it's unlikely that something bad will happen, but I'm hoping to learn a way to somehow enable "radio silence" mode on boot, e.g. using some magic, undocumented keyboard shortcut.


Applied Subdivision Surface Modifier To a Mirror Modified Model The Model Enveloped in on Itself

So I was doing a fairly simple model of a Glock hand gun. I had already applied a mirror modifier to the model, that I had so far (which was the grip). Then I applied the subdivision surface modifier. At the point where the mirrored part of the model and the "real" part of the model met it collapsed inside of itself. Bellow will be a picture of the model. I would really appreciate it if someone could tell me how to fix this so I can get back to working on my model. Also the picture is the bottom part of the grip, it may looks like two smaller grips, they are supposed to form one. But like I said it collapsed in on itself.  Thanks, Nova


When calling a function with admin-ajax.php, what is the first parameter?

I'm trying to make a function that can either be called directly or via admin-ajax.php.  Strangely, when calling it as an AJAX function, the first parameter's value is a blank string.  function my_function($foo = 10, $bar = 10) {     //$foo will have a different value here depending on whether the function was called directly or via AJAX. Why?     //$bar will always correctly default to 10 }   Why is it being passed a blank string, and where's the documentation for this?


Can a Half Orc Barbarian use Relentless Endurance after failing to use Relentless Rage?

Relentless Rage allows you to avoid passing out with a successful Constitution saving throw.     Starting at 11th level, your rage can keep you fighting despite grievous wounds. If you drop to 0 hit points while you're raging and don't die outright, you can make a DC 10 Constitution saving throw. If you succeed, you drop to 1 hit point instead.   A Half-Orc's Relentless Endurance allows you to do the same.     When you are reduced to 0 hit points but not killed outright, you can drop to 1 hit point instead. You can't use this feature again until you finish a long rest.   As a Half-Orc Barbarian, after failing to come back to 1 hit point using your Relentless Rage can you immediately try to do the same using Relentless Endurance?


Can gravitons travel faster than the speed of light?

It is common knowledge that not even light can escape black holes, but since the black hole is emitting gravitons, and the gravitons travel in the direction away from the black hole, and it is escaping successfully, are they faster than light?


What should I consider when I invite colleagues to SE?

Over the last few days I shared some things that I learned at work on the SE network in Q&A-style. To me, that seemed better than having the knowledge lost forever in various "internal reports", or worse, labbook entries. When I told my colleagues about it, they seemed intrigued and wanted to try it out as well. We work at a publicly funded research institute, so sharing our knowledge here under a CC-SA license seems like a good "fit" to the overall effort.  Since we have similar interests, we will probably end up voting and working on the same sections and even questions on SE. When we are at work, we will also share the same IP-address.   Before inviting more colleagues, I am wondering about two things:    Should I worry that I will be accused of creating an army of sockpuppets? Due to the overlap in interests and IP-address, this could (and probbly should!) come up. At what point is a subgroup of people that know each other "gaming the system"? It is not unlikely that we will be discussing an issue together until one of us figures it out and shares the solution Q&A style. The 3-4 people that were involved in the discussion then have a  to upvote. Is this considered ethical?


Problem:   I am getting the error message Option clash for package adjustbox. and am wondering what could be wrong? Any advice how to figure out which of the other packages are generating this error?  Minimal Working Example:  \documentclass{article} \usepackage{lipsum} \usepackage[utf8]{inputenc} \usepackage{booktabs} \usepackage{makeidx} \usepackage{multicol} \usepackage{ragged2e} \usepackage{fancyvrb} \usepackage{xcolor} \usepackage{graphicx} \usepackage{textcomp} \usepackage{menukeys} \usepackage{tikz} \usepackage{cellspace, graphicx, makecell} \usepackage{xparse} \usepackage{cellspace,tabularx} \usepackage[export]{adjustbox}  \begin{document}  On pc it looks like \tabwin\nobreakspace and on Mac it looks like \tab.  \end{document}


How can I move the column and row to the center

this is my second challenge in frontmentor, but honestly I haven't practice for long time..... I am practicing to create a 3-column preview card component and I have created it by 3 columns and one row.  However, I found I could not able to moved the columns and row to the center of the page; I even tried to adjust the position of the columns by left, right by px or erm....etc. Please advice how could I shift the columns to the center. I have the other question, could I add any icon or button such as "learn more" into the columns? The screenshot below is the complete of 3-column preview card component, and the url from codeply is what  I have made.  I will also put what I have created by html and css in here. Thanks for your help and please kindly to support me to achieve it. I think today is my time to back to the field.     /* build your own custom Bootstrap theme:    https://themestr.app */  /*font*/  h1, h2, h3, h4, h5, h6 { font-family: 'Big Shoulders Display', cursive;   font-weight: bold; color: white; }  p { font-family: 'Lexend Deca', sans-serif; font-weight: 400; color: white; }  /* Create three equal columns that floats next to each other */ .column {   float: left;   width: 20%;   padding: 10px;   height: 200px;  }  .left{     border-radius: 5% 0 0 5%  }  .right {     border-radius: 0 5% 5% 0    }  /* Clear floats after the columns */ .row:after {   display: table;   clear: both; } <!DOCTYPE html>   <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="preconnect" href="https://fonts.gstatic.com"> <link href="https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@700&display=swap" rel="stylesheet">  <link rel="preconnect" href="https://fonts.gstatic.com"> <link href="https://fonts.googleapis.com/css2?family=Lexend+Deca&display=swap" rel="stylesheet">

Sedans

  Choose a sedan for its affordability and excellent fuel economy. Ideal for cruising in the city   or on your next road trip.

 SUVs

  Take an SUV for its spacious interior, power, and versatility. Perfect for your next family vacation   and off-road adventures.

 Luxury

  Cruise in the best car brands without the bloated prices. Enjoy the enhanced comfort of a luxury   rental and arrive in style.


A few moments ago, I was asking a question on Hermeneutics Stack Exchange and a dialog appeared to verify I'm not a robot. Even though I don't have a picture and don't know how to trigger it again, what I got was something not responsive. More specifically, I had to scroll to the side in order to check the captcha.


I am just starting with TeX so please be tolerant for my lack of knowledge.  I am using fancyhdr for footers and headers and I would like to put the title from \title into \fancyhead{}  How can I do it ?   My code :   %usepackages and all sorts of stuff %...  % ------ % Header/footer \usepackage{fancyhdr}     \pagestyle{fancy}     \fancyhead{}     \fancyfoot{}     \fancyhead[C]{\title}     \fancyfoot[C]{\thepage}   % ------ % Clickable URLs (optional) \usepackage{hyperref}  % ------ % Maketitle metadata \title{\vspace{-15mm}%     \fontsize{24pt}{10pt}\selectfont     \textbf{Android}     }    \author{%     \large     \textsc{Patryk} \\[2mm]     \normalsize University\\     \vspace{-9mm}     } \date{\today}    %%%%%%%%%%%%%%%%%%%%%%%% \begin{document}  \maketitle \thispagestyle{fancy}  % ... % ...


How can I resolve a hostname to an IP address in a Bash script?

What's the most concise way to resolve a hostname to an IP address in a Bash script? I'm using .


Bash return permission denied error when I redirect the output of ls to a file

I'm currently studying shell commands, one of the exercises consists in creating a structure with various directories and subdirectories.  I wrote ls -laR > hello, it was supposed to create a text file named hello. However, I get the following message bash: hello: permission denied, even when I type sudo in the beginning.  The command worked in another Linux distribution. Also, I used a few minutes ago ls -la in the directory where I want to create the file and it gave me this:  drwxr-xr-x 2 root root 4096 Nov 26 10:56 . drwxr-xr-x 5 root root 4096 Nov 26 10:56 ..   According to the first triad I have writing privileges?


Maintain 8-bit pixel depth in Raster Calculator

Would anyone know how to maintain 8-bit pixels when computing raster calculations in ArcMap?  This is part of a model so I need to keep the image with the original 8 bit, do the calculations, convert it into 32bit and do some other calculations and then output it.   The problem is to keep it at 8 bit for the first set of calculations.


Is arrays passed by reference to methods in java? If so, why the following code prints 1,2,3,4,5 instead of 5,4,3,2,1 ?  public class Test {    public static void main(String[] args) {       int[] oldList = {1, 2, 3, 4, 5};       reverse(oldList);       for (int i = 0; i < oldList.length; i++) {           System.out.print(oldList[i] + " ");       }    }     public static void reverse(int[] list) {       int[] newList = new int[list.length];       for (int i = 0; i < list.length; i++) {           newList[i] = list[list.length - 1 - i];       }       list = newList;    } }


Installing Ubuntu on Acer Chromebook 13?

Hey guys I was looking to install Ubuntu on my Acer Chromebook 13 (CB5-311-T1UU) in the way outlined in on the comment made on this thread:    It appears that you can't fully remove ChromeOS from a Chromebook (well, you can but it really struggles) but you can make it dual boot and make it boot into Ubuntu by default. I'll show you the last method.  First make a backup of all you local files because everything stored locally will be deleted by entering developer mode.  Press and hold the Esc and Refresh keys together, then press the Power button (while still holding the other two keys). This will reboot your Chromebook into Recovery Mode.  When you get the yellow screen with the exclamation mark hit Ctrl+D (This will bring up a prompt asking if you want to turn on Developer Mode.) Press Enter (this will take about 15 to 20 min. You'll get a screen with a red exclamation mark but leave it be until it reboots into ChromeOS).  Turn it on but do not login. Make sure you have a WiFi or Ethernet connection configured at this point. 3G/4G is not recommended. Press Ctrl+Alt+→ (→ is the forward arrow where the F2 key would be on a PC). Do not use the normal Ctrl+Alt+→ method to get a shell. Use the Ctrl+Alt+→ method while no one is logged in.  Login as user chronos, no password is needed.  As the chronos user and without having changed directories or run other commands, run:  curl -L -O http://goo.gl/s9ryd; sudo bash s9ryd (There is a new script with a new link. If you still want to use the old version you'll have to replace the new link with the old link) curl -L -O http://goo.gl/9sgchs; sudo bash 9sgchs...  But it did not do anything when I pressed CTRL + L.  Does anyone know if there is a specific build for the Acer Chromebook 13?


Problems with mathpazo and \mathcal with non-capital letters

I am trying to use mathpazo font, but I have some issues getting the \mathcal working with small letters  this is my template  \documentclass[11pt]{amsart} \usepackage{geometry}                % See geometry.pdf to learn the layout options. There are lots. \geometry{letterpaper}                   % ... or a4paper or a5paper or ...  %\geometry{landscape}                % Activate for for rotated page geometry %\usepackage[parfill]{parskip}    % Activate to begin paragraphs with an empty line rather than an indent \usepackage{graphicx} \usepackage{amssymb} \usepackage{epstopdf} \usepackage{mathptmx} \usepackage{accents} \usepackage{amssymb} \usepackage{amsfonts}  \usepackage{mathpazo}    \begin{document} \maketitle %\section{} %\subsection{}  just some test  $ \infty \mathcal{l}$  \end{document}


Are matter waves (de Broglie) classified as transverse or longitudinal?

We know that waves are of two types: transverse and longitudinal, and we have studied about de Broglie waves as well,    so which one of them is it? Or we have other means to classify them?


Will a refusal for UK visitor's visa have any impact on a US visitor's visa application result?

UK visitor's visa was denied because a residence visa application had been refused previously, about 4 years ago. Now will it have any impact on a US visitor's visa application result?


I am unable to use Pivot in SQL server due to some compatible issues, so I am trying do same thing in code level by using LINQ TO SQL.  I have a record set as like below.  Dates           RM      DM      LocationNum     City        State   Count -----           --      --      -----------     ----        -----   ----- 2013-12-13      1       1       4795            Grapevine   TX      1 2013-12-13      1       2       4796            Grapevine   TX      1 2013-12-14      2       3       4797            Grapevine   TX      1 2013-12-15      NULL    NULL    NULL            NULL        NULL    0 2013-12-16      NULL    NULL    NULL            NULL        NULL    0      I am trying to convert this in   RM  DM  Loc     City        2013-12-13      2013-12-14  2013-12-15  2013-12-16   --  --  ---     ----        ----------      ----------  ----------  ---------- 1   1   4795    City1       1               0           0           0 1   2   4796    City2       1               0           0           0 1   3   4797    City3       0               1           0           0   Can any one help me in this.


Value of the total spin quantum number $s$ in a system of two spin-$1/2$ particles

Let it be a system of two spin-$1/2$ particles, the first one in a state $|s_1,m_1 \rangle$ and the second one in a state $|s_2,m_2 \rangle$, with $s_1=s_2=1/2$ and $m_1,m_2=\pm1/2$. I see that the total secondary spin quantum number $m$ is just the sum of those of each particle, $m=m_1+m_2$, since $\hat S_T|s,m \rangle=(\hat S_1+\hat S_2)(|s_1,m_1 \rangle\otimes|s_2,m_2 \rangle)=\hbar(m_1+m_2)|s,m \rangle$. However, what happens to the total spin quantum number, $s$? Is it also the sum of $s_1$ and $s_2$? In addition, since $s_1=s_2=1/2\geq0$, how can it be that the so called singlet states have $s=0$: $|s,m\rangle=|0,0\rangle$?


How much would an airline be fined if the immigration officers of the destination country deny me entry?

I read on this  by :     Sign indemnity form saying that you accept personal responsibility to pay the fine imposed to the airline, in case you are denied.   How can I know how much an airline would be fined if the immigration officers of the destination country deny me entry?


There was a book problem I recently solved going like this:  $\sum_{n=0}^\infty a_n^2x^n$ converges on $[-6,6]$  What is the largest interval $\sum_{n=0}^\infty a_nx^n$ is guaranteed to converge on?    I already understand this:  $\limsup_{n\rightarrow\infty}|a_n^2|^{1/n}=1/6$  $\Rightarrow\limsup_{n\rightarrow\infty}|a_n|^{1/n}=1/\sqrt6$  $\Rightarrow$Radius of Convergence is $(-\sqrt6,\sqrt6)$ for $\sum_{n=0}^\infty a_nx^n$    What I was wondering however, is what are examples of what the values for $a_n$ could be where the endpoints dont converge for the series, but the series with $a_n^2$ converges on [-6,6]?


What does the Code of Conduct say about pronouns?

Please leave any feedback or questions about this FAQ on .     Two weeks ago, we  to directly address concerns over pronoun usage. We tried to anticipate likely questions, but… missed the mark by quite a lot. Based on Gareth McCaughan’s excellent post, “”, we’ve gone back to the drawing board and written a new FAQ that aims to address actual questions that have been frequently asked in these discussions.  If you read only one thing, the answer to question #1 under The Basics sums up our goals in publishing this guidance:     It would be rude to refer to a man as "she" or a woman as "he". Some people are neither male nor female and might, for instance, ask to be referred to as "they". When someone indicates what pronouns should be used to refer to them, please use the pronouns they state as you would others.   This is a learning process for most of us - from authors to readers to moderators to employees of Stack Exchange, Inc.  Let’s all try to approach this with good intentions and a willingness to learn from one another.  Big thanks to Gareth for leading by example here, and to everyone who has stepped up to ask and answer the important questions!  What's all this stuff about pronouns in The Code of Conduct?  The  has two direct references to pronouns:   “Use stated pronouns (when known).” “Prefer gender-neutral language when uncertain.”   What does all of this mean and how can I as a user understand and follow the CoC guidance?


Was there any kind of church in Middle Earth?

We know that there were active deities in Middle Earth ( - who performed at least one tangible modern act, namely resurrection and return of Olorin/Gandalf) and that people were aware of the fact.  But was there a church of Eru/Iluvatar? E.g. organized worship of Eru, with mortal/elvish people who professionally worked in the field of worship, temples, religious texts, formal prayers, and/or other trappings of organized religion?  I'm mostly interested in LOTR material, but would be happy with a good answer from non-LOTR Middle Earth lore.


How do I call functions loaded from a Static Resource JavaScript file?

I'd like to put some shared Javascript to Resource file to reuse it between several components. This Javascript is general purpose set of utility functions. However, functions from my resource file are not available from the Components. Static resource (named TestScript):  function helloWorld() {      return 42; }   Component:  <ltng:require scripts="{!$Resource.TestScript}" <ui:button label="Do job" press="{!c.doJob}"/>   Controller:  doJob: function(cmp, event, helper) {      var i = helloWorld();      // failed with Uncaught ReferenceError: helloWorld is not defined }   I don't like to use  <ltng:require scripts="{!$Resource.***resourceName***}" afterScriptsLoaded="{!c.afterScriptsLoaded}" />   because my static resource is a set of functions and I'd like just use them as functions later in my controllers. How can I achieve that (if possible)? If not, what's the suggested solution?


JS selector on click not working for django model generated content

This might be a dumb mistake but I have this code:  $('#delete-btn').on('click', function(){     return confirm('Are you sure you want to delete this?'); });   the alert does not occur but with this code it does:  $(document).on('click', '#delete-btn', function(){     return confirm('Are you sure you want to delete this?'); });   from what I understand they are the same thing, but the second tries to process the event every click on the page looking for the specified id.  I tried putting it in a document ready block but that didn't help.  I don't understand why one works and the other does not.


I have a question about 3D game models and copyright

I am making a game that is like a combination of minecraft and unturned. It is like minecraft as it is very block based. It is like unturned because it has vehicles and other unturned functionalities. This is what the player model would probably look like:   The player model is very similar to minecraft's Steve. It does however have some major differences that make it unique. For instance the eyes are not stationary and can actually look around. The mouth has two sets of teeth which act as the jaw line and lips that represent the mouth. Both the teeth and the lips can be animated for a "Talking" animation. The eyes also have eyelids which can close and open with proper animating skill. The player model can also be customized in game, as the hair style, beard style, eye color, skin color, hair and beard color, can be changed during game play. Unlike minecraft's character, It is not restricted to just helmet, chest plate, leggings and boots for armor. This model can change its shirt, pants, helmet, hat, pants, leg armor, armor boots, chest plate, backpack (If he equips one), gloves, shoulder pads, elbow pads, and any other piece of armor and clothing that can be used in game.  My problem is, even with the major differences in the model, will it still be too similar to Steve? Or is this model too different to have me sued for copyright/IP infringement?  Thanks for any input.  I just started working on the model again, This time the player can hold things and also wears shoes:


Can "proper" be used proper as an adverb?

Which one is correct?         I hope I thanked you proper!    I hope I thanked you properly!


Why is a two level laser impossible to make?

I would like to know why it is impossible to have a two level laser ?  Indeed if I write the equations (I neglect here the spontaneous emission), I have :  $\frac{dN_2}{dt}=W(\omega).B.(N1-N2)$ and $\frac{dN_2}{dt}=-W(\omega).B.(N1-N2)$  Where $W(\omega)$ is my energy density and B my einstein coefficient.  If i add a pump I have this :  $\frac{dN_2}{dt}=W(\omega).B.(N1-N2)+W_p$ and $\frac{dN_2}{dt}=-W(\omega).B.(N1-N2)-W_p$  If $W_p$ is high enough I can have $N_2>N_1$.  So why do we say that the inversion is not possible ?  Thank you !


Mental Illness as a cause of academic disruptions

I'm an undergraduate mathematics major and I also struggle with PTSD and depression. A lot of the trauma is triggered by being in a close-spaced classroom environment which makes attending classes very difficult. Basically I sit in the classroom understanding nothing because my anxious I am unable to concentrate.  What this has done is cause me or forced me to drop two classes and receive a W grade. Even though two isn't bad, I was looking forward to transferring to a better school, Stony Brook but now I'm afraid that the second W is going to look bad especially because I only have 19 credits.   Also I want to go to a good mathematics school and the dream is to be able to get a Phd. one day. Academically I have been doing great in the classes I have stuck out in, all 3 A's and two A-s. I love mathematics and usually enjoy doing it in solitude. I am able to do some proofs(although the easier ones) which my peers seem to be uninterested in. Applying to a grad school or even undergrad, is it advisable to disclose a mental illness? Usually if you do this at a job interview they will look for some other excuse not to hire you. Do universities see this as a red flag that student is unreliable so shouldn't be accpeted as readily? Hopefully, going forward these will be my only two Ws.


Size of the universe as a function of time

The are several notions of sizes with respect to the universe which are defined by some type of horizon. As I understand, these are all finite, and their change is continuous over time. So for any of these notions there exists a continuous function $f : \mathbb{R}^{+}_0 \rightarrow \mathbb{R}^{+}_0$ that maps a point in time after the big bang to size of the universe at that point in time.  Then there is another notion, the total size of the universe, and as e.g. wikipedia states, it is consistent with theory to be infinite in size. It is obvious that a function with a codomain of $\mathbb{R}^{+}_0$ cannot be an appropriate model for an infinite size. And I have trouble to even categorize a proper candidate. If the universe is infinite now, and its expansion is continuous, then it was infinite yesterday, a year ago, 13 billion years ago.  Which kind of function goes from $f(0) = 0$ to $f(t) = \infty, t > t_0$ for some $t_0 > 0$, and how does it do that continuously?


Proof that if $\gcd(a,b) = 1$ and $a\mid n$ and $b\mid n$, $ab \mid n$

I'm learning about properties of greatest common divisors, specifically when two numbers are relatively prime.  The exercise I'm working through is :     Suppose that $\gcd(a,b) = 1$ and that $a\mid n$ and $b\mid n$. Prove that $ab\mid n$   Proof(so far):   $\gcd(a,b)=1$ implies $am+bk = 1$ for some integers $m$ and $k$.   (Given hint) Multiplying the equation by $n$ yields: $$amn+bkn=n$$  I'm not sure what to do after applying the hint. Am I supposed to show that $ab$ divides both $amn$ and $bkn$?  Thanks in advance.


How do I calculate a confidence interval for the mean of a log-normal data set?

I've heard/seen in several places that you can transform the data set into something that is normal-distributed by taking the logarithm of each sample, calculate the confidence interval for the transformed data, and transform the confidence interval back using the inverse operation (e.g. raise 10 to the power of the lower and upper bounds, respectively, for $\log_{10}$).  However, I'm a bit suspicious of this method, simply because it doesn't work for the mean itself: $10^{\operatorname{mean}(\log_{10}(X))} \ne \operatorname{mean}(X)$  What is the correct way to do this? If it doesn't work for the mean itself, how can it possibly work for the confidence interval for the mean?


What to do when I know my question would be a duplicate?

I'm searching for a solution for a problem/question I'm almost 100% sure was asked before but I can't find it.  It is a generic question, no way that it wasn't asked before but no matter how many ways I try to search I just can't find it.  I don't want to ask a dupe question only for the reason to get closed in 5 minutes, of course I would get my answer but this still sounds kinda selfish.  What should I do?


I want to use my shell script like this:  myscript.sh -key keyValue   How can I get the keyValue ? I tried getopts, but it requires the key to be a single letter!


auto-completion does not work for "sudo apt-get install"

Okay a college of mine just showed me that you could do  sudo apt-get install <type first letters of package> <TAB>   That it auto-completes the name of the package. Just for an example...  sudo apt-get install ged<TAB> results in sudo apt-get install gedit  Now I tried to do this but this does not work for me.  How can I solve this? Do I have to install a package? My college told me that he didn't install anything extra for it.


Not sure if this is the right Stack Exchange site, but I bought a brand new ASUS K55N laptop (6 GB RAM) but it says only 1.46 GB is usable.  Info:   Windows 8.0 x64 System reports 6 GB but only 1.46 usable msconfig Boot tab does NOT have memory checked in advanced options BIOS reports 2018 GB RAM Called ASUS, apparently this model has 1 2 GB stick and 1 4 GB stick   This led me to believe that the 4 GB stick was corrupt but I ran the Windows memory diagnostic utility and came back with no errors.    Any thoughts? Other things I should try?  UPDATE:   Just saw that it has 4 GB as hardware reserved! That can't be right? How can I fix that?


Uncaught exception 'Exception' with message 'String could not be parsed as XML on line 48

Fatal error:  Uncaught exception 'Exception' with message 'String could not be parsed as XML' in Stack trace: C:\xampp\htdocs\trendfeeds.php(48): SimpleXMLElement->__construct('') {main} thrown on line 48       echo '<?xml version="1.0" encoding="utf-8"?>'; echo '<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">'; echo '<channel>'; echo '<title>Games - Free Download - Freshwap</title>'; echo '<link>http://www.freshwap.com/</link>'; echo '<language>en</language>'; echo '<description>Games - Free Download - Freshwap</description>';  $url="http://www.google.com/trends/hottrends/atom/hourly"; $beg="<li>"; $end="</li>"; $tryscrape="1"; $end=str_replace('/','\/', $end); $beg=str_replace('/','\/', $beg); $end=str_replace('\"','"', $end); $beg=str_replace('\"','"', $beg);  if($tryscrape==1) { $data = file_get_contents($url); $regex = '/'.$beg.'(.+?)'.$end.'/'; $count=1; preg_match_all($regex,$data,$match,PREG_SET_ORDER); foreach ($match as $result) { $link = $result[1]; $link=strip_tags($link); echo '<item>'; echo '<title>'.$link.'</title>'; echo '<description><![CDATA[';  ?>  <?php  function google_blog_feed($path){ $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$path); curl_setopt($ch, CURLOPT_FAILONERROR,1); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_TIMEOUT, 15); $retValue = curl_exec($ch);                       curl_close($ch); return $retValue; } $sXML = google_blog_feed('http://blogsearch.google.com/blogsearch_feeds?hl=en&q='.$link.'&ie=utf-8&num=10&output=rss'); $oXML = new SimpleXMLElement($sXML); // Error on this line foreach($oXML->channel->item as $oDocuments){ $title = strip_tags($oDocuments->title); $url = $oDocuments->link; $description = $oDocuments->description; echo $description; }  ?>  <?php  echo ']]></description>'; echo '<category><![CDATA[Google]]></category>'; echo '</item>'; } }  echo '</channel>'; echo '</rss>';  ?>   Please help me on this...


Lifting/reducing review suspension ban when gaining edit privilege

If someone just gained the  (which will give access to the Suggested Edits queue) while they are suspended from reviewing, they are able to see a pending review on a post but still can't review it, neither edit the question until that suggested edit is handled, neither access the suggested edit queue that was just unlocked for them.  When clicking on edit, the suspension message will appear in addition to the suggested edit differences, without the ability to do anything.  You’ve been suspended from reviewing. You will be able to review again on...Your review on ... wasn't helpful. Please review the history of the post and consider which action would achieve that outcome more quickly.  Feature suggestion On this specific scenario (more or less some conditions like current suspension duration...), lift the review suspension for that user for all queue reviews or at least for . This can be see as an extra bonus with the privilege that may give users (talking about a relatively small reputation user, ~2000 rep only) a chance to learn and improve their reviews. Related question :


I have read about singular value decomposition (SVD). In almost all textbooks it is mentioned that it factorizes the matrix into three matrices with given specification.   But what is the intuition behind splitting the matrix in such form? PCA and other algorithms for dimensionality reduction are intuitive in the sense that algorithm has nice visualization property but with SVD it is not the case.


Is it possible to write SQL query that returns table rows in random order every time the query run?


Random initialization/order in neural network — bias or variance?

I'm puzzled about how to describe differences occurring between neural networks trained on the same data and with the same configuration. They differ only in the initial weights (different seeds used for random initialization) and in the random order in which they process the training data. Are these two examples of bias or variance? I tend towards bias, as both effects have no connection to the data, yet only to the initial state of my model. Thanks!


Do we have any extra feature in Stack Exchange Android app than the mobile site?

Today I got a Stack Overflow link in my email and when I opened it took some time loading the app (as I had set it to open stack URLs in the Stack Exchange app). The same URL if I open from Gmail in Chrome, it loads the page faster then before.   There is no doubt that the app is pretty awesome. Thumbs_up to SE for it.  Is there anything that I can do on app but not on mobile site of SE?


What is the time complexity of conjugate gradient method?

I have been trying to figure out the time complexity of the conjugate gradient method.  I have to solve a system of linear equations given by  $$Ax=b$$  where $A$ is a sparse, symmetric, positive definite matrix.  What would be the time complexity of the conjugate gradient method?


The question is short and simple.  Say I use i.e. in my formal publication. Which is correct?     ... by the interior landmarks, i.e. elevators and escalators.   Or     ... by the interior landmarks, i.e., elevators and escalators.   What about e.g.? Is it always followed by a ,?


In a science fiction story I am writing humans travel through space (only our solar system) using dark energy. In my imagining of the future scientists discovered that dark energy exists in a field which repulses mass. The explanation being that While gravity is the force which attracts massive objects, dark energy pushes them apart. in the story the reaction between this push and pull effect on space is the force which creates dark matter. (the fabric of the universe)   So my question is this:  If dark energy is responsible for the expansion of the universe, is it possible that it is also the force which creates dark matter?


How many permutations of letters in MISSISSIPPI such that no S is next to another S?

How many possibilities are there to arrange the letters of the word MISSISSIPPI, such that no S is next to another S?  Here are some possible examples:   SMSISISIPPI MSISISISPPI MISISISPPIS   Note that there is never something like SSS.  Or in other words: No S touches another S!


What is a suitable image resolution for canvas prints?

I would like to create a 60 inch x 20 inch canvas print using an image with a resolution of 4759x1798 (240 pixels per inch) and I would like to know if the image quality will still be good at that size.  To generalise the question, what is the recommended maximum size of an enlargement at varying image resolutions?  e.g. 3 megapixel, 5 megapixel, 8 megapixel, etc


The reason of closing vote is missing when there is an audit

I've just seen that the reason of closing is missing in the reviewing page of closing votes.    Is it a temporary error or it's a bug?  EDIT: Seems that only when there are audits the reason is missing.  If I cannot upload image I will make an ASCII art:  Should this question be closed as: ? (less)  ┌────────────┐ ┌─────┐ ┌────┐ ┌────┐                                              │ Leave Open │ │Close│ │Edit│ │Skip│                                              └────────────┘ └─────┘ └────┘ └────┘ Leave Open if this question should not be closed  Close if this question should be closed for any reason; consider leaving an  explanatory comment before voting  Edit if this question could be improved so that it does not need to be closed  Skip if you are not sure and want to go to the next question


"for file in" numerically instead of alphabetically?

I have a script generating an index based on each file in a folder. All file names are a number with extension.   How can I modify my loop to process them in numeric order?  for file in xml/*.xml; do   ... done


Is there a way to see all of my questions from all sites?

I know I can see all of my questions on a particular site, but is there a way to see all of my questions on all sites? I go to my Stack Exchange profile and there is no Questions tab. Also the user:me is:question search doesn't work on the Stack Exchange site, only on particular sites.


Automatic Switch to Battery Backup when Power fails

OK. So I am developing a simple stand alone device. It has a sensor module that takes in 12V and another PCB that takes in anywhere from 5V to 12V.  Now, I am running this entire device using Mains supply. My Question is, is there a way, wherein, the device will automatically Switch to a battery supply when the Mains supply fails?  I have read on this topic a little bit and have come across devices called Power Path Controllers.  Will a simple Relay also do? I attach the Common terminal to the Input of my circuit. Like the diagram shown below.  Might that work? Any advises?  I need this switching to happen automatically. Without any human interference. Also, it would be an additional positive if my microprocessor could tell which supply is giving power.


Check client connection to SQL Server 2008 Express

I am having a problem with client application (running on a PC on LAN) connecting to the SQL Server 2008 Express.  The application gets error something like "Server does not exist"  When running the application right on the VM box where SQL server is installed, no problem. Executing the PortQry.exe utility on the server shows that SQL Server is listening on port 1433. The Remote Connection option is checked in the SSMS. So it could be a firewall issue.  But the question is the following:  Is there a command (like PING) I can execute on the client PC on the LAN that will show if the SQL Server is being accessed?  Just so that I can see that "something" is blocking or not the connection. This would be another way of checking it, besides using the application.


Restricting SSH sessions for accounts on ubuntu server

May someone please show me how I would restrict accounts/people logging into an ubuntu 10.04 server by SSH to a single active session at a time for each account that logs into the server.  Regards


Why doesn't the 'su' command work in Ubuntu but does in other Linux distros?

When I type the su command in a terminal I get    su: Authentication failure   Why doesn't this work in Ubuntu? I have tried this command in another Linux distro (Parrot OS) and it does work.


When did Obi-Wan Kenobi learn that Anakin was "dead"?

Obi-Wan left Anakin for dead, and one movie later (in A New Hope) he was saying Anakin had been killed by Darth Vader.  What exactly did Obi-Wan know about Anakin and Darth Vader before A New Hope started?


How to check that a point is inside the given radius?

I have the following code that takes very long time to execute. The pandas DataFrames df and df_plants are very small (less than 1Mb). I wonder if there is any way to optimise this code:  import pandas as pd import geopy.distance import re  def is_inside_radius(latitude, longitude, df_plants, radius):     if (latitude != None and longitude != None):         lat = float(re.sub("[a-zA-Z]", "", str(latitude)))         lon = float(re.sub("[a-zA-Z]", "", str(longitude)))         for index, row in df_plants.iterrows():             coords_1 = (lat, lon)             coords_2 = (row["latitude"], row["longitude"])             dist = geopy.distance.distance(coords_1, coords_2).km             if dist <= radius:                 return 1     return 0  df["inside"] = df.apply(lambda row: is_inside_radius(row["latitude"],row["longitude"],df_plants,10), axis=1)   I use regex to process latitude and longitude in df because the values contain some errors (characters) which should be deleted.   The function is_inside_radius verifies if row[latitude] and row[longitude] are inside the radius of 10 km from any of the points in df_plants.


I have a tourist multi entry C visa (Etats Schengen) from the Swiss consulate in the U.S and was wondering the following below:  1) Can I travel to other Schengen countries without any issues given I have     obtained the tourist visa from Swiss consulate.  2) Do I have to enter Switzerland since my tourist visa was provided by the     Swiss consulate and then book my flight/train to other Schengen     countries?  3) Can I fly into another Schengen country without having to fly into     Switzerland?  4) Do I have to fly out of Switzerland to come back home to the U.S since     the tourist visa was provided to me by the Swiss consulate or can I fly     out from another Schengen country back home to the U.S?  Please provide me some form of assistance as I need to book my trip itinerary accordingly and as soon as possible.  Thank you.


Attempt to invoke interface method on a null object reference while implement interface

public class forgetPassword extends AppCompatDialogFragment {      public ResetDialogListener listener;     EditText emailToReset;     final String tag="finalProject.bhaa";     String email =" ";      @NonNull     @Override     public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {         AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());         LayoutInflater inflater = getActivity().getLayoutInflater();         View view = inflater.inflate(R.layout.forget_password, null);         builder.setView(view)                 .setTitle("Reset Password")                 .setNegativeButton("cancel", new DialogInterface.OnClickListener() {                     @Override                     public void onClick(DialogInterface dialogInterface, int i) {                     }                 })                 .setPositiveButton("Reset", new DialogInterface.OnClickListener() {                     @Override                     public void onClick(DialogInterface dialogInterface, int i) {                         Log.i(tag,"---"+email);                         email=emailToReset.getText().toString().trim();                         Log.i(tag,"---"+email);                         try {                             listener.applyUpdate(email);                         }catch (Exception e){                             e.printStackTrace();                             Log.i(tag,e.getMessage());                         }                     }                 });         emailToReset= view.findViewById(R.id.emailToReset);         return builder.create();     }     public interface ResetDialogListener {         void applyUpdate(String Email);     } }   Here is the implemntation of applyUpdate:       @Override     public void applyUpdate(String Email) {         Log.i(tag,"yyyyyyy");         firebaseAuth.sendPasswordResetEmail(Email).addOnCompleteListener(new OnCompleteListener<Void>() {             @Override             public void onComplete(@NonNull Task<Void> task) {                 if (task.isSuccessful()){                     Toast.makeText(MainActivity.this,"Check your email .. ",Toast.LENGTH_SHORT);                 }else {                     String err=task.getException().getMessage();                     Toast.makeText(MainActivity.this,"Error Occured: "+err,Toast.LENGTH_SHORT).show();                 }             }         });     }   Tis lin throw an exception :   listener.applyUpdate(email);  Attempt to invoke interface method 'void com.bhaa.finalproject.forgetPassword$ResetDialogListener.applyUpdate(java.lang.String)' on a null object reference  and I need the help for this problem


Why are the Elves so eager to just LEAVE - and let others sort out the problems of the world ?

I don't get it -   The Elves just dart off - to leave this world - and let everyone else figure it out.  What private venue to justice or justification of meaning do the Elves have ?


I don't know how to start and solve this integral. Can you help me? $$\int \dfrac{dx}{1+x^{7}}$$


Is it possible to symlink a ssh command?

I am pretty new to linux/bash, and I have just recently learned about symlinks. I spend a lot of time at work logging on to various web servers using ssh and our server provider has some horrible long domains. Is it possible to use symlinks in a manner that will allow me to simply type a single designation to ssh to the server?  example:   ln -s ssh customer@host customer   then use 'customer' as a single command to run the ssh command ?


How do you achieve this colorful chrome effect?

I've been trying to figure out how to get this shaped chrome effect, it’s really clean and I’d love to play with it in Photoshop.


Plural of nouns like "sensitivity", "software"

This question has the same background as my . I am struggling with countable/uncountable nouns. I am reviewing a document, containing the following sentences:  Cross-verification of softwares for ... Sensitivities of A and B to the variation of C have been investigated.  My gut-feeling tells me neither software nor sensitivity should be used in plural here. But while software is simply uncountable, sensitivity is not. So I am struggling to find an explanation for this feeling. Typically I'd say, that if we are talking about two different kinds of sensitivity (though I'd struggle to think of an example), then sensitivities is possible. But when it's just how sensitive A and B are to the variation of C, it's so to say one sensitivity type and therefore cannot be used in plural. Am I right? Is there a way to determine it next time (they love using plural like this over here in my company) without asking on SE? Note: I know how to help my colleague avoid "softwares" and also the motivation (uncountable noun). The question is about "sensitivities", and I keep the "softwares" sentence in to provide the context: People over here like using plurals a lot, and I often feel they are overdoing it. The problem for me is that I am afraid I can overdo it the other way round. I don't want to ask the document author to rephrase "sensitivities" unless it is really wrong.


Does ubuntu run slow when installed on hdd instead of ssd

I am planning on installing ubuntu on my hp x360 convertible, intel i3 7th gen, with 4gb ram and 1 tb hdd. But I am aware that booting time is lot faster on ssd. due to insuffiecient funds, I cannot buy a new ssd. So, will ubuntu be slow on the pc, or will it work with normal speeds?


There is a lot about theming custom blocks, but what about blocks created by views?  My views block has id: block-views-posts-listing-block,  I try many ways for naming template file, ex: block--block--views-posts-listing-block.tpl.php, but I can't find correct file name.


How do I check if a given string is a legal/valid file name under Windows?

I want to include a batch file rename functionality in my application. A user can type a destination filename pattern and (after replacing some wildcards in the pattern) I need to check if it's going to be a legal filename under Windows. I've tried to use regular expression like [a-zA-Z0-9_]+ but it doesn't include many national-specific characters from various languages (e.g. umlauts and so on). What is the best way to do such a check?


What temperatures do low-medium-high on the stove correspond to?

I'm quite suspicious that my electric stove runs hot.  Recipes that suggest medium-high on my stove are incredibly, incredibly hot and you can feel 'high' radiating heat from across the kitchen.  As such, I've semi-recently purchased an IR thermometer - what pan surface temperature should low, medium-low,medium,medium-high, and high approximately register as?


IMPORTRANGE and Query say column does not exist

I want to get the sum of hours an employee, whose name is in Cell D1, was absent by referring to a table.  The table is on a sheet named Sep.  The word Sep is a string typed in A97. I am able to accomplish the query within my workbook, with the formula:   =QUERY(indirect(concatenate($A97,"!A2:$F")), "Select sum(F) where A = '"&$D$1&"' label sum(F)'' ")   I also verified that my IMPORTRANGE formula is working. (Because my Stack Exchange account is new, it won't allow me to put more than two links in this posting.  So, I took out the full link in the formula below, even though I correctly use the full link in my actual formula.):    =importrange("1033hNIUutMjjdwiZZ40u59Q8DvxBXYr7pcWyRRHAdXk",concatenate($A97,"!A2:$F"))   But, when I try and put it all together, I get the error:     Error Unable to parse query string for Function QUERY parameter 2: NO_COLUMN: F   This is the formula I'm attempting to use:  =Query(importrange("https://docs.google.com/spreadsheets/d/1033hNIUutMjjdwiZZ40u59Q8DvxBXYr7pcWyRRHAdXk",concatenate($A97,"!F2:$F300")), "Select sum(F) where A = '"&$D$1&"' label sum(F)'' ")   Here is a link to the .


How to make the counter start at a given number in tasks environment?

Is there any other method other than this ?  I want it to be automatic just \task will do the job for me.  \documentclass{article} \usepackage{tasks} \usepackage{amssymb} \usepackage{amsmath} \begin{document} \begin{tasks} \task [15]  \task [16] \task [17] and so on  \documentclass{article} \usepackage{tasks} \usepackage{amssymb} \usepackage{amsmath} \begin{document} \begin{tasks} \task [15]  \task [16] \task [17] and so on  \end{tasks} \end{document}


Magnitudes and phases of coefficients of a qubit

Quantum mechanics is based on the idea of waves, and waves have both a magnitude and a phase? $$|\psi\rangle = i\alpha|0\rangle + \beta|1\rangle.$$ Does $\alpha$ and $\beta$ represent magnitude and $i$ represent phase? Or how do we represent phase? Or is it something else?


One of my students has designed a light saber and I can't figure out why the lightsaber is not showing up in the cycle render.  Could someone help me out?      Thank you


How to compute $\sum_{n=1}^\infty \frac{(-1)^n}{n^2}H_{2n}$


Relationship between prime factorizations of $n$ and $n+1$?

Are there any theorems that give us any information about the prime factorization of some integer $n+1$, if we already know the factorization of $n$?  Recalling Euclid's famous proof for the infinity of the set of prime numbers, I guess we know that if $n = p_1 p_2 p_3$, then $n+1$ cannot have $p_1$, $p_2$, or $p_3$ as factors. But is there any way we could use the information about $n$'s factorization to determine something more precise about the factorization of $n+1$?


Show that $a^2 + b^2 + c^2 \geq ab + bc + ca$ for all positive integers $a$, $b$, and $c$.  I am not sure how to approach this problem. Should I divide this problem into multiple cases based on whether $a$,$b$,$c$ and odd/even or is there a more general solution?


The image not showing up in JFrame after adding the movement

I am trying to make a PacMan alternative with a tiger chasing bagels (don't ask why). I'm on the first stage still, trying to make the tiger move around the JFrame. However, now that I implemented the KeyEvent, the image is no longer showing up. I have been stuck on this for an hour, and I don't understand where I went wrong. Edit: I have got the image to show up, but the image does not update or change location when pressing on the arrow keys, probably something to do with the connection between the KeyEvent and the PacMan class. Main: public Main() {  }  public static void main(String[] args) {     javax.swing.SwingUtilities.invokeLater(new Runnable() {         public void run() {               UI frame = null;             try {                 frame = new UI();             } catch (IOException e) {                 e.printStackTrace();                 System.exit(-1);             }          }     }); }  UI: public PacMan PacMan;  @Override public void keyTyped(KeyEvent e) {  }  @Override public void keyPressed(KeyEvent e) {  }  @Override public void keyReleased(KeyEvent e) {     int key = e.getKeyCode();     if (key == KeyEvent.VK_RIGHT){         PacMan.moveRight();     }     if (key == KeyEvent.VK_LEFT){         PacMan.moveLeft();     }     if (key == KeyEvent.VK_UP){         PacMan.moveUp();     }     if (key == KeyEvent.VK_DOWN){         PacMan.moveDown();     } } public UI() throws IOException {     this.PacMan = new PacMan();     addKeyListener(this);     setFocusable(true);     setFocusTraversalKeysEnabled(false);     JFrame frame = new JFrame();     JPanel panel = new JPanel();      frame.setTitle("PacMan");     frame.setResizable(false);     frame.setSize(1200, 700);     frame.setMinimumSize(new Dimension(1200, 700));     frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);     panel.setBackground(Color.BLACK);     panel.add(PacMan.getImage());     frame.add(panel);     frame.setVisible(true); }  PacMan: public int xCoords = 570; public int yCoords = 320; JLabel pacManImage = new JLabel(); Icon tigerLeft; Icon tigerRight; public PacMan() throws IOException {      ImageIcon tigerLeft = new ImageIcon(new ImageIcon("textures/tigerLeft.png").getImage().getScaledInstance(60, 40, Image.SCALE_DEFAULT));     ImageIcon tigerRight = new ImageIcon(new ImageIcon("textures/tigerRight.png").getImage().getScaledInstance(60, 40, Image.SCALE_DEFAULT));      pacManImage.setIcon(tigerRight);      pacManImage.setVisible(true); }  public void initialDraw() {     pacManImage.setBounds(xCoords, yCoords, 60, 40);     pacManImage.setIcon(tigerRight);     pacManImage.repaint();  }  public void moveRight() {     System.out.println("here: " + tigerRight);     //xCoords = xCoords + 2;     pacManImage.setIcon(tigerRight);     pacManImage.setLocation(pacManImage.getLocationOnScreen().x + 2, pacManImage.getLocationOnScreen().y);     pacManImage.repaint(); }   public void moveLeft() {     //xCoords = xCoords + 2;     pacManImage.setIcon(tigerLeft);     pacManImage.setLocation(pacManImage.getLocationOnScreen().x - 2, pacManImage.getLocationOnScreen().y);     pacManImage.repaint(); }  public void moveUp() {     //yCoords = yCoords + 2;     pacManImage.setLocation(pacManImage.getLocationOnScreen().x, pacManImage.getLocationOnScreen().y - 2);     pacManImage.repaint(); }  public void moveDown() {     //yCoords = yCoords + 2;     pacManImage.setLocation(pacManImage.getLocationOnScreen().x, pacManImage.getLocationOnScreen().y + 2);     pacManImage.repaint(); } public JLabel getImage(){     return pacManImage; }


Nautilus not generating thumbnails for GIF images

No matter what I try (changing the preview options, deleting the thumbnail cache, etc.), Nautilus in Ubuntu 15.04 does not generate thumbnails for GIF image files. However, it generates a thumbnail for all other previewable file type. Can I solve this problem somehow?


Can creatures with keen senses such as scent or extra senses such as blindsight 'see' invisible creatures?

Do keen senses such as scent or extra senses such as blindsight allow detection of invisible creatures or creatures in a darkness spell? So far we have ruled keen senses let one detect the space a hidden or invisible creature is in but still attack with disadvantage. But permanently blind cave dwelling creatures etc. who use only non sight senses attack normally. So often on a case by case basis.


How does logistic regression work with p>n?

Just followed a machine learning example and programmed a gradient decent maximizaation to read in a 64X64X3 image vector to predict whether it was a cat or not.  The model had a parameter for every pixel*color so 12288 parameters were optimized.  It worked, a vector of parameter estimates were obtained and predictions were obtained and worked pretty well (prediction accuracy good).  How did this work, when I only had 200 samples, so p >>n. I thought we could not estimate parameters in regression when p


Is it proper to start a sentence with an Arabic numeral?


I have noticed that one of my tag badge counters (xsd) has stopped recording votes.   This is very annoying.   It's been stuck on 96 despite at least 4 votes and an awarded answer on questions for that tag in the past few days.


I have been taking math and going through various forms of factorials for the purposes of probability, but I have not been able to find a conclusive reason as to how one accounts for 0!  I am not sure if there is a way to solve it?


I have a following XML structure:  <?xml version="1.0" encoding="utf-8"?> <Class>   <subjects>   </subjects>   <students>     <Name>klashf</Name>     <Name>lkashf</Name>   </students>   <marks>     <english>yes</english>     <math>yes</math>   </marks> </Class>   Now for e.g. I want to delete English element <english>yes</english> from it. How can I do that? I tried many things like following but I am unable to find a way to get to that node. I tried to construct a XPath to that node but unable to get there. Can nayone tell me what should be the xPath to there?      public bool RemoveTag(string userName, string tagName)     {         XmlDocument newDoc = new XmlDocument();         newDoc.Load(path);          XPathNavigator navigator = newDoc.CreateNavigator();         XPathExpression query = navigator.Compile("//marks");          query = navigator.Compile("//marks/" + tagName);          XmlNodeList marksNodes = newDoc.GetElementsByTagName("marks");         XmlNode nodeToDelete=marksNodes[0].SelectSingleNode(userName+"/marks/"+tagName);         for (int i = 0; i < marksNodes.Count; i++)         {             marksNodes[i].RemoveChild(nodeToDelete);         }         return status;     }


How can I stop server after a particular uptime?

I need to stop server running at aws within 750 hours. Is there anyway i can automate it shutdown process within that time limit ?


Get application that is using a given file

How can I get in C# the application that is using a given file ?  To be more precise, if the app I am developing wants to overwrite a file that is being used by another application, I would like to display an error message such as : "Close application XXX before overwriting file YYY".


Batch append DateTime and Seconds to folder name

How would I append Date, Time, and Second to all of my folder names.  for /D %%f in (C:\Reports*) do rename "%%f" "%%~nxf"


Prove the ring $a+b\sqrt[3]{2}+c\sqrt[3]{4}$ has inverse and is a field

How can I prove that $\frac{1}{a+b\sqrt[3]{2}+c\sqrt[3]{4}}$ is of the form $a+b\sqrt[3]{2}+c\sqrt[3]{4}$ (i.e. that $a+b\sqrt[3]{2}+c\sqrt[3]{4}$ is a field)  for all rational $a,b,c$ and $a+b\sqrt[3]{2}+c\sqrt[3]{4} \neq 0$?


This is a  about DoS and DDoS mitigation.   I found a massive traffic spike on a website that I host today; I am getting thousands of connections a second and I see I'm using all 100Mbps of my available bandwidth.  Nobody can access my site because all the requests time out, and I can't even log into the server because SSH times out too!  This has happened a couple times before, and each time it's lasted a couple hours and gone away on its own.  Occasionally, my website has another distinct but related problem: my server's load average (which is usually around .25) rockets up to 20 or more and nobody can access my site just the same as the other case.  It also goes away after a few hours.  Restarting my server doesn't help; what can I do to make my site accessible again, and what is happening?  Relatedly, I found once that for a day or two, every time I started my service, it got a connection from a particular IP address and then crashed.  As soon as I started it up again, this happened again and it crashed again.  How is that similar, and what can I do about it?


What is the fundamental difference between storing the function in a variable in these two ways?

This is really basic javascript here and probably pretty silly to ask but what is the difference between:  a) function variable(){}; b) var variable = function() {};  I think the second one executes as soon as the browser reads it, am I correct?


Transforming quaternion between coordinate systems

Working in DirectX (with DirectXMath objects): If I have the rotation of an object relative to some coordinate space as quaternion Q, and I have a transformation matrix tx from that coordinate space to world space, how do I find the rotation of my object in world space?  My thinking, which has proven inaccurate, was: Use XMMatrixDecompose on tx to get the orientation that is the rotation difference between world space and my local coordinate space (qLocalToWorld), invert it to get the rotation of the local coordinate system relative to the world (qWorldToLocal) and combine it with my local rotation Q.  XMVECTOR scale, qLocalToWorld, translation; XMMatrixDecompose(&scale, &qLocalToWorld, &translation, tx); auto qWorldToLocal = XMQuaternionInverse(qLocalToWorld); auto worldOrientation = q * qWorldToLocal;   I figured for e.g. that if the local coordinate system was rotated 90 degrees with respect to the world, and my object was 5 degrees with respect to local, this would yield the 90 + 5 = 95 in world space. But I was wrong :(   I'd appreciate help in understanding the right way to do this. Thanks in advance!


Some time ago I started self studying physics and I did quite well, despite my limited knowledge of maths (some basic algebra and geometry). Now I would like to understand calculus, but I don't know what books I should use. Clearly, first I need to revisit the basic and intermediate notions of algebra.  For this task I tried using this book:     but I found it to be somehow simplistic (problems are too easy, the theorems are not demonstrated, etc.)  What textbooks do you think are appropriate for someone with very basic knowledge of elementary algebra who wishes to self study calculus for use in physics?


A model lesson is a usual element in interviews for the faculty level positions. Normally this is not a full lesson but a 15-minute version which is performed in absence of actual students for just a few professors from a hiring committee. It is supposed to demonstrate "your teaching style", but by design this is clearly a different enterprise: you should "act normal" doing "the same" things    in a different time-frame,  for a different audience,  with completely different motivation and  under exorbitant cost of failure.   Having said this, I also acknowledge the model lesson as indeed a much needed element of the interview, which helps to assess a candidate's set of relevant skills.  The question is how one can ideally prepare to give such a model lesson. Putting aside obvious things like "structure of the talk," "clear slides," "projection of the voice," and "body language", which normally should be already trained by experience, are there specific things that should be taken into account for the model lesson only? What about techniques like jokes, questions to the audience (e.g. how many of you are familiar with the definition of the derivative), work in pairs, which you probably use in a real classroom — is it a good idea to demonstrate them in a room full of senior professors? I am a little confused.


If $f,g$ are uniformly continuous prove $f+g$ is uniformly continuous but $fg$ and $\dfrac{f}{g}$ are not

Suppose $f:\mathbb{R} \supset E \rightarrow \mathbb{R}$ and $g: \mathbb{R} \supset E \rightarrow \mathbb{R}$ are uniformly continuous. Show that $f+g$ is uniformly continuous. What about $fg$ and $\dfrac{f}{g}$?  My Attempt Firstly let's state the definition; a function is uniformly continuous if $$\forall \varepsilon >0\ \ \exists \ \ \delta >0 \ \ \text{such that} \ \ |f(x)-f(y)|< \varepsilon \ \ \forall \ \ x,y \in \mathbb{R} \ \ \text{such  that} \ \ |x-y|<\delta$$ Sum $f+g$ Now to to prove $f+g$ is uniformly continuous; $\bullet$ Choose $\delta_1 >0$ such that $\forall$ $x,y \in \mathbb{R}$ $|x-y|<\delta_1$ $\implies$ $|f(x)-f(y)|< \dfrac{\epsilon}{2}$ $\bullet$ Choose $\delta_2 >0$ such that $\forall$ $x,y \in \mathbb{R}$ $|x-y|<\delta_2$ $\implies$ $|g(x)-g(y)|< \dfrac{\varepsilon}{2}$ $\bullet$ Now take $\delta := min\{ \delta_1, \delta_2\}$ Then we obtain for all $x,y \in \mathbb{R}$ $$ |x-y|<\delta \implies |f(x)+g(x)-f(y)+g(y)| < |f(x)-f(y)| + |g(x)-g(y)| < \dfrac{\varepsilon}{2}+\dfrac{\varepsilon}{2}= \varepsilon$$  Product $fg$ Now for $fg$ for this to hold both $f:E \rightarrow \mathbb{R}$ and $g:E \rightarrow \mathbb{R}$ must be bounded , if not it doesn't hold. $\bullet$ $\exists \ \ M>0 \ \  such \ that \ \ |f(x)|<M \ \ and \ \ |g(x)|<M \ \ \forall \ x \in E$ $\bullet$ Choose $\delta_1 >0$ such that $\forall$ $x,y \in \mathbb{R}$ $|x-y|<\delta_1$ $\implies$ $|f(x)-f(y)|< \dfrac{\epsilon}{2M}$ $\bullet$ Choose $\delta_2 >0$ such that $\forall$ $x,y \in \mathbb{R}$ $|x-y|<\delta_2$ $\implies$ $|g(x)-g(y)|< \dfrac{\epsilon}{2M}$ $\bullet$ Now take $\delta := min\{ \delta_1, \delta_2\}$. Then, $|x-y|<\delta$  implies for all $x,y \in \mathbb{R}$, that $$|f(x)g(x)-f(y)g(y)| \leq |g(x)||f(x)+f(y)|+|f(y)||g(x)+g(y)| \leq $$ $$ M|f(x)+f(y)| + M|g(x)+g(y)| < M \dfrac{\epsilon}{2M} + M \dfrac{\epsilon}{2M} = \epsilon$$ Are these proofs correct? I am not sure how to approach the $\dfrac{f}{g}$ case.


Getting UTF-8 characters from SQL Server table into PHP using PDO

I have a SQL Server table that contains country names translated into various languages. I am attempting to display this in a web page. However, what is stored in the database as Amérique du Nord comes out in PHP as AmÃ©rique du Nord  My PDO connection string is   sqlsrv:SERVER=<SERVER>;DATABASE=<DATABASE>   There is no charset option for SQL Server, but the default according to the documentation is UTF-8.  I have tried casting the column to varbinary, but that just gives me an ascii number that I have not been able to convert to a character. I have also tried a few variations of mb_character_encode which ended up making the characters Chinese.  For additional information:  I am on IIS 7.5, running PHP through FastCGI.  The script is sending the utf-8 header.  On other areas of the same page, I am successfully outputting UTF-8 that I am reading in from a .po file. Only text from the database query is mis-encoded.


Arrays reference to each other (Why does the output look like that??!!!)

Hi guys I was looking at practice problems  and I really do not understand the output of this program How should I understand the reference of arrays? I realize that  1. changing the elements in z and temp (in abc method) changes the y array in the abc method 2. changing the y array in the abc method changes the z array in the abc method.  My question: why is that? How should I understand references between several arrays?  Thanks a lot!!!      public class Test{       public static void main (String[] args){         int [] x = {1,2,3,4,5};         int [] y = {7,8,9,10};         abc (x[1], x, y);         print (x);         print (y);       }        public static void print (int [] x) {         for (int i=0;i<x.length;i++)           System.out.print(x[i] +  " ");         System.out.println();       }        public static void abc (int x, int []y, int [] z){         int [] temp = y;         x += 2;         y = z;         z [1] += 5;         System.out.println(x);         z = temp;         z[3] = 42;         temp[2] = 100;         z [0] = 234;         y [1] = 4234;       }     }   The output:   4 234 2 100 42 5  7 4234 9 10


Counterexample for group having following property

I know following  G is group in which $a^ib^i=(ab)^i$ this hold for consecutive 3 integer then it is abelian . I can prove this fact. I know that this is not true in case of 2 consecutive integer.I searched for example but I am not getting . Any Help will be appreciated . Thanks  Note: Similar question will be here  with answer But I know trivially for 0 ,1 integer will work But  I am searching nontrivial example that is power is more than 2. Also there is answer that $D_4$ will work But I am not convincing with that as there are only 2 kind of elements in that Rotation and reflection  Consider $(rs)^3$=rs and $(rs)^4=e$ which is suggested by that answer but $r^3s^3=r^3s$ which is not both same .


How can I use a SOAP API in my Rails app in Heroku and EngineYard?

I've got a pure, working, Rails application hosted on Heroku and another on EngineYard.  I now need it to start communicating with another application. This application exposes that exposes a SOAP interface. How can I connect to the API in my rails app?  Thank you


g-brief produces letter format PDF instead of A4 depending on system settings

I'm using g-brief to produce a letter. However, on my computer, the resulting PDF has the letter format, whereas I need A4. I figured g-brief only produces A4 PDF files, so I'm surprised. When I compile the exact same tex file on a different computer, the correct PDF in A4 format is produced. It appears that g-brief uses some sort of system setting to determine the format. I changed the content of /etc/papersize to a4, but the problem persists. Both computers run Debian (but different versions: Jessie and Wheezy).   I can force the output to A4 by using the geometry package, but then the footer disappears. How do I get LaTeX to produce the correct format?  Here is a minimal example:  \documentclass{g-brief} \begin{document} x \end{document}   This produces a PDF file in the letter format on my computer, and in the A4 format on the other computer I was talking about.  Edit: I can't answer anymore because this question has been linked to another question, which has an answer that doesn't solve my problem. However, I found the solution : run sudo paperconfig -p a4


Addition of number with decimal values are not working with parseFloat

i have 2 numbers with decimals  var a = 455.7530 var b = 544.8025  var k = parseFloat(a)+parseFloat(b)  Expected Output is 1000.5555 Actual Output is 1000.5554999999999   Please advice which method i should use to add two numbers with decimal


"Jane makes over six figures" - how much money does she make?

Suppose you are told that "Jane makes over six figures". Assuming this to be true, what is the minimum amount of money that Jane can be making?  I have always understood this to mean "Jane makes at least seven figures", i.e. "Jane makes at least $1,000,000", but I have recently learned that some people understand this to mean "Jane makes more than the smallest six-figure number", i.e. "Jane makes at least $100,001".    Which of these interpretations is more widely understood? Which of these interpretations is prescriptively correct (if either)?    (I am aware that there are unambiguous ways to express the same idea, but that is beside the point here.)


Is it reasonable and common to interpret $dt$ as a time point (a point in time)?

I heard some one talked about the instantaneous and average velocities.  He was using $\Delta t$ to denote a time frame, $dt$ denote a time point.  average velocities $\bar{v} = \dfrac{\Delta s}{\Delta t}$  the $\Delta t$ part is indeed common. my concern is about the $dt$ part   use the notation  instantaneous velocities $v = \dfrac{ds}{dt}$  Is it reasonable and common to interpret this way?


get phone number from Field of type Phone without changing type to Text

i have a Field of data type Phone. after querying from SOQL i am getting its value as (*) *-**** in apex. How can i extract text value from it excluding hypen and (). I am looking for generic Phone to text type conversion.


Fined €110 for Schengen overstay: impact on future visas?

I miscalculated the number of days I would be in the Schengen region for a conference, and was fined 110 euros for overstaying by a day. Will I be refused a Schengen visa in future on account of this? I am an Indian national and was traveling on a business visa.


Can large data deletion affect Innodb buffer pool performance?

At the beginning of this year we lunched a lot of massive data deletions (millions of rows per week) in our production database. Also, there is an automatic integration of new data (insert/updates) of 10 to 25 .CSV files per day with a global/average size of 400MB. We noticed that reading performance on data even with full using of index became too slow. We have about 122GB of daya with 60GB of RAM and I configured 48GB for the Innodb buffer pool (please check details in images). Is the deletion affect buffer pool performance ? What is the best/fast way to resolve that issue ? Thank you for your help.   **  (UPDATED)  ** It's not really a fragmentation issue, I added a 3rd image for more information. (updated) It is not indexes (the use is about 90% - 100%) but the bad way the app is using the db model made is too bad.


How to plot a function with argument as degree

I want to plot a function. The function is, F is proportional to x/cos(x). Here x is rotation in degree and F is the force. I have to plot the graph where the x axis will be from 0 to 70 degree and the y axis will be linear value 0 to 5. I am not able to find any option to draw graphs where x axis is with rotational degree. I was using these codes: \begin{document}  \usepackage{pgfplots}  \begin{tikzpicture}  \begin{axis}[  grid=both,  trig format plots=deg  domain=0:70, samples=50, no marks,  xticklabels={0$\deg$,10$\deg$,20$\deg$,30$\deg$,40$\deg$,50$\deg$,60$\deg$,70$\deg$},  xtick={deg(0),deg(10),deg(20),deg(30),deg(40),deg(50),deg(60),deg(70)}, x post scale = 5 ] \addplot {deg(x)/cos(deg(x))};  \end{axis}  \end{tikzpicture}  \end{document}


During big bang, everything expands same rate, homogenous, isotropic, nothing pulled towards each other. Did quantum randomness form stars, galaxies?

During big bang, space expands separating everything at the same rate, homogenous and isotropic, nothing is pulled towards each others. Did quantum randomness form stars and galaxies? If there is no randomness, nothing would have happened, isn't it?


Determinant of block matrix with off diagonals as vectors

I've been given an $(n+1)\times(n+1)$ square matrix, which is written in the form of a block matrix with the following dimensions   $$ \begin{bmatrix}     (1\times1)       & (n\times1)\\     (n\times1)       & (n\times n)  \end{bmatrix} .$$   I need to compute the determinant.    I've tried to understand what is shown  on how to solve this but I'm still confused. Can someone offer any insight as to how I would go about solving this? Also, is there any decomposition, factorization, etc I can take advantage of with the off diagonals being $(n\times 1)$ and $(1\times n)$? I feel like there's some simplification I can utilize. Thoughts?


Element at the bottom of a container that doesn't overlay text in the container

I want to place a div inside another div to the bottom right of the container. The container will contain text and I don't want the inner div to overlay the text. The inner div must always keep his space but the rest of the outer div will contain text.  This is an illustration of what I mean. Blue is the inner div and the orange is the outer div. This is what I have till now: .received_withd_msg {    display: inline-block;   max-width: 65%;    min-width: 10%;  }  .inner {   position: absolute;   right: 0px;   bottom: 5px;   color: #646464;   font-size: 10px;   margin-top: auto;   padding-left: 12px;   min-width: 45px; }


Show that if $f$ and $g$ are uniformly continuous on $A\subseteq\mathbb{R}$, then $f + g$ is uniformly continuous on $A$.

Show that if $f$ and $g$ are uniformly continuous on $A \subseteq\mathbb{R}$, then $f + g$ is uniformly continuous on $A$.  How do I approach this question?


How to make a Mule unrideable yet still have access to the chest

I'm working on a custom crafting system and I'm trying to use donkeys/mules as a way for players to put in crafting items. The mule's chest is used for inserting items and having an item output. This is how I spawn one such mule:  /summon minecraft:mule ~ ~ ~ {Tame:1b,Silent:1b,NoAI:1b,ChestedHorse:1b,ActiveEffects:[{Id:14b,Amplifier:1b,Duration:1000000,ShowParticles:0b}]}   Using this, and invisible mule, and players can access the chest, where the custom crafting would take place. The only problem with this is that the player is able to ride the mule, so I add a passenger to prevent this.  /summon minecraft:mule ~ ~ ~ {Tame:1b,Silent:1b,NoAI:1b,ChestedHorse:1b,Passengers:[{id:"minecraft:armor_stand",Marker:1b,Invisible:1b}],ActiveEffects:[{Id:14b,Amplifier:1b,Duration:1000000,ShowParticles:0b}]}   However, doing so makes the player unable to access the chest. Is there any way to make a mule unrideable, but also making that mule's chest accessable to players?


Are there any rules as to an article before a noun in the singular in headlines please, i.e. lack of an article?       Description of Type of Investment


STA thread required for AutoCompleteMode set to SuggestAppend on ComboBox

When using a ComboBox set the AutoCompleteMode to SuggestAppend in the designer, when accessing the init of that form through a background worker, the following exception is thrown:  "Current thread must be set to single thread apartment (STA) mode before OLE calls can be made"  I know how to fix the problem, but what I am asking is why an STA thread is required to set this property?  Note: This is using WinForms, .NET 3.5, C#


Special relativity time dilation messing with my head

Say we have the earth and a person on it and an astronaut travelling away from the earth in a spaceship in a straight line and then coming back in a straight line at the same speed.   The person on the earth measures the time between when the astronaut leaves and when he comes back as 1 year. This is a proper time since the observer has not moved in his frame of reference. Thus according to the relation $t = \gamma t_o$ the astronaut must have experienced a longer time.   The person on the spaceship measures the time from takeoff to landing as 1 year. Since he's standing at the same point in his frame of reference this is a proper time. Thus according to the relation $t = \gamma t_o$ the person on earth must have experienced a longer time.   The above is contradictory. Either the astronaut experiences a longer time or the person on earth does. The issue is that either the astronaut is thought to be moving relative to the earth or the earth is thought to be moving relative to the astronaut. What's the explanation? Can anyone help me understand?  Okay. I’ve read through the below answers, as well as watched a few videos and the Wikipedia page on it, however, i don’t see any of them explaining it. They claim that the acceleration solves the issue, however, don’t we arrive at the same problem? In the earth point of view the astronaut is rotating, but you might as well see the earth as rotating in the astronauts view. In other words, same problem.


My PC doesn’t sleep automatically. The monitor never turned off And the PC is set for 3 minutes to go to sleep, but it doesn't sleep.


How to join two objects with different color

I'm all new to Blender. I've managed to import my logo and it has an X of two colors.   How can I join these two objects so that it becomes one object with the red part being "on top" when I extrude it to 3D?


What does the finding of gravitational waves mean for M Theory?

I was wondering if the finding of gravitational waves proves M theory. I know at Fermi Lab scientists were looking for gravitons in distant places in our universe so that they can prove string theory. I'm very interested to see if the LIGO finding would be this revealing. Please let me know your thoughts.


If $p$ is a prime and $p \mid ab$, then $p \mid a$ or $p \mid b$.

The proof is already given in the textbook but I tried other way around.   Proof by contradiction: Let's assume that $p$ doesn't divide $a$ and $p$ doesn't divide $b$, but $p$ divides $ab$. So $\gcd(p,a)=1$ and $\gcd(p,b)=1$. Given that we can construct linear combinations   $sp+ta=1$ together with $up+wb=1$. Multiplying the left and the right sides of the equations we get  $spup+spwb+taup+tawb=1$ or $p(sup+swb+tau)+ab(tw)=1 \implies \gcd(p,ab)=1$. This is a contradiction.   Is it rigorous and sound proof?


Redshift couldn't be initialized after upgrading from Ubuntu 17.04 to Ubuntu 17.10

After upgrading from Ubuntu 17.04 to Ubuntu 17.10 Artful Aardvark, Redshift didn't autostart. Then I tried to initialize Redshift by running sudo redshift but it produced this:  Trying location provider `geoclue2'... Using provider `geoclue2'. Invalid MIT-MAGIC-COOKIE-1 key`RANDR Query Version' returned error -1 Initialization of randr failed. Trying next method... Invalid MIT-MAGIC-COOKIE-1 keyX request failed: XOpenDisplay Initialization of vidmode failed. Trying next method... No more methods to try.   I've searched this error on Google but no results were found. Does anyone know how to fix this problem?


Why does magnetic force vary in proportion to the cube of the distance instead of the square?

Magnetic forces vary from gravity and electromagnetic radiation (such as light) in that gravity and radiation diminish by the square of the distance from the source, but magnetism diminishes by the cube of the distance.  Why is this?


Give a cubic polynomial, defined on the open interval (-5,4), which reaches both its min and max values.  I don't know if there is a direct approach to solving this but I have been stuck on it for a while and I don't know what the answer is. Any help is appreciated.


I created many fields for content type.Now I don't need these fields anymore.  I deleted the fields from the content type but the fiels data remains in the database.  How can I delete the field and all its related data?


If you jump in the sea and float for a while, you’ll start getting assaulted by sharks as well as a large eel or sea snake. I threw everything I had at it but it just won’t die. I even tried slowing time, making an obsidian wall, using all attacks, and summoning demons, but it just keeps coming.  I have two questions:   Is it a single eel that keeps coming back and loses health each time you hit it or are they multiple eels, and if you don’t kill it while it is on screen, then it is gone and the next one is a different one with full health? Is it outright immortal? I noticed that no health bar is displayed when it gets hit.


decode a quoted printable message in php

I have the string which that encoded in .  How do I decode this in php?  Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vestibulum felis = pede, vestibulum et, ullamcorper in, ultrices eget, metus. Suspendisse in n= ulla. Sed justo. Donec dapibus auctor neque. Pellentesque faucibus ante nec=  metus. Vivamus feugiat, velit rhoncus semper suscipit, libero augue venena= tis leo, nec ornare nulla elit eget diam. Nullam sollicitudin.


Why does CPU speed variate even computing massively?

I realized that speed of my CPU is not constant even if it compute massively. The speed wanders from ~4,2 to ~4,4GHz in task manager. Why?  I have two theorem:   This is an average speed, and even during massive CPU usage there are time slots, where we wait for memory/IO, and the speed jumps back to base speed for a while. The CPU main clock generated with error (jitter/wander), while the measurement using a high precise clock. Other...?     I use Win10


How do plants prevent infection from retroviruses?

Why are plants not affected by animal viruses such as retroviruses? What prevents them from being infected?


Attempting to Install MSU hotfixes results in "Searching for updates on this computer..." to last forever

I am attempting to install two hotfixes manually from Microsoft - one addresses the svchost.exe extreme memory usage problem, and the other addresses the slow Windows Update problem.  This system is a freshly installed Windows 7, and I have the two MSU updates saved locally to my desktop, but it is never actually finding such updates, and therefore never actually installs the two fixes.  Is there a way to force Windows Update Standalone Installer to just install the single update and not look for all the updates?


Progressbar in bash to visualize the time to wait

In a bash script sometimes you need the user to wait some seconds for a background process to finish.  I usually use for example:  sleep 10   How can I add a kind of progressbar to the script, so the user knows how long to wait?  I installed the command bar but I don't understand the manual.


Just recently I read up something about involutions (functions $f: A \rightarrow A$ such that $f(f(x))=x$, for all $x$ in the domain of $f$), and was wondering how many (if there is a small set of general functions) such involutions exist for $A = \mathbb{R}$, or maybe $A = \mathbb{R} - S$, where S is some set of points that would make the involution work if they were left out of $A$. In general I'm interested in real functions that are involutions, continuous or otherwise.  There were some examples I found , but any more would be certainly very interesting!


HP Compaq 8200 Elite SFF won't boot from USB drive

Can't get an HP 8200 Elite Small Form Factor to boot from USB. It's done so in the past & the USB boot drive works in a different machine (HP 8440p laptop).  Have tried upgrading BIOS (from 2.09 to 2.15a, then back to 2.14a) with no luck.  USB drive appears in BIOS "Device Configuration" list, but not in "Boot Order". USB Hard Drive is set highest in the BIOS "Boot Order" list.  What simple, obvious thing am I missing here?


How do I recover documents from a broken Ubuntu installation?

I installed Ubuntu on a hard drive that had Windows XP installed so I could dual-boot the two operating systems. Everything was fine but now I can't boot into XP or Ubuntu. I had some important documents in the Ubuntu partition and the hard drive is still working, so how can I recover those files from a working Ubuntu installation? Where should I look for the broken Ubuntu installation?


Predicting physics/trajectory for pool/billiards games

I'm thinking of making a quick proof of concept of a billiard-style game mechanic, where the player has perfect information of what is about to happen.  Here's a good example:    I'm only mildly familiar with physics in both Unity and Flixel-Box2D, and I can't really off the top of my head imagine how to do this.   Should I even use physics at all, or should I just use basic math?


the definition of the word "equation" in math

Google give the following definition of the word "equation":   "In mathematics, an equation is a statement of an equality containing one or more variables. Solving the equation consists of determining which values of the variables make the equality true."  Is really an "equation" is a statement? I think that it more close to a "predicate". I will be happy if someone can give an exact (but still simple) definition of the term "equation"    P.s. In all cases, I mean equation with unknown(s), not equal.  Thanks!


How to turn off second hard drive while working with the first?

I have 2 hard drives , SSD and mechanical in my laptop .most of the software and OS are in the SSD . how to turn off the mechanical hard drive to save battery life when working with the SSD ?


Is SQL case sensitive.  I've used MySQL and SQL Server which both seem to be case in-sensitive.  Is this always the case?  Does the standard define case-sensitivity?


Mathematical induction $3$ and $5$ cent coins

Use mathematical induction to show that for all integers, any price equal or greater than $8$, can be paid for by $3c$ and $5c$ coins.


print error ln: /usr/include: Read-only file system even disabled Rootless in my Macbook pro

I have disabled my System Integrity Protection: $ csrutil status System Integrity Protection status: disabled.  when I add soft connection: ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include /usr/include  there still print error: ln: /usr/include: Read-only file system   My MacOS version is: macOS Catalina 10.15.2.


I need help to identify the purpose of starthelp.exe

What is starthelp.exe?  It tries to load when I boot/re-boot Windows 7.  I have searched for this file on my computer, but I cannot find it.


Howto refer to (or avoid) a numbered entity in section title

In a master thesis, I need to refer to a model described elsewhere, from a section title, like  \section{Analysis of model X}    One way of referring to a model is to create a new counter, and then write  \section{Analysis of \cref{grandmodelofeverything}}   But now hyperref will complain because of invalid token, and it does not look good in the TOC either, especially since the titles of the sections the describe the models are more descriptive than  \section{Model 1}   They are currently like  \section{Adding the effect from Y processes}   Do I need to invent semi-descriptive long names like "The model by Authors with this modification" or can I live with these quirks?


How to tell shell to re-read the ~/.bashrc?

How can I tell shell to re-read the ~/.bashrc without restarting the shell?


Short story about robots on a farm after losing communications, go out to rule the world

Several types of robot work on an automated farm. One by one they realize there have been no communications from the City for some time, and the humans may be gone. They stop working, decide after a quite comical conversation that they will rule the world together (or similar), and head off down the road toward the City full of plans. One small robot falls off a big one and is left to die. At a river they meet a dirty creature drinking the water and they all bow down and cry “Master!”


Does a fronted preposition in a relative clause create an exception to the "that" vs "which" rule?

In a sentence that requires the use of "that" instead of "which," can "which" still be used when followed by a preposition.   Original: "I have the photo that Seinfeld signed." Using preposition: "I have the photo on which Seinfeld wrote his name."  I understand that the latter is correct, but I'm curious as to why it is correct. Does anyone have a deeper analysis about why it sounds weird to say "on that Seinfeld wrote his name," beyond just the fact it sounds weird. I'm looking for an actual grammatical explanation because I work with technical writers who flip around the above options often and I would like to know more about the mechanics of why this works.


Prove that for any positive integer n there is a sequence of n consecutive composite numbers.

for n = 4, the consecutive numbers 24,25,26,27 are all composite  For the example above, I see that they are all modulo 22, such as 23=1(mod 22) and 24=2(mod 23)  How do I go about proving it? Should i use the idea above?  Please help!


How do I run SharePoint designer 2013 as a different user? In 2010 version there is a little button on the bottom to change user, but it is not here anymore. I also can try to do the shift+right click and run as different user, but when I do that on the shortcut, I don't get the option to run as a different user. I also can't find the install location of sharepoint designer 2013. According to this  there should be a Spedesign.exe but I can't find it.  Does anyone know?  Thanks


Can i create a query in order to extract records from MobileConnect Subscriptions and MobileConnect Demographics?


Direct way of calculating $\mathbb{E} \left[ \frac{\textbf{h}^{H} \textbf{y}\textbf{y}^{H} \textbf{h}}{ \| \textbf{y} \|^{4} } \right]$

Considering the following random vectors:  \begin{align} \textbf{h} &= [h_{1}, h_{2}, \ldots, h_{M}]^{T} \sim \mathcal{CN}\left(\textbf{0}_{M},d\textbf{I}_{M \times M}\right),  \\[8pt] \textbf{w} &= [w_{1}, w_{2}, \ldots, w_{M}]^{T} \sim \mathcal{CN}\left(\textbf{0}_{M},\frac{1}{p}\textbf{I}_{M \times M}\right),  \\[8pt] \textbf{y} &= [y_{1}, y_{2}, \ldots, y_{M}]^{T} \sim \mathcal{CN}\left(\textbf{0}_{M},\left(d + \frac{1}{p}\right)\textbf{I}_{M \times M}\right), \end{align}  where $\textbf{y} = \textbf{h} + \textbf{w}$ and therefore,  $\textbf{y}$ and $\textbf{h}$ are not independent.   I'm trying to find the following expectation:  $$\mathbb{E} \left[ \frac{\textbf{h}^{H} \textbf{y}\textbf{y}^{H}   \textbf{h}}{ \| \textbf{y} \|^{4} } \right],$$   where $\| \textbf{y} \|^{4} = (\textbf{y}^{H} \textbf{y}) (\textbf{y}^{H} \textbf{y}$).  In order to find the desired expectation, I'm applying the following approximation:  $$\mathbb{E} \left[ \frac{\textbf{x}}{\textbf{z}} \right] \approx \frac{\mathbb{E}[\textbf{x}]}{\mathbb{E}[\textbf{z}]} - \frac{\text{cov}(\textbf{x},\textbf{z})}{\mathbb{E}[\textbf{z}]^{2}} + \frac{\mathbb{E}[\textbf{x}]}{\mathbb{E}[\textbf{z}]^{3}}\text{var}(\mathbb{E}[\textbf{z}]).$$  However, applying this approximation to the desired expectation is time consuming and prone to errors as it involves expansions with lots of terms .  I have been wondering if there is a more direct/smarter way of finding the desired expectation.  $\textbf{UPDATE 21-04-2018}$: I've created a simulation in order to identify the pdf shape of the ratio inside of the expectation operator and as can be seen below it seems much like the pdf of a Gaussian random variable. Additionally, I've also noticed that the ratio results in real valued terms, the imaginary part is always equal to zero.  Is there another kind of approximation that can be used to find the expectation (one analytical/closed form result and not only the simulated value of the expection) given that the pdf looks like a Gaussian and probably can be approximated as such?


Evaluate the following integral: $\int_0^{\frac{\pi}{2}} \lbrace\tan x\rbrace\mathrm{d}x$

$$I=\int_0^{\frac{\pi}{2}} \lbrace\tan x\rbrace\mathrm{d}x$$ So I have this interesting integral and I tried to evaluate it: Let $u=\tan x$ we'll have the following: \begin{align} \int_0^\infty \frac{\lbrace u\rbrace}{1+u^2 }\mathrm{d}u&=\int_0^\infty \frac{u-\lfloor u\rfloor}{1+u^2}\mathrm{d}u\\ &=\lim_{a\to +\infty} \Bigg(\int_0^a \frac{u}{u^2+1}\mathrm{d}u-\int_0^a\frac{\lfloor u\rfloor}{u^2+1}\mathrm{d}u\Bigg) \end{align} And the first part is obvious: $$\int_0^a \frac{u}{u^2+1}\mathrm{d}u=\frac{\ln (a^2+1)}2$$ Therefore: $$I=\lim_{a\to +\infty}\Bigg(\frac{\ln (a^2+1)}2-\underbrace{\int_0^a\frac{\lfloor u\rfloor}{u^2+1}\mathrm{d}u}_{F}\Bigg)$$ And $F$ is the part where I got stuck because $\lfloor x\rfloor$ can't be simplified or approximated. Any thoughts or hints?


given two sets $A$ and $B$. How do we construct a set $C$ bijective to $B$, but disjoint to $A$?


Form usable even when a modal dialog is above

I have a Dialog A and I want it to load a second dialog B which is modeless and stays along side A throughout. Dialog A may then launch a modal dialog C. But when C is present I want B to be usable. I would have fixed this with pretranslate message in A in a C++ application but what is the approach in C#.


Python calculated 1.0 of type float converts to zero using int()

I am new to python, so I expect that I am missing some basic knowledge of types here.  I am trying to create a string where I take a floating point number and replace decimal point with a string.  In doing so I tried calling a line of code that is equivalent to:  int(pow(10, 1)*(5.1%1)))   But if you run this code:  x = pow(10, 1)*(5.1%1) print(x) print(type(x)) print(int(x)) print(int(1.0)) print(type(1.0))   It returns:  1.0 <type 'float'> 0 1 <type 'float'>   I assumed there is a type problem here but they are both type float. So why does int(x) return zero but not int(1.0)?


Ubuntu - Can't install software-properties-common

I am trying to install software-properties-common, but I am getting this error:  The following packages have unmet dependencies: software-properties-common : Depends: python-gi but it is not going to be installed E: Unable to correct problems, you have held broken packages.   I actually tried to install this python-gi dependency, but getting again an error:  The following packages have unmet dependencies: python-gi : Depends: libgirepository-1.0-1 (>= 1.29.0) but it is not going to be installed Depends: libglib2.0-0 (>= 2.31.8) but it is not going to be installed Depends: gir1.2-glib-2.0 (>= 1.31.0) but it is not going to be installed E: Unable to correct problems, you have held broken packages.   Ubuntu version  Distributor ID: Ubuntu Description:    Ubuntu 14.04.4 LTS Release:    14.04 Codename:   trusty   EDIT Result of apt-cache policy software-properties-common python3-gi python-gi  software-properties-common:   Installed: (none)   Candidate: 0.82.7.7   Version table:      0.82.7.7 0         500 http://mirror.symnds.com/ubuntu/ precise-updates/main amd64 Packages      0.82.7.5 0         500 http://mirror.symnds.com/ubuntu/ precise-security/main amd64 Packages      0.82.7 0         500 http://mirror.symnds.com/ubuntu/ precise/main amd64 Packages python3-gi:   Installed: (none)   Candidate: 3.2.2-1~precise   Version table:      3.2.2-1~precise 0         500 http://mirror.symnds.com/ubuntu/ precise-updates/main amd64 Packages      3.2.0-3 0         500 http://mirror.symnds.com/ubuntu/ precise/main amd64 Packages python-gi:   Installed: (none)   Candidate: 3.2.2-1~precise   Version table:      3.2.2-1~precise 0         500 http://mirror.symnds.com/ubuntu/ precise-updates/main amd64 Packages      3.2.0-3 0         500 http://mirror.symnds.com/ubuntu/ precise/main amd64 Packages


Is there any general formula for ring homomorphism if gcd$(p, q) \neq 1$?

Is there  any general formula  for  ring homomorphism  from  $\mathbb{Z}_{n}  \rightarrow  \mathbb{Z}_{p} \times \mathbb{Z}_{q}$   if gcd$(p, q)  \neq 1$ ?  I  got the link :  But I am finding it difficult to show    that gcd$(p, q)  \neq 1$ ?  Any any hints/solution ?