How did George R. R. Martin come up with the names of his characters?

I know initially it seems like only George R. R. Martin or a magician can answer my question.  What am I asking actually is, are the names and surnames used in the books real? Are "Theon" and "Tywin" real names that people use in some country? Are there real family names like Lannister or Stark?  Since Westeros seems a lot like medieval Europe, it seems to me that names for people and places should be more Germanic than Italian. Am I right?


Is it possible to use tabularx inside a longtable environment?  If not, is there any way I can get the "X" funcionality of tabularx with the option of long tables ---In order for me to be able to break them in two pages?  Using longtabu is not an option, as stated by @jon :      I would recommend staying away from tabu as the package author is   still fiddling with things and explicitly promised that there would   not be backwards compatibility. See  for the discussion.   UPDATE:  Using the package ltxtable suggested by @Alan Munn (Writeen by @David Carlisle) I have the current Minimal Non-Working Example  Main File:  \documentclass{article}  \usepackage{array} \usepackage{tabularx} \usepackage{longtable} \usepackage{ltxtable}  \begin{document} Hello.  \LTXtable{\textwidth}{VersionOne}  \end{document}     Where the file VersionOne goes:  \begin{longtable}{XX} \caption{A very long table}\\ WHO                 & \hspace{5mm} World Health Organization\\[1mm] GDP                 & \hspace{5mm} Gross Domestic Product\\[1mm] PPP                 & \hspace{5mm} Purchasing Power Parities\\[1mm] \label{tab:LongtableOne} \end{longtable}   When I try to run this code, I get a Emergency Stop and a fatal error.  Am I writing this correctly?


Performance testing of a Silverlight application, using JMeter

I am trying to test the performance of a Silverlight application using JMeter. can you please tell me is that possible? If it is possible, can you please provide me the detailed steps to be followed.  Thank you.


Has there been any observation of species adapting the evolution process?

I am very interested in the evolution of the evolution process itself. There are of course a lot of things that influence how evolution will work, but for this question, I am interested in things that are only related to the evolution process. Examples could be increase chance of mutations in newborns, change in reproduction age, and similar. I am specifically interested in observation where the evolution process itself has adapted to a change in the environment.


Unit circle is divided into $n$ equal pieces, what is the least value of the perimeters of the $n$ parts?

A unit disk is divided into $n$ equal pieces, that is, each piece has area $\dfrac\pi n$.    equal "pieces" means equal  area  Let  $l_1, l_2,\dotsc,l_n$ be the perimeters of the $n$ parts, respectively.   What is the least value of $l_1+l_2+\dotsb+l_n$?   That is, how to calculate $L_n=\min\{l_1+l_2+\dotsb+l_n\}$ ?    For $n=8$, as far as I know, $L_8\lt 2\pi+16$  Any help will be appreciated!


Convergence of the sequence $\frac{1}{n\sin(n)}$

Does the sequence  $$\frac{1}{n\sin(n)}$$  converge to $0$ or not? If not, what's the upper limit?


Macro Function _T() Causes Compiler Error

I am attempting to get my Win32 C++ project to compile in Dev C++. The project was originally made in Visual Studio C++ 2010 so it uses alot of Unicode macro functions such as _tcscmp. _tcscat and most importantly _T.   I am attempting to get my project to compile in Dev C++ (Why? Its a long story but necessary). So I have attempted to define the macro function _T but I am getting a compiler error when this macro function is used: 'La' undeclared (first use this function)  Any ideas on where my macro function _T is going wrong?  #if IS_DEVCPLUSPLUS > 0      #undef _T     #define _T(a) La #endif   // Compile error occurs on below line: "'La' undeclared (first use this function)" _tcscat( fileName, _T("\\*") );   // The end result should be _tcscat( fileName, L"\\*" );


How to prove that $ \sum_{n \in \mathbb{N} } | \frac{\sin( n)}{n} | $ diverges?

It is stated as a problem in Spivak's Calculus and I can't wrap my head around it.


Let $T$ be a linear transformation on a real vector space $\mathbb{R^n}$ over $\mathbb{R}$ such that $T^2=\lambda T$  for some $\lambda \in \mathbb{R}$, then if $||Tx||>||x||$ for a non zero vector $x$ $\in \mathbb{R}$ , then $T$ is necessarily singular.  From the transformation given above, we can (?) see that $0$ is an eigen value for the transformation. Do we really need the condition  $``$if $||Tx||>||x||$ for a non zero vector $x$ $\in \mathbb{R}$'' to establish  that $T$ is singular?


How do I find the address of last non-blank cell in a row (while skipping columns)

Basically, I need to do what the title says on my spreadsheet here. So for row 3, I need to find the address of the last non-blank cell in that row, while skipping the grayed out columns (with the header "Total").


How do you respond when a child catches his parents having sex?

I ask this Question on behalf of my neighbor.   Their 12 year old son saw his parents having sex.  As there is only one room in their home we can't say its the parents' mistake... but now the question is how do they handle the situation?


I wanna solve some problems in compiz with my brain and hands.  By the way I entered following command to build compiz from source in Ubuntu 12.04  find /opt/compiz-built/share/gconf/schemas -exec gconftool-2 --install-schema-file={};   I referred that command at   And following message is shown.  How to use -exec option in find command, I guess that it's my mistake.


I have a question about sending big documents to the database. When i insert my edited word doc with colors on some words into tinyMCE the text display properly. But sending to the database fails because of commas in the text i guess. Is there a simple way to fix this?


Does Python implement switch/case at all or are python developers suppose to use a series of if, elif, else statements instead?


Q: Prove that $\frac{1}{5}n^5+\frac{1}{3}n^3+\frac{7}{15}n$ is an integer for every integer n. In fact, I already have a method, but it seems too long. So I would first (1)is there any problem with my logic? (2) Is there any better/faster method to do these kinds of questions?  My solution: $$\frac{1}{5}n^5+\frac{1}{3}n^3+\frac{7}{15}n$$ $$=\frac{1}{15}(3n^5+5n^3+7n)$$ Then my next time is to use M.I to prove that $(3n^5+5n^3+7n)$ is divisible by $15$ for positive integers. And for negative integer, I switch it into -$(3n^5+5n^3+7n)$ and it also satisfies the divisibility of $15$.  But the above seems too clumsy. This course is "Intro to number theory". Is there any beter method to do it?


"Android is starting..." & "Optimizing app" @ 2014 Moto X 2nd Gen

I'm using 2014 Moto X (2nd Gen) and lately I keep getting:  Android is starting... & Optimizing app whenever I start my phone(  I tried to clear wipe cache partition, but that did not help towards resolution of my issue.


Are there any tools, methods, incantations to recover recently deleted files on Ubuntu?  If it makes any difference, I want to recover a  2.x database file. But would be better to have a method/tool that works on any kind of file.


p-value of t-test versus F-test(joint hypothesis)

SAS code :    data pr;     input y x1 x2 @@;     cards;     5 2 2 7 3 3 3 2 0     5 2 4 4 3 3 7 2 4     ;   run;   proc reg data = pr;     model y = x1 x2; run; quit;     When I run the regression procedure, I got the result    [F-test : p-value for model = 0.3757]   [t-test : p-value for x1 = 0.9238]   [t-test : p-value for x2 = 0.2045]     I'm wondering why the p-value of F-test is bigger than that of t-test for x2?    F test has the joint hypothesis H0 : beta1 = beta2 = 0 so, it has the more complicated hypothesis than t test (H0 : beta2 = 0)    My logic is this: when hypothesis has the more restrictions, then it is far difficult to realize, so p-value gets lower.    Where am i misunderstood?


How can we increase the height of a Quick Action?

How to increase the height of the Lightning component invoked through quick action in Salesforce?


Why won't my footer stay at the bottom of the page?

just trying to figure out why I cannot get the footer to the bottom of the page (when the "latest" articles are in a 3x2 grid). I have posted all my HTML and CSS here because I am not sure where the problem is specifically.   Here is my HTML:      <link rel="stylesheet" href="stylesheet.css" type="text/css"/>   <title></title>

     I think the problem is somewhere here maybe the "containerMedium" and "latest" classes.  Here is my CSS:   /*CSS RESET*/  html, body, div, span, h1, h2, h3, h4, h5, h6, p, a, img, ol, ul, li, table, tbody, tfoot, thead, tr, th, td, embed, footer, header, nav{     margin: 0;     padding: 0;     border: 0;     font-size: 100%;     font: inherit;     vertical-align: baseline; }  /*CSS RESET*/  html, body{     height:100%; }  #container{     position: relative;     height: 100%;     min-height: 100%;     background-color: tomato; }  header{     height: 100px;     width: 100%;     background-color: slateblue; }  #containerLarge{     padding-bottom: 100px; /*Footer Height*/     height: 75%;     width:100%;     background-color: white;     border-top-left-radius: 15px;     border-top-right-radius: 15px; }  .heading{     height: 50px;     width: 100%;     background-color: pink; }  #featured{     margin-left: auto;     margin-right: auto;     text-align: right;     height: 300px;     width: 600px;     background-color: royalblue; }  .button{     display: inline-block;     margin-right: 30px;     margin-top: 220px;     height: 50px;     width:200px;     background-color: gold;     border-radius: 25px; }  .containerMedium{     display: block;      margin-left: auto;     margin-right: auto;     text-align: center;     height: 600px;     width: 50%;     background-color: crimson; }  .latest{     display: inline-block;     margin-left: auto;     margin-right: auto;     height: 300px;     width: 200px;     background-color: springgreen; }  footer{     position: absolute;     bottom: 0px;     height: 100px;     width: 100%;     background-color: deeppink; }   Thanks for your help!  Josh


I have used my Stack Exchange account to login to a third-party site. Upon doing so, I was asked to authorize it to use my OpenID credentials from Stack Exchange.  Going to  I can change my password, but not see a list of places that I have granted access, and more importantly revoke it, like Google does here:   If I go to my profile page and click on "my logins", it shows only the credentials used to login on this site, not the ones issued to other sites.  Where can I find a list of sites that are using my StackExchange openID account?


Showing that $\int_0^{\infty} x^3 / (e^x-1)\,\mathrm{d}x = \pi^4 / 15$

I tried to solve the following by the $u(x)v(x)\,\mathrm{d}x$ method but am stuck at the very first step that I can't take any one of the two as $u$ or $v$.  $$\int_0^{\infty}\frac{x^3}{e^x-1}\,dx=\frac{\pi^4}{15}$$  What is the step by step process to solve this integration?


How much protection do the various shields give

With the new levels of shields available as of 3 June 2013, is there an indication of how much protection each shield will give a portal? Similarly, do they contribute to the XM drain on the attacker in any way? For info on the new buffed shields, check out :  Brandon Badger published on 31st of May that Portal Shields feel stronger now. But there is a catch, only new obtained portal shields are stronger. If you farmed those shields in last few months they have same stats as old shields. Only new farmed shields have new stats: Old shields:  Common +6 Rare +8 Very Rare +10 New shields: Common +10 Rare +20 Very Rare +30


