What would be the metric equivalent of “inching” (or a workable alternative)?

inching.   moving slowly/small degree of progress.  As in “Elon is inching his way towards Mars”.   “Metering closer to his goal” sounds … totally off. So how do I avoid using arguably antiquated measurements (which has ) without sounding totally crazy? Are there equivalent expressions using metric units, or do we need a work-around, or ...?


How do I rotate a tikz rectangle about a specific axis?

I am trying to create a beamer animation using tikz, but I can't even get basic rotating of a tikz image working as desired.  I have a rectangle specified by  \draw[rounded corners,dotted] (-3.5,0) rectangle (-0.5,2);   I would like to rotate this rectangle about the point (-1,.5) (which is near the bottom right corner of the rectangle).  I've tried:  {\rotatebox[origin=c,x=-1,y=.5]{130}{             \draw[rounded corners,dotted] (-3.5,0) rectangle (-0.5,2);}}   But this produces an error.  If I just use the origin=c option, it compiles, but it rotates the rectangle about the point (0,0).  I've also tried it with just the x=-1,y=.5 (without the origin option), and it fails to compile.  I have searched the documentation, which is where I learned about the options x=xdim and y=ydim.  However, I can't find a single example demonstrating how these options should be used.  Any suggestions would be greatly appreciated.    Also, if there is a better command for rotating things that will be more suitable for use in a beamer animation, please let me know.  Thanks!


How to find the admin/creator of a fan page on Facebook?

I'm not looking for the Facebook Page ID. How can I find the owner profile who has created or manages the fan page of a person or company on Facebook?


Can one fly to Iran with an expired passport and a Canadian permanent resident document?

My mom's passport will be expired on 28 however she has ticket to back to Iran on 27 from Toronto via Frankfurt. She has permanent residence card but she is not Canadian citizen, therefore the only passport she has is the Iranian one. When she changes the flight in Frankfurt, her passport will be expired. Can she travel in this situation?


Friend : Let's go Me : My brother has taken my car, we have to wait until he come back. Or My brother took my car, we have to wait until he come back


I am seeking for an intuitive and logic explanation for the degree of freedom of Linear Regression. Why the degree of freedom for Linear Regression is N-k with N is the number of observations and k is the number of features. Could you help to demonstrate this N-k result?


Bypassing a software that loads on startup

I recently acquired a Motorola Droid XYBoard loaded with GoPago. This software starts up immediately and I was wondering if there is a way to either bypass it or access the operating system around it.


How can parallel lines elegantly be added to an existing path? I am looking for a solution or hint to, how a general style can be made, that works with any path.  Example path:  \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}   \draw (0,0) -- (1,1) -| (2,2) -- (3,2) -- (3,1); \end{tikzpicture} \end{document}     Same path, with customizable extra lines:    Here I have drawn two extra lines, just to show, what I mean. Ideally a solution should only add one extra line, but somehow be expandable to any number of lines.  The question: , where my solution is less than elegant, has inspired me to ask this question.


Pass a variable in another variable within an awk

I have the below variables:  grep_line_new_file='create table "informix".issue' new_file_below=`awk 'BEGIN { FS="\n[()]"; RS=";" } /$grep_line_new_file/ { print ")"$NF";"}' test`   Inside test file I have the below:  create table "informix".issue  ( issue_no serial not null constraint "informix".nnc_issue00, user_logged varchar(8,1) not null constraint "informix".nnc_issue01, issue_status_code integer not null constraint "informix".nnc_issue02, issue_cat_code varchar(2) not null constraint "informix".nnc_issue03, issue_descr text not null constraint "informix".nnc_issue04, issue_feedback text, user_action varchar(8,1), date_logged date not null constraint "informix".nnc_issue05, date_compl date ) in datadbs extent size 16 next size 16 lock mode row;  revoke all on "informix".issue from "public" as "informix";   I am having an issue using an external variable to find and get the line below I need when echoing the "$new_file_below".  I have tried using the below [awk -v]. It still does not want to work:  new_file_below=`awk -v val="$grep_line_new_file" 'BEGIN { FS="\n[()]"; RS=";" } /$val/ { print ")"$NF";"}' test`   The outcome I need from the "new_file_below" variable is below:  ) in datadbs extent size 16 next size 16 lock mode row;


I'm trying to learn to use "this" and read all there is to, but still have absolutely no idea

class Perl {    private int value;     public Perl()    {       this.value++;    }     public void display()    {       Console.WriteLine("B called: " + this.value);    } }  namespace ConsoleApplication1 {    class Program    {       static void Main(string[] args)       {          Perl perl1=new Perl()          perl1.display();           Perl perl2=new Perl()          perl2.display();       }    } }   So I have been reading tutorial on "this" here and there trying out example codes and see what happens when I take out "this" from variables. From my understanding, "this" is a reference to an object (instance of a class) such as perl1 and perl2 in the code.  When I took out "this" from "this.value++" and "this.value", "value" and "this.value" remained the same. Is "this" even needed in this case since perl1 and perl2 are instantiated and have their own variables? (perl1's value and perl2's value are separate right?) If that's the case, why is "this" even needed or used since all the variables belong to the separate objects?  I want to start using "this", but every time I try to learn about it, the more confused I get.  Would someone explain this to me?


"A friend of my father" vs. "a friend of my father's" — which one is right? Why?

I have seen them both in my reference book, which is written by a native speaker. I wonder why there are two different phrases to describe the same meaning and am looking forward to some reasonable details to explain why this is so.


What is the exact difference between diffusion, convection and advection?

I have tried to explore the information but still not very clear on the exact difference between ,  and . Can anyone help me out to clear my concept?


Why are we allowed to reference parameters outside the language of set theory?

Looking at the axioms of comprehension and replacement, I see that they allow for the use of parameters in the formulas used in the axioms. From what I can understand, parameters are specific sets that may not be definable in the language of set theory. Using these sets in formulas gives us extra expressive power. Why are we allowed to do this? Are these parameters in the domain of discourse? How would we determine that these parameters are indeed sets if they aren't definable in the language of set theory? Thanks to all who can clear this up.  Edit: My question is concerned with why we are allowed to use parameters, not what they are.


How to make a ISO out of a folder containing Windows Setup Files

I copied the Windows 8 CD to my HDD. I want to convert that folder to an ISO and use that to create a bootable USB.  Please tell me how CAN I MAKE ISO IMAGE.  See, my folder in which i have my files:


Improper integral from 1 to infinity $\Rightarrow$ integrated function converges towards zero?

Let $f: [1, \infty) \to \mathbb{R}$ be a continuous function such that the improper integral $$\int_1^\infty f(x) \ dx$$ exists. Show or disprove that $\lim \limits _{x \to \infty} f(x) =0$.  Our professor said that there are counterexamples but after frying my brain out I still could not find any. It does sound logical.


Where to find or how to make a frame like  below picture with optional width and height?


US editors and reviewers vs. Iranian authors?

Could you please let me know your opinion about the following?           Subject: US editors and reviewers can no longer handle submissions by authors   employed by the Government of Iran              OFAC Sanctions       US editors and reviewers can no longer handle submissions by authors   employed by the Government of Iran      Dear Dr Bruno Granier,      The Office of Foreign Assets Control (OFAC) of the US Department of    the Treasury administers and enforces economic and trade sanctions. As   a result of OFAC sanctions we have been made aware that US editors, US   Elsevier staff and US reviewers are now unable to handle scientific    manuscripts where any of the authors are employed by the Government of   Iran. This includes the research departments of the various oil and   gas  companies which are deemed to be entities of the Government of   Iran.  We realize that this OFAC regulation will cause some   inconvenience in your role as an editor but Elsevier is legally   obliged to ensure that  all reasonable efforts are made to avoid   submissions from Iranian  government agencies and companies being   handled by US editors, US  Elsevier staff and US reviewers.  Please be   aware that editors, Elsevier staff and reviewers from outside the US   may still handle these  manuscripts and that this OFAC regulation does   not pertain to  manuscripts where the authors are based at Iranian   academic and research institutes.  Manuscripts originating from a   clinical setting that are  not government run, for example, a hospital   or clinical practice are  also exempt from this regulation.      To view the official OFAC regulation, please click here.  In practice   the result of these sanctions will mean that:         Submissions where any author is based in Iran, and is not at an  academic and research institution, cannot be handled by US-based    editors, US Elsevier staff, US reviewers, or any US citizens based    outside of the US.   If an Iranian author has dual affiliations (eg.  university and  government), their submission cannot be handled by US-based editors,   US  Elsevier staff, US reviewers, or any US citizens based outside of   the  US.   Affiliations of Iranian authors should therefore be checked, and any manuscripts which fall under this OFAC regulation delegated to a   non-US editor, before handling.   When assigning reviewers, affiliations of Iranian authors should  also be checked, and any papers which fall under this OFAC regulation    should only be sent to non-US reviewers. (As an editor you should do    what is reasonable to determine the nationality of a reviewer e.g.   check their email address. This check does not extend to emailing   reviewers  directly to confirm their nationality or location). Unless   there is  specific knowledge that a non-US-based reviewer is a US   citizen, editors can send such submissions to reviewers based outside   the US.   If your journal workflow involves all submissions being handled by  US-based Elsevier staff, they will reject these manuscripts outright    before they reach you.   Should there be no suitably qualified editor or reviewer, please reject the manuscript outright.      When rejecting manuscripts which fall under this OFAC regulation    please use the new EES Decision Term "Reject - OFAC Sanctions" and the   following text:      "As a result of OFAC sanctions all editorial staff who are    US-based/US nationals are unable to handle scientific manuscripts   which  are authored by Iranian scientists, employed by the Government   of Iran.  Based on this OFAC regulation we are unfortunately unable to   handle your manuscript. We wish you success with your submission to   another  Journal."          We apologize for the inconvenience this may cause. If you do have any   questions please contact your Publisher.       Sent on behalf of Dan Lovegrove      Cretaceous Research


TexMaths BASIC doesn't open in Libre Office - BASIC runtime error

Ubuntu 18.04.1 LTS LibreOffice 6.3.1.2 TexMaths 0.48  When I click on the TexMaths icon in LibreOffice Writer, I get the error:    Interestingly, if I write some Latex, I can select it and click on the TexMaths icon and it does turn my Latex into an image of the equation, but it's not editable.   More of the error message whenever I click on the icon (if I haven't selected Latex in the document first):


How to abort a stuck command in ubuntu server?

I know there is ctrl+c, but sometimes that doesn't work. In Ubuntu desktop I can just close the terminal window and open a new one when this happens, but how would this be solved using the CLI in Ubuntu server (without restarting the box)?


Can I remove this wall or is it load bearing?

We want to knock the kitchen and dining room into 1 room and I am hoping someone can help tell me if the highlighted wall is non load bearing:


