I need to find the limit, not sure what to do. $\lim_{x \to \infty} \sqrt{x^2 +ax} - \sqrt{x^2 +bx}$  I am pretty sure I have to divide by the largest degree which is x^2 but that gets me some weird numbers that don't seem to help.


What do the red values mean on the distance scale of a lens?

Take this  I have for example, it has red values on the distance scale (not sure what do you call it exactly) next to the focus ring. What does these values mean?


Internet connection lost when I close fiddler

I have installed fiddler on my local machine and when it's working for a long time it uses a lot of RAM.  I have internet when I'm using fiddler but when I close it, I lose my internet connection.  How do I switch off fiddler properly so that I don't lose my internet connection?


I am trying to load Ubuntu 16.04.03 onto my old laptop (so old, it is running Vista). I downloaded the program and put it onto a usb memory stick. I assume it has everything I need, all I can see is the .iso part. I cannot get the program to run. When I click the .iso, it wants to burn a disk, which I don't want to do. I restarted, pressing f12 key, but computer just starts normally. I am not computer savvy at all and need a simple explanation of what I am doing wrong and what I need to do. Thanks, in advance, for any help.


Why don't cell phones pick up music in phone calls?

Why is it that a listener on a cell phone cannot hear music on the other end?  For example, the source phone is located either in a car with music being played, or is at a concert.  The listener hears some notes, but for the most part the music is garbled and rarely is distinguishable what is being played.  I figured it has something to do with distortion, the size of the pickup mic, or the range of the pickup mic, but don't know.


Speed of a current passing through a wire

The wire is at 50hz, and is an aluminum alloy (AAAC 1120). Resistance in the wire is at 0.0897 ohm/km. So for a length of conductor 135km long, the resultant resistance will be 12.1095 ohm. It's AC current at about 220 KV. Other data about the wire can be found . The line will be carrying roughly 15 MW of current.   How fast (in any measurement, but in an actual number) would the current move through the wire? I know about electron drift already, what I need to know is how fast it would travel through a wire with those specs, so if a pulse starts/stops how long it takes for this change to reach the other point 135 km downstream.   Edit: have checked possible duplicates, and while they do cover the same matter, i'm looking for a number or a fraction. While I know it's a fairly high portion of the speed of light, it's not an actual number. Some say 2/3, some say 1/10, some say 8/10, and when you deal with almost 300000km/s it's a large difference. They all say it depends on the wire, and aluminum alloy wire for large amounts of current is no doubt very different to standard copper.


Cost function of neural network is non-convex?

The  of neural network is $J(W,b)$, and it is claimed to be non-convex. I don't quite understand why it's that way, since as I see that it's quite similar to the cost function of logistic regression, right?  If it is non-convex, so the 2nd order derivative $\frac{\partial J}{\partial W} < 0$, right?  UPDATE  Thanks to the answers below as well as @gung's comment, I got your point, if there's no hidden layers at all, it's convex, just like logistic regression. But if there's hidden layers, by permuting the nodes in the hidden layers as well as the weights in subsequent connections, we could have multiple solutions of the weights resulting to the same loss.   Now more questions,   1) There're multiple local minima, and some of them should be of the same value, since they're corresponding to some nodes and weights permutations, right?  2) If the nodes and weights won't be permuted at all, then it's convex, right? And the minima will be the global minima. If so, the answer to 1) is, all those local minima will be of the same value, correct?


How to tell Google that each subfolder is a different site? Otherwise, Google appends the main site's name to every other subfolder

One of our Korean clients (who would like to remain unamed) has a problem with their section of their website (subfolder). They are part of an international organization. Let's call them "Foobar" for our purposes.  The setup  www.foobar.com (redirects to country site ie. www.foobar.com/usa/ if IP is detected from USA)  www.foobar.com/usa/ title tag shows <title>Foobar USA</title>  www.foobar.com/korea/ title tag shows <title>Foobar Korea</title>  www.foobar.com/japan/ title tag shows <title>Foobar Japan</title>  www.foobar.com/international/en/ title tag shows <title>Foobar International</title>  The problem  In Google's SERP, when searching "foobar korea" (for example), their pages under www.foobar.com/korea/ show up in search results with the Foobar USA appended to the titles of all countries' subfolder pages in the SERP (ie. Lorem Ipsum - Foobar Korea - Foobar USA instead of the original <title>Lorem Ipsum - Foobar Korea</title>). We don't mind the rewrite. Our problem is how do we tell Google that this subfolder belongs to Foobar Korea and not Foobar USA?  From our own experience, after Google realizes that the organization name already appears in the title tag, they don't append it again.  This problem also appears in other country sites like Japan, China, etc.  It seems like Google is convinced that the entire domain is Foobar USA. Since Googlebot , when the crawler tries to get the root domain www.foobar.com, it gets 301 redirected to www.foobar.com/usa/ where it finds <title>Foobar USA</title> and this is exactly what is appended to every subfolder page title where it doesn't exist.  Our failed attempts  We have tried adding structured data to the HTML pages with the name Foobar Korea, but that had no effect.  We registered the property separately in Google Search Console, but that has no effect.  We also have registered the www.foobar.com/korea/ as a Google My Business with the name Foobar Korea.  Are there any other ways to let Google know that these are separate sites and not to use the same title for all subfolders?  Alternative solutions   From our own experience with another client, we know that if we change the main site www.foobar.com/usa/ to be just <title>Foobar</title> (essentially letting Google think that it is just Foobar and not Foobar USA), Google will append just Foobar to all subfolder page titles if that doesn't already exist in the title. As @closetnoc mentioned in the comments, we can also try changing the title length of the main page from <title>Foobar Korea</title> to something like <title>Doing more foo than bar - Foobar Korea</title> to discourage Google from appending the incorrect site name. From our experience also, this works, but is seems more like hiding the problem instead of fixing the problem.   The best solution is to signal to Google that each subfolder is a different site.  Just to be clear: This issue is not about rewriting the whole title in SERP. This issue is about Google appending the incorrect organization name to the title. The question is asking how to let Google know that this subfolder is a different organization.  EDIT: November 27th  It's finally fixed. See


How to apply and get schengen visa after it has been rejected

I had posted a question here when my schengen visa was rejected once. I applied the second time and I got the visa. So I decided to post my experience and also share what I did right the second time to get my Schengen visa. I hope it helps some one who will be in my situation. If there is any other ways to share my experience kindly let me know. Cheers.


Doubt regarding a limit which is related to MVT

Let the function $f(x)$ be differentiable  and $f'(x)$ be continuous in $\left(-\infty,\infty \right)$ with $f'(2)=14$ then evaluate the limit  $$\lim_{x\to 0}\frac{f(2+\sin x)-f(2+x\cos x)}{x-\sin x}$$  My attempt:  $\lim_{x\to 0}\frac{f(2+\sin x)-f(2+x\cos x)}{x-\sin x}$  $\lim_{x\to 0}\left(\frac{f(2+\sin x)-f(2+x\cos x)}{\sin x-x\cos x}\right)$ $\frac{\sin x-x\cos x}{x-\sin x}$$=\left(f'(2)\right)(2)=28$  Is the method used here correct


Selecting points within polygon and updating attributes using ArcPy?

I have two feature classes, a polygon of sales areas for a city, and point layer of addresses. I want to select the addresses based on the sales area they are in and update their attribute table to show the sales area. I have searched python+point+in+polygon for other posts and I know how to select the polygons but I can't figure out how to populate the address points.   I found the following script that works but takes almost two hours to run.  import arcpy import os  # Allow overwrite  arcpy.env.overwriteOutput = True  # Script user input parameters polygonLayer = arcpy.GetParameter(0) pointLayer = arcpy.GetParameter(1) workspace = arcpy.GetParameter(2) copyField = = arcpy.GetParameterAsText (3)   # Add new field to target feature class  fieldList = arcpy.ListFields(pointLayer) fieldNameList = [] for field in fieldList:    fieldNameList.append(field.name) fieldType = arcpy.ListFields(polygonLayer,copyField)[0].type if not copyField in fieldNameList:     arcpy.AddField_management(pointLayer, copyField, fieldType)  arcpy.MakeFeatureLayer_management(polygonLayer, "PolygonLayer")  pntCursor = arcpy.UpdateCursor(pointLayer) for pnt in pntCursor:     rowID = pnt.OBJECTID     arcpy.MakeFeatureLayer_management(pointLayer, "PointLayer", '"OBJECTID" = ' + str(rowID))      # Polygon selection based on CONTAINS selection method     arcpy.SelectLayerByLocation_management("PolygonLayer", "CONTAINS", "PointLayer")      # Copy field values from polygon to point layer         polyCursor = arcpy.SearchCursor("PolygonLayer")             for poly in polyCursor:         pnt.setValue(copyField, poly.getValue(copyField))         pntCursor.updateRow(pnt)      arcpy.Delete_management("PointLayer")          del pntCursor, polyCursor, pnt, poly   I don't think I need to create a new field so I have simplified my script too:  # Import arcpy module import arcpy import os  # Allow overwrite  arcpy.env.overwriteOutput = True  # Script user input parameters polygonLayer = arcpy.GetParameter(0) pointLayer = arcpy.GetParameter(1) workspace = arcpy.GetParameter(2) fsaPoly = arcpy.GetParameterAsText (3) #FSA in FSA_Boundaries fsaPnt =  arcpy.GetParameterAsText (4) #FSA in Addresses   # Select all Address in FSA     polyCursor = arcpy.SearchCursor("PolygonLayer")      for poly in polyCursor: # Select based on CONTAINS      arcpy.SelectLayerByLocation_management(poly, "CONTAINS", "PointLayer")  # Add FSA to Address         pntCursor = arcpy.UpdateCursor("pointLayer")               for pnt in pointCursor:             pnt.setValue(fsaPnt, fsaPoly)             pntCursor.updateRow(pnt)   del pntCursor, polyCursor, pnt, poly   I know my update cursor is wrong but i'm stuck on how to update one feature class using information selected from the other.   I know I can do this manually but I need to do it for multiple cities so I would like to automate the process.   I am using Arc 10.2.2 to run my python script.


What is the best way to create partially extracted photos?

This is from a magazine but I was just wondering how this effect is done please see pink arrows showing areas of image that extends beyond where the background has been cropped. So its kind of like a partial clipping path.   Would it A) have been set up in photoshop first with a saved clipping path then saved as a tiff or psd or something then placed into indesign. (this would mean knowing where and exactly how much the image needed to be cropped down by)  OR B) Place the original image into indesign a create a clipping path for just the top of the image and around the tops of their heads/side of the broom as in the other image. So this can be done on the fly but with hard edges because you can't really soften edges for hair etc in idesign can you?  OR C? something i haven't thought of yet!   This is kind of a 2 part question!  My other question is related to all the images for mags etc in general like this - what is the industry standards for saving them - would it be jpgs? or tiffs/pngs that support transparency (especially for the product shots).  Are the cut outs done in photoshop then saved as layered files with the clipping path or flattened down then saved etc?  Thank you!!!!  :)