How to compare floating point variables in C++?

stated that you shouldn't compare floating point variables with == because of rounding errors. What should I use then, and when?


Need to shrink Windows 10 partition, expand Ubuntu 20 partition

I have a plan I want to run by you Gurus before executing it.  I want to boot into Windows, use Gparted to shrink the partition, reboot into Windows to ensure data and disk integrity and then boot back into Ubuntu and use the disk tool to expand my Ubuntu partition to the difference. I have already done a backup in case it goes south. Any pointers or opinions on the approach are most welcome! *UPDATE: The solution that I put together (from all your responses, thank you) that finally worked and was the most painless: 0. (Optional? Point of Information...) Upgraded Ubuntu to latest Groovy Gorilla.  Booted to Windows 10 Pro latest build. Right click Start Menu. Select Disk Management. Select windows volume and select resize. The tool automatically calculated the maximum available space that could be created.  It was far less than the larger number I had put in trying to use windows diskpart admin cmd and got an error. (Without digging further, I assume these results are due to the Shadow copy, and other immovable file systems others have commented on here.) I was then able to safely shrink the windows volume to the min allowed. Rebooted, selected Windows from Grub. Booted successfully into Windows and confirmed all was weli there. Shut down computer. Inserted Ubuntu Live USB. Rebooted to computer Boot menu using F12 and booted into USB stick. Selected the 'Try Ubuntu' option. Opened Gparted application.  Selected and unmounted my 200GB Ubuntu partition. Selected resize and entered the desired new size to reflect absorbing the new empty ~75GB volume. Click apply, gparted successfully enlarged the Ubuntu volume. Powered off to restart and followed prompts when to remove USB Live stick. Rebooted into Ubuntu.  Ubuntu Groovy Gorilla successfully booted.  CONCLUSION: It is worth noting that when I tried to do this all from the USB Live stick before this latest effort, there were errors.  When I tried to do this using windows diskpart from cmd it threw errors. I think that is because I was just putting in a size that the system would not allow, as stated by others.  So it seems best to do this all by letting Windows handle windows and then using the USB live Gparted to handle Ubuntu. Yes, there may be some more technical efforts like disabling windows functions at the command line that might have allowed me to squeeze more space out of the windows volume, but for safe, GUI effort I hope this is helpful to others as well. Cheers!


In my paper I have many images and many floats and thus having issues to get everything well formated. One issue is that floats tend to end up at the end of the paper. How can I encourage LaTeX to split my text and to get my float at the top or bottom of the page, instead of moving the float to the document end?  The main reason I ask is not so much that I don't like the graphic to be at the end, but that I don't like the graphic to have a whole page for itself. Having its own page for itself is wasting precious space that I don't have. I need to get text on the same page, even if it is a little (and looks ugly). Every centimetre counts.  I wish I could give a MWE, but I don't know how to do it for a so document-specific case and without releasing my document. I hope someone is able to help me anyway.


I am an very ameteur mathematician and physicst (If I can say mathematician and physicst to myself xD). I want to learn topics in physics. Like electromagnetism, mechanic, thermodinamics etc. But I don't want to drown in lots of maths (Lots of fantastic variables, constants that I haven't seen in my life). I just want to understand ideas, basic of equations like that.  Can you advice a book, method, website etc. that I can do what I had written above.


How to overcome feelings of incompetence/failure in a PhD programme?

I've recently quit my job as a maths teacher after doing it for 3 years and I have been incredibly lucky to be offered a fully funded doctoral training course at a top university. This is an extraordinary opportunity for me, especially given that I previously withdrew from a PhD, and this time I really want to make it work.  I am quite rusty on some things that many other starting students will not be, not because I can't do them but because it's been a very long time since I needed to apply them. I am currently a bit worried that I may be the weakest in the cohort or that it'll take me a very long time to understand simple things and that I may feel incompetent and like I don't deserve to be there.  What are some good ways to overcome these feelings of idiocy?


I recently got a microSD card for a music player, I've tried to mount this on my computer to transfer music but have got the following error:  Unable to mount 127 GB Volume     Error mounting /dev/sdb1 at /media/blank/9C33-6BBD: Command-line `mount -t "exfat" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,iocharset=utf8,namecase=0,errors=remount-ro,umask=0077" "/dev/sdb1" "/media/blank/9C33-6BBD"' exited with non-zero exit status 32: mount: unknown filesystem type 'exfat'   I'm trying to mount the microSD via a usb adapter - I've tried 2 different adapters with no difference. My system is Ubuntu 14.04.  I've run   lsusb sudo fdisk -l    and the results are:      blank@blank:~$ lsusb Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 006: ID 0420:1307 Chips and Technologies Celly SIM Card Reader Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 011 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 010 Device 002: ID 04d9:0499 Holtek Semiconductor, Inc. Optical Mouse Bus 010 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 009 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 008 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub blank@blank:~$ sudo fdisk -l [sudo] password for blank:     Disk /dev/sda: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x4eb6e04c     Device Boot      Start         End      Blocks   Id  System /dev/sda1   *          63   212700599   106350268+   7  HPFS/NTFS/exFAT /dev/sda2       212701184   391024639    89161728   82  Linux swap / Solaris /dev/sda3       391026686  1953523711   781248513    5  Extended /dev/sda5      1919977472  1953523711    16773120   82  Linux swap / Solaris /dev/sda6       391026688  1919977471   764475392   83  Linux  Partition table entries are not in disk order  Disk /dev/sdb: 127.0 GB, 126968922112 bytes 255 heads, 63 sectors/track, 15436 cylinders, total 247986176 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000     Device Boot      Start         End      Blocks   Id  System /dev/sdb1           32768   247986175   123976704    7  HPFS/NTFS/exFAT   Any pointers as to what the issue is and how I can resolve it?


need help with the following question:  Let $S \subseteq P(\mathbb N)$ be defined inductively so that:   $\mathbb N \in S$  for all$ ~ a \in \mathbb N \Longrightarrow \mathbb N\setminus\{a\}\in S$ for all $A,B \in S \Longrightarrow A\cap B \in S$   Prove that if $A\subseteq \mathbb N~ $ and $~ \mathbb N $ \ $A$ is finite then $A \in S$  thanks!


Actually, i have 540x46 matrix, (540 observations and 46 features) and after using PCA by considering 95% variance, it is reduced to 540x12 matrix.  So, is it possible to know which 12 features from 46 are they? and order of these 12 features according to dominance level?  I hope now question is clear and please let me know if you need any other information.


How to detect whether a variable is a specific or not?

I used a graph package coinor.gimpy to implement some algorithms in network theory. And I want to use the graph class as one input of a function, however, I want to check whether this variable is this class or not, I don't know how to do, following are some of the code.  from coinor.gimpy import Graph     g=Graph() print type(g)   and the result is   <class 'coinor.gimpy.graph.Graph'>   Then inside one function, the code might be like the following,  def Dijkstra(g)     if type(g) == ??         then ...   my question is: what should I write to replace the question mark? Thanks.


My phone was bought second hand, restored to factory settings already, from a second hand shop. I can't get in to it because someone's "Find my iPhone" is still on it. I do not know this person and the store won't help.   What do I do?


Wrong language bibliography title with biblatex and babel

With babel in use and main=english, nonetheless biblatex together with babel is erroneously naming the bibliography "Bibliografia". This happens with both the default back-end biber (shown here) and with option backend=bibtex. Is this a bug? (Of course a workaround is to use: \printbibliography[title=Bibliography].) This does not occur when babel is not used. \RequirePackage{filecontents} \begin{filecontents}{mybib.bib} @article{foo1999,   title={Title},   author={Doe, John},   journal={International Journal of Nonsense},   year={1999} } \end{filecontents}  \documentclass{article} \usepackage[russian,french,ngerman,polish,main=english]{babel} \usepackage{biblatex} \addbibresource{mybib.bib}  \begin{document}  See this book: \cite{foo1999}  \printbibliography  \end{document}


I have many common macros in all my documents. how can I move them all to external file, and include it in each document?


What is the phase difference of the oscillations of the two prongs of a tuning fork?

What is the phase difference of the oscillation of a tuning fork?


Is there a tool to measure speed of your pc/laptop?

In Windows 7 there is a tool that calculates some kind of index of your machine: . I am not sure how it is done, but it is nice to know, to be able to compare machines.  Does anybody know of anything similar for ubuntu?


Windows 8 doesn't boot after installing Ubuntu 12.04

After installing Ubuntu 12.04 I used Ubuntu Boot Repair (as usual) to reinstall the GRUB and visualize the other OS installed (ie. Windows 8). Unfortunately,this time something didn't work at all, and I am now not able to boot into Windows 8, which soon after selection in the GRUB starts and fails the Automatic Repair.  Even OS repristinating doesn't seem to work. I think I have installed the Ubuntu 12.04 boot loader in the same partition of the Win8 boot loader (sda2, EFI), so, as a results, Ubuntu boots perfectly, while Win8 doesn't. Is there a way to rescue Windows 8 without reinstalling it? Step by Step advice will be welcomed! XD


What is the Difference Between Assigning Method to JS Object Prototype vs to JS Object

Background  Working with OOP-style in JavaScript, by creating pseudo-classes using objects. From examples and walkthroughs online, I'd been under the impression that we need to set up an object, then attach function to that object's prototype object.  However, I have been playing around today and tried attaching a function directly to the object itself. From testing, I can't find any behavioral differences. Simplified example of both ways below:  Version 1  var Class = function( params ) { }  Class.prototype.getData = function() {     return _data; };   Version 2  var Class = function( params ) {     this.getData = function() {         return _data;     } }   Question  What is the difference, if any, between these two implementations?


How do I make authentic Russian black bread?

I am interested in making the dense pungent black bread that is traditional in Russia. Recipes for black bread are varied and seem to disagree with one another. Too many of them make spongy, pumpernickel-like loaves which, while good, are not what I'm trying to make.  Is Russian black bread always made with a sourdough starter?  Some recipes have called for cocoa powder or coffee to darken the loaves as just rye flour will often turn out gray instead of dark dark brown. Are such additives common in traditional black bread recipes? If not how is the dark color obtained?


Deleting self-answered question gets "Delete this answered question" warning

While attempting to delete a question which was answered by myself, and with no other answers, I got the following warning:     Delete this answered question?      We do not recommend deleting questions with answers because doing so   deprives future readers of this knowledge.      Repeated deletion of answered questions can result in your account   being blocked from asking. Are you sure you wish to delete?   I understand that deleting your question when someone else has answered it is effectively nullifying the effort that person put into that answer, which is bad. But is it bad if the only answer that's deleted along with your question is your own?


My game isn't letting me catch the legionaries Azelf, Uxie, and Terrakion. I've checked, double checked, and triple checked, I'm getting all of the requirements. but it's not letting me battle, I can get to the portal and I have defeated the elite four again but I get the same results


