Some "non-continuous" verbs such as to be, to have, to own, to see, to   hear, to need, to want... can not be used with continuous tenses ()      He is needing help now. Not Correct      He needs help now. Correct      He is wanting a drink now. Not Correct      He wants a drink now. Correct      We use the Simple Present to express the idea that an action (that is   expressed by non-continuous verbs) is happening or is not happening   now. ()      I am here now.      She is not here now.      He needs help right now.      (v) [intransitive] to feel painful   My feet hurt.   I seldom hear people say "My feet is hurting."  And if "hurt" is a normal verb (can be used with continuous tense) people should say "My feet is hurting." to express a temporary action. But if "hurt" is a normal verb & if they say "My feet hurt.", then it sounds like "My feet hurt regularly.".  is the verb "hurt (v): [intransitive] to feel painful" a non-continuous verb?   I would say "(v) [intransitive] to feel painful" is a non-continuous verb but I am not sure


What is the best way to include Matlab figures in Latex

I know that this question is not new but as I look at the answers, like,      I realize that these threads are old. Since Matlab itself has included many functionalities to address this issue, I am wondering if the community can post some updated methods.  Also it will be nice if answers can address the issues one might face if one is using an online template for making \LaTeX documents like overleaf.com  Thank you


How long does it take to send a postcard from Germany to China

I sent a postcard 2 weeks ago from Germany to Beijing. I bought 2 x 0.45€stamps, and put it in a Deutsche Post box.   Is there any way to know how long does it take for the postcard to arrive the destination? I couldn't find any information online.


Please help me evaluate the following series.     $$\sum_{k=0}^{n} k{n\choose k}^2.$$


Prove that if (a,b,c) is a Pythagorean triple, then 3 divides either $a$ or $b$ without remainder classes

