My system updated the long lived branch Nvidia drivers to 375.39 yesterday. The problem is that now, when the computer goes to sleep, then wakes up, some windows are buggy:    The same happens with terminal windows. I tried the short lived branch latest drivers, the 378.13, it is the same problem. What can I do ?  Update: Now the drivers 375.39 are the official Nvidia drivers available from the Ubuntu repository, yet the bug evoked above is still there.

NB: Nvidia has released an official fix; please see ,  and/or .  Upon waking up Ubuntu 16.04 from Suspend, the following graphical glitches appear around all windows, context menus, and similar:      This is currently known to affect the following NVIDIA cards running the proprietary drivers:  NVIDIA GeForce 610M, driver version 375.39, 340.102 NVIDIA GT 630M, driver version 375.39 NVIDIA GTX 650, driver version 375.39 NVIDIA GT 740M, driver version 378.13 NVIDIA GTX 745, unknown driver version NVIDIA GTX 850M, driver version 375.39, 378.13 NVIDIA GT 940M, driver version 375.39 NVIDIA GTX 950M, unknown driver version NVIDIA GTX 960M, driver version 378.13 NVIDIA GTX 970, driver version 375.39 NVIDIA GTX 970M, driver version 375.39 NVIDIA GTX 980 TI, unknown driver version NVIDIA GTX 1060, driver version 375.26, 375.39, 378.09 NVIDIA GTX 1070, driver version 378.09  The above above list has been sourced from reports from other users here on AU,  thread, and  thread. NB: This is be no means an exclusive list. It probably effects nearly all Nvidia cards.  Furthermore, this issue has been replicated on a clean install where the only change was a software update and the installation of the latest NVIDIA drivers.  What is going on, and how can it be resolved?


This seems pretty silly, but I haven't found a tool that does this, so I figured I'd ask just to make sure one doesn't exist before trying to code it up myself:  Is there any easy way to cat or less specific lines of a file?  I'm hoping for behavior like this:  # -s == start && -f == finish # we want to print lines 5 - 10 of file.txt cat -s 5 -f 10 file.txt   Even something a little simpler would be appreciated, but I just don't know of any tool that does this:  # print from line 10 to the end of the file cat -s 10 file.txt   I'm thinking that both of these functionalities could be easily created with a mixture of head, tail, and wc -l, but maybe there are builtins that do this of which I'm unaware?

I have a ~23000 line SQL dump containing several databases worth of data. I need to extract a certain section of this file (i.e. the data for a single database) and place it in a new file. I know both the start and end line numbers of the data that I want.  Does anyone know a Unix command (or series of commands) to extract all lines from a file between say line 16224 and 16482 and then redirect them into a new file?


I m looking for a single word to describe a person, who puts everything on social media. Imagine a person who is updating his status every second. Whatever he sees, the first thing he does is take a photo and put it in Snapchat, Instagram, Whatsapp and facebook for people to watch. any word other than social media addict or maniac.

It could be a noun or an adjective, and either could describe a person or an action. For example:  "Did you hear Eric's wedding toast? He wouldn't shut up!"  "I know, he was being a complete _______"


Last time I was writing an easy program for some old processor to interface with MCP3004 (Microchip's ADC with SPI interface). Processor had no hardware SPI implementation so I had to write it on my own.  To my surprise program didn't work until I changed the code to toggle CS down-up-down with some delay each time I am communicating with ADC. Always before I was sure that ChipSelect can and even should (to reduce amount of used pins) be physically shorted to ground when I use only one device.  Is there any explanation why that time it didn't worked: when I can't short CS to the ground when I am using only one SPI device?

I connect an imx233 (master) and atmega168a (slave) through SPI. I am trying to debug the communication. I have problem with imx233's chip select, therefore I connect CS of the AVR onto the ground. Could anyone tell me if I really need to use chip select as I have only one slave? I asked that question on different forums and some says I have to have the CS, some says it is not necessary if I have only one slave and connect the CS onto the ground.   I would be grateful if someone can clear my mind if I really need to have the CS on one to one SPI connection or not? and why?


does anyone know where I can download a shapefile of 2km DINTY Tetrad squares for the UK please?  A google search wasn't very helpful so I thought I'd try here.  A  is derived from the British National Grid, but is not the same as the British National Grid, so this is not a duplicate question.

Does anyone know a source from which to download vector UK Ordnance Survey grids at varying resolutions? Or failing that, a tool that can create an OS grid at a specified resolution? There are plenty of ways to generate a vector grid, but I've found no way of populating the attributes with OS grid references.


I am making an adventure map that includes a sort of redstone clock. I want to set a command block connected to the clock and have it spawn items. Unfortunately, I am not very skilled in command blocks and could use a little help.  This is my command:     /setblock 138 93 254 minecraft:command_block 0 replace   {Command:"/summon Item 140 115 245   {Item:{id:"minecraft:gold_nugget",Count:1}}"}   When I execute the command, it returns with this output:  Data tag parsing failed: Unexpected token 'm' at: minecraft:gold_nugget",Count:1}}"  Can anyone please help me?  Thank you.

I need help with a specific command that I am using in a new game that I am creating inside of Minecraft. The command is:  /give @p sign 1 0 {BlockEntityTag:{Text1:"{"text":" [MF2]","color":"gold","clickEvent": {"action":"run_command","value":"tellraw @a [""{"text":"[MF2]  ","color":"gold"},{"selector":"@p","color":"dark_aqua"},{"text":" is now an admin of the server!","color":"white"}]"}}",Text3:"{"text":"Click to join Admin","color":"dark_aqua","clickEvent": {"action":"run_command","value":"scoreboard teams join admin @p"}}"},display: {Name:"Custom Sign"}}   If I take out the /tellraw command then the command works fine, but I need the command in there to announce to the game that a new admin has joined.  With the tellraw command, the error message is the following:  Data tag parsing failed: Unexpected token 't' at: text":" [MF2]","color":"gold","clickEvent":{"action":"run_command","value":"tellraw @a [""{"text":"[MF2] ","color":"gold"}, {"selector":"@p","color":"dark_aqua"},{"text":" is now an admin  of the server!","color":"white"}]"}}",Text3:"{"text":"Click to join Admin","color":"dark_aqua","clickEvent": {"action":"run_command","value":"scoreboard teams join admin @p"}}"   If anyone knows how to fix this, please let me know.


Area 51 allows the creation of sites by several users. This finally created a special behavior where several Stack Exchange sites have similar purposes to those of the . This has to do with the fact that some questions are suitable for several sites. So if a question has low views on a site, is it OK to post the same question on a site with a larger audience?

It is possible to migrate a question from one Stack Exchange site to another by closing, but if I have a question that I think is on-topic for multiple Stack Exchange sites, is it OK to post it on both (multipost)?   For example, I have a question that's earned me the tumbleweed badge on SO and I'm not sure what the best thing to do with it is. It's about a web server so it might be answerable on Server Fault but it's really more of a programming thing, hence the posting the question on Stack Overflow.    Is there any way to make the question visible on multiple sites (crosspost) and then accept the answer wherever it came from?


I recently downloaded QGIS on a Mac OSX 10.7.4 (lion) and purchased a master map shape file, of a particular area.    I am trying to divide it into polygons following features on the master map vector file (.gml 2.shp) and it just won't snap. I have been to snapping and digitising options box, and ticked and changed tolerances far and wide but it just will not snap.   My map layer and topographic options are ticked. I've tried the general options tolerances and still it does not want to snap. I have tried changing vertex to segment and both to no avail, as well as pixels to map.   If I am working at 1:2500 map scale in metres what would a typical tolerance be?  (tried 1- 50)   I think there must be a simple solution to enable snapping or have i down loaded file in the wrong format? In MapInfo one had to use keyboard strokes 'S' for snap and 'T' for trace, but this is not mentioned and you can be sure I have tried!

Is there any tool in QGIS that traces a line like the trace tool (Editor Toolbar) in ArcGIS? I want to draw a line and trace this line back so that I get the beginning and the end of the line at the same position. Any suggestions?


Is it possible to have a "coloured" dotted columns separator instead of a regular one, to separate the columns in the multi-column page layout?

multicol or memoir would be preferred. \columnseprule, I understand, is responsible for drawing a solid vertical line between columns. Is there a parsimonious way to achieve the following?  -----pretext--- ###### : ###### ###### : ###### ###### : ###### ###### : ###### ###### : ###### ###### : ###### -----posttext--


So as the title says in my C Program i get as command line inputs as usual argc and argv. However upon further inspecting, i realized that my incoming argc is a completely random number.  Here is the start of my program where i want to know the value of argc.  void debug(char *format, ...) {     if(DEBUG_MODE!=0) return;     va_list arg;      va_start (arg, format);     (void) fprintf (stdout, format, arg);     va_end (arg); }  int main(int argc, char *argv[]) {     debug("ARGC %i\n", argc);   Where debug() is just a better print method. So when i start my program with:  ./server   I just get as a result:   ARGC -1786798448   So i really dont understand this.

Say I have a C function which takes a variable number of arguments: How can I call another function which expects a variable number of arguments from inside of it, passing all the arguments that got into the first function?  Example:  void format_string(char *fmt, ...);  void debug_print(int dbg_lvl, char *fmt, ...) {     format_string(fmt, /* how do I pass all the arguments from '...'? */);     fprintf(stdout, fmt);  }


I want to show table number starting from 1 to so on seprately on each chapter. I am trying to use setcounter, but its not giving the desired results.  \documentclass[english]{book} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage{array} \usepackage{enumitem}  \makeatletter \providecommand{\tabularnewline}{\\} \makeatother  \usepackage{babel}  \begin{document} \setcounter{table}{4}  \chapter{One}  \begin{table}[htbp] \centering  \caption{I want to give number Table-1}  \begin{tabular}{l>{\raggedleft}p{50pt}r} \hline  \textbf{Province} & \textbf{Import }\textbf{\scriptsize{}('000' USD)} &  \textbf{Percent}\tabularnewline \hline  Punjab &  393.8  & 21.35\tabularnewline Sindh &  521.4  & 72.53\tabularnewline \hline  \textbf{Grand Total} & \textbf{ 321.2 } & \textbf{ 100.00 }\tabularnewline \hline  \end{tabular}  \end{table}  \begin{table}[htbp] \centering  \caption{I want to give number Table-2}  \begin{tabular}{l>{\raggedleft}p{50pt}r} \hline  \textbf{Province} & \textbf{Import }\textbf{\scriptsize{}('000' USD)} &  \textbf{Percent}\tabularnewline \hline  Punjab &  393.8  & 21.35\tabularnewline Sindh &  521.4  & 72.53\tabularnewline \hline  \textbf{Grand Total} & \textbf{ 321.2 } & \textbf{ 100.00 }\tabularnewline \hline  \end{tabular}  \end{table}  \chapter{Two}  \begin{table}[htbp] \centering  \caption{I want to give number Table-1}  \begin{tabular}{l>{\raggedleft}p{50pt}r} \hline  \textbf{Province} & \textbf{Import }\textbf{\scriptsize{}('000' USD)} &  \textbf{Percent}\tabularnewline \hline  Azad Jammu \& Kashmir &  2.1  & 0.03\tabularnewline Balochistan &  1.6  & 0.08\tabularnewline EPZ &  9.7  & 0.41\tabularnewline \hline  \textbf{Grand Total} & \textbf{ 321.2 } & \textbf{ 100.00 }\tabularnewline \hline  \end{tabular}  \end{table}  \end{document}

Some document elements (e.g., figures in the book class) are numbered per chapter (figure 1.1, 1.2, 2.1, ...). How can I achieve continuous numbering (figure 1, 2, 3, ...)?  And vice versa: Some document elements (e.g., figures in the article class) are numbered continuously. How can I achieve per-section numbering?  \documentclass{book}% for "vice versa" variant, replace `book` with `article`  \begin{document}  \chapter{foo}% for "vice versa" variant, replace `\chapter` with `\section`  \begin{figure} \centering \rule{1cm}{1cm}% placeholder for graphic \caption{A figure} \end{figure}  \end{document}   Bonus question: Is it possible to adjust the numbering of the sectioning headings themselves? Can I, e.g., switch from per-chapter to continuous numbering of sections in the book class?


When I run a multiple regression analysis in Excel on 20 independent variables and 1 dependent variable (in two goes), I obtain in the summary a set of p-values. When I select the (six) ones that are less than 0.25 and then rerun the multiple regression analysis, the p values are smaller than they were previously. Shouldn't the p values be the same?? I would have thought that the p-values should be the same as each time an individual regression is run against the dependent variables?  Otherwise could someone please point out my misunderstanding of multiple regression analysis and explain/justify why these p-values are smaller.

When I analyze my variables in two separate (univariate) logistic regression models, I get the following:  Predictor 1:    B= 1.049,    SE=.352,    Exp(B)=2.85,    95% CI=(1.43, 5.69),    p=.003    Constant:    B=-0.434,    SE=.217,    Exp(B)=0.65,                            p=.046  Predictor 2:    B= 1.379,    SE=.386,    Exp(B)=3.97,    95% CI=(1.86, 8.47),    p<.001    Constant:    B=-0.447,    SE=.205,    Exp(B)=0.64,                            p=.029   but when I enter them into a single multiple logistic regression model, I get:  Predictor 1:    B= 0.556,    SE=.406,    Exp(B)=1.74,    95% CI=(0.79, 3.86),    p=.171 Predictor 2:    B= 1.094,    SE=.436,    Exp(B)=2.99,    95% CI=(1.27, 7.02),    p=.012    Constant:    B=-0.574,    SE=.227,    Exp(B)=0.56,                            p=.012   Both predictors are dichotomous (categorical). I have checked for multicollinearity.  I am not sure if I have given enough info, but I cannot understand why predictor 1 has gone from being significant to non-significant and why the odds ratios are so different in the multiple regression model. Can anyone provide a basic explanation of what is going on?


I want this    How can you make such an arrow for enumerate's items?

I have an itemized list:  \begin{itemize}     \item Lorem     \item Ipsum     \item Sit     \item Dolor     \item Amet \end{itemize}   I want to create an accolade on the right side of 'Lorem' and 'Ipsum', and add a bit of text at the point of the accolade. The level of this text should be between the first and the second line. How can I get this done?


In Python, if I multiply of list of objects by an integer, I get a list of references to that object, e.g.:  >>> a = [[]] * 3 >>> a [[], [], []] >>> a[0].append(1) >>> a [[1], [1], [1]]   If my desired behavior is to create a list of copies of the original object (e.g. copies created by the "copy.copy()" method or something sort of standard, is there an elegant way to do this with the same multiplication operator?  Or should I just stick with a list comprehension or something?  E.g.  [[] for x in range(0,3)]   Any version of Python is fine.

I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3  The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]    Then I changed one of the innermost values: my_list[0][0] = 5  Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]]    which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?