How to make only my first letter of my first paragraph Drop Cap without changing all next paragraphs with drop caps?

I am struggling with Drop Caps and character styles. When I try to make my 1st letter of my 1st paragraph in my body text style Drop Cap, all other paragraphs a beginning with Drop Cap. How can I do it only for the 1st letter, maybe with character and nested styles?


Can the ARRAY MODIFIER make a mesh multiply along a side of a round object? Instead of it duplicating vertically or horizontally?


Oscillation in number of deaths by coronavirus

Looking the graphs that report the number of deaths by coronavirus in worldometer, I have noticed that for many countries there is a clear oscillation with a one week period. See for example the graph for the UK and the US:   Why do you think this is happening? It seems to me that for some reason, the number of deaths is under-reported during the weekends.


It has no questions and seems awfully specific.  It's surely on-topic for other sites in the network, but yet it seems to publicly exist.


Value shrink while converting Double to Bigdecimal

My problem while I am converting Double to BigDecimal I am loosing original value. My requirement like input would be  like Double val = 10435383974769502920d and want to convert like 10435.383974769502920 but getting below output. I have tried with Double BigDecimal..but no success  Double val = 10435383974769502920d; System.out.println(BigDecimal.valueOf(val).movePointLeft(15));  output : 10435.383974769502


Simulating draws from a Uniform Distribution using draws from a Normal Distribution

I recently purchased a  in which one of the probability questions was as follows:     Given draws from a normal distribution with known parameters, how can you simulate draws from a uniform distribution?   My original thought process was that, for a discrete random variable, we could break the normal distribution into K unique subsections where each subsection has an equal area under the normal curve. Then we could determine which of K values the variable takes by recognizing which area of the normal curve the variable ends up falling into.   But this would only work for discrete random variables. I did some research into how we might do the same for continuous random variables, but unfortunately I could only find techniques like inverse transform sampling that would use as input a uniform random variable, and could output random variables from some other distribution. I was thinking that perhaps we could do this process in reverse to get uniform random variables?  I also thought about possibly using the Normal random variables as inputs into a linear congruential generator, but I'm not sure if this would work.  Any thoughts on how I might approach this question?


How do I create a nice-looking DMG for Mac OS X using command-line tools?

I need to create a nice installer for a Mac application. I want it to be a disk image (DMG), with a predefined size, layout and background image.  I need to do this programmatically in a script, to be integrated in an existing build system (more of a pack system really, since it only create installers. The builds are done separately).   I already have the DMG creation done using "hdiutil", what I haven't found out yet is how to make an icon layout and specify a background bitmap.


If I use film from the 1980s that was put into the freezer ever since it was bought by my great grandfather, will it still work?


Print all layers as thumbnails with their names on one page

I want to print all layers preview on one page with the names. I 'm looking for a .atn action or other simple way to do it


Why can I put my hand through sand but not a table?

I've read in books that one can't put one's hand through a table because the table offers a "Normal Reaction" to the hand. And it is also stated that this force is electromagnetic in nature. But what is this force? Can it be explained using classical electromagnetism "in terms of something I'm more familiar with"?   Moreover, if it is this force that stops my hand from going through the table, why is it that certain other solid substances, like sand, don't produce the same result?   Also, is there any limit to this Normal reaction? I mean on pushing too hard my hand might go through the table. Is there any upper limit to this force?


Android get String in Fragment using custom class

Learning Android and Java.  I have lot of strings and tedious to type long methods chain so decided to create a class so can use on multiple fragments and activities.  This class method should allows to get string by it's name. For instance   Instead of using this code in fragment  getResources().getString(R.string.string_name);   I want result using the class method  utils.getStringItem("string_name");   Java Class  import android.content.Context;  public class Utils {     Context context;     String  resource;      public Utils(Context context) {         this.context = context;     }      public String getStringItem(String resource) {         String packageName = context.getPackageName();         int    resId       = context.getResources().getIdentifier(resource, "string", packageName);         return context.getString(resId);     } }   Fragment Class  import android.os.Bundle; import android.support.annotation.NonNull; import android.support.v4.app.Fragment; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup;  import java.util.ArrayList;   /**  * A simple {@link Fragment} subclass.  */ public class PlacesFragment extends Fragment {      ArrayList<Place>           mPlaces;     RecyclerView               mRecyclerView;     RecyclerView.LayoutManager mLayoutManager;     RecyclerView.Adapter       mAdapter;     Utils                      utils = new Utils(getActivity());       public PlacesFragment() {         // Required empty public constructor     }       @Override     public View onCreateView(             @NonNull LayoutInflater inflater, ViewGroup container,             Bundle savedInstanceState     ) {          View rootView = inflater.inflate(R.layout.fragment_places, container, false);          mRecyclerView = rootView.findViewById(R.id.recyclerView);          mPlaces = new ArrayList<>();          mPlaces.add(new Place(                 utils.getStringItem("string_name"),                 "content text goes here.",                 R.drawable.img.cdd,                 4.0f         ));          mRecyclerView.setHasFixedSize(true);         mLayoutManager = new LinearLayoutManager(getActivity());         mAdapter = new PlacesAdapter(mPlaces);         mRecyclerView.setLayoutManager(mLayoutManager);         mRecyclerView.setAdapter(mAdapter);          return rootView;      }  }   This is giving me error and app is getting crash on startup.  Error Message  java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference         at com.codepaints.myapp.Utils.getStringItem(Utils.java:14)         at com.codepaints.myapp.PlacesFragment.onCreateView(PlacesFragment.java:48)


How do you handle aspect ratio differences with Unity 2D?

I've gotten a lot of answers to this question, but they are all generic and generally not very useful.  None of the tutorials talk about aspect ratio and dealing with mobile devices and there are a zillion ways to do it, all seem to have gotcha's and flaws.  I really would love to know what successful games have used to handle different aspect ratios on iOS and Android without making a zillion different sized assets.  I am strictly speaking mobile, not desktop, specifically with Unity and I don't care about the UI, I only care about the gameplay canvas.  Issues I have in mind is when there are key things that have to be in certain places and cannot fall off the screen.  Using black bars on top or bottom is unacceptable these days.


I'm working on a rather tough question (well, at least for myself):     Show that no commutative group of composite (or infinite) order is simple.   Any ideas on how I should approach this? All I know is that groups that contain no proper normal subgroups are simple groups. How can I use this to generalize it to any commutative group? Any hints/suggestions are welcome, since that is all I am able to come up with, at the moment at least.


How to create a very big photo (like for a billboard)

So I'm designing a CD cover for my friends band. And I will have to use a photo of them for that cover. How am I supposed to create it so that it won't pixelize if they want to use that for a big advertisement (like a billboard or something simmilar). Sorry for my english, it's not my native lanugage :)


Prove by induction that if $G$ is a complete graph, which has n vertices, then the network $G$ has $n(n − 1)/2$ edges.  How do we go about induction with networks?


Show that $\pm 1$ are the only eigenvalues of the linear operator $f$ as the transpose of a matrix

Let $V$ be the vector space of $n\times n$ matrices over $K$ under addition and let the linear operator $f$ be given by $f(A)=A^{T}$, where $A^T$ denotes the transpose of matrix $A$.  Show that $\pm 1$ are the only eigenvalues of $f$.  Suppose the characteristic of $K$ is not $2$. What are the dimensions of the eigenspaces $E(1)$ and $E(-1)$?    Eigenvalues are found from equation: $f(v)=\lambda v$, therefore we have $v^T=\lambda v$, I don't understand how this shows $\lambda =\pm 1$. I know that $\dim E(1)+\dim E(2)=n$ would this suffice for the second part?


Connot save link to secondary drive on desktop 19.04

Until 19.04 i had a link to my secondary drive located on the desktop, now there seems to be no way to save such a link.


I have two figures, 1 and 2. Figure 1 should be placed on top, so a \begin{figure}[t] is the way to go. In the syntax, figure 2 is loaded just after the first one with a \begin{figure}[h] command, so that both figures are placed just below/above each other. But what I get is that a text line from the previous page is forced in between the images. Also [!h] for the second figure does not help. I am sure this problem was already discussed and solved, thus no MWE here. I could not find the solution yet. Any help?


Is there any reason to believe that any measure of loudness (e.g. sound pressure) might have an upper boundary, similar to upper limit (c) of the speed of mass?


How can I prove $\arctan\ x \lt x$ for x $> 0$?  I have tried different stuff without success.


Relation between different definitions of degree in complex geometry

Consider a holomoprhic map from a Riemann surface $$ f: \Sigma_g \to \mathbb{CP}^n. $$ This is given by some homogeneous polynomials in some variables.  How can we show that the homogeneous degree $d$ of these polynomials coincides with the definition of degree from fundamental homology class, namely $d = f_* ([\Sigma_g]) \in H_2(\mathbb{CP}^n;\mathbb{Z})$?


"How to ask" side panel floats over footer when asking a question

On all the Stack Exchange sites, when asking a question, the sidebar block which explains formatting floats over the footer.    It is probably related with .


I've been trying to figure out how I can completely backup my PostgreSQL database. I have not seen any resource that explains how to do a complete backup.  I am aware of the pg_dump and pg_dumpall utilities.  The syntax is simple, but the details are not very clear.   It appears that pg_dump only backs "some" tables for a particular db and none of any type of configuration info. I am guessing that things like permissions and many other things are not backed up. So in the event of a total re-install of a PostgreSQL db, the dump backup would not work without significant manual configuration and setup.  pg_dumpall backs-up some more things than pg_dump but again no clear info is provided in the Postgres docs about what else is left out from the backup dump and needs to be backed-up in addition to.  I need to back up all PostgreSQL configuration info, tables, indexes, permissions, schemes, etc.  In the event of a complete catastrophe, provided that I reinstall the same version of PostgreSQL I should not have to reconfigure anything.  I don't care for example if the indexes are re-built from scratch of if the backup already stores the indexes... stuff like this doesn't matter to me... I just want the db to be in the exact same state after the restore as it was at time of backup.  I'd appreciate if someone could list the things needed to be backed-up in order to achieve a complete backup.  Of course, I'd appreciate if you would recommend some tools along with some procedure for the various things on the list.  Please explain which items on the grand list the tool & procedure you recommend covers.


Characterizing the field of fractions of $\mathbb Q[x,y]/(x^2+y^2-1)$.

Let $A = \mathbb Q [x, y] / (x ^ 2 + y ^ 2 - 1)$ and note that $A$ is a domain. How to show that $\operatorname{Quot} (A)$ (or $\operatorname{Frac} (A)$, i.e. the "field of fractions") is isomorphic to $\mathbb Q (t)$?   I know that the parametrization of the classic circle is $$t\mapsto \left(\frac{1 - t ^ 2}{ 1 + t ^ 2}, \frac{2t}{1 + t ^ 2}\right)$$