Is it really necessary to restart the PC after an update?

This question came to my mind mostly because I rarely restart my Linux laptop, so I wondered if this has any negative consequences. Updating is basically just patching applications, so I could imagine that some system applications aren't able to apply the patches because they keep running.


Retrieve cryptographic key knowing cyphertext and plaintext

I was curious about cryptography so I started to learn about symmetric encryption.  From what I understand a symmetric encryption works as follow:   PlainText -> (Encrypt)K -> Cipher text -> (Decrypt)K -> PlainText  I was wondering if it is possible to retrieve the cryptographic key by knowing the plain text, the cipher text and the encryption algorithm used.


How to combine url and string for api call

I'm trying to combine a url and string at runtime and then call it. public static Uri Append(this Uri uri, params string[] paths)     {         return new Uri(paths.Aggregate(uri.AbsoluteUri, (current, path) => string.Format("{0}/{1}", current.TrimEnd('/'), path.TrimStart('/'))));     }  var url = new Uri("https://127.0.0.1:2999/liveclientdata/playerscores?summonerName=").Append(_PlayerName).AbsoluteUri;  However when I call it, this error is returned: Failed the request: HTTP/1.1 400 Bad Request  The url looks like this https://127.0.0.1:2999/liveclientdata/playerscores?summonerName=/%22KidKiwi91%22  I know the error is caused by the concatenation of the url and string because it I make it all one url and not combine them in runtime it works. Other things i've tried: string url = "urlgoeshere=" + playername; string url = UnityWebRequest.EscapeURL("urlgoeshere" + playername);  string url_q = "urlgoeshere=" + playername; var url=new Uri(url_q);  It's called using this private IEnumerator GetJSON(string url, System.Action<string> callback)     {         failed = false;          //Debug.Log(url);         using (UnityWebRequest webRequest = UnityWebRequest.Get(url))         {             webRequest.certificateHandler = new BypassCertificate();              yield return webRequest.SendWebRequest();              string error = webRequest.error;              if (error != null)             {                 Debug.Log("Failed the request: " + error);                 failed = true;             }             else             {                 callback?.Invoke(webRequest.downloadHandler.text);                 //Debug.Log(webRequest.downloadHandler.text);             }         }     }  Any ideas? Thanks


Accidentally downvoted in an exchange I don't have 125 reputation on

On occasion I will accidentally click the downvote button in an exchange I don't have 125 reputation on. As the pop-up says, nothing public happens, but the downvote is still recorded. Is there a way to "unrecord" the downvote? I've been upvoting then removing my upvote in the hopes an upvote still clears a downvote for sub-125 users, but I have no idea if this is actually working. Do recorded downvotes from sub-125 users even matter?


What does PDF of normal distribution represents?

I have a basic question about the probability density function of the standard normal distribution $X\sim N(0,1)$. I understand that the cumulative distribution function for x is $P(X\le x)$ (in R language it can be obtained by pnorm(x,mean =0, sd =1)). However, I don't understand what $f(x)$ represents (in R:  dnorm(x,mean =0, sd =1)) ? $$ f(x)   =   \frac{1} {  \sqrt{2\pi } }   e^{  -x^2/  2} $$  Note that for a discrete random variable, like the binomial distribution, it is equivalent to $P(Y=x)$.


Error "Couldn't find hvm kernel" during KVM Guest install of Ubuntu Server 16.04

I've installed a system with Ubuntu Server 16.04 and have KVM installed on it (I selected "virtualization server" during the install, so KVM is likely configured correctly).  the problem: I'm unable to install a KVM guest using virt-install. It acts as if it can't read the install media.  I'm getting this error "Couldn't find hvm kernel ..." when trying to create the VM:  Starting install... ERROR    Couldn't find hvm kernel for Ubuntu tree. Domain installation does not appear to have been successful.   This is the script I'm using to try to create the VM; I run it using sudo.  #! /bin/bash # if [ ! -d /var/www/html/isos/ubus-docker ]; then   mkdir -p /var/www/html/isos/ubus-docker fi umount /var/www/html/isos/ubus-docker/ mount -o loop ~/iso/ubuntu-16.04.1-server-amd64.iso /var/www/html/isos/ubus-docker/ virt-install \   --connect qemu:///system \   --name ubus-docker \   --memory maxmemory=4096,memory=512 \   --vcpus 2 \   --location http://heind-gb0/isos/ubus-docker/ \   --extra-args "console=tty0 console=ttyS0,115200" \   --os-variant ubuntu16.04 \   --disk path=/dev/heind-gb0-vg/vm-ubus-docker \   --network network=default \   --virt-type kvm \   --hvm \         --graphics none   When I visit  in a web browser, I see a nice list of the files and directories in the root of the ISO. (I installed and configured nginx explicitly to serve this ISO.) (note: that's a local server running on the KVM host, so don't bother surfing to it :-))  I don't know how to troubleshoot this. Any help would be welcome.  (Note: I'm running Ubuntu Server, console only, no GUI. And I want to do the guest VM install entirely from the console as well.)  UPDATE: This does seem to be an issue introduced in a recent release of virt-manager. The issues is under discussion on the . And I'm looking through the  history to find working code and perhaps develop a patch to restore support for Ubuntu installation ISOs (and hoping someone more familiar with the code gets there first :-)).  UPDATE 2: It was an issue with the newer releases of virt-manager. Now fixed (see answer in comments below). Not sure when fix will make it into virt-manager packages though.


MinionPro on Windows 7 does not have \epsilon

I have installed MinionPro fonts under Windows 7 using Miktex 2.9 by following the steps in the instruction you can read online on Scribd () and load down for free from LaTeX Community ().  Everything works well except that \epsilon is substituted by a rectangle. Here is my MWE:  \documentclass{article} \usepackage[T1]{fontenc} \usepackage[mathlf,textlf,minionint]{MinionPro} \renewcommand{\sfdefault}{Myriad-LF} \begin{document} $\epsilon$ \end{document}   I have seen some solutions suggested here but they require installing cygwin, running different shells and makefile, etc., that for a Windows guy are overwhelming. I was wondering if there exist an easier solution that does not require these steps.


get all matching non null elements if all the conditions are given in predicate

How to get all elements with id = 2?  The below code is giving only the last one i.e. channelMetadataDetail3:  import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors;   public class APICheck {     public static void main(String[] args) {          List<ChannelMetadataDetails> channelMetadataDetails =          new ArrayList<ChannelMetadataDetails>();         ChannelMetadataDetails channelMetadataDetail1 =          new ChannelMetadataDetails();         channelMetadataDetail1.setId("2");         channelMetadataDetail1.setUnitOfMeasureId("3");          ChannelMetadataDetails channelMetadataDetail2 =          new ChannelMetadataDetails();         channelMetadataDetail2.setId("2");         channelMetadataDetail2.setUnitOfMeasureId("3");         channelMetadataDetail2.setMeasureTypeId("5");          ChannelMetadataDetails channelMetadataDetail3 =          new ChannelMetadataDetails();         channelMetadataDetail3.setId("2");          channelMetadataDetails.add(channelMetadataDetail1);         channelMetadataDetails.add(channelMetadataDetail2);         channelMetadataDetails.add(channelMetadataDetail3);          channelMetadataDetails =channelMetadataDetails.         stream().filter(cm -> cm.getId().equals("2")).         filter(cm -> cm.getUnitOfMeasureId().equals(null)).         filter(cm -> cm.getMeasureTypeId().equals(null)).         collect(Collectors.toList());      }     }   NOTE:- If cm.getUnitOfMeasureId() is null then I will get NullPointerException  UPDATE:  In short, I only want those objects whose elements are non-null.  For example using for loop:  for (ChannelMetadataDetails cmEach : channelMetadataDetails) {             if(cmEach.getId() != null && cmEach.getUnitOfMeasureId() == null && cmEach.getMeasureTypeId() == null) {                 channelMetadataDetails.stream().filter(cm -> cm.getId().equals("2")).collect(Collectors.toList());             } else if(cmEach.getId() == null && cmEach.getUnitOfMeasureId() != null && cmEach.getMeasureTypeId() == null) {                 channelMetadataDetails.stream().filter(cm -> cm.getUnitOfMeasureId().equals("4")).collect(Collectors.toList());             } else if(cmEach.getId() == null && cmEach.getUnitOfMeasureId() == null && cmEach.getMeasureTypeId() != null) {                 channelMetadataDetails.stream().filter(cm -> cm.getMeasureTypeId().equals("5")).collect(Collectors.toList());             } else if(cmEach.getId() != null && cmEach.getUnitOfMeasureId() != null && cmEach.getMeasureTypeId() == null) {                 channelMetadataDetails.stream().filter(cm -> cm.getId().equals("2") && cm.getUnitOfMeasureId().equals("4")).collect(Collectors.toList());             } else if(cmEach.getId() != null && cmEach.getUnitOfMeasureId() == null && cmEach.getMeasureTypeId() != null) {                 channelMetadataDetails.stream().filter(cm -> cm.getId().equals("2") && cm.getMeasureTypeId().equals("5")).collect(Collectors.toList());             } else if(cmEach.getId() != null && cmEach.getUnitOfMeasureId() != null && cmEach.getMeasureTypeId() != null) {                 channelMetadataDetails.stream().filter(cm -> cm.getId().equals("2") && cm.getUnitOfMeasureId().equals("4") && cm.getMeasureTypeId().equals("5")).collect(Collectors.toList());             }         }


Add close reason as a comment after Vote to Close

I know that that duplicate questions automatically post the duplicate to the comments on the question.     Would it be possible / a good idea to have this for all vote closes?  Possibly having a check box at the bottom of the vote close window to post reason as a comment to the question might work as well.   My reasoning for this is I tend to vote close questions for lack of effort.       unclear what you're asking - Please clarify your specific problem or   add additional details to highlight exactly what you need. As it's   currently written, it’s hard to tell exactly what you're asking. See   the How to Ask page for help clarifying this question.   Now in some cases the question could be improved, but a lot of times questions like this are by new users who don't always return.  If I feel it can be improved I like to let these new users know that it was vote closed and why.  I copy that to the comment. example:    Is this something we could consider adding?


Ubuntu replacement for an old XP computer with slower than 2.0 GHz processor speed

I want to replace an old Windows XP OS with Ubuntu, but I really don't know which version would suit my needs. I require only media center type functionality from the Ubuntu replacement.   The older XP computer has a 1.8 GHz processor speed, but the media center demo clearly states that I require a 2.0 GHz processor or better. I want to use my Windows 10 desktop for downloading the .iso file and making the Ubuntu replacement installation media.


When I go to a YouTube video, the video is automatically started, and I hate this. How do I disable the auto-play feature?


Fake proof that $1=0$ using the product law for limits