New to android programming - apologies for incorrect jargon.  My app can save data entered to EditText fields. It then can load this data and set the values of this data to String Variables. Then it preforms a POST HTTP request with these strings.  I'm loading/saving string files using openFileInput and openFileOutput  I've created Methods:  public String LoadMethod() public String SaveMethod()   These Methods work fine when the Method is in same class as the Activity calling it.  My problem is that 2 Activities need to be able to run the public String LoadMethod()  So what i did was create 2 java class files for Loading and Saving data. Some commenting is in the files as I've been trying to debug.  LoadUserDetails.java  public class LoadUserDetails extends AppCompatActivity {     public static String sSavedName;     public static String sSavedCompany;     public static String sSavedPhone;     public static String sSavedCarRegistration;     String sNameFile = "name_file";     //private Context context;      public String LoadMethod(){      /* OPEN DETAILS FROM INTERNAL STORAGE*/          //context = getActivity();         /*NAME*/         try {              String sOpenName;             FileInputStream fileInputStream = openFileInput("name_file");             InputStreamReader inputStreamReaderName = new InputStreamReader(fileInputStream);             BufferedReader bufferedReaderName = new BufferedReader(inputStreamReaderName);             StringBuffer stringBufferName = new StringBuffer();             while ((sOpenName = bufferedReaderName.readLine()) != null) {                 stringBufferName.append(sOpenName + "\n");             }              sSavedName = (stringBufferName.toString());          } catch (FileNotFoundException e) {             e.printStackTrace();         } catch (IOException e) {             e.printStackTrace();         }   The code repeats for opening the other 3 string files.  I Launch this method from my UserDetails.java Activity and MainActivity.java Activity using this code:  //Load User Details         LoadUserDetails load = new LoadUserDetails();         load.LoadMethod();   This is the error I get in logcat:  java.lang.RuntimeException: Unable to start activity ComponentInfo{com.visitorrego.oem.smartsigninvisitor/com.visitorrego.oem.smartsigninvisitor.UserDetails}: java.lang.NullPointerException   ..........  Caused by: java.lang.NullPointerException             at android.content.ContextWrapper.openFileInput(ContextWrapper.java:191)             at com.visitorrego.oem.smartsigninvisitor.LoadUserDetails.LoadMethod(LoadUserDetails.java:31)             at com.visitorrego.oem.smartsigninvisitor.UserDetails.onCreate(UserDetails.java:37)   I've tried using Context and the ContextWrapper error disappears but i still get the others :(  I know its something to do with calling a method using OpenFileInput from a different class. I don't have an issue with calling the postrequest method in my webrequest class...  Any ideas?  Can post more code if needed.

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I know that there is a way to charge your laptop by plugging a USB connector into your laptop and then plugging the other end into a wall charger as I know a friend with a ThinkPad who does it. I just want to know how so that I may do the same.

Can I charge computers by inducing 5-volt into their USB connectors? Is this possible? I noticed that when my EeePC 900 is off but plugged in charger, there is power coming out of the USB port. Can this be a sustainable way of charging a PC, or a flaw in design?


I'm trying to execute an extension method that returns and object of type T, but I'm trying to have type T dynamic based on a Header/Detail dynamic generic type.  This maybe a bit verbose...  using System; using System.Collections.Generic;  namespace Blah {     public interface IHeader     {         string Name { get; set; }         IDetail Detail { get; set; }     }      public interface IDetail     {         //Nothing the 'Real' implementation of this          //interface will have it's own properties.     }      public class GenericHeader : IHeader     {         public string Name { get; set; }         public IDetail Detail { get; set; }     }      public class RealHeader : GenericHeader     {         public new RealDetail Detail         {             get { return (RealDetail) base.Detail; }             set { base.Detail = value; }         }     }      public class RealDetail : IDetail     {         public string ThisImportantOnlyToRealDetail { get; set; }     }      public static class ExtensionHelpers     {         public static T ToObject<T>(this IDictionary<string, string> reader) where T : new()         {             //This maps the dictionary to Key Value Pairs of the Object's properties             //it then will return a object filled with the values             return new T();         }     }      public class MyRepo<THeader> where THeader : class, IHeader, new()     {         public THeader GetById(int ID)         {             THeader returnHeader = new THeader();             //Process to fill Header              var dictDetail = new Dictionary<string, string>();             //Process to fill Detail Dictionary              //Use extension method to create an Object              //based on Key Value Pairs from Dictionary             // !!!!!!!!!!!!!!!! This Is The Problem !!!!!!!!!!!!!!!!             // Can't use typeof for returnHeader.Detail, reflection?             returnHeader.Detail = dictDetail.ToObject<typeof(returnHeader.Detail)>();              return returnHeader;         }     }      public class Worker     {         public void DoWork()         {             var myRealRepo = new MyRepo<RealHeader>();             var myRealHeader = myRealRepo.GetById(123);              Console.WriteLine(myRealHeader.Detail.ThisImportantOnlyToRealDetail);         }     } }

What's the best way to call a generic method when the type parameter isn't known at compile time, but instead is obtained dynamically at runtime?  Consider the following sample code - inside the Example() method, what's the most concise way to invoke GenericMethod<T>() using the Type stored in the myType variable?  public class Sample {     public void Example(string typeName)     {         Type myType = FindType(typeName);          // What goes here to call GenericMethod<T>()?         GenericMethod<myType>(); // This doesn't work          // What changes to call StaticMethod<T>()?         Sample.StaticMethod<myType>(); // This also doesn't work     }      public void GenericMethod<T>()     {         // ...     }      public static void StaticMethod<T>()     {         //...     } }


I applied for UK visit visa on the 23rd of Oct. I got the refusal letter today and I am shocked to see the ECO take an unbelievably strict stance on my application, rejecting my employment evidence, rejecting the affidavit signed by my sponsor and completely ignoring the bank statements of my sponsor (father). I attached my father's salary certificate, evidence of his employment, his bank statements and an affidavit signed by him stating that he would sponsor my trip. The ECO also stated I had no ties to my country when I had specifically mentioned in my cover letter that I am the only daughter of my parents and I live with my mother, while my father lives abroad. I had attached my bank statements only as proof that I worked and that I had access to amounts other than what my father was providing me with. I am at a loss as to what to do. Any help would be appreciated. EDIT: Rejection was from the Abu Dhabi consulate.

My visa was rejected because I failed to provide bank statements. I'm a drop-out student and at present I don't work and I don't study, so I don't have any account balance.  I've mentioned in my application that I'm supported by my father.  I'm visiting the UK to visit my friend for 5 days. I have provided my friend's invitation letter, visa, passport and bank statements. I have provided my hotel booking also.  I have provided my father's income tax return documents. But I failed to provide his bank statements. If I provide bank statements will I get an entry clearance?


My friend is receiving a lot of Stack Overflow account recovery emails. When I checked I came to know that for triggering account recovery only email id is needed. So anyone knows his email ID can send a recovery email to his inbox. Since email ID is something public should we ask some private info like date of birth before sending account recovery email?

Just received ~70 unsolicited password reset mails from Super User, so abusive...


I need some algebraic and combinatorial proofs for the following.  $$\sum_{a=0}^n\frac{\binom{n+a}{a}}{{2^{n+a}}}=1.$$  Every kind of using combinatorial consideration, generating function, algebraic simplification, reduction to some famous formula, etc is appreciated.  Thanks in advance.

How does one show that $$\sum_{k=0}^{n}\binom{n+k}{k}\frac{1}{2^k}=2^{n}$$ for each nonnegative integer $n$?  I tried using the  but I guess I am applying it incorrectly. With the snake oil technique we have $$F(x)= \sum_{n=0}^{\infty}\left\{\sum_{k=0}^{n}\binom{n+k}{k}\frac{1}{2^k}\right\}x^{n}.$$ I think I have to interchage the summation and do something. But I am not quite comfortable in interchanging the summation. Like after interchaging the summation will $$F(x)=\sum_{k=0}^{n}\sum_{n=0}^{\infty}\binom{n+k}{k}\frac{1}{2^k}x^{n}?$$ Even if I continue with this I am unable to get the correct answer.  How does one prove this using the Snake oil technique?  A combinatorial proof is also welcome, as are other kinds of proofs.


I've found similar posts in the forum, but none is specifically correct for my problem.  I'm writing a two columns article (\documentclass[10pt, a4paper, twocolumn]{article}) and I need to break the two columns template for insert a big table. I only want a new page with only the table. Is this possibile? Thanks.

I want a table that is as wide as the whole page in a document with option twocolumn. The table has to be inserted on the bottom of the page, but that is not necessary.  I've tried:  \begin{table*}[b]   ... \end{table*}   But that puts the table at the end of the document instead of on the same page.  I also tried:  \twocolumn[   \begin{table}[b]     ...   \end{table} ]   But that gives me an error: ! Argument of \@xfloat has an extra }. Combining \twocolumn and the star mark gives the same error.  What's the right way to do this?


I've tried exporting this logo as JPEG 640px with a size <1.6mb but it still looks compressed.

I am not a graphic designer at all. The first logo I made was in Photoshop for my Etsy store. Now I want to move off Etsy but can't make my own website until I have good quality graphics.  So I made the logo as a vector in Inkscape.  It looks fine but as soon as I set it as my Instagram logo or anything, it looks super blurry and awful. I have tried different formats and making it the size px instagram requires, but it always comes out looking the same.   I've attached the png and also a screen shot of how it looks on Instagram.


I have installed Ubuntu 17.04 on my laptop and now I want to change to 16.04 LTS because it's a stable version.  What's the correct way to do this without reinstalling the OS?

I just installed a new version of Ubuntu and I want to roll it back to the previous version.  How can I do that? Is that even possible?


Why is this Pandas series giving sum = .99999999 where as answer is 1. In my program, I need to assert on 'sum is equal to 1'. And, assertion is failing even if condition is correct.  s = pd.Series([0.41,0.25,0.25,0.09]) print("Pandas version = " + pd.__version__) print(s) print(type(s)) print(type(s.values)) print(s.values.sum())   The output is:  Pandas version = 0.23.4 0    0.41 1    0.25 2    0.25 3    0.09 dtype: float64 <class 'pandas.core.series.Series'> <class 'numpy.ndarray'> 0.9999999999999999

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


I've made one server and client to send data one between another but that don't work and I don't know why...  A little earlier I have that error message from server:      java.net.SocketException: Broken pipe   and now I have null pointer exception from client on line 23:     java.lang.NullPointerException      at chat.Client.sendData(Client.java:23)   Here it's my code:  Server  public class Server {      private ServerSocket server;     public Socket socket;      public Server() {         try {             this.server = new ServerSocket(Port_and_address.PORT);             this.socket = server.accept();         } catch (IOException ex) {             Logger.getLogger(Server.class.getName()).log(Level.SEVERE, null, ex);         }     }      public String reciveData() throws IOException, ClassNotFoundException {         ObjectInputStream ois = new ObjectInputStream(socket.getInputStream());         String result = (String) ois.readObject();         ois.close();         return result;     }      public void writeData(String message) throws IOException {         ObjectOutputStream oos = new ObjectOutputStream(socket.getOutputStream());         oos.writeObject(message);         oos.close();     }      public void closeSocket() throws IOException {         socket.close();     }      public static void main(String args[]) throws IOException, ClassNotFoundException {         while (true) {             System.out.println("Waiting for client request");             Server server = new Server();             System.out.println(server.reciveData());             server.writeData("TEST SERVER");             server.closeSocket();         }     } }   Client  public class Client extends Thread {      Socket socket;      public void Client() {         try {             this.socket = new Socket("localhost", Port_and_address.PORT);         } catch (IOException ex) {             Logger.getLogger(Client.class.getName()).log(Level.SEVERE, null, ex);         }     }      public void sendData(String message) throws IOException {         ObjectOutputStream oos = new ObjectOutputStream(socket.getOutputStream());         oos.writeObject(message);     }      public String reciveData() throws IOException, ClassNotFoundException {         ObjectInputStream ois = new ObjectInputStream(socket.getInputStream());         ois.close();         return (String) ois.readObject();     }      public static void main(String[] args) throws IOException, ClassNotFoundException {         Client client = new Client();         client.sendData("TEST CLIENT");         System.out.println(client.reciveData());     } }   From some reason the that line give null pointer exception:       ObjectOutputStream oos = new ObjectOutputStream(socket.getOutputStream());    So if anyone of you guys knows what I've do wrong here please tell me.  At the end I want to have one server how can receive any message from any client and response on it, theoretical  I can have a infinite number of clients how can send messages.  Thx for help :)

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


BackSpace key is out of range of my right hand, and everytime I work with text editor in such conditions where I need a backspace key stroke, it makes me look at my keyboard, and so disturbs my rhythm of typing.  I hardly use my Right Windows key. I want to map it to perform as backspace key.   (I have a US standard layout keyboard.)

I'm searching for a way to remap certain keys in ubuntu.  i.e.   I'd like to change PgUp to Home or PgDown to End.  Does a built-in command or a tool exist reassign keys in Ubuntu/GNOME?


Since the crash is coming from internal library of android and the most suspected code is below, this crash is coming in Oreo devices only  ChatAlertDialogFragment chatAlertDialogFragment = ChatAlertDialogFragment.getInstance(bundle); chatAlertDialogFragment.show(getFragmentManager(), ChatAlertDialogFragment.class.getSimpleName());   NOTE: When we replace simple fragment manager with the support fragment manger then it works fine.  This is the exception log  07-18 14:59:45.103 E/AndroidRuntime: FATAL EXCEPTION: main     Process: com.aspiringminds.amcat.debug, PID: 13679     java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.unFocus(android.view.View)' on a null object reference         at android.view.ViewGroup.removeViewInternal(ViewGroup.java:5207)         at android.view.ViewGroup.removeViewAt(ViewGroup.java:5170)         at android.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1561)         at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1611)         at android.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2204)         at android.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2148)         at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2049)         at android.app.FragmentManagerImpl$1.run(FragmentManager.java:718)         at android.os.Handler.handleCallback(Handler.java:789)         at android.os.Handler.dispatchMessage(Handler.java:98)         at android.os.Looper.loop(Looper.java:164)         at android.app.ActivityThread.main(ActivityThread.java:6541)         at java.lang.reflect.Method.invoke(Native Method)         at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)   ChatAlertDialogFragment class code  public class ChatAlertDialogFragment extends DialogFragment {   public static ChatAlertDialogFragment getInstance(Bundle bundle) {     ChatAlertDialogFragment chatAlertDialogFragment = new ChatAlertDialogFragment();     chatAlertDialogFragment.setCancelable(false);     chatAlertDialogFragment.setArguments(bundle);     return chatAlertDialogFragment;   }    @Override   public Dialog onCreateDialog(Bundle savedInstanceState) {     super.setStyle(android.R.style.Theme_Holo_Light_Dialog_MinWidth, android.R.style.Theme_Holo_Light_Dialog_MinWidth);     Dialog dialog = super.onCreateDialog(savedInstanceState);     dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);     dialog.setCanceledOnTouchOutside(false);     dialog.setCancelable(false);     return dialog;   } }


If you care, setter (plural: setters) and getter (plural: getters) are parts of a computer programms that get (or retrieve) and set (or store) values in memory.  But why do you write that words, that are, anyway, rather artificial (do they have uses in other contexts?) with double t?  You don't do it with other words such as producer, consumer. Even words that finish in consonant (reader) or in t (eater) are just added the r or er suffix.  Please clarify this non important issue to me.

in -> inner  out -> outer / (outter?)  What is the history or set of rules behind why 'inner' doubles the 'n' but 'outer' doesn't double the 't'?


I am trying to make a landing page for a company that provides grooming services (for females, like makeup artists, hairdressers etc). I am struggling to find a cover photo for the page due to copyright issues. I need help in finding, if there is a specific website/forum where I can find, images relative to my page.  I am relatively new in this field (designing websites and landing pages). I am looking for something that will describe the service. I am trying to copy a template using different pictures, colour schemes and layout.

I'm always on the hunt for free stock images to use while I design, what are some good resources for images that are under a a royalty free or creative commons licence?


Possible Duplicate:        I have never been able to figure out when to use xml attributes.  I always use elements.  I just read  .  The article states that it is bad practice to use attributes because:    attributes cannot contain multiple values (child elements can) attributes are not easily expandable (for future changes) attributes cannot describe structures (child elements can) attributes are more difficult to manipulate by program code attribute values are not easy to test against a DTD   The only exception that it states is when you are assigning an id to a tag.    Is this correct?  Why do attributes even exist then?  Was it a design error with xml?  Is there something I am missing here?   The only reason I could think of for using attributes would be for one to one relationships.  ie: name.  But it would have to be a one to one relationship to something that is a primitive (or string).  Because it would be important that in the future you would not want to break it up into several differnt sections.  ie:  <date> May 23, 2001 </date>   to:  <date>    <month> May </month>    <d> 23 </d>    <yr> 2001 </yr> </date>   Because this would not be possible with an attribute.    Bonus question: In the date example would it be possible to do something like this:  <date>    <default> May 23, 200 </default>    <month> May </month>    <d> 23 </d>    <yr> 2001 </yr> </date>   To give future applications more (or different) information while still offering existing apps the same format?  Or would you have to do this:  <date> May 23, 2001 </date> <NEWdate>    <month> May </month>    <d> 23 </d>    <yr> 2001 </yr> </NEWdate>

At work we are being asked to create XML files to pass data to another offline application that will then create a second XML file to pass back in order to update some of our data. During the process we have been discussing with the team of the other application about the structure of the XML file.   The sample I came up with is essentially something like:  <INVENTORY>    <ITEM serialNumber="something" location="something" barcode="something">       <TYPE modelNumber="something" vendor="something"/>     </ITEM> </INVENTORY>   The other team said that this was not industry standard and that attributes should only be used for meta data. They suggested:  <INVENTORY>    <ITEM>       <SERIALNUMBER>something</SERIALNUMBER>       <LOCATION>something</LOCATION>       <BARCODE>something</BARCODE>       <TYPE>          <MODELNUMBER>something</MODELNUMBER>          <VENDOR>something</VENDOR>       </TYPE>    </ITEM> </INVENTORY>   The reason I suggested the first is that the size of the file created is much smaller. There will be roughly 80000 items that will be in the file during transfer. Their suggestion in reality turns out to be three times larger than the one I suggested. I searched for the mysterious "Industry Standard" that was mentioned, but the closest I could find was that XML attributes should only be used for meta data, but said the debate was about what was actually meta data.  After the long winded explanation (sorry) how do you determine what is meta data, and when designing the structure of an XML document how should you decide when to use an attribute or an element?


What is grammatically wrong with saying, "She showed me it." I know that should be showed it to me but I can't think of the reason the first is wrong. Thank you.

Both these phrases are correct,         Give me it     Buy me them      so why are these sentences wrong?        Give John it      Buy John them      In these sentences, "me/John" are both indirect objects, and the sentence format is same. So, why are former sentences correct and latter ones wrong?   Also, Do it for me is correct but Do me it is wrong.   What is the reason for this?


I am wondering where I would ask this kind of question (just an example)     What service can do reverse-phonenumber searches for Germany?   The answers would be based on opinions, but would help me with my programming task. I assume this would be closed as such on SO. Because at the least, no code generally makes it a bad question.  Where would be the best place for this type of question instead? If I don't live in Germany, I won't know much about any state-run services, or anything else that isn't marketed much in foreign countries.

Where in Stack Overflow can I ask, which software is best suitable for specific purpose? For example, a good software which is free for fashion related. The application should be able to show a preview how a person looks in different hair styles and eyeglass frames etc.


I'm not sure whether to put is (number agreeing with the singular her whole family) or are (number agreeing with plural biologists) in this sentence:     Her whole family is/are biologists.     After some more searching, it seems to make it correct, the whole would need to be removed.  Based on , I think "Her family are biologists." is technically correct but "All of her family are biologists sounds better."  Still not certain.

I hope you can enlighten me. I get varying answers in Google and I need to find out which is the correct grammatical structure for these sentences.     The rest of the staff is/are on leave at the moment.      The rest of my family is/are arriving late.


Assuming I have a set $A$ of numbers, I'd like to mathematically notate a subset $B$, such that the cardinality of this subset is $x$ and its elements are the greatest $x$ elements of $A$. So, how can I mathematically notate this? Thank you very much for any help.

I would like to know how to express mathematically  $n$ largest values of a given set $A$.   For example: I have an unsorted set $A$ with $100$ values $\in \mathbb{N}$ and want to get a new set $B$ with the $5$ largest values.  Thank you in advance!


With the  hat what is based off from? I swear I've seen that design before but i just can't think of where.   Also if the reason isn't obvious, why is it associated with fanatics (which is what i assume the pun fan-hat-ic came from?)

Getting my hat request in early. I noticed a distinct lack of any royal headgear this year. No crowns, no tiaras, nada. May I suggest a royal hat next year, perhaps this one, sported by Her Royal Highness Princess Beatrice Elizabeth Mary of York at the Royal Wedding?    Since the hat was at first widely ridiculed, became a sensation in its own right, and was then , perhaps on of the following situations could trigger it?   Editing a post with net negative votes resulting in it getting net positive votes? Getting  or  (highlighting the fact that the hat upstaged the princess on this occasion)?  The hat was divisive, some people loved it some people hated it. A post that gats >5 upvotes and >5 downvotes on meta?


A relationship of the form $f(x, y(x))=0$ defines y implicitly. It is possible to find $y'(x)$ at points $x$ where $f$ is differentiable and $\frac{\partial f}{\partial y} \neq 0.$ Show that at such points $y'=-\frac{\partial f / \partial x}{\partial f/ \partial y}.$ My understanding is that using the chain rule $\frac{\partial f}{\partial x}=\frac{\partial f}{ \partial y}y'$. Solving this we get $y'=\frac{\partial f / \partial x}{\partial f/ \partial y}$. I am not clear where the negative in the answer is coming from?

I am trying to prove that, if $f:\mathbb{R}\rightarrow \mathbb{R}$ and $F:\mathbb{R}^2\rightarrow\mathbb{R}$ are differentiable, $F$ satisfying $F(x,f(x))=0$ and $\partial{F}/\partial{y}\ne 0$ then $$f'(x)=-\frac{\partial{F}/\partial{x}}{\partial{F}/\partial{y}}$$  This appears in a section on the chain rule for many-variables functions, but without knowing the details of $F$ I find it very hard to prove much about it.  To the best of my ability to reason about it, I suppose I could say  $$ \frac{\partial{F}}{\partial{x}}=\frac{\partial{F}}{\partial{x}}\frac{\partial{x}}{\partial{x}} + \frac{\partial{F}}{\partial{y}}\frac{\partial{y}}{\partial{x}}$$  but for more than one reason I doubt that what I have written is correct.  Yet I'm not exactly sure what's wrong about it, nor can I guess what else I could do.  I tried finding the partial with respect to $y$ but got nothing more useful looking than this.  I also tried writing out limit definitions and saw no useful path forward through that.


When I am trying sudo add-apt-repository --yes ppa:persepolis/ppa its showing  Hit:1 http://ppa.launchpad.net/persepolis/ppa/ubuntu bionic InRelease           Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]     Hit:3 http://in.archive.ubuntu.com/ubuntu bionic InRelease                      Get:4 http://in.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]    Ign:5 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu bionic InRelease          Err:6 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu bionic Release              404  Not Found [IP: 91.189.95.83 80] Hit:7 http://in.archive.ubuntu.com/ubuntu bionic-backports InRelease Reading package lists... Done E: The repository 'http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu bionic Release' does not have a Release file. N: *****Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.***** .   please Solve this!!

When updating, I get the following error message:   W: The repository 'http://ppa.launchpad.net/mc3man/trusty-media/ubuntu xenial Release' does not have a Release file.   Here, I find another statement on this error:   This recommends removing certain PPAs; and, I'm not sure if I should do that since it might mean not getting the updates that I need.    Is this what I should do?


I am planning to buy a new notebook. I found a cheap one with Radeon HD 7650M . Will it be fully supported by Ubuntu? I had problems with my previous ATI card (xpress 1250) and I do not want to have the same problems again.

I am planning on doing a fresh install of Ubuntu and want to know what is the correct way to install ATI Catalyst Video Driver?      There are multiple valid answers for this question spanning over several versions of Ubuntu. For your convenience an index of each below:


What's the best way to even out areas of concrete patio where rain water collects into 2 large puddles? It also sits right up some against pool decking.  A crack has also formed which I tried to patch with concrete caulking.  I have been trying to find the right solution and don't really understand if I should use a self-leveling product or if it needs to be done in thin layers.

Amending my original question... The edge of slab is only a couple feet from Low area and it would pour into  gravel theoretically if not for the low point.   would it make more sense to try to grind down that portion ...?  ORIGINAL QUESTION-- whats best way to even out areas of concrete patio where rain water collects into 2 large puddles and it also sits right up against pool decking  A crack has also formed which I tried to patch with concrete caulking  Please help I have been trying to find the right solution and dont really understand if I should use self leveling or if it needs to be done in thin layers


The Hot Questions list sometimes includes topics from TeX and mathematics sites. These sites have MathJax enabled to permit users to better ask questions. When a question with such markup in the title appeared in the MultiCollider SuperDropdown on a non-MathJax site, the MathJax markup appeared instead.  It probably wasn't a big deal because you'd have to go looking for the Hot Questions in the first place, and users who would do that most likely wouldn't mind.  Now that the new top bar has moved the Hot Questions list from the MultiCollider SuperDropdown to the sidebar, however, it's more of a broken window:    Obviously MathJax support on all sites isn't something that will happen anytime soon, and with reason. But. . . this really does look bad, and it's more visible now that the Hot Questions list is Right There on the Home Page.  Is it possible to suppress Hot Questions containing MathJax markup on non-MathJax sites, or otherwise prevent raw markup from invading the front page? (. Also see .)  No, I'm perfectly aware that it matters about as much as reputation does. Given that it's been nearly three years since this was first discussed, it's possible there's a better way to make it work than enabling markup support on all sites.

Recently, the TeX.SE question  got onto the Hot Network Questions list.  Like many questions on TeX.SE, it contains some TeX markup in its title.  Unfortunately, on , this markup gets parsed and rendered as math:    I propose that either:   the entire Hot Network Questions sidebar should be excluded from MathJax parsing by styling it with the tex2jax_ignore class, or at least, any hot questions from TeX.SE should be so excluded from MathJax parsing.   Or I suppose we could always implement , which asks for all questions with TeX in the title to be excluded from Hot Network Questions entirely.  That might be throwing out the baby with the bathwater, though.    Ps. This issue is partially masked by , which causes MathJax not to be rendered in many elements that are hidden by default and revealed using jQuery .show(), such as all but the first five questions in the Hot Network Questions sidebar.  The  user script contains a generic fix for that bug, so users who have it installed will see this issue more frequently, but it occurs even without SOUP whenever a question with TeX markup in the title happens to show up among the top five hot questions that are always visible by default.


The following infinite sums produce remarkable results.  $1+2+3+4+...=-\frac{1}{12}$   $1-2+3-4 +...=\frac{1}{4}$   So how are these results compatible with the statement; that integers are closed under addition? Analysis and algebra seem to disagree here.      Is this some sort of abuse of notation?   Is this an example of inconsistent statements under the logicians meaning of the word inconsistent?    And are there any other examples of seemingly contradictory statements from history or presently?  Note. I'm not asking for a proof of the results.

$\displaystyle\sum_{n=1}^\infty \frac{1}{n^s}$ only converges to $\zeta(s)$ if $\text{Re}(s) > 1$.  Why should analytically continuing to $\zeta(-1)$ give the right answer?


s3unichrome 3D gpu 256mb of ram can upgrade to 512mb AMD sempron 3100+ @ 1.8ghz  100gb hhd  emachine  t3104   The computer runs Windows XP but slowly and it crashes. It is about 13 years old and has the original Windows install.

For a given hardware configuration, how do I find out if Ubuntu will run on it? What considerations should I take into account when choosing an Ubuntu version and  such as:    with a lighter desktop than the usual Gnome and Unity  with the even lighter LXDE desktop   Obviously Ubuntu does not run on some processor architectures. So how do I go about choosing the right version and derivate. How can I find out the minmal system requirements?


I'd like to execute a script in ~ with a command that needs elevated rights. This example should suffice:  cp /etc/AAA/* /etc/BBB/   Now if that copying script would be started in, say, scripty.sh with the +x bit set, it wouldn't work.  This is actually about exchanging the xbacklight -set $brightness_night-commands like ddcutil setvcp 10 70 in a script to .  How can I script this to avoid entering my password each time the brightness is changed? Or would this be the easiest way still?

I need to run something as sudo without a password, so I used visudo and added this to my sudoers file:  MYUSERNAME ALL = NOPASSWD: /path/to/my/program   Then I tried it out:  $ sudo /path/to/my/program [sudo] password for MYUSERNAME:    Why does it ask for a password? How can I run/use commands as root with a non-root user, without asking for a password?


Is it possible, if a subscriber wants to enter wp-admin, that the page would be rdirectet to any page I want ?  If yes, please how :) ?

I am trying to create a hook that when a user login, it check the user role.. if the user role is jsa_contributor then it redirect into specific page. but it seems my code didn't work.  This is the code..  function my_login_redirect($login) {     $data_login = get_option('axl_jsa_login_wid_setup');     $redirect_page = $data_login[0];      $logout_redirect_page = $data_login[1];      $current_user = get_user_by('login',$login);     if($current_user->roles == 'jsa_contributor'){         wp_redirect(get_permalink($redirect_page)); /* Redirect browser */         exit();     } }  add_action('wp_login', 'my_login_redirect', 99);   does anyone have an idea about this? thanks in advance...


I have  and  on my current Windows computer. I am thinking of getting a new computer, one with Ubuntu Linux.  Will these programs work on the new computer?

I thought that there was no need to scan for viruses either in Ubuntu or any Linux distros until I found virus scanner packages clamtk and klamav in Ubuntu software center yesterday.  This leads to the following questions:   How do viruses differ between Linux and Windows? How do the strategies for protection differ between Linux and Windows? Should a virus scanner package be installed on my system? If so, which would be a better option?


When restarting Ubuntu the static DNS configuration in /etc/resolv.confdisappears.  See this

I have finally migrated to 12.04 from 7.10. I have one last part to complete but I am stumped. I am using Puppet on each server, and in the past I have included a nameserver address and a search domain name for the puppetmaster in resolv.conf.   search puppetmaster.com nameserver 192.168.1.XXX   In 12.04 resolv.conf gets overwritten when rebooted. I cannot use a static IP for these, so using the /etc/network/interfaces to help me out is a nill point.  # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) #     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN nameserver 127.0.0.1   Is there a way to get resolvconf to handle this either in the head, tail or base? If there is, are there any examples I can use to tweak on my server.   Any help is much appreciated.


Which of these sentences is correct?  A) This is the toughest part to me. B) This is the hardest part for me. C) This is the toughest part for me. D) This is the hardest part to me.