I've tried to use find to change all file permissions in a file tree to be owned by my user, but accidentally ran on all files on my system. This is causing  me many assorted problems and strange behavior.  Version and info:  lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 18.10 Release:    18.10 Codename:   cosmic   uname -a Linux hostname 4.18.0-25-generic #26-Ubuntu SMP Mon Jun 24 09:32:08 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux   Is it better to just reinstall? or there is any other viable solution?


How to close LCD in D3300 after each shot

All:  I just got D3300, one thing really annoying is its parameter menu:  each time after I shot, the LCD will light up and show menu, I wonder how can I close that setting, just manualy control when open that LCD?  Thanks


How can I pool bootstrapped p-values across multiply imputed data sets?

I am concerned with the problem that I would like to bootstrap the p-value for an estimate of $\theta$ from multiply imputed (MI) data, but that it is unclear to me how to combine the p-values across MI sets.  For MI data sets, the standard approach to get to the total variance of estimates uses Rubin's rules. See  for a review of pooling MI data sets. The square root of the total variance serves as a standard error estimate of $\theta$. However, for some estimators the total variance has no known closed form or the sampling distribution is not normal. The statistic ${\theta}/{se(\theta)}$ may then not be t-distributed, not even asymptotically.   Therefore, in the complete data case, one alternative option is to bootstrap the statistic to find variance, a p-value and a confidence interval, even if the samling distribution is not normal and its closed form unknown. In the MI case there are then two options:   Pool the bootstrapped variance across MI data sets Pool the p-value or confidence bounds across MI data sets   The first option would then again use Rubin's rules. However, I believe that this is problematic, if $\theta$ has a non-normal sampling distribution. In this situation (or more generally, in all situations) the bootstrapped p-value can be used directly. However, in the MI case, this would lead to multiple p-values or confidence intervals, which need to be pooled across MI data sets.   So my question is: how should I pool multiple bootstrapped p-values (or confidence intervals) across multiply imputed data sets?  I would welcome any suggestions on how to proceed, thank you.


Getting text from last marker to EOF in POSIX.2

I have a text with marker lines like:  aaa --- bbb --- ccc   I need to get a text from the last marker (not inclusive) to EOF. In this case it will be  ccc   Is there an elegant way within POSIX.2? Right now I use two runs: first with nl and grep for the last occurrence with respective line number. Then I extract the line number and use sed to extract the chunk in question.  The text segments may be quite large, so I'm afraid to use some text-adding method like we add the text to a buffer, if we encounter the marker we empty the buffer, so that at EOF we have our last chunk in the buffer.


Using underscore for subscript in text mode using underscore only

I want to use subscripts without actually being in math mode.  N_A is Avogadro constant       instead of  $N_A$ is Avogadro constant   Is there any method I can do that?


why in JS 'this' keyword points to global variable, when i use function alias stored in another variable ? Code is Given Below

Here is my code showing that "var B" is targeting a global variable:    function koo(){   console.log( this.B );  }   var sampleObj = {    B: 2,    koo: koo  };   var xyz = sampleObj.koo;    var B = "It's global";  xyz();


java Collections synchronizedMap not working

Below code gives when I run the below code multiple time ConcurrentModificationException. When I use non concurrentHashMap it is working fine.      public static void main(String[] args) {          Map<String, String> stringSyncedMap = Collections.synchronizedMap(new HashMap<String, String>());          CollectionJob collectionJob1 = new CollectionJob(stringSyncedMap, "read");         CollectionJob collectionJob2 = new CollectionJob(stringSyncedMap, "write");          Thread thread1 = new Thread(collectionJob1, "T1");         Thread thread2 = new Thread(collectionJob2, "T2");          thread1.start();         thread2.start();     }  }  public class CollectionJob implements Runnable {      private Map<String, String> stringCollection;     private String operation;      public CollectionJob(Map<String, String> stringCollection, String operation) {          this.stringCollection = stringCollection;         this.operation = operation;     }      public void run() {          if (operation.equals("read"))             readFromCollection();         else             writeToCollection();          System.out.println("done");      }      public void writeToCollection() {         for (int i = 10; i < 20; i++) {             stringCollection.put("String " + i, "String"+i);      }      public void readFromCollection() {         for (String str : stringCollection.keySet())              System.out.println(str);     } }   What I am missing.


What's this separate "Phone" task section in app switcher?

I was unable to google what the possibilities of this separate "chrome on mobile" task in the cmd-tab app switcher is. What's it supposed to do?


What is the difference between linear regression and logistic regression?  When would you use each?


If $p$ is a prime, then $(p-1)! \equiv -1 (mod p)$. Hint: $(p-1)!$ is the product of elements in $Z_p$. Match each element to its inverse.  I can understand by testing some primes that for any prime $(p-1)!+1$ is a multiple of that prime, but I'm not sure how to prove it in general or how inverses play into it.


I use a Win10 computer to control a microscope, and the image acquisition can last 48 hours. If Win10 receives an update and restarts, the entire image stack gets ruined. We have tried many methods to prevent updating, to no avail. Current Win10 versions seem to be really keen on installing updates, no matter what the owner thinks. Is there anything we can do, programmatically if possible (short of pulling out the ethernet plug)?


Keyboard shortcut for jumping directly to a specific input method

I'm leaning Japanese, and so I have my Mac set up for three different input methods: English, and two different Japanese character sets. I can change between the three input methods using ctrl-alt-option-space.   However, because there are three input methods I have to press this key combination a different number of times depending on what the current state is. For example, if I want to switch back to English then I have to press it twice if it's currently set to hiragana, but only once if it's set to katakana. Because of this, I keep pressing it the wrong number of times, which results in typing unwanted characters and then having to cycle back through the three input methods to get to the one I want.  So instead of using one key combination to cycle through the three input methods, I'd like to set up a specific key press for each one. For example, I'd like to set up something like ctrl-alt-command-E that always switches back to English, no matter what the current input method is, so that I can always get to where I want to be without worrying about where I am. But I can't seem to find a way to do this. Is it possible?


Creating legend images for tabular legend in pgfplots

I use tabular legends for my graphs in pgfplots. At least three posts give ways to do that: ,   and . I like the syntax where a \label is given to the curves, called in a \matrix after \end{axis}.  However, I often need to define the legend entries "by hand" with \addlegendimage, which is then labeled and reference to. Here's an example:  \documentclass[border=5pt]{standalone} \usepackage{pgfplots} \usetikzlibrary{     matrix, } \pgfplotsset{     compat=newest,     every axis plot post/.append style={         every mark/.append style={solid},        % avoid dashed markers     } }  \begin{document} \begin{tikzpicture} \begin{axis}[ title={$y=a \cdot x + b$},     xlabel=$x$,     ylabel=$y$,     ] \addplot+[domain=-1:2, samples=10, mark=o, dashed] {1*x+1}; \addplot+[domain=-1:2, samples=10, mark=o, solid] {1*x+2}; \addplot+[domain=-1:2, samples=10, mark=square, dashed] {2*x+1}; \addplot+[domain=-1:2, samples=10, mark=square, solid] {2*x+2};  \addlegendimage{dashed}  % define by hand a legend image \label{plot:dashed}      % label it \addlegendimage{solid} \label{plot:solid} \addlegendimage{only marks, mark=o} \label{plot:o} \addlegendimage{only marks, mark=square} \label{plot:square} \coordinate (legend) at (axis description cs:1.03,1); \end{axis}  \matrix[     draw,     matrix of nodes,     anchor=north west, ] at (legend) {     Slope                   & $a$ & $1/a$   \\     \ref{plot:o}            & 2   & 0.5     \\     \ref{plot:square}       & 1   & 1       \\     Origin                  & $b$ & $1/b$   \\     \ref{plot:solid}        & 2   & 0.5     \\     % call the image. It would better to create it by hand here, no?      \ref{plot:dashed}       & 1   & 1       \\ };  \end{tikzpicture} \end{document}     It sounds strange to define "by-hand" a \addlegendimage with a \label and then call it in the matrix with \ref. As we're still in the tikzpicture, is there a command to directly generate the legend images within the matrix?


UITextView is always on one line, attempting to resize

I'm having a hard time with resizing a UITextView generated with code. I'm using swift, but examples in Obj-C are definitely welcomed. There seems to be two problems here, which are directly related to each-other:   A constraint is being ignored (Trailing) The height calculation is off, probably because the constraint is being ignored.   Here's the code I'm using the generate the UITextView:  if !loaded.biography.isEmpty {     biographyView = UITextView()     biographyView?.translatesAutoresizingMaskIntoConstraints = false     biographyView?.scrollEnabled = false     biographyView?.text = loaded.biography     biographyView?.textColor = UIColor.blackColor()     print("Set text to: " + loaded.biography)      biographyConstraints.append(         NSLayoutConstraint(item: biographyView!, attribute: .LeadingMargin, relatedBy: .Equal, toItem: interactionView, attribute: .LeadingMargin, multiplier: 1, constant: 0)     )      biographyConstraints.append(         NSLayoutConstraint(item: biographyView!, attribute: .TrailingMargin, relatedBy: .Equal, toItem: interactionView, attribute: .TrailingMargin, multiplier: 1, constant: 0)     )      biographyConstraints.append(         NSLayoutConstraint(item: biographyView!, attribute: .Bottom, relatedBy: .Equal, toItem: interactionView, attribute: .Bottom, multiplier: 1, constant: 0)     )      interactionView.addSubview(biographyView!) }  view.addSubview(interactionView) NSLayoutConstraint.activateConstraints(interactionConstraints) if !loaded.biography.isEmpty {     NSLayoutConstraint.activateConstraints(biographyConstraints)      let rect = biographyView?.sizeThatFits((biographyView?.bounds.size)!)      print("Width of bio view is: " + String(biographyView?.bounds.width))     NSLayoutConstraint.activateConstraints([         NSLayoutConstraint(item: biographyView!, attribute: .Height, relatedBy: .Equal, toItem: nil, attribute: .NotAnAttribute, multiplier: 1, constant: (rect?.height)!)     ])      print("Set height constraint to: " + String(rect?.height))      print("Added interaction & bio & set constraints")  }   The output of this when ran is the following:  Set text to: TESTING TESTING 123 THIS SOME FAKE BIOGRAPHY, I KNOW IT'S NOT MUCH BUT IT'S PLACEHOLDER TEXT, THIS SHOULD BE THE END, OH WAIT, BUT HEY RANDOM EMOJI: 😍 Width of bio view is: Optional(0.0) Set height constraint to: Optional(30.0) Added interaction & bio & set constraints   The field is positioned correctly, however the height adjustment is incorrect and the text spans off the screen on the right side. Even though it seems to end at the Trailing margin, the text-field continues to only be a single line of text. I want the text field to adapt to the height of the text.   Can anyone help me figure this out?


Do I still need to create a SWAP partition in modern Linux?

When installing Ubuntu 18.04+ (and other modern distros), do I still need to create a SWAP partition?


Getter funtion returns null in different class

The ReadJson class parses a JSON file with a single string called Name and it sets that string to the variable Name1.  public class ReadJson {     public static String Name1;      public static void main(String[] args) {        Name1 = (String) obbj.get("Name");        System.out.println(Name1);    }     public static String getName1() {        return Name1;    } }   When running the Game class it returns null:  public class Game {     private static ReadJson name2;      public static void main(String[] args) {         name2.getName1();         System.out.println(name2);     } }


I'd like to have a UIDatePicker where the user can pick a month and a day but not the year. I'm aware that leap years have an extra day, so for simplicity, let's throw that day away.  Is there any way to remove the year column or have 2 reels with month/day that act like the UIDatePicker (grey out days that don't exist in the selected month)?


