When I send emails from my application I am getting a spf neutral error.  I have been working with Google and my hosting company, but none of them can figure it out.  Below is my spf record.  "v=spf1 include:s920.tmd.cloud include:mx1.tmdhosting.com include:mx2.tmdhosting.com ip4:184.154.73.81 ip4:108.178.0.170 ip4:198.143.161.162 ip4: include:_spf.google.com ~all"   Below is a snip of the email meta data.      ARC-Authentication-Results: i=1; mx.google.com;        dkim=temperror (no key for signature) header.i=@holyfirepublishing.com header.s=default header.b=HRuHEiL6;        spf=neutral (google.com: 108.178.0.170 is neither permitted nor denied by best guess record for domain of publisher@holyfirepublishing.com) smtp.mailfrom=publisher@holyfirepublishing.com Return-Path: <publisher@holyfirepublishing.com> Received: from mx1.tmdhosting.com (mx1.tmdhosting.com. [108.178.0.170])         by mx.google.com with ESMTPS id b67-v6si3713737ioj.9.2018.04.28.17.31.24         for <test@holyfirepublishing.com>         (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);         Sat, 28 Apr 2018 17:31:24 -0700 (PDT) Received-SPF: neutral (google.com: 108.178.0.170 is neither permitted nor denied by best guess record for domain of publisher@holyfirepublishing.com) client-ip=108.178.0.170; Authentication-Results: mx.google.com;        dkim=temperror (no key for signature) header.i=@holyfirepublishing.com header.s=default header.b=HRuHEiL6;        spf=neutral (google.com: 108.178.0.170 is neither permitted nor denied by best guess record for domain of publisher@holyfirepublishing.com) smtp.mailfrom=publisher@holyfirepublishing.com Received: from [184.154.73.81] (helo=s920.tmd.cloud) by mx1.tmdhosting.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from <publisher@holyfirepublishing.com>) id 1fCaFP-0005U5-6t for test@holyfirepublishing.com; Sat, 28 Apr 2018 19:31:24 -0500   I can really use some help building my spf record.  Thanks in advance.


Replace entire line in text file using C#

I'm attempting to replace an entire line of text in a .ini file. It has surrounding text lines, so it has to be able to replace the text at that location. To find the correct line, I want to be able to search for text then change that line, for example: sg.ResolutionQuality=10 I want to be able to replace this with: sg.ResolutionQuality=20 but, also be able to then change that again to say: sg.ResolutionQuality=30 I've attempted to use loops to find the text and replace it, but have run into issues with duplicating 0's and other problems. If you can just point me in the right direction or help, itd be awesome. Thank you.


Approximate lower semi-continuous functions with uniformly continuous functions

If $(X,d)$ is a metric space and $F$ is a nonnegative lower semi-continuous function on $X$, then $F$ can be written as the sup of increasing sequence of uniformly continuous functions:  $F_n(x) = \inf_{y\in X} \{F(y) + n d(x,y)\}$.  It's clear to me that $F_n$ is continuous and pointwisely converges to $F$. I'm wondering why $F_n$ is uniformly continuous on $X$?   Any hint will be appreciated.


Why can't solder stick onto the tip of my iron?

I can't tin the iron properly, because feeding solder onto the tip has it flow downwards and collect into a blob before splitting off and creating a mess.  My iron may not be calibrated. And I don't know how to measure its temperature without a device to do so (I only have a multimeter). It is supposed to go from 250 Celsius to 450 Celsius (840 °F), but I can only solder onto the pad quickly at 450 °C. The solder melts at around 300 °C, but it doesn't flow quickly.  The iron I use is the T12 type.


In my case should I use != as below, or is !== more appropriate, what is the difference.  private function authenticateApi($ip,$sentKey) {      $mediaServerIp = '62.80.198.226';     $mediaServerKey = '45d6ft7y8u8rf';              if ($ip != $mediaServerIp ) {         return false     }     elseif ($sentKey != $mediaServerKey ) {         return false     }     else {         return true;     } }  public function setVideoDeletedAction(Request $request) {     //Authenticate sender     if ( $this->authenticateApi($request->server->get("REMOTE_ADDR"),$request->headers->get('keyFile')) != true ) {        new response("Din IP [$ip] eller nyckel [********] är inte godkänd för denna åtgärd.");     }


How do I interpret a simple linear regression model when both dependent and independent variables are square root transformed?

Overview  I built a simple linear regression model to understand if Universal Healthcare Index predicts suicides. My independent variable is Universal Healthcare Index (scale from 1 to 100). The variable name in my data is called "Trans_uhc". In order to meet the normality assumption, I used a sqrt(max(x) - x)) transformation to normalize a negative skew. My dependent variable is suicides per 100k population. In order to meet the normality assumption, I used the sqrt(y) transformation to normalize a positive skew.  Simple Linear Regression Output  Help Needed As you can see from the above output, my predictor variable is significant. However, how would I interpret this outcome? For example, if the data was not transformed, I would be able to interpret the linear relationship as "when Universal Healthcare Index increases by 1 point, suicides/100k people decrease by .18879." However, I cannot do that because of the transformation. Any help would be greatly appreciated. Thank you!


Creating a new layer from a spreadsheet and an existing shapefile in QGIS

I have a map of US zip codes and a spreadsheet that associates data with specific zip codes. I want to show the zip codes where the most data exists using a gradient, but I am not even sure how to get it onto the map in the first place.


I have a 2015 MacBook Pro with a MagSafe 2 charging cable. My wife has a new MacBook Pro from 2016 with USB-C. I was wondering whether I could technically (in the matter of electronic feasability) use her charging cable on my MacBook and vice versa with some sort of adapter / dongle, and, if so, where I would get one?


Determine whether $f_n(x)=\frac{x^n}{\sqrt{3n}}$ for $x \in [0,1]$ is uniformly convergent

This is a follow up to my below question:    I'm trying to determine whether $f_n(x)=\frac{x^n}{\sqrt{3n}}$ for $x \in [0,1]$ is uniformly convergent.    I know if it is then it must satisfy $\left|f_n(x)-f(x)\right|\lt \epsilon$  Since I know $f(x)=0$ I know it must be  $\left|f_n(x)-f(x)\right|\lt \epsilon = \left|\frac{x^n}{\sqrt{3n}}-0\right|\lt \epsilon =\left|\frac{x^n}{\sqrt{3n}}\right|\lt \epsilon$  After doing some algebra I get:  $\frac{1}{\epsilon}\lt \frac{\sqrt[n]{3n}}{x}$  Where do I go from here and have I made any mistakes?  Does this means that $f$ is uniformly convergent?


Which command should I use to get the shorter version of underscore, on picture below. I tried everything _ , {_}, \underscore, \textunderscore, but I always get the longer version of underscore - shown on other image. I even tried \underscore{ } and \underline{ }, but if I use this two expressions, my undercore is not lined with text, but it is below the text. Please help!¨I am losing my mind! I forgot to mention that I even used all commands noted above with $...$, but no luck either.   \documentclass[a4paper]{scrartcl}  \usepackage[slovene]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{amsmath} \usepackage{amsfonts}  \begin{document}     \textbf{latex}\_\textbf{Priimek}\_\textbf{Ime} \end{document}


I need to model a simple spiral shape. I imagine the best way to do this is with curves, but I am unsure how to create a perfect spiral shape with curves. What's the best/easiest way to make a spiral tube?


How to receive command line argument in shell script for loop? e.g  vim batch_echo   for i in {1..$1}; do echo $i; done  sh batch_echo 3 {1..3}   but if change to seq, it's ok  for i in `seq 1 $1`; do echo $i; done  sh batch_echo 3 1 2 3   so why {1..$1} cannot work?


Is there any 1.75 spacing setting in latex?

I am using a template from overleaf.  I am using  \usepackage{setspace}    and  %\doublespacing \singlespacing   But i feel doubespacing too large, single spacing too narrow. Is there a way to set 1.5 spacing?  This is one of the example:  \documentclass{article} \usepackage{amsmath} \usepackage{amssymb} \usepackage{accents} \usepackage{setspace}  \begin{document} \setlength{\parindent}{0pt} %disable auto indentation  % $ \| \underaccent{\tilde}{\tilde{x}} \| $ % \doublespacing \singlespacing % This is my $\|\undertilde{\widetilde{x}}\|$ Testing Testing $\hat{\undertilde{\widetilde{x}}}$ $=$ $\sqrt{0^2, \space\widetilde{x_1}^2, \space\widetilde{x_2}, ..., 1}$ Second sentences $\hat{\undertilde{\widetilde{x}}}$ $=$ $\sqrt{0^2,\space\widetilde{x_1}^2,\space\widetilde{x_2}^2, ..., 1}$  First formular  \[ y = a + b1 \]  \[ c = a + b2  \]    \[ y = a + b1 and c = a + b2  \]   \end{document}


Unintelligible error after typing a single letter

In passing from the code  \item $\Sp^\Sigma(\C,K)$ has a left proper, cellular model category structure, called the \textbf{projective model structure}, where a map $f\colon X\rightarrow Y$ in $\Sp^\Sigma(\C)$ is a weak equivalence (resp., a fibration), if $f_n\colon X_n\rightarrow Y_n$ is a weak equivalence (resp., a fibration) in $\C$, for all $n\in\bbN$.   to the code  \item $\Sp^\Sigma(\C,K)$ has a left proper, cellular model category structure, called the \textbf{projective model structure}, where a map $f\colon X\rightarrow Y$ in $\Sp^\Sigma(\C,K)$ is a weak        % ← added ",K" equivalence (resp., a fibration), if $f_n\colon X_n\rightarrow Y_n$ is a weak equivalence (resp., a fibration) in $\C$, for all $n\in\bbN$.   where the only difference is in the marked K, I get the following Latex error at line 1, when trying to compile my document:     ! \OML/cmm/m/it/10.95 Y$ \OT1/cmr/m/it/10.95 in $[][]\OT1/cmr/m/n/10.95 (\U/eus/m/n/10.95 C\OML/cmm/m/it/10.95 ; K\OT1/cmr/m/n/10.95 )   This makes absolutely no sense to me and I can not find much help on-line. Note also that, if I leave the problematic piece of code unaltered and keep on typing other stuff, I have no problem in compiling (even when I add a lot of code).  Upon seeing some comments, let me try to clarify the problem better. The following code uses all the packages I am using and compiles with no problems  \documentclass[11pt]{amsart}  \usepackage[utf8]{inputenc}  % to allow unicode in source  \pagestyle{plain}  %% AMS and other general math packages: \usepackage{amsthm} \usepackage{amsfonts} \usepackage{amsmath} \usepackage{amssymb} \let\amssquare\square \usepackage{dsfont} \usepackage{marvosym} \usepackage{mathpartir} \usepackage{mathtools} % for \mathclap, used to center extra-wide diagrams. \usepackage{stmaryrd}  %% General style packages: \usepackage{xcolor} \definecolor{darkgreen}{rgb}{0,0.45,0} \definecolor{darkred}{rgb}{0.75,0,0} \definecolor{darkblue}{rgb}{0,0,0.6} \usepackage[colorlinks,citecolor=darkgreen,linkcolor=darkred,urlcolor=darkblue]{hyperref} \usepackage{breakurl} \usepackage[mathscr]{eucal} \usepackage{enumerate} % for customising enumerated listsEDIT: \usepackage[capitalize]{cleveref}    %\parskip = 0.1in %\parindent = 0.0in  %% For syntax of type theory: \usepackage{mathpartir}  %% Graphics and diagrams packages: \usepackage{tikz} \usetikzlibrary{arrows} \usepackage[all]{xy} \xyoption{2cell} \xyoption{curve} \UseTwocells  \newcommand{\Sp}{\mathsf{Sp}} \newcommand{\C}{\mathscr{C}} \newcommand{\bbN}{\mathbb{N}}   \begin{document} \begin{itemize} \item $\Sp^\Sigma(\C,K)$ has a left proper, cellular model category structure, called the \textbf{projective model structure}, where a map $f\colon X\rightarrow Y$ in $\Sp^\Sigma(\C,K)$ is a weak equivalence (resp., a fibration), if $f_n\colon X_n\rightarrow Y_n$ is a weak equivalence (resp., a fibration) in $\C$, for all $n\in\bbN$. \end{itemize} \end{document}   This is the exact same code I am using in my problematic file and that does not allow me to compile. If, in my problematic file, I replace the second occurrence of   $\Sp^\Sigma(\C,K)$   with  $\Sp^\Sigma(\C)$   I do not generate any error.  (The command \end{document} is present in the file, I just could not screenshot it). Again, the only thing that causes texmaker not to compile is adding that extra ,K. I am unable to get the error from the log file, as was suggested in the comment.