Which one should be used?      To me, it makes no difference, but I'm not really sure why.   vs     For me, it makes no difference, but I'm not really sure why.


From 2013-2015, I had an old Minecraft account that I migrated on a computer I don't have anymore using an email that I don't remember. I sort of forgot about it until pretty recently, where I now struggle in trying to get it back.  I checked and made sure that my account has not been compromised and I've tried every method that I could, from trial and error to sending password change requests to every email I can remember. I can't get into the account but I'm opposed to buying it again. I've even looked up hacking programs among other things to no avail because they're randomized and meant for attacking random accounts. Anything I could do would be appreciated.  Note: As I do not remember the email, I do not have the transaction ID.

I tried to log into Minecraft today to find that my password isn't working. I tried to change it, but I can't login to my email because I forgot the answer to my security question. I tried changing the email to a different one, but that didn't work for some reason (it kept saying "invalid email"). I don't have my transation ID because I forgot which credit card I used.  Does this mean that I have to buy a new Minecraft account?


I have an idea of how quantum mechanics work, but I know too little to understand which products are a result of certain reactions like bombarding a certain atom with neutrons or just by natural decay. How can they be predicted?

I know there are tables of decay chain of radioactive elements. Is there a way to predict the whole chain from the first radioactive element?


It seems like "A European" is the correct one but why ?   Is this a general rule about Capitalized words?