Context:  I was looking at  Then I started thinking: if $0.999999... = 1$, then $0.000..001 = 1/1000...000 = 0$. Then if we multiply both side by $1000...000$, we will have $1 = 0$? To rephrase it in a slightly more formal way as below. Suppose we multiply both sides of the equality $$\lim_{n\to\infty}\frac{1}{n} = 0$$ by $n$: \begin{align} n \cdot \lim_{n \to \infty}\frac{1}{n}&=n\cdot 0 \\[5pt] \lim_{n \to \infty}1 &= 0 \end{align} So $1=0$. I'm sure I am wrong, but what exactly is wrong with my reasoning? Edit After some kind suggestion and answers from Terasa, Martin and Joe, I'd like to link a related helpful question below. The only slight difference is that question confused about the infinite sum and limits, while I confused between the product and limits!


I have a few movies on a NUC in my living room and I would like to watch them in the background while I'm working here. So I made a new user on my Win 10 NUC and set everything up the way it should be, but I can't access these HDs. On my Ubuntu desktop, I enter everything correctly and get the message:     Unable to access location. Failed to mount Windows share: Invalid argument.     I can access the network and the computer, but I can't access the HDs.  I installed cifs-utils, smbfs and ntsf-3g, made no difference.


How to ask questions in a way that avoids answers that question/patronize the approach rather than address the question?

Sometimes I or others ask a question which causes the reader to think why would he want to do that?. There are reasons and the question is usually legitimate. I and others often seem to get a lot of comments (which I don’t mind), and comments posted as answers (which I do mind), which do not even attempt to address the question and instead question the approach and provide zero insight on the actual question.  I am talking about the kind of question where the question is usually a few sentences, but a solid explanation of why the approach that leads to the question is chosen takes almost a full page of writing, and is irrelevant to the question itself. The issue seems to be well understood and there are various related questions on Meta, such as:        My question is not why this happens. My question is how can I formulate a question in such a way that this happens less.  To be clear, I am asking What can a question do to avoid getting answers that do not address the question?, in the context of well-meaning answerers who try to see an underlying cause.  Two questions with different approaches which should show what I mean:    (note that the question is off-topic but it still serves to illustrate the type of questions and answers I mean)


I have a code, that outputs a standard pager:  print theme('pager');   it outputs this:
Pages

1

2

3

next ›

last »

   How can I change the HTML to something like this:

&lt;

1

2

3

&gt;

   I looked into this thread: , created a function bartik_preprocess_custom_pager and a file custom-pager.tpl.php inside my Bartic theme templates, but I can't make it work.  print theme('custom_pager');   outputs nothing. Does anybody know, how can I customize the HTML output for a pager, creating one just for 1 page?


I had Ubuntu 18.04 running, and installed windows after without doing dual boot process, and now the system does not let me boot with ubuntu.  Is there any way I can 1) do the dual boot or 2) go back to the original status without formatting/deleting/destroying what is in ubuntu partition.  Please help.


Reading package lists... Done Building dependency tree        Reading state information... Done Reinstallation of dpkg is not possible, it cannot be downloaded. The following packages were automatically installed and are no longer required:   linux-headers-4.4.0-45 linux-headers-4.4.0-45-generic linux-headers-4.4.0-47   linux-headers-4.4.0-47-generic linux-image-4.4.0-45-generic   linux-image-4.4.0-47-generic linux-image-extra-4.4.0-45-generic   linux-image-extra-4.4.0-47-generic linux-signed-image-4.4.0-45-generic   linux-signed-image-4.4.0-47-generic linux-tools-4.4.0-45   linux-tools-4.4.0-45-generic linux-tools-4.4.0-47   linux-tools-4.4.0-47-generic ubuntu-core-launcher Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y Setting up virtualbox-ext-pack (5.0.18-1) ... virtualbox-ext-pack: downloading: http://download.virtualbox.org/virtualbox/5.0.18/Oracle_VM_VirtualBox_Extension_Pack-5.0.18.vbox-extpack The file will be downloaded into /usr/share/virtualbox-ext-pack Hash mismatch Oracle_VM_VirtualBox_Extension_Pack-5.0.18.vbox-extpack dpkg: error processing package virtualbox-ext-pack (--configure):  subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing:  virtualbox-ext-pack E: Sub-process /usr/bin/dpkg returned an error code (1)


AucTex does not export Hebrew to a pdf file

I created the following bilingual LaTeX document in English and Hebrew.  \documentclass{article} \begin{document}  Hello  שלום  \end{document}   I exported the document to a pdf file using the key combination C-c c. The message tex-evince-sync-view appeared in the echo line as the export was in progress. When the file opened in Document Viewer, only the English word was visible.  I created the same document using LibreOffice Writer, exported it to pdf and double-clicked the resulting pdf file. The file opened in Document Viewer as before, but now both the English and the Hebrew words were visible.  I conclude that the problem lies in emacs/AucTex's pdf exporting mechanism, and that the problem is not due to the pdf viewer nor to the lack of suitable fonts on my system.  How can I fix emacs/AucTex to handle Hebrew correctly?  I use   Ubuntu 14.04 LTS Emacs 24.3.1 AucTex 11.87.2012-12-04 DocumentViewer 3.10.3 LibreOffice Writer 4.2.7.2


Did Data die at the end of Star Trek:Nemesis?

Data sacrificed himself at the end of Star Trek:Nemesis and the ship blew up but his memories were stored in B4 which some say caused Data to actually be living in B4 now. But there is an episode where if he were disassembled "Measure of Man" that he would lose the product of his memories that made him sentient person. So did Data die or is Data still alive?


I'm trying to draw up a part in EAGLE, but am having a hard time making out the datasheet dimensions:    For example, with the pin width, it's not clear whether it's 0.51 (mm, I presume) or 0.31. Likewise with width, is it 4.00 or 3.80?  This is a SOIC package, although I understand they vary from one to another. As a side question: what dimensions would be suitable for the pads?  DATASHEET:


var/log/syslog growing indefinitely in size

The disk that contains Ubuntu on my computer is 115GB in size.  When the disk was 114.7GBfull.  I started deleting some files here and there to free up around 5GB.  But I noticed the disk was 114GB filled again. I thought it was some cache or swap thingy so didn't give it much thought and went ahead and freed around 40GBby shifting some media files out of the disk.  I have a notification in an hour or so that the disk is full yet again!! 40GB!!! All gone!  So I debugged the problem down to the /var/log/syslog file which was initially definitely less than 20GB. I know this because /var folder was 17GB before I cleared the memory.  /var/log/syslog file is currently 55.9GB!  Could someone be so gracious to explain this anomaly? Is this a bug? Or am I affected with some malware or virus?


in Klondike-Solitaire, how likely is a deal with no legal moves?

In  with standard rules (Draw 3 cards, Re-Deal infinite), a 'null' hand is a hand where you cannot play any card. Statistically, is it more common to win the game, or have a null game?


Is it unusual for mangas to be in colour?

I have been reading some mangas lately and they seem to be commonly done in black and white rather than colour. Also, according to the community at other websites such as comicvine.com, they are usually not in colour.  I came across this when I was wondering if a comic book would be an equivalent to a manga and it made me wonder whether it would be unusual for a manga to be done in colour.


How to merge multiple ADF files to a single shapefile?

I have a set of adf file which use the same structure. How can I merge all ADF to shp file? Does the ogr2ogr command can help in this case?


NullPointerException on taking a picture and save as URI