Error about BufferedWriter class in java12

I have copied this code from hackerrank. It is working correctly when I run this kind of code (this kind of means, used the System.getenv("OUTPUT_PATH") keyword) but I copy this code to my pc and tried to run that code. But I got the error which is below. Is this System.getenv("OUTPUT_PATH") keyword working only in Hackerrank? I know how to print to a textfiles using buffered writer class but I can't understand about this code line. Please help me to improve my knowledge. public static void main(String[] args) throws IOException {         BufferedWriter bw = new BufferedWriter(new FileWriter(System.getenv("OUTPUT_PATH")));         String s = "Hello world";         bw.write(s);         bw.newLine();         bw.close();     }  I see this code in more hackerrank problems and I need to know why we use this... this is the error message, Exception in thread "main" java.lang.NullPointerException     at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:226)     at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:124)     at java.base/java.io.FileWriter.<init>(FileWriter.java:66)     at com.company.Main.main(Main.java:8)


Basic circuit voltage question - Using a driver to control a stepper motor

I'm pretty new to electronics. I'm using an Adafruit ESP8266 microcontroller connected to a L293D motor driver to power a bipolar stepper motor. I'm struggling to understand the various voltage levels throughout the circuit. For example, the datasheet for the L293D has a supply voltage VCC1 ranging from 4.5V to 7V. However the high-level input voltage has a minimum voltage for a logical true of 2.3V. The microcontroller can supply 3.3V. So does that mean i can connect the microcontroller to the L293D, but i would need some other voltage supply connected to the L293D as well that would be in the range of the supply voltage?  Also, the motor requires 12V to run. How do i control the output voltage on the L293D? Do i need to use a voltage regulator or level shifter on the output? Thanks


Memory on dedicated server is filled out

We are managing a dedicated server (WHM/cPanel) with 4-5(Magento & Woocommerce mostly) accounts in it, along with custom code that will connect those platforms with ERPs. This custom code works a lot with MySQL.  The server has 10GB of RAM and for the first time, past week was filled out and.  Now what makes me impression is that after restarting, server will go fully functional with only 2-3GB of RAM.  Is this reasonable? And if it's not and there is a memory leak, what would be the way to trace which of my accounts is filling up the memory?


What does it mean? "I can't people today"

There is a shirt with a sentence written on it. The sentence is :       I can't people today   What does it mean? I've seen  and I know that "people" can be a verb but in this special case, I don't get the meaning of the phrase.


So I'm developing a soap webservice and I need to check the request Headers, I've spent the last 30 minutes searching how to do this but couldn't find an answer, is it possible to check the request headers and if so how? Service example: webservice static AccountAddressResult UpdateAccountAddressInfo(AccountAddress accountAddressInfo, String addressType, String addressCategory) {     //Check Headers here     (...) }


What is the difference between a field and a property?

In C#, what makes a field different from a property, and when should a field be used instead of a property?


What is the difference between the following two sentences?     Each apple is red.      Every apple is red.


Let $f:\mathbb{R} \rightarrow \mathbb{R}$ be a continuous function s.t $|f(x)-f(y)|\ge \frac{1}{2}|x-y|$ for all $x,y$. Then $f$ is injective can be seen easily as $x\neq y$ implies $f(x)\neq f(y)$.  But how to check that $f$ is surjective or not ?


I'm currently trying to figure out the workflow for using the motion capture features in Blender for animation. I've figured out creating markers and tracking them, but I'm stuck at reconstruction. The one video tutorial I've found uses the Camera Solver constraint to project the points in 3D space, but I can't find a way to turn those points into emptys so I can continue with the workflow. Alternatively, the normal reconstruction option in the Movie Clip Editor projects all the points onto a flat Y plane. Would there be some way to effectively combine these 2 effects, getting usable empty tracks in the 3D view that have some depth to them?  I'm currently in v 2.79.  Edit: the motion is from a single camera, and the camera motion is solved. The tutorial I was following used the Camera Solver modifier to calculate 3D depth for some of the points, so I was mostly looking to see if there was some method to get some sort of depth data with just one camera. It seems like that might be impossible, however.  edit2: The video has a stationary camera and the video subject is someone moving their face with control points painted on.


New MicroSd card readonly/"Windows cannot read disk"

I got a few brand new 32GB micro-SD cards with included adaptors. I then tried moving some data to it, but there was a problem, so I tried removing the write-only properties so i could complete the move. I have tried two of them, and when I did it with a CMD script, it made my micro-SD card unreadable - Windows cannot access this disk. It is currently in read-only mode. It had nothing stored on it. I'm worried it's faulty forever at this point, I cannot find any help online.


Why do I need to use lite mode in the new Google Maps? (Chrome)

I was wondering if I could use the new Google Maps. I have latest stable Chrome and Ubuntu 13.04. I am currently told that I must use lite mode. Under Chrome in Windows 8 on the same machine it works perfectly.


Can't move files to trash without any permission issues

This is not like one of the cases addressed before - I've checked them all.  I've suddenly begun getting that message "... can't be put in the trash. Do you want to delete it immediately?" this morning in my Home directory only.  I have a Home partition (ext4, mounted properly) with symlinks for user folders like Downloads, Documents, etc. to folders with the same names in a Data partition (ntfs, mounted properly).  For example, I cannot move a file in Downloads folder to Trash when I try via Home, but no problem if I try via Data partition, although the file in question has the same ownership and permissions at both locations.  Also no problem at all with files in my Home folder, including sub-folders like Public that are not symlinked to my Data partition.  Interesting puzzle for me...  PS: Just upgraded to 15.04 but I don't think it matters... On second thought, it might perhaps be something to do with upgrading from Nautilus 3.10 to 3.14?  PPS: This bug has been finally resolved some time later in version 16.10, and no longer exists under Ubuntu 17.04.


I have noticed people use this code to localize  Thread.CurrentThread.CurrentUICulture = new CultureInfo("fr-FR"); Thread.CurrentThread.CurrentCulture = new CultureInfo("fr-FR");   Could anyone tell me what CurrentUICulture and CurrentCulture are? Why do we need to assign same value to both  What will happen if I assign the value CultureInfo("fr-FR"); to only CurrentUICulture  or CurrentCulture?   I would really like to know in detail what CurrentUICulture and CurrentCulture does?  Suppose client pc language setting could be German or French etc., but I want to develop my application in such a way that whatever language setting is there, my apps will work in that pc with their language setting. I mean that all the controls will show the text in German or French. I do not want to hard code the culture this way CultureInfo("fr-FR")  I would rather the user's language setting dictate the language of my controls. How would I go about doing this?


Looking for a formal Epsilon-based demo for this important lemma.

Supose $\{ a_{n} \}_{n=1}^{\infty} \in \mathbb{R}^+$ and also $\lceil x \rceil$ is the ceil function. I want to prove the following.  If $\forall r > 1$   $\lim_{n \to \infty} \frac{1}{\lceil r^n \rceil} \sum_{i = 1}^{\lceil r^n \rceil} a_{i} = a$ $\implies$ $\lim_{n \to \infty} \frac{1}{n} \sum_{i = 1}^{n} a_{i} = a.$  I am looking for a formal Epsilon-based demo, but I am quite stuck with this. Here is what I tried, I have just started with the formal limit definition. But I don't know what to do with the ceil function.  Knowing $\forall r > 1$ then, $\forall \epsilon > 0,   \exists N s.t.\forall n \ge N \implies \left| \frac{1}{\lceil r^n \rceil} \sum_{i = 1}^{\lceil r^n \rceil} a_{i} - a   \right| < \epsilon $. This is my hypotesis.  I want to find an $\epsilon'$ (I supose it will be related with the first $\epsilon$). That $\forall \epsilon' > 0,   \exists N' s.t.\forall n \ge N' \implies \left| \frac{1}{n} \sum_{i = 1}^{n} a_{i} - a   \right| < \epsilon' $.   So changing the $\lceil r^n \rceil$ for $n$ make the progressions converge to the same limit.


Was the messenger in Bruce Wayne's weird dream supposed to be The Flash?

About halfway through Batman vs Superman, Bruce Wayne falls asleep and has couple of rather unusual dreams. In one of them, a person appears to be trying to give him a message.      He appears to be coming out of a portal and surrounded by lightning, and is trying to tell Bruce about Lois Lane and Superman.   The whole scene is incredibly confusing, since the message is definitely something Bruce wouldn't know enough to dream about, and it's never brought up again. Multiple people have complained about this "confusing Flash cameo".  When I saw it, it never occurred to me that it was supposed to be the Flash, because       He seemed to be wearing a mechanical suit, and had no control over his use of the portal; not to mention, the message made no sense.   Was the actor in this scene Ezra Miller -- the same one who later appears in a definitive Flash cameo -- and was this supposed to be a message from the Flash?  UPDATE:  Please note: I am not asking what the message meant, or how The Flash might be the one sending it, or what the comics have to say, because I know the answers to all of those things. I'm only asking if the character in this scene is shown to be the same character we see in the security footage from the convenience store in a later scene.


Why and where should I use Reflection, I understand that you can get acess to the field by it's name but why should I use it?


What's the policy on 'Convert my SQL to LINQ' questions?

I'm seeing a lot of questions recently along the lines of, "Convert this SQL query to LINQ for me" followed by a copy/paste of a SQL query.  I've started voting to close when I see these under "Must show a minimal understanding" but each time I see that others are happy to provide answers.  Just wondering what the consensus is here?


Suggested edit to add status-completed tag?