Efficiently storing query-affecting settings in a database

I want to know how to efficiently store query-affecting settings in a large analytical database (MS SQL Server). By efficiency I mean no hardcode (1) and fast/optimal query processing (2).  My example  I've got a massive table of sales orders. Let's simplify it to two columns:  SalesOrder  OrderID      int      Primary Key  OrderDate    date   I need to retrieve the list of orders for the last X days and this X should be configurable. That's why I introduce a table of settings where I define it:  Admin_Configuration  SettingName   (PK)|      SettingValue  ------------------|------------------  DaysBack          |          30      It allows me not to hardcode this "30" in query definitions. Then I would run queries like:  SELECT OrderId   FROM SalesOrder as S   JOIN Admin_Configuration as A     ON A.SettingName = 'DaysBack'   WHERE [OrderDate] > DATEADD(DAY, -A.SettingValue, GETDATE());   Performance  It avoids hardcoding, but leads to a performance problem. This query runs much slower than it would've, had I simply hard-coded 30 in the WHERE clause.  My understanding is that optimizer doesn't know how large my SettingValue is and assumes the worst - that all rows would be retrieved from the SalesOrders table, thus leading to a suboptimal query plan.  Trying a scalar function yielded even worse results. I'm desperate enough to have a separate view which stores these hardcoded settings but I've been refraining from it with hopes for a better solution.  Here is the original query plan (with a join): 4 seconds elapsed   Here is the plan with subquery, as :  SELECT orderid FROM [SalesOrder] as s WHERE s.OrderDate > dateadd(DAY,    (SELECT -NumValue    FROM Admin_Configuration where SettingName = 'DaysBack'   )     , getdate())   7 seconds elapsed, slightly slower   As for the ideal performance: I just hardcoded 20, the query took 2 seconds. It needs mentioning that the Admin_Configuration table contains only 18 rows, hence it shouldn't affect performance.  SELECT OrderId   FROM SalesOrder as S   JOIN Admin_Configuration as A     ON A.SettingName = 'DaysBack'   WHERE [OrderDate] > DATEADD(DAY, -20, GETDATE());   Using parameters would mean that I'd have to replace views (that I use now) with stored procedures/table-valued functions, which is unacceptable in my case


When I pick and choose files to copy to or from a single device, Nautilus accumulates file operations in parallel:    I worry that in certain circumstances this could cause fragmentation of the destination device, or transfer slowdowns due to scattered reads on the source device and increased network connection overhead.  How can I queue these file operations instead, so that each operation starts only after the previous one has finished?


I am using the following code:  \documentclass[10pt,onecolumn,twoside,draftcls]{article} \usepackage[T1]{fontenc} \usepackage{amsmath,amssymb,amsfonts} \usepackage{amsbsy} \usepackage{placeins}  \let\Oldsection\section \renewcommand{\section}{\FloatBarrier\Oldsection} \let\Oldsubsection\subsection \renewcommand{\subsection}{\FloatBarrier\Oldsubsection} \let\Oldsubsubsection\subsubsection \renewcommand{\subsubsection}{\FloatBarrier\Oldsubsubsection}  \usepackage{datatool} \usepackage{url} \usepackage{graphicx} \usepackage{graphics} \usepackage{epstopdf} \usepackage{algorithm} \usepackage{bm} \usepackage{algorithmic} \usepackage{subfigure} \usepackage{cite} \usepackage{multirow} \usepackage{pgfplotstable,filecontents} \usepackage{ctable} \usepackage{enumitem} \usepackage{fancyhdr} \usepackage{lastpage} \usepackage[pagewise]{lineno}  \renewcommand*\familydefault{\sfdefault}   \begin{document} \listoffigures \listoftables  See Figs.~\ref{fig:1} and~\ref{fig:2} and Tables~\ref{table:1} and~\ref{table:2}.  \section{section 1} \section{section 2} \label{sec4} \begin{table}[H] \label{table:1}      \caption{table 1 caption} \end{table} \begin{figure} [H]\label{fig:1}     \caption{fig 1 caption} \end{figure}  \subsection{subsection} \begin{table}[H] \label{table:2}      \caption{table 2 caption} \end{table} \begin{figure} [H]\label{fig:2}     \caption{fig 2 caption} \end{figure} \end{document}   When I compile, I see that the table numberings are correct in the table, but wrong when I refer to them. They get the number of their section/subsection. The same thing happens for figure numberings as well:  List of Figures 1 fig 1 caption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 2 fig 2 caption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 List of Tables 1 table 1 caption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 2 table 2 caption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 See Figs. 2 and 2.1 and Tables 2 and 2.1. 1 section 1 2 section 2 Table 1: table 1 caption Figure 1: fig 1 caption 2.1 subsection Table 2: table 2 caption Figure 2: fig 2 caption 1   I need that the table numberings become independent of the section/subsection. The numbering starts at 1, and when I add a new table, it increases by 1. The same when I refer to them. I want the same thing for figure numberings as well. Can you help?    I got a comment that the label has to be placed after the caption. I did that but nothing changed. The same issue is there. So, this is not duplicate.     Edit after the second comment: I fixed it. The label has to be placed right after the caption.  What I did and did not work was placing the label after caption, but it was not right after the caption. It was after the \end{figure} or \end{table}. When I put it right after the caption, it works.


According to classical physics if we know space-time coordinates of every atom in the universe, we can predict the future. But quantum physics introduced probability throwing determinism out of question. But one of the famous explanations of Schrödinger's cat paradox, many worlds theory, says that at each instance the universe splits into many making all probabilities possible. In this sense, we can say that an event will have all the outputs possible in one or the other universe.Don't you think this is also deterministic in nature as we can exactly predict the future ( of course when all the universes taken together)?


I am trying to make a follow button - and when clicked it sends an ajax request to my backend script and if it executes it returns a value that triggers the button's text to go from "follow" to "following" - and that part works just fine. But the jquery part where I send the user data in a data-attribute "data-follow" won't toggle with "data-unfollow". It only works when you refresh the browser which means you can only click the follow button, see it and the data attribute to change to "unfollow" but if you click once more it does not work. I cant figure it out and i've done my searching at the stack.  ERROR   TypeError: $(...).attr(...) is undefined   HTML  <button id="follow" data-follow="1, username1, username2">

Follow
 </button>   JQuery  $("button[data-follow]").click(function(){      var button = $(this);     var data = $(this).attr("data-follow").split(",");     alert(data);     button.find(" > div:last-child").animate({opacity: "0"},200, function(){        $(this).animate({opacity: "1"},200);        $(this).html("Following");        var dataValue = $(this).closest("#follow").attr("data-follow");        $(this).closest("#follow").attr("data-unfollow", dataValue);        $(this).closest("#follow").removeAttr("data-follow");    });  });   $("button[data-unfollow]").click(function(){      var button = $(this);     var data = $(this).attr("data-unfollow").split(",");     alert(data)     button.find(" > div:last-child").animate({opacity: "0"},200, function(){        $(this).animate({opacity: "1"},200);        $(this).html("Follow");        var dataValue = $(this).closest("#follow").attr("data-unfollow");        $(this).closest("#follow").attr("data-follow", dataValue);        $(this).closest("#follow").removeAttr("data-unfollow");    });  });


Failing to install Zentyal failing - missing dependencies

I need to setup a Zentyal Server on my Ubunut for School, but during this process I encountered some errors:  root@nasr-kmu2:~# sudo apt install zentyal Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  zentyal : Depends: zentyal-core but it is not going to be installed            Depends: zentyal-software but it is not going to be installed E: Unable to correct problems, you have held broken packages.   Due to some recommendations on the Internet I tried the following, but nothing helped.  root@nasr-kmu2:~# sudo apt-get install -f Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. root@nasr-kmu2:~#    Any Ideas ?


Proper noun capitalisation: “The Union” or “the Union”?

When capitalising a proper noun that has a “the” prefix, should the “the” be capitalised?  Eg:     “This puts the Union at risk”   or:     “This puts The Union at risk”


I have installed nginx on my centos 7 server, now i'm going to create a server block but i wonder if it's necessary to use a non-root user?  I am following  on DigitalOcean and it states that i need a non-root user:     You will need access to a CentOS 7 server with a non-root user that has sudo privileges.   This is my private server and i will always be the only admin of it, why can't i use root user to do it?


How to add color to my table of content?

I need the contents in blue color. Meaning that heading contents a black and all the material in blue color.


Hosting medium sized files - do I need a 1000mbps connection?

I am planning on setting up a free file hosting site where users can host files up to 1GB. I was looking at some dedicated server hosts and found one in the Netherlands that offers 50TB bandwidth per month, 100mbps connection on start and upgrade to 1000mbps for a small additional monthly fee. I found another Luxembourg based provider which offers pretty much the same hardware, with unlimited bandwidth per month, but they only offer 100mbps - but they are almost half the price of the former host. Though I am always the pessimist and doubt it will be successful, I would like to be able to scale smoothly if the need arises, preferably without the need to switch hosts entirely/bring in more servers when I don't need to. I've been debating between the two for a couple of days, and for a site of this type the Luxembourg provider's unmetered monthly bandwidth is tempting, but as I said they are limited to 100mbps. I was planning on using a free CDN like Cloudtflare from the start just to speed up delivery of my static files, etc, but higher end CDNs that can accomodate large files are very expensive, and I would prefer to avoid these as long as I can, because as of now I am on an extremely restricted budget. My question is, for a site of this caliber, would having a 1000mbps connection be necessary for scaling smoothly to a large number of visitors, or is this just marketing hokum that I will never actually use to its full extent? I did some research, but most of what I could found pertained to people hosting websites like torrent trackers, forums, etc, not a site whose main function is serving files. I know most people's internet connection is nowhere close to 1000mbps or even 100mbps, but if I am serving files through a large number of connections currently I am afraid a 100mbps connection might get congested, though I know little about this so  any advice on this topic would be appreciated. Thank you.


Is it possible to redirect unbalanced braces (`{` and `}`) into a tabular column?

This question is a follow up to my :  Is it possible to use > and < to pipe opening and closing braces on each side of a cell's content? To be more specific, what I want is to define the following column:  \newcolumntype{P}{>{\leavevmode\kern-\tabcolsep\bfseries\parbox[t]{\hsize}{}X<{}}}   I want a column type that automatically embraces the cell content in a \parbox.  I enclose a short MNWE:  \documentclass[table]{article} \usepackage{lmodern, microtype, xcolor, tabularx, tabulary}  \begin{document}  \begin{tabularx}{0.5\columnwidth}{>{\raggedright\arraybackslash\leavevmode\kern-\tabcolsep\parbox[t]{\hsize}{ }X<{}}XX<{\leavevmode\kern-\tabcolsep\raggedleft\arraybackslash}}  \rowcolor{lightgray}All this testing is not so funny&test&test\\\hline testing, testing and even more testing &test&test\\ \rowcolor{lightgray}I want to write a noce table in a simple way&test&test\\ \end{tabularx}  \end{document}


