What happens if we put together a proton and an antineutron?

A hydrogen nucleus consists of a single proton. A 2-hydrogen (deuterium) nucleus consists of a proton and a neutron. A tritium nucleus consists of a proton and two neutrons. This makes me wonder how an atomic nucleus made of a proton and a "minus one neutron" would look like, and the closest thing to a "minus one neutron" I can imagine is an antineutron.  What happens if we combine a proton and an antineutron? Are things like this even possible? If such a thing is an atomic nucleus, can we add an electron and get an atom?  Edit: in the comments below, I also asked this more specific question (I suppose it's useful to also mention it here in order not to create a complete chaos):  If the proton and antineutron annihilate, is it still possible that the thing they annihilate to remains somehow stable enough to behave like an atomic nucleus?


Say you have two physically congruent blocks A and A 1kg each. A has an initial temperature of 100 degrees celsius, and B has a temperature of 0. Through whatever cutting and manipulating the blocks you want, is it possible to make block B 100 degrees and block A 0 degrees through merely conducting heat through touching parts of the blocks that you cut?   Keep in mind that all dissassembled parts of each block must be reconstructed to the original block, and cannot be mixed.   My goal is to make the reconstructed B block, after whatever manipulation, 100 degrees and A, 0 degrees. Temperature is conducted based on mass, for instance if you touch a 0.3kg part of the red block with a 0.1 kg part of the blue block, both will be 75 degrees. The temperature equilibriates instantly based on mass and there is no heat loss.


When using conjunctions in a question to connect two sentences, should I add a comma before the conjunction? For example,  Why did you leave me to be like this ,and disappear without a single trace?  Or,  Why did you leave me to be like this and disappear without a single trace?


Batch converting 10.4 mxd files to 10.1 with ArcPy gives AttributeError: MapDocObject: Unable to save?

Closely related to , except I am running ArcGIS 10.4. It should be possible for me to make 10.1 copies of all my 10.4 mxds. Here is my code:  import arcpy, sys, os, string   dir = r"D:\Path\To\Maps" outloc = os.path.join(dir, "Compatible_MXDs") version = '10.1'  suffix = "_"+ version.replace(".", "")  # Get all mxds in this directory arcpy.env.workspace = dir mxdList = arcpy.ListFiles("*.mxd")  for file in mxdList:     print(file) # mymap.mxd     mxd = arcpy.mapping.MapDocument(os.path.join(dir, file))     base = os.path.basename(file)     print(base)     # ('D:/Path/To/Maps/mymap', '.mxd')     base = os.path.splitext(base)[0] + suffix + os.path.splitext(base)[1]      mxd.saveACopy(outloc + os.sep + base, version)     print(os.path.basename(file) + " has been converted")   But I get the same error:  Traceback (most recent call last): File "MakeMXDsBackwardsCompatible.py", line 21, in <module> mxd.saveACopy(outloc + os.sep + base, version) File "C:\Program Files (x86)\ArcGIS\Desktop10.4\ArcPy\arcpy\utils.py", line 182, in fn_ return fn(*args, **kw) File "C:\Program Files (x86)\ArcGIS\Desktop10.4\ArcPy\arcpy\_mapping.py", line 877, in saveACopy self._arc_object.saveACopy(file_name, version) AttributeError: MapDocObject: Unable to save.  Check to make sure you have  write access to the specified file and that there is enough space on the  storage device to hold your document.   I'd rather not use the "File -> Save a Copy -> change mxd version" dialogue for 500 separate mxds over multiple directories.    While my question is also closely related to , the answers are still not satisfactory for my problem. The relevant (simplified) code:  mxd = arcpy.mapping.MapDocument(r"D:\Path\To\Maps\mymap.mxd")  mxd.saveACopy(r"D:\Path\To\Maps\Compatible_MXDs\mymap_101.mxd", '10.1')   Now with regard to that question's answers...  1) I have no mxds with the same name already on disk, nor am I trying to overwrite.  2) I am not attempting to overwrite an mxd file that is already in use. No other scripts are concurrently accessing it. Furthermore nothing changes even after I add  del mxd   at the end.  3) Again, I am not calling anything like  mxd.saveACopy(mxd)   I have read the .  I have tried rebooting and running my script without starting ArcMap. I don't use an IDE, but use Notepad++ to write my scripts and execute them on my command line with python MakeMXDsBackwardsCompatible.py


OOP Mistake Call to a member function insertName() on a non-object in

Hello I've made a quick code to insert name into a database.  This is the class for database connection:  (I hide the passwords etc, basically i define them in the top)  class Database {     private $pdo;     private $query;     public function __construct()     {         try         {             $this->pdo = new PDO('mysql:host='.MYSQL_HOST.';dbname=oop', MYSQL_USER, MYSQL_PASSWORD);             $this->pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);             echo 'Sucessfully connected to MySQL server!';         }         catch(PDOException $e)         {             echo $e->getMessage();         }     }      public function query($name)     {         $this->query = $this->pdo->prepare("INSERT INTO user (name) VALUES (:name)");         $this->query->bindValue(":name", $name);         $this->query->execute();         echo 'Sucessfully send!';     } }   This is the class that I basically use the queries and process them from :  class System {     private $Database;      public function __construct(Database $Database = null)     {         $this->Database = $Database;     }      public function insertName($name)     {         if ($this->db != null)         {             $this->db->query($name);         }     } }   This is config.php  include("system.class.php"); include("db.class.php");  $system = new System($Database); $db = new Database();   And this is index.php  <?php  include("config.php");  ?>  <html> <form action="" method="post"> <input type="text" name="name"> <input type="submit"> </form>  <?php      if (isset($_POST) && !empty($_POST['name']))     {         $Database->insertName($_POST['name']);         echo 'Scessfuly inserted!';     } ?> </html>   Problem:  When sending the data (after submiting the form) I get the following error:  Fatal error: Call to a member function insertName() on a non-object in C:\xampp\htdocs\oop\index.php on line 17  What did I do wrong? This is line 17:      $Database->insertName($_POST['name']);   How can I fix this and what is the problem?  Thnaks.  After changing it from $db to the actual name of the class I get this:  Call to undefined method Database::insertName() in C:\xampp\htdocs\oop\index.php on line 17  EDIT:  if (isset($_POST) && !empty($_POST['name'])) {     $system->insertName($_POST['name']);     echo 'Scessfuly inserted!'; }   class System {     private $Database;      public function __construct(Database $Database = null)     {         $this->Database = $Database;     }      public function insertName($name)     {         if ($this->Database != null)         {             $this->Database->query($name);         }     } }


Training on the full dataset after cross-validation?

TL:DR: Is it ever a good idea to train an ML model on all the data available before shipping it to production? Put another way, is it ever ok to train on all data available and not check if the model overfits, or get a final read of the expected performance of the model?    Say I have a family of models parametrized by $\alpha$. I can do a search (e.g. a grid search) on $\alpha$ by, for example, running k-fold cross-validation for each candidate.   The point of using cross-validation for choosing $\alpha$ is that I can check if a learned model $\beta_i$ for that particular $\alpha_i$ had e.g. overfit, by testing it on the "unseen data" in each CV iteration (a validation set). After iterating through all $\alpha_i$'s, I could then choose a model $\beta_{\alpha^*}$ learned for the parameters $\alpha^*$ that seemed to do best on the grid search, e.g. on average across all folds.  Now, say that after model selection I would like to use all the the data that I have available in an attempt to ship the best possible model in production.  For this, I could use the parameters $\alpha^*$ that I chose via grid search with cross-validation, and then, after training the model on the full ($F$) dataset, I would a get a single new learned model $\beta^{F}_{\alpha^*}$   The problem is that, if I use my entire dataset for training,  I can't reliably check if this new learned model $\beta^{F}_{\alpha^*}$ overfits or how it may perform on unseen data. So is this at all good practice? What is a good way to think about this problem?


The df command tells me I have no free space left on the root drive    but I deleted a lot of files on the root and still this does not freeing up space. This is the result without the home folder, because home is not mounted on root    the 19GB from the df command is not the same as the 9,8GB  from the du command?  I deleted all the data with "rm" commands so I guess the data is really gone and not caching up somewhere...  Does any body know what's going on here, and how I can free some space?


new difficult question or difficult new question?

I want to know which one is correct ?  "New" is age and "Difficult" is observation so it should be difficult new question but I think it's not ! why?


Why is Windows Backup forcing me to include a non system drive?

I'm trying to update my backup image, which should only includes the C drive.... except now Windows backup is forcing me to include my D drive and labeling it as a system drive, even though it doesn't do anything special (hosts a large VM and some other files) - shown below.  I've also include an image from disk management, in case it helps.  Any help would be appreciated.


Recommend some advanced books on the standard model?

I am now reading Weinberg quantum field theory volume 1. But the notations are almost impossible to read for me. I completed Griffiths elementary particles book and Srednicki quantum field theory. So I need some advanced book on standard model.


How to redirect to another page using jquery and node.js express?

I wanna redirect to another page when I clicked a button. I am using node.js express. I want the routers to render the file to the client. The client code is :  var socket = io.connect('/'); $(document).ready(function() {   socket.emit('createNewUser');   $('#signup-btn').click(function() {     var user_info = {       name: $('#inputUserName').val(),       email: $('#inputEmail').val(),       password: $('#inputPassword').val()     }      socket.emit('createNewUser', user_info);      //redirect to '/personal' here   }); });   The routes->index.js code is   var express = require('express'); var socket = require('socket.io'); var router = express.Router();   // router.get('/', function(req, res) { //    res.sendFile(path.join(__dirname) + '/views/homepage.ejs'); // }); // router.get('/', function(req, res, next) { //   res.render('homepage', { title: 'Express' }); // }); // router.get('/signup', function(req, res, next) { //   res.render('signup', { title: 'Express' }); // }); router.get('/personal', function(req, res, next) {   res.render('personal', { title: 'Express' }); }); // router.get('/myFile', function(req, res, next) { //   res.render('myFile', { title: 'Express' }); // }); // router.get('/updateData', function(req, res, next) { //   res.render('updateData', { title: 'Express' }); // }); module.exports = router;   I have tried several method. window.location.href=""; does not work. I used $.get(/personal), it seems that the router can get the request but did not render anything.


What are the English laws on bringing pets into the country?

I wish to take my pet cat with me to the United Kingdom, to stay with relatives (they are fine with the cat, and understand that she travels with me a lot).  I am concerned, however, whether or not I am allowed to do this, and what I have to be careful of crossing the border.  What paperwork will my cat need, and will she be quarantined?  I'm traveling from another country in the EU (Italy).


Regarding command could not be located because '/bin' is not included in the PATH environment variable

I am facing issues with linux command execution:  root@PGStaging:/etc# ls Command 'ls' is available in '/bin/ls' The command could not be located because '/bin' is not included in the PATH environment variable. ls: command not found root@PGStaging:~# ps Command 'ps' is available in '/bin/ps' The command could not be located because '/bin' is not included in the PATH environment variable. ps: command not found   How to solve above issues?


Is there a constructible flat pairing function?

In ZFC set theory, is there a Skolem function f such that ZFC can prove f is a flat pairing function? And if so, can someone explicitly give me a formula?


Ways to seat $n$ couples around a circular table with restriction

How many ways are there to seat $n$ couples around a circular table such that no couple sits next to each other?  I know that since there are $n$ couples, there are $2n$ people.   I need to use Inclusion-Exclusion. However I am unsure of how to go about this problem.


How to choose between sign test and Wilcoxon signed-rank test?

I am trying to pick one from these two tests to analyze paired data. Does anyone know any rules of thumb about which one to pick in general?


Why isn't memory admissible as evidence in the Harry Potter universe?

It seems to me that Harry could have saved himself a lot of grief if he had allowed people to see his memories (either through extraction or Occlumency). For instance:   He could have proved Lucius Malfoy placed the diary in Ginny's basket. He could have proved Sirius's innocent (with the memory of Wormtail's confession). Most importantly, he could have proven Voldemort was back.    Maybe it would have made for a less exciting story, but it sure would have made his life easier.


Example of inductive step working but not the base case

Are there any examples where the inductive step works but the base case does not? I know there are some where the latter is more difficult.


How to re-open a status-declined feature-request?

How can one request reconsideration of a   after a certain period of time, let us say after one year?


Unwanted space between author name with at al. and year when using \citep

I am using authordate bibliography style to cite my references but when I use \citep an extra space is inserted after the author and before the comma.  What I get is this:     The area of a triangle and their derivatives (Talischi et al. , 2009)   are given by...   And what I want is:     The area of a triangle here and their derivatives (Talischi et al.,   2009) are given by...   My code is:  \documentclass[msc,wide,cover,hidelinks,nonomencl,bibkey]{Thesis_AXL_en} \usepackage{natbib}      \begin{document}     The area of a triangle and their derivatives \citep{Talischi_et_al2012b} are given by...      \bibliographystyle{authordate1-4}     \bibliography{References}     \end{document}   And the .bib file is:  @Article{Talischi_et_al2012b,     author       = {Talischi, C. and Paulino, G.H. and Pereira, A. and Menezes, I.F.M.},     title        = {\textbf{PolyTop: a Matlab implementation of a general topology optimization framework using unstructured polygonal finite element meshes}},     journal      = {Structural and Multidisciplinary Optimization},     volume       = {45},     number       = {3},     pages        = {329--357},     year         = {2012},     publisher    = {Springer} }   Searching I found the topic , but I don't have experience in dealing with .bst files and I don't know how to solve this issue.


A woman told me she is going to put money in my account and wants my login username and password. Is this real or should I say no?


InDesign: How to restore text-frame position/size to be managed by the master page instead of the actual page?

I have some designer that moved slightly a text-frame and in order to be managed again by the master page we need to remove the page and create a new one inserting the content in it.  Is there any different way to do it?  I would like to be able to restore the "power" of positioning/size to the master page because now we need to change the master-page to position the text-frame a little bit to the right and in the case above mentioned will not be updated.  Thanks


Calculate $P(X\geq 0, Y \geq -X)$ given $X, Y$ are independent standard normal random variables.   I had thought this could be done as simple as a system of inequalities on $\mathbb{R}^2$ given the entire support integrates to 1, and so the solution is $\frac{3}{8}$.  I was told this isn't a technically correct method, but the solution was correct.  Is there some preliminary step that needed made, like regarding conditioning, to make this argument formal?


Should MathJaX be enabled on the hot questions list?

Currently, when a question that includes MathJaX in the title is on the hot questions list found on the Stack Exchange front page, the raw MathJaX is displayed, and not the nicely formatted math.  Should this be changed, or should users just refrain from putting MathJaX in question titles?  To clarify, I'm talking about the hot network questions list found when you visit , not the sidebar on sites. The sidebar is a whole different issue.


How do I fit a constrained regression in R so all coefficients are positive and above 0

I am trying to understand how to solve the below quadratic program:  This is my model   Y=π1X1+π2X2+π3X3+ε,  My constraints are: -  all weights πk>0 ; so each weight need to be above 0  My goal is minimize ∑(Yi−(π1Xi1+π2Xi2+π3Xi3))2  The code below show the first weight to be equal to 0 for meq=1, I am looking for a solution where all weights are above 0. I am not sure if meq should be 1 or 0. And why with meq =0, the unconstrained result match the constrained one?  require("quadprog") X <- matrix(runif(300), ncol=3) Y <- X %*% c(0.2,0.3,0.5) + rnorm(100, sd=0.2) Dmat = t(X) %*% X Amat = t(diag(3)) bvec = c(0,0,0) dvec = t(Y) %*% X solve.QP(Dmat = Dmat, dvec = dvec, Amat = Amat, bvec = bvec, meq = 0, factorized = F)   Results with meq=1  $solution [1] 0.0000000 0.4365420 0.5267267   $unconstrained.solution [1] 0.2052446 0.3196065 0.4612527   Results with meq=0  $solution [1] 0.1450482 0.2105224 0.5632482    $unconstrained.solution [1] 0.1450482 0.2105224 0.5632482


How do I determine parameters of normal & lognormal distribution given two points?

Assume I have two values which represent two quantiles for the same lognormal and/or normal distribution.    How can I determine the parameters of the distribution?    EG,  F(5,000) = 0.9   # P(X < 5,000) = .90 F(1,500) = 0.75  # P(X < 1,500) = .75


`$U$` and `$\mathcal U$` typeset very similarly with TeX Gyre Pagella

I love TeX Gyre Pagella, and use it and the corresponding math font like so:  \usepackage{fontspec} \usepackage{unicode-math} \setmainfont[Ligatures=TeX]{TeX Gyre Pagella} \setmathfont{TeX Gyre Pagella Math}   However, $U$ and $\mathcal U$ are typeset too similarly for my taste:   Since the problem just affects a single calligraphic letter, does anybody have a suggestion for what I might replace $\mathcal U$ with (from the same font or a different one)?  Edit regarding the : It does in part answer my question. In particular, it answers how I would go about making the replacement I ask for. I am, however, also asking for a suggested replacement, which I think makes my question slightly different. egreg's comment is a nice such suggestion.


How to reduce file size without losing quality or resolution?

I have 2,300+ pictures that I want to transfer to my phone but on their original size they take up a lot of space (6.44gb) I would like to trim is down to without sacrificing quality or resolution. I know it can be done under linux with something like pgncrush. I currently have access to a windows system and all the files are on jpeg format.  How do I do it?


How do I edit PDF files produced by LaTeX in Illustrator? Fonts are not found

When I try to use Adobe Illustrator (CS4) to edit a PDF file produced by LaTeX with several equations in it, Illustrator complains that it can't find the fonts:  The font CMBX10 is missing.  Affected text will be displayed using a substitute font. The font CMMI10 is missing.  Affected text will be displayed using a substitute font. The font CMMI6 is missing.  Affected text will be displayed using a substitute font. The font CMMI7 is missing.  Affected text will be displayed using a substitute font. The font CMMI8 is missing.  Affected text will be displayed using a substitute font. The font CMMIB10 is missing.  Affected text will be displayed using a substitute font. The font CMR10 is missing.  Affected text will be displayed using a substitute font. The font CMR7 is missing.  Affected text will be displayed using a substitute font. The font CMSY10 is missing.  Affected text will be displayed using a substitute font. The font CMSY6 is missing.  Affected text will be displayed using a substitute font. The font CMSY7 is missing.  Affected text will be displayed using a substitute font. The font MSBM10 is missing.  Affected text will be displayed using a substitute font. To preserve appearance, some text has been outlined.   How do I find & install the necessary fonts?


“Error while retrieving information from server [DF-DFERH-01]” on Play Store

I have a Storex eZee Tab 702 tablet. My Google Play Store was working very well until a few weeks ago, when it started saying,     Error while retrieving information from server [DF-DFERH-01]   I tried to clear the cache, clear the data, force stop, and downloading another Google Play Store, but I'm still having the same problem.  How can I fix this issue?


How to switch to Developer mode in Android 4.2.*

If you get the Android 4.2.* version phone, you will notice that there is no Developer mode any more.  How can you switch to Development mode?


MySQL 8.0.17 on Windows - I forgot my root password, dont need to keep any previous DBs

I have previously used MySQL for a class about a year ago and not since. I've forgotten the password and I need to use it again.  I don't need to be able to access any previous databases, so I tried stopping the service in command prompt and uninstalling then re-installing MySQL but this still resulted in me getting stuck at the "Accounts and Roles" section of the MySQL Installer where it asks for my root password.   Is there a way I can reset it or start a new root account all together? I've seen tutorials for Ubuntu but I'm not knowledgeable enough yet to translate this to windows.


I want to know which hard disk drive corresponds to which device path. It's trivial to match the hard disk stats (brand, size) with the dev path, but I want more. I want to know which drive is which inside my case. What's a good way to go about getting this info?  Constraints   I am lazy. I don't want to tear apart my server to remove all the drives, then add back one by one. Reboots are acceptable. The drives are inconveniently scrunched together in the case. The label information is hidden. The case can be opened. Most disks are SATA, so theoretically hot swappable. Unplugging cables is fair game.   Bonus  I'll award answer to the best/easiest gui or cli answer, and give a bounty to the next-best answer of the other kind. I prefer a cli answer, but understand that a lot of other folks will appreciate a good point-and-click method.


Is there a reason why tag pages aren't part of the data dump?

Tag excerpts and tag wikis are cc-by-sa licensed content, just like the rest of the content, but they don't appear in the dumps. Shouldn't they be included as well?


How can I execute notify-send from root?

I'm working on a bash script which requires root privileges, but which I'd like to give the ability to notify a non-root user of certain alerts via notify-send in GNOME (or any other desktop shell supporting that command). As expected, simply invoking notify-send from a root shell doesn't display a notification on the non-root user's desktop.  I've tried to invoke the command via:  su -c "notify-send 'my message'" -s /bin/sh someuser   (as well as using /bin/bash, /usr/zsh), but neither of these has had any effect.  How can I invoke notify-send from a root shell so that it shows a notification on a (specified) non-root user's desktop?


Paperback novel about a man who kills a birdlike alien on his balcony with a watering can

I read it as a paperback book somewhere in the mid-90s, I think. The protagonist lived in an apartment building. He's out on the balcony when a birdlike (but humanoid) alien swooped down and attacked him. The presence of the aliens was commonly known and was a known danger. He kills it with his watering can and is rewarded by either the aliens or the humans for it with money. Other than that, all I remember was that the chapters were started with an internet-like news report which I think chronicled things getting worse and more violent. One of the updates involved the bombing of a bridge with the casualties raised by having two slow-moving trucks moving side by side obstructing traffic and ensuring a full bridge.  The internet system was pretty ubiquitous as I recall. I think that he looked up his watering can shortly after the incident with the aliens, but decided to keep this one, even if it leaks a bit. I want to say that it was by Piers Anthony, but none of the book titles look familiar. I think the cover I had showed the man being attacked by the bird-man, which looked kind of like the illustrations on the cover of The Stand.


Finite abelian $p$-group with only one subgroup size $p$ is cyclic

My goal is to prove this:     If $G$ is a finite abelian $p$-group with a unique subgroup of size $p$,   then $G$ is cyclic.   I tried to prove this by induction on $n$, where $|G| = p^n$ but was not able to get very far with it at all (look at the edit history of this post to see the dead ends). Does anyone have any ideas for a reasonably elementary proof of this theorem?


Prove that $\tau(2^n-1) \geq \tau(n)$ for all positive integers $n$.  Note that $\tau(2^n-1)=\sum_{d|2^n-1}{1}$. I try to prove by induction.  Base case: When $n=1$, we have $\tau(2-1)=\tau(1)$. Hence, the inequality is true.  Fix an $n$. Assume that the inequality $\tau(2^n-1) \geq \tau(n)$, which is $\sum_{d|2^n-1}{1} \geq \sum_{d|n}{1}$ is true for $n$. Note that $\sum_{d|2^{n+1}-1}{1}=\sum_{d|2^{n}-1}{1}+1 \geq \sum_{d|n}{1}+1=\sum_{d|n+1}{1}$  I don know whether the equality above hold or not. Can anyone guide me?


I would like to rename an external drive (USB).   How can I rename an external drive?


laptop:  MSI CR61 Dual Core 4GB 500GB HD8210G  wi-fi card: Realtek RTL8723AE Wireless LAN 802.11n PCI-E NIC system: ubuntu-14.04.3-desktop-amd64 experience with ubuntu: beginner   problem: wi-fi connection is not visible    I don't have cable connection, so solution with apt-get are not available   where can I download driver files for that card? (using windows)          edit: I need to somehow get drivers, download them on windows and then run them on Ubuntu (can't find url for drivers that is still active) all links to drivers I found are inactive, other solutions I found use cable connection and apt-get, which doesn't work for me


“Screen overlay detected” dialog? Turned off everything, doesn't work

I started receiving the “Screen overlay detected” dialog when trying to change apps settings.  Tried to turn off all "draw over other apps" as it says here - , first without system and then with, but it still doesn't work.  Then, I restored apps to original settings and it just made a bigger mess, dialog continue appearing. Any way to go back to previous settings???  Thanks!


Why does printing a char pointer and an int pointer have a different result?

const char* arr[3];  arr[0] = "Hello"; arr[1] = "C++"; arr[2] = "World"; for (int i = 0; i < 3; i++) {     cout << arr[i]; } int* pInt[3]; for (int i = 0; i < 3; i++) {     pInt[i] = &i;     cout << pInt[i] << endl; }  I saved char address into the array(arr) and the output was HelloC++World. The second time I saved int address into the array(pInt) and the Output was Address. Why is it different?


How to specify which form mode to use for a content type

I created a new_form_mode for a content type in D8 and removed some fields in that form mode from Manage form display tab of the content type by selecting that new_form_mode . But how can i select that form should be displayed for that content type instead of default form mode?


Auto login doesn't seem to work for me all the time, when is it suppose to work?

If I login to 1 stachexchange website, sometimes when I go to another one it automatically logs me in.  Sometimes this happens on the main page, and other times it happens when I try and post.    On the other hand, sometimes it just doesn't autologin at all and I have to go to myopenid.


Every invertible finite order matrix is semi-simple

How can I prove that over algebraically closed field $k$ any invertible matrix of finite order is semi-simple (diagonalizable)?  I thought in the following direction: any polynomial has root in $k$ since it is algebraically closed $\Rightarrow$ characteristic polynomial splits into linear factors $\Rightarrow$ there exists basis of eigenvectors $\Rightarrow$ matrix is diagonalizable.  It isn't true and counterexample is very simple: $\begin{pmatrix} 1 & 1\\ 0 & 1 \end{pmatrix}$  So how should I use that it is of finite order?


Showing $\frac{1}{n} + \frac{1}{n+1} + \cdots + \frac{1}{n+k}$ is not an integer.

Show that if $n, k \in \mathbb{Z}, n>1, k>0$, then   $$\frac{1}{n} +  \frac{1}{n+1} + \cdots + \frac{1}{n+k}$$   is not an integer.    I thought about showing the result by first showing $k \geq n$ and using the fact that for every $n \in \mathbb{N}$ there is a prime $p$ such that $n <p \leq 2n$, but am not sure if there is another way. If not, how can we proceed and conclude?  EDIT: There is a question like this already asked that I did not see. I do not need assistance with this question.


Check if click occured inside or outside of modal window

I am catching click on website and closing modal window.  But how to actually check if click occured inside or outside of modal window?      $(document).click(callself(this, function (inst, event) {         var modalElement = $(selector);         if (modalElement.css("display") == "block") {             this.closeButtonClicked();         }     }));


When will my device get the Android 4.2 update (Jelly Bean)?

Android 4.2 (Jelly Bean) was officially announced on October 29, 2012.  (You can review  at the official Android Developer's site.)  Of course, not all devices will get this update right away and others won't get it at all. Each manufacturer and carrier often choose to add their custom modifications which tend to delay the official release.  When will each device get Android 4.2, either officially or unofficially, if ever?  See also:


I have seen multiple times that physicists used a formula to find the number of vacua in string theory, What formula was used to calculate the number of vacua in string theory? How did they arrive at 10^500? This is somewhat different from the question of why string theory has such a large landscape; I am asking for the mathematical details of the situation not just the logic. I want to know what math led to this, not "because there are a lot of manifolds"


Failed to install HipChat4 for ubuntu 12.04

I have followed the installation steps   :  sudo sh -c 'echo "deb https://atlassian.artifactoryonline.com/atlassian/hipchat-apt-client $(lsb_release -c -s) main" > /etc/apt/sources.list.d/atlassian-hipchat4.list' wget -O - https://atlassian.artifactoryonline.com/atlassian/api/gpg/key/public | sudo apt-key add - sudo apt-get update sudo apt-get install hipchat4   But after sudo apt-get update I get :   .... Fetched 5,092 kB in 6s (794 kB/s)                                                                                W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release  Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)  W: Failed to fetch https://atlassian.artifactoryonline.com/atlassian/hipchat-apt-client/dists/precise/main/binary-amd64/Packages    W: Failed to fetch https://atlassian.artifactoryonline.com/atlassian/hipchat-apt-client/dists/precise/main/binary-i386/Packages    E: Some index files failed to download. They have been ignored, or old ones used instead.   I have already followed this exacts steps with success on a ubuntu 14.04 machine.     Edit 1 -  on 64 bit, I get following error  Get:2 https://atlassian.artifactoryonline.com precise/main Translation-en_US [80 B] Err https://atlassian.artifactoryonline.com precise/main amd64 Packages                                                                           Err https://atlassian.artifactoryonline.com precise/main i386 Packages                                                                            Ign https://atlassian.artifactoryonline.com precise/main Translation-en_US                                                                       Ign https://atlassian.artifactoryonline.com precise/main Translation-en                                                                          W: There is no public key available for the following key IDs:                                                                                1397BC53640DB551 W: Failed to fetch         https://atlassian.artifactoryonline.com/atlassian/hipchat-apt-client/dists/precise/main/binary-amd64/Packages    W: Failed to fetch  https://atlassian.artifactoryonline.com/atlassian/hipchat-apt-client/dists/precise/main/binary-i386/Packages    E: Some index files failed to download. They have been ignored, or old ones used instead. $ sudo apt-get install hipchat4 Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package hipchat4


Check the uniform convergence of series of functions

Check that given series converges uniformly for $x\in(-\pi,\pi)$ or not  1) $\sum_{n=1}^{\infty} (\frac{x}{n})^n$  2) $\sum_{n=1}^{\infty}\frac{1}{((x+\pi)n)^2}$  first series is power series so I find the radius of convergence that comes $R=e$ which is inside the given set so I am not able to give the final conclusion. after this I were thinking to apply $M_n$ test , but I am not able to find $M_n$. Please help to solve this problem.


Why does United States gets article but not Japan?

Why does the name " United States " gets article?  Like:  He is from Japan  He is from the United states  But Japan doesn't get article. Why?  Thanks


Can I partition a HDD for playing Xbox 360 games?

I am planning to buy an xbox 360 console. my budget permits me acess to only the 4 GB one which needs extra space for many games' install. I have an external HDD of size 40GB. My question is can I divide it into partitions such thet I can use one for gaming on xbox and the other for data storage.


what size tire can install on my bike? I have hybrid bike (gary fisher Tiburon 2006).  It has 700x35C tires on it or if you want to call it 37x622.  I want to install the widest tire possible to ride on semi rough trail. Today I received my new tires 700x42c but I wasn't impressed with the unnoticeable added width of 7mm as if there is no difference in size.   I have lots of clearance on all the relevant tires and frame to accommodate wider tires. I have about 3/4" on both sides of the front forks and rear frame. Also enough space between the brakes holder and rim. I checked with a bike shop and they advised me that I have enough room for much wider tires.  Please advise the widest tire size I can install on my wheels.


So, most of us are familliar with Euler’s equation stating that $e^{i\pi}+1=0$. But I was wondering: how can an irrational number to the power of another irrational number equal a whole integer? And if that works, then how can $e^{i\pi}+1=0$ if $i$ isn’t even real?


A word for a similar concept as a shibboleth

I'm trying to think of this word that is similar to a shibboleth but slightly different.   It's generally a question asked to someone to indicate something deeper.   For example, if you wanted to know if someone was telling the truth you could ask them a more general question. E.g. If you were at this location, then you should know what color the door is. It's not only used in interrogations but is used more widely.   Another example, if you wanted to know which political leanings someone had, you could has them a question on a specific issue which you could then infer more about without specifically asking.   There is definitely a specific term for this that is on the tip of my tongue and driving me crazy because I cannot remember it! Anyone know what I'm talking about?


On a fresh install of 18.10 I attempted to install CPU usage widget     on that link it errors showing :     Although GNOME Shell integration extension is running, native host connector is not detected


Using the cURL command, how does one fetch stock data which comes back *without* commas and spaces?

What can I add to the below script so that it fetches the stock data and brings it back WITHOUT any commas and spaces? For example GOOG Outstanding shares is 675,000,000.   I desire the output of 675000000 for my txt file. (no spaces or commas or punctuation). I need decimal functionality however for share prices though).   cd desktop/quoteUpdate while true do  curl -o quotes.txt -s "http://download.finance.yahoo.com/d/quotes.csv?s=avxl,goog,aapl&f=snl1c6j2s6f6"  sed -i '.bak' 's/,/ /g' quotes.txt # replace commas with spaces echo UPDATED: date sleep 10 done


Should I get into the schengen territory, normally with visas type c which is generally 3 months.  How do I go about renewals? Do I have to return home or do I go to another schengen territory to renew the visas


Dropbox, PushBullet, Thunderbird and a dozen other apps create notifications. Is it possible to log these in a Unix-like way?  I dislike the tiny messages popping up for a few seconds and then disappearing without a trace.  Basically, I want to be able to grep a file which contains a line for each notification.


How many Stack Exchange sites are there really?

How many Stack Exchange sites are there? Obviously 114, from the Topbar:    Or 112, from Stack Overflow, Help, Tour, scroll to near the bottom.    The difference is Area 51 from the link on the Tour page is not listed as a site (which it is from the Topbar), but it has its own link.  And Stack Overflow em Português is missing from the list which shows 112.  Duplicate? Well, OK. I was under the impression that the Topbar was a recent thing, Status Completed and the counts are the other way around on the dupe, but...


Allow low-reputation users to delete comments that were posted on their behalf

I flagged  on Ask Ubuntu as a duplicate. A comment "Does this answer your question...." was auto-generated. For trying things out, I retracted my flag. Now, I can't delete that comment. Since I'm a low reputation points user, I can't edit my comment as well. Screenshot for reference:  I'm aware of , but that's a bug report that was marked as "by design". The explanation for having it designed that way is because users without privileges supposedly wouldn't be able to restore/repost such automatic comments if they deleted them, and that in the admin's opinion, new users usually aren't aware that they can retract flags. However, this is a feature request to change the design to allow low-reputation users to delete comments created on their behalf. There are also other cases where low-rep users end up with comments posted on their behalf, such as if they trigger the "trivial answer converted to comment" script or if a moderator converts one of their answers into a comment; it doesn't make sense to disallow deletion in those cases, and in the first case, they can repost the comment. Also, just because most users are unaware of the flag retract functionality doesn't mean we should shut it out for users who are aware. This has come up in another interesting way: a new user  an answer that triggered the trivial answer comment conversion feature. For some reason, they didn't see the redirect and notification from the feature (maybe it didn't load for them for one reason or another), and so they thought that their answer went into the void somehow, and tried reposting it two more times, resulting in three duplicate comments which they only noticed later. They were unable to delete the duplicate comments themselves, and couldn't flag the comments since they didn't have 15 rep, which delayed the comment cleanup.


How to change the default volume name in the /media path?

When I mount the logical volume through Unity dash or the File Manager it creates the mount point at /media/$USER/557808d2-b3a5-4bf2-b84b-93a3b42ce36a.  I want to change the volume label from 557808d2-b3a5-4bf2-b84b-93a3b42ce36a to some simple string like 'data' and keep it as it is permanently, so that it wont change next time when I mount it.  How do I do that?


How to save an arrayList of object to sqlite database

I have an ArrayList of testobject And I want to save it in sqlite database.      class testobject {       public static String x="";       public staticint y=0;       public static boolean z=false;  }   after some search I found  And I use it.       ArrayList<testobject> items=new ArrayList<testobject()>;  items.add(new testobject()); //To insert,  JSONObject json = new JSONObject(); json.put("uniqueArrays", new JSONArray(items)); String arrayList = json.toString(); // Insert the string into db.  //To Read, Read the string from db as String,  JSONObject json = new JSONObject(stringreadfromsqlite); ArrayList items = json.optJSONArray("uniqueArrays"); Log.d("","itemssize="+items.size);   but the problem is when I want to read my ArrayList from database, it gives this error message for this line "Log.d("","itemssize="+items.size);":    java.long.NullPointException       actually inested of this line "JSONObject json = new JSONObject(stringreadfromsqlite);" I use "JSONObject json = new JSONObject();" is it myproblem for that? whats wrong? as @satur9nine said its dosn't possible to convert my ArrayList to json. so how can i save my arraylist?


I have attempted to define $s_n=\sum_{i=1}^n a_i=a_1+\cdots+a_n$ in a valid manner, but I'm not sure if my extraction of $(s_i\mid 1\leq i\leq n)$ from $(p_i\mid i\in\mathbb N)$ contains any error. Please help me check that part!     Suppose that $(a_1,\cdots,a_n)$ is a finite sequence in $\mathbb N$. Then there exists a sequence $(s_1,\cdots,s_n)$ such that $s_1=a_1$ and $s_{i+1}=s_i+a_{i+1}$ for all $1\leq i<n$.   My attempt:  We define mapping $f$ as follows: $f: \mathbb N\times\mathbb N\to\mathbb N\times\mathbb N: (i,a)\mapsto\begin{cases} (i+1,a+a_{i+1})&\text{if }i<n\\ (i+1,a)&\text{if }i\geq n \end{cases}$  By recursion theorem, there is a unique sequence $(p_i\mid i\in\mathbb N)$ such that $p_0=(1,a_1)$ and $p_{i+1}=f(p_i)$. Let $\pi:\mathbb N\times\mathbb N\to\mathbb N$ be the projection to the second co-ordinate i.e. $\pi(i,a)=a$. Let $s_i=\pi(p_i)$ for all $1\leq i\leq n$, then $(s_i\mid 1\leq i\leq n)$ is the required sequence. It's clear from the definition of $s_i$ that $s_{i+1}=s_i+a_{i+1}$ for all $1\leq i<n$.


How to prove Newton's second law with quantum mechanics?

Newton's second law claims that $F=ma$. In terms of quantum mechanics, the equality can be written as $ \frac{d\langle p \rangle}{dt} = -\langle \nabla V(x) \rangle$. How can I prove this with non-relativistic Schrodinger Equation?  I've calculated the expectation of $p=mv$, and tried to take the derivative under the integral. And there I'm stuck.


How can I remove all files from current directory using terminal?

I use Ubuntu 14.04 LTS. I tried rm 'ls', rm rf but they did not work.


Existence of real roots of a quartic polynomial

Question  What is the minimum possible value of $a^{2}+b^{2}$ so that the polynomial $x^{4}+ax^{3}+bx^{2}+ax+1=0$ has at least 1 root?  Attempt  I divided by $x^{2}$ and got $$x^{2}+\frac{1}{x^{2}}+2+a\left(x+\frac{1}{x}\right)+b-2=0$$ by letting $$x+\frac{1}{x}=X$$ the equation becomes: $$X^{2}+aX+(b-2)=0$$ $$\therefore X=\frac{-a\pm \sqrt{a^{2}-4b+8}}{2}$$ but I am not sure how to continue. If the polynomial has 1 root doesn't that is should be a double root? Are we counting multiplicity or not?


I am searching for terms to replace “a grieving mother,” or “a childless mother.”  Is one also considered a grieving mother if she has no other children, in other words, her only child died?  This is from a story in which a mother, who lost a child saves a stranded girl, which reminds her of her daughter whose death the mother caused. However, the mother is unaware the girl is on the run from her father whose space fleet is on its way toward our solar system.


Show that $(C^1([a,b]), d_{\infty})$ is not complete

Let $a,b\in\mathbb{R}$ and $C^1([a,b])$ the space of the function that are continuously differentiable on the interval $[a,b]$. For $f,g\in C^1([a,b])$, let $$ d_{\infty}(f,g):=\lVert f-g\rVert_{\infty}:=\sup_{x\in [a,b]}\lvert f(x)-g(x)\rvert. $$          Show that $C^1([a,b]),d_{\infty})$ is not complete.      My idea is to use  $$ C^1([a,b])\subset C([a,b]),  $$ i.e. to find a sequence $(f_n)$ in $C^1([a,b])$ that converges to some $f\in C([a,b])$ with respect to the supremums norm $\lVert\cdot\rVert_{\infty}$ but which is not continously differentiable.   Then, $(f_n)$ should be a Cauchy sequence in $C^1([a,b])$ that does not converge in $C^1([a,b])$ (otherwise $f$ would be continously differentiable).  Now, I do have to find such a sequence... and did not have an idea yet.  EDIT  Maybe on $[-1,1]$ consider $$ f_n(x)=\sqrt{x^2+\frac{1}{n}},~~f(x)=\sqrt{x^2}. $$  $f(x)$ is not differentiable in $x=0$, hence not continuously differentiable on $[-1,1]$. The functions $f_n$ are continously differentiable on $[-1,1]$ and uniformly converge to $f$.


Should your PhD students call you by your first name?

I've read at least one career advice essay that calls out asking your PhD students to call you by your first name as unprofessional.  My coworkers and I always called our PhD advisor by his first name, and a graduate student calling any professor by their last name, much less their own advisor, strikes my sensibilities as quaint and old-fashioned (undergraduates are a different story, of course).  What is the standard practice for this?


how to know if cpu is running in 64 bit in linux?

I'm looking for a way to know if the cpu of my linux system is running in 64 bit mode. I've got to programm it for the university. My idea was to create something like an function that provides me that information. I'm not sure how should I start. Can somebody give me an idea?. My university give me a code, but I'm not able to check the length of the parameter that the main is sending to the funktion is64bit. My code is this:  int main() {      uint32_t msr = assembleMSR( 0, 0, 0, 0 );      printf("assembled MSR is %#x, should be 0\n", msr);     printf("is64BitMode(&msr) should be 0, is %d\n", is64BitMode(&msr));     printf("is64BitMode(&msr) should my EXAMPLE, is %d\n", is64BitMode(&msr2));      enableInts( &msr);      printf("MSR with ints enabled is %#x, should be 0x8000\n", msr);      return 0; }  int is64BitMode ( uint32_t *MSR ) {      int longi=sizeof(MSR);        printf("longi de size of%d\n", longi);     printf("%d\n", __WORDSIZE);// with this sentence i know that my cpu is running on 64 bits.       (void) MSR;     return 0;     /* TODO */ }


JavaScript why option 1 doesn't work and option 2 does

I ran across these two examples. Example 1 is not valid JavaScript - it throws an error. The second example is valid and works fine. Is there any chance someone can explain why 1 throws an error?  Example 1:  var   laugh ;  laugh();  laugh = function () {   console.log( "Hahaha!!!" ); };   Example 2:  laugh();  function laugh() {   console.log( "Hahaha!!!" ); }


Proving energy conservation for wave equation

Hi guys I have a midterm tommorow and I was doing this practice problem that I need help on.  So any hints or solutions would be appreciated. Thank you for your time  Problem  The head of timpani is constituted by some kind of elastic membrane which is stretched over a circular bowl; in a mathematical language, we are studying the displacement $u$ of the membrane as a function $u(x, y, t)$ deﬁned in $D = \{(x,y,t) \ |\ x^2 + y^2 \leq R, \ -\infty < t < \infty\}$, where $R$ is the radius of the bowl. The function u satisﬁes the two-dimensional Wave Equation  $u_{tt} = c^2(u_{xx} + u_{yy})$  with Dirichlet boundary conditions $u = 0$ on the boundary. Prove conservation of energy E(t), which is deﬁned as  $E(t) = \frac{1}{2} \iint\limits_D u_{t}^2 + c^2 (u_{x}^2 + u_{y}^2) dxdy$  [Hint: Proceed as we did for the one-dimensional case and use the divergence theorem to “integrate by parts” ] which I don't understand  Assume now that we take into account friction between air and the membrane; the displacement of the membrane now satisﬁes the damped Wave Equation, which reads:  $u_{tt} - c^2 (u_{xx} + u_{yy}) = -vu_{t}$  with the same boundary conditions. Show that, in this case, energy is always a strictly decreasing function except if $u(x, y, t) = 0$, for which it is constant equal to $0$. [Hint: What condition must $u_t$ satisfy in order for E to be non-decreasing? What PDE will u satisfy? Conclude using the maximum principle.  My attempt:  So first I found the derivative of E(t) and if the derivative of E(t) = 0 then I know the energy is conserved and I used integral by parts in 3 dimension to solve that   to get $\iint 2u_{t}u_{tt} = 0$ because it is decreasing. Since the derivative is 0 E is constant over time  therefore the energy is concerved.  But I do not understand the last part please any help or hints would be greatly appreciated.  Thank you


Windows Server 2008 compromised, how to restore?

Server seems like modified a lot. I cannot start/run/do many tasks like Task Manager, Server Backup, commandline password change, etc.  User names, full names don't match with their descriptions. Now Administrator may not be the administrator.  I cannot enable/disable accounts.  Server is being used as bruteforce attacker: DuBrute was running.  I tried to reboot, SAM init error occured & BSOD appeared. I could recover SAM file from older copy.  Now I cannot do many things. It looks like the server has been hacked a week ago - file creation dates say-  I found a few registry files like this one:   Can I clear that mess or I have to restore from backup?


How is faster than light travel analogous to time travel?

According to this video, faster than light travel is analogous to time travel. Does this mean that if I could instantly teleport 1 light year away, and then sent a laser pulse to my friend, my friend would interpret the event as happening in the past?  Would it take him a year to see the pulse? Or would he see it immediately and interpret that the event occurred 1 year ago? The video I mentioned seems to suggest that my friend would interpret the event as happening in the past, I wanted to confirm.  What do they mean when they say that faster than light travel analogous to time travel?


How can I make sure the picture I inserted in latex to be where i want it to be?

I'm writing a paper on Overleaf and I inserted a picture to explain a definition. But it somehow doesn't show on the page where I want it to be. It always shows on the last page of my paper. Please help.   \begin{figure}[h!] \centering \includegraphics[width=0.5\textwidth]{convex_hull.jpg} \caption{Convex hull in $\mathbb{R}^2$} \label{fig:Convex Hull} \end{figure}


What is a good mirror lens for my Nikon D5200? I love taking wildlife pictures and need a better telephoto lens. I am using a Nikkor 55-300 AF and it works well, but I need about twice that power. I take a lot of late afternoon pictures and need something that will allow me to take them in low light. Will a mirror lens work well in low light? Camera will use both lens, with or without autofocus.


Bio-augmented investigator saved by alien ring when he almost starves due to the energy demands of his body

looking for a sci-fi book I read most likely in the 90’s.  Probably not published before the 70’s, certainly not newer than 2000. Set in the future. Main character was some sort of private investigator, or law.  Possibly looking for a missing woman or importance? Was physically biomechanically modified/enhanced. Bio metallic muscle fibers, futuristic Kevlar (cut and bullet/projectile resistant skin, but not resistant to lasers), eyes were “shined” (something like the Riddick character from Pitch Black movie/Riddick series). Eyes sensitive to UV/IR light, protectors mounted under skin in cheek bones. Retractable silver biomechanic sharp long teeth, claws (both hands and feet). Length of teeth when enhanced hinders his talking. When his “enhanced” mode is triggered, Adrenalin and chemicals flood his body and metabolism races. Massive energy/calorie demands. One part of the story I remember is he escapes from some sort of captivity (possibly on a space ship) using his abilities (strength claws, etc.). Uses lots of energy, nothing to eat, passes out due to low calories, has some sort of alien artifact ring on his finger at the time. Unknown to him it “heals” him of his injuries and helps him not starve by drawing in the energy from the grass in the clearing in the woods where he passes out in. Wakes up to large brown dead grass circle around him. I think this is all near the beginning of the novel. Wish I had more, thx for the help!


What is the need for "over" in the following sentences?

They sent over a gift, or     They sent a gift.        Come over to our house, or     Come to our house.   Is it not possible to make the meaning clear without using over in the sentence?


convert txt to xml then style with xslt with c#

I'm very new c# and xml  I'm trying to convert a txt file to XML, then with a button apply an XSLT to the XML with C# (and display it in the program)  I have managed to convert the txt file to XML (although it only takes 1 lot of data), but cannot figure out how to apply the XSLT to the XML.   Is there some way to insert the stylesheet link into the XML () or is this what "XSLcompiledTransform" is meant to do ?   Below is the c# that I have been testing -      private void button1_Click(object sender, EventArgs e)     {         string filePath = "authors.xml";          dataSet1.ReadXml(filePath);          dataGridView1.DataSource = dataSet1;         dataGridView1.DataMember = "authors";     }      private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)     {      }      private void button2_Click(object sender, EventArgs e)     {         String[] data = File.ReadAllLines("TextFile.txt");          XElement authors =             new XElement("authors",              new XElement("title", data[0]),              new XElement("Released", data[1]),              new XElement("Price", data[2]));            authors.Save("authors.Xml");     }      private void button3_Click(object sender, EventArgs e)     {         try         {              // Generating a temporary HTML file             string outfile = Path.GetTempFileName().Replace(".tmp", ".html");              // Creating the XslCompiledTransform object             XslCompiledTransform transform = new XslCompiledTransform();              // Loading the stylesheet file from the textbox             transform.Load("authors.xslt");              // Transforming the XML file and storing output in HTML file             transform.Transform("authors.xml", outfile);         }         catch (Exception ex)         {             MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);         }     }      private void button4_Click(object sender, EventArgs e)     {         // Create a reader that contains the style sheet.         XmlReader reader = XmlReader.Create("authors.xslt");         reader.ReadToDescendant("xsl:stylesheet");          // Load the style sheet.         XslCompiledTransform xslt = new XslCompiledTransform();         xslt.Load(reader);      }      private void button5_Click(object sender, EventArgs e)     {         string filePath = "authors.xml";          string[] lines = File.ReadAllLines(filePath);          textBox1.Text = System.IO.File.ReadAllText(filePath);     } } }


Black Window Borders and Black terminal in ubuntu 16.04

help me, I have installed Kali Linux tools and classic menu indicator in Ubuntu 16.04 and after restart all of my menus are lost, terminal is completely black and windows borders are also black, How to restore this


killing a thread in python before its done

I did a little search and found out there is no way to kill a thread in python, but how would one solve a problem like me ?  I have a function that sets X to True for one hour and after that it sets it back to False.  sometimes the program finishes less than the needed hour, but the thread is still running and make garbage in memory.      def enableX():         self.x=True         sleep(3600)         self.x=False     def function1():         self.enableXThread=Thread(target=self.enableX)          self.enableXThread.start()   any idea ? how I can kill enbableXThread when the program terminates no matter if the thread is done or not ?


What do I do if I don't have a META-INF folder or minecraft.jar?

I have looked all over the Internet for solutions but I have got nothing.  I want to install the minepainter mod but I need a META-INF folder and a minecraft.jar.


Reason for strange "canyons" of dust on the cooling platform

I took apart my cooling platform Something like this :  And I found something like this inside :       I wonder why around the hollows are the "canyon like" structures.  PS: I also drop this platform on the floor, maybe this could be a reason ?   EDIT :  Everybody seems (except Brandon Enright answer) to ignore the word "dust" in this question. Those structures are not in the plastic itself. It is dust ON the plastic.  Proof :     Completely wiped out with my finger :


pdflatex with TEXshop on macOS does not the same as Terminal "pdflatex filename"

My TEXshop gives me a error because of the known problem "can not determine size of graphic in filename.jpg" (no bounding box)   So i tried several atempts to solve it.   One was this  by setting the natwidth and so on.   Because nothing helped and out of curiosity i opened macOS terminal an executed this line: pdflatex "filename" and that runns through without a error.  So i tried to understand the settings in TEXshop by defining the path (pdf)Tex to what i get when searching for the path in terminal with which pdflatex as i read here:  in my case it spits out:   /Library/TeX/texbin/pdflatex in terminal.  But copy pasteing this line does not work as described in the post.  When i click "setzen" in TEXshop with the dropdown set to LaTeX.   Althrough the path is the same until the part of /pdflatex so i assumed that pdflatex is the file itself and not the path. Especially because beneth of that path i have a line to set the Tex and Latex Variables and there i have this in the Latex line:   pdflatex --file-line-error --synctex=1  So i have no idea how to get the same result as if i use pdflatex in Terminal with TEXshop..   Does anybody have a clue?  And how is the line TEX+divips+distiller related to the result?


"...at the top or bottom" vs "...at the top or the bottom"

I'm a bit confused about the usage of "the" in a list. Even after , it's not clear to me which of the following is grammatically correct.  "Is the [object] at the top or bottom?"  "Is the [object] at the top or the bottom?"  Or should "at" be distributed as well? (In which case, it seems clear that "the" should appear twice.)  "Is the [object] at the top or at the bottom?"


Automator: `command not found` (Python script for command line)

I am trying to create an Automator application, which allows me to convert Python script files .py files to Jupyter Notebook files .ipynb using Python script for command line . However, the following in the textbox of Run Shell Scrip of Automator generates an error command not found.  for f in "$@" do  jupytext --to notebook "$f" done    This is despite the fact that no such error occurs if I run the following in Terminal on Mac.  jupytext --to notebook <filename>.py   Does anyone has any ideas about what is/are missing?


ACCIDENT - just totally lost the permission to my server

I was trying to change a folder owner user from root to jenkins, and accidently did chown on ALL of the filesystem recursively. now I ended up without any permission.  root@vps412690:/# ls -bash: /bin/ls: Permission denied   I can't even use the command chmod, no permission to use it.  I can't even log in to my server.   /bin/bash: Permission denied   Any idea?


For some reason I need to print a big array of data (2D) retrieved from the DB.  There is so many column that the array go over the screen width.  So I wonder if there is any tricks to show this kind of big HTML array in a good way.  Thanks for you help and advices!


I'm using a contrived example here, but am curious about the meaning of the below quotation:     "Users not adding their phone numbers and accepting the TOS will be rejected"   Is there ambiguity in that language as to which users would be rejected?  Possible scenarios:   User adding the phone number and accepting the TOS User adding their phone number but not accepting the TOS User not adding their phone number but accepting the TOS User not adding their phone number and not accepting the TOS   I am most interested in #2 above.


What is the connection between special and general relativity?

What is the connection between  and ? As I understand general relativity does not need the assumption on speed of light constant. It is about the relation between mass and spacetime and gravity. Can general relativity be valid without special relativity?


On what criteria should I evaluate domain registrars?

Though I've been a web developer for a fair amount of time, I am going for the first time to buy a few domain names.  I have looked into the domains I'm going to buy and know that they're available, and I've been looking into which sellers to use.  After doing a lot of research, the main ones I'm considering are 1&1, Namecheap, and Gandi.  The problem is, when continuing to research, I'm not really sure what makes one domain seller distinct from another.  I don't need much in the way of services--definitely not hosting, since I plan to use Heroku for that.  I mainly only need the domain itself and DNS management, as well as possibly SSL certificates and WHOIS protection.  Question:  What makes one domain seller different from another?  How can I go about evaluating which one is the best for me?  Note:  This question is not which domain seller is the best, but rather, what criteria can I use to evaluate them and rank one over another.  I'm trying to find out what makes one domain seller different from another, since they all seem to be pretty similar to me right now.


"sudo su" does not pass the environment variables to the new shell?

su manual       The current environment is passed to the new shell.   Obviously you cant use su in Ubuntu as in su but it has to be always sudo susince the root user is disabled in Ubuntu but it seems this changes the abilities of the su command.  Any explanation?


I'd love to see if there are trends over time, patterns of improving behaviour after being flagged, consistent reoffenders, most misused types of flag, etc.  I understand the who-said-what-about-who aspect would most likely cause this to be denied, but even anonymised data would be interesting to dig through.


Centering vs. Standarizing which one is better?

Two approaches have been proposed in order to overcome the issue of multicollinearity if we have interaction variables which are mean centering and standardizing (z scores). You can check No.2 in this article for more details      >   which better do you think and why?    thank you in advance


I know that you can only have 4 primary partitions on a hard drive. But if you're using less than 4, is there a benefit/penalty for using logical partitions?


Eliminate red polygons and join adjacent ones

How I can eliminate the red polygons and join them; the adjacent ones biggest one.


How to finish proving this sequence converges?

Here's what I'm tasked with showing: Let $(a_n)$ be a convergent sequence with $a_n\rightarrow a$ as $n\rightarrow\infty$. By the Algebraic Limit Theorem, we know that $(a_n^2)\rightarrow a^2$. Now prove this using the definition of convergence. In doing so, I have the following: Let $\epsilon>0$ be given. Choose some $N\in\mathbb{N}$ so that for all $n\geq N$, $|a_n^2-a^2|<\epsilon$. By algebra, $|a_n^2-a^2|=|a_n-a||a_n+a|$. Consider $|a_n+a|$. By the triangle inequality, $|a_n+a|\leq|a_n|+|a|$, thus $|a_n|$ is bounded by some $M\in\mathbb{N}$. I know I'm trying to choose $M$ so that $|a_n-a|<\epsilon+M+|a|$. Where should I take it from here?


If $\gcd(a,m) = 1$, the least residues (mod $m$) of $ar_1, ar_2, \dots, ar_{\phi(m)}$ are a permutation of the positive integers relatively prime to m

For context, this lemma is later used to prove that $1 \equiv a^{\phi(m)}$ (mod $m$). However, I don't understand why $r_j$ is the least residue of $ar_i$ for some $i$ and $j$ in $[1, \phi(m)]$. The proof seems to imply that this follows from the fact that $ar_i$ is relatively prime to $m$, but I don't understand the reasoning. Simple explanations if possible, my background is high school math and a bit of self study. I must say, though. The theorems in number theory are quite beautiful.


Inheritance fail to include meta charset

i try to have the meta charset set to UTF-8. It do work for the base.html.twig file :  <meta charset="UTF-8"> <title>{% block title %}Welcome!{% endblock %}</title> {% block stylesheets %} ... <link rel="stylesheet" href="/css/app.css"> {% endblock %}    As you can see my navbar wich is located into this file is correctly reading special char with accent :  But it's not working when i'm on a file that extend the base.html.twig :  Here it is the code of the file that extend base.html.twig {% extends "base.html.twig" %}  {% block body %}

         <form>

                          Accéder à tous nos produits

                          Gestion du stock

         </form>

 {% endblock %}  As you can see the character é and à are displayed with a <?> If i add the meta charset into the second file : <meta charset="UTF-8">  It work, but i don't want to add this to all my file ! I'm suppose to extends base.html.twig so... Could you please explain me why it seams to fail ?


Is there any detailed QFT-like description, at least tentatively, of Hawking radiation intensity?

I wonder whether Hawking's derivation is purely heuristic, and in analogy with the Casimir effect case, whether a QFT based derivation of Hawking radiation intensity should depend on the coupling constants associated to the different interactions.   In particular, shouldn't be the particle-antiparticle fluctuation, often shown in Hawking radiation schemes, accompanied by some boson appearing as in usual Feynman diagrams?


What is the most effective and recommended way to install Apache-PHP-MySQL in Ubuntu?

Hi so far the servers I did for my studies were with Node.js. I am starting a new job and I need to have installed an Apache-PHP-MySQL installation, it can be: XAMPP, MAMP or WAMP. What would be the most effective option for my Ubuntu 18.04? I've seen some tutorial in google but it was complicated and a bit messed up, maybe I did not find the correct tutorial, but that's why I decided to go here. With effective I mean, the best way or the most recommended way and the best performance. The utility is to create some application with PHP and MySQL Thank you.


What is preventing DROP TABLE from removing a Postgres table?

I have a postgres database named aarons_db in ubuntu linux. I'm trying to delete a table called pnt within aarons_db. To do this, I am using the following command:  DROP TABLE pnt   Unfortunately, this does not appear to drop the table. My best guess is that there is some sort of admin privileges that I have not configured properly. The following shows the database, and commands used to try and drop the table.  What is preventing me from dropping the pnt table?  There is a similar question , although the user is running into a cache error, which is not happening in my case.


What is the difference between chmod u+x and just chmod +x?  I have seen a ton of tutorials that say to use u+x to make scripts executable.  However, omitting the u doesn't seem to have any effect.


How to calculate a resistor needed for an LED

I am building a backlit button box for my PC and the controller has 2x 5 V power supplies on it from the USB. I am using 7 of these LEDs and the power specs are at the botton of this post. The controller website doesn't specify the amp output of the controller so I simply don't know.   For blue, white it is 3V, 20mA, forward voltage is 3-3.2V  Edit:


I recently upgraded from QGIS 3.2 to 3.4 using the standalone installer (Windows 64 bit), and uninstalling 3.2 beforehand.  When I open 3.4 it goes the background behind all my other open programs and clicking its icon on the taskbar does nothing, nor does Alt-Tab.  To use QGIS I have to minimize all my other open programs.    Is this a Windows issue, a QGIS issue, or something else entirely?


Disable Windows UAC when installing software

Is it possible to disable UAC when installing software but only for a custom set of users or a group?


Fractals, when viewed as functions, are everywhere continuous and nowhere differentiable. Can this also be used as a definition for fractals?  i.e. Are all fractals everywhere continuous and nowhere differentiable? And also: Are all functions that are everywhere continuous and nowhere differentiable fractals?


How can I get the pid of a subshell?  For example:  $ echo $$ 16808   This doesn't work, because the original shell expands $$:  $ ( echo $$ ) 16808   Why does single quoting not work? After the original shell removes the single quote, does the subshell not expand $$ in itself?  $ ( echo '$$' ) $$   Why does eval not work either? Is eval run by the subshell?  Why does it give me the original shell's PID?  $ ( eval echo '$$' ) 16808   Thanks.


Planck's law - spectral radiance per wavelength, wikipedia article

I am looking at the . Is the second formula correct? $$ B_\lambda (\lambda, T) = \frac{2hc^2}{\lambda^5}\frac{1}{e^\frac{hc}{\lambda k_B T} -1} $$  If $f = \frac{c}{\lambda}$, should it not look like this? $$ B_\lambda (\lambda, T) = \frac{2hc}{\lambda^3}\frac{1}{e^\frac{hc}{\lambda k_B T} -1} $$


How do I prove that the expectation of sample variance is equal to the population variance for any distribution?

In other words, is $S^2$ unbiased for $\sigma^2$ for any distribution? I know how to prove this for the normal distribution, but is it possible for me to prove this generally? Thank you


Is is possible to conditionally switch languages within one document?

I'm quite new to biblatex. I'm typesetting a collection that has papers both in English and Russian, and I'm making a single bibliography at the end of the book.  For the bibliography to look pretty, the entries should be 'localized' individually. That is, I want an English book to come out as  Smith and Smith (eds.)   but a Russian one to come out as  Иванов и Иванов (ред.) [not "eds."!]   I have a very vague idea that it can be achieved with a conditional in some macro that'd check the language field of each given entry and select things accordingly. But I've no idea how to approach it --- just browsing biblatex.def lead me nowhere but here. I'm using lualatex for this, just in case.  Thank you for any ideas!


Bank account got shut down for fraud from my sugar daddy?

I recently met some sugar daddy and gave him my bank username and password for him to deposit money into my account. I had about 9.00$ in my account and he tried depositing 800$, then next day I tried logging into my account and it got shut down.  I called my bank and they told me it’s closed for fraud. Am I going to get in trouble for this or is there any way I can prove that that transaction was not from me?   They shut it down immediately so I doubt the scammer had tried spending the money. But is there any way they can prove that that wasn’t me (like my signature?) or see the location of where the transaction was taken place?


GIMP 2.8 doesn't allow to save usual image file formats (jpg, png) via Save dialog

I used to save images as usual image file formats (jpg, png) by pressing Ctrl+S or Ctrl+Shift+S (Save or Save As dialog). Now in version 2.8 GIMP doesn't allow it anymore: you can Save only as .xcf but to save as .jpg or .png you must Export.  Is there a way to get this old file saving functionality back?


DUPLICATES_DETECTED when creating a contact for the account

We have some accounts that start with "Business". And we already recorded their information in custom fields in the account object. Business first name, business last name, and email respectively. How can I build an automation to create a contact for that account? I followed steps in the picture. When I activate the process, the contact is created; however, I receive the email Error Occurred During Flow. DUPLICATES_DETECTED: You're creating a duplicate record.


We are currently using SVN as our version control, I was asked to evaluate git, I found it to be a great version control and would like to migrate one of our projects into it. I searched the internet for migration tools, and was hoping to pick this community brain as to which tool is better. the SVN check in history must be migrated as well, this is a must have feature.  Thanks in advance.


Stackoverflow has no "inbox" for users, yet in some circles (uncommon or new languages, specific topics) there are very few "experts" and some important questions get passed over as a result.  Is there any way to reach out to an "expert" (someone who has answered a question very well in a field related to the poster's question) without violating Stackoverflow rules like   1) Do not comment on one question asking a specific user to look at another question  2) Do not answer one question with a request for a specific user to look at another question?  Why has a messaging inbox not been implemented?


What username for Login to Console on a Digital Ocean Droplet running FreeBSD 12

As an alternative to making an ssh connection to your Droplet on , they offer a "Console" which is a  connection, akin to plugging a monitor and keyboard into your virtual server.  When opening such a Console window, I am prompted for a login and then password.   Having created my Droplet with a SSH key, I do not know what the login might be, nor what the password might be.  ➥ How does one login via the Console to a Droplet on DigitalOcean?  My Droplet is running FreeBSD 12, if that matters.  I have seen the documentation page, . That page does have a section Log In with the Console. But little explanation of the login name or password is given. It mentions:     At the login prompt, enter the user you want to log in as. This will typically be the root user or a user configured with sudo privileges.   But for my new FreeBSD droplet, root did not work as a login name.  If I use the freebsd user, I am stuck at the prompt for a password. There is no password established, so Catch-22.  login: freebsd Password:  Login incorrect login:   …and on it goes.


What is meant by negative direction of velocity?

What is negative velocity and negative direction of the velocity?


How do you search for backdoors from the previous IT person?

We all know it happens. A bitter old IT guy leaves a  into the system and network in order to have fun with the new guys and show the company how bad things are without him.  I've never personally experienced this. The most I've experienced is somebody who broke and stole stuff right before leaving. I'm sure this happens, though.  So, when taking over a network that can't quite be trusted, what steps should be taken to ensure everything is safe and secure?


Prove that if m is an integer and there is a rational number r/s so that (r/s)^2 = m, then there is an integer n so that n^2 = m.

I recognize that a rational number a/b means that b does not divide a and also that a and b are relatively prime. Does that mean rational numbers are always expressed in their simplest form? Or is my statement about coprime wrong? I have tried using Euclid's Algorithm and Bezout's Identity, since that is the section that the question comes from but I have not gotten it to work out. Please Help.


How much money should I save in order to generate $1000/month for the rest of my life?

How much money do I need to make in order to generate 1k/month for the rest of my life? Is that even possible? If yes, in what way? Edit: I am 30 years old.


Given a, b How many solutions exists for x, such that: $a \bmod{x}=b $

Given $a, b$. How many solutions exists for $x$, such that: $$a \bmod{x}=b $$  By example:  $a = 21$ and $b = 5$  $21 \bmod{8} = 21 \bmod{16} = 5$  Then $x$ has 2 solutions


I have got a problem with JavaScript. I want to add a drop down list control with a link as Value of it. After it will be choosen and clicked button it schould redirect me to chosen link. I tried this code from this Article:       <select name="list" id="list" accesskey="target">     <option value='none' selected>Choose a theme</option>     <option value="index.html">Theme 1</option>     <option value="theme2.html">Theme 2</option>     <option value="theme3.html">Theme 3</option> <select> <input type=button value="Go" onclick="goToNewPage()" />  <script type="text/javascript"> function goToNewPage() {     var url = document.getElementById('list').value;     if(url != 'none') {         window.location = url;     } }     but when I tried to add by the script, or by html on site, or by designer its erase me that sort of text:  <input type=button value="Go" onclick="goToNewPage()" />   It's live only:  <input type=button value="Go" />


$L^p$ Spaces, Young's Theorem, Convolutions, and Minkowski's Inequality

I need to show \begin{align} \|f*g\|_p \le \|f\|_p\|g\|_1 \end{align} By using the generalized Minkowski inequality instead of just Young's Theorem. I have spent a lot of time, but I keep hitting a dead end. Thanks a million in advance!


I already used Limit Login Attempts wordpress plugin. Are there other ways to prevent brute force attacks?  I'm worried because I saw a lot of locked out.


Why is there a color difference between cycles and Evee in grease pencil?

I imported an svg (man illustration) and a png(lamp) from inkscape in blender. And then I rendered it. This is rendered using cycles This is rendered using Evee  The colors in the cycles are accurate and just like inkscape but the colors in evee look washed out. My problem is not the overlapping faces in cycles , I knew that this is going to happen but the colors in the evee are desaturated and not accurate.


postgres: index to SELECT strings like '%foo%';

I have an expensive, periodic PostgreSQL 9.3 query of the form:  SELECT * from mytable where name NOT LIKE '%foo%';   foo is actually a constant here that never changes.  The query is expensive because it requires a table scan.  I expect that only a few rows will actually match the query, so I want to use a partial index to speed up the query.  CREATE INDEX foo_idx ON mytable ((name NOT LIKE '%foo%')) WHERE name NOT LIKE '%foo%';   However, when I do an EXPLAIN on my query, it still is using a sequential scan instead of relying on the new index.  What am I doing wrong?    I have tried several different expressions inside the parenthesized expression clause of the CREATE INDEX statement, but nothing helps:  CREATE INDEX foo_idx ON mytable (name) WHERE name NOT LIKE '%foo%'; CREATE INDEX foo_idx ON mytable ((name LIKE '%foo%')) WHERE name NOT LIKE '%foo%';   I have also tried removing the WHERE clause for the index, and that doesn't help either.


What are the subcategories of ordered sets / groups?

This is an exercise from Tom Leinster's Basic Category Theory. It asks:     1) What are the subcategories of an ordered set? Which are full?      2) What are the subcategories of a group? Which are full?   I'm self studying and I couldn't discuss this with someone, so I'm curious for what the solution is.  For the second one I think, if you have a one object group category, no subcategories are full, as they all consist of the group object with fewer morphisms. Also all of them are monoids, but only the ones that contain the inverse of every morphism remain groups, with less elements than the original.  Also a related question:      Is there a functor $Z:\mathbf{Grp}  \to \mathbf {Grp}$ so that $Z(G)$ is the center of the group $G$?   (I'm guessing there is one, and also that the center of $G$ is a full subcategory of $G$, and also an Abelian group.)


If I have flagged a post, show me a "flags" link in my profile

The Problem  Currently if I flag a post, I cannot check the status of the flag unless I have prior helpful flags. This means, for example, that a new user who wants to check the status of his first flag cannot do so while it is pending (active).  This feature request is based on my experience on MSO, where I wanted to check the status of my flag but could not get to the summary page without cheating (tweaking my SO link to work with MSO). It also stems from this question, where the OP indicates he had the same issue:   My Proposal  If I have flagged any post, then show me a "flags" link (red arrow in image below). If I have any helpful flags, then the number of helpful flags should be displayed (blue arrow). If I have not flagged anything, then neither should be displayed (as with current site functionality).


How can I change the language of the QGIS Interface?

I want the QGIS interface in English, in order to share information with the GIS community. Using another language, when chatting with the GIS community, makes things more difficult. When I installed QGIS, it automatically set the language to French. It's very frustrating not having the opportunity to select my preferred language.   I am using Windows XP in French, but I want QGIS in English.


How to solve and see resolution of $13^{53} \pmod 7$ using Fermat little Theorem? Using , I know it gives me 6 as an answer to this problem..., but why? How is the resolution? Thanks,


So I have been trying to use RemoteApp on Ubuntu 16.04 from my Windows PC, but I don't know how to open the .rdp file on Ubuntu. I have read to use FreeRDP, but haven't found instructions that explain how to do it. Could someone here shed a little bit of light on how I might do this?


I'm trying to increase my resistance to Death Claws. Right now the balance is at a point where the DCs don't quite kill any of my Dwellers, but are able to get them to probably 10% health. They make it through three rooms with the most heavily armed Dwellers I have and then the DCs die.  One way to make sure my Dwellers survive is to maximize their health. I know that in order to reach maximum health you want to . Another way to combat the DCs is to use powerful weapons, which I am collection through exploring as quickly as I can.  My main question is about various S.P.E.C.I.A.L. attributes and whether they have any effect during combat. The Perception training room is full of guns; does high Perception increase chance to hit? Does Strength act like Armour?  Obviously I would have every Dweller at full 10's across the board if I could. But since that takes way too long, what is actually going to help me during combat besides high health?


I have this theme:   And it doesn't show any tags when I'm scrolling through the page, only when I go into the post I want.  What should I do to fix it?


Find a formula for $\sum\limits_{k=1}^n \lfloor \sqrt{k} \rfloor$

I need to find a clear formula (without summation) for the following sum:  $$\sum\limits_{k=1}^n \lfloor \sqrt{k} \rfloor$$  Well, the first few elements look like this:  $1,1,1,2,2,2,2,2,3,3,3,...$  In general, we have $(2^2-1^2)$ $1$'s, $(3^2-2^2)$ $2$'s etc.  Still I have absolutely no idea how to generalize it for $n$ first terms...


Unable to install MySQL. Held broken packages

I tried installing MySQL using  sudo apt-get install mysql-server, and I get an error saying   Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  mysql-server : Depends: mysql-server-5.1 but it is not going to be installed E: Unable to correct problems, you have held broken packages.   When I type sudo apt-get install mysql-server-5.1, it says:   Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  mysql-server-5.1 : Depends: mysql-client-5.1 (>= 5.1.69-0ubuntu0.11.10.1) but it is not going to be installed                     Depends: libdbi-perl but it is not going to be installed E: Unable to correct problems, you have held broken packages."   And when I type mysql, it says,   ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)   I tried sudo apt-get remove --purge mysql-client-5.1 but it says that   mysql-client is not installed so it can't be uninstalled.   What should I do?


Allowing Postfix Relaying For Certain Hosts

I have Postfix setup in a test environment, segregated from our LAN, and relaying for hosts in the test environment. Originally, I had all outbound email funneling through procmail and into a single account on the postfix box (accessed via Dovecot by the devs). This allows the developers to test production code which sends email notifications without having the email actually reach it's intended recipient.   Now I need to actually allow for one host to relay to the actual world and not the "funnel" account. I still need to "lie" and accept email from any sender to anywhere (in the test environment of course) and funnel it into the funneluser account. I'm not quite sure what to even google for as this isn't a typical postfix setup. How can I add an exception for a single sending host, given the config below?  UPDATE The noted "duplicate question" does not, at this time, contain a working example for postfix 2.9.6-1~12.04.  postconf: warning: /etc/postfix/master.cf: unused parameter: smtpd_client_restriction=check /usr/sbin/postconf: warning: /etc/postfix/master.cf: unused parameter: smtpd_client_restriction=check   Neither am I certain it's actually a duplicate as the answer appears to route mail based on user@domain pair. I want to route based on the connected host IP address or DNS hostname. I have posted a question to the linked "duplicate" in an attempt to resolve the issue.  My main.conf looks like this:  myhostname           = cliff.blah.net alias_database       = hash:/etc/aliases mydestination        = regexp:/etc/postfix/virtual_domains virtual_alias_maps   = regexp:/etc/postfix/virtual mynetworks           = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 10.2.1.0/24 mailbox_command      = /usr/bin/procmail relay_domains        = .blah.net smtpd_recipient_restrictions = permit_mynetworks, permit_auth_destination, reject local_recipient_maps         =   virtual and virtual_domains are here:  # cat virtual /@/     funnelmail  # cat virtual_domains /.*/ MATCH   UPDATE2  I cannot get the example at the link above working. Maybe there is a difference in postfix versions or too many typos I don't know. I did get multipole instances running with same server on different ports but cannot post my solution here because someone closed the thread so good luck.


Do i require a transit visa to head through munich?

I am an Indian citizen. I have a British Residence permit for a year as I am studying in the UK. I plan to travel home during the Easter vacation and have booked tickets in Lufthansa. The itinerary requires me to travel through Munich and Frankfurt in the to and fro journey to and from Mumbai respectively. Do i need a airport transit visa at Germany?   My connecting flight is within 2 hours of landing in Munich as well as in Frankfurt on the return trip.


When atom absorb energy, how does the nucleon know?

Imagine a photon hits a hydrogen ion and is absorbed, how do the nucleon of the hydrogen knows and start to accelerate? Any difference between this and hydrogen ion in a electric field?


For the past few days I've had to restart my PC a couple times a day because I'm running out of memory. I have 32gb DDR3 1866mhz ram.  Here is a screenshot of the nonpaged driver memory usage snapshot with poolmon sorted by bytes.  Does anything look abnormal?


Sorting 2 dimensional variant array in VBA

I am new to VBA (I wish I could stick to Javascript) and I have a problem with sorting an array. I have this 2 dimensional array in keeping track of player scores like this  P1 P2 P3 P4 P5 P6 P7 P8 P9 23 12 34 11 21 56 32 35 27   And I would like to sort the array so the players are in order of scores from lowest to highest like this  P4 P2 P5 P1 P9 P7 P3 P8 P6 11 12 21 23 27 32 34 35 56   I haven't got a clue how to do this in VBA. I tried looking for a sort function, to no avail. Do I need to include some library or something?  Does anyone know how to tackle this problem if a library isn't available to do this?  Regards Crouz


Recently, I finished my phone job interview with the phrase "Thanks for having me". It was a reply to the other person's "Thank you for your time". So, does "thanks for having me" sound alright in this context?


I booted Ubuntu 17.04 live on my Fujitsu Amilo Li3710 laptop and I was surprised to see that I couldn't connect to wifi. I tried to connect to my router and my phone as a hotspot but neither work.  I can see wifi networks and when I try to connect it asks for the password, seemingly tries to connect but then it doesn't connect. It gives no visible feedback after failed trials.  Disabling mac filtering and removing the wifi password makes no difference. I tried Ubuntu, Ubuntu Gnome, Ubuintu MATE and Lubuntu, it's the same everywhere.  I have Ubuntu 16.10 and Windows 10 installed on the laptop, they have no problem connecting.  Is there anything I can do? Or is support for my hardware over in the kernel?


How to apply more than two style to one control in wpf?

<Window.Resources> <Style x:Key="Style_1" TargetType="{x:Type Button}">     <Setter Property="Background" Value="Green"/> </Style> <Style x:Key="Style_2" TargetType="{x:Type Button}">     <Setter Property="Foreground" Value="White"/> </Style> <Style x:Key="Style_3" TargetType="{x:Type Button}">     <Setter Property="BorderBrush" Value="Red"/> </Style>     <Grid x:Name="LayoutRoot">     <Button Content="MultyStyles" Margin="160,136,248,222"/>     Now i want to apply Above Three Style into one control.I can apply two style to one Controle like below.  <Window.Resources> <Style x:Key="Style_1" TargetType="{x:Type Button}">     <Setter Property="Background" Value="Green"/> </Style> <Style x:Key="Style_2" TargetType="{x:Type Button}" BasedOn="{StaticResource Style_1}">     <Setter Property="Foreground" Value="White"/> </Style> <Style x:Key="Style_3" TargetType="{x:Type Button}">     <Setter Property="BorderBrush" Value="Red"/> </Style>     <Grid x:Name="LayoutRoot">     <Button Content="MultyStyles" Margin="160,136,248,222" Style="{StaticResource Style_2}"/> </Grid>   But i don't know to apply more than two style to one control. what should i do for that ?


How can i change formatting of the table of contents to avoid section numbering and section title to overlap?  Document:  \documentclass[10pt,oneside,notitlepage]{book}  % Use Heuristica Font \usepackage{heuristica} \usepackage[heuristica,vvarbb,bigdelims]{newtxmath} \renewcommand*\oldstylenums[1]{\textosf{#1}}   \begin{document}  \tableofcontents  \part{Part one}  \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh}   \section{Chapter Hi} \section{Chapter Hi} \section{Chapter Hi} \section{Chapter Hi} \section{Chapter Hi} \section{Chapter Hi} \section{Chapter Hi} \section{Chapter Hi} \section{Chapter Hi} \section{Chapter Hi}  \end{document}   Example output:


Is it possible to access the user ID of all types of votes in the stackexchange data dumps ?

I'm working on a project which aims at analyzing the social relations between users on stackexchange. Hence, I'm pretty interested in the user IDs of votes in each post.  Although the votes can be accessed in the data dumps released by stackexchange, User IDs are only visible for votes whose type are 'favorite'. I was wondering if it is possible to access the user ID of all types of votes. My research is for academy only and the user IDs will be hashed for privacy concern.


I have the following code. It simply makes the python script formatted, with the colors using .   hljs.highlightAll();   function clicked(){       if(document.getElementById("code").style.display === "block"){           document.getElementById("code").style.display = "none"         }else{           document.getElementById("code").style.display = "block"        }   } html{     text-align: center; }  #code{     display: none;     text-align: left;     width: 150px; /* removing this line will center */ } <!DOCTYPE html>       <link       rel="stylesheet"       href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@10.7.2/build/styles/atom-one-dark.min.css"     />              <button onclick="clicked()">Show Code</button>
print('hello world')
      After clicking the button, it will not center the code. But if you uncomment the line which changes the width in the CSS file, it centers. Why does it not center when I change the width?


How do I rescue SQL Agent jobs from a set of detached master, model, mdb files?

I had a MSSQL (MSSQL 2008 R2) cluster that failed in a way that I couldn't bring it back up (long story, servers ended up in BSOD loops, I'm blaming Broadcom and myself).   I've SQL backups, and even better, I've got the detached MDF and LDF files as they were on the SAN before everything went wrong. I've now got the task of restoring these back to a newly built server.   The databases themselves, logins and SSIS packages aren't a problem, as I've got all these. The thing that's bothering me is the SQL Agent jobs that were defined on the previous server. I'm dimly aware that these are stored in MSDB somewhere, but what steps should I go through to retreive these from the MDF/LDF files I've already got and load them on the new server?  I'm not going to be restoring the modal, msdb, master and temp databases on the new server, so should I be looking to attach the old files under different names and pull job definitions out of them, or is there some other (better) way?


Intermediate Value Theorem, an application problem

The question is: if $$\frac{a_0}{1}+\frac{a_1}{2}+\dots+\frac{a_n}{n+1}=0$$ then, $a_0+a_1x+\dots+a_nx^n=0$ for some $x$ in the interval $[0,1]$.  My approach is to let $f(x)=a_0+a_1x+\dots+a_nx^n$ and the find $x_0$ and $x_1$ such that, for example, $f(x_0)\leq0$ and $f(x_1)\geq0$ and then use IVT to make the conclusion.  However, I do not know how to use the given condition, especially I am not sure about if $n$ is odd or even and if the leading coefficient, $a_n$ is positive or negative.  Any help will be appreciated. Thanks so much.


What are the addEventListener parameters?

How does this function() in addEventListener work, with regards to the arguments I can pass in? someObj.addEventListener("click", function(someVar) { });  What is someVar, and is there a way for me to pass in a variable I want? I can't just define it above because I am calling addEventListener inside of a forEach function..


Remove "Set as desktop background" from Windows context menu

When I right click an image file in Windows, one of the context menu options is "Set as desktop background". I know some entries can be , so I'd like to know if it's possible to remove the "Set as background" option.  Note that while  can be found under HKEY_CLASSES_ROOT\, the "set as background" option seems to be located somewhere else.


Monotone Union of subgroups being subgroup

I saw this exercise in a book:  Suppose $G$ is a group. Suppose $T$ is an index set and for each $t \in T$, $H_t$ is a subgroup of $G$. Furthermore, if $\{H_t\}$ is a monotonic collection, show that $\bigcup_{t \in T} H_t$ is a subgroup of $G$.  My question is if $T$ is not $\mathbb N$, how to define "monotonic"?  If it is defined by what Jyrki Lahtonen suggested:  For arbitrary $k$, $l \in T$, either $H_k \subseteq H_l$ or $H_l \subseteq H_k$ (or both).   Then here is my proof:  Suppose $a$, $b \in \bigcup_{t \in T}H_t$, then $a \in H_k$ for some $k$ and $b \in H_l$ for some $l$. So either $a$, $b \in H_k$ or $a$, $b \in H_l$ (or both). Then either $a \cdot b \in H_k$ or $a \cdot b \in H_l$ (or both). Hence $a \cdot b \in \bigcup_{t \in T}H_t$. Therefore $\bigcup_{t \in T}H_t$ is a subgroup.  My question is:   Is the above proof correct? I think it looks too trivial. In my opinion, if you have a monotonic collection of sets, all satisfying certain criterion, then "obviously" the union also satisfies that criterion. Can someone give a counter-example?


Why "on television", but "on the radio?"

Why do we say on television but say on the radio? I saw these two mentioned in Cambridge dictionary entry.     We often hear and use it both in private and in public settings and in films, on television and on the radio.