On a Physics specification, it says:     6.7 Know how to use two permanent magnets to produce a uniform magnetic field pattern.   Isn't it "produce an uniform magnetic field", or is the existing "produce a uniform magnetic field pattern" correct?


Simplify the expression $\sin 4x+\sin 8x+\cdots+\sin 4nx$   I have no idea how to do it.

How can we sum up $\sin$ and $\cos$ series when the angles are in arithmetic progression? For example here is the sum of $\cos$ series:  $$\sum_{k=0}^{n-1}\cos (a+k \cdot d) =\frac{\sin(n \times \frac{d}{2})}{\sin ( \frac{d}{2} )} \times \cos \biggl( \frac{ 2 a + (n-1)\cdot d}{2}\biggr)$$  There is a slight difference in case of $\sin$, which is: $$\sum_{k=0}^{n-1}\sin (a+k \cdot d) =\frac{\sin(n \times \frac{d}{2})}{\sin ( \frac{d}{2} )} \times \sin\biggl( \frac{2  a + (n-1)\cdot d}{2}\biggr)$$   How do we prove the above two identities?


As one of my friend got refusal for visit visa and they give him reason that "Your intention to leave the territory of the member states before expiry of the visa could not be ascertained. My question is if he wants to appeal , he has to take appointment again for german embassy to submit letter in person and in the letter that he received they mentioned information regarding appeals that " an action with the Administrative Court in Berlin" , what does that mean ?  Which is the best way to get a visa as soon as possible - by appeal or applying again?