I am trying to make a RESTful WPS using ZOO Project. According to the following OGC Papers  and  for WPS 2.0 and 1.0 respectively, it does seem possible to make a RESTful WPS. There is also  which seems to be a RESTful implementation of WPS.  Is there a way to make a RESTful WPS using ZOO Project? (I did not find anything about this mentioned in their documentation)


Combining the first and second law of thermodynamics we can get the following equation  $$TdS=dU-P_{ext}dV$$  First question: Is this equation applicable for irreversible processes such that that $dS≠\dfrac{dQ}{T}$?  Second question:If the system temperature $T_{sys}$ is smaller than the surrounding temperature $T_{sur}$, which temperature should we put in the equation?   I have this question because sometimes people use $T_{sur}$ instead of $T_{sys}$ (e.g. , ) but the equation is supposed to describe changes in the system.


Capacitive touchscreens are designed to react to the capacitance of a human body. To my understanding the touchscreen is measuring local distortions of the electric field.  Is there a way to influence the electric field of the touchscreen from a greater distance such as a centimeter above the screen?  What I am thinking is that creating an electrostatic charge might perhaps help, for example similar to the way an ionizer works. Unfortunately I lack the electrical knowledge to understand the implications of 'the other half of the capacitor' which is needed to excite the touchscreen.  The goal is to create a 'hover stylus' similar to the wacom digitizer (which of course works differently based on electromagnetic resonance). The stylus does not need to be practical yet, just trying to understand whether any device would excite the touchscreen from a small distance, it could contain a battery, Tesla coil, anyone?


What can I do if explorer.exe periodically reboots after installing Windows 10?

Yesterday, I installed Windows 10 on a 3-4 year old Dell PC. Today, I booted it up, and discovered an issue: periodically, explorer.exe crashes, hangs, and reboots itself to recover.  This means that about every minute, both File Explorer (though that's not all that's affected, or there would be some other posts around that answered this) and the desktop and taskbar freeze, until the process reboots to recover the situation.  On the advice of a forum thread somewhere, I've run SFC /SCANNOW, which has turned up nothing:     Windows Resource Protection did not find any integrity violations.   I've also had a look around the Net and Super User, and found nothing about this. There are a number of references to an update released in August '15 that did something similar, but that's not the issue I've got and the solutions proposed don't work.  What solutions are there for this issue?


How to recover from a Nvidia fail on Ubuntu 16.04?

I have an older Nvidia video card and my PC crashes when installing the driver for the video card in Ubuntu 16.04. When I get to the login screen but no further: after entering my password, the system went into a loop and returned always back to the login screen [with funny stripes present].   How do I fix this problem?


Is there a TeX symbol that looks like this reverse uppercase gamma?

I am reading a 1946 paper on the Dirac equation (H. Chandra, “The correspondence between the particle and the wave aspects of the meson and the photon,” Proc. R. Soc. London, Ser. A 186(1007), 502–525 (1946)) where a symbol that resembles a reverse uppercase gamma appears (see image). Is there a name for this symbol, and is there a comparable LaTeX symbol?


Java: Do-while loop 'yes or no' response

import java.io.*;  public class Page117 {      public static void main(String[] args) throws IOException     {         BufferedReader input = new BufferedReader(new InputStreamReader(System.in));         char letter;         String sentence;         int counter = 0;         char response = 'o';          do         {             System.out.print("Type a sentence: ");             sentence = input.readLine();             System.out.print("Type a character to find: ");             letter = (char) input.read();              for(int x=0;x<sentence.length();x++)             {                 if(letter==sentence.charAt(x))                 {                     counter++;                 }             }              System.out.println("Number of times " + letter + " occured is: " + counter);             System.out.print("Continue? [y/n]: ");             response = (char) input.read();          }while(response != 'n');               }         }   About the program: The user will enter a sentence.  The user will also input a character and count how many of that character occurs in the sentence.    I've come across a little problem.  How do I make it so that after the process, it allows me to input my response.  Because after I enter the character and tells me the number of occurrences, it either exits or won't allow me to input anything.    I've tried almost everything in my code.  I don't use do-while loops that much so this is kind of difficult for me. I don't use booleans that much either.


Can I ask a question about how to organize source code? And where?

I asked  a while back on Stack Overflow which pertained specifically to organizing source code of a large legacy multi-project system, which did seem a good fit for Stack Overflow. However, I have a similar question, only pertaining to a general source code organization structure. I'd like to get input on various optimal ways to organize a folder structure which supports different program languages, different solutions and systems (unrelated to each other), component imports, etc. all from within one master folder hierarchy.  For example, I develop applications using Delphi, Visual Studio, Titanium, and with support of SQL Server (scripts), and within just Delphi alone I have large systems, small stand-alone applications, projects which involve other languages (such as C# and HTML), etc.  If I were to ask such a question, I know Stack Overflow would not be legitimate. However, would this work in programmers.stackexchange?


Multivariable vs multivariate regression

I am a little unsure about the semantics in this regard, and was hoping someone could cast some light on this.  As far as I understand, multivariable is basically one dependent variable and several independent variables, whereas multivariate is when several dependent variables are included. However, in the examples I've seen this is often related to repeated measures.  Instead, let's say I have some data (independent variables), and then three dependent variables. However, they are not repeated measures. Maybe I wanted to "measure" the health of a person, e.g. this could include: weight, lung capacity, and resting heart rate - just to pick some arbitrary ones.  So basically these dependent variables might give me some insight to a persons health. If one of the independent variables are smoking for example, then this might affect all three dependent variables, but maybe other independent variables will only influence one of each.  In this case, what am I performing ? Multivariable regression, multivariate regression, a mix, or...?


I want to add or remove lis to a list in javascript. For that purpose I found that I need to add data attributes and find the item with that value.   if ($('li[data-requestId=' + requestId + ']').length == 0) {     var element = getRequestElement();     var li = document.createElement("li");     li.setAttribute("data-requestId",requestId);     li.appendChild(element);     $('#requestsUL').append(li); }   but the first line gives this error:     Syntax error, unrecognized expression:   li[data-requestId=6.22.20]


I am afraid that BBC TV has put me into a bit of a muddle.  Programs set in modern times seem to use "nowt" most often to mean "nothing," whereas programs set in Victorian and earlier periods say "naught" (pronounced like "not").  In periods between, usage of the word seems less frequent.   Perhaps nowt is simply slang or perhaps a recognized dialect?


How to put caption on top of the table with packege longtable?

I used package longtable for make table in mamy pages.  With package supertabular we have \topcaption for caption on the top of table.  I can't use \topcaption in \begin{longtable}   \end{longtable} .  Help me put caption on the top of the table.


$ mv DVWA-master /var/www/html mv: cannot move 'DVWA-master' to '/var/www/html/DVWA-master': Permission denied   How can I fix it?  I want to move a folder in /var/www/html.


I'm getting a formatting error on  which I have not encountered before. As you can see part of the code between _ is in italic, this does not happen in preview mode when editing the post.


I have an Acer Aspire computer that contains:   Intel Atom CPU 1.33 GHz x 2 2.0 GB RAM Gallium 0.4 on llvmpipe (LLVM 3.4, 128 bits) Disk 243.9 GB   I thought that Ubuntu would run faster than Windows 7, so I installed Ubuntu 14.04. The result was terrible, it runs super slow, even the animation of closing a window runs in slow motion, about 1 FPS. I know its not the best PC, but it stands on the recommended requirements and still works slow as hell.  Any ideas why it is happening, and how to fix it? I thought it was maybe due to power saving mode being on, but I can't find the way to check it.


IBM Domino and variables X-Forwarded-Proto-F5

Domino server receive requests with variable in header [X-Forwarded-Proto-F5]. I would like to do some tricks depends of value there (either redirect requests or not).  Is it possible to do redirects based of some variables in request's header using only IBM Domino server?  If no, what other options do I have?


When (and why) should you take the log of a distribution (of numbers)?

Say I have some historical data e.g., past stock prices, airline ticket price fluctuations, past financial data of the company...  Now someone (or some formula) comes along and says "let's take/use the log of the distribution" and here's where I go WHY?  Questions:   WHY should one take the log of the distribution in the first place? WHAT does the log of the distribution 'give/simplify' that the original distribution couldn't/didn't? Is the log transformation 'lossless'? I.e., when transforming to log-space and analyzing the data, do the same conclusions hold for the original distribution? How come? And lastly WHEN to take the log of the distribution? Under what conditions does one decide to do this?   I've really wanted to understand log-based distributions (for example lognormal) but I never understood the when/why aspects - i.e., the log of the distribution is a normal distribution, so what? What does that even tell and me and why bother? Hence the question!  UPDATE: As per @whuber's comment I looked at the posts and for some reason I do understand the use of log transforms and their application in linear regression, since you can draw a relation between the independent variable and the log of the dependent variable. However, my question is generic in the sense of analyzing the distribution itself - there is no relation per se that I can conclude to help understand the reason of taking logs to analyze a distribution. I hope I'm making sense :-/  In regression analysis you do have constraints on the type/fit/distribution of the data and you can transform it and define a relation between the independent and (not transformed) dependent variable. But when/why would one do that for a distribution in isolation where constraints of type/fit/distribution are not necessarily applicable in a framework (like regression). I hope the clarification makes things more clear than confusing :)  This question deserves a clear answer as to "WHY and WHEN"


Let $ \pi(x) $ be the prime counting function: the number of numbers $\leq x$ with just one prime factor.  Let $ \pi_n(x) $ count the number of numbers $\leq x$ with exactly $n$ prime factors (counted with multiplicity).  When plotting the values for different $n$ up to large $x$, it seems that for every $n$ there will be a point from where on $ \pi_n(x) > \pi(x) $. I'm conflicted about my intuition on this. On one hand, it seem's to be plausible because numbers with more and more prime factors become more and more common. On the other hand, numbers with, say, 100 prime factors seem like they are so rare that they will be always less than $ \approx \frac{x}{\log x}$  My question is: Will there at some point be more numbers with $n$ factors than prime numbers for any $n$?  Bonus question for positive answer: Is there a way to find the point this happens for a given $n$ other than the naive approach?  Bonus question for negative answer: What is the largest $n$ which surpasses the prime counting function?   $\pi_n(x)$ for $x \lt 100$, at $\approx 25$ there are more numbers with $2$ factors than prime numbers.   $\pi_n(x)$ for $x \lt 100.000$, at $\approx 40000$ there are more numbers with $5$ factors than prime numbers.   $\pi_n(x)$ for $x \lt 10.000.000$, at $\approx 4.000.000$ there are more numbers with $6$ factors than prime numbers.  (Please ignore the 'Divisors' in the chart legend, it should read 'Factors')


