Licensing: Windows Server 2016 with Remote using

I want to buy one windows server 2016 standard license. As this server will locate in Data Center, I do need to remote to access when I want to use it.  The user who manage it is only me (1 user), but sometimes I do need to remote from Mac or PC.   Should I bought RDS CAL license for this case? And Do I need to buy User CAL for adding more users?  Could you please answer me what I need to buy to complete this condition?  PS. It might seem duplicate this  , but there is some different in details. So, I ask a new question.


How to stop Catalina from contacting Apple servers when executing programs?

I'm a software developer and as such I build and run programs hundreds of times per day. I've noticed that since I started using Catalina, after compiling and linking there is a delay (which can be seconds) when the internet is slow or having problems (I have bad internet often). If I disable wifi and rebuild, the delay goes away. How can I disable this so my builds run faster?


U.K visitor visa with very old criminal conviction - do I disclose it?

I have been travelling to the U.K for 25 years at least 8-10 times a year,  receiving 5 year visas, never breaking the stay period, with no problem. I've gone through immigration with no problem till my last time in London. I was stopped for eight hours and questioned about a run with the law while I was in college. This was in the US, I was around 20, it was for a credit card use. I received a conditional discharge / probation conviction which was discharged one year later. It was stupid, I was young and in college, more than 28 years ago.  After being questioned about the issue in the US, I was allowed in. They were very polite and professional.  I was also asked if I ever changed my name: I did not change it, but one letter was added in the middle of my first and last names around 20 years ago as our names are translated from Arabic to English and before the digital biometric passports, hand written passports some times varied. It was a common thing at the time.  Now I am applying for my new 5 year visas and I intend to answer truthfully  about previous conviction (previously I answered no because my conviction was spent and I expunged my record.) I want to answer yes and explain it. Is that the right thing to do?  Should I answer yes to the question about having a different name even though it was something as simple as spelling Bryan instead of Brian or Teresa and Theresa -- not really changing it and never thought of it as a change.  I have an impeccable credit rating in the Uk and the last 28 years have never received a moving violation or ever had a run in with the law.  I made one mistake when I was very young but I am  very worried about how to go ahead. I believe honesty is the best approach, is it?


I have an account on Stack Overflow. However, now I start to realize that I get constantly downvoted by the "serial upvote reversal" mechanism. So, I created a new account (this one) from a different IP, of course... to continue on this website.  So the question is, does this "mechanism" have a "black list"? If an account gets this "serial upvote reversal" once, then it's done...any kind of upvotes would look suspicious...is this the way it is?  PS: I read all the questions on Stack Overflow about serial upvote reversal, so please, do not repeat answers for other questions.


I read it online few years ago. It is a short story about exploring a spacecraft/ship/station that seems to be infinite inside.  It is written like a log, and each entry starts with a measure, like Day 1 "1 km", Day 2 "10 km", Day 3 "100 km" (not sure about dimensions but they grew exponentially).  I found the story at that time while reading about megastructures. Although the construction in the story was huge, it didn't fit the criteria of megastructure because it was infinite.


Proving the existence of a sequence of polynomials convergent to a continuous function $f$.

I need to show that if $f$ is continuous function ($f:\mathbb{R}\rightarrow \mathbb{R}$), then there exists a sequence of polynomials which converges to $f$ on any compact subset of $\mathbb{R}$.   I would appreciate any help/direction ...


Python. Delete rows from matrix without Numpy

so I have this matrix: matrix = [ [1, 2, 3],            [4, 5, 6],            [7, 8, 9]          ]  And I want to remove the last row, so it return me something like this: matrix = [ [1, 2, 3],            [4, 5, 6]          ]  P.S. I cant use Numpy.


Is there a way in blender or an addon that allows me to select a bunch of faces (or verts) and evenly distributes (or relaxes) them into quads clean quads.  Without screwing up the vert ID/order.  Edit: I would like to have the shapes of my quads to turn into perfect squares while maintaining the volume of the object and the vertex order.


I am doing  Blenderguru tutorial to work on my modelling skills. At about 28:30 min in the tutorial it is demonstrated how to assign a material to a selected part of the mesh (another material is already assigned to the object). Now I have read  post and I think I have selected the right area (with face select) and assigned the new material but it does not work. Why ?


Find the last element of an array while using a foreach loop in PHP

I am writing a SQL query creator using some parameters. In Java, it's very easy to detect the last element of an array from inside the for loop by just checking the current array position with the array length.  for(int i=0; i< arr.length;i++){      boolean isLastElem = i== (arr.length -1) ? true : false;         }   In PHP they have non-integer indexes to access arrays. So you must iterate over an array using a foreach loop. This becomes problematic when you need to take some decision (in my case to append or/and parameter while building query).   I am sure there must be some standard way of doing this.   How do you solve this in PHP?


Include reviews made outside of /review in progress towards the badge

The recent changes to /review has gotten everyone interested in cleaning up the muck. At present, only posts "reviewed" (by clicking on the review link) and actions taken (up/down/close/edit/flag) from within /review count towards the badge.   However, it is entirely possible that one catches a poor question outside of /review (e.g., on the front page/tag page, etc.) and "reviews" it and takes some action on it. However, these actions do not count for the badge, at present. In all likelihood, this question would've also been in the /review queue and if one were fortuitous enough to have reviewed it there, these actions would've counted towards the badge.   Would it be possible to include reviews made outside of /review to count if the question was also in the review queue? Note that this shouldn't apply if the question dropped out of the queue (either by inaction or after it was edited and improved by previous reviews).


I would like to total a list of minutes based on two criteria to make a graph after the data is calculated.  The item "Department" (Column C) and "Day of Week" (Column F) are both drop down menus.   I would like to calculate the total number of labor minutes (Column E)  for the "HMX" selection in Column C on "Monday" in Column F.   Right now, I have been successful using the SUMIFS function to calculate based on one criteria using the formula:  =SUMIFS(E2:E40, C2:C40, "HMX")   Is there a way to alter this to include the second set of criteria?  Or is there another way to achieve the result I described?


Showing that a function $f$ has a unique fixed point in a metric space.

Let $(X, d)$ be a compact metric space, and suppose $f : X → X$ satisfies    $$d(f(x), f(y)) < d(x, y)$$   for all $x \neq y \in X$. Show that f has a unique fixed point.   All I've gotten it so far is that we need to somehow use another function $g(x)=(x,f(x))$.  Thanks


Updated the files and I still get the following errors.   1 Unresolved externals (lab12.exe line 1) unresolved external symbol "public char__thiscall Pair::geetFirst(void)" (?getFirst@?$Pair@D@@QAEDXZ) referenced in function_main (lab12.obj line 1)   Pair.h  #pragma once template <class T> class Pair {  private:     T theFirst;     T theSecond;  public:     /*Pair(const T& dataOne, const T& dataTwo);*/     Pair(T a, T b) {         theFirst = a;         theSecond = b;     }     T getFirst();     T getSecond();  };   Pair.cpp  #include "stdafx.h" #include "Pair.h"   template<class T> T Pair<T>::getFirst() {     return theFirst; }  template<class T> T Pair<T>::getSecond() {     return theSecond; }   Main.cpp  #include "stdafx.h" #include "Pair.h" #include <iostream> using namespace std;  int main() {     Pair <char> letters('a', 'd');      cout << letters.getFirst();       cout << endl;     system("Pause");      return 0; }


How To validate a mobile number in java script?

I am trying to validate a mobile number of 11 digit , where the 1st 3 digit will be 019 , 018 , 017 , 016 . How can I check this that the first 3 digit will be fall among the four criteria??  I can validate if the number is a character or is it less than 11 digit using the code bellow.Now the problem is I want to check If the 1st 3 digit fall into the four criteria( 019 , 018 , 017 , 016)   var phoneno = /^\d{11}$/;     if(inputtxt.value.match(phoneno))     {         return true;     }


Squaring the $\ell_2$-norm in $\ell_2$-regularization

It's said the $\ell_2$-penalty term is based on the $\ell_2$-norm. Indeed, the term often is written as $\lambda \|w\|^2_2$.  Notice, though, that the norm is squared, differing from the $\ell_1$-penaltym which is simply the $\ell_1$-norm. It obviously helps in differentiation of the function, but does it change the interpretation of the penalty term?  Would a regularization term like $\lambda \|w\|_2$ lead to different results or are them equivalent?  How does it generalizes to $\ell_p$ regularization with $1\lt p\lt2$? Take or not take the $p^{th}$-root of the penalty term?


How prove this Rāmā ujan Aiya kār identity $\sqrt{1+2\sqrt{1+3\sqrt{1+4\sqrt{1+5\sqrt{1+\cdots}}}}}=3$


Why is $\frac{d^n}{dx^n}(y(x))$ the notation for the $n$th derivative of $y(x)$, instead of $\frac{d^n}{d^nx}(y(x))$?

I've always wondered why the numerator is $d^n$ while the denominator is $dx^n$ instead of $d^nx$ like the numerator.  I must be missing something very obvious or fundamental. Is this notation derived from the chain rule in some way?


About the semantically related words Google's algorithm uses in mixed language websites

Because I'm Latin, sometimes I use a word in English while talking in Spanish.   In a website, for example, I could be interested in ranking for a word as “promoter” inside a page in Spanish, because that is how my public understands that concept.  Does the latent semantic indexing (LSI) (or whatever Google uses for semantic relation) fail to relate “promoter” with the content (because there are not related words in English) and then could that prevent my site from ranking?


In the derivation of the Thermal De Broglie Wavelength on Wikipedia, I come across the following:  "In the nonrelativistic case the effective kinetic energy of free particles is $E_K=\pi k_B T$    Provided this is correct, in what instances is the kinetic energy of a free particle $\pi k_B T$ and not $\frac 3 2 k_B T$?  Thanks for any comments on this.


Why are strings being printed as numbers?

I'm converting a string into a character array in order to use the Arrays.sort() method on it. However, when I turn the array back into a string and try to print it out, it gives me a bunch of hexadecimal (I believe) instead of the actual string. In fact, I also get hexadecimal trying to print the sortedStringchar... why is this happening, why am I not getting the strings/character array printed in characters?     String originalString = "HELLO";     char[] sortedStringChar = originalString.toCharArray();     Arrays.sort(sortedStringChar);     String sortedString = sortedStringChar.toString();     System.out.println("Sorted String ===== " + sortedString);  Output of System.out.println:       Sorted String ===== [C@2d928643


How can experienced people post their knowledge and new research?

As Stack Overflow serves as a platform for users to ask and answer questions, it  provides a huge platform for questions and answers on a wide range of topics in programming.  Is there anyway through which experience people can post their knowledge and new research, so that knowledge-eager people can follow them?


Can a fired moderator be elected as a moderator?