Schengen refusal formulae can be difficult to understand sometimes.  Sometimes an applicant receives a refusal with:       Justification for the purpose and conditions of the intended stay was not reliable.     often accompanied by:       Your intention to leave the territory of the Member States before the expiry of the visa applied for could not be ascertained.   What is meant by this refusal reason?  What are they trying to say?


I need to make an egress window and the depth below grade is 24".  However, most egress window wells at home improvement stores are 20" in height and I need to buy 2 of them which made the cost double.    I am thinking about using cement blocks to make the well like so    It may cost me only $200 vs $800.  My questions: 1. Is this allow by code (in general)? I am in Washington State   How to prevent water leakage inside the well? Basically do I need to seal it (like bathroom)?   Thanks.

I am having some contractors build a window well for an egress window at my house. I have the option of doing solid concrete walls for the window well, or cement blocks (which he said he will fill with cement anyways). The concrete walls are significantly more expensive (about 1k more) so I am thinking of just going with concrete blocks, but are there significant reasons why I should choose the concrete walls instead and suck up the extra cost?   Also, do people typically put some type of drainage system in the bottom of the egress window well (sump pump or otherwise)? Is it necessary?


I have the following code:  #include <string> #include <iostream>  class A{ public:     virtual void print() {std::cout << "A" << std::endl;}; };  class B : public A{ public:     void print() {std::cout << "B" << std::endl;}; };  int main(){     A* a1;     a1 = new B;      B b;     A a2 = b;     a1->print();     a2.print();      std::string s2;     std::getline (std::cin,s2);  }   And the output that it produce is  B A   Now, why it the derived method called when the object is a pointer and the base method when the object is not?

Someone mentioned it in the IRC as the slicing problem.


Wi-fi gets disconnected automatically in Ubuntu 16.04 LTS. Disabling and Re-enabling the wi-fi doesn't work until I reboot.  $ sudo lshw -class network command is: description: Ethernet interface    product: RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller    vendor: Realtek Semiconductor Co., Ltd.    physical id: 0.2    bus info: pci@0000:02:00.2    logical name: enp2s0f2    version: 06    serial: 70:8b:cd:d2:3a:42    size: 10Mbit/s    capacity: 100Mbit/s    width: 64 bits    clock: 33MHz    capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation    configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl8402-1_0.0.1 10/26/11 latency=0 link=no multicast=yes port=MII speed=10Mbit/s    resources: irq:48 ioport:5000(size=256) memory:9b210000-9b210fff memory:c2100000-c2103fff   *-network        description: Wireless interface        product: RTL8723BE PCIe Wireless Network Adapter        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0        bus info: pci@0000:03:00.0        logical name: wlp3s0        version: 00        serial: 74:df:bf:fd:84:88        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless        configuration: broadcast=yes driver=rtl8723be driverversion=4.4.0-64-generic firmware=N/A ip=172.17.8.197 latency=0 link=yes multicast=yes wireless=IEEE 802.11bgn        resources: irq:19 ioport:4000(size=256) memory:9b100000-9b103fff