Are there any academic articles that deal directly with the psychology / sociology of Stack Overflow / Stack Exchange?  I was trying to google this to see if there's any academic talk, but I didn't really see anything. This could certainly be due to my googling skills. I'm looking specifically for Stack Overflow / Stack Exchange and not general social networking or Q & A. I've seen , but I'm not really looking for a software engineering perspective (and I don't think they've published anything).  EDIT - just to be clear, I don't want software engineering / business articles  (which is what all the articles I have seen are) but psychology / sociology type.


can I use Linux installed in another pc in a diffrent pc?

I just don't want to reinstall it again, and I want to use it for testing only, no permanent use.


I admit this feature request is probably somewhat limited in useful scope, but I'm throwing it out there anyway. Inspired by , and because I want to use it on , I'm requesting that name be supported on a tags in posts.  On very long answers, such as the closing/migration guidance answer, this would allow direct linking to the specific closure reason. This would then allow us, when someone , to link directly to the appropriate reason and description thereof.  I recognize the limited scope of this, however, I have seen other long answers that could stand to have that kind of "deep" linking ability as well.  (The original incarnation of this post had either name or id, but preferenced name. Per Koper's answer, which I agree with, I took out the idea of supporting id, because Koper's right -- too dangerous.)


My computer is a Lenovo IdeaPad U410 Touch with Ubuntu 14.04 LTS. I want to  install Chrome. When I tried to install Google Chrome I was asked what download package to choose:  32 bit deb (for Debian/Ubuntu) 64 bit deb (for Debian/Ubuntu) 32 bit rpm (for Fedora/openSUSE) 64 bit rpm (for Fedora/openSUSE)   So what should I choose?


A similar question but about teeth healing themselves is .    So I understand that teeth have the capacity to heal themselves to a certain degree. It appears to be that part of the reason they can't heal all of themselves is that they are not surrounded by cells. In that case why can't we grow teeth back?  If a tooth is grown in the gum, or somewhere else, it would be surrounded by cells and so should be able to grow back right?  It appears that      New teeth are continually grown in a groove in the shark’s mouth and the skin acts as a “conveyor belt” to move the teeth forward into new positions.   Why can't we do this?


Is it possible to uninstall Ubuntu and let only Windows installed?

I bought a computer and asked the seller to install a pirated version of Windows 7 on its 250GB SSD. However, it came with only 80GB of free space on it with no heavy softwares installed, as there is both Ubuntu and Windows installed, which is very few for my needs.  In the OS selection screen (GNU GRUB - version 2.02~beta2-36ubuntu3.1) , it has Ubuntu and Windows 7 (loader). Ubuntu seems to consume 114GB in the disk space, and as I only use Windows, is there a way to remove Ubuntu and let only Windows on it?


$(-10)^\frac{1}{3}$ comes out to be imaginary

The expression $\displaystyle (-10)^\frac{1}{3}$ returns errror when calculated with scientific calculator returns an imaginary number. But it's power is $\dfrac{1}{\text{odd number}}$.


For what values of $n > 1$ and a is $x^n - a$ irreducible in $\mathbb Q[x]$?

$$x^n-a$$  So $n$ is any integer greater than 1, and $a$ is any integer.  $a$ being any integer is where I am running into trouble.  I have already shown and worked out a proof for this being irreducible when a is prime.  Now I am just working through examples, trying to figure out a pattern.  The exercise is asking for application of Eisenstein's Criterion only, so I am assuming that the value of n should have no effect on the irreducibility.


Is there a way to download Ubuntu straight from Windows?

For some reason the LiveUSB I got over here seems to be laughing at me and it won't let me install Ubuntu, so is there a way to install it straight from Windows to an external hard drive?


I have a huge database with 100's of tables and stored procedures. Using SQL Server 2005, how can I get a list of stored procedures that are doing an insert or update operation on a given table.


Make Thunderbird to check for mails when it is closed

Is it possible to make Thunderbird to check for new mails even when it is closed. Currently for me it only checks for new mails when is open or when is minimized.  For example in Windows, Mailbird is such a mail client that checks for new mails even when it is closed. But its icon still exists in system tray.


Came across the identity, interested in the same observation from others and how have others arrive at it:  $$\arctan(6/10)+\arctan(1/4) = \frac{\pi}4$$  thank you in advance. Probably trivial. I took the long way home.


how to prove φ(n) tends to infinity as $n$ grows?

I am wondering how can I prove $\lim\limits_{n \rightarrow \infty} {φ(n)=\infty}$   My attempt: For a prime number, we have φ(n)=n-1, so the equation above is proved. However, how can I prove it when n is a composite number?   What do you think about it? Could you please show me?  Regards


ISO to shoot very very dark object with a tripod

I want to take a picture of a (almost) pitch black landscape at night. Like a mountain or trees at night. The object will not be moving and I will have a tripod.  I am not sure what is the best way to get the best exposure and image quality.  I know that high ISO gives noise, but also that long exposures can give fix field noise.  Do I want to up the iso above 100 to avoid fix field noise of long exposure?  Or since because I am using a tripod, should I just do 100 iso with a REALLY long exposure time, like > 1 min?


redirect to the same file as the source file processed by the command

Redirection is not allowed here. Is cat not allowing? But isn't redirection independent of any command running with it?  $ cat bk > bk cat: bk: input file is output file  Why does the following redirect empty the file:  $ less  bk > bk   awk also works in the similar way as less in regard to redirection. awk is the one with which I actually found the problem, while the above examples are meaningless   In general, what are the right way to use redirect?


I would like to waterproof an FR4 circuit board that has no external connectivity requirements other than permanently attached USB cable, but it does have a number of  that must show. Most significant other components are an TSSOP20  microcontroller and an . Power is via a small rechargable 3.7 volt LiPo battery.   Also, the board is to be fitted in a (!), so adding an additional waterproof enclosure is not feasible. The water exposure is essentially moisture build-up, not actual soaking (hopefully). The device needs to last just a few months to a year.  What are my options and and what problems would I face?   If I use potting epoxy, will there be heat build-up? If I simply use a see-through latex balloon will that survive circuit board heat?   Is there any additional detail I could add to make this question clearer?


I'm working on a PHP based project. I want to secure passwords using my machine's private key - something one shouldn't be giving away anyway. So I thought it might be a good idea. However, the OpenSSL API within PHP is a bit confusing.  Can someone point out a way I can store and later validate a user's password? With "store", I mean that during the user's registration, the password entry is created and stored, and with "validate" I was meaning to pick up the password and validate it against the entered string.  I tried to find a Composer library, but my installation of PHP is missing ext-mcrypt since I did not compile it in.


Why is the sample distribution the Exponential distribution Gamma distributed?

Suppose I have $X_i \sim \operatorname{Exp}\left(\beta\right)$.  Then, the sample mean of these random variables has gamma distribution .  $$\overline{X} \sim \operatorname{Gamma}\left( n, \dfrac{\beta}{n} \right)$$  Why is this the case?  I understand that the exponential distribution is a special case of the gamma distribution.  How can I prove that the sample mean is distributed as such?


Why are objects allowed to be used after a block?

In this code, why do a and b not get destroyed at the ends of their respective blocks?  flag = True if flag:     a = 1  for i in range(2):     b = 2  print(a, b)   Instead, this code prints 1 2. Why does Python allow this? When can I rely on this behavior?


Why are there a transporter room and transporter pads?

It seems it's just as easy to transport someone or something to any part of the ship as a transporter pad (at least TNG era). Other than maybe a place to welcome guests, it seems largely unnecessary (except perhaps particularly complex operations like removing that transporter space worm out of Barclay). Do the transporter room and pads have more power, or other benefit than transporting someone directly to their room/sickbay/bridge?


Set a password that's not linked to my Microsoft account?

I have a really long password for my Microsoft account, and I don't want to enter that every single time I log in, so I was wondering if I could have a second, smaller password for just the computer profile. I know you can do this with a PIN, or a picture password, but can I do it with a normal password?


How to place label in middle of line (above and below) with TikZ

\fbox{ \begin{tikzpicture}[scale=1,auto=center]   \node[circle,fill=gray!20] (n1) at (2,8) {Node A};   \node[circle,fill=gray!20] (n2) at (8,8) {Node B};   \foreach \from/\to in {n1/n2}   \draw (\from) -- (\to) node[draw=none,fill=none,font=\scriptsize,midway,below] {text below}; \end{tikzpicture} }   The example show how to put text below the line in middle, but how to write the text below and above the line in middle (simultaneously) between two nodes? ...


How to access phpMyAdmin after installation?

I've installed phpmyadmin sudo apt-get install phpmyadmin. Of course, I have also mysql and a web server running properly.  Now how can I reach it?


I'm a Xmarks user. I'm sharing bookmarks between Chrome and Firefox and I'm also using Chrome and Firefox on portableapps.  I have lots of problems with Xmarks like lots of empty folders keep on being added, bookmark duplication, and now my bookmarks got deleted for no reason.   Can anyone suggest a good method to share bookmarks with different browsers?


Preserving create_time when loading a mysqldump file

I want to make a copy of a MySQL database but preserve the information_schema.create_time for each of the tables. I haven't been able to find an option to do that with mysqldump.


Latex glossaries: Hyperref/Link only the first occurance of an entry in each section?

By default, the glossaries package creates a link to the glossary for each occurrence of an entry (e.g. each time I use \gls{entry}). With the links visualized (e.g. using hyperref colorlinks). This becomes really cluttered if an entry is used many times.  I would rather prefer that only the first occurrence of an entry is hyperlinked. Is this possible?


Replacing Insulating blanket around oven (patching grease spill)

I accidentally spilled some oil on the stove which seeped down below the top.  The oil is now in the insulating blanket that surrounds the oven and caught fire while a burner was on.  Can I buy new insulating material, cut out this patch and replace it?  Any help appreciated.  edit:  can I use this product to patch it?


What is the typical orbital life of an artificial satellite?

The orbit of satellites around Earth eventually decays, or so I read. This is typically caused either by atmospheric drag, or by tides. I would assume most satellites have a limited service life in orbit. Hence the question - What is the typical orbital life of a satellite? How long before it's successor must be launched into orbit ?  EDIT: For instance, a weather satellite