I just noticed a very strange  on Meta:        What is up with this? I thought users couldn't add moderator tags, and, by extension, suggest them. Have I stumbled across a gasp bug?  Maybe someone with a sock should try to suggest an edit to add  to this question?


Why would SVD be 'unstable' if you don't standardize your data first?

I'm reading an article about Direct Linear Transformation which processes data using SVD, and the data set is standardized so that it has zero mean and unit standard deviation (n.b., some people call this transformation 'normalized').  In that article, it is said that for numerical reasons, the data set has to be normalized to make sure the DLT algorithm stable.   I wonder what are those numerical reasons? Does it mean if I have 2 data sets of the same objects, if no standardization is done, the DLT algorithm will give out 2 numerically different results?  UPDATE  In computer vision,  (DLT for short) is a method of homography estimation, it solves the overdetermined linear system via SVD $$Ah=b$$to find a solution $h$ under constraint $\|h\|=1$. Actually it finds the least square solution which minimize $\|Ah - b\|$.  I understand the basic idea of this algorithm, but it is recommended to standardize the data set before applying DLT on it, and  is a intro about how to do the standardization. It is lectured that data standardization is important to DLT, without standardization the results from DLT are not stable, and the reason is that DLT is quite dependent on the coordinates of the points in the data set.  I wonder why? Just because DLT involves solving the linear system using SVD and $A$ might be singular?


Should users be able to enter data directly into a pivot table

... or should I offer them a separate formular/window where the user can fill the data to the related person?  Its about entering marks/grades of pupils for a certain subject. So sliding to the wrong line could be bad or good for the one or other pupil...  A separate Window could help, but the productivity is smaller.  What do you think?


I've been doing a lot of work with ultrapowers and saturation recently. In particular, I am reading chapter 6 of Chang and Keisler as well as Keisler's paper on "Ultraproducts which are not saturated". In chapter 6 of C&K, they give define what it means to be a $\alpha-good$ ultrafilter and spend a long time on the existence of such types of filters. But then it hits me, I know about all these "different types" of ultrafilters, but I don't $know$ any $examples$ of such ultrafilters.     Is it provable that one cannot actually give an explicit example of a non-principal ultrafilter of $\mathbb{N}$? Or can someone give an explicit example of one (defined recursively)?  Edit: As André Nicolas pointed out, $ZF\not\vdash $ "There exists a non-principal ultrafilter". How do you construct a model of ZF which does not have any non-principal ultrafilters?


Software Updater has installed some new software. I'm largely not interested in this fact as I just use this machine as a file server and watch everything on my tablet or Windows machine.  However, every time I connect to the machine, I see this:    This is a window with no close button with the "Restart" button selected by default so literally my next keypress will reboot the machine. This is almost as bad as Windows 8 rebooting whenever it wants to in order to apply updates.   I don't mind it installing updates as and when it wants to but I am only ever going to restart the machine when I want to restart it. How can I stop the Software Updater from nagging me to restart?


Only first step with multi step registration

I'm using the module  for my user accounts. I have six steps in my registration proces.  But now I want to show only the FIRST step when a user registers. So the user can register with only username and email. And when they receive an email to set their password they can edit all their settings, all the steps with a wizard (this is also multi-step with the same module).  But I have no idea to make sure that when they register you can only see the first step...  How can I do this?


LWC rookie here, How can we call a JavaScript function from LWC? For example I have the following static resource helloWorld.js and I'll like to use and call the function in the file. How can I accomplish this?   JavaScript file:      function helloWorld(name) {         let hello = 'Hi ' + name;         return hello     }   LWC controller:   import { LightningElement, track, api } from "lwc";  import helloWorld from "@salesforce/resourceUrl/helloWorld";  import { loadScript } from "lightning/platformResourceLoader";   export default class testLwc extends LightningElement {    @track message;    renderedCallback() {     Promise.all([loadScript(this, helloWorld)])       .then(() => {         this.error = undefined;         // Call back function if scripts loaded successfully         console.log('load correctly')       })       .catch(error => {        });   }    handleOnChange() {        //how can I do something like this below ?      this.message = window.helloWorld('test');     }   Thank you


Pros and cons of user-agent flow vs web server flow

After looking into the different OAuth types and reading , I'm still confused on the specific pros and cons of user-agent vs web server flows.  The best explanation I can find says that user-agent tends to be used for mobile but it seems that they can both be used for desktop.   What makes it more appropriate to use one over the other in certain scenarios?


Null point Exception while consuming REST Service

I am using rest template in Spring boot to build a REST client in spring boot to consume and parse it into a java Model Object. My code snippet is like below for the Controller that fetches the API Response and parses it into a Model Object using the Jackson Parser every 3000 ms in a scheduled job:  @RestController public class RestAPIConsumerController {     @Qualifier("restTemplateConsumer")     private RestTemplate restTemplateConsumer;      @Bean     public RestTemplate restTemplateConsumer() {           RestTemplateBuilder builderConsumer = new RestTemplateBuilder();         RestTemplate buildConsumer = builderConsumer.build();          return buildConsumer;     }      @Scheduled(fixedRate = 3000)     public void consumeAPI() {         Model c = new Model();          try {             System.out.println("Started to Fetch API");              c = restTemplateConsumer.getForObject("https://jsonplaceholder.typicode.com/posts/1", Model.class);          } catch (NullPointerException e) {             e.printStackTrace();         }      }     }   My Model.java is like below   public class Model {           int userId;         int id ;         String title;         String body;      public int getUserId() {         return userId;     }      public void setUserId(int userId) {         this.userId = userId;     }      public int getId() {         return id;     }      public void setId(int id) {         this.id = id;     }      public String getTitle() {         return title;     }      public void setTitle(String title) {         this.title = title;     }      public String getBody() {         return body;     }      public void setBody(String body) {         this.body = body;     } }   I couldn't figure out the reason for null pointer exception is it because of my object initialisation or it could not able to parse the string to my Model Object.  Stacktrace is below:     java.lang.NullPointerException    at   com.test.RestAPIConsumerController.consumeAPI(RestAPIConsumerController.java:40)     at   java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native   Method)   at   java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at   java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.base/java.lang.reflect.Method.invoke(Method.java:564)   at   org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:65)     at   org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)     at   java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514)     at   java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)     at   java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)     at   java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135)     at   java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)     at java.base/java.lang.Thread.run(Thread.java:844)   Excpected behaviour: The expected behaviour of the code is to parse the response JSON successfuly to the Model Object.  Any help is appreciated.  Adding @Autowired solved the issue  @Autowired @Qualifier("restTemplateConsumer")         private RestTemplate restTemplateConsumer;


What's the difference between desktop managers and display managers?

Desktop manager examples: Gnome, Unity. Display manager examples: GDM, LightDM.   What is the split in responsibilities of these two types of managers? What functions do they each provide? And are they both dependent on X server, in what way?  Thanks


How to integrate $\int_0^\infty\frac{dx}{1+x^n}$

I was playing around with the function $\dfrac{1}{1+x^2}$, and knowing that the integral over $(0,\infty)$ was $\dfrac{\pi}{2}$, I was hoping to see if there was some neat pattern to determining the value of the following generalized form: $$I=\int_0^\infty \frac{dx}{1+x^n}$$ for natural $n\ge2$. I ran some computations in Mathematica and got a consistent result of $\dfrac{\pi}{n}\csc\left(\dfrac{\pi}{n}\right)$, which also happens to be equivalent to $\dfrac{1}{n}\Gamma\left(\dfrac{1}{n}\right)\Gamma\left(1-\dfrac{1}{n}\right)=\mathrm{B}\left(\dfrac{1}{n},1-\dfrac{1}{n}\right)$.  Is there some neat trick I can use to get this result? I've considered integrating along a contour, but I'm somewhat rusty with complex methods. Also, the result was posted previously .  I tried something like this instead: $$\frac{1}{1+x^n}=\begin{cases}\displaystyle \sum_{k=0}^\infty(-1)^kx^{nk}&\text{for }|x|<1\\\\ \displaystyle\sum_{k=0}^\infty (-1)^k x^{-n(k+1)}&\text{for }|x|>1\end{cases}$$ then integrating along the respective intervals $(0,1)$ and $(1,\infty)$.  Here's my attempt: $$\begin{align*}I &=\left\{\int_0^1+\int_1^\infty\right\}\frac{dx}{1+x^n}\\\\ &=\sum_{k=0}^\infty \left\{\int_0^1 (-1)^kx^{nk}\,dx+\int_1^\infty (-1)^kx^{-n(k+1)}\,dx\right\}\\\\ &=\sum_{k=0}^\infty \left\{(-1)^k\left[\frac{x^{nk+1}}{nk+1}\right]_{0}^{1}+(-1)^k\left[\frac{x^{-n(k+1)+1}}{-n(k+1)+1}\right]_1^\infty\right\}\\\\ &=\sum_{k=0}^\infty \left\{\frac{(-1)^k}{nk+1}-\frac{(-1)^{k}}{1-n(k+1)}\right\}\\\\ &=\left(1-\frac{1}{1-n}\right)+\left(-\frac{1}{n+1}+\frac{1}{1-2n}\right)\\ &\quad\quad+\left(\frac{1}{2n+1}-\frac{1}{1-3n}\right)+\left(-\frac{1}{3n+1}+\frac{1}{1-4n}\right)+\cdots\\\\ &=1-\frac{2}{1-n^2}+\frac{2}{1-4n^2}-\frac{2}{1-9n^2}+\cdots\\\\ &=\sum_{k=0}^\infty \frac{(-2)^k}{1-(kn)^2}\end{align*}$$ However, this series diverges by the ratio test, so I'm not sure if I made a mistake in my calculation or used some flawed reasoning.


Upstart doesn't produce any log on Ubuntu Raring