I'm following  blog post to add this feature onto my app where I can take a picture then save the picture data as a Uri for further functions. But I'm getting an error when I try to open the camera intent.     java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.XmlResourceParser android.content.pm.ProviderInfo.loadXmlMetaData(android.content.pm.PackageManager, java.lang.String)' on a null object reference   I suspect there is something wrong with the file_paths.xml but I double checked there is nothing wrong. I've done some research on different ways of saving images through like FileProvider but most of it doesn't work for me either.   Does anyone know what's wrong with my code?  MainActivity  private void openCameraIntent() {     Intent pictureIntent = new Intent(             MediaStore.ACTION_IMAGE_CAPTURE);     if(pictureIntent.resolveActivity(getPackageManager()) != null){         //Create a file to store the image         File photoFile = null;         try {             photoFile = createImageFile();         } catch (IOException ex) {             // Error occurred while creating the File         }          if (photoFile != null) {             Uri photoURI = FileProvider.getUriForFile(this,                                                         com.example.camerapplication.provider", photoFile);             pictureIntent.putExtra(MediaStore.EXTRA_OUTPUT,                     photoURI);             startActivityForResult(pictureIntent,                     REQUEST_CAPTURE_IMAGE);         }     } }  @Override protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {     if(requestCode == REQUEST_CAPTURE_IMAGE && resultCode == RESULT_OK){         Glide.with(this).load(imageFilePath).into(image);         // TODO:Use Image Uri for further functions     } }  private File createImageFile() throws IOException{     String timeStamp = new SimpleDateFormat("yyyyMMdd_HHmmss", Locale.getDefault()).format(new Date());     String imageFileName = "IMG_" + timeStamp + "_";     File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);     File image = File.createTempFile(imageFileName,".jpg",storageDir);     imageFilePath = image.getAbsolutePath();      return image; }   Manifest  <uses-feature android:name="android.hardware.camera" android:required="true" />  // ... Other elements and then // Within application scope  <provider     android:name="androidx.core.content.FileProvider"     android:authorities="${applicationId}.provider"     android:exported="false"     android:grantUriPermissions="true">     <meta-data         android:name="android.support.FILE_PROVIDER_PATHS"         android:resource="@xml/file_paths">     </meta-data> </provider>   file_paths.xml  <?xml version="1.0" encoding="utf-8"?> <paths xmlns:android="http://schemas.android.com/apk/res/android">     <external-path name="my_images" path="Android/data/com.example.cameraapplication/files/Pictures" /> </paths>   EDITED  changed to proper path="Android/data/com.example.cameraapplication/files/Pictures"


What happens if someone publishes a paper on your current PhD thesis topic

This is not in any way relevant to me, I'm just interested. What would happen if you chose a PhD thesis to work on, and halfway through someone somewhere in the world who was also doing a PhD in the same field published their thesis, which just happened to be the same research that you were doing. Would your research still be considered since it was done independently? Does this happen often? Are there safeguards to prevent this from happening, like would you normally search the academic field to see if anyone else is working on the same topic? Surely that would be almost impossible to do?


Why do you need reputation to access meta?

Why is participating in meta a privilege in Stack Overflow?


This question must have been asked before, but I couldn't find anything. How would I create lists like this one: (1) This    is     a      sentence                               (Note 1)      Gloss1  Gloss2 Gloss3 Gloss4          'This is a sentence'                        (2a) yyy                                                         (Note 2a)  (2b) zzz                                                         (Note 2b)  (2c) uuu                                                         (Note 2c)  (3) qqq                                                          (Note 3)  (3') www                                                         (Note 3')  (4) ttt                                                          (Note 4)  in a way that I can refer to all those bullet points like (3') or (2b) both before and after they appear and also that allows those "www", "yyy", etc. to be three-line glosses, as in (1)? I can probably do all the labels "1", "2a", etc. manually, but I was wondering if this can be at least partially automated.


I want to install a package in Ubuntu 14.04, but every time I run the ./configure command it gives me this error:  E: Cannot get debconf version. Is debconf installed? debconf: apt-extracttemplates failed: No such file or directory Extracting templates from packages: 35%E: Cannot get debconf version. Is debconf installed? debconf: apt-extracttemplates failed: No such file or directory Extracting templates from packages: 70%E: Cannot get debconf version. Is debconf installed? debconf: apt-extracttemplates failed: No such file or directory Extracting templates from packages: 100% dpkg: error: cannot scan updates directory `/var/lib/dpkg/updates/': No such file or directory E: Sub-process /usr/bin/dpkg returned an error code (2)


On a server when I login as root I see .bashrc (Ubuntu 10.10).  On my Mac I have a .bash_profile  Does Ubuntu always have only a .bashrc file and not .bash_profile? (I'm just confused, so asking, I realize they are different o/s's but maybe there is a relationship somehow?)  On my server, I want to create an alias, should I put it in .bashrc?  What if I want this alias to be applied so all users can use it?


I am trying to use C++ vector instead of C arrays, but I have some problems. This is my code:  size_t i; //Filter save files for (i = 0; i != files.size(); i++){     cout << files.at(i).find(FILE_HEAD) << ' ' << files.at(i) << endl;     if ((files.at(i).find(FILE_HEAD) != 0)){         files.erase(files.begin() + i);     } } cout << "Found files:\n"; for (i = 0; i != files.size(); i++){     cout << i << " - " << files.at(i) << endl; }   files is a std::vector<std::string> and I want to remove all elements which not contain FILE_HEAD. But this doesn't work properly, in my test file.size() is 14 but it goes in for only 7 times. Can anyone help me? Thank you!


I want to make a DIN-A0 poster using the documentclass a0poster. Why can't I draw diagrams in that documentclass? The MWE below crashes and I don't know how to fix that. :(  MWE:  \documentclass[a0,portrait]{a0poster}  \usepackage{amsfonts, amsmath, amscd, amssymb} \usepackage{graphicx} \usepackage{xy}  \begin{document}  \begin{align*} \xymatrix{A & B} \end{align*}  \end{document}


Are there significant differences between Filmic shipped with Blender and its development version?

I've just read that Filmic is not completely implemented: .      Notes:         The results appear to be identical to the original Filmic config, but I left out some parts like the renaming of color spaces, BT.1886, grayscale and new roles. Some of those things might be worth adding as well if they are backwards compatible.         ...   Q: Are there significant differences between Filmic shipped with Blender and its ? Before going down the rabbit hole: What does that mean to us and what version is preferred?


Solving the issue of users who leave after getting their answer -- without accepting it

Bolstered by evidence from   It's a common problem across the sites that users -- new, old, and apathetic -- will sometimes leave their question without accepting an answer for an inordinate amount of time (usually to the extent of "ever").   I thusly request adding an answer acceptance timer or an option for those with enough rep to vote to accept an answer.   While some questions have no immediate answers (like questions about plot elements in unreleased films), many questions have clear and decisive answers that deserve commendation.    Perhaps tying it to the number of votes for the existing answers? Surely a bad answer - which the asker could change if they ever returned -- is better than no answer at all.


cannot upgrade ubuntu 16.04 - - mysql dependencies problem

ubuntu 16.04.3 - when trying to do:   sudo apt-get update    This is what I get:  Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages have been kept back:   libegl1-mesa libgl1-mesa-dri libinput10 libmirclient9 libwayland-egl1-mesa libxatracker2   linux-headers-generic linux-headers-virtual linux-image-virtual linux-virtual 0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded. 2 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] Y Setting up mysql-server-5.7 (5.7.19-0ubuntu0.16.04.1) ... ERROR: Unable to start MySQL server: 2017-09-04T11:14:27.542500Z 0 [ERROR] unknown variable 'validate_password_check_user_name=1' 2017-09-04T11:14:27.546320Z 0 [ERROR] Aborting Please take a look at https://wiki.debian.org/Teams/MySQL/FAQ for tips on fixing common upgrade issues. Once the problem is resolved, run apt-get --fix-broken install to retry. dpkg: error processing package mysql-server-5.7 (--configure):  subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of mysql-server:  mysql-server depends on mysql-server-5.7; however:   Package mysql-server-5.7 is not configured yet.  dpkg: error processing package mysql-server (--configure):  dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure.       Errors were encountered while processing:  mysql-server-5.7  mysql-server E: Sub-process /usr/bin/dpkg returned an error code (1)


Did Stephen Baxter or Arthur C. Clarke's estate ever comment on continuing "A Time Odyssey"?

2007 book "Firstborn", the third and last book of "" trilogy by Stephen Baxter and Arthur C. Clarke - an "orthoquel" to "2001: A Space Odyssey" - ends with a cliffhanger which obviously implies continuation:      Myra said, “My God.Charlie? ”  Bisesa stared. “Who is ‘we’?”  “We call ourselves the Lastborn. We are at war. We are losing.” She held out her hands. “Please. Come with me now.”  Bisesa and Myra, still hugging each other, reached out their free hands. Their fingertips touched Charlie’s.  A clash of cymbals.   However, sadly, Sir Arthur died in 2008, with no further books forthcoming.  Did Stephen Baxter  or Arthur C. Clarke's estate ever comment on continuing "A Time Odyssey" after 2008?  Wikipedia has no info:     The 2008 Gollancz edition of the most recent book describes itself on the cover as the "Conclusion" of the series, but the plot is not concluded in the book. The immediate threat is averted but the enemy is not defeated, suggesting that further novels in the series were intended. With the death of Clarke, one of the two authors, it is not clear whether these will be written.


Is there a recommended way to put a copyright notice in a ~.blend file?

Suppose I have just created a ~.blend file, and I want to include in the file a copyright notice. Two ways I can think of to do it off the top of my heard are to create a plane mesh object, and assign an image texture to it, where the image is a copyright notice; and to create a text object, where the object itself is the copyright notice. I'm sure if I think about it more, I can come up with several other methods, too.  Is there a recommended or generally accepted way to put a copyright notice in a Blend file, perhaps in the file's metadata?


What are alternative responses for when someone sneezes?

Question: What is an appropriate English response to reply when someone nearby sneezes?  Background: I am American by birth, and was raised to respond 'God Bless You' when someone sneezes -- though I often shorten this to simply 'Bless You'.  Once, while on Wall Street as a consultant, I replied 'Bless You' and my boss turned to me & said "they don't say that here."  At the time I was a bit taken aback, but now as a graduate student, surrounded by non-native English speakers, I can appreciate the contextual / cultural subtlety of my response -- (e.g.  ).  Being German by heritage, "gesundheit" works, but requires a multilingual explanation to my colleagues.  I have tried to switch to 'Good Health', but I find this so awkward that it often stumbles out as 'God Health'...  Shortening this to 'Health' feels equally clunky.  So... Language Experts!  What are your thoughts?  What is a reasonable, English, response to reply when someone sneezes?


In a python script, I am creating a bunch of symbolic links chained together.  example: link1->link2->link3->.......->somefile.txt  I was wondering how you can change the max number of symlinks to be greater than 20?


I have manually installed Windows 7 Ultimate on my AMD on 32-bit, but I am not sure if I have 32 or 64 bit.  My Windows 7 system (CP) tells me I have a 32-bit OS, but that my processor is a AMD Athlon64.   So, do I have a 32 or 64 bit?  Is it better to use 64 bit? I don't think so; a lot of programs tell at their websites 'only 32-bit'. It still works, but that would be because I have installed Windows 7 as 32-bit.


I installed Ubuntu 13.10 on my laptop which was running Windows XP. This is what I did:   Downloaded Ubuntu 13.10 Launched it in .exe (?) My PC rebooted.   There is no display any more, and no BIOS any more. What should I do?  Original post in French:


How insert a character at the begin of every line from a source code?

I'm writing a lecture with many source codes for example. The codes are stored in severus different files. I use listing and minted packages for formatting the sources.  I would like add character at the begin of every line of some codes like:   Bash shell ($ or #) Python shell (>>>) Matlab (>>) Other shells (>)   I tried some solutions which have given on:       But both solutions have the same problem when I try:  \begin{foo_environment}      \input{bar.txt}  \end{foo_environment}   In both solutions the linebreaking are ingnored  I have tried executing a bash command:  sed 's/^/$ /' bar.sh > bar.txt   This works locally but I can't do the same in  and   This is a sample code bar.sh:  cd .. mount /dev/sda3 /mnt/ cd ~/.ssh/ ll cd ~ ls -al   The result must be:  $ cd .. $ mount /dev/sda3 /mnt/ $ cd ~/.ssh/ $ ll $ cd ~ $ ls -al


Are there difference between those sentences?        Alex is getting married next month.     Alex will get married next month.      Seems that the first one is expressed in present continues, and the second on in future tense. Am I correct?


iPad Stack Exchange app going to working on iPhone as well?

Would this app going to work with iPhone as well or if we have any timeline for iPhone app.  I know there are couple out there which are not official apps and they look awful...


$1^{101} + 2^{101} + 3^{101}+ 4^{101}+\cdots+2016^{101}$ is divisible by which of the following?  $(A)$ $2014$  $(B)$ $2015$  $(C)$ $2016$  $(D)$ $2017$  Could someone share the approach to deal with such type of questions?


Why do we see an inverted image in a spoon on the concave side?

Actually I already read the answer given but that is not satisfactory. The real image is always inverted and virtual image is always erect. But we see a virtual inverted image. How is this possible? Please answer my question as early as possible.


Numerical Pad dot on "French - PC" keyboard layout

I have a MacBook Pro with macOs Catalina and an Azerty (FR) keyboard. I'm using an external Azerty keyboard (PC type, not Mac). My keyboard setting is "French - PC" and works well for everything but the numerical pad: the dot is displayed as a comma. Is there any way to change the locale (and having this dot being a dot) while keeping the "French - PC" keyboard layout?


New to cycling, wrist pain while cycling

Started cycling last week. While riding cycle I am feeling like falling down on the bar, wrist gets pain, is it normal (my height is 5.6 and MTB cycle size is 18.5)?


How to fully use the 4 GB of RAM in my Laptop under Ubuntu 9.10 - 32-bit

I have a Toshiba A100, which I upgraded to 4 GB of RAM. The hardware startup indeed shows 4 GB of RAM, and I recently installed Windows 7, just to see how it behaves on it. So far so good, it displays 4 GB of RAM. Not that I tried to use it all, but it displays it. Previously under XP, I also would see 4 GB of RAM.  But under Ubuntu 9.10 (32 or 64 bits), it only displays 2.9 GB of RAM. And my kernel is the "pae" compiled one, which is supposed to do the trick to work around the 32-bit CPU limitation.   How can I get Ubuntu to fully use my 4 GB of RAM?


How to know when to use $variableName or just variableName?

So I recently discovered that it is useful to name jQuery variables in a way that starts with "$" sign, so var $progress instead of var progress for example.  What I don't understand is, how do you know when to use this? I mean there is such a thin line between javascript and jQuery (there isn't even a line, jQuery is JavaScript) would I use it on variables that are changed with jQuery or something?   At this moment it seems to me that if you have a jQuery based solution that all variables would end up starting with "$", so I'd like to know when to actually do this so I don't confuse myself and others.


show that:   $$\sum_{n=1}^{\infty}\arctan{\left(\dfrac{1}{n^2+1}\right)}=\arctan{\left(\tan\left(\pi\sqrt{\dfrac{\sqrt{2}-1}{2}}\right)\cdot\dfrac{e^{\pi\sqrt{\dfrac{\sqrt{2}+1}{2}}}+e^{-\pi\sqrt{\dfrac{\sqrt{2}+1}{2}}}}{e^{\pi\sqrt{\dfrac{\sqrt{2}+1}{2}}}-e^{-\pi\sqrt{\dfrac{\sqrt{2}+1}{2}}}}\right)}-\dfrac{\pi}{8}$$   This relust is nice.(maybe have some wrong)  becasue I know this famous problem $$\sum_{n=1}^{\infty}\arctan{\dfrac{2}{n^2}}=\dfrac{3\pi}{4}$$ and follow AMM( E3375) problem $$\sum_{n=1}^{\infty}\arctan{\dfrac{1}{n^2}}=\arctan{\left(\dfrac{\tan{\frac{\pi}{\sqrt{2}}}-th{\dfrac{\pi}{\sqrt{2}}}}{\tan{\dfrac{\pi}{\sqrt{2}}}+th{\dfrac{\pi}{\sqrt{2}}}}\right)}$$  Follow is AMM solution:  My try:  my problem I want use this methods,But at last failure it.  Thank you  for you help.  This problem is similar this:we konw this     $$\sum_{n=1}^{\infty}\dfrac{1}{n^2}=\dfrac{\pi^2}{6}$$   and then little hard problem:   $$\sum_{n=1}^{\infty}\dfrac{1}{n^2+1}=\dfrac{1}{2}(\pi\coth{\pi}-1)$$


What is the clue in Doctor Who - "Heaven Sent"

There is one room with a small hole in the floor, with arrows pointing to it and some kind of dust in the hole. What is this room? What does he "realize" here? What is the clue?


Help solving first-order differential equation

I have first-order differential equation $$y=xy'+ \frac{1}{2}(y')^{2}$$ Maybe, with this someone will find way to solve it $$\frac{1}{2}y'(2x+y')=y$$ I thought I can use $x^2+y=t$ for subtitution and when I derivate, I have $t'=2x+y'\\(t'-2x)t'=2t-2x^2$ which is acctualy the same as previous. I don't have idea how to start..


I have had Windows 7 Ultimate installed for about two weeks, with a couple more weeks left to activate.  If you ignore the warnings, eventually you get a watermark on your desktop:    Then, after another few days, the desktop background will turn solid black:    What happens after the trial period has ended without activation?


AsyncTask doesn't always call but when it does, it comes up null?

I've looked at so many questions and answers but none of what i found has actually worked!  So basically if the title doesn't help much then what I'm trying to do is execute an AsyncTask from a dialog but it's not executing and when it does, it'll show up as an null object and if I'm honest it's bloody annoying!  So if anyone can help then that would be great.  The Class is subbed.  Here's the Async class:   static class UpdatePassword extends AsyncTask<String, String, String> {      Context context;     String oldPassword;     String newPassword;      public UpdatePassword(String setOldPassword, String setNewPassword, Context context) {         this.oldPassword = setOldPassword;         this.newPassword = setNewPassword;         this.context = context;     }      @Override protected String doInBackground(String... params) {         HttpRequestUtils httpRequestUtils = new HttpRequestUtils(context);         if (TextUtils.isEmpty(oldPassword) || TextUtils.isEmpty(newPassword)) {             return null;         } else {             String response = null;             String baseUrl = "rest/ws/user/update/password";             ApiResponse apiResponse = null;             try {                 response = httpRequestUtils.getResponse(baseUrl + "?oldPassword=" + oldPassword + "&newPassword=" + newPassword, "application/json", "application/json");                 if (TextUtils.isEmpty(response)) {                     return null;                 }                 apiResponse = (ApiResponse) GsonUtils.getObjectFromJson(response, ApiResponse.class);                 if (apiResponse != null && apiResponse.isSuccess()) {                     return apiResponse.getStatus();                 }                 Log.i("Update", "password call" + apiResponse);             } catch (Exception e) {                 e.printStackTrace();             }             return newPassword;         }     } }   And here's what I'm doing to execute it:  String oldPassword = changePassOld.getText().toString(); String newPassword = changePassNew.getText().toString(); AsyncTask task = new UpdatePassword(oldPassword, newPassword, ProfileFragment.this.getContext()); task.execute();   Edit: I have noticed that i only have doInBackground but even when i had preExecute, it still wouldn't work


What do you call a person who makes easy things difficult?

What you you call a person that can take a simple, easily understood concept or task and turn it in to a complicated procedure?


Every compact subset of $\mathbb{R}$ is the support of a Borel measure.

This is an exercise from Rudin's Real and Complex analysis pg 58. I have been stuck as to    What the support of a measure even is. Originally Rudin defines it on a compact Hausdorff space, but since $\mathbb{R}$ is only locally compact how does this definition extend. How to define a positive linear functional $\Lambda$ that would help generate this measure?     I have already seen the other post  about the same question and not only is the poster much farther than me the hint doesn't really give me any insights as to how to solve it.


The game sent me up in the sky in order to go kill him, but I can’t even reach him without dying. I’ve also tried just running past all the other Dragons and skeleton Draugr thingys. I’m only level 13, and I feel like I’m not ready, but the game is like GO!!!! Fulfill your destiny as the DRAGONBORN. I don’t want to quit, but I don’t know what to do. It keeps saying I have to do this quest next, but I can’t do it.


Correlation between two binary variables

Let's say I have some people that moved from country A to country B. Then I have a binary variable that indicates whether they read the news paper when they were in country A and one binary variable that indicates whether they read the news paper at the present, in country B. If I find that the correlation coefficient between the two variables is 0.368, how do I interpret this number? 2-tailed significance is 0.007. Is this number relevant?


Why is \[ ... \] preferable to $$ ... $$?

I've heard that you should use \[ ... \] for displayed equations instead of  $$ ... $$, but why is that?  I'd assumed that it's so that you can more easily tell which are starting and which are ending delimiters, but if I always use a syntax-highlighting text editor, I can see that easily based on the color of the symbols.  Is there any reason for this suggestion?


I was wondering if it was possible to formalize the following. If we let $f_n(x)$ denote the sequence of function so that $f_1(x)=\sin(x)$, $f_2(x)=\sin(\sin(x))$, $f_3(x)=\sin(\sin(\sin(x)))$ and so on. Does this sequence of functions have a limit? Is there a theory that could explain the behaviour of repeating trigonometric functions?


Why am I able to modify a List in a method that's out of scope, without returning it?

Let's say I initialise my list like so:   public static void main(String[] args) {     ArrayList<String> a = new ArrayList<String>();     a.add("one");     a.add("two");     a.add("three");     a.add("four");     modifyList(a); }   where modifyList simply changes every value to "one" like so:   private static void modifyList(ArrayList<String> a) {     for (int i = 0; i < a.size(); i++) {         a.set(i, "one");     } }   If I print the list before and after I call this method, I expect the same original list to appear twice. But for some reason, the ArrayList that gets modified in modifyList is the same as the ArrayList in main.   If I try the same experiment with ints and Strings instead of Lists they do not get modified.   Can anyone explain why?


Access Mac localhost from Windows parallels

So there is a web appliance running on my Mac localhost. I want to check how it looks in Internet Explorer. I have Parallels Desktop 12 running Windows 10 with installed Parallels tools.   However, if I run IE in Coherence, it still cannot load localhost. I tried to set up IP of my mac to 10.0.0.45 (because I know my router gives IP in this range) and then accessing http://10.0.0.45 from parallels IE  While this worked, I would like to know if there is better process to do that


Understanding how many biases are there in a neural network?

I am trying to understand biases in neural nets, but different websites show very different answers.   For example, how many biases is there in a fully connected neural network with a single input layer with 5 units and a single output layer with 4 units? And what about a fully connected neural network with a single input layer with 5 units, a single hidden layer with 4 units, and a single output layer with 3 units?  For example, if I understand this correctly, , the answer of the first should be 5 and for the second 4 + 3. Each neuron except for in the input-layer has a bias.  However, at , it is explained such that each layer including the input-layer has one bias. So the answer to the example above is one in the first and two in the second.   What is correct? What am I misunderstanding here?


Finding the n-th lexicographic permutation of a string

I have an ordered set of symbols S = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }. I want to find the 1,000,000-th permutation in lexicographic order of S. It is a programming puzzle, but I wanted to figure out a way without brute-forcing the task.  So my thinking was like this:  For 10 variable symbol positions, we have 10! permutations, obviously. Now we want to find the first symbol.  If we fix the first symbol, then the remaining 9 symbols can have 9! combinations.  That means that 0 or 1 cannot be the first symbol, because the highest possible position is 2*9! = 725,760, which is lower than 1,000,000.  The lowest position for a leading 3 is 3*9! + 1 = 1,088,641, so it can't be 3 or higher, either.  Therefore, the first number must be 2. 2*9! is the largest multiple of 9! no greater than 1,000,000, so I need the 2nd symbol (zero-based) from the current set.  So now the question becomes, of the remaining S := S \{2}, which permutation of these symbols is at lexicographic position (1,000,000 - 2*9!) = 274,240?  6*8! = 241,920 is the largest multiple of 8! which is smaller than 274,240, so I need the 6th-smallest symbol of the remaining set, which is 7. So the prefix should be 27 by now.  That way, I keep going and finally arrive at: 1,000,000 = 2*9! + 6*8! + 6*7! + 2*6! + 5*5! + 1*4! + 2*3! + 2*2! + 0*1! + 0*0!  which results in "2783905614" as my solution.  However, according to the , (free reg. req.) that is incorrect.  Where did I go wrong in thinking or applying?


Failing 8/10 test cases while joining 2 portions of a path

The task is to write a function that receives two portions of a path and joins them. The portions will be joined with the "/" separator. There could be only one separator and if it is not present it should be added.  Example:     joinPath("portion1", "portion2") ➞ "portion1/portion2"      joinPath("portion1/", "portion2") ➞ "portion1/portion2"      joinPath("portion1", "/portion2") ➞ "portion1/portion2"      joinPath("portion1/", "/portion2") ➞ "portion1/portion2"   My code:  public class Challenge {     public static String joinPath(String portion1, String portion2) {         return (portion1.substring(portion1.length()-1) != "/" && portion2.substring(0,1) != "/")              ? portion1 + "/" + portion2 :              (portion1.substring(portion1.length()-1) == "/" && portion2.substring(0,1) == "/")              ? portion1.substring(0) + portion2.substring(1) :              portion1 + portion2;     } }   I know the code seems complex but the demand of the question was to try to solve it without if-else conditions. I don't know why my code is failing almost all the tests.   I think I made a silly mistake. Can someone please point out the error? Also, is there a better way I can solve this question without using if-else conditions?


How do I determine the expected duration/runtime of older Adventurer's League adventures for purposes of DM rewards?

In reference to this question:   Where in a published D&DAL Module (I'm specifically working with the Tyranny of Dragons modules) would I find the part where it says the expected duration/runtime? All it says is the XP and Downtime rewards for the adventure, but the DM's guide for AL says that their new rules trump the old guidelines, and that I gain XP & GP based on the amount of time the adventure is meant to run, as well as the level of the party.  Alternatively, if it is not written in said modules, how would one go about calculating or otherwise determining what time duration to use when calculating these DM rewards?


Cluster robust standard errors in plm package

I am a beginner in R. I am using the plm package and I want to know the easiest way to get cluster robust standard errors for the fixed effects estimator. My data (called Mydata) is on poverty, GDP, investment, and education in 130 countries over 33 years, and my index in plm is country and time. My model is something like this:  Fixedeffect<-plm(Y~ X_(i,t) + W_(i,t) + Z_(i,t) , data=Mydata, model= "within")   Where Y, X, W, and Z are all panel data variables.   I read this post:  , but it didn't help.   Someone there suggested to use this:  coeftest(model.plm,vcov=vcovHC(model.plm,type="HC0",cluster="group"))   but it didn't work for me. I got the following error:   could not find function "coeftest"   Can anyone help, Please?


Is there a USB wire that splits into two A plugs for separating data and power?

I assume it's commonly known around here that USB cables have both wires for communicating data, as well as for sending 5V of power to the device. I commonly tether my computer to my smartphone to get internet through USB, but if I've got heavy usage, the battery in my smartphone slowly dies faster than the low power from my computer can charge it.  I'd like a special USB wire that has a micro plug on one end, but splits to two A plugs on the other. This way I can plug the data portion into my computer, but plug the power portion into the phone's normal AC adapter. I'm assuming the much higher current from the regular charger will keep the phone powered regardless of heavy usage or not.  I was thinking of making this myself, but I thought I couldn't be the first person who wanted something like this. Is there an existing wire that does what I want? Or perhaps an adapter?


Forecasting algorithms for incomplete time series data

I want to forecast the demand of each SKU in my warehouse every week from the history transaction that I have collected. The data contains brand, product type, SKU, quantity, date(per day), price. But the SKU is not sold every week. Some of them are because of sold out and trend. I have tried RNN LSTM and ARIMA with per week but they need time series data that has any transaction in every daterange. I need an algorithm that can handle zero transaction in random week.


Consider a classical mechanical system with generalized coordinates $q_i$, $i \in \{1,\dots\,n\}$. And Lagrangian $L$. Given a path $\gamma$ (with coordinates $\gamma_i$) and two times $t_1$ and $t_2$ you can calculate the action of $\gamma$:  $$ S[\gamma] := \int_{t_1}^{t_2} L(\gamma_i(t),\dot \gamma_i(t),t) \,\mathrm{d}t $$  Is there any general theorem which specifies conditions where the critical solution of an action is unique (for given boundary conditions)? I am also looking for a (reference with a) proof.


Why is it so hard to mix spaghetti with meatballs?

When I cook spaghetti with a sauce that includes meatballs or chopped vegetables, those stay in chunks and won't get uniformly mixed in the pasta.  Is there a simple reason for that?  Has it been studied? you know some people study piles of sand with various grain sizes?


If I have a column CHAR(100) and is allowed to have NULL values, when the value is NULL, how much space will this take?  Also, will there be a performance hit, considering the column will be written only one, never updated and selected a lot of times?


I'm trying to remove or hide the update nags for non-admin users. As an admin, I see:    The popular answer I've seen to handle this says to use:  function hide_update_nag() {     if ( !current_user_can('update_core') ) {         remove_action( 'admin_notices', 'update_nag', 3 );     } } add_action( 'admin_head', 'hide_update_nag', 1 );   This works fine for removing the first message (WordPress 4.5.3 is available! Please update now) but leaves the second one visible to non-admins:    Both messages are wrapped in a <div class="update-nag">, so  is to modify the above chunk of code to use CSS to hide the nag with:  echo '<style>.update-nag {display: none}</style>';   But this feels kludgy to me. Is there a way to hook into an action or filter and remove ALL the update nag messages for non-admin users? No third-party plugin recommendations please.


How to put a '+' sign inside a square like xor

In $\oplus$, '+' sign is there inside a circle. I want to put similarly a '+' sing inside a square. How is it possible in latex?


$\sum^n_{k=0} {{k} \choose {l}} = {{n+1} \choose {l+1}}, n, l \in \mathbb{N}$ proof

I need to prove that: $$\sum^n_{k=0} {{k} \choose {l}} = {{n+1} \choose {l+1}}, n, l \in \mathbb{N}$$ This would look a simple sinduction proof but in that case I got a variables and I don't know what to do. Do I take my base as $n=1$ and $l=1$ and then prove for $n+1$ and $l+1$ at the same time? Or do I need to do that separately? It looks pretty basic so I guess that there is solution somewhere on that forum, but I had no luck finding it.


Randomising mapping to glyphs in pdfLateX / XeLaTeX

I've noticed that when using the MinionPro package, some glyphs like ligatures and oldstyle figures would be mapped to another character.   For example, compiling  \documentclass{article} \usepackage[opticals]{MinionPro} \begin{document} 123 Th fj fi ffj \end{document}   using pdfLaTeX yields a PDF document that looks correct    but if copied, it actually yields other glyphs like Ïth û ö.  I realise that this could be solved using glyphtounicode, but I'm thinking of how this property can be used to actually prevent plagiarism if I make all the glyphs map to wrong characters.   How can I achieve this using either pdfLateX or XeLaTeX? Is it as simple as creating a randomised custom glyphtounicode?


English is my second language and i can get a little confused with time and dates. My Uni has sent me a email with a given deadline and i want to make sure that i understand it. The email stated the following "you have 14 days from today 5 March to submit your project. Deadline: 20 March 2020."  So i assume that the deadline is at midnight the 19th March. Because its 14 days from the 5th. But the write that the deadline is the 20th? How can that be when they wrote "14 days from today" which would be the 19th. Do they just mean that i should hand it in before midnight? or do i have to midnight the 20th of march?


Create a real folder based on a playlist in Windows Media Player

Given a playlist in Windows Media Player 12, is there a plugin I can use that can copy those files to a folder with the location and name I specify?


Http session Id same for all tabs in same browser

when I try to get the session id in servlet using request.getsession().getId(). I am getting the same session for multiple tabs.If this is the case, how we can handle session for different users from different tabs?


Test fit of discrete data distribution to normal distribution

Here are some grades. (They aren't test scores. They aren't a sample.) I want to test whether a normal distribution derived from the mean and variance of the grades provides a good fit for the grades. What other distribution might fit is, for now, an orthogonal issue. The question is whether the normal distribution provides a valid model.  > grades   [1] NA 75 70 70 80 75 85 85 75 85 75 80 85 80 75 70 70 85 90 90 NA 85 NA 75 80  [26] 80 85 80 85 85 75 NA 75 70 80 65 80 75 70 80 85 65 85 75 75 85 75 60 85 80  [51] 85 85 70 70 80 75 80 80 NA 80 75 85 80 80 55 75 60 90 80 75 80 70 85 75 80  [76] 75 80 75 75 70 85 85 80 80 75 70 NA 75 70 75 70 65 85 70 70 80 80 85 85 70 [101] 75 70 75 75 65 70 80 75 65 65 > t <- table(grades) > t grades 55 60 65 70 75 80 85 90  1  2  6 18 27 25 22  3   The grades come from a discrete set of possible values from five to 100 in increments of five. Because of that, a Chi-squared test might be appropriate. First, the normal distribution probabilities that any of the discrete values will occur:  > p <- dnorm(seq(55,90,5), mean(grades, na.rm=TRUE), sd(grades, na.rm=TRUE)) > p [1] 0.0004433536 0.0031786310 0.0136901824 0.0354207364 0.0550535301 [6] 0.0514034173 0.0288322176 0.0097150119   Why are the values of p so small? Why do they not add-up to one?  > tf <- as.data.frame(t) > tf   grades Freq 1     55    1 2     60    2 3     65    6 4     70   18 5     75   27 6     80   25 7     85   22 8     90    3 > chisq.test(tf$Freq, p=p, rescale.p=TRUE)      Chi-squared test for given probabilities  data:  tf$Freq X-squared = 7.0452, df = 7, p-value = 0.4242  Warning message: In chisq.test(tf$Freq, p = p, rescale.p = TRUE) :   Chi-squared approximation may be incorrect   Why does the chisq.test function produce the warning?  I need numbers, because I have a lot of these data sets and want fit results for a large sample of them. Visual inspection isn't proof. The closest relevant question I've found is  ("Testing Whether a Binomial Distribution Fits Data")


Table using siunitx number alignment affecting rows without numbers

I'm having trouble with this table:    As you can see, the headings of three of columns are not right. In terms of the rest of the table contents:   A - this column is fine. mathcal{B} - the numbers aren't centered with regard to the column width. mathcal{C} - this column looks fine. alpha - is there any way to make these numbers centered in the column? I realise its tricky because of the minus sign and some numbers are longer than others. I'm not sure the best way to format this.   Any advice would be greatly appretiated.  Code  \documentclass[12pt,a4paper]{report} \usepackage{newtxtext} \usepackage{floatrow} \floatsetup[table]{style=plaintop} \usepackage{siunitx} \sisetup{detect-all = true, detect-family = true}  \renewcommand{\arraystretch}{1.5}   \begin{document}  \begin{table} \caption{A table} \label{table1} \sisetup{ table-number-alignment = center, } \begin{tabular}{ l | S | S | S } A & $\mathcal{B}$ (\si{\cm}) & $\mathcal{C}$ (\si{\cm}) & $\alpha$ (\si{\degree})  \\  \hline $a$ & 5.1  & -2.8 & -20  \\ $b$ & 5.6  & -1.0 & -5\\ $c$ & 5.5 & 1.0 & 13 \\ $d$ & 4.8 & 2.8  & 33 \\ \end{tabular} \end{table}  \end{document}


Why does a script without she-bang can be run?

As far as I understand, to make kernel execve a non-ELF file, the file must be a script started with a she-bang #!, but I have a script run successfully without it, why does this happen?  xtricman⚓ArchVirtual⏺~🤐ls a.sh -l -r-xr-xr-x 1 xtricman users 23 9月  26 18:45 a.sh xtricman⚓ArchVirtual⏺~🤐cat a.sh echo "FDHDSFHGFKJJHGO" xtricman⚓ArchVirtual⏺~🤐./a.sh FDHDSFHGFKJJHGO   This a.sh script doesn't contain a she-bang, so how does it run?


What are permissions are needed to upload a file via a public Salesforce community page?

I would like to be able to upload files using <lightning:fileUpload which is on a public community page.  The community is using template: Customer Account Portal.  The files would get attached to a custom Questionnaire object.  What are the minimum permissions required on the custom Questionnaire object for the Questionnaire profile & user to be allowed to upload files via a public community page?    I've given the Guest Profile & User full permissions over the custom Questionnaire object and it still errors:     There was a problem uploading your file. Please try again   And nothing appears in the Debug log.  Note: I mistakenly tested the public community using the same browser that I was logged in as Sys Admin, and it uploaded fine. But having tested again using Incognito mode, it does not upload.


How to change position of columns in attribute table?

If I have an attribute table with columns A B C D, is it possible to move the columns to different positions, say, B C A D? When making a new column with the field calculator it would be useful to put it somewhere other than last position or to be able to move key columns close to it.


Combine the list returned by `re.findall()`

.I got answer here i just have to use extend keyword instead of append.   def extractDollar(line):          global mainList         temp=[]          #lowercasing all the string         line=line.lower()          #storing all word starting with $ in a line in temp         #then adding that  to existing list mainList         #to form a single list and removing empty value         temp= re.findall(r'$\w+',line)          mainList=mainList+[j for i in zip(mainList,temp) for j in i]         mainList= filter(None, mainList)          return line   I have a file with multiple string; each string has word starting with $ and I want to store all word starting with $ in a file as a single List (mainList). I wrote this function to read file line by line. I am getting temp array filled with all value starting with $ in one line but not able to add all the single list returned by re.findall as single main List.


I was running through the datasheet of  (Low-Cost Low-Power 2.4 GHz RF Transceiver) which has a dimension of 2.40mm X 2.40mm approx. It was really amazing to find such transceivers to be fabricated in such a small area.Infact a transceiver requires a lot of R,C and even L.Resistors, Capacitors and semiconductors are easy to be imagined on an IC but an Inductor!!!  I haven't work in any VLSI industry so it would be great if someone can tell how these inductor logic is implemented on IC. Although it is said that  are alternative solution, but thanks for pointing if my knowledge is correct.


Why is my StackOverflow with an indent and doesn't have reputation

Well everything is in the title. Why is StackOverflow showing up with a indent and why don't I see my rep next to it like on the other websites.


header: subsection that is continued, not the one starting on the page

I have \documentclass{article} and I use fancyhdr like that:  \fancyhead[L]{\slshape\nouppercase{\rightmark}} \renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}  \renewcommand{\subsectionmark}[1]{\markright{\thesubsection\ #1}}   Now with a document like this:  2.1 some subsection bla bla text -- page break happens here [HEADER: 2.2 next subsection] a lot more text, until nearly the end of the page 2.2 next subsection   As you see, the header contains the name of the subsection that only starts at the bottom of the page, but all the text below the header belongs to section 2.1.  I find this irritating. Is it possible to make the header display the number and name of the section that the start of the page belongs to (in other words*, the last subsection of the preceding page)? So that in the example above, it'd say [HEADER: 2.1 some subsection] on the second page.  (* exception: if the 2.2 subsection started right on the top of the page, so that no text belonging to 2.1 appears on the second page, I want the header to say 2.2 as it does now)  I'm also happy about an explanation on why the default is as it is. As I said, I find it counterintuitive, but I think there's a reason for it?


I have a pretty small embedded system that has Linux on it for a project. Theres normally about 47% disk space used when I run df. However every time I start up the system that number gets bigger until it hits 100%.  I can get it back down by using apt-get clean, but I don't even want to update anything. My system is used in a limited capacity thats already working fine with what is on it, I don't want any upgrades of package updates.  How can I disable whatever apt is doing to check for updates and download stuff every time it starts up?


Why does == return true for a String comparison?

I have previously asked a question about comparing 2 strings and was told that I should always use .equals.  However, I do not understand why this then works:   String y= "Mary";  String x= "Mary";  System.out.print(x==y);   This will print true, and I do not understand why.


On the interpretation of functional and vanishing of Russel's paradox in Tractatus Logico-Philosophicus

3.333 A function cannot be its own argument, because the functional sign already contains the prototype of its own argument and it cannot contain itself. If, for example, we suppose that the function F(fx) could be its own argument, then there would be a proposition “F(F(fx))”, and in this the outer function F and the inner function F must have different meanings; for the inner has the form φ(fx), the outer the form ψ(φ(fx)). Common to both functions is only the letter “F”, which by itself signifies nothing. This is at once clear, if instead of “F(F(u))” we write “(∃φ) : F(φu) . φu = F u”. Herewith Russell’s paradox vanishes.  I fairly understand what the author means here, but it is in the bold part that I'm having difficult understanding what is meant. I don't understand why the function φ should be unique in this case, and how it relates to Russel's paradox.


I have two boxes, one with ten balls, eight white and two black and the other with ten balls, four white and six black. Without seeing I choose a box and choose three balls from this.  What is the probability that the fourth ball I'll choose is black if the other three are not all white?   $E$ = the fourth ball is black  $A$ = the three balls are ALL WHITE  Then $P(E) - P(E|A)$ will give me what I need.  I think I am ok with $P(E|A)$.  For $P(E)$:  $C$ = I choose first box and $D$ = I choose second box  $P(E) = P(E|C) \cdot P(C) + P(E|D) \cdot P(D)$  I will find $P(E|C), P(E|D)$ from the right groups of four balls  So, if $a$ is a white ball and $b$ is a black ball then:  For the first box: $aaab, baab, abab, aabb$ I sum the possibilities for all these groups and I get $P(E|C)$.  For the second box:  $aaab, baab, abab. aabb, bbab, babb, abbb, bbbb$ I sum the possibilities for all these groups and I get $P(E|D)$.  The other thing I thought was: $E$ = the fourth ball is black  $B$ = the three balls are NOT all white  Then $P(E|B)= \frac{P(E \cap B)}{P(B)}$


Combining unicode and normal font styles

I'm typing a document which quite heavily relies on script math fonts and a double-stroke 1 for the identity operator, however, text is in Spanish, so I'm using LuaLaTeX for maximum versatility, however, when using it and with the following commands  \includepackage{unicode-math}  \mathbb{1} \mathcal{O} \hbar     I get the above, however, when using PDFLaTeX with  \usepackage[utf8]{inputenc} \usepackage{bbold}  \mathbb{1} \mathcal{O} \hbar   This is the result   And I much prefer this style of calligraphic O and h-bar with horizontal bar. So my question is: Is there a way to use LuaLateX and unicode math but still get what I'd get if I used PDFLaTex?


Oracle 12 equal and not equal (=, !=, ) behavior about nvarchar2 working problem

In oracle an empty varchar2 and null are treated the same because Oracle internally changes empty string to NULL values. Please consider  following example :  --1- create table CREATE TABLE persons(     person_id NUMBER GENERATED BY DEFAULT AS IDENTITY,     first_name VARCHAR2(50)  ,     last_name VARCHAR2(50)  ,     PRIMARY KEY(person_id) );   --2-insert sample data insert into persons (first_name,last_name) values('n1','l1'); insert into persons (first_name,last_name) values('n2',null); insert into persons (first_name,last_name) values('n3',''); insert into persons (first_name) values('n4');    the following query has result :  select * from persons where last_name is null;  PERSON_ID FIRST_NAME      LAST_NAME                                             2      n2                                                                                3      n3                                                                                4      n4          and      select * from persons where last_name is not null;     PERSON_ID FIRST_NAME       LAST_NAME                                   1      n1                  l1        My question :   1-Why this queries result are “no rows selected”  select * from persons where last_name =''; --   no rows selected select * from persons where last_name !=''; --  no rows selected   2-More important question is wonderful behavior for the following query:  select * from persons where last_name !='' or last_name =''; --  no rows selected


This is my dd command which I need to modify:  dd if=/tmp/nfs/image.dd of=/dev/sda bs=16k   Now I would like to use pv to limit the speed of copying from NFS server. How can I achieve that? I know that --rate-limit does the job, but I am not sure how to construct pipes.


Adblock Plus removing text below unanswered questions

I understand the reason for the massively negative feedback to this question. It's not a Stack Exchange bug, I agree. I don't care about the bug, I just wanted to draw attention to it. I thought SE would be a more pleasant place to be if a little workaround was implemented. I thought the SE community enjoyed improving the site in tiny little ways like this...  The issue is that I use FireFox with Adblock Plus and it makes the text appearing below every unanswered question in stackoverflow.com look like this      Know someone who can answer? Share a link to this question via email, , , or .    instead of like this     Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.    Maybe it's possible to detect whether browsers use ad blockers, and change the display accordingly?


I am new with latex and I use texmaker for documentation . I begin tabular tag but the problem is all the date in tabular tag is embed on the current page . It is not moving automatically on the next page. It should  break automatically and move to the next page.The code here:  \begin{tabular}{|p{3cm}|p{9cm}|} \hline Term &  Definition [3ex] \hline ... having ten more row available in it ... ... \end{tabular}   Table having ten rows and two column squeeze in a same page.Why?  Any help would be appreciated.


I'm trying to make code to ask for your name, which then says, "Hello, _____, my name is Dolly." Then three buttons appear with options of what to do to Dolly.   Is there any way I can add a function onclick of the spawned buttons to create a response accordingly? I apologize if it's a bit messy and not dry, I'm kinda new to this.

Please enter your name
         <input type="text" id="name" value="" placeholder="Please enter your name">          <button id="submit" onclick="yourName()">Enter</button>


cannot attach an event handler in HTML created by JS

I am trying to build a calendar using this  which uses backbone and the jquery FullCalendar plugin. I want to attach a click event handler to a cell(weekday view) of the calendar-this is the code I tried for testing:  $(document).ready(function() {   $('.fc-event-time').click(function() {   alert('test'); });  });   The above does not work.fc-event-time is the class associated with the cell that contains the time.Here is an image of the cell with some notes in it.   The whole calendar is created with JS.The only HTML required is a div named calendar.Can that be the reason why the event handler cannot be attached. Look at some code to see what I am talking about:

   fullcalendar.js is the file the created the calendar inside div#calendar.Application.js is the backbone code(REST,render functions,models etc) which adds some functionality to the calendar and custom_cal_code.js is my code you see above-which tries to attach the event handler.Jquery dependencies are not shown above for the sake of brevity.