This number theory book I have proved that if $(a, b, c)$ are a primitive Pythagorean triple (i.e., $a, b, c$ have no common factors and $a^2 +b^2 = c^2$), then either $a$ or $b$ is odd. The book did that by assuming that both $a$ and $b$ are even (or odd) and derived a contradiction each time. (If $a$ and $b$ are both even, it showed $c$ would be too; if they're both odd, it ends up with an equation where the left-hand side is odd and the other even.) As an exercise, the book asks to use a similar reasoning to prove that either $a$ or $b$ must be a multiple of 3. The book didn't get to remainder classes or modular algebra yet, so I guess this "similar reasoning" wouldn't involve them. I don't think the book has even mentioned the word "remainder" yet. Keeping in mind that $a$ is even, $b$ is odd, and $c$ is odd, I tried to either assume that neither $a$ or $b$ are divisible by 3 and tried to derive a contradiction, or that if either wasn't divisible by 3 then the other was. Neither approach led anywhere, except calculations so long and tedious that you end up forgetting why you're even doing them. The book comes with no answers to problems, and I should note I suck at figuring out divisibility. Any hint would be greatly appreciated.


How to create custom attribute for checking empty string

I am wonder how to create a custom attribute for checking empty property values. I know that I could use not custom attributes, but want to know how to create them. Let's say that attribute will be a boolean type, and will not accept empty property strings. I made something like that, but not sure that is correct.  [AttributeUsage(AttributeTargets.Property)] public class RequiredFirstName : Attribute {     public bool FirstName { get; }      public RequiredFirstName(bool firstName)     {         FirstName = firstName;     } }   Even I used C# libary with Attributes I am able to create a new Person i.e. with propert (firstName) empty mean that there is empty string and I do not get any exceptions. How to create a annotation that will throw an exception when the propert (string) is empty "".  [Required(AllowEmptyStrings = false)]   That does not works for me.


What are the different properties of Complex Numbers. ?  I have doubt on real life use of complex numbers. Where and in what conditions do we use complex numbers in our day to day life.  My main focus is to know apart from Electrical ENgineering where it is used. Daily Life use. which can be understood by layman


Is there a cross-browser onload event when clicking the back button?

For all major browsers (except IE), the JavaScript onload event doesn’t fire when the page loads as a result of a back button operation — it only fires when the page is first loaded.  Can someone point me at some sample cross-browser code (Firefox, Opera, Safari, IE, …) that solves this problem? I’m familiar with Firefox’s pageshow event but unfortunately neither Opera nor Safari implement this.


Clickable footnote and endnote links with hyperref

I want to include clickable links in my document that take you from a footnote or endnote in the body text to some material in the appendix. This problem is similar to the one posed in , so I tried to use the hyperendnotes.sty code in Ryan Reich's answer to do so.  \documentclass[12pt,a4paper]{report} \usepackage{amsmath,amsfonts,amssymb}  \usepackage{parskip} \usepackage[toc,page]{appendix}  \usepackage{endnotes}  \let\footnote\endnote \renewcommand\enoteheading{\chapter{Notes}} \renewcommand\enoteformat{\leftskip=0pt \parindent=0em   \leavevmode\makeenmark\raggedright}  \usepackage[hyperfootnotes=true]{hyperref} \usepackage{hyperendnotes}  \begin{document}  \tableofcontents  \chapter{chapter}  \section{section} first\footnote{hello},   second\endnote{this is my equation \begin{equation} z=x+y \end{equation} }  third\endnote{another equation $a+b+c$}  \appendix \addcontentsline{toc}{chapter}{Notes}  \theendnotes  \end{document}   The result looks OK:   but I get errors like Undefined control sequence. first\footnote{hello} and when I click on the links I am taken back to the first page. How do I fix this?


Unable to play MP3 or MP4 files in Rhythmbox or Movie Player

I am unable to play any MP3 or MP4 files. When I try to open any MP3 or MP4 file, both show an error, a Python 2.7 plug-in is required.


If a complex number with unit modulus is a root of a monic polynomial with integer coefficients, is it a root of unity?

The title says pretty much everything:     We have $z\in\mathbb{C}$ such that $\|z\|=1$ and a monic polynomial $p\in\mathbb{Z}[x]$ such that $p(z)=0$.   Is it true that for some $n\in\mathbb{N}$, $z^n=1$?   My thoughts about it: assume that $z=e^{\pi i\alpha}$ and $z$ is not a root of unity, i.e. $\alpha\not\in\mathbb{Q}$. Then $\alpha$ has to be a trascendental number: otherwise, by the , $z$ is a trascendental number. But obviously this is far from closing the question: for instance, $\frac{3+4i}{5}$ is a complex number with unit modulus, and $\frac{1}{\pi}\arctan\left(\frac{4}{3}\right)$ is a trascendental number, but there is no monic polynomial with integer coefficients having $\frac{3+4i}{5}$ as a root. So, what is the good way to go for proving the claim above, since I believe it is true? Counter-examples are welcome as well, obviously.


Boot partition full, failed upgrade prevents cleaning

This seems to be a common problem area from all the other questions and answers but none of them seem to address my specific problem.    After several upgrades my server boot partition filled up. Apparently the system continued to try to upgrade and is now in some sort of vicious circle. I can't upgrade because of an unmatched dependency and I can't clean because of a pending upgrade.  I manually removed several old files to provide space, following suggestions in other answered questions (listed versions and rm'ed five oldest) but the problem persists. Here's what happens if I try to fix the install:  $ sudo apt-get -f install   Reading package lists... Done   Building dependency tree   Reading state information... Done   Correcting dependencies... Done   The following packages were automatically installed and are no longer required:     linux-image-3.2.0-60-generic linux-headers-3.2.0-65-generic     linux-image-3.2.0-63-generic linux-image-3.2.0-58-generic     linux-headers-3.2.0-60 linux-headers-3.2.0-61 linux-headers-3.2.0-63     linux-headers-3.2.0-58 linux-headers-3.2.0-64 linux-headers-3.2.0-59    linux-headers-3.2.0-65 linux-headers-3.2.0-60-generic     linux-headers-3.2.0-63-generic linux-headers-3.2.0-58-generic     linux-image-3.2.0-61-generic linux-image-3.2.0-64-generic     linux-image-3.2.0-59-generic linux-headers-3.2.0-61-generic     linux-headers-3.2.0-64-generic linux-headers-3.2.0-59-generic     linux-image-3.2.0-65-generic   Use 'apt-get autoremove' to remove them.   The following extra packages will be installed:     linux-server   The following packages will be upgraded:     linux-server   1 upgraded, 0 newly installed, 0 to remove and 158 not upgraded.   1 not fully installed or removed.   Need to get 0 B/1,736 B of archives.   After this operation, 0 B of additional disk space will be used.       Do you want to continue [Y/n]? y   dpkg: dependency problems prevent configuration of linux-server:    linux-server depends on linux-image-server (= 3.2.0.68.81); however:     Version of linux-image-server on system is 3.2.0.74.88.    linux-server depends on linux-headers-server (= 3.2.0.68.81); however:     Version of linux-headers-server on system is 3.2.0.74.88.   dpkg: error processing linux-server (--configure):    dependency problems - leaving unconfigured   No apport report written because the error message indicates it's a follow-up error from a     previous failure.                         Errors were encountered while processing:    linux-server   E: Sub-process /usr/bin/dpkg returned an error code (1)     You'll see I've tried this before... Tried autoremove, clean, autoclean, configure.  If it is any sort of a clue, about half the time when I run that command I lose the terminal session!  $ df -h /boot   Filesystem      Size  Used Avail Use% Mounted on   /dev/sda1       228M  107M  109M  50% /boot     and all operations involving apt-get or dpkg fail with an error similar to the above.


MacBook Pro flashing folder, start up hard drive not showing in Disk Utility

Out of the blue today my MacBook Pro starting showing a flashing folder with a question mark during the boot process.  I went into Disk Utility to try and restore or reformat the MacBook, but the hard drive does not even show up and everything else is grayed out.  Here’s a screenshot that shows what I’m talking about. Thanks.


Downloading 17.10 iso file is only giving me a text file

I am trying to get an iso to make a bootable usb on my linux machine. However when I try to download 17.10 it gives me a text file and not a disc image. I have tried to re download multiple times and it keeps doing the same thing over and over again.


Arriving in Heathrow Airport in London with 5 large bags plus a large music keyboard

I am arriving at Heathrow Airport in London with 5 large bags and a very large music keyboard.  What would be the best way to go to East London from there?  One of the trick points is that 3 of the bags and the keyboard will be in the cargo area of the airport. So we have to get the bags from the flight and then collect the rest before heading to East London.  We are thinking between hiring a large SUV and dropping it in East London somewhere or maybe UberXL. Or? Thanks for any idea!


Should two identical digital pictures of the same resolution and format have the same size?

I apologize if this is the wrong stack exchange site, but I thought my question might be too specific to photo encoding for stack exchange.  I recently recovered a host of digital picture files from a dead drive and after the recovery noticed that although all the photos are the same resolution and are one of three encoding formats (jpg, png, or tif), there are drastic differences in their file sizes.  I know the efficiency of the compression can vary to a certain degree between photos, however, there are some as small as 112KB and others into the hundreds of megabytes.  With the really enormous files I was pretty confident that the recovery tools just scraped some extra data into the photo files, so I started going through, opening the photos in paint and then re-saving them and files that were up to approx 300MB were encoded at just 600KB.    It got me wondering, if I open two files in paint and they are the same resolution and each pixel is the same color (ie, they look identical), can there be other data behind the scenes I'm not aware of that paint is cutting out that is important to the image, or will the encoding on two files of the same number of and color pixels be the same and result in identical sizes?


I study in India and in here we have 10 pointer system. I wanted to convert my CGPA to american based GPA system of 4. I googled and got this .  So does that mean I need only >8.5 to get a 4.  This may be a stupid question to some but please consider that I know nothing of american CGPA system.


What are the differences between Ubuntu download servers

Are all Ubuntu download servers an exact copy of the main server? Can a software be on a server but not be on another server? Can the version of a software be different on different servers? Where is the main server?


Finding $\gcd(2n-1,2n+1)$ . . . I think it's 1 but is my logic right?

Ok i feel like this is an easy question that I'm making more complicated than it needs to be  $$ \begin{align} 2n+1 &= (2n-1) + 2\\ (2n-1) &= 2(n-1)+1 \end{align} $$  so is it $1$ ?


If we can access (64*4) 256Kb of memory at a time in 8086 and you can move those segments around, what is the use of the remaining memory? Some say that we can move around the segments but what is the benefit of moving around the segments? Still we can't use the whole memory...


Should I accept the answer I like most, or the one that is most useful for others?

I've asked a question, which has a number of answers. One of them has 16 upvotes, big answer, very complete, and is probably going to be the most useful for other visitors in the future. On the other hand, there is another answer, 0 upvotes, just one little paragraph that provides me with exactly what I need.  Should I accept the small answer that perfectly solves my problem, or should I accept the broader answer, and that is going to benefit the greatest number of future visitors with similar problems?


How do I change the action for Force Click on a Force Touch trackpad?

I have a new MacBook Pro Retina 13 Early 2015 with the .  It's described to have the following feature:     Click and continue to press on the trackpad to enable new capabilities, like looking up a word's definition, previewing a file in the Finder, or creating a new Calendar event when you Force click a date in the text of an email.   Generally: How can I change, tweak, tune, enhance the 'capability' of this force click?  Particularly: I'd love to have it do translation in Safari and Terminal much more frequently than I want it to do dictionary lookup.


Add duplicate tab or remove duplicate test from Close Vote audits

Audits which are potentially duplicates have a "Duplicate" tab at the top allowing you to see what it's been marked as a duplicate of:      When you get test audits which include or duplicate, however, no duplicate tab is displayed. This makes it somewhat obvious that it's a test audit:      For reference, here is the audit this was from:  (the question itself isn't actually closed as duplicate anyway!)


In , the Indian government is going to start a neutrino project.  Questions:   Is it harmful for people who stay there?   Will this project affect any living beings? Does it cause any pollution?


How can be prevented ID producing gaps in-between by using INSERT IGNORE INTO?

CREATE TABLE `contacts` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(60) DEFAULT NULL, `email` varchar(60) DEFAULT NULL, `password` varchar(60) DEFAULT NULL, `hash` varchar(60) DEFAULT NULL, `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `email` (`email`), KEY `id` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8   I created the previous table. When I try to insert with the following code duplicated data, the instruction is ignored and not inserted as expected. However, the ID is auto incremented, producing gaps among the correct insertions of data. For example, inserting through PHP:  $sql = "INSERT IGNORE INTO `contacts`(`ID`, `name`, `email`, `password`, `date`) VALUES (NULL, '$nombre', '$email', '$password', NOW())";   I would like to prevent the ID from being auto incremented when a duplicated data is tried to be inserted, so I can keep the ordered enumeration in my DB. I am asking this only because I didn´t find this specific question been asked with the aforementioned target and using INSERT IGNORE INTO...


What happens after `ubuntu-bug` has done its thing?

Until some time ago you ran apport-bug or ubuntu-bug to start reporting a bug. The system would then open launchpad with your account, upload the collected information and let you add more info to the bug report.  Now when I run gksudo ubuntu-bug (for instance with a crash-file as argument) the common bug dialog appears       and thats all.  Where is the report being sent to? Definitely not to launchpad as a bug report (although in the concrete situation people have been able to file a report about that bug).  So: where is this report sent to (and just maybe) how can I still file a bug report from my system (makes uploading of the pertaining files much easier)  Could it be that "the system" decided that this would be a duplicate of an already existing bug?


How to level Unearthed Arcana Ranger Animal Companion?

I am having Some trouble getting my head around levelling the new .  If someone could break it down it would be really helpful.  If there are any simple step-by step-video's out there, I have not been able to fine one.


How to know if a measure is Lorentz invariant?

In a Pr. Badis Ydri's book, 'A Modern Course on QFT', the following integral is said to imply that $d^3p/2E_p$ is indeed a Lorentz invariant. How so ? Does it have to do anything with the notion of "test functions" ? (of which, I know nothing) (I'm not sure that calling $d^3p/2E_p$ a measure is correct. If not, could someone correct my title, please ? Thank you.)


Old sci-fi short story about alien "elixir" and lone astronaut losing sanity?

I remember reading this one in an old sci-fi magazine from the 1970s or early 80s. I'm sort of fuzzy on the details, but this is how it went, as best I can recall:     A lone astronaut is on board a small space station at the edge of our solar system.  He might be in orbit around one of the gas or ice giant planets. His purpose is to be there when an alien species arrives to deliver some sort of biological substance that has some beneficial effect for mankind.   The previous astronaut with this duty cracked up, something the current guy refuses to do. Late in the story, he realizes that the substance delivered by the aliens has a sinister side effect, and the aliens are actually slowly conquering man as a result.   Unfortunately, the nature of his duty has somehow warped him in the same way as his predecessor.  He tries to write down what he's learned, but it's all alien scribbles that no one would understand. In a final act of defiance, the astronaut somehow crashes his station or ship into the alien one.  I think the atmosphere of a gas giant or frozen moon something begins pouring into the station.  The man is going to die, but he believes the aliens will be blamed as an aggressor, and thus save mankind.  Something like that.


Today, I have encountered the following sentence in a documentation:      Department of development and support of information systems of ABC JSC   I have argued about the correctness of using this "of"s sequence - for me, it sounded both too complex and "too Russian". However, I couldn't explain why.   Which of the following sentences are correct, and why?   Department of Development and Support of Information Systems of ABC JSC Department of Information Systems Development and Support of ABC JSC Information Systems Development and Support Department of ABC JSC Information Systems' Development and Support Department of ABC JSC   For me, the third one sounds the best, but how can I argue it? If both variants are OK, then how to decide which one to use? Does this problem actually occur among native speakers?  Another one example:   Head of Sales Department Sales Department Head Sales Department's head   Which are correct, and which are commonly used?   I have even stumbled upon this problem when I was writing this question. Wouldn't "Of" prepositions sequence usage title be better?


If $a$, $a+2$ and $a+4$ are prime numbers then, how can one prove that there is only one solution for $a$?  when, $a=3$  we have, $a+2=5$ and $a+4=7$


Can I take images from Google image search as a base for my creations?

This is a legal question and I want to know if I can continue the way I work in a commercial environment. This is not about if I can blatantly take images from the web and use them as they are.  What I do is mostly icons and iconographic imagery where in the end no one can tell if I used an image that doesn't belong to me as a starting point.  Here is an example.    See, technically I stole.  I'd like to know if this is perfectly okay and counts as a new work or if it's sort-of okay because I might not get into legal trouble. Or maybe I should be really careful.  I actually don't know.


How can I modify the caption name of a figure? For example I have  \caption{This is a figure.}   and by default the caption appears as     Figure 1: This is a figure.   However I want     Fig.1 - This is a figure.


What part of speech is "the closest" in this case?

What is the closest you've ever come to losing your life?   （From : ）  Apparently, it comes from the construction "come close to doing" , so "the closest" should be an adverb (in superlative degree) . But relative clauses cannot modify  an adverb.（I follow the CGEL by Quirk et al.）  Someone would view it as a NP where the noun has been omitted(the closest situation). But this analysis is also flawed, because a NP cannot fit in the relative clause that follows.  Is there a better idea ？


I am unable to find all my favorites that I have done in the individual question

After searching favorited question everywhere I am unable to find FAVOURITE section in the app. Please do something for this.


I was trying out string concatenation and the '+' operator on a string and encountered the following-   String xyz = "Hello" + null; System.out.println("xyz= " +xyz); String abc= "Hello".concat(null); System.out.println("abc= " +abc);    The output for the first one was : Hellonull  The output for the second one was a Null Pointer exception  I don't understand why there were two different outputs.


I removed traces of Virtualbox and reinstalled Virtualbox 5.1 from the website. However, I keep getting this error message.    I don't know what else I can possibly do and I already ran /sbin/vboxconfig and that ran with no problems. So I don't see why I'm still getting this error message. Can someone help?  Currently this is what I get  yann@Milvia:~$ dpkg -l *virtualbox* | grep ii ii  unity-scope-virtualbox         0.1+13.10.20130723-0ubuntu1  all          VirtualBox scope for Unity ii  virtualbox-5.1                 5.1.14-112924~Ubuntu~xenial  amd64        Oracle VM VirtualBox yann@Milvia:~$ dpkg -l *virtualbox* Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name           Version      Architecture Description +++-==============-============-============-================================= ii  unity-scope-vi 0.1+13.10.20 all          VirtualBox scope for Unity un  virtualbox     <none>       <none>       (no description available) ii  virtualbox-5.1 5.1.14-11292 amd64        Oracle VM VirtualBox un  virtualbox-gue <none>       <none>       (no description available) un  virtualbox-gue <none>       <none>       (no description available) un  virtualbox-ose <none>       <none>       (no description available) rc  virtualbox-qt  5.0.32-dfsg- amd64        x86 virtualization solution - Qt  yann@Milvia:~$ dkms status bbswitch, 0.8, 4.4.0-59-generic, x86_64: installed bbswitch, 0.8, 4.4.0-62-generic, x86_64: installed (WARNING! Diff between built and installed module!) nvidia-375, 375.26, 4.4.0-59-generic, x86_64: installed nvidia-375, 375.26, 4.4.0-62-generic, x86_64: installed (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!)   Thanks.


Selecting images back to previous ViewController

I am working in xcode 6.4. I have a View which contain 5 UIImageView.I have given UITapGestureRecognizer(single tap) for each image.When clicking on each image,a CollectionView will appear using Navigation Controller.The CollectionView contains some images.When clicking on any images in the CollectionView,it should navigate to the previous ViewController and the image should be changed with the selected image. How it is possible to pass images to previousViewController?(I am Using Objective-C)


Integral sequence limit: $\lim_{n\to+\infty}\int_{\mathbb{R}} \sin(nx)h(x) \, dx$

I am to computing this limit:  $$\lim_{n\to+\infty}\int_{\mathbb{R}} \sin(nx)h(x) \,, dx$$ where $h(x)$ stays in $L^1(\mathbb{R})$.  Is it correct this method? I choose a sequence of functions $h_n(x)\in C_c^\infty$ which converges to $h$ in $L^1$ sense and I have   $$\int_{\mathbb{R}} \sin(nx)h_n(x) \, dx = \left.-\frac{\cos(nx)} n h_n(x)\right|_{-\infty}^{+\infty} + \int_{\mathbb{R}} \frac{\cos(nx)}{n}h_n'(x) \, dx$$  so  $$\left|\int_{\mathbb{R}} \sin(nx)h_n(x) \, dx\right|\le \frac Cn\to0.$$  In this way I have  $$\|\sin(nx)h(x)\|_{L^1}\le\| \sin(nx)h(x)-\sin(nx)h_n(x)\|_{L^1}+\| \sin(nx) h_n(x) \|_{L^1} \to 0$$


Trying to use wp_register_script/style and enqueu them from an array - getting an error

here is what i got so far:    // my array $this->headersArray = array(     array('handle' => 'buy_mobile_funcs', 'src' => 'jsFunctions', 'extention' => 'js', 'deps' => '', 'media' => ''),      array('handle' => 'css_main_style', 'src' => 'main_style', 'extention' => 'css', 'deps' => '', 'media' => 'screen') );  // registering  foreach($this->headersArray as $singleHeader){     if($singleHeader['extention'] == 'js'){         wp_register_script(             $singleHeader['handle'], plugins_url('scripts/'.$singleHeader['src'].'.'.$singleHeader['extention'],__FILE__),              (!empty($singleHeader['deps']))? $singleHeader['deps']  : ''         );     }else{         wp_register_style(             $singleHeader['handle'], plugins_url('css/'.$singleHeader['src'].'.'.$singleHeader['extention'],__FILE__),              (!empty($singleHeader['deps']))? $singleHeader['deps']  : ''         );     } }  // enqueuing  foreach($this->headersArray as $singleHeader){     if($singleHeader['extention'] == 'js'){         wp_enqueue_script($singleHeader['handle']);     }else{         wp_enqueue_style( $singleHeader['handle'], '', '', '', $singleHeader['media'] );     } }   I know i could combine the 2 foreach. however i have a reason to keep it as it is now which is not relevant to the questions.  Error:  Notice: wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /home1/stodeckc/public_html/orgadsite/wp-includes/functions.php on line 3012   Thanks in advanced.


We all know that derivative of $e^x$ is $e^x$. Is exponential function only function that has such property? If yes how to prove that there are no other functions. If no, what are other functions? Help me please


Parsing DataSnapshot back in Java Class not working properly

I am trying to sync my android devices for a dice multiplayer game. When one player rolls his dices I am sending the data to a Firebase Realtime Database. Upon changing the data all devices should be updated with the numbers the active player has rolled. Therefore I am reading every dataSnapshot from the firebase and parse it into a class of type 'Player'. UserId is the key that Firebase RD generates when pushing new data into it, so it should be unambiguously.          public void onDataChange(DataSnapshot dataSnapshot) {              int j = 0;              playerList.clear();             for (DataSnapshot snap : dataSnapshot.getChildren()) {                 playerList.add(snap.getValue(Player.class));             }              for (int i = 0; i < playerList.size(); i++) {                 Log.d("LOG", "Playerlist: '" + playerList.get(i).getUserId() + "' , Activeplayer: '" + activePlayer.getUserId() + "'");                 if (playerList.get(i).getUserId() == activePlayer.getUserId()) {                     j = i;                 }             }   Here is the log output from the second for iteration:  D/LOG: Playerlist: '-M4f0dWR3jkMBO4K45JU' , Activeplayer: '-M4f1axYujY78s-hmOQZ' D/LOG: Playerlist: '-M4f15nuDetGUtky4_Tr' , Activeplayer: '-M4f1axYujY78s-hmOQZ' D/LOG: Playerlist: '-M4f1axYujY78s-hmOQZ' , Activeplayer: '-M4f1axYujY78s-hmOQZ'   As you can see the third line matches so the if clause should catch - but it won't :(  I tried parsing it, using 'toString()' method, which did not change anything.


Java: regex to find outer square brackets pairs

I would like to find the content of all the outer square brackets pairs in a string.  If an outer pair has an inner pair then it should not be matched separately.  For example string: [abc][123][cde[456[aq[]1q1]]] results should be:   abc 123 cde[456[aq[]1q1]]   Any help will be highly appreciated...


Javascript use variable inside match regex

I have a simple regular expression inside a match function like this: text.match(/.{1,20}/g);  Is it possible to replace the 20 with a dynamic variable? Thanks a lot!


How to maximize the mode of geometric distribution

If X is a Geometric random variable with parameter p, what value of $$k \in \{1,2,...\}$$ ends up maximizing $$P (X = k) = (1 − p)^{k−1}p$$  I understand this is known as the mode of the distribution, however, when I try graphing this on WolfRamAlpha, I'm still unsure of how to systematically approach this problem.  To try and come out with a solution, I originally tried to take a ratio between $P(X = k + 1)$ & $P(X = k)$ but I am still unsure of what to make of what I got out of it. I just end up getting a ratio such as:  $$\frac{(1-p)^{k}p}{(1-p)^{k-1}p}$$  From here, I am unsure of where to go with my work. I'm also unsure why taking a ratio here would exactly mean anything.


How do you clear 1 item from the inventory that has a custom name? What I'm trying to do is make a torch that when you hold it, it gives you Night Vision effect but after like 400 ticks or so I want the torch to run out of fuel and clear 1 torch away from the inventory, I have the potion effects (giving and taking away) working and the testfor command but how do I clear the item? this is my code I'm trying to use /clear @a torch 1 1 {display:{Name:"Special Torch"}}


How to put 4 different textures on one rectangular shape?

i'v been looking trough the internet for ways to simulate a quite simple thing: I want to see how 4 textures I got on my laptop will look on something which has 30cm height and 15cm width. So on each site (except the visible top) one texture projected on a rectangle. I was very happy once I found out about blender, however after trying to figure out how to do this task I had to realize that I'd first have to learn the basics for which I currently lack time. Does anyone know where I can find an absolute blender-noob guide on how to simulate this certain thing? Or could you provide me with basic info on what I have to know (read) to create this thing without putting too much time in it? Would be glad to receive a hint! :)


Why are my night photographs always blurry?

I was shooting the lighting of the city that is visible at the top of the trees if you shoot landscape.  No matter what I do, the image is blurry. What have i done:   ISO 100 Manual focus towards infinity Using a tripod Using really sharp prime & good camera   Basically, everything I could. The only example i have is here, but it is not good, because image is underexposed:    The main question: Why can't night photographs be as sharp as daily photographs (with approperiate exposure times of course)?


Are electromagnetic and gravitational waves the only known types of waves that can travel in empty space?

Besides electromagnetic and graviational waves, are there any other waves known to travel through empty space?


How to achieve the round corners of a black piano key?

I'm trying to model a black piano key using Blender but I'm facing some difficulties when trying to recreate the rounded upper front edges of the black key.    The closest I have come to achieving this is by first beveling the two front upper vertices in the corners using the Ctrl Shift B command. Then beveling all edges except the edges of the rounded corners. However, as you can see, the subdivided result is far from perfect!       Maybe I should try a completely different approach? What do you Blender experts make of this?  Thanks in advance for any kind of input!


If $M$ is a Noetherian $R$-module, then $R/\text{Ann}(M)$ is a Noetherian ring

Let $M$ be an $R$-module and $\text{Ann}(M)=\{r \in R: rm =0 , \forall m \in M\}.$ Suppose $M$ is Noetherian. Could anyone advise me on how to prove $R/\text{Ann}(M)$ is also Noetherian?   Hints will suffice. Thank you.


I don't know if Ghost Adventures is scripted or not. A lot of things have happened to me that are paranormal, it just seems like most of the time in the show, they seem off. I know that there is a lot of energy there at most of the places they go to but, I'm just not too sure if Ghost Adventures is scripted.


I'm using Ubuntu 12.10 and I'm having a Ubuntu One account. I synchronize a photo folder with it. Synchronizing is OK and my photo of that folder is in that cloud. The thing is now I want to delete some photos of that folder in that cloud but there is no option to delete a photo.  How do I remove some photos in the cloud?  Thank you.


A chain ring with Krull dimension greater than one

Recall that a commutative ring $R$ with identity is a chain ring if the set of ideals of $R$ is linearly ordered under inclusion.   I want to know if there a chain ring  with Krull dimension greater than one. Or does every chain ring have Krull dimension at most one?


In the PHB under The Book's Appearance the text give two examples of how a spellbook looks like a book and one example with it being just a collection of notes.  Does a Wizard's spellbook need to be a book? Can a spellbook look or even be something else rather than just a book?  For example, could it be a series of small scroll tubes tied together like a rope ladder?  A necklace of marbles where each marble was inscribed with a single spell?  Elaborate wood carvings on a puzzle-box?  Colourful tattoos on the backs of slaves? (I'm not saying it won't be awkward when a Dragon eats pages 21 to 34 when adventuring, just asking if it would be allowed.)  Runes on the faces of convex regular icosahedron? ;)


Ubuntu-based distro with a rolling release?

What Ubuntu-based distribution can you recommend which has a Rolling release model? I want to have available both Ubuntu specific software (eg. Unity / Virtualbox / Snaps) and newer other software like from Debian Testing. What do you think? I want it to be a Ubuntu/Debian based distro, to be able to install .deb files.


Place section header outside multicols environment

Is it possible to do something like  ... \end{multicols} \section{A very long header that looks ugly if it does not span the columns} \begin{multicols}{2} Lorem ipsum dolor ... \end{multicols} \section{Next header}   Without the effect that LaTeX thinks my section title does not belong to the following paragraph.  EDIT:  I found the answer here:


preview windows from dock for switching between PDF documents

Hi I have a problem which drives me crazy. I installed Ubuntu 18.04 recently and when I read some PDF documents and want to switch from one to another I always have to click 3 times: 1. rightclick on document viewer 2. "all the windows" 3. the PDF I want to select. This is horrible. I have already tried different settings in dconf but nothing worked. I want it to be like in Windows 10 where you hover over an icon and it gives you a preview of the windows. PLEASE HELP! :)


selecting where two columns are in a set

This might be a silly question, and my suspicion is that I can't do this, but is there a construct in SQL that would allow me to do something like the following:  SELECT whatever WHERE col1,col2 IN ((val1, val2), (val1, val2), ...)   I want to select data where two columns are in a set of pairs.  I'd like to avoid using a subquery, if possible.


How can I implement a directional melee attack?

I am attempting to make a top down game similar to the SNES Zelda games, in Unity 4.3, in 2D. When my character swings their sword, every enemy within a radius takes damage. I want to make sure that melee attacks only damage enemies the player is facing.  How can I do this?    The relevant code in PlayerAttack.cs looks like this:  // Update is called once per frame void Update () {     // have the player initiate an attack on the object     if(Input.GetKeyUp(KeyCode.F)){         MeleeAttack();     } }  private void MeleeAttack(){     // create a variable called distance to make sure the distance is close enough     // to inflict damage from a melee attack target.transform.positon = the position     // of the object to attack and transform.position is the position of the players     // transform     float distance = Vector3.Distance(target.transform.position, transform.position);      // make sure the distance is not greater than 1.5 so the player cannot     // melee an enemy from to far away     if(distance < 1.5f){             // get a reference to the enemy's health script and type cast it.             EnemyHealth eh = (EnemyHealth)target.GetComponent("EnemyHealth");             // now call the function that will decrease the enemy's health             eh.AdjustCurrentHealth(-10);     } }


What is a "rail system"? What about rods?

I've seen rail systems for sale, and a remark from someone wanting to get a rail system. What is the purpose(s) of that?  Is a focusing rail for macro a different usage of the term (same as a focusing rack)?  I may have conflated it with rods, which are what I was wondering "what is that for?". I see them under Pro Video at B&H: a pair of long sticks under or on ether side of the camera.     As it turns out, what cameradojo.com’s article refers to a rails is sold at B&H as rods, with rails in their catalog being tracks for hanging lights from the ceiling. The short answer to my question is: a modular way to attach stuff to the camera, coming to SLR culture from pro video.


could any one tell me how to find the sum of all positive integers less than $n$ and relatively prime to $n$? $n>1$  For $n=7$, I have  $\phi(n)=6$ and  the sum is ${6(6+1)\over 2}={n\over 2}.\phi(n)$, is that true for any $n$?


Performant way to check java.lang.Double for equality

What is the most performant way to check double values for equality.  I understand that  double a = 0.00023d; double b = 0.00029d;  boolean eq = (a == b);   is slow.  So I'm using  double epsilon = 0.00000001d; eq = Math.abs(a - b) < epsilon;     The problem is that Infinitest is complaning about tests taking too much time. It's not a big deal (1 sec top), but it made me curious.  Additional info  a is hard coded since it's the expected value, b is computed by    // fyi: current = int, max = int   public double getStatus()   {     double value = 0.0;     if (current != 0 && max != 0)       value = ((double) current) / max;     return value;   }   Update  java.lang.Double does it that way  public boolean equals(Object obj) { return (obj instanceof Double)        && (doubleToLongBits(((Double)obj).value) ==           doubleToLongBits(value)); }   so one could assume that is the best practice.


Is saying "back to back" an AmE or BrE usage

I have been often intrigued by the phrase "back-to-back". Referring to "back" is reminiscent of the rear of the human body.  I usually hear-   back-to-back meetings


I was wondering, what the threshold is for a dataset to be called 'imbalanced'?   Technically every dataset where the target-classes aren't evenly distributed is not balanced. Yet small imbalance seems to have little effect in the used methods (i.e. decision trees, Cluster Analysis, etc.) and outcomes. So when do we call data truly imbalanced so that we have to adjust our procedure (different sampling methods / algorithms)?  Is there a value of percentage, that should be kept in mind?


How to handle java.util.regex.PatternSyntaxException: Dangling meta character for all the special charcters

I want to handle  java.util.regex.PatternSyntaxException: Dangling meta character caused by any special character. For example Assume the following string  String var = "Hi * How / are \\ you + "; String replacement = var.replaceAll(var,"Replaced");   I want to handle above code as such I need not add \\ for each replacing each special characters.  PS: There can be many more special characters other than the one mentioned. I want to create a condition to handle all the characters which would return this exception.  PPS: I have to use replaceAll. I cannot use replace as I'm working in java version 1.4. Also cannot upgrade java version.  I am stuck with version 1.4. And Pattern.quote will work on java 1.5 onwards.


Is there a way (terminal command?) to take a TeX file, possibly with externally linked macros, bibstyle files, bibTeX source, etc., and automatically produce a single, self-contained TeX file? For example, I could generate the bbl file, copy and paste the entries there and add to the source, but it gets tedious. Anyone solve this problem?


Is keeping macbook battery 20%~80% good?

I heard that keeping macbook battery in 20% to 80% is good.  Is it true? or what is the best way to use macbook best way?


Prove convergence to zero of $f(t + x) - f(x)$ in the $L^p$-norm

I'd like to show that $\Vert f(t + x) - f(x) \Vert_p \rightarrow 0$ as $t \rightarrow 0$, where $f \in L^p([0, \infty))$ and $\Vert \cdot \Vert_p$ is the usual norm on $L^p$. First I thought of using the Lebesgue-Dominated-Convergence theorem but I can't quite see how to estimate the function $f(t + x) - f(x)$.   Any hint is appreciated!  Thanks!


Why this is not a correct definition for ordered triple? (I know that the correct definition is Kuratowski's definition)  for any $a,b,c$ : $<a,b,c> = \{ \{a\}, \{a, b\}, \{a, b, c\} \}$  At the first time I saw the definition of ordered pair I thougt this is correct but according to kuratowski's definition it is not and I don't know why.


Diamond moderator rollbacks can resurrect blacklisted tags

.  A diamond moderator rolled back a question to a state where it had .  This effectively recreated the tag, despite it being blacklisted.  This should not happen, and is .


There's also an answer here:      I have a big dispute with an electrician if the oven he supposedly fixed works or not. Problem is I think it reaches only about 150 C (300F) degrees when it indicates it has reached 250 C. So at 250 C (480F), I'm still able to hold my hand in the middle of the oven for 1 minute, or probably more.    When you cook next time, may you please try to see if this is possible at such temperature?  I will try to get hand of a thermometer, but have nothing now, so would appreciate someone testing it.   Rephrased: Is it possible to hold a hand in the oven at 250C for 1 minute, or is it too hot?


Method for batch layout of images into PDF sheets

I have 100,000 identically-sized, but unique, PNG/JPG images which I want to automatically layout onto A4 sheets which can then be exported as print-ready PDFs.  So assuming I can fit 8 of these images per page in a 4x2 grid, I'm looking to input my 100,000 images and output 12,500 PDFs.  I'm a programmer so I could probably write a script to do this myself (e.g. PHP/Python), but I was wondering whether there are any tools/scripts/software that already exists that can do this automatically.


How to set the spacing before and after of section headings to a fixed value of 1.5cm?

In this code, i want the spacing before and after of my section, subsection, and subsubsection headings to be exactly 1.5cm regardless of the font size or my line spacing. How can i do this? I know that this question has been asked before several times on this site but I want a package-free solution.    \documentclass[a4paper]{book} \usepackage{lipsum} \begin{document} \chapter{A Chapter} \lipsum[2] \section{Foo} \lipsum[2] \subsection{Bar} \lipsum[2] \subsubsection{Foo Bar} \lipsum[2] \end{document}   Edit  I know that the spacing before, say, section headings is controlled by the code below, but when I enter -1.5cm instead of -3.25ex, the vertical space before the heading doesn't become exactly 1.5cm on the output. Why?    \makeatletter \newcommand\section{\@startsection {section}{1}{\z@}%                                    {-3.5ex \@plus -1ex \@minus -.2ex}%                                    {2.3ex \@plus.2ex}%                                    {\normalfont\Large\bfseries}} \makeatother


Writing a programming command in the same line as text

I want to write just one Matlab-command in LaTeX. I want this command to be in the same line of my document as other text is:   some text... size(t) ...some text.   I tried \begin{verbatim} size(t) \end{verbatim}.  But this puts the size(t) in an extra line. How can I achieve this?


Basically, the title says all. The SE iOS app works fine and smooth, but when I open a question (any question) and view it, it becomes very lag. The FPS drops significantly. When I click into a question, the title loads and the question loads, but when I swipe up to scroll down, it moved frame by frame slowly instead of a smooth run. It doesn't go away as long as I am in the question and answer page. Happens on the development build. AppStore version works fine.  How can this be fixed? What is causing this?  I am using an iPhone 5, iOS7, app version SEß 1.2.2.198


What are the differences in mathematical notation around the world? I know that in some other countries they write 1,2 meaning 1.2, but what else can be confusing in an academic environment (when people are doing math on a board or on paper).


Why is it right?   And why is guilty until proven innocent wrong?  I think I have some kind of basic understanding but hopefully can learn more from your contributions.


how to self join a table in sql server 2008?

I have a table in sql server 2008 with format:  Name                                   number a                                       123 a                                       231 b                                       521 b                                       236   then i want get result :  Name                                    number a                                        123,231 b                                        521,236


How do I prove $\gcd(a,b) = \gcd(a+b, b)$

How do I prove $\gcd(a, b) = \gcd(a+b, b)$.  I know that by the euclidean algorithm, I can obtain the following equations  $ax_1 + by_1 = \gcd(a, b)\tag{1}$  $(a+b)(x_2) + (b)(y_2) = \gcd(a+b, b)\tag{2}$  I tried some algebraic manipulation but I can't seem too prove that $\gcd(a, b) = \gcd(a+b, b)$.


Drag down cell reference formula skipping 15 rows per reference

I am stuck here and could really use some help. I am trying to add a list of cell references in Column A of Sheet "Labor Data" to reference cells in Column A of Sheet "Job Summary", except that I need each cell row reference in Sheet "Labor Data" to skip 15 empty rows between each reference.  With a new reference on the 16th row (33nd row, 49th row, etc. with 1 header row) of sheet "Labor Data". I need 500 reference cells in "Labor Data" to be Referencing 500 cells in "Job Summary", where "Labor Data" has a total of 15 blank rows between each reference. So that is a total of 8,000 rows of data in "Labor Data" and 500 rows is "Job Summary". "Job Summary" page has 2 header columns, "Labor Data" has one header column. So "Labor Data", cell A2 should = "Job Summary" A3 I hope to somehow copy down a formula on "Labor Data" so that: Cell A17 of Labor Data = 'Job Summary!A3' Cell A33 of Labor Data = 'Job Summary!A4' Cell A49 of Labor Data = 'Job Summary!A5' and so on...  I really don't want to do all 8000 rows manually!  Help please!!


Centering the first row of a table in CSV reader

I am creating tables from a CSV file by using csvsimple package. The contents of the tables are all left aligned, hence I would like to know whether it is possible to center the first row alone (and the remaining rows being aligned to the left) ?  My code is:  \documentclass{beamer} \usepackage{csvsimple}  \begin{filecontents*}{\jobname.csv} 0.1,0.4,0.7,1.0,1.3 0.201,1.001,1.801,4.601,3.401 0.200,1.000,1.800,2.600,3.400 \end{filecontents*}  \begin{document}  \begin{frame}  \csvreader[autotabular, %full filter=\ifcsvstrcmp{\csvcoliv}{m}{\csvfilteraccept}{\csvfilterreject} ]{\jobname.csv}{}{\csvlinetotablerow}%  \end{frame}  \end{document}    shows how to switch the default alignment to center for the entire table, but can this be done only for the first row?


Minimal polynomials and characteristic polynomials

I am trying to understand the similarities and differences between the minimal polynomial and characteristic polynomial of Matrices.   When are the minimal polynomial and characteristic polynomial the same When are they different What conditions (eigenvalues/eigenvectors/...) would imply 1 or 2 Please tell me anything else about these two polynomials that is essential in comparing them.


I was wondering if SO could have a mailing feature. Yes it is not a social site, but then there are times, when a piece of code is just too large, or when a portion of code alone may not be shared, because its interlinked with other classes. It really becomes easy sharing a file to a single user or may b multiple through mails instead of dumping code on pastebin. I don't know if thats a valid reason really to have a mail feature, but it's  worth it. What say ?


Finite multiplicative group of matrices with sum of traces equal to zero.

Let  $G=\{M_1,M_2,...,M_k\}$ be a finite set such that $ M_i\in M_n(\mathbb R)$ and $(G,\;\cdot\:)$ is a group with matrix multiplication. If $\sum _{i=1}^k \operatorname{tr} (M_i)=0$ then how to prove $\sum _{i=1}^k M_i=0$ ?


Proof by induction: $2^n > n^2$ for all integer $n$ greater than $4$

I am a CS undergrad and I'm studying for the finals in college and I saw this question in an exercise list:     Prove, using mathematical induction, that $2^n > n^2$ for all integer n greater than $4$   So I started:  Base case: $n = 5$ (the problem states "$n$ greater than $4$", so let's pick the first integer that matches)  $2^5 > 5^2 \implies 32 > 25$ - ok!  Now, Inductive Step:  $2^{n+1} > (n+1)^2$  now expanding  $2 * 2^n > n^2 + 2n + 1$  Well, I can't go on, I don't know how to finish this proof. Could anyone help me with this one?  Also, I know that the statement (inductive hypothesis) is true. Simply, I'll have a number to an exponent $n$ twice, next to $n$ squared and $2n$ (which could be seen as quadratic and linear functions) which "grows" much lower than the exponential one. It could be easily "proved by example" with any $n$ greater than $4$.  I want to know how to prove it algebraically , so my professor does not freak out.  thanks in advance.


The sidebar recent blog link goes to the mobile site

The sidebar link to the most recent blog post:  includes ?cb=1, which appears to cause the mobile site to appear on the desktop. When I remove the parameter, I am returned to the regular (desktop) site. I am running Chrome 37 and window.innerWidth returns 1366.


Understanding conditional statement in logic

Here is a proposition, if you have current password, then you can log in into network. This proposition is false only for one condition, when you have current password, but cannot log into network. But for the true cases, when you do not have current password, you can log into network, proposition is true. But, how can it be? without current password, how can you log into network, this should be false. Can someone explain what I am missing here. If yes, then please also suggest some good place to learn about the conditional statements more deeply.


Can US citizens go to Cuba freely and vice versa after the recent diplomatic relation restoration?

A recent full diplomatic relation restoration between the US and Cuba took place, does that mean that US citizens can go to Cuba freely and vice versa?


I saw  Nature article today, which cites e.g. . And it makes no sense to me. The temperature of a collection of particles is the average kinetic energy of those particles.  Kinetic energy cannot be less than zero (as far as I'm aware), so I don't understand what this article is trying to say, unless they're playing around with the conventional definition of "temperature". The only thing I can think of is if you have something like this: $$\frac{1}{kT} ~=~ \left(\frac{\partial S}{\partial E}\right)_{N,V}$$ And they've created a situation where entropy decreases with increasing energy.


What software is available for virtual table tops?

As the younger members of our group get older, they are going off to college or {gasp} getting on with their lives.  We still game but are finding it harder to get together as distances increase. Since they all have computers and are tech savvy, what software is available for virtual table top play?    Being a webmaster and database administrator I have access to all the technology I could possibly need.  So be sure to include system requirements.  I just need to know what my options are.  One thing I need to add.  Some of the players will still be at the physical table and 1 or 2 will be remote.  This means I need to accommodate both types in each game session.  Also having the ability to do Non-D&D is a plus as our group plays many different systems.  For me there is only one answer.  I can try each of the systems since I'm webmaster/DBA  and have that kind of a setup, but I will in the end choose one.  (There Can Be Only One!) As a service to the group I will give a full 'review' of what I did to evaluate and what/why I choose a particular solution.  I think that in the end the fantastic answers here will help others regardless of what I do. Isn't that the best thing?


Chemnum/PS-Frag with EPS-Files and PNG-Files

In my research report, I would like to include both, EPS files to achieve automatic numbering of my compounds in schemes with chemnum and also PNG files to include 3D structures of my molecules. I have tried several approaches, and am able to automatically number my compounds with a latex->dvi->ps->pdf workflow using EPS files for my reactions. However, I am not able to include a PNG file in the same document. What is the right approach for this?  Unfortunately, there is no way to get around the PNG files, as they are made by another programme necessary for visualization.  I have tried this example:      \documentclass[a4paper]{article}     \usepackage[T1]{fontenc} % Modern font encoding     %\usepackage{pstool}     \usepackage{psfrag}     \usepackage[runs=2]{auto-pst-pdf} % Use EPS graphics with pdfLaTeX     \usepackage{booktabs} % Better table layouts     \usepackage[journal=rsc]{chemstyle} % Of course!     \usepackage{geometry} % Easy page layout     \usepackage{lmodern} % Use Latin Modern fonts     \usepackage[version=3]{mhchem} % Formula subscripts using \ce{}     \usepackage{xkeyval}     \usepackage{pst-pdf}     \usepackage{ifplatform}      \begin{document}     Test Test     \begin{figure}     \centering     \psfrag{goldhydrid}{test}     \includegraphics[scale=1.0]{./goldhydrid}     \caption{A Caption}     \label{fig:goldhydrid}     \end{figure}      \end{document}   But I get an error saying:  "Could not create test-pics.pdf. Auxiliary files not deleted."    Ok, after playing around for a while, I could make it work through changing to      \usepackage[crop=off]{auto-pst-pdf}   I also found, that if you're using an EPS file with a text to be substituted by chemnum or psfrag directly, that is very close to the borders of the EPS file, then you might get in trouble with it, because parts of the new text will be cut off. This problem obviously only occurs, if you are using pdflatex but not, if you're using the EPS files directly with a latex->dvi->ps->pdf workflow.  Cheers, Vlad


can't install Realtek RTL8723de on ubuntu 16.04 kernel 4.15

I did this:$ uname -r 4.15.0-041500-generic $ git clone  Cloning into 'rtl8723de'... remote: Counting objects: 536, done. remote: Total 536 (delta 0), reused 0 (delta 0), pack-reused 536 Receiving objects: 100% (536/536), 2.41 MiB | 356.00 KiB/s, done. Resolving deltas: 100% (195/195), done. Checking connectivity... done. $ sudo dkms add ./rtl8723de Creating symlink /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/source ->                  /usr/src/rtl8723de-5.1.1.8_21285.20171026_COEX20170111-1414 DKMS: add completed. $ sudo dkms install rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414 Kernel preparation unnecessary for this kernel.  Skipping... Building module: cleaning build area.... 'make' all KVER=4.15.0-041500-generic....(bad exit status: 2) ERROR (dkms apport): binary package for rtl8723de: 5.1.1.8_21285.20171026_COEX20170111-1414 not found Error! Bad return status for module build on kernel: 4.15.0-041500-generic (x86_64) Consult /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/make.log for more information.I suspect is because the kernel 4.15 but i wanted to see what you think it is, im struggling with this the whole daythanksEDIT:make.log$ cat make.log  DKMS make.log for rtl8723de-5.1.1.8_21285.20171026_COEX20170111-1414 for kernel 4.15.0-041500-generic (x86_64) mar ini 30 14:47:00 PET 2018 make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.15.0-041500-generic/build M=/var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build  modules make[1]: Entering directory '/usr/src/linux-headers-4.15.0-041500-generic'   CC [M]  /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/core/rtw_cmd.o In file included from /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/include/osdep_service.h:42:0,                  from /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/include/drv_types.h:32,                  from /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/core/rtw_cmd.c:22: /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/include/osdep_service_linux.h: In function ‘_init_timer’: /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/include/osdep_service_linux.h:287:8: error: ‘_timer {aka struct timer_list}’ has no member named ‘data’   ptimer->data = (unsigned long)cntx;         ^ /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/include/osdep_service_linux.h:288:2: error: implicit declaration of function ‘init_timer’ [-Werror=implicit-function-declaration]   init_timer(ptimer);   ^ cc1: some warnings being treated as errors scripts/Makefile.build:316: recipe for target '/var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/core/rtw_cmd.o' failed make[2]: * [/var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/core/rtw_cmd.o] Error 1 Makefile:1514: recipe for target 'module/var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build' failed make[1]: * [module/var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-041500-generic' Makefile:1884: recipe for target 'modules' failed make: *** [modules] Error 2


I am making an apple with a face and I made the actual body and the face separate. Both parts are in different files and I was wondering how I can merge them into one file so I can attach them together.


Problem with window drop shadow on Unity after system wakeup

I had this problem once before in a previous version (don't remember which) and it is back again. To create this, all I have to do is suspend my laptop and bring it back up again. At this point once I login back, the drop shadow on all the windows become messed up (see image). The corners (of the drop shadow) have some pink static noise and the borders form random lines.  This happens on all the application windows. If I reboot the laptop the problem goes away and promptly appears the next time I suspend/resume. This is same fate for newly opened windows.  Ubuntu 16.04, Unity, Ambiance theme, GeForce GT 630M using Nvidia driver v375.39  Looking around for anyone having a similar problem I saw suggestions for dealing with problems with the drop shadow using CCSM (CompizConfig Settings Manager). The suggestion to 'override Theme Settings' in 'Ubuntu Unity Plugin' has not helped. However, there seems to be a temporary fix if I enable the setting and disable it. i.e. the messy drop shadow disappears (for newer windows too) but the 'close/minimize/restore' buttons become pink noise. Any suggestion on what I could do next to solve this would be helpful. I renamed the ~/.cache/conpizconfig-1 folder hoping some texture cache that might have messed up would clear up, but with no success.


I use to set up my Ubuntu desktop from scratch, (Ubuntu server + Xorg + Openbox etc...). But I found out that in the 20.04 lts version, Xorg comes with Gnome out of the box. I tried sudo apt install xorg-server but I get an error: E: Unable to locate package xorg-server Is it still possible to install Xorg without installing Gnome ?


Question on determinants of matrices changing between integer matrices

The following problem came up from a though I had while reading:  Let's say we have $M=\mathbb{Z}^n$ and we have another free $\mathbb{Z}$-module, $N$, inside of $M$ also with rank $n$.  We know we can make a matrix $A$ that changes $N$ to its representation in $M$ (ie has as columns the basis $N$ expressed in coordinates coming from the basis of $M$). If the index of $N$ in $M$ is $m$, I am pretty sure just from tinkering that the determinant of $A$ should also be $m$, however, I have not been able to show this.  It is unclear to me how to proceed. I though maybe I could do something related to the points in $\mathbb{Z}^n$ that are within the unit box of $N$, but I cannot really make sense of this.  Thank you for any help or direction.


I am looking for tool bar icon files either .svg or in any other picture format. But I couldn't find them. Other icons are in the blender_icons.svg file in "release\datafiles"  Where are the tool bar icons ?


Why was a 3 year old question which was voted up heavily and viewed over 9000 times blocked?

I posted this question in 2009 when Apple was still short with documentation about iPhone development and there were very few book or blogs related to development. I posed the question so that iPhone developers could share the resources they knew about and found useful.    It was voted up and I was even given a badge for it as a popular question. It has over 9000 views. Then 3 years later in 2012 it was closed as not constructed. Since it was constructive and useful for many people for 3 years and every single response was constructive I do not see how it was suddenly marked as not constructive. This is the kind of question which makes SO useful, yet now certain users are blocking this sort of interaction from being possible on SO.  I read through the guidelines and I do not see why it was closed.    And after 3 years what is the point? Why would someone go back to a very old question to close it? Are they hunting for points? And if so why are users being awarded points for closing out old questions? This seems like a gross abuse by people who are overstepping their bounds. The people who are voting to close good questions with useful responses need to be prevented from closing more questions and the questions they have been closing should be reviewed. SO cannot become like Digg.


Let $a$ and $b$ be two real positive numbers. Show that $a+b+\frac{1}{1+ \sqrt{ab}} \ge \frac{5}{2}$.

Edit: Let $a$ and $b$ be two real positive numbers. If $\frac{1}{a} + \frac{1}{b} = 2$, show that $a+b+\frac{1}{1+ \sqrt{ab}} \ge \frac{5}{2}$. How to factorize the term $\frac{1}{1+\sqrt{ab}}$ out, to get ineq by the AM-GM ineq?


Java Remove from one ArrayList and move to another

I am trying to move one class from an arraylist to another of the same type but associated with a different class. The reason im doing this is that the vehicle is moving from one class (Depot) to another. And I want to replicate that. However I'm finding it difficult to do so.  Here is my code:  if (depotSelection.equals("Lpool")) {     Vehicle v = depots.get(depotNo).getVehiclebyReg(vehicleSelection);     depots.get(0).makeVehicle(v);     depots.get(depotNo).removeByVehicleReg(vehicleSelection);     exit = true;     break; } if (depotSelection.equals("Leeds")) { Vehicle v = depots.get(depotNo).getVehiclebyReg(vehicleSelection); depots.get(1).makeVehicle(v); depots.get(depotNo).removeByVehicleReg(vehicleSelection); exit = true; break; } if (depotSelection.equals("MChester")) {     Vehicle v = depots.get(depotNo).getVehiclebyReg(vehicleSelection);     depots.get(2).makeVehicle(v);     depots.get(depotNo).removeByVehicleReg(vehicleSelection);     exit = true;     break; }   And here is the code to that I am using to remove it:  public void removeByVehicleReg(String regNo) {     vehicles.removeIf(v -> v.getRegNo().equals(regNo)); }   This is the current exception I am getting:  Exception in thread "main" java.util.ConcurrentModificationException     at java.base/java.util.ArrayList$Itr.checkForComodification(ArrayList.java:1042)     at java.base/java.util.ArrayList$Itr.next(ArrayList.java:996)     at DepotSystem.reAssignVehicles(DepotSystem.java:400)     at DepotSystem.depotMenu(DepotSystem.java:166)     at DepotSystem.logOn(DepotSystem.java:123)     at DepotSystem.entryMenu(DepotSystem.java:89)     at Entry.main(Entry.java:10)


Why does Blender create a new copy of a material when I duplicate an object?

For example, I add a circle shape, and give it a material named Material. When I duplicate it, it has a new material named Material.001. That isn't helpful at all, and is something I've proven to be a cinch in cluttering my hard-earned material stash for, say, logo remakes.


According to the science behind becoming small and large, the sub-atomic distances are shortened or lengthened, and subsequently the small guy has a great density and his punches carry a greater force. By this logic, shouldn't the small tank be at least as heavy as the original, if not far more powerful? Or should not the enlarged ant be so less dense, that it floats in the air!?


What is the formal definition of Degree of Freedom?

Is the degree of freedom defined in  same as the degree of freedom in ? If not what is the formal definition of degree of freedom in thermodynamics?


Is there a way to save selection by faces

I'm trying to find a way to save selection faces, tried Vertex Group, the issue with Vertex Group is that it adds the faces that are marked by 4 vertices that are added to the Vertex Group, there are some cases were this doesn't apply, the image explains what I mean. So is there a way to save my selected faces, so I don't have to go through the whole process of reselecting them each time I need to do so? If you check the image, I didn't assign the hatched faces to the Vertex Group, still when I select the Vertex Group, they get selected, I understand that they got selected because the four boundary vertices are assigned to the Vertex Group, I need to save only face selection, not vertex selection.


How do I calculate a time delta in my Google Spreadsheets?

I've got a Google Spreadsheet that looks roughly like this:   Date        | Start time  | End time    | Minutes  ------------+-------------+-------------+-----------  1/11/2012   | 11:39       | 12:41       | ?!  ------------+-------------+-------------+-----------              |             |             |    Right now if I fill in the number of minutes between the two times of day by hand. Is there a straight-forward way to calculate a time delta and have the spreadsheet do it for me?


How can I break up a picture in three segments for separate framing?

I have a wonderful picture of our horse (in portrait) and would love to enlarge it and frame it for my husband. I was thinking of breaking the picture up into three different segments and then framing each one and putting it up on our wall.  What program could I use and how big could I make the picture go before I lose quality to pixelation?


Publishing work in areas you're no longer interested in

If one obtains results in one area of a field (say during an MSc thesis) before deciding that one is not interested in making a career in that area, should one take the time (as a PhD student) to get make those results publishable, or is it better to focus on the new area?


Touchpad suddenly stopped working on Ubuntu 20.04

I am running Ubuntu 20.04 on my Acer Swift 3. This occurred when my system froze because of Mozilla Firefox and I forced restarted the laptop. Since then my touchpad stopped working. I tried to reinstall xserver-xorg-input-synaptics and xserver-xorg-input-libinput but nothing worked. Please help me.


Parse (split) a string in C++ using string delimiter (standard C++)

I am parsing a string in C++ using the following:  using namespace std;  string parsed,input="text to be parsed"; stringstream input_stringstream(input);  if (getline(input_stringstream,parsed,' ')) {      // do some processing. }   Parsing with a single char delimiter is fine. But what if I want to use a string as delimiter.  Example: I want to split:  scott>=tiger   with >= as delimiter so that I can get scott and tiger.


Let $X$ be a real Banach space, let $f:X\rightarrow \overline{\mathbb{R}}$ be a functional. We have known that:   If $f$ is weakly lower semicontinuous then $f$ is weakly sequentially lower semicontinuous; If $f$ is weakly sequentially lower semicontinuous then $f$ is lower semicontinuous.   a) I would like to construct two counterexamples to show that the reverse is not true.      (It is interesting to find counterexamples in Hilbert space.)  b) When do these concepts coincide?  Thank you for all help and comments.


Iterating through numbers by 0.01 adds .0000000000000001 after a few iterations

I am trying to create a couple arrays of numbers from 1.0 to 1.25. I use the following code:  heightDisplayArray: [String] = [] heightArray: [Double] = []  for i in 1.stride(to: 1.25, by: 0.01){     heightDisplayArray.append("\(i) meters")    heightArray.append(i)  }  print (heightDisplayArray) print (heightArray)   For some reason, results are appending as expected to heightDisplayArray, but is adding some unexpected numbers to heightArray. The console shows the following:  ["1.0 meters", "1.01 meters", "1.02 meters", "1.03 meters", "1.04 meters", "1.05 meters", "1.06 meters", "1.07 meters", "1.08 meters", "1.09 meters", "1.1 meters", "1.11 meters", "1.12 meters", "1.13 meters", "1.14 meters", "1.15 meters", "1.16 meters", "1.17 meters", "1.18 meters", "1.19 meters", "1.2 meters", "1.21 meters", "1.22 meters", "1.23 meters", "1.24 meters"]  [1.0, 1.01, 1.02, 1.03, 1.04, 1.05, 1.0600000000000001, 1.0700000000000001, 1.0800000000000001, 1.0900000000000001, 1.1000000000000001, 1.1100000000000001, 1.1200000000000001, 1.1300000000000001, 1.1400000000000001, 1.1500000000000001, 1.1600000000000001, 1.1700000000000002, 1.1800000000000002, 1.1900000000000002, 1.2000000000000002, 1.2100000000000002, 1.2200000000000002, 1.2300000000000002, 1.2400000000000002]   How can I correct this behavior? I could change heightArray to be an Array of Strings instead of Doubles, but I'd prefer to find what is actually causing this to occur.


Excess charge on an insulator and conductor

So I was recently wondering what happens to the excess charge when it is placed on an insulator or conductor e.g. rubbing two objects together. I know in the conductor the electrons are free to move whereas in the insulator they in general are not very mobile so the charge stays in a small region. But why does this happen? I know about the differences in insulator and conductor band structure, how is this related? Do the excess electrons become part of the band structure?  Thanks!


Who (and Why) started the "electrons are negative, protons are positive" convention?

For some reason everyone labels electrons using a minus sign and protons using a positive sign, even though the opposite seems more intuitive:      Who started the convention that electrons should be "negative" and protons should be "positive"?  What's the reason for choosing so?


I can't install any plugins on QGIS since updating to 2.18 (I am running High Sierra). I am connected to the QGIS Plugin Repository yet receive the error message:     Plugin installation failed:Failed to unzip the plugin package.   Probably it's broken or missing from the repository. You may also want   to make sure that you have write permission to the plugin directory.   I have downloaded the plugin (openlayers) and extracted to the .qgis2/python/plugins/ directory but receive the error message: No QGIS plugins found. I am not using a proxy so don't think that is the error.   Any suggestions?


Passing list of IDs to WHERE IN from C# code

Challenging issue you have encountered already ?   This is my challenge.  I have the query as follows - MSSQL Server 2017 calling from my C# application.  SQL  update slides set isBorrowed=0, updated_by='Daniel' where id in (1,2,3);   C# code to achieve above  'Update Slides SET isBorrowed=1,updated_by=@update_by  WHERE id IN (@ids)'     string updateDonorQuery = "UPDATE slides " +                             "SET isBorrowed=1,updated_by=@updated_by WHERE id IN (@ids)";                         command.CommandText = updateDonorQuery;                         command.CommandType = CommandType.Text;                    command.Parameters.AddWithValue("@ids",list_ids.Split(',').Select(int.Parse).toList());                    command.Parameters.AddWithValue("@updated_by", "Full name   Now The error is saying : "Exception on my command not expecting to receive list"  Then , i have changed to a string like this:  string list_ids = "1,2,3";  command.Parameters.AddWithValue("@ids",list_ids); command.Parameters.AddWithValue("@updated_by", "Full name")   Agin code throw exception that complainant i have passed in nvarchar values instead of int. I guess interested the code as '1,2,3' when getting ids.  Guys i need a breakthrough , i hate loops.


Is there a route that would allow travel to the US from the UK or Schengen area, given the US travel ban?

I'm a European citizen living in the US on a work visa. Due to some unfortunate circumstances, I need to urgently visit my home country. However I would like to get back to the US after my visit is complete. Flying from the US to Europe is not a problem as there are still daily flights between some city pairs. However going back could be tricky, as  anyone who has been in the Schengen area in the past 14 days from re-entering the country.   Is there a flight route that would let me from Europe to some country, stay there for 14 days and then fly to the US? Canada is out, as they've banned international visitors. Mexico seems to keep their border open, but I  any direct European flights from their airports. Almost every other country either suspended flights or doesn't allow foreign nationals to enter.


I'm following the donut tutorial. When I see the viewport the icing is there    However, after rendering it is missing    I already check all the cameras on ray visiblity


How do I upgrade to the release version of 16.04 if I am running Beta?

OS: Ubuntu Xenial Xerus (development branch) (GNU/Linux 4.4.0-18-generic x86_64)  Hi I've installed and configured the final beta of 16.04 and I see it says (development branch).  When the official version is released will it automatically update to the production release version when I run one of the following:   apt-get upgrade do-release-upgrade apt-get dist-upgrade   Do I have to modify something to start pulling from the prod/release branch when it's officially released?  The box is stable and working well. Will I be able to maintain the current configuration or will a complete re-install be needed?


Could someone be able explain how to add prime divisors or their multiplication with the locally finite set $n_{Z} Z$ in $\sum n_{Z} Z$? .


Use PyQGIS to make grid on a vector file

I am new to Python and I am using the Python console in QGIS 3.10 to make the coordinate grid on a vector layer. I had lots of vector files which are basically square shaped of 500 meters but all are of different location. I want to export this vector file but after making grid on top of that. I want to do it in Python as I can loop it and do all the process at once. My workflows goes like this:  Load vector layer Open map canvas Display vector layer in map canvas Make coordinate grid on top of that Export that as image  The sample image of what i want is like this: Initial Vector layer:  After making Grids on that  Here is my code and in output it is nit creating the grids ` fn = r"C:\Users\Asus\OneDrive\Documents\map secien\360m\parent grid\grid_no_A1.shp" layer = iface.addVectorLayer(fn, 'grid_no_A1', 'ogr')  from qgis.PyQt import QtGui layers = QgsProject.instance().mapLayersByName('grid_no_A1') layer = layers[0]  project = QgsProject.instance() manager = project.layoutManager() layoutName = 'Layout1' layouts_list = manager.printLayouts()  # remove any duplicate layouts for layout in layouts_list:     if layout.name() == layoutName:         manager.removeLayout(layout)  layout = QgsPrintLayout(project) layout.initializeDefaults() layout.setName(layoutName)         manager.addLayout(layout)  # create map item in the layout map = QgsLayoutItemMap(layout) map.setRect(20, 20, 20, 20)  # set the map extent ms = QgsMapSettings() ms.setLayers([layer])  # set layers to be mapped rect = QgsRectangle(ms.fullExtent()) rect.scale(1.0) ms.setExtent(rect) map.setExtent(rect) map.setBackgroundColor(QColor(255, 255, 255, 0)) layout.addLayoutItem(map) map.attemptMove(QgsLayoutPoint(5, 20, QgsUnitTypes.LayoutMillimeters)) map.attemptResize(QgsLayoutSize(180, 180, QgsUnitTypes.LayoutMillimeters))   grid = QgsLayoutItemMapGrid(layout) out = QgsLayoutItemMap(layout) grid = QgsLayoutItemMapGrid("hr", out) grid.annotationEnabled() grid.setIntervalX(0.1) grid.setIntervalY(0.1) grid.setAnnotationEnabled(True)  layout.addLayoutItem(out) layout = manager.layoutByName(layoutName) exporter = QgsLayoutExporter(layout) fn = r'C:\Users\Asus\OneDrive\Documents\map secien\layout_export.jpeg' exporter.exportToImage(fn, QgsLayoutExporter.ImageExportSettings())


Uninstall all programs installed by Homebrew

I am wondering if there is a way to uninstall all "programs" installed by Homebrew? I was using it and installed programs that corresponded to programming or using C/C++ and used the terminal to compile it but will not be using it in a few months.


How to create a Round Edges Effect on an object?

I'm able to import an object into Blender which was created in MagicaVoxel. The object keeps the desired texture in Blender and looks like this in Edit Mode.  I want to add a "Rounded Edges" or "Rounded Grids" effect onto this object so it looks similar to this: The result should be useable in Unity as well. Other solutions from this site like  sadly don't work. I've tried to work with Normal Maps and UV Mapping but these approaches apparently didn't work due to the shape of the object and due to the fact that it comes with material.


Could not calculate the upgrade, Upgrade 12.04 to 14.04

I get the error  Could not calculate the upgrade  An unresolvable problem occurred while calculating the upgrade.   This can be caused by:  * Upgrading to a pre-release version of Ubuntu  * Running the current pre-release version of Ubuntu  * Unofficial software packages not provided by Ubuntu  If none of this applies, then please report this bug using the command 'ubuntu-bug ubuntu-release-upgrader-core' in a terminal.   Any solution?


Provided that $x$ is positive, when does the following converge? $$x^{x^{x^{x^{...}}}}$$      I just had a talk with my friend who is taking a calculus class and he is dealing a lot with divergence and convergence stuff. His TA said that if anyone could answer this and write a proof, he or she doesn't have to come to the recitation class anymore. This drives me a lot.   So here is my work, but I don't really know if this is correct. Could anyone shed some light on this?     I haven't done any real analysis before so I'm trying to make use of   whatever I can use, and my plan is to find the critical points of $y'$   and look at the graph of $y=f(x)$. First let   $f(x)=x^{x^{x^{x^{...}}}}=y=x^y$, then I have $$ \ln{y}=y\ln{x} $$ $$  \frac{d(\frac{\ln{y}}{y})}{dx} = \frac{d\ln{x}}{dx} $$ $$  \frac{1-\ln{y}}{y^2} \frac{dy}{dx} = \frac{1}{x}$$ $$ y'=  \frac{f^2(x)}{x(1-\ln{f(x)})} $$ Now I noticed that the critical   points are $x=0$ and $f(x)=0$ or $f(x)=e$. Since   $f(x)=x^{x^{x^{x^{...}}}}$ is an increasing function, the graph of   $y=f(x)$ would go up vertically at some point as $x$ increases, and that   is when the function diverges. From these 3 critical points, $f(x)=e$   seems to make most sense. By plugging $f(x)=e$ back into $y=x^y$, it's   not hard to see that $f(x)=e$ occurs at $x=e^{\frac{1}{e}}$. So the   function converges when $x\in (0, e^{\frac{1}{e}})$   Edit: I just noticed something strange in my proof: $$ y'= \frac{f^2(x)}{x(1-\ln{f(x)})} $$ When $f(x)>e$, the denominator on the right hand side is negative. But since $f(x)$ is an increasing function, therefore, shouldn't $y'$ be positive? Now it seems to deep for me to perceive...


Transferring saved characters and/or worlds between different platforms

Is it possible to transfer Terraria characters and/or worlds between platforms? I am specifically asking about transferring from Xbox One to PC.


Java Date() is auto correcting the date we type in an input text field

I have a Spring mvc form with input text field. I map that field with a java Date object. When I type the date wrong (For example 34/01/1985), in the backend it is auto correct the date and give it as 03/02/1985 (03 Feb 1985). I want to stop this auto correction to validate the in the backend.  Folks, give me a solution?   Update :  <form:input path="person.dateOfBirth" placeholder="DD/MM/YYYY"/>   public class Person  implements Cloneable{  @DateTimeFormat(pattern = "dd/MM/yyyy")     private Date dateOfBirth;     public Date getDateOfBirth() {         return dateOfBirth;     }     public void setDateOfBirth(Date dateOfBirth) {         this.dateOfBirth = dateOfBirth;     } }  public void  post(              PortletSession session,             ActionRequest request,             ActionResponse response,              @ModelAttribute("form") Form form,             BindingResult errors,             ModelMap mm) throws Exception {  print(form.getPerson().getDateOfBirth());  }


I have an Aspera Jazz 7.0 which had frp  turned on. Because of weird network issue, I had to reset it. But I forgot my account password and the phone number. I can go with a new account, but I can't turn off the frp . I tried fastboot. But can't hard reset it. How can I turn it off?


Word for the property changed by reflection

If I take a shape and its mirror image, what is the word for the property in which the two differ? For example, they differ in position after a translation, or orientation after a rotation.  If the original shape had its vertices labeled clockwise, then this word would pick out whether or not the vertices remained clockwise or not (and would still apply for non-chiral shapes like squares where the mirror image would otherwise look the same).


Server not powering on after upgraded to Intel Xeon E5-2695 v2

Have a ProLiant DL360p Gen8. Old CPUs were E5-2670. Upgraded HP latest   Server does not power on any more. See amber LED light on the CPU in the Systems Insight Display.  As far as I know this CPU is supported on this server. What am I missing?


How to create a site collection using C# remotely for sharepoint 2013 and 2016

I would like to create for sharepoint on premise a site collection remotely.  However, the only piece of code I found on internet is for sharepoint online   using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; using System; using System.Security;  namespace CreateSiteCollections { class Program {     static void Main(string[] args)     {            //Open the Tenant Administration Context with the Tenant Admin Url         using (ClientContext tenantContext = new ClientContext("https://yoursite-admin.sharepoint.com/"))         {             //Authenticate with a Tenant Administrator             SecureString passWord = new SecureString();             foreach (char c in "password".ToCharArray()) passWord.AppendChar(c);             tenantContext.Credentials = new SharePointOnlineCredentials("admin@yoursite.onmicrosoft.com", passWord);              var tenant = new Tenant(tenantContext);              //Properties of the New SiteCollection             var siteCreationProperties = new SiteCreationProperties();              //New SiteCollection Url             siteCreationProperties.Url = "https://yoursite.sharepoint.com/sites/codesite";              //Title of the Root Site             siteCreationProperties.Title = "Site Created from Code";              //Login name of Owner             siteCreationProperties.Owner = "admin@yoursite.onmicrosoft.com";              //Template of the Root Site. Using Team Site for now.             siteCreationProperties.Template = "STS#0";              //Storage Limit in MB             siteCreationProperties.StorageMaximumLevel = 100;              //UserCode Resource Points Allowed             siteCreationProperties.UserCodeMaximumLevel = 50;              //Create the SiteCollection             SpoOperation spo = tenant.CreateSite(siteCreationProperties);              tenantContext.Load(tenant);              //We will need the IsComplete property to check if the provisioning of the Site Collection is complete.             tenantContext.Load(spo, i => i.IsComplete);              tenantContext.ExecuteQuery();              //Check if provisioning of the SiteCollection is complete.             while (!spo.IsComplete)             {                 //Wait for 30 seconds and then try again                 System.Threading.Thread.Sleep(30000);                 spo.RefreshLoad();                 tenantContext.ExecuteQuery();             }              Console.WriteLine("SiteCollection Created.");          }      } } }   How can I tweak the above code to make it work on sharepoint 2013 et 2016  Thanks


Is entropy increase in disorder or 'energy-dispersal'?

My teacher explained entropy like this:  It is increase in disorderliness. Take a glass jar put three layers of blue marbles in it then put three further layer of red marbles, now shake the jar, after some time you will find all the marbles get mixed up equally, after this, however much you shake there will NEVER be a time when the blue marbles come back to their original position and the red marbles to theirs.  The mixing of the marbles to a maximum extent is the highest entropy, and it always increases until it reaches its maximum, if you have to decrease entropy you have to introduce some external force. And this is what I have read else where   Although it doesn't seem to contradict but I want to confirm if this is the right analogy for the explanation?


I live in a small town home and have limited indoor bike storage. The space that I do have outdoors is too small for products like the tidy tent. Any recommendations?


Windows 7 - 32bit version of mfc100u.dll in both 32 and 64 bit directories

I keep getting the same problem over and over again. After I install windows 7 some programs install Visual studio redistributable 2010 - both x86 and x64 versions. Everything runs fine for a while and then I get and error That a program can't run. Usually it's Nikon's ViewNX 2. When I check the program with depends it sais that MFC100U.DLL is x86 version. So I check it and indeed it's the same file in both locations: C:\Windows\System32\mfc100u.dll C:\Windows\SysWOW64\mfc100u.dll Both files are x86 and are 4,422,992 bytes long. That's different from the one that's installed by the redistributable x86 - 4,368,720, so it must be comming from windows update.  I fix it by taking MFC100u.dll (the x64 versuib) from another computer and put it in C:\Windows\System32.  So why are Microsoft sending me the same bad file every time? Or is there anything else happening?  Edit:  The question is not a duplicate of  If you read carefully I never said the file is missing. I have both 64 bit and 32 bit versions of vc2010 installed, and everything works fine for a while until one day after some updates (but I'm not sure the updates are causing it) some programs stop working. I check them with dependancy walker and it says that the file MFC100u.dll in windows/system32 is actually 32 bit  while it should be 64 bit. So when this happens both system32 and SysWOW64 have the same file - same size, both 32 bit. And yes, I check that with a 64 bit program to make sure that windows/system32 is not redirected to the 32 bit version.  Note that this is the third time I reinstall my windows and this happens. and this is noticed on 3 computers in total. Something replaces the 64 bit version of this exact file with 32 bit version.


What is a good SSH server to use on Windows?

In my spare time I remotely support my wife's office via VPN into a Windows Server. I am about to purchase a wireless broadband service which doesn't support VPN.  I don't want to open up the remote desktop ports directly, and I would like to set up an SSH tunnel into the network, and if necessary then VPN over the top of that.  What is the best windows SSH Server implementation to use on a Windows 2003 Server, or should I just be using ?


Number of bases of $F_2^3$:  Any ideas in which to express this?.  Is the formula $V=F_P^3$ in any way applicable?


How can we split a polygon within another polygon in Qgis?

How can I split the green area as a separate polygon fro the grey one in QGIS?


Finding A Function For The Harmonic series

Is it possible to formulate a function that can generate the next number in the harmonic series, for instance:  When $$ y = 4,$$ $$x=1+\frac{1}{2} +\frac{1}{3}+ \frac{1}{4}\ldots$$  Thanks for your time and effort.


Apt gives warning when accessing local mirror on same box but not on remote boxes

All systems involved in this question are Ubuntu 18.04.1 or flavors.  I've successfully set up a local mirror on my home server.  All the other systems on our LAN are able to connect to the mirror and do updates and upgrades without any warnings or errors.  They connect over ssh (because, reasons) using sources.list statements like this:  deb ssh:[server_name]/apt-mirror/mirror/us.archive.ubuntu.com/ubuntu/ bionic main restricted   The server itself uses sources.list statements like this:  deb file:[directory]/apt-mirror/mirror/us.archive.ubuntu.com/ubuntu/ bionic main restricted   The server system can successfully do updates and upgrades, but it always emits a warning (or maybe a note) like this:  N: Download is performed unsandboxed as root as file '[directory]/apt-mirror/mirror/us.archive.ubuntu.com/ubuntu/dists/bionic/InRelease' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)   I added the user _apt to the group which has access to the mirror, but that didn't have any effect. That doesn't make sense to me because if the warning means what it says, that should have fixed it.  How can I correct the situation to get rid of this note/warning?


Convert 13 digit UTC epoch time to Java Instant UTC format?

I need a java function to convert 13 digit epoch utc time in milliseconds to Java Instant time in UTC. Can anyone please help? input : 1611476543540 output : 2021-01-24 08:23:13


How to add class when create checkbox with javascript

I have simple javascript:  function createNewCheckboxt(name, id){     var elem = document.createElement('div');      var checkbox = document.createElement('input');     checkbox.type = "checkbox";     checkbox.name = name;     checkbox.value = name;     checkbox.id = id;      var label = document.createElement('label')     label.htmlFor = id;     label.appendChild(document.createTextNode(name));      document.getElementById("brand").appendChild(elem);     document.getElementById("brand").appendChild(checkbox);     document.getElementById("brand").appendChild(label); }   how to add class for styling? Because when I add div.class="checkbox" doesn't work


Skipping lags in autoregressive modeling?

is it possible to skip immediately preceding time points? So that, if, for example, you are using model order 2, that is, two time points, but not the two immediately previous time points, but rather, say for example, skipping 2 points, and then using those two points.  So, e.g., it would be y=x(t-3) + x(t-4).


I am trying to port Python 2 to Python 3, but I am having trouble importing Glade:  import gtk.glade  ImportError: cannot import name glade, introspection typelib not found   Any idea how to fix this?  Thanks


If I am young, is it preferrable to contribute after-tax to my 401k?

At the company where I work, I have three options for contributing to my 401(k).   Before Tax Roth After Tax   I'm not sure if I totally understand what each of these means. This is what I am thinking happens. The money that I contribute Before Tax is eventually taxed when I withdraw from my 401(K) when I retire. The money that I contribute to Roth and After Tax is taxed up front, and when I retire, it is not taxed.  If this understanding is incorrect, then let me know.   Otherwise, here is my question. If I am less than two years into my working career, is it smarter to contribute to Roth/After Tax (as opposed to Before Tax) because I make a comparatively smaller amount than when I retire?  I have asked others about this, but I don't think I am understanding the particulars of this, and it would really help if someone explained this to me clearly.  On a somewhat-related note, my company matches my contributions to a point, and that is done Pre-Tax. If I contribute 6% or more of my salary, they will contribute equivalently up to 4% of my salary.


apt-get install is not working because of dpkg, how to solve

I can't install any thing using  apt-get install   It gives this error:     E: could not get lock /var/lib/dpkg/lock - open (11: Resource   temporarily unavailable)   E: unable to lock the administration directory (var/lib/dpkg), its   another process using it   I tried   dpkg --configure -a  dpkg: error: dpkg status database is locked by another process.  dpkg --configure -a --force-congnew dpkg: error: dpkg status database is locked by another process.   Although I have shut down and restart the system to kill all other hidden process but do not know how to fix it.  I am using all these commands as a super user.


Remove a site from Google search once it has been retired and shut down

I’m shutting down my website which has a few thousands pages. What is the best way to remove my entire site and related pages from Google search results?    has been discussed as a possible duplicate but the answers there show what to do with a site that still exists.  Once the site is shut down, those mechanisms such as robots.txt won't be available.


In my scripts you're in an html page, add your name and that gets added to the database via php. However, characters like á are added as something like Ã£. My database is in utf8. How can I add these characters? áéç etc.


Did cosmological natural selection get a reprieve?

The March 2014 issue of Physics Today has an article by Lee Smolin in which he argues that natural laws must change over time. As examples of such theories, he gives Penrose's CCC and his own cosmological natural selection (CNS):  My understanding was that CNS had already been falsified in 2010 by the discovery of a 2-solar-mass pulsar:  But in the Physics Today article, Smolin says that CNS makes predictions and that, "The two main predictions,[4] first published in 1992, have survived despite several chances to falsify them since.[7] One of those is actually easy to state: The upper mass limit of neutron stars is at most two solar masses." The footnotes are:  [4] L. Smolin, Class Quantum Grav 9, 173 (1992); The Life of the Cosmos, Oxford U Press, New York (1997) [7] L. Smolin,  ; .  The two arxiv papers are from 2012 and 2008, respectively. Their abstracts don't mention anything about empirical tests of the theory. I searched the text of the 2012 paper for the word "neutron," and found only one mention of neutron stars, which is in a reference to this 1997 paper: ; since it's from 1997, it's from before the discovery of the 2-solar-mass pulsar.  What's up here? Did Smolin move the goalposts? Did he decide that the 2-solar-mass limit was fuzzy rather than sharp? Was the mass of this neutron star found to be a mistake? Are the error bars on its mass too big to allow it to falsify CNS?  The article also describes Penrose's CCC as alive and kicking, whereas in fact I think it's clearly been dead for several years. Can anyone edit my tag


User name while using windows 7 Remote desktop

Got my old laptop installed with Windows 7 Professional. While creating user I put my full name as Mahesh M. Kadam and completed the procedure.I feel as this laptop is going to be used at only home so putting full name would not be appropriate so changed account name to Mahesh. But while using Windows Remote Desktop I can't log in with new user name and password but able to log in or connect to my laptop with old user name. I'm not going for static IP address so I've to type in my full name every time i'm logging in which bit cumbersome.Solution tried given at  and kept as it is. So any any way to rectify this?