mysqldump not working/running via cron job

I have a crontask which runs at 1am every morning and dumps all databases.  0 1 * * * /var/backups/dumpit.sh 2>&1>> /var/backups/dumpit.log   The dumpit.sh source:  #!/bin/bash /usr/bin/mysqldump -u user -ppass --all-databases | gzip > /var/backups/mysql_`date +%u`.sql.gz   The script runs okay when executed manually but fails when run via the cron. Nothing is added to the dumpit.log file. Do I need to turn on logging in my .myc.nf file? Is there anything else I could try?


Creating boot media (ISO download) from Microsoft without admin rights?

Is there a way to create an official installation media e.g .ISO file from Microsoft without using admin rights? I am looking to download the official .ISO file for Windows 10 as a limited user.  I understand Microsoft offers such a tool from their website: . Additionally some sites claim to offer .iso downloads of various Windows installations, but may be untrustworthy or potentially outdated.  Long back I used to download official .ISO from Microsoft Digital River Content website and that was for Windows 7, and could do that easily without needing an installer nor admin rights  but now since it is a bit difficult to get the files directly from Microsoft servers, I am looking for a way to get the file on a limited user account.  I am running Windows 10 education, non admin account, but the current system is giving me problem and I wish to get the .iso file of the latest April update, but not via Windows update as internet connection is not reliable