I have installed Ubuntu 15.04 on my laptop with RTL8723BE Wi-fi card. But it is always disconnecting from network. I have tried echo "options rtl8723be fwlps=N ips=N" | sudo tee /etc/modprobe.d/rtl8723be.conf but that didn't helped. What can I do to prevent the wifi from disconnecting? If I upgrade to kernel 4.X, will it help?  ~$ lspci -knn | grep Net -A2  09:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter [10ec:b723]     Subsystem: Hewlett-Packard Company Device [103c:2231]     Kernel driver in use: rtl8723be   ~$ rfkill list 0: hci0: Bluetooth     Soft blocked: yes     Hard blocked: no 1: phy0: Wireless LAN     Soft blocked: no     Hard blocked: no   ~$ ifconfig && iwconfig && route -n && ping -c 1 google.com eth0      Link encap:Ethernet  HWaddr 38:63:bb:cd:4a:7e             UP BROADCAST MULTICAST  MTU:1500  Metric:1           RX packets:3 errors:0 dropped:0 overruns:0 frame:0           TX packets:53 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000            RX bytes:752 (752.0 B)  TX bytes:8445 (8.4 KB)  lo        Link encap:Local Loopback             inet addr:127.0.0.1  Mask:255.0.0.0           inet6 addr: ::1/128 Scope:Host           UP LOOPBACK RUNNING  MTU:65536  Metric:1           RX packets:3870 errors:0 dropped:0 overruns:0 frame:0           TX packets:3870 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:0            RX bytes:314613 (314.6 KB)  TX bytes:314613 (314.6 KB)  wlan0     Link encap:Ethernet  HWaddr c0:38:96:6d:c4:83             inet addr:192.168.1.205  Bcast:192.168.1.255  Mask:255.255.255.0           inet6 addr: fe80::c238:96ff:fe6d:c483/64 Scope:Link           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1           RX packets:15240 errors:0 dropped:0 overruns:0 frame:0           TX packets:14627 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000            RX bytes:14410285 (14.4 MB)  TX bytes:2192744 (2.1 MB)  eth0      no wireless extensions.  wlan0     IEEE 802.11bgn  ESSID:"DIR-615"             Mode:Managed  Frequency:2.437 GHz  Access Point: 00:90:4C:08:00:0D              Bit Rate=150 Mb/s   Tx-Power=20 dBm              Retry short limit:7   RTS thr=2347 B   Fragment thr:off           Power Management:off           Link Quality=70/70  Signal level=-22 dBm             Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0           Tx excessive retries:0  Invalid misc:186   Missed beacon:0  lo        no wireless extensions.  Kernel IP routing table Destination     Gateway         Genmask         Flags Metric Ref    Use Iface 0.0.0.0         192.168.1.1     0.0.0.0         UG    400    0        0 wlan0 169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 wlan0 192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 wlan0 PING google.com.Dlink (172.26.136.19) 56(84) bytes of data. 64 bytes from 19.136.26.172.in-addr.arpa (172.26.136.19): icmp_seq=1 ttl=249 time=102 ms  --- google.com.Dlink ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 102.547/102.547/102.547/0.000 ms


Tax-residency --> Resident Alien Immigration status --> F1 - OPT There is a similar question  but not the same. My question is: Assume that I sold some mutual funds and stocks, however never withdrew money out of the brokerage account. Do I still need to pay taxes on the gain? I re-invested the money sold and earned more on them. Also, my broker has not sent me any 1099 form for these transactions. Please advise.

Let's suppose one sells an asset for a $200,000 profit after holding it for 10 year but then immediately sinks the entire sale price into another asset. Is one still expected to pay the capital gains tax? What cash is one expected to pay the taxes from? How do tax liabilities work in this scenario?


$$\int \sqrt{x+\sqrt{x^2+2}}\ dx$$  I tried various solving methods but I am not coming forward. I unformed the term also to ${x+\sqrt{x^2+2} \over \sqrt{x+\sqrt{x^2+2}}}$  and even multiplied with ${\sqrt{x-\sqrt{x^2+2}} \over \sqrt{x-\sqrt{x^2+2}}}$.   Trigonometric and hyperbolic substitution didn't help either.

Q)  $\int\sqrt{x+\sqrt{x^{2}+2}} dx$ .  Tried rationalising the numerator twice to get Numerator =-2 but not able to simplify denominator   The question reduces to (as per my rationalising)  $$\int \frac{-2}{\bigl(x - \sqrt{x^2+2}\bigr)\sqrt{x + \sqrt{x^2+2}}}\,dx$$


I am very new to Python. I am curious to how I would be able to copy some files from my directory to another Users directory on my computer using python script? And would I be correct in saying I need to check the permissions of the users and files? So my question is how do I send files and also check the permissions at the same time

What's the most pythonic way to scp a file in Python?  The only route I'm aware of is   os.system('scp "%s" "%s:%s"' % (localfile, remotehost, remotefile) )   which is a hack, and which doesn't work outside Linux-like systems, and which needs help from the Pexpect module to avoid password prompts unless you already have passwordless SSH set up to the remote host.  I'm aware of Twisted's conch, but I'd prefer to avoid implementing scp myself via low-level ssh modules.  I'm aware of paramiko, a Python module that supports SSH and SFTP; but it doesn't support SCP.  Background: I'm connecting to a router which doesn't support SFTP but does support SSH/SCP, so SFTP isn't an option.  EDIT: This is a duplicate of .  However, that question doesn't give an scp-specific answer that deals with keys from within Python.  I'm hoping for a way to run code kind of like  import scp  client = scp.Client(host=host, user=user, keyfile=keyfile) # or client = scp.Client(host=host, user=user) client.use_system_keys() # or client = scp.Client(host=host, user=user, password=password)  # and then client.transfer('/etc/local/filename', '/etc/remote/filename')


I have a file which contain data like below Data in file : axbnx $56 ghjas $78$ axbnx $5** ghjas $  axbnx $006 ghjas $$678   Needed Output in below form : axbnx $** ghjas $**$ axbnx $*** ghjas $  axbnx $*** ghjas $$***   My code : [It is not working] sed -E 's/$[[:digit:]]/*/g'  Try to work on this emulator :

S-123-P Bash Pocket Ref.        2010    Cengage Learning    $55 E-P234  Python Pocket Ref.      2012    Cengage Learning    $45 55-MNP  Unix System Programming 2001    Sybex               $230  I need to replace the numbers after the $ not including the $ with *, so the output need to be: S-123-P Bash Pocket Ref.        2010    Cengage Learning    $** E-P234  Python Pocket Ref.      2012    Cengage Learning    $** 55-MNP  Unix System Programming 2001    Sybex               $***  I've been able to replace the last digit or last 2, but not every digit after the $. I've tried sed and awk gsub but nothing I try seems to work.


From what I have been reading, the input stages to BJT TTL logic gates are emitter terminals of transistors. As such, when the input to these gates is logic low the base-emitter junction of these input transistors will be forward biased and source current (sinking into the first stage). Further, this is the reason we find that tables similar to the following in some datasheets :    I am referring to the polarity of the current when considering polarity of logic levels. Specifically, the fact that maximum operating condition of -800uA for a logic level high is non-intuitive. Should it not be that when a gate is driven LOW the second-stage gate actually sink current into the first-stage? That is, shouldn't sinking current (logic low output state) be negative and sourcing current (logic high) be positive?   My concern is how this maximum current sink metric is related to the maximum current that may be sourced when the output of a gate is driven to a logic high state. Specifically, I had the following condition as of late:     I was recently designing a circuit that used a 74LS163 counter where the outputs were fed into some second stage logic. However, I placed some LED indicators temporarily at counter output while prototyping this circuit in order to see what the count value was at a given time. I used series resistances of 1k to severely limit the current in order to not load the output driver too much, but saw a very significant output voltage drop anyway.   Specifically, The LED I was using had a forward voltage of 2.5V. The nominal, unloaded, output of the counter was 4.5V. With the 1k series resistance we find that a mere 2mA would be drawn to drive the LED. I found that the LED indeed was dimly lit, but the output voltage dropped 1V to 3.45V despite such low current demand.   tl;dr : This led me here. The maximum current when the output is driven high is given as a maximum sinking current, but obviously the counter sources some level of current at this voltage. How do these values shown in the datasheet relate to sourcing current at logic HIGH and sinking current and LOGIC low?

I'm using a SN74LVC245A () to shift 5V TTL down to 3.3V so I can read the signals with a Raspberry Pi.  However I am getting really weird results (a 60Hz input signal is picked up by the Pi at anything between 110Hz and 320Hz) and I'm really confused about how to read the datasheet to figure out whether I need pullup or pulldown resistors.  The datasheet says on page 4 the "high-level output current" is -24mA, and the "low-level output current" is 24mA.  So to me this means that when the device is outputting a high signal, it is able to sink 24mA of current (since outputting a negative amount of current suggests the current is going into the device instead.)  But then if you're outputting a positive voltage, isn't that sourcing current?  Why is the figure listed as a negative value?  Is anyone able to explain what these figures actually mean?  When I disconnect the 74LVC245 output from my GPIO pin, I still get weird signals from the floating input pin so I am assuming this means the 74LVC245 output is also floating in one state, but I don't know in which state it is (i.e. is it left floating on a high output signal or a low one?)  It doesn't really make sense to be floating on a high output signal since it's a level converter and the whole point is to maintain the correct 'high' voltage, so do I need pulldown resistors to handle the low output?  If so, why does the datasheet seem to suggest the chip can both source and sink current?  (In my mind, source current means the device can output a current with a positive voltage, while sinking current means the device takes in anything and connects it to GND, so perhaps that is where I am going wrong.)  Anyway I'm quite confused so any clarification would be much appreciated!


Alright, here's what I need. I need links between nodes a la , but, unlike that package, I need linking arrows that appear beneath the sentence as opposed to linking arrows that appear in the right margin.   And here's another constraint. I would like this to work in an enumerate environment. So, for example, I would like to be able have something like this      \begin{quote}     \begin{enumerate}     \item[(1)] \node{A man} walked in. \node{He} sat down.      \end{enumerate}     \end{quote}   where there is an arrow that starts with the pronoun he and which then points back to the noun phrase a man. And like the arrows in tkz-linknodes, I want this to be a non-curved arrow with right angles.  Maybe this can be done easily in TiKz, but I'm having trouble doing this in a way that plays nice with the enumerate environment and I can't seem to get tkz-linknodes to do this either.  Any help would be greatly appreciated!

PSTricks' \Rnode makes it easy to add annotations to a complex equation typeset by (La)TeX:    Simply add \Rnodes around existing elements of the equation, and the mathematical typesetting is preserved.  How is this achieved in TikZ, with the same simplicity?  The LaTeX code which produced the above example:  \documentclass[12pt]{standalone} \usepackage{pst-node}  \begin{document}  \raisebox{0ex}[4ex][5ex]{  $\rule{0ex}{5ex} R^{\alpha \beta} -  {1 \over 2}R g^{\alpha \beta} +  g^{\alpha \beta} \Lambda  = \frac{8 \pi G}{c^4 \mu_0}  \left(    F^{\alpha}{}^{\Rnode{a}{\scriptstyle\psi}}   % <---- 1st \Rnode   F_{\Rnode{b}{\scriptstyle\psi}}{}^{\beta} +  % <---- 2nd \Rnode   {1 \over 4} g^{\alpha \beta} F_{\psi\tau}    F^{\psi\tau}\right) \ncbar[linecolor=blue,angle=-90,nodesep=1pt,arm=2ex]{<->}{a}{b}$ }  \end{document}