I've just installed Ubuntu 13.04 and added custom upstart scripts. These scripts work well and are already in use on other hosts (not Ubuntu).  The problem is, upstart doesn't produce any log of what it does. The only logs are daemon output logs in /var/log/upstart/. When jobs are started or stopped, no log are created. When a job is killed or exits 1, it is respawned, but there is no log of the respawn event in /var/log/*. log-priority is message, but setting it to debug doesn't change anything.  How can I have upstart produce logs of what is does on raring ?  Thanks for your help.  Arthur


Use of quotation marks after 'it's called X' and similar?

I've been looking at the Oxford Dictionary's page on , and see that they use this example:     He called this phenomenon "the memory of water."   This seems like it would work with or without the quotation marks, but I can't seem to find any specific guidance on the appropriate use of quotation marks for sentences that say something is called something. I've written some example sentences:     I call this 'the XYZ theory'.   or     I have a problem with a thing called 'small talk'.   Is it a case of quotation mark/inverted comma usage being appropriate when it's an unknown term, but inappropriate when it's a commonly used noun? The first example looks correct to me, whereas the second doesn't sit right unless the quotation marks are being used to draw emphasis.  I believe that you definitely wouldn't use them with proper nouns (my friend is called Peter, not my friend is called 'Peter'), and you could use them with film/book titles, etc. But what about nouns other than those?  I'm aware this may be a duplicate to  question, but the answers seem inconclusive.


pgRouting not returning node with correct z-value

have an issue with pgRouting that I've modified to consider multi-floor indoor areas. I've created a mock floor plan of any typical hotel. I copied the floor plan and assigned a different z-value to essentially mirror the floor plan, with one positioned directly above the other.  I then made vertical connections between the floors for elevators and stairs to create a complete 3D network.    Using the SQL code found here , I created the modified pgr_createTopology3d and pgr_pointToIdZ functions to build topology on the 3D network. Following that, I followed normal procedure for building the SQL View to serve the queried results as a layer to GeoServer  When constructing the SQL View, I used a modified version of pgr_fromAtoB to consider z-values.  I modified as follows (see  to ):  -- Find nearest node EXECUTE 'SELECT id::integer FROM ways_vertices_pgr      ORDER BY the_geom <-> ST_GeometryFromText(''POINT('      || x1 || ' ' || y1 || ' ' || z1 || ')'',4326) LIMIT 1' INTO rec; source := rec.id;  EXECUTE 'SELECT id::integer FROM ways_vertices_pgr      ORDER BY the_geom <-> ST_GeometryFromText(''POINT('      || x2 || ' ' || y2 || ' ' || z2 || ')'',4326) LIMIT 1' INTO rec; target := rec.id;   However, it doesn't appear that the z-value is being considered.  For example, I have nodes lying exactly on top of each other with the same lat/long, but with differing z-values. I can issue the ST_GeometryFromText command and limit the results to 2 and see the both of the nodes are being returned at the lat/long I've specified.  However, the z-value for the bottom node is 0 and the upper node is 1.  No matter what z-value I specify in the request, the upper node is always returned as the top result.   Does anyone know why?    How can I get it to return the bottom node if I specify the z-value as 0?


Pattern matching with LIKE, SIMILAR TO or regular expressions in PostgreSQL

I had to write a simple query where I go looking for people's name that start with a B or a D :   SELECT s.name  FROM spelers s  WHERE s.name LIKE 'B%' OR s.name LIKE 'D%' ORDER BY 1   I was wondering if there is a way to rewrite this to become more performant. So I can avoid or and / or like?


How to resize lvm partition on ubuntu 17.10

How do I resize lvm partition on ubuntu 17.10 without loss of data?


Symbol which looks like $\oint$ which marks the beginning of a section/chapter?

How do I make the symbol which looks like $\oint$ which marks the beginning of a section/chapter? Much thanks in advance.


Thomson's Plum Pudding and Rutherford's scattering

Why did Rutherford's scattering experiment disprove the plum pudding? Assuming a gold-atom to be a large homogeneous ball and hitting it with small homogenuous $\alpha$-balls should lead to the actually observed scattering angle distribution, why would anyone assume that the $\alpha$-particles would go through the gold-atom (am I right that back then the idea was that the gold atom is indeed a more or less solid ball)?


Traffic shaping for upload/download speed simulation

I'm building a network emulator to help realize different speeds. Basically, this system would shape a given user's network metrics (such as upload speed/download speeds/packet loss/jitter etc) based on the user's request. For instance, if a user selected 3G, the system would transform his/her connection to behave like a 3G connection. I imagine doing this by using the user's IP address.  I have been searching for some help on this but couldn't find a lot. I wonder if this is feasible at all.


Do the entropy of the universe and third law of thermodynamics conflict?

We know that our universe was in low entropy state at the earlier time after the Big bang. But we also know that the temperature at that times was enormously high. But what the third law of thermodynamic says ? It says that if $T$ goes to zero, entropy of the system also goes to zero, which is not the case for the universe at the very beginning.


Alert that a User is Typing a Comment or Answer

Would it be possible to program an alert where a bar would pop-up (similar to "A new Answer/Comment has been posted click to load") which would show if a user is currently writing a comment or writing an answer?  Seems to be a decent number of "quick answers" where two people give a very similar answer at the same time not knowing someone else is already working on a solution.  See  for more on how this can be helpful for "quick replies" versus "thought out replies".


What is causing space to expand?   Is it due to some kind of innate property or is it due to some force?  I did a google search on this and found lots of articles explaining that space is expanding but nothing as to why it is expanding.


Understanding Javascript Functions and Closure

In the following example, how is y given the value of 1?  I added some logging to see values and don't understand how/where y is assigned...   (function() {     function foo(x) {         var callNum = 0;         var baz = 3;         return function (y) {             callNum++;             console.log("callNum: " + callNum);             console.log("y: " + y);             console.log("baz: " + baz);             console.log("x: " + x);             console.log(x + y + (++baz));         }     } var moo = foo(2); // moo is now a closure. moo(1); moo(1); })();   Here's the fiddle output log:       callNum: 1        y: 1        baz: 3     x: 2      7      callNum: 2      y: 1      baz: 4      x: 2      8


My code returns an object:    public async Task<IHttpActionResult> GetAnswers(int userTestQuestionId)     {    return Ok(new AnswerToClientDTO         {             AnswerGridCorrect = answerGridCorrect,             Result = result,             UpdateRowCount = updateRowCount         });   Here is the code for the AnswerToClientDTO which is only used in the one place in my application:  public class AnswerToClientDTO {     public string AnswerGridCorrect { get; set; }     public int UpdateRowCount { get; set; }     public string Result { get; set; } }   Is it possible for me to return an anonymous object where I do not have to declare a class from an ASP.NET WEb API method?


How does using a lens with some focal length on a full frame camera differ from using a lens with "equivalent" focal lens on a crop camera?

As an example, a 35mm lens on a crop body (such as Nikon DX) is said to be "equivalent" to a 50mm lens on a full frame body. Equivalent here means that they will have the same field of view, but what other aspects will change or stay the same between the two? I'm thinking about things like perspective, bokeh, and depth of field (assuming the same aperture being used on both lenses).


Disable notifications for a particular account on macOS mail app

I have multiple internet accounts linked on macOS for calendar, mail, contacts etc. I wish to disable notifications for a particular account on the mail app. Is it possible to do so?


Let $G = (V, E)$ be a graph and $ad(G) = \frac{2|E|}{|V|}$ the average degree of $G$.  $$ mad(G) = max ( ad(H) : H \le G ) \text{ the maximum average degree of a subgraph of $G$} $$  We know that $\chi(G)\gt k$.  Proof that $G$ has a $k-regular$ subgraph.  I've been chewing this for quite a while. Any pointers that may lead me to a rigorous proof ?  EDIT : $mad(G) \le k$ and $k \ge 3$. I left it out by accident.


How can I assign a program/window to a workspace any time I start it - GNOME 18.04?

On Unity I had Compiz Config. It was responsible for my workspace grid, and with it I could make specific type of window appear in specific workspace.  So terminator was always on row 2 column 4, emacs row 1 column 4. Chrome row 3 column 2, Libre office writer row 4 column 2, Texworks row 4 column 4... Etc.  How is it possible in Ubuntu 18.04? Can I do it with gnome shell extensions? Is it possible to install Compiz Config and make it work like old times without switching to Unity? Do I have to switch to Unity for this?  I just upgraded from 16.04 to 18.04 and I'm trying to make it work.


Why does DrRacket load much faster on Ubuntu than on W10?

I'm using a dualboot configuration with Ubuntu 20.04 and Windows 10. While most applications load faster on Ubuntu,  loads much faster, perhaps 2x, on Ubuntu compared to W10. I was wondering if anyone has an explanation for this performance difference? I'm pleasantly surprised about it, just curious and willing to learn more about the reasons behind it.


How to change the default border color of fbox?

I have a lot of figures inside an fbox. Unfortunately the default black is too strong for my advisor and I need to change the default border color to something more soft.  I've done my research and so far all other answers suggest do solve the problem by  and switching to other packages. That's something I'd like to avoid, unless absolutely necessary.  Surely there is an option for something so basic in the fbox package itself?


What makes a building classify as a house for villagers in 1.14

I was building a village and wondered why villagers interacted with certain building but not others, e.g. they entered the library I built by not the church. I have been told that a bed and a door makes the building a house but I’m starting to question my knowledge of this. Please help.


Probabilities of entangled state. Quantum measurement

I confused about how to calculate the PROBABILITIES and getting a certain result of measuring Bell's states with Pauli matrices as the operator. When you measure something, the state involved would be projected onto an eigenstate of the observable. Given $|ψ⟩ = \frac{1}{\sqrt2} (|01⟩ + |10⟩)$ as the state and $σy   = \left(\begin{matrix}0&-i\\i&0\\\end{matrix}\right)$ as the observable. How to calculate probability on the first qubit actually? What is the state after measurement?


prove $a \equiv b \pmod{p_1}$ and $a \equiv b \pmod{p_2} \Rightarrow a \equiv b \pmod{p_1\times p_2}$

I am following a proof of an RSA algorithm and the proof states the following:  $p_1$ and $p_2$ are distinct primes, $a \equiv b \pmod{p_1}$ and $a \equiv b \pmod{p_2} \Rightarrow a \equiv b \pmod{p_1\times p_2}$. Let's call that FACT X.  can someone give me a proof for this. i have no formal mathematical training so a detailed proof will be much appreciated.


Different size of file from /dev/zero and /dev/urandom

I am tring to create random 1G test file via dd command.  dd status=progress if=/dev/zero of=/tmp/testfile.zer bs=100M count=10 dd status=progress if=/dev/urandom of=/tmp/testfile1.ran bs=100M count=10 dd status=progress if=/dev/urandom of=/tmp/testfile2.ran bs=100M count=20   The output is:  -rw-rw-r-- 1 dorinand dorinand  320M dub 21 12:37 testfile1.ran -rw-rw-r-- 1 dorinand dorinand  640M dub 21 12:37 testfile2.ran -rw-rw-r-- 1 dorinand dorinand 1000M dub 21 12:37 testfile.zer   Why is the output testfile generate from /dev/urandom three times smaller? I would expect that the size of testfile1.ran will be 1000M and size of testfile2.ran will be 2000M. Could anybody why this happening? How should I generate random testfile?


Does anyone know why some images get a grainy "halo" when uploaded to the web - NOT a low resolution image

I have a thorough understanding of high resolution vs low resolution photos, print vs web resolution etc, that shouldnt be the problem here, at least not entirely.  Does anyone know why some photos get a grainy "halo" around the edges of objects within a photograph when you export them for web? And/or what that pattern/issue is called? See my example below. Along the edge of the passport seal, its extra grainy and pixelated. I highlighted a portion of it in yellow, but if you look closely, it's happening around the entire seal. It also appears around the "United States". This is the most recent example I have but its been a random problem for me forever, usually around edges and text in photographs. I dont know what its called to google it myself either.


Max distance for cat5e in 1000Mbps / 1 Gigabit

What is the max distance for cat5e cables in 1000Mbps (1 Gigabit) Full Duplex mode?


Can't mount Windows drives, I see this error:   Whenever I try to click Data or OS label.


What is the relationship between lens diameter and exposure?

All of the online calculators for exposure, I have seen, factor in time, film speed, and aperture (which is a function of the iris diameter and the focal length of the lens).   However I would have thought a lens with a larger diameter (with the same focal length and aperture) would collect more light and therefore be faster!  For example lets say I have a scene of a candle 10 meters (32 ft) away, with a black back drop. I have a 10 mm diameter lens, with lets say a focal length of 80 mm, an aperture of f/8 and 100 iso film.  This takes say 10,000 seconds of exposure. Now what if we get four 10 mm lens. Use some fancy arrangements of mirrors/prisms to have them focus on the one piece of film. That should take 1/4 of the time (2,500 seconds). Lets just ignore any image distortion for now.  Ok so lets say, rather than four 10 mm lenses we use one 20 mm lens (which would be the same area) I would expect that to take 1/4 the time as well.  However this doesn't seem to be take into account with any calculators I have seen.  Am I just looking at rubbish exposure calculators, or am I missing something?  Edit: This question specifically asks about lens diameter and Exposure. The duplicate linked questions, deal with exposure (not taking lens diameter into account or look at image quality and diameter. Neither of which deal with my question at all!


Ubuntu on HP Realtek RTL8821CE Wifi card not detected

This is my first install of Ubuntu and I can't seem to get Ubuntu to recognize my Wifi card.  I have already gone through a few posts on Ask Ubuntu and google but none of those solutions worked:        I followed both link's instructions without error.  lshw -C network returns      WARNING: you should run this program as super-user.   *-network UNCLAIMED               description: Network controller        product: RTL8821CE 802.11ac PCIe Wireless Network Adapter        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0        bus info: pci@0000:01:00.0        version: 00        width: 64 bits        clock: 33MHz        capabilities: bus_master cap_list        configuration: latency=0        resources: ioport:e000(size=256) memory:fea00000-fea0ffff   *-network        description: Ethernet interface        product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0        bus info: pci@0000:02:00.0        logical name: enp2s0        version: 15        serial: c4:65:16:1e:89:e4        size: 1Gbit/s        capacity: 1Gbit/s        width: 64 bits        clock: 33MHz        capabilities: bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation        configuration: autonegotiation=on broadcast=yes driver=r8169 duplex=full firmware=rtl8168h-2_0.0.2 02/26/15 ip=192.168.0.27 latency=0 link=yes multicast=yes port=MII speed=1Gbit/s        resources: irq:31 ioport:d000(size=256) memory:fe904000-fe904fff memory:fe900000-fe903fff WARNING: output may be incomplete or inaccurate, you should run this program as super-user.   The output for the RTL8821CE driver is:  01:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter     Subsystem: Hewlett-Packard Company RTL8821CE 802.11ac PCIe Wireless Network Adapter     Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-     Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-     Latency: 0, Cache Line Size: 64 bytes     Interrupt: pin A routed to IRQ 5     Region 0: I/O ports at e000 [size=256]     Region 2: Memory at fea00000 (64-bit, non-prefetchable) [size=64K]   Let me know if there's anything else I forgot to post.  Thanks!


Need help with xubuntu environment, live cd useless

A few days ago I was using my computer perfectly fine, but now it's acting up. I tried using some code to reset my proxy, but it seem to have done more than it needed to.  if [ $(id -u) -ne 0 ]; then   echo "This script must be run as root";   exit 1; fi  gsettings set org.gnome.system.proxy mode 'none' ;  grep PATH /etc/environment > lol.t; cat lol.t > /etc/environment;  printf "" > /etc/apt/apt.conf.d/95proxies;  rm -rf lol.t;   I can still log in and I can still see my wallpaper and cursor, but my panel and icons are all gone. I right click and try to use the keyboard to open a terminal but I get nothing. I'm on Xubuntu 16.04.5. I've tried using the live cd to reinstall, but that keeps saying  "The installer encountered an unrecoverable error. A desktop session will now be run so that you may investigate the problem or try installing again."  but when the session opens it crashes, the screen goes to tty1 and asks for Xubuntu login. After a while I keep getting blk_update_request I/0 and SQUASHFS errors


I would like to allow numbers and the following characters: -, +, (, )  $phone = '1(54)+45-21'; var_dump(preg_match('/^[\(\)0-9+-]+$/', $phone));   Well, that works great. But I would also like to allow spaces between each character. So the value of $phone could be like +45 (548) - 541 55 11 but it would also be valid without any spaces.  How can I allow optional spaces?


How to copy files and folders in clipboard to all connected removable drives?

I am a teacher. Usually, at the end of my classes, I want to share some files and folders in my computer (Windows 8) with my students. I have bought a USB hub that supports 4 parallel usb drives. However, I must copy the clipboard for each student, one by one (I usually forget about to which one the files are copied, so I have to resend them :(  ). I am seeking a solution that can send my clipboard to all connected removable drives (, and if possible, send them to a new folder).  Any help is appreciated.


What documents should you carry with you when travelling internationally?

I actually saw this on a list of top new traveller questions, and figured it'd be a good one to have on here.  Obviously with international travel, you'll need your passport, but are there any other important documents you should consider taking with you when travelling?


I can't edit my own comments on my own questions and answers. I can still delete and add a comment, so if I really wanted to, I could copy my previous comment, add a comment, paste it in, make changes, and delete the old comment. This happens on all communities that I am on, regardless of the community. One example:     But there is no edit button. This is my own comment on an answer to my question. On another community:    Alas, no edit button, even though there is a delete button. I could copy the comment, delete the comment, add a comment, paste it in, and make changes. As of writing, I have < 50 reputation on all communities. If it is not currently possible to edit comments, please add the feature-request tag to this question, instead of down-voting, deleting or closing this question.


How do I print an array that holds a string from another class?

How would I go about printing an array that holds a string that is in another class using println? An example of what I mean is:  public class questions{      public void QuestionDatabase(){          String[] QuestionArray;         QuestionArray = new String[2];          QuestionArray[0] = ("What is a dog?");         QuestionArray[1] = ("How many types of dogs are there?");      }  }   In this other class, I want to grab a question from there like so:  public class quiz{      public static void main (String[] args){         //Here is where I want to grab QuestionArray[0] and print to the screen.         System.out.println("");      }  }


Does an electron have a temperature, if so, what is it?  Imagine an electron (Ke = 1 eV) in a tube at room temperature (300 K)    what is its temperature?   Imagine now same electron in space (3 K) with same Ke, is it any different from the other?  What is the influence of external temperature on electrons?  Do those electrons have electric energy, or do we have such energy only when the electron hits something and discharges its Ke?


What's the difference between "s" and "S" in ls -la?

When I ls -la, it prints many attributes. Something like this:  -rwSrwSr-- 1 www-data www-data   45 2012-01-04 05:17 README   Shamefully, I have to confess I don't know the exact meaning of each attributes. For example, what's the meaning of big S in the string -rwSrwSr--? What's the following 1? I know others roughly.


How to format spacing between reference key and reference text in Bibtex?

I want to increase the spacing between the reference key and the text in my bibliography as shown in the picture below:     I'm using Bibtex. Any suggestions? Thanks in advance!


Possible Duplicate:          Today I was bitten again by mutable default arguments after many years. I usually don't use mutable default arguments unless needed, but I think with time I forgot about that.  Today in the application I added tocElements=[] in a PDF generation function's argument list and now "Table of Contents" gets longer and longer after each invocation of "generate pdf". :)  What else should I add to my list of things to MUST avoid?   Always import modules the same way, e.g. from y import x and import x are . Do not use range in place of lists because range() will become an iterator anyway, the following will fail:  myIndexList = [0, 1, 3] isListSorted = myIndexList == range(3)  # will fail in 3.0 isListSorted = myIndexList == list(range(3))  # will not   Same thing can be mistakenly done with xrange:  myIndexList == xrange(3)  Be careful catching multiple exception types:  try:     raise KeyError("hmm bug") except KeyError, TypeError:     print TypeError   This prints "hmm bug", though it is not a bug; it looks like we are catching exceptions of both types, but instead we are catching KeyError only as variable TypeError, use this instead:  try:     raise KeyError("hmm bug") except (KeyError, TypeError):     print TypeError


Learning algorithm vs Model in Machine Learning

In ML, I learned that we have a model and a learning algorithm. The learning algorithm is used to train the model with training data, does that sound correct?  If the model is trained using linear regression, then is it called a "linear model"?  In the same way, what are the models called which are trained using KNN, Naive Bayes, and SVM?


$f(x) \in F[x]$ is irreducible over $F$ if $f(x) = g(x)h(x)$ implies that $g(x) \in F$ or $h(x) \in F$ where $F$ is a field.  If $g(x) \in F$ or $h(x) \in F$, then doesn't that make $f(x)$ reducible since it has factors in $F$?


Can a permanent Teleportation Circle be made on a moving vehicle?

There is a , but can a permanent teleportation circle be created on a large moving vehicle? For example, a sailing ship, or a wide portable floor?  The spell says:     You can create a permanent teleportation circle by casting this spell in the same location every day for one year. You need not use the circle to teleport when you cast the spell in this way.   To further illustrate the question, here are sub-questions:   What happens if I cast the spell on the vehicle for a year (and it is unmoving), and then the vehicle moves? Can it still be used as a destination point? Can I create a permanent TC on the vehicle if it is never in the same place twice in the first place?


How to "killall" Visual Studio Code in Terminal?

I have a small shell script called "k" that i call everytime when i want to reset my complete Development Cycle:  killall node killall Xcode killall Terminal   How can i find out the final name of the "Visual Studio Code"-Prozess to kill it also this way?  I've tried:  killall "Visual Studio Code"      No matching processes belonging to you were found   killall "Code"      No matching processes belonging to you were found   Any ideas? I am looking for a generic approach without any manually lookup of PIDs necessary.  This application looks like this in Activity Monitor:


Is Amazon Web Hosting Better than Dedicated cPanel Web Hosting for Large traffic WP Sites

I have a wordpress site and having 50k visits a day I am currently using a dedicated server but I feel the site is quite slow and sometimes reach a downtime when traffic spike up. I am looking to amazon or something similar, just wandering if they are better and cheaper than cPanel


What is a word that could define someone who's good at showing superficial kindness and friendliness towards others?

What is a word that could define someone who's good at showing superficial kindness and friendliness towards others but speaks ill of them or gossips about them behind their back ?


My question is quite simple. I was told that Linux machine launches different tty's, and they can be accessed by using Ctrl+Alt+F1-12. I found this:   F2 brings me to my desktop environment F3-6 brings me to what it should - a console proposing me to log in F7-12 brings me to the same looking console, but it's empty F1 is a weird one. When I press Ctrl+Alt+F1 from my desktop environment, my monitor stops receiving signal from my PC, and signal returns after switching tty back. When I press the same combination from another tty, I see Ubuntu's login page with all users on my machine (I did not try to login again from there yet, I just return back with Ctrl+Alt+F2).   So, why are F7-12 consoles empty and why does F1 behave in such a weird way?  UPD: I checked those F3-6 consoles: they work pretty fine.  I also checked F7-12: they are empty (I only see a blinking pointer) and they don't take any input from keyboard.  And then I discovered that simply Alt+F1 is enough to go from F3-12 to that login screen, while inside my desktop environment Alt+F1 seems to work pretty much like 'Activities' button in a top-left corner.


CSS3 - Use part of an image for background

I want to use some images as backgrounds but I have no control over the images. If the images are 500px x 500px , is it possible with just CSS3 to scale the image down to 200px x 200px and then only use 100px x 100px from the center?


Cannot get this specific class above 75% for testing help SOS

public class SurveyRulesNameTriggerHandler_AC { public static void onBeforeInsert(List<Survey_Rules__c> newSurveyRules){          //Find trigger names already taken besides SEOCSMEDAL     List<Survey_Rules__c> triggerNames=new List<Survey_Rules__c>([SELECT Trigger_Name__c FROM Survey_Rules__c WHERE Trigger_Name__c != 'SEOCSMEDAL']);     map<String,Survey_Rules__c> rulesmap=new map<String,Survey_Rules__c>();     for(Survey_Rules__c rules:triggerNames){         rulesmap.put(rules.Trigger_Name__c,rules);     }          //Prevent users from saving when this is found     for(Survey_Rules__c rules:newSurveyRules){         if((rulesmap.get(rules.Trigger_Name__c)!=null)){             rules.adderror('Trigger Name already exists.');         }     }      }  public static void onBeforeInsert2(List<Survey_Rules__c> newSurveyRules){          //Find trigger names already taken besides SEOCSMEDAL     List<Survey_Rules__c> surveyNames=new List<Survey_Rules__c>([SELECT Survey_Name__c FROM Survey_Rules__c WHERE Active__c = true]);     map<String,Survey_Rules__c> rulesmap=new map<String,Survey_Rules__c>();     for(Survey_Rules__c rules:surveyNames){         rulesmap.put(rules.Survey_Name__c,rules);     }          //Prevent users from saving when this is found     for(Survey_Rules__c rules:newSurveyRules){         if((rulesmap.get(rules.Survey_Name__c)!=null)){             rules.adderror('Active Survey Rule already created for that Survey Name.');         }     }      }  public static void onBeforeUpdate(List<Survey_Rules__c> newSurveyRules, map<Id,Survey_Rules__c> oldmap){          //Find trigger names already taken besides SEOCSMEDAL     List<Survey_Rules__c> triggerNames=new List<Survey_Rules__c>([SELECT Trigger_Name__c FROM Survey_Rules__c WHERE Trigger_Name__c != 'SEOCSMEDAL']);     map<String,Survey_Rules__c> rulesmap=new map<String,Survey_Rules__c>();     for(Survey_Rules__c rules:triggerNames){         rulesmap.put(rules.Trigger_Name__c,rules);     }          //Prevent users from saving when this is found     for(Survey_Rules__c rules:newSurveyRules){         if((oldmap.get(rules.id).Trigger_Name__c!=rules.Trigger_Name__c)&&(rulesmap.get(rules.Trigger_Name__c)!=null)){             rules.adderror('Trigger Name already exists.');         }     }      }  public static void onBeforeUpdate2(List<Survey_Rules__c> newSurveyRules, map<Id,Survey_Rules__c> oldmap){          //Find trigger names already taken besides SEOCSMEDAL     List<Survey_Rules__c> surveyNames=new List<Survey_Rules__c>([SELECT Survey_Name__c FROM Survey_Rules__c WHERE Active__c = true]);     map<String,Survey_Rules__c> rulesmap=new map<String,Survey_Rules__c>();     for(Survey_Rules__c rules:surveyNames){         rulesmap.put(rules.Survey_Name__c,rules);     }          //Prevent users from saving when this is found     for(Survey_Rules__c rules:newSurveyRules){         if((oldmap.get(rules.id).Survey_Name__c!=rules.Survey_Name__c)&&(rulesmap.get(rules.Survey_Name__c)!=null)){             rules.adderror('Active Survey Rule already created for that Survey Name.');         }     }      }  }


I have seen that it is possible to label e-mails by using tags in the e-mail address. For example if my address is myaddress@gmail.com then it is possible to send e-mail like myaddress.offer@gmail.com where offer is a tag. How to enable this feature in Gmail?


Windows 10 disable Win + Tab Task View shortcut

I need to use the ⊞ Win+Tab ↹ shortcut for something else in another program (Reaper). Is there some way to disable the ⊞ Win+Tab ↹ key combination from bringing up Task View without disabling the key functionality? I tried using the following script with AutoHotkey, but then I get no input from typing the shortcut, so I just can't use it at all.  #Tab::Return   Is there some way to simply disable the Task View feature in Windows 10 via group policy change or regedit? I really have no use for it, and would like to be able to use ⊞ Win+Tab ↹ to do something else.


Is it common we extended Key size to 512 bit in AES Algorithm?

is it common , we increase key size to 512 Bit in AES Algorithm?


How do I constrain filesize of a bunch of photos?

I have a bunch of photos of jewelry that I need to upload to a website. Unfortunately there is a 2MB file size limit. Most of the photos are JPEGs over 3MB.  I want to keep the aspect ratio, meta data, and highest quality possible at under 2MB. Adobe Bridge will allow me to set an image size limit when I export, but not the file size.  Does anyone know of a way to render the images with a max filesize limit?


I have installed Ubuntu 18.04 on a new HP EliteBook 850 G6.  It is claiming it can't find the wifi adapter.  The adapter works just fine in Windows 10, so the hardware is working.  I installed it via the iso and requested third party driver installation.  No dice.  The light on the key for the wifi status is amber, and doesn't turn on or off when hitting fn + F11 button.  Not sure what to do at this point as I've installed it twice now and still can't get it working.  EDIT: added results of lspci and rfkill  danp@danp-HP-EliteBook-850-G6:~$ lspci -nnk | grep 0280 -A3 3a:00.0 Network controller [0280]: Intel Corporation Device [8086:2723] (rev 1a)     Subsystem: Intel Corporation Device [8086:0084] 3b:00.0 Non-Volatile memory controller [0108]: Intel Corporation Device [8086:f1a8] (rev 03)     Subsystem: Intel Corporation Device [8086:390d]  danp@danp-HP-EliteBook-850-G6:~$ rfkill list 2: hci0: Bluetooth     Soft blocked: no     Hard blocked: no


Running Kubuntu 17.04.  System Settings -> Online Accounts -> Create -> Google (or many others)   produces an error --- different errors for different services.  What is wrong here? How do I set this right?


I've got a drive (well, a separate partition actually) that has my music on it, and in theory I should just be able to hit play in Rhythmbox and it'll work. But for some reason, I need to personally go into the drive and just open the drive before rhythmbox will actually realise the files are still there.  A partial solution seemed to have been to put the following command into the startup applications list:  --mount /dev/sdb4   But that only worked when I logged in and out to test it. It doesn't actually work when booting up.  EDIT: I've just noticed that the drive is no longer being listed by Ubuntu automatically. I can see it if I look for it under drives, but its not automatically coming up.


Normal distribution in nature: additive result of multiple variables?

We found normal distribution is so common in nature, such as many measurement of species (weight, height or size). From the point of central Limit Theorem, Can I intuitively understand this as the additive result of multiple factors (genes affecting height) that affect corresponding phenotype (height)?


Removing punctuation and creating a set from words from user input

I was wondering how I might go about removing punctuation from user input and creating a set from the words in the input. So far I have this.  input_set = set(self.entry.get().lower().split(' '))


Can I make a boot USB and use the space remaining on the USB for general file storage?

If I have an 8G USB and I create an installer iso, which  occupies only a fraction of the available space, something like:  $ lsblk -o model,NAME,SIZE,TYPE,fstype,state /dev/sdb MODEL            NAME    SIZE TYPE FSTYPE  STATE USB DISK 2.0     sdb     7.5G disk iso9660 running                  ├─sdb1  325M part iso9660                   └─sdb2  416K part vfat     and  $ sudo fdisk -l /dev/sdb Disk /dev/sdb: 7.5 GiB, 8011120640 bytes, 15646720 sectors                         ^^^^^^^^^^ available Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x64c1c041  Device     Boot Start    End Sectors  Size Id Type /dev/sdb1  *        0 665599  665600  325M  0 Empty /dev/sdb2        3984   4815     832  416K ef EFI (FAT-12/16/32)   (note: I'm aware these partitions aren't aligned).   ISO image occupies 600k sectors out of 16 million available. I've tried to add a partition onto the free space, so I could use it for general file storage, but my partition editor (cfdisk) threw an error. Is it possible to add a partition and filesystem onto the free space? if so how?


"Replace John with Andrew" which of this name is to be trashed

Greeting to all in this room,  Please help with this statement.  "Replace John with Andrew" which one becomes trashed among John and Andrew?


Let $N \subset G$ be a normal subgroup. Show there exists a finite collection of irreducible representations $\phi_i: G \rightarrow GL(V_i)$ of $G$ such that  $$ N = \bigcap{\ker(\phi_i)}$$


How to have http module on fire events only for specific page types

I have an http module on a sharepoint site and this module instantiates a custom class and add it to the session and does other initial things for my site. However, I'm noticing that the http module is being called for all request types (.aspx, .js, .png, .jpg).  Is there any way to have an http module only be called for .net specific page types?


My husband applied for visa and they refused it again. However they refused him on the things he’s included as evidenced when they stated that he hasn’t included them. I don’t understand how they can do that.


Proof about maximum amount of Spanning Trees in Complete Graph

How do I prove that the Complete Graph with $n$ ($n$ is even) vertices can have as much as $n / 2$ disjoint spanning trees (spanning trees that does not share an edge)? So complete graph has $n(n-1)/2$ vertices and the spanning tree has $n - 1$. Then if we divide the first number by the second one we will get the answer, but I can't get why this is correct, because any $n-1$ edge may not form the spanning tree.


R Tukey HSD Anova: Anova significant, Tukey not?

i created a simple anova with three groups in R and get a significant Result. After that i do a Tukey HSD Test and now nothing is significant. How can that be?  Pr(>F): 0.0316  Group |   p adj  1 - 2    |  0.0689014  2 - 3     | 0.0847163  3 - 1      | 0.8909709


I accidentally stopped the installation of mysql while setting the root password and now I can't, neither open the application, nor uninstall it. sudo apt-get remove --purge mysql*  returns E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 10071 (apt-get) N: Be aware that removing the lock file is not a solution and may break your system. E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?  can anyone please help me?


$\|u\|\leq \|u+av\| \Longrightarrow \langle u,v\rangle=0$

Prove that $\langle u,v\rangle=0\Longleftrightarrow \|u\|\leq \|u+av\|$.  So far I can get the $\Longrightarrow$ very easily, but I need some help with the $\Longleftarrow$ implication, any hints would be greatly appreciated.  Please no answers, I just want a small nudge to get me in the right direction, I've been stumped on this for a little bit.  Here's what I have so far:  ($\Longleftarrow$)  Assume $\|u\| \leq \|u+av\|$  $\|u+av\|^2=\langle u+av,u+av\rangle=\langle u,u\rangle+ \langle u,av\rangle+\langle av,u\rangle+\langle v,v\rangle=\|u\|^2+\bar{a} \langle u,v\rangle+a\langle v,u\rangle+\|v\|^2=\|u\|^2+ \bar{a}\bar{\langle v,u\rangle}+a\langle v,u\rangle+\|v\|^2$  Thoughts/ideas?


I did a fresh installation of Ubuntu 12.04 on all my computers yesterday and one of them just doesn't seem to like 12.04. Let's start with the symptoms:   I initially tried installing through a USB flash with the desktop amd64 version. Since it had worked on all other (5) computers, I believe the USB flash drive was ok. However the computer seemed to be stuck after the Ubuntu GUI came up (bar on the top, pinkish background) but before the screen prompting to Try or Install. When the screen came up, the mouse was moving exceptionally slowly, i.e. it responded 2-3 seconds after I had moved it. After a few minutes, I could move the mouse with normal speed, but could not click anything. The Try/Install window never came up. The same thing had happened a few days ago when I had tried to install Ubuntu 12.04 Beta 2 on the same computer, but when the Try/Install screen kept failing to come up, I gave up.  I assumed it was a problem with the desktop installer, so I tried the alternative installer, which worked fine. But then, the same (or possibly a similar) problem appears on the login screen: the mouse moves very slowly in the first few minutes, then it moves normally, I cannot click anything (for example the buttons on the top right), and I cannot type in my password to login or select the guest session.    So I am stuck at the login screen. I did not encounter any problems on my other computers, so here are some specs of this one:   CPU: Intel i7 980x extreme edition Motherboard: Asus Rampage III extreme RAM: 6GB GPUs: 2x NVidia GTX 580 in SLI HDD: Western digital 1TB green power (20GB for root (/), 6GB for swap, all the rest for /home)   I should also note that this PC ran 11.10 flawlessly until yesterday, when I attempted to install 12.04. I tried installing 11.10 after I failed with 12.04 and it worked again, so its definitely something related to 12.04.   Unfortunately, due to the nature of the problem, I don't know how to provide any logs, but if there is some way let me know.


Suppose $p$ is a prime number such that $(p-1)/4$ and $(p+1)/2$ are also primes. Show that $p=13$.   My approach:   Since $p$ is prime, it is of the form $6k+1$ or $6k-1$. Now if $p$ is of the form $6k-1$ then $(p+1)/2 = 3k$ which is not possible as $3|3k$.   So $p$ is of the form $6k+1$. Now $(p-1)/4 = 3k/2$ so $2\mid k$. So $p$ is of the form $12k+1$. But now, how to prove $k=1$?  Please help!


Chrome: Site has updated in the background

I keep getting these notifications despite not having an RT tab open. What gives?


What are the most popular techniques of proving inequalities?

I know some of it, but I would like to learn other ones. I think this question is useful, as it will be helpful for other beginners. Such as: uvw, AM GM, Cauchy–Schwarz inequality, Jensen inequality. Could you please add something? Maybe books containing it?


Why isn't the "Interesting" tab available under the "Questions" page?

A while ago I ran into the Interesting tab, and wondered how come I was not aware of it before. After playing around a little, I realized that this tab is available only at the Home page which I did not visit very often (I was using the Questions page).      My question is, How come the Interesting page is not under Questions? This is where I would expect to find it...


Why does this null exception occurs at java.swing connection with mysql?

The problem is that NullPointException occurs at           st = con.createStatement();          rs = st.executeQuery("select * from noit");          rs.next();  but they are declared to be null. The first code is for connection to MySQL and the second is to give a function to a button.  public class database {     public void con(){     Connection con = null;     Statement st = null;     ResultSet rs = null;     String nqkuvsi = null;     try{         con = (Connection)DriverManager.getConnection("jdbc:mysql://localhost:3306/userlogin","root","1234");                if(con!=null){             System.out.println("successfull");            }}catch(Exception e){         System.out.println("no connection");         e.printStackTrace();     } } }       connection answers "successful"  public void actionPerformed(ActionEvent a){ db.con();         ResultSet res = null;            int resul = 0;     Object s = a.getSource();                if(s==jbut){      Random rand = new Random();         Random rand1 = new Random();              int rnd = rand.nextInt(2)+1;                         int rnd1 = rand1.nextInt(2) + 2;          String nqkuv = null;          String nqkuv1 = null,nqkuv2 = null,nqkuv3 = null;          if(rnd==1){                               try{                             st = con.createStatement();              rs = st.executeQuery("select * from noit");              rs.next();              nqkuv = rs.getString(rnd1);          }catch(SQLException e){              e.printStackTrace();          }


Using l'Hôpital rule to find $\lim_{x\to-\infty} xe^x$

I'm trying to solve this limit:     $$\lim_{x\to-\infty} xe^x$$   I'm trying to solve this limit using the l'Hôpital rule. My question is: can I use this rule in the last limit below?  $\lim_{x\to-\infty} xe^x=\lim_{x\to-\infty} \frac{x}{e^{-x}}$  Note the numerator tends to $-\infty$, while the denominator tends to $\infty$, can I use the l'Hôpital rule in this case?  Thanks


edited rc-sysinit.conf system won't boot

I have modified the DEFAULT_RUNLEVEL from 2 (graphical interface) to 1 in rc-sysinit.conf, to install drivers for GPU. After choosing either default or recovery mode, I see just black screen. Any ideas, what went wrong and how to get into text interface or at least revert the changes?  Any help will be much appreciated. I am running Ubuntu 12.04 as a second system.


We in the Selenium community were  at Area 51.  Of late there was discussion about .  There was great opposition from the Selenium community to merging with the more general software testing proposal.  We got notified today that the Selenium proposal has already been merged with the software testing one.  Also that the Selenium proposal has been closed, which is very very sad.  We want to know -   When there was great discontent about the merge, why did the merge still happen? How could we reopen the Selenium proposal? If SE sites are all about openness then why was such an autocratic decision made?   Remember we already have Google-Groups for Selenium users which receives the highest amount of traffic for Selenium qs.  The idea was to close Google-Groups once we had a dedicated Selenium area51 site.  When we don’t have a dedicated Selenium site, Google-Groups would also continue and there would be fewer questions on Selenium asked on the new merged site, or on any other site for that matter.  Refer  which shows how helpless we feel.


How would I make a random word generator in python for a variable?

I'm trying to make a quiz but I want to know how to make a random word generator.  The 4 words I need to be in this generator are: add, minus, divide and times.  question = random.randint(1,4) if (question==1): elif (question==2): elif (question==3): elif (question==4):   I'm using this for now but I would prefer for it to be words


Young Adult Science Fiction - Cord and Lamprey main character names

I'm looking for a book series I started but never finished 20+ years ago.  It was about a group of colonists who ended up on an inhabited planet.  Some, maybe all, of the characters were sent there as punishment for crimes.  The main character's name was Cord, he was really strong.  The villain's name was Lamprey, he was violent and had been in some kind of special ops military group back on Earth.  The native inhabitants of the planet were peaceful and not particularly dangerous, if I recall correctly.  Looking for this on Google has taught me much I didn't know about the spinal cords of lampreys and other fish, but no luck finding the book I'm after.


I want to select rows BETWEEN @From and @To from a certain column depending on the filter @Filter. Here is a sample of my code. The WHERE does not work, I understand why, but I don't know how to fix it. DECLARE @From VARCHAR(20) DECLARE @To VARCHAR(20) DECLARE @Filter VARCHAR(20)  SET @From = '01' SET @To = '06' SET @Filter = 'Department'  SELECT      Employee.Number,     Employee.Name,     Clocking.Date,     Clocking.Time FROM      Employee LEFT JOIN     Clocking ON Employee.Number = Clocking.Number WHERE     CASE WHEN @Filter = 'Department' THEN Employee.Department END BETWEEN @From AND @To,     CASE WHEN @Filter = 'ReportCenter' THEN Employee.ReportCenter END BETWEEN @From AND @To ORDER BY     CASE WHEN @Filter = 'Department' THEN Department END,     CASE WHEN @Filter = 'ReportCenter' THEN ReportCentre END  I don't know how to select the column that should be filtered depending on the @Filter provided.


This was on my combinatorics exam. I definitely didn't answer it correctly, but I'll explain what I did.  Mary has to go to work or some bs. She needs to travel 6 blocks east and 7 blocks north. How many different routes can she take? Honestly, Mary, pick one route and stick to it. You don't need to know all the different ways you can walk to the same place.  Then they throw a wrench in the gears and tell you she has to go 2 blocks east and 4 blocks north first before she takes her daughter to preschool, and then go to work. How many ways can she do this?   First I tried 13! which seemed too large. Then I started thinking like a decision tree. I tried to imagine the scale of the tree in considering my answer. I was somehow led to thinking in terms of binary decisions. So I ended up writing $2^{13}$ because I figured she had 2 decisions to make at each block, but clearly, that's just not true. By my incorrect logic, she could go north 13 times.


Replaced wrong car in garage in GTA Online

I was asked to replace a car in order to put another car in my garage. However I thought I would be able to swap the car I wanted in and take out the other car that was already in there so I could bring it to my other garage. Can I get my car back?


Send custom flag responses to messages inbox

Long story short: since custom flag responses are messages to users like any other (answer, comment, suggested edit, chat message etc.), users should be notified about them!!    A problem I have with flagging, as it currently functions, is that flaggers are not notified about custom responses to flags, when they are given. I really don't care if I don't find out about every last flag of mine, whether it was marked "helpful" or not, but if a moderator went to the effort of typing out a custom response to my flag, explaining why it was or was not helpful, I'd like to see that response. The logical place for this response would be in the messages inbox (the red number thingy in the top left corner), where other responses to user actions (like answers, comments, edits, and chat messages) go.  This may also help to alleviate  of users not realizing that their flags go somewhere -- while I agree with her that "We shouldn't send notifications for [all] flag responses; that would be way too noisy for a lot of people," I think that in the event of a custom response, the flagger should be notified (because some mod thought that this information was relevant to the flagger), and it would not be too noisy because (in my experience1) most flags do not receive a custom response. This could provide one way that flaggers can be made aware of their flagging history.2    1 I don't know who can see this, but  on Mi Yodeya, to date, is 55 flags total (49 helpful), and only one custom response (....that I didn't see for a while, till I checked my flagging history for a different reason).  2 While I don't think that this will replace Monica's suggestion entirely, it would certainly help it a little.    To give credit where credit is due, while I came up with this idea myself, I did notice that someone else had posted about a similar idea earlier in a .  Edit: Just spotted  from the related questions along the side of the page; note that while that proposal is similar to this one, it was about sending all declined flags to the inbox, while I suggested that only the ones with custom responses should make it to the inbox.


Why do we use standard deviation and what happens if we define deviation in a different way?

From what I understand, standard deviation is a way to quantify how individual results differ from their mean. Since $E[X - E[X]] = 0$, we square that difference and take the square root of the expectation to get a value that represents the "expected" deviation of a value from its mean.  But is there some specific reason we use $E[(X-E[X])^2]^{1/2}$, and not $E[(X-E[X])^3]^{1/3}$ or $E[(X-E[X])^n]^{1/n}$ for any other $n$ (e. g. a more analytical way to derive standard deviation). Does the case when $n=2$ represent something particularly useful, and what would other cases represent?  I also wonder what's the relationship between standard deviation and Euclidean distance / $L^2$-norm.  $\left(\int_{\mathbb{R}} (x-E[X])^pf(x)\ dx\right)^{1/p}$ also looks similar to $\left(\int_{\mathbb{R}} |f|^p \ d\mu\right)^{1/p}$


Mint 18 will boot only to a black screen

A few days ago, I accidentally replaced my desktop in Mint 18 with a virtual console with an errant keystroke.  Not having an obvious way to reverse the changes, I logged in and typed exit to exit the console and go back to the desktop.  Instead, the computer rebooted, and I lost God-only-knows-how-much unsaved work.   After showing the Mint logo and flashing a message underneath it far too quickly to read, the computer now boots only to a black screen.  By pressing esc during reboot, I can get to a Startup Menu.  I ran disk checks and memory checks using it, and they all came up clean.  None of the other options in this menu help.  I have no idea what to do.  The screen is clearly receiving power, and the black screen that it boots to shows a dash or underscore in the top right corner.  How do I get my computer back?  It's an HP Pavilion laptop.


Group theory proof of Euler's theorem ($a^{\phi(m)} \equiv 1\mbox{ }(\mbox{mod }m)$ if $\gcd(a,m)=1$)

From A Classical Introduction to Modern Number Theory by Ireland and Rosen, page 33:     Corollary 1 (Euler's Theorem). If $(a,m) = 1$, then $a^{\phi(m)} \equiv 1\,(m)$.      Proof. The units in $\mathbb{Z}/m\mathbb{Z}$ form a group of order $\phi(m)$. If $(a,m) = 1$, $\bar{a}$ is a unit. Thus $\bar{a}^{\phi(m)} = \bar{1}$ or $a^{\phi(m)} \equiv 1\,(m)$.   If I'm interpreting this correctly, this proof implicitly uses the fact(?) that if $G$ is a group and $x\in G$, then $x^{|G|}=1$, where $1$ is the identity element of $G$.  If this is indeed true, can someone explain why? (I have had no prior exposure to group theory.)


Minecraft 1.10.2 command block doesn't activate other command block

So I am trying to do some stuff with command blocks in 1.10.2 . But I have come to a problem. To make things more compact I have placed command blocks like a tower. The bottom command block checks for a pushed button in a location. The top ones are suppose to do what I need but they don't. Any ideas? By the way the testforblock command is correct.


I left my dogs sitting on another players island on a server

I recently left my dogs on another players island, sitting. Now, that player kicked me from the island and U need my dogs back ..is there a way to do it without commands or cheats?


If n is a positive integer, then $n^3 + 5n$ is divisible by $6$.

Is this possible to prove through the induction method. It seems it is not to me. I built a base case, proceeded to substitute in k, then finally moved onto my $k+1$ case. Where I ended up with a polynomial that seems to be irreducible. My answer looks like   $Q(k+1) = 1+3+7+...+K+(K+1) = (K^3 + 11k + 6)/6$  From my understanding for this to be true all variables k on our right hand side must be simplified to (k+1) which I cannot seem to find a way to do.


Exponential Moving Average by time interval


Adding a hotlink to an attribute field in QGIS

How to add hotlink to QGIS? I saw  but had some problem. I want to open network location like \\fileserver\filefolder\file1.excel but it ends with error.  Edit:     The network location is stored in a column of the table eg. URL column contains URL value for each attribute. Different row has different URL.


How do i change global boolean inside a function?

Hello :D As a practice for Arduino, I'm trying to make a function that I can re-use to change global variables inside the loop function. So for example, I have two global booleans answer1 and answer2, and I have a void function that have boolean as an input. However, when I run the code, the global variables are not changing, and I'm sure what I am not understanding correctly. bool answer1, answer2;  void setup() {   answer1 = false;   answer2 = false; }  void loop() {       grading(answer1);   grading(answer2); }  void grading(bool _answer) {   _answer = true; }


Why does my function change the argument when it modifies an array?

I would not expect foo to change at all in this example, but when I modify it as an array in the function, it changes the argument.  Notice foo is not changed by function1...I guess because it doesn't modify the argument directly??? Any help avoiding this would be greatly appreciated.    var foo = [1,2,3];  bar = function1(foo); bar = function2(foo); bar = function3(foo);   function function1(newFoo){     newFoo = [newFoo,'a',1];     return newFoo; } //foo after function1 = 1,2,3   function function2(newFoo){     newFoo[0] = 'a';     return newFoo; } //foo after function2 = a,2,3   function function3(newFoo){     newFoo.push('4');     return newFoo; } //foo after function3 = a,2,3,4


Update PATH Environment variable independant of OS using JAVA

How can I update the environment variable PATH using java. With the same code I should be able to update the PATH variable in Windows and Unix when I run the code in respective OS.  Thanks in advance.  regards, San


I'm making a slideshow with LaTeX beamer class like this :  \documentclass[xcolor=dvipsnames]{beamer} \usepackage[french]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc}  \usepackage{listings} \usepackage{listingsutf8}  \begin{document}  \begin{frame}[fragile] \frametitle{Découpage et assemblage de lignes} \begin{lstlisting}[language=bash] some code \end{lstlisting} \end{frame}  \begin{frame}[fragile] \frametitle{Autres opérations} \begin{lstlisting}[language=bash] some code \end{lstlisting} \end{frame}  \end{document}   For convenient reasons, I would like the code of each frame to be inside a command created with \newcommand like this :   \documentclass[xcolor=dvipsnames]{beamer} \usepackage[french]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{listings} \usepackage{listingsutf8}  \newcommand{\framei}{% \begin{frame}[fragile] \frametitle{Decoupage et assemblage de lignes} \begin{lstlisting}[language=bash] some code \end{lstlisting} \end{frame}}  \newcommand{\frameii}{% \begin{frame}[fragile] \frametitle{Autres operations} \begin{lstlisting}[language=bash] some code \end{lstlisting} \end{frame}}  \begin{document}  \framei  \frameii  \end{document}   But when I try to build my slideshow with these modifications, pdftex fail with a  Runaway argument? error.  Is there something wrong with my sources? or is it a LaTeX/beamer bug ?


2014 song from male singer, music video had "Where the Wild Things Are" monsters

In 2014 I used to listen to a song by a male singer/band from what I remember and the music video had the monsters In from where the wild things are I've tried a few like seafret Atlantis daughter youth but it's not these videos I also don't think the song is from the original sound track


How to detect if a specified amount is NaN and how to

Okay, so I on my site people play with coins now the feature where you go to use the coins can be "Cheated" by using console in javascript using a string that is NaN so I wan't to know how I can filter if the string inputted in the bets are NaN and if they are not a number I wan't to pop up an error message and if they are numbers I want it to continue with the rest of the script.


When I run "df -h", I get:  Filesystem      Size  Used Avail Use% Mounted on udev            2.5G   12K  2.5G   1% /dev tmpfs           509M  896K  508M   1% /run /dev/sda1        38G   33G  2.5G  94% / none            4.0K     0  4.0K   0% /sys/fs/cgroup none            5.0M     0  5.0M   0% /run/lock none            2.5G   84K  2.5G   1% /run/shm none            100M   24K  100M   1% /run/user none            298G  206G   93G  69% /media/sf_share   On /dev/sda1, the difference between size and used is 5G, but available is only 2.5G.  I just deleted a lot of files, but when I filled it up to 100%, I went into GParted and I could see that /dev/sda1 still had white space for this partition.  sudo fdisk -l /dev/sda results in:     Device Boot      Start         End      Blocks   Id  System /dev/sda1   *        2048    79249407    39623680   83  Linux /dev/sda2        79249408    90111999     5431296    5  Extended /dev/sda5        79251456    90111999     5430272   82  Linux swap / Solaris   sudo resize2fs /dev/sda1 gives me:  resize2fs 1.42.9 (4-Feb-2014) The filesystem is already 9905920 blocks long.  Nothing to do!


SQL Server Get only Date form column with Date and Time

I have been trying to get only date from a column with date and time.  Here is a sample:  Select BDATE  from PersonData   Current output:  1977-12-05 15:40:54.000    Desired output:  1977-12-05   How can I use the CONVERT date from datetime?  Thanks in advance


Let $x,y$ be coprime integers. If $z$ is a multiple of $x$ and $y$ then $z$ is a multiple of $xy$.

Let $x,y$ be coprime integers. I want to prove that if $z \in \mathbb Z$ is a multiple of $x$ and $y$ then $z$ is a multiple of $xy$.   I know that $\exists r,s,m_1, m_2 \in \mathbb Z$ s.t. $$z=m_1x=m_2y$$ $$xr+ys = 1$$. But this is as far as I've gotten. I'm not sure how to proceed from here.


Prove that the set of all finite sequences of real numbers has the same cardinality as the set $\mathbb{R}$ of reals.  I can not understand the purpose of the question.


I have two directories with same files but with some difference in their contents. I want to list down those files which are differing. For example  There are two folders Folder1 and Folder2 with files file1,file2,file3,etc. file2 of Folder1 is not similar to file2 of Folder2.   So my command should list file2.  How can I do that ?


E: Unable to locate package with sudo apt install

Whenever I do sudo apt install with some package name it is showing E: Unable to locate package .  I have removed 'install-info' file earlier. Does this causing the problem? Also software center is showing no applications.


"Legacy WGL is unable to select between OpenGL versions" error

Is there a chance of fixing this? (the autodesk maya was working fine and I want to try this program, could someone help me with this?)


Is UNIX password the root password . i changed UNIX password ? I did not find the right answer before posting this

To change unix password from command line: i used :  To change the root password:  sudo passwd   This gave instructions to change the UNIX password. It did not change my user password, who is the only user on the computer.  So which password was changed? Im new and im lost. Thanks


Who uses ?  Does anyone know what products use it, or have any statistics on how many end users use something that is built on BSAFE?  Background: BSAFE is one of the oldest cryptography libraries, and among commercially available cryptographic libraries, it is well-respected.  However, recent news suggests that .  Dual_EC_DRBG, of course, is the algorithm that is .  Previously, cryptographers had suggested that probably no one uses Dual_EC_DRBG, so the suspected backdoor probably doesn't have much practical impact; however, this news about the BSAFE library suggests we might want to re-examine that conclusion.  In particular, it is possible that any backdoor in Dual_EC_DRBG backdoor might affect any products which use the RSA BSAFE library, so to assess the impact of this suspected backdoor, it would be helpful to better understand which products use BSAFE, and how many products and how many people rely upon BSAFE for their cryptography.  My question: Who uses RSA BSAFE?  Which products are built on top of RSA BSAFE?  How do I tell who might be affected by this issue?  There's a big difference between an issue that affects a few internal enterprise tools, vs something that affects products used by millions of end users every day -- I'm trying to get a better sense for the degree of the impact of this issue, and to be in a better position to explain to others whether BSAFE's use of Dual_EC_DRBG is a big deal or not.