I`m trying to create a sphere-like view using qgis and the "world from space"-projection  (essentialy an ortho-projection). ArcGIS wraps the shapes correctly but QGIS (2.01) produces nasty artifacts.    I have to produce the globes on a regular basis with different angles so does anyone out there have an idea how to fix this problem?


How do I install Ubuntu from an USB drive / create a live USB-stick in Windows?

I tried to use the usb-creator.exe from Ubuntu 10.10 desktop i386 ISO image and it does create an USB stick that doesn't boot. When I try to boot from it I get:     Operating System not found.   I try to do this from Windows 7 x64. I'm not looking to create a live Ubuntu media, only an installation USB disk.  I repeated the process several times and I even tried to reformat the USB drive (FAT32), no success yet.  The USB stick is a 8GB one.


Calculate the distance of an object in a photo Android

here is a formula for calculating distance if we know the size of the object.  Can I use this method for photos/frames made by Android cameras? And if I use landscape orientation for capture image do I still have to use sensor height or it should be width? (and also other parameters - object, image - width or height)?


Would it be possible to alert users or provide an information screen to users for relevant updates to posts they have upvoted or answered previously?

There is a small problem with Stack Exchange whereby new answers to an old question do not get enough votes. If a user has upvoted a question or an answer or answered a question it usually means the user is interested in it.  Could the Stack Overflow developers create an algorithm that shows the user their top 5 most relevant updates to posts they have interacted with.  Possible ways of notifying the users would be alert them, show as an information box on the profile or home screen perhaps. Would this be feasible? Edit - additional thoughts I think there are sufficient variables to calculate a score to determine how relevant an update is to a user; such as number of likes the question has received, whether a user has commented on a question or answer, whether they posted an answer could be rated higher for instance, a randomness so that some users get notified but not all, if a new answer has is upvoted quickly then that would also increase the score.  This kind of thing would feed into itself and good questions could then be recognised more easily. I'm not going to try to devise a scoring system but my point is that there are sufficient variables to calculate a rating to base a decision on what is relevant to the user (of course it could never be exact but it could be helpful). This score could then be fed into a form to inform the user; some suggestions:  a top 5 relevant updates page on the SE homepage a once every 5 visits alert if the relevant score is high enough then the user will get an alert so that the users do not get flooded with updates for every single update to a single question  I think there is potential here.


How can I load an asset from a file after I exported the build?

I am seeking possibility to switch character textures for game, even after I have compiled and built the binary.  For example I have a troll with a Sprite from "/assets/texture1.png"  Now after the game has been released, I can change this sprite.  Currently I have found this method  func _ready():     var texture = load("res://textures/troll1.png")     sprite.texture = texture   But after the export, when I change the troll1.png, the texture in the game remains the same.


Minecraft Vanilla 1.9 crash with problematic frame ig8icd64.dll

I go to the Minecraft menu and click on singleplayer to test out the 1.9 update. I made a new world (no mods), it said downloading terrain and then it crashes every time (I've tried about 20 times now).  Has anyone else experienced similar issues and know what the fix may be?  Here is the launcher log:  Completely ignored arguments: [--nativeLauncherVersion, 301] [00:35:12] [Client thread/INFO]: Setting user: Teddy_Cromwell [00:35:12] [Client thread/INFO]: (Session ID is <censored>) [00:35:14] [Client thread/INFO]: LWJGL Version: 2.9.4 [00:35:14] [Client thread/WARN]: Removed selected resource pack resources (no region and battle music).zip because it's no longer compatible [00:35:14] [Client thread/INFO]: Reloading ResourceManager: Default [00:35:15] [Sound Library Loader/INFO]: Starting up SoundSystem... [00:35:16] [Thread-5/INFO]: Initializing LWJGL OpenAL [00:35:16] [Thread-5/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org) [00:35:16] [Thread-5/INFO]: OpenAL initialized. [00:35:16] [Sound Library Loader/INFO]: Sound engine started [00:35:18] [Client thread/INFO]: Created: 1024x512 textures-atlas [00:35:26] [Server thread/INFO]: Starting integrated minecraft server version 1.9 [00:35:26] [Server thread/INFO]: Generating keypair [00:35:27] [Server thread/INFO]: Preparing start region for level 0 [00:35:28] [Server thread/INFO]: Preparing spawn area: 5% [00:35:29] [Server thread/INFO]: Preparing spawn area: 8% [00:35:30] [Server thread/INFO]: Preparing spawn area: 15% [00:35:31] [Server thread/INFO]: Preparing spawn area: 21% [00:35:32] [Server thread/INFO]: Preparing spawn area: 27% [00:35:33] [Server thread/INFO]: Preparing spawn area: 34% [00:35:34] [Server thread/INFO]: Preparing spawn area: 42% [00:35:35] [Server thread/INFO]: Preparing spawn area: 48% [00:35:36] [Server thread/INFO]: Preparing spawn area: 56% [00:35:37] [Server thread/INFO]: Preparing spawn area: 66% [00:35:38] [Server thread/INFO]: Preparing spawn area: 74% [00:35:39] [Server thread/INFO]: Preparing spawn area: 81% [00:35:40] [Server thread/INFO]: Preparing spawn area: 91% [00:35:41] [Server thread/INFO]: Preparing spawn area: 98% [00:35:42] [Server thread/INFO]: Teddy_Cromwell[local:E:6d7525a7] logged in with entity id 301 at (244.5, 69.0, 244.5) [00:35:42] [Server thread/INFO]: Teddy_Cromwell joined the game # # A fatal error has been detected by the Java Runtime Environment: # #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007fffcf6e6b37, pid=15456, tid=12424 # # JRE version: Java(TM) SE Runtime Environment (8.0_25-b18) (build 1.8.0_25-b18) # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.25-b02 mixed mode windows-amd64 compressed oops) # Problematic frame: # C  [ig8icd64.dll+0x16b37] # # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows # # An error report file with more information is saved as: # C:\Users\Connor\AppData\Roaming\.minecraft\hs_err_pid15456.log # # If you would like to submit a bug report, please visit: #   http://bugreport.sun.com/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # AL lib: (EE) alc_cleanup: 1 device not closed Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release


Capture the click event of dynamic Buttons in Bootstrap Modal using jquery

I hava Bootstrap model as below

Priority Queue Selection
           <button type="button" class="close" data-dismiss="modal" aria-label="Close">             &times;           </button>

           <button type="button" class="btn btn-danger cancel">Cancel</button>

   In this modal I am writing some dynamic buttons accoridng to the JSON response from server as below.  var scrn = '';           $.each(pqueueList, function(index, val)            {                scrn += '
';               scrn += '
';               scrn += '

'+val["pqName"]+'

'               scrn += '
';               scrn += '
';            });           $('#modal-text').html(scrn);           $("#PQModel").modal('show');         }   I am driving to capture the click event on each of the button as below.          $("#PQModel #modal-text div.btn").on('click',function(){           var value = $(this).attr('value');           alert("value "+ value);         });   The modal is coming as expected and buttons are coming as expected. But the click I am not able to capture button click event.I am not sure, where am I going wrong. Please help me solve it out.


Cannot remove a repository that complains it has no public key

I use Ubuntu Studio 16.04 LTS, 64 bit, into 3 desktop PC (Intel i5 and i7) and 4 laptops (Intel Pentium). All with 8 GB of RAM.  Since about a week ago, I've been getting the following message each time I try to update/upgrade the system:  https://download.01.org/gfx/ubuntu/16.04/main xenial InRelease" has no Public Key. It isn't safe to use this kind of repository.   I tried to remove that repository (which I don't remember adding) with the terminal command:  sudo add-apt-repository -r <repository to  remove>   But, even though the system seems to perform that action, the repository is used next time I type:  sudo apt-get update   This repository isn't visible in Synaptic Software Manager and/or Ubuntu Software Center.  How can I fix it?


How to convert from UTM to LatLng in python or Javascript

I have a bunch of files with coordinates in UTM form. For each coordinate I have easting, northing and zone. I need to convert this to LatLng for use with Google Map API to show the information in a map.  I have found some online calculators that does this, but no actual code or libraries.  is a projection library for Javascript, but looking at the demo it doesn't include UTM projection.  I am still pretty fresh to the entire GIS domain, so what I want is something ala:  (lat,lng) = transform(easting, northing, zone)


How to comfortably interact with famous professors?

I know that they are "just as human as we are", but I feel somewhat uncomfortable to talk nonchalantly with the top-notch math researchers and professors in my department because of their social position, their extremely superior knowledge and talent, and also because of their age.   Still, I feel that it is like a waste to have such interesting mind-expanding people around and not to interact properly and talk about maths when I meet them in the department (outside the lecture hall).    So my question is: according to your experience, what is the best (where best means: most polite, appropriate, acceptable, but also profitable) way to interact and make the most of the presence of such awesome professors? Can I discuss "lower" [mathematical and non-mathematical] subjects with them even though their actual (research) interests lie in much more abstruse topics?  Any suggestion (even in the form of a comment) is really appreciated.


I want to motivate the quadratic reciprocity theorem, which at first glance does not look too important to justify it being one of Gauss' favorites. So far I can think of two uses that are basic enough to be shown immediately when presenting the theorem:  1) With the QRT, it is immediate to give a simple, efficient algorithm (that can be done even by hand) for computing Legendre symbols.  2) In Euler's proof of Fermat's claim on the conditions in which a prime $p$ is of the form $x^2+ny^2$ (for certain small values of $n$) the proof is reduced to finding the conditions under which $p$ divides $x^2+ny^2$ for some $x,y$, hence to the question under which conditions is $-n$ a quadratic residue modulo $p$, which leads immediately to the QTR (for example, for $n=3$, where we get that $p\equiv_3 1$). I really like this example since it begins with an "historic" problem and proceeds to "discover" the QTR through special cases (which is what Euler did in practice - see Cox's book on "Primes of the form $x^2+ny^2$").  However, I am sure there are many more examples (and I'm especially curious as to how Gauss reached the theorem himself). I'd love to hear about them and receive references for further reading.


Finding a mapping that is not continuous but open

Find example of a mapping that is open but not continuous and a mapping that is closed but not continuous.   I striving with these questions.  I thought of using for the first case a map between $(\mathbb{Z},\tau)$ where $\tau$ is the co-finite topology to $(\mathbb{R},\tau')$ with the standard topology. I think the mapping would not be continuous and since any open set in $\mathbb{R}$ is infinite  and uncountable and the inverse image would need to be countable. However I am not seeing how to prove this with more rigorous mathematical terminology and I do not see how this mapping might be open.  Question:  Can someone help me solve this question?  Thanks in advance!


How am I supposed to find where a PCI slot is in a laptop?

An old laptop I found (an an Acer Aspire 5100 series BL51) gives this error:      Phoenix TrustedCore(tm) NB Copyright 1985-2005 Phoenix Technologies All Rights Reserved  System BIOS Version: V2.00     Bus:06, Device:02, Function:00 ERROR Resource Conflict - PCI in slot 03     Bus:06, Device:04, Function:00 ERROR Resource Conflict - PCI in slot 03     Bus:06, Device:04, Function:01 ERROR Resource Conflict - PCI in slot 03     Bus:06, Device:04, Function:02 ERROR Resource Conflict - PCI in slot 03     Bus:06, Device:04, Function:03   Based off of that error, I'm assuming there is a problem with PCI in slot 03, which I'm also assuming the item inserted into the PCI slot 03, but I cannot find which slot is which because they're not labelled or anything. I've tried looking on the Acer website but most things 404 and a PDF of the manual I found has nothing useful at all.  Without the manual, how can I find the problematic PCI slot and fix the issue?


What is the difference between CREATE INDEX and ALTER TABLE ADD INDEX?

I have searched the web but I have failed to find a conclusive answer for this question.   Is there any difference between CREATE INDEX and ALTER TABLE ADD INDEX?  Are there any problems that may arise when I use one or the other or do both work the same way?  Server version: 5.5.32 - MySQL Community Server (GPL)


How can I prove this: In a Euclidean domain $R,$ we have that $aR + bR = \gcd(a, b)R$? Here are my thoughts: I know that if $d = \gcd(a, b),$ then it can be written as a linear combination of $a,b$ but I do not know how will this help me in the proof.


C# invoke cmd/bat file in the same window

Using C# console we could invoke current cmd/bat files. But it always popup new command line window.  I've tried invoking my cmd/bat files one by one and could not known how to running them in the same window. Pretty simple as below:  static void Main(string[] args) {     Process.Start("first.cmd").WaitForExit(); // popup a new window      Process.Start("second.cmd").WaitForExit(); // popup a new window      Process.Start("third.bat").WaitForExit(); // popup a new window      Console.WriteLine("Press any key to exit ... ");     Console.ReadKey(); }   Is any way to start all them in current windown? How to void new popup?


im having great trouble with my program. It's very simple, and i've completed it to the last step. Now though, I cant get the forloop to work and print out the name of movies.   insertMov creates three movie objects. The objects contain name, language and rating. I think it could be a problem with my scanner but im not sure. Thanks!  `import java.util.Scanner; public class MovieRecommendation{ Movie  [] movarr  = new Movie[3]; Scanner scanner = new Scanner(System.in); public void insertMov() {     movarr[0] = new Movie   ("Avengers", "english", 2013, "pg" );     movarr[1] = new Movie   ("Ironman", "english", 2008, "pg" );     movarr[2] = new Movie   ("fantastic 4", "english", 2005, "pg" );     }  public String main() {     insertMov();      System.out.println("Hey, I hear you want to watch a movie.");     System.out.println("what language do you want the movie to be in?");     String langInp = scanner.nextLine();     System.out.println("Thanks! Now, what rating would you like your movie to be?");     String ratInp  = scanner.nextLine();       System.out.println("Awesome :D Here are the movies Chosen for you");      for (int i = 0; i < movarr.length; i++ ){          if ( langInp == movarr[i].getLanguage() && ratInp == movarr[i].getRating()) {             System.out.println(movarr[i].getName());         }      }      return ("Feel free to use again"); }   }`


a problem on roots of a real polynomial $p$ that has no roots in the open unit disc and $p(-1)=0$

Let $p$ be a real polynomial of the real variable $x$ of the form $$p(x)=x^n+a_{n-1}x^{n-1}+...+a_1x-1$$Suppose that $p$ has no roots in the open unit disc and $p(-1)=0$.Then which is/are true?   $1$.$p(1)=0$.  $2$.$\displaystyle{\lim_{x\to \infty}}p(x)=\infty$     $3$.$p(2)>0$     $4$.$p(3)=0$    product of the roots of the polynomial is $-1$. and it is a monic polynomial.If it has a root whose modulus is greater than one then it must have a root whose modulus is less than one which gives a contradicton. So it has roots $1$ or $-1$. since one root is $-1$ and product of the roots is $-1$ then it has a root $-1$.So 1 is true and 4 is false.obviously 2 is true. I am not sure about 3. since p has no root outside $[-1,1]$ so it does not change sign in $[1,\infty)$.So $p(2)>0$ or $p(2)<0$.But then I can not proceed.can I get some help?


var   iMath, iAfr: integer; begin   if cbMath.checked then     iMath := sedMathf.value div sedmatho.value and iMath * sedmathm.value   else     sedAfrm.setfocus; end;   My variables do not want to be initialized, how can I prevent this or fix this?


how to delete element from list in jquery?

I am trying to make a simple list using JavaScript and jQuery. I am using oops concept of JavaScript. I am able to add new element in list. I am facing one problem, I have two buttons to update and delete the row. I created an array in which I have all the objects. I wanted if user click on delete button it deletes from array, as well as from the list. Same if user update the item it should also get updated in the array and list   I tried doing like this     function Phonebook(){     this.phoneBookArray=[];     var defaultvalue= [{name:"abc",phonenumber:989123},{name:"pqr",phonenumber:9891462}]     this.phoneBookArray=defaultvalue;     console.log(this.phoneBookArray)    } Phonebook.prototype.addItem=function(username,phoneNumber){     this.phoneBookArray.push({name:username,phonenumber:phoneNumber})     this.displayItem(); }  Phonebook.prototype.displayItem=function(){     $("#phonelist").html('');     for(var i=0;i<this.phoneBookArray.length;i++){         $("#phonelist").append('
'+this.phoneBookArray[i].name+''+       this.phoneBookArray[i].phonenumber+'<button class="del">delete</button><button class="update">update</button>
')     } }  var phonedir=new Phonebook(); phonedir.displayItem(); $('#addItem').click(function(){      var name=$('#nameEdit').val();      var phone=$('#numberEdit').val();      if(name!=''&& phone!=""){        phonedir.addItem(name,phone);         $('#nameEdit').val('');         $('#numberEdit').val('');     }else{      alert('please enter number and name')        }  })   $('.del').click(function(){     //try to delete item from list as well as from phoneBookArray    console.log($(this).parent('li'))  })  $('.update').click(function(){     //try to update item from list as well as from phoneBookArray      // try to get selected item and fill on text field and update the list    //console.log($(this).parent('li'))  })


Underexposed image with Canon 5D III and flash

Just started using my Mark III with flash (Neewer TT560 Speedlite). And I'm getting strange results. At first I thought it was a battery issue and another set of batteries seemed to have fixed the problem, but now I'm getting this issue constantly.  This particular image was taken with following settings: f/2, 1/500s, ISO 500.  Any advise?


Can I make a big explosion when I shoot an arrow?

Can I testfor shot arrows and then make them explode?  Good would be if this would work only for player-shot arrows. Or, even better, could I do that when anybody shoots the arrow from a specific bow (somehow named or with another NBT tag), it explodes?


Until now until Blender 2.83.4 my GPU NVIDIA GeForce GTX TITAN X 12288 MB is recognized via CUDA. With Blender 2.90 and Blender 2.90.1 no GPU is seen, also not under CUDA. What is wrong? I'am therefor still working with 2.83.4 My computer Mac Pro (mid 2012) 2 x 3,46 GHz 6-Core Intel Xeon / 96 GB 1333 MHz DDR3 - Mac OS High Sierra 10.13.6


I have this in my .htaccess file:  <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ http://%1/$1 [R=301,L] RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ app.php [QSA,L] </IfModule>   It rewrites both, http://www.site to http://site, and site to site/app.php I also want to rewrite site/index.php to site/app.php. How can I do it? When I request /index.php I get a 404 response.  I've tried to rename app_dev.php to index.php en my local host, but doesn't work. I've done the next change in .htaccess:  order allow,deny allow from all <IfModule mod_rewrite.c>   RewriteEngine On   RewriteCond %{REQUEST_FILENAME} !-f   #   RewriteRule ^(.*)$ /app_dev.php [QSA,L]   #line deleted   RewriteRule ^(.*)$ /index.php [QSA,L]         #line added </IfModule>   and rename the file app_dev.php to index.php


Windows deletes HTML files when I delete a folder

I have saved a HTML web page. I got a .html file along with a folder which has the same name. Both of these seem to be linked magically:   if I delete the HTML file, the folder gets deleted as well if I delete the folder, the HTML file gets deleted as well   The question is 2-fold:   how do I delete the folder without deleting the HTML file? how does that technically work? How does Windows or NTFS perform the necessary linking?   I'm on Windows 7 SP1 x64, all updates. The files were saved using Firefox 61.0.1. However, on the disk, it's shown as a "Chrome HTML Document".


Show that for every $A\in M_{n}(\mathbb{R})$ with rank(A)=1 that $||A||_{op}=||A||_{HS}$. What happens in the general case?     Just to clarify the notations:  $||A||_{op}= \sup\left\{\frac{\|Av\|}{\|v\|} : v\in V \mbox{ with > }v\ne 0\right\}.$ $\|A\|^2_{HS}={\rm Tr} (A^{T}A) := \sum_{i \in I} \|Ae_i\|^2$   So using this inequality that I proved before:   $\|AB\|_{HS} \leq \|A\|_{\mathrm{op}} \|B\|_{HS} $ If I Substitute B for I I get the weak inequality, but I can't see how rank=1 helps me here..  Any help?


did + present tense (or ) Past tense of the verb

What did you say?   What you said.         How did you and mum guess I wanted Agnes?   how you and Mum guessed I wanted Agnes   What is the meaning of above two sentences? When should I use "did + present tense" and the past tense of a verb?


Start programs without needing an extra terminal and from the desktop

I am a total newbie to Ubuntu and just installed it yesterday, so please explain it, so someone who almost never used Linux can understand.  I would like to not have to open a separate Terminal to open stuff like Teamspeak and FileZilla and have to keep it open.  To open FileZilla I just have to run filezilla in Terminal. For Teamspeak I have to navigate into that folder and run ./ts3client_runscript.sh and then have to keep it open. How can I make desktop shortcuts for each the single command with Filezilla and the SH file for Teamspeak and make it, so I won't have a thousand terminals open the whole time?  And before anyone asks: I have the default desktop environment of the current Ubuntu LTS version. No idea how it's called. Would be great to know. Google just tells me three different ones.


I am trying to implement a wrapper library for an Arduino-based ESP8266 which will act as a Modbus controller.   The Modbus library I am using (ModbusMaster) has a function which sets what is to be done before each transmission: _modbus.preTransmission(void( *preTransmission)().   I am trying to figure out how to set my function MyWrapperClass::preTransmission() to be the callback function.  MyWrapperFunction::MyWrapperFunction() {     _modbus.begin(_slaveId, serial); //_modbus defined in header file ModbusMaster _modbus;    _modbus.preTransmission(this->preTransmission);   _modbus.postTransmission(this->postTransmission); }  void MyWrapperFunction::preTransmission() {   //Stuff before transmission }  void MyWrapperFunction::postTransmission() {   //Stuff after transmission }   But I get various compiler errors (depending on what I'm doing), including:  error: no matching function for call to 'ModbusMaster::postTransmission(<unresolved overloaded function type>)'   Also sorry if this is a duplicate - it is very hard to search for similar things when you don't know the terms to search for. I am sure that this has been asked before but I couldn't find an answer.


$X = \log_{12} 18$ and $Y= \log_{24} 54$. Find $XY + 5(X - Y)$  I changed the bases to 10, then performed manual addition/multiplication but it didn't yield me any result except for long terms. Please show me the way.  All I'm getting is $$\frac{\lg 18\lg54 + 5 \lg18\lg24 - 5\lg54\lg12}{\lg12\lg24} $$


How to set LaTeX so that PDF reader opens PDF file in a prespecified view?

When I open PDF file generated from .tex files in Adobe Reader I obtain 200% view and I'd like it to have much smaller? Are there some settings for my .tex files allowing to do that?


How can I improve questions marked as duplicate?

If I were in danger of being banned from asking questions, I'd be advised:     ... Also, edit your previous questions to improve formatting and clarity.   It happened to me, very recently. At the time, I only had three questions here on Meta SE. To quote Shog:     That's one positively-received question, followed by two duplicates - the last downvoted and deleted.   How do I improve a question marked as a duplicate?   Rewrite it to something else? Maybe that's gaming the system but at least its a way out. Rewrite it so that it is better than its predecessor? At least then it can maybe serve as a useful landing spot for a search engine result where the search terms matched it rather than the original. Get into the time machine, go back to just before posting the duplicate, do a better job of searching for alternate wordings of the question, then not post it? The only problem being, the Stack Exchange's search engine is, how to put it, far from perfect. Oh yes, and the time machine thing. Forget about it improving "duplicates" -- focus on improving deleted questions instead? How do I manage that?   Please, rethink the way you handle question banning warnings.


Can questions with an active bounty on them roomba?

I came across a question today which was older than 30 days, had just 30 views, and gotten a bounty (from a third person) today. It adheres to all of the criteria for the , therefore my question: can questions with an active bounty be automatically deleted by the roomba?  The dupe target does answer the issue: questions with an active bounty will not be automatically deleted. Can we fix the roomba help-page to reflect that? (If you're fixing it anyway, please also in-line the link to  at the end.)


when using Views Format:Unformatted List and Show:Fields I get lots of Style Classes referenced by default (e.g. "views-row-odd") within the resulting html-code.   1) Until now I couldn't find a corresponding css-file that defines formats for all the classes in the generated code. Am I missing something ?  2) As test, I tried to include a self-written css-file to the folder "modules\contrib\views\css" and referenced it in the views.info file (stylesheets[all][]=...). Unfortunately this doesn't seem to work, since the generated html code is missing <<@import url("hxx://adr/drupal/modules/contrib/views/css/my_style.css..:>>. What am I doing wrong ?  Thanks for your support,  Martin PS: Using Bartik as theme ...


galaxy s5 says battery temperature too high too low!

help me please. my galaxy s5 won't charge it says the battery temperature is too high or too low. i used to change my battery but when the new battery runs out of life and when i try to charge it, the same problem exist. what can I do? any helps or suggestion please. thank you.


How can I schedule my display to wake up?

I want to schedule my Win10's system display to automatically wake up at the same time every day.  The display automatically goes to sleep on idle (computer is still running - just display off).  I already have an event profile set up in Task Scheduler but need the right action to do this.    Need an integrated Windows-native solution that doesn't require third party tools. The marked duplicate does not have a solution like that.    Here is a proper duplicate:   With answer:


Java NullPointerException when doing a test from an arrayList

I wanna test the method DrawCard() from the class ModelPlayer that takes the first not-null Color value from the arrayList PoliticCards of the class PoliticCard and puts it in the arrayList politicCards of the class Player; and i get two NullPointerExceptions.  public enum Color {     BLACK, PURPLE } public class PoliticCard {     private static ArrayList<Color> politicCards;     public PoliticCard(){         setPoliticCards(new ArrayList<Color>());         int i=0;         while (i<13){//adds 13 Color values set to BLACK             politicCards.add(Color.BLACK);             i++;         }         while (i<26){//adds 13 Color values set to PURPLE             politicCards.add(Color.PURPLE);             i++;         }         }         Collections.shuffle(politicCards);      }     public static ArrayList<Color> getPoliticCards() {         return politicCards;     }     public static void setPoliticCards(ArrayList<Color> politicCards) {         PoliticCard.politicCards = politicCards;     }   } public class Player {     private int id;//id of the player, goes from 1 to 10     private ArrayList<Color> politicCards;     public Player(int id){         this.setId(id);     }     public int getId() {         return id;     }     public void setId(int id) {         this.id = id;     }     public ArrayList<Color> getPoliticCards() {         return politicCards;     }     public void setPoliticCards(ArrayList<Color> politicCards) {         this.politicCards = politicCards;     } public class ModelPlayer {      public void DrawPoliticCard(Player player){         int i=0;         if(PoliticCard.getPoliticCards().get(i)!=null){                 player.getPoliticCards().add(PoliticCard.getPoliticCards().get(i));//This // is the line where i get the first NullPointerException             PoliticCard.getPoliticCards().remove(i);         }else{             i++;             player.getPoliticCards().add(PoliticCard.getPoliticCards().get(i));             PoliticCard.getPoliticCards().remove(i);         }          }    } public class ModelPlayerTest {      @Test     public void testDrawCard() {         Player player = new Player(1);         ModelPlayer modelPlayer = new ModelPlayer();         player.setPoliticCards(null);         new PoliticCard();         modelPlayer.DrawPoliticCard(player);//This is the second line where i get NullPointerException         assertNotNull(player.getPoliticCards().get(0));     }  }


Prepositions to use when indicating locations

Possible Duplicate:          I am always confused with the prepositions to use when indicating an event happening at a place. Should I use "at" or "in" or "on"?  For example:     We had our dinner at the McDonalds at/in the shopping centre at/on Sixth   Avenue.   The McDonalds restaurant is in the shopping centre. The shopping centre is located at Sixth Avenue. So am I right to say "the McDonalds in the shopping centre at Sixth Avenue"?  Now, what if it was a street instead of an avenue? Say for example:     We had our dinner at the McDonalds at/in the shopping centre at/on Coral Street.   Here, somehow, I find it natural to say "the McDonalds at the shopping centre on Coral Street".  How do I determine the right prepositions to use? And how would the different prepositions give different meanings to the sentence?


While playing around with a fresh installation of 18.04, I've accidentally selected a photo for my user. I couldn't find an undo or cancel or remove option, so now I'm stuck with a photo on the login screen. Is there any way to return to the default faceless gray avatar?  My workaround would be to create a new user, grab a screenshot, cut the default image and use that as my new "photo" but if there's a real removal option I'd love to know about it.  Update: I did not take a photo with the webcam, just selected one of the provided images, so there is no .face file in my home directory.


Javascript determine if such object property exists based on a string

We have a module that allows users to create some scripts.  I would like to determine if user has used correct properties etc.  For example user has wrote:  var test = session;   I can do:  var something = eval("session"); if (!something){     // Throw error here }   But i'm facing issues with this:  var test = session.id; // session id property is "id123456"   I thought i can do:  var something = eval("session.id"); if (!something){     // Throw error here }   But it seems it really does this:  var something = eval("id123456");   Any suggestions how can i determine wheter property exist in this object, also property in property and further?  As i said, i'm not trying to determine some certain object for some certain property, the strcture can be:  session.id.toString().name ... and further  In addition, i have just tried this:  session.hasOwnProperty("id"); // returned false  session.id // returned "id123456"


I'm trying to get a nice tree without the overlaps, can anyone help me to improve my code?  \documentclass{standalone} \usepackage{amssymb} \usepackage{amsmath} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{dsfont} \usepackage{tikz} \usetikzlibrary{shapes} \usetikzlibrary{graphs}  \begin{document}       \begin{tikzpicture}[baseline,level/.style={level distance=20mm, sibling distance =35mm/#1},scale=1]         \node [ellipse split, draw] {$s_1<s_2$\nodepart{lower}\tiny $(s_1,s_2,s_3,s_4)$}             child{ node [ellipse split, draw] {$s_1<s_2$\nodepart{lower}\tiny $(s_1,s_2,s_3,s_4)$}                 child{ node [ellipse split, draw] {$s_1<s_2$\nodepart{lower}\tiny $(s_1,s_2,s_3,s_4)$}                     child{ node [rectangle, draw] {$(s_1,s_2,s_3,s_4)$}}                     child{ node [ellipse split, draw] {$s_1<s_2$\nodepart{lower}\tiny $(s_1,s_2,s_3,s_4)$}                         child{ node [rectangle, draw] {$(s_1,s_2,s_3,s_4)$}}                         child{ node [ellipse split, draw] {$s_1<s_2$\nodepart{lower}\tiny $(s_1,s_2,s_3,s_4)$}                             child{ node [rectangle, draw] {$(s_1,s_2,s_3,s_4)$}}                             child{ node [rectangle, draw] {$(s_1,s_2,s_3,s_4)$}}                         }                     }                 }                    child{ node [ellipse split, draw] {$s_1<s_2$\nodepart{lower}\tiny $(s_1,s_2,s_3,s_4)$}                     child{ node [ellipse split, draw] {$s_1<s_2$\nodepart{lower}\tiny $(s_1,s_2,s_3,s_4)$}                         child{ node [rectangle, draw] {$(s_1,s_2,s_3,s_4)$}}                         child{ node [ellipse split, draw] {$s_1<s_2$\nodepart{lower}\tiny $(s_1,s_2,s_3,s_4)$}                             child{ node [rectangle, draw] {$(s_1,s_2,s_3,s_4)$}}                             child{ node [ellipse split, draw] {$s_1<s_2$\nodepart{lower}\tiny $(s_1,s_2,s_3,s_4)$}                                 child{ node [rectangle, draw] {$(s_1,s_2,s_3,s_4)$}}                                 child{ node [rectangle, draw] {$(s_1,s_2,s_3,s_4)$}}                             }                         }                     }                     child{ node [ellipse split, draw] {$s_1<s_2$\nodepart{lower}\tiny $(s_1,s_2,s_3,s_4)$}                         child{ node [rectangle, draw] {$(s_1,s_2,s_3,s_4)$}}                         child{ node [ellipse split, draw] {$s_1<s_2$\nodepart{lower}\tiny $(s_1,s_2,s_3,s_4)$}                             child{ node [rectangle, draw] {$(s_1,s_2,s_3,s_4)$}}                             child{ node [ellipse split, draw] {$s_1<s_2$\nodepart{lower}\tiny $(s_1,s_2,s_3,s_4)$}                                 child{ node [rectangle, draw] {$(s_1,s_2,s_3,s_4)$}}                                 child{ node [rectangle, draw] {$(s_1,s_2,s_3,s_4)$}}                             }                         }                     }                 }             };     \end{tikzpicture} \end{document}


How to evaluate the following integral ? $$\boxed {\int_{0}^\infty \frac{\sin(t)}{t}\mathrm dt}  $$


Let $F$ be a free group. Prove that the subgroup generated by all nth powers, $\{x^n|x\in F \}$ is a normal subgroup of $F$.

What I feel confused is that:  For example, if $\{x^n|x\in F \}$ is normal, then the reduced word $yx^ny^{-1}\in \{x^n|x\in F \}$, How could it be possible?  This is also the exercise 3 on page 68 of Hungerford's textbook Algebra.


how can I avoid using 2 different tenses instead of each other?

Background: My name is Ali. I live in IRAN and my mother tounge is Farsi. My reference book in studying grammar is English Grammar in Use written by Raymond Murphy and I am sure you are familiar with this book.   Problem: One part of the book which I found confusing is the difference between present perfect continuous and simple. The unclear point (for me) is that writer has not specified in continuous form the action is in progress in present time or has recently or just stopped. Actually both of them has mentioned in unit 9 (my book is third edition).   For example      you are out of breath. Have you been running?    By the presumption that continuous form is for an action which is still going on we see our friend running doing exercises maybe jumping up and down then why asking question? The question would be something informative if we wanted to make sure he had been running regarding his tiredness or red face and being out of breath. Do you think you could help me with this problem?


How Conditional Random Fields and Logistic Regression could be the same?

If you have read  tutorial about CRF, on page 4 under the section Classification, it wants to relate CRF to Logistic Regression (or Maximum Entropy, as it is known by this name in NLP community).   The formulation of Logistic Regression is said to be  $ p(y|x) = \frac{1}{Z(X)}exp \{ \lambda_y + \sum_{j=1}^{K}\lambda_{y,j}x_{j}\} $.  On the other hand, on the Wikipedia  for logistic regression, the formulation is  $ f(t) = \frac{1}{1+e^{-t}} $  and the classifier's formulation is the explanation of this formulation which is derived from Logistic Function.  My question is, first, how Logistic Regression and Maximum Entropy Classifier are related to each other and are identical?   Second, the CRF tutorial says Logistic Regression (or Maximum Entropy Classifier) is simple CRF model, how?


What was the first SFF work where magic (spells) had to be primarily channeled through wands?

Magic Wand is a , made ever-so-more popular by Harry Potter.  What was the earliest published SFF work where the trope was used?  Criteria:   Wands are listed as a nearly-universal requirement for magic users to channel/focus their magic (e.g. doing magic without a wand may be possible but nobody or very few people are able to do so well). Specifically, this is about casting SPELLS (e.g. not potions, magic mushrooms or any other magical items/material that emit magic independently of the caster's effort at the time). There's more than a small handful of magic users to use them. (E.g. most Merlin-lore wouldn't usually count since Merlin is typically the only human mage there, even if he does have a wand). Let's say 6+ or 10+, although I'd strongly prefer hundreds or more. Ideally, this rule is explicitly specified in the work, by stating as an explicit rule, OR simply showing example of non-wanded mage not being able to cast spells which is explained as "because of a lack of a wand". A wand is a small stick-like object, possibly but not exclusively made of wood Clarke-esqie "Advanced technology is magic" is outside of scope - e.g., phasers or tricoders or sonic screwdrivers don't count.


I just read  post (and these too - , ) answering how does Jon Skeet get above 200 reps a day. I was just curious to know how much Jon Skeet's reputation would be by now (14 March 2015) without the 200 reputation limit.  How much would be the reputation of others in the highest reputation section. How large would be the gap?


How to keep just the first 300 charactes of every line?

I want to keep just the first 300 characters of every line.  The obvious solution:  sed -E 's/^(.{0,300}).*/\1/'   apparently exceeds some internal regex limit:  RE error: invalid repetition count(s)   Some experimentation shows rep count can only go up to 255, at least on my platform (MacOS).  Python can handle {0,300}, but I'd prefer to do this with normal shell tools, if possible.  Any ideas?  PS: Yeah, I know, if I was doing it in Python, I'd do line[:300] and ditch the regex completely.


how to find the files less than 5 MB in /var/log/ and display with the size of file?

I need to find the files less than 5 MB in /var/log/ and the output should display the size of each files. which command should I use?


Using ArcGIS Field Calculator to populate number field from text field?

I'm trying to assign speed values to street types using TIGER street shapefiles. So I created the new field for the speed, and I was going to use the field calculator to take the MTFCC classifications and fill the speed field from that, using a simple replace script.     I have this simple script that I found from another question that someone asked. I plugged my fields and values in and repeated the replace.   def Calc(value): if "S110" in value:     return value.replace('S1100','65') if "S1200" in value:     return value.replace('S1200','45') if "1400" in value:     return value.replace('S1400','30') if "S1500" in value:     return value.replace('S1500','15') if "S1630" in value:     return value.replace('S1630','25') if "S1640" in value:     return value.replace('S1640','25')     However, when I run it, it seems to run fine, but my fields are still Null. I really have no experience with Python, so I'm not even sure where I'm going wrong with the script.


Using `ip route` to change network interface by changing default route

My PC (Ubuntu 16.04) is connected to the home network by an Ethernet cable. I want to move to another room and use Wifi. I want to switch over as seamlessly as possible (to avoid VPN disconnection, for instance). I can connect to both the Wifi and Ethernet, but if at that point I disconnect the Ethernet applications receive a connection error.   So I think I need a way to force the traffic to use the Wifi interface before disconnecting the wire. With both interfaces active, ip route says:  default via 192.168.0.254 dev enp0s31f6  proto static  metric 100  default via 192.168.0.254 dev wlp4s0  proto static  metric 600  192.168.0.0/24 dev enp0s31f6  proto kernel  scope link  src 192.168.0.43  metric 100  192.168.0.0/24 dev wlp4s0  proto kernel  scope link  src 192.168.0.7  metric 600    If I use:  ip route del default via 192.168.0.254 dev enp0s31f6    traffic goes to a crawl.  So I think I have to be a bit more subtle and keep both interfaces active for a while, but make the Wifi one the preferred one. I believe this is accomplished by having a smaller metric on the Wifi interface than on the Ethernet one. However, if I do:  ip route change default via 192.168.0.254 dev enp0s31f6 proto static metric 600   I get:  default via 192.168.0.254 dev enp0s31f6  proto static  metric 100  default via 192.168.0.254 dev enp0s31f6  proto static  metric 600    So the command seems to replace whatever interface has the given metric. And if I try to use any other metric value than 100 or 600, I get:  RTNETLINK answers: No such file or directory   Of course, if I am on Wifi and reconnect to the Ethernet, the traffic switches seamlessly to it...   So, which of my assumptions are wrong? Is there a solution?


I've checked the migration stats pages on the sites I have access to them  and  and the stats don't reflect the actual migrations at all. It seems to be having trouble attributing the migrations to the sites they came from or were sent to.  Here's the ELL page:    As you can see, there are 190 migrations that apparently come out of thin air (most of them are from ELU). The system is able to correctly attribute a few from ELU and one from French. Similarly, in the away column, the two that were migrated away don't note where they were migrated to. In this case, they were both migrated to ELU.   A few months ago we noticed an . I don't think this is related because these questions aren't from Meta to Main site, they are between sites.


Weird spam message overlay appears on my iPhone's screen (FLASH SMS)

This weird message keeps appearing every few days and it's very irritating. It always contains spam messages that asks me to accept or cancel invitations to random services (weekly jokes, pics etc). From googling, I believe this is some sort of Flash SMS:    Can someone explain if this is caused by an app or forced through the service provider as I would like to know how to disable these permanently.


How to deal with the toddler when me and my partner are not on the same page?

Hi I have been in a relationship with a single mum for a far while now and I have began to notice a lot of things that happen that make me think about what to do as I am clueless, I am also a single parent.   When her child is screaming at the top of her lungs and causing a scene for no reason... There is no punishment "she's only a child" is what I am told.  When her child trashes the house with rubbish and I ask her to pick it up " you can't expect her to clean up she's just a kid"  She runs out of the house and hides for some time and destroys a gift made by my child for me for farthers day and "you can't punish her she's only 5" is what I am told...  I have no idea on what to do please help... I am at my end here...


What happened to the "other" option for off-topic flagging?

Don't get me wrong, I like the new flagging system (except the wording of the close reasons), but something is wrong I believe.  When you want to flag a question as [what apparently used to mean] off topic, you are presented with a dialog with common options and messages. Ok. That's different. After studying it a bit, I figured out that the dialog also covers common close reasons a bit. Ok, I guess? I finally found the way to flag a question for migration, but I was surprised to find that there was no "other" option!  The question in question (hehe) was "". For one thing, the question sounds homework ("[sic] I have a unix assignment"). Another being that we have a .


$d$ :$X×X$ $\to$ $\mathbb R$   is a metric space iff it satisfies the four conditions -         $d(x,y)$ $\ge$ $0$   $d(x,y)=0$ iff $x=y$   $d(x,y)$=$d(y,x)$ for all $x,y \in$ $X$   $d(x,y)$ $\le$ $d(x,z)$ +$d(z,y)$ for all $x,y,z$ $\in$ $X$      These are the very familiar axioms of a metric space. But  from axiom $4$ we can deduce the axiom $3$ but still why in many books, statement $3$ is used as an axiom(although it is not an axiom) ?  Please suggest some edit.


I made a large batch of strawberry rhubarb pie filling and apple pie filling.  How long can it sit out on the counter and at what temperature has it spoiled?


Where do files go when the rm command is issued?

Recently I accidentally did rm on a set of files and it got me thinking where exactly these files end up?  That is to say, when working with a GUI, deleted files go to the Trash. What's the equivalent for rm and is there a way of undoing an rm command?


If I revert to an older save, are the later saves still there?

Here's the scenario. I got the Hylian shield (I'm sure I saved), I then got out of castle and travelled to buy ancient armor. Then bowling. Then re-up my arrows. I then saved again and ended my game. Today I started the game (after software update) and have the arrows, money, and armor, but the Hylian shield is nowhere to be seen.  I'm pretty sure I didn't drop it or anything else like that, but I guess it's possible. So my question is, if I go to my oldest autosave and it's still missing, am I able to go back to a more recent save? I don't want to lose more stuff.  If anyone else can suggest what my options are, I'd appreciate it.


I use Ubuntu 16.04. I installed , ,  and  theme. My current terminal look like this    I can any symbol from awesome fonts to my terminal. But how can I add image in my terminal?, same as beautiful terminal in


I was wondering if there is a closed-form Laplace inverse of the sine function. I have tried the following:  $$   \sin(as)=\sum_{n=0}^{\infty}\frac{(-1)^{n}(as)^{2n+1}}{(2n+1)!} $$ an $n$-th power of $s$ contributes with an $n$-th derivative of the Dirac delta. So one expects a series expansion in terms of the Delta function and its derivatives. But that is utterly ugly! Hence the question.


Is there a system of knowing where secret entrances are besides shooting all the walls?

My current strategy is to shoot all walls in treasure rooms and if I haven't found a secret area yet I'll shoot the exit elevator walls. I'd say I find 1 secret entrance every 2 levels or so. Is there a better system?


How does a rocket travel in a vacuum space?

OK.. let us consider a rocket initially at rest in outer space. Space is considered as vacuum so there is hardly something that rocket can insert a force on. So if the rocket fires up its engines will it gain an acceleration or will it be at rest as always.


Why do my models have black fuzzy bits on them?

I've been working on a hmmwv and it was going fine until this glitch randomly appeared on every object in the scene.   The 'Texture' of object mode/edit mode has black fuzzy bits in it and some of the mesh you can see through some of the mesh you can't but their is clearly a face their as when I go into face select mode I can highlight the ones I can see through. I've also tried to fix it by highlighting it and removing doubles but that doesn't seem to do anything.   I have a screenshot of what I mean:


Is it possible to change the location of .bashrc from /home/orhanc/.bashrc to some other directory?


MySQL prepared statements can't insert UTF-8 letters

I can get UTF-8 letters from database for example these: ąčęėįšųūž, but can't insert them to database, for some reason only š gets inserted into database, the rest are inserted as ?. I'm connecting to my database through this file:  <?php     $GLOBALS['mysqli'] = new mysqli("...", "...", "...", "...");      $stmt = $GLOBALS['mysqli'] -> prepare("SET NAMES 'utf8'");     $stmt->execute(); ?>   And then inserting data through this code:  $linkName = $_POST['linkName'];  $stmt = $GLOBALS['mysqli'] -> prepare ("     INSERT INTO NavigationLinks (linkName, fileName, iconExt)     VALUES (?, ?, ?) ");  $stmt->bind_param("sss", $linkName, $fileName, $iconExt); $stmt->execute(); $stmt->close();   Before insertion I've tried to echo $linkName and it outputs correct characters.


Is it possible to license SE software for educational purposes?

I've got an online discussion forum as part of a (mostly in person) university course that I'm teaching.  I've been using the university-provided Blackboard forum software which is ... well, I won't use the words that I want to use to describe its quality.  In the future, I'm going to use some other software for this purpose, and it won't be hard to find something better than Blackboard.  However, the best forum software I've ever used is StackExchange.  It's incredible.  Any way I could make use of it for teaching?


What's the easiest way to rotate around an edge that is not parallel to a primary axis?

First, the screenshots:     Given the highlighted edge in the left excerpt of the screenshot collage above, is there a quicker way to be able to rotate the cube around that edge than rotating the whole cube so that the active edge is parallel to one of the primary axes, making the rotation, and then rotating the cube back to its original position?  How about if the cube is chosen, but instead forming the diagonal of one of the faces, one selects the first vertex, and for the other end of the new edge, selects the vertex opposite of the first, along the diagonal of the cube. The new edge referred to is the active edge in the right half of the screenshot excerpt above. Again, is there a faster or more efficient way to rotate around the diagonal, than rotating the cube so the diagonal aligns with one of the primary axes, making the rotation, and then rotating the cube back to its original position?   In both cases, I want to rotate the cube around and perpendicular to the highlighted edge, as in the results screenshots below.


Why do I have to cd out of a deleted directory?

On my server I have a directory structure looking something like this:  /myproject/code   I normally have an ssh connection to the server and 'stand' in that directory:  root@machine:/myproject/code#   When I deploy a new version of my code, the code directory is removed so I'm left with:  root@machine:/myproject/code# ./run -bash: ./run: No such file or directory   And the only solution I've found is to cd out and back in:  root@machine:/myproject/code# cd ../code root@machine:/myproject/code# ./run Running...   Can I avoid this? It's a somewhat strange behavior. If you have a nice explanation why this happens I would appreciate it.


Examples of Bayesian and frequentist approach giving different answers

Note: I am aware of  differences between Bayesian and frequentist statistics. For example "what is the probability that the coin on the table is heads" doesn't make sense in frequentist statistics, since it has either already landed heads or tails -- there is nothing probabilistic about it. So the question has no answer in frequentist terms. But such a difference is specifically not the kind of difference I'm asking about. Rather, I would like to know how their predictions for well-formed questions actually differ in the real world, excluding any theoretical/philosophical differences such as the example I mentioned above. So in other words: What's an example of a question, answerable in both frequentist and Bayesian statistics, whose answer is different between the two? (e.g. Perhaps one of them answers "1/2" to a particular question, and the other answers "2/3".) Are there any such differences?  If so, what are some examples?  If not, then when does it actually ever make a difference whether I use Bayesian or frequentist statistics when solving a particular problem? Why would I avoid one in favor of the other?


OLS Estimate of Random Walk coefficient - what assumptions are violated?

This question comes after reading:  Consider the humble one-dimensional random walk process: $$ X_t = X_{t-1} + \epsilon_t $$ Where $\epsilon_t$ is drawn i.i.d. from some distribution with zero mean and finite, constant variance. This process is well known to be non-stationary - the variance is proportional to time.  I have the following questions:  If we consider the regression $X_t = \beta_1X_{t-1}  + \epsilon_t$, and the OLS estimator $\hat{\beta_1}$, which assumption of the Gauss-Markov theorem is violated? I assume it is strict endogeneity $(\mathbb{E}[\epsilon_s | X_1, \cdots, X_T] = 0)$ which is violated, but I am not sure how to prove it. Is the only consequence of this a biased-estimate of $\beta_1$ ? (E.g. do we keep things like consistency?) Is there a reason that such a regression would give us spurious results (Inflated T-statistics and R-Square)? I have of course seen some works metion Granger's work on this, and how the statistics converge to functionals of Brownian motion in the limit. As a follow-up to this, if we consider the cousin of the random walk, the $AR(1)$ process: $$ X_t = \rho X_{t-1} + \epsilon_t $$ with $|\rho| < 1$, then this process is well-behaved (stationary) and in particular, the estimator is consistent.  Does the AR(1) process violate "fewer" OLS assumptions than the random walk as a result of its stationarity? Which assumptions does it keep intact that the random walk does not?  Thank you for all of your help!


Since version 3.2, uTorrent displays ADs in the form of a "Featured Torrent" banner and a small square advertising in the sidebar. Is there a way to disable those?


How can I prove that   $$\int_0^{\infty} \mathrm{e}^{-x}\log(x)dx=-\gamma$$


Intuition behind moments of random variables

I am looking to understand the intuition behind moments of random variables.  I understand the first moment relating to the mean and the second one relating to the variance. But what use does the n-th moment have?   Thank you


Undefined control sequence in Latex using programming code

Problem:  Getting the error message Undefined control sequence. (\end{document}..). This occurs when I include the following code that prints out formatted programming code. If I remove this code the issue goes away.  Minimal Working Example (MWE):  \documentclass{studentlitteratur}  \usepackage{lipsum}  \usepackage{listings}  \mdfdefinestyle{mdlistingstyle}{}  \mdtheorem[style=mdlistingstyle]{sourcecode}[chapter]{Kodexempel}  \begin{document}  \part{Title}  \begin{sourcecode}  \end{sourcecode}  \lipsum[1-3]  \begin{sourcecode}  \end{sourcecode}  \end{document}   .cls content available here:   .sty content available here:   Error message:  ./studentlitteratur.tex:13: Undefined control sequence. <argument> \protect \bbl@restore@actives delz                                          i\protect \hspace  {0.5em} title l.13 \end{document}   Desired outcome:  To remove the error message and achieve correct code.


Is "find /var/log -type f -delete" safe on Debian 9?

I never view or care about files in /var/log/  and want to avoid  wasting my system resources (CPU, RAM, I/O, etc.). Are any regular files in /var/log/ necessary for some core Debian program (e.g. apt, aptitude, etc.) to work?


Logical operators OR AND in condition and order of conditions in WHERE

Let's examine these two statements:  IF (CONDITION 1) OR (CONDITION 2) ...  IF (CONDITION 3) AND (CONDITION 4) ...   If CONDITION 1 is TRUE, will CONDITION 2 be checked? If CONDITION 3 is FALSE, will CONDITION 4 be checked?  What about conditions on WHERE: does the SQL Server engine optimize all conditions in a WHERE clause? Should programmers place conditions in the right order to be sure that the SQL Server optimizer resolves it in the right manner?     ADDED:  Thank to Jack for link, surprise from t-sql code:  IF  1/0 = 1 OR 1 = 1       SELECT 'True' AS result ELSE       SELECT 'False' AS result   IF  1/0 = 1 AND 1 = 0       SELECT 'True' AS result ELSE       SELECT 'False' AS result   There is not raise a Divide by zero exception in this case.  CONCLUSION:  If C++/C#/VB has short-circuiting why can't SQL Server have it?     To truly answer this let's take a look at how both work with   conditions. C++/C#/VB all have short circuiting defined in the   language specifications to speed up code execution. Why bother   evaluating  N OR conditions when the first one is already true or M   AND conditions when the first one is already false.      We as developers have to be aware that SQL Server works differently.   It is a cost based system. To get the optimal execution plan for our   query the query processor has to evaluate every where condition and   assign it a cost. These costs are then evaluated as a whole to form a   threshold that must be lower than the defined threshold SQL Server has   for a good plan. If the cost is lower than the defined threshold the   plan is used, if not the whole process is repeated again with a   different mix of condition costs. Cost here is either a scan or a seek   or a merge join or a hash join etc... Because of this the   short-circuiting as is available in C++/C#/VB simply isn't possible.   You might think that forcing use of index on a column counts as short   circuiting but it doesn't. It only forces the use of that index and   with that shortens the list of possible execution plans. The system is   still cost based.      As a developer you must be aware that SQL Server does not do   short-circuiting like it is done in other programming languages and   there's nothing you can do to force it to.


Bubble Sort using randomly generated array

I have to write a bubble sort program, and I have it coded out, but for some reason my outputs are totally insane. This is SOME of the outputs... the list goes all the way to 190 repeating the same thing; "[I@5b787144"  49, 21, 45, 22, 28, 55, 91, 34, 69, 27, 40, 60, 41, 14, 45, 79, 93, 11, 89, 77, 1)[I@5b787144 2)[I@5b787144 3)[I@5b787144   Here is my code.  import java.util.Random;  public class Bubble  {    public void generate ()     {          int k;        int a[];        int count = 1;        a = new int[20];        for (int i = 0; i < 20; i++)        {             Random rand = new Random();             a[i] = rand.nextInt(100);             System.out.print(a[i] +", ");        }        for (int h = 0; h < a.length-1; h++)        {             for (int j = 1; j < a.length-h; j++)                 {                     if (a[j-1] > a[j])                     {                         k = a[j-1];                         a[j-1] = a[j];                         a[j] = k;                     }                      System.out.println(+count+ ")" +a);                     count++;                 }        }     } }   I need it to sort it in ascending order, while also printing out every iteration of the sort.


May I ask which one is correct  "a spouse of", or "the spouse of". Example: Dana is a/the spouse of Peter. Thanks.


Let's say I have a string "I like big butts and I cannot lie" and I cut it with overflow:hidden, so it displays something like this:     I like big butts and I cann   cutting off the text. Is it possible to display this like this:     I like big butts and I cann...   using CSS?


If RSA is limited to 117-200 bytes or so, is that a very limited use case?

Am I missing something, or is RSA very very limiting when it comes to ecrypting data when it comes to the actual message size?  I have read that you can only encrypt a message of around 117 to 200 bytes in size (depending on your key size: 1024 or 2048 bits). Is this correct?  If so, I think I have read people suggesting on using it for larger files. I guess they are just repeating the process many times over and over in blocks of 117 bytes?


I want to hide all pages in a tab control (except 1), but my obvious guess does not work and I can't find anything else.  I try:  foreach (TabPage page in myTabControl.TabPages)     {         ...         page.PageVisible = false;    //Compile error here     }      'System.Windows.Forms.TabPage' does not contain a definition for   'PageVisible' and no extension method 'PageVisible' accepting a first   argument of type 'System.Windows.Forms.TabPage' could be found (are   you missing a using directive or an assembly reference?)


Why Harry Potter can't see the thestrals at the beginning?

In the Harry Potter series, why can't Harry see the thestrals the first time he encounters the carriages? He obviously saw his mother die when he was a child, but until he saw Cedric die, he could not see the thestrals.


Questions about Label and Cross Reference

I am trying to use cross reference in an article, here is a sample of my code.  \documentclass[11pt]{amsart} \usepackage[margin=1in]{geometry}   % set the margins to 1in on all sides \usepackage{graphicx}              % to include figures \usepackage{amsmath}               % great math stuff \usepackage{amsfonts}              % for blackboard bold, etc \usepackage{amsthm}                % better theorem environments \usepackage{epsfig}         % For postscript \usepackage{epic,eepic}       % For epic and eepic output from xfig \usepackage{showkeys} \usepackage{pdfsync} \usepackage{mathdots} \usepackage{lmodern}       \newtheoremstyle{break}% name   {}%         Space above, empty = `usual value'   {}%         Space below   {\itshape}% Body font   {}%         Indent amount (empty = no indent, \parindent = para indent)   {\bfseries}% Thm head font   {.}%        Punctuation after thm head   {\newline}% Space after thm head: \newline = linebreak   {}%         Thm head spec  \theoremstyle{break} \newtheorem{thm}{Theorem}[section] \newtheorem{cor}[thm]{Corollary} \newtheorem{prop}[thm]{Proposition} \newtheorem{lemma}[thm]{Lemma} \newtheorem{conj}[thm]{Conjecture} \newtheorem{quest}[thm]{Question}  \theoremstyle{break} \newtheorem{defn}[thm]{Definition} \newtheorem{defns}[thm]{Definitions} \newtheorem{con}[thm]{Construction} \newtheorem{exmp}[thm]{Example} \newtheorem{exmps}[thm]{Examples} \newtheorem{notn}[thm]{Notation} \newtheorem{notns}[thm]{Notations} \newtheorem{addm}[thm]{Addendum} \newtheorem{exer}[thm]{Exercise}  \theoremstyle{remark} \newtheorem{rk}[thm]{Remark} \newtheorem{rks}[thm]{Remarks} \newtheorem{warn}[thm]{Warning} \newtheorem{sch}[thm]{Scholium}  \newenvironment{sketchpf}{\noindent{\it Sketch of Proof}\hspace*{1em}}{\qed\bigskip\\} \newenvironment{proof-idea}{\noindent{\bf Proof Idea}\hspace*{1em}}{\qed\bigskip\\} \newenvironment{proof-of-lemma}[1]{\noindent{\bf Proof of Lemma #1}\hspace*{1em}}{\qed\bigskip\\} \newenvironment{proof-attempt}{\noindent{\bf Proof Attempt}\hspace*{1em}}{\qed\bigskip\\} \newenvironment{proofof}[1]{\noindent{\bf Proof} of #1:\hspace*{1em}}{\qed\bigskip\\} \newenvironment{remark}{\noindent{\bf Remark}\hspace*{1em}}{\bigskip}  \begin{document} \begin{prop}\label{2}    This is just an sample. \end{prop} By Proposition \ref{2}, we can see the problem. \end{document}   But when I compile my file, there is a "1" in a square box besides Proposition (the number of above proposition), and at the reference part, there is a small "1" in a square box lying above Proposition.  Is there a way to get rid of these square boxes?  Thanks.