How to make unlimited sheet of paper in LaTeX?

How can I make LaTeX to do the unlimited (just as big, as the content) sheet of paper?  So everything goes right on the one page.


Is it wrong to initialize a virtual Property in the constructor?

Is it wrong to initialize a virtual property in the constructor? It just does not feel right because if you override the property in a derived class the property will first be initialized with the value from the base class constructor then it will be assigned again by the derived class constructor. is there an alternative for doing this? I'm talking about something like this  internal class B1 {     public B1()     {         Ti = "Hello";     }      public virtual string Ti { get; set; } }  internal class B2 : B1 {     public B2()     {         Ti = "HelloKitty";     }      public override string Ti { get; set; } //<--"Hello" will be assigned first then "HelloKitty" will be assigned }  internal class Program {     private static void Main(string[] args)     {         var b2 = new B2();         Console.WriteLine(b2.Ti);         Process.GetCurrentProcess().WaitForExit();     } }   UPDATE 1: As recommended by @AK_  internal class Bb1 {     private string _ti;      public Bb1()     {         _ti = "Hello";     }      public virtual string Ti     {         get { return _ti; }         set { _ti = value; }     } }  internal sealed class Bb2 : Bb1 {     public Bb2()     {         Ti = "HelloKitty";     }      public override string Ti { get; set; } }   the variable _ti in the base class is initialized by "Hello".   what if instead of string type I'm using type which explicitly needs to be exposed?


I'm trying to determine which battery to use for my application. I'll be using a class 1 or class 2 Bluetooth (not low energy) module, which requires about ~50/60mA of RX/TX current. In addition, there is a microcontroller and some low power analog IC's. I require a continuous stream of data from the device for 1-10 minutes.  Are coin cells completely out of the question? I'm talking about CR2450 Lithium-ions. I don't really mind if they don't last long, but will they work? Because in my application, size is key, and battery life is a trade off that I'm willing to make.


Java 8: DecimalFormat with HALF_UP rounding mode

The following test fails:  @Test public void testRound() throws Exception {     double v = 0.015d;     DecimalFormat format = new DecimalFormat("#.##", new DecimalFormatSymbols(Locale.US));     format.setRoundingMode(RoundingMode.HALF_UP);     assertEquals("0.02", format.format(v)); }   I see that there are resolved issues for  and , but it still doesn't work for me on "jdk1.8.0_144":  junit.framework.ComparisonFailure: null  Expected :0.02 Actual   :0.01


Complex Limits of $\lim_{z\to0}\frac{1-\cos z}{z^2}$

How do I calculate the limit $$\lim_{z\to0}\frac{1-\cos z}{z^2}$$


How to get percentage in float 0 to 1 with integer values?

I need to get a float value based on percentage.  For example:  1%: 0.01 10%: 0.10 25%: 0.25 50%: 0.5  And so on.  I've tried getting a 0-100 percent value(Which works) and uploading it to a string:  String value = "0." + percent;  and parsing it as a float:  Float.parseFloat(value);  But that doesn't work. Any help is appreciated, thanks!


INDIA - Are last minute tickets cheaper at airline ticket counter vs online?

I'll be coming by road and I'm unsure of my arrival time at the airport, at least till a couple of days before the date.   The departure and arrival airports are well connected through multiple airlines and multiple flights, and I have flexibility regarding the time of departure.   Is it better to scour the booking counters of multiple airlines for a great deal on last minute departures, rather than booking something like 24 hours before ?   I'm asking for India specifically, but any help is appreciated.


Are there identities for the sum of reciprocal powers similar to $\sum\frac{1}{k^2}=\frac{\pi^2}{6}$ and $\sum\frac{1}{k^4}=\frac{\pi^4}{90}$?

I am well aware that  $$\frac{1}{1^2} + \frac{1}{2^2} + \frac{1}{3^2} + \frac{1}{4^2} + \cdots = \frac{\pi^2}{6}$$  and  $$\frac{1}{1^4} + \frac{1}{2^4} + \frac{1}{3^4} + \frac{1}{4^4} + \cdots = \frac{\pi^4}{90}$$  I'm curious. Are there other known identities like the ones above? For instance, what is the following?  $$\frac{1}{1^6} + \frac{1}{2^6} + \frac{1}{3^6} + \frac{1}{4^6} + \cdots$$  EDIT: This is not a duplicate as I'm not just interested in even powers - it would be nice to obtain insights on odd powers as well, like @Dietrich Burde has done in one of their comments.


I have just started studying elementary number theory and I really enjoyed reading Euclid’s Theorem on the infinitude of primes . When talking with a colleague that loves that area he told me that there are some other proofs of this result. Can you please post some other proofs or at least indicate where I can find them?


How to change Windows line-ending to Unix version

We have 10 PC with some version of Ubuntu and only remote access. While doing some upgrades to custom software I did not notice that the line endings in some scripts were Windows version (CR+LF) and not the Unix version (LF). So now when I want to launch the script it gives an error:   bash: /usr/local/bin/portsee: /usr/bin/python^M: bad interpreter: No such file or directory   Is there a way to change all line endings in a script from terminal. The thing is that I can not install any new software to this group of PC-s.


I am an international student in the US. I have a job interview invite from an organization in France.  I understand that I need to obtain a short-term visa from the French consulate. I was wondering what classification of visit purpose (tourism or business) I should choose from.


What are eligibility criteria for Tenacious badge?

I read about the Tenacious & Unsung Hero badges. I have 36 total answers, out of which 16 are accepted. Among these, 7 are with 0 votes.  As per the definition, I am eligible for the Tenacious badge, but I haven't been awarded it yet.  What are the hidden criteria?


How to pass 'clear' comand in terminal window before running Python code

Very beginner question, apologize if not the right forum, but here's what I'd like to do: using Visual Studio Code for Mac with Python Debug Console: Before running / debugging the Python code, I would like to pass or send the 'clear' command to the terminal so I have a clean environment to see the code run. I did search for an FAQ and didn't find one, but if it's out there, it will more than suffice. Thanks, David


How to add Data in experience builder in community?

I have added a component i.e my profile so it shows that its not supported by any data so how can i add the data over here?


I've got a GeForce 330M and CUDA 1.2 as a consequence.  But Blender supports only >=2.0.  I read this  and they say that I have to use Cuda toolkit 5.0.  BUT:   the link leads to toolkit 6.0.37  => I try with this one. When I try to install it (32 bit .run for ubuntu 13.04 (I've got 14.04)) I've got this error:      Using more to view the EULA.   Error: unsupported compiler: 4.8.2. Use --override to override this check.   Missing recommended library: libGLU.so   Missing recommended library: libXi.so   Missing recommended library: libXmu.so      Error: cannot find Toolkit in /usr/local/cuda-6.0      ===========      = Summary =      Driver:   Not Selected   Toolkit:  Installation Failed. Using unsupported Compiler.   Samples:  Cannot find Toolkit in /usr/local/cuda-6.0      Logfile is /tmp/cuda_install_3711.log   Which compiler?  Is there another solution?  thanks!  Updates:   I just realised that they write just after the link "The CUDA toolkit 5.0 (64-bit version) or newer must be installed for this."   What should I do? Install a 64 bit on a 32 bit system (it's my test external hdd) ?


Can amateurs use the retroreflector on the moon?

There is a retroreflector on the moon, placed there, I believe, by astronauts in the 1970s. I think there is at least one station (in France?) that continuously beams a laser at it to measure the distance to the moon. I assume it measures the distance by measuring the amount of time it takes the laser light to travel to the moon and back again.  Is it possible for amateur to use the reflector? How powerful a laser would be needed, and how sensitive a detector? What would be the basic setup?


Can I get back from POP!_OS to focal fossa?

After testing the Pop theme via their PPA, I made a distribution upgrade from Focal Fossa to Pop!_OS by mistake. I did not realize that installing the System76 PPA meant that the system would try to "upgrade" from Ubuntu to Pop!_OS... Is there a way to get back to Ubuntu Focal Fossa without re-installing the OS? The file /etc/apt/sources.list looks "normal": deb http://archive.ubuntu.com/ubuntu focal universe restricted multiverse main deb http://security.ubuntu.com/ubuntu/ focal-security restricted universe multiverse main deb http://archive.ubuntu.com/ubuntu focal-updates restricted universe multiverse main deb http://archive.ubuntu.com/ubuntu focal-backports restricted universe multiverse main  But there is another file in /etc/apt/preferences.d called pop-default-settings which explicitly references pop: Package: * Pin: release o=LP-PPA-system76-pop Pin-Priority: 1001  Package: * Pin: release o=LP-PPA-system76-proposed Pin-Priority: 1001


Are many traits normally distributed or not?

I was searching to learn which traits (e.g., hair color, intelligence, weight, etc) are and which are not normally distributed. In the lecture notes for some course on a university website (unfortunately I don't have the link), a college professor had stated that complex traits are normally distributed.  But then I came across an answer on Quora to someone asking what besides height and intelligence is normally distributed     A supposed statistician had replied that "Actually, nothing is described by a normal distribution.It approximately describes heights of people so long as they are all male or all female and not a mixture of East African Negros, West African Pygmies and Europeans." He went on to say that a large sample, however, with no outliers can approximate normal distribution.  So I am confused. So can anything, if the sample is large enough, approximate normal distribution?  And yet nothing is normally distributed to begin with?


Let $A$ be a commutative ring, $I$ an ideal of $A$ and $M$ an module over $A$. Is it true that $\operatorname{Ann}(M/IM) = \operatorname{Ann}(M) + I$?    One inclusion is certainly true, but I don't know about the other one. If the above statement does not hold in general, does it perhaps for finitely generated modules?


The debugfs manpage gives the impression that the command 'rdump . .' will recursively copy all files found on the specified filesystem from the debugfs cwd to the native filesystem's cwd. Instead I seem to receive a syntax error, and no copy is initiated?  These are the commands I run:  cd /path/to/transfer/destination debugfs /dev/sda1 -R rdump . .   My task is to copy the entire contents of a clean yet unmountable USB storage device to its host machine's HD. The host machine does not support the inode size used by the USB device's filesystem (256) and its software is not upgradeable, so my intention was to use debugfs to transfer the files. If anyone has any other suggestions for this task I'd be grateful.


Process to install Virtual Box Guest Additions Virtual Box

I'm running Ubuntu 12.04 Server (guest machine) on VirtualBox having Windows 7 as host machine.  Could you please tell me the whole process to install Virtual Box Guest Additions or provide me with best answer reference link !!  Thanks in advance


Trying to close out my windows at the right

these extra windows in the right hand column keep coming up. I can create more, but don't know how to get rid of them]


Show that the following matrix has positive determinant

The following is an interview question.  Show that any matrix of the form  $$\begin{pmatrix} 1 & 1/2 \\ 1/2 & 1/3\end{pmatrix}$$  $$\begin{pmatrix} 1 & 1/2 & 1/3 \\ 1/2 & 1/3 & 1/4 \\ 1/3 & 1/4 & 1/5 \end{pmatrix}$$  etc. is positive definite.  By induction, it suffices to show that they have positive determinant. But how?  Things I've considered:   Use multilinearity/row operations Factor into $A^t A$ Do the Cholesky decomposition and notice a pattern Guess the minimimal polynomial and observe that all the roots are positive   I can't seem to figure it out though. I'm looking for a solution that you could plausibly come up with in an interview  Note: I have verified for sizes up to $13\times13$ that the determinant is positive using Python, but the matrix starts getting pretty close to singular as it increases in size. (Of course, you wouldn't know that in an interview)