What does {0} mean when initializing an object?

When {0} is used to initialize an object, what does it mean? I can't find any references to {0} anywhere, and because of the curly braces Google searches are not helpful.  Example code:  SHELLEXECUTEINFO sexi = {0}; // what does this do? sexi.cbSize = sizeof(SHELLEXECUTEINFO); sexi.hwnd = NULL; sexi.fMask = SEE_MASK_NOCLOSEPROCESS; sexi.lpFile = lpFile.c_str(); sexi.lpParameters = args; sexi.nShow = nShow;  if(ShellExecuteEx(&sexi)) {     DWORD wait = WaitForSingleObject(sexi.hProcess, INFINITE);     if(wait == WAIT_OBJECT_0)         GetExitCodeProcess(sexi.hProcess, &returnCode); }   Without it, the above code will crash on runtime.


I am a size 24 top. Size 26 bottoms (uk sizing). About 300lb. I am losing weight but I have run out of time before a few plane trips. I don't want to miss out of such fantastic opportunities but I am having panic attacks over not being able to fit in the seat at all and being kicked off the flight altogether.  The link below is to some pictures of me (as everyone carries weight differently.) Has anyone got any comforting words or stories?


I recently joined SO and related sites, and whilst raising a question I noticed that there was no obvious way for me to apply Markdown styling to body content via mobile.  For instance, if I were to post a section of code, I would have to rely on another user to edit my post to correct the formatting, or I would have to go to a desktop browser to do so. I also noticed that when tapping into the body section, mobile browsers zoom in (likely due to font-size) which makes the editing/creation experience a little jarring/unfriendly.


linux select specific characters from text file

If i have a text file with the line qwertyuiop, how can i select the first character and after that each characters by jumps of 2 without using more than 1 pipe in my command ? In qwertyuiop i would have qetuo printed in the cmd.


We recently had a harddisk failure on our mail server (debian/postfix/courier) so I'm researching a way to build redundancy.  The first way I found was to setup multiple mx Records in the DNS Server so that the second Mailserver jumps in when the first fails. While this is easy to build it's not what I have in mind for redundancy.  The second one is to use a third box which provides a NFS share where the Mailboxes are stored. This isn't really an option, because it provides a single point of failure like a standalone Mailserver.  I would like to have a way to synchronize the two servers, so that, if the first Mailserver fails, the enduser doesn't notice there had been a failure. (Mails still in the IMAP Mailbox etc.)  Any chance?


A book on quantum mechanics supported by the high-level mathematics

I'm interested in quantum mechanics book that uses high level mathematics (not only the usual functional analysis and the theory of generalised functions but the theory of pseudodifferential operators etc, certainly the modern mathematics). If there isn't something similar please give me a reference to the book that is strictly supported by mathematics (given a set of mathematically descripted axioms author develops the theory using mathematics as a main tool).


How to pprint and automatically include the the variable name

For Python 2.7 I have a little utility for debugging:  def printvar(label, var):     print "%s:\n%s" % (label, pformat(var))   Often I call it like printvar("foo", foo).  Is it possible to simplify that a tiny bit and only pass in the variable, like printvar(foo), but still have it print the name of the variable? Using introspection or something?


Any performance difference between Ubuntu desktop and server versions?

I am planning on setting a server which will be running 24/7, for educational purposes mainly. The machine will also serve as a HTPC occasionally since it will be connected to my TV.  That being said i am wondering if there is any significant performance loss or/and resources usage between the desktop and server versions.   PS. I know i can just dual boot and install windows but i'd rather stick with just one OS if the performance is not that big of a deal  thanks in advance


Cannot load old saves in complete edition

I had physical copy of the game. The complete edition was on sale on PSN so I bought it and deleted the physical copy from the feed bar and downloaded the digital copy. Now I can’t use my old saves. When I try to load an old save it tells me the game isn’t completely installed  Is there a way to fix this?


Increment in date choosen from JDateChooser

I am stuck in a programming issue. I am am making Java Application in Eclipse attached with SQlite. I want such state where user choose a date from JDateChooser and date of after two days from the specified one in JDateChooser show into next field.  I am using the following code which I know works..   DateFormat df=new SimpleDateFormat("dd-MM-yyyy");  Date date =  df.parse(ArrivalDate);  Calendar cal = Calendar.getInstance();                   cal.add(Calendar.DAY_OF_MONTH, 2); // Add 30 days  Date futureDate = cal.getTime();  String NextDate=df.format(futureDate);   ----Here ArrivalDate is date entered by user. Issue over here is this, that Calender class choose the present date of the day. Not work with the date choose by the user. For example, if today date is 01/08/2018 and user has entered 12/08/2018.. This code will give 03/08/2018 in return, not the 14/08/2018. How do I achieve this scenario?? Kindly help.


We see Newt Scamander use his wand several times in the film. Graves briefly mentions that Newt was expelled from Hogwarts. However, when Hogwarts students get expelled, their wands are destroyed by the Ministry of Magic.


How to add and remove items in JList according to my Model, by the delimeter in JTextField