Unable to load function from c# dll using a c++/cli wrapper

This is my first time with calling functions from c# dlls.  I have made a c# wrapper(c++/cli) to call c# functions from c++. This wrapper itself is a dll which I want to use in my main code. Below are the wrapper.h and wrapper.cpp files. CSharpWrapper is the abstract class that inherits the base class ImageTool. At the end of the header file I am exporting a factory of the wrapper class.  wrapper.h  #define Export_Wrapper  #ifdef Export_Wrapper #define _DLLExport __declspec(dllexport) #else #define _DLLImport __declspec(dllimport) #endif // Export_Wrapper  class CSharpWrapperPrivate;  class _DLLExport CSharpWrapper : public ImageTool { public:     CSharpWrapper();     ~CSharpWrapper();      int Initialize();     int Deinitialize();     cv::Mat AcquireImg(double positionX, double positionY);  private:     CSharpWrapperPrivate* _private; };  extern "C" __declspec(dllexport) ImageTool* __cdecl createFactory() {     return new CSharpWrapper; }   wrapper.cpp  class CSharpWrapperPrivate { public:     msclr::auto_gcroot<ImageDistiller^> ImageAPI; };  CSharpWrapper::CSharpWrapper() { }  CSharpWrapper::~CSharpWrapper() {     delete _private; }  int CSharpWrapper::Initialize() {     _private = new CSharpWrapperPrivate();     _private->ImageAPI = gcnew ImageDistiller();     return _private->ImageAPI->Initialize(); }  int CSharpWrapper::Deinitialize() {     return _private->ImageAPI->Deinitialize(); }  cv::Mat CSharpWrapper::AcquireImg(double positionX, double positionY) {     Mat img = _private->ImageAPI->AcquireImg(positionX, positionY); }/**/   In the wrapper.cpp file, visual studio is able to suggest the functions available in the c# dll. The following is the main.cpp code where I am trying to call functions through this wrapper.  main.cpp  typedef ImageTool*(__cdecl *ImgFactory)();  ImageTool* instance_imgcapture; HINSTANCE dll_imgcapture_handle;  int main() {     dll_imgcapture_handle = ::LoadLibrary(TEXT("wrapper.dll"));     if (!dll_imgcapture_handle) {         std::cerr << "Unable to load wrapper DLL!\n";         return 1;     }      ImgFactory zximgcapturefactory = reinterpret_cast<ImgFactory>(::GetProcAddress(dll_imgcapture_handle, "createFactory"));     if (!zximgcapturefactory)     {         std::cerr << "Unable to load factory from wrapper.dll!!\n";         ::FreeLibrary(dll_imgcapture_handle);         return 1;     }      instance_imgcapture = zximgcapturefactory();     instance_imgcapture->Initialize();      return 1; }   Now, when I run main.cpp, it is able to create dll_imgcapture_handle and ImgFactory. But it gives the following error  when instance_imgcapture->Initialize() is called:  Unhandled exception at 0x00007FFD20B5A388 (KernelBase.dll) in wrapper.exe: 0xE0434352 (parameters: 0xFFFFFFFF80070002, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x00007FFD03580000).  I tried this method to load dlls (as in main.cpp) with other c++ dlls - it works. I tried to check if there are any missing dlls using dependency_walker- there were none. I have included the correct opencv libraries and they work correctly. I have included the path to the dlls and libs in the project properties and added the lib names in Linker->Input.  Can you please help me to debug this problem.