I followed the askubuntu directions for installing wine on linux 17.10 with a view to installing microsoft office. However, when I tried to download wine by pressing reload (see step 11 below) I got the error message "failed to download repository information". Can anybody include a link which gives foolproof instructions (maybe on youtube). I'm pretty new to linux (3 days in) and so am more or less a beginner. Instructions were:   click on the Applications menu Type software Click Software & Updates Click on the Other Software tab Click Add Enter ppa:ubuntu-wine/ppa in the APT line section (Figure 2) Click Add Source Enter your sudo password Click Authenticate Click Close When prompted, click Reload Open the Software Center Search for Wine Click the Wine entry and then click Install   Allow the installation to complete.  Link for these instructions is:

I am looking for a step by step instruction to guide me in the ways of installing, configuring and debugging many of the issues new users have when dealing with Wine in Ubuntu.  What is the recommended way of installing Wine, some of the key issues that it has and how to solve them?  If I have a specific problem with an App in Wine, how do I go about solving it? What are the recommended steps to ensure that I can fix a problem related to an app I wish to use?


I applied for a 90-day visa and got a long-term visit, single-entry tourist visa. The date given is 12-May-2016, and it's valid until 12-July-2016.  My agent says the 12-July is the latest date I can travel to Dubai; once I enter I need to count 90 days. If I enter on 23th May, shall I count 90 days from that day?     Is it true, or where can I get it checked?

I applied for a 90-day visa and got a long-term visit, single-entry tourist visa. The date given is 09-March-2015, and it's valid until 07-May-2015.  My agent says the 7th is the latest date I can travel to Dubai; once I enter I need to count 90 days. I entered on the 10th of March.    Is it true, or where can I get it checked?    Can I stay for another month, or do I need to leave before the 7th of May?


Take $A_{1}=\{ z: 1<|z|<R_1 \}$ and $A_{2}=\{ z: 1<|z|<R_2 \}$, wirh $R_1, R_2 > 1$. Then $A_1$ and $A_2$ are biholomorphic  if and only if $R_1= R_2$. My work: If $R_1= R_2$ then $A_1$ is biholomorphic to $A_2$ is clear. But for the converse, I asserted that if $f$ is a biholomorhism between $A_1$ and $A_2$ then $f$ maps the inner circle of radius $1$ of $A_1$ to the inner circle to the inner circle of $A_2$, I used open mapping theorem to prove this. But I cannot see anything after this.

I'm self-studying some complex analysis, and apparently holomorphic bijections between two annuli exist precisely when the ratios of the radii are the same. More exactly, if $A_{\sigma,\rho}=\{z\in\mathbb{C}:\sigma&lt|z|&lt\rho\}$, then there is a holomorphic bijection between $A_{\sigma,\rho}$ and $A_{\sigma',\rho'}$ iff $\rho/\sigma=\rho'/\sigma'$.  Is there a reference where this fact is proven? Or can a proof be included here if it's not overly involved? Thanks.


I always stumble upon questions which are in need of being closed. However, I often forget whether I voted to close a question or not, so I click on "close (x)", wait for the close dialog to load and see whether I've voted or not.  Why not make it clear from the very start? How about highlighting the "close (x)" link when a vote to close is already raised?  No vote raised:    Vote already raised:

Since "" we now have the possibility to retract close votes.   However, as mentioned in "" there is no indication when looking at a question to see if I have already cast such a close vote.  Therefore, could we have a UI improvement to show this? Adding some image with freehand circles to improve visibility.


If $a$ is a $\mathbb Z / p\mathbb Z$ generator, if $k$ is not a multiple of $p-1$, $a ^ k \not\equiv 1\pmod p$.  I don't understand why.  What does "$a$ is a $\mathbb Z / p\mathbb Z$ generator" mean?  Please tell me.

I've read about Fermat's little theorem and generally how congruence works. But I can't figure out how to work out these two:   $13^{100} \bmod 7$ $7^{100} \bmod 13$   I've also heard of this formula:  $$a \equiv b\pmod n \Rightarrow a^k \equiv b^k \pmod n $$  But I don't see how exactly to use that here, because from $13^1 \bmod 7$ I get 6, and $13^2 \bmod 7$ is 1. I'm unclear as to which one to raise to the kth power here (I'm assuming k = 100?)  Any hints or pointers in the right direction would be great.


So I'm a college student that has taken 3 semesters of calc/diff eq/linear algebra and I think linear algebra has been by far my favorite course so far and I would love to know more in the subject, the style of a consistent theorem/proof approach really appealed to me. So I ask what is a good book or resource to learn more advanced linear algebra or should is there other subjects I need to come to grips with first?  specifically I'd like to become more familiar with metrics/tensors

I'm taking an advanced linear algebra course and I'm a little confused about books. The teacher said we could use any book we wanted to, but he recomended just Hoffman and Kunze and also Kostrikin, however, those seem to be not quite sufficient since it seems he's teaching in a little more advanced way.  Indeed in the first class he proved from Zorn's Lemma that every vector space admits a basis and in the second class he defined direct product, direct sums (both internal and external), proved the rank nullity theorem and some other things. Most of things he did in a very general context (families of vector spaces indexed by some arbitry set of indexes and with dimensions being finite or infinite).  I'm looking for a good advanced book on linear algebra to review what he did in class, but the books he recommend do not go so far if I'm right. I've studied multilinear algebra once with Kostrikin's book, but he never generalized things to arbitrary families of vector spaces and things like that.  Which books at this kind of approach are recommended?  Thanks very much in advance!


Why it is not possible to possible on ubuntu to install antivirus or other software just by downloading exe file instead of using command line?  Im having all the pains to install free AVG 2014 on ubuntu 12.04 Thanks

I thought that there was no need to scan for viruses either in Ubuntu or any Linux distros until I found virus scanner packages clamtk and klamav in Ubuntu software center yesterday.  This leads to the following questions:   How do viruses differ between Linux and Windows? How do the strategies for protection differ between Linux and Windows? Should a virus scanner package be installed on my system? If so, which would be a better option?


So my girlfriend is from Indonesia, and according to her she went to a US embassy some years ago before we even met and tried to visit the US on a vacation. They gave her a list of documents to bring like a birth certificate, proof of where she was employed, etc and that she had to have $10,000 in her bank account to prove she could support herself for the trip.  There's a noticeable difference in the value of USD and IDR so she of course didn't have enough at the time and they rejected her application. I'm wondering however if she could prove other means of financial stability for her trip. Maybe prove she's dating a US citizen and that I'll be accommodating her.  After Googling I didn't find anything about a required bank balance or anything like it. So I'm not sure where to look.  Any info would be very much appreciated, thanks.

On Travel.SE we often see questions about a person (usually a love interest) asking for money to pay for airfare, visas, permits and other expenses. For example        What general advice can be given in such situations to the person asking the question? Is it all a scam or can there be legitimate situations in which an online friend could be asking for money?


My data frame looks something like this  USER OBSERVATION COUNT.1 COUNT.2 COUNT.3 A    1           0       1       1 A    2           1       1       2 A    3           3       0       0   With dplyr I want to build a columns that sums the values of the count-variables for each row, selecting the count-variables based on their name.  USER OBSERVATION COUNT.1 COUNT.2 COUNT.3 SUM A    1           0       1       1       2 A    2           1       1       2       4 A    3           3       0       0       3   How do I do that?

I want to use a Track-Bar to change a Form's opacity. This is my code: decimal trans = trackBar1.Value / 5000; this.Opacity = trans;  When I build the application, it gives the following error:  Cannot implicitly convert type decimal to double   I have tried using trans and double, but then the Control doesn't work. This code worked fine in a past VB.NET project.


I applied for a UK visa for work 3 weeks ago and received an email (see below) saying that a decision has been made. But I don't know what exactly it means. I called them and they say that they can't retrieve the result. My friend who got her visa approved said that her email didn't look like this. So I was wondering whether this foreshadows an unsuccessful application?     Dear XXXXX      Regarding Visa Application: GWFXXXXXX                For: XXXXX      A decision has been made on your UK Visa application.      If you applied via a US Dept. of Homeland Security Application Support Centre or a VFS Premium Application Centre and chose to have your passport mailed back to you directly, that will take place shortly.      If you submitted your application via a VFS Premium Application Centre and chose to collect your passport in person at the end of the process, they will be in contact with you to provide further guidance.       If anyone contacts you advising that your application is still under consideration or that they can influence the outcome of your application in any way, they cannot - please report any such approach to VisaSheffield@homeoffice.gov.uk.       You should not expect to receive any further emails from this office.      Regards      Sheffield Visa Section      This is an automated message - please do not respond to this email address as incoming mail is not answered. UKVI contact details can be found at www.gov.uk/contact-ukvi-outside-uk      This email is intended for the addressee(s) only.  All messages sent and received by the Foreign & Commonwealth Office may be monitored in line with relevant UK legislation    available at

I received the following email this morning. Does it mean that my visa has been granted?  UK Visas & Immigration has now assessed your UK visa application and made a decision. Your documents and the decision will be sent back to either the UK Visa Application Centre where you applied, where we will contact you by email over the next few days to collect them, or if you are using the courier return service, will be sent directly back to the address provided. Please note that TLScontact does not know the outcome of the assessment and has played no role in the decision-making process. Kind regards, TLScontact UK VIsas & Immigration


This is probably a real noob question...  I would like to understand what the "updates" alerts I get when logging onto my Lubuntu box actually mean.  When I read:  35 packages can be updated. 22 updates are security updates.   I understand that there are 22 security updates and 13 "regular" updates, for a global count of 35 updates.  As I want to run only security updates, I run:  sudo unattended-upgrade   But after that, I do not get any update notification any longer until the next updates cycle, so all the packages, security and not security, seem to be updated.   This seems also confirmed with:  sudo /usr/lib/update-notifier/update-motd-updates-available   Which replies with a blank output.  Someone can explain? Thanks!

sudo apt-get upgrade installs all updates, not just security updates. I know that I can use Update Manager to select only important security updates, but is there a way to do this from the command line?


I am using a fantastic  to try and generate a CV. I have installed Tex Live 2016 this morning.  When I try and compile the cv.tex document, I am prompted with the following error:  "fontspec error: "font-not-found" The font FontAwesome cannot be found...."    on Line 164. The document successfully compiles with the Educations, Skills, Experience sections but does not include the heading (persons name and contact details).  Following this , I tried to place the relevant .ttf files in my local directory, using  ~texmf\tex\xelatex\fonts\truetype\awesomefont   But this has not helped.  A contributor to the github document informed me that the fontawesome package is installed with a default TeX Live installation. . He then suggested I compile the following example  \documentclass{article} \usepackage{fontspec} \RequirePackage{fontawesome} \begin{document} \faCodeFork \end{document}   For which I generate a blank document. So where must I place the .sty or .ttf files so the document can be successfully compiled?

I'm using the latest version of MacTeX 2013 on OS X 10.8.4. All of my Tex Live packages are fully up-to-date. Tex Live also lists the fontawesome package as installed. I'm trying to use the FontAwesome font with XeLatex or LuaLatex and getting font-not-found errors. The exact message is: kpathsea: Running mktexmf FontAwesome ! I can't find file `FontAwesome'.  There's a longer traceback which I am omitting for brevity. Let me know if it's needed to resolve this problem. I have already tried running the following commands, to no avail: sudo -H mktexlsr sudo -H updmap-sys  Other than the above two commands, this is a 100% new out-of-the-box installation, with no modifications whatsoever. Here's a minimal broken example: \documentclass{article} \usepackage{fontawesome}  \begin{document} \faTwitter \end{document}  How can I add this missing font? Edit (Q1 2021): Please see Justin Curry's answer regarding an update to the package name from fontawesome to fontawesome5.


I have a brand new laptop with a brand new install of Ubuntu 18.10 and I am very pleased with both the machine and the OS.   One thing, however is bothering me: Under gparted my main hard drive (an SSD actually) is labelled  /dev/nvme0n1p1 (the EFI partition) and /dev/nvme0n1p2 (the Ubuntu partition) rather than /dev/sda1 and /dev/sda2 in all of the other releases of Ubuntu I have used before. Also a mounted SD card is shown in gparted as /dev/mmcblk0p1 rather that /dev/sdb.  Why the new, hard to remember, labels?

I installed a dual boot of Ubuntu 16.04 (Windows being my other OS) two months ago to try it out. I want to allot more space to it on my hard drive. I was looking up tutorials, and I noticed that my filesystem names don't look anything like those in the tutorials. For example:  df -h   outputs:    How would I allot more space to Ubuntu (in layman's terms)?