Unable to boot into Ubuntu 12.10 installed outside windows 8

I am using Sony vaio E series. I installed Ubuntu in one drive. But when I restarted the system it directly goes into windows without showing any options for ubuntu 12.10.I am new to Ubuntu. Please help me.  Thanks


I can't seem to figure out the difference between + and ++ relative coordinates in TikZ.   I understand ++. ++ specifies delta coordinates that are added to the last current point, the current point is then set to the new absolute current point (correct?):  \draw (0,0) -- ++(1,0) -- ++(0,1) means:  set Current Point to (0,0) add (1,0) to Current Point = (1,0) set Current Point to (1,0) add Current Point (1,0) to (0,1) = (1,1) set Current Point to (1,1)   I can't seem to figure out that + does, when I try it out it looks like the coordinates in the +(x,y) are absolute coordinates rather than delta coordinates, but the manual says otherwise


zsh: How to increase the default number of history entries displayed?

When I run the history command I only get 16 lines of output:  $ history | wc -l 16   Is there an environment variable that I can set within my .zshrc file or some other way to increase the number of history entries that are displayed by default?  My primary reason for wanting to do this is because I often search for previous commands using  history | grep something  but now that I've switched from bash to zsh I get only 16 lines of history output (it seems that the default number on bash is 1000) so now I need to also specify the number of entries that are returned:  history -2000 | grep something  Is there a way to set the default number of entries that history displays? (Or maybe I'm searching history wrong and should learn a better way to find a previous command?)  BTW I am using zsh on Ubuntu 18.04:  $ zsh --version zsh 5.4.2 (x86_64-ubuntu-linux-gnu)


Identify a fantasy series with ancient wizard who was training a young hero to fight a sleeping evil god

I remember reading a book series around 2008 - 2009 — probably as an ebook but maybe a hard copy — which for the life of me I cannot recall. My google-fu skills have failed me too. So here are the details I remember   The name of series started with B... something like Bar@@@@ Set in fantasy time with medieval setting. There was a ancient wizard, who was sort of immortal, or maybe just very very old, disguised as a common man at the start Hero was a young boy, introduced as an orphan, working in some rich noble's kitchen or kitchen farm Magic was used ages ago, but common folk have mostly forgotten about it There are several kingdoms, one in snow, one is an island, one is open grassland, and then there is a huge, big bad evil kingdom in north Wizard helps forge / renew alliance between all kingdoms slowly, having to work through some politics Wizard keeps training the boy in various arts as the series progresses There is eventually a war, but the good kingdoms sort of manage to defeat the evil king (he may have been crazy / megalomaniac) After war, wizard and boy go to the location where evil god (something with T... Tarturs or something) is sleeping, but whose evil keeps seeping into the world The boy, now trained and grown up, fights the god and eventually wins There may have been a middle aged woman, fiery in temper, also a witch, probably daughter of ancient wizard, and mother of hero   I also remember not really liking the books then, sort of having too many deus ex machina, but for some reason have them stuck in my mind recently. Any help would be deeply appreciated!


Automatically draw and labels angles of a triangle in TikZ

I'm using LaTeX with TikZ to create a (right-angle) triangle. Now I would like to label each angle by adding a half circle and a text label.  Unfortunately I only managed to create a label for the gamma angle. What do I need to do in order to put such a label into the remaining corners?  \begin{tikzpicture}[thick] \draw(0,0) -- (90:2cm) node[midway,left]{$opposite leg$} -- (0:4cm) node[midway,above right]{$hypotenuse$} -- (0,0) node[midway,below]{$adjacent leg$}; \draw[fill=lightgray, thick] (0,0) -- (0:0.8cm) arc (0:90:0.8cm) node at (45:0.5cm) {$\gamma$} -- cycle; \end{tikzpicture}


What is the difference between ps -aux and ps aux? I wonder it's more than a mere matter of syntax and "portability". Which one is better to use in Ubuntu?  Despite there are some similar question, I'm interested in this specific difference.


How to reference sections, equations, and figures in a separate document (e.g., supplemental information)?

I have a main document (manuscript) and a supplemental document.   I wonder if there is a way that I can "link" the two (make them recognize each other) so that section, equation, and figure references across documents are recognized?


How to solve Rudin Chapter 2 problem 11?

I have finished the entire problem except the 5th part. Roughly speaking the questions asks to show that over $\mathbb{R}$ prove/disprove that the distance function   $$ d_5(x,y) = \frac{|x-y|}{1 + |x-y|} $$  Is a metric. I have proven symmetry and I have proven that if $d_5(x,y) = 0$ that $x = y$ so all that remains to be shown is the triangle inequality namely :  $$ \frac{|x-y|}{1 + |x-y|}+ \frac{|y-z|}{1 + |y-z|} \ge \frac{|x-z|}{1 + |x-z|} $$  This of course can be cast more simply in terms of $u,v$ in $\mathbb{R}$ as  $$ \frac{|u|}{1 + |u|}+ \frac{|v|}{1 + |v|} \ge \frac{|u+v|}{1 + |u+v|} $$  This reminds me an awful lot of contest style inequalities but i can't for the love of god place which one this is (not that it should matter, I should ideally be able to just generate a proof with ease).   My one angle of attack was to do case work on fixing $u,v$ to be both positive or both negative, or a mix of positive and negative. But is there a easier way to proceed than that?


Do I Need a Visa for changing the airports in Turkey?

I have an Indian Passport and am travelling from Berlin to Dubai with Turkish airlines and have to change the airports in turkey. Do I need a visa for that?


There exists a perfect square between $n$ and $2n$

I need help proving the following mathematical statement:     Prove that for every $n$ there is a $k$ such that $n \leq k^2 \leq 2n$ where $n,k\in \mathbb{N}$.   Could someone get me started or give me some advice on proving this statement?


Added Objects Are Generated In Much Greater Units Than What Is Preset

I am utilizing Blender for 3D Printing purposes and the 3D Printing software uses the metric system (specifically mm and cm). I have already established preset units in the Scene tab:   Millimeters  Length: Metric  Angle: Degrees  Unit Scale: 0.0001  Generating a cube results in a cube with the dimensions 20cm x 20cm x 20cm. It appears as if the object generated exceeds the boundary of the scene as you can see from what looks like clipping.    After some experimentation with the unit scaling value, 20cm (at a Unit Scale of 0.0001) is the smallest I can make the absolute bounding box. If you reduce the unit scale value even further (0.00001) it will default to 2km, the initial value if the unit scale is set to 1.0.  If there are any fixes or add-ons that allow for scaling down to millimeters, I would be grateful.


How can I solve for the complex solutions of  $$ x^3 = -1 $$


Investigating why an installed binary hangs

I installed a package on my linux machine. When I run the installed binary, it hangs:  $installedBinary --help   is supposed to return a list of command line options. Instead, the program hangs and doesn't respond. It closes when I run control+c.  How can I investigate this problem?


Xdotool using "DISPLAY=:0" not works in Crontab

I need to run shell script contains Xdotool codes in /home/z/Desktop/tempo/run.sh. I've tried many ways of DISPLAY=:0 but always not works.  I've tried each of below codes, and not works:  * * * * * export DISPLAY=:0 cd /home/z/Desktop/tempo; ./run.sh * * * * * export DISPLAY=:0; cd /home/z/Desktop/tempo; ./run.sh * * * * * export DISPLAY=:0 && cd /home/z/Desktop/tempo; ./run.sh * * * * * DISPLAY=:0 cd /home/z/Desktop/tempo; ./run.sh * * * * * DISPLAY=:0; cd /home/z/Desktop/tempo; ./run.sh * * * * * DISPLAY=:0 && cd /home/z/Desktop/tempo; ./run.sh   Running directly also not works:  * * * * * export DISPLAY=:0 xdotool mousemove 20 20 * * * * * export DISPLAY=:0; xdotool mousemove 20 20 * * * * * export DISPLAY=:0 && xdotool mousemove 20 20 * * * * * DISPLAY=:0 xdotool mousemove 20 20 * * * * * DISPLAY=:0; xdotool mousemove 20 20 * * * * * DISPLAY=:0 && xdotool mousemove 20 20   I always don't see my mouse moving on each line of codes above.  I've also tested Xdotool codes to make invalid website URI request and see the logs. Sadly the logs still blank.


I'm trying to find a way to represent $\sum_{n=1}^\infty n^2$ as a partial sum. I know that every term in this series can be represented, for example when $n=5$, as $5^2+4^2+3^2+2^2+1^2$. I know that $1+2+3+4...$ can be represented as $\frac{n(n+1)}{2}$ but I can't figure out how to add the squared terms to each number.


Book recommendation for Quantum Mechanics

I want to delve into Quantum Computation, and for that I need background in Quantum Mechanics and other relevant mathematical topics. Which Quantum Mechanics book/resource should I use for that purpose ?


VNC with virtual display - black screen when I connect