“To solve” vs “For solving”: what is the difference?

What are the differences between:  An algorithm to solve optimization problems  and  An algorithm for solving optimization problems  I think only the second one is correct but I can’t explain why the first one is wrong.


I'm working on problem 1.2.i in Emily Riehl's Category Theory in Context and got stuck. The problem is this:  Show that $C/c \cong (c/(C^{op}))^{op}$.  A bijunction between the objects is faily simple, so I'll skip typing it. The issue I'm having is showing that the morphisms in one correspond to the morphisms in the other. Let $f \in C(x, y)$, then $g \in C(c, x)$ and $h \in C(x, y)$. So $g,h \in C/c$ and $g^{op}, h^{op} \in (c/(C^{op}))^{op}$. So by definition, $f^* \in Hom(C/c)$ iff $hf=g$ And also by definition, $f_* \in Hom((c/(C^{op}))^{op})$ iff $f^{op}g^{op} = h^{op}$. So it seems like all I need to complete the proof is to show that $f^{op}g^{op} = h^{op} \Leftrightarrow hf = g$ But I can't figure out how to do that. Is it always the case commutativity in one category is preserved in the opposite category? (I realize this may look like a homework question, but I'm working through the book on my own which is why I'm asking here.)


Show that $\{a_n\}$ defined by $a_{n+1}=\frac{a_n+2}{a_n+1}$ converges