I saw this movie years ago and can't quite remember it. All I remember is there was a crew trapped in space and they're trying to survive but someone on the crew is sabotaging them. The drinking water gets poisoned so they have to drink their own urine. There's a man with a leg injury that he can't tell is getting really infected and bad because the saboteur gave him these injections that numb his leg.  That's pretty much all I can remember, so if anyone can help me with the title somehow, that would be amazing. Thanks!

I need help identyfying this movie I once saw late night on TNT, late 90s or early 2000s.  I don't have very clear recollection about it. The movie was very strange. It all took place in a single room of a spaceship or an escape pod that had lost power. A woman and a man, or several men, were stuck in a ship or a spacepod that was somehow damaged or didn't have power.   The movie was entirely made of the dialogs between the woman and the man (or men). They would talk about what was happening outside, how to contact help, about their lives. During their conversation details about the world around them emerge. In this movie people have colonized the solar system but not moved outside it, and there is some sort of a war.  Other things I remember are that it was dark in that room. I think they used only a lightbulb or even direct starlight and sunlight (if they were far away from the sun), because there was no power. Also it was getting colder, becaus the ship's heating system was not functioning, and so it was losing its heat. The people would constantly complain about how cold it's getting. I think that the woman was the captain of the ship. She would sometimes go to the control cabin and try to do something to help their situation, either restore power or contact someone so they can be rescued.  What impressed me about it was how they managed to make it realistic. Because the actors would talk and act like it was all real, it made it somehow feel very realistic to me as well.  That's about it as far as I remember. Hope someone has watched this movie and can tell me what it is.  Update  I want to add a few more details about the movie. While I watched it in the late 90s/early 2000s the movie looked much older. It looked like a vintage B-Movie made in the style of the 70s or 80s. In particular the decor looked more like Alien 1 or Cosmos 1999.   I just watched the firefly episode and it can't be it. It has too much action, and the atmosphere is not dark enough.


I'm solving an exercise and I'm asked to prove that if  $$u_n = \left(1+\frac{1}{n^2}\right)\left(1+\frac{2}{n^2}\right)\left(1+\frac{3}{n^2}\right)\ldots\left(1+\frac{n}{n^2}\right)$$  then $\lim u_n = \sqrt{e}$.  This is after it asks me to show that $\forall x>0,$  $$x-\frac{1}{2}x^2<\ln(1+x)<x$$  which I did, but even with this result I'm not being able to even get how to use it to show $\lim u_n = \sqrt{e}$.

How can we compute the following limit:     $$\lim_{n\to\infty}(1+1/n^2)(1+2/n^2)\cdots(1+n/n^2)$$   Mathematica gives the answer $\sqrt{e}$. However, I do not know to do it.


What would be the easiest way to align the following block to the left?  \[ \left. \begin{array}{l} \text{Wenn A eintritt, tritt auch B ein.} \\ \text{Aus A folgt B.} \\ \text{A impliziert B.} \\ \text{A ist hinreichend für B.} \\ \text{A ist hinreichende Bedingung für B.} \end{array} \right\} A \Rightarrow B \]

How would I shift my whole set of equations/calculations at the left, to be aligned with "Example"?        \documentclass[11pt,a4paper]{report} \usepackage{amsmath,amsfonts,amssymb,amsthm,epsfig,epstopdf,titling,url,array} \usepackage{parskip}   \theoremstyle{plain} \newtheorem{thm}{Theorem}[chapter] % reset theorem numbering for each chapter \newtheorem{lem}[thm]{Lemma} \newtheorem{prop}[thm]{Proposition} \newtheorem*{cor}{Corollary}  \theoremstyle{definition} \newtheorem{defn}[thm]{Definition} % definition numbers are dependent on theorem numbers \newtheorem{exmp}[thm]{Example} % same for example numbers \newtheorem{conj}[thm]{Conjecture}  \theoremstyle{remark} \newtheorem*{rem}{Remark} \newtheorem*{note}{Note}   \title{My Thesis Title} \author{My Name} \date{\today} \renewcommand\labelenumi{(\theenumi)} \renewcommand\theenumi{\roman{enumi}} \setlength{\parindent}{1em}  \begin{document}  \chapter{Addition}  \begin{exmp}  Here is an example. \begin{align} \nonumber (a+b)^3 &= (a+b)^2(a+b)\\ \nonumber &=(a^2+2ab+b^2)(a+b)\\ \nonumber &=(a^3+2a^2b+ab^2) + (a^2b+2ab^2+b^3)\\ \nonumber &=a^3+3a^2b+3ab^2+b^3 \nonumber \end{align} \end{exmp} \end{document}


On , we realised that a few tags would need some modification, namely uniformizing the plural/singular type. Is there a way to modify all occurences of a given tag, or should be manually edit them one by one?  Due to the number of modifications needed, we'd rather avoid setting up synonyms for all of them.

What do I need to do to rename a tag?  I see some people post a question here and ask for a tag to be renamed. Is there some other way?


I know that  indefinite pronouns like none and each take singular verbs, but what about their question tags?   None of the boys has passed the test, ________?  Each of the girls was given a prize, _______?    What are the question tags for these two sentences? Should the question tag’s verb be in the singular like the subject or plural because we’re talking about all of them? What about that question tag’s pronoun? Would gender come into consideration?

I have just learned from what I consider a reliable source, that the following sentence is correct:     One of us is wrong, aren't we?   I would never in my life have written this, but I am assured that   As I realize comments don't live forever I will quote the relevant parts:     oerkelens : So you  would really write One of us is wrong, aren't we? I guess by analogy you would not bat an eyelid at One of these balls is blue, aren't they?   Matt Эллен : yes, "Then one of us is wrong, aren't we?" is exactly how it would be written. Same for the balls.   Could someone please enlighten me how it is possible that the number in a question tag supposedly has to be in discordance with the subject of the main clause?  I admit that I am not the youngest any more, and my school days are long gone, but back in the days, I was taught that  1. a verb and its subject concord in number 2. a question tag concords with the subject of the main clause  I was given examples like:     It is warm today, isn't it?   We will be on time, won't we?   Mary is pretty, isn't she?   John isn't the brightest, is he?   Some people may notice that the subject of the main clause seems to determine every time the subject of the question tag. When the main clause subject is singular, so are verb and subject in the question tag.  I was under the impression that a) this made sense and b) this would be a general rule.  I fully realize that grammar does not have to make sense, so a) is immaterial. As for b), today I learned I was wrong :)  So when (and possibly why?) do we form question tags that are different in number from their main clause?   To exemplify, also the other example sentence that I used and was corrected on:     One of these balls is blue, isn't it? (so this is wrong)   One of these balls is blue, aren't they? (and this is correct)   As an afterthought, does this strange grammatical number mix-up only appear in question-tags, or should I always refer to singular subjects in the plural if certain conditions are met? And what are those conditions?  Which versions are correct?     One of the cars is broken, aren't they? They (the car(s?) that is(are?) broken) should be fixed.   One of the cars is broken, aren't they? It (the car that is broken) should be fixed.   One of us must be wrong, mustn't we? We (the one(s?) that is (are?) wrong) should make amends.   One of us must be wrong, mustn't we? He (the one that is wrong) should make amends.   (In the last one, they could of course be used as the singular they, but that would avoid the issue...)


I currently have all my DVDs ripped and stored on a Windows Media Centre box.  I am considering moving over to iTunes, and to grab an Apple TV.  This also would allow me to watch my movies on my iPhone / iPad and through these (via an HDMI adapter) on the upstairs TV.  While I can use iTunes to place parental restrictions on content, I have not yet found out how to bypass this restriction (such as through a password) for 'parental' viewing.  I want content restricted for my kids, but want easy access to higher-rated programs for myself.  Can this be achieved on the iPhone / iPad?  How about the Apple TV?

My dad put restrictions on my phone. He put it for many things that he didn't even know about. For example, downloading and deleting apps and Safari. So now that I want to do different things on my phone, I can't because my dad forgot the password.  Is there a way that I could take off the restrictions without deleting all of my things? If that isn't possible, then how can I restore my phone so the restrictions could come off? I heard that you can use find my iPhone someway so I could take off the restrictions but I'm not sure and I don't want to do the wrong thing.


My GIMP cant access files in the /var/www/html folder where I run my projects on localhost. I assume I have to add GIMP to the www-data group, right?  My user is already a member of the www-data group and I have write access via any file manager but GIMP still cant access files in the /var/www/html folder.

Having installed the web server is there a simple way to set a user able to use the graphic interface to copy files and directories to the local web server /var/www  I gave myself administrative privileges in Ubuntu but it still doesn't allow copies.