In this code i have implemented My own list model AbstractListModel to be able to add and remove elements to list adding works removing also, but i want here the elements to be added and removed like this: "add John", John is added to the list, same with removing. I splited string by delimeter and added it to my array of strings but it does not work, so here is my question how to add elements and remove by the delimeter.  import java.awt.*; import java.util.*; import javax.swing.*;     class MyListModel extends AbstractListModel<String> {       ArrayList<String> list = new ArrayList<>();      public int getSize() {     return list.size(); }  public String getElementAt(int index) {     return list.get(index); }  public int getIndexOfItem(String searchTerm) {     int z = 0;     for (int i=0;i < list.size();i++) {         if (list.get(i).equals(searchTerm)){             z = i;         }     }     return z; }  public void add(String item) {     list.add(item);     fireIntervalAdded(this, list.size() - 1, list.size() - 1); }  public boolean remove(String name) {     boolean success = false;     int size = list.size();     for (int i=0;i < size;i++) {        if (this.getElementAt(i).equals(name)) {         this.remove(i);         size--;         success = true;     }     }     return success; }  public void remove(int index) {     list.remove(index);     fireIntervalRemoved(this, index, index); }  public boolean isEmpty() {     boolean empty = false;     if (this.getSize() == 0) {         empty = true;     }     return empty; } }  public class JListl extends JFrame {  public JListl() {       MyListModel ml = new MyListModel();     JList list = new JList(ml);     add(new JScrollPane(list));       TextField tf = new TextField();            add(tf, BorderLayout.SOUTH);       this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);     this.setTitle("JList Renderer Example");     this.setSize(250, 400);     this.setLocationRelativeTo(null);     this.setVisible(true);     tf.addActionListener(new java.awt.event.ActionListener() {   public void actionPerformed(java.awt.event.ActionEvent e) {       //here is the problem      String[] a = tf.getText().split("\\s+");       // ml.add(a[1]);         if(a[0]=="add"){             tf.setSelectionStart(4);             tf.setSelectionEnd(a[1].length());            ml.add(a[1]);             System.out.println(a[1]);         }else if(a[0]=="del"){             ml.remove(a[1]);          }     } }); }  public static void main(String[] args) {     SwingUtilities.invokeLater(new Runnable() {         @Override         public void run() {             new JListl();         }     }); } }


What does this assignment to a string literal do?

This is my code. I want to know what is happening here. Can anybody describe the code? char *string;   string = "Le Casa de Papel";       *(str+1) = 'a';   return 0;


how can I access values stored within a method from other places of a class

In my current application while I have been able to implement the required logic that I need I am really stuck when trying to take off the content from the main method and using it from a different method .  My code is as below,  class Program     {         const string path = @"filePath";         static void Main(string[] args)         {             setUpValues();         }         private static void setUpValues()         {                 var Content = JsonConvert.DeserializeObject<deploy>(File.ReadAllText(path));                 List<Variable> variables = Content.Variables.ToList();                 Scopes Scope = Content.ScopeValues;                  string Version = null;                  List<string> ListOfSelectedItems= new List<string>();                 List<string> TempListOfSelectedItems = new List<string>();                 List<string> Channels = new List<string>();              foreach (var item in variables)             {                 if (item.Name.Equals("version"))                 {                     Version = item.Value;                 }                 if (item.Name.Equals("Selected"))                 {                     TempListOfSelectedItems.Add(item.Value);                 }             }              Console.WriteLine("Version  " + Version);             Console.WriteLine();              string SelectedItems= TempListOfSelectedItems[0];             ListOfSelectedItems = SelectedItems.Split(',').ToList();              Console.WriteLine();             Console.WriteLine("Selected Modules");             Console.WriteLine();              foreach (var item in ListOfSelectedItems)             {                 Console.WriteLine(item);             }              foreach (var item in Scope.Channels)             {                 Channels.Add(item.Name);             }         }     }   I want to be able to access the variable string Version ,  the List of ListOfSelectedItems and the List of channels from outside this method .. I want to use these in another as well . So how can I make these globally accessible ? Would really appreciate your help on this as I have been stuck here


How can I get rTorrent to use a VPN (OpenVPN), but the rest of the applications on my server to use the regular internet-connection? The server runs debian.


Connect two point in page using short ruler

There is problem that my friend and me don't have solution for it. the problem is that can we connect to point in page with straight line using a ruler that it length is too much shorter than distance of two given point? if we can't do this prove that it is impossible.


while (guess<1234 or guess>9876)   {     cout << "Invalid" << endl;     cin >> guess;   }   The output spams 'invalid,' giving me not time to enter a new guess. How can I get it to pause?


Accessing root files on Ubuntu Phone from my eOS based on Ubuntu.

I'm wondering if its possible to access the root files on my Ubuntu Phone E5 from my computer. I know I can access them from the terminal on the phone but its not ideal using that touchscreen to explore. Is there a way to gain access to these files from my elementary os (freya, based on ubuntu distro)?  Thanks


404 Not Found when installing updates on Kali Linux

I get this error message after trying to do the regular updates from the notification in kali linux:  E: Error http://security.kali.org/ kali/updates/main libicu48 amd64 4.8.1.1-12+deb7u2   404  Not Found   any help?


If I kept a body in a groove on a frictionless circular table, and rotate the table with a constant angular velocity, what will happen to the block?

I have read that it would slide off the table, because apparently in the frame of the table it experiences a centrifugal force outwards, but I can't seem to agree with that logic.  In the ground frame of reference there is no force in the direction of the groove (let me call it the instantaneous x axis). Centrifugal force is just a psuedo force right? So how is it that in the frame of the table it experiences an outward force?   According to me it is just like keeping a block on a frictionless table. Causing the table to move would have no effect on the block which would eventually fall off the table because it would eventually run out of table. But here the table is only rotating so no chance of that happening.  Perhaps it's some deep rooted misconception about circular motion .. please help!  EDIT: THE GROOVE IS DIAMETRICAL.


$$2^5 \times 9^2 =2592$$ I am trying to find any other number in this pattern.  That is find natural numbers $a$ , $b$ , $c$ and $d$ such that  $$a^b \times c^d = \overline{abcd} $$  We have  $$a^b \times c^d = \overline{cd} + 100\overline{ab} $$   So $$a^b \times c^d - \overline{cd} = 100\overline{ab} $$  LHS is a multiple of $100$ .Any help from here will be greatly appreciated


how to install the DDE to the ubuntu 20.04?

I have installed the Ubuntu 20.04, and want now I want to install Deepin Desktop Environment (dde)  My steps are:   add the ppa and install using apt  sudo add-apt-repository ppa:leaeasy/dde sudo apt-get update sudo apt install dde    But during the command sudo add-apt-repository ppa:leaeasy/dde I get the following error:  $ sudo add-apt-repository ppa:leaeasy/dde  You can install deepin desktop environment by run  sudo add-apt-repository ppa:leaeasy/dde sudo apt-get update apt-get install dde ------ Ubuntu Bionic: https://drive.google.com/file/d/1xkQPb4tWocknuYeY-t41W--kz-9SSL0V/view?usp=sharing ------ Important Issue: Q: Can dde on Ubuntu 16.04? A: Sorry, the dde depends on qt version above than 5.6.      If you want to install dde, please upgrade to 17.04 or above.  More info: https://launchpad.net/~leaeasy/+archive/ubuntu/dde Press [ENTER] to continue or Ctrl-c to cancel adding it.  Hit:1 http://in.archive.ubuntu.com/ubuntu focal InRelease Hit:2 http://in.archive.ubuntu.com/ubuntu focal-updates InRelease                                      Hit:3 http://in.archive.ubuntu.com/ubuntu focal-backports InRelease                                    Ign:4 http://ppa.launchpad.net/leaeasy/dde/ubuntu focal InRelease                                      Hit:5 http://security.ubuntu.com/ubuntu focal-security InRelease            Err:6 http://ppa.launchpad.net/leaeasy/dde/ubuntu focal Release             404  Not Found [IP: 91.189.95.83 80] Reading package lists... Done E: The repository 'http://ppa.launchpad.net/leaeasy/dde/ubuntu focal Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.   I get the similar error with sudo apt-get update :  $ sudo apt-get update Hit:1 http://in.archive.ubuntu.com/ubuntu focal InRelease Hit:2 http://in.archive.ubuntu.com/ubuntu focal-updates InRelease                                       Hit:3 http://in.archive.ubuntu.com/ubuntu focal-backports InRelease                                     Ign:4 http://ppa.launchpad.net/leaeasy/dde/ubuntu focal InRelease            Hit:5 http://security.ubuntu.com/ubuntu focal-security InRelease Err:6 http://ppa.launchpad.net/leaeasy/dde/ubuntu focal Release   404  Not Found [IP: 91.189.95.83 80] Reading package lists... Done E: The repository 'http://ppa.launchpad.net/leaeasy/dde/ubuntu focal Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.   How can I install dde ?


If I do this:  SUMAN_DEBUG=foo echo $SUMAN_DEBUG   I get no output  but if I do:  SUMAN_DEBUG=foo && echo $SUMAN_DEBUG   then I get  "foo"  why is that?


How to use PostgreSQL/PostGIS with ArcGIS for Desktop?

Has anyone used PostgreSQL with PostGIS successfully?   I am a semi-experienced ArcGIS user and want to build out a database and connect it to ArcCatalog.   I've scoured the internet for resources but nobody has really given a good walkthrough.


How to handle late game tile drawing in Tsuro

The rules in Tsuro are very vague about what happens once the players start to run out of tiles.  What's the best way to handle how titles are drawn in Tsuro when a player goes out, and other players are lacking tiles.  I know the dragon title is placed at the end of the deck, and signifies that a player who draws the dragon tile should received a card once one becomes available, but what happens if more then one player has less then three tiles?  It's conceivable for a player to go out to take out more then one player, possibly freeing multiple tiles.  Should all player lacking tiles go back up to three if they can?


Python3, iterate to JSON array without name

I'm trying to iterate through this json array :   [{     "date": "2018-02-21T12:53:00",     "name": "System date",     "ID_BBData": "none",     "TOKEN_BBData": "none",     "rawValue": 540916682 }, {     "date": "2018-02-21T12:53:00",     "name": "Temperature sensor 1",     "ID_BBData": "none",     "TOKEN_BBData": "none",     "rawValue": 11 }, {     "date": "2018-02-21T12:53:00",     "name": "Value week",     "ID_BBData": "none",     "TOKEN_BBData": "none",     "rawValue": 1810 }]   With this loop :  # print the keys and values for key in jsonObject:     value = jsonObject[key]     print("The key and value are ({}) = ({})".format(key, value))   Where jsonObject is the json above. The problem is that the json is enclosed by [] but there isn't any name to this array.  Any clue to iterate through this one ?  Thanks a lot !


Symmetric $3\times 3$ Matrices - Base matrix

Let $V$ be the set of all symmetric $3 \times 3$ matrices. (Recall that $V$ is a subspace of $M_{3\times 3}.$) Find a basis of $V$ , and show that it is a basis.  I'm not sure what the question means by "basis of $V$." Any help would be appreciated.


Link from Beta SE back to proposal on Area 51?

I'm participating in the  and wanted to refer to the on- and off-topic questions on the  proposal.  However, I couldn't find a link to it anywhere in the SE site.  If I'm not missing the obvious, could we have one?


Fundamental Group of surface with infinite genus is free on infinite generators

This is question 16 of section 1.2 in Hatcher's Algebraic Topology. I have to show that the fundamental group of the space $X$ is free on an infinite number of generators.   So here is my approach. Using van-Kampen, I can see that $\pi_1(X)=\pi_1(U)\star\pi_1(V)$. Also $U$ and $V$ are homeomorphic. So I've to calculate $\pi_1(U)$. I have that the fundamental group of $U_g$ (torus of genus $g$ with two points removed) is free on 3g $2g+1$ generators.  Now in some sense, $U=\lim_{g\to\infty}{U_g}$ and so $\pi_1(U)$ is free on infinite generators. But how do I justify this? Is it even true?  My second approach is, using van-Kampen, $\pi_1(U)=\pi_1(U_1)\star\pi_1(U)$. This is an infinite recursion. But again I cannot proceed further.  Any help is appreciated. Thanks!


Encrypting a server's home directory vs. availability

Disclaimer: I'm a newbie with server administration.  Should I encrypt the home directory for a Ubuntu server?  Encrypting the home directory means also encrypting the .ssh folder and therefore being unable to access it via ssh if I don't log in through the server console first. And furthermore means being unable to fix any problem remotely if the server gets somehow restarted.  Is encrypting the home dir for a high availability server a good practice? If it is, how should I cope with the problem I mentioned?


index being used during equality operator but not comparison operator

Using a btree as my index. From what I understand(), btree works for comparison operators. For equality operator it works fine  explain analyze select latitude, longitude  from internal.location_log  WHERE entry_timestamp = 32903023;   Index Scan using internal_location_log_entry_timestamp_idx on location_log  (cost=0.42..8.44 rows=1 width=16) (actual time=0.063..0.063 rows=0 loops=1)    Index Cond: (entry_timestamp = 32903023)  Planning time: 0.104 ms  Execution time: 0.088 ms   however for comparison operator like  explain analyze select latitude, longitude  from internal.location_log  WHERE entry_timestamp >= 32903023;  Seq Scan on location_log  (cost=0.00..17969.96 rows=821837 width=16) (actual time=0.012..347.941 rows=821957 loops=1)    Filter: (entry_timestamp >= 32903023)  Planning time: 0.209 ms  Execution time: 537.699 ms   Am I missing something?


I need to run tail -f against a log file, but only for specific amount of time, for example 20 seconds, and then exit. What would be an elegant way to achieve this?


How to profile, visualise and understand large number of groups/classes/clusters in data

I am working on clustering a medium-sized, high-dimensional data set (200k rows; 120 columns). Once I have attempted (multiple) cluster solutions, I would like to profile my clusters and understand them.   Previously, I used to calculate descriptive statistics (mean, mode, median, standard deviation). I was trying to use  but these don't help much with large number of variables.   I was wondering if there are some other ways for profiling and understanding clusters.


How can I recursively download an artifact and all dependencies into a directory?

I don't have an internet connection at work, and I want to bring there a specific library.  So I want to be able to download at home an artifact along with all of its dependencies (recursively), in order to be able to take all of these jars and bring them to work.  I have read on this site about dependency:get, which is great but downloads the artifacts to the local Maven repo (~/.m2/repository). This means that after downloading, I need to look at pom files and manually copy all of the dependent JAR files to some directory, which I can then bring to work.  I would love to have a way to simply download the desired JAR and all of its dependencies into a specific folder.  Is there a way to acheive this?  Please note: this question is different than the mentioned duplicate, in that I'm asking how to do this without any project or pom.xml file. I'm looking for the simplest way to do this.  EDIT: I believe I found a possible solution (not the most elegant though..):   Rename the local repo (~\.m2\repository on my Windows machine) to repository.old. Create an empty directory repository at the same location instead. Run  mvn dependency:get -Dartifact=<groupid>:<artifactid>:<version>   This doesn't require a pom.xml or a project. The artifact and dependencies have been downloaded to your local previously-empty repository (~\.m2\repository). Move the local repository to wherever, and rename repository.old back to repository.   (I think) you now have all the dependencies for your desired artifact.


Does QGIS have something like the MS Office macro recorder?

I would like to use python console in QGIS to automate tasks. Is there something like a macro recorder in MS Office to get the python commands?


Recommendation for lightweight algorithm for partial message encryption

I have designed a specific client and server program, which sends a file  from client to server in 32k chunks. I want to encrypt only part of the data. More specifically: in each 32k chunk passing from client to server I want to encrypt only 500 bytes. This, in a non-continuous way (meaning: partial encryptionhere and there in the chunk of 32k, totally forming 500 bytesof encrypted data within the 32k block). Here client is a constrained sensor and server is an Arduino board used for Internet of Things concept, to save of energy of the constrained device(client) i want to encrypt only parts of data.  Are there any lightweight(here refers to C.P.U consumption) cryptographic algorithms or methods which offer  the option to set an “offset” and a parameter defining how much partial data we want to encrypt?  For example encrypt (bufptr, random_num, ENCRYPT_LENGTH); where bufptr is a 32k chunk with information, random_num is the random number smaller than the bufptr pointing to the bufptr, ENCRYPT_LENGTH is the length we want to encrypt (like 20 bytes from the number pointed by the random_num).


2-10x Slower Deployments with Winter '15?

We've recently had deployments spike in several of the client orgs we work with. The worst example jumping from 45 minutes to upwards of 7 hours. A current deployment is 3 hours in and has only completed 30 out of 487 tests. In all cases deployment times are highly variable, but are always nearly double what they use to be, and in some cases are a whole order of magnitude slower.  Does anyone know what changed that would lead to this? Anyone else experiencing this?


Interstellar culture resolves disputes with simulated duels; antagonist cheats using telepathy

The story begins in media res with as the viewpoint character fights a duel on a frozen planet.  They combatants are wearing something between a power suit and a single-person armoured vehicle; visibility is almost zero and radar range is short.  The viewpoint character knows what to expect, how to set his bombs for best effect, but he keeps finding his opponent not where he expects.  Eventually, his opponent seeming to attack him from multiple directions at once, he loses.  We switch now to a military-type briefing taking place aboard a ship.  The protagonist is filled in on this duel, and the fact that the person who lost is catatonic.  This is not the first time his opponent has mentally damaged those he fought against; this is a problem that must be dealt with.  I believe the simulations are constructed in the mind of one or both of the duelists, which is part of why it can have such a major effect.  The antagonist represents a hostile power, and the protagonist is volunteered to fight the next duel against him.  There's probably some stuff missing here, but the protagonist is fitted with a helmet and hooked into the simulation apparatus. This duel is being fought using lances (or some kind of hand weapons) from the backs of horses (or some other riding beast), on a dusty plain.  He enters the simulation and starts riding toward his opponent.  As they approach, 2 more horsemen appear behind his opponent and fan out to the sides.  More follow, until he is facing 6 or 7 enemies.  Nonetheless, he charges, and as he does so he sees riders fanning out beside him to meet the enemy.  His opponents, not expecting an equal fight, are defeated, and he is debriefed; he was wearing a helmet/device that allowed some of his shipmates to join in the fight, while the opponent was part of a small group (siblings) who had a telepathic bond.  I would have read this in a hardcover anthology between 1978 and 1981.  Cover is forgotten.


$\frac{1 - e^{iz}}{z^2} = \frac{-iz}{z^2} + E(z)$ where $E(z)$ is bounded as $z \rightarrow 0?$

Was reading some notes and it states that $f(z) = \frac{1 - e^{iz}}{z^2}$ can be written as $f(x) = \frac{-iz}{z^2} + E(z)$ where $E(z)$ is bounded as $z \rightarrow 0.$ I don't exactly see why. Help is appreciated.


How would I go about evaluating this integral? $$\int_0^{\infty}\frac{\ln(x^2+1)}{x^2+1}dx.$$ What I've tried so far: I tried a semicircular integral in the positive imaginary part of the complex plane, excluding the negative real axis, but had trouble calculating the residue at $z=i$ (perhaps there is a way of doing this that I don't know of). After that didn't work, I tried a rectangular box integral from $\epsilon$ to $R$, from $R$ to $R+i/2$, from $R+i/2$ to $-S+i/2$, from $-S+i/2$ to $-S+i\epsilon$, from $-S+i\epsilon$ to $-\epsilon+i\epsilon$ and finally a semicircle around the origin, radius $\epsilon$.   Any help would be appreciated.


I am having a personal crisis and I thought maybe I should ask for some guidance in this forum.   I have been in grad school in 4 years, failed qualifiers once passed at second attempt. I am dedicated to my math-intensive research area, queueing theory, yet I still feel I am far away of being an expert in it. I have only almost finished a paper, that requires feedback from my advisor but I feel I am a big failure. My advisor thinks that I am ready to propose my thesis (thus make an early presentation to committee) next month and possibly graduate next summer. The trouble is, although I respect his opinion, even if I do get my PhD I think I will feel like I don't deserve it. It is as if I hit the magic 4 year landmark and being allowed to graduate.   Now, publication record may not be the only indicator as in my department people don't publish as much as in other fields. When I look at some good thesis's I feel that mine can be considered as masters (personal not confirmed opinion). In retrospect, all the proofs I stuggled seem so easy to me. Although I never considered acedemia as a career path and only consider industry, I more and more feel that I am a failure and will have achieved so little in the last years. I have been always aware of the challenges of grad school but I feel I messed up somewhere considering I work 10 hours each day, at most a day off weekends and having no time left to cultivate my interests, develop new friendships or develop other useful skills.   Maybe I should also mention that I am doing my studies in a top 20 US university, people mostly have the impression that I am smart, and I am aware that I have learnt so much during the last 4 years. I have read many books on productivity, learnt about Feynman's method, watched TED videos. I started going to gym to manage my stress and I think that smartness is a matter of knowledge and I have the capacity to be smart. I don't regret going for a PhD but on the other hand I can't stop feeling like I wasted my years in going grad school and maybe should have just gone to a mundane job where I'd have time to read about architecture, finance or philosopy and be a much more interesting person.    Does anyone share or shared the same feelings? Any advice to people in my situation? Any help appreciated


How many memory addresses can we get with a 32-bit processor and 1gb ram?

How many memory addresses can we get with a 32-bit processor and 1gb ram and how many with a 64-bit processor?  I think that it's something like this:  1GB of ram divided by 32bits or divided by 4? to get the number of memory addresses?  But i'm not sure. That's why i'm asking.  I red on wikipedia that 1 memory addresses is 32bits wide or 4 octets (1 octet = 8 bits), compared to 64bit a processor where 1 memory addresses or 1 integer is 64bits wide or 8 octets. But don't know if i understood it correctly either.


Constructing a multipart/form-data request for transmitting a PDF to an external service

I'm trying to make a POST request to  from Apex to include what is required; a task Id and a single file. It has been very difficult. At first, Bad Request responses was all I got, but after fiddling around with things such as \r\n in the construction of the blob, I started getting Internal Server Errors. My code below is mostly thanks to  by Enrico Murro, however he only includes a file without any additional parameters (there is a comment on that post by Vinod with a possible solution by Enrico, but I couldn't understand it, maybe someone here can). Here is how I have constructed the blob. If anyone has any expertise regarding the matter, please please share! String boundary = '----WebKitFormBoundary7MA4YWxkTrZu0gW'; String preheader = '--'+boundary+'\nContent-Disposition: form-data; name="task"\n'+taskId; String header = '--'+boundary+'\nContent-Disposition: form-data; name="file"; filename="'+file_name+'";\nContent-Type: application/octet-stream';  String headerEncoded = EncodingUtil.base64Encode(Blob.valueOf(preheader+header+'\r\n\r\n')); while (headerEncoded.endsWith('=')) {     header += ' ';     headerEncoded = EncodingUtil.base64Encode(Blob.valueOf(header+'\r\n\r\n'));}      String bodyEncoded = EncodingUtil.base64Encode(file_body); Blob bodyBlob = null; String last4Bytes = bodyEncoded.substring(bodyEncoded.length()-4,bodyEncoded.length()); String footer = '--'+boundary+'--'; if (last4Bytes.endsWith('==')) {     last4Bytes = last4Bytes.substring(0,2) + '0K';     bodyEncoded = bodyEncoded.substring(0,bodyEncoded.length()-4) + last4Bytes; } else if (last4Bytes.endsWith('=')) {     last4Bytes = last4Bytes.substring(0,3) + 'N';     bodyEncoded = bodyEncoded.substring(0,bodyEncoded.length()-4) + last4Bytes;     footer = '\n' + footer; } else {footer = '\r\n' + footer;}  String footerEncoded = EncodingUtil.base64Encode(Blob.valueOf(footer)); bodyBlob = EncodingUtil.base64Decode(headerEncoded+bodyEncoded+footerEncoded);  HttpRequest req = new HttpRequest(); req.setHeader('Content-Type','multipart/form-data; boundary='+boundary); for (String key : headerMap.keySet()) System.debug(key + ': ' + headerMap.get(key)); if (headerMap != null) for (String key : headerMap.keySet()) req.setHeader(key, headerMap.get(key)); req.setMethod('POST'); req.setEndpoint(url); req.setBodyAsBlob(bodyBlob); req.setTimeout(120000);  Http http = new Http(); HTTPResponse res = http.send(req);  After a lot of meddling around, I ended up with the following method of simply prepending the preheader string which is my additional parameter to the headerEncoded string. I've tried the placement of this additional parameter all over and around the body before and after constructing the blob, but to no avail.


How do I monitor the computer's CPU, memory, and disk usage in Java?

I would like to monitor the following system information in Java:   Current CPU usage** (percent) Available memory* (free/total) Available disk space (free/total)  *Note that I mean overall memory available to the whole system, not just the JVM.   I'm looking for a cross-platform solution (Linux, Mac, and Windows) that doesn't rely on my own code calling external programs or using JNI. Although these are viable options, I would prefer not to maintain OS-specific code myself if someone already has a better solution.  If there's a free library out there that does this in a reliable, cross-platform manner, that would be great (even if it makes external calls or uses native code itself).  Any suggestions are much appreciated.  To clarify, I would like to get the current CPU usage for the whole system, not just the Java process(es).  The SIGAR API provides all the functionality I'm looking for in one package, so it's the best answer to my question so far. However, due it being licensed under the GPL, I cannot use it for my original purpose (a closed source, commercial product). It's possible that Hyperic may license SIGAR for commercial use, but I haven't looked into it. For my GPL projects, I will definitely consider SIGAR in the future.  For my current needs, I'm leaning towards the following:   For CPU usage, OperatingSystemMXBean.getSystemLoadAverage() / OperatingSystemMXBean.getAvailableProcessors() (load average per cpu) For memory, OperatingSystemMXBean.getTotalPhysicalMemorySize() and OperatingSystemMXBean.getFreePhysicalMemorySize() For disk space, File.getTotalSpace() and File.getUsableSpace()   Limitations:  The getSystemLoadAverage() and disk space querying methods are only available under Java 6. Also, some JMX functionality may not be available to all platforms (i.e. it's been reported that getSystemLoadAverage() returns -1 on Windows).  Although originally licensed under GPL, it  to , which can generally be used for closed source, commercial products.


Let $A$ be an $n\times n$ matrix such that $A^2=A^t$. Then prove that possible real eigenvalues of $A$ are $0,1$.  Let $\lambda$ be an eigenvalue of $A$ then $\lambda^2$ is eigenvalue of $A^2$.  As $A^2=A^t$, $\lambda^2$ is eigenvalue of $A^t$..  Eigenvalue of $A$ are same as eigenvalue of $A^t$..  So, real eigenvalues of $A^t$  are $\{\lambda_1,\cdots,\lambda_r,\lambda_1^2,\cdots,\lambda_r^2\}$.  As number of real eigenvalues are fixed we must have $\lambda_i^2=\lambda_i$ or $\lambda_j$ or $\lambda_j^2$..  $\lambda_i^2=\lambda_j^2$ and $\lambda_i\neq \lambda_j$ implies $\lambda_i=-\lambda_j$ i do not see any contradiction here..  $\lambda_i^2=\lambda_j$ i do not know what to conclude...  $\lambda_i^2=\lambda_i$ then $\lambda_i=0$ or $1$.. which is what i want..  Help me to clear this...


Let $k$ be a field and let $K=k(x)$ be the rational function field in one variable over $k$. Let $\DeclareMathOperator{\aut}{Aut}\sigma, \tau \in \aut(K)$ s.t. $$\sigma\left(\frac {f(x)}{ g(x)}\right)=\frac {f(1/x)}{g(1/x)}\qquad \&\qquad \tau\left(\frac {f(x)}{ g(x)}\right)=\frac {f(1-x)}{g(1-x)}.$$ Find the fixed field $F$ of $<\sigma, \tau>$. Determine $\DeclareMathOperator{\gal}{Gal}\gal(k/F)$. Find an $h \in F$ so that $F=k(h)$.   Now for the first automorphism $\sigma$, I think if I concentrate on $k[x]$ it will give me some idea. Now, if $f(x)=a_0+a_1x+a_2x^2+ \cdots + a_nx^n \in k[x]$ then if $x^n \sigma(f(x))=f(x)$ the case will be $a_i=a_{n-i}$ $\forall i=0(1)[n/2]$. So all the funtions in $K$ which will be fixed by $\sigma$ are of the form $\frac {f(x)}{ g(x)}$ where $f(x)=a_0+a_1x+a_2x^2+ \cdots + a_nx^n$ and $g(x)=b_0+b_1x+b_2x^2+ \cdots + b_nx^n$ such that $a_i=a_{n-i}$ $\forall i=0(1)[n/2]$ and $b_i=b_{n-i}$ $\forall i=0(1)[n/2]$.   Please check whether am I right or not?  And any ideas for the rest of the part?


Can I travel around Europe with an expired student visa and Italian Permeso appointment receipt? I also have the expired Permeso card, will that help?

I would like to travel around Europe before I head back to India. But my student Visa has expired and my Italian stay permit is under renewal. I have the appointment receipt and the expired permit as proof. Will that be enough to travel to countries such as Germany, Budapest, France or Swiss?


I have a Surface Book running Windows 10. Blender opens and operate fine, but the display is very small -- so small I have to put my face an inch from the screen to see what the controls are. I've gone through the gamut w/ Windows and they concluded that it was "a third party problem."  Has anyone else encountered a similar problem or know how to fix it? See below for screens.  Blender:


Why i am getting java.lang.NullPointerException even after initializing the local variable

Apr 06, 2018 3:15:29 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet dispatcher threw exception java.lang.NullPointerException  Here is my code:  I am getting nullPointerException at second yellow line.


Use template_include with custom post types

I want to check for an appropriate template in the theme folder before falling back to the file in my plugin directory. Here’s my code:  add_filter('template_include', 'sermon_template_include'); function sermon_template_include($template) {     if(get_query_var('post_type') == 'wpfc_sermon') {         if ( is_archive() || is_search() ) :            if(file_exists(TEMPLATEDIR . '/archive-wpfc_sermon.php'))               return TEMPLATEDIR . '/archive-wpfc_sermon.php';            return dirname(__FILE__) . '/views/archive-wpfc_sermon.php';         else :            if(file_exists(TEMPLATEDIR . '/single-wpfc_sermon.php'))               return TEMPLATEDIR . '/single-wpfc_sermon.php';            return dirname(__FILE__) . '/views/single-wpfc_sermon.php';         endif;     }     return $template; }   Problem is, it doesn’t work! :-) It always picks the file in my plugin folder. Any idea what to do? I’ve tried alot of variations but I can’t seem to get anything to work! Thanks in advance! Jack  EDIT  I'm expecting the archive-wpfc_sermon.php to be returned from the theme folder if it exists. However, the file from my plugin always gets returned. Thanks for your help! This is from my Sermon Manager plugin available in the repository.


Let $f:[−1, 1] \to \mathbb{R}$ is continuous. Suppose we have    $$ \int_{−1}^1 \sin^n(x)f(x) dx=0 \quad \forall n \in \mathbb{Z}^+. $$ Show that $f(x) =0$ on $[-1,1]$.   I tried using $u = \sin(x)$, but it didn't really get me anywhere yet. Please, some insight would be gracious.


confusion in the sentence use of have and has in plural and singular case

Please consider this sentence:   With the emergence of new technologies and their capabilities, variabilities, and time computation has/have given a tremendous breakthrough to the field of electrical engineering.   Here should I use has given or have given?


I know there are many questions like this but this is not the same details. When I use sudo apt-get upgrade or sudo apt-get update command in terminal, this is what I get:  W: Failed to fetch http://ppa.launchpad.net/apt-fast/stable/ubuntu/dists/trusty/main/binary-i386/Packages  404  Not Found  E: Some index files failed to download. They have been ignored, or old ones used instead. dell@dell-Inspiron-1420:~$    Those are my only problems. Please help me!


Is it better to leave on or turn off external hard drive?

Okay here is my situation, I have a 1tb internal hard drive that is plugged in via USB Dock, and has external power, that I use for weekly backups, but my question is, is it better to leave this hard drive on all the time, or turn it it off manually when it is not being used? What is the best case scenario?


How to see package version without install?

I want to see the version of a package before I install it. How can I do this?


One day I asked me: "How do game designers work?". I knew what the "main mission" of their work, but I didn't know: "How to do it?" and "What do they need to write?"  I want to know full "list" of terms with examples that they need to write.  For example:  Genre - Action  Setting - Retrofuturism etc...  Please answer me :)


Why didn't the Hobbits receive any magic rings?

When the Rings of Power were being handed out, the only races that were given magic rings were the Men, Elves and Dwarves.     It began with the forging of the Great Rings. Three were given to the Elves, immortal, wisest...fairest of all beings. Seven to the Dwarf Lords, great miners and craftsmen of the mountain halls. And Nine...nine rings were gifted to the race of Men who, above all else, desire power.   So why didn't Hobbits receive any Rings?


$$\alpha(x) =\sum_{j=0}^\infty \frac{x^{3j}}{(3j)!}$$  $$\beta(x) = \sum_{j=0}^\infty \frac{x^{3j+2}}{(3j+2)!}$$  $$\gamma(x) = \sum_{j=0}^\infty \frac{x^{3j+1}}{(3j+1)!}$$  Show that $\alpha(x+y) = \alpha(x)α(y) + \beta(x)\gamma(y) + \beta(y)\gamma(x)$ for every $x, y \in\mathbb R$.  Any help will be appreciated.


What does "$(-1/2)_k$" mean in this expression related to incomplete elliptic integrals?

I've found an approximation definition for an incomplete elliptic integral of the second kind which uses the notation $$ \left( -\frac{1}{2} \right)_k. $$  I haven't seen this notation before.  Can someone explain this to me?  The complete formula, from the , is shown below:


Get entire string from URL including non query strings C#

I have a page default.aspx When user browses this page as  -   www.mysite.com/default.aspx/?&#&emp=1']];alert(2);[['1    there is an alert pop up. To prevent such attack, I would like to get the entire string typed in the browser, but unable to.  [NOTE : As you see, the text after ? need not be a query string. Here it is random chars. If it was a query string, I could get that in code.]  protected void Page_Load(object sender, EventArgs e) {   string query = HttpContext.Current.Request.ServerVariables["URL"] +                                        HttpContext.Current.Request.ServerVariables["PATH_INFO"] +                   HttpContext.Current.Request.ServerVariables["QUERY_STRING"]; }   In 'query' I only get /default.aspx/default.aspx/&  How can I get the entire string typed in the address bar.    UPDATE:    HttpContext.Current.Request.Url.AbsoluteUri gives ?& HttpContext.Current.Request.Url.ToString() gives   This is not a duplicate of that Question, as my problem has chars, that are not query strings and also, the solutions in that Question did not resolve my problem. Thank you.  SOLUTION: Might help someone who have a similar concern. The fix was to deal this at Client side. I never knew that the part after # is not sent to the server side.  Awesome suggestion by AmateurProgrammer & shadowed. Thank you


How to find all the continuous functions satisfying an equation?

The problem that I want to solve is:   "find all the continuous functions $f\colon \mathbb R\to \mathbb R$ such that for every $x$, $f(f(f(x))) = x $ , I know that f(x) = x is an answer but how can one find (and prove) all the continuous answers ? And more generally what are the steps to find similar problems ?


Homogeneous riemannian manifolds are complete. Trouble understanding proof.

I came across this proof while looking for hints on my homework, and I think it's only gotten me more confused. This is from .  Lemma 5.4 If $(H,h)$ is a homogeneous Riemannian manifold, then $(H,h)$ is complete. Proof. By the Hopf-Rinow Theorem, it suffices to show that $(H,h)$ is geodesically complete. Thus suppose that $c:[a,1) \rightarrow H$ is a unit speed geodesic which is not extendible to $t=1$. Choosing any $p \in H$, we may find a constant $\alpha > 0$ such that any unit speed geodesic starting at $p$ has length $\ell \geq \alpha$. Set $\delta = \min\{\alpha/2, (1-a)/2\} > 0$. Since isometries preserve geodesics, it follows from the homogeneity of $(H,h)$ that any unit speed geodesic starting at $c(1-\delta)$ may be extended to a geodesic of length $\ell \geq 2 \delta$. In particular, $c$ may be extended to a geodesic $c:[a, 1+\delta) \rightarrow H$, in contradiction to the inextendibility of $c$ to $t=1$.  How exactly does it "follow from homogeneity" that we are able to extend unit speed geodesics? Isn't that what we're trying to show in the lemma? And how does considering geodesics based at $c(1-\delta)$ lead us to extending $c$ to $c:[a,1+\delta) \rightarrow H$?


When I right-click a table in Object Explorer and click "Script Table" I can get SSMS to script my table.  Can I do that with T-SQL code?  I'm after the "CREATE TABLE xx" code that SSMS generates, so that I can take the script and use on other projects. I need all the bits and pieces, including PRIMARY KEY, CONSTRAINTs, "WITH (PAD_INDEX = " and schema declaration.  I'm on SQL Server 2014


I was going through one of the topic "Introduction to Formal proof".In one example while explaining "Hypothesis" and "conclusion" got confused.  The example is as follows: If $x\geq 4$ then $2^x \geq x^2$.  While deriving conclusion article said "As $x$ grows larger than $4$, LHS $2^x$ doubles as $x$ increases by $1$ and RHS grows by ratio $x+\frac{1}{x}$".  Thanks in advance


Can't find a Datasheet for this charging ic from an iPhone 6. Hopefully someone can explain its function to me.   Things I'm confused about; Does it take USB power and convert it to both vcc_main and vbatt? Or does it output vcc_main and vbatt is also an input to the chip?   What's q1403's role?


Removing Ubuntu from a dual-boot setup with Windows

I have installed Ubuntu as another OS on my laptop, and my default OS is Windows 7. I just want to know how to remove (or uninstall) Ubuntu without harming the other OS.  PS: Ubuntu and Windows 7 are both installed on one drive.


John entered the hall. On/to his left was a table.      John saw that to/on his left was a table.   On Google, I found more results with "to", but I guess that doesn't make "on" wrong. To my ear, "on" refers to a more generic position, and closer to the subject, whereas "to" refers to a precise direction, that might be very distant. Another example:     On/to his left was a mountain.   To me "on" sounds like the mountain is closer, almost towering the subject. "To" instead make the mountain farther from him. Am I correct? If not, what are the differences? In which contexts one is preferable over the other?


I'm 15 hours into the game and I'm playing quite thoroughly.   Approximately how many hours should a thorough player get out of the game? If you focus on only the main missions, how quickly could it be done?


Copy a bit value from one variable to different bit position in another variable

I want to set or clear the bit number 3 in a register named TCCR0B depending on the value of the bit number 2 in a variable named ‘mode’. If bit 2 is high in mode, bit 3 in TCCR0B has to be set without disturbing other bits. In case bit 2 in mode is low, I want to clear bit 3 in TCCR0B. Basically I want to copy one bit  to other bit. I thought it is going to be simple, but now I feel we need conditional statement to do this. I am not sure if I am making this code complex. Is there any easy method to achieve this? I wrote below code to test this.   #define WGM02 3 #define WGM02_IN_MODE 2  int main (void) {     unsigned int TCCR0B;     unsigned int mode;     while(1)     {         printf("enter the TCCRB\n");         fflush(stdin);         scanf("%X",&TCCR0B);         printf("TCCRB = %x\n",TCCR0B);         fflush(stdin);         printf("enter the mode\n");         scanf("%X",&mode);          mode=((mode>>WGM02_IN_MODE)&0x01);         if(mode)         {             TCCR0B = (TCCR0B & ~(1<<WGM02))  | (mode<<WGM02);         }         else         {             TCCR0B = (TCCR0B & ~(1<<WGM02))  & ~(mode<<WGM02);         }         printf("TCCRB = %x\n",TCCR0B);     }  }   Edit: I looked at the post in . But it is related to setting clearing etc of individual bits and not copy from one to another.


We're migrating everything to the cloud - is there a reason to keep Active Directory around?

We are "cloud-sourcing" all our services (web, databases, file storage, e-mail, print, DNS).  As authentication is made on the could-provider side, I'm wondering about the pro and cons to keep our Active Directory domain controller.  For info, we are a small organization with about 50 users (50/50 laptop-travelers / destop office based).


unable to get complete url after # using query string in asp.net c#

hi i am unable to get complete url using Query Sting in asp.net C#. This is due to '#'.  My url look like ID=OOP-Concepts-in-C#:-Code-Examples-and-How-to-Create-a-6  Code :string Qstring=Request.QueryString["ID"].ToString();  from this i am getting only "OOP-Concepts-in-C". After '#'(include # too), unable to get the string. Please help


Adding tags to mp3s for use in music players

I'm hoping this is the correct place to ask.   Basically, I'm using cmus and have a little bash script to automate downloading, renaming and moving a mp3.   However, cmus just lists the song name as its full path in the library (e.g.: /home/user/music/genre/song.mp3)  I'd like to change this by adding tags such as album, title, and artist to the mp3 files.   I'm not sure if in Unix some files inherently have metadata like this or if you have to create the data in a specific way for the music player to be able to read it.   I read the  and I don't see anything about how it reads tags or labels.  Overall, through a bash script after reading an input, such as 'albumname' I'd like to know how to assign that input as the album tag of a mp3 file for a music player to use.


Is there a way to find out the percentile (in the reputation distribution) of a person's reputation on a specific site? The actual meaning of, say, 5k reputation, is different depending on the specific site, but the percentile (e.g., 50% - median - vs 5% - i.e., 95% of users have smaller reputation) should be more comparable. EDIT: The information is almost available as  but should be as percent in addition to rank (being in top 1,000 out of 10k is very different than 1,000 out of 100k). Also, I think the percentile should be appended to raw reputation everywhere, i.e., instead of foo 1234 it should be foo 1234 (33%) if 33% of users on the site have reputation over 33%.


\usepackage{algorithm,algpseudocode} \usepackage{hyperref}   So when I   \begin{algorithm} \caption{Baseline}\label{ALG_baseline} \begin{algorithmic}[1] ... \end{algorithmic} \end{algorithm}   the output will look somewhat like this:  -------------------------------------- Algorithm 1: Baseline -------------------------------------- ... --------------------------------------   So obviously, there IS a counter, already.  But   \autoref{ALG_baseline} is simply linked to with a number.   will result int   [1] is simply linked to with a number.   How can I make autoref output  [Algorithm 1] is ...   instead?


What is security context of Invocable Methods ran by Process Builder

I have a basic class with no sharing keyword as I want it to inherit the permissions from callee. What would the context be?  I assume it should run as system (aka without sharing) context, but what I am seeing is opposite. I am getting security exceptions that I shouldn't and fixes by upgrading the class to without sharing.  Is this expected behaviour?


I have tried to remove makemkv multiple times and it is still here. I tried snap remove makemkv. And is said I don't have permission. I tried from the app store and it comes right back. Please tell me what I am doing wrong and how to fix this.  Also. When I try to launch makemkv nothing happens. But I can't reinstall it because it is already installed and can't be removed.


how to prove that that length of focal chord of standard ellipse(a>b) which inclined angle titha to the major axis is 2ab^2/(a^2sin^2θ+b^2cos^2θ  I tried  Equation of focal chord inclined at angle titha with x axis is   y = tanθ(x-ae)  Let it intersect x^2/a^2 + y^2/b^2 = 1 at P(x1.y1) & Q(x2,y2). Solving we get  b^2*x^2 + a^2*tan^2θ*(x-ae)^2 = a^2*b^2  This is a quadratic equation in x. It's roots are x1 & x2


Currently when contributor users inside our enterprise wiki 2013 try to add a new web part to a wiki page, they will get the following error:-     A Web Part or Web Form Control on this Page cannot be displayed or   imported. You don't have Add and Customize Pages permissions required   to perform this action.   I read that I can grant them the following:-    But it seems that this is too much permission in my case, because it will allow users to edit the web site using an editor. So is there a permission  level which only allow contributor users to add web parts to the page without any extra permissions ?  Thanks


24 hour to 12:00 time, issue with entering 12:00,

I am writing a program to convert 24-hour time to 12-hour time. Output for 0:00 & 12:00 is faulty.  Please refer to the code and the sample input and output.    #include <stdio.h>  int main(void)       int hour;      int min;       printf("Enter a 24-hour time: ")      scanf("%d:%d", &hour, &min);       if (hour < 11)           printf("Equivalent 12-hour time: %d:%d AM\n",                      hour == 0 ? 12 : hour, min);       else          printf("Equivalent 12-hour time: %d:%d PM\n",                      hour == 12 ? 12 : hour - 12, min);       return 0; }    When I input 12:00 ; the output is 12:0 PM When I input 0:00  ; the output is 12:0 AM  How can I fix this?


Why do adults need vaccination boosters?

In the UK at the moment there's some controversy regarding the changing of the timing of the Covid vaccination boosters. All the vaccines I can think of that need boosters are given to babies, whose immune systems aren't fully developed yet. So they get some protection initially but need a booster when they're more mature. Are there any vaccines given to adults that actually need a booster? Was it used in the Covid trials for a good reason, or just to make doubly sure the results would be good? The information I can find online only covers the standard childhood vaccinations, and similar questions on this forum by other people over the past few years have remained unanswered.


Custom $wpdb Query for Custom Post Type by Category

I am using the following code to output a list of items in my 'documents' Custom Post type by Year and Month.
 <?php $post_type = 'documents'; global $wpdb; /**/ $years = $wpdb->get_col("SELECT DISTINCT YEAR(post_date) FROM $wpdb->posts WHERE post_status = 'publish' AND post_type = '".$post_type."' ORDER BY post_date DESC"); foreach($years as $year) : $years_count = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->posts WHERE post_status = 'publish' AND post_type = '".$post_type."' AND YEAR(post_date) = ".$year.";" ) ); ?>
<?php echo $year; ?> (<?php echo $years_count; ?> Posts)
     <? $months = $wpdb->get_col("SELECT DISTINCT MONTH(post_date) FROM $wpdb->posts WHERE post_status = 'publish' AND post_type = '".$post_type."' AND YEAR(post_date) = '".$year."' ORDER BY post_date DESC");     foreach($months as $month) :     $months_count = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->posts WHERE post_status = 'publish' AND post_type = '".$post_type."' AND YEAR(post_date) = ".$year." and MONTH(post_date) = ".$month.";" ) );     ?>
>         <a href="<?php echo get_month_link($year, $month)."?post_type=".$post_type; ?>"><?php echo date( 'F', mktime(0, 0, 0, $month) );?> (<?php echo $months_count; ?> Posts)          <?php  $theids = $wpdb->get_results("SELECT ID, post_title, post_date FROM $wpdb->posts WHERE post_type = '".$post_type."' AND post_status = 'publish' AND YEAR(post_date) = ".$year." and MONTH(post_date) = ".$month.";");                 foreach ($theids as $theid):                          ?>

<?php echo $theid->post_title; ?>

                                                  <?php                     endforeach; ?>
     <?php endforeach;?>

 <?php endforeach; ?>
   Currently this is working as expected but I am having problems trying to do the same thing for a specific category within my documents post type. How would I refine this code for my category 'cascade-campus-docs' within my 'documents' post type.


How to compile and run C/C++ in a Unix console/Mac terminal?

How can I compile/run C or C++ in Unix console or a Mac terminal?  (I know it, forget it, and relearn it again. Time to write it down.)


How to set English as default language instead of Tamil?

The default language used in our laptop is Tamil. We don't know how to switch back to English. If we type something we are getting something.   We don't know the font name or version. Even the Menu bar and task bar contents are in Tamil.


gcd of $(2^{2^m} + 1 , 2^{2^n}+1) = 1$ for distinct pair of positive integers $n,m$

I'm stuck with the following number theory problem:  Show that $(2^{2^m} + 1 , 2^{2^n}+1) = 1$ for any distinct pair of positive integers $n,m$


Sum of Infinite Series $1 + 1/2 + 1/4 + 1/16 + \cdots$

Everyone knows about the classic  $$ \sum_{i=1}^{\infty} \dfrac{1}{2^i} = 1 $$ However, is there any way to find $$ \sum_{i=0}^{\infty} \dfrac{1}{2^{2^i}} = \dfrac12 + \dfrac14 + \dfrac{1}{16} + \dfrac{1}{256} + \cdots $$


Can I recover app data after the phone has been Factory Reset?

Without remembering application data, I reset my Galaxy S3 to factory state. Now, I lost data for one expense manager app. Is there any way to recover the data?