Suppose $a_0$ is an arbitrary positive real number. Define the sequence $\{a_n\}$ by $$a_{n+1}=\frac{a_n+2}{a_n+1}$$ for all $n\geq0$. I have to prove that $\{a_n\}$ converges.  My attempt: If  $a=\lim_{n\to\infty}{a_n}$ exists, then it should be a solution to $$a=\frac{a+2}{a+1}$$ which is $\sqrt2$. Thus I need to show that $|\sqrt2 - a_n|$ gets arbitrarily small for large $n$. I tried to prove that $|\sqrt2-a_n|<|\sqrt2-a_{n-1}|$ but couldn't.


When you use the explorer in Windows and start typing some letters, the explorer automatically focuses files that starts with the same letters you typed. When I try to do this in Ubuntu's file manager (Nautilus), it starts searching overall for files instead of focusing them directly.  How can I change this to behave like Windows' explorer?


The above phrase is something I've known for as long as I can remember, though I don't know from where. What is its origin and usage? Example: "While Android products aren't quite what I need, iOS devices fit my needs to a T."


Ubuntu low disk space on Filesystem root. How to resize root or delete files?

When I first installed Ubuntu (actually ElementaryOS) I didn't think that it would take up that much space, so I made the OS partition 15GB and /home 100GB. sda5 and sda6 are my Linux partitions.  Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x1b518505     Device Boot      Start         End      Blocks   Id  System /dev/sda1   *        2048      823295      410624    7  HPFS/NTFS/exFAT /dev/sda2          823296   410943487   205060096    7  HPFS/NTFS/exFAT /dev/sda3       410943488   738621439   163838976    7  HPFS/NTFS/exFAT /dev/sda4       738623486   976771071   119073793    5  Extended /dev/sda5       738623488   767918079    14647296   83  Linux /dev/sda6       767920128   976771071   104425472   83  Linux     The thing is, I don't actually have anything new installed on the OS now compared to when it was fresh. Just a browser and sublime text. Over time, installing system updates, the size just keeps on going up and up.    /usr/src has 2.2 GB of folders named linux-headers-X.XX.X-XX  /lib/modules has 3.9 GB of X.XX.X-XX-generic folders  Advice on what to do would be appreciated.   If I choose to increase the size of the 15GB partition, how do I do it? What are /usr/src and /lib/modules and how do I delete them safely?