I have a Ubuntu machine that I use as a Plex and data server. There is no monitor connected to it. This wasn't a problem with Ubuntu 16.04, but now, with 18.04, it is and it shows a black screen whenever I connect using VNC. I've already created the virtual display using the answer to this question:   Create a 20-intel.conf file: sudo vi /usr/share/X11/xorg.conf.d/20-intel.conf  Add the following configuration information into the file: Section "Device"     Identifier "intelgpu0"     Driver "intel"     Option "VirtualHeads" "2" EndSection  This tells the Intel GPU to create 2 virtual displays. You can change the number of VirtualHeads to your needs.  Then I made a shell script (don't forget to set executable) and put that in Startup Applications: #! /bin/bash /usr/bin/xrandr -d :0 --output VIRTUAL1 --primary --auto /usr/bin/xrandr --newmode "1600x900_60.00" 118.25 1600 1696 1856 2112 900$ /usr/bin/xrandr --addmode VIRTUAL1 "1600x900_60.00"  After this, it still shows a black screen when I connect using VNC. BUT, when I run this with SSH: export DISPLAY=:0 xrandr  After that, I can see my desktop in VNC... Any ideas on how to fix this? Also, when I see my desktop after all this, the dock is missing and all the icons are in the same spot.


Arrange 10 pots in 4 rows such that each contain 4 pots

How can we arrange 10 pots in 4 rows such that each row cantain 4 pots ?


I have geoserver 2.5.1 running on ubuntu 14.04 server. I tried to compose an image mosaic with ImageMosaicPlugin but I always get a message Could not list layers for this store, an error occurred retrieving them: Failed to create reader from file:data/dalekovod and hints nul. Images are in the right file format because geoserver recognizes them, and I can load each at one of them separately but I have 120 images.  Any idea what could be the problem?


How does root work in android phones? Does the concept of 'root' exists in android?

So I had an argument with someone over telegram if root exists or not in android. My point of view is that like any linux kernels the concept of root exists but it's not accessible to other processes. That's where magisk comes in play, hacks the kernel permitting other apps to use the root functionality. Now the other person mentions that the concept of root doesn't exist in android and mods like magisk implements it. Now, which one is which? Does root exists in android phones or mods like magisk implement it?


Electromagnetism, linearity and Feynman diagrams

Currently I am reading Sean Carrol, general relativity. But a thing got me stuck in, I can't understand what he is talking about. We are discussing the introduction to Einstein field equation, so he start talk about the linearity in Newtonian gravity and the non linearity in GR. But there is somethings I am missing:  " (...) in GR the gravitational field couples to itself (...) A nice way to think about this is provided by Feynman diagrams (...) There is no diagram in which two photons exchange another photons between themselves, because electromagnetism is linear."  Particularly, I can't understand these citations. First I am not sure what means a field to couples to itself, but I think it means it is linearity so the field in a point add linearity. And I couldn't understand how does the fact that that the electromagnetism is linear imply that photons do not exchange photons between, I can see these both statements are right, but can't see the connection between them, so that one implies the other.


Please make the tag synonym tool less confusing

This is the screen for creating tag synonyms (Arqade edition):    Which is source and which is target? Every time I use this tool I get confused, as either way could theoretically make sense. The language used in all other tag-synonym contexts is Master and Synonym. Please can this page be made to match this convention too?


When would "mom/dad" require capital letter in writing?

I understand the capitalization rule for nouns, proper nouns require a capital letter. Also, I should begin a new sentence with a capital letter.  When & why "mom/dad" requires a capital letter ?  (Reference- ELL- )     mom:      (n) informal term for a mother/North American term for mum.


Is there a way to allocate this free space in the sda6? Thx.  "não alocada" = "non allocated"


Let $S = \{0\}\cup\{1\}\cup  \{\frac{1}{4n+7} : n =1,2,\ldots\}$. How to find the number of analytic functions which vanish only on $S$? as i just modify the given question    Options are   a: $\infty$  b: $0$  c: $1$  d: $2$  i think answer will be 1   is its corrects or not ? Pliz tell me


My stats professor assigned this problem: "Show that the expected prediction error (EPE) for a squared error loss when $Y=f(X)+\varepsilon$ with estimator $\hat{f}(x)$ assuming $X=x$ is fixed and $\varepsilon~(0,\sigma^2)$ can be written as a combination of the bias and variance. In other words, show that   $$EPE(x) = E[(Y-\hat{f}(x))^2] = \sigma^2 + \text{Bias}^2 + \text{Var}(\hat{f}(x)).$$  I've come up with 3 ways to derive this relationship, but all of them depend on the assumption that $Y=f(X)+\varepsilon$ and $\hat{f}(X)$ are independent, or at least that their covariance is zero. For example, this allows me to use $\text{Var}[Y-\hat{f}(X)] = \text{Var}(Y)+\text{Var}(\hat{f}(X))$. This assumption makes intuitive sense to me because there is no necessary connection between $Y$ and the estimated value $\hat{f}(X)$ (the estimator could be a random number generator, after all). But I'm struggling to justify the independence assumption in a rigorous way. Can somebody nudge me toward understanding?


Change description of file types associated with Notepad++

I recently installed Notepad++ v6.6.6 (On Windows 8 x64) and associated file types. The installer changed file type description of every associated extension to Notepad++ Document.  For example, I have php, css and js files in the same folder it groups all files under Notepad++ Document. Is there any way to change file type descriptions to their default. Like:   php - PHP File or PHP Script   css - CSS File or Cascading Stylesheet   js  - JS File or JavaScript Document     I tried FileTypesMan but when I change description of 1 file type it changes all file type description. For example, when I change txt file to Text Document it changes all ext. associated with notepad++ to Text Document  .  I'm willing to change every file type description by hand.


Is the geometric realization of a pointed category contractible?

Given a pointed category $X$, is $|N(X)|$ contractible ($N(X)$ is the nerve of $X$)? Or are there counter-examples?


For me, Stack Exchange is the best thing since , and I want to know more about Stack Exchange. What's the programing language of Stack Exchange?


here is my shell script, I tried to catch the failing command and print the its result: myfunc() {   $1   uptime    echo "-------------------------------------"      EXIT_STATUS=$?   if [ ! "$EXIT_STATUS" = "0" ]; then     echo "Exit on failure"   else     echo "Exit on success"   fi }  myfunc pwd myfunc failfail  which results in: /root  15:19:54 up 15:43,  3 users,  load average: 0.01, 0.09, 0.09 ------------------------------------- Exit on success test2.sh: line 4: failfail: command not found  15:19:54 up 15:43,  3 users,  load average: 0.01, 0.09, 0.09 ------------------------------------- Exit on success  which second time should print Exit on failure, I tried with set -e but actually it exit the code and not continue to if else statement.


How to restore iPhone contacts lost after an app crash?

After a crash/reboot I .   I have an iTunes backup, but it is several months old. The iPhone was set to sync with my Windows Contacts list, but it also appears to not have been modified for several months. iCloud wasn't ever enabled.   How can I get (most of) my contacts back onto my phone?   A normal iTunes restores all data types at once, which means loosing all non-contacts data I added since the last backup.   I tried an iPhone recovery tool without any success already (Wondershare Dr.Fone; it has many clones, published across several pseudo-"how-to" sites: Asoftech iPhone Data Recovery; Recovery-Android: "Restore iPhone from Backup" and "Restore iPhone from Backup"; iPhone-iPad Recovery). The tool found no contacts at all, although correctly displayed deleted items of all other types available on iPhone.  Is it possible to either pull contacts only from iTunes backup file and restore those, or just sync my existing (although possibly out of date) contacts from Windows? Are there other tools which have chances to recover directly from iPhone storage, even if Dr.Fone failed? Any other ideas?


Derive distance formula between two parallel planes

Given two parallel planes: $$ ax + by + cz = d \\ ax + by + cz = e $$ How would I derive a formula for the distance between them?


Rename default "Ubuntu one" folder on 12.04 server possible?

I'm running Ubuntu 12.04 server from home and using Ubuntu One as backup site. I'm not great at scripts (beginner) so when writing bash scripts that I later crontab for backups, having to use "Ubuntu\ One" or similar methods messes things up. In fact, I had to do in my script "cd 'Ubuntu\ One'" in the script so I could skip using the directory structure in the tar command, cause it wouldn't work.  Any chance to rename the default "Ubuntu One" folder ? or is there some other easy way I'm just not seeing while handling tar commands ?  The following was what I was trying to do, does not work:  DEST_DIR="/home/user/Ubuntu\ One/backup"  tar -vczpf ${DEST_DIR}/${FNAME}-${TIMESTAMP}.tar.gz ${SRC_DIR} >> ${LOG}   This does work however:  cd /home/user/Ubuntu\ One  tar -vczpf ${FNAME}-${TIMESTAMP}.tar.gz ${SRC_DIR} >> ${LOG}   I wanted variables so I could backup more specific files and directories and use array later to sort out where stuff goes. Forcing me to "cd" to the U1 directory in the script kinda sucks.


conversion of high_value to date datatype

I need to comparte the high_value which is of LONG  datatype to sysdate which is of DATE datatype. I need to fetch the partition names of all the partitions which is 90 days old. The code is some what like this.  declare        dt date;    time_to_stay number:=1; --CONFIGURE AS PER THE REQUIREMENT     begin     for x in (select partition_name , high_value, partition_position           from user_tab_partitions           where table_name = 'DEMO') loop    execute immediate 'select '||x.high_value||' from dual' into dt;            if to_date(dt) < sysdate-time_to_stay AND x.partition_position <>'1'     then execute immediate 'ALTER TABLE DEMO DROP PARTITION '|| x.partition_name|| ' UPDATE GLOBAL INDEXES';   This query executes but does not deletes the partitions. However I see that main issue is converison of   LONG   datatype of high_value to DATE  to make the comparision between high_value and sys_date.  How can I fix this?


Adjusting resolution for individual Wine programs

How can I specify the resolution of a program to 800*600, and for other programs to full screen or other specific resolutions?


I have two laptops and a desktop. When I travel I take, of course, one of the laptops. The thing is, I have some good bookmarks in all three of my computers, but they are all different. I would like to "dump" all my bookmarks in one folder [like windows Explorer] and reselect them there. Here it comes the question: Where does Chrome save its bookmarks on Windows 8.1? Thanks Dan


Can't create flash drive for Kubuntu 17.04

I have downloaded kubuntu-17.04.1-desktop-amd64.iso  So on my terminal:  lsblk cd ~/Downloads sudo dd if=kubuntu-17.04-desktop-amd64.iso of=/dev/sda bs=4096   But it does not work. I use the same lines above to create flash drive for Kubuntu 16.10 and no problem at all.  Why?  Is kubuntu-17.04-desktop-amd64.iso that I downloaded corrupted?


Knowing that the monic polynomial and finitely-generated module definitions of integral elements over a commutative ring are equivalent, how can one prove that these elements form a ring?  Thanks.


C# - return default type of property type

Ok, I have a property MyProp like this inside MyClass class:  public string MyProp {    get    {       if (App.localSettings.Containers.ContainsKey(nameof(MyClass)) && App.localSettings.Containers[nameof(MyClass)].Values.ContainsKey(nameof(MyProp)))          return App.localSettings.Containers[nameof(MyClass)].Values[nameof(MyProp)].ToString();        return default(string);    }     private set    {       App.localSettings.Containers[nameof(MyClass)].Values[nameof(MyProp)].ToString();    } }   But how I can make my return looks like this:  return default(typeof(MyClass).GetProperty(nameof(MyProp)).PropertyType);   I'm running under Windows Runtime.


How to turn off Facebook notifications on Mac OS X?

How to turn off Facebook notifications on Mac OS X Mountain Lion?


How to enable ssh root access on Ubuntu 14.04

I´d like to enable the ssh root access on Ubuntu 14.04. Editing the /etc/ssh_config (PermitRootLogin yes) didn't affect anything.


Prove, that graph $G$ has at least $\chi(G)(\chi(G)-1)/2$ edges.

Can anybody give me any hints about how to prove that for any graph $G$ the number of edges in it is at least $\chi(G)(\chi(G)-1)/2$?  $\chi(G)$ is the minimal number of colors we need to use to color the graph (it's chromatic index in other words).  I tried induction but I'm stuck at an induction step.  I do the induction on the number of edges.  When $|E(G)|=0$ then obviously we can color the graph using only one color, so the theorem holds.  Now induction step from $n \Rightarrow n+1$ edges.  Let's erase any edge $e=\{v,u\}$ from $G$. Then $\chi(G-e)$ is either the same, or $\chi(G-e)<\chi(G)$, because we relaxed the graph an $v$ and $u$ no longer need to have different colors. From the first case the thesis is clear, because $G-e$ has more then $\chi(G)(\chi(G)-1)/2$ edges so with the one we erased it's still more. But from the second case we only know that $G \geq \chi'(G)(\chi'(G)-1)/2$ and $\chi'(G)(\chi'(G)-1)/2 \leq \chi(G)(\chi(G)-1)/2$ so that gives me nothing...