While this question is inspired by recent events, it is an independent question and not tied down to any specific moderator or situation.  There's precedent for a moderator who resigned their diamond to simply ask Stack Exchange for their diamond back, without having to stand for reelection. Obviously, this may not apply if the moderator did not resign, but was removed for cause by Stack Exchange.  If a moderator has been "fired" by Stack Exchange (has had their diamond removed involuntarily by corporate action), is the person eligible to pull a  and regain a diamond through the democratic process on one of our sites, or would any such attempt be blocked? I'm aware that there is a restriction on  from standing for election, but this is not the same thing as being stripped of a diamond (fired moderators, IME, aren't also given a full site suspension unless their behavior goes beyond "possibly not a very good moderator" into "supervillain" territory).  If there is no particular rule, what should that rule be?   Should fired moderators be immediately eligible to stand for election, subject only to community approval of them returning? Should fired moderators have to go through a separate re-vetting process with Stack Exchange to regain eligibility to stand for office? Should fired moderators have an ineligibility window in a similar way that suspended users have one (e.g. after X months or years after being fired, they may stand for election). Should fired moderators be forever banned from election?   In no way am I asking about the process for a fired moderator to seek restoration through corporate appeals, etc. I'm asking only about the community election process - if a site's community wants to elect a previously fired moderator, is this inherently objectionable to Stack Exchange?


Single server for multiple web-apps (same domain)

I'm trying to configure nginx to serve two independent Vue.js web-apps (let's call them app1 and app2). Applications are served as static html files on separate servers:  server {     server_name app1;     listen 9101;      location / {     root html\app1;     index index.html;     } } server {     server_name app2;     listen 9102;      location / {     root html\app2;     index index.html;     } }   I configured the main server to act as reverse proxy:  server {     server_name apps;     listen 80;      location ^~ /app1 {         proxy_pass http://localhost:9101/;     }      location ^~ /app2 {         proxy_pass http://localhost:9102/;     } }   The desired effect would be to run apps based on provided url (e.g. run app 1 when going to localhost/app1).   The problem is that html files locate their resources through root prefixed relative paths. For example both app1/index.html and app2/index.html will try to fetch their js files using the /js/app-*.js.   How can I configure nginx to recognize which app the request is coming from and route it to valid server?  EDIT: To clarify, what I'm trying to achieve:   Client goes to  html/app1/index.html gets loaded. Every request sent from html page to / gets routed to app1/ (so link to /js/script.js in html code gets actually fetched from /app1/js/script.js) Same goes for app2.   Apps are for internal use only (server is accessible through intranet).


clearing check box on the click of the button in Jquery

I want to clear the check box and text box that reside on my form by the click of the button. I was able to clear the Text boxes, but check box is not clearing up. Below is my entire code.   Code to clear the check boxes and Text boxes:  <script src="Scripts/jquery-3.1.0.min.js" type="text/javascript"></script>  <script type="text/javascript">     $(document).ready(function () {         $("#btnReset").click(function () {              $("input[type=checkbox]").removeAttr('checked');             $("input[type=text]").val("");             $("textarea").val("");          });     });     I also tried putting   $('.chkPool').each(function () { this.checked = false; });   instead of   $("input[type=checkbox]").removeAttr('checked');   both the above lines does not work.  The reset button that is clicked to clear text boxes and checkboxes:  <input type="button" id="btnReset" value="Clear Fields" />   The check box that I am trying to clear, but is not working is below:   <asp:CheckBox ID="chkPool" runat="server" Text="Pool" />   any help will be appreciated.


How do I get a directory listing in Perl?

I would like to execute ls in a Perl program as part of a CGI script. For this I used exec(ls), but this does not return from the exec call.  Is there a better way to get a listing of a directory in Perl?


Best way to follow a log and execute a command when some text appears in the log

I have a server log that outputs a specific line of text into its log file when the server is up. I want to execute a command once the server is up, and hence do something like the following:  tail -f /path/to/serverLog | grep "server is up" ...(now, e.g., wget on server)?   What is the best way to do this?


How to alter files on external SD after 4.4 KitKat upgrade?

I am unable to alter files on the SDHC card since I accepted KitKat on my Samsung Galaxy Mega Plus. It is not rooted. How may I make that external SDHC read-write without esoteric things like Rooting the phone? Which file manager apps permit file moves and deletes?


I have written the following document  \documentclass[aspectratio=1610]{beamer}  \usetheme[hideallsubsections]{Berkeley} \useinnertheme{rounded} \usepackage{multimedia} \title[]{{\scshape Infodag wiskunde}} \date{{\scshape 16 maart 2013}}  \begin{document}  \begin{frame} \titlepage \end{frame}  \begin{frame}\label{chaosfrag1}\frametitle{{\scshape Chaos 1 - }} \begin{center} \movie[showcontrols]{\includegraphics[width=0.8\textwidth]{chaos1.png}}{chaos1.mpg} \end{center} \end{frame}  \end{document}   For some reason however, neither Adobe Reader nor Foxit PDF Reader are able to display the movie on click. I figured the issue was probably with the pdf readers, but last year I made a similar document, and though I no longer have the TeXcode, I still have the pdf, and this does work. (the embedded media there is also .mpg). I already tried different media types (.avi, .mp4, .flv) but none of them work.  I know about the media9 package, however, as my final document will contain about 18 movies of each 10 minutes, the resulting pdf would be 2GB. Whenever I open it, it takes at least 10 seconds to start playing the media, and even then, it doesn't work (I just get a gray rectangle).  EDIT: Okay, appearantly i was using a wrong code for media9, so now I can play the video (though the filesize still is huge). But still, it would be nice to see if I made a mistake somewhere in the \movie command or something...  I hope someone can help :)


Can I truncate log in simple recovery mode?

I have a few SQL Server 2005 databases in simple recovery mode. The disk volume in which my transaction logs are stored had only 1GB free, when I started a stored procedure (massive delete in a single table) the log grows a lot and the disk is running out of space, and the stored procedure seems to work indefinetly. How can I manage this transaction log?


Why does an environment's label have to appear after the caption?

\documentclass{article} \usepackage{algorithm}  \begin{document} \setcounter{section}{54} \section{A section with no label} \begin{algorithm} \label{myalg} \caption{An algorithm with the label `myalg'.} \end{algorithm} Reference to myalg: \ref{myalg}. \end{document}   With this code, the reference givens 55 (the section number); if I move the label after the caption command, I get the correct reference (1).  Why should this be the case? I find it confusing: when thinking about an algorithm as an environment, you expect to be able to label it right after you began it. At the very least I would expect some kind of error or "??" to appear, rather than the previous environment or reference-able entity being used.


For a design assignment, I'm looking for a color that goes nicely with #a31366. The problem is that it's a kind of purple/pink that I've never worked with, so I am bummed out at finding what the best color is.    I know of Adobe Kuler, but the suggestions it comes up with based on #a31366 are not really what I'm looking for; they seem too childish.    What are the tools you use to create a nice color palette? Do you just look at the color swatch in (for example) Photoshop and choose a few that probably fit together? Do you use any tools (like Adobe Kuler)?


Any clue how to define T in this code?   public static T ToEnum<T>(this string value, T defaultValue)         {             if (string.IsNullOrEmpty(value))             {                 return defaultValue;             }              T result;             return Enum.TryParse<T>(value, true, out result) ? result : defaultValue;         }      Severity  Code    Description Project File    Line Error  CS0453  The type 'T'   must be a non-nullable value type in order to use it as parameter   'TEnum' in the generic type or method 'Enum.TryParse(string,   bool, out TEnum)'


Switching from Ubuntu Desktop to Server 14.04

Ok, this Ubuntu disto was originally installed as Ubuntu Server 12.04. Along the line, someone thought it was a good idea to install ubuntu-desktop. It has since been upgraded to 14.04 LTS and remains Ubuntu Desktop.  I don't want to have any of the desktop packages any longer and would like to revert it back to just Ubuntu server. I have searched high and low, but I can't seem to find anything definitive for this process for 14.04LTS.   I have found removing the ubuntu-desktop package, but as I've learned this doesn't even remotely  remove everything related to the desktop version. Unity, Gnome, Firefox, etc etc.  Could someone please fill me in on the proper way to COMPLETELY remove all of the desktop environment and all of its associated packages for 14.04? Thank you


Is is necessary to include computer code into thesis?

During my research, I have developed some computer codes to optimize the coefficients of theoretical equations against the experimental data. The computer codes was developed to make things easier through automation which I would otherwise need to do it manually (rather painstakingly).  Do I need to include the codes that I have developed in my thesis, or it is just sufficient to provide an executable (.exe) in a disc?


How can I get my site to show again in Google?

The site in reference is a client site and I do not want to mention it, so I'll use the made up FooBar for this example.  The other day, if you searched for FooBar Google would show you the website for foobar.com as the first result. Now, if you search FooBar Google asks: "Did you mean foo bar?" and doesn't show any results.  I know the site is still indexed because if I search for "FooBar" (with quotes) I see it, plus a lot of other results for the site.  The day before I submitted a sitemap.xml file and since then it's borked. According to Google Webmaster Tools there's nothing wrong with the sitemap, and there are no errors on the site; it's clean and is performing well.  Why did this happen and how to I fix it?  Edit: this site has been online for almost a year, so it's not like Google doesn't know about it.


What's the difference between a Modal, Popup, Popover and Lightbox?

I've seen many terms used to describe message boxes that notify and alert users or display information such as modal, popup, popover and lightbox.  What is the difference between these components?  When and for what type of text should each of these components be used?


What's the best career path / entry-level role for someone aiming to be a creative director?

I wold like to get into the design industry and would like to work my way up to a creative director role. I have also considered art director.   What entry level jobs would you recommend to get there and what career path should follow? I am am keen to work in a team, perhaps with brand management and advertising over different types of media.


How to determine the size of a package while using apt prior to downloading?

When using apt-get install <package_name>, and there are dependencies that need to be downloaded, the terminal outputs names of additional packages and total size, and asks for confirmation before downloading.   But, when dependencies are satisfied and nothing but the named package needs to be downloaded there is no size output and no confirmation.  When using Synaptic, I can see the total size that new packages that will use after installation but no way to see the size that needs to be downloaded, except to go from package to package and use properties to see the compressed size.  I would like to know if there is a way to see the size of a package(s) in terminal and Synaptic prior to downloading and installing it/them?


Using the follow theorem:     Let $a$ and $b$ two positive integers numbers so $gcd(a,b) = 1 \Leftrightarrow \exists s,t \in \mathbb{Z} : sa+tb = 1$   I want to prove that if $a\mid bc \mbox{ and } gcd(a,c) = 1 \rightarrow a\mid b$  Using the definition of divisibility I arrived at: $\exists k \in \mathbb{Z} : ak = bc$. Using this and the theorem I isolate the c, I arrived in $ak = b\frac{1-sa}{t}$. But I can not get anywhere from there,I can not see a way to do it the way I'm thinking


How to set xrandr screen brightness to run on startup?

I use this command everytime I login because the screen is just too bright.    xrandr --output HDMI-A-0 --brightness 0.90   How can I make this command run on startup? I use Kubuntu 19.10.  Thanks.


Chapter number and chapter title in one line

This is what I want:     Chapter 1 : Introduction   but I always get:     Chapter 1       Introduction   How do I do this?


used system.enquejob but still facing System.LimitException: Too many future calls: 51

My trigger   trigger triggSendRebateData on RebateData_for_MC__c (before insert,before update) {    List<RebateData_for_MC__c> lstRebateData = new List<RebateData_for_MC__c>();     for(Integer i=0;i<Trigger.new.size();i++){     system.debug('iiii'+i +Trigger.new.size());           lstRebateData.add(Trigger.new[i]);         }    if(!lstRebateData.isEmpty()){       ID jobID = System.enqueueJob(new RebateDataQueue(lstRebateData));   } }   My Class   public class RebateDataQueue implements Queueable, Database.AllowsCallouts {      private List<RebateData_for_MC__c> lstRebate;      public RebateDataQueue(List<RebateData_for_MC__c> lstRb){         this.lstRebate = lstRb;     }      public void execute(QueueableContext context) {         if(!lstRebate.isEmpty()){         for(RebateData_for_MC__c rbData:lstRebate){ TriggeredSendEmail.postMailtoET(rbData.name,rbData.address__c,rbData.BusinessUnit__c,rbData.ERp__c,rbData.ABN__c); } } }   TriggeredSendEmail Class   public class TriggeredSendEmail{   @future(callout=true)       public static void postMailtoET(string name,string addressLine1,string businessunit,string erp,string abn){ //some code here } }   I'm trying to insert around 250 records by calling the method in developer console and this is the error i'm getting. How to overcome this


public void TestGeneric<TSource,TDestination>(IOverride<TSource,TDestination> override) {    do something }  public void calling_method<TLValue, TRValue>(TLValue leftValue, TRValue rightValue) {      Type Source = leftValue.GetProperies().firstOrDefault();      Type Destination = rightValue.GetProperies().firstOrDefault();      var override = some method;      TestGeneric<Source,Destination>(override); }    I am having generic method which is having TSource and TDestination. On the basis of this two it do some operations.  In calling method i can get the type which i have to pass. I want do like  TestGeneric<Source,Destination>();   How to do that


limit access for search engines and user on an online development version of a site

I have a situation where I am having difficulties with setting up an extension for a website on my local development version of a projects. I have reached out to the support and we could not troubleshoot the problem over the email and they asked to put the dev version online and provide them ftp and admin user details.   I created a subdomain on my hosting with a ftp account, changed the admin username and password for security reasons and have everything ready to make the development version to go live, but I don't want a search engine to find the development version and start linking people to it. I know that I can disable the google analytics extension, but I think I also should change the contents of robots.txt file.   Perhaps there is something that I have not thought about or an easier way to achieve what I want. If anyone has experience with this I would be glad to read your suggestions.  PS the dev version is powered by magento 1.7.2, I thought that this question is not about magento, but I thought I should mention this.


Why shall we use ./ to execute programs?

I am new to Linux. I found people use ./ to execute programs, such as ./hello.sh. Why do Linux designers just let us type in hello.sh instead? In other words, why not set the current directory as default? Does anyone know? I appreciate it.


Bash way to check if a process is already running in the background (and skip re-execution based on that)?

Can I make a bash command line that only runs a certain command if the process is not already running (in the background)?  How do I check*, if a command is already running?  (so I can add the next command with && in between them so the next one only executes if the first one is true).  *: test, determine, discover, find out


Task Manager Won't Let Me Set Task Priority

When I go into task manager, everything acts normal except for my laptop being slow. But when I select priority, and try to change it, it gives me the massage "An error was encountered by setting priority to the PID 1904. It is likely that you don't have the required privileges," but I am on the admin and original account on this laptop. If anyone know how to fix this, or another task manager that works for stopping task/ apps and setting priorities, it would be greatly appreciated.


Partition shown as FFFF and unmountDisk is unable to unmount

My Mac's HDD is not opening. When I enter diskutil umountDisk dev/disk0 shows:     At least one volume could not be unmounted   sais-MacBook-Pro:~ sk$ diskutil list /dev/disk0    #:                       TYPE NAME                    SIZE       IDENTIFIER    0:      GUID_partition_scheme                        *121.3 GB   disk0    1:                        EFI EFI                     209.7 MB   disk0s1    2: FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF               101.1 GB   disk0s2    3:                  Apple_HFS Recovery HD             19.4 GB    disk0s3    4:                 Apple_Boot Recovery HD             650.0 MB   disk0s4


I am completely a novice at computers please can anyone provide basic easy to follow instructions of how to install ubuntu on my elderly Toshiba laptop currently running windows xp. And is ubuntu my best option? Thankyou


Which ubuntu application is responsible for dimming the screen when its going to lock?

I want to write a custom application which can dim my screen. I like the default effect of dimming the screen in Ubuntu when system it's not in use for 10 minutes (default setting). Which program or code in kernel is responsible for this effect?


Extract specific values from raster in QGIS

in QGIS 2.18.3, Windows 10, I've got a raster file in which each color defines a type of crop. See image:    Each cell value represents a type of crop. What I need to do is to extract to a new file, only the cells containing a certain value (e.g., the value 24 which corresponds to the brown cells) Ultimately, the objective is to calculate the surface of each crop within a given area.  Is there any process that can help me with this analysis?


Why did Neo have powers in the real world?

In the Matrix, why did Neo have magic powers in the real world? For example,   (1) Those scenes where he blows up those robots purportedly with his mind.  (2) That one where he has no eyes but can see.


I'm trying to force table placement in a specific section created with this purpose, however the table automatically goes to the next page whenever I try to insert it.  I'm using the repUERJ template available .  \documentclass[a4paper,12pt,oneside,onecolumn,final,fleqn]{repUERJ}         \usepackage{float}   Table:   \begin{table}[H] {12cm}     \centering     \caption{}     \label{}     \begin{tabular}{cc}         \textbf{Variável}                                                                                & \textbf{Fonte} \\ \hline         \multicolumn{1}{c|}{I  }                                                                                & SEV           \\ \hline         \multicolumn{1}{c|}{P }                                                                                & IBGE           \\ \hline         \multicolumn{1}{c|}{A}                                                                                & IBGE           \\ \hline         \multicolumn{1}{c|}{\begin{tabular}[c]{@{}c@{}}T = Intensidade Energética\\ O\end{tabular}} & IBGE e BEN     \\ \hline     \end{tabular} \end{table}   PS: this template does not allow to avoid inserting the width of the table in {}


Does a +1/+1 counter remove a -1/-1 counter?

My opponent controls a . I control a 4/4 creature (with a -1/-1 counter on it, due to an earlier cast ).  If I use an ability to put a +1/+1 counter on my 4/4 creature, will the +1/+1 counter and the -1/-1 counter cancel each other out, or will I just have a creature with both a +1/+1 counter and a -1/-1 counter on it?  In other words: Will my creature be able to block and attack or not?  I don't believe the rules are 100% clear on that?! (rule 704,5)


In terms of the creation and annihilation operators $a_{j}$ and $a_{j}^{\dagger}$ (fermionic or bosonic, doesn't matter):  Is the vacuum state $\mid\mathrm{vacuum}\rangle$ exactly the zero vector on the Hilbert space $\mathcal{H}$ in question?  For a while I thought that the answer is yes, but if I think about a finite-dimensional Hilbert space I can never apply a matrix (a.k.a, some representation of $a_{j}^{\dagger}$) to the zero vector, and get out a vector that is not the zero vector. However, you can do this with the vacuum state.


Proof: $A=B^2$ for some positive definite symmetric $B$

Let A be a real $ n \times n$ positive definite symmetric matrix.Show that $A=B^2$ for some positive definite symmetric matrix $B$.   So we can try and diagonalize $A$ such that $A=SJS^{-1}$then let $B=S^{-1}\sqrt{J}S $.  But what if one of the eigenvalues of $A$ is "missing" an eigenvector? Our $J$ and $B$ will no longer be positive definite, right?  This addresses an issue that the following answer: , does not address.


Why using a nonce not more than once in SSL/TLS

Why it is highly recommended to use a nonce once and only once in SSL/TLS? Same question with key streams in stream ciphers? What sort of attack(s) could take place if ever a nonce/key stream is used more than once? During the SSL/TLS handshake, is the client nonce/server nonce session related or connection related ?


JList Custom CellRenderer won't display loader.gif but displays PNG's

I have a JList with Custom ListCellRenderer, In the Cell I would like to add a loader gif I got from   The problem is it won't show the gif and sometimes when it shows it won't animate it.  loader.gif ->   Here is SSCCE  public class ListDemo extends JPanel { private JList list; private DefaultListModel listModel;  private static final String hireString = "Hire"; private static final String fireString = "Fire"; private JButton fireButton; private JTextField employeeName;  public ListDemo() {     super(new BorderLayout());      listModel = new DefaultListModel();     listModel.addElement("Jane Doe");     listModel.addElement("John Smith");     listModel.addElement("Kathy Green");      //Create the list and put it in a scroll pane.     list = new JList(listModel);     list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);     list.setSelectedIndex(0);     list.setVisibleRowCount(5);     list.setCellRenderer(new MyListCellRenderer());     JScrollPane listScrollPane = new JScrollPane(list);      add(listScrollPane, BorderLayout.CENTER); }   /**  * Create the GUI and show it.  For thread safety,  * this method should be invoked from the  * event-dispatching thread.  */ private static void createAndShowGUI() {     //Create and set up the window.     JFrame frame = new JFrame("ListDemo");     frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);      //Create and set up the content pane.     JComponent newContentPane = new ListDemo();     newContentPane.setOpaque(true); //content panes must be opaque     frame.setContentPane(newContentPane);      //Display the window.     frame.pack();     frame.setVisible(true); }  public static void main(String[] args) {     //Schedule a job for the event-dispatching thread:     //creating and showing this application's GUI.     javax.swing.SwingUtilities.invokeLater(new Runnable() {         public void run() {             createAndShowGUI();         }     }); }  static class MyListCellRenderer extends JPanel implements ListCellRenderer{      @Override     public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {         removeAll();         ImageIcon loading = new ImageIcon(AjaxLoad.class.getResource("/sample/loader.gif"));         add(new JLabel("Loading: "), JLabel.CENTER);         add(new JLabel(loading), JLabel.CENTER);         setBorder(isSelected ? BorderFactory.createLineBorder(Color.BLUE, 1) : BorderFactory.createEmptyBorder(1, 1, 1, 1));         return this;     } }   How can I display a GIF and animate it for the cells of JList?  Thank you!


Tee and Grep, filtering and appending the output of a script several times

I have a script that output logs every 30 minutes, this logs are appended to a file that store all logs, then I filter the logs that contains 'Maas" string and store those logs to another file.  (script output) | tee -a alldata.log | grep 'Maas' >> filterMaas.log   What I need to do is to add more filters to output to several files, the following line doesnt work, the file filterCCSA.log is empty.  (script output) | tee -a alldata.log | grep 'Maas' >> filterMaas.log | grep 'CCSA' >> filterCCSA.log    Any idea how can make this work?


I made a model of Harry Potter. but when  I render the model it's just a black screen.Duplication is on none. Seams to be nothing wrong with the node setup and render icon is checked on all the objects except the hair which I don't need to render. Thank you for taking the time to read this. Please help.


Ubuntu 18.04.03 Live DVD installer picks wrong hard drive and drive list has it as only drive. Has this bug been reported?

The bug is that while it can see and use the various drives, it only listed one in the drive selection drop down list.  I tried to install Ubuntu 18.04 to an old computer (Dell Inspiron 580) currently running Windows 7 Home Premium 64 bit.  Its from 2010 and had the hard drive replaced due to failure. I left the bad drive in the machine as it had user data on it and hadn’t failed completely. It currently isn’t in use, it just wasn’t worth it to me remove after getting data off of it. The computer also had a 2TB external USB drive attached.  I wanted to dual boot Window 7 and Ubuntu and used the ubuntu-18.04.3-desktop-amd64.iso to try to install Ubuntu.  I Choose install, English, Normal Install, (Download updates and install 3rd party software checked), Install alongside existing OSes.  Then it asked for which drive to use, automatically selecting the 2 TB external drive. Went to the drop down drive list and it was the only drive listed. Shut everything down, disconnected the external drive.  Tried again, making the same installation selections. When it asked for which drive, it selected the bad drive and again the drop down list had nothing else.  Shut everything down, went into the BIOS and removed the bad drive from the boot options (Boot settings, Hard drive priority, only first good drive enabled). Booted into Windows to verify and that worked.  Tried again, making the same installation selections. When it asked for which drive, it selected the bad drive and the drop down list had nothing else.  Shut everything down, disconnected everything, etc... then disconnected and removed the bad drive. Tested booting into Windows, went fine. Ran the installer again with the same choices and it selected the correct drive. It was the only drive in the list but by this point it was the only drive on the system. Installation went fine after that.  The bug is that while it can see and use the various drives, it only listed one in the drive selection drop down list.  I can’t tell if this bug has been reported yet.  Thanks,  Luke


When should compound words be written as one word, with hyphens, or with spaces?

Some compound words are written without hyphens (nonaggression, nonbeliever), some with hyphens (well-intentioned), and others with spaces (post office).  Is there a rule or good guide as to which option should be used?


Why does the 55-250mm blur the background nicely and easily while the 18-55 does not?

I have a Canon 700D and I am new to photography (around 1 month). I got two kit lenses with my camera - the 18-55mm and 55-250mm. I usually use the 18-55mm lens as most of photography I have yet done has been indoors. I also heard somewhere that this lens is good for portraits and the other is a telephoto lens which is good for comparatively distant shots.    Yesterday I was clicking friends' pictures on our roof, but the background-blur effect was not quite clear. Just to check, I changed the lens to the 55-250mm and it was really good at creating blurred backgrounds with sharply focused objects (my friends). Should I use this lens for shooting portraits then?    I know some theoretic basics about Depth of Field and that aperture should be wider to create shallower DOF, but what I am not able to understand is that for same settings(Automatic modes - portrait mode), shouldn't the 18-55mm lens also create the same effect? It looks like that lens does not increase its aperture as nicely as the other lens does.


Drawing lines from two points in CSV using QGIS?

I have a CSV file where one line looks like this:  Duration, user, lat-start, long-start, lat-end, long-end 298, Casual,38.9101,-77.0444,38.91554,-77.03818   Each row in the CSV has two points and I need to draw a line between those two points for each row.   How can I do this using QGIS 1.8.0?   I have tried using the delimited text file plug-in, but it just draws points and has no line option from what I can see.


Equivalence between Mahalanobis distance and PCA (mathematical proof)

From  article and  post it emerges the strong connection between Mahalanobis distance and PCA. In particular in the first article I reference it says:  " the squared Mahalanobis distance is equal to the sum of squares of the scores of all non‐zero standardized principal components"  I would like to have a mathematical proof or at least some reference where I can read the proof.  Many thanks


Getting error trying to insert an image into a table column in javaFX

@FXML private TableColumn<Backup, Image>columnSucces;   columnSuccess.setCellValueFactory(new PropertyValueFactory<Backup, Image>("image")); columnSucces.setCellFactory(new Callback<TableColumn<Backup, Image>, TableCell<Backup,Image>>(){                  @Override                 public TableCell<Backup, Image> call(TableColumn<Backup, Image> arg0) {                      final ImageView imageview = new ImageView();                         imageview.setFitHeight(50);                         imageview.setFitWidth(50);                          //Set up the Table                         TableCell<Backup, Image> cell = new TableCell<Backup, Image>() {                             public void updateItem(Backup item, boolean empty) {                                 if (item != null) {                                     imageview.setImage(new Image("x-mark-small.png"));                                 }                                                }                         };                  cell.setGraphic(imageView);                 return cell;             }             });   I got nullpointerexception error when i am trying to add an image into a column for a table view. I cant understand where is my problem.  @edit. I have solved nullpointerexception, but now my image does not appear in the table column. I received an warning that my updateItem method is never used.


I'm using $k$-fold cross validation technique for generating train, test and validation indexes for a neural network. My sample size is 230~700. What is best $k$ for cross validation here. Now I'm using 10-fold cross validation but I think it is too high. What is your idea?


My drawing skills are pretty awful, and although I haven't yet had to teach multivariable calculus, someday I will.  (And next semester in calculus II we're already doing some volumes by integrating cross sections, volumes and surface areas of rotation, etc).  Is there a guide somewhere on how to draw standard 3D "math shapes" (sphere, torus, paraboloid of revolution, intersection of a cube with a plane through a given selection of three vertices, hyperboloid of two sheets, Möbius band, helix...)?  I can sort of do a cube by drawing a square partially in front of another square, with some of the edges dotted, and connecting the corresponding vertices.  That's about as far as it goes at present.  If there isn't such a guide specifically for math, I suppose I could (with much trepidation) look for more general books on drawing techniques...any ideas for a geodesic to get to math drawing?


Using Google Chrome Version 30.0.1581.2 dev on OSX Mavericks, I've found an issue where I can't type a custom message for flagging a question.  Steps to Reproduce   Click flag on a question Click "Other, needs moderator attention" Click to focus on the text box used for inputting extra information and type something   Expected Results   Focus is shifted to the input box and a reason for flagging can by typed.   Actual Results   Focus is shifted to the text field, but is shifted back to the "Other" Radio button almost immediately.   Other Information   Tabbing to the next field works as expect, indicating it's the click event being handled by both inputs. Repeatable on Safari 7.0 (9537.71) OSX Mavericks


Can anyone recommend a straightforward way/tool to convert hex to base64?  I'm using Linux and OS X.


Sub-process /usr/bin/dpkg returned an error code (1) - package "runit"

I was trying to upgrade to ubuntu 15.04 to fix random system crashes on my previous installation but the system crashed during the upgrade, as a result I had to fix it from terminal mode, now I have a 15.04 installation but apparently the dpkg manager has some issues and its preventing other dependent upgrades. Here is the error message:


The four words"weakness", "shortcoming", "demerit" and "defect" are four words shared with the similar meanings. In the dictionary, "weakness" and "shortcoming" have more to do with one's characer, while "demerit" and "defect" are used in a general sense. However, in this sentence, "The ___in David's character has hindered him from advancing in his character." Why the correct answer was said to be "defect" rather than the other three?


I have a Python script that I want to pass a bash variable to.   bash.sh  while read -r db do Printf  "%s\n" ${db} "Found" done < path/to/file.txt   output: db1         db2         db3  file.txt  db1 db2 db3   python.py  print(${db},+"_tables.replicate.fix")   I need an output of  : db1                       db2                       db3    How can the python file know what the db variable holds in the bash file?


How do you turn off developer mode on an s5?

I turned developer options 'off', but is there anything else that needs to be done? Not my phone so don't want to mess anything up :-)


unable to mount any drive that working fine on windows

Whenever I boot Ubuntu, I get a message that it cannot mount my windows partition, and I can choose to either wait, skip or manually mount.  When I try to enter my Windows partition through Nautilus I get a message saying that this partition is hibernated and that I need to enter the file system and properly close it, something I have done with no problem so I don't know why this happens.  Here's my partition table, if any more data is needed please let me know.     Device Boot      Start         End      Blocks   Id  System /dev/sda1            2048    20000767     9999360   83  Linux /dev/sda2        20002814   478001151   228999169    5  Extended /dev/sda3   *   478001152   622532607    72265728    7  HPFS/NTFS/exFAT /dev/sda4       622532608   625141759     1304576   82  Linux swap / Solaris /dev/sda5        20002816   478001151   228999168   83  Linux


My question is:     For Which  natural numbers $n$, a finite group $G$ of order $n$ is an abelian group?   Obviouslyو for $n≤4$ and when $n$ is a prime number, we have $G$ is abelian. Can we consider any other restrictions or conditions for $n$ to have the above statement or the group itself should have certain structure as well? Thanks.


Windows 7 acts like my speakers have a loose connection but they don't, could this be a bug?

I just upgraded my computer to Windows 7. Now a message keeps popping up that my speakers have been unplugged, and the sound will cut out. After a while, I get a message that they have been plugged in, and the sound will start playing again.   Now, this might be a loose connection, or maybe the plug is broken somehow, but I suspect it might be some kind of bug. The speakers are firmly plugged in, twisting and nudging the plug or even unplugging and replugging it when it's not working makes no difference, plugging in different speakers makes no difference either, and I never had this problem until I updated the software.   Is there a way to tell whether my hardware is broken or whether this is some kind of bug? Any ideas for fixing or troubleshooting?  Edit: In case it matters, I use the Realtek HD Audio Manager, and the sound card driver should be up to date.


A generalized formula for the probability of a roll?

I'm looking for a formula to calculate the chance that (n) rolls of a d(y) produces any of (x) specific numbers (k) times, where x,y,n,k > 0, k <= n, and x <= y.  AnyDice is a neat thing to know about, but I'd much rather have the formula itself.  I know this sounds like stat homework but I guarantee you it's for tabletop shenanigans. I recently ran a one-shot combining , the one page 90's hacker rpg created by Grant Howitt, and D&D 5e, to create a sort of... Persona'esc experience. I created this table:    ...to handle contesting rolls between the system. It worked well enough for a one shot but it seemed rolls with 5e's d20 system generally had a leg up over hack the planet's d6's. I'm asking for this formula in order to assist in better balancing any other hackbrained one-shot ideas I think up in the future.


I want to see the following step in greater detail:  $$\nabla_x~\bigg[(\vec{x}-\vec{\mu})^TP^{-1}(\vec{x}-\vec{\mu}) \bigg] ~~~~~(3)$$  $$= P^{-1}(\vec{x}-\vec{\mu})$$  Textbook says the above partial derivative was performed by making use of the fact that P is a symmetric matrix and the following derivatives:  $$\frac{\partial}{\partial{\mathbf{x}}}(\mathbf{x}^T \mathbf{a}) = \frac{\partial}{\partial{\mathbf{x}}}(\mathbf{a}^T \mathbf{x}) = \mathbf{a}~~~~~~~(1)$$  $$\frac{\partial}{\partial{\mathbf{x}}} (\mathbf{A}\mathbf{B}) = \frac{\partial A}{\partial{\mathbf{x}}}\mathbf{B} + \mathbf{A} \frac{\partial \mathbf{B}}{\partial{\mathbf{x}}}~~~~~~(2)$$  where a and x are vectors an A and B are matrices.  I'm still not entirely sure I understanding how to perform this differentiation over the above matrix/vector equation (3).  would this involve performing rule (2) then rule (1)?


What is the difference between DISPLAY :0 and :0.0?  On RedHat 5.8, I can right click the desktop to start a shell and DISPLAY will be ":0".  If I go to the Menu-System-Terminal to start a shell then DISPLAY will be ":0.0".  Can I always assume that these are really the same display?  For example, if I VNC in to a machine on DISPLAY 33, can I assume that ":33.0" and ":33" are the same display with the same permissions?


Which is correct - 2TB memories or 2TBs of memory?

I am working on a manual where they are trying to say that something support from 2 TB (terabytes) to 8 TB (terabytes) of flash memory per channel.  The audience is programming engineers.  It is written: "Supports 2TB-8TB flash memories per channel."  I believe that it should be written: "Supports 2TBs-8TBs of flash memory per channel."  Which one is correct?


How can I use a carriage return in a HTML tooltip?

I'm currently adding verbose tooltips to our site, and I'd like (without having to resort to a whizz-bang jQuery plugin, I know there are many!) to use carriage returns to format the tooltip.  To add the tip I'm using the title attribute. I've looked around the usual sites and using the basic template of:  link with tip   I've tried replacing the ? with:
 &013; / &#13; \r\n Environment.NewLine (I'm using C#)   None of the above works. Is it possible?


What spell was used to defeat this Death Eater?

What spell was used by      Molly Weasley   to defeat this death eater?      Bellatrix Lestrange   It must have been something very powerful because it completely incinerated them.


I have recently installed Ubuntu 18.04 in my hp 15bs 145tu laptop. All packages of Ubuntu seem to be working properly but the WiFi adapter is not found, and I can't connect to the wireless network.   How can I debug/fix this?


A matching in a graph is a set of edges that are pair-wise non-adjacent. IOW, each node involved in the matching appears in only one edge.    Now I am wondering is there a ``generalized'' concept of matching, such that it still refers to an edge-set, and each vertex involved can appear in at most $k$ edges in this edge-set, where $k \ge 2$ is a pre-specified positive integer.  If such concept does exist, what are some interesting and representative problems studied for that?


Define new extension method in class Queryable

I'm using mvc 5 and wanna define extension method FindMessageAsync in class Queryable (namespace System.Linq).  I usually use this way to get some records in database:  public void GetMessage(string id) {   using (var db = new MyDbContext())   {         var message = db.Message.FirstOrDefault(x => x.Id == id);     //or     var _message = db.Message.Where(x => x.Id == id).ToList();      //do stuff   } }   I wanna improve the method to:  public async Task<MessageViewModels> GetMessage(string id) {   using (var db = new MyDbContext())   {         var message = await db.Message.FindMessageAsync(x => x.Id == id);      if (message != null)     {       //string id = message.Id;       //string fromUser = message.FromUser;       //string toUser = message.ToUser;       //string content = message.Content;       //bool isRead = message.IsRead;     }      //do stuff   } }   My question is: How to define extension method FindMessageAsync?  UPDATE:  The answers of  don't solve my problem.


i'm having hard time making tables of variations in latex

i'm writing my thesis and i face these two tables of variations, please help me transfer them to latex.


Customize stackoverflow like source code box using tcolorbox extrude, with constant space around word

I try to change font familly in my tcolorbox to have similar font than the font for source code in stackoverflow, without success.   The height of line is also not correct, there is a difference between line with box and line without box, is there a way to define automatically the correct height of the box to eliminate this effect ?    The code for box is      \makeatletter     \newtcbox{\keywordmin}{on line, fontupper=\scriptsize\texttt, boxrule=0.5pt,arc=2pt,coltext=tangoBlack1,colback=tangoGrey1,colframe=tangoGrey1,boxsep=0pt,left=2pt,right=2pt,top=2pt,bottom=2pt}     \makeatother   Here the complete MWE   % !TEX encoding =  UTF-8 Unicode % -*- program: xelatex -*- \documentclass[a4paper, 11pt,twoside, openright]{memoir} \usepackage{mwe} % just for dummy images \usepackage{amssymb} \usepackage{amsmath,mathtools} \usepackage{amstext}    % defines the \text command, needed here \usepackage{array} \usepackage{tcolorbox}   \definecolor{tangoBlack1}{RGB}{0,0,0} \definecolor{tangoGrey1}{RGB}{136,138,133}  \usepackage{sepfootnotes} \newfootnotes{A}  \footmarkstyle{[#1]~} \setlength{\footmarkwidth}{-1sp} \setlength{\footmarksep}{0pt} \setlength{\footparindent}{0pt} \renewcommand{\foottextfont}{\scriptsize\raggedright}  \makeatletter \newtcbox{\keywordmin}{on line, fontupper=\scriptsize\texttt, boxrule=0.5pt,arc=2pt,coltext=tangoBlack1,colback=tangoGrey1,colframe=tangoGrey1,boxsep=0pt,left=2pt,right=2pt,top=2pt,bottom=2pt} \makeatother  \begin{document}  \Anotecontent{code_note}{This is a technical note with \keywordmin{Code} tag used to describe \keywordmin{keyword} in source code. This is a technical note with \keywordmin{Code} tag used to describe \keywordmin{keyword} in source code. I want to add some blablabla on the same line..I want to add some blablabla on the same line..I want to add some blablabla on the same line..I want to add some blablabla on the same line..  I want to add some blablabla on the same line..I want to add some blablabla on the same line.. }  This is a message which need a footnotes \Anote{code_note}.  \end{document}   Update 1 :   I upgrade the question using first answer based on @harish-kumar answer and answer of this  to better explain my need.  If i augment the size of extrude (like extrude by=3pt or extrude by=4pt) to construct a more fancy box, the extrud "eat" other word around. Is there a way with tcolorbox to maintain a correct space (1pt) betwen colored box and the word around ?


I tried catching like 20+ Pokemon, but when I throw the Pokeball, it ticks 1 time, and they run, even though they are CP 10.  I'm currently level 17. What's wrong?


I am having difficulty in solving following types of problem:  Sometimes we are given a number in terms of $n$ and we have to check whether it is divisible by a particular composite number.  For example, I am posting a question here      suppose $k= n^5- n$ then prove that $k$ is divisible by $30$.   And this was my approach:      $$n^5-n= n (n^4-1) =n(n^2+1) (n+1) (n-1)$$   Since $k$ is a product of $n^2+1$ and three consecutive integers, it must be a multiple of $2$ and $3$. So it gives $k= 6m (n^2+1)$. But how can I prove that it's also a multiple of 5? And this is where I  get confused.   Now, suggest some alternate way to prove above problem or some corrections in my method.


Inequality regarding sum of rational powers of positive real numbers

Let $a,b \ge 0$ and $\frac{m}{n} \le 1$ then $a^{\frac{m}{n}} + b^{\frac{m}{n}} \ge (a+b)^{\frac{m}{n}}$.  How to prove this inequality.  If $\frac{m}{n} = \frac{1}{2}$, I know how to prove this.  The function $f(x) = x^\frac{m}{n}, x \ge 0$ is increasing for $\frac{m}{n} \le 1$.  How can I use the above fact?  Can you help me out.  This question :   has an answer for $a+b = 1$.


How much set theory and logic should typical algebraists/analysts/geometers know? (soft-question)

I know enough amount of set theory and logic to study grad-level math. However, I don't know more advanced set theory and logic, such as the ones on Kunen's or Shoenfield's texts. Although it's good to learn such advanced topics, I may not have enough time to do so, since I will probably put my emphasis on algebra, analysis or geometry as well as mathematical physics.   Although how much set theory and logic I should learn is totally up to what sort of analysis, algebra or geometry I will study, I want to know how much of them typical competitive algebraists/analysts/geometers know. If you are one of them, how much do you know?


Will we ever be able to install Ubuntu on a Win10 tablet like we can on Desktop?

I've got a nice Win10 Tablet/Netbook, but I hate Win10. I tried Installing Ubuntu casually on it, but It couldnt boot from the installation media. I've found out that this has something to do with Windows tablets having a 32bit EFI, but Ubuntu and Grub only supporting either a Bios or a 64bit UEFI. Also there would be driver problems and all if I managed to install it somehow.  Will I soon/ever be able to install Ubuntu on the Win10 Tablet without problems?


I just got a bug report for multicol because of a strange white space at the top of the first column and I traced it to the use of the pdfsync package that added material in various places that did somehow conflict with the column balancing routines of multicol.  Now this is rather an issue with this particular package that adds material in a way it perhaps shouldn't (well it warns that this could happen and that it should never be used on final documents). But it makes me wonder if there are any useful applications for this package at all these days, given that you can get this functionality (at least with TL binaries) by specifying -synctex=1 and use editors like TeXWorks  without any side-effects.  If the answer is yes it is needed, which are those applications? If no, shouldn't the package get a bold warning (say, via \typeout) that it would be better to remove it and rely on a different approach?  Even if the answer is yes, I think a \typeoutwarning would be in order that it shouldn't be used on final documents (as the author states).


How to plot a graph from its adjacency matrix (coordinates manually specified)?

For example, I want to plot a graph whose  is [0,1,0;1,0,1;0,1,0]. I first plot three points labeled by p1,p2,p3, and link the points p1,p2, p2,p3. For a general case, how to link the points according to the adjacency matrix(which may be stored in a .txt file)?


Can't upgrade due to not enough space in /boot

/boot$ ls  abi-3.8.0-19-generic         initrd.img-3.8.0-29-generic abi-3.8.0-25-generic         lost+found abi-3.8.0-26-generic         memtest86+.bin abi-3.8.0-27-generic         memtest86+_multiboot.bin abi-3.8.0-29-generic         System.map-3.8.0-19-generic abi-3.8.0-30-generic         System.map-3.8.0-25-generic abi-3.8.0-31-generic         System.map-3.8.0-26-generic config-3.8.0-19-generic      System.map-3.8.0-27-generic config-3.8.0-25-generic      System.map-3.8.0-29-generic config-3.8.0-26-generic      System.map-3.8.0-30-generic config-3.8.0-27-generic      System.map-3.8.0-31-generic config-3.8.0-29-generic      vmlinuz-3.8.0-19-generic config-3.8.0-30-generic      vmlinuz-3.8.0-25-generic config-3.8.0-31-generic      vmlinuz-3.8.0-26-generic grub                         vmlinuz-3.8.0-27-generic initrd.img-3.8.0-19-generic  vmlinuz-3.8.0-29-generic initrd.img-3.8.0-25-generic  vmlinuz-3.8.0-30-generic initrd.img-3.8.0-26-generic  vmlinuz-3.8.0-31-generic initrd.img-3.8.0-27-generic


Sum numbers and compare floats after fails

So whenever I sum an array of floating numbers, and compare the summed number with another floating number it keeps saying they are not the same.  So the total is 1.63 The numbers are: 0.31, 0.31, 0.37, 0.33, 0.31  These numbers together makes 1.63, but whenever I compare the sum with 1.63 it says they are not the same.  How come this happens?  #!/usr/bin/python  total = 1.63  array = [ 0.31, 0.31, 0.37, 0.33, 0.31 ]  sum = 0 for n in array:   sum += float(n)  print total print sum  if float(total) == float(sum):   print 'ok' else:   print 'not ok'   print total, sum   result:  1.63 1.63 not ok 1.63 1.63


$(A=A\cup B )\Leftrightarrow B\subset A$ - is it true?

I'm trying to find out whether the following statement is true:  $(A=A\cup B )\Leftrightarrow B\subset A$  In my opinion it is, because $A=A\cup B$ if B is either an empty set, or $A=B$ or $B \subset A$, all of which are are equivalent with $B \subset A$.  Could you please verify my proof?  Thanks


How many solutions for the equation $Y_1 + Y_2 + Y_3 + Y_4 + Y_5 = 6$?

How many solutions for the equation $Y_1 + Y_2 + Y_3 + Y_4 + Y_5 = 6$ ?  where $0\leq Y_1 \leq 3$ and $1\leq Y_2 \leq3$ and $Y_3,Y_4,Y_5\geq 0$ and $Y1,Y2,Y3,Y4,Y5 $ are integers.    I tried to apply brute force and got following  equations :   $Y3 + Y4 + Y5 = 5\quad$ has $21$ Solutions $Y3 + Y4 + Y5 = 4\quad$ has $15$ Solutions $Y3 + Y4 + Y5 = 3\quad$ has $10$ Solutions $Y3 + Y4 + Y5 = 2\quad$ has $6$ Solutions $Y3 + Y4 + Y5 = 1\quad$ has $3$ Solutions $Y3 + Y4 + Y5 = 0\quad$ has $1$ Solution     Am I going right here ?   EDIT: Using generating functions gives $106$, but what is the error in above method.


Let $\sum_{n=1}^\infty a(n)$ be a series such that $(a(n))$ is a decreasing sequence of positive numbers. Prove that $\sum_{n=1}^\infty a(n)$ converges if and only if $\sum_{n=1}^\infty 2^na(2^n)$ converges.


Why can't I use read -a to break a string into words?

I have a sample input file called in with the following contents:  m@m-X555LJ:~/wtfdir$ cat in asdf1 jkl1 asdf2 jkl2 asdf3 jkl3   I now execute:  m@m-X555LJ:~/wtfdir$ mapfile < ./in   As expected, the variable MAPFILE is now an array that breaks the file in into lines:  m@m-X555LJ:~/wtfdir$ echo ${MAPFILE[0]} asdf1 jkl1 m@m-X555LJ:~/wtfdir$ echo ${MAPFILE[1]} asdf2 jkl2   So now I want to break the first line into words. AFAIK read -a arrname reads a line from standard input, breaks it into words and stores the result in an array called arrname. So I type:  m@m-X555LJ:~/wtfdir$ echo ${MAPFILE[0]} | read -a words   In my mental model, this is what should happen: echo ${MAPFILE[0]} echoes the first row of MAPFILE (that is, asdf1 jkl1) into standard output, but this is piped into standard input of read -a words, so read should read this line and split it into words and store the result in an array called words.  Yet sadly, this doesn't happen:  m@m-X555LJ:~/wtfdir$ echo ${words[0]}  m@m-X555LJ:~/wtfdir$   Yep. echo ${words[0]} prints nothing, while I was hoping it would print asdf1.  Why does it happen? And where is my mistake? And how to make it work?


What is the best Linux Dock available? I'm looking for a Dock that I can customize to make it look the way I like. It needs to be theme-able and have lots of configuration options.  Please limit one dock solution per answer


Air oscillation at open window of a moving car

When driving a car with an open window one can hear (and feel) oscillations of air at the threshold of the open window. I used to think the open window and the car interior were forming a , but then noticed that the frequency of the vibration doesn't change when I change scroll the window up or down, from wide open to 3/4 closed. The amplitude of vibration changes, but the frequency change I don't notice. Thus the two-part question: what causes air to vibrate in the open window? And why doesn't the frequency change when I open the window further?


Today I have downloaded Metasploit-latest-linux-installer.run. I have clicked the icon to install only to be greeted with the error message:  Could not display "/home/daniel/Downloads/metasploit-latest-linux-installer.run". There is no application installed for executable files. Do you want to search for an application to open this file?  Upon clicking yes the results of the search only show one application. This application is called "Pypar2". (a graphical interface for the Par2 utility)  I hesitantly click install only to be told further python support is required and i click install for that also. Window pops up ......Installing packages....done  Pypar2 also installs and I open.  This doesn't seem right this seems to be a program to verify the contents? I don't know what i am doing wrong this is on my second day using ubuntu


Stop Firefox YouTube from auto-loading videos (HTML5)

I am using Firefox version 36.0.4 which has HTML 5 video. How can I stop it from autoloading videos in YouTube. For example, when I got a YouTube page, videos will immediately start playing. Also, When I watch a video on YouTube, after it is done, somehow YouTube decides to play ANOTHER video which I did not pick and then start to automatically play it. I find this extremely annoying. How can I block this behavior?  Please note that solutions from  don't work because they are about Flash videos which isn't the case here


The general formulation of quantum mechanics is done by describing quantum mechanical states by vectors $|\psi_t(x)\rangle$ in some Hilbert space $\mathcal{H}$ and describes their time evolution by the Schrödinger equation $$i\hbar\frac{\partial}{\partial t}|\psi_t\rangle = H|\psi_t\rangle$$ where $H$ is the Hamilton operator (for the free particle we have $H=-\frac{\hbar^2}{2m}\Delta$).  Now I have often seen used spaces like $\mathcal{H}=L^2(\mathbb{R}^3)$ (in the case of a single particle), but I was wondering whether this is correct or not.  In fact shouldn't we require to be able to derivate $\left|\psi_t\right>$ twice in $x$ and thus choose something like $\mathcal{H} = H^2(\mathbb{R}^3)$?   If we treat directly $\psi(t,x) := \psi_t(x)$, shouldn't we require them to be in something like $H^1(\mathbb{R};H^2(\mathbb{R}^3))$? i.e., functions in $H^1(\mathbb{R})$ with values in $H^2(\mathbb{R}^3)$, e.g. the function $t\mapsto\psi_t$.


SQL query through java returning "java.lang.NullPointerException"

try{       Class.forName("com.mysql.jdbc.Driver");        con=DriverManager.getConnection("jdbc:mysql://localhost/phpMyAdmin/Database_Name","root","");        stmt=con.createStatement();      }   This is my code to establish a connection b/w my computer and database and after this I receive the user name and password from the user and then i execute this query  try {       rs=stmt.executeQuery("SELECT * FROM d       teacher_info WHERE UserName         = '"+userName+"' AND teacher_info.password          ="+password);     }   The problem is that whenever i execute the query i get  java.lang.NullPointerException 3 times in a row Any ideas as to why this could be happening ?


Which codecs are most suitable for playback with Windows Media Player on Windows XP?

I need to encode a short video in a format that can be played with windows media player on windows xp without installing any additional codecs. For the recoding process I'm using ffmpeg.  I've already tried the msmpeg4v2 codec but the quality is horrible (compared to the original video you see large "blocks") so I'm looking for other codecs which work out of the box and have at least "ok" quality.  Since comments indicated that it might not be the codec but a bitrate issue, here's the command I used:  ffmpeg -i x.flv -vcodec msmpeg4v2 -acodec adpcm_ima_wav x.avi   Output:  Input #0, flv, from 'x.flv':   Metadata:     moovPosition    : 39337765     avcprofile      : 100     avclevel        : 30     aacaot          : 2     videoframerate  : 25     audiochannels   : 2   Duration: 00:06:19.52, start: 0.000000, bitrate: 836 kb/s     Stream #0:0: Video: h264 (High), yuv420p, 702x396 [SAR 2596:3679 DAR 354:283], 25 tbr, 1k tbn, 50 tbc     Stream #0:1: Audio: aac, 48000 Hz, stereo, s16 w:702 h:396 pixfmt:yuv420p tb:1/1000000 sar:2596/3679 sws_param: Output #0, avi, to 'x.avi':   Metadata:     moovPosition    : 39337765     avcprofile      : 100     avclevel        : 30     aacaot          : 2     videoframerate  : 25     audiochannels   : 2     ISFT            : Lavf53.32.100     Stream #0:0: Video: msmpeg4v2 (MP42 / 0x3234504D), yuv420p, 702x396 [SAR 2596:3679 DAR 354:283], q=2-31, 200 kb/s, 25 tbn, 25 tbc     Stream #0:1: Audio: adpcm_ima_wav ([17][0][0][0] / 0x0011), 48000 Hz, stereo, s16, 384 kb/s Stream mapping:   Stream #0:0 -> #0:0 (h264 -> msmpeg4v2)   Stream #0:1 -> #0:1 (aac -> adpcm_ima_wav) Press [q] to stop, [?] for help frame= 9485 fps=436 q=31.0 Lsize=   31197kB time=00:06:19.48 bitrate= 673.5kbits/s video:12628kB audio:17913kB global headers:0kB muxing overhead 2.149820%


Where do adventurers keep all their stuff?

This is a bit of an equipment logistics question so might not be all that interesting to everyone but... Reading the 5e PHB, the backpack weight listing says:      Backpack: 1 cubic foot/30 pounds of gear   (You can also strap items, such as a bedroll or a coil of rope, to the outside of a backpack.)   Putting together a basic character, using class and background equipment, has given me about 108lbs of gear; including weapons, rations, rope and the like... So where does it all go?   Are weapons assumed to have scabbards/sheaths/belt loops and don't need to be in a backpack? Similarly, does ammunition automatically get a (weightless) quiver/case/pouch? Do you wear clothes under your armour? How much can you strap to the outside of a backpack?   Assuming some of these and generously hanging things on the outside of a backpack, my basic character is still carrying around 65lbs of equipment (though admittedly this does include a frankly ludicrous 25lb hunting trap!)  And this doesn't even take into account anything interesting/useful (magical or otherwise) he might find lying around. A week's rations alone weigh 14lbs - almost half of a backpack's capacity!  While I enjoy imagining my character rolling through a dungeon with 3 heavy-duty backpacks, a flaming torch or five down his pants, daggers strapped to every available limb and extra arrows tucked behind his ears - it doesn't quite have that level of realism I'm looking for.  My question then, is:  Where should all this stuff go?  Ideally, answers shouldn't be along the lines of "Ask your DM" or "Just ignore logistics - it's boring - assume it all fits in the bag". I know this kind of stuff isn't the bread and butter of a good DnD session but it just doesn't seem to make sense. Am I missing something here?  Just to clarify, this isn't a question about how much my character can carry - even at Strength 10, 108lbs of gear is manageable since it's below the 150lb carry limit (ignoring the encumbrance variant rules). This question is about where the equipment goes.  Yes, I can use a vehicle or a mount to carry my mountains of rations to the next dungeon but realistically where would a rogue or a cleric (for example) keep their equipment when they are in said dungeon? Presumably they're going to need that 11-foot pole or bag of ball-bearings at some stage and wouldn't leave it outside with the mules and wagons?


Add a new repository to software sources

I tried to add a new repository to software sources, but "add source" button is unavailable. I can't click on it.  I also tried to add a new software source from the terminal, but it didn't work.  sudo add-apt-repository ppa:n-muench/burg   sudo: command not found     I also tried these commands:  sudo add-apt-repository deb http://ppa.launchpad.net/n-muench/burg/ubuntu natty main   sudo: command not found


Why does the SE Web app and Android app display different scores for Tags?

How come the Android app displays total score for tags, whereas the Web App displays total score for answers (SO & Politics.SE)?  Web:    Android:   This isn't a question regarding the calculation of score, but rather the display of the score. Wouldn't it be more consistent to have the same parameters for both platforms? (i.e. just display answer scores or just display total scores)


How do I add line to .rtorrent.rc using command line in Ubuntu

I am trying to torrent from a specific tracker on my seedbox but haven't been able to successfully connect and was told by a site admin that I should:     ...disable the verification of certificates. To do so, just add following line to .rtorrent.rc located in your home directory:   The admin then suggested that I could try adding this line to my seedbox (ubuntu) .rtorrent.rc file:   network.http.ssl_verify_peer.set=0   I am uncertain how to add a line to .rtorrent.rc.  I can access the terminal via putty and I can SSH in, it says "Welcome to Ubuntu 16.04.1 LTS (GNU/Linux 4.4.0-59-generic x86_64) on xxxxxx.xxxx.xx hosted by: xxxxxxx"  Please explain the steps/commands necessary to add the above line to my .rtorrent.rc file.


Why is this string reversal C code causing a segmentation fault?

I am trying to write code to reverse a string in place (I'm just trying to get better at C programming and pointer manipulation), but I cannot figure out why I am getting a :  #include <string.h>  void reverse(char *s);  int main() {     char* s = "teststring";     reverse(s);      return 0; }  void reverse(char *s) {     int i, j;     char temp;      for (i=0,j = (strlen(s)-1); i < j; i++, j--) {         temp = *(s+i);     //line 1         *(s+i) = *(s+j);   //line 2         *(s+j) = temp;     //line 3     } }   It's lines 2 and 3 that are causing the segmentation fault.  I understand that there may be better ways to do this, but I am interested in finding out what specifically in my code is causing the segmentation fault.  Update: I have included the calling function as requested.


Continuous Markov Chains: Deriving the Transition Matrix from the Generator Matrix

A continuous-time Markov Chain has generator matrix,  $$ Q = \begin{pmatrix}     -1 & 1 & 0 \\     1 & -2 & 1 \\     2 & 2 & -4 \\     \end{pmatrix} $$  (i) Exhibit the transition matrix of the embedded Markov chain.  (ii) Exhibit the holding time parameter for each state.    I'm struggling to understand a lot of the methods and was hoping someone could show me how this works/walk me through it? I assume I need to start with making sure $Q$ is diagonalizable but I'm not really sure how to express the following;  $P(t) = e^{tQ} = Se^{tD}S^{-1}$  But I've never seen a matrix be in the exponential.. I know $D$ is the diagonal of of eigenvalues but I don't know how to express $e^{tD}$. Thank you in advance for your help!


Check this   within blockquote  I checked the  for mouse over effect but no luck on it. how to do it? I'm not sure this is a bug.


A general formula for $n$ distinguishable arrangements of length $\ell$ of a sequence of a given size?

Is there a general formula for the number of distinguishable arrangements of length $\ell$ of a sequence of size $s$, given the repeated elements? So,  For example, would there be a general formula to solve the problem:  How many distinguishable 5-letter arrangements are there of the word "PROBABILITY" ?  I'm looking for a general formula.


Customer Community Plus User Cannot Add Other User

Within my community there are customer users with Customer Community Plus licenses who are considered to be "company admins" for their respective companies. A company admin needs to be able to add other users from their company, which effectively involves creation of a Contact record and a User record for the new user.  The problem I'm experiencing is this:   If I try inserting the Contact record and the User record in the same code context, I get a MIXED_DML_OPERATION exception. If I try using , I get this error: "You are already logged in."   Other than breaking out the Contact record creation and User record creation into two operations that execute in two separate code contexts (e.g., actions on a Visualforce page), is there any way to efficiently enable a logged in customer user to add another user?


Vectorizing raster with values between 0 and 1 in QGIS

I am working on QGIS. I have a raster of EVI, in which values are comprised between 0 and 1. I need to vectorize this raster in order to make an intersection with another vector. My issue is that when I vectorize my raster, the values are either 0 or 1, but I want the values detailed between 0 and 1. The best would be to have the values every 0.1 (0.1, 0.2, 0.3, ...). Do you have any idea of how I can proceed? I was thinking that I could multiply the values of the raster by a hundred, but is that even possible?


How should I connect the ground wires for my new light fixture?

I have a question about what to do with ground wires. I am installing a new light fixture above my dining room table.  Fixture comes with a ground wire obviously.  Main electrical wiring has the normal black and white wire AND a bare copper wire (which I’m assuming is another ground wire). In addition it appears that my octagonal electric junction box also has a green copper ground wire attached to box with a screw, so I now have three grounding wires. Light fixture mounting bracket has the normal green screw that I should be attaching a ground wire. Question: Is which wire do I attach to the mounting bracket ground screw AND what to do with the other grounding wires??


I have to prove the following:     If $a, b$ are transcendental then $a+b$ is transcendental or $ab$ is transcendental, or both.   I don't have any idea on how to solve this. I already proved this:  If $z \in \mathbb{C}$, $a_1, a_2$ are algebraic then: $z^2 + a_1z +a_2 = 0$ $\Rightarrow$ $z$ is algebraic   But I don't know if this could help me. Could you help me with this problem?  Thanks in advance


If an object falling at terminal velocity is pushed sideways, does it slow down vertically?

For reference, I'm using this equation for drag  $$d = c \times {\rho \times v^2 \over 2} \times a$$  And this one for finding terminal velocity  $$v = \sqrt{2 \times m \times g \over \rho \times a \times c}$$  For the purposes of this question, you can assume $c$, $\rho$, $a$, and $m$ are all $1$ and the object we are dealing with is a sphere. These two equations then simplify to  $$d = {v^2 \over 2}$$ $$v = \sqrt{2 \times g}$$  Now imagine $g=50$. The terminal velocity of the object in this environment would be $v = \sqrt{2 \times 50} = 10$. This object then has a velocity vector of $(0, -10)$. It's experiencing a downward force of $50$ units due to gravity, and drag is pushing it upwards by $d = {10^2\over 2} = 50$ units, perfectly cancelling out gravity, thus it is at its terminal velocity.  Now imagine a sideways force being applied. Its velocity vector now becomes $(4, -10)$. Calculating for drag, we can see the drag force has a magnitude of ${\sqrt{4^2 + (-10)^2}^2 \over 2} = 58$ units.  The unit vector in the direction of the velocity is given by  $$\theta = \text{atan2}(-10, 4)$$ $$U = (\cos \theta, \sin \theta)$$  And since drag is applied in the opposite direction of motion, we know the drag vector is $D = d \times -U$. And after actually crunching the numbers for the Y-component of $D$, we see that the object is experiencing an upwards force of $53.85...$ units, which is more than the downward force of gravity.  So, my question is, what's going on here? Does the sideways motion actually truly affect the vertical motion? Am I missing something in the calculations? Intuition would tell me that no matter how fast an object is moving sideways (ignoring things like lift, we're dealing with a sphere) its vertical motion will be unaffected. Is that intuition wrong?  Granted, my calculations are fundamentally 2D, but imagining similar situations in 3D gives the same result. The drag vector still has a stronger upwards component, which still raises the same questions.


Something wrong with spaces in zenity trying in a script

While this is directly executed in terminal it works fine  zenity --info --text "pure info" --title "get info"   But this script doen't work what's wrong?  !/bin/bash ZEN="--info --text \"pure info\" --title \"get info\"" zenity $ZEN   The script outputs like : "info in text and '"jeevan in title. It is skipping the remaining part. Is it because the space (special character) loses it's special meaning inside double quotes?


All the points in the plane are coloured using 3 colours. Prove that there exists a triangle with vertices having the same color such that either it is isosceles or its angles are in geometric progression


Reboot fails after 16.04 installation on Virtualbox VM

Installed Ubuntu 16.04 as a VM using VirtualBox via USB on a Windows 10 laptop.  Created the VM with 768MB of ram and 20GB of disk space. The setup and installation followed the example in the documentation and finished without error.  However, when rebooting (as prompted) at the end of the installation the Ubuntu instance just hangs on reboot and shows the following message info:  Ubuntu 16.04  [    15.901984] piix4_smbus 0000:07.0: SMBUS base address uninitialized - upgrade BIOS or use force_addr=0xaddr [    16.921000] intel_rapl: no valid rapl domain found in package 0


Infinity problem: Why is gravity $g=0$ zero at the center of Earth if according to Newton gravity formula $g=GM/R^2$?

It is said that value of $g=0$ at the centre of the Earth. $g$ is calculated using the formula                                      $$   g=G*M/R^2.$$  When $R = 0$, $g$ approaches infinity. I have two questions.   Why is the $g= G*M/R^2$ not working? How to calculate the value of $g$ at centre of earth?


"C# is intended to be suitable for writing applications for both hosted and embedded systems, ranging from the very large that use sophisticated operating systems, down to the very small having dedicated functions."      Although it greatly depends on how embedded is "emebedded",  How well do you think C# has reached this goal?  Do you consider C# to be just as good if not better tool for the job than C/C++?


How can I ssh to a remote server with an automated password and no key?

I have a remote server. I planned to use public keys to connect over ssh without typing the password but the remote system rejects public key authentication.  So what is the best way to do it? What about using sshpass?


Prof Doe in/at the Department of, in/at the Faculty of, at/in the University of

I am reviewing an edited document in which the editor changed      Prof Doe in the Department of ... in the Faculty of ... at the University of ...       to      Prof Doe at the Department of ... at the Faculty of ... at the University of ...   I'm pretty sure I'm right, but I don't want to make arbitrary corrections.  [Use of capitals for names of departments and faculties, and dropping the full stop from Prof not at issue — these are all house style]


Can I see how many times my Google doc has been viewed?

I've recently posted a Google Document on a forum and I'd like to know how many people saw and when. I could see how people were opening and closing the doc live, with those user icons popping up next to the share button. But nothing in the UI indicates where (if at all) a document stores it's viewing statistics.  Is there a way to do this?


Environment variables over ssh block in shell script

I have the following function :  GetHostName () { NODE01_CHECK=`cat /etc/hosts | grep -w "node01" | awk '{print $1}'` NODE02_CHECK=`cat /etc/hosts | grep -w "node02" | awk '{print $1}'`  IS_NODE1=`ifconfig -a | grep -w $NODE01_CHECK` IS_NODE2=`ifconfig -a | grep -w $NODE02_CHECK`  if [[ ! -z $IS_NODE1 ]]; then     echo "This is NODE 1" fi  if [[ ! -z $IS_NODE2 ]]; then     echo "This is Node 2" fi  }   This script will identify if a certain ip is configured on one of the two nodes belonging to a cluster. This works fine locally, but I need to run it remotely from a server that only knows of the VIP of the cluster. The goal is to transfer some files to both nodes.  So when I run :  scp -r /tmp/files CLUST_VIP  ssh CLUST_VIP <<EOF          NODE01_CHECK=`cat /etc/hosts | grep -w "node01" | awk '{print $1}'`         NODE02_CHECK=`cat /etc/hosts | grep -w "node02" | awk '{print $1}'`          IS_NODE1=`ifconfig -a | grep -w $NODE01_CHECK`         IS_NODE2=`ifconfig -a | grep -w $NODE02_CHECK`          if [[ ! -z $IS_NODE1 ]]; then                scp -r /tmp/files node02         fi          if [[ ! -z $IS_NODE2 ]]; then                scp -r /tmp/files node01         fi    EOF   However, now while running the same commands in a ssh block, I get the following messages :  Usage: grep [OPTION]... PATTERN [FILE]... Try 'grep --help' for more information. Usage: grep [OPTION]... PATTERN [FILE]... Try 'grep --help' for more information. Pseudo-terminal will not be allocated because stdin is not a terminal.   I have also tried using ssh -t and that removed the above errors regarding grep, but the environment variables do not seem to work.   Is there a way to use environment variables over a ssh block?


Hi all, I have found a publication using this permille sign with Times New Roman font. I have tried the textcomp \textperthousand and wasysym \permil commands but it does not yield this symbol. This one extends below the character line. Does anyone know of it? Also, I pasted the character into Word and it gives me an ampersand (&) (position 7 on most character maps), with font name as AdvPSMPE7. Any help or tip will be greatly appreciated.


What does “Intended for distribution with a new PC” mean on an OEM Windows 7 Home Premium CD?

I just bought a new gaming PC and it came with a Windows 7 Home Premium CD but it says on the top of the disk “Intended for distribution with a new PC.” Would I be able to use this disk on my other PC to make them Windows 7 from Windows 8?


Density of $H^1_0(\mathbb{R}^n)$ in $H^1(\mathbb{R}^n)$

$H^1_0(\mathbb{R}^n)$ is defined as the space of all functions in the first Sobolev space $H^1(\mathbb{R}^n)$ that are compactly supported. My question is: is $H^1_0(\mathbb{R}^n)$ dense in $H^1(\mathbb{R}^n)$? Thanks!


Editing others' posts - general etiquette

I just crossed 2K reps in SO and hence gained edit access to others' posts. Straightaway I edited a couple of posts to correct spelling mistakes and code errors (and to test my 'editing powers', of course). I am a little reluctant about editing posts for reasons that are not as straightforward as these ones though. Now, I read that it's okay to "Clarify meaning without changing it" but it also says "Always respect the original author". I just changed the title of  to clarify it's meaning better. Could someone check that and tell me whether that falls in the "clarifying the meaning" side or "offending the author" side of the wall? Of course, offending is subjective and varies from person to person - I'm looking for a general idea (and a second opinion on my first nontrivial edit, I guess).


Extending Homomorphism into Algebraically Closed Field

If we are given a homomorphism $g$ between a field $k$ and an algebraically closed field $\Omega$, and a field $k'$ which is a finite algebraic extension of $k$, how do we extend $g$ to a homomorphism $g'$ from $k'$ to $\Omega$?


Give the labels to midpoints of a triangle

MWE:  \documentclass[11pt,a4paper]{article} \usepackage{blindtext} \usepackage{tikz} \usepackage{tkz-euclide} \usetkzobj{all} \usepackage{color}  \begin{document} \begin{center}  \begin{tikzpicture} \tkzDefPoint(0,0){B} \tkzDefPoint(6,0){C} \tkzDefPoint(3,5){A}  \tkzDrawSegment(A,B) \tkzDrawSegment(B,C) \tkzDrawSegment(C,A)  \tkzDefMidPoint(A,B) \tkzGetPoint{D}  \tkzDefMidPoint(B,C) \tkzGetPoint{E}  \tkzDefMidPoint(C,A) \tkzGetPoint{F}  \tkzDefPoint[label={[align=left]above:$A(a,b)$},xshift=00mm](3,5){A} \tkzDefPoint[label={[align=right]left:$B(c,d)$},xshift=00mm](0,0){B} \tkzDefPoint[label={[align=left]right:$C(e,f)$},xshift=00mm](6,0){C}  \tkzLabelPoints[left](D) \tkzLabelPoints[right,below](E) \tkzLabelPoints[right](F)  \tkzDrawSegment(D,E) \tkzDrawSegment(E,F) \tkzDrawSegment(D,F) \end{tikzpicture} \end{center} \end{document}   Question: How can i give the labels (x1,y1), (x2,y2) and (x3,y3) to points D, E and F respectively.


Earth man sent by superior to distant empire, dueling, caste by height and strength, honorary military post

An Earth man is picked (or sent by his boss/superior) on a one way trip to a distant empire (their emperor had some mad daydream visions, which everyone chose to ignore, for fear of being seen as admitting the emperor's sickness).   The dominant class's main trait was their height and enhanced capabilities (velocity, strength, intelligence).  The nobleman/tall aliens duel often (using some kind of rings??) The Earthling is given a military honorary post (if I'm not mixing my stories). In time the Earthling climbs the nobleman value ladder and uncovers a threat to the emperor and is rewarded with his return back to Earth.  He returns with a female nobleman love interest (which I believe it was less tall than the other members of the ruling class being perceived because of that as inferior by them).


I'm trying to create a charger that knows how to switch between OTG and charging mode. The OTG side is working, and my Samsung S4 goes into charging mode. However, charging is really slow. It even loses charge, even with the charging indicator on.  There are two things that do concern me about the schematic I came up with:   A diode is used on the Vbus line, causing my 5V supply to become a 4.3V supply. However, current is coming back as it should, at 760mA I did not follow the S4 charging specification, shorting the data lines, adding a 10k resistor, and grounding the connection   I placed my order of 15 PCBs, and cannot exactly place a new order with new fixes. What's a good workaround for my current situation?   Some things I looked up due to the current situation:   Samsung S4 charging schematic:  Maxim's "Charging Batteries Using USB Power":      Edit 2/5/15:  I modified my circuit a little bit, so that my attachment does not need to worry with the charging specifications of different devices.  Would it work if I:   Used a switching regulator to raise the voltage up from 4.3v to 5.0v rated for 1.5mA, and Used a USB multiplexer so that my circuit can support different charging specifications, while still fully functional for USB-OTG devices? I have attached a schematic for reference:     The chips I used were:   USB Multiplexer:  Switching Regulator 5V1.5A:  Solid State Relay: $file/CPC1017N.pdf


Why are there maximum level caps for race in S&W?

We had an incredibly fun time with our first Swords & Wizardry session and are wondering why non-human character races have a cap for maximum level.  For instance, in the core rules:     Dwarven player characters must be Fighters or Fighter-Thieves. Multi-classed Fighter-Thieves are limited to 6th level as Fighters, and may not advance beyond this point. (For more information on multi-classed Characters, see below.) A Dwarf who is purely a Fighter may advance beyond 6th level only if the warrior has Strength of 17 (maximum 7th level) or 18 (maximum 8th level).   Could anyone enlighten me on the reasons for these caps?


I have trouble interpreting logistic regressions. And reading through several materials just confused me even more. Perhaps an example along with my course of thinking might clarify - what exactly I'm getting wrong.  Say, we have a data set for any (generic) product sales, lets make it cars for sake of example (data is completely made up, so results might as well lack any logic). We have a sample of people which are car owners where some own particular car and the rest have any sort of other car. Goal is to estimate probabilities of selling this particular car to some potential client with given set of parameters or put in other words - try to make artificial segmentation of market by ranking these segments by sales probability. E.g. We'll define 2 parameters - age of client and age of car. And lets make it all categorical - we'll define 3 client age groups and 3 car age groups.   car: 1 0 client_age: [under 30] [31 - 40] [over 41] car_age: [under 2] [2 - 5] [over 5]   So, regression would look like car ~ client_age + car_age  And the output:  Intercept: -0.8 client_age[31 - 40]: 0.5 client_age[over 41]: -0.6 car_age[2 - 5]: 0.2 car_age[over 5]: -0.9   With all coefficients being significant at 95%.  So.. now the course of thinking. The general probability of buying a particular car would simply be the ratio of car == 1 to the size of sample. Lets make it 3%. And as I understand it - logistic regression for categorical variables shows improvement in odds (exponent of coefficient) over the baseline. e.g. client_age[31 - 40] would have exp(0.5) or 1.648 or 65% more likely to own this particular car over client_age[21 - 30]. With everything else held constant. Similarly client_age[over 41] would have exp(-0.6) or 0.54881 or 45% less likely to own this car over client_age[21 - 30]. Same applies to car age.  So, my list of questions:    What is the role/interpretation of intercept?  Would it be possible to get all combinations of categorical values and rank them by probability relative to average 3% probability of buying the car? Is there a point in using logistic regression in this particular example? By that I mean - estimating logistic regression only with  categorical variables when I can simply calculate probability for every particular subset of general data set? How would these results compare?


I am very new to Ubuntu and trying to install some soundfonts. One of them is in .rar. Do any of you know a way to open this type of fiel and make it operational?  Thanks,  Martin


Is there a way to in GIMP to apply a color layout to an image?   For example this image has a blue color laid out on it. How can I do something similar to another image?


Dynamic insertion is not working in regular expression

I have this function  function validateUsername(str,minL,maxL){// i'm passing validateUsername("asdf_1",2,8) var exp=new RegExp(/^[a-z0-9_-]\w{"+minL+","+maxL+"}$/); switch(exp.test(str)){     case true: return true;     case false: return false;   } }   I want to insert minimum Length and maximum length dynamically, But if above code used,its giving me false whether it should accept the string as true.  can anyone tell me, what should i use rather "+variable+" to insert the value dynamically.  Thanks in advance.


"{Motion}" Data tag where the player is facing

How can i summon an entity and shoot it where the player is facing.  Like shooting an arrow in front of me.


Visiting two Schengen countries, coming back home in between, do I apply for single-entry or multiple-entry visa?

I am a resident of Turkey and I will go to Austria for 6 days beginning of June and then I will come back to Turkey. After staying 10 days I will go to Italy for 11 days at the end of June. Do I need two single-entry visa, or a multiple-entry visa, and which country do I apply to? (My first destination is Austria but I will stay more in Italy)