Checking where a symbolic link points at in Windows 7

In Windows 7, how can I check if a file is a symbolic link or not, if a folder is a junction or not, and how can I check where they are pointing at (in case they are symlink/junction). Both in Explorer and in Command line.  It's very important to have a way to do it from command line, in order to know how to duplicate symbolic links on another computer when you want to make an exact replica of a folder tree.  If I right click on a file and check "Properties", I can't find any indication that it's a symbolic link.


I presume 16.04 will be LTS, so I would like to ask if I installed 15.10 would I be able to upgrade to 16.04 without much in the way of problems.  Or if I installed 16.04 now, would it eventually become the release version?  Thanks


The type initializer for 'Emgu.CV.CvInvoke' threw an exception

If anyone who use Emgu openCv wrapper in .net 3.5 framework,please tell me why this exception appears,Its inner exception is unable to load cxcore.dll.


Show all inbox items (notifications) in app

The SE app currently only shows some inbox items:   Answers Comments Chats   When I see those I assume I'm all caught up, but it turns out there are more on the web which aren't displayed in the app:   Bounty expiration Elections Edits on your own posts Maybe others?   I was about to tag this  but realized it's probably intentional.  I imagine the reason for not showing them is because they're not something you can act on from within the app. Bounties can't be offered or awarded1 and elections can't be voted on.  But then again chats can't be replied to either. Badge descriptions can't be viewed (on the Achievements side). Selecting those launches the browser. Why then shouldn't bounties or elections launch the browser too? Hiding them just means I'll miss it if I haven't visited in browser recently.  1 Though accepting answers does award the bounty