Device for Logging GPS and Accelerometer Data?

I am looking for a device that can track my location (lat,long) and speed all day long. Perhaps, I need GPS and accelerometer data bundled together.  What I want to do is to log my daily activities. I spend time walking, running, driving, taking a bus, staying in a building, etc., just like any normal human-being :) I am willing to carry the device with me at all times and would like to see every place I go into and my speed at certain positions.  My requirements are that the location and speed data should be recorded at least every ~20 seconds. I would also like the device to timestamp (date+time) each record. It would be enough if timestamp is precise to nearest minute and the location can go off about a maximum of 10-15m. (30-50ft.)  What I want is a portable device so I can carry all day long for about 2-3 months. I will only use it during casual, daily activities.  I don't want real-time tracking. I can collect the data from a storage later on.


Is there a Objective-C or C math function to constrain a variable between a Min and a Max?

What I am looking for is a math function that constrains a primitive variable between a minimum and a maximum value in only one single function call, if it exists, in the standard math libraries for Objective-C.  I currently use:  float constrainedValue = fminf( maxValue, fmaxf( minValue, inValue ) );   Since I know that both fminf and fmaxf could potentially have instruction jumps or branches, it seems likely there could be a simple routine that could conjoin both of these operations into one, optimized function.


Can I set API names of Picklist values seperately?

I'm making a picklist with 385-ish values. I want these values to have different API names than their label value. Is there any easier way to edit the API names rather than one at a time?


Moments of the truncated normal distribution (univariate) away from the mean

I need to compute the mean and variance of the truncated normal distribution. For simplicity, let us focus on a standard normal, since the general case can be reduced to this. The PDF is given by:  $$f\left(x;a,b\right)=\begin{cases} \frac{\phi\left(x\right)}{\Phi\left(b\right)-\Phi\left(a\right)} & a\le x\le b\\ 0 & \text{otherwise} \end{cases}$$  where  $$\phi\left(x\right)=\frac{1}{\sqrt{2\pi}}\mathrm{e}^{-x^{2}/2},\quad\Phi\left(x\right)=\frac{1}{2}\left(1+\mathrm{erf}\left(x/\sqrt{2}\right)\right)$$  The analytical formulas for the mean and variance of $f$ are:  $$\left\langle x\right\rangle  =\frac{\phi\left(a\right)-\phi\left(b\right)}{\Phi\left(b\right)-\Phi\left(a\right)}$$  $$\mathrm{var}\,x =1+\frac{a\phi\left(a\right)-\beta\phi\left(b\right)}{\Phi\left(b\right)-\Phi\left(a\right)}-\left(\frac{\phi\left(a\right)-\phi\left(b\right)}{\Phi\left(b\right)-\Phi\left(a\right)}\right)^{2}$$  However, if you try to evaluate those expressions numerically, when $a,b$ are sufficiently away from the mean, you will encounter multiple numerical issues. I have tried Mathematica, Python scipy, Julia Distributions.jl, and they all give NaN.  For example, this is what happens in Mathematica:    Has anyone encountered this issue before? Anyone can suggest a solution, or an alternative package?


I'm trying to add a column to a csv file by using:  awk -F "," '{print $0"new_col"}' file.csv   but I got :  new_col8,0.405,0.101 new_col4,0.374,0.100 new_col23,0.342,0.100 new_col130,0.298,0.100   instead of :  68,110,0.362,0.101,new_col 11,98,0.405,0.101,new_col 57,94,0.374,0.100,new_col 61,123,0.342,0.100,new_col 124,130,0.298,0.100,new_col   I tried like this too:  awk -F "," '{{$(NF+1)=",new_col"} print $0 }' file.csv   but i got the same result!!!  Is someone already had this problem?


Can someone please explain to me what this means:  Definition: Given functions f(n) and g(n), then we say that           f(n) is O( g(n) )  if and only if there exist positive constants c and n0   such that         f(n) <= c g(n)      for all n => n0


My product has several components: ASP.NET, Windows Forms App and Windows Service. 95% or so of the code is written in VB.NET.  For Intellectual Property reasons, I need to obfuscate the code, and until now I have been using a version of dotfuscator which is now over 5 years old. I'm thinking it is time to move to a new generation tool. What I'm looking for is a list of requirements which I should consider when searching for a new obfuscator.  What I know I should look for so far:   Serialization/De-serialization. In my current solution, I simply tell the tool not to obfuscate any class data members because the pain of not being able to load data which was previously serialized is simply too big. Integration with Build Process Working with ASP.NET. In the past, I have found this problematic due to changing .dll names (you often have one per page) - which not all tools handle well.


Thanks & Thank you followed by a comma or a period as a complimentary closing?

If we use the words "Thanks" or "Thank you" (on a line by itself) at the end of a correspondence -- in the absence of a complimentary closing (such as "Sincerely,") -- do we follow "Thanks" and "Thank you" with a comma or a period?   Example:  Hi Joe,  Body of text ...  Thank you,  Mike    Example 2:  Hi Joe,  Body of text ...  Thanks,  Mike


Statistics for good questions by time of day/day of week

I'm just curious, and I know the Stack Overflow guys often release data like this; is there any data or personal experience for which times of day / day of week / month of year produce the most interesting questions? I suppose data-wise that would translate to average upvotes per question asked.  Similarly, are there times when people are more likely to ask duplicate questions, etc.?


how to get value of element with dynamically created id

Here is my code:  $(".cbtn").click(function(e) {     alert("here");     var id = $(this).attr('id');     var comment = $('input[id$=id]').val();          alert("hay" + id);     alert(comment);      $.post("comments.php", {         id: id,          comment: comment     }) }); });   The id of cbtn and the text field is created dynamically like this:    <input type="text" class="enter_comment  value="comments" id="comm<?php echo $row['p_id'];?>"/> <input type="button" value="enter" class="cbtn" id="<?php echo $row['p_id'];>">   When cbtn is clicked, I want to get the id of text field that ends with the same id as cbtn. But it is returning undefined instead.


Fibonacci series in dynamic programming in python

# Program 1 fibSeries = {} def fib(n):         a,b = 1,1     for i in range(1,n+1):                 if i <= 2:              f = 1         else:              f = a + b             a = b             b = f         fibSeries[i] = f     return f  print (fib(number)) print (fibSeries)  # Program 2 fibSeries={} def fib(n):     for k in range(1,n+1):         if k <= 2: f = 1         else: f = fib(k-1) + fib(k-2)         fibSeries[k] = f     return f  print(fib(number)) print(fibSeries)   I have started dynamic programming and my first program is to find Fibonacci series. I have written the above two programs. My first question is which among these programs comes under dynamic programming? Which among these two programs is a better one? Is there a better way than program 1 to find the nth Fibonacci number faster? Is program 2 better than recursion? And how to find the number of times the function is called in program 2?


Are US Border Officials allowed to ask for my passwords from a legal perspective?

Can US Border Officials (e.g. Customs Officials at JFK Airport) legally require a non US citizen (whether a tourist, visa, or green card holder) for his or her passwords (phone, laptop, facebook, email, etc...)? Don't they need a warrant for that? Do different states have different rules?


Make gameObject “stick” to another gameObject after it has collided with it?

Currently, I am using the following code to make objects stick to other gameObjects.  rb = GetComponent<Rigidbody>(); rb.isKinematic = true; gameObject.transform.SetParent (col.gameObject.transform);   It works perfectly, but it causes many other problems... For example, after colliding, it can no longer detect collisions... Is there an alternative to this code (which makes a gameObject stick to another one after collision)?


How to get JWT access_token from google?

Currently access and refresh token i'm getting are opaque. i'm unable to verify them locally. only id token is a JWT. is there any request parameter to make google return access token in a JWT form signed with a asymmetric key? the endpoint i'm using: /oauth2/v4/token and params: code: req.query.code, client_id: clientId, client_secret: clientSecret, redirect_uri: 'http://localhost:8080/login/oauth2/code/google', grant_type: 'authorization_code', access_type: 'offline', approval_prompt:'force'


What is the difference between Unix and Linux?

I want to know what the actual difference between Unix and Linux is.   Do they share the same kernel? Is Linux built on Unix? Do programs written for Linux work on Unix and vice-versa?


Correct grammatical number for English money

Which of the following is correct or better? A) Here's £5. B) Here are £5. In case both should be correct, could you explain why? Thanks a lot in advance.


W: Invalid 'Date' entry in Release file /var/lib/apt/lists/_var_cuda-repo-8-0-local_Release N: Skipping acquire of configured file 'non-free/binary-arm64/Packages' as repository 'http://repository.spotify.com stable InRelease' doesn't support architecture 'arm64' E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial/main/binary-arm64/Packages  404  Not Found [IP: 91.189.88.161 80] E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-arm64/Packages  404  Not Found [IP: 91.189.88.161 80] E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-backports/main/binary-arm64/Packages  404  Not Found [IP: 91.189.88.161 80] E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-security/main/binary-arm64/Packages  404  Not Found [IP: 91.189.88.161 80] E: Some index files failed to download. They have been ignored, or old ones used instead.   After I installed Jetpack for Jetson tx1, my ubuntu constantly tries to fetch arm updates. Is there a way to disable this?  EDIT:   $dpkg --print-architecture amd64  $dpkg --print-foreign-architectures i386 arm64   I see that arm64 is included in foreign architectures. How do I remove it?


Can esp8266 chip work safely in a circuit with 3.3v and 1 ampere current?

I am using ams1117 to convert 5v/1A DC to 3.3v/1A using - .  Can this 1 amp output (measured via ammeter) damage the esp8266 or i need to limit the input current (via resistor)?.