What is the strength of a stationary costationary subset of $\omega_1$?

It is known that it consistent with $\mathsf{ZF}$ that there are no disjoint stationary subsets of $\omega_1$.   Is the assertion "there exist a stationary costationary subset of $\omega_1$" equivalent to, or does it imply/is it implied by some weak form of choice or some other more "standard" statement over $\mathsf{ZF}$? I couldn't find anything similar in Rubin and Howard standard reference "consequences of the axiom of choice" (in fact unless my pdf reader is badly broken the word "stationary" is never used in the book, which was a big surprise to me!)


Python local variable 'charcheck' referenced before assignment, why?

I'm trying to write a password validator application using python tkinter. If the inserted password contains at least 2 numbers, at least 2 special characters and a length of at least 7, the password is considered Strong, else Weak. If I enter a weak password the program will work, but if I enter a strong password I face this error: Exception in Tkinter callback Traceback (most recent call last):   File "/usr/lib/python3.8/tkinter/__init__.py", line 1883, in __call__     return self.func(*args)   File "/home/liana/projects/python/modification/modify.py", line 15, in submit     charcheck += 1 UnboundLocalError: local variable 'charcheck' referenced before assignment  I don't know why. Here's my code: import tkinter as tk   numcheck = 0 charcheck = 0  root=tk.Tk()   root.geometry("600x400")   passw_var=tk.StringVar()   def submit():      password=passw_var.get()         passw_var.set("")     for i in range(len(password)):         if(password[i]=='!' or password[i]=='@' or password[i]=='#' or password[i]=='$' or password[i]=='&' or password[i]=='%' or password[i]=='*'):             charcheck += 1          elif (ord(password[i])>=48 and ord(password[i])<=57):             numcheck += 1       if (len(password)>=7 and charcheck>=2 and numcheck>=2):         result_label = tk.Label(root, text='STRONG', font=('calibre',10, 'bold')).grid(row=3, column=2)      else:         result_label = tk.Label(root, text='WEAK', font=('calibre',10, 'bold')).grid(row=3, column=2)         passw_label = tk.Label(root, text = 'Enter Your password: ', font = ('calibre',10,'bold'))      passw_entry=tk.Entry(root, textvariable = passw_var, font = ('calibre',10,'normal'), show = '*')      sub_btn=tk.Button(root,text = 'Submit',                    command = submit)      passw_label.grid(row=1,column=0)  passw_entry.grid(row=1,column=1)  sub_btn.grid(row=2,column=1)      root.mainloop()   I'd like to know where I'm making a mistake. Thank you


On the homepage of my website, I would like to have a block which displays 3 links to inner pages like so:   Each would have the Title of The page, a teaser image that I would like to select to represent each of these links (Since none of the inner pages have images used on them), a small summary and a link to the page. What's the best course of action for me to take in creating this? Would I create a custom view block to display this? If so, are any special settings needed and is there a way for me to select which picture is used through the views settings (overrides?)?   I feel as if this is quite the simple thing to achieve, yet I seem to be overthinking it as I can't come up with a proper solution which would make sense to me.


Make stdin and stdout of bash subprocess be stdout and stdin of bash process

I would like to run an executable as a subprocess in a bash script, then arrange for the script's output to be read by the subprocess as stdin and the script's input to be taken from the subprocess's stdout.  In other words, I want a loop.  I want the script to send commands to the subprocess, and I want the script to receive the results of those commands, too, all over stdio. It's easy to set this up in one direction, but I haven't been able to figure out how to do a loop.  In other languages, it's easy, but I'm missing something with bash. Thanks.


Starring post in starred list does not make star yellow on message

I have recently noticed that if one stars a message such as this one in the starred posts list:    That although you get the little number go up by one next to the message, the star next to the message does not go yellow, only in the list:     This however does not happen the other way round.


How to break nested loops in JavaScript?

I tried this:  for(i = 0; i < 5; i++){     for(j = i + 1; j < 5; j++){         break(2);     }     alert(1); }   only to get:     SyntaxError: missing ; before statement   So, how would I break a nested loop in JavaScript?


We see migrated, close, down voted (more than five down voted) questions are in hot tab.  From this scenario many questions arise in mind  & See the picture below These types of questions are hot question? What is the definition of hot questions? (It does not mean  how algorithm work .. It means how people think about  hot question ) When question are closed for off topic , Details or Clarity or etc.… Should we remove those type of questions from hot, week, month tab? Feature Request I would like to request to remove those type of questions from hot, week, month tab Picture


how to remove a file named "-f" from the command-line?

Here are some options  a) rm -f  b) rm "-f" (double quotes)  c) rm '-f' (single quotes)  d) all of the above  e) none of the above


is logistic regression only for binary classification?

Is logistic regression only for binary classification or can it be applied for multi class classifications as well.  Also, can you please list down what are other classification methods for multi classes(for more than 2 classes)


How to add text to cursor position in textbox

I have a Textbox and I want to add text to the cursor position, how should I do it?  P.s. I know how to read cursor's position, but how do I add text to that position?


Replicate elevation profile extraction (3D Analyst toolbar) in ArcPy

How can I replicate in ArcPy the 3D Analyst Toolbar operations which extract an elevation profile from a transect line drawn atop an elevation layer? This will be incorporated into an automated workflow that will loop ~500K times. Hence, streamlining is critical.  Here's the procedure using the toolbar:   Point toolbar to the elevation layer Click 'Interpolate Line' to draw the cross-section Click 'Profile Graph' to generate the profile Right-click graph, 'Export', 'Data'   (Inputs: elevation layer, transect. Outputs: graph, XY table.)  Rather than manually drawing a transect, as in the toolbar functions, I need the ability to specify the transect start & end by entering coordinates. Similar to the tool, I want the output to be XY pairs (ideally a numpy array), with x=0 being the transect origin, X-values being distance from origin, and Y-values being elevation.


How to differentiate $\lim\limits_{n\to\infty}\underbrace{x^{x^{x^{...}}}}_{n\text{ times}}$?

Let $$f(x)=\lim\limits_{n\to\infty}\underbrace{x^{x^{x^{...}}}}_{n\text{ times}}$$ Is it possible to find $f'(x)$. If yes, please show all steps.


Creating MXD From Standalone ArcPy Snippet?

Is it possible to create some MXD from a list using Arcpy stand alone snippet? For example if I have a list like  counties = ['Benton', 'Caroll','Polk','Scot']   can I run a code like  import arcpy  for mxd in counties      MXD = arcpy.mapping.MapDocument(r"C:\\"+ mxd+ '.mxd')     MXD.save()


How do I create a batch file to delete files older than a specified date?  This does not seem to work;  :: --------DELOLD.BAT---------- @echo off SET OLDERTHAN=%1 IF NOT DEFINED OLDERTHAN GOTO SYNTAX  for /f "tokens=2" %%i in ('date /t') do set thedate=%%i type %1 pause set mm=%thedate:~0,2% set dd=%thedate:~3,2% set yyyy=%thedate:~6,4%  set /A dd=%dd% - %OLDERTHAN% set /A mm=%mm% + 0  if /I %dd% GTR 0 goto DONE set /A mm=%mm% - 1 if /I %mm% GTR 0 goto ADJUSTDAY set /A mm=12 set /A yyyy=%yyyy% - 1  :ADJUSTDAY if %mm%==1 goto SET31 if %mm%==2 goto LEAPCHK if %mm%==3 goto SET31 if %mm%==4 goto SET30 if %mm%==5 goto SET31 if %mm%==6 goto SET30 if %mm%==7 goto SET31 if %mm%==8 goto SET31 if %mm%==9 goto SET30 if %mm%==10 goto SET31 if %mm%==11 goto SET30 if %mm%==12 goto SET31  goto ERROR  :SET31 set /A dd=31 + %dd% goto DONE  :SET30 set /A dd=30 + %dd% goto DONE  :LEAPCHK set /A tt=%yyyy% %% 4 if not %tt%==0 goto SET28 set /A tt=%yyyy% %% 100 if not %tt%==0 goto SET29 set /A tt=%yyyy% %% 400 if %tt%==0 goto SET29  :SET28 set /A dd=28 + %dd% goto DONE  :SET29 set /A dd=29 + %dd%  :DONE if /i %dd% LSS 10 set dd=0%dd% if /I %mm% LSS 10 set mm=0%mm% for %%i in (*.*) do ( set FileName=%%i call :PROCESSFILE %%~ti )  set mm= set yyyy= set dd= set thedate= goto EXIT  :SYNTAX ECHO. ECHO USAGE: ECHO DELOLD X ECHO   Where X is the number of days previous to Today. ECHO. ECHO EX: "DELOLD 5" Deletes files older than 5 days. GOTO EXIT  :PROCESSFILE set temp=%1 set fyyyy=20%temp:~6% set fmm=%temp:~0,2% set fdd=%temp:~3,2% if /I %fyyyy% GTR 2069 set fyyyy=19%temp:~6%   :: *************************************** :: * This is where the files are deleted * :: * Change the ECHO command to DEL to   * :: * delete. ECHO is used for test.      * :: *************************************** if /I %yyyy%/%mm%/%dd% GEQ %fyyyy%/%fmm%/%fdd% ( ECHO %FileName% )  set temp= set fyyyy= set fmm= set fdd=  :EXIT  :: ----------END-DELOLD.BAT-------------


I have been member of SO for 4 months. I have a question regarding some functionality. Whenever I give an answer to a question, there is functionality given Add Another Answer. I can comment on my answer at any time and also able to edit answer. Then   Why this functionality given on SO to add another answer?  When should I add another answer?  Why there is requirement of multiple answers? What is limit of adding answers to single question?


I am trying to figure out why the following holds:  Given $y_{i}=E[y_{i}|X_{i}]+\epsilon_{i}$ that  $E[\epsilon^{2}_{i}] =E[E[\epsilon^{2}_{i}|X_{i}]] = E[V[y_{i}|X_{i}]]$    Specifically I am trying to understand why $E[\epsilon^{2}_{i}|X_{i}] = V[y_{i}|X_{i}]$?  Clearly, I need a refresher on conditional variance and the rules for expected values....


RSS Feed getting data from mysql database and outputting Â£ - How do I display £ instead of Â£ even though my feed is calling UTF8?

This is the code it runs as I want it to but the output 'name' from the table in database always shows i.e. Â£101 instead of £101 what do I need to correct in the code shown?   <?php     header('Content-type: text/xml; charset=UTF-8');   $host = "host";  $user = "testing";  $pass = "abcdefghikans";  $database = "test";   $linkID = mysql_connect($host, $user, $pass) or die("Could not connect to host.");  mysql_select_db($database, $linkID) or die("Could not find database.");   $rss = '<?xml version="1.0" encoding="UTF-8"?>';  $rss .= '<rss version="2.0">';  $rss .= '<channel>';  $rss .= '<title>Competition Feed</title>';   $numStart = gmmktime(0, 0, 0, date('m')-1, 1, date('Y')); $numEnd = gmmktime(0, 0, 0, date('m'), 1, date('Y'))-1;  $sql = "SELECT name FROM table WHERE active = '0' AND closedate >= '$numStart' AND closedate <= '$numEnd' AND value >=100 ORDER BY value DESC";  $query = mysql_query($sql, $linkID) or die("Data not found.");  while ($row = mysql_fetch_array($query)) {    $rss .= '<item>'; $rss .= '<description>'.$row['name'].'</description>'; $rss .= '</item>';  }   $rss .= '</channel>';  $rss .= '</rss>';   echo $rss;  ?>


If $A^2 = I$, then $\operatorname{rank} (A+I) + \operatorname{rank} (A-I) =n$

If $A^2 = I$ where $A$ is an $n\times n$ matrix, then why is $\operatorname{rank} (A+I) + \operatorname{rank} (A-I) =n$.   I am not sure why this seems to be true.


There is any smooth function on real line which is zero just in [0,1]

There is any function of class $C^{\infty}$ with the following property:     $f:\mathbb{R}\to \mathbb{R}$ $$f(x)=0\ \ \ \ \  \text{iff} \ \ \ \ \ \ 0\leq x\leq 1?$$   I am wondering because of the smoothness there is any, or maybe, not a very complicated function of this type?


How to calculate duration between two dates(in months and days) using formula field?

My client wants me to write a formula field to return the duration(in months and days) between two date fields.  For ex:    If start date is "January 1st 2016" and end date as "December 31st 2016" then it should return value as "12". If start date is "January 1st 2016" and end date as "November 20th 2016" then it should return value as "11.67".   From the sample formulas given on the salesforce , I see that there is a formula date_1 — date_2 to calculate number of days between two dates.  But should I update the formula to (date_1 — date_2)/30 or (date_1 — date_2)/31 to get what I need?  Is this something really doable using formula or am I better off solving this using Apex?


Ubuntu Stuck on Black Screen After Fresh Installation

I have an MSI GS63VR. It has an i7-7700HQ CPU, 16 GB of RAM, and an NVIDIA GeForce GTX 1060.  I just installed Ubuntu 16.04.4 LTS using the steps described on the site. I allocated 40 GBs to Ubuntu. Everything seemed to install correctly.  Once I saw the notification about the installation being successful, the machine said I'd need to restart. I press ok (or whatever the prompt said). It froze there. I left and came back a half hour later and saw it hadn't changed so I manually shut down the machine.  It restarted just fine. Instead of going straight to windows, it brought up the screen where I can choose ubuntu or windows. I chose ubuntu. After that, a black screen came up and nothing happened. It just froze there.  Is there something I can or should do to fix this?


What does it mean to have a lone plus sign in the exponent/superscript (Modified Weiszfeld algorithm)

I was skimming through Vardi & Zhang's paper on "A modified Weiszfeld algorithm for the Fermat-Weber location problem".   It is available at   If you open the paper and scroll down to page 3, you'll find equation 12, which I found to be odd. There is a lone plus sign in the exponent/superscript. Does anyone know what that means? Could it be that this simply a typo and that the "+" sign refers to an addition operation instead?  Many thanks for your help! Nicolas


If $J$ is tangent point of $GH$ with incircle of $FGH$ and $D$ is intersection of $F$-mixtilinear inclrcle with $(FGH)$, then $\angle FGH=\angle GDJ$.

Let $FGH$ be a triangle with circumcircle $A$ and incircle $B$, the latter with touchpoint $J$ in side $GH$. Let $C$ be a circle tangent to sides $FG$ and $FH$ and to $A$, and let $D$ be the point where $C$ and $A$ touch, as shown here.    Prove that $\angle FGH = \angle GDJ$.


Why is potential energy negative when orbiting in a gravitational field?

I had to do a problem, and part of it was to find the mechanical energy of satellite orbiting around mars, and I had all of the information I needed. I thought the total mechanical energy would be the kinetic energy+ the potential energy, or $KE+PE$. However, I had the answer sheet and it said that I had to do $KE-PE$, because when you integrate $Gm_1m_2/r^2$ you get a negative sign. I can see why it works out mathematically, but I don't understand why you are actually losing energy when orbiting in a gravitational field.


I edited the profile preferences for my terminal like its background image, text color etc. Now I dont know how to revert back the changes to the basic default terminal preferences which comes in ubuntu. Please Help.


Is it possible to make a simple query to count how many records I have in a determined period of time like a year, month, or day, having a TIMESTAMP field, like:   SELECT COUNT(id) FROM stats WHERE record_date.YEAR = 2009 GROUP BY record_date.YEAR   Or even:  SELECT COUNT(id) FROM stats GROUP BY record_date.YEAR, record_date.MONTH   To have a monthly statistic.   Thanks!


The citation is a question mark and the list of reference doesn't appear

I tried a lot of times, but the reference list doesn't appear and the citation in the text is always a question mark. This is my bib file.  \begin{filecontents}{mybib.bib} @booklet{mwe, author      = {{S}charrer, {M}artin}, year        = {2012}, title       = {The mwe-Package}, edition     = {0.3}, language    = {english}, lastchecked = {2012-07-12}, url         = {http://mirror.ctan.org/pkg/mwe}, note        = {macros/latex/contrib/mwe} }  @Book{Renewal, author = {Breuer, L. and Baum, D.}, title = {An Introduction to Queueing Theory and Matrix-Analytic Methods}, publisher = {Springer}, year = 2005, } \end{filecontents}   Next is my tex file.  \documentclass[a5paper]{article}  \usepackage{filecontents}      \usepackage[numbers]{natbib}   \usepackage{hyperref}           \begin{document} \section{First section}  Minimal Working Example MWE.  citations: \cite{Renewal}, \citep{mwe}, \citet{mwe}, \citep*{mwe}.   \bibliographystyle{unsrtnat}   \bibliography{mybib}           \end{document}   Both of 2 files are from a buddy's answer in the website.


Hi.. I am using latex for my thesis, I need some help in titles pages

First i need to add in table of content, tables of figures and list of tables the title and page as i circle in picture which show my need..  \documentclass{UnimasThesis} \usepackage{graphicx} \usepackage[labelfont=bf]{caption} \captionsetup{labelfont=bf} \usepackage{pdflscape} \usepackage{adjustbox} \usepackage{dcolumn} \usepackage{booktabs} \usepackage{amsmath} \usepackage{cases} \usepackage[os=win]{menukeys} \usepackage[paper=a4paper]{geometry} \usepackage{multirow} \usepackage[]{algorithm2e} %\usepackage{enumerate}    \usepackage{listings} \lstset{language=[LaTeX]TeX,columns=fullflexible, basicstyle=\ttfamily,texcsstyle=*\bfseries\color{NavyBlue}, commentstyle=\itshape\color{PaleVioletRed4}, frame=single,framesep=6pt, framexleftmargin=6pt,framexrightmargin=6pt, xleftmargin=12pt,xrightmargin=12pt, breaklines=true,breakatwhitespace=true}   \title{Automatic Segmentation of Cardiac Magnetic Resonance Images for Oedema Assessment} \author{\textbf{Amajd Khan}} \faculty{Faculty of Computer Science and Information Technology} \facultyColour{6c7a8c} %% 6-digit RGB hexadecimal code  \submissionyear{\textbf{2017}} \degreetype{\textbf{Doctor of Philosophy}}  % If using APA bibliography style  \usepackage[natbibapa]{apacite}  \bibliographystyle{apacite}    %\usepackage{natbib}  %\bibliographystyle{apalike}    \newgeometry{top=3cm, bottom=3.00cm, right=2.5cm, left=2.5cm}  %\usepackage{etoolbox} % "lipsum" for filler text %\makeatletter  \makeatletter    \def\@makechapterhead#1{%     %%%%\vspace*{50\p@}% %%% removed!     {\parindent \z@ \Large         \ifnum \c@secnumdepth >\m@ne         \centering \Large\bfseries \MakeUppercase{\@chapapp}\space \thechapter         \par\nobreak         \vskip 3\p@         \fi         \interlinepenalty\@M         \centering         \Large \bfseries #1\par\nobreak         \vskip 20\p@ }} %\def\@makeschapterhead#1{% %  %%%%%\vspace*{50\p@}% %%% removed! %  {\parindent \z@ \raggedright %    \normalfont %    \interlinepenalty\@M %    \Huge \bfseries  #1\par\nobreak %    \vskip 40\p@ %  }} \makeatother   \begin{document} \maketitle  \frontmatter  \newpage~ \thispagestyle{empty} {\centering {Automatic Segmentation of Cardiac Magnetic Resonance Images for Oedema Assessment} \par} \vspace{4.7cm} {\centering Amjad Khan\par} \vspace{4.7cm} {\centering A thesis submitted \\     in fulfillment of the requirements for the degree of \\     Doctor of Philosophy\par}  \vspace{5.5cm} {\centering Faculty of Computer Sciences and Information Technology\\     UNIVERSITI MALAYSIA SARAWAK\\      2017\par}   % List of conformation may be prepared as in confirmation.tex %\input{confirmation} % List of declaration may be prepared as in confirmation.tex \input{declaration}  % Acknowledgements from ack.tex \input{ack}    % English abstract from abstract-en.tex \input{abstract-en}  % Malay Abstract from abstrak-ms.tex %\input{ABSTRAK}     %\input{abstract-mal} % Malay Abstract from abstrak-ms.tex \input{abstrak-ms}      % LIST OF TABLE  \tableofcontents \listoffigures \listoftables  % List of Symbols may be prepared as in symbols.tex \input{symbols}  \mainmatter % Each chapter from a separate file \input{chap1-Introduction} \input{chap2-literature} \input{chap3-NEW} \input{chap4-contoursegmentation} \input{chap5-assessment} \input{chap6-oedema} \input{chap7-conclusion} %\appendix %\input{app-Guidelines} %\input{app-code} %\input{app-results}   % references are listed in refs.bib \bibliography{refs}   \end{document}


Moving a pane in LibreOffice back to the main window

I accidentally moved a pane in LibreOffice from it's nice docked position to a new window. Now I can't move back it.    As you can see, the Slide Pane is floating as it's own window and not docked like Tasks, etc.


I've had to load test HTTP servers/web applications a few times, and each time I've been underwhelmed by the quality of tools I've been able to find.  So, when you're load testing a HTTP server, what tools do you use? And what are the things I'll most likely do wrong the next time I've got to do it?


Is there a grandfather paradox in Endgame?

In Avengers: Endgame,      Present-Nebula kills Past-Nebula.   I'm confused. Wouldn't it cause a grandfather paradox?  Then how did she survive?


How to achieve inverted color in Windows 7 (like Compiz Negative)?

How can I achieve Compiz Negative effect in Windows 7?    Alt+Shift+PrtSc (High Contrast) doesn't cut it. Compiz Negative inverts color on every part of the screen, which High Contrast doesn't do.


I typed /kill @e into a repeating, always active command block.   Now whenever I respawn, I am immediately killed.  I've tried to use world edit but was unable to correct the situation.


I've set the 'mouse leave' event on a windows form and I want to hide the form when the mouse leaves the visible area.  But here is where I am facing a problem. Even when I move the mouse to a button on the same form, it calls the 'mouse leave' event, which makes this form invisible.  It means I've got to prevent the event triggering when moving the mouse to the button. But how? Any other approach?


How can I dim my computer screen beyond the minimum?

I usually just use Fn + Left or Fn + Right to adjust my screen's brightness but the minimum settings are still too bright for me (especially when I'm working at night). I tried going through the Power Options in the Control Panel (plan brightness already at the lowest settings). Is there a way to dim my laptop's screen beyond the minimum?  I'm already using . I was wondering if there was a utility similar to it that adjusts my screen's brightness/contrast instead